mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-05-14 15:01:44 +00:00
101 lines
2.9 MiB
101 lines
2.9 MiB
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue"),require("__jsyaml"),require("__jszip")):"function"===typeof define&&define.amd?define([,"__jsyaml","__jszip"],t):"object"===typeof exports?exports["harvester-1.9.0-dev"]=t(require("vue"),require("__jsyaml"),require("__jszip")):e["harvester-1.9.0-dev"]=t(e["Vue"],e["__jsyaml"],e["__jszip"])})("undefined"!==typeof self?self:this,function(e,t,n){return function(){var r={4979:function(){"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,t){"use strict";if(null==e)throw new TypeError("Cannot convert undefined or null to object");const n=Object(e);for(let r=1;r<arguments.length;r++){const e=arguments[r];if(null!=e)for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},writable:!0,configurable:!0}),(()=>{function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};const n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}e.prototype=window.Event.prototype,"function"!==typeof window.CustomEvent&&(window.CustomEvent=e)})(),Number.isInteger=Number.isInteger||function(e){return"number"===typeof e&&isFinite(e)&&Math.floor(e)===e}},60425:function(e,t,n){"use strict";function r(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function i(e){var t=r(e).Element;return e instanceof t||e instanceof Element}function a(e){var t=r(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function o(e){if("undefined"===typeof ShadowRoot)return!1;var t=r(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}n.d(t,{n4:function(){return lt}});var s=Math.max,l=Math.min,c=Math.round;function u(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function d(){return!/^((?!chrome|android).)*safari/i.test(u())}function h(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var o=e.getBoundingClientRect(),s=1,l=1;t&&a(e)&&(s=e.offsetWidth>0&&c(o.width)/e.offsetWidth||1,l=e.offsetHeight>0&&c(o.height)/e.offsetHeight||1);var u=i(e)?r(e):window,h=u.visualViewport,p=!d()&&n,f=(o.left+(p&&h?h.offsetLeft:0))/s,m=(o.top+(p&&h?h.offsetTop:0))/l,g=o.width/s,v=o.height/l;return{width:g,height:v,top:m,right:f+g,bottom:m+v,left:f,x:f,y:m}}function p(e){var t=r(e),n=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:n,scrollTop:i}}function f(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function m(e){return e!==r(e)&&a(e)?f(e):p(e)}function g(e){return e?(e.nodeName||"").toLowerCase():null}function v(e){return((i(e)?e.ownerDocument:e.document)||window.document).documentElement}function b(e){return h(v(e)).left+p(e).scrollLeft}function y(e){return r(e).getComputedStyle(e)}function _(e){var t=y(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function w(e){var t=e.getBoundingClientRect(),n=c(t.width)/e.offsetWidth||1,r=c(t.height)/e.offsetHeight||1;return 1!==n||1!==r}function E(e,t,n){void 0===n&&(n=!1);var r=a(t),i=a(t)&&w(t),o=v(t),s=h(e,i,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&(("body"!==g(t)||_(o))&&(l=m(t)),a(t)?(c=h(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=b(o))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function S(e){var t=h(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function k(e){return"html"===g(e)?e:e.assignedSlot||e.parentNode||(o(e)?e.host:null)||v(e)}function x(e){return["html","body","#document"].indexOf(g(e))>=0?e.ownerDocument.body:a(e)&&_(e)?e:x(k(e))}function A(e,t){var n;void 0===t&&(t=[]);var i=x(e),a=i===(null==(n=e.ownerDocument)?void 0:n.body),o=r(i),s=a?[o].concat(o.visualViewport||[],_(i)?i:[]):i,l=t.concat(s);return a?l:l.concat(A(k(s)))}function C(e){return["table","td","th"].indexOf(g(e))>=0}function T(e){return a(e)&&"fixed"!==y(e).position?e.offsetParent:null}function N(e){var t=/firefox/i.test(u()),n=/Trident/i.test(u());if(n&&a(e)){var r=y(e);if("fixed"===r.position)return null}var i=k(e);o(i)&&(i=i.host);while(a(i)&&["html","body"].indexOf(g(i))<0){var s=y(i);if("none"!==s.transform||"none"!==s.perspective||"paint"===s.contain||-1!==["transform","perspective"].indexOf(s.willChange)||t&&"filter"===s.willChange||t&&s.filter&&"none"!==s.filter)return i;i=i.parentNode}return null}function R(e){var t=r(e),n=T(e);while(n&&C(n)&&"static"===y(n).position)n=T(n);return n&&("html"===g(n)||"body"===g(n)&&"static"===y(n).position)?t:n||N(e)||t}var O="top",I="bottom",L="right",D="left",P="auto",M=[O,I,L,D],B="start",F="end",$="clippingParents",U="viewport",j="popper",V="reference",K=M.reduce(function(e,t){return e.concat([t+"-"+B,t+"-"+F])},[]),G=[].concat(M,[P]).reduce(function(e,t){return e.concat([t,t+"-"+B,t+"-"+F])},[]),H="beforeRead",z="read",q="afterRead",X="beforeMain",W="main",Y="afterMain",Q="beforeWrite",J="write",Z="afterWrite",ee=[H,z,q,X,W,Y,Q,J,Z];function te(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name);var a=[].concat(e.requires||[],e.requiresIfExists||[]);a.forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||i(e)}),r}function ne(e){var t=te(e);return ee.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function re(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function ie(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}var ae={placement:"bottom",modifiers:[],strategy:"absolute"};function oe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"===typeof e.getBoundingClientRect)})}function se(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,a=t.defaultOptions,o=void 0===a?ae:a;return function(e,t,n){void 0===n&&(n=o);var a={placement:"bottom",orderedModifiers:[],options:Object.assign({},ae,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],l=!1,c={state:a,setOptions:function(n){var s="function"===typeof n?n(a.options):n;d(),a.options=Object.assign({},o,a.options,s),a.scrollParents={reference:i(e)?A(e):e.contextElement?A(e.contextElement):[],popper:A(t)};var l=ne(ie([].concat(r,a.options.modifiers)));return a.orderedModifiers=l.filter(function(e){return e.enabled}),u(),c.update()},forceUpdate:function(){if(!l){var e=a.elements,t=e.reference,n=e.popper;if(oe(t,n)){a.rects={reference:E(t,R(n),"fixed"===a.options.strategy),popper:S(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(e){return a.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<a.orderedModifiers.length;r++)if(!0!==a.reset){var i=a.orderedModifiers[r],o=i.fn,s=i.options,u=void 0===s?{}:s,d=i.name;"function"===typeof o&&(a=o({state:a,options:u,name:d,instance:c})||a)}else a.reset=!1,r=-1}}},update:re(function(){return new Promise(function(e){c.forceUpdate(),e(a)})}),destroy:function(){d(),l=!0}};if(!oe(e,t))return c;function u(){a.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"===typeof i){var o=i({state:a,name:t,instance:c,options:r}),l=function(){};s.push(o||l)}})}function d(){s.forEach(function(e){return e()}),s=[]}return c.setOptions(n).then(function(e){!l&&n.onFirstUpdate&&n.onFirstUpdate(e)}),c}}var le={passive:!0};function ce(e){var t=e.state,n=e.instance,i=e.options,a=i.scroll,o=void 0===a||a,s=i.resize,l=void 0===s||s,c=r(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(e){e.addEventListener("scroll",n.update,le)}),l&&c.addEventListener("resize",n.update,le),function(){o&&u.forEach(function(e){e.removeEventListener("scroll",n.update,le)}),l&&c.removeEventListener("resize",n.update,le)}}var ue={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ce,data:{}};function de(e){return e.split("-")[0]}function he(e){return e.split("-")[1]}function pe(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function fe(e){var t,n=e.reference,r=e.element,i=e.placement,a=i?de(i):null,o=i?he(i):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(a){case O:t={x:s,y:n.y-r.height};break;case I:t={x:s,y:n.y+n.height};break;case L:t={x:n.x+n.width,y:l};break;case D:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=a?pe(a):null;if(null!=c){var u="y"===c?"height":"width";switch(o){case B:t[c]=t[c]-(n[u]/2-r[u]/2);break;case F:t[c]=t[c]+(n[u]/2-r[u]/2);break;default:}}return t}function me(e){var t=e.state,n=e.name;t.modifiersData[n]=fe({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var ge={name:"popperOffsets",enabled:!0,phase:"read",fn:me,data:{}},ve={top:"auto",right:"auto",bottom:"auto",left:"auto"};function be(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:c(n*i)/i||0,y:c(r*i)/i||0}}function ye(e){var t,n=e.popper,i=e.popperRect,a=e.placement,o=e.variation,s=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,h=e.isFixed,p=s.x,f=void 0===p?0:p,m=s.y,g=void 0===m?0:m,b="function"===typeof d?d({x:f,y:g}):{x:f,y:g};f=b.x,g=b.y;var _=s.hasOwnProperty("x"),w=s.hasOwnProperty("y"),E=D,S=O,k=window;if(u){var x=R(n),A="clientHeight",C="clientWidth";if(x===r(n)&&(x=v(n),"static"!==y(x).position&&"absolute"===l&&(A="scrollHeight",C="scrollWidth")),a===O||(a===D||a===L)&&o===F){S=I;var T=h&&x===k&&k.visualViewport?k.visualViewport.height:x[A];g-=T-i.height,g*=c?1:-1}if(a===D||(a===O||a===I)&&o===F){E=L;var N=h&&x===k&&k.visualViewport?k.visualViewport.width:x[C];f-=N-i.width,f*=c?1:-1}}var P,M=Object.assign({position:l},u&&ve),B=!0===d?be({x:f,y:g},r(n)):{x:f,y:g};return f=B.x,g=B.y,c?Object.assign({},M,(P={},P[S]=w?"0":"",P[E]=_?"0":"",P.transform=(k.devicePixelRatio||1)<=1?"translate("+f+"px, "+g+"px)":"translate3d("+f+"px, "+g+"px, 0)",P)):Object.assign({},M,(t={},t[S]=w?g+"px":"",t[E]=_?f+"px":"",t.transform="",t))}function _e(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,a=n.adaptive,o=void 0===a||a,s=n.roundOffsets,l=void 0===s||s,c={placement:de(t.placement),variation:he(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ye(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ye(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var we={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:_e,data:{}};function Ee(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];a(i)&&g(i)&&(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)}))})}function Se(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]),s=o.reduce(function(e,t){return e[t]="",e},{});a(r)&&g(r)&&(Object.assign(r.style,s),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}}var ke={name:"applyStyles",enabled:!0,phase:"write",fn:Ee,effect:Se,requires:["computeStyles"]};function xe(e,t,n){var r=de(e),i=[D,O].indexOf(r)>=0?-1:1,a="function"===typeof n?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o=o||0,s=(s||0)*i,[D,L].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function Ae(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=void 0===i?[0,0]:i,o=G.reduce(function(e,n){return e[n]=xe(n,t.rects,a),e},{}),s=o[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=o}var Ce={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Ae},Te={left:"right",right:"left",bottom:"top",top:"bottom"};function Ne(e){return e.replace(/left|right|bottom|top/g,function(e){return Te[e]})}var Re={start:"end",end:"start"};function Oe(e){return e.replace(/start|end/g,function(e){return Re[e]})}function Ie(e,t){var n=r(e),i=v(e),a=n.visualViewport,o=i.clientWidth,s=i.clientHeight,l=0,c=0;if(a){o=a.width,s=a.height;var u=d();(u||!u&&"fixed"===t)&&(l=a.offsetLeft,c=a.offsetTop)}return{width:o,height:s,x:l+b(e),y:c}}function Le(e){var t,n=v(e),r=p(e),i=null==(t=e.ownerDocument)?void 0:t.body,a=s(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=s(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-r.scrollLeft+b(e),c=-r.scrollTop;return"rtl"===y(i||n).direction&&(l+=s(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:l,y:c}}function De(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&o(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Pe(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Me(e,t){var n=h(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Be(e,t,n){return t===U?Pe(Ie(e,n)):i(t)?Me(t,n):Pe(Le(v(e)))}function Fe(e){var t=A(k(e)),n=["absolute","fixed"].indexOf(y(e).position)>=0,r=n&&a(e)?R(e):e;return i(r)?t.filter(function(e){return i(e)&&De(e,r)&&"body"!==g(e)}):[]}function $e(e,t,n,r){var i="clippingParents"===t?Fe(e):[].concat(t),a=[].concat(i,[n]),o=a[0],c=a.reduce(function(t,n){var i=Be(e,n,r);return t.top=s(i.top,t.top),t.right=l(i.right,t.right),t.bottom=l(i.bottom,t.bottom),t.left=s(i.left,t.left),t},Be(e,o,r));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function Ue(){return{top:0,right:0,bottom:0,left:0}}function je(e){return Object.assign({},Ue(),e)}function Ve(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function Ke(e,t){void 0===t&&(t={});var n=t,r=n.placement,a=void 0===r?e.placement:r,o=n.strategy,s=void 0===o?e.strategy:o,l=n.boundary,c=void 0===l?$:l,u=n.rootBoundary,d=void 0===u?U:u,p=n.elementContext,f=void 0===p?j:p,m=n.altBoundary,g=void 0!==m&&m,b=n.padding,y=void 0===b?0:b,_=je("number"!==typeof y?y:Ve(y,M)),w=f===j?V:j,E=e.rects.popper,S=e.elements[g?w:f],k=$e(i(S)?S:S.contextElement||v(e.elements.popper),c,d,s),x=h(e.elements.reference),A=fe({reference:x,element:E,strategy:"absolute",placement:a}),C=Pe(Object.assign({},E,A)),T=f===j?C:x,N={top:k.top-T.top+_.top,bottom:T.bottom-k.bottom+_.bottom,left:k.left-T.left+_.left,right:T.right-k.right+_.right},R=e.modifiersData.offset;if(f===j&&R){var D=R[a];Object.keys(N).forEach(function(e){var t=[L,I].indexOf(e)>=0?1:-1,n=[O,I].indexOf(e)>=0?"y":"x";N[e]+=D[n]*t})}return N}function Ge(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?G:l,u=he(r),d=u?s?K:K.filter(function(e){return he(e)===u}):M,h=d.filter(function(e){return c.indexOf(e)>=0});0===h.length&&(h=d);var p=h.reduce(function(t,n){return t[n]=Ke(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[de(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}function He(e){if(de(e)===P)return[];var t=Ne(e);return[Oe(e),t,Oe(t)]}function ze(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=void 0===i||i,o=n.altAxis,s=void 0===o||o,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,f=void 0===p||p,m=n.allowedAutoPlacements,g=t.options.placement,v=de(g),b=v===g,y=l||(b||!f?[Ne(g)]:He(g)),_=[g].concat(y).reduce(function(e,n){return e.concat(de(n)===P?Ge(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:m}):n)},[]),w=t.rects.reference,E=t.rects.popper,S=new Map,k=!0,x=_[0],A=0;A<_.length;A++){var C=_[A],T=de(C),N=he(C)===B,R=[O,I].indexOf(T)>=0,M=R?"width":"height",F=Ke(t,{placement:C,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),$=R?N?L:D:N?I:O;w[M]>E[M]&&($=Ne($));var U=Ne($),j=[];if(a&&j.push(F[T]<=0),s&&j.push(F[$]<=0,F[U]<=0),j.every(function(e){return e})){x=C,k=!1;break}S.set(C,j)}if(k)for(var V=f?3:1,K=function(e){var t=_.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return x=t,"break"},G=V;G>0;G--){var H=K(G);if("break"===H)break}t.placement!==x&&(t.modifiersData[r]._skip=!0,t.placement=x,t.reset=!0)}}var qe={name:"flip",enabled:!0,phase:"main",fn:ze,requiresIfExists:["offset"],data:{_skip:!1}};function Xe(e){return"x"===e?"y":"x"}function We(e,t,n){return s(e,l(t,n))}function Ye(e,t,n){var r=We(e,t,n);return r>n?n:r}function Qe(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=void 0===i||i,o=n.altAxis,c=void 0!==o&&o,u=n.boundary,d=n.rootBoundary,h=n.altBoundary,p=n.padding,f=n.tether,m=void 0===f||f,g=n.tetherOffset,v=void 0===g?0:g,b=Ke(t,{boundary:u,rootBoundary:d,padding:p,altBoundary:h}),y=de(t.placement),_=he(t.placement),w=!_,E=pe(y),k=Xe(E),x=t.modifiersData.popperOffsets,A=t.rects.reference,C=t.rects.popper,T="function"===typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,N="number"===typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(x){if(a){var F,$="y"===E?O:D,U="y"===E?I:L,j="y"===E?"height":"width",V=x[E],K=V+b[$],G=V-b[U],H=m?-C[j]/2:0,z=_===B?A[j]:C[j],q=_===B?-C[j]:-A[j],X=t.elements.arrow,W=m&&X?S(X):{width:0,height:0},Y=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Ue(),Q=Y[$],J=Y[U],Z=We(0,A[j],W[j]),ee=w?A[j]/2-H-Z-Q-N.mainAxis:z-Z-Q-N.mainAxis,te=w?-A[j]/2+H+Z+J+N.mainAxis:q+Z+J+N.mainAxis,ne=t.elements.arrow&&R(t.elements.arrow),re=ne?"y"===E?ne.clientTop||0:ne.clientLeft||0:0,ie=null!=(F=null==P?void 0:P[E])?F:0,ae=V+ee-ie-re,oe=V+te-ie,se=We(m?l(K,ae):K,V,m?s(G,oe):G);x[E]=se,M[E]=se-V}if(c){var le,ce="x"===E?O:D,ue="x"===E?I:L,fe=x[k],me="y"===k?"height":"width",ge=fe+b[ce],ve=fe-b[ue],be=-1!==[O,D].indexOf(y),ye=null!=(le=null==P?void 0:P[k])?le:0,_e=be?ge:fe-A[me]-C[me]-ye+N.altAxis,we=be?fe+A[me]+C[me]-ye-N.altAxis:ve,Ee=m&&be?Ye(_e,fe,we):We(m?_e:ge,fe,m?we:ve);x[k]=Ee,M[k]=Ee-fe}t.modifiersData[r]=M}}var Je={name:"preventOverflow",enabled:!0,phase:"main",fn:Qe,requiresIfExists:["offset"]},Ze=function(e,t){return e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e,je("number"!==typeof e?e:Ve(e,M))};function et(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=de(n.placement),l=pe(s),c=[D,L].indexOf(s)>=0,u=c?"height":"width";if(a&&o){var d=Ze(i.padding,n),h=S(a),p="y"===l?O:D,f="y"===l?I:L,m=n.rects.reference[u]+n.rects.reference[l]-o[l]-n.rects.popper[u],g=o[l]-n.rects.reference[l],v=R(a),b=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,y=m/2-g/2,_=d[p],w=b-h[u]-d[f],E=b/2-h[u]/2+y,k=We(_,E,w),x=l;n.modifiersData[r]=(t={},t[x]=k,t.centerOffset=k-E,t)}}function tt(e){var t=e.state,n=e.options,r=n.element,i=void 0===r?"[data-popper-arrow]":r;null!=i&&("string"!==typeof i||(i=t.elements.popper.querySelector(i),i))&&De(t.elements.popper,i)&&(t.elements.arrow=i)}var nt={name:"arrow",enabled:!0,phase:"main",fn:et,effect:tt,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function rt(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function it(e){return[O,L,I,D].some(function(t){return e[t]>=0})}function at(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=Ke(t,{elementContext:"reference"}),s=Ke(t,{altBoundary:!0}),l=rt(o,r),c=rt(s,i,a),u=it(l),d=it(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var ot={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:at},st=[ue,ge,we,ke,Ce,qe,Je,nt,ot],lt=se({defaultModifiers:st})},19469:function(e,t,n){var r={"./__tests__/opsgenie.spec":91332,"./__tests__/opsgenie.spec.ts":91332,"./__tests__/pagerduty.spec":54293,"./__tests__/pagerduty.spec.ts":54293,"./__tests__/slack.spec":90828,"./__tests__/slack.spec.ts":90828,"./email":51557,"./email.vue":51557,"./opsgenie":72420,"./opsgenie.vue":72420,"./pagerduty":87450,"./pagerduty.vue":87450,"./slack":33427,"./slack.vue":33427,"./webhook":81655,"./webhook.vue":81655};function i(e){var t=a(e);return n(t)}function a(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=a,e.exports=i,i.id=19469},26093:function(e,t,n){"use strict";var r=n(39907),i=n(4364);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,l(r.key),r)}}function s(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(e){var t=c(e,"string");return"symbol"===a(t)?t:String(t)}function c(e,t){if("object"!==a(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var d,h,p=n(41342),f=p.codes,m=f.ERR_AMBIGUOUS_ARGUMENT,g=f.ERR_INVALID_ARG_TYPE,v=f.ERR_INVALID_ARG_VALUE,b=f.ERR_INVALID_RETURN_VALUE,y=f.ERR_MISSING_ARGS,_=n(49801),w=n(49208),E=w.inspect,S=n(49208).types,k=S.isPromise,x=S.isRegExp,A=n(23225)(),C=n(61937)(),T=n(79818)("RegExp.prototype.test");new Map;function N(){var e=n(5656);d=e.isDeepEqual,h=e.isDeepStrictEqual}var R=!1,O=e.exports=M,I={};function L(e){if(e.message instanceof Error)throw e.message;throw new _(e)}function D(e,t,n,a,o){var s,l=arguments.length;if(0===l)s="Failed";else if(1===l)n=e,e=void 0;else{if(!1===R){R=!0;var c=r.emitWarning?r.emitWarning:i.warn.bind(i);c("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}2===l&&(a="!=")}if(n instanceof Error)throw n;var u={actual:e,expected:t,operator:void 0===a?"fail":a,stackStartFn:o||D};void 0!==n&&(u.message=n);var d=new _(u);throw s&&(d.message=s,d.generatedMessage=!0),d}function P(e,t,n,r){if(!n){var i=!1;if(0===t)i=!0,r="No value argument passed to `assert.ok()`";else if(r instanceof Error)throw r;var a=new _({actual:n,expected:!0,message:r,operator:"==",stackStartFn:e});throw a.generatedMessage=i,a}}function M(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];P.apply(void 0,[M,t.length].concat(t))}function B(e,t,n){if(arguments.length<2)throw new y("actual","expected");void 0===d&&N(),h(e,t)&&L({actual:e,expected:t,message:n,operator:"notDeepStrictEqual",stackStartFn:B})}O.fail=D,O.AssertionError=_,O.ok=M,O.equal=function e(t,n,r){if(arguments.length<2)throw new y("actual","expected");t!=n&&L({actual:t,expected:n,message:r,operator:"==",stackStartFn:e})},O.notEqual=function e(t,n,r){if(arguments.length<2)throw new y("actual","expected");t==n&&L({actual:t,expected:n,message:r,operator:"!=",stackStartFn:e})},O.deepEqual=function e(t,n,r){if(arguments.length<2)throw new y("actual","expected");void 0===d&&N(),d(t,n)||L({actual:t,expected:n,message:r,operator:"deepEqual",stackStartFn:e})},O.notDeepEqual=function e(t,n,r){if(arguments.length<2)throw new y("actual","expected");void 0===d&&N(),d(t,n)&&L({actual:t,expected:n,message:r,operator:"notDeepEqual",stackStartFn:e})},O.deepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new y("actual","expected");void 0===d&&N(),h(t,n)||L({actual:t,expected:n,message:r,operator:"deepStrictEqual",stackStartFn:e})},O.notDeepStrictEqual=B,O.strictEqual=function e(t,n,r){if(arguments.length<2)throw new y("actual","expected");C(t,n)||L({actual:t,expected:n,message:r,operator:"strictEqual",stackStartFn:e})},O.notStrictEqual=function e(t,n,r){if(arguments.length<2)throw new y("actual","expected");C(t,n)&&L({actual:t,expected:n,message:r,operator:"notStrictEqual",stackStartFn:e})};var F=s(function e(t,n,r){var i=this;u(this,e),n.forEach(function(e){e in t&&(void 0!==r&&"string"===typeof r[e]&&x(t[e])&&T(t[e],r[e])?i[e]=r[e]:i[e]=t[e])})});function $(e,t,n,r,i,a){if(!(n in e)||!h(e[n],t[n])){if(!r){var o=new F(e,i),s=new F(t,i,e),l=new _({actual:o,expected:s,operator:"deepStrictEqual",stackStartFn:a});throw l.actual=e,l.expected=t,l.operator=a.name,l}L({actual:e,expected:t,message:r,operator:a.name,stackStartFn:a})}}function U(e,t,n,r){if("function"!==typeof t){if(x(t))return T(t,e);if(2===arguments.length)throw new g("expected",["Function","RegExp"],t);if("object"!==a(e)||null===e){var i=new _({actual:e,expected:t,message:n,operator:"deepStrictEqual",stackStartFn:r});throw i.operator=r.name,i}var o=Object.keys(t);if(t instanceof Error)o.push("name","message");else if(0===o.length)throw new v("error",t,"may not be an empty object");return void 0===d&&N(),o.forEach(function(i){"string"===typeof e[i]&&x(t[i])&&T(t[i],e[i])||$(e,t,i,n,o,r)}),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function j(e){if("function"!==typeof e)throw new g("fn","Function",e);try{e()}catch(t){return t}return I}function V(e){return k(e)||null!==e&&"object"===a(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function K(e){return Promise.resolve().then(function(){var t;if("function"===typeof e){if(t=e(),!V(t))throw new b("instance of Promise","promiseFn",t)}else{if(!V(e))throw new g("promiseFn",["Function","Promise"],e);t=e}return Promise.resolve().then(function(){return t}).then(function(){return I}).catch(function(e){return e})})}function G(e,t,n,r){if("string"===typeof n){if(4===arguments.length)throw new g("error",["Object","Error","Function","RegExp"],n);if("object"===a(t)&&null!==t){if(t.message===n)throw new m("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===n)throw new m("error/message",'The error "'.concat(t,'" is identical to the message.'));r=n,n=void 0}else if(null!=n&&"object"!==a(n)&&"function"!==typeof n)throw new g("error",["Object","Error","Function","RegExp"],n);if(t===I){var i="";n&&n.name&&(i+=" (".concat(n.name,")")),i+=r?": ".concat(r):".";var o="rejects"===e.name?"rejection":"exception";L({actual:void 0,expected:n,operator:e.name,message:"Missing expected ".concat(o).concat(i),stackStartFn:e})}if(n&&!U(t,n,r,e))throw t}function H(e,t,n,r){if(t!==I){if("string"===typeof n&&(r=n,n=void 0),!n||U(t,n)){var i=r?": ".concat(r):".",a="doesNotReject"===e.name?"rejection":"exception";L({actual:t,expected:n,operator:e.name,message:"Got unwanted ".concat(a).concat(i,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function z(e,t,n,r,i){if(!x(t))throw new g("regexp","RegExp",t);var o="match"===i;if("string"!==typeof e||T(t,e)!==o){if(n instanceof Error)throw n;var s=!n;n=n||("string"!==typeof e?'The "string" argument must be of type string. Received type '+"".concat(a(e)," (").concat(E(e),")"):(o?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(E(t),". Input:\n\n").concat(E(e),"\n"));var l=new _({actual:e,expected:t,message:n,operator:i,stackStartFn:r});throw l.generatedMessage=s,l}}function q(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];P.apply(void 0,[q,t.length].concat(t))}O.throws=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];G.apply(void 0,[e,j(t)].concat(r))},O.rejects=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return K(t).then(function(t){return G.apply(void 0,[e,t].concat(r))})},O.doesNotThrow=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];H.apply(void 0,[e,j(t)].concat(r))},O.doesNotReject=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return K(t).then(function(t){return H.apply(void 0,[e,t].concat(r))})},O.ifError=function e(t){if(null!==t&&void 0!==t){var n="ifError got unwanted exception: ";"object"===a(t)&&"string"===typeof t.message?0===t.message.length&&t.constructor?n+=t.constructor.name:n+=t.message:n+=E(t);var r=new _({actual:t,expected:null,operator:"ifError",message:n,stackStartFn:e}),i=t.stack;if("string"===typeof i){var o=i.split("\n");o.shift();for(var s=r.stack.split("\n"),l=0;l<o.length;l++){var c=s.indexOf(o[l]);if(-1!==c){s=s.slice(0,c);break}}r.stack="".concat(s.join("\n"),"\n").concat(o.join("\n"))}throw r}},O.match=function e(t,n,r){z(t,n,r,e,"match")},O.doesNotMatch=function e(t,n,r){z(t,n,r,e,"doesNotMatch")},O.strict=A(q,O,{equal:O.strictEqual,deepEqual:O.deepStrictEqual,notEqual:O.notStrictEqual,notDeepEqual:O.notDeepStrictEqual}),O.strict.strict=O.strict},49801:function(e,t,n){"use strict";var r=n(39907);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){o(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function o(e,t,n){return t=u(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,u(r.key),r)}}function c(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e){var t=d(e,"string");return"symbol"===E(t)?t:String(t)}function d(e,t){if("object"!==E(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==E(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function h(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_(e,t)}function p(e){var t=b();return function(){var n,r=w(e);if(t){var i=w(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){if(t&&("object"===E(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return m(e)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){var t="function"===typeof Map?new Map:void 0;return g=function(e){if(null===e||!y(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return v(e,arguments,w(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),_(n,e)},g(e)}function v(e,t,n){return v=b()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=Function.bind.apply(e,r),a=new i;return n&&_(a,n.prototype),a},v.apply(null,arguments)}function b(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function y(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function _(e,t){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_(e,t)}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}var S=n(49208),k=S.inspect,x=n(41342),A=x.codes.ERR_INVALID_ARG_TYPE;function C(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}function T(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var n=e.length*t;t=Math.floor(Math.log(t)/Math.log(2));while(t)e+=e,t--;return e+=e.substring(0,n-e.length),e}var N="",R="",O="",I="",L={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},D=10;function P(e){var t=Object.keys(e),n=Object.create(Object.getPrototypeOf(e));return t.forEach(function(t){n[t]=e[t]}),Object.defineProperty(n,"message",{value:e.message}),n}function M(e){return k(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function B(e,t,n){var i="",a="",o=0,s="",l=!1,c=M(e),u=c.split("\n"),d=M(t).split("\n"),h=0,p="";if("strictEqual"===n&&"object"===E(e)&&"object"===E(t)&&null!==e&&null!==t&&(n="strictEqualObject"),1===u.length&&1===d.length&&u[0]!==d[0]){var f=u[0].length+d[0].length;if(f<=D){if(("object"!==E(e)||null===e)&&("object"!==E(t)||null===t)&&(0!==e||0!==t))return"".concat(L[n],"\n\n")+"".concat(u[0]," !== ").concat(d[0],"\n")}else if("strictEqualObject"!==n){var m=r.stderr&&r.stderr.isTTY?r.stderr.columns:80;if(f<m){while(u[0][h]===d[0][h])h++;h>2&&(p="\n ".concat(T(" ",h),"^"),h=0)}}}var g=u[u.length-1],v=d[d.length-1];while(g===v){if(h++<2?s="\n ".concat(g).concat(s):i=g,u.pop(),d.pop(),0===u.length||0===d.length)break;g=u[u.length-1],v=d[d.length-1]}var b=Math.max(u.length,d.length);if(0===b){var y=c.split("\n");if(y.length>30){y[26]="".concat(N,"...").concat(I);while(y.length>27)y.pop()}return"".concat(L.notIdentical,"\n\n").concat(y.join("\n"),"\n")}h>3&&(s="\n".concat(N,"...").concat(I).concat(s),l=!0),""!==i&&(s="\n ".concat(i).concat(s),i="");var _=0,w=L[n]+"\n".concat(R,"+ actual").concat(I," ").concat(O,"- expected").concat(I),S=" ".concat(N,"...").concat(I," Lines skipped");for(h=0;h<b;h++){var k=h-o;if(u.length<h+1)k>1&&h>2&&(k>4?(a+="\n".concat(N,"...").concat(I),l=!0):k>3&&(a+="\n ".concat(d[h-2]),_++),a+="\n ".concat(d[h-1]),_++),o=h,i+="\n".concat(O,"-").concat(I," ").concat(d[h]),_++;else if(d.length<h+1)k>1&&h>2&&(k>4?(a+="\n".concat(N,"...").concat(I),l=!0):k>3&&(a+="\n ".concat(u[h-2]),_++),a+="\n ".concat(u[h-1]),_++),o=h,a+="\n".concat(R,"+").concat(I," ").concat(u[h]),_++;else{var x=d[h],A=u[h],P=A!==x&&(!C(A,",")||A.slice(0,-1)!==x);P&&C(x,",")&&x.slice(0,-1)===A&&(P=!1,A+=","),P?(k>1&&h>2&&(k>4?(a+="\n".concat(N,"...").concat(I),l=!0):k>3&&(a+="\n ".concat(u[h-2]),_++),a+="\n ".concat(u[h-1]),_++),o=h,a+="\n".concat(R,"+").concat(I," ").concat(A),i+="\n".concat(O,"-").concat(I," ").concat(x),_+=2):(a+=i,i="",1!==k&&0!==h||(a+="\n ".concat(A),_++))}if(_>20&&h<b-2)return"".concat(w).concat(S,"\n").concat(a,"\n").concat(N,"...").concat(I).concat(i,"\n")+"".concat(N,"...").concat(I)}return"".concat(w).concat(l?S:"","\n").concat(a).concat(i).concat(s).concat(p)}var F=function(e,t){h(i,e);var n=p(i);function i(e){var t;if(s(this,i),"object"!==E(e)||null===e)throw new A("options","Object",e);var a=e.message,o=e.operator,l=e.stackStartFn,c=e.actual,u=e.expected,d=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=a)t=n.call(this,String(a));else if(r.stderr&&r.stderr.isTTY&&(r.stderr&&r.stderr.getColorDepth&&1!==r.stderr.getColorDepth()?(N="[34m",R="[32m",I="[39m",O="[31m"):(N="",R="",I="",O="")),"object"===E(c)&&null!==c&&"object"===E(u)&&null!==u&&"stack"in c&&c instanceof Error&&"stack"in u&&u instanceof Error&&(c=P(c),u=P(u)),"deepStrictEqual"===o||"strictEqual"===o)t=n.call(this,B(c,u,o));else if("notDeepStrictEqual"===o||"notStrictEqual"===o){var h=L[o],p=M(c).split("\n");if("notStrictEqual"===o&&"object"===E(c)&&null!==c&&(h=L.notStrictEqualObject),p.length>30){p[26]="".concat(N,"...").concat(I);while(p.length>27)p.pop()}t=1===p.length?n.call(this,"".concat(h," ").concat(p[0])):n.call(this,"".concat(h,"\n\n").concat(p.join("\n"),"\n"))}else{var g=M(c),v="",b=L[o];"notDeepEqual"===o||"notEqual"===o?(g="".concat(L[o],"\n\n").concat(g),g.length>1024&&(g="".concat(g.slice(0,1021),"..."))):(v="".concat(M(u)),g.length>512&&(g="".concat(g.slice(0,509),"...")),v.length>512&&(v="".concat(v.slice(0,509),"...")),"deepEqual"===o||"equal"===o?g="".concat(b,"\n\n").concat(g,"\n\nshould equal\n\n"):v=" ".concat(o," ").concat(v)),t=n.call(this,"".concat(g).concat(v))}return Error.stackTraceLimit=d,t.generatedMessage=!a,Object.defineProperty(m(t),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),t.code="ERR_ASSERTION",t.actual=c,t.expected=u,t.operator=o,Error.captureStackTrace&&Error.captureStackTrace(m(t),l),t.stack,t.name="AssertionError",f(t)}return c(i,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:t,value:function(e,t){return k(this,a(a({},t),{},{customInspect:!1,depth:0}))}}]),i}(g(Error),k.custom);e.exports=F},41342:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function o(e){var t=s(e,"string");return"symbol"===r(t)?t:String(t)}function s(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function d(e){var t=f();return function(){var n,r=m(e);if(t){var i=m(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return p(e)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}var g,v,b={};function y(e,t,n){function r(e,n,r){return"string"===typeof t?t:t(e,n,r)}n||(n=Error);var i=function(t){c(i,t);var n=d(i);function i(t,a,o){var s;return l(this,i),s=n.call(this,r(t,a,o)),s.code=e,s}return a(i)}(n);b[e]=i}function _(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map(function(e){return String(e)}),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}function w(e,t,n){return e.substr(!n||n<0?0:+n,t.length)===t}function E(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}function S(e,t,n){return"number"!==typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}y("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),y("ERR_INVALID_ARG_TYPE",function(e,t,i){var a,o;if(void 0===g&&(g=n(26093)),g("string"===typeof e,"'name' must be a string"),"string"===typeof t&&w(t,"not ")?(a="must not be",t=t.replace(/^not /,"")):a="must be",E(e," argument"))o="The ".concat(e," ").concat(a," ").concat(_(t,"type"));else{var s=S(e,".")?"property":"argument";o='The "'.concat(e,'" ').concat(s," ").concat(a," ").concat(_(t,"type"))}return o+=". Received type ".concat(r(i)),o},TypeError),y("ERR_INVALID_ARG_VALUE",function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===v&&(v=n(49208));var i=v.inspect(t);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(i)},TypeError,RangeError),y("ERR_INVALID_RETURN_VALUE",function(e,t,n){var i;return i=n&&n.constructor&&n.constructor.name?"instance of ".concat(n.constructor.name):"type ".concat(r(n)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(i,".")},TypeError),y("ERR_MISSING_ARGS",function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];void 0===g&&(g=n(26093)),g(t.length>0,"At least one arg needs to be specified");var i="The ",a=t.length;switch(t=t.map(function(e){return'"'.concat(e,'"')}),a){case 1:i+="".concat(t[0]," argument");break;case 2:i+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:i+=t.slice(0,a-1).join(", "),i+=", and ".concat(t[a-1]," arguments");break}return"".concat(i," must be specified")},TypeError),e.exports.codes=b},5656:function(e,t,n){"use strict";function r(e,t){return l(e)||s(e,t)||a(e,t)||i()}function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(e,t){if(e){if("string"===typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function l(e){if(Array.isArray(e))return e}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}var u=void 0!==/a/g.flags,d=function(e){var t=[];return e.forEach(function(e){return t.push(e)}),t},h=function(e){var t=[];return e.forEach(function(e,n){return t.push([n,e])}),t},p=Object.is?Object.is:n(55968),f=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},m=Number.isNaN?Number.isNaN:n(7838);function g(e){return e.call.bind(e)}var v=g(Object.prototype.hasOwnProperty),b=g(Object.prototype.propertyIsEnumerable),y=g(Object.prototype.toString),_=n(49208).types,w=_.isAnyArrayBuffer,E=_.isArrayBufferView,S=_.isDate,k=_.isMap,x=_.isRegExp,A=_.isSet,C=_.isNativeError,T=_.isBoxedPrimitive,N=_.isNumberObject,R=_.isStringObject,O=_.isBooleanObject,I=_.isBigIntObject,L=_.isSymbolObject,D=_.isFloat32Array,P=_.isFloat64Array;function M(e){if(0===e.length||e.length>10)return!0;for(var t=0;t<e.length;t++){var n=e.charCodeAt(t);if(n<48||n>57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function B(e){return Object.keys(e).filter(M).concat(f(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}
|
||
/*!
|
||
* The buffer module from node.js, for the browser.
|
||
*
|
||
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
||
* @license MIT
|
||
*/function F(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0}var $=void 0,U=!0,j=!1,V=0,K=1,G=2,H=3;function z(e,t){return u?e.source===t.source&&e.flags===t.flags:RegExp.prototype.toString.call(e)===RegExp.prototype.toString.call(t)}function q(e,t){if(e.byteLength!==t.byteLength)return!1;for(var n=0;n<e.byteLength;n++)if(e[n]!==t[n])return!1;return!0}function X(e,t){return e.byteLength===t.byteLength&&0===F(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function W(e,t){return e.byteLength===t.byteLength&&0===F(new Uint8Array(e),new Uint8Array(t))}function Y(e,t){return N(e)?N(t)&&p(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(t)):R(e)?R(t)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(t):O(e)?O(t)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(t):I(e)?I(t)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(t):L(t)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(t)}function Q(e,t,n,r){if(e===t)return 0!==e||(!n||p(e,t));if(n){if("object"!==c(e))return"number"===typeof e&&m(e)&&m(t);if("object"!==c(t)||null===e||null===t)return!1;if(Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(null===e||"object"!==c(e))return(null===t||"object"!==c(t))&&e==t;if(null===t||"object"!==c(t))return!1}var i=y(e),a=y(t);if(i!==a)return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var o=B(e,$),s=B(t,$);return o.length===s.length&&Z(e,t,n,r,K,o)}if("[object Object]"===i&&(!k(e)&&k(t)||!A(e)&&A(t)))return!1;if(S(e)){if(!S(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(x(e)){if(!x(t)||!z(e,t))return!1}else if(C(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else{if(E(e)){if(n||!D(e)&&!P(e)){if(!X(e,t))return!1}else if(!q(e,t))return!1;var l=B(e,$),u=B(t,$);return l.length===u.length&&Z(e,t,n,r,V,l)}if(A(e))return!(!A(t)||e.size!==t.size)&&Z(e,t,n,r,G);if(k(e))return!(!k(t)||e.size!==t.size)&&Z(e,t,n,r,H);if(w(e)){if(!W(e,t))return!1}else if(T(e)&&!Y(e,t))return!1}return Z(e,t,n,r,V)}function J(e,t){return t.filter(function(t){return b(e,t)})}function Z(e,t,n,r,i,a){if(5===arguments.length){a=Object.keys(e);var o=Object.keys(t);if(a.length!==o.length)return!1}for(var s=0;s<a.length;s++)if(!v(t,a[s]))return!1;if(n&&5===arguments.length){var l=f(e);if(0!==l.length){var c=0;for(s=0;s<l.length;s++){var u=l[s];if(b(e,u)){if(!b(t,u))return!1;a.push(u),c++}else if(b(t,u))return!1}var d=f(t);if(l.length!==d.length&&J(t,d).length!==c)return!1}else{var h=f(t);if(0!==h.length&&0!==J(t,h).length)return!1}}if(0===a.length&&(i===V||i===K&&0===e.length||0===e.size))return!0;if(void 0===r)r={val1:new Map,val2:new Map,position:0};else{var p=r.val1.get(e);if(void 0!==p){var m=r.val2.get(t);if(void 0!==m)return p===m}r.position++}r.val1.set(e,r.position),r.val2.set(t,r.position);var g=se(e,t,n,a,r,i);return r.val1.delete(e),r.val2.delete(t),g}function ee(e,t,n,r){for(var i=d(e),a=0;a<i.length;a++){var o=i[a];if(Q(t,o,n,r))return e.delete(o),!0}return!1}function te(e){switch(c(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e=+e;case"number":if(m(e))return!1}return!0}function ne(e,t,n){var r=te(n);return null!=r?r:t.has(r)&&!e.has(r)}function re(e,t,n,r,i){var a=te(n);if(null!=a)return a;var o=t.get(a);return!(void 0===o&&!t.has(a)||!Q(r,o,!1,i))&&(!e.has(a)&&Q(r,o,!1,i))}function ie(e,t,n,r){for(var i=null,a=d(e),o=0;o<a.length;o++){var s=a[o];if("object"===c(s)&&null!==s)null===i&&(i=new Set),i.add(s);else if(!t.has(s)){if(n)return!1;if(!ne(e,t,s))return!1;null===i&&(i=new Set),i.add(s)}}if(null!==i){for(var l=d(t),u=0;u<l.length;u++){var h=l[u];if("object"===c(h)&&null!==h){if(!ee(i,h,n,r))return!1}else if(!n&&!e.has(h)&&!ee(i,h,n,r))return!1}return 0===i.size}return!0}function ae(e,t,n,r,i,a){for(var o=d(e),s=0;s<o.length;s++){var l=o[s];if(Q(n,l,i,a)&&Q(r,t.get(l),i,a))return e.delete(l),!0}return!1}function oe(e,t,n,i){for(var a=null,o=h(e),s=0;s<o.length;s++){var l=r(o[s],2),u=l[0],d=l[1];if("object"===c(u)&&null!==u)null===a&&(a=new Set),a.add(u);else{var p=t.get(u);if(void 0===p&&!t.has(u)||!Q(d,p,n,i)){if(n)return!1;if(!re(e,t,u,d,i))return!1;null===a&&(a=new Set),a.add(u)}}}if(null!==a){for(var f=h(t),m=0;m<f.length;m++){var g=r(f[m],2),v=g[0],b=g[1];if("object"===c(v)&&null!==v){if(!ae(a,e,v,b,n,i))return!1}else if(!n&&(!e.has(v)||!Q(e.get(v),b,!1,i))&&!ae(a,e,v,b,!1,i))return!1}return 0===a.size}return!0}function se(e,t,n,r,i,a){var o=0;if(a===G){if(!ie(e,t,n,i))return!1}else if(a===H){if(!oe(e,t,n,i))return!1}else if(a===K)for(;o<e.length;o++){if(!v(e,o)){if(v(t,o))return!1;for(var s=Object.keys(e);o<s.length;o++){var l=s[o];if(!v(t,l)||!Q(e[l],t[l],n,i))return!1}return s.length===Object.keys(t).length}if(!v(t,o)||!Q(e[o],t[o],n,i))return!1}for(o=0;o<r.length;o++){var c=r[o];if(!Q(e[c],t[c],n,i))return!1}return!0}function le(e,t){return Q(e,t,j)}function ce(e,t){return Q(e,t,U)}e.exports={isDeepEqual:le,isDeepStrictEqual:ce}},7991:function(e,t){"use strict";t.byteLength=c,t.toByteArray=d,t.fromByteArray=f;for(var n=[],r=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,s=a.length;o<s;++o)n[o]=a[o],r[a.charCodeAt(o)]=o;function l(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("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function c(e){var t=l(e),n=t[0],r=t[1];return 3*(n+r)/4-r}function u(e,t,n){return 3*(t+n)/4-n}function d(e){var t,n,a=l(e),o=a[0],s=a[1],c=new i(u(e,o,s)),d=0,h=s>0?o-4:o;for(n=0;n<h;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],c[d++]=t>>16&255,c[d++]=t>>8&255,c[d++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[d++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[d++]=t>>8&255,c[d++]=255&t),c}function h(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function p(e,t,n){for(var r,i=[],a=t;a<n;a+=3)r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),i.push(h(r));return i.join("")}function f(e){for(var t,r=e.length,i=r%3,a=[],o=16383,s=0,l=r-i;s<l;s+=o)a.push(p(e,s,s+o>l?l:s+o));return 1===i?(t=e[r-1],a.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],a.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},1048:function(e,t,n){"use strict";var r=n(4364),i=n(7991),a=n(39318),o="function"===typeof Symbol&&"function"===typeof Symbol["for"]?Symbol["for"]("nodejs.util.inspect.custom"):null;
|
||
/*!
|
||
* The buffer module from node.js, for the browser.
|
||
*
|
||
* @author Feross Aboukhadijeh <https://feross.org>
|
||
* @license MIT
|
||
*/t.Buffer=u,t.SlowBuffer=w,t.INSPECT_MAX_BYTES=50;var s=2147483647;function l(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(n){return!1}}function c(e){if(e>s)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,n){if("number"===typeof e){if("string"===typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return f(e)}return d(e,t,n)}function d(e,t,n){if("string"===typeof e)return m(e,t);if(ArrayBuffer.isView(e))return v(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(J(e,ArrayBuffer)||e&&J(e.buffer,ArrayBuffer))return b(e,t,n);if("undefined"!==typeof SharedArrayBuffer&&(J(e,SharedArrayBuffer)||e&&J(e.buffer,SharedArrayBuffer)))return b(e,t,n);if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return u.from(r,t,n);var i=y(e);if(i)return i;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof e[Symbol.toPrimitive])return u.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function h(e){if("number"!==typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function p(e,t,n){return h(e),e<=0?c(e):void 0!==t?"string"===typeof n?c(e).fill(t,n):c(e).fill(t):c(e)}function f(e){return h(e),c(e<0?0:0|_(e))}function m(e,t){if("string"===typeof t&&""!==t||(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|E(e,t),r=c(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}function g(e){for(var t=e.length<0?0:0|_(e.length),n=c(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function v(e){if(J(e,Uint8Array)){var t=new Uint8Array(e);return b(t.buffer,t.byteOffset,t.byteLength)}return g(e)}function b(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');var r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,u.prototype),r}function y(e){if(u.isBuffer(e)){var t=0|_(e.length),n=c(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!==typeof e.length||Z(e.length)?c(0):g(e):"Buffer"===e.type&&Array.isArray(e.data)?g(e.data):void 0}function _(e){if(e>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|e}function w(e){return+e!=e&&(e=0),u.alloc(+e)}function E(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||J(e,ArrayBuffer))return e.byteLength;if("string"!==typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Y(e).length;default:if(i)return r?-1:q(e).length;t=(""+t).toLowerCase(),i=!0}}function S(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return F(this,t,n);case"utf8":case"utf-8":return L(this,t,n);case"ascii":return M(this,t,n);case"latin1":case"binary":return B(this,t,n);case"base64":return I(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function k(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function x(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,Z(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:A(e,t,n,r,i);if("number"===typeof t)return t&=255,"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):A(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function A(e,t,n,r,i){var a,o=1,s=e.length,l=t.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,l/=2,n/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var u=-1;for(a=n;a<s;a++)if(c(e,a)===c(t,-1===u?0:a-u)){if(-1===u&&(u=a),a-u+1===l)return u*o}else-1!==u&&(a-=a-u),u=-1}else for(n+l>s&&(n=s-l),a=n;a>=0;a--){for(var d=!0,h=0;h<l;h++)if(c(e,a+h)!==c(t,h)){d=!1;break}if(d)return a}return-1}function C(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;var a=t.length;r>a/2&&(r=a/2);for(var o=0;o<r;++o){var s=parseInt(t.substr(2*o,2),16);if(Z(s))return o;e[n+o]=s}return o}function T(e,t,n,r){return Q(q(t,e.length-n),e,n,r)}function N(e,t,n,r){return Q(X(t),e,n,r)}function R(e,t,n,r){return Q(Y(t),e,n,r)}function O(e,t,n,r){return Q(W(t,e.length-n),e,n,r)}function I(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function L(e,t,n){n=Math.min(e.length,n);var r=[],i=t;while(i<n){var a,o,s,l,c=e[i],u=null,d=c>239?4:c>223?3:c>191?2:1;if(i+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:a=e[i+1],128===(192&a)&&(l=(31&c)<<6|63&a,l>127&&(u=l));break;case 3:a=e[i+1],o=e[i+2],128===(192&a)&&128===(192&o)&&(l=(15&c)<<12|(63&a)<<6|63&o,l>2047&&(l<55296||l>57343)&&(u=l));break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],128===(192&a)&&128===(192&o)&&128===(192&s)&&(l=(15&c)<<18|(63&a)<<12|(63&o)<<6|63&s,l>65535&&l<1114112&&(u=l))}null===u?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=d}return P(r)}t.kMaxLength=s,u.TYPED_ARRAY_SUPPORT=l(),u.TYPED_ARRAY_SUPPORT||"undefined"===typeof r||"function"!==typeof r.error||r.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."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(e,t,n){return d(e,t,n)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(e,t,n){return p(e,t,n)},u.allocUnsafe=function(e){return f(e)},u.allocUnsafeSlow=function(e){return f(e)},u.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==u.prototype},u.compare=function(e,t){if(J(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),J(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},u.isEncoding=function(e){switch(String(e).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}},u.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=u.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(J(a,Uint8Array))i+a.length>r.length?u.from(a).copy(r,i):Uint8Array.prototype.set.call(r,a,i);else{if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i)}i+=a.length}return r},u.byteLength=E,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)k(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)k(this,t,t+3),k(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)k(this,t,t+7),k(this,t+1,t+6),k(this,t+2,t+5),k(this,t+3,t+4);return this},u.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?L(this,0,e):S.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},o&&(u.prototype[o]=u.prototype.inspect),u.prototype.compare=function(e,t,n,r,i){if(J(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var a=i-r,o=n-t,s=Math.min(a,o),l=this.slice(r,i),c=e.slice(t,n),d=0;d<s;++d)if(l[d]!==c[d]){a=l[d],o=c[d];break}return a<o?-1:o<a?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return x(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return x(this,e,t,n,!1)},u.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return C(this,e,t,n);case"utf8":case"utf-8":return T(this,e,t,n);case"ascii":case"latin1":case"binary":return N(this,e,t,n);case"base64":return R(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var D=4096;function P(e){var t=e.length;if(t<=D)return String.fromCharCode.apply(String,e);var n="",r=0;while(r<t)n+=String.fromCharCode.apply(String,e.slice(r,r+=D));return n}function M(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function B(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function F(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",a=t;a<n;++a)i+=ee[e[a]];return i}function $(e,t,n){for(var r=e.slice(t,n),i="",a=0;a<r.length-1;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}function U(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function j(e,t,n,r,i,a){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function V(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function K(e,t,n,r,i){return t=+t,n>>>=0,i||V(e,t,n,4,34028234663852886e22,-34028234663852886e22),a.write(e,t,n,r,23,4),n+4}function G(e,t,n,r,i){return t=+t,n>>>=0,i||V(e,t,n,8,17976931348623157e292,-17976931348623157e292),a.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return Object.setPrototypeOf(r,u.prototype),r},u.prototype.readUintLE=u.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||U(e,t,this.length);var r=this[e],i=1,a=0;while(++a<t&&(i*=256))r+=this[e+a]*i;return r},u.prototype.readUintBE=u.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||U(e,t,this.length);var r=this[e+--t],i=1;while(t>0&&(i*=256))r+=this[e+--t]*i;return r},u.prototype.readUint8=u.prototype.readUInt8=function(e,t){return e>>>=0,t||U(e,1,this.length),this[e]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(e,t){return e>>>=0,t||U(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(e,t){return e>>>=0,t||U(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(e,t){return e>>>=0,t||U(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(e,t){return e>>>=0,t||U(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||U(e,t,this.length);var r=this[e],i=1,a=0;while(++a<t&&(i*=256))r+=this[e+a]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||U(e,t,this.length);var r=t,i=1,a=this[e+--r];while(r>0&&(i*=256))a+=this[e+--r]*i;return i*=128,a>=i&&(a-=Math.pow(2,8*t)),a},u.prototype.readInt8=function(e,t){return e>>>=0,t||U(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){e>>>=0,t||U(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){e>>>=0,t||U(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return e>>>=0,t||U(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return e>>>=0,t||U(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return e>>>=0,t||U(e,4,this.length),a.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return e>>>=0,t||U(e,4,this.length),a.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return e>>>=0,t||U(e,8,this.length),a.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return e>>>=0,t||U(e,8,this.length),a.read(this,e,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;j(this,e,t,n,i,0)}var a=1,o=0;this[t]=255&e;while(++o<n&&(a*=256))this[t+o]=e/a&255;return t+n},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;j(this,e,t,n,i,0)}var a=n-1,o=1;this[t+a]=255&e;while(--a>=0&&(o*=256))this[t+a]=e/o&255;return t+n},u.prototype.writeUint8=u.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,1,255,0),this[t]=255&e,t+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);j(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;this[t]=255&e;while(++a<n&&(o*=256))e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o|0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);j(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;this[t+a]=255&e;while(--a>=0&&(o*=256))e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o|0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeFloatLE=function(e,t,n){return K(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return K(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return G(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return G(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(!u.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;return this===e&&"function"===typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},u.prototype.fill=function(e,t,n,r){if("string"===typeof e){if("string"===typeof t?(r=t,t=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){var i=e.charCodeAt(0);("utf8"===r&&i<128||"latin1"===r)&&(e=i)}}else"number"===typeof e?e&=255:"boolean"===typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(a=t;a<n;++a)this[a]=e;else{var o=u.isBuffer(e)?e:u.from(e,r),s=o.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<n-t;++a)this[a+t]=o[a%s]}return this};var H=/[^+/0-9A-Za-z-_]/g;function z(e){if(e=e.split("=")[0],e=e.trim().replace(H,""),e.length<2)return"";while(e.length%4!==0)e+="=";return e}function q(e,t){var n;t=t||1/0;for(var r=e.length,i=null,a=[],o=0;o<r;++o){if(n=e.charCodeAt(o),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function X(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function W(e,t){for(var n,r,i,a=[],o=0;o<e.length;++o){if((t-=2)<0)break;n=e.charCodeAt(o),r=n>>8,i=n%256,a.push(i),a.push(r)}return a}function Y(e){return i.toByteArray(z(e))}function Q(e,t,n,r){for(var i=0;i<r;++i){if(i+n>=t.length||i>=e.length)break;t[i+n]=e[i]}return i}function J(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Z(e){return e!==e}var ee=function(){for(var e="0123456789abcdef",t=new Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t}()},30049:function(e){e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},89366:function(e,t,n){"use strict";n.d(t,{Ep:function(){return s},nx:function(){return o},R7:function(){return u},te:function(){return c}});var r=n(65359);async function i(e){let t;const n={headers:{accept:"application/yaml"}};return e.hasLink("view")&&(t=(await e.followLink("view",n)).data),e.cleanForDownload(t)}var a=n(9274);async function o(e){const t=await i(e);return{resource:e,yaml:t}}function s(e){const t=(0,r.Pj)();if(t.getters["type-map/hasCustomEdit"](e.type)&&t.getters["type-map/hasCustomDetail"](e.type)&&!e.disableResourceDetailDrawerConfigTab)return{resource:e,component:t.getters["type-map/importEdit"](e.type),resourceType:e.type}}const l="isInResourceDetailDrawerKey";function c(){(0,a.provide)(l,!0)}function u(){return(0,a.inject)(l,!1)}},6855:function(e,t,n){"use strict";n.d(t,{GD:function(){return i}});n(95457),n(35664);var r=n(8187);n(9274);function i(e,t,n="stateSimpleColor",i="stateDisplay",a){const o={};t.forEach(e=>{const t=e[i]?.toLowerCase(),r=e[n]||"disabled";o[t]=o[t]||{color:r,label:t,count:0},o[t].count++});const s=Object.values(o);return s.sort((e,t)=>(0,r.Ky)(e.color,t.color)?-1:e.color!==t.color?1:e.count===t.count?0:e.count>t.count?-1:1),{label:e,color:s.length?s[0].color:void 0,counts:s.length?s:void 0,to:a}}},44544:function(e,t,n){"use strict";n.d(t,{Dg:function(){return u},qz:function(){return c},wi:function(){return l}});var r=n(92043),i=n(45250),a=n(9274);const o="update-count",s="is-inside-resource-tabs",l=()=>{(0,a.provide)(s,!0)},c=()=>{if(!(0,a.inject)(s,!1))return{isCountVisible:(0,a.ref)(!1)};const e=(0,a.ref)({}),t=(0,a.computed)(()=>Object.keys(e.value).length>0),n=(0,a.computed)(()=>(0,i.sum)(Object.values(e.value).map(e=>e||0))),r=(t,n)=>{e.value[t]=n};return(0,a.provide)(o,r),{isCountVisible:t,count:n}},u=()=>{const e=(0,r.vx)(),t=(0,a.inject)(o,()=>{}),n=n=>{t(e,n)},i=()=>n(void 0);return{updateTabCount:n,clearTabCount:i}}},3889:function(e,t,n){"use strict";n.d(t,{UN:function(){return o},cB:function(){return s},eD:function(){return l},wQ:function(){return c}});var r=n(9274);const i="isInResourceEditKey",a="isInResourceCreateKey";function o(){return(0,r.inject)(i,!1)}function s(){return(0,r.inject)(a,!1)}function l(){(0,r.provide)(i,!0)}function c(){(0,r.provide)(a,!0)}},82149:function(e,t,n){"use strict";n.d(t,{mG:function(){return se},$4:function(){return oe},kS:function(){return le},ve:function(){return ce}});var r=n(9274),i=n(4364),a=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],o=a.join(","),s="undefined"===typeof Element,l=s?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,c=!s&&Element.prototype.getRootNode?function(e){var t;return null===e||void 0===e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null===e||void 0===e?void 0:e.ownerDocument},u=function(e,t){var n;void 0===t&&(t=!0);var r=null===e||void 0===e||null===(n=e.getAttribute)||void 0===n?void 0:n.call(e,"inert"),i=""===r||"true"===r,a=i||t&&e&&("function"===typeof e.closest?e.closest("[inert]"):u(e.parentNode));return a},d=function(e){var t,n=null===e||void 0===e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n},h=function(e,t,n){if(u(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(o));return t&&l.call(e,o)&&r.unshift(e),r=r.filter(n),r},p=function(e,t,n){var r=[],i=Array.from(e);while(i.length){var a=i.shift();if(!u(a,!1))if("SLOT"===a.tagName){var s=a.assignedElements(),c=s.length?s:a.children,d=p(c,!0,n);n.flatten?r.push.apply(r,d):r.push({scopeParent:a,candidates:d})}else{var h=l.call(a,o);h&&n.filter(a)&&(t||!e.includes(a))&&r.push(a);var f=a.shadowRoot||"function"===typeof n.getShadowRoot&&n.getShadowRoot(a),m=!u(f,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(f&&m){var g=p(!0===f?a.children:f.children,!0,n);n.flatten?r.push.apply(r,g):r.push({scopeParent:a,candidates:g})}else i.unshift.apply(i,a.children)}}return r},f=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},m=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||d(e))&&!f(e)?0:e.tabIndex},g=function(e,t){var n=m(e);return n<0&&t&&!f(e)?0:n},v=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},b=function(e){return"INPUT"===e.tagName},y=function(e){return b(e)&&"hidden"===e.type},_=function(e){var t="DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName});return t},w=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},E=function(e){if(!e.name)return!0;var t,n=e.form||c(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!==typeof window&&"undefined"!==typeof window.CSS&&"function"===typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(o){return i.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",o.message),!1}var a=w(t,e.form);return!a||a===e},S=function(e){return b(e)&&"radio"===e.type},k=function(e){return S(e)&&!E(e)},x=function(e){var t,n=e&&c(e),r=null===(t=n)||void 0===t?void 0:t.host,i=!1;if(n&&n!==e){var a,o,s;i=!!(null!==(a=r)&&void 0!==a&&null!==(o=a.ownerDocument)&&void 0!==o&&o.contains(r)||null!==e&&void 0!==e&&null!==(s=e.ownerDocument)&&void 0!==s&&s.contains(e));while(!i&&r){var l,u,d;n=c(r),r=null===(l=n)||void 0===l?void 0:l.host,i=!(null===(u=r)||void 0===u||null===(d=u.ownerDocument)||void 0===d||!d.contains(r))}}return i},A=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},C=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("full-native"===n&&"checkVisibility"in e){var i=e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!i}if("hidden"===getComputedStyle(e).visibility)return!0;var a=l.call(e,"details>summary:first-of-type"),o=a?e.parentElement:e;if(l.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return A(e)}else{if("function"===typeof r){var s=e;while(e){var u=e.parentElement,d=c(e);if(u&&!u.shadowRoot&&!0===r(u))return A(e);e=e.assignedSlot?e.assignedSlot:u||d===e.ownerDocument?u:d.host}e=s}if(x(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},T=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName)){var t=e.parentElement;while(t){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!l.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}}return!1},N=function(e,t){return!(t.disabled||y(t)||C(t,e)||_(t)||T(t))},R=function(e,t){return!(k(t)||m(t)<0||!N(e,t))},O=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},I=function(e){var t=[],n=[];return e.forEach(function(e,r){var i=!!e.scopeParent,a=i?e.scopeParent:e,o=g(a,i),s=i?I(e.candidates):a;0===o?i?t.push.apply(t,s):t.push(a):n.push({documentOrder:r,tabIndex:o,item:e,isScope:i,content:s})}),n.sort(v).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},L=function(e,t){var n;return t=t||{},n=t.getShadowRoot?p([e],t.includeContainer,{filter:R.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:O}):h(e,t.includeContainer,R.bind(null,t)),I(n)},D=function(e,t){var n;return t=t||{},n=t.getShadowRoot?p([e],t.includeContainer,{filter:N.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):h(e,t.includeContainer,N.bind(null,t)),n},P=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==l.call(e,o)&&R(t,e)},M=a.concat("iframe:not([inert]):not([inert] *)").join(","),B=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==l.call(e,M)&&N(t,e)};
|
||
/*!
|
||
* focus-trap 7.6.5
|
||
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
||
*/
|
||
function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function $(e){if(Array.isArray(e))return F(e)}function U(e,t,n){return(t=q(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function V(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function K(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function G(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?K(Object(n),!0).forEach(function(t){U(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function H(e){return $(e)||j(e)||X(e)||V()}function z(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function q(e){var t=z(e,"string");return"symbol"==typeof t?t:t+""}function X(e,t){if(e){if("string"==typeof e)return F(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?F(e,t):void 0}}var W={activateTrap:function(e,t){if(e.length>0){var n=e[e.length-1];n!==t&&n._setPausedState(!0)}var r=e.indexOf(t);-1===r||e.splice(r,1),e.push(t)},deactivateTrap:function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1),e.length>0&&!e[e.length-1]._isManuallyPaused()&&e[e.length-1]._setPausedState(!1)}},Y=function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"===typeof e.select},Q=function(e){return"Escape"===(null===e||void 0===e?void 0:e.key)||"Esc"===(null===e||void 0===e?void 0:e.key)||27===(null===e||void 0===e?void 0:e.keyCode)},J=function(e){return"Tab"===(null===e||void 0===e?void 0:e.key)||9===(null===e||void 0===e?void 0:e.keyCode)},Z=function(e){return J(e)&&!e.shiftKey},ee=function(e){return J(e)&&e.shiftKey},te=function(e){return setTimeout(e,0)},ne=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"===typeof e?e.apply(void 0,n):e},re=function(e){return e.target.shadowRoot&&"function"===typeof e.composedPath?e.composedPath()[0]:e.target},ie=[],ae=function(e,t){var n,r=(null===t||void 0===t?void 0:t.document)||document,i=(null===t||void 0===t?void 0:t.trapStack)||ie,a=G({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:Z,isKeyBackward:ee},t),o={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},s=function(e,t,n){return e&&void 0!==e[t]?e[t]:a[n||t]},l=function(e,t){var n="function"===typeof(null===t||void 0===t?void 0:t.composedPath)?t.composedPath():void 0;return o.containerGroups.findIndex(function(t){var r=t.container,i=t.tabbableNodes;return r.contains(e)||(null===n||void 0===n?void 0:n.includes(r))||i.find(function(t){return t===e})})},c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.hasFallback,i=void 0!==n&&n,o=t.params,s=void 0===o?[]:o,l=a[e];if("function"===typeof l&&(l=l.apply(void 0,H(s))),!0===l&&(l=void 0),!l){if(void 0===l||!1===l)return l;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var c=l;if("string"===typeof l){try{c=r.querySelector(l)}catch(u){throw new Error("`".concat(e,'` appears to be an invalid selector; error="').concat(u.message,'"'))}if(!c&&!i)throw new Error("`".concat(e,"` as selector refers to no known node"))}return c},u=function(){var e=c("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void 0===e||e&&!B(e,a.tabbableOptions))if(l(r.activeElement)>=0)e=r.activeElement;else{var t=o.tabbableGroups[0],n=t&&t.firstTabbableNode;e=n||c("fallbackFocus")}else null===e&&(e=c("fallbackFocus"));if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},d=function(){if(o.containerGroups=o.containers.map(function(e){var t=L(e,a.tabbableOptions),n=D(e,a.tabbableOptions),r=t.length>0?t[0]:void 0,i=t.length>0?t[t.length-1]:void 0,o=n.find(function(e){return P(e)}),s=n.slice().reverse().find(function(e){return P(e)}),l=!!t.find(function(e){return m(e)>0});return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:l,firstTabbableNode:r,lastTabbableNode:i,firstDomTabbableNode:o,lastDomTabbableNode:s,nextTabbableNode:function(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=t.indexOf(e);return i<0?r?n.slice(n.indexOf(e)+1).find(function(e){return P(e)}):n.slice(0,n.indexOf(e)).reverse().find(function(e){return P(e)}):t[i+(r?1:-1)]}}}),o.tabbableGroups=o.containerGroups.filter(function(e){return e.tabbableNodes.length>0}),o.tabbableGroups.length<=0&&!c("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(o.containerGroups.find(function(e){return e.posTabIndexesFound})&&o.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},h=function(e){var t=e.activeElement;if(t)return t.shadowRoot&&null!==t.shadowRoot.activeElement?h(t.shadowRoot):t},p=function(e){!1!==e&&e!==h(document)&&(e&&e.focus?(e.focus({preventScroll:!!a.preventScroll}),o.mostRecentlyFocusedNode=e,Y(e)&&e.select()):p(u()))},f=function(e){var t=c("setReturnFocus",{params:[e]});return t||!1!==t&&e},g=function(e){var t=e.target,n=e.event,r=e.isBackward,i=void 0!==r&&r;t=t||re(n),d();var s=null;if(o.tabbableGroups.length>0){var u=l(t,n),h=u>=0?o.containerGroups[u]:void 0;if(u<0)s=i?o.tabbableGroups[o.tabbableGroups.length-1].lastTabbableNode:o.tabbableGroups[0].firstTabbableNode;else if(i){var p=o.tabbableGroups.findIndex(function(e){var n=e.firstTabbableNode;return t===n});if(p<0&&(h.container===t||B(t,a.tabbableOptions)&&!P(t,a.tabbableOptions)&&!h.nextTabbableNode(t,!1))&&(p=u),p>=0){var f=0===p?o.tabbableGroups.length-1:p-1,g=o.tabbableGroups[f];s=m(t)>=0?g.lastTabbableNode:g.lastDomTabbableNode}else J(n)||(s=h.nextTabbableNode(t,!1))}else{var v=o.tabbableGroups.findIndex(function(e){var n=e.lastTabbableNode;return t===n});if(v<0&&(h.container===t||B(t,a.tabbableOptions)&&!P(t,a.tabbableOptions)&&!h.nextTabbableNode(t))&&(v=u),v>=0){var b=v===o.tabbableGroups.length-1?0:v+1,y=o.tabbableGroups[b];s=m(t)>=0?y.firstTabbableNode:y.firstDomTabbableNode}else J(n)||(s=h.nextTabbableNode(t))}}else s=c("fallbackFocus");return s},v=function(e){var t=re(e);l(t,e)>=0||(ne(a.clickOutsideDeactivates,e)?n.deactivate({returnFocus:a.returnFocusOnDeactivate}):ne(a.allowOutsideClick,e)||e.preventDefault())},b=function(e){var t=re(e),n=l(t,e)>=0;if(n||t instanceof Document)n&&(o.mostRecentlyFocusedNode=t);else{var r;e.stopImmediatePropagation();var i=!0;if(o.mostRecentlyFocusedNode)if(m(o.mostRecentlyFocusedNode)>0){var s=l(o.mostRecentlyFocusedNode),c=o.containerGroups[s].tabbableNodes;if(c.length>0){var d=c.findIndex(function(e){return e===o.mostRecentlyFocusedNode});d>=0&&(a.isKeyForward(o.recentNavEvent)?d+1<c.length&&(r=c[d+1],i=!1):d-1>=0&&(r=c[d-1],i=!1))}}else o.containerGroups.some(function(e){return e.tabbableNodes.some(function(e){return m(e)>0})})||(i=!1);else i=!1;i&&(r=g({target:o.mostRecentlyFocusedNode,isBackward:a.isKeyBackward(o.recentNavEvent)})),p(r||(o.mostRecentlyFocusedNode||u()))}o.recentNavEvent=void 0},y=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];o.recentNavEvent=e;var n=g({event:e,isBackward:t});n&&(J(e)&&e.preventDefault(),p(n))},_=function(e){(a.isKeyForward(e)||a.isKeyBackward(e))&&y(e,a.isKeyBackward(e))},w=function(e){Q(e)&&!1!==ne(a.escapeDeactivates,e)&&(e.preventDefault(),n.deactivate())},E=function(e){var t=re(e);l(t,e)>=0||ne(a.clickOutsideDeactivates,e)||ne(a.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},S=function(){if(o.active)return W.activateTrap(i,n),o.delayInitialFocusTimer=a.delayInitialFocus?te(function(){p(u())}):p(u()),r.addEventListener("focusin",b,!0),r.addEventListener("mousedown",v,{capture:!0,passive:!1}),r.addEventListener("touchstart",v,{capture:!0,passive:!1}),r.addEventListener("click",E,{capture:!0,passive:!1}),r.addEventListener("keydown",_,{capture:!0,passive:!1}),r.addEventListener("keydown",w),n},k=function(){if(o.active)return r.removeEventListener("focusin",b,!0),r.removeEventListener("mousedown",v,!0),r.removeEventListener("touchstart",v,!0),r.removeEventListener("click",E,!0),r.removeEventListener("keydown",_,!0),r.removeEventListener("keydown",w),n},x=function(e){var t=e.some(function(e){var t=Array.from(e.removedNodes);return t.some(function(e){return e===o.mostRecentlyFocusedNode})});t&&p(u())},A="undefined"!==typeof window&&"MutationObserver"in window?new MutationObserver(x):void 0,C=function(){A&&(A.disconnect(),o.active&&!o.paused&&o.containers.map(function(e){A.observe(e,{subtree:!0,childList:!0})}))};return n={get active(){return o.active},get paused(){return o.paused},activate:function(e){if(o.active)return this;var t=s(e,"onActivate"),n=s(e,"onPostActivate"),i=s(e,"checkCanFocusTrap");i||d(),o.active=!0,o.paused=!1,o.nodeFocusedBeforeActivation=h(r),null===t||void 0===t||t();var a=function(){i&&d(),S(),C(),null===n||void 0===n||n()};return i?(i(o.containers.concat()).then(a,a),this):(a(),this)},deactivate:function(e){if(!o.active)return this;var t=G({onDeactivate:a.onDeactivate,onPostDeactivate:a.onPostDeactivate,checkCanReturnFocus:a.checkCanReturnFocus},e);clearTimeout(o.delayInitialFocusTimer),o.delayInitialFocusTimer=void 0,k(),o.active=!1,o.paused=!1,C(),W.deactivateTrap(i,n);var r=s(t,"onDeactivate"),l=s(t,"onPostDeactivate"),c=s(t,"checkCanReturnFocus"),u=s(t,"returnFocus","returnFocusOnDeactivate");null===r||void 0===r||r();var d=function(){te(function(){u&&p(f(o.nodeFocusedBeforeActivation)),null===l||void 0===l||l()})};return u&&c?(c(f(o.nodeFocusedBeforeActivation)).then(d,d),this):(d(),this)},pause:function(e){return o.active?(o.manuallyPaused=!0,this._setPausedState(!0,e)):this},unpause:function(e){return o.active?(o.manuallyPaused=!1,i[i.length-1]!==this?this:this._setPausedState(!1,e)):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return o.containers=t.map(function(e){return"string"===typeof e?r.querySelector(e):e}),o.active&&d(),C(),this}},Object.defineProperties(n,{_isManuallyPaused:{value:function(){return o.manuallyPaused}},_setPausedState:{value:function(e,t){if(o.paused===e)return this;if(o.paused=e,e){var n=s(t,"onPause"),r=s(t,"onPostPause");null===n||void 0===n||n(),k(),C(),null===r||void 0===r||r()}else{var i=s(t,"onUnpause"),a=s(t,"onPostUnpause");null===i||void 0===i||i(),d(),S(),C(),null===a||void 0===a||a()}return this}}}),n.updateContainerElements(e),n};function oe(e=document){const t=e.querySelectorAll('a, button, input, textarea, select, details,[tabindex]:not([tabindex="-1"])'),n=[];return t.forEach(e=>{e.hasAttribute("disabled")||n.push(e)}),n.length?n[0]:document.body}const se={escapeDeactivates:!0,allowOutsideClick:!0};function le(e,t=se){let n,i;(0,r.onMounted)(()=>{i="string"===typeof e?document.querySelector(e):e,n=ae(i,t),(0,r.nextTick)(()=>{n.activate()})}),(0,r.onBeforeUnmount)(()=>{Object.keys(n).length&&n.deactivate()})}function ce(e,t,n=se,i=!1){let a,o;(0,r.watch)(e,e=>{e&&!a?(0,r.nextTick)(()=>{o="string"===typeof t?document.querySelector(t):t,a=ae(o,n);const e=()=>a.activate();(0,r.nextTick)(()=>{setTimeout(e,0)})}):!e&&a&&Object.keys(a).length&&!i&&a.deactivate()},{immediate:!0}),i&&(0,r.onBeforeUnmount)(()=>{a&&Object.keys(a).length&&a.deactivate()})}},91452:function(e,t,n){"use strict";n.d(t,{L:function(){return o},x:function(){return a}});var r=n(9274);const i="isInResourceDetailKey";function a(){return(0,r.inject)(i,!1)}function o(){(0,r.provide)(i,!0)}},40597:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var r=n(9274);const i=(e,t,n={})=>{const{ignore:i=[]}=n;let a=!0;const o=e=>i.some(t=>{if("string"===typeof t)return Array.from(window.document.querySelectorAll(t)).some(t=>t===e.target||e.composedPath().includes(t));{const n=t;return n&&(e.target===n||e.composedPath().includes(n))}}),s=n=>{const r=e.value;r&&r!==n.target&&!n.composedPath().includes(r)&&(0===n.detail&&(a=!o(n)),a?"function"===typeof t&&t():a=!0)},l=t=>{const n=e.value;a=!o(t)&&!(!n||t.composedPath().includes(n))};(0,r.onMounted)(()=>{window.addEventListener("click",s),window.addEventListener("pointerdown",l)}),(0,r.onBeforeUnmount)(()=>{window.removeEventListener("click",s),window.removeEventListener("pointerdown",l)})}},95457:function(e,t,n){"use strict";n.d(t,{s:function(){return l}});var r=n(92043);n(9274),n(65359),n(4364);function i(e,t,n,i=!1,a=!0){const o=e.getters["i18n/t"](t,n);let s;if(void 0!==o)s=o;else if(n&&Object.keys(n).length){const e=Object.keys(n).map(e=>`${e}: ${n[e]}`).join(", ");s=`%${t}(${e})%`,i=!0}else s=`%${t}%`;return i?s:a?(0,r.ZD)(s):s}var a=n(4364);let o=null;const s=(e,t,n)=>o?i(o,e,t,n):({NODE_ENV:"production",BASE_URL:"/"}.dev&&a.warn("useI18n: store not available"),e),l=e=>{if(o=e,!o)throw new Error("usI18n() must be called from setup()");return{t:s}}},75886:function(e,t,n){"use strict";n.d(t,{K:function(){return l}});var r=n(9274),i=n(2722),a=n.n(i),o=n(83288);let s;const l=e=>(s=e,{featureDropdownMenu:c}),c=(0,r.computed)(()=>{const{fullVersion:e}=(0,o.hQ)(s),t=a().coerce(e)||{version:"0.0.0"};return a().gte(t.version,"2.11.0")})},17259:function(e,t,n){"use strict";n.d(t,{J:function(){return r}});const r={OPAQUE:"Opaque",SERVICE_ACCT:"kubernetes.io/service-account-token",DOCKER_JSON:"kubernetes.io/dockerconfigjson",BASIC:"kubernetes.io/basic-auth",SSH:"kubernetes.io/ssh-auth",TLS:"kubernetes.io/tls",BOOTSTRAP:"bootstrap.kubernetes.io/token",ISTIO_TLS:"istio.io/key-and-cert",HELM_RELEASE:"helm.sh/release.v1",FLEET_CLUSTER:"fleet.cattle.io/cluster-registration-values",CLOUD_CREDENTIAL:"provisioning.cattle.io/cloud-credential",RKE_AUTH_CONFIG:"rke.cattle.io/auth-config",FLEET_OCI_STORAGE:"fleet.cattle.io/bundle-oci-storage/v1alpha1"}},9262:function(e,t,n){"use strict";n.d(t,{$8:function(){return s},Df:function(){return o},HG:function(){return a}});var r=n(40207);const i={CLUSTER:"cluster",FLEET:"fleet"},a={VERSION_RANCHER:"server-version",VERSION_CLI:"cli-version",VERSION_MACHINE:"machine-version",VERSION_HELM:"helm-version",CLI_URL:{DARWIN:"cli-url-darwin",WINDOWS:"cli-url-windows",LINUX:"cli-url-linux"},API_HOST:"api-host",CA_CERTS:"cacerts",HIDE_LOCAL_CLUSTER:"hide-local-cluster",AUTH_TOKEN_MAX_TTL_MINUTES:"auth-token-max-ttl-minutes",KUBECONFIG_GENERATE_TOKEN:"kubeconfig-generate-token",KUBECONFIG_DEFAULT_TOKEN_TTL_MINUTES:"kubeconfig-default-token-ttl-minutes",ENGINE_ISO_URL:"engine-iso-url",FIRST_LOGIN:"first-login",INGRESS_IP_DOMAIN:"ingress-ip-domain",SERVER_URL:"server-url",RKE_METADATA_CONFIG:"rke-metadata-config",EULA_AGREED:"eula-agreed",AUTH_USER_INFO_MAX_AGE_SECONDS:"auth-user-info-max-age-seconds",AUTH_USER_SESSION_IDLE_TTL_MINUTES:"auth-user-session-idle-ttl-minutes",AUTH_USER_SESSION_TTL_MINUTES:"auth-user-session-ttl-minutes",AUTH_USER_INFO_RESYNC_CRON:"auth-user-info-resync-cron",AUTH_LOCAL_VALIDATE_DESC:"auth-password-requirements-description",PASSWORD_MIN_LENGTH:"password-min-length",UI_INDEX:"ui-index",UI_DASHBOARD_INDEX:"ui-dashboard-index",UI_DASHBOARD_HARVESTER_LEGACY_PLUGIN:"ui-dashboard-harvester-legacy-plugin",UI_OFFLINE_PREFERRED:"ui-offline-preferred",SYSTEM_DEFAULT_REGISTRY:"system-default-registry",UI_ISSUES:"ui-issues",PL:"ui-pl",PL_RANCHER_VALUE:"rancher",SUPPORTED:"has-support",BANNERS:"ui-banners",ISSUES:"ui-issues",BRAND:"ui-brand",LOGO_LIGHT:"ui-logo-light",LOGO_DARK:"ui-logo-dark",BANNER_LIGHT:"ui-banner-light",BANNER_DARK:"ui-banner-dark",LOGIN_BACKGROUND_LIGHT:"ui-login-background-light",LOGIN_BACKGROUND_DARK:"ui-login-background-dark",PRIMARY_COLOR:"ui-primary-color",LINK_COLOR:"ui-link-color",COMMUNITY_LINKS:"ui-community-links",FAVICON:"ui-favicon",UI_PERFORMANCE:"ui-performance",UI_CUSTOM_LINKS:"ui-custom-links",UI_SUPPORTED_K8S_VERSIONS:"ui-k8s-supported-versions-range",THEME:"ui-theme",SYSTEM_NAMESPACES:"system-namespaces",CLUSTER_AGENT_DEFAULT_AFFINITY:"cluster-agent-default-affinity",FLEET_AGENT_DEFAULT_AFFINITY:"fleet-agent-default-affinity",ADD_EXTENSION_REPOS_BANNER_DISPLAY:"display-add-extension-repos-banner",AGENT_TLS_MODE:"agent-tls-mode",USER_RETENTION_CRON:"user-retention-cron",USER_RETENTION_DRY_RUN:"user-retention-dry-run",USER_LAST_LOGIN_DEFAULT:"user-last-login-default",DISABLE_INACTIVE_USER_AFTER:"disable-inactive-user-after",DELETE_INACTIVE_USER_AFTER:"delete-inactive-user-after",K3S_UPGRADER_UNINSTALL_CONCURRENCY:"k3s-based-upgrader-uninstall-concurrency",SYSTEM_AGENT_UPGRADER_INSTALL_CONCURRENCY:"system-agent-upgrader-install-concurrency",IMPORTED_CLUSTER_VERSION_MANAGEMENT:"imported-cluster-version-management",CLUSTER_AGENT_DEFAULT_PRIORITY_CLASS:"cluster-agent-default-priority-class",CLUSTER_AGENT_DEFAULT_POD_DISTRIBUTION_BUDGET:"cluster-agent-default-pod-disruption-budget",FLEET_AGENT_DEFAULT_PRIORITY_CLASS:"fleet-agent-default-priority-class",FLEET_AGENT_DEFAULT_POD_DISTRIBUTION_BUDGET:"fleet-agent-default-pod-disruption-budget",KEV2_OPERATORS:"kev2-operators",DYNAMIC_CONTENT_ENABLED:"ui-content-enabled",DYNAMIC_CONTENT_ENDPOINT:"ui-content-endpoint"},o={[a.CA_CERTS]:{kind:"multiline",readOnly:!0},[a.ENGINE_ISO_URL]:{},[a.PASSWORD_MIN_LENGTH]:{kind:"integer",ruleSet:[{name:"betweenValues",key:"Password",factoryArg:[2,256]},{name:"isInteger",key:"Password"},{name:"isPositive",key:"Password"},{name:"isOctal",key:"Password"}]},[a.INGRESS_IP_DOMAIN]:{},[a.AUTH_USER_INFO_MAX_AGE_SECONDS]:{},[a.AUTH_USER_SESSION_IDLE_TTL_MINUTES]:{},[a.AUTH_USER_SESSION_TTL_MINUTES]:{},[a.AUTH_TOKEN_MAX_TTL_MINUTES]:{},[a.KUBECONFIG_GENERATE_TOKEN]:{kind:"boolean"},[a.KUBECONFIG_DEFAULT_TOKEN_TTL_MINUTES]:{kind:"integer"},[a.AUTH_USER_INFO_RESYNC_CRON]:{},[a.SERVER_URL]:{kind:"url",canReset:!0},[a.RKE_METADATA_CONFIG]:{kind:"json"},[a.SYSTEM_DEFAULT_REGISTRY]:{},[a.UI_INDEX]:{},[a.UI_DASHBOARD_INDEX]:{},[a.UI_OFFLINE_PREFERRED]:{kind:"enum",options:["dynamic","true","false"]},[a.BRAND]:{canReset:!0},[a.HIDE_LOCAL_CLUSTER]:{kind:"boolean"},[a.AGENT_TLS_MODE]:{kind:"enum",options:["strict","system-store"],warning:"agent-tls-mode"},[a.SYSTEM_AGENT_UPGRADER_INSTALL_CONCURRENCY]:{kind:"integer",ruleSet:[{name:"minValue",factoryArg:1}]},[a.K3S_UPGRADER_UNINSTALL_CONCURRENCY]:{kind:"integer",ruleSet:[{name:"minValue",factoryArg:1}]},[a.IMPORTED_CLUSTER_VERSION_MANAGEMENT]:{kind:"boolean"},[a.CLUSTER_AGENT_DEFAULT_PRIORITY_CLASS]:{kind:"json",agent:i.CLUSTER},[a.CLUSTER_AGENT_DEFAULT_POD_DISTRIBUTION_BUDGET]:{kind:"json",agent:i.CLUSTER},[a.FLEET_AGENT_DEFAULT_PRIORITY_CLASS]:{kind:"json",agent:i.FLEET},[a.FLEET_AGENT_DEFAULT_POD_DISTRIBUTION_BUDGET]:{kind:"json",agent:i.FLEET}},s=(a.ENGINE_ISO_URL,a.RKE_METADATA_CONFIG,a.K3S_UPGRADER_UNINSTALL_CONCURRENCY,a.IMPORTED_CLUSTER_VERSION_MANAGEMENT,a.CLUSTER_AGENT_DEFAULT_PRIORITY_CLASS,a.CLUSTER_AGENT_DEFAULT_POD_DISTRIBUTION_BUDGET,a.FLEET_AGENT_DEFAULT_PRIORITY_CLASS,a.FLEET_AGENT_DEFAULT_POD_DISTRIBUTION_BUDGET,{inactivity:{enabled:!1,threshold:900},incrementalLoading:{enabled:!0,threshold:1500},manualRefresh:{enabled:!1,threshold:1500},disableWebsocketNotification:!0,garbageCollection:r.W,forceNsFilterV2:{enabled:!1},advancedWorker:{enabled:!1},kubeAPI:{warningHeader:{separator:"299 - ",notificationBlockList:["299 - unknown field"]}},serverPagination:{useDefaultStores:!0,stores:void 0,resourceChangesDebounceMs:4e3}})},25659:function(e,t,n){"use strict";n.d(t,{A:function(){return g}});var r,i=n(31915),a=n(35881),o=n(92043),s=n(14220),l=n(37327),c=n(76978),u=n(4364);function d(e,t){const n=(0,l.P)(e);return"home"===t&&"home"===e.name||t===n}function h({name:e,query:t,meta:n},r){return!(r!==s.G5||!t.mode||t.mode!==s.G5||t.as)||(!(r!==s.au||!t.as||t.as!==s.au)||(!(r!==s.fS||t.as||!e.includes("-id")&&"detail"!==n.mode||t.mode&&t?.mode===s.G5)||(!(r!==s.wC||e.includes("-id")||!e.includes("-resource"))||!(r!==s.YQ||!e.endsWith("-create")))))}function p(e,t,n){if(!Object.keys(t).length)return!0;const{params:r}=e,i=["product","resource","namespace","cluster","id","mode","path","hash","queryParam","context"];let a=!0;for(let o=0;o<i.length;o++){const s=i[o];if(t[s]){const i=Array.isArray(t[s])?t[s]:[t[s]];for(let t=0;t<i.length;t++){const o=i[t];if(o&&(a="hash"===s?!!e.hash&&e.hash.includes(o):"product"===s?d(e,o):"mode"===s?h(e,o):"resource"===s?r[s]&&"*"===o||o===r[s]:"context"===s?(0,c.n4)(o,n):"queryParam"===s?(0,c.n4)(o,e.query):"path"===s&&o.urlPath?o.endsWith?e.path.endsWith(o.urlPath):!Object.keys(o).includes("exact")||o.exact?o.urlPath===e.path:e.path.includes(o.urlPath):o===r[s]),a)break}if(!a)break}}return a}(function(e){e["_CONFIG"]="config",e["_CREATE"]="create",e["_DETAIL"]="detail",e["_EDIT"]="edit",e["_LIST"]="list"})(r||(r={}));const f={};function m(e){const t=e.getAllUIConfig?.();if(t){const e={};Object.values(i.c7).forEach(n=>{t[n]||f[n]||(e[n]=!0,f[n]=!0)}),Object.keys(e).length&&u.warn(`[plugin-helpers] These ExtensionPoints aren't available for usage in this Rancher version: ${Object.keys(e).join(", ")}`)}}function g(e,t,n,r,s=e,l){const c=[];if(e.$extension?.getUIConfig){if(m(e.$extension),f[t])return[];const u=e.$extension.getUIConfig(t,n);u.forEach((e,d)=>{if(p(r,e.locationConfig,l||{})){if(t===i.c7.CARD)n===i.O4.CLUSTER_DASHBOARD_CARD&&e.labelKey&&(u[d].label=s.t(e.labelKey));else if(t===i.c7.ACTION&&(n===i.ug.TABLE&&(e.labelKey&&(u[d].label=s.t(e.labelKey)),u[d].bulkable=u[d].multiple||u[d].bulkable,u[d].action||(u[d].action=`custom-table-action-${(0,o.vx)(10).toLowerCase()}`)),n===i.ug.HEADER&&e.shortcut))if("string"===typeof e.shortcut)u[d].shortcutLabel=()=>a.cX?`(⌘-${e.shortcut.toUpperCase()})`:`(Ctrl-${e.shortcut.toUpperCase()})`,u[d].shortcutKey={windows:["ctrl",e.shortcut],mac:["meta",e.shortcut]};else if("object"===typeof e.shortcut&&!Array.isArray(e.shortcut)&&null!==e.shortcut){u[d].shortcutKey=e.shortcut;const t=a.cX?u[d].shortcut.mac:u[d].shortcut.windows?u[d].shortcut.windows:[];let n="";t.forEach((e,r)=>{r<t.length-1?(e="meta"===e?"⌘":a.cX&&"alt"===e?"⌥":(0,o.TF)(e),n+=`${e}`,n+="-"):n+=`${e.toUpperCase()}`}),u[d].shortcutLabel=()=>`(${n})`}c.push(u[d])}})}return c}},28197:function(e,t,n){"use strict";n.d(t,{j:function(){return o}});n(86565),n(14220),n(31915),n(25314),n(9274),n(83297);n(59918),n(47433);var r=n(10213);function i(e){return"children"in e&&Array.isArray(e.children)}class a{gatherChildrenOrdering(e){let t=e.reduce((e,t)=>"number"!==typeof t.weight?e:t.weight<e?t.weight:e,1/0);t===1/0&&(t=999);const n=[];return e.forEach((e,r)=>{const a={...e};void 0!==a.weight&&null!==a.weight||(a.weight=t-(r+1)),i(a)&&(a.children=this.gatherChildrenOrdering(a.children)),n.push(a)}),n.sort((e,t)=>{var n,r;return(null!==(n=t.weight)&&void 0!==n?n:0)-(null!==(r=e.weight)&&void 0!==r?r:0)})}generateTopLevelExtensionSimpleBaseRoute(e,t={}){const{component:n,omitPath:r}=t,i={name:`${e}`,path:`${e}`,params:{product:e},meta:{product:e}};return n&&(i.component=n),r&&delete i.path,i}generateVirtualTypeRoute(e,t,n={}){return n.extendProduct?this.generateVirtualTypeRouteForExistingProduct(e,t,n):this.generateVirtualTypeRouteForNewProduct(e,t,n)}generateVirtualTypeRouteForExistingProduct(e,t,n={}){const{component:r,omitPath:i}=n,a=t?`c-cluster-${e}-${t.name}`:`c-cluster-${e}`,o=t?`c/:cluster/${e}/${t.name}`:`c/:cluster/${e}`,s={name:a,path:o,params:{product:e},meta:{product:e}};return r&&(s.component=r),i&&delete s.path,s}generateVirtualTypeRouteForNewProduct(e,t,n={}){const{component:i,omitPath:a}=n,o=t?`${e}-c-cluster-${t.name}`:`${e}-c-cluster`,s=t?`${e}/c/:cluster/${t.name}`:`${e}/c/:cluster`,l={name:o,path:s,params:{product:e,cluster:r.w},meta:{product:e,cluster:r.w}};return i&&(l.component=i),a&&delete l.path,l}generateConfigureTypeRoute(e,t,n={}){return n.extendProduct?this.generateConfigureTypeRouteForExistingProduct(e,t,n):this.generateConfigureTypeRouteForNewProduct(e,t,n)}generateConfigureTypeRouteForExistingProduct(e,t,n={}){const{component:r,omitPath:i}=n,a={name:`c-cluster-${e}-resource`,path:`c/:cluster/${e}/:resource`,params:{product:e,resource:null===t||void 0===t?void 0:t.type},meta:{product:e,resource:null===t||void 0===t?void 0:t.type}};return r&&(a.component=r),i&&delete a.path,a}generateConfigureTypeRouteForNewProduct(e,t,n={}){const{component:i,omitPath:a}=n,o={name:`${e}-c-cluster-resource`,path:`${e}/c/:cluster/:resource`,params:{product:e,cluster:r.w,resource:null===t||void 0===t?void 0:t.type},meta:{product:e,cluster:r.w,resource:null===t||void 0===t?void 0:t.type}};return i&&(o.component=i),a&&delete o.path,o}generateResourceRoutes(e,t,n={}){return n.extendProduct?this.generateResourceRoutesForExistingProduct(e,t):this.generateResourceRoutesForNewProduct(e)}generateResourceRoutesForExistingProduct(e,t){const r=e=>e.then(e=>e.default||e);return[{name:`c-cluster-${e}-resource`,path:`c/:cluster/${e}/:resource`,component:()=>r(n.e(446).then(n.bind(n,36446))),meta:{product:e,resource:t.type}},{name:`c-cluster-${e}-resource-create`,path:`c/:cluster/${e}/:resource/create`,component:()=>r(n.e(856).then(n.bind(n,13856))),meta:{product:e,resource:t.type}},{name:`c-cluster-${e}-resource-id`,path:`c/:cluster/${e}/:resource/:id`,component:()=>r(n.e(303).then(n.bind(n,66303))),meta:{product:e,resource:t.type,asyncSetup:!0}},{name:`c-cluster-${e}-resource-namespace-id`,path:`c/:cluster/${e}/:resource/:namespace/:id`,component:()=>r(n.e(277).then(n.bind(n,28277))),meta:{product:e,resource:t.type,asyncSetup:!0}}]}generateResourceRoutesForNewProduct(e){const t=e=>e.then(e=>e.default||e);return[{name:`${e}-c-cluster-resource`,path:`${e}/c/:cluster/:resource`,component:()=>t(n.e(446).then(n.bind(n,36446))),meta:{product:e,cluster:r.w}},{name:`${e}-c-cluster-resource-create`,path:`${e}/c/:cluster/:resource/create`,component:()=>t(n.e(856).then(n.bind(n,13856))),meta:{product:e,cluster:r.w}},{name:`${e}-c-cluster-resource-id`,path:`${e}/c/:cluster/:resource/:id`,component:()=>t(n.e(303).then(n.bind(n,66303))),meta:{product:e,cluster:r.w,asyncSetup:!0}},{name:`${e}-c-cluster-resource-namespace-id`,path:`${e}/c/:cluster/:resource/:namespace/:id`,component:()=>t(n.e(277).then(n.bind(n,28277))),meta:{product:e,cluster:r.w,asyncSetup:!0}}]}}new a;n(4364);const o={MODELS:"models",MODEL_EXTENSION:"model-extension",SERVER_SIDE_PAGINATION_RESOURCES:"server-side-pagination"}},31915:function(e,t,n){"use strict";var r,i,a,o,s,l,c;n.d(t,{O4:function(){return s},W3:function(){return l},W7:function(){return a},c7:function(){return r},lX:function(){return o},ug:function(){return i},vH:function(){return c}}),function(e){e["ACTION"]="Action",e["TAB"]="Tab",e["PANEL"]="Panel",e["CARD"]="Card",e["TABLE_COL"]="TableColumn",e["TABLE"]="Table"}(r||(r={})),function(e){e["HEADER"]="header-action",e["TABLE"]="table-action"}(i||(i={})),function(e){e["ABOUT_TOP"]="about-top",e["DETAILS_MASTHEAD"]="details-masthead",e["DETAIL_TOP"]="detail-top",e["RESOURCE_LIST"]="resource-list"}(a||(a={})),function(e){e["RESOURCE_DETAIL"]="tab",e["OTHER"]="other-tab-locations",e["RESOURCE_DETAIL_PAGE"]="resource-detail-page",e["RESOURCE_CREATE_PAGE"]="resource-create-page",e["RESOURCE_EDIT_PAGE"]="resource-edit-page",e["RESOURCE_SHOW_CONFIGURATION"]="resource-show-configuration",e["CLUSTER_CREATE_RKE2"]="cluster-create-rke2"}(o||(o={})),function(e){e["CLUSTER_DASHBOARD_CARD"]="cluster-dashboard-card"}(s||(s={})),function(e){e["RESOURCE"]="resource-list"}(l||(l={})),function(e){e["RESOURCE"]="resource-list"}(c||(c={}))},91332:function(e,t,n){"use strict";n.r(t);var r=n(38858),i=n(72420),a=n(42200);describe("component: Opsgenie.vue",()=>{const e={mode:"edit",value:{responders:[]},namespace:"test-namespace"};it("should render correctly with initial props",()=>{const t=(0,r.Ky)(i["default"],{props:e,global:{mocks:{$fetchState:{pending:!1,error:null}}}}),n=t.findAll("h3");expect(n[0].text()).toBe("Target"),expect(n[1].text()).toBe("Responders"),expect(t.findComponent({name:"SimpleSecretSelector"}).exists()).toBe(!0),expect(t.findComponent({name:"LabeledInput"}).exists()).toBe(!0),expect(t.findComponent(a.S).exists()).toBe(!0),expect(t.findComponent({name:"ArrayList"}).exists()).toBe(!0)}),it("should update proxy URL",async()=>{const t=(0,r.Ky)(i["default"],{props:e,global:{mocks:{$fetchState:{pending:!1,error:null}}}}),n=t.findComponent({name:"LabeledInput"});await n.vm.$emit("update:value","http://my-proxy.com"),expect(t.props("value").httpConfig.proxyURL).toBe("http://my-proxy.com")}),it("should toggle send resolved alerts checkbox",async()=>{const t=(0,r.Ky)(i["default"],{props:e,global:{mocks:{$fetchState:{pending:!1,error:null}}}}),n=t.findComponent(a.S);await n.vm.$emit("update:value",!1),expect(t.props("value").sendResolved).toBe(!1)}),it("should handle API key secret updates",async()=>{const t=(0,r.Ky)(i["default"],{props:e,global:{mocks:{$fetchState:{pending:!1,error:null}}}}),n=t.findComponent({name:"SimpleSecretSelector"});await n.vm.$emit("updateSecretName","my-secret-name"),await n.vm.$emit("updateSecretKey","my-secret-key"),expect(t.props("value").apiKey.name).toBe("my-secret-name"),expect(t.props("value").apiKey.key).toBe("my-secret-key")}),it("should add and update a responder",async()=>{const t=(0,r.Ky)(i["default"],{props:e,global:{mocks:{$fetchState:{pending:!1,error:null}}}}),n=t.findComponent({name:"ArrayList"});await n.vm.$emit("update:value",[t.vm.defaultResponder]);const a=t.vm.responders;expect(a).toHaveLength(1),expect(a[0].type).toBe("team"),expect(a[0].target).toBe("id"),a[0].type="user",await t.vm.$nextTick(),expect(t.props("value").responders[0].type).toBe("user"),t.vm.updateResponder({selected:"username",text:"test-user"},a[0]),await t.vm.$nextTick(),expect(a[0].target).toBe("username"),expect(a[0].value).toBe("test-user"),expect(t.props("value").responders[0]).toStrictEqual({type:"user",username:"test-user"})}),it("should remove a responder",async()=>{const t=(0,r.Ky)(i["default"],{props:{...e,value:{responders:[{type:"team",id:"team-id"}]}},global:{mocks:{$fetchState:{pending:!1,error:null}}}});t.vm.responders.splice(0,1),await t.vm.$nextTick(),expect(t.vm.responders).toHaveLength(0),expect(t.props("value").responders).toHaveLength(0)}),it("should render in view mode",()=>{const e=(0,r.Ky)(i["default"],{props:{mode:"view",value:{httpConfig:{proxyURL:"http://view-proxy.com"},sendResolved:!1,responders:[{type:"user",name:"view-user"}]},namespace:"test-namespace"},global:{mocks:{$fetchState:{pending:!1,error:null}}}}),t=e.findComponent({name:"LabeledInput"}),n=e.findComponent(a.S),o=e.findComponent({name:"ArrayList"});expect(t.props("mode")).toBe("view"),expect(n.props("mode")).toBe("view"),expect(o.props("mode")).toBe("view");const s=e.vm.responders[0];expect(s.type).toBe("user"),expect(s.target).toBe("name"),expect(s.value).toBe("view-user"),expect(e.vm.typeLabel(s.type)).toBe("User"),expect(e.vm.targetLabel(s.target)).toBe("Name")})})},54293:function(e,t,n){"use strict";n.r(t);var r=n(38858),i=n(87450),a=n(42200);describe("component: PagerDuty.vue",()=>{const e={mode:"edit",value:{},namespace:"test-namespace"};it("should render correctly with initial props",()=>{const t=(0,r.Ky)(i["default"],{props:e,global:{mocks:{$fetchState:{pending:!1,error:null}}}}),n=t.findAll("h3");expect(n[0].text()).toBe("Target"),expect(t.findComponent({name:"LabeledSelect"}).exists()).toBe(!0),expect(t.findComponent({name:"SimpleSecretSelector"}).exists()).toBe(!0),expect(t.findComponent({name:"LabeledInput"}).exists()).toBe(!0),expect(t.findComponent(a.S).exists()).toBe(!0)}),it('should show routing key selector for "Events API v2"',()=>{const t=(0,r.Ky)(i["default"],{props:e,global:{mocks:{$fetchState:{pending:!1,error:null}}}}),n=t.findComponent({name:"SimpleSecretSelector"});expect(n.props("secretNameLabel")).toContain("monitoring.alertmanagerConfig.pagerDuty.routingKey")}),it('should show service key selector for "Prometheus"',async()=>{const t=(0,r.Ky)(i["default"],{props:{...e,value:{serviceKey:{name:"s",key:"k"}}},global:{mocks:{$fetchState:{pending:!1,error:null}}}}),n=t.findComponent({name:"SimpleSecretSelector"});expect(n.props("secretNameLabel")).toContain("monitoring.alertmanagerConfig.pagerDuty.serviceKey")}),it("should clear other key when integration type changes",async()=>{const t=(0,r.Ky)(i["default"],{props:{...e,value:{routingKey:{name:"r",key:"k"}}},global:{mocks:{$fetchState:{pending:!1,error:null}}}});t.vm.integrationType="Prometheus",await t.vm.$nextTick(),expect(t.props("value").routingKey).toBeNull()}),it("should update routing key secret",async()=>{const t=(0,r.Ky)(i["default"],{props:e,global:{mocks:{$fetchState:{pending:!1,error:null}}}}),n=t.findComponent({name:"SimpleSecretSelector"});await n.vm.$emit("updateSecretName","routing-name"),await n.vm.$emit("updateSecretKey","routing-key"),expect(t.props("value").routingKey.name).toBe("routing-name"),expect(t.props("value").routingKey.key).toBe("routing-key")}),it("should update service key secret",async()=>{const t=(0,r.Ky)(i["default"],{props:{...e,value:{serviceKey:{}}},global:{mocks:{$fetchState:{pending:!1,error:null}}}}),n=t.findComponent({name:"SimpleSecretSelector"});await n.vm.$emit("updateSecretName","service-name"),await n.vm.$emit("updateSecretKey","service-key"),expect(t.props("value").serviceKey.name).toBe("service-name"),expect(t.props("value").serviceKey.key).toBe("service-key")}),it("should update proxy URL",async()=>{const t=(0,r.Ky)(i["default"],{props:e,global:{mocks:{$fetchState:{pending:!1,error:null}}}}),n=t.findComponent({name:"LabeledInput"});await n.vm.$emit("update:value","http://proxy.com"),expect(t.props("value").httpConfig.proxyURL).toBe("http://proxy.com")}),it("should toggle send resolved alerts",async()=>{const t=(0,r.Ky)(i["default"],{props:e,global:{mocks:{$fetchState:{pending:!1,error:null}}}}),n=t.findComponent(a.S);await n.vm.$emit("update:value",!1),expect(t.props("value").sendResolved).toBe(!1)}),it("should render in view mode",()=>{const t=(0,r.Ky)(i["default"],{props:{...e,mode:"view"},global:{mocks:{$fetchState:{pending:!1,error:null}}}});expect(t.findComponent({name:"LabeledSelect"}).attributes("mode")).toBe("view"),expect(t.findComponent({name:"SimpleSecretSelector"}).props("disabled")).toBe(!0),expect(t.findComponent({name:"LabeledInput"}).attributes("mode")).toBe("view"),expect(t.findComponent(a.S).attributes("mode")).toBe("view")}),it("should show banner if no namespace is provided",()=>{const t=(0,r.Ky)(i["default"],{props:{...e,namespace:""},global:{mocks:{$fetchState:{pending:!1,error:null}}}});expect(t.findComponent({name:"Banner"}).exists()).toBe(!0)})})},90828:function(e,t,n){"use strict";n.r(t);var r=n(38858),i=n(33427),a=n(42200),o=n(79380),s=n(14220);describe("component: Slack.vue",()=>{const e={mode:"edit",value:{},namespace:"test-namespace"};it("should render correctly with initial props",()=>{const t=(0,r.Ky)(i["default"],{props:e,global:{mocks:{$fetchState:{pending:!1,error:null}}}}),n=t.findAll("h3");expect(n[0].text()).toBe("Target"),expect(t.findComponent({name:"SimpleSecretSelector"}).exists()).toBe(!0),expect(t.findAllComponents(o.o)).toHaveLength(2),expect(t.findComponent(a.S).exists()).toBe(!0)}),it("should initialize text template in create mode",()=>{const t=(0,r.Ky)(i["default"],{props:{...e,mode:s.YQ},global:{mocks:{$fetchState:{pending:!1,error:null}}}});expect(t.props("value").text).toBe('{{ template "slack.rancher.text" . }}')}),it("should update API URL secret",async()=>{const t=(0,r.Ky)(i["default"],{props:e,global:{mocks:{$fetchState:{pending:!1,error:null}}}}),n=t.findComponent({name:"SimpleSecretSelector"});await n.vm.$emit("updateSecretName","my-secret"),await n.vm.$emit("updateSecretKey","my-key"),expect(t.props("value").apiURL.name).toBe("my-secret"),expect(t.props("value").apiURL.key).toBe("my-key")}),it("should update default channel",async()=>{const t=(0,r.Ky)(i["default"],{props:e,global:{mocks:{$fetchState:{pending:!1,error:null}}}}),n=t.findAllComponents(o.o)[0];await n.vm.$emit("update:value","#my-channel"),expect(t.props("value").channel).toBe("#my-channel")}),it("should update proxy URL",async()=>{const t=(0,r.Ky)(i["default"],{props:e,global:{mocks:{$fetchState:{pending:!1,error:null}}}}),n=t.findAllComponents(o.o)[1];await n.vm.$emit("update:value","http://my-proxy.com"),expect(t.props("value").httpConfig.proxyURL).toBe("http://my-proxy.com")}),it("should toggle send resolved alerts",async()=>{const t=(0,r.Ky)(i["default"],{props:e,global:{mocks:{$fetchState:{pending:!1,error:null}}}}),n=t.findComponent(a.S);await n.vm.$emit("update:value",!0),expect(t.props("value").sendResolved).toBe(!0)}),it("should render in view mode",()=>{const t=(0,r.Ky)(i["default"],{props:{...e,mode:"view"},global:{mocks:{$fetchState:{pending:!1,error:null}}}});expect(t.findComponent({name:"SimpleSecretSelector"}).props("disabled")).toBe(!0);const n=t.findAllComponents(o.o);expect(n[0].props("mode")).toBe("view"),expect(n[1].props("mode")).toBe("view"),expect(t.findComponent(a.S).props("mode")).toBe("view")}),it("should show banner if no namespace is provided",()=>{const t=(0,r.Ky)(i["default"],{props:{...e,namespace:""},global:{mocks:{$fetchState:{pending:!1,error:null}}}});expect(t.findComponent({name:"Banner"}).exists()).toBe(!0)})})},63503:function(e,t,n){"use strict";n.d(t,{A:function(){return o}});var r=n(14220);function i(e,t){e&&("function"===typeof t&&(t=t()),e.style.width="string"!==typeof t?`${t}px`:t)}function a(e){if(e&&e.length)return e.length?parseFloat(getComputedStyle(e[0]).width.replace("px","")):parseFloat(getComputedStyle(e).width.replace("px",""))}var o={inheritAttrs:!1,emits:["update:validation","on-focus","on-blur"],props:{mode:{type:String,default:r.G5},label:{type:String,default:null},labelKey:{type:String,default:null},placeholderKey:{type:String,default:null},tooltip:{type:[String,Object],default:null},hoverTooltip:{type:Boolean,default:!0},tooltipKey:{type:String,default:null},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:[String,Number],default:""},value:{type:[String,Number,Object],default:""},options:{default:null,type:Array},searchable:{default:!1,type:Boolean},filterable:{default:!0,type:Boolean},rules:{default:()=>[],type:Array,validator:e=>e.every(e=>["function"].includes(typeof e))},requireDirty:{default:!0,type:Boolean}},data(){return{raised:this.mode===r.nW||!!`${this.value}`,focused:!1,blurred:null}},computed:{requiredField(){return this.required||this.rules.some(e=>"required"===(null===e||void 0===e?void 0:e.name))},empty(){return!!`${this.value}`},isView(){return this.mode===r.nW},isDisabled(){return this.disabled||this.isView},isSearchable(){const{searchable:e,canPaginate:t}=this;if(t)return!0;const n=this.options||[];return!!(e||n.length>=10)},isFilterable(){const{filterable:e,canPaginate:t}=this;return!t&&e},validationMessage(){const e=this.rules.find(e=>"required"===(null===e||void 0===e?void 0:e.name)),t=[],n=null===this||void 0===this?void 0:this.value;if(e&&this.blurred&&!this.focused){const t=e(n);if(t)return this.$emit("update:validation",!1),t}for(const r of this.rules){const e=r(n);e&&"required"!==r.name&&t.push(e)}return t.length>0&&(this.blurred||this.focused||!this.requireDirty)?(this.$emit("update:validation",!1),t.join(", ")):void this.$emit("update:validation",!0)}},methods:{resizeHandler(){this.$nextTick(()=>{const e=this.$refs.select.querySelector("ul.vs__dropdown-menu"),t=a(this.$refs.select)||0,n=a(e)||0;n<t&&i(e,t)})},onFocus(){return this.$emit("on-focus"),this.onFocusLabeled()},onFocusLabeled(){this.raised=!0,this.focused=!0},onBlur(){return this.$emit("on-blur"),this.onBlurLabeled()},onBlurLabeled(){this.focused=!1,this.value||(this.raised=!1),this.blurred=Date.now()}}}},25192:function(e,t,n){"use strict";n.r(t);var r=n(41212),i=n(35664);describe("class Deployment",()=>{describe("replicaSetId",()=>{it.each([{relationships:[],expected:void 0},{relationships:[{rel:"owner",toType:i.oU.REPLICA_SET,toId:"rel-id"}],expected:"rel-id"},{relationships:[{rel:"owner",toType:i.oU.REPLICA_SET,toId:"rel-id-1",message:"ReplicaSet is available. Replicas: 1"}],expected:"rel-id-1"},{relationships:[{rel:"owner",toType:i.oU.REPLICA_SET,toId:"rel-id-1",message:"ReplicaSet is available. Replicas: 0"},{rel:"owner",toType:i.oU.REPLICA_SET,toId:"rel-id-2",message:"ReplicaSet is available. Replicas: 1"}],expected:"rel-id-2"},{relationships:[{rel:"owner",toType:i.oU.REPLICA_SET,toId:"rel-id-1",message:"Message without replicas count"},{rel:"owner",toType:i.oU.REPLICA_SET,toId:"rel-id-2",message:"Another message without replicas count"}],expected:"rel-id-1"},{relationships:[{rel:"owner",toType:i.oU.REPLICA_SET,toId:"rel-id-1",message:"ReplicaSet is available. Replicas: 0"},{rel:"owner",toType:i.oU.REPLICA_SET,toId:"rel-id-2",message:"ReplicaSet is available. Replicas: 0"}],expected:"rel-id-1"},{relationships:[{rel:"owner",toType:i.oU.REPLICA_SET,toId:"rel-id-1",message:"Message without replicas count"},{rel:"owner",toType:i.oU.REPLICA_SET,toId:"rel-id-2",message:"ReplicaSet is available. Replicas: 0"}],expected:"rel-id-1"}])("replicaSetId",({relationships:e,expected:t})=>{const n={id:"any-id",type:i.oU.DEPLOYMENT,metadata:{name:"any-name",namespace:"any-namespace",uid:"any-uid",relationships:e}},a=new r["default"](n);expect(a.replicaSetId).toStrictEqual(t)})})})},34700:function(e,t,n){"use strict";n.r(t);var r=n(8488);describe("auditPolicy Model",()=>{let e,t,n;beforeEach(()=>{e=jest.fn(),t=jest.fn();const i={id:"test-policy",spec:{enabled:!1},metadata:{name:"test-policy"}};n=new r["default"](i,{dispatch:e,rootGetters:{"i18n/t":t},getters:{schemaFor:()=>({linkFor:jest.fn()})}})}),describe("enable method",()=>{it('should call enableOrDisable with "enable"',()=>{const e=jest.spyOn(n,"enableOrDisable").mockImplementation();n.enable(),expect(e).toHaveBeenCalledWith("enable")})}),describe("disable method",()=>{it('should call enableOrDisable with "disable"',()=>{const e=jest.spyOn(n,"enableOrDisable").mockImplementation();n.disable(),expect(e).toHaveBeenCalledWith("disable")})}),describe("enableOrDisable method",()=>{let r;beforeEach(()=>{r={spec:{enabled:!1},save:jest.fn()},e.mockImplementation(e=>"rancher/clone"===e?Promise.resolve(r):Promise.resolve())}),it('should enable policy when flag is "enable"',async()=>{r.save.mockResolvedValue({}),await n.enableOrDisable("enable"),expect(r.spec.enabled).toBe(!0),expect(r.save).toHaveBeenCalledWith()}),it('should disable policy when flag is "disable"',async()=>{r.save.mockResolvedValue({}),await n.enableOrDisable("disable"),expect(r.spec.enabled).toBe(!1),expect(r.save).toHaveBeenCalledWith()}),it("should handle save errors and show growl notification",async()=>{const i=new Error("Save failed");r.save.mockRejectedValue(i),t.mockReturnValue("Error when enabling - test-policy"),await n.enableOrDisable("enable"),expect(e).toHaveBeenCalledWith("growl/fromError",{title:"Error when enabling - test-policy",err:i,timeout:5e3},{root:!0})}),it("should call translation with correct parameters",async()=>{const e=new Error("Save failed");r.save.mockRejectedValue(e),await n.enableOrDisable("enable"),expect(t).toHaveBeenCalledWith("auditPolicy.error.enableOrDisable",{flag:"enable",id:"test-policy"})}),it("should dispatch rancher/clone with correct parameters",async()=>{r.save.mockResolvedValue({}),await n.enableOrDisable("enable"),expect(e).toHaveBeenCalledWith("rancher/clone",{resource:n},{root:!0})})})})},8432:function(e,t,n){"use strict";n.r(t);var r=n(43020);describe("class Cronjob",()=>{it("should have no ownerReferences by default",()=>{const e={id:"any-id",type:"batch.job",apiVersion:"batch/v1",kind:"Job",metadata:{name:"any-name",namespace:"any-namespace",uid:"any-uid"},spec:{jobTemplate:{}}},t={name:"any-name",namespace:"any-namespace",uid:"any-uid"},n=new r["default"](e);expect(n.metadata).toStrictEqual(t)}),describe("method runNow",()=>{it("should populate job metadata",async()=>{const e={id:"any-id",type:"batch.job",apiVersion:"batch/v1",kind:"Job",metadata:{name:"any-name",namespace:"any-namespace",uid:"any-uid"},spec:{jobTemplate:{}}},t=Date.now(),n={name:`${e.metadata.name}-${t}`,namespace:e.metadata.namespace,ownerReferences:[{apiVersion:"batch/v1",controller:!0,kind:"Job",name:e.metadata.name,uid:e.metadata.uid}],uid:e.metadata.uid},i=()=>({...e,save:jest.fn(),goToDetail:jest.fn()}),a=new r["default"](e,{dispatch:i});jest.useFakeTimers().setSystemTime(t),jest.spyOn(a,"$dispatch").mockImplementation(i),await a.runNow(),expect(a.metadata).toStrictEqual(n)}),it("should redirect to another page",async()=>{const e={metadata:{name:"any-name"},spec:{jobTemplate:{}}},t=jest.fn(),n=()=>({...e,save:jest.fn(),goToDetail:t}),i=new r["default"](e,{dispatch:n});jest.spyOn(i,"$dispatch").mockImplementation(n),await i.runNow(),expect(t).toHaveBeenCalledWith()})})})},94226:function(e,t,n){"use strict";n.r(t);var r=n(65502),i=n(97707),a=n(2841);const o="1.16.2",s="1.16.1",l="cert-manager",c={repoName:"appCo",home:"https://apps.rancher.io/applications/cert-manager"},u={repoName:"certManagerOfficial",home:"https://cert-manager.io",oldHome:"https://github.com/jetstack/cert-manager"},d={name:l,repoName:c.repoName,versions:[{version:o,home:c.home,repoName:c.repoName,annotations:{}},{version:s,home:c.home,repoName:c.repoName,annotations:{}}]},h={name:l,repoName:c.repoName,versions:[{version:o,home:c.home,repoName:c.repoName,annotations:{}},{version:s,home:c.home,repoName:c.repoName,annotations:{}}]},p={name:l,repoName:u.repoName,versions:[{version:o,home:u.home,repoName:u.repoName,annotations:{}},{version:s,home:u.oldHome,repoName:u.repoName,annotations:{}}]},f={name:l,repoName:u.repoName,versions:[{version:o,home:u.home,repoName:u.repoName,annotations:{}},{version:s,home:u.oldHome,repoName:u.repoName,annotations:{}}]},m={metadata:{annotations:{[a.W8.SOURCE_REPO_NAME]:c.repoName},name:l,home:c.home,version:s}},g={metadata:{name:l,home:u.oldHome,version:s}},v={metadata:{annotations:{[a.W8.SOURCE_REPO_NAME]:u.repoName},name:l,home:u.oldHome,version:s}};describe("class CatalogApp",()=>{describe("upgradeAvailable",()=>{const e=[[g,[],i.I0.NO_UPGRADE],[g,[d],i.I0.NO_UPGRADE],[g,[d,h],i.I0.NO_UPGRADE],[g,[d,h,p],i.I0.SINGLE_UPGRADE],[m,[],i.I0.NO_UPGRADE],[m,[d],i.I0.SINGLE_UPGRADE],[m,[d,p],i.I0.SINGLE_UPGRADE],[m,[d,h],i.I0.MULTIPLE_UPGRADES],[v,[],i.I0.NO_UPGRADE],[v,[p],i.I0.SINGLE_UPGRADE],[v,[p,d],i.I0.SINGLE_UPGRADE],[v,[p,f],i.I0.MULTIPLE_UPGRADES]];it.each(e)("should return the correct upgrade status",(e,t,n)=>{const i=new r["default"]({spec:{chart:e}},{rootGetters:{"catalog/chart":()=>t,currentCluster:{workerOSs:["linux"]},"prefs/get":()=>!1}});expect(i.upgradeAvailable).toBe(n)})}),describe("valuesLoaded",()=>{it("should be false if data is missing (e.g. secret)",()=>{const e=new r["default"]({});jest.spyOn(e,"_secret","get").mockReturnValue(null),expect(e.valuesLoaded).toBe(!1)}),it("should be false if part of the data is missing",()=>{const e=new r["default"]({});jest.spyOn(e,"_secret","get").mockReturnValue({data:{}}),expect(e.valuesLoaded).toBe(!1)}),it("should be true if all required data is present",()=>{const e=new r["default"]({});jest.spyOn(e,"_secret","get").mockReturnValue({data:{release:{config:{foo:"bar"},chart:{values:{baz:"qux"}}}}}),expect(e.valuesLoaded).toBe(!0)})})})},44775:function(e,t,n){"use strict";n.r(t);var r=n(92737),i=n(97707),a=n(2841),o=n(35664),s=n(11524);jest.mock("@shell/utils/chart",()=>({getLatestCompatibleVersion:jest.fn()}));const l=jest.fn(e=>e),c=jest.fn(),u={chartName:"my-app",repoName:"my-repo",repoNameDisplay:"My Repo",versions:[{version:"1.3.0",home:"https://example.com",created:"2024-03-10T12:00:00Z"},{version:"1.2.3",home:"https://example.com"}],categories:[],tags:[],deprecated:!1};function d(e=i.I0.NO_UPGRADE){return{spec:{chart:{metadata:{name:"my-app",version:"1.3.0",home:"https://example.com",annotations:{[a.W8.SOURCE_REPO_NAME]:"my-repo"}}}},metadata:{},upgradeAvailable:e}}describe("class Chart",()=>{let e;beforeEach(()=>{e={rootGetters:{"cluster/all":()=>[],"i18n/t":l,currentCluster:{workerOSs:[]},"prefs/get":()=>!1},dispatch:c},s.G.mockImplementation(e=>e.versions[0])}),describe("queryParams",()=>{it("should return query params with the latest compatible version",()=>{const t=new r["default"](u,e),n=t.queryParams();expect(s.G).toHaveBeenCalledWith(t,[],!1),expect(n).toHaveProperty("version","1.3.0")}),it("should reflect a different latest version from the mock",()=>{s.G.mockImplementation(e=>e.versions[1]);const t=new r["default"](u,e),n=t.queryParams();expect(n).toHaveProperty("version","1.2.3")})}),describe("matchingInstalledApps",()=>{it("matches by name, repo, and home in latest version",()=>{const t=d();e.rootGetters["cluster/all"]=()=>[t];const n=new r["default"](u,e);expect(n.matchingInstalledApps).toHaveLength(1)}),it("does not match if name is different",()=>{const t=d();t.spec.chart.metadata.name="different-app",e.rootGetters["cluster/all"]=()=>[t];const n=new r["default"](u,e);expect(n.matchingInstalledApps).toHaveLength(0)}),it("does not match if repo is different",()=>{const t=d();t.spec.chart.metadata.annotations[a.W8.SOURCE_REPO_NAME]="different-repo",e.rootGetters["cluster/all"]=()=>[t];const n=new r["default"](u,e);expect(n.matchingInstalledApps).toHaveLength(0)}),it("matches by version+home when not latest",()=>{const t=d();t.spec.chart.metadata.version="1.2.3",e.rootGetters["cluster/all"]=()=>[t];const n=new r["default"](u,e);expect(n.matchingInstalledApps).toHaveLength(1)}),it("can use fallback repo from metadata labels",()=>{const t=d();t.spec.chart.metadata.annotations={},t.metadata={labels:{[a.W8.CLUSTER_REPO_NAME]:"my-repo"}},e.rootGetters["cluster/all"]=()=>[t];const n=new r["default"](u,e);expect(n.matchingInstalledApps).toHaveLength(1)})}),describe("isInstalled",()=>{it("is true when one app matches",()=>{const t=d();t.spec.chart.metadata.version="1.2.3",e.rootGetters["cluster/all"]=()=>[t];const n=new r["default"](u,e);expect(n.isInstalled).toBe(!0)}),it("is false when no apps match",()=>{const t=new r["default"](u,e);expect(t.isInstalled).toBe(!1)}),it("is false when multiple apps match",()=>{const t=d();t.spec.chart.metadata.version="1.2.3",e.rootGetters["cluster/all"]=()=>[t,t];const n=new r["default"](u,e);expect(n.isInstalled).toBe(!1)})}),describe("upgradeable",()=>{it("is true when installed and upgradeAvailable is SINGLE_UPGRADE",()=>{const t=d(i.I0.SINGLE_UPGRADE);t.spec.chart.metadata.version="1.2.3",e.rootGetters["cluster/all"]=()=>[t];const n=new r["default"](u,e);expect(n.upgradeable).toBe(!0)}),it("is false if upgradeAvailable is different",()=>{const t=d(i.I0.NO_UPGRADE);t.spec.chart.metadata.version="1.2.3",e.rootGetters["cluster/all"]=()=>[t];const n=new r["default"](u,e);expect(n.upgradeable).toBe(!1)}),it("is false when not installed",()=>{const t=new r["default"](u,e);expect(t.upgradeable).toBe(!1)})}),describe("cardContent",()=>{it("includes correct subHeader and footer info",()=>{const t=new r["default"](u,e),n=t.cardContent;expect(s.G).toHaveBeenCalledWith(t,[],!1),expect(n.subHeaderItems).toHaveLength(2),expect(n.subHeaderItems[0].label).toBe("1.3.0"),expect(n.subHeaderItems[1].label).toBe("Mar 10, 2024"),expect(n.footerItems).toHaveLength(1),expect(n.footerItems[0].labels).toContain("My Repo"),expect(n.statuses).toHaveLength(0)}),it("includes category and tag items when present",()=>{const t=new r["default"]({...u,categories:["database"],tags:["linux","experimentl"]},e),n=t.cardContent;expect(n.footerItems).toHaveLength(3);const i=n.footerItems.find(e=>"category-alt"===e.icon);expect(i).toBeDefined(),expect(null===i||void 0===i?void 0:i.labels).toContain("database");const a=n.footerItems.find(e=>"tag-alt"===e.icon);expect(a).toBeDefined(),expect(null===a||void 0===a?void 0:a.labels).toStrictEqual(expect.arrayContaining(["linux","experimentl"]))}),it("includes deprecated status when deprecated is true",()=>{const t=new r["default"]({...u,deprecated:!0},e),n=t.cardContent,i=n.statuses.find(e=>{var t;return"generic.deprecated"===(null===(t=e.tooltip)||void 0===t?void 0:t.key)});expect(i).toBeDefined(),expect(null===i||void 0===i?void 0:i.color).toBe("error")}),it("includes installed status when app is installed",()=>{var t;const n=d();e.rootGetters["cluster/all"]=()=>[n];const i=new r["default"](u,e),a=i.cardContent,o=a.statuses.find(e=>{var t,n;return null===(n=null===(t=e.tooltip)||void 0===t?void 0:t.text)||void 0===n?void 0:n.startsWith("generic.installed")});expect(o).toBeDefined(),expect(null===o||void 0===o?void 0:o.color).toBe("success"),expect(null===(t=null===o||void 0===o?void 0:o.tooltip)||void 0===t?void 0:t.text).toContain(n.spec.chart.metadata.version)}),it("includes upgradeable status when upgrade is available",()=>{const t=d(i.I0.SINGLE_UPGRADE);e.rootGetters["cluster/all"]=()=>[t];const n=new r["default"](u,e),a=n.cardContent,o=a.statuses.find(e=>{var t;return"generic.upgradeable"===(null===(t=e.tooltip)||void 0===t?void 0:t.key)});expect(o).toBeDefined(),expect(null===o||void 0===o?void 0:o.color).toBe("info")}),it("shows all statuses together when all conditions are met",()=>{const t=d(i.I0.SINGLE_UPGRADE);e.rootGetters["cluster/all"]=()=>[t];const n=new r["default"]({...u,deprecated:!0},e),a=n.cardContent,o=a.statuses.map(e=>{var t,n,r;return(null===(t=e.tooltip)||void 0===t?void 0:t.key)?e.tooltip.key:(null===(r=null===(n=e.tooltip)||void 0===n?void 0:n.text)||void 0===r?void 0:r.startsWith("generic.installed"))?"generic.installed":void 0});expect(o).toStrictEqual(expect.arrayContaining(["generic.deprecated","generic.upgradeable","generic.installed"]))}),it("handles zero time for last updated date",()=>{const e={...u,versions:[{...u.versions[0],created:o.x8}]},t=new r["default"](e,{rootGetters:{"cluster/all":()=>[],"i18n/t":e=>e,currentCluster:{workerOSs:[]},"prefs/get":()=>!1}}),n=t.cardContent,i=n.subHeaderItems[1];expect(i.label).toBe("generic.na"),expect(i.labelTooltip).toBe("catalog.charts.appChartCard.subHeaderItem.missingVersionDate")})})})},13573:function(e,t,n){"use strict";n.r(t);var r=n(16787);describe("class NormanCluster",()=>{const e=jest.fn(()=>"abc"),t={rootGetters:{"i18n/t":e},dispatch:jest.fn()};it("should return empty arrays of system labels and system annotations if cluster labels and annotations are undefined",()=>{const e=new r["default"]({},t);expect(e.systemLabels).toStrictEqual([]),expect(e.systemAnnotations).toStrictEqual([])}),it("should list all the cluster's annotation keys that contain coreos.com, cattle.io, k3s.io, kubernetes.io, or k3s.io",()=>{const e=["cattle.io/test","coreos.com","test.cattle.io/something","kubernetes.io/test"],n=new r["default"]({annotations:{"cattle.io/test":"abc","coreos.com":"abc","k3s.io/test":"abc","test.cattle.io/something":"abc","kubernetes.io/test":"abc","other-label":"abc"}},t);expect(e.find(e=>!n.systemAnnotations.includes(e))).toBeUndefined()}),it("should list all the cluster's label keys that contain io.cattle.lifecycle, kubernetes.io, cattle.io, or k3s.io",()=>{const e=["cattle.io/test","test.io.cattle.lifecycle","test.kubernetes.io/test","k3s.io/test"],n=new r["default"]({labels:{"cattle.io/test":"abc","test.io.cattle.lifecycle":"abc","k3s.io/test":"abc","test.kubernetes.io/test":"abc","other-label":"abc"}},t);expect(e.find(e=>!n.systemLabels.includes(e))).toBeUndefined()})})},90466:function(e,t,n){"use strict";n.r(t);var r=n(6856),i=n(35664);const a=r["default"];describe("class Kubeconfig",()=>{const e=jest.fn((e,t)=>'"ext.cattle.io.kubeconfig".deleted'===e?`${null===t||void 0===t?void 0:t.name} (deleted)`:e),t=(t,n={})=>{const r=new a(t);return jest.spyOn(r,"$rootGetters","get").mockReturnValue({"i18n/t":e,"management/all":()=>[],...n}),r};beforeEach(()=>{jest.clearAllMocks()}),describe("expiresAt",()=>{it("should return null when ttl is not set",()=>{const e=t({metadata:{creationTimestamp:"2024-01-01T00:00:00Z"},spec:{}});expect(e.expiresAt).toBeNull()}),it("should return null when creationTimestamp is not set",()=>{const e=t({metadata:{},spec:{ttl:3600}});expect(e.expiresAt).toBeNull()}),it("should calculate expiry correctly",()=>{const e=t({metadata:{creationTimestamp:"2024-01-01T00:00:00Z"},spec:{ttl:3600}});expect(e.expiresAt).toBe("2024-01-01T01:00:00.000Z")}),it("should handle large ttl values",()=>{const e=t({metadata:{creationTimestamp:"2024-01-01T00:00:00Z"},spec:{ttl:86400}});expect(e.expiresAt).toBe("2024-01-02T00:00:00.000Z")})}),describe("referencedClusters",()=>{const n={mgmt:{id:"c-m-abc123"},status:{clusterName:"c-m-abc123"},nameDisplay:"my-cluster",detailLocation:{name:"c-cluster-product-resource-id",params:{cluster:"my-cluster"}}},r={id:"c-m-def456",nameDisplay:"mgmt-cluster",detailLocation:{name:"c-cluster-product-resource-id",params:{cluster:"mgmt-cluster"}}};it("should return empty array when no clusters are specified",()=>{const e=t({metadata:{},spec:{}});expect(e.referencedClusters).toStrictEqual([])}),it("should map provisioning cluster by mgmt id",()=>{const e=t({metadata:{},spec:{clusters:["c-m-abc123"]}},{"management/all":e=>e===i.Z7.RANCHER_CLUSTER?[n]:[]});expect(e.referencedClusters).toStrictEqual([{label:"my-cluster",location:n.detailLocation}])}),it("should map management cluster when no provisioning cluster found",()=>{const e=t({metadata:{},spec:{clusters:["c-m-def456"]}},{"management/all":e=>e===i.Mc.CLUSTER?[r]:[]});expect(e.referencedClusters).toStrictEqual([{label:"mgmt-cluster",location:r.detailLocation}])}),it("should return deleted label when cluster not found",()=>{const n=t({metadata:{},spec:{clusters:["c-m-deleted"]}});expect(n.referencedClusters).toStrictEqual([{label:"c-m-deleted (deleted)",location:null}]),expect(e).toHaveBeenCalledWith('"ext.cattle.io.kubeconfig".deleted',{name:"c-m-deleted"})}),it("should prefer provisioning cluster over management cluster",()=>{const e={id:"c-m-abc123",nameDisplay:"mgmt-version",detailLocation:{name:"mgmt-location"}},r=t({metadata:{},spec:{clusters:["c-m-abc123"]}},{"management/all":t=>t===i.Z7.RANCHER_CLUSTER?[n]:t===i.Mc.CLUSTER?[e]:[]});expect(r.referencedClusters).toStrictEqual([{label:"my-cluster",location:n.detailLocation}])})}),describe("sortedReferencedClusters",()=>{it("should sort existing clusters before deleted clusters",()=>{const e={mgmt:{id:"c-m-exists"},nameDisplay:"existing-cluster",detailLocation:{name:"location"}},n=t({metadata:{},spec:{clusters:["deleted-1","c-m-exists","deleted-2"]}},{"management/all":t=>t===i.Z7.RANCHER_CLUSTER?[e]:[]}),r=n.sortedReferencedClusters;expect(r[0].label).toBe("existing-cluster"),expect(r[0].location).not.toBeNull(),expect(r[1].location).toBeNull(),expect(r[2].location).toBeNull()}),it("should sort existing clusters alphabetically",()=>{const e=[{mgmt:{id:"c-m-zebra"},nameDisplay:"zebra",detailLocation:{name:"z"}},{mgmt:{id:"c-m-alpha"},nameDisplay:"alpha",detailLocation:{name:"a"}},{mgmt:{id:"c-m-beta"},nameDisplay:"beta",detailLocation:{name:"b"}}],n=t({metadata:{},spec:{clusters:["c-m-zebra","c-m-alpha","c-m-beta"]}},{"management/all":t=>t===i.Z7.RANCHER_CLUSTER?e:[]}),r=n.sortedReferencedClusters;expect(r.map(e=>e.label)).toStrictEqual(["alpha","beta","zebra"])}),it("should sort numerically when names contain numbers",()=>{const e=[{mgmt:{id:"c-m-2"},nameDisplay:"cluster2",detailLocation:{name:"c2"}},{mgmt:{id:"c-m-10"},nameDisplay:"cluster10",detailLocation:{name:"c10"}},{mgmt:{id:"c-m-1"},nameDisplay:"cluster1",detailLocation:{name:"c1"}}],n=t({metadata:{},spec:{clusters:["c-m-2","c-m-10","c-m-1"]}},{"management/all":t=>t===i.Z7.RANCHER_CLUSTER?e:[]}),r=n.sortedReferencedClusters;expect(r.map(e=>e.label)).toStrictEqual(["cluster1","cluster2","cluster10"])})}),describe("referencedClustersSortable",()=>{it("should return comma-separated lowercase labels",()=>{const e=[{mgmt:{id:"c-m-1"},nameDisplay:"Alpha",detailLocation:{name:"a"}},{mgmt:{id:"c-m-2"},nameDisplay:"Beta",detailLocation:{name:"b"}}],n=t({metadata:{},spec:{clusters:["c-m-1","c-m-2"]}},{"management/all":t=>t===i.Z7.RANCHER_CLUSTER?e:[]});expect(n.referencedClustersSortable).toBe("alpha,beta")}),it("should return empty string when no clusters",()=>{const e=t({metadata:{},spec:{}});expect(e.referencedClustersSortable).toBe("")})}),describe("_availableActions",()=>{it("should filter out goToEdit, goToEditYaml, cloneYaml, and download actions",()=>{const e=t({metadata:{},spec:{}}),n=[{action:"goToClone"},{action:"divider"},{action:"goToEdit"},{action:"goToEditYaml"},{action:"cloneYaml"},{action:"download"},{action:"promptRemove"}];jest.spyOn(Object.getPrototypeOf(Object.getPrototypeOf(e)),"_availableActions","get").mockReturnValue(n);const r=e._availableActions;expect(r).toStrictEqual([{action:"goToClone"},{action:"promptRemove"}])})})})},84264:function(e,t,n){"use strict";n.r(t);var r=n(5904);describe("class FleetCluster",()=>{it("should provide bundleInfo if correct data is present",()=>{const e=new r["default"]({metadata:{},spec:{},status:{display:{readyBundles:"0/1"}}});expect(e.bundleInfo.ready).toBe(0),expect(e.bundleInfo.total).toBe(1),expect(Object.getOwnPropertyNames(e.bundleInfo)).not.toContain("noValidData")}),describe("should provide bundleInfo with error",()=>{it.each([[""],["/"],["1/"],["/1"],["1/1/2"],["a/1"],["a/b"],["any-string"],["any-string1/string2"]])('with multiple scenarios of wrongful "readyBundles" data',e=>{const t=new r["default"]({metadata:{},spec:{},status:{display:{readyBundles:e}}});expect(Object.getOwnPropertyNames(t.bundleInfo)).toContain("noValidData")})})})},44282:function(e,t,n){"use strict";n.r(t);var r=n(84402);const i={commit:"foo",conditions:[{error:!0,lastUpdateTime:"2025-02-28T15:39:52Z",message:"Modified(1) [Cluster fleet-local/local]; configmap.v1 lots-a/test-config-one missing",status:"False",transitioning:!0,type:"Ready"},{error:!1,lastUpdateTime:"2025-02-28T15:36:25Z",status:"True",transitioning:!1,type:"GitPolling"},{error:!1,lastUpdateTime:"2025-02-28T15:36:25Z",status:"False",transitioning:!1,type:"Reconciling"},{error:!1,lastUpdateTime:"2025-02-28T15:36:25Z",status:"False",transitioning:!1,type:"Stalled"},{error:!1,lastUpdateTime:"2025-02-28T15:36:25Z",status:"True",transitioning:!1,type:"Accepted"}],desiredReadyClusters:1,display:{readyBundleDeployments:"1/2",state:"Modified"},gitJobStatus:"Current",lastPollingTriggered:"2025-02-28T16:08:39Z",observedGeneration:1,perClusterResourceCounts:{"fleet-local/local":{desiredReady:2,missing:1,modified:0,notReady:0,orphaned:0,ready:2,unknown:0,waitApplied:0}},readyClusters:0,resourceCounts:{desiredReady:2,missing:1,modified:0,notReady:0,orphaned:0,ready:2,unknown:0,waitApplied:0},resources:[{apiVersion:"v1",id:"lots-a/test-config-one",kind:"ConfigMap",name:"test-config-one",namespace:"lots-a",perClusterState:{missing:["fleet-local/local"]},state:"Missing",type:"configmap"},{apiVersion:"v1",id:"lots-a/test-config-two",kind:"ConfigMap",name:"test-config-two",namespace:"lots-a",perClusterState:{ready:["fleet-local/local"]},state:"Ready",type:"configmap"}],summary:{desiredReady:2,modified:1,nonReadyResources:[{bundleState:"Modified",modifiedStatus:[{apiVersion:"v1",kind:"ConfigMap",missing:!0,name:"test-config-one",namespace:"lots-a"}],name:"lots-a-scale-lotsofbundles-one"}],ready:1}};describe("class GitRepo",()=>{describe("resourcesStatuses",()=>{it.each([[]])("fn",()=>{jest.spyOn(r["default"].prototype,"$getters","get").mockReturnValue({byId:jest.fn()}),jest.spyOn(r["default"].prototype,"targetClusters","get").mockReturnValue([{id:"fleet-local/local",metadata:{labels:{}}}]);const e=new r["default"]({metadata:{namespace:"fleet-local"},spec:{},status:i}),t=e.resourcesStatuses,n=t.find(e=>"lots-a/test-config-one"===e.id);expect(n.state).toStrictEqual("missing"),expect(n.detailLocation).toBeUndefined();const a=t.find(e=>"lots-a/test-config-two"===e.id);expect(a.state).toStrictEqual("ready"),expect(a.detailLocation).toBeDefined()})})})},37069:function(e,t,n){"use strict";n.r(t);var r=n(80591);describe("class HelmOp",()=>{let e;describe("source getter",()=>{it("should return correct source for SOURCE_TYPE.REPO (HTTPS)",()=>{e=new r["default"]({spec:{helm:{repo:"https://charts.rancher.io/fleet",chart:"fleet-agent"}}});const t=e.source;expect(t.value).toBe("https://charts.rancher.io/fleet"),expect(t.display).toBe("charts.rancher.io/fleet"),expect(t.icon).toBe("icon icon-application"),expect(t.showLink).toBe(!0)}),it("should return correct source for SOURCE_TYPE.REPO (GitHub HTTPS .git)",()=>{e=new r["default"]({spec:{helm:{repo:"https://github.com/rancher/fleet.git",chart:"fleet"}}});const t=e.source;expect(t.value).toBe("https://github.com/rancher/fleet.git"),expect(t.display).toBe("rancher/fleet"),expect(t.icon).toBe("icon icon-application"),expect(t.showLink).toBe(!0)}),it("should return correct source for SOURCE_TYPE.REPO (GitHub SSH)",()=>{e=new r["default"]({spec:{helm:{repo:"git@github.com:rancher/fleet.git",chart:"fleet"}}});const t=e.source;expect(t.value).toBe("https://github.com/rancher/fleet"),expect(t.display).toBe("rancher/fleet"),expect(t.icon).toBe("icon icon-application"),expect(t.showLink).toBe(!0)}),it("should return correct source for SOURCE_TYPE.OCI",()=>{e=new r["default"]({spec:{helm:{repo:"oci://ghcr.io/rancher/some-chart"}}});const t=e.source;expect(t.value).toBe("oci://ghcr.io"),expect(t.display).toBe("oci://ghcr.io"),expect(t.icon).toBe("icon icon-application"),expect(t.showLink).toBe(!1)}),it("should return correct source for SOURCE_TYPE.TARBALL",()=>{e=new r["default"]({spec:{helm:{chart:"https://github.com/rancher/fleet-helm-charts/releases/download/fleet-0.12.1-beta.2/fleet-0.12.1-beta.2.tgz"}}});const t=e.source;expect(t.value).toBe("https://github.com/rancher/fleet-helm-charts/releases/download/fleet-0.12.1-beta.2/fleet-0.12.1-beta.2.tgz"),expect(t.display).toBe("rancher/fleet-helm-charts/releases/download/fleet-0.12.1-beta.2/fleet-0.12.1-beta.2.tgz"),expect(t.icon).toBe("icon icon-application"),expect(t.showLink).toBe(!0)}),it("should handle missing helm spec gracefully",()=>{e=new r["default"]({spec:{}});const t=e.source;expect(t.value).toBe(""),expect(t.display).toBeNull(),expect(t.icon).toBe("icon icon-application"),expect(t.showLink).toBe(!1)})}),describe("sourceSub getter",()=>{it("should display chart name and desired version when both are present (SOURCE_TYPE.REPO)",()=>{e=new r["default"]({spec:{helm:{repo:"https://charts.rancher.io/fleet",chart:"fleet-agent",version:"0.12.x"}}});const t=e.sourceSub;expect(t.value).toBe("fleet-agent : 0.12.x"),expect(t.display).toBe("fleet-agent : 0.12.x")}),it("should display chart name and desired version when both are present (SOURCE_TYPE.OCI)",()=>{e=new r["default"]({spec:{helm:{repo:"oci://ghcr.io/rancher/some-chart",version:"1.0.0"}}});const t=e.sourceSub;expect(t.value).toBe("rancher/some-chart : 1.0.0"),expect(t.display).toBe("rancher/some-chart : 1.0.0")}),it("should display only installed version when only it is present",()=>{e=new r["default"]({status:{version:"0.12.3"},spec:{helm:{}}});const t=e.sourceSub;expect(t.value).toBe("0.12.3"),expect(t.display).toBe("0.12.3")}),it("should display semantic version when installed version is missing",()=>{e=new r["default"]({spec:{helm:{version:"0.12.x",chart:"test-chart"}}});const t=e.sourceSub;expect(t.value).toBe("0.12.x"),expect(t.display).toBe("0.12.x")}),it('should display "semantic -> installed" when both versions are present (no chart)',()=>{e=new r["default"]({spec:{helm:{version:"0.12.x"}},status:{version:"0.12.5"}});const t=e.sourceSub;expect(t.value).toBe("0.12.x -> 0.12.5"),expect(t.display).toBe("0.12.x -> 0.12.5")}),it('should display chart and "semantic -> installed" when all are present',()=>{e=new r["default"]({spec:{helm:{repo:"https://charts.rancher.io/fleet",chart:"fleet-agent",version:"0.12.x"}},status:{version:"0.12.5"}});const t=e.sourceSub;expect(t.value).toBe("fleet-agent : 0.12.x -> 0.12.5"),expect(t.display).toBe("fleet-agent : 0.12.x -> 0.12.5")}),it("should display chart and only semantic version when all are present but semantic version is equal to installed version (no duplicate info)",()=>{e=new r["default"]({spec:{helm:{repo:"https://charts.rancher.io/fleet",chart:"fleet-agent",version:"0.12.3"}},status:{version:"0.12.3"}});const t=e.sourceSub;expect(t.value).toBe("fleet-agent : 0.12.3"),expect(t.display).toBe("fleet-agent : 0.12.3")}),it("should return empty string when no version or chart information is available",()=>{e=new r["default"]({spec:{helm:{}},status:{}});const t=e.sourceSub;expect(t.value).toBe(""),expect(t.display).toBe("")}),it("should correctly handle missing helm spec",()=>{e=new r["default"]({spec:{},status:{}});const t=e.sourceSub;expect(t.value).toBe(""),expect(t.display).toBe("")})})})},85166:function(e,t,n){"use strict";n.r(t);var r=n(21766);describe("class LogFlow",()=>{it('prop "outputs" should take namespace in consideration when filtering logging v2 "outputs"',()=>{const e=[{apiVersion:"logging.banzaicloud.io/v1beta1",kind:"Output",metadata:{creationTimestamp:"2025-03-17T10:51:55Z",namespace:"default",name:"output1",uid:"927b4a2e-6be0-476f-9bdd-cf30c4a27d8b"},name:"output1",spec:{awsElasticsearch:{endpoint:{}}},status:{active:!1}},{apiVersion:"logging.banzaicloud.io/v1beta1",kind:"Output",metadata:{creationTimestamp:"2025-03-17T10:51:55Z",namespace:"cattle-fleet-system",name:"output2",uid:"927b4a2e-6be0-476f-9bdd-cf30c4a27d8c"},name:"output2",spec:{awsElasticsearch:{endpoint:{}}},status:{active:!1}},{apiVersion:"logging.banzaicloud.io/v1beta1",kind:"Output",metadata:{creationTimestamp:"2025-03-17T10:51:55Z",namespace:"cattle-fleet-system",name:"output3",uid:"927b4a2e-6be0-476f-9bdd-cf30c4a27d8d"},name:"output3",spec:{awsElasticsearch:{endpoint:{}}},status:{active:!1}},{apiVersion:"logging.banzaicloud.io/v1beta1",kind:"Output",metadata:{creationTimestamp:"2025-03-17T10:51:55Z",namespace:"kube-system",name:"output4",uid:"927b4a2e-6be0-476f-9bdd-cf30c4a27d8e"},name:"output4",spec:{awsElasticsearch:{endpoint:{}}},status:{active:!1}}],t={apiVersion:"logging.banzaicloud.io/v1beta1",kind:"Flow",metadata:{name:"flow2",creationTimestamp:"2025-03-17T10:53:02Z",generation:1,namespace:"cattle-fleet-system",resourceVersion:"4070",uid:"fdf7d553-d101-4c37-91b0-784f95dc950a",fields:["flow2",!0,null]},spec:{localOutputRefs:["output2","output3"]}},n=new r["default"](t);jest.spyOn(n,"allOutputs","get").mockReturnValue(e),expect(n.outputs).toStrictEqual([e[1],e[2]])})})},58221:function(e,t,n){"use strict";n.r(t);var r=n(16544);jest.mock("@shell/utils/clipboard",()=>({copyTextToClipboard:jest.fn(()=>Promise.resolve({}))})),describe("class MgmtCluster",()=>{describe("provisioner",()=>{const e=[[{provider:"rke",driver:"imported"},"imported"],[{provider:"k3s",driver:"K3S"},"K3S"],[{provider:"aks",driver:"AKS"},"AKS"],[{},"imported"]];it.each(e)("should return provisioner value properly based on the props data",(e,t)=>{const n=new r["default"]({status:e});expect(n.provisioner).toBe(t)})})})},25529:function(e,t,n){"use strict";n.r(t);var r=n(77917);describe("class MgmtNode",()=>{const e="foo",t="bar",n=jest.fn(()=>t),i={rootGetters:{"i18n/t":n}},a=()=>{jest.clearAllMocks()};it("should not return addresses if they are not present in the resource status, the internalNodeStatus, or the rkeNode key in status",()=>{const e=new r["default"]({status:{}});expect(e.addresses).toStrictEqual([]),a()}),describe("should return addresses",()=>{const t=[e];it("if they are present directly on the resource status",()=>{const e=new r["default"]({status:{addresses:t}});expect(e.addresses).toStrictEqual(t)}),it('if they are not present directly on the resource status but are on "status.internalNodeStatus"',()=>{const e=new r["default"]({status:{internalNodeStatus:{addresses:t}}});expect(e.addresses).toStrictEqual(t)})}),describe("should return an internalIp",()=>{const t=[{type:"InternalIP",address:e}],n=e;it("if addresses includes an object with an appropriate type and address",()=>{const n=new r["default"]({status:{addresses:t}});expect(n.internalIp).toStrictEqual(e)}),it("if internalNodeStatus.addresses includes an object with an appropriate type and address",()=>{const n=new r["default"]({status:{internalNodeStatus:{addresses:t}}});expect(n.internalIp).toStrictEqual(e)}),it("if addresses and internalNodeStatus.addresses do not provide an internal ip and the status includes an rkeNode key with an appropriate type and address",()=>{const e=new r["default"]({status:{rkeNode:{internalAddress:n}}});expect(e.internalIp).toStrictEqual(n)})}),describe("should return an externalIp",()=>{const t=[{type:"ExternalIP",address:e}],n=e;it("if addresses includes an object with an appropriate type and address",()=>{const n=new r["default"]({status:{addresses:t}});expect(n.externalIp).toStrictEqual(e)}),it("if internalNodeStatus.addresses includes an object with an appropriate type and address",()=>{const n=new r["default"]({status:{internalNodeStatus:{addresses:t}}});expect(n.externalIp).toStrictEqual(e)}),it("if addresses and internalNodeStatus.addresses do not provide an external ip and the status includes an rkeNode key with an appropriate type and address",()=>{const e=new r["default"]({status:{rkeNode:{address:n}}});expect(e.externalIp).toStrictEqual(n)})}),describe("should return an appropriate message",()=>{it("if there is no internalIp to display",()=>{const e=new r["default"]({status:{}},i);expect(e.internalIp).toStrictEqual(t),expect(n).toHaveBeenCalledTimes(1),expect(n).toHaveBeenCalledWith("generic.none"),a()}),it("if there is no externalIp to display",()=>{const e=new r["default"]({status:{}},i);expect(e.externalIp).toStrictEqual(t),expect(n).toHaveBeenCalledTimes(1),expect(n).toHaveBeenCalledWith("generic.none"),a()})}),describe("canScaleDown",()=>{const e="test",t="test/id",i={worker:{worker:!0,etcd:!1,controlPlane:!1},etcd:{worker:!1,etcd:!0,controlPlane:!1},controlPlane:{worker:!1,etcd:!1,controlPlane:!0},etcdAndControlPlane:{worker:!1,etcd:!0,controlPlane:!0},all:{worker:!0,etcd:!0,controlPlane:!0}},a={id:"01",isWorker:!0,isControlPlane:!1,isEtcd:!1},o={id:"02",isWorker:!1,isControlPlane:!1,isEtcd:!0},s={id:"03",isWorker:!1,isControlPlane:!0,isEtcd:!1},l={id:"03",isWorker:!1,isControlPlane:!0,isEtcd:!0},c={id:"04",isWorker:!0,isControlPlane:!0,isEtcd:!0},u={rootGetters:{"rancher/byId":()=>({actions:{scaledown:"scaledown"}}),"i18n/t":n}};it.each([[{spec:i.worker,nodes:[a]},!0],[{spec:i.etcd,nodes:[o,o,s]},!0],[{spec:i.etcdAndControlPlane,nodes:[l,l]},!0],[{spec:i.etcdAndControlPlane,nodes:[l]},!1],[{spec:i.all,nodes:[c]},!1],[{spec:i.all,nodes:[c,c]},!0]])("should return canScaleDown properly",(n,i)=>{const{spec:a,nodes:o}=n,s=new r["default"]({spec:a,id:t},{...u,getters:{all:()=>[{mgmtClusterId:e,nodes:o}]}});expect(s.canScaleDown).toStrictEqual(i)})})})},94479:function(e,t,n){"use strict";n.r(t);var r=n(68959);describe("class MgmtNodePool",()=>{describe("canScaleDownPool",()=>{const e="test",t="test/id",n={worker:{worker:!0,etcd:!1,controlPlane:!1},etcd:{worker:!1,etcd:!0,controlPlane:!1},controlPlane:{worker:!1,etcd:!1,controlPlane:!0},etcdAndControlPlane:{worker:!1,etcd:!0,controlPlane:!0},all:{worker:!0,etcd:!0,controlPlane:!0}},i={id:"01",isWorker:!0,isControlPlane:!1,isEtcd:!1},a={id:"02",isWorker:!1,isControlPlane:!1,isEtcd:!0},o={id:"03",isWorker:!1,isControlPlane:!0,isEtcd:!1},s={id:"03",isWorker:!1,isControlPlane:!0,isEtcd:!0},l={id:"04",isWorker:!0,isControlPlane:!0,isEtcd:!0},c={rootGetters:{"rancher/byId":()=>({actions:{scaledown:"scaledown"}})}};it.each([[{spec:n.worker,nodes:[i]},!0],[{spec:n.etcd,nodes:[a,a,o]},!0],[{spec:n.etcdAndControlPlane,nodes:[s,s]},!0],[{spec:n.etcdAndControlPlane,nodes:[s]},!1],[{spec:n.all,nodes:[l]},!1],[{spec:n.all,nodes:[l,l]},!0]])("should return canScaleDownPool properly",(n,i)=>{const{spec:a,nodes:o}=n,s=new r["default"]({spec:a,id:t},{...c,getters:{all:()=>[{mgmtClusterId:e,nodes:o}]}});expect(s.canScaleDownPool()).toStrictEqual(i)})})})},68882:function(e,t,n){"use strict";n.r(t);var r=n(67867),i=n(2841),a=n(71025);describe("class Namespace",()=>{describe("checking if isSystem",()=>{it.each([["whatever1",i.eG,!0],["whatever2","any-annotation",!1],["whatever3","",!1]])("should return true if it has the correct annotation",(e,t,n)=>{const i=new r["default"]({});i.metadata={...i.metadata,name:e},t&&(i.metadata.annotations={[t]:"true"}),expect(i.isSystem).toBe(n)});const e=[];a.A.forEach(t=>{e.push([t,!0])}),e.push(["c-whatever-system",!1]),e.push(["cattle-whatever",!1]),e.push(["",!1]),it.each(e)("should return true if it belongs to the curated list of namespaces",(e,t)=>{const n=new r["default"]({});n.metadata={...n.metadata,name:e},expect(n.isSystem).toBe(t)}),it.each([["cattle-c-whatever-system",!0],["cattle-whatever",!1],["c-whatever-system",!1]])('should return true if starts with "cattle-" end with "-system',(e,t)=>{const n=new r["default"]({});n.metadata={...n.metadata,name:e},expect(n.isSystem).toBe(t)})}),it.todo("should check if isFleetManaged"),describe("checking if isObscure",()=>{it.each([["c-whatever-system","management.cattle.io/system-namespace",!0],["p-whatever",i.eG,!0],["p-whatever","",!1],["","",!1]])("should return a value if is system AND has the correct prefix",(e,t,n)=>{const i=new r["default"]({});i.metadata={...i.metadata,name:e},t&&(i.metadata.annotations={[t]:"true"}),expect(i.isObscure).toBe(n)})}),it.each([["foo:bar","bar"],["",null]])("given %p annotation, projectId should be %p",(e,t)=>{const n=new r["default"]({});n.metadata={name:"",annotations:{"field.cattle.io/projectId":e}},expect(n.projectId).toBe(t)}),it.todo("should return the project"),describe("handling groupById",()=>{it("should return the groupById if have project id",()=>{const e=new r["default"]({});jest.spyOn(e,"project","get").mockReturnValue({id:"mock-project-id",type:"project",name:"mock-project"}),expect(e.groupById).toStrictEqual("mock-project-id")}),it("should return the groupById if project id undefined",()=>{const e=jest.fn(()=>"Not in a Project"),t={rootGetters:{"i18n/t":e}},n=new r["default"]({},t);jest.spyOn(n,"project","get").mockReturnValue({}),expect(n.groupById).toStrictEqual("Not in a Project")})}),it.todo("should return the project name with i18n"),it.todo("should return the projectNameSort"),it.todo("should check if istioInstalled"),it.todo("should check if injectionEnabled"),describe("handling Istio labels",()=>{const e=jest.fn();it.each([{metadata:{name:"",labels:{"istio-injection":"whatever"}},save:e},[{metadata:{name:"",labels:{"istio-injection":"whatever"}},save:e}]])("should handle both data as list and single object and save",t=>{const n=new r["default"]({});n.enableAutoInjection(t),expect(e).toHaveBeenCalledWith()}),it("should add auto injection label as enable",()=>{const t={metadata:{name:"",labels:{"istio-injection":"whatever"}},save:e},n=new r["default"]({});n.enableAutoInjection(t),expect(t.metadata.labels["istio-injection"]).toBe("enabled")}),it("should remove label on disable",()=>{const t={metadata:{name:"",labels:{"istio-injection":"whatever"}},save:e},n=new r["default"]({});n.enableAutoInjection(t,!1),expect(t.metadata.labels["istio-injection"]).toBeUndefined()})}),it.todo("should disableAutoInjection"),it.todo("should check if confirmRemove"),describe("handling listLocation",()=>{it.each([["c-cluster-product-projectsnamespaces",!0],["c-cluster-product-resource",!1]])("should return the name %p if is Rancher (%p)",(e,t)=>{const n=new r["default"]({});jest.spyOn(n,"$rootGetters","get").mockReturnValue({isRancher:t,currentProduct:{inStore:""}}),expect(n.listLocation.name).toBe(e)}),it("should return the name and resource if Harvester",()=>{const e=new r["default"]({});jest.spyOn(e,"$rootGetters","get").mockReturnValue({isRancher:!0,currentProduct:{inStore:"harvester"}});const t={name:"harvester-c-cluster-projectsnamespaces",params:{resource:"namespace"}};expect(e.listLocation).toStrictEqual(t)})}),it.todo("should return _detailLocation with a name"),it.todo("should return the resourceQuota"),it.todo("should set the resourceQuota as reactive Vue property"),it.todo("should reset project with cleanForNew"),describe("hideDetailLocation",()=>{it("should not throw when currentProduct is undefined",()=>{const e=new r["default"]({});jest.spyOn(e,"$rootGetters","get").mockReturnValue({currentProduct:void 0}),expect(()=>e.hideDetailLocation).not.toThrow(),expect(e.hideDetailLocation).toBe(!0)})}),describe("glance",()=>{it("should return projectGlance instead of namespace when namespace is in a project",()=>{var e;const t=jest.fn(e=>e),n={rootGetters:{"i18n/t":t}},i=new r["default"]({},n),a={detailLocation:"project-detail",nameDisplay:"My Project"};jest.spyOn(i,"project","get").mockReturnValue(a),Object.defineProperty(i,"_glance",{get:jest.fn(()=>[{name:"namespace"},{name:"other"}])});const o=i.glance;expect(o).toHaveLength(2),expect(o[0].name).toBe("project"),expect(o[0].label).toBe("component.resource.detail.glance.project"),expect(o[0].formatter).toBe("Link"),expect(null===(e=o[0].formatterOpts)||void 0===e?void 0:e.to).toBe("project-detail"),expect(o[0].content).toBe("My Project"),expect(o[1].name).toBe("other")}),it("should remove namespace from glance when namespace is not in a project",()=>{const e=new r["default"]({});jest.spyOn(e,"project","get").mockReturnValue(null),Object.defineProperty(e,"_glance",{get:jest.fn(()=>[{name:"namespace"},{name:"other"}])});const t=e.glance;expect(t).toHaveLength(1),expect(t[0].name).toBe("other")})}),describe("projectGlance",()=>{it("should return undefined if namespace is not in a project",()=>{const e=new r["default"]({});jest.spyOn(e,"project","get").mockReturnValue(null),expect(e.projectGlance).toBeUndefined()}),it("should return project glance information if namespace is in a project",()=>{const e=jest.fn(e=>e),t={rootGetters:{"i18n/t":e}},n=new r["default"]({},t),i={detailLocation:"project-detail",nameDisplay:"My Project"};jest.spyOn(n,"project","get").mockReturnValue(i);const a=n.projectGlance;expect(null===a||void 0===a?void 0:a.name).toBe("project"),expect(null===a||void 0===a?void 0:a.label).toBe("component.resource.detail.glance.project"),expect(null===a||void 0===a?void 0:a.formatter).toBe("Link"),expect(null===a||void 0===a?void 0:a.formatterOpts.to).toBe("project-detail"),expect(null===a||void 0===a?void 0:a.content).toBe("My Project")})})})},4915:function(e,t,n){"use strict";n.r(t);var r=n(44458);describe("class Node",()=>{const e=()=>{jest.clearAllMocks()};it.each([["1200",1200],["1k",1e3]])("given %p status pod capacity value from the backend, should parse the value correctly as %p",(t,n)=>{const i=new r["default"]({status:{capacity:{pods:t}}});expect(i.podCapacity).toStrictEqual(n),e()})})},29759:function(e,t,n){"use strict";n.r(t);var r=n(47685);jest.mock("@shell/utils/provider",()=>({isHostedProvider:jest.fn().mockImplementation((e,t)=>["GKE","EKS","AKS"].includes(t))})),describe("class ProvCluster",()=>{const e={clusterName:"test",provisioner:"GKE",spec:{},mgmt:{spec:{gkeConfig:{privateClusterConfig:{enablePrivateEndpoint:!0}}}}},t={clusterName:"test",provisioner:"EKS",spec:{},mgmt:{spec:{eksConfig:{privateAccess:!0}}}},n={clusterName:"test",provisioner:"AKS",spec:{},mgmt:{spec:{aksConfig:{privateCluster:!0}}}};describe("isHostedKubernetesProvider + isPrivateHostedProvider",()=>{const i=[[e,!0],[t,!0],[n,!0]],a=()=>{jest.clearAllMocks()};it.each(i)("should return the isHostedKubernetesProvider and isPrivateHostedProvider values properly based on the props data",(e,t)=>{const n=new r["default"]({spec:e.spec});jest.spyOn(n,"mgmt","get").mockReturnValue(e.mgmt),jest.spyOn(n,"provisioner","get").mockReturnValue(e.provisioner),expect(n.isRke2).toBe(!1),expect(n.isHostedKubernetesProvider).toBe(t),expect(n.isPrivateHostedProvider).toBe(t),a()})}),describe("isImported",()=>{const e=[{description:"should return false for a local cluster",clusterData:{isLocal:!0},expected:!1},{description:"should return true for an imported k3s cluster",clusterData:{isLocal:!1,mgmt:{status:{provider:"k3s",driver:"k3s"}}},expected:!0},{description:"should return true for an imported k3s cluster in waiting state",clusterData:{isLocal:!1,mgmt:{status:{provider:void 0,driver:"k3s"}}},expected:!0},{description:"should return true for an imported rke2 cluster in waiting state",clusterData:{isLocal:!1,mgmt:{status:{provider:void 0,driver:"rke2"}}},expected:!0},{description:"should return false for a provisioned k3s cluster",clusterData:{isLocal:!1,mgmt:{status:{provider:"k3s",driver:"imported"}}},expected:!1},{description:"should return true for an imported rke2 cluster",clusterData:{isLocal:!1,mgmt:{status:{provider:"rke2",driver:"rke2"}}},expected:!0},{description:"should return false for a provisioned rke2 cluster",clusterData:{isLocal:!1,mgmt:{status:{provider:"rke2",driver:"imported"}}},expected:!1},{description:"should return true for an imported hosted cluster",clusterData:{isLocal:!1,isHostedKubernetesProvider:!0,providerConfig:{imported:!0}},expected:!0},{description:"should return false for a provisioned hosted cluster",clusterData:{isLocal:!1,isHostedKubernetesProvider:!0,providerConfig:{imported:!1}},expected:!1},{description:"should return true for a generic imported cluster",clusterData:{isLocal:!1,provisioner:"imported"},expected:!0},{description:"should return false for a generic provisioned cluster",clusterData:{isLocal:!1,provisioner:"rke2"},expected:!1}],t=()=>{jest.clearAllMocks()};it.each(e)("$description",({clusterData:e,expected:n})=>{const i=new r["default"]({});jest.spyOn(i,"mgmt","get").mockReturnValue(e.mgmt),void 0!==e.isLocal&&jest.spyOn(i,"isLocal","get").mockReturnValue(e.isLocal),void 0!==e.isHostedKubernetesProvider&&jest.spyOn(i,"isHostedKubernetesProvider","get").mockReturnValue(e.isHostedKubernetesProvider),void 0!==e.providerConfig&&jest.spyOn(i,"providerConfig","get").mockReturnValue(e.providerConfig),void 0!==e.provisioner&&jest.spyOn(i,"provisioner","get").mockReturnValue(e.provisioner),expect(i.isImported).toBe(n),t()})}),describe("hasError",()=>{const e=[{error:!1,lastUpdateTime:"2022-10-17T23:09:15Z",status:"True",transitioning:!1,type:"Ready"}],t=[{error:!0,lastUpdateTime:"2022-10-17T23:09:15Z",status:"False",message:"some-error-message",transitioning:!1,type:"Pending"}],n=[],i=[{error:!0,lastUpdateTime:"2022-10-17T23:09:15Z",status:"False",message:"some-error-message",transitioning:!1,type:"Pending"},{error:!1,lastUpdateTime:"2023-10-17T23:09:15Z",status:"True",transitioning:!1,type:"Ready"}],a=[{error:!1,lastUpdateTime:"2022-10-17T23:09:15Z",status:"True",transitioning:!1,type:"Ready"},{error:!0,lastUpdateTime:"2023-10-17T23:09:15Z",status:"False",message:"some-error-message",transitioning:!1,type:"Pending"}],o=[{error:!0,lastUpdateTime:"",status:"False",message:"some-error-message",transitioning:!1,type:"Pending"},{error:!1,lastUpdateTime:"2023-10-17T23:09:15Z",status:"True",transitioning:!1,type:"Ready"}],s=[["conditionsWithoutError",e,!1],["conditionsWithoutReady",t,!0],["noConditions",n,!1],["conditionsWithReadyLatest",i,!1],["conditionsWithErrorLatest",a,!0],["conditionsWithProblemInLastUpdateTimeProp",o,!1]],l=()=>{jest.clearAllMocks()};it.each(s)('should return the hasError value properly based on the "status.conditions" props data for testcase %p',(e,t,n)=>{const i={rootGetters:{"management/byId":jest.fn()}},a=new r["default"]({status:{conditions:t}},i);expect(a.hasError).toBe(n),l()})}),describe("supportsWindows",()=>{const e=[{description:"should return false for k3s",clusterData:{isK3s:!0},expected:!1},{description:"should return false for imported k3s",clusterData:{isImportedK3s:!0},expected:!1},{description:"should return windowsPreferedCluster for rke1",clusterData:{isRke1:!0,mgmt:{spec:{windowsPreferedCluster:!0}}},expected:!0},{description:"should return false for rke1 if windowsPreferedCluster is false/missing",clusterData:{isRke1:!0,mgmt:{spec:{windowsPreferedCluster:!1}}},expected:!1},{description:"should return false if not rke2 (and not rke1 or k3s)",clusterData:{isRke2:!1},expected:!1},{description:"should return false if kubernetesVersion is missing",clusterData:{isRke2:!0,kubernetesVersion:void 0},expected:!1},{description:"should return false if kubernetesVersion is less than v1.21.0",clusterData:{isRke2:!0,kubernetesVersion:"v1.20.9"},expected:!1},{description:"should return false if cni is not calico or flannel",clusterData:{isRke2:!0,kubernetesVersion:"v1.34.0",spec:{rkeConfig:{machineGlobalConfig:{cni:"cilium"}}}},expected:!1},{description:"should return true if cni is calico",clusterData:{isRke2:!0,kubernetesVersion:"v1.34.0",spec:{rkeConfig:{machineGlobalConfig:{cni:"calico"}}}},expected:!0},{description:"should return false if cni is flannel and kubernetesVersion is less than v1.29.2 (e.g. v1.29.1)",clusterData:{isRke2:!0,kubernetesVersion:"v1.29.1",spec:{rkeConfig:{machineGlobalConfig:{cni:"flannel"}}}},expected:!1},{description:"should return true if cni is flannel and kubernetesVersion is exactly v1.29.2",clusterData:{isRke2:!0,kubernetesVersion:"v1.29.2",spec:{rkeConfig:{machineGlobalConfig:{cni:"flannel"}}}},expected:!0},{description:"should return true if cni is flannel and kubernetesVersion is >= v1.29.2 (e.g. v1.35.0)",clusterData:{isRke2:!0,kubernetesVersion:"v1.35.0",spec:{rkeConfig:{machineGlobalConfig:{cni:"flannel"}}}},expected:!0},{description:"should return true if cni is empty/undefined",clusterData:{isRke2:!0,kubernetesVersion:"v1.34.0",spec:{rkeConfig:{machineGlobalConfig:{}}}},expected:!0}];it.each(e)("$description",({clusterData:e,expected:t})=>{const n=new r["default"]({spec:e.spec});jest.spyOn(n,"mgmt","get").mockReturnValue(e.mgmt),jest.spyOn(n,"isK3s","get").mockReturnValue(e.isK3s||!1),jest.spyOn(n,"isImportedK3s","get").mockReturnValue(e.isImportedK3s||!1),jest.spyOn(n,"isRke1","get").mockReturnValue(e.isRke1||!1),jest.spyOn(n,"isRke2","get").mockReturnValue(e.isRke2||!1),jest.spyOn(n,"kubernetesVersion","get").mockReturnValue(e.kubernetesVersion),expect(n.supportsWindows).toBe(t),jest.clearAllMocks()})})})},81453:function(e,t,n){"use strict";n.r(t);var r=n(2334);describe("class: schema:",()=>{describe("parseType",()=>{it.each([["array",void 0,["array"]],["map",void 0,["map"]],["io.cattle.provisioning.v1.Cluster.status",void 0,["io.cattle.provisioning.v1.Cluster.status"]],["array[string]",void 0,["array","string"]],["array",{subtype:"string"},["array","string"]],["map[string]",void 0,["map","string"]],["map",{subtype:"string"},["map","string"]],["array[io.cattle.provisioning.v1.Cluster.status]",void 0,["array","io.cattle.provisioning.v1.Cluster.status"]],["array",{subtype:"io.cattle.provisioning.v1.Cluster.status"},["array","io.cattle.provisioning.v1.Cluster.status"]],["map[io.cattle.provisioning.v1.Cluster.status]",void 0,["map","io.cattle.provisioning.v1.Cluster.status"]],["map",{subtype:"io.cattle.provisioning.v1.Cluster.status"},["map","io.cattle.provisioning.v1.Cluster.status"]]])("string: %p and field: %p ... should equal %p",(e,t,n)=>{expect((0,r.parseType)(e,t)).toStrictEqual(n)})})})},19147:function(e,t,n){"use strict";n.r(t);var r=n(29859),i=n(17259),a=n(35664),o=n(2841);describe("class Secret",()=>{describe("detailLocation",()=>{it("should return correct route for project scoped secret",()=>{const e=new r["default"]({metadata:{namespace:"c-cluster-p-project",labels:{[o.Qw]:"p-project"}},id:"c-cluster-p-project/my-secret"});Object.defineProperty(e,"$rootGetters",{value:{productId:"explorer",clusterId:"c-cluster",isRancher:!0}});const t=e.detailLocation;expect(t.name).toBe(`c-cluster-product-${a.cG.PROJECT_SECRETS}-namespace-id`),expect(t.params.resource).toBe(a.cG.PROJECT_SECRETS),expect(t.params.product).toBe("explorer"),expect(t.params.cluster).toBe("c-cluster"),expect(t.params.namespace).toBe("c-cluster-p-project"),expect(t.params.id).toBe("my-secret")}),it("should return default detailLocation for non-project scoped secret",()=>{const e=new r["default"]({metadata:{namespace:"default"},id:"default/my-secret"});Object.defineProperty(e,"$rootGetters",{value:{productId:"explorer",clusterId:"c-cluster",isRancher:!0}});const t={name:"some-route"};Object.defineProperty(e,"_detailLocation",{value:t}),expect(e.detailLocation).toBe(t)})}),describe("cleanForDownload",()=>{it("should contains the type attribute if cleanForDownload",async()=>{const e=new r["default"]({}),t="apiVersion: v1\nkind: Secret\nmetadata:\n name: my-secret\ntype: Opaque\n",n=await e.cleanForDownload(t);expect(n).toBe(t)}),it("should remove id, links and actions keys if cleanForDownload",async()=>{const e=new r["default"]({}),t="apiVersion: v1\nkind: Secret\nmetadata:\n name: my-secret\n namespace: default\ntype: Opaque\n",n="id: test_id\nlinks:\n view: https://example.com\nactions:\n remove: https://example.com",i=`${t}\n${n}`,a=await e.cleanForDownload(i);expect(a).toBe(t)})}),describe("supportsSshKnownHosts",()=>{it.each([[!1,"type is not SSH","generic",{known_hosts:"S05PV05fSE9TVFM="}],[!1,"missing known_hosts",i.J.SSH,{}],[!1,"data is null",i.J.SSH,null],[!0,"type is SSH key and known_hosts exists",i.J.SSH,{known_hosts:"S05PV05fSE9TVFM="}]])("is %p if %p",(e,t,n,i)=>{const a=new r["default"]({_type:n,data:i}),o=a.supportsSshKnownHosts;expect(o).toBe(e)})})})},66888:function(e,t,n){"use strict";n.r(t);var r=n(45858),i=n(96730);describe("class SteveSchema",()=>{describe("schema diet",()=>{it("schema Definitions",async()=>{const e="cluster",t="steveTest";r["default"].reset(e);const n={id:t,metadata:{name:t},resourceFields:null,links:{self:`/v1/schemas/${t}`}},a={type:t,resourceFields:{a:{},b:{}}},o={a:{type:"a"},b:{type:"b"}},s=new r["default"](n,{dispatch:jest.fn().mockImplementation((e,n)=>(expect(e).toBe("request"),expect(n.type).toBe("schemaDefinition"),expect(n.url).toBe(`/v1/schemaDefinitions/${t}`),{definitionType:t,definitions:{[t]:a,...o}})),state:{config:{namespace:e}}});expect(s.schemaDefinition).toBeNull(),expect(s.schemaDefinitions).toBeNull(),expect(s.requiresResourceFields).toBeTruthy(),expect(s.hasResourceFields).toBeFalsy(),await s.fetchResourceFields(),expect(s.schemaDefinition).toStrictEqual(a),expect(s.schemaDefinitions).toStrictEqual(o),expect(s.requiresResourceFields).toBeTruthy(),expect(s.hasResourceFields).toBeTruthy(),(0,i.HC)(s,{...n}),expect(s.schemaDefinition).toStrictEqual(a),expect(s.schemaDefinitions).toStrictEqual(o),expect(s.requiresResourceFields).toBeTruthy(),expect(s.hasResourceFields).toBeTruthy()})})})},77107:function(e,t,n){"use strict";n.r(t);var r=n(63809);describe("class StorageClass",()=>{describe("checking if provisionerDisplay",()=>{it.each([["kubernetes.io/azure-disk",!0],["kubernetes.io/portworx-volume",!0],["rancher.io/local-path",!1],["some-random-string-as-provisioner",!1]])("should NOT show a suffix IF they are built-in (on the PROVISIONER_OPTIONS list)",(e,t)=>{const n=new r["default"]({metadata:{},spec:{},provisioner:e});jest.spyOn(n,"$rootGetters","get").mockReturnValue({"i18n/t":jest.fn()}),expect(!!r.PROVISIONER_OPTIONS.find(t=>t.value===e)).toBe(t)})})})},91624:function(e,t,n){"use strict";var r=n(70775);const i="dsaf",a={type:i,__rehydrate:"whatever",__clone:"whatever"},o="asdasd",s={...a,type:o,__clone:"whatever",metadata:{clusterName:"whatever",creationTimestamp:"whatever",deletionGracePeriodSeconds:"whatever",deletionTimestamp:"whatever",fields:"whatever",finalizers:"whatever",generateName:"whatever",generation:"whatever",initializers:"whatever",managedFields:"whatever",ownerReferences:"whatever",relationships:"whatever",selfLink:"whatever",state:"whatever",uid:"whatever",resourceVersion:"whatever"},spec:{versions:{schema:"whatever"}},links:"whatever",status:"whatever",stringData:"whatever"};var l=n(35664);describe("class: Workload",()=>{describe("given custom workload keys",()=>{const e="image",t={image:e,__active:"whatever",active:"whatever",_init:"whatever",error:"whatever"},n={...s,type:"123abv",__rehydrate:"whatever",__clone:"whatever",spec:{template:{spec:{containers:[t],initContainers:[t]}}}};n.metadata.name="abc",it("should keep internal keys",()=>{const e=new r["default"](n,{getters:{schemaFor:()=>({linkFor:jest.fn()})},dispatch:jest.fn(),rootGetters:{"i18n/t":jest.fn()}});expect({...e}).toStrictEqual(n)}),describe("method: save",()=>{it("should remove all the internal keys",async()=>{const t=jest.fn(),i=new r["default"](n,{getters:{schemaFor:()=>({linkFor:jest.fn()})},dispatch:t,rootGetters:{"i18n/t":jest.fn(),"i18n/exists":()=>!0}}),a={metadata:{name:"abc",fields:"whatever",resourceVersion:"whatever",clusterName:"whatever",deletionGracePeriodSeconds:"whatever",generateName:"whatever",ownerReferences:"whatever"},spec:{template:{spec:{containers:[{image:e}],initContainers:[{image:e}]}}}};await i.save();const o={data:a,headers:{accept:"application/json","content-type":"application/json"},method:"post",url:void 0};expect(t).toHaveBeenCalledWith("request",{opt:o,type:n.type}),expect({...i}).toStrictEqual(n)})})}),describe("method: scale",()=>{it("should call scaleUp when isUp is true",async()=>{const e=jest.fn().mockResolvedValue(void 0),t=new r["default"]({type:l.oU.DEPLOYMENT,metadata:{name:"test",namespace:"default"},spec:{replicas:1}},{getters:{schemaFor:()=>({linkFor:jest.fn()})},dispatch:jest.fn(),rootGetters:{"i18n/t":jest.fn()}});t.scaleUp=e,await t.scale(!0),expect(e).toHaveBeenCalledWith()}),it("should call scaleDown when isUp is false",async()=>{const e=jest.fn().mockResolvedValue(void 0),t=new r["default"]({type:l.oU.DEPLOYMENT,metadata:{name:"test",namespace:"default"},spec:{replicas:2}},{getters:{schemaFor:()=>({linkFor:jest.fn()})},dispatch:jest.fn(),rootGetters:{"i18n/t":jest.fn()}});t.scaleDown=e,await t.scale(!1),expect(e).toHaveBeenCalledWith()}),it("should dispatch growl error on failure",async()=>{const e=jest.fn(),t=jest.fn().mockRejectedValue(new Error("Scale failed")),n=new r["default"]({type:l.oU.DEPLOYMENT,metadata:{name:"test-workload",namespace:"default"},spec:{replicas:1}},{getters:{schemaFor:()=>({linkFor:jest.fn()})},dispatch:e,rootGetters:{"i18n/t":e=>e}});n.scaleUp=t,n.$store={dispatch:e},await n.scale(!0),expect(e).toHaveBeenCalledWith("growl/fromError",expect.objectContaining({title:expect.stringContaining("workload.list.errorCannotScale"),err:expect.any(Error)}),{root:!0})})}),describe("getter: relatedServices",()=>{it("should return services that match workload pods",()=>{const e={metadata:{name:"pod-1",namespace:"default",labels:{app:"my-app"}}},t={metadata:{name:"my-service",namespace:"default"},spec:{selector:{app:"my-app"}}},n=new r["default"]({type:l.oU.DEPLOYMENT,metadata:{name:"test",namespace:"default"},spec:{}},{getters:{schemaFor:()=>({linkFor:jest.fn()})},dispatch:jest.fn(),rootGetters:{"i18n/t":jest.fn(),"cluster/all":e=>e===l.YV?[t]:[]}});Object.defineProperty(n,"pods",{get:()=>[e]});const i=n.relatedServices;expect(i).toContain(t)}),it("should not return services from different namespace",()=>{const e={metadata:{name:"pod-1",namespace:"default",labels:{app:"my-app"}}},t={metadata:{name:"my-service",namespace:"other-namespace"},spec:{selector:{app:"my-app"}}},n=new r["default"]({type:l.oU.DEPLOYMENT,metadata:{name:"test",namespace:"default"},spec:{}},{getters:{schemaFor:()=>({linkFor:jest.fn()})},dispatch:jest.fn(),rootGetters:{"i18n/t":jest.fn(),"cluster/all":e=>e===l.YV?[t]:[]}});Object.defineProperty(n,"pods",{get:()=>[e]});const i=n.relatedServices;expect(i).toHaveLength(0)}),it("should not return services with non-matching selectors",()=>{const e={metadata:{name:"pod-1",namespace:"default",labels:{app:"my-app"}}},t={metadata:{name:"my-service",namespace:"default"},spec:{selector:{app:"different-app"}}},n=new r["default"]({type:l.oU.DEPLOYMENT,metadata:{name:"test",namespace:"default"},spec:{}},{getters:{schemaFor:()=>({linkFor:jest.fn()})},dispatch:jest.fn(),rootGetters:{"i18n/t":jest.fn(),"cluster/all":e=>e===l.YV?[t]:[]}});Object.defineProperty(n,"pods",{get:()=>[e]});const i=n.relatedServices;expect(i).toHaveLength(0)})}),describe("getter: podsCard",()=>{const e={metadata:{name:"pod-1",namespace:"default"}};it("should return card for Deployment type",()=>{const t=new r["default"]({type:l.oU.DEPLOYMENT,metadata:{name:"test",namespace:"default"},spec:{}},{getters:{schemaFor:()=>({linkFor:jest.fn()})},dispatch:jest.fn(),rootGetters:{"i18n/t":e=>e}});Object.defineProperty(t,"pods",{get:()=>[e]}),Object.defineProperty(t,"canUpdate",{get:()=>!0});const n=t.podsCard;expect(n).not.toBeNull(),expect(n.props.title).toBe("component.resource.detail.card.podsCard.title"),expect(n.props.showScaling).toBe(!0),expect(n.props.noResourcesMessage).toBe("component.resource.detail.card.podsCard.noPods")}),it("should return card for DaemonSet type without scaling",()=>{const t=new r["default"]({type:l.oU.DAEMON_SET,metadata:{name:"test",namespace:"default"},spec:{}},{getters:{schemaFor:()=>({linkFor:jest.fn()})},dispatch:jest.fn(),rootGetters:{"i18n/t":e=>e}});Object.defineProperty(t,"pods",{get:()=>[e]}),Object.defineProperty(t,"canUpdate",{get:()=>!0});const n=t.podsCard;expect(n).not.toBeNull(),expect(n.props.showScaling).toBe(!1)}),it("should return null for unsupported types like CronJob",()=>{const e=new r["default"]({type:l.oU.CRON_JOB,metadata:{name:"test",namespace:"default"},spec:{}},{getters:{schemaFor:()=>({linkFor:jest.fn()})},dispatch:jest.fn(),rootGetters:{"i18n/t":e=>e}}),t=e.podsCard;expect(t).toBeNull()}),it("should return card when pods array is empty (scaled to 0)",()=>{const e=new r["default"]({type:l.oU.DEPLOYMENT,metadata:{name:"test",namespace:"default"},spec:{}},{getters:{schemaFor:()=>({linkFor:jest.fn()})},dispatch:jest.fn(),rootGetters:{"i18n/t":e=>e}});Object.defineProperty(e,"pods",{get:()=>[]}),Object.defineProperty(e,"canUpdate",{get:()=>!0});const t=e.podsCard;expect(t).not.toBeNull(),expect(t.props.resources).toStrictEqual([]),expect(t.props.noResourcesMessage).toBe("component.resource.detail.card.podsCard.noPods")}),it("should return null for non-scalable type with empty pods",()=>{const e=new r["default"]({type:l.oU.DAEMON_SET,metadata:{name:"test",namespace:"default"},spec:{}},{getters:{schemaFor:()=>({linkFor:jest.fn()})},dispatch:jest.fn(),rootGetters:{"i18n/t":e=>e}});Object.defineProperty(e,"pods",{get:()=>[]}),Object.defineProperty(e,"canUpdate",{get:()=>!0});const t=e.podsCard;expect(t).toBeNull()}),it("should return null when pods is undefined",()=>{const e=new r["default"]({type:l.oU.DEPLOYMENT,metadata:{name:"test",namespace:"default"},spec:{}},{getters:{schemaFor:()=>({linkFor:jest.fn()})},dispatch:jest.fn(),rootGetters:{"i18n/t":e=>e}});Object.defineProperty(e,"pods",{get:()=>{}});const t=e.podsCard;expect(t).toBeNull()}),it("should hide scaling when canUpdate is false",()=>{const t=new r["default"]({type:l.oU.DEPLOYMENT,metadata:{name:"test",namespace:"default"},spec:{}},{getters:{schemaFor:()=>({linkFor:jest.fn()})},dispatch:jest.fn(),rootGetters:{"i18n/t":e=>e}});Object.defineProperty(t,"pods",{get:()=>[e]}),Object.defineProperty(t,"canUpdate",{get:()=>!1});const n=t.podsCard;expect(n.props.showScaling).toBe(!1)})}),describe("getter: jobsCard",()=>{const e={metadata:{name:"job-1",namespace:"default"}};it("should return card for CronJob type",()=>{const t=new r["default"]({type:l.oU.CRON_JOB,metadata:{name:"test",namespace:"default"},spec:{}},{getters:{schemaFor:()=>({linkFor:jest.fn()})},dispatch:jest.fn(),rootGetters:{"i18n/t":e=>e}});Object.defineProperty(t,"jobs",{get:()=>[e]});const n=t.jobsCard;expect(n).not.toBeNull(),expect(n.props.title).toBe("component.resource.detail.card.jobsCard.title"),expect(n.props.showScaling).toBe(!1)}),it("should return null for non-CronJob types",()=>{const e=new r["default"]({type:l.oU.DEPLOYMENT,metadata:{name:"test",namespace:"default"},spec:{}},{getters:{schemaFor:()=>({linkFor:jest.fn()})},dispatch:jest.fn(),rootGetters:{"i18n/t":e=>e}}),t=e.jobsCard;expect(t).toBeNull()}),it("should return null when jobs array is empty",()=>{const e=new r["default"]({type:l.oU.CRON_JOB,metadata:{name:"test",namespace:"default"},spec:{}},{getters:{schemaFor:()=>({linkFor:jest.fn()})},dispatch:jest.fn(),rootGetters:{"i18n/t":e=>e}});Object.defineProperty(e,"jobs",{get:()=>[]});const t=e.jobsCard;expect(t).toBeNull()})}),describe("getter: cards",()=>{const e={metadata:{name:"pod-1",namespace:"default"}},t={metadata:{name:"job-1",namespace:"default"}};it("should include podsCard for Deployment",()=>{const t=new r["default"]({type:l.oU.DEPLOYMENT,metadata:{name:"test",namespace:"default"},spec:{},status:{}},{getters:{schemaFor:()=>({linkFor:jest.fn()})},dispatch:jest.fn(),rootGetters:{"i18n/t":e=>e,"cluster/all":()=>[]}});Object.defineProperty(t,"pods",{get:()=>[e]}),Object.defineProperty(t,"canUpdate",{get:()=>!0});const n=t.cards,i=n.filter(e=>null!==e);expect(i.length).toBeGreaterThanOrEqual(1),expect(i[0].props.title).toBe("component.resource.detail.card.podsCard.title")}),it("should include jobsCard for CronJob",()=>{const e=new r["default"]({type:l.oU.CRON_JOB,metadata:{name:"test",namespace:"default"},spec:{},status:{}},{getters:{schemaFor:()=>({linkFor:jest.fn()})},dispatch:jest.fn(),rootGetters:{"i18n/t":e=>e,"cluster/all":()=>[]}});Object.defineProperty(e,"jobs",{get:()=>[t]});const n=e.cards,i=n.filter(e=>null!==e),a=i.find(e=>"component.resource.detail.card.jobsCard.title"===e.props.title);expect(a).toBeDefined()})})})},6856:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(35664),i=n(87811);class a extends i.A{get _availableActions(){const e=super._availableActions;return e.filter((e,t)=>1!==t&&!["goToEdit","goToEditYaml","cloneYaml","download"].includes(e.action))}get expiresAt(){var e,t;const n=null===(e=this.spec)||void 0===e?void 0:e.ttl,r=null===(t=this.metadata)||void 0===t?void 0:t.creationTimestamp;if(!n||!r)return null;const i=new Date(r),a=new Date(i.getTime()+1e3*n);return a.toISOString()}get referencedClusters(){var e;const t=(null===(e=this.spec)||void 0===e?void 0:e.clusters)||[],n=this.$rootGetters["management/all"](r.Z7.RANCHER_CLUSTER)||[],i=this.$rootGetters["management/all"](r.Mc.CLUSTER)||[];return t.map(e=>{const t=n.find(t=>{var n,r;return(null===(n=t.mgmt)||void 0===n?void 0:n.id)===e||(null===(r=t.status)||void 0===r?void 0:r.clusterName)===e}),r=i.find(t=>t.id===e),a=t||r;return{label:(null===a||void 0===a?void 0:a.nameDisplay)||this.t('"ext.cattle.io.kubeconfig".deleted',{name:e}),location:(null===t||void 0===t?void 0:t.detailLocation)||(null===r||void 0===r?void 0:r.detailLocation)||null}})}get sortedReferencedClusters(){return this.referencedClusters.slice().sort((e,t)=>{const n=null!==e.location,r=null!==t.location;if(n&&!r)return-1;if(!n&&r)return 1;const i=e.label.toLowerCase(),a=t.label.toLowerCase();return i.localeCompare(a,void 0,{numeric:!0})})}get referencedClustersSortable(){return this.sortedReferencedClusters.map(e=>e.label.toLowerCase()).join(",")}}},45858:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c}});var r=n(35664),i=n(2334),a=n(23330),o=n(4364);const s={},l=({schema:e,verb:t})=>!!e.hasLink("collection")&&!!e.attributes?.verbs?.find(e=>e.toLowerCase()===t);class c extends i["default"]{static reset(e){delete s[e]}constructor(e,t,n,r){super(e,t,n,r),s[this.store]||(s[this.store]={ids:{},definitions:{}}),this.requiresResourceFields=null===this._resourceFields}get hasResourceFields(){return this.requiresResourceFields?!!this.schemaDefinition?.resourceFields:!!this._resourceFields}get resourceFields(){if(this.requiresResourceFields){if(!this.schemaDefinitionsIds)throw new Error(`Cannot find resourceFields for Schema ${this.id} (schemaDefinitions have not been fetched) `);if(!this.schemaDefinition)throw new Error(`No schemaDefinition for ${this.id} found (not in schemaDefinition response) `);return this.schemaDefinition.resourceFields}return this._resourceFields}set resourceFields(e){this._resourceFields=e,this.requiresResourceFields=null===this._resourceFields}async fetchResourceFields(e=0){if(!this.requiresResourceFields)return;if(this.schemaDefinition)return this.schemaDefinition;const t=this.schemaDefinitionUrl;if(!t)return void o.warn(`Unable to fetch schema definitions for ${this.id} (failed to find url of schema definition)`);if(e>=4)return void o.warn(`Unable to fetch schema definitions for ${this.id} (too many failed requests)`);let n;try{n=await this.$dispatch("request",{type:r.m4.SCHEMA_DEFINITION,url:t})}catch(i){return 500===i?._status||503===i?._status?(await(0,a.u)(2e3),this.fetchResourceFields(++e)):void o.warn(`Unable to fetch schema definitions for ${this.id}`,i)}return this.cacheSchemaDefinitionResponse(n),this.schemaDefinition}cacheSchemaDefinitionResponse(e){const{[e.definitionType]:t,...n}=e.definitions,r=this.store;s[r].ids[this.id]={self:t.type,others:Object.keys(n)},Object.entries(e.definitions).forEach(([e,t])=>{s[r].definitions[e]=t})}get schemaDefinition(){return this.schemaDefinitionsIds?s[this.store].definitions[this.schemaDefinitionsIds.self]:null}get schemaDefinitions(){return this.schemaDefinitionsIds?this.schemaDefinitionsIds.others.reduce((e,t)=>(e[t]=s[this.store].definitions[t],e),{}):null}get schemaDefinitionUrl(){return this.links?.self?.replace("/schemas/","/schemaDefinitions/")}get canGet(){return l({schema:this.schema,verb:"get"})}get canList(){return l({schema:this.schema,verb:"list"})}get schema(){return this}get store(){return this.$ctx.state?.config?.namespace}get schemaDefinitionsIds(){return s[this.store]?.ids[this.id]}}},81565:function(e,t,n){"use strict";var r,i=n(18110),a=n(34765);class o{isApplicable(e){return Array.isArray(e.namespaced)}isEnabled(e){const t=e["currentProduct"];if("cluster"!==t?.inStore)return!1;if(t?.showWorkspaceSwitcher)return!1;const n=(0,a.fD)(e);return!!n.forceNsFilterV2?.enabled}checkAndCreateParam(e){return this.isApplicable(e)?this.createParam(e.namespaced):""}createParam(e){if(!e||!e.length)return"";const t=e.reduce((e,t)=>{const n=t.replace(i.os,"").replace(i.tA,"");return n.startsWith("-")?e.exclude.push(t.substring(1,t.length)):e.include.push(n),e},{include:[],exclude:[]});let n="";return t.include.length&&(n=`${o.param}=${t.include.join(",")}`),t.exclude.length&&(n=`${o.param}!=${t.exclude.join(",")}`),n}}r=o,r.param="projectsornamespaces",t.A=new o},22915:function(e,t,n){"use strict";n.d(t,{C:function(){return o}});var r=n(76978),i=n(20246),a=n.n(i);function o(e,t){if(!e)return;const{rootKeys:n=["id","links","type","actions"],metadataKeys:i=["fields","relationships","state"],conditionKeys:o=["error","transitioning"]}=t||{},s=a().load(e);return(0,r.cX)(s,n),(0,r.cX)(s?.metadata,i),(s?.status?.conditions||[]).forEach(e=>(0,r.cX)(e,o)),a().dump(s)}},82637:function(e,t,n){"use strict";n.d(t,{U:function(){return m}});var r,i=n(50025),a=n(18110),o=n(68851),s=n(35664),l=n(2841),c=n(15092),u=n(74302),d=n(11519),h=n(4364);class p{handlePrefAndSettingFilter(e){const{allNamespaces:t,showReservedRancherNamespaces:n,productHidesSystemNamespaces:r}=e;return t.reduce((e,t)=>{const i=!n&&t.isObscure,a=!!r&&t.isSystem;return(i||a)&&(e[t.name]=!1),e},{})}handleSystemOrUserFilter(e){const{allNamespaces:t,isAllSystem:n,isAllUser:r}=e,i=t.filter(e=>e.isSystem);return i.reduce((e,t)=>(n&&(e[t.name]=!0),r&&(e[t.name]=!1),e),{})}combineNsProjectFilterResults(e,t){const n={...e};return Object.entries(t).forEach(([e,t])=>{void 0===n[e]&&(n[e]=t)}),n}createFiltersFromNamespaceProjectFilterResult(e){const t=[],n=[];Object.entries(e).forEach(([e,r])=>{r?t.push(e):n.push(e)});const r=[];return t.length?r.push(new i.eY({fields:[{value:t.join(","),equality:i.D0.IN,field:"metadata.namespace"}]})):n.length&&r.push(new i.eY({fields:[{value:n.join(","),equality:i.D0.NOT_IN,field:"metadata.namespace"}]})),r}handleSelectionFilter(e,t){const n=[new i.B6({projectOrNamespace:e})];return t?{projectsOrNamespaces:n,filters:e.filter(e=>e.startsWith(a.tA)).map(e=>i.eY.createSingleField({field:"metadata.namespace",value:e.replace(a.tA,""),equals:!1}))}:{projectsOrNamespaces:n,filters:[]}}}class f extends p{convertArrayPath(e){return e.startsWith("metadata.fields.")?`metadata.fields[${e.substring(16)}]`:e}createSortForPagination(e){return this.convertArrayPath(e)}createParamsFromNsFilter({allNamespaces:e,selection:t,isAllNamespaces:n,isLocalCluster:r,showReservedRancherNamespaces:i,productHidesSystemNamespaces:o}){if(n&&i&&!o)return{projectsOrNamespaces:[],filters:[]};let s=[];const l=[];let c={};i&&!o||(c=this.combineNsProjectFilterResults(c,this.handlePrefAndSettingFilter({allNamespaces:e,showReservedRancherNamespaces:i,productHidesSystemNamespaces:o})));const u=t[0]===a.Rc,d=t[0]===a.bE;if(1===t.length&&(u||d))c=this.combineNsProjectFilterResults(c,this.handleSystemOrUserFilter({allNamespaces:e,isAllSystem:u,isAllUser:d})),l.push(...this.createFiltersFromNamespaceProjectFilterResult(c));else{l.push(...this.createFiltersFromNamespaceProjectFilterResult(c));const e=this.handleSelectionFilter(t,r);s=e.projectsOrNamespaces,l.push(...e.filters)}return{projectsOrNamespaces:s,filters:l}}createParamsForPagination({schema:e,opt:t}){if(!t.pagination)return;const n=[],r=this.convertPaginationParams({schema:e,filters:t.pagination.projectsOrNamespaces});if(r&&n.push(r),t.pagination.page&&n.push(`page=${t.pagination.page}`),t.pagination.pageSize||0===t.pagination.pageSize?n.push(`pagesize=${t.pagination.pageSize}`):n.push(`pagesize=${c.A.defaultPageSize}`),t.pagination.sort?.length){const r={checked:new Array,invalid:new Array},i=t.pagination.sort.map(t=>{const{field:n,reverse:i}=(0,u.cn)(t.field),a=i?!t.asc:t.asc;return this.validateField(r,e,n),`${a?"":"-"}${this.convertArrayPath(n)}`}).join(",");n.push(`sort=${i}`),r.invalid.length&&h.warn(`Pagination API does not support sorting '${e?.id||t.url}' by the requested fields: ${(0,o.sb)(r.invalid).join(", ")}`)}if(t.pagination.filters?.length){const r=this.convertPaginationParams({schema:e,filters:t.pagination.filters});r&&n.push(r)}if(t.pagination.labelSelector){const e=this.convertLabelSelectorPaginationParams({labelSelector:t.pagination.labelSelector});e&&n.push(e)}return t.includeAssociatedData&&n.push("includeAssociatedData=true"),n.join("&")}validateField(e,t,n){n&&(e.checked.includes(n)||(e.checked.push(n),t&&[f.VALID_FIELDS[""],f.VALID_FIELDS[t.id]].find(e=>e?.find(e=>e.startsWith?!!n.startsWith(e.field)||void 0:n===e.field))||t?.attributes.columns.find(e=>e.field.replace("$.","").replace("[",".").replace("]","")===n)||e.invalid.push(n)))}convertPaginationParams({schema:e,filters:t=[]}){const n={checked:new Array,invalid:new Array},r=t.filter(e=>!!e.fields.length).map(t=>{const r=t.fields.map(t=>{if(t.field){if(this.validateField(n,e,t.field),t.exists)return t.field;const r=t.equality||i.Js.safeEquality(t);if(!r)throw new Error(`A pagination filter must contain an equality. ${JSON.stringify(t)}`);let a;if([i.D0.IN,i.D0.NOT_IN].includes(r))a=`(${t.value})`;else{const e="undefined"===typeof t.value||null===t.value?"":t.value,n=encodeURIComponent(e);a=f.VALID_FIELD_VALUE_REGEX.test(e)?n:`"${n.replaceAll("%22","")}"`}return`${this.convertArrayPath(t.field)}${r}${a}`}return t.value}).join(",");return`${t.param}${t.equals?"=":"!="}${r}`}),a=r.reduce((e,t)=>(e[t]=!0,e),{}),s=Object.keys(a).join("&");return n.invalid.length&&h.warn(`Pagination API does not support filtering '${e?.id||"unknown"}' by the requested fields: ${(0,o.sb)(n.invalid).join(", ")}`),s}convertLabelSelectorPaginationParams({labelSelector:e}){const t=e.matchExpressions?[...e.matchExpressions]:[];e.matchLabels&&Object.entries(e.matchLabels).forEach(([e,n])=>{const r={key:e,values:[n],operator:"In"};t.push(r)});const n=t.reduce((e,t)=>{const n=`metadata.labels[${t.key}]`;switch(t.operator){case"In":if(!t.values?.length)return h.error(`Skipping labelSelector to API filter param conversion for ${t.key}(IN) as no value was supplied`),e;e.push(`filter=${n} IN (${t.values.join(",")})`);break;case"NotIn":if(!t.values?.length)return h.error(`Skipping labelSelector to API filter param conversion for ${t.key}(NOTIN) as no value was supplied`),e;e.push(`filter=${n} NOTIN (${t.values.join(",")})`);break;case"Exists":if(t.values?.length)return h.error(`Skipping labelSelector to API filter param conversion for ${t.key}(Exists) as no value was supplied`),e;e.push(`filter=${n}`);break;case"DoesNotExist":if(t.values?.length)return h.error(`Skipping labelSelector to API filter param conversion for ${t.key}(DoesNotExist) as no value was supplied`),e;e.push(`filter=!${n}`);break;case"Gt":if("string"!==typeof t.values)return h.error(`Skipping labelSelector to API filter param conversion for ${t.key}(Gt) as no value was supplied`),e;e.push(`filter=${n} > (${t.values})`);break;case"Lt":if("string"!==typeof t.values)return h.error(`Skipping labelSelector to API filter param conversion for ${t.key}(Lt) as no value was supplied`),e;e.push(`filter=${n} < (${t.values})`);break}return e},[]);return n.join("&")}}r=f,r.VALID_FIELD_VALUE_REGEX=/^[\w.]+$/,r.VALID_FIELDS={"":[{field:"metadata.name"},{field:"metadata.namespace"},{field:"id"},{field:"metadata.state.name"},{field:"metadata.creationTimestamp"},{field:"metadata.labels",startsWith:!0}],[s.NW]:[{field:"status.nodeInfo.kubeletVersion"},{field:"status.nodeInfo.operatingSystem"},{field:"spec.taints.key"},{field:"status.addresses.type"}],[s.Sm]:[{field:"spec.containers.image"},{field:"spec.nodeName"},{field:d.Nb},{field:d.AC}],[s.Mc.NODE]:[{field:"status.nodeName"}],[s.Mc.NODE_POOL]:[{field:"spec.clusterName"}],[s.Mc.NODE_TEMPLATE]:[{field:"spec.clusterName"}],[s.Mc.CLUSTER]:[{field:"spec.internal"},{field:"spec.displayName"},{field:"status.provider"},{field:"status.connected"}],[s.bB]:[{field:`metadata.annotations[${l.c8}]`}],[s.CU]:[],[s.Z7.MACHINE]:[{field:"spec.clusterName"}],[s.ll]:[{field:"_type"},{field:"reason"},{field:"involvedObject.kind"},{field:"involvedObject.uid"},{field:"message"}],[s.W8.CLUSTER_REPO]:[{field:"spec.gitRepo"},{field:"spec.gitBranch"},{field:"metadata.annotations[clusterrepo.cattle.io/hidden]"}],[s.W8.OPERATION]:[{field:"status.action"},{field:"status.namespace"},{field:"status.releaseName"}],[s.Z7.RANCHER_CLUSTER]:[{field:"status.provider"},{field:"status.clusterName"},{field:`metadata.annotations[${l.qt.HUMAN_NAME}]`}],[s.YV]:[{field:"spec.type"},{field:"spec.clusterIP"}],[s.kf]:[{field:"spec.rules.host"},{field:"spec.ingressClassName"}],[s.wT]:[{field:"spec.scaleTargetRef.name"},{field:"spec.minReplicas"},{field:"spec.maxReplicas"},{field:"spec.currentReplicas"}],[s.YH]:[{field:"spec.volumeName"}],[s.PV]:[{field:"status.reason"},{field:"spec.persistentVolumeReclaimPolicy"}],[s.fJ]:[{field:"provisioner"},{field:`metadata.annotations[${l.O3.DEFAULT_STORAGE_CLASS}]`}],[s.W8.APP]:[{field:"spec.chart.metadata.name"}],[s.oU.CRON_JOB]:[{field:`metadata.annotations[${l.bs}]`},{field:"spec.template.spec.containers.image"}],[s.oU.DAEMON_SET]:[{field:`metadata.annotations[${l.bs}]`},{field:"spec.template.spec.containers.image"}],[s.oU.DEPLOYMENT]:[{field:`metadata.annotations[${l.bs}]`},{field:"spec.template.spec.containers.image"}],[s.oU.JOB]:[{field:`metadata.annotations[${l.bs}]`},{field:"spec.template.spec.containers.image"}],[s.oU.STATEFUL_SET]:[{field:`metadata.annotations[${l.bs}]`},{field:"spec.template.spec.containers.image"}],[s.oU.REPLICA_SET]:[{field:"spec.template.spec.containers.image"}],[s.oU.REPLICATION_CONTROLLER]:[{field:"spec.template.spec.containers.image"}]};const m={cluster:{resources:{enableAll:!1,enableSome:{enabled:[s.NW,s.ll,s.oU.CRON_JOB,s.oU.DAEMON_SET,s.oU.DEPLOYMENT,s.oU.JOB,s.oU.STATEFUL_SET,s.Sm,s.W8.APP,s.W8.OPERATION,s.wT,s.kf,s.YV,s.PV,s.K5,s.fJ,s.YH,s.bB,s.oU.REPLICA_SET,s.oU.REPLICATION_CONTROLLER],generic:!0}}},management:{resources:{enableAll:!1,enableSome:{enabled:[{resource:s.Z7.RANCHER_CLUSTER,context:["side-bar"]},{resource:s.Mc.CLUSTER,context:["side-bar"]},{resource:s.W8.APP,context:["branding"]},s.bB],generic:!1}}}};t.A=new f},41418:function(e,t,n){"use strict";n.d(t,{j:function(){return r.A}});var r=n(79117)},9980:function(e,t,n){"use strict";n.d(t,{l:function(){return r.A}});var r=n(68745)},91364:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(9274);const i={class:"card-wrap"},a={class:"card-title","data-testid":"card-title-slot"},o={class:"card-body","data-testid":"card-body-slot"},s={key:0,class:"card-actions","data-testid":"card-actions-slot"};function l(e,t,n,l,c,u){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{id:"focus-trap-card-container-element",class:(0,r.normalizeClass)(["card-container",{"highlight-border":e.showHighlightBorder,"card-sticky":e.sticky}]),"data-testid":"card"},[(0,r.createElementVNode)("div",i,[(0,r.createElementVNode)("div",a,[(0,r.renderSlot)(e.$slots,"title",{},()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.title),1)],!0)]),t[1]||(t[1]=(0,r.createElementVNode)("hr",{role:"none"},null,-1)),(0,r.createElementVNode)("div",o,[(0,r.renderSlot)(e.$slots,"body",{},()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.content),1)],!0)]),e.showActions?((0,r.openBlock)(),(0,r.createElementBlock)("div",s,[(0,r.renderSlot)(e.$slots,"actions",{},()=>[(0,r.createElementVNode)("button",{class:"btn role-primary",onClick:t[0]||(t[0]=(...t)=>e.buttonAction&&e.buttonAction(...t))},(0,r.toDisplayString)(e.buttonText),1)],!0)])):(0,r.createCommentVNode)("",!0)])],2)}var c=(0,r.defineComponent)({name:"Card",props:{title:{type:String,default:""},content:{type:String,default:""},buttonAction:{type:Function,default:()=>{}},buttonText:{type:String,default:"go"},showHighlightBorder:{type:Boolean,default:!0},showActions:{type:Boolean,default:!0},sticky:{type:Boolean,default:!1}}}),u=(n(52690),n(47433));const d=(0,u.A)(c,[["render",l],["__scopeId","data-v-52307124"]]);var h=d},42200:function(e,t,n){"use strict";n.d(t,{S:function(){return r.A}});var r=n(31797)},79380:function(e,t,n){"use strict";n.d(t,{o:function(){return r.A}});var r=n(40246)},10196:function(e,t,n){"use strict";n.d(t,{z:function(){return r.A}});n(87494);var r=n(95706)},6879:function(e,t,n){"use strict";n.d(t,{V:function(){return r.A}});var r=n(59378)},2614:function(e,t,n){"use strict";n.d(t,{j:function(){return d}});var r=n(9274);const i={class:"switch hand"},a=["checked","aria-label"],o={ref:"switchChrome",class:"slider round"};function s(e,t,n,s,l,c){return(0,r.openBlock)(),(0,r.createElementBlock)("span",{class:(0,r.normalizeClass)(["toggle-container",{"toggle-disabled":e.disabled}])},[(0,r.createElementVNode)("span",{class:(0,r.normalizeClass)(["label no-select hand",{active:!e.state}]),onClick:t[0]||(t[0]=t=>e.toggle(!1))},(0,r.toDisplayString)(e.offLabel),3),(0,r.createElementVNode)("label",i,[(0,r.createElementVNode)("input",{ref:"switchInput",type:"checkbox",role:"switch",checked:e.state,"aria-label":e.onLabel,onInput:t[1]||(t[1]=t=>e.toggle(null)),onKeydown:t[2]||(t[2]=(0,r.withKeys)(t=>e.toggle(null),["enter"]))},null,40,a),(0,r.createElementVNode)("span",o,null,512)]),(0,r.createElementVNode)("span",{class:(0,r.normalizeClass)(["label no-select hand",{active:e.state}]),onClick:t[3]||(t[3]=t=>e.toggle(!0))},(0,r.toDisplayString)(e.onLabel),3)],2)}var l=(0,r.defineComponent)({props:{value:{type:[Boolean,String,Number],default:!1},offValue:{type:[Boolean,String,Number],default:!1},onValue:{type:[Boolean,String,Number],default:!0},offLabel:{type:String,default:""},onLabel:{type:String,default:""},disabled:{type:Boolean,default:!1}},emits:["update:value"],setup(){const e=(0,r.ref)(null),t=()=>{var t;null===(t=e.value)||void 0===t||t.classList.add("focus")},n=()=>{var t;null===(t=e.value)||void 0===t||t.classList.remove("focus")},i=(0,r.ref)(null);return(0,r.onMounted)(()=>{var e,r;null===(e=i.value)||void 0===e||e.addEventListener("focus",t),null===(r=i.value)||void 0===r||r.addEventListener("blur",n)}),(0,r.onBeforeUnmount)(()=>{var e,r;null===(e=i.value)||void 0===e||e.removeEventListener("focus",t),null===(r=i.value)||void 0===r||r.removeEventListener("blur",n)}),{switchChrome:e,switchInput:i}},data(){return{state:!1}},watch:{value:{handler(){this.state=this.value===this.onValue},immediate:!0}},methods:{toggle(e){this.state=null===e?!this.state:e,this.$emit("update:value",this.state?this.onValue:this.offValue)}}}),c=(n(21246),n(47433));const u=(0,c.A)(l,[["render",s],["__scopeId","data-v-107e8d19"]]);var d=u},49924:function(e,t,n){"use strict";n.d(t,{Z:function(){return r.A}});var r=n(86257)},51433:function(e,t,n){"use strict";n.d(t,{a:function(){return r.A}});var r=n(82923)},16408:function(e,t,n){"use strict";n.d(t,{Jj:function(){return d},s$:function(){return v},ue:function(){return D},Gh:function(){return A},Nq:function(){return R}});var r=n(9274),i=n(40597);const a=()=>{const e=(0,r.ref)([]),t=(0,r.ref)(null),n=(0,r.ref)(null),i=(0,r.ref)(null),a=r=>{var a;if(t.value=r,(null===(a=t.value)||void 0===a?void 0:a.firstElementChild)instanceof HTMLElement){o(),e.value[0]instanceof HTMLElement&&(n.value=e.value[0]);const t=e.value[e.value.length-1];t instanceof HTMLElement&&(i.value=t)}},o=()=>{var n;e.value=[];const r=null===(n=t.value)||void 0===n?void 0:n.querySelectorAll("[dropdown-menu-item]");null===r||void 0===r||r.forEach(t=>{e.value.push(t)})};return{dropdownItems:e,firstDropdownItem:n,lastDropdownItem:i,dropdownContainer:t,registerDropdownCollection:a}},o=e=>{const{dropdownItems:t,firstDropdownItem:n,lastDropdownItem:i,dropdownContainer:o,registerDropdownCollection:s}=a(),l=(0,r.ref)(!1),c=t=>{t||(p.value=!1),l.value=t,e("update:open",t)},u=(0,r.ref)(null),d=e=>{u.value=e},h=()=>{var e;c(!1),null===(e=null===u||void 0===u?void 0:u.value)||void 0===e||e.focus()},p=(0,r.ref)(!1),f=()=>{p.value=!0},m=e=>{(0,r.nextTick)(()=>{var t,r,a;p.value?("down"===e?null===(r=n.value)||void 0===r||r.focus():"up"===e&&(null===(a=i.value)||void 0===a||a.focus()),p.value=!1):null===(t=o.value)||void 0===t||t.focus()})},g=e=>{if(!e)return;const{top:t,bottom:n}=e.getBoundingClientRect(),r=32;if(t-r<0||n+r>window.innerHeight){const i=Math.min(n,window.innerHeight-t,window.innerHeight);e.style.height=i-r+"px"}},v=()=>{(0,r.provide)("dropdownContext",{showMenu:c,registerTrigger:d,isMenuOpen:l,dropdownItems:t,close:()=>h(),focusFirstElement:()=>{m("down")},handleKeydown:f})};return{isMenuOpen:l,showMenu:c,returnFocus:h,setFocus:m,provideDropdownContext:v,registerDropdownCollection:s,handleKeydown:f,setDropdownDimensions:g}},s=["aria-label"];var l=(0,r.defineComponent)({__name:"RcDropdown",props:{ariaLabel:{},distance:{},placement:{default:"bottom-end"}},emits:["update:open"],setup(e,{emit:t}){const n=t,{isMenuOpen:a,showMenu:l,returnFocus:c,setFocus:u,provideDropdownContext:d,registerDropdownCollection:h,handleKeydown:p,setDropdownDimensions:f}=o(n);d();const m=(0,r.ref)(null),g=(0,r.ref)(null);(0,i.L)(g,()=>l(!1));const v=()=>{f(g.value),h(g.value),u("down")};return(t,n)=>{const i=(0,r.resolveComponent)("v-dropdown");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createVNode)(i,{"no-auto-focus":"",triggers:[],shown:(0,r.unref)(a),"auto-hide":!1,container:m.value,placement:e.placement,distance:e.distance,onApplyShow:v},{popper:(0,r.withCtx)(()=>[(0,r.createElementVNode)("div",{ref_key:"dropdownTarget",ref:g,class:"dropdownTarget",tabindex:"-1",role:"menu","aria-orientation":"vertical","dropdown-menu-collection":"","aria-label":e.ariaLabel||"Dropdown Menu",onKeydown:[n[0]||(n[0]=(...e)=>(0,r.unref)(p)&&(0,r.unref)(p)(...e)),n[1]||(n[1]=(0,r.withKeys)((0,r.withModifiers)(e=>(0,r.unref)(u)("down"),["prevent"]),["down"])),n[2]||(n[2]=(0,r.withKeys)((0,r.withModifiers)(e=>(0,r.unref)(u)("up"),["prevent"]),["up"]))]},[(0,r.renderSlot)(t.$slots,"dropdownCollection")],40,s)]),default:(0,r.withCtx)(()=>[(0,r.renderSlot)(t.$slots,"default")]),_:3},8,["shown","container","placement","distance"]),(0,r.createElementVNode)("div",{ref_key:"popperContainer",ref:m,class:"popperContainer",onKeydown:[n[3]||(n[3]=(0,r.withKeys)(e=>(0,r.unref)(l)(!1),["tab"])),n[4]||(n[4]=(0,r.withKeys)((...e)=>(0,r.unref)(c)&&(0,r.unref)(c)(...e),["escape"]))]},null,544)],64)}}}),c=(n(86427),n(47433));const u=(0,c.A)(l,[["__scopeId","data-v-78ba98f8"]]);var d=u;const h={handleKeydown:()=>null,showMenu:e=>null,registerTrigger:e=>null,dropdownItems:(0,r.ref)([]),focusFirstElement:()=>null,isMenuOpen:(0,r.ref)(!1),close:()=>null},p=()=>{const{dropdownItems:e,close:t}=(0,r.inject)("dropdownContext")||h,n=t=>{const n=document.activeElement,r=e.value.indexOf(n||new HTMLElement);if(r<0)return;const a="ArrowDown"===t.key,o=i(a,r,e.value);e.value[o]instanceof HTMLElement&&e.value[o].focus()},i=(e,t,n)=>{const r=e?t+1:t-1;return r>n.length-1?0:r<0?n.length-1:r},a=e=>{var t;(null===e||void 0===e?void 0:e.target)instanceof HTMLElement&&(null===(t=null===e||void 0===e?void 0:e.target)||void 0===t||t.click())},o=e=>{const t=e.target;if(!(t instanceof HTMLElement))return;const n=t;"BUTTON"!==n.tagName&&(null===t||void 0===t||t.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"}))};return{handleKeydown:n,close:t,handleActivate:a,scrollIntoView:o}},f=["disabled","aria-disabled"];var m=(0,r.defineComponent)({__name:"RcDropdownItem",props:{disabled:Boolean},emits:["click"],setup(e,{emit:t}){const n=e,i=t,{handleKeydown:a,close:o,handleActivate:s,scrollIntoView:l}=p(),c=e=>{n.disabled||(i("click",e),o())};return(t,n)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{ref:"dropdownMenuItem","dropdown-menu-item":"",tabindex:"-1",role:"menuitem",disabled:e.disabled||null,"aria-disabled":e.disabled||!1,onClick:(0,r.withModifiers)(c,["stop"]),onKeydown:[n[0]||(n[0]=(0,r.withKeys)((...e)=>(0,r.unref)(s)&&(0,r.unref)(s)(...e),["enter","space"])),n[1]||(n[1]=(0,r.withKeys)((0,r.withModifiers)((...e)=>(0,r.unref)(a)&&(0,r.unref)(a)(...e),["prevent","stop"]),["up","down"]))],onMousedown:(0,r.withModifiers)(()=>{},["prevent"]),onFocusin:n[2]||(n[2]=(...e)=>(0,r.unref)(l)&&(0,r.unref)(l)(...e))},[(0,r.renderSlot)(t.$slots,"before"),(0,r.renderSlot)(t.$slots,"default")],40,f))}});n(207);const g=(0,c.A)(m,[["__scopeId","data-v-b3f1b0ce"]]);var v=g,b=n(42200);const y=["disabled","aria-disabled"];Boolean,Boolean,n(99811);var _=n(32748);const w=["disabled","aria-disabled"];Boolean,n(71203);const E={role:"separator","aria-orientation":"horizontal"};function S(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("hr",E)}const k={},x=(0,c.A)(k,[["render",S]]);var A=x,C=n(51433),T=(0,r.defineComponent)({__name:"RcDropdownTrigger",setup(e,{expose:t}){const{showMenu:n,registerTrigger:i,isMenuOpen:a,handleKeydown:o}=(0,r.inject)("dropdownContext")||h,s=(0,r.ref)(null);(0,r.onMounted)(()=>{i(s.value)});const l=()=>{var e;null===(e=null===s||void 0===s?void 0:s.value)||void 0===e||e.focus()};return t({focus:l}),(e,t)=>((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(C.a),{ref_key:"dropdownTrigger",ref:s,role:"button","aria-haspopup":"menu","aria-expanded":(0,r.unref)(a),onKeydown:(0,r.withKeys)((0,r.unref)(o),["enter","space"]),onClick:t[0]||(t[0]=e=>(0,r.unref)(n)(!0))},{before:(0,r.withCtx)(()=>[(0,r.renderSlot)(e.$slots,"before")]),after:(0,r.withCtx)(()=>[(0,r.renderSlot)(e.$slots,"after")]),default:(0,r.withCtx)(()=>[(0,r.renderSlot)(e.$slots,"default")]),_:3},8,["aria-expanded","onKeydown"]))}});const N=T;var R=N,O=n(40275),I=(0,r.defineComponent)({__name:"RcDropdownMenu",props:{options:{},buttonVariant:{default:"primary"},buttonSize:{default:void 0},buttonAriaLabel:{},dropdownAriaLabel:{},dataTestid:{}},emits:["update:open","select"],setup(e,{emit:t}){const n=t,i=e=>void 0!==e.length?e.length:Object.keys(e).length>0;return(t,a)=>((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(d),{"aria-label":e.dropdownAriaLabel,"onUpdate:open":a[0]||(a[0]=e=>n("update:open",e))},{dropdownCollection:(0,r.withCtx)(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.options,e=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:e.label},[e.divider?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(A),{key:1})):((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(v),{key:0,onClick:t=>n("select",t,e)},{before:(0,r.withCtx)(()=>[e.icon||e.svg?((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(O.A),{key:0,icon:e.icon,src:e.svg,class:"icon",color:"header"},null,8,["icon","src"])):(0,r.createCommentVNode)("",!0)]),default:(0,r.withCtx)(()=>[(0,r.createTextVNode)(" "+(0,r.toDisplayString)(e.label),1)]),_:2},1032,["onClick"]))],64))),128)),i(e.options)?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(v),{key:0,disabled:""},{default:(0,r.withCtx)(()=>[...a[2]||(a[2]=[(0,r.createTextVNode)(" No actions available ",-1)])]),_:1}))]),default:(0,r.withCtx)(()=>[(0,r.createVNode)((0,r.unref)(R),{variant:e.buttonVariant,size:e.buttonSize,"data-testid":e.dataTestid,"aria-label":e.buttonAriaLabel},{default:(0,r.withCtx)(()=>[...a[1]||(a[1]=[(0,r.createElementVNode)("i",{class:"icon icon-actions"},null,-1)])]),_:1},8,["variant","size","data-testid","aria-label"])]),_:1},8,["aria-label"]))}});const L=I;var D=L},28533:function(e,t,n){"use strict";n.d(t,{WZ:function(){return o}});var r=n(9274);const i={info:{primary:"--rc-info",secondary:"--rc-info-secondary"},success:{primary:"--rc-success",secondary:"--rc-success-secondary"},warning:{primary:"--rc-warning",secondary:"--rc-warning-secondary"},error:{primary:"--rc-error",secondary:"--rc-error-secondary"},unknown:{primary:"--rc-unknown",secondary:"--rc-unknown-secondary"},none:{primary:"--rc-none",secondary:"--rc-none-secondary"}};function a(e){return e.startsWith("--")?`var(${e})`:e}function o(e,t){const n=(0,r.computed)(()=>i[e.value]),o="outlined"===t,s=(0,r.computed)(()=>{const e=o?n.value.secondary:n.value.primary;return a(e)}),l=(0,r.computed)(()=>{if("none"===e.value)return"none";const t=o?n.value.secondary:n.value.primary;return a(t)}),c=(0,r.computed)(()=>{const e=o?n.value.primary:n.value.secondary;return a(e)});return{borderColor:s,backgroundColor:l,textColor:c}}},46392:function(e,t,n){"use strict";n.d(t,{Bm:function(){return a},Ng:function(){return u},UQ:function(){return o},h1:function(){return c}});var r=n(68851);n(35664);const i=/^\$\.metadata\.fields\[([0-9]*)\]/;function a(e,t){const{headers:n,typeOptions:i,schema:a,columns:o,pagination:l}=t,{state:c,name:u,namespace:d,id:h,age:p}=o,{rootGetters:f}=e,m=i.showState?[c]:[],g=a?.attributes||{},v=g?.columns||[];if(n?.[a?.id]?.length)return n[a?.id].map(e=>{if("string"===typeof e){const t=(0,r.jq)(v,"name",e);return t?s(t,f,l,p):null}return e}).filter(e=>!!e);let b=!1;const y=g.namespaced||!1;for(const r of v)"name"===r.format?(b=!0,m.push(u||s(r,f,l,p)),y&&m.push(d)):m.push(s(r,f,l,p));b||((0,r.PT)(m,1,u||h),y&&(0,r.PT)(m,2,d));const _=m.find(e=>"age"===e.name.toLocaleLowerCase());return _&&((0,r.Gj)(m,_),i.showAge&&m.push(_)),m}function o(e,t,n,r,i){if(!t)throw new Error(`Unable to create header for column '${e}' from schema: schema is missing`);const a=t.attributes.columns.find(t=>t.name===e);if(!a)throw new Error(`Unable to find column '${e}' in schema '${t.id}'`);return s(a,n,r,i)}function s(e,t,n,r){let i,a,o;if((""===e.format||"date"===e.format||"date"===e.type)&&"age"===e.name.toLowerCase()&&r)return r;"date"!==e.format&&"date"!==e.type||(i="Date",a=120,o={multiline:!0}),"number"!==e.type&&"int"!==e.type||(i="Number");const s=e.name.includes(" ")?e.name.split(" ").map(e=>e.charAt(0).toUpperCase()+e.substring(1)).join(""):e.name,l=t["i18n/exists"],u=t["i18n/t"],d=`tableHeaders.${s.charAt(0).toLowerCase()+s.slice(1)}`,h=e.description||"",p=h&&"."===h[h.length-1]?h.slice(0,-1):h,f=c(e,!1),m=n?f:c(e,!0);return{name:e.name.toLowerCase(),label:l(d)?u(d):e.name,value:m,sort:[f],search:f,formatter:i,formatterOpts:o,width:a,tooltip:p}}function l(e){if("string"===typeof e&&e.startsWith("$")&&e.includes("\\.")){const t=e.split(".");let n=!1,r="";return t.forEach(e=>{let t=r.length?".":"";if(e.endsWith("\\"))n||(n=!0,t=`${t}["`),r=`${r}${t}${e.substr(0,e.length-1)}`;else{const i=n?'"]':"";r+=`${t}${e}${i}`,n=!1}}),r}return e}function c(e,t=!0){const n=e.field.startsWith(".")?`$${e.field}`:e.field,r=n.match(i);if(r&&2===r.length){const e=parseInt(r[1],10);return t?t=>t.metadata?.fields?.[e]:`metadata.fields.${e}`}return l(n)}const u=(e,t)=>"function"===typeof e?!!t&&e(t):e},15328:function(e,t,n){"use strict";n.d(t,{c:function(){return r},w:function(){return i}});const r={GROUP:"group",DIVIDER:"divider",NONE:"none"},i=[r.GROUP,r.DIVIDER]},11519:function(e,t,n){"use strict";n.d(t,{AC:function(){return a},Nb:function(){return i},q0:function(){return r}});const r=/^(\d+)\s*\(([^)]+)\)/,i="metadata.fields[3][0]",a="metadata.fields[3][1]"},50025:function(e,t,n){"use strict";n.d(t,{B6:function(){return l},D0:function(){return r},Js:function(){return a},YU:function(){return u},eY:function(){return s},gR:function(){return c}});var r,i=n(18110);(function(e){e["IN"]=" IN ",e["NOT_IN"]=" NOTIN ",e["EQUALS"]="=",e["NOT_EQUALS"]="!=",e["STRICT_EQUALS"]="==",e["CONTAINS"]="~",e["NOT_CONTAINS"]="!~",e["GREATER_THAN"]="gt",e["LESS_THAN"]="lt"})(r||(r={}));class a{constructor(e){const{field:t,value:n="",equals:r=!0,exact:i=!0,equality:o,exists:s=!1}=e;this.field=t,this.value=n,this.equals=r,this.exact=i,this.exists=s;const l=a.safeEquality({field:t,value:n,equals:r,exact:i,equality:o,exists:s});if(!l)throw new Error("A pagination filter must have either equals or equality set");this.equality=l}static safeEquality(e){return e.equality?e.equality:!0===e.equals?!0===e.exact?r.EQUALS:r.CONTAINS:!1===e.equals?!0===e.exact?r.NOT_EQUALS:r.NOT_CONTAINS:void 0}}class o{constructor({param:e,equals:t=!0,fields:n=[]}){this.param=e,this.equals=t,this.fields=n}}class s extends o{constructor({equals:e=!0,fields:t=[]}){super({param:"filter",equals:e,fields:t})}static createSingleField(e){return new s({fields:[new a(e)]})}static createMultipleFields(e){return new s({fields:e})}}class l extends o{constructor({equals:e=!0,projectOrNamespace:t=[]}){const n=t.map(e=>new a({value:e.replace(i.os,"").replace(i.tA,"")}));super({param:"projectsornamespaces",equals:e,fields:n})}}class c{constructor({page:e=1,pageSize:t=10,sort:n=[],filters:r=[],projectsOrNamespaces:i=[],labelSelector:a}){this.page=e,this.pageSize=t,this.sort=n,this.filters=r?Array.isArray(r)?r:[r]:[],this.projectsOrNamespaces=i?Array.isArray(i)?i:[i]:[],this.labelSelector=a}}class u extends c{constructor({sort:e=[],filters:t=[],projectsOrNamespaces:n=[],labelSelector:r}){super({page:null,pageSize:null,sort:e,filters:t,projectsOrNamespaces:n,labelSelector:r})}}},88343:function(e,t,n){"use strict";var r,i;n.d(t,{g:function(){return r},r:function(){return i}}),function(e){e["DEFAULT"]="",e["RESOURCE_CHANGES"]="resource.changes"}(r||(r={})),function(e){e["START"]="resource.start",e["CREATE"]="resource.create",e["CHANGE"]="resource.change",e["CHANGES"]="resource.changes",e["REMOVE"]="resource.resource.remove",e["ERROR"]="resource.error",e["STOP"]="resource.stop"}(i||(i={}))},39669:function(e,t,n){"use strict";n.d(t,{c:function(){return r}});const r={TABLET:"tablet",LAPTOP:"laptop",DESKTOP:"desktop"}},68851:function(e,t,n){"use strict";n.d(t,{$M:function(){return s},Gj:function(){return o},IU:function(){return p},P1:function(){return v},PG:function(){return l},PT:function(){return u},WP:function(){return m},Wq:function(){return h},cn:function(){return c},cy:function(){return d},jq:function(){return g},sb:function(){return y},yI:function(){return b}});var r=n(13182),i=n.n(r),a=n(76978);function o(e,t){const n=e.indexOf(t);return n>=0&&e.splice(n,1),e}function s(e,t){let n,r=[];for(n=0;n<t.length;n++){let i=e.indexOf(t[n]);while(-1!==i)r.push(i),i=e.indexOf(t[n],i+1)}if(!r.length)return e;r=r.sort((e,t)=>e-t);const i=[];let a,o;while(r.length){a=r.shift(),o=a;while(r.length&&r[0]===o+1)o=r.shift();i.push({start:a,end:o})}for(n=i.length-1;n>=0;n--){const{start:t,end:r}=i[n];e.splice(t,r-t+1)}return e}function l(e,t){const n=e.indexOf(t);-1===n&&e.push(t)}function c(e,t){const n=[];for(const r of t)e.includes(r)||n.includes(r)||n.push(r);e.push(...n)}function u(e,t,...n){e.splice(t,0,...n)}function d(e){return Array.isArray(e)}function h(e,t,n=1){if(t<0)throw new Error("Index too low");if(t+n>e.length)throw new Error("Index + length too high");return e.splice(t,n),e}function p(e){e.splice(0,e.length)}function f(e,t,n,r){return t=t||[],"object"===typeof n?t[e](e=>{for(const t in n){const r=n[t],i=(0,a.Jt)(e,t);if("undefined"===typeof r){if(!i)return!1}else if(i!==r)return!1}return!0}):void 0===r?t[e](e=>!!(0,a.Jt)(e,n)):t[e](e=>(0,a.Jt)(e,n)===r)}function m(e,t,n){return f("filter",e,t,n)}function g(e,t,n){return f("find",e,t,n)}function v(e,t){return 0===i()(e,t).length}function b(e,t,n=!1){if(!e&&!t)return!1;if(e?.length!==t?.length)return!1;if(n){const n={};t.forEach((e,t)=>{n[t]=!1});for(let r=0;r<e.length;r++){const i=e[r],o=t.findIndex((e,t)=>(0,a.n4)(e,i)&&!n[t]);if(!(o>=0))return!1;n[o]=!0}}else for(let r=0;r<e.length;r++)if(!(0,a.n4)(e[r],t[r]))return!1;return!0}function y(e){const t=[];return c(t,e),t}},23330:function(e,t,n){"use strict";n.d(t,{f:function(){return i},u:function(){return a}});var r=n(4364);const i=(e,t="",n=3e6,i=500,a=!1)=>{return o("Starting wait for",t),new Promise((r,a)=>{e()&&(o("Wait for",t||"unknown","done immediately"),r(void 0));const s=setTimeout(()=>{o("Wait for",t,"timed out"),clearInterval(l),clearTimeout(s),a(new Error(t?`Failed waiting for: ${t}`:`waitFor timed out after ${n/1e3} seconds`))},n),l=setInterval(()=>{e()?(o("Wait for",t,"done"),clearInterval(l),clearTimeout(s),r(void 0)):t&&o("Wait for",t,"not done yet")},i)});function o(...e){a&&r.log(...e)}},a=e=>new Promise(t=>setTimeout(t,e))},38275:function(e,t,n){"use strict";n.d(t,{V:function(){return i}});var r=n(45224);function i(e){let t={};if(e)try{t=(0,r.sG)(`~shell/assets/brand/${e}/metadata.json`)}catch{}return t}},40530:function(e,t,n){"use strict";var r=n(45250),i=n(40408),a=n(2841),o=n(27278),s=n(35664);function l(e){return`${e.kind}/${e.namespace}/${e.name}`}function c(e,t){return!!e&&!!e.find(e=>e.type===t&&"true"===e.status.toLowerCase())}class u{constructor(){this.excludeHarvesterRule={clusterSelector:{matchExpressions:[{key:a.qt.PROVIDER,operator:"NotIn",values:[s.BN]}]}}}getTargetMode(e,t){if("fleet-local"===t)return"local";if(!e.length)return"none";let n="all";for(const a of e){const{clusterName:e,clusterSelector:t,clusterGroup:i,clusterGroupSelector:o}=a;if(o)return"advanced";(e||i)&&(n="clusters"),(0,r.isEmpty)(t)||(n="clusters")}const i=[...e].map(e=>(delete e.name,e));return(0,r.isEqual)(i,[this.excludeHarvesterRule])&&(n="all"),n}}class d{constructor(){this.resourceIcons={[s.Hs.GIT_REPO]:"icon icon-github",[s.Hs.HELM_OP]:"icon icon-helm"},this.dashboardIcons={[s.Hs.GIT_REPO]:"icon icon-git",[s.Hs.HELM_OP]:"icon icon-helm"},this.dashboardStates=[{index:0,id:"error",label:"Error",color:"#F64747",icon:"icon icon-error",stateBackground:"bg-error"},{index:1,id:"warning",label:"Warning",color:"#DAC342",icon:"icon icon-warning",stateBackground:"bg-warning"},{index:2,id:"success",label:"Active",color:"#5D995D",icon:"icon icon-checkmark",stateBackground:"bg-success"},{index:3,id:"info",label:"Pending",color:"#3d98d3",icon:"icon icon-warning",stateBackground:"bg-info"}],this.Application=new u,this.GIT_HTTPS_REGEX=/^https?:\/\/github\.com\/(.*?)(\.git)?\/*$/,this.GIT_SSH_REGEX=/^git@github\.com:.*\.git$/,this.HTTP_REGEX=/^(https?:\/\/[^\s]+)$/,this.OCI_REGEX=/^oci:\/\//}quacksLikeAHash(e){return!!e.match(/^[a-f0-9]{40,}$/i)}parseSSHUrl(e){var t;const n=(e||"").split(":"),r=n[0],i=null===(t=n[1])||void 0===t?void 0:t.replace(".git","");return{sshUserAndHost:r,repoPath:i}}resourceId(e){return e.namespace?`${e.namespace}/${e.name}`:e.name}resourceType(e){const t=e.kind.toLowerCase();return e.apiVersion&&"v1"!==e.apiVersion?`${e.apiVersion.split("/",2)[0]}.${t}`:t}detailLocation(e,t){const n=(0,i.hb)(e.state)===i.jv.MISSING?void 0:{name:`c-cluster-product-resource${e.namespace?"-namespace":""}-id`,params:{product:o.o,cluster:t,resource:this.resourceType(e),namespace:e.namespace,id:e.name}};return n&&!n.params.namespace&&delete n.params.namespace,n}resourcesFromBundleDeploymentStatus(e){var t;const n=((null===e||void 0===e?void 0:e.resources)||[]).reduce((e,t)=>(e[l(t)]=Object.assign({state:i.jv.READY},t),e),{}),r=[];for(const a of(null===e||void 0===e?void 0:e.modifiedStatus)||[]){const e=a.missing?i.jv.MISSING:a.delete?i.jv.ORPHANED:i.jv.MODIFIED,t=n[l(a)];t?t.state=e:r.push(Object.assign({state:e},a))}for(const a of(null===e||void 0===e?void 0:e.nonReadyStatus)||[]){const e=(null===(t=a.summary)||void 0===t?void 0:t.state)||i.jv.UNKNOWN,r=n[l(a)];r&&(r.state=e)}return r.concat(Object.values(n))}clusterIdFromBundleDeploymentLabels(e){const t=null===e||void 0===e?void 0:e[a.Hs.CLUSTER_NAMESPACE],n=null===e||void 0===e?void 0:e[a.Hs.CLUSTER];return`${t}/${n}`}bundleIdFromBundleDeploymentLabels(e){const t=null===e||void 0===e?void 0:e[a.Hs.BUNDLE_NAMESPACE],n=null===e||void 0===e?void 0:e[a.Hs.BUNDLE_NAME];return`${t}/${n}`}bundleDeploymentState(e){var t,n,r,a;return(null===(t=e.status)||void 0===t?void 0:t.appliedDeploymentId)!==e.spec.deploymentId?c(null===(n=e.status)||void 0===n?void 0:n.conditions,"Deployed")?i.jv.WAIT_APPLIED:i.jv.ERR_APPLIED:(null===(r=e.status)||void 0===r?void 0:r.ready)?e.spec.deploymentId!==e.spec.stagedDeploymentId?i.jv.OUT_OF_SYNC:(null===(a=e.status)||void 0===a?void 0:a.nonModified)?i.jv.READY:i.jv.MODIFIED:i.jv.NOT_READY}getResourcesDefaultState(e,t){return[i.jv.READY,i.jv.NOT_READY,i.jv.WAIT_APPLIED,i.jv.MODIFIED,i.jv.MISSING,i.jv.ORPHANED,i.jv.UNKNOWN].reduce((n,r)=>(n[r]={count:0,color:i.xj[r].color,label:e(`${t}.${r}`,null,i.xj[r].label),status:r},n),{})}getBundlesDefaultState(e,t){return[i.jv.READY,i.jv.INFO,i.jv.WARNING,i.jv.NOT_READY,i.jv.ERROR,i.jv.ERR_APPLIED,i.jv.WAIT_APPLIED,i.jv.UNKNOWN].reduce((n,r)=>(n[r]={count:0,color:i.xj[r].color,label:e(`${t}.${r}`,null,i.xj[r].label),status:r},n),{})}getDashboardStateId(e){var t;return(null===(t=null===e||void 0===e?void 0:e.stateColor)||void 0===t?void 0:t.replace("text-",""))||"warning"}getDashboardState(e){const t=this.getDashboardStateId(e);return this.dashboardStates.find(({id:e})=>t===e)||{}}}const h=new d;t.A=h},40207:function(e,t,n){"use strict";n.d(t,{W:function(){return r}});const r={enabled:!1,enabledInterval:!0,interval:300,enabledOnNavigate:!0,ageThreshold:120,countThreshold:500}},90599:function(e,t,n){"use strict";var r=n(9262),i=n(35664),a=n(40207),o=n(4364);class s{constructor(){this.cachedGcPrefs=a.W,this.cachedGcPrefsStamp="",this.debugLog=(...e)=>{s.ENABLE_DEBUG_LOGGING&&o.debug("GC",...e)},this.gcLastRun=0,this.getUiPerfGarbageCollection=e=>{var t,n;const a=null===(n=null===(t=e.management.types[i.Mc.SETTING])||void 0===t?void 0:t.list)||void 0===n?void 0:n.find(e=>e.id===r.HG.UI_PERFORMANCE);if(!a||!a.value)return;const o=`${a.metadata.generation}-${a.metadata.resourceVersion}`;if(this.cachedGcPrefsStamp!==o){this.debugLog(`Updating ${r.HG.UI_PERFORMANCE} cache`),this.cachedGcPrefsStamp=o;const e=JSON.parse(a.value);this.cachedGcPrefs=e.garbageCollection}return this.cachedGcPrefs},this.lastAccessedCache={},this.lastRouteChange=0}gcEnabledAll(e,t){return this.gcEnabledForStore(e.state)&&this.gcEnabledSetting(e)&&this.gcEnabledForType(e,t)}gcEnabledSetting(e){const{rootState:t}=e,n=this.getUiPerfGarbageCollection(t);return null===n||void 0===n?void 0:n.enabled}gcEnabledForStore(e){var t;return null===(t=null===e||void 0===e?void 0:e.config)||void 0===t?void 0:t.supportsGc}gcEnabledForType(e,t){const{getters:n}=e;return!(!t||n.gcIgnoreTypes[t])}gcEnabledInterval(e){const{rootState:t}=e,n=this.getUiPerfGarbageCollection(t);return{enabled:null===n||void 0===n?void 0:n.enabledInterval,interval:(null===n||void 0===n?void 0:n.interval)||0}}gcEnabledRoute(e){const{rootState:t}=e,n=this.getUiPerfGarbageCollection(t);return null===n||void 0===n?void 0:n.enabledOnNavigate}garbageCollect(e,t={}){const n=(new Date).getTime();if(null===this.gcLastRun||n-this.gcLastRun<s.GC_RE_RUN_GAP)return void this.debugLog("Skipping (running or recently run)",this.gcLastRun?new Date(this.gcLastRun):"running");this.gcLastRun=null;const r={};try{const{getters:a,rootState:o,dispatch:s}=e;if(!o.clusterReady)return this.debugLog("Skipping (cluster not ready)"),void(this.gcLastRun=(new Date).getTime());this.debugLog("------ Started ------");const l=this.getUiPerfGarbageCollection(o);if(!l)return;const c=1e3*l.ageThreshold,u=l.countThreshold;this.debugLog(`Max Age: ${c}. Max Count: ${u}`);const d=e.state.config.namespace;Object.entries(this.lastAccessedCache[d]||{}).forEach(([o,l])=>{var d;if(!l)return void this.debugLog(`${o}: Skipping (no accessed time)`);if(!this.gcEnabledForType(e,o))return void this.debugLog(`${o}: Skipping (type ignored by store)`);if(t[o])return void this.debugLog(`${o}: Skipping (navigating to type)`);if(n-l<=c)return void this.debugLog(`${o}: Skipping (recently accessed)`);if(void 0!==this.lastRouteChange&&this.lastRouteChange<l)return void this.debugLog(`${o}: Skipping (used in current route/page)`);const h=null===(d=a.all(i.i2)[0].counts[o])||void 0===d?void 0:d.summary.count,p=null!==h&&void 0!==h?h:0;void 0===p||p<u?this.debugLog(`${o}: Skipping (too few of resource)`):(this.debugLog(`${o}: Removing from store`),s("forgetType",o),r[o]=p)}),this.gcLastRun=(new Date).getTime()}catch(a){this.debugLog(": Error",a),this.gcLastRun=(new Date).getTime()}Object.keys(r).length>0&&o.info("Garbage Collected Resources",r),this.debugLog("------ Finished ------")}gcUpdateLastAccessed(e,t){if(!this.gcEnabledAll(e,t))return;const n=e.state.config.namespace;this.lastAccessedCache[n]||(this.lastAccessedCache[n]={}),this.lastAccessedCache[n][t]=(new Date).getTime()}gcUpdateRouteChanged(){this.lastRouteChange=(new Date).getTime()}gcResetStore(e){const t=e.config.namespace;delete this.lastAccessedCache[t],this.debugLog("Forgetting Store:",t)}gcResetType(e,t){const n=e.config.namespace;this.lastAccessedCache[n]&&(delete this.lastAccessedCache[n][t],this.debugLog("Forgetting Type:",n,t))}}s.ENABLE_DEBUG_LOGGING=!1,s.GC_RE_RUN_GAP=5e3;const l=new s;t.A=l},15092:function(e,t,n){"use strict";var r=n(18110),i=n(68851),a=n(76978),o=n(95265),s=n(34765),l=n(82637),c=n(35664),u=n(28197),d=n(9262);const h={version:1,enabled:!0,configuration:{threshold:500,results:250,pagesPerRow:25}},p={homePageCluster:h};class f{constructor(){this.defaultPageSize=1e5,this.validNsProjectFilters=[r.tj,r.Rc,r.bE,r.Rc,r.T6.NAMESPACE,r.T6.PROJECT,r.x8,r.TD]}getSettings({rootGetters:e}){const t=(0,s.fD)(e);return t.serverPagination}getStoreSettings(e){const t=void 0!==e?.rootGetters?this.getSettings(e):e;return t?.useDefaultStores||void 0===t?.useDefaultStores?this.getStoreDefault():t?.stores||this.getStoreDefault()}getStoreDefault(){return l.U}isSteveCacheEnabled({rootGetters:e}){return e["features/get"]?.(o.Vw)}async isDownstreamSteveCacheEnabled({dispatch:e},t){const n=`/k8s/clusters/${t}/v1/${c.Mc.FEATURE}s/${o.Vw}`,r=await e("cluster/request",{url:n});return null!==r.status.lockedValue?r.status.lockedValue:null!==r.spec.value?r.spec.value:r.status.default}isEnabledInStore({ctx:{rootGetters:e},storeSettings:t,enabledFor:n}){if(!t)return!1;if(!n.resource)return!0;if(t.resources.enableAll)return!0;if(!n.resource.id)return!1;const r=!e["type-map/configuredHeaders"](n.resource.id)&&!e["type-map/configuredPaginationHeaders"](n.resource.id)&&!e["type-map/hasCustomList"](n.resource.id);return!(!t.resources.enableSome?.generic||!r)||!!t.resources.enableSome?.enabled?.find(e=>"string"===typeof e?e===n.resource?.id:e.resource===n.resource?.id&&(!e.context||!!n.resource?.context&&e.context.includes(n.resource.context)))}isEnabled({rootGetters:e,$extension:t},n){if(!this.isSteveCacheEnabled({rootGetters:e}))return!1;const r=this.getSettings({rootGetters:e});if(!r)return!1;if(!n)return!1;const i=t,a=i.getAll()[u.j.SERVER_SIDE_PAGINATION_RESOURCES];if(a){const t=Object.entries(a).find(([t,r])=>{if(!r)return!1;const i=r(),a=Object.entries(i).find(([t,r])=>t===n.store&&this.isEnabledInStore({ctx:{rootGetters:e},storeSettings:r,enabledFor:n}));return!!a||void 0});if(t)return!0}const o=this.getStoreSettings(r)?.[n.store];return this.isEnabledInStore({ctx:{rootGetters:e},storeSettings:o,enabledFor:n})}listAutoRefreshToggleEnabled({rootGetters:e}){return this.isFeatureEnabled({rootGetters:e},"listAutoRefreshToggle")}isListManualRefreshEnabled({rootGetters:e}){return this.isFeatureEnabled({rootGetters:e},"listManualRefresh")}getFeature({rootGetters:e},t){if(!this.isSteveCacheEnabled({rootGetters:e}))return;const n=this.getSettings({rootGetters:e});return n.features?.[t]||p[t]}isFeatureEnabled({rootGetters:e},t){return!!this.getFeature({rootGetters:e},t)?.enabled}resourceChangesDebounceMs({rootGetters:e}){const t=this.getSettings({rootGetters:e});return t.resourceChangesDebounceMs||d.$8.serverPagination.resourceChangesDebounceMs}validateNsProjectFilters(e){return e?.every(e=>this.validateNsProjectFilter(e))}validateNsProjectFilter(e){return!(!e.startsWith(r.os)&&!e.startsWith(r.tA))||this.validNsProjectFilters.includes(e)}paginationFilterEqual(e,t){return e.param===t.param&&e.equals===t.equals&&(0,i.yI)(e.fields,t.fields,!0)}paginationFiltersEqual(e,t){if(e&&e?.length!==t?.length)return!1;for(let n=0;n<e.length;n++)if(!this.paginationFilterEqual(e[n],t[n]))return!1;return!0}paginationEqual(e,t){const{filters:n=[],sort:r=[],projectsOrNamespaces:o=[],...s}=e||{},{filters:l=[],sort:c=[],projectsOrNamespaces:u=[],...d}=t||{};return(0,a.n4)(s,d)&&this.paginationFiltersEqual(n,l)&&this.paginationFiltersEqual(o,u)&&(0,i.yI)(r,c,!1)}}t.A=new f},10257:function(e,t){"use strict";class n{constructor(e){this.setting=e}isEnabled(e,t){return!e&&t[this.setting].enabled}}t.A={incrementalLoadingUtils:new n("incrementalLoading"),manualRefreshUtils:new n("manualRefresh")}},30633:function(e,t,n){"use strict";function r(e){var t,n;return(null===(n=null===(t=null===e||void 0===e?void 0:e.$extension)||void 0===t?void 0:t.getProviders(e))||void 0===n?void 0:n.filter(e=>"hosted"===e.group))||[]}function i(e,t){if(!t)return!1;const n=new Set(r(e).map(e=>e.id.toLowerCase()));return n.has(t.toLowerCase())}n.d(t,{b:function(){return i}})},45224:function(e,t,n){"use strict";n.d(t,{mS:function(){return o},sG:function(){return s}});let r=null,i=null;try{r=n(19199)}catch(l){}try{i=n(99259)}catch(l){}function a(e){return`./${e.replace(/^[~@]shell\/assets\//,"")}`}function o(e){if(!r)throw new Error(`Asset context not available for: ${e}`);const t=a(e);return r(t)}function s(e){if(!i)throw new Error(`JSON context not available for: ${e}`);const t=a(e),n=i(t);return n.default||n}},3704:function(e,t,n){"use strict";n.d(t,{Js:function(){return u},Og:function(){return d},wC:function(){return s}});var r=n(35664),i=n(50025),a=n(76978),o=n(38823);async function s({labelSelector:e,type:t,inStore:n,$store:a,inScopeCount:o,namespace:s,transient:d=!0}){var h,p,f,m,g,v,b,y;const _=null===(h=a.getters[`${n}/schemaFor`](t))||void 0===h?void 0:h.attributes.namespaced,w=Array.isArray(s)?s:s?[s]:[],E=_&&!!s;if("undefined"===typeof o){const e=(null===(f=null===(p=a.getters[`${n}/all`](r.i2))||void 0===p?void 0:p[0])||void 0===f?void 0:f.counts)||{};E?(o=0,w.forEach(n=>{var r,i;o+=(null===(i=null===(r=null===e||void 0===e?void 0:e[t])||void 0===r?void 0:r.namespaces[n])||void 0===i?void 0:i.count)||0})):o=(null===(g=null===(m=null===e||void 0===e?void 0:e[t])||void 0===m?void 0:m.summary)||void 0===g?void 0:g.count)||0}const S=0===(o||0),k=_&&!!s&&(!w||0===w.length),x=null===e||null===(null===e||void 0===e?void 0:e.matchLabels)&&null===!e.matchExpressions,A=Object.keys(e.matchLabels||{}),C=A.length&&A.filter(e=>!e).length,T=(null===(v=null===e||void 0===e?void 0:e.matchExpressions)||void 0===v?void 0:v.length)&&e.matchExpressions.filter(e=>!e.key).length;if(S||k||x||C||T)return l([],o||0);if(null===(y=(b=a.getters)[`${n}/paginationEnabled`])||void 0===y?void 0:y.call(b)){if(u(e)&&s&&!(null===w||void 0===w?void 0:w.length))throw new Error("Either populated labelSelector or namespace/s must be supplied in order to call findPage");const r={pagination:new i.YU({labelSelector:e,filters:i.eY.createMultipleFields(w.map(e=>new i.Js({field:"metadata.namespace",value:e})))}),transient:d};let c=await a.dispatch(`${n}/findPage`,{type:t,opt:r});return d&&(c=c.data),l(c,o||0)}{let r=await a.dispatch(`${n}/findAll`,{type:t});return o=r.length,_&&(null===w||void 0===w?void 0:w.length)>0&&(r=r.filter(e=>{var t;return w.includes(null===(t=e.metadata)||void 0===t?void 0:t.namespace)}),o=r.length),(e.matchLabels||e.matchExpressions)&&(r=c(r,e,"metadata.labels")),l(r,o||0)}}const l=(e,t)=>{var n;const r=e.length||0,i=null===(n=e[0])||void 0===n?void 0:n.nameDisplay;return{matched:r,matches:e,none:0===r,sample:i,total:t||0}};function c(e,t,n){const r=(0,o.C6)(t.matchLabels,t.matchExpressions);return(0,o.wC)(e,r,n)}function u(e){var t;return!(null===(t=null===e||void 0===e?void 0:e.matchExpressions)||void 0===t?void 0:t.length)&&(0,a.Im)(null===e||void 0===e?void 0:e.matchLabels)}function d(e){if(u(e))return"";const t=[];return Object.entries((null===e||void 0===e?void 0:e.matchLabels)||{}).forEach(([e,n])=>{t.push(`${e}=${n}`)}),((null===e||void 0===e?void 0:e.matchExpressions)||[]).forEach(e=>{var n;if("In"!==e.operator||void 0===e.values)throw new Error(`Unsupported matchExpression found when converting to selector string. ${e}`);1===(null===(n=e.values)||void 0===n?void 0:n.length)?t.push(`${e.key}=${e.values[0]}`):t.push(`${e.key} in (${e.values.join(",")})`)}),t.join(",")}},34765:function(e,t,n){"use strict";n.d(t,{eB:function(){return o},fD:function(){return s}});var r=n(35664),i=n(9262),a=(n(92043),n(63905),n(4364));const o=async(e,t,n,i=!0)=>{let a;try{a=await e.dispatch("management/find",{type:r.Mc.SETTING,id:t})}catch{const o=e.getters["management/schemaFor"](r.Mc.SETTING),s=o.linkFor("collection");a=await e.dispatch("management/create",{type:r.Mc.SETTING,metadata:{name:t},value:n,default:n||""}),i&&await a.save({url:s})}return a},s=e=>{const t=e["management/byId"](r.Mc.SETTING,i.HG.UI_PERFORMANCE);let n={};if(t?.value)try{n=JSON.parse(t.value)}catch(s){a.warn("ui-performance setting contains invalid data")}const o=Object.assign({},i.$8);return Object.assign(o,n||{})}},8187:function(e,t,n){"use strict";n.d(t,{Ky:function(){return i},Rd:function(){return a},zL:function(){return r}});function r(e){return`var(--${e})`}function i(e,t){const n=["info","success","warning","error"],r=n.indexOf(e),i=n.indexOf(t);return r>i}const a="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"},51481:function(e,t,n){"use strict";n.d(t,{Fp:function(){return l},qx:function(){return s}});var r=n(23464),i=n.n(r);n(92043),n(91462);const a=[60,60,24],o=["sec","min","hour","day"];function s(e,t,n){const r=i()();t=t||r;const s=e.diff(t,"seconds");let l=Math.abs(s),c=1,u="?",d=0;while(l>=a[d]&&d<a.length)l/=a[d],c*=Math.floor(a[d]/10),d++;u=l<5?Math.floor(10*l)/10:Math.floor(l);const h={diff:s,absDiff:l,label:u,unitsKey:`unit.${o[d]}`,units:o[d],next:c};return n&&(h.string=`${h.label} ${n(h.unitsKey,{count:h.label})}`),h}function l(e,t){return Math.round(Math.abs(Date.parse(t)-Date.parse(e))/1e3)}},50667:function(e,t,n){"use strict";function r(e,t,n){let r=e+(e.includes("?")?"&":"?");return Array.isArray(n)||(n=[n]),r+=n.map(e=>null===e?`${encodeURIComponent(t)}`:`${encodeURIComponent(t)}=${encodeURIComponent(e)}`).join("&"),r}function i(e,t){return t&&"object"===typeof t&&Object.keys(t).forEach(n=>{e=r(e,n,t[n])}),e}function a(e,t){const n=t.toLowerCase();return o([e],[443,8443],["443"])||"https"===n}function o(e,t,n){for(let r=0;r<e.length;r++){const i=e[r];if(t.includes(i))return!0;for(let e=0;e<n.length;e++){const t=`${n[e]}`,r=`${i}`;if(r!==t&&r.endsWith(t))return!0}}return!1}function s(e){const t=s.options,n=t.parser[t.strictMode?"strict":"loose"].exec(e);if(!n)throw new Error(`Cannot parse as uri: ${e}`);const r={};let i=14;while(i--)r[t.key[i]]=n[i]||"";return r.query={},r.queryStr.replace(t.q.parser,(e,n,i)=>(n&&(r[t.q.name][n]=i),"")),r}function l(e){let t=`${e.protocol}://`;return e.user&&e.password?t+=`${e.user}:${e.password}@`:e.user&&(t+=`${e.user}@`),t+=e.host,e.port&&(t+=`:${e.port}`),t+=e.path||"/",t=i(t,e.query||{}),e.anchor&&(t+=`#${e.anchor}`),t}n.d(t,{As:function(){return l},E4:function(){return a},R_:function(){return r},g:function(){return i},qg:function(){return s}}),s.options={strictMode:!1,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","queryStr","anchor"],q:{name:"query",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}}},71274:function(e,t,n){"use strict";n.d(t,{A:function(){return b}}),Object.defineProperty(b,"name",{value:"default",configurable:!0});var r=n(2722),i=n.n(r),a=n(50667),o=n(35664),s=n(2841),l=n(3514),c=n.n(l),u=n(52103),d=n.n(u),h=n(24138),p=n.n(h),f=n(68094),m=n(70500);class g{constructor(e){this.string=String(e),this.int=parseInt(this.string,10),this.empty=!e&&0!==this.int,this.isNumber=!isNaN(this.int)&&!this.string.includes("e"),this.isInt=this.isNumber&&!this.string.includes(".")}}const v=(e,t)=>{for(const n of t){const t=n(e);if(t)return t}};function b(e,{key:t="Value"}){const n=n=>r=>"."===r?.slice(0,1)?e(`validation.dns.${n}.startDot`,{key:t}):void 0,r=n=>r=>"."===r?.slice(-1)?e(`validation.dns.${n}.endDot`,{key:t}):void 0,l=n=>r=>r?.slice(0,1)?.match(/[0-9]/)?e(`validation.dns.${n}.startNumber`,{key:t}):void 0,u=n=>r=>"-"===r?.slice(0,1)?e(`validation.dns.${n}.startHyphen`,{key:t}):void 0,h=n=>r=>"-"===r?.slice(-1)?e(`validation.dns.${n}.endHyphen`,{key:t}):void 0,b=n=>r=>Number(r)<Number(n)?e("validation.minValue",{key:t,min:n}):void 0,y=n=>r=>Number(r)>Number(n)?e("validation.maxValue",{key:t,max:n}):void 0,_=([n,r])=>i=>b(n)(i)||y(r)(i)?e("validation.betweenValues",{key:t,min:n,max:r}):void 0,w=n=>r=>r.length<Number(n)?e("validation.minLength",{key:t,min:n}):void 0,E=n=>r=>r.length>Number(n)?e("validation.maxLength",{key:t,max:n}):void 0,S=([n,r])=>i=>w(n)(i)||E(r)(i)?e("validation.betweenLengths",{key:t,min:n,max:r}):void 0,k=n=>isNaN(parseInt(n,10))?e("validation.number.requiredInt",{key:t}):void 0,x=n=>!Number.isInteger(+n)||`${n}`.match(/\.+/g)?e("validation.number.requiredInt",{key:t}):void 0,A=n=>+n<0?e("validation.number.isPositive",{key:t}):void 0,C=n=>{const r=`${n}`,i=r.match(/(^0+)(.+)/);return i?e("validation.number.isOctal",{key:t}):void 0},T=n=>parseInt(n,10)<1||parseInt(n,10)>65535?e("validation.number.between",{key:t,min:"1",max:"65535"}):void 0,N=n=>{const r=n?.match(/[^${'A-Za-z0-9-'}]/g);if(r)return e("validation.chars",{key:t,count:r.length,chars:r.map(e=>" "===e?"Space":`"${e}"`).join(", ")})},R=n=>"--"===n?.substr(2,2)&&"xn"!==n?.substr(0,2)?e("validation.dns.doubleHyphen",{key:t}):void 0,O=n=>"--"===n?.substr(2,2)&&"xn"!==n?.substr(0,2)?e("validation.dns.doubleHyphen",{key:t}):void 0,I=n=>(r="")=>0===r.length?e(`validation.dns.${n}.emptyLabel`,{key:t,min:1}):void 0,L=(n,r=63)=>(i="")=>i.length>r?e(`validation.dns.${n}.tooLongLabel`,{key:t,max:r}):void 0,D=(n="")=>n.length>253?e("validation.dns.hostname.tooLong",{key:t,max:253}):void 0,P=(n="")=>"/"!==n[0]&&n.length>0?e("validation.path",{key:t}):void 0,M=n=>n||!1===n?void 0:e("validation.required",{key:t}),B=(n="")=>n.toLowerCase()!==n?e("validation.noUpperCase",{key:t}):void 0,F=t=>{try{m.M.validation(t)}catch(n){return e(m.M.message)}},$=t=>t&&!(0,f.Q6)(t)?e("validation.setting.serverUrl.https"):void 0,U=t=>t&&!(0,f.Lk)(t)?e("validation.setting.serverUrl.awsStyleEndpoint"):void 0,j=t=>(0,f.M8)(t)?e("validation.setting.serverUrl.localhost"):void 0,V=t=>(0,f.fB)(t)?e("validation.setting.serverUrl.trailingForwardSlash"):void 0,K=t=>t&&!p()(t)?e("validation.setting.serverUrl.url"):void 0,G=t=>t&&!p()(t)?e("validation.genericUrl"):void 0,H=t=>{const n=e("validation.repository.url");if(!t)return n;if(t.includes(" "))return n;const{protocol:r,authority:i,host:o,port:s,path:l}=(0,a.qg)(t);if(!o||r===o)return n;if(r&&(!/^(http|https|ssh)$/gm.test(r)||!t.startsWith("https://")&&!t.startsWith("http://")&&!t.startsWith("ssh://")))return n;if(!r&&!s&&(!i.endsWith(":")||l.startsWith("/")))return n;const c=`${o}${l.replaceAll("%20","")}`;return/^([\w\.@\:\/\-]+)([\d\/\w.-]+?)(.git){0,1}(\/)?$/gm.test(c)?void 0:n},z=t=>{const n=e("validation.oci.url");if(!t)return n;if(t.includes(" "))return n;const{protocol:r,host:i,path:o}=(0,a.qg)(t);return i&&r!==i&&t.startsWith("oci://")&&/^([\w\.@\:\/\-]+)([\d\/\w.-]+?)(\/)?$/gm.test(`${i}${o}`)?void 0:n},q=t=>t&&!i().valid(t)?e("validation.version"):void 0,X=t=>t&&!i().validRange(t)?e("validation.semanticVersion"):void 0,W=n=>n&&!/^[a-zA-Z0-9]+$/.test(n)?e("validation.alphanumeric",{key:t}):void 0,Y=n=>/^\d+[hms]$/.test(n)?void 0:e("validation.monitoring.route.interval",{key:t}),Q=t=>t?.image?void 0:e("workload.validation.containerImage",{name:t.name}),J=t=>"Localhost"!==t?.securityContext?.seccompProfile?.type||t?.securityContext.seccompProfile?.localhostProfile||t?.securityContext?.privileged?void 0:e("workload.validation.localhostProfile",{name:t.name}),Z=t=>{const n=t.jobTemplate?t?.jobTemplate?.spec?.template?.spec?.containers:t?.template?.spec?.containers;return n&&n.length?n.map(e=>Q(e)).find(e=>e):e("validation.required",{key:e("workload.container.titles.containers")})},ee=t=>{if(!t)return;const n=new RegExp("^([a-z\\-0-9]+:\\/\\/?)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?"),r=n.test(t);return r?void 0:e("cluster.privateRegistry.privateRegistryUrlError")},te=e=>{const t=[N,u("label"),h("label"),R,L("label")];return v(e,t)},ne=e=>{const t=[N,u("label"),h("label"),O,I("label"),L("label",15)];return v(e,t)},re=e=>{const t=[N,l("label"),u("label"),h("label"),R,I("label"),L("label")];return v(e,t)},ie=e=>{if(e){const t=[n("hostname"),D,r("hostname")],i=v(e,t);if(i)return i;const a=e.split("."),o=[N,u("hostname"),h("hostname"),R,I("hostname"),L("hostname")];for(let e=0;e<a.length;e++){const t=v(a[e],o);if(t)return t}}},ae=e=>(e=e?e.replace(/^\*\./,""):e,ie(e)),oe=t=>c()(t)?e("validation.service.externalName.none"):ie(t),se=e=>"This is an error returned by the testRule validator",le=t=>c()(t?.groups)?e("validation.prometheusRule.groups.required"):void 0,ce=t=>n=>t&&(n||"")?.match(/^(c-.{5}|local)$/i)?e("validation.cluster.name"):void 0,ue=t=>{const{name:n,idx:r}=t,i=new g(t.nodePort),a=new g(t.port),o=new g(t.targetPort);if(c()(n))return e("validation.service.ports.name.required",{position:r+1});if(!i.empty){if(!i.isInt)return e("validation.service.ports.nodePort.requiredInt",{position:r+1});if(i.int<1||i.int>65535)return e("validation.service.ports.nodePort.between",{position:r+1})}if(a.empty)return e("validation.service.ports.port.required",{position:r+1});if(!a.isInt)return e("validation.service.ports.port.requiredInt",{position:r+1});if(a.int<1||a.int>65535)return e("validation.service.ports.port.between",{position:r+1});if(a.string?.includes("."))return a;if(o.empty)return e("validation.service.ports.targetPort.required",{position:r+1});if(o.isInt){if(o.int<1||o.int>65535)return e("validation.service.ports.targetPort.between",{position:r+1})}else{const e=ne(o.string);if(e)return e}},de=(t,n)=>{let r;return c()(t?.name)?e("validation.prometheusRule.groups.valid.name",{index:n}):c()(t.rules)?e("validation.prometheusRule.groups.valid.singleEntry",{index:n}):(t.rules.forEach((t,i)=>{const a=i+1;d()(t,"alert")&&c()(t?.alert)&&!r?r=e("validation.prometheusRule.groups.valid.rule.alertName",{groupIndex:n,ruleIndex:a}):d()(t,"record")&&c()(t?.record)&&(r=e("validation.prometheusRule.groups.valid.rule.recordName",{groupIndex:n,ruleIndex:a})),(d()(t,"expr")&&c()(t.expr)&&!r||!d()(t,"expr")&&!r)&&(r=e("validation.prometheusRule.groups.valid.rule.expr",{groupIndex:n,ruleIndex:a})),d()(t,"alert")&&(d()(t,"labels")&&c()(t.labels)&&!r||!d()(t,"labels")&&!r)&&(r=e("validation.prometheusRule.groups.valid.rule.labels",{groupIndex:n,ruleIndex:a}))}),r)},he=e=>{const t=[...e];let n;return t.forEach((e,t,r)=>{n=de(e,t+1),n&&(r.length=t+1)}),n},pe=t=>{if(c()(t?.match)&&c()(t?.["match_re"]))return e("validation.monitoring.route.match")},fe=t=>(n=[])=>{if(n.some(e=>c()(e.verbs)))return e("validation.roleTemplate.roleTemplateRules.missingVerb");if(n.some(e=>e.resources?.length&&e.nonResourceURLs?.length))return e("validation.roleTemplate.roleTemplateRules.noResourceAndNonResource");if(t===o.lk.ROLE){if(n.some(e=>c()(e.resources)))return e("validation.roleTemplate.roleTemplateRules.missingResource");if(n.some(e=>c()(e.apiGroups)))return e("validation.roleTemplate.roleTemplateRules.missingApiGroup")}else if(n.some(e=>c()(e.resources)&&c()(e.nonResourceURLs)))return e("validation.roleTemplate.roleTemplateRules.missingOneResource")},me=e=>{},ge=t=>{const n=JSON.parse(t),r=n.type;if(!r)return e("validation.required",{key:"Type"});if("s3"===r){if(!n.accessKeyId)return e("validation.required",{key:"accessKeyId"});if(!n.secretAccessKey)return e("validation.required",{key:"secretAccessKey"});if(!n.bucketRegion)return e("validation.required",{key:"bucketRegion"});if(!n.bucketName)return e("validation.required",{key:"bucketName"})}},ve=t=>{const n=["qcow","qcow2","raw","img","iso"];if(!t||""===t)return;const r=t.split("/").pop(),i=r.split(".").pop().toLowerCase();return n.includes(i)?void 0:e("harvester.validation.image.ruleTip")},be=(t={})=>{if(!t[s.rk.IMAGE_NAME])return e("validation.required",{key:e("harvester.image.fileName")})},ye=i=>{const a=i?.match(/[^a-z0-9.-]/g);return a?e("validation.chars",{key:t,count:a.length,chars:a.map(e=>" "===e?"Space":`"${e}"`).join(", ")}):v(i,[u("label"),h("label"),n("label"),r("label"),M])};return{absolutePath:P,alphanumeric:W,backupTarget:ge,betweenLengths:S,betweenValues:_,clusterIp:me,clusterName:ce,containerImage:Q,containerImages:Z,localhostProfile:J,cronSchedule:F,dnsLabel:te,dnsLabelIanaServiceName:ne,dnsLabelRestricted:re,externalName:oe,fileRequired:be,urlRepository:H,groupsAreValid:he,hostname:ie,imageUrl:ve,interval:Y,https:$,awsStyleEndpoint:U,localhost:j,trailingForwardSlash:V,url:K,genericUrl:G,matching:pe,maxLength:E,maxValue:y,minLength:w,minValue:b,noUpperCase:B,ociRegistry:z,portNumber:T,registryUrl:ee,required:M,requiredInt:k,isInteger:x,isPositive:A,isOctal:C,roleTemplateRules:fe,ruleGroups:le,semanticVersion:X,servicePort:ue,subDomain:ye,testRule:se,version:q,wildcardHostname:ae}}},20652:function(e,t,n){"use strict";n.d(t,{KR:function(){return r}});const r="harvester";n(53938)},50889:function(e,t,n){"use strict";n.d(t,{EP:function(){return r},LP:function(){return a},gh:function(){return i}});const r={BACKUP_TARGET:"backup-target",CONTAINERD_REGISTRY:"containerd-registry",LOG_LEVEL:"log-level",SERVER_VERSION:"server-version",UI_INDEX:"ui-index",UPGRADE_CHECKER_ENABLED:"upgrade-checker-enabled",UPGRADE_CHECKER_URL:"upgrade-checker-url",VLAN:"vlan",UI_SOURCE:"ui-source",UI_PL:"ui-pl",HTTP_PROXY:"http-proxy",ADDITIONAL_CA:"additional-ca",OVERCOMMIT_CONFIG:"overcommit-config",CLUSTER_REGISTRATION_URL:"cluster-registration-url",DEFAULT_STORAGE_CLASS:"default-storage-class",SUPPORT_BUNDLE_TIMEOUT:"support-bundle-timeout",SUPPORT_BUNDLE_EXPIRATION:"support-bundle-expiration",SUPPORT_BUNDLE_FILE_NAME:"support-bundle-file-name",SUPPORT_BUNDLE_IMAGE:"support-bundle-image",SUPPORT_BUNDLE_NODE_COLLECTION_TIMEOUT:"support-bundle-node-collection-timeout",STORAGE_NETWORK:"storage-network",RWX_NETWORK:"rwx-network",VM_FORCE_RESET_POLICY:"vm-force-reset-policy",SSL_CERTIFICATES:"ssl-certificates",SSL_PARAMETERS:"ssl-parameters",SUPPORT_BUNDLE_NAMESPACES:"support-bundle-namespaces",AUTO_DISK_PROVISION_PATHS:"auto-disk-provision-paths",RELEASE_DOWNLOAD_URL:"release-download-url",CCM_CSI_VERSION:"harvester-csi-ccm-versions",CSI_DRIVER_CONFIG:"csi-driver-config",CSI_ONLINE_EXPAND_VALIDATION:"csi-online-expand-validation",VM_TERMINATION_PERIOD:"default-vm-termination-grace-period-seconds",NTP_SERVERS:"ntp-servers",AUTO_ROTATE_RKE2_CERTS:"auto-rotate-rke2-certs",KUBECONFIG_DEFAULT_TOKEN_TTL_MINUTES:"kubeconfig-default-token-ttl-minutes",LONGHORN_V2_DATA_ENGINE_ENABLED:"longhorn-v2-data-engine-enabled",ADDITIONAL_GUEST_MEMORY_OVERHEAD_RATIO:"additional-guest-memory-overhead-ratio",UPGRADE_CONFIG:"upgrade-config",VM_MIGRATION_NETWORK:"vm-migration-network",RANCHER_CLUSTER:"rancher-cluster",MAX_HOTPLUG_RATIO:"max-hotplug-ratio",KUBEVIRT_MIGRATION:"kubevirt-migration",INSTANCE_MANAGER_RESOURCES:"instance-manager-resources"},i={[r.BACKUP_TARGET]:{kind:"json",from:"import",canReset:!0},[r.LOG_LEVEL]:{kind:"enum",options:["info","debug","trace"]},[r.VLAN]:{kind:"custom",from:"import",alias:"vlan"},[r.AUTO_ROTATE_RKE2_CERTS]:{kind:"json",from:"import",featureFlag:"autoRotateRke2CertsSetting"},[r.CSI_DRIVER_CONFIG]:{kind:"json",from:"import"},[r.CSI_ONLINE_EXPAND_VALIDATION]:{kind:"json",from:"import",featureFlag:"csiOnlineExpandValidation"},[r.SERVER_VERSION]:{readOnly:!0},[r.UPGRADE_CHECKER_ENABLED]:{kind:"boolean"},[r.UPGRADE_CHECKER_URL]:{kind:"url"},[r.HTTP_PROXY]:{kind:"json",from:"import"},[r.ADDITIONAL_CA]:{kind:"multiline",canReset:!0,from:"import"},[r.OVERCOMMIT_CONFIG]:{kind:"json",from:"import"},[r.SUPPORT_BUNDLE_TIMEOUT]:{kind:"number"},[r.SUPPORT_BUNDLE_EXPIRATION]:{kind:"number"},[r.SUPPORT_BUNDLE_FILE_NAME]:{kind:"string",canReset:!0,featureFlag:"supportBundleFileNameSetting"},[r.SUPPORT_BUNDLE_NODE_COLLECTION_TIMEOUT]:{kind:"number",featureFlag:"supportBundleNodeCollectionTimeoutSetting"},[r.SUPPORT_BUNDLE_IMAGE]:{kind:"json",from:"import"},[r.STORAGE_NETWORK]:{kind:"custom",from:"import",canReset:!0},[r.RWX_NETWORK]:{kind:"json",from:"import",canReset:!0,featureFlag:"rwxNetworkSetting"},[r.VM_FORCE_RESET_POLICY]:{kind:"json",from:"import"},[r.SSL_CERTIFICATES]:{kind:"json",from:"import"},[r.SSL_PARAMETERS]:{kind:"json",from:"import",canReset:!0},[r.SUPPORT_BUNDLE_NAMESPACES]:{from:"import",canReset:!0},[r.AUTO_DISK_PROVISION_PATHS]:{canReset:!0},[r.RELEASE_DOWNLOAD_URL]:{kind:"url"},[r.CONTAINERD_REGISTRY]:{kind:"json",from:"import",canReset:!0},[r.UI_SOURCE]:{kind:"enum",options:["auto","external","bundled"]},[r.UI_INDEX]:{kind:"url"},[r.VM_TERMINATION_PERIOD]:{kind:"string",from:"import"},[r.NTP_SERVERS]:{kind:"json",from:"import",canReset:!0},[r.KUBECONFIG_DEFAULT_TOKEN_TTL_MINUTES]:{kind:"number",featureFlag:"kubeconfigDefaultTokenTTLMinutesSetting"},[r.LONGHORN_V2_DATA_ENGINE_ENABLED]:{kind:"boolean",experimental:!0,featureFlag:"longhornV2LVMSupport"},[r.ADDITIONAL_GUEST_MEMORY_OVERHEAD_RATIO]:{kind:"string",from:"import"},[r.UPGRADE_CONFIG]:{kind:"json",from:"import",featureFlag:"upgradeConfigSetting",docPath:"UPGRADE_CONFIG_URL"},[r.RANCHER_CLUSTER]:{kind:"custom",from:"import",canReset:!0,featureFlag:"rancherClusterSetting"},[r.MAX_HOTPLUG_RATIO]:{kind:"number",featureFlag:"cpuMemoryHotplug"},[r.VM_MIGRATION_NETWORK]:{kind:"json",from:"import",canReset:!0,featureFlag:"vmNetworkMigration"},[r.KUBEVIRT_MIGRATION]:{kind:"json",from:"import",canReset:!0,featureFlag:"kubevirtMigration"},[r.INSTANCE_MANAGER_RESOURCES]:{kind:"json",from:"import",featureFlag:"instanceManagerResourcesSetting"}},a={[r.CLUSTER_REGISTRATION_URL]:{kind:"custom",from:"import",canReset:!0},[r.UI_PL]:{kind:"custom",from:"import",alias:"branding"}}},32766:function(e,t,n){"use strict";n.d(t,{Zq:function(){return a},nE:function(){return o},qY:function(){return i},rk:function(){return r}});const r={VM:"kubevirt.io.virtualmachine",VMI:"kubevirt.io.virtualmachineinstance",VMIM:"kubevirt.io.virtualmachineinstancemigration",VM_TEMPLATE:"harvesterhci.io.virtualmachinetemplate",VM_VERSION:"harvesterhci.io.virtualmachinetemplateversion",IMAGE:"harvesterhci.io.virtualmachineimage",SSH:"harvesterhci.io.keypair",VOLUME:"harvesterhci.io.volume",USER:"harvesterhci.io.user",SETTING:"harvesterhci.io.setting",UPGRADE:"harvesterhci.io.upgrade",UPGRADE_LOG:"harvesterhci.io.upgradelog",SCHEDULE_VM_BACKUP:"harvesterhci.io.schedulevmbackup",BACKUP:"harvesterhci.io.virtualmachinebackup",RESTORE:"harvesterhci.io.virtualmachinerestore",NODE_NETWORK:"network.harvesterhci.io.nodenetwork",CLUSTER_NETWORK:"network.harvesterhci.io.clusternetwork",SUBNET:"kubeovn.io.subnet",VPC:"kubeovn.io.vpc",IP:"kubeovn.io.ip",VM_IMAGE_DOWNLOADER:"harvesterhci.io.virtualmachineimagedownloader",SUPPORT_BUNDLE:"harvesterhci.io.supportbundle",NETWORK_ATTACHMENT:"harvesterhci.io.networkattachmentdefinition",CLUSTER:"harvesterhci.io.management.cluster",DASHBOARD:"harvesterhci.io.dashboard",BLOCK_DEVICE:"harvesterhci.io.blockdevice",CLOUD_TEMPLATE:"harvesterhci.io.cloudtemplate",HOST:"harvesterhci.io.host",VERSION:"harvesterhci.io.version",SNAPSHOT:"harvesterhci.io.volumesnapshot",VM_SNAPSHOT:"harvesterhci.io.vmsnapshot",ALERTMANAGERCONFIG:"harvesterhci.io.monitoring.alertmanagerconfig",CLUSTER_FLOW:"harvesterhci.io.logging.clusterflow",CLUSTER_OUTPUT:"harvesterhci.io.logging.clusteroutput",FLOW:"harvesterhci.io.logging.flow",OUTPUT:"harvesterhci.io.logging.output",STORAGE:"harvesterhci.io.storage",RESOURCE_QUOTA:"harvesterhci.io.resourcequota",KSTUNED:"node.harvesterhci.io.ksmtuned",HUGEPAGES:"node.harvesterhci.io.hugepage",PCI_DEVICE:"devices.harvesterhci.io.pcidevice",PCI_CLAIM:"devices.harvesterhci.io.pcideviceclaim",SR_IOV:"devices.harvesterhci.io.sriovnetworkdevice",VGPU_DEVICE:"devices.harvesterhci.io.vgpudevice",SR_IOVGPU_DEVICE:"devices.harvesterhci.io.sriovgpudevice",USB_DEVICE:"devices.harvesterhci.io.usbdevice",USB_CLAIM:"devices.harvesterhci.io.usbdeviceclaim",MIG_CONFIGURATION:"devices.harvesterhci.io.migconfiguration",VLAN_CONFIG:"network.harvesterhci.io.vlanconfig",VLAN_STATUS:"network.harvesterhci.io.vlanstatus",ADD_ONS:"harvesterhci.io.addon",LINK_MONITOR:"network.harvesterhci.io.linkmonitor",SECRET:"harvesterhci.io.secret",INVENTORY:"metal.harvesterhci.io.inventory",LB:"loadbalancer.harvesterhci.io.loadbalancer",IP_POOL:"loadbalancer.harvesterhci.io.ippool",HARVESTER_CONFIG:"rke-machine-config.cattle.io.harvesterconfig",LVM_VOLUME_GROUP:"harvesterhci.io.lvmvolumegroup",VMIMPORT_SOURCE_V:"migration.harvesterhci.io.vmwaresource",VMIMPORT_SOURCE_O:"migration.harvesterhci.io.openstacksource",VMIMPORT_SOURCE_OVA:"migration.harvesterhci.io.ovasource",VMIMPORT:"migration.harvesterhci.io.virtualmachineimport",MIGRATION:"migration.harvesterhci.io"},i="snapshot.storage.k8s.io.volumesnapshot",a="storage.k8s.io.csidriver",o="snapshot.storage.k8s.io.volumesnapshotclass"},69091:function(e,t,n){"use strict";n.d(t,{A:function(){return b}});var r=n(9274);const i={key:0},a=["disabled","data-testid","tabindex","onClick","onKeyup"],o={key:0,class:"no-actions"};function s(e,t,n,s,l,c){const u=(0,r.resolveComponent)("IconOrSvg"),d=(0,r.resolveDirective)("clean-html"),h=(0,r.resolveDirective)("t");return c.showing||n.open?((0,r.openBlock)(),(0,r.createElementBlock)("div",i,[(0,r.createElementVNode)("div",{class:"background",onClick:t[0]||(t[0]=(...e)=>c.hide&&c.hide(...e)),onContextmenu:t[1]||(t[1]=(0,r.withModifiers)(()=>{},["prevent"]))},null,32),(0,r.createElementVNode)("ul",{class:"list-unstyled menu",style:(0,r.normalizeStyle)(l.style)},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(c.menuOptions,(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("li",{key:t,disabled:!!e.disabled||null,class:(0,r.normalizeClass)({divider:e.divider}),"data-testid":n.componentTestid+"-"+t+"-item",tabindex:e.divider?-1:0,onClick:t=>c.execute(e,t),onKeyup:[(0,r.withKeys)(t=>c.execute(e,t),["enter"]),(0,r.withKeys)(t=>c.execute(e,t),["space"])]},[e.icon||e.svg?((0,r.openBlock)(),(0,r.createBlock)(u,{key:0,icon:e.icon,src:e.svg,class:"icon",color:"header"},null,8,["icon","src"])):(0,r.createCommentVNode)("",!0),(0,r.withDirectives)((0,r.createElementVNode)("span",null,null,512),[[d,e.label]])],42,a))),128)),c.hasOptions(c.menuOptions)?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("li",o,[(0,r.withDirectives)((0,r.createElementVNode)("span",null,null,512),[[h,"sortableTable.noActions"]])]))],4)])):(0,r.createCommentVNode)("",!0)}var l=n(65359),c=n(14817),u=n(35881),d=n(40275);const h="hide",p="calculate",f="show";var m={name:"ActionMenu",emits:["close","action-invoked"],components:{IconOrSvg:d.A},props:{customActions:{type:Array,default:()=>[]},open:{type:Boolean,default:!1},useCustomTargetElement:{type:Boolean,default:!1},customTargetElement:{type:HTMLElement,default:null},customTargetEvent:{type:[PointerEvent,MouseEvent],default:null},componentTestid:{type:String,default:"action-menu"}},data(){return{phase:h,style:{}}},computed:{...(0,l.L8)({targetElem:"action-menu/elem",targetEvent:"action-menu/event",shouldShow:"action-menu/showing",options:"action-menu/options"}),showing(){return this.phase!==h},menuOptions(){return this.customActions.length>0?this.customActions:this.options}},watch:{shouldShow:{handler(e){e?(this.phase=p,this.updateStyle(),this.$nextTick(()=>{this.phase===p&&(this.phase=f,this.updateStyle())})):this.phase=h}},open(){this.updateStyle()},"$route.path"(e,t){this.hide()}},methods:{hide(){this.useCustomTargetElement?this.$emit("close"):this.$store.commit("action-menu/hide")},updateStyle(){if(this.phase===f&&!this.useCustomTargetElement){const e=this.$el?.querySelector&&this.$el.querySelector(".menu"),t=this.targetEvent,n=this.targetElem;return this.style=(0,c.Tb)(e,n||t,{overlapX:!0,fudgeX:n?-2:0,fudgeY:n?20:0,positionX:n?c.Q8:c.Q7,positionY:c.Q8}),void(this.style.visibility="visible")}if(this.open&&this.useCustomTargetElement){const e=this.$el?.querySelector&&this.$el.querySelector(".menu"),t=this.customTargetElement;return this.style=(0,c.Tb)(e,t,{overlapX:!0,fudgeX:t?4:0,fudgeY:t?4:0,positionX:t?c.Q8:c.Q7,positionY:c.Q8},!0),void(this.style.visibility="visible")}this.style={}},execute(e,t,n){if(!e.disabled){if(e.invoke){const n=e.invoke;if(n&&e.enabled){const r=this.$store.getters["action-menu/resources"],i={event:t,action:e,isAlt:(0,u.nN)(t)};1===r.length&&n.apply(this,[i,r])}}else if(this.useCustomTargetElement)this.$emit("action-invoked",{action:e.action,actionData:e,event:t,...n,route:this.$route});else{const r={alt:(0,u.nN)(t)};this.$store.dispatch("action-menu/execute",{action:e,args:n,opts:r})}this.hide()}},hasOptions(e){return void 0!==e.length?e.length:Object.keys(e).length>0}}},g=(n(68814),n(47433));const v=(0,g.A)(m,[["render",s],["__scopeId","data-v-375e9eb4"]]);var b=v},76204:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});var r=n(9274),i=n(65359),a=n(68974),o=n(35881),s=n(16408),l=(0,r.defineComponent)({inheritAttrs:!1,__name:"ActionMenuShell",props:{buttonVariant:{},buttonSize:{},buttonAriaLabel:{},dropdownAriaLabel:{},dataTestid:{},resource:{},customActions:{}},emits:["action-invoked"],setup(e,{emit:t}){const n=(0,i.Pj)(),l=e,c=e=>{e&&n.dispatch("action-menu/setResource",l.resource)},u=t,d=(0,a.lq)(),h=(e,t,r)=>{if(e.disabled)return;const i={action:e.action,actionData:e,event:t,...r,route:d};if(u("action-invoked",i),e.invoke){const r=e.invoke;if(r&&e.enabled){const i=n.getters["action-menu/resources"],a={event:t,action:e,isAlt:(0,o.nN)(t)};1===i.length&&r.apply(this,[a,i])}}else if(!l.customActions){const i={alt:(0,o.nN)(t)};n.dispatch("action-menu/execute",{action:e,args:r,opts:i})}},p=(0,r.computed)(()=>n.getters["action-menu/optionsArray"]),f=()=>l.customActions&&l.customActions.length>0?l.customActions:p.value;return(t,n)=>((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(s.ue),{"button-variant":e.buttonVariant||"link","button-size":e.buttonSize||"medium","button-aria-label":e.buttonAriaLabel,"dropdown-aria-label":e.dropdownAriaLabel,options:f(),"data-testid":e.dataTestid,"onUpdate:open":c,onSelect:n[0]||(n[0]=(e,t)=>h(t,e))},null,8,["button-variant","button-size","button-aria-label","dropdown-aria-label","options","data-testid"]))}});const c=l;var u=c},3679:function(e,t,n){"use strict";n.d(t,{h:function(){return d}});var r=n(9274);const i=["data-modal"];function a(e,t,n,a,o,s){return(0,r.openBlock)(),(0,r.createBlock)(r.Teleport,{to:"#modals"},[(0,r.createVNode)(r.Transition,{name:"modal-fade",appear:""},{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)("div",{class:"modal-overlay","data-modal":e.name,onClick:t[1]||(t[1]=(...t)=>e.handleClickOutside&&e.handleClickOutside(...t))},[(0,r.createElementVNode)("div",(0,r.mergeProps)(e.$attrs,{id:"modal-container-element",ref:"modalRef",class:[e.customClass,"modal-container"],style:e.modalStyles,role:"dialog","aria-modal":"true",onClick:t[0]||(t[0]=(0,r.withModifiers)(()=>{},["stop"]))}),[(0,r.renderSlot)(e.$slots,"default")],16)],8,i)]),_:3})])}var o=n(82149);const s="body;";var l=(0,r.defineComponent)({name:"AppModal",emits:["close"],inheritAttrs:!1,props:{clickToClose:{type:Boolean,default:!0},width:{type:[Number,String],default:600,validator(e){return"number"===typeof e?e>0:"string"===typeof e&&/^(0*(?:[1-9][0-9]*|0)\.?\d*)+(px|%)$/.test(e)}},customClass:{type:String,default:""},styles:{type:String,default:""},name:{type:String,default:""},triggerFocusTrap:{type:Boolean,default:!1},returnFocusSelector:{type:String,default:""},returnFocusFirstIterableNodeSelector:{type:String,default:s},focusTrapWatcherBasedVariable:{type:Boolean,default:void 0}},computed:{modalWidth(){if(this.isValidWidth(this.width)){const e="number"===typeof this.width?"px":"";return`${this.width}${e}`}return"600px"},stylesPropToObj(){return this.styles.split(";").map(e=>e.trim().split(":")).reduce((e,[t,n])=>({...e,[t]:n}),{})},modalStyles(){return{width:this.modalWidth,...this.stylesPropToObj}}},setup(e){if(e.triggerFocusTrap){let t=o.mG;e.returnFocusFirstIterableNodeSelector&&e.returnFocusFirstIterableNodeSelector!==s&&e.returnFocusSelector?t={...o.mG,setReturnFocus:()=>document.querySelector(e.returnFocusSelector)?e.returnFocusSelector:(0,o.$4)(document.querySelector(e.returnFocusFirstIterableNodeSelector))}:e.returnFocusSelector&&(t={...o.mG,setReturnFocus:e.returnFocusSelector});const n=(0,r.ref)(!0);(0,o.ve)(()=>{var t;return null!==(t=e.focusTrapWatcherBasedVariable)&&void 0!==t?t:n},"#modal-container-element",t,!0)}},mounted(){document.addEventListener("keydown",this.handleEscapeKey)},beforeUnmount(){document.removeEventListener("keydown",this.handleEscapeKey)},methods:{handleClickOutside(e){this.clickToClose&&this.$refs.modalRef&&!this.$refs.modalRef.contains(e.target)&&this.$emit("close")},handleEscapeKey(e){this.clickToClose&&"Escape"===e.key&&this.$emit("close")},isValidWidth(e){return"number"===typeof e?e>0:"string"===typeof e&&/^(0*(?:[1-9][0-9]*|0)\.?\d*)+(px|%)$/.test(e)}}}),c=(n(76543),n(47433));const u=(0,c.A)(l,[["render",a]]);var d=u},67607:function(e,t,n){"use strict";n.d(t,{R:function(){return c},A:function(){return v}});var r=n(9274);const i=["name","type","disabled","aria-disabled","tab-index","data-testid"],a=["alt"],o={key:2,"data-testid":"async-btn-display-label"};function s(e,t,n,s,l,c){const u=(0,r.resolveDirective)("clean-tooltip"),d=(0,r.resolveDirective)("clean-html");return(0,r.openBlock)(),(0,r.createElementBlock)("button",{ref:"btn",role:"button",class:(0,r.normalizeClass)(e.classes),name:e.name,type:e.type,disabled:e.disabled,"aria-disabled":e.appearsDisabled,"tab-index":e.tabIndex,"data-testid":e.componentTestid+"-async-button",onClick:t[0]||(t[0]=(...t)=>e.clicked&&e.clicked(...t))},[e.isManualRefresh?((0,r.openBlock)(),(0,r.createElementBlock)("span",{key:0,class:(0,r.normalizeClass)({"mr-10":e.displayIcon&&"sm"!==e.size,"mr-5":e.displayIcon&&"sm"===e.size})},(0,r.toDisplayString)(e.t("action.refresh")),3)):(0,r.createCommentVNode)("",!0),e.displayIcon?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("i",{key:1,class:(0,r.normalizeClass)({icon:!0,"icon-lg":!0,[e.displayIcon]:!0,"mr-0":e.isManualRefresh}),alt:e.t("asyncButton.alt.iconAlt")},null,10,a)),[[u,e.tooltip]]):(0,r.createCommentVNode)("",!0),"text"===e.labelAs&&e.displayLabel?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("span",o,null,512)),[[u,e.tooltip],[d,e.displayLabel]]):(0,r.createCommentVNode)("",!0)],10,i)}var l={memberOfObject:(e,t)=>Object.entries(e||{}).find(([e])=>e===t),memberOfComponent:(e,t)=>e[t]};const c={ACTION:"action",WAITING:"waiting",SUCCESS:"success",ERROR:"error"},u="text",d="tooltip",h="btn-disabled",p={timer:void 0};var f=(0,r.defineComponent)({props:{mode:{type:String,default:"edit"},delay:{type:Number,default:5e3},name:{type:String,default:null},disabled:{type:Boolean,default:!1},type:{type:String,default:"button"},tabIndex:{type:Number,default:null},actionColor:{type:String,default:"role-primary"},waitingColor:{type:String,default:"bg-primary"},successColor:{type:String,default:"bg-success"},errorColor:{type:String,default:"bg-error"},actionLabel:{type:String,default:null},waitingLabel:{type:String,default:null},successLabel:{type:String,default:null},errorLabel:{type:String,default:null},icon:{type:String,default:null},labelAs:{type:String,default:u},size:{type:String,default:""},currentPhase:{type:String,default:c.ACTION},componentTestid:{type:String,default:"action-button"},manual:{type:Boolean,default:!1}},setup(){const e=(0,r.inject)("timer",p.timer);return{timer:e}},emits:["click"],data(){return{phase:this.currentPhase}},watch:{currentPhase(e){this.phase=e}},computed:{classes(){const e=`${this.phase}Color`,t=l.memberOfComponent(this,e),n={btn:!0,[t]:!0};return this.size&&(n[`btn-${this.size}`]=!0),this.phase===c.WAITING&&(n[h]=!0),this.phase===c.ACTION&&(n["ready-for-action"]=!0),n},appearsDisabled(){return this.disabled||this.phase===c.WAITING},displayIcon(){const e=this.$store.getters["i18n/exists"],t=this.$store.getters["i18n/t"],n=`asyncButton.${this.mode}.${this.phase}Icon`,r=`asyncButton.default.${this.phase}Icon`;let i="";return this.icon?i=this.icon:e(n)?i=`icon-${t(n)}`:e(r)&&(i=`icon-${t(r)}`),this.isSpinning&&(i||(i="icon-spinner"),i+=" icon-spin"),i},displayLabel(){const e=l.memberOfComponent(this,`${this.phase}Label`),t=this.$store.getters["i18n/exists"],n=this.$store.getters["i18n/t"],r=`asyncButton.${this.mode}.${this.phase}`,i=`asyncButton.default.${this.phase}`;return e||(t(r)?n(r):t(i)?n(i):"")},isSpinning(){return this.phase===c.WAITING},isManualRefresh(){return"manual-refresh"===this.mode},tooltip(){return this.labelAs===d?{content:this.displayLabel,hideOnTargetClick:!1}:null}},beforeUnmount(){this.timer&&clearTimeout(this.timer)},methods:{clicked(){if(this.appearsDisabled)return;this.timer&&clearTimeout(this.timer),this.manual||(this.phase=c.WAITING);const e=e=>{this.done(e)};this.$emit("click",e)},done(e){"cancelled"===e?this.phase=c.ACTION:(this.phase=e?c.SUCCESS:c.ERROR,this.timer=setTimeout(()=>{this.timerDone()},this.delay))},timerDone(){this.phase!==c.SUCCESS&&this.phase!==c.ERROR||(this.phase=c.ACTION)},focus(){this.$refs.btn.focus()}}}),m=(n(65210),n(47433));const g=(0,m.A)(f,[["render",s],["__scopeId","data-v-21c97bb9"]]);var v=g},89958:function(e,t,n){"use strict";n.d(t,{A:function(){return f}});var r=n(9274);const i=["onClick"];function a(e,t,n,a,o,s){const l=(0,r.resolveComponent)("v-select");return(0,r.openBlock)(),(0,r.createBlock)(l,(0,r.mergeProps)({ref:"button-dropdown",class:["button-dropdown btn",{disabled:n.disabled,focused:o.focused}]},e.$attrs,{"append-to-body":!0,"calculate-position":s.withPopper,searchable:!1,clearable:!1,"close-on-select":n.closeOnSelect,filterable:!1,modelValue:n.buttonLabel,options:n.dropdownOptions,"map-keydown":e.mappedKeys,"get-option-key":e=>n.optionKey?s.get(e,n.optionKey):s.getOptionLabel(e),"get-option-label":e=>s.getOptionLabel(e),selectable:n.selectable,"onSearch:blur":s.onBlur,"onSearch:focus":s.onFocus,"onUpdate:modelValue":t[1]||(t[1]=t=>e.$emit("click-action",t))}),(0,r.createSlots)({"no-options":(0,r.withCtx)(()=>[(0,r.renderSlot)(e.$slots,"no-options",{},void 0,!0)]),"selected-option":(0,r.withCtx)(e=>[(0,r.createElementVNode)("button",{tabindex:"-1",type:"button",class:"dropdown-button-two btn","data-testid":"dropdown-button",onClick:t=>s.ddButtonAction(e),onFocus:t[0]||(t[0]=(...e)=>s.focusSearch&&s.focusSearch(...e))},(0,r.toDisplayString)(e.label),41,i)]),_:2},[(0,r.renderList)(e.$slots,(t,n)=>({name:n,fn:(0,r.withCtx)(t=>["selected-option"!==n&&"function"===typeof e.$slots[n]?(0,r.renderSlot)(e.$slots,n,(0,r.normalizeProps)((0,r.mergeProps)({key:0},t)),void 0,!0):(0,r.createCommentVNode)("",!0)])}))]),1040,["class","calculate-position","close-on-select","modelValue","options","map-keydown","get-option-key","get-option-label","selectable","onSearch:blur","onSearch:focus"])}var o=n(60425),s=n(76978),l=n(8138),c=n.n(l),u=n(89626),d={emits:["dd-button-action","click-action"],mixins:[u.A],props:{buttonLabel:{default:"",type:String},closeOnSelect:{default:!0,type:Boolean},disabled:{default:!1,type:Boolean},dropdownOptions:{default:()=>[],type:Array},optionKey:{default:null,type:String},optionLabel:{default:"label",type:String},size:{default:null,type:String},value:{default:null,type:String},placement:{default:"bottom-start",type:String},selectable:{default:e=>!e||!e.disabled&&"group"!==e.kind&&"divider"!==e.kind&&!e.loading,type:Function}},data(){return{focused:!1}},methods:{withPopper(e,t,{width:n}){const r=t.$refs.search.clientWidth,i=e.clientWidth;e.style.width=i<r?`${r}px`:"min-content";const a=(0,o.n4)(t.$refs.toggle,e,{placement:this.placement||"bottom-start",modifiers:[{name:"offset",options:{offset:[-2,2]}},{name:"toggleClass",enabled:!0,phase:"write",fn({state:e}){t.$el.setAttribute("x-placement",e.placement)}}]});return()=>a.destroy()},ddButtonAction(e){this.focusSearch(),this.$emit("dd-button-action",e)},getOptionLabel(e){return c()(e)?e:this.$attrs["get-option-label"]?this.$attrs["get-option-label"](e):(0,s.Jt)(e,this.optionLabel)?this.localizedLabel?this.$store.getters["i18n/t"]((0,s.Jt)(e,this.optionLabel)):(0,s.Jt)(e,this.optionLabel):e},onFocus(){return this.onFocusLabeled()},onFocusLabeled(){this.focused=!0},onBlur(){return this.onBlurLabeled()},onBlurLabeled(){this.focused=!1},focusSearch(){this.$nextTick(()=>{const e=this.$refs["button-dropdown"].searchEl;e&&e.focus()})},get:s.Jt}},h=(n(9722),n(47433));const p=(0,h.A)(d,[["render",a],["__scopeId","data-v-2ab9ff7a"]]);var f=p},96858:function(e,t,n){"use strict";n.d(t,{A:function(){return h}});var r=n(9274);const i={class:"btn-group"},a=["data-testid","disabled","aria-label","aria-pressed","onClick"],o=["alt"],s={key:2};function l(e,t,n,l,c,u){const d=(0,r.resolveComponent)("t"),h=(0,r.resolveDirective)("clean-tooltip"),p=(0,r.resolveDirective)("trim-whitespace");return(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("div",i,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(u.optionObjects,(t,i)=>(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:i,"data-testid":`button-group-child-${i}`,type:"button",class:(0,r.normalizeClass)(t.class),disabled:n.disabled||t.disabled,role:"button","aria-label":u.actionAriaLabel(t),"aria-pressed":u.isPressed(t),onClick:e=>u.change(t.value)},[(0,r.renderSlot)(e.$slots,"option",{label:t.label,value:t.value},()=>[t.icon?((0,r.openBlock)(),(0,r.createElementBlock)("i",{key:0,class:(0,r.normalizeClass)({icon:!0,[t.icon]:!0,[`icon-${n.iconSize}`]:!!n.iconSize}),alt:u.actionAriaLabel(t)},null,10,o)):(0,r.createCommentVNode)("",!0),t.labelKey?((0,r.openBlock)(),(0,r.createBlock)(d,{key:1,k:t.labelKey},null,8,["k"])):t.label?((0,r.openBlock)(),(0,r.createElementBlock)("span",s,(0,r.toDisplayString)(t.label),1)):(0,r.createCommentVNode)("",!0)])],10,a)),[[h,t.tooltipKey?e.t(t.tooltipKey):t.tooltip]])),128))])),[[p]])}var c={emits:["update:value"],props:{value:{type:[String,Number,Boolean,Object],required:!0},inactiveClass:{type:String,default:"bg-disabled"},activeClass:{type:String,default:"bg-primary"},options:{type:Array,required:!0},iconSize:{type:String,default:null},disabled:{type:Boolean,default:!1}},computed:{optionObjects(){const e=this.value;return this.options.map(t=>{let n;n=t&&"object"===typeof t&&"undefined"!==typeof t.value?Object.assign({},t):{label:t,value:t};const r=e===n.value;return n.class={btn:!0,[this.inactiveClass]:!r,[this.activeClass]:r},n})}},methods:{change(e){this.$emit("update:value",e)},actionDescription(e){const t=e.tooltipKey?this.t(e.tooltipKey):e.tooltip,n=e.labelKey?this.t(e.labelKey):e.label;return t||n||""},actionAriaLabel(e){const t=e.ariaLabel,n=e.labelKey?this.t(e.labelKey):e.label,r=e.tooltipKey?this.t(e.tooltipKey):e.tooltip;return t||r||n||void 0},isPressed(e){return this.value===e.value}}},u=n(47433);const d=(0,u.A)(c,[["render",l]]);var h=d},56601:function(e,t,n){"use strict";n.d(t,{A:function(){return l}});var r=n(9274);const i=["alt"];var a=(0,r.defineComponent)({__name:"ButtonMultiAction",props:{borderless:{type:Boolean},invisible:{type:Boolean}},emits:["click"],setup(e){const t=e,n=(0,r.computed)(()=>({borderless:null===t||void 0===t?void 0:t.borderless,invisible:null===t||void 0===t?void 0:t.invisible}));return(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("button",{type:"button",class:(0,r.normalizeClass)(["btn btn-sm role-multi-action actions",n.value]),role:"button",onClick:t[0]||(t[0]=t=>e.$emit("click",t))},[(0,r.createElementVNode)("i",{class:"icon icon-actions",alt:e.t("sortableTable.tableActionsImgAlt")},null,8,i)],2))}}),o=(n(83520),n(47433));const s=(0,o.A)(a,[["__scopeId","data-v-a3361b40"]]);var l=s},78119:function(e,t,n){"use strict";n.d(t,{A:function(){return g}});var r=n(9274);const i=["tabindex"],a={key:0},o={key:0,class:"keymap overlay"},s=["aria-describedby"],l={key:1};function c(e,t,n,c,u,d){const h=(0,r.resolveComponent)("Codemirror"),p=(0,r.resolveDirective)("clean-tooltip");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{ref:"codeMirrorContainer",tabindex:d.codeMirrorContainerTabIndex,class:(0,r.normalizeClass)(["code-mirror code-mirror-container",{["as-text-area"]:n.asTextArea}]),onFocusin:t[1]||(t[1]=(...e)=>d.focusChanged&&d.focusChanged(...e)),onBlur:t[2]||(t[2]=e=>d.focusChanged(e,!0))},[u.loaded?((0,r.openBlock)(),(0,r.createElementBlock)("div",a,[n.showKeyMapBox&&!u.removeKeyMapBox&&d.keyMapTooltip&&d.isNonDefaultKeyMap?((0,r.openBlock)(),(0,r.createElementBlock)("div",o,[(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"keymap-indicator","data-testid":"code-mirror-keymap",onClick:t[0]||(t[0]=(...e)=>d.closeKeyMapInfo&&d.closeKeyMapInfo(...e))},[...t[3]||(t[3]=[(0,r.createElementVNode)("i",{class:"icon icon-keyboard keymap-icon"},null,-1),(0,r.createElementVNode)("div",{class:"close-indicator"},[(0,r.createElementVNode)("i",{class:"icon icon-close icon-sm"})],-1)])])),[[p,d.keyMapTooltip]])])):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(h,{id:"code-mirror-el",ref:"codeMirrorRef",value:n.value,options:d.combinedOptions,disabled:d.isDisabled,"original-style":!0,onReady:d.onReady,onInput:d.onInput,onChanges:d.onChanges,onFocus:d.onFocus,onBlur:d.onBlur},null,8,["value","options","disabled","onReady","onInput","onChanges","onFocus","onBlur"]),(0,r.withDirectives)((0,r.createElementVNode)("span",{class:"escape-text",role:"alert","aria-describedby":e.t("wm.containerShell.escapeText")},(0,r.toDisplayString)(e.t("codeMirror.escapeText")),9,s),[[r.vShow,u.isCodeMirrorFocused]])])):((0,r.openBlock)(),(0,r.createElementBlock)("div",l," Loading... "))],42,i)}var u=n(91462),d=n(14220),h=n(4364),p={name:"CodeMirror",emits:["onReady","onInput","onChanges","onFocus","validationChanged"],props:{mode:{type:String,default:d.G5},value:{type:String,required:!0},options:{type:Object,default:()=>{}},asTextArea:{type:Boolean,default:!1},showKeyMapBox:{type:Boolean,default:!1}},data(){return{codeMirrorRef:null,loaded:!1,removeKeyMapBox:!1,hasLintErrors:!1,currFocusedElem:void 0,isCodeMirrorFocused:!1,codeMirrorContainerRef:void 0}},computed:{isDisabled(){return this.mode===d.nW},combinedOptions(){const e=this.$store.getters["prefs/theme"],t=this.$store.getters["prefs/get"](u.aP),n={tabSize:2,indentWithTabs:!1,mode:"yaml",keyMap:t,theme:`base16-${e}`,lineNumbers:!0,line:!0,styleActiveLine:!1,lineWrapping:!0,foldGutter:!0,styleSelectedText:!0,showCursorWhenSelecting:!0,autocorrect:!1};return this.asTextArea&&(n.lineNumbers=!1,n.foldGutter=!1,n.tabSize=0,n.extraKeys={Tab:!1}),Object.assign(n,this.options),this.options?.lint&&(n.lint={onUpdateLinting:this.handleLintErrors}),n.readOnly=!!this.isDisabled,n},keyMapTooltip(){if(this.combinedOptions?.keyMap){const e=this.t(`prefs.keymap.${this.combinedOptions.keyMap}`);return this.t("codeMirror.keymap.indicatorToolip",{name:e})}return null},isNonDefaultKeyMap(){return"sublime"!==this.combinedOptions?.keyMap},isCodeMirrorContainerFocused(){return this.currFocusedElem===this.codeMirrorContainerRef},codeMirrorContainerTabIndex(){return this.isCodeMirrorFocused?0:-1}},created(){window.__codeMirrorLoader?window.__codeMirrorLoader().then(()=>{this.loaded=!0}):h.error("Code mirror loader not available")},async mounted(){const e=this.$refs.codeMirrorContainer;e.addEventListener("keydown",this.handleKeyPress),this.codeMirrorContainerRef=this.$refs.codeMirrorContainer},beforeUnmount(){const e=this.$refs.codeMirrorContainer;e.removeEventListener("keydown",this.handleKeyPress)},watch:{hasLintErrors(e){this.$emit("validationChanged",!e)},isCodeMirrorContainerFocused:{handler(e){const t=this.codeMirrorRef?.getInputField();t&&(t.tabIndex=e?-1:0)},immediate:!0}},methods:{focusChanged(e,t=!1){this.currFocusedElem=t?void 0:e.target},handleKeyPress(e){this.isCodeMirrorFocused&&"Escape"===e.code&&(e.preventDefault(),e.stopPropagation());const t=e.shiftKey&&"Escape"===e.code;this.isCodeMirrorFocused&&t&&this.$refs?.codeMirrorContainer?.focus(),!this.isCodeMirrorContainerFocused||"Enter"!==e.code&&"Space"!==e.code||this.codeMirrorRef.focus()},handleLintErrors(e=[]){const t=e.filter(e=>!e.severity||"error"===e.severity).length>0;this.hasLintErrors=t},focus(){this.$refs.codeMirrorRef&&this.$refs.codeMirrorRef.cminstance.focus()},refresh(){this.$refs.codeMirrorRef&&this.$refs.codeMirrorRef.refresh()},onReady(e){this.$emit("validationChanged",!0),this.$nextTick(()=>{e.refresh(),this.codeMirrorRef=e}),this.$emit("onReady",e)},onInput(e){this.$emit("onInput",e)},onChanges(e,t){this.$emit("onChanges",e,t)},onFocus(){this.isCodeMirrorFocused=!0,this.$emit("onFocus",this.isCodeMirrorFocused)},onBlur(){this.isCodeMirrorFocused=!1,this.$emit("onFocus",!1)},updateValue(e){this.$refs.codeMirrorRef&&this.$refs.codeMirrorRef.cminstance.doc.setValue(e)},closeKeyMapInfo(){this.removeKeyMapBox=!0}}},f=(n(1483),n(47433));const m=(0,f.A)(p,[["render",c]]);var g=m},71192:function(e,t,n){"use strict";n.d(t,{A:function(){return He}});var r=n(9274);const i={class:"cru"},a={key:0,class:"description"},o={key:0,id:"cru-errors",class:"cru__errors"},s={key:1,class:"subtypes-container cru__content"},l=["data-testid","aria-label","onClick","onKeyup"],c={class:"subtype-container"},u={class:"subtype-logo"},d=["src","alt"],h={key:1,class:"round-image"},p={key:0,class:"banner-abbrv"},f={key:0},m={key:1},g={class:"subtype-body"},v={key:0},b={key:1},y=["href"],_={key:0,role:"none"},w={key:1,class:"description"},E={key:0},S={key:1},k={key:0,class:"resource-container cru__content cru__content-wizard"},x={class:"controls-steps"},A=["onClick"],C=["disabled","onClick"],T=["data-testid"],N={key:4,class:"cru-resource-yaml-container resource-container cru__content"},R={class:"controls-middle"},O=["data-testid","onClick"],I=["data-testid","disabled","onClick"],L={key:0,class:"controls-right"},D=["data-testid","onClick"];function P(e,t,n,P,M,B){const F=(0,r.resolveComponent)("Banner"),$=(0,r.resolveComponent)("t"),U=(0,r.resolveComponent)("AsyncButton"),j=(0,r.resolveComponent)("CruResourceFooter"),V=(0,r.resolveComponent)("Wizard"),K=(0,r.resolveComponent)("ResourceYaml"),G=(0,r.resolveDirective)("clean-html");return(0,r.openBlock)(),(0,r.createElementBlock)("section",i,[(0,r.renderSlot)(e.$slots,"noticeBanner",{},void 0,!0),n.description?((0,r.openBlock)(),(0,r.createElementBlock)("p",a,(0,r.toDisplayString)(n.description),1)):(0,r.createCommentVNode)("",!0),((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(B.isView?"div":"form"),{value:n.resource,"data-testid":"cru-form",class:"create-resource-container cru__form",onSubmit:t[6]||(t[6]=(0,r.withModifiers)(()=>{},["prevent"])),onKeydown:t[7]||(t[7]=(0,r.withKeys)(e=>B.onPressEnter(e),["enter"]))},{default:(0,r.withCtx)(()=>[B.hasErrors?((0,r.openBlock)(),(0,r.createElementBlock)("div",o,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n.errors,(e,t)=>((0,r.openBlock)(),(0,r.createBlock)(F,{key:t,color:"error","data-testid":`error-banner${t}`,label:B.stringify(B.mappedErrors[e].message),icon:B.mappedErrors[e].icon,closable:!0,onClose:e=>B.closeError(t)},null,8,["data-testid","label","icon","onClose"]))),128))])):(0,r.createCommentVNode)("",!0),B.showSubtypeSelection?((0,r.openBlock)(),(0,r.createElementBlock)("div",s,[(0,r.renderSlot)(e.$slots,"subtypes",{subtypes:n.subtypes},()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n.subtypes,(i,a)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:a,class:(0,r.normalizeClass)(["subtype-banner",{selected:i.id===B._selectedSubtype}]),"data-testid":`subtype-banner-item-${i.id}`,tabindex:"0","aria-disabled":!1,"aria-label":i.description?`${i.label} - ${i.description}`:i.label,role:"link",onClick:e=>B.selectType(i.id,e),onKeyup:(0,r.withKeys)(e=>B.selectType(i.id,e),["enter","space"])},[(0,r.renderSlot)(e.$slots,"subtype-content",{},()=>[(0,r.createElementVNode)("div",c,[(0,r.createElementVNode)("div",u,[i.bannerImage?((0,r.openBlock)(),(0,r.createElementBlock)("img",{key:0,src:i.bannerImage,alt:(n.resource.type?n.resource.type+": ":"")+(i.label||"")},null,8,d)):((0,r.openBlock)(),(0,r.createElementBlock)("div",h,[i.bannerAbbrv?((0,r.openBlock)(),(0,r.createElementBlock)("div",p,[e.$store.getters["i18n/exists"](i.bannerAbbrv)?((0,r.openBlock)(),(0,r.createElementBlock)("span",f,(0,r.toDisplayString)(e.t(i.bannerAbbrv)),1)):((0,r.openBlock)(),(0,r.createElementBlock)("span",{key:1,style:(0,r.normalizeStyle)({fontSize:M.abbrSizes[i.bannerAbbrv.length]})},(0,r.toDisplayString)(i.bannerAbbrv),5))])):((0,r.openBlock)(),(0,r.createElementBlock)("div",m,(0,r.toDisplayString)(i.id.slice(0,1).toUpperCase()),1))]))]),(0,r.createElementVNode)("div",g,[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["title",{"with-description":!!i.description}])},[(0,r.createElementVNode)("h5",null,[e.$store.getters["i18n/exists"](i.label)?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("span",v,null,512)),[[G,e.t(i.label)]]):((0,r.openBlock)(),(0,r.createElementBlock)("span",b,(0,r.toDisplayString)(i.label),1))]),i.docLink?((0,r.openBlock)(),(0,r.createElementBlock)("a",{key:0,href:i.docLink,target:"_blank",rel:"noopener nofollow",class:"flex-right"},[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("generic.moreInfo"))+" ",1),t[8]||(t[8]=(0,r.createElementVNode)("i",{class:"icon icon-external-link"},null,-1))],8,y)):(0,r.createCommentVNode)("",!0)],2),i.description?((0,r.openBlock)(),(0,r.createElementBlock)("hr",_)):(0,r.createCommentVNode)("",!0),i.description?((0,r.openBlock)(),(0,r.createElementBlock)("div",w,[e.$store.getters["i18n/exists"](i.description)?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("span",E,null,512)),[[G,e.t(i.description,{},!0)]]):((0,r.openBlock)(),(0,r.createElementBlock)("span",S,(0,r.toDisplayString)(i.description),1))])):(0,r.createCommentVNode)("",!0)])])],!0)],42,l))),128))],!0)])):(0,r.createCommentVNode)("",!0),M.showAsForm&&n.steps.length?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:2},[B._selectedSubtype||!n.subtypes.length?((0,r.openBlock)(),(0,r.createElementBlock)("div",k,[n.resource?((0,r.openBlock)(),(0,r.createBlock)(V,{key:0,ref:"Wizard","header-mode":n.mode,steps:n.steps,"edit-first-step":n.stepsOptions.editFirstStep,errors:n.errors,"finish-mode":n.finishMode,class:"wizard",onError:t[2]||(t[2]=e=>n.errors=e)},{stepContainer:(0,r.withCtx)(({activeStep:t})=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n.steps,(n,i)=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:i},[n.name===t.name||n.hidden?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:n.name,class:(0,r.normalizeClass)(["step-container__step",{hide:n.name!==t.name&&n.hidden}])},[(0,r.renderSlot)(e.$slots,n.name,{step:n},void 0,!0)],2)):(0,r.createCommentVNode)("",!0)],64))),128))]),controlsContainer:(0,r.withCtx)(({showPrevious:i,next:a,back:o,activeStep:s,canNext:l,activeStepIndex:c,visibleSteps:u})=>[(0,r.createVNode)(j,{class:"cru__footer",mode:n.mode,"is-form":M.showAsForm,"show-cancel":n.showCancel,onCancelConfirmed:B.confirmCancel},(0,r.createSlots)({default:(0,r.withCtx)(()=>[(0,r.createElementVNode)("div",x,[B.showYaml?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:0,type:"button",class:"btn role-secondary",onClick:t[0]||(t[0]=(...e)=>B.showPreviewYaml&&B.showPreviewYaml(...e))},[(0,r.createVNode)($,{k:"cruResource.previewYaml"})])):(0,r.createCommentVNode)("",!0),i?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:1,type:"button",class:"btn role-secondary",onClick:e=>o()},[(0,r.createVNode)($,{k:"wizard.previous"})],8,A)):(0,r.createCommentVNode)("",!0),c===u.length-1?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:2},[B.showSubtypeSelection||B.isView?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createBlock)(U,{key:0,ref:"save",disabled:!s.ready,mode:n.finishButtonMode||n.mode,onClick:t[1]||(t[1]=t=>e.$emit("finish",t))},null,8,["disabled","mode"]))],64)):((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:3,disabled:!l,type:"button",class:"btn role-primary",onClick:e=>a()},[(0,r.createVNode)($,{k:"wizard.next"})],8,C))])]),_:2},[(0,r.renderList)(e.$slots,(t,n)=>({name:n,fn:(0,r.withCtx)(t=>[B.shouldProvideSlot(n)?(0,r.renderSlot)(e.$slots,n,(0,r.normalizeProps)((0,r.mergeProps)({key:0},t)),void 0,!0):(0,r.createCommentVNode)("",!0)])}))]),1032,["mode","is-form","show-cancel","onCancelConfirmed"])]),_:3},8,["header-mode","steps","edit-first-step","errors","finish-mode"])):(0,r.createCommentVNode)("",!0)])):(0,r.createCommentVNode)("",!0)],64)):M.showAsForm?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:3},[B._selectedSubtype||!n.subtypes.length?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:"resource-container cru__content",style:(0,r.normalizeStyle)([n.minHeight?{"min-height":n.minHeight}:{}])},[(0,r.renderSlot)(e.$slots,"single",{},()=>[(0,r.renderSlot)(e.$slots,"default",{},void 0,!0)],!0)],4)):(0,r.createCommentVNode)("",!0),(0,r.renderSlot)(e.$slots,"form-footer",{},()=>[B.isView?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createBlock)(j,{key:0,class:"cru__footer",mode:n.mode,"is-form":M.showAsForm,"show-cancel":n.showCancel,"component-testid":n.componentTestid,onCancelConfirmed:B.confirmCancel},(0,r.createSlots)({_:2},[(0,r.renderList)(e.$slots,(t,n)=>({name:n,fn:(0,r.withCtx)(t=>[B.shouldProvideSlot(n)?(0,r.renderSlot)(e.$slots,n,(0,r.normalizeProps)((0,r.mergeProps)({key:0},t)),void 0,!0):(0,r.createCommentVNode)("",!0)])})),B.isView?void 0:{name:"default",fn:(0,r.withCtx)(()=>[(0,r.createElementVNode)("div",null,[B.showYaml?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:0,"data-testid":n.componentTestid+"-yaml",type:"button",class:"btn role-secondary",onClick:t[3]||(t[3]=(...e)=>B.showPreviewYaml&&B.showPreviewYaml(...e))},[(0,r.createVNode)($,{k:"cruResource.previewYaml"})],8,T)):(0,r.createCommentVNode)("",!0),B.showSubtypeSelection?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createBlock)(U,{key:1,ref:"save",disabled:!B.canSave,mode:n.finishButtonMode||n.mode,"data-testid":n.componentTestid+"-save",onClick:t[4]||(t[4]=e=>B.clickSave(e))},null,8,["disabled","mode","data-testid"]))])]),key:"0"}]),1032,["mode","is-form","show-cancel","component-testid","onCancelConfirmed"]))],!0)],64)):B.showYaml&&!M.showAsForm?((0,r.openBlock)(),(0,r.createElementBlock)("section",N,[(0,r.createVNode)(K,{ref:"resourceyaml",value:n.resource,mode:n.mode,"initial-yaml-for-diff":M.initialYaml,yaml:M.resourceYaml,"offer-preview":B.isEdit,"done-route":n.doneRoute,"done-override":n.resource.doneOverride,"show-errors":!1,"apply-hooks":n.applyHooks,class:"resource-container cru__content",onError:t[5]||(t[5]=t=>e.$emit("error",t))},{yamlFooter:(0,r.withCtx)(({yamlSave:t,showPreview:i,yamlPreview:a,yamlUnpreview:o,canDiff:s})=>[(0,r.renderSlot)(e.$slots,"cru-yaml-footer",{},()=>[(0,r.createVNode)(j,{class:"cru__footer","done-route":n.doneRoute,mode:n.mode,"is-form":M.showAsForm,onCancelConfirmed:B.confirmCancel},{default:(0,r.withCtx)(({checkCancel:l})=>[(0,r.createElementVNode)("div",R,[i?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:0,type:"button",class:"btn role-secondary","data-testid":n.componentTestid+"-yaml-yaml",onClick:o},[(0,r.createVNode)($,{k:"resourceYaml.buttons.continue"})],8,O)):(0,r.createCommentVNode)("",!0),!i&&B.isEdit?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:1,"data-testid":n.componentTestid+"-yaml-yaml-preview",disabled:!s,type:"button",class:"btn role-secondary",onClick:a},[(0,r.createVNode)($,{k:"resourceYaml.buttons.diff"})],8,I)):(0,r.createCommentVNode)("",!0)]),B._selectedSubtype||!n.subtypes.length?((0,r.openBlock)(),(0,r.createElementBlock)("div",L,[(0,r.createElementVNode)("button",{"data-testid":n.componentTestid+"-yaml-cancel",type:"button",class:"btn role-secondary",onClick:e=>l(!1)},[(0,r.createVNode)($,{k:"cruResource.backToForm"})],8,D),B.showSubtypeSelection?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createBlock)(U,{key:0,"data-testid":n.componentTestid+"-yaml-save",disabled:!B.canSave,"action-label":B.isEdit?e.t("generic.save"):e.t("generic.create"),onClick:e=>t(e)},null,8,["data-testid","disabled","action-label","onClick"]))])):(0,r.createCommentVNode)("",!0)]),_:2},1032,["done-route","mode","is-form","onCancelConfirmed"])],!0)]),_:3},8,["value","mode","initial-yaml-for-diff","yaml","offer-preview","done-route","done-override","apply-hooks"])])):(0,r.createCommentVNode)("",!0)]),_:3},40,["value"]))])}var M=n(3514),B=n.n(M),F=n(37648),$=n(76978),U=n(35664),j=n(40103),V=n(9980),K=n(67607),G=n(65359),H=n(99726);const z={class:"cru-resource-footer"},q=["data-testid"];function X(e,t,n,i,a,o){const s=(0,r.resolveComponent)("t"),l=(0,r.resolveComponent)("AsyncButton"),c=(0,r.resolveComponent)("ResourceCancelModal");return(0,r.openBlock)(),(0,r.createElementBlock)("div",z,[(0,r.renderSlot)(e.$slots,"footer-prefix"),(0,r.renderSlot)(e.$slots,"cancel",{},()=>[!o.isView&&n.showCancel?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:0,id:"cru-cancel","data-testid":n.componentTestid+"-cancel",type:"button",class:"btn role-secondary",onClick:t[0]||(t[0]=t=>n.confirmCancelRequired?o.checkCancel(!0):e.$emit("cancel-confirmed",!0))},[(0,r.createVNode)(s,{k:"generic.cancel"})],8,q)):(0,r.createCommentVNode)("",!0)]),(0,r.renderSlot)(e.$slots,"default",{checkCancel:o.checkCancel},()=>[o.isView?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createBlock)(l,{key:0,"data-testid":n.componentTestid+"-create",mode:n.finishButtonMode||n.mode,onClick:t[1]||(t[1]=t=>e.$emit("finish",t))},null,8,["data-testid","mode"]))]),(0,r.createVNode)(c,{ref:"cancelModal","is-cancel-modal":a.isCancelModal,"is-form":n.isForm,onConfirmCancel:t[2]||(t[2]=e=>o.confirmCancel(e))},null,8,["is-cancel-modal","is-form"])])}const W={class:"header"},Y={class:"text-default-text"},Q={key:1},J={class:"body"},Z={key:0},ee={key:1},te={class:"footer"},ne={key:0},re={key:1};function ie(e,t,n,i,a,o){const s=(0,r.resolveComponent)("t"),l=(0,r.resolveComponent)("app-modal");return a.showModal?((0,r.openBlock)(),(0,r.createBlock)(l,{key:0,customClass:"confirm-modal",name:"cancel-modal",width:440,height:"auto","trigger-focus-trap":!0,onClose:o.cancelCancel},{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)("div",W,[(0,r.createElementVNode)("h4",Y,[n.isCancelModal?((0,r.openBlock)(),(0,r.createBlock)(s,{key:0,k:"generic.cancel"})):((0,r.openBlock)(),(0,r.createElementBlock)("span",Q,(0,r.toDisplayString)(e.t("cruResource.backToForm")),1))])]),(0,r.createElementVNode)("div",J,[n.isCancelModal?((0,r.openBlock)(),(0,r.createElementBlock)("p",Z,[(0,r.createVNode)(s,{k:"cruResource.cancelBody"})])):((0,r.openBlock)(),(0,r.createElementBlock)("p",ee,[(0,r.createVNode)(s,{k:"cruResource.backBody"})]))]),(0,r.createElementVNode)("div",te,[(0,r.createElementVNode)("button",{type:"button",class:"btn role-secondary",onClick:t[0]||(t[0]=(...e)=>o.cancelCancel&&o.cancelCancel(...e))},(0,r.toDisplayString)(n.isForm?e.t("cruResource.reviewForm"):e.t("cruResource.reviewYaml")),1),(0,r.createElementVNode)("button",{type:"button",class:"btn role-primary",onClick:t[1]||(t[1]=(...e)=>o.confirmCancel&&o.confirmCancel(...e))},[n.isCancelModal?((0,r.openBlock)(),(0,r.createElementBlock)("span",ne,(0,r.toDisplayString)(e.t("cruResource.confirmCancel")),1)):((0,r.openBlock)(),(0,r.createElementBlock)("span",re,(0,r.toDisplayString)(e.t("cruResource.confirmBack")),1))])])]),_:1},8,["onClose"])):(0,r.createCommentVNode)("",!0)}var ae=n(3679),oe={emits:["cancel-cancel","confirm-cancel"],components:{AppModal:ae.h},props:{isCancelModal:{type:Boolean,default:!1},isForm:{type:Boolean,default:!1}},data(){return{showModal:!1}},watch:{},methods:{show(){this.showModal=!0},cancelCancel(){this.showModal=!1,this.$emit("cancel-cancel")},confirmCancel(){this.showModal=!1,this.$emit("confirm-cancel",this.isCancelModal)}}},se=(n(95301),n(47433));const le=(0,se.A)(oe,[["render",ie],["__scopeId","data-v-715d956d"]]);var ce=le,ue=n(14220),de={emits:["cancel-confirmed","finish"],components:{AsyncButton:K.A,ResourceCancelModal:ce},props:{mode:{type:String,default:"create"},isForm:{type:Boolean,default:!0},finishButtonMode:{type:String,default:null},confirmCancelRequired:{type:Boolean,default:!1},confirmBackRequired:{type:Boolean,default:!0},showCancel:{type:Boolean,default:!0},componentTestid:{type:String,default:"form-footer"}},data(){return{isCancelModal:!1}},computed:{...(0,G.L8)({t:"i18n/t"}),isView(){return this.mode===ue.nW}},methods:{checkCancel(e){this.isCancelModal=!!e,this.$refs.cancelModal.show()},confirmCancel(e){this.$emit("cancel-confirmed",e)}}};n(21255);const he=(0,se.A)(de,[["render",X]]);var pe=he,fe=n(3889),me=n(8135);const ge={ref:"wizard",class:"outer-container"},ve={class:"header"},be={class:"title"},ye={key:0,class:"top choice-banner"},_e={class:"title"},we={key:0,class:"round-image"},Ee={class:"subtitle"},Se={key:0},ke={key:1,class:"subtext"},xe={key:1,class:"subtitle"},Ae={key:0,class:"subtext"},Ce={class:"step-sequence"},Te=["id"],Ne=["aria-controls","aria-selected","onClick"],Re=["id"],Oe={id:"wizard-footer-controls",class:"controls-row"},Ie={class:"controls-steps"},Le=["disabled"],De=["disabled"];function Pe(e,t,n,i,a,o){const s=(0,r.resolveComponent)("Loading"),l=(0,r.resolveComponent)("LazyImage"),c=(0,r.resolveComponent)("Banner"),u=(0,r.resolveComponent)("t"),d=(0,r.resolveComponent)("AsyncButton");return(0,r.openBlock)(),(0,r.createElementBlock)("div",ge,[o.stepsLoaded?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createBlock)(s,{key:0,mode:"relative"})),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["outer-container",{hide:!o.stepsLoaded}])},[(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("div",ve,[(0,r.createElementVNode)("div",be,[n.showBanner?((0,r.openBlock)(),(0,r.createElementBlock)("div",ye,[n.bannerImage||n.bannerTitle?(0,r.renderSlot)(e.$slots,"bannerTitle",{key:0},()=>[(0,r.withDirectives)((0,r.createElementVNode)("div",_e,[(0,r.renderSlot)(e.$slots,"bannerTitleImage",{},()=>[n.bannerImage?((0,r.openBlock)(),(0,r.createElementBlock)("div",we,[(0,r.createVNode)(l,{src:n.bannerImage,class:"logo"},null,8,["src"])])):(0,r.createCommentVNode)("",!0)],!0),(0,r.createElementVNode)("div",Ee,[n.bannerTitle?((0,r.openBlock)(),(0,r.createElementBlock)("h2",Se,(0,r.toDisplayString)(n.bannerTitle),1)):(0,r.createCommentVNode)("",!0),n.bannerTitleSubtext?((0,r.openBlock)(),(0,r.createElementBlock)("span",ke,(0,r.toDisplayString)(n.bannerTitleSubtext),1)):(0,r.createCommentVNode)("",!0)])],512),[[r.vShow,n.initialTitle||o.activeStepIndex>0]])],!0):(0,r.createCommentVNode)("",!0),a.activeStep&&o.showSteps?((0,r.openBlock)(),(0,r.createElementBlock)("div",xe,[(0,r.createElementVNode)("h2",null,(0,r.toDisplayString)(n.headerMode?e.t(`wizard.${n.headerMode}`):e.t(`asyncButton.${n.finishMode}.action`))+": "+(0,r.toDisplayString)(e.t("wizard.step",{number:o.activeStepIndex+1})),1),(0,r.renderSlot)(e.$slots,"bannerSubtext",{},()=>[null!==a.activeStep.subtext?((0,r.openBlock)(),(0,r.createElementBlock)("span",Ae,(0,r.toDisplayString)(a.activeStep.subtext||a.activeStep.label),1)):(0,r.createCommentVNode)("",!0)],!0)])):(0,r.createCommentVNode)("",!0)])):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",Ce,[o.showSteps?((0,r.openBlock)(),(0,r.createElementBlock)("ul",{key:0,class:"steps",tabindex:"0",onKeyup:[t[0]||(t[0]=(0,r.withKeys)((0,r.withModifiers)(t=>e.selectNext(1),["stop"]),["right"])),t[1]||(t[1]=(0,r.withKeys)((0,r.withModifiers)(t=>e.selectNext(-1),["stop"]),["left"]))]},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(o.visibleSteps,(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:t},[(0,r.createElementVNode)("li",{id:e.name,class:(0,r.normalizeClass)({step:!0,active:e.name===a.activeStep.name,disabled:!o.isAvailable(e)}),role:"presentation"},[(0,r.createElementVNode)("span",{"aria-controls":"step-container-"+e.name,"aria-selected":e.name===a.activeStep.name,role:"tab",class:"controls",onClick:(0,r.withModifiers)(e=>o.goToStep(t+1,!0),["prevent"])},[(0,r.createElementVNode)("span",{class:(0,r.normalizeClass)(["icon icon-lg",{"icon-dot":e.name===a.activeStep.name,"icon-dot-open":e.name!==a.activeStep.name}])},null,2),(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(e.label),1)],8,Ne)],10,Te),t!==o.visibleSteps.length-1?((0,r.openBlock)(),(0,r.createElementBlock)("li",{key:e.name,class:"divider"})):(0,r.createCommentVNode)("",!0)],64))),128))],32)):(0,r.createCommentVNode)("",!0)])])]),(0,r.renderSlot)(e.$slots,"stepContainer",{class:"step-container",activeStep:a.activeStep},()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n.steps,(t,n)=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:n},[t.name===a.activeStep.name||t.hidden?((0,r.openBlock)(),(0,r.createElementBlock)("div",{id:"step-container-"+t.name,key:t.name,role:"tabpanel",class:(0,r.normalizeClass)(["step-container__step",{hide:t.name!==a.activeStep.name&&t.hidden}])},[(0,r.renderSlot)(e.$slots,t.name,{step:t},void 0,!0)],10,Re)):(0,r.createCommentVNode)("",!0)],64))),128))],!0)]),(0,r.renderSlot)(e.$slots,"controlsContainer",{showPrevious:o.showPrevious,next:o.next,back:o.back,canNext:o.canNext,activeStepIndex:o.activeStepIndex,visibleSteps:o.visibleSteps,errorStrings:o.errorStrings,finish:o.finish,cancel:o.cancel,activeStep:a.activeStep},()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(o.errorStrings,(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:t},[(0,r.createVNode)(c,{color:"error",label:e,closable:!0,class:"footer-error",onClose:e=>n.errors.splice(t,1)},null,8,["label","onClose"])]))),128)),(0,r.createElementVNode)("div",Oe,[(0,r.renderSlot)(e.$slots,"cancel",{cancel:o.cancel},()=>[(0,r.createElementVNode)("button",{type:"button",class:"btn role-secondary",onClick:t[2]||(t[2]=(...e)=>o.cancel&&o.cancel(...e))},[(0,r.createVNode)(u,{k:"generic.cancel"})])],!0),(0,r.createElementVNode)("div",Ie,[o.showPrevious?(0,r.renderSlot)(e.$slots,"back",{key:0,back:o.back},()=>[(0,r.createElementVNode)("button",{disabled:!o.canPrevious||!n.editFirstStep&&1===o.activeStepIndex,type:"button",class:"btn role-secondary",onClick:t[3]||(t[3]=e=>o.back())},[(0,r.createVNode)(u,{k:"wizard.previous"})],8,Le)],!0):(0,r.createCommentVNode)("",!0),o.activeStepIndex===o.visibleSteps.length-1?(0,r.renderSlot)(e.$slots,"finish",{key:1,finish:o.finish},()=>[o.isView?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createBlock)(d,{key:0,disabled:!a.activeStep.ready,mode:n.finishMode,onClick:o.finish},null,8,["disabled","mode","onClick"]))],!0):(0,r.renderSlot)(e.$slots,"next",{key:2,next:o.next},()=>[(0,r.createElementVNode)("button",{disabled:!o.canNext,type:"button",class:(0,r.normalizeClass)(o.nextButtonStyle),onClick:t[4]||(t[4]=e=>o.next())},[(0,r.createVNode)(u,{k:o.nextButtonLabel},null,8,["k"])],10,De)],!0)])])],!0)],2)],512)}var Me=n(87619),Be=n(39453),Fe={name:"Wizard",emits:["next","cancel","finish"],components:{AsyncButton:K.A,Banner:V.l,Loading:Me.A,LazyImage:Be.A},props:{steps:{type:Array,required:!0},mode:{type:String,default:ue.YQ},initStepIndex:{type:Number,default:0},editFirstStep:{type:Boolean,default:!1},showBanner:{type:Boolean,default:!0},initialTitle:{type:Boolean,default:!0},bannerTitle:{type:String,default:null},bannerImage:{type:String,default:null},bannerTitleSubtext:{type:String,default:null},headerMode:{type:String,default:null},finishMode:{type:String,default:"finish"},errors:{type:Array,default:null}},data(){return{activeStep:null}},computed:{isView(){return this.mode===ue.nW},errorStrings(){return(this.errors||[]).map(e=>(0,H.As)(e))},activeStepIndex(){return this.visibleSteps.findIndex(e=>e.name===this.activeStep.name)},showPrevious(){if(0===this.activeStepIndex)return!1;for(let e=0;e<this.activeStepIndex;e++){const t=this.visibleSteps[e];if(!t)break;if(!t.hidden)return!0}return!1},canPrevious(){return!this.activeStep?.previousButton?.disable&&(this.activeStepIndex>1||this.editFirstStep)},canNext(){const e=this.visibleSteps[this.activeStepIndex];return this.activeStepIndex<this.visibleSteps.length-1&&e.ready},readySteps(){return this.visibleSteps.filter(e=>e.ready)},showSteps(){return!1!==this.activeStep.showSteps&&this.visibleSteps.length>1},stepsLoaded(){return!this.steps.some(e=>!0===e.loading)},visibleSteps(){return this.steps.filter(e=>!e.hidden)},nextButtonStyle(){return this.activeStep.nextButton?.style||"btn role-primary"},nextButtonLabel(){return this.activeStep.nextButton?.labelKey||"wizard.next"}},watch:{stepsLoaded(e,t){!t&&e&&(this.activeStep=this.visibleSteps[this.initStepIndex],this.goToStep(this.activeStepIndex+1))},errors(){this.$nextTick(()=>{this.$refs.wizard.scrollTop=this.$refs.wizard.scrollHeight})}},created(){this.activeStep=this.visibleSteps[this.initStepIndex],this.goToStep(this.activeStepIndex+1)},methods:{goToStep(e,t){if(e<1)return;if(!this.editFirstStep&&1===e&&t)return;const n=this.visibleSteps[e-1];n&&(this.isAvailable(n)||1===e)&&(this.activeStep=n,this.$emit("next",{step:n}))},cancel(){this.$emit("cancel")},finish(e){this.$emit("finish",e)},next(){this.goToStep(this.activeStepIndex+2)},back(){this.goToStep(this.activeStepIndex)},isAvailable(e){if(!e)return!1;const t=this.visibleSteps.findIndex(t=>t.name===e.name);if(0===t&&!this.editFirstStep)return!1;for(let n=0;n<t;n++)if(!1===this.visibleSteps[n].ready)return!1;return!0}}};n(45);const $e=(0,se.A)(Fe,[["render",Pe],["__scopeId","data-v-deb715a0"]]);var Ue=$e,je=n(4364);const Ve="show-preview-yaml";var Ke={name:"CruResource",emits:["select-type","error","cancel","finish"],components:{AsyncButton:K.A,Banner:V.l,CruResourceFooter:pe,ResourceYaml:j.A,Wizard:Ue},props:{doneRoute:{type:[String,Object],default:null},cancelEvent:{type:Boolean,default:!1},showCancel:{type:Boolean,default:!0},mode:{type:String,required:!0},resource:{type:[String,Object],required:!0},subtypes:{type:Array,default:()=>[]},selectedSubtype:{type:String,default:null},validationPassed:{type:Boolean,default:!0},errors:{type:Array,default:()=>[]},errorsMap:{type:Object,default:null},canYaml:{type:Boolean,default:!0},generateYaml:{type:Function,default:null},finishButtonMode:{type:String,default:null},preventEnterSubmit:{type:Boolean,default:!1},applyHooks:{type:Function,default:null},steps:{type:Array,default:()=>[]},stepsOptions:{type:Object,default:()=>({editFirstStep:!0})},finishMode:{type:String,default:"finish"},minHeight:{type:String,default:""},namespaceKey:{type:String,default:"metadata.namespace"},componentTestid:{type:String,default:"form"},description:{type:String,default:""},yamlModifiers:{type:Object,default:void 0}},data(e){const t=this.$store.getters["currentStore"](this.resource),n=this.$store.getters[`${t}/schemaFor`](this.resource.type);return this.mode===ue.YQ?(0,fe.wQ)():this.mode===ue.G5&&(0,fe.eD)(),{isCancelModal:!1,showAsForm:this.$route.query[ue.AS]!==ue.zD,resourceYaml:null,initialYaml:null,initialResource:(0,$.o8)(this.resource),abbrSizes:{3:"24px",4:"18px",5:"16px",6:"14px"},schema:n}},computed:{canSave(){const{validationPassed:e,showAsForm:t,steps:n}=this;return t&&n?.length?e&&this.steps.every(e=>e.ready):!this.showAsForm||this.validationPassed},canEditYaml(){return!this.schema?.resourceMethods?.includes("blocked-PUT")},showYaml(){return this.canYaml&&(this._selectedSubtype||!this.subtypes.length)&&this.canEditYaml&&this.mode!==ue.nW},isView(){return this.mode===ue.nW},isEdit(){return this.mode===ue.G5},_selectedSubtype(){return this.selectedSubtype?this.selectedSubtype:this.$route.query[ue.UA]},showSubtypeSelection(){return!B()(this.subtypes)&&!this._selectedSubtype},...(0,G.L8)({t:"i18n/t"}),...(0,G.aH)("cru-resource",["createNamespace"]),...(0,G.i0)("cru-resource",["setCreateNamespace"]),hasErrors(){return this.errors?.length&&Array.isArray(this.errors)},mappedErrors(){return this.errors?this.errorsMap||this.errors.reduce((e,t)=>({...e,[t]:{message:this.formatError(t),icon:null}}),{}):{}}},created(){this._selectedSubtype&&this.$emit("select-type",this._selectedSubtype)},mounted(){this.$store.dispatch("cru-resource/setCreateNamespace",!1)},beforeUnmount(){this.$store.dispatch("cru-resource/setCreateNamespace",!1)},methods:{stringify:H.As,confirmCancel(e=!0){e?this.emitOrRoute():this.showAsForm||(this.resourceYaml=null,this.showAsForm=!0,this.$router.applyQuery({[ue.AS]:ue.xz}))},closeError(e){const t=this.errors.filter((t,n)=>n!==e);this.$emit("error",t,this.errors[e])},emitOrRoute(){if(this.cancelEvent)this.$emit("cancel");else{const{resource:e=this.resource.type}=this.$route.params,t=this.resource.doneOverride,n={name:this.doneRoute,params:{resource:e}};this.$router.replace(t||n)}},async createResourceYaml(e,t=this.resource){if(await(this.schema?.fetchResourceFields()),"function"===typeof this.generateYaml)return this.generateYaml.apply(this,t);{const n=this.$store.getters["currentStore"](t),r=this.$store.getters[`${n}/all`](U.yx),i=(0,$.o8)(t),a=(0,F.Yd)(r,t.type,i,e);return a}},async showPreviewYaml(){if(await(this.schema?.fetchResourceFields()),this.applyHooks)try{await this.applyHooks(me.Fm,Ve)}catch(t){return void je.warn("Unable to show yaml: ",t)}const e=await this.createResourceYaml(this.yamlModifiers);this.resourceYaml=e,this.showAsForm=!1,this.$router.applyQuery({[ue.AS]:ue.zD})},selectType(e,t){"A"!==t?.srcElement?.tagName&&(this.$router.applyQuery({[ue.UA]:e}),this.$emit("select-type",e))},async clickSave(e){if(this.createNamespace)try{await this.createNamespaceIfNeeded()}catch(t){return this.$emit("error",(0,H.rz)(t.message)),void e(!1)}this.$emit("finish",e)},save(){this.$refs.save.clicked()},async createNamespaceIfNeeded(){const e=this.$store.getters["currentStore"](this.resource),t=(0,$.Jt)(this.resource,this.namespaceKey);let n=!1;try{n=!!await this.$store.dispatch(`${e}/find`,{type:U.CU,id:t})}catch{}if(!n)try{const n=await this.$store.dispatch(`${e}/createNamespace`,{name:t},{root:!0});n.applyDefaults(),await n.save()}catch(r){throw this.$emit("error",(0,H.rz)(r)),new Error(`Could not create the new namespace. ${r.message}`)}},onPressEnter(e){this.preventEnterSubmit&&e.preventDefault()},shouldProvideSlot(e){return"default"!==e&&"function"===typeof this.$slots[e]},formatError(e){if("string"===typeof e)return e;if("ActionNotAvailable"===e?.code)return this.t("errors.actionNotAvailable");const t=e?.message?e.message:"";let n="";if(e?.message&&e.detail)n=this.t("errors.messageAndDetail",{message:e.message,detail:e.detail});else if(e?.message||e.detail){const t=e.message?e.message:e.detail;n=this.t("errors.messageOrDetail",{val:t})}if(422===e?.status){const t=e?.fieldName,r=e?.code;let i="";switch(e?.code){case"MissingRequired":i=this.t("errors.missingRequired");break;case"NotUnique":i=this.t("errors.notUnique");break;case"NotNullable":i=this.t("errors.notNullable");break;case"InvalidOption":i=this.t("errors.invalidOption");break;case"InvalidCharacters":i=this.t("errors.invalidCharacters");break;case"MinLengthExceeded":i=this.t("errors.minLengthExceeded");break;case"MaxLengthExceeded":i=this.t("errors.maxLengthExceeded");break;case"MinLimitExceeded":i=this.t("errors.minLimitExceeded");break;case"MaxLimitExceded":i=this.t("errors.maxLimitExceded");break}return t?i?n?this.t("errors.failedInApi.withName.withCodeExplanation.withMessageDetail",{name:t,codeExplanation:i,messageDetail:n}):this.t("errors.failedInApi.withName.withCodeExplanation.withoutMessageDetail",{name:t,codeExplanation:i}):n?this.t("errors.failedInApi.withName.withMessageDetail",{name:t,messageDetail:n}):this.t("errors.failedInApi.withName.withoutAnythingElse",{name:t}):n?i?this.t("errors.failedInApi.withoutName.withMessageDetail.withCodeExplanation",{codeExplanation:i,messageDetail:n}):this.t("errors.failedInApi.withoutName.withMessageDetail.withoutCodeExplanation",{messageDetail:n}):r?i?this.t("errors.failedInApi.withoutName.withCode.withCodeExplanation",{code:r,codeExplanation:i}):this.t("errors.failedInApi.withoutName.withCode.withoutCodeExplanation",{code:r}):this.t("errors.failedInApi.withoutAnything")}return 404===e?.status?e?.opt?.url?this.t("errors.notFound.withUrl",{msg:t,url:e.opt.url}):this.t("errors.notFound.withoutUrl",{msg:t}):n.length>0?n:e}},watch:{async showAsForm(e){e||this.initialYaml||(this.initialYaml=await this.createResourceYaml(void 0,this.initialResource))}}};n(95781);const Ge=(0,se.A)(Ke,[["render",P],["__scopeId","data-v-05345bf3"]]);var He=Ge},15495:function(e,t,n){"use strict";n.d(t,{A:function(){return A}});var r=n(9274);const i={key:0},a={key:1},o={key:2,class:"text-italic"},s={key:3,class:"text-italic"},l={class:"action-group"},c=["aria-label"],u=["alt"];function d(e,t,n,d,h,p){const f=(0,r.resolveComponent)("CodeMirror"),m=(0,r.resolveComponent)("CopyToClipboard"),g=(0,r.resolveDirective)("t"),v=(0,r.resolveDirective)("clean-tooltip"),b=(0,r.resolveDirective)("clean-html");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)({"force-wrap":!0,"with-copy":n.copy})},[n.labelKey?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("h5",i,null,512)),[[g,n.labelKey],[v,{content:p.itemLabel,popperClass:"detail-text-tooltip"}]]):n.label?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("h5",a,[(0,r.createTextVNode)((0,r.toDisplayString)(n.label),1)])),[[v,{content:n.label,popperClass:"detail-text-tooltip"}]]):(0,r.createCommentVNode)("",!0),p.isEmpty?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("span",o,null,512)),[[g,"detailText.empty"]]):p.isBinary?((0,r.openBlock)(),(0,r.createElementBlock)("span",s,(0,r.toDisplayString)(p.body),1)):p.jsonStr?((0,r.openBlock)(),(0,r.createBlock)(f,{key:4,options:{mode:{name:"javascript",json:!0},lineNumbers:!1,foldGutter:!1,readOnly:!0},value:p.jsonStr,class:(0,r.normalizeClass)({conceal:p.concealed}),"aria-live":"polite"},null,8,["value","class"])):((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:5,class:(0,r.normalizeClass)({"conceal-wrapper":p.concealed})},[(0,r.withDirectives)((0,r.createElementVNode)("span",{"data-testid":"detail-top_html",class:(0,r.normalizeClass)({conceal:p.concealed,monospace:n.monospace&&!p.isBinary}),"aria-live":"polite"},null,2),[[b,p.bodyHtml]])],2)),p.isBinary||p.jsonStr||!p.isLong||h.expanded?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("a",{key:6,href:"#",class:"more-characters",onClick:t[0]||(t[0]=(0,r.withModifiers)((...e)=>p.expand&&p.expand(...e),["prevent"]))},(0,r.toDisplayString)(p.plusMore),1)),(0,r.createElementVNode)("div",l,[n.conceal&&n.concealStandAlone?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:0,class:"sensitive btn ready-for-action role-tertiary","aria-label":p.sensitiveAria,onClick:t[1]||(t[1]=e=>h.standAloneHide=!h.standAloneHide)},[(0,r.createElementVNode)("i",{class:(0,r.normalizeClass)(["icon icon-lg",p.sensitiveIcon]),alt:p.sensitiveAria},null,10,u)],8,c)):(0,r.createCommentVNode)("",!0),n.copy&&!p.isBinary?((0,r.openBlock)(),(0,r.createBlock)(m,{key:1,text:n.value,class:"role-tertiary","action-color":"","aria-label":e.t("detailText.copyAriaLabel",{item:p.itemLabel})},null,8,["text","aria-label"])):(0,r.createCommentVNode)("",!0)])],2)}var h=n(65359),p=n(92043),f=n(91462);function m(e,t,n,i,a,o){const s=(0,r.resolveComponent)("AsyncButton");return(0,r.openBlock)(),(0,r.createBlock)(s,(0,r.mergeProps)({icon:"icon-copy","show-label":n.showLabel,"action-label":"Copy","waiting-label":"Copying...","success-label":"Copied!","error-label":"Error Copying"},e.$attrs,{"success-color":e.$attrs["action-color"]||"role-primary","waiting-color":e.$attrs["action-color"]||"role-primary",delay:2e3,onClick:o.clicked}),null,16,["show-label","success-color","waiting-color","onClick"])}var g=n(67607),v=n(48881),b={components:{AsyncButton:g.A},props:{text:{type:String,required:!0},showLabel:{type:Boolean,default:!0}},methods:{clicked(e){(0,v.e)(this.text).then(()=>{e(!0)}).catch(()=>{e(!1)})}}},y=(n(96727),n(47433));const _=(0,y.A)(b,[["render",m],["__scopeId","data-v-2d7c8bd6"]]);var w=_,E=n(78119),S=n(4514),k={components:{CopyToClipboard:w,CodeMirror:E.A},props:{label:{type:String,default:null},labelKey:{type:String,default:null},value:{type:String,default:""},maxLength:{type:Number,default:640},binary:{type:Boolean,default:null},conceal:{type:Boolean,default:!1},concealStandAlone:{type:Boolean,default:!1},monospace:{type:Boolean,default:!0},copy:{type:Boolean,default:!0}},data(){const e=this.value.length<=this.maxLength;return{expanded:e,standAloneHide:!0}},computed:{itemLabel(){return this.labelKey?this.t(this.labelKey):this.label?this.label:this.t("labels.annotations.singular")},isBinary(){return null===this.binary?"string"===typeof this.value&&!(0,p.XC)(this.value):this.binary},size(){return`${this.value}`.length},isLong(){return this.size>this.maxLength},isEmpty(){return 0===this.size},body(){return this.isBinary?this.t("detailText.binary",{n:this.value.length?(0,S.dQ)(this.value):0},!0):this.expanded?this.value:this.value.slice(0,this.maxLength)},jsonStr(){const e=this.value;if(e&&(e.startsWith("{")||e.startsWith("[")))try{let t=JSON.parse(e);return t=JSON.stringify(t,null,2),t}catch{}return null},bodyHtml(){return(0,p.Kn)(this.body)},plusMore(){if(this.expanded)return this.t("detailText.collapse");const e=Math.max(this.size-this.maxLength,0);return this.t("detailText.plusMore",{n:e}).trim()},hideSensitiveData(){return this.concealStandAlone?this.standAloneHide:this.$store.getters["prefs/get"](f.qv)},concealed(){return this.conceal&&this.hideSensitiveData&&!this.isBinary},sensitiveIcon(){return this.standAloneHide?"icon-show":"icon-hide"},sensitiveAria(){return this.standAloneHide?this.t("detailText.sensitive.show"):this.t("detailText.sensitive.hide")},...(0,h.L8)({t:"i18n/t"})},methods:{expand(){this.expanded=!this.expanded}}};n(91745),n(39311);const x=(0,y.A)(k,[["render",d],["__scopeId","data-v-15db74b7"]]);var A=x},93457:function(e,t,n){"use strict";n.d(t,{A:function(){return U}});var r=n(9274),i=n(95457),a=n(65359),o=n(82923);const s={class:"chrome"},l={class:"header pp-4"},c={class:"title"},u={class:"actions"},d=["aria-label"],h={class:"body pp-4"},p={key:0,class:"footer pp-4"},f={class:"actions"};var m=(0,r.defineComponent)({__name:"Chrome",props:{ariaTarget:{},removeFooter:{type:Boolean}},emits:["close"],setup(e,{emit:t}){const n=e,m=t,g=(0,a.Pj)(),v=(0,i.s)(g),b=(0,r.computed)(()=>v.t("component.drawer.chrome.ariaLabel.close",{target:n.ariaTarget}));return(t,n)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",s,[(0,r.createElementVNode)("div",l,[(0,r.renderSlot)(t.$slots,"header",{},()=>[(0,r.createElementVNode)("div",c,[(0,r.renderSlot)(t.$slots,"title")]),(0,r.createElementVNode)("div",u,[(0,r.createElementVNode)("button",{class:"btn role-link","aria-label":b.value,onClick:n[0]||(n[0]=e=>m("close"))},[...n[2]||(n[2]=[(0,r.createElementVNode)("i",{class:"icon icon-close"},null,-1)])],8,d)])])]),(0,r.createElementVNode)("div",h,[(0,r.renderSlot)(t.$slots,"body")]),e.removeFooter?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",p,[(0,r.renderSlot)(t.$slots,"footer",{},()=>[(0,r.createElementVNode)("div",f,[(0,r.createVNode)(o.A,{variant:"secondary",size:"large","aria-label":b.value,onClick:n[1]||(n[1]=e=>m("close"))},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)((0,r.unref)(v).t("component.drawer.chrome.close")),1)]),_:1},8,["aria-label"]),(0,r.renderSlot)(t.$slots,"additional-actions")])])]))]))}}),g=(n(5947),n(47433));const v=(0,g.A)(m,[["__scopeId","data-v-72e8ee84"]]);var b=v,y=n(27234),_=n(14220),w=n(2675),E=n(40103),S=(0,r.defineComponent)({__name:"YamlTab",props:{resource:{},yaml:{}},setup(e){const t=e,n=(0,a.Pj)(),o=(0,i.s)(n),s=(0,r.useTemplateRef)("yaml");return(e,n)=>((0,r.openBlock)(),(0,r.createBlock)(w.A,{class:"yaml-tab",name:"yaml-tab",label:(0,r.unref)(o).t("component.drawer.resourceDetailDrawer.yamlTab.title"),onActive:n[0]||(n[0]=()=>{var e;return null===(e=s.value)||void 0===e?void 0:e.refresh()})},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(E.A,{ref:"yaml",value:t.resource,yaml:t.yaml,mode:(0,r.unref)(_.nW)},null,8,["value","yaml","mode"])]),_:1},8,["label"]))}});n(82148);const k=(0,g.A)(S,[["__scopeId","data-v-57e9a5ee"]]);var x=k,A=n(89366);const C={class:"drawer-card"};function T(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("div",C,[(0,r.renderSlot)(e.$slots,"default",{},void 0,!0)])}n(91532);const N={},R=(0,g.A)(N,[["render",T],["__scopeId","data-v-9f186538"]]);var O=R,I=(0,r.defineComponent)({__name:"ConfigTab",props:{resource:{},component:{},resourceType:{},defaultTab:{}},setup(e){const t=e,n=(0,a.Pj)(),o=(0,i.s)(n);return(e,n)=>((0,r.openBlock)(),(0,r.createBlock)(w.A,{class:"config-tab",name:"config-tab",label:(0,r.unref)(o).t("component.drawer.resourceDetailDrawer.configTab.title")},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(O,null,{default:(0,r.withCtx)(()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(t.component),{value:t.resource,liveValue:t.resource,resourceType:t.resourceType,mode:(0,r.unref)(_.nW),"real-mode":(0,r.unref)(_.nW),"initial-value":t.resource,"use-tabbed-hash":!1,"default-tab":t.defaultTab,as:"config"},null,8,["value","liveValue","resourceType","mode","real-mode","initial-value","default-tab"]))]),_:1})]),_:1},8,["label"]))}});n(97387);const L=(0,g.A)(I,[["__scopeId","data-v-7d0d0cce"]]);var D=L,P=n(35601);const M="save-configuration-bttn",B="configuration-drawer-tabbed";var F=(0,r.defineComponent)({__name:"index",props:{resource:{},defaultTab:{},onClose:{type:Function}},emits:["close"],setup(e,{emit:t}){const n=e,s=t,l=(0,a.Pj)(),c=(0,i.s)(l),u=(0,r.ref)(null),d=(0,A.Ep)(n.resource);(0,A.nx)(n.resource).then(e=>{u.value=e});const h=(0,r.computed)(()=>{const e=l.getters["type-map/labelFor"]({id:n.resource.type}),t=n.resource.nameDisplay;return c.t("component.drawer.resourceDetailDrawer.title",{resourceType:e,resourceName:t})}),p=(0,r.ref)(d?"config-tab":"yaml-tab"),f=(0,r.computed)(()=>"config-tab"===p.value),m=(0,r.computed)(()=>{const e=f.value?c.t("component.drawer.resourceDetailDrawer.ariaLabel.editConfig"):c.t("component.drawer.resourceDetailDrawer.ariaLabel.editYaml"),t=f.value?c.t("component.drawer.resourceDetailDrawer.ariaLabel.editConfig"):c.t("component.drawer.resourceDetailDrawer.ariaLabel.editYaml"),r=f.value?()=>n.resource.goToEdit():()=>n.resource.goToEditYaml();return{ariaLabel:e,label:t,action:r}}),g=(0,r.computed)(()=>f.value?n.resource.canEdit:n.resource.canEditYaml);return(0,A.te)(),(t,i)=>((0,r.openBlock)(),(0,r.createBlock)(b,{ariaTarget:h.value,onClose:i[1]||(i[1]=e=>s("close"))},{title:(0,r.withCtx)(()=>[(0,r.createVNode)(P.A,{color:e.resource.stateSimpleColor,class:"mmr-3"},null,8,["color"]),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(h.value),1)]),body:(0,r.withCtx)(()=>[(0,r.createVNode)(y.A,{useHash:!1,showExtensionTabs:!1,componentTestid:B,"remove-borders":!0,onChanged:i[0]||(i[0]=({selectedName:e})=>{p.value=e})},{default:(0,r.withCtx)(()=>[(0,r.unref)(d)?((0,r.openBlock)(),(0,r.createBlock)(D,(0,r.mergeProps)({key:0},(0,r.unref)(d),{"default-tab":n.defaultTab}),null,16,["default-tab"])):(0,r.createCommentVNode)("",!0),u.value?((0,r.openBlock)(),(0,r.createBlock)(x,(0,r.normalizeProps)((0,r.mergeProps)({key:1},u.value)),null,16)):(0,r.createCommentVNode)("",!0)]),_:1})]),"additional-actions":(0,r.withCtx)(()=>[g.value?((0,r.openBlock)(),(0,r.createBlock)(o.A,{key:0,variant:"primary",size:"large","aria-label":m.value.ariaLabel,"data-testid":M,onClick:m.value.action},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(m.value.label),1)]),_:1},8,["aria-label","onClick"])):(0,r.createCommentVNode)("",!0)]),_:1},8,["ariaTarget"]))}});const $=F;var U=$},10312:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});var r=n(9274);const i={key:0};function a(e,t,n,a,o,s){return o.extensionData.length?((0,r.openBlock)(),(0,r.createElementBlock)("div",i,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(o.extensionData,(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:`extensionData${n.location}${t}`},[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.component),{resource:n.resource},null,8,["resource"]))]))),128))])):(0,r.createCommentVNode)("",!0)}var o=n(25659),s={name:"ExtensionPanel",props:{resource:{type:Object,default:()=>({})},type:{type:String,default:""},location:{type:String,default:""}},data(){return{extensionData:(0,o.A)(this,this.type,this.location,this.$route)}}},l=n(47433);const c=(0,l.A)(s,[["render",a]]);var u=c},27542:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=n(9274);const i={class:"message"};function a(e,t,n,a,o,s){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(["message-icon",{vertical:n.vertical,subtle:n.subtle}])},[(0,r.createElementVNode)("i",{class:(0,r.normalizeClass)(["icon",{[n.icon]:!0,[n.iconState]:!!n.iconState}])},null,2),(0,r.createElementVNode)("div",i,[(0,r.renderSlot)(e.$slots,"message",{},()=>[n.messageKey?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[(0,r.createTextVNode)((0,r.toDisplayString)(e.t(n.messageKey)),1)],64)):((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createTextVNode)((0,r.toDisplayString)(n.message),1)],64))],!0)])],2)}var o={props:{vertical:{type:Boolean,default:!1},icon:{type:String,required:!0},iconState:{type:String,default:null},message:{type:String,default:null},messageKey:{type:String,default:null},subtle:{type:Boolean,default:!1}}},s=(n(47668),n(47433));const l=(0,s.A)(o,[["render",a],["__scopeId","data-v-01996ade"]]);var c=l},40275:function(e,t,n){"use strict";n.d(t,{A:function(){return y}});var r=n(9274);const i=["src","alt"],a={key:2,class:"icon icon-extension"};function o(e,t,n,o,s,l){return n.src?((0,r.openBlock)(),(0,r.createElementBlock)("img",{key:0,src:n.src,class:(0,r.normalizeClass)(["svg-icon",s.className]),alt:n.imgAlt},null,10,i)):n.icon?((0,r.openBlock)(),(0,r.createElementBlock)("i",{key:1,class:(0,r.normalizeClass)(["icon group-icon",n.icon])},null,2)):((0,r.openBlock)(),(0,r.createElementBlock)("i",a))}class s{constructor(e,t,n){this.set(e,t,n)}toString(){return`rgb(${Math.round(this.r)}, ${Math.round(this.g)}, ${Math.round(this.b)})`}set(e,t,n){this.r=this.clamp(e),this.g=this.clamp(t),this.b=this.clamp(n)}hueRotate(e=0){e=e/180*Math.PI;const t=Math.sin(e),n=Math.cos(e);this.multiply([.213+.787*n-.213*t,.715-.715*n-.715*t,.072-.072*n+.928*t,.213-.213*n+.143*t,.715+.285*n+.14*t,.072-.072*n-.283*t,.213-.213*n-.787*t,.715-.715*n+.715*t,.072+.928*n+.072*t])}grayscale(e=1){this.multiply([.2126+.7874*(1-e),.7152-.7152*(1-e),.0722-.0722*(1-e),.2126-.2126*(1-e),.7152+.2848*(1-e),.0722-.0722*(1-e),.2126-.2126*(1-e),.7152-.7152*(1-e),.0722+.9278*(1-e)])}sepia(e=1){this.multiply([.393+.607*(1-e),.769-.769*(1-e),.189-.189*(1-e),.349-.349*(1-e),.686+.314*(1-e),.168-.168*(1-e),.272-.272*(1-e),.534-.534*(1-e),.131+.869*(1-e)])}saturate(e=1){this.multiply([.213+.787*e,.715-.715*e,.072-.072*e,.213-.213*e,.715+.285*e,.072-.072*e,.213-.213*e,.715-.715*e,.072+.928*e])}multiply(e){const t=this.clamp(this.r*e[0]+this.g*e[1]+this.b*e[2]),n=this.clamp(this.r*e[3]+this.g*e[4]+this.b*e[5]),r=this.clamp(this.r*e[6]+this.g*e[7]+this.b*e[8]);this.r=t,this.g=n,this.b=r}brightness(e=1){this.linear(e)}contrast(e=1){this.linear(e,-.5*e+.5)}linear(e=1,t=0){this.r=this.clamp(this.r*e+255*t),this.g=this.clamp(this.g*e+255*t),this.b=this.clamp(this.b*e+255*t)}invert(e=1){this.r=this.clamp(255*(e+this.r/255*(1-2*e))),this.g=this.clamp(255*(e+this.g/255*(1-2*e))),this.b=this.clamp(255*(e+this.b/255*(1-2*e)))}hsl(){const e=this.r/255,t=this.g/255,n=this.b/255,r=Math.max(e,t,n),i=Math.min(e,t,n),a=(r+i)/2;let o=a,s=a;if(r===i)o=s=0;else{const l=r-i;switch(s=a>.5?l/(2-r-i):l/(r+i),r){case e:o=(t-n)/l+(t<n?6:0);break;case t:o=(n-e)/l+2;break;case n:o=(e-t)/l+4;break}o/=6}return{h:100*o,s:100*s,l:100*a}}clamp(e){return e>255?e=255:e<0&&(e=0),e}}class l{constructor(e){this.target=new s(e.r,e.g,e.b),this.targetHSL=this.target.hsl(),this.reusedColor=new s(0,0,0)}solve(){const e=this.solveNarrow(this.solveWide());return{values:e.values,loss:e.loss,filter:this.css(e.values),filterVal:this.css(e.values).replace("filter: ","").replace(";","")}}solveWide(){const e=5,t=15,n=[60,180,18e3,600,1.2,1.2];let r={loss:1/0};for(let i=0;r.loss>25&&i<3;i++){const i=[50,20,3750,50,100,100],a=this.spsa(e,n,t,i,1e3);a.loss<r.loss&&(r=a)}return r}solveNarrow(e){const t=e.loss,n=2,r=t+1,i=[.25*r,.25*r,r,.25*r,.2*r,.2*r];return this.spsa(t,i,n,e.values,500)}spsa(e,t,n,r,i){const a=1,o=.16666666666666666;let s=null,l=1/0;const c=new Array(6),u=new Array(6),d=new Array(6);for(let p=0;p<i;p++){const i=n/Math.pow(p+1,o);for(let e=0;e<6;e++)c[e]=Math.random()>.5?1:-1,u[e]=r[e]+i*c[e],d[e]=r[e]-i*c[e];const f=this.loss(u)-this.loss(d);for(let n=0;n<6;n++){const o=f/(2*i)*c[n],s=t[n]/Math.pow(e+p+1,a);r[n]=h(r[n]-s*o,n)}const m=this.loss(r);m<l&&(s=r.slice(0),l=m)}return{values:s,loss:l};function h(e,t){let n=100;return 2===t?n=7500:4!==t&&5!==t||(n=200),3===t?e>n?e%=n:e<0&&(e=n+e%n):e<0?e=0:e>n&&(e=n),e}}loss(e){const t=this.reusedColor;t.set(0,0,0),t.invert(e[0]/100),t.sepia(e[1]/100),t.saturate(e[2]/100),t.hueRotate(3.6*e[3]),t.brightness(e[4]/100),t.contrast(e[5]/100);const n=t.hsl();return Math.abs(t.r-this.target.r)+Math.abs(t.g-this.target.g)+Math.abs(t.b-this.target.b)+Math.abs(n.h-this.targetHSL.h)+Math.abs(n.s-this.targetHSL.s)+Math.abs(n.l-this.targetHSL.l)}css(e){function t(t,n=1){return Math.round(e[t]*n)}return`filter: invert(${t(0)}%) sepia(${t(1)}%) saturate(${t(2)}%) hue-rotate(${t(3,3.6)}deg) brightness(${t(4)}%) contrast(${t(5)}%);`}}var c=n(39705),u=n(65359);const d={},h={header:{color:"--on-tertiary-header",hover:"--on-tertiary-header-hover",colorFallback:"--header-btn-text",hoverFallback:"--header-btn-text-hover",active:"--on-tertiary-header-hover",activeFallback:"--header-btn-text-hover"},primary:{color:"--on-tertiary",hover:"--tertiary-hover-app-bar",colorFallback:"--on-tertiary",hoverFallback:"--primary-hover-text",active:"--on-active",activeFallback:"--primary-hover-text"}},p={name:"IconOrSvg",props:{src:{type:String,default:()=>{}},icon:{type:String,default:()=>{}},imgAlt:{type:String,default:()=>{}},color:{type:String,default:()=>"primary"}},data(){return{className:"",mainFilter:null,hoverFilter:null,activeFilter:null}},created(){this.src&&this.setColor()},computed:{...(0,u.L8)({brand:"management/brand",theme:"prefs/theme"})},watch:{brand:"recomputeColor",theme:"recomputeColor"},methods:{getComputedStyleFor(e,t){const n=window.getComputedStyle(document.body).getPropertyValue(e).trim();return(0,c.Tv)((0,c.yq)(n??t))},resolveColorFilter(e,t){if(d[e])return d[e];const n=new l(t),r=n.solve(),i=r?.filterVal;return d[e]=i,i},setColor(){const e=h[this.color],t=this.getComputedStyleFor(e.color,e.colorFallback),n=this.getComputedStyleFor(e.hover,e.hoverFallback),r=this.getComputedStyleFor(e.active,e.activeFallback);if(!t||!n||!r)return;const i=(0,c.qe)(t),a=(0,c.qe)(n),o=(0,c.qe)(r),s=`${i.r}-${i.g}-${i.b}`,l=`${a.r}-${a.g}-${a.b}`,u=`svg-icon-${s}-${l}`;this.hoverFilter=this.resolveColorFilter(n,a),this.mainFilter=this.resolveColorFilter(t,i),this.activeFilter=this.resolveColorFilter(r,o),this["className"]=u},recomputeColor(){this.src&&(this.mainFilter=null,this.hoverFilter=null,this.activeFilter=null,this.setColor())}}},f=()=>{(0,r.useCssVars)(e=>({v63011bc5:e.mainFilter,v2ce8fd20:e.hoverFilter,v73a02a52:e.activeFilter}))},m=p.setup;p.setup=m?(e,t)=>(f(),m(e,t)):f;var g=p,v=(n(91565),n(47433));const b=(0,v.A)(g,[["render",o],["__scopeId","data-v-39f189f2"]]);var y=b},26962:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=n(9274);const i={key:0,class:"step-number mb-10"};function a(e,t,n,a,o,s){return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)([{stepped:!!n.step},"info-box"])},[n.step?((0,r.openBlock)(),(0,r.createElementBlock)("div",i,[(0,r.createElementVNode)("h2",null,"Step "+(0,r.toDisplayString)(n.step),1)])):(0,r.createCommentVNode)("",!0),(0,r.renderSlot)(e.$slots,"default",{},void 0,!0)],2)}var o={props:{step:{type:Number,default:null}}},s=(n(40876),n(47433));const l=(0,s.A)(o,[["render",a],["__scopeId","data-v-1c5683df"]]);var c=l},39453:function(e,t,n){"use strict";n.d(t,{A:function(){return d}});var r=n(9274);const i=["src"];function a(e,t,n,a,o,s){return(0,r.openBlock)(),(0,r.createElementBlock)("img",(0,r.mergeProps)({ref:"img",src:n.initialSrc},e.$attrs),null,16,i)}var o=n(8187),s=n(39802),l={props:{initialSrc:{type:String,default:o.Rd},errorSrc:{type:String,default:s},src:{type:String,default:null}},watch:{src(e,t){if(e!==t){if(!e)return this.onError();this.intersected?this.loadImage():this.observer||this.startObserver()}}},created(){this.observer=null,this.intersected=!1,this.boundError=null},mounted(){this.src?this.startObserver():this.onError()},beforeUnmount(){const e=this.$refs.img;e&&this.boundError&&e.removeEventListener("error",this.boundError),this.observer&&(this.observer.disconnect(),this.observer=null)},methods:{startObserver(){this.src&&!this.observer&&this.$refs.img&&(this.observer=new IntersectionObserver(e=>{const t=e[0];t.isIntersecting&&(this.intersected=!0,this.loadImage(),this.observer&&(this.observer.disconnect(),this.observer=null))}),this.observer.observe(this.$refs.img))},loadImage(){const e=this.$refs.img;this.src&&(e&&this.boundError&&e.removeEventListener("error",this.boundError),e.setAttribute("src",this.src),this.boundError=this.onError.bind(this),e.addEventListener("error",this.boundError))},onError(){const e=this.$refs.img;e&&e.setAttribute("src",this.errorSrc)}}},c=n(47433);const u=(0,c.A)(l,[["render",a]]);var d=u},87619:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});var r=n(9274);const i={key:0,class:"loading-indicator"},a={key:1};function o(e,t,n,o,s,l){const c=(0,r.resolveComponent)("t");return n.loading?((0,r.openBlock)(),(0,r.createElementBlock)("div",i,[s.showMessage?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:(0,r.normalizeClass)(["overlay",{"overlay-content-mode":"content"===n.mode,"overlay-main-mode":"main"===n.mode}])},[(0,r.createVNode)(c,{k:"generic.loading",raw:!0})],2)):(0,r.createCommentVNode)("",!0)])):((0,r.openBlock)(),(0,r.createElementBlock)("div",a,[(0,r.renderSlot)(e.$slots,"default",{},void 0,!0)]))}var s={props:{loading:{type:Boolean,default:!0},mode:{type:String,default:"content"},noDelay:{type:Boolean,default:!1}},data(){return{timer:null,showMessage:this.noDelay}},mounted(){this.timer=setTimeout(()=>{this.showMessage=!0},250)},beforeUnmount(){clearTimeout(this.timer)}},l=(n(60513),n(47433));const c=(0,l.A)(s,[["render",o],["__scopeId","data-v-fac347aa"]]);var u=c},24151:function(e,t,n){"use strict";n.d(t,{A:function(){return f}});var r=n(9274);const i={class:"text-default-text"},a={class:"footer"};function o(e,t,n,o,s,l){const c=(0,r.resolveComponent)("Banner"),u=(0,r.resolveComponent)("AsyncButton"),d=(0,r.resolveComponent)("Card"),h=(0,r.resolveComponent)("app-modal");return(0,r.openBlock)(),(0,r.createBlock)(h,(0,r.mergeProps)({name:n.name,width:n.width,"click-to-close":!1,height:n.height},e.$attrs,{class:"modal","data-testid":"mvc__card","trigger-focus-trap":!0,onClose:t[2]||(t[2]=t=>e.$emit("finish",t))}),{default:(0,r.withCtx)(()=>[(0,r.createVNode)(d,{class:"modal","show-highlight-border":!1},{title:(0,r.withCtx)(()=>[(0,r.createElementVNode)("h4",i,[(0,r.renderSlot)(e.$slots,"title",{},void 0,!0)])]),body:(0,r.withCtx)(()=>[(0,r.renderSlot)(e.$slots,"content",{},void 0,!0),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n.errors,(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:t},[(0,r.createVNode)(c,{class:"banner",color:"error",label:e},null,8,["label"])]))),128))]),actions:(0,r.withCtx)(()=>[(0,r.renderSlot)(e.$slots,"footer",{},()=>[(0,r.createElementVNode)("div",a,[(0,r.createElementVNode)("button",{class:"btn role-secondary mr-20",onClick:t[0]||(t[0]=(0,r.withModifiers)((...e)=>l.hide&&l.hide(...e),["prevent"]))},(0,r.toDisplayString)(n.closeText),1),(0,r.createVNode)(u,{mode:n.saveText,onClick:t[1]||(t[1]=t=>e.$emit("finish",t))},null,8,["mode"])])],!0)]),_:3})]),_:3},16,["name","width","height"])}var s=n(91364),l=n(9980),c=n(67607),u=n(3679),d={name:"ModalWithCard",emits:["close","finish"],components:{Card:s.Z,Banner:l.l,AsyncButton:c.A,AppModal:u.h},props:{name:{type:String,required:!0},closeText:{type:String,default:"Close"},saveText:{type:String,default:"create"},width:{type:[String,Number],default:"50%"},height:{type:[String,Number],default:"auto"},errors:{type:Array,default:()=>[]}},methods:{hide(){this.$emit("close")}}},h=(n(60580),n(1962),n(47433));const p=(0,h.A)(d,[["render",o],["__scopeId","data-v-00744f30"]]);var f=p},74315:function(e,t,n){"use strict";n.d(t,{A:function(){return h}});var r=n(9274);const i=["aria-label"];function a(e,t,n,a,o,s){const l=(0,r.resolveDirective)("trim-whitespace");return(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)({progress:!0,multi:s.pieces.length>1}),"aria-label":s.ariaLabelText,role:"progressbar"},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(s.pieces,(e,t)=>(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:t,class:(0,r.normalizeClass)({piece:!0,[e.color]:!0}),style:(0,r.normalizeStyle)(e.style)},null,6)),[[l]])),128))],10,i)),[[l]])}var o=n(74302),s=n(76978),l={props:{values:{type:Array,required:!0},colorKey:{type:String,default:"color"},labelKey:{type:String,default:"label"},valueKey:{type:String,default:"value"},min:{type:Number,default:0},max:{type:Number,default:null},minPercent:{type:Number,default:5},showZeros:{type:Boolean,default:!1}},computed:{pieces(){const e=[];for(const a of this.values){const t=(0,s.Jt)(a,this.colorKey),n=(0,s.Jt)(a,this.labelKey),r=(0,s.Jt)(a,this.valueKey);(0!==r||this.showZeros)&&e.push({color:t,label:n,value:r})}const t=this.minPercent||0,n=this.min||0;let r=this.max,i=0;this.max||(r=100,e.length&&(r=e.map(e=>e.value).reduce((e,t)=>e+t)));for(const a of e){const e=Math.max(t,c(a.value,n,r));a.percent=e,i+=e}i>100&&((0,o.Ul)(e,"percent",!0)[0].percent-=i-100);for(const a of e)a.style=`width: ${a.percent}%`;return e.filter(e=>e.percent)},ariaLabelText(){if(Array.isArray(this.values)&&this.values.length){let e="";return this.values.forEach(t=>{e+=`${t.value} ${1===t.value?"item":"items"} ${t.label}`}),e}return""}}};function c(e,t,n){e=Math.max(t,Math.min(n,e));let r=e/(n-t)*100;return r=Math.floor(100*r)/100,r}n(31782);var u=n(47433);const d=(0,u.A)(l,[["render",a],["__scopeId","data-v-154bda8a"]]);var h=d},65019:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=n(9274);const i={class:"vertical-gap"};function a(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("div",i," ")}n(17299);var o=n(47433);const s={},l=(0,o.A)(s,[["render",a],["__scopeId","data-v-43905492"]]);var c=l},74536:function(e,t,n){"use strict";n.d(t,{A:function(){return h}});var r=n(9274),i=n(65019);const a={class:"detail-card"},o={class:"heading"},s={class:"title"},l={class:"body"};var c=(0,r.defineComponent)({__name:"index",props:{title:{}},setup(e){return(t,n)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",a,[(0,r.createElementVNode)("div",o,[(0,r.renderSlot)(t.$slots,"heading",{},()=>[(0,r.createElementVNode)("div",s,[(0,r.renderSlot)(t.$slots,"title",{},()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.title),1)])])]),(0,r.renderSlot)(t.$slots,"heading-action")]),(0,r.createVNode)(i.A),(0,r.createElementVNode)("div",l,[(0,r.renderSlot)(t.$slots,"default")])]))}}),u=(n(21005),n(47433));const d=(0,u.A)(c,[["__scopeId","data-v-199e5bcf"]]);var h=d},56825:function(e,t,n){"use strict";n.d(t,{A:function(){return Qn}});var r=n(9274);const i={key:2},a={key:1,id:"cru-errors",class:"cru__errors"},o=["data-testid"],s=["data-testid"],l=["data-testid"],c=["data-testid"];function u(e,t,n,u,d,h){const p=(0,r.resolveComponent)("Loading"),f=(0,r.resolveComponent)("DetailTop"),m=(0,r.resolveComponent)("Masthead"),g=(0,r.resolveComponent)("Banner"),v=(0,r.resolveComponent)("ResourceYaml"),b=(0,r.resolveDirective)("ui-context"),y=(0,r.resolveDirective)("shortkey");return e.$fetchState.pending||d.notFound?((0,r.openBlock)(),(0,r.createBlock)(p,{key:0})):h.isFullPageOverride?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(h.showComponent),(0,r.mergeProps)({key:1,value:d.value,"onUpdate:value":t[0]||(t[0]=e=>d.value=e)},e.$data,{"done-params":e.doneParams,"done-route":e.doneRoute,mode:d.mode,"initial-value":d.initialModel,"live-value":d.liveModel,"real-mode":h.realMode,class:{"flex-content":n.flexContent},"resource-errors":d.errors,"onUpdate:value":t[1]||(t[1]=t=>e.$emit("input",t)),onSetSubtype:h.setSubtype}),null,16,["value","done-params","done-route","mode","initial-value","live-value","real-mode","class","resource-errors","onSetSubtype"])),[[b,{icon:"icon-folder",value:d.value.name,tag:d.value.kind?.toLowerCase(),description:d.value.kind}]]):((0,r.openBlock)(),(0,r.createElementBlock)("div",i,[e.showMasthead?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createBlock)(m,{key:0,resource:d.resourceType,value:d.liveModel,mode:d.mode,"real-mode":h.realMode,as:d.as,"has-detail":d.hasCustomDetail,"has-edit":d.hasCustomEdit,"can-view-yaml":d.canViewYaml,"resource-subtype":d.resourceSubtype,"parent-route-override":n.parentRouteOverride,"store-override":n.storeOverride},{default:(0,r.withCtx)(()=>[h.isView&&h.isDetail?((0,r.openBlock)(),(0,r.createBlock)(f,{key:0,value:d.liveModel},null,8,["value"])):(0,r.createCommentVNode)("",!0)]),_:1},8,["resource","value","mode","real-mode","as","has-detail","has-edit","can-view-yaml","resource-subtype","parent-route-override","store-override"])),[[b,{icon:"icon-folder",value:d.liveModel.name,tag:d.liveModel.kind?.toLowerCase(),description:d.liveModel.kind}]]):(0,r.createCommentVNode)("",!0),h.hasErrors?((0,r.openBlock)(),(0,r.createElementBlock)("div",a,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(d.errors,(e,t)=>((0,r.openBlock)(),(0,r.createBlock)(g,{key:t,color:"error","data-testid":`error-banner${t}`,label:h.stringify(h.mappedErrors[e].message),icon:h.mappedErrors[e].icon,closable:!0,onClose:e=>h.closeError(t)},null,8,["data-testid","label","icon","onClose"]))),128))])):(0,r.createCommentVNode)("",!0),h.isYaml?((0,r.openBlock)(),(0,r.createBlock)(v,{key:2,ref:"resourceyaml",value:d.value,mode:d.mode,yaml:d.yaml,"offer-preview":h.offerPreview,"done-route":e.doneRoute,"done-override":d.value?d.value.doneOverride:null,"show-errors":!1,"onUpdate:value":t[2]||(t[2]=t=>e.$emit("input",t)),onError:h.onYamlError},null,8,["value","mode","yaml","offer-preview","done-route","done-override","onError"])):(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(h.showComponent),(0,r.mergeProps)({key:3,ref:"comp",value:d.value,"onUpdate:value":t[3]||(t[3]=e=>d.value=e)},e.$data,{"done-params":e.doneParams,"done-route":e.doneRoute,mode:d.mode,"initial-value":d.initialModel,"live-value":d.liveModel,"real-mode":h.realMode,class:{"flex-content":n.flexContent},"onUpdate:value":t[4]||(t[4]=t=>e.$emit("input",t)),onSetSubtype:h.setSubtype}),null,16,["value","done-params","done-route","mode","initial-value","live-value","real-mode","class","onSetSubtype"])),[[b,{icon:"icon-folder",value:d.value.name,tag:d.value.kind?.toLowerCase(),description:d.value.kind}]]),h.isView?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:4,"data-testid":n.componentTestid+"-detail",class:"hide",onShortkey:t[5]||(t[5]=e=>h.keyAction("goToDetail"))},null,40,o)),[[y,["shift","d"],void 0,{once:!0}]]):(0,r.createCommentVNode)("",!0),h.isView?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:5,"data-testid":n.componentTestid+"-config",class:"hide",onShortkey:t[6]||(t[6]=e=>h.keyAction("goToViewConfig"))},null,40,s)),[[y,["shift","c"],void 0,{once:!0}]]):(0,r.createCommentVNode)("",!0),h.isView?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:6,"data-testid":n.componentTestid+"-yaml",class:"hide",onShortkey:t[7]||(t[7]=e=>h.keyAction("goToViewYaml"))},null,40,l)),[[y,["shift","y"],void 0,{once:!0}]]):(0,r.createCommentVNode)("",!0),h.isView?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:7,"data-testid":n.componentTestid+"-edit",class:"hide",onShortkey:t[8]||(t[8]=e=>h.keyAction("goToEdit"))},null,40,c)),[[y,["shift","e"],void 0,{once:!0}]]):(0,r.createCommentVNode)("",!0)]))}var d=n(65375),h=n(87619),p=n(40103),f=n(14220),m=n(35664),g=n(37648),v=n(65359),b=n(9980),y=n(79117),_=n(68974);const w={class:"title"};function E(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("h1",w,[(0,r.renderSlot)(e.$slots,"default",{},void 0,!0)])}n(94068);var S=n(47433);const k={},x=(0,S.A)(k,[["render",E],["__scopeId","data-v-1e04f798"]]);var A=x;const C={class:"top"};function T(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("div",C,[(0,r.renderSlot)(e.$slots,"default",{},void 0,!0)])}n(85547);const N={},R=(0,S.A)(N,[["render",T],["__scopeId","data-v-9aaa96a4"]]);var O=R,I=n(76204),L=n(95457),D=n(82923),P=n(22896),M=n(31915),B=n(10312),F=n(45250);const $={class:"title-bar"},U={key:1,class:"resource-text"},j={class:"resource-name masthead-resource-title"},V={class:"actions"},K={key:0,class:"bottom description text-deemphasized"};var G=(0,r.defineComponent)({__name:"index",props:{resource:{},resourceTypeLabel:{},resourceName:{},resourceTo:{},description:{},badge:{},additionalActions:{},actionMenuResource:{},onShowConfiguration:{type:Function}},emits:["show-configuration"],setup(e,{emit:t}){var n,i,a;const o=(0,v.Pj)(),s=(0,L.s)(o),l=(0,_.rd)(),c=t,u="show-configuration-cta",d=(0,r.computed)(()=>`[data-testid="${u}"]`),h=(0,r.ref)((null===(a=null===(i=null===(n=null===l||void 0===l?void 0:l.currentRoute)||void 0===n?void 0:n.value)||void 0===i?void 0:i.query)||void 0===a?void 0:a.as)||f.au);(0,r.watch)(()=>h.value,()=>{l.push({query:{[f.AS]:h.value}})});const p=(0,r.computed)(()=>(0,F.isArray)(e.additionalActions));return(t,n)=>{const i=(0,r.resolveComponent)("router-link"),a=(0,r.resolveDirective)("ui-context");return(0,r.openBlock)(),(0,r.createElementBlock)("div",$,[(0,r.createVNode)(O,null,{default:(0,r.withCtx)(()=>[(0,r.createVNode)(A,{class:"title"},{default:(0,r.withCtx)(()=>[(0,r.createVNode)((0,r.unref)(P.A),{"show-child":!1},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.resourceTypeLabel),1)]),_:1}),e.resourceTo?((0,r.openBlock)(),(0,r.createBlock)(i,{key:0,to:e.resourceTo,class:"resource-link"},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.resourceTypeLabel)+": ",1)]),_:1},8,["to"])):((0,r.openBlock)(),(0,r.createElementBlock)("span",U,(0,r.toDisplayString)(e.resourceTypeLabel)+": ",1)),(0,r.createElementVNode)("span",j,(0,r.toDisplayString)(e.resourceName),1),e.badge?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createBlock)(y.A,{key:2,class:"badge-state",color:e.badge.color,label:e.badge.label},null,8,["color","label"])),[[a,{store:(0,r.unref)(o),icon:"icon-folder",hookable:!0,value:e.resource,tag:"__details-state",description:"Details"}]]):(0,r.createCommentVNode)("",!0)]),_:1}),(0,r.createElementVNode)("div",V,[(0,r.renderSlot)(t.$slots,"additional-actions",{},()=>[e.additionalActions?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[p.value?((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,{key:0},(0,r.renderList)(e.additionalActions,(e,t)=>((0,r.openBlock)(),(0,r.createBlock)(D.A,{key:`action-button-${t}`,variant:e.variant,size:e.size,onClick:e.onClick},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.label),1)]),_:2},1032,["variant","size","onClick"]))),128)):((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.additionalActions),{key:1}))],64)):(0,r.createCommentVNode)("",!0)]),e.onShowConfiguration?((0,r.openBlock)(),(0,r.createBlock)(D.A,{key:0,"data-testid":u,class:"show-configuration",variant:"primary",size:"large","aria-label":(0,r.unref)(s).t("component.resource.detail.titleBar.ariaLabel.showConfiguration",{resource:e.resourceName}),onClick:n[0]||(n[0]=()=>c("show-configuration",d.value))},{default:(0,r.withCtx)(()=>[n[1]||(n[1]=(0,r.createElementVNode)("i",{class:"icon icon-document","aria-hidden":"true"},null,-1)),(0,r.createTextVNode)(" "+(0,r.toDisplayString)((0,r.unref)(s).t("component.resource.detail.titleBar.showConfiguration")),1)]),_:1},8,["aria-label"])):(0,r.createCommentVNode)("",!0),e.actionMenuResource?((0,r.openBlock)(),(0,r.createBlock)(I.A,{key:1,"button-variant":"multiAction",resource:e.actionMenuResource,"data-testid":"masthead-action-menu","button-aria-label":(0,r.unref)(s).t("component.resource.detail.titleBar.ariaLabel.actionMenu",{resource:e.resourceName})},null,8,["resource","button-aria-label"])):(0,r.createCommentVNode)("",!0)])]),_:3}),e.description?((0,r.openBlock)(),(0,r.createElementBlock)("div",K,(0,r.toDisplayString)(e.description),1)):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(B.A,{resource:e.resource,type:(0,r.unref)(M.c7).PANEL,location:(0,r.unref)(M.W7).DETAILS_MASTHEAD},null,8,["resource","type","location"])])}}});n(15826);const H=(0,S.A)(G,[["__scopeId","data-v-9b4c036c"]]);var z=H,q=n(40408);const X=e=>{const t=(0,v.Pj)(),n=(0,L.s)(t),i=(0,r.toValue)(e);return(0,r.computed)(()=>{var e,r,a;const o=t.getters["type-map/optionsFor"](i.type);if(!o.hideBanner){if(null===(e=null===i||void 0===i?void 0:i.stateObj)||void 0===e?void 0:e.error){const e=n.t("resourceDetail.masthead.defaultBannerMessage.error",void 0,!0);return{color:"error",label:i.stateObj.message||e}}if(null===(r=null===i||void 0===i?void 0:i.spec)||void 0===r?void 0:r.paused)return{color:"info",label:n.t("asyncButton.pause.description")};if(null===(a=null===i||void 0===i?void 0:i.stateObj)||void 0===a?void 0:a.transitioning){const e=n.t("resourceDetail.masthead.defaultBannerMessage.transitioning",void 0,!0);return{color:"info",label:i.stateObj.message||e}}}})},W=e=>(t,n)=>{const i=(0,r.toValue)(e),a=i.showConfiguration?i.showConfiguration.bind(i):q.Ay.prototype.showConfiguration.bind(i);a(t,n)},Y=(e,t)=>{const n=(0,_.lq)(),i=(0,v.Pj)(),a=(0,r.toValue)(e);return(0,r.computed)(()=>{const o=(0,r.toValue)(t),s=i.getters["currentStore"](a.type),l=i.getters[`${s}/schemaFor`](a.type),c=a.parentNameOverride||i.getters["type-map/labelFor"](l),u=o?`${o} - ${a.nameDisplay}`:a.nameDisplay,d=a.listLocation||{name:"c-cluster-product-resource",params:{product:"explorer",cluster:null===n||void 0===n?void 0:n.params.cluster,namespace:a.namespace,resource:a.type}},h=a.disableResourceDetailDrawer?void 0:W(e);return{resource:a,resourceTypeLabel:c,resourceTo:d,resourceName:u,actionMenuResource:a,badge:{color:a.stateBackground,label:a.stateDisplay},description:a.description,additionalActions:a.detailPageAdditionalActions,onShowConfiguration:h}})},Q={class:"identifying-information"},J=["data-testid"],Z=["for"],ee=["id"],te=["id"],ne=["id"],re=["data-testid","aria-label"],ie=["data-testid"];var ae=(0,r.defineComponent)({__name:"index",props:{rows:{}},setup(e){const t=e=>`value-${e.label}:${e.value}`.toLowerCase().replaceAll(" ","");return(n,i)=>{const a=(0,r.resolveComponent)("router-link");return(0,r.openBlock)(),(0,r.createElementBlock)("div",Q,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.rows,e=>{var n,i,o,s,l,c,u,d,h;return(0,r.openBlock)(),(0,r.createElementBlock)("div",{key:`${e.label}:${e.value}`,class:"row","data-testid":e.dataTestid},[(0,r.createElementVNode)("label",{class:"label text-deemphasized",for:t(e)},(0,r.toDisplayString)(e.label),9,Z),"string"!==typeof(null===(n=e.valueOverride)||void 0===n?void 0:n.component)&&(null===(i=e.valueOverride)||void 0===i?void 0:i.component)&&e.value?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,id:t(e),class:"full-custom-value"},[(null===(o=e.valueOverride)||void 0===o?void 0:o.component)?((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(null===(s=e.valueOverride)||void 0===s?void 0:s.component),(0,r.mergeProps)({key:0,ref_for:!0},null===(l=e.valueOverride)||void 0===l?void 0:l.props,{"data-testid":e.valueDataTestid}),null,16,["data-testid"])):(0,r.createCommentVNode)("",!0)],8,ee)):(null===(c=e.valueOverride)||void 0===c?void 0:c.component)&&e.value?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:1,id:t(e),class:"value"},[(null===(u=e.valueOverride)||void 0===u?void 0:u.component)?((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(null===(d=e.valueOverride)||void 0===d?void 0:d.component),(0,r.mergeProps)({key:0,ref_for:!0},null===(h=e.valueOverride)||void 0===h?void 0:h.props,{"data-testid":e.valueDataTestid}),null,16,["data-testid"])):(0,r.createCommentVNode)("",!0)],8,te)):((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:2,id:t(e),class:"value"},[e.status?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:(0,r.normalizeClass)(["status",e.status])},null,2)):(0,r.createCommentVNode)("",!0),e.value&&e.to?((0,r.openBlock)(),(0,r.createBlock)(a,{key:1,to:e.to,"data-testid":e.valueDataTestid},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.value),1)]),_:2},1032,["to","data-testid"])):e.value?((0,r.openBlock)(),(0,r.createElementBlock)("span",{key:2,"data-testid":e.valueDataTestid,tabindex:"0","aria-label":e.value},(0,r.toDisplayString)(e.value),9,re)):((0,r.openBlock)(),(0,r.createElementBlock)("span",{key:3,class:"text-muted","data-testid":e.valueDataTestid},"—",8,ie))],8,ne))],8,J)}),128))])}}});n(63048);const oe=(0,S.A)(ae,[["__scopeId","data-v-b229e8e2"]]);var se=oe,le=n(48881);const ce=["aria-label"];var ue=(0,r.defineComponent)({__name:"CopyToClipboard",props:{value:{}},setup(e){const t=e,n=(0,v.Pj)(),i=(0,L.s)(n),a=(0,r.ref)(!1),o=(0,r.ref)(null),s=e=>{e.stopPropagation(),(0,le.e)(t.value),a.value=!0,o.value||(o.value=setTimeout(()=>{a.value=!1,o.value=null},2e3))};return(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("button",{class:(0,r.normalizeClass)(["copy-to-clipboard",{copied:a.value}]),"aria-label":(0,r.unref)(i).t("component.resource.detail.copyToClipboard.ariaLabel.copy"),onClick:s},[...t[0]||(t[0]=[(0,r.createElementVNode)("i",{class:"icon icon-copy"},null,-1)])],10,ce))}});n(26550);const de=(0,S.A)(ue,[["__scopeId","data-v-24cd76d6"]]);var he=de,pe=n(78119),fe=n(92043);const me={class:"content"},ge={key:0},ve={key:2,"data-testid":"detail-top_html",class:(0,r.normalizeClass)({monospace:!0})};var be=(0,r.defineComponent)({__name:"Content",props:{value:{}},setup(e){const t=e,n=(0,r.computed)(()=>0===t.value.length),i=(0,r.computed)(()=>{const e=t.value;if(e&&(e.startsWith("{")||e.startsWith("[")))try{let t=JSON.parse(e);return t=JSON.stringify(t,null,2),t}catch(n){}return null}),a=(0,r.computed)(()=>(0,fe.Kn)(t.value));return(e,t)=>{const o=(0,r.resolveDirective)("t"),s=(0,r.resolveDirective)("clean-html");return(0,r.openBlock)(),(0,r.createElementBlock)("div",me,[n.value?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("span",ge,null,512)),[[o,"detailText.empty"]]):i.value?((0,r.openBlock)(),(0,r.createBlock)(pe.A,{key:1,mode:(0,r.unref)(f.nW),options:{mode:{name:"javascript",json:!0},lineNumbers:!1,foldGutter:!1},value:i.value},null,8,["mode","value"])):(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("span",ve,null,512)),[[s,a.value]])])}}});n(347);const ye=(0,S.A)(be,[["__scopeId","data-v-8af17bd2"]]);var _e=ye,we=n(82149);const Ee={class:"title"};var Se=(0,r.defineComponent)({inheritAttrs:!1,__name:"Preview",props:{title:{},value:{},anchorElement:{}},emits:["close"],setup(e,{emit:t}){(0,r.useCssVars)(e=>({v068f897a:s.value,v31006f9a:o.value}));const n=e,i=t,a=(0,r.computed)(()=>{var e;return null===(e=n.anchorElement)||void 0===e?void 0:e.getBoundingClientRect()}),o=(0,r.computed)(()=>{var e;return((null===(e=a.value)||void 0===e?void 0:e.top)||0)-28+"px"}),s=(0,r.computed)(()=>{var e;return document.documentElement.clientWidth-((null===(e=a.value)||void 0===e?void 0:e.left)||0)+16+"px"}),l=(0,r.ref)(null),c=(0,r.ref)(!1),u=(0,r.ref)(!1),d=e=>{var t;!c.value&&(null===(t=l.value)||void 0===t?void 0:t.contains(e.relatedTarget))?u.value&&l.value.focus():i("close",c.value)},h=e=>{var t;"Escape"===e.key&&(c.value=!0,null===(t=l.value)||void 0===t||t.blur())};return(0,r.onMounted)(()=>{var e;null===(e=l.value)||void 0===e||e.focus()}),(0,we.kS)("#focus-trap-preview-container-element"),(e,t)=>((0,r.openBlock)(),(0,r.createBlock)(r.Teleport,{to:"#preview"},[(0,r.createElementVNode)("div",{id:"focus-trap-preview-container-element",ref_key:"containerRef",ref:l,class:"preview",tabindex:"-1",onKeydown:h,onFocusout:d,onMousedown:t[0]||(t[0]=e=>u.value=!0),onMouseup:t[1]||(t[1]=e=>u.value=!1)},[(0,r.createElementVNode)("div",Ee,(0,r.toDisplayString)(n.title),1),(0,r.createVNode)(_e,{class:"content",value:n.value},null,8,["value"]),(0,r.createVNode)(he,{class:"copy-to-clipboard",value:n.value},null,8,["value"])],544)]))}});n(85447);const ke=(0,S.A)(Se,[["__scopeId","data-v-5b728606"]]);var xe=ke,Ae=n(49363);const Ce={class:"tag-data"};var Te=(0,r.defineComponent)({__name:"KeyValueRow",props:{row:{},type:{}},setup(e){const t=e,n=(0,v.Pj)(),i=(0,L.s)(n),a=(0,r.ref)(!1),o=(0,r.ref)(null),s=(0,r.ref)(null),l=e=>{a.value=!1,e&&(0,r.nextTick)(()=>{var e;null===(e=s.value)||void 0===e||e.focus()})},c=(0,fe.vx)();return(n,u)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{ref_key:"element",ref:o,class:(0,r.normalizeClass)(["key-value-row",{"show-preview":a.value,[t.type]:!0}])},[(0,r.createVNode)(D.A,{ref_key:"button",ref:s,variant:"ghost","aria-haspopup":"dialog","aria-expanded":a.value,"aria-controls":(0,r.unref)(c),"aria-label":(0,r.unref)(i).t("component.resource.detail.metadata.keyValue.ariaLabel.showPreview"),onClick:u[0]||(u[0]=()=>a.value=!0)},{default:(0,r.withCtx)(()=>[(0,r.createVNode)(Ae.A,{type:e.type,highlight:a.value},{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)("span",Ce,(0,r.toDisplayString)(t.row.key)+": "+(0,r.toDisplayString)(t.row.value),1)]),_:1},8,["type","highlight"])]),_:1},8,["aria-expanded","aria-controls","aria-label"]),(0,r.createVNode)(he,{value:e.row.value},null,8,["value"]),a.value?((0,r.openBlock)(),(0,r.createBlock)(xe,{key:0,id:(0,r.unref)(c),class:"preview",title:e.row.key,value:e.row.value,"anchor-element":o.value,"aria-live":"polite",onClose:l},null,8,["id","title","value","anchor-element"])):(0,r.createCommentVNode)("",!0)],2))}});n(90785);const Ne=(0,S.A)(Te,[["__scopeId","data-v-18944324"]]);var Re=Ne;const Oe={class:"key-value"},Ie={class:"heading"},Le={class:"title text-deemphasized"},De={class:"count"},Pe={key:0,class:"empty mmt-2 text-deemphasized"},Me={class:"no-rows"},Be={class:"show-configuration mmt-1"},Fe=["data-testid"],$e=["data-testid"];var Ue=(0,r.defineComponent)({__name:"KeyValue",props:{propertyName:{},rows:{},type:{},maxRows:{default:4},onShowConfiguration:{type:Function,default:void 0}},emits:["show-configuration"],setup(e,{emit:t}){const n=e,{propertyName:i,rows:a,maxRows:o}=(0,r.toRefs)(n),s=(0,v.Pj)(),l=(0,L.s)(s),c=t,u=(0,r.computed)(()=>a.value.length>o.value?o.value-1:a.value.length),d=(0,r.computed)(()=>a.value.slice(0,u.value)),h=(0,r.computed)(()=>i.value.toLowerCase()),p=(0,r.computed)(()=>a.value.length>o.value),f=(0,r.computed)(()=>`Show all ${h.value}`),m=e=>`${e.key}: ${e.value}`,g=(0,r.computed)(()=>`empty-show-configuration_${i.value.replaceAll(" ","").toLowerCase()}`),b=(0,r.computed)(()=>`[data-testid="${g.value}"]`),y=(0,r.computed)(()=>`more-show-configuration_${i.value.replaceAll(" ","").toLowerCase()}`),_=(0,r.computed)(()=>`[data-testid="${y.value}"]`);return(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",Oe,[(0,r.createElementVNode)("div",Ie,[(0,r.createElementVNode)("span",Le,(0,r.toDisplayString)((0,r.unref)(i)),1),(0,r.createElementVNode)("span",De,(0,r.toDisplayString)((0,r.unref)(a).length),1)]),0===d.value.length?((0,r.openBlock)(),(0,r.createElementBlock)("div",Pe,[(0,r.createElementVNode)("div",Me,(0,r.toDisplayString)((0,r.unref)(l).t("component.resource.detail.metadata.keyValue.noRows",{propertyName:h.value})),1),(0,r.createElementVNode)("div",Be,[(0,r.createElementVNode)("a",{"data-testid":g.value,class:"secondary text-deemphasized",href:"#",onClick:t[0]||(t[0]=e=>{e.preventDefault(),c("show-configuration",b.value)})},(0,r.toDisplayString)((0,r.unref)(l).t("component.resource.detail.metadata.keyValue.showConfiguration")),9,Fe)])])):(0,r.createCommentVNode)("",!0),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(d.value,e=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:m(e),class:"row"},[(0,r.createVNode)(Re,{class:"rectangle",type:n.type,row:e},null,8,["type","row"])]))),128)),p.value?((0,r.openBlock)(),(0,r.createElementBlock)("a",{key:1,"data-testid":y.value,href:"#",class:"show-all",onClick:t[1]||(t[1]=e=>{e.preventDefault(),c("show-configuration",_.value)})},(0,r.toDisplayString)(f.value),9,$e)):(0,r.createCommentVNode)("",!0)]))}});n(78805);const je=(0,S.A)(Ue,[["__scopeId","data-v-574d2bc8"]]);var Ve=je,Ke=(0,r.defineComponent)({__name:"index",props:{labels:{},onShowConfiguration:{type:Function}},emits:["show-configuration"],setup(e,{emit:t}){const n=e,{labels:i}=(0,r.toRefs)(n),a=t,o=(0,v.Pj)(),s=(0,L.s)(o);return(e,t)=>((0,r.openBlock)(),(0,r.createBlock)(Ve,{propertyName:(0,r.unref)(s).t("component.resource.detail.metadata.labels.title"),rows:(0,r.unref)(i),type:"active",onShowConfiguration:t[0]||(t[0]=e=>a("show-configuration",e,"labels-and-annotations"))},null,8,["propertyName","rows"]))}});const Ge=Ke;var He=Ge,ze=(0,r.defineComponent)({__name:"index",props:{annotations:{},onShowConfiguration:{type:Function}},emits:["show-configuration"],setup(e,{emit:t}){const n=t,i=(0,v.Pj)(),a=(0,L.s)(i);return(t,i)=>((0,r.openBlock)(),(0,r.createBlock)(Ve,{propertyName:(0,r.unref)(a).t("component.resource.detail.metadata.annotations.title"),rows:e.annotations,type:"active",onShowConfiguration:i[0]||(i[0]=e=>n("show-configuration",e,"labels-and-annotations"))},null,8,["propertyName","rows"]))}});const qe=ze;var Xe=qe;const We={class:"spaced-row"};function Ye(e,t){return(0,r.openBlock)(),(0,r.createElementBlock)("div",We,[(0,r.renderSlot)(e.$slots,"default",{},void 0,!0)])}n(25182);const Qe={},Je=(0,S.A)(Qe,[["render",Ye],["__scopeId","data-v-64541b91"]]);var Ze=Je;const et={class:"identifying-info"},tt={key:0,class:"labels-and-annotations-empty"},nt={key:1,class:"labels"},rt={key:2,class:"annotations"};var it=(0,r.defineComponent)({__name:"index",props:{resource:{},identifyingInformation:{},labels:{},annotations:{},onShowConfiguration:{type:Function}},emits:["show-configuration"],setup(e,{emit:t}){const n=t,i=(0,v.Pj)(),a=(0,L.s)(i),o=(0,r.computed)(()=>0===e.labels.length&&0===e.annotations.length);return(t,i)=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createVNode)(Ze,(0,r.mergeProps)({class:"metadata"},t.$attrs),{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)("div",et,[(0,r.createVNode)(se,{rows:e.identifyingInformation},null,8,["rows"])]),o.value?((0,r.openBlock)(),(0,r.createElementBlock)("div",tt,[(0,r.createVNode)(Ve,{type:"active",rows:[],propertyName:(0,r.unref)(a).t("component.resource.detail.metadata.labelsAndAnnotations"),onShowConfiguration:i[0]||(i[0]=(e,t)=>n("show-configuration",e,t))},null,8,["propertyName"])])):(0,r.createCommentVNode)("",!0),o.value?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",nt,[(0,r.createVNode)(He,{labels:e.labels,onShowConfiguration:i[1]||(i[1]=(e,t)=>n("show-configuration",e,t))},null,8,["labels"])])),o.value?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",rt,[(0,r.createVNode)(Xe,{annotations:e.annotations,onShowConfiguration:i[2]||(i[2]=(e,t)=>n("show-configuration",e,t))},null,8,["annotations"])]))]),_:1},16),(0,r.createVNode)(B.A,{class:"ppb-3",resource:e.resource,type:(0,r.unref)(M.c7).PANEL,location:(0,r.unref)(M.W7).DETAIL_TOP},null,8,["resource","type","location"])],64))}});n(36424);const at=(0,S.A)(it,[["__scopeId","data-v-4750bbd4"]]);var ot=at;n(24025);var st=n(2665),lt=(n(29859),n(2841));const ct=e=>{const t=(0,v.Pj)(),i=(0,L.s)(t),a=(0,r.toValue)(e);if(a.namespace&&!a.namespaces&&!a.isProjectScoped)return(0,r.computed)(()=>{const e=t.getters["currentStore"](m.CU),o=t.getters[`${e}/canList`](m.CU),s=i.t("component.resource.detail.metadata.identifyingInformation.namespace"),l=a.namespace,c="masthead-subheader-namespace",u=o?{component:(0,r.markRaw)((0,r.defineAsyncComponent)(()=>n.e(416).then(n.bind(n,42416)))),props:{type:m.CU,id:a.namespace,detailLocation:a.namespaceLocation}}:void 0;return{label:s,value:l,valueDataTestid:c,valueOverride:u}})},ut=e=>{var t;const n=(0,v.Pj)(),i=(0,L.s)(n),a=(0,r.toValue)(e),o=(0,_.lq)(),s=n.getters["productId"]===st.o_&&!!(null===(t=null===a||void 0===a?void 0:a.metadata)||void 0===t?void 0:t.namespace);if(s)return(0,r.computed)(()=>({label:i.t("component.resource.detail.metadata.identifyingInformation.workspace"),value:a.namespace,to:{name:"c-cluster-product-resource-id",params:{product:n.getters["productId"],cluster:n.getters["clusterId"],resource:m.Hs.WORKSPACE,id:o.params.namespace}}}))},dt=e=>{const t=(0,v.Pj)(),n=(0,L.s)(t),i=(0,r.toValue)(e),a=t.getters["type-map/optionsFor"](e.type);if(a.showAge)return(0,r.computed)(()=>({label:n.t("component.resource.detail.metadata.identifyingInformation.age"),valueOverride:{component:"LiveDate",props:{value:i.creationTimestamp}},value:i.creationTimestamp}))},ht=e=>{const t=(0,v.Pj)(),i=(0,L.s)(t),a=(0,r.toValue)(e);if((e.type===m.CU||e.type===m.bB)&&a.project)return(0,r.computed)(()=>{var e,t;return{label:i.t("component.resource.detail.metadata.identifyingInformation.project"),value:null===(e=a.project)||void 0===e?void 0:e.nameDisplay,valueDataTestid:"masthead-subheader-project",valueOverride:{component:(0,r.markRaw)((0,r.defineAsyncComponent)(()=>n.e(416).then(n.bind(n,42416)))),props:{type:m.Mc.PROJECT,id:null===(t=a.project)||void 0===t?void 0:t.id,currentStore:"management"}}}})},pt=e=>{const t=(0,r.computed)(()=>e.details);if(!t.value)return;const n=e=>e.valueOverride?e.valueOverride:e.formatter?{component:e.formatter,props:{value:e.content,...e.formatterOpts}}:void 0;return(0,r.computed)(()=>t.value.filter(e=>!e.separator&&void 0!==e.content&&null!==e.content).map(e=>({label:e.label,value:e.content,valueOverride:n(e)})))};const ft=e=>{const t=(0,r.toValue)(e);return(0,r.computed)(()=>{const e=Object.entries(t.labels||{});return e.map(([e,t])=>({key:e,value:t}))})},mt=e=>{const t=(0,r.toValue)(e);return(0,r.computed)(()=>{const e=Object.entries(t.annotations||{});return e.map(([e,t])=>({key:e,value:t}))})};const gt=e=>{const t=ft(e),n=mt(e),i=W(e);return(0,r.computed)(()=>({resource:(0,r.toValue)(e),labels:t.value,annotations:n.value,onShowConfiguration:i}))},vt=e=>{const t=pt(e),n=ht(e),i=ut(e),a=ct(e),o=dt(e),s=(0,r.computed)(()=>{const e=[null===n||void 0===n?void 0:n.value,null===i||void 0===i?void 0:i.value,null===a||void 0===a?void 0:a.value,null===o||void 0===o?void 0:o.value],r=[...e,...(null===t||void 0===t?void 0:t.value)||[]];return r.filter(e=>"undefined"!==typeof e)}),l=gt(e);return(0,r.computed)(()=>({resource:(0,r.toValue)(e),identifyingInformation:s.value,labels:l.value.labels,annotations:l.value.annotations,onShowConfiguration:l.value.onShowConfiguration}))};var bt=n(70176);const yt=["b","i","span","a"];var _t=(0,r.defineComponent)({name:"RichTranslation",props:{k:{type:String,required:!0},tag:{type:String,default:"span"}},setup(e,{slots:t}){const n=(0,v.Pj)();return()=>{const i=n.getters["i18n/t"](e.k,{},!0);if(!i||"string"!==typeof i)return(0,r.h)(e.tag,{},[i]);const a=/<([a-zA-Z0-9]+)>(.*?)<\/\1>|<([a-zA-Z0-9]+)\/>/g,o=[];let s,l=0;while(null!==(s=a.exec(i))){s.index>l&&o.push((0,r.h)("span",{innerHTML:(0,bt.P)(i.substring(l,s.index))}));const e=s[1],n=s[3],c=e||n;if(c){const n=e?s[2]:"";t[c]?o.push(t[c]({content:(0,bt.P)(n)})):yt.includes(c.toLowerCase())?n?o.push((0,r.h)(c,{innerHTML:(0,bt.P)(n,{ALLOWED_TAGS:yt})})):o.push((0,r.h)(c)):o.push((0,r.h)("span",{innerHTML:(0,bt.P)(s[0])}))}l=a.lastIndex}return l<i.length&&o.push((0,r.h)("span",{innerHTML:(0,bt.P)(i.substring(l))})),(0,r.h)(e.tag,{},o)}}});const wt=_t;var Et=wt,St=n(74536),kt=n(10213),xt=n(86565),At=n(49845);const Ct={class:"message text-deemphasized"};var Tt=(0,r.defineComponent)({__name:"ExtrasCard",setup(e){const t=(0,v.Pj)(),n=(0,L.s)(t),i=(0,r.computed)(()=>(0,xt.X2)(t.getters)),a={name:"c-cluster-uiplugins",params:{cluster:kt.w}},o=`${At.M0}/integrations-in-rancher/rancher-extensions`,s={name:"c-cluster-explorer-tools"},l=`${At.M0}/reference-guides/rancher-cluster-tools`;return(e,t)=>{const c=(0,r.resolveComponent)("router-link");return(0,r.openBlock)(),(0,r.createBlock)(St.A,{title:(0,r.unref)(n).t("component.resource.detail.card.extrasCard.title")},{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)("p",Ct,[(0,r.createVNode)(Et,{k:"component.resource.detail.card.extrasCard.message"},{extensionsLink:(0,r.withCtx)(({content:e})=>[i.value?((0,r.openBlock)(),(0,r.createBlock)(c,{key:0,class:"secondary text-deemphasized",to:a},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e),1)]),_:2},1024)):((0,r.openBlock)(),(0,r.createElementBlock)("a",{key:1,class:"secondary text-deemphasized",href:o,target:"_blank"},(0,r.toDisplayString)(e),1))]),clusterToolsLink:(0,r.withCtx)(({content:e})=>[i.value?((0,r.openBlock)(),(0,r.createBlock)(c,{key:0,class:"secondary-text-link",to:s},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e),1)]),_:2},1024)):((0,r.openBlock)(),(0,r.createElementBlock)("a",{key:1,class:"secondary-text-link",href:l,target:"_blank"},(0,r.toDisplayString)(e),1))]),_:1})])]),_:1},8,["title"])}}});n(4241);const Nt=(0,S.A)(Tt,[["__scopeId","data-v-3eb6f915"]]);var Rt=Nt,Ot=(0,r.defineComponent)({__name:"Cards",props:{resource:{}},setup(e){const t=(0,r.computed)(()=>{var t,n;return(null===(n=null===(t=e.resource)||void 0===t?void 0:t.cards)||void 0===n?void 0:n.filter(e=>e))||[]}),n=(0,r.computed)(()=>t.value.length>=1&&t.value.length<3);return(e,i)=>t.value.length>0?((0,r.openBlock)(),(0,r.createBlock)(Ze,{key:0},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(t.value,(e,t)=>((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.component),(0,r.mergeProps)({key:t},{ref_for:!0},e.props),null,16))),128)),n.value?((0,r.openBlock)(),(0,r.createBlock)(Rt,{key:0})):(0,r.createCommentVNode)("",!0)]),_:1})):(0,r.createCommentVNode)("",!0)}});const It=Ot;var Lt=It,Dt=(0,r.defineComponent)({__name:"latest",props:{value:{default:()=>({})},resourceSubtype:{default:void 0},isCustomDetailOrEdit:{type:Boolean,default:!1}},setup(e){const t=e,n=(0,r.computed)(()=>{const{name:e,metadata:n,kind:r,state:i}=t.value||{};return{name:e,namespace:null===n||void 0===n?void 0:n.namespace,kind:r,state:i}}),i=(0,r.computed)(()=>t.resourceSubtype),a=Y(t.value,i),o=vt(t.value),s=X(t.value),l=(0,v.Pj)();return(e,i)=>{const c=(0,r.resolveDirective)("ui-context");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createVNode)(z,(0,r.normalizeProps)((0,r.guardReactiveProps)((0,r.unref)(a))),null,16),(0,r.unref)(s)?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(b.l),(0,r.mergeProps)({key:0,class:"new state-banner"},(0,r.unref)(s)),null,16)),[[c,{store:(0,r.unref)(l),icon:"icon-info",hookable:!0,value:{bannerProps:(0,r.unref)(s),resource:n.value},tag:"__details-state-banner",description:"Status Message"}]]):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(ot,(0,r.mergeProps)((0,r.unref)(o),{class:"metadata-section"}),null,16),t.isCustomDetailOrEdit?((0,r.openBlock)(),(0,r.createBlock)(Lt,{key:1,class:"cards-section",resource:t.value},null,8,["resource"])):(0,r.createCommentVNode)("",!0)])}}});n(56891);const Pt=(0,S.A)(Dt,[["__scopeId","data-v-0243210c"]]);var Mt=Pt;const Bt={class:"masthead"},Ft={class:"title"},$t={class:"primaryheader"},Ut={key:3},jt={key:4},Vt={key:7,class:"masthead-istio"},Kt={class:"icon icon-sm icon-istio"},Gt=["href"],Ht={key:0,class:"subheader"},zt={key:0},qt={key:1},Xt={key:2},Wt={key:1},Yt={key:3},Qt={class:"actions-container align-start"},Jt={class:"actions"},Zt=["disabled"];function en(e,t,n,i,a,o){const s=(0,r.resolveComponent)("TabTitle"),l=(0,r.resolveComponent)("router-link"),c=(0,r.resolveComponent)("t"),u=(0,r.resolveComponent)("BadgeState"),d=(0,r.resolveComponent)("LiveDate"),h=(0,r.resolveComponent)("ButtonGroup"),p=(0,r.resolveComponent)("ActionMenu"),f=(0,r.resolveComponent)("ExtensionPanel"),m=(0,r.resolveComponent)("Banner"),g=(0,r.resolveDirective)("clean-tooltip");return(0,r.openBlock)(),(0,r.createElementBlock)("div",Bt,[(0,r.createElementVNode)("header",null,[(0,r.createElementVNode)("div",Ft,[(0,r.createElementVNode)("div",$t,[(0,r.createElementVNode)("h1",null,[o.isCreate?((0,r.openBlock)(),(0,r.createBlock)(s,{key:0,showChild:!1},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(o.parent.displayName),1)]),_:1})):((0,r.openBlock)(),(0,r.createBlock)(s,{key:1,showChild:!1},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(o.displayName),1)]),_:1})),o.location?((0,r.openBlock)(),(0,r.createBlock)(l,{key:2,to:o.location,role:"link",class:"masthead-resource-list-link","aria-label":o.parent.displayName},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(o.parent.displayName)+": ",1)]),_:1},8,["to","aria-label"])):((0,r.openBlock)(),(0,r.createElementBlock)("span",Ut,(0,r.toDisplayString)(o.parent.displayName)+":",1)),n.value?.detailPageHeaderActionOverride&&n.value?.detailPageHeaderActionOverride(n.realMode)?((0,r.openBlock)(),(0,r.createElementBlock)("span",jt,(0,r.toDisplayString)(n.value?.detailPageHeaderActionOverride(n.realMode)),1)):((0,r.openBlock)(),(0,r.createBlock)(c,{key:5,class:"masthead-resource-title",k:"resourceDetail.header."+n.realMode,subtype:n.resourceSubtype,name:o.displayName,escapehtml:!1},null,8,["k","subtype","name"])),!o.isCreate&&o.parent.showState?((0,r.openBlock)(),(0,r.createBlock)(u,{key:6,class:"masthead-state",value:n.value},null,8,["value"])):(0,r.createCommentVNode)("",!0),!o.isCreate&&n.value.injectionEnabled?((0,r.openBlock)(),(0,r.createElementBlock)("span",Vt,[(0,r.withDirectives)((0,r.createElementVNode)("i",Kt,null,512),[[g,e.t("projectNamespaces.isIstioInjectionEnabled")]])])):(0,r.createCommentVNode)("",!0),o.dev&&o.resourceExternalLink?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("a",{key:8,class:"resource-external",rel:"nofollow noopener noreferrer",target:"_blank",href:o.resourceExternalLink.url},[...t[3]||(t[3]=[(0,r.createElementVNode)("i",{class:"icon icon-external-link"},null,-1)])],8,Gt)),[[g,e.t(o.resourceExternalLink.tipsKey||"generic.resourceExternalLinkTips")]]):(0,r.createCommentVNode)("",!0)])]),o.isCreate?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",Ht,[o.isNamespace&&o.project?((0,r.openBlock)(),(0,r.createElementBlock)("span",zt,[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("resourceDetail.masthead.project"))+": ",1),(0,r.createVNode)(l,{to:o.project.detailLocation},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(o.project.nameDisplay),1)]),_:1},8,["to"])])):o.isWorkspace?((0,r.openBlock)(),(0,r.createElementBlock)("span",qt,[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("resourceDetail.masthead.workspace"))+": ",1),(0,r.createVNode)(l,{to:o.workspaceLocation},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(o.namespace),1)]),_:1},8,["to"])])):o.namespace&&!o.hasMultipleNamespaces?((0,r.openBlock)(),(0,r.createElementBlock)("span",Xt,[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("resourceDetail.masthead.namespace"))+": ",1),o.hideNamespaceLocation?((0,r.openBlock)(),(0,r.createElementBlock)("span",Wt,(0,r.toDisplayString)(o.namespace),1)):((0,r.openBlock)(),(0,r.createBlock)(l,{key:0,to:o.namespaceLocation,"data-testid":"masthead-subheader-namespace"},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(o.namespace),1)]),_:1},8,["to"]))])):(0,r.createCommentVNode)("",!0),o.parent.showAge?((0,r.openBlock)(),(0,r.createElementBlock)("span",Yt,[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("resourceDetail.masthead.age"))+": ",1),(0,r.createVNode)(d,{class:"live-date",value:n.value.creationTimestamp},null,8,["value"])])):(0,r.createCommentVNode)("",!0)]))]),(0,r.renderSlot)(e.$slots,"right",{},()=>[(0,r.createElementVNode)("div",Qt,[(0,r.createElementVNode)("div",Jt,[o.detailsAction&&o.currentView===a.DETAIL_VIEW&&o.isView?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:0,type:"button",class:"btn role-primary actions mr-10",disabled:!o.detailsAction.enabled,onClick:t[0]||(t[0]=(...e)=>o.invokeDetailsAction&&o.invokeDetailsAction(...e))},(0,r.toDisplayString)(o.detailsAction.label),9,Zt)):(0,r.createCommentVNode)("",!0),o.showSensitiveToggle?((0,r.openBlock)(),(0,r.createBlock)(h,{key:1,value:!!o.hideSensitiveData,"icon-size":"lg",options:o.sensitiveOptions,class:"mr-10","onUpdate:value":o.toggleSensitiveData},null,8,["value","options","onUpdate:value"])):(0,r.createCommentVNode)("",!0),o.viewOptions&&o.isView?((0,r.openBlock)(),(0,r.createBlock)(h,{key:2,value:o.currentView,"onUpdate:value":t[1]||(t[1]=e=>o.currentView=e),options:o.viewOptions,class:"mr-10"},null,8,["value","options"])):(0,r.createCommentVNode)("",!0),i.featureDropdownMenu?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:3},[o.isView?((0,r.openBlock)(),(0,r.createBlock)(p,{key:0,"button-variant":"multiAction","button-size":"compact",resource:n.value,"data-testid":"masthead-action-menu"},null,8,["resource"])):(0,r.createCommentVNode)("",!0)],64)):((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:4},[o.isView?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:0,ref:"actions","data-testid":"masthead-action-menu","aria-haspopup":"true",type:"button",class:"btn role-multi-action actions",onClick:t[2]||(t[2]=(...e)=>o.showActions&&o.showActions(...e))},[...t[4]||(t[4]=[(0,r.createElementVNode)("i",{class:"icon icon-actions"},null,-1)])],512)):(0,r.createCommentVNode)("",!0)],64))])])],!0)]),(0,r.createVNode)(f,{resource:n.value,type:a.extensionType,location:a.extensionLocation},null,8,["resource","type","location"]),o.banner&&o.isView&&!o.parent.hideBanner?((0,r.openBlock)(),(0,r.createBlock)(m,{key:0,class:"state-banner mb-10",color:o.banner.color,label:o.banner.message},null,8,["color","label"])):(0,r.createCommentVNode)("",!0),o.managedWarning.show?((0,r.openBlock)(),(0,r.createBlock)(m,{key:1,color:"warning",class:"mb-20",label:e.t("resourceDetail.masthead.managedWarning",o.managedWarning)},null,8,["label"])):(0,r.createCommentVNode)("",!0),(0,r.renderSlot)(e.$slots,"default",{},void 0,!0)])}var tn=n(96858),nn=n(41418),rn=n(76978),an=n(91462),on=n(75886),sn={name:"MastheadResourceDetail",components:{BadgeState:nn.j,Banner:b.l,ButtonGroup:tn.A,ExtensionPanel:B.A,TabTitle:P.A,ActionMenu:I.A},props:{value:{type:Object,default:()=>({})},mode:{type:String,default:"create"},realMode:{type:String,default:"create"},as:{type:String,default:f.zD},hasGraph:{type:Boolean,default:!1},hasDetail:{type:Boolean,default:!1},hasEdit:{type:Boolean,default:!1},storeOverride:{type:String,default:null},resource:{type:String,default:null},resourceSubtype:{type:String,default:null},parentRouteOverride:{type:String,default:null},canViewYaml:{type:Boolean,default:!1}},setup(){const e=(0,v.Pj)(),{featureDropdownMenu:t}=(0,on.K)(e);return{featureDropdownMenu:t}},data(){return{DETAIL_VIEW:f.fS,extensionType:M.c7.PANEL,extensionLocation:M.W7.DETAILS_MASTHEAD}},computed:{dev(){return this.$store.getters["prefs/dev"]},schema(){const e=this.storeOverride||this.$store.getters["currentStore"](this.resource);return this.$store.getters[`${e}/schemaFor`](this.resource)},isView(){return this.mode===f.nW},isEdit(){return this.mode===f.G5},isCreate(){return this.mode===f.YQ},isNamespace(){return this.schema?.id===m.CU},isProject(){return this.schema?.id===m.Mc.PROJECT},isProjectHelmChart(){return this.schema?.id===m.fj.PROJECTHELMCHART},hasMultipleNamespaces(){return!!this.value.namespaces},namespace(){return this.value?.metadata?.namespace?this.value?.metadata?.namespace:null},detailsAction(){return this.value?.detailsAction},shouldHifenize(){return("view"===this.mode||"edit"===this.mode)&&this.resourceSubtype?.length&&this.value?.nameDisplay?.length},namespaceLocation(){return this.isNamespace?null:this.value.namespaceLocation||{name:"c-cluster-product-resource-id",params:{cluster:this.$route.params.cluster,product:this.$store.getters["productId"],resource:m.CU,id:this.$route.params.namespace}}},isWorkspace(){return this.$store.getters["productId"]===st.o_&&!!this.value?.metadata?.namespace},workspaceLocation(){return{name:"c-cluster-product-resource-id",params:{cluster:this.$route.params.cluster,product:this.$store.getters["productId"],resource:m.Hs.WORKSPACE,id:this.$route.params.namespace}}},project(){if(this.isNamespace){const e=this.$store.getters["currentCluster"];if(e){const t=(this.value?.metadata?.labels||{})[lt.yl];return this.$store.getters["management/byId"](m.Mc.PROJECT,`${e.id}/${t}`)}}return null},banner(){if(this.value?.stateObj?.error){const e=this.t("resourceDetail.masthead.defaultBannerMessage.error",void 0,!0);return{color:"error",message:this.value.stateObj.message||e}}if(this.value?.spec?.paused)return{color:"info",message:this.t("asyncButton.pause.description")};if(this.value?.stateObj?.transitioning){const e=this.t("resourceDetail.masthead.defaultBannerMessage.transitioning",void 0,!0);return{color:"info",message:this.value.stateObj.message||e}}return null},parent(){const e=this.value?.parentNameOverride||this.$store.getters["type-map/labelFor"](this.schema),t=this.$store.getters["currentProduct"].name,n={name:"c-cluster-product-resource",params:{resource:this.resource,product:t}},r=this.value?.parentLocationOverride||n;this.parentRouteOverride&&(r.name=this.parentRouteOverride);const i=this.$store.getters["type-map/optionsFor"](this.resource),a={displayName:e,location:r,...i};return a},hideSensitiveData(){return this.$store.getters["prefs/get"](an.qv)},sensitiveOptions(){return[{tooltipKey:"resourceDetail.masthead.sensitive.hide",icon:"icon-hide",value:!0},{tooltipKey:"resourceDetail.masthead.sensitive.show",icon:"icon-show",value:!1}]},viewOptions(){const e=[];return this.hasDetail&&e.push({labelKey:"resourceDetail.masthead.detail",value:f.fS}),this.hasEdit&&!1!==this.parent?.showConfigView&&e.push({labelKey:"resourceDetail.masthead.config",value:f.au}),this.hasGraph&&e.push({labelKey:"resourceDetail.masthead.graph",value:f.Yq}),this.canViewYaml&&e.push({labelKey:"resourceDetail.masthead.yaml",value:f.zD}),e.length<2?null:e},currentView:{get(){return this.as},set(e){switch(e){case f.fS:this.$router.applyQuery({[f.g]:f.xz,[f.AS]:f.xz});break;case f.au:this.$router.applyQuery({[f.g]:f.xz,[f.AS]:f.au});break;case f.Yq:this.$router.applyQuery({[f.g]:f.xz,[f.AS]:f.Yq});break;case f.zD:this.$router.applyQuery({[f.g]:f.xz,[f.AS]:f.zD});break}}},showSensitiveToggle(){return!!this.value.hasSensitiveData&&this.mode===f.nW&&this.as!==f.zD},managedWarning(){const{value:e}=this,t=e?.metadata?.labels||{},n=t[lt.pS.MANAGED_BY]||"",r=t[lt.pS.MANAGED_NAME]||t[lt.pS.INSTANCE]||"";return{show:this.mode===f.G5&&!!n,type:e?.kind||"",hasName:r?"yes":"no",appName:r,managedBy:n}},displayName(){let e=this.value.nameDisplay;return this.isProjectHelmChart&&(e=this.value.projectDisplayName),this.shouldHifenize?` - ${e}`:e},location(){const{parent:e}=this;return e?.location},hideNamespaceLocation(){return this.$store.getters["currentProduct"].hideNamespaceLocation||null===this.value.namespaceLocation},resourceExternalLink(){return this.value.resourceExternalLink}},methods:{get:rn.Jt,showActions(){this.$store.commit("action-menu/show",{resources:this.value,elem:this.$refs.actions})},toggleSensitiveData(e){this.$store.dispatch("prefs/set",{key:an.qv,value:!!e})},invokeDetailsAction(){const e=this.detailsAction;if(e){const t=this.value[e.action];t&&t.apply(this.value,[])}}}};n(60253);const ln=(0,S.A)(sn,[["render",en],["__scopeId","data-v-0f75302f"]]);var cn=ln,un=n(83288),dn=n(2722),hn=n.n(dn);const pn=!0,fn=()=>{const e=(0,_.lq)();return(0,r.computed)(()=>{var t,n;const r=(0,v.Pj)(),{fullVersion:i}=(0,un.hQ)(r),a=hn().coerce(i)||{version:"0.0.0"};return!!hn().gte(a.version,"2.12.0")&&(pn?"true"!==(null===(t=null===e||void 0===e?void 0:e.query)||void 0===t?void 0:t[f.qx]):"false"===(null===(n=null===e||void 0===e?void 0:e.query)||void 0===n?void 0:n[f.qx]))})};var mn=(0,r.defineComponent)({__name:"index",props:{value:{default:()=>({})},mode:{default:"create"},realMode:{default:"create"},as:{default:f.zD},hasGraph:{type:Boolean,default:!1},hasDetail:{type:Boolean,default:!1},hasEdit:{type:Boolean,default:!1},storeOverride:{default:void 0},resource:{default:void 0},resourceSubtype:{default:void 0},parentRouteOverride:{default:void 0},canViewYaml:{type:Boolean,default:!1}},setup(e){const t=e,n=fn(),i=(0,r.computed)(()=>t.mode===f.nW),a=(0,r.computed)(()=>n.value&&i.value);return(e,n)=>a.value?((0,r.openBlock)(),(0,r.createBlock)(Mt,{key:0,value:t.value,resourceSubtype:t.resourceSubtype,isCustomDetailOrEdit:t.hasDetail||t.hasEdit},null,8,["value","resourceSubtype","isCustomDetailOrEdit"])):((0,r.openBlock)(),(0,r.createBlock)(cn,(0,r.normalizeProps)((0,r.mergeProps)({key:1},t)),{default:(0,r.withCtx)(()=>[(0,r.renderSlot)(e.$slots,"default")]),_:3},16))}});n(53958);const gn=(0,S.A)(mn,[["__scopeId","data-v-7f6314f2"]]);var vn=gn;const bn={key:0,class:"labels"},yn={class:"label"},_n={key:1,class:"description"},wn={class:"label"},En={class:"content"},Sn={key:2},kn={class:"label"},xn={key:1},An={key:3,class:"labels"},Cn={class:"tags"},Tn={class:"label"},Nn={key:1},Rn={key:0},On={key:2},In={key:4,class:"annotations"},Ln={class:"label"},Dn={key:0};function Pn(e,t,n,i,a,o){const s=(0,r.resolveComponent)("router-link"),l=(0,r.resolveComponent)("Tag"),c=(0,r.resolveComponent)("DetailText"),u=(0,r.resolveComponent)("ExtensionPanel"),d=(0,r.resolveDirective)("clean-tooltip");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(["detail-top",{empty:o.isEmpty}])},[o.hasNamespaces?((0,r.openBlock)(),(0,r.createElementBlock)("div",bn,[(0,r.createElementVNode)("span",yn,(0,r.toDisplayString)(e.t("resourceDetail.detailTop.namespaces"))+": ",1),(0,r.createElementVNode)("span",null,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(o.namespaces,e=>((0,r.openBlock)(),(0,r.createBlock)(s,{key:e.name,to:e.detailLocation,class:"namespaceLinkList"},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.name),1)]),_:2},1032,["to"]))),128))])])):(0,r.createCommentVNode)("",!0),o.description?((0,r.openBlock)(),(0,r.createElementBlock)("div",_n,[(0,r.createElementVNode)("span",wn,(0,r.toDisplayString)(e.t("resourceDetail.detailTop.description"))+": ",1),(0,r.createElementVNode)("span",En,(0,r.toDisplayString)(o.description),1)])):(0,r.createCommentVNode)("",!0),o.hasDetails?((0,r.openBlock)(),(0,r.createElementBlock)("div",Sn,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(o.details,(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:t,class:"details"},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e,(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:t,class:"detail"},[(0,r.createElementVNode)("span",kn,(0,r.toDisplayString)(e.label)+": ",1),e.formatter?((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.formatter),(0,r.mergeProps)({key:0,value:e.content},{ref_for:!0},e.formatterOpts),null,16,["value"])):((0,r.openBlock)(),(0,r.createElementBlock)("span",xn,(0,r.toDisplayString)(e.content),1))]))),128))]))),128))])):(0,r.createCommentVNode)("",!0),o.hasLabels?((0,r.openBlock)(),(0,r.createElementBlock)("div",An,[(0,r.createElementVNode)("div",Cn,[(0,r.createElementVNode)("span",Tn,(0,r.toDisplayString)(e.t("resourceDetail.detailTop.labels"))+": ",1),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(o.labels,(e,t)=>((0,r.openBlock)(),(0,r.createBlock)(l,{key:t},{default:(0,r.withCtx)(()=>[o.internalIcons[t]?((0,r.openBlock)(),(0,r.createElementBlock)("i",{key:0,class:(0,r.normalizeClass)(["icon",o.internalIcons[t]])},null,2)):(0,r.createCommentVNode)("",!0),o.internalTooltips[t]?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("span",Nn,[(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(o.internalTooltips[t]?o.internalTooltips[t]:t),1),a.showAllLabels?((0,r.openBlock)(),(0,r.createElementBlock)("span",Rn,": "+(0,r.toDisplayString)(t),1)):(0,r.createCommentVNode)("",!0)])),[[d,e?`${t} : ${e}`:t]]):((0,r.openBlock)(),(0,r.createElementBlock)("span",On,(0,r.toDisplayString)(e?`${t} : ${e}`:t),1))]),_:2},1024))),128)),o.showFilteredSystemLabels?((0,r.openBlock)(),(0,r.createElementBlock)("a",{key:0,href:"#",class:"detail-top__label-button",onClick:t[0]||(t[0]=(0,r.withModifiers)((...e)=>o.toggleLabels&&o.toggleLabels(...e),["prevent"]))},(0,r.toDisplayString)(e.t("resourceDetail.detailTop."+(a.showAllLabels?"hideLabels":"showLabels"))),1)):(0,r.createCommentVNode)("",!0)])])):(0,r.createCommentVNode)("",!0),o.hasAnnotations?((0,r.openBlock)(),(0,r.createElementBlock)("div",In,[(0,r.createElementVNode)("span",Ln,(0,r.toDisplayString)(e.t("resourceDetail.detailTop.annotations"))+": ",1),(0,r.createElementVNode)("a",{href:"#",onClick:t[1]||(t[1]=(0,r.withModifiers)((...e)=>o.toggleAnnotations&&o.toggleAnnotations(...e),["prevent"]))},(0,r.toDisplayString)(e.t("resourceDetail.detailTop."+(a.annotationsVisible?"hideAnnotations":"showAnnotations"),{annotations:o.annotationCount})),1),a.annotationsVisible?((0,r.openBlock)(),(0,r.createElementBlock)("div",Dn,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(o.annotations,(e,t)=>((0,r.openBlock)(),(0,r.createBlock)(c,{key:t,class:"annotation",value:e,label:t},null,8,["value","label"]))),128))])):(0,r.createCommentVNode)("",!0)])):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(u,{resource:n.value,type:a.extensionType,location:a.extensionLocation},null,8,["resource","type","location"])],2)}var Mn=n(8529),Bn=n(3514),Fn=n.n(Bn),$n=n(15495),Un={components:{DetailText:$n.A,Tag:Mn.A,ExtensionPanel:B.A},props:{value:{type:Object,default:()=>({})},moreDetails:{type:Array,default:()=>[]},tooltips:{type:Object,default:()=>({})},icons:{type:Object,default:()=>({})}},data(){return{extensionType:M.c7.PANEL,extensionLocation:M.W7.DETAIL_TOP,annotationsVisible:!1,showAllLabels:!1,view:f.nW}},computed:{namespaces(){return(this.value?.namespaces||[]).map(e=>({name:e?.metadata?.name,detailLocation:e.detailLocation}))},details(){const e=[...this.moreDetails||[],...this.value?.details||[]].filter(e=>e.separator||!!`${e.content}`&&void 0!==e.content&&null!==e.content),t=[];let n=[];return e.forEach(e=>{e.separator?(t.push(n),n=[]):n.push(e)}),n.length&&t.push(n),t},labels(){return this.showAllLabels||!this.showFilteredSystemLabels?this.value?.labels||{}:this.value?.filteredSystemLabels},internalTooltips(){return this.value?.detailTopTooltips||this.tooltips},internalIcons(){return this.value?.detailTopIcons||this.icons},annotations(){return this.value?.annotations||{}},description(){return this.value?.description},hasDetails(){return!Fn()(this.details)},hasLabels(){return!Fn()(this.labels)},hasAnnotations(){return!Fn()(this.annotations)},hasDescription(){return!Fn()(this.description)},hasNamespaces(){return!Fn()(this.namespaces)},annotationCount(){return Object.keys(this.annotations||{}).length},isEmpty(){const e=this.hasDetails||this.hasLabels||this.hasAnnotations||this.hasDescription||this.hasNamespaces;return!e},showFilteredSystemLabels(){if(this.value?.labels&&this.value?.filteredSystemLabels){const e=Object.keys(this.value.labels).length,t=Object.keys(this.value.filteredSystemLabels).length;return e!==t}return!1}},methods:{toggleLabels(){this.showAllLabels=!this.showAllLabels},toggleAnnotations(e){this.annotationsVisible=!this.annotationsVisible}}};n(39066);const jn=(0,S.A)(Un,[["render",Pn]]);var Vn=jn,Kn=n(27542),Gn=n(99726),Hn=n(91452),zn=n(4364);function qn(e){return e.query?.mode===f.HC?f.HC:e.params?.id?e.query.mode||f.nW:f.YQ}async function Xn(e,t){let n;const r={headers:{accept:"application/yaml"}};return t.hasLink("view")&&(n=(await t.followLink("view",r)).data),t.cleanForDownload(n)}var Wn={emits:["input"],components:{Loading:h.A,DetailTop:Vn,ResourceYaml:p.A,Masthead:vn,IconMessage:Kn.A,Banner:b.l},mixins:[d.A],props:{storeOverride:{type:String,default:null},resourceOverride:{type:String,default:null},parentRouteOverride:{type:String,default:null},flexContent:{type:Boolean,default:!1},componentTestid:{type:String,default:"resource-details"},errorsMap:{type:Object,default:null}},async fetch(){const e=this.$store,t=this.$route,n=t.params;let r=this.resourceOverride||n.resource;const i=this.storeOverride||e.getters["currentStore"](r),a=this.realMode;let{namespace:o,id:s}=n;const l=[f.dT,f.HC,f.wZ].includes(a)?f.YQ:a,c=e.getters["type-map/hasCustomDetail"](r,s),u=e.getters["type-map/hasCustomEdit"](r,s),d=e.getters[`${i}/all`](m.yx),h=t.query[f.AS];let p,v=!1;l!==f.nW||!c||h&&h!==f.fS?p=!u||h&&h!==f.au?f.zD:f.au:(p=f.fS,(0,Hn.L)()),this.as=p;const b=e.getters["type-map/optionsFor"](r);this.showMasthead=![f.YQ,f.G5].includes(l)||b.resourceEditMasthead;const y=b.canYaml;b.resource&&(r=b.resource);const _=e.getters[`${i}/schemaFor`](r);let w,E,S,k;if(a===f.YQ||a===f.HC){o||(o=e.getters["defaultNamespace"]);const t={type:r};_?.attributes?.namespaced&&(t.metadata={namespace:o}),S=await e.dispatch(`${i}/create`,t),E=await e.dispatch(`${i}/clone`,{resource:S}),w=await e.dispatch(`${i}/clone`,{resource:S}),!0===w.forceYaml&&(p=f.zD,this.as=p),p===f.zD&&(_?.fetchResourceFields&&await _.fetchResourceFields(),k=(0,g.mH)(d,r,t))}else{let t=s;_.attributes?.namespaced&&o&&(t=`${o}/${t}`);try{S=await e.dispatch(`${i}/find`,{type:r,id:t,opt:{watch:!0}})}catch(A){404!==A.status&&403!==A.status||e.dispatch("loadingError",new Error(this.t("nav.failWhale.resourceIdNotFound",{resource:r,fqid:t},!0))),zn.debug(`Could not find '${r}' with id '${s}''`,A),S={},v=t}try{w=a===f.nW?S:await e.dispatch(`${i}/clone`,{resource:S}),E=await e.dispatch(`${i}/clone`,{resource:S}),p===f.zD&&(k=await Xn(this.$store,S))}catch(A){this.errors.push(A)}if(p===f.zD)try{k=await Xn(this.$store,S)}catch(A){this.errors.push(A)}[f.dT,f.HC,f.wZ].includes(a)&&(w.cleanForNew(),k=w.cleanYaml(k,a))}try{w=await e.dispatch(`${i}/cleanForDetail`,w)}catch(A){this.errors.push(A)}const x={hasCustomDetail:c,hasCustomEdit:u,canViewYaml:y,resourceType:r,as:p,yaml:k,initialModel:E,liveModel:S,mode:l,value:w,notFound:v};for(const f in x)this[f]=x[f];this.mode===f.YQ&&this.value.applyDefaults(this,a)},data(){return{resourceSubtype:null,hasCustomDetail:null,hasCustomEdit:null,resourceType:null,asYaml:null,yaml:null,liveModel:null,initialModel:null,mode:null,as:null,value:null,model:null,notFound:null,canViewYaml:null,errors:[]}},computed:{realMode(){const e=qn(this.$route);return e},isView(){return this.mode===f.nW},isYaml(){return this.as===f.zD},isDetail(){return this.as===f.fS},offerPreview(){return this.as===f.zD&&[f.G5,f.dT,f.HC,f.wZ].includes(this.mode)},showComponent(){switch(this.as){case f.fS:return this.detailComponent;case f.au:return this.editComponent}return null},hasErrors(){return this.errors?.length&&Array.isArray(this.errors)},mappedErrors(){return this.errors?this.errorsMap||this.errors.reduce((e,t)=>({...e,[t]:{message:t?.data?.message||t,icon:null}}),{}):{}},isFullPageOverride(){return this.isView&&this.value.fullDetailPageOverride&&!this.isYaml}},watch:{$route(e,t){if(e.name!==t.name)return;const n=(0,rn.o8)(e.query),r=(0,rn.o8)(t.query);delete n[f.$y],delete r[f.$y],this.isView||(delete n[f.AS],delete r[f.AS]);const i=Object.keys((0,rn.Ui)(n,r));(i.includes(f.g)||i.includes(f.AS))&&this.$fetch()},async"value.metadata.resourceVersion"(e,t){this.mode===f.nW&&this.as===f.zD&&e&&t&&e!==t&&(this.yaml=await Xn(this.$store,this.liveModel))}},created(){this.configureResource()},methods:{stringify:Gn.As,setSubtype(e){this.resourceSubtype=e},keyAction(e){const t=this.liveModel;t?.[e]&&t[e]()},closeError(e){this.errors=this.errors.filter((t,n)=>n!==e)},onYamlError(e){this.errors=[];const t=Array.isArray(e)?e:[e];t.forEach(e=>{-1===this.errors.indexOf(e)&&this.errors.push(e)})},configureResource(e="",t=null){const n=e||this.$route.params.id,r=t||this.resourceOverride||this.$route.params.resource,i=this.$store.getters["type-map/optionsFor"](r),a=i.resourceDetail||i.resource||r,o=i.resourceEdit||i.resource||r;this.detailComponent=this.$store.getters["type-map/importDetail"](a,n),this.editComponent=this.$store.getters["type-map/importEdit"](o,n)}}};n(48587);const Yn=(0,S.A)(Wn,[["render",u],["__scopeId","data-v-64dc1332"]]);var Qn=Yn},95650:function(e,t,n){"use strict";n.d(t,{A:function(){return x}});var r=n(9274);const i={class:"with-subheader"},a={class:"title"},o={class:"m-0"},s={class:"sub-header"},l={class:"actions-container"},c={class:"actions"};function u(e,t,n,u,d,h){const p=(0,r.resolveComponent)("TypeDescription"),f=(0,r.resolveComponent)("TabTitle"),m=(0,r.resolveComponent)("Favorite"),g=(0,r.resolveComponent)("ResourceLoadingIndicator"),v=(0,r.resolveComponent)("router-link");return(0,r.openBlock)(),(0,r.createElementBlock)("header",i,[(0,r.renderSlot)(e.$slots,"typeDescription",{},()=>[(0,r.createVNode)(p,{resource:n.resource},null,8,["resource"])],!0),(0,r.createElementVNode)("div",a,[(0,r.createElementVNode)("h1",o,[(0,r.createVNode)(f,null,{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(h._typeDisplay),1)]),_:1}),t[0]||(t[0]=(0,r.createTextVNode)()),e.isExplorer?((0,r.openBlock)(),(0,r.createBlock)(m,{key:0,resource:n.favoriteResource||n.resource},null,8,["resource"])):(0,r.createCommentVNode)("",!0)]),n.showIncrementalLoadingIndicator?((0,r.openBlock)(),(0,r.createBlock)(g,{key:0,resources:n.loadResources,indeterminate:n.loadIndeterminate},null,8,["resources","indeterminate"])):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",s,[(0,r.renderSlot)(e.$slots,"subHeader",{},void 0,!0)]),(0,r.createElementVNode)("div",l,[(0,r.renderSlot)(e.$slots,"actions",{},()=>[(0,r.createElementVNode)("div",c,[(0,r.renderSlot)(e.$slots,"extraActions",{},void 0,!0),(0,r.renderSlot)(e.$slots,"createButton",{},()=>[d.hasEditComponent&&h._isCreatable?((0,r.openBlock)(),(0,r.createBlock)(v,{key:0,to:h._createLocation,class:"btn role-primary","data-testid":n.componentTestid+"-create"},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(h._createButtonlabel),1)]),_:1},8,["to","data-testid"])):h._isYamlCreatable?((0,r.openBlock)(),(0,r.createBlock)(v,{key:1,to:h._yamlCreateLocation,class:"btn role-primary","data-testid":n.componentTestid+"-create-yaml"},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("resourceList.head.createFromYaml")),1)]),_:1},8,["to","data-testid"])):(0,r.createCommentVNode)("",!0)],!0)])],!0)])])}var d=n(65359);const h=["aria-pressed","aria-label"];function p(e,t,n,i,a,o){return(0,r.openBlock)(),(0,r.createElementBlock)("i",{tabindex:0,"aria-pressed":!!o.isFavorite,class:(0,r.normalizeClass)(["favorite icon",{"icon-star-open":!o.isFavorite,"icon-star":o.isFavorite}]),role:"button","aria-label":o.ariaLabel,onClick:t[0]||(t[0]=(0,r.withModifiers)((...e)=>o.toggle&&o.toggle(...e),["stop","prevent"])),onKeydown:[t[1]||(t[1]=(0,r.withKeys)((0,r.withModifiers)((...e)=>o.toggle&&o.toggle(...e),["prevent"]),["enter"])),t[2]||(t[2]=(0,r.withKeys)((0,r.withModifiers)((...e)=>o.toggle&&o.toggle(...e),["prevent"]),["space"]))]},null,42,h)}var f={props:{resource:{type:String,required:!0}},computed:{isFavorite(){return this.$store.getters["type-map/isFavorite"](this.resource)},ariaLabel(){return this.t("resourceDetail.masthead.ariaLabel."+(this.isFavorite?"unfavoriteAction":"favoriteAction"),{resource:this.resource})}},methods:{toggle(){this.isFavorite?this.$store.dispatch("type-map/removeFavorite",this.resource):this.$store.dispatch("type-map/addFavorite",this.resource)}}},m=(n(44392),n(47433));const g=(0,m.A)(f,[["render",p],["__scopeId","data-v-bc643bc4"]]);var v=g,b=n(89559),y=n(76978),_=n(14220),w=n(44453),E=n(22896),S={name:"MastheadResourceList",components:{Favorite:v,TypeDescription:b.A,ResourceLoadingIndicator:w.A,TabTitle:E.A},props:{resource:{type:String,required:!0},favoriteResource:{type:String,default:null},schema:{type:Object,default:null},typeDisplay:{type:String,default:null},isCreatable:{type:Boolean,default:null},isYamlCreatable:{type:Boolean,default:null},createLocation:{type:Object,default:null},yamlCreateLocation:{type:Object,default:null},createButtonLabel:{type:String,default:null},loadResources:{type:Array,default:()=>[]},loadIndeterminate:{type:Boolean,default:!1},showIncrementalLoadingIndicator:{type:Boolean,default:!1},componentTestid:{type:String,default:"masthead"}},data(){const e={...this.$route.params};let t,n="",r=!1;const i=this.$extension.getPlugins();Object.keys(i).forEach(e=>{i[e].productNames.includes(this.$store.getters["productId"])&&(n=e)}),n&&i[n]?.topLevelProduct?(t={name:`${this.$route.name}-create`,params:{...e,product:this.$store.getters["productId"]}},r=!0):t={name:`${this.$route.name}-create`,params:e};const a=this.$store.getters["type-map/hasCustomEdit"](this.resource),o={name:`${this.$route.name}-create`,params:e,query:{[_.AS]:_.zD}};return{overrideCreateLocationByExtension:r,formRoute:t,yamlRoute:o,hasEditComponent:a}},computed:{get:y.Jt,...(0,d.L8)(["isExplorer","currentCluster"]),resourceName(){return this.schema?this.$store.getters["type-map/labelFor"](this.schema):this.resource},_typeDisplay(){return null!==this.typeDisplay?this.typeDisplay:this.schema?this.$store.getters["type-map/labelFor"](this.schema,99):"?"},_isYamlCreatable(){return null!==this.isYamlCreatable?this.isYamlCreatable:this.schema&&this._isCreatable&&this.$store.getters["type-map/optionsFor"](this.resource).canYaml},_isCreatable(){return null!==this.isCreatable?this.isCreatable:!(this.schema&&this.schema?.collectionMethods&&!this.schema?.collectionMethods.find(e=>["blocked-post","post"].includes(e.toLowerCase())))&&this.$store.getters["type-map/optionsFor"](this.resource).isCreatable},_createLocation(){return this.overrideCreateLocationByExtension?this.formRoute:this.createLocation||this.formRoute},_yamlCreateLocation(){return this.yamlCreateLocation||this.yamlRoute},_createButtonlabel(){const e=this.$store.getters["type-map/optionsFor"](this.resource).listCreateButtonLabelKey;return e?this.t(e):this.createButtonLabel||this.t("resourceList.head.create")}}};n(57704);const k=(0,m.A)(S,[["render",u],["__scopeId","data-v-96ccbc92"]]);var x=k},44453:function(e,t,n){"use strict";n.d(t,{A:function(){return g}});var r=n(9274);const i={key:0,class:"ml-10 resource-loading-indicator"},a={class:"inner"},o={class:"resource-loader"},s={class:"rl-bg"},l={key:0},c={class:"rl-fg"},u={key:0};function d(e,t,n,d,h,p){return p.count&&!p.haveAll?((0,r.openBlock)(),(0,r.createElementBlock)("div",i,[(0,r.createElementVNode)("div",a,[(0,r.createElementVNode)("div",o,[(0,r.createElementVNode)("div",s,[t[0]||(t[0]=(0,r.createElementVNode)("i",{class:"icon icon-spinner icon-spin"},null,-1)),(0,r.createElementVNode)("span",null,[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("resourceLoadingIndicator.loading"))+" ",1),n.indeterminate?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("span",l,(0,r.toDisplayString)(p.count)+" / "+(0,r.toDisplayString)(p.total),1))])])]),(0,r.createElementVNode)("div",{class:"resource-loader",style:(0,r.normalizeStyle)({width:p.width})},[(0,r.createElementVNode)("div",c,[t[1]||(t[1]=(0,r.createElementVNode)("i",{class:"icon icon-spinner icon-spin"},null,-1)),(0,r.createElementVNode)("span",null,[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("resourceLoadingIndicator.loading"))+" ",1),n.indeterminate?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("span",u,(0,r.toDisplayString)(p.count)+" / "+(0,r.toDisplayString)(p.total),1))])])],4)])])):(0,r.createCommentVNode)("",!0)}var h=n(35664),p={name:"ResourceLoadingIndicator",props:{resources:{type:Array,required:!0},indeterminate:{type:Boolean,default:!1}},data(){const e=this.$store.getters["currentStore"](this.resource);return{inStore:e}},computed:{rowsCount(){if(this.resources.length>0){const e=this.$store.getters[`${this.inStore}/all`](this.resources[0])||[];return(e||[]).length}return 0},haveAll(){return this.resources.reduce((e,t)=>e&&this.$store.getters[`${this.inStore}/haveAll`](t),!0)},total(){const e=this.$store.getters[`${this.inStore}/all`](h.i2);return this.resources.reduce((t,n)=>{const r=e?.[0]?.counts?.[n],i=r?.summary?.count,a=i||0;return t+a},0)},count(){return this.resources.reduce((e,t)=>e+(this.$store.getters[`${this.inStore}/all`](t)||[]).length,0)},width(){const e=Math.ceil(this.count/this.total*100);return`${e}%`}}},f=(n(97876),n(47433));const m=(0,f.A)(p,[["render",d],["__scopeId","data-v-6457c305"]]);var g=m},21758:function(e,t,n){"use strict";n.d(t,{A:function(){return w}});var r=n(9274);const i={key:2,class:"outlet"},a={key:1};function o(e,t,n,o,s,l){const c=(0,r.resolveComponent)("IconMessage"),u=(0,r.resolveComponent)("Masthead"),d=(0,r.resolveComponent)("ExtensionPanel"),h=(0,r.resolveComponent)("ResourceTable");return e.namespaceFilterRequired?((0,r.openBlock)(),(0,r.createBlock)(c,{key:0,vertical:!0,subtle:!1,icon:"icon-filter_alt"},{message:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("resourceList.nsFiltering")),1)]),_:1})):e.paginationNsFilterRequired?((0,r.openBlock)(),(0,r.createBlock)(c,{key:1,vertical:!0,subtle:!1,icon:"icon-filter_alt"},{message:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("resourceList.nsFilteringGeneric")),1)]),_:1})):((0,r.openBlock)(),(0,r.createElementBlock)("div",i,[s.showMasthead?((0,r.openBlock)(),(0,r.createBlock)(u,{key:0,"type-display":s.customTypeDisplay,schema:s.schema,resource:s.resource,"show-incremental-loading-indicator":l.showIncrementalLoadingIndicator,"load-resources":s.loadResources,"load-indeterminate":s.loadIndeterminate},{extraActions:(0,r.withCtx)(()=>[(0,r.renderSlot)(e.$slots,"extraActions",{},void 0,!0)]),_:3},8,["type-display","schema","resource","show-incremental-loading-indicator","load-resources","load-indeterminate"])):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(d,{resource:{},type:s.extensionType,location:s.extensionLocation},null,8,["type","location"]),s.hasListComponent?((0,r.openBlock)(),(0,r.createElementBlock)("div",a,[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.listComponent),(0,r.mergeProps)({"incremental-loading-indicator":l.showIncrementalLoadingIndicator,rows:e.rows},e.$data),null,16,["incremental-loading-indicator","rows"]))])):((0,r.openBlock)(),(0,r.createBlock)(h,{key:2,schema:s.schema,rows:e.rows,"alt-loading":e.canPaginate&&!e.isFirstLoad,loading:e.loading,headers:l.headers,"group-by":l.groupBy,"has-advanced-filtering":n.hasAdvancedFiltering,"adv-filter-hide-labels-as-cols":n.advFilterHideLabelsAsCols,"adv-filter-prevent-filtering-labels":n.advFilterPreventFilteringLabels,"use-query-params-for-simple-filtering":s.useQueryParamsForSimpleFiltering,"force-update-live-and-delayed":e.forceUpdateLiveAndDelayed,"external-pagination-enabled":e.canPaginate,"external-pagination-result":e.paginationResult,onPaginationChanged:e.paginationChanged},null,8,["schema","rows","alt-loading","loading","headers","group-by","has-advanced-filtering","adv-filter-hide-labels-as-cols","adv-filter-prevent-filtering-labels","use-query-params-for-simple-filtering","force-update-live-and-delayed","external-pagination-enabled","external-pagination-result","onPaginationChanged"]))]))}var s=n(76996),l=n(87619),c=n(95650),u=n(44453),d=n(23667),h=n(27542),p=n(90703),f=n(31915),m=n(10312),g=n(68851),v=n(10257),b={name:p.v,components:{Loading:l.A,ResourceTable:s.A,Masthead:c.A,ResourceLoadingIndicator:u.A,IconMessage:h.A,ExtensionPanel:m.A},mixins:[d.A],props:{hasAdvancedFiltering:{type:Boolean,default:!1},advFilterHideLabelsAsCols:{type:Boolean,default:!1},advFilterPreventFilteringLabels:{type:Boolean,default:!1}},async fetch(){const e=this.$store,t=this.resource,n=this.schema;if(this.hasListComponent){const e=this.listComponent,n=await e.__asyncLoader();if(n?.typeDisplay&&(this.customTypeDisplay=n.typeDisplay.apply(this)),(n?.fetch||n?.components?.["PaginatedResourceTable"])&&(this.componentWillFetch=!0),n?.$loadingResources){const{loadResources:e,loadIndeterminate:r}=n?.$loadingResources(this.$route,this.$store);this.loadResources=e||[t],this.loadIndeterminate=r||!1}}if(!this.componentWillFetch){if(!n)return void e.dispatch("loadingError",new Error(this.t("nav.failWhale.resourceListNotFound",{resource:t},!0)));this.namespaceFilterRequired||this.canPaginate&&!this.refreshFlag||await this.$fetchType(t)}},beforeMount(){if(!this.hasListComponent){const e=this.$store.getters["currentStore"](this.resource),t=this.$store.getters[`${e}/canList`](this.resource);t||this.$store.dispatch("loadingError",new Error(this.t("nav.failWhale.resourceListNotListable",{resource:this.schema?.id||this.resource||"unknown"},!0)))}},data(){const e=this.$store.getters,t={...this.$route.params},n=t.resource,r=e["type-map/hasCustomList"](n),i=e["currentStore"](n),a=e[`${i}/schemaFor`](n),o=e["type-map/optionsFor"](n).showListMasthead;return{schema:a,overrideInStore:void 0,hasListComponent:r,showMasthead:void 0===o||o,resource:n,extensionType:f.c7.PANEL,extensionLocation:f.W7.RESOURCE_LIST,loadResources:[n],componentWillFetch:!1,manualRefreshInit:!1,watch:!1,force:!1,customTypeDisplay:null,loadIndeterminate:!1,useQueryParamsForSimpleFiltering:!0}},computed:{headers(){return this.hasListComponent||!this.schema?[]:this.$store.getters["type-map/headersFor"](this.schema,this.canPaginate)},groupBy(){return this.$store.getters["type-map/groupByFor"](this.schema)},showIncrementalLoadingIndicator(){return v.A.incrementalLoadingUtils.isEnabled(this.calcCanPaginate(),this.perfConfig)}},watch:{namespaceFilter(e,t){if(e&&!this.componentWillFetch){if((0,g.P1)(e,t))return;this.$fetchType(this.resource)}},pagination(e,t){!e||this.componentWillFetch||this.paginationEqual(e,t)||this.$fetchType(this.resource)},rows(e){this.pagination&&this.pagination.page>1&&0===e.length&&this.setPagination({...this.pagination,page:this.pagination.page-1})}},created(){let e=!1;const t=this.$route.params.resource,n=this.$store.getters["type-map/hasCustomList"](t);n&&(e=this.$store.getters["type-map/importList"](t)),this.listComponent=e}},y=(n(47383),n(47433));const _=(0,y.A)(b,[["render",o],["__scopeId","data-v-377cbd78"]]);var w=_},76996:function(e,t,n){"use strict";n.d(t,{A:function(){return C},S:function(){return S}});var r=n(9274);const i={class:"group-tab"},a={key:0,class:"count"};function o(e,t,n,o,s,l){const c=(0,r.resolveComponent)("ButtonGroup"),u=(0,r.resolveComponent)("ToggleSwitch"),d=(0,r.resolveComponent)("SortableTable"),h=(0,r.resolveDirective)("clean-html"),p=(0,r.resolveDirective)("shortkey");return(0,r.openBlock)(),(0,r.createBlock)(d,(0,r.mergeProps)({ref:"table"},e.$attrs,{headers:l._headers,rows:l.filteredRows,loading:n.loading,"alt-loading":n.altLoading,"group-by":l.computedGroupBy,group:l.group,"group-options":l._groupOptions,search:n.search,paging:!0,"paging-params":l.parsedPagingParams,"paging-label":n.pagingLabel,"rows-per-page":n.rowsPerPage,"row-actions":n.rowActions,"table-actions":l._showBulkActions,"overflow-x":n.overflowX,"overflow-y":n.overflowY,"get-custom-detail-link":n.getCustomDetailLink,"has-advanced-filtering":n.hasAdvancedFiltering,"adv-filter-hide-labels-as-cols":n.advFilterHideLabelsAsCols,"adv-filter-prevent-filtering-labels":n.advFilterPreventFilteringLabels,"key-field":n.keyField,sortGeneration:s.sortGeneration,"sort-generation-fn":l.safeSortGenerationFn,"use-query-params-for-simple-filtering":n.useQueryParamsForSimpleFiltering,"force-update-live-and-delayed":n.forceUpdateLiveAndDelayed,"external-pagination-enabled":n.externalPaginationEnabled,"external-pagination-result":n.externalPaginationResult,"mandatory-sort":l._mandatorySort,onClickedActionButton:l.handleActionButtonClick,onGroupValueChange:t[5]||(t[5]=e=>l.group=e),onEnter:l.handleEnterKeyPress,onSortableTableInteraction:l.handleSortableTableInteraction}),(0,r.createSlots)({"group-by":(0,r.withCtx)(({group:e})=>[(0,r.createElementVNode)("div",i,[(0,r.withDirectives)((0,r.createElementVNode)("span",null,null,512),[[h,e.ref]]),l.showNamespaceCounts&&Number.isInteger(l.namespaceCounts[e.rows?.[0]?.metadata?.namespace]?.count)?((0,r.openBlock)(),(0,r.createElementBlock)("span",a," ("+(0,r.toDisplayString)(l.namespaceCounts[e.rows?.[0]?.metadata?.namespace]?.count)+") ",1)):(0,r.createCommentVNode)("",!0)])]),shortkeys:(0,r.withCtx)(()=>[(0,r.withDirectives)((0,r.createElementVNode)("button",{class:"hide",onShortkey:t[1]||(t[1]=e=>l.keyAction("edit"))},null,544),[[p,["e"],void 0,{once:!0}]]),(0,r.withDirectives)((0,r.createElementVNode)("button",{class:"hide",onShortkey:t[2]||(t[2]=e=>l.keyAction("yaml"))},null,544),[[p,["y"],void 0,{once:!0}]]),l._showBulkActions?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:0,class:"hide",onShortkey:t[3]||(t[3]=e=>l.keyAction("remove"))},null,544)),[[p,["del"],void 0,{once:!0}]]):(0,r.createCommentVNode)("",!0),l._showBulkActions?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:1,class:"hide",onShortkey:t[4]||(t[4]=e=>l.keyAction("remove"))},null,544)),[[p,["backspace"],void 0,{once:!0}]]):(0,r.createCommentVNode)("",!0)]),_:2},[l.showGrouping&&l._groupOptions.length>1?{name:"header-middle",fn:(0,r.withCtx)(()=>[(0,r.renderSlot)(e.$slots,"more-header-middle",{},void 0,!0),(0,r.createVNode)(c,{value:l.group,"onUpdate:value":t[0]||(t[0]=e=>l.group=e),options:l._groupOptions},null,8,["value","options"])]),key:"0"}:void 0,l.showGrouping?{name:"header-right",fn:(0,r.withCtx)(()=>[(0,r.renderSlot)(e.$slots,"header-right",{},void 0,!0)]),key:"1"}:void 0,n.externalPaginationEnabled?{name:"watch-controls",fn:(0,r.withCtx)(()=>[s.listAutoRefreshToggleEnabled?((0,r.openBlock)(),(0,r.createBlock)(u,{key:0,class:"auto-update",value:e.watching,name:"label-system-toggle","on-label":e.t("resourceTable.autoRefresh.label"),"onUpdate:value":e.toggleWatch},null,8,["value","on-label","onUpdate:value"])):(0,r.createCommentVNode)("",!0)]),key:"2"}:void 0,(0,r.renderList)(e.$slots,(t,n)=>({name:n,fn:(0,r.withCtx)(t=>[(0,r.renderSlot)(e.$slots,n,(0,r.normalizeProps)((0,r.guardReactiveProps)(t)),void 0,!0)])}))]),1040,["headers","rows","loading","alt-loading","group-by","group","group-options","search","paging-params","paging-label","rows-per-page","row-actions","table-actions","overflow-x","overflow-y","get-custom-detail-link","has-advanced-filtering","adv-filter-hide-labels-as-cols","adv-filter-prevent-filtering-labels","key-field","sortGeneration","sort-generation-fn","use-query-params-for-simple-filtering","force-update-live-and-delayed","external-pagination-enabled","external-pagination-result","mandatory-sort","onClickedActionButton","onEnter","onSortableTableInteraction"])}var s=n(65359),l=n(76978),c=n(91462),u=n(96858),d=n(59986),h=n(68774),p=n(35664),f=n(68851),m=n(31915),g=n(25659),v=n(2614),b=n(88343),y={props:{schema:{type:Object,default:null}},data(){const e=this.schema?.id?{type:this.schema.id,mode:b.g.RESOURCE_CHANGES}:void 0;return{watchOpts:e}},computed:{watching(){return this.$store.getters[`${this.inStore}/watchStarted`](this.watchOpts)}},methods:{toggleWatch(e){e?this.$store.dispatch(`${this.inStore}/resyncWatch`,{...this.watchOpts,resourceType:this.watchOpts?.type}):this.$store.dispatch(`${this.inStore}/unwatch`,this.watchOpts)}}},_=n(15092),w=n(4364);const E="namespace",S=(e,t)=>{if(!e)return null;const n=e.id;let r=n;const i=t.getters["currentStore"](n),a=t.getters[`${i}/currentGeneration`]?.(n);a&&(r+=`/${a}`);const o=t.getters["activeNamespaceCacheKey"];return o?`${r}/${o}`:r};var k={name:"ResourceTable",emits:["clickedActionButton"],components:{ButtonGroup:u.A,SortableTable:d.A,ToggleSwitch:v.j},mixins:[y],props:{schema:{type:Object,default:null},rows:{type:Array,required:!0},loading:{type:Boolean,required:!1},altLoading:{type:Boolean,required:!1},keyField:{type:String,default:"_key"},headers:{type:Array,default:null},namespaced:{type:Boolean,default:null},search:{type:Boolean,default:!0},tableActions:{type:[Boolean,null],default:null},pagingLabel:{type:String,default:"sortableTable.paging.resource"},pagingParams:{type:Object,default:null},rowActions:{type:Boolean,default:!0},groupBy:{type:String,default:null},groupOptions:{type:Array,default:null},groupable:{type:Boolean,default:null},groupDefault:{type:String,default:E},groupTooltip:{type:String,default:"resourceTable.groupBy.namespace"},overflowX:{type:Boolean,default:!1},overflowY:{type:Boolean,default:!1},sortGenerationFn:{type:Function,default:null},getCustomDetailLink:{type:Function,default:null},ignoreFilter:{type:Boolean,default:!1},hasAdvancedFiltering:{type:Boolean,default:!1},advFilterHideLabelsAsCols:{type:Boolean,default:!1},advFilterPreventFilteringLabels:{type:Boolean,default:!1},useQueryParamsForSimpleFiltering:{type:Boolean,default:!1},forceUpdateLiveAndDelayed:{type:Number,default:0},externalPaginationEnabled:{type:Boolean,default:!1},externalPaginationResult:{type:Object,default:null},rowsPerPage:{type:Number,default:null},overrideInStore:{type:String,default:void 0}},data(){const e=this.overrideInStore||(this.schema?.id?this.$store.getters["currentStore"](this.schema.id):void 0);return{inStore:e,sortGeneration:void 0,listAutoRefreshToggleEnabled:_.A.listAutoRefreshToggleEnabled({rootGetters:this.$store.getters}),hasSearchFilter:!1}},watch:{filteredRows:{handler(){this.currentProduct.showWorkspaceSwitcher&&(this.sortGeneration=this.safeSortGenerationFn(this.schema,this.$store))},immediate:!0}},computed:{options(){return this.$store.getters["type-map/optionsFor"](this.schema,this.externalPaginationEnabled)},_listGroupMapped(){return this.options?.listGroups?.reduce((e,t)=>(e[t.value]=t,e),{})},_mandatorySort(){return this.options?.listMandatorySort},...(0,s.L8)(["currentProduct"]),isNamespaced(){return null!==this.namespaced?this.namespaced:!!(0,l.Jt)(this.schema,"attributes.namespaced")},showNamespaceColumn(){const e="namespace"===this.group,t=!this.showGrouping||!e;return t},_showBulkActions(){if(null!==this.tableActions)return this.tableActions;if(this.schema){const e=this.$store.getters["type-map/hideBulkActionsFor"](this.schema);return!e}return!1},_headers(){let e;const t=this.showNamespaceColumn;if(e=this.headers?this.headers.slice():this.$store.getters["type-map/headersFor"](this.schema,this.externalPaginationEnabled),this.$store.$extension?.getUIConfig){const t=(0,g.A)(this,m.c7.TABLE_COL,m.W3.RESOURCE,this.$route);t.forEach(t=>{let{column:n,paginationColumn:r}=t;this.externalPaginationEnabled&&(r?n=r:(!1===n.search||"string"===typeof n.search||Array.isArray(n.search)||"string"===typeof n.value||(w.warn(`Unable to support server-side search for extension provided column "${n.name||n.label||n.labelKey}" (column must provide \`search\` or \`value\` property containing a path to a property in the resource. search can be an array).`),n.search=!1),!1===n.sort||"string"===typeof n.sort||Array.isArray(n.sort)||(w.warn(`Unable to support server-side sort for extension provided column "${n.name||n.label||n.labelKey}" (column must provide \`sort\` property containing a path to a property, or array of paths, in the resource)`),n.sort=!1))),!n.value&&n.getValue&&(n.value=n.getValue);let i=e.length;if(e.length>0){const t=e.findIndex(e=>e.name===h.K.name);if(t>=0)i=t+1;else{const t=e.findIndex(e=>(!e.label||!e.label?.trim())&&(!e.labelKey||!e.labelKey?.trim()));t>=0&&(i=t)}}n.weight&&(n.weight<0?i=0:n.weight<i&&(i=n.weight)),e.splice(i,0,n)})}if(!t){const t=e.findIndex(e=>e.name===h.CU.name);t>=0&&e.splice(t,1)}const n=this._listGroupMapped?.[this.group];let r;if(n?.hideColumn)r=n.hideColumn;else{const e=this.groupOptions?.find(e=>e.value===this.group);r=e?.hideColumn}if(r){const t=e.findIndex(e=>e.name===r);t>=0&&e.splice(t,1)}return e},_applicableExtensionTableHooks(){if(this.$store.$extension?.getUIConfig){const e=(0,g.A)(this,m.c7.TABLE,m.vH.RESOURCE,this.$route);return e}return[]},filteredRows(){const e=this.$store.getters["isAllNamespaces"];if(!this.isNamespaced||this.ignoreFilter||this.externalPaginationEnabled||e&&!this.currentProduct?.hideSystemResources||this.inStore&&this.$store.getters[`${this.inStore}/haveNamespace`](this.schema.id)?.length)return this.rows||[];const t=this.$store.getters["namespaces"]();if(!this.rows)return[];const n=this.$store.getters["haveAllNamespace"];return this.rows.filter(e=>this.currentProduct?.hideSystemResources&&this.isNamespaced?!!t[e.metadata.namespace]&&!e.isSystemResource:!this.isNamespaced||(!!n||!!t[e.metadata.namespace]))},_group:(0,c.AN)(c.EI),group:{get(){const e=this._groupOptions.find(e=>e.value===this._group);return e?this._group:this._groupOptions.find(e=>e.value===this.groupDefault)?this.groupDefault:this._groupOptions[0]?.value||this.groupDefault||E},set(e){this._group=e}},showGrouping(){if(null===this.groupable){const e=this.$store.getters["isMultipleNamespaces"]&&this.isNamespaced,t=!!this.options?.listGroups?.length;return e||t||this.groupOptions?.length}return this.groupable||!1},computedGroupBy(){if(!this.showGrouping)return null;if(this.groupBy)return this.groupBy;if("namespace"===this.group)return"groupByLabel";const e=this._listGroupMapped?.[this.group];if(e?.field)return e.field;const t=this.groupOptions?.find(e=>e.value===this.group);return t?.field?t.field:null},_groupOptions(){if(this.groupOptions)return this.groupOptions;if(this.options?.listGroupsWillOverride&&this.options?.listGroups?.length)return this.options?.listGroups;const e=[{tooltipKey:"resourceTable.groupBy.none",icon:"icon-list-flat",value:"none"}];return this.options?.hiddenNamespaceGroupButton||e.push({tooltipKey:this.groupTooltip,icon:"icon-folder",value:"namespace"}),this.options?.listGroups?.length?e.concat(this.options.listGroups):e},parsedPagingParams(){return this.pagingParams?this.pagingParams:this.schema?{singularLabel:this.$store.getters["type-map/labelFor"](this.schema),pluralLabel:this.$store.getters["type-map/labelFor"](this.schema,99)}:{singularLabel:"",pluralLabel:""}},namespaceCounts(){if(!this.inStore||!this.schema?.id)return{};const e=this.$store.getters[`${this.inStore}/all`](p.i2)?.[0]?.counts||{};return e[this.schema.id]?.namespaces||{}},showNamespaceCounts(){return("namespace"===this.group||"metadata.namespace"===this.group)&&this.isNamespaced&&!this.hasSearchFilter}},methods:{keyAction(e){const t=this.$refs.table;if(!t)return;const n=t.selectedRows;if("remove"===e){const e=(0,f.jq)(t.availableActions,"action","promptRemove");return void(e&&(t.setBulkActionOfInterest(e),t.applyTableAction(e)))}if(1===n.length)switch(e){case"detail":n[0].goToDetail();break;case"edit":n[0].goToEdit();break;case"yaml":n[0].goToViewYaml();break}},clearSelection(){this.$refs.table.clearSelection()},safeSortGenerationFn(){return this.sortGenerationFn?this.sortGenerationFn(this.schema,this.$store):S(this.schema,this.$store)},handleActionButtonClick(e){this.$emit("clickedActionButton",e)},handleEnterKeyPress(e){"Enter"===e.key&&this.keyAction("detail")},handleSortableTableInteraction(e){this._applicableExtensionTableHooks?.length&&this._applicableExtensionTableHooks.forEach(t=>{t.tableHook&&t.tableHook(e)}),this.hasSearchFilter=!!e?.filtering?.searchQuery}}},x=(n(37915),n(47433));const A=(0,x.A)(k,[["render",o],["__scopeId","data-v-130977a6"]]);var C=A},40103:function(e,t,n){"use strict";n.d(t,{A:function(){return w}});var r=n(9274);const i={class:"root resource-yaml flex-content"},a=["disabled"];function o(e,t,n,o,s,l){const c=(0,r.resolveComponent)("YamlEditor"),u=(0,r.resolveComponent)("FileSelector"),d=(0,r.resolveComponent)("t"),h=(0,r.resolveComponent)("Footer");return(0,r.openBlock)(),(0,r.createElementBlock)("div",i,[(0,r.createVNode)(c,{ref:"yamleditor",value:s.currentYaml,"onUpdate:value":t[0]||(t[0]=e=>s.currentYaml=e),mode:n.mode,"initial-yaml-values":s.initialYaml,class:"yaml-editor flex-content","editor-mode":l.editorMode,onOnReady:l.onReady},null,8,["value","mode","initial-yaml-values","editor-mode","onOnReady"]),(0,r.renderSlot)(e.$slots,"yamlFooter",{currentYaml:s.currentYaml,showPreview:s.showPreview,yamlPreview:l.preview,yamlSave:l.save,yamlUnpreview:l.unpreview,canDiff:l.canDiff},()=>[n.showFooter?((0,r.openBlock)(),(0,r.createBlock)(h,{key:0,class:(0,r.normalizeClass)(["footer",{edit:!l.isView}]),mode:n.mode,errors:n.showErrors?s.errors:[],onCloseError:l.closeError,onSave:l.save,onDone:l.done},(0,r.createSlots)({_:2},[l.isView?void 0:{name:"left",fn:(0,r.withCtx)(()=>[(0,r.createVNode)(u,{class:"btn role-secondary",label:e.t("generic.readFromFile"),onSelected:l.onFileSelected},null,8,["label","onSelected"])]),key:"0"},l.isView?void 0:{name:"middle",fn:(0,r.withCtx)(()=>[s.showPreview?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:0,type:"button",class:"btn role-secondary",onClick:t[1]||(t[1]=(...e)=>l.unpreview&&l.unpreview(...e))},[(0,r.createVNode)(d,{k:"resourceYaml.buttons.continue"})])):n.offerPreview?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:1,disabled:!l.canDiff,type:"button",class:"btn role-secondary",onClick:t[2]||(t[2]=(...e)=>l.preview&&l.preview(...e))},[(0,r.createVNode)(d,{k:"resourceYaml.buttons.diff"})],8,a)):(0,r.createCommentVNode)("",!0)]),key:"1"}]),1032,["class","mode","errors","onCloseError","onSave","onDone"])):(0,r.createCommentVNode)("",!0)],!0)])}var s=n(20246),l=n.n(s),c=n(67850),u=n(20491),d=n(77262),h=n(2841),p=n(92043),f=n(74302),m=n(14220),g=n(8135),v=n(99726),b={emits:["error"],components:{Footer:d.A,FileSelector:u.A,YamlEditor:c.A},props:{mode:{type:String,required:!0},value:{type:Object,required:!0},initialYamlForDiff:{type:String,default:null},yaml:{type:String,required:!0},doneRoute:{type:[String,Object],default:null},offerPreview:{type:Boolean,default:!0},parentParams:{type:Object,default:null},doneOverride:{type:[Function,Object],default:null},showFooter:{type:Boolean,default:!0},showErrors:{type:Boolean,default:!0},applyHooks:{type:Function,default:null}},data(){return this.$router.applyQuery({[m.$y]:m.xz}),{initialYaml:this.initialYamlForDiff||this.yaml,currentYaml:this.yaml,showPreview:!1,errors:null,cm:null,initialReady:!0}},computed:{schema(){const e=this.$store.getters["currentStore"](this.value.type);return this.$store.getters[`${e}/schemaFor`](this.value.type)},isCreate(){return this.mode===m.YQ},isView(){return this.mode===m.nW},isEdit(){return this.mode===m.G5},editorMode(){return this.$route.query.mode===m.nW||this.isView&&(this.$route.query.mode!==m.G5||this.$route.query.mode!==m.nW)?c.j.VIEW_CODE:this.showPreview?c.j.DIFF_CODE:c.j.EDIT_CODE},canDiff(){return this.initialYaml!==this.currentYaml}},watch:{yaml(e){this.mode===m.nW&&(this.currentYaml=e)},mode(e,t){e===m.YQ&&t===m.nW&&(this.currentYaml=this.value.cleanYaml(this.yaml,e))}},methods:{onInput(e){this.currentYaml=e,this.onReady(this.cm)},onReady(e){if(!this.initialReady)return;this.initialReady=!1,this.cm=e,this.isEdit&&e.foldLinesMatching(/^status:\s*$/);try{const t=l().load(this.currentYaml),n=Object.keys(t?.metadata?.annotations||{}),r=h.VT.map(e=>(0,p.OF)(e));let i=!1;for(const e of n){if(i)break;for(const t of r)if(e.match(t)){i=!0;break}}i&&e.foldLinesMatching(/^\s+annotations:\s*$/)}catch(n){}e.foldLinesMatching(/managedFields/),this.value?.yamlFolding&&this.value.yamlFolding.forEach(t=>e.foldYaml(t));const t=e.getMode().fold;e.getMode().fold="yamlcomments",e.execCommand("foldAll"),e.getMode().fold=t},updateValue(e){this.$refs.yamleditor.updateValue(e)},preview(){this.updateValue(this.currentYaml),this.showPreview=!0,this.$router.applyQuery({[m.$y]:m.Qp})},unpreview(){this.showPreview=!1,this.$router.applyQuery({[m.$y]:m.xz})},async save(e){const t=this.value.yamlForSave(this.currentYaml)||this.currentYaml;try{this.applyHooks&&await this.applyHooks(g.Fm);try{await this.value.saveYaml(t,this.initialYaml)}catch(r){return n.call(this,r)}this.applyHooks&&await this.applyHooks(g.Mz),e(!0),this.done()}catch(r){return n.call(this,r)}function n(t){if(t&&t.response&&t.response.data){const e=t.response.data;e&&e.message?this.errors=[e.message]:this.errors=[t]}else this.errors=[t];e(!1),this.$emit("error",(0,v.rz)(t))}},done(){if(this.doneOverride)return"function"===typeof this.doneOverride?this.doneOverride():this.$router.replace(this.doneOverride);this.doneRoute&&("object"!==(0,f.QP)(this.doneRoute)?this.$router.replace({name:this.doneRoute,params:{resource:this.value.type}}):this.$router.replace(this.doneRoute))},onFileSelected(e){const t=this.$refs.yamleditor;t&&t.updateValue(e)},refresh(){this.$refs.yamleditor.refresh()},closeError(e){this.errors=(this.errors||[]).filter((t,n)=>n!==e)}}},y=(n(60147),n(4729),n(47433));const _=(0,y.A)(b,[["render",o],["__scopeId","data-v-36fcbdfe"]]);var w=_},87211:function(e,t,n){"use strict";n.d(t,{A:function(){return p}});var r=n(9274);const i={key:0,class:"simple-box","data-testid":"simple-box-container"},a={key:0,class:"top"},o={key:0,"data-testid":"simple-box-title"},s={class:"content"};function l(e,t,n,l,c,u){return e.shown?((0,r.openBlock)(),(0,r.createElementBlock)("div",i,[n.title||n.canClose||e.$slots.title?((0,r.openBlock)(),(0,r.createElementBlock)("div",a,[(0,r.renderSlot)(e.$slots,"title",{},()=>[n.title?((0,r.openBlock)(),(0,r.createElementBlock)("h2",o,(0,r.toDisplayString)(n.title),1)):(0,r.createCommentVNode)("",!0)],!0),n.canClose||e.pref?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:"close-button","data-testid":"simple-box-close",onClick:t[0]||(t[0]=e=>u.closeBox(e))},[...t[1]||(t[1]=[(0,r.createElementVNode)("i",{class:"icon icon-close"},null,-1)])])):(0,r.createCommentVNode)("",!0)])):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",s,[(0,r.renderSlot)(e.$slots,"default",{},void 0,!0)])])):(0,r.createCommentVNode)("",!0)}var c=n(55277),u={name:"SimpleBox",emits:["close"],mixins:[c.A],props:{title:{type:String,default:null},canClose:{type:Boolean,default:!1}},methods:{closeBox(e){this.hide(),this.$emit("close",e)}}},d=(n(2578),n(87968),n(47433));const h=(0,d.A)(u,[["render",l],["__scopeId","data-v-48821e48"]]);var p=h},59986:function(e,t,n){"use strict";n.d(t,{A:function(){return It}});var r=n(9274);const i=["data-testid"],a=["id","disabled","data-testid","aria-label","onClick","onMouseover"],o=["disabled"],s={class:"list-unstyled menu"},l=["onClick","onMouseover"],c={key:0,class:"middle"},u={key:1,class:"search row","data-testid":"search-box-filter-row"},d={key:0,class:"advanced-filters-applied"},h={class:"label"},p=["onClick"],f={key:2,ref:"advanced-filter-group",class:"advanced-filter-group"},m={class:"advanced-filter-container"},g=["placeholder"],v={class:"middle-block"},b={class:"bottom-block"},y=["disabled"],_={key:3,id:"describe-filter-sortable-table",hidden:""},w=["aria-label","placeholder"],E={key:1,class:"sub-header-row"},S={key:1},k={key:2},x=["colspan"],A={class:"data-loading"},C={key:3},T={class:"no-rows"},N=["colspan"],R={key:4},O={class:"no-results"},I=["colspan"],L={class:"group-row"},D=["colspan"],P={class:"group-tab"},M=["data-testid","data-node-id","data-cant-run-bulk-action-of-interest"],B={key:0,class:"row-check",align:"middle"},F={key:1,class:"row-expand",align:"middle"},$=["onClick"],U=["data-title","data-testid","align","width"],j={key:4,class:"text-muted"},V={key:2},K=["data-testid"],G={key:0,class:"row-check",align:"middle"},H=["colspan"],z={key:0,class:"paging"},q=["disabled","aria-label"],X=["alt"],W=["disabled","aria-label"],Y=["alt"],Q=["disabled","aria-label"],J=["alt"],Z=["disabled","aria-label"],ee=["alt"];function te(e,t,n,te,ne,re){const ie=(0,r.resolveComponent)("ActionDropdownShell"),ae=(0,r.resolveComponent)("ActionDropdown"),oe=(0,r.resolveComponent)("AsyncButton"),se=(0,r.resolveComponent)("LabeledSelect"),le=(0,r.resolveComponent)("THead"),ce=(0,r.resolveComponent)("t"),ue=(0,r.resolveComponent)("Checkbox"),de=(0,r.resolveComponent)("ActionMenu"),he=(0,r.resolveComponent)("ButtonMultiAction"),pe=(0,r.resolveDirective)("clean-html"),fe=(0,r.resolveDirective)("clean-tooltip"),me=(0,r.resolveDirective)("close-popper"),ge=(0,r.resolveDirective)("trim-whitespace"),ve=(0,r.resolveDirective)("ui-context"),be=(0,r.resolveDirective)("shortkey");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{ref:"container","data-testid":n.componentTestid+"-list-container"},[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)([{titled:e.$slots.title&&e.$slots.title.length},"sortable-table-header"])},[(0,r.renderSlot)(e.$slots,"title",{},void 0,!0),re.showHeaderRow?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:(0,r.normalizeClass)(["fixed-header-actions",{button:!!e.$slots["header-button"],"with-sub-header":!!e.$slots["sub-header-row"],"advanced-filtering":e.hasAdvancedFiltering}])},[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)([e.bulkActionsClass,"bulk"])},[(0,r.renderSlot)(e.$slots,"header-left",{},()=>[n.tableActions?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.availableActions,i=>(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("button",{id:i.action,key:i.action,type:"button",class:(0,r.normalizeClass)(["btn role-primary",{[e.bulkActionClass]:!0}]),disabled:!i.enabled,"data-testid":n.componentTestid+"-"+i.action,role:"button","aria-label":i.label,onClick:t=>e.applyTableAction(i,null,t),onKeydown:t[0]||(t[0]=(0,r.withKeys)((0,r.withModifiers)(()=>{},["stop"]),["enter"])),onMouseover:e=>re.setBulkActionOfInterest(i),onMouseleave:t[1]||(t[1]=e=>re.setBulkActionOfInterest(null))},[i.icon?((0,r.openBlock)(),(0,r.createElementBlock)("i",{key:0,class:(0,r.normalizeClass)(i.icon)},null,2)):(0,r.createCommentVNode)("",!0),(0,r.withDirectives)((0,r.createElementVNode)("span",null,null,512),[[pe,i.label]])],42,a)),[[fe,e.actionTooltip]])),128)),te.featureDropdownMenu?((0,r.openBlock)(),(0,r.createBlock)(ie,{key:0,disabled:!e.selectedRows.length,"hidden-actions":e.hiddenActions,"action-tooltip":e.actionTooltip,onClick:e.applyTableAction,onMouseover:re.setBulkActionOfInterest,onMouseleave:re.setBulkActionOfInterest},null,8,["disabled","hidden-actions","action-tooltip","onClick","onMouseover","onMouseleave"])):((0,r.openBlock)(),(0,r.createBlock)(ae,{key:1,class:(0,r.normalizeClass)([e.bulkActionsDropdownClass,"bulk-actions-dropdown"]),"disable-button":!e.selectedRows.length,size:"sm"},{"button-content":(0,r.withCtx)(()=>[(0,r.createElementVNode)("button",{ref:"actionDropDown",class:"btn bg-primary mr-0",disabled:!e.selectedRows.length},[t[22]||(t[22]=(0,r.createElementVNode)("i",{class:"icon icon-gear"},null,-1)),(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(e.t("sortableTable.bulkActions.collapsed.label")),1),t[23]||(t[23]=(0,r.createElementVNode)("i",{class:"ml-10 icon icon-chevron-down"},null,-1))],8,o)]),"popover-content":(0,r.withCtx)(()=>[(0,r.createElementVNode)("ul",s,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.hiddenActions,(n,i)=>(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("li",{key:i,class:(0,r.normalizeClass)({disabled:!n.enabled}),onClick:t=>e.applyTableAction(n,null,t),onMouseover:e=>re.setBulkActionOfInterest(n),onMouseleave:t[2]||(t[2]=e=>re.setBulkActionOfInterest(null))},[n.icon?((0,r.openBlock)(),(0,r.createElementBlock)("i",{key:0,class:(0,r.normalizeClass)(n.icon)},null,2)):(0,r.createCommentVNode)("",!0),(0,r.withDirectives)((0,r.createElementVNode)("span",null,null,512),[[pe,n.label]])],42,l)),[[me],[fe,{content:e.actionTooltip,placement:"right"}]])),128))])]),_:1},8,["class","disable-button"])),e.selectedRowsText?((0,r.openBlock)(),(0,r.createElementBlock)("label",{key:2,class:(0,r.normalizeClass)([e.bulkActionAvailabilityClass,"action-availability"])},(0,r.toDisplayString)(e.selectedRowsText),3)):(0,r.createCommentVNode)("",!0)],64)):(0,r.createCommentVNode)("",!0)],!0)],2),!e.hasAdvancedFiltering&&e.$slots["header-middle"]?((0,r.openBlock)(),(0,r.createElementBlock)("div",c,[(0,r.renderSlot)(e.$slots,"header-middle",{},void 0,!0)])):(0,r.createCommentVNode)("",!0),n.search||e.hasAdvancedFiltering||e.isTooManyItemsToAutoUpdate||e.$slots["header-right"]?((0,r.openBlock)(),(0,r.createElementBlock)("div",u,[e.hasAdvancedFiltering?((0,r.openBlock)(),(0,r.createElementBlock)("ul",d,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.advancedFilteringValues,(n,i)=>((0,r.openBlock)(),(0,r.createElementBlock)("li",{key:i},[(0,r.createElementVNode)("span",h,(0,r.toDisplayString)(`"${n.value}" ${e.t("sortableTable.in")} ${n.label}`),1),(0,r.createElementVNode)("span",{class:"cross",onClick:t=>e.clearAdvancedFilter(i)},"✕",8,p),t[24]||(t[24]=(0,r.createElementVNode)("div",{class:"bg"},null,-1))]))),128))])):(0,r.createCommentVNode)("",!0),(0,r.renderSlot)(e.$slots,"watch-controls",{},void 0,!0),(0,r.renderSlot)(e.$slots,"header-right",{},void 0,!0),!n.hideManualRefreshButton&&e.isTooManyItemsToAutoUpdate?((0,r.openBlock)(),(0,r.createBlock)(oe,{key:1,mode:"manual-refresh",size:n.manualRefreshButtonSize,"current-phase":ne.refreshButtonPhase,onClick:e.debouncedRefreshTableData},null,8,["size","current-phase","onClick"])):(0,r.createCommentVNode)("",!0),e.hasAdvancedFiltering?((0,r.openBlock)(),(0,r.createElementBlock)("div",f,[(0,r.createElementVNode)("button",{class:"btn role-primary",onClick:t[3]||(t[3]=t=>{e.advancedFilteringVisibility=!e.advancedFilteringVisibility})},(0,r.toDisplayString)(e.t("sortableTable.addFilter")),1),(0,r.withDirectives)((0,r.createElementVNode)("div",m,[(0,r.withDirectives)((0,r.createElementVNode)("input",{ref:"advancedSearchQuery","onUpdate:modelValue":t[4]||(t[4]=t=>e.advFilterSearchTerm=t),type:"search",class:"advanced-search-box",placeholder:e.t("sortableTable.filterFor")},null,8,g),[[r.vModelText,e.advFilterSearchTerm]]),(0,r.createElementVNode)("div",v,[(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(e.t("sortableTable.in")),1),(0,r.createVNode)(se,{value:e.advFilterSelectedProp,"onUpdate:value":t[5]||(t[5]=t=>e.advFilterSelectedProp=t),class:"filter-select",clearable:!0,options:e.advFilterSelectOptions,disabled:!1,searchable:!1,mode:"edit",multiple:!1,taggable:!1,placeholder:e.t("sortableTable.selectCol"),onSelecting:t[6]||(t[6]=t=>e.advFilterSelectedLabel=t.label)},null,8,["value","options","placeholder"])]),(0,r.createElementVNode)("div",b,[(0,r.createElementVNode)("button",{class:"btn role-secondary",disabled:!e.advancedFilteringValues.length,onClick:t[7]||(t[7]=(...t)=>e.clearAllAdvancedFilters&&e.clearAllAdvancedFilters(...t))},(0,r.toDisplayString)(e.t("sortableTable.resetFilters")),9,y),(0,r.createElementVNode)("button",{class:"btn role-primary",onClick:t[8]||(t[8]=(...t)=>e.addAdvancedFilter&&e.addAdvancedFilter(...t))},(0,r.toDisplayString)(e.t("sortableTable.add")),1)])],512),[[r.vShow,e.advancedFilteringVisibility]])],512)):n.search?((0,r.openBlock)(),(0,r.createElementBlock)("p",_,(0,r.toDisplayString)(e.t("sortableTable.filteringDescription")),1)):(0,r.createCommentVNode)("",!0),n.search?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("input",{key:4,ref:"searchQuery","onUpdate:modelValue":t[9]||(t[9]=e=>ne.eventualSearchQuery=e),type:"search",class:"input-sm search-box","aria-label":e.t("sortableTable.searchLabel"),"aria-describedby":"describe-filter-sortable-table",placeholder:e.t("sortableTable.search")},null,8,w)),[[r.vModelText,ne.eventualSearchQuery]]):(0,r.createCommentVNode)("",!0),(0,r.renderSlot)(e.$slots,"header-button",{},void 0,!0)])):(0,r.createCommentVNode)("",!0)],2)):(0,r.createCommentVNode)("",!0),e.$slots["sub-header-row"]?((0,r.openBlock)(),(0,r.createElementBlock)("div",E,[(0,r.renderSlot)(e.$slots,"sub-header-row",{},void 0,!0)])):(0,r.createCommentVNode)("",!0)],2),(0,r.createElementVNode)("table",{ref:"table",class:(0,r.normalizeClass)(["sortable-table",re.classObject]),width:"100%",role:"table"},[n.showHeaders?((0,r.openBlock)(),(0,r.createBlock)(le,{key:0,"label-for":re.labelFor,columns:re.columns,group:e.group,"group-options":e.advGroupOptions,"has-advanced-filtering":e.hasAdvancedFiltering,"adv-filter-hide-labels-as-cols":e.advFilterHideLabelsAsCols,"table-actions":n.tableActions,"table-cols-options":e.columnOptions,"row-actions":n.rowActions,"sub-expand-column":n.subExpandColumn,"row-actions-width":n.rowActionsWidth,"how-much-selected":e.howMuchSelected,"sort-by":e.sortBy,"default-sort-by":e._defaultSortBy,descending:e.descending,"no-rows":re.noRows,loading:ne.isLoading&&!ne.loadingDelay,"no-results":re.noResults,onOnToggleAll:e.onToggleAll,onOnSortChange:e.changeSort,onColVisibilityChange:e.changeColVisibility,onGroupValueChange:t[10]||(t[10]=t=>e.$emit("group-value-change",t)),onUpdateColsOptions:e.updateColsOptions},null,8,["label-for","columns","group","group-options","has-advanced-filtering","adv-filter-hide-labels-as-cols","table-actions","table-cols-options","row-actions","sub-expand-column","row-actions-width","how-much-selected","sort-by","default-sort-by","descending","no-rows","loading","no-results","onOnToggleAll","onOnSortChange","onColVisibilityChange","onUpdateColsOptions"])):(0,r.createCommentVNode)("",!0),ne.isLoading&&!ne.loadingDelay?((0,r.openBlock)(),(0,r.createElementBlock)("div",S)):ne.isLoading&&!n.altLoading?((0,r.openBlock)(),(0,r.createElementBlock)("tbody",k,[(0,r.renderSlot)(e.$slots,"loading",{},()=>[(0,r.createElementVNode)("tr",null,[(0,r.createElementVNode)("td",{colspan:re.fullColspan},[(0,r.createElementVNode)("div",A,[t[25]||(t[25]=(0,r.createElementVNode)("i",{class:"icon-spin icon icon-spinner"},null,-1)),(0,r.createVNode)(ce,{k:"generic.loading",raw:!0})])],8,x)])],!0)])):re.noRows?((0,r.openBlock)(),(0,r.createElementBlock)("tbody",C,[(0,r.renderSlot)(e.$slots,"no-rows",{},()=>[(0,r.createElementVNode)("tr",T,[(0,r.createElementVNode)("td",{colspan:re.fullColspan},[n.showNoRows?((0,r.openBlock)(),(0,r.createBlock)(ce,{key:0,k:n.noRowsKey},null,8,["k"])):(0,r.createCommentVNode)("",!0)],8,N)])],!0)])):re.noResults?((0,r.openBlock)(),(0,r.createElementBlock)("tbody",R,[(0,r.renderSlot)(e.$slots,"no-results",{},()=>[(0,r.createElementVNode)("tr",O,[(0,r.createElementVNode)("td",{colspan:re.fullColspan,class:"text-center"},[(0,r.createVNode)(ce,{k:n.noDataKey},null,8,["k"])],8,I)])],!0)])):((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,{key:5},(0,r.renderList)(re.displayRows,i=>((0,r.openBlock)(),(0,r.createElementBlock)("tbody",{key:i.key,tabindex:"-1",class:(0,r.normalizeClass)({group:n.groupBy})},[n.groupBy?(0,r.renderSlot)(e.$slots,"group-row",{key:0,group:i,fullColspan:re.fullColspan},()=>[(0,r.createElementVNode)("tr",L,[(0,r.createElementVNode)("td",{colspan:re.fullColspan},[(0,r.renderSlot)(e.$slots,"group-by",{group:i.grp},()=>[(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("div",P,[(0,r.createTextVNode)((0,r.toDisplayString)(i.ref),1)])),[[ge]])],!0)],8,D)])],!0):(0,r.createCommentVNode)("",!0),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(i.rows,(i,a)=>((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:i.key},[(0,r.renderSlot)(e.$slots,"main-row",{row:i.row},()=>[(0,r.renderSlot)(e.$slots,"main-row:"+(i.row.mainRowKey||a),{fullColspan:re.fullColspan},()=>[(0,r.createElementVNode)("tr",{class:(0,r.normalizeClass)(["main-row",{"has-sub-row":i.showSubRow}]),"data-testid":n.componentTestid+"-"+a+"-row","data-node-id":i.key,"data-cant-run-bulk-action-of-interest":ne.actionOfInterest&&!i.canRunBulkActionOfInterest},[n.tableActions?((0,r.openBlock)(),(0,r.createElementBlock)("td",B,[(0,r.createTextVNode)((0,r.toDisplayString)(i.mainRowKey)+" ",1),(0,r.createVNode)(ue,{class:"selection-checkbox","data-node-id":i.key,"data-testid":n.componentTestid+"-"+a+"-checkbox",value:e.selectedRows.includes(i.row),"alternate-label":e.t("sortableTable.genericRowCheckbox",{item:i&&i.row?i.row.id:""})},null,8,["data-node-id","data-testid","value","alternate-label"])])):(0,r.createCommentVNode)("",!0),n.subExpandColumn?((0,r.openBlock)(),(0,r.createElementBlock)("td",F,[(0,r.createElementVNode)("i",{"data-title":"Toggle Expand",class:(0,r.normalizeClass)({icon:!0,"icon-chevron-right":!ne.expanded[i.row[n.keyField]],"icon-chevron-down":!!ne.expanded[i.row[n.keyField]]}),onClick:(0,r.withModifiers)(e=>re.toggleExpand(i.row),["stop"])},null,10,$)])):(0,r.createCommentVNode)("",!0),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(i.columns,(t,o)=>(0,r.renderSlot)(e.$slots,"col:"+t.col.name,{key:o,row:i.row,col:t.col,dt:re.dt,expanded:ne.expanded,rowKey:i.key},()=>[(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("td",{key:t.col.name,"data-title":t.col.label,"data-testid":`sortable-cell-${a}-${o}`,align:t.col.align||"left",class:(0,r.normalizeClass)({["col-"+t.dasherize]:!!t.col.formatter,[t.col.breakpoint]:!!t.col.breakpoint,["skip-select"]:t.col.skipSelect}),width:t.col.width},[(0,r.renderSlot)(e.$slots,"cell:"+t.col.name,{row:i.row,col:t.col,value:t.value},()=>[t.component&&t.needRef?((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(t.component),(0,r.mergeProps)({key:0,ref_for:!0,ref:"column",value:t.value,row:i.row,col:t.col,"get-custom-detail-link":n.getCustomDetailLink},{ref_for:!0},t.col.formatterOpts,{"row-key":i.key}),null,16,["value","row","col","get-custom-detail-link","row-key"])):t.component?((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(t.component),(0,r.mergeProps)({key:1,value:t.value,row:i.row,col:t.col},{ref_for:!0},t.col.formatterOpts,{"row-key":i.key}),null,16,["value","row","col","row-key"])):t.col.formatter?((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(t.col.formatter),(0,r.mergeProps)({key:2,value:t.value,row:i.row,col:t.col},{ref_for:!0},t.col.formatterOpts,{"row-key":i.key}),null,16,["value","row","col","row-key"])):""!==t.value?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:3},[(0,r.createTextVNode)((0,r.toDisplayString)(t.formatted),1)],64)):t.col.dashIfEmpty?((0,r.openBlock)(),(0,r.createElementBlock)("span",j,"—")):(0,r.createCommentVNode)("",!0)],!0)],10,U)),[[r.vShow,!e.hasAdvancedFiltering||e.hasAdvancedFiltering&&t.col.isColVisible],[ve,"state"===t.col.name?{icon:"icon-folder",hookable:!0,value:i.row,tag:"__sortable-table-row",description:"Row"}:void 0]])],!0)),128)),n.rowActions?((0,r.openBlock)(),(0,r.createElementBlock)("td",V,[(0,r.renderSlot)(e.$slots,"row-actions",{row:i.row,index:a},()=>[te.featureDropdownMenu?((0,r.openBlock)(),(0,r.createBlock)(de,{key:0,resource:i.row,"data-testid":n.componentTestid+"-"+a+"-action-button","button-aria-label":e.t("sortableTable.tableActionsLabel",{resource:i?.row?.id||""})},null,8,["resource","data-testid","button-aria-label"])):((0,r.openBlock)(),(0,r.createBlock)(he,{key:1,id:`actionButton+${a}+${i.row&&i.row.name?i.row.name:""}`,ref_for:!0,ref:`actionButton${a}`,"aria-haspopup":"true","aria-expanded":"false","aria-label":e.t("sortableTable.tableActionsLabel",{resource:i?.row?.id||""}),"data-testid":n.componentTestid+"-"+a+"-action-button",borderless:!0,onClick:e=>re.handleActionButtonClick(a,e),onKeyup:[(0,r.withKeys)(e=>re.handleActionButtonClick(a,e),["enter"]),(0,r.withKeys)(e=>re.handleActionButtonClick(a,e),["space"])]},null,8,["id","aria-label","data-testid","onClick","onKeyup"]))],!0)])):(0,r.createCommentVNode)("",!0)],10,M)],!0)],!0),i.showSubRow?(0,r.renderSlot)(e.$slots,"sub-row",{key:0,fullColspan:re.fullColspan,row:i.row,subMatches:ne.subMatches,keyField:n.keyField,componentTestid:n.componentTestid,i:a,onRowMouseEnter:e.onRowMouseEnter,onRowMouseLeave:e.onRowMouseLeave},()=>[(0,r.renderSlot)(e.$slots,"additional-sub-row",{fullColspan:re.fullColspan,row:i.row,showSubRow:i.row.stateDescription,subMatches:ne.subMatches,keyField:n.keyField,componentTestid:n.componentTestid,i:a,onRowMouseEnter:e.onRowMouseEnter,onRowMouseLeave:e.onRowMouseLeave},void 0,!0),i.row.stateDescription?((0,r.openBlock)(),(0,r.createElementBlock)("tr",{key:i.row[n.keyField]+"-description","data-testid":n.componentTestid+"-"+a+"-row-description",class:"state-description sub-row",onMouseenter:t[11]||(t[11]=(...t)=>e.onRowMouseEnter&&e.onRowMouseEnter(...t)),onMouseleave:t[12]||(t[12]=(...t)=>e.onRowMouseLeave&&e.onRowMouseLeave(...t))},[n.tableActions?((0,r.openBlock)(),(0,r.createElementBlock)("td",G)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("td",{colspan:re.fullColspan-(n.tableActions?1:0),class:(0,r.normalizeClass)({"text-error":i.row.stateObj.error})},(0,r.toDisplayString)(i.row.stateDescription),11,H)],40,K)):(0,r.createCommentVNode)("",!0)],!0):(0,r.createCommentVNode)("",!0)],64))),128))],2))),128))],2),e.showPaging?((0,r.openBlock)(),(0,r.createElementBlock)("div",z,[(0,r.createElementVNode)("button",{type:"button",class:"btn btn-sm role-multi-action","data-testid":"pagination-first",disabled:1==e.page||n.loading,role:"button","aria-label":e.t("sortableTable.ariaLabel.firstPageBtn"),onClick:t[13]||(t[13]=t=>e.goToPage("first"))},[(0,r.createElementVNode)("i",{class:"icon icon-chevron-beginning",alt:e.t("sortableTable.alt.firstPageBtn")},null,8,X)],8,q),(0,r.createElementVNode)("button",{type:"button",class:"btn btn-sm role-multi-action","data-testid":"pagination-prev",disabled:1==e.page||n.loading,role:"button","aria-label":e.t("sortableTable.ariaLabel.prevPageBtn"),onClick:t[14]||(t[14]=t=>e.goToPage("prev"))},[(0,r.createElementVNode)("i",{class:"icon icon-chevron-left",alt:e.t("sortableTable.alt.prevPageBtn")},null,8,Y)],8,W),(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(e.pagingDisplay),1),(0,r.createElementVNode)("button",{type:"button",class:"btn btn-sm role-multi-action","data-testid":"pagination-next",disabled:e.page==e.totalPages||n.loading,role:"button","aria-label":e.t("sortableTable.ariaLabel.nextPageBtn"),onClick:t[15]||(t[15]=t=>e.goToPage("next"))},[(0,r.createElementVNode)("i",{class:"icon icon-chevron-right",alt:e.t("sortableTable.alt.nextPageBtn")},null,8,J)],8,Q),(0,r.createElementVNode)("button",{type:"button",class:"btn btn-sm role-multi-action","data-testid":"pagination-last",disabled:e.page==e.totalPages||n.loading,role:"button","aria-label":e.t("sortableTable.ariaLabel.lastPageBtn"),onClick:t[16]||(t[16]=t=>e.goToPage("last"))},[(0,r.createElementVNode)("i",{class:"icon icon-chevron-end",alt:e.t("sortableTable.alt.lastPageBtn")},null,8,ee)],8,Z)])):(0,r.createCommentVNode)("",!0),n.search?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:1,class:"hide",onShortkey:t[17]||(t[17]=e=>re.focusSearch())},null,544)),[[be,["/"],void 0,{once:!0}]]):(0,r.createCommentVNode)("",!0),n.tableActions?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:2},[(0,r.withDirectives)((0,r.createElementVNode)("button",{class:"hide",onShortkey:t[18]||(t[18]=e=>re.focusNext(e))},null,544),[[be,["j"]]]),(0,r.withDirectives)((0,r.createElementVNode)("button",{class:"hide",onShortkey:t[19]||(t[19]=e=>re.focusPrevious(e))},null,544),[[be,["k"]]]),(0,r.withDirectives)((0,r.createElementVNode)("button",{class:"hide",onShortkey:t[20]||(t[20]=e=>re.focusNext(e,!0))},null,544),[[be,["shift","j"]]]),(0,r.withDirectives)((0,r.createElementVNode)("button",{class:"hide",onShortkey:t[21]||(t[21]=e=>re.focusPrevious(e,!0))},null,544),[[be,["shift","k"]]]),(0,r.renderSlot)(e.$slots,"shortkeys",{},void 0,!0)],64)):(0,r.createCommentVNode)("",!0)],8,i)}var ne=n(65359),re=n(23464),ie=n.n(re),ae=n(3514),oe=n.n(ae),se=n(92043),le=n(76978),ce=n(68851),ue=n(42200),de=n(67607);const he={class:"dropdown-button-group"},pe=["disabled"];function fe(e,t,n,i,a,o){const s=(0,r.resolveComponent)("v-dropdown");return(0,r.openBlock)(),(0,r.createElementBlock)("div",he,[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["dropdown-button bg-primary",{"one-action":!n.dualAction,[o.buttonSize]:!0,disabled:n.disableButton}])},[(0,r.createVNode)(s,{placement:"bottom",container:!1,disabled:n.disableButton,flip:!1},{popper:(0,r.withCtx)(()=>[(0,r.renderSlot)(e.$slots,"popover-content")]),default:(0,r.withCtx)(()=>[(0,r.renderSlot)(e.$slots,"button-content",{buttonSize:o.buttonSize},()=>[(0,r.createElementVNode)("button",{ref:"popoverButton",class:(0,r.normalizeClass)(["icon-container bg-primary no-left-border-radius",o.buttonSize]),disabled:n.disableButton,type:"button"},[...t[0]||(t[0]=[(0,r.createTextVNode)(" Button ",-1),(0,r.createElementVNode)("i",{class:"icon icon-chevron-down"},null,-1)])],10,pe)])]),_:3},8,["disabled"])],2)])}var me={name:"ActionDropdown",props:{size:{type:String,default:""},dualAction:{type:Boolean,default:!0},disableButton:{type:Boolean,default:!1}},computed:{buttonSize(){const{size:e}=this;let t;switch(e){case"":t="btn";break;case"xs":t="btn btn-xs";break;case"sm":t="btn btn-sm";break;case"lg":t="btn btn-lg";break;default:}return t}},methods:{hasSlot(e="default"){return!!this.$slots[e]||!!this.$slots.name()},togglePopover(){}}},ge=(n(63864),n(47433));const ve=(0,ge.A)(me,[["render",fe]]);var be=ve,ye=n(97331),_e=n.n(ye),we=n(12784),Ee=n.n(we);const Se=["width"],ke=["width"],xe=["align","width","tabindex","aria-sort","onClick","onKeyup"],Ae={class:"content"},Ce={class:"text-no-break"},Te={key:0,class:"text-muted text-no-break"},Ne={key:0,class:"sort","aria-hidden":"true"},Re={class:"icon icon-info not-filter-icon"},Oe={class:"icon-stack"},Ie=["alt"],Le=["alt"],De=["width"],Pe={ref:"table-options",class:"table-options-group"},Me={key:0,class:"table-options-grouping"},Be={class:"table-options-col-subtitle"},Fe={class:"table-options-col-subtitle mb-20"},$e=["width"];function Ue(e,t,n,i,a,o){const s=(0,r.resolveComponent)("Checkbox"),l=(0,r.resolveComponent)("LabeledSelect"),c=(0,r.resolveDirective)("clean-html"),u=(0,r.resolveDirective)("clean-tooltip");return(0,r.openBlock)(),(0,r.createElementBlock)("thead",null,[(0,r.createElementVNode)("tr",{class:(0,r.normalizeClass)({loading:n.loading,"top-aligned":o.hasColumnWithSubLabel})},[n.tableActions?((0,r.openBlock)(),(0,r.createElementBlock)("th",{key:0,width:n.checkWidth},[(0,r.createVNode)(s,{value:o.isAll,"onUpdate:value":t[0]||(t[0]=e=>o.isAll=e),class:"check","data-testid":"sortable-table_check_select_all",indeterminate:o.isIndeterminate,disabled:n.noRows||n.noResults,"alternate-label":e.t("sortableTable.genericGroupCheckbox")},null,8,["value","indeterminate","disabled","alternate-label"])],8,Se)):(0,r.createCommentVNode)("",!0),n.subExpandColumn?((0,r.openBlock)(),(0,r.createElementBlock)("th",{key:1,width:n.expandWidth},null,8,ke)):(0,r.createCommentVNode)("",!0),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n.columns,i=>(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("th",{key:i.name,align:i.align||"left",width:i.width,class:(0,r.normalizeClass)([{sortable:i.sort,[i.breakpoint]:!!i.breakpoint},"sortable-table-head-element"]),tabindex:i.sort?0:-1,"aria-sort":o.ariaSort(i),onClick:(0,r.withModifiers)(e=>o.changeSort(e,i),["prevent"]),onKeyup:[(0,r.withKeys)(e=>o.changeSort(e,i),["enter"]),(0,r.withKeys)(e=>o.changeSort(e,i),["space"])]},[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["table-header-container",{"not-filterable":n.hasAdvancedFiltering&&!i.isFilter}])},[(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("div",Ae,[(0,r.withDirectives)((0,r.createElementVNode)("span",Ce,null,512),[[c,n.labelFor(i)]]),i.subLabel?((0,r.openBlock)(),(0,r.createElementBlock)("span",Te,(0,r.toDisplayString)(i.subLabel),1)):(0,r.createCommentVNode)("",!0)])),[[u,o.tooltip(i)]]),i.sort?((0,r.openBlock)(),(0,r.createElementBlock)("div",Ne,[(0,r.withDirectives)((0,r.createElementVNode)("i",Re,null,512),[[r.vShow,n.hasAdvancedFiltering&&!i.isFilter],[u,e.t("sortableTable.tableHeader.noFilter")]]),(0,r.createElementVNode)("span",Oe,[t[3]||(t[3]=(0,r.createElementVNode)("i",{class:"icon icon-sort icon-stack-1x faded"},null,-1)),o.isCurrent(i)&&!n.descending?((0,r.openBlock)(),(0,r.createElementBlock)("i",{key:0,class:"icon icon-sort-down icon-stack-1x",alt:e.t("sortableTable.alt.sortingIconDesc")},null,8,Ie)):(0,r.createCommentVNode)("",!0),o.isCurrent(i)&&n.descending?((0,r.openBlock)(),(0,r.createElementBlock)("i",{key:1,class:"icon icon-sort-up icon-stack-1x",alt:e.t("sortableTable.alt.sortingIconAsc")},null,8,Le)):(0,r.createCommentVNode)("",!0)])])):(0,r.createCommentVNode)("",!0)],2)],42,xe)),[[r.vShow,!n.hasAdvancedFiltering||n.hasAdvancedFiltering&&i.isColVisible]])),128)),n.rowActions&&n.hasAdvancedFiltering&&n.tableColsOptions.length?((0,r.openBlock)(),(0,r.createElementBlock)("th",{key:2,width:n.rowActionsWidth},[(0,r.createElementVNode)("div",Pe,[(0,r.createElementVNode)("button",{"aria-haspopup":"true","aria-expanded":"false",type:"button",class:"btn btn-sm role-multi-action table-options-btn",onClick:t[1]||(t[1]=(...e)=>o.tableColsOptionsClick&&o.tableColsOptionsClick(...e))},[...t[4]||(t[4]=[(0,r.createElementVNode)("i",{class:"icon icon-actions"},null,-1)])]),(0,r.withDirectives)((0,r.createElementVNode)("div",{class:"table-options-container",style:(0,r.normalizeStyle)(a.tableColsMenuPosition)},[o.hasAdvGrouping?((0,r.openBlock)(),(0,r.createElementBlock)("div",Me,[(0,r.createElementVNode)("span",Be,(0,r.toDisplayString)(e.t("sortableTable.tableHeader.groupBy"))+":",1),(0,r.createVNode)(l,{value:o.advGroup,"onUpdate:value":t[2]||(t[2]=e=>o.advGroup=e),class:"table-options-grouping-select",clearable:!0,options:n.groupOptions,disabled:!1,searchable:!1,mode:"edit",multiple:!1,taggable:!1},null,8,["value","options"])])):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("p",Fe,(0,r.toDisplayString)(e.t("sortableTable.tableHeader.show"))+": ",1),(0,r.createElementVNode)("ul",null,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(n.tableColsOptions,(e,t)=>(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("li",{key:t,class:(0,r.normalizeClass)({visible:!e.preventColToggle})},[(0,r.withDirectives)((0,r.createVNode)(s,{value:e.isColVisible,"onUpdate:value":[t=>e.isColVisible=t,t=>o.tableOptionsCheckbox(t,e.label)],class:"table-options-checkbox",label:e.label},null,8,["value","onUpdate:value","label"]),[[r.vShow,!e.preventColToggle]])],2)),[[r.vShow,e.isTableOption]])),128))])],4),[[r.vShow,a.tableColsOptionsVisibility]])],512)],8,De)):n.rowActions?((0,r.openBlock)(),(0,r.createElementBlock)("th",{key:3,width:n.rowActionsWidth},null,8,$e)):(0,r.createCommentVNode)("",!0)],2)])}var je=n(35881);function Ve(e,t){if(e=e?.parentElement,!e)return null;const n=e.matches||e.matchesSelector;return n.call(e,t)?e:Ve(e,t)}const Ke="all",Ge="some",He="none";var ze={mounted(){const e=this.$el.querySelector("TABLE");this._onRowClickBound=this.onRowClick.bind(this),this._onRowMousedownBound=this.onRowMousedown.bind(this),this._onRowContextBound=this.onRowContext.bind(this),e.addEventListener("click",this._onRowClickBound),e.addEventListener("mousedown",this._onRowMousedownBound),e.addEventListener("contextmenu",this._onRowContextBound)},beforeUnmount(){const e=this.$el.querySelector("TABLE");e.removeEventListener("click",this._onRowClickBound),e.removeEventListener("mousedown",this._onRowMousedownBound),e.removeEventListener("contextmenu",this._onRowContextBound)},computed:{...(0,ne.L8)({targetElem:"action-menu/elem",shouldShow:"action-menu/showing"}),howMuchSelected(){const e=this.pagedRows.length,t=this.selectedRows.length;return t>=e&&e>0?Ke:t>0?Ge:He},bulkActionsForSelection(){let e=!1;const t=this.pagedRows,n=this.arrangedRows||t;let r=this.selectedRows;if(!this.selectedRows.length){if(!n)return[];const t=n[0];r=t?[t]:[],e=!0}const i={};for(const o of t)if(o.availableActions)for(const e of o.availableActions)e.bulkable&&Xe(i,e,!1);for(const o of r)if(o.availableActions)for(const e of o.availableActions)e.bulkable&&e.enabled&&Xe(i,e,!1);const a=We(i,e);return a.forEach(e=>{const t=this.selectedRows.some(t=>{const n=t.availableActions||[];return n.some(t=>t.action===e.action&&t.enabled)});e.enabled=this.selectedRows.length>0&&t}),a.sort((e,t)=>(t.weight||0)-(e.weight||0))}},data(){return{selectedRows:[],prevNode:null}},watch:{externalPaginationResult(){this.pageChanged(this.pagedRows)},pagedRows(){this.pageChanged(this.pagedRows)}},methods:{pageChanged(e){const t=[];for(const n of this.selectedRows)e.includes(n)||t.push(n);this.update([],t)},onToggleAll(e){return e?(this.update(this.pagedRows,[]),!0):(this.update([],this.pagedRows),!1)},onRowMousedown(e){((0,je._Z)(e)||this.isSelectionCheckbox(e.target))&&e.preventDefault()},removeOrAddHover(e,t){const n=t.target.closest("TR");if(n.classList.contains("sub-row")||n.classList.contains("additional-sub-row")){const t=n.previousElementSibling,r=n.nextElementSibling;if(t.classList[e]("sub-row-hovered"),!t.classList.contains("main-row")){const n=t.previousElementSibling;n.classList[e]("sub-row-hovered")}r?.classList.contains("sub-row")&&r.classList[e]("sub-row-hovered")}},onRowMouseEnter(e){this.removeOrAddHover("add",e)},onRowMouseLeave(e){this.removeOrAddHover("remove",e)},nodeForEvent(e){const t=e.target.tagName,n=e.target,r=n.closest(".actions");if(n.classList.contains("select-all-check"))return;if(!r&&("A"===t||"BUTTON"===t||Ve(n,".btn")))return;const i=e.target.closest("TR");return this.nodeForRow(i)},nodeForRow(e){if(e?.classList.contains("separator-row"))return;while(e&&!e.classList.contains("main-row"))e=e.previousElementSibling;if(!e)return;const t=e.dataset.nodeId;if(!t)return;const n=this.pagedRows.find(e=>(0,le.Jt)(e,this.keyField)===t);return n},async onRowClick(e){const t=this.nodeForEvent(e),n=e.target.closest("TD"),r=n?.classList.contains("skip-select");if(r)return;const i=this.selectedRows,a=this.isSelectionCheckbox(e.target)||n?.classList.contains("row-check"),o=n?.classList.contains("row-expand"),s=this.pagedRows;if(this.$emit("rowClick",e),!t)return;if(o)return void this.toggleExpand(t);const l=e.target.closest(".actions");if(l){let n=[t];if(this.mangleActionResources){const e=l.querySelector("i");e.classList.remove("icon-actions"),e.classList.add("icon-spinner"),e.classList.add("icon-spin");try{n=await this.mangleActionResources(n)}finally{e.classList.remove("icon-spinner"),e.classList.remove("icon-spin"),e.classList.add("icon-actions")}}return void(this.targetElem||this.shouldShow?this.targetElem===l&&this.shouldShow&&this.$store.commit("action-menu/hide"):this.$store.commit("action-menu/show",{resources:n,event:e,elem:l}))}const c=i.includes(t);let u=this.prevNode;if(u&&s.includes(u)||(u=t),(0,je.yC)(e))this.toggle(t);else if((0,je._Z)(e)){const e=this.nodesBetween(u,t);c?this.update([],e):this.update(e,[])}else a?this.toggle(t):this.update([t],s);this.prevNode=t},async onRowContext(e){const t=this.nodeForEvent(e);if((0,je.A0)(e))return;if(!t)return;e.stopPropagation(),this.prevNode=t;const n=this.selectedRows.includes(t);n||this.update([t],this.selectedRows.slice())},keySelectRow(e,t=!1){const n=this.nodeForRow(e),r=this.pagedRows;n&&(t?this.update([n],[]):this.update([n],r),this.prevNode=n)},isSelectionCheckbox(e){return"INPUT"===e.tagName&&"checkbox"===e.type&&null!==e.closest(".selection-checkbox")},nodesBetween(e,t){let n=[];const r=this.groupBy;if(r){const r=this.groupedRows;let i=this.groupIdx(e),a=this.groupIdx(t);if(!i||!a)return[];(i.group>a.group||i.group===a.group&&i.item>a.item)&&([i,a]=[a,i]);for(let e=i.group;e<=a.group;e++){const t=r[e].rows;let o=i.group===e?i.item:0;while(t[o]&&(e<a.group||o<=a.item))n.push(t[o]),o++}}else{const r=this.pagedRows;let i=r.indexOf(e),a=r.indexOf(t);[i,a]=[Math.min(i,a),Math.max(i,a)],n=r.slice(i,a+1)}return n=n.filter(e=>!this.selectedRows.includes(e)),n},groupIdx(e){const t=this.groupedRows;for(let n=0;n<t.length;n++){const r=t[n].rows;for(let t=0;t<r.length;t++)if(r[t]===e)return{group:n,item:t}}return null},toggle(e){const t=[],n=[];this.selectedRows.includes(e)?n.push(e):t.push(e),this.update(t,n)},update(e,t){t.forEach(e=>{const t=this.selectedRows.findIndex(t=>t===e);-1!==t&&this.selectedRows.splice(t,1)}),e&&this.selectedRows.push(...e),t.length&&this.$nextTick(()=>{for(let e=0;e<t.length;e++)this.updateInput(t[e],!1,this.keyField)}),e.length&&this.$nextTick(()=>{for(let t=0;t<e.length;t++)this.updateInput(e[t],!0,this.keyField)}),this.$nextTick(()=>{if(this.$emit("selection",this.selectedRows),this.selectedRows&&this.selectedRows.length)for(let e=0;e<this.selectedRows.length;e++)this.updateInput(this.selectedRows[e],!0,this.keyField)})},updateInput(e,t,n){const r=(0,le.Jt)(e,n);if(r){const e=this.$el.querySelector(`div[data-checkbox-ctrl][data-node-id="${r}"]`);if(e&&!e.disabled){const n=e.querySelector("label");n&&(n.value=t);let r=e.closest("tr"),i=!0;while(r&&(i||r.classList.contains("sub-row")||r.classList.contains("additional-sub-row")))t?r.classList.add("row-selected"):r.classList.remove("row-selected"),r=r.nextElementSibling,i=!1}}},select(e){e.forEach(e=>{const t=(0,le.Jt)(e,this.keyField),n=this.$el.querySelector(`label[data-node-id="${t}"]`);n.dispatchEvent(new Event("click"))})},applyTableAction(e,t,n){const r={alt:n&&(0,je.nN)(n),event:n},i=this.selectedRows.filter(t=>{const n=t.availableActions.find(t=>t.action===e.action);return n?.enabled});Ye(i,e,t,r,this),this.actionOfInterest=null},clearSelection(){this.update([],[...this.selectedRows])}}};let qe=0;function Xe(e,t,n=!0){let r=t.action;r||(r=`anon${qe}`,qe++);let i=e[r];return i||(i=Object.assign({},t),e[r]=i,i.allEnabled=!1),t.enabled?i.anyEnabled=!0:i.allEnabled=!1,n&&(i.available=(i.available||0)+(t.enabled?1:0),i.total=(i.total||0)+1),i}function We(e,t=!1){const n=(0,ce.WP)(Object.values(e),"anyEnabled",!0);for(const r of n)r.enabled=!t&&r.available>=r.total;return n}function Ye(e,t,n,r={},i){if(n=n||[],t.invoke){const a={action:t,event:r.event,isAlt:!!r.alt};return t.invoke.apply(i,[a,e||[],n])}if(e.length>1&&t.bulkAction&&!r.alt){const r=e[0][t.bulkAction];if(r)return r.call(e[0],e,...n)}const a=[];for(const o of e){let e;e=r.alt&&t.altAction?o[t.altAction]:o[t.action],e&&a.push(e.apply(o,n))}return Promise.all(a)}var Qe=n(14817),Je=n(32748),Ze={emits:["update-cols-options","on-toggle-all","group-value-change","on-sort-change","col-visibility-change"],components:{Checkbox:ue.S,LabeledSelect:Je.A},props:{columns:{type:Array,required:!0},sortBy:{type:String,required:!0},defaultSortBy:{type:String,default:""},group:{type:String,default:""},groupOptions:{type:Array,default:()=>[]},descending:{type:Boolean,required:!1,default:!1},hasAdvancedFiltering:{type:Boolean,required:!1},tableColsOptions:{type:Array,default:()=>[]},tableActions:{type:Boolean,required:!0},rowActions:{type:Boolean,required:!0},howMuchSelected:{type:String,required:!0},checkWidth:{type:Number,default:30},rowActionsWidth:{type:Number,required:!0},subExpandColumn:{type:Boolean,default:!1},expandWidth:{type:Number,default:30},labelFor:{type:Function,required:!0},noRows:{type:Boolean,default:!0},noResults:{type:Boolean,default:!0},loading:{type:Boolean,required:!1}},data(){return{tableColsOptionsVisibility:!1,tableColsMenuPosition:null}},watch:{advancedFilteringValues(){this.watcherUpdateLiveAndDelayed(!0,!1)},tableColsOptionsVisibility(e){e?(window.addEventListener("click",this.onClickOutside),this.$emit("update-cols-options")):window.removeEventListener("click",this.onClickOutside)}},computed:{isAll:{get(){return this.howMuchSelected!==He},set(e){this.$emit("on-toggle-all",e)}},hasAdvGrouping(){return this.group?.length&&this.groupOptions?.length},advGroup:{get(){return this.group||this.advGroup},set(e){this.$emit("group-value-change",e)}},isIndeterminate(){return this.howMuchSelected===Ge},hasColumnWithSubLabel(){return this.columns.some(e=>e.subLabel)}},methods:{changeSort(e,t){if(!t.sort)return;let n=!1;this.sortBy===t.name&&(n=!this.descending),this.$emit("on-sort-change",t.name,n)},isCurrent(e){return e.name===this.sortBy},ariaSort(e){return this.isCurrent(e)?this.descending?this.t("generic.descending"):this.t("generic.ascending"):this.t("generic.none")},tableColsOptionsClick(e){const t=document.querySelector(".table-options-container"),n=document.querySelector(".table-options-btn");this.tableColsMenuPosition=(0,Qe.Tb)(t,e||n,{overlapX:!0,fudgeX:326,fudgeY:-22,positionX:Qe.Q7,positionY:Qe.Q8}),this.tableColsOptionsVisibility=!this.tableColsOptionsVisibility},onClickOutside(e){const t=this.$refs["table-options"];t&&!t.contains(e.target)&&(this.tableColsOptionsVisibility=!1)},tableOptionsCheckbox(e,t){this.$emit("col-visibility-change",{label:t,value:e})},tooltip(e){if(!e.tooltip)return null;const t=this.$store.getters["i18n/exists"];return t(e.tooltip)?this.t(e.tooltip):e.tooltip}}};n(97473),n(97119);const et=(0,ge.A)(Ze,[["render",Ue],["__scopeId","data-v-5a4a5cc3"]]);var tt=et;const nt="allcols",rt="All Columns",it=":::islabel";var at={data(){return{searchQuery:null,previousFilter:null,previousResult:null}},computed:{searchFields(){const e=ot(this.columns);return this.extraSearchFields&&(0,ce.cn)(e,this.extraSearchFields),e},filteredRows(){if(!this.externalPaginationEnabled)return this.hasAdvancedFiltering?this.handleAdvancedFiltering():this.handleFiltering()}},methods:{handleAdvancedFiltering(){if(this.subMatches=null,this.searchQuery.length){const e=(this.arrangedRows||[]).slice(),t=e.filter(e=>this.searchQuery.every(t=>{if(t.prop===nt){const n=this.advFilterSelectOptions.slice(1);let r=[];return n.forEach(e=>{if(e.value.includes("[")&&e.value.includes("]"))r=r.concat(JSON.parse(e.value));else{const t=e.isLabel?`${e.label}${it}`:e.value;r.push(t)}}),lt(r,[t.value],e)}{if(t.prop.includes("[")&&t.prop.includes("]"))return lt(JSON.parse(t.prop),[t.value],e);let n=t.prop;return t.prop.includes("metadata.labels")&&(n=`${t.label}${it}`),lt([n],[t.value],e)}}));return t}return this.arrangedRows},handleFiltering(){const e=(this.searchQuery||"").trim().toLowerCase();let t;if(e&&this.previousResult&&e.startsWith(this.previousFilter)?t=this.previousResult.slice():(this.previousResult=null,t=(this.arrangedRows||[]).slice()),this.previousFilter=e,!e.length)return this.subMatches=null,this.previousResult=null,t;const n=this.searchFields,r=e.split(/\s*[, ]\s*/),i=this.subSearch,a=this.subFields,o={};for(let s=t.length-1;s>=0;s--){const e=t[s];let l=0,c=!0;if(c=lt(n,r,e),a&&i){const t=e[i]||[];for(let n=t.length-1;n>=0;n--){let t=!0;t=lt(a,r,e),t&&l++}o[(0,le.Jt)(e,this.keyField)]=l}c||0!==l||(0,ce.Wq)(t,s)}return this.subMatches=o,this.previousResult=t,t}},watch:{arrangedRows(e){this.previousResult=null},searchQuery(){this.debouncedPaginationChanged()}}};function ot(e){const t=[];return(e||[]).forEach(e=>{const n=e.search;n?"string"===typeof n?(0,ce.PG)(t,n):(0,ce.cy)(n)&&(0,ce.cn)(t,n):!1===n||(0,ce.PG)(t,e.value||e.name)}),t.filter(e=>!!e)}const st=/^[0-9a-f\.:]+$/i;function lt(e,t,n){for(let r=0;r<t.length;r++){let i=!0,a=t[r];return"!"===a.substr(0,1)&&(i=!1,a=a.substr(1)),!a||ct(e,a,n)===i}}function ct(e,t,n){for(let r of e){if(!r)continue;if("function"!==typeof r&&r.includes(it)&&(!n.metadata.labels||!n.metadata.labels[r.replace(it,"")]))continue;let e,i;if("function"===typeof r)i=r(n);else if(r.includes(it))i=n.metadata.labels[r.replace(it,"")];else{const t=r.indexOf(":");t>0&&(e=r.substr(t+1),r=r.substr(0,t)),i=r.includes(".")?(0,le.Jt)(n,r):n[r]}if(void 0!==i&&(i=`${i}`.toLowerCase(),i))if(e){if("exact"===e){if(i===t)return!0}else if("ip"===e){const e=st.test(t);if(e){const e=new RegExp(`(?:^|\\.)${t}(?:\\.|$)`);if(e.test(i))return!0}}else if("prefix"===e&&0===i.indexOf(t))return!0}else if(i.includes(`${t}`.toLowerCase()))return!0}return!1}var ut=n(74302);const dt=["nameSort","id"];var ht={computed:{sortFields(){let e=(this.groupBy?this.groupSort||this.groupBy:null)||[],t=[];const n=(this.columns||this.headers).find(e=>e&&e.name&&e.name.toLowerCase()===this.sortBy.toLowerCase());return this.sortBy&&n&&n.sort&&(t=n.sort),Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),(0,ce.sb)([...e,...t].concat(...this.mandatorySort||dt))},arrangedRows(){if(this.externalPaginationEnabled)return;let e;const t=this.sortGeneration||this.sortGenerationFn?.apply(this);if(t&&(e=`${t}/${this.rows.length}/${this.descending}/${this.sortFields.join(",")}`,this.cacheKey===e))return this.cachedRows;const n=(0,ut.Ul)(this.rows,this.sortFields,this.descending);return e&&(this.cacheKey=e,this.cachedRows=n),n}},data(){let e=null,t=!1;if(this._defaultSortBy=this.defaultSortBy,!this._defaultSortBy){const e=this.headers.find(e=>!!e.defaultSort),n=this.headers.find(e=>"name"===e.name);if(e)this._defaultSortBy=e.name,t=e.defaultSortDescending||!1;else if(n)this._defaultSortBy=n.name;else{const e=this.headers.filter(e=>"state"!==e.name)[0];this._defaultSortBy=e?e.name:"id"}}return e&&this.headers.find(t=>t.name===e)||(e=this._defaultSortBy),{sortBy:e,descending:t,cachedRows:null,cacheKey:null}},methods:{changeSort(e,t){this.sortBy=e,this.descending=t,this.setPage(1)}},watch:{sortFields(){this.debouncedPaginationChanged()},descending(){this.debouncedPaginationChanged()}}},pt=n(91462),ft={computed:{totalRows(){return this.externalPaginationEnabled?this.externalPaginationResult?.count||0:this.filteredRows.length},indexFrom(){return Math.max(0,1+this.perPage*(this.page-1))},indexTo(){return Math.min(this.totalRows,this.indexFrom+this.perPage-1)},totalPages(){return Math.ceil(this.totalRows/this.perPage)},showPaging(){if(!this.paging)return!1;const e=this.totalPages>1;return(this.altLoading||!this.loading)&&e},pagingDisplay(){const e={...this.pagingParams||{},count:this.totalRows,pages:this.totalPages,from:this.indexFrom,to:this.indexTo};return this.$store.getters["i18n/t"](this.pagingLabel,e)},perPage(){let e=this.rowsPerPage||0;return e<=0&&(e=parseInt(this.$store.getters["prefs/get"](pt.kc),10)||0),e<=0&&(e=10),e},pagedRows(){return this.externalPaginationEnabled?this.rows:this.paging?this.filteredRows.slice(this.indexFrom-1,this.indexTo):this.filteredRows}},data(){return{page:1}},watch:{pagedRows(){const e=this.indexFrom,t=this.totalRows;this.totalPages>0&&this.page>1&&e>t&&this.setPage(this.totalPages)},page(){this.debouncedPaginationChanged()},perPage(){this.debouncedPaginationChanged()},totalRows(){this.updateTabCount(this.totalRows)}},methods:{setPage(e){this.page!==e&&(this.page=e)},goToPage(e){let t;switch(e){case"first":t=1;break;case"prev":t=Math.max(1,this.page-1);break;case"next":t=Math.min(this.totalPages,this.page+1);break;case"last":t=this.totalPages;break}this.setPage(t)},getPageByRow(e,t=e=>e){const n=this.filteredRows.map(t).indexOf(e);return-1===n?null:Math.ceil(n/this.perPage)}}},mt={computed:{selectedGroupOption(){return this.groupOptions?.find(e=>e.value===this.group)},groupedRows(){const e=this.groupBy,t=this.groupRef||this.selectedGroupOption?.groupLabelKey||e;if(!e)return[{key:"default",ref:"default",rows:this.pagedRows}];const n=[],r={};for(const i of this.pagedRows){const a=(0,le.Jt)(i,e)||"",o=(0,le.Jt)(i,t);let s=r[a];s?s.rows.push(i):(s={key:a,ref:o,rows:[i]},r[a]=s,n.push(s))}return n}}};const gt="inline-flex";var vt={data(){return{bulkActionsClass:"bulk",bulkActionClass:"bulk-action",bulkActionsDropdownClass:"bulk-actions-dropdown",bulkActionAvailabilityClass:"action-availability",hiddenActions:[],updateHiddenBulkActions:Ee()(this.protectedUpdateHiddenBulkActions,10)}},beforeUnmount(){window.removeEventListener("resize",this.onWindowResize)},mounted(){window.addEventListener("resize",this.onWindowResize),this.updateHiddenBulkActions()},watch:{selectedRows(){this.updateHiddenBulkActions()},keyedAvailableActions(){this.updateHiddenBulkActions()}},computed:{availableActions(){return this.bulkActionsForSelection.filter(e=>!e.external)},keyedAvailableActions(){return this.availableActions.map(e=>e.action)},selectedRowsText(){return this.selectedRows.length?this.t("sortableTable.actionAvailability.selected",{actionable:this.selectedRows.length}):null},actionTooltip(){if(!this.selectedRows.length||!this.actionOfInterest)return null;const e=this.selectedRows.filter(this.canRunBulkActionOfInterest).length;return e===this.selectedRows.length?null:this.t("sortableTable.actionAvailability.some",{actionable:e,total:this.selectedRows.length})}},methods:{onWindowResize(){this.updateHiddenBulkActions(),this.onScroll()},protectedUpdateHiddenBulkActions(){if(!this.$refs.container)return;const e=this.$refs.container.querySelector(`.${this.bulkActionsClass}`),t=this.$refs.container.querySelector(`.${this.bulkActionsDropdownClass}`);if(!e||!t)return;const n=e.offsetWidth,r=this.$refs.container.querySelectorAll(`.${this.bulkActionClass}`),i=Array.from(r||[]),a=this.$refs.container.querySelector(`.${this.bulkActionAvailabilityClass}`);let o=0;this.selectedRowsText&&(a?(a.style.display=gt,o=a.offsetWidth):a.style.display="none;"),this.hiddenActions=[];let s=0,l=!1,c=n-o;for(let u=0;u<i.length;u++){const e=i[u];e.style.display=gt;const r=e.offsetWidth;if(s+=r+15,s>=c)if(l){const t=e.attributes.getNamedItem("id").value;this.hiddenActions.push(this.availableActions.find(e=>e.action===t)),e.style.display="none"}else t.style.display=gt,u=-1,s=0,l=!0,c=n-t.offsetWidth-o}l||(t.style.display="none")}}};const bt=nt;var yt={props:{group:{type:String,default:()=>""},groupOptions:{type:Array,default:()=>[]},hasAdvancedFiltering:{type:Boolean,default:!1},advFilterHideLabelsAsCols:{type:Boolean,default:!1},advFilterPreventFilteringLabels:{type:Boolean,default:!1}},data(){return{columnOptions:[],colOptionsWatcher:null,advancedFilteringVisibility:!1,advancedFilteringValues:[],advFilterSearchTerm:null,advFilterSelectedProp:bt,advFilterSelectedLabel:rt,column:null}},mounted(){this.hasAdvancedFiltering&&this.updateColsOptions()},watch:{advancedFilteringValues(){this.watcherUpdateLiveAndDelayed(!0,!1)},advancedFilteringVisibility(e){e?(window.addEventListener("click",this.onClickOutside),this.updateColsOptions()):window.removeEventListener("click",this.onClickOutside)}},computed:{advFilterSelectOptions(){return this.columnOptions.filter(e=>e.isFilter&&!e.preventFiltering)},advGroupOptions(){return this.groupOptions.map(e=>({label:this.t(e.tooltipKey),value:e.value}))}},methods:{handleColsVisibilyAndFiltering(e){const t=e;return this.columnOptions.forEach(e=>{if(e.isTableOption){const n=t.findIndex(t=>t.name===e.name);-1!==n?(t[n].isColVisible=e.isColVisible,t[n].isFilter=e.isFilter):t.push(e)}}),t},setColsOptions(){let e=[];const t=[],n=[],r=this.headers.slice().filter(e=>!e.maxPageSize||e.maxPageSize&&e.maxPageSize>=this.perPage);return r.forEach(e=>{const t=e.name,r=e.labelKey?this.t(`${e.labelKey}`):e.label,i=!(Object.keys(e).includes("search")&&!e.search);let a=e.sort;const o=e.valueProp||e.value;let s=null,l=!0;if(e.sort&&o?("string"===typeof e.sort&&(a=e.sort.includes(":")?[e.sort.split(":")[0]]:[e.sort]),s=a.includes(o)?JSON.stringify([o]):JSON.stringify(a.concat([o]))):s=o?JSON.stringify([o]):null,this.columnOptions?.length){const e=this.columnOptions.find(e=>e.name===t&&e.label===r);e&&(l=e.isColVisible)}n.push({name:t,label:r,value:s,isFilter:i,isTableOption:!0,isColVisible:l})}),this.rows.length&&this.rows.forEach(e=>{e.metadata?.labels&&Object.keys(e.metadata?.labels).length&&Object.keys(e.metadata?.labels).forEach(e=>{const n={name:e,label:e,value:`metadata.labels.${e}`,isFilter:!0,isTableOption:!0,isColVisible:!1,isLabel:!0,preventFiltering:this.advFilterPreventFilteringLabels,preventColToggle:this.advFilterHideLabelsAsCols};if(this.columnOptions?.length){const t=this.columnOptions.find(t=>t.name===e&&t.label===e);t&&(n.isColVisible=t.isColVisible)}t.filter(t=>t.label===e).length||t.push(n)})}),e=n.concat(t),e.length&&e.unshift({name:rt,label:rt,value:nt,isFilter:!0,isTableOption:!1}),e},addAdvancedFilter(){this.advFilterSelectedProp&&this.advFilterSearchTerm&&(this.advancedFilteringValues.push({prop:this.advFilterSelectedProp,value:this.advFilterSearchTerm,label:this.advFilterSelectedLabel}),this.eventualSearchQuery=this.advancedFilteringValues,this.advancedFilteringVisibility=!1,this.advFilterSelectedProp=bt,this.advFilterSelectedLabel=rt,this.advFilterSearchTerm=null)},clearAllAdvancedFilters(){this.advancedFilteringValues=[],this.eventualSearchQuery=this.advancedFilteringValues,this.advancedFilteringVisibility=!1,this.advFilterSelectedProp=bt,this.advFilterSelectedLabel=rt,this.advFilterSearchTerm=null},clearAdvancedFilter(e){this.advancedFilteringValues.splice(e,1),this.eventualSearchQuery=this.advancedFilteringValues},onClickOutside(e){const t=this.$refs["advanced-filter-group"];t&&!t.contains(e.target)&&(this.advancedFilteringVisibility=!1)},updateColsOptions(){this.columnOptions=this.setColsOptions()},changeColVisibility(e){const t=this.columnOptions.findIndex(t=>t.label===e.label);-1!==t&&(this.columnOptions[t].isColVisible=e.value)}}};const _t={};var wt=n(56601),Et=n(76204),St=n(75886),kt=n(16408),xt=(0,r.defineComponent)({__name:"ActionDropdownShell",props:{disabled:{type:Boolean},hiddenActions:{},actionTooltip:{}},emits:["click","mouseover","mouseleave"],setup(e,{emit:t}){const n=t,i=(e,t,r)=>{n("click",e,t,r)},a=(e,t="mouseover")=>{n(t,e)};return(t,n)=>{const o=(0,r.resolveDirective)("clean-html"),s=(0,r.resolveDirective)("clean-tooltip");return(0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(kt.Jj),{distance:14,placement:"bottom"},{dropdownCollection:(0,r.withCtx)(()=>[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.hiddenActions,(t,l)=>(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createBlock)((0,r.unref)(kt.s$),{key:l,disabled:!t.enabled,onClick:e=>i(t,null,e),onMouseover:e=>a(t),onMouseleave:n[0]||(n[0]=e=>a(null,"mouseleave"))},{before:(0,r.withCtx)(()=>[t.icon?((0,r.openBlock)(),(0,r.createElementBlock)("i",{key:0,class:(0,r.normalizeClass)(t.icon)},null,2)):(0,r.createCommentVNode)("",!0)]),default:(0,r.withCtx)(()=>[(0,r.withDirectives)((0,r.createElementVNode)("span",null,null,512),[[o,t.label]])]),_:2},1032,["disabled","onClick","onMouseover"])),[[s,{content:e.actionTooltip,placement:"right"}]])),128))]),default:(0,r.withCtx)(()=>[(0,r.createVNode)((0,r.unref)(kt.Nq),{class:"bulk-actions-dropdown",disabled:e.disabled},{before:(0,r.withCtx)(()=>[...n[1]||(n[1]=[(0,r.createElementVNode)("i",{class:"icon icon-gear"},null,-1)])]),after:(0,r.withCtx)(()=>[...n[2]||(n[2]=[(0,r.createElementVNode)("i",{class:"ml-10 icon icon-chevron-down"},null,-1)])]),default:(0,r.withCtx)(()=>[(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(t.t("sortableTable.bulkActions.collapsed.label")),1)]),_:1},8,["disabled"])]),_:1})}}});const At=xt;var Ct=At,Tt=n(44544),Nt=n(4364),Rt={name:"SortableTable",emits:["clickedActionButton","pagination-changed","group-value-change","selection","rowClick","enter","sortable-table-interaction"],components:{THead:tt,Checkbox:ue.S,AsyncButton:de.A,ActionDropdown:be,LabeledSelect:Je.A,ButtonMultiAction:wt.A,ActionMenu:Et.A,ActionDropdownShell:Ct},mixins:[at,ht,ft,mt,ze,vt,yt],props:{headers:{type:Array,required:!0},rows:{type:Array,required:!0},keyField:{type:String,default:"_key"},loading:{type:Boolean,required:!1},altLoading:{type:Boolean,required:!1},groupBy:{type:String,default:null},groupRef:{type:String,default:null},groupSort:{type:String,default:null},defaultSortBy:{type:String,default:null},tableActions:{type:Boolean,default:!0},rowActions:{type:Boolean,default:!0},mangleActionResources:{type:Function,default:null},rowActionsWidth:{type:Number,default:40},search:{type:Boolean,default:!0},extraSearchFields:{type:Array,default:null},subRows:{type:Boolean,default:!1},subRowsDescription:{type:Boolean,default:!0},subExpandable:{type:Boolean,default:!1},subExpandColumn:{type:Boolean,default:!1},subSearch:{type:String,default:null},subFields:{type:Array,default:null},topDivider:{type:Boolean,default:!0},bodyDividers:{type:Boolean,default:!1},overflowX:{type:Boolean,default:!1},overflowY:{type:Boolean,default:!1},paging:{type:Boolean,default:!1},pagingLabel:{type:String,default:"sortableTable.paging.generic"},pagingParams:{type:Object,default:null},rowsPerPage:{type:Number,default:null},noRowsKey:{type:String,default:"sortableTable.noRows"},showNoRows:{type:Boolean,default:!0},noDataKey:{type:String,default:"sortableTable.noData"},showHeaders:{type:Boolean,default:!0},sortGenerationFn:{type:Function,default:null},sortGeneration:{type:String,default:null},mandatorySort:{type:Array,default:null},getCustomDetailLink:{type:Function,default:null},componentTestid:{type:String,default:"sortable-table"},useQueryParamsForSimpleFiltering:{type:Boolean,default:!1},forceUpdateLiveAndDelayed:{type:Number,default:0},externalPaginationEnabled:{type:Boolean,default:!1},externalPaginationResult:{type:Object,default:null},manualRefreshButtonSize:{type:String,default:""},hideManualRefreshButton:{type:Boolean,default:!1}},data(){let e="",t="";!this.hasAdvancedFiltering&&this.useQueryParamsForSimpleFiltering&&this.$route.query?.q&&(e=this.$route.query?.q,t=this.$route.query?.q);const n=this.loading||!1;return{refreshButtonPhase:n?de.R.WAITING:de.R.ACTION,expanded:{},searchQuery:e,eventualSearchQuery:t,subMatches:null,actionOfInterest:null,loadingDelay:!1,debouncedPaginationChanged:null,isLoading:n}},mounted(){this._loadingDelayTimer=setTimeout(()=>{this.loadingDelay=!0},200);const e=document.querySelector("main");this._onScroll=this.onScroll.bind(this),e?.addEventListener("scroll",this._onScroll),this.debouncedPaginationChanged(),this.updateTabCount(this.totalRows)},beforeUnmount(){clearTimeout(this._scrollTimer),clearTimeout(this._loadingDelayTimer),clearTimeout(this._altLoadingDelayTimer),clearTimeout(this._liveColumnsTimer),clearTimeout(this._delayedColumnsTimer),clearTimeout(this.manualRefreshTimer);const e=document.querySelector("main");e?.removeEventListener("scroll",this._onScroll),this.clearTabCount()},watch:{eventualSearchQuery:Ee()(function(e){if(this.searchQuery=e,!this.hasAdvancedFiltering&&this.useQueryParamsForSimpleFiltering){const t={name:this.$route.name,params:{...this.$route.params},query:{...this.$route.query,q:e}};!e&&this.$route.query?.q&&(t.query={}),this.$router.replace(t)}},200),descending(e,t){this.watcherUpdateLiveAndDelayed(e,t)},searchQuery(e,t){this.watcherUpdateLiveAndDelayed(e,t)},sortFields(e,t){this.watcherUpdateLiveAndDelayed(e,t)},groupBy(e,t){this.watcherUpdateLiveAndDelayed(e,t)},namespaces(e,t){this.watcherUpdateLiveAndDelayed(e,t)},page(e,t){this.watcherUpdateLiveAndDelayed(e,t)},forceUpdateLiveAndDelayed(e,t){this.watcherUpdateLiveAndDelayed(e,t)},initalLoad:{handler(e){e&&(this._didinit=!0,this.$nextTick(()=>this.updateLiveAndDelayed()))},immediate:!0},manualRefreshLoadingFinished:{handler(e,t){this.refreshButtonPhase=e?de.R.ACTION:de.R.WAITING,e&&e!==t&&this.$nextTick(()=>this.updateLiveAndDelayed())},immediate:!0},loading:{handler(e,t){this.refreshButtonPhase=e?de.R.WAITING:de.R.ACTION,this.altLoading?e?this._altLoadingDelayTimer=setTimeout(()=>{this.isLoading=!0},200):(clearTimeout(this._altLoadingDelayTimer),this.isLoading=!1):this.isLoading=e},immediate:!0}},setup(e,{emit:t}){const n=(0,r.ref)(null),i=e=>{"Enter"!==e.key||e.target?.classList?.contains("checkbox-custom")||t("enter",e)};(0,r.onMounted)(()=>{n.value.addEventListener("keyup",i)}),(0,r.onBeforeUnmount)(()=>{n.value.removeEventListener("keyup",i)});const a=(0,ne.Pj)(),{featureDropdownMenu:o}=(0,St.K)(a),{updateTabCount:s,clearTabCount:l}=(0,Tt.Dg)();return{table:n,featureDropdownMenu:o,updateTabCount:s,clearTabCount:l}},created(){this.debouncedRefreshTableData=Ee()(this.refreshTableData,500),this.debouncedPaginationChanged=Ee()(this.paginationChanged,50)},computed:{...(0,ne.L8)({isTooManyItemsToAutoUpdate:"resource-fetch/isTooManyItemsToAutoUpdate"}),...(0,ne.L8)({isManualRefreshLoading:"resource-fetch/manualRefreshIsLoading"}),namespaces(){return this.$store.getters["activeNamespaceCache"]},initalLoad(){return!(this.isLoading||this._didinit||!this.rows?.length)},manualRefreshLoadingFinished(){const e=!(this.isLoading||!this._didinit||!this.rows?.length||this.isManualRefreshLoading);return e},fullColspan(){let e=0;for(let t=0;t<this.columns.length;t++)this.columns[t].hide||e++;return this.tableActions&&e++,this.subExpandColumn&&e++,this.rowActions&&e++,e},noResults(){return!!this.searchQuery&&0===this.pagedRows.length},noRows(){return!this.noResults&&0===(this.rows||[]).length},showHeaderRow(){return this.search||this.tableActions||this.$slots["header-left"]||this.$slots["header-middle"]||this.$slots["header-right"]||this.isTooManyItemsToAutoUpdate},columns(){const e=this.headers.slice().filter(e=>!e.maxPageSize||e.maxPageSize&&e.maxPageSize>=this.perPage);if(this.groupBy){const t=e.find(e=>e.name===this.groupBy);t&&(0,ce.Gj)(e,t)}const t=e.find(e=>!e.width);if(!t){const t=e.find(e=>e.canBeVariable);if(t){const n=(0,le.o8)(t);delete n.width,e.splice(e.indexOf(t),1,n)}}if(this.hasAdvancedFiltering){const t=this.handleColsVisibilyAndFiltering(e);return t}return e},dt(){const e={check:"Select: ",actions:"Actions: "};return this.columns.forEach(t=>{e[t.name]=`${t.label||t.name}:`}),e},classObject(){return{"top-divider":this.topDivider,"body-dividers":this.bodyDividers,"overflow-y":this.overflowY,"overflow-x":this.overflowX,"alt-loading":this.altLoading&&this.isLoading}},hasLiveColumns(){const e=this.columns.find(e=>e.formatter?.startsWith("Live")||e.liveUpdates);return!!e},hasDelayedColumns(){const e=this.columns.find(e=>e.delayLoading);return!!e},columnFormmatterIDs(){const e={};return this.columns.forEach(t=>{t.formatter&&(e[t.formatter]=(0,se._k)(t.formatter))}),e},displayRows(){const e=[],t=this.columnFormmatterIDs;return this.groupedRows.forEach(n=>{const i={grp:n,key:n.key,ref:n.ref,rows:[]};e.push(i),n.rows.forEach(e=>{const n={row:e,key:this.get(e,this.keyField)??(0,se.vx)(),showSubRow:this.showSubRow(e,this.keyField),canRunBulkActionOfInterest:this.canRunBulkActionOfInterest(e),columns:[]};i.rows.push(n),this.columns.forEach(i=>{const a=i.delayLoading?void 0:this.valueFor(e,i,i.isLabel);let o,s=a,l=!1;if(Array.isArray(a)&&(s=a.join(", ")),i.formatter)if(_t[i.formatter])o=_t[i.formatter],l=!0;else{const e=this.$extension?.getDynamic("formatters",i.formatter);e&&(o=(0,r.defineAsyncComponent)(e),l=!0)}n.columns.push({col:i,value:a,formatted:s,component:o,needRef:l,delayed:i.delayLoading,live:i.formatter?.startsWith("Live")||i.liveUpdates,label:this.labelFor(i),dasherize:t[i.formatter]||""})})})}),e}},methods:{refreshTableData(){this.$store.dispatch("resource-fetch/doManualRefresh")},get:le.Jt,dasherize:se._k,onScroll(){(this.hasLiveColumns||this.hasDelayedColumns)&&(clearTimeout(this._liveColumnsTimer),clearTimeout(this._scrollTimer),clearTimeout(this._delayedColumnsTimer),this._scrollTimer=setTimeout(()=>{this.updateLiveColumns(),this.updateDelayedColumns()},300))},watcherUpdateLiveAndDelayed(e,t){e!==t&&this.$nextTick(()=>this.updateLiveAndDelayed())},updateLiveAndDelayed(){this.hasLiveColumns&&this.updateLiveColumns(),this.hasDelayedColumns&&this.updateDelayedColumns()},updateDelayedColumns(){if(clearTimeout(this._delayedColumnsTimer),!this.$refs.column||0===this.pagedRows.length)return;const e=this.$refs.column.filter(e=>e.startDelayedLoading&&!e.__delayedLoading),t=(window.innerHeight||document.documentElement.clientHeight)+100;let n=0;for(let r=0;r<e.length;r++){const i=e[r],a=i.$el.getBoundingClientRect().y;if(a>=0&&a<=t&&(i.startDelayedLoading(!0),i.__delayedLoading=!0,n++,4===n))return void(this._delayedColumnsTimer=setTimeout(this.updateDelayedColumns,100))}},updateLiveColumns(){if(clearTimeout(this._liveColumnsTimer),!this.$refs.column||!this.hasLiveColumns||0===this.pagedRows.length)return;const e=window.innerHeight||document.documentElement.clientHeight,t=this.$refs.column.filter(e=>!!e.liveUpdate),n=ie()();let r=Number.MAX_SAFE_INTEGER;for(let i=0;i<t.length;i++){const a=t[i],o=a.$el.getBoundingClientRect().y;if(o>=0&&o<=e){const e=a.liveUpdate(n);e<r&&(r=e)}}r<1&&(r=1),this._liveColumnsTimer=setTimeout(()=>this.updateLiveColumns(),1e3*r)},labelFor(e){return e.labelKey?this.t(e.labelKey,void 0,!0):e.label?e.label:(0,se.TF)(e.name)},valueFor(e,t,n){if("function"===typeof t.value)return t.value(e);if(n)return e.metadata?.labels&&e.metadata?.labels[t.label]?e.metadata?.labels[t.label]:"";const r=t.value||t.name;if(!r)return Nt.error("No path has been defined for this column, unable to get value of cell",t),"";const i=(0,le.Jt)(e,r);return null===i||void 0===i?"":i},isExpanded(e){const t=e[this.keyField];return!!this.expanded[t]},toggleExpand(e){const t=e[this.keyField],n=!this.expanded[t];return this.expanded[t]=n,this.expanded={...this.expanded},n},setBulkActionOfInterest(e){this.actionOfInterest=e},canRunBulkActionOfInterest(e){if(!this.actionOfInterest||oe()(e?.availableActions))return!1;const t=e.availableActions?.find(e=>e.action===this.actionOfInterest.action);return t?.enabled},focusSearch(){this.$refs.searchQuery&&(this.$refs.searchQuery.focus(),this.$refs.searchQuery.select())},nearestCheckbox(){return document.activeElement.closest("tr.main-row")?.querySelector(".checkbox-custom")},focusAdjacent(e=!0){const t=Array.from(this.$el.querySelectorAll(".checkbox-custom")),n=this.nearestCheckbox();let r=-1;return r=n?t.indexOf(n)+(e?1:-1):e?1:t.length-1,r<1?(r=1,null):r>=t.length?(r=t.length-1,null):t[r]?(t[r].focus(),t[r]):void 0},focusNext:_e()(function(e,t=!1){const n=this.focusAdjacent(!0),r=Ve(n,"tr");r?.classList.contains("row-selected")||this.keySelectRow(r,t)},50),focusPrevious:_e()(function(e,t=!1){const n=this.focusAdjacent(!1),r=Ve(n,"tr");r?.classList.contains("row-selected")||this.keySelectRow(r,t)},50),showSubRow(e,t){const n=this.subRows&&(!this.subExpandable||this.expanded[(0,le.Jt)(e,t)]),r=this.subRowsDescription&&e.stateDescription;return n||r},handleActionButtonClick(e,t){this.$emit("clickedActionButton",{event:t,targetElement:this.$refs[`actionButton${e}`][0]})},paginationChanged(){this.$emit("sortable-table-interaction",{pagination:{page:this.page,perPage:this.perPage},filtering:{searchFields:this.searchFields,searchQuery:this.searchQuery},sorting:{sort:this.sortFields,sortBy:this.sortBy,descending:this.descending}}),this.externalPaginationEnabled&&this.$emit("pagination-changed",{page:this.page,perPage:this.perPage,filter:{searchFields:this.searchFields,searchQuery:this.searchQuery},sort:this.sortFields,descending:this.descending})}}};n(54436),n(70194);const Ot=(0,ge.A)(Rt,[["render",te],["__scopeId","data-v-72587425"]]);var It=Ot},35601:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=n(9274),i=n(8187);const a={class:"state-dot"};var o=(0,r.defineComponent)({__name:"index",props:{color:{},size:{default:"8px"}},setup(e){(0,r.useCssVars)(e=>({v34a0a70d:t.size,v7e32a647:n.value}));const t=e,n=(0,r.computed)(()=>(0,i.zL)(t.color));return(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("span",a))}}),s=(n(94210),n(47433));const l=(0,s.A)(o,[["__scopeId","data-v-2001ed60"]]);var c=l},22896:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=n(65359);function i(...e){document.title=e.filter(e=>e).join(" - ")}var a=n(49845),o=n(4364),s={props:{breadcrumb:{type:[String,Boolean],default:"full",validator(e){return["full","vendor-only"].includes(e)||!1===e}},includeVendor:{type:Boolean,default:!0},showChild:{type:Boolean,default:!0}},computed:{...(0,r.L8)(["isExplorer","currentCluster","currentProduct"])},methods:{computeTitle(){if(!this.$slots.default||"string"!==typeof this.$slots.default()[0].children)return o.error("The <TabTitle> component only supports text as the child."),[];const e=[this.$slots.default()[0].children.trim()];if("full"===this.breadcrumb)if(this.currentCluster&&(this.isExplorer||this.currentCluster.isHarvester))e.unshift(this.currentCluster.nameDisplay);else if(this.currentProduct?.name){const t=this.$store.getters["i18n/withFallback"](`product.${this.currentProduct.name}`,null,null);t&&e.unshift(t)}return this.includeVendor&&["full","vendor-only"].includes(this.breadcrumb)&&e.unshift((0,a.f7)()),e},updatePageTitle(){i(...this.computeTitle())}},created(){this.updatePageTitle()},render(){return this.updatePageTitle(),this.showChild?this.$slots.default():null}};const l=s;var c=l},2675:function(e,t,n){"use strict";n.d(t,{A:function(){return h}});var r=n(9274);const i=["id","aria-hidden","aria-labelledby"],a={key:0,class:"tab-header"},o={key:0,class:"icon icon-info icon-lg"};function s(e,t,n,s,l,c){const u=(0,r.resolveDirective)("clean-tooltip");return(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("section",{id:n.name,"aria-hidden":!l.active,role:"tabpanel","aria-labelledby":`tab-${n.name}`},[c.shouldShowHeader?((0,r.openBlock)(),(0,r.createElementBlock)("div",a,[(0,r.createElementVNode)("h2",null,[(0,r.createTextVNode)((0,r.toDisplayString)(c.labelDisplay)+" ",1),n.tooltip?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("i",o,null,512)),[[u,n.tooltip]]):(0,r.createCommentVNode)("",!0)]),(0,r.renderSlot)(e.$slots,"tab-header-right",{},void 0,!0)])):(0,r.createCommentVNode)("",!0),(0,r.renderSlot)(e.$slots,"default",(0,r.normalizeProps)((0,r.guardReactiveProps)({active:l.active})),void 0,!0)],8,i)),[[r.vShow,l.active]])}var l=n(44544),c={inject:["addTab","removeTab","sideTabs"],emits:["active"],props:{label:{default:null,type:String},labelKey:{default:null,type:String},labelIcon:{type:String,default:null},name:{required:!0,type:String},tooltip:{default:null,type:[String,Object]},weight:{default:0,required:!1,type:Number},showHeader:{type:Boolean,default:null},displayAlertIcon:{type:Boolean,default:null},error:{type:Boolean,default:!1},errorIconTooltip:{type:String,default:""},badge:{default:0,required:!1,type:Number},count:{default:void 0,type:[Number,Boolean]}},setup(e){const{count:t,isCountVisible:n}=(0,l.qz)();return{inferredCount:t,isInferredCountVisible:n}},data(){return{active:null}},computed:{baseLabelDisplay(){return this.labelKey?this.$store.getters["i18n/t"](this.labelKey):this.label?this.label:this.name},labelDisplay(){const e=this.baseLabelDisplay;return!1===this.displayCount?e:`${e} (${this.displayCount})`},shouldShowHeader(){return null!==this.showHeader?this.showHeader:this.sideTabs||!1},displayCount(){return!1!==this.count&&("number"===typeof this.count?this.count:!!this.isInferredCountVisible&&this.inferredCount)}},watch:{active(e){e&&this.$emit("active")}},mounted(){this.addTab(this)},beforeUnmount(){this.removeTab(this)}},u=(n(857),n(47433));const d=(0,u.A)(c,[["render",s],["__scopeId","data-v-c5795340"]]);var h=d},27234:function(e,t,n){"use strict";n.d(t,{A:function(){return I}});var r=n(9274);const i=["data-testid"],a=["data-testid"],o=["id","data-testid"],s=["id","data-testid","aria-controls","aria-selected","aria-label","tabindex","onClick","onKeyup"],l={key:1,class:"tab-badge"},c={key:2,class:"conditions-alert-icon icon-error"},u={key:0,class:"tab disabled"},d={key:1,class:"tab-list-footer"},h=["aria-label"],p=["disabled","aria-label"];function f(e,t,n,f,m,g){const v=(0,r.resolveComponent)("Tab"),b=(0,r.resolveDirective)("clean-tooltip");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(["tabbed-container",{"side-tabs":!!n.sideTabs,"tabs-only":n.tabsOnly,"remove-borders":n.removeBorders}]),"data-testid":n.componentTestid},[g.hideTabs?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("ul",{key:0,ref:"tablist",role:"tablist",class:(0,r.normalizeClass)(["tabs",{clearfix:!n.sideTabs,vertical:n.sideTabs,horizontal:!n.sideTabs,"remove-borders":n.removeBorders}]),"data-testid":`${n.componentTestid}-block`,tabindex:"0",onKeydown:[t[3]||(t[3]=(0,r.withKeys)((0,r.withModifiers)(e=>g.selectNext(1),["prevent"]),["right"])),t[4]||(t[4]=(0,r.withKeys)((0,r.withModifiers)(e=>g.selectNext(-1),["prevent"]),["left"])),t[5]||(t[5]=(0,r.withKeys)((0,r.withModifiers)(e=>g.selectNext(1),["prevent"]),["down"])),t[6]||(t[6]=(0,r.withKeys)((0,r.withModifiers)(e=>g.selectNext(-1),["prevent"]),["up"]))]},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(g.sortedTabs,t=>((0,r.openBlock)(),(0,r.createElementBlock)("li",{id:t.name,key:t.name,"data-testid":t.name,class:(0,r.normalizeClass)({tab:!0,active:t.active,disabled:t.disabled,error:t.error})},[(0,r.createElementVNode)("a",{id:`tab-${t.name}`,ref_for:!0,ref:e=>{e&&(m.tabRefs[t.name]=e)},"data-testid":`btn-${t.name}`,"aria-controls":t.name,"aria-selected":t.active,"aria-label":t.labelDisplay||"",role:"tab",tabindex:t.active?"0":"-1",onClick:(0,r.withModifiers)(e=>g.select(t.name,e),["prevent"]),onKeyup:(0,r.withKeys)(e=>g.select(t.name,e),["enter","space"])},[t.labelIcon?((0,r.openBlock)(),(0,r.createElementBlock)("i",{key:0,class:(0,r.normalizeClass)(`tab-label-icon icon ${t.labelIcon}`)},null,2)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(t.labelDisplay),1),t.badge?((0,r.openBlock)(),(0,r.createElementBlock)("span",l,(0,r.toDisplayString)(t.badge),1)):(0,r.createCommentVNode)("",!0),g.hasErrorIcon(t)?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("i",c,null,512)),[[b,t.errorIconTooltip||e.t("validation.tab")]]):(0,r.createCommentVNode)("",!0)],40,s)],10,o))),128)),n.sideTabs&&!g.sortedTabs.length?((0,r.openBlock)(),(0,r.createElementBlock)("li",u,[(0,r.createElementVNode)("a",{href:"#",onClick:t[0]||(t[0]=(0,r.withModifiers)(()=>{},["prevent"]))},"(None)")])):(0,r.createCommentVNode)("",!0),n.sideTabs&&n.showTabsAddRemove?((0,r.openBlock)(),(0,r.createElementBlock)("ul",d,[(0,r.createElementVNode)("li",null,[(0,r.createElementVNode)("button",{type:"button",class:"btn bg-transparent","data-testid":"tab-list-add","aria-label":e.t("tabs.addItem"),onClick:t[1]||(t[1]=(...e)=>g.tabAddClicked&&g.tabAddClicked(...e))},[...t[7]||(t[7]=[(0,r.createElementVNode)("i",{class:"icon icon-plus"},null,-1)])],8,h),(0,r.createElementVNode)("button",{type:"button",class:"btn bg-transparent",disabled:!g.sortedTabs.length,"data-testid":"tab-list-remove","aria-label":e.t("tabs.removeItem"),onClick:t[2]||(t[2]=(...e)=>g.tabRemoveClicked&&g.tabRemoveClicked(...e))},[...t[8]||(t[8]=[(0,r.createElementVNode)("i",{class:"icon icon-minus"},null,-1)])],8,p)])])):(0,r.createCommentVNode)("",!0),(0,r.renderSlot)(e.$slots,"tab-row-extras",{},void 0,!0)],42,a)),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)({"tab-container":!!m.tabs.length||!!n.sideTabs,"no-content":n.noContent,"tab-container--flat":!!n.flat})},[(0,r.renderSlot)(e.$slots,"default",{},void 0,!0),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(m.extensionTabs,(e,t)=>((0,r.openBlock)(),(0,r.createBlock)(v,{key:`${e.name}${t}`,name:e.name,label:e.label,"label-key":e.labelKey,"label-icon":e.labelIcon,weight:e.weight,tooltip:e.tooltip,"show-header":e.showHeader,"display-alert-icon":e.displayAlertIcon,error:e.error,"error-icon-tooltip":e.errorIconTooltip,badge:e.badge},{default:(0,r.withCtx)(()=>[((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.component),{resource:n.resource},null,8,["resource"]))]),_:2},1032,["name","label","label-key","label-icon","weight","tooltip","show-header","display-alert-icon","error","error-icon-tooltip","badge"]))),128))],2)],10,i)}var m=n(13981),g=n.n(m),v=n(3514),b=n.n(v),y=n(68851),_=n(74302),w=n(92154),E=n.n(w),S=n(31915),k=n(25659),x=n(2675),A=n(89366),C=n(91452),T=n(3889),N={name:"Tabbed",components:{Tab:x.A},emits:["changed","addTab","removeTab"],props:{defaultTab:{type:String,default:null},sideTabs:{type:Boolean,default:!1},hideSingleTab:{type:Boolean,default:!1},showTabsAddRemove:{type:Boolean,default:!1},scrollOnChange:{type:Boolean,default:!1},useHash:{type:Boolean,default:!0},noContent:{type:Boolean,default:!1},flat:{type:Boolean,default:!1},tabsOnly:{type:Boolean,default:!1},resource:{type:Object,default:()=>{}},showExtensionTabs:{type:Boolean,default:!0},extensionParams:{type:Object,default:null},componentTestid:{type:String,default:"tabbed"},removeBorders:{type:Boolean,default:!1}},provide(){const e=this.tabs;return{sideTabs:this.sideTabs,addTab(t){const n=(0,y.jq)(e,"name",t.name);n&&(0,y.Gj)(e,n),(0,y.PG)(e,t)},removeTab(t){(0,y.Gj)(e,t)}}},data(){const e=this.getInitialTabLocation();let t=this.showExtensionTabs&&(0,k.A)(this,S.c7.TAB,e,this.$route,this,this.extensionParams)||[];const n=this.showExtensionTabs&&(0,k.A)(this,S.c7.TAB,S.lX.RESOURCE_DETAIL,this.$route,this,this.extensionParams)||[];t.length||(t=n);const r=t.map(e=>({...e,active:!1}));return{tabs:[...r],extensionTabs:r,activeTabName:null,tabRefs:{}}},computed:{sortedTabs(){return(0,_.Ul)(this.tabs,["weight:desc","labelDisplay","name"])},hideTabs(){return this.hideSingleTab&&1===this.sortedTabs.length}},setup(){const e=(0,r.ref)((0,A.R7)()),t=(0,r.ref)((0,C.x)()),n=(0,r.ref)((0,T.UN)()),i=(0,r.ref)((0,T.cB)());return{isInResourceDetailDrawer:e,isInResourceDetailPage:t,isInResourceEditPage:n,isInResourceCreatePage:i}},watch:{sortedTabs(e){const{defaultTab:t,useHash:n}=this,r=e.find(e=>e.active),i=n?this.$route.hash:void 0,a=n?i.slice(1):void 0,o=e.find(e=>e.name===a&&!e.active),s=g()(e)||null;b()(r)?n&&!b()(o)?this.select(o.name):b()(t)||b()(e.find(e=>e.name===t))?s?.name&&this.select(s.name):this.select(t):n&&r?.name===a&&this.select(r.name)},"$route.hash"(){this.useHash&&this.hashChange()}},methods:{getInitialTabLocation(){return this.isInResourceEditPage?S.lX.RESOURCE_EDIT_PAGE:this.isInResourceDetailDrawer?S.lX.RESOURCE_SHOW_CONFIGURATION:this.isInResourceDetailPage?S.lX.RESOURCE_DETAIL_PAGE:this.isInResourceCreatePage?S.lX.RESOURCE_CREATE_PAGE:S.lX.OTHER},hasErrorIcon(e){return e.displayAlertIcon||e.error&&!e.active},hashChange(){if(this.scrollOnChange){const e=document.getElementsByTagName("main")[0];e&&(e.scrollTop=0)}this.select(this.$route.hash)},find(e){return this.sortedTabs.find(t=>t.name===e)},select(e){const{sortedTabs:t}=this,n=e.replace("#",""),r=this.find(n),i=`#${n}`;if(r&&!r.disabled){if(this.useHash){const e=this.$router.currentRoute._value,t=e.hash;if(this.useHash&&t!==i){const t={...e};t.hash=i,this.$router.replace(t)}}for(const e of t)e.active=e.name===r.name;this.$emit("changed",{tab:r,selectedName:r.name}),this.activeTabName=r.name}},selectNext(e){const{sortedTabs:t}=this,n=t.findIndex(e=>e.active),r=a(n,e,t.length),i=t[r].name;function a(e,t,n){const r=e+t;return r>=n?0:r<0?n-1:r}this.select(i),this.$nextTick(()=>{this.$refs.tablist.removeAttribute("tabindex"),this.tabRefs[i]&&this.tabRefs[i].focus()})},tabAddClicked(){const e=E()(this.tabs,e=>e.active);this.$emit("addTab",e)},tabRemoveClicked(){const e=E()(this.tabs,e=>e.active);this.$emit("removeTab",e)}}},R=(n(81976),n(47433));const O=(0,R.A)(N,[["render",f],["__scopeId","data-v-6139718a"]]);var I=O},8529:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=n(9274);const i={class:"tag"};function a(e,t,n,a,o,s){return(0,r.openBlock)(),(0,r.createElementBlock)("span",i,[(0,r.renderSlot)(e.$slots,"default",{},void 0,!0)])}var o={},s=(n(4901),n(47433));const l=(0,s.A)(o,[["render",a],["__scopeId","data-v-0d281a35"]]);var c=l},89559:function(e,t,n){"use strict";n.d(t,{A:function(){return p}});var r=n(9274);function i(e,t,n,i,a,o){const s=(0,r.resolveComponent)("Banner");return o.typeDescriptionKey?((0,r.openBlock)(),(0,r.createBlock)(s,{key:0,class:"type-banner mb-20 mt-0",color:"info",closable:!0,"label-key":o.typeDescriptionKey,onClose:o.hideTypeDescription},null,8,["label-key","onClose"])):(0,r.createCommentVNode)("",!0)}var a=n(65359),o=n(9980),s=n(91462),l=n(68851),c=n(35664),u={components:{Banner:o.l},props:{resource:{type:String,required:!0}},computed:{...(0,a.L8)(["currentCluster"]),hideDescriptions:(0,s.AN)(s.xL),typeDescriptionKey(){let e;return e=this.resource===c.W8.CLUSTER_REPO?!this.currentCluster||this.currentCluster.isLocal?'typeDescription."catalog.cattle.io.clusterrepo.local"':'typeDescription."catalog.cattle.io.clusterrepo"':`typeDescription."${this.resource}"`,!this.hideDescriptions.includes(this.resource)&&!this.hideDescriptions.includes("ALL")&&(!!this.$store.getters["i18n/exists"](e)&&e)}},methods:{hideTypeDescription(){const e=this.hideDescriptions.slice();(0,l.PG)(e,this.resource),this.hideDescriptions=e}}},d=n(47433);const h=(0,d.A)(u,[["render",i]]);var p=h},67850:function(e,t,n){"use strict";n.d(t,{j:function(){return x},A:function(){return T}});var r=n(9274);const i={class:"yaml-editor"},a={class:"text-right"},o={key:0,class:"btn-group btn-sm diff-mode"},s=["aria-label"],l=["aria-label"];function c(e,t,n,c,u,d){const h=(0,r.resolveComponent)("CodeMirror"),p=(0,r.resolveComponent)("FileDiff"),f=(0,r.resolveDirective)("trim-whitespace");return(0,r.openBlock)(),(0,r.createElementBlock)("div",i,[(0,r.createElementVNode)("div",a,[d.isPreview&&!n.hidePreviewButtons?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("span",o,[(0,r.createElementVNode)("button",{role:"button","aria-label":e.t("generic.unified"),type:"button",class:(0,r.normalizeClass)(["btn btn-sm bg-default",{active:"split"!==d.diffMode}]),onClick:t[0]||(t[0]=e=>d.diffMode="unified")},(0,r.toDisplayString)(e.t("generic.unified")),11,s),(0,r.createElementVNode)("button",{role:"button","aria-label":e.t("generic.split"),type:"button",class:(0,r.normalizeClass)(["btn btn-sm bg-default",{active:"split"===d.diffMode}]),onClick:t[1]||(t[1]=e=>d.diffMode="split")},(0,r.toDisplayString)(e.t("generic.split")),11,l)])),[[f]]):(0,r.createCommentVNode)("",!0)]),d.showCodeEditor?((0,r.openBlock)(),(0,r.createBlock)(h,{key:0,ref:"cm",class:(0,r.normalizeClass)({fill:!0,scrolling:n.scrolling}),value:u.curValue,options:d.codeMirrorOptions,showKeyMapBox:!0,"data-testid":n.componentTestid+"-code-mirror",mode:n.mode,onOnInput:d.onInput,onOnReady:d.onReady,onOnChanges:d.onChanges,onValidationChanged:t[2]||(t[2]=t=>e.$emit("validationChanged",t))},null,8,["class","value","options","data-testid","mode","onOnInput","onOnReady","onOnChanges"])):((0,r.openBlock)(),(0,r.createBlock)(p,{key:1,class:(0,r.normalizeClass)({fill:!0,scrolling:n.scrolling}),filename:".yaml","side-by-side":"split"===d.diffMode,orig:u.original,neu:u.curValue,"footer-space":80},null,8,["class","side-by-side","orig","neu"]))])}var u=n(20246),d=n.n(u),h=n(91462),p=n(3514),f=n.n(p),m=n(37648),g=n(78119);const v={id:"diffElement",ref:"root",class:"root"};function b(e,t,n,i,a,o){const s=(0,r.resolveComponent)("resize-observer");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createVNode)(s,{onNotify:o.fit},null,8,["onNotify"]),(0,r.createElementVNode)("div",v,null,512)])}var y=n(34312),_=n(46867),w={props:{filename:{type:String,default:"file.txt"},sideBySide:{type:Boolean,default:!1},orig:{type:String,required:!0},neu:{type:String,required:!0},autoResize:{type:Boolean,default:!0},footerSpace:{type:Number,default:0},minHeight:{type:Number,default:200}},mounted(){this.draw()},watch:{sideBySide(){this.draw()}},methods:{draw(){const e=document.getElementById("diffElement"),t=(0,_.createPatch)(this.filename,this.orig,this.neu),n={synchronisedScroll:!0,outputFormat:this.sideBySide?"side-by-side":"line-by-line",drawFileList:!1,matching:"words"},r=new y.Diff2HtmlUI(e,t,n);r.draw(),this.fit()},fit(){if(!this.autoResize)return;const e=this.$refs.root;if(!e)return;const t=e.getBoundingClientRect();if(!t)return;const n=window.innerHeight-t.top-this.footerSpace;e.style.height=`${Math.max(0,n)}px`}}},E=(n(32435),n(45978),n(47433));const S=(0,E.A)(w,[["render",b],["__scopeId","data-v-639a852a"]]);var k=S;const x={EDIT_CODE:"EDIT_CODE",VIEW_CODE:"VIEW_CODE",DIFF_CODE:"DIFF_CODE"};var A={emits:["update:value","newObject","onInput","onReady","onChanges","validationChanged"],components:{CodeMirror:g.A,FileDiff:k},props:{editorMode:{type:String,default:x.EDIT_CODE,validator(e){return Object.values(x).includes(e)}},mode:{type:String,default:""},asObject:{type:Boolean,default:!1},initialYamlValues:{type:[String,Object],default:""},scrolling:{type:Boolean,default:!0},value:{type:[String,Object],default:""},hidePreviewButtons:{type:Boolean,default:!1},componentTestid:{type:String,default:"yaml-editor"}},data(){const{initialYamlValues:e,value:t}=this;let n,r;return n=this.asObject?(0,m.Kq)(t):t||"",r=this.asObject&&e?(0,m.Kq)(e):e,f()(r)&&(r=t),{original:r,curValue:n}},computed:{codeMirrorOptions(){const e=this.editorMode===x.VIEW_CODE,t=[];return e||t.push("CodeMirror-lint-markers"),t.push("CodeMirror-foldgutter"),{readOnly:e,gutters:t,mode:"yaml",lint:!e,lineNumbers:!e,styleActiveLine:!1,tabSize:2,indentWithTabs:!1,cursorBlinkRate:e?-1:530,extraKeys:{"Ctrl-Space":"autocomplete",Tab:e=>{e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertSoftTab")},"Shift-Tab":e=>{e.indentSelection("subtract")}},screenReaderLabel:this.t("import.editor.label")}},isPreview(){return this.editorMode===x.DIFF_CODE},diffMode:(0,h.AN)(h.Mu),showCodeEditor(){return[x.EDIT_CODE,x.VIEW_CODE].includes(this.editorMode)}},watch:{showUploadPrompt(e){e&&this.$refs.yamluploader.click()}},methods:{focus(){this.$refs.cm&&this.$refs.cm.focus()},refresh(){this.$refs.cm&&this.$refs.cm.refresh()},onInput(e){this.asObject||this.$emit("update:value",...arguments);try{const t=d().load(e);this.asObject?this.$emit("update:value",t):this.$emit("newObject",t)}catch(t){}this.$emit("onInput",...arguments)},onReady(){this.$emit("onReady",...arguments)},onChanges(){this.$emit("onChanges",...arguments)},updateValue(e){this.curValue=e,this.$refs.cm?.updateValue(e)}}};n(40930);const C=(0,E.A)(A,[["render",c]]);var T=C},64676:function(e,t,n){"use strict";n.d(t,{A:function(){return O}});var r=n(9274);const i=["aria-label"],a={key:0,class:"clearfix",role:"group"},o={key:0,class:"required","aria-hidden":"true"},s={key:1,class:"icon icon-info",tabindex:"0"},l={key:0,class:"array-list-header-group",role:"group"},c={class:"value text-label mb-10"},u=["data-testid"],d={class:"value"},h=["onUpdate:modelValue","data-testid","placeholder","disabled","aria-label","onPaste"],p={key:0,class:"remove"},f=["disabled","data-testid","aria-label","onClick"],m={key:1},g={key:0,class:"text-muted"},v={key:2,class:"footer mmt-6"},b=["disabled","data-testid","aria-label"];function y(e,t,n,y,_,w){const E=(0,r.resolveComponent)("TextAreaAutoGrow"),S=(0,r.resolveComponent)("LabeledInput"),k=(0,r.resolveDirective)("clean-tooltip");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:"array-list-main-container",role:"group","aria-label":n.title||e.t("generic.ariaLabel.arrayList")},[n.title?((0,r.openBlock)(),(0,r.createElementBlock)("div",a,[(0,r.renderSlot)(e.$slots,"title",{},()=>[(0,r.createElementVNode)("h3",null,[(0,r.createTextVNode)((0,r.toDisplayString)(n.title)+" ",1),n.required?((0,r.openBlock)(),(0,r.createElementBlock)("span",o,"*")):(0,r.createCommentVNode)("",!0),w.showProtip?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("i",s,null,512)),[[k,{content:n.protip,triggers:["hover","touch","focus"]}]]):(0,r.createCommentVNode)("",!0)])],!0)])):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",null,[y.rows.length?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[n.showHeader?((0,r.openBlock)(),(0,r.createElementBlock)("div",l,[(0,r.renderSlot)(e.$slots,"column-headers",{},()=>[(0,r.createElementVNode)("label",c,(0,r.toDisplayString)(n.valueLabel),1)],!0)])):(0,r.createCommentVNode)("",!0),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(y.rows,(t,i)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:i,"data-testid":`${n.componentTestid}-box${i}`,class:(0,r.normalizeClass)(["box",{"hide-remove-is-view":y.isView}]),role:"group"},[(0,r.renderSlot)(e.$slots,"columns",{queueUpdate:y.queueUpdate,i:i,rows:y.rows,row:t,mode:n.mode,isView:y.isView},()=>[(0,r.createElementVNode)("div",d,[(0,r.renderSlot)(e.$slots,"value",{row:t,mode:n.mode,isView:y.isView,queueUpdate:y.queueUpdate},()=>[n.valueMultiline?((0,r.openBlock)(),(0,r.createBlock)(E,{key:0,ref_for:!0,ref:"value",value:t.value,"onUpdate:value":[e=>t.value=e,y.queueUpdate],"data-testid":`${n.componentTestid}-textarea-${i}`,placeholder:n.valuePlaceholder,mode:n.mode,disabled:n.disabled,"aria-label":n.a11yLabel?`${n.a11yLabel} ${e.t("generic.ariaLabel.genericRow",{index:i+1})}`:void 0,onPaste:e=>w.onPaste(i,e)},null,8,["value","onUpdate:value","data-testid","placeholder","mode","disabled","aria-label","onPaste"])):n.rules.length>0?((0,r.openBlock)(),(0,r.createBlock)(S,{key:1,ref_for:!0,ref:"value",value:t.value,"onUpdate:value":[e=>t.value=e,y.queueUpdate],"data-testid":`${n.componentTestid}-labeled-input-${i}`,placeholder:n.valuePlaceholder,disabled:y.isView||n.disabled,rules:n.rules,compact:!1,"aria-label":n.a11yLabel?`${n.a11yLabel} ${e.t("generic.ariaLabel.genericRow",{index:i+1})}`:void 0,onPaste:e=>w.onPaste(i,e)},null,8,["value","onUpdate:value","data-testid","placeholder","disabled","rules","aria-label","onPaste"])):(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("input",{key:2,ref_for:!0,ref:"value","onUpdate:modelValue":e=>t.value=e,"data-testid":`${n.componentTestid}-input-${i}`,placeholder:n.valuePlaceholder,disabled:y.isView||n.disabled,"aria-label":n.a11yLabel?`${n.a11yLabel} ${e.t("generic.ariaLabel.genericRow",{index:i+1})}`:void 0,onPaste:e=>w.onPaste(i,e)},null,40,h)),[[r.vModelText,t.value]])],!0)])],!0),w.showRemove&&!y.isView?((0,r.openBlock)(),(0,r.createElementBlock)("div",p,[(0,r.renderSlot)(e.$slots,"remove-button",{remove:()=>w.remove(t,i),i:i,row:t},()=>[(0,r.createElementVNode)("button",{type:"button",disabled:y.isView,class:"btn role-link","data-testid":`${n.componentTestid}-remove-item-${i}`,"aria-label":e.t("generic.ariaLabel.remove",{index:i+1}),role:"button",onClick:e=>w.remove(t,i)},(0,r.toDisplayString)(w._removeLabel),9,f)],!0)])):(0,r.createCommentVNode)("",!0),(0,r.renderSlot)(e.$slots,"value-sub-row",{row:t,mode:n.mode,isView:y.isView},void 0,!0)],10,u))),128))],64)):((0,r.openBlock)(),(0,r.createElementBlock)("div",m,[(0,r.renderSlot)(e.$slots,"empty",{},()=>["view"===n.mode?((0,r.openBlock)(),(0,r.createElementBlock)("div",g," — ")):(0,r.createCommentVNode)("",!0)],!0)])),w.showAdd&&!y.isView?((0,r.openBlock)(),(0,r.createElementBlock)("div",v,[w.showAdd?(0,r.renderSlot)(e.$slots,"add",{key:0,add:w.add},()=>[(0,r.createElementVNode)("button",{type:"button",class:(0,r.normalizeClass)(["btn role-tertiary add",[n.addClass]]),disabled:n.loading||w.disableAdd,"data-testid":`${n.componentTestid}-button`,"aria-label":w._addLabel,role:"button",onClick:t[0]||(t[0]=e=>w.add())},[(0,r.createElementVNode)("i",{class:(0,r.normalizeClass)(["mr-5 icon",n.loading?["icon-lg","icon-spinner","icon-spin"]:[n.addIcon]])},null,2),(0,r.createTextVNode)(" "+(0,r.toDisplayString)(w._addLabel),1)],10,b)],!0):(0,r.createCommentVNode)("",!0)])):(0,r.createCommentVNode)("",!0)])],8,i)}var _=n(12784),w=n.n(_),E=n(14220),S=n(68851),k=n(6879),x=n(76978),A=n(79380);const C="Tip: Paste lines into any list field for easy bulk entry";var T={emits:["add","remove","update:value"],components:{TextAreaAutoGrow:k.V,LabeledInput:A.o},props:{value:{type:Array,default:null},mode:{type:String,default:E.G5},initialEmptyRow:{type:Boolean,default:!1},title:{type:String,default:""},protip:{type:[String,Boolean],default:C},showHeader:{type:Boolean,default:!1},valueLabel:{type:String,default:"Value"},valuePlaceholder:{type:String,default:"e.g. bar"},valueMultiline:{type:Boolean,default:!1},addClass:{type:String,default:""},addIcon:{type:String,default:""},addLabel:{type:String,default:""},addAllowed:{type:Boolean,default:!0},addDisabled:{type:Boolean,default:!1},removeLabel:{type:String,default:""},removeAllowed:{type:Boolean,default:!0},defaultAddValue:{type:[String,Number,Object,Array],default:""},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},rules:{default:()=>[],type:Array,validator:e=>e.every(e=>["function"].includes(typeof e))},a11yLabel:{type:String,default:""},componentTestid:{type:String,default:"array-list"}},setup(e,{emit:t}){const n=(Array.isArray(e.value)?e.value:[]).slice(),i=(0,r.ref)([]);for(const r of n)i.value.push({value:r});if(!i.value.length&&e.initialEmptyRow){const t=e.defaultAddValue?(0,x.o8)(e.defaultAddValue):"";i.value.push({value:t})}const a=(0,r.computed)(()=>e.mode===E.nW),o=()=>{if(a.value)return;const n=[];for(const t of i.value){const r=!e.valueMultiline&&"string"===typeof t.value,i=r?t.value.trim():t.value;"undefined"!==typeof i&&n.push(i)}t("update:value",n)},s=(0,r.ref)(!1),l=w()(o,50);return(0,r.watch)(i,()=>{s.value||l(),s.value=!1},{deep:!0}),(0,r.watch)(()=>e.value,()=>{s.value=!0,i.value=(e.value||[]).map(e=>({value:e}))},{deep:!0}),{rows:i,lastUpdateWasFromValue:s,queueUpdate:l,isView:a,update:o}},computed:{_addLabel(){return this.addLabel||this.t("generic.ariaLabel.genericAddRow")},_removeLabel(){return this.removeLabel||this.t("generic.remove")},showAdd(){return this.addAllowed},disableAdd(){return this.addDisabled},showRemove(){return this.removeAllowed},isDefaultProtip(){return this.protip===C},showProtip(){return!(!this.protip||this.isDefaultProtip)||!this.valueMultiline&&this.protip}},created(){},methods:{add(){this.rows.push({value:(0,x.o8)(this.defaultAddValue)}),this.defaultAddValue&&this.queueUpdate(),this.$nextTick(()=>{const e=this.$refs.value;e&&e.length>0&&e[e.length-1].focus(),this.$emit("add")})},remove(e,t){this.$emit("remove",{row:e,index:t}),(0,S.Wq)(this.rows,t),this.queueUpdate()},onPaste(e,t){t.preventDefault();const n=t.clipboardData.getData("text/plain");if(this.valueMultiline)this.rows[e].value=n;else{const r=n.split("\n").map(e=>({value:e}));t.preventDefault(),this.rows.splice(e,1,...r)}this.update()}}},N=(n(20424),n(47433));const R=(0,N.A)(T,[["render",y],["__scopeId","data-v-5002fd75"]]);var O=R},31097:function(e,t,n){"use strict";n.d(t,{A:function(){return p}});var r=n(9274);const i=["data-testid","onClick"],a={key:1};function o(e,t,n,o,s,l){const c=(0,r.resolveComponent)("InfoBox"),u=(0,r.resolveComponent)("ArrayList");return(0,r.openBlock)(),(0,r.createBlock)(u,(0,r.mergeProps)({class:"array-list-grouped",value:n.value},e.$attrs,{"add-allowed":n.canAdd&&!l.isView,mode:n.mode,"initial-empty-row":n.initialEmptyRow,"onUpdate:value":t[0]||(t[0]=t=>e.$emit("update:value",t)),onAdd:t[1]||(t[1]=t=>e.$emit("add")),onRemove:t[2]||(t[2]=t=>e.$emit("remove",t))}),(0,r.createSlots)({columns:(0,r.withCtx)(t=>[(0,r.createVNode)(c,null,{default:(0,r.withCtx)(()=>[(0,r.renderSlot)(e.$slots,"default",(0,r.normalizeProps)((0,r.guardReactiveProps)(t)))]),_:2},1024)]),"remove-button":(0,r.withCtx)(e=>[l.canRemoveRow(e.row,e.i)?((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:0,type:"button",class:"btn role-link close btn-sm","data-testid":`remove-item-${e.i}`,onClick:e.remove},[...t[3]||(t[3]=[(0,r.createElementVNode)("i",{class:"icon icon-x"},null,-1)])],8,i)):((0,r.openBlock)(),(0,r.createElementBlock)("span",a))]),_:2},[(0,r.renderList)(e.$slots,(t,n)=>({name:n,fn:(0,r.withCtx)(t=>["function"===typeof e.$slots[n]?(0,r.renderSlot)(e.$slots,n,(0,r.normalizeProps)((0,r.mergeProps)({key:0},t))):(0,r.createCommentVNode)("",!0)])}))]),1040,["value","add-allowed","mode","initial-empty-row"])}var s=n(64676),l=n(26962),c=n(14220),u={name:"ArrayListGrouped",components:{ArrayList:s.A,InfoBox:l.A},props:{canRemove:{type:[Boolean,Function],default:!0},canAdd:{type:Boolean,default:!0},initialEmptyRow:{type:Boolean,default:!1},mode:{type:String,default:c.G5},value:{type:Object,default:()=>({})}},emits:["update:value","add","remove"],computed:{isView(){return this.mode===c.nW}},methods:{canRemoveRow(e,t){return!this.isView&&("function"===typeof this.canRemove?this.canRemove(e,t):this.canRemove)}}},d=(n(53575),n(47433));const h=(0,d.A)(u,[["render",o]]);var p=h},20491:function(e,t,n){"use strict";n.d(t,{B:function(){return c},A:function(){return p}});var r=n(9274);const i=["disabled","aria-label"],a=["multiple","webkitdirectory","accept"];function o(e,t,n,o,s,l){return l.isView?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("button",{key:0,disabled:n.disabled,"aria-label":n.label,type:"button",role:"button",class:(0,r.normalizeClass)(l.customClass),"data-testid":"file-selector__uploader-button",onClick:t[1]||(t[1]=(...e)=>l.selectFile&&l.selectFile(...e))},[(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(n.label),1),(0,r.createElementVNode)("input",{ref:"uploader",type:"file",class:"hide",multiple:n.multiple,webkitdirectory:n.directory,accept:n.accept,onChange:t[0]||(t[0]=(...e)=>l.fileChange&&l.fileChange(...e))},null,40,a)],10,i))}var s=n(14220),l=n(76978);function c(e){return function(t){(0,l.hZ)(this,e,t)}}var u={emits:["error","selected"],props:{label:{type:String,required:!0},mode:{type:String,default:s.G5},disabled:{type:Boolean,default:!1},includeFileName:{type:Boolean,default:!1},showGrowlError:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},byteLimit:{type:Number,default:0},readAsDataUrl:{type:Boolean,default:!1},directory:{type:Boolean,default:!1},rawData:{type:Boolean,default:!1},accept:{type:String,default:"*"},class:{type:[String,Array],default:()=>[]}},computed:{isView(){return this.mode===s.nW},customClass(){return["file-selector","btn",...Array.isArray(this.class)?this.class:[this.class]]}},methods:{selectFile(){this.$refs.uploader.value=null,this.$refs.uploader.click()},async fileChange(e){const t=e.target,n=Array.from(t.files||[]);if(this.byteLimit)for(const i of n)if(i.size>this.byteLimit)return void this.$emit("error",`${i.name} exceeds the file size limit of ${this.byteLimit} bytes`);if(this.rawData){const e=this.multiple||1!==n.length?n:n[0];return void this.$emit("selected",e)}try{const e=n.map(this.getFileContents),t=await Promise.all(e),r=this.multiple||1!==t.length?t:t[0];this.$emit("selected",r)}catch(r){this.$emit("error",r),this.showGrowlError&&this.$store.dispatch("growl/fromError",{title:"Error reading file",error:r},{root:!0})}},getFileContents(e){return new Promise((t,n)=>{const r=new FileReader;r.onload=n=>{const r=n.target.result,i=e.name,a=this.includeFileName?{value:r,name:i}:r;t(a)},r.onerror=e=>{n(e)},this.readAsDataUrl?r.readAsDataURL(e):r.readAsText(e)})}}},d=n(47433);const h=(0,d.A)(u,[["render",o]]);var p=h},77262:function(e,t,n){"use strict";n.d(t,{A:function(){return m}});var r=n(9274);const i={key:0},a={class:"buttons"},o={class:"left"},s={class:"right"};function l(e,t,n,l,c,u){const d=(0,r.resolveComponent)("Banner"),h=(0,r.resolveComponent)("t"),p=(0,r.resolveComponent)("AsyncButton");return e.isView?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("div",i,[t[1]||(t[1]=(0,r.createElementVNode)("div",{class:"spacer-small"},null,-1)),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.errors,(t,n)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:n},[(0,r.createVNode)(d,{color:"error",label:t,closable:!0,onClose:t=>e.closeError(n)},null,8,["label","onClose"])]))),128)),(0,r.createElementVNode)("div",a,[(0,r.createElementVNode)("div",o,[(0,r.renderSlot)(e.$slots,"left")]),(0,r.createElementVNode)("div",s,[(0,r.renderSlot)(e.$slots,"cancel",{},()=>[(0,r.createElementVNode)("button",{type:"button",class:"btn role-secondary",onClick:t[0]||(t[0]=(...t)=>e.done&&e.done(...t))},[(0,r.createVNode)(h,{k:"generic.cancel"})])]),(0,r.renderSlot)(e.$slots,"middle"),(0,r.renderSlot)(e.$slots,"save",{},()=>[e.isView?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createBlock)(p,{key:0,mode:e.mode,disabled:e.disableSave,onClick:e.save},null,8,["mode","disabled","onClick"]))]),(0,r.renderSlot)(e.$slots,"right")])])]))}var c=n(14220),u=n(67607),d=n(68745),h=(0,r.defineComponent)({emits:["save","done","closeError"],components:{AsyncButton:u.A,Banner:d.A},props:{mode:{type:String,required:!0},errors:{type:Array,default:()=>[]},disableSave:{type:Boolean,default:!1}},computed:{isView(){return this.mode===c.nW}},methods:{closeError(e){this.$emit("closeError",e)},save(e){this.$emit("save",e)},done(){this.$emit("done")}}}),p=(n(6378),n(47433));const f=(0,p.A)(h,[["render",l]]);var m=f},32748:function(e,t,n){"use strict";n.d(t,{A:function(){return $}});var r=n(9274);const i=["id","tabindex","aria-expanded","aria-describedby","aria-required"],a=["for"],o={key:2,class:"required","aria-hidden":!0},s={key:0,class:"only-user-opts"},l={key:1,class:"vs__option-kind-group"},c={key:1},u={key:2,role:"none"},d={key:3,class:"option-kind-highlighted"},h={key:0,class:"icon icon-warning pull-right",style:{"font-size":"20px"}},p={key:0,class:"pagination-slot"},f={class:"load-more"},m={key:0,class:"icon icon-spinner icon-spin"},g={key:1},v={class:"count"},b={class:"no-options-slot"},y={key:0},_={key:1,class:"paginating"},w={key:0,class:"icon icon-spinner icon-spin icon-lg"};function E(e,t,n,E,S,k){const x=(0,r.resolveComponent)("t"),A=(0,r.resolveComponent)("v-select"),C=(0,r.resolveComponent)("LabeledTooltip");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{id:k.hasLabel?S.labeledSelectLabelId:void 0,ref:"select",class:(0,r.normalizeClass)(["labeled-select",[e.$attrs.class,{disabled:e.isView||n.disabled,focused:e.focused,[e.mode]:!0,[n.status]:n.status,taggable:e.$attrs.taggable,taggable:e.$attrs.multiple,hoverable:n.hoverTooltip,"compact-input":e.isCompact,"no-label":!k.hasLabel}]]),tabindex:e.isView||n.disabled?-1:0,role:"combobox","aria-expanded":E.isOpen,"aria-describedby":e.$attrs["aria-describedby"]||void 0,"aria-required":e.requiredField,onClick:t[4]||(t[4]=(...e)=>k.clickSelect&&k.clickSelect(...e)),onKeydown:[t[5]||(t[5]=(0,r.withKeys)((0,r.withModifiers)((...e)=>k.clickSelect&&k.clickSelect(...e),["self"]),["enter"])),t[6]||(t[6]=(0,r.withKeys)((0,r.withModifiers)((...e)=>k.clickSelect&&k.clickSelect(...e),["self","prevent"]),["down"])),t[7]||(t[7]=(0,r.withKeys)((0,r.withModifiers)((...e)=>k.clickSelect&&k.clickSelect(...e),["self","prevent"]),["space"]))]},[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)({"labeled-container":!0,raised:e.raised,empty:e.empty,[e.mode]:!0}),style:{border:"none"}},[k.hasLabel?((0,r.openBlock)(),(0,r.createElementBlock)("label",{key:0,for:S.labeledSelectLabelId},[e.labelKey?((0,r.openBlock)(),(0,r.createBlock)(x,{key:0,k:e.labelKey},null,8,["k"])):e.label?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createTextVNode)((0,r.toDisplayString)(e.label),1)],64)):(0,r.createCommentVNode)("",!0),e.requiredField?((0,r.openBlock)(),(0,r.createElementBlock)("span",o,"*")):(0,r.createCommentVNode)("",!0)],8,a)):(0,r.createCommentVNode)("",!0)],2),(0,r.createVNode)(A,(0,r.mergeProps)({ref:"select-input"},k.filteredAttrs,{class:["inline",{"no-label":!(e.label||"").length}],"close-on-select":!1,"append-to-body":n.appendToBody,"calculate-position":k.positionDropdown,clearable:n.clearable,disabled:e.isView||n.disabled||n.loading,"get-option-key":k.getOptionKey,"get-option-label":e=>k.getOptionLabel(e),label:n.optionLabel,options:k._options,"map-keydown":e.mappedKeys,placeholder:e.placeholder,reduce:e=>n.reduce(e),filterable:e.isFilterable,searchable:e.isSearchable,selectable:n.selectable,modelValue:null==n.value||n.loading?"":n.value,"dropdown-should-open":k.dropdownShouldOpen,tabindex:-1,uid:S.generatedUid,"aria-label":`- ${n.value}`,"onUpdate:modelValue":t[1]||(t[1]=t=>{e.$emit("selecting",t),e.$emit("update:value",t)}),"onSearch:blur":k.onBlur,"onSearch:focus":k.onFocus,onSearch:k.onSearch,onOpen:k.onOpen,onClose:k.onClose,"onOption:selecting":k.closeOnSelecting,"onOption:selected":k.close,"onOption:deselecting":t[2]||(t[2]=t=>e.$emit("deselecting",t)),onKeydown:t[3]||(t[3]=(0,r.withKeys)((0,r.withModifiers)(()=>{},["stop"]),["enter"]))}),(0,r.createSlots)({option:(0,r.withCtx)(t=>[k.showTagPrompts?((0,r.openBlock)(),(0,r.createElementBlock)("div",s,(0,r.toDisplayString)(e.t("labeledSelect.pressEnter",{input:k.getOptionLabel(t.label)})),1)):"group"===t.kind?((0,r.openBlock)(),(0,r.createElementBlock)("div",l,[t.icon?((0,r.openBlock)(),(0,r.createElementBlock)("i",{key:0,class:(0,r.normalizeClass)(["icon",{[t.icon]:!0}])},null,2)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("b",null,(0,r.toDisplayString)(k.getOptionLabel(t)),1),t.badge?((0,r.openBlock)(),(0,r.createElementBlock)("div",c,(0,r.toDisplayString)(t.badge),1)):(0,r.createCommentVNode)("",!0)])):"divider"===t.kind?((0,r.openBlock)(),(0,r.createElementBlock)("hr",u)):"highlighted"===t.kind?((0,r.openBlock)(),(0,r.createElementBlock)("div",d,(0,r.toDisplayString)(t.label),1)):((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:4,class:(0,r.normalizeClass)(["vs__option-kind",{"has-icon":k.hasGroupIcon}])},[(0,r.createTextVNode)((0,r.toDisplayString)(k.getOptionLabel(t))+" ",1),t.error?((0,r.openBlock)(),(0,r.createElementBlock)("i",h)):(0,r.createCommentVNode)("",!0)],2))]),"list-footer":(0,r.withCtx)(()=>[e.canPaginate&&e.totalResults&&e.pages>1?((0,r.openBlock)(),(0,r.createElementBlock)("div",p,[(0,r.createElementVNode)("div",f,[e.paginating?((0,r.openBlock)(),(0,r.createElementBlock)("i",m)):((0,r.openBlock)(),(0,r.createElementBlock)("div",g,[e.canLoadMore?((0,r.openBlock)(),(0,r.createElementBlock)("a",{key:0,onClick:t[0]||(t[0]=(...t)=>e.loadMore&&e.loadMore(...t))},(0,r.toDisplayString)(e.t("labelSelect.pagination.more")),1)):(0,r.createCommentVNode)("",!0)]))]),(0,r.createElementVNode)("div",v,(0,r.toDisplayString)(e.optionCounts),1)])):(0,r.createCommentVNode)("",!0)]),"no-options":(0,r.withCtx)(({search:i})=>[(0,r.createElementVNode)("div",b,[k.showTagPrompts?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[e.searching?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("span",y,(0,r.toDisplayString)(e.t("labeledSelect.startTyping")),1))],64)):e.paginating?((0,r.openBlock)(),(0,r.createElementBlock)("div",_,[...t[8]||(t[8]=[(0,r.createElementVNode)("i",{class:"icon icon-spinner icon-spin"},null,-1)])])):i?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:2},[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("labelSelect.noOptions.noMatch")),1)],64)):((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:3},[(0,r.createTextVNode)((0,r.toDisplayString)(e.t(n.noOptionsLabelKey)),1)],64))])]),_:2},[(0,r.renderList)(e.$slots,(t,n)=>({name:n,fn:(0,r.withCtx)(t=>[(0,r.renderSlot)(e.$slots,n,(0,r.normalizeProps)((0,r.guardReactiveProps)(t)),void 0,!0)])}))]),1040,["append-to-body","calculate-position","class","clearable","disabled","get-option-key","get-option-label","label","options","map-keydown","placeholder","reduce","filterable","searchable","selectable","modelValue","dropdown-should-open","uid","aria-label","onSearch:blur","onSearch:focus","onSearch","onOpen","onClose","onOption:selecting","onOption:selected"]),n.loading?((0,r.openBlock)(),(0,r.createElementBlock)("i",w)):(0,r.createCommentVNode)("",!0),n.tooltip&&!e.focused?((0,r.openBlock)(),(0,r.createBlock)(C,{key:1,hover:n.hoverTooltip,value:n.tooltip,status:n.status},null,8,["hover","value","status"])):(0,r.createCommentVNode)("",!0),e.validationMessage?((0,r.openBlock)(),(0,r.createBlock)(C,{key:2,hover:n.hoverTooltip,value:e.validationMessage},null,8,["hover","value"])):(0,r.createCommentVNode)("",!0)],42,i)}var S={props:{compact:{type:Boolean,default:null},label:{type:String,default:null},labelKey:{type:String,default:null}},computed:{isCompact(){return null!==this.compact?this.compact:!(this.label||this.labelKey)}}},k=n(63503),x=n(76978),A=n(49924),C=n(89626),T=n(20162),N=n(92043),R=n(45250),O=n(15328),I=(0,r.defineComponent)({props:{paginate:{default:null,type:Function},inStore:{type:String,default:"cluster"},resourceType:{type:String,default:null}},data(){return{currentPage:1,search:"",pageSize:10,pages:0,debouncedRequestPagination:(0,R.debounce)(this.requestPagination,700),page:[],totalResults:0,paginating:!1}},async mounted(){this.canPaginate&&await this.requestPagination()},computed:{canPaginate(){return!!this.paginate&&!!this.resourceType&&this.$store.getters[`${this.inStore}/paginationEnabled`](this.resourceType)},canLoadMore(){return this.pages>this.currentPage},optionsInPage(){return this.canPaginate?this._options.filter(e=>e.kind!==O.c.NONE&&!O.w.includes(e.kind)).length:0},optionCounts(){return this.canPaginate&&this.optionsInPage!==this.totalResults?this.$store.getters["i18n/t"]("labelSelect.pagination.counts",{count:this.optionsInPage,totalCount:this.totalResults}):""}},methods:{loadMore(){this.currentPage++,this.requestPagination()},setPaginationFilter(e){this.paginating=!0,this.currentPage=1,this.search=e,this.debouncedRequestPagination(!0)},async requestPagination(e=!1){this.paginating=!0;const t=this.paginate,{page:n,pages:r,total:i}=await t({resetPage:e,pageContent:this.page||[],page:this.currentPage,filter:this.search,pageSize:this.pageSize});this.page=n,this.pages=r||0,this.totalResults=i||0,this.paginating=!1}}}),L=n(65359),D=n(14220),P=n(40597),M={name:"LabeledSelect",inheritAttrs:!1,components:{LabeledTooltip:A.Z},mixins:[S,k.A,C.A,I],emits:["on-open","on-close","selecting","deselecting","search","update:validation","update:value"],props:{appendToBody:{default:!0,type:Boolean},clearable:{default:!1,type:Boolean},disabled:{default:!1,type:Boolean},required:{default:!1,type:Boolean},hoverTooltip:{default:!0,type:Boolean},loading:{default:!1,type:Boolean},localizedLabel:{default:!1,type:Boolean},optionKey:{default:null,type:String},optionLabel:{default:"label",type:String},placement:{default:null,type:String},reduce:{default:e=>e&&"object"===typeof e&&void 0!==e.value?e.value:e,type:Function},selectable:{default:e=>!e||!(e.disabled||O.w.includes(e.kind)||e.loading),type:Function},status:{default:null,type:String},tooltip:{default:null,type:[String,Object]},value:{default:null,type:[String,Object,Number,Array,Boolean]},options:{type:Array,default:()=>[]},closeOnSelect:{type:Boolean,default:!0},noOptionsLabelKey:{type:String,default:"labelSelect.noOptions.empty"}},setup(){const e=(0,r.ref)(null),t=(0,r.ref)(!1);return(0,P.L)(e,()=>{t.value=!1}),{isOpen:t,select:e}},data(){return{selectedVisibility:"visible",shouldOpen:!0,labeledSelectLabelId:`ls-label-id-${(0,N.aR)(12)}`,generatedUid:`ls-uid-${(0,N.aR)(12)}`}},computed:{...(0,L.L8)({t:"i18n/t"}),hasLabel(){return!this.isCompact&&(!!this.label||!!this.labelKey||!!this.$slots.label)},hasGroupIcon(){return!!this.canPaginate&&!!this._options.find(e=>"group"===e.kind&&!!e.icon)},_options(){return this.canPaginate?this.page:this.options},filteredAttrs(){const{class:e,...t}=this.$attrs;return t},showTagPrompts(){return!this.options.length&&this.$attrs.taggable&&this.isSearchable}},methods:{clickSelect(e){this.mode!==D.nW&&!0!==this.loading&&!0!==this.disabled&&(this.$attrs.multiple&&"vs__deselect"===e?.target.className||(this.isOpen=!this.isOpen,this.isOpen&&this.focusSearch()))},focusSearch(){this.isView||this.disabled||this.loading||this.$nextTick(()=>{const e=this.$refs["select-input"]?.searchEl;e&&e.focus()})},focusWrapper(){this.$refs.select.focus()},onFocus(){this.selectedVisibility="hidden",this.onFocusLabeled()},onBlur(){this.selectedVisibility="visible",this.onBlurLabeled()},onOpen(){this.focusSearch(),this.$emit("on-open"),this.resizeHandler()},closeOnSelecting(e){e.value===this.value&&this.close(),this.$emit("selecting",e)},close(){this.isOpen=!1,this.onClose()},onClose(){this.$emit("on-close"),this.focusWrapper()},getOptionLabel(e){if(e){if(this.$attrs["get-option-label"])return this.$attrs["get-option-label"](e);if((0,x.Jt)(e,this.optionLabel)){if(this.localizedLabel){const t=(0,x.Jt)(e,this.optionLabel);return this.$store.getters["i18n/t"](t)||t}return(0,x.Jt)(e,this.optionLabel)}return e}},positionDropdown(e,t,{width:n}){(0,T.s)(e,t,n,this.placement)},get:x.Jt,dropdownShouldOpen(e,t=!1){if(!this.isOpen)return!1;const{noDrop:n,mutableLoading:r}=e,{open:i}=e,a=this.shouldOpen;return t?(e.open=!0,!0):(!1===a&&(this.shouldOpen=!0,e.closeSearchOptions()),!n&&(i&&a&&!r))},onSearch(e,t){this.canPaginate?this.setPaginationFilter(e):e&&this.dropdownShouldOpen(this.$refs["select-input"],!0),this.$emit("search",e,t)},getOptionKey(e){return this.optionKey?(0,x.Jt)(e,this.optionKey):this.getOptionLabel(e)}}},B=(n(7428),n(47433));const F=(0,B.A)(M,[["render",E],["__scopeId","data-v-49770c4a"]]);var $=F},85793:function(e,t,n){"use strict";n.d(t,{A:function(){return p}});var r=n(9274);function i(e,t,n,i,a,o){const s=(0,r.resolveComponent)("LabeledSelect");return(0,r.openBlock)(),(0,r.createBlock)(s,(0,r.mergeProps)(e.labelSelectAttributes,{loading:e.$fetchState.pending,options:e.allOfType,paginate:e.paginateType,multiple:e.$attrs.multiple||!1,"onUpdate:value":t[0]||(t[0]=t=>e.$emit("update:value",t))}),(0,r.createSlots)({_:2},[(0,r.renderList)(e.$slots,(t,n)=>({name:n,fn:(0,r.withCtx)(t=>[(0,r.renderSlot)(e.$slots,n,(0,r.normalizeProps)((0,r.guardReactiveProps)(t)))])}))]),1040,["loading","options","paginate","multiple"])}var a,o=n(32748),s=n(50025),l=n(4364);async function c({opts:e,type:t,ctx:n,filters:r=[],sort:i=[{asc:!0,field:"metadata.namespace"},{asc:!0,field:"metadata.name"}],store:a="cluster",groupByNamespace:o=!0,classify:c=!1}){const{pageContent:u,page:d,pageSize:h,resetPage:p}=e;try{const e=new s.gR({page:d,pageSize:h,sort:i,filters:r}),l=n.getters[`${a}/urlFor`](t,null,{pagination:e}),f=await n.dispatch(`${a}/request`,{url:l});let m=f.data;c&&(m=await n.dispatch("cluster/createMany",m));const g=p?m:u.concat(m);let v;if(o){const e={};g.forEach(t=>{const n=t.metadata.namespace;"group"!==t.kind&&(e[n]||(e[n]=[]),e[n].push(t))}),v=[],Object.keys(e).sort().forEach(t=>{v.push({kind:"group",icon:"icon-namespace",id:t,metadata:{name:t},disabled:!0}),v=v.concat(e[t])})}else v=g;return{page:v,pages:f.pages||Math.ceil(f.count/(h||Number.MAX_SAFE_INTEGER)),total:f.count}}catch(f){l.error(f)}return{page:[],pages:0,total:0}}(function(e){e["ALL_RESOURCES"]="ALL",e["DYNAMIC"]="DYNAMIC"})(a||(a={}));var u=(0,r.defineComponent)({name:"ResourceLabeledSelect",components:{LabeledSelect:o.A},emits:["update:value"],props:{resourceType:{type:String,required:!0},inStore:{type:String,default:void 0},paginateMode:{type:String,default:a.DYNAMIC},allResourcesSettings:{type:Object,default:null},paginatedResourceSettings:{type:Object,default:null}},data(){let e=this.inStore;return!e&&this.resourceType&&(e=this.$store.getters["currentStore"](this.resourceType)),e||(e="cluster"),{paginate:!1,validInStore:e}},async fetch(){switch(this.paginateMode){case a.ALL_RESOURCES:this.paginate=!1;break;case a.DYNAMIC:this.paginate=this.$store.getters[`${this.validInStore}/paginationEnabled`](this.resourceType);break}this.paginate||await this.$store.dispatch(`${this.validInStore}/findAll`,{type:this.resourceType})},computed:{labelSelectAttributes(){var e,t;const n={...this.$attrs,...this.$props};return this.paginate?{...n,...(null===(e=this.paginatedResourceSettings)||void 0===e?void 0:e.labelSelectOptions)||{}}:{...n,...(null===(t=this.allResourcesSettings)||void 0===t?void 0:t.labelSelectOptions)||{}}},allOfType(){var e;if(this.$fetchState.pending||this.paginate)return[];const t=this.$store.getters[`${this.validInStore}/all`](this.resourceType);return(null===(e=this.allResourcesSettings)||void 0===e?void 0:e.updateResources)?this.allResourcesSettings.updateResources(t):t}},methods:{async paginateType(e){var t,n,r,i;if(null===(t=this.paginatedResourceSettings)||void 0===t?void 0:t.overrideRequest)return await this.paginatedResourceSettings.overrideRequest(e);const{filter:a}=e,o=a?[s.eY.createSingleField({field:"metadata.name",value:a,exact:!1})]:[],l=this.$store.getters[`${this.validInStore}/schema`](this.resourceType),u="undefined"!==typeof(null===(n=null===l||void 0===l?void 0:l.attributes)||void 0===n?void 0:n.namespaced)&&l.attributes.namespaced,d={opts:e,filters:o,type:this.resourceType,ctx:{getters:this.$store.getters,dispatch:this.$store.dispatch},sort:[{asc:!0,field:"metadata.name"}],store:this.validInStore,groupByNamespace:u},h=(null===(r=this.paginatedResourceSettings)||void 0===r?void 0:r.requestSettings)?this.paginatedResourceSettings.requestSettings(d):d,p=await c(h);return(null===(i=this.paginatedResourceSettings)||void 0===i?void 0:i.updateResources)?{...p,page:this.paginatedResourceSettings.updateResources(p.page)}:p}}}),d=n(47433);const h=(0,d.A)(u,[["render",i]]);var p=h},45866:function(e,t,n){"use strict";n.d(t,{A:function(){return b}});var r=n(9274);const i=["tabindex","aria-expanded","aria-label","aria-labelledby","aria-describedby"],a=["lang"];function o(e,t,n,o,s,l){const c=(0,r.resolveComponent)("v-select"),u=(0,r.resolveComponent)("LabeledTooltip");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{ref:"select",class:(0,r.normalizeClass)(["unlabeled-select",{disabled:n.disabled||e.isView,focused:e.focused,[n.mode]:!0,[n.status]:n.status,taggable:e.$attrs.taggable,taggable:e.$attrs.multiple,"compact-input":n.compact,[e.$attrs.class]:e.$attrs.class}]),tabindex:n.disabled||e.isView?-1:0,role:"combobox","aria-expanded":o.isOpen,"aria-label":e.$attrs["aria-label"]||void 0,"aria-labelledby":e.$attrs["aria-labelledby"]||void 0,"aria-describedby":e.$attrs["aria-describedby"]||void 0,onClick:t[4]||(t[4]=(...e)=>l.clickSelect&&l.clickSelect(...e)),onKeydown:[t[5]||(t[5]=(0,r.withKeys)((0,r.withModifiers)((...e)=>l.clickSelect&&l.clickSelect(...e),["self"]),["enter"])),t[6]||(t[6]=(0,r.withKeys)((0,r.withModifiers)((...e)=>l.clickSelect&&l.clickSelect(...e),["self","prevent"]),["down"])),t[7]||(t[7]=(0,r.withKeys)((0,r.withModifiers)((...e)=>l.clickSelect&&l.clickSelect(...e),["self","prevent"]),["space"]))]},[(0,r.createVNode)(c,(0,r.mergeProps)({ref:"select-input"},l.deClassedAttrs,{class:["inline",{"select-input-view":"view"===n.mode}],autoscroll:!0,"append-to-body":n.appendToBody,"calculate-position":l.positionDropdown,disabled:e.isView||n.disabled,"get-option-key":e=>l.getOptionKey(e),"get-option-label":e=>l.getOptionLabel(e),label:n.optionLabel,options:e.options,"close-on-select":!1,"map-keydown":e.mappedKeys,placeholder:n.placeholder,reduce:e=>n.reduce(e),searchable:e.isSearchable,selectable:l.selectable,modelValue:null!=n.value?n.value:"",dropdownShouldOpen:l.handleDropdownOpen,tabindex:-1,role:"listitem",uid:s.generatedUid,"aria-label":"-","onUpdate:modelValue":t[0]||(t[0]=t=>e.$emit("update:value",t)),"onSearch:blur":e.onBlur,"onSearch:focus":e.onFocus,onOpen:l.onOpen,onClose:l.onClose,"onOption:created":t[1]||(t[1]=t=>e.$emit("createdListItem",t)),"onOption:selecting":l.closeOnSelecting,"onOption:selected":t[2]||(t[2]=e=>n.closeOnSelect&&l.close),onKeydown:t[3]||(t[3]=(0,r.withKeys)((0,r.withModifiers)(()=>{},["stop"]),["enter"]))}),(0,r.createSlots)({option:(0,r.withCtx)(e=>[(0,r.createElementVNode)("div",{lang:n.isLangSelect?e.value:void 0},(0,r.toDisplayString)(l.getOptionLabel(e.label)),9,a)]),_:2},[(0,r.renderList)(e.$slots,(t,n)=>({name:n,fn:(0,r.withCtx)(t=>[(0,r.renderSlot)(e.$slots,n,(0,r.normalizeProps)((0,r.guardReactiveProps)(t)),void 0,!0)])}))]),1040,["class","append-to-body","calculate-position","disabled","get-option-key","get-option-label","label","options","map-keydown","placeholder","reduce","searchable","selectable","modelValue","dropdownShouldOpen","uid","onSearch:blur","onSearch:focus","onOpen","onClose","onOption:selecting"]),n.tooltip&&!e.focused?((0,r.openBlock)(),(0,r.createBlock)(u,{key:0,hover:n.hoverTooltip,value:n.tooltip,status:n.status},null,8,["hover","value","status"])):(0,r.createCommentVNode)("",!0),l.validationMessage?((0,r.openBlock)(),(0,r.createBlock)(u,{key:1,hover:n.hoverTooltip,value:l.validationMessage},null,8,["hover","value"])):(0,r.createCommentVNode)("",!0)],42,i)}var s=n(76978),l=n(63503),c=n(89626),u=n(92043),d=n(49924),h=n(20162),p=n(14220),f=n(40597),m={emits:["update:value","createdListItem","on-open","on-close"],components:{LabeledTooltip:d.Z},mixins:[l.A,c.A],props:{appendToBody:{default:!0,type:Boolean},disabled:{default:!1,type:Boolean},getKeyForOption:{default:null,type:Function},mode:{default:"edit",type:String},optionKey:{default:null,type:String},optionLabel:{default:"label",type:String},placement:{default:null,type:String},placeholder:{type:String,default:""},popperOverride:{type:Function,default:null},reduce:{default:e=>e&&"object"===typeof e&&void 0!==e.value?e.value:e,type:Function},tooltip:{type:String,default:null},hoverTooltip:{type:Boolean,default:!0},status:{type:String,default:null},value:{default:null,type:[String,Object,Number,Array,Boolean]},closeOnSelect:{type:Boolean,default:!0},compact:{type:Boolean,default:null},isLangSelect:{type:Boolean,default:!1},loading:{default:!1,type:Boolean}},setup(){const e=(0,r.ref)(null),t=(0,r.ref)(!1);return(0,f.L)(e,()=>{t.value=!1}),{isOpen:t,select:e}},data(){return{generatedUid:`s-uid-${(0,u.aR)(12)}`}},methods:{getOptionLabel(e){return this.$attrs["get-option-label"]?this.$attrs["get-option-label"](e):(0,s.Jt)(e,this.optionLabel)?this.localizedLabel?this.$store.getters["i18n/t"]((0,s.Jt)(e,this.optionLabel)):(0,s.Jt)(e,this.optionLabel):e},positionDropdown(e,t,{width:n}){if(this.popperOverride)return this.popperOverride(e,t,{width:n});(0,h.s)(e,t,n,this.placement)},clickSelect(e){this.mode!==p.nW&&!0!==this.loading&&!0!==this.disabled&&(this.$attrs.multiple&&"vs__deselect"===e?.target.className||(this.isOpen=!this.isOpen,this.isOpen&&this.focusSearch(e)))},focusSearch(){this.$nextTick(()=>{const e=this.$refs["select-input"]?.searchEl;e&&e.focus()})},focusWrapper(){this.$refs.select.focus()},get:s.Jt,selectable(e){return!e||!e.disabled&&"group"!==e.kind&&"divider"!==e.kind&&!e.loading},getOptionKey(e){if(e&&this.optionKey)return(0,s.Jt)(e,this.optionKey);if(e?.optionKey)return(0,s.Jt)(e,e.optionKey);const t=this.getOptionLabel(e);return"string"===typeof t||"number"===typeof t?t:Math.random(1e5)},report(e){alert(e)},handleDropdownOpen(e){return!!this.isOpen&&(!e.noDrop&&!e.disabled&&e.open)},onOpen(){this.focusSearch(),this.$emit("on-open"),this.resizeHandler()},closeOnSelecting(){this.closeOnSelect&&this.close()},close(){this.isOpen=!1,this.onClose()},onClose(){this.$emit("on-close"),this.focusWrapper()}},computed:{requiredField(){return this.required||this.rules.some(e=>"required"===e?.name)},validationMessage(){const e=this.rules.find(e=>"required"===e?.name),t=[],n=this?.value;if(e&&this.blurred&&!this.focused){const t=e(n);if(t)return t}for(const r of this.rules){const e=r(n);e&&"required"!==r.name&&t.push(e)}return t.length>0&&(this.blurred||this.focused)?t.join(", "):void 0},canPaginate(){return!1},deClassedAttrs(){const{class:e,...t}=this.$attrs;return t}}},g=(n(85738),n(47433));const v=(0,g.A)(m,[["render",o],["__scopeId","data-v-9f939fd8"]]);var b=v},89455:function(e,t,n){"use strict";n.d(t,{A:function(){return b}});var r=n(9274);const i={class:"secret-selector show-key-selector"},a={class:"input-container"};function o(e,t,n,o,s,l){const c=(0,r.resolveComponent)("ResourceLabeledSelect"),u=(0,r.resolveComponent)("LabeledSelect");return(0,r.openBlock)(),(0,r.createElementBlock)("div",i,[(0,r.createElementVNode)("div",a,[(0,r.createVNode)(c,{value:s.name,"onUpdate:value":t[0]||(t[0]=e=>s.name=e),class:"col span-6",disabled:!l.isView&&n.disabled,loading:e.$fetchState.pending,label:n.secretNameLabel,mode:n.mode,"resource-type":s.SECRET,"paginated-resource-settings":s.paginateSecretsSetting,"all-resources-settings":s.allSecretsSettings,onSelecting:l.updateSecretName},null,8,["value","disabled","loading","label","mode","resource-type","paginated-resource-settings","all-resources-settings","onSelecting"]),(0,r.createVNode)(u,{value:s.key,"onUpdate:value":t[1]||(t[1]=e=>s.key=e),class:"col span-6",disabled:l.isKeyDisabled,options:l.keys,label:n.keyNameLabel,mode:n.mode,onSelecting:l.updateSecretKey},null,8,["value","disabled","options","label","mode","onSelecting"])])])}var s=n(32748),l=n(85793),c=n(35664),u=n(14220),d=n(29859),h=n(15328),p=n(50025);const f="__[[NONE]]__";var m={emits:["updateSecretName","updateSecretKey"],components:{LabeledSelect:s.A,ResourceLabeledSelect:l.A},props:{test:{type:String,default:""},initialName:{type:String,required:!0},initialKey:{type:String,required:!0},namespace:{type:String,required:!0},types:{type:Array,default:()=>Object.values(d.TYPES)},disabled:{type:Boolean,default:!1},secretNameLabel:{type:String,default:"Secret Name"},keyNameLabel:{type:String,default:"Key"},mode:{type:String,default:u.G5}},data(e){return{secrets:[],name:e.initialName,key:e.initialKey,none:f,SECRET:c.bB,allSecretsSettings:{updateResources:e=>{const t=e.filter(e=>this.types.includes(e._type)&&e.namespace===this.namespace),n=this.mapSecrets(t.sort((e,t)=>e.name.localeCompare(t.name)));return this.secrets=t,n}},paginateSecretsSetting:{requestSettings:this.paginatePageOptions,updateResources:e=>{const t=this.mapSecrets(e);return this.secrets=e,t}}}},computed:{keys(){const e=(this.secrets||[]).find(e=>e.name===this.name)||{};return Object.keys(e.data||{}).map(e=>({label:e,value:e}))},isView(){return this.mode===u.nW},isKeyDisabled(){return!this.isView&&(!this.name||this.name===f||this.disabled)}},methods:{mapSecrets(e){const t=e.reduce((e,t)=>(t.kind===h.c.NONE||(t.id?e.push({label:t.name,value:t.name}):e.push(t)),e),[]);return[{label:"None",value:f,kind:h.c.NONE},...t]},paginatePageOptions(e){const{opts:{filter:t}}=e,n=t?[p.eY.createSingleField({field:"metadata.name",value:t,exact:!1,equals:!0})]:[];return n.push(p.eY.createSingleField({field:"metadata.namespace",value:this.namespace}),p.eY.createMultipleFields(this.types.map(e=>({field:"metadata.fields.1",equals:!0,exact:!0,value:e})))),{...e,filters:n,groupByNamespace:!1,classify:!0,sort:[{asc:!0,field:"metadata.name"}]}},updateSecretName(e){e.value===this.none&&(this.key=""),e.value&&this.$emit("updateSecretName",e.value)},updateSecretKey(e){e.value&&this.$emit("updateSecretKey",e.value)}}},g=(n(88178),n(47433));const v=(0,g.A)(m,[["render",o]]);var b=v},73344:function(e,t,n){"use strict";n.d(t,{A:function(){return p}});var r=n(9274);const i=["id"];function a(e,t,n,a,o,s){const l=(0,r.resolveComponent)("LabeledInput");return(0,r.openBlock)(),(0,r.createBlock)(l,(0,r.mergeProps)({ref:"value",value:s.displayValue},e.$attrs,{type:"number",min:n.min,mode:n.mode,disabled:n.disabled,label:n.label,delay:n.delay,"label-key":n.labelKey,tooltip:n.tooltip,"tooltip-key":n.tooltipKey,required:n.required,placeholder:n.placeholder,"hide-arrows":n.hideArrows,"aria-describedby":s.displayUnit?o.describedById:void 0,"sub-label":n.subLabel,"onUpdate:value":s.update,onBlur:t[0]||(t[0]=e=>s.update(e.target.value))}),{suffix:(0,r.withCtx)(()=>[s.displayUnit?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,id:o.describedById,class:(0,r.normalizeClass)(["addon",{"with-tooltip":n.tooltip||n.tooltipKey}])},(0,r.toDisplayString)(s.displayUnit),11,i)):(0,r.createCommentVNode)("",!0)]),_:1},16,["value","min","mode","disabled","label","delay","label-key","tooltip","tooltip-key","required","placeholder","hide-arrows","aria-describedby","sub-label","onUpdate:value"])}var o=n(95799),s=n(79380),l=n(14220),c=n(92043),u={components:{LabeledInput:s.o},emits:["update:value","update:validation","change","blur"],props:{outputAs:{type:String,default:"number"},outputModifier:{type:Boolean,default:!1},inputExponent:{type:Number,default:0},baseUnit:{type:String,default:"B"},hideArrows:{type:Boolean,default:!1},increment:{type:Number,default:1e3},suffix:{type:String,default:null},mode:{type:String,default:l.G5},value:{type:[Number,String],default:null},label:{type:String,default:null},labelKey:{type:String,default:null},tooltip:{type:[String,Object],default:null},tooltipKey:{type:String,default:null},required:{type:Boolean,default:!1},min:{type:[Number,String],default:0},placeholder:{type:[String,Number],default:""},delay:{type:Number,default:0},positive:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},subLabel:{type:String,default:null}},data(){return{describedById:`unit-describedbyid-${(0,c.aR)(12)}`}},computed:{unit(){let e;return e=this.inputExponent>=0?o.QN[this.inputExponent]:o.kq[-1*this.inputExponent],1024===this.increment&&e&&(e+="i"),e},parsedValue(){return"string"===typeof this.value?(0,o.ao)(this.value):this.value},displayValue(){let e="";return(this.parsedValue||0===this.parsedValue)&&(e=(0,o.Mo)(this.parsedValue,{increment:this.increment,addSuffix:!1,maxExponent:this.inputExponent,minExponent:this.inputExponent})),e},displayUnit(){return this.suffix?this.suffix:this.unit+this.baseUnit}},methods:{focus(){const e=this.$refs.value;e&&e.focus()},update(e){let t=""===e?null:e;this.positive&&e<0&&(t=0),this.outputModifier?t=null===t?null:`${parseInt(e)}${this.unit}`:"string"===this.outputAs?t=null===t?"":`${e}`:t&&(t=this.unit?(0,o.ao)(`${t}${this.unit}`):parseInt(t)),this.$emit("update:value",t)}}},d=(n(38241),n(47433));const h=(0,d.A)(u,[["render",a],["__scopeId","data-v-e5242b74"]]);var p=h},99383:function(e,t,n){"use strict";n.d(t,{A:function(){return y}});var r=n(9274);const i={class:"row"},a={class:"col span-12"},o={class:"row mb-20"},s={class:"row mb-20"},l={class:"row mb-20"},c={class:"row mb-20"},u={class:"col span-12"};function d(e,t,n,d,h,p){const f=(0,r.resolveComponent)("SimpleSecretSelector"),m=(0,r.resolveComponent)("Banner"),g=(0,r.resolveComponent)("LabeledInput");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createElementVNode)("div",i,[(0,r.createElementVNode)("div",a,[(0,r.createElementVNode)("h3",null,(0,r.toDisplayString)(e.t("monitoring.receiver.tls.label")),1)])]),(0,r.createElementVNode)("div",o,[n.namespace?((0,r.openBlock)(),(0,r.createBlock)(f,{key:0,"initial-key":h.initialCaSecretKey,"initial-name":h.initialCaSecretName,mode:n.mode,namespace:n.namespace,disabled:n.mode===h.view,"secret-name-label":e.t("monitoringReceiver.tls.ca"),onUpdateSecretName:p.updateCaSecretName,onUpdateSecretKey:p.updateCaSecretKey},null,8,["initial-key","initial-name","mode","namespace","disabled","secret-name-label","onUpdateSecretName","onUpdateSecretKey"])):((0,r.openBlock)(),(0,r.createBlock)(m,{key:1,color:"error"},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("alertmanagerConfigReceiver.namespaceWarning")),1)]),_:1}))]),(0,r.createElementVNode)("div",s,[n.namespace?((0,r.openBlock)(),(0,r.createBlock)(f,{key:0,"initial-key":h.initialClientCertSecretKey,"initial-name":h.initialClientCertSecretName,mode:n.mode,namespace:n.namespace,disabled:n.mode===h.view,"secret-name-label":e.t("monitoringReceiver.tls.cert"),onUpdateSecretName:p.updateClientCertSecretName,onUpdateSecretKey:p.updateClientCertSecretKey},null,8,["initial-key","initial-name","mode","namespace","disabled","secret-name-label","onUpdateSecretName","onUpdateSecretKey"])):((0,r.openBlock)(),(0,r.createBlock)(m,{key:1,color:"error"},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("alertmanagerConfigReceiver.namespaceWarning")),1)]),_:1}))]),(0,r.createElementVNode)("div",l,[n.namespace?((0,r.openBlock)(),(0,r.createBlock)(f,{key:0,"initial-key":h.initialClientKeySecretKey,"initial-name":h.initialClientKeySecretName,mode:n.mode,namespace:n.namespace,disabled:n.mode===h.view,"secret-name-label":e.t("monitoringReceiver.tls.key"),onUpdateSecretName:p.updateClientKeySecretName,onUpdateSecretKey:p.updateClientKeySecretKey},null,8,["initial-key","initial-name","mode","namespace","disabled","secret-name-label","onUpdateSecretName","onUpdateSecretKey"])):((0,r.openBlock)(),(0,r.createBlock)(m,{key:1,color:"error"},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("alertmanagerConfigReceiver.namespaceWarning")),1)]),_:1}))]),(0,r.createElementVNode)("div",c,[(0,r.createElementVNode)("div",u,[(0,r.createVNode)(g,{value:n.value.tlsConfig.serverName,"onUpdate:value":t[0]||(t[0]=e=>n.value.tlsConfig.serverName=e),mode:n.mode,label:e.t("monitoringReceiver.tls.serverName"),tooltip:e.t("monitoringReceiver.tls.serverNameTooltip")},null,8,["value","mode","label","tooltip"])])])])}var h=n(79380),p=n(9980),f=n(89455),m=n(14220),g={components:{Banner:p.l,LabeledInput:h.o,SimpleSecretSelector:f.A},props:{mode:{type:String,required:!0},value:{type:Object,required:!0},namespace:{type:String,required:!0}},data(){return this.value["tlsConfig"]=this.value.tlsConfig||{},{initialCaSecretKey:this.value.tlsConfig.ca?.secret?.key?this.value.tlsConfig.ca.secret.key:"",initialCaSecretName:this.value.tlsConfig.ca?.secret?.name?this.value.tlsConfig.ca.secret.name:"",initialClientCertSecretKey:this.value.tlsConfig.cert?.secret?.key?this.value.tlsConfig.cert.secret.key:"",initialClientCertSecretName:this.value.tlsConfig.cert?.secret?.name?this.value.tlsConfig.cert.secret.name:"",initialClientKeySecretKey:this.value.tlsConfig.keySecret?.key?this.value.tlsConfig.keySecret.key:"",initialClientKeySecretName:this.value.tlsConfig.keySecret?.name?this.value.tlsConfig.keySecret.name:"",view:m.nW,none:"__[[NONE]]__"}},methods:{updateCaSecretName(e){const t=this.value.tlsConfig.ca?.secret?.key||"";this.value.tlsConfig.ca||(this.value.tlsConfig["ca"]={secret:{name:e,key:""}}),this.value.tlsConfig.ca?.secret?e===this.none?this.value.tlsConfig.ca={}:this.value.tlsConfig.ca.secret={key:t,name:e}:this.value.tlsConfig.ca["secret"]={key:t,name:e}},updateCaSecretKey(e){const t=this.value.tlsConfig.ca?.secret?.name||"";this.value.tlsConfig.ca||(this.value.tlsConfig["ca"]={secret:{name:"",key:e}}),this.value.tlsConfig.ca?.secret?this.value.tlsConfig.ca.secret={name:t,key:e}:this.value.tlsConfig.ca["secret"]={key:"",name:t}},updateClientCertSecretName(e){const t=this.value.tlsConfig.cert?.secret?.key||"";this.value.tlsConfig.cert||(this.value.tlsConfig["cert"]={secret:{name:e,key:""}}),this.value.tlsConfig.cert?.secret?e===this.none?this.value.tlsConfig.cert={}:this.value.tlsConfig.cert.secret={key:t,name:e}:this.value.tlsConfig.cert["secret"]={key:"",name:e}},updateClientCertSecretKey(e){const t=this.value.tlsConfig.cert?.secret?.name||"";this.value.tlsConfig.cert||(this.value.tlsConfig["cert"]={secret:{name:"",key:e}}),this.value.tlsConfig.cert?.secret?this.value.tlsConfig.cert.secret={name:t,key:e}:this.value.tlsConfig.cert["secret"]={key:"",name:t}},updateClientKeySecretName(e){const t=this.value.tlsConfig.keySecret?.key||"";this.value.tlsConfig.keySecret?e===this.none?this.value.tlsConfig.keySecret={}:this.value.tlsConfig.keySecret={key:t,name:e}:this.value.tlsConfig["keySecret"]={key:"",name:e}},updateClientKeySecretKey(e){const t=this.value.tlsConfig.keySecret?.name||"";this.value.tlsConfig.keySecret?this.value.tlsConfig.keySecret={name:t,key:e}:this.value.tlsConfig["keySecret"]={key:e,name:""}}}},v=n(47433);const b=(0,v.A)(g,[["render",d]]);var y=b},51557:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return k}});var r=n(9274);const i={class:"row mb-20"},a={class:"col span-6"},o={class:"col span-6"},s={class:"row mb-20"},l={class:"col span-12"},c={class:"row mb-20"},u={class:"col span-6"},d={class:"col span-6"},h={key:0,class:"row mb-20"},p={class:"col span-6"},f={class:"row mb-20"};function m(e,t,n,m,g,v){const b=(0,r.resolveComponent)("LabeledInput"),y=(0,r.resolveComponent)("Checkbox"),_=(0,r.resolveComponent)("SimpleSecretSelector"),w=(0,r.resolveComponent)("Banner"),E=(0,r.resolveComponent)("TLS");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[t[7]||(t[7]=(0,r.createElementVNode)("div",{class:"row"},[(0,r.createElementVNode)("div",{class:"col span-12"},[(0,r.createElementVNode)("h3",null,"Target")])],-1)),(0,r.createElementVNode)("div",i,[(0,r.createElementVNode)("div",a,[(0,r.createVNode)(b,{value:n.value.to,"onUpdate:value":t[0]||(t[0]=e=>n.value.to=e),mode:n.mode,label:"Default Recipient Address",placeholder:"e.g. admin@example.com"},null,8,["value","mode"])]),(0,r.createElementVNode)("div",o,[(0,r.createVNode)(y,{value:n.value.sendResolved,"onUpdate:value":t[1]||(t[1]=e=>n.value.sendResolved=e),mode:n.mode,class:"mt-20",label:"Enable send resolved alerts"},null,8,["value","mode"])])]),t[8]||(t[8]=(0,r.createElementVNode)("h2",{class:"mb-10"}," SMTP ",-1)),(0,r.createElementVNode)("div",s,[(0,r.createElementVNode)("div",l,[(0,r.createVNode)(b,{value:n.value.from,"onUpdate:value":t[2]||(t[2]=e=>n.value.from=e),mode:n.mode,label:"Sender",placeholder:"e.g. admin@example.com"},null,8,["value","mode"])])]),(0,r.createElementVNode)("div",c,[(0,r.createElementVNode)("div",u,[(0,r.createVNode)(b,{value:n.value.smarthost,"onUpdate:value":t[3]||(t[3]=e=>n.value.smarthost=e),mode:n.mode,label:"Host",placeholder:"e.g. 192.168.1.121:587"},null,8,["value","mode"])]),(0,r.createElementVNode)("div",d,[(0,r.createVNode)(y,{value:n.value.requireTLS,"onUpdate:value":t[4]||(t[4]=e=>n.value.requireTLS=e),mode:n.mode,class:"mt-20",label:"Use TLS"},null,8,["value","mode"])])]),n.namespace?((0,r.openBlock)(),(0,r.createElementBlock)("div",h,[(0,r.createElementVNode)("div",p,[(0,r.createVNode)(b,{value:n.value.authUsername,"onUpdate:value":t[5]||(t[5]=e=>n.value.authUsername=e),mode:n.mode,label:e.t("monitoring.alertmanagerConfig.email.username"),placeholder:"e.g. John"},null,8,["value","mode","label"])])])):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",f,[n.namespace?((0,r.openBlock)(),(0,r.createBlock)(_,{key:0,"initial-key":g.initialAuthPasswordSecretKey,mode:n.mode,"initial-name":g.initialAuthPasswordSecretName,namespace:n.namespace,disabled:n.mode===g.view,"secret-name-label":e.t("monitoring.alertmanagerConfig.email.password"),onUpdateSecretName:v.updateAuthPasswordSecretName,onUpdateSecretKey:v.updateAuthPasswordSecretKey},null,8,["initial-key","mode","initial-name","namespace","disabled","secret-name-label","onUpdateSecretName","onUpdateSecretKey"])):((0,r.openBlock)(),(0,r.createBlock)(w,{key:1,color:"error"},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("alertmanagerConfigReceiver.namespaceWarning")),1)]),_:1}))]),(0,r.createVNode)(E,{value:n.value,class:"mb-20",mode:n.mode,namespace:n.namespace,"onUpdate:value":t[6]||(t[6]=t=>e.$emit("input",t))},null,8,["value","mode","namespace"])])}var g=n(79380),v=n(42200),b=n(99383),y=n(89455),_=n(14220),w={emits:["input"],components:{Checkbox:v.S,LabeledInput:g.o,SimpleSecretSelector:y.A,TLS:b.A},props:{mode:{type:String,required:!0},value:{type:Object,required:!0},namespace:{type:String,default:""}},data(){return this.value["sendResolved"]=this.value.sendResolved||!1,this.value["requireTLS"]=this.value.requireTLS||!1,{view:_.nW,initialAuthPasswordSecretName:this.value?.authPassword?.name?this.value.authPassword.name:"",initialAuthPasswordSecretKey:this.value.authPassword?.key?this.value.authPassword.key:"",none:"__[[NONE]]__"}},methods:{updateAuthPasswordSecretName(e){const t=this.value.authPassword?.key||"";this.value.authPassword?e===this.none?delete this.value.authPassword:this.value.authPassword={key:t,name:e}:this.value["authPassword"]={key:"",name:e}},updateAuthPasswordSecretKey(e){const t=this.value.authPassword?.name||"";this.value.authPassword?this.value.authPassword={name:t,key:e}:this.value["authPassword"]={name:"",key:e}}}},E=n(47433);const S=(0,E.A)(w,[["render",m]]);var k=S},72420:function(e,t,n){"use strict";n.r(t),n.d(t,{TARGETS:function(){return O},TYPES:function(){return I},default:function(){return P}});var r=n(9274);const i={class:"row mb-20"},a={class:"row mb-20"},o={class:"col span-12"},s={class:"row mb-20"},l={class:"row"},c={class:"col span-12"},u={class:"responders-heading"},d={class:"row responder"},h={class:"col span-6"},p={key:0},f={class:"col-span-6 target-container"},m={key:0};function g(e,t,n,g,v,b){const y=(0,r.resolveComponent)("SimpleSecretSelector"),_=(0,r.resolveComponent)("Banner"),w=(0,r.resolveComponent)("LabeledInput"),E=(0,r.resolveComponent)("Checkbox"),S=(0,r.resolveComponent)("Select"),k=(0,r.resolveComponent)("InputWithSelect"),x=(0,r.resolveComponent)("ArrayList");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[t[5]||(t[5]=(0,r.createElementVNode)("div",{class:"row"},[(0,r.createElementVNode)("div",{class:"col span-12"},[(0,r.createElementVNode)("h3",null,"Target")])],-1)),(0,r.createElementVNode)("div",i,[n.namespace?((0,r.openBlock)(),(0,r.createBlock)(y,{key:0,"initial-key":v.initialApiKeySecretKey,mode:n.mode,"initial-name":v.initialApiKeySecretName,namespace:n.namespace,disabled:n.mode===v.view,"secret-name-label":e.t("monitoring.alertmanagerConfig.opsgenie.apiKey"),onUpdateSecretName:b.updateApiKeySecretName,onUpdateSecretKey:b.updateApiKeySecretKey},null,8,["initial-key","mode","initial-name","namespace","disabled","secret-name-label","onUpdateSecretName","onUpdateSecretKey"])):((0,r.openBlock)(),(0,r.createBlock)(_,{key:1,color:"error"},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("alertmanagerConfigReceiver.namespaceWarning")),1)]),_:1}))]),(0,r.createElementVNode)("div",a,[(0,r.createElementVNode)("div",o,[(0,r.createVNode)(w,{value:n.value.httpConfig.proxyURL,"onUpdate:value":t[0]||(t[0]=e=>n.value.httpConfig.proxyURL=e),mode:n.mode,label:"Proxy URL",placeholder:"e.g. http://my-proxy/"},null,8,["value","mode"])])]),(0,r.createElementVNode)("div",s,[(0,r.createVNode)(E,{value:n.value.sendResolved,"onUpdate:value":t[1]||(t[1]=e=>n.value.sendResolved=e),mode:n.mode,label:"Enable send resolved alerts"},null,8,["value","mode"])]),(0,r.createElementVNode)("div",l,[(0,r.createElementVNode)("div",c,[t[4]||(t[4]=(0,r.createElementVNode)("h3",null,"Responders",-1)),(0,r.createVNode)(x,{value:v.responders,"onUpdate:value":t[2]||(t[2]=e=>v.responders=e),mode:n.mode,"default-add-value":v.defaultResponder,"show-header":!0},{"column-headers":(0,r.withCtx)(()=>[(0,r.createElementVNode)("div",u,[(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(["row",{"mb-15":b.isView,"mb-10":!b.isView}])},[...t[3]||(t[3]=[(0,r.createElementVNode)("div",{class:"col span-6"},[(0,r.createElementVNode)("span",{class:"text-label"},"Type")],-1),(0,r.createElementVNode)("div",{class:"col span-6 send-to"},[(0,r.createElementVNode)("span",{class:"text-label"},"Send To")],-1)])],2)])]),columns:(0,r.withCtx)(e=>[(0,r.createElementVNode)("div",d,[(0,r.createElementVNode)("div",h,[b.isView?((0,r.openBlock)(),(0,r.createElementBlock)("span",p,(0,r.toDisplayString)(b.typeLabel(e.row.value.type)),1)):((0,r.openBlock)(),(0,r.createBlock)(S,{key:1,value:e.row.value.type,"onUpdate:value":t=>e.row.value.type=t,mode:n.mode,options:v.TYPES},null,8,["value","onUpdate:value","mode","options"]))]),(0,r.createElementVNode)("div",f,[b.isView?((0,r.openBlock)(),(0,r.createElementBlock)("span",m,(0,r.toDisplayString)(b.targetLabel(e.row.value.target))+": "+(0,r.toDisplayString)(e.row.value.value),1)):((0,r.openBlock)(),(0,r.createBlock)(k,{key:1,class:"target",mode:n.mode,options:v.TARGETS,"select-value":e.row.value.target,"text-value":e.row.value.value,"onUpdate:value":t=>b.updateResponder(t,e.row.value)},null,8,["mode","options","select-value","text-value","onUpdate:value"]))])])]),_:1},8,["value","mode","default-add-value"])])])])}var v=n(64676),b=n(79380),y=n(45866),_=n(42200);const w=["disabled","placeholder"];function E(e,t,n,i,a,o){const s=(0,r.resolveComponent)("LabeledSelect"),l=(0,r.resolveComponent)("Select"),c=(0,r.resolveComponent)("LabeledInput");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)([{"select-after":!n.selectBeforeText},"input-container row"])},[n.selectLabel?((0,r.openBlock)(),(0,r.createBlock)(s,{key:0,value:a.selected,"onUpdate:value":[t[0]||(t[0]=e=>a.selected=e),o.change],label:n.selectLabel,class:(0,r.normalizeClass)({"in-input":!e.isView}),options:n.options,searchable:!1,clearable:!1,disabled:n.disabled||e.isView,taggable:n.taggable,"create-option":e=>({label:e,value:e}),multiple:!1,mode:e.mode,"option-label":n.optionLabel,placement:e.$attrs.placement?e.$attrs.placement:null,"v-bind":e.$attrs,rules:n.selectRules},null,8,["value","label","class","options","disabled","taggable","create-option","mode","option-label","placement","v-bind","rules","onUpdate:value"])):((0,r.openBlock)(),(0,r.createBlock)(l,{key:1,value:a.selected,"onUpdate:value":[t[1]||(t[1]=e=>a.selected=e),o.change],options:n.options,searchable:n.searchable,disabled:n.disabled||e.isView,clearable:!1,class:"in-input",taggable:n.taggable,"create-option":e=>({label:e,value:e}),multiple:!1,mode:e.mode,"option-label":n.optionLabel,placement:e.$attrs.placement?e.$attrs.placement:null,"v-bind":e.$attrs},null,8,["value","options","searchable","disabled","taggable","create-option","mode","option-label","placement","v-bind","onUpdate:value"])),n.textLabel||n.textRules.length>0?((0,r.openBlock)(),(0,r.createBlock)(c,(0,r.mergeProps)({key:2,ref:"text",value:a.string,"onUpdate:value":t[2]||(t[2]=e=>a.string=e),class:"input-string col span-8",label:n.textLabel,placeholder:n.placeholder,disabled:n.disabled||n.textDisabled,required:n.textRequired,mode:e.mode,rules:n.textRules},e.$attrs,{"onUpdate:value":o.change}),{label:(0,r.withCtx)(()=>[(0,r.renderSlot)(e.$slots,"label",{},void 0,!0)]),suffix:(0,r.withCtx)(()=>[(0,r.renderSlot)(e.$slots,"suffix",{},void 0,!0)]),_:3},16,["value","label","placeholder","disabled","required","mode","rules","onUpdate:value"])):(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("input",{key:3,ref:"text","onUpdate:modelValue":t[3]||(t[3]=e=>a.string=e),class:"input-string",disabled:e.isView,placeholder:n.placeholder,autocomplete:"off",onInput:t[4]||(t[4]=(...e)=>o.change&&o.change(...e))},null,40,w)),[[r.vModelText,a.string]])],2)}var S=n(63503),k=n(32748),x={name:"InputWithSelect",emits:["update:value"],components:{LabeledInput:b.o,LabeledSelect:k.A,Select:y.A},mixins:[S.A],props:{disabled:{type:Boolean,default:!1},searchable:{type:Boolean,default:!0},taggable:{type:Boolean,default:!1},selectLabel:{type:String,default:""},selectValue:{type:String,default:null},optionLabel:{type:String,default:"label"},options:{type:Array,required:!0},selectBeforeText:{type:Boolean,default:!0},textLabel:{type:String,default:""},textRequired:{type:Boolean,default:!1},textDisabled:{type:Boolean,default:!1},textValue:{type:[String,Number],default:""},placeholder:{type:String,default:""},textRules:{default:()=>[],type:Array},selectRules:{default:()=>[],type:Array}},data(){return{selected:this.selectValue||this.options[0].value,string:this.textValue}},computed:{canPaginate(){return!1}},methods:{focus(){const e=this.$refs.text;e&&e.focus()},change(){this.$emit("update:value",{selected:this.selected,text:this.string})}},watch:{textValue(e){this.string=e}}},A=(n(32254),n(47433));const C=(0,A.A)(x,[["render",E],["__scopeId","data-v-035f9ce5"]]);var T=C,N=n(89455),R=n(14220);const O=[{label:"Id",value:"id"},{label:"Name",value:"name"},{label:"Username",value:"username"}],I=[{label:"Team",value:"team"},{label:"User",value:"user"},{label:"Escalation",value:"escalation"},{label:"Schedule",value:"schedule"}];var L={components:{ArrayList:v.A,Checkbox:_.S,InputWithSelect:T,LabeledInput:b.o,Select:y.A,SimpleSecretSelector:N.A},props:{mode:{type:String,required:!0},value:{type:Object,required:!0},namespace:{type:String,default:""}},data(){this.value["httpConfig"]=this.value.httpConfig||{},this.value["sendResolved"]="boolean"!==typeof this.value.sendResolved||this.value.send_resolved,this.value["responders"]=this.value.responders||[];const e=this.value.responders.map(e=>{const t=O.find(t=>e[t.value]);return{type:e.type,target:t.value,value:e[t.value]}});return{defaultResponder:{type:I[0].value,target:O[0].value,value:""},responders:e,TARGETS:O,TYPES:I,view:R.nW,initialApiKeySecretName:this.value?.apiKey?.name?this.value.apiKey.name:"",initialApiKeySecretKey:this.value?.apiKey?.key?this.value.apiKey.key:"",none:"__[[NONE]]__"}},computed:{isView(){return this.mode===R.nW}},watch:{responders:{deep:!0,handler(){const e=this.responders.map(e=>({type:e.type,[e.target]:e.value}));this.value["responders"]=e}}},methods:{updateResponder({selected:e,text:t},n){n.target=e,n.value=t},typeLabel(e){return I.find(t=>t.value===e).label},targetLabel(e){return O.find(t=>t.value===e).label},updateApiKeySecretName(e){const t=this.value.apiKey?.key||"";this.value.apiKey?e===this.none?delete this.value.apiKey:this.value.apiKey={key:t,name:e}:this.value["apiKey"]={key:"",name:e}},updateApiKeySecretKey(e){const t=this.value.apiKey?.name||"";this.value.apiKey?this.value.apiKey={name:t,key:e}:this.value["apiKey"]={name:"",key:e}}}};n(7156);const D=(0,A.A)(L,[["render",g],["__scopeId","data-v-174af1a6"]]);var P=D},87450:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return _}});var r=n(9274);const i={key:0,class:"row mb-20"},a={class:"col span-6"},o={key:1,class:"row mb-20"},s={class:"row mb-20"},l={class:"col span-12"},c={class:"row"};function u(e,t,n,u,d,h){const p=(0,r.resolveComponent)("LabeledSelect"),f=(0,r.resolveComponent)("SimpleSecretSelector"),m=(0,r.resolveComponent)("Banner"),g=(0,r.resolveComponent)("LabeledInput"),v=(0,r.resolveComponent)("Checkbox");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[t[3]||(t[3]=(0,r.createElementVNode)("div",{class:"row"},[(0,r.createElementVNode)("div",{class:"col span-12"},[(0,r.createElementVNode)("h3",null,"Target")])],-1)),n.namespace?((0,r.openBlock)(),(0,r.createElementBlock)("div",i,[(0,r.createElementVNode)("div",a,[(0,r.createVNode)(p,{value:d.integrationType,"onUpdate:value":t[0]||(t[0]=e=>d.integrationType=e),options:d.integrationTypeOptions,mode:n.mode,label:"Integration Type"},null,8,["value","options","mode"])])])):(0,r.createCommentVNode)("",!0),n.namespace?((0,r.openBlock)(),(0,r.createElementBlock)("div",o,["Events API v2"===d.integrationType?((0,r.openBlock)(),(0,r.createBlock)(f,{key:0,"initial-key":d.initialRoutingKeySecretKey,mode:n.mode,"initial-name":d.initialRoutingKeySecretName,namespace:n.namespace,disabled:n.mode===d.view,"secret-name-label":e.t("monitoring.alertmanagerConfig.pagerDuty.routingKey"),onUpdateSecretName:h.updateRoutingKeySecretName,onUpdateSecretKey:h.updateRoutingKeySecretKey},null,8,["initial-key","mode","initial-name","namespace","disabled","secret-name-label","onUpdateSecretName","onUpdateSecretKey"])):(0,r.createCommentVNode)("",!0),"Prometheus"===d.integrationType?((0,r.openBlock)(),(0,r.createBlock)(f,{key:1,"initial-key":d.initialServiceKeySecretKey,mode:n.mode,"initial-name":d.initialServiceKeySecretName,namespace:n.namespace,disabled:n.mode===d.view,"secret-name-label":e.t("monitoring.alertmanagerConfig.pagerDuty.serviceKey"),onUpdateSecretName:h.updateServiceKeySecretName,onUpdateSecretKey:h.updateServiceKeySecretKey},null,8,["initial-key","mode","initial-name","namespace","disabled","secret-name-label","onUpdateSecretName","onUpdateSecretKey"])):(0,r.createCommentVNode)("",!0)])):((0,r.openBlock)(),(0,r.createBlock)(m,{key:2,color:"error"},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("alertmanagerConfigReceiver.namespaceWarning")),1)]),_:1})),(0,r.createElementVNode)("div",s,[(0,r.createElementVNode)("div",l,[(0,r.createVNode)(g,{value:n.value.httpConfig.proxyURL,"onUpdate:value":t[1]||(t[1]=e=>n.value.httpConfig.proxyURL=e),mode:n.mode,label:"Proxy URL",placeholder:"e.g. http://my-proxy/","data-testid":"v2-monitoring-receiver-pagerduty-proxy-url"},null,8,["value","mode"])])]),(0,r.createElementVNode)("div",c,[(0,r.createVNode)(v,{value:n.value.sendResolved,"onUpdate:value":t[2]||(t[2]=e=>n.value.sendResolved=e),mode:n.mode,label:"Enable send resolved alerts"},null,8,["value","mode"])])])}var d=n(79380),h=n(32748),p=n(42200),f=n(89455),m=n(14220),g=n(68745),v={components:{Banner:g.A,Checkbox:p.S,LabeledInput:d.o,LabeledSelect:h.A,SimpleSecretSelector:f.A},props:{mode:{type:String,required:!0},value:{type:Object,required:!0},namespace:{type:String,default:""}},data(){this.value["httpConfig"]=this.value.httpConfig||{},this.value["sendResolved"]="boolean"!==typeof this.value.send_resolved||this.value.send_resolved;const e={"Events API v2":"routingKey",Prometheus:"serviceKey"},t=Object.keys(e);return{integrationMapping:e,integrationTypeOptions:t,integrationType:this.value.serviceKey?t[1]:t[0],initialRoutingKeySecretKey:this.value.routingKey?.key||"",initialRoutingKeySecretName:this.value.routingKey?.name||"",initialServiceKeySecretKey:this.value.serviceKey?.key||"",initialServiceKeySecretName:this.value.serviceKey?.name||"",view:m.nW,none:"__[[NONE]]__"}},watch:{integrationType(){this.integrationTypeOptions.forEach(e=>{this.value[this.integrationMapping[e]]=null})}},methods:{updateRoutingKeySecretName(e){const t=this.value.routingKey?.key||"";this.value.routingKey?e===this.none?delete this.value.routingKey:this.value.routingKey={key:t,name:e}:this.value["routingKey"]={key:"",name:e}},updateRoutingKeySecretKey(e){const t=this.value.routingKey?.name||"";this.value.routingKey?this.value.routingKey={name:t,key:e}:this.value["routingKey"]={name:"",key:e}},updateServiceKeySecretName(e){const t=this.value.serviceKey?.key||"";this.value.serviceKey?e===this.none?delete this.value.serviceKey:this.value.serviceKey={key:t,name:e}:this.value["serviceKey"]={key:"",name:e}},updateServiceKeySecretKey(e){const t=this.value.serviceKey?.name||"";this.value.serviceKey?this.value.serviceKey={name:t,key:e}:this.value["serviceKey"]={name:"",key:e}}}},b=n(47433);const y=(0,b.A)(v,[["render",u]]);var _=y},33427:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return y}});var r=n(9274);const i={class:"row mb-20"},a={class:"helper-text text-right mt-10"},o={class:"row mb-20"},s={class:"col span-6"},l={class:"col span-6"},c={class:"row"};function u(e,t,n,u,d,h){const p=(0,r.resolveComponent)("SimpleSecretSelector"),f=(0,r.resolveComponent)("Banner"),m=(0,r.resolveComponent)("t"),g=(0,r.resolveComponent)("LabeledInput"),v=(0,r.resolveComponent)("Checkbox");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[t[3]||(t[3]=(0,r.createElementVNode)("div",{class:"row"},[(0,r.createElementVNode)("div",{class:"col span-12"},[(0,r.createElementVNode)("h3",null,"Target")])],-1)),(0,r.createElementVNode)("div",i,[n.namespace?((0,r.openBlock)(),(0,r.createBlock)(p,{key:0,"initial-key":d.initialSecretKey,mode:n.mode,"initial-name":d.initialSecretName,tooltip:e.t("alertmanagerConfigReceiver.slack.apiUrlTooltip"),namespace:n.namespace,disabled:n.mode===d.view,"secret-name-label":e.t("monitoring.alertmanagerConfig.slack.apiUrl"),onUpdateSecretName:h.updateSecretName,onUpdateSecretKey:h.updateSecretKey},null,8,["initial-key","mode","initial-name","tooltip","namespace","disabled","secret-name-label","onUpdateSecretName","onUpdateSecretKey"])):((0,r.openBlock)(),(0,r.createBlock)(f,{key:1,color:"error"},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("alertmanagerConfigReceiver.namespaceWarning")),1)]),_:1})),(0,r.createElementVNode)("p",a,[(0,r.createVNode)(m,{k:"monitoringReceiver.slack.info",raw:!0})])]),(0,r.createElementVNode)("div",o,[(0,r.createElementVNode)("div",s,[(0,r.createVNode)(g,{value:n.value.channel,"onUpdate:value":t[0]||(t[0]=e=>n.value.channel=e),mode:n.mode,label:"Default Channel",placeholder:"e.g. #example"},null,8,["value","mode"])]),(0,r.createElementVNode)("div",l,[(0,r.createVNode)(g,{value:n.value.httpConfig.proxyURL,"onUpdate:value":t[1]||(t[1]=e=>n.value.httpConfig.proxyURL=e),mode:n.mode,label:"Proxy URL",placeholder:"e.g. http://my-proxy/"},null,8,["value","mode"])])]),(0,r.createElementVNode)("div",c,[(0,r.createVNode)(v,{value:n.value.sendResolved,"onUpdate:value":t[2]||(t[2]=e=>n.value.sendResolved=e),mode:n.mode,label:"Enable send resolved alerts"},null,8,["value","mode"])])])}var d=n(79380),h=n(42200),p=n(9980),f=n(89455),m=n(14220),g={components:{Banner:p.l,Checkbox:h.S,LabeledInput:d.o,SimpleSecretSelector:f.A},props:{mode:{type:String,required:!0},value:{type:Object,required:!0},namespace:{type:String,default:""}},data(){return this.value["httpConfig"]=this.value.httpConfig||{},this.value["sendResolved"]=this.value.sendResolved||!1,this.mode===m.YQ&&(this.value.text=this.value.text||'{{ template "slack.rancher.text" . }}'),{view:m.nW,initialSecretKey:this.value?.apiURL?.key?this.value.apiURL.key:"",initialSecretName:this.value.apiURL?.name?this.value.apiURL.name:"",none:"__[[NONE]]__"}},methods:{updateSecretName(e){const t=this.value.apiURL?.key||"";this.value.apiURL?e===this.none?delete this.value.apiURL:this.value.apiURL={key:t,name:e}:this.value["apiURL"]={key:"",name:e}},updateSecretKey(e){const t=this.value.apiURL?.name||"";this.value.apiURL?this.value.apiURL={key:e,name:t}:this.value["apiURL"]={key:e,name:""}}}},v=n(47433);const b=(0,v.A)(g,[["render",u]]);var y=b},81655:function(e,t,n){"use strict";n.r(t),n.d(t,{ALIBABA_CLOUD_SMS_URL:function(){return P},MS_TEAMS_URL:function(){return D},WEBHOOK_TYPES:function(){return M},default:function(){return $}});var r=n(9274);const i={class:"row mb-20"},a={class:"row mb-20"},o={class:"col span-12"},s={class:"row mb-20"},l={class:"row mb-20"},c={class:"col span-12"},u={class:"row mb-20"};function d(e,t,n,d,h,p){const f=(0,r.resolveComponent)("Banner"),m=(0,r.resolveComponent)("LabeledSelect"),g=(0,r.resolveComponent)("LabeledInput"),v=(0,r.resolveComponent)("SimpleSecretSelector"),b=(0,r.resolveComponent)("Checkbox"),y=(0,r.resolveComponent)("TLS"),_=(0,r.resolveComponent)("Auth"),w=(0,r.resolveDirective)("clean-html");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[n.mode!==h.view?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createBlock)(f,{key:0,color:"info"},null,512)),[[w,e.t("monitoringReceiver.webhook.banner",{},e.raw=!0)]]):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",i,[(0,r.createVNode)(m,{value:h.selectedWebhookType,"onUpdate:value":[t[0]||(t[0]=e=>h.selectedWebhookType=e),t[1]||(t[1]=e=>p.updateWebhookType(e))],disabled:n.mode===h.view,label:e.t("monitoringReceiver.webhook.add.selectWebhookType"),placeholder:e.t("monitoringReceiver.webhook.add.generic"),"localized-label":!0,options:h.webhookOptons},null,8,["value","disabled","label","placeholder","options"])]),t[7]||(t[7]=(0,r.createElementVNode)("div",{class:"row"},[(0,r.createElementVNode)("div",{class:"col span-12"},[(0,r.createElementVNode)("h3",{class:"mb-0"}," Target ")])],-1)),h.showNamespaceBanner?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createBlock)(f,{key:1,color:"info"},null,512)),[[w,e.t("monitoringReceiver.webhook.modifyNamespace",{},e.raw=!0)]]):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",a,[(0,r.createElementVNode)("div",o,[(0,r.createVNode)(g,{value:n.value.url,"onUpdate:value":t[2]||(t[2]=e=>n.value.url=e),mode:n.mode,label:e.t("monitoring.alertmanagerConfig.webhook.url"),tooltip:e.t("monitoring.alertmanagerConfig.webhook.urlSecretTooltip")},null,8,["value","mode","label","tooltip"])])]),(0,r.createElementVNode)("div",s,[n.namespace?((0,r.openBlock)(),(0,r.createBlock)(v,{key:0,"initial-key":h.initialUrlSecretKey,"initial-name":h.initialUrlSecretName,mode:n.mode,namespace:n.namespace,disabled:n.mode===h.view,"secret-name-label":e.t("monitoring.alertmanagerConfig.webhook.urlSecret"),onUpdateSecretName:p.updateUrlSecretName,onUpdateSecretKey:p.updateUrlSecretKey},null,8,["initial-key","initial-name","mode","namespace","disabled","secret-name-label","onUpdateSecretName","onUpdateSecretKey"])):((0,r.openBlock)(),(0,r.createBlock)(f,{key:1,color:"error"},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("alertmanagerConfigReceiver.namespaceWarning")),1)]),_:1}))]),(0,r.createElementVNode)("div",l,[(0,r.createElementVNode)("div",c,[(0,r.createVNode)(g,{value:n.value.httpConfig.proxyURL,"onUpdate:value":t[3]||(t[3]=e=>n.value.httpConfig.proxyURL=e),mode:n.mode,label:e.t("monitoringReceiver.shared.proxyUrl.label"),placeholder:e.t("monitoringReceiver.shared.proxyUrl.placeholder")},null,8,["value","mode","label","placeholder"])])]),(0,r.createElementVNode)("div",u,[(0,r.createVNode)(b,{value:n.value.sendResolved,"onUpdate:value":t[4]||(t[4]=e=>n.value.sendResolved=e),mode:n.mode,label:e.t("monitoringReceiver.shared.sendResolved.label")},null,8,["value","mode","label"])]),(0,r.createVNode)(y,{value:n.value.httpConfig,"onUpdate:value":t[5]||(t[5]=e=>n.value.httpConfig=e),class:"mb-20",mode:n.mode,namespace:n.namespace},null,8,["value","mode","namespace"]),(0,r.createVNode)(_,{value:n.value.httpConfig,"onUpdate:value":t[6]||(t[6]=e=>n.value.httpConfig=e),mode:n.mode,namespace:n.namespace},null,8,["value","mode","namespace"])])}var h=n(79380),p=n(32748),f=n(42200),m=n(9980),g=n(89455),v=n(14220),b=n(99383);const y={class:"row"},_={class:"col span-6"},w={class:"row mb-20"},E={class:"col span-12"},S={key:0,class:"row mb-20"},k={key:1,class:"row mb-20"},x={key:2,class:"row mb-20"};function A(e,t,n,i,a,o){const s=(0,r.resolveComponent)("LabeledSelect"),l=(0,r.resolveComponent)("SimpleSecretSelector"),c=(0,r.resolveComponent)("Banner");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createElementVNode)("div",y,[(0,r.createElementVNode)("div",_,[(0,r.createElementVNode)("h3",null,(0,r.toDisplayString)(e.t("monitoringReceiver.auth.label")),1)])]),(0,r.createElementVNode)("div",w,[(0,r.createElementVNode)("div",E,[(0,r.createVNode)(s,{value:a.authType,"onUpdate:value":[t[0]||(t[0]=e=>a.authType=e),t[1]||(t[1]=e=>o.initializeType(a.authOptions,a.authType))],disabled:n.mode===a.view,options:a.authOptions,label:"Auth Type"},null,8,["value","disabled","options"])])]),"basicAuth"===a.authType?((0,r.openBlock)(),(0,r.createElementBlock)("div",S,[n.namespace?((0,r.openBlock)(),(0,r.createBlock)(l,{key:0,"initial-key":a.initialBasicAuthUsernameSecretKey,"initial-name":a.initialBasicAuthUsernameSecretName,mode:n.mode,namespace:n.namespace,disabled:n.mode===a.view,"secret-name-label":e.t("monitoring.alertmanagerConfig.auth.basicAuthUsername"),onUpdateSecretName:o.updateBasicAuthUsernameSecretName,onUpdateSecretKey:o.updateBasicAuthUsernameSecretKey},null,8,["initial-key","initial-name","mode","namespace","disabled","secret-name-label","onUpdateSecretName","onUpdateSecretKey"])):((0,r.openBlock)(),(0,r.createBlock)(c,{key:1,color:"error"},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("alertmanagerConfigReceiver.namespaceWarning")),1)]),_:1}))])):(0,r.createCommentVNode)("",!0),"basicAuth"===a.authType?((0,r.openBlock)(),(0,r.createElementBlock)("div",k,[n.namespace?((0,r.openBlock)(),(0,r.createBlock)(l,{key:0,"initial-key":a.initialBasicAuthPasswordSecretKey,"initial-name":a.initialBasicAuthPasswordSecretName,mode:n.mode,namespace:n.namespace,disabled:n.mode===a.view,"secret-name-label":e.t("monitoring.alertmanagerConfig.auth.basicAuthPassword"),onUpdateSecretName:o.updateBasicAuthPasswordSecretName,onUpdateSecretKey:o.updateBasicAuthPasswordSecretKey},null,8,["initial-key","initial-name","mode","namespace","disabled","secret-name-label","onUpdateSecretName","onUpdateSecretKey"])):((0,r.openBlock)(),(0,r.createBlock)(c,{key:1,color:"error"},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("alertmanagerConfigReceiver.namespaceWarning")),1)]),_:1}))])):(0,r.createCommentVNode)("",!0),"bearerTokenSecret"===a.authType?((0,r.openBlock)(),(0,r.createElementBlock)("div",x,[n.namespace?((0,r.openBlock)(),(0,r.createBlock)(l,{key:0,"initial-key":a.initialBearerTokenSecretKey,"initial-name":a.initialBearerTokenSecretName,mode:n.mode,namespace:n.namespace,disabled:n.mode===a.view,"secret-name-label":e.t("monitoring.alertmanagerConfig.auth.bearerTokenSecret"),onUpdateSecretName:o.updateBearerTokenSecretName,onUpdateSecretKey:o.updateBearerTokenSecretKey},null,8,["initial-key","initial-name","mode","namespace","disabled","secret-name-label","onUpdateSecretName","onUpdateSecretKey"])):((0,r.openBlock)(),(0,r.createBlock)(c,{key:1,color:"error"},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("alertmanagerConfigReceiver.namespaceWarning")),1)]),_:1}))])):(0,r.createCommentVNode)("",!0)])}var C=n(68745),T=n(3514),N=n.n(T),R={components:{Banner:C.A,LabeledSelect:p.A,SimpleSecretSelector:g.A},props:{mode:{type:String,required:!0},value:{type:Object,required:!0},namespace:{type:String,required:!0}},data(){this.value["basicAuth"]=this.value.basicAuth||{};const e=[{value:"none",label:this.t("monitoringReceiver.auth.none.label")},{value:"basicAuth",label:this.t("monitoringReceiver.auth.basicAuth.label"),default:{}},{value:"bearerTokenSecret",label:this.t("monitoringReceiver.auth.bearerToken.label"),default:{}}],t=e.map(e=>e.value),n=t.find(e=>!N()(this.value[e]))||t[0];return this.initializeType(e,n),{authOptions:e,authTypes:t,authType:n,view:v.nW,none:"__[[NONE]]__",initialBearerTokenSecretName:this.value?.bearerTokenSecret?.name?this.value.bearerTokenSecret.name:"",initialBearerTokenSecretKey:this.value?.bearerTokenSecret?.key?this.value.bearerTokenSecret.key:"",initialBasicAuthUsernameSecretName:this.value?.basicAuth?.username?.name?this.value.basicAuth.username.name:"",initialBasicAuthUsernameSecretKey:this.value?.basicAuth?.username?.key?this.value.basicAuth.username.key:"",initialBasicAuthPasswordSecretName:this.value?.basicAuth?.password?.name?this.value.basicAuth.password.name:"",initialBasicAuthPasswordSecretKey:this.value?.basicAuth?.password?.key?this.value.basicAuth.password.key:""}},methods:{initializeType(e,t){e.forEach(e=>{e.value===t&&"none"!==t?this.value[e.value]=this.value[e.value]||e.default:"undefined"!==typeof this.value[e.value]&&delete this.value[e.value]})},updateBearerTokenSecretName(e){const t=this.value.bearerTokenSecret?.key||"";this.value.bearerTokenSecret?e===this.none?delete this.value.bearerTokenSecret:this.value.bearerTokenSecret={key:t,name:e}:this.value["bearerTokenSecret"]={key:"",name:e}},updateBearerTokenSecretKey(e){const t=this.value.bearerTokenSecret?.name||"";this.value.bearerTokenSecret?this.value.bearerTokenSecret={name:t,key:e}:this.value["bearerTokenSecret"]={name:"",key:e}},updateBasicAuthUsernameSecretName(e){this.value.basicAuth||(this.value["basicAuth"]={username:{key:"",name:e},password:{key:"",name:""}});const t=this.value.basicAuth.username?.key||"";this.value.basicAuth.username?e===this.none?delete this.value.basicAuth.username:this.value.basicAuth.username={key:t,name:e}:this.value.basicAuth["username"]={key:"",name:e}},updateBasicAuthUsernameSecretKey(e){this.value.basicAuth||(this.value["basicAuth"]={username:{key:e,name:""},password:{key:"",name:""}});const t=this.value.basicAuth.username?.name||"";this.value.basicAuth.username?this.value.basicAuth.username={key:e,name:t}:this.value.basicAuth["username"]={key:e,name:""}},updateBasicAuthPasswordSecretName(e){this.value.basicAuth||(this.value["basicAuth"]={username:{key:"",name:""},password:{key:"",name:e}});const t=this.value.basicAuth.password?.key||"";this.value.basicAuth.password?e===this.none?delete this.value.basicAuth.password:this.value.basicAuth.password={key:t,name:e}:this.value.basicAuth["password"]={key:"",name:e}},updateBasicAuthPasswordSecretKey(e){this.value.basicAuth||(this.value["basicAuth"]={username:{key:"",name:""},password:{key:e,name:""}});const t=this.value.basicAuth.password?.name||"";this.value.basicAuth.password?this.value.basicAuth.password={key:e,name:t}:this.value.basicAuth["password"]={key:e,name:""}}}},O=n(47433);const I=(0,O.A)(R,[["render",A]]);var L=I;const D="http://rancher-alerting-drivers-prom2teams.cattle-monitoring-system.svc:8089/v2/connector",P="http://rancher-alerting-drivers-sachet.cattle-monitoring-system.svc:9876/alert",M={ALIBABA_CLOUD_SMS:"alibaba-cloud-sms",GENERIC:"generic",MS_TEAMS:"ms-teams"};var B={components:{Auth:L,Banner:m.l,Checkbox:f.S,LabeledInput:h.o,LabeledSelect:p.A,SimpleSecretSelector:g.A,TLS:b.A},props:{mode:{type:String,required:!0},value:{type:Object,required:!0},namespace:{type:String,default:""}},data(e){this.value["httpConfig"]=this.value.httpConfig||{},this.value["sendResolved"]=this.value.sendResolved||!1;const t=this.value.url===D||this.value.url===P;return{showNamespaceBanner:t&&this.mode!==v.nW,view:v.nW,initialUrlSecretName:this.value?.urlSecret?.name?this.value.urlSecret.name:"",initialUrlSecretKey:this.value?.urlSecret?.key?this.value.urlSecret.key:"",webhookOptons:[{label:this.t("monitoringReceiver.webhook.add.generic"),value:M.GENERIC},{label:this.t("monitoringReceiver.webhook.add.msTeams"),value:M.MS_TEAMS},{label:this.t("monitoringReceiver.webhook.add.alibabaCloudSms"),value:M.ALIBABA_CLOUD_SMS}],msTeamsUrl:D,alibabaCloudSmsUrl:P,selectedWebhookType:this.getTypeFromUrl(this.value.url),none:"__[[NONE]]__"}},methods:{getTypeFromUrl(e){switch(e){case D:return M.MS_TEAMS;case P:return M.ALIBABA_CLOUD_SMS;default:return M.GENERIC}},updateUrlSecretName(e){const t=this.value.urlSecret?.key||"";this.value.urlSecret?e===this.none?delete this.value.urlSecret:this.value.urlSecret={key:t,name:e}:this.value["urlSecret"]={key:"",name:e}},updateUrlSecretKey(e){const t=this.value.urlSecret?.name||"";this.value.urlSecret?this.value.urlSecret={name:t,key:e}:this.value["urlSecret"]={name:"",key:e}},updateWebhookType(e){switch(e){case"ms-teams":this.value.url=this.msTeamsUrl,this.selectedWebhookType=M.MS_TEAMS;break;case"alibaba-cloud-sms":this.value.url=this.alibabaCloudSmsUrl,this.selectedWebhookType=M.ALIBABA_CLOUD_SMS;break;default:this.value.url="",this.selectedWebhookType=M.GENERIC}},updateWebhookUrl(e){this.value.url=e}}};const F=(0,O.A)(B,[["render",d]]);var $=F},2572:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return g}});var r=n(9274);const i={class:"mt-10"},a={class:"mb-10"},o={class:"description"};function s(e,t,n,s,l,c){const u=(0,r.resolveComponent)("Banner"),d=(0,r.resolveDirective)("clean-html");return(0,r.openBlock)(),(0,r.createElementBlock)("div",i,[(0,r.createElementVNode)("div",a,[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("promptRemove.attemptingToRemove",{type:n.type}))+" ",1),(0,r.withDirectives)((0,r.createElementVNode)("span",o,null,512),[[d,c.resourceNames(n.names,null,e.t)]])]),(0,r.createVNode)(u,{color:"warning",class:"warning"},{default:(0,r.withCtx)(()=>[(0,r.withDirectives)((0,r.createElementVNode)("span",null,null,512),[[d,e.t("fleet.workspaces.remove.warning",{},!0)]])]),_:1}),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(l.errors,(e,t)=>((0,r.openBlock)(),(0,r.createBlock)(u,{key:t,class:"",color:"error",label:e},null,8,["label"]))),128))])}var l=n(99726),c=n(92043),u=n(9980),d=n(65359),h=n(49845),p={name:"PromptRemoveFleetWorkspacesDialog",emits:["errors"],components:{Banner:u.l},props:{value:{type:Array,default:()=>[]},names:{type:Array,default:()=>[]},type:{type:String,required:!0},close:{type:Function,required:!0}},data(){return{vendor:(0,h.f7)(),errors:[]}},computed:{...(0,d.aH)("action-menu",["toRemove"]),...(0,d.L8)({t:"i18n/t"})},methods:{resourceNames:c.Nr,async remove(e){try{await Promise.all(this.value.map(e=>e.remove())),this.close(e)}catch(t){this.errors=(0,l.rz)(t),e(!1)}}}},f=(n(81133),n(47433));const m=(0,f.A)(p,[["render",s],["__scopeId","data-v-07ec0ff4"]]);var g=m},39126:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var r=n(9274);const i={key:0,class:"text info mb-10 mt-20"},a={key:1,class:"text-warning mb-10 mt-20"};function o(e,t,n,o,s,l){const c=(0,r.resolveDirective)("clean-html");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("promptRemove.attemptingToRemove",{type:n.type}))+" ",1),(0,r.withDirectives)((0,r.createElementVNode)("span",null,null,512),[[c,e.resourceNames(e.names,null,e.t)]]),e.info?((0,r.openBlock)(),(0,r.createElementBlock)("div",i,[(0,r.withDirectives)((0,r.createElementVNode)("span",null,null,512),[[c,e.info]])])):(0,r.createCommentVNode)("",!0),e.warning?((0,r.openBlock)(),(0,r.createElementBlock)("div",a,(0,r.toDisplayString)(e.warning),1)):(0,r.createCommentVNode)("",!0)])}var s=n(55105),l={name:"GlobalRolePromptRemove",mixins:[s["default"]],props:{value:{type:Array,default:()=>[]},type:{type:String,required:!0}}},c=(n(99447),n(47433));const u=(0,c.A)(l,[["render",o],["__scopeId","data-v-7155ccc2"]]);var d=u},11193:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return y}});var r=n(9274);const i={class:"mb-10"},a={class:"display-name"},o={class:"delete-warning"},s={class:"mt-10"},l={key:0,class:"mt-20 remove-project-dialog"},c={class:"mt-10 ml-20"};function u(e,t,n,u,d,h){const p=(0,r.resolveComponent)("Checkbox"),f=(0,r.resolveDirective)("clean-html");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("div",i,[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("promptRemove.attemptingToRemove",{type:n.type}))+" ",1),(0,r.createElementVNode)("span",a,(0,r.toDisplayString)(`${h.displayName}.`),1),h.canSeeProjectlessNamespaces?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:0},[(0,r.createElementVNode)("span",o,(0,r.toDisplayString)(e.t("promptRemove.willDeleteAssociatedNamespaces")),1),t[1]||(t[1]=(0,r.createTextVNode)()),t[2]||(t[2]=(0,r.createElementVNode)("br",null,null,-1)),(0,r.withDirectives)((0,r.createElementVNode)("div",s,null,512),[[f,h.resourceNames(h.names,null,e.t)]])],64))]),h.filteredNamespaces.length>0&&h.canSeeProjectlessNamespaces?((0,r.openBlock)(),(0,r.createElementBlock)("div",l,[(0,r.createVNode)(p,{value:d.deleteProjectNamespaces,"onUpdate:value":t[0]||(t[0]=e=>d.deleteProjectNamespaces=e),label:e.t("promptRemove.deleteAssociatedNamespaces")},null,8,["value","label"]),(0,r.createElementVNode)("div",c,[(0,r.withDirectives)((0,r.createElementVNode)("span",null,null,512),[[f,h.resourceNames(h.names,null,e.t)]])])])):(0,r.createCommentVNode)("",!0)])])}var d=n(65359),h=n(2841),p=n(35664),f=n(42200),m=n(92043),g={name:"ProjectAndNamespacesPromptRemove",components:{Checkbox:f.S},props:{value:{type:Array,default:()=>[]},type:{type:String,required:!0}},async fetch(){this.allNamespaces=await this.$store.dispatch("cluster/findAll",{type:p.CU}),this.allProjects=await this.$store.dispatch("management/findAll",{type:p.Mc.PROJECT})},data(){return{deleteProjectNamespaces:!1,allNamespaces:[],allProjects:[]}},computed:{...(0,d.aH)("action-menu",["toRemove"]),...(0,d.L8)({t:"i18n/t"}),...(0,d.L8)(["currentCluster"]),currentProject(){return this.allProjects?this.value[0]:{}},filteredNamespaces(){return this.currentProject?this.allNamespaces.filter(e=>e.metadata.labels[h.yl]===this.currentProject.metadata?.name):[]},displayName(){return this.currentProject?.spec?.displayName},names(){return this.filteredNamespaces.map(e=>e.nameDisplay).slice(0,5)},canSeeProjectlessNamespaces(){return this.currentCluster.canUpdate}},methods:{resourceNames:m.Nr,remove(){return!(!this.deleteProjectNamespaces&&this.canSeeProjectlessNamespaces)&&Promise.all(this.filteredNamespaces.map(e=>e.remove())).then(()=>!1)}}},v=(n(28022),n(47433));const b=(0,v.A)(g,[["render",u],["__scopeId","data-v-017c9f08"]]);var y=b},24093:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var r=n(9274);const i={key:0,class:"text info mb-10 mt-20"},a={key:1,class:"text-warning mb-10 mt-20"};function o(e,t,n,o,s,l){const c=(0,r.resolveDirective)("clean-html");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("promptRemove.attemptingToRemove",{type:n.type}))+" ",1),(0,r.withDirectives)((0,r.createElementVNode)("span",null,null,512),[[c,e.resourceNames(e.names,null,e.t)]]),e.info?((0,r.openBlock)(),(0,r.createElementBlock)("div",i,[(0,r.withDirectives)((0,r.createElementVNode)("span",null,null,512),[[c,e.info]])])):(0,r.createCommentVNode)("",!0),e.warning?((0,r.openBlock)(),(0,r.createElementBlock)("div",a,(0,r.toDisplayString)(e.warning),1)):(0,r.createCommentVNode)("",!0)])}var s=n(55105),l={name:"RoleTemplatePromptRemove",mixins:[s["default"]],props:{value:{type:Array,default:()=>[]},type:{type:String,required:!0}}},c=(n(12214),n(47433));const u=(0,c.A)(l,[["render",o],["__scopeId","data-v-224f553f"]]);var d=u},4563:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return v}});var r=n(9274);const i={class:"mt-10"},a={class:"mb-30"},o={class:"body"},s={class:"mb-30"};function l(e,t,n,l,c,u){const d=(0,r.resolveComponent)("Checkbox"),h=(0,r.resolveComponent)("Banner"),p=(0,r.resolveDirective)("clean-html");return(0,r.openBlock)(),(0,r.createElementBlock)("div",i,[(0,r.createElementVNode)("div",a,[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("promptRemove.attemptingToRemove",{type:n.type}))+" ",1),(0,r.withDirectives)((0,r.createElementVNode)("span",o,null,512),[[p,u.resourceNames(n.names,null,e.t)]])]),(0,r.createElementVNode)("div",s,[(0,r.createVNode)(d,{value:c.forceDelete,"onUpdate:value":t[0]||(t[0]=e=>c.forceDelete=e),label:e.t("promptForceRemove.forceDelete")},null,8,["value","label"])]),(0,r.createVNode)(h,{color:"warning","label-key":"promptForceRemove.podRemoveWarning"}),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(c.errors,(e,t)=>((0,r.openBlock)(),(0,r.createBlock)(h,{key:t,class:"",color:"error",label:e},null,8,["label"]))),128))])}var c=n(92043),u=n(9980),d=n(31797),h=n(65359),p=n(45250),f={name:"PromptRemovePodDialog",emits:["errors"],components:{Banner:u.l,Checkbox:d.A},props:{value:{type:Array,default:()=>[]},names:{type:Array,default:()=>[]},type:{type:String,required:!0},close:{type:Function,required:!0},doneLocation:{type:Object,default:()=>{}}},data(){return{errors:[],forceDelete:!1}},computed:{...(0,h.aH)("action-menu",["toRemove"]),...(0,h.L8)({t:"i18n/t"})},methods:{resourceNames:c.Nr,async remove(e){let t;this.doneLocation&&(t={...this.doneLocation});try{await Promise.all(this.value.map(e=>this.removePod(e))),t&&!(0,p.isEmpty)(t)&&this.value?.[0]?.currentRouter().push(t),this.close()}catch(n){this.$emit("errors",n),e(!1)}},removePod(e){const t=this.forceDelete?{data:{gracePeriod:0,force:!0}}:void 0;return e.remove(t)}}},m=(n(25916),n(47433));const g=(0,m.A)(f,[["render",l],["__scopeId","data-v-44bed663"]]);var v=g},79117:function(e,t,n){"use strict";n.d(t,{A:function(){return c}});var r=n(9274);const i={class:"msg"};function a(e,t,n,a,o,s){return(0,r.openBlock)(),(0,r.createElementBlock)("span",{class:(0,r.normalizeClass)(["badge-state",e.bg])},[e.icon?((0,r.openBlock)(),(0,r.createElementBlock)("i",{key:0,class:(0,r.normalizeClass)(["icon",{[e.icon]:!0,"mr-5":!!e.msg}])},null,2)):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("span",i,(0,r.toDisplayString)(e.msg),1),(0,r.renderSlot)(e.$slots,"content-right",{},void 0,!0)],2)}var o=(0,r.defineComponent)({props:{value:{type:Object,default:null},color:{type:String,default:null},icon:{type:String,default:null},label:{type:String,default:null}},computed:{bg(){var e;return(null===(e=this.value)||void 0===e?void 0:e.stateBackground)||this.color},msg(){var e;return(null===(e=this.value)||void 0===e?void 0:e.stateDisplay)||this.label}}}),s=(n(36261),n(13643),n(47433));const l=(0,s.A)(o,[["render",a],["__scopeId","data-v-544b3117"]]);var c=l},68745:function(e,t,n){"use strict";n.d(t,{A:function(){return b}});var r=n(9274);const i=["aria-labelledby"],a={key:0,class:"banner__icon","data-testid":"banner-icon"},o=["alt"],s=["id"],l={key:1},c={key:2},u=["aria-label"],d=["alt"];function h(e,t,n,h,p,f){const m=(0,r.resolveComponent)("t"),g=(0,r.resolveDirective)("clean-html");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(["banner",{[e.color]:!0,"banner-disabled":e.disabled}]),role:"region","aria-labelledby":e.labelledbyId,tabindex:"0"},[e.icon?((0,r.openBlock)(),(0,r.createElementBlock)("div",a,[(0,r.createElementVNode)("i",{class:(0,r.normalizeClass)(["icon icon-2x",e.icon]),alt:e.t("generic.banners.bannerIcon")},null,10,o)])):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",{id:e.labelledbyId,class:(0,r.normalizeClass)(["banner__content",{closable:e.closable,stacked:e.stacked,icon:e.icon}]),"data-testid":"banner-content"},[(0,r.renderSlot)(e.$slots,"default",{},()=>[e.labelKey?((0,r.openBlock)(),(0,r.createBlock)(m,{key:0,k:e.labelKey,raw:!0},null,8,["k"])):e.messageLabel?((0,r.openBlock)(),(0,r.createElementBlock)("span",l,(0,r.toDisplayString)(e.messageLabel),1)):(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("span",c,null,512)),[[g,e.nlToBr(e.label)]])],!0),e.closable?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:"banner__content__closer",tabindex:"0",role:"button","aria-label":e.t("generic.close"),onClick:t[0]||(t[0]=t=>e.$emit("close")),onKeyup:[t[1]||(t[1]=(0,r.withKeys)(t=>e.$emit("close"),["enter"])),t[2]||(t[2]=(0,r.withKeys)(t=>e.$emit("close"),["space"]))]},[(0,r.createElementVNode)("i",{"data-testid":"banner-close",class:"icon icon-close closer-icon",alt:e.t("generic.banners.altCloseBanner")},null,8,d)],40,u)):(0,r.createCommentVNode)("",!0)],10,s)],10,i)}var p=n(92043),f=n(99726),m=(0,r.defineComponent)({props:{color:{type:String,default:"secondary"},label:{type:[String,Error,Object],default:null},labelKey:{type:String,default:null},icon:{type:String,default:null},closable:{type:Boolean,default:!1},stacked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["close"],data(){return{labelledbyId:`banner-labelledby-${(0,p.aR)(12)}`}},computed:{messageLabel(){return"string"!==typeof this.label?(0,f.As)(this.label):void 0}},methods:{nlToBr:p.Kn}}),g=(n(97369),n(47433));const v=(0,g.A)(m,[["render",h],["__scopeId","data-v-79a84b17"]]);var b=v},31797:function(e,t,n){"use strict";n.d(t,{A:function(){return E}});var r=n(9274);const i=["id","checked","value"],a=["tabindex","aria-disabled","aria-label","aria-checked","aria-labelledby","aria-describedby"],o=["id"],s=["id"],l=["data-testid","tabindex"],c=["data-testid","tabindex"],u={key:0,class:"checkbox-outer-container-description"},d=["id"],h={class:"checkbox-outer-container-extra"};function p(e,t,n,p,f,m){const g=(0,r.resolveComponent)("t"),v=(0,r.resolveDirective)("clean-tooltip"),b=(0,r.resolveDirective)("stripped-aria-label");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(["checkbox-outer-container",{"has-clean-tooltip":e.hasTooltip}]),"data-checkbox-ctrl":""},[(0,r.createElementVNode)("label",{class:(0,r.normalizeClass)(["checkbox-container",{disabled:e.isDisabled}]),onKeydown:[t[2]||(t[2]=(0,r.withKeys)((0,r.withModifiers)(t=>e.clicked(t),["prevent"]),["enter"])),t[3]||(t[3]=(0,r.withKeys)((0,r.withModifiers)(t=>e.clicked(t),["prevent"]),["space"]))],onClick:t[4]||(t[4]=t=>e.clicked(t))},[(0,r.createElementVNode)("input",{id:e.id,checked:e.isChecked,value:e.valueWhenTrue,type:"checkbox",tabindex:"-1","aria-hidden":"true",onClick:t[0]||(t[0]=(0,r.withModifiers)(()=>{},["stop","prevent"])),onKeyup:t[1]||(t[1]=(0,r.withKeys)((0,r.withModifiers)(()=>{},["stop","prevent"]),["enter"]))},null,40,i),(0,r.createElementVNode)("span",{ref:"checkbox",class:(0,r.normalizeClass)(["checkbox-custom",{indeterminate:e.indeterminate}]),tabindex:e.isDisabled?-1:0,"aria-disabled":e.isDisabled,"aria-label":e.replacementLabel,"aria-checked":!!e.value,"aria-labelledby":e.labelKey||e.label?e.idForLabel:void 0,"aria-describedby":e.ariaDescribedBy,role:"checkbox"},null,10,a),e.$slots.label||e.label||e.labelKey||e.hasTooltip?((0,r.openBlock)(),(0,r.createElementBlock)("span",{key:0,class:(0,r.normalizeClass)(["checkbox-label",{"checkbox-primary":e.primary}])},[(0,r.renderSlot)(e.$slots,"label",{},()=>[e.labelKey?((0,r.openBlock)(),(0,r.createElementBlock)("span",{key:0,id:e.idForLabel},[(0,r.createVNode)(g,{k:e.labelKey,raw:!0},null,8,["k"])],8,o)):e.label?((0,r.openBlock)(),(0,r.createElementBlock)("span",{key:1,id:e.idForLabel},(0,r.toDisplayString)(e.label),9,s)):(0,r.createCommentVNode)("",!0),e.tooltipKey?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("i",{key:2,class:"checkbox-info icon icon-info icon-lg","data-testid":e.componentTestid+"-info-icon",tabindex:e.isDisabled?-1:0,role:"tooltip"},null,8,l)),[[v,{content:e.t(e.tooltipKey),triggers:["hover","touch","focus"]}],[b,e.t(e.tooltipKey)]]):e.tooltip?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("i",{key:3,class:"checkbox-info icon icon-info icon-lg","data-testid":e.componentTestid+"-info-icon",tabindex:e.isDisabled?-1:0,role:"tooltip"},null,8,c)),[[v,{content:e.tooltip,triggers:["hover","touch","focus"]}],[b,e.tooltip]]):(0,r.createCommentVNode)("",!0)],!0)],2)):(0,r.createCommentVNode)("",!0)],34),e.descriptionKey||e.description?((0,r.openBlock)(),(0,r.createElementBlock)("div",u,[e.descriptionKey?((0,r.openBlock)(),(0,r.createBlock)(g,{key:0,id:e.describedById,k:e.descriptionKey},null,8,["id","k"])):e.description?((0,r.openBlock)(),(0,r.createElementBlock)("p",{key:1,id:e.describedById},(0,r.toDisplayString)(e.description),9,d)):(0,r.createCommentVNode)("",!0)])):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",h,[(0,r.renderSlot)(e.$slots,"extra",{},void 0,!0)])],2)}var f=n(14220),m=n(68851),g=n(46108),v=n.n(g),b=n(92043),y=(0,r.defineComponent)({name:"Checkbox",props:{value:{type:[Boolean,Array,String],default:!1},label:{type:String,default:null},labelKey:{type:String,default:null},id:{type:String,default:(0,b.aR)(12)},disabled:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},mode:{type:String,default:f.G5},tooltip:{type:[String,Object],default:null},tooltipKey:{type:String,default:null},valueWhenTrue:{type:[Boolean,String,Number],default:!0},descriptionKey:{type:String,default:null},description:{type:String,default:null},primary:{type:Boolean,default:!1},alternateLabel:{type:String,default:void 0},componentTestid:{type:String,default:"checkbox"}},emits:["update:value"],data(){return{describedById:`described-by-${(0,b.aR)(12)}`}},computed:{ariaDescribedBy(){const e=this.$attrs["aria-describedby"],t=this.descriptionKey||this.description?this.describedById:void 0;return e&&t?`${e} ${t}`:e||t?`${e||t}`:void 0},isDisabled(){return this.disabled||this.mode===f.nW},isChecked(){return this.isMulti(this.value)?this.findTrueValues(this.value):this.value===this.valueWhenTrue},hasTooltip(){return!!this.tooltip||!!this.tooltipKey},replacementLabel(){if(!this.label&&!this.labelKey&&this.alternateLabel)return this.alternateLabel},idForLabel(){return`${(0,b.aR)(12)}-checkbox-label`}},methods:{clicked(e){if("A"===e.target.tagName&&e.target.href)return!0;if(e.stopPropagation(),e.preventDefault(),this.isDisabled)return;const t={bubbles:!0,cancelable:!1,shiftKey:e.shiftKey,altKey:e.altKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey},n=new CustomEvent("click",t),r=v()(this.value);this.isMulti(r)?(this.isChecked?(0,m.Gj)(r,this.valueWhenTrue):(0,m.PG)(r,this.valueWhenTrue),this.$emit("update:value",r)):this.isString(this.valueWhenTrue)?this.isChecked?this.$emit("update:value",null):this.$emit("update:value",this.valueWhenTrue):(this.$emit("update:value",!r),this.$el.dispatchEvent(n))},isMulti(e){return Array.isArray(e)},isString(e){return"string"===typeof e},findTrueValues(e){return e.find(e=>e===this.valueWhenTrue)||!1},focus(){var e;this.isDisabled||null===(e=this.$refs.checkbox)||void 0===e||e.focus()}}}),_=(n(23179),n(47433));const w=(0,_.A)(y,[["render",p],["__scopeId","data-v-5376b6f7"]]);var E=w},40246:function(e,t,n){"use strict";n.d(t,{A:function(){return A}});var r=n(9274);const i=["for"],a={key:2,class:"required","aria-hidden":!0},o=["id","role","maxlength","disabled","aria-disabled","type","value","placeholder","data-lpignore","aria-describedby","aria-required"],s={key:2,class:"sub-label","data-testid":"sub-label"},l=["id","aria-label"],c=["id"];function u(e,t,n,u,d,h){const p=(0,r.resolveComponent)("t"),f=(0,r.resolveComponent)("TextAreaAutoGrow"),m=(0,r.resolveComponent)("LabeledTooltip"),g=(0,r.resolveDirective)("stripped-aria-label"),v=(0,r.resolveDirective)("clean-html");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)({"labeled-input":!0,focused:e.focused,[e.mode]:!0,disabled:e.isDisabled,[e.status]:e.status,suffix:e.hasSuffix,"has-clean-tooltip":e.hasTooltip,"compact-input":e.isCompact,hideArrows:e.hideArrows,[e.className]:!0})},[(0,r.renderSlot)(e.$slots,"label",{},()=>[e.hasLabel?((0,r.openBlock)(),(0,r.createElementBlock)("label",{key:0,for:e.inputId},[e.labelKey?((0,r.openBlock)(),(0,r.createBlock)(p,{key:0,k:e.labelKey},null,8,["k"])):e.label?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createTextVNode)((0,r.toDisplayString)(e.label),1)],64)):(0,r.createCommentVNode)("",!0),e.requiredField?((0,r.openBlock)(),(0,r.createElementBlock)("span",a,"*")):(0,r.createCommentVNode)("",!0)],8,i)):(0,r.createCommentVNode)("",!0)],!0),(0,r.renderSlot)(e.$slots,"prefix",{},void 0,!0),(0,r.renderSlot)(e.$slots,"field",{},()=>["multiline"===e.type||"multiline-password"===e.type?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createBlock)(f,(0,r.mergeProps)({key:0,id:e.inputId,ref:"value"},e.$attrs,{maxlength:e._maxlength,disabled:e.isDisabled,"aria-disabled":e.isDisabled,value:e.value||"",placeholder:e._placeholder,autocapitalize:"off",class:{conceal:"multiline-password"===e.type},"aria-describedby":e.ariaDescribedBy,"aria-required":e.requiredField,"onUpdate:value":e.onInput,onFocus:e.onFocus,onBlur:e.onBlur}),null,16,["id","maxlength","disabled","aria-disabled","value","placeholder","class","aria-describedby","aria-required","onUpdate:value","onFocus","onBlur"])),[[g,!e.hasLabel&&e.ariaLabel?e.ariaLabel:void 0]]):(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("input",(0,r.mergeProps)({key:1,id:e.inputId,ref:"value",role:"number"===e.type?void 0:"textbox",class:{"no-label":!e.hasLabel}},e.$attrs,{maxlength:e._maxlength,disabled:e.isDisabled,"aria-disabled":e.isDisabled,type:"cron"===e.type?"text":e.type,value:e.value,placeholder:e._placeholder,autocomplete:"off",autocapitalize:"off","data-lpignore":e.ignorePasswordManagers,"aria-describedby":e.ariaDescribedBy,"aria-required":e.requiredField,onInput:t[0]||(t[0]=(...t)=>e.onInput&&e.onInput(...t)),onFocus:t[1]||(t[1]=(...t)=>e.onFocus&&e.onFocus(...t)),onBlur:t[2]||(t[2]=(...t)=>e.onBlur&&e.onBlur(...t)),onChange:t[3]||(t[3]=(...t)=>e.onChange&&e.onChange(...t))}),null,16,o)),[[g,!e.hasLabel&&e.ariaLabel?e.ariaLabel:void 0]])],!0),(0,r.renderSlot)(e.$slots,"suffix",{},void 0,!0),e.hasTooltip?((0,r.openBlock)(),(0,r.createBlock)(m,{key:0,hover:e.hoverTooltip,value:e.tooltipValue,status:e.status},null,8,["hover","value","status"])):(0,r.createCommentVNode)("",!0),e.validationMessage?((0,r.openBlock)(),(0,r.createBlock)(m,{key:1,hover:e.hoverTooltip,value:e.validationMessage},null,8,["hover","value"])):(0,r.createCommentVNode)("",!0),e.cronHint||e.subLabel?((0,r.openBlock)(),(0,r.createElementBlock)("div",s,[e.cronHint?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,id:e.describedById,role:"alert","aria-label":e.cronHint},(0,r.toDisplayString)(e.cronHint),9,l)):e.subLabel?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:1,id:e.describedById},null,8,c)),[[v,e.subLabel]]):(0,r.createCommentVNode)("",!0)])):(0,r.createCommentVNode)("",!0)],2)}var d=n(59378),h=n(86257),p=n(92043),f=n(37021),m=n.n(f),g=n(3369),v=n(45250),b=n(14220);const y={tooltipKey:{type:String,default:null},placeholder:{type:[String,Number],default:""},placeholderKey:{type:String,default:null},label:{type:String,default:null},labelKey:{type:String,default:null},value:{type:[String,Number,Object],default:""},mode:{type:String,default:b.G5},rules:{default:()=>[],type:Array,validator:e=>e.every(e=>["function"].includes(typeof e))},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},requireDirty:{default:!0,type:Boolean}},_=(e,t)=>{const n=(0,r.ref)(e.mode===b.nW||!!`${e.value}`),i=(0,r.ref)(!1),a=(0,r.ref)(null),o=(0,r.computed)(()=>{var t;return e.required||(null===(t=e.rules)||void 0===t?void 0:t.some(e=>"required"===(null===e||void 0===e?void 0:e.name)))}),s=(0,r.computed)(()=>e.mode===b.nW),l=(0,r.computed)(()=>e.disabled||s.value),c=(0,r.computed)(()=>{const n=e.rules.find(e=>"required"===(null===e||void 0===e?void 0:e.name)),r=[],o=e.value;if(n&&a.value&&!i.value){const e=n(o);if(e)return t("update:validation",!1),e}for(const t of e.rules){const e=t(o);e&&"required"!==t.name&&r.push(e)}return r.length>0&&(a.value||i.value||!e.requireDirty)?(t("update:validation",!1),r.join(", ")):void t("update:validation",!0)}),u=()=>{n.value=!0,i.value=!0},d=()=>{i.value=!1,e.value||(n.value=!1),a.value=Date.now()};return{raised:n,focused:i,blurred:a,onFocusLabeled:u,onBlurLabeled:d,isDisabled:l,validationMessage:c,requiredField:o}},w=e=>{const t=(0,r.computed)(()=>null!==e.compact&&void 0!==e.compact?!!e.compact:!(e.label||e.labelKey));return{isCompact:t}},E={onInput(){}};var S=(0,r.defineComponent)({components:{LabeledTooltip:h.A,TextAreaAutoGrow:d.A},inheritAttrs:!1,props:{...y,type:{type:String,default:"text"},status:{type:String,default:null},subLabel:{type:String,default:null},tooltip:{default:null,type:[String,Object]},hoverTooltip:{type:Boolean,default:!0},ignorePasswordManagers:{default:!1,type:Boolean},maxlength:{type:Number,default:null},hideArrows:{type:Boolean,default:!1},delay:{type:Number,default:0},class:{type:String,default:""},ariaLabel:{type:String,default:""}},emits:["change","update:value","blur","update:validation"],setup(e,{emit:t}){const{focused:n,onFocusLabeled:i,onBlurLabeled:a,isDisabled:o,validationMessage:s,requiredField:l}=_(e,t),{isCompact:c}=w(e),u=(0,r.inject)("onInput",E.onInput);return{focused:n,onFocusLabeled:i,onBlurLabeled:a,onInput:u,isDisabled:o,validationMessage:s,requiredField:l,isCompact:c}},data(){return{updated:!1,validationErrors:"",inputId:`input-${(0,p.aR)(12)}`,describedById:`described-by-${(0,p.aR)(12)}`}},computed:{hasLabel(){return!this.isCompact&&(!!this.label||!!this.labelKey||!!this.$slots.label)},ariaDescribedBy(){const e=this.$attrs["aria-describedby"],t=this.cronHint||this.subLabel?this.describedById:void 0;return e&&t?`${e} ${t}`:e||t?`${e||t}`:void 0},hasTooltip(){return!!this.tooltip||!!this.tooltipKey},tooltipValue(){if(this.hasTooltip)return this.tooltipKey?this.t(this.tooltipKey):this.tooltip},hasSuffix(){return!!this.$slots.suffix},cronHint(){if("cron"!==this.type||!this.value)return;const e=["@yearly","@annually","@monthly","@weekly","@daily","@midnight","@hourly"],t=e.includes(this.value);if(!t&&!(0,g.isValidCron)(this.value,{alias:!0,allowBlankDay:!0,allowSevenAsSunday:!0}))return this.t("generic.invalidCron");try{const e=m().toString(this.value||"",{verbose:!0});return e}catch(n){return this.t("generic.invalidCron")}},_placeholder(){return this.placeholder?this.placeholder.toString():this.placeholderKey?this.t(this.placeholderKey):""},_maxlength(){if("text"===this.type&&this.maxlength)return this.maxlength},className(){return this.class}},mounted(){var e;const t=null===(e=this.$attrs)||void 0===e?void 0:e.id;t&&(this.inputId=t)},created(){this.onInput=this.delay?(0,v.debounce)(this.delayInput,this.delay):this.delayInput},methods:{focus(){const e=this.$refs.value;e&&e.focus()},select(){const e=this.$refs.value;e&&e.select()},onChange(e){this.$emit("change",e)},delayInput(e){var t;const n="string"===typeof e?e:null===(t=null===e||void 0===e?void 0:e.target)||void 0===t?void 0:t.value;this.$emit("update:value",n)},onFocus(){this.onFocusLabeled()},onBlur(e){this.$emit("blur",e),this.onBlurLabeled()},escapeHtml:p.ZD}}),k=(n(89923),n(11321),n(47433));const x=(0,k.A)(S,[["render",u],["__scopeId","data-v-5d87d62b"]]);var A=x},87494:function(e,t,n){"use strict";n.d(t,{A:function(){return v}});var r=n(9274);const i=["id","disabled","name","value","data-testid","checked"],a=["id","tabindex","aria-label","aria-checked","aria-disabled","aria-describedby"],o={class:"labeling"},s=["for"],l={key:1},c=["id"],u={key:1,class:"radio-button-outer-container-description"};function d(e,t,n,d,h,p){const f=(0,r.resolveComponent)("t"),m=(0,r.resolveDirective)("clean-html");return(0,r.openBlock)(),(0,r.createElementBlock)("label",{class:(0,r.normalizeClass)({disabled:e.isDisabled,"radio-container":!0,"radio-button-checked":e.isChecked}),onKeydown:[t[1]||(t[1]=(0,r.withKeys)(t=>e.clicked(t),["enter"])),t[2]||(t[2]=(0,r.withKeys)(t=>e.clicked(t),["space"]))],onClick:t[3]||(t[3]=(0,r.withModifiers)(t=>e.clicked(t),["stop"]))},[(0,r.createElementVNode)("input",{id:e.randomString,disabled:e.isDisabled,name:e.name,value:""+e.val,"data-testid":e.label,checked:e.isChecked,type:"radio",tabindex:-1,onClick:t[0]||(t[0]=(0,r.withModifiers)(()=>{},["stop","prevent"]))},null,8,i),(0,r.createElementVNode)("span",{id:e.radioOptionId,ref:"custom",class:(0,r.normalizeClass)([e.isDisabled?"text-muted":"","radio-custom"]),tabindex:e.isDisabled||e.preventFocusOnRadioGroups?-1:0,"aria-label":e.label,"aria-checked":e.isChecked,"aria-disabled":e.isDisabled,"aria-describedby":e.descriptionKey||e.description?e.describeById:void 0,role:"radio"},null,10,a),(0,r.createElementVNode)("div",o,[(0,r.createElementVNode)("label",{class:(0,r.normalizeClass)([e.muteLabel?"text-muted":"","radio-label","m-0"]),for:e.name},[e.hasLabelSlot?(0,r.renderSlot)(e.$slots,"label",{key:0},void 0,!0):e.label?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("span",l,null,512)),[[m,e.label]]):(0,r.createCommentVNode)("",!0)],10,s),e.descriptionKey||e.description?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,id:e.describeById,class:"radio-button-outer-container-description"},[e.descriptionKey?((0,r.openBlock)(),(0,r.createBlock)(f,{key:0,k:e.descriptionKey},null,8,["k"])):e.description?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createTextVNode)((0,r.toDisplayString)(e.description),1)],64)):(0,r.createCommentVNode)("",!0)],8,c)):e.hasDescriptionSlot?((0,r.openBlock)(),(0,r.createElementBlock)("div",u,[(0,r.renderSlot)(e.$slots,"description",{},void 0,!0)])):(0,r.createCommentVNode)("",!0)])],34)}var h=n(14220),p=n(92043),f=(0,r.defineComponent)({inheritAttrs:!1,props:{name:{type:String,default:""},val:{required:!0,validator:()=>!0},value:{required:!0,validator:()=>!0},label:{type:String,default:""},disabled:{type:Boolean,default:!1},mode:{type:String,default:"edit"},descriptionKey:{type:String,default:null},description:{type:String,default:null},preventFocusOnRadioGroups:{type:Boolean,default:!1},radioOptionId:{type:String,default:void 0}},emits:["update:value"],data(){return{isChecked:this.value===this.val,randomString:`${(0,p.aR)(12)}-radio`,describeById:`${(0,p.aR)(12)}-radio-described-id`}},computed:{isDisabled(){return this.mode===h.nW||this.disabled},muteLabel(){return this.disabled&&!(this.mode===h.nW&&this.isChecked)},hasDescriptionSlot(){return!!this.$slots.description},hasLabelSlot(){return!!this.$slots.label}},watch:{value(e){this.isChecked=this.val===e,this.isChecked&&!this.preventFocusOnRadioGroups&&this.$refs.custom.focus()}},methods:{clicked(e){const t=e.target;this.isDisabled||t instanceof HTMLElement&&"A"===t.tagName||this.$emit("update:value",this.val)}}}),m=(n(33938),n(47433));const g=(0,m.A)(f,[["render",d],["__scopeId","data-v-72e20a8d"]]);var v=g},95706:function(e,t,n){"use strict";n.d(t,{A:function(){return m}});var r=n(9274);const i={key:0,class:"radio-group label"},a={key:2,class:"icon icon-info icon-lg"},o={key:3,class:"icon icon-info icon-lg"},s=["aria-label","aria-describedby","aria-activedescendant","tabindex","aria-disabled"];function l(e,t,n,l,c,u){const d=(0,r.resolveComponent)("t"),h=(0,r.resolveComponent)("RadioButton"),p=(0,r.resolveDirective)("clean-tooltip");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[e.label||e.labelKey||e.tooltip||e.tooltipKey||e.$slots.label?((0,r.openBlock)(),(0,r.createElementBlock)("div",i,[(0,r.renderSlot)(e.$slots,"label",{},()=>[(0,r.createElementVNode)("h3",null,[e.labelKey?((0,r.openBlock)(),(0,r.createBlock)(d,{key:0,k:e.labelKey},null,8,["k"])):e.label?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createTextVNode)((0,r.toDisplayString)(e.label),1)],64)):(0,r.createCommentVNode)("",!0),e.tooltipKey?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("i",a,null,512)),[[p,e.t(e.tooltipKey)]]):e.tooltip?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("i",o,null,512)),[[p,e.tooltip]]):(0,r.createCommentVNode)("",!0)])],!0)])):(0,r.createCommentVNode)("",!0),(0,r.createElementVNode)("div",{ref:"radioGroup",role:"radiogroup","aria-label":e.radioGroupAriaLabel,"aria-describedby":e.radioGroupAriaDescribedBy,"aria-activedescendant":e.ariaActiveDescendant,class:(0,r.normalizeClass)(["radio-group",{row:e.row}]),tabindex:e.isDisabled?-1:0,"aria-disabled":e.isDisabled,onKeydown:[t[1]||(t[1]=(0,r.withKeys)((0,r.withModifiers)(t=>e.clickNext(1),["prevent","stop"]),["down"])),t[2]||(t[2]=(0,r.withKeys)((0,r.withModifiers)(t=>e.clickNext(-1),["prevent","stop"]),["up"])),t[3]||(t[3]=(0,r.withKeys)((0,r.withModifiers)(()=>{},["stop","prevent"]),["space","enter"]))]},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.normalizedOptions,(n,i)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:i},[(0,r.renderSlot)(e.$slots,i,{vBind:e.$attrs,option:n,isDisabled:e.isDisabled},()=>[(0,r.createVNode)(h,{name:e.name,value:e.value,label:n.label,"radio-option-id":n.radioOptionId,description:n.description,val:n.value,disabled:e.isDisabled,"data-testid":`radio-button-${i}`,mode:e.mode,"prevent-focus-on-radio-groups":!0,"onUpdate:value":t[0]||(t[0]=t=>e.$emit("update:value",t))},null,8,["name","value","label","radio-option-id","description","val","disabled","data-testid","mode"])],!0)]))),128))],42,s)])}var c=n(14220),u=n(87494),d=n(92043),h=(0,r.defineComponent)({components:{RadioButton:u.A},props:{name:{type:String,required:!0},options:{type:Array,required:!0},labels:{type:Array,default:null},value:{type:[Boolean,String,Object],default:null},disabled:{type:Boolean,default:!1},mode:{type:String,default:"edit"},label:{type:String,default:null},labelKey:{type:String,default:null},tooltip:{type:[String,Object],default:null},tooltipKey:{type:String,default:null},row:{type:Boolean,default:!1}},emits:["update:value"],data(){return{currFocusedElem:void 0,radioOptionsIdPrefix:`radio-option-${(0,d.aR)(12)}-`}},computed:{normalizedOptions(){const e=[];for(let t=0;t<this.options.length;t++){const n=this.options[t];"object"===typeof n&&n?e.push({...n,radioOptionId:`${this.radioOptionsIdPrefix}${t}`}):this.labels?e.push({label:this.labels[t],value:n,radioOptionId:`${this.radioOptionsIdPrefix}${t}`}):e.push({label:n,value:n,radioOptionId:`${this.radioOptionsIdPrefix}${t}`})}return e},isView(){return this.mode===c.nW},isDisabled(){return this.disabled||this.isView},radioGroupAriaLabel(){return this.$attrs["aria-label"]?this.$attrs["aria-label"]||void 0:this.labelKey?this.t(this.labelKey):this.label?this.label:void 0},radioGroupAriaDescribedBy(){return this.$attrs["aria-describedby"]||void 0},ariaActiveDescendant(){const e=this.normalizedOptions.find(e=>e.value===this.value);return this.value&&e?e.radioOptionId:""}},beforeUnmount(){var e;const t=null===(e=this.$refs)||void 0===e?void 0:e.radioGroup;t.removeEventListener("focusin",this.focusChanged)},mounted(){var e;const t=null===(e=this.$refs)||void 0===e?void 0:e.radioGroup;t.addEventListener("focusin",this.focusChanged)},methods:{focusChanged(e){this.currFocusedElem=e.target},clickNext(e){var t;if(this.currFocusedElem!==(null===(t=this.$refs)||void 0===t?void 0:t.radioGroup))return;const n=this.normalizedOptions,r=n.find(e=>e.value===this.value);let i=(r?n.indexOf(r):-1)+e;i>=n.length?i=n.length-1:i<0&&(i=0),this.$emit("update:value",n[i].value)}}}),p=(n(21223),n(47433));const f=(0,p.A)(h,[["render",l],["__scopeId","data-v-275b96ee"]]);var m=f},59378:function(e,t,n){"use strict";n.d(t,{A:function(){return h}});var r=n(9274);const i=["value","data-testid","disabled","placeholder","spellcheck"];function a(e,t,n,a,o,s){return(0,r.openBlock)(),(0,r.createElementBlock)("textarea",(0,r.mergeProps)({ref:"ta",value:e.value,"data-testid":e.$attrs["data-testid"]?e.$attrs["data-testid"]:"text-area-auto-grow",disabled:e.isDisabled,style:e.style,placeholder:e.placeholder,class:[e.className,"no-resize no-ease"]},e.$attrs,{spellcheck:e.spellcheck,onPaste:t[0]||(t[0]=t=>e.$emit("paste",t)),onInput:t[1]||(t[1]=t=>e.onInput(t)),onFocus:t[2]||(t[2]=t=>e.$emit("focus",t)),onBlur:t[3]||(t[3]=t=>e.$emit("blur",t))}),null,16,i)}var o=n(45250),s=n(14220);const l={queueResize(){}};var c=(0,r.defineComponent)({inheritAttrs:!1,props:{value:{type:String,required:!0},class:{type:[String,Array,Object],default:""},mode:{type:String,default:s.G5},minHeight:{type:Number,default:25},maxHeight:{type:Number,default:200},placeholder:{type:String,default:""},spellcheck:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1}},emits:["update:value","paste","focus","blur"],setup(){const e=(0,r.inject)("queueResize",l.queueResize);return{queueResize:e}},data(){return{curHeight:this.minHeight,overflow:"hidden"}},computed:{isDisabled(){return this.disabled||this.mode===s.nW},style(){return`height: ${this.curHeight}px; overflow: ${this.overflow};`},className(){return this.class}},watch:{$attrs:{deep:!0,handler(){this.queueResize()}}},created(){this.queueResize=(0,o.debounce)(this.autoSize,100)},mounted(){this.$refs.ta.style.height=`${this.curHeight}px`,this.$nextTick(()=>{this.autoSize()})},methods:{onInput(e){var t;const n=null===(t=null===e||void 0===e?void 0:e.target)||void 0===t?void 0:t.value;this.$emit("update:value",n),this.queueResize()},focus(){var e;(null===(e=this.$refs)||void 0===e?void 0:e.ta).focus()},autoSize(){const e=this.$refs.ta;if(!e)return;e.style.height="1px";const t=parseInt(getComputedStyle(e).getPropertyValue("borderTopWidth"),10)||0+parseInt(getComputedStyle(e).getPropertyValue("borderBottomWidth"),10)||0,n=Math.max(this.minHeight,Math.min(e.scrollHeight+t,this.maxHeight));e.style.overflowY=e.scrollHeight>n?"auto":"hidden",e.style.height=`${n}px`,this.curHeight=n}}}),u=n(47433);const d=(0,u.A)(c,[["render",a]]);var h=d},86257:function(e,t,n){"use strict";n.d(t,{A:function(){return d}});var r=n(9274);const i=["data-testid"],a={key:0,class:"tooltip","x-placement":"bottom"},o={class:"tooltip-inner"};function s(e,t,n,s,l,c){const u=(0,r.resolveDirective)("clean-tooltip"),d=(0,r.resolveDirective)("stripped-aria-label");return(0,r.openBlock)(),(0,r.createElementBlock)("div",{ref:"container",class:(0,r.normalizeClass)(["labeled-tooltip",{[e.status]:!0,hoverable:e.hover}])},[e.hover?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("i",{key:0,class:(0,r.normalizeClass)([{hover:!e.value,[e.iconClass]:!0},"icon status-icon"]),tabindex:"0","data-testid":e.componentTestid,role:"tooltip"},null,10,i)),[[u,e.tooltipContent],[d,`${e.t("generic.tooltip")} - ${e.isObject(e.value)?e.value.content:e.value}`]]):((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createElementVNode)("i",{class:(0,r.normalizeClass)([{hover:!e.value},"icon status-icon"])},null,2),e.value?((0,r.openBlock)(),(0,r.createElementBlock)("div",a,[t[0]||(t[0]=(0,r.createElementVNode)("div",{class:"tooltip-arrow"},null,-1)),(0,r.createElementVNode)("div",o,(0,r.toDisplayString)(e.value),1)])):(0,r.createCommentVNode)("",!0)],64))],2)}var l=(0,r.defineComponent)({props:{value:{type:[String,Object],default:null},status:{type:String,default:"error"},hover:{type:Boolean,default:!0},componentTestid:{type:String,default:"labeledTooltip-info-icon"}},computed:{iconClass(){return"error"===this.status?"icon-warning":"icon-info"},tooltipContent(){return this.isObject(this.value)?{content:this.value.content,popperClass:[`tooltip-${status}`],...this.value,triggers:["hover","touch","focus"]}:this.value?{content:this.value,triggers:["hover","touch","focus"]}:""}},methods:{isObject(e){return"object"===typeof e&&null!==e&&!!e.content}}}),c=(n(78213),n(47433));const u=(0,c.A)(l,[["render",s],["__scopeId","data-v-0217a440"]]);var d=u},49363:function(e,t,n){"use strict";n.d(t,{A:function(){return l}});var r=n(9274),i=n(82923),a=(0,r.defineComponent)({__name:"RcTag",props:{type:{},disabled:{type:Boolean,default:!1},showClose:{type:Boolean,default:!1},closeAriaLabel:{},highlight:{type:Boolean,default:void 0}},emits:["close"],setup(e,{emit:t}){const n=e,a=t;return(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{class:(0,r.normalizeClass)(["rc-tag",{[n.type]:!0,disabled:n.disabled,highlight:n.highlight}])},[(0,r.renderSlot)(e.$slots,"default"),n.showClose?((0,r.openBlock)(),(0,r.createBlock)(i.A,{key:0,variant:"ghost","aria-label":n.closeAriaLabel,onClick:t[0]||(t[0]=e=>a("close"))},{default:(0,r.withCtx)(()=>[...t[1]||(t[1]=[(0,r.createElementVNode)("i",{class:"icon icon-close"},null,-1)])]),_:1},8,["aria-label"])):(0,r.createCommentVNode)("",!0)],2))}}),o=(n(78267),n(47433));const s=(0,o.A)(a,[["__scopeId","data-v-033f89b8"]]);var l=s},82923:function(e,t,n){"use strict";n.d(t,{A:function(){return m}});var r=n(9274);const i={actions:"icon-actions",ai:"icon-ai","alert-alt":"icon-alert-alt",alert:"icon-alert",anchor:"icon-anchor",apple:"icon-apple",application:"icon-application",apps:"icon-apps",archive:"icon-archive","backup-restore":"icon-backup-restore",backup:"icon-backup","brush-icon":"icon-brush-icon","category-alt":"icon-category-alt",checkmark:"icon-checkmark","chevron-beginning":"icon-chevron-beginning","chevron-down":"icon-chevron-down","chevron-end":"icon-chevron-end","chevron-left":"icon-chevron-left","chevron-right":"icon-chevron-right","chevron-up":"icon-chevron-up","circle-plus":"icon-circle-plus",cis:"icon-cis",close:"icon-close","cluster-management":"icon-cluster-management",cluster:"icon-cluster",code:"icon-code",comment:"icon-comment",commit:"icon-commit",compass:"icon-compass","confirmation-alt":"icon-confirmation-alt",copy:"icon-copy",dashboard:"icon-dashboard",dock:"icon-dock",docker:"icon-docker",document:"icon-document","dot-half":"icon-dot-half","dot-open":"icon-dot-open",dot:"icon-dot","downgrade-alt":"icon-downgrade-alt",download:"icon-download",edit:"icon-edit",elemental:"icon-elemental",endpoints_connected:"icon-endpoints_connected",endpoints_disconnected:"icon-endpoints_disconnected",epinio:"icon-epinio",error:"icon-error",explore:"icon-explore",extension:"icon-extension","external-link":"icon-external-link",file:"icon-file",filter_alt:"icon-filter_alt",flask:"icon-flask",fleet:"icon-fleet",folder:"icon-folder",fork:"icon-fork",gatekeeper:"icon-gatekeeper",gear:"icon-gear",gemini:"icon-gemini",git:"icon-git",github:"icon-github",gitlab:"icon-gitlab",globe:"icon-globe",groups:"icon-groups",harvester:"icon-harvester",helm:"icon-helm",hide:"icon-hide",history:"icon-history",home:"icon-home","info-circle":"icon-info-circle",info:"icon-info",init_container:"icon-init_container",istio:"icon-istio",keyboard:"icon-keyboard",keyboard_tab:"icon-keyboard_tab",linux:"icon-linux","list-flat":"icon-list-flat","list-grouped":"icon-list-grouped",lock:"icon-lock",logging:"icon-logging",longhorn:"icon-longhorn",marketplace:"icon-marketplace",menu:"icon-menu",minus:"icon-minus",monitoring:"icon-monitoring",more:"icon-more",namespace:"icon-namespace",notifier:"icon-notifier","notify-announcement":"icon-notify-announcement","notify-bell":"icon-notify-bell","notify-busy":"icon-notify-busy","notify-error":"icon-notify-error","notify-info":"icon-notify-info","notify-tick":"icon-notify-tick","notify-warning":"icon-notify-warning",ollama:"icon-ollama",openai:"icon-openai","os-management":"icon-os-management",pause:"icon-pause","pin-outlined":"icon-pin-outlined",pin:"icon-pin",pipeline:"icon-pipeline",play:"icon-play",plus:"icon-plus",pod_security:"icon-pod_security",print:"icon-print","question-mark":"icon-question-mark","quick-action":"icon-quick-action","rancher-desktop":"icon-rancher-desktop","rancher-observability":"icon-rancher-observability","refresh-alt":"icon-refresh-alt",refresh:"icon-refresh","repository-alt":"icon-repository-alt",repository:"icon-repository",rio:"icon-rio","role-binding":"icon-role-binding",search:"icon-search",send:"icon-send",service:"icon-service",show:"icon-show",snapshot:"icon-snapshot","sort-down":"icon-sort-down","sort-up":"icon-sort-up",sort:"icon-sort",sources:"icon-sources",spinner:"icon-spinner",stackstate:"icon-stackstate","star-open":"icon-star-open",star:"icon-star",storage:"icon-storage","tag-alt":"icon-tag-alt",terminal:"icon-terminal","thinking-process":"icon-thinking-process",trash:"icon-trash",unlock:"icon-unlock","upgrade-alt":"icon-upgrade-alt",upload:"icon-upload","user-check":"icon-user-check","user-xmark":"icon-user-xmark",user:"icon-user","version-alt":"icon-version-alt",warning:"icon-warning",windows:"icon-windows"},a={xxlarge:"40px",xlarge:"32px",large:"24px",medium:"16px",small:"14px",inherit:"inherit"};var o=n(28533);const s=["aria-hidden"];var l=(0,r.defineComponent)({__name:"RcIcon",props:{type:{},size:{default:"small"},ariaHidden:{type:Boolean,default:!0},status:{default:"inherit"}},setup(e){(0,r.useCssVars)(e=>({v4e6c3731:n.value,v17bbae7c:d.value}));const t=e,n=(0,r.computed)(()=>a[t.size]),l=(0,r.computed)(()=>i[t.type]),c=(0,r.computed)(()=>t.status&&"inherit"!==t.status?t.status:"none"),{textColor:u}=(0,o.WZ)(c,"outlined"),d=(0,r.computed)(()=>void 0===t.status||"inherit"===t.status?"inherit":u.value);return(e,n)=>((0,r.openBlock)(),(0,r.createElementBlock)("i",{class:(0,r.normalizeClass)(["rc-icon",{[t.size]:!0,[l.value]:!0}]),"aria-hidden":t.ariaHidden},null,10,s))}}),c=(n(47497),n(47433));const u=(0,c.A)(l,[["__scopeId","data-v-2624fc9a"]]);var d=u,h=n(4364),p=(0,r.defineComponent)({__name:"RcButton",props:{primary:{type:Boolean},secondary:{type:Boolean},tertiary:{type:Boolean},link:{type:Boolean},multiAction:{type:Boolean},ghost:{type:Boolean},small:{type:Boolean},variant:{},size:{default:"medium"},leftIcon:{},rightIcon:{}},setup(e,{expose:t}){const n=[{variant:"primary",className:"variant-primary"},{variant:"secondary",className:"variant-secondary"},{variant:"tertiary",className:"variant-tertiary"},{variant:"link",className:"variant-link"},{variant:"multiAction",className:"variant-multi-action"},{variant:"ghost",className:"variant-ghost"}],i=[{size:"small",className:"btn-sm"}],a=[{size:"small",className:"btn-small"},{size:"medium",className:"btn-medium"},{size:"large",className:"btn-large"}],o=e,s=(0,r.computed)(()=>{("multiAction"===o.variant||o.multiAction)&&h.warn('[RcButton] The "multiAction" variant is deprecated and will be removed in a future version.');const e=n.find(({variant:e})=>o[e]);if(e)return h.warn(`[RcButton] The "${e.variant}" prop is deprecated and will be removed in a future version. Please use variant="${e.variant}" instead.`),e.className;{const e=n.find(({variant:e})=>e===o.variant);return(null===e||void 0===e?void 0:e.className)||"variant-primary"}}),l=(0,r.computed)(()=>{const e=i.find(({size:e})=>o[e]);if(e)return h.warn(`[RcButton] The "${e.size}" prop is deprecated and will be removed in a future version. Please use size="${e.size}" instead.`),e.className;{const e=a.find(({size:e})=>e===o.size);return(null===e||void 0===e?void 0:e.className)||""}}),c=(0,r.computed)(()=>({"rc-button":!0,btn:!0,[s.value]:!0,[l.value]:!!l.value})),u=(0,r.ref)(null),p=()=>{var e;null===(e=null===u||void 0===u?void 0:u.value)||void 0===e||e.focus()};return t({focus:p}),(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("button",{ref_key:"RcFocusTarget",ref:u,role:"button",class:(0,r.normalizeClass)({...c.value})},[e.$slots.before||o.leftIcon?(0,r.renderSlot)(e.$slots,"before",{key:0},()=>[o.leftIcon?((0,r.openBlock)(),(0,r.createBlock)(d,{key:0,class:"left-icon",type:o.leftIcon,size:"inherit"},null,8,["type"])):(0,r.createCommentVNode)("",!0)]):(0,r.createCommentVNode)("",!0),(0,r.renderSlot)(e.$slots,"default"),e.$slots.after||o.rightIcon?(0,r.renderSlot)(e.$slots,"after",{key:1},()=>[o.rightIcon?((0,r.openBlock)(),(0,r.createBlock)(d,{key:0,class:"right-icon",type:o.rightIcon,size:"inherit"},null,8,["type"])):(0,r.createCommentVNode)("",!0)]):(0,r.createCommentVNode)("",!0)],2))}});n(3951);const f=(0,c.A)(p,[["__scopeId","data-v-983efe70"]]);var m=f},17252:function(e,t,n){"use strict";n.d(t,{A:function(){return f}});var r=n(9274);const i={class:"mb-5"},a={class:"mb-5"},o=["href"];function s(e,t,n,s,l,c){const u=(0,r.resolveComponent)("Banner"),d=(0,r.resolveDirective)("clean-html");return(0,r.openBlock)(),(0,r.createElementBlock)("div",null,[(0,r.createVNode)(u,{color:"warning"},{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("strong",null,(0,r.toDisplayString)(e.t("harvester.upgradePage.upgradeInfo.warning"))+":",1),(0,r.withDirectives)((0,r.createElementVNode)("p",i,null,512),[[d,e.t("harvester.upgradePage.upgradeInfo.doc",{url:c.upgradeLink},!0)]]),(0,r.createElementVNode)("p",a,(0,r.toDisplayString)(e.t("harvester.upgradePage.upgradeInfo.tip")),1),(0,r.createElementVNode)("p",null,[(0,r.createTextVNode)((0,r.toDisplayString)(e.t("harvester.upgradePage.upgradeInfo.moreNotes"))+" ",1),(0,r.createElementVNode)("a",{href:c.releaseVersion,target:"_blank"},(0,r.toDisplayString)(e.t("generic.moreInfo")),9,o)])])]),_:1})])}var l=n(9980),c=n(66242),u=n(3791),d={name:"HarvesterUpgradeInfo",components:{Banner:l.l},props:{version:{type:String,default:""}},computed:{releaseVersion(){return this.version?`https://github.com/harvester/harvester/releases/tag/${this.version}`:"https://github.com/harvester/harvester/releases"},upgradeLink(){const e=this.$store.getters["harvester-common/getServerVersion"]();return(0,u.nn)(c.d.UPGRADE_URL,e)}}},h=n(47433);const p=(0,h.A)(d,[["render",s]]);var f=p},99061:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return H}});var r=n(9274);const i={class:"bundleModal"},a={class:"p-20"},o={class:"content"},s={key:0,class:"circle mb-20"},l={key:0,class:"mb-20"},c={class:"footer mt-20"};function u(e,t,n,u,d,h){const p=(0,r.resolveComponent)("GraphCircle"),f=(0,r.resolveComponent)("LabeledInput"),m=(0,r.resolveComponent)("LabeledSelect"),g=(0,r.resolveComponent)("UnitInput"),v=(0,r.resolveComponent)("Banner"),b=(0,r.resolveComponent)("AsyncButton"),y=(0,r.resolveComponent)("app-modal"),_=(0,r.resolveDirective)("clean-html");return(0,r.openBlock)(),(0,r.createElementBlock)("div",i,[d.isOpen?((0,r.openBlock)(),(0,r.createBlock)(y,{key:0,name:"bundle-modal","custom-class":"bundleModal","click-to-close":!1,width:550,height:390,class:"remove-modal support-modal",onClose:h.close},{default:(0,r.withCtx)(()=>[(0,r.createElementVNode)("div",a,[(0,r.createElementVNode)("h2",null,(0,r.toDisplayString)(e.t("harvester.modal.bundle.title")),1),(0,r.createElementVNode)("div",o,[h.bundlePending?((0,r.openBlock)(),(0,r.createElementBlock)("div",s,[(0,r.createVNode)(p,{"primary-stroke-color":"green","secondary-stroke-color":"lightgrey","stroke-width":6,percentage:h.percentage,"show-text":!0},null,8,["percentage"])])):((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[h.customSupportBundleFeatureEnabled?(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("p",l,null,512)),[[_,e.t("harvester.modal.bundle.tip",{doc:h.docLink},!0)]]):(0,r.createCommentVNode)("",!0),(0,r.createVNode)(f,{value:d.url,"onUpdate:value":t[0]||(t[0]=e=>d.url=e),label:e.t("harvester.modal.bundle.url"),class:"mb-10"},null,8,["value","label"]),(0,r.createVNode)(f,{value:d.description,"onUpdate:value":t[1]||(t[1]=e=>d.description=e),required:"",label:e.t("harvester.modal.bundle.description"),type:"multiline","min-height":80,class:"mb-10"},null,8,["value","label"]),h.customSupportBundleFeatureEnabled?((0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,{key:1},[(0,r.createVNode)(m,{value:d.namespaces,"onUpdate:value":[t[2]||(t[2]=e=>d.namespaces=e),h.updateNamespaces],label:e.t("harvester.modal.bundle.namespaces.label"),clearable:!0,multiple:!0,"append-to-body":!1,options:h.namespaceOptions,class:"mb-10 namespace-select",tooltip:e.t("harvester.modal.bundle.namespaces.tooltip",e._,!0)},null,8,["value","label","options","tooltip","onUpdate:value"]),(0,r.createVNode)(g,{value:d.timeout,"onUpdate:value":[t[3]||(t[3]=e=>d.timeout=e),t[4]||(t[4]=e=>h.updateNumberValue("timeout",e))],label:e.t("harvester.modal.bundle.timeout.label"),class:"mb-10",type:"number",min:0,tooltip:e.t("harvester.modal.bundle.timeout.tooltip",e._,!0),suffix:d.timeout>1?"Minutes":"Minute",onKeydown:h.onKeyDown},null,8,["value","label","tooltip","suffix","onKeydown"]),(0,r.createVNode)(g,{value:d.expiration,"onUpdate:value":[t[5]||(t[5]=e=>d.expiration=e),t[6]||(t[6]=e=>h.updateNumberValue("expiration",e))],label:e.t("harvester.modal.bundle.expiration.label"),class:"mb-10",type:"number",min:0,tooltip:e.t("harvester.modal.bundle.expiration.tooltip",e._,!0),suffix:d.expiration>1?"Minutes":"Minute",onKeydown:h.onKeyDown},null,8,["value","label","tooltip","suffix","onKeydown"]),(0,r.createVNode)(g,{value:d.nodeTimeout,"onUpdate:value":[t[7]||(t[7]=e=>d.nodeTimeout=e),t[8]||(t[8]=e=>h.updateNumberValue("nodeTimeout",e))],label:e.t("harvester.modal.bundle.nodeTimeout.label"),class:"mb-10",type:"number",min:0,tooltip:e.t("harvester.modal.bundle.nodeTimeout.tooltip",e._,!0),suffix:d.nodeTimeout>1?"Minutes":"Minute",onKeydown:h.onKeyDown},null,8,["value","label","tooltip","suffix","onKeydown"])],64)):(0,r.createCommentVNode)("",!0)],64)),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(d.errors,(e,t)=>((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:t},[(0,r.createVNode)(v,{color:"error",label:h.stringify(e)},null,8,["label"])]))),128)),(0,r.createElementVNode)("div",c,[(0,r.createElementVNode)("button",{class:"btn btn-sm role-secondary mr-10",onClick:t[9]||(t[9]=(...e)=>h.close&&h.close(...e))},(0,r.toDisplayString)(e.t("generic.close")),1),(0,r.createVNode)(b,{type:"submit",mode:"generate",class:"btn btn-sm bg-primary",disabled:h.bundlePending,onClick:h.save},null,8,["disabled","onClick"])])])])]),_:1},8,["onClose"])):(0,r.createCommentVNode)("",!0)])}var d=n(35664),h=n(92043),p=n(99726),f=n(79380),m=n(67607);const g=["viewBox"],v=["transform"],b=["id"],y=["stop-color"],_=["stop-color"],w=["id"],E=["stop-color"],S=["stop-color"],k=["r","cy","cx","stroke-width","stroke"],x=["r","cy","cx","stroke-width","stroke","stroke-dasharray","stroke-dashoffset"],A=["x","y","fill"];function C(e,t,n,i,a,o){return(0,r.openBlock)(),(0,r.createElementBlock)("svg",{class:"circle",width:"100%",height:"100%",viewBox:o.viewBox},[(0,r.createElementVNode)("g",{transform:o.transform},[(0,r.createElementVNode)("defs",null,[(0,r.createElementVNode)("linearGradient",{id:o.primaryStrokeColorId,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[(0,r.createElementVNode)("stop",{offset:"50%","stop-color":n.primaryStrokeGradientColor||n.primaryStrokeColor},null,8,y),(0,r.createElementVNode)("stop",{offset:"100%","stop-color":n.primaryStrokeColor},null,8,_)],8,b),(0,r.createElementVNode)("linearGradient",{id:o.secondaryStrokeColorId,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[(0,r.createElementVNode)("stop",{offset:"50%","stop-color":n.secondaryStrokeGradientColor||n.secondaryStrokeColor},null,8,E),(0,r.createElementVNode)("stop",{offset:"100%","stop-color":n.secondaryStrokeColor},null,8,S)],8,w)]),(0,r.createElementVNode)("circle",{r:o.radius,cy:o.center,cx:o.center,"stroke-width":n.strokeWidth,stroke:`url(#${o.secondaryStrokeColorId})`,fill:"none"},null,8,k),(0,r.createElementVNode)("circle",{r:o.radius,cy:o.center,cx:o.center,"stroke-width":n.strokeWidth,stroke:`url(#${o.primaryStrokeColorId})`,"stroke-dasharray":o.circumference,"stroke-dashoffset":o.circumference*(1-n.percentage),fill:"none"},null,8,x)],8,v),n.showText?((0,r.openBlock)(),(0,r.createElementBlock)("text",{key:0,x:o.center,y:o.center,style:{"font-size":"25","dominant-baseline":"middle","text-anchor":"middle"},fill:`url(#${o.primaryStrokeColorId})`},(0,r.toDisplayString)(o.parsePercentage)+"% ",9,A)):(0,r.createCommentVNode)("",!0)],8,g)}let T=0;var N={props:{percentage:{type:Number,default:.75},strokeWidth:{type:Number,default:22},primaryStrokeColor:{type:String,required:!0},primaryStrokeGradientColor:{type:String,default:null},secondaryStrokeColor:{type:String,required:!0},secondaryStrokeGradientColor:{type:String,default:null},rotate:{type:Number,default:90},showText:{type:Boolean,default:!1}},data(){return{id:T++}},computed:{viewportSize(){return 100},radius(){const e=this.viewportSize/2,t=this.strokeWidth/2;return e-t},center(){return this.viewportSize/2},viewBox(){return`0 0 ${this.viewportSize} ${this.viewportSize}`},circumference(){return 2*Math.PI*this.radius},transform(){return`rotate(${this.rotate}, ${this.center}, ${this.center})`},strokeDasharray(){return this.circumference},strokeDashoffset(){return this.circumference*(1-this.percentage)},primaryStrokeColorId(){return`primary-${T}`},secondaryStrokeColorId(){return`secondary-${T}`},parsePercentage(){return parseInt(100*this.percentage)||0}}},R=(n(34941),n(47433));const O=(0,R.A)(N,[["render",C],["__scopeId","data-v-5f78e642"]]);var I=O,L=n(9980),D=n(3679),P=n(32748),M=n(73344),B=n(32766),F=n(50889),$=n(66242),U=n(3791);const j="select_all",V="unselect_all";var K={name:"SupportBundle",components:{LabeledInput:f.o,GraphCircle:I,AsyncButton:m.A,Banner:L.l,AppModal:D.h,LabeledSelect:P.A,UnitInput:M.A},async fetch(){await this.$store.dispatch("harvester/findAll",{type:d.CU});try{const e=this.$store.getters["harvester-common/getHarvesterClusterUrl"]("v1/harvester/namespaces?link=supportbundle"),t=await this.$store.dispatch("harvester/request",{url:e});this.defaultNamespaces=t.data||[]}catch(p){this.defaultNamespaces=[]}},data(){return{isOpen:!1,errors:[],version:"",clusterName:"",url:"",description:"",namespaces:[],defaultNamespaces:[],timeout:"",expiration:"",nodeTimeout:""}},computed:{bundlePending(){return this.$store.getters["harvester-common/isBundlePending"]},isShowBundleModal(){return this.$store.getters["harvester-common/isShowBundleModal"]},percentage(){return this.$store.getters["harvester-common/getBundlePercentage"]},availableNamespaces(){const e=this.$store.getters["harvester/all"](d.CU).map(e=>e.id),t=this.defaultNamespaces.map(e=>e.id);return e.filter(e=>!t.includes(e)||this.namespaces.includes(e))},namespaceOptions(){if(0===this.availableNamespaces.length)return[];const e=this.namespaces.length===this.availableNamespaces.length&&this.availableNamespaces.every(e=>this.namespaces.includes(e)),t=e?{label:this.t("harvester.modal.bundle.namespaces.unselectAll"),value:V}:{label:this.t("harvester.modal.bundle.namespaces.selectAll"),value:j};return[t,...this.availableNamespaces]},docLink(){const e=this.$store.getters["harvester-common/getServerVersion"]();return(0,U.nn)($.d.SUPPORT_BUNDLE_NAMESPACES,e)},customSupportBundleFeatureEnabled(){return this.$store.getters["harvester-common/getFeatureEnabled"]("customSupportBundle")}},watch:{isShowBundleModal:{immediate:!0,handler(e){this.isOpen=e}},isOpen(e){e?this.loadDefaultSettings():this.resetForm()}},methods:{stringify:p.As,close(){this.isOpen=!1,this.$store.commit("harvester-common/toggleBundleModal",!1)},loadDefaultSettings(){const e=this.$store.getters["currentCluster"],t=this.$store.getters["harvester/byId"](B.rk.SETTING,F.EP.SERVER_VERSION),n=this.$store.getters["harvester/byId"](B.rk.SETTING,F.EP.SUPPORT_BUNDLE_NAMESPACES),r=this.$store.getters["harvester/byId"](B.rk.SETTING,F.EP.SUPPORT_BUNDLE_TIMEOUT),i=this.$store.getters["harvester/byId"](B.rk.SETTING,F.EP.SUPPORT_BUNDLE_EXPIRATION),a=this.$store.getters["harvester/byId"](B.rk.SETTING,F.EP.SUPPORT_BUNDLE_NODE_COLLECTION_TIMEOUT);this.version=t?.currentVersion||"",this.clusterName=e?.id||"",this.namespaces=(n?.value??n?.default??"").split(",").map(e=>e.trim()).filter(e=>e),this.timeout=r?.value??r?.default??"",this.expiration=i?.value??i?.default??"",this.nodeTimeout=a?.value??a?.default??"",this.url="",this.description="",this.errors=[]},resetForm(){this.url="",this.description="",this.namespaces=[],this.timeout="",this.expiration="",this.nodeTimeout="",this.errors=[]},updateNamespaces(e){e.includes(j)?this.namespaces=[...this.availableNamespaces]:e.includes(V)?this.namespaces=[]:this.namespaces=e.filter(e=>e!==j&&e!==V)},updateNumberValue(e,t){if(""===t||null===t||isNaN(t))return void(this[e]="");const n=Number(t),r=Number.isInteger(n)&&n>=0;this[e]=r?String(n):""},onKeyDown(e){["e","E","+","-","."].includes(e.key)&&e.preventDefault()},async save(e){this.errors=[];const t=`bundle-${this.clusterName}-${this.version}-${(0,h.vx)(5).toLowerCase()}`,n="harvester-system",r={description:this.description.trim(),...this.url.trim()&&{issueURL:this.url.trim()},...this.namespaces.length>0&&{extraCollectionNamespaces:this.namespaces},...""!==this.timeout&&{timeout:Number(this.timeout)},...""!==this.expiration&&{expiration:Number(this.expiration)},...""!==this.nodeTimeout&&{nodeTimeout:Number(this.nodeTimeout)}},i={apiVersion:"harvesterhci.io/v1beta1",type:B.rk.SUPPORT_BUNDLE,kind:"SupportBundle",metadata:{name:t,namespace:n},spec:r};try{const e=this.$store.getters["currentProduct"].inStore,r=await this.$store.dispatch(`${e}/create`,i);await r.save(),this.$store.commit("harvester-common/setLatestBundleId",`${n}/${t}`,{root:!0}),this.$store.dispatch("harvester-common/bundleProgress",{root:!0})}catch(a){this.errors=(0,p.rz)(a),e(!1)}}}};n(25737);const G=(0,R.A)(K,[["render",u],["__scopeId","data-v-edef926a"]]);var H=G},68165:function(e,t,n){"use strict";var r=n(79138),i=n(6095),a=n(64531),o=n(87196);e.exports=o||r.call(a,i)},62012:function(e,t,n){"use strict";var r=n(79138),i=n(6095),a=n(68165);e.exports=function(){return a(r,i,arguments)}},6095:function(e){"use strict";e.exports=Function.prototype.apply},64531:function(e){"use strict";e.exports=Function.prototype.call},79903:function(e,t,n){"use strict";var r=n(79138),i=n(3468),a=n(64531),o=n(68165);e.exports=function(e){if(e.length<1||"function"!==typeof e[0])throw new i("a function is required");return o(r,a,e)}},87196:function(e){"use strict";e.exports="undefined"!==typeof Reflect&&Reflect&&Reflect.apply},79818:function(e,t,n){"use strict";var r=n(528),i=n(28498),a=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"===typeof n&&a(e,".prototype.")>-1?i(n):n}},28498:function(e,t,n){"use strict";var r=n(26108),i=n(64940),a=n(79903),o=n(62012);e.exports=function(e){var t=a(arguments),n=1+e.length-(arguments.length-1);return r(t,n>0?n:0,!0)},i?i(e.exports,"apply",{value:o}):e.exports.apply=o},14607:function(e,t,n){"use strict";var r=n(528),i=n(79903),a=i([r("%String.prototype.indexOf%")]);e.exports=function(e,t){var n=r(e,!!t);return"function"===typeof n&&a(e,".prototype.")>-1?i([n]):n}},59246:function(e,t,n){const r=n(76931),i={};for(const s of Object.keys(r))i[r[s]]=s;const a={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};e.exports=a;for(const s of Object.keys(a)){if(!("channels"in a[s]))throw new Error("missing channels property: "+s);if(!("labels"in a[s]))throw new Error("missing channel labels property: "+s);if(a[s].labels.length!==a[s].channels)throw new Error("channel and label counts mismatch: "+s);const{channels:e,labels:t}=a[s];delete a[s].channels,delete a[s].labels,Object.defineProperty(a[s],"channels",{value:e}),Object.defineProperty(a[s],"labels",{value:t})}function o(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}a.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=a-i;let s,l;a===i?s=0:t===a?s=(n-r)/o:n===a?s=2+(r-t)/o:r===a&&(s=4+(t-n)/o),s=Math.min(60*s,360),s<0&&(s+=360);const c=(i+a)/2;return l=a===i?0:c<=.5?o/(a+i):o/(2-a-i),[s,100*l,100*c]},a.rgb.hsv=function(e){let t,n,r,i,a;const o=e[0]/255,s=e[1]/255,l=e[2]/255,c=Math.max(o,s,l),u=c-Math.min(o,s,l),d=function(e){return(c-e)/6/u+.5};return 0===u?(i=0,a=0):(a=u/c,t=d(o),n=d(s),r=d(l),o===c?i=r-n:s===c?i=1/3+t-r:l===c&&(i=2/3+n-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*a,100*c]},a.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const i=a.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[i,100*o,100*r]},a.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(1-t,1-n,1-r),a=(1-t-i)/(1-i)||0,o=(1-n-i)/(1-i)||0,s=(1-r-i)/(1-i)||0;return[100*a,100*o,100*s,100*i]},a.rgb.keyword=function(e){const t=i[e];if(t)return t;let n,a=1/0;for(const i of Object.keys(r)){const t=r[i],s=o(e,t);s<a&&(a=s,n=i)}return n},a.keyword.rgb=function(e){return r[e]},a.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const i=.4124*t+.3576*n+.1805*r,a=.2126*t+.7152*n+.0722*r,o=.0193*t+.1192*n+.9505*r;return[100*i,100*a,100*o]},a.rgb.lab=function(e){const t=a.rgb.xyz(e);let n=t[0],r=t[1],i=t[2];n/=95.047,r/=100,i/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;const o=116*r-16,s=500*(n-r),l=200*(r-i);return[o,s,l]},a.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let i,a,o;if(0===n)return o=255*r,[o,o,o];i=r<.5?r*(1+n):r+n-r*n;const s=2*r-i,l=[0,0,0];for(let c=0;c<3;c++)a=t+1/3*-(c-1),a<0&&a++,a>1&&a--,o=6*a<1?s+6*(i-s)*a:2*a<1?i:3*a<2?s+(i-s)*(2/3-a)*6:s,l[c]=255*o;return l},a.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,i=n;const a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,i*=a<=1?a:2-a;const o=(r+n)/2,s=0===r?2*i/(a+i):2*n/(r+n);return[t,100*s,100*o]},a.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const i=Math.floor(t)%6,a=t-Math.floor(t),o=255*r*(1-n),s=255*r*(1-n*a),l=255*r*(1-n*(1-a));switch(r*=255,i){case 0:return[r,l,o];case 1:return[s,r,o];case 2:return[o,r,l];case 3:return[o,s,r];case 4:return[l,o,r];case 5:return[r,o,s]}},a.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,i=Math.max(r,.01);let a,o;o=(2-n)*r;const s=(2-n)*i;return a=n*i,a/=s<=1?s:2-s,a=a||0,o/=2,[t,100*a,100*o]},a.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const i=n+r;let a;i>1&&(n/=i,r/=i);const o=Math.floor(6*t),s=1-r;a=6*t-o,0!==(1&o)&&(a=1-a);const l=n+a*(s-n);let c,u,d;switch(o){default:case 6:case 0:c=s,u=l,d=n;break;case 1:c=l,u=s,d=n;break;case 2:c=n,u=s,d=l;break;case 3:c=n,u=l,d=s;break;case 4:c=l,u=n,d=s;break;case 5:c=s,u=n,d=l;break}return[255*c,255*u,255*d]},a.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100,a=1-Math.min(1,t*(1-i)+i),o=1-Math.min(1,n*(1-i)+i),s=1-Math.min(1,r*(1-i)+i);return[255*a,255*o,255*s]},a.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let i,a,o;return i=3.2406*t+-1.5372*n+-.4986*r,a=-.9689*t+1.8758*n+.0415*r,o=.0557*t+-.204*n+1.057*r,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,a=a>.0031308?1.055*a**(1/2.4)-.055:12.92*a,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),o=Math.min(Math.max(0,o),1),[255*i,255*a,255*o]},a.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const i=116*n-16,a=500*(t-n),o=200*(n-r);return[i,a,o]},a.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let i,a,o;a=(t+16)/116,i=n/500+a,o=a-r/200;const s=a**3,l=i**3,c=o**3;return a=s>.008856?s:(a-16/116)/7.787,i=l>.008856?l:(i-16/116)/7.787,o=c>.008856?c:(o-16/116)/7.787,i*=95.047,a*=100,o*=108.883,[i,a,o]},a.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let i;const a=Math.atan2(r,n);i=360*a/2/Math.PI,i<0&&(i+=360);const o=Math.sqrt(n*n+r*r);return[t,o,i]},a.lch.lab=function(e){const t=e[0],n=e[1],r=e[2],i=r/360*2*Math.PI,a=n*Math.cos(i),o=n*Math.sin(i);return[t,a,o]},a.rgb.ansi16=function(e,t=null){const[n,r,i]=e;let o=null===t?a.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),0===o)return 30;let s=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return 2===o&&(s+=60),s},a.hsv.ansi16=function(e){return a.rgb.ansi16(a.hsv.rgb(e),e[2])},a.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];if(t===n&&n===r)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;const i=16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5);return i},a.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=.5*(1+~~(e>50)),r=(1&t)*n*255,i=(t>>1&1)*n*255,a=(t>>2&1)*n*255;return[r,i,a]},a.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;e-=16;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,i=t%6/5*255;return[n,r,i]},a.rgb.hex=function(e){const t=((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2])),n=t.toString(16).toUpperCase();return"000000".substring(n.length)+n},a.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];3===t[0].length&&(n=n.split("").map(e=>e+e).join(""));const r=parseInt(n,16),i=r>>16&255,a=r>>8&255,o=255&r;return[i,a,o]},a.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),o=i-a;let s,l;return s=o<1?a/(1-o):0,l=o<=0?0:i===t?(n-r)/o%6:i===n?2+(r-t)/o:4+(t-n)/o,l/=6,l%=1,[360*l,100*o,100*s]},a.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let i=0;return r<1&&(i=(n-.5*r)/(1-r)),[e[0],100*r,100*i]},a.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},a.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];const i=[0,0,0],a=t%1*6,o=a%1,s=1-o;let l=0;switch(Math.floor(a)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return l=(1-n)*r,[255*(n*i[0]+l),255*(n*i[1]+l),255*(n*i[2]+l)]},a.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let i=0;return r>0&&(i=t/r),[e[0],100*i,100*r]},a.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100,r=n*(1-t)+.5*t;let i=0;return r>0&&r<.5?i=t/(2*r):r>=.5&&r<1&&(i=t/(2*(1-r))),[e[0],100*i,100*r]},a.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],100*(r-t),100*(1-r)]},a.hwb.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=1-n,i=r-t;let a=0;return i<1&&(a=(r-i)/(1-i)),[e[0],100*i,100*a]},a.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},a.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},a.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},a.gray.hsl=function(e){return[0,0,e[0]]},a.gray.hsv=a.gray.hsl,a.gray.hwb=function(e){return[0,100,e[0]]},a.gray.cmyk=function(e){return[0,0,0,e[0]]},a.gray.lab=function(e){return[e[0],0,0]},a.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),n=(t<<16)+(t<<8)+t,r=n.toString(16).toUpperCase();return"000000".substring(r.length)+r},a.rgb.gray=function(e){const t=(e[0]+e[1]+e[2])/3;return[t/255*100]}},99047:function(e,t,n){const r=n(59246),i=n(30802),a={},o=Object.keys(r);function s(e){const t=function(...t){const n=t[0];return void 0===n||null===n?n:(n.length>1&&(t=n),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}function l(e){const t=function(...t){const n=t[0];if(void 0===n||null===n)return n;n.length>1&&(t=n);const r=e(t);if("object"===typeof r)for(let e=r.length,i=0;i<e;i++)r[i]=Math.round(r[i]);return r};return"conversion"in e&&(t.conversion=e.conversion),t}o.forEach(e=>{a[e]={},Object.defineProperty(a[e],"channels",{value:r[e].channels}),Object.defineProperty(a[e],"labels",{value:r[e].labels});const t=i(e),n=Object.keys(t);n.forEach(n=>{const r=t[n];a[e][n]=l(r),a[e][n].raw=s(r)})}),e.exports=a},30802:function(e,t,n){const r=n(59246);function i(){const e={},t=Object.keys(r);for(let n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}function a(e){const t=i(),n=[e];t[e].distance=0;while(n.length){const e=n.pop(),i=Object.keys(r[e]);for(let r=i.length,a=0;a<r;a++){const r=i[a],o=t[r];-1===o.distance&&(o.distance=t[e].distance+1,o.parent=e,n.unshift(r))}}return t}function o(e,t){return function(n){return t(e(n))}}function s(e,t){const n=[t[e].parent,e];let i=r[t[e].parent][e],a=t[e].parent;while(t[a].parent)n.unshift(t[a].parent),i=o(r[t[a].parent][a],i),a=t[a].parent;return i.conversion=n,i}e.exports=function(e){const t=a(e),n={},r=Object.keys(t);for(let i=r.length,a=0;a<i;a++){const e=r[a],i=t[e];null!==i.parent&&(n[e]=s(e,t))}return n}},76931:function(e){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},43269:function(e,t,n){var r=n(76931),i=n(59975),a=Object.hasOwnProperty,o=Object.create(null);for(var s in r)a.call(r,s)&&(o[r[s]]=s);var l=e.exports={to:{},get:{}};function c(e,t,n){return Math.min(Math.max(t,e),n)}function u(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}l.get=function(e){var t,n,r=e.substring(0,3).toLowerCase();switch(r){case"hsl":t=l.get.hsl(e),n="hsl";break;case"hwb":t=l.get.hwb(e),n="hwb";break;default:t=l.get.rgb(e),n="rgb";break}return t?{model:n,value:t}:null},l.get.rgb=function(e){if(!e)return null;var t,n,i,o=/^#([a-f0-9]{3,4})$/i,s=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,l=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,u=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,d=/^(\w+)$/,h=[0,0,0,1];if(t=e.match(s)){for(i=t[2],t=t[1],n=0;n<3;n++){var p=2*n;h[n]=parseInt(t.slice(p,p+2),16)}i&&(h[3]=parseInt(i,16)/255)}else if(t=e.match(o)){for(t=t[1],i=t[3],n=0;n<3;n++)h[n]=parseInt(t[n]+t[n],16);i&&(h[3]=parseInt(i+i,16)/255)}else if(t=e.match(l)){for(n=0;n<3;n++)h[n]=parseInt(t[n+1],0);t[4]&&(t[5]?h[3]=.01*parseFloat(t[4]):h[3]=parseFloat(t[4]))}else{if(!(t=e.match(u)))return(t=e.match(d))?"transparent"===t[1]?[0,0,0,0]:a.call(r,t[1])?(h=r[t[1]],h[3]=1,h):null:null;for(n=0;n<3;n++)h[n]=Math.round(2.55*parseFloat(t[n+1]));t[4]&&(t[5]?h[3]=.01*parseFloat(t[4]):h[3]=parseFloat(t[4]))}for(n=0;n<3;n++)h[n]=c(h[n],0,255);return h[3]=c(h[3],0,1),h},l.get.hsl=function(e){if(!e)return null;var t=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=e.match(t);if(n){var r=parseFloat(n[4]),i=(parseFloat(n[1])%360+360)%360,a=c(parseFloat(n[2]),0,100),o=c(parseFloat(n[3]),0,100),s=c(isNaN(r)?1:r,0,1);return[i,a,o,s]}return null},l.get.hwb=function(e){if(!e)return null;var t=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,n=e.match(t);if(n){var r=parseFloat(n[4]),i=(parseFloat(n[1])%360+360)%360,a=c(parseFloat(n[2]),0,100),o=c(parseFloat(n[3]),0,100),s=c(isNaN(r)?1:r,0,1);return[i,a,o,s]}return null},l.to.hex=function(){var e=i(arguments);return"#"+u(e[0])+u(e[1])+u(e[2])+(e[3]<1?u(Math.round(255*e[3])):"")},l.to.rgb=function(){var e=i(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},l.to.rgb.percent=function(){var e=i(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+n+"%, "+r+"%)":"rgba("+t+"%, "+n+"%, "+r+"%, "+e[3]+")"},l.to.hsl=function(){var e=i(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},l.to.hwb=function(){var e=i(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},l.to.keyword=function(e){return o[e.slice(0,3)]}},70465:function(e,t,n){const r=n(43269),i=n(99047),a=["keyword","gray","hex"],o={};for(const m of Object.keys(i))o[[...i[m].labels].sort().join("")]=m;const s={};function l(e,t){if(!(this instanceof l))return new l(e,t);if(t&&t in a&&(t=null),t&&!(t in i))throw new Error("Unknown model: "+t);let n,c;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof l)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if("string"===typeof e){const t=r.get(e);if(null===t)throw new Error("Unable to parse color from string: "+e);this.model=t.model,c=i[this.model].channels,this.color=t.value.slice(0,c),this.valpha="number"===typeof t.value[c]?t.value[c]:1}else if(e.length>0){this.model=t||"rgb",c=i[this.model].channels;const n=Array.prototype.slice.call(e,0,c);this.color=f(n,c),this.valpha="number"===typeof e[c]?e[c]:1}else if("number"===typeof e)this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;const t=Object.keys(e);"alpha"in e&&(t.splice(t.indexOf("alpha"),1),this.valpha="number"===typeof e.alpha?e.alpha:0);const r=t.sort().join("");if(!(r in o))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=o[r];const{labels:a}=i[this.model],s=[];for(n=0;n<a.length;n++)s.push(e[a[n]]);this.color=f(s)}if(s[this.model])for(c=i[this.model].channels,n=0;n<c;n++){const e=s[this.model][n];e&&(this.color[n]=e(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}l.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in r.to?this:this.rgb();t=t.round("number"===typeof e?e:1);const n=1===t.valpha?t.color:[...t.color,this.valpha];return r.to[t.model](n)},percentString(e){const t=this.rgb().round("number"===typeof e?e:1),n=1===t.valpha?t.color:[...t.color,this.valpha];return r.to.rgb.percent(n)},array(){return 1===this.valpha?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=i[this.model],{labels:n}=i[this.model];for(let r=0;r<t;r++)e[n[r]]=this.color[r];return 1!==this.valpha&&(e.alpha=this.valpha),e},unitArray(){const e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e},unitObject(){const e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new l([...this.color.map(u(e)),this.valpha],this.model)},alpha(e){return void 0!==e?new l([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:d("rgb",0,h(255)),green:d("rgb",1,h(255)),blue:d("rgb",2,h(255)),hue:d(["hsl","hsv","hsl","hwb","hcg"],0,e=>(e%360+360)%360),saturationl:d("hsl",1,h(100)),lightness:d("hsl",2,h(100)),saturationv:d("hsv",1,h(100)),value:d("hsv",2,h(100)),chroma:d("hcg",1,h(100)),gray:d("hcg",2,h(100)),white:d("hwb",1,h(100)),wblack:d("hwb",2,h(100)),cyan:d("cmyk",0,h(100)),magenta:d("cmyk",1,h(100)),yellow:d("cmyk",2,h(100)),black:d("cmyk",3,h(100)),x:d("xyz",0,h(95.047)),y:d("xyz",1,h(100)),z:d("xyz",2,h(108.833)),l:d("lab",0,h(100)),a:d("lab",1),b:d("lab",2),keyword(e){return void 0!==e?new l(e):i[this.model].keyword(this.color)},hex(e){return void 0!==e?new l(e):r.to.hex(this.rgb().round().color)},hexa(e){if(void 0!==e)return new l(e);const t=this.rgb().round().color;let n=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===n.length&&(n="0"+n),r.to.hex(t)+n},rgbNumber(){const e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity(){const e=this.rgb().color,t=[];for(const[n,r]of e.entries()){const e=r/255;t[n]=e<=.04045?e/12.92:((e+.055)/1.055)**2.4}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color,t=(2126*e[0]+7152*e[1]+722*e[2])/1e4;return t<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return l.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const n=e.rgb(),r=this.rgb(),i=void 0===t?.5:t,a=2*i-1,o=n.alpha()-r.alpha(),s=((a*o===-1?a:(a+o)/(1+a*o))+1)/2,c=1-s;return l.rgb(s*n.red()+c*r.red(),s*n.green()+c*r.green(),s*n.blue()+c*r.blue(),n.alpha()*i+r.alpha()*(1-i))}};for(const m of Object.keys(i)){if(a.includes(m))continue;const{channels:e}=i[m];l.prototype[m]=function(...e){return this.model===m?new l(this):e.length>0?new l(e,m):new l([...p(i[this.model][m].raw(this.color)),this.valpha],m)},l[m]=function(...t){let n=t[0];return"number"===typeof n&&(n=f(t,e)),new l(n,m)}}function c(e,t){return Number(e.toFixed(t))}function u(e){return function(t){return c(t,e)}}function d(e,t,n){e=Array.isArray(e)?e:[e];for(const r of e)(s[r]||(s[r]=[]))[t]=n;return e=e[0],function(r){let i;return void 0!==r?(n&&(r=n(r)),i=this[e](),i.color[t]=r,i):(i=this[e]().color[t],n&&(i=n(i)),i)}}function h(e){return function(t){return Math.max(0,Math.min(e,t))}}function p(e){return Array.isArray(e)?e:[e]}function f(e,t){for(let n=0;n<t;n++)"number"!==typeof e[n]&&(e[n]=0);return e}e.exports=l},4364:function(e,t,n){var r=n(49208),i=n(26093);function a(){return(new Date).getTime()}var o,s=Array.prototype.slice,l={};o="undefined"!==typeof n.g&&n.g.console?n.g.console:"undefined"!==typeof window&&window.console?window.console:{};for(var c=[[f,"log"],[m,"info"],[g,"warn"],[v,"error"],[b,"time"],[y,"timeEnd"],[_,"trace"],[w,"dir"],[E,"assert"]],u=0;u<c.length;u++){var d=c[u],h=d[0],p=d[1];o[p]||(o[p]=h)}function f(){}function m(){o.log.apply(o,arguments)}function g(){o.log.apply(o,arguments)}function v(){o.warn.apply(o,arguments)}function b(e){l[e]=a()}function y(e){var t=l[e];if(!t)throw new Error("No such label: "+e);delete l[e];var n=a()-t;o.log(e+": "+n+"ms")}function _(){var e=new Error;e.name="Trace",e.message=r.format.apply(null,arguments),o.error(e.stack)}function w(e){o.log(r.inspect(e)+"\n")}function E(e){if(!e){var t=s.call(arguments,1);i.ok(!1,r.format.apply(null,t))}}e.exports=o},3369:function(e,t){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.isValidCron=void 0;var r=function(e){return/^\d+$/.test(e)?Number(e):NaN},i=function(e){return"*"===e},a=function(e){return"?"===e},o=function(e,t,n){return e>=t&&e<=n},s=function(e,t,n){var a=e.split("-");switch(a.length){case 1:return i(e)||o(r(e),t,n);case 2:var s=a.map(function(e){return r(e)}),l=s[0],c=s[1];return l<=c&&o(l,t,n)&&o(c,t,n);default:return!1}},l=function(e){return void 0===e||-1===e.search(/[^\d]/)&&r(e)>0},c=function(e,t,n){if(-1!==e.search(/[^\d-,\/*]/))return!1;var r=e.split(",");return r.every(function(e){var r=e.split("/");if(e.trim().endsWith("/"))return!1;if(r.length>2)return!1;var i=r[0],a=r[1];return s(i,t,n)&&l(a)})},u=function(e){return c(e,0,59)},d=function(e){return c(e,0,59)},h=function(e){return c(e,0,23)},p=function(e,t){return t&&a(e)||c(e,1,31)},f={jan:"1",feb:"2",mar:"3",apr:"4",may:"5",jun:"6",jul:"7",aug:"8",sep:"9",oct:"10",nov:"11",dec:"12"},m=function(e,t){if(-1!==e.search(/\/[a-zA-Z]/))return!1;if(t){var n=e.toLowerCase().replace(/[a-z]{3}/g,function(e){return void 0===f[e]?e:f[e]});return c(n,1,12)}return c(e,1,12)},g={sun:"0",mon:"1",tue:"2",wed:"3",thu:"4",fri:"5",sat:"6"},v=function(e,t){var n=t.allowBlankDay,i=t.alias,s=t.allowSevenAsSunday,l=t.allowNthWeekdayOfMonth;if(n&&a(e))return!0;if(!n&&a(e))return!1;if(-1!==e.search(/\/[a-zA-Z]/))return!1;var u=i?e.toLowerCase().replace(/[a-z]{3}/g,function(e){return void 0===g[e]?e:g[e]}):e,d=s?7:6,h=u.split("#");if(l&&h.length>=2){var p=h[0],f=h[1],m=h.slice(2);return 0===m.length&&(o(r(f),1,5)&&o(r(p),0,d))}return c(u,0,d)},b=function(e,t,n){return!(n&&a(e)&&a(t))},y=function(e){return e.trim().split(/\s+/)},_={alias:!1,seconds:!1,allowBlankDay:!1,allowSevenAsSunday:!1,allowNthWeekdayOfMonth:!1};t.isValidCron=function(e,t){var r=n(n({},_),t),i=y(e);if(i.length>(r.seconds?6:5)||i.length<5)return!1;var a=[];if(6===i.length){var o=i.shift();o&&a.push(u(o))}var s=i[0],l=i[1],c=i[2],f=i[3],g=i[4];return a.push(d(s)),a.push(h(l)),a.push(p(c,r.allowBlankDay)),a.push(m(f,r.alias)),a.push(v(g,r)),a.push(b(c,g,r.allowBlankDay)),a.every(Boolean)}},37021:function(e,t,n){var r=n(4364);(function(t,n){e.exports=n()})(globalThis,()=>(()=>{"use strict";var e={949:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CronParser=void 0;var r=n(515),i=function(){function e(e,t,n){void 0===t&&(t=!0),void 0===n&&(n=!1),this.expression=e,this.dayOfWeekStartIndexZero=t,this.monthStartIndexZero=n}return e.prototype.parse=function(){var e,t,n=null!==(e=this.expression)&&void 0!==e?e:"";if(n.startsWith("@")){var r=this.parseSpecial(this.expression);t=this.extractParts(r)}else t=this.extractParts(this.expression);return this.normalize(t),this.validate(t),t},e.prototype.parseSpecial=function(e){var t={"@yearly":"0 0 1 1 *","@annually":"0 0 1 1 *","@monthly":"0 0 1 * *","@weekly":"0 0 * * 0","@daily":"0 0 * * *","@midnight":"0 0 * * *","@hourly":"0 * * * *"},n=t[e];if(!n)throw new Error("Unknown special expression.");return n},e.prototype.extractParts=function(e){if(!this.expression)throw new Error("cron expression is empty");for(var t=e.trim().split(/[ ]+/),n=0;n<t.length;n++)if(t[n].includes(",")){var r=t[n].split(",").map(function(e){return e.trim()}).filter(function(e){return""!==e}).map(function(e){return isNaN(Number(e))?e:Number(e)}).filter(function(e){return null!==e&&""!==e});0===r.length&&r.push("*"),r.sort(function(e,t){return null!==e&&null!==t?e-t:0}),t[n]=r.map(function(e){return null!==e?e.toString():""}).join(",")}if(t.length<5)throw new Error("Expression has only ".concat(t.length," part").concat(1==t.length?"":"s",". At least 5 parts are required."));if(5==t.length)t.unshift(""),t.push("");else if(6==t.length){var i=/\d{4}$/.test(t[5])||"?"==t[4]||"?"==t[2];i?t.unshift(""):t.push("")}else if(t.length>7)throw new Error("Expression has ".concat(t.length," parts; too many!"));return t},e.prototype.normalize=function(e){var t=this;if(e[3]=e[3].replace("?","*"),e[5]=e[5].replace("?","*"),e[2]=e[2].replace("?","*"),0==e[0].indexOf("0/")&&(e[0]=e[0].replace("0/","*/")),0==e[1].indexOf("0/")&&(e[1]=e[1].replace("0/","*/")),0==e[2].indexOf("0/")&&(e[2]=e[2].replace("0/","*/")),0==e[3].indexOf("1/")&&(e[3]=e[3].replace("1/","*/")),0==e[4].indexOf("1/")&&(e[4]=e[4].replace("1/","*/")),0==e[6].indexOf("1/")&&(e[6]=e[6].replace("1/","*/")),e[5]=e[5].replace(/(^\d)|([^#/\s]\d)/g,function(e){var n=e.replace(/\D/,""),r=n;return t.dayOfWeekStartIndexZero?"7"==n&&(r="0"):r=(parseInt(n)-1).toString(),e.replace(n,r)}),"L"==e[5]&&(e[5]="6"),"?"==e[3]&&(e[3]="*"),e[3].indexOf("W")>-1&&(e[3].indexOf(",")>-1||e[3].indexOf("-")>-1))throw new Error("The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.");var n={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var r in n)e[5]=e[5].replace(new RegExp(r,"gi"),n[r].toString());e[4]=e[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,function(e){var n=e.replace(/\D/,""),r=n;return t.monthStartIndexZero&&(r=(parseInt(n)+1).toString()),e.replace(n,r)});var i={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12};for(var a in i)e[4]=e[4].replace(new RegExp(a,"gi"),i[a].toString());"0"==e[0]&&(e[0]=""),/\*|\-|\,|\//.test(e[2])||!/\*|\//.test(e[1])&&!/\*|\//.test(e[0])||(e[2]+="-".concat(e[2]));for(var o=0;o<e.length;o++)if(-1!=e[o].indexOf(",")&&(e[o]=e[o].split(",").filter(function(e){return""!==e}).join(",")||"*"),"*/1"==e[o]&&(e[o]="*"),e[o].indexOf("/")>-1&&!/^\*|\-|\,/.test(e[o])){var s=null;switch(o){case 4:s="12";break;case 5:s="6";break;case 6:s="9999";break;default:s=null;break}if(null!==s){var l=e[o].split("/");e[o]="".concat(l[0],"-").concat(s,"/").concat(l[1])}}},e.prototype.validate=function(e){var t="0-9,\\-*/";this.validateOnlyExpectedCharactersFound(e[0],t),this.validateOnlyExpectedCharactersFound(e[1],t),this.validateOnlyExpectedCharactersFound(e[2],t),this.validateOnlyExpectedCharactersFound(e[3],"0-9,\\-*/LW"),this.validateOnlyExpectedCharactersFound(e[4],t),this.validateOnlyExpectedCharactersFound(e[5],"0-9,\\-*/L#"),this.validateOnlyExpectedCharactersFound(e[6],t),this.validateAnyRanges(e)},e.prototype.validateAnyRanges=function(e){r.default.secondRange(e[0]),r.default.minuteRange(e[1]),r.default.hourRange(e[2]),r.default.dayOfMonthRange(e[3]),r.default.monthRange(e[4],this.monthStartIndexZero),r.default.dayOfWeekRange(e[5],this.dayOfWeekStartIndexZero)},e.prototype.validateOnlyExpectedCharactersFound=function(e,t){var n=e.match(new RegExp("[^".concat(t,"]+"),"gi"));if(n&&n.length)throw new Error("Expression contains invalid values: '".concat(n.toString(),"'"))},e}();t.CronParser=i},333:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExpressionDescriptor=void 0;var i=n(823),a=n(949),o=function(){function e(t,n){if(this.expression=t,this.options=n,this.expressionParts=new Array(5),!this.options.locale&&e.defaultLocale&&(this.options.locale=e.defaultLocale),!e.locales[this.options.locale]){var i=Object.keys(e.locales)[0];r.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(i,"'.")),this.options.locale=i}this.i18n=e.locales[this.options.locale],void 0===n.use24HourTimeFormat&&(n.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return e.toString=function(t,n){var i=void 0===n?{}:n,a=i.throwExceptionOnParseError,o=void 0===a||a,s=i.verbose,l=void 0!==s&&s,c=i.dayOfWeekStartIndexZero,u=void 0===c||c,d=i.monthStartIndexZero,h=void 0!==d&&d,p=i.use24HourTimeFormat,f=i.locale,m=void 0===f?null:f,g=i.tzOffset,v=void 0===g?0:g,b={throwExceptionOnParseError:o,verbose:l,dayOfWeekStartIndexZero:u,monthStartIndexZero:h,use24HourTimeFormat:p,locale:m,tzOffset:v};b.tzOffset&&r.warn("'tzOffset' option has been deprecated and will be removed in a future release.");var y=new e(t,b);return y.getFullDescription()},e.initialize=function(t,n){void 0===n&&(n="en"),e.specialCharacters=["/","-",",","*"],e.defaultLocale=n,t.load(e.locales)},e.prototype.getFullDescription=function(){var e="";try{var t=new a.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);this.expressionParts=t.parse();var n=this.getTimeOfDayDescription(),r=this.getDayOfMonthDescription(),i=this.getMonthDescription(),o=this.getDayOfWeekDescription(),s=this.getYearDescription();e+=n+r+o+i+s,e=this.transformVerbosity(e,!!this.options.verbose),e=e.charAt(0).toLocaleUpperCase()+e.substr(1)}catch(l){if(this.options.throwExceptionOnParseError)throw"".concat(l);e=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD()}return e},e.prototype.getTimeOfDayDescription=function(){var t=this.expressionParts[0],n=this.expressionParts[1],r=this.expressionParts[2],a="";if(i.StringUtilities.containsAny(n,e.specialCharacters)||i.StringUtilities.containsAny(r,e.specialCharacters)||i.StringUtilities.containsAny(t,e.specialCharacters))if(t||!(n.indexOf("-")>-1)||n.indexOf(",")>-1||n.indexOf("/")>-1||i.StringUtilities.containsAny(r,e.specialCharacters))if(!t&&r.indexOf(",")>-1&&-1==r.indexOf("-")&&-1==r.indexOf("/")&&!i.StringUtilities.containsAny(n,e.specialCharacters)){var o=r.split(",");a+=this.i18n.at();for(var s=0;s<o.length;s++)a+=" ",a+=this.formatTime(o[s],n,""),s<o.length-2&&(a+=","),s==o.length-2&&(a+=this.i18n.spaceAnd())}else{var l=this.getSecondsDescription(),c=this.getMinutesDescription(),u=this.getHoursDescription();if(a+=l,a&&c&&(a+=", "),a+=c,c===u)return a;a&&u&&(a+=", "),a+=u}else{var d=n.split("-");a+=i.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(r,d[0],""),this.formatTime(r,d[1],""))}else a+=this.i18n.atSpace()+this.formatTime(r,n,t);return a},e.prototype.getSecondsDescription=function(){var e=this,t=this.getSegmentDescription(this.expressionParts[0],this.i18n.everySecond(),function(e){return e},function(t){return i.StringUtilities.format(e.i18n.everyX0Seconds(t),t)},function(t){return e.i18n.secondsX0ThroughX1PastTheMinute()},function(t){return"0"==t?"":parseInt(t)<20?e.i18n.atX0SecondsPastTheMinute(t):e.i18n.atX0SecondsPastTheMinuteGt20()||e.i18n.atX0SecondsPastTheMinute(t)});return t},e.prototype.getMinutesDescription=function(){var e=this,t=this.expressionParts[0],n=this.expressionParts[2],r=this.getSegmentDescription(this.expressionParts[1],this.i18n.everyMinute(),function(e){return e},function(t){return i.StringUtilities.format(e.i18n.everyX0Minutes(t),t)},function(t){return e.i18n.minutesX0ThroughX1PastTheHour()},function(r){try{return"0"==r&&-1==n.indexOf("/")&&""==t?e.i18n.everyHour():parseInt(r)<20?e.i18n.atX0MinutesPastTheHour(r):e.i18n.atX0MinutesPastTheHourGt20()||e.i18n.atX0MinutesPastTheHour(r)}catch(i){return e.i18n.atX0MinutesPastTheHour(r)}});return r},e.prototype.getHoursDescription=function(){var e=this,t=this.expressionParts[2],n=0,r=[];t.split("/")[0].split(",").forEach(function(e){var t=e.split("-");2===t.length&&r.push({value:t[1],index:n+1}),n+=t.length});var a=0,o=this.getSegmentDescription(t,this.i18n.everyHour(),function(t){var n=r.find(function(e){return e.value===t&&e.index===a}),i=n&&"0"!==e.expressionParts[1];return a++,i?e.formatTime(t,"59",""):e.formatTime(t,"0","")},function(t){return i.StringUtilities.format(e.i18n.everyX0Hours(t),t)},function(t){return e.i18n.betweenX0AndX1()},function(t){return e.i18n.atX0()});return o},e.prototype.getDayOfWeekDescription=function(){var e=this,t=this.i18n.daysOfTheWeek(),n=null;return n="*"==this.expressionParts[5]?"":this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),function(n,r){var i=n;n.indexOf("#")>-1?i=n.substring(0,n.indexOf("#")):n.indexOf("L")>-1&&(i=i.replace("L",""));var a=parseInt(i);if(e.options.tzOffset){var o=e.expressionParts[2],s=parseInt(o)+(e.options.tzOffset?e.options.tzOffset:0);s>=24?a++:s<0&&a--,a>6?a=0:a<0&&(a=6)}var l=e.i18n.daysOfTheWeekInCase?e.i18n.daysOfTheWeekInCase(r)[a]:t[a];if(n.indexOf("#")>-1){var c=null,u=n.substring(n.indexOf("#")+1),d=n.substring(0,n.indexOf("#"));switch(u){case"1":c=e.i18n.first(d);break;case"2":c=e.i18n.second(d);break;case"3":c=e.i18n.third(d);break;case"4":c=e.i18n.fourth(d);break;case"5":c=e.i18n.fifth(d);break}l=c+" "+l}return l},function(t){return 1==parseInt(t)?"":i.StringUtilities.format(e.i18n.commaEveryX0DaysOfTheWeek(t),t)},function(t){var n=t.substring(0,t.indexOf("-")),r="*"!=e.expressionParts[3];return r?e.i18n.commaAndX0ThroughX1(n):e.i18n.commaX0ThroughX1(n)},function(t){var n=null;if(t.indexOf("#")>-1){var r=t.substring(t.indexOf("#")+1),i=t.substring(0,t.indexOf("#"));n=e.i18n.commaOnThe(r,i).trim()+e.i18n.spaceX0OfTheMonth()}else if(t.indexOf("L")>-1)n=e.i18n.commaOnTheLastX0OfTheMonth(t.replace("L",""));else{var a="*"!=e.expressionParts[3];n=a?e.i18n.commaAndOnX0():e.i18n.commaOnlyOnX0(t)}return n}),n},e.prototype.getMonthDescription=function(){var e=this,t=this.i18n.monthsOfTheYear(),n=this.getSegmentDescription(this.expressionParts[4],"",function(n,r){return r&&e.i18n.monthsOfTheYearInCase?e.i18n.monthsOfTheYearInCase(r)[parseInt(n)-1]:t[parseInt(n)-1]},function(t){return 1==parseInt(t)?"":i.StringUtilities.format(e.i18n.commaEveryX0Months(t),t)},function(t){return e.i18n.commaMonthX0ThroughMonthX1()||e.i18n.commaX0ThroughX1()},function(t){return e.i18n.commaOnlyInMonthX0?e.i18n.commaOnlyInMonthX0():e.i18n.commaOnlyInX0()});return n},e.prototype.getDayOfMonthDescription=function(){var e=this,t=null,n=this.expressionParts[3];switch(n){case"L":t=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":t=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var r=n.match(/(\d{1,2}W)|(W\d{1,2})/);if(r){var a=parseInt(r[0].replace("W","")),o=1==a?this.i18n.firstWeekday():i.StringUtilities.format(this.i18n.weekdayNearestDayX0(),a.toString());t=i.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),o);break}var s=n.match(/L-(\d{1,2})/);if(s){var l=s[1];t=i.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(l),l);break}if("*"==n&&"*"!=this.expressionParts[5])return"";t=this.getSegmentDescription(n,this.i18n.commaEveryDay(),function(t){return"L"==t?e.i18n.lastDay():e.i18n.dayX0?i.StringUtilities.format(e.i18n.dayX0(),t):t},function(t){return"1"==t?e.i18n.commaEveryDay():e.i18n.commaEveryX0Days(t)},function(t){return e.i18n.commaBetweenDayX0AndX1OfTheMonth(t)},function(t){return e.i18n.commaOnDayX0OfTheMonth(t)});break}return t},e.prototype.getYearDescription=function(){var e=this,t=this.getSegmentDescription(this.expressionParts[6],"",function(e){return/^\d+$/.test(e)?new Date(parseInt(e),1).getFullYear().toString():e},function(t){return i.StringUtilities.format(e.i18n.commaEveryX0Years(t),t)},function(t){return e.i18n.commaYearX0ThroughYearX1()||e.i18n.commaX0ThroughX1()},function(t){return e.i18n.commaOnlyInYearX0?e.i18n.commaOnlyInYearX0():e.i18n.commaOnlyInX0()});return t},e.prototype.getSegmentDescription=function(e,t,n,r,a,o){var s=null,l=e.indexOf("/")>-1,c=e.indexOf("-")>-1,u=e.indexOf(",")>-1;if(e)if("*"===e)s=t;else if(l||c||u)if(u){for(var d=e.split(","),h="",p=0;p<d.length;p++)if(p>0&&d.length>2&&(h+=",",p<d.length-1&&(h+=" ")),p>0&&d.length>1&&(p==d.length-1||2==d.length)&&(h+="".concat(this.i18n.spaceAnd()," ")),d[p].indexOf("/")>-1||d[p].indexOf("-")>-1){var f=d[p].indexOf("-")>-1&&-1==d[p].indexOf("/"),m=this.getSegmentDescription(d[p],t,n,r,f?this.i18n.commaX0ThroughX1:a,o);f&&(m=m.replace(", ","")),h+=m}else h+=l?this.getSegmentDescription(d[p],t,n,r,a,o):n(d[p]);s=l?h:i.StringUtilities.format(o(e),h)}else if(l){d=e.split("/");if(s=i.StringUtilities.format(r(d[1]),d[1]),d[0].indexOf("-")>-1){var g=this.generateRangeSegmentDescription(d[0],a,n);0!=g.indexOf(", ")&&(s+=", "),s+=g}else if(-1==d[0].indexOf("*")){var v=i.StringUtilities.format(o(d[0]),n(d[0]));v=v.replace(", ",""),s+=i.StringUtilities.format(this.i18n.commaStartingX0(),v)}}else c&&(s=this.generateRangeSegmentDescription(e,a,n));else s=i.StringUtilities.format(o(e),n(e));else s="";return s},e.prototype.generateRangeSegmentDescription=function(e,t,n){var r="",a=e.split("-"),o=n(a[0],1),s=n(a[1],2),l=t(e);return r+=i.StringUtilities.format(l,o,s),r},e.prototype.formatTime=function(e,t,n){var r=0,i=0;this.options.tzOffset&&(r=this.options.tzOffset>0?Math.floor(this.options.tzOffset):Math.ceil(this.options.tzOffset),i=parseFloat((this.options.tzOffset%1).toFixed(2)),0!=i&&(i*=60));var a=parseInt(e)+r,o=parseInt(t)+i;o>=60?(o-=60,a+=1):o<0&&(o+=60,a-=1),a>=24?a-=24:a<0&&(a=24+a);var s="",l=!1;this.options.use24HourTimeFormat||(l=!(!this.i18n.setPeriodBeforeTime||!this.i18n.setPeriodBeforeTime()),s=l?"".concat(this.getPeriod(a)," "):" ".concat(this.getPeriod(a)),a>12&&(a-=12),0===a&&(a=12));var c="";return n&&(c=":".concat(("00"+n).substring(n.length))),"".concat(l?s:"").concat(("00"+a.toString()).substring(a.toString().length),":").concat(("00"+o.toString()).substring(o.toString().length)).concat(c).concat(l?"":s)},e.prototype.transformVerbosity=function(e,t){if(!t&&(e=e.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),""),e=e.replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),""),e=e.replace(new RegExp(this.i18n.commaEveryDay(),"g"),""),e=e.replace(/\, ?$/,""),this.i18n.conciseVerbosityReplacements))for(var n=0,r=Object.entries(this.i18n.conciseVerbosityReplacements());n<r.length;n++){var i=r[n],a=i[0],o=i[1];e=e.replace(new RegExp(a,"g"),o)}return e},e.prototype.getPeriod=function(e){return e>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},e.locales={},e}();t.ExpressionDescriptor=o},747:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.enLocaleLoader=void 0;var r=n(486),i=function(){function e(){}return e.prototype.load=function(e){e["en"]=new r.en},e}();t.enLocaleLoader=i},486:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.en=void 0;var n=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!1},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occurred when generating the expression description. Check the cron expression syntax."},e.prototype.everyMinute=function(){return"every minute"},e.prototype.everyHour=function(){return"every hour"},e.prototype.atSpace=function(){return"At "},e.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},e.prototype.at=function(){return"At"},e.prototype.spaceAnd=function(){return" and"},e.prototype.everySecond=function(){return"every second"},e.prototype.everyX0Seconds=function(){return"every %s seconds"},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},e.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},e.prototype.everyX0Minutes=function(){return"every %s minutes"},e.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},e.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},e.prototype.everyX0Hours=function(){return"every %s hours"},e.prototype.betweenX0AndX1=function(){return"between %s and %s"},e.prototype.atX0=function(){return"at %s"},e.prototype.commaEveryDay=function(){return", every day"},e.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},e.prototype.commaX0ThroughX1=function(){return", %s through %s"},e.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},e.prototype.first=function(){return"first"},e.prototype.second=function(){return"second"},e.prototype.third=function(){return"third"},e.prototype.fourth=function(){return"fourth"},e.prototype.fifth=function(){return"fifth"},e.prototype.commaOnThe=function(){return", on the "},e.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},e.prototype.lastDay=function(){return"the last day"},e.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},e.prototype.commaOnlyOnX0=function(){return", only on %s"},e.prototype.commaAndOnX0=function(){return", and on %s"},e.prototype.commaEveryX0Months=function(){return", every %s months"},e.prototype.commaOnlyInX0=function(){return", only in %s"},e.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},e.prototype.firstWeekday=function(){return"first weekday"},e.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},e.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},e.prototype.commaEveryX0Days=function(){return", every %s days"},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},e.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},e.prototype.commaEveryHour=function(){return", every hour"},e.prototype.commaEveryX0Years=function(){return", every %s years"},e.prototype.commaStartingX0=function(){return", starting %s"},e.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},e.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},e}();t.en=n},515:(e,t)=>{function n(e,t){if(!e)throw new Error(t)}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.secondRange=function(e){for(var t=e.split(","),r=0;r<t.length;r++)if(!isNaN(parseInt(t[r],10))){var i=parseInt(t[r],10);n(i>=0&&i<=59,"seconds part must be >= 0 and <= 59")}},e.minuteRange=function(e){for(var t=e.split(","),r=0;r<t.length;r++)if(!isNaN(parseInt(t[r],10))){var i=parseInt(t[r],10);n(i>=0&&i<=59,"minutes part must be >= 0 and <= 59")}},e.hourRange=function(e){for(var t=e.split(","),r=0;r<t.length;r++)if(!isNaN(parseInt(t[r],10))){var i=parseInt(t[r],10);n(i>=0&&i<=23,"hours part must be >= 0 and <= 23")}},e.dayOfMonthRange=function(e){for(var t=e.split(","),r=0;r<t.length;r++)if(!isNaN(parseInt(t[r],10))){var i=parseInt(t[r],10);n(i>=1&&i<=31,"DOM part must be >= 1 and <= 31")}},e.monthRange=function(e,t){for(var r=e.split(","),i=0;i<r.length;i++)if(!isNaN(parseInt(r[i],10))){var a=parseInt(r[i],10);n(a>=1&&a<=12,t?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},e.dayOfWeekRange=function(e,t){for(var r=e.split(","),i=0;i<r.length;i++)if(!isNaN(parseInt(r[i],10))){var a=parseInt(r[i],10);n(a>=0&&a<=6,t?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},e}();t["default"]=r},823:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StringUtilities=void 0;var n=function(){function e(){}return e.format=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return e.replace(/%s/g,function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return t.shift()})},e.containsAny=function(e,t){return t.some(function(t){return e.indexOf(t)>-1})},e}();t.StringUtilities=n}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}var i={};return(()=>{var e=i;Object.defineProperty(e,"__esModule",{value:!0}),e.toString=void 0;var t=n(333),r=n(747);t.ExpressionDescriptor.initialize(new r.enLocaleLoader),e["default"]=t.ExpressionDescriptor;var a=t.ExpressionDescriptor.toString;e.toString=a})(),i})())},11748:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".validation-message{padding:5px;position:absolute;bottom:-35px}",""]),t["default"]=s},28913:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,"#__layout,#__nuxt,#app,.vm-console,.vm-console>DIV,.vm-console>DIV>DIV,BODY,HTML,MAIN{height:100%}",""]),t["default"]=s},8199:function(e,t,n){"use strict";var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,'.d2h-wrapper{text-align:left}.d2h-file-header{background-color:#f7f7f7;border-bottom:1px solid #d8d8d8;display:flex;font-family:Source Sans Pro,Helvetica Neue,Helvetica,Arial,sans-serif;height:35px;padding:5px 10px}.d2h-file-header.d2h-sticky-header{position:sticky;top:0;z-index:1}.d2h-file-stats{display:flex;font-size:14px;margin-left:auto}.d2h-lines-added{border:1px solid #b4e2b4;border-radius:5px 0 0 5px;color:#399839;padding:2px;text-align:right;vertical-align:middle}.d2h-lines-deleted{border:1px solid #e9aeae;border-radius:0 5px 5px 0;color:#c33;margin-left:1px;padding:2px;text-align:left;vertical-align:middle}.d2h-file-name-wrapper{align-items:center;display:flex;font-size:15px;width:100%}.d2h-file-name{overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap}.d2h-file-wrapper{margin-bottom:1em}.d2h-file-collapse,.d2h-file-wrapper{border:1px solid #ddd;border-radius:3px}.d2h-file-collapse{-webkit-box-pack:end;-ms-flex-pack:end;align-items:center;cursor:pointer;display:none;font-size:12px;justify-content:flex-end;padding:4px 8px}.d2h-file-collapse.d2h-selected{background-color:#c8e1ff}.d2h-file-collapse-input{margin:0 4px 0 0}.d2h-diff-table{border-collapse:collapse;font-family:Menlo,Consolas,monospace;font-size:13px;width:100%}.d2h-files-diff{display:flex;width:100%}.d2h-file-diff{overflow-y:hidden}.d2h-file-diff.d2h-d-none,.d2h-files-diff.d2h-d-none{display:none}.d2h-file-side-diff{display:inline-block;overflow-x:scroll;overflow-y:hidden;width:50%}.d2h-code-line{padding:0 8em}.d2h-code-line,.d2h-code-side-line{display:inline-block;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap;width:100%}.d2h-code-side-line{padding:0 4.5em}.d2h-code-line-ctn{word-wrap:normal;background:none;display:inline-block;padding:0;-webkit-user-select:text;-moz-user-select:text;user-select:text;vertical-align:middle;white-space:pre;width:100%}.d2h-code-line del,.d2h-code-side-line del{background-color:#ffb6ba}.d2h-code-line del,.d2h-code-line ins,.d2h-code-side-line del,.d2h-code-side-line ins{border-radius:.2em;display:inline-block;margin-top:-1px;text-decoration:none;vertical-align:middle}.d2h-code-line ins,.d2h-code-side-line ins{background-color:#97f295;text-align:left}.d2h-code-line-prefix{word-wrap:normal;background:none;display:inline;padding:0;white-space:pre}.line-num1{float:left}.line-num1,.line-num2{box-sizing:border-box;overflow:hidden;padding:0 .5em;text-overflow:ellipsis;width:3.5em}.line-num2{float:right}.d2h-code-linenumber{background-color:#fff;border:solid #eee;border-width:0 1px;box-sizing:border-box;color:rgba(0,0,0,.3);cursor:pointer;display:inline-block;position:absolute;text-align:right;width:7.5em}.d2h-code-linenumber:after{content:"\\200b"}.d2h-code-side-linenumber{background-color:#fff;border:solid #eee;border-width:0 1px;box-sizing:border-box;color:rgba(0,0,0,.3);cursor:pointer;display:inline-block;overflow:hidden;padding:0 .5em;position:absolute;text-align:right;text-overflow:ellipsis;width:4em}.d2h-code-side-linenumber:after{content:"\\200b"}.d2h-code-side-emptyplaceholder,.d2h-emptyplaceholder{background-color:#f1f1f1;border-color:#e1e1e1}.d2h-code-line-prefix,.d2h-code-linenumber,.d2h-code-side-linenumber,.d2h-emptyplaceholder{-webkit-user-select:none;-moz-user-select:none;user-select:none}.d2h-code-linenumber,.d2h-code-side-linenumber{direction:rtl}.d2h-del{background-color:#fee8e9;border-color:#e9aeae}.d2h-ins{background-color:#dfd;border-color:#b4e2b4}.d2h-info{background-color:#f8fafd;border-color:#d5e4f2;color:rgba(0,0,0,.3)}.d2h-file-diff .d2h-del.d2h-change{background-color:#fdf2d0}.d2h-file-diff .d2h-ins.d2h-change{background-color:#ded}.d2h-file-list-wrapper{margin-bottom:10px}.d2h-file-list-wrapper a{color:#3572b0;text-decoration:none}.d2h-file-list-wrapper a:visited{color:#3572b0}.d2h-file-list-header{text-align:left}.d2h-file-list-title{font-weight:700}.d2h-file-list-line{display:flex;text-align:left}.d2h-file-list{display:block;list-style:none;margin:0;padding:0}.d2h-file-list>li{border-bottom:1px solid #ddd;margin:0;padding:5px 10px}.d2h-file-list>li:last-child{border-bottom:none}.d2h-file-switch{cursor:pointer;display:none;font-size:10px}.d2h-icon{fill:currentColor;margin-right:10px;vertical-align:middle}.d2h-deleted{color:#c33}.d2h-added{color:#399839}.d2h-changed{color:#d0b44c}.d2h-moved{color:#3572b0}.d2h-tag{background-color:#fff;display:flex;font-size:10px;margin-left:5px;padding:0 2px}.d2h-deleted-tag{border:1px solid #c33}.d2h-added-tag{border:1px solid #399839}.d2h-changed-tag{border:1px solid #d0b44c}.d2h-moved-tag{border:1px solid #3572b0}',""]),t.A=s},96696:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".dropdown-button-group .no-left-border-radius{border-top-left-radius:0;border-bottom-left-radius:0}.dropdown-button-group .no-right-border-radius{border-top-right-radius:0;border-bottom-right-radius:0}.dropdown-button-group .btn{line-height:normal;border:0}.dropdown-button-group .btn-group-xs>.btn,.dropdown-button-group .btn-xs,.dropdown-button-group .btn-xs .btn-label{padding:2px 3px;font-size:13px}.dropdown-button-group .v-popper .text-right{margin-top:5px}.dropdown-button-group .v-popper .trigger{height:100%}.dropdown-button-group .v-popper .trigger .icon-container{height:100%;padding:10px 10px 10px 10px}.dropdown-button-group .v-popper .trigger .icon-container i{transform:scale(1)}.dropdown-button-group .v-popper .trigger .icon-container.btn-xs{padding:2px 4px 4px 4px}.dropdown-button-group .v-popper .trigger .icon-container.btn-sm{padding:10px 10px 10px 10px}.dropdown-button-group .v-popper .trigger .icon-container.btn-lg{padding:18px 10px 10px 10px}.dropdown-button-group .v-popper .trigger .icon-container:focus{outline-style:none;box-shadow:none;border-color:transparent}.dropdown-button-group .dropdown-button{background:var(--tooltip-bg);color:var(--link-text);padding:0;display:inline-flex}.dropdown-button-group .dropdown-button .wrapper-content button{border-right:0}.dropdown-button-group .dropdown-button .icon-chevron-down,.dropdown-button-group .dropdown-button>*{color:var(--primary);background-color:transparent}.dropdown-button-group .dropdown-button.bg-primary:hover{background:var(--accent-btn-hover)}.dropdown-button-group .dropdown-button.one-action{position:relative}.dropdown-button-group .dropdown-button.one-action>.btn{padding:15px 35px 15px 15px}.dropdown-button-group .dropdown-button.one-action .v-popper .trigger{position:absolute;top:0;right:0;left:0;bottom:0}.dropdown-button-group .dropdown-button.one-action .v-popper .trigger BUTTON{position:absolute;right:0}.dropdown-button-group .v-popper__popper{border:none;margin-top:0}.dropdown-button-group .v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-container{display:none}.dropdown-button-group .v-popper__popper .v-popper__inner{color:var(--dropdown-text);background-color:var(--dropdown-bg);border:1px solid var(--dropdown-border);padding:0;text-align:left}.dropdown-button-group .v-popper__popper .v-popper__inner LI{padding:10px}.dropdown-button-group .v-popper__popper .v-popper__inner LI.divider{padding-top:0;padding-bottom:0}.dropdown-button-group .v-popper__popper .v-popper__inner LI.divider>.divider-inner{padding:0;border-bottom:1px solid var(--dropdown-divider);width:125%;margin:0 auto}.dropdown-button-group .v-popper__popper .v-popper__inner LI:not(.divider):hover{background-color:var(--dropdown-hover-bg);color:var(--dropdown-hover-text);cursor:pointer}.dropdown-button-group .user-info{border-bottom:1px solid var(--border);display:block}",""]),t["default"]=s},36942:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".menu[data-v-375e9eb4],.root[data-v-375e9eb4]{position:absolute}.menu[data-v-375e9eb4]{visibility:hidden;top:0;left:0;z-index:56;min-width:145px;color:var(--dropdown-text);background-color:var(--dropdown-bg);border:1px solid var(--dropdown-border);border-radius:5px;box-shadow:0 5px 20px var(--shadow)}.menu LI[data-v-375e9eb4]{align-items:center;display:flex;padding:8px 10px;margin:0}.menu LI[data-v-375e9eb4]:focus-visible{outline:2px solid var(--primary-keyboard-focus);outline-offset:-2px}.menu LI[disabled][data-v-375e9eb4]{cursor:not-allowed!important;color:var(--disabled-text)}.menu LI.divider[data-v-375e9eb4]{padding:0;border-bottom:1px solid var(--dropdown-divider)}.menu LI[data-v-375e9eb4]:not(.divider):hover{background-color:var(--dropdown-hover-bg);color:var(--dropdown-hover-text);cursor:pointer}.menu LI .icon[data-v-375e9eb4]{display:unset;width:14px;text-align:center;margin-right:8px}.menu LI.no-actions[data-v-375e9eb4],.menu LI.no-actions[data-v-375e9eb4]:hover{color:var(--disabled-text)}.menu LI.no-actions[data-v-375e9eb4]:hover{background-color:initial;cursor:default}.background[data-v-375e9eb4]{position:fixed;top:0;left:0;right:0;bottom:0;opacity:0;z-index:55}",""]),t["default"]=s},88831:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".modal-overlay{position:absolute;top:0;left:0;width:100vw;height:100vh;background-color:var(--overlay-bg);display:flex;justify-content:center;align-items:center;z-index:53}.modal-overlay .modal-container{background-color:var(--modal-bg);border-radius:var(--border-radius);max-height:95vh;overflow:auto;border:2px solid var(--modal-border)}.modal-fade-enter-active,.modal-fade-leave-active{transition:opacity .2s}.modal-fade-enter,.modal-fade-leave-to{opacity:0}",""]),t["default"]=s},49082:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".manual-refresh i[data-v-21c97bb9]{margin:0 0 0 8px!important;font-size:1rem!important}",""]),t["default"]=s},60168:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".banner-graphic-area[data-v-444cefe6]{position:relative}.banner-graphic-area .graphic[data-v-444cefe6]{display:flex;flex-direction:column;overflow:hidden}.banner-graphic-area .graphic>img.banner[data-v-444cefe6]{flex:1;-o-object-fit:cover;object-fit:cover}.banner-graphic-area .title[data-v-444cefe6]{display:flex;align-items:center;position:absolute;text-align:center;top:0;height:100%;width:100%}.banner-graphic-area.banner-text-center .title[data-v-444cefe6]{justify-content:center;margin-top:-20px}.banner-graphic-area.banner-text-left .title[data-v-444cefe6]{justify-content:left;padding-left:20px}.banner-graphic-height[data-v-444cefe6]{height:var(--banner-graphic-height,200px)}",""]),t["default"]=s},31354:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".button-dropdown.btn-sm[data-v-2ab9ff7a] >.vs__dropdown-toggle .vs__actions:after{font-size:1.6rem}.button-dropdown.btn-lg[data-v-2ab9ff7a] >.vs__dropdown-toggle .vs__actions:after{font-size:2.6rem}.button-dropdown[data-v-2ab9ff7a]{background:var(--accent-btn);border:solid 1px var(--link);color:var(--link);padding:0}.button-dropdown.vs--open[data-v-2ab9ff7a] {outline:none;box-shadow:none}.button-dropdown[data-v-2ab9ff7a]:hover .vs__dropdown-toggle .vs__actions,.button-dropdown[data-v-2ab9ff7a]:hover .vs__selected-options{background:var(--accent-btn-hover)}.button-dropdown[data-v-2ab9ff7a]:hover .vs__selected-options .vs__selected button{background-color:transparent;color:var(--accent-btn-hover-text)}.button-dropdown[data-v-2ab9ff7a]:hover .vs__dropdown-toggle .vs__actions:after{color:var(--accent-btn-hover-text)}.button-dropdown[data-v-2ab9ff7a] >.vs__dropdown-toggle{width:100%;display:grid;grid-template-columns:75% 25%;border:none;background:transparent}.button-dropdown[data-v-2ab9ff7a] >.vs__dropdown-toggle .vs__actions:after{color:var(--link);line-height:1}.button-dropdown[data-v-2ab9ff7a] .vs__selected-options .vs__selected{margin:unset;border:none}.button-dropdown[data-v-2ab9ff7a] .vs__selected-options .vs__selected button{border:none;background:transparent;color:var(--link)}.button-dropdown[data-v-2ab9ff7a] .vs__selected-options .vs__search{position:absolute;opacity:0;padding:0}.button-dropdown[data-v-2ab9ff7a] .vs__dropdown-menu{min-width:unset;width:-moz-fit-content;width:fit-content}",""]),t["default"]=s},53184:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".borderless[data-v-a3361b40]{background-color:transparent;border:none}.borderless[data-v-a3361b40]:focus-visible{outline:2px solid var(--primary-keyboard-focus);outline-offset:-2px}.borderless[data-v-a3361b40]:focus,.borderless[data-v-a3361b40]:hover{background-color:var(--accent-btn);box-shadow:none}",""]),t["default"]=s},86379:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,'.code-mirror.code-mirror-container:focus-visible{outline:2px solid var(--primary-keyboard-focus)}.code-mirror.as-text-area .codemirror-container{min-height:40px;position:relative;display:block;box-sizing:border-box;width:100%;padding:10px;background-color:var(--input-bg);border-radius:var(--border-radius);border:solid var(--border-width) var(--input-border);color:var(--input-text)}.code-mirror.as-text-area .codemirror-container:hover{border-color:var(--input-hover-border)}.code-mirror.as-text-area .codemirror-container.focus,.code-mirror.as-text-area .codemirror-container:focus{outline:none;border-color:var(--primary-border)}.code-mirror.as-text-area .codemirror-container .CodeMirror-code .CodeMirror-line .cm-markdown-single-trailing-space-even:before,.code-mirror.as-text-area .codemirror-container .CodeMirror-code .CodeMirror-line .cm-markdown-single-trailing-space-odd:before,.code-mirror.as-text-area .codemirror-container .CodeMirror-code .CodeMirror-line:not(:last-child)>span:after{color:var(--muted);position:absolute;line-height:20px;pointer-events:none}.code-mirror.as-text-area .codemirror-container .CodeMirror-code .CodeMirror-line:not(:last-child)>span:after{content:"↵";margin-left:2px}.code-mirror.as-text-area .codemirror-container .CodeMirror-code .CodeMirror-line .cm-markdown-single-trailing-space-even:before,.code-mirror.as-text-area .codemirror-container .CodeMirror-code .CodeMirror-line .cm-markdown-single-trailing-space-odd:before{font-weight:700;content:"·"}.code-mirror.as-text-area .codemirror-container .CodeMirror-lines{color:var(--input-text);padding:0}.code-mirror.as-text-area .codemirror-container .CodeMirror-lines .CodeMirror-line>span>span.cm-overlay{font-family:monospace}.code-mirror.as-text-area .codemirror-container .CodeMirror-lines .CodeMirror-line>span{font-family:Lato,arial,helvetica,sans-serif}.code-mirror.as-text-area .codemirror-container .CodeMirror-sizer{min-height:20px}.code-mirror.as-text-area .codemirror-container .CodeMirror-selected{background-color:var(--primary)!important}.code-mirror.as-text-area .codemirror-container .CodeMirror-selectedtext{color:var(--primary-text)}.code-mirror.as-text-area .codemirror-container .CodeMirror-line::selection,.code-mirror.as-text-area .codemirror-container .CodeMirror-line>span::selection,.code-mirror.as-text-area .codemirror-container .CodeMirror-line>span>span::selection{color:var(--primary-text);background-color:var(--primary)}.code-mirror.as-text-area .codemirror-container .CodeMirror-line::-moz-selection,.code-mirror.as-text-area .codemirror-container .CodeMirror-line>span::-moz-selection,.code-mirror.as-text-area .codemirror-container .CodeMirror-line>span>span::-moz-selection{color:var(--primary-text);background-color:var(--primary)}.code-mirror.as-text-area .codemirror-container .CodeMirror-gutters .CodeMirror-foldgutter:empty{display:none}.code-mirror{position:relative;margin-bottom:20px}.code-mirror .escape-text{font-size:12px;position:absolute;bottom:-20px;left:0}.code-mirror .codemirror-container{z-index:0;font-size:inherit!important}.code-mirror .codemirror-container .CodeMirror{height:auto;background:none}.code-mirror .codemirror-container .CodeMirror-gutters{background:inherit}.code-mirror .codemirror-container .CodeMirror-wrap pre{word-break:break-word}.code-mirror .keymap.overlay{position:absolute;display:flex;top:7px;right:7px;z-index:1;cursor:pointer}.code-mirror .keymap.overlay .keymap-indicator{width:48px;height:32px;display:flex;align-items:center;justify-content:center;border:1px solid transparent;color:var(--darker);background-color:var(--subtle-overlay-bg);font-size:12px}.code-mirror .keymap.overlay .keymap-indicator .close-indicator{width:0}.code-mirror .keymap.overlay .keymap-indicator .close-indicator .icon-close{color:var(--primary);opacity:0}.code-mirror .keymap.overlay .keymap-indicator .keymap-icon{font-size:24px;opacity:.8;transition:margin-right .1s ease-in-out}.code-mirror .keymap.overlay .keymap-indicator:hover{border:1px solid var(--primary);border-radius:var(--border-radius)}.code-mirror .keymap.overlay .keymap-indicator:hover .close-indicator{margin-left:-6px;width:auto}.code-mirror .keymap.overlay .keymap-indicator:hover .close-indicator .icon-close{opacity:1;transition:opacity .1s ease-in-out .1s}.code-mirror .keymap.overlay .keymap-indicator:hover .keymap-icon{opacity:.6;margin-right:10px}',""]),t["default"]=s},33289:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,"h2[data-v-50534f1b]{display:flex;align-items:center}h2 i[data-v-50534f1b]{font-size:12px;margin-left:5px}.support-link[data-v-50534f1b]:not(:last-child){margin-bottom:15px}",""]),t["default"]=s},40791:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".icon-btn[data-v-2d7c8bd6]{min-height:24px;min-width:24px;justify-content:center}.bg-transparent[data-v-2d7c8bd6]:active{background-color:var(--primary-keyboard-focus);color:var(--primary-text)}.bg-transparent[data-v-2d7c8bd6]:focus-visible{outline:2px solid var(--primary-keyboard-focus)}.role-primary[data-v-2d7c8bd6]:active{background-color:var(--primary-keyboard-focus);color:var(--primary-text)}",""]),t["default"]=s},32549:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".cru-resource-yaml-container .resource-yaml .yaml-editor[data-v-05345bf3]{min-height:100px}.create-resource-container .resource-container[data-v-05345bf3]{display:flex;flex-direction:column}.create-resource-container .subtype-banner .round-image[data-v-05345bf3]{background-color:var(--primary)}.create-resource-container .subtype-banner[data-v-05345bf3]:focus-visible{outline:2px solid var(--primary-keyboard-focus)}.title[data-v-05345bf3]{margin-top:20px}.title.with-description[data-v-05345bf3]{margin-top:0}.subtype-container[data-v-05345bf3]{position:relative;display:flex;height:100%}.subtype-body[data-v-05345bf3]{flex:1;padding:10px}.subtype-logo[data-v-05345bf3]{align-items:center;display:flex;justify-content:center;min-width:100px;min-height:100px;overflow:hidden;background-color:var(--box-bg)}.subtype-logo img[data-v-05345bf3]{width:56px;height:56px;-o-object-fit:contain;object-fit:contain;position:relative;top:2px}form.create-resource-container .cru__footer[data-v-05345bf3]{border-top:var(--header-border-size) solid var(--header-border)}.cru[data-v-05345bf3],.cru__form[data-v-05345bf3]{display:flex;flex-direction:column;flex-grow:1}.cru__content[data-v-05345bf3]{flex-grow:1}.cru__content-wizard[data-v-05345bf3]{display:flex}.cru__footer[data-v-05345bf3]{right:0;bottom:0;height:60px;box-sizing:border-box;margin-left:-24px;margin-right:-24px;margin-bottom:-24px;padding:10px 24px}.cru__errors[data-v-05345bf3],.cru__footer[data-v-05345bf3]{position:sticky;background-color:var(--header-bg)}.cru__errors[data-v-05345bf3]{top:0;z-index:1;margin:10px 0}.description[data-v-05345bf3]{margin-bottom:15px;margin-top:5px}",""]),t["default"]=s},3367:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".cru-resource-footer{display:flex;justify-content:flex-end;margin-top:20px;z-index:19}.cru-resource-footer .btn{margin-left:20px}",""]),t["default"]=s},17838:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".with-copy[data-v-15db74b7]{border:solid 1px var(--border);padding:10px;position:relative;background-color:var(--input-bg);border-radius:var(--border-radius);border:solid var(--border-width) var(--input-border);contain:inline-size}.with-copy h5[data-v-15db74b7]{margin-bottom:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:-moz-fit-content;width:fit-content;max-width:calc(100% - 150px)}.with-copy .conceal-wrapper[data-v-15db74b7]{overflow-x:auto;padding-bottom:10px;margin-bottom:-10px}.with-copy .conceal[data-v-15db74b7]{white-space:nowrap;display:block}.with-copy .action-group[data-v-15db74b7]{position:absolute;top:-1px;right:-1px;white-space-collapse:collapse;display:flex;flex-direction:row;justify-content:flex-end}.with-copy .action-group button[data-v-15db74b7]{border-radius:0}.with-copy .action-group button[data-v-15db74b7]:first-of-type{border-radius:0 0 0 var(--border-radius)}.with-copy .action-group button.sensitive[data-v-15db74b7]{margin-right:-1px;padding:12px 16px}.monospace[data-v-15db74b7]{white-space:pre-wrap;word-wrap:break-all}.more-characters[data-v-15db74b7]{margin-top:8px;display:inline-block}",""]),t["default"]=s},31503:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".detail-text-tooltip.v-popper__popper.v-popper--theme-tooltip{overflow-wrap:anywhere}",""]),t["default"]=s},6618:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,'.detail-top:not(.empty){padding-top:10px;border-top:1px solid var(--border);margin-top:10px}.detail-top .namespaceLinkList:not(:first-child):before{content:", "}.detail-top .tags{display:inline-flex;flex-direction:row;flex-wrap:wrap;position:relative;top:-2px}.detail-top .tags .label{position:relative;top:4px}.detail-top .tags .tag{margin:2px 4px 0 2px;font-size:12px}.detail-top .annotation{margin-top:10px}.detail-top .label{color:var(--input-label);margin:0 4px 0 0}.detail-top__label-button{padding:4px}.detail-top .details{display:flex;flex-direction:row;flex-wrap:wrap}.detail-top .details .detail{margin-right:20px;margin-bottom:3px}.detail-top .details:not(:first-of-type){margin-top:3px}.detail-top>div:not(:last-of-type){margin-bottom:4px}.detail-top .icon{vertical-align:top}',""]),t["default"]=s},80123:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".chrome[data-v-72e8ee84]{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column}.chrome>.header[data-v-72e8ee84]{display:flex;flex-direction:row;align-items:center;background-color:var(--body-bg);border-bottom:1px solid var(--border);height:var(--header-height)}.chrome>.header>.title[data-v-72e8ee84]{display:flex;align-items:center;flex:1;font-size:16px}.chrome>.header>.actions button[data-v-72e8ee84]{display:inline-flex;width:24px;height:24px;color:var(--body-text);justify-content:center}.chrome .body[data-v-72e8ee84]{background-color:var(--drawer-body-bg);flex:1;overflow-y:scroll}.chrome .footer[data-v-72e8ee84]{display:flex;flex-direction:row;justify-content:flex-end;background-color:var(--body-bg);border-top:1px solid var(--border);height:72px}.chrome .footer .actions[data-v-72e8ee84]>*{margin-left:16px}",""]),t["default"]=s},80172:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".drawer-card[data-v-9f186538]{background-color:var(--body-bg);border-radius:var(--border-radius-md);padding:16px;max-width:100%;width:100%;position:relative}",""]),t["default"]=s},37899:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".config-tab[data-v-7d0d0cce] .overlay-content-mode{left:0;top:0}.config-tab[data-v-7d0d0cce] .cru-resource-footer{display:none}",""]),t["default"]=s},79652:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".yaml-tab[data-v-57e9a5ee] .codemirror-container{background-color:var(--body-bg);border-radius:var(--border-radius-md);padding:16px}.yaml-tab[data-v-57e9a5ee] .codemirror-container .CodeMirror,.yaml-tab[data-v-57e9a5ee] .codemirror-container .CodeMirror-gutter{background-color:var(--body-bg)}",""]),t["default"]=s},51758:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".empty-product-page[data-v-53430412]{align-items:center;display:flex;justify-content:center;opacity:.75}.empty-product-page>img[data-v-53430412]{width:128px;margin-bottom:20px}.empty-product-page .err-messages[data-v-53430412]{display:flex;align-items:center;text-align:center;flex-direction:column}.empty-product-page .err-messages[data-v-53430412]>*{margin-bottom:8px;font-size:16px}.empty-product-page .err-messages[data-v-53430412]>:last-child{font-weight:700;color:var(--error)}",""]),t["default"]=s},7752:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".invisible[data-v-71d78a1c]{display:inline-block;min-width:28px}.project-namespaces[data-v-71d78a1c] .project-name{line-height:30px}.project-namespaces[data-v-71d78a1c] .project-bar{contain:inline-size;display:flex;flex-direction:row;justify-content:space-between}.project-namespaces[data-v-71d78a1c] .project-bar .group-tab{max-width:calc(100% - 230px)}.project-namespaces[data-v-71d78a1c] .project-bar .project-name{display:flex;flex-direction:row;align-items:center}.project-namespaces[data-v-71d78a1c] .project-bar .project-name span:first-child{padding-right:8px}.project-namespaces[data-v-71d78a1c] .project-bar .project-name span:last-child{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.project-namespaces[data-v-71d78a1c] .project-bar.has-description .right{margin-top:5px}.project-namespaces[data-v-71d78a1c] .project-bar.has-description .group-tab,.project-namespaces[data-v-71d78a1c] .project-bar.has-description .group-tab:after{height:50px}.project-namespaces[data-v-71d78a1c] .project-bar.has-description .group-tab:after{right:-20px}.project-namespaces[data-v-71d78a1c] .project-bar.has-description .group-tab .description{margin-top:-20px}.project-namespaces[data-v-71d78a1c] .namespace-name{display:flex;align-items:center}.project-namespaces[data-v-71d78a1c] .namespace-name .icon-istio{color:var(--primary)}",""]),t["default"]=s},67722:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".psa-tooltip{margin:3px 0;padding:0 8px 0 22px}",""]),t["default"]=s},9299:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".root[data-v-639a852a]{max-width:100%;position:relative;overflow:auto}",""]),t["default"]=s},20602:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=n(8199),l=o()(i());l.i(s.A),l.push([e.id,"[data-v-639a852a] .d2h-wrapper .d2h-file-header{display:none}[data-v-639a852a] .d2h-wrapper .d2h-file-wrapper{border-color:var(--diff-border)}[data-v-639a852a] .d2h-wrapper .d2h-diff-table{font-family:Menlo,Consolas,monospace;font-size:13px}[data-v-639a852a] .d2h-wrapper .d2h-code-side-emptyplaceholder,[data-v-639a852a] .d2h-wrapper .d2h-emptyplaceholder{border-color:var(--diff-linenum-border);background-color:var(--diff-empty-placeholder)}[data-v-639a852a] .d2h-wrapper .d2h-code-linenumber,[data-v-639a852a] .d2h-wrapper .d2h-code-side-linenumber{background-color:var(--diff-linenum-bg);color:var(--diff-linenum);border-color:var(--diff-linenum-border);border-left:0}[data-v-639a852a] .d2h-wrapper .d2h-code-line del,[data-v-639a852a] .d2h-wrapper .d2h-code-side-line del{background-color:var(--diff-line-del-bg)}[data-v-639a852a] .d2h-wrapper .d2h-code-line ins,[data-v-639a852a] .d2h-wrapper .d2h-code-side-line ins{background-color:var(--diff-line-ins-bg)}[data-v-639a852a] .d2h-wrapper .d2h-del{background-color:var(--diff-del-bg);border-color:var(--diff-del-border);color:var(--body-text)}[data-v-639a852a] .d2h-wrapper .d2h-ins{background-color:var(--diff-ins-bg);border-color:var(--diff-ins-border);color:var(--body-text)}[data-v-639a852a] .d2h-wrapper .d2h-info{background-color:var(--diff-header-bg);color:var(--diff-header);border-color:var(--diff-header-border)}[data-v-639a852a] .d2h-wrapper .d2h-file-diff .d2h-del.d2h-change{background-color:var(--diff-chg-del)}[data-v-639a852a] .d2h-wrapper .d2h-file-diff .d2h-ins.d2h-change{background-color:var(--diff-chg-ins)}",""]),t["default"]=l},71124:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".vertical[data-v-01996ade]{flex-direction:column;width:100%}.subtle[data-v-01996ade]{opacity:.7}.message-icon[data-v-01996ade]{display:flex;align-items:center;justify-content:center;flex:1;flex-direction:column}.message-icon>I[data-v-01996ade]{font-size:64px;margin-bottom:20px}.message-icon>I.info[data-v-01996ade]{color:var(--primary)}.message-icon>I.error[data-v-01996ade]{color:var(--error)}.message-icon>I.warning[data-v-01996ade]{color:var(--warning)}.message-icon>I.success[data-v-01996ade]{color:var(--success)}.message-icon>.message[data-v-01996ade]{font-size:20px;margin-bottom:40px;max-width:60%;text-align:center;line-height:30px}",""]),t["default"]=s},37325:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,"img.svg-icon[data-v-39f189f2]{filter:var(--v63011bc5)}button:hover>img.svg-icon[data-v-39f189f2],li:hover>img.svg-icon[data-v-39f189f2]{filter:var(--v2ce8fd20)}.side-menu .category div a>img.svg-icon[data-v-39f189f2]{height:24px;width:24px;filter:var(--v63011bc5)}.side-menu .category div a:hover>img.svg-icon[data-v-39f189f2]{filter:var(--v2ce8fd20)}.side-menu .category div a.active-menu-link>img.svg-icon[data-v-39f189f2],.side-menu .category div a.active-menu-link>img.svg-icon[data-v-39f189f2]:hover{filter:var(--v73a02a52)}",""]),t["default"]=s},83234:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".indented-panel{height:100%;width:90%;margin-left:5%}@media only screen and (max-width:992px){.indented-panel{margin:0 20px;width:auto}}",""]),t["default"]=s},73132:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".info-box[data-v-1c5683df]{border:2px solid var(--tabbed-border);padding:10px;margin-bottom:20px;border-radius:var(--border-radius);flex-grow:1;flex-basis:0;position:relative}.info-box .stepped[data-v-1c5683df]{padding-left:40px}.info-box .step-number[data-v-1c5683df]{border-radius:var(--border-radius);background:var(--secondary);color:var(--input-text);display:inline-block;padding:5px 10px}.info-box .step-list[data-v-1c5683df]{margin:0}.info-box .info-column[data-v-1c5683df]:not(:last-child){border-right:1px solid var(--tabbed-border)}.info-box .info-row[data-v-1c5683df]{margin-bottom:10px}.info-box .info-row .info-row-label[data-v-1c5683df]{padding-top:2px;display:inline-block}.info-box .info-column label[data-v-1c5683df],.info-box .info-row label[data-v-1c5683df]{color:var(--input-label)}.info-box .info-column .usage[data-v-1c5683df]{margin-bottom:10px}.info-box .info-column .usage label[data-v-1c5683df]{display:inline-block;font-size:12px;padding-top:6px}.info-box .info-column .flex-item-half[data-v-1c5683df]{align-items:center}",""]),t["default"]=s},19201:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".overlay[data-v-fac347aa]{align-items:center;background-color:var(--subtle-overlay-bg);display:flex;justify-content:center;position:absolute;bottom:0;top:0;left:0;right:0;text-align:center;z-index:12}.overlay-main-mode[data-v-fac347aa]{top:var(--header-height);z-index:51}.overlay-content-mode[data-v-fac347aa]{left:calc(var(--nav-width));top:var(--header-height)}",""]),t["default"]=s},7844:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".footer[data-v-00744f30]{width:100%;display:flex;justify-content:center}.banner[data-v-00744f30]{margin-bottom:0}",""]),t["default"]=s},98570:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".modal{border-radius:var(--border-radius);max-height:100vh}.modal.card-container{box-shadow:none}",""]),t["default"]=s},51558:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".progress[data-v-154bda8a]{display:block;border-radius:90px;background-color:var(--progress-bg);height:10px;width:100px}.progress .piece[data-v-154bda8a]{display:inline-block;height:10px;border-radius:0;border-right:1px solid var(--progress-divider);vertical-align:top}.progress .piece[data-v-154bda8a]:first-child{border-top-left-radius:90px;border-bottom-left-radius:90px}.progress .piece[data-v-154bda8a]:last-child{border-top-right-radius:90px;border-bottom-right-radius:90px;border-right:0}.piece.bg-success[data-v-154bda8a]:only-child{opacity:.5}",""]),t["default"]=s},4025:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".more[data-v-53ecaf14]{margin-top:4px;cursor:help;font-size:.8em}",""]),t["default"]=s},1777:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".message[data-v-3eb6f915]{margin:0;margin-top:-2px;line-height:20px}",""]),t["default"]=s},94739:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".vertical-gap[data-v-43905492]{height:12px}",""]),t["default"]=s},4749:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".detail-card[data-v-199e5bcf]{padding:16px;border-radius:var(--border-radius-md);border:1px solid var(--border)}.detail-card .heading[data-v-199e5bcf]{display:flex;justify-content:space-between;height:32px}.detail-card .heading .title[data-v-199e5bcf]{font-size:18px;font-weight:600;line-height:21px}.detail-card .body[data-v-199e5bcf]{display:flex;flex-direction:column;justify-content:flex-start}",""]),t["default"]=s},2582:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".copy-to-clipboard[data-v-24cd76d6]{z-index:2;display:inline-flex;width:36px;height:36px;font-size:14px;border-radius:50%;justify-content:center;align-items:center;padding:0;line-height:normal;min-height:auto;border:1px solid var(--primary);color:var(--primary);background-color:var(--body-bg)}.copy-to-clipboard[data-v-24cd76d6]:hover{color:var(--body-text)}.copy-to-clipboard.copied[data-v-24cd76d6]{background-color:var(--success);border-color:var(--success-border);color:var(--success-text);transition:background-color .25s ease,border-color .25s ease,color .25s ease}.copy-to-clipboard[data-v-24cd76d6]:focus-visible{outline:2px solid var(--primary-keyboard-focus)}",""]),t["default"]=s},49576:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".identifying-information[data-v-b229e8e2]{display:flex;flex-direction:column}.identifying-information .row[data-v-b229e8e2]:not(:last-of-type){margin-bottom:8px}.identifying-information .row .full-custom-value[data-v-b229e8e2]{flex:1}.identifying-information .row .value[data-v-b229e8e2]{display:flex;flex-direction:row;align-items:center;flex:1}.identifying-information .row .value>div[data-v-b229e8e2],.identifying-information .row .value>span[data-v-b229e8e2]{max-width:100%}.identifying-information .row .value[data-v-b229e8e2],.identifying-information .row .value>div[data-v-b229e8e2],.identifying-information .row .value>span[data-v-b229e8e2]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;word-wrap:break-word}.identifying-information .row .label[data-v-b229e8e2]{width:30%;min-width:120px}.identifying-information .row .status[data-v-b229e8e2]{display:inline-block;border-radius:50%;width:8px;height:8px;margin-right:12px}.identifying-information .row .status.success[data-v-b229e8e2]{background-color:var(--success)}.identifying-information .row .status.warning[data-v-b229e8e2]{background-color:var(--warning)}.identifying-information .row .status.error[data-v-b229e8e2]{background-color:var(--error)}.identifying-information .row .status.info[data-v-b229e8e2]{background-color:var(--info)}",""]),t["default"]=s},23541:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".key-value[data-v-574d2bc8]{display:flex;flex-direction:column;align-items:flex-start}.key-value .count[data-v-574d2bc8]{margin-left:24px}.key-value .heading[data-v-574d2bc8]{margin-bottom:8px}.key-value .row[data-v-574d2bc8]{display:block;width:100%;display:inline-block}.key-value .row[data-v-574d2bc8]:not(:nth-child(2)){margin-top:4px}.key-value .show-all[data-v-574d2bc8]{margin-top:8px}.key-value .no-rows[data-v-574d2bc8]{line-height:21px}",""]),t["default"]=s},93345:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".key-value-row[data-v-18944324]{display:inline-block;position:relative;padding:0}.key-value-row .copy-to-clipboard[data-v-18944324]{position:fixed;right:-20px;top:-100vh;z-index:20}.key-value-row[data-v-18944324],.key-value-row .btn[data-v-18944324],.key-value-row .rc-tag[data-v-18944324]{max-width:100%}.key-value-row .rc-tag[data-v-18944324],.key-value-row .tag-data[data-v-18944324]{display:inline-block;line-height:normal}.key-value-row .tag-data[data-v-18944324]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.key-value-row .btn.btn-medium.rc-button.variant-ghost[data-v-18944324]{line-height:normal;min-height:auto;padding:0}.key-value-row.active.show-preview .copy-to-clipboard[data-v-18944324]{position:fixed}.key-value-row.active .copy-to-clipboard:focus-visible .rc-tag .tag-data[data-v-18944324],.key-value-row.active button:focus-visible .rc-tag .tag-data[data-v-18944324],.key-value-row.active button:hover .rc-tag .tag-data[data-v-18944324]{padding-right:22px}.key-value-row.active .copy-to-clipboard:focus-visible+.copy-to-clipboard[data-v-18944324],.key-value-row.active button:focus-visible+.copy-to-clipboard[data-v-18944324],.key-value-row.active button:hover+.copy-to-clipboard[data-v-18944324]{position:absolute;top:-6px}.key-value-row.active .copy-to-clipboard[data-v-18944324]:focus-visible,.key-value-row.active .copy-to-clipboard[data-v-18944324]:hover{position:absolute;top:-6px}.key-value-row.active .btn:has(+.copy-to-clipboard:focus-visible) .rc-tag .tag-data[data-v-18944324],.key-value-row.active .btn:has(+.copy-to-clipboard:hover) .rc-tag .tag-data[data-v-18944324]{padding-right:22px}",""]),t["default"]=s},74184:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".metadata .labels-and-annotations-empty[data-v-4750bbd4]{grid-column:span 2}",""]),t["default"]=s},93147:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,"[data-v-8af17bd2] .CodeMirror-gutters{display:none}",""]),t["default"]=s},54343:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".preview-mouse-catcher[data-v-5b728606]{cursor:default;position:fixed;top:0;bottom:0;left:0;right:0;z-index:120}.preview[data-v-5b728606]{cursor:default;position:fixed;right:var(--v068f897a);top:var(--v31006f9a);z-index:121;display:flex;flex-direction:column;min-width:420px;max-width:550px;max-height:550px;padding:16px;background-color:var(--body-bg);border:1px solid var(--border);border-radius:var(--border-radius-md)}.preview[data-v-5b728606]:focus{outline:none}.preview .title[data-v-5b728606]{margin-bottom:16px;font-size:14px;font-style:normal;font-weight:400}.preview .content[data-v-5b728606]{flex:1;overflow:scroll}.preview .copy-to-clipboard[data-v-5b728606]{position:absolute;right:-8px;top:-8px}",""]),t["default"]=s},414:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".spaced-row[data-v-64541b91]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-flow:dense;grid-gap:24px;justify-content:space-evenly}",""]),t["default"]=s},6772:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,"h1.title[data-v-1e04f798]{display:inline-block;align-items:center;display:flex;flex-direction:row}",""]),t["default"]=s},97867:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".top[data-v-9aaa96a4]{display:flex;flex-direction:row;justify-content:space-between;align-items:center}",""]),t["default"]=s},13650:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".title-bar[data-v-9b4c036c]{min-width:740px}.title-bar .badge-state[data-v-9b4c036c]{font-size:16px;margin-left:12px;position:relative}.title-bar .icon-document[data-v-9b4c036c]{width:15px;font-size:16px;margin-right:10px}.title-bar .actions[data-v-9b4c036c]{display:flex;align-items:center}.title-bar .show-configuration[data-v-9b4c036c],.title-bar[data-v-9b4c036c] .actions>button{margin-left:16px}.title-bar[data-v-9b4c036c] button[data-testid=masthead-action-menu]{border-radius:4px;width:35px;height:40px;margin-left:16px;display:inline-flex;flex-direction:row;justify-content:center;align-items:center}.title-bar .description[data-v-9b4c036c]{max-width:60%}.title-bar .title[data-v-9b4c036c]{max-width:calc(100% - 260px)}.title-bar .resource-name[data-v-9b4c036c]{display:inline-block;flex:1;white-space:nowrap;overflow-x:hidden;overflow-y:clip;text-overflow:ellipsis;margin-left:4px}",""]),t["default"]=s},61349:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".confirm-modal .btn[data-v-715d956d]{margin:0 10px}.confirm-modal .body[data-v-715d956d]{min-height:75px;padding:10px 0 0 15px}.confirm-modal .body p[data-v-715d956d]{margin-top:10px}.confirm-modal .header[data-v-715d956d]{background-color:var(--error);padding:15px 0 0 15px;height:50px}.confirm-modal .header h4[data-v-715d956d]{color:#fff}.confirm-modal .footer[data-v-715d956d]{border-top:1px solid var(--border);text-align:center;padding:10px 0 0 15px;height:60px}",""]),t["default"]=s},61446:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".new.state-banner[data-v-7f6314f2]{margin:0;margin-top:16px}",""]),t["default"]=s},21640:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".new.state-banner[data-v-0243210c]{margin:0;margin-top:16px}[data-v-0243210c] .metadata-section{margin-top:16px;margin-bottom:24px}.cards-section[data-v-0243210c]{margin:0;margin-bottom:24px}",""]),t["default"]=s},25309:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".masthead[data-v-0f75302f]{padding-bottom:10px;border-bottom:1px solid var(--border);margin-bottom:10px}HEADER[data-v-0f75302f]{margin:0;grid-template-columns:minmax(0,1fr) auto}.primaryheader[data-v-0f75302f],.primaryheader h1[data-v-0f75302f]{display:flex;flex-direction:row;align-items:center}.primaryheader h1[data-v-0f75302f]{margin:0 0 0 -5px;overflow:hidden}.primaryheader h1 .masthead-resource-title[data-v-0f75302f]{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.primaryheader h1 .masthead-resource-list-link[data-v-0f75302f]{margin:5px}.subheader[data-v-0f75302f]{display:flex;flex-direction:row;color:var(--input-label)}.subheader[data-v-0f75302f]>*{margin:5px 20px 5px 0}.subheader .live-data[data-v-0f75302f]{color:var(--body-text);margin-left:3px}.state-banner[data-v-0f75302f]{margin:3px 0 0 0}.masthead-state[data-v-0f75302f]{margin-left:8px;font-size:medium}.masthead-istio .icon[data-v-0f75302f]{vertical-align:middle;color:var(--primary)}.left-right-split[data-v-0f75302f]{display:grid;align-items:center}.left-right-split .left-half[data-v-0f75302f]{grid-column:1}.left-right-split .right-half[data-v-0f75302f]{grid-column:2}div.actions-container>div.actions[data-v-0f75302f]{display:flex;flex-direction:row;justify-content:flex-end}.resource-external[data-v-0f75302f]{font-size:18px}",""]),t["default"]=s},90539:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".flex-content[data-v-64dc1332]{display:flex;flex-direction:column;flex-grow:1}.cru__errors[data-v-64dc1332]{position:sticky;top:0;z-index:1;background-color:var(--header-bg)}",""]),t["default"]=s},37896:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,'.title[data-v-96ccbc92]{align-items:center;display:flex}.title h1[data-v-96ccbc92]{margin:0}header[data-v-96ccbc92]{margin-bottom:20px}header.with-subheader[data-v-96ccbc92]{grid-template-areas:"type-banner type-banner" "title actions" "sub-header sub-header" "state-banner state-banner"}.sub-header[data-v-96ccbc92]{grid-area:sub-header}.sub-header a[data-v-96ccbc92]{display:inline-block}',""]),t["default"]=s},50612:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".resource-loading-indicator[data-v-6457c305]{border:1px solid var(--link);border-radius:10px;position:relative;width:-moz-min-content;width:min-content;overflow:hidden}.resource-loading-indicator .resource-loader[data-v-6457c305]:last-child{position:absolute;top:0;background-color:var(--link);color:var(--link-text);overflow:hidden;white-space:nowrap}.resource-loading-indicator .resource-loader[data-v-6457c305]{padding:1px 10px;width:-moz-max-content;width:max-content}.resource-loading-indicator .resource-loader .rl-bg[data-v-6457c305],.resource-loading-indicator .resource-loader .rl-fg[data-v-6457c305]{align-content:center;display:flex}.resource-loading-indicator .resource-loader .rl-bg>i[data-v-6457c305],.resource-loading-indicator .resource-loader .rl-fg>i[data-v-6457c305]{font-size:18px;line-height:18px}.resource-loading-indicator .resource-loader .rl-bg>span[data-v-6457c305],.resource-loading-indicator .resource-loader .rl-fg>span[data-v-6457c305]{margin-left:5px}",""]),t["default"]=s},4055:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".header[data-v-377cbd78],H2[data-v-377cbd78]{position:relative}H2[data-v-377cbd78]{margin:0 0 20px 0}.filter[data-v-377cbd78]{line-height:45px}.right-action[data-v-377cbd78]{position:absolute;top:10px;right:10px}",""]),t["default"]=s},82875:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".auto-update[data-v-130977a6]{min-width:150px;height:40px}.group-tab .count[data-v-130977a6]{opacity:.7;margin-left:2px}",""]),t["default"]=s},28403:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".flex-content[data-v-36fcbdfe]{display:flex;flex-direction:column;flex-grow:1}.footer[data-v-36fcbdfe]{margin-top:20px;right:0;position:sticky;bottom:0;background-color:var(--header-bg);margin-left:-24px;margin-right:-24px;margin-bottom:-24px;padding:10px 24px}.footer.edit[data-v-36fcbdfe]{border-top:var(--header-border-size) solid var(--header-border)}",""]),t["default"]=s},96665:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".resource-yaml .yaml-editor{min-height:200px}.resource-yaml footer .actions{text-align:right}.resource-yaml .spacer-small{padding:0}",""]),t["default"]=s},86226:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".top[data-v-48821e48]{display:flex;position:relative}.top>h2[data-v-48821e48]{flex:1}.close-button[data-v-48821e48]{cursor:pointer;display:flex;align-items:center;justify-content:center;padding:2px}.close-button>i[data-v-48821e48]{font-size:14px;opacity:.5}.close-button[data-v-48821e48]:hover{background-color:var(--wm-closer-hover-bg)}",""]),t["default"]=s},83904:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".simple-box{background:var(--simple-box-bg) 0 0 no-repeat padding-box;box-shadow:0 0 10px var(--simple-box-shadow);border:1px solid var(--simple-box-border);padding:15px}.simple-box .top{line-height:24px;font-size:18px;border-bottom:1px solid var(--simple-box-divider);padding-bottom:15px;margin:0 -15px 10px -15px;padding:0 15px 15px 15px;align-items:center;display:flex .simple-box .top BUTTON;display-padding:0;display-height:fit-content;display-align-self:flex-start}.simple-box .top H2{margin-bottom:0}.simple-box .content{padding:15px}",""]),t["default"]=s},90369:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".table-options-group .table-options-btn.role-multi-action[data-v-5a4a5cc3]{background-color:transparent;border:none;font-size:18px}.table-options-group .table-options-btn.role-multi-action[data-v-5a4a5cc3]:focus,.table-options-group .table-options-btn.role-multi-action[data-v-5a4a5cc3]:hover{background-color:var(--accent-btn);box-shadow:none}.table-options-group .table-options-container[data-v-5a4a5cc3]{width:350px;border:1px solid var(--primary);background-color:var(--body-bg);padding:20px;z-index:1}.table-options-group .table-options-container .table-options-grouping[data-v-5a4a5cc3]{display:flex;align-items:center;margin-bottom:20px}.table-options-group .table-options-container .table-options-grouping span[data-v-5a4a5cc3]{white-space:nowrap;margin-right:10px}.table-options-group .table-options-container ul[data-v-5a4a5cc3]{list-style:none;margin:0;padding:0;max-height:200px;overflow-y:auto}.table-options-group .table-options-container ul li[data-v-5a4a5cc3]{margin:0;padding:0}.table-options-group .table-options-container ul li.visible[data-v-5a4a5cc3]{margin:0 0 10px 0}.sortable>SPAN[data-v-5a4a5cc3]{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.sortable>SPAN[data-v-5a4a5cc3]:active,.sortable>SPAN[data-v-5a4a5cc3]:hover{text-decoration:underline;color:var(--body-text)}.top-aligned th[data-v-5a4a5cc3]{vertical-align:top;padding-top:10px}thead tr[data-v-5a4a5cc3]{background-color:var(--sortable-table-header-bg);text-align:left;border-bottom:1px solid var(--sortable-table-top-divider)}th[data-v-5a4a5cc3],thead tr[data-v-5a4a5cc3]{color:var(--body-text)}th[data-v-5a4a5cc3]{padding:8px 5px;font-weight:400;border:0}th.sortable-table-head-element[data-v-5a4a5cc3]:focus-visible{outline:2px solid var(--primary-keyboard-focus);outline-offset:-4px}th .table-header-container[data-v-5a4a5cc3]{display:inline-flex}th .table-header-container .content[data-v-5a4a5cc3]{display:flex;flex-direction:column}th .table-header-container.not-filterable[data-v-5a4a5cc3],th .table-header-container.not-filterable .icon-stack[data-v-5a4a5cc3]{margin-top:-2px}th .table-header-container .not-filter-icon[data-v-5a4a5cc3]{font-size:16px;color:var(--primary);vertical-align:super}th[data-v-5a4a5cc3]:first-child{padding-left:10px}th[data-v-5a4a5cc3]:last-child{padding-right:10px}th:not(.sortable)>SPAN[data-v-5a4a5cc3]{display:block;margin-bottom:2px}th A[data-v-5a4a5cc3]{color:var(--body-text)}@media only screen and (max-width:480px){th.desktop[data-v-5a4a5cc3],th.laptop[data-v-5a4a5cc3],th.tablet[data-v-5a4a5cc3]{display:none}}@media only screen and (max-width:992px){th.desktop[data-v-5a4a5cc3],th.laptop[data-v-5a4a5cc3]{display:none}}@media only screen and (max-width:1281px){th.desktop[data-v-5a4a5cc3]{display:none}}.icon-stack[data-v-5a4a5cc3]{width:12px}.icon-sort.faded[data-v-5a4a5cc3]{opacity:.3}",""]),t["default"]=s},65727:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".table-options-checkbox .checkbox-custom{min-width:14px}.table-options-checkbox .checkbox-label{color:var(--body-text)}",""]),t["default"]=s},77124:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".sortable-table.alt-loading[data-v-72587425]{opacity:.5;pointer-events:none}.advanced-filter-group[data-v-72587425]{position:relative;margin-left:10px}.advanced-filter-group .advanced-filter-container[data-v-72587425]{position:absolute;top:38px;right:0;width:300px;border:1px solid var(--primary);background-color:var(--body-bg);padding:20px;z-index:2}.advanced-filter-group .advanced-filter-container .middle-block[data-v-72587425]{display:flex;align-items:center;margin-top:20px}.advanced-filter-group .advanced-filter-container .middle-block span[data-v-72587425]{margin-right:20px}.advanced-filter-group .advanced-filter-container .middle-block button[data-v-72587425]{margin-left:20px}.advanced-filter-group .advanced-filter-container .bottom-block[data-v-72587425]{display:flex;align-items:center;margin-top:40px;justify-content:space-between}.advanced-filters-applied[data-v-72587425]{display:inline-flex;margin:0;padding:0;list-style:none;max-width:100%;flex-wrap:wrap;justify-content:flex-end}.advanced-filters-applied li[data-v-72587425]{margin:0 20px 10px 0;padding:2px 5px;border:1px solid;display:flex;align-items:center;position:relative;height:20px}.advanced-filters-applied li[data-v-72587425]:nth-child(4n+1){border-color:var(--success)}.advanced-filters-applied li:nth-child(4n+1) .bg[data-v-72587425]{background-color:var(--success)}.advanced-filters-applied li[data-v-72587425]:nth-child(4n+2){border-color:var(--warning)}.advanced-filters-applied li:nth-child(4n+2) .bg[data-v-72587425]{background-color:var(--warning)}.advanced-filters-applied li[data-v-72587425]:nth-child(4n+3){border-color:var(--info)}.advanced-filters-applied li:nth-child(4n+3) .bg[data-v-72587425]{background-color:var(--info)}.advanced-filters-applied li[data-v-72587425]:nth-child(4n+4){border-color:var(--error)}.advanced-filters-applied li:nth-child(4n+4) .bg[data-v-72587425]{background-color:var(--error)}.advanced-filters-applied li .bg[data-v-72587425]{position:absolute;top:0;left:0;width:100%;height:100%;opacity:.2;z-index:-1}.advanced-filters-applied li .label[data-v-72587425]{margin-right:10px;font-size:11px}.advanced-filters-applied li .cross[data-v-72587425]{font-size:12px;font-weight:700;cursor:pointer}@media only screen and (max-width:480px){td.desktop[data-v-72587425],td.laptop[data-v-72587425],td.tablet[data-v-72587425]{display:none}}@media only screen and (max-width:992px){td.desktop[data-v-72587425],td.laptop[data-v-72587425]{display:none}}@media only screen and (max-width:1281px){td.desktop[data-v-72587425]{display:none}}tr td div.data-loading[data-v-72587425]{align-items:center;display:flex;justify-content:center;padding:20px 0}tr td div.data-loading>i[data-v-72587425]{font-size:20px;height:20px;margin-right:5px;width:20px}.search-box[data-v-72587425]{height:40px;margin-left:10px;min-width:180px}",""]),t["default"]=s},47794:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,'.filter-select .vs__selected-options .vs__selected{text-align:left}.sortable-table{border-collapse:collapse;min-width:400px;border-radius:5px 5px 0 0;outline:1px solid var(--border);background:var(--sortable-table-bg);border-radius:4px}.sortable-table.overflow-x{overflow-x:visible}.sortable-table.overflow-y{overflow-y:visible}.sortable-table td{padding:8px 5px;border:0}.sortable-table td:first-child{padding-left:10px}.sortable-table td:last-child{padding-right:10px}.sortable-table td.row-check{padding-top:12px}.sortable-table tbody tr{border-bottom:1px solid var(--sortable-table-top-divider);background-color:var(--sortable-table-row-bg)}.sortable-table tbody tr.additional-sub-row.has-sub-row,.sortable-table tbody tr.main-row.has-sub-row{border-bottom:0}.sortable-table tbody tr.main-row:not(.row-selected):hover+.additional-sub-row,.sortable-table tbody tr.main-row:not(.row-selected):hover+.additional-sub-row+.sub-row,.sortable-table tbody tr.main-row:not(.row-selected):hover+.sub-row{background-color:var(--sortable-table-hover-bg)}.sortable-table tbody tr:last-of-type{border-bottom:0}.sortable-table tbody tr.sub-row-hovered,.sortable-table tbody tr:hover{background-color:var(--sortable-table-hover-bg)}.sortable-table tbody tr.state-description>td{font-size:13px;padding-top:0;overflow-wrap:anywhere}.sortable-table tbody tr.active-row{color:var(--sortable-table-header-bg)}.sortable-table tbody tr.row-selected{background:var(--sortable-table-selected-bg)}.sortable-table tbody .no-rows td{padding:30px 0;text-align:center}.sortable-table tbody .no-results:hover,.sortable-table tbody .no-rows:hover{background-color:var(--body-bg)}.sortable-table tbody.group:before{content:"";display:block;height:20px;background-color:transparent}.sortable-table tbody tr.group-row{background-color:initial}.sortable-table tbody tr.group-row:first-child{border-bottom:2px solid var(--sortable-table-row-bg)}.sortable-table tbody tr.group-row:not(:first-child){margin-top:20px}.sortable-table tbody tr.group-row td{padding:0}.sortable-table tbody tr.group-row td:first-of-type{border-left:1px solid var(--sortable-table-accent-bg)}.sortable-table tbody tr.group-row .group-tab:after,.sortable-table tbody tr.group-row .group-tab:before{content:" ";display:table}.sortable-table tbody tr.group-row .group-tab:after{clear:both}.sortable-table tbody tr.group-row .group-tab{height:40px;line-height:40px;padding:0 10px;border-radius:4px 4px 0 0;background-color:var(--sortable-table-row-bg);position:relative;top:1px;display:inline-block;z-index:10;min-width:72px}.sortable-table tbody tr.group-row .group-tab>SPAN{color:var(--sortable-table-group-label)}.sortable-table tbody tr.group-row .group-tab:after{height:40px;width:70px;border-radius:5px 5px 0 0;background-color:var(--sortable-table-row-bg);content:"";position:absolute;right:-15px;top:0;transform:skewX(40deg);z-index:-1}.for-inputs TABLE.sortable-table{width:100%;border-collapse:collapse;margin-bottom:10px}.for-inputs TABLE.sortable-table>TBODY>TR>TD,.for-inputs TABLE.sortable-table>THEAD>TR>TH{padding-right:10px;padding-bottom:10px}.for-inputs TABLE.sortable-table>TBODY>TR>TD:last-of-type,.for-inputs TABLE.sortable-table>THEAD>TR>TH:last-of-type{padding-right:0}.for-inputs TABLE.sortable-table>TBODY>TR:first-of-type>TD{padding-top:10px}.for-inputs TABLE.sortable-table>TBODY>TR:last-of-type>TD{padding-bottom:0}.for-inputs.clone TABLE.sortable-table>THEAD>TR>TH,.for-inputs.create TABLE.sortable-table>THEAD>TR>TH,.for-inputs.edit TABLE.sortable-table>THEAD>TR>TH{border-color:transparent}.sortable-table-header{position:relative;z-index:11}.sortable-table-header.titled{display:flex;align-items:center}.fixed-header-actions.button{grid-template-columns:[bulk] auto [middle] min-content [search] minmax(min-content,350px)}.sub-header-row{padding:0 0 10px 0}.fixed-header-actions{padding:0 0 20px 0}.fixed-header-actions.with-sub-header{padding:0 0 5px 0}.fixed-header-actions{width:100%;z-index:11;background:transparent;display:grid;grid-template-columns:[bulk] auto [middle] min-content [search] minmax(min-content,200px);grid-column-gap:10px}.fixed-header-actions.advanced-filtering{grid-template-columns:[bulk] auto [middle] minmax(min-content,auto) [search] minmax(min-content,auto)}.fixed-header-actions .bulk{grid-area:bulk}.fixed-header-actions .bulk>BUTTON{display:none}.fixed-header-actions .bulk>BUTTON:not(:last-of-type){margin-right:10px}.fixed-header-actions .bulk .action-availability{display:none;margin-left:10px;vertical-align:middle;margin-top:2px}.fixed-header-actions .bulk .dropdown-button li.disabled{color:var(--disabled-text);cursor:not-allowed}.fixed-header-actions .bulk .dropdown-button li.disabled:hover{color:var(--disabled-text);background-color:unset;cursor:not-allowed}.fixed-header-actions .bulk .bulk-action .icon{vertical-align:-10%}.fixed-header-actions .middle{grid-area:middle;white-space:nowrap}.fixed-header-actions .middle .icon.icon-backup.animate{animation-name:spin;animation-duration:1s;animation-iteration-count:infinite;animation-timing-function:linear}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.fixed-header-actions .search{grid-area:search;text-align:right;justify-content:flex-end}.fixed-header-actions .bulk-actions-dropdown{display:none}.fixed-header-actions .bulk-actions-dropdown .dropdown-button{background-color:var(--primary)}.fixed-header-actions .bulk-actions-dropdown .dropdown-button:hover{background-color:var(--primary-hover-bg);color:var(--primary-hover-text)}.fixed-header-actions .bulk-actions-dropdown .dropdown-button .icon-chevron-down,.fixed-header-actions .bulk-actions-dropdown .dropdown-button>*{color:var(--primary-text)}.fixed-header-actions .bulk-actions-dropdown .dropdown-button .button-divider{border-color:var(--primary-text)}.fixed-header-actions .bulk-actions-dropdown .dropdown-button.disabled{border-color:var(--disabled-bg)}.fixed-header-actions .bulk-actions-dropdown .dropdown-button.disabled .icon-chevron-down{color:var(--disabled-text)!important}.fixed-header-actions .bulk-actions-dropdown .dropdown-button.disabled .button-divider{border-color:var(--disabled-text)}.paging{margin-top:10px;text-align:center}.paging SPAN{display:inline-block;min-width:200px}',""]),t["default"]=s},67042:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".state-dot[data-v-2001ed60]{display:inline-block;width:var(--v34a0a70d);height:var(--v34a0a70d);border-radius:50%;background-color:var(--v7e32a647)}",""]),t["default"]=s},41561:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".tab-header[data-v-c5795340]{display:flex;justify-content:space-between;margin-bottom:15px;align-items:center}.tab-header h2[data-v-c5795340]{margin:0}",""]),t["default"]=s},93560:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".tabbed-container[data-v-6139718a]{min-width:-moz-fit-content;min-width:fit-content}.tabs[data-v-6139718a]{list-style-type:none;margin:0;padding:0}.tabs[data-v-6139718a]:focus-visible{outline:none}.tabs:focus-visible .tab.active[data-v-6139718a]{outline:2px solid var(--primary-keyboard-focus);outline-offset:-2px}.tabs.horizontal[data-v-6139718a]{border:solid thin var(--border);border-bottom:0;display:flex;flex-direction:row}.tabs.horizontal.remove-borders[data-v-6139718a]{border:none}.tabs.horizontal.remove-borders+.tab-container[data-v-6139718a]{border:none;border-top:1px solid var(--border);padding:0;padding-top:24px}.tabs.horizontal+.tab-container[data-v-6139718a]{border:solid thin var(--border)}.tabs.horizontal .tab.active[data-v-6139718a]{border-bottom:solid 2px var(--active,var(--primary))}.tabs:focus .tab.active a span[data-v-6139718a]{text-decoration:underline}.tabs .tab[data-v-6139718a]{position:relative;float:left;padding:0 4px 0 4px;cursor:pointer}.tabs .tab A[data-v-6139718a]{display:flex;align-items:center;padding:10px 15px}.tabs .tab A[data-v-6139718a]:hover{text-decoration:none}.tabs .tab A:hover span[data-v-6139718a]{text-decoration:underline}.tabs .tab .conditions-alert-icon[data-v-6139718a]{color:var(--error);padding-left:4px;margin-left:auto}.tabs .tab[data-v-6139718a]:last-child{padding-right:0}.tabs .tab.active>A[data-v-6139718a]{color:var(--active,var(--primary));text-decoration:none}.tabs .tab.error A>.icon-error[data-v-6139718a]{color:var(--error)}.tabs .tab .tab-label-icon[data-v-6139718a]{margin-right:8px}.tabs .tab .tab-badge[data-v-6139718a]{margin-left:5px;background-color:var(--link);color:#fff;border-radius:6px;padding:1px 7px;font-size:11px}.tab-container[data-v-6139718a]{padding:20px}.tab-container.no-content[data-v-6139718a]{padding:0 0 3px 0}.tab-container--flat[data-v-6139718a]{padding:0}.tab-container--flat .side-tabs[data-v-6139718a]{box-shadow:unset}.tabs-only[data-v-6139718a]{margin-bottom:20px}.tabs-only .tab-container[data-v-6139718a]{display:none}.tabs-only .tabs[data-v-6139718a]{border:0;border-bottom:2px solid var(--border)}.side-tabs[data-v-6139718a]{display:flex;box-shadow:0 0 20px var(--shadow);border-radius:calc(var(--border-radius)*2);background-color:var(--tabbed-sidebar-bg)}.side-tabs .tab-container[data-v-6139718a]{padding:20px}.side-tabs .tabs[data-v-6139718a]{width:200px;min-width:200px;display:flex;flex:1 0;flex-direction:column}.side-tabs .tabs .tab[data-v-6139718a]{width:100%;border-left:5px solid transparent}.side-tabs .tabs .tab.toggle A[data-v-6139718a]{color:var(--active,var(--primary))}.side-tabs .tabs .tab A[data-v-6139718a]{color:var(--link,var(--primary))}.side-tabs .tabs .tab.active[data-v-6139718a]{background-color:var(--body-bg);border-left:solid 5px var(--active,var(--primary))}.side-tabs .tabs .tab.active A[data-v-6139718a]{color:var(--input-label)}.side-tabs .tabs .tab.disabled[data-v-6139718a]{background-color:var(--disabled-bg)}.side-tabs .tabs .tab.disabled A[data-v-6139718a]{color:var(--disabled-text);text-decoration:none}.side-tabs .tabs .tab-list-footer[data-v-6139718a]{list-style:none;padding:0;margin-top:auto;z-index:1}.side-tabs .tabs .tab-list-footer li[data-v-6139718a]{display:flex;flex:1}.side-tabs .tabs .tab-list-footer li .btn[data-v-6139718a]{flex:1 1;display:flex;justify-content:center}.side-tabs .tabs .tab-list-footer li .btn[data-v-6139718a]:focus-visible{outline:2px solid var(--primary-keyboard-focus)}.side-tabs .tabs .tab-list-footer li button[data-v-6139718a]:first-of-type{border-top:solid 1px var(--border);border-right:solid 1px var(--border);border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:0}.side-tabs .tabs .tab-list-footer li button[data-v-6139718a]:last-of-type{border-top:solid 1px var(--border);border-top-right-radius:0;border-top-left-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0}.side-tabs .tab-container[data-v-6139718a]{width:calc(100% - 200px);flex-grow:1;background-color:var(--body-bg)}",""]),t["default"]=s},32101:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".tag[data-v-0d281a35]{border-radius:var(--border-radius);color:var(--tag-primary);background-color:var(--tag-bg);padding:4px 6px 3px 6px;font-size:12px}",""]),t["default"]=s},85133:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".outer-container[data-v-deb715a0]{display:flex;flex-direction:column;flex:1;padding:0;justify-content:space-between}.header[data-v-deb715a0]{display:flex;align-content:space-between;align-items:center;margin-bottom:20px;border-bottom:var(--header-border-size) solid var(--header-border)}.header .step-sequence[data-v-deb715a0],.header>.title[data-v-deb715a0]{flex:1;min-height:60px;display:flex}.header .step-sequence .steps[data-v-deb715a0]{flex:1;margin:0 30px;display:flex;justify-content:space-between;list-style-type:none;padding:0}.header .step-sequence .steps[data-v-deb715a0]:focus{outline:none;box-shadow:none}.header .step-sequence .steps li.step[data-v-deb715a0]{display:flex;flex-direction:row;flex-grow:1;align-items:center}.header .step-sequence .steps li.step>span>span[data-v-deb715a0]:last-of-type{padding-bottom:0}.header .step-sequence .steps li.step[data-v-deb715a0]:last-of-type{flex-grow:0}.header .step-sequence .steps li.step .controls[data-v-deb715a0]{display:flex;flex-direction:column;align-items:center;width:40px;overflow:visible;padding-top:7px}.header .step-sequence .steps li.step .controls>span[data-v-deb715a0]{padding-bottom:3px;margin-bottom:5px;white-space:nowrap}.header .step-sequence .steps li.step.active .controls[data-v-deb715a0]{color:var(--primary)}.header .step-sequence .steps li.step:not(.disabled) .controls[data-v-deb715a0]:hover>*{color:var(--primary)!important;cursor:pointer}.header .step-sequence .steps li.step:not(.active) .controls[data-v-deb715a0]>*{color:var(--input-disabled-text);text-decoration:none}.header .step-sequence .steps .divider[data-v-deb715a0]{flex-basis:100%;border-top:1px solid var(--border);position:relative;top:17px}.cru__content .header .step-sequence .steps .divider[data-v-deb715a0]{top:13px}.header .choice-banner[data-v-deb715a0]{flex-basis:40%;display:flex;align-items:center;margin-bottom:10px}.header .choice-banner.selected[data-v-deb715a0]{background-color:var(--accent-btn)}.header .choice-banner.top H2[data-v-deb715a0]{margin:0}.header .choice-banner.top .title[data-v-deb715a0]{display:flex;align-items:center;justify-content:space-evenly;position:relative}.header .choice-banner.top .title>.subtitle[data-v-deb715a0]{margin-right:20px}.header .choice-banner.top .subtitle[data-v-deb715a0]{display:flex;flex-direction:column}.header .choice-banner.top .subtitle .subtext[data-v-deb715a0]{color:var(--input-label)}.header .choice-banner[data-v-deb715a0]:not(.top){box-shadow:0 0 12px 3px var(--box-bg);flex-direction:row;align-items:center;justify-content:start}.header .choice-banner[data-v-deb715a0]:not(.top):hover{outline:var(--outline-width) solid var(--outline);cursor:pointer}.header .choice-banner .round-image[data-v-deb715a0]{min-width:50px;height:50px;margin:10px 10px 10px 0;border-radius:50%;overflow:hidden}.header .choice-banner .round-image .logo[data-v-deb715a0]{min-width:50px;height:50px}.step-container[data-v-deb715a0]{position:relative;flex:1 1 auto;height:0;overflow-y:auto;padding:20px 2px 2px 2px;display:flex;flex-direction:column}.step-container__step[data-v-deb715a0]{overflow:hidden;display:flex;flex-direction:column;flex:1}.footer-error[data-v-deb715a0]{margin-top:-40px;margin-bottom:70px}.controls-row[data-v-deb715a0]{margin-left:-24px;margin-right:-24px;padding:10px 24px;display:flex;justify-content:space-between;padding-top:10px;border-top:var(--header-border-size) solid var(--header-border);position:absolute;bottom:0;width:100%;background:var(--body-bg)}.controls-row .controls-steps .btn[data-v-deb715a0]{margin-left:10px}",""]),t["default"]=s},66882:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".yaml-editor{display:flex;flex-direction:column}.yaml-editor .fill{flex:1}.yaml-editor .codemirror-container{position:relative}.yaml-editor .codemirror-container .CodeMirror,.yaml-editor .codemirror-container .CodeMirror .CodeMirror-gutters{background-color:var(--yaml-editor-bg)}.yaml-editor .diff-mode{background-color:var(--diff-header-bg);padding:5px 5px;border-bottom-right-radius:0;border-bottom-left-radius:0}.yaml-editor .d2h-file-wrapper{border-top-right-radius:0}",""]),t["default"]=s},73448:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".box[data-v-5002fd75],.title[data-v-5002fd75]{margin-bottom:10px}.box[data-v-5002fd75]{display:grid;grid-template-columns:auto 75px;align-items:center}.box .value[data-v-5002fd75]{flex:1}.box .value INPUT[data-v-5002fd75]{height:40px}.box.hide-remove-is-view[data-v-5002fd75]{grid-template-columns:auto}.remove[data-v-5002fd75]{text-align:right}.footer .protip[data-v-5002fd75]{float:right;padding:5px 0}.required[data-v-5002fd75]{color:var(--error)}",""]),t["default"]=s},67271:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".array-list-grouped>.box{position:relative;display:block}.array-list-grouped>.box>.remove{position:absolute;top:0;right:0}.array-list-grouped>.box>.info-box{margin-bottom:0;padding-right:25px}",""]),t["default"]=s},47460:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".color-input[data-v-66bade12]{border:1px solid var(--border);border-radius:var(--border-radius);padding:10px}.color-input[data-v-66bade12]:focus-visible{outline:2px solid var(--primary-keyboard-focus)}.color-input.disabled[data-v-66bade12],.color-input.disabled .selected[data-v-66bade12],.color-input[disabled][data-v-66bade12],.color-input[disabled][data-v-66bade12]:hover{color:var(--input-disabled-text);background-color:var(--input-disabled-bg);outline-width:0;border-color:var(--input-disabled-border);cursor:not-allowed}.color-input.disabled .selected div[data-v-66bade12],.color-input.disabled .selected input[data-v-66bade12],.color-input.disabled .selected label[data-v-66bade12],.color-input.disabled .selected span[data-v-66bade12],.color-input.disabled div[data-v-66bade12],.color-input.disabled input[data-v-66bade12],.color-input.disabled label[data-v-66bade12],.color-input.disabled span[data-v-66bade12],.color-input[disabled] div[data-v-66bade12],.color-input[disabled] input[data-v-66bade12],.color-input[disabled] label[data-v-66bade12],.color-input[disabled] span[data-v-66bade12],.color-input[disabled]:hover div[data-v-66bade12],.color-input[disabled]:hover input[data-v-66bade12],.color-input[disabled]:hover label[data-v-66bade12],.color-input[disabled]:hover span[data-v-66bade12]{cursor:not-allowed!important}.color-input.disabled .selected label[data-v-66bade12],.color-input.disabled label[data-v-66bade12],.color-input[disabled] label[data-v-66bade12],.color-input[disabled]:hover label[data-v-66bade12]{color:var(--input-disabled-label);display:inline-block;z-index:1}.color-input.disabled .selected[data-v-66bade12]::-moz-placeholder,.color-input.disabled[data-v-66bade12]::-moz-placeholder,.color-input[disabled][data-v-66bade12]::-moz-placeholder,.color-input[disabled][data-v-66bade12]:hover::-moz-placeholder{color:var(--input-disabled-placeholder)}.color-input.disabled .selected[data-v-66bade12]::placeholder,.color-input.disabled[data-v-66bade12]::placeholder,.color-input[disabled][data-v-66bade12]::placeholder,.color-input[disabled][data-v-66bade12]:hover::placeholder{color:var(--input-disabled-placeholder)}.color-input LABEL[data-v-66bade12]{display:block}.color-input .preview-container[data-v-66bade12]:hover{cursor:pointer}.color-input .preview-container .color-value[data-v-66bade12]{margin-left:4px}.color-input .color-display[data-v-66bade12]{border:1px solid var(--border)}.color-input .color-display[data-v-66bade12]:focus{outline:none;box-shadow:0 0 0 var(--outline-width) var(--outline);background:var(--input-focus-bg)}.color-input INPUT[data-v-66bade12]{border:none;padding:0;width:23px;height:23px;-webkit-appearance:none;opacity:0}.color-input INPUT[data-v-66bade12]:hover{cursor:pointer}",""]),t["default"]=s},26314:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,'.buttons{display:grid;grid-template-areas:"left right";grid-template-columns:"min-content auto"}.buttons .left{grid-area:left;text-align:left}.buttons .left .btn,.buttons .left button{margin:0 1.75% 0 0}.buttons .right{grid-area:right;text-align:right}.buttons .right .btn,.buttons .right button{margin:0 0 0 1.75%}',""]),t["default"]=s},38238:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".input-container[data-v-035f9ce5]{display:flex}.input-container.select-after[data-v-035f9ce5]{height:100%;flex-direction:row-reverse}.input-container.select-after .input-string[data-v-035f9ce5]{border-radius:var(--border-radius) 0 0 var(--border-radius);border-right:0;border-left-width:1px}.input-container.select-after .in-input[data-v-035f9ce5]{border-radius:0 var(--border-radius) var(--border-radius) 0}.input-container.select-after .in-input.labeled-select .selected[data-v-035f9ce5]{color:var(--input-text);text-align:center;margin-right:1em}.input-container.select-after .in-input.focused[data-v-035f9ce5]:not(.vs__dropdown-up){border-bottom-right-radius:0}.input-container.select-after .in-input.focused.vs__dropdown-up[data-v-035f9ce5]{border-top-right-radius:0}.input-container.select-after .input-string.focused[data-v-035f9ce5],.input-container.select-after .input-string[data-v-035f9ce5]:focus,.input-container.select-after .input-string[data-v-035f9ce5]:hover:not(.focused):not(.disabled):not(:focus){padding-left:10px!important}.input-container .input-string[data-v-035f9ce5]{padding-right:0;width:60%;flex-grow:1;border-radius:0 var(--border-radius) var(--border-radius) 0;border-left-width:0;margin-left:-1px;position:relative;display:table;border-collapse:separate}.input-container .input-string[data-v-035f9ce5]:hover:not(.focused):not(.disabled):not(:focus):not(.view){border-left:1px solid var(--input-hover-border);border-right:1px solid var(--input-hover-border);padding-left:9px}.input-container .input-string.focused[data-v-035f9ce5],.input-container .input-string[data-v-035f9ce5]:focus{border-left:1px solid var(--outline)!important;border-right:1px solid var(--outline)!important;padding-left:9px}.input-container .in-input[data-v-035f9ce5]{margin-right:0}.input-container .in-input[data-v-035f9ce5]:hover:not(.focused):not(.disabled),.input-container .in-input[data-v-035f9ce5]:hover:not(.focused):not(.disabled):not(.view){border:1px solid var(--input-hover-border)!important}.input-container .in-input.focused[data-v-035f9ce5]{border:1px solid var(--outline)!important}.input-container .in-input.labeled-select.focused[data-v-035f9ce5] ,.input-container .in-input.unlabeled-select.focused[data-v-035f9ce5] {outline:none}.input-container .in-input.labeled-select[data-v-035f9ce5]:not(.disabled):not(.view) ,.input-container .in-input.unlabeled-select[data-v-035f9ce5]:not(.disabled):not(.view) {border:solid 1px var(--input-border)}.input-container .in-input.labeled-select[data-v-035f9ce5] ,.input-container .in-input.unlabeled-select[data-v-035f9ce5] {box-shadow:none;width:20%;margin-right:1px}.input-container .in-input.labeled-select[data-v-035f9ce5] .vs__selected,.input-container .in-input.unlabeled-select[data-v-035f9ce5] .vs__selected{color:var(--input-text)}.input-container .in-input.labeled-select[data-v-035f9ce5] .vs__dropdown-menu,.input-container .in-input.unlabeled-select[data-v-035f9ce5] .vs__dropdown-menu{box-shadow:none}.input-container .in-input.labeled-select[data-v-035f9ce5] .vs__dropdown-menu .vs__dropdown-option,.input-container .in-input.unlabeled-select[data-v-035f9ce5] .vs__dropdown-menu .vs__dropdown-option{padding:3px 5px}.input-container .in-input.labeled-select[data-v-035f9ce5] .v-select:not(.vs--disabled) .vs__dropdown-toggle,.input-container .in-input.unlabeled-select[data-v-035f9ce5] .v-select:not(.vs--disabled) .vs__dropdown-toggle{border-radius:var(--border-radius) 0 0 var(--border-radius)}.input-container .in-input.labeled-select[data-v-035f9ce5] .v-select:not(.vs--disabled).vs--open .vs__dropdown-toggle,.input-container .in-input.unlabeled-select[data-v-035f9ce5] .v-select:not(.vs--disabled).vs--open .vs__dropdown-toggle{color:var(--outline)!important}",""]),t["default"]=s},5828:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".labeled-select[data-v-49770c4a]{position:relative;padding-bottom:1px}.labeled-select.no-label.compact-input[data-v-49770c4a] .vs__actions:after{top:-2px}.labeled-select.no-label.compact-input .labeled-container[data-v-49770c4a]{padding:5px 0 1px 10px}.labeled-select.no-label[data-v-49770c4a]:not(.compact-input){height:61px;padding-top:4px}.labeled-select.no-label[data-v-49770c4a]:not(.compact-input) .vs__actions:after{top:0}.labeled-select .icon-spinner[data-v-49770c4a]{position:absolute;left:calc(50% - .5em);top:calc(50% - .5em)}.labeled-select .labeled-container[data-v-49770c4a]{padding:7px 0 0 10px;padding:10px 0 0 10px}.labeled-select .labeled-container label[data-v-49770c4a]{margin:0}.labeled-select .labeled-container .selected[data-v-49770c4a]{background-color:transparent}.labeled-select.view.labeled-input .labeled-container[data-v-49770c4a]{padding:0}.labeled-select.taggable.compact-input[data-v-49770c4a]{min-height:40px}.labeled-select.taggable.compact-input[data-v-49770c4a] .vs__selected-options{padding-top:8px!important}.labeled-select.taggable[data-v-49770c4a]:not(.compact-input){min-height:61px}.labeled-select.taggable[data-v-49770c4a]:not(.compact-input) .vs__selected-options{margin-top:0}.labeled-select[data-v-49770c4a]:not(.taggable) .vs__selected-options .vs__selected{width:100%}.labeled-select.taggable[data-v-49770c4a] .vs__selected-options{padding:3px 0}.labeled-select.taggable[data-v-49770c4a] .vs__selected-options .vs__selected{border-color:var(--accent-btn);height:20px;min-height:unset!important;padding:0 0 0 7px!important}.labeled-select.taggable[data-v-49770c4a] .vs__selected-options .vs__selected>button{height:20px;line-height:14px}.labeled-select.taggable[data-v-49770c4a] .vs__selected-options .vs__selected>button:hover{background-color:var(--primary);border-radius:0}.labeled-select.taggable[data-v-49770c4a] .vs__selected-options .vs__selected>button:hover:after{color:#fff}.labeled-select[data-v-49770c4a] .vs__selected-options{margin-top:-5px}.labeled-select[data-v-49770c4a] .v-select:not(.vs--single) .vs__selected-options{padding:5px 0}.labeled-select[data-v-49770c4a] .vs__actions:after{position:relative;top:-10px}.labeled-select[data-v-49770c4a] .v-select.vs--open .vs__dropdown-toggle{color:var(--outline)!important}[data-v-49770c4a] .labeled-select.disabled .labeled-container,[data-v-49770c4a] .labeled-select.disabled .vs__dropdown-toggle,[data-v-49770c4a] .labeled-select.disabled input,[data-v-49770c4a] .labeled-select.disabled label{cursor:not-allowed}.labeled-select .no-label[data-v-49770c4a] .v-select:not(.vs--single){min-height:33px}.labeled-select .no-label[data-v-49770c4a] .selected{padding-top:8px;padding-bottom:9px;position:relative;max-height:2.3em;overflow:hidden}.labeled-select .no-label[data-v-49770c4a] .vs__selected-options{padding:8px 0 7px 0}.vs__dropdown-menu .vs__dropdown-option .vs__option-kind-group[data-v-49770c4a]{display:flex;align-items:center}.vs__dropdown-menu .vs__dropdown-option .vs__option-kind-group i[data-v-49770c4a]{width:18px}.vs__dropdown-menu .vs__dropdown-option .vs__option-kind-group>b[data-v-49770c4a]{flex:1}.vs__dropdown-menu .vs__dropdown-option .vs__option-kind-group>div[data-v-49770c4a]{background-color:var(--primary);border-radius:4px;color:var(--primary-text);font-size:12px;height:18px;line-height:18px;margin-top:1px;padding:0 10px}.vs__dropdown-menu .vs__dropdown-option .vs__option-kind.has-icon[data-v-49770c4a],.vs__dropdown-menu.has-icon .vs__option-kind div[data-v-49770c4a]{padding-left:18px}.vs__dropdown-menu .pagination-slot[data-v-49770c4a]{display:flex;align-items:center;justify-content:center;position:relative;margin-top:5px}.vs__dropdown-menu .pagination-slot .load-more[data-v-49770c4a]{display:flex;align-items:center;height:19px}.vs__dropdown-menu .pagination-slot .load-more a[data-v-49770c4a]{cursor:pointer}.vs__dropdown-menu .pagination-slot .count[data-v-49770c4a]{position:absolute;right:10px}.vs__dropdown-menu .no-options-slot .paginating[data-v-49770c4a]{display:flex;align-items:center;justify-content:center}.vs__dropdown-option>.option-kind-highlighted[data-v-49770c4a]{color:var(--dropdown-highlight-text)}.vs__dropdown-option.vs__dropdown-option--highlight>.option-kind-highlighted[data-v-49770c4a],.vs__dropdown-option.vs__dropdown-option--selected>.option-kind-highlighted[data-v-49770c4a],.vs__dropdown-option>.option-kind-highlighted[data-v-49770c4a]:hover{color:var(--dropdown-hover-text)}.vs__dropdown-menu .vs__dropdown-option .only-user-opts[data-v-49770c4a]{color:var(--dropdown-text);background-color:var(--dropdown-bg);margin:0 -5px;padding:3px 20px}",""]),t["default"]=s},62922:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".unlabeled-select[data-v-9f939fd8]{position:relative}.unlabeled-select[data-v-9f939fd8] .v-select.select-input-view .vs__actions{visibility:hidden}.unlabeled-select .vs--multiple[data-v-9f939fd8] .vs__selected-options .vs__selected{width:auto}.unlabeled-select[data-v-9f939fd8] .labeled-tooltip.error .status-icon{top:7px;right:2px}.unlabeled-select[data-v-9f939fd8] .vs__selected-options{display:flex;margin:3px}.unlabeled-select[data-v-9f939fd8] .vs__selected-options .vs__selected{width:auto}.unlabeled-select[data-v-9f939fd8] .v-select.vs--open .vs__dropdown-toggle{color:var(--outline)!important}.unlabeled-select.focused.success[data-v-9f939fd8],.unlabeled-select.success[data-v-9f939fd8]{border:solid 1px var(--success)}.unlabeled-select.focused.success .selected[data-v-9f939fd8],.unlabeled-select.focused.success .vs__actions[data-v-9f939fd8]:after,.unlabeled-select.focused.success input[data-v-9f939fd8],.unlabeled-select.success .selected[data-v-9f939fd8],.unlabeled-select.success .vs__actions[data-v-9f939fd8]:after,.unlabeled-select.success input[data-v-9f939fd8]{color:var(--success)}.unlabeled-select.focused.warning[data-v-9f939fd8],.unlabeled-select.warning[data-v-9f939fd8]{border:solid 1px var(--warning)}.unlabeled-select.focused.warning .selected[data-v-9f939fd8],.unlabeled-select.focused.warning .vs__actions[data-v-9f939fd8]:after,.unlabeled-select.focused.warning input[data-v-9f939fd8],.unlabeled-select.warning .selected[data-v-9f939fd8],.unlabeled-select.warning .vs__actions[data-v-9f939fd8]:after,.unlabeled-select.warning input[data-v-9f939fd8]{color:var(--warning)}.unlabeled-select.error[data-v-9f939fd8],.unlabeled-select.focused.error[data-v-9f939fd8]{border:solid 1px var(--error)}.unlabeled-select.error .vs__actions[data-v-9f939fd8]:after,.unlabeled-select.error>label[data-v-9f939fd8],.unlabeled-select.focused.error .vs__actions[data-v-9f939fd8]:after,.unlabeled-select.focused.error>label[data-v-9f939fd8]{color:var(--error)}.unlabeled-select.compact-input[data-v-9f939fd8]{min-height:40px;line-height:18px}",""]),t["default"]=s},83858:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".secret-selector{width:100%}.secret-selector label{display:block}.secret-selector .labeled-select{min-height:61px}.secret-selector .vs__selected-options{padding:8px 0 7px 0}.secret-selector label{display:inline-block}.secret-selector.show-key-selector .input-container>*{display:inline-block;width:50%}.secret-selector.show-key-selector .input-container>.labeled-select.focused{z-index:10}.secret-selector.show-key-selector .input-container>:first-child{border-top-right-radius:0;border-bottom-right-radius:0;margin-right:0}.secret-selector.show-key-selector .input-container>:last-child{border-top-left-radius:0;border-bottom-left-radius:0;border-left:none;float:right}",""]),t["default"]=s},58625:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".addon.with-tooltip[data-v-e5242b74]{padding-right:42px}",""]),t["default"]=s},38276:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,'.parent[data-v-5ad5aa7a]{display:grid;grid-template-areas:"progress text";grid-template-columns:auto 80px;align-items:center}.parent .progress[data-v-5ad5aa7a]{background-color:#b8c3dc;width:100%}.parent .progress-box[data-v-5ad5aa7a]{grid-area:progress}.parent .text[data-v-5ad5aa7a]{grid-area:text;text-align:center}',""]),t["default"]=s},38589:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,"svg.text[data-v-5f78e642]{fill:red}",""]),t["default"]=s},25832:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".favorite[data-v-bc643bc4]{position:relative;cursor:pointer;font-size:20px;transform:ease-in-out-all 1s}.favorite.icon-star-open[data-v-bc643bc4]{color:var(--muted)}.favorite.icon-star-closed[data-v-bc643bc4]{color:var(--body-text)}.favorite[data-v-bc643bc4]:focus-visible{outline:2px solid var(--primary-keyboard-focus)}",""]),t["default"]=s},28232:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".receiver .box-container.create-resource-container{display:flex;justify-content:space-between;flex-wrap:wrap;margin:0 -10px}.receiver .box-container.create-resource-container .subtype-banner{justify-content:space-between;align-items:center;flex-direction:row}.receiver .right{padding:30px;border-left:1px solid var(--border)}.receiver .logo{text-align:center;width:60px;height:60px;border-radius:calc(var(--border-radius)*2);overflow:hidden;background-color:#fff;display:inline-block;vertical-align:middle}.receiver .logo img{width:56px;height:56px;-o-object-fit:contain;object-fit:contain;position:relative;top:2px}.receiver .name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:0;display:inline-block;vertical-align:middle}",""]),t["default"]=s},42836:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".responders-heading[data-v-174af1a6]{display:grid;grid-template-columns:auto 75px}.responder[data-v-174af1a6],.responder .target-container[data-v-174af1a6]{width:100%}.responder .target-container[data-v-174af1a6] .unlabeled-select{min-width:35%;height:100%}.responder .target[data-v-174af1a6]{height:100%}",""]),t["default"]=s},32397:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".description[data-v-07ec0ff4]{font-weight:600}",""]),t["default"]=s},95671:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".text.info[data-v-7155ccc2]{display:flex;align-items:center}.text.info>span[data-v-7155ccc2]{margin-right:5px}",""]),t["default"]=s},71286:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".delete-warning[data-v-017c9f08]{color:var(--error)}.remove-project-dialog[data-v-017c9f08]{border:1px solid var(--border);padding:10px;border-radius:5px}.remove-project-dialog .display-name[data-v-017c9f08]{font-weight:700}",""]),t["default"]=s},59766:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".text.info[data-v-224f553f]{display:flex;align-items:center}.text.info>span[data-v-224f553f]{margin-right:5px}",""]),t["default"]=s},78268:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".body[data-v-44bed663]{font-weight:600}.actions[data-v-44bed663]{text-align:right}",""]),t["default"]=s},99365:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".badge-state[data-v-544b3117]{align-items:center;display:inline-flex;padding:2px 10px;border:1px solid transparent;border-radius:20px}.badge-state.bg-info[data-v-544b3117]{color:var(--on-info-banner);background:var(--info-badge,var(--info-banner))}.badge-state.bg-error[data-v-544b3117]{color:var(--on-error-banner);background:var(--error-badge,var(--error-banner))}.badge-state.bg-warning[data-v-544b3117]{color:var(--on-warning-banner);background:var(--warning-badge,var(--warning-banner))}.badge-state.bg-success[data-v-544b3117]{color:var(--on-success-banner,var(--success-text));background:var(--success-badge,var(--success))}.badge-state.badge-disabled[data-v-544b3117]{color:var(--badge-state-disabled-text);background-color:var(--badge-state-disabled-bg);border:1px solid var(--badge-state-disabled-border)}",""]),t["default"]=s},28811:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".sortable-table TD .badge-state{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;word-wrap:break-word;display:inline-block;max-width:100%;position:relative;max-width:110px;font-size:.85em;vertical-align:middle}",""]),t["default"]=s},43481:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".banner[data-v-79a84b17]{display:flex;margin:15px 0;position:relative;width:100%;color:var(--body-text)}.banner__icon[data-v-79a84b17]{width:48px;flex-grow:1;display:flex;justify-content:center;align-items:center;box-sizing:content-box}.primary .banner__icon[data-v-79a84b17]{background:var(--primary)}.secondary .banner__icon[data-v-79a84b17]{background:var(--default)}.success .banner__icon[data-v-79a84b17]{background:var(--success)}.info .banner__icon[data-v-79a84b17]{background:var(--info)}.warning .banner__icon[data-v-79a84b17]{background:var(--warning)}.error .banner__icon[data-v-79a84b17]{background:var(--error);color:var(--primary-text)}.banner.banner-disabled[data-v-79a84b17]{filter:grayscale(1)}.banner__content[data-v-79a84b17]{padding:10px;transition:all .2s ease;line-height:20px;width:100%;border-left:4px solid transparent;display:flex;gap:3px}.primary .banner__content[data-v-79a84b17]{background:var(--primary);border-color:var(--primary)}.secondary .banner__content[data-v-79a84b17]{background:var(--default-banner-bg);border-color:var(--default)}.success .banner__content[data-v-79a84b17]{background:var(--success-banner-bg);border-color:var(--success)}.info .banner__content[data-v-79a84b17]{background:var(--info-banner-bg);border-color:var(--info)}.warning .banner__content[data-v-79a84b17]{background:var(--warning-banner-bg);border-color:var(--warning);color:var(--warning-banner-text,var(--body-text))}.error .banner__content[data-v-79a84b17]{background:var(--error-banner-bg);border-color:var(--error);color:var(--error-banner-text,var(--error))}.banner__content.stacked[data-v-79a84b17]{padding:0 10px;margin:0;transition:none}.banner__content.stacked[data-v-79a84b17]:first-child{padding-top:10px}.banner__content.stacked[data-v-79a84b17]:last-child{padding-bottom:10px}.banner__content.closable[data-v-79a84b17]{padding-right:48px}.banner__content__closer[data-v-79a84b17]{display:flex;align-items:center;cursor:pointer;position:absolute;top:0;right:0;bottom:0;width:24px;line-height:24px;text-align:center;outline:none}.banner__content__closer .closer-icon[data-v-79a84b17]{opacity:.7}.banner__content__closer .closer-icon[data-v-79a84b17]:hover{opacity:1;color:var(--link)}.banner__content__closer:focus-visible i[data-v-79a84b17]{outline:2px solid var(--primary-keyboard-focus);outline-offset:2px}.banner__content.icon[data-v-79a84b17]{border-left:none}",""]),t["default"]=s},45042:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".card-container.highlight-border[data-v-52307124]{border-left:5px solid var(--primary)}.card-container[data-v-52307124]{border-radius:var(--border-radius);display:flex;flex-basis:40%;margin:10px;min-height:100px;padding:10px;box-shadow:0 0 20px var(--shadow)}.card-container[data-v-52307124]:not(.top){align-items:top;flex-direction:row;justify-content:start}.card-container .card-wrap[data-v-52307124]{width:100%}.card-container .card-body[data-v-52307124]{color:var(--input-label);display:flex;flex-direction:column;justify-content:center}.card-container .card-actions[data-v-52307124]{align-self:end;display:flex;padding-top:20px}.card-container .card-title[data-v-52307124]{align-items:center;display:flex;width:100%}.card-container .card-title h5[data-v-52307124]{margin:0}.card-container .card-title .flex-right[data-v-52307124]{margin-left:auto}.card-container.card-sticky[data-v-52307124]{overflow:hidden}.card-container.card-sticky .card-wrap[data-v-52307124]{display:flex;flex-direction:column}.card-container.card-sticky .card-wrap .card-body[data-v-52307124]{justify-content:flex-start;overflow:auto}.card-container.card-sticky .card-wrap[data-v-52307124]>*{flex:0}.card-container.card-sticky .card-wrap .card-body[data-v-52307124]{flex:1}",""]),t["default"]=s},26155:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,'.checkbox-outer-container[data-v-5376b6f7]{display:inline-flex;flex-direction:column}.checkbox-outer-container-description[data-v-5376b6f7]{color:var(--input-label);opacity:.8}.checkbox-outer-container-description[data-v-5376b6f7],.checkbox-outer-container-extra[data-v-5376b6f7]{font-size:14px;margin-left:19px;margin-top:5px}.checkbox-container[data-v-5376b6f7]{position:relative;display:inline-flex;align-items:center;margin:0;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;border-radius:var(--border-radius)}.checkbox-container .checkbox-label[data-v-5376b6f7]{color:var(--input-label);display:inline-flex;margin:0 10px 0 5px}.checkbox-container .checkbox-label.checkbox-primary[data-v-5376b6f7]{color:inherit;font-weight:600}.checkbox-container .checkbox-info[data-v-5376b6f7]{line-height:normal;margin-left:4px}.checkbox-container .checkbox-info[data-v-5376b6f7]:focus-visible{outline:2px solid var(--primary-keyboard-focus);outline-offset:2px}.checkbox-container .checkbox-custom[data-v-5376b6f7]{height:14px;width:14px;background-color:var(--body-bg);border-radius:var(--border-radius);border:1px solid var(--input-border);flex-shrink:0}.checkbox-container .checkbox-custom[data-v-5376b6f7]:focus-visible{outline:2px solid var(--primary-keyboard-focus);outline-offset:2px;border-radius:0}.checkbox-container .checkbox-custom[data-v-5376b6f7]:focus{outline:2px solid var(--primary-keyboard-focus);outline-offset:2px;border-radius:0}.checkbox-container input[data-v-5376b6f7]{opacity:0;position:absolute;z-index:-1}.checkbox-container input:focus-visible~.checkbox-custom[data-v-5376b6f7]{outline:2px solid var(--primary-keyboard-focus);outline-offset:2px;border-radius:0}.checkbox-container input:checked~.checkbox-custom[data-v-5376b6f7]{background-color:var(--active,var(--primary));transform:rotate(0deg) scale(1);opacity:1;border:1px solid var(--checkbox-border,var(--primary))}.checkbox-container .checkbox-custom[data-v-5376b6f7]:after{position:absolute;content:"";left:0;top:0;height:0;width:0;border-radius:var(--border-radius);border:solid;border-color:var(--input-text);border-width:0 3px 3px 0;transform:rotate(0deg) scale(0);opacity:1}.checkbox-container input:checked~.checkbox-custom[data-v-5376b6f7]:after{transform:rotate(45deg) scale(1);opacity:1;left:4px;width:4px;height:10px;border:solid;border-color:var(--checkbox-tick);border-width:0 2px 2px 0;background-color:transparent}.checkbox-container input:checked~.checkbox-custom.indeterminate[data-v-5376b6f7]:after{transform:scale(1);opacity:1;left:3px;top:2px;width:6px;height:5px;border:solid;border-color:var(--checkbox-tick);border-width:0 0 2px 0;background-color:transparent}.checkbox-container.disabled .checkbox-custom[data-v-5376b6f7],.checkbox-container.disabled input:checked~.checkbox-custom[data-v-5376b6f7]{background-color:var(--checkbox-disabled-bg);border-color:var(--checkbox-disabled-bg)}.checkbox-container.disabled input:checked~.checkbox-custom[data-v-5376b6f7]:after{border-color:var(--checkbox-tick-disabled)}.checkbox-container.disabled[data-v-5376b6f7]{cursor:not-allowed}.checkbox-container .checkbox-view[data-v-5376b6f7]{display:flex;flex-direction:column}.checkbox-container .checkbox-view LABEL[data-v-5376b6f7]{color:var(--input-label)}',""]),t["default"]=s},14531:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".labeled-input.view input[data-v-5d87d62b]{text-overflow:ellipsis}.hideArrows input[data-v-5d87d62b]::-webkit-inner-spin-button,.hideArrows input[data-v-5d87d62b]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.hideArrows input[type=number][data-v-5d87d62b]{-moz-appearance:textfield}",""]),t["default"]=s},37746:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".radio-view[data-v-72e20a8d]{display:flex;flex-direction:column}.radio-view LABEL[data-v-72e20a8d]{color:var(--input-label)}.radio-group .text-label[data-v-72e20a8d]{display:block;padding-bottom:5px}.radio-container[data-v-72e20a8d]{position:relative;display:inline-flex;align-items:flex-start;margin:0;left:-4px;-webkit-user-select:none;-moz-user-select:none;user-select:none;border-radius:var(--border-radius);padding-bottom:5px;padding-left:4px}.radio-container[data-v-72e20a8d],.radio-container .radio-button-outer-container-description[data-v-72e20a8d],.radio-container .radio-label[data-v-72e20a8d]{cursor:pointer}.radio-container.disabled[data-v-72e20a8d],.radio-container.disabled .radio-button-outer-container-description[data-v-72e20a8d],.radio-container.disabled .radio-label[data-v-72e20a8d]{cursor:not-allowed}.radio-container .radio-custom[data-v-72e20a8d]{height:14px;width:14px;min-height:14px;min-width:14px;background-color:var(--input-bg);border-radius:50%;border:1.5px solid var(--input-border);margin-top:5px}.radio-container input[data-v-72e20a8d]{display:none}.radio-container .radio-custom[aria-checked=true][data-v-72e20a8d]{background-color:var(--active,var(--primary));transform:rotate(0deg) scale(1);opacity:1;border:1.5px solid var(--active,var(--primary))}.radio-container .radio-custom[aria-checked=true].text-muted[data-v-72e20a8d]{opacity:.25}.radio-container input:disabled~.radio-custom[data-v-72e20a8d]:not([aria-checked=true]){background-color:var(--disabled-bg);opacity:.25}.radio-container .radio-button-outer-container-description[data-v-72e20a8d]{color:var(--input-label);font-size:11px;margin-top:5px}.radio-container .labeling[data-v-72e20a8d]{display:inline-flex;flex-direction:column;margin:3px 10px 0 5px}",""]),t["default"]=s},86951:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".radio-group[data-v-275b96ee]:focus,.radio-group[data-v-275b96ee]:focus-visible{border:none;outline:none}.radio-group:focus-visible .radio-button-checked[data-v-275b96ee]{outline:2px solid var(--primary-keyboard-focus)}.radio-group h3[data-v-275b96ee]{position:relative}.radio-group.row[data-v-275b96ee]{display:flex}.radio-group.row .radio-container[data-v-275b96ee]{margin-right:10px}.radio-group .label[data-v-275b96ee]{font-size:14px!important}",""]),t["default"]=s},53982:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,'.toggle-container[data-v-107e8d19]{align-items:center;display:flex}.toggle-container span[data-v-107e8d19]:first-child{padding-right:6px}.toggle-container span[data-v-107e8d19]:last-child{padding-left:6px}.toggle-container.toggle-disabled[data-v-107e8d19]{pointer-events:none}.toggle-container.toggle-disabled .slider[data-v-107e8d19]{background-color:var(--checkbox-disabled-bg)}.toggle-container.toggle-disabled .slider[data-v-107e8d19]:before{opacity:.6}.switch[data-v-107e8d19]{position:relative;display:inline-block;width:48px;height:24px}.switch input[data-v-107e8d19]{opacity:0;width:0;height:0}.slider[data-v-107e8d19]{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:var(--checkbox-disabled-bg);transition:.4s}.slider.focus[data-v-107e8d19]{outline:2px solid var(--primary-keyboard-focus);outline-offset:2px;transition:0s}.slider[data-v-107e8d19]:before{position:absolute;content:"";height:16px;width:16px;left:4px;bottom:4px;background-color:var(--checkbox-tick);transition:.4s}input:checked+.slider[data-v-107e8d19]{background-color:var(--checkbox-ticked-bg)}input:focus+.slider[data-v-107e8d19]{box-shadow:0 0 1px var(--checkbox-ticked-bg)}input:checked+.slider[data-v-107e8d19]:before{transform:translateX(24px)}.slider.round[data-v-107e8d19]{border-radius:34px}.slider.round[data-v-107e8d19]:before{border-radius:50%}',""]),t["default"]=s},66181:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".labeled-tooltip[data-v-0217a440]{position:absolute;width:100%;height:100%;left:0;top:0}.labeled-tooltip.hoverable[data-v-0217a440]{height:0}.labeled-tooltip .status-icon[data-v-0217a440]{position:absolute;right:30px;top:18px;z-index:3}.labeled-tooltip.error .status-icon[data-v-0217a440]{color:var(--error);top:7px;right:5px}.labeled-tooltip.warning .status-icon[data-v-0217a440]{color:var(--warning)}.labeled-tooltip.success .status-icon[data-v-0217a440]{color:var(--success)}",""]),t["default"]=s},57051:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".rc-tag[data-v-033f89b8]{display:inline-flex;padding:1px 8px;align-items:center;gap:8px;border-radius:4px;border:1px solid var(--rc-active-border);overflow:hidden;text-overflow:ellipsis;font-family:Lato;font-size:13px;font-style:normal;font-weight:400;line-height:22px;color:var(--body-text)}.rc-tag button[data-v-033f89b8]{padding:0;line-height:12px;min-height:12px;background:none}.rc-tag button[data-v-033f89b8],.rc-tag button .icon-close[data-v-033f89b8]{width:12px;height:12px;font-size:12px}.rc-tag.disabled button[data-v-033f89b8]{cursor:not-allowed}.rc-tag.active[data-v-033f89b8]{border-color:var(--rc-active-border);background:var(--rc-active-background);cursor:pointer}.rc-tag.active.highlight[data-v-033f89b8],.rc-tag.active[data-v-033f89b8]:hover{border-color:var(--rc-primary-hover);background:var(--rc-active-background)}.rc-tag.active.disabled[data-v-033f89b8]{border-color:var(--rc-active-border);background:var(--rc-active-disabled-background);color:var(--rc-disabled-text-color);cursor:not-allowed}.rc-tag.inactive[data-v-033f89b8]{background:var(--rc-inactive-background);border-color:var(--rc-inactive-border)}.rc-tag.inactive.disabled[data-v-033f89b8]{border-color:var(--rc-inactive-disabled-border);color:var(--rc-disabled-text-color)}",""]),t["default"]=s},30735:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,"button[data-v-983efe70]{display:inline-flex;align-items:center;justify-content:center}button.variant-primary[data-v-983efe70]{background:var(--primary);color:var(--primary-text)}button.variant-primary._hover[data-v-983efe70],button.variant-primary.focused[data-v-983efe70],button.variant-primary[data-v-983efe70]:focus,button.variant-primary[data-v-983efe70]:hover{background-color:var(--primary-hover-bg);color:var(--primary-text)}button.variant-primary[data-v-983efe70]:focus-visible{outline:2px solid var(--primary-keyboard-focus);outline-offset:2px}button.variant-primary[data-v-983efe70]:disabled{background:var(--primary);color:var(--primary-text);opacity:.5}button.variant-secondary[data-v-983efe70]{background:var(--secondary,transparent);color:var(--on-secondary,var(--primary));border:solid 1px var(--secondary-border,var(--primary))}button.variant-secondary._hover[data-v-983efe70],button.variant-secondary[data-v-983efe70]:hover{background:var(--secondary-hover,transparent);color:var(--on-secondary,var(--lightest))}button.variant-secondary.focused[data-v-983efe70],button.variant-secondary[data-v-983efe70]:focus{background-color:var(--secondary-hover,var(--primary-hover-bg));color:var(--on-secondary,var(--primary-text))}button.variant-secondary[data-v-983efe70]:focus-visible{outline:2px solid var(--primary-keyboard-focus);outline-offset:2px}button.variant-tertiary[data-v-983efe70]{background:var(--tertiary,var(--accent-btn));color:var(--on-tertiary,var(--primary));border:solid 1px var(--tertiary-border,var(--primary))}button.variant-tertiary[data-v-983efe70]:hover{background:var(--tertiary-hover,var(--accent-btn));color:var(--on-tertiary-hover,var(--lightest))}button.variant-tertiary.focused[data-v-983efe70],button.variant-tertiary[data-v-983efe70]:focus{background-color:var(--tertiary-hover,var(--primary-hover-bg));color:var(--on-tertiary,var(--primary-text))}button.variant-tertiary[data-v-983efe70]:focus-visible{outline:2px solid var(--primary-keyboard-focus);outline-offset:2px}button.variant-link[data-v-983efe70]{background:transparent;color:var(--link)}button.variant-link._hover[data-v-983efe70],button.variant-link[data-v-983efe70]:hover{color:var(--lightest);background-color:var(--accent-btn);box-shadow:none}button.variant-link.focused[data-v-983efe70],button.variant-link[data-v-983efe70]:focus{outline:2px solid var(--primary-keyboard-focus);outline-offset:-2px;background:transparent;color:var(--link);box-shadow:none}button.variant-link[data-v-983efe70]:focus-visible{outline:2px solid var(--primary-keyboard-focus);outline-offset:2px}button.variant-multi-action[data-v-983efe70]{background:var(--accent-btn);border:solid thin var(--primary);color:var(--primary);border-radius:2px}button.variant-ghost[data-v-983efe70]{padding:0;background-color:transparent}button.variant-ghost.focused[data-v-983efe70],button.variant-ghost[data-v-983efe70]:focus{outline:2px solid var(--primary-keyboard-focus);outline-offset:0}button.variant-ghost[data-v-983efe70]:focus-visible{outline:2px solid var(--primary-keyboard-focus);outline-offset:0}button.btn-small[data-v-983efe70],button.btn-small[data-v-983efe70]:not(.btn-sm){line-height:140%;font-size:12px;min-height:24px;padding:0 8px;gap:8px}button.btn-medium[data-v-983efe70],button.btn-medium[data-v-983efe70]:not(.btn-sm){line-height:140%;font-size:14px;min-height:32px;padding:0 12px;gap:8px}button.btn-large[data-v-983efe70],button.btn-large[data-v-983efe70]:not(.btn-sm){line-height:140%;font-size:16px;min-height:40px;padding:0 16px;gap:12px}",""]),t["default"]=s},77851:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".popperContainer[data-v-78ba98f8]{display:contents}.popperContainer[data-v-78ba98f8] .v-popper__popper .v-popper__wrapper{box-shadow:0 6px 18px 0 rgba(0,0,0,.25),0 4px 10px 0 rgba(0,0,0,.15);border-radius:var(--border-radius-lg)}.popperContainer[data-v-78ba98f8] .v-popper__popper .v-popper__wrapper .v-popper__arrow-container{display:none}.popperContainer[data-v-78ba98f8] .v-popper__popper .v-popper__wrapper .v-popper__inner{overflow:unset;padding:10px 0 10px 0}.dropdownTarget[data-v-78ba98f8]{overflow:auto;padding:3px 0}.dropdownTarget[data-v-78ba98f8]:focus,.dropdownTarget[data-v-78ba98f8]:focus-visible{outline:none}",""]),t["default"]=s},32751:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,"[dropdown-menu-item][data-v-b3f1b0ce]{display:flex;gap:8px;align-items:center;padding:9px 8px;margin:0 9px;border-radius:4px}[dropdown-menu-item][data-v-b3f1b0ce]:hover{cursor:pointer;background-color:var(--dropdown-hover-bg)}[dropdown-menu-item][data-v-b3f1b0ce]:focus,[dropdown-menu-item][data-v-b3f1b0ce]:focus-visible{outline:2px solid var(--primary-keyboard-focus);outline-offset:0}[dropdown-menu-item][disabled][data-v-b3f1b0ce]{color:var(--disabled-text)}[dropdown-menu-item][disabled][data-v-b3f1b0ce]:hover{cursor:not-allowed}",""]),t["default"]=s},27363:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,"[dropdown-menu-item][data-v-42e011ee]{display:flex;gap:8px;align-items:center;padding:9px 8px;margin:0 9px;border-radius:4px}[dropdown-menu-item][data-v-42e011ee]:hover{cursor:pointer;background-color:var(--dropdown-hover-bg)}[dropdown-menu-item][data-v-42e011ee]:focus,[dropdown-menu-item][data-v-42e011ee]:focus-visible{outline:2px solid var(--primary-keyboard-focus);outline-offset:0}[dropdown-menu-item][disabled][data-v-42e011ee]{color:var(--disabled-text)}[dropdown-menu-item][disabled][data-v-42e011ee]:hover{cursor:not-allowed}",""]),t["default"]=s},579:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,"[dropdown-menu-item][data-v-f73956ca]{display:flex;gap:8px;align-items:center;padding:9px 8px;margin:0 9px;border-radius:4px}[dropdown-menu-item][data-v-f73956ca]:hover{cursor:pointer;background-color:var(--dropdown-hover-bg)}[dropdown-menu-item][data-v-f73956ca]:focus,[dropdown-menu-item][data-v-f73956ca]:focus-visible{outline:2px solid var(--primary-keyboard-focus);outline-offset:0}[dropdown-menu-item][disabled][data-v-f73956ca]{color:var(--disabled-text)}[dropdown-menu-item][disabled][data-v-f73956ca]:hover{cursor:not-allowed}",""]),t["default"]=s},78761:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".rc-icon[data-v-2624fc9a]{font-size:var(--v4e6c3731);color:var(--v17bbae7c)}",""]),t["default"]=s},52304:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".role[data-v-fa2c9f40]{align-items:center;background-color:rgba(0,0,0,.05);border:1px solid var(--header-border);border-radius:5px;color:var(--tag-text);line-height:20px;padding:2px 5px;white-space:nowrap;display:inline-flex;margin-right:3px}.role-value.text-link-enabled[data-v-fa2c9f40]{cursor:pointer}.role-value.text-link-enabled[data-v-fa2c9f40]:hover{color:var(--primary)}.role-value+.icon-close[data-v-fa2c9f40]{margin-left:3px;cursor:pointer}.role-value+.icon-close[data-v-fa2c9f40]:hover{color:var(--primary)}.project-members[data-v-fa2c9f40] .group-bar{display:flex;justify-content:space-between}.cluster-add[data-v-fa2c9f40]{justify-content:flex-end}",""]),t["default"]=s},72326:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=n(96599),l=o()(i());l.i(s.A),l.push([e.id,"#__layout,#__nuxt,MAIN,body{height:100%}.harvester-shell-container{height:100%;overflow:hidden}.harvester-shell-container .shell-body,.harvester-shell-container .terminal.xterm{height:100%}",""]),t["default"]=l},65320:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".error[data-v-56da10be]{overflow:hidden}.error .row[data-v-56da10be]{align-items:center}.error h1[data-v-56da10be]{font-size:5rem}.error .desert-landscape img[data-v-56da10be]{max-width:100%}",""]),t["default"]=s},64065:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".displayed-keys .banner[data-v-7821dcb9]{margin:0}.displayed-banners[data-v-7821dcb9]{max-height:155px;overflow:auto}.actions[data-v-7821dcb9]{width:100%;display:flex;justify-content:flex-end}",""]),t["default"]=s},38245:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".combination-keys__container[data-v-11c334cb]{max-width:60px}.combination-keys__container DIV[data-v-11c334cb],.combination-keys__container SPAN[data-v-11c334cb]{display:block;text-align:center}.combination-keys__container SPAN[data-v-11c334cb]{border-radius:3px}.combination-keys__container SPAN.open[data-v-11c334cb],.combination-keys__container SPAN[data-v-11c334cb]:hover{color:var(--primary-hover-text);background:var(--primary-hover-bg)}",""]),t["default"]=s},22972:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".vm-console[data-v-073fcb40]{height:100%;display:grid;grid-template-rows:30px auto}.combination-keys[data-v-073fcb40]{background:#282828}",""]),t["default"]=s},22434:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".vm-console .v-popper__arrow-container{display:none}.vm-console .v-popper__popper{margin-top:8px}.vm-console .v-popper__inner{overflow-y:visible}",""]),t["default"]=s},11881:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".bundleModal .support-modal[data-v-edef926a]{border-radius:var(--border-radius);max-height:100vh}.bundleModal .labeled-select.taggable[data-v-edef926a] .vs__selected-options .vs__selected.vs__selected>button{margin:0 7px}.bundleModal .bundle[data-v-edef926a]{cursor:pointer;color:var(--primary)}.bundleModal .icon-spinner[data-v-edef926a]{font-size:100px}.bundleModal .content .circle[data-v-edef926a]{padding:10px 0;height:160px}.bundleModal .content .namespace-select[data-v-edef926a] .vs__dropdown-menu{max-height:210px}.bundleModal div[data-v-edef926a]{line-height:normal}.bundleModal .footer[data-v-edef926a]{display:flex;justify-content:center}",""]),t["default"]=s},12123:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,"#air-gap[data-v-642e2b87]{padding:20px}#air-gap[data-v-642e2b87] .image-group .radio-group{display:flex}#air-gap[data-v-642e2b87] .image-group .radio-group .radio-container{margin-right:30px}#air-gap .parent[data-v-642e2b87]{grid-template-columns:auto 40px}#air-gap .chooseFile[data-v-642e2b87]{display:flex;align-items:center}",""]),t["default"]=s},64970:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".header H1[data-v-a0fecebc]{flex:1}.header[data-v-a0fecebc]{border-bottom:1px solid var(--border);margin-bottom:0;padding-bottom:20px}",""]),t["default"]=s},76592:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".link-example[data-v-45ae37da]{display:flex;align-content:center}.link-example a[data-v-45ae37da]{margin:auto}.logo-container[data-v-45ae37da]{display:flex;flex-direction:column}.logo-container[data-v-45ae37da] .simple-box{position:relative;flex:1;max-height:120px}.logo-container[data-v-45ae37da] .simple-box .content{height:100%;display:flex}.logo-container[data-v-45ae37da] .simple-box .logo-preview{max-width:100%}.logo-container LABEL[data-v-45ae37da]{position:absolute;top:10px;left:10px}",""]),t["default"]=s},75106:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,"#__layout[data-v-2efbfdaf],#__nuxt[data-v-2efbfdaf],body[data-v-2efbfdaf],main[data-v-2efbfdaf]{height:100%}",""]),t["default"]=s},81945:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".content[data-v-74e3f663]{display:grid;grid-column-gap:20px;grid-row-gap:20px;grid-template-columns:70% 30%}.only-community[data-v-74e3f663]{display:grid;grid-template-columns:100%}.community[data-v-74e3f663]{border-left:1px solid var(--border);padding-left:20px}.community>h2[data-v-74e3f663]{font-size:18px;font-weight:300;margin-bottom:20px}.community .support-link[data-v-74e3f663]{margin:10px 0}.box[data-v-74e3f663]{padding:20px;border:1px solid var(--border)}.box.box-primary[data-v-74e3f663]{border-color:var(--primary)}.box>h2[data-v-74e3f663]{font-size:20px;font-weight:300}.box>div[data-v-74e3f663]{font-weight:300;line-height:18px;opacity:.8}.role-secondary[data-v-74e3f663]:focus{background-color:transparent}.warning[data-v-74e3f663]{margin:0 -5px 0 -5px;padding:5px;background-color:var(--warning-banner-bg)}",""]),t["default"]=s},66208:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,'.dashboard-root[data-v-140c2578]{display:flex;flex-direction:column;height:100vh}.dashboard-content[data-v-140c2578]{display:grid;flex-grow:1;grid-template-areas:"main";grid-template-columns:auto;grid-template-rows:auto}.logo[data-v-140c2578]{margin:200px 0 40px 0}.logo[data-v-140c2578],.tagline[data-v-140c2578]{display:flex;justify-content:center}.tagline[data-v-140c2578]{margin-top:30px}.tagline>div[data-v-140c2578]{font-size:16px;line-height:22px;max-width:80%;text-align:center}.description[data-v-140c2578]{font-size:24px!important;font-weight:400}',""]),t["default"]=s},96599:function(e,t,n){"use strict";var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".xterm{cursor:text;position:relative;-moz-user-select:none;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm .xterm-cursor-pointer,.xterm.xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent;pointer-events:none}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{-webkit-text-decoration:double underline;text-decoration:double underline}.xterm-underline-3{-webkit-text-decoration:wavy underline;text-decoration:wavy underline}.xterm-underline-4{-webkit-text-decoration:dotted underline;text-decoration:dotted underline}.xterm-underline-5{-webkit-text-decoration:dashed underline;text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{-webkit-text-decoration:overline double underline;text-decoration:overline double underline}.xterm-overline.xterm-underline-3{-webkit-text-decoration:overline wavy underline;text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{-webkit-text-decoration:overline dotted underline;text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{-webkit-text-decoration:overline dashed underline;text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}",""]),t.A=s},24135:function(e,t,n){"use strict";var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".vue-flow__controls{box-shadow:0 0 2px 1px rgba(0,0,0,.08)}.vue-flow__controls-button{background:#fefefe;border:none;border-bottom:1px solid #eee;box-sizing:content-box;display:flex;justify-content:center;align-items:center;width:16px;height:16px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;padding:5px}.vue-flow__controls-button svg{width:100%;max-width:12px;max-height:12px}.vue-flow__controls-button:hover{background:#f4f4f4}.vue-flow__controls-button:disabled{pointer-events:none}.vue-flow__controls-button:disabled svg{fill-opacity:.4}",""]),t.A=s},72790:function(e,t,n){"use strict";var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".vue-flow{position:relative;width:100%;height:100%;overflow:hidden;z-index:0;direction:ltr}.vue-flow__container{position:absolute;height:100%;width:100%;left:0;top:0}.vue-flow__pane{z-index:1}.vue-flow__pane.draggable{cursor:grab}.vue-flow__pane.selection{cursor:pointer}.vue-flow__pane.dragging{cursor:grabbing}.vue-flow__transformationpane{transform-origin:0 0;z-index:2;pointer-events:none}.vue-flow__viewport{z-index:4;overflow:clip}.vue-flow__selection{z-index:6}.vue-flow__edge-labels{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.vue-flow__nodesselection-rect:focus,.vue-flow__nodesselection-rect:focus-visible{outline:none}.vue-flow .vue-flow__edges{pointer-events:none;overflow:visible}.vue-flow__connection-path,.vue-flow__edge-path{stroke:#b1b1b7;stroke-width:1;fill:none}.vue-flow__edge{pointer-events:visibleStroke;cursor:pointer}.vue-flow__edge.animated path{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.vue-flow__edge.animated path.vue-flow__edge-interaction{stroke-dasharray:none;animation:none}.vue-flow__edge.inactive{pointer-events:none}.vue-flow__edge.selected,.vue-flow__edge:focus,.vue-flow__edge:focus-visible{outline:none}.vue-flow__edge.selected .vue-flow__edge-path,.vue-flow__edge:focus .vue-flow__edge-path,.vue-flow__edge:focus-visible .vue-flow__edge-path{stroke:#555}.vue-flow__edge-textwrapper{pointer-events:all}.vue-flow__edge-textbg{fill:#fff}.vue-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.vue-flow__connection{pointer-events:none}.vue-flow__connection .animated{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.vue-flow__connectionline{z-index:1001}.vue-flow__nodes{pointer-events:none;transform-origin:0 0}.vue-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:default}.vue-flow__node.draggable{cursor:grab;pointer-events:all}.vue-flow__node.draggable.dragging{cursor:grabbing}.vue-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.vue-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:grab}.vue-flow__nodesselection-rect.dragging{cursor:grabbing}.vue-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px}.vue-flow__handle.connectable{pointer-events:all;cursor:crosshair}.vue-flow__handle-bottom{left:50%;bottom:0;transform:translate(-50%,50%)}.vue-flow__handle-top{left:50%;top:0;transform:translate(-50%,-50%)}.vue-flow__handle-left{top:50%;left:0;transform:translate(-50%,-50%)}.vue-flow__handle-right{top:50%;right:0;transform:translate(50%,-50%)}.vue-flow__edgeupdater{cursor:move;pointer-events:all}.vue-flow__panel{position:absolute;z-index:5;margin:15px}.vue-flow__panel.top{top:0}.vue-flow__panel.bottom{bottom:0}.vue-flow__panel.left{left:0}.vue-flow__panel.right{right:0}.vue-flow__panel.center{left:50%;transform:translateX(-50%)}@keyframes dashdraw{0%{stroke-dashoffset:10}}",""]),t.A=s},47142:function(e,t,n){"use strict";var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,":root{--vf-node-bg:#fff;--vf-node-text:#222;--vf-connection-path:#b1b1b7;--vf-handle:#555}.vue-flow__edge.updating .vue-flow__edge-path{stroke:#777}.vue-flow__edge-text{font-size:10px}.vue-flow__edge-textbg{fill:#fff}.vue-flow__connection-path{stroke:var(--vf-connection-path)}.vue-flow__node{cursor:grab}.vue-flow__node.selectable:focus,.vue-flow__node.selectable:focus-visible{outline:none}.vue-flow__node-default,.vue-flow__node-input,.vue-flow__node-output{padding:10px;border-radius:3px;width:150px;font-size:12px;text-align:center;border-width:1px;border-style:solid;color:var(--vf-node-text);background-color:var(--vf-node-bg);border-color:var(--vf-node-color)}.vue-flow__node-default.selected,.vue-flow__node-default.selected:hover,.vue-flow__node-input.selected,.vue-flow__node-input.selected:hover,.vue-flow__node-output.selected,.vue-flow__node-output.selected:hover{box-shadow:0 0 0 .5px var(--vf-box-shadow)}.vue-flow__node-default.selected,.vue-flow__node-default:focus,.vue-flow__node-default:focus-visible,.vue-flow__node-input.selected,.vue-flow__node-input:focus,.vue-flow__node-input:focus-visible,.vue-flow__node-output.selected,.vue-flow__node-output:focus,.vue-flow__node-output:focus-visible{outline:none;border:1px solid #555}.vue-flow__node-default .vue-flow__handle,.vue-flow__node-input .vue-flow__handle,.vue-flow__node-output .vue-flow__handle{background:var(--vf-handle)}.vue-flow__node-default.selectable:hover,.vue-flow__node-input.selectable:hover,.vue-flow__node-output.selectable:hover{box-shadow:0 1px 4px 1px rgba(0,0,0,.08)}.vue-flow__node-input{--vf-node-color:var(--vf-node-color,#0041d0);--vf-handle:var(--vf-node-color,#0041d0);--vf-box-shadow:var(--vf-node-color,#0041d0);background:var(--vf-node-bg);border-color:var(--vf-node-color,#0041d0)}.vue-flow__node-input.selected,.vue-flow__node-input:focus,.vue-flow__node-input:focus-visible{outline:none;border:1px solid var(--vf-node-color,#0041d0)}.vue-flow__node-default{--vf-handle:var(--vf-node-color,#1a192b);--vf-box-shadow:var(--vf-node-color,#1a192b);background:var(--vf-node-bg);border-color:var(--vf-node-color,#1a192b)}.vue-flow__node-default.selected,.vue-flow__node-default:focus,.vue-flow__node-default:focus-visible{outline:none;border:1px solid var(--vf-node-color,#1a192b)}.vue-flow__node-output{--vf-handle:var(--vf-node-color,#ff0072);--vf-box-shadow:var(--vf-node-color,#ff0072);background:var(--vf-node-bg);border-color:var(--vf-node-color,#ff0072)}.vue-flow__node-output.selected,.vue-flow__node-output:focus,.vue-flow__node-output:focus-visible{outline:none;border:1px solid var(--vf-node-color,#ff0072)}.vue-flow__nodesselection-rect,.vue-flow__selection{background:rgba(0,89,220,.08);border:1px dotted rgba(0,89,220,.8)}.vue-flow__nodesselection-rect:focus,.vue-flow__nodesselection-rect:focus-visible,.vue-flow__selection:focus,.vue-flow__selection:focus-visible{outline:none}.vue-flow__handle{width:6px;height:6px;background:var(--vf-handle);border:1px solid #fff;border-radius:100%}",""]),t.A=s},60912:function(e,t,n){"use strict";var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=o()(i());s.push([e.id,".vue-flow__minimap{background-color:#fff}.vue-flow__minimap.pannable{cursor:grab}.vue-flow__minimap.dragging{cursor:grabbing}.vue-flow__minimap-mask.pannable{cursor:grab}",""]),t.A=s},89009:function(e,t,n){"use strict";n.r(t);var r=n(36758),i=n.n(r),a=n(40935),o=n.n(a),s=n(72790),l=n(47142),c=n(24135),u=n(60912),d=o()(i());d.i(s.A),d.i(l.A),d.i(c.A),d.i(u.A),d.push([e.id,"",""]),t["default"]=d},40935:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n="",r="undefined"!==typeof t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n}).join("")},t.i=function(e,n,r,i,a){"string"===typeof e&&(e=[[null,e,void 0]]);var o={};if(r)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(o[l]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);r&&o[u[0]]||("undefined"!==typeof a&&("undefined"===typeof u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=a),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),t.push(u))}},t}},36758:function(e){"use strict";e.exports=function(e){return e[1]}},23464:function(e){!function(t,n){e.exports=n()}(0,function(){"use strict";var e=1e3,t=6e4,n=36e5,r="millisecond",i="second",a="minute",o="hour",s="day",l="week",c="month",u="quarter",d="year",h="date",p="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},v=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},b={s:v,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+v(r,2,"0")+":"+v(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,c),a=n-i<0,o=t.clone().add(r+(a?-1:1),c);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:d,w:l,d:s,D:h,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",_={};_[y]=g;var w="$isDayjsObject",E=function(e){return e instanceof A||!(!e||!e[w])},S=function e(t,n,r){var i;if(!t)return y;if("string"==typeof t){var a=t.toLowerCase();_[a]&&(i=a),n&&(_[a]=n,i=a);var o=t.split("-");if(!i&&o.length>1)return e(o[0])}else{var s=t.name;_[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},k=function(e,t){if(E(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new A(n)},x=b;x.l=S,x.i=E,x.w=function(e,t){return k(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var A=function(){function g(e){this.$L=S(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[w]=!0}var v=g.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(x.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(f);if(r){var i=r[2]-1||0,a=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},v.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},v.$utils=function(){return x},v.isValid=function(){return!(this.$d.toString()===p)},v.isSame=function(e,t){var n=k(e);return this.startOf(t)<=n&&n<=this.endOf(t)},v.isAfter=function(e,t){return k(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<k(e)},v.$g=function(e,t,n){return x.u(e)?this[t]:this.set(n,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var n=this,r=!!x.u(t)||t,u=x.p(e),p=function(e,t){var i=x.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},f=function(e,t){return x.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,g=this.$M,v=this.$D,b="set"+(this.$u?"UTC":"");switch(u){case d:return r?p(1,0):p(31,11);case c:return r?p(1,g):p(0,g+1);case l:var y=this.$locale().weekStart||0,_=(m<y?m+7:m)-y;return p(r?v-_:v+(6-_),g);case s:case h:return f(b+"Hours",0);case o:return f(b+"Minutes",1);case a:return f(b+"Seconds",2);case i:return f(b+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var n,l=x.p(e),u="set"+(this.$u?"UTC":""),p=(n={},n[s]=u+"Date",n[h]=u+"Date",n[c]=u+"Month",n[d]=u+"FullYear",n[o]=u+"Hours",n[a]=u+"Minutes",n[i]=u+"Seconds",n[r]=u+"Milliseconds",n)[l],f=l===s?this.$D+(t-this.$W):t;if(l===c||l===d){var m=this.clone().set(h,1);m.$d[p](f),m.init(),this.$d=m.set(h,Math.min(this.$D,m.daysInMonth())).$d}else p&&this.$d[p](f);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[x.p(e)]()},v.add=function(r,u){var h,p=this;r=Number(r);var f=x.p(u),m=function(e){var t=k(p);return x.w(t.date(t.date()+Math.round(e*r)),p)};if(f===c)return this.set(c,this.$M+r);if(f===d)return this.set(d,this.$y+r);if(f===s)return m(1);if(f===l)return m(7);var g=(h={},h[a]=t,h[o]=n,h[i]=e,h)[f]||1,v=this.$d.getTime()+r*g;return x.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=x.z(this),a=this.$H,o=this.$m,s=this.$M,l=n.weekdays,c=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},h=function(e){return x.s(a%12||12,e,"0")},f=u||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(m,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return x.s(t.$y,4,"0");case"M":return s+1;case"MM":return x.s(s+1,2,"0");case"MMM":return d(n.monthsShort,s,c,3);case"MMMM":return d(c,s);case"D":return t.$D;case"DD":return x.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,l,2);case"ddd":return d(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(a);case"HH":return x.s(a,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return f(a,o,!0);case"A":return f(a,o,!1);case"m":return String(o);case"mm":return x.s(o,2,"0");case"s":return String(t.$s);case"ss":return x.s(t.$s,2,"0");case"SSS":return x.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")})},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(r,h,p){var f,m=this,g=x.p(h),v=k(r),b=(v.utcOffset()-this.utcOffset())*t,y=this-v,_=function(){return x.m(m,v)};switch(g){case d:f=_()/12;break;case c:f=_();break;case u:f=_()/3;break;case l:f=(y-b)/6048e5;break;case s:f=(y-b)/864e5;break;case o:f=y/n;break;case a:f=y/t;break;case i:f=y/e;break;default:f=y}return p?f:x.a(f)},v.daysInMonth=function(){return this.endOf(c).$D},v.$locale=function(){return _[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=S(e,t,!0);return r&&(n.$L=r),n},v.clone=function(){return x.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},g}(),C=A.prototype;return k.prototype=C,[["$ms",r],["$s",i],["$m",a],["$H",o],["$W",s],["$M",c],["$y",d],["$D",h]].forEach(function(e){C[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),k.extend=function(e,t){return e.$i||(e(t,A,k),e.$i=!0),k},k.locale=S,k.isDayjs=E,k.unix=function(e){return k(1e3*e)},k.en=_[y],k.Ls=_,k.p={},k})},70686:function(e,t,n){"use strict";var r=n(64940),i=n(5731),a=n(3468),o=n(69336);e.exports=function(e,t,n){if(!e||"object"!==typeof e&&"function"!==typeof e)throw new a("`obj` must be an object or a function`");if("string"!==typeof t&&"symbol"!==typeof t)throw new a("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!==typeof arguments[3]&&null!==arguments[3])throw new a("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!==typeof arguments[4]&&null!==arguments[4])throw new a("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!==typeof arguments[5]&&null!==arguments[5])throw new a("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!==typeof arguments[6])throw new a("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],d=!!o&&o(e,t);if(r)r(e,t,{configurable:null===c&&d?d.configurable:!c,enumerable:null===s&&d?d.enumerable:!s,value:n,writable:null===l&&d?d.writable:!l});else{if(!u&&(s||l||c))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},41857:function(e,t,n){"use strict";var r=n(49228),i="function"===typeof Symbol&&"symbol"===typeof Symbol("foo"),a=Object.prototype.toString,o=Array.prototype.concat,s=n(70686),l=function(e){return"function"===typeof e&&"[object Function]"===a.call(e)},c=n(17239)(),u=function(e,t,n,r){if(t in e)if(!0===r){if(e[t]===n)return}else if(!l(r)||!r())return;c?s(e,t,n,!0):s(e,t,n)},d=function(e,t){var n=arguments.length>2?arguments[2]:{},a=r(t);i&&(a=o.call(a,Object.getOwnPropertySymbols(t)));for(var s=0;s<a.length;s+=1)u(e,a[s],t[a[s]],n[a[s]])};d.supportsDescriptors=!!c,e.exports=d},46867:function(e,t){(function(e,n){n(t)})(0,function(e){"use strict";function t(){}function n(e,t,n,r,i){for(var a=0,o=t.length,s=0,l=0;a<o;a++){var c=t[a];if(c.removed){if(c.value=e.join(r.slice(l,l+c.count)),l+=c.count,a&&t[a-1].added){var u=t[a-1];t[a-1]=t[a],t[a]=u}}else{if(!c.added&&i){var d=n.slice(s,s+c.count);d=d.map(function(e,t){var n=r[l+t];return n.length>e.length?n:e}),c.value=e.join(d)}else c.value=e.join(n.slice(s,s+c.count));s+=c.count,c.added||(l+=c.count)}}var h=t[o-1];return o>1&&"string"===typeof h.value&&(h.added||h.removed)&&e.equals("",h.value)&&(t[o-2].value+=h.value,t.pop()),t}function r(e){return{newPos:e.newPos,components:e.components.slice(0)}}t.prototype={diff:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=i.callback;"function"===typeof i&&(a=i,i={}),this.options=i;var o=this;function s(e){return a?(setTimeout(function(){a(void 0,e)},0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e)),t=this.removeEmpty(this.tokenize(t));var l=t.length,c=e.length,u=1,d=l+c,h=[{newPos:-1,components:[]}],p=this.extractCommon(h[0],t,e,0);if(h[0].newPos+1>=l&&p+1>=c)return s([{value:this.join(t),count:t.length}]);function f(){for(var i=-1*u;i<=u;i+=2){var a=void 0,d=h[i-1],p=h[i+1],f=(p?p.newPos:0)-i;d&&(h[i-1]=void 0);var m=d&&d.newPos+1<l,g=p&&0<=f&&f<c;if(m||g){if(!m||g&&d.newPos<p.newPos?(a=r(p),o.pushComponent(a.components,void 0,!0)):(a=d,a.newPos++,o.pushComponent(a.components,!0,void 0)),f=o.extractCommon(a,t,e,i),a.newPos+1>=l&&f+1>=c)return s(n(o,a.components,t,e,o.useLongestToken));h[i]=a}else h[i]=void 0}u++}if(a)(function e(){setTimeout(function(){if(u>d)return a();f()||e()},0)})();else while(u<=d){var m=f();if(m)return m}},pushComponent:function(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,r){var i=t.length,a=n.length,o=e.newPos,s=o-r,l=0;while(o+1<i&&s+1<a&&this.equals(t[o+1],n[s+1]))o++,s++,l++;return l&&e.components.push({count:l}),e.newPos=o,s},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}};var i=new t;function a(e,t,n){return i.diff(e,t,n)}function o(e,t){if("function"===typeof e)t.callback=e;else if(e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}var s=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,l=/\S/,c=new t;function u(e,t,n){return n=o(n,{ignoreWhitespace:!0}),c.diff(e,t,n)}function d(e,t,n){return c.diff(e,t,n)}c.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!l.test(e)&&!l.test(t)},c.tokenize=function(e){for(var t=e.split(/(\s+|[()[\]{}'"]|\b)/),n=0;n<t.length-1;n++)!t[n+1]&&t[n+2]&&s.test(t[n])&&s.test(t[n+2])&&(t[n]+=t[n+2],t.splice(n+1,2),n--);return t};var h=new t;function p(e,t,n){return h.diff(e,t,n)}function f(e,t,n){var r=o(n,{ignoreWhitespace:!0});return h.diff(e,t,r)}h.tokenize=function(e){var t=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(var r=0;r<n.length;r++){var i=n[r];r%2&&!this.options.newlineIsToken?t[t.length-1]+=i:(this.options.ignoreWhitespace&&(i=i.trim()),t.push(i))}return t};var m=new t;function g(e,t,n){return m.diff(e,t,n)}m.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var v=new t;function b(e,t,n){return v.diff(e,t,n)}function y(e){return y="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function _(e){return w(e)||E(e)||S()}function w(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function E(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function S(){throw new TypeError("Invalid attempt to spread non-iterable instance")}v.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};var k=Object.prototype.toString,x=new t;function A(e,t,n){return x.diff(e,t,n)}function C(e,t,n,r,i){var a,o;for(t=t||[],n=n||[],r&&(e=r(i,e)),a=0;a<t.length;a+=1)if(t[a]===e)return n[a];if("[object Array]"===k.call(e)){for(t.push(e),o=new Array(e.length),n.push(o),a=0;a<e.length;a+=1)o[a]=C(e[a],t,n,r,i);return t.pop(),n.pop(),o}if(e&&e.toJSON&&(e=e.toJSON()),"object"===y(e)&&null!==e){t.push(e),o={},n.push(o);var s,l=[];for(s in e)e.hasOwnProperty(s)&&l.push(s);for(l.sort(),a=0;a<l.length;a+=1)s=l[a],o[s]=C(e[s],t,n,r,s);t.pop(),n.pop()}else o=e;return o}x.useLongestToken=!0,x.tokenize=h.tokenize,x.castInput=function(e){var t=this.options,n=t.undefinedReplacement,r=t.stringifyReplacer,i=void 0===r?function(e,t){return"undefined"===typeof t?n:t}:r;return"string"===typeof e?e:JSON.stringify(C(e,null,null,i),i," ")},x.equals=function(e,n){return t.prototype.equals.call(x,e.replace(/,([\r\n])/g,"$1"),n.replace(/,([\r\n])/g,"$1"))};var T=new t;function N(e,t,n){return T.diff(e,t,n)}function R(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.split(/\r\n|[\n\v\f\r\x85]/),r=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],i=[],a=0;function o(){var e={};i.push(e);while(a<n.length){var r=n[a];if(/^(\-\-\-|\+\+\+|@@)\s/.test(r))break;var o=/^(?:Index:|diff(?: -r \w+)+)\s+/.exec(r);o&&(e.index=r.substring(o[0].length).trim()),a++}s(e),s(e),e.hunks=[];while(a<n.length){var c=n[a];if(/^(Index:|diff|\-\-\-|\+\+\+)\s/.test(c))break;if(/^@@/.test(c))e.hunks.push(l());else{if(c&&t.strict)throw new Error("Unknown line "+(a+1)+" "+JSON.stringify(c));a++}}}function s(e){var t=/^(---|\+\+\+)\s+/.exec(n[a]);if(t){var r="---"===t[1]?"old":"new",i=n[a].substring(3).trim().split("\t",2),o=i[0].replace(/\\\\/g,"\\");o.startsWith('"')&&o.endsWith('"')&&(o=o.substr(1,o.length-2)),e[r+"FileName"]=o,e[r+"Header"]=(i[1]||"").trim(),a++}}function l(){for(var e=a,i=n[a++],o=i.split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),s={oldStart:+o[1],oldLines:+o[2]||1,newStart:+o[3],newLines:+o[4]||1,lines:[],linedelimiters:[]},l=0,c=0;a<n.length;a++){if(0===n[a].indexOf("--- ")&&a+2<n.length&&0===n[a+1].indexOf("+++ ")&&0===n[a+2].indexOf("@@"))break;var u=0==n[a].length&&a!=n.length-1?" ":n[a][0];if("+"!==u&&"-"!==u&&" "!==u&&"\\"!==u)break;s.lines.push(n[a]),s.linedelimiters.push(r[a]||"\n"),"+"===u?l++:"-"===u?c++:" "===u&&(l++,c++)}if(l||1!==s.newLines||(s.newLines=0),c||1!==s.oldLines||(s.oldLines=0),t.strict){if(l!==s.newLines)throw new Error("Added line count did not match for hunk at line "+(e+1));if(c!==s.oldLines)throw new Error("Removed line count did not match for hunk at line "+(e+1))}return s}while(a<n.length)o();return i}function O(e,t,n){var r=!0,i=!1,a=!1,o=1;return function s(){if(r&&!a){if(i?o++:r=!1,e+o<=n)return o;a=!0}if(!i)return a||(r=!0),t<=e-o?-o++:(i=!0,s())}}function I(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"===typeof t&&(t=R(t)),Array.isArray(t)){if(t.length>1)throw new Error("applyPatch only works with a single input.");t=t[0]}var r,i,a=e.split(/\r\n|[\n\v\f\r\x85]/),o=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],s=t.hunks,l=n.compareLine||function(e,t,n,r){return t===r},c=0,u=n.fuzzFactor||0,d=0,h=0;function p(e,t){for(var n=0;n<e.lines.length;n++){var r=e.lines[n],i=r.length>0?r[0]:" ",o=r.length>0?r.substr(1):r;if(" "===i||"-"===i){if(!l(t+1,a[t],i,o)&&(c++,c>u))return!1;t++}}return!0}for(var f=0;f<s.length;f++){for(var m=s[f],g=a.length-m.oldLines,v=0,b=h+m.oldStart-1,y=O(b,d,g);void 0!==v;v=y())if(p(m,b+v)){m.offset=h+=v;break}if(void 0===v)return!1;d=m.offset+m.oldStart+m.oldLines}for(var _=0,w=0;w<s.length;w++){var E=s[w],S=E.oldStart+E.offset+_-1;_+=E.newLines-E.oldLines,S<0&&(S=0);for(var k=0;k<E.lines.length;k++){var x=E.lines[k],A=x.length>0?x[0]:" ",C=x.length>0?x.substr(1):x,T=E.linedelimiters[k];if(" "===A)S++;else if("-"===A)a.splice(S,1),o.splice(S,1);else if("+"===A)a.splice(S,0,C),o.splice(S,0,T),S++;else if("\\"===A){var N=E.lines[k-1]?E.lines[k-1][0]:null;"+"===N?r=!0:"-"===N&&(i=!0)}}}if(r)while(!a[a.length-1])a.pop(),o.pop();else i&&(a.push(""),o.push("\n"));for(var I=0;I<a.length-1;I++)a[I]=a[I]+o[I];return a.join("")}function L(e,t){"string"===typeof e&&(e=R(e));var n=0;function r(){var i=e[n++];if(!i)return t.complete();t.loadFile(i,function(e,n){if(e)return t.complete(e);var a=I(n,i,t);t.patched(i,a,function(e){if(e)return t.complete(e);r()})})}r()}function D(e,t,n,r,i,a,o){o||(o={}),"undefined"===typeof o.context&&(o.context=4);var s=p(n,r,o);function l(e){return e.map(function(e){return" "+e})}s.push({value:"",lines:[]});for(var c=[],u=0,d=0,h=[],f=1,m=1,g=function(e){var t=s[e],i=t.lines||t.value.replace(/\n$/,"").split("\n");if(t.lines=i,t.added||t.removed){var a;if(!u){var p=s[e-1];u=f,d=m,p&&(h=o.context>0?l(p.lines.slice(-o.context)):[],u-=h.length,d-=h.length)}(a=h).push.apply(a,_(i.map(function(e){return(t.added?"+":"-")+e}))),t.added?m+=i.length:f+=i.length}else{if(u)if(i.length<=2*o.context&&e<s.length-2){var g;(g=h).push.apply(g,_(l(i)))}else{var v,b=Math.min(i.length,o.context);(v=h).push.apply(v,_(l(i.slice(0,b))));var y={oldStart:u,oldLines:f-u+b,newStart:d,newLines:m-d+b,lines:h};if(e>=s.length-2&&i.length<=o.context){var w=/\n$/.test(n),E=/\n$/.test(r),S=0==i.length&&h.length>y.oldLines;!w&&S&&h.splice(y.oldLines,0,"\\ No newline at end of file"),(w||S)&&E||h.push("\\ No newline at end of file")}c.push(y),u=0,d=0,h=[]}f+=i.length,m+=i.length}},v=0;v<s.length;v++)g(v);return{oldFileName:e,newFileName:t,oldHeader:i,newHeader:a,hunks:c}}function P(e,t,n,r,i,a,o){var s=D(e,t,n,r,i,a,o),l=[];e==t&&l.push("Index: "+e),l.push("==================================================================="),l.push("--- "+s.oldFileName+("undefined"===typeof s.oldHeader?"":"\t"+s.oldHeader)),l.push("+++ "+s.newFileName+("undefined"===typeof s.newHeader?"":"\t"+s.newHeader));for(var c=0;c<s.hunks.length;c++){var u=s.hunks[c];l.push("@@ -"+u.oldStart+","+u.oldLines+" +"+u.newStart+","+u.newLines+" @@"),l.push.apply(l,u.lines)}return l.join("\n")+"\n"}function M(e,t,n,r,i,a){return P(e,e,t,n,r,i,a)}function B(e,t){return e.length===t.length&&F(e,t)}function F(e,t){if(t.length>e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function $(e){var t=ne(e.lines),n=t.oldLines,r=t.newLines;void 0!==n?e.oldLines=n:delete e.oldLines,void 0!==r?e.newLines=r:delete e.newLines}function U(e,t,n){e=j(e,n),t=j(t,n);var r={};(e.index||t.index)&&(r.index=e.index||t.index),(e.newFileName||t.newFileName)&&(V(e)?V(t)?(r.oldFileName=K(r,e.oldFileName,t.oldFileName),r.newFileName=K(r,e.newFileName,t.newFileName),r.oldHeader=K(r,e.oldHeader,t.oldHeader),r.newHeader=K(r,e.newHeader,t.newHeader)):(r.oldFileName=e.oldFileName,r.newFileName=e.newFileName,r.oldHeader=e.oldHeader,r.newHeader=e.newHeader):(r.oldFileName=t.oldFileName||e.oldFileName,r.newFileName=t.newFileName||e.newFileName,r.oldHeader=t.oldHeader||e.oldHeader,r.newHeader=t.newHeader||e.newHeader)),r.hunks=[];var i=0,a=0,o=0,s=0;while(i<e.hunks.length||a<t.hunks.length){var l=e.hunks[i]||{oldStart:1/0},c=t.hunks[a]||{oldStart:1/0};if(G(l,c))r.hunks.push(H(l,o)),i++,s+=l.newLines-l.oldLines;else if(G(c,l))r.hunks.push(H(c,s)),a++,o+=c.newLines-c.oldLines;else{var u={oldStart:Math.min(l.oldStart,c.oldStart),oldLines:0,newStart:Math.min(l.newStart+o,c.oldStart+s),newLines:0,lines:[]};z(u,l.oldStart,l.lines,c.oldStart,c.lines),a++,i++,r.hunks.push(u)}}return r}function j(e,t){if("string"===typeof e){if(/^@@/m.test(e)||/^Index:/m.test(e))return R(e)[0];if(!t)throw new Error("Must provide a base reference or pass in a patch");return D(void 0,void 0,t,e)}return e}function V(e){return e.newFileName&&e.newFileName!==e.oldFileName}function K(e,t,n){return t===n?t:(e.conflict=!0,{mine:t,theirs:n})}function G(e,t){return e.oldStart<t.oldStart&&e.oldStart+e.oldLines<t.oldStart}function H(e,t){return{oldStart:e.oldStart,oldLines:e.oldLines,newStart:e.newStart+t,newLines:e.newLines,lines:e.lines}}function z(e,t,n,r,i){var a={offset:t,lines:n,index:0},o={offset:r,lines:i,index:0};Y(e,a,o),Y(e,o,a);while(a.index<a.lines.length&&o.index<o.lines.length){var s=a.lines[a.index],l=o.lines[o.index];if("-"!==s[0]&&"+"!==s[0]||"-"!==l[0]&&"+"!==l[0])if("+"===s[0]&&" "===l[0]){var c;(c=e.lines).push.apply(c,_(J(a)))}else if("+"===l[0]&&" "===s[0]){var u;(u=e.lines).push.apply(u,_(J(o)))}else"-"===s[0]&&" "===l[0]?X(e,a,o):"-"===l[0]&&" "===s[0]?X(e,o,a,!0):s===l?(e.lines.push(s),a.index++,o.index++):W(e,J(a),J(o));else q(e,a,o)}Q(e,a),Q(e,o),$(e)}function q(e,t,n){var r=J(t),i=J(n);if(ee(r)&&ee(i)){var a,o;if(F(r,i)&&te(n,r,r.length-i.length))return void(a=e.lines).push.apply(a,_(r));if(F(i,r)&&te(t,i,i.length-r.length))return void(o=e.lines).push.apply(o,_(i))}else if(B(r,i)){var s;return void(s=e.lines).push.apply(s,_(r))}W(e,r,i)}function X(e,t,n,r){var i,a=J(t),o=Z(n,a);o.merged?(i=e.lines).push.apply(i,_(o.merged)):W(e,r?o:a,r?a:o)}function W(e,t,n){e.conflict=!0,e.lines.push({conflict:!0,mine:t,theirs:n})}function Y(e,t,n){while(t.offset<n.offset&&t.index<t.lines.length){var r=t.lines[t.index++];e.lines.push(r),t.offset++}}function Q(e,t){while(t.index<t.lines.length){var n=t.lines[t.index++];e.lines.push(n)}}function J(e){var t=[],n=e.lines[e.index][0];while(e.index<e.lines.length){var r=e.lines[e.index];if("-"===n&&"+"===r[0]&&(n="+"),n!==r[0])break;t.push(r),e.index++}return t}function Z(e,t){var n=[],r=[],i=0,a=!1,o=!1;while(i<t.length&&e.index<e.lines.length){var s=e.lines[e.index],l=t[i];if("+"===l[0])break;if(a=a||" "!==s[0],r.push(l),i++,"+"===s[0]){o=!0;while("+"===s[0])n.push(s),s=e.lines[++e.index]}l.substr(1)===s.substr(1)?(n.push(s),e.index++):o=!0}if("+"===(t[i]||"")[0]&&a&&(o=!0),o)return n;while(i<t.length)r.push(t[i++]);return{merged:r,changes:n}}function ee(e){return e.reduce(function(e,t){return e&&"-"===t[0]},!0)}function te(e,t,n){for(var r=0;r<n;r++){var i=t[t.length-n+r].substr(1);if(e.lines[e.index+r]!==" "+i)return!1}return e.index+=n,!0}function ne(e){var t=0,n=0;return e.forEach(function(e){if("string"!==typeof e){var r=ne(e.mine),i=ne(e.theirs);void 0!==t&&(r.oldLines===i.oldLines?t+=r.oldLines:t=void 0),void 0!==n&&(r.newLines===i.newLines?n+=r.newLines:n=void 0)}else void 0===n||"+"!==e[0]&&" "!==e[0]||n++,void 0===t||"-"!==e[0]&&" "!==e[0]||t++}),{oldLines:t,newLines:n}}function re(e){for(var t,n,r=[],i=0;i<e.length;i++)t=e[i],n=t.added?1:t.removed?-1:0,r.push([n,t.value]);return r}function ie(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];r.added?t.push("<ins>"):r.removed&&t.push("<del>"),t.push(ae(r.value)),r.added?t.push("</ins>"):r.removed&&t.push("</del>")}return t.join("")}function ae(e){var t=e;return t=t.replace(/&/g,"&"),t=t.replace(/</g,"<"),t=t.replace(/>/g,">"),t=t.replace(/"/g,"""),t}T.tokenize=function(e){return e.slice()},T.join=T.removeEmpty=function(e){return e},e.Diff=t,e.diffChars=a,e.diffWords=u,e.diffWordsWithSpace=d,e.diffLines=p,e.diffTrimmedLines=f,e.diffSentences=g,e.diffCss=b,e.diffJson=A,e.diffArrays=N,e.structuredPatch=D,e.createTwoFilesPatch=P,e.createPatch=M,e.applyPatch=I,e.applyPatches=L,e.parsePatch=R,e.merge=U,e.convertChangesToDMP=re,e.convertChangesToXML=ie,e.canonicalize=C,Object.defineProperty(e,"__esModule",{value:!0})})},18841:function(e,t,n){"use strict";var r=n(4364),i=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;var a=n(51305),o=n(44869);function s(e,t){var n=e.split(".");return n.length>1?n[n.length-1]:t}function l(e,t){return t.reduce(function(t,n){return t||e.startsWith(n)},!1)}var c=["a/","b/","i/","w/","c/","o/"];function u(e,t,n){var r=void 0!==n?i(i([],c,!0),[n],!1):c,a=t?new RegExp("^".concat((0,o.escapeForRegExp)(t),' "?(.+?)"?$')):new RegExp('^"?(.+?)"?$'),s=a.exec(e)||[],l=s[1],u=void 0===l?"":l,d=r.find(function(e){return 0===u.indexOf(e)}),h=d?u.slice(d.length):u;return h.replace(/\s+\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(?:\.\d+)? [+-]\d{4}.*$/,"")}function d(e,t){return u(e,"---",t)}function h(e,t){return u(e,"+++",t)}function p(e,t){void 0===t&&(t={});var n=[],i=null,o=null,c=null,p=null,f=null,m=null,g=null,v="--- ",b="+++ ",y="@@",_=/^old mode (\d{6})/,w=/^new mode (\d{6})/,E=/^deleted file mode (\d{6})/,S=/^new file mode (\d{6})/,k=/^copy from "?(.+)"?/,x=/^copy to "?(.+)"?/,A=/^rename from "?(.+)"?/,C=/^rename to "?(.+)"?/,T=/^similarity index (\d+)%/,N=/^dissimilarity index (\d+)%/,R=/^index ([\da-z]+)\.\.([\da-z]+)\s*(\d{6})?/,O=/^Binary files (.*) and (.*) differ/,I=/^GIT binary patch/,L=/^index ([\da-z]+),([\da-z]+)\.\.([\da-z]+)/,D=/^mode (\d{6}),(\d{6})\.\.(\d{6})/,P=/^new file mode (\d{6})/,M=/^deleted file mode (\d{6}),(\d{6})/,B=e.replace(/\\ No newline at end of file/g,"").replace(/\r\n?/g,"\n").split("\n");function F(){null!==o&&null!==i&&(i.blocks.push(o),o=null)}function $(){null!==i&&(i.oldName||null===m||(i.oldName=m),i.newName||null===g||(i.newName=g),i.newName&&(n.push(i),i=null)),m=null,g=null}function U(){F(),$(),i={blocks:[],deletedLines:0,addedLines:0}}function j(e){var t;F(),null!==i&&((t=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@.*/.exec(e))?(i.isCombined=!1,c=parseInt(t[1],10),f=parseInt(t[2],10)):(t=/^@@@ -(\d+)(?:,\d+)? -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@@.*/.exec(e))?(i.isCombined=!0,c=parseInt(t[1],10),p=parseInt(t[2],10),f=parseInt(t[3],10)):(e.startsWith(y)&&r.error("Failed to parse lines, starting in 0!"),c=0,f=0,i.isCombined=!1)),o={lines:[],oldStartLine:c,oldStartLine2:p,newStartLine:f,header:e}}function V(e){if(null!==i&&null!==o&&null!==c&&null!==f){var t={content:e},n=i.isCombined?["+ "," +","++"]:["+"],r=i.isCombined?["- "," -","--"]:["-"];l(e,n)?(i.addedLines++,t.type=a.LineType.INSERT,t.oldNumber=void 0,t.newNumber=f++):l(e,r)?(i.deletedLines++,t.type=a.LineType.DELETE,t.oldNumber=c++,t.newNumber=void 0):(t.type=a.LineType.CONTEXT,t.oldNumber=c++,t.newNumber=f++),o.lines.push(t)}}function K(e,t){var n=t;while(n<B.length-3){if(e.startsWith("diff"))return!1;if(B[n].startsWith(v)&&B[n+1].startsWith(b)&&B[n+2].startsWith(y))return!0;n++}return!1}return B.forEach(function(e,r){if(e&&!e.startsWith("*")){var a,l=B[r-1],c=B[r+1],p=B[r+2];if(e.startsWith("diff")){U();var f=/^diff --git "?([a-ciow]\/.+)"? "?([a-ciow]\/.+)"?/;if((a=f.exec(e))&&(m=u(a[1],void 0,t.dstPrefix),g=u(a[2],void 0,t.srcPrefix)),null===i)throw new Error("Where is my file !!!");i.isGitDiff=!0}else if((!i||!i.isGitDiff&&i&&e.startsWith(v)&&c.startsWith(b)&&p.startsWith(y))&&U(),!(null===i||void 0===i?void 0:i.isTooBig))if(i&&("number"===typeof t.diffMaxChanges&&i.addedLines+i.deletedLines>t.diffMaxChanges||"number"===typeof t.diffMaxLineLength&&e.length>t.diffMaxLineLength)){i.isTooBig=!0,i.addedLines=0,i.deletedLines=0,i.blocks=[],o=null;var F="function"===typeof t.diffTooBigMessage?t.diffTooBigMessage(n.length):"Diff too big to be displayed";j(F)}else{if(e.startsWith(v)&&c.startsWith(b)||e.startsWith(b)&&l.startsWith(v)){if(i&&!i.oldName&&e.startsWith("--- ")&&(a=d(e,t.srcPrefix)))return i.oldName=a,void(i.language=s(i.oldName,i.language));if(i&&!i.newName&&e.startsWith("+++ ")&&(a=h(e,t.dstPrefix)))return i.newName=a,void(i.language=s(i.newName,i.language))}if(i&&(e.startsWith(y)||i.isGitDiff&&i.oldName&&i.newName&&!o))j(e);else if(o&&(e.startsWith("+")||e.startsWith("-")||e.startsWith(" ")))V(e);else{var $=!K(e,r);if(null===i)throw new Error("Where is my file !!!");(a=_.exec(e))?i.oldMode=a[1]:(a=w.exec(e))?i.newMode=a[1]:(a=E.exec(e))?(i.deletedFileMode=a[1],i.isDeleted=!0):(a=S.exec(e))?(i.newFileMode=a[1],i.isNew=!0):(a=k.exec(e))?($&&(i.oldName=a[1]),i.isCopy=!0):(a=x.exec(e))?($&&(i.newName=a[1]),i.isCopy=!0):(a=A.exec(e))?($&&(i.oldName=a[1]),i.isRename=!0):(a=C.exec(e))?($&&(i.newName=a[1]),i.isRename=!0):(a=O.exec(e))?(i.isBinary=!0,i.oldName=u(a[1],void 0,t.srcPrefix),i.newName=u(a[2],void 0,t.dstPrefix),j("Binary file")):I.test(e)?(i.isBinary=!0,j(e)):(a=T.exec(e))?i.unchangedPercentage=parseInt(a[1],10):(a=N.exec(e))?i.changedPercentage=parseInt(a[1],10):(a=R.exec(e))?(i.checksumBefore=a[1],i.checksumAfter=a[2],a[3]&&(i.mode=a[3])):(a=L.exec(e))?(i.checksumBefore=[a[2],a[3]],i.checksumAfter=a[1]):(a=D.exec(e))?(i.oldMode=[a[2],a[3]],i.newMode=a[1]):(a=P.exec(e))?(i.newFileMode=a[1],i.isNew=!0):(a=M.exec(e))&&(i.deletedFileMode=a[1],i.isDeleted=!0)}}}}),F(),$(),n}t.parse=p},53052:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultTemplates=void 0;var o=a(n(62133));t.defaultTemplates={},t.defaultTemplates["file-summary-line"]=new o.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<li class="d2h-file-list-line">'),r.b("\n"+n),r.b(' <span class="d2h-file-name-wrapper">'),r.b("\n"+n),r.b(r.rp("<fileIcon0",e,t," ")),r.b(' <a href="#'),r.b(r.v(r.f("fileHtmlId",e,t,0))),r.b('" class="d2h-file-name">'),r.b(r.v(r.f("fileName",e,t,0))),r.b("</a>"),r.b("\n"+n),r.b(' <span class="d2h-file-stats">'),r.b("\n"+n),r.b(' <span class="d2h-lines-added">'),r.b(r.v(r.f("addedLines",e,t,0))),r.b("</span>"),r.b("\n"+n),r.b(' <span class="d2h-lines-deleted">'),r.b(r.v(r.f("deletedLines",e,t,0))),r.b("</span>"),r.b("\n"+n),r.b(" </span>"),r.b("\n"+n),r.b(" </span>"),r.b("\n"+n),r.b("</li>"),r.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}}},subs:{}}),t.defaultTemplates["file-summary-wrapper"]=new o.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<div class="d2h-file-list-wrapper">'),r.b("\n"+n),r.b(' <div class="d2h-file-list-header">'),r.b("\n"+n),r.b(' <span class="d2h-file-list-title">Files changed ('),r.b(r.v(r.f("filesNumber",e,t,0))),r.b(")</span>"),r.b("\n"+n),r.b(' <a class="d2h-file-switch d2h-hide">hide</a>'),r.b("\n"+n),r.b(' <a class="d2h-file-switch d2h-show">show</a>'),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b(' <ol class="d2h-file-list">'),r.b("\n"+n),r.b(" "),r.b(r.t(r.f("files",e,t,0))),r.b("\n"+n),r.b(" </ol>"),r.b("\n"+n),r.b("</div>"),r.fl()},partials:{},subs:{}}),t.defaultTemplates["generic-block-header"]=new o.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b("<tr>"),r.b("\n"+n),r.b(' <td class="'),r.b(r.v(r.f("lineClass",e,t,0))),r.b(" "),r.b(r.v(r.d("CSSLineClass.INFO",e,t,0))),r.b('"></td>'),r.b("\n"+n),r.b(' <td class="'),r.b(r.v(r.d("CSSLineClass.INFO",e,t,0))),r.b('">'),r.b("\n"+n),r.b(' <div class="'),r.b(r.v(r.f("contentClass",e,t,0))),r.b('">'),r.b(r.t(r.f("blockHeader",e,t,0))),r.b("</div>"),r.b("\n"+n),r.b(" </td>"),r.b("\n"+n),r.b("</tr>"),r.fl()},partials:{},subs:{}}),t.defaultTemplates["generic-empty-diff"]=new o.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b("<tr>"),r.b("\n"+n),r.b(' <td class="'),r.b(r.v(r.d("CSSLineClass.INFO",e,t,0))),r.b('">'),r.b("\n"+n),r.b(' <div class="'),r.b(r.v(r.f("contentClass",e,t,0))),r.b('">'),r.b("\n"+n),r.b(" File without changes"),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b(" </td>"),r.b("\n"+n),r.b("</tr>"),r.fl()},partials:{},subs:{}}),t.defaultTemplates["generic-file-path"]=new o.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<span class="d2h-file-name-wrapper">'),r.b("\n"+n),r.b(r.rp("<fileIcon0",e,t," ")),r.b(' <span class="d2h-file-name">'),r.b(r.v(r.f("fileDiffName",e,t,0))),r.b("</span>"),r.b("\n"+n),r.b(r.rp("<fileTag1",e,t," ")),r.b("</span>"),r.b("\n"+n),r.b('<label class="d2h-file-collapse">'),r.b("\n"+n),r.b(' <input class="d2h-file-collapse-input" type="checkbox" name="viewed" value="viewed">'),r.b("\n"+n),r.b(" Viewed"),r.b("\n"+n),r.b("</label>"),r.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}},"<fileTag1":{name:"fileTag",partials:{},subs:{}}},subs:{}}),t.defaultTemplates["generic-line"]=new o.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b("<tr>"),r.b("\n"+n),r.b(' <td class="'),r.b(r.v(r.f("lineClass",e,t,0))),r.b(" "),r.b(r.v(r.f("type",e,t,0))),r.b('">'),r.b("\n"+n),r.b(" "),r.b(r.t(r.f("lineNumber",e,t,0))),r.b("\n"+n),r.b(" </td>"),r.b("\n"+n),r.b(' <td class="'),r.b(r.v(r.f("type",e,t,0))),r.b('">'),r.b("\n"+n),r.b(' <div class="'),r.b(r.v(r.f("contentClass",e,t,0))),r.b('">'),r.b("\n"+n),r.s(r.f("prefix",e,t,1),e,t,0,162,238,"{{ }}")&&(r.rs(e,t,function(e,t,r){r.b(' <span class="d2h-code-line-prefix">'),r.b(r.t(r.f("prefix",e,t,0))),r.b("</span>"),r.b("\n"+n)}),e.pop()),r.s(r.f("prefix",e,t,1),e,t,1,0,0,"")||(r.b(' <span class="d2h-code-line-prefix"> </span>'),r.b("\n"+n)),r.s(r.f("content",e,t,1),e,t,0,371,445,"{{ }}")&&(r.rs(e,t,function(e,t,r){r.b(' <span class="d2h-code-line-ctn">'),r.b(r.t(r.f("content",e,t,0))),r.b("</span>"),r.b("\n"+n)}),e.pop()),r.s(r.f("content",e,t,1),e,t,1,0,0,"")||(r.b(' <span class="d2h-code-line-ctn"><br></span>'),r.b("\n"+n)),r.b(" </div>"),r.b("\n"+n),r.b(" </td>"),r.b("\n"+n),r.b("</tr>"),r.fl()},partials:{},subs:{}}),t.defaultTemplates["generic-wrapper"]=new o.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<div class="d2h-wrapper">'),r.b("\n"+n),r.b(" "),r.b(r.t(r.f("content",e,t,0))),r.b("\n"+n),r.b("</div>"),r.fl()},partials:{},subs:{}}),t.defaultTemplates["icon-file-added"]=new o.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<svg aria-hidden="true" class="d2h-icon d2h-added" height="16" title="added" version="1.1" viewBox="0 0 14 16"'),r.b("\n"+n),r.b(' width="14">'),r.b("\n"+n),r.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM6 9H3V7h3V4h2v3h3v2H8v3H6V9z"></path>'),r.b("\n"+n),r.b("</svg>"),r.fl()},partials:{},subs:{}}),t.defaultTemplates["icon-file-changed"]=new o.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<svg aria-hidden="true" class="d2h-icon d2h-changed" height="16" title="modified" version="1.1"'),r.b("\n"+n),r.b(' viewBox="0 0 14 16" width="14">'),r.b("\n"+n),r.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM4 8c0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3-3-1.34-3-3z"></path>'),r.b("\n"+n),r.b("</svg>"),r.fl()},partials:{},subs:{}}),t.defaultTemplates["icon-file-deleted"]=new o.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<svg aria-hidden="true" class="d2h-icon d2h-deleted" height="16" title="removed" version="1.1"'),r.b("\n"+n),r.b(' viewBox="0 0 14 16" width="14">'),r.b("\n"+n),r.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM11 9H3V7h8v2z"></path>'),r.b("\n"+n),r.b("</svg>"),r.fl()},partials:{},subs:{}}),t.defaultTemplates["icon-file-renamed"]=new o.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<svg aria-hidden="true" class="d2h-icon d2h-moved" height="16" title="renamed" version="1.1"'),r.b("\n"+n),r.b(' viewBox="0 0 14 16" width="14">'),r.b("\n"+n),r.b(' <path d="M6 9H3V7h3V4l5 4-5 4V9z m8-7v12c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h12c0.55 0 1 0.45 1 1z m-1 0H1v12h12V2z"></path>'),r.b("\n"+n),r.b("</svg>"),r.fl()},partials:{},subs:{}}),t.defaultTemplates["icon-file"]=new o.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<svg aria-hidden="true" class="d2h-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12">'),r.b("\n"+n),r.b(' <path d="M6 5H2v-1h4v1zM2 8h7v-1H2v1z m0 2h7v-1H2v1z m0 2h7v-1H2v1z m10-7.5v9.5c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h7.5l3.5 3.5z m-1 0.5L8 2H1v12h10V5z"></path>'),r.b("\n"+n),r.b("</svg>"),r.fl()},partials:{},subs:{}}),t.defaultTemplates["line-by-line-file-diff"]=new o.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<div id="'),r.b(r.v(r.f("fileHtmlId",e,t,0))),r.b('" class="d2h-file-wrapper" data-lang="'),r.b(r.v(r.d("file.language",e,t,0))),r.b('">'),r.b("\n"+n),r.b(' <div class="d2h-file-header">'),r.b("\n"+n),r.b(" "),r.b(r.t(r.f("filePath",e,t,0))),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b(' <div class="d2h-file-diff">'),r.b("\n"+n),r.b(' <div class="d2h-code-wrapper">'),r.b("\n"+n),r.b(' <table class="d2h-diff-table">'),r.b("\n"+n),r.b(' <tbody class="d2h-diff-tbody">'),r.b("\n"+n),r.b(" "),r.b(r.t(r.f("diffs",e,t,0))),r.b("\n"+n),r.b(" </tbody>"),r.b("\n"+n),r.b(" </table>"),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b("</div>"),r.fl()},partials:{},subs:{}}),t.defaultTemplates["line-by-line-numbers"]=new o.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<div class="line-num1">'),r.b(r.v(r.f("oldNumber",e,t,0))),r.b("</div>"),r.b("\n"+n),r.b('<div class="line-num2">'),r.b(r.v(r.f("newNumber",e,t,0))),r.b("</div>"),r.fl()},partials:{},subs:{}}),t.defaultTemplates["side-by-side-file-diff"]=new o.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<div id="'),r.b(r.v(r.f("fileHtmlId",e,t,0))),r.b('" class="d2h-file-wrapper" data-lang="'),r.b(r.v(r.d("file.language",e,t,0))),r.b('">'),r.b("\n"+n),r.b(' <div class="d2h-file-header">'),r.b("\n"+n),r.b(" "),r.b(r.t(r.f("filePath",e,t,0))),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b(' <div class="d2h-files-diff">'),r.b("\n"+n),r.b(' <div class="d2h-file-side-diff">'),r.b("\n"+n),r.b(' <div class="d2h-code-wrapper">'),r.b("\n"+n),r.b(' <table class="d2h-diff-table">'),r.b("\n"+n),r.b(' <tbody class="d2h-diff-tbody">'),r.b("\n"+n),r.b(" "),r.b(r.t(r.d("diffs.left",e,t,0))),r.b("\n"+n),r.b(" </tbody>"),r.b("\n"+n),r.b(" </table>"),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b(' <div class="d2h-file-side-diff">'),r.b("\n"+n),r.b(' <div class="d2h-code-wrapper">'),r.b("\n"+n),r.b(' <table class="d2h-diff-table">'),r.b("\n"+n),r.b(' <tbody class="d2h-diff-tbody">'),r.b("\n"+n),r.b(" "),r.b(r.t(r.d("diffs.right",e,t,0))),r.b("\n"+n),r.b(" </tbody>"),r.b("\n"+n),r.b(" </table>"),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b(" </div>"),r.b("\n"+n),r.b("</div>"),r.fl()},partials:{},subs:{}}),t.defaultTemplates["tag-file-added"]=new o.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<span class="d2h-tag d2h-added d2h-added-tag">ADDED</span>'),r.fl()},partials:{},subs:{}}),t.defaultTemplates["tag-file-changed"]=new o.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<span class="d2h-tag d2h-changed d2h-changed-tag">CHANGED</span>'),r.fl()},partials:{},subs:{}}),t.defaultTemplates["tag-file-deleted"]=new o.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<span class="d2h-tag d2h-deleted d2h-deleted-tag">DELETED</span>'),r.fl()},partials:{},subs:{}}),t.defaultTemplates["tag-file-renamed"]=new o.Template({code:function(e,t,n){var r=this;return r.b(n=n||""),r.b('<span class="d2h-tag d2h-moved d2h-moved-tag">RENAMED</span>'),r.fl()},partials:{},subs:{}})},9402:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return a(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.html=t.parse=t.defaultDiff2HtmlConfig=void 0;var l=o(n(18841)),c=o(n(82417)),u=o(n(14023)),d=o(n(39959)),h=n(51305),p=s(n(29706));function f(e,n){return void 0===n&&(n={}),l.parse(e,r(r({},t.defaultDiff2HtmlConfig),n))}function m(e,n){void 0===n&&(n={});var i=r(r({},t.defaultDiff2HtmlConfig),n),a="string"===typeof e?l.parse(e,i):e,o=new p.default(i),s=i.drawFileList?c.render(a,o):"",h="side-by-side"===i.outputFormat?new d.default(o,i).render(a):new u.default(o,i).render(a);return s+h}t.defaultDiff2HtmlConfig=r(r(r({},u.defaultLineByLineRendererConfig),d.defaultSideBySideRendererConfig),{outputFormat:h.OutputFormatType.LINE_BY_LINE,drawFileList:!0}),t.parse=f,t.html=m},82417:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.render=void 0;var o=a(n(94762)),s="file-summary",l="icon";function c(e,t){var n=e.map(function(e){return t.render(s,"line",{fileHtmlId:o.getHtmlId(e),oldName:e.oldName,newName:e.newName,fileName:o.filenameDiff(e),deletedLines:"-"+e.deletedLines,addedLines:"+"+e.addedLines},{fileIcon:t.template(l,o.getFileIcon(e))})}).join("\n");return t.render(s,"wrapper",{filesNumber:e.length,files:n})}t.render=c},29706:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});var s=o(n(62133)),l=n(53052),c=function(){function e(e){var t=e.compiledTemplates,n=void 0===t?{}:t,i=e.rawTemplates,a=void 0===i?{}:i,o=Object.entries(a).reduce(function(e,t){var n,i=t[0],a=t[1],o=s.compile(a,{asString:!1});return r(r({},e),(n={},n[i]=o,n))},{});this.preCompiledTemplates=r(r(r({},l.defaultTemplates),n),o)}return e.compile=function(e){return s.compile(e,{asString:!1})},e.prototype.render=function(e,t,n,r,i){var a=this.templateKey(e,t);try{var o=this.preCompiledTemplates[a];return o.render(n,r,i)}catch(s){throw new Error("Could not find template to render '".concat(a,"'"))}},e.prototype.template=function(e,t){return this.preCompiledTemplates[this.templateKey(e,t)]},e.prototype.templateKey=function(e,t){return"".concat(e,"-").concat(t)},e}();t["default"]=c},14023:function(e,t,n){"use strict";var r=n(4364),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)},a=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultLineByLineRendererConfig=void 0;var l=s(n(54166)),c=s(n(94762)),u=n(51305);t.defaultLineByLineRendererConfig=i(i({},c.defaultRenderConfig),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200});var d="generic",h="line-by-line",p="icon",f="tag",m=function(){function e(e,n){void 0===n&&(n={}),this.hoganUtils=e,this.config=i(i({},t.defaultLineByLineRendererConfig),n)}return e.prototype.render=function(e){var t=this,n=e.map(function(e){var n;return n=e.blocks.length?t.generateFileHtml(e):t.generateEmptyDiff(),t.makeFileDiffHtml(e,n)}).join("\n");return this.hoganUtils.render(d,"wrapper",{content:n})},e.prototype.makeFileDiffHtml=function(e,t){if(this.config.renderNothingWhenEmpty&&Array.isArray(e.blocks)&&0===e.blocks.length)return"";var n=this.hoganUtils.template(h,"file-diff"),r=this.hoganUtils.template(d,"file-path"),i=this.hoganUtils.template(p,"file"),a=this.hoganUtils.template(f,c.getFileIcon(e));return n.render({file:e,fileHtmlId:c.getHtmlId(e),diffs:t,filePath:r.render({fileDiffName:c.filenameDiff(e)},{fileIcon:i,fileTag:a})})},e.prototype.generateEmptyDiff=function(){return this.hoganUtils.render(d,"empty-diff",{contentClass:"d2h-code-line",CSSLineClass:c.CSSLineClass})},e.prototype.generateFileHtml=function(e){var t=this,n=l.newMatcherFn(l.newDistanceFn(function(t){return c.deconstructLine(t.content,e.isCombined).content}));return e.blocks.map(function(i){var a=t.hoganUtils.render(d,"block-header",{CSSLineClass:c.CSSLineClass,blockHeader:e.isTooBig?i.header:c.escapeForHtml(i.header),lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line"});return t.applyLineGroupping(i).forEach(function(i){var o=i[0],s=i[1],l=i[2];if(s.length&&l.length&&!o.length)t.applyRematchMatching(s,l,n).map(function(n){var r=n[0],i=n[1],o=t.processChangedLines(e.isCombined,r,i),s=o.left,l=o.right;a+=s,a+=l});else if(o.length)o.forEach(function(n){var r=c.deconstructLine(n.content,e.isCombined),i=r.prefix,o=r.content;a+=t.generateSingleLineHtml({type:c.CSSLineClass.CONTEXT,prefix:i,content:o,oldNumber:n.oldNumber,newNumber:n.newNumber})});else if(s.length||l.length){var u=t.processChangedLines(e.isCombined,s,l),d=u.left,h=u.right;a+=d,a+=h}else r.error("Unknown state reached while processing groups of lines",o,s,l)}),a}).join("\n")},e.prototype.applyLineGroupping=function(e){for(var t=[],n=[],r=[],i=0;i<e.lines.length;i++){var a=e.lines[i];(a.type!==u.LineType.INSERT&&r.length||a.type===u.LineType.CONTEXT&&n.length>0)&&(t.push([[],n,r]),n=[],r=[]),a.type===u.LineType.CONTEXT?t.push([[a],[],[]]):a.type===u.LineType.INSERT&&0===n.length?t.push([[],[],[a]]):a.type===u.LineType.INSERT&&n.length>0?r.push(a):a.type===u.LineType.DELETE&&n.push(a)}return(n.length||r.length)&&(t.push([[],n,r]),n=[],r=[]),t},e.prototype.applyRematchMatching=function(e,t,n){var r=e.length*t.length,i=Math.max.apply(null,[0].concat(e.concat(t).map(function(e){return e.content.length}))),a=r<this.config.matchingMaxComparisons&&i<this.config.maxLineSizeInBlockForComparison&&("lines"===this.config.matching||"words"===this.config.matching);return a?n(e,t):[[e,t]]},e.prototype.processChangedLines=function(e,t,n){for(var r={right:"",left:""},a=Math.max(t.length,n.length),o=0;o<a;o++){var s=t[o],l=n[o],u=void 0!==s&&void 0!==l?c.diffHighlight(s.content,l.content,e,this.config):void 0,d=void 0!==s&&void 0!==s.oldNumber?i(i({},void 0!==u?{prefix:u.oldLine.prefix,content:u.oldLine.content,type:c.CSSLineClass.DELETE_CHANGES}:i(i({},c.deconstructLine(s.content,e)),{type:c.toCSSClass(s.type)})),{oldNumber:s.oldNumber,newNumber:s.newNumber}):void 0,h=void 0!==l&&void 0!==l.newNumber?i(i({},void 0!==u?{prefix:u.newLine.prefix,content:u.newLine.content,type:c.CSSLineClass.INSERT_CHANGES}:i(i({},c.deconstructLine(l.content,e)),{type:c.toCSSClass(l.type)})),{oldNumber:l.oldNumber,newNumber:l.newNumber}):void 0,p=this.generateLineHtml(d,h),f=p.left,m=p.right;r.left+=f,r.right+=m}return r},e.prototype.generateLineHtml=function(e,t){return{left:this.generateSingleLineHtml(e),right:this.generateSingleLineHtml(t)}},e.prototype.generateSingleLineHtml=function(e){if(void 0===e)return"";var t=this.hoganUtils.render(h,"numbers",{oldNumber:e.oldNumber||"",newNumber:e.newNumber||""});return this.hoganUtils.render(d,"line",{type:e.type,lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line",prefix:" "===e.prefix?" ":e.prefix,content:e.content,lineNumber:t})},e}();t["default"]=m},54166:function(e,t){"use strict";function n(e,t){if(0===e.length)return t.length;if(0===t.length)return e.length;var n,r,i=[];for(n=0;n<=t.length;n++)i[n]=[n];for(r=0;r<=e.length;r++)i[0][r]=r;for(n=1;n<=t.length;n++)for(r=1;r<=e.length;r++)t.charAt(n-1)===e.charAt(r-1)?i[n][r]=i[n-1][r-1]:i[n][r]=Math.min(i[n-1][r-1]+1,Math.min(i[n][r-1]+1,i[n-1][r]+1));return i[t.length][e.length]}function r(e){return function(t,r){var i=e(t).trim(),a=e(r).trim(),o=n(i,a);return o/(i.length+a.length)}}function i(e){function t(t,n,r){void 0===r&&(r=new Map);for(var i,a=1/0,o=0;o<t.length;++o)for(var s=0;s<n.length;++s){var l=JSON.stringify([t[o],n[s]]),c=void 0;r.has(l)&&(c=r.get(l))||(c=e(t[o],n[s]),r.set(l,c)),c<a&&(a=c,i={indexA:o,indexB:s,score:a})}return i}function n(e,r,i,a){void 0===i&&(i=0),void 0===a&&(a=new Map);var o=t(e,r,a);if(!o||e.length+r.length<3)return[[e,r]];var s=e.slice(0,o.indexA),l=r.slice(0,o.indexB),c=[e[o.indexA]],u=[r[o.indexB]],d=o.indexA+1,h=o.indexB+1,p=e.slice(d),f=r.slice(h),m=n(s,l,i+1,a),g=n(c,u,i+1,a),v=n(p,f,i+1,a),b=g;return(o.indexA>0||o.indexB>0)&&(b=m.concat(b)),(e.length>d||r.length>h)&&(b=b.concat(v)),b}return n}Object.defineProperty(t,"__esModule",{value:!0}),t.newMatcherFn=t.newDistanceFn=t.levenshtein=void 0,t.levenshtein=n,t.newDistanceFn=r,t.newMatcherFn=i},94762:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.diffHighlight=t.getFileIcon=t.getHtmlId=t.filenameDiff=t.deconstructLine=t.escapeForHtml=t.toCSSClass=t.defaultRenderConfig=t.CSSLineClass=void 0;var s=o(n(48063)),l=n(44869),c=o(n(54166)),u=n(51305);t.CSSLineClass={INSERTS:"d2h-ins",DELETES:"d2h-del",CONTEXT:"d2h-cntx",INFO:"d2h-info",INSERT_CHANGES:"d2h-ins d2h-change",DELETE_CHANGES:"d2h-del d2h-change"},t.defaultRenderConfig={matching:u.LineMatchingType.NONE,matchWordsThreshold:.25,maxLineLengthHighlight:1e4,diffStyle:u.DiffStyleType.WORD};var d="/",h=c.newDistanceFn(function(e){return e.value}),p=c.newMatcherFn(h);function f(e){return-1!==e.indexOf("dev/null")}function m(e){return e.replace(/(<ins[^>]*>((.|\n)*?)<\/ins>)/g,"")}function g(e){return e.replace(/(<del[^>]*>((.|\n)*?)<\/del>)/g,"")}function v(e){switch(e){case u.LineType.CONTEXT:return t.CSSLineClass.CONTEXT;case u.LineType.INSERT:return t.CSSLineClass.INSERTS;case u.LineType.DELETE:return t.CSSLineClass.DELETES}}function b(e){return e?2:1}function y(e){return e.slice(0).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")}function _(e,t,n){void 0===n&&(n=!0);var r=b(t);return{prefix:e.substring(0,r),content:n?y(e.substring(r)):e.substring(r)}}function w(e){var t=(0,l.unifyPath)(e.oldName),n=(0,l.unifyPath)(e.newName);if(t===n||f(t)||f(n))return f(n)?t:n;var r=[],i=[],a=t.split(d),o=n.split(d),s=a.length,c=o.length,u=0,h=s-1,p=c-1;while(u<h&&u<p){if(a[u]!==o[u])break;r.push(o[u]),u+=1}while(h>u&&p>u){if(a[h]!==o[p])break;i.unshift(o[p]),h-=1,p-=1}var m=r.join(d),g=i.join(d),v=a.slice(u,h+1).join(d),b=o.slice(u,p+1).join(d);return m.length&&g.length?m+d+"{"+v+" → "+b+"}"+d+g:m.length?m+d+"{"+v+" → "+b+"}":g.length?"{"+v+" → "+b+"}"+d+g:t+" → "+n}function E(e){return"d2h-".concat((0,l.hashCode)(w(e)).toString().slice(-6))}function S(e){var t="file-changed";return e.isRename||e.isCopy?t="file-renamed":e.isNew?t="file-added":e.isDeleted?t="file-deleted":e.newName!==e.oldName&&(t="file-renamed"),t}function k(e,n,i,a){void 0===a&&(a={});var o=r(r({},t.defaultRenderConfig),a),l=o.matching,c=o.maxLineLengthHighlight,u=o.matchWordsThreshold,d=o.diffStyle,f=_(e,i,!1),v=_(n,i,!1);if(f.content.length>c||v.content.length>c)return{oldLine:{prefix:f.prefix,content:y(f.content)},newLine:{prefix:v.prefix,content:y(v.content)}};var b="char"===d?s.diffChars(f.content,v.content):s.diffWordsWithSpace(f.content,v.content),w=[];if("word"===d&&"words"===l){var E=b.filter(function(e){return e.removed}),S=b.filter(function(e){return e.added}),k=p(S,E);k.forEach(function(e){if(1===e[0].length&&1===e[1].length){var t=h(e[0][0],e[1][0]);t<u&&(w.push(e[0][0]),w.push(e[1][0]))}})}var x=b.reduce(function(e,t){var n=t.added?"ins":t.removed?"del":null,r=w.indexOf(t)>-1?' class="d2h-change"':"",i=y(t.value);return null!==n?"".concat(e,"<").concat(n).concat(r,">").concat(i,"</").concat(n,">"):"".concat(e).concat(i)},"");return{oldLine:{prefix:f.prefix,content:m(x)},newLine:{prefix:v.prefix,content:g(x)}}}t.toCSSClass=v,t.escapeForHtml=y,t.deconstructLine=_,t.filenameDiff=w,t.getHtmlId=E,t.getFileIcon=S,t.diffHighlight=k},39959:function(e,t,n){"use strict";var r=n(4364),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)},a=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultSideBySideRendererConfig=void 0;var l=s(n(54166)),c=s(n(94762)),u=n(51305);t.defaultSideBySideRendererConfig=i(i({},c.defaultRenderConfig),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200});var d="generic",h="side-by-side",p="icon",f="tag",m=function(){function e(e,n){void 0===n&&(n={}),this.hoganUtils=e,this.config=i(i({},t.defaultSideBySideRendererConfig),n)}return e.prototype.render=function(e){var t=this,n=e.map(function(e){var n;return n=e.blocks.length?t.generateFileHtml(e):t.generateEmptyDiff(),t.makeFileDiffHtml(e,n)}).join("\n");return this.hoganUtils.render(d,"wrapper",{content:n})},e.prototype.makeFileDiffHtml=function(e,t){if(this.config.renderNothingWhenEmpty&&Array.isArray(e.blocks)&&0===e.blocks.length)return"";var n=this.hoganUtils.template(h,"file-diff"),r=this.hoganUtils.template(d,"file-path"),i=this.hoganUtils.template(p,"file"),a=this.hoganUtils.template(f,c.getFileIcon(e));return n.render({file:e,fileHtmlId:c.getHtmlId(e),diffs:t,filePath:r.render({fileDiffName:c.filenameDiff(e)},{fileIcon:i,fileTag:a})})},e.prototype.generateEmptyDiff=function(){return{right:"",left:this.hoganUtils.render(d,"empty-diff",{contentClass:"d2h-code-side-line",CSSLineClass:c.CSSLineClass})}},e.prototype.generateFileHtml=function(e){var t=this,n=l.newMatcherFn(l.newDistanceFn(function(t){return c.deconstructLine(t.content,e.isCombined).content}));return e.blocks.map(function(i){var a={left:t.makeHeaderHtml(i.header,e),right:t.makeHeaderHtml("")};return t.applyLineGroupping(i).forEach(function(i){var o=i[0],s=i[1],l=i[2];if(s.length&&l.length&&!o.length)t.applyRematchMatching(s,l,n).map(function(n){var r=n[0],i=n[1],o=t.processChangedLines(e.isCombined,r,i),s=o.left,l=o.right;a.left+=s,a.right+=l});else if(o.length)o.forEach(function(n){var r=c.deconstructLine(n.content,e.isCombined),i=r.prefix,o=r.content,s=t.generateLineHtml({type:c.CSSLineClass.CONTEXT,prefix:i,content:o,number:n.oldNumber},{type:c.CSSLineClass.CONTEXT,prefix:i,content:o,number:n.newNumber}),l=s.left,u=s.right;a.left+=l,a.right+=u});else if(s.length||l.length){var u=t.processChangedLines(e.isCombined,s,l),d=u.left,h=u.right;a.left+=d,a.right+=h}else r.error("Unknown state reached while processing groups of lines",o,s,l)}),a}).reduce(function(e,t){return{left:e.left+t.left,right:e.right+t.right}},{left:"",right:""})},e.prototype.applyLineGroupping=function(e){for(var t=[],n=[],r=[],i=0;i<e.lines.length;i++){var a=e.lines[i];(a.type!==u.LineType.INSERT&&r.length||a.type===u.LineType.CONTEXT&&n.length>0)&&(t.push([[],n,r]),n=[],r=[]),a.type===u.LineType.CONTEXT?t.push([[a],[],[]]):a.type===u.LineType.INSERT&&0===n.length?t.push([[],[],[a]]):a.type===u.LineType.INSERT&&n.length>0?r.push(a):a.type===u.LineType.DELETE&&n.push(a)}return(n.length||r.length)&&(t.push([[],n,r]),n=[],r=[]),t},e.prototype.applyRematchMatching=function(e,t,n){var r=e.length*t.length,i=Math.max.apply(null,[0].concat(e.concat(t).map(function(e){return e.content.length}))),a=r<this.config.matchingMaxComparisons&&i<this.config.maxLineSizeInBlockForComparison&&("lines"===this.config.matching||"words"===this.config.matching);return a?n(e,t):[[e,t]]},e.prototype.makeHeaderHtml=function(e,t){return this.hoganUtils.render(d,"block-header",{CSSLineClass:c.CSSLineClass,blockHeader:(null===t||void 0===t?void 0:t.isTooBig)?e:c.escapeForHtml(e),lineClass:"d2h-code-side-linenumber",contentClass:"d2h-code-side-line"})},e.prototype.processChangedLines=function(e,t,n){for(var r={right:"",left:""},a=Math.max(t.length,n.length),o=0;o<a;o++){var s=t[o],l=n[o],u=void 0!==s&&void 0!==l?c.diffHighlight(s.content,l.content,e,this.config):void 0,d=void 0!==s&&void 0!==s.oldNumber?i(i({},void 0!==u?{prefix:u.oldLine.prefix,content:u.oldLine.content,type:c.CSSLineClass.DELETE_CHANGES}:i(i({},c.deconstructLine(s.content,e)),{type:c.toCSSClass(s.type)})),{number:s.oldNumber}):void 0,h=void 0!==l&&void 0!==l.newNumber?i(i({},void 0!==u?{prefix:u.newLine.prefix,content:u.newLine.content,type:c.CSSLineClass.INSERT_CHANGES}:i(i({},c.deconstructLine(l.content,e)),{type:c.toCSSClass(l.type)})),{number:l.newNumber}):void 0,p=this.generateLineHtml(d,h),f=p.left,m=p.right;r.left+=f,r.right+=m}return r},e.prototype.generateLineHtml=function(e,t){return{left:this.generateSingleHtml(e),right:this.generateSingleHtml(t)}},e.prototype.generateSingleHtml=function(e){var t="d2h-code-side-linenumber",n="d2h-code-side-line";return this.hoganUtils.render(d,"line",{type:(null===e||void 0===e?void 0:e.type)||"".concat(c.CSSLineClass.CONTEXT," d2h-emptyplaceholder"),lineClass:void 0!==e?t:"".concat(t," d2h-code-side-emptyplaceholder"),contentClass:void 0!==e?n:"".concat(n," d2h-code-side-emptyplaceholder"),prefix:" "===(null===e||void 0===e?void 0:e.prefix)?" ":null===e||void 0===e?void 0:e.prefix,content:null===e||void 0===e?void 0:e.content,lineNumber:null===e||void 0===e?void 0:e.number})},e}();t["default"]=m},51305:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DiffStyleType=t.LineMatchingType=t.OutputFormatType=t.LineType=void 0,function(e){e["INSERT"]="insert",e["DELETE"]="delete",e["CONTEXT"]="context"}(t.LineType||(t.LineType={})),t.OutputFormatType={LINE_BY_LINE:"line-by-line",SIDE_BY_SIDE:"side-by-side"},t.LineMatchingType={LINES:"lines",WORDS:"words",NONE:"none"},t.DiffStyleType={WORD:"word",CHAR:"char"}},33908:function(e,t,n){"use strict";var r=n(4364),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.Diff2HtmlUI=t.defaultDiff2HtmlUIConfig=void 0;var a=n(53126),o=n(9402);t.defaultDiff2HtmlUIConfig=i(i({},o.defaultDiff2HtmlConfig),{synchronisedScroll:!0,highlight:!0,fileListToggle:!0,fileListStartVisible:!1,highlightLanguages:new Map,smartSelection:!0,fileContentToggle:!0,stickyFileHeaders:!0});var s=function(){function e(e,n,r,a){void 0===r&&(r={}),this.hljs=null,this.currentSelectionColumnId=-1,this.config=i(i({},t.defaultDiff2HtmlUIConfig),r),this.diffHtml=void 0!==n?(0,o.html)(n,this.config):e.innerHTML,this.targetElement=e,void 0!==a&&(this.hljs=a)}return e.prototype.draw=function(){this.targetElement.innerHTML=this.diffHtml,this.config.synchronisedScroll&&this.synchronisedScroll(),this.config.highlight&&this.highlightCode(),this.config.fileListToggle&&this.fileListToggle(this.config.fileListStartVisible),this.config.fileContentToggle&&this.fileContentToggle(),this.config.stickyFileHeaders&&this.stickyFileHeaders()},e.prototype.synchronisedScroll=function(){this.targetElement.querySelectorAll(".d2h-file-wrapper").forEach(function(e){var t=Array().slice.call(e.querySelectorAll(".d2h-file-side-diff")),n=t[0],r=t[1];if(void 0!==n&&void 0!==r){var i=function(e){null!==e&&null!==e.target&&(e.target===n?(r.scrollTop=n.scrollTop,r.scrollLeft=n.scrollLeft):(n.scrollTop=r.scrollTop,n.scrollLeft=r.scrollLeft))};n.addEventListener("scroll",i),r.addEventListener("scroll",i)}})},e.prototype.fileListToggle=function(e){var t=this.targetElement.querySelector(".d2h-show"),n=this.targetElement.querySelector(".d2h-hide"),r=this.targetElement.querySelector(".d2h-file-list");if(null!==t&&null!==n&&null!==r){var i=function(){t.style.display="none",n.style.display="inline",r.style.display="block"},a=function(){t.style.display="inline",n.style.display="none",r.style.display="none"};t.addEventListener("click",function(){return i()}),n.addEventListener("click",function(){return a()});var o=this.getHashTag();"files-summary-show"===o?i():"files-summary-hide"===o?a():e?i():a()}},e.prototype.fileContentToggle=function(){this.targetElement.querySelectorAll(".d2h-file-collapse").forEach(function(e){e.style.display="flex";var t=function(t){var n,r=null===(n=e.closest(".d2h-file-wrapper"))||void 0===n?void 0:n.querySelector(t);null!==r&&void 0!==r&&(e.classList.toggle("d2h-selected"),r.classList.toggle("d2h-d-none"))},n=function(n){e!==n.target&&(t(".d2h-file-diff"),t(".d2h-files-diff"))};e.addEventListener("click",function(e){return n(e)})})},e.prototype.highlightCode=function(){var e=this,t=this.hljs;if(null===t)throw new Error("Missing a `highlight.js` implementation. Please provide one when instantiating Diff2HtmlUI.");var n=this.targetElement.querySelectorAll(".d2h-file-wrapper");n.forEach(function(n){var r=n.getAttribute("data-lang");e.config.highlightLanguages instanceof Map||(e.config.highlightLanguages=new Map(Object.entries(e.config.highlightLanguages)));var i=r&&e.config.highlightLanguages.has(r)?e.config.highlightLanguages.get(r):r?(0,a.getLanguage)(r):"plaintext",o=n.querySelectorAll(".d2h-code-line-ctn");o.forEach(function(n){var r=n.textContent,o=n.parentNode;if(null!==r&&null!==o&&e.isElement(o)){var s=(0,a.closeTags)(t.highlight(r,{language:i,ignoreIllegals:!0})),l=(0,a.nodeStream)(n);if(l.length){var c=document.createElementNS("http://www.w3.org/1999/xhtml","div");c.innerHTML=s.value,s.value=(0,a.mergeStreams)(l,(0,a.nodeStream)(c),r)}n.classList.add("hljs"),s.language&&n.classList.add(s.language),n.innerHTML=s.value}})})},e.prototype.stickyFileHeaders=function(){this.targetElement.querySelectorAll(".d2h-file-header").forEach(function(e){e.classList.add("d2h-sticky-header")})},e.prototype.smartSelection=function(){r.warn("Smart selection is now enabled by default with CSS. No need to call this method anymore.")},e.prototype.getHashTag=function(){var e=document.URL,t=e.indexOf("#"),n=null;return-1!==t&&(n=e.substr(t+1)),n},e.prototype.isElement=function(e){return null!==e&&void 0!==(null===e||void 0===e?void 0:e.classList)},e}();t.Diff2HtmlUI=s},34312:function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.defaultDiff2HtmlUIConfig=t.Diff2HtmlUI=void 0;var i=n(42418),a=n(33908);Object.defineProperty(t,"defaultDiff2HtmlUIConfig",{enumerable:!0,get:function(){return a.defaultDiff2HtmlUIConfig}});var o=function(e){function t(t,n,r){return void 0===r&&(r={}),e.call(this,t,n,r,i.hljs)||this}return r(t,e),t}(a.Diff2HtmlUI);t.Diff2HtmlUI=o},53126:function(e,t){"use strict";function n(e){return e.replace(/&/gm,"&").replace(/</gm,"<").replace(/>/gm,">")}function r(e){return e.nodeName.toLowerCase()}function i(e){var t=[],n=function(e,i){for(var a=e.firstChild;a;a=a.nextSibling)3===a.nodeType&&null!==a.nodeValue?i+=a.nodeValue.length:1===a.nodeType&&(t.push({event:"start",offset:i,node:a}),i=n(a,i),r(a).match(/br|hr|img|input/)||t.push({event:"stop",offset:i,node:a}));return i};return n(e,0),t}function a(e,t,i){var a=0,o="",s=[];function l(e){return null!==e&&void 0!==(null===e||void 0===e?void 0:e.attributes)}function c(){return e.length&&t.length?e[0].offset!==t[0].offset?e[0].offset<t[0].offset?e:t:"start"===t[0].event?e:t:e.length?e:t}function u(e){if(!l(e))throw new Error("Node is not an Element");o+="<".concat(r(e)," ").concat(Array().map.call(e.attributes,function(e){return"".concat(e.nodeName,'="').concat(n(e.value).replace(/"/g,"""),'"')}).join(" "),">")}function d(e){o+="</"+r(e)+">"}function h(e){("start"===e.event?u:d)(e.node)}while(e.length||t.length){var p=c();if(o+=n(i.substring(a,p[0].offset)),a=p[0].offset,p===e){s.reverse().forEach(d);do{h(p.splice(0,1)[0]),p=c()}while(p===e&&p.length&&p[0].offset===a);s.reverse().forEach(u)}else"start"===p[0].event?s.push(p[0].node):s.pop(),h(p.splice(0,1)[0])}return o+n(i.substr(a))}function o(e){var t=new Array;return e.value=e.value.split("\n").map(function(e){var n=t.map(function(e){return'<span class="'.concat(e,'">')}).join(""),r=e.matchAll(/(<span class="(.*?)">|<\/span>)/g);Array.from(r).forEach(function(e){"</span>"===e[0]?t.shift():t.unshift(e[2])});var i="</span>".repeat(t.length);return n+e+i}).join("\n"),e}Object.defineProperty(t,"__esModule",{value:!0}),t.getLanguage=t.closeTags=t.mergeStreams=t.nodeStream=void 0,t.nodeStream=i,t.mergeStreams=a,t.closeTags=o;var s={"1c":"1c",abnf:"abnf",accesslog:"accesslog",as:"actionscript",adb:"ada",ada:"ada",ads:"ada",angelscript:"angelscript",apache:"apache",applescript:"applescript",scpt:"applescript",arcade:"arcade",cpp:"cpp",hpp:"cpp",arduino:"arduino",ino:"arduino",armasm:"armasm",arm:"armasm",xml:"xml",html:"xml",xhtml:"xml",rss:"xml",atom:"xml",xjb:"xml",xsd:"xml",xsl:"xml",plist:"xml",svg:"xml",asciidoc:"asciidoc",adoc:"asciidoc",asc:"asciidoc",aspectj:"aspectj",ahk:"autohotkey",ahkl:"autohotkey",au3:"autoit",avrasm:"avrasm",awk:"awk",axapta:"axapta","x++":"axapta",bash:"bash",sh:"bash",zsh:"bash",b:"basic",bnf:"bnf",bf:"brainfuck",c:"c",h:"c",cats:"c",idc:"c",cal:"cal",capnproto:"capnproto",capnp:"capnproto",ceylon:"ceylon",clean:"clean",clj:"clojure",boot:"clojure",cl2:"clojure",cljc:"clojure",cljs:"clojure","cljs.hl":"clojure",cljscm:"clojure",cljx:"clojure",hic:"clojure","clojure-repl":"clojure-repl",cmake:"cmake","cmake.in":"cmake",coffee:"coffeescript",_coffee:"coffeescript",cake:"coffeescript",cjsx:"coffeescript",iced:"coffeescript",cson:"coffeescript",coq:"coq",cos:"cos",cls:"cos",crmsh:"crmsh",crm:"crmsh",pcmk:"crmsh",cr:"crystal",cs:"csharp",csx:"csharp",csp:"csp",css:"css",d:"d",di:"d",md:"markdown",markdown:"markdown",mdown:"markdown",mdwn:"markdown",mkd:"markdown",mkdn:"markdown",mkdown:"markdown",ronn:"markdown",workbook:"markdown",dart:"dart",dpr:"delphi",dfm:"delphi",pas:"delphi",pascal:"delphi",diff:"diff",patch:"diff",django:"django",jinja:"django",dns:"dns",zone:"dns",bind:"dns",dockerfile:"dockerfile",docker:"dockerfile",dos:"dos",bat:"dos",cmd:"dos",dsconfig:"dsconfig",dts:"dts",dust:"dust",dst:"dust",ebnf:"ebnf",ex:"elixir",exs:"elixir",elm:"elm",rb:"ruby",builder:"ruby",eye:"ruby",gemspec:"ruby",god:"ruby",jbuilder:"ruby",mspec:"ruby",pluginspec:"ruby",podspec:"ruby",rabl:"ruby",rake:"ruby",rbuild:"ruby",rbw:"ruby",rbx:"ruby",ru:"ruby",ruby:"ruby",spec:"ruby",thor:"ruby",watchr:"ruby",erb:"erb","erlang-repl":"erlang-repl",erl:"erlang","app.src":"erlang",escript:"erlang",hrl:"erlang",xrl:"erlang",yrl:"erlang",excel:"excel",xls:"excel",xlsx:"excel",fix:"fix",flix:"flix",f90:"fortran",f:"fortran",f03:"fortran",f08:"fortran",f77:"fortran",f95:"fortran",for:"fortran",fpp:"fortran",fs:"fsharp",fsx:"fsharp",gams:"gams",gms:"gams",gauss:"gauss",gss:"gauss",gcode:"gcode",nc:"gcode",gherkin:"gherkin",glsl:"glsl",fp:"glsl",frag:"glsl",frg:"glsl",fsh:"glsl",fshader:"glsl",geo:"glsl",geom:"glsl",glslv:"glsl",gshader:"glsl",shader:"glsl",tesc:"glsl",tese:"glsl",vert:"glsl",vrx:"glsl",vsh:"glsl",vshader:"glsl",gml:"gml",go:"go",bal:"go",golo:"golo",gololang:"golo",gradle:"gradle",groovy:"groovy",grt:"groovy",gtpl:"groovy",gvy:"groovy",haml:"haml","haml.deface":"haml",handlebars:"handlebars",hbs:"handlebars","html.hbs":"handlebars","html.handlebars":"handlebars",hs:"haskell",hsc:"haskell",idr:"haskell",purs:"haskell",hx:"haxe",hxsl:"haxe",hsp:"hsp",htmlbars:"htmlbars",http:"http",https:"http",hy:"hy",inform7:"inform7",i7:"inform7",ini:"ini",toml:"ini",cfg:"ini",prefs:"ini",irpf90:"irpf90",isbl:"isbl",java:"java",jsp:"java",js:"javascript",jsx:"javascript",_js:"javascript",bones:"javascript",es:"javascript",es6:"javascript",gs:"javascript",jake:"javascript",jsb:"javascript",jscad:"javascript",jsfl:"javascript",jsm:"javascript",jss:"javascript",mjs:"javascript",njs:"javascript",pac:"javascript",sjs:"javascript",ssjs:"javascript",xsjs:"javascript",xsjslib:"javascript",cfc:"javascript","jboss-cli":"jboss-cli",json:"json",avsc:"json",geojson:"json",gltf:"json","JSON-tmLanguage":"json",jsonl:"json",tfstate:"json","tfstate.backup":"json",topojson:"json",webapp:"json",webmanifest:"json",jl:"julia","julia-repl":"julia-repl",kt:"kotlin",ktm:"kotlin",kts:"kotlin",lasso:"lasso",lassoscript:"lasso",tex:"latex",ldif:"ldif",leaf:"leaf",less:"less",lisp:"lisp",factor:"lisp",livecodeserver:"livecodeserver",ls:"livescript",_ls:"livescript",llvm:"llvm",lsl:"lsl",lua:"lua",nse:"lua",p8:"lua",pd_lua:"lua",rbxs:"lua",wlua:"lua",mak:"makefile",make:"makefile",mk:"makefile",mkfile:"makefile",mathematica:"mathematica",mma:"mathematica",wl:"mathematica",matlab:"matlab",maxima:"maxima",mel:"mel",mercury:"mercury",mipsasm:"mipsasm",miz:"mizar",voc:"mizar",al:"perl",cgi:"perl",fcgi:"perl",perl:"perl",ph:"perl",plx:"perl",pl:"perl",pm:"perl",psgi:"perl",t:"perl",mojolicious:"mojolicious",monkey:"monkey",monkey2:"monkey",moonscript:"moonscript",moon:"moonscript",n1ql:"n1ql",nginxconf:"nginx",nim:"nim",nimrod:"nim",nix:"nix",nsi:"nsis",nsh:"nsis",m:"objectivec",objc:"objectivec",mm:"objectivec","obj-c":"objectivec","obj-c++":"objectivec","objective-c++":"objectivec",fun:"ocaml",sig:"ocaml",ml:"ocaml",mli:"ocaml",eliom:"ocaml",eliomi:"ocaml",ml4:"ocaml",mll:"ocaml",mly:"ocaml",openscad:"openscad",oxygene:"oxygene",parser3:"parser3",pf:"pf","pf.conf":"pf",pgsql:"pgsql",postgres:"pgsql",postgresql:"pgsql",php:"php",aw:"php",ctp:"php",inc:"php",php3:"php",php4:"php",php5:"php",phps:"php",phpt:"php","php-template":"php-template",plaintext:"plaintext",txt:"plaintext",text:"plaintext",pony:"pony",ps:"powershell",ps1:"powershell",psd1:"powershell",psm1:"powershell",pde:"processing",profile:"profile",pro:"prolog",prolog:"prolog",yap:"prolog",properties:"properties",proto:"protobuf",puppet:"puppet",pp:"puppet",purebasic:"purebasic",py:"python",bzl:"python",gyp:"python",gypi:"python",lmi:"python",py3:"python",pyde:"python",pyi:"python",pyp:"python",pyt:"python",pyw:"python",rpy:"python",tac:"python",wsgi:"python",xpy:"python","python-repl":"python-repl",pycon:"python-repl",q:"q",k:"q",kdb:"q",qml:"qml",r:"r",rd:"r",rsx:"r",reasonml:"reasonml",re:"reasonml",rib:"rib",roboconf:"roboconf",graph:"roboconf",instances:"roboconf",routeros:"routeros",rsl:"rsl",ruleslanguage:"ruleslanguage",rs:"rust","rs.in":"rust",sas:"sas",scala:"scala",kojo:"scala",sbt:"scala",sc:"scala",scm:"scheme",sch:"scheme",sld:"scheme",sls:"scheme",sps:"scheme",ss:"scheme",rkt:"scheme",scilab:"scilab",scss:"scss",shell:"shell",smali:"smali",st:"smalltalk",sml:"sml",sqf:"sqf",sql:"sql",cql:"sql",ddl:"sql",mysql:"sql",prc:"sql",tab:"sql",udf:"sql",viw:"sql",stan:"stan",stanfuncs:"stan",stata:"stata",step21:"step21",step:"step21",stp:"step21",styl:"stylus",subunit:"subunit",swift:"swift",taggerscript:"taggerscript",yml:"yaml",mir:"yaml",reek:"yaml",rviz:"yaml","sublime-syntax":"yaml",syntax:"yaml",yaml:"yaml","yaml-tmlanguage":"yaml","yml.mysql":"yaml",tap:"tap",tcl:"tcl",adp:"tcl",tm:"tcl",thrift:"thrift",tp:"tp",twig:"twig",craftcms:"twig",ts:"typescript",tsx:"typescript",vala:"vala",vbnet:"vbnet",vb:"vbnet",vbscript:"vbscript",vbs:"vbscript","vbscript-html":"vbscript-html",v:"verilog",veo:"verilog",vhdl:"vhdl",vhd:"vhdl",vhf:"vhdl",vhi:"vhdl",vho:"vhdl",vhs:"vhdl",vht:"vhdl",vhw:"vhdl",vim:"vim",x86asm:"x86asm",xl:"xl",xquery:"xquery",xpath:"xquery",xq:"xquery",zephir:"zephir",zep:"zephir"};function l(e){var t;return null!==(t=s[e])&&void 0!==t?t:"plaintext"}t.getLanguage=l},42418:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.hljs=void 0;var i=r(n(3973)),a=r(n(68049)),o=r(n(21869)),s=r(n(69205)),l=r(n(46760)),c=r(n(33089)),u=r(n(37620)),d=r(n(25326)),h=r(n(17025)),p=r(n(35678)),f=r(n(63355)),m=r(n(50687)),g=r(n(92835)),v=r(n(16361)),b=r(n(82476)),y=r(n(74809)),_=r(n(42892)),w=r(n(79386)),E=r(n(84441)),S=r(n(25236)),k=r(n(51468)),x=r(n(95541)),A=r(n(53528)),C=r(n(88842)),T=r(n(74192)),N=r(n(99682)),R=r(n(26418)),O=r(n(73113)),I=r(n(90020)),L=r(n(44063)),D=r(n(1075)),P=r(n(8090)),M=r(n(77190)),B=r(n(30374)),F=r(n(3315)),$=r(n(86072)),U=r(n(69318)),j=r(n(74071)),V=r(n(37592)),K=r(n(50619)),G=r(n(45107)),H=r(n(76015)),z=r(n(2061)),q=r(n(90944)),X=r(n(8368)),W=r(n(31914)),Y=r(n(74222)),Q=r(n(7846)),J=r(n(90984)),Z=r(n(72723)),ee=r(n(98005)),te=r(n(45745));i.default.registerLanguage("cpp",a.default),i.default.registerLanguage("xml",o.default),i.default.registerLanguage("awk",s.default),i.default.registerLanguage("bash",l.default),i.default.registerLanguage("c",c.default),i.default.registerLanguage("clojure",u.default),i.default.registerLanguage("crystal",d.default),i.default.registerLanguage("csharp",h.default),i.default.registerLanguage("csp",p.default),i.default.registerLanguage("css",f.default),i.default.registerLanguage("markdown",m.default),i.default.registerLanguage("dart",g.default),i.default.registerLanguage("diff",v.default),i.default.registerLanguage("dockerfile",b.default),i.default.registerLanguage("elixir",y.default),i.default.registerLanguage("elm",_.default),i.default.registerLanguage("ruby",w.default),i.default.registerLanguage("erlang",E.default),i.default.registerLanguage("fsharp",S.default),i.default.registerLanguage("go",k.default),i.default.registerLanguage("gradle",x.default),i.default.registerLanguage("groovy",A.default),i.default.registerLanguage("handlebars",C.default),i.default.registerLanguage("haskell",T.default),i.default.registerLanguage("ini",N.default),i.default.registerLanguage("java",R.default),i.default.registerLanguage("javascript",O.default),i.default.registerLanguage("json",I.default),i.default.registerLanguage("kotlin",L.default),i.default.registerLanguage("less",D.default),i.default.registerLanguage("lisp",P.default),i.default.registerLanguage("lua",M.default),i.default.registerLanguage("makefile",B.default),i.default.registerLanguage("perl",F.default),i.default.registerLanguage("nginx",$.default),i.default.registerLanguage("objectivec",U.default),i.default.registerLanguage("pgsql",j.default),i.default.registerLanguage("php",V.default),i.default.registerLanguage("plaintext",K.default),i.default.registerLanguage("powershell",G.default),i.default.registerLanguage("properties",H.default),i.default.registerLanguage("protobuf",z.default),i.default.registerLanguage("python",q.default),i.default.registerLanguage("rust",X.default),i.default.registerLanguage("scala",W.default),i.default.registerLanguage("scss",Y.default),i.default.registerLanguage("shell",Q.default),i.default.registerLanguage("sql",J.default),i.default.registerLanguage("swift",Z.default),i.default.registerLanguage("yaml",ee.default),i.default.registerLanguage("typescript",te.default),t.hljs=i.default},44869:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hashCode=t.unifyPath=t.escapeForRegExp=void 0;var n=["-","[","]","/","{","}","(",")","*","+","?",".","\\","^","$","|"],r=RegExp("["+n.join("\\")+"]","g");function i(e){return e.replace(r,"\\$&")}function a(e){return e?e.replace(/\\/g,"/"):e}function o(e){var t,n,r,i=0;for(t=0,r=e.length;t<r;t++)n=e.charCodeAt(t),i=(i<<5)-i+n,i|=0;return i}t.escapeForRegExp=i,t.unifyPath=a,t.hashCode=o},26990:function(e,t){"use strict";function n(e){for(var t,n,r=[],i=0;i<e.length;i++)t=e[i],n=t.added?1:t.removed?-1:0,r.push([n,t.value]);return r}Object.defineProperty(t,"__esModule",{value:!0}),t.convertChangesToDMP=n},69438:function(e,t){"use strict";function n(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];i.added?t.push("<ins>"):i.removed&&t.push("<del>"),t.push(r(i.value)),i.added?t.push("</ins>"):i.removed&&t.push("</del>")}return t.join("")}function r(e){var t=e;return t=t.replace(/&/g,"&"),t=t.replace(/</g,"<"),t=t.replace(/>/g,">"),t=t.replace(/"/g,"""),t}Object.defineProperty(t,"__esModule",{value:!0}),t.convertChangesToXML=n},49906:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.diffArrays=o,t.arrayDiff=void 0;var r=i(n(22458));function i(e){return e&&e.__esModule?e:{default:e}}var a=new r["default"];function o(e,t,n){return a.diff(e,t,n)}t.arrayDiff=a,a.tokenize=function(e){return e.slice()},a.join=a.removeEmpty=function(e){return e}},22458:function(e,t){"use strict";function n(){}function r(e,t,n,r,i){for(var a=0,o=t.length,s=0,l=0;a<o;a++){var c=t[a];if(c.removed){if(c.value=e.join(r.slice(l,l+c.count)),l+=c.count,a&&t[a-1].added){var u=t[a-1];t[a-1]=t[a],t[a]=u}}else{if(!c.added&&i){var d=n.slice(s,s+c.count);d=d.map(function(e,t){var n=r[l+t];return n.length>e.length?n:e}),c.value=e.join(d)}else c.value=e.join(n.slice(s,s+c.count));s+=c.count,c.added||(l+=c.count)}}var h=t[o-1];return o>1&&"string"===typeof h.value&&(h.added||h.removed)&&e.equals("",h.value)&&(t[o-2].value+=h.value,t.pop()),t}function i(e){return{newPos:e.newPos,components:e.components.slice(0)}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n,n.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=n.callback;"function"===typeof n&&(a=n,n={}),this.options=n;var o=this;function s(e){return a?(setTimeout(function(){a(void 0,e)},0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e)),t=this.removeEmpty(this.tokenize(t));var l=t.length,c=e.length,u=1,d=l+c;n.maxEditLength&&(d=Math.min(d,n.maxEditLength));var h=[{newPos:-1,components:[]}],p=this.extractCommon(h[0],t,e,0);if(h[0].newPos+1>=l&&p+1>=c)return s([{value:this.join(t),count:t.length}]);function f(){for(var n=-1*u;n<=u;n+=2){var a=void 0,d=h[n-1],p=h[n+1],f=(p?p.newPos:0)-n;d&&(h[n-1]=void 0);var m=d&&d.newPos+1<l,g=p&&0<=f&&f<c;if(m||g){if(!m||g&&d.newPos<p.newPos?(a=i(p),o.pushComponent(a.components,void 0,!0)):(a=d,a.newPos++,o.pushComponent(a.components,!0,void 0)),f=o.extractCommon(a,t,e,n),a.newPos+1>=l&&f+1>=c)return s(r(o,a.components,t,e,o.useLongestToken));h[n]=a}else h[n]=void 0}u++}if(a)(function e(){setTimeout(function(){if(u>d)return a();f()||e()},0)})();else while(u<=d){var m=f();if(m)return m}},pushComponent:function(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,r){var i=t.length,a=n.length,o=e.newPos,s=o-r,l=0;while(o+1<i&&s+1<a&&this.equals(t[o+1],n[s+1]))o++,s++,l++;return l&&e.components.push({count:l}),e.newPos=o,s},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}}},14960:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.diffChars=o,t.characterDiff=void 0;var r=i(n(22458));function i(e){return e&&e.__esModule?e:{default:e}}var a=new r["default"];function o(e,t,n){return a.diff(e,t,n)}t.characterDiff=a},91224:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.diffCss=o,t.cssDiff=void 0;var r=i(n(22458));function i(e){return e&&e.__esModule?e:{default:e}}var a=new r["default"];function o(e,t,n){return a.diff(e,t,n)}t.cssDiff=a,a.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)}},69593:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.diffJson=c,t.canonicalize=u,t.jsonDiff=void 0;var r=a(n(22458)),i=n(91617);function a(e){return e&&e.__esModule?e:{default:e}}function o(e){return o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}var s=Object.prototype.toString,l=new r["default"];function c(e,t,n){return l.diff(e,t,n)}function u(e,t,n,r,i){var a,l;for(t=t||[],n=n||[],r&&(e=r(i,e)),a=0;a<t.length;a+=1)if(t[a]===e)return n[a];if("[object Array]"===s.call(e)){for(t.push(e),l=new Array(e.length),n.push(l),a=0;a<e.length;a+=1)l[a]=u(e[a],t,n,r,i);return t.pop(),n.pop(),l}if(e&&e.toJSON&&(e=e.toJSON()),"object"===o(e)&&null!==e){t.push(e),l={},n.push(l);var c,d=[];for(c in e)e.hasOwnProperty(c)&&d.push(c);for(d.sort(),a=0;a<d.length;a+=1)c=d[a],l[c]=u(e[c],t,n,r,c);t.pop(),n.pop()}else l=e;return l}t.jsonDiff=l,l.useLongestToken=!0,l.tokenize=i.lineDiff.tokenize,l.castInput=function(e){var t=this.options,n=t.undefinedReplacement,r=t.stringifyReplacer,i=void 0===r?function(e,t){return"undefined"===typeof t?n:t}:r;return"string"===typeof e?e:JSON.stringify(u(e,null,null,i),i," ")},l.equals=function(e,t){return r["default"].prototype.equals.call(l,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))}},91617:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.diffLines=s,t.diffTrimmedLines=l,t.lineDiff=void 0;var r=a(n(22458)),i=n(85928);function a(e){return e&&e.__esModule?e:{default:e}}var o=new r["default"];function s(e,t,n){return o.diff(e,t,n)}function l(e,t,n){var r=(0,i.generateOptions)(n,{ignoreWhitespace:!0});return o.diff(e,t,r)}t.lineDiff=o,o.tokenize=function(e){var t=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(var r=0;r<n.length;r++){var i=n[r];r%2&&!this.options.newlineIsToken?t[t.length-1]+=i:(this.options.ignoreWhitespace&&(i=i.trim()),t.push(i))}return t}},82402:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.diffSentences=o,t.sentenceDiff=void 0;var r=i(n(22458));function i(e){return e&&e.__esModule?e:{default:e}}var a=new r["default"];function o(e,t,n){return a.diff(e,t,n)}t.sentenceDiff=a,a.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)}},59843:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.diffWords=c,t.diffWordsWithSpace=u,t.wordDiff=void 0;var r=a(n(22458)),i=n(85928);function a(e){return e&&e.__esModule?e:{default:e}}var o=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,s=/\S/,l=new r["default"];function c(e,t,n){return n=(0,i.generateOptions)(n,{ignoreWhitespace:!0}),l.diff(e,t,n)}function u(e,t,n){return l.diff(e,t,n)}t.wordDiff=l,l.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!s.test(e)&&!s.test(t)},l.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),n=0;n<t.length-1;n++)!t[n+1]&&t[n+2]&&o.test(t[n])&&o.test(t[n+2])&&(t[n]+=t[n+2],t.splice(n+1,2),n--);return t}},48063:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Diff",{enumerable:!0,get:function(){return r["default"]}}),Object.defineProperty(t,"diffChars",{enumerable:!0,get:function(){return i.diffChars}}),Object.defineProperty(t,"diffWords",{enumerable:!0,get:function(){return a.diffWords}}),Object.defineProperty(t,"diffWordsWithSpace",{enumerable:!0,get:function(){return a.diffWordsWithSpace}}),Object.defineProperty(t,"diffLines",{enumerable:!0,get:function(){return o.diffLines}}),Object.defineProperty(t,"diffTrimmedLines",{enumerable:!0,get:function(){return o.diffTrimmedLines}}),Object.defineProperty(t,"diffSentences",{enumerable:!0,get:function(){return s.diffSentences}}),Object.defineProperty(t,"diffCss",{enumerable:!0,get:function(){return l.diffCss}}),Object.defineProperty(t,"diffJson",{enumerable:!0,get:function(){return c.diffJson}}),Object.defineProperty(t,"canonicalize",{enumerable:!0,get:function(){return c.canonicalize}}),Object.defineProperty(t,"diffArrays",{enumerable:!0,get:function(){return u.diffArrays}}),Object.defineProperty(t,"applyPatch",{enumerable:!0,get:function(){return d.applyPatch}}),Object.defineProperty(t,"applyPatches",{enumerable:!0,get:function(){return d.applyPatches}}),Object.defineProperty(t,"parsePatch",{enumerable:!0,get:function(){return h.parsePatch}}),Object.defineProperty(t,"merge",{enumerable:!0,get:function(){return p.merge}}),Object.defineProperty(t,"structuredPatch",{enumerable:!0,get:function(){return f.structuredPatch}}),Object.defineProperty(t,"createTwoFilesPatch",{enumerable:!0,get:function(){return f.createTwoFilesPatch}}),Object.defineProperty(t,"createPatch",{enumerable:!0,get:function(){return f.createPatch}}),Object.defineProperty(t,"convertChangesToDMP",{enumerable:!0,get:function(){return m.convertChangesToDMP}}),Object.defineProperty(t,"convertChangesToXML",{enumerable:!0,get:function(){return g.convertChangesToXML}});var r=v(n(22458)),i=n(14960),a=n(59843),o=n(91617),s=n(82402),l=n(91224),c=n(69593),u=n(49906),d=n(55474),h=n(7709),p=n(26694),f=n(37668),m=n(26990),g=n(69438);function v(e){return e&&e.__esModule?e:{default:e}}},55474:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.applyPatch=o,t.applyPatches=s;var r=n(7709),i=a(n(55772));function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"===typeof t&&(t=(0,r.parsePatch)(t)),Array.isArray(t)){if(t.length>1)throw new Error("applyPatch only works with a single input.");t=t[0]}var a,o,s=e.split(/\r\n|[\n\v\f\r\x85]/),l=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],c=t.hunks,u=n.compareLine||function(e,t,n,r){return t===r},d=0,h=n.fuzzFactor||0,p=0,f=0;function m(e,t){for(var n=0;n<e.lines.length;n++){var r=e.lines[n],i=r.length>0?r[0]:" ",a=r.length>0?r.substr(1):r;if(" "===i||"-"===i){if(!u(t+1,s[t],i,a)&&(d++,d>h))return!1;t++}}return!0}for(var g=0;g<c.length;g++){for(var v=c[g],b=s.length-v.oldLines,y=0,_=f+v.oldStart-1,w=(0,i["default"])(_,p,b);void 0!==y;y=w())if(m(v,_+y)){v.offset=f+=y;break}if(void 0===y)return!1;p=v.offset+v.oldStart+v.oldLines}for(var E=0,S=0;S<c.length;S++){var k=c[S],x=k.oldStart+k.offset+E-1;E+=k.newLines-k.oldLines;for(var A=0;A<k.lines.length;A++){var C=k.lines[A],T=C.length>0?C[0]:" ",N=C.length>0?C.substr(1):C,R=k.linedelimiters[A];if(" "===T)x++;else if("-"===T)s.splice(x,1),l.splice(x,1);else if("+"===T)s.splice(x,0,N),l.splice(x,0,R),x++;else if("\\"===T){var O=k.lines[A-1]?k.lines[A-1][0]:null;"+"===O?a=!0:"-"===O&&(o=!0)}}}if(a)while(!s[s.length-1])s.pop(),l.pop();else o&&(s.push(""),l.push("\n"));for(var I=0;I<s.length-1;I++)s[I]=s[I]+l[I];return s.join("")}function s(e,t){"string"===typeof e&&(e=(0,r.parsePatch)(e));var n=0;function i(){var r=e[n++];if(!r)return t.complete();t.loadFile(r,function(e,n){if(e)return t.complete(e);var a=o(n,r,t);t.patched(r,a,function(e){if(e)return t.complete(e);i()})})}i()}},37668:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.structuredPatch=u,t.formatPatch=d,t.createTwoFilesPatch=h,t.createPatch=p;var r=n(91617);function i(e){return l(e)||s(e)||o(e)||a()}function a(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e,t){if(e){if("string"===typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function s(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function l(e){if(Array.isArray(e))return c(e)}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t,n,a,o,s,l){l||(l={}),"undefined"===typeof l.context&&(l.context=4);var c=(0,r.diffLines)(n,a,l);if(c){c.push({value:"",lines:[]});for(var u=[],d=0,h=0,p=[],f=1,m=1,g=function(e){var t=c[e],r=t.lines||t.value.replace(/\n$/,"").split("\n");if(t.lines=r,t.added||t.removed){var o;if(!d){var s=c[e-1];d=f,h=m,s&&(p=l.context>0?b(s.lines.slice(-l.context)):[],d-=p.length,h-=p.length)}(o=p).push.apply(o,i(r.map(function(e){return(t.added?"+":"-")+e}))),t.added?m+=r.length:f+=r.length}else{if(d)if(r.length<=2*l.context&&e<c.length-2){var g;(g=p).push.apply(g,i(b(r)))}else{var v,y=Math.min(r.length,l.context);(v=p).push.apply(v,i(b(r.slice(0,y))));var _={oldStart:d,oldLines:f-d+y,newStart:h,newLines:m-h+y,lines:p};if(e>=c.length-2&&r.length<=l.context){var w=/\n$/.test(n),E=/\n$/.test(a),S=0==r.length&&p.length>_.oldLines;!w&&S&&n.length>0&&p.splice(_.oldLines,0,"\\ No newline at end of file"),(w||S)&&E||p.push("\\ No newline at end of file")}u.push(_),d=0,h=0,p=[]}f+=r.length,m+=r.length}},v=0;v<c.length;v++)g(v);return{oldFileName:e,newFileName:t,oldHeader:o,newHeader:s,hunks:u}}function b(e){return e.map(function(e){return" "+e})}}function d(e){var t=[];e.oldFileName==e.newFileName&&t.push("Index: "+e.oldFileName),t.push("==================================================================="),t.push("--- "+e.oldFileName+("undefined"===typeof e.oldHeader?"":"\t"+e.oldHeader)),t.push("+++ "+e.newFileName+("undefined"===typeof e.newHeader?"":"\t"+e.newHeader));for(var n=0;n<e.hunks.length;n++){var r=e.hunks[n];0===r.oldLines&&(r.oldStart-=1),0===r.newLines&&(r.newStart-=1),t.push("@@ -"+r.oldStart+","+r.oldLines+" +"+r.newStart+","+r.newLines+" @@"),t.push.apply(t,r.lines)}return t.join("\n")+"\n"}function h(e,t,n,r,i,a,o){return d(u(e,t,n,r,i,a,o))}function p(e,t,n,r,i,a){return h(e,e,t,n,r,i,a)}},26694:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calcLineCount=h,t.merge=p;var r=n(37668),i=n(7709),a=n(73361);function o(e){return u(e)||c(e)||l(e)||s()}function s(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(e,t){if(e){if("string"===typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}function c(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function u(e){if(Array.isArray(e))return d(e)}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function h(e){var t=N(e.lines),n=t.oldLines,r=t.newLines;void 0!==n?e.oldLines=n:delete e.oldLines,void 0!==r?e.newLines=r:delete e.newLines}function p(e,t,n){e=f(e,n),t=f(t,n);var r={};(e.index||t.index)&&(r.index=e.index||t.index),(e.newFileName||t.newFileName)&&(m(e)?m(t)?(r.oldFileName=g(r,e.oldFileName,t.oldFileName),r.newFileName=g(r,e.newFileName,t.newFileName),r.oldHeader=g(r,e.oldHeader,t.oldHeader),r.newHeader=g(r,e.newHeader,t.newHeader)):(r.oldFileName=e.oldFileName,r.newFileName=e.newFileName,r.oldHeader=e.oldHeader,r.newHeader=e.newHeader):(r.oldFileName=t.oldFileName||e.oldFileName,r.newFileName=t.newFileName||e.newFileName,r.oldHeader=t.oldHeader||e.oldHeader,r.newHeader=t.newHeader||e.newHeader)),r.hunks=[];var i=0,a=0,o=0,s=0;while(i<e.hunks.length||a<t.hunks.length){var l=e.hunks[i]||{oldStart:1/0},c=t.hunks[a]||{oldStart:1/0};if(v(l,c))r.hunks.push(b(l,o)),i++,s+=l.newLines-l.oldLines;else if(v(c,l))r.hunks.push(b(c,s)),a++,o+=c.newLines-c.oldLines;else{var u={oldStart:Math.min(l.oldStart,c.oldStart),oldLines:0,newStart:Math.min(l.newStart+o,c.oldStart+s),newLines:0,lines:[]};y(u,l.oldStart,l.lines,c.oldStart,c.lines),a++,i++,r.hunks.push(u)}}return r}function f(e,t){if("string"===typeof e){if(/^@@/m.test(e)||/^Index:/m.test(e))return(0,i.parsePatch)(e)[0];if(!t)throw new Error("Must provide a base reference or pass in a patch");return(0,r.structuredPatch)(void 0,void 0,t,e)}return e}function m(e){return e.newFileName&&e.newFileName!==e.oldFileName}function g(e,t,n){return t===n?t:(e.conflict=!0,{mine:t,theirs:n})}function v(e,t){return e.oldStart<t.oldStart&&e.oldStart+e.oldLines<t.oldStart}function b(e,t){return{oldStart:e.oldStart,oldLines:e.oldLines,newStart:e.newStart+t,newLines:e.newLines,lines:e.lines}}function y(e,t,n,r,i){var a={offset:t,lines:n,index:0},s={offset:r,lines:i,index:0};S(e,a,s),S(e,s,a);while(a.index<a.lines.length&&s.index<s.lines.length){var l=a.lines[a.index],c=s.lines[s.index];if("-"!==l[0]&&"+"!==l[0]||"-"!==c[0]&&"+"!==c[0])if("+"===l[0]&&" "===c[0]){var u;(u=e.lines).push.apply(u,o(x(a)))}else if("+"===c[0]&&" "===l[0]){var d;(d=e.lines).push.apply(d,o(x(s)))}else"-"===l[0]&&" "===c[0]?w(e,a,s):"-"===c[0]&&" "===l[0]?w(e,s,a,!0):l===c?(e.lines.push(l),a.index++,s.index++):E(e,x(a),x(s));else _(e,a,s)}k(e,a),k(e,s),h(e)}function _(e,t,n){var r=x(t),i=x(n);if(C(r)&&C(i)){var s,l;if((0,a.arrayStartsWith)(r,i)&&T(n,r,r.length-i.length))return void(s=e.lines).push.apply(s,o(r));if((0,a.arrayStartsWith)(i,r)&&T(t,i,i.length-r.length))return void(l=e.lines).push.apply(l,o(i))}else if((0,a.arrayEqual)(r,i)){var c;return void(c=e.lines).push.apply(c,o(r))}E(e,r,i)}function w(e,t,n,r){var i,a=x(t),s=A(n,a);s.merged?(i=e.lines).push.apply(i,o(s.merged)):E(e,r?s:a,r?a:s)}function E(e,t,n){e.conflict=!0,e.lines.push({conflict:!0,mine:t,theirs:n})}function S(e,t,n){while(t.offset<n.offset&&t.index<t.lines.length){var r=t.lines[t.index++];e.lines.push(r),t.offset++}}function k(e,t){while(t.index<t.lines.length){var n=t.lines[t.index++];e.lines.push(n)}}function x(e){var t=[],n=e.lines[e.index][0];while(e.index<e.lines.length){var r=e.lines[e.index];if("-"===n&&"+"===r[0]&&(n="+"),n!==r[0])break;t.push(r),e.index++}return t}function A(e,t){var n=[],r=[],i=0,a=!1,o=!1;while(i<t.length&&e.index<e.lines.length){var s=e.lines[e.index],l=t[i];if("+"===l[0])break;if(a=a||" "!==s[0],r.push(l),i++,"+"===s[0]){o=!0;while("+"===s[0])n.push(s),s=e.lines[++e.index]}l.substr(1)===s.substr(1)?(n.push(s),e.index++):o=!0}if("+"===(t[i]||"")[0]&&a&&(o=!0),o)return n;while(i<t.length)r.push(t[i++]);return{merged:r,changes:n}}function C(e){return e.reduce(function(e,t){return e&&"-"===t[0]},!0)}function T(e,t,n){for(var r=0;r<n;r++){var i=t[t.length-n+r].substr(1);if(e.lines[e.index+r]!==" "+i)return!1}return e.index+=n,!0}function N(e){var t=0,n=0;return e.forEach(function(e){if("string"!==typeof e){var r=N(e.mine),i=N(e.theirs);void 0!==t&&(r.oldLines===i.oldLines?t+=r.oldLines:t=void 0),void 0!==n&&(r.newLines===i.newLines?n+=r.newLines:n=void 0)}else void 0===n||"+"!==e[0]&&" "!==e[0]||n++,void 0===t||"-"!==e[0]&&" "!==e[0]||t++}),{oldLines:t,newLines:n}}},7709:function(e,t){"use strict";function n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.split(/\r\n|[\n\v\f\r\x85]/),r=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],i=[],a=0;function o(){var e={};i.push(e);while(a<n.length){var r=n[a];if(/^(\-\-\-|\+\+\+|@@)\s/.test(r))break;var o=/^(?:Index:|diff(?: -r \w+)+)\s+(.+?)\s*$/.exec(r);o&&(e.index=o[1]),a++}s(e),s(e),e.hunks=[];while(a<n.length){var c=n[a];if(/^(Index:|diff|\-\-\-|\+\+\+)\s/.test(c))break;if(/^@@/.test(c))e.hunks.push(l());else{if(c&&t.strict)throw new Error("Unknown line "+(a+1)+" "+JSON.stringify(c));a++}}}function s(e){var t=/^(---|\+\+\+)\s+(.*)$/.exec(n[a]);if(t){var r="---"===t[1]?"old":"new",i=t[2].split("\t",2),o=i[0].replace(/\\\\/g,"\\");/^".*"$/.test(o)&&(o=o.substr(1,o.length-2)),e[r+"FileName"]=o,e[r+"Header"]=(i[1]||"").trim(),a++}}function l(){var e=a,i=n[a++],o=i.split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),s={oldStart:+o[1],oldLines:"undefined"===typeof o[2]?1:+o[2],newStart:+o[3],newLines:"undefined"===typeof o[4]?1:+o[4],lines:[],linedelimiters:[]};0===s.oldLines&&(s.oldStart+=1),0===s.newLines&&(s.newStart+=1);for(var l=0,c=0;a<n.length;a++){if(0===n[a].indexOf("--- ")&&a+2<n.length&&0===n[a+1].indexOf("+++ ")&&0===n[a+2].indexOf("@@"))break;var u=0==n[a].length&&a!=n.length-1?" ":n[a][0];if("+"!==u&&"-"!==u&&" "!==u&&"\\"!==u)break;s.lines.push(n[a]),s.linedelimiters.push(r[a]||"\n"),"+"===u?l++:"-"===u?c++:" "===u&&(l++,c++)}if(l||1!==s.newLines||(s.newLines=0),c||1!==s.oldLines||(s.oldLines=0),t.strict){if(l!==s.newLines)throw new Error("Added line count did not match for hunk at line "+(e+1));if(c!==s.oldLines)throw new Error("Removed line count did not match for hunk at line "+(e+1))}return s}while(a<n.length)o();return i}Object.defineProperty(t,"__esModule",{value:!0}),t.parsePatch=n},73361:function(e,t){"use strict";function n(e,t){return e.length===t.length&&r(e,t)}function r(e,t){if(t.length>e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}Object.defineProperty(t,"__esModule",{value:!0}),t.arrayEqual=n,t.arrayStartsWith=r},55772:function(e,t){"use strict";function n(e,t,n){var r=!0,i=!1,a=!1,o=1;return function s(){if(r&&!a){if(i?o++:r=!1,e+o<=n)return o;a=!0}if(!i)return a||(r=!0),t<=e-o?-o++:(i=!0,s())}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=n},85928:function(e,t){"use strict";function n(e,t){if("function"===typeof e)t.callback=e;else if(e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}Object.defineProperty(t,"__esModule",{value:!0}),t.generateOptions=n},46423:function(e,t,n){"use strict";var r,i=n(79903),a=n(69336);try{r=[].__proto__===Array.prototype}catch(c){if(!c||"object"!==typeof c||!("code"in c)||"ERR_PROTO_ACCESS"!==c.code)throw c}var o=!!r&&a&&a(Object.prototype,"__proto__"),s=Object,l=s.getPrototypeOf;e.exports=o&&"function"===typeof o.get?i([o.get]):"function"===typeof l&&function(e){return l(null==e?e:s(e))}},64940:function(e){"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(n){t=!1}e.exports=t},29110:function(e){"use strict";e.exports=EvalError},29838:function(e){"use strict";e.exports=Error},61155:function(e){"use strict";e.exports=RangeError},94943:function(e){"use strict";e.exports=ReferenceError},5731:function(e){"use strict";e.exports=SyntaxError},3468:function(e){"use strict";e.exports=TypeError},32140:function(e){"use strict";e.exports=URIError},9629:function(e){"use strict";e.exports=Object},50046:function(e,t,n){"use strict";var r,i=n(4364),a="object"===typeof Reflect?Reflect:null,o=a&&"function"===typeof a.apply?a.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};function s(e){i&&i.warn&&i.warn(e)}r=a&&"function"===typeof a.ownKeys?a.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var l=Number.isNaN||function(e){return e!==e};function c(){c.init.call(this)}e.exports=c,e.exports.once=w,c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var u=10;function d(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function h(e){return void 0===e._maxListeners?c.defaultMaxListeners:e._maxListeners}function p(e,t,n,r){var i,a,o;if(d(n),a=e._events,void 0===a?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),a=e._events),o=a[t]),void 0===o)o=a[t]=n,++e._eventsCount;else if("function"===typeof o?o=a[t]=r?[n,o]:[o,n]:r?o.unshift(n):o.push(n),i=h(e),i>0&&o.length>i&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=o.length,s(l)}return e}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function m(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=f.bind(r);return i.listener=n,r.wrapFn=i,i}function g(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"===typeof i?n?[i.listener||i]:[i]:n?_(i):b(i,i.length)}function v(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"===typeof n)return 1;if(void 0!==n)return n.length}return 0}function b(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function y(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function _(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}function w(e,t){return new Promise(function(n,r){function i(n){e.removeListener(t,a),r(n)}function a(){"function"===typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}S(e,t,a,{once:!0}),"error"!==t&&E(e,i,{once:!0})})}function E(e,t,n){"function"===typeof e.on&&S(e,"error",t,n)}function S(e,t,n,r){if("function"===typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!==typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,function i(a){r.once&&e.removeEventListener(t,i),n(a)})}}Object.defineProperty(c,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(e){if("number"!==typeof e||e<0||l(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");u=e}}),c.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},c.prototype.setMaxListeners=function(e){if("number"!==typeof e||e<0||l(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},c.prototype.getMaxListeners=function(){return h(this)},c.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=i[e];if(void 0===l)return!1;if("function"===typeof l)o(l,this,t);else{var c=l.length,u=b(l,c);for(n=0;n<c;++n)o(u[n],this,t)}return!0},c.prototype.addListener=function(e,t){return p(this,e,t,!1)},c.prototype.on=c.prototype.addListener,c.prototype.prependListener=function(e,t){return p(this,e,t,!0)},c.prototype.once=function(e,t){return d(t),this.on(e,m(this,e,t)),this},c.prototype.prependOnceListener=function(e,t){return d(t),this.prependListener(e,m(this,e,t)),this},c.prototype.removeListener=function(e,t){var n,r,i,a,o;if(d(t),r=this._events,void 0===r)return this;if(n=r[e],void 0===n)return this;if(n===t||n.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!==typeof n){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;0===i?n.shift():y(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,o||t)}return this},c.prototype.off=c.prototype.removeListener,c.prototype.removeAllListeners=function(e){var t,n,r;if(n=this._events,void 0===n)return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,a=Object.keys(n);for(r=0;r<a.length;++r)i=a[r],"removeListener"!==i&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(t=n[e],"function"===typeof t)this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},c.prototype.listeners=function(e){return g(this,e,!0)},c.prototype.rawListeners=function(e){return g(this,e,!1)},c.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):v.call(e,t)},c.prototype.listenerCount=v,c.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},80705:function(e,t,n){"use strict";var r=n(89617),i=Object.prototype.toString,a=Object.prototype.hasOwnProperty,o=function(e,t,n){for(var r=0,i=e.length;r<i;r++)a.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))},s=function(e,t,n){for(var r=0,i=e.length;r<i;r++)null==n?t(e.charAt(r),r,e):t.call(n,e.charAt(r),r,e)},l=function(e,t,n){for(var r in e)a.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))};function c(e){return"[object Array]"===i.call(e)}e.exports=function(e,t,n){if(!r(t))throw new TypeError("iterator must be a function");var i;arguments.length>=3&&(i=n),c(e)?o(e,t,i):"string"===typeof e?s(e,t,i):l(e,t,i)}},28794:function(e){"use strict";var t="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,r=Math.max,i="[object Function]",a=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},o=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},s=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};e.exports=function(e){var l=this;if("function"!==typeof l||n.apply(l)!==i)throw new TypeError(t+l);for(var c,u=o(arguments,1),d=function(){if(this instanceof c){var t=l.apply(this,a(u,arguments));return Object(t)===t?t:this}return l.apply(e,a(u,arguments))},h=r(0,l.length-u.length),p=[],f=0;f<h;f++)p[f]="$"+f;if(c=Function("binder","return function ("+s(p,",")+"){ return binder.apply(this,arguments); }")(d),l.prototype){var m=function(){};m.prototype=l.prototype,c.prototype=new m,m.prototype=null}return c}},79138:function(e,t,n){"use strict";var r=n(28794);e.exports=Function.prototype.bind||r},14898:function(e){"use strict";const t=function*(){}.constructor;e.exports=()=>t},528:function(e,t,n){"use strict";var r,i=n(9629),a=n(29838),o=n(29110),s=n(61155),l=n(94943),c=n(5731),u=n(3468),d=n(32140),h=n(58479),p=n(18449),f=n(88129),m=n(22387),g=n(85865),v=n(1319),b=n(36882),y=Function,_=function(e){try{return y('"use strict"; return ('+e+").constructor;")()}catch(t){}},w=n(69336),E=n(64940),S=function(){throw new u},k=w?function(){try{return S}catch(e){try{return w(arguments,"callee").get}catch(t){return S}}}():S,x=n(53558)(),A=n(46369),C=n(17345),T=n(57859),N=n(6095),R=n(64531),O={},I="undefined"!==typeof Uint8Array&&A?A(Uint8Array):r,L={__proto__:null,"%AggregateError%":"undefined"===typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":x&&A?A([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":O,"%AsyncGenerator%":O,"%AsyncGeneratorFunction%":O,"%AsyncIteratorPrototype%":O,"%Atomics%":"undefined"===typeof Atomics?r:Atomics,"%BigInt%":"undefined"===typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":a,"%eval%":eval,"%EvalError%":o,"%Float16Array%":"undefined"===typeof Float16Array?r:Float16Array,"%Float32Array%":"undefined"===typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":y,"%GeneratorFunction%":O,"%Int8Array%":"undefined"===typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":x&&A?A(A([][Symbol.iterator]())):r,"%JSON%":"object"===typeof JSON?JSON:r,"%Map%":"undefined"===typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&x&&A?A((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":w,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?r:Promise,"%Proxy%":"undefined"===typeof Proxy?r:Proxy,"%RangeError%":s,"%ReferenceError%":l,"%Reflect%":"undefined"===typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&x&&A?A((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":x&&A?A(""[Symbol.iterator]()):r,"%Symbol%":x?Symbol:r,"%SyntaxError%":c,"%ThrowTypeError%":k,"%TypedArray%":I,"%TypeError%":u,"%Uint8Array%":"undefined"===typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?r:Uint32Array,"%URIError%":d,"%WeakMap%":"undefined"===typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?r:WeakSet,"%Function.prototype.call%":R,"%Function.prototype.apply%":N,"%Object.defineProperty%":E,"%Object.getPrototypeOf%":C,"%Math.abs%":h,"%Math.floor%":p,"%Math.max%":f,"%Math.min%":m,"%Math.pow%":g,"%Math.round%":v,"%Math.sign%":b,"%Reflect.getPrototypeOf%":T};if(A)try{null.error}catch(X){var D=A(A(X));L["%Error.prototype%"]=D}var P=function e(t){var n;if("%AsyncFunction%"===t)n=_("async function () {}");else if("%GeneratorFunction%"===t)n=_("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=_("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&A&&(n=A(i.prototype))}return L[t]=n,n},M={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},B=n(79138),F=n(78554),$=B.call(R,Array.prototype.concat),U=B.call(N,Array.prototype.splice),j=B.call(R,String.prototype.replace),V=B.call(R,String.prototype.slice),K=B.call(R,RegExp.prototype.exec),G=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,H=/\\(\\)?/g,z=function(e){var t=V(e,0,1),n=V(e,-1);if("%"===t&&"%"!==n)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return j(e,G,function(e,t,n,i){r[r.length]=n?j(i,H,"$1"):t||e}),r},q=function(e,t){var n,r=e;if(F(M,r)&&(n=M[r],r="%"+n[0]+"%"),F(L,r)){var i=L[r];if(i===O&&(i=P(r)),"undefined"===typeof i&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===K(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=z(e),r=n.length>0?n[0]:"",i=q("%"+r+"%",t),a=i.name,o=i.value,s=!1,l=i.alias;l&&(r=l[0],U(n,$([0,1],l)));for(var d=1,h=!0;d<n.length;d+=1){var p=n[d],f=V(p,0,1),m=V(p,-1);if(('"'===f||"'"===f||"`"===f||'"'===m||"'"===m||"`"===m)&&f!==m)throw new c("property names with quotes must have matching quotes");if("constructor"!==p&&h||(s=!0),r+="."+p,a="%"+r+"%",F(L,a))o=L[a];else if(null!=o){if(!(p in o)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(w&&d+1>=n.length){var g=w(o,p);h=!!g,o=h&&"get"in g&&!("originalValue"in g.get)?g.get:o[p]}else h=F(o,p),o=o[p];h&&!s&&(L[a]=o)}}return o}},17345:function(e,t,n){"use strict";var r=n(9629);e.exports=r.getPrototypeOf||null},57859:function(e){"use strict";e.exports="undefined"!==typeof Reflect&&Reflect.getPrototypeOf||null},46369:function(e,t,n){"use strict";var r=n(57859),i=n(17345),a=n(46423);e.exports=r?function(e){return r(e)}:i?function(e){if(!e||"object"!==typeof e&&"function"!==typeof e)throw new TypeError("getProto: not an object");return i(e)}:a?function(e){return a(e)}:null},61292:function(e){"use strict";e.exports=Object.getOwnPropertyDescriptor},69336:function(e,t,n){"use strict";var r=n(61292);if(r)try{r([],"length")}catch(i){r=null}e.exports=r},17239:function(e,t,n){"use strict";var r=n(64940),i=function(){return!!r};i.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},53558:function(e,t,n){"use strict";var r="undefined"!==typeof Symbol&&Symbol,i=n(62908);e.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&i())))}},62908:function(e){"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;var r=42;for(var i in e[t]=r,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var a=Object.getOwnPropertySymbols(e);if(1!==a.length||a[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||!0!==o.enumerable)return!1}return!0}},51913:function(e,t,n){"use strict";var r=n(62908);e.exports=function(){return r()&&!!Symbol.toStringTag}},78554:function(e,t,n){"use strict";var r=Function.prototype.call,i=Object.prototype.hasOwnProperty,a=n(79138);e.exports=a.call(r,i)},51815:function(e,t){(function(e){var t=/\S/,n=/\"/g,r=/\n/g,i=/\r/g,a=/\\/g,o=/\u2028/,s=/\u2029/;function l(e){"}"===e.n.substr(e.n.length-1)&&(e.n=e.n.substring(0,e.n.length-1))}function c(e){return e.trim?e.trim():e.replace(/^\s*|\s*$/g,"")}function u(e,t,n){if(t.charAt(n)!=e.charAt(0))return!1;for(var r=1,i=e.length;r<i;r++)if(t.charAt(n+r)!=e.charAt(r))return!1;return!0}e.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,_v:9,"{":10,"&":11,_t:12},e.scan=function(n,r){var i=n.length,a=0,o=1,s=2,d=a,h=null,p=null,f="",m=[],g=!1,v=0,b=0,y="{{",_="}}";function w(){f.length>0&&(m.push({tag:"_t",text:new String(f)}),f="")}function E(){for(var n=!0,r=b;r<m.length;r++)if(n=e.tags[m[r].tag]<e.tags["_v"]||"_t"==m[r].tag&&null===m[r].text.match(t),!n)return!1;return n}function S(e,t){if(w(),e&&E())for(var n,r=b;r<m.length;r++)m[r].text&&((n=m[r+1])&&">"==n.tag&&(n.indent=m[r].text.toString()),m.splice(r,1));else t||m.push({tag:"\n"});g=!1,b=m.length}function k(e,t){var n="="+_,r=e.indexOf(n,t),i=c(e.substring(e.indexOf("=",t)+1,r)).split(" ");return y=i[0],_=i[i.length-1],r+n.length-1}for(r&&(r=r.split(" "),y=r[0],_=r[1]),v=0;v<i;v++)d==a?u(y,n,v)?(--v,w(),d=o):"\n"==n.charAt(v)?S(g):f+=n.charAt(v):d==o?(v+=y.length-1,p=e.tags[n.charAt(v+1)],h=p?n.charAt(v+1):"_v","="==h?(v=k(n,v),d=a):(p&&v++,d=s),g=v):u(_,n,v)?(m.push({tag:h,n:c(f),otag:y,ctag:_,i:"/"==h?g-y.length:v+_.length}),f="",v+=_.length-1,d=a,"{"==h&&("}}"==_?v++:l(m[m.length-1]))):f+=n.charAt(v);return S(g,!0),m};var d={_t:!0,"\n":!0,$:!0,"/":!0};function h(t,n,r,i){var a=[],o=null,s=null,l=null;s=r[r.length-1];while(t.length>0){if(l=t.shift(),s&&"<"==s.tag&&!(l.tag in d))throw new Error("Illegal content in < super tag.");if(e.tags[l.tag]<=e.tags["$"]||p(l,i))r.push(l),l.nodes=h(t,l.tag,r,i);else{if("/"==l.tag){if(0===r.length)throw new Error("Closing tag without opener: /"+l.n);if(o=r.pop(),l.n!=o.n&&!f(l.n,o.n,i))throw new Error("Nesting error: "+o.n+" vs. "+l.n);return o.end=l.i,a}"\n"==l.tag&&(l.last=0==t.length||"\n"==t[0].tag)}a.push(l)}if(r.length>0)throw new Error("missing closing tag: "+r.pop().n);return a}function p(e,t){for(var n=0,r=t.length;n<r;n++)if(t[n].o==e.n)return e.tag="#",!0}function f(e,t,n){for(var r=0,i=n.length;r<i;r++)if(n[r].c==e&&n[r].o==t)return!0}function m(e){var t=[];for(var n in e)t.push('"'+b(n)+'": function(c,p,t,i) {'+e[n]+"}");return"{ "+t.join(",")+" }"}function g(e){var t=[];for(var n in e.partials)t.push('"'+b(n)+'":{name:"'+b(e.partials[n].name)+'", '+g(e.partials[n])+"}");return"partials: {"+t.join(",")+"}, subs: "+m(e.subs)}e.stringify=function(t,n,r){return"{code: function (c,p,i) { "+e.wrapMain(t.code)+" },"+g(t)+"}"};var v=0;function b(e){return e.replace(a,"\\\\").replace(n,'\\"').replace(r,"\\n").replace(i,"\\r").replace(o,"\\u2028").replace(s,"\\u2029")}function y(e){return~e.indexOf(".")?"d":"f"}function _(e,t){var n="<"+(t.prefix||""),r=n+e.n+v++;return t.partials[r]={name:e.n,partials:{}},t.code+='t.b(t.rp("'+b(r)+'",c,p,"'+(e.indent||"")+'"));',r}function w(e,t){t.code+="t.b(t.t(t."+y(e.n)+'("'+b(e.n)+'",c,p,0)));'}function E(e){return"t.b("+e+");"}e.generate=function(t,n,r){v=0;var i={code:"",subs:{},partials:{}};return e.walk(t,i),r.asString?this.stringify(i,n,r):this.makeTemplate(i,n,r)},e.wrapMain=function(e){return'var t=this;t.b(i=i||"");'+e+"return t.fl();"},e.template=e.Template,e.makeTemplate=function(e,t,n){var r=this.makePartials(e);return r.code=new Function("c","p","i",this.wrapMain(e.code)),new this.template(r,t,this,n)},e.makePartials=function(e){var t,n={subs:{},partials:e.partials,name:e.name};for(t in n.partials)n.partials[t]=this.makePartials(n.partials[t]);for(t in e.subs)n.subs[t]=new Function("c","p","t","i",e.subs[t]);return n},e.codegen={"#":function(t,n){n.code+="if(t.s(t."+y(t.n)+'("'+b(t.n)+'",c,p,1),c,p,0,'+t.i+","+t.end+',"'+t.otag+" "+t.ctag+'")){t.rs(c,p,function(c,p,t){',e.walk(t.nodes,n),n.code+="});c.pop();}"},"^":function(t,n){n.code+="if(!t.s(t."+y(t.n)+'("'+b(t.n)+'",c,p,1),c,p,1,0,0,"")){',e.walk(t.nodes,n),n.code+="};"},">":_,"<":function(t,n){var r={partials:{},code:"",subs:{},inPartial:!0};e.walk(t.nodes,r);var i=n.partials[_(t,n)];i.subs=r.subs,i.partials=r.partials},$:function(t,n){var r={subs:{},code:"",partials:n.partials,prefix:t.n};e.walk(t.nodes,r),n.subs[t.n]=r.code,n.inPartial||(n.code+='t.sub("'+b(t.n)+'",c,p,i);')},"\n":function(e,t){t.code+=E('"\\n"'+(e.last?"":" + i"))},_v:function(e,t){t.code+="t.b(t.v(t."+y(e.n)+'("'+b(e.n)+'",c,p,0)));'},_t:function(e,t){t.code+=E('"'+b(e.text)+'"')},"{":w,"&":w},e.walk=function(t,n){for(var r,i=0,a=t.length;i<a;i++)r=e.codegen[t[i].tag],r&&r(t[i],n);return n},e.parse=function(e,t,n){return n=n||{},h(e,"",[],n.sectionTags||[])},e.cache={},e.cacheKey=function(e,t){return[e,!!t.asString,!!t.disableLambda,t.delimiters,!!t.modelGet].join("||")},e.compile=function(t,n){n=n||{};var r=e.cacheKey(t,n),i=this.cache[r];if(i){var a=i.partials;for(var o in a)delete a[o].instance;return i}return i=this.generate(this.parse(this.scan(t,n.delimiters),t,n),t,n),this.cache[r]=i}})(t)},62133:function(e,t,n){var r=n(51815);r.Template=n(72252).Template,r.template=r.Template,e.exports=r},72252:function(e,t){(function(e){function t(e,t,n){var r;return t&&"object"==typeof t&&(void 0!==t[e]?r=t[e]:n&&t.get&&"function"==typeof t.get&&(r=t.get(e))),r}function n(e,t,n,r,i,a){function o(){}function s(){}var l;o.prototype=e,s.prototype=e.subs;var c=new o;for(l in c.subs=new s,c.subsText={},c.buf="",r=r||{},c.stackSubs=r,c.subsText=a,t)r[l]||(r[l]=t[l]);for(l in r)c.subs[l]=r[l];for(l in i=i||{},c.stackPartials=i,n)i[l]||(i[l]=n[l]);for(l in i)c.partials[l]=i[l];return c}e.Template=function(e,t,n,r){e=e||{},this.r=e.code||this.r,this.c=n,this.options=r||{},this.text=t||"",this.partials=e.partials||{},this.subs=e.subs||{},this.buf=""},e.Template.prototype={r:function(e,t,n){return""},v:u,t:c,render:function(e,t,n){return this.ri([e],t||{},n)},ri:function(e,t,n){return this.r(e,t,n)},ep:function(e,t){var r=this.partials[e],i=t[r.name];if(r.instance&&r.base==i)return r.instance;if("string"==typeof i){if(!this.c)throw new Error("No compiler available.");i=this.c.compile(i,this.options)}if(!i)return null;if(this.partials[e].base=i,r.subs){for(key in t.stackText||(t.stackText={}),r.subs)t.stackText[key]||(t.stackText[key]=void 0!==this.activeSub&&t.stackText[this.activeSub]?t.stackText[this.activeSub]:this.text);i=n(i,r.subs,r.partials,this.stackSubs,this.stackPartials,t.stackText)}return this.partials[e].instance=i,i},rp:function(e,t,n,r){var i=this.ep(e,n);return i?i.ri(t,n,r):""},rs:function(e,t,n){var r=e[e.length-1];if(d(r))for(var i=0;i<r.length;i++)e.push(r[i]),n(e,t,this),e.pop();else n(e,t,this)},s:function(e,t,n,r,i,a,o){var s;return(!d(e)||0!==e.length)&&("function"==typeof e&&(e=this.ms(e,t,n,r,i,a,o)),s=!!e,!r&&s&&t&&t.push("object"==typeof e?e:t[t.length-1]),s)},d:function(e,n,r,i){var a,o=e.split("."),s=this.f(o[0],n,r,i),l=this.options.modelGet,c=null;if("."===e&&d(n[n.length-2]))s=n[n.length-1];else for(var u=1;u<o.length;u++)a=t(o[u],s,l),void 0!==a?(c=s,s=a):s="";return!(i&&!s)&&(i||"function"!=typeof s||(n.push(c),s=this.mv(s,n,r),n.pop()),s)},f:function(e,n,r,i){for(var a=!1,o=null,s=!1,l=this.options.modelGet,c=n.length-1;c>=0;c--)if(o=n[c],a=t(e,o,l),void 0!==a){s=!0;break}return s?(i||"function"!=typeof a||(a=this.mv(a,n,r)),a):!i&&""},ls:function(e,t,n,r,i){var a=this.options.delimiters;return this.options.delimiters=i,this.b(this.ct(c(e.call(t,r)),t,n)),this.options.delimiters=a,!1},ct:function(e,t,n){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(e,this.options).render(t,n)},b:function(e){this.buf+=e},fl:function(){var e=this.buf;return this.buf="",e},ms:function(e,t,n,r,i,a,o){var s,l=t[t.length-1],c=e.call(l);return"function"==typeof c?!!r||(s=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(c,l,n,s.substring(i,a),o)):c},mv:function(e,t,n){var r=t[t.length-1],i=e.call(r);return"function"==typeof i?this.ct(c(i.call(r)),r,n):i},sub:function(e,t,n,r){var i=this.subs[e];i&&(this.activeSub=e,i(t,n,this,r),this.activeSub=!1)}};var r=/&/g,i=/</g,a=/>/g,o=/\'/g,s=/\"/g,l=/[&<>\"\']/;function c(e){return String(null===e||void 0===e?"":e)}function u(e){return e=c(e),l.test(e)?e.replace(r,"&").replace(i,"<").replace(a,">").replace(o,"'").replace(s,"""):e}var d=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}})(t)},27500:function(e,t,n){var r=n(4865),i=n(75442),a=e.exports;for(var o in r)r.hasOwnProperty(o)&&(a[o]=r[o]);function s(e){if("string"===typeof e&&(e=i.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw new Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}a.request=function(e,t){return e=s(e),r.request.call(this,e,t)},a.get=function(e,t){return e=s(e),r.get.call(this,e,t)}},36313:function(e,t,n){var r=n(33486)["hp"];(function(){var t;t="undefined"!==typeof e.exports?n(86530):window.PNGlib;var i=function(e,t){if("string"!==typeof e||e.length<15)throw"A hash of at least 15 characters is required.";this.defaults={background:[240,240,240,255],margin:.08,size:64,saturation:.7,brightness:.5,format:"png"},this.options="object"===typeof t?t:this.defaults,"number"===typeof arguments[1]&&(this.options.size=arguments[1]),arguments[2]&&(this.options.margin=arguments[2]),this.hash=e,this.background=this.options.background||this.defaults.background,this.size=this.options.size||this.defaults.size,this.format=this.options.format||this.defaults.format,this.margin=void 0!==this.options.margin?this.options.margin:this.defaults.margin;var n=parseInt(this.hash.substr(-7),16)/268435455,r=this.options.saturation||this.defaults.saturation,i=this.options.brightness||this.defaults.brightness;this.foreground=this.options.foreground||this.hsl2rgb(n,r,i)};i.prototype={background:null,foreground:null,hash:null,margin:null,size:null,format:null,image:function(){return this.isSvg()?new a(this.size,this.foreground,this.background):new t(this.size,this.size,256)},render:function(){var e,t,n=this.image(),r=this.size,i=Math.floor(r*this.margin),a=Math.floor((r-2*i)/5),o=Math.floor((r-5*a)/2),s=n.color.apply(n,this.background),l=n.color.apply(n,this.foreground);for(e=0;e<15;e++)t=parseInt(this.hash.charAt(e),16)%2?s:l,e<5?this.rectangle(2*a+o,e*a+o,a,a,t,n):e<10?(this.rectangle(1*a+o,(e-5)*a+o,a,a,t,n),this.rectangle(3*a+o,(e-5)*a+o,a,a,t,n)):e<15&&(this.rectangle(0*a+o,(e-10)*a+o,a,a,t,n),this.rectangle(4*a+o,(e-10)*a+o,a,a,t,n));return n},rectangle:function(e,t,n,r,i,a){var o,s;if(this.isSvg())a.rectangles.push({x:e,y:t,w:n,h:r,color:i});else for(o=e;o<e+n;o++)for(s=t;s<t+r;s++)a.buffer[a.index(o,s)]=i},hsl2rgb:function(e,t,n){return e*=6,t=[n+=t*=n<.5?n:1-n,n-e%1*t*2,n-=t*=2,n,n+e%1*t,n+t],[255*t[~~e%6],255*t[(16|e)%6],255*t[(8|e)%6]]},toString:function(e){return e?this.render().getDump():this.render().getBase64()},isSvg:function(){return this.format.match(/svg/i)}};var a=function(e,t,n){this.size=e,this.foreground=this.color.apply(this,t),this.background=this.color.apply(this,n),this.rectangles=[]};a.prototype={size:null,foreground:null,background:null,rectangles:null,color:function(e,t,n,r){var i=[e,t,n].map(Math.round);return i.push(r>=0&&r<=255?r/255:1),"rgba("+i.join(",")+")"},getDump:function(){var e,t,n,r=this.foreground,i=this.background,a=.005*this.size;for(t="<svg xmlns='http://www.w3.org/2000/svg' width='"+this.size+"' height='"+this.size+"' style='background-color:"+i+";'><g style='fill:"+r+"; stroke:"+r+"; stroke-width:"+a+";'>",e=0;e<this.rectangles.length;e++)n=this.rectangles[e],n.color!=i&&(t+="<rect x='"+n.x+"' y='"+n.y+"' width='"+n.w+"' height='"+n.h+"'/>");return t+="</g></svg>",t},getBase64:function(){if("function"===typeof btoa)return btoa(this.getDump());if(r)return new r(this.getDump(),"binary").toString("base64");throw"Cannot generate base64 output"}},"undefined"!==typeof e.exports?e.exports=i:window.Identicon=i})()},86530:function(e){
|
||
/**
|
||
* A handy class to calculate color values.
|
||
*
|
||
* @version 1.0
|
||
* @author Robert Eisele <robert@xarg.org>
|
||
* @copyright Copyright (c) 2010, Robert Eisele
|
||
* @link http://www.xarg.org/2010/03/generate-client-side-png-files-using-javascript/
|
||
* @license http://www.opensource.org/licenses/bsd-license.php BSD License
|
||
*
|
||
*/
|
||
(function(){function t(e,t){for(var n=2;n<arguments.length;n++)for(var r=0;r<arguments[n].length;r++)e[t++]=arguments[n].charAt(r)}function n(e){return String.fromCharCode(e>>8&255,255&e)}function r(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)}function i(e){return String.fromCharCode(255&e,e>>8&255)}var a=function(e,a,o){this.width=e,this.height=a,this.depth=o,this.pix_size=a*(e+1),this.data_size=2+this.pix_size+5*Math.floor((65534+this.pix_size)/65535)+4,this.ihdr_offs=0,this.ihdr_size=25,this.plte_offs=this.ihdr_offs+this.ihdr_size,this.plte_size=8+3*o+4,this.trns_offs=this.plte_offs+this.plte_size,this.trns_size=8+o+4,this.idat_offs=this.trns_offs+this.trns_size,this.idat_size=8+this.data_size+4,this.iend_offs=this.idat_offs+this.idat_size,this.iend_size=12,this.buffer_size=this.iend_offs+this.iend_size,this.buffer=new Array,this.palette=new Object,this.pindex=0;for(var s=new Array,l=0;l<this.buffer_size;l++)this.buffer[l]="\0";t(this.buffer,this.ihdr_offs,r(this.ihdr_size-12),"IHDR",r(e),r(a),"\b"),t(this.buffer,this.plte_offs,r(this.plte_size-12),"PLTE"),t(this.buffer,this.trns_offs,r(this.trns_size-12),"tRNS"),t(this.buffer,this.idat_offs,r(this.idat_size-12),"IDAT"),t(this.buffer,this.iend_offs,r(this.iend_size-12),"IEND");var c=30912;c+=31-c%31,t(this.buffer,this.idat_offs+8,n(c));for(l=0;(l<<16)-1<this.pix_size;l++){var u,d;l+65535<this.pix_size?(u=65535,d="\0"):(u=this.pix_size-(l<<16)-l,d=""),t(this.buffer,this.idat_offs+8+2+(l<<16)+(l<<2),d,i(u),i(~u))}for(l=0;l<256;l++){for(var h=l,p=0;p<8;p++)h=1&h?-306674912^h>>1&2147483647:h>>1&2147483647;s[l]=h}this.index=function(e,t){var n=t*(this.width+1)+e+1,r=this.idat_offs+8+2+5*Math.floor(n/65535+1)+n;return r},this.color=function(e,t,n,r){r=r>=0?r:255;var i=((r<<8|e)<<8|t)<<8|n;if("undefined"==typeof this.palette[i]){if(this.pindex==this.depth)return"\0";var a=this.plte_offs+8+3*this.pindex;this.buffer[a+0]=String.fromCharCode(e),this.buffer[a+1]=String.fromCharCode(t),this.buffer[a+2]=String.fromCharCode(n),this.buffer[this.trns_offs+8+this.pindex]=String.fromCharCode(r),this.palette[i]=String.fromCharCode(this.pindex++)}return this.palette[i]},this.getBase64=function(){var e,t,n,r,i,a,o,s=this.getDump(),l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c=s.length,u=0,d="";do{e=s.charCodeAt(u),r=e>>2,t=s.charCodeAt(u+1),i=(3&e)<<4|t>>4,n=s.charCodeAt(u+2),a=c<u+2?64:(15&t)<<2|n>>6,o=c<u+3?64:63&n,d+=l.charAt(r)+l.charAt(i)+l.charAt(a)+l.charAt(o)}while((u+=3)<c);return d},this.getDump=function(){for(var e=65521,n=5552,i=1,a=0,o=n,l=0;l<this.height;l++)for(var c=-1;c<this.width;c++)i+=this.buffer[this.index(c,l)].charCodeAt(0),a+=i,0==(o-=1)&&(i%=e,a%=e,o=n);function u(e,n,i){for(var a=-1,o=4;o<i-4;o+=1)a=s[255&(a^e[n+o].charCodeAt(0))]^a>>8&16777215;t(e,n+i-4,r(-1^a))}return i%=e,a%=e,t(this.buffer,this.idat_offs+this.idat_size-8,r(a<<16|i)),u(this.buffer,this.ihdr_offs,this.ihdr_size),u(this.buffer,this.plte_offs,this.plte_size),u(this.buffer,this.trns_offs,this.trns_size),u(this.buffer,this.idat_offs,this.idat_size),u(this.buffer,this.iend_offs,this.iend_size),"PNG\r\n\n"+this.buffer.join("")}};"undefined"!==typeof e.exports?e.exports=a:window.PNGlib=a})()},39318:function(e,t){
|
||
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
||
t.read=function(e,t,n,r,i){var a,o,s=8*i-r-1,l=(1<<s)-1,c=l>>1,u=-7,d=n?i-1:0,h=n?-1:1,p=e[t+d];for(d+=h,a=p&(1<<-u)-1,p>>=-u,u+=s;u>0;a=256*a+e[t+d],d+=h,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=256*o+e[t+d],d+=h,u-=8);if(0===a)a=1-c;else{if(a===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,r),a-=c}return(p?-1:1)*o*Math.pow(2,a-r)},t.write=function(e,t,n,r,i,a){var o,s,l,c=8*a-i-1,u=(1<<c)-1,d=u>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:a-1,f=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),t+=o+d>=1?h/l:h*Math.pow(2,1-d),t*l>=2&&(o++,l/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*l-1)*Math.pow(2,i),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),o=0));i>=8;e[n+p]=255&s,p+=f,s/=256,i-=8);for(o=o<<i|s,c+=i;c>0;e[n+p]=255&o,p+=f,o/=256,c-=8);e[n+p-f]|=128*m}},35615:function(e){"function"===typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},55387:function(e,t,n){"use strict";var r=n(51913)(),i=n(14607),a=i("Object.prototype.toString"),o=function(e){return!(r&&e&&"object"===typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===a(e)},s=function(e){return!!o(e)||null!==e&&"object"===typeof e&&"length"in e&&"number"===typeof e.length&&e.length>=0&&"[object Array]"!==a(e)&&"callee"in e&&"[object Function]"===a(e.callee)},l=function(){return o(arguments)}();o.isLegacyArguments=s,e.exports=l?o:s},89617:function(e){"use strict";var t,n,r=Function.prototype.toString,i="object"===typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"===typeof i&&"function"===typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},i(function(){throw 42},null,t)}catch(y){y!==n&&(i=null)}else i=null;var a=/^\s*class\b/,o=function(e){try{var t=r.call(e);return a.test(t)}catch(n){return!1}},s=function(e){try{return!o(e)&&(r.call(e),!0)}catch(t){return!1}},l=Object.prototype.toString,c="[object Object]",u="[object Function]",d="[object GeneratorFunction]",h="[object HTMLAllCollection]",p="[object HTML document.all class]",f="[object HTMLCollection]",m="function"===typeof Symbol&&!!Symbol.toStringTag,g=!(0 in[,]),v=function(){return!1};if("object"===typeof document){var b=document.all;l.call(b)===l.call(document.all)&&(v=function(e){if((g||!e)&&("undefined"===typeof e||"object"===typeof e))try{var t=l.call(e);return(t===h||t===p||t===f||t===c)&&null==e("")}catch(n){}return!1})}e.exports=i?function(e){if(v(e))return!0;if(!e)return!1;if("function"!==typeof e&&"object"!==typeof e)return!1;try{i(e,null,t)}catch(r){if(r!==n)return!1}return!o(e)&&s(e)}:function(e){if(v(e))return!0;if(!e)return!1;if("function"!==typeof e&&"object"!==typeof e)return!1;if(m)return s(e);if(o(e))return!1;var t=l.call(e);return!(t!==u&&t!==d&&!/^\[object HTML/.test(t))&&s(e)}},2625:function(e,t,n){"use strict";var r=n(14607),i=n(46132),a=i(/^\s*(?:function)?\*/),o=n(51913)(),s=n(46369),l=r("Object.prototype.toString"),c=r("Function.prototype.toString"),u=n(14898);e.exports=function(e){if("function"!==typeof e)return!1;if(a(c(e)))return!0;if(!o){var t=l(e);return"[object GeneratorFunction]"===t}if(!s)return!1;var n=u();return n&&s(e)===n.prototype}},98006:function(e){"use strict";e.exports=function(e){return e!==e}},7838:function(e,t,n){"use strict";var r=n(28498),i=n(41857),a=n(98006),o=n(41591),s=n(61641),l=r(o(),Number);i(l,{getPolyfill:o,implementation:a,shim:s}),e.exports=l},41591:function(e,t,n){"use strict";var r=n(98006);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:r}},61641:function(e,t,n){"use strict";var r=n(41857),i=n(41591);e.exports=function(){var e=i();return r(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},52672:function(e,t,n){"use strict";var r,i=n(14607),a=n(51913)(),o=n(78554),s=n(69336);if(a){var l=i("RegExp.prototype.exec"),c={},u=function(){throw c},d={toString:u,valueOf:u};"symbol"===typeof Symbol.toPrimitive&&(d[Symbol.toPrimitive]=u),r=function(e){if(!e||"object"!==typeof e)return!1;var t=s(e,"lastIndex"),n=t&&o(t,"value");if(!n)return!1;try{l(e,d)}catch(r){return r===c}}}else{var h=i("Object.prototype.toString"),p="[object RegExp]";r=function(e){return!(!e||"object"!==typeof e&&"function"!==typeof e)&&h(e)===p}}e.exports=r},95943:function(e,t,n){"use strict";var r=n(52730);e.exports=function(e){return!!r(e)}},24138:function(e){e.exports=i;var t=/^(?:\w+:)?\/\/(\S+)$/,n=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,r=/^[^\s\.]+\.\S{2,}$/;function i(e){if("string"!==typeof e)return!1;var i=e.match(t);if(!i)return!1;var a=i[1];return!!a&&!(!n.test(a)&&!r.test(a))}},39198:function(e,t,n){var r=n(33486)["hp"],i={userAgent:!1},a={},o="11.1.1",s="jsrsasign(all) 11.1.1 (2026-02-21) (c) 2010-2023 Kenji Urushima | kjur.github.io/jsrsasign/license",l=l||function(e,t){var n={},r=n.lib={},i=r.Base=function(){function e(){}return{extend:function(t){e.prototype=this;var n=new e;return t&&n.mixIn(t),n.hasOwnProperty("init")||(n.init=function(){n.$super.init.apply(this,arguments)}),n.init.prototype=n,n.$super=this,n},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),a=r.WordArray=i.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||s).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var a=0;a<i;a++){var o=n[a>>>2]>>>24-a%4*8&255;t[r+a>>>2]|=o<<24-(r+a)%4*8}else for(a=0;a<i;a+=4)t[r+a>>>2]=n[a>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=i.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n=[],r=0;r<t;r+=4)n.push(4294967296*e.random()|0);return new a.init(n,t)}}),o=n.enc={},s=o.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var a=t[i>>>2]>>>24-i%4*8&255;r.push((a>>>4).toString(16)),r.push((15&a).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new a.init(n,t/2)}},l=o.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var a=t[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(a))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new a.init(n,t)}},c=o.Utf8={stringify:function(e){try{return decodeURIComponent(escape(l.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return l.parse(unescape(encodeURIComponent(e)))}},u=r.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=c.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,i=n.sigBytes,o=this.blockSize,s=4*o,l=i/s;l=t?e.ceil(l):e.max((0|l)-this._minBufferSize,0);var c=l*o,u=e.min(4*c,i);if(c){for(var d=0;d<c;d+=o)this._doProcessBlock(r,d);var h=r.splice(0,c);n.sigBytes-=u}return new a.init(h,u)},clone:function(){var e=i.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),d=(r.Hasher=u.extend({cfg:i.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){u.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){e&&this._append(e);var t=this._doFinalize();return t},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new d.HMAC.init(e,n).finalize(t)}}}),n.algo={});return n}(Math);(function(e){var t=l,n=t.lib,r=n.Base,i=n.WordArray;t=t.x64={};t.Word=r.extend({init:function(e,t){this.high=e,this.low=t}}),t.WordArray=r.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:8*t.length},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;r<t;r++){var a=e[r];n.push(a.high),n.push(a.low)}return i.create(n,this.sigBytes)},clone:function(){for(var e=r.clone.call(this),t=e.words=this.words.slice(0),n=t.length,i=0;i<n;i++)t[i]=t[i].clone();return e}})})(),l.lib.Cipher||function(e){var t=l,n=t.lib,r=n.Base,i=n.WordArray,a=n.BufferedBlockAlgorithm,o=t.enc.Base64,s=t.algo.EvpKDF,c=n.Cipher=a.extend({cfg:r.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(e){return{encrypt:function(t,n,r){return("string"==typeof n?m:f).encrypt(e,t,n,r)},decrypt:function(t,n,r){return("string"==typeof n?m:f).decrypt(e,t,n,r)}}}});n.StreamCipher=c.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var u=t.mode={},d=function(t,n,r){var i=this._iv;i?this._iv=e:i=this._prevBlock;for(var a=0;a<r;a++)t[n+a]^=i[a]},h=(n.BlockCipherMode=r.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}})).extend();h.Encryptor=h.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize;d.call(this,e,t,r),n.encryptBlock(e,t),this._prevBlock=e.slice(t,t+r)}}),h.Decryptor=h.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,i=e.slice(t,t+r);n.decryptBlock(e,t),d.call(this,e,t,r),this._prevBlock=i}}),u=u.CBC=h,h=(t.pad={}).Pkcs7={pad:function(e,t){for(var n=4*t,r=(n=n-e.sigBytes%n,n<<24|n<<16|n<<8|n),a=[],o=0;o<n;o+=4)a.push(r);n=i.create(a,n),e.concat(n)},unpad:function(e){e.sigBytes-=255&e.words[e.sigBytes-1>>>2]}},n.BlockCipher=c.extend({cfg:c.cfg.extend({mode:u,padding:h}),reset:function(){c.reset.call(this);var e=this.cfg,t=e.iv;e=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var n=e.createEncryptor;else n=e.createDecryptor,this._minBufferSize=1;this._mode=n.call(e,this,t&&t.words)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else t=this._process(!0),e.unpad(t);return t},blockSize:4});var p=n.CipherParams=r.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),f=(u=(t.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext;return e=e.salt,(e?i.create([1398893684,1701076831]).concat(e).concat(t):t).toString(o)},parse:function(e){e=o.parse(e);var t=e.words;if(1398893684==t[0]&&1701076831==t[1]){var n=i.create(t.slice(2,4));t.splice(0,4),e.sigBytes-=16}return p.create({ciphertext:e,salt:n})}},n.SerializableCipher=r.extend({cfg:r.extend({format:u}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var i=e.createEncryptor(n,r);return t=i.finalize(t),i=i.cfg,p.create({ciphertext:t,key:n,iv:i.iv,algorithm:e,mode:i.mode,padding:i.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}})),m=(t=(t.kdf={}).OpenSSL={execute:function(e,t,n,r){return r||(r=i.random(8)),e=s.create({keySize:t+n}).compute(e,r),n=i.create(e.words.slice(t),4*n),e.sigBytes=4*t,p.create({key:e,iv:n,salt:r})}},n.PasswordBasedCipher=f.extend({cfg:f.cfg.extend({kdf:t}),encrypt:function(e,t,n,r){return r=this.cfg.extend(r),n=r.kdf.execute(n,e.keySize,e.ivSize),r.iv=n.iv,e=f.encrypt.call(this,e,t,n.key,r),e.mixIn(n),e},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),n=r.kdf.execute(n,e.keySize,e.ivSize,t.salt),r.iv=n.iv,f.decrypt.call(this,e,t,n.key,r)}}))}(),function(){for(var e=l,t=e.lib.BlockCipher,n=e.algo,r=[],i=[],a=[],o=[],s=[],c=[],u=[],d=[],h=[],p=[],f=[],m=0;256>m;m++)f[m]=128>m?m<<1:m<<1^283;var g=0,v=0;for(m=0;256>m;m++){var b=v^v<<1^v<<2^v<<3^v<<4;b=b>>>8^255&b^99;r[g]=b,i[b]=g;var y=f[g],_=f[y],w=f[_],E=257*f[b]^16843008*b;a[g]=E<<24|E>>>8,o[g]=E<<16|E>>>16,s[g]=E<<8|E>>>24,c[g]=E,E=16843009*w^65537*_^257*y^16843008*g,u[b]=E<<24|E>>>8,d[b]=E<<16|E>>>16,h[b]=E<<8|E>>>24,p[b]=E,g?(g=y^f[f[f[w^y]]],v^=f[f[v]]):g=v=1}var S=[0,1,2,4,8,16,32,64,128,27,54];n=n.AES=t.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes/4,i=(e=4*((this._nRounds=n+6)+1),this._keySchedule=[]),a=0;a<e;a++)if(a<n)i[a]=t[a];else{var o=i[a-1];a%n?6<n&&4==a%n&&(o=r[o>>>24]<<24|r[o>>>16&255]<<16|r[o>>>8&255]<<8|r[255&o]):(o=o<<8|o>>>24,o=r[o>>>24]<<24|r[o>>>16&255]<<16|r[o>>>8&255]<<8|r[255&o],o^=S[a/n|0]<<24),i[a]=i[a-n]^o}for(t=this._invKeySchedule=[],n=0;n<e;n++)a=e-n,o=n%4?i[a]:i[a-4],t[n]=4>n||4>=a?o:u[r[o>>>24]]^d[r[o>>>16&255]]^h[r[o>>>8&255]]^p[r[255&o]]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,o,s,c,r)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,u,d,h,p,i),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,i,a,o,s){for(var l=this._nRounds,c=e[t]^n[0],u=e[t+1]^n[1],d=e[t+2]^n[2],h=e[t+3]^n[3],p=4,f=1;f<l;f++){var m=r[c>>>24]^i[u>>>16&255]^a[d>>>8&255]^o[255&h]^n[p++],g=r[u>>>24]^i[d>>>16&255]^a[h>>>8&255]^o[255&c]^n[p++],v=r[d>>>24]^i[h>>>16&255]^a[c>>>8&255]^o[255&u]^n[p++];h=r[h>>>24]^i[c>>>16&255]^a[u>>>8&255]^o[255&d]^n[p++],c=m,u=g,d=v}m=(s[c>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&h])^n[p++],g=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[h>>>8&255]<<8|s[255&c])^n[p++],v=(s[d>>>24]<<24|s[h>>>16&255]<<16|s[c>>>8&255]<<8|s[255&u])^n[p++],h=(s[h>>>24]<<24|s[c>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^n[p++],e[t]=m,e[t+1]=g,e[t+2]=v,e[t+3]=h},keySize:8});e.AES=t._createHelper(n)}(),function(){function e(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<<e}function t(e,t){var n=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<<e}var n=l,r=n.lib,i=r.WordArray,a=(r=r.BlockCipher,n.algo),o=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],d=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=a.DES=r.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;56>n;n++){var r=o[n]-1;t[n]=e[r>>>5]>>>31-r%32&1}for(e=this._subKeys=[],r=0;16>r;r++){var i=e[r]=[],a=c[r];for(n=0;24>n;n++)i[n/6|0]|=t[(s[n]-1+a)%28]<<31-n%6,i[4+(n/6|0)]|=t[28+(s[n+24]-1+a)%28]<<31-n%6;for(i[0]=i[0]<<1|i[0]>>>31,n=1;7>n;n++)i[n]>>>=4*(n-1)+3;i[7]=i[7]<<5|i[7]>>>27}for(t=this._invSubKeys=[],n=0;16>n;n++)t[n]=e[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(n,r,i){this._lBlock=n[r],this._rBlock=n[r+1],e.call(this,4,252645135),e.call(this,16,65535),t.call(this,2,858993459),t.call(this,8,16711935),e.call(this,1,1431655765);for(var a=0;16>a;a++){for(var o=i[a],s=this._lBlock,l=this._rBlock,c=0,h=0;8>h;h++)c|=u[h][((l^o[h])&d[h])>>>0];this._lBlock=l,this._rBlock=s^c}i=this._lBlock,this._lBlock=this._rBlock,this._rBlock=i,e.call(this,1,1431655765),t.call(this,8,16711935),t.call(this,2,858993459),e.call(this,16,65535),e.call(this,4,252645135),n[r]=this._lBlock,n[r+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});n.DES=r._createHelper(h),a=a.TripleDES=r.extend({_doReset:function(){var e=this._key.words;this._des1=h.createEncryptor(i.create(e.slice(0,2))),this._des2=h.createEncryptor(i.create(e.slice(2,4))),this._des3=h.createEncryptor(i.create(e.slice(4,6)))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2}),n.TripleDES=r._createHelper(a)}(),function(){var e=l,t=e.lib.WordArray;e.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp(),e=[];for(var i=0;i<n;i+=3)for(var a=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,o=0;4>o&&i+.75*o<n;o++)e.push(r.charAt(a>>>6*(3-o)&63));if(t=r.charAt(64))for(;e.length%4;)e.push(t);return e.join("")},parse:function(e){var n=e.length,r=this._map,i=r.charAt(64);i&&(i=e.indexOf(i),-1!=i&&(n=i));i=[];for(var a=0,o=0;o<n;o++)if(o%4){var s=r.indexOf(e.charAt(o-1))<<o%4*2,l=r.indexOf(e.charAt(o))>>>6-o%4*2;i[a>>>2]|=(s|l)<<24-a%4*8,a++}return t.create(i,a)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),function(e){function t(e,t,n,r,i,a,o){return e=e+(t&n|~t&r)+i+o,(e<<a|e>>>32-a)+t}function n(e,t,n,r,i,a,o){return e=e+(t&r|n&~r)+i+o,(e<<a|e>>>32-a)+t}function r(e,t,n,r,i,a,o){return e=e+(t^n^r)+i+o,(e<<a|e>>>32-a)+t}function i(e,t,n,r,i,a,o){return e=e+(n^(t|~r))+i+o,(e<<a|e>>>32-a)+t}for(var a=l,o=a.lib,s=o.WordArray,c=o.Hasher,u=(o=a.algo,[]),d=0;64>d;d++)u[d]=4294967296*e.abs(e.sin(d+1))|0;o=o.MD5=c.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,a){for(var o=0;16>o;o++){var s=a+o,l=e[s];e[s]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}o=this._hash.words,s=e[a+0],l=e[a+1];var c=e[a+2],d=e[a+3],h=e[a+4],p=e[a+5],f=e[a+6],m=e[a+7],g=e[a+8],v=e[a+9],b=e[a+10],y=e[a+11],_=e[a+12],w=e[a+13],E=e[a+14],S=e[a+15],k=o[0],x=o[1],A=o[2],C=o[3];k=t(k,x,A,C,s,7,u[0]),C=t(C,k,x,A,l,12,u[1]),A=t(A,C,k,x,c,17,u[2]),x=t(x,A,C,k,d,22,u[3]),k=t(k,x,A,C,h,7,u[4]),C=t(C,k,x,A,p,12,u[5]),A=t(A,C,k,x,f,17,u[6]),x=t(x,A,C,k,m,22,u[7]),k=t(k,x,A,C,g,7,u[8]),C=t(C,k,x,A,v,12,u[9]),A=t(A,C,k,x,b,17,u[10]),x=t(x,A,C,k,y,22,u[11]),k=t(k,x,A,C,_,7,u[12]),C=t(C,k,x,A,w,12,u[13]),A=t(A,C,k,x,E,17,u[14]),x=t(x,A,C,k,S,22,u[15]),k=n(k,x,A,C,l,5,u[16]),C=n(C,k,x,A,f,9,u[17]),A=n(A,C,k,x,y,14,u[18]),x=n(x,A,C,k,s,20,u[19]),k=n(k,x,A,C,p,5,u[20]),C=n(C,k,x,A,b,9,u[21]),A=n(A,C,k,x,S,14,u[22]),x=n(x,A,C,k,h,20,u[23]),k=n(k,x,A,C,v,5,u[24]),C=n(C,k,x,A,E,9,u[25]),A=n(A,C,k,x,d,14,u[26]),x=n(x,A,C,k,g,20,u[27]),k=n(k,x,A,C,w,5,u[28]),C=n(C,k,x,A,c,9,u[29]),A=n(A,C,k,x,m,14,u[30]),x=n(x,A,C,k,_,20,u[31]),k=r(k,x,A,C,p,4,u[32]),C=r(C,k,x,A,g,11,u[33]),A=r(A,C,k,x,y,16,u[34]),x=r(x,A,C,k,E,23,u[35]),k=r(k,x,A,C,l,4,u[36]),C=r(C,k,x,A,h,11,u[37]),A=r(A,C,k,x,m,16,u[38]),x=r(x,A,C,k,b,23,u[39]),k=r(k,x,A,C,w,4,u[40]),C=r(C,k,x,A,s,11,u[41]),A=r(A,C,k,x,d,16,u[42]),x=r(x,A,C,k,f,23,u[43]),k=r(k,x,A,C,v,4,u[44]),C=r(C,k,x,A,_,11,u[45]),A=r(A,C,k,x,S,16,u[46]),x=r(x,A,C,k,c,23,u[47]),k=i(k,x,A,C,s,6,u[48]),C=i(C,k,x,A,m,10,u[49]),A=i(A,C,k,x,E,15,u[50]),x=i(x,A,C,k,p,21,u[51]),k=i(k,x,A,C,_,6,u[52]),C=i(C,k,x,A,d,10,u[53]),A=i(A,C,k,x,b,15,u[54]),x=i(x,A,C,k,l,21,u[55]),k=i(k,x,A,C,g,6,u[56]),C=i(C,k,x,A,S,10,u[57]),A=i(A,C,k,x,f,15,u[58]),x=i(x,A,C,k,w,21,u[59]),k=i(k,x,A,C,h,6,u[60]),C=i(C,k,x,A,y,10,u[61]),A=i(A,C,k,x,c,15,u[62]),x=i(x,A,C,k,v,21,u[63]);o[0]=o[0]+k|0,o[1]=o[1]+x|0,o[2]=o[2]+A|0,o[3]=o[3]+C|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;n[i>>>5]|=128<<24-i%32;var a=e.floor(r/4294967296);for(n[15+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),n[14+(i+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),t.sigBytes=4*(n.length+1),this._process(),t=this._hash,n=t.words,r=0;4>r;r++)i=n[r],n[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8);return t},clone:function(){var e=c.clone.call(this);return e._hash=this._hash.clone(),e}}),a.MD5=c._createHelper(o),a.HmacMD5=c._createHmacHelper(o)}(Math),function(){var e=l,t=e.lib,n=t.WordArray,r=t.Hasher,i=[];t=e.algo.SHA1=r.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],a=n[1],o=n[2],s=n[3],l=n[4],c=0;80>c;c++){if(16>c)i[c]=0|e[t+c];else{var u=i[c-3]^i[c-8]^i[c-14]^i[c-16];i[c]=u<<1|u>>>31}u=(r<<5|r>>>27)+l+i[c],u=20>c?u+(1518500249+(a&o|~a&s)):40>c?u+(1859775393+(a^o^s)):60>c?u+((a&o|a&s|o&s)-1894007588):u+((a^o^s)-899497514),l=s,s=o,o=a<<30|a>>>2,a=r,r=u}n[0]=n[0]+r|0,n[1]=n[1]+a|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+l|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}});e.SHA1=r._createHelper(t),e.HmacSHA1=r._createHmacHelper(t)}(),function(e){for(var t=l,n=t.lib,r=n.WordArray,i=n.Hasher,a=(n=t.algo,[]),o=[],s=function(e){return 4294967296*(e-(0|e))|0},c=2,u=0;64>u;){var d;e:{d=c;for(var h=e.sqrt(d),p=2;p<=h;p++)if(!(d%p)){d=!1;break e}d=!0}d&&(8>u&&(a[u]=s(e.pow(c,.5))),o[u]=s(e.pow(c,1/3)),u++),c++}var f=[];n=n.SHA256=i.extend({_doReset:function(){this._hash=new r.init(a.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],a=n[2],s=n[3],l=n[4],c=n[5],u=n[6],d=n[7],h=0;64>h;h++){if(16>h)f[h]=0|e[t+h];else{var p=f[h-15],m=f[h-2];f[h]=((p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3)+f[h-7]+((m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10)+f[h-16]}p=d+((l<<26|l>>>6)^(l<<21|l>>>11)^(l<<7|l>>>25))+(l&c^~l&u)+o[h]+f[h],m=((r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22))+(r&i^r&a^i&a),d=u,u=c,c=l,l=s+p|0,s=a,a=i,i=r,r=p+m|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+s|0,n[4]=n[4]+l|0,n[5]=n[5]+c|0,n[6]=n[6]+u|0,n[7]=n[7]+d|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=e.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=i._createHelper(n),t.HmacSHA256=i._createHmacHelper(n)}(Math),function(){var e=l,t=e.lib.WordArray,n=e.algo,r=n.SHA256;n=n.SHA224=r.extend({_doReset:function(){this._hash=new t.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=r._doFinalize.call(this);return e.sigBytes-=4,e}});e.SHA224=r._createHelper(n),e.HmacSHA224=r._createHmacHelper(n)}(),function(){function e(){return i.create.apply(i,arguments)}for(var t=l,n=t.lib.Hasher,r=t.x64,i=r.Word,a=r.WordArray,o=(r=t.algo,[e(1116352408,3609767458),e(1899447441,602891725),e(3049323471,3964484399),e(3921009573,2173295548),e(961987163,4081628472),e(1508970993,3053834265),e(2453635748,2937671579),e(2870763221,3664609560),e(3624381080,2734883394),e(310598401,1164996542),e(607225278,1323610764),e(1426881987,3590304994),e(1925078388,4068182383),e(2162078206,991336113),e(2614888103,633803317),e(3248222580,3479774868),e(3835390401,2666613458),e(4022224774,944711139),e(264347078,2341262773),e(604807628,2007800933),e(770255983,1495990901),e(1249150122,1856431235),e(1555081692,3175218132),e(1996064986,2198950837),e(2554220882,3999719339),e(2821834349,766784016),e(2952996808,2566594879),e(3210313671,3203337956),e(3336571891,1034457026),e(3584528711,2466948901),e(113926993,3758326383),e(338241895,168717936),e(666307205,1188179964),e(773529912,1546045734),e(1294757372,1522805485),e(1396182291,2643833823),e(1695183700,2343527390),e(1986661051,1014477480),e(2177026350,1206759142),e(2456956037,344077627),e(2730485921,1290863460),e(2820302411,3158454273),e(3259730800,3505952657),e(3345764771,106217008),e(3516065817,3606008344),e(3600352804,1432725776),e(4094571909,1467031594),e(275423344,851169720),e(430227734,3100823752),e(506948616,1363258195),e(659060556,3750685593),e(883997877,3785050280),e(958139571,3318307427),e(1322822218,3812723403),e(1537002063,2003034995),e(1747873779,3602036899),e(1955562222,1575990012),e(2024104815,1125592928),e(2227730452,2716904306),e(2361852424,442776044),e(2428436474,593698344),e(2756734187,3733110249),e(3204031479,2999351573),e(3329325298,3815920427),e(3391569614,3928383900),e(3515267271,566280711),e(3940187606,3454069534),e(4118630271,4000239992),e(116418474,1914138554),e(174292421,2731055270),e(289380356,3203993006),e(460393269,320620315),e(685471733,587496836),e(852142971,1086792851),e(1017036298,365543100),e(1126000580,2618297676),e(1288033470,3409855158),e(1501505948,4234509866),e(1607167915,987167468),e(1816402316,1246189591)]),s=[],c=0;80>c;c++)s[c]=e();r=r.SHA512=n.extend({_doReset:function(){this._hash=new a.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],a=n[2],l=n[3],c=n[4],u=n[5],d=n[6],h=(n=n[7],r.high),p=r.low,f=i.high,m=i.low,g=a.high,v=a.low,b=l.high,y=l.low,_=c.high,w=c.low,E=u.high,S=u.low,k=d.high,x=d.low,A=n.high,C=n.low,T=h,N=p,R=f,O=m,I=g,L=v,D=b,P=y,M=_,B=w,F=E,$=S,U=k,j=x,V=A,K=C,G=0;80>G;G++){var H=s[G];if(16>G)var z=H.high=0|e[t+2*G],q=H.low=0|e[t+2*G+1];else{z=s[G-15],q=z.high;var X=z.low,W=(z=(q>>>1|X<<31)^(q>>>8|X<<24)^q>>>7,X=(X>>>1|q<<31)^(X>>>8|q<<24)^(X>>>7|q<<25),s[G-2]),Y=(q=W.high,W.low),Q=(W=(q>>>19|Y<<13)^(q<<3|Y>>>29)^q>>>6,Y=(Y>>>19|q<<13)^(Y<<3|q>>>29)^(Y>>>6|q<<26),q=s[G-7],q.high),J=s[G-16],Z=J.high;J=J.low,q=X+q.low,z=z+Q+(q>>>0<X>>>0?1:0),q=q+Y,z=z+W+(q>>>0<Y>>>0?1:0),q=q+J,z=z+Z+(q>>>0<J>>>0?1:0);H.high=z,H.low=q}Q=M&F^~M&U,J=B&$^~B&j,H=T&R^T&I^R&I;var ee=N&O^N&L^O&L,te=(X=(T>>>28|N<<4)^(T<<30|N>>>2)^(T<<25|N>>>7),W=(N>>>28|T<<4)^(N<<30|T>>>2)^(N<<25|T>>>7),Y=o[G],Y.high),ne=Y.low;Y=K+((B>>>14|M<<18)^(B>>>18|M<<14)^(B<<23|M>>>9)),Z=V+((M>>>14|B<<18)^(M>>>18|B<<14)^(M<<23|B>>>9))+(Y>>>0<K>>>0?1:0),Y=Y+J,Z=Z+Q+(Y>>>0<J>>>0?1:0),Y=Y+ne,Z=Z+te+(Y>>>0<ne>>>0?1:0),Y=Y+q,Z=Z+z+(Y>>>0<q>>>0?1:0),q=W+ee,H=X+H+(q>>>0<W>>>0?1:0),V=U,K=j,U=F,j=$,F=M,$=B,B=P+Y|0,M=D+Z+(B>>>0<P>>>0?1:0)|0,D=I,P=L,I=R,L=O,R=T,O=N,N=Y+q|0,T=Z+H+(N>>>0<Y>>>0?1:0)|0}p=r.low=p+N,r.high=h+T+(p>>>0<N>>>0?1:0),m=i.low=m+O,i.high=f+R+(m>>>0<O>>>0?1:0),v=a.low=v+L,a.high=g+I+(v>>>0<L>>>0?1:0),y=l.low=y+P,l.high=b+D+(y>>>0<P>>>0?1:0),w=c.low=w+B,c.high=_+M+(w>>>0<B>>>0?1:0),S=u.low=S+$,u.high=E+F+(S>>>0<$>>>0?1:0),x=d.low=x+j,d.high=k+U+(x>>>0<j>>>0?1:0),C=n.low=C+K,n.high=A+V+(C>>>0<K>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32}),t.SHA512=n._createHelper(r),t.HmacSHA512=n._createHmacHelper(r)}(),function(){var e=l,t=e.x64,n=t.Word,r=t.WordArray,i=(t=e.algo,t.SHA512);t=t.SHA384=i.extend({_doReset:function(){this._hash=new r.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var e=i._doFinalize.call(this);return e.sigBytes-=16,e}});e.SHA384=i._createHelper(t),e.HmacSHA384=i._createHmacHelper(t)}(),function(){var e=l,t=e.lib,n=t.WordArray,r=t.Hasher,i=(t=e.algo,n.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13])),a=n.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),o=n.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),s=n.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),c=n.create([0,1518500249,1859775393,2400959708,2840853838]),u=n.create([1352829926,1548603684,1836072691,2053994217,0]);t=t.RIPEMD160=r.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;16>n;n++){var r=t+n,l=e[r];e[r]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}r=this._hash.words,l=c.words;var d,h,p,f,m,g,v,b,y,_,w=u.words,E=i.words,S=a.words,k=o.words,x=s.words;g=d=r[0],v=h=r[1],b=p=r[2],y=f=r[3],_=m=r[4];var A;for(n=0;80>n;n+=1)A=d+e[t+E[n]]|0,A=16>n?A+((h^p^f)+l[0]):32>n?A+((h&p|~h&f)+l[1]):48>n?A+(((h|~p)^f)+l[2]):64>n?A+((h&f|p&~f)+l[3]):A+((h^(p|~f))+l[4]),A|=0,A=A<<k[n]|A>>>32-k[n],A=A+m|0,d=m,m=f,f=p<<10|p>>>22,p=h,h=A,A=g+e[t+S[n]]|0,A=16>n?A+((v^(b|~y))+w[0]):32>n?A+((v&y|b&~y)+w[1]):48>n?A+(((v|~b)^y)+w[2]):64>n?A+((v&b|~v&y)+w[3]):A+((v^b^y)+w[4]),A|=0,A=A<<x[n]|A>>>32-x[n],A=A+_|0,g=_,_=y,y=b<<10|b>>>22,b=v,v=A;A=r[1]+p+y|0,r[1]=r[2]+f+_|0,r[2]=r[3]+m+g|0,r[3]=r[4]+d+v|0,r[4]=r[0]+h+b|0,r[0]=A},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;for(t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process(),e=this._hash,t=e.words,n=0;5>n;n++)r=t[n],t[n]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8);return e},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}});e.RIPEMD160=r._createHelper(t),e.HmacRIPEMD160=r._createHmacHelper(t)}(Math),function(){var e=l,t=e.enc.Utf8;e.algo.HMAC=e.lib.Base.extend({init:function(e,n){e=this._hasher=new e.init,"string"==typeof n&&(n=t.parse(n));var r=e.blockSize,i=4*r;n.sigBytes>i&&(n=e.finalize(n)),n.clamp();for(var a=this._oKey=n.clone(),o=this._iKey=n.clone(),s=a.words,l=o.words,c=0;c<r;c++)s[c]^=1549556828,l[c]^=909522486;a.sigBytes=o.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher;return e=t.finalize(e),t.reset(),t.finalize(this._oKey.clone().concat(e))}})}(),function(){var e=l,t=e.lib,n=t.Base,r=t.WordArray,i=(t=e.algo,t.HMAC),a=t.PBKDF2=n.extend({cfg:n.extend({keySize:4,hasher:t.SHA1,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){var n=this.cfg,a=i.create(n.hasher,e),o=r.create(),s=r.create([1]),l=o.words,c=s.words,u=n.keySize;for(n=n.iterations;l.length<u;){var d=a.update(t).finalize(s);a.reset();for(var h=d.words,p=h.length,f=d,m=1;m<n;m++){f=a.finalize(f),a.reset();for(var g=f.words,v=0;v<p;v++)h[v]^=g[v]}o.concat(d),c[0]++}return o.sigBytes=4*u,o}});e.PBKDF2=function(e,t,n){return a.create(n).compute(e,t)}}();
|
||
/*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/
|
||
*/
|
||
var c,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d="=";function h(e){var t,n,r="";for(t=0;t+3<=e.length;t+=3)n=parseInt(e.substring(t,t+3),16),r+=u.charAt(n>>6)+u.charAt(63&n);if(t+1==e.length?(n=parseInt(e.substring(t,t+1),16),r+=u.charAt(n<<2)):t+2==e.length&&(n=parseInt(e.substring(t,t+2),16),r+=u.charAt(n>>2)+u.charAt((3&n)<<4)),d)while((3&r.length)>0)r+=d;return r}function p(e){var t,n,r,i="",a=0;for(t=0;t<e.length;++t){if(e.charAt(t)==d)break;r=u.indexOf(e.charAt(t)),r<0||(0==a?(i+=C(r>>2),n=3&r,a=1):1==a?(i+=C(n<<2|r>>4),n=15&r,a=2):2==a?(i+=C(n),i+=C(r>>2),n=3&r,a=3):(i+=C(n<<2|r>>4),i+=C(15&r),a=0))}return 1==a&&(i+=C(n<<2)),i}function f(e){var t,n=p(e),r=new Array;for(t=0;2*t<n.length;++t)r[t]=parseInt(n.substring(2*t,2*t+2),16);return r}var m=0xdeadbeefcafe,g=15715070==(16777215&m);function v(e,t,n){null!=e&&("number"==typeof e?this.fromNumber(e,t,n):null==t&&"string"!=typeof e?this.fromString(e,256):this.fromString(e,t))}function b(){return new v(null)}function y(e,t,n,r,i,a){while(--a>=0){var o=t*this[e++]+n[r]+i;i=Math.floor(o/67108864),n[r++]=67108863&o}return i}function _(e,t,n,r,i,a){var o=32767&t,s=t>>15;while(--a>=0){var l=32767&this[e],c=this[e++]>>15,u=s*l+c*o;l=o*l+((32767&u)<<15)+n[r]+(1073741823&i),i=(l>>>30)+(u>>>15)+s*c+(i>>>30),n[r++]=1073741823&l}return i}function w(e,t,n,r,i,a){var o=16383&t,s=t>>14;while(--a>=0){var l=16383&this[e],c=this[e++]>>14,u=s*l+c*o;l=o*l+((16383&u)<<14)+n[r]+i,i=(l>>28)+(u>>14)+s*c,n[r++]=268435455&l}return i}g&&"Microsoft Internet Explorer"==i.appName?(v.prototype.am=_,c=30):g&&"Netscape"!=i.appName?(v.prototype.am=y,c=26):(v.prototype.am=w,c=28),v.prototype.DB=c,v.prototype.DM=(1<<c)-1,v.prototype.DV=1<<c;var E=52;v.prototype.FV=Math.pow(2,E),v.prototype.F1=E-c,v.prototype.F2=2*c-E;var S,k,x="0123456789abcdefghijklmnopqrstuvwxyz",A=new Array;for(S="0".charCodeAt(0),k=0;k<=9;++k)A[S++]=k;for(S="a".charCodeAt(0),k=10;k<36;++k)A[S++]=k;for(S="A".charCodeAt(0),k=10;k<36;++k)A[S++]=k;function C(e){return x.charAt(e)}function T(e,t){var n=A[e.charCodeAt(t)];return null==n?-1:n}function N(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s}function R(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0}function O(e){var t=b();return t.fromInt(e),t}function I(e,t){var n;if(16==t)n=4;else if(8==t)n=3;else if(256==t)n=8;else if(2==t)n=1;else if(32==t)n=5;else{if(4!=t)return void this.fromRadix(e,t);n=2}this.t=0,this.s=0;var r=e.length,i=!1,a=0;while(--r>=0){var o=8==n?255&e[r]:T(e,r);o<0?"-"==e.charAt(r)&&(i=!0):(i=!1,0==a?this[this.t++]=o:a+n>this.DB?(this[this.t-1]|=(o&(1<<this.DB-a)-1)<<a,this[this.t++]=o>>this.DB-a):this[this.t-1]|=o<<a,a+=n,a>=this.DB&&(a-=this.DB))}8==n&&0!=(128&e[0])&&(this.s=-1,a>0&&(this[this.t-1]|=(1<<this.DB-a)-1<<a)),this.clamp(),i&&v.ZERO.subTo(this,this)}function L(){var e=this.s&this.DM;while(this.t>0&&this[this.t-1]==e)--this.t}function D(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var n,r=(1<<t)-1,i=!1,a="",o=this.t,s=this.DB-o*this.DB%t;if(o-- >0){s<this.DB&&(n=this[o]>>s)>0&&(i=!0,a=C(n));while(o>=0)s<t?(n=(this[o]&(1<<s)-1)<<t-s,n|=this[--o]>>(s+=this.DB-t)):(n=this[o]>>(s-=t)&r,s<=0&&(s+=this.DB,--o)),n>0&&(i=!0),i&&(a+=C(n))}return i?a:"0"}function P(){var e=b();return v.ZERO.subTo(this,e),e}function M(){return this.s<0?this.negate():this}function B(e){var t=this.s-e.s;if(0!=t)return t;var n=this.t;if(t=n-e.t,0!=t)return this.s<0?-t:t;while(--n>=0)if(0!=(t=this[n]-e[n]))return t;return 0}function F(e){var t,n=1;return 0!=(t=e>>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}function $(){return this.t<=0?0:this.DB*(this.t-1)+F(this[this.t-1]^this.s&this.DM)}function U(e,t){var n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s}function j(e,t){for(var n=e;n<this.t;++n)t[n-e]=this[n];t.t=Math.max(this.t-e,0),t.s=this.s}function V(e,t){var n,r=e%this.DB,i=this.DB-r,a=(1<<i)-1,o=Math.floor(e/this.DB),s=this.s<<r&this.DM;for(n=this.t-1;n>=0;--n)t[n+o+1]=this[n]>>i|s,s=(this[n]&a)<<r;for(n=o-1;n>=0;--n)t[n]=0;t[o]=s,t.t=this.t+o+1,t.s=this.s,t.clamp()}function K(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t)t.t=0;else{var r=e%this.DB,i=this.DB-r,a=(1<<r)-1;t[0]=this[n]>>r;for(var o=n+1;o<this.t;++o)t[o-n-1]|=(this[o]&a)<<i,t[o-n]=this[o]>>r;r>0&&(t[this.t-n-1]|=(this.s&a)<<i),t.t=this.t-n,t.clamp()}}function G(e,t){var n=0,r=0,i=Math.min(e.t,this.t);while(n<i)r+=this[n]-e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){r-=e.s;while(n<this.t)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{r+=this.s;while(n<e.t)r-=e[n],t[n++]=r&this.DM,r>>=this.DB;r-=e.s}t.s=r<0?-1:0,r<-1?t[n++]=this.DV+r:r>0&&(t[n++]=r),t.t=n,t.clamp()}function H(e,t){var n=this.abs(),r=e.abs(),i=n.t;t.t=i+r.t;while(--i>=0)t[i]=0;for(i=0;i<r.t;++i)t[i+n.t]=n.am(0,r[i],t,i,0,n.t);t.s=0,t.clamp(),this.s!=e.s&&v.ZERO.subTo(t,t)}function z(e){var t=this.abs(),n=e.t=2*t.t;while(--n>=0)e[n]=0;for(n=0;n<t.t-1;++n){var r=t.am(n,t[n],e,2*n,0,1);(e[n+t.t]+=t.am(n+1,2*t[n],e,2*n+1,r,t.t-n-1))>=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()}function q(e,t,n){var r=e.abs();if(!(r.t<=0)){var i=this.abs();if(i.t<r.t)return null!=t&&t.fromInt(0),void(null!=n&&this.copyTo(n));null==n&&(n=b());var a=b(),o=this.s,s=e.s,l=this.DB-F(r[r.t-1]);l>0?(r.lShiftTo(l,a),i.lShiftTo(l,n)):(r.copyTo(a),i.copyTo(n));var c=a.t,u=a[c-1];if(0!=u){var d=u*(1<<this.F1)+(c>1?a[c-2]>>this.F2:0),h=this.FV/d,p=(1<<this.F1)/d,f=1<<this.F2,m=n.t,g=m-c,y=null==t?b():t;a.dlShiftTo(g,y),n.compareTo(y)>=0&&(n[n.t++]=1,n.subTo(y,n)),v.ONE.dlShiftTo(c,y),y.subTo(a,a);while(a.t<c)a[a.t++]=0;while(--g>=0){var _=n[--m]==u?this.DM:Math.floor(n[m]*h+(n[m-1]+f)*p);if((n[m]+=a.am(0,_,n,g,0,c))<_){a.dlShiftTo(g,y),n.subTo(y,n);while(n[m]<--_)n.subTo(y,n)}}null!=t&&(n.drShiftTo(c,t),o!=s&&v.ZERO.subTo(t,t)),n.t=c,n.clamp(),l>0&&n.rShiftTo(l,n),o<0&&v.ZERO.subTo(n,n)}}}function X(e){var t=b();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(v.ZERO)>0&&e.subTo(t,t),t}function W(e){this.m=e}function Y(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e}function Q(e){return e}function J(e){e.divRemTo(this.m,null,e)}function Z(e,t,n){e.multiplyTo(t,n),this.reduce(n)}function ee(e,t){e.squareTo(t),this.reduce(t)}function te(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return t=t*(2-(15&e)*t)&15,t=t*(2-(255&e)*t)&255,t=t*(2-((65535&e)*t&65535))&65535,t=t*(2-e*t%this.DV)%this.DV,t>0?this.DV-t:-t}function ne(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}function re(e){var t=b();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(v.ZERO)>0&&this.m.subTo(t,t),t}function ie(e){var t=b();return e.copyTo(t),this.reduce(t),t}function ae(e){while(e.t<=this.mt2)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var n=32767&e[t],r=n*this.mpl+((n*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;n=t+this.m.t,e[n]+=this.m.am(0,r,e,t,0,this.m.t);while(e[n]>=e.DV)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)}function oe(e,t){e.squareTo(t),this.reduce(t)}function se(e,t,n){e.multiplyTo(t,n),this.reduce(n)}function le(){return 0==(this.t>0?1&this[0]:this.s)}function ce(e,t){if(e>4294967295||e<1)return v.ONE;var n=b(),r=b(),i=t.convert(this),a=F(e)-1;i.copyTo(n);while(--a>=0)if(t.sqrTo(n,r),(e&1<<a)>0)t.mulTo(r,i,n);else{var o=n;n=r,r=o}return t.revert(n)}function ue(e,t){var n;return n=e<256||t.isEven()?new W(t):new ne(t),this.exp(e,n)}
|
||
/*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/
|
||
*/
|
||
function de(){var e=b();return this.copyTo(e),e}function he(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]}function pe(){return 0==this.t?this.s:this[0]<<24>>24}function fe(){return 0==this.t?this.s:this[0]<<16>>16}function me(e){return Math.floor(Math.LN2*this.DB/Math.log(e))}function ge(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1}function ve(e){if(null==e&&(e=10),0==this.signum()||e<2||e>36)return"0";var t=this.chunkSize(e),n=Math.pow(e,t),r=O(n),i=b(),a=b(),o="";this.divRemTo(r,i,a);while(i.signum()>0)o=(n+a.intValue()).toString(e).substr(1)+o,i.divRemTo(r,i,a);return a.intValue().toString(e)+o}function be(e,t){this.fromInt(0),null==t&&(t=10);for(var n=this.chunkSize(t),r=Math.pow(t,n),i=!1,a=0,o=0,s=0;s<e.length;++s){var l=T(e,s);l<0?"-"==e.charAt(s)&&0==this.signum()&&(i=!0):(o=t*o+l,++a>=n&&(this.dMultiply(r),this.dAddOffset(o,0),a=0,o=0))}a>0&&(this.dMultiply(Math.pow(t,a)),this.dAddOffset(o,0)),i&&v.ZERO.subTo(this,this)}function ye(e,t,n){if("number"==typeof t)if(e<2)this.fromInt(1);else{this.fromNumber(e,n),this.testBit(e-1)||this.bitwiseTo(v.ONE.shiftLeft(e-1),Ce,this),this.isEven()&&this.dAddOffset(1,0);while(!this.isProbablePrime(t))this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(v.ONE.shiftLeft(e-1),this)}else{var r=new Array,i=7&e;r.length=1+(e>>3),t.nextBytes(r),i>0?r[0]&=(1<<i)-1:r[0]=0,this.fromString(r,256)}}function _e(){var e=this.t,t=new Array;t[0]=this.s;var n,r=this.DB-e*this.DB%8,i=0;if(e-- >0){r<this.DB&&(n=this[e]>>r)!=(this.s&this.DM)>>r&&(t[i++]=n|this.s<<this.DB-r);while(e>=0)r<8?(n=(this[e]&(1<<r)-1)<<8-r,n|=this[--e]>>(r+=this.DB-8)):(n=this[e]>>(r-=8)&255,r<=0&&(r+=this.DB,--e)),0!=(128&n)&&(n|=-256),0==i&&(128&this.s)!=(128&n)&&++i,(i>0||n!=this.s)&&(t[i++]=n)}return t}function we(e){return 0==this.compareTo(e)}function Ee(e){return this.compareTo(e)<0?this:e}function Se(e){return this.compareTo(e)>0?this:e}function ke(e,t,n){var r,i,a=Math.min(e.t,this.t);for(r=0;r<a;++r)n[r]=t(this[r],e[r]);if(e.t<this.t){for(i=e.s&this.DM,r=a;r<this.t;++r)n[r]=t(this[r],i);n.t=this.t}else{for(i=this.s&this.DM,r=a;r<e.t;++r)n[r]=t(i,e[r]);n.t=e.t}n.s=t(this.s,e.s),n.clamp()}function xe(e,t){return e&t}function Ae(e){var t=b();return this.bitwiseTo(e,xe,t),t}function Ce(e,t){return e|t}function Te(e){var t=b();return this.bitwiseTo(e,Ce,t),t}function Ne(e,t){return e^t}function Re(e){var t=b();return this.bitwiseTo(e,Ne,t),t}function Oe(e,t){return e&~t}function Ie(e){var t=b();return this.bitwiseTo(e,Oe,t),t}function Le(){for(var e=b(),t=0;t<this.t;++t)e[t]=this.DM&~this[t];return e.t=this.t,e.s=~this.s,e}function De(e){var t=b();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t}function Pe(e){var t=b();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t}function Me(e){if(0==e)return-1;var t=0;return 0==(65535&e)&&(e>>=16,t+=16),0==(255&e)&&(e>>=8,t+=8),0==(15&e)&&(e>>=4,t+=4),0==(3&e)&&(e>>=2,t+=2),0==(1&e)&&++t,t}function Be(){for(var e=0;e<this.t;++e)if(0!=this[e])return e*this.DB+Me(this[e]);return this.s<0?this.t*this.DB:-1}function Fe(e){var t=0;while(0!=e)e&=e-1,++t;return t}function $e(){for(var e=0,t=this.s&this.DM,n=0;n<this.t;++n)e+=Fe(this[n]^t);return e}function Ue(e){var t=Math.floor(e/this.DB);return t>=this.t?0!=this.s:0!=(this[t]&1<<e%this.DB)}function je(e,t){var n=v.ONE.shiftLeft(e);return this.bitwiseTo(n,t,n),n}function Ve(e){return this.changeBit(e,Ce)}function Ke(e){return this.changeBit(e,Oe)}function Ge(e){return this.changeBit(e,Ne)}function He(e,t){var n=0,r=0,i=Math.min(e.t,this.t);while(n<i)r+=this[n]+e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){r+=e.s;while(n<this.t)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{r+=this.s;while(n<e.t)r+=e[n],t[n++]=r&this.DM,r>>=this.DB;r+=e.s}t.s=r<0?-1:0,r>0?t[n++]=r:r<-1&&(t[n++]=this.DV+r),t.t=n,t.clamp()}function ze(e){var t=b();return this.addTo(e,t),t}function qe(e){var t=b();return this.subTo(e,t),t}function Xe(e){var t=b();return this.multiplyTo(e,t),t}function We(){var e=b();return this.squareTo(e),e}function Ye(e){var t=b();return this.divRemTo(e,t,null),t}function Qe(e){var t=b();return this.divRemTo(e,null,t),t}function Je(e){var t=b(),n=b();return this.divRemTo(e,t,n),new Array(t,n)}function Ze(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()}function et(e,t){if(0!=e){while(this.t<=t)this[this.t++]=0;this[t]+=e;while(this[t]>=this.DV)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}}function tt(){}function nt(e){return e}function rt(e,t,n){e.multiplyTo(t,n)}function it(e,t){e.squareTo(t)}function at(e){return this.exp(e,new tt)}function ot(e,t,n){var r,i=Math.min(this.t+e.t,t);n.s=0,n.t=i;while(i>0)n[--i]=0;for(r=n.t-this.t;i<r;++i)n[i+this.t]=this.am(0,e[i],n,i,0,this.t);for(r=Math.min(e.t,t);i<r;++i)this.am(0,e[i],n,i,0,t-i);n.clamp()}function st(e,t,n){--t;var r=n.t=this.t+e.t-t;n.s=0;while(--r>=0)n[r]=0;for(r=Math.max(t-this.t,0);r<e.t;++r)n[this.t+r-t]=this.am(t-r,e[r],n,0,0,this.t+r-t);n.clamp(),n.drShiftTo(1,n)}function lt(e){this.r2=b(),this.q3=b(),v.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e),this.m=e}function ct(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=b();return e.copyTo(t),this.reduce(t),t}function ut(e){return e}function dt(e){e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);while(e.compareTo(this.r2)<0)e.dAddOffset(1,this.m.t+1);e.subTo(this.r2,e);while(e.compareTo(this.m)>=0)e.subTo(this.m,e)}function ht(e,t){e.squareTo(t),this.reduce(t)}function pt(e,t,n){e.multiplyTo(t,n),this.reduce(n)}function ft(e,t){var n,r,i=e.bitLength(),a=O(1);if(i<=0)return a;n=i<18?1:i<48?3:i<144?4:i<768?5:6,r=i<8?new W(t):t.isEven()?new lt(t):new ne(t);var o=new Array,s=3,l=n-1,c=(1<<n)-1;if(o[1]=r.convert(this),n>1){var u=b();r.sqrTo(o[1],u);while(s<=c)o[s]=b(),r.mulTo(u,o[s-2],o[s]),s+=2}var d,h,p=e.t-1,f=!0,m=b();i=F(e[p])-1;while(p>=0){i>=l?d=e[p]>>i-l&c:(d=(e[p]&(1<<i+1)-1)<<l-i,p>0&&(d|=e[p-1]>>this.DB+i-l)),s=n;while(0==(1&d))d>>=1,--s;if((i-=s)<0&&(i+=this.DB,--p),f)o[d].copyTo(a),f=!1;else{while(s>1)r.sqrTo(a,m),r.sqrTo(m,a),s-=2;s>0?r.sqrTo(a,m):(h=a,a=m,m=h),r.mulTo(m,o[d],a)}while(p>=0&&0==(e[p]&1<<i))r.sqrTo(a,m),h=a,a=m,m=h,--i<0&&(i=this.DB-1,--p)}return r.revert(a)}function mt(e){var t=this.s<0?this.negate():this.clone(),n=e.s<0?e.negate():e.clone();if(t.compareTo(n)<0){var r=t;t=n,n=r}var i=t.getLowestSetBit(),a=n.getLowestSetBit();if(a<0)return t;i<a&&(a=i),a>0&&(t.rShiftTo(a,t),n.rShiftTo(a,n));while(t.signum()>0)(i=t.getLowestSetBit())>0&&t.rShiftTo(i,t),(i=n.getLowestSetBit())>0&&n.rShiftTo(i,n),t.compareTo(n)>=0?(t.subTo(n,t),t.rShiftTo(1,t)):(n.subTo(t,n),n.rShiftTo(1,n));return a>0&&n.lShiftTo(a,n),n}function gt(e){if(e<=0)return 0;var t=this.DV%e,n=this.s<0?e-1:0;if(this.t>0)if(0==t)n=this[0]%e;else for(var r=this.t-1;r>=0;--r)n=(t*n+this[r])%e;return n}function vt(e){var t=e.isEven();if(this.isEven()&&t||0==e.signum())return v.ZERO;var n=e.clone(),r=this.clone(),i=O(1),a=O(0),o=O(0),s=O(1);while(0!=n.signum()){while(n.isEven())n.rShiftTo(1,n),t?(i.isEven()&&a.isEven()||(i.addTo(this,i),a.subTo(e,a)),i.rShiftTo(1,i)):a.isEven()||a.subTo(e,a),a.rShiftTo(1,a);while(r.isEven())r.rShiftTo(1,r),t?(o.isEven()&&s.isEven()||(o.addTo(this,o),s.subTo(e,s)),o.rShiftTo(1,o)):s.isEven()||s.subTo(e,s),s.rShiftTo(1,s);n.compareTo(r)>=0?(n.subTo(r,n),t&&i.subTo(o,i),a.subTo(s,a)):(r.subTo(n,r),t&&o.subTo(i,o),s.subTo(a,s))}return 0!=r.compareTo(v.ONE)?v.ZERO:s.compareTo(e)>=0?s.subtract(e):s.signum()<0?(s.addTo(e,s),s.signum()<0?s.add(e):s):s}W.prototype.convert=Y,W.prototype.revert=Q,W.prototype.reduce=J,W.prototype.mulTo=Z,W.prototype.sqrTo=ee,ne.prototype.convert=re,ne.prototype.revert=ie,ne.prototype.reduce=ae,ne.prototype.mulTo=se,ne.prototype.sqrTo=oe,v.prototype.copyTo=N,v.prototype.fromInt=R,v.prototype.fromString=I,v.prototype.clamp=L,v.prototype.dlShiftTo=U,v.prototype.drShiftTo=j,v.prototype.lShiftTo=V,v.prototype.rShiftTo=K,v.prototype.subTo=G,v.prototype.multiplyTo=H,v.prototype.squareTo=z,v.prototype.divRemTo=q,v.prototype.invDigit=te,v.prototype.isEven=le,v.prototype.exp=ce,v.prototype.toString=D,v.prototype.negate=P,v.prototype.abs=M,v.prototype.compareTo=B,v.prototype.bitLength=$,v.prototype.mod=X,v.prototype.modPowInt=ue,v.ZERO=O(0),v.ONE=O(1),tt.prototype.convert=nt,tt.prototype.revert=nt,tt.prototype.mulTo=rt,tt.prototype.sqrTo=it,lt.prototype.convert=ct,lt.prototype.revert=ut,lt.prototype.reduce=dt,lt.prototype.mulTo=pt,lt.prototype.sqrTo=ht;var bt=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],yt=(1<<26)/bt[bt.length-1];function _t(e){var t,n=this.abs();if(1==n.t&&n[0]<=bt[bt.length-1]){for(t=0;t<bt.length;++t)if(n[0]==bt[t])return!0;return!1}if(n.isEven())return!1;t=1;while(t<bt.length){var r=bt[t],i=t+1;while(i<bt.length&&r<yt)r*=bt[i++];r=n.modInt(r);while(t<i)if(r%bt[t++]==0)return!1}return n.millerRabin(e)}function wt(e){var t=this.subtract(v.ONE),n=t.getLowestSetBit();if(n<=0)return!1;var r=t.shiftRight(n);e=e+1>>1,e>bt.length&&(e=bt.length);for(var i=b(),a=0;a<e;++a){i.fromInt(bt[Math.floor(Math.random()*bt.length)]);var o=i.modPow(r,this);if(0!=o.compareTo(v.ONE)&&0!=o.compareTo(t)){var s=1;while(s++<n&&0!=o.compareTo(t))if(o=o.modPowInt(2,this),0==o.compareTo(v.ONE))return!1;if(0!=o.compareTo(t))return!1}}return!0}
|
||
/*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/
|
||
*/
|
||
function Et(){this.i=0,this.j=0,this.S=new Array}function St(e){var t,n,r;for(t=0;t<256;++t)this.S[t]=t;for(n=0,t=0;t<256;++t)n=n+this.S[t]+e[t%e.length]&255,r=this.S[t],this.S[t]=this.S[n],this.S[n]=r;this.i=0,this.j=0}function kt(){var e;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,e=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=e,this.S[e+this.S[this.i]&255]}function xt(){return new Et}v.prototype.chunkSize=me,v.prototype.toRadix=ve,v.prototype.fromRadix=be,v.prototype.fromNumber=ye,v.prototype.bitwiseTo=ke,v.prototype.changeBit=je,v.prototype.addTo=He,v.prototype.dMultiply=Ze,v.prototype.dAddOffset=et,v.prototype.multiplyLowerTo=ot,v.prototype.multiplyUpperTo=st,v.prototype.modInt=gt,v.prototype.millerRabin=wt,v.prototype.clone=de,v.prototype.intValue=he,v.prototype.byteValue=pe,v.prototype.shortValue=fe,v.prototype.signum=ge,v.prototype.toByteArray=_e,v.prototype.equals=we,v.prototype.min=Ee,v.prototype.max=Se,v.prototype.and=Ae,v.prototype.or=Te,v.prototype.xor=Re,v.prototype.andNot=Ie,v.prototype.not=Le,v.prototype.shiftLeft=De,v.prototype.shiftRight=Pe,v.prototype.getLowestSetBit=Be,v.prototype.bitCount=$e,v.prototype.testBit=Ue,v.prototype.setBit=Ve,v.prototype.clearBit=Ke,v.prototype.flipBit=Ge,v.prototype.add=ze,v.prototype.subtract=qe,v.prototype.multiply=Xe,v.prototype.divide=Ye,v.prototype.remainder=Qe,v.prototype.divideAndRemainder=Je,v.prototype.modPow=ft,v.prototype.modInverse=vt,v.prototype.pow=at,v.prototype.gcd=mt,v.prototype.isProbablePrime=_t,v.prototype.square=We,Et.prototype.init=St,Et.prototype.next=kt;var At,Ct,Tt,Nt=256;
|
||
/*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/
|
||
*/function Rt(e){Ct[Tt++]^=255&e,Ct[Tt++]^=e>>8&255,Ct[Tt++]^=e>>16&255,Ct[Tt++]^=e>>24&255,Tt>=Nt&&(Tt-=Nt)}function Ot(){Rt((new Date).getTime())}if(null==Ct){var It;if(Ct=new Array,Tt=0,void 0!==a&&(void 0!==a.crypto||void 0!==a.msCrypto)){var Lt=a.crypto||a.msCrypto;if(Lt.getRandomValues){var Dt=new Uint8Array(32);for(Lt.getRandomValues(Dt),It=0;It<32;++It)Ct[Tt++]=Dt[It]}else if("Netscape"==i.appName&&i.appVersion<"5"){var Pt=a.crypto.random(32);for(It=0;It<Pt.length;++It)Ct[Tt++]=255&Pt.charCodeAt(It)}}while(Tt<Nt)It=Math.floor(65536*Math.random()),Ct[Tt++]=It>>>8,Ct[Tt++]=255&It;Tt=0,Ot()}function Mt(){if(null==At){for(Ot(),At=xt(),At.init(Ct),Tt=0;Tt<Ct.length;++Tt)Ct[Tt]=0;Tt=0}return At.next()}function Bt(e){var t;for(t=0;t<e.length;++t)e[t]=Mt()}function Ft(){}
|
||
/*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/
|
||
*/
|
||
function $t(e,t){return new v(e,t)}function Ut(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}function jt(e,t){if(this.isPublic=!0,this.isPrivate=!1,"string"!==typeof e)this.n=e,this.e=t;else{if(!(null!=e&&null!=t&&e.length>0&&t.length>0))throw"Invalid RSA public key";this.n=$t(e,16),this.e=parseInt(t,16)}if(null==this.n||"function"!==typeof this.n.compareTo||this.n.compareTo(v.ONE)<=0||null==this.e||isNaN(this.e)||this.e<=0)throw"Invalid RSA public key"}function Vt(e){return e.modPowInt(this.e,this.n)}function Kt(e,t,n){if(this.isPrivate=!0,"string"!==typeof e)this.n=e,this.e=t,this.d=n;else{if(!(null!=e&&null!=t&&e.length>0&&t.length>0))throw"Invalid RSA private key";this.n=$t(e,16),this.e=parseInt(t,16),this.d=$t(n,16)}}function Gt(e,t,n,r,i,a,o,s){if(this.isPrivate=!0,this.isPublic=!1,null==e)throw"RSASetPrivateEx N == null";if(null==t)throw"RSASetPrivateEx E == null";if(0==e.length)throw"RSASetPrivateEx N.length == 0";if(0==t.length)throw"RSASetPrivateEx E.length == 0";if(!(null!=e&&null!=t&&e.length>0&&t.length>0))throw"Invalid RSA private key in RSASetPrivateEx";this.n=$t(e,16),this.e=parseInt(t,16),this.d=$t(n,16),this.p=$t(r,16),this.q=$t(i,16),this.dmp1=$t(a,16),this.dmq1=$t(o,16),this.coeff=$t(s,16)}function Ht(e,t){var n=new Ft,r=e>>1;this.e=parseInt(t,16);for(var i=new v(t,16),a=e/2-100,o=v.ONE.shiftLeft(a);;){for(;;)if(this.p=new v(e-r,1,n),0==this.p.subtract(v.ONE).gcd(i).compareTo(v.ONE)&&this.p.isProbablePrime(10))break;for(;;)if(this.q=new v(r,1,n),0==this.q.subtract(v.ONE).gcd(i).compareTo(v.ONE)&&this.q.isProbablePrime(10))break;if(this.p.compareTo(this.q)<=0){var s=this.p;this.p=this.q,this.q=s}var l=this.q.subtract(this.p).abs();if(!(l.bitLength()<a||l.compareTo(o)<=0)){var c=this.p.subtract(v.ONE),u=this.q.subtract(v.ONE),d=c.multiply(u);if(0==d.gcd(i).compareTo(v.ONE)&&(this.n=this.p.multiply(this.q),this.n.bitLength()==e)){this.d=i.modInverse(d),this.dmp1=this.d.mod(c),this.dmq1=this.d.mod(u),this.coeff=this.q.modInverse(this.p);break}}}this.isPrivate=!0}function zt(e){if(null==this.p||null==this.q)return e.modPow(this.d,this.n);var t=e.mod(this.p).modPow(this.dmp1,this.p),n=e.mod(this.q).modPow(this.dmq1,this.q);while(t.compareTo(n)<0)t=t.add(this.p);return t.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)}
|
||
/*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/
|
||
*/
|
||
function qt(e,t){this.x=t,this.q=e}function Xt(e){return e==this||this.q.equals(e.q)&&this.x.equals(e.x)}function Wt(){return this.x}function Yt(){return new qt(this.q,this.x.negate().mod(this.q))}function Qt(e){return new qt(this.q,this.x.add(e.toBigInteger()).mod(this.q))}function Jt(e){return new qt(this.q,this.x.subtract(e.toBigInteger()).mod(this.q))}function Zt(e){return new qt(this.q,this.x.multiply(e.toBigInteger()).mod(this.q))}function en(){return new qt(this.q,this.x.square().mod(this.q))}function tn(e){return new qt(this.q,this.x.multiply(e.toBigInteger().modInverse(this.q)).mod(this.q))}function nn(e,t,n,r){this.curve=e,this.x=t,this.y=n,this.z=null==r?v.ONE:r,this.zinv=null}function rn(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.x.toBigInteger().multiply(this.zinv).mod(this.curve.q))}function an(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.y.toBigInteger().multiply(this.zinv).mod(this.curve.q))}function on(e){return e==this||(this.isInfinity()?e.isInfinity():e.isInfinity()?this.isInfinity():(t=e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q),!!t.equals(v.ZERO)&&(n=e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q),n.equals(v.ZERO))));var t,n}function sn(){return null==this.x&&null==this.y||this.z.equals(v.ZERO)&&!this.y.toBigInteger().equals(v.ZERO)}function ln(){return new nn(this.curve,this.x,this.y.negate(),this.z)}function cn(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q),n=e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q);if(v.ZERO.equals(n))return v.ZERO.equals(t)?this.twice():this.curve.getInfinity();var r=new v("3"),i=this.x.toBigInteger(),a=this.y.toBigInteger(),o=(e.x.toBigInteger(),e.y.toBigInteger(),n.square()),s=o.multiply(n),l=i.multiply(o),c=t.square().multiply(this.z),u=c.subtract(l.shiftLeft(1)).multiply(e.z).subtract(s).multiply(n).mod(this.curve.q),d=l.multiply(r).multiply(t).subtract(a.multiply(s)).subtract(c.multiply(t)).multiply(e.z).add(t.multiply(s)).mod(this.curve.q),h=s.multiply(this.z).multiply(e.z).mod(this.curve.q);return new nn(this.curve,this.curve.fromBigInteger(u),this.curve.fromBigInteger(d),h)}function un(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var e=new v("3"),t=this.x.toBigInteger(),n=this.y.toBigInteger(),r=n.multiply(this.z),i=r.multiply(n).mod(this.curve.q),a=this.curve.a.toBigInteger(),o=t.square().multiply(e);v.ZERO.equals(a)||(o=o.add(this.z.square().multiply(a))),o=o.mod(this.curve.q);var s=o.square().subtract(t.shiftLeft(3).multiply(i)).shiftLeft(1).multiply(r).mod(this.curve.q),l=o.multiply(e).multiply(t).subtract(i.shiftLeft(1)).shiftLeft(2).multiply(i).subtract(o.square().multiply(o)).mod(this.curve.q),c=r.square().multiply(r).shiftLeft(3).mod(this.curve.q);return new nn(this.curve,this.curve.fromBigInteger(s),this.curve.fromBigInteger(l),c)}function dn(e){if(this.isInfinity())return this;if(0==e.signum())return this.curve.getInfinity();var t,n=e,r=n.multiply(new v("3")),i=this.negate(),a=this,o=this.curve.q.subtract(e),s=o.multiply(new v("3")),l=new nn(this.curve,this.x,this.y),c=l.negate();for(t=r.bitLength()-2;t>0;--t){a=a.twice();var u=r.testBit(t),d=n.testBit(t);u!=d&&(a=a.add(u?this:i))}for(t=s.bitLength()-2;t>0;--t){l=l.twice();var h=s.testBit(t),p=o.testBit(t);h!=p&&(l=l.add(h?l:c))}return a}function hn(e,t,n){var r;r=e.bitLength()>n.bitLength()?e.bitLength()-1:n.bitLength()-1;var i=this.curve.getInfinity(),a=this.add(t);while(r>=0)i=i.twice(),e.testBit(r)?i=n.testBit(r)?i.add(a):i.add(this):n.testBit(r)&&(i=i.add(t)),--r;return i}function pn(e,t,n){this.q=e,this.a=this.fromBigInteger(t),this.b=this.fromBigInteger(n),this.infinity=new nn(this,null,null)}function fn(){return this.q}function mn(){return this.a}function gn(){return this.b}function vn(e){return e==this||this.q.equals(e.q)&&this.a.equals(e.a)&&this.b.equals(e.b)}function bn(){return this.infinity}function yn(e){return new qt(this.q,e)}function _n(e){switch(parseInt(e.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:var t=e.substr(0,2),n=(e.substr(2),this.fromBigInteger(new v(l,16))),r=this.getA(),i=this.getB(),a=n.square().add(r).multiply(n).add(i),o=a.sqrt();return"03"==t&&(o=o.negate()),new nn(this,n,o);case 4:case 6:case 7:var s=(e.length-2)/2,l=e.substr(2,s),c=e.substr(s+2,s);return new nn(this,this.fromBigInteger(new v(l,16)),this.fromBigInteger(new v(c,16)));default:return null}}Ft.prototype.nextBytes=Bt,Ut.prototype.doPublic=Vt,Ut.prototype.setPublic=jt,Ut.prototype.type="RSA",Ut.prototype.doPrivate=zt,Ut.prototype.setPrivate=Kt,Ut.prototype.setPrivateEx=Gt,Ut.prototype.generate=Ht,qt.prototype.equals=Xt,qt.prototype.toBigInteger=Wt,qt.prototype.negate=Yt,qt.prototype.add=Qt,qt.prototype.subtract=Jt,qt.prototype.multiply=Zt,qt.prototype.square=en,qt.prototype.divide=tn,qt.prototype.sqrt=function(){return new qt(this.q,this.x.sqrt().mod(this.q))},nn.prototype.getX=rn,nn.prototype.getY=an,nn.prototype.equals=on,nn.prototype.isInfinity=sn,nn.prototype.negate=ln,nn.prototype.add=cn,nn.prototype.twice=un,nn.prototype.multiply=dn,nn.prototype.multiplyTwo=hn,pn.prototype.getQ=fn,pn.prototype.getA=mn,pn.prototype.getB=gn,pn.prototype.equals=vn,pn.prototype.getInfinity=bn,pn.prototype.fromBigInteger=yn,pn.prototype.decodePointHex=_n,
|
||
/*! (c) Stefan Thomas | https://github.com/bitcoinjs/bitcoinjs-lib
|
||
*/
|
||
qt.prototype.getByteLength=function(){return Math.floor((this.toBigInteger().bitLength()+7)/8)},nn.prototype.getEncoded=function(e){var t=function(e,t){var n=e.toByteArrayUnsigned();if(t<n.length)n=n.slice(n.length-t);else while(t>n.length)n.unshift(0);return n},n=this.getX().toBigInteger(),r=this.getY().toBigInteger(),i=t(n,32);return e?r.isEven()?i.unshift(2):i.unshift(3):(i.unshift(4),i=i.concat(t(r,32))),i},nn.decodeFrom=function(e,t){t[0];var n=t.length-1,r=t.slice(1,1+n/2),i=t.slice(1+n/2,1+n);r.unshift(0),i.unshift(0);var a=new v(r),o=new v(i);return new nn(e,e.fromBigInteger(a),e.fromBigInteger(o))},nn.decodeFromHex=function(e,t){t.substr(0,2);var n=t.length-2,r=t.substr(2,n/2),i=t.substr(2+n/2,n/2),a=new v(r,16),o=new v(i,16);return new nn(e,e.fromBigInteger(a),e.fromBigInteger(o))},nn.prototype.add2D=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;if(this.x.equals(e.x))return this.y.equals(e.y)?this.twice():this.curve.getInfinity();var t=e.x.subtract(this.x),n=e.y.subtract(this.y),r=n.divide(t),i=r.square().subtract(this.x).subtract(e.x),a=r.multiply(this.x.subtract(i)).subtract(this.y);return new nn(this.curve,i,a)},nn.prototype.twice2D=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var e=this.curve.fromBigInteger(v.valueOf(2)),t=this.curve.fromBigInteger(v.valueOf(3)),n=this.x.square().multiply(t).add(this.curve.a).divide(this.y.multiply(e)),r=n.square().subtract(this.x.multiply(e)),i=n.multiply(this.x.subtract(r)).subtract(this.y);return new nn(this.curve,r,i)},nn.prototype.multiply2D=function(e){if(this.isInfinity())return this;if(0==e.signum())return this.curve.getInfinity();var t,n=e,r=n.multiply(new v("3")),i=this.negate(),a=this;for(t=r.bitLength()-2;t>0;--t){a=a.twice();var o=r.testBit(t),s=n.testBit(t);o!=s&&(a=a.add2D(o?this:i))}return a},nn.prototype.isOnCurve=function(){var e=this.getX().toBigInteger(),t=this.getY().toBigInteger(),n=this.curve.getA().toBigInteger(),r=this.curve.getB().toBigInteger(),i=this.curve.getQ(),a=t.multiply(t).mod(i),o=e.multiply(e).multiply(e).add(n.multiply(e)).add(r).mod(i);return a.equals(o)},nn.prototype.toString=function(){return"("+this.getX().toBigInteger().toString()+","+this.getY().toBigInteger().toString()+")"},nn.prototype.validate=function(){var e=this.curve.getQ();if(this.isInfinity())throw new Error("Point is at infinity.");var t=this.getX().toBigInteger(),n=this.getY().toBigInteger();if(t.compareTo(v.ONE)<0||t.compareTo(e.subtract(v.ONE))>0)throw new Error("x coordinate out of bounds");if(n.compareTo(v.ONE)<0||n.compareTo(e.subtract(v.ONE))>0)throw new Error("y coordinate out of bounds");if(!this.isOnCurve())throw new Error("Point is not on the curve.");if(this.multiply(e).isInfinity())throw new Error("Point is not a scalar multiple of G.");return!0};
|
||
/*! Mike Samuel (c) 2009 | code.google.com/p/json-sans-eval
|
||
*/
|
||
var wn=function(){var e="(?:-?\\b(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?\\b)",t='(?:[^\\0-\\x08\\x0a-\\x1f"\\\\]|\\\\(?:["/\\\\bfnrt]|u[0-9A-Fa-f]{4}))',n='(?:"'+t+'*")',r=new RegExp("(?:false|true|null|[\\{\\}\\[\\]]|"+e+"|"+n+")","g"),i=new RegExp("\\\\(?:([^u])|u(.{4}))","g"),a={'"':'"',"/":"/","\\":"\\",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function o(e,t,n){return t?a[t]:String.fromCharCode(parseInt(n,16))}var s=new String(""),l="\\",c=Object.hasOwnProperty;return function(e,t){var n,a,u=e.match(r),d=u[0],h=!1;"{"===d?n={}:"["===d?n=[]:(n=[],h=!0);for(var p=[n],f=1-h,m=u.length;f<m;++f){var g;switch(d=u[f],d.charCodeAt(0)){default:g=p[0],g[a||g.length]=+d,a=void 0;break;case 34:if(d=d.substring(1,d.length-1),-1!==d.indexOf(l)&&(d=d.replace(i,o)),g=p[0],!a){if(!(g instanceof Array)){a=d||s;break}a=g.length}g[a]=d,a=void 0;break;case 91:g=p[0],p.unshift(g[a||g.length]=[]),a=void 0;break;case 93:p.shift();break;case 102:g=p[0],g[a||g.length]=!1,a=void 0;break;case 110:g=p[0],g[a||g.length]=null,a=void 0;break;case 116:g=p[0],g[a||g.length]=!0,a=void 0;break;case 123:g=p[0],p.unshift(g[a||g.length]={}),a=void 0;break;case 125:p.shift();break}}if(h){if(1!==p.length)throw new Error;n=n[0]}else if(p.length)throw new Error;if(t){var v=function(e,n){var r=e[n];if(r&&"object"===typeof r){var i=null;for(var a in r)if(c.call(r,a)&&r!==e){var o=v(r,a);void 0!==o?r[a]=o:(i||(i=[]),i.push(a))}if(i)for(var s=i.length;--s>=0;)delete r[i[s]]}return t.call(e,n,r)};n=v({"":n},"")}return n}}();"undefined"!=typeof En&&En||(En={}),"undefined"!=typeof En.asn1&&En.asn1||(En.asn1={}),En.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var t=e.toString(16);return t.length%2==1&&(t="0"+t),t},this.bigIntToMinTwosComplementsHex=function(e){return Cr(e)},this.getPEMStringFromHex=function(e,t){return Yn(e,t)},this.newObject=function(e){var t=En,n=t.asn1,r=n.ASN1Object,i=n.DERBoolean,a=n.DERInteger,o=n.DERBitString,s=n.DEROctetString,l=n.DERNull,c=n.DERObjectIdentifier,u=n.DEREnumerated,d=n.DERUTF8String,h=n.DERNumericString,p=n.DERPrintableString,f=n.DERTeletexString,m=n.DERIA5String,g=n.DERUTCTime,v=n.DERGeneralizedTime,b=n.DERVisibleString,y=n.DERBMPString,_=n.DERSequence,w=n.DERSet,E=n.DERTaggedObject,S=n.ASN1Util.newObject;if(e instanceof n.ASN1Object)return e;var k=Object.keys(e);if(1!=k.length)throw new Error("key of param shall be only one.");var x=k[0];if(-1==":asn1:bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:visstr:bmpstr:seq:set:tag:".indexOf(":"+x+":"))throw new Error("undefined key: "+x);if("bool"==x)return new i(e[x]);if("int"==x)return new a(e[x]);if("bitstr"==x)return new o(e[x]);if("octstr"==x)return new s(e[x]);if("null"==x)return new l(e[x]);if("oid"==x)return new c(e[x]);if("enum"==x)return new u(e[x]);if("utf8str"==x)return new d(e[x]);if("numstr"==x)return new h(e[x]);if("prnstr"==x)return new p(e[x]);if("telstr"==x)return new f(e[x]);if("ia5str"==x)return new m(e[x]);if("utctime"==x)return new g(e[x]);if("gentime"==x)return new v(e[x]);if("visstr"==x)return new b(e[x]);if("bmpstr"==x)return new y(e[x]);if("asn1"==x)return new r(e[x]);if("seq"==x){for(var A=e[x],C=[],T=0;T<A.length;T++){var N=S(A[T]);C.push(N)}return new _({array:C})}if("set"==x){for(A=e[x],C=[],T=0;T<A.length;T++){N=S(A[T]);C.push(N)}return new w({array:C})}if("tag"==x){var R=e[x];if("[object Array]"===Object.prototype.toString.call(R)&&3==R.length){var O=S(R[2]);return new E({tag:R[0],explicit:R[1],obj:O})}return new E(R)}},this.jsonToASN1HEX=function(e){var t=this.newObject(e);return t.tohex()}},En.asn1.ASN1Util.oidHexToInt=function(e){for(var t="",n=parseInt(e.substr(0,2),16),r=Math.floor(n/40),i=n%40,a=(t=r+"."+i,""),o=2;o<e.length;o+=2){var s=parseInt(e.substr(o,2),16),l=("00000000"+s.toString(2)).slice(-8);if(a+=l.substr(1,7),"0"==l.substr(0,1)){var c=new v(a,2);t=t+"."+c.toString(10),a=""}}return t},En.asn1.ASN1Util.oidIntToHex=function(e){var t=function(e){var t=e.toString(16);return 1==t.length&&(t="0"+t),t},n=function(e){var n="",r=new v(e,10),i=r.toString(2),a=7-i.length%7;7==a&&(a=0);for(var o="",s=0;s<a;s++)o+="0";i=o+i;for(s=0;s<i.length-1;s+=7){var l=i.substr(s,7);s!=i.length-7&&(l="1"+l),n+=t(parseInt(l,2))}return n};if(!e.match(/^[0-9.]+$/))throw"malformed oid string: "+e;var r="",i=e.split("."),a=40*parseInt(i[0])+parseInt(i[1]);r+=t(a),i.splice(0,2);for(var o=0;o<i.length;o++)r+=n(i[o]);return r},En.asn1.ASN1Object=function(e){var t="";this.params=null,this.getLengthHexFromValue=function(){if("undefined"==typeof this.hV||null==this.hV)throw new Error("this.hV is null or undefined");if(this.hV.length%2==1)throw new Error("value hex must be even length: n="+t.length+",v="+this.hV);var e=this.hV.length/2,n=e.toString(16);if(n.length%2==1&&(n="0"+n),e<128)return n;var r=n.length/2;if(r>15)throw new Error("ASN.1 length too long to represent by 8x: n = "+e.toString(16));var i=128+r;return i.toString(16)+n},this.tohex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getEncodedHex=function(){return this.tohex()},this.getValueHex=function(){return this.tohex(),this.hV},this.getFreshValueHex=function(){return""},this.setByParam=function(e){this.params=e},void 0!=e&&void 0!=e.tlv&&(this.hTLV=e.tlv,this.isModified=!1)},En.asn1.DERAbstractString=function(e){En.asn1.DERAbstractString.superclass.constructor.call(this);this.getString=function(){return this.s},this.setString=function(e){this.hTLV=null,this.isModified=!0,this.s=e,this.hV=$n(this.s).toLowerCase()},this.setStringHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof e&&("string"==typeof e?this.setString(e):"undefined"!=typeof e.str?this.setString(e.str):"undefined"!=typeof e.hex&&this.setStringHex(e.hex))},Pr(En.asn1.DERAbstractString,En.asn1.ASN1Object),En.asn1.DERAbstractTime=function(e){En.asn1.DERAbstractTime.superclass.constructor.call(this);this.localDateToUTC=function(e){var t=e.getTime()+6e4*e.getTimezoneOffset(),n=new Date(t);return n},this.formatDate=function(e,t,n){var r=this.zeroPadding,i=this.localDateToUTC(e),a=String(i.getFullYear());"utc"==t&&(a=a.substr(2,2));var o=r(String(i.getMonth()+1),2),s=r(String(i.getDate()),2),l=r(String(i.getHours()),2),c=r(String(i.getMinutes()),2),u=r(String(i.getSeconds()),2),d=a+o+s+l+c+u;if(!0===n){var h=i.getMilliseconds();if(0!=h){var p=r(String(h),3);p=p.replace(/[0]+$/,""),d=d+"."+p}}return d+"Z"},this.zeroPadding=function(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e},this.setByParam=function(e){this.hV=null,this.hTLV=null,this.params=e},this.getString=function(){},this.setString=function(e){this.hTLV=null,this.isModified=!0,void 0==this.params&&(this.params={}),this.params.str=e},this.setByDate=function(e){this.hTLV=null,this.isModified=!0,void 0==this.params&&(this.params={}),this.params.date=e},this.setByDateValue=function(e,t,n,r,i,a){var o=new Date(Date.UTC(e,t-1,n,r,i,a,0));this.setByDate(o)},this.getFreshValueHex=function(){return this.hV}},Pr(En.asn1.DERAbstractTime,En.asn1.ASN1Object),En.asn1.DERAbstractStructured=function(e){En.asn1.DERAbstractString.superclass.constructor.call(this);this.setByASN1ObjectArray=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array=e},this.appendASN1Object=function(e){this.hTLV=null,this.isModified=!0,this.asn1Array.push(e)},this.asn1Array=new Array,"undefined"!=typeof e&&"undefined"!=typeof e.array&&(this.asn1Array=e.array)},Pr(En.asn1.DERAbstractStructured,En.asn1.ASN1Object),En.asn1.DERBoolean=function(e){En.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV=0==e?"010100":"0101ff"},Pr(En.asn1.DERBoolean,En.asn1.ASN1Object),En.asn1.DERInteger=function(e){En.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.params=null;var t=Cr;this.setByBigInteger=function(e){this.isModified=!0,this.params={bigint:e}},this.setByInteger=function(e){this.isModified=!0,this.params=e},this.setValueHex=function(e){this.isModified=!0,this.params={hex:e}},this.getFreshValueHex=function(){var e=this.params,n=null;if(null==e)throw new Error("value not set");if("object"==typeof e&&void 0!=e.hex)return this.hV=e.hex,this.hV;if("number"==typeof e)n=new v(String(e),10);else if(void 0!=e["int"])n=new v(String(e["int"]),10);else{if(void 0==e.bigint)throw new Error("wrong parameter");n=e.bigint}return this.hV=t(n),this.hV},void 0!=e&&(this.params=e)},Pr(En.asn1.DERInteger,En.asn1.ASN1Object),En.asn1.DERBitString=function(e){if(void 0!==e&&"undefined"!==typeof e.obj){var t=En.asn1.ASN1Util.newObject(e.obj);e.hex="00"+t.tohex()}En.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(e){this.hTLV=null,this.isModified=!0,this.hV=e},this.setUnusedBitsAndHexValue=function(e,t){if(e<0||7<e)throw"unused bits shall be from 0 to 7: u = "+e;var n="0"+e;this.hTLV=null,this.isModified=!0,this.hV=n+t},this.setByBinaryString=function(e){e=e.replace(/0+$/,"");var t=8-e.length%8;8==t&&(t=0),e+="0000000".substr(0,t);for(var n="",r=0;r<e.length-1;r+=8){var i=e.substr(r,8),a=parseInt(i,2).toString(16);1==a.length&&(a="0"+a),n+=a}this.hTLV=null,this.isModified=!0,this.hV="0"+t+n},this.setByBooleanArray=function(e){for(var t="",n=0;n<e.length;n++)1==e[n]?t+="1":t+="0";this.setByBinaryString(t)},this.newFalseArray=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=!1;return t},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof e&&("string"==typeof e&&e.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(e):"undefined"!=typeof e.hex?this.setHexValueIncludingUnusedBits(e.hex):"undefined"!=typeof e.bin?this.setByBinaryString(e.bin):"undefined"!=typeof e.array&&this.setByBooleanArray(e.array))},Pr(En.asn1.DERBitString,En.asn1.ASN1Object),En.asn1.DEROctetString=function(e){if(void 0!==e&&"undefined"!==typeof e.obj){var t=En.asn1.ASN1Util.newObject(e.obj);e.hex=t.tohex()}En.asn1.DEROctetString.superclass.constructor.call(this,e),this.hT="04"},Pr(En.asn1.DEROctetString,En.asn1.DERAbstractString),En.asn1.DERNull=function(){En.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},Pr(En.asn1.DERNull,En.asn1.ASN1Object),En.asn1.DERObjectIdentifier=function(e){En.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(e){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=e},this.setValueOidString=function(e){var t=kr(e);if(null==t)throw new Error("malformed oid string: "+e);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.setValueName=function(e){var t=En.asn1.x509.OID.name2oid(e);if(""===t)throw new Error("DERObjectIdentifier oidName undefined: "+e);this.setValueOidString(t)},this.setValueNameOrOid=function(e){e.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(e):this.setValueName(e)},this.getFreshValueHex=function(){return this.hV},this.setByParam=function(e){"string"===typeof e?this.setValueNameOrOid(e):void 0!==e.oid?this.setValueNameOrOid(e.oid):void 0!==e.name?this.setValueNameOrOid(e.name):void 0!==e.hex&&this.setValueHex(e.hex)},void 0!==e&&this.setByParam(e)},Pr(En.asn1.DERObjectIdentifier,En.asn1.ASN1Object),En.asn1.DEREnumerated=function(e){En.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(e){this.hTLV=null,this.isModified=!0,this.hV=Cr(e)},this.setByInteger=function(e){var t=new v(String(e),10);this.setByBigInteger(t)},this.setValueHex=function(e){this.hV=e},this.getFreshValueHex=function(){return this.hV},"undefined"!=typeof e&&("undefined"!=typeof e["int"]?this.setByInteger(e["int"]):"number"==typeof e?this.setByInteger(e):"undefined"!=typeof e.hex&&this.setValueHex(e.hex))},Pr(En.asn1.DEREnumerated,En.asn1.ASN1Object),En.asn1.DERUTF8String=function(e){En.asn1.DERUTF8String.superclass.constructor.call(this,e),this.hT="0c"},Pr(En.asn1.DERUTF8String,En.asn1.DERAbstractString),En.asn1.DERNumericString=function(e){En.asn1.DERNumericString.superclass.constructor.call(this,e),this.hT="12"},Pr(En.asn1.DERNumericString,En.asn1.DERAbstractString),En.asn1.DERPrintableString=function(e){En.asn1.DERPrintableString.superclass.constructor.call(this,e),this.hT="13"},Pr(En.asn1.DERPrintableString,En.asn1.DERAbstractString),En.asn1.DERTeletexString=function(e){En.asn1.DERTeletexString.superclass.constructor.call(this,e),this.hT="14"},Pr(En.asn1.DERTeletexString,En.asn1.DERAbstractString),En.asn1.DERIA5String=function(e){En.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="16"},Pr(En.asn1.DERIA5String,En.asn1.DERAbstractString),En.asn1.DERVisibleString=function(e){En.asn1.DERIA5String.superclass.constructor.call(this,e),this.hT="1a"},Pr(En.asn1.DERVisibleString,En.asn1.DERAbstractString),En.asn1.DERBMPString=function(e){En.asn1.DERBMPString.superclass.constructor.call(this,e),this.hT="1e"},Pr(En.asn1.DERBMPString,En.asn1.DERAbstractString),En.asn1.DERUTCTime=function(e){En.asn1.DERUTCTime.superclass.constructor.call(this,e),this.hT="17",this.params=void 0,this.getFreshValueHex=function(){var e=this.params;if(void 0==this.params&&(e={date:new Date}),"string"==typeof e){if(!e.match(/^[0-9]{12}Z$/)&&!e.match(/^[0-9]{12}\.[0-9]+Z$/))throw new Error("malformed string for UTCTime: "+e);this.hV=Nn(e)}else if(void 0!=e.str)this.hV=Nn(e.str);else if(void 0==e.date&&1==e.millis){var t=new Date;this.hV=Nn(this.formatDate(t,"utc",!0))}else if(void 0!=e.date&&e.date instanceof Date){var n=!0===e.millis;this.hV=Nn(this.formatDate(e.date,"utc",n))}else e instanceof Date&&(this.hV=Nn(this.formatDate(e,"utc")));if(void 0==this.hV)throw new Error("parameter not specified properly for UTCTime");return this.hV},void 0!=e&&this.setByParam(e)},Pr(En.asn1.DERUTCTime,En.asn1.DERAbstractTime),En.asn1.DERGeneralizedTime=function(e){En.asn1.DERGeneralizedTime.superclass.constructor.call(this,e),this.hT="18",this.params=e,this.getFreshValueHex=function(){var e=this.params;if(void 0==this.params&&(e={date:new Date}),"string"==typeof e){if(!e.match(/^[0-9]{14}Z$/)&&!e.match(/^[0-9]{14}\.[0-9]+Z$/))throw new Error("malformed string for GeneralizedTime: "+e);this.hV=Nn(e)}else if(void 0!=e.str)this.hV=Nn(e.str);else if(void 0==e.date&&1==e.millis){var t=new Date;this.hV=Nn(this.formatDate(t,"gen",!0))}else if(void 0!=e.date&&e.date instanceof Date){var n=!0===e.millis;this.hV=Nn(this.formatDate(e.date,"gen",n))}else e instanceof Date&&(this.hV=Nn(this.formatDate(e,"gen")));if(void 0==this.hV)throw new Error("parameter not specified properly for GeneralizedTime");return this.hV},void 0!=e&&this.setByParam(e)},Pr(En.asn1.DERGeneralizedTime,En.asn1.DERAbstractTime),En.asn1.DERSequence=function(e){En.asn1.DERSequence.superclass.constructor.call(this,e),this.hT="30",this.getFreshValueHex=function(){for(var e="",t=0;t<this.asn1Array.length;t++){var n=this.asn1Array[t];e+=n.tohex()}return this.hV=e,this.hV}},Pr(En.asn1.DERSequence,En.asn1.DERAbstractStructured),En.asn1.DERSet=function(e){En.asn1.DERSet.superclass.constructor.call(this,e),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var e=new Array,t=0;t<this.asn1Array.length;t++){var n=this.asn1Array[t];e.push(n.tohex())}return 1==this.sortFlag&&e.sort(),this.hV=e.join(""),this.hV},"undefined"!=typeof e&&"undefined"!=typeof e.sortflag&&0==e.sortflag&&(this.sortFlag=!1)},Pr(En.asn1.DERSet,En.asn1.DERAbstractStructured),En.asn1.DERTaggedObject=function(e){En.asn1.DERTaggedObject.superclass.constructor.call(this);var t=En.asn1,n=xn,r=n.getV,i=(n.isASN1HEX,t.ASN1Util.newObject);this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.params={tag:"a0",explicit:!0},this.setASN1Object=function(e,t,n){this.params={tag:t,explicit:e,obj:n}},this.getFreshValueHex=function(){var e=this.params;if(void 0==e.explicit&&(e.explicit=!0),void 0!=e.tage&&(e.tag=e.tage,e.explicit=!0),void 0!=e.tagi&&(e.tag=e.tagi,e.explicit=!1),void 0!=e.str)this.hV=$n(e.str);else if(void 0!=e.hex)this.hV=e.hex;else{if(void 0==e.obj)throw new Error("str, hex nor obj not specified");var n;e.obj instanceof t.ASN1Object?n=e.obj.tohex():"object"==typeof e.obj&&(n=i(e.obj).tohex()),e.explicit?this.hV=n:this.hV=r(n,0)}return void 0==e.tag&&(e.tag="a0"),this.hT=e.tag,this.hTLV=null,this.isModified=!0,this.hV},this.setByParam=function(e){this.params=e},void 0!==e&&this.setByParam(e)},Pr(En.asn1.DERTaggedObject,En.asn1.ASN1Object);var En,Sn,kn,xn=new function(){};function An(e){for(var t=new Array,n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}function Cn(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t}function Tn(e){for(var t="",n=0;n<e.length;n++){var r=e[n].toString(16);1==r.length&&(r="0"+r),t+=r}return t}function Nn(e){return Tn(An(e))}function Rn(e){return h(Nn(e))}function On(e){return Ln(h(Nn(e)))}function In(e){return Cn(f(Dn(e)))}function Ln(e){return e=e.replace(/\=/g,""),e=e.replace(/\+/g,"-"),e=e.replace(/\//g,"_"),e}function Dn(e){return e.length%4==2?e+="==":e.length%4==3&&(e+="="),e=e.replace(/-/g,"+"),e=e.replace(/_/g,"/"),e}function Pn(e){return e.length%2==1&&(e="0"+e),Ln(h(e))}function Mn(e){return p(Dn(e))}function Bn(e){return h(sr(gr(e)))}function Fn(e){return decodeURIComponent(lr(p(e)))}function $n(e){return sr(gr(e)).toLowerCase()}function Un(e){try{return decodeURIComponent(lr(e))}catch(t){return null}}function jn(e){return Un(Vn(e))}function Vn(e){for(var t=e.match(/.{1,2}/g),n=[],r=0;r<t.length;r++){var i=parseInt(t[r],16);161<=i&&i<=191?(n.push("c2"),n.push(t[r])):192<=i&&i<=255?(n.push("c3"),n.push((i-64).toString(16))):n.push(t[r])}return n.join("")}function Kn(e){for(var t="",n=0;n<e.length-1;n+=2)t+=String.fromCharCode(parseInt(e.substr(n,2),16));return t}function Gn(e){for(var t="",n=0;n<e.length;n++)t+=("0"+e.charCodeAt(n).toString(16)).slice(-2);return t}function Hn(e){return h(e)}function zn(e){return qn(Hn(e),64)}function qn(e,t){return e=e.replace(new RegExp("(.{"+t+"})","g"),"$1\r\n"),e=e.replace(/\s+$/,""),e}function Xn(e){var t=e.replace(/[^0-9A-Za-z\/+=]*/g,""),n=p(t);return n}function Wn(e,t){return"-----BEGIN "+t+"-----\r\n"+qn(e,64)+"\r\n-----END "+t+"-----\r\n"}function Yn(e,t){return"-----BEGIN "+t+"-----\r\n"+qn(Hn(e),64)+"\r\n-----END "+t+"-----\r\n"}function Qn(e,t){if(-1==e.indexOf("-----BEGIN "))throw new Error("can't find PEM header");return void 0!==t?(e=e.replace(new RegExp("^[^]*-----BEGIN "+t+"-----"),""),e=e.replace(new RegExp("-----END "+t+"-----[^]*$"),"")):(e=e.replace(/^[^]*-----BEGIN [^-]+-----/,""),e=e.replace(/-----END [^-]+-----[^]*$/,"")),Xn(e)}function Jn(e){return-1==e.indexOf("-----BEGIN ")||-1==e.indexOf("-----END ")?null:(e=e.replace(/^[\s\S]*?-----BEGIN [^-]+-----/m,""),e=e.replace(/-----END [\s\S]+$/m,""),e=e.replace(/\s+/g,""),e.match(/^[0-9a-zA-Z+/=]+$/)?e:null)}function Zn(e){if(e.length%2!=0)throw"input is not even length";if(null==e.match(/^[0-9A-Fa-f]+$/))throw"input is not hexadecimal";for(var t=new ArrayBuffer(e.length/2),n=new DataView(t),r=0;r<e.length/2;r++)n.setUint8(r,parseInt(e.substr(2*r,2),16));return t}function er(e){for(var t="",n=new DataView(e),r=0;r<e.byteLength;r++)t+=("00"+n.getUint8(r).toString(16)).slice(-2);return t}function tr(e){var t,n,r,i,a,o,s,l,c,u;if(e=or(e),u=e.match(/^(\d{4})(\d\d)(\d\d)(\d\d)(\d\d)(\d\d)(|\.\d+)Z$/),u)return t=parseInt(u[1]),n=parseInt(u[2])-1,r=parseInt(u[3]),i=parseInt(u[4]),a=parseInt(u[5]),o=parseInt(u[6]),s=0,l=u[7],""!==l&&(c=(l.substr(1)+"00").substr(0,3),s=parseInt(c)),Date.UTC(t,n,r,i,a,o,s);throw new Error("unsupported zulu format: "+e)}function nr(e){var t=new Date(e),n=("0000"+t.getUTCFullYear()).slice(-4),r=("00"+(t.getUTCMonth()+1)).slice(-2),i=("00"+t.getUTCDate()).slice(-2),a=("00"+t.getUTCHours()).slice(-2),o=("00"+t.getUTCMinutes()).slice(-2),s=("00"+t.getUTCSeconds()).slice(-2),l=("000"+t.getUTCMilliseconds()).slice(-3);return l=l.replace(/0+$/,""),l=""!=l?"."+l:l,n+r+i+a+o+s+l+"Z"}function rr(e){return Math.round(tr(e)/1e3)}function ir(e){return new Date(tr(e))}function ar(e,t,n){var r,i=e.getUTCFullYear();if(t){if(i<1950||2049<i)throw"not proper year for UTCTime: "+i;r=(""+i).slice(-2)}else r=("000"+i).slice(-4);if(r+=("0"+(e.getUTCMonth()+1)).slice(-2),r+=("0"+e.getUTCDate()).slice(-2),r+=("0"+e.getUTCHours()).slice(-2),r+=("0"+e.getUTCMinutes()).slice(-2),r+=("0"+e.getUTCSeconds()).slice(-2),n){var a=e.getUTCMilliseconds();0!==a&&(a=("00"+a).slice(-3),a=a.replace(/0+$/g,""),r+="."+a)}return r+="Z",r}function or(e){return e.match(/^[0-9]{12}Z$/)||e.match(/^[0-9]{12}[.][0-9]*Z$/)?e.match(/^[0-4]/)?"20"+e:"19"+e:e}function sr(e){return e.replace(/%/g,"")}function lr(e){return e.replace(/(..)/g,"%$1")}function cr(e){var t="malformed IPv6 address";if(!e.match(/^[0-9A-Fa-f:]+$/))throw t;e=e.toLowerCase();var n=e.split(":").length-1;if(n<2)throw t;var r=":".repeat(7-n+2);e=e.replace("::",r);var i=e.split(":");if(8!=i.length)throw t;for(var a=0;a<8;a++)i[a]=("0000"+i[a]).slice(-4);return i.join("")}function ur(e){if(!e.match(/^[0-9A-Fa-f]{32}$/))throw new Error("malformed IPv6 address: "+e);e=e.toLowerCase();var t=e.match(/.{1,4}/g);t=t.map(function(e){return e.replace(/^0+/,"")}),t=t.map(function(e){return""==e?"0":e}),e=":"+t.join(":")+":";var n=e.match(/:(0:){2,}/g);if(null==n)return e.slice(1,-1);var r=n.sort().slice(-1)[0];return e=e.replace(r.substr(0,r.length-1),":"),"::"!=e.substr(0,2)&&(e=e.substr(1)),"::"!=e.substr(-2,2)&&(e=e.substr(0,e.length-1)),e}function dr(e){var t,n=new Error("malformed hex value");if(!e.match(/^([0-9A-Fa-f][0-9A-Fa-f]){1,}$/))throw n;if(8==e.length)try{return t=parseInt(e.substr(0,2),16)+"."+parseInt(e.substr(2,2),16)+"."+parseInt(e.substr(4,2),16)+"."+parseInt(e.substr(6,2),16),t}catch(r){throw n}else if(16==e.length)try{return dr(e.substr(0,8))+"/"+hr(e.substr(8))}catch(r){throw n}else{if(32==e.length)return ur(e);if(64!=e.length)return e;try{return ur(e.substr(0,32))+"/"+hr(e.substr(32))}catch(r){throw n}}}function hr(e){var t,n=new Error("malformed mask");try{t=new v(e,16).toString(2)}catch(r){throw n}if(!t.match(/^1*0*$/))throw n;return t.replace(/0+$/,"").length}function pr(e){var t=new Error("malformed IP address");if(e=e.toLowerCase(e),!e.match(/^[0-9a-f.:/]+$/))throw t;if(!e.match(/^[0-9.]+$/)){if(e.match(/^[0-9.]+\/[0-9]+$/)){var n=e.split("/");return pr(n[0])+fr(parseInt(n[1]),32)}if(e.match(/^[0-9a-f:]+$/)&&-1!==e.indexOf(":"))return cr(e);if(e.match(/^[0-9a-f:]+\/[0-9]+$/)&&-1!==e.indexOf(":")){n=e.split("/");return cr(n[0])+fr(parseInt(n[1]),128)}throw t}var r=e.split(".");if(4!==r.length)throw t;var i="";try{for(var a=0;a<4;a++){var o=parseInt(r[a]);i+=("0"+o.toString(16)).slice(-2)}return i}catch(s){throw t}}function fr(e,t){if(32==t&&0==e)return"00000000";if(128==t&&0==e)return"00000000000000000000000000000000";var n=Array(e+1).join("1")+Array(t-e+1).join("0");return new v(n,2).toString(16)}function mr(e){function t(e){var t=parseInt(e.substr(0,2),16),n=parseInt(e.substr(2),16);if(0==t&n<128)return String.fromCharCode(n);if(t<8){var r=192|(7&t)<<3|(192&n)>>6,i=128|63&n;return Un(r.toString(16)+i.toString(16))}r=224|(240&t)>>4,i=128|(15&t)<<2|(192&n)>>6;var a=128|63&n;return Un(r.toString(16)+i.toString(16)+a.toString(16))}var n=e.match(/.{4}/g),r=n.map(t);return r.join("")}function gr(e){for(var t=encodeURIComponent(e),n="",r=0;r<t.length;r++)"%"==t[r]?(n+=t.substr(r,3),r+=2):n=n+"%"+Nn(t[r]);return n}function vr(e){return e=e.replace(/\r\n/gm,"\n"),e}function br(e){return e=e.replace(/\r\n/gm,"\n"),e=e.replace(/\n/gm,"\r\n"),e}function yr(e){return!(e.length%2!=0||!e.match(/^[0-9a-f]+$/)&&!e.match(/^[0-9A-F]+$/))}function _r(e){return!!e.match(/^[0-9A-Za-z-_.]+$/)}function wr(e){return e.length%2==1?"0"+e:e.substr(0,1)>"7"?"00"+e:e}function Er(e){e=e.replace(/^\s*\[\s*/,""),e=e.replace(/\s*\]\s*$/,""),e=e.replace(/\s*/g,"");try{var t=e.split(/,/).map(function(e,t,n){var r=parseInt(e);if(r<0||255<r)throw"integer not in range 0-255";var i=("00"+r.toString(16)).slice(-2);return i}).join("");return t}catch(n){throw"malformed integer array string: "+n}}xn.getLblen=function(e,t){if("8"!=e.substr(t+2,1))return 1;var n=parseInt(e.substr(t+3,1));return 0==n?-1:0<n&&n<10?n+1:-2},xn.getL=function(e,t){var n=xn.getLblen(e,t);return n<1?"":e.substr(t+2,2*n)},xn.getVblen=function(e,t){var n,r;return n=xn.getL(e,t),""==n?-1:(r="8"===n.substr(0,1)?new v(n.substr(2),16):new v(n,16),r.intValue())},xn.getVidx=function(e,t){var n=xn.getLblen(e,t);return n<0?n:t+2*(n+1)},xn.getV=function(e,t){var n=xn.getVidx(e,t),r=xn.getVblen(e,t);return e.substr(n,2*r)},xn.getTLV=function(e,t){return e.substr(t,2)+xn.getL(e,t)+xn.getV(e,t)},xn.getTLVblen=function(e,t){return 2+2*xn.getLblen(e,t)+2*xn.getVblen(e,t)},xn.getNextSiblingIdx=function(e,t){var n=xn.getVidx(e,t),r=xn.getVblen(e,t);return n+2*r},xn.getChildIdx=function(e,t){var n,r,i,a=xn,o=[];n=a.getVidx(e,t),r=2*a.getVblen(e,t),"03"==e.substr(t,2)&&(n+=2,r-=2),i=0;var s=n;while(i<=r){var l=a.getTLVblen(e,s);if(i+=l,i<=r&&o.push(s),s+=l,i>=r)break}return o},xn.getNthChildIdx=function(e,t,n){var r=xn.getChildIdx(e,t);return r[n]},xn.getIdxbyList=function(e,t,n,r){var i,a,o=xn;return 0==n.length?void 0!==r&&e.substr(t,2)!==r?-1:t:(i=n.shift(),a=o.getChildIdx(e,t),i>=a.length?-1:o.getIdxbyList(e,a[i],n,r))},xn.getIdxbyListEx=function(e,t,n,r){var i,a,o=xn;if(0==n.length)return void 0!==r&&e.substr(t,2)!==r?-1:t;i=n.shift(),a=o.getChildIdx(e,t);for(var s=0,l=0;l<a.length;l++){var c=e.substr(a[l],2);if("number"==typeof i&&!o.isContextTag(c)&&s==i||"string"==typeof i&&o.isContextTag(c,i))return o.getIdxbyListEx(e,a[l],n,r);o.isContextTag(c)||s++}return-1},xn.getTLVbyList=function(e,t,n,r){var i=xn,a=i.getIdxbyList(e,t,n,r);return-1==a||a>=e.length?null:i.getTLV(e,a)},xn.getTLVbyListEx=function(e,t,n,r){var i=xn,a=i.getIdxbyListEx(e,t,n,r);return-1==a?null:i.getTLV(e,a)},xn.getVbyList=function(e,t,n,r,i){var a,o,s=xn;return a=s.getIdxbyList(e,t,n,r),-1==a||a>=e.length?null:(o=s.getV(e,a),!0===i&&(o=o.substr(2)),o)},xn.getVbyListEx=function(e,t,n,r,i){var a,o,s=xn;return a=s.getIdxbyListEx(e,t,n,r),-1==a?null:(o=s.getV(e,a),"03"==e.substr(a,2)&&!1!==i&&(o=o.substr(2)),o)},xn.getInt=function(e,t,n){void 0==n&&(n=-1);try{var r=e.substr(t,2);if("02"!=r&&"03"!=r)return n;var i=xn.getV(e,t);return"02"==r?parseInt(i,16):Nr(i)}catch(a){return n}},xn.getOID=function(e,t,n){void 0==n&&(n=null);try{if("06"!=e.substr(t,2))return n;var r=xn.getV(e,t);return xr(r)}catch(i){return n}},xn.getOIDName=function(e,t,n){void 0==n&&(n=null);try{var r=xn.getOID(e,t,n);if(r==n)return n;var i=En.asn1.x509.OID.oid2name(r);return""==i?r:i}catch(a){return n}},xn.getString=function(e,t,n){void 0==n&&(n=null);try{var r=xn.getV(e,t);return Kn(r)}catch(i){return n}},xn.hextooidstr=function(e){var t=function(e,t){return e.length>=t?e:new Array(t-e.length+1).join("0")+e},n=[],r=e.substr(0,2),i=parseInt(r,16);n[0]=new String(Math.floor(i/40)),n[1]=new String(i%40);for(var a=e.substr(2),o=[],s=0;s<a.length/2;s++)o.push(parseInt(a.substr(2*s,2),16));var l=[],c="";for(s=0;s<o.length;s++)128&o[s]?c+=t((127&o[s]).toString(2),7):(c+=t((127&o[s]).toString(2),7),l.push(new String(parseInt(c,2))),c="");var u=n.join(".");return l.length>0&&(u=u+"."+l.join(".")),u},xn.dump=function(e,t,n,r){var i=xn,a=i.getV,o=i.dump,s=i.getChildIdx,l=e;e instanceof En.asn1.ASN1Object&&(l=e.tohex());var c=function(e,t){if(e.length<=2*t)return e;var n=e.substr(0,t)+"..(total "+e.length/2+"bytes).."+e.substr(e.length-t,t);return n};void 0===t&&(t={ommit_long_octet:32}),void 0===n&&(n=0),void 0===r&&(r="");var u=t.ommit_long_octet,d=l.substr(n,2);if("01"==d){var h=a(l,n);return"00"==h?r+"BOOLEAN FALSE\n":r+"BOOLEAN TRUE\n"}if("02"==d){h=a(l,n);return r+"INTEGER "+c(h,u)+"\n"}if("03"==d){h=a(l,n);if(i.isASN1HEX(h.substr(2))){var p=r+"BITSTRING, encapsulates\n";return p+=o(h.substr(2),t,0,r+" "),p}return r+"BITSTRING "+c(h,u)+"\n"}if("04"==d){h=a(l,n);if(i.isASN1HEX(h)){p=r+"OCTETSTRING, encapsulates\n";return p+=o(h,t,0,r+" "),p}return r+"OCTETSTRING "+c(h,u)+"\n"}if("05"==d)return r+"NULL\n";if("06"==d){var f=a(l,n),m=En.asn1.ASN1Util.oidHexToInt(f),g=En.asn1.x509.OID.oid2name(m),v=m.replace(/\./g," ");return""!=g?r+"ObjectIdentifier "+g+" ("+v+")\n":r+"ObjectIdentifier ("+v+")\n"}if("0a"==d)return r+"ENUMERATED "+parseInt(a(l,n))+"\n";if("0c"==d)return r+"UTF8String '"+Un(a(l,n))+"'\n";if("13"==d)return r+"PrintableString '"+Un(a(l,n))+"'\n";if("14"==d)return r+"TeletexString '"+Un(a(l,n))+"'\n";if("16"==d)return r+"IA5String '"+Un(a(l,n))+"'\n";if("17"==d)return r+"UTCTime "+Un(a(l,n))+"\n";if("18"==d)return r+"GeneralizedTime "+Un(a(l,n))+"\n";if("1a"==d)return r+"VisualString '"+Un(a(l,n))+"'\n";if("1e"==d)return r+"BMPString '"+mr(a(l,n))+"'\n";if("30"==d){if("3000"==l.substr(n,4))return r+"SEQUENCE {}\n";p=r+"SEQUENCE\n";var b=s(l,n),y=t;if((2==b.length||3==b.length)&&"06"==l.substr(b[0],2)&&"04"==l.substr(b[b.length-1],2)){g=i.oidname(a(l,b[0]));var _=JSON.parse(JSON.stringify(t));_.x509ExtName=g,y=_}for(var w=0;w<b.length;w++)p+=o(l,y,b[w],r+" ");return p}if("31"==d){for(p=r+"SET\n",b=s(l,n),w=0;w<b.length;w++)p+=o(l,t,b[w],r+" ");return p}d=parseInt(d,16);if(0!=(128&d)){var E=31&d;if(0!=(32&d)){for(p=r+"["+E+"]\n",b=s(l,n),w=0;w<b.length;w++)p+=o(l,t,b[w],r+" ");return p}h=a(l,n);if(xn.isASN1HEX(h)){p=r+"["+E+"]\n";return p+=o(h,t,0,r+" "),p}("68747470"==h.substr(0,8)||"subjectAltName"===t.x509ExtName&&2==E)&&(h=Un(h));p=r+"["+E+"] "+h+"\n";return p}return r+"UNKNOWN("+d+") "+a(l,n)+"\n"},xn.parse=function(e){var t=xn,n=t.parse,r=t.isASN1HEX,i=t.getV,a=t.getTLV,o=t.getChildIdx,s=En.asn1,l=s.ASN1Util.oidHexToInt,c=s.x509.OID.oid2name,u=Un,d=mr,h=jn,p={"0c":"utf8str",12:"numstr",13:"prnstr",14:"telstr",16:"ia5str",17:"utctime",18:"gentime","1a":"visstr","1e":"bmpstr",30:"seq",31:"set"},f=function(e){for(var t=[],r=o(e,0),i=0;i<r.length;i++){var s=r[i],l=a(e,s),c=n(l);t.push(c)}return t},m=e.substr(0,2),g={},v=i(e,0);if("01"==m)return"0101ff"==e?{bool:!0}:{bool:!1};if("02"==m)return{int:{hex:v}};if("03"==m)try{if("00"!=v.substr(0,2))throw"not encap";var b=v.substr(2);if(!r(b))throw"not encap";return{bitstr:{obj:n(b)}}}catch(Pt){var y=null;return v.length<=10&&(y=Or(v)),null==y?{bitstr:{hex:v}}:{bitstr:{bin:y}}}else if("04"==m)try{if(!r(v))throw"not encap";return{octstr:{obj:n(v)}}}catch(Pt){return{octstr:{hex:v}}}else{if("05"==m)return{null:""};if("06"==m){var _=l(v),w=c(_);return""==w?{oid:_}:{oid:w}}if("0a"==m)return v.length>4?{enum:{hex:v}}:{enum:parseInt(v,16)};if("30"==m||"31"==m)return g[p[m]]=f(e),g;if("14"==m){var E=h(v);return g[p[m]]={str:E},g}if("1e"==m){E=d(v);return g[p[m]]={str:E},g}if(-1!=":0c:12:13:16:17:18:1a:".indexOf(m)){E=u(v);return g[p[m]]={str:E},g}if(m.match(/^8[0-9]$/)){E=u(v);return null==E|""==E||null!=E.match(/[\x00-\x1F\x7F-\x9F]/)||null!=E.match(/[\u0000-\u001F\u0080–\u009F]/)?{tag:{tag:m,explicit:!1,hex:v}}:{tag:{tag:m,explicit:!1,str:E}}}if(!m.match(/^a[0-9]$/)){var S=new En.asn1.ASN1Object;S.hV=v;var k=S.getLengthHexFromValue();return{asn1:{tlv:m+k+v}}}try{if(!r(v))throw new Error("not encap");return{tag:{tag:m,explicit:!0,obj:n(v)}}}catch(Pt){return{tag:{tag:m,explicit:!0,hex:v}}}}},xn.isContextTag=function(e,t){var n,r;e=e.toLowerCase();try{n=parseInt(e,16)}catch(a){return-1}if(void 0===t)return 128==(192&n);try{var i=t.match(/^\[[0-9]+\]$/);return null!=i&&(r=parseInt(t.substr(1,t.length-1),10),!(r>31)&&(128==(192&n)&&(31&n)==r))}catch(a){return!1}},xn.isASN1HEX=function(e){var t=xn;if(e.length%2==1)return!1;var n=t.getVblen(e,0),r=e.substr(0,2),i=t.getL(e,0),a=e.length-r.length-i.length;return a==2*n},xn.checkStrictDER=function(e,t,n,r,i){var a=xn;if(void 0===n){if("string"!=typeof e)throw new Error("not hex string");if(e=e.toLowerCase(),!En.lang.String.isHex(e))throw new Error("not hex string");n=e.length,r=e.length/2,i=r<128?1:Math.ceil(r.toString(16))+1}var o=a.getL(e,t);if(o.length>2*i)throw new Error("L of TLV too long: idx="+t);var s=a.getVblen(e,t);if(s>r)throw new Error("value of L too long than hex: idx="+t);var l=a.getTLV(e,t),c=l.length-2-a.getL(e,t).length;if(c!==2*s)throw new Error("V string length and L's value not the same:"+c+"/"+2*s);if(0===t&&e.length!=l.length)throw new Error("total length and TLV length unmatch:"+e.length+"!="+l.length);var u=e.substr(t,2);if("02"===u){var d=a.getVidx(e,t);if("00"==e.substr(d,2)&&e.charCodeAt(d+2)<56)throw new Error("not least zeros for DER INTEGER")}if(32&parseInt(u,16)){for(var h=a.getVblen(e,t),p=0,f=a.getChildIdx(e,t),m=0;m<f.length;m++){var g=a.getTLV(e,f[m]);p+=g.length,a.checkStrictDER(e,f[m],n,r,i)}if(2*h!=p)throw new Error("sum of children's TLV length and L unmatch: "+2*h+"!="+p)}},xn.oidname=function(e){var t=En.asn1;En.lang.String.isHex(e)&&(e=t.ASN1Util.oidHexToInt(e));var n=t.x509.OID.oid2name(e);return""===n&&(n=e),n},"undefined"!=typeof En&&En||(En={}),"undefined"!=typeof En.asn1&&En.asn1||(En.asn1={}),"undefined"!=typeof En.asn1.x509&&En.asn1.x509||(En.asn1.x509={}),En.asn1.x509.Certificate=function(e){En.asn1.x509.Certificate.superclass.constructor.call(this);var t=En,n=t.asn1,r=n.DERBitString,i=n.DERSequence,a=n.x509,o=a.TBSCertificate,s=a.AlgorithmIdentifier;this.params=void 0,this.setByParam=function(e){this.params=e},this.sign=function(){var e=this.params,t=e.sigalg;void 0!=e.sigalg.name&&(t=e.sigalg.name);var n=e.tbsobj.tohex(),r=new En.crypto.Signature({alg:t});r.init(e.cakey),r.updateHex(n),e.sighex=r.sign()},this.getPEM=function(){return Yn(this.tohex(),"CERTIFICATE")},this.tohex=function(){var e=this.params;if(void 0!=e.tbsobj&&null!=e.tbsobj||(e.tbsobj=new o(e)),void 0==e.sighex&&void 0!=e.cakey&&this.sign(),void 0==e.sighex)throw new Error("sighex or cakey parameter not defined");var t=[];t.push(e.tbsobj),t.push(new s({name:e.sigalg})),t.push(new r({hex:"00"+e.sighex}));var n=new i({array:t});return n.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&(this.params=e)},Pr(En.asn1.x509.Certificate,En.asn1.ASN1Object),En.asn1.x509.TBSCertificate=function(e){En.asn1.x509.TBSCertificate.superclass.constructor.call(this);var t=En,n=t.asn1,r=n.x509,i=n.DERTaggedObject,a=n.DERInteger,o=n.DERSequence,s=r.AlgorithmIdentifier,l=r.Time,c=r.X500Name,u=r.Extensions,d=r.SubjectPublicKeyInfo;this.params=null,this.setByParam=function(e){this.params=e},this.tohex=function(){var e=[],t=this.params;if(void 0!=t.version||1!=t.version){var n=2;void 0!=t.version&&(n=t.version-1);var r=new i({obj:new a({int:n})});e.push(r)}e.push(new a(t.serial)),e.push(new s({name:t.sigalg})),e.push(new c(t.issuer)),e.push(new o({array:[new l(t.notbefore),new l(t.notafter)]})),e.push(new c(t.subject)),e.push(new d(Mr.getKey(t.sbjpubkey))),void 0!==t.ext&&t.ext.length>0&&e.push(new i({tag:"a3",obj:new u(t.ext)}));var h=new En.asn1.DERSequence({array:e});return h.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},Pr(En.asn1.x509.TBSCertificate,En.asn1.ASN1Object),En.asn1.x509.Extensions=function(e){En.asn1.x509.Extensions.superclass.constructor.call(this);var t=En,n=t.asn1,r=n.DERSequence,i=n.x509;this.aParam=[],this.setByParam=function(e){this.aParam=e},this.tohex=function(){for(var e=[],t=0;t<this.aParam.length;t++){var n=this.aParam[t],a=n.extname,o=null;if(void 0!=n.extn)o=new i.PrivateExtension(n);else if("subjectKeyIdentifier"==a)o=new i.SubjectKeyIdentifier(n);else if("keyUsage"==a)o=new i.KeyUsage(n);else if("subjectAltName"==a)o=new i.SubjectAltName(n);else if("issuerAltName"==a)o=new i.IssuerAltName(n);else if("basicConstraints"==a)o=new i.BasicConstraints(n);else if("nameConstraints"==a)o=new i.NameConstraints(n);else if("cRLDistributionPoints"==a)o=new i.CRLDistributionPoints(n);else if("certificatePolicies"==a)o=new i.CertificatePolicies(n);else if("policyMappings"==a)o=new i.PolicyMappings(n);else if("policyConstraints"==a)o=new i.PolicyConstraints(n);else if("inhibitAnyPolicy"==a)o=new i.InhibitAnyPolicy(n);else if("authorityKeyIdentifier"==a)o=new i.AuthorityKeyIdentifier(n);else if("extKeyUsage"==a)o=new i.ExtKeyUsage(n);else if("authorityInfoAccess"==a)o=new i.AuthorityInfoAccess(n);else if("cRLNumber"==a)o=new i.CRLNumber(n);else if("cRLReason"==a)o=new i.CRLReason(n);else if("ocspNonce"==a)o=new i.OCSPNonce(n);else if("ocspNoCheck"==a)o=new i.OCSPNoCheck(n);else if("adobeTimeStamp"==a)o=new i.AdobeTimeStamp(n);else{if("subjectDirectoryAttributes"!=a)throw new Error("extension not supported:"+JSON.stringify(n));o=new i.SubjectDirectoryAttributes(n)}null!=o&&e.push(o)}var s=new r({array:e});return s.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(En.asn1.x509.Extensions,En.asn1.ASN1Object),En.asn1.x509.Extension=function(e){En.asn1.x509.Extension.superclass.constructor.call(this);var t=En,n=t.asn1,r=n.DERObjectIdentifier,i=n.DEROctetString,a=(n.DERBitString,n.DERBoolean),o=n.DERSequence;this.tohex=function(){var e=new r({oid:this.oid}),t=new i({hex:this.getExtnValueHex()}),n=new Array;n.push(e),this.critical&&n.push(new a),n.push(t);var s=new o({array:n});return s.tohex()},this.getEncodedHex=function(){return this.tohex()},this.critical=!1,void 0!==e&&void 0!==e.critical&&(this.critical=e.critical)},Pr(En.asn1.x509.Extension,En.asn1.ASN1Object),En.asn1.x509.KeyUsage=function(e){En.asn1.x509.KeyUsage.superclass.constructor.call(this,e);var t=Error,n={digitalSignature:0,nonRepudiation:1,keyEncipherment:2,dataEncipherment:3,keyAgreement:4,keyCertSign:5,cRLSign:6,encipherOnly:7,decipherOnly:8};this.getExtnValueHex=function(){var e=this.getBinValue();return this.asn1ExtnValue=new En.asn1.DERBitString({bin:e}),this.asn1ExtnValue.tohex()},this.getBinValue=function(){var e=this.params;if("object"!=typeof e||"object"!=typeof e.names&&"string"!=typeof e.bin)throw new t("parameter not yet set");if(void 0!=e.names)return Lr(e.names,n);if(void 0!=e.bin)return e.bin;throw new t("parameter not set properly")},this.oid="2.5.29.15",void 0!==e&&(this.params=e)},Pr(En.asn1.x509.KeyUsage,En.asn1.x509.Extension),En.asn1.x509.BasicConstraints=function(e){En.asn1.x509.BasicConstraints.superclass.constructor.call(this,e);var t=En.asn1,n=t.DERBoolean,r=t.DERInteger,i=t.DERSequence;this.getExtnValueHex=function(){var e=new Array;this.cA&&e.push(new n),this.pathLen>-1&&e.push(new r({int:this.pathLen}));var t=new i({array:e});return this.asn1ExtnValue=t,this.asn1ExtnValue.tohex()},this.oid="2.5.29.19",this.cA=!1,this.pathLen=-1,void 0!==e&&(void 0!==e.cA&&(this.cA=e.cA),void 0!==e.pathLen&&(this.pathLen=e.pathLen))},Pr(En.asn1.x509.BasicConstraints,En.asn1.x509.Extension),En.asn1.x509.CRLDistributionPoints=function(e){En.asn1.x509.CRLDistributionPoints.superclass.constructor.call(this,e);var t=En,n=t.asn1,r=n.x509;this.getExtnValueHex=function(){return this.asn1ExtnValue.tohex()},this.setByDPArray=function(e){for(var t=[],i=0;i<e.length;i++)if(e[i]instanceof En.asn1.ASN1Object)t.push(e[i]);else{var a=new r.DistributionPoint(e[i]);t.push(a)}this.asn1ExtnValue=new n.DERSequence({array:t})},this.setByOneURI=function(e){var t=new r.DistributionPoint({fulluri:e});this.setByDPArray([t])},this.oid="2.5.29.31",void 0!==e&&(void 0!==e.array?this.setByDPArray(e.array):void 0!==e.uri&&this.setByOneURI(e.uri))},Pr(En.asn1.x509.CRLDistributionPoints,En.asn1.x509.Extension),En.asn1.x509.DistributionPoint=function(e){En.asn1.x509.DistributionPoint.superclass.constructor.call(this);var t=En,n=t.asn1,r=n.x509.DistributionPointName;this.tohex=function(){var e=new n.DERSequence;if(null!=this.asn1DP){var t=new n.DERTaggedObject({explicit:!0,tag:"a0",obj:this.asn1DP});e.appendASN1Object(t)}return this.hTLV=e.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&(void 0!==e.dpobj?this.asn1DP=e.dpobj:void 0!==e.dpname?this.asn1DP=new r(e.dpname):void 0!==e.fulluri&&(this.asn1DP=new r({full:[{uri:e.fulluri}]})))},Pr(En.asn1.x509.DistributionPoint,En.asn1.ASN1Object),En.asn1.x509.DistributionPointName=function(e){En.asn1.x509.DistributionPointName.superclass.constructor.call(this);var t=En,n=t.asn1,r=n.DERTaggedObject;if(this.tohex=function(){if("full"!=this.type)throw new Error("currently type shall be 'full': "+this.type);return this.asn1Obj=new r({explicit:!1,tag:this.tag,obj:this.asn1V}),this.hTLV=this.asn1Obj.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e)if(n.x509.GeneralNames.prototype.isPrototypeOf(e))this.type="full",this.tag="a0",this.asn1V=e;else{if(void 0===e.full)throw new Error("This class supports GeneralNames only as argument");this.type="full",this.tag="a0",this.asn1V=new n.x509.GeneralNames(e.full)}},Pr(En.asn1.x509.DistributionPointName,En.asn1.ASN1Object),En.asn1.x509.CertificatePolicies=function(e){En.asn1.x509.CertificatePolicies.superclass.constructor.call(this,e);var t=En,n=t.asn1,r=n.x509,i=n.DERSequence,a=r.PolicyInformation;this.params=null,this.getExtnValueHex=function(){for(var e=[],t=0;t<this.params.array.length;t++)e.push(new a(this.params.array[t]));var n=new i({array:e});return this.asn1ExtnValue=n,this.asn1ExtnValue.tohex()},this.oid="2.5.29.32",void 0!==e&&(this.params=e)},Pr(En.asn1.x509.CertificatePolicies,En.asn1.x509.Extension),En.asn1.x509.PolicyInformation=function(e){En.asn1.x509.PolicyInformation.superclass.constructor.call(this,e);var t=En.asn1,n=t.DERSequence,r=t.DERObjectIdentifier,i=t.x509.PolicyQualifierInfo;this.params=null,this.tohex=function(){if(void 0===this.params.policyoid&&void 0===this.params.array)throw new Error("parameter oid and array missing");var e=[new r(this.params.policyoid)];if(void 0!==this.params.array){for(var t=[],a=0;a<this.params.array.length;a++)t.push(new i(this.params.array[a]));t.length>0&&e.push(new n({array:t}))}var o=new n({array:e});return o.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&(this.params=e)},Pr(En.asn1.x509.PolicyInformation,En.asn1.ASN1Object),En.asn1.x509.PolicyQualifierInfo=function(e){En.asn1.x509.PolicyQualifierInfo.superclass.constructor.call(this,e);var t=En.asn1,n=t.DERSequence,r=t.DERIA5String,i=t.DERObjectIdentifier,a=t.x509.UserNotice;this.params=null,this.tohex=function(){if(void 0!==this.params.cps){var e=new n({array:[new i({oid:"1.3.6.1.5.5.7.2.1"}),new r({str:this.params.cps})]});return e.tohex()}if(void 0!=this.params.unotice){e=new n({array:[new i({oid:"1.3.6.1.5.5.7.2.2"}),new a(this.params.unotice)]});return e.tohex()}},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&(this.params=e)},Pr(En.asn1.x509.PolicyQualifierInfo,En.asn1.ASN1Object),En.asn1.x509.UserNotice=function(e){En.asn1.x509.UserNotice.superclass.constructor.call(this,e);var t=En.asn1.DERSequence,n=(En.asn1.DERInteger,En.asn1.x509.DisplayText),r=En.asn1.x509.NoticeReference;this.params=null,this.tohex=function(){var e=[];void 0!==this.params.noticeref&&e.push(new r(this.params.noticeref)),void 0!==this.params.exptext&&e.push(new n(this.params.exptext));var i=new t({array:e});return i.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&(this.params=e)},Pr(En.asn1.x509.UserNotice,En.asn1.ASN1Object),En.asn1.x509.NoticeReference=function(e){En.asn1.x509.NoticeReference.superclass.constructor.call(this,e);var t=En.asn1.DERSequence,n=En.asn1.DERInteger,r=En.asn1.x509.DisplayText;this.params=null,this.tohex=function(){var e=[];if(void 0!==this.params.org&&e.push(new r(this.params.org)),void 0!==this.params.noticenum){for(var i=[],a=this.params.noticenum,o=0;o<a.length;o++)i.push(new n(a[o]));e.push(new t({array:i}))}if(0==e.length)throw new Error("parameter is empty");var s=new t({array:e});return s.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&(this.params=e)},Pr(En.asn1.x509.NoticeReference,En.asn1.ASN1Object),En.asn1.x509.DisplayText=function(e){En.asn1.x509.DisplayText.superclass.constructor.call(this,e),this.hT="0c",void 0!==e&&("ia5"===e.type?this.hT="16":"vis"===e.type?this.hT="1a":"bmp"===e.type&&(this.hT="1e"))},Pr(En.asn1.x509.DisplayText,En.asn1.DERAbstractString),En.asn1.x509.PolicyMappings=function(e){En.asn1.x509.PolicyMappings.superclass.constructor.call(this,e);var t=En,n=t.asn1,r=(n.x509,n.ASN1Util.newObject);this.params=null,this.getExtnValueHex=function(){for(var e=this.params,t=[],n=0;n<e.array.length;n++){var i=e.array[n];t.push({seq:[{oid:i[0]},{oid:i[1]}]})}return this.asn1ExtnValue=r({seq:t}),this.asn1ExtnValue.tohex()},this.oid="2.5.29.33",void 0!==e&&(this.params=e)},Pr(En.asn1.x509.PolicyMappings,En.asn1.x509.Extension),En.asn1.x509.PolicyConstraints=function(e){En.asn1.x509.PolicyConstraints.superclass.constructor.call(this,e);var t=En,n=t.asn1,r=(n.x509,n.ASN1Util.newObject);this.params=null,this.getExtnValueHex=function(){var e=this.params,t=[];return void 0!=e.reqexp&&t.push({tag:{tagi:"80",obj:{int:e.reqexp}}}),void 0!=e.inhibit&&t.push({tag:{tagi:"81",obj:{int:e.inhibit}}}),this.asn1ExtnValue=r({seq:t}),this.asn1ExtnValue.tohex()},this.oid="2.5.29.36",void 0!==e&&(this.params=e)},Pr(En.asn1.x509.PolicyConstraints,En.asn1.x509.Extension),En.asn1.x509.InhibitAnyPolicy=function(e){En.asn1.x509.InhibitAnyPolicy.superclass.constructor.call(this,e);var t=En,n=t.asn1,r=(n.x509,n.ASN1Util.newObject);this.params=null,this.getExtnValueHex=function(){return this.asn1ExtnValue=r({int:this.params.skip}),this.asn1ExtnValue.tohex()},this.oid="2.5.29.54",void 0!==e&&(this.params=e)},Pr(En.asn1.x509.InhibitAnyPolicy,En.asn1.x509.Extension),En.asn1.x509.NameConstraints=function(e){En.asn1.x509.NameConstraints.superclass.constructor.call(this,e);var t=En,n=t.asn1,r=n.x509,i=n.ASN1Util.newObject,a=r.GeneralSubtree;this.params=null,this.getExtnValueHex=function(){var e=this.params,t=[];if(void 0!=e.permit&&void 0!=e.permit.length){for(var n=[],r=0;r<e.permit.length;r++)n.push(new a(e.permit[r]));t.push({tag:{tagi:"a0",obj:{seq:n}}})}if(void 0!=e.exclude&&void 0!=e.exclude.length){var o=[];for(r=0;r<e.exclude.length;r++)o.push(new a(e.exclude[r]));t.push({tag:{tagi:"a1",obj:{seq:o}}})}return this.asn1ExtnValue=i({seq:t}),this.asn1ExtnValue.tohex()},this.oid="2.5.29.30",void 0!==e&&(this.params=e)},Pr(En.asn1.x509.NameConstraints,En.asn1.x509.Extension),En.asn1.x509.GeneralSubtree=function(e){En.asn1.x509.GeneralSubtree.superclass.constructor.call(this);var t=En.asn1,n=t.x509,r=n.GeneralName,i=t.ASN1Util.newObject;this.params=null,this.setByParam=function(e){this.params=e},this.tohex=function(){var e=this.params,t=[new r(e)];void 0!=e.min&&t.push({tag:{tagi:"80",obj:{int:e.min}}}),void 0!=e.max&&t.push({tag:{tagi:"81",obj:{int:e.max}}});var n=i({seq:t});return n.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},Pr(En.asn1.x509.GeneralSubtree,En.asn1.ASN1Object),En.asn1.x509.ExtKeyUsage=function(e){En.asn1.x509.ExtKeyUsage.superclass.constructor.call(this,e);var t=En,n=t.asn1;this.setPurposeArray=function(e){this.asn1ExtnValue=new n.DERSequence;for(var t=0;t<e.length;t++){var r=new n.DERObjectIdentifier(e[t]);this.asn1ExtnValue.appendASN1Object(r)}},this.getExtnValueHex=function(){return this.asn1ExtnValue.tohex()},this.oid="2.5.29.37",void 0!==e&&void 0!==e.array&&this.setPurposeArray(e.array)},Pr(En.asn1.x509.ExtKeyUsage,En.asn1.x509.Extension),En.asn1.x509.AuthorityKeyIdentifier=function(e){En.asn1.x509.AuthorityKeyIdentifier.superclass.constructor.call(this,e);var t=En,n=t.asn1,r=n.DERTaggedObject,i=n.x509.GeneralNames;t.crypto.Util.isKey;this.asn1KID=null,this.asn1CertIssuer=null,this.asn1CertSN=null,this.getExtnValueHex=function(){var e=new Array;this.asn1KID&&e.push(new r({explicit:!1,tag:"80",obj:this.asn1KID})),this.asn1CertIssuer&&e.push(new r({explicit:!1,tag:"a1",obj:new i([{dn:this.asn1CertIssuer}])})),this.asn1CertSN&&e.push(new r({explicit:!1,tag:"82",obj:this.asn1CertSN}));var t=new n.DERSequence({array:e});return this.asn1ExtnValue=t,this.asn1ExtnValue.tohex()},this.setKIDByParam=function(e){if(void 0!==e.str||void 0!==e.hex)this.asn1KID=new En.asn1.DEROctetString(e);else if("object"===typeof e&&En.crypto.Util.isKey(e)||"string"===typeof e&&-1!=e.indexOf("BEGIN ")){var t=e;"string"===typeof e&&(t=Mr.getKey(e));var n=Mr.getKeyID(t);this.asn1KID=new En.asn1.DEROctetString({hex:n})}},this.setCertIssuerByParam=function(e){void 0!==e.str||void 0!==e.ldapstr||void 0!==e.hex||void 0!==e.certsubject||void 0!==e.certissuer?this.asn1CertIssuer=new En.asn1.x509.X500Name(e):"string"===typeof e&&-1!=e.indexOf("BEGIN ")&&-1!=e.indexOf("CERTIFICATE")&&(this.asn1CertIssuer=new En.asn1.x509.X500Name({certissuer:e}))},this.setCertSNByParam=function(e){if(void 0!==e.str||void 0!==e.bigint||void 0!==e.hex)this.asn1CertSN=new En.asn1.DERInteger(e);else if("string"===typeof e&&-1!=e.indexOf("BEGIN ")&&e.indexOf("CERTIFICATE")){var t=new Ur;t.readCertPEM(e);var n=t.getSerialNumberHex();this.asn1CertSN=new En.asn1.DERInteger({hex:n})}},this.oid="2.5.29.35",void 0!==e&&(void 0!==e.kid&&this.setKIDByParam(e.kid),void 0!==e.issuer&&this.setCertIssuerByParam(e.issuer),void 0!==e.sn&&this.setCertSNByParam(e.sn),void 0!==e.issuersn&&"string"===typeof e.issuersn&&-1!=e.issuersn.indexOf("BEGIN ")&&e.issuersn.indexOf("CERTIFICATE")&&(this.setCertSNByParam(e.issuersn),this.setCertIssuerByParam(e.issuersn)))},Pr(En.asn1.x509.AuthorityKeyIdentifier,En.asn1.x509.Extension),En.asn1.x509.SubjectKeyIdentifier=function(e){En.asn1.x509.SubjectKeyIdentifier.superclass.constructor.call(this,e);var t=En,n=t.asn1,r=n.DEROctetString;this.asn1KID=null,this.getExtnValueHex=function(){return this.asn1ExtnValue=this.asn1KID,this.asn1ExtnValue.tohex()},this.setKIDByParam=function(e){if(void 0!==e.str||void 0!==e.hex)this.asn1KID=new r(e);else if("object"===typeof e&&En.crypto.Util.isKey(e)||"string"===typeof e&&-1!=e.indexOf("BEGIN")){var t=e;"string"===typeof e&&(t=Mr.getKey(e));var n=Mr.getKeyID(t);this.asn1KID=new En.asn1.DEROctetString({hex:n})}},this.oid="2.5.29.14",void 0!==e&&void 0!==e.kid&&this.setKIDByParam(e.kid)},Pr(En.asn1.x509.SubjectKeyIdentifier,En.asn1.x509.Extension),En.asn1.x509.AuthorityInfoAccess=function(e){En.asn1.x509.AuthorityInfoAccess.superclass.constructor.call(this,e),this.setAccessDescriptionArray=function(e){for(var t=new Array,n=En,r=n.asn1,i=r.DERSequence,a=r.DERObjectIdentifier,o=r.x509.GeneralName,s=0;s<e.length;s++){var l,c=e[s];if(void 0!==c.ocsp)l=new i({array:[new a({oid:"1.3.6.1.5.5.7.48.1"}),new o({uri:c.ocsp})]});else{if(void 0===c.caissuer)throw new Error("unknown AccessMethod parameter: "+JSON.stringify(c));l=new i({array:[new a({oid:"1.3.6.1.5.5.7.48.2"}),new o({uri:c.caissuer})]})}t.push(l)}this.asn1ExtnValue=new i({array:t})},this.getExtnValueHex=function(){return this.asn1ExtnValue.tohex()},this.oid="1.3.6.1.5.5.7.1.1",void 0!==e&&void 0!==e.array&&this.setAccessDescriptionArray(e.array)},Pr(En.asn1.x509.AuthorityInfoAccess,En.asn1.x509.Extension),En.asn1.x509.SubjectAltName=function(e){En.asn1.x509.SubjectAltName.superclass.constructor.call(this,e),this.setNameArray=function(e){this.asn1ExtnValue=new En.asn1.x509.GeneralNames(e)},this.getExtnValueHex=function(){return this.asn1ExtnValue.tohex()},this.oid="2.5.29.17",void 0!==e&&void 0!==e.array&&this.setNameArray(e.array)},Pr(En.asn1.x509.SubjectAltName,En.asn1.x509.Extension),En.asn1.x509.IssuerAltName=function(e){En.asn1.x509.IssuerAltName.superclass.constructor.call(this,e),this.setNameArray=function(e){this.asn1ExtnValue=new En.asn1.x509.GeneralNames(e)},this.getExtnValueHex=function(){return this.asn1ExtnValue.tohex()},this.oid="2.5.29.18",void 0!==e&&void 0!==e.array&&this.setNameArray(e.array)},Pr(En.asn1.x509.IssuerAltName,En.asn1.x509.Extension),En.asn1.x509.SubjectDirectoryAttributes=function(e){En.asn1.x509.SubjectDirectoryAttributes.superclass.constructor.call(this,e);var t=En.asn1,n=t.DERSequence,r=t.ASN1Util.newObject,i=t.x509.OID.name2oid;this.params=null,this.getExtnValueHex=function(){for(var e=[],t=0;t<this.params.array.length;t++){var a=this.params.array[t];if(void 0==a.attr||void 0==a.array){var o={seq:[{oid:"1.2.3.4"},{set:[{utf8str:"DE"}]}]};if("dateOfBirth"==a.attr)o.seq[0].oid=i(a.attr),o.seq[1].set[0]={gentime:a.str};else if("placeOfBirth"==a.attr)o.seq[0].oid=i(a.attr),o.seq[1].set[0]={utf8str:a.str};else if("gender"==a.attr)o.seq[0].oid=i(a.attr),o.seq[1].set[0]={prnstr:a.str};else if("countryOfCitizenship"==a.attr)o.seq[0].oid=i(a.attr),o.seq[1].set[0]={prnstr:a.str};else{if("countryOfResidence"!=a.attr)throw new Error("unsupported attribute: "+a.attr);o.seq[0].oid=i(a.attr),o.seq[1].set[0]={prnstr:a.str}}e.push(new r(o))}else{var s={seq:[{oid:a.attr},{set:a.array}]};e.push(r(s))}}var l=new n({array:e});return this.asn1ExtnValue=l,this.asn1ExtnValue.tohex()},this.oid="2.5.29.9",void 0!==e&&(this.params=e)},Pr(En.asn1.x509.SubjectDirectoryAttributes,En.asn1.x509.Extension),En.asn1.x509.PrivateExtension=function(e){En.asn1.x509.PrivateExtension.superclass.constructor.call(this,e);var t=En,n=t.lang.String.isHex,r=t.asn1,i=r.x509.OID.name2oid,a=r.ASN1Util.newObject;this.params=null,this.setByParam=function(e){this.oid=i(e.extname),this.params=e},this.getExtnValueHex=function(){if(void 0==this.params.extname||void 0==this.params.extn)throw new Error("extname or extnhex not specified");var e=this.params.extn;if("string"==typeof e&&n(e))return e;if("object"==typeof e)try{return a(e).tohex()}catch(t){}throw new Error("unsupported extn value")},void 0!=e&&this.setByParam(e)},Pr(En.asn1.x509.PrivateExtension,En.asn1.x509.Extension),En.asn1.x509.CRL=function(e){En.asn1.x509.CRL.superclass.constructor.call(this);var t=En,n=t.asn1,r=n.DERSequence,i=n.DERBitString,a=n.x509,o=a.AlgorithmIdentifier,s=a.TBSCertList;this.params=void 0,this.setByParam=function(e){this.params=e},this.sign=function(){var e=new s(this.params).tohex(),t=new En.crypto.Signature({alg:this.params.sigalg});t.init(this.params.cakey),t.updateHex(e);var n=t.sign();this.params.sighex=n},this.getPEM=function(){return Yn(this.tohex(),"X509 CRL")},this.tohex=function(){var e=this.params;if(void 0==e.tbsobj&&(e.tbsobj=new s(e)),void 0==e.sighex&&void 0!=e.cakey&&this.sign(),void 0==e.sighex)throw new Error("sighex or cakey parameter not defined");var t=[];t.push(e.tbsobj),t.push(new o({name:e.sigalg})),t.push(new i({hex:"00"+e.sighex}));var n=new r({array:t});return n.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&(this.params=e)},Pr(En.asn1.x509.CRL,En.asn1.ASN1Object),En.asn1.x509.TBSCertList=function(e){En.asn1.x509.TBSCertList.superclass.constructor.call(this);var t=En,n=t.asn1,r=n.DERInteger,i=n.DERSequence,a=n.DERTaggedObject,o=(n.DERObjectIdentifier,n.x509),s=o.AlgorithmIdentifier,l=o.Time,c=o.Extensions,u=o.X500Name;this.params=null,this.setByParam=function(e){this.params=e},this.getRevCertSequence=function(){for(var e=[],t=this.params.revcert,n=0;n<t.length;n++){var a=[new r(t[n].sn),new l(t[n].date)];void 0!=t[n].ext&&a.push(new c(t[n].ext)),e.push(new i({array:a}))}return new i({array:e})},this.tohex=function(){var e=[],t=this.params;if(void 0!=t.version){var n=t.version-1,o=new r({int:n});e.push(o)}if(e.push(new s({name:t.sigalg})),e.push(new u(t.issuer)),e.push(new l(t.thisupdate)),void 0!=t.nextupdate&&e.push(new l(t.nextupdate)),void 0!=t.revcert&&e.push(this.getRevCertSequence()),void 0!=t.ext){var d=new c(t.ext);e.push(new a({tag:"a0",explicit:!0,obj:d}))}var h=new i({array:e});return h.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},Pr(En.asn1.x509.TBSCertList,En.asn1.ASN1Object),En.asn1.x509.CRLEntry=function(e){En.asn1.x509.CRLEntry.superclass.constructor.call(this);var t=En,n=t.asn1;this.setCertSerial=function(e){this.sn=new n.DERInteger(e)},this.setRevocationDate=function(e){this.time=new n.x509.Time(e)},this.tohex=function(){var e=new n.DERSequence({array:[this.sn,this.time]});return this.TLV=e.tohex(),this.TLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&(void 0!==e.time&&this.setRevocationDate(e.time),void 0!==e.sn&&this.setCertSerial(e.sn))},Pr(En.asn1.x509.CRLEntry,En.asn1.ASN1Object),En.asn1.x509.CRLNumber=function(e){En.asn1.x509.CRLNumber.superclass.constructor.call(this,e),this.params=void 0,this.getExtnValueHex=function(){return this.asn1ExtnValue=new En.asn1.DERInteger(this.params.num),this.asn1ExtnValue.tohex()},this.oid="2.5.29.20",void 0!=e&&(this.params=e)},Pr(En.asn1.x509.CRLNumber,En.asn1.x509.Extension),En.asn1.x509.CRLReason=function(e){En.asn1.x509.CRLReason.superclass.constructor.call(this,e),this.params=void 0,this.getExtnValueHex=function(){return this.asn1ExtnValue=new En.asn1.DEREnumerated(this.params.code),this.asn1ExtnValue.tohex()},this.oid="2.5.29.21",void 0!=e&&(this.params=e)},Pr(En.asn1.x509.CRLReason,En.asn1.x509.Extension),En.asn1.x509.OCSPNonce=function(e){En.asn1.x509.OCSPNonce.superclass.constructor.call(this,e),this.params=void 0,this.getExtnValueHex=function(){return this.asn1ExtnValue=new En.asn1.DEROctetString(this.params),this.asn1ExtnValue.tohex()},this.oid="1.3.6.1.5.5.7.48.1.2",void 0!=e&&(this.params=e)},Pr(En.asn1.x509.OCSPNonce,En.asn1.x509.Extension),En.asn1.x509.OCSPNoCheck=function(e){En.asn1.x509.OCSPNoCheck.superclass.constructor.call(this,e),this.params=void 0,this.getExtnValueHex=function(){return this.asn1ExtnValue=new En.asn1.DERNull,this.asn1ExtnValue.tohex()},this.oid="1.3.6.1.5.5.7.48.1.5",void 0!=e&&(this.params=e)},Pr(En.asn1.x509.OCSPNoCheck,En.asn1.x509.Extension),En.asn1.x509.AdobeTimeStamp=function(e){En.asn1.x509.AdobeTimeStamp.superclass.constructor.call(this,e);var t=En,n=t.asn1,r=n.DERInteger,i=n.DERBoolean,a=n.DERSequence,o=n.x509.GeneralName;this.params=null,this.getExtnValueHex=function(){var e=this.params,t=[new r(1)];return t.push(new o({uri:e.uri})),void 0!=e.reqauth&&t.push(new i(e.reqauth)),this.asn1ExtnValue=new a({array:t}),this.asn1ExtnValue.tohex()},this.oid="1.2.840.113583.1.1.9.1",void 0!==e&&this.setByParam(e)},Pr(En.asn1.x509.AdobeTimeStamp,En.asn1.x509.Extension),En.asn1.x509.X500Name=function(e){En.asn1.x509.X500Name.superclass.constructor.call(this),this.asn1Array=[],this.paramArray=[],this.sRule="utf8";var t=En,n=t.asn1,r=n.x509,i=r.RDN;this.setByString=function(e,t){void 0!==t&&(this.sRule=t);var n=e.split("/");n.shift();for(var r=[],a=0;a<n.length;a++)if(n[a].match(/^[^=]+=.+$/))r.push(n[a]);else{var o=r.length-1;r[o]=r[o]+"/"+n[a]}for(a=0;a<r.length;a++)this.asn1Array.push(new i({str:r[a],rule:this.sRule}))},this.setByLdapString=function(e,t){void 0!==t&&(this.sRule=t);var n=r.X500Name.ldapToCompat(e);this.setByString(n,t)},this.setByObject=function(e,t){for(var n in void 0!==t&&(this.sRule=t),e)if(e.hasOwnProperty(n)){var r=new i({str:n+"="+e[n],rule:this.sRule});this.asn1Array?this.asn1Array.push(r):this.asn1Array=[r]}},this.setByParam=function(e){if(void 0!==e.rule&&(this.sRule=e.rule),void 0!==e.array)this.paramArray=e.array;else if(void 0!==e.str)this.setByString(e.str);else if(void 0!==e.ldapstr)this.setByLdapString(e.ldapstr);else if(void 0!==e.hex)this.hTLV=e.hex;else if(void 0!==e.certissuer){var t=new Ur;t.readCertPEM(e.certissuer),this.hTLV=t.getIssuerHex()}else if(void 0!==e.certsubject){t=new Ur;t.readCertPEM(e.certsubject),this.hTLV=t.getSubjectHex()}else"object"===typeof e&&void 0===e.certsubject&&void 0===e.certissuer&&this.setByObject(e)},this.tohex=function(){if("string"==typeof this.hTLV)return this.hTLV;if(0==this.asn1Array.length&&this.paramArray.length>0)for(var e=0;e<this.paramArray.length;e++){var t={array:this.paramArray[e]};"utf8"!=this.sRule&&(t.rule=this.sRule);var r=new i(t);this.asn1Array.push(r)}var a=new n.DERSequence({array:this.asn1Array});return this.hTLV=a.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},Pr(En.asn1.x509.X500Name,En.asn1.ASN1Object),En.asn1.x509.X500Name.compatToLDAP=function(e){if("/"!==e.substr(0,1))throw"malformed input";e=e.substr(1);var t=e.split("/");return t.reverse(),t=t.map(function(e){return e.replace(/,/,"\\,")}),t.join(",")},En.asn1.x509.X500Name.onelineToLDAP=function(e){return En.asn1.x509.X500Name.compatToLDAP(e)},En.asn1.x509.X500Name.ldapToCompat=function(e){for(var t=e.split(","),n=!1,r=[],i=0;t.length>0;i++){var a=t.shift();if(!0===n){var o=r.pop(),s=(o+","+a).replace(/\\,/g,",");r.push(s),n=!1}else r.push(a);"\\"===a.substr(-1,1)&&(n=!0)}return r=r.map(function(e){return e.replace("/","\\/")}),r.reverse(),"/"+r.join("/")},En.asn1.x509.X500Name.ldapToOneline=function(e){return En.asn1.x509.X500Name.ldapToCompat(e)},En.asn1.x509.RDN=function(e){En.asn1.x509.RDN.superclass.constructor.call(this),this.asn1Array=[],this.paramArray=[],this.sRule="utf8";var t=En.asn1.x509.AttributeTypeAndValue;this.setByParam=function(e){void 0!==e.rule&&(this.sRule=e.rule),void 0!==e.str&&this.addByMultiValuedString(e.str),void 0!==e.array&&(this.paramArray=e.array)},this.addByString=function(e){this.asn1Array.push(new En.asn1.x509.AttributeTypeAndValue({str:e,rule:this.sRule}))},this.addByMultiValuedString=function(e){for(var t=En.asn1.x509.RDN.parseString(e),n=0;n<t.length;n++)this.addByString(t[n])},this.tohex=function(){if(0==this.asn1Array.length&&this.paramArray.length>0)for(var e=0;e<this.paramArray.length;e++){var n=this.paramArray[e];void 0!==n.rule&&"utf8"!=this.sRule&&(n.rule=this.sRule);var r=new t(n);this.asn1Array.push(r)}var i=new En.asn1.DERSet({array:this.asn1Array});return this.TLV=i.tohex(),this.TLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},Pr(En.asn1.x509.RDN,En.asn1.ASN1Object),En.asn1.x509.RDN.parseString=function(e){for(var t=e.split(/\+/),n=!1,r=[],i=0;t.length>0;i++){var a=t.shift();if(!0===n){var o=r.pop(),s=(o+"+"+a).replace(/\\\+/g,"+");r.push(s),n=!1}else r.push(a);"\\"===a.substr(-1,1)&&(n=!0)}var l=!1,c=[];for(i=0;r.length>0;i++){a=r.shift();if(!0===l){var u=c.pop();if(a.match(/"$/)){s=(u+"+"+a).replace(/^([^=]+)="(.*)"$/,"$1=$2");c.push(s),l=!1}else c.push(u+"+"+a)}else c.push(a);a.match(/^[^=]+="/)&&(l=!0)}return c},En.asn1.x509.AttributeTypeAndValue=function(e){En.asn1.x509.AttributeTypeAndValue.superclass.constructor.call(this),this.sRule="utf8",this.sType=null,this.sValue=null,this.dsType=null;var t=En,n=t.asn1,r=n.DERSequence,i=n.DERUTF8String,a=n.DERPrintableString,o=n.DERTeletexString,s=n.DERIA5String,l=n.DERVisibleString,c=n.DERBMPString,u=t.lang.String.isMail,d=t.lang.String.isPrintable;this.setByParam=function(e){if(void 0!==e.rule&&(this.sRule=e.rule),void 0!==e.ds&&(this.dsType=e.ds),void 0===e.value&&void 0!==e.str){var t=e.str,n=t.match(/^([^=]+)=(.+)$/);if(!n)throw new Error("malformed attrTypeAndValueStr: "+attrTypeAndValueStr);this.sType=n[1],this.sValue=n[2]}else this.sType=e.type,this.sValue=e.value},this.setByString=function(e,t){void 0!==t&&(this.sRule=t);var n=e.match(/^([^=]+)=(.+)$/);if(!n)throw new Error("malformed attrTypeAndValueStr: "+attrTypeAndValueStr);this.setByAttrTypeAndValueStr(n[1],n[2])},this._getDsType=function(){var e=this.sType,t=this.sValue,n=this.sRule;return"prn"===n?"CN"==e&&u(t)?"ia5":d(t)?"prn":"utf8":"utf8"===n?"CN"==e&&u(t)?"ia5":"C"==e?"prn":"utf8":"utf8"},this.setByAttrTypeAndValueStr=function(e,t,n){void 0!==n&&(this.sRule=n),this.sType=e,this.sValue=t},this.getValueObj=function(e,t){if("utf8"==e)return new i({str:t});if("prn"==e)return new a({str:t});if("tel"==e)return new o({str:t});if("ia5"==e)return new s({str:t});if("vis"==e)return new l({str:t});if("bmp"==e)return new c({str:t});throw new Error("unsupported directory string type: type="+e+" value="+t)},this.tohex=function(){null==this.dsType&&(this.dsType=this._getDsType());var e=En.asn1.x509.OID.atype2obj(this.sType),t=this.getValueObj(this.dsType,this.sValue),n=new r({array:[e,t]});return this.TLV=n.tohex(),this.TLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},Pr(En.asn1.x509.AttributeTypeAndValue,En.asn1.ASN1Object),En.asn1.x509.SubjectPublicKeyInfo=function(e){En.asn1.x509.SubjectPublicKeyInfo.superclass.constructor.call(this);var t=En,n=t.asn1,r=n.DERInteger,i=n.DERBitString,a=n.DERObjectIdentifier,o=n.DERSequence,s=n.ASN1Util.newObject,l=n.x509,c=l.AlgorithmIdentifier,u=t.crypto;u.ECDSA,u.DSA;this.getASN1Object=function(){if(null==this.asn1AlgId||null==this.asn1SubjPKey)throw"algId and/or subjPubKey not set";var e=new o({array:[this.asn1AlgId,this.asn1SubjPKey]});return e},this.tohex=function(){var e=this.getASN1Object();return this.hTLV=e.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},this.setPubKey=function(e){try{if(e instanceof Ut){var t=s({seq:[{int:{bigint:e.n}},{int:{int:e.e}}]}),n=t.tohex();this.asn1AlgId=new c({name:"rsaEncryption"}),this.asn1SubjPKey=new i({hex:"00"+n})}}catch(u){}try{if(e instanceof En.crypto.ECDSA){var o=new a({name:e.curveName});this.asn1AlgId=new c({name:"ecPublicKey",asn1params:o}),this.asn1SubjPKey=new i({hex:"00"+e.pubKeyHex})}}catch(u){}try{if(e instanceof En.crypto.DSA){o=new s({seq:[{int:{bigint:e.p}},{int:{bigint:e.q}},{int:{bigint:e.g}}]});this.asn1AlgId=new c({name:"dsa",asn1params:o});var l=new r({bigint:e.y});this.asn1SubjPKey=new i({hex:"00"+l.tohex()})}}catch(u){}},void 0!==e&&this.setPubKey(e)},Pr(En.asn1.x509.SubjectPublicKeyInfo,En.asn1.ASN1Object),En.asn1.x509.Time=function(e){En.asn1.x509.Time.superclass.constructor.call(this);var t=En,n=t.asn1,r=n.DERUTCTime,i=n.DERGeneralizedTime;this.params=null,this.type=null,this.setTimeParams=function(e){this.timeParams=e},this.setByParam=function(e){this.params=e},this.getType=function(e){return e.match(/^[0-9]{12}Z$/)?"utc":e.match(/^[0-9]{14}Z$/)?"gen":e.match(/^[0-9]{12}\.[0-9]+Z$/)?"utc":e.match(/^[0-9]{14}\.[0-9]+Z$/)?"gen":null},this.tohex=function(){var e=this.params,t=null;if("string"==typeof e&&(e={str:e}),null==e||!e.str||null!=e.type&&void 0!=e.type||(e.type=this.getType(e.str)),null!=e&&e.str?("utc"==e.type&&(t=new r(e.str)),"gen"==e.type&&(t=new i(e.str))):t="gen"==this.type?new i:new r,null==t)throw new Error("wrong setting for Time");return this.TLV=t.tohex(),this.TLV},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},En.asn1.x509.Time_bak=function(e){En.asn1.x509.Time_bak.superclass.constructor.call(this);var t=En,n=t.asn1,r=n.DERUTCTime,i=n.DERGeneralizedTime;this.setTimeParams=function(e){this.timeParams=e},this.tohex=function(){var e=null;return e=null!=this.timeParams?"utc"==this.type?new r(this.timeParams):new i(this.timeParams):"utc"==this.type?new r:new i,this.TLV=e.tohex(),this.TLV},this.getEncodedHex=function(){return this.tohex()},this.type="utc",void 0!==e&&(void 0!==e.type?this.type=e.type:void 0!==e.str&&(e.str.match(/^[0-9]{12}Z$/)&&(this.type="utc"),e.str.match(/^[0-9]{14}Z$/)&&(this.type="gen")),this.timeParams=e)},Pr(En.asn1.x509.Time,En.asn1.ASN1Object),En.asn1.x509.AlgorithmIdentifier=function(e){En.asn1.x509.AlgorithmIdentifier.superclass.constructor.call(this),this.nameAlg=null,this.asn1Alg=null,this.asn1Params=null,this.paramEmpty=!1;var t=En,n=t.asn1,r=n.x509.AlgorithmIdentifier.PSSNAME2ASN1TLV;if(this.tohex=function(){if(null===this.nameAlg&&null===this.asn1Alg)throw new Error("algorithm not specified");if(null!==this.nameAlg){var e=null;for(var t in r)t===this.nameAlg&&(e=r[t]);if(null!==e)return this.hTLV=e,this.hTLV}null!==this.nameAlg&&null===this.asn1Alg&&(this.asn1Alg=n.x509.OID.name2obj(this.nameAlg));var i=[this.asn1Alg];null!==this.asn1Params&&i.push(this.asn1Params);var a=new n.DERSequence({array:i});return this.hTLV=a.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&(void 0!==e.name&&(this.nameAlg=e.name),void 0!==e.asn1params&&(this.asn1Params=e.asn1params),void 0!==e.paramempty&&(this.paramEmpty=e.paramempty)),null===this.asn1Params&&!1===this.paramEmpty&&null!==this.nameAlg){void 0!==this.nameAlg.name&&(this.nameAlg=this.nameAlg.name);var i=this.nameAlg.toLowerCase();"withdsa"!==i.substr(-7,7)&&"withecdsa"!==i.substr(-9,9)&&(this.asn1Params=new n.DERNull)}},Pr(En.asn1.x509.AlgorithmIdentifier,En.asn1.ASN1Object),En.asn1.x509.AlgorithmIdentifier.PSSNAME2ASN1TLV={SHAwithRSAandMGF1:"300d06092a864886f70d01010a3000",SHA256withRSAandMGF1:"303d06092a864886f70d01010a3030a00d300b0609608648016503040201a11a301806092a864886f70d010108300b0609608648016503040201a203020120",SHA384withRSAandMGF1:"303d06092a864886f70d01010a3030a00d300b0609608648016503040202a11a301806092a864886f70d010108300b0609608648016503040202a203020130",SHA512withRSAandMGF1:"303d06092a864886f70d01010a3030a00d300b0609608648016503040203a11a301806092a864886f70d010108300b0609608648016503040203a203020140"},En.asn1.x509.GeneralName=function(e){En.asn1.x509.GeneralName.superclass.constructor.call(this);var t=En,n=t.asn1,r=n.x509,i=r.X500Name,a=r.OtherName,o=n.DERIA5String,s=(n.DERPrintableString,n.DEROctetString),l=n.DERTaggedObject,c=n.ASN1Object,u=Error;this.params=null,this.setByParam=function(e){this.params=e},this.tohex=function(){var e,t,n=this.params,r=!1;if(void 0!==n.other)e="a0",t=new a(n.other);else if(void 0!==n.rfc822)e="81",t=new o({str:n.rfc822});else if(void 0!==n.dns)e="82",t=new o({str:n.dns});else if(void 0!==n.dn)e="a4",r=!0,t="string"===typeof n.dn?new i({str:n.dn}):n.dn instanceof En.asn1.x509.X500Name?n.dn:new i(n.dn);else if(void 0!==n.ldapdn)e="a4",r=!0,t=new i({ldapstr:n.ldapdn});else if(void 0!==n.certissuer||void 0!==n.certsubj){var d,h;e="a4",r=!0;var p=null;if(void 0!==n.certsubj?(d=!1,h=n.certsubj):(d=!0,h=n.certissuer),h.match(/^[0-9A-Fa-f]+$/),-1!=h.indexOf("-----BEGIN ")&&(p=Qn(h)),null==p)throw new Error("certsubj/certissuer not cert");var f,m=new Ur;m.hex=p,f=d?m.getIssuerHex():m.getSubjectHex(),t=new c,t.hTLV=f}else if(void 0!==n.uri)e="86",t=new o({str:n.uri});else{if(void 0===n.ip)throw new u("improper params");var g;e="87";var v=n.ip;try{if(v.match(/^[0-9a-f]+$/)){var b=v.length;if(8!=b&&16!=b&&32!=b&&64!=b)throw"err";g=v}else g=pr(v)}catch(_){throw new u("malformed IP address: "+n.ip+":"+_.message)}t=new s({hex:g})}var y=new l({tag:e,explicit:r,obj:t});return y.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},Pr(En.asn1.x509.GeneralName,En.asn1.ASN1Object),En.asn1.x509.GeneralNames=function(e){En.asn1.x509.GeneralNames.superclass.constructor.call(this);var t=En,n=t.asn1;this.setByParamArray=function(e){for(var t=0;t<e.length;t++){var r=new n.x509.GeneralName(e[t]);this.asn1Array.push(r)}},this.tohex=function(){var e=new n.DERSequence({array:this.asn1Array});return e.tohex()},this.getEncodedHex=function(){return this.tohex()},this.asn1Array=new Array,"undefined"!=typeof e&&this.setByParamArray(e)},Pr(En.asn1.x509.GeneralNames,En.asn1.ASN1Object),En.asn1.x509.OtherName=function(e){En.asn1.x509.OtherName.superclass.constructor.call(this);var t=En,n=t.asn1,r=n.DERObjectIdentifier,i=n.DERSequence,a=n.ASN1Util.newObject;this.params=null,this.setByParam=function(e){this.params=e},this.tohex=function(){var e=this.params;if(void 0==e.oid||void 0==e.value)throw new Error("oid or value not specified");var t=new r({oid:e.oid}),n=a({tag:{tag:"a0",explicit:!0,obj:e.value}}),o=new i({array:[t,n]});return o.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},Pr(En.asn1.x509.OtherName,En.asn1.ASN1Object),En.asn1.x509.OID=new function(){var e=En.asn1.DERObjectIdentifier;this.name2oidList={"aes128-CBC":"2.16.840.1.101.3.4.1.2","aes256-CBC":"2.16.840.1.101.3.4.1.42",sha1:"1.3.14.3.2.26",sha256:"2.16.840.1.101.3.4.2.1",sha384:"2.16.840.1.101.3.4.2.2",sha512:"2.16.840.1.101.3.4.2.3",sha224:"2.16.840.1.101.3.4.2.4",md5:"1.2.840.113549.2.5",md2:"1.3.14.7.2.2.1",ripemd160:"1.3.36.3.2.1",hmacWithSHA1:"1.2.840.113549.2.7",hmacWithSHA224:"1.2.840.113549.2.8",hmacWithSHA256:"1.2.840.113549.2.9",hmacWithSHA384:"1.2.840.113549.2.10",hmacWithSHA512:"1.2.840.113549.2.11",MD2withRSA:"1.2.840.113549.1.1.2",MD4withRSA:"1.2.840.113549.1.1.3",MD5withRSA:"1.2.840.113549.1.1.4",SHA1withRSA:"1.2.840.113549.1.1.5","pkcs1-MGF":"1.2.840.113549.1.1.8",rsaPSS:"1.2.840.113549.1.1.10",SHA224withRSA:"1.2.840.113549.1.1.14",SHA256withRSA:"1.2.840.113549.1.1.11",SHA384withRSA:"1.2.840.113549.1.1.12",SHA512withRSA:"1.2.840.113549.1.1.13",SHA1withECDSA:"1.2.840.10045.4.1",SHA224withECDSA:"1.2.840.10045.4.3.1",SHA256withECDSA:"1.2.840.10045.4.3.2",SHA384withECDSA:"1.2.840.10045.4.3.3",SHA512withECDSA:"1.2.840.10045.4.3.4",dsa:"1.2.840.10040.4.1",SHA1withDSA:"1.2.840.10040.4.3",SHA224withDSA:"2.16.840.1.101.3.4.3.1",SHA256withDSA:"2.16.840.1.101.3.4.3.2",rsaEncryption:"1.2.840.113549.1.1.1",commonName:"2.5.4.3",countryName:"2.5.4.6",localityName:"2.5.4.7",stateOrProvinceName:"2.5.4.8",streetAddress:"2.5.4.9",organizationName:"2.5.4.10",organizationalUnitName:"2.5.4.11",domainComponent:"0.9.2342.19200300.100.1.25",userId:"0.9.2342.19200300.100.1.1",surname:"2.5.4.4",givenName:"2.5.4.42",title:"2.5.4.12",distinguishedName:"2.5.4.49",emailAddress:"1.2.840.113549.1.9.1",description:"2.5.4.13",businessCategory:"2.5.4.15",postalCode:"2.5.4.17",uniqueIdentifier:"2.5.4.45",organizationIdentifier:"2.5.4.97",jurisdictionOfIncorporationL:"1.3.6.1.4.1.311.60.2.1.1",jurisdictionOfIncorporationSP:"1.3.6.1.4.1.311.60.2.1.2",jurisdictionOfIncorporationC:"1.3.6.1.4.1.311.60.2.1.3",subjectDirectoryAttributes:"2.5.29.9",subjectKeyIdentifier:"2.5.29.14",keyUsage:"2.5.29.15",subjectAltName:"2.5.29.17",issuerAltName:"2.5.29.18",basicConstraints:"2.5.29.19",cRLNumber:"2.5.29.20",cRLReason:"2.5.29.21",nameConstraints:"2.5.29.30",cRLDistributionPoints:"2.5.29.31",certificatePolicies:"2.5.29.32",anyPolicy:"2.5.29.32.0",policyMappings:"2.5.29.33",authorityKeyIdentifier:"2.5.29.35",policyConstraints:"2.5.29.36",extKeyUsage:"2.5.29.37",inhibitAnyPolicy:"2.5.29.54",authorityInfoAccess:"1.3.6.1.5.5.7.1.1",ocsp:"1.3.6.1.5.5.7.48.1",ocspBasic:"1.3.6.1.5.5.7.48.1.1",ocspNonce:"1.3.6.1.5.5.7.48.1.2",ocspNoCheck:"1.3.6.1.5.5.7.48.1.5",caIssuers:"1.3.6.1.5.5.7.48.2",anyExtendedKeyUsage:"2.5.29.37.0",serverAuth:"1.3.6.1.5.5.7.3.1",clientAuth:"1.3.6.1.5.5.7.3.2",codeSigning:"1.3.6.1.5.5.7.3.3",emailProtection:"1.3.6.1.5.5.7.3.4",timeStamping:"1.3.6.1.5.5.7.3.8",ocspSigning:"1.3.6.1.5.5.7.3.9",smtpUTF8Mailbox:"1.3.6.1.5.5.7.8.9",dateOfBirth:"1.3.6.1.5.5.7.9.1",placeOfBirth:"1.3.6.1.5.5.7.9.2",gender:"1.3.6.1.5.5.7.9.3",countryOfCitizenship:"1.3.6.1.5.5.7.9.4",countryOfResidence:"1.3.6.1.5.5.7.9.5",ecPublicKey:"1.2.840.10045.2.1","P-256":"1.2.840.10045.3.1.7",secp256r1:"1.2.840.10045.3.1.7",secp256k1:"1.3.132.0.10",secp384r1:"1.3.132.0.34",secp521r1:"1.3.132.0.35",pkcs5PBES2:"1.2.840.113549.1.5.13",pkcs5PBKDF2:"1.2.840.113549.1.5.12","des-EDE3-CBC":"1.2.840.113549.3.7",data:"1.2.840.113549.1.7.1","signed-data":"1.2.840.113549.1.7.2","enveloped-data":"1.2.840.113549.1.7.3","digested-data":"1.2.840.113549.1.7.5","encrypted-data":"1.2.840.113549.1.7.6","authenticated-data":"1.2.840.113549.1.9.16.1.2",tstinfo:"1.2.840.113549.1.9.16.1.4",signingCertificate:"1.2.840.113549.1.9.16.2.12",timeStampToken:"1.2.840.113549.1.9.16.2.14",signaturePolicyIdentifier:"1.2.840.113549.1.9.16.2.15",etsArchiveTimeStamp:"1.2.840.113549.1.9.16.2.27",signingCertificateV2:"1.2.840.113549.1.9.16.2.47",etsArchiveTimeStampV2:"1.2.840.113549.1.9.16.2.48",extensionRequest:"1.2.840.113549.1.9.14",contentType:"1.2.840.113549.1.9.3",messageDigest:"1.2.840.113549.1.9.4",signingTime:"1.2.840.113549.1.9.5",counterSignature:"1.2.840.113549.1.9.6",archiveTimeStampV3:"0.4.0.1733.2.4",pdfRevocationInfoArchival:"1.2.840.113583.1.1.8",adobeTimeStamp:"1.2.840.113583.1.1.9.1",smimeMailboxLegacy:"2.23.140.1.5.1.1",smimeMailboxMulti:"2.23.140.1.5.1.2",smimeMailboxStrict:"2.23.140.1.5.1.3",smimeOrganizationLegacy:"2.23.140.1.5.2.1",smimeOrganizationMulti:"2.23.140.1.5.2.2",smimeOrganizationStrict:"2.23.140.1.5.2.3",smimeSponsorLegacy:"2.23.140.1.5.3.1",smimeSponsorMulti:"2.23.140.1.5.3.2",smimeSponsorStrict:"2.23.140.1.5.3.3",smimeIndividualLegacy:"2.23.140.1.5.4.1",smimeIndividualMulti:"2.23.140.1.5.4.2",smimeIndividualStrict:"2.23.140.1.5.4.3"},this.atype2oidList={CN:"2.5.4.3",L:"2.5.4.7",ST:"2.5.4.8",O:"2.5.4.10",OU:"2.5.4.11",C:"2.5.4.6",STREET:"2.5.4.9",DC:"0.9.2342.19200300.100.1.25",UID:"0.9.2342.19200300.100.1.1",SN:"2.5.4.4",T:"2.5.4.12",GN:"2.5.4.42",DN:"2.5.4.49",E:"1.2.840.113549.1.9.1",description:"2.5.4.13",businessCategory:"2.5.4.15",postalCode:"2.5.4.17",serialNumber:"2.5.4.5",uniqueIdentifier:"2.5.4.45",organizationIdentifier:"2.5.4.97",jurisdictionOfIncorporationL:"1.3.6.1.4.1.311.60.2.1.1",jurisdictionOfIncorporationSP:"1.3.6.1.4.1.311.60.2.1.2",jurisdictionOfIncorporationC:"1.3.6.1.4.1.311.60.2.1.3"},this.objCache={},this.name2obj=function(t){if("undefined"!=typeof this.objCache[t])return this.objCache[t];if("undefined"==typeof this.name2oidList[t])throw"Name of ObjectIdentifier not defined: "+t;var n=this.name2oidList[t],r=new e({oid:n});return this.objCache[t]=r,r},this.atype2obj=function(t){if(void 0!==this.objCache[t])return this.objCache[t];var n;if(t.match(/^\d+\.\d+\.[0-9.]+$/))n=t;else if(void 0!==this.atype2oidList[t])n=this.atype2oidList[t];else{if(void 0===this.name2oidList[t])throw new Error("AttributeType name undefined: "+t);n=this.name2oidList[t]}var r=new e({oid:n});return this.objCache[t]=r,r},this.registerOIDs=function(e){if(this.checkOIDs(e))for(var t in e)this.name2oidList[t]=e[t]},this.checkOIDs=function(e){try{var t=Object.keys(e);return 0!=t.length&&(t.map(function(e,t,n){var r=this[e];if(!r.match(/^[0-2]\.[0-9.]+$/))throw new Error("value is not OID")},e),!0)}catch(n){return!1}}},En.asn1.x509.OID.oid2name=function(e){var t=En.asn1.x509.OID.name2oidList;for(var n in t)if(t[n]==e)return n;return""},En.asn1.x509.OID.oid2atype=function(e){var t=En.asn1.x509.OID.atype2oidList;for(var n in t)if(t[n]==e)return n;return e},En.asn1.x509.OID.name2oid=function(e){if(e.match(/^[0-9.]+$/))return e;var t=En.asn1.x509.OID.name2oidList;return void 0===t[e]?"":t[e]},En.asn1.x509.X509Util={},En.asn1.x509.X509Util.newCertPEM=function(e){var t=En.asn1.x509,n=(t.TBSCertificate,t.Certificate),r=new n(e);return r.getPEM()},"undefined"!=typeof En&&En||(En={}),"undefined"!=typeof En.asn1&&En.asn1||(En.asn1={}),"undefined"!=typeof En.asn1.cms&&En.asn1.cms||(En.asn1.cms={}),En.asn1.cms.Attribute=function(e){var t=Error,n=En,r=n.asn1,i=r.DERSequence,a=r.DERSet,o=r.DERObjectIdentifier;this.params=null,this.typeOid=null,this.setByParam=function(e){this.params=e},this.getValueArray=function(){throw new t("not yet implemented abstract")},this.tohex=function(){var e=new o({oid:this.typeOid}),t=new a({array:this.getValueArray()}),n=new i({array:[e,t]});return n.tohex()},this.getEncodedHex=function(){return this.tohex()}},Pr(En.asn1.cms.Attribute,En.asn1.ASN1Object),En.asn1.cms.ContentType=function(e){var t=En,n=t.asn1;n.cms.ContentType.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.3",this.getValueArray=function(){var e=new n.DERObjectIdentifier(this.params.type);return[e]},void 0!=e&&this.setByParam(e)},Pr(En.asn1.cms.ContentType,En.asn1.cms.Attribute),En.asn1.cms.MessageDigest=function(e){var t=En,n=t.asn1,r=n.DEROctetString,i=n.cms;i.MessageDigest.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.4",this.getValueArray=function(){var e=new r(this.params);return[e]},void 0!=e&&this.setByParam(e)},Pr(En.asn1.cms.MessageDigest,En.asn1.cms.Attribute),En.asn1.cms.SigningTime=function(e){var t=En,n=t.asn1;n.cms.SigningTime.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.5",this.getValueArray=function(){var e=new n.x509.Time(this.params);return[e]},void 0!=e&&this.setByParam(e)},Pr(En.asn1.cms.SigningTime,En.asn1.cms.Attribute),En.asn1.cms.SigningCertificate=function(e){var t=Error,n=En,r=n.asn1,i=r.DERSequence,a=r.cms,o=a.ESSCertID;n.crypto;a.SigningCertificate.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.16.2.12",this.getValueArray=function(){if(null==this.params||void 0==this.params||void 0==this.params.array)throw new t("parameter 'array' not specified");for(var n=this.params.array,r=[],a=0;a<n.length;a++){var s=n[a];0!=e.hasis||"string"!=typeof s||-1==s.indexOf("-----BEGIN")&&!xn.isASN1HEX(s)||(s={cert:s}),0!=s.hasis&&0==e.hasis&&(s.hasis=!1),r.push(new o(s))}var l=new i({array:r}),c=new i({array:[l]});return[c]},void 0!=e&&this.setByParam(e)},Pr(En.asn1.cms.SigningCertificate,En.asn1.cms.Attribute),En.asn1.cms.ESSCertID=function(e){En.asn1.cms.ESSCertID.superclass.constructor.call(this);var t=Error,n=En,r=n.asn1,i=r.DEROctetString,a=r.DERSequence,o=r.cms.IssuerSerial;this.params=null,this.getCertHash=function(e,r){if(void 0!=e.hash)return e.hash;if("string"==typeof e&&-1==e.indexOf("-----BEGIN")&&!xn.isASN1HEX(e))return e;var i,a,o;if("string"==typeof e)i=e;else{if(void 0==e.cert)throw new t("hash nor cert unspecified");i=e.cert}if(a=-1!=i.indexOf("-----BEGIN")?Qn(i):i,"string"==typeof e&&(-1!=e.indexOf("-----BEGIN")?a=Qn(e):xn.isASN1HEX(e)&&(a=e)),void 0!=e.alg)o=e.alg;else{if(void 0==r)throw new t("hash alg unspecified");o=r}return n.crypto.Util.hashHex(a,o)},this.tohex=function(){var e=this.params,t=this.getCertHash(e,"sha1"),n=[];n.push(new i({hex:t})),("string"==typeof e&&-1!=e.indexOf("-----BEGIN")||void 0!=e.cert&&0!=e.hasis||void 0!=e.issuer&&void 0!=e.serial)&&n.push(new o(e));var r=new a({array:n});return r.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(En.asn1.cms.ESSCertID,En.asn1.ASN1Object),En.asn1.cms.SigningCertificateV2=function(e){var t=Error,n=En,r=n.asn1,i=r.DERSequence,a=(r.x509,r.cms),o=a.ESSCertIDv2;n.crypto;a.SigningCertificateV2.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.16.2.47",this.getValueArray=function(){if(null==this.params||void 0==this.params||void 0==this.params.array)throw new t("parameter 'array' not specified");for(var n=this.params.array,r=[],a=0;a<n.length;a++){var s=n[a];void 0==e.alg&&0!=e.hasis||"string"!=typeof s||-1==s.indexOf("-----BEGIN")&&!xn.isASN1HEX(s)||(s={cert:s}),void 0==s.alg&&void 0!=e.alg&&(s.alg=e.alg),0!=s.hasis&&0==e.hasis&&(s.hasis=!1),r.push(new o(s))}var l=new i({array:r}),c=new i({array:[l]});return[c]},void 0!=e&&this.setByParam(e)},Pr(En.asn1.cms.SigningCertificateV2,En.asn1.cms.Attribute),En.asn1.cms.ESSCertIDv2=function(e){En.asn1.cms.ESSCertIDv2.superclass.constructor.call(this);Error;var t=En,n=t.asn1,r=n.DEROctetString,i=n.DERSequence,a=n.cms.IssuerSerial,o=n.x509.AlgorithmIdentifier;this.params=null,this.tohex=function(){var e=this.params,t=this.getCertHash(e,"sha256"),n=[];void 0!=e.alg&&"sha256"!=e.alg&&n.push(new o({name:e.alg})),n.push(new r({hex:t})),("string"==typeof e&&-1!=e.indexOf("-----BEGIN")||void 0!=e.cert&&0!=e.hasis||void 0!=e.issuer&&void 0!=e.serial)&&n.push(new a(e));var s=new i({array:n});return s.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(En.asn1.cms.ESSCertIDv2,En.asn1.cms.ESSCertID),En.asn1.cms.IssuerSerial=function(e){var t=Error,n=En,r=n.asn1,i=r.DERInteger,a=r.DERSequence,o=r.cms,s=r.x509,l=s.GeneralNames,c=Ur;o.IssuerSerial.superclass.constructor.call(this),this.setByParam=function(e){this.params=e},this.tohex=function(){var e,n,r=this.params;if("string"==typeof r&&-1!=r.indexOf("-----BEGIN")||void 0!=r.cert){var o;o=void 0!=r.cert?r.cert:r;var s=new c;s.readCertPEM(o),e=s.getIssuer(),n={hex:s.getSerialNumberHex()}}else{if(void 0==r.issuer||!r.serial)throw new t("cert or issuer and serial parameter not specified");e=r.issuer,n=r.serial}var u=new l([{dn:e}]),d=new i(n),h=new a({array:[u,d]});return h.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(En.asn1.cms.IssuerSerial,En.asn1.ASN1Object),En.asn1.cms.SignerIdentifier=function(e){var t=En,n=t.asn1,r=(n.DERInteger,n.DERSequence,n.cms),i=r.IssuerAndSerialNumber,a=r.SubjectKeyIdentifier,o=n.x509;o.X500Name,Error;r.SignerIdentifier.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params;if("isssn"==e.type){var t=new i(e);return t.tohex()}if("skid"==e.type){var n=new a(e);return n.tohex()}throw new Error("wrong property for isssn or skid")},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(En.asn1.cms.SignerIdentifier,En.asn1.ASN1Object),En.asn1.cms.IssuerAndSerialNumber=function(e){var t=En,n=t.asn1,r=n.DERInteger,i=n.DERSequence,a=n.cms,o=n.x509,s=o.X500Name,l=Ur,c=Error;a.IssuerAndSerialNumber.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e,t,n=this.params;if("string"==typeof n&&-1!=n.indexOf("-----BEGIN")||void 0!=n.cert){var a;a=void 0!=n.cert?n.cert:n;var o=new l;o.readCertPEM(a),e=o.getIssuer(),t={hex:o.getSerialNumberHex()}}else{if(void 0==n.issuer||!n.serial)throw new c("cert or issuer and serial parameter not specified");e=n.issuer,t=n.serial}var u=new s(e),d=new r(t),h=new i({array:[u,d]});return h.tohex()},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(e){this.params=e},void 0!=e&&this.setByParam(e)},Pr(En.asn1.cms.IssuerAndSerialNumber,En.asn1.ASN1Object),En.asn1.cms.SubjectKeyIdentifier=function(e){var t=En,n=t.asn1,r=(n.DERInteger,n.DERSequence,n.ASN1Util.newObject),i=n.cms,a=(i.IssuerAndSerialName,i.SubjectKeyIdentifier,n.x509),o=(a.X500Name,Ur),s=Error;i.SubjectKeyIdentifier.superclass.constructor.call(this),this.tohex=function(){var e,t=this.params;if(void 0==t.cert&&void 0==t.skid)throw new s("property cert nor skid undefined");if(void 0!=t.cert){var n=new o(t.cert),i=n.getExtSubjectKeyIdentifier();e=i.kid.hex}else void 0!=t.skid&&(e=t.skid);var a=r({tag:{tage:"a0",obj:{octstr:{hex:e}}}});return a.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(En.asn1.cms.SubjectKeyIdentifier,En.asn1.ASN1Object),En.asn1.cms.AttributeList=function(e){var t=Error,n=En,r=n.asn1,i=r.DERSet,a=r.cms;a.AttributeList.superclass.constructor.call(this),this.params=null,this.hTLV=null,this.setByParam=function(e){this.params=e},this.tohex=function(){var e=this.params;if(null!=this.hTLV)return this.hTLV;var n=!0;void 0!=e.sortflag&&(n=e.sortflag);for(var r=e.array,o=[],s=0;s<r.length;s++){var l=r[s],c=l.attr;if("contentType"==c)o.push(new a.ContentType(l));else if("messageDigest"==c)o.push(new a.MessageDigest(l));else if("signingTime"==c)o.push(new a.SigningTime(l));else if("signingCertificate"==c)o.push(new a.SigningCertificate(l));else if("signingCertificateV2"==c)o.push(new a.SigningCertificateV2(l));else if("signaturePolicyIdentifier"==c)o.push(new En.asn1.cades.SignaturePolicyIdentifier(l));else{if("signatureTimeStamp"!=c&&"timeStampToken"!=c)throw new t("unknown attr: "+c);o.push(new En.asn1.cades.SignatureTimeStamp(l))}}var u=new i({array:o,sortflag:n});return this.hTLV=u.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(En.asn1.cms.AttributeList,En.asn1.ASN1Object),En.asn1.cms.SignerInfo=function(e){var t=Error,n=En,r=n.asn1,i=r.DERInteger,a=r.DEROctetString,o=r.DERSequence,s=r.DERTaggedObject,l=r.cms,c=l.SignerIdentifier,u=l.AttributeList,d=(l.ContentType,l.EncapsulatedContentInfo,l.MessageDigest,l.SignedData,r.x509),h=d.AlgorithmIdentifier,p=n.crypto,f=Mr;l.SignerInfo.superclass.constructor.call(this),this.params=null,this.sign=function(){var e=this.params,t=e.sigalg,n=new u(e.sattrs).tohex(),r=f.getKey(e.signkey),i=new p.Signature({alg:t});i.init(r),i.updateHex(n);var a=i.sign();e.sighex=a},this.tohex=function(){var e=this.params,n=[];if(n.push(new i({int:e.version})),n.push(new c(e.id)),n.push(new h({name:e.hashalg})),void 0!=e.sattrs){var r=new u(e.sattrs);try{n.push(new s({tag:"a0",explicit:!1,obj:r}))}catch(d){throw new t("si sattr error: "+d)}}if(void 0!=e.sigalgfield?n.push(new h({name:e.sigalgfield})):n.push(new h({name:e.sigalg})),void 0==e.sighex&&void 0!=e.signkey&&this.sign(),n.push(new a({hex:e.sighex})),void 0!=e.uattrs){r=new u(e.uattrs);try{n.push(new s({tag:"a1",explicit:!1,obj:r}))}catch(d){throw new t("si uattr error: "+d)}}var l=new o({array:n});return l.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(En.asn1.cms.SignerInfo,En.asn1.ASN1Object),En.asn1.cms.EncapsulatedContentInfo=function(e){var t=En,n=t.asn1,r=n.DERTaggedObject,i=n.DERSequence,a=n.DERObjectIdentifier,o=n.DEROctetString,s=n.cms;s.EncapsulatedContentInfo.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params,t=[];if(t.push(new a(e.type)),void 0!=e.content&&(void 0!=e.content.hex||void 0!=e.content.str)&&1!=e.isDetached){var n=new o(e.content),s=new r({tag:"a0",explicit:!0,obj:n});t.push(s)}var l=new i({array:t});return l.tohex()},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(e){this.params=e},void 0!=e&&this.setByParam(e)},Pr(En.asn1.cms.EncapsulatedContentInfo,En.asn1.ASN1Object),En.asn1.cms.ContentInfo=function(e){var t=En,n=t.asn1,r=n.DERTaggedObject,i=n.DERSequence,a=n.DERObjectIdentifier,o=n.x509;o.OID.name2obj;En.asn1.cms.ContentInfo.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params,t=[];t.push(new a(e.type));var n=new r({tag:"a0",explicit:!0,obj:e.obj});t.push(n);var o=new i({array:t});return o.tohex()},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(e){this.params=e},void 0!=e&&this.setByParam(e)},Pr(En.asn1.cms.ContentInfo,En.asn1.ASN1Object),En.asn1.cms.SignedData=function(e){Error;var t=En,n=t.asn1,r=(n.ASN1Object,n.DERInteger),i=n.DERSet,a=n.DERSequence,o=(n.DERTaggedObject,n.cms),s=o.EncapsulatedContentInfo,l=o.SignerInfo,c=o.ContentInfo,u=o.CertificateSet,d=o.RevocationInfoChoices,h=n.x509,p=h.AlgorithmIdentifier;En.asn1.cms.SignedData.superclass.constructor.call(this),this.params=null,this.checkAndFixParam=function(){var e=this.params;this._setDigestAlgs(e),this._setContentTypeByEContent(e),this._setMessageDigestByEContent(e),this._setSignerInfoVersion(e),this._setSignedDataVersion(e)},this._setDigestAlgs=function(e){for(var t={},n=e.sinfos,r=0;r<n.length;r++){var i=n[r];t[i.hashalg]=1}e.hashalgs=Object.keys(t).sort()},this._setContentTypeByEContent=function(e){for(var t=e.econtent.type,n=e.sinfos,r=0;r<n.length;r++){var i=n[r],a=this._getAttrParamByName(i,"contentType");a.type=t}},this._setMessageDigestByEContent=function(e){var t=e.econtent,n=(e.econtent.type,t.content.hex);void 0==n&&"data"==t.type&&void 0!=t.content.str&&(n=Gn(t.content.str));for(var r=e.sinfos,i=0;i<r.length;i++){var a=r[i],o=a.hashalg,s=this._getAttrParamByName(a,"messageDigest"),l=En.crypto.Util.hashHex(n,o);s.hex=l}},this._getAttrParamByName=function(e,t){for(var n=e.sattrs.array,r=0;r<n.length;r++)if(n[r].attr==t)return n[r]},this._setSignerInfoVersion=function(e){for(var t=e.sinfos,n=0;n<t.length;n++){var r=t[n],i=1;"skid"==r.id.type&&(i=3),r.version=i}},this._setSignedDataVersion=function(e){var t=this._getSignedDataVersion(e);e.version=t},this._getSignedDataVersion=function(e){if(void 0!=e.revinfos)for(var t=e.revinfos,n=0;n<t.length;n++){var r=t[n];if(void 0!=r.ocsp)return 5}var i=e.sinfos;for(n=0;n<i.length;n++){var a=e.sinfos[n];if(3==a.version)return 3}return"data"!=e.econtent.type?3:1},this.tohex=function(){var e=this.params;void 0!=this.getEncodedHexPrepare&&this.getEncodedHexPrepare(),1!=e.fixed&&this.checkAndFixParam();var t=[];t.push(new r({int:e.version}));for(var n=[],o=0;o<e.hashalgs.length;o++){var c=e.hashalgs[o];n.push(new p({name:c}))}t.push(new i({array:n})),t.push(new s(e.econtent)),void 0!=e.certs&&t.push(new u(e.certs)),void 0!=e.revinfos&&t.push(new d(e.revinfos));var h=[];for(o=0;o<e.sinfos.length;o++){var f=e.sinfos[o];h.push(new l(f))}t.push(new i({array:h}));var m=new a({array:t});return m.tohex()},this.getEncodedHex=function(){return this.tohex()},this.getContentInfo=function(){var e=new c({type:"signed-data",obj:this});return e},this.getContentInfoEncodedHex=function(){return this.getContentInfo().tohex()},void 0!=e&&this.setByParam(e)},Pr(En.asn1.cms.SignedData,En.asn1.ASN1Object),En.asn1.cms.CertificateSet=function(e){En.asn1.cms.CertificateSet.superclass.constructor.call(this);var t=Error,n=En.asn1,r=n.DERTaggedObject,i=n.DERSet,a=n.ASN1Object;this.params=null,this.tohex=function(){var e,n=this.params,o=[];if(n instanceof Array)e=n;else{if(void 0==n.array)throw new t("cert array not specified");e=n.array}for(var s=0;s<e.length;s++){var l=e[s],c=Qn(l),u=new a;u.hTLV=c,o.push(u)}var d={array:o};0==n.sortflag&&(d.sortflag=!1);var h=new i(d),p=new r({tag:"a0",explicit:!1,obj:h});return p.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(En.asn1.cms.CertificateSet,En.asn1.ASN1Object),En.asn1.cms.RevocationInfoChoices=function(e){En.asn1.cms.RevocationInfoChoices.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params;if(!e instanceof Array)throw new Error("params is not array");for(var t=[],n=0;n<e.length;n++)t.push(new En.asn1.cms.RevocationInfoChoice(e[n]));var r=En.asn1.ASN1Util.newObject({tag:{tagi:"a1",obj:{set:t}}});return r.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(En.asn1.cms.RevocationInfoChoices,En.asn1.ASN1Object),En.asn1.cms.RevocationInfoChoice=function(e){En.asn1.cms.RevocationInfoChoice.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params;if(void 0!=e.crl&&"string"==typeof e.crl){var t=e.crl;return-1!=e.crl.indexOf("-----BEGIN")&&(t=Qn(e.crl)),t}if(void 0!=e.ocsp){var n=En.asn1.ASN1Util.newObject({tag:{tagi:"a1",obj:new En.asn1.cms.OtherRevocationFormat(e)}});return n.tohex()}throw new Error("property crl or ocsp undefined")},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(En.asn1.cms.RevocationInfoChoice,En.asn1.ASN1Object),En.asn1.cms.OtherRevocationFormat=function(e){En.asn1.cms.OtherRevocationFormat.superclass.constructor.call(this);var t=Error,n=En,r=n.asn1,i=r.ASN1Util.newObject,a=n.lang.String.isHex;this.params=null,this.tohex=function(){var e=this.params;if(void 0==e.ocsp)throw new t("property ocsp not specified");if(!a(e.ocsp)||!xn.isASN1HEX(e.ocsp))throw new t("ocsp value not ASN.1 hex string");var n=i({seq:[{oid:"1.3.6.1.5.5.7.16.2"},{asn1:{tlv:e.ocsp}}]});return n.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(En.asn1.cms.OtherRevocationFormat,En.asn1.ASN1Object),En.asn1.cms.CMSUtil=new function(){},En.asn1.cms.CMSUtil.newSignedData=function(e){return new En.asn1.cms.SignedData(e)},En.asn1.cms.CMSUtil.verifySignedData=function(e){var t=En,n=t.asn1,r=n.cms,i=(r.SignerInfo,r.SignedData,r.SigningTime,r.SigningCertificate,r.SigningCertificateV2,n.cades),a=(i.SignaturePolicyIdentifier,t.lang.String.isHex),o=xn,s=o.getVbyList,l=o.getTLVbyList,c=o.getIdxbyList,u=o.getChildIdx,d=o.getTLV,h=o.oidname,p=t.crypto.Util.hashHex;void 0===e.cms&&a(e.cms);var f=e.cms,m=function(e,t){for(var n,r=3;r<6;r++)if(n=c(e,0,[1,0,r]),void 0!==n){var i=e.substr(n,2);"a0"===i&&(t.certsIdx=n),"a1"===i&&(t.revinfosIdx=n),"31"===i&&(t.signerinfosIdx=n)}},g=function(e,t){var n=t.signerinfosIdx;if(void 0!==n){var r=u(e,n);t.signerInfoIdxList=r;for(var i=0;i<r.length;i++){var a=r[i],o={idx:a};v(e,o),t.signerInfos.push(o)}}},v=function(e,t){var n=t.idx;t.signerid_issuer1=l(e,n,[1,0],"30"),t.signerid_serial1=s(e,n,[1,1],"02"),t.hashalg=h(s(e,n,[2,0],"06"));var r=c(e,n,[3],"a0");t.idxSignedAttrs=r,b(e,t,r);var i=u(e,n),a=i.length;if(a<6)throw"malformed SignerInfo";t.sigalg=h(s(e,n,[a-2,0],"06")),t.sigval=s(e,n,[a-1],"04")},b=function(e,t,n){var r=u(e,n);t.signedAttrIdxList=r;for(var i=0;i<r.length;i++){var a,o=r[i],l=s(e,o,[0],"06");"2a864886f70d010905"===l?(a=Un(s(e,o,[1,0])),t.saSigningTime=a):"2a864886f70d010904"===l&&(a=s(e,o,[1,0],"04"),t.saMessageDigest=a)}},y=function(e,t){if("2a864886f70d010702"!==s(e,0,[0],"06"))return t;t.cmsType="signedData",t.econtent=s(e,0,[1,0,2,1,0]),m(e,t),t.signerInfos=[],g(e,t)},_=function(e,t){for(var n=t.parse.signerInfos,r=n.length,i=!0,a=0;a<r;a++){var o=n[a];E(e,t,o,a),o.isValid||(i=!1)}t.isValid=i},w=function(e,t,n,r){var i,a=t.parse.certsIdx;if(void 0===t.certs){i=[],t.certkeys=[];for(var o=u(e,a),s=0;s<o.length;s++){var l=d(e,o[s]),c=new Ur;c.readCertHex(l),i[s]=c,t.certkeys[s]=c.getPublicKey()}t.certs=i}else i=t.certs;t.cccc=i.length,t.cccci=o.length;for(s=0;s<i.length;s++){var h=c.getIssuerHex(),p=c.getSerialNumberHex();n.signerid_issuer1===h&&n.signerid_serial1===p&&(n.certkey_idx=s)}},E=function(e,t,n,r){n.verifyDetail={};var i=n.verifyDetail,a=t.parse.econtent,o=n.hashalg,s=n.saMessageDigest;i.validMessageDigest=!1,p(a,o)===s&&(i.validMessageDigest=!0),w(e,t,n,r),i.validSignatureValue=!1;var l=n.sigalg,c="31"+d(e,n.idxSignedAttrs).substr(2);n.signedattrshex=c;var u=t.certs[n.certkey_idx].getPublicKey(),h=new En.crypto.Signature({alg:l});h.init(u),h.updateHex(c);var f=h.verify(n.sigval);i.validSignatureValue_isValid=f,!0===f&&(i.validSignatureValue=!0),n.isValid=!1,i.validMessageDigest&&i.validSignatureValue&&(n.isValid=!0)},S={isValid:!1,parse:{}};return y(f,S.parse),_(f,S),S},En.asn1.cms.CMSParser=function(){var e=Error,t=Ur,n=new t,r=xn,i=r.getV,a=r.getTLV,o=(r.getIdxbyList,r.getTLVbyList),s=r.getTLVbyListEx,l=r.getVbyList,c=r.getVbyListEx,u=r.getChildIdx;this.getCMSSignedData=function(e){var t=o(e,0,[1,0]),n=this.getSignedData(t);return n},this.getSignedData=function(e){var t=u(e,0),n={},r=i(e,t[0]),o=parseInt(r,16);n.version=o;var l=a(e,t[1]);n.hashalgs=this.getHashAlgArray(l);var c=a(e,t[2]);n.econtent=this.getEContent(c);var d=s(e,0,["[0]"]);null!=d&&(n.certs=this.getCertificateSet(d));s(e,0,["[1]"]);var h=s(e,0,[3]);return n.sinfos=this.getSignerInfos(h),n},this.getHashAlgArray=function(e){for(var n=u(e,0),r=new t,i=[],o=0;o<n.length;o++){var s=a(e,n[o]),l=r.getAlgorithmIdentifierName(s);i.push(l)}return i},this.getEContent=function(e){var t={},n=l(e,0,[0]),r=l(e,0,[1,0]);return t.type=En.asn1.x509.OID.oid2name(xn.hextooidstr(n)),t.content={hex:r},t},this.getSignerInfos=function(e){for(var t=[],n=u(e,0),r=0;r<n.length;r++){var i=a(e,n[r]),o=this.getSignerInfo(i);t.push(o)}return t},this.getSignerInfo=function(e){var t={},i=u(e,0),o=r.getInt(e,i[0],-1);-1!=o&&(t.version=o);var l=a(e,i[1]),d=this.getIssuerAndSerialNumber(l);t.id=d;var h=a(e,i[2]),p=n.getAlgorithmIdentifierName(h);t.hashalg=p;var f=s(e,0,["[0]"]);if(null!=f){var m=this.getAttributeList(f);t.sattrs=m}var g=s(e,0,[3]),v=n.getAlgorithmIdentifierName(g);t.sigalg=v;var b=c(e,0,[4]);t.sighex=b;var y=s(e,0,["[1]"]);if(null!=y){var _=this.getAttributeList(y);t.uattrs=_}return t},this.getSignerIdentifier=function(e){if("30"==e.substr(0,2))return this.getIssuerAndSerialNumber(e);throw new Error("SKID of signerIdentifier not supported")},this.getIssuerAndSerialNumber=function(e){var t={type:"isssn"},r=u(e,0),o=a(e,r[0]);t.issuer=n.getX500Name(o);var s=i(e,r[1]);return t.serial={hex:s},t},this.getAttributeList=function(e){for(var t=[],n=u(e,0),r=0;r<n.length;r++){var i=a(e,n[r]),o=this.getAttribute(i);t.push(o)}return{array:t}},this.getAttribute=function(e){var t={},n=u(e,0),i=r.getOID(e,n[0]),o=En.asn1.x509.OID.oid2name(i);t.attr=o;var s=a(e,n[1]),l=u(s,0);if(1==l.length)t.valhex=a(s,l[0]);else{for(var c=[],d=0;d<l.length;d++)c.push(a(s,l[d]));t.valhex=c}return"contentType"==o?this.setContentType(t):"messageDigest"==o?this.setMessageDigest(t):"signingTime"==o?this.setSigningTime(t):"signingCertificate"==o?this.setSigningCertificate(t):"signingCertificateV2"==o?this.setSigningCertificateV2(t):"signaturePolicyIdentifier"==o&&this.setSignaturePolicyIdentifier(t),t},this.setContentType=function(e){var t=r.getOIDName(e.valhex,0,null);null!=t&&(e.type=t,delete e.valhex)},this.setSigningTime=function(e){var t=i(e.valhex,0),n=Un(t);e.str=n,delete e.valhex},this.setMessageDigest=function(e){var t=i(e.valhex,0);e.hex=t,delete e.valhex},this.setSigningCertificate=function(e){var t=u(e.valhex,0);if(t.length>0){for(var n=a(e.valhex,t[0]),r=u(n,0),i=[],o=0;o<r.length;o++){var s=a(n,r[o]),l=this.getESSCertID(s);i.push(l)}e.array=i}if(t.length>1){var c=a(e.valhex,t[1]);e.polhex=c}delete e.valhex},this.setSignaturePolicyIdentifier=function(e){var n=u(e.valhex,0);if(n.length>0){var o=r.getOID(e.valhex,n[0]);e.oid=o}if(n.length>1){var s=new t,l=u(e.valhex,n[1]),c=a(e.valhex,l[0]),d=s.getAlgorithmIdentifierName(c);e.alg=d;var h=i(e.valhex,l[1]);e.hash=h}delete e.valhex},this.setSigningCertificateV2=function(e){var t=u(e.valhex,0);if(t.length>0){for(var n=a(e.valhex,t[0]),r=u(n,0),i=[],o=0;o<r.length;o++){var s=a(n,r[o]),l=this.getESSCertIDv2(s);i.push(l)}e.array=i}if(t.length>1){var c=a(e.valhex,t[1]);e.polhex=c}delete e.valhex},this.getESSCertID=function(e){var t={},n=u(e,0);if(n.length>0){var r=i(e,n[0]);t.hash=r}if(n.length>1){var o=a(e,n[1]),s=this.getIssuerSerial(o);void 0!=s.serial&&(t.serial=s.serial),void 0!=s.issuer&&(t.issuer=s.issuer)}return t},this.getESSCertIDv2=function(t){var r={},o=u(t,0);if(o.length<1||3<o.length)throw new e("wrong number of elements");var s=0;if("30"==t.substr(o[0],2)){var l=a(t,o[0]);r.alg=n.getAlgorithmIdentifierName(l),s++}else r.alg="sha256";var c=i(t,o[s]);if(r.hash=c,o.length>s+1){var d=a(t,o[s+1]),h=this.getIssuerSerial(d);r.issuer=h.issuer,r.serial=h.serial}return r},this.getIssuerSerial=function(e){var t={},r=u(e,0),o=a(e,r[0]),s=n.getGeneralNames(o),l=s[0].dn;t.issuer=l;var c=i(e,r[1]);return t.serial={hex:c},t},this.getCertificateSet=function(e){for(var t=u(e,0),n=[],r=0;r<t.length;r++){var i=a(e,t[r]);if("30"==i.substr(0,2)){var o=Yn(i,"CERTIFICATE");n.push(o)}}return{array:n,sortflag:!1}}},"undefined"!=typeof En&&En||(En={}),"undefined"!=typeof En.asn1&&En.asn1||(En.asn1={}),"undefined"!=typeof En.asn1.tsp&&En.asn1.tsp||(En.asn1.tsp={}),En.asn1.tsp.TimeStampToken=function(e){var t=En,n=t.asn1,r=n.tsp;r.TimeStampToken.superclass.constructor.call(this),this.params=null,this.getEncodedHexPrepare=function(){var e=new r.TSTInfo(this.params.econtent.content);this.params.econtent.content.hex=e.tohex()},void 0!=e&&this.setByParam(e)},Pr(En.asn1.tsp.TimeStampToken,En.asn1.cms.SignedData),En.asn1.tsp.TSTInfo=function(e){Error;var t=En,n=t.asn1,r=n.DERSequence,i=n.DERInteger,a=n.DERBoolean,o=n.DERGeneralizedTime,s=n.DERObjectIdentifier,l=n.DERTaggedObject,c=n.tsp,u=c.MessageImprint,d=c.Accuracy,h=(n.x509.X500Name,n.x509.GeneralName);if(c.TSTInfo.superclass.constructor.call(this),this.dVersion=new i({int:1}),this.dPolicy=null,this.dMessageImprint=null,this.dSerial=null,this.dGenTime=null,this.dAccuracy=null,this.dOrdering=null,this.dNonce=null,this.dTsa=null,this.tohex=function(){var e=[this.dVersion];if(null==this.dPolicy)throw new Error("policy shall be specified.");if(e.push(this.dPolicy),null==this.dMessageImprint)throw new Error("messageImprint shall be specified.");if(e.push(this.dMessageImprint),null==this.dSerial)throw new Error("serialNumber shall be specified.");if(e.push(this.dSerial),null==this.dGenTime)throw new Error("genTime shall be specified.");e.push(this.dGenTime),null!=this.dAccuracy&&e.push(this.dAccuracy),null!=this.dOrdering&&e.push(this.dOrdering),null!=this.dNonce&&e.push(this.dNonce),null!=this.dTsa&&e.push(this.dTsa);var t=new r({array:e});return this.hTLV=t.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e){if("string"==typeof e.policy){if(!e.policy.match(/^[0-9.]+$/))throw"policy shall be oid like 0.1.4.134";this.dPolicy=new s({oid:e.policy})}void 0!==e.messageImprint&&(this.dMessageImprint=new u(e.messageImprint)),void 0!==e.serial&&(this.dSerial=new i(e.serial)),void 0!==e.genTime&&(this.dGenTime=new o(e.genTime)),void 0!==e.accuracy&&(this.dAccuracy=new d(e.accuracy)),void 0!==e.ordering&&1==e.ordering&&(this.dOrdering=new a),void 0!==e.nonce&&(this.dNonce=new i(e.nonce)),void 0!==e.tsa&&(this.dTsa=new l({tag:"a0",explicit:!0,obj:new h({dn:e.tsa})}))}},Pr(En.asn1.tsp.TSTInfo,En.asn1.ASN1Object),En.asn1.tsp.Accuracy=function(e){var t=En,n=t.asn1,r=n.ASN1Util.newObject;n.tsp.Accuracy.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params,t=[];return void 0!=e.seconds&&"number"==typeof e.seconds&&t.push({int:e.seconds}),void 0!=e.millis&&"number"==typeof e.millis&&t.push({tag:{tagi:"80",obj:{int:e.millis}}}),void 0!=e.micros&&"number"==typeof e.micros&&t.push({tag:{tagi:"81",obj:{int:e.micros}}}),r({seq:t}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(En.asn1.tsp.Accuracy,En.asn1.ASN1Object),En.asn1.tsp.MessageImprint=function(e){var t=En,n=t.asn1,r=n.DERSequence,i=n.DEROctetString,a=n.x509,o=a.AlgorithmIdentifier;n.tsp.MessageImprint.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params,t=new o({name:e.alg}),n=new i({hex:e.hash}),a=new r({array:[t,n]});return a.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},Pr(En.asn1.tsp.MessageImprint,En.asn1.ASN1Object),En.asn1.tsp.TimeStampReq=function(e){var t=En,n=t.asn1,r=n.DERSequence,i=n.DERInteger,a=n.DERBoolean,o=(n.ASN1Object,n.DERObjectIdentifier),s=n.tsp,l=s.MessageImprint;s.TimeStampReq.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params,t=[];t.push(new i({int:1})),e.messageImprint instanceof En.asn1.ASN1Object?t.push(e.messageImprint):t.push(new l(e.messageImprint)),void 0!=e.policy&&t.push(new o(e.policy)),void 0!=e.nonce&&t.push(new i(e.nonce)),1==e.certreq&&t.push(new a);var n=new r({array:t});return n.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(En.asn1.tsp.TimeStampReq,En.asn1.ASN1Object),En.asn1.tsp.TimeStampResp=function(e){var t=En,n=t.asn1,r=n.DERSequence,i=(n.ASN1Object,n.tsp),a=i.PKIStatusInfo;i.TimeStampResp.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params,t=[];if(void 0!=e.econtent||void 0!=e.tst)if(void 0!=e.statusinfo?t.push(new a(e.statusinfo)):t.push(new a("granted")),void 0!=e.econtent)t.push(new i.TimeStampToken(e).getContentInfo());else{if(!(e.tst instanceof n.ASN1Object))throw new Error("improper member tst value");t.push(e.tst)}else{if(void 0==e.statusinfo)throw new Error("parameter for token nor statusinfo not specified");t.push(new a(e.statusinfo))}var o=new r({array:t});return o.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(En.asn1.tsp.TimeStampResp,En.asn1.ASN1Object),En.asn1.tsp.PKIStatusInfo=function(e){var t=Error,n=En,r=n.asn1,i=r.DERSequence,a=r.tsp,o=a.PKIStatus,s=a.PKIFreeText,l=a.PKIFailureInfo;a.PKIStatusInfo.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params,n=[];if("string"==typeof e)n.push(new o(e));else{if(void 0==e.status)throw new t("property 'status' unspecified");n.push(new o(e.status)),void 0!=e.statusstr&&n.push(new s(e.statusstr)),void 0!=e.failinfo&&n.push(new l(e.failinfo))}var r=new i({array:n});return r.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(En.asn1.tsp.PKIStatusInfo,En.asn1.ASN1Object),En.asn1.tsp.PKIStatus=function(e){var t=Error,n=En,r=n.asn1,i=r.DERInteger,a=r.tsp;a.PKIStatus.superclass.constructor.call(this);var o={granted:0,grantedWithMods:1,rejection:2,waiting:3,revocationWarning:4,revocationNotification:5};this.params=null,this.tohex=function(){var e,n=this.params;if("string"==typeof n)try{e=o[n]}catch(r){throw new t("undefined name: "+n)}else{if("number"!=typeof n)throw new t("unsupported params");e=n}return new i({int:e}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(En.asn1.tsp.PKIStatus,En.asn1.ASN1Object),En.asn1.tsp.PKIFreeText=function(e){var t=Error,n=En,r=n.asn1,i=r.DERSequence,a=r.DERUTF8String,o=r.tsp;o.PKIFreeText.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params;if(!(e instanceof Array))throw new t("wrong params: not array");for(var n=[],r=0;r<e.length;r++)n.push(new a({str:e[r]}));var o=new i({array:n});return o.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(En.asn1.tsp.PKIFreeText,En.asn1.ASN1Object),En.asn1.tsp.PKIFailureInfo=function(e){var t=Error,n=En,r=n.asn1,i=r.DERBitString,a=r.tsp,o=a.PKIFailureInfo,s={badAlg:0,badRequest:2,badDataFormat:5,timeNotAvailable:14,unacceptedPolicy:15,unacceptedExtension:16,addInfoNotAvailable:17,systemFailure:25};o.superclass.constructor.call(this),this.params=null,this.getBinValue=function(){var e=this.params,n=0;if("number"==typeof e&&0<=e&&e<=25){n|=1<<e;for(var r=n.toString(2),i="",a=r.length-1;a>=0;a--)i+=r[a];return i}if("string"==typeof e&&void 0!=s[e])return Lr([e],s);if("object"==typeof e&&void 0!=e.length)return Lr(e,s);throw new t("wrong params")},this.tohex=function(){this.params;var e=this.getBinValue();return new i({bin:e}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(En.asn1.tsp.PKIFailureInfo,En.asn1.ASN1Object),En.asn1.tsp.AbstractTSAAdapter=function(e){this.getTSTHex=function(e,t){throw"not implemented yet"}},En.asn1.tsp.SimpleTSAAdapter=function(e){var t=En,n=t.asn1,r=n.tsp,i=t.crypto.Util.hashHex;r.SimpleTSAAdapter.superclass.constructor.call(this),this.params=null,this.serial=0,this.getTSTHex=function(e,t){var n=i(e,t);this.params.econtent.content.messageImprint={alg:t,hash:n},this.params.econtent.content.serial={int:this.serial++};var a=Math.floor(1e9*Math.random());this.params.econtent.content.nonce={int:a};var o=new r.TimeStampToken(this.params);return o.getContentInfoEncodedHex()},void 0!==e&&(this.params=e)},Pr(En.asn1.tsp.SimpleTSAAdapter,En.asn1.tsp.AbstractTSAAdapter),En.asn1.tsp.FixedTSAAdapter=function(e){var t=En,n=t.asn1,r=n.tsp,i=t.crypto.Util.hashHex;r.FixedTSAAdapter.superclass.constructor.call(this),this.params=null,this.getTSTHex=function(e,t){var n=i(e,t);this.params.econtent.content.messageImprint={alg:t,hash:n};var a=new r.TimeStampToken(this.params);return a.getContentInfoEncodedHex()},void 0!==e&&(this.params=e)},Pr(En.asn1.tsp.FixedTSAAdapter,En.asn1.tsp.AbstractTSAAdapter),En.asn1.tsp.TSPUtil=new function(){},En.asn1.tsp.TSPUtil.newTimeStampToken=function(e){return new En.asn1.tsp.TimeStampToken(e)},En.asn1.tsp.TSPUtil.parseTimeStampReq=function(e){var t=new En.asn1.tsp.TSPParser;return t.getTimeStampReq(e)},En.asn1.tsp.TSPUtil.parseMessageImprint=function(e){var t=new En.asn1.tsp.TSPParser;return t.getMessageImprint(e)},En.asn1.tsp.TSPParser=function(){Error;var e=Ur,t=new e,n=xn,r=n.getV,i=n.getTLV,a=n.getIdxbyList,o=(n.getTLVbyListEx,n.getChildIdx),s=["granted","grantedWithMods","rejection","waiting","revocationWarning","revocationNotification"],l={0:"badAlg",2:"badRequest",5:"badDataFormat",14:"timeNotAvailable",15:"unacceptedPolicy",16:"unacceptedExtension",17:"addInfoNotAvailable",25:"systemFailure"};this.getResponse=function(e){var t=o(e,0);if(1==t.length)return this.getPKIStatusInfo(i(e,t[0]));if(t.length>1){var n=this.getPKIStatusInfo(i(e,t[0])),r=i(e,t[1]),a=this.getToken(r);return a.statusinfo=n,a}},this.getToken=function(e){var t=new En.asn1.cms.CMSParser,n=t.getCMSSignedData(e);return this.setTSTInfo(n),n},this.setTSTInfo=function(e){var t=e.econtent;if("tstinfo"==t.type){var n=t.content.hex,r=this.getTSTInfo(n);t.content=r}},this.getTSTInfo=function(e){var n={},a=o(e,0),s=r(e,a[1]);n.policy=xr(s);var l=i(e,a[2]);n.messageImprint=this.getMessageImprint(l);var c=r(e,a[3]);n.serial={hex:c};var u=r(e,a[4]);n.genTime={str:Un(u)};var d=0;if(a.length>5&&"30"==e.substr(a[5],2)){var h=i(e,a[5]);n.accuracy=this.getAccuracy(h),d++}if(a.length>5+d&&"01"==e.substr(a[5+d],2)){var p=r(e,a[5+d]);"ff"==p&&(n.ordering=!0),d++}if(a.length>5+d&&"02"==e.substr(a[5+d],2)){var f=r(e,a[5+d]);n.nonce={hex:f},d++}if(a.length>5+d&&"a0"==e.substr(a[5+d],2)){var m=i(e,a[5+d]);m="30"+m.substr(2),pGeneralNames=t.getGeneralNames(m);var g=pGeneralNames[0].dn;n.tsa=g,d++}if(a.length>5+d&&"a1"==e.substr(a[5+d],2)){var v=i(e,a[5+d]);v="30"+v.substr(2);var b=t.getExtParamArray(v);n.ext=b,d++}return n},this.getAccuracy=function(e){for(var t={},n=o(e,0),i=0;i<n.length;i++){var a=e.substr(n[i],2),s=r(e,n[i]),l=parseInt(s,16);"02"==a?t.seconds=l:"80"==a?t.millis=l:"81"==a&&(t.micros=l)}return t},this.getMessageImprint=function(e){if("30"!=e.substr(0,2))throw new Error("head of messageImprint hex shall be x30");var t={},i=(o(e,0),a(e,0,[0,0])),s=r(e,i),l=n.hextooidstr(s),c=En.asn1.x509.OID.oid2name(l);if(""==c)throw new Error("hashAlg name undefined: "+l);var u=c,d=a(e,0,[1]);return t.alg=u,t.hash=r(e,d),t},this.getPKIStatusInfo=function(e){var t={},n=o(e,0),a=0;try{var l=r(e,n[0]),c=parseInt(l,16);t.status=s[c]}catch(h){}if(n.length>1&&"30"==e.substr(n[1],2)){var u=i(e,n[1]);t.statusstr=this.getPKIFreeText(u),a++}if(n.length>a&&"03"==e.substr(n[1+a],2)){var d=i(e,n[1+a]);t.failinfo=this.getPKIFailureInfo(d)}return t},this.getPKIFreeText=function(e){for(var t=[],r=o(e,0),i=0;i<r.length;i++)t.push(n.getString(e,r[i]));return t},this.getPKIFailureInfo=function(e){var t=n.getInt(e,0);return void 0!=l[t]?l[t]:t},this.getTimeStampReq=function(e){var t={certreq:!1},a=o(e,0);if(a.length<2)throw new Error("TimeStampReq must have at least 2 items");var s=i(e,a[1]);t.messageImprint=En.asn1.tsp.TSPUtil.parseMessageImprint(s);for(var l=2;l<a.length;l++){var c=a[l],u=e.substr(c,2);if("06"==u){var d=r(e,c);t.policy=n.hextooidstr(d)}"02"==u&&(t.nonce=r(e,c)),"01"==u&&(t.certreq=!0)}return t}},"undefined"!=typeof En&&En||(En={}),"undefined"!=typeof En.asn1&&En.asn1||(En.asn1={}),"undefined"!=typeof En.asn1.cades&&En.asn1.cades||(En.asn1.cades={}),En.asn1.cades.SignaturePolicyIdentifier=function(e){var t=En,n=t.asn1,r=n.cades,i=r.SignaturePolicyId;r.SignaturePolicyIdentifier.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.16.2.15",this.params=null,this.getValueArray=function(){return[new i(this.params)]},this.setByParam=function(e){this.params=e},void 0!=e&&this.setByParam(e)},Pr(En.asn1.cades.SignaturePolicyIdentifier,En.asn1.cms.Attribute),En.asn1.cades.SignaturePolicyId=function(e){var t=En,n=t.asn1,r=n.DERSequence,i=n.DERObjectIdentifier,a=n.x509,o=(a.AlgorithmIdentifier,n.cades),s=o.SignaturePolicyId,l=o.OtherHashAlgAndValue;s.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params,t=[];t.push(new i(e.oid)),t.push(new l(e));var n=new r({array:t});return n.tohex()},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(e){this.params=e},void 0!=e&&this.setByParam(e)},Pr(En.asn1.cades.SignaturePolicyId,En.asn1.ASN1Object),En.asn1.cades.OtherHashAlgAndValue=function(e){var t=Error,n=En,r=n.asn1,i=r.DERSequence,a=r.DEROctetString,o=r.x509,s=o.AlgorithmIdentifier,l=r.cades,c=l.OtherHashAlgAndValue;c.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params;if(void 0==e.alg)throw new t("property 'alg' not specified");if(void 0==e.hash&&void 0==e.cert)throw new t("property 'hash' nor 'cert' not specified");var n=null;if(void 0!=e.hash)n=e.hash;else if(void 0!=e.cert){if("string"!=typeof e.cert)throw new t("cert not string");var r=e.cert;-1!=e.cert.indexOf("-----BEGIN")&&(r=Qn(e.cert)),n=En.crypto.Util.hashHex(r,e.alg)}var o=[];o.push(new s({name:e.alg})),o.push(new a({hex:n}));var l=new i({array:o});return l.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(En.asn1.cades.OtherHashAlgAndValue,En.asn1.ASN1Object),En.asn1.cades.OtherHashValue=function(e){En.asn1.cades.OtherHashValue.superclass.constructor.call(this);var t=Error,n=En,r=(n.lang.String.isHex,n.asn1),i=r.DEROctetString;n.crypto.Util.hashHex;this.params=null,this.tohex=function(){var e=this.params;if(void 0==e.hash&&void 0==e.cert)throw new t("hash or cert not specified");var n=null;if(void 0!=e.hash)n=e.hash;else if(void 0!=e.cert){if("string"!=typeof e.cert)throw new t("cert not string");var r=e.cert;-1!=e.cert.indexOf("-----BEGIN")&&(r=Qn(e.cert)),n=En.crypto.Util.hashHex(r,"sha1")}return new i({hex:n}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(En.asn1.cades.OtherHashValue,En.asn1.ASN1Object),En.asn1.cades.SignatureTimeStamp=function(e){var t=Error,n=En,r=n.lang.String.isHex,i=n.asn1,a=i.ASN1Object,o=(i.x509,i.cades);o.SignatureTimeStamp.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.16.2.14",this.params=null,this.getValueArray=function(){var e=this.params;if(void 0!=e.tst){if(r(e.tst)){var n=new a;return n.hTLV=e.tst,[n]}if(e.tst instanceof a)return[e.tst];throw new t("params.tst has wrong value")}if(void 0!=e.res){var i=e.res;if(i instanceof a&&(i=i.tohex()),"string"!=typeof i||!r(i))throw new t("params.res has wrong value");xn.getTLVbyList(i,0,[1]),n=new a;return n.hTLV=e.tst,[n]}},null!=e&&this.setByParam(e)},Pr(En.asn1.cades.SignatureTimeStamp,En.asn1.cms.Attribute),En.asn1.cades.CompleteCertificateRefs=function(e){var t=Error,n=En,r=n.asn1,i=r.DERSequence,a=r.cades,o=a.OtherCertID,s=n.lang.String.isHex;a.CompleteCertificateRefs.superclass.constructor.call(this),this.typeOid="1.2.840.113549.1.9.16.2.21",this.params=null,this.getValueArray=function(){for(var e=this.params,n=[],r=0;r<e.array.length;r++){var a=e.array[r];if("string"==typeof a)if(-1!=a.indexOf("-----BEGIN"))a={cert:a};else{if(!s(a))throw new t("unsupported value: "+a);a={hash:a}}void 0!=e.alg&&void 0==a.alg&&(a.alg=e.alg),void 0!=e.hasis&&void 0==a.hasis&&(a.hasis=e.hasis);var l=new o(a);n.push(l)}var c=new i({array:n});return[c]},void 0!=e&&this.setByParam(e)},Pr(En.asn1.cades.CompleteCertificateRefs,En.asn1.cms.Attribute),En.asn1.cades.OtherCertID=function(e){var t=En,n=t.asn1,r=n.DERSequence,i=n.cms,a=i.IssuerSerial,o=n.cades,s=o.OtherHashValue,l=o.OtherHashAlgAndValue;o.OtherCertID.superclass.constructor.call(this),this.params=e,this.tohex=function(){var e=this.params;"string"==typeof e&&(-1!=e.indexOf("-----BEGIN")?e={cert:e}:_isHex(e)&&(e={hash:e}));var t=[],n=null;if(n=void 0!=e.alg?new l(e):new s(e),t.push(n),void 0!=e.cert&&1==e.hasis||void 0!=e.issuer&&void 0!=e.serial){var i=new a(e);t.push(i)}var o=new r({array:t});return o.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(En.asn1.cades.OtherCertID,En.asn1.ASN1Object),En.asn1.cades.OtherHash=function(e){Error;var t=En,n=t.asn1,r=(n.cms,n.cades),i=r.OtherHashAlgAndValue,a=r.OtherHashValue,o=(t.crypto.Util.hashHex,t.lang.String.isHex);r.OtherHash.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params;"string"==typeof e&&(-1!=e.indexOf("-----BEGIN")?e={cert:e}:o(e)&&(e={hash:e}));var t=null;return t=void 0!=e.alg?new i(e):new a(e),t.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(En.asn1.cades.OtherHash,En.asn1.ASN1Object),En.asn1.cades.CAdESUtil=new function(){},En.asn1.cades.CAdESUtil.parseSignedDataForAddingUnsigned=function(e){var t=new En.asn1.cms.CMSParser,n=t.getCMSSignedData(e);return n},En.asn1.cades.CAdESUtil.parseSignerInfoForAddingUnsigned=function(e,t,n){var r=xn,i=r.getChildIdx,a=r.getTLV,o=r.getV,s=En,l=s.asn1,c=l.ASN1Object,u=l.cms,d=u.AttributeList,h=u.SignerInfo,p={},f=i(e,t);if(6!=f.length)throw"not supported items for SignerInfo (!=6)";var m=f.shift();p.version=a(e,m);var g=f.shift();p.si=a(e,g);var v=f.shift();p.digalg=a(e,v);var b=f.shift();p.sattrs=a(e,b);var y=f.shift();p.sigalg=a(e,y);var _=f.shift();p.sig=a(e,_),p.sigval=o(e,_);var w=null;return p.obj=new h,w=new c,w.hTLV=p.version,p.obj.dCMSVersion=w,w=new c,w.hTLV=p.si,p.obj.dSignerIdentifier=w,w=new c,w.hTLV=p.digalg,p.obj.dDigestAlgorithm=w,w=new c,w.hTLV=p.sattrs,p.obj.dSignedAttrs=w,w=new c,w.hTLV=p.sigalg,p.obj.dSigAlg=w,w=new c,w.hTLV=p.sig,p.obj.dSig=w,p.obj.dUnsignedAttrs=new d,p},"undefined"!=typeof En.asn1.csr&&En.asn1.csr||(En.asn1.csr={}),En.asn1.csr.CertificationRequest=function(e){var t=En,n=t.asn1,r=n.DERBitString,i=n.DERSequence,a=n.csr,o=(n.x509,a.CertificationRequestInfo);a.CertificationRequest.superclass.constructor.call(this),this.setByParam=function(e){this.params=e},this.sign=function(){var e=new o(this.params).tohex(),t=new En.crypto.Signature({alg:this.params.sigalg});t.init(this.params.sbjprvkey),t.updateHex(e);var n=t.sign();this.params.sighex=n},this.getPEM=function(){return Yn(this.tohex(),"CERTIFICATE REQUEST")},this.tohex=function(){var e=this.params,t=new En.asn1.csr.CertificationRequestInfo(this.params),n=new En.asn1.x509.AlgorithmIdentifier({name:e.sigalg});if(void 0==e.sighex&&void 0!=e.sbjprvkey&&this.sign(),void 0==e.sighex)throw new Error("sighex or sbjprvkey parameter not defined");var a=new r({hex:"00"+e.sighex}),o=new i({array:[t,n,a]});return o.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},Pr(En.asn1.csr.CertificationRequest,En.asn1.ASN1Object),En.asn1.csr.CertificationRequestInfo=function(e){var t=En,n=t.asn1,r=(n.DERBitString,n.DERSequence),i=n.DERInteger,a=n.DERUTF8String,o=n.DERTaggedObject,s=n.ASN1Util.newObject,l=n.csr,c=n.x509,u=c.X500Name,d=c.Extensions,h=c.SubjectPublicKeyInfo;l.AttributeList;function p(e){for(var t=Error,n=En.asn1.x509.Extensions,r=[],i=0;i<e.length;i++){var a=e[i],o=a.attr;if("extensionRequest"==o){var s=new n(a.ext),l={seq:[{oid:"1.2.840.113549.1.9.14"},{set:[s]}]};r.push(l)}else if("unstructuredName"==o){l={seq:[{oid:"1.2.840.113549.1.9.2"},{set:a.names}]};r.push(l)}else{if("challengePassword"!=o)throw new t("unknown CSR attribute");l={seq:[{oid:"1.2.840.113549.1.9.7"},{set:[{utf8str:a.password}]}]};r.push(l)}}return{set:r}}l.CertificationRequestInfo.superclass.constructor.call(this),this.params=null,this.setByParam=function(e){void 0!=e&&(this.params=e)},this.tohex=function(){var e=this.params,t=[];if(t.push(new i({int:0})),t.push(new u(e.subject)),t.push(new h(Mr.getKey(e.sbjpubkey))),void 0!=e.attrs){var n=p(e.attrs),l=s({tag:{tage:"a0",obj:n}});t.push(l)}else if(void 0!=e.extreq){var c=new d(e.extreq);l=s({tag:{tage:"a0",obj:{seq:[{oid:"1.2.840.113549.1.9.14"},{set:[c]}]}}});t.push(l)}else t.push(new o({tag:"a0",explicit:!1,obj:new a({str:""})}));var f=new r({array:t});return f.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!=e&&this.setByParam(e)},Pr(En.asn1.csr.CertificationRequestInfo,En.asn1.ASN1Object),En.asn1.csr.AttributeList=function(e){},Pr(En.asn1.csr.AttributeList,En.asn1.ASN1Object),En.asn1.csr.CSRUtil=new function(){},En.asn1.csr.CSRUtil.newCSRPEM=function(e){var t=En.asn1.csr,n=new t.CertificationRequest(e),r=n.getPEM();return r},En.asn1.csr.CSRUtil.getParam=function(e,t){var n=xn,r=n.getV,i=n.getIdxbyList,a=n.getTLVbyList,o=n.getTLVbyListEx,s=n.getVbyListEx,l=function(e){var t=i(e,0,[0,3,0,0],"06");return"2a864886f70d01090e"!=r(e,t)?null:a(e,0,[0,3,0,1,0],"30")},c={};if(-1==e.indexOf("-----BEGIN CERTIFICATE REQUEST"))throw new Error("argument is not PEM file");var u=Qn(e,"CERTIFICATE REQUEST");t&&(c.tbs=a(u,0,[0]));try{var d=o(u,0,[0,1]);if("3000"==d)c.subject={};else{var h=new Ur;c.subject=h.getX500Name(d)}}catch(b){}var p=o(u,0,[0,2]),f=Mr.getKey(p,null,"pkcs8pub");c.sbjpubkey=Mr.getPEM(f,"PKCS8PUB");var m=l(u);h=new Ur;null!=m&&(c.extreq=h.getExtParamArray(m));try{var g=o(u,0,[1],"30");h=new Ur;c.sigalg=h.getAlgorithmIdentifierName(g)}catch(b){}try{var v=s(u,0,[2]);c.sighex=v}catch(b){}return c},En.asn1.csr.CSRUtil.verifySignature=function(e){try{var t=null;if("string"==typeof e&&-1!=e.indexOf("-----BEGIN CERTIFICATE REQUEST")?t=En.asn1.csr.CSRUtil.getParam(e,!0):"object"==typeof e&&void 0!=e.sbjpubkey&&void 0!=e.sigalg&&void 0!=e.sighex&&void 0!=e.tbs&&(t=e),null==t)return!1;var n=new En.crypto.Signature({alg:t.sigalg});return n.init(t.sbjpubkey),n.updateHex(t.tbs),n.verify(t.sighex)}catch(r){return alert(r),!1}},"undefined"!=typeof En&&En||(En={}),"undefined"!=typeof En.asn1&&En.asn1||(En.asn1={}),"undefined"!=typeof En.asn1.ocsp&&En.asn1.ocsp||(En.asn1.ocsp={}),En.asn1.ocsp.DEFAULT_HASH="sha1",En.asn1.ocsp.OCSPResponse=function(e){En.asn1.ocsp.OCSPResponse.superclass.constructor.call(this);En.asn1.DEREnumerated;var t=En.asn1.ASN1Util.newObject,n=En.asn1.ocsp.ResponseBytes,r=["successful","malformedRequest","internalError","tryLater","_not_used_","sigRequired","unauthorized"];this.params=null,this._getStatusCode=function(){var e=this.params.resstatus;return"number"==typeof e?e:"string"!=typeof e?-1:r.indexOf(e)},this.setByParam=function(e){this.params=e},this.tohex=function(){var e=this.params,r=this._getStatusCode();if(-1==r)throw new Error("responseStatus not supported: "+e.resstatus);if(0!=r)return t({seq:[{enum:{int:r}}]}).tohex();var i=new n(e);return t({seq:[{enum:{int:0}},{tag:{tag:"a0",explicit:!0,obj:i}}]}).tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},Pr(En.asn1.ocsp.OCSPResponse,En.asn1.ASN1Object),En.asn1.ocsp.ResponseBytes=function(e){En.asn1.ocsp.ResponseBytes.superclass.constructor.call(this);var t=En.asn1,n=t.DERSequence,r=t.DERObjectIdentifier,i=t.DEROctetString,a=t.ocsp.BasicOCSPResponse;this.params=null,this.setByParam=function(e){this.params=e},this.tohex=function(){var e=this.params;if("ocspBasic"!=e.restype)throw new Error("not supported responseType: "+e.restype);var t=new a(e),o=[];o.push(new r({name:"ocspBasic"})),o.push(new i({hex:t.tohex()}));var s=new n({array:o});return s.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},Pr(En.asn1.ocsp.ResponseBytes,En.asn1.ASN1Object),En.asn1.ocsp.BasicOCSPResponse=function(e){En.asn1.ocsp.BasicOCSPResponse.superclass.constructor.call(this);var t=Error,n=En.asn1,r=n.ASN1Object,i=n.DERSequence,a=(n.DERGeneralizedTime,n.DERTaggedObject),o=n.DERBitString,s=(n.x509.Extensions,n.x509.AlgorithmIdentifier),l=n.ocsp;l.ResponderID;_SingleResponseList=l.SingleResponseList,_ResponseData=l.ResponseData,this.params=null,this.setByParam=function(e){this.params=e},this.sign=function(){var e=this.params,t=e.tbsresp.tohex(),n=new En.crypto.Signature({alg:e.sigalg});n.init(e.reskey),n.updateHex(t),e.sighex=n.sign()},this.tohex=function(){var e=this.params;void 0==e.tbsresp&&(e.tbsresp=new _ResponseData(e)),void 0==e.sighex&&void 0!=e.reskey&&this.sign();var n=[];if(n.push(e.tbsresp),n.push(new s({name:e.sigalg})),n.push(new o({hex:"00"+e.sighex})),void 0!=e.certs&&void 0!=e.certs.length){for(var l=[],c=0;c<e.certs.length;c++){var u=e.certs[c],d=null;if(xn.isASN1HEX(u))d=u;else{if(!u.match(/-----BEGIN/))throw new t("certs["+c+"] not hex or PEM");d=Qn(u)}l.push(new r({tlv:d}))}var h=new i({array:l});n.push(new a({tag:"a0",explicit:!0,obj:h}))}var p=new i({array:n});return p.tohex()},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},Pr(En.asn1.ocsp.BasicOCSPResponse,En.asn1.ASN1Object),En.asn1.ocsp.ResponseData=function(e){En.asn1.ocsp.ResponseData.superclass.constructor.call(this);var t=Error,n=En.asn1,r=n.DERSequence,i=n.DERGeneralizedTime,a=n.DERTaggedObject,o=n.x509.Extensions,s=n.ocsp,l=s.ResponderID;_SingleResponseList=s.SingleResponseList,this.params=null,this.tohex=function(){var e=this.params;void 0!=e.respid&&new t("respid not specified"),void 0!=e.prodat&&new t("prodat not specified"),void 0!=e.array&&new t("array not specified");var n=[];if(n.push(new l(e.respid)),n.push(new i(e.prodat)),n.push(new _SingleResponseList(e.array)),void 0!=e.ext){var s=new o(e.ext);n.push(new a({tag:"a1",explicit:!0,obj:s}))}var c=new r({array:n});return c.tohex()},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(e){this.params=e},void 0!==e&&this.setByParam(e)},Pr(En.asn1.ocsp.ResponseData,En.asn1.ASN1Object),En.asn1.ocsp.ResponderID=function(e){En.asn1.ocsp.ResponderID.superclass.constructor.call(this);var t=En,n=t.asn1,r=n.ASN1Util.newObject,i=n.x509.X500Name,a=t.lang.String.isHex,o=Error;this.params=null,this.tohex=function(){var e=this.params;if(void 0!=e.key){var t=null;if("string"==typeof e.key){if(a(e.key)&&(t=e.key),e.key.match(/-----BEGIN CERTIFICATE/)){var n=new Ur(e.key),s=n.getExtSubjectKeyIdentifier();null!=s&&(t=s.kid.hex)}}else if(e.key instanceof Ur){s=e.key.getExtSubjectKeyIdentifier();null!=s&&(t=s.kid.hex)}if(null==t)throw new o("wrong key member value");var l=r({tag:{tag:"a2",explicit:!0,obj:{octstr:{hex:t}}}});return l.tohex()}if(void 0!=e.name){var c=null;if("string"==typeof e.name&&e.name.match(/-----BEGIN CERTIFICATE/)){n=new Ur(e.name);c=n.getSubject()}else e.name instanceof Ur?c=e.name.getSubject():"object"!=typeof e.name||void 0==e.name.array&&void 0==e.name.str||(c=e.name);if(null==c)throw new o("wrong name member value");l=r({tag:{tag:"a1",explicit:!0,obj:new i(c)}});return l.tohex()}throw new o("key or name not specified")},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(e){this.params=e},void 0!==e&&this.setByParam(e)},Pr(En.asn1.ocsp.ResponderID,En.asn1.ASN1Object),En.asn1.ocsp.SingleResponseList=function(e){En.asn1.ocsp.SingleResponseList.superclass.constructor.call(this);var t=En.asn1,n=t.DERSequence,r=t.ocsp.SingleResponse;this.params=null,this.tohex=function(){var e=this.params;if("object"!=typeof e||void 0==e.length)throw new Error("params not specified properly");for(var t=[],i=0;i<e.length;i++)t.push(new r(e[i]));var a=new n({array:t});return a.tohex()},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(e){this.params=e},void 0!==e&&this.setByParam(e)},Pr(En.asn1.ocsp.SingleResponseList,En.asn1.ASN1Object),En.asn1.ocsp.SingleResponse=function(e){var t=Error,n=En,r=n.asn1,i=r.DERSequence,a=r.DERGeneralizedTime,o=r.DERTaggedObject,s=r.ocsp,l=s.CertID,c=s.CertStatus,u=r.x509,d=u.Extensions;s.SingleResponse.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params,n=[];if(void 0==e.certid)throw new t("certid unspecified");if(void 0==e.status)throw new t("status unspecified");if(void 0==e.thisupdate)throw new t("thisupdate unspecified");if(n.push(new l(e.certid)),n.push(new c(e.status)),n.push(new a(e.thisupdate)),void 0!=e.nextupdate){var r=new a(e.nextupdate);n.push(new o({tag:"a0",explicit:!0,obj:r}))}if(void 0!=e.ext){var s=new d(e.ext);n.push(new o({tag:"a1",explicit:!0,obj:s}))}var u=new i({array:n});return u.tohex()},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(e){this.params=e},void 0!==e&&this.setByParam(e)},Pr(En.asn1.ocsp.SingleResponse,En.asn1.ASN1Object),En.asn1.ocsp.CertID=function(e){var t=En,n=t.asn1,r=n.DEROctetString,i=n.DERInteger,a=n.DERSequence,o=n.x509,s=o.AlgorithmIdentifier,l=n.ocsp,c=(l.DEFAULT_HASH,t.crypto),u=c.Util.hashHex,d=Ur,h=xn,p=h.getVbyList;l.CertID.superclass.constructor.call(this),this.DEFAULT_HASH="sha1",this.params=null,this.setByValue=function(e,t,n,r){void 0==r&&(r=this.DEFAULT_HASH),this.params={alg:r,issname:e,isskey:t,sbjsn:n}},this.setByCert=function(e,t,n){void 0==n&&(n=this.DEFAULT_HASH),this.params={alg:n,issuerCert:e,subjectCert:t}},this.getParamByCerts=function(e,t,n){void 0==n&&(n=this.DEFAULT_HASH);var r=new d(e),i=new d(t),a=u(r.getSubjectHex(),n),o=r.getPublicKeyHex(),s=u(p(o,0,[1],"03",!0),n),l=i.getSerialNumberHex(),c={alg:n,issname:a,isskey:s,sbjsn:l};return c},this.tohex=function(){if("object"!=typeof this.params)throw new Error("params not set");var e,t,n,o,l=this.params;if(o=void 0==l.alg?this.DEFAULT_HASH:l.alg,void 0!=l.issuerCert&&void 0!=l.subjectCert){var c=this.getParamByCerts(l.issuerCert,l.subjectCert,o);e=c.issname,t=c.isskey,n=c.sbjsn}else{if(void 0==l.issname||void 0==l.isskey||void 0==l.sbjsn)throw new Error("required param members not defined");e=l.issname,t=l.isskey,n=l.sbjsn}var u=new s({name:o}),d=new r({hex:e}),h=new r({hex:t}),p=new i({hex:n}),f=new a({array:[u,d,h,p]});return this.hTLV=f.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&this.setByParam(e)},Pr(En.asn1.ocsp.CertID,En.asn1.ASN1Object),En.asn1.ocsp.CertStatus=function(e){En.asn1.ocsp.CertStatus.superclass.constructor.call(this),this.params=null,this.tohex=function(){var e=this.params;if("good"==e.status)return"8000";if("unknown"==e.status)return"8200";if("revoked"==e.status){var t=[{gentime:{str:e.time}}];void 0!=e.reason&&t.push({tag:{tag:"a0",explicit:!0,obj:{enum:{int:e.reason}}}});var n={tag:"a1",explicit:!1,obj:{seq:t}};return En.asn1.ASN1Util.newObject({tag:n}).tohex()}throw new Error("bad status")},this.getEncodedHex=function(){return this.tohex()},this.setByParam=function(e){this.params=e},void 0!==e&&this.setByParam(e)},Pr(En.asn1.ocsp.CertStatus,En.asn1.ASN1Object),En.asn1.ocsp.Request=function(e){var t=En,n=t.asn1,r=n.DERSequence,i=n.ocsp;if(i.Request.superclass.constructor.call(this),this.dReqCert=null,this.dExt=null,this.tohex=function(){var e=[];if(null===this.dReqCert)throw"reqCert not set";e.push(this.dReqCert);var t=new r({array:e});return this.hTLV=t.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},"undefined"!==typeof e){var a=new i.CertID(e);this.dReqCert=a}},Pr(En.asn1.ocsp.Request,En.asn1.ASN1Object),En.asn1.ocsp.TBSRequest=function(e){var t=En,n=t.asn1,r=n.DERSequence,i=n.ocsp;i.TBSRequest.superclass.constructor.call(this),this.version=0,this.dRequestorName=null,this.dRequestList=[],this.dRequestExt=null,this.setRequestListByParam=function(e){for(var t=[],n=0;n<e.length;n++){var r=new i.Request(e[0]);t.push(r)}this.dRequestList=t},this.tohex=function(){var e=[];if(0!==this.version)throw"not supported version: "+this.version;if(null!==this.dRequestorName)throw"requestorName not supported";var t=new r({array:this.dRequestList});if(e.push(t),null!==this.dRequestExt)throw"requestExtensions not supported";var n=new r({array:e});return this.hTLV=n.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&void 0!==e.reqList&&this.setRequestListByParam(e.reqList)},Pr(En.asn1.ocsp.TBSRequest,En.asn1.ASN1Object),En.asn1.ocsp.OCSPRequest=function(e){var t=En,n=t.asn1,r=n.DERSequence,i=n.ocsp;if(i.OCSPRequest.superclass.constructor.call(this),this.dTbsRequest=null,this.dOptionalSignature=null,this.tohex=function(){var e=[];if(null===this.dTbsRequest)throw"tbsRequest not set";if(e.push(this.dTbsRequest),null!==this.dOptionalSignature)throw"optionalSignature not supported";var t=new r({array:e});return this.hTLV=t.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},void 0!==e&&void 0!==e.reqList){var a=new i.TBSRequest(e);this.dTbsRequest=a}},Pr(En.asn1.ocsp.OCSPRequest,En.asn1.ASN1Object),En.asn1.ocsp.OCSPUtil={},En.asn1.ocsp.OCSPUtil.getRequestHex=function(e,t,n){var r=En,i=r.asn1,a=i.ocsp;void 0===n&&(n=a.DEFAULT_HASH);var o={alg:n,issuerCert:e,subjectCert:t},s=new a.OCSPRequest({reqList:[o]});return s.tohex()},En.asn1.ocsp.OCSPUtil.getOCSPResponseInfo=function(e){var t=xn,n=t.getVbyList,r=t.getVbyListEx,i=t.getIdxbyList,a=(t.getIdxbyListEx,t.getV),o={};try{var s=r(e,0,[0],"0a");o.responseStatus=parseInt(s,16)}catch(d){}if(0!==o.responseStatus)return o;try{var l=i(e,0,[1,0,1,0,0,2,0,1]);"80"===e.substr(l,2)?o.certStatus="good":"a1"===e.substr(l,2)?(o.certStatus="revoked",o.revocationTime=Un(n(e,l,[0]))):"82"===e.substr(l,2)&&(o.certStatus="unknown")}catch(d){}try{var c=i(e,0,[1,0,1,0,0,2,0,2]);o.thisUpdate=Un(a(e,c))}catch(d){}try{var u=i(e,0,[1,0,1,0,0,2,0,3]);"a0"===e.substr(u,2)&&(o.nextUpdate=Un(n(e,u,[0])))}catch(d){}return o},En.asn1.ocsp.OCSPParser=function(){var e=Error,t=Ur,n=new t,r=xn,i=r.getV,a=r.getTLV,o=r.getIdxbyList,s=r.getVbyList,l=r.getTLVbyList,c=r.getVbyListEx,u=r.getTLVbyListEx,d=r.getChildIdx;this.getOCSPRequest=function(t){var n=d(t,0);if(1!=n.length&&2!=n.length)throw new e("wrong number elements: "+n.length);var r=this.getTBSRequest(a(t,n[0]));return r},this.getTBSRequest=function(e){var t={},r=u(e,0,[0],"30");t.array=this.getRequestList(r);var i=u(e,0,["[2]",0],"30");return null!=i&&(t.ext=n.getExtParamArray(i)),t},this.getRequestList=function(e){for(var t=[],n=d(e,0),r=0;r<n.length;r++){e=a(e,n[r]);t.push(this.getRequest(e))}return t},this.getRequest=function(t){var r=d(t,0);if(1!=r.length&&2!=r.length)throw new e("wrong number elements: "+r.length);var i=this.getCertID(a(t,r[0]));if(2==r.length){var s=o(t,0,[1,0]);i.ext=n.getExtParamArray(a(t,s))}return i},this.getCertID=function(n){var r=d(n,0);if(4!=r.length)throw new e("wrong number elements: "+r.length);var o=new t,s={};return s.alg=o.getAlgorithmIdentifierName(a(n,r[0])),s.issname=i(n,r[1]),s.isskey=i(n,r[2]),s.sbjsn=i(n,r[3]),s},this.getOCSPResponse=function(e){var t,n=d(e,0),r=i(e,n[0]),a=parseInt(r);if(1==n.length)return{resstatus:a};var o=l(e,0,[1,0]);return t=this.getResponseBytes(o),t.resstatus=a,t},this.getResponseBytes=function(e){var t,n=d(e,0),r=l(e,0,[1,0]);t=this.getBasicOCSPResponse(r);var a=i(e,n[0]);return t.restype=En.asn1.x509.OID.oid2name(xr(a)),t},this.getBasicOCSPResponse=function(e){var t,n=d(e,0);t=this.getResponseData(a(e,n[0]));var r=new Ur;t.alg=r.getAlgorithmIdentifierName(a(e,n[1]));var o=i(e,n[2]);t.sighex=o.substr(2);var s=c(e,0,["[0]"]);if(null!=s){for(var l=d(s,0),u=[],h=0;h<l.length;h++){var p=a(s,l[h]);u.push(p)}t.certs=u}return t},this.getResponseData=function(e){var t=d(e,0),n=t.length,r={},o=0;"a0"==e.substr(t[0],2)&&o++,r.respid=this.getResponderID(a(e,t[o++]));var s=i(e,t[o++]);if(r.prodat=Un(s),r.array=this.getSingleResponseList(a(e,t[o++])),"a1"==e.substr(t[n-1],2)){var c=l(e,t[n-1],[0]),u=new Ur;r.ext=u.getExtParamArray(c)}return r},this.getResponderID=function(e){var t={};if("a2"==e.substr(0,2)){var n=s(e,0,[0]);t.key=n}if("a1"==e.substr(0,2)){var r=l(e,0,[0]),i=new Ur;t.name=i.getX500Name(r)}return t},this.getSingleResponseList=function(e){for(var t=d(e,0),n=[],r=0;r<t.length;r++){var i=this.getSingleResponse(a(e,t[r]));n.push(i)}return n},this.getSingleResponse=function(e){var t=d(e,0),n={},r=this.getCertID(a(e,t[0]));n.certid=r;var o=this.getCertStatus(a(e,t[1]));if(n.status=o,"18"==e.substr(t[2],2)){var c=i(e,t[2]);n.thisupdate=Un(c)}for(var u=3;u<t.length;u++){if("a0"==e.substr(t[u],2)){var h=s(e,t[u],[0],"18");n.nextupdate=Un(h)}if("a1"==e.substr(t[u],2)){var p=new Ur,f=l(e,0,[u,0]);n.ext=p.getExtParamArray(f)}}return n},this.getCertStatus=function(e){var t={};if("8000"==e)return{status:"good"};if("8200"==e)return{status:"unknown"};if("a1"==e.substr(0,2)){t.status="revoked";var n=s(e,0,[0]),r=Un(n);t.time=r}return t}},"undefined"!=typeof En&&En||(En={}),"undefined"!=typeof En.lang&&En.lang||(En.lang={}),En.lang.String=function(){},"function"===typeof r?(Sn=function(e){return Ln(r.from(e,"utf8").toString("base64"))},kn=function(e){return r.from(Dn(e),"base64").toString("utf8")}):(Sn=function(e){return Pn(sr(gr(e)))},kn=function(e){return decodeURIComponent(lr(Mn(e)))}),En.lang.String.isInteger=function(e){return!!e.match(/^[0-9]+$/)||!!e.match(/^-[0-9]+$/)},En.lang.String.isHex=function(e){return yr(e)},En.lang.String.isBase64=function(e){return e=e.replace(/\s+/g,""),!(!e.match(/^[0-9A-Za-z+\/]+={0,3}$/)||e.length%4!=0)},En.lang.String.isBase64URL=function(e){return!e.match(/[+/=]/)&&(e=Dn(e),En.lang.String.isBase64(e))},En.lang.String.isIntegerArray=function(e){return e=e.replace(/\s+/g,""),!!e.match(/^\[[0-9,]+\]$/)},En.lang.String.isPrintable=function(e){return null!==e.match(/^[0-9A-Za-z '()+,-./:=?]*$/)},En.lang.String.isIA5=function(e){return null!==e.match(/^[\x20-\x21\x23-\x7f]*$/)},En.lang.String.isMail=function(e){return null!==e.match(/^[A-Za-z0-9]{1}[A-Za-z0-9_.-]*@{1}[A-Za-z0-9_.-]{1,}\.[A-Za-z0-9]{1,}$/)};var Sr=function(e,t){var n=e.length;e.length>t.length&&(n=t.length);for(var r=0;r<n;r++)if(e.charCodeAt(r)!=t.charCodeAt(r))return r;return e.length!=t.length?n:-1};function kr(e){var t=function(e){var t=e.toString(16);return 1==t.length&&(t="0"+t),t},n=function(e){var n="",r=parseInt(e,10),i=r.toString(2),a=7-i.length%7;7==a&&(a=0);for(var o="",s=0;s<a;s++)o+="0";i=o+i;for(s=0;s<i.length-1;s+=7){var l=i.substr(s,7);s!=i.length-7&&(l="1"+l),n+=t(parseInt(l,2))}return n};try{if(!e.match(/^[0-9.]+$/))return null;var r="",i=e.split("."),a=40*parseInt(i[0],10)+parseInt(i[1],10);r+=t(a),i.splice(0,2);for(var o=0;o<i.length;o++)r+=n(i[o]);return r}catch(s){return null}}function xr(e){if(!yr(e))return null;try{var t=[],n=e.substr(0,2),r=parseInt(n,16);t[0]=new String(Math.floor(r/40)),t[1]=new String(r%40);for(var i=e.substr(2),a=[],o=0;o<i.length/2;o++)a.push(parseInt(i.substr(2*o,2),16));var s=[],l="";for(o=0;o<a.length;o++)128&a[o]?l+=Tr((127&a[o]).toString(2),7):(l+=Tr((127&a[o]).toString(2),7),s.push(new String(parseInt(l,2))),l="");var c=t.join(".");return s.length>0&&(c=c+"."+s.join(".")),c}catch(u){return null}}function Ar(e){var t=new v(String(e),10);return Cr(t)}function Cr(e){var t=e.toString(16);if("-"!=t.substr(0,1))return t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t),t;var n=t.substr(1),r=n.length;r%2==1?r+=1:t.match(/^[0-7]/)||(r+=2);for(var i="",a=0;a<r;a++)i+="f";var o=new v(i,16),s=o.xor(e).add(v.ONE);return t=s.toString(16).replace(/^-/,""),t}var Tr=function(e,t,n){return void 0==n&&(n="0"),e.length>=t?e:new Array(t-e.length+1).join(n)+e};function Nr(e){if(e.length%2!=0)return-1;if(e=e.toLowerCase(),null==e.match(/^[0-9a-f]+$/))return-1;try{var t=e.substr(0,2);if("00"==t)return parseInt(e.substr(2),16);var n=parseInt(t,16);if(n>7)return-1;var r=e.substr(2),i=parseInt(r,16).toString(2);"0"==i&&(i="00000000"),i=i.slice(0,0-n);var a=parseInt(i,2);return NaN==a?-1:a}catch(o){return-1}}function Rr(e){if("number"!=typeof e)return null;if(e<0)return null;var t=Number(e).toString(2),n=8-t.length%8;8==n&&(n=0),t+=Tr("",n,"0");var r=parseInt(t,2).toString(16);r.length%2==1&&(r="0"+r);var i="0"+n;return i+r}function Or(e){if("string"!=typeof e)return null;if(e.length%2!=0)return null;if(!e.match(/^[0-9a-f]+$/))return null;try{var t=parseInt(e.substr(0,2),16);if(t<0||7<t)return null;for(var n=e.substr(2),r="",i=0;i<n.length;i+=2){var a=n.substr(i,2),o=parseInt(a,16).toString(2);o=("0000000"+o).slice(-8),r+=o}return r.substr(0,r.length-t)}catch(s){return null}}function Ir(e){if("string"!=typeof e)return null;if(null==e.match(/^[01]+$/))return null;try{var t=parseInt(e,2);return Rr(t)}catch(n){return null}}function Lr(e,t){for(var n=0,r=0;r<e.length;r++)n|=1<<t[e[r]];var i=n.toString(2),a="";for(r=i.length-1;r>=0;r--)a+=i[r];return a}function Dr(e,t,n){if("object"==typeof e){t=String(t).split(".");for(var r=0;r<t.length&&e;r++){var i=t[r];i.match(/^[0-9]+$/)&&(i=parseInt(i)),e=e[i]}return e||!1===e?e:n}}function Pr(e,t){var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.superclass=t.prototype,t.prototype.constructor==Object.prototype.constructor&&(t.prototype.constructor=t)}"undefined"!=typeof En&&En||(En={}),"undefined"!=typeof En.crypto&&En.crypto||(En.crypto={}),En.crypto.Util=new function(){this.DIGESTINFOHEAD={sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",ripemd160:"3021300906052b2403020105000414"},this.DEFAULTPROVIDER={md5:"cryptojs",sha1:"cryptojs",sha224:"cryptojs",sha256:"cryptojs",sha384:"cryptojs",sha512:"cryptojs",ripemd160:"cryptojs",hmacmd5:"cryptojs",hmacsha1:"cryptojs",hmacsha224:"cryptojs",hmacsha256:"cryptojs",hmacsha384:"cryptojs",hmacsha512:"cryptojs",hmacripemd160:"cryptojs",MD5withRSA:"cryptojs/jsrsa",SHA1withRSA:"cryptojs/jsrsa",SHA224withRSA:"cryptojs/jsrsa",SHA256withRSA:"cryptojs/jsrsa",SHA384withRSA:"cryptojs/jsrsa",SHA512withRSA:"cryptojs/jsrsa",RIPEMD160withRSA:"cryptojs/jsrsa",MD5withECDSA:"cryptojs/jsrsa",SHA1withECDSA:"cryptojs/jsrsa",SHA224withECDSA:"cryptojs/jsrsa",SHA256withECDSA:"cryptojs/jsrsa",SHA384withECDSA:"cryptojs/jsrsa",SHA512withECDSA:"cryptojs/jsrsa",RIPEMD160withECDSA:"cryptojs/jsrsa",SHA1withDSA:"cryptojs/jsrsa",SHA224withDSA:"cryptojs/jsrsa",SHA256withDSA:"cryptojs/jsrsa",MD5withRSAandMGF1:"cryptojs/jsrsa",SHAwithRSAandMGF1:"cryptojs/jsrsa",SHA1withRSAandMGF1:"cryptojs/jsrsa",SHA224withRSAandMGF1:"cryptojs/jsrsa",SHA256withRSAandMGF1:"cryptojs/jsrsa",SHA384withRSAandMGF1:"cryptojs/jsrsa",SHA512withRSAandMGF1:"cryptojs/jsrsa",RIPEMD160withRSAandMGF1:"cryptojs/jsrsa"},this.CRYPTOJSMESSAGEDIGESTNAME={md5:l.algo.MD5,sha1:l.algo.SHA1,sha224:l.algo.SHA224,sha256:l.algo.SHA256,sha384:l.algo.SHA384,sha512:l.algo.SHA512,ripemd160:l.algo.RIPEMD160},this.getDigestInfoHex=function(e,t){if("undefined"==typeof this.DIGESTINFOHEAD[t])throw"alg not supported in Util.DIGESTINFOHEAD: "+t;return this.DIGESTINFOHEAD[t]+e},this.getPaddedDigestInfoHex=function(e,t,n){var r=this.getDigestInfoHex(e,t),i=n/4;if(r.length+22>i)throw"key is too short for SigAlg: keylen="+n+","+t;for(var a="0001",o="00"+r,s="",l=i-a.length-o.length,c=0;c<l;c+=2)s+="ff";var u=a+s+o;return u},this.hashString=function(e,t){var n=new En.crypto.MessageDigest({alg:t});return n.digestString(e)},this.hashHex=function(e,t){var n=new En.crypto.MessageDigest({alg:t});return n.digestHex(e)},this.sha1=function(e){return this.hashString(e,"sha1")},this.sha256=function(e){return this.hashString(e,"sha256")},this.sha256Hex=function(e){return this.hashHex(e,"sha256")},this.sha512=function(e){return this.hashString(e,"sha512")},this.sha512Hex=function(e){return this.hashHex(e,"sha512")},this.isKey=function(e){return e instanceof Ut||e instanceof En.crypto.DSA||e instanceof En.crypto.ECDSA}},En.crypto.Util.md5=function(e){var t=new En.crypto.MessageDigest({alg:"md5",prov:"cryptojs"});return t.digestString(e)},En.crypto.Util.ripemd160=function(e){var t=new En.crypto.MessageDigest({alg:"ripemd160",prov:"cryptojs"});return t.digestString(e)},En.crypto.Util.SECURERANDOMGEN=new Ft,En.crypto.Util.getRandomHexOfNbytes=function(e){var t=new Array(e);return En.crypto.Util.SECURERANDOMGEN.nextBytes(t),Tn(t)},En.crypto.Util.getRandomBigIntegerOfNbytes=function(e){return new v(En.crypto.Util.getRandomHexOfNbytes(e),16)},En.crypto.Util.getRandomHexOfNbits=function(e){var t=e%8,n=(e-t)/8,r=new Array(n+1);return En.crypto.Util.SECURERANDOMGEN.nextBytes(r),r[0]=(255<<t&255^255)&r[0],Tn(r)},En.crypto.Util.getRandomBigIntegerOfNbits=function(e){return new v(En.crypto.Util.getRandomHexOfNbits(e),16)},En.crypto.Util.getRandomBigIntegerZeroToMax=function(e){var t=e.bitLength();while(1){var n=En.crypto.Util.getRandomBigIntegerOfNbits(t);if(e.compareTo(n)>=0)return n}},En.crypto.Util.getRandomBigIntegerMinToMax=function(e,t){var n=e.compareTo(t);if(n>0)throw"biMin is greater than biMax";if(0==n)return e;var r=t.subtract(e),i=En.crypto.Util.getRandomBigIntegerZeroToMax(r);return i.add(e)},En.crypto.MessageDigest=function(e){this.setAlgAndProvider=function(e,t){if(e=En.crypto.MessageDigest.getCanonicalAlgName(e),null!==e&&void 0===t&&(t=En.crypto.Util.DEFAULTPROVIDER[e]),-1!=":md5:sha1:sha224:sha256:sha384:sha512:ripemd160:".indexOf(e)&&"cryptojs"==t){try{this.md=En.crypto.Util.CRYPTOJSMESSAGEDIGESTNAME[e].create()}catch(n){throw"setAlgAndProvider hash alg set fail alg="+e+"/"+n}this.updateString=function(e){this.md.update(e)},this.updateHex=function(e){var t=l.enc.Hex.parse(e);this.md.update(t)},this.digest=function(){var e=this.md.finalize();return e.toString(l.enc.Hex)},this.digestString=function(e){return this.updateString(e),this.digest()},this.digestHex=function(e){return this.updateHex(e),this.digest()}}if(-1!=":sha256:".indexOf(e)&&"sjcl"==t){try{this.md=new sjcl.hash.sha256}catch(n){throw"setAlgAndProvider hash alg set fail alg="+e+"/"+n}this.updateString=function(e){this.md.update(e)},this.updateHex=function(e){var t=sjcl.codec.hex.toBits(e);this.md.update(t)},this.digest=function(){var e=this.md.finalize();return sjcl.codec.hex.fromBits(e)},this.digestString=function(e){return this.updateString(e),this.digest()},this.digestHex=function(e){return this.updateHex(e),this.digest()}}},this.updateString=function(e){throw"updateString(str) not supported for this alg/prov: "+this.algName+"/"+this.provName},this.updateHex=function(e){throw"updateHex(hex) not supported for this alg/prov: "+this.algName+"/"+this.provName},this.digest=function(){throw"digest() not supported for this alg/prov: "+this.algName+"/"+this.provName},this.digestString=function(e){throw"digestString(str) not supported for this alg/prov: "+this.algName+"/"+this.provName},this.digestHex=function(e){throw"digestHex(hex) not supported for this alg/prov: "+this.algName+"/"+this.provName},void 0!==e&&void 0!==e.alg&&(this.algName=e.alg,void 0===e.prov&&(this.provName=En.crypto.Util.DEFAULTPROVIDER[this.algName]),this.setAlgAndProvider(this.algName,this.provName))},En.crypto.MessageDigest.getCanonicalAlgName=function(e){return"string"===typeof e&&(e=e.toLowerCase(),e=e.replace(/-/,"")),e},En.crypto.MessageDigest.getHashLength=function(e){var t=En.crypto.MessageDigest,n=t.getCanonicalAlgName(e);if(void 0===t.HASHLENGTH[n])throw"not supported algorithm: "+e;return t.HASHLENGTH[n]},En.crypto.MessageDigest.HASHLENGTH={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,ripemd160:20},En.crypto.Mac=function(e){this.setAlgAndProvider=function(e,t){if(e=e.toLowerCase(),null==e&&(e="hmacsha1"),e=e.toLowerCase(),"hmac"!=e.substr(0,4))throw"setAlgAndProvider unsupported HMAC alg: "+e;void 0===t&&(t=En.crypto.Util.DEFAULTPROVIDER[e]),this.algProv=e+"/"+t;var n=e.substr(4);if(-1!=":md5:sha1:sha224:sha256:sha384:sha512:ripemd160:".indexOf(n)&&"cryptojs"==t){try{var r=En.crypto.Util.CRYPTOJSMESSAGEDIGESTNAME[n];this.mac=l.algo.HMAC.create(r,this.pass)}catch(i){throw"setAlgAndProvider hash alg set fail hashAlg="+n+"/"+i}this.updateString=function(e){this.mac.update(e)},this.updateHex=function(e){var t=l.enc.Hex.parse(e);this.mac.update(t)},this.doFinal=function(){var e=this.mac.finalize();return e.toString(l.enc.Hex)},this.doFinalString=function(e){return this.updateString(e),this.doFinal()},this.doFinalHex=function(e){return this.updateHex(e),this.doFinal()}}},this.updateString=function(e){throw"updateString(str) not supported for this alg/prov: "+this.algProv},this.updateHex=function(e){throw"updateHex(hex) not supported for this alg/prov: "+this.algProv},this.doFinal=function(){throw"digest() not supported for this alg/prov: "+this.algProv},this.doFinalString=function(e){throw"digestString(str) not supported for this alg/prov: "+this.algProv},this.doFinalHex=function(e){throw"digestHex(hex) not supported for this alg/prov: "+this.algProv},this.setPassword=function(e){if("string"==typeof e){var t=e;return e.length%2!=1&&e.match(/^[0-9A-Fa-f]+$/)||(t=Gn(e)),void(this.pass=l.enc.Hex.parse(t))}if("object"!=typeof e)throw"KJUR.crypto.Mac unsupported password type: "+e;t=null;if(void 0!==e.hex){if(e.hex.length%2!=0||!e.hex.match(/^[0-9A-Fa-f]+$/))throw"Mac: wrong hex password: "+e.hex;t=e.hex}if(void 0!==e.utf8&&(t=$n(e.utf8)),void 0!==e.rstr&&(t=Gn(e.rstr)),void 0!==e.b64&&(t=p(e.b64)),void 0!==e.b64u&&(t=Mn(e.b64u)),null==t)throw"KJUR.crypto.Mac unsupported password type: "+e;this.pass=l.enc.Hex.parse(t)},void 0!==e&&(void 0!==e.pass&&this.setPassword(e.pass),void 0!==e.alg&&(this.algName=e.alg,void 0===e.prov&&(this.provName=En.crypto.Util.DEFAULTPROVIDER[this.algName]),this.setAlgAndProvider(this.algName,this.provName)))},En.crypto.Signature=function(e){var t=null;if(this._setAlgNames=function(){var e=this.algName.match(/^(.+)with(.+)$/);e&&(this.mdAlgName=e[1].toLowerCase(),this.pubkeyAlgName=e[2].toLowerCase(),"rsaandmgf1"==this.pubkeyAlgName&&"sha"==this.mdAlgName&&(this.mdAlgName="sha1"))},this._zeroPaddingOfSignature=function(e,t){for(var n="",r=t/4-e.length,i=0;i<r;i++)n+="0";return n+e},this.setAlgAndProvider=function(e,t){if(this._setAlgNames(),"cryptojs/jsrsa"!=t)throw new Error("provider not supported: "+t);if(-1!=":md5:sha1:sha224:sha256:sha384:sha512:ripemd160:".indexOf(this.mdAlgName)){try{this.md=new En.crypto.MessageDigest({alg:this.mdAlgName})}catch(n){throw new Error("setAlgAndProvider hash alg set fail alg="+this.mdAlgName+"/"+n)}this.init=function(e,t){var n=null;try{n=void 0===t?Mr.getKey(e):Mr.getKey(e,t)}catch(r){throw"init failed:"+r}if(!0===n.isPrivate)this.prvKey=n,this.state="SIGN";else{if(!0!==n.isPublic)throw"init failed.:"+n;this.pubKey=n,this.state="VERIFY"}},this.updateString=function(e){this.md.updateString(e)},this.updateHex=function(e){this.md.updateHex(e)},this.sign=function(){if(this.sHashHex=this.md.digest(),void 0===this.prvKey&&void 0!==this.ecprvhex&&void 0!==this.eccurvename&&void 0!==En.crypto.ECDSA&&(this.prvKey=new En.crypto.ECDSA({curve:this.eccurvename,prv:this.ecprvhex})),this.prvKey instanceof Ut&&"rsaandmgf1"===this.pubkeyAlgName)this.hSign=this.prvKey.signWithMessageHashPSS(this.sHashHex,this.mdAlgName,this.pssSaltLen);else if(this.prvKey instanceof Ut&&"rsa"===this.pubkeyAlgName)this.hSign=this.prvKey.signWithMessageHash(this.sHashHex,this.mdAlgName);else if(this.prvKey instanceof En.crypto.ECDSA)this.hSign=this.prvKey.signWithMessageHash(this.sHashHex);else{if(!(this.prvKey instanceof En.crypto.DSA))throw"Signature: unsupported private key alg: "+this.pubkeyAlgName;this.hSign=this.prvKey.signWithMessageHash(this.sHashHex)}return this.hSign},this.signString=function(e){return this.updateString(e),this.sign()},this.signHex=function(e){return this.updateHex(e),this.sign()},this.verify=function(e){if(this.sHashHex=this.md.digest(),void 0===this.pubKey&&void 0!==this.ecpubhex&&void 0!==this.eccurvename&&void 0!==En.crypto.ECDSA&&(this.pubKey=new En.crypto.ECDSA({curve:this.eccurvename,pub:this.ecpubhex})),this.pubKey instanceof Ut&&"rsaandmgf1"===this.pubkeyAlgName)return this.pubKey.verifyWithMessageHashPSS(this.sHashHex,e,this.mdAlgName,this.pssSaltLen);if(this.pubKey instanceof Ut&&"rsa"===this.pubkeyAlgName)return this.pubKey.verifyWithMessageHash(this.sHashHex,e);if(void 0!==En.crypto.ECDSA&&this.pubKey instanceof En.crypto.ECDSA)return this.pubKey.verifyWithMessageHash(this.sHashHex,e);if(void 0!==En.crypto.DSA&&this.pubKey instanceof En.crypto.DSA)return this.pubKey.verifyWithMessageHash(this.sHashHex,e);throw"Signature: unsupported public key alg: "+this.pubkeyAlgName}}},this.init=function(e,t){throw"init(key, pass) not supported for this alg:prov="+this.algProvName},this.updateString=function(e){throw"updateString(str) not supported for this alg:prov="+this.algProvName},this.updateHex=function(e){throw"updateHex(hex) not supported for this alg:prov="+this.algProvName},this.sign=function(){throw"sign() not supported for this alg:prov="+this.algProvName},this.signString=function(e){throw"digestString(str) not supported for this alg:prov="+this.algProvName},this.signHex=function(e){throw"digestHex(hex) not supported for this alg:prov="+this.algProvName},this.verify=function(e){throw"verify(hSigVal) not supported for this alg:prov="+this.algProvName},this.initParams=e,void 0!==e&&(void 0!==e.alg&&(this.algName=e.alg,void 0===e.prov?this.provName=En.crypto.Util.DEFAULTPROVIDER[this.algName]:this.provName=e.prov,this.algProvName=this.algName+":"+this.provName,this.setAlgAndProvider(this.algName,this.provName),this._setAlgNames()),void 0!==e.psssaltlen&&(this.pssSaltLen=e.psssaltlen),void 0!==e.prvkeypem)){if(void 0!==e.prvkeypas)throw"both prvkeypem and prvkeypas parameters not supported";try{t=Mr.getKey(e.prvkeypem);this.init(t)}catch(n){throw"fatal error to load pem private key: "+n}}},En.crypto.Cipher=function(e){},En.crypto.Cipher.encrypt=function(e,t,n,r){if(void 0!=Dr(r,"enclag")&&(n=r.encalg),"string"==typeof n&&"-CBC"==n.substr(-4)){var i=t,a=e;void 0!=Dr(r,"key")&&(i=r.key),void 0!=Dr(r,"enc")&&(hEnc=r.enc);var o,s=l.enc.Hex.parse(i),c=l.enc.Hex.parse(a),u=l.enc.Hex.parse(r.iv);if("des-EDE3-CBC"==n)o=l.TripleDES.encrypt(c,s,{iv:u});else{if("aes128-CBC"!=n&&"aes256-CBC"!=n)throw new Error("unsupported algorithm: "+n);o=l.AES.encrypt(c,s,{iv:u})}return o+""}throw new Error("Cipher.encrypt: unsupported key or algorithm")},En.crypto.Cipher.decrypt=function(e,t,n,r){if(void 0!=Dr(r,"enclag")&&(n=r.encalg),"string"==typeof n&&"-CBC"==n.substr(-4)){var i=t,a=e;void 0!=Dr(r,"key")&&(i=r.key),void 0!=Dr(r,"enc")&&(a=r.enc);var o,s=l.enc.Hex.parse(i),c=l.enc.Hex.parse(a),u=l.enc.Hex.parse(r.iv);if("des-EDE3-CBC"==n)o=l.TripleDES.decrypt({ciphertext:c},s,{iv:u});else{if("aes128-CBC"!=n&&"aes256-CBC"!=n)throw new Error("unsupported algorithm: "+n);o=l.AES.decrypt({ciphertext:c},s,{iv:u})}return l.enc.Hex.stringify(o)}throw new Error("Cipher.decrypt: unsupported key or algorithm")},En.crypto.OID=new function(){this.oidhex2name={"2a864886f70d010101":"rsaEncryption","2a8648ce3d0201":"ecPublicKey","2a8648ce380401":"dsa","2a8648ce3d030107":"secp256r1","2b8104001f":"secp192k1","2b81040021":"secp224r1","2b8104000a":"secp256k1","2b81040022":"secp384r1","2b81040023":"secp521r1","2a8648ce380403":"SHA1withDSA","608648016503040301":"SHA224withDSA","608648016503040302":"SHA256withDSA"}},"undefined"!=typeof En&&En||(En={}),"undefined"!=typeof En.crypto&&En.crypto||(En.crypto={}),En.crypto.ECDSA=function(e){var t="secp256r1",n=Error,r=v,i=nn,a=En.crypto.ECDSA,o=En.crypto.ECParameterDB,s=a.getName,l=xn,c=l.getVbyListEx,u=l.isASN1HEX,d=new Ft;this.type="EC",this.isPrivate=!1,this.isPublic=!1,this.getBigRandom=function(e){return new r(e.bitLength(),d).mod(e.subtract(r.ONE)).add(r.ONE)},this.setNamedCurve=function(e){this.ecparams=o.getByName(e),this.prvKeyHex=null,this.pubKeyHex=null,this.curveName=e},this.setPrivateKeyHex=function(e){this.isPrivate=!0,this.prvKeyHex=e},this.setPublicKeyHex=function(e){this.isPublic=!0,this.pubKeyHex=e},this.getPublicKeyXYHex=function(){var e=this.pubKeyHex;if("04"!==e.substr(0,2))throw"this method supports uncompressed format(04) only";var t=this.ecparams.keycharlen;if(e.length!==2+2*t)throw"malformed public key hex length";var n={};return n.x=e.substr(2,t),n.y=e.substr(2+t),n},this.getShortNISTPCurveName=function(){var e=this.curveName;return"secp256r1"===e||"NIST P-256"===e||"P-256"===e||"prime256v1"===e?"P-256":"secp384r1"===e||"NIST P-384"===e||"P-384"===e?"P-384":"secp521r1"===e||"NIST P-521"===e||"P-521"===e?"P-521":null},this.generateKeyPairHex=function(){var e=this.ecparams.n,t=this.getBigRandom(e),n=this.ecparams.keycharlen,r=("0000000000"+t.toString(16)).slice(-n);this.setPrivateKeyHex(r);var i=this.generatePublicKeyHex();return{ecprvhex:r,ecpubhex:i}},this.generatePublicKeyHex=function(){var e=new r(this.prvKeyHex,16),t=this.ecparams.G.multiply(e),n=t.getX().toBigInteger(),i=t.getY().toBigInteger(),a=this.ecparams.keycharlen,o=("0000000000"+n.toString(16)).slice(-a),s=("0000000000"+i.toString(16)).slice(-a),l="04"+o+s;return this.setPublicKeyHex(l),l},this.signWithMessageHash=function(e){return this.signHex(e,this.prvKeyHex)},this.signHex=function(e,t){var n=new r(t,16),i=this.ecparams.n,o=new r(e.substring(0,this.ecparams.keycharlen),16);do{var s=this.getBigRandom(i),l=this.ecparams.G,c=l.multiply(s),u=c.getX().toBigInteger().mod(i)}while(u.compareTo(r.ZERO)<=0);var d=s.modInverse(i).multiply(o.add(n.multiply(u))).mod(i);return a.biRSSigToASN1Sig(u,d)},this.sign=function(e,t){var n=t,i=this.ecparams.n,a=r.fromByteArrayUnsigned(e);do{var o=this.getBigRandom(i),s=this.ecparams.G,l=s.multiply(o),c=l.getX().toBigInteger().mod(i)}while(c.compareTo(v.ZERO)<=0);var u=o.modInverse(i).multiply(a.add(n.multiply(c))).mod(i);return this.serializeSig(c,u)},this.verifyWithMessageHash=function(e,t){return this.verifyHex(e,t,this.pubKeyHex)},this.verifyHex=function(e,t,n){try{var o,s,l=a.parseSigHex(t);o=l.r,s=l.s;var c=i.decodeFromHex(this.ecparams.curve,n),u=new r(e.substring(0,this.ecparams.keycharlen),16);return this.verifyRaw(u,o,s,c)}catch(d){return!1}},this.verify=function(e,t,n){var a,o,s;if(Bitcoin.Util.isArray(t)){var l=this.parseSig(t);a=l.r,o=l.s}else{if("object"!==typeof t||!t.r||!t.s)throw"Invalid value for signature";a=t.r,o=t.s}if(n instanceof nn)s=n;else{if(!Bitcoin.Util.isArray(n))throw"Invalid format for pubkey value, must be byte array or ECPointFp";s=i.decodeFrom(this.ecparams.curve,n)}var c=r.fromByteArrayUnsigned(e);return this.verifyRaw(c,a,o,s)},this.verifyRaw=function(e,t,n,i){var a=this.ecparams.n,o=this.ecparams.G;if(t.compareTo(r.ONE)<0||t.compareTo(a)>=0)return!1;if(n.compareTo(r.ONE)<0||n.compareTo(a)>=0)return!1;var s=n.modInverse(a),l=e.multiply(s).mod(a),c=t.multiply(s).mod(a),u=o.multiply(l).add(i.multiply(c)),d=u.getX().toBigInteger().mod(a);return d.equals(t)},this.serializeSig=function(e,t){var n=e.toByteArraySigned(),r=t.toByteArraySigned(),i=[];return i.push(2),i.push(n.length),i=i.concat(n),i.push(2),i.push(r.length),i=i.concat(r),i.unshift(i.length),i.unshift(48),i},this.parseSig=function(e){var t;if(48!=e[0])throw new Error("Signature not a valid DERSequence");if(t=2,2!=e[t])throw new Error("First element in signature must be a DERInteger");var n=e.slice(t+2,t+2+e[t+1]);if(t+=2+e[t+1],2!=e[t])throw new Error("Second element in signature must be a DERInteger");var i=e.slice(t+2,t+2+e[t+1]);t+=2+e[t+1];var a=r.fromByteArrayUnsigned(n),o=r.fromByteArrayUnsigned(i);return{r:a,s:o}},this.parseSigCompact=function(e){if(65!==e.length)throw"Signature has the wrong length";var t=e[0]-27;if(t<0||t>7)throw"Invalid signature type";var n=this.ecparams.n,i=r.fromByteArrayUnsigned(e.slice(1,33)).mod(n),a=r.fromByteArrayUnsigned(e.slice(33,65)).mod(n);return{r:i,s:a,i:t}},this.readPKCS5PrvKeyHex=function(e){if(!1===u(e))throw new Error("not ASN.1 hex string");var t,n,r;try{t=c(e,0,["[0]",0],"06"),n=c(e,0,[1],"04");try{r=c(e,0,["[1]",0],"03")}catch(i){}}catch(i){throw new Error("malformed PKCS#1/5 plain ECC private key")}if(this.curveName=s(t),void 0===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(r),this.setPrivateKeyHex(n),this.isPublic=!1},this.readPKCS8PrvKeyHex=function(e){if(!1===u(e))throw new n("not ASN.1 hex string");var t,r,i;try{c(e,0,[1,0],"06"),t=c(e,0,[1,1],"06"),r=c(e,0,[2,0,1],"04");try{i=c(e,0,[2,0,"[1]",0],"03")}catch(a){}}catch(a){throw new n("malformed PKCS#8 plain ECC private key")}if(this.curveName=s(t),void 0===this.curveName)throw new n("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(i),this.setPrivateKeyHex(r),this.isPublic=!1},this.readPKCS8PubKeyHex=function(e){if(!1===u(e))throw new n("not ASN.1 hex string");var t,r;try{c(e,0,[0,0],"06"),t=c(e,0,[0,1],"06"),r=c(e,0,[1],"03")}catch(i){throw new n("malformed PKCS#8 ECC public key")}if(this.curveName=s(t),null===this.curveName)throw new n("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(r)},this.readCertPubKeyHex=function(e,t){if(!1===u(e))throw new n("not ASN.1 hex string");var r,i;try{r=c(e,0,[0,5,0,1],"06"),i=c(e,0,[0,5,1],"03")}catch(a){throw new n("malformed X.509 certificate ECC public key")}if(this.curveName=s(r),null===this.curveName)throw new n("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(i)},void 0!==e&&void 0!==e.curve&&(this.curveName=e.curve),void 0===this.curveName&&(this.curveName=t),this.setNamedCurve(this.curveName),void 0!==e&&(void 0!==e.prv&&this.setPrivateKeyHex(e.prv),void 0!==e.pub&&this.setPublicKeyHex(e.pub))},En.crypto.ECDSA.parseSigHex=function(e){var t=En.crypto.ECDSA.parseSigHexInHexRS(e),n=new v(t.r,16),r=new v(t.s,16);return{r:n,s:r}},En.crypto.ECDSA.parseSigHexInHexRS=function(e){var t=xn,n=t.getChildIdx,r=t.getV;if(t.checkStrictDER(e,0),"30"!=e.substr(0,2))throw new Error("signature is not a ASN.1 sequence");var i=n(e,0);if(2!=i.length)throw new Error("signature shall have two elements");var a=i[0],o=i[1];if("02"!=e.substr(a,2))throw new Error("1st item not ASN.1 integer");if("02"!=e.substr(o,2))throw new Error("2nd item not ASN.1 integer");var s=r(e,a),l=r(e,o);return{r:s,s:l}},En.crypto.ECDSA.asn1SigToConcatSig=function(e){var t=En.crypto.ECDSA.parseSigHexInHexRS(e),n=t.r,r=t.s;if(n.length>=130&&n.length<=134){if(n.length%2!=0)throw Error("unknown ECDSA sig r length error");if(r.length%2!=0)throw Error("unknown ECDSA sig s length error");"00"==n.substr(0,2)&&(n=n.substr(2)),"00"==r.substr(0,2)&&(r=r.substr(2));var i=Math.max(n.length,r.length);return n=("000000"+n).slice(-i),r=("000000"+r).slice(-i),n+r}if("00"==n.substr(0,2)&&n.length%32==2&&(n=n.substr(2)),"00"==r.substr(0,2)&&r.length%32==2&&(r=r.substr(2)),n.length%32==30&&(n="00"+n),r.length%32==30&&(r="00"+r),n.length%32!=0)throw Error("unknown ECDSA sig r length error");if(r.length%32!=0)throw Error("unknown ECDSA sig s length error");return n+r},En.crypto.ECDSA.concatSigToASN1Sig=function(e){if(e.length%4!=0)throw Error("unknown ECDSA concatinated r-s sig length error");var t=e.substr(0,e.length/2),n=e.substr(e.length/2);return En.crypto.ECDSA.hexRSSigToASN1Sig(t,n)},En.crypto.ECDSA.hexRSSigToASN1Sig=function(e,t){var n=new v(e,16),r=new v(t,16);return En.crypto.ECDSA.biRSSigToASN1Sig(n,r)},En.crypto.ECDSA.biRSSigToASN1Sig=function(e,t){var n=En.asn1,r=new n.DERInteger({bigint:e}),i=new n.DERInteger({bigint:t}),a=new n.DERSequence({array:[r,i]});return a.tohex()},En.crypto.ECDSA.getName=function(e){return"2b8104001f"===e?"secp192k1":"2a8648ce3d030107"===e?"secp256r1":"2b8104000a"===e?"secp256k1":"2b81040021"===e?"secp224r1":"2b81040022"===e?"secp384r1":"2b81040023"===e?"secp521r1":-1!=="|secp256r1|NIST P-256|P-256|prime256v1|".indexOf(e)?"secp256r1":-1!=="|secp256k1|".indexOf(e)?"secp256k1":-1!=="|secp224r1|NIST P-224|P-224|".indexOf(e)?"secp224r1":-1!=="|secp384r1|NIST P-384|P-384|".indexOf(e)?"secp384r1":-1!=="|secp521r1|NIST P-521|P-521|".indexOf(e)?"secp521r1":null},"undefined"!=typeof En&&En||(En={}),"undefined"!=typeof En.crypto&&En.crypto||(En.crypto={}),En.crypto.ECParameterDB=new function(){var e={},t={};function n(e){return new v(e,16)}this.getByName=function(n){var r=n;if("undefined"!=typeof t[r]&&(r=t[n]),"undefined"!=typeof e[r])return e[r];throw"unregistered EC curve name: "+r},this.regist=function(r,i,a,o,s,l,c,u,d,h,p,f){e[r]={};var m=n(a),g=n(o),v=n(s),b=n(l),y=n(c),_=new pn(m,g,v),w=_.decodePointHex("04"+u+d);e[r]["name"]=r,e[r]["keylen"]=i,e[r]["keycharlen"]=2*Math.ceil(i/8),e[r]["curve"]=_,e[r]["G"]=w,e[r]["n"]=b,e[r]["h"]=y,e[r]["oid"]=p,e[r]["info"]=f;for(var E=0;E<h.length;E++)t[h[E]]=r}},En.crypto.ECParameterDB.regist("secp128r1",128,"FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFF","FFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFC","E87579C11079F43DD824993C2CEE5ED3","FFFFFFFE0000000075A30D1B9038A115","1","161FF7528B899B2D0C28607CA52C5B86","CF5AC8395BAFEB13C02DA292DDED7A83",[],"","secp128r1 : SECG curve over a 128 bit prime field"),En.crypto.ECParameterDB.regist("secp160k1",160,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFAC73","0","7","0100000000000000000001B8FA16DFAB9ACA16B6B3","1","3B4C382CE37AA192A4019E763036F4F5DD4D7EBB","938CF935318FDCED6BC28286531733C3F03C4FEE",[],"","secp160k1 : SECG curve over a 160 bit prime field"),En.crypto.ECParameterDB.regist("secp160r1",160,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7FFFFFFC","1C97BEFC54BD7A8B65ACF89F81D4D4ADC565FA45","0100000000000000000001F4C8F927AED3CA752257","1","4A96B5688EF573284664698968C38BB913CBFC82","23A628553168947D59DCC912042351377AC5FB32",[],"","secp160r1 : SECG curve over a 160 bit prime field"),En.crypto.ECParameterDB.regist("secp192k1",192,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFEE37","0","3","FFFFFFFFFFFFFFFFFFFFFFFE26F2FC170F69466A74DEFD8D","1","DB4FF10EC057E9AE26B07D0280B7F4341DA5D1B1EAE06C7D","9B2F2F6D9C5628A7844163D015BE86344082AA88D95E2F9D",[]),En.crypto.ECParameterDB.regist("secp192r1",192,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFC","64210519E59C80E70FA7E9AB72243049FEB8DEECC146B9B1","FFFFFFFFFFFFFFFFFFFFFFFF99DEF836146BC9B1B4D22831","1","188DA80EB03090F67CBF20EB43A18800F4FF0AFD82FF1012","07192B95FFC8DA78631011ED6B24CDD573F977A11E794811",[]),En.crypto.ECParameterDB.regist("secp224r1",224,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF000000000000000000000001","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFE","B4050A850C04B3ABF54132565044B0B7D7BFD8BA270B39432355FFB4","FFFFFFFFFFFFFFFFFFFFFFFFFFFF16A2E0B8F03E13DD29455C5C2A3D","1","B70E0CBD6BB4BF7F321390B94A03C1D356C21122343280D6115C1D21","BD376388B5F723FB4C22DFE6CD4375A05A07476444D5819985007E34",[]),En.crypto.ECParameterDB.regist("secp256k1",256,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F","0","7","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141","1","79BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798","483ADA7726A3C4655DA4FBFC0E1108A8FD17B448A68554199C47D08FFB10D4B8",[]),En.crypto.ECParameterDB.regist("secp256r1",256,"FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFF","FFFFFFFF00000001000000000000000000000000FFFFFFFFFFFFFFFFFFFFFFFC","5AC635D8AA3A93E7B3EBBD55769886BC651D06B0CC53B0F63BCE3C3E27D2604B","FFFFFFFF00000000FFFFFFFFFFFFFFFFBCE6FAADA7179E84F3B9CAC2FC632551","1","6B17D1F2E12C4247F8BCE6E563A440F277037D812DEB33A0F4A13945D898C296","4FE342E2FE1A7F9B8EE7EB4A7C0F9E162BCE33576B315ECECBB6406837BF51F5",["NIST P-256","P-256","prime256v1"]),En.crypto.ECParameterDB.regist("secp384r1",384,"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFF0000000000000000FFFFFFFF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFF0000000000000000FFFFFFFC","B3312FA7E23EE7E4988E056BE3F82D19181D9C6EFE8141120314088F5013875AC656398D8A2ED19D2A85C8EDD3EC2AEF","FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC7634D81F4372DDF581A0DB248B0A77AECEC196ACCC52973","1","AA87CA22BE8B05378EB1C71EF320AD746E1D3B628BA79B9859F741E082542A385502F25DBF55296C3A545E3872760AB7","3617de4a96262c6f5d9e98bf9292dc29f8f41dbd289a147ce9da3113b5f0b8c00a60b1ce1d7e819d7a431d7c90ea0e5f",["NIST P-384","P-384"]),En.crypto.ECParameterDB.regist("secp521r1",521,"1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF","1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC","051953EB9618E1C9A1F929A21A0B68540EEA2DA725B99B315F3B8B489918EF109E156193951EC7E937B1652C0BD3BB1BF073573DF883D2C34F1EF451FD46B503F00","1FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA51868783BF2F966B7FCC0148F709A5D03BB5C9B8899C47AEBB6FB71E91386409","1","00C6858E06B70404E9CD9E3ECB662395B4429C648139053FB521F828AF606B4D3DBAA14B5E77EFE75928FE1DC127A2FFA8DE3348B3C1856A429BF97E7E31C2E5BD66","011839296a789a3bc0045c8a5fb42c7d1bd998f54449579b446817afbd17273e662c97ee72995ef42640c550b9013fad0761353c7086a272c24088be94769fd16650",["NIST P-521","P-521"]),"undefined"!=typeof En&&En||(En={}),"undefined"!=typeof En.crypto&&En.crypto||(En.crypto={}),En.crypto.DSA=function(){var e=xn,t=(e.getVbyList,e.getVbyListEx),n=e.isASN1HEX,r=v,i=v.ONE,a=function(e,t,n,r){if(null==e||null==t||null==n||null==r)throw new Error("invalid DSA public key");if(i.compareTo(t)>=0||t.compareTo(e)>=0)throw new Error("invalid DSA public key");if(i.compareTo(n)>=0||n.compareTo(e)>=0)throw new Error("invalid DSA public key");if(i.compareTo(r)>=0||r.compareTo(e)>=0)throw new Error("invalid DSA public key");if(0!=n.modPow(t,e).compareTo(i))throw new Error("invalid DSA public key")};this.p=null,this.q=null,this.g=null,this.y=null,this.x=null,this.type="DSA",this.isPrivate=!1,this.isPublic=!1,this.setPrivate=function(e,t,n,r,i){this.isPrivate=!0,this.p=e,this.q=t,this.g=n,this.y=r,this.x=i},this.setPrivateHex=function(e,t,n,r,i){var a,o,s,l,c;a=new v(e,16),o=new v(t,16),s=new v(n,16),l="string"===typeof r&&r.length>1?new v(r,16):null,c=new v(i,16),this.setPrivate(a,o,s,l,c)},this.setPublic=function(e,t,n,r){a(e,t,n,r),this.isPublic=!0,this.p=e,this.q=t,this.g=n,this.y=r,this.x=null},this.setPublicHex=function(e,t,n,r){var i,a,o,s;i=new v(e,16),a=new v(t,16),o=new v(n,16),s=new v(r,16),this.setPublic(i,a,o,s)},this.signWithMessageHash=function(e){var t,n,r,i=this.p,a=this.q,o=this.g,s=(this.y,this.x),l=e.substr(0,a.bitLength()/4),c=new v(l,16);do{t=En.crypto.Util.getRandomBigIntegerMinToMax(v.ONE.add(v.ONE),a.subtract(v.ONE)),n=o.modPow(t,i).mod(a),r=t.modInverse(a).multiply(c.add(s.multiply(n))).mod(a)}while(0==n.compareTo(v.ZERO)||0==r.compareTo(v.ZERO));var u=En.asn1.ASN1Util.jsonToASN1HEX({seq:[{int:{bigint:n}},{int:{bigint:r}}]});return u},this.verifyWithMessageHash=function(e,t){var n=this.p,r=this.q,i=this.g,a=this.y,o=this.parseASN1Signature(t),s=o[0],l=o[1],c=e.substr(0,r.bitLength()/4),u=new v(c,16);if(v.ZERO.compareTo(s)>0||s.compareTo(r)>0)throw"invalid DSA signature";if(v.ZERO.compareTo(l)>=0||l.compareTo(r)>0)throw"invalid DSA signature";var d=l.modInverse(r),h=u.multiply(d).mod(r),p=s.multiply(d).mod(r),f=i.modPow(h,n).multiply(a.modPow(p,n)).mod(n).mod(r);return 0==f.compareTo(s)},this.parseASN1Signature=function(e){try{var n=new r(t(e,0,[0],"02"),16),i=new r(t(e,0,[1],"02"),16);return[n,i]}catch(a){throw new Error("malformed ASN.1 DSA signature")}},this.readPKCS5PrvKeyHex=function(e){var r,i,a,o,s;if(!1===n(e))throw new Error("not ASN.1 hex string");try{r=t(e,0,[1],"02"),i=t(e,0,[2],"02"),a=t(e,0,[3],"02"),o=t(e,0,[4],"02"),s=t(e,0,[5],"02")}catch(l){throw new Error("malformed PKCS#1/5 plain DSA private key")}this.setPrivateHex(r,i,a,o,s)},this.readPKCS8PrvKeyHex=function(e){var r,i,a,o;if(!1===n(e))throw new Error("not ASN.1 hex string");try{r=t(e,0,[1,1,0],"02"),i=t(e,0,[1,1,1],"02"),a=t(e,0,[1,1,2],"02"),o=t(e,0,[2,0],"02")}catch(s){throw new Error("malformed PKCS#8 plain DSA private key")}this.setPrivateHex(r,i,a,null,o)},this.readPKCS8PubKeyHex=function(e){var r,i,a,o;if(!1===n(e))throw new Error("not ASN.1 hex string");try{r=t(e,0,[0,1,0],"02"),i=t(e,0,[0,1,1],"02"),a=t(e,0,[0,1,2],"02"),o=t(e,0,[1,0],"02")}catch(s){throw new Error("malformed PKCS#8 DSA public key")}this.setPublicHex(r,i,a,o)},this.readCertPubKeyHex=function(e,r){var i,a,o,s;if(!1===n(e))throw new Error("not ASN.1 hex string");try{i=t(e,0,[0,5,0,1,0],"02"),a=t(e,0,[0,5,0,1,1],"02"),o=t(e,0,[0,5,0,1,2],"02"),s=t(e,0,[0,5,1,0],"02")}catch(l){throw new Error("malformed X.509 certificate DSA public key")}this.setPublicHex(i,a,o,s)}};var Mr=function(){var e=function(e,t,n){return r(l.AES,e,t,n)},t=function(e,t,n){return r(l.TripleDES,e,t,n)},n=function(e,t,n){return r(l.DES,e,t,n)},r=function(e,t,n,r){var i=l.enc.Hex.parse(t),a=l.enc.Hex.parse(n),o=l.enc.Hex.parse(r),s={};s.key=a,s.iv=o,s.ciphertext=i;var c=e.decrypt(s,a,{iv:o});return l.enc.Hex.stringify(c)},i=function(e,t,n){return s(l.AES,e,t,n)},a=function(e,t,n){return s(l.TripleDES,e,t,n)},o=function(e,t,n){return s(l.DES,e,t,n)},s=function(e,t,n,r){var i=l.enc.Hex.parse(t),a=l.enc.Hex.parse(n),o=l.enc.Hex.parse(r),s=e.encrypt(i,a,{iv:o}),c=l.enc.Hex.parse(s.toString()),u=l.enc.Base64.stringify(c);return u},c={"AES-256-CBC":{proc:e,eproc:i,keylen:32,ivlen:16},"AES-192-CBC":{proc:e,eproc:i,keylen:24,ivlen:16},"AES-128-CBC":{proc:e,eproc:i,keylen:16,ivlen:16},"DES-EDE3-CBC":{proc:t,eproc:a,keylen:24,ivlen:8},"DES-CBC":{proc:n,eproc:o,keylen:8,ivlen:8}},u=function(e){var t=l.lib.WordArray.random(e),n=l.enc.Hex.stringify(t);return n},d=function(e){var t={},n=e.match(new RegExp("DEK-Info: ([^,]+),([0-9A-Fa-f]+)","m"));n&&(t.cipher=n[1],t.ivsalt=n[2]);var r=e.match(new RegExp("-----BEGIN ([A-Z]+) PRIVATE KEY-----"));r&&(t.type=r[1]);var i=-1,a=0;-1!=e.indexOf("\r\n\r\n")&&(i=e.indexOf("\r\n\r\n"),a=2),-1!=e.indexOf("\n\n")&&(i=e.indexOf("\n\n"),a=1);var o=e.indexOf("-----END");if(-1!=i&&-1!=o){var s=e.substring(i+2*a,o-a);s=s.replace(/\s+/g,""),t.data=s}return t},h=function(e,t,n){for(var r=n.substring(0,16),i=l.enc.Hex.parse(r),a=l.enc.Utf8.parse(t),o=c[e]["keylen"]+c[e]["ivlen"],s="",u=null;;){var d=l.algo.MD5.create();if(null!=u&&d.update(u),d.update(a),d.update(i),u=d.finalize(),s+=l.enc.Hex.stringify(u),s.length>=2*o)break}var h={};return h.keyhex=s.substr(0,2*c[e]["keylen"]),h.ivhex=s.substr(2*c[e]["keylen"],2*c[e]["ivlen"]),h},p=function(e,t,n,r){var i=l.enc.Base64.parse(e),a=l.enc.Hex.stringify(i),o=c[t]["proc"],s=o(a,n,r);return s},f=function(e,t,n,r){var i=c[t]["eproc"],a=i(e,n,r);return a};return{version:"1.0.0",parsePKCS5PEM:function(e){return d(e)},getKeyAndUnusedIvByPasscodeAndIvsalt:function(e,t,n){return h(e,t,n)},decryptKeyB64:function(e,t,n,r){return p(e,t,n,r)},getDecryptedKeyHex:function(e,t){var n=d(e),r=(n.type,n.cipher),i=n.ivsalt,a=n.data,o=h(r,t,i),s=o.keyhex,l=p(a,r,s,i);return l},getEncryptedPKCS5PEMFromPrvKeyHex:function(e,t,n,r,i){var a="";if("undefined"!=typeof r&&null!=r||(r="AES-256-CBC"),"undefined"==typeof c[r])throw new Error("KEYUTIL unsupported algorithm: "+r);if("undefined"==typeof i||null==i){var o=c[r]["ivlen"],s=u(o);i=s.toUpperCase()}var l=h(r,n,i),d=l.keyhex,p=f(t,r,d,i),m=p.replace(/(.{64})/g,"$1\r\n");a="-----BEGIN "+e+" PRIVATE KEY-----\r\n";return a+="Proc-Type: 4,ENCRYPTED\r\n",a+="DEK-Info: "+r+","+i+"\r\n",a+="\r\n",a+=m,a+="\r\n-----END "+e+" PRIVATE KEY-----\r\n",a},getEncryptedPKCS8PEM:function(e,t,n){var r=this.getEncryptedPKCS8Hex(e,t,n);return Yn(r,"ENCRYPTED PRIVATE KEY")},getEncryptedPKCS8Hex:function(e,t,n){var r;r=void 0==n||null==n?{}:JSON.parse(JSON.stringify(n)),r.plain=e,this.initPBES2Param(r),this.encryptPBES2Param(r,t);var i=this.generatePBES2ASN1Param(r);return En.asn1.ASN1Util.newObject(i).tohex()},initPBES2Param:function(e){var t;(void 0==Dr(e,"encalg")&&(e.encalg="aes256-CBC"),void 0==Dr(e,"iter")&&(e.iter=2048),void 0==Dr(e,"prf")&&(e.prf="hmacWithSHA256"),void 0==Dr(e,"salt")&&(e.salt=l.enc.Hex.stringify(l.lib.WordArray.random(8))),void 0==Dr(e,"enciv"))&&("des-EDE3-CBC"==e.encalg&&(t=8),"aes128-CBC"==e.encalg&&(t=16),"aes256-CBC"==e.encalg&&(t=16),e.enciv=l.enc.Hex.stringify(l.lib.WordArray.random(t)))},encryptPBES2Param:function(e,t){var n=Mr.getDKFromPBES2Param(e,t);try{var r=En.crypto.Cipher.encrypt(e.plain,n,e.encalg,{iv:e.enciv})}catch(i){throw new Error("encrypt error: "+e.plain+" "+n+" "+e.encalg+" "+e.enciv)}e.enc=r},generatePBES2ASN1Param:function(e){var t={seq:[{seq:[{oid:"pkcs5PBES2"},{seq:[{seq:[{oid:"pkcs5PBKDF2"},{seq:[{octstr:{hex:e.salt}},{int:{hex:Ar(e.iter)}}]}]},{seq:[{oid:e.encalg},{octstr:{hex:e.enciv}}]}]}]},{octstr:{hex:e.enc}}]};return"hmacWithSHA1"!=e.prf&&t.seq[0].seq[1].seq[0].seq[1].seq.push({seq:[{oid:e.prf},{null:""}]}),t},parseHexOfEncryptedPKCS8:function(e){var t=xn,n=t.getChildIdx,r=t.getV,i={},a=n(e,0);if(2!=a.length)throw new Error("malformed format: SEQUENCE(0).items != 2: "+a.length);i.ciphertext=r(e,a[1]);var o=n(e,a[0]);if(2!=o.length)throw new Error("malformed format: SEQUENCE(0.0).items != 2: "+o.length);if("2a864886f70d01050d"!=r(e,o[0]))throw new Error("this only supports pkcs5PBES2");var s=n(e,o[1]);if(2!=o.length)throw new Error("malformed format: SEQUENCE(0.0.1).items != 2: "+s.length);var l=n(e,s[1]);if(2!=l.length)throw new Error("malformed format: SEQUENCE(0.0.1.1).items != 2: "+l.length);if("2a864886f70d0307"!=r(e,l[0]))throw"this only supports TripleDES";i.encryptionSchemeAlg="TripleDES",i.encryptionSchemeIV=r(e,l[1]);var c=n(e,s[0]);if(2!=c.length)throw new Error("malformed format: SEQUENCE(0.0.1.0).items != 2: "+c.length);if("2a864886f70d01050c"!=r(e,c[0]))throw new Error("this only supports pkcs5PBKDF2");var u=n(e,c[1]);if(u.length<2)throw new Error("malformed format: SEQUENCE(0.0.1.0.1).items < 2: "+u.length);i.pbkdf2Salt=r(e,u[0]);var d=r(e,u[1]);try{i.pbkdf2Iter=parseInt(d,16)}catch(h){throw new Error("malformed format pbkdf2Iter: "+d)}return i},getPBKDF2KeyHexFromParam:function(e,t){var n=l.enc.Hex.parse(e.pbkdf2Salt),r=e.pbkdf2Iter,i=l.PBKDF2(t,n,{keySize:6,iterations:r}),a=l.enc.Hex.stringify(i);return a},_getPlainPKCS8HexFromEncryptedPKCS8PEM:function(e,t){var n=Qn(e,"ENCRYPTED PRIVATE KEY"),r=this.parseHexOfEncryptedPKCS8(n),i=Mr.getPBKDF2KeyHexFromParam(r,t),a={};a.ciphertext=l.enc.Hex.parse(r.ciphertext);var o=l.enc.Hex.parse(i),s=l.enc.Hex.parse(r.encryptionSchemeIV),c=l.TripleDES.decrypt(a,o,{iv:s}),u=l.enc.Hex.stringify(c);return u},parsePBES2:function(e){var t=xn.parse(e);if("pkcs5PBES2"!=Dr(t,"seq.0.seq.0.oid")||"pkcs5PBKDF2"!=Dr(t,"seq.0.seq.1.seq.0.seq.0.oid"))throw new Error("not pkcs5PBES2 and pkcs5PBKDF2 used");var n=Dr(t,"seq.0.seq.1.seq.0.seq.1.seq");if(void 0==n)throw new Error("PBKDF2 parameter not found");var r=Dr(n,"0.octstr.hex"),i=Dr(n,"1.int.hex"),a=Dr(n,"2.seq.0.oid","hmacWithSHA1"),o=-1;try{o=parseInt(i,16)}catch(d){throw new Error("iter not proper value")}var s=Dr(t,"seq.0.seq.1.seq.1.seq.0.oid"),l=Dr(t,"seq.0.seq.1.seq.1.seq.1.octstr.hex"),c=Dr(t,"seq.1.octstr.hex");if(void 0==s||void 0==l||void 0==c)throw new Error("encalg, enciv or enc is undefined");var u={salt:r,iter:o,prf:a,encalg:s,enciv:l,enc:c};return u},getDKFromPBES2Param:function(e,t){var n={hmacWithSHA1:l.algo.SHA1,hmacWithSHA224:l.algo.SHA224,hmacWithSHA256:l.algo.SHA256,hmacWithSHA384:l.algo.SHA384,hmacWithSHA512:l.algo.SHA512},r={"des-EDE3-CBC":6,"aes128-CBC":4,"aes256-CBC":8},i=n[e.prf];if(void 0==i)throw new Error("unsupported prf");var a=r[e.encalg];if(void 0==a)throw new Error("unsupported encalg");var o=l.enc.Hex.parse(e.salt),s=e.iter;try{var c=l.PBKDF2(t,o,{keySize:a,iterations:s,hasher:i});return l.enc.Hex.stringify(c)}catch(It){throw new Error("PBKDF2 error: "+It+" "+JSON.stringify(e)+" "+t)}},getPlainHexFromEncryptedPKCS8PEM:function(e,t){if(-1==e.indexOf("BEGIN ENCRYPTED PRIVATE KEY"))throw new Error("not Encrypted PKCS#8 PEM string");var n,r=Qn(e);try{n=Mr.parsePBES2(r)}catch(a){throw new Error("malformed PBES2 format: "+a.message)}var i=Mr.getDKFromPBES2Param(n,t);return En.crypto.Cipher.decrypt(n.enc,i,n.encalg,{iv:n.enciv})},getKeyFromEncryptedPKCS8PEM:function(e,t){var n=this.getPlainHexFromEncryptedPKCS8PEM(e,t),r=this.getKeyFromPlainPrivatePKCS8Hex(n);return r},parsePlainPrivatePKCS8Hex:function(e){var t=xn,n=t.getChildIdx,r=t.getV,i={algparam:null};if("30"!=e.substr(0,2))throw new Error("malformed plain PKCS8 private key(code:001)");var a=n(e,0);if(a.length<3)throw new Error("malformed plain PKCS8 private key(code:002)");if("30"!=e.substr(a[1],2))throw new Error("malformed PKCS8 private key(code:003)");var o=n(e,a[1]);if(2!=o.length)throw new Error("malformed PKCS8 private key(code:004)");if("06"!=e.substr(o[0],2))throw new Error("malformed PKCS8 private key(code:005)");if(i.algoid=r(e,o[0]),"06"==e.substr(o[1],2)&&(i.algparam=r(e,o[1])),"04"!=e.substr(a[2],2))throw new Error("malformed PKCS8 private key(code:006)");return i.keyidx=t.getVidx(e,a[2]),i},getKeyFromPlainPrivatePKCS8PEM:function(e){var t=Qn(e,"PRIVATE KEY"),n=this.getKeyFromPlainPrivatePKCS8Hex(t);return n},getKeyFromPlainPrivatePKCS8Hex:function(e){var t,n=this.parsePlainPrivatePKCS8Hex(e);if("2a864886f70d010101"==n.algoid)t=new Ut;else if("2a8648ce380401"==n.algoid)t=new En.crypto.DSA;else{if("2a8648ce3d0201"!=n.algoid)throw new Error("unsupported private key algorithm");t=new En.crypto.ECDSA}return t.readPKCS8PrvKeyHex(e),t},_getKeyFromPublicPKCS8Hex:function(e){var t,n=xn.getVbyList(e,0,[0,0],"06");if("2a864886f70d010101"===n)t=new Ut;else if("2a8648ce380401"===n)t=new En.crypto.DSA;else{if("2a8648ce3d0201"!==n)throw new Error("unsupported PKCS#8 public key hex");t=new En.crypto.ECDSA}return t.readPKCS8PubKeyHex(e),t},parsePublicRawRSAKeyHex:function(e){var t=xn,n=t.getChildIdx,r=t.getV,i={};if("30"!=e.substr(0,2))throw new Error("malformed RSA key(code:001)");var a=n(e,0);if(2!=a.length)throw new Error("malformed RSA key(code:002)");if("02"!=e.substr(a[0],2))throw new Error("malformed RSA key(code:003)");if(i.n=r(e,a[0]),"02"!=e.substr(a[1],2))throw new Error("malformed RSA key(code:004)");return i.e=r(e,a[1]),i},parsePublicPKCS8Hex:function(e){var t=xn,n=t.getChildIdx,r=t.getV,i={algparam:null},a=n(e,0);if(2!=a.length)throw new Error("outer DERSequence shall have 2 elements: "+a.length);var o=a[0];if("30"!=e.substr(o,2))throw new Error("malformed PKCS8 public key(code:001)");var s=n(e,o);if(2!=s.length)throw new Error("malformed PKCS8 public key(code:002)");if("06"!=e.substr(s[0],2))throw new Error("malformed PKCS8 public key(code:003)");if(i.algoid=r(e,s[0]),"06"==e.substr(s[1],2)?i.algparam=r(e,s[1]):"30"==e.substr(s[1],2)&&(i.algparam={},i.algparam.p=t.getVbyList(e,s[1],[0],"02"),i.algparam.q=t.getVbyList(e,s[1],[1],"02"),i.algparam.g=t.getVbyList(e,s[1],[2],"02")),"03"!=e.substr(a[1],2))throw new Error("malformed PKCS8 public key(code:004)");return i.key=r(e,a[1]).substr(2),i}}}();Mr.getKey=function(e,t,n){var r=xn,i=r.getChildIdx,a=(r.getV,r.getVbyList),o=En.crypto,s=o.ECDSA,l=o.DSA,c=Ut,u=Qn,d=Mr;if("undefined"!=typeof c&&e instanceof c)return e;if("undefined"!=typeof s&&e instanceof s)return e;if("undefined"!=typeof l&&e instanceof l)return e;if(void 0!==e.curve&&void 0!==e.xy&&void 0===e.d)return new s({pub:e.xy,curve:e.curve});if(void 0!==e.curve&&void 0!==e.d)return new s({prv:e.d,curve:e.curve});if(void 0===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0===e.d){var h=new c;return h.setPublic(e.n,e.e),h}if(void 0===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0!==e.d&&void 0!==e.p&&void 0!==e.q&&void 0!==e.dp&&void 0!==e.dq&&void 0!==e.co&&void 0===e.qi){h=new c;return h.setPrivateEx(e.n,e.e,e.d,e.p,e.q,e.dp,e.dq,e.co),h}if(void 0===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0!==e.d&&void 0===e.p){h=new c;return h.setPrivate(e.n,e.e,e.d),h}if(void 0!==e.p&&void 0!==e.q&&void 0!==e.g&&void 0!==e.y&&void 0===e.x){h=new l;return h.setPublic(e.p,e.q,e.g,e.y),h}if(void 0!==e.p&&void 0!==e.q&&void 0!==e.g&&void 0!==e.y&&void 0!==e.x){h=new l;return h.setPrivate(e.p,e.q,e.g,e.y,e.x),h}if("RSA"===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0===e.d){h=new c;return h.setPublic(Mn(e.n),Mn(e.e)),h}if("RSA"===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0!==e.d&&void 0!==e.p&&void 0!==e.q&&void 0!==e.dp&&void 0!==e.dq&&void 0!==e.qi){h=new c;return h.setPrivateEx(Mn(e.n),Mn(e.e),Mn(e.d),Mn(e.p),Mn(e.q),Mn(e.dp),Mn(e.dq),Mn(e.qi)),h}if("RSA"===e.kty&&void 0!==e.n&&void 0!==e.e&&void 0!==e.d){h=new c;return h.setPrivate(Mn(e.n),Mn(e.e),Mn(e.d)),h}if("EC"===e.kty&&void 0!==e.crv&&void 0!==e.x&&void 0!==e.y&&void 0===e.d){var p=new s({curve:e.crv}),f=p.ecparams.keycharlen,m=("0000000000"+Mn(e.x)).slice(-f),g=("0000000000"+Mn(e.y)).slice(-f),b="04"+m+g;return p.setPublicKeyHex(b),p}if("EC"===e.kty&&void 0!==e.crv&&void 0!==e.x&&void 0!==e.y&&void 0!==e.d){p=new s({curve:e.crv}),f=p.ecparams.keycharlen,m=("0000000000"+Mn(e.x)).slice(-f),g=("0000000000"+Mn(e.y)).slice(-f),b="04"+m+g;var y=("0000000000"+Mn(e.d)).slice(-f);return p.setPublicKeyHex(b),p.setPrivateKeyHex(y),p}if("pkcs5prv"===n){var _,w=e;r=xn;if(_=i(w,0),9===_.length)h=new c,h.readPKCS5PrvKeyHex(w);else if(6===_.length)h=new l,h.readPKCS5PrvKeyHex(w);else{if(!(_.length>2&&"04"===w.substr(_[1],2)))throw new Error("unsupported PKCS#1/5 hexadecimal key");h=new s,h.readPKCS5PrvKeyHex(w)}return h}if("pkcs8prv"===n){h=d.getKeyFromPlainPrivatePKCS8Hex(e);return h}if("pkcs8pub"===n)return d._getKeyFromPublicPKCS8Hex(e);if("x509pub"===n)return Ur.getPublicKeyFromCertHex(e);if(-1!=e.indexOf("-END CERTIFICATE-",0)||-1!=e.indexOf("-END X509 CERTIFICATE-",0)||-1!=e.indexOf("-END TRUSTED CERTIFICATE-",0))return Ur.getPublicKeyFromCertPEM(e);if(-1!=e.indexOf("-END PUBLIC KEY-")){var E=Qn(e,"PUBLIC KEY");return d._getKeyFromPublicPKCS8Hex(E)}if(-1!=e.indexOf("-END RSA PRIVATE KEY-")&&-1==e.indexOf("4,ENCRYPTED")){var S=u(e,"RSA PRIVATE KEY");return d.getKey(S,null,"pkcs5prv")}if(-1!=e.indexOf("-END DSA PRIVATE KEY-")&&-1==e.indexOf("4,ENCRYPTED")){var k=u(e,"DSA PRIVATE KEY"),x=a(k,0,[1],"02"),A=a(k,0,[2],"02"),C=a(k,0,[3],"02"),T=a(k,0,[4],"02"),N=a(k,0,[5],"02");h=new l;return h.setPrivate(new v(x,16),new v(A,16),new v(C,16),new v(T,16),new v(N,16)),h}if(-1!=e.indexOf("-END EC PRIVATE KEY-")&&-1==e.indexOf("4,ENCRYPTED")){S=u(e,"EC PRIVATE KEY");return d.getKey(S,null,"pkcs5prv")}if(-1!=e.indexOf("-END PRIVATE KEY-"))return d.getKeyFromPlainPrivatePKCS8PEM(e);if(-1!=e.indexOf("-END RSA PRIVATE KEY-")&&-1!=e.indexOf("4,ENCRYPTED")){var R=d.getDecryptedKeyHex(e,t),O=new Ut;return O.readPKCS5PrvKeyHex(R),O}if(-1!=e.indexOf("-END EC PRIVATE KEY-")&&-1!=e.indexOf("4,ENCRYPTED")){k=d.getDecryptedKeyHex(e,t),h=a(k,0,[1],"04");var I=a(k,0,[2,0],"06"),L=a(k,0,[3,0],"03").substr(2),D="";if(void 0===En.crypto.OID.oidhex2name[I])throw new Error("undefined OID(hex) in KJUR.crypto.OID: "+I);D=En.crypto.OID.oidhex2name[I];p=new s({curve:D});return p.setPublicKeyHex(L),p.setPrivateKeyHex(h),p.isPublic=!1,p}if(-1!=e.indexOf("-END DSA PRIVATE KEY-")&&-1!=e.indexOf("4,ENCRYPTED")){k=d.getDecryptedKeyHex(e,t),x=a(k,0,[1],"02"),A=a(k,0,[2],"02"),C=a(k,0,[3],"02"),T=a(k,0,[4],"02"),N=a(k,0,[5],"02"),h=new l;return h.setPrivate(new v(x,16),new v(A,16),new v(C,16),new v(T,16),new v(N,16)),h}if(-1!=e.indexOf("-END ENCRYPTED PRIVATE KEY-"))return d.getKeyFromEncryptedPKCS8PEM(e,t);throw new Error("not supported argument")},Mr.generateKeypair=function(e,t){if("RSA"==e){var n=t,r=new Ut;r.generate(n,"10001"),r.isPrivate=!0,r.isPublic=!0;var i=new Ut,a=r.n.toString(16),o=r.e.toString(16);i.setPublic(a,o),i.isPrivate=!1,i.isPublic=!0;var s={};return s.prvKeyObj=r,s.pubKeyObj=i,s}if("EC"==e){var l=t,c=new En.crypto.ECDSA({curve:l}),u=c.generateKeyPairHex();r=new En.crypto.ECDSA({curve:l});r.setPublicKeyHex(u.ecpubhex),r.setPrivateKeyHex(u.ecprvhex),r.isPrivate=!0,r.isPublic=!1;i=new En.crypto.ECDSA({curve:l});i.setPublicKeyHex(u.ecpubhex),i.isPrivate=!1,i.isPublic=!0;s={};return s.prvKeyObj=r,s.pubKeyObj=i,s}throw new Error("unknown algorithm: "+e)},Mr.getPEM=function(e,t,n,r,i,a){var o=En,s=o.asn1,l=s.DERObjectIdentifier,c=s.DERInteger,u=s.ASN1Util.newObject,d=s.x509,h=d.SubjectPublicKeyInfo,p=o.crypto,f=p.DSA,m=p.ECDSA,g=Ut;function v(e){var t=u({seq:[{int:0},{int:{bigint:e.n}},{int:e.e},{int:{bigint:e.d}},{int:{bigint:e.p}},{int:{bigint:e.q}},{int:{bigint:e.dmp1}},{int:{bigint:e.dmq1}},{int:{bigint:e.coeff}}]});return t}function b(e){var t=u({seq:[{int:1},{octstr:{hex:e.prvKeyHex}},{tag:["a0",!0,{oid:{name:e.curveName}}]},{tag:["a1",!0,{bitstr:{hex:"00"+e.pubKeyHex}}]}]});return t}function y(e){var t=u({seq:[{int:0},{int:{bigint:e.p}},{int:{bigint:e.q}},{int:{bigint:e.g}},{int:{bigint:e.y}},{int:{bigint:e.x}}]});return t}if((void 0!==g&&e instanceof g||void 0!==f&&e instanceof f||void 0!==m&&e instanceof m)&&1==e.isPublic&&(void 0===t||"PKCS8PUB"==t)){var _=new h(e),w=_.tohex();return Yn(w,"PUBLIC KEY")}if("PKCS1PRV"==t&&void 0!==g&&e instanceof g&&(void 0===n||null==n)&&1==e.isPrivate){_=v(e),w=_.tohex();return Yn(w,"RSA PRIVATE KEY")}if("PKCS1PRV"==t&&void 0!==m&&e instanceof m&&(void 0===n||null==n)&&1==e.isPrivate){var E=new l({name:e.curveName}),S=E.tohex(),k=b(e),x=k.tohex(),A="";return A+=Yn(S,"EC PARAMETERS"),A+=Yn(x,"EC PRIVATE KEY"),A}if("PKCS1PRV"==t&&void 0!==f&&e instanceof f&&(void 0===n||null==n)&&1==e.isPrivate){_=y(e),w=_.tohex();return Yn(w,"DSA PRIVATE KEY")}if("PKCS5PRV"==t&&void 0!==g&&e instanceof g&&void 0!==n&&null!=n&&1==e.isPrivate){_=v(e),w=_.tohex();return void 0===r&&(r="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("RSA",w,n,r,a)}if("PKCS5PRV"==t&&void 0!==m&&e instanceof m&&void 0!==n&&null!=n&&1==e.isPrivate){_=b(e),w=_.tohex();return void 0===r&&(r="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("EC",w,n,r,a)}if("PKCS5PRV"==t&&void 0!==f&&e instanceof f&&void 0!==n&&null!=n&&1==e.isPrivate){_=y(e),w=_.tohex();return void 0===r&&(r="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("DSA",w,n,r,a)}var C=function(e,t){if("string"==typeof t)return Mr.getEncryptedPKCS8PEM(e,t);if("object"==typeof t&&void 0!=Dr(t,"passcode")){var n=JSON.parse(JSON.stringify(t)),r=n.passcode;return delete n.passcode,Mr.getEncryptedPKCS8PEM(e,r,n)}};if("PKCS8PRV"==t&&void 0!=g&&e instanceof g&&1==e.isPrivate){var T=v(e),N=T.tohex();_=u({seq:[{int:0},{seq:[{oid:{name:"rsaEncryption"}},{null:!0}]},{octstr:{hex:N}}]}),w=_.tohex();return void 0===n||null==n?Yn(w,"PRIVATE KEY"):C(w,n)}if("PKCS8PRV"==t&&void 0!==m&&e instanceof m&&1==e.isPrivate){var R={seq:[{int:1},{octstr:{hex:e.prvKeyHex}}]};"string"==typeof e.pubKeyHex&&R.seq.push({tag:["a1",!0,{bitstr:{hex:"00"+e.pubKeyHex}}]});T=new u(R),N=T.tohex(),_=u({seq:[{int:0},{seq:[{oid:{name:"ecPublicKey"}},{oid:{name:e.curveName}}]},{octstr:{hex:N}}]}),w=_.tohex();return void 0===n||null==n?Yn(w,"PRIVATE KEY"):C(w,n)}if("PKCS8PRV"==t&&void 0!==f&&e instanceof f&&1==e.isPrivate){T=new c({bigint:e.x}),N=T.tohex(),_=u({seq:[{int:0},{seq:[{oid:{name:"dsa"}},{seq:[{int:{bigint:e.p}},{int:{bigint:e.q}},{int:{bigint:e.g}}]}]},{octstr:{hex:N}}]}),w=_.tohex();return void 0===n||null==n?Yn(w,"PRIVATE KEY"):C(w,n)}throw new Error("unsupported object nor format")},Mr.getKeyFromCSRPEM=function(e){var t=Qn(e,"CERTIFICATE REQUEST"),n=Mr.getKeyFromCSRHex(t);return n},Mr.getKeyFromCSRHex=function(e){var t=Mr.parseCSRHex(e),n=Mr.getKey(t.p8pubkeyhex,null,"pkcs8pub");return n},Mr.parseCSRHex=function(e){var t=xn,n=t.getChildIdx,r=t.getTLV,i={},a=e;if("30"!=a.substr(0,2))throw new Error("malformed CSR(code:001)");var o=n(a,0);if(o.length<1)throw new Error("malformed CSR(code:002)");if("30"!=a.substr(o[0],2))throw new Error("malformed CSR(code:003)");var s=n(a,o[0]);if(s.length<3)throw new Error("malformed CSR(code:004)");return i.p8pubkeyhex=r(a,s[2]),i},Mr.getKeyID=function(e){var t=Mr,n=xn;"string"===typeof e&&-1!=e.indexOf("BEGIN ")&&(e=t.getKey(e));var r=Qn(t.getPEM(e)),i=n.getIdxbyList(r,0,[1]),a=n.getV(r,i).substring(2);return En.crypto.Util.hashHex(a,"sha1")},Mr.getJWK=function(e,t,n,r,i){var a,o,s={},l=En.crypto.Util.hashHex;if("string"==typeof e)a=Mr.getKey(e),-1!=e.indexOf("CERTIFICATE")&&(o=Qn(e));else{if("object"!=typeof e)throw new Error("unsupported keyinfo type");e instanceof Ur?(a=e.getPublicKey(),o=e.hex):a=e}if(a instanceof Ut&&a.isPrivate)s.kty="RSA",s.n=Pn(a.n.toString(16)),s.e=Pn(a.e.toString(16)),s.d=Pn(a.d.toString(16)),s.p=Pn(a.p.toString(16)),s.q=Pn(a.q.toString(16)),s.dp=Pn(a.dmp1.toString(16)),s.dq=Pn(a.dmq1.toString(16)),s.qi=Pn(a.coeff.toString(16));else if(a instanceof Ut&&a.isPublic)s.kty="RSA",s.n=Pn(a.n.toString(16)),s.e=Pn(a.e.toString(16));else if(a instanceof En.crypto.ECDSA&&a.isPrivate){var c=a.getShortNISTPCurveName();if("P-256"!==c&&"P-384"!==c&&"P-521"!==c)throw new Error("unsupported curve name for JWT: "+c);var u=a.getPublicKeyXYHex();s.kty="EC",s.crv=c,s.x=Pn(u.x),s.y=Pn(u.y),s.d=Pn(a.prvKeyHex)}else if(a instanceof En.crypto.ECDSA&&a.isPublic){c=a.getShortNISTPCurveName();if("P-256"!==c&&"P-384"!==c&&"P-521"!==c)throw new Error("unsupported curve name for JWT: "+c);u=a.getPublicKeyXYHex();s.kty="EC",s.crv=c,s.x=Pn(u.x),s.y=Pn(u.y)}if(void 0==s.kty)throw new Error("unsupported keyinfo");return a.isPrivate||1==t||(s.kid=En.jws.JWS.getJWKthumbprint(s)),void 0!=o&&1!=n&&(s.x5c=[h(o)]),void 0!=o&&1!=r&&(s.x5t=Ln(h(l(o,"sha1")))),void 0!=o&&1!=i&&(s["x5t#S256"]=Ln(h(l(o,"sha256")))),s},Mr.getJWKFromKey=function(e){return Mr.getJWK(e,!0,!0,!0,!0)},Ut.getPosArrayOfChildrenFromHex=function(e){return xn.getChildIdx(e,0)},Ut.getHexValueArrayOfChildrenFromHex=function(e){var t=xn,n=t.getV,r=Ut.getPosArrayOfChildrenFromHex(e),i=n(e,r[0]),a=n(e,r[1]),o=n(e,r[2]),s=n(e,r[3]),l=n(e,r[4]),c=n(e,r[5]),u=n(e,r[6]),d=n(e,r[7]),h=n(e,r[8]);r=new Array;return r.push(i,a,o,s,l,c,u,d,h),r},Ut.prototype.readPrivateKeyFromPEMString=function(e){var t=Qn(e),n=Ut.getHexValueArrayOfChildrenFromHex(t);this.setPrivateEx(n[1],n[2],n[3],n[4],n[5],n[6],n[7],n[8])},Ut.prototype.readPKCS5PrvKeyHex=function(e){var t=Ut.getHexValueArrayOfChildrenFromHex(e);this.setPrivateEx(t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])},Ut.prototype.readPKCS8PrvKeyHex=function(e){var t,n,r,i,a,o,s,l,c=xn,u=c.getVbyListEx;if(!1===c.isASN1HEX(e))throw new Error("not ASN.1 hex string");try{t=u(e,0,[2,0,1],"02"),n=u(e,0,[2,0,2],"02"),r=u(e,0,[2,0,3],"02"),i=u(e,0,[2,0,4],"02"),a=u(e,0,[2,0,5],"02"),o=u(e,0,[2,0,6],"02"),s=u(e,0,[2,0,7],"02"),l=u(e,0,[2,0,8],"02")}catch(d){throw new Error("malformed PKCS#8 plain RSA private key")}this.setPrivateEx(t,n,r,i,a,o,s,l)},Ut.prototype.readPKCS5PubKeyHex=function(e){var t=xn,n=t.getV;if(!1===t.isASN1HEX(e))throw new Error("keyHex is not ASN.1 hex string");var r=t.getChildIdx(e,0);if(2!==r.length||"02"!==e.substr(r[0],2)||"02"!==e.substr(r[1],2))throw new Error("wrong hex for PKCS#5 public key");var i=n(e,r[0]),a=n(e,r[1]);this.setPublic(i,a)},Ut.prototype.readPKCS8PubKeyHex=function(e){var t=xn;if(!1===t.isASN1HEX(e))throw new Error("not ASN.1 hex string");if("06092a864886f70d010101"!==t.getTLVbyListEx(e,0,[0,0]))throw new Error("not PKCS8 RSA public key");var n=t.getTLVbyListEx(e,0,[1,0]);this.readPKCS5PubKeyHex(n)},Ut.prototype.readCertPubKeyHex=function(e,t){var n,r;n=new Ur,n.readCertHex(e),r=n.getPublicKeyHex(),this.readPKCS8PubKeyHex(r)};function Br(e,t){for(var n="",r=t/4-e.length,i=0;i<r;i++)n+="0";return n+e}function Fr(e,t,n){var r="",i=0;while(r.length<t)r+=Kn(n(Gn(e+String.fromCharCode.apply(String,[(4278190080&i)>>24,(16711680&i)>>16,(65280&i)>>8,255&i])))),i+=1;return r}function $r(e){for(var t in En.crypto.Util.DIGESTINFOHEAD){var n=En.crypto.Util.DIGESTINFOHEAD[t],r=n.length;if(e.substring(0,r)==n){var i=[t,e.substring(r)];return i}}return[]}function Ur(e){var t,n=xn,r=n.getChildIdx,i=n.getV,a=(n.dump,n.parse),o=n.getTLV,s=n.getVbyList,l=n.getVbyListEx,c=n.getTLVbyList,u=n.getTLVbyListEx,d=n.getIdxbyList,h=n.getIdxbyListEx,p=n.getVidx,f=n.getInt,m=n.oidname,g=n.hextooidstr,v=Qn,b=Error;try{t=En.asn1.x509.AlgorithmIdentifier.PSSNAME2ASN1TLV}catch(It){}this.HEX2STAG={"0c":"utf8",13:"prn",16:"ia5","1a":"vis","1e":"bmp"},this.hex=null,this.version=0,this.foffset=0,this.aExtInfo=null,this.getVersion=function(){if(null===this.hex||0!==this.version)return this.version;var e=c(this.hex,0,[0,0]);if("a0"==e.substr(0,2)){var t=c(e,0,[0]),n=f(t,0);if(n<0||2<n)throw new Error("malformed version field");return this.version=n+1,this.version}return this.version=1,this.foffset=-1,1},this.getSerialNumberHex=function(){return l(this.hex,0,[0,0],"02")},this.getSignatureAlgorithmField=function(){var e=u(this.hex,0,[0,1]);return this.getAlgorithmIdentifierName(e)},this.getAlgorithmIdentifierName=function(e){for(var n in t)if(e===t[n])return n;return m(l(e,0,[0],"06"))},this.getIssuer=function(e,t){return this.getX500Name(this.getIssuerHex(),e,t)},this.getIssuerHex=function(){return c(this.hex,0,[0,3+this.foffset],"30")},this.getIssuerString=function(){var e=this.getIssuer();return e.str},this.getSubject=function(e,t){return this.getX500Name(this.getSubjectHex(),e,t)},this.getSubjectHex=function(){return c(this.hex,0,[0,5+this.foffset],"30")},this.getSubjectString=function(){var e=this.getSubject();return e.str},this.getNotBefore=function(){var e=s(this.hex,0,[0,4+this.foffset,0]);return e=e.replace(/(..)/g,"%$1"),e=decodeURIComponent(e),e},this.getNotAfter=function(){var e=s(this.hex,0,[0,4+this.foffset,1]);return e=e.replace(/(..)/g,"%$1"),e=decodeURIComponent(e),e},this.getPublicKeyHex=function(){return this.getSPKI()},this.getSPKI=function(){return c(this.hex,0,[0,6+this.foffset],"30")},this.getSPKIValue=function(){var e=this.getSPKI();return null==e?null:s(e,0,[1],"03",!0)},this.getPublicKeyIdx=function(){return d(this.hex,0,[0,6+this.foffset],"30")},this.getPublicKeyContentIdx=function(){var e=this.getPublicKeyIdx();return d(this.hex,e,[1,0],"30")},this.getPublicKey=function(){return Mr.getKey(this.getPublicKeyHex(),null,"pkcs8pub")},this.getSignatureAlgorithmName=function(){var e=c(this.hex,0,[1],"30");return this.getAlgorithmIdentifierName(e)},this.getSignatureValueHex=function(){return s(this.hex,0,[2],"03",!0)},this.verifySignature=function(e){var t=this.getSignatureAlgorithmField(),n=this.getSignatureValueHex(),r=c(this.hex,0,[0],"30"),i=new En.crypto.Signature({alg:t});return i.init(e),i.updateHex(r),i.verify(n)},this.parseExt=function(e){var t,a,o;if(void 0===e){if(o=this.hex,3!==this.version)return-1;t=d(o,0,[0,7,0],"30"),a=r(o,t)}else{o=Qn(e);var l=d(o,0,[0,3,0,0],"06");if("2a864886f70d01090e"!=i(o,l))return void(this.aExtInfo=new Array);t=d(o,0,[0,3,0,1,0],"30"),a=r(o,t),this.hex=o}this.aExtInfo=new Array;for(var c=0;c<a.length;c++){var u={critical:!1},h=r(o,a[c]),f=0;3===h.length&&(u.critical=!0,f=1),u.oid=n.hextooidstr(s(o,a[c],[0],"06"));var m=d(o,a[c],[1+f]);u.vidx=p(o,m),this.aExtInfo.push(u)}},this.getExtInfo=function(e){var t=this.aExtInfo,n=e;if(e.match(/^[0-9.]+$/)||(n=En.asn1.x509.OID.name2oid(e)),""!==n)for(var r=0;r<t.length;r++)if(t[r].oid===n)return t[r]},this.getCriticalExtV=function(e,t,n){if(void 0!=t)return[t,n];var r=this.getExtInfo(e);return void 0==r?[null,null]:[o(this.hex,r.vidx),r.critical]},this.getExtBasicConstraints=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("basicConstraints");if(void 0===n)return;e=o(this.hex,n.vidx),t=n.critical}var r={extname:"basicConstraints"};if(t&&(r.critical=!0),"3000"===e)return r;if("30030101ff"===e)return r.cA=!0,r;if("30060101ff02"===e.substr(0,12)){var a=i(e,10),s=parseInt(a,16);return r.cA=!0,r.pathLen=s,r}throw new Error("hExtV parse error: "+e)},this.getExtNameConstraints=function(e,t){var n=this.getCriticalExtV("nameConstraints",e,t);if(e=n[0],t=n[1],null!=e){var i={extname:"nameConstraints"};t&&(i.critical=!0);for(var a=r(e,0),s=0;s<a.length;s++){for(var l=[],c=r(e,a[s]),u=0;u<c.length;u++){var d=o(e,c[u]),h=this.getGeneralSubtree(d);l.push(h)}var p=e.substr(a[s],2);"a0"==p?i.permit=l:"a1"==p&&(i.exclude=l)}return i}},this.getGeneralSubtree=function(e){var t=r(e,0),n=t.length;if(n<1||2<n)throw new Error("wrong num elements");for(var a=this.getGeneralName(o(e,t[0])),s=1;s<n;s++){var l=e.substr(t[s],2),c=i(e,t[s]),u=parseInt(c,16);"80"==l&&(a.min=u),"81"==l&&(a.max=u)}return a},this.getExtKeyUsage=function(e,t){var n=this.getCriticalExtV("keyUsage",e,t);if(e=n[0],t=n[1],null!=e){var r={extname:"keyUsage"};return t&&(r.critical=!0),r.names=this.getExtKeyUsageString(e).split(","),r}},this.getExtKeyUsageBin=function(e){if(void 0===e){var t=this.getExtInfo("keyUsage");if(void 0===t)return"";e=o(this.hex,t.vidx)}if(8!=e.length&&10!=e.length)throw new Error("malformed key usage value: "+e);var n="000000000000000"+parseInt(e.substr(6),16).toString(2);return 8==e.length&&(n=n.slice(-8)),10==e.length&&(n=n.slice(-16)),n=n.replace(/0+$/,""),""==n&&(n="0"),n},this.getExtKeyUsageString=function(e){for(var t=this.getExtKeyUsageBin(e),n=new Array,r=0;r<t.length;r++)"1"==t.substr(r,1)&&n.push(Ur.KEYUSAGE_NAME[r]);return n.join(",")},this.getExtSubjectKeyIdentifier=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("subjectKeyIdentifier");if(void 0===n)return;e=o(this.hex,n.vidx),t=n.critical}var r={extname:"subjectKeyIdentifier"};t&&(r.critical=!0);var a=i(e,0);return r.kid={hex:a},r},this.getExtAuthorityKeyIdentifier=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("authorityKeyIdentifier");if(void 0===n)return;e=o(this.hex,n.vidx),t=n.critical}var a={extname:"authorityKeyIdentifier"};t&&(a.critical=!0);for(var s=r(e,0),l=0;l<s.length;l++){var c=e.substr(s[l],2);if("80"===c&&(a.kid={hex:i(e,s[l])}),"a1"===c){var u=o(e,s[l]),d=this.getGeneralNames(u);a.issuer=d[0]["dn"]}"82"===c&&(a.sn={hex:i(e,s[l])})}return a},this.getExtExtKeyUsage=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("extKeyUsage");if(void 0===n)return;e=o(this.hex,n.vidx),t=n.critical}var a={extname:"extKeyUsage",array:[]};t&&(a.critical=!0);for(var s=r(e,0),l=0;l<s.length;l++)a.array.push(m(i(e,s[l])));return a},this.getExtExtKeyUsageName=function(){var e=this.getExtInfo("extKeyUsage");if(void 0===e)return e;var t=new Array,n=o(this.hex,e.vidx);if(""===n)return t;for(var a=r(n,0),s=0;s<a.length;s++)t.push(m(i(n,a[s])));return t},this.getExtSubjectAltName=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("subjectAltName");if(void 0===n)return;e=o(this.hex,n.vidx),t=n.critical}var r={extname:"subjectAltName",array:[]};return t&&(r.critical=!0),r.array=this.getGeneralNames(e),r},this.getExtIssuerAltName=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("issuerAltName");if(void 0===n)return;e=o(this.hex,n.vidx),t=n.critical}var r={extname:"issuerAltName",array:[]};return t&&(r.critical=!0),r.array=this.getGeneralNames(e),r},this.getGeneralNames=function(e){for(var t=r(e,0),n=[],i=0;i<t.length;i++){var a=this.getGeneralName(o(e,t[i]));void 0!==a&&n.push(a)}return n},this.getGeneralName=function(e){var t=e.substr(0,2),n=i(e,0),r=Kn(n);return"81"==t?{rfc822:r}:"82"==t?{dns:r}:"86"==t?{uri:r}:"87"==t?{ip:dr(n)}:"a4"==t?{dn:this.getX500Name(n)}:"a0"==t?{other:this.getOtherName(e)}:void 0},this.getExtSubjectAltName2=function(){var e,t,n,a=this.getExtInfo("subjectAltName");if(void 0===a)return a;for(var s=new Array,l=o(this.hex,a.vidx),c=r(l,0),u=0;u<c.length;u++)n=l.substr(c[u],2),e=i(l,c[u]),"81"===n&&(t=Un(e),s.push(["MAIL",t])),"82"===n&&(t=Un(e),s.push(["DNS",t])),"84"===n&&(t=Ur.hex2dn(e,0),s.push(["DN",t])),"86"===n&&(t=Un(e),s.push(["URI",t])),"87"===n&&(t=dr(e),s.push(["IP",t]));return s},this.getExtCRLDistributionPoints=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("cRLDistributionPoints");if(void 0===n)return;e=o(this.hex,n.vidx),t=n.critical}var i={extname:"cRLDistributionPoints",array:[]};t&&(i.critical=!0);for(var a=r(e,0),s=0;s<a.length;s++){var l=o(e,a[s]);i.array.push(this.getDistributionPoint(l))}return i},this.getDistributionPoint=function(e){for(var t={},n=r(e,0),i=0;i<n.length;i++){var a=e.substr(n[i],2),s=o(e,n[i]);"a0"==a&&(t.dpname=this.getDistributionPointName(s))}return t},this.getDistributionPointName=function(e){for(var t={},n=r(e,0),i=0;i<n.length;i++){var a=e.substr(n[i],2),s=o(e,n[i]);"a0"==a&&(t.full=this.getGeneralNames(s))}return t},this.getExtCRLDistributionPointsURI=function(){var e=this.getExtCRLDistributionPoints();if(void 0==e)return e;for(var t=e.array,n=[],r=0;r<t.length;r++)try{void 0!=t[r].dpname.full[0].uri&&n.push(t[r].dpname.full[0].uri)}catch(i){}return n},this.getExtAIAInfo=function(){var e=this.getExtInfo("authorityInfoAccess");if(void 0===e)return e;for(var t={ocsp:[],caissuer:[]},n=r(this.hex,e.vidx),i=0;i<n.length;i++){var a=s(this.hex,n[i],[0],"06"),o=s(this.hex,n[i],[1],"86");"2b06010505073001"===a&&t.ocsp.push(Un(o)),"2b06010505073002"===a&&t.caissuer.push(Un(o))}return t},this.getExtAuthorityInfoAccess=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("authorityInfoAccess");if(void 0===n)return;e=o(this.hex,n.vidx),t=n.critical}var i={extname:"authorityInfoAccess",array:[]};t&&(i.critical=!0);for(var a=r(e,0),c=0;c<a.length;c++){var u=l(e,a[c],[0],"06"),d=s(e,a[c],[1],"86"),h=Un(d);if("2b06010505073001"==u)i.array.push({ocsp:h});else{if("2b06010505073002"!=u)throw new Error("unknown method: "+u);i.array.push({caissuer:h})}}return i},this.getExtCertificatePolicies=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("certificatePolicies");if(void 0===n)return;e=o(this.hex,n.vidx),t=n.critical}var i={extname:"certificatePolicies",array:[]};t&&(i.critical=!0);for(var a=r(e,0),s=0;s<a.length;s++){var l=o(e,a[s]),c=this.getPolicyInformation(l);i.array.push(c)}return i},this.getPolicyInformation=function(e){var t={},n=s(e,0,[0],"06");t.policyoid=m(n);var i=h(e,0,[1],"30");if(-1!=i){t.array=[];for(var a=r(e,i),l=0;l<a.length;l++){var c=o(e,a[l]),u=this.getPolicyQualifierInfo(c);t.array.push(u)}}return t},this.getOtherName=function(e){var t={},n=r(e,0),i=s(e,n[0],[],"06"),o=s(e,n[1],[]);return t.oid=m(i),t.value=a(o),t},this.getPolicyQualifierInfo=function(e){var t={},n=s(e,0,[0],"06");if("2b06010505070201"===n){var r=l(e,0,[1],"16");t.cps=Kn(r)}else if("2b06010505070202"===n){var i=c(e,0,[1],"30");t.unotice=this.getUserNotice(i)}return t},this.getUserNotice=function(e){var t=null;try{t=n.parse(e);var r=this._asn1ToUnotice(t);return r}catch(i){return}},this._asn1ToUnotice=function(e){try{for(var t={},n=Dr(e,"seq"),r=0;r<n.length;r++){var i=this._asn1ToNoticeRef(n[r]);void 0!=i&&(t.noticeref=i);var a=this.asn1ToDisplayText(n[r]);void 0!=a&&(t.exptext=a)}return Object.keys(t).length>0?t:void 0}catch(o){return}},this._asn1ToNoticeRef=function(e){try{for(var t={},n=Dr(e,"seq"),r=0;r<n.length;r++){var i=this._asn1ToNoticeNum(n[r]);void 0!=i&&(t.noticenum=i);var a=this.asn1ToDisplayText(n[r]);void 0!=a&&(t.org=a)}return Object.keys(t).length>0?t:void 0}catch(o){return}},this._asn1ToNoticeNum=function(e){try{for(var t=Dr(e,"seq"),n=[],r=0;r<t.length;r++){var i=t[r];n.push(parseInt(Dr(i,"int.hex"),16))}return n}catch(a){return}},this.getDisplayText=function(e){var t={"0c":"utf8",16:"ia5","1a":"vis","1e":"bmp"},n={};return n.type=t[e.substr(0,2)],n.str=Kn(i(e,0)),n},this.asn1ToDisplayText=function(e){return void 0!=e.utf8str?{type:"utf8",str:e.utf8str.str}:void 0!=e.ia5str?{type:"ia5",str:e.ia5str.str}:void 0!=e.visstr?{type:"vis",str:e.visstr.str}:void 0!=e.bmpstr?{type:"bmp",str:e.bmpstr.str}:void 0!=e.prnstr?{type:"prn",str:e.prnstr.str}:void 0},this.getExtPolicyMappings=function(e,t){var n=this.getCriticalExtV("policyMappings",e,t);if(e=n[0],t=n[1],null!=e){var r={extname:"policyMappings"};t&&(r.critical=!0);try{for(var i=a(e),o=i.seq,s=[],l=0;l<o.length;l++){var c=o[l].seq;s.push([c[0].oid,c[1].oid])}r.array=s}catch(u){throw new b("malformed policyMappings")}return r}},this.getExtPolicyConstraints=function(e,t){var n=this.getCriticalExtV("policyConstraints",e,t);if(e=n[0],t=n[1],null!=e){var r={extname:"policyConstraints"};t&&(r.critical=!0);var i=a(e);try{for(var o=i.seq,s=0;s<o.length;s++){var l=o[s].tag;0==l.explicit&&("80"==l.tag&&(r.reqexp=parseInt(l.hex,16)),"81"==l.tag&&(r.inhibit=parseInt(l.hex,16)))}}catch(c){return new b("malformed policyConstraints value")}return r}},this.getExtInhibitAnyPolicy=function(e,t){var n=this.getCriticalExtV("inhibitAnyPolicy",e,t);if(e=n[0],t=n[1],null!=e){var r={extname:"inhibitAnyPolicy"};t&&(r.critical=!0);var i=f(e,0);return-1==i?new b("wrong value"):(r.skip=i,r)}},this.getExtCRLNumber=function(e,t){var n={extname:"cRLNumber"};if(t&&(n.critical=!0),"02"==e.substr(0,2))return n.num={hex:i(e,0)},n;throw new b("hExtV parse error: "+e)},this.getExtCRLReason=function(e,t){var n={extname:"cRLReason"};if(t&&(n.critical=!0),"0a"==e.substr(0,2))return n.code=parseInt(i(e,0),16),n;throw new Error("hExtV parse error: "+e)},this.getExtOcspNonce=function(e,t){var n={extname:"ocspNonce"};t&&(n.critical=!0);var r=i(e,0);return n.hex=r,n},this.getExtOcspNoCheck=function(e,t){var n={extname:"ocspNoCheck"};return t&&(n.critical=!0),n},this.getExtAdobeTimeStamp=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("adobeTimeStamp");if(void 0===n)return;e=o(this.hex,n.vidx),t=n.critical}var i={extname:"adobeTimeStamp"};t&&(i.critical=!0);var a=r(e,0);if(a.length>1){var s=o(e,a[1]),l=this.getGeneralName(s);void 0!=l.uri&&(i.uri=l.uri)}if(a.length>2){var c=o(e,a[2]);"0101ff"==c&&(i.reqauth=!0),"010100"==c&&(i.reqauth=!1)}return i},this.getExtSubjectDirectoryAttributes=function(e,t){if(void 0===e&&void 0===t){var n=this.getExtInfo("subjectDirectoryAttributes");if(void 0===n)return;e=o(this.hex,n.vidx),t=n.critical}var r={extname:"subjectDirectoryAttributes"};t&&(r.critical=!0);try{for(var i=a(e),s=[],l=0;l<i.seq.length;l++){var c=i.seq[l],u=Dr(c,"seq.0.oid"),d=Dr(c,"seq.1.set");if(void 0==u||void 0==d)throw"error";s.push({attr:u,array:d})}return r.array=s,r}catch(h){throw new Error("malformed subjectDirectoryAttributes extension value")}};var y=function(e){var t={};try{var n=e.seq[0].oid,r=En.asn1.x509.OID.name2oid(n);t.type=En.asn1.x509.OID.oid2atype(r);var i=e.seq[1];if(void 0!=i.utf8str)t.ds="utf8",t.value=i.utf8str.str;else if(void 0!=i.numstr)t.ds="num",t.value=i.numstr.str;else if(void 0!=i.telstr)t.ds="tel",t.value=i.telstr.str;else if(void 0!=i.prnstr)t.ds="prn",t.value=i.prnstr.str;else if(void 0!=i.ia5str)t.ds="ia5",t.value=i.ia5str.str;else if(void 0!=i.visstr)t.ds="vis",t.value=i.visstr.str;else{if(void 0==i.bmpstr)throw"error";t.ds="bmp",t.value=i.bmpstr.str}return t}catch(a){throw new Erorr("improper ASN.1 parsed AttrTypeAndValue")}},_=function(e){try{return e.set.map(function(e){return y(e)})}catch(Pt){throw new Error("improper ASN.1 parsed RDN: "+Pt)}},w=function(e){try{return e.seq.map(function(e){return _(e)})}catch(Pt){throw new Error("improper ASN.1 parsed X500Name: "+Pt)}};this.getX500NameRule=function(e){for(var t=null,n=[],r=0;r<e.length;r++)for(var i=e[r],a=0;a<i.length;a++)n.push(i[a]);for(r=0;r<n.length;r++){var o=n[r],s=o.ds,l=o.value,c=o.type;if("prn"!=s&&"utf8"!=s&&"ia5"!=s)return"mixed";if("ia5"==s){if("CN"!=c)return"mixed";if(En.lang.String.isMail(l))continue;return"mixed"}if("C"==c){if("prn"==s)continue;return"mixed"}if(null==t)t=s;else if(t!==s)return"mixed"}return null==t?"prn":t},this.getAttrTypeAndValue=function(e){var t=a(e);return y(t)},this.getRDN=function(e){var t=a(e);return _(t)},this.getX500NameArray=function(e){var t=a(e);return w(t)},this.getX500Name=function(e,t,n){var r=this.getX500NameArray(e),i=this.dnarraytostr(r),a={str:i};return a.array=r,1==n&&(a.hex=e),1==t&&(a.canon=this.c14nRDNArray(r)),a},this.readCertPEM=function(e){this.readCertHex(v(e))},this.readCertHex=function(e){this.hex=e,this.getVersion();try{d(this.hex,0,[0,7],"a3"),this.parseExt()}catch(t){}},this.getParam=function(e){var t={};return void 0==e&&(e={}),t.version=this.getVersion(),t.serial={hex:this.getSerialNumberHex()},t.sigalg=this.getSignatureAlgorithmField(),t.issuer=this.getIssuer(e.dncanon,e.dnhex),t.notbefore=this.getNotBefore(),t.notafter=this.getNotAfter(),t.subject=this.getSubject(e.dncanon,e.dnhex),t.sbjpubkey=Yn(this.getPublicKeyHex(),"PUBLIC KEY"),void 0!=this.aExtInfo&&this.aExtInfo.length>0&&(t.ext=this.getExtParamArray()),t.sighex=this.getSignatureValueHex(),1==e.tbshex&&(t.tbshex=c(this.hex,0,[0])),1==e.nodnarray&&(delete t.issuer.array,delete t.subject.array),t},this.getExtParamArray=function(e){if(void 0==e){var t=h(this.hex,0,[0,"[3]"]);-1!=t&&(e=u(this.hex,0,[0,"[3]",0],"30"))}for(var n=[],i=r(e,0),a=0;a<i.length;a++){var s=o(e,i[a]),l=this.getExtParam(s);null!=l&&n.push(l)}return n},this.getExtParam=function(e){var t=r(e,0),n=t.length;if(2!=n&&3!=n)throw new Error("wrong number elements in Extension: "+n+" "+e);var i=g(s(e,0,[0],"06")),o=!1;3==n&&"0101ff"==c(e,0,[1])&&(o=!0);var l=c(e,0,[n-1,0]),u=void 0;if("2.5.29.14"==i?u=this.getExtSubjectKeyIdentifier(l,o):"2.5.29.15"==i?u=this.getExtKeyUsage(l,o):"2.5.29.17"==i?u=this.getExtSubjectAltName(l,o):"2.5.29.18"==i?u=this.getExtIssuerAltName(l,o):"2.5.29.19"==i?u=this.getExtBasicConstraints(l,o):"2.5.29.30"==i?u=this.getExtNameConstraints(l,o):"2.5.29.31"==i?u=this.getExtCRLDistributionPoints(l,o):"2.5.29.32"==i?u=this.getExtCertificatePolicies(l,o):"2.5.29.33"==i?u=this.getExtPolicyMappings(l,o):"2.5.29.35"==i?u=this.getExtAuthorityKeyIdentifier(l,o):"2.5.29.36"==i?u=this.getExtPolicyConstraints(l,o):"2.5.29.37"==i?u=this.getExtExtKeyUsage(l,o):"2.5.29.54"==i?u=this.getExtInhibitAnyPolicy(l,o):"1.3.6.1.5.5.7.1.1"==i?u=this.getExtAuthorityInfoAccess(l,o):"2.5.29.20"==i?u=this.getExtCRLNumber(l,o):"2.5.29.21"==i?u=this.getExtCRLReason(l,o):"2.5.29.9"==i?u=this.getExtSubjectDirectoryAttributes(l,o):"1.3.6.1.5.5.7.48.1.2"==i?u=this.getExtOcspNonce(l,o):"1.3.6.1.5.5.7.48.1.5"==i?u=this.getExtOcspNoCheck(l,o):"1.2.840.113583.1.1.9.1"==i?u=this.getExtAdobeTimeStamp(l,o):void 0!=Ur.EXT_PARSER[i]&&(u=Ur.EXT_PARSER[i](i,o,l)),void 0!=u)return u;var d={extname:i,extn:l};try{d.extn=a(l)}catch(h){}return o&&(d.critical=!0),d},this.findExt=function(e,t){for(var n=0;n<e.length;n++)if(e[n].extname==t)return e[n];return null},this.updateExtCDPFullURI=function(e,t){var n=this.findExt(e,"cRLDistributionPoints");if(null!=n&&void 0!=n.array)for(var r=n.array,i=0;i<r.length;i++)if(void 0!=r[i].dpname&&void 0!=r[i].dpname.full)for(var a=r[i].dpname.full,o=0;o<a.length;o++){var s=a[i];void 0!=s.uri&&(s.uri=t)}},this.updateExtAIAOCSP=function(e,t){var n=this.findExt(e,"authorityInfoAccess");if(null!=n&&void 0!=n.array)for(var r=n.array,i=0;i<r.length;i++)void 0!=r[i].ocsp&&(r[i].ocsp=t)},this.updateExtAIACAIssuer=function(e,t){var n=this.findExt(e,"authorityInfoAccess");if(null!=n&&void 0!=n.array)for(var r=n.array,i=0;i<r.length;i++)void 0!=r[i].caissuer&&(r[i].caissuer=t)},this.dnarraytostr=function(e){function t(e){return e.map(function(e){return n(e).replace(/\+/,"\\+")}).join("+")}function n(e){return e.type+"="+e.value}return"/"+e.map(function(e){return t(e).replace(/\//,"\\/")}).join("/")},this.setCanonicalizedDN=function(e){var t;if(void 0!=e.str&&void 0==e.array){var n=new En.asn1.x509.X500Name({str:e.str}),r=n.tohex();t=this.getX500NameArray(r)}else t=e.array;void 0==e.canon&&(e.canon=this.c14nRDNArray(t))},this.c14nRDNArray=function(e){for(var t=[],n=0;n<e.length;n++){for(var r=e[n],i=[],a=0;a<r.length;a++){var o=r[a],s=o.value;s=s.replace(/^\s*/,""),s=s.replace(/\s*$/,""),s=s.replace(/\s+/g," "),s=s.toLowerCase(),i.push(o.type.toLowerCase()+"="+s)}t.push(i.join("+"))}return"/"+t.join("/")},this.getInfo=function(){var e,t,n,r=function(e){for(var t="",n=" ",r="\n",i=e.array,a=0;a<i.length;a++){var o=i[a];if(void 0!=o.dn&&(t+=n+"dn: "+o.dn.str+r),void 0!=o.ip&&(t+=n+"ip: "+o.ip+r),void 0!=o.rfc822&&(t+=n+"rfc822: "+o.rfc822+r),void 0!=o.dns&&(t+=n+"dns: "+o.dns+r),void 0!=o.uri&&(t+=n+"uri: "+o.uri+r),void 0!=o.other){var s=o.other.oid,l=JSON.stringify(o.other.value).replace(/\"/g,"");t+=n+"other: "+s+"="+l+r}}return t=t.replace(/\n$/,""),t},i=function(e){for(var t="",n=e.array,r=0;r<n.length;r++){var i=n[r];if(t+=" policy oid: "+i.policyoid+"\n",void 0!==i.array)for(var a=0;a<i.array.length;a++){var o=i.array[a];void 0!==o.cps&&(t+=" cps: "+o.cps+"\n")}}return t},a=function(e){for(var t="",n=e.array,r=0;r<n.length;r++){var i=n[r];try{void 0!==i.dpname.full[0].uri&&(t+=" "+i.dpname.full[0].uri+"\n")}catch(a){}try{void 0!==i.dname.full[0].dn.hex&&(t+=" "+Ur.hex2dn(i.dpname.full[0].dn.hex)+"\n")}catch(a){}}return t},o=function(e){for(var t="",n=e.array,r=0;r<n.length;r++){var i=n[r];void 0!==i.caissuer&&(t+=" caissuer: "+i.caissuer+"\n"),void 0!==i.ocsp&&(t+=" ocsp: "+i.ocsp+"\n")}return t};if(e="Basic Fields\n",e+=" serial number: "+this.getSerialNumberHex()+"\n",e+=" signature algorithm: "+this.getSignatureAlgorithmField()+"\n",e+=" issuer: "+this.getIssuerString()+"\n",e+=" notBefore: "+this.getNotBefore()+"\n",e+=" notAfter: "+this.getNotAfter()+"\n",e+=" subject: "+this.getSubjectString()+"\n",e+=" subject public key info: \n",t=this.getPublicKey(),e+=" key algorithm: "+t.type+"\n","RSA"===t.type&&(e+=" n="+wr(t.n.toString(16)).substr(0,16)+"...\n",e+=" e="+wr(t.e.toString(16))+"\n"),n=this.aExtInfo,void 0!==n&&null!==n){e+="X509v3 Extensions:\n";for(var s=0;s<n.length;s++){var l=n[s],c=En.asn1.x509.OID.oid2name(l.oid);""===c&&(c=l.oid);var u="";if(!0===l.critical&&(u="CRITICAL"),e+=" "+c+" "+u+":\n","basicConstraints"===c){var d=this.getExtBasicConstraints();void 0===d.cA?e+=" {}\n":(e+=" cA=true",void 0!==d.pathLen&&(e+=", pathLen="+d.pathLen),e+="\n")}else if("policyMappings"==c){var h=this.getExtPolicyMappings().array,p=h.map(function(e){var t=e;return t[0]+":"+t[1]}).join(", ");e+=" "+p+"\n"}else if("policyConstraints"==c){var f=this.getExtPolicyConstraints();e+=" ",void 0!=f.reqexp&&(e+=" reqexp="+f.reqexp),void 0!=f.inhibit&&(e+=" inhibit="+f.inhibit),e+="\n"}else if("inhibitAnyPolicy"==c){f=this.getExtInhibitAnyPolicy();e+=" skip="+f.skip+"\n"}else if("keyUsage"==c)e+=" "+this.getExtKeyUsageString()+"\n";else if("subjectKeyIdentifier"==c)e+=" "+this.getExtSubjectKeyIdentifier().kid.hex+"\n";else if("authorityKeyIdentifier"==c){var m=this.getExtAuthorityKeyIdentifier();void 0!==m.kid&&(e+=" kid="+m.kid.hex+"\n")}else if("extKeyUsage"==c){var g=this.getExtExtKeyUsage().array;e+=" "+g.join(", ")+"\n"}else if("subjectAltName"==c){var v=r(this.getExtSubjectAltName());e+=v+"\n"}else if("cRLDistributionPoints"==c){var b=this.getExtCRLDistributionPoints();e+=a(b)}else if("authorityInfoAccess"==c){var y=this.getExtAuthorityInfoAccess();e+=o(y)}else"certificatePolicies"==c&&(e+=i(this.getExtCertificatePolicies()))}}return e+="signature algorithm: "+this.getSignatureAlgorithmName()+"\n",e+="signature: "+this.getSignatureValueHex().substr(0,16)+"...\n",e},"string"==typeof e&&(-1!=e.indexOf("-----BEGIN")?this.readCertPEM(e):En.lang.String.isHex(e)&&this.readCertHex(e))}Ut.prototype.sign=function(e,t){var n=function(e){return En.crypto.Util.hashString(e,t)},r=n(e);return this.signWithMessageHash(r,t)},Ut.prototype.signWithMessageHash=function(e,t){var n=En.crypto.Util.getPaddedDigestInfoHex(e,t,this.n.bitLength()),r=$t(n,16),i=this.doPrivate(r),a=i.toString(16);return Br(a,this.n.bitLength())},Ut.prototype.signPSS=function(e,t,n){var r=function(e){return En.crypto.Util.hashHex(e,t)},i=r(Gn(e));return void 0===n&&(n=-1),this.signWithMessageHashPSS(i,t,n)},Ut.prototype.signWithMessageHashPSS=function(e,t,n){var r,i=Kn(e),a=i.length,o=this.n.bitLength()-1,s=Math.ceil(o/8),l=function(e){return En.crypto.Util.hashHex(e,t)};if(-1===n||void 0===n)n=a;else if(-2===n)n=s-a-2;else if(n<-2)throw new Error("invalid salt length");if(s<a+n+2)throw new Error("data too long");var c="";n>0&&(c=new Array(n),(new Ft).nextBytes(c),c=String.fromCharCode.apply(String,c));var u=Kn(l(Gn("\0\0\0\0\0\0\0\0"+i+c))),d=[];for(r=0;r<s-n-a-2;r+=1)d[r]=0;var h=String.fromCharCode.apply(String,d)+""+c,p=Fr(u,h.length,l),f=[];for(r=0;r<h.length;r+=1)f[r]=h.charCodeAt(r)^p.charCodeAt(r);var m=65280>>8*s-o&255;for(f[0]&=~m,r=0;r<a;r++)f.push(u.charCodeAt(r));return f.push(188),Br(this.doPrivate(new v(f)).toString(16),this.n.bitLength())},Ut.prototype.verify=function(e,t){if(t=t.toLowerCase(),null==t.match(/^[0-9a-f]+$/))return!1;var n=$t(t,16),r=this.n.bitLength();if(n.bitLength()>r)return!1;var i=this.doPublic(n),a=i.toString(16);if(a.length+3!=r/4)return!1;var o=a.replace(/^1f+00/,""),s=$r(o);if(0==s.length)return!1;var l=s[0],c=s[1],u=function(e){return En.crypto.Util.hashString(e,l)},d=u(e);return c==d},Ut.prototype.verifyWithMessageHash=function(e,t){if(t.length!=Math.ceil(this.n.bitLength()/4))return!1;var n=$t(t,16);if(n.bitLength()>this.n.bitLength())return 0;var r=this.doPublic(n),i=r.toString(16).replace(/^1f+00/,""),a=$r(i);if(0==a.length)return!1;a[0];var o=a[1];return o==e},Ut.prototype.verifyPSS=function(e,t,n,r){var i=function(e){return En.crypto.Util.hashHex(e,n)},a=i(Gn(e));return void 0===r&&(r=-1),this.verifyWithMessageHashPSS(a,t,n,r)},Ut.prototype.verifyWithMessageHashPSS=function(e,t,n,r){if(t.length!=Math.ceil(this.n.bitLength()/4))return!1;var i,a=new v(t,16),o=function(e){return En.crypto.Util.hashHex(e,n)},s=Kn(e),l=s.length,c=this.n.bitLength()-1,u=Math.ceil(c/8);if(-1===r||void 0===r)r=l;else if(-2===r)r=u-l-2;else if(r<-2)throw new Error("invalid salt length");if(u<l+r+2)throw new Error("data too long");var d=this.doPublic(a).toByteArray();for(i=0;i<d.length;i+=1)d[i]&=255;while(d.length<u)d.unshift(0);if(188!==d[u-1])throw new Error("encoded message does not end in 0xbc");d=String.fromCharCode.apply(String,d);var h=d.substr(0,u-l-1),p=d.substr(h.length,l),f=65280>>8*u-c&255;if(0!==(h.charCodeAt(0)&f))throw new Error("bits beyond keysize not zero");var m=Fr(p,h.length,o),g=[];for(i=0;i<h.length;i+=1)g[i]=h.charCodeAt(i)^m.charCodeAt(i);g[0]&=~f;var b=u-l-r-2;for(i=0;i<b;i+=1)if(0!==g[i])throw new Error("leftmost octets not zero");if(1!==g[b])throw new Error("0x01 marker not found");return p===Kn(o(Gn("\0\0\0\0\0\0\0\0"+s+String.fromCharCode.apply(String,g.slice(-r)))))},Ut.SALT_LEN_HLEN=-1,Ut.SALT_LEN_MAX=-2,Ut.SALT_LEN_RECOVER=-2,Ur.EXT_PARSER={},Ur.registExtParser=function(e,t){Ur.EXT_PARSER[e]=t},Ur.hex2dn=function(e,t){void 0===t&&(t=0);var n=new Ur,r=(xn.getTLV(e,t),n.getX500Name(e));return r.str},Ur.hex2rdn=function(e,t){if(void 0===t&&(t=0),"31"!==e.substr(t,2))throw new Error("malformed RDN");for(var n=new Array,r=xn.getChildIdx(e,t),i=0;i<r.length;i++)n.push(Ur.hex2attrTypeValue(e,r[i]));return n=n.map(function(e){return e.replace("+","\\+")}),n.join("+")},Ur.hex2attrTypeValue=function(e,t){var n=xn,r=n.getV;if(void 0===t&&(t=0),"30"!==e.substr(t,2))throw new Error("malformed attribute type and value");var i=n.getChildIdx(e,t);2!==i.length||e.substr(i[0],2);var a=r(e,i[0]),o=En.asn1.ASN1Util.oidHexToInt(a),s=En.asn1.x509.OID.oid2atype(o),l=r(e,i[1]),c=Kn(l);return s+"="+c},Ur.getPublicKeyFromCertHex=function(e){var t=new Ur;return t.readCertHex(e),t.getPublicKey()},Ur.getPublicKeyFromCertPEM=function(e){var t=new Ur;return t.readCertPEM(e),t.getPublicKey()},Ur.getPublicKeyInfoPropOfCertPEM=function(e){var t,n,r=xn,i=r.getVbyList,a={};return a.algparam=null,t=new Ur,t.readCertPEM(e),n=t.getPublicKeyHex(),a.keyhex=i(n,0,[1],"03").substr(2),a.algoid=i(n,0,[0,0],"06"),"2a8648ce3d0201"===a.algoid&&(a.algparam=i(n,0,[0,1],"06")),a},Ur.KEYUSAGE_NAME=["digitalSignature","nonRepudiation","keyEncipherment","dataEncipherment","keyAgreement","keyCertSign","cRLSign","encipherOnly","decipherOnly"];var jr=function(e){var t=En,n=t.lang.String.isHex,r=xn,i=r.getV,a=r.getTLV,o=r.getVbyList,s=r.getTLVbyList,l=r.getTLVbyListEx,c=r.getIdxbyList,u=r.getIdxbyListEx,d=r.getChildIdx,h=new Ur;this.hex=null,this.posSigAlg=null,this.posRevCert=null,this.parsed=null,this._setPos=function(){var e=c(this.hex,0,[0,0]),t=this.hex.substr(e,2);if("02"==t)this.posSigAlg=1;else{if("30"!=t)throw new Error("malformed 1st item of TBSCertList: "+t);this.posSigAlg=0}var n,r,i=c(this.hex,0,[0,this.posSigAlg+3]),a=this.hex.substr(i,2);if("17"==a||"18"==a)n=c(this.hex,0,[0,this.posSigAlg+4]),this.posRevCert=null,-1!=n&&(r=this.hex.substr(n,2),"30"==r&&(this.posRevCert=this.posSigAlg+4));else if("30"==a)this.posRevCert=this.posSigAlg+3;else{if("a0"!=a)throw new Error("malformed nextUpdate or revCert tag: "+a);this.posRevCert=null}},this.getVersion=function(){return 0==this.posSigAlg?null:parseInt(o(this.hex,0,[0,0],"02"),16)+1},this.getSignatureAlgorithmField=function(){var e=s(this.hex,0,[0,this.posSigAlg],"30");return h.getAlgorithmIdentifierName(e)},this.getIssuer=function(){return h.getX500Name(this.getIssuerHex())},this.getIssuerHex=function(){return s(this.hex,0,[0,this.posSigAlg+1],"30")},this.getThisUpdate=function(){var e=o(this.hex,0,[0,this.posSigAlg+2]);return result=Kn(e)},this.getNextUpdate=function(){var e=c(this.hex,0,[0,this.posSigAlg+3]),t=this.hex.substr(e,2);return"17"!=t&&"18"!=t?null:Kn(i(this.hex,e))},this.getRevCertArray=function(){if(null==this.posRevCert)return null;for(var e=[],t=c(this.hex,0,[0,this.posRevCert]),n=d(this.hex,t),r=0;r<n.length;r++){var i=a(this.hex,n[r]);e.push(this.getRevCert(i))}return e},this.getRevCert=function(e){var t={},n=d(e,0);return t.sn={hex:o(e,0,[0],"02")},t.date=Kn(o(e,0,[1])),3==n.length&&(t.ext=h.getExtParamArray(s(e,0,[2]))),t},this.findRevCert=function(e){var t=new Ur(e),n=t.getSerialNumberHex();return this.findRevCertBySN(n)},this.findRevCertBySN=function(e){if(null==this.parsed&&this.getParam(),null==this.parsed.revcert)return null;for(var t=this.parsed.revcert,n=0;n<t.length;n++)if(e==t[n].sn.hex)return t[n];return null},this.getSignatureValueHex=function(){return o(this.hex,0,[2],"03",!0)},this.verifySignature=function(e){var t=this.getSignatureAlgorithmField(),n=this.getSignatureValueHex(),r=s(this.hex,0,[0],"30"),i=new En.crypto.Signature({alg:t});return i.init(e),i.updateHex(r),i.verify(n)},this.getParam=function(e){var t={},n=this.getVersion();null!=n&&(t.version=n),t.sigalg=this.getSignatureAlgorithmField(),t.issuer=this.getIssuer(),t.thisupdate=this.getThisUpdate();var r=this.getNextUpdate();null!=r&&(t.nextupdate=r);var i=this.getRevCertArray();null!=i&&(t.revcert=i);var a=u(this.hex,0,[0,"[0]"]);if(-1!=a){var o=l(this.hex,0,[0,"[0]",0]);t.ext=h.getExtParamArray(o)}return t.sighex=this.getSignatureValueHex(),this.parsed=t,"object"==typeof e&&(1==e.tbshex&&(t.tbshex=s(this.hex,0,[0])),1==e.nodnarray&&delete t.issuer.array),t},"string"==typeof e&&(n(e)?this.hex=e:e.match(/-----BEGIN X509 CRL/)&&(this.hex=Qn(e)),this._setPos())};"undefined"!=typeof En&&En||(En={}),"undefined"!=typeof En.jws&&En.jws||(En.jws={}),En.jws.JWS=function(){var e=En,t=e.jws.JWS,n=t.isSafeJSONString;this.parseJWS=function(e,t){if(void 0===this.parsedJWS||!t&&void 0===this.parsedJWS.sigvalH){var r=e.match(/^([^.]+)\.([^.]+)\.([^.]+)$/);if(null==r)throw"JWS signature is not a form of 'Head.Payload.SigValue'.";var i=r[1],a=r[2],o=r[3],s=i+"."+a;if(this.parsedJWS={},this.parsedJWS.headB64U=i,this.parsedJWS.payloadB64U=a,this.parsedJWS.sigvalB64U=o,this.parsedJWS.si=s,!t){var l=Mn(o),c=$t(l,16);this.parsedJWS.sigvalH=l,this.parsedJWS.sigvalBI=c}var u=kn(i),d=kn(a);if(this.parsedJWS.headS=u,this.parsedJWS.payloadS=d,!n(u,this.parsedJWS,"headP"))throw"malformed JSON string for JWS Head: "+u}}},En.jws.JWS.sign=function(e,t,n,r,i){var a,o,s,l=En,c=l.jws,u=c.JWS,d=u.readSafeJSONString,h=u.isSafeJSONString,p=l.crypto,f=(p.ECDSA,p.Mac),m=p.Signature,g=JSON;if("string"!=typeof t&&"object"!=typeof t)throw"spHeader must be JSON string or object: "+t;if("object"==typeof t&&(o=t,a=g.stringify(o)),"string"==typeof t){if(a=t,!h(a))throw"JWS Head is not safe JSON string: "+a;o=d(a)}if(s=n,"object"==typeof n&&(s=g.stringify(n)),""!=e&&null!=e||void 0===o.alg||(e=o.alg),""!=e&&null!=e&&void 0===o.alg&&(o.alg=e,a=g.stringify(o)),e!==o.alg)throw"alg and sHeader.alg doesn't match: "+e+"!="+o.alg;var v=null;if(void 0===u.jwsalg2sigalg[e])throw"unsupported alg name: "+e;v=u.jwsalg2sigalg[e];var b=Sn(a),y=Sn(s),_=b+"."+y,w="";if("Hmac"==v.substr(0,4)){if(void 0===r)throw"mac key shall be specified for HS* alg";var E=new f({alg:v,prov:"cryptojs",pass:r});E.updateString(_),w=E.doFinal()}else if(-1!=v.indexOf("withECDSA")){var S=new m({alg:v});S.init(r,i),S.updateString(_);var k=S.sign();w=En.crypto.ECDSA.asn1SigToConcatSig(k)}else if("none"!=v){S=new m({alg:v});S.init(r,i),S.updateString(_),w=S.sign()}var x=Pn(w);return _+"."+x},En.jws.JWS.verify=function(e,t,n){var r,i=En,a=i.jws,o=a.JWS,s=o.readSafeJSONString,l=i.crypto,c=l.ECDSA,u=l.Mac,d=l.Signature;if(void 0!==typeof Ut&&(r=Ut),!_r(e))return!1;var h=e.split(".");if(3!==h.length)return!1;var p=h[0],f=h[1],m=p+"."+f,g=Mn(h[2]),v=s(kn(h[0])),b=null,y=null;if(void 0===v.alg)throw"algorithm not specified in header";if(b=v.alg,y=b.substr(0,2),null!=n&&"[object Array]"===Object.prototype.toString.call(n)&&n.length>0){var _=":"+n.join(":")+":";if(-1==_.indexOf(":"+b+":"))throw"algorithm '"+b+"' not accepted in the list"}if("none"!=b&&null===t)throw"key shall be specified to verify.";if("string"==typeof t&&-1!=t.indexOf("-----BEGIN ")&&(t=Mr.getKey(t)),("RS"==y||"PS"==y)&&!(t instanceof r))throw"key shall be a RSAKey obj for RS* and PS* algs";if("ES"==y&&!(t instanceof c))throw"key shall be a ECDSA obj for ES* algs";var w=null;if(void 0===o.jwsalg2sigalg[v.alg])throw"unsupported alg name: "+b;if(w=o.jwsalg2sigalg[b],"none"==w)throw"not supported";if("Hmac"==w.substr(0,4)){var E=null;if(void 0===t)throw"hexadecimal key shall be specified for HMAC";var S=new u({alg:w,pass:t});return S.updateString(m),E=S.doFinal(),g==E}if(-1!=w.indexOf("withECDSA")){var k=null;try{k=c.concatSigToASN1Sig(g)}catch(A){return!1}var x=new d({alg:w});return x.init(t),x.updateString(m),x.verify(k)}x=new d({alg:w});return x.init(t),x.updateString(m),x.verify(g)},En.jws.JWS.parse=function(e){var t,n,r,i=e.split("."),a={};if(2!=i.length&&3!=i.length)throw"malformed sJWS: wrong number of '.' splitted elements";return t=i[0],n=i[1],3==i.length&&(r=i[2]),a.headerObj=En.jws.JWS.readSafeJSONString(kn(t)),a.payloadObj=En.jws.JWS.readSafeJSONString(kn(n)),a.headerPP=JSON.stringify(a.headerObj,null," "),null==a.payloadObj?a.payloadPP=kn(n):a.payloadPP=JSON.stringify(a.payloadObj,null," "),void 0!==r&&(a.sigHex=Mn(r)),a},En.jws.JWS.verifyJWT=function(e,t,n){var r=En,i=r.jws,a=i.JWS,o=a.readSafeJSONString,s=a.inArray,l=a.includedArray;if(!_r(e))return!1;var c=e.split(".");if(3!=c.length)return!1;var u=c[0],d=c[1],h=(Mn(c[2]),o(kn(u))),p=o(kn(d));if(void 0===h.alg)return!1;if(void 0===n.alg)throw"acceptField.alg shall be specified";if(!s(h.alg,n.alg))return!1;if(void 0!==p.iss&&"object"===typeof n.iss&&!s(p.iss,n.iss))return!1;if(void 0!==p.sub&&"object"===typeof n.sub&&!s(p.sub,n.sub))return!1;if(void 0!==p.aud&&"object"===typeof n.aud)if("string"==typeof p.aud){if(!s(p.aud,n.aud))return!1}else if("object"==typeof p.aud&&!l(p.aud,n.aud))return!1;var f=i.IntDate.getNow();return void 0!==n.verifyAt&&"number"===typeof n.verifyAt&&(f=n.verifyAt),void 0!==n.gracePeriod&&"number"===typeof n.gracePeriod||(n.gracePeriod=0),!(void 0!==p.exp&&"number"==typeof p.exp&&p.exp+n.gracePeriod<f)&&(!(void 0!==p.nbf&&"number"==typeof p.nbf&&f<p.nbf-n.gracePeriod)&&(!(void 0!==p.iat&&"number"==typeof p.iat&&f<p.iat-n.gracePeriod)&&((void 0===p.jti||void 0===n.jti||p.jti===n.jti)&&!!a.verify(e,t,n.alg))))},En.jws.JWS.includedArray=function(e,t){var n=En.jws.JWS.inArray;if(null===e)return!1;if("object"!==typeof e)return!1;if("number"!==typeof e.length)return!1;for(var r=0;r<e.length;r++)if(!n(e[r],t))return!1;return!0},En.jws.JWS.inArray=function(e,t){if(null===t)return!1;if("object"!==typeof t)return!1;if("number"!==typeof t.length)return!1;for(var n=0;n<t.length;n++)if(t[n]==e)return!0;return!1},En.jws.JWS.jwsalg2sigalg={HS256:"HmacSHA256",HS384:"HmacSHA384",HS512:"HmacSHA512",RS256:"SHA256withRSA",RS384:"SHA384withRSA",RS512:"SHA512withRSA",ES256:"SHA256withECDSA",ES384:"SHA384withECDSA",ES512:"SHA512withECDSA",PS256:"SHA256withRSAandMGF1",PS384:"SHA384withRSAandMGF1",PS512:"SHA512withRSAandMGF1",none:"none"},En.jws.JWS.isSafeJSONString=function(e,t,n){var r=null;try{return r=wn(e),"object"!=typeof r?0:r.constructor===Array?0:(t&&(t[n]=r),1)}catch(i){return 0}},En.jws.JWS.readSafeJSONString=function(e){var t=null;try{return t=wn(e),"object"!=typeof t||t.constructor===Array?null:t}catch(n){return null}},En.jws.JWS.getEncodedSignatureValueFromJWS=function(e){var t=e.match(/^[^.]+\.[^.]+\.([^.]+)$/);if(null==t)throw"JWS signature is not a form of 'Head.Payload.SigValue'.";return t[1]},En.jws.JWS.getJWKthumbprint=function(e){if("RSA"!==e.kty&&"EC"!==e.kty&&"oct"!==e.kty)throw"unsupported algorithm for JWK Thumprint";var t="{";if("RSA"===e.kty){if("string"!=typeof e.n||"string"!=typeof e.e)throw"wrong n and e value for RSA key";t+='"e":"'+e.e+'",',t+='"kty":"'+e.kty+'",',t+='"n":"'+e.n+'"}'}else if("EC"===e.kty){if("string"!=typeof e.crv||"string"!=typeof e.x||"string"!=typeof e.y)throw"wrong crv, x and y value for EC key";t+='"crv":"'+e.crv+'",',t+='"kty":"'+e.kty+'",',t+='"x":"'+e.x+'",',t+='"y":"'+e.y+'"}'}else if("oct"===e.kty){if("string"!=typeof e.k)throw"wrong k value for oct(symmetric) key";t+='"kty":"'+e.kty+'",',t+='"k":"'+e.k+'"}'}var n=Gn(t),r=En.crypto.Util.hashHex(n,"sha256"),i=Pn(r);return i},En.jws.IntDate={},En.jws.IntDate.get=function(e){var t=En.jws.IntDate,n=t.getNow,r=t.getZulu;if("now"==e)return n();if("now + 1hour"==e)return n()+3600;if("now + 1day"==e)return n()+86400;if("now + 1month"==e)return n()+2592e3;if("now + 1year"==e)return n()+31536e3;if(e.match(/Z$/))return r(e);if(e.match(/^[0-9]+$/))return parseInt(e);throw"unsupported format: "+e},En.jws.IntDate.getZulu=function(e){return rr(e)},En.jws.IntDate.getNow=function(){var e=~~(new Date/1e3);return e},En.jws.IntDate.intDate2UTCString=function(e){var t=new Date(1e3*e);return t.toUTCString()},En.jws.IntDate.intDate2Zulu=function(e){var t=new Date(1e3*e),n=("0000"+t.getUTCFullYear()).slice(-4),r=("00"+(t.getUTCMonth()+1)).slice(-2),i=("00"+t.getUTCDate()).slice(-2),a=("00"+t.getUTCHours()).slice(-2),o=("00"+t.getUTCMinutes()).slice(-2),s=("00"+t.getUTCSeconds()).slice(-2);return n+r+i+a+o+s+"Z"},"undefined"!=typeof En&&En||(En={}),"undefined"!=typeof En.jws&&En.jws||(En.jws={}),En.jws.JWSJS=function(){var e=En,t=e.jws,n=t.JWS,r=n.readSafeJSONString;this.aHeader=[],this.sPayload="",this.aSignature=[],this.init=function(){this.aHeader=[],this.sPayload=void 0,this.aSignature=[]},this.initWithJWS=function(e){this.init();var t=e.split(".");if(3!=t.length)throw"malformed input JWS";this.aHeader.push(t[0]),this.sPayload=t[1],this.aSignature.push(t[2])},this.addSignature=function(e,t,n,r){if(void 0===this.sPayload||null===this.sPayload)throw"there's no JSON-JS signature to add.";var i=this.aHeader.length;if(this.aHeader.length!=this.aSignature.length)throw"aHeader.length != aSignature.length";try{var a=En.jws.JWS.sign(e,t,this.sPayload,n,r),o=a.split(".");o[0],o[2];this.aHeader.push(o[0]),this.aSignature.push(o[2])}catch(s){throw this.aHeader.length>i&&this.aHeader.pop(),this.aSignature.length>i&&this.aSignature.pop(),"addSignature failed: "+s}},this.verifyAll=function(e){if(this.aHeader.length!==e.length||this.aSignature.length!==e.length)return!1;for(var t=0;t<e.length;t++){var n=e[t];if(2!==n.length)return!1;var r=this.verifyNth(t,n[0],n[1]);if(!1===r)return!1}return!0},this.verifyNth=function(e,t,r){if(this.aHeader.length<=e||this.aSignature.length<=e)return!1;var i=this.aHeader[e],a=this.aSignature[e],o=i+"."+this.sPayload+"."+a,s=!1;try{s=n.verify(o,t,r)}catch(l){return!1}return s},this.readJWSJS=function(e){if("string"===typeof e){var t=r(e);if(null==t)throw"argument is not safe JSON object string";this.aHeader=t.headers,this.sPayload=t.payload,this.aSignature=t.signatures}else try{if(!(e.headers.length>0))throw"malformed header";if(this.aHeader=e.headers,"string"!==typeof e.payload)throw"malformed signatures";if(this.sPayload=e.payload,!(e.signatures.length>0))throw"malformed signatures";this.aSignature=e.signatures}catch(n){throw"malformed JWS-JS JSON object: "+n}},this.getJSON=function(){return{headers:this.aHeader,payload:this.sPayload,signatures:this.aSignature}},this.isEmpty=function(){return 0==this.aHeader.length?1:0}},t.SecureRandom=Ft,t.rng_seed_time=Ot,t.BigInteger=v,t.RSAKey=Ut,t.ECDSA=En.crypto.ECDSA,t.DSA=En.crypto.DSA,t.Signature=En.crypto.Signature,t.MessageDigest=En.crypto.MessageDigest,t.Mac=En.crypto.Mac,t.KEYUTIL=Mr,t.ASN1HEX=xn,t.X509=Ur,t.X509CRL=jr,t.CryptoJS=l,t.b64tohex=p,t.b64toBA=f,t.ECFieldElementFp=qt,t.ECPointFp=nn,t.ECCurveFp=pn,t.stoBA=An,t.BAtos=Cn,t.BAtohex=Tn,t.stohex=Nn,t.stob64=Rn,t.stob64u=On,t.b64utos=In,t.b64tob64u=Ln,t.b64utob64=Dn,t.hex2b64=h,t.hextob64u=Pn,t.b64utohex=Mn,t.utf8tob64u=Sn,t.b64utoutf8=kn,t.utf8tob64=Bn,t.b64toutf8=Fn,t.utf8tohex=$n,t.hextoutf8=Un,t.hextorstr=Kn,t.rstrtohex=Gn,t.hextob64=Hn,t.hextob64nl=zn,t.b64nltohex=Xn,t.hextopem=Yn,t.pemtohex=Qn,t.hextoArrayBuffer=Zn,t.ArrayBuffertohex=er,t.zulutomsec=tr,t.msectozulu=nr,t.zulutosec=rr,t.zulutodate=ir,t.datetozulu=ar,t.uricmptohex=sr,t.hextouricmp=lr,t.ipv6tohex=cr,t.hextoipv6=ur,t.hextoip=dr,t.iptohex=pr,t.ucs2hextoutf8=mr,t.encodeURIComponentAll=gr,t.newline_toUnix=vr,t.newline_toDos=br,t.hextoposhex=wr,t.intarystrtohex=Er,t.strdiffidx=Sr,t.oidtohex=kr,t.hextooid=xr,t.strpad=Tr,t.bitstrtoint=Nr,t.inttobitstr=Rr,t.bitstrtobinstr=Or,t.binstrtobitstr=Ir,t.isBase64URLDot=_r,t.namearraytobinstr=Lr,t.extendClass=Pr,t.foldnl=qn,t.b64topem=Wn,t.pemtob64=Jn,t.timeogen=or,t.aryval=Dr,t.inttohex=Ar,t.twoscompl=Cr,t.KJUR=En,t.crypto=En.crypto,t.asn1=En.asn1,t.jws=En.jws,t.lang=En.lang,t.VERSION=o,t.VERSION_FULL=s},33103:function(e,t,n){var r=n(94715),i=n(78942),a=r(i,"DataView");e.exports=a},25098:function(e,t,n){var r=n(23305),i=n(39361),a=n(11112),o=n(25276),s=n(57452);function l(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype["delete"]=i,l.prototype.get=a,l.prototype.has=o,l.prototype.set=s,e.exports=l},1386:function(e,t,n){var r=n(12393),i=n(62049),a=n(7144),o=n(7452),s=n(13964);function l(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype["delete"]=i,l.prototype.get=a,l.prototype.has=o,l.prototype.set=s,e.exports=l},19770:function(e,t,n){var r=n(94715),i=n(78942),a=r(i,"Map");e.exports=a},68250:function(e,t,n){var r=n(49753),i=n(5681),a=n(80088),o=n(54732),s=n(59068);function l(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype["delete"]=i,l.prototype.get=a,l.prototype.has=o,l.prototype.set=s,e.exports=l},89413:function(e,t,n){var r=n(94715),i=n(78942),a=r(i,"Promise");e.exports=a},64512:function(e,t,n){var r=n(94715),i=n(78942),a=r(i,"Set");e.exports=a},23212:function(e,t,n){var r=n(68250),i=n(1877),a=n(8006);function o(e){var t=-1,n=null==e?0:e.length;this.__data__=new r;while(++t<n)this.add(e[t])}o.prototype.add=o.prototype.push=i,o.prototype.has=a,e.exports=o},51340:function(e,t,n){var r=n(1386),i=n(64103),a=n(21779),o=n(34162),s=n(7462),l=n(96638);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=i,c.prototype["delete"]=a,c.prototype.get=o,c.prototype.has=s,c.prototype.set=l,e.exports=c},65650:function(e,t,n){var r=n(78942),i=r.Symbol;e.exports=i},31623:function(e,t,n){var r=n(78942),i=r.Uint8Array;e.exports=i},19270:function(e,t,n){var r=n(94715),i=n(78942),a=r(i,"WeakMap");e.exports=a},86912:function(e){function t(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}e.exports=t},79968:function(e){function t(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(!1===t(e[n],n,e))break;return e}e.exports=t},79847:function(e){function t(e,t){var n=-1,r=null==e?0:e.length,i=0,a=[];while(++n<r){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}e.exports=t},59756:function(e,t,n){var r=n(2478);function i(e,t){var n=null==e?0:e.length;return!!n&&r(e,t,0)>-1}e.exports=i},43316:function(e){function t(e,t,n){var r=-1,i=null==e?0:e.length;while(++r<i)if(n(t,e[r]))return!0;return!1}e.exports=t},10358:function(e,t,n){var r=n(26137),i=n(3283),a=n(53142),o=n(75853),s=n(69632),l=n(8666),c=Object.prototype,u=c.hasOwnProperty;function d(e,t){var n=a(e),c=!n&&i(e),d=!n&&!c&&o(e),h=!n&&!c&&!d&&l(e),p=n||c||d||h,f=p?r(e.length,String):[],m=f.length;for(var g in e)!t&&!u.call(e,g)||p&&("length"==g||d&&("offset"==g||"parent"==g)||h&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||f.push(g);return f}e.exports=d},65111:function(e){function t(e,t){var n=-1,r=null==e?0:e.length,i=Array(r);while(++n<r)i[n]=t(e[n],n,e);return i}e.exports=t},11129:function(e){function t(e,t){var n=-1,r=t.length,i=e.length;while(++n<r)e[i+n]=t[n];return e}e.exports=t},44187:function(e){function t(e,t,n,r){var i=-1,a=null==e?0:e.length;r&&a&&(n=e[++i]);while(++i<a)n=t(n,e[i],i,e);return n}e.exports=t},36465:function(e){function t(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(t(e[n],n,e))return!0;return!1}e.exports=t},52837:function(e){function t(e){return e.split("")}e.exports=t},39546:function(e){var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function n(e){return e.match(t)||[]}e.exports=n},24810:function(e,t,n){var r=n(57073),i=n(46285);function a(e,t,n){(void 0!==n&&!i(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}e.exports=a},3422:function(e,t,n){var r=n(57073),i=n(46285),a=Object.prototype,o=a.hasOwnProperty;function s(e,t,n){var a=e[t];o.call(e,t)&&i(a,n)&&(void 0!==n||t in e)||r(e,t,n)}e.exports=s},97034:function(e,t,n){var r=n(46285);function i(e,t){var n=e.length;while(n--)if(r(e[n][0],t))return n;return-1}e.exports=i},37930:function(e,t,n){var r=n(39032),i=n(81211);function a(e,t){return e&&r(t,i(t),e)}e.exports=a},30125:function(e,t,n){var r=n(39032),i=n(25288);function a(e,t){return e&&r(t,i(t),e)}e.exports=a},57073:function(e,t,n){var r=n(72532);function i(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}e.exports=i},69334:function(e,t,n){var r=n(51340),i=n(79968),a=n(3422),o=n(37930),s=n(30125),l=n(17099),c=n(84354),u=n(83546),d=n(24733),h=n(80393),p=n(93650),f=n(28486),m=n(97350),g=n(50424),v=n(75964),b=n(53142),y=n(75853),_=n(37681),w=n(41580),E=n(83943),S=n(81211),k=n(25288),x=1,A=2,C=4,T="[object Arguments]",N="[object Array]",R="[object Boolean]",O="[object Date]",I="[object Error]",L="[object Function]",D="[object GeneratorFunction]",P="[object Map]",M="[object Number]",B="[object Object]",F="[object RegExp]",$="[object Set]",U="[object String]",j="[object Symbol]",V="[object WeakMap]",K="[object ArrayBuffer]",G="[object DataView]",H="[object Float32Array]",z="[object Float64Array]",q="[object Int8Array]",X="[object Int16Array]",W="[object Int32Array]",Y="[object Uint8Array]",Q="[object Uint8ClampedArray]",J="[object Uint16Array]",Z="[object Uint32Array]",ee={};function te(e,t,n,N,R,O){var I,P=t&x,M=t&A,F=t&C;if(n&&(I=R?n(e,N,R,O):n(e)),void 0!==I)return I;if(!w(e))return e;var $=b(e);if($){if(I=m(e),!P)return c(e,I)}else{var U=f(e),j=U==L||U==D;if(y(e))return l(e,P);if(U==B||U==T||j&&!R){if(I=M||j?{}:v(e),!P)return M?d(e,s(I,e)):u(e,o(I,e))}else{if(!ee[U])return R?e:{};I=g(e,U,P)}}O||(O=new r);var V=O.get(e);if(V)return V;O.set(e,I),E(e)?e.forEach(function(r){I.add(te(r,t,n,r,e,O))}):_(e)&&e.forEach(function(r,i){I.set(i,te(r,t,n,i,e,O))});var K=F?M?p:h:M?k:S,G=$?void 0:K(e);return i(G||e,function(r,i){G&&(i=r,r=e[i]),a(I,i,te(r,t,n,i,e,O))}),I}ee[T]=ee[N]=ee[K]=ee[G]=ee[R]=ee[O]=ee[H]=ee[z]=ee[q]=ee[X]=ee[W]=ee[P]=ee[M]=ee[B]=ee[F]=ee[$]=ee[U]=ee[j]=ee[Y]=ee[Q]=ee[J]=ee[Z]=!0,ee[I]=ee[L]=ee[V]=!1,e.exports=te},39747:function(e,t,n){var r=n(41580),i=Object.create,a=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=a},96576:function(e,t,n){var r=n(23212),i=n(59756),a=n(43316),o=n(65111),s=n(49460),l=n(65568),c=200;function u(e,t,n,u){var d=-1,h=i,p=!0,f=e.length,m=[],g=t.length;if(!f)return m;n&&(t=o(t,s(n))),u?(h=a,p=!1):t.length>=c&&(h=l,p=!1,t=new r(t));e:while(++d<f){var v=e[d],b=null==n?v:n(v);if(v=u||0!==v?v:0,p&&b===b){var y=g;while(y--)if(t[y]===b)continue e;m.push(v)}else h(t,b,u)||m.push(v)}return m}e.exports=u},37250:function(e){function t(e,t,n,r){var i=e.length,a=n+(r?1:-1);while(r?a--:++a<i)if(t(e[a],a,e))return a;return-1}e.exports=t},90313:function(e,t,n){var r=n(11129),i=n(20714);function a(e,t,n,o,s){var l=-1,c=e.length;n||(n=i),s||(s=[]);while(++l<c){var u=e[l];t>0&&n(u)?t>1?a(u,t-1,n,o,s):r(s,u):o||(s[s.length]=u)}return s}e.exports=a},35636:function(e,t,n){var r=n(86596),i=r();e.exports=i},47170:function(e,t,n){var r=n(35636),i=n(81211);function a(e,t){return e&&r(e,t,i)}e.exports=a},57923:function(e,t,n){var r=n(93526),i=n(66040);function a(e,t){t=r(t,e);var n=0,a=t.length;while(null!=e&&n<a)e=e[i(t[n++])];return n&&n==a?e:void 0}e.exports=a},48244:function(e,t,n){var r=n(11129),i=n(53142);function a(e,t,n){var a=t(e);return i(e)?a:r(a,n(e))}e.exports=a},87379:function(e,t,n){var r=n(65650),i=n(8870),a=n(29005),o="[object Null]",s="[object Undefined]",l=r?r.toStringTag:void 0;function c(e){return null==e?void 0===e?s:o:l&&l in Object(e)?i(e):a(e)}e.exports=c},63599:function(e){var t=Object.prototype,n=t.hasOwnProperty;function r(e,t){return null!=e&&n.call(e,t)}e.exports=r},43636:function(e){function t(e,t){return null!=e&&t in Object(e)}e.exports=t},2478:function(e,t,n){var r=n(37250),i=n(69454),a=n(97706);function o(e,t,n){return t===t?a(e,t,n):r(e,i,n)}e.exports=o},56027:function(e,t,n){var r=n(87379),i=n(80547),a="[object Arguments]";function o(e){return i(e)&&r(e)==a}e.exports=o},94687:function(e,t,n){var r=n(90353),i=n(80547);function a(e,t,n,o,s){return e===t||(null==e||null==t||!i(e)&&!i(t)?e!==e&&t!==t:r(e,t,n,o,a,s))}e.exports=a},90353:function(e,t,n){var r=n(51340),i=n(33934),a=n(88861),o=n(31182),s=n(28486),l=n(53142),c=n(75853),u=n(8666),d=1,h="[object Arguments]",p="[object Array]",f="[object Object]",m=Object.prototype,g=m.hasOwnProperty;function v(e,t,n,m,v,b){var y=l(e),_=l(t),w=y?p:s(e),E=_?p:s(t);w=w==h?f:w,E=E==h?f:E;var S=w==f,k=E==f,x=w==E;if(x&&c(e)){if(!c(t))return!1;y=!0,S=!1}if(x&&!S)return b||(b=new r),y||u(e)?i(e,t,n,m,v,b):a(e,t,w,n,m,v,b);if(!(n&d)){var A=S&&g.call(e,"__wrapped__"),C=k&&g.call(t,"__wrapped__");if(A||C){var T=A?e.value():e,N=C?t.value():t;return b||(b=new r),v(T,N,n,m,b)}}return!!x&&(b||(b=new r),o(e,t,n,m,v,b))}e.exports=v},80777:function(e,t,n){var r=n(28486),i=n(80547),a="[object Map]";function o(e){return i(e)&&r(e)==a}e.exports=o},38330:function(e,t,n){var r=n(51340),i=n(94687),a=1,o=2;function s(e,t,n,s){var l=n.length,c=l,u=!s;if(null==e)return!c;e=Object(e);while(l--){var d=n[l];if(u&&d[2]?d[1]!==e[d[0]]:!(d[0]in e))return!1}while(++l<c){d=n[l];var h=d[0],p=e[h],f=d[1];if(u&&d[2]){if(void 0===p&&!(h in e))return!1}else{var m=new r;if(s)var g=s(p,f,h,e,t,m);if(!(void 0===g?i(f,p,a|o,s,m):g))return!1}}return!0}e.exports=s},69454:function(e){function t(e){return e!==e}e.exports=t},89624:function(e,t,n){var r=n(93655),i=n(64759),a=n(41580),o=n(64066),s=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,d=c.toString,h=u.hasOwnProperty,p=RegExp("^"+d.call(h).replace(s,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(e){if(!a(e)||i(e))return!1;var t=r(e)?p:l;return t.test(o(e))}e.exports=f},81935:function(e,t,n){var r=n(28486),i=n(80547),a="[object Set]";function o(e){return i(e)&&r(e)==a}e.exports=o},70674:function(e,t,n){var r=n(87379),i=n(65387),a=n(80547),o="[object Arguments]",s="[object Array]",l="[object Boolean]",c="[object Date]",u="[object Error]",d="[object Function]",h="[object Map]",p="[object Number]",f="[object Object]",m="[object RegExp]",g="[object Set]",v="[object String]",b="[object WeakMap]",y="[object ArrayBuffer]",_="[object DataView]",w="[object Float32Array]",E="[object Float64Array]",S="[object Int8Array]",k="[object Int16Array]",x="[object Int32Array]",A="[object Uint8Array]",C="[object Uint8ClampedArray]",T="[object Uint16Array]",N="[object Uint32Array]",R={};function O(e){return a(e)&&i(e.length)&&!!R[r(e)]}R[w]=R[E]=R[S]=R[k]=R[x]=R[A]=R[C]=R[T]=R[N]=!0,R[o]=R[s]=R[y]=R[l]=R[_]=R[c]=R[u]=R[d]=R[h]=R[p]=R[f]=R[m]=R[g]=R[v]=R[b]=!1,e.exports=O},3334:function(e,t,n){var r=n(36526),i=n(12343),a=n(22053),o=n(53142),s=n(43282);function l(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?o(e)?i(e[0],e[1]):r(e):s(e)}e.exports=l},195:function(e,t,n){var r=n(84882),i=n(98121),a=Object.prototype,o=a.hasOwnProperty;function s(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}e.exports=s},57200:function(e,t,n){var r=n(41580),i=n(84882),a=n(38546),o=Object.prototype,s=o.hasOwnProperty;function l(e){if(!r(e))return a(e);var t=i(e),n=[];for(var o in e)("constructor"!=o||!t&&s.call(e,o))&&n.push(o);return n}e.exports=l},36526:function(e,t,n){var r=n(38330),i=n(24367),a=n(23904);function o(e){var t=i(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}e.exports=o},12343:function(e,t,n){var r=n(94687),i=n(46123),a=n(27276),o=n(65187),s=n(67267),l=n(23904),c=n(66040),u=1,d=2;function h(e,t){return o(e)&&s(t)?l(c(e),t):function(n){var o=i(n,e);return void 0===o&&o===t?a(n,e):r(t,o,u|d)}}e.exports=h},40091:function(e,t,n){var r=n(51340),i=n(24810),a=n(35636),o=n(26885),s=n(41580),l=n(25288),c=n(78763);function u(e,t,n,d,h){e!==t&&a(t,function(a,l){if(h||(h=new r),s(a))o(e,t,l,n,u,d,h);else{var p=d?d(c(e,l),a,l+"",e,t,h):void 0;void 0===p&&(p=a),i(e,l,p)}},l)}e.exports=u},26885:function(e,t,n){var r=n(24810),i=n(17099),a=n(92264),o=n(84354),s=n(75964),l=n(3283),c=n(53142),u=n(65406),d=n(75853),h=n(93655),p=n(41580),f=n(48360),m=n(8666),g=n(78763),v=n(64207);function b(e,t,n,b,y,_,w){var E=g(e,n),S=g(t,n),k=w.get(S);if(k)r(e,n,k);else{var x=_?_(E,S,n+"",e,t,w):void 0,A=void 0===x;if(A){var C=c(S),T=!C&&d(S),N=!C&&!T&&m(S);x=S,C||T||N?c(E)?x=E:u(E)?x=o(E):T?(A=!1,x=i(S,!0)):N?(A=!1,x=a(S,!0)):x=[]:f(S)||l(S)?(x=E,l(E)?x=v(E):p(E)&&!h(E)||(x=s(S))):A=!1}A&&(w.set(S,x),y(x,S,b,_,w),w["delete"](S)),r(e,n,x)}}e.exports=b},90242:function(e,t,n){var r=n(35031),i=n(27276);function a(e,t){return r(e,t,function(t,n){return i(e,n)})}e.exports=a},35031:function(e,t,n){var r=n(57923),i=n(87655),a=n(93526);function o(e,t,n){var o=-1,s=t.length,l={};while(++o<s){var c=t[o],u=r(e,c);n(u,c)&&i(l,a(c,e),u)}return l}e.exports=o},12762:function(e){function t(e){return function(t){return null==t?void 0:t[e]}}e.exports=t},98880:function(e,t,n){var r=n(57923);function i(e){return function(t){return r(t,e)}}e.exports=i},51035:function(e){function t(e){return function(t){return null==e?void 0:e[t]}}e.exports=t},23945:function(e,t,n){var r=n(22053),i=n(75234),a=n(80796);function o(e,t){return a(i(e,t,r),e+"")}e.exports=o},87655:function(e,t,n){var r=n(3422),i=n(93526),a=n(69632),o=n(41580),s=n(66040);function l(e,t,n,l){if(!o(e))return e;t=i(t,e);var c=-1,u=t.length,d=u-1,h=e;while(null!=h&&++c<u){var p=s(t[c]),f=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(c!=d){var m=h[p];f=l?l(m,p,h):void 0,void 0===f&&(f=o(m)?m:a(t[c+1])?[]:{})}r(h,p,f),h=h[p]}return e}e.exports=l},47403:function(e,t,n){var r=n(82619),i=n(72532),a=n(22053),o=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:a;e.exports=o},73501:function(e){function t(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;var a=Array(i);while(++r<i)a[r]=e[r+t];return a}e.exports=t},26137:function(e){function t(e,t){var n=-1,r=Array(e);while(++n<e)r[n]=t(n);return r}e.exports=t},52291:function(e,t,n){var r=n(65650),i=n(65111),a=n(53142),o=n(51187),s=1/0,l=r?r.prototype:void 0,c=l?l.toString:void 0;function u(e){if("string"==typeof e)return e;if(a(e))return i(e,u)+"";if(o(e))return c?c.call(e):"";var t=e+"";return"0"==t&&1/e==-s?"-0":t}e.exports=u},86403:function(e,t,n){var r=n(62945),i=/^\s+/;function a(e){return e?e.slice(0,r(e)+1).replace(i,""):e}e.exports=a},49460:function(e){function t(e){return function(t){return e(t)}}e.exports=t},15630:function(e,t,n){var r=n(23212),i=n(59756),a=n(43316),o=n(65568),s=n(36208),l=n(49828),c=200;function u(e,t,n){var u=-1,d=i,h=e.length,p=!0,f=[],m=f;if(n)p=!1,d=a;else if(h>=c){var g=t?null:s(e);if(g)return l(g);p=!1,d=o,m=new r}else m=t?[]:f;e:while(++u<h){var v=e[u],b=t?t(v):v;if(v=n||0!==v?v:0,p&&b===b){var y=m.length;while(y--)if(m[y]===b)continue e;t&&m.push(b),f.push(v)}else d(m,b,n)||(m!==f&&m.push(b),f.push(v))}return f}e.exports=u},3905:function(e,t,n){var r=n(65111);function i(e,t){return r(t,function(t){return e[t]})}e.exports=i},80214:function(e,t,n){var r=n(96576),i=n(90313),a=n(15630);function o(e,t,n){var o=e.length;if(o<2)return o?a(e[0]):[];var s=-1,l=Array(o);while(++s<o){var c=e[s],u=-1;while(++u<o)u!=s&&(l[s]=r(l[s]||c,e[u],t,n))}return a(i(l,1),t,n)}e.exports=o},65568:function(e){function t(e,t){return e.has(t)}e.exports=t},23997:function(e,t,n){var r=n(22053);function i(e){return"function"==typeof e?e:r}e.exports=i},93526:function(e,t,n){var r=n(53142),i=n(65187),a=n(96493),o=n(95243);function s(e,t){return r(e)?e:i(e,t)?[e]:a(o(e))}e.exports=s},28931:function(e,t,n){var r=n(73501);function i(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:r(e,t,n)}e.exports=i},58898:function(e,t,n){var r=n(31623);function i(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}e.exports=i},17099:function(e,t,n){e=n.nmd(e);var r=n(78942),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,o=a&&a.exports===i,s=o?r.Buffer:void 0,l=s?s.allocUnsafe:void 0;function c(e,t){if(t)return e.slice();var n=e.length,r=l?l(n):new e.constructor(n);return e.copy(r),r}e.exports=c},92480:function(e,t,n){var r=n(58898);function i(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}e.exports=i},78340:function(e){var t=/\w*$/;function n(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}e.exports=n},18069:function(e,t,n){var r=n(65650),i=r?r.prototype:void 0,a=i?i.valueOf:void 0;function o(e){return a?Object(a.call(e)):{}}e.exports=o},92264:function(e,t,n){var r=n(58898);function i(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}e.exports=i},84354:function(e){function t(e,t){var n=-1,r=e.length;t||(t=Array(r));while(++n<r)t[n]=e[n];return t}e.exports=t},39032:function(e,t,n){var r=n(3422),i=n(57073);function a(e,t,n,a){var o=!n;n||(n={});var s=-1,l=t.length;while(++s<l){var c=t[s],u=a?a(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),o?i(n,c,u):r(n,c,u)}return n}e.exports=a},83546:function(e,t,n){var r=n(39032),i=n(77979);function a(e,t){return r(e,i(e),t)}e.exports=a},24733:function(e,t,n){var r=n(39032),i=n(85832);function a(e,t){return r(e,i(e),t)}e.exports=a},41950:function(e,t,n){var r=n(78942),i=r["__core-js_shared__"];e.exports=i},77848:function(e,t,n){var r=n(23945),i=n(74535);function a(e){return r(function(t,n){var r=-1,a=n.length,o=a>1?n[a-1]:void 0,s=a>2?n[2]:void 0;o=e.length>3&&"function"==typeof o?(a--,o):void 0,s&&i(n[0],n[1],s)&&(o=a<3?void 0:o,a=1),t=Object(t);while(++r<a){var l=n[r];l&&e(t,l,r,o)}return t})}e.exports=a},86596:function(e){function t(e){return function(t,n,r){var i=-1,a=Object(t),o=r(t),s=o.length;while(s--){var l=o[e?s:++i];if(!1===n(a[l],l,a))break}return t}}e.exports=t},4326:function(e,t,n){var r=n(28931),i=n(83417),a=n(82237),o=n(95243);function s(e){return function(t){t=o(t);var n=i(t)?a(t):void 0,s=n?n[0]:t.charAt(0),l=n?r(n,1).join(""):t.slice(1);return s[e]()+l}}e.exports=s},93640:function(e,t,n){var r=n(44187),i=n(45881),a=n(39850),o="['’]",s=RegExp(o,"g");function l(e){return function(t){return r(a(i(t).replace(s,"")),e,"")}}e.exports=l},77317:function(e,t,n){var r=n(3334),i=n(36529),a=n(81211);function o(e){return function(t,n,o){var s=Object(t);if(!i(t)){var l=r(n,3);t=a(t),n=function(e){return l(s[e],e,s)}}var c=e(t,n,o);return c>-1?s[l?t[c]:c]:void 0}}e.exports=o},36208:function(e,t,n){var r=n(64512),i=n(79071),a=n(49828),o=1/0,s=r&&1/a(new r([,-0]))[1]==o?function(e){return new r(e)}:i;e.exports=s},69968:function(e,t,n){var r=n(51035),i={"À":"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"},a=r(i);e.exports=a},72532:function(e,t,n){var r=n(94715),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=i},33934:function(e,t,n){var r=n(23212),i=n(36465),a=n(65568),o=1,s=2;function l(e,t,n,l,c,u){var d=n&o,h=e.length,p=t.length;if(h!=p&&!(d&&p>h))return!1;var f=u.get(e),m=u.get(t);if(f&&m)return f==t&&m==e;var g=-1,v=!0,b=n&s?new r:void 0;u.set(e,t),u.set(t,e);while(++g<h){var y=e[g],_=t[g];if(l)var w=d?l(_,y,g,t,e,u):l(y,_,g,e,t,u);if(void 0!==w){if(w)continue;v=!1;break}if(b){if(!i(t,function(e,t){if(!a(b,t)&&(y===e||c(y,e,n,l,u)))return b.push(t)})){v=!1;break}}else if(y!==_&&!c(y,_,n,l,u)){v=!1;break}}return u["delete"](e),u["delete"](t),v}e.exports=l},88861:function(e,t,n){var r=n(65650),i=n(31623),a=n(46285),o=n(33934),s=n(95894),l=n(49828),c=1,u=2,d="[object Boolean]",h="[object Date]",p="[object Error]",f="[object Map]",m="[object Number]",g="[object RegExp]",v="[object Set]",b="[object String]",y="[object Symbol]",_="[object ArrayBuffer]",w="[object DataView]",E=r?r.prototype:void 0,S=E?E.valueOf:void 0;function k(e,t,n,r,E,k,x){switch(n){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case _:return!(e.byteLength!=t.byteLength||!k(new i(e),new i(t)));case d:case h:case m:return a(+e,+t);case p:return e.name==t.name&&e.message==t.message;case g:case b:return e==t+"";case f:var A=s;case v:var C=r&c;if(A||(A=l),e.size!=t.size&&!C)return!1;var T=x.get(e);if(T)return T==t;r|=u,x.set(e,t);var N=o(A(e),A(t),r,E,k,x);return x["delete"](e),N;case y:if(S)return S.call(e)==S.call(t)}return!1}e.exports=k},31182:function(e,t,n){var r=n(80393),i=1,a=Object.prototype,o=a.hasOwnProperty;function s(e,t,n,a,s,l){var c=n&i,u=r(e),d=u.length,h=r(t),p=h.length;if(d!=p&&!c)return!1;var f=d;while(f--){var m=u[f];if(!(c?m in t:o.call(t,m)))return!1}var g=l.get(e),v=l.get(t);if(g&&v)return g==t&&v==e;var b=!0;l.set(e,t),l.set(t,e);var y=c;while(++f<d){m=u[f];var _=e[m],w=t[m];if(a)var E=c?a(w,_,m,t,e,l):a(_,w,m,e,t,l);if(!(void 0===E?_===w||s(_,w,n,a,l):E)){b=!1;break}y||(y="constructor"==m)}if(b&&!y){var S=e.constructor,k=t.constructor;S==k||!("constructor"in e)||!("constructor"in t)||"function"==typeof S&&S instanceof S&&"function"==typeof k&&k instanceof k||(b=!1)}return l["delete"](e),l["delete"](t),b}e.exports=s},41439:function(e,t,n){var r=n(75857),i=n(75234),a=n(80796);function o(e){return a(i(e,void 0,r),e+"")}e.exports=o},74967:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},80393:function(e,t,n){var r=n(48244),i=n(77979),a=n(81211);function o(e){return r(e,a,i)}e.exports=o},93650:function(e,t,n){var r=n(48244),i=n(85832),a=n(25288);function o(e){return r(e,a,i)}e.exports=o},44700:function(e,t,n){var r=n(79067);function i(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}e.exports=i},24367:function(e,t,n){var r=n(67267),i=n(81211);function a(e){var t=i(e),n=t.length;while(n--){var a=t[n],o=e[a];t[n]=[a,o,r(o)]}return t}e.exports=a},94715:function(e,t,n){var r=n(89624),i=n(20155);function a(e,t){var n=i(e,t);return r(n)?n:void 0}e.exports=a},74784:function(e,t,n){var r=n(3766),i=r(Object.getPrototypeOf,Object);e.exports=i},8870:function(e,t,n){var r=n(65650),i=Object.prototype,a=i.hasOwnProperty,o=i.toString,s=r?r.toStringTag:void 0;function l(e){var t=a.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(l){}var i=o.call(e);return r&&(t?e[s]=n:delete e[s]),i}e.exports=l},77979:function(e,t,n){var r=n(79847),i=n(99306),a=Object.prototype,o=a.propertyIsEnumerable,s=Object.getOwnPropertySymbols,l=s?function(e){return null==e?[]:(e=Object(e),r(s(e),function(t){return o.call(e,t)}))}:i;e.exports=l},85832:function(e,t,n){var r=n(11129),i=n(74784),a=n(77979),o=n(99306),s=Object.getOwnPropertySymbols,l=s?function(e){var t=[];while(e)r(t,a(e)),e=i(e);return t}:o;e.exports=l},28486:function(e,t,n){var r=n(33103),i=n(19770),a=n(89413),o=n(64512),s=n(19270),l=n(87379),c=n(64066),u="[object Map]",d="[object Object]",h="[object Promise]",p="[object Set]",f="[object WeakMap]",m="[object DataView]",g=c(r),v=c(i),b=c(a),y=c(o),_=c(s),w=l;(r&&w(new r(new ArrayBuffer(1)))!=m||i&&w(new i)!=u||a&&w(a.resolve())!=h||o&&w(new o)!=p||s&&w(new s)!=f)&&(w=function(e){var t=l(e),n=t==d?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case g:return m;case v:return u;case b:return h;case y:return p;case _:return f}return t}),e.exports=w},20155:function(e){function t(e,t){return null==e?void 0:e[t]}e.exports=t},85899:function(e,t,n){var r=n(93526),i=n(3283),a=n(53142),o=n(69632),s=n(65387),l=n(66040);function c(e,t,n){t=r(t,e);var c=-1,u=t.length,d=!1;while(++c<u){var h=l(t[c]);if(!(d=null!=e&&n(e,h)))break;e=e[h]}return d||++c!=u?d:(u=null==e?0:e.length,!!u&&s(u)&&o(h,u)&&(a(e)||i(e)))}e.exports=c},83417:function(e){var t="\\ud800-\\udfff",n="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",a=n+r+i,o="\\ufe0e\\ufe0f",s="\\u200d",l=RegExp("["+s+t+a+o+"]");function c(e){return l.test(e)}e.exports=c},15813:function(e){var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function n(e){return t.test(e)}e.exports=n},23305:function(e,t,n){var r=n(94497);function i(){this.__data__=r?r(null):{},this.size=0}e.exports=i},39361:function(e){function t(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}e.exports=t},11112:function(e,t,n){var r=n(94497),i="__lodash_hash_undefined__",a=Object.prototype,o=a.hasOwnProperty;function s(e){var t=this.__data__;if(r){var n=t[e];return n===i?void 0:n}return o.call(t,e)?t[e]:void 0}e.exports=s},25276:function(e,t,n){var r=n(94497),i=Object.prototype,a=i.hasOwnProperty;function o(e){var t=this.__data__;return r?void 0!==t[e]:a.call(t,e)}e.exports=o},57452:function(e,t,n){var r=n(94497),i="__lodash_hash_undefined__";function a(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?i:t,this}e.exports=a},97350:function(e){var t=Object.prototype,n=t.hasOwnProperty;function r(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&n.call(e,"index")&&(r.index=e.index,r.input=e.input),r}e.exports=r},50424:function(e,t,n){var r=n(58898),i=n(92480),a=n(78340),o=n(18069),s=n(92264),l="[object Boolean]",c="[object Date]",u="[object Map]",d="[object Number]",h="[object RegExp]",p="[object Set]",f="[object String]",m="[object Symbol]",g="[object ArrayBuffer]",v="[object DataView]",b="[object Float32Array]",y="[object Float64Array]",_="[object Int8Array]",w="[object Int16Array]",E="[object Int32Array]",S="[object Uint8Array]",k="[object Uint8ClampedArray]",x="[object Uint16Array]",A="[object Uint32Array]";function C(e,t,n){var C=e.constructor;switch(t){case g:return r(e);case l:case c:return new C(+e);case v:return i(e,n);case b:case y:case _:case w:case E:case S:case k:case x:case A:return s(e,n);case u:return new C;case d:case f:return new C(e);case h:return a(e);case p:return new C;case m:return o(e)}}e.exports=C},75964:function(e,t,n){var r=n(39747),i=n(74784),a=n(84882);function o(e){return"function"!=typeof e.constructor||a(e)?{}:r(i(e))}e.exports=o},20714:function(e,t,n){var r=n(65650),i=n(3283),a=n(53142),o=r?r.isConcatSpreadable:void 0;function s(e){return a(e)||i(e)||!!(o&&e&&e[o])}e.exports=s},69632:function(e){var t=9007199254740991,n=/^(?:0|[1-9]\d*)$/;function r(e,r){var i=typeof e;return r=null==r?t:r,!!r&&("number"==i||"symbol"!=i&&n.test(e))&&e>-1&&e%1==0&&e<r}e.exports=r},74535:function(e,t,n){var r=n(46285),i=n(36529),a=n(69632),o=n(41580);function s(e,t,n){if(!o(n))return!1;var s=typeof t;return!!("number"==s?i(n)&&a(t,n.length):"string"==s&&t in n)&&r(n[t],e)}e.exports=s},65187:function(e,t,n){var r=n(53142),i=n(51187),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;function s(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||(o.test(e)||!a.test(e)||null!=t&&e in Object(t))}e.exports=s},79067:function(e){function t(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}e.exports=t},64759:function(e,t,n){var r=n(41950),i=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function a(e){return!!i&&i in e}e.exports=a},84882:function(e){var t=Object.prototype;function n(e){var n=e&&e.constructor,r="function"==typeof n&&n.prototype||t;return e===r}e.exports=n},67267:function(e,t,n){var r=n(41580);function i(e){return e===e&&!r(e)}e.exports=i},12393:function(e){function t(){this.__data__=[],this.size=0}e.exports=t},62049:function(e,t,n){var r=n(97034),i=Array.prototype,a=i.splice;function o(e){var t=this.__data__,n=r(t,e);if(n<0)return!1;var i=t.length-1;return n==i?t.pop():a.call(t,n,1),--this.size,!0}e.exports=o},7144:function(e,t,n){var r=n(97034);function i(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}e.exports=i},7452:function(e,t,n){var r=n(97034);function i(e){return r(this.__data__,e)>-1}e.exports=i},13964:function(e,t,n){var r=n(97034);function i(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}e.exports=i},49753:function(e,t,n){var r=n(25098),i=n(1386),a=n(19770);function o(){this.size=0,this.__data__={hash:new r,map:new(a||i),string:new r}}e.exports=o},5681:function(e,t,n){var r=n(44700);function i(e){var t=r(this,e)["delete"](e);return this.size-=t?1:0,t}e.exports=i},80088:function(e,t,n){var r=n(44700);function i(e){return r(this,e).get(e)}e.exports=i},54732:function(e,t,n){var r=n(44700);function i(e){return r(this,e).has(e)}e.exports=i},59068:function(e,t,n){var r=n(44700);function i(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}e.exports=i},95894:function(e){function t(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}e.exports=t},23904:function(e){function t(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}e.exports=t},76853:function(e,t,n){var r=n(69011),i=500;function a(e){var t=r(e,function(e){return n.size===i&&n.clear(),e}),n=t.cache;return t}e.exports=a},94497:function(e,t,n){var r=n(94715),i=r(Object,"create");e.exports=i},98121:function(e,t,n){var r=n(3766),i=r(Object.keys,Object);e.exports=i},38546:function(e){function t(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}e.exports=t},2306:function(e,t,n){e=n.nmd(e);var r=n(74967),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,o=a&&a.exports===i,s=o&&r.process,l=function(){try{var e=a&&a.require&&a.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(t){}}();e.exports=l},29005:function(e){var t=Object.prototype,n=t.toString;function r(e){return n.call(e)}e.exports=r},3766:function(e){function t(e,t){return function(n){return e(t(n))}}e.exports=t},75234:function(e,t,n){var r=n(86912),i=Math.max;function a(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){var a=arguments,o=-1,s=i(a.length-t,0),l=Array(s);while(++o<s)l[o]=a[t+o];o=-1;var c=Array(t+1);while(++o<t)c[o]=a[o];return c[t]=n(l),r(e,this,c)}}e.exports=a},78942:function(e,t,n){var r=n(74967),i="object"==typeof self&&self&&self.Object===Object&&self,a=r||i||Function("return this")();e.exports=a},78763:function(e){function t(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}e.exports=t},1877:function(e){var t="__lodash_hash_undefined__";function n(e){return this.__data__.set(e,t),this}e.exports=n},8006:function(e){function t(e){return this.__data__.has(e)}e.exports=t},49828:function(e){function t(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}e.exports=t},80796:function(e,t,n){var r=n(47403),i=n(3316),a=i(r);e.exports=a},3316:function(e){var t=800,n=16,r=Date.now;function i(e){var i=0,a=0;return function(){var o=r(),s=n-(o-a);if(a=o,s>0){if(++i>=t)return arguments[0]}else i=0;return e.apply(void 0,arguments)}}e.exports=i},64103:function(e,t,n){var r=n(1386);function i(){this.__data__=new r,this.size=0}e.exports=i},21779:function(e){function t(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}e.exports=t},34162:function(e){function t(e){return this.__data__.get(e)}e.exports=t},7462:function(e){function t(e){return this.__data__.has(e)}e.exports=t},96638:function(e,t,n){var r=n(1386),i=n(19770),a=n(68250),o=200;function s(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!i||s.length<o-1)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(s)}return n.set(e,t),this.size=n.size,this}e.exports=s},97706:function(e){function t(e,t,n){var r=n-1,i=e.length;while(++r<i)if(e[r]===t)return r;return-1}e.exports=t},82237:function(e,t,n){var r=n(52837),i=n(83417),a=n(92013);function o(e){return i(e)?a(e):r(e)}e.exports=o},96493:function(e,t,n){var r=n(76853),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,o=r(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,function(e,n,r,i){t.push(r?i.replace(a,"$1"):n||e)}),t});e.exports=o},66040:function(e,t,n){var r=n(51187),i=1/0;function a(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}e.exports=a},64066:function(e){var t=Function.prototype,n=t.toString;function r(e){if(null!=e){try{return n.call(e)}catch(t){}try{return e+""}catch(t){}}return""}e.exports=r},62945:function(e){var t=/\s/;function n(e){var n=e.length;while(n--&&t.test(e.charAt(n)));return n}e.exports=n},92013:function(e){var t="\\ud800-\\udfff",n="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",a=n+r+i,o="\\ufe0e\\ufe0f",s="["+t+"]",l="["+a+"]",c="\\ud83c[\\udffb-\\udfff]",u="(?:"+l+"|"+c+")",d="[^"+t+"]",h="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",f="\\u200d",m=u+"?",g="["+o+"]?",v="(?:"+f+"(?:"+[d,h,p].join("|")+")"+g+m+")*",b=g+m+v,y="(?:"+[d+l+"?",l,h,p,s].join("|")+")",_=RegExp(c+"(?="+c+")|"+y+b,"g");function w(e){return e.match(_)||[]}e.exports=w},10482:function(e){var t="\\ud800-\\udfff",n="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",a=n+r+i,o="\\u2700-\\u27bf",s="a-z\\xdf-\\xf6\\xf8-\\xff",l="\\xac\\xb1\\xd7\\xf7",c="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",u="\\u2000-\\u206f",d=" \\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",h="A-Z\\xc0-\\xd6\\xd8-\\xde",p="\\ufe0e\\ufe0f",f=l+c+u+d,m="['’]",g="["+f+"]",v="["+a+"]",b="\\d+",y="["+o+"]",_="["+s+"]",w="[^"+t+f+b+o+s+h+"]",E="\\ud83c[\\udffb-\\udfff]",S="(?:"+v+"|"+E+")",k="[^"+t+"]",x="(?:\\ud83c[\\udde6-\\uddff]){2}",A="[\\ud800-\\udbff][\\udc00-\\udfff]",C="["+h+"]",T="\\u200d",N="(?:"+_+"|"+w+")",R="(?:"+C+"|"+w+")",O="(?:"+m+"(?:d|ll|m|re|s|t|ve))?",I="(?:"+m+"(?:D|LL|M|RE|S|T|VE))?",L=S+"?",D="["+p+"]?",P="(?:"+T+"(?:"+[k,x,A].join("|")+")"+D+L+")*",M="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",B="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",F=D+L+P,$="(?:"+[y,x,A].join("|")+")"+F,U=RegExp([C+"?"+_+"+"+O+"(?="+[g,C,"$"].join("|")+")",R+"+"+I+"(?="+[g,C+N,"$"].join("|")+")",C+"?"+N+"+"+O,C+"+"+I,B,M,b,$].join("|"),"g");function j(e){return e.match(U)||[]}e.exports=j},56005:function(e,t,n){var r=n(95243),i=n(5485);function a(e){return i(r(e).toLowerCase())}e.exports=a},46108:function(e,t,n){var r=n(69334),i=1,a=4;function o(e){return r(e,i|a)}e.exports=o},16238:function(e){function t(e){var t=-1,n=null==e?0:e.length,r=0,i=[];while(++t<n){var a=e[t];a&&(i[r++]=a)}return i}e.exports=t},82619:function(e){function t(e){return function(){return e}}e.exports=t},12784:function(e,t,n){var r=n(41580),i=n(94495),a=n(6131),o="Expected a function",s=Math.max,l=Math.min;function c(e,t,n){var c,u,d,h,p,f,m=0,g=!1,v=!1,b=!0;if("function"!=typeof e)throw new TypeError(o);function y(t){var n=c,r=u;return c=u=void 0,m=t,h=e.apply(r,n),h}function _(e){return m=e,p=setTimeout(S,t),g?y(e):h}function w(e){var n=e-f,r=e-m,i=t-n;return v?l(i,d-r):i}function E(e){var n=e-f,r=e-m;return void 0===f||n>=t||n<0||v&&r>=d}function S(){var e=i();if(E(e))return k(e);p=setTimeout(S,w(e))}function k(e){return p=void 0,b&&c?y(e):(c=u=void 0,h)}function x(){void 0!==p&&clearTimeout(p),m=0,c=f=u=p=void 0}function A(){return void 0===p?h:k(i())}function C(){var e=i(),n=E(e);if(c=arguments,u=this,f=e,n){if(void 0===p)return _(f);if(v)return clearTimeout(p),p=setTimeout(S,t),y(f)}return void 0===p&&(p=setTimeout(S,t)),h}return t=a(t)||0,r(n)&&(g=!!n.leading,v="maxWait"in n,d=v?s(a(n.maxWait)||0,t):d,b="trailing"in n?!!n.trailing:b),C.cancel=x,C.flush=A,C}e.exports=c},45881:function(e,t,n){var r=n(69968),i=n(95243),a=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,o="\\u0300-\\u036f",s="\\ufe20-\\ufe2f",l="\\u20d0-\\u20ff",c=o+s+l,u="["+c+"]",d=RegExp(u,"g");function h(e){return e=i(e),e&&e.replace(a,r).replace(d,"")}e.exports=h},88088:function(e,t,n){var r=n(96576),i=n(90313),a=n(23945),o=n(65406),s=a(function(e,t){return o(e)?r(e,i(t,1,o,!0)):[]});e.exports=s},46285:function(e){function t(e,t){return e===t||e!==e&&t!==t}e.exports=t},81936:function(e,t,n){var r=n(77317),i=n(92154),a=r(i);e.exports=a},92154:function(e,t,n){var r=n(37250),i=n(3334),a=n(67642),o=Math.max;function s(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var l=null==n?0:a(n);return l<0&&(l=o(s+l,0)),r(e,i(t,3),l)}e.exports=s},24576:function(e,t,n){var r=n(77317),i=n(40458),a=r(i);e.exports=a},40458:function(e,t,n){var r=n(37250),i=n(3334),a=n(67642),o=Math.max,s=Math.min;function l(e,t,n){var l=null==e?0:e.length;if(!l)return-1;var c=l-1;return void 0!==n&&(c=a(n),c=n<0?o(l+c,0):s(c,l-1)),r(e,i(t,3),c,!0)}e.exports=l},75857:function(e,t,n){var r=n(90313);function i(e){var t=null==e?0:e.length;return t?r(e,1):[]}e.exports=i},53435:function(e,t,n){var r=n(90313),i=1/0;function a(e){var t=null==e?0:e.length;return t?r(e,i):[]}e.exports=a},68371:function(e,t,n){var r=n(35636),i=n(23997),a=n(25288);function o(e,t){return null==e?e:r(e,i(t),a)}e.exports=o},46123:function(e,t,n){var r=n(57923);function i(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}e.exports=i},52103:function(e,t,n){var r=n(63599),i=n(85899);function a(e,t){return null!=e&&i(e,t,r)}e.exports=a},27276:function(e,t,n){var r=n(43636),i=n(85899);function a(e,t){return null!=e&&i(e,t,r)}e.exports=a},13981:function(e){function t(e){return e&&e.length?e[0]:void 0}e.exports=t},22053:function(e){function t(e){return e}e.exports=t},65145:function(e,t,n){var r=n(2478),i=n(36529),a=n(8138),o=n(67642),s=n(39817),l=Math.max;function c(e,t,n,c){e=i(e)?e:s(e),n=n&&!c?o(n):0;var u=e.length;return n<0&&(n=l(u+n,0)),a(e)?n<=u&&e.indexOf(t,n)>-1:!!u&&r(e,t,n)>-1}e.exports=c},3283:function(e,t,n){var r=n(56027),i=n(80547),a=Object.prototype,o=a.hasOwnProperty,s=a.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return i(e)&&o.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},53142:function(e){var t=Array.isArray;e.exports=t},36529:function(e,t,n){var r=n(93655),i=n(65387);function a(e){return null!=e&&i(e.length)&&!r(e)}e.exports=a},65406:function(e,t,n){var r=n(36529),i=n(80547);function a(e){return i(e)&&r(e)}e.exports=a},75853:function(e,t,n){e=n.nmd(e);var r=n(78942),i=n(34772),a=t&&!t.nodeType&&t,o=a&&e&&!e.nodeType&&e,s=o&&o.exports===a,l=s?r.Buffer:void 0,c=l?l.isBuffer:void 0,u=c||i;e.exports=u},3514:function(e,t,n){var r=n(195),i=n(28486),a=n(3283),o=n(53142),s=n(36529),l=n(75853),c=n(84882),u=n(8666),d="[object Map]",h="[object Set]",p=Object.prototype,f=p.hasOwnProperty;function m(e){if(null==e)return!0;if(s(e)&&(o(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||u(e)||a(e)))return!e.length;var t=i(e);if(t==d||t==h)return!e.size;if(c(e))return!r(e).length;for(var n in e)if(f.call(e,n))return!1;return!0}e.exports=m},46343:function(e,t,n){var r=n(94687);function i(e,t){return r(e,t)}e.exports=i},93655:function(e,t,n){var r=n(87379),i=n(41580),a="[object AsyncFunction]",o="[object Function]",s="[object GeneratorFunction]",l="[object Proxy]";function c(e){if(!i(e))return!1;var t=r(e);return t==o||t==s||t==a||t==l}e.exports=c},65387:function(e){var t=9007199254740991;function n(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=t}e.exports=n},37681:function(e,t,n){var r=n(80777),i=n(49460),a=n(2306),o=a&&a.isMap,s=o?i(o):r;e.exports=s},41580:function(e){function t(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=t},80547:function(e){function t(e){return null!=e&&"object"==typeof e}e.exports=t},48360:function(e,t,n){var r=n(87379),i=n(74784),a=n(80547),o="[object Object]",s=Function.prototype,l=Object.prototype,c=s.toString,u=l.hasOwnProperty,d=c.call(Object);function h(e){if(!a(e)||r(e)!=o)return!1;var t=i(e);if(null===t)return!0;var n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==d}e.exports=h},83943:function(e,t,n){var r=n(81935),i=n(49460),a=n(2306),o=a&&a.isSet,s=o?i(o):r;e.exports=s},8138:function(e,t,n){var r=n(87379),i=n(53142),a=n(80547),o="[object String]";function s(e){return"string"==typeof e||!i(e)&&a(e)&&r(e)==o}e.exports=s},51187:function(e,t,n){var r=n(87379),i=n(80547),a="[object Symbol]";function o(e){return"symbol"==typeof e||i(e)&&r(e)==a}e.exports=o},8666:function(e,t,n){var r=n(70674),i=n(49460),a=n(2306),o=a&&a.isTypedArray,s=o?i(o):r;e.exports=s},81211:function(e,t,n){var r=n(10358),i=n(195),a=n(36529);function o(e){return a(e)?r(e):i(e)}e.exports=o},25288:function(e,t,n){var r=n(10358),i=n(57200),a=n(36529);function o(e){return a(e)?r(e,!0):i(e)}e.exports=o},45250:function(e,t,n){var r;
|
||
/**
|
||
* @license
|
||
* Lodash <https://lodash.com/>
|
||
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
||
* Released under MIT license <https://lodash.com/license>
|
||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||
*/e=n.nmd(e),function(){var i,a="4.18.1",o=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",c="Invalid `variable` option passed into `_.template`",u="Invalid `imports` option passed into `_.template`",d="__lodash_hash_undefined__",h=500,p="__lodash_placeholder__",f=1,m=2,g=4,v=1,b=2,y=1,_=2,w=4,E=8,S=16,k=32,x=64,A=128,C=256,T=512,N=30,R="...",O=800,I=16,L=1,D=2,P=3,M=1/0,B=9007199254740991,F=17976931348623157e292,$=NaN,U=4294967295,j=U-1,V=U>>>1,K=[["ary",A],["bind",y],["bindKey",_],["curry",E],["curryRight",S],["flip",T],["partial",k],["partialRight",x],["rearg",C]],G="[object Arguments]",H="[object Array]",z="[object AsyncFunction]",q="[object Boolean]",X="[object Date]",W="[object DOMException]",Y="[object Error]",Q="[object Function]",J="[object GeneratorFunction]",Z="[object Map]",ee="[object Number]",te="[object Null]",ne="[object Object]",re="[object Promise]",ie="[object Proxy]",ae="[object RegExp]",oe="[object Set]",se="[object String]",le="[object Symbol]",ce="[object Undefined]",ue="[object WeakMap]",de="[object WeakSet]",he="[object ArrayBuffer]",pe="[object DataView]",fe="[object Float32Array]",me="[object Float64Array]",ge="[object Int8Array]",ve="[object Int16Array]",be="[object Int32Array]",ye="[object Uint8Array]",_e="[object Uint8ClampedArray]",we="[object Uint16Array]",Ee="[object Uint32Array]",Se=/\b__p \+= '';/g,ke=/\b(__p \+=) '' \+/g,xe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ae=/&(?:amp|lt|gt|quot|#39);/g,Ce=/[&<>"']/g,Te=RegExp(Ae.source),Ne=RegExp(Ce.source),Re=/<%-([\s\S]+?)%>/g,Oe=/<%([\s\S]+?)%>/g,Ie=/<%=([\s\S]+?)%>/g,Le=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,De=/^\w*$/,Pe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Me=/[\\^$.*+?()[\]{}|]/g,Be=RegExp(Me.source),Fe=/^\s+/,$e=/\s/,Ue=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,je=/\{\n\/\* \[wrapped with (.+)\] \*/,Ve=/,? & /,Ke=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ge=/[()=,{}\[\]\/\s]/,He=/\\(\\)?/g,ze=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,qe=/\w*$/,Xe=/^[-+]0x[0-9a-f]+$/i,We=/^0b[01]+$/i,Ye=/^\[object .+?Constructor\]$/,Qe=/^0o[0-7]+$/i,Je=/^(?:0|[1-9]\d*)$/,Ze=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,et=/($^)/,tt=/['\n\r\u2028\u2029\\]/g,nt="\\ud800-\\udfff",rt="\\u0300-\\u036f",it="\\ufe20-\\ufe2f",at="\\u20d0-\\u20ff",ot=rt+it+at,st="\\u2700-\\u27bf",lt="a-z\\xdf-\\xf6\\xf8-\\xff",ct="\\xac\\xb1\\xd7\\xf7",ut="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",dt="\\u2000-\\u206f",ht=" \\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",pt="A-Z\\xc0-\\xd6\\xd8-\\xde",ft="\\ufe0e\\ufe0f",mt=ct+ut+dt+ht,gt="['’]",vt="["+nt+"]",bt="["+mt+"]",yt="["+ot+"]",_t="\\d+",wt="["+st+"]",Et="["+lt+"]",St="[^"+nt+mt+_t+st+lt+pt+"]",kt="\\ud83c[\\udffb-\\udfff]",xt="(?:"+yt+"|"+kt+")",At="[^"+nt+"]",Ct="(?:\\ud83c[\\udde6-\\uddff]){2}",Tt="[\\ud800-\\udbff][\\udc00-\\udfff]",Nt="["+pt+"]",Rt="\\u200d",Ot="(?:"+Et+"|"+St+")",It="(?:"+Nt+"|"+St+")",Lt="(?:"+gt+"(?:d|ll|m|re|s|t|ve))?",Dt="(?:"+gt+"(?:D|LL|M|RE|S|T|VE))?",Pt=xt+"?",Mt="["+ft+"]?",Bt="(?:"+Rt+"(?:"+[At,Ct,Tt].join("|")+")"+Mt+Pt+")*",Ft="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",$t="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ut=Mt+Pt+Bt,jt="(?:"+[wt,Ct,Tt].join("|")+")"+Ut,Vt="(?:"+[At+yt+"?",yt,Ct,Tt,vt].join("|")+")",Kt=RegExp(gt,"g"),Gt=RegExp(yt,"g"),Ht=RegExp(kt+"(?="+kt+")|"+Vt+Ut,"g"),zt=RegExp([Nt+"?"+Et+"+"+Lt+"(?="+[bt,Nt,"$"].join("|")+")",It+"+"+Dt+"(?="+[bt,Nt+Ot,"$"].join("|")+")",Nt+"?"+Ot+"+"+Lt,Nt+"+"+Dt,$t,Ft,_t,jt].join("|"),"g"),qt=RegExp("["+Rt+nt+ot+ft+"]"),Xt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Wt=["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"],Yt=-1,Qt={};Qt[fe]=Qt[me]=Qt[ge]=Qt[ve]=Qt[be]=Qt[ye]=Qt[_e]=Qt[we]=Qt[Ee]=!0,Qt[G]=Qt[H]=Qt[he]=Qt[q]=Qt[pe]=Qt[X]=Qt[Y]=Qt[Q]=Qt[Z]=Qt[ee]=Qt[ne]=Qt[ae]=Qt[oe]=Qt[se]=Qt[ue]=!1;var Jt={};Jt[G]=Jt[H]=Jt[he]=Jt[pe]=Jt[q]=Jt[X]=Jt[fe]=Jt[me]=Jt[ge]=Jt[ve]=Jt[be]=Jt[Z]=Jt[ee]=Jt[ne]=Jt[ae]=Jt[oe]=Jt[se]=Jt[le]=Jt[ye]=Jt[_e]=Jt[we]=Jt[Ee]=!0,Jt[Y]=Jt[Q]=Jt[ue]=!1;var Zt={"À":"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"},en={"&":"&","<":"<",">":">",'"':""","'":"'"},tn={"&":"&","<":"<",">":">",""":'"',"'":"'"},nn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},rn=parseFloat,an=parseInt,on="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,sn="object"==typeof self&&self&&self.Object===Object&&self,ln=on||sn||Function("return this")(),cn=t&&!t.nodeType&&t,un=cn&&e&&!e.nodeType&&e,dn=un&&un.exports===cn,hn=dn&&on.process,pn=function(){try{var e=un&&un.require&&un.require("util").types;return e||hn&&hn.binding&&hn.binding("util")}catch(t){}}(),fn=pn&&pn.isArrayBuffer,mn=pn&&pn.isDate,gn=pn&&pn.isMap,vn=pn&&pn.isRegExp,bn=pn&&pn.isSet,yn=pn&&pn.isTypedArray;function _n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function wn(e,t,n,r){var i=-1,a=null==e?0:e.length;while(++i<a){var o=e[i];t(r,o,n(o),e)}return r}function En(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(!1===t(e[n],n,e))break;return e}function Sn(e,t){var n=null==e?0:e.length;while(n--)if(!1===t(e[n],n,e))break;return e}function kn(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(!t(e[n],n,e))return!1;return!0}function xn(e,t){var n=-1,r=null==e?0:e.length,i=0,a=[];while(++n<r){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function An(e,t){var n=null==e?0:e.length;return!!n&&Fn(e,t,0)>-1}function Cn(e,t,n){var r=-1,i=null==e?0:e.length;while(++r<i)if(n(t,e[r]))return!0;return!1}function Tn(e,t){var n=-1,r=null==e?0:e.length,i=Array(r);while(++n<r)i[n]=t(e[n],n,e);return i}function Nn(e,t){var n=-1,r=t.length,i=e.length;while(++n<r)e[i+n]=t[n];return e}function Rn(e,t,n,r){var i=-1,a=null==e?0:e.length;r&&a&&(n=e[++i]);while(++i<a)n=t(n,e[i],i,e);return n}function On(e,t,n,r){var i=null==e?0:e.length;r&&i&&(n=e[--i]);while(i--)n=t(n,e[i],i,e);return n}function In(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(t(e[n],n,e))return!0;return!1}var Ln=Vn("length");function Dn(e){return e.split("")}function Pn(e){return e.match(Ke)||[]}function Mn(e,t,n){var r;return n(e,function(e,n,i){if(t(e,n,i))return r=n,!1}),r}function Bn(e,t,n,r){var i=e.length,a=n+(r?1:-1);while(r?a--:++a<i)if(t(e[a],a,e))return a;return-1}function Fn(e,t,n){return t===t?fr(e,t,n):Bn(e,Un,n)}function $n(e,t,n,r){var i=n-1,a=e.length;while(++i<a)if(r(e[i],t))return i;return-1}function Un(e){return e!==e}function jn(e,t){var n=null==e?0:e.length;return n?zn(e,t)/n:$}function Vn(e){return function(t){return null==t?i:t[e]}}function Kn(e){return function(t){return null==e?i:e[t]}}function Gn(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}function Hn(e,t){var n=e.length;e.sort(t);while(n--)e[n]=e[n].value;return e}function zn(e,t){var n,r=-1,a=e.length;while(++r<a){var o=t(e[r]);o!==i&&(n=n===i?o:n+o)}return n}function qn(e,t){var n=-1,r=Array(e);while(++n<e)r[n]=t(n);return r}function Xn(e,t){return Tn(t,function(t){return[t,e[t]]})}function Wn(e){return e?e.slice(0,br(e)+1).replace(Fe,""):e}function Yn(e){return function(t){return e(t)}}function Qn(e,t){return Tn(t,function(t){return e[t]})}function Jn(e,t){return e.has(t)}function Zn(e,t){var n=-1,r=e.length;while(++n<r&&Fn(t,e[n],0)>-1);return n}function er(e,t){var n=e.length;while(n--&&Fn(t,e[n],0)>-1);return n}function tr(e,t){var n=e.length,r=0;while(n--)e[n]===t&&++r;return r}var nr=Kn(Zt),rr=Kn(en);function ir(e){return"\\"+nn[e]}function ar(e,t){return null==e?i:e[t]}function or(e){return qt.test(e)}function sr(e){return Xt.test(e)}function lr(e){var t,n=[];while(!(t=e.next()).done)n.push(t.value);return n}function cr(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function ur(e,t){return function(n){return e(t(n))}}function dr(e,t){var n=-1,r=e.length,i=0,a=[];while(++n<r){var o=e[n];o!==t&&o!==p||(e[n]=p,a[i++]=n)}return a}function hr(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function pr(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function fr(e,t,n){var r=n-1,i=e.length;while(++r<i)if(e[r]===t)return r;return-1}function mr(e,t,n){var r=n+1;while(r--)if(e[r]===t)return r;return r}function gr(e){return or(e)?_r(e):Ln(e)}function vr(e){return or(e)?wr(e):Dn(e)}function br(e){var t=e.length;while(t--&&$e.test(e.charAt(t)));return t}var yr=Kn(tn);function _r(e){var t=Ht.lastIndex=0;while(Ht.test(e))++t;return t}function wr(e){return e.match(Ht)||[]}function Er(e){return e.match(zt)||[]}var Sr=function e(t){t=null==t?ln:kr.defaults(ln.Object(),t,kr.pick(ln,Wt));var n=t.Array,r=t.Date,$e=t.Error,Ke=t.Function,nt=t.Math,rt=t.Object,it=t.RegExp,at=t.String,ot=t.TypeError,st=n.prototype,lt=Ke.prototype,ct=rt.prototype,ut=t["__core-js_shared__"],dt=lt.toString,ht=ct.hasOwnProperty,pt=0,ft=function(){var e=/[^.]+$/.exec(ut&&ut.keys&&ut.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),mt=ct.toString,gt=dt.call(rt),vt=ln._,bt=it("^"+dt.call(ht).replace(Me,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yt=dn?t.Buffer:i,_t=t.Symbol,wt=t.Uint8Array,Et=yt?yt.allocUnsafe:i,St=ur(rt.getPrototypeOf,rt),kt=rt.create,xt=ct.propertyIsEnumerable,At=st.splice,Ct=_t?_t.isConcatSpreadable:i,Tt=_t?_t.iterator:i,Nt=_t?_t.toStringTag:i,Rt=function(){try{var e=Xo(rt,"defineProperty");return e({},"",{}),e}catch(t){}}(),Ot=t.clearTimeout!==ln.clearTimeout&&t.clearTimeout,It=r&&r.now!==ln.Date.now&&r.now,Lt=t.setTimeout!==ln.setTimeout&&t.setTimeout,Dt=nt.ceil,Pt=nt.floor,Mt=rt.getOwnPropertySymbols,Bt=yt?yt.isBuffer:i,Ft=t.isFinite,$t=st.join,Ut=ur(rt.keys,rt),jt=nt.max,Vt=nt.min,Ht=r.now,zt=t.parseInt,qt=nt.random,Xt=st.reverse,Zt=Xo(t,"DataView"),en=Xo(t,"Map"),tn=Xo(t,"Promise"),nn=Xo(t,"Set"),on=Xo(t,"WeakMap"),sn=Xo(rt,"create"),cn=on&&new on,un={},hn=Ls(Zt),pn=Ls(en),Ln=Ls(tn),Dn=Ls(nn),Kn=Ls(on),fr=_t?_t.prototype:i,_r=fr?fr.valueOf:i,wr=fr?fr.toString:i;function Sr(e){if(Au(e)&&!cu(e)&&!(e instanceof Tr)){if(e instanceof Cr)return e;if(ht.call(e,"__wrapped__"))return Ps(e)}return new Cr(e)}var xr=function(){function e(){}return function(t){if(!xu(t))return{};if(kt)return kt(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function Ar(){}function Cr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Tr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=U,this.__views__=[]}function Nr(){var e=new Tr(this.__wrapped__);return e.__actions__=io(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=io(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=io(this.__views__),e}function Rr(){if(this.__filtered__){var e=new Tr(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Or(){var e=this.__wrapped__.value(),t=this.__dir__,n=cu(e),r=t<0,i=n?e.length:0,a=Zo(0,i,this.__views__),o=a.start,s=a.end,l=s-o,c=r?s:o-1,u=this.__iteratees__,d=u.length,h=0,p=Vt(l,this.__takeCount__);if(!n||!r&&i==l&&p==l)return $a(e,this.__actions__);var f=[];e:while(l--&&h<p){c+=t;var m=-1,g=e[c];while(++m<d){var v=u[m],b=v.iteratee,y=v.type,_=b(g);if(y==D)g=_;else if(!_){if(y==L)continue e;break e}}f[h++]=g}return f}function Ir(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Lr(){this.__data__=sn?sn(null):{},this.size=0}function Dr(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function Pr(e){var t=this.__data__;if(sn){var n=t[e];return n===d?i:n}return ht.call(t,e)?t[e]:i}function Mr(e){var t=this.__data__;return sn?t[e]!==i:ht.call(t,e)}function Br(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=sn&&t===i?d:t,this}function Fr(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function $r(){this.__data__=[],this.size=0}function Ur(e){var t=this.__data__,n=di(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():At.call(t,n,1),--this.size,!0}function jr(e){var t=this.__data__,n=di(t,e);return n<0?i:t[n][1]}function Vr(e){return di(this.__data__,e)>-1}function Kr(e,t){var n=this.__data__,r=di(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Gr(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}function Hr(){this.size=0,this.__data__={hash:new Ir,map:new(en||Fr),string:new Ir}}function zr(e){var t=zo(this,e)["delete"](e);return this.size-=t?1:0,t}function qr(e){return zo(this,e).get(e)}function Xr(e){return zo(this,e).has(e)}function Wr(e,t){var n=zo(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Yr(e){var t=-1,n=null==e?0:e.length;this.__data__=new Gr;while(++t<n)this.add(e[t])}function Qr(e){return this.__data__.set(e,d),this}function Jr(e){return this.__data__.has(e)}function Zr(e){var t=this.__data__=new Fr(e);this.size=t.size}function ei(){this.__data__=new Fr,this.size=0}function ti(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}function ni(e){return this.__data__.get(e)}function ri(e){return this.__data__.has(e)}function ii(e,t){var n=this.__data__;if(n instanceof Fr){var r=n.__data__;if(!en||r.length<o-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Gr(r)}return n.set(e,t),this.size=n.size,this}function ai(e,t){var n=cu(e),r=!n&&lu(e),i=!n&&!r&&fu(e),a=!n&&!r&&!i&&ju(e),o=n||r||i||a,s=o?qn(e.length,at):[],l=s.length;for(var c in e)!t&&!ht.call(e,c)||o&&("length"==c||i&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||ss(c,l))||s.push(c);return s}function oi(e){var t=e.length;return t?e[ba(0,t-1)]:i}function si(e,t){return Rs(io(e),vi(t,0,e.length))}function li(e){return Rs(io(e))}function ci(e,t,n){(n!==i&&!au(e[t],n)||n===i&&!(t in e))&&mi(e,t,n)}function ui(e,t,n){var r=e[t];ht.call(e,t)&&au(r,n)&&(n!==i||t in e)||mi(e,t,n)}function di(e,t){var n=e.length;while(n--)if(au(e[n][0],t))return n;return-1}function hi(e,t,n,r){return Si(e,function(e,i,a){t(r,e,n(e),a)}),r}function pi(e,t){return e&&ao(t,Sd(t),e)}function fi(e,t){return e&&ao(t,kd(t),e)}function mi(e,t,n){"__proto__"==t&&Rt?Rt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function gi(e,t){var r=-1,a=t.length,o=n(a),s=null==e;while(++r<a)o[r]=s?i:vd(e,t[r]);return o}function vi(e,t,n){return e===e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function bi(e,t,n,r,a,o){var s,l=t&f,c=t&m,u=t&g;if(n&&(s=a?n(e,r,a,o):n(e)),s!==i)return s;if(!xu(e))return e;var d=cu(e);if(d){if(s=ns(e),!l)return io(e,s)}else{var h=Jo(e),p=h==Q||h==J;if(fu(e))return Xa(e,l);if(h==ne||h==G||p&&!a){if(s=c||p?{}:rs(e),!l)return c?so(e,fi(s,e)):oo(e,pi(s,e))}else{if(!Jt[h])return a?e:{};s=is(e,h,l)}}o||(o=new Zr);var v=o.get(e);if(v)return v;o.set(e,s),Fu(e)?e.forEach(function(r){s.add(bi(r,t,n,r,e,o))}):Cu(e)&&e.forEach(function(r,i){s.set(i,bi(r,t,n,i,e,o))});var b=u?c?jo:Uo:c?kd:Sd,y=d?i:b(e);return En(y||e,function(r,i){y&&(i=r,r=e[i]),ui(s,i,bi(r,t,n,i,e,o))}),s}function yi(e){var t=Sd(e);return function(n){return _i(n,e,t)}}function _i(e,t,n){var r=n.length;if(null==e)return!r;e=rt(e);while(r--){var a=n[r],o=t[a],s=e[a];if(s===i&&!(a in e)||!o(s))return!1}return!0}function wi(e,t,n){if("function"!=typeof e)throw new ot(l);return As(function(){e.apply(i,n)},t)}function Ei(e,t,n,r){var i=-1,a=An,s=!0,l=e.length,c=[],u=t.length;if(!l)return c;n&&(t=Tn(t,Yn(n))),r?(a=Cn,s=!1):t.length>=o&&(a=Jn,s=!1,t=new Yr(t));e:while(++i<l){var d=e[i],h=null==n?d:n(d);if(d=r||0!==d?d:0,s&&h===h){var p=u;while(p--)if(t[p]===h)continue e;c.push(d)}else a(t,h,r)||c.push(d)}return c}Sr.templateSettings={escape:Re,evaluate:Oe,interpolate:Ie,variable:"",imports:{_:Sr}},Sr.prototype=Ar.prototype,Sr.prototype.constructor=Sr,Cr.prototype=xr(Ar.prototype),Cr.prototype.constructor=Cr,Tr.prototype=xr(Ar.prototype),Tr.prototype.constructor=Tr,Ir.prototype.clear=Lr,Ir.prototype["delete"]=Dr,Ir.prototype.get=Pr,Ir.prototype.has=Mr,Ir.prototype.set=Br,Fr.prototype.clear=$r,Fr.prototype["delete"]=Ur,Fr.prototype.get=jr,Fr.prototype.has=Vr,Fr.prototype.set=Kr,Gr.prototype.clear=Hr,Gr.prototype["delete"]=zr,Gr.prototype.get=qr,Gr.prototype.has=Xr,Gr.prototype.set=Wr,Yr.prototype.add=Yr.prototype.push=Qr,Yr.prototype.has=Jr,Zr.prototype.clear=ei,Zr.prototype["delete"]=ti,Zr.prototype.get=ni,Zr.prototype.has=ri,Zr.prototype.set=ii;var Si=uo(Ii),ki=uo(Li,!0);function xi(e,t){var n=!0;return Si(e,function(e,r,i){return n=!!t(e,r,i),n}),n}function Ai(e,t,n){var r=-1,a=e.length;while(++r<a){var o=e[r],s=t(o);if(null!=s&&(l===i?s===s&&!Uu(s):n(s,l)))var l=s,c=o}return c}function Ci(e,t,n,r){var a=e.length;n=Wu(n),n<0&&(n=-n>a?0:a+n),r=r===i||r>a?a:Wu(r),r<0&&(r+=a),r=n>r?0:Yu(r);while(n<r)e[n++]=t;return e}function Ti(e,t){var n=[];return Si(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function Ni(e,t,n,r,i){var a=-1,o=e.length;n||(n=os),i||(i=[]);while(++a<o){var s=e[a];t>0&&n(s)?t>1?Ni(s,t-1,n,r,i):Nn(i,s):r||(i[i.length]=s)}return i}var Ri=ho(),Oi=ho(!0);function Ii(e,t){return e&&Ri(e,t,Sd)}function Li(e,t){return e&&Oi(e,t,Sd)}function Di(e,t){return xn(t,function(t){return Eu(e[t])})}function Pi(e,t){t=Ga(t,e);var n=0,r=t.length;while(null!=e&&n<r)e=e[Is(t[n++])];return n&&n==r?e:i}function Mi(e,t,n){var r=t(e);return cu(e)?r:Nn(r,n(e))}function Bi(e){return null==e?e===i?ce:te:Nt&&Nt in rt(e)?Wo(e):_s(e)}function Fi(e,t){return e>t}function $i(e,t){return null!=e&&ht.call(e,t)}function Ui(e,t){return null!=e&&t in rt(e)}function ji(e,t,n){return e>=Vt(t,n)&&e<jt(t,n)}function Vi(e,t,r){var a=r?Cn:An,o=e[0].length,s=e.length,l=s,c=n(s),u=1/0,d=[];while(l--){var h=e[l];l&&t&&(h=Tn(h,Yn(t))),u=Vt(h.length,u),c[l]=!r&&(t||o>=120&&h.length>=120)?new Yr(l&&h):i}h=e[0];var p=-1,f=c[0];e:while(++p<o&&d.length<u){var m=h[p],g=t?t(m):m;if(m=r||0!==m?m:0,!(f?Jn(f,g):a(d,g,r))){l=s;while(--l){var v=c[l];if(!(v?Jn(v,g):a(e[l],g,r)))continue e}f&&f.push(g),d.push(m)}}return d}function Ki(e,t,n,r){return Ii(e,function(e,i,a){t(r,n(e),i,a)}),r}function Gi(e,t,n){t=Ga(t,e),e=Es(e,t);var r=null==e?e:e[Is(ol(t))];return null==r?i:_n(r,e,n)}function Hi(e){return Au(e)&&Bi(e)==G}function zi(e){return Au(e)&&Bi(e)==he}function qi(e){return Au(e)&&Bi(e)==X}function Xi(e,t,n,r,i){return e===t||(null==e||null==t||!Au(e)&&!Au(t)?e!==e&&t!==t:Wi(e,t,n,r,Xi,i))}function Wi(e,t,n,r,i,a){var o=cu(e),s=cu(t),l=o?H:Jo(e),c=s?H:Jo(t);l=l==G?ne:l,c=c==G?ne:c;var u=l==ne,d=c==ne,h=l==c;if(h&&fu(e)){if(!fu(t))return!1;o=!0,u=!1}if(h&&!u)return a||(a=new Zr),o||ju(e)?Mo(e,t,n,r,i,a):Bo(e,t,l,n,r,i,a);if(!(n&v)){var p=u&&ht.call(e,"__wrapped__"),f=d&&ht.call(t,"__wrapped__");if(p||f){var m=p?e.value():e,g=f?t.value():t;return a||(a=new Zr),i(m,g,n,r,a)}}return!!h&&(a||(a=new Zr),Fo(e,t,n,r,i,a))}function Yi(e){return Au(e)&&Jo(e)==Z}function Qi(e,t,n,r){var a=n.length,o=a,s=!r;if(null==e)return!o;e=rt(e);while(a--){var l=n[a];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}while(++a<o){l=n[a];var c=l[0],u=e[c],d=l[1];if(s&&l[2]){if(u===i&&!(c in e))return!1}else{var h=new Zr;if(r)var p=r(u,d,c,e,t,h);if(!(p===i?Xi(d,u,v|b,r,h):p))return!1}}return!0}function Ji(e){if(!xu(e)||hs(e))return!1;var t=Eu(e)?bt:Ye;return t.test(Ls(e))}function Zi(e){return Au(e)&&Bi(e)==ae}function ea(e){return Au(e)&&Jo(e)==oe}function ta(e){return Au(e)&&ku(e.length)&&!!Qt[Bi(e)]}function na(e){return"function"==typeof e?e:null==e?Oh:"object"==typeof e?cu(e)?la(e[0],e[1]):sa(e):Gh(e)}function ra(e){if(!fs(e))return Ut(e);var t=[];for(var n in rt(e))ht.call(e,n)&&"constructor"!=n&&t.push(n);return t}function ia(e){if(!xu(e))return ys(e);var t=fs(e),n=[];for(var r in e)("constructor"!=r||!t&&ht.call(e,r))&&n.push(r);return n}function aa(e,t){return e<t}function oa(e,t){var r=-1,i=du(e)?n(e.length):[];return Si(e,function(e,n,a){i[++r]=t(e,n,a)}),i}function sa(e){var t=qo(e);return 1==t.length&&t[0][2]?gs(t[0][0],t[0][1]):function(n){return n===e||Qi(n,e,t)}}function la(e,t){return cs(e)&&ms(t)?gs(Is(e),t):function(n){var r=vd(n,e);return r===i&&r===t?yd(n,e):Xi(t,r,v|b)}}function ca(e,t,n,r,a){e!==t&&Ri(t,function(o,s){if(a||(a=new Zr),xu(o))ua(e,t,s,n,ca,r,a);else{var l=r?r(ks(e,s),o,s+"",e,t,a):i;l===i&&(l=o),ci(e,s,l)}},kd)}function ua(e,t,n,r,a,o,s){var l=ks(e,n),c=ks(t,n),u=s.get(c);if(u)ci(e,n,u);else{var d=o?o(l,c,n+"",e,t,s):i,h=d===i;if(h){var p=cu(c),f=!p&&fu(c),m=!p&&!f&&ju(c);d=c,p||f||m?cu(l)?d=l:hu(l)?d=io(l):f?(h=!1,d=Xa(c,!0)):m?(h=!1,d=Za(c,!0)):d=[]:Pu(c)||lu(c)?(d=l,lu(l)?d=Ju(l):xu(l)&&!Eu(l)||(d=rs(c))):h=!1}h&&(s.set(c,d),a(d,c,r,o,s),s["delete"](c)),ci(e,n,d)}}function da(e,t){var n=e.length;if(n)return t+=t<0?n:0,ss(t,n)?e[t]:i}function ha(e,t,n){t=t.length?Tn(t,function(e){return cu(e)?function(t){return Pi(t,1===e.length?e[0]:e)}:e}):[Oh];var r=-1;t=Tn(t,Yn(Ho()));var i=oa(e,function(e,n,i){var a=Tn(t,function(t){return t(e)});return{criteria:a,index:++r,value:e}});return Hn(i,function(e,t){return to(e,t,n)})}function pa(e,t){return fa(e,t,function(t,n){return yd(e,n)})}function fa(e,t,n){var r=-1,i=t.length,a={};while(++r<i){var o=t[r],s=Pi(e,o);n(s,o)&&ka(a,Ga(o,e),s)}return a}function ma(e){return function(t){return Pi(t,e)}}function ga(e,t,n,r){var i=r?$n:Fn,a=-1,o=t.length,s=e;e===t&&(t=io(t)),n&&(s=Tn(e,Yn(n)));while(++a<o){var l=0,c=t[a],u=n?n(c):c;while((l=i(s,u,l,r))>-1)s!==e&&At.call(s,l,1),At.call(e,l,1)}return e}function va(e,t){var n=e?t.length:0,r=n-1;while(n--){var i=t[n];if(n==r||i!==a){var a=i;ss(i)?At.call(e,i,1):Ma(e,i)}}return e}function ba(e,t){return e+Pt(qt()*(t-e+1))}function ya(e,t,r,i){var a=-1,o=jt(Dt((t-e)/(r||1)),0),s=n(o);while(o--)s[i?o:++a]=e,e+=r;return s}function _a(e,t){var n="";if(!e||t<1||t>B)return n;do{t%2&&(n+=e),t=Pt(t/2),t&&(e+=e)}while(t);return n}function wa(e,t){return Cs(ws(e,t,Oh),e+"")}function Ea(e){return oi(Vd(e))}function Sa(e,t){var n=Vd(e);return Rs(n,vi(t,0,n.length))}function ka(e,t,n,r){if(!xu(e))return e;t=Ga(t,e);var a=-1,o=t.length,s=o-1,l=e;while(null!=l&&++a<o){var c=Is(t[a]),u=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(a!=s){var d=l[c];u=r?r(d,c,l):i,u===i&&(u=xu(d)?d:ss(t[a+1])?[]:{})}ui(l,c,u),l=l[c]}return e}var xa=cn?function(e,t){return cn.set(e,t),e}:Oh,Aa=Rt?function(e,t){return Rt(e,"toString",{configurable:!0,enumerable:!1,value:Ch(t),writable:!0})}:Oh;function Ca(e){return Rs(Vd(e))}function Ta(e,t,r){var i=-1,a=e.length;t<0&&(t=-t>a?0:a+t),r=r>a?a:r,r<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;var o=n(a);while(++i<a)o[i]=e[i+t];return o}function Na(e,t){var n;return Si(e,function(e,r,i){return n=t(e,r,i),!n}),!!n}function Ra(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t===t&&i<=V){while(r<i){var a=r+i>>>1,o=e[a];null!==o&&!Uu(o)&&(n?o<=t:o<t)?r=a+1:i=a}return i}return Oa(e,t,Oh,n)}function Oa(e,t,n,r){var a=0,o=null==e?0:e.length;if(0===o)return 0;t=n(t);var s=t!==t,l=null===t,c=Uu(t),u=t===i;while(a<o){var d=Pt((a+o)/2),h=n(e[d]),p=h!==i,f=null===h,m=h===h,g=Uu(h);if(s)var v=r||m;else v=u?m&&(r||p):l?m&&p&&(r||!f):c?m&&p&&!f&&(r||!g):!f&&!g&&(r?h<=t:h<t);v?a=d+1:o=d}return Vt(o,j)}function Ia(e,t){var n=-1,r=e.length,i=0,a=[];while(++n<r){var o=e[n],s=t?t(o):o;if(!n||!au(s,l)){var l=s;a[i++]=0===o?0:o}}return a}function La(e){return"number"==typeof e?e:Uu(e)?$:+e}function Da(e){if("string"==typeof e)return e;if(cu(e))return Tn(e,Da)+"";if(Uu(e))return wr?wr.call(e):"";var t=e+"";return"0"==t&&1/e==-M?"-0":t}function Pa(e,t,n){var r=-1,i=An,a=e.length,s=!0,l=[],c=l;if(n)s=!1,i=Cn;else if(a>=o){var u=t?null:Ro(e);if(u)return hr(u);s=!1,i=Jn,c=new Yr}else c=t?[]:l;e:while(++r<a){var d=e[r],h=t?t(d):d;if(d=n||0!==d?d:0,s&&h===h){var p=c.length;while(p--)if(c[p]===h)continue e;t&&c.push(h),l.push(d)}else i(c,h,n)||(c!==l&&c.push(h),l.push(d))}return l}function Ma(e,t){t=Ga(t,e);var n=-1,r=t.length;if(!r)return!0;while(++n<r){var i=Is(t[n]);if("__proto__"===i&&!ht.call(e,"__proto__"))return!1;if(("constructor"===i||"prototype"===i)&&n<r-1)return!1}var a=Es(e,t);return null==a||delete a[Is(ol(t))]}function Ba(e,t,n,r){return ka(e,t,n(Pi(e,t)),r)}function Fa(e,t,n,r){var i=e.length,a=r?i:-1;while((r?a--:++a<i)&&t(e[a],a,e));return n?Ta(e,r?0:a,r?a+1:i):Ta(e,r?a+1:0,r?i:a)}function $a(e,t){var n=e;return n instanceof Tr&&(n=n.value()),Rn(t,function(e,t){return t.func.apply(t.thisArg,Nn([e],t.args))},n)}function Ua(e,t,r){var i=e.length;if(i<2)return i?Pa(e[0]):[];var a=-1,o=n(i);while(++a<i){var s=e[a],l=-1;while(++l<i)l!=a&&(o[a]=Ei(o[a]||s,e[l],t,r))}return Pa(Ni(o,1),t,r)}function ja(e,t,n){var r=-1,a=e.length,o=t.length,s={};while(++r<a){var l=r<o?t[r]:i;n(s,e[r],l)}return s}function Va(e){return hu(e)?e:[]}function Ka(e){return"function"==typeof e?e:Oh}function Ga(e,t){return cu(e)?e:cs(e,t)?[e]:Os(ed(e))}var Ha=wa;function za(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=r?e:Ta(e,t,n)}var qa=Ot||function(e){return ln.clearTimeout(e)};function Xa(e,t){if(t)return e.slice();var n=e.length,r=Et?Et(n):new e.constructor(n);return e.copy(r),r}function Wa(e){var t=new e.constructor(e.byteLength);return new wt(t).set(new wt(e)),t}function Ya(e,t){var n=t?Wa(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Qa(e){var t=new e.constructor(e.source,qe.exec(e));return t.lastIndex=e.lastIndex,t}function Ja(e){return _r?rt(_r.call(e)):{}}function Za(e,t){var n=t?Wa(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function eo(e,t){if(e!==t){var n=e!==i,r=null===e,a=e===e,o=Uu(e),s=t!==i,l=null===t,c=t===t,u=Uu(t);if(!l&&!u&&!o&&e>t||o&&s&&c&&!l&&!u||r&&s&&c||!n&&c||!a)return 1;if(!r&&!o&&!u&&e<t||u&&n&&a&&!r&&!o||l&&n&&a||!s&&a||!c)return-1}return 0}function to(e,t,n){var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;while(++r<o){var l=eo(i[r],a[r]);if(l){if(r>=s)return l;var c=n[r];return l*("desc"==c?-1:1)}}return e.index-t.index}function no(e,t,r,i){var a=-1,o=e.length,s=r.length,l=-1,c=t.length,u=jt(o-s,0),d=n(c+u),h=!i;while(++l<c)d[l]=t[l];while(++a<s)(h||a<o)&&(d[r[a]]=e[a]);while(u--)d[l++]=e[a++];return d}function ro(e,t,r,i){var a=-1,o=e.length,s=-1,l=r.length,c=-1,u=t.length,d=jt(o-l,0),h=n(d+u),p=!i;while(++a<d)h[a]=e[a];var f=a;while(++c<u)h[f+c]=t[c];while(++s<l)(p||a<o)&&(h[f+r[s]]=e[a++]);return h}function io(e,t){var r=-1,i=e.length;t||(t=n(i));while(++r<i)t[r]=e[r];return t}function ao(e,t,n,r){var a=!n;n||(n={});var o=-1,s=t.length;while(++o<s){var l=t[o],c=r?r(n[l],e[l],l,n,e):i;c===i&&(c=e[l]),a?mi(n,l,c):ui(n,l,c)}return n}function oo(e,t){return ao(e,Yo(e),t)}function so(e,t){return ao(e,Qo(e),t)}function lo(e,t){return function(n,r){var i=cu(n)?wn:hi,a=t?t():{};return i(n,e,Ho(r,2),a)}}function co(e){return wa(function(t,n){var r=-1,a=n.length,o=a>1?n[a-1]:i,s=a>2?n[2]:i;o=e.length>3&&"function"==typeof o?(a--,o):i,s&&ls(n[0],n[1],s)&&(o=a<3?i:o,a=1),t=rt(t);while(++r<a){var l=n[r];l&&e(t,l,r,o)}return t})}function uo(e,t){return function(n,r){if(null==n)return n;if(!du(n))return e(n,r);var i=n.length,a=t?i:-1,o=rt(n);while(t?a--:++a<i)if(!1===r(o[a],a,o))break;return n}}function ho(e){return function(t,n,r){var i=-1,a=rt(t),o=r(t),s=o.length;while(s--){var l=o[e?s:++i];if(!1===n(a[l],l,a))break}return t}}function po(e,t,n){var r=t&y,i=go(e);function a(){var t=this&&this!==ln&&this instanceof a?i:e;return t.apply(r?n:this,arguments)}return a}function fo(e){return function(t){t=ed(t);var n=or(t)?vr(t):i,r=n?n[0]:t.charAt(0),a=n?za(n,1).join(""):t.slice(1);return r[e]()+a}}function mo(e){return function(t){return Rn(Eh(Wd(t).replace(Kt,"")),e,"")}}function go(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=xr(e.prototype),r=e.apply(n,t);return xu(r)?r:n}}function vo(e,t,r){var a=go(e);function o(){var s=arguments.length,l=n(s),c=s,u=Go(o);while(c--)l[c]=arguments[c];var d=s<3&&l[0]!==u&&l[s-1]!==u?[]:dr(l,u);if(s-=d.length,s<r)return To(e,t,_o,o.placeholder,i,l,d,i,i,r-s);var h=this&&this!==ln&&this instanceof o?a:e;return _n(h,this,l)}return o}function bo(e){return function(t,n,r){var a=rt(t);if(!du(t)){var o=Ho(n,3);t=Sd(t),n=function(e){return o(a[e],e,a)}}var s=e(t,n,r);return s>-1?a[o?t[s]:s]:i}}function yo(e){return $o(function(t){var n=t.length,r=n,a=Cr.prototype.thru;e&&t.reverse();while(r--){var o=t[r];if("function"!=typeof o)throw new ot(l);if(a&&!s&&"wrapper"==Ko(o))var s=new Cr([],!0)}r=s?r:n;while(++r<n){o=t[r];var c=Ko(o),u="wrapper"==c?Vo(o):i;s=u&&ds(u[0])&&u[1]==(A|E|k|C)&&!u[4].length&&1==u[9]?s[Ko(u[0])].apply(s,u[3]):1==o.length&&ds(o)?s[c]():s.thru(o)}return function(){var e=arguments,r=e[0];if(s&&1==e.length&&cu(r))return s.plant(r).value();var i=0,a=n?t[i].apply(this,e):r;while(++i<n)a=t[i].call(this,a);return a}})}function _o(e,t,r,a,o,s,l,c,u,d){var h=t&A,p=t&y,f=t&_,m=t&(E|S),g=t&T,v=f?i:go(e);function b(){var i=arguments.length,y=n(i),_=i;while(_--)y[_]=arguments[_];if(m)var w=Go(b),E=tr(y,w);if(a&&(y=no(y,a,o,m)),s&&(y=ro(y,s,l,m)),i-=E,m&&i<d){var S=dr(y,w);return To(e,t,_o,b.placeholder,r,y,S,c,u,d-i)}var k=p?r:this,x=f?k[e]:e;return i=y.length,c?y=Ss(y,c):g&&i>1&&y.reverse(),h&&u<i&&(y.length=u),this&&this!==ln&&this instanceof b&&(x=v||go(x)),x.apply(k,y)}return b}function wo(e,t){return function(n,r){return Ki(n,e,t(r),{})}}function Eo(e,t){return function(n,r){var a;if(n===i&&r===i)return t;if(n!==i&&(a=n),r!==i){if(a===i)return r;"string"==typeof n||"string"==typeof r?(n=Da(n),r=Da(r)):(n=La(n),r=La(r)),a=e(n,r)}return a}}function So(e){return $o(function(t){return t=Tn(t,Yn(Ho())),wa(function(n){var r=this;return e(t,function(e){return _n(e,r,n)})})})}function ko(e,t){t=t===i?" ":Da(t);var n=t.length;if(n<2)return n?_a(t,e):t;var r=_a(t,Dt(e/gr(t)));return or(t)?za(vr(r),0,e).join(""):r.slice(0,e)}function xo(e,t,r,i){var a=t&y,o=go(e);function s(){var t=-1,l=arguments.length,c=-1,u=i.length,d=n(u+l),h=this&&this!==ln&&this instanceof s?o:e;while(++c<u)d[c]=i[c];while(l--)d[c++]=arguments[++t];return _n(h,a?r:this,d)}return s}function Ao(e){return function(t,n,r){return r&&"number"!=typeof r&&ls(t,n,r)&&(n=r=i),t=Xu(t),n===i?(n=t,t=0):n=Xu(n),r=r===i?t<n?1:-1:Xu(r),ya(t,n,r,e)}}function Co(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Qu(t),n=Qu(n)),e(t,n)}}function To(e,t,n,r,a,o,s,l,c,u){var d=t&E,h=d?s:i,p=d?i:s,f=d?o:i,m=d?i:o;t|=d?k:x,t&=~(d?x:k),t&w||(t&=~(y|_));var g=[e,t,a,f,h,m,p,l,c,u],v=n.apply(i,g);return ds(e)&&xs(v,g),v.placeholder=r,Ts(v,e,t)}function No(e){var t=nt[e];return function(e,n){if(e=Qu(e),n=null==n?0:Vt(Wu(n),292),n&&Ft(e)){var r=(ed(e)+"e").split("e"),i=t(r[0]+"e"+(+r[1]+n));return r=(ed(i)+"e").split("e"),+(r[0]+"e"+(+r[1]-n))}return t(e)}}var Ro=nn&&1/hr(new nn([,-0]))[1]==M?function(e){return new nn(e)}:$h;function Oo(e){return function(t){var n=Jo(t);return n==Z?cr(t):n==oe?pr(t):Xn(t,e(t))}}function Io(e,t,n,r,a,o,s,c){var u=t&_;if(!u&&"function"!=typeof e)throw new ot(l);var d=r?r.length:0;if(d||(t&=~(k|x),r=a=i),s=s===i?s:jt(Wu(s),0),c=c===i?c:Wu(c),d-=a?a.length:0,t&x){var h=r,p=a;r=a=i}var f=u?i:Vo(e),m=[e,t,n,r,a,h,p,o,s,c];if(f&&bs(m,f),e=m[0],t=m[1],n=m[2],r=m[3],a=m[4],c=m[9]=m[9]===i?u?0:e.length:jt(m[9]-d,0),!c&&t&(E|S)&&(t&=~(E|S)),t&&t!=y)g=t==E||t==S?vo(e,t,c):t!=k&&t!=(y|k)||a.length?_o.apply(i,m):xo(e,t,n,r);else var g=po(e,t,n);var v=f?xa:xs;return Ts(v(g,m),e,t)}function Lo(e,t,n,r){return e===i||au(e,ct[n])&&!ht.call(r,n)?t:e}function Do(e,t,n,r,a,o){return xu(e)&&xu(t)&&(o.set(t,e),ca(e,t,i,Do,o),o["delete"](t)),e}function Po(e){return Pu(e)?i:e}function Mo(e,t,n,r,a,o){var s=n&v,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var h=-1,p=!0,f=n&b?new Yr:i;o.set(e,t),o.set(t,e);while(++h<l){var m=e[h],g=t[h];if(r)var y=s?r(g,m,h,t,e,o):r(m,g,h,e,t,o);if(y!==i){if(y)continue;p=!1;break}if(f){if(!In(t,function(e,t){if(!Jn(f,t)&&(m===e||a(m,e,n,r,o)))return f.push(t)})){p=!1;break}}else if(m!==g&&!a(m,g,n,r,o)){p=!1;break}}return o["delete"](e),o["delete"](t),p}function Bo(e,t,n,r,i,a,o){switch(n){case pe:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case he:return!(e.byteLength!=t.byteLength||!a(new wt(e),new wt(t)));case q:case X:case ee:return au(+e,+t);case Y:return e.name==t.name&&e.message==t.message;case ae:case se:return e==t+"";case Z:var s=cr;case oe:var l=r&v;if(s||(s=hr),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;r|=b,o.set(e,t);var u=Mo(s(e),s(t),r,i,a,o);return o["delete"](e),u;case le:if(_r)return _r.call(e)==_r.call(t)}return!1}function Fo(e,t,n,r,a,o){var s=n&v,l=Uo(e),c=l.length,u=Uo(t),d=u.length;if(c!=d&&!s)return!1;var h=c;while(h--){var p=l[h];if(!(s?p in t:ht.call(t,p)))return!1}var f=o.get(e),m=o.get(t);if(f&&m)return f==t&&m==e;var g=!0;o.set(e,t),o.set(t,e);var b=s;while(++h<c){p=l[h];var y=e[p],_=t[p];if(r)var w=s?r(_,y,p,t,e,o):r(y,_,p,e,t,o);if(!(w===i?y===_||a(y,_,n,r,o):w)){g=!1;break}b||(b="constructor"==p)}if(g&&!b){var E=e.constructor,S=t.constructor;E==S||!("constructor"in e)||!("constructor"in t)||"function"==typeof E&&E instanceof E&&"function"==typeof S&&S instanceof S||(g=!1)}return o["delete"](e),o["delete"](t),g}function $o(e){return Cs(ws(e,i,Ws),e+"")}function Uo(e){return Mi(e,Sd,Yo)}function jo(e){return Mi(e,kd,Qo)}var Vo=cn?function(e){return cn.get(e)}:$h;function Ko(e){var t=e.name+"",n=un[t],r=ht.call(un,t)?n.length:0;while(r--){var i=n[r],a=i.func;if(null==a||a==e)return i.name}return t}function Go(e){var t=ht.call(Sr,"placeholder")?Sr:e;return t.placeholder}function Ho(){var e=Sr.iteratee||Ih;return e=e===Ih?na:e,arguments.length?e(arguments[0],arguments[1]):e}function zo(e,t){var n=e.__data__;return us(t)?n["string"==typeof t?"string":"hash"]:n.map}function qo(e){var t=Sd(e),n=t.length;while(n--){var r=t[n],i=e[r];t[n]=[r,i,ms(i)]}return t}function Xo(e,t){var n=ar(e,t);return Ji(n)?n:i}function Wo(e){var t=ht.call(e,Nt),n=e[Nt];try{e[Nt]=i;var r=!0}catch(o){}var a=mt.call(e);return r&&(t?e[Nt]=n:delete e[Nt]),a}var Yo=Mt?function(e){return null==e?[]:(e=rt(e),xn(Mt(e),function(t){return xt.call(e,t)}))}:Xh,Qo=Mt?function(e){var t=[];while(e)Nn(t,Yo(e)),e=St(e);return t}:Xh,Jo=Bi;function Zo(e,t,n){var r=-1,i=n.length;while(++r<i){var a=n[r],o=a.size;switch(a.type){case"drop":e+=o;break;case"dropRight":t-=o;break;case"take":t=Vt(t,e+o);break;case"takeRight":e=jt(e,t-o);break}}return{start:e,end:t}}function es(e){var t=e.match(je);return t?t[1].split(Ve):[]}function ts(e,t,n){t=Ga(t,e);var r=-1,i=t.length,a=!1;while(++r<i){var o=Is(t[r]);if(!(a=null!=e&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=null==e?0:e.length,!!i&&ku(i)&&ss(o,i)&&(cu(e)||lu(e)))}function ns(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ht.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function rs(e){return"function"!=typeof e.constructor||fs(e)?{}:xr(St(e))}function is(e,t,n){var r=e.constructor;switch(t){case he:return Wa(e);case q:case X:return new r(+e);case pe:return Ya(e,n);case fe:case me:case ge:case ve:case be:case ye:case _e:case we:case Ee:return Za(e,n);case Z:return new r;case ee:case se:return new r(e);case ae:return Qa(e);case oe:return new r;case le:return Ja(e)}}function as(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Ue,"{\n/* [wrapped with "+t+"] */\n")}function os(e){return cu(e)||lu(e)||!!(Ct&&e&&e[Ct])}function ss(e,t){var n=typeof e;return t=null==t?B:t,!!t&&("number"==n||"symbol"!=n&&Je.test(e))&&e>-1&&e%1==0&&e<t}function ls(e,t,n){if(!xu(n))return!1;var r=typeof t;return!!("number"==r?du(n)&&ss(t,n.length):"string"==r&&t in n)&&au(n[t],e)}function cs(e,t){if(cu(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Uu(e))||(De.test(e)||!Le.test(e)||null!=t&&e in rt(t))}function us(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function ds(e){var t=Ko(e),n=Sr[t];if("function"!=typeof n||!(t in Tr.prototype))return!1;if(e===n)return!0;var r=Vo(n);return!!r&&e===r[0]}function hs(e){return!!ft&&ft in e}(Zt&&Jo(new Zt(new ArrayBuffer(1)))!=pe||en&&Jo(new en)!=Z||tn&&Jo(tn.resolve())!=re||nn&&Jo(new nn)!=oe||on&&Jo(new on)!=ue)&&(Jo=function(e){var t=Bi(e),n=t==ne?e.constructor:i,r=n?Ls(n):"";if(r)switch(r){case hn:return pe;case pn:return Z;case Ln:return re;case Dn:return oe;case Kn:return ue}return t});var ps=ut?Eu:Wh;function fs(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||ct;return e===n}function ms(e){return e===e&&!xu(e)}function gs(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==i||e in rt(n)))}}function vs(e){var t=jc(e,function(e){return n.size===h&&n.clear(),e}),n=t.cache;return t}function bs(e,t){var n=e[1],r=t[1],i=n|r,a=i<(y|_|A),o=r==A&&n==E||r==A&&n==C&&e[7].length<=t[8]||r==(A|C)&&t[7].length<=t[8]&&n==E;if(!a&&!o)return e;r&y&&(e[2]=t[2],i|=n&y?0:w);var s=t[3];if(s){var l=e[3];e[3]=l?no(l,s,t[4]):s,e[4]=l?dr(e[3],p):t[4]}return s=t[5],s&&(l=e[5],e[5]=l?ro(l,s,t[6]):s,e[6]=l?dr(e[5],p):t[6]),s=t[7],s&&(e[7]=s),r&A&&(e[8]=null==e[8]?t[8]:Vt(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i,e}function ys(e){var t=[];if(null!=e)for(var n in rt(e))t.push(n);return t}function _s(e){return mt.call(e)}function ws(e,t,r){return t=jt(t===i?e.length-1:t,0),function(){var i=arguments,a=-1,o=jt(i.length-t,0),s=n(o);while(++a<o)s[a]=i[t+a];a=-1;var l=n(t+1);while(++a<t)l[a]=i[a];return l[t]=r(s),_n(e,this,l)}}function Es(e,t){return t.length<2?e:Pi(e,Ta(t,0,-1))}function Ss(e,t){var n=e.length,r=Vt(t.length,n),a=io(e);while(r--){var o=t[r];e[r]=ss(o,n)?a[o]:i}return e}function ks(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var xs=Ns(xa),As=Lt||function(e,t){return ln.setTimeout(e,t)},Cs=Ns(Aa);function Ts(e,t,n){var r=t+"";return Cs(e,as(r,Ds(es(r),n)))}function Ns(e){var t=0,n=0;return function(){var r=Ht(),a=I-(r-n);if(n=r,a>0){if(++t>=O)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Rs(e,t){var n=-1,r=e.length,a=r-1;t=t===i?r:t;while(++n<t){var o=ba(n,a),s=e[o];e[o]=e[n],e[n]=s}return e.length=t,e}var Os=vs(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Pe,function(e,n,r,i){t.push(r?i.replace(He,"$1"):n||e)}),t});function Is(e){if("string"==typeof e||Uu(e))return e;var t=e+"";return"0"==t&&1/e==-M?"-0":t}function Ls(e){if(null!=e){try{return dt.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Ds(e,t){return En(K,function(n){var r="_."+n[0];t&n[1]&&!An(e,r)&&e.push(r)}),e.sort()}function Ps(e){if(e instanceof Tr)return e.clone();var t=new Cr(e.__wrapped__,e.__chain__);return t.__actions__=io(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Ms(e,t,r){t=(r?ls(e,t,r):t===i)?1:jt(Wu(t),0);var a=null==e?0:e.length;if(!a||t<1)return[];var o=0,s=0,l=n(Dt(a/t));while(o<a)l[s++]=Ta(e,o,o+=t);return l}function Bs(e){var t=-1,n=null==e?0:e.length,r=0,i=[];while(++t<n){var a=e[t];a&&(i[r++]=a)}return i}function Fs(){var e=arguments.length;if(!e)return[];var t=n(e-1),r=arguments[0],i=e;while(i--)t[i-1]=arguments[i];return Nn(cu(r)?io(r):[r],Ni(t,1))}var $s=wa(function(e,t){return hu(e)?Ei(e,Ni(t,1,hu,!0)):[]}),Us=wa(function(e,t){var n=ol(t);return hu(n)&&(n=i),hu(e)?Ei(e,Ni(t,1,hu,!0),Ho(n,2)):[]}),js=wa(function(e,t){var n=ol(t);return hu(n)&&(n=i),hu(e)?Ei(e,Ni(t,1,hu,!0),i,n):[]});function Vs(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===i?1:Wu(t),Ta(e,t<0?0:t,r)):[]}function Ks(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===i?1:Wu(t),t=r-t,Ta(e,0,t<0?0:t)):[]}function Gs(e,t){return e&&e.length?Fa(e,Ho(t,3),!0,!0):[]}function Hs(e,t){return e&&e.length?Fa(e,Ho(t,3),!0):[]}function zs(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&ls(e,t,n)&&(n=0,r=i),Ci(e,t,n,r)):[]}function qs(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Wu(n);return i<0&&(i=jt(r+i,0)),Bn(e,Ho(t,3),i)}function Xs(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=r-1;return n!==i&&(a=Wu(n),a=n<0?jt(r+a,0):Vt(a,r-1)),Bn(e,Ho(t,3),a,!0)}function Ws(e){var t=null==e?0:e.length;return t?Ni(e,1):[]}function Ys(e){var t=null==e?0:e.length;return t?Ni(e,M):[]}function Qs(e,t){var n=null==e?0:e.length;return n?(t=t===i?1:Wu(t),Ni(e,t)):[]}function Js(e){var t=-1,n=null==e?0:e.length,r={};while(++t<n){var i=e[t];mi(r,i[0],i[1])}return r}function Zs(e){return e&&e.length?e[0]:i}function el(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Wu(n);return i<0&&(i=jt(r+i,0)),Fn(e,t,i)}function tl(e){var t=null==e?0:e.length;return t?Ta(e,0,-1):[]}var nl=wa(function(e){var t=Tn(e,Va);return t.length&&t[0]===e[0]?Vi(t):[]}),rl=wa(function(e){var t=ol(e),n=Tn(e,Va);return t===ol(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Vi(n,Ho(t,2)):[]}),il=wa(function(e){var t=ol(e),n=Tn(e,Va);return t="function"==typeof t?t:i,t&&n.pop(),n.length&&n[0]===e[0]?Vi(n,i,t):[]});function al(e,t){return null==e?"":$t.call(e,t)}function ol(e){var t=null==e?0:e.length;return t?e[t-1]:i}function sl(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=r;return n!==i&&(a=Wu(n),a=a<0?jt(r+a,0):Vt(a,r-1)),t===t?mr(e,t,a):Bn(e,Un,a,!0)}function ll(e,t){return e&&e.length?da(e,Wu(t)):i}var cl=wa(ul);function ul(e,t){return e&&e.length&&t&&t.length?ga(e,t):e}function dl(e,t,n){return e&&e.length&&t&&t.length?ga(e,t,Ho(n,2)):e}function hl(e,t,n){return e&&e.length&&t&&t.length?ga(e,t,i,n):e}var pl=$o(function(e,t){var n=null==e?0:e.length,r=gi(e,t);return va(e,Tn(t,function(e){return ss(e,n)?+e:e}).sort(eo)),r});function fl(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],a=e.length;t=Ho(t,3);while(++r<a){var o=e[r];t(o,r,e)&&(n.push(o),i.push(r))}return va(e,i),n}function ml(e){return null==e?e:Xt.call(e)}function gl(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&ls(e,t,n)?(t=0,n=r):(t=null==t?0:Wu(t),n=n===i?r:Wu(n)),Ta(e,t,n)):[]}function vl(e,t){return Ra(e,t)}function bl(e,t,n){return Oa(e,t,Ho(n,2))}function yl(e,t){var n=null==e?0:e.length;if(n){var r=Ra(e,t);if(r<n&&au(e[r],t))return r}return-1}function _l(e,t){return Ra(e,t,!0)}function wl(e,t,n){return Oa(e,t,Ho(n,2),!0)}function El(e,t){var n=null==e?0:e.length;if(n){var r=Ra(e,t,!0)-1;if(au(e[r],t))return r}return-1}function Sl(e){return e&&e.length?Ia(e):[]}function kl(e,t){return e&&e.length?Ia(e,Ho(t,2)):[]}function xl(e){var t=null==e?0:e.length;return t?Ta(e,1,t):[]}function Al(e,t,n){return e&&e.length?(t=n||t===i?1:Wu(t),Ta(e,0,t<0?0:t)):[]}function Cl(e,t,n){var r=null==e?0:e.length;return r?(t=n||t===i?1:Wu(t),t=r-t,Ta(e,t<0?0:t,r)):[]}function Tl(e,t){return e&&e.length?Fa(e,Ho(t,3),!1,!0):[]}function Nl(e,t){return e&&e.length?Fa(e,Ho(t,3)):[]}var Rl=wa(function(e){return Pa(Ni(e,1,hu,!0))}),Ol=wa(function(e){var t=ol(e);return hu(t)&&(t=i),Pa(Ni(e,1,hu,!0),Ho(t,2))}),Il=wa(function(e){var t=ol(e);return t="function"==typeof t?t:i,Pa(Ni(e,1,hu,!0),i,t)});function Ll(e){return e&&e.length?Pa(e):[]}function Dl(e,t){return e&&e.length?Pa(e,Ho(t,2)):[]}function Pl(e,t){return t="function"==typeof t?t:i,e&&e.length?Pa(e,i,t):[]}function Ml(e){if(!e||!e.length)return[];var t=0;return e=xn(e,function(e){if(hu(e))return t=jt(e.length,t),!0}),qn(t,function(t){return Tn(e,Vn(t))})}function Bl(e,t){if(!e||!e.length)return[];var n=Ml(e);return null==t?n:Tn(n,function(e){return _n(t,i,e)})}var Fl=wa(function(e,t){return hu(e)?Ei(e,t):[]}),$l=wa(function(e){return Ua(xn(e,hu))}),Ul=wa(function(e){var t=ol(e);return hu(t)&&(t=i),Ua(xn(e,hu),Ho(t,2))}),jl=wa(function(e){var t=ol(e);return t="function"==typeof t?t:i,Ua(xn(e,hu),i,t)}),Vl=wa(Ml);function Kl(e,t){return ja(e||[],t||[],ui)}function Gl(e,t){return ja(e||[],t||[],ka)}var Hl=wa(function(e){var t=e.length,n=t>1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,Bl(e,n)});function zl(e){var t=Sr(e);return t.__chain__=!0,t}function ql(e,t){return t(e),e}function Xl(e,t){return t(e)}var Wl=$o(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,a=function(t){return gi(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Tr&&ss(n)?(r=r.slice(n,+n+(t?1:0)),r.__actions__.push({func:Xl,args:[a],thisArg:i}),new Cr(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(i),e})):this.thru(a)});function Yl(){return zl(this)}function Ql(){return new Cr(this.value(),this.__chain__)}function Jl(){this.__values__===i&&(this.__values__=qu(this.value()));var e=this.__index__>=this.__values__.length,t=e?i:this.__values__[this.__index__++];return{done:e,value:t}}function Zl(){return this}function ec(e){var t,n=this;while(n instanceof Ar){var r=Ps(n);r.__index__=0,r.__values__=i,t?a.__wrapped__=r:t=r;var a=r;n=n.__wrapped__}return a.__wrapped__=e,t}function tc(){var e=this.__wrapped__;if(e instanceof Tr){var t=e;return this.__actions__.length&&(t=new Tr(this)),t=t.reverse(),t.__actions__.push({func:Xl,args:[ml],thisArg:i}),new Cr(t,this.__chain__)}return this.thru(ml)}function nc(){return $a(this.__wrapped__,this.__actions__)}var rc=lo(function(e,t,n){ht.call(e,n)?++e[n]:mi(e,n,1)});function ic(e,t,n){var r=cu(e)?kn:xi;return n&&ls(e,t,n)&&(t=i),r(e,Ho(t,3))}function ac(e,t){var n=cu(e)?xn:Ti;return n(e,Ho(t,3))}var oc=bo(qs),sc=bo(Xs);function lc(e,t){return Ni(vc(e,t),1)}function cc(e,t){return Ni(vc(e,t),M)}function uc(e,t,n){return n=n===i?1:Wu(n),Ni(vc(e,t),n)}function dc(e,t){var n=cu(e)?En:Si;return n(e,Ho(t,3))}function hc(e,t){var n=cu(e)?Sn:ki;return n(e,Ho(t,3))}var pc=lo(function(e,t,n){ht.call(e,n)?e[n].push(t):mi(e,n,[t])});function fc(e,t,n,r){e=du(e)?e:Vd(e),n=n&&!r?Wu(n):0;var i=e.length;return n<0&&(n=jt(i+n,0)),$u(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Fn(e,t,n)>-1}var mc=wa(function(e,t,r){var i=-1,a="function"==typeof t,o=du(e)?n(e.length):[];return Si(e,function(e){o[++i]=a?_n(t,e,r):Gi(e,t,r)}),o}),gc=lo(function(e,t,n){mi(e,n,t)});function vc(e,t){var n=cu(e)?Tn:oa;return n(e,Ho(t,3))}function bc(e,t,n,r){return null==e?[]:(cu(t)||(t=null==t?[]:[t]),n=r?i:n,cu(n)||(n=null==n?[]:[n]),ha(e,t,n))}var yc=lo(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});function _c(e,t,n){var r=cu(e)?Rn:Gn,i=arguments.length<3;return r(e,Ho(t,4),n,i,Si)}function wc(e,t,n){var r=cu(e)?On:Gn,i=arguments.length<3;return r(e,Ho(t,4),n,i,ki)}function Ec(e,t){var n=cu(e)?xn:Ti;return n(e,Vc(Ho(t,3)))}function Sc(e){var t=cu(e)?oi:Ea;return t(e)}function kc(e,t,n){t=(n?ls(e,t,n):t===i)?1:Wu(t);var r=cu(e)?si:Sa;return r(e,t)}function xc(e){var t=cu(e)?li:Ca;return t(e)}function Ac(e){if(null==e)return 0;if(du(e))return $u(e)?gr(e):e.length;var t=Jo(e);return t==Z||t==oe?e.size:ra(e).length}function Cc(e,t,n){var r=cu(e)?In:Na;return n&&ls(e,t,n)&&(t=i),r(e,Ho(t,3))}var Tc=wa(function(e,t){if(null==e)return[];var n=t.length;return n>1&&ls(e,t[0],t[1])?t=[]:n>2&&ls(t[0],t[1],t[2])&&(t=[t[0]]),ha(e,Ni(t,1),[])}),Nc=It||function(){return ln.Date.now()};function Rc(e,t){if("function"!=typeof t)throw new ot(l);return e=Wu(e),function(){if(--e<1)return t.apply(this,arguments)}}function Oc(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Io(e,A,i,i,i,i,t)}function Ic(e,t){var n;if("function"!=typeof t)throw new ot(l);return e=Wu(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var Lc=wa(function(e,t,n){var r=y;if(n.length){var i=dr(n,Go(Lc));r|=k}return Io(e,r,t,n,i)}),Dc=wa(function(e,t,n){var r=y|_;if(n.length){var i=dr(n,Go(Dc));r|=k}return Io(t,r,e,n,i)});function Pc(e,t,n){t=n?i:t;var r=Io(e,E,i,i,i,i,i,t);return r.placeholder=Pc.placeholder,r}function Mc(e,t,n){t=n?i:t;var r=Io(e,S,i,i,i,i,i,t);return r.placeholder=Mc.placeholder,r}function Bc(e,t,n){var r,a,o,s,c,u,d=0,h=!1,p=!1,f=!0;if("function"!=typeof e)throw new ot(l);function m(t){var n=r,o=a;return r=a=i,d=t,s=e.apply(o,n),s}function g(e){return d=e,c=As(y,t),h?m(e):s}function v(e){var n=e-u,r=e-d,i=t-n;return p?Vt(i,o-r):i}function b(e){var n=e-u,r=e-d;return u===i||n>=t||n<0||p&&r>=o}function y(){var e=Nc();if(b(e))return _(e);c=As(y,v(e))}function _(e){return c=i,f&&r?m(e):(r=a=i,s)}function w(){c!==i&&qa(c),d=0,r=u=a=c=i}function E(){return c===i?s:_(Nc())}function S(){var e=Nc(),n=b(e);if(r=arguments,a=this,u=e,n){if(c===i)return g(u);if(p)return qa(c),c=As(y,t),m(u)}return c===i&&(c=As(y,t)),s}return t=Qu(t)||0,xu(n)&&(h=!!n.leading,p="maxWait"in n,o=p?jt(Qu(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f),S.cancel=w,S.flush=E,S}var Fc=wa(function(e,t){return wi(e,1,t)}),$c=wa(function(e,t,n){return wi(e,Qu(t)||0,n)});function Uc(e){return Io(e,T)}function jc(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ot(l);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(jc.Cache||Gr),n}function Vc(e){if("function"!=typeof e)throw new ot(l);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Kc(e){return Ic(2,e)}jc.Cache=Gr;var Gc=Ha(function(e,t){t=1==t.length&&cu(t[0])?Tn(t[0],Yn(Ho())):Tn(Ni(t,1),Yn(Ho()));var n=t.length;return wa(function(r){var i=-1,a=Vt(r.length,n);while(++i<a)r[i]=t[i].call(this,r[i]);return _n(e,this,r)})}),Hc=wa(function(e,t){var n=dr(t,Go(Hc));return Io(e,k,i,t,n)}),zc=wa(function(e,t){var n=dr(t,Go(zc));return Io(e,x,i,t,n)}),qc=$o(function(e,t){return Io(e,C,i,i,i,t)});function Xc(e,t){if("function"!=typeof e)throw new ot(l);return t=t===i?t:Wu(t),wa(e,t)}function Wc(e,t){if("function"!=typeof e)throw new ot(l);return t=null==t?0:jt(Wu(t),0),wa(function(n){var r=n[t],i=za(n,0,t);return r&&Nn(i,r),_n(e,this,i)})}function Yc(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new ot(l);return xu(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Bc(e,t,{leading:r,maxWait:t,trailing:i})}function Qc(e){return Oc(e,1)}function Jc(e,t){return Hc(Ka(t),e)}function Zc(){if(!arguments.length)return[];var e=arguments[0];return cu(e)?e:[e]}function eu(e){return bi(e,g)}function tu(e,t){return t="function"==typeof t?t:i,bi(e,g,t)}function nu(e){return bi(e,f|g)}function ru(e,t){return t="function"==typeof t?t:i,bi(e,f|g,t)}function iu(e,t){return null==t||_i(e,t,Sd(t))}function au(e,t){return e===t||e!==e&&t!==t}var ou=Co(Fi),su=Co(function(e,t){return e>=t}),lu=Hi(function(){return arguments}())?Hi:function(e){return Au(e)&&ht.call(e,"callee")&&!xt.call(e,"callee")},cu=n.isArray,uu=fn?Yn(fn):zi;function du(e){return null!=e&&ku(e.length)&&!Eu(e)}function hu(e){return Au(e)&&du(e)}function pu(e){return!0===e||!1===e||Au(e)&&Bi(e)==q}var fu=Bt||Wh,mu=mn?Yn(mn):qi;function gu(e){return Au(e)&&1===e.nodeType&&!Pu(e)}function vu(e){if(null==e)return!0;if(du(e)&&(cu(e)||"string"==typeof e||"function"==typeof e.splice||fu(e)||ju(e)||lu(e)))return!e.length;var t=Jo(e);if(t==Z||t==oe)return!e.size;if(fs(e))return!ra(e).length;for(var n in e)if(ht.call(e,n))return!1;return!0}function bu(e,t){return Xi(e,t)}function yu(e,t,n){n="function"==typeof n?n:i;var r=n?n(e,t):i;return r===i?Xi(e,t,i,n):!!r}function _u(e){if(!Au(e))return!1;var t=Bi(e);return t==Y||t==W||"string"==typeof e.message&&"string"==typeof e.name&&!Pu(e)}function wu(e){return"number"==typeof e&&Ft(e)}function Eu(e){if(!xu(e))return!1;var t=Bi(e);return t==Q||t==J||t==z||t==ie}function Su(e){return"number"==typeof e&&e==Wu(e)}function ku(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=B}function xu(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Au(e){return null!=e&&"object"==typeof e}var Cu=gn?Yn(gn):Yi;function Tu(e,t){return e===t||Qi(e,t,qo(t))}function Nu(e,t,n){return n="function"==typeof n?n:i,Qi(e,t,qo(t),n)}function Ru(e){return Du(e)&&e!=+e}function Ou(e){if(ps(e))throw new $e(s);return Ji(e)}function Iu(e){return null===e}function Lu(e){return null==e}function Du(e){return"number"==typeof e||Au(e)&&Bi(e)==ee}function Pu(e){if(!Au(e)||Bi(e)!=ne)return!1;var t=St(e);if(null===t)return!0;var n=ht.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&dt.call(n)==gt}var Mu=vn?Yn(vn):Zi;function Bu(e){return Su(e)&&e>=-B&&e<=B}var Fu=bn?Yn(bn):ea;function $u(e){return"string"==typeof e||!cu(e)&&Au(e)&&Bi(e)==se}function Uu(e){return"symbol"==typeof e||Au(e)&&Bi(e)==le}var ju=yn?Yn(yn):ta;function Vu(e){return e===i}function Ku(e){return Au(e)&&Jo(e)==ue}function Gu(e){return Au(e)&&Bi(e)==de}var Hu=Co(aa),zu=Co(function(e,t){return e<=t});function qu(e){if(!e)return[];if(du(e))return $u(e)?vr(e):io(e);if(Tt&&e[Tt])return lr(e[Tt]());var t=Jo(e),n=t==Z?cr:t==oe?hr:Vd;return n(e)}function Xu(e){if(!e)return 0===e?e:0;if(e=Qu(e),e===M||e===-M){var t=e<0?-1:1;return t*F}return e===e?e:0}function Wu(e){var t=Xu(e),n=t%1;return t===t?n?t-n:t:0}function Yu(e){return e?vi(Wu(e),0,U):0}function Qu(e){if("number"==typeof e)return e;if(Uu(e))return $;if(xu(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=xu(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Wn(e);var n=We.test(e);return n||Qe.test(e)?an(e.slice(2),n?2:8):Xe.test(e)?$:+e}function Ju(e){return ao(e,kd(e))}function Zu(e){return e?vi(Wu(e),-B,B):0===e?e:0}function ed(e){return null==e?"":Da(e)}var td=co(function(e,t){if(fs(t)||du(t))ao(t,Sd(t),e);else for(var n in t)ht.call(t,n)&&ui(e,n,t[n])}),nd=co(function(e,t){ao(t,kd(t),e)}),rd=co(function(e,t,n,r){ao(t,kd(t),e,r)}),id=co(function(e,t,n,r){ao(t,Sd(t),e,r)}),ad=$o(gi);function od(e,t){var n=xr(e);return null==t?n:pi(n,t)}var sd=wa(function(e,t){e=rt(e);var n=-1,r=t.length,a=r>2?t[2]:i;a&&ls(t[0],t[1],a)&&(r=1);while(++n<r){var o=t[n],s=kd(o),l=-1,c=s.length;while(++l<c){var u=s[l],d=e[u];(d===i||au(d,ct[u])&&!ht.call(e,u))&&(e[u]=o[u])}}return e}),ld=wa(function(e){return e.push(i,Do),_n(Td,i,e)});function cd(e,t){return Mn(e,Ho(t,3),Ii)}function ud(e,t){return Mn(e,Ho(t,3),Li)}function dd(e,t){return null==e?e:Ri(e,Ho(t,3),kd)}function hd(e,t){return null==e?e:Oi(e,Ho(t,3),kd)}function pd(e,t){return e&&Ii(e,Ho(t,3))}function fd(e,t){return e&&Li(e,Ho(t,3))}function md(e){return null==e?[]:Di(e,Sd(e))}function gd(e){return null==e?[]:Di(e,kd(e))}function vd(e,t,n){var r=null==e?i:Pi(e,t);return r===i?n:r}function bd(e,t){return null!=e&&ts(e,t,$i)}function yd(e,t){return null!=e&&ts(e,t,Ui)}var _d=wo(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=mt.call(t)),e[t]=n},Ch(Oh)),wd=wo(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=mt.call(t)),ht.call(e,t)?e[t].push(n):e[t]=[n]},Ho),Ed=wa(Gi);function Sd(e){return du(e)?ai(e):ra(e)}function kd(e){return du(e)?ai(e,!0):ia(e)}function xd(e,t){var n={};return t=Ho(t,3),Ii(e,function(e,r,i){mi(n,t(e,r,i),e)}),n}function Ad(e,t){var n={};return t=Ho(t,3),Ii(e,function(e,r,i){mi(n,r,t(e,r,i))}),n}var Cd=co(function(e,t,n){ca(e,t,n)}),Td=co(function(e,t,n,r){ca(e,t,n,r)}),Nd=$o(function(e,t){var n={};if(null==e)return n;var r=!1;t=Tn(t,function(t){return t=Ga(t,e),r||(r=t.length>1),t}),ao(e,jo(e),n),r&&(n=bi(n,f|m|g,Po));var i=t.length;while(i--)Ma(n,t[i]);return n});function Rd(e,t){return Id(e,Vc(Ho(t)))}var Od=$o(function(e,t){return null==e?{}:pa(e,t)});function Id(e,t){if(null==e)return{};var n=Tn(jo(e),function(e){return[e]});return t=Ho(t),fa(e,n,function(e,n){return t(e,n[0])})}function Ld(e,t,n){t=Ga(t,e);var r=-1,a=t.length;a||(a=1,e=i);while(++r<a){var o=null==e?i:e[Is(t[r])];o===i&&(r=a,o=n),e=Eu(o)?o.call(e):o}return e}function Dd(e,t,n){return null==e?e:ka(e,t,n)}function Pd(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:ka(e,t,n,r)}var Md=Oo(Sd),Bd=Oo(kd);function Fd(e,t,n){var r=cu(e),i=r||fu(e)||ju(e);if(t=Ho(t,4),null==n){var a=e&&e.constructor;n=i?r?new a:[]:xu(e)&&Eu(a)?xr(St(e)):{}}return(i?En:Ii)(e,function(e,r,i){return t(n,e,r,i)}),n}function $d(e,t){return null==e||Ma(e,t)}function Ud(e,t,n){return null==e?e:Ba(e,t,Ka(n))}function jd(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Ba(e,t,Ka(n),r)}function Vd(e){return null==e?[]:Qn(e,Sd(e))}function Kd(e){return null==e?[]:Qn(e,kd(e))}function Gd(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=Qu(n),n=n===n?n:0),t!==i&&(t=Qu(t),t=t===t?t:0),vi(Qu(e),t,n)}function Hd(e,t,n){return t=Xu(t),n===i?(n=t,t=0):n=Xu(n),e=Qu(e),ji(e,t,n)}function zd(e,t,n){if(n&&"boolean"!=typeof n&&ls(e,t,n)&&(t=n=i),n===i&&("boolean"==typeof t?(n=t,t=i):"boolean"==typeof e&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=Xu(e),t===i?(t=e,e=0):t=Xu(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var a=qt();return Vt(e+a*(t-e+rn("1e-"+((a+"").length-1))),t)}return ba(e,t)}var qd=mo(function(e,t,n){return t=t.toLowerCase(),e+(n?Xd(t):t)});function Xd(e){return wh(ed(e).toLowerCase())}function Wd(e){return e=ed(e),e&&e.replace(Ze,nr).replace(Gt,"")}function Yd(e,t,n){e=ed(e),t=Da(t);var r=e.length;n=n===i?r:vi(Wu(n),0,r);var a=n;return n-=t.length,n>=0&&e.slice(n,a)==t}function Qd(e){return e=ed(e),e&&Ne.test(e)?e.replace(Ce,rr):e}function Jd(e){return e=ed(e),e&&Be.test(e)?e.replace(Me,"\\$&"):e}var Zd=mo(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),eh=mo(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),th=fo("toLowerCase");function nh(e,t,n){e=ed(e),t=Wu(t);var r=t?gr(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return ko(Pt(i),n)+e+ko(Dt(i),n)}function rh(e,t,n){e=ed(e),t=Wu(t);var r=t?gr(e):0;return t&&r<t?e+ko(t-r,n):e}function ih(e,t,n){e=ed(e),t=Wu(t);var r=t?gr(e):0;return t&&r<t?ko(t-r,n)+e:e}function ah(e,t,n){return n||null==t?t=0:t&&(t=+t),zt(ed(e).replace(Fe,""),t||0)}function oh(e,t,n){return t=(n?ls(e,t,n):t===i)?1:Wu(t),_a(ed(e),t)}function sh(){var e=arguments,t=ed(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var lh=mo(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});function ch(e,t,n){return n&&"number"!=typeof n&&ls(e,t,n)&&(t=n=i),n=n===i?U:n>>>0,n?(e=ed(e),e&&("string"==typeof t||null!=t&&!Mu(t))&&(t=Da(t),!t&&or(e))?za(vr(e),0,n):e.split(t,n)):[]}var uh=mo(function(e,t,n){return e+(n?" ":"")+wh(t)});function dh(e,t,n){return e=ed(e),n=null==n?0:vi(Wu(n),0,e.length),t=Da(t),e.slice(n,n+t.length)==t}function hh(e,t,n){var r=Sr.templateSettings;n&&ls(e,t,n)&&(t=i),e=ed(e),t=id({},t,r,Lo);var a=id({},t.imports,r.imports,Lo),o=Sd(a),s=Qn(a,o);En(o,function(e){if(Ge.test(e))throw new $e(u)});var l,d,h=0,p=t.interpolate||et,f="__p += '",m=it((t.escape||et).source+"|"+p.source+"|"+(p===Ie?ze:et).source+"|"+(t.evaluate||et).source+"|$","g"),g="//# sourceURL="+(ht.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Yt+"]")+"\n";e.replace(m,function(t,n,r,i,a,o){return r||(r=i),f+=e.slice(h,o).replace(tt,ir),n&&(l=!0,f+="' +\n__e("+n+") +\n'"),a&&(d=!0,f+="';\n"+a+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),h=o+t.length,t}),f+="';\n";var v=ht.call(t,"variable")&&t.variable;if(v){if(Ge.test(v))throw new $e(c)}else f="with (obj) {\n"+f+"\n}\n";f=(d?f.replace(Se,""):f).replace(ke,"$1").replace(xe,"$1;"),f="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(l?", __e = _.escape":"")+(d?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var b=Sh(function(){return Ke(o,g+"return "+f).apply(i,s)});if(b.source=f,_u(b))throw b;return b}function ph(e){return ed(e).toLowerCase()}function fh(e){return ed(e).toUpperCase()}function mh(e,t,n){if(e=ed(e),e&&(n||t===i))return Wn(e);if(!e||!(t=Da(t)))return e;var r=vr(e),a=vr(t),o=Zn(r,a),s=er(r,a)+1;return za(r,o,s).join("")}function gh(e,t,n){if(e=ed(e),e&&(n||t===i))return e.slice(0,br(e)+1);if(!e||!(t=Da(t)))return e;var r=vr(e),a=er(r,vr(t))+1;return za(r,0,a).join("")}function vh(e,t,n){if(e=ed(e),e&&(n||t===i))return e.replace(Fe,"");if(!e||!(t=Da(t)))return e;var r=vr(e),a=Zn(r,vr(t));return za(r,a).join("")}function bh(e,t){var n=N,r=R;if(xu(t)){var a="separator"in t?t.separator:a;n="length"in t?Wu(t.length):n,r="omission"in t?Da(t.omission):r}e=ed(e);var o=e.length;if(or(e)){var s=vr(e);o=s.length}if(n>=o)return e;var l=n-gr(r);if(l<1)return r;var c=s?za(s,0,l).join(""):e.slice(0,l);if(a===i)return c+r;if(s&&(l+=c.length-l),Mu(a)){if(e.slice(l).search(a)){var u,d=c;a.global||(a=it(a.source,ed(qe.exec(a))+"g")),a.lastIndex=0;while(u=a.exec(d))var h=u.index;c=c.slice(0,h===i?l:h)}}else if(e.indexOf(Da(a),l)!=l){var p=c.lastIndexOf(a);p>-1&&(c=c.slice(0,p))}return c+r}function yh(e){return e=ed(e),e&&Te.test(e)?e.replace(Ae,yr):e}var _h=mo(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),wh=fo("toUpperCase");function Eh(e,t,n){return e=ed(e),t=n?i:t,t===i?sr(e)?Er(e):Pn(e):e.match(t)||[]}var Sh=wa(function(e,t){try{return _n(e,i,t)}catch(n){return _u(n)?n:new $e(n)}}),kh=$o(function(e,t){return En(t,function(t){t=Is(t),mi(e,t,Lc(e[t],e))}),e});function xh(e){var t=null==e?0:e.length,n=Ho();return e=t?Tn(e,function(e){if("function"!=typeof e[1])throw new ot(l);return[n(e[0]),e[1]]}):[],wa(function(n){var r=-1;while(++r<t){var i=e[r];if(_n(i[0],this,n))return _n(i[1],this,n)}})}function Ah(e){return yi(bi(e,f))}function Ch(e){return function(){return e}}function Th(e,t){return null==e||e!==e?t:e}var Nh=yo(),Rh=yo(!0);function Oh(e){return e}function Ih(e){return na("function"==typeof e?e:bi(e,f))}function Lh(e){return sa(bi(e,f))}function Dh(e,t){return la(e,bi(t,f))}var Ph=wa(function(e,t){return function(n){return Gi(n,e,t)}}),Mh=wa(function(e,t){return function(n){return Gi(e,n,t)}});function Bh(e,t,n){var r=Sd(t),i=Di(t,r);null!=n||xu(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Di(t,Sd(t)));var a=!(xu(n)&&"chain"in n)||!!n.chain,o=Eu(e);return En(i,function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__),i=n.__actions__=io(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Nn([this.value()],arguments))})}),e}function Fh(){return ln._===this&&(ln._=vt),this}function $h(){}function Uh(e){return e=Wu(e),wa(function(t){return da(t,e)})}var jh=So(Tn),Vh=So(kn),Kh=So(In);function Gh(e){return cs(e)?Vn(Is(e)):ma(e)}function Hh(e){return function(t){return null==e?i:Pi(e,t)}}var zh=Ao(),qh=Ao(!0);function Xh(){return[]}function Wh(){return!1}function Yh(){return{}}function Qh(){return""}function Jh(){return!0}function Zh(e,t){if(e=Wu(e),e<1||e>B)return[];var n=U,r=Vt(e,U);t=Ho(t),e-=U;var i=qn(r,t);while(++n<e)t(n);return i}function ep(e){return cu(e)?Tn(e,Is):Uu(e)?[e]:io(Os(ed(e)))}function tp(e){var t=++pt;return ed(e)+t}var np=Eo(function(e,t){return e+t},0),rp=No("ceil"),ip=Eo(function(e,t){return e/t},1),ap=No("floor");function op(e){return e&&e.length?Ai(e,Oh,Fi):i}function sp(e,t){return e&&e.length?Ai(e,Ho(t,2),Fi):i}function lp(e){return jn(e,Oh)}function cp(e,t){return jn(e,Ho(t,2))}function up(e){return e&&e.length?Ai(e,Oh,aa):i}function dp(e,t){return e&&e.length?Ai(e,Ho(t,2),aa):i}var hp=Eo(function(e,t){return e*t},1),pp=No("round"),fp=Eo(function(e,t){return e-t},0);function mp(e){return e&&e.length?zn(e,Oh):0}function gp(e,t){return e&&e.length?zn(e,Ho(t,2)):0}return Sr.after=Rc,Sr.ary=Oc,Sr.assign=td,Sr.assignIn=nd,Sr.assignInWith=rd,Sr.assignWith=id,Sr.at=ad,Sr.before=Ic,Sr.bind=Lc,Sr.bindAll=kh,Sr.bindKey=Dc,Sr.castArray=Zc,Sr.chain=zl,Sr.chunk=Ms,Sr.compact=Bs,Sr.concat=Fs,Sr.cond=xh,Sr.conforms=Ah,Sr.constant=Ch,Sr.countBy=rc,Sr.create=od,Sr.curry=Pc,Sr.curryRight=Mc,Sr.debounce=Bc,Sr.defaults=sd,Sr.defaultsDeep=ld,Sr.defer=Fc,Sr.delay=$c,Sr.difference=$s,Sr.differenceBy=Us,Sr.differenceWith=js,Sr.drop=Vs,Sr.dropRight=Ks,Sr.dropRightWhile=Gs,Sr.dropWhile=Hs,Sr.fill=zs,Sr.filter=ac,Sr.flatMap=lc,Sr.flatMapDeep=cc,Sr.flatMapDepth=uc,Sr.flatten=Ws,Sr.flattenDeep=Ys,Sr.flattenDepth=Qs,Sr.flip=Uc,Sr.flow=Nh,Sr.flowRight=Rh,Sr.fromPairs=Js,Sr.functions=md,Sr.functionsIn=gd,Sr.groupBy=pc,Sr.initial=tl,Sr.intersection=nl,Sr.intersectionBy=rl,Sr.intersectionWith=il,Sr.invert=_d,Sr.invertBy=wd,Sr.invokeMap=mc,Sr.iteratee=Ih,Sr.keyBy=gc,Sr.keys=Sd,Sr.keysIn=kd,Sr.map=vc,Sr.mapKeys=xd,Sr.mapValues=Ad,Sr.matches=Lh,Sr.matchesProperty=Dh,Sr.memoize=jc,Sr.merge=Cd,Sr.mergeWith=Td,Sr.method=Ph,Sr.methodOf=Mh,Sr.mixin=Bh,Sr.negate=Vc,Sr.nthArg=Uh,Sr.omit=Nd,Sr.omitBy=Rd,Sr.once=Kc,Sr.orderBy=bc,Sr.over=jh,Sr.overArgs=Gc,Sr.overEvery=Vh,Sr.overSome=Kh,Sr.partial=Hc,Sr.partialRight=zc,Sr.partition=yc,Sr.pick=Od,Sr.pickBy=Id,Sr.property=Gh,Sr.propertyOf=Hh,Sr.pull=cl,Sr.pullAll=ul,Sr.pullAllBy=dl,Sr.pullAllWith=hl,Sr.pullAt=pl,Sr.range=zh,Sr.rangeRight=qh,Sr.rearg=qc,Sr.reject=Ec,Sr.remove=fl,Sr.rest=Xc,Sr.reverse=ml,Sr.sampleSize=kc,Sr.set=Dd,Sr.setWith=Pd,Sr.shuffle=xc,Sr.slice=gl,Sr.sortBy=Tc,Sr.sortedUniq=Sl,Sr.sortedUniqBy=kl,Sr.split=ch,Sr.spread=Wc,Sr.tail=xl,Sr.take=Al,Sr.takeRight=Cl,Sr.takeRightWhile=Tl,Sr.takeWhile=Nl,Sr.tap=ql,Sr.throttle=Yc,Sr.thru=Xl,Sr.toArray=qu,Sr.toPairs=Md,Sr.toPairsIn=Bd,Sr.toPath=ep,Sr.toPlainObject=Ju,Sr.transform=Fd,Sr.unary=Qc,Sr.union=Rl,Sr.unionBy=Ol,Sr.unionWith=Il,Sr.uniq=Ll,Sr.uniqBy=Dl,Sr.uniqWith=Pl,Sr.unset=$d,Sr.unzip=Ml,Sr.unzipWith=Bl,Sr.update=Ud,Sr.updateWith=jd,Sr.values=Vd,Sr.valuesIn=Kd,Sr.without=Fl,Sr.words=Eh,Sr.wrap=Jc,Sr.xor=$l,Sr.xorBy=Ul,Sr.xorWith=jl,Sr.zip=Vl,Sr.zipObject=Kl,Sr.zipObjectDeep=Gl,Sr.zipWith=Hl,Sr.entries=Md,Sr.entriesIn=Bd,Sr.extend=nd,Sr.extendWith=rd,Bh(Sr,Sr),Sr.add=np,Sr.attempt=Sh,Sr.camelCase=qd,Sr.capitalize=Xd,Sr.ceil=rp,Sr.clamp=Gd,Sr.clone=eu,Sr.cloneDeep=nu,Sr.cloneDeepWith=ru,Sr.cloneWith=tu,Sr.conformsTo=iu,Sr.deburr=Wd,Sr.defaultTo=Th,Sr.divide=ip,Sr.endsWith=Yd,Sr.eq=au,Sr.escape=Qd,Sr.escapeRegExp=Jd,Sr.every=ic,Sr.find=oc,Sr.findIndex=qs,Sr.findKey=cd,Sr.findLast=sc,Sr.findLastIndex=Xs,Sr.findLastKey=ud,Sr.floor=ap,Sr.forEach=dc,Sr.forEachRight=hc,Sr.forIn=dd,Sr.forInRight=hd,Sr.forOwn=pd,Sr.forOwnRight=fd,Sr.get=vd,Sr.gt=ou,Sr.gte=su,Sr.has=bd,Sr.hasIn=yd,Sr.head=Zs,Sr.identity=Oh,Sr.includes=fc,Sr.indexOf=el,Sr.inRange=Hd,Sr.invoke=Ed,Sr.isArguments=lu,Sr.isArray=cu,Sr.isArrayBuffer=uu,Sr.isArrayLike=du,Sr.isArrayLikeObject=hu,Sr.isBoolean=pu,Sr.isBuffer=fu,Sr.isDate=mu,Sr.isElement=gu,Sr.isEmpty=vu,Sr.isEqual=bu,Sr.isEqualWith=yu,Sr.isError=_u,Sr.isFinite=wu,Sr.isFunction=Eu,Sr.isInteger=Su,Sr.isLength=ku,Sr.isMap=Cu,Sr.isMatch=Tu,Sr.isMatchWith=Nu,Sr.isNaN=Ru,Sr.isNative=Ou,Sr.isNil=Lu,Sr.isNull=Iu,Sr.isNumber=Du,Sr.isObject=xu,Sr.isObjectLike=Au,Sr.isPlainObject=Pu,Sr.isRegExp=Mu,Sr.isSafeInteger=Bu,Sr.isSet=Fu,Sr.isString=$u,Sr.isSymbol=Uu,Sr.isTypedArray=ju,Sr.isUndefined=Vu,Sr.isWeakMap=Ku,Sr.isWeakSet=Gu,Sr.join=al,Sr.kebabCase=Zd,Sr.last=ol,Sr.lastIndexOf=sl,Sr.lowerCase=eh,Sr.lowerFirst=th,Sr.lt=Hu,Sr.lte=zu,Sr.max=op,Sr.maxBy=sp,Sr.mean=lp,Sr.meanBy=cp,Sr.min=up,Sr.minBy=dp,Sr.stubArray=Xh,Sr.stubFalse=Wh,Sr.stubObject=Yh,Sr.stubString=Qh,Sr.stubTrue=Jh,Sr.multiply=hp,Sr.nth=ll,Sr.noConflict=Fh,Sr.noop=$h,Sr.now=Nc,Sr.pad=nh,Sr.padEnd=rh,Sr.padStart=ih,Sr.parseInt=ah,Sr.random=zd,Sr.reduce=_c,Sr.reduceRight=wc,Sr.repeat=oh,Sr.replace=sh,Sr.result=Ld,Sr.round=pp,Sr.runInContext=e,Sr.sample=Sc,Sr.size=Ac,Sr.snakeCase=lh,Sr.some=Cc,Sr.sortedIndex=vl,Sr.sortedIndexBy=bl,Sr.sortedIndexOf=yl,Sr.sortedLastIndex=_l,Sr.sortedLastIndexBy=wl,Sr.sortedLastIndexOf=El,Sr.startCase=uh,Sr.startsWith=dh,Sr.subtract=fp,Sr.sum=mp,Sr.sumBy=gp,Sr.template=hh,Sr.times=Zh,Sr.toFinite=Xu,Sr.toInteger=Wu,Sr.toLength=Yu,Sr.toLower=ph,Sr.toNumber=Qu,Sr.toSafeInteger=Zu,Sr.toString=ed,Sr.toUpper=fh,Sr.trim=mh,Sr.trimEnd=gh,Sr.trimStart=vh,Sr.truncate=bh,Sr.unescape=yh,Sr.uniqueId=tp,Sr.upperCase=_h,Sr.upperFirst=wh,Sr.each=dc,Sr.eachRight=hc,Sr.first=Zs,Bh(Sr,function(){var e={};return Ii(Sr,function(t,n){ht.call(Sr.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),Sr.VERSION=a,En(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){Sr[e].placeholder=Sr}),En(["drop","take"],function(e,t){Tr.prototype[e]=function(n){n=n===i?1:jt(Wu(n),0);var r=this.__filtered__&&!t?new Tr(this):this.clone();return r.__filtered__?r.__takeCount__=Vt(n,r.__takeCount__):r.__views__.push({size:Vt(n,U),type:e+(r.__dir__<0?"Right":"")}),r},Tr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),En(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n==L||n==P;Tr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Ho(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),En(["head","last"],function(e,t){var n="take"+(t?"Right":"");Tr.prototype[e]=function(){return this[n](1).value()[0]}}),En(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");Tr.prototype[e]=function(){return this.__filtered__?new Tr(this):this[n](1)}}),Tr.prototype.compact=function(){return this.filter(Oh)},Tr.prototype.find=function(e){return this.filter(e).head()},Tr.prototype.findLast=function(e){return this.reverse().find(e)},Tr.prototype.invokeMap=wa(function(e,t){return"function"==typeof e?new Tr(this):this.map(function(n){return Gi(n,e,t)})}),Tr.prototype.reject=function(e){return this.filter(Vc(Ho(e)))},Tr.prototype.slice=function(e,t){e=Wu(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Tr(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=Wu(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},Tr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Tr.prototype.toArray=function(){return this.take(U)},Ii(Tr.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),a=Sr[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);a&&(Sr.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof Tr,c=s[0],u=l||cu(t),d=function(e){var t=a.apply(Sr,Nn([e],s));return r&&h?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var h=this.__chain__,p=!!this.__actions__.length,f=o&&!h,m=l&&!p;if(!o&&u){t=m?t:new Tr(this);var g=e.apply(t,s);return g.__actions__.push({func:Xl,args:[d],thisArg:i}),new Cr(g,h)}return f&&m?e.apply(this,s):(g=this.thru(d),f?r?g.value()[0]:g.value():g)})}),En(["pop","push","shift","sort","splice","unshift"],function(e){var t=st[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Sr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(cu(i)?i:[],e)}return this[n](function(n){return t.apply(cu(n)?n:[],e)})}}),Ii(Tr.prototype,function(e,t){var n=Sr[t];if(n){var r=n.name+"";ht.call(un,r)||(un[r]=[]),un[r].push({name:t,func:n})}}),un[_o(i,_).name]=[{name:"wrapper",func:i}],Tr.prototype.clone=Nr,Tr.prototype.reverse=Rr,Tr.prototype.value=Or,Sr.prototype.at=Wl,Sr.prototype.chain=Yl,Sr.prototype.commit=Ql,Sr.prototype.next=Jl,Sr.prototype.plant=ec,Sr.prototype.reverse=tc,Sr.prototype.toJSON=Sr.prototype.valueOf=Sr.prototype.value=nc,Sr.prototype.first=Sr.prototype.head,Tt&&(Sr.prototype[Tt]=Zl),Sr},kr=Sr();ln._=kr,r=function(){return kr}.call(t,n,t,e),r===i||(e.exports=r)}.call(this)},69011:function(e,t,n){var r=n(68250),i="Expected a function";function a(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(i);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(a.Cache||r),n}a.Cache=r,e.exports=a},82451:function(e,t,n){var r=n(40091),i=n(77848),a=i(function(e,t,n){r(e,t,n)});e.exports=a},48875:function(e,t,n){var r=n(40091),i=n(77848),a=i(function(e,t,n,i){r(e,t,n,i)});e.exports=a},21517:function(e){var t="Expected a function";function n(e){if("function"!=typeof e)throw new TypeError(t);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}e.exports=n},79071:function(e){function t(){}e.exports=t},94495:function(e,t,n){var r=n(78942),i=function(){return r.Date.now()};e.exports=i},38403:function(e,t,n){var r=n(3334),i=n(21517),a=n(16735);function o(e,t){return a(e,i(r(t)))}e.exports=o},74874:function(e,t,n){var r=n(90242),i=n(41439),a=i(function(e,t){return null==e?{}:r(e,t)});e.exports=a},16735:function(e,t,n){var r=n(65111),i=n(3334),a=n(35031),o=n(93650);function s(e,t){if(null==e)return{};var n=r(o(e),function(e){return[e]});return t=i(t),a(e,n,function(e,n){return t(e,n[0])})}e.exports=s},43282:function(e,t,n){var r=n(12762),i=n(98880),a=n(65187),o=n(66040);function s(e){return a(e)?r(o(e)):i(e)}e.exports=s},95479:function(e,t,n){var r=n(93640),i=n(5485),a=r(function(e,t,n){return e+(n?" ":"")+i(t)});e.exports=a},99306:function(e){function t(){return[]}e.exports=t},34772:function(e){function t(){return!1}e.exports=t},97331:function(e,t,n){var r=n(12784),i=n(41580),a="Expected a function";function o(e,t,n){var o=!0,s=!0;if("function"!=typeof e)throw new TypeError(a);return i(n)&&(o="leading"in n?!!n.leading:o,s="trailing"in n?!!n.trailing:s),r(e,t,{leading:o,maxWait:t,trailing:s})}e.exports=o},43301:function(e,t,n){var r=n(6131),i=1/0,a=17976931348623157e292;function o(e){if(!e)return 0===e?e:0;if(e=r(e),e===i||e===-i){var t=e<0?-1:1;return t*a}return e===e?e:0}e.exports=o},67642:function(e,t,n){var r=n(43301);function i(e){var t=r(e),n=t%1;return t===t?n?t-n:t:0}e.exports=i},6131:function(e,t,n){var r=n(86403),i=n(41580),a=n(51187),o=NaN,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;function d(e){if("number"==typeof e)return e;if(a(e))return o;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||c.test(e)?u(e.slice(2),n?2:8):s.test(e)?o:+e}e.exports=d},64207:function(e,t,n){var r=n(39032),i=n(25288);function a(e){return r(e,i(e))}e.exports=a},95243:function(e,t,n){var r=n(52291);function i(e){return null==e?"":r(e)}e.exports=i},2011:function(e,t,n){var r=n(79968),i=n(39747),a=n(47170),o=n(3334),s=n(74784),l=n(53142),c=n(75853),u=n(93655),d=n(41580),h=n(8666);function p(e,t,n){var p=l(e),f=p||c(e)||h(e);if(t=o(t,4),null==n){var m=e&&e.constructor;n=f?p?new m:[]:d(e)&&u(m)?i(s(e)):{}}return(f?r:a)(e,function(e,r,i){return t(n,e,r,i)}),n}e.exports=p},82438:function(e,t,n){var r=n(15630);function i(e){return e&&e.length?r(e):[]}e.exports=i},5485:function(e,t,n){var r=n(4326),i=r("toUpperCase");e.exports=i},39817:function(e,t,n){var r=n(3905),i=n(81211);function a(e){return null==e?[]:r(e,i(e))}e.exports=a},39850:function(e,t,n){var r=n(39546),i=n(15813),a=n(95243),o=n(10482);function s(e,t,n){return e=a(e),t=n?void 0:t,void 0===t?i(e)?o(e):r(e):e.match(t)||[]}e.exports=s},13182:function(e,t,n){var r=n(79847),i=n(23945),a=n(80214),o=n(65406),s=i(function(e){return a(r(e,o))});e.exports=s},58479:function(e){"use strict";e.exports=Math.abs},18449:function(e){"use strict";e.exports=Math.floor},62422:function(e){"use strict";e.exports=Number.isNaN||function(e){return e!==e}},88129:function(e){"use strict";e.exports=Math.max},22387:function(e){"use strict";e.exports=Math.min},85865:function(e){"use strict";e.exports=Math.pow},1319:function(e){"use strict";e.exports=Math.round},36882:function(e,t,n){"use strict";var r=n(62422);e.exports=function(e){return r(e)||0===e?e:e<0?-1:1}},33486:function(e,t,n){"use strict";var r=n(4364);
|
||
/*!
|
||
* The buffer module from node.js, for the browser.
|
||
*
|
||
* @author Feross Aboukhadijeh <https://feross.org>
|
||
* @license MIT
|
||
*/
|
||
const i=n(7991),a=n(39318),o="function"===typeof Symbol&&"function"===typeof Symbol["for"]?Symbol["for"]("nodejs.util.inspect.custom"):null;t.hp=u,t.IS=50;const s=2147483647;function l(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}function c(e){if(e>s)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,n){if("number"===typeof e){if("string"===typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return f(e)}return d(e,t,n)}function d(e,t,n){if("string"===typeof e)return m(e,t);if(ArrayBuffer.isView(e))return v(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(se(e,ArrayBuffer)||e&&se(e.buffer,ArrayBuffer))return b(e,t,n);if("undefined"!==typeof SharedArrayBuffer&&(se(e,SharedArrayBuffer)||e&&se(e.buffer,SharedArrayBuffer)))return b(e,t,n);if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return u.from(r,t,n);const i=y(e);if(i)return i;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof e[Symbol.toPrimitive])return u.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function h(e){if("number"!==typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function p(e,t,n){return h(e),e<=0?c(e):void 0!==t?"string"===typeof n?c(e).fill(t,n):c(e).fill(t):c(e)}function f(e){return h(e),c(e<0?0:0|_(e))}function m(e,t){if("string"===typeof t&&""!==t||(t="utf8"),!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|E(e,t);let r=c(n);const i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}function g(e){const t=e.length<0?0:0|_(e.length),n=c(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function v(e){if(se(e,Uint8Array)){const t=new Uint8Array(e);return b(t.buffer,t.byteOffset,t.byteLength)}return g(e)}function b(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,u.prototype),r}function y(e){if(u.isBuffer(e)){const t=0|_(e.length),n=c(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!==typeof e.length||le(e.length)?c(0):g(e):"Buffer"===e.type&&Array.isArray(e.data)?g(e.data):void 0}function _(e){if(e>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|e}function w(e){return+e!=e&&0,u.alloc(+e)}function E(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||se(e,ArrayBuffer))return e.byteLength;if("string"!==typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return ne(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return ae(e).length;default:if(i)return r?-1:ne(e).length;t=(""+t).toLowerCase(),i=!0}}function S(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return F(this,t,n);case"utf8":case"utf-8":return L(this,t,n);case"ascii":return M(this,t,n);case"latin1":case"binary":return B(this,t,n);case"base64":return I(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function k(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function x(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,le(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:A(e,t,n,r,i);if("number"===typeof t)return t&=255,"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):A(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function A(e,t,n,r,i){let a,o=1,s=e.length,l=t.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,l/=2,n/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){let r=-1;for(a=n;a<s;a++)if(c(e,a)===c(t,-1===r?0:a-r)){if(-1===r&&(r=a),a-r+1===l)return r*o}else-1!==r&&(a-=a-r),r=-1}else for(n+l>s&&(n=s-l),a=n;a>=0;a--){let n=!0;for(let r=0;r<l;r++)if(c(e,a+r)!==c(t,r)){n=!1;break}if(n)return a}return-1}function C(e,t,n,r){n=Number(n)||0;const i=e.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;const a=t.length;let o;for(r>a/2&&(r=a/2),o=0;o<r;++o){const r=parseInt(t.substr(2*o,2),16);if(le(r))return o;e[n+o]=r}return o}function T(e,t,n,r){return oe(ne(t,e.length-n),e,n,r)}function N(e,t,n,r){return oe(re(t),e,n,r)}function R(e,t,n,r){return oe(ae(t),e,n,r)}function O(e,t,n,r){return oe(ie(t,e.length-n),e,n,r)}function I(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function L(e,t,n){n=Math.min(e.length,n);const r=[];let i=t;while(i<n){const t=e[i];let a=null,o=t>239?4:t>223?3:t>191?2:1;if(i+o<=n){let n,r,s,l;switch(o){case 1:t<128&&(a=t);break;case 2:n=e[i+1],128===(192&n)&&(l=(31&t)<<6|63&n,l>127&&(a=l));break;case 3:n=e[i+1],r=e[i+2],128===(192&n)&&128===(192&r)&&(l=(15&t)<<12|(63&n)<<6|63&r,l>2047&&(l<55296||l>57343)&&(a=l));break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],128===(192&n)&&128===(192&r)&&128===(192&s)&&(l=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s,l>65535&&l<1114112&&(a=l))}}null===a?(a=65533,o=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|1023&a),r.push(a),i+=o}return P(r)}u.TYPED_ARRAY_SUPPORT=l(),u.TYPED_ARRAY_SUPPORT||"undefined"===typeof r||"function"!==typeof r.error||r.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."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(e,t,n){return d(e,t,n)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(e,t,n){return p(e,t,n)},u.allocUnsafe=function(e){return f(e)},u.allocUnsafeSlow=function(e){return f(e)},u.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==u.prototype},u.compare=function(e,t){if(se(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),se(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},u.isEncoding=function(e){switch(String(e).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}},u.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const r=u.allocUnsafe(t);let i=0;for(n=0;n<e.length;++n){let t=e[n];if(se(t,Uint8Array))i+t.length>r.length?(u.isBuffer(t)||(t=u.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else{if(!u.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,i)}i+=t.length}return r},u.byteLength=E,u.prototype._isBuffer=!0,u.prototype.swap16=function(){const e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)k(this,t,t+1);return this},u.prototype.swap32=function(){const e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)k(this,t,t+3),k(this,t+1,t+2);return this},u.prototype.swap64=function(){const e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)k(this,t,t+7),k(this,t+1,t+6),k(this,t+2,t+5),k(this,t+3,t+4);return this},u.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?L(this,0,e):S.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){let e="";const n=t.IS;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},o&&(u.prototype[o]=u.prototype.inspect),u.prototype.compare=function(e,t,n,r,i){if(se(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;let a=i-r,o=n-t;const s=Math.min(a,o),l=this.slice(r,i),c=e.slice(t,n);for(let u=0;u<s;++u)if(l[u]!==c[u]){a=l[u],o=c[u];break}return a<o?-1:o<a?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return x(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return x(this,e,t,n,!1)},u.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let a=!1;for(;;)switch(r){case"hex":return C(this,e,t,n);case"utf8":case"utf-8":return T(this,e,t,n);case"ascii":case"latin1":case"binary":return N(this,e,t,n);case"base64":return R(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const D=4096;function P(e){const t=e.length;if(t<=D)return String.fromCharCode.apply(String,e);let n="",r=0;while(r<t)n+=String.fromCharCode.apply(String,e.slice(r,r+=D));return n}function M(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function B(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function F(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i="";for(let a=t;a<n;++a)i+=ce[e[a]];return i}function $(e,t,n){const r=e.slice(t,n);let i="";for(let a=0;a<r.length-1;a+=2)i+=String.fromCharCode(r[a]+256*r[a+1]);return i}function U(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function j(e,t,n,r,i,a){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function V(e,t,n,r,i){Q(t,r,i,e,n,7);let a=Number(t&BigInt(4294967295));e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,n}function K(e,t,n,r,i){Q(t,r,i,e,n,7);let a=Number(t&BigInt(4294967295));e[n+7]=a,a>>=8,e[n+6]=a,a>>=8,e[n+5]=a,a>>=8,e[n+4]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=o,o>>=8,e[n+2]=o,o>>=8,e[n+1]=o,o>>=8,e[n]=o,n+8}function G(e,t,n,r,i,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function H(e,t,n,r,i){return t=+t,n>>>=0,i||G(e,t,n,4,34028234663852886e22,-34028234663852886e22),a.write(e,t,n,r,23,4),n+4}function z(e,t,n,r,i){return t=+t,n>>>=0,i||G(e,t,n,8,17976931348623157e292,-17976931348623157e292),a.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){const n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e);const r=this.subarray(e,t);return Object.setPrototypeOf(r,u.prototype),r},u.prototype.readUintLE=u.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||U(e,t,this.length);let r=this[e],i=1,a=0;while(++a<t&&(i*=256))r+=this[e+a]*i;return r},u.prototype.readUintBE=u.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||U(e,t,this.length);let r=this[e+--t],i=1;while(t>0&&(i*=256))r+=this[e+--t]*i;return r},u.prototype.readUint8=u.prototype.readUInt8=function(e,t){return e>>>=0,t||U(e,1,this.length),this[e]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(e,t){return e>>>=0,t||U(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(e,t){return e>>>=0,t||U(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(e,t){return e>>>=0,t||U(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(e,t){return e>>>=0,t||U(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readBigUInt64LE=ue(function(e){e>>>=0,J(e,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||Z(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))}),u.prototype.readBigUInt64BE=ue(function(e){e>>>=0,J(e,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||Z(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(i)}),u.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||U(e,t,this.length);let r=this[e],i=1,a=0;while(++a<t&&(i*=256))r+=this[e+a]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||U(e,t,this.length);let r=t,i=1,a=this[e+--r];while(r>0&&(i*=256))a+=this[e+--r]*i;return i*=128,a>=i&&(a-=Math.pow(2,8*t)),a},u.prototype.readInt8=function(e,t){return e>>>=0,t||U(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){e>>>=0,t||U(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){e>>>=0,t||U(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return e>>>=0,t||U(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return e>>>=0,t||U(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readBigInt64LE=ue(function(e){e>>>=0,J(e,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||Z(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)}),u.prototype.readBigInt64BE=ue(function(e){e>>>=0,J(e,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||Z(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)}),u.prototype.readFloatLE=function(e,t){return e>>>=0,t||U(e,4,this.length),a.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return e>>>=0,t||U(e,4,this.length),a.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return e>>>=0,t||U(e,8,this.length),a.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return e>>>=0,t||U(e,8,this.length),a.read(this,e,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){const r=Math.pow(2,8*n)-1;j(this,e,t,n,r,0)}let i=1,a=0;this[t]=255&e;while(++a<n&&(i*=256))this[t+a]=e/i&255;return t+n},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){const r=Math.pow(2,8*n)-1;j(this,e,t,n,r,0)}let i=n-1,a=1;this[t+i]=255&e;while(--i>=0&&(a*=256))this[t+i]=e/a&255;return t+n},u.prototype.writeUint8=u.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,1,255,0),this[t]=255&e,t+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeBigUInt64LE=ue(function(e,t=0){return V(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=ue(function(e,t=0){return K(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);j(this,e,t,n,r-1,-r)}let i=0,a=1,o=0;this[t]=255&e;while(++i<n&&(a*=256))e<0&&0===o&&0!==this[t+i-1]&&(o=1),this[t+i]=(e/a|0)-o&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);j(this,e,t,n,r-1,-r)}let i=n-1,a=1,o=0;this[t+i]=255&e;while(--i>=0&&(a*=256))e<0&&0===o&&0!==this[t+i+1]&&(o=1),this[t+i]=(e/a|0)-o&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||j(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},u.prototype.writeBigInt64LE=ue(function(e,t=0){return V(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=ue(function(e,t=0){return K(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeFloatLE=function(e,t,n){return H(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return H(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return z(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return z(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(!u.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);const i=r-n;return this===e&&"function"===typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},u.prototype.fill=function(e,t,n,r){if("string"===typeof e){if("string"===typeof t?(r=t,t=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){const t=e.charCodeAt(0);("utf8"===r&&t<128||"latin1"===r)&&(e=t)}}else"number"===typeof e?e&=255:"boolean"===typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(i=t;i<n;++i)this[i]=e;else{const a=u.isBuffer(e)?e:u.from(e,r),o=a.length;if(0===o)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=a[i%o]}return this};const q={};function X(e,t,n){q[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function W(e){let t="",n=e.length;const r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function Y(e,t,n){J(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||Z(t,e.length-(n+1))}function Q(e,t,n,r,i,a){if(e>n||e<t){const r="bigint"===typeof t?"n":"";let i;throw i=a>3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(a+1)}${r}`:`>= -(2${r} ** ${8*(a+1)-1}${r}) and < 2 ** ${8*(a+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new q.ERR_OUT_OF_RANGE("value",i,e)}Y(r,i,a)}function J(e,t){if("number"!==typeof e)throw new q.ERR_INVALID_ARG_TYPE(t,"number",e)}function Z(e,t,n){if(Math.floor(e)!==e)throw J(e,n),new q.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new q.ERR_BUFFER_OUT_OF_BOUNDS;throw new q.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}X("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),X("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),X("ERR_OUT_OF_RANGE",function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=W(String(n)):"bigint"===typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=W(i)),i+="n"),r+=` It must be ${t}. Received ${i}`,r},RangeError);const ee=/[^+/0-9A-Za-z-_]/g;function te(e){if(e=e.split("=")[0],e=e.trim().replace(ee,""),e.length<2)return"";while(e.length%4!==0)e+="=";return e}function ne(e,t){let n;t=t||1/0;const r=e.length;let i=null;const a=[];for(let o=0;o<r;++o){if(n=e.charCodeAt(o),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function re(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function ie(e,t){let n,r,i;const a=[];for(let o=0;o<e.length;++o){if((t-=2)<0)break;n=e.charCodeAt(o),r=n>>8,i=n%256,a.push(i),a.push(r)}return a}function ae(e){return i.toByteArray(te(e))}function oe(e,t,n,r){let i;for(i=0;i<r;++i){if(i+n>=t.length||i>=e.length)break;t[i+n]=e[i]}return i}function se(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function le(e){return e!==e}const ce=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function ue(e){return"undefined"===typeof BigInt?de:e}function de(){throw new Error("BigInt not supported")}},48660:function(e,t,n){var r="function"===typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,a=r&&i&&"function"===typeof i.get?i.get:null,o=r&&Map.prototype.forEach,s="function"===typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&l&&"function"===typeof l.get?l.get:null,u=s&&Set.prototype.forEach,d="function"===typeof WeakMap&&WeakMap.prototype,h=d?WeakMap.prototype.has:null,p="function"===typeof WeakSet&&WeakSet.prototype,f=p?WeakSet.prototype.has:null,m="function"===typeof WeakRef&&WeakRef.prototype,g=m?WeakRef.prototype.deref:null,v=Boolean.prototype.valueOf,b=Object.prototype.toString,y=Function.prototype.toString,_=String.prototype.match,w=String.prototype.slice,E=String.prototype.replace,S=String.prototype.toUpperCase,k=String.prototype.toLowerCase,x=RegExp.prototype.test,A=Array.prototype.concat,C=Array.prototype.join,T=Array.prototype.slice,N=Math.floor,R="function"===typeof BigInt?BigInt.prototype.valueOf:null,O=Object.getOwnPropertySymbols,I="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,L="function"===typeof Symbol&&"object"===typeof Symbol.iterator,D="function"===typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===L||"symbol")?Symbol.toStringTag:null,P=Object.prototype.propertyIsEnumerable,M=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function B(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||x.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof e){var r=e<0?-N(-e):N(e);if(r!==e){var i=String(r),a=w.call(t,i.length+1);return E.call(i,n,"$&_")+"."+E.call(E.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return E.call(t,n,"$&_")}var F=n(86973),$=F.custom,U=Z($)?$:null,j={__proto__:null,double:'"',single:"'"},V={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function K(e,t,n){var r=n.quoteStyle||t,i=j[r];return i+e+i}function G(e){return E.call(String(e),/"/g,""")}function H(e){return!D||!("object"===typeof e&&(D in e||"undefined"!==typeof e[D]))}function z(e){return"[object Array]"===re(e)&&H(e)}function q(e){return"[object Date]"===re(e)&&H(e)}function X(e){return"[object RegExp]"===re(e)&&H(e)}function W(e){return"[object Error]"===re(e)&&H(e)}function Y(e){return"[object String]"===re(e)&&H(e)}function Q(e){return"[object Number]"===re(e)&&H(e)}function J(e){return"[object Boolean]"===re(e)&&H(e)}function Z(e){if(L)return e&&"object"===typeof e&&e instanceof Symbol;if("symbol"===typeof e)return!0;if(!e||"object"!==typeof e||!I)return!1;try{return I.call(e),!0}catch(t){}return!1}function ee(e){if(!e||"object"!==typeof e||!R)return!1;try{return R.call(e),!0}catch(t){}return!1}e.exports=function e(t,r,i,s){var l=r||{};if(ne(l,"quoteStyle")&&!ne(j,l.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ne(l,"maxStringLength")&&("number"===typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var d=!ne(l,"customInspect")||l.customInspect;if("boolean"!==typeof d&&"symbol"!==d)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ne(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ne(l,"numericSeparator")&&"boolean"!==typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var h=l.numericSeparator;if("undefined"===typeof t)return"undefined";if(null===t)return"null";if("boolean"===typeof t)return t?"true":"false";if("string"===typeof t)return he(t,l);if("number"===typeof t){if(0===t)return 1/0/t>0?"0":"-0";var p=String(t);return h?B(t,p):p}if("bigint"===typeof t){var f=String(t)+"n";return h?B(t,f):f}var m="undefined"===typeof l.depth?5:l.depth;if("undefined"===typeof i&&(i=0),i>=m&&m>0&&"object"===typeof t)return z(t)?"[Array]":"[Object]";var g=be(l,i);if("undefined"===typeof s)s=[];else if(ae(s,t)>=0)return"[Circular]";function b(t,n,r){if(n&&(s=T.call(s),s.push(n)),r){var a={depth:l.depth};return ne(l,"quoteStyle")&&(a.quoteStyle=l.quoteStyle),e(t,a,i+1,s)}return e(t,l,i+1,s)}if("function"===typeof t&&!X(t)){var y=ie(t),_=_e(t,b);return"[Function"+(y?": "+y:" (anonymous)")+"]"+(_.length>0?" { "+C.call(_,", ")+" }":"")}if(Z(t)){var S=L?E.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):I.call(t);return"object"!==typeof t||L?S:fe(S)}if(de(t)){for(var x="<"+k.call(String(t.nodeName)),N=t.attributes||[],O=0;O<N.length;O++)x+=" "+N[O].name+"="+K(G(N[O].value),"double",l);return x+=">",t.childNodes&&t.childNodes.length&&(x+="..."),x+="</"+k.call(String(t.nodeName))+">",x}if(z(t)){if(0===t.length)return"[]";var $=_e(t,b);return g&&!ve($)?"["+ye($,g)+"]":"[ "+C.call($,", ")+" ]"}if(W(t)){var V=_e(t,b);return"cause"in Error.prototype||!("cause"in t)||P.call(t,"cause")?0===V.length?"["+String(t)+"]":"{ ["+String(t)+"] "+C.call(V,", ")+" }":"{ ["+String(t)+"] "+C.call(A.call("[cause]: "+b(t.cause),V),", ")+" }"}if("object"===typeof t&&d){if(U&&"function"===typeof t[U]&&F)return F(t,{depth:m-i});if("symbol"!==d&&"function"===typeof t.inspect)return t.inspect()}if(oe(t)){var H=[];return o&&o.call(t,function(e,n){H.push(b(n,t,!0)+" => "+b(e,t))}),ge("Map",a.call(t),H,g)}if(ce(t)){var te=[];return u&&u.call(t,function(e){te.push(b(e,t))}),ge("Set",c.call(t),te,g)}if(se(t))return me("WeakMap");if(ue(t))return me("WeakSet");if(le(t))return me("WeakRef");if(Q(t))return fe(b(Number(t)));if(ee(t))return fe(b(R.call(t)));if(J(t))return fe(v.call(t));if(Y(t))return fe(b(String(t)));if("undefined"!==typeof window&&t===window)return"{ [object Window] }";if("undefined"!==typeof globalThis&&t===globalThis||"undefined"!==typeof n.g&&t===n.g)return"{ [object globalThis] }";if(!q(t)&&!X(t)){var pe=_e(t,b),we=M?M(t)===Object.prototype:t instanceof Object||t.constructor===Object,Ee=t instanceof Object?"":"null prototype",Se=!we&&D&&Object(t)===t&&D in t?w.call(re(t),8,-1):Ee?"Object":"",ke=we||"function"!==typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"",xe=ke+(Se||Ee?"["+C.call(A.call([],Se||[],Ee||[]),": ")+"] ":"");return 0===pe.length?xe+"{}":g?xe+"{"+ye(pe,g)+"}":xe+"{ "+C.call(pe,", ")+" }"}return String(t)};var te=Object.prototype.hasOwnProperty||function(e){return e in this};function ne(e,t){return te.call(e,t)}function re(e){return b.call(e)}function ie(e){if(e.name)return e.name;var t=_.call(y.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function ae(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function oe(e){if(!a||!e||"object"!==typeof e)return!1;try{a.call(e);try{c.call(e)}catch(t){return!0}return e instanceof Map}catch(n){}return!1}function se(e){if(!h||!e||"object"!==typeof e)return!1;try{h.call(e,h);try{f.call(e,f)}catch(t){return!0}return e instanceof WeakMap}catch(n){}return!1}function le(e){if(!g||!e||"object"!==typeof e)return!1;try{return g.call(e),!0}catch(t){}return!1}function ce(e){if(!c||!e||"object"!==typeof e)return!1;try{c.call(e);try{a.call(e)}catch(t){return!0}return e instanceof Set}catch(n){}return!1}function ue(e){if(!f||!e||"object"!==typeof e)return!1;try{f.call(e,f);try{h.call(e,h)}catch(t){return!0}return e instanceof WeakSet}catch(n){}return!1}function de(e){return!(!e||"object"!==typeof e)&&("undefined"!==typeof HTMLElement&&e instanceof HTMLElement||"string"===typeof e.nodeName&&"function"===typeof e.getAttribute)}function he(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return he(w.call(e,0,t.maxStringLength),t)+r}var i=V[t.quoteStyle||"single"];i.lastIndex=0;var a=E.call(E.call(e,i,"\\$1"),/[\x00-\x1f]/g,pe);return K(a,"single",t)}function pe(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+S.call(t.toString(16))}function fe(e){return"Object("+e+")"}function me(e){return e+" { ? }"}function ge(e,t,n,r){var i=r?ye(n,r):C.call(n,", ");return e+" ("+t+") {"+i+"}"}function ve(e){for(var t=0;t<e.length;t++)if(ae(e[t],"\n")>=0)return!1;return!0}function be(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"===typeof e.indent&&e.indent>0))return null;n=C.call(Array(e.indent+1)," ")}return{base:n,prev:C.call(Array(t+1),n)}}function ye(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+C.call(e,","+n)+"\n"+t.prev}function _e(e,t){var n=z(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=ne(e,i)?t(e[i],e):""}var a,o="function"===typeof O?O(e):[];if(L){a={};for(var s=0;s<o.length;s++)a["$"+o[s]]=o[s]}for(var l in e)ne(e,l)&&(n&&String(Number(l))===l&&l<e.length||L&&a["$"+l]instanceof Symbol||(x.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e))));if("function"===typeof O)for(var c=0;c<o.length;c++)P.call(e,o[c])&&r.push("["+t(o[c])+"]: "+t(e[o[c]],e));return r}},82372:function(e){"use strict";var t=function(e){return e!==e};e.exports=function(e,n){return 0===e&&0===n?1/e===1/n:e===n||!(!t(e)||!t(n))}},55968:function(e,t,n){"use strict";var r=n(41857),i=n(28498),a=n(82372),o=n(61937),s=n(85087),l=i(o(),Object);r(l,{getPolyfill:o,implementation:a,shim:s}),e.exports=l},61937:function(e,t,n){"use strict";var r=n(82372);e.exports=function(){return"function"===typeof Object.is?Object.is:r}},85087:function(e,t,n){"use strict";var r=n(61937),i=n(41857);e.exports=function(){var e=r();return i(Object,{is:e},{is:function(){return Object.is!==e}}),e}},78160:function(e,t,n){"use strict";var r;if(!Object.keys){var i=Object.prototype.hasOwnProperty,a=Object.prototype.toString,o=n(50968),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),c=s.call(function(){},"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(e){var t=e.constructor;return t&&t.prototype===e},h={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"===typeof window)return!1;for(var e in window)try{if(!h["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"===typeof window[e])try{d(window[e])}catch(t){return!0}}catch(t){return!0}return!1}(),f=function(e){if("undefined"===typeof window||!p)return d(e);try{return d(e)}catch(t){return!1}};r=function(e){var t=null!==e&&"object"===typeof e,n="[object Function]"===a.call(e),r=o(e),s=t&&"[object String]"===a.call(e),d=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var h=c&&n;if(s&&e.length>0&&!i.call(e,0))for(var p=0;p<e.length;++p)d.push(String(p));if(r&&e.length>0)for(var m=0;m<e.length;++m)d.push(String(m));else for(var g in e)h&&"prototype"===g||!i.call(e,g)||d.push(String(g));if(l)for(var v=f(e),b=0;b<u.length;++b)v&&"constructor"===u[b]||!i.call(e,u[b])||d.push(u[b]);return d}}e.exports=r},49228:function(e,t,n){"use strict";var r=Array.prototype.slice,i=n(50968),a=Object.keys,o=a?function(e){return a(e)}:n(78160),s=Object.keys;o.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return i(e)?s(r.call(e)):s(e)})}else Object.keys=o;return Object.keys||o},e.exports=o},50968:function(e){"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"===typeof e&&"number"===typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},25164:function(e,t,n){"use strict";var r=n(49228),i=n(62908)(),a=n(14607),o=n(9629),s=a("Array.prototype.push"),l=a("Object.prototype.propertyIsEnumerable"),c=i?o.getOwnPropertySymbols:null;e.exports=function(e,t){if(null==e)throw new TypeError("target must be an object");var n=o(e);if(1===arguments.length)return n;for(var a=1;a<arguments.length;++a){var u=o(arguments[a]),d=r(u),h=i&&(o.getOwnPropertySymbols||c);if(h)for(var p=h(u),f=0;f<p.length;++f){var m=p[f];l(u,m)&&s(d,m)}for(var g=0;g<d.length;++g){var v=d[g];if(l(u,v)){var b=u[v];n[v]=b}}}return n}},23225:function(e,t,n){"use strict";var r=n(25164),i=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),n={},r=0;r<t.length;++r)n[t[r]]=t[r];var i=Object.assign({},n),a="";for(var o in i)a+=o;return e!==a},a=function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch(t){return"y"===e[1]}return!1};e.exports=function(){return Object.assign?i()||a()?r:Object.assign:r}},69501:function(e){"use strict";e.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},39907:function(e){var t,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}function s(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(function(){try{t="function"===typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"===typeof clearTimeout?clearTimeout:a}catch(e){n=a}})();var l,c=[],u=!1,d=-1;function h(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&p())}function p(){if(!u){var e=o(h);u=!0;var t=c.length;while(t){l=c,c=[];while(++d<t)l&&l[d].run();d=-1,t=c.length}l=null,u=!1,s(e)}}function f(e,t){this.fun=e,this.array=t}function m(){}r.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];c.push(new f(e,t)),1!==c.length||u||o(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=m,r.addListener=m,r.once=m,r.off=m,r.removeListener=m,r.removeAllListeners=m,r.emit=m,r.prependListener=m,r.prependOnceListener=m,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},1830:function(e){"use strict";var t=String.prototype.replace,n=/%20/g,r={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports={default:r.RFC3986,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:r.RFC1738,RFC3986:r.RFC3986}},45810:function(e,t,n){"use strict";var r=n(16623),i=n(26193),a=n(1830);e.exports={formats:a,parse:i,stringify:r}},26193:function(e,t,n){"use strict";var r=n(91539),i=Object.prototype.hasOwnProperty,a=Array.isArray,o={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},s=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},l=function(e,t,n){if(e&&"string"===typeof e&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},c="utf8=%26%2310003%3B",u="utf8=%E2%9C%93",d=function(e,t){var n={__proto__:null},d=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;d=d.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var h=t.parameterLimit===1/0?void 0:t.parameterLimit,p=d.split(t.delimiter,t.throwOnLimitExceeded?h+1:h);if(t.throwOnLimitExceeded&&p.length>h)throw new RangeError("Parameter limit exceeded. Only "+h+" parameter"+(1===h?"":"s")+" allowed.");var f,m=-1,g=t.charset;if(t.charsetSentinel)for(f=0;f<p.length;++f)0===p[f].indexOf("utf8=")&&(p[f]===u?g="utf-8":p[f]===c&&(g="iso-8859-1"),m=f,f=p.length);for(f=0;f<p.length;++f)if(f!==m){var v,b,y=p[f],_=y.indexOf("]="),w=-1===_?y.indexOf("="):_+1;if(-1===w?(v=t.decoder(y,o.decoder,g,"key"),b=t.strictNullHandling?null:""):(v=t.decoder(y.slice(0,w),o.decoder,g,"key"),null!==v&&(b=r.maybeMap(l(y.slice(w+1),t,a(n[v])?n[v].length:0),function(e){return t.decoder(e,o.decoder,g,"value")}))),b&&t.interpretNumericEntities&&"iso-8859-1"===g&&(b=s(String(b))),y.indexOf("[]=")>-1&&(b=a(b)?[b]:b),t.comma&&a(b)&&b.length>t.arrayLimit){if(t.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");b=r.combine([],b,t.arrayLimit,t.plainObjects)}if(null!==v){var E=i.call(n,v);E&&("combine"===t.duplicates||y.indexOf("[]=")>-1)?n[v]=r.combine(n[v],b,t.arrayLimit,t.plainObjects):E&&"last"!==t.duplicates||(n[v]=b)}}return n},h=function(e,t,n,i){var a=0;if(e.length>0&&"[]"===e[e.length-1]){var o=e.slice(0,-1).join("");a=Array.isArray(t)&&t[o]?t[o].length:0}for(var s=i?t:l(t,n,a),c=e.length-1;c>=0;--c){var u,d=e[c];if("[]"===d&&n.parseArrays)u=r.isOverflow(s)?s:n.allowEmptyArrays&&(""===s||n.strictNullHandling&&null===s)?[]:r.combine([],s,n.arrayLimit,n.plainObjects);else{u=n.plainObjects?{__proto__:null}:{};var h="["===d.charAt(0)&&"]"===d.charAt(d.length-1)?d.slice(1,-1):d,p=n.decodeDotInKeys?h.replace(/%2E/g,"."):h,f=parseInt(p,10),m=!isNaN(f)&&d!==p&&String(f)===p&&f>=0&&n.parseArrays;if(n.parseArrays||""!==p)if(m&&f<n.arrayLimit)u=[],u[f]=s;else{if(m&&n.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+n.arrayLimit+" element"+(1===n.arrayLimit?"":"s")+" allowed in an array.");m?(u[f]=s,r.markOverflow(u,f)):"__proto__"!==p&&(u[p]=s)}else u={0:s}}s=u}return s},p=function(e,t){var n=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(t.depth<=0){if(!t.plainObjects&&i.call(Object.prototype,n)&&!t.allowPrototypes)return;return[n]}var r=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,o=r.exec(n),s=o?n.slice(0,o.index):n,l=[];if(s){if(!t.plainObjects&&i.call(Object.prototype,s)&&!t.allowPrototypes)return;l[l.length]=s}var c=0;while(null!==(o=a.exec(n))&&c<t.depth){c+=1;var u=o[1].slice(1,-1);if(!t.plainObjects&&i.call(Object.prototype,u)&&!t.allowPrototypes)return;l[l.length]=o[1]}if(o){if(!0===t.strictDepth)throw new RangeError("Input depth exceeded depth option of "+t.depth+" and strictDepth is true");l[l.length]="["+n.slice(o.index)+"]"}return l},f=function(e,t,n,r){if(e){var i=p(e,n);if(i)return h(i,t,n,r)}},m=function(e){if(!e)return o;if("undefined"!==typeof e.allowEmptyArrays&&"boolean"!==typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if("undefined"!==typeof e.decodeDotInKeys&&"boolean"!==typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&"undefined"!==typeof e.decoder&&"function"!==typeof e.decoder)throw new TypeError("Decoder has to be a function.");if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if("undefined"!==typeof e.throwOnLimitExceeded&&"boolean"!==typeof e.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var t="undefined"===typeof e.charset?o.charset:e.charset,n="undefined"===typeof e.duplicates?o.duplicates:e.duplicates;if("combine"!==n&&"first"!==n&&"last"!==n)throw new TypeError("The duplicates option must be either combine, first, or last");var i="undefined"===typeof e.allowDots?!0===e.decodeDotInKeys||o.allowDots:!!e.allowDots;return{allowDots:i,allowEmptyArrays:"boolean"===typeof e.allowEmptyArrays?!!e.allowEmptyArrays:o.allowEmptyArrays,allowPrototypes:"boolean"===typeof e.allowPrototypes?e.allowPrototypes:o.allowPrototypes,allowSparse:"boolean"===typeof e.allowSparse?e.allowSparse:o.allowSparse,arrayLimit:"number"===typeof e.arrayLimit?e.arrayLimit:o.arrayLimit,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:o.charsetSentinel,comma:"boolean"===typeof e.comma?e.comma:o.comma,decodeDotInKeys:"boolean"===typeof e.decodeDotInKeys?e.decodeDotInKeys:o.decodeDotInKeys,decoder:"function"===typeof e.decoder?e.decoder:o.decoder,delimiter:"string"===typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:o.delimiter,depth:"number"===typeof e.depth||!1===e.depth?+e.depth:o.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"===typeof e.interpretNumericEntities?e.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:"number"===typeof e.parameterLimit?e.parameterLimit:o.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"===typeof e.plainObjects?e.plainObjects:o.plainObjects,strictDepth:"boolean"===typeof e.strictDepth?!!e.strictDepth:o.strictDepth,strictMerge:"boolean"===typeof e.strictMerge?!!e.strictMerge:o.strictMerge,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:o.strictNullHandling,throwOnLimitExceeded:"boolean"===typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}};e.exports=function(e,t){var n=m(t);if(""===e||null===e||"undefined"===typeof e)return n.plainObjects?{__proto__:null}:{};for(var i="string"===typeof e?d(e,n):e,a=n.plainObjects?{__proto__:null}:{},o=Object.keys(i),s=0;s<o.length;++s){var l=o[s],c=f(l,i[l],n,"string"===typeof e);a=r.merge(a,c,n)}return!0===n.allowSparse?a:r.compact(a)}},16623:function(e,t,n){"use strict";var r=n(77575),i=n(91539),a=n(1830),o=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,l(t)?t:[t])},d=Date.prototype.toISOString,h=a["default"],p={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:i.encode,encodeValuesOnly:!1,filter:void 0,format:h,formatter:a.formatters[h],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},f=function(e){return"string"===typeof e||"number"===typeof e||"boolean"===typeof e||"symbol"===typeof e||"bigint"===typeof e},m={},g=function e(t,n,a,o,s,c,d,h,g,v,b,y,_,w,E,S,k,x){var A=t,C=x,T=0,N=!1;while(void 0!==(C=C.get(m))&&!N){var R=C.get(t);if(T+=1,"undefined"!==typeof R){if(R===T)throw new RangeError("Cyclic object value");N=!0}"undefined"===typeof C.get(m)&&(T=0)}if("function"===typeof v?A=v(n,A):A instanceof Date?A=_(A):"comma"===a&&l(A)&&(A=i.maybeMap(A,function(e){return e instanceof Date?_(e):e})),null===A){if(c)return g&&!S?g(n,p.encoder,k,"key",w):n;A=""}if(f(A)||i.isBuffer(A)){if(g){var O=S?n:g(n,p.encoder,k,"key",w);return[E(O)+"="+E(g(A,p.encoder,k,"value",w))]}return[E(n)+"="+E(String(A))]}var I,L=[];if("undefined"===typeof A)return L;if("comma"===a&&l(A))S&&g&&(A=i.maybeMap(A,g)),I=[{value:A.length>0?A.join(",")||null:void 0}];else if(l(v))I=v;else{var D=Object.keys(A);I=b?D.sort(b):D}var P=h?String(n).replace(/\./g,"%2E"):String(n),M=o&&l(A)&&1===A.length?P+"[]":P;if(s&&l(A)&&0===A.length)return M+"[]";for(var B=0;B<I.length;++B){var F=I[B],$="object"===typeof F&&F&&"undefined"!==typeof F.value?F.value:A[F];if(!d||null!==$){var U=y&&h?String(F).replace(/\./g,"%2E"):String(F),j=l(A)?"function"===typeof a?a(M,U):M:M+(y?"."+U:"["+U+"]");x.set(t,T);var V=r();V.set(m,x),u(L,e($,j,a,o,s,c,d,h,"comma"===a&&S&&l(A)?null:g,v,b,y,_,w,E,S,k,V))}}return L},v=function(e){if(!e)return p;if("undefined"!==typeof e.allowEmptyArrays&&"boolean"!==typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if("undefined"!==typeof e.encodeDotInKeys&&"boolean"!==typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&"undefined"!==typeof e.encoder&&"function"!==typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if("undefined"!==typeof e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=a["default"];if("undefined"!==typeof e.format){if(!o.call(a.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r,i=a.formatters[n],c=p.filter;if(("function"===typeof e.filter||l(e.filter))&&(c=e.filter),r=e.arrayFormat in s?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":p.arrayFormat,"commaRoundTrip"in e&&"boolean"!==typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u="undefined"===typeof e.allowDots?!0===e.encodeDotInKeys||p.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"===typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:u,allowEmptyArrays:"boolean"===typeof e.allowEmptyArrays?!!e.allowEmptyArrays:p.allowEmptyArrays,arrayFormat:r,charset:t,charsetSentinel:"boolean"===typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:"undefined"===typeof e.delimiter?p.delimiter:e.delimiter,encode:"boolean"===typeof e.encode?e.encode:p.encode,encodeDotInKeys:"boolean"===typeof e.encodeDotInKeys?e.encodeDotInKeys:p.encodeDotInKeys,encoder:"function"===typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"===typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:c,format:n,formatter:i,serializeDate:"function"===typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"===typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"===typeof e.sort?e.sort:null,strictNullHandling:"boolean"===typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}};e.exports=function(e,t){var n,i,a=e,o=v(t);"function"===typeof o.filter?(i=o.filter,a=i("",a)):l(o.filter)&&(i=o.filter,n=i);var c=[];if("object"!==typeof a||null===a)return"";var d=s[o.arrayFormat],h="comma"===d&&o.commaRoundTrip;n||(n=Object.keys(a)),o.sort&&n.sort(o.sort);for(var p=r(),f=0;f<n.length;++f){var m=n[f],b=a[m];o.skipNulls&&null===b||u(c,g(b,m,d,h,o.allowEmptyArrays,o.strictNullHandling,o.skipNulls,o.encodeDotInKeys,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.format,o.formatter,o.encodeValuesOnly,o.charset,p))}var y=c.join(o.delimiter),_=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?_+="utf8=%26%2310003%3B&":_+="utf8=%E2%9C%93&"),y.length>0?_+y:""}},91539:function(e,t,n){"use strict";var r=n(1830),i=n(77575),a=Object.prototype.hasOwnProperty,o=Array.isArray,s=i(),l=function(e,t){return s.set(e,t),e},c=function(e){return s.has(e)},u=function(e){return s.get(e)},d=function(e,t){s.set(e,t)},h=function(){for(var e=[],t=0;t<256;++t)e[e.length]="%"+((t<16?"0":"")+t.toString(16)).toUpperCase();return e}(),p=function(e){while(e.length>1){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i<n.length;++i)"undefined"!==typeof n[i]&&(r[r.length]=n[i]);t.obj[t.prop]=r}}},f=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},r=0;r<e.length;++r)"undefined"!==typeof e[r]&&(n[r]=e[r]);return n},m=function e(t,n,r){if(!n)return t;if("object"!==typeof n&&"function"!==typeof n){if(o(t)){var i=t.length;if(r&&"number"===typeof r.arrayLimit&&i>r.arrayLimit)return l(f(t.concat(n),r),i);t[i]=n}else{if(!t||"object"!==typeof t)return[t,n];if(c(t)){var s=u(t)+1;t[s]=n,d(t,s)}else{if(r&&r.strictMerge)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!a.call(Object.prototype,n))&&(t[n]=!0)}}return t}if(!t||"object"!==typeof t){if(c(n)){for(var h=Object.keys(n),p=r&&r.plainObjects?{__proto__:null,0:t}:{0:t},m=0;m<h.length;m++){var g=parseInt(h[m],10);p[g+1]=n[h[m]]}return l(p,u(n)+1)}var v=[t].concat(n);return r&&"number"===typeof r.arrayLimit&&v.length>r.arrayLimit?l(f(v,r),v.length-1):v}var b=t;return o(t)&&!o(n)&&(b=f(t,r)),o(t)&&o(n)?(n.forEach(function(n,i){if(a.call(t,i)){var o=t[i];o&&"object"===typeof o&&n&&"object"===typeof n?t[i]=e(o,n,r):t[t.length]=n}else t[i]=n}),t):Object.keys(n).reduce(function(t,i){var o=n[i];if(a.call(t,i)?t[i]=e(t[i],o,r):t[i]=o,c(n)&&!c(t)&&l(t,u(n)),c(t)){var s=parseInt(i,10);String(s)===i&&s>=0&&s>u(t)&&d(t,s)}return t},b)},g=function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},v=function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(i){return r}},b=1024,y=function(e,t,n,i,a){if(0===e.length)return e;var o=e;if("symbol"===typeof e?o=Symbol.prototype.toString.call(e):"string"!==typeof e&&(o=String(e)),"iso-8859-1"===n)return escape(o).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var s="",l=0;l<o.length;l+=b){for(var c=o.length>=b?o.slice(l,l+b):o,u=[],d=0;d<c.length;++d){var p=c.charCodeAt(d);45===p||46===p||95===p||126===p||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||a===r.RFC1738&&(40===p||41===p)?u[u.length]=c.charAt(d):p<128?u[u.length]=h[p]:p<2048?u[u.length]=h[192|p>>6]+h[128|63&p]:p<55296||p>=57344?u[u.length]=h[224|p>>12]+h[128|p>>6&63]+h[128|63&p]:(d+=1,p=65536+((1023&p)<<10|1023&c.charCodeAt(d)),u[u.length]=h[240|p>>18]+h[128|p>>12&63]+h[128|p>>6&63]+h[128|63&p])}s+=u.join("")}return s},_=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],o=Object.keys(a),s=0;s<o.length;++s){var l=o[s],c=a[l];"object"===typeof c&&null!==c&&-1===n.indexOf(c)&&(t[t.length]={obj:a,prop:l},n[n.length]=c)}return p(t),e},w=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},E=function(e){return!(!e||"object"!==typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},S=function(e,t,n,r){if(c(e)){var i=u(e)+1;return e[i]=t,d(e,i),e}var a=[].concat(e,t);return a.length>n?l(f(a,{plainObjects:r}),a.length-1):a},k=function(e,t){if(o(e)){for(var n=[],r=0;r<e.length;r+=1)n[n.length]=t(e[r]);return n}return t(e)};e.exports={arrayToObject:f,assign:g,combine:S,compact:_,decode:v,encode:y,isBuffer:E,isOverflow:c,isRegExp:w,markOverflow:l,maybeMap:k,merge:m}},1359:function(e,t){"use strict";var n,r=Object.prototype.hasOwnProperty;function i(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return null}}function a(e){try{return encodeURIComponent(e)}catch(t){return null}}function o(e){var t,n=/([^=?#&]+)=?([^&]*)/g,r={};while(t=n.exec(e)){var a=i(t[1]),o=i(t[2]);null===a||null===o||a in r||(r[a]=o)}return r}function s(e,t){t=t||"";var i,o,s=[];for(o in"string"!==typeof t&&(t="?"),e)if(r.call(e,o)){if(i=e[o],i||null!==i&&i!==n&&!isNaN(i)||(i=""),o=a(o),i=a(i),null===o||null===i)continue;s.push(o+"="+i)}return s.length?t+s.join("&"):""}t.stringify=s,t.parse=o},33062:function(e){"use strict";e.exports=function(e,t){if(t=t.split(":")[0],e=+e,!e)return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e}},25636:function(e,t,n){
|
||
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
||
var r=n(1048),i=r.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(a(r,t),t.Buffer=o),o.prototype=Object.create(i.prototype),a(i,o),o.from=function(e,t,n){if("number"===typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},o.alloc=function(e,t,n){if("number"!==typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"===typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},o.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},46132:function(e,t,n){"use strict";var r=n(14607),i=n(52672),a=r("RegExp.prototype.exec"),o=n(3468);e.exports=function(e){if(!i(e))throw new o("`regex` must be a RegExp");return function(t){return null!==a(e,t)}}},51565:function(e,t,n){"use strict";const r=Symbol("SemVer ANY");class i{static get ANY(){return r}constructor(e,t){if(t=a(t),e instanceof i){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),c("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===r?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(e){const t=this.options.loose?o[s.COMPARATORLOOSE]:o[s.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new u(n[2],this.options.loose):this.semver=r}toString(){return this.value}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"===typeof e)try{e=new u(e,this.options)}catch(t){return!1}return l(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof i))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new d(e.value,t).test(this.value):""===e.operator?""===e.value||new d(this.value,t).test(e.semver):(t=a(t),(!t.includePrerelease||"<0.0.0-0"!==this.value&&"<0.0.0-0"!==e.value)&&(!(!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&(!(!this.operator.startsWith(">")||!e.operator.startsWith(">"))||(!(!this.operator.startsWith("<")||!e.operator.startsWith("<"))||(!(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))||(!!(l(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))||!!(l(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">"))))))))}}e.exports=i;const a=n(13990),{safeRe:o,t:s}=n(72841),l=n(54004),c=n(41361),u=n(24517),d=n(37476)},37476:function(e,t,n){"use strict";const r=/\s+/g;class i{constructor(e,t){if(t=s(t),e instanceof i)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new i(e.raw,t);if(e instanceof l)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(r," "),this.set=this.raw.split("||").map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter(e=>!b(e[0])),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const t of this.set)if(1===t.length&&y(t[0])){this.set=[t];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");const t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=(this.options.includePrerelease&&g)|(this.options.loose&&v),n=t+":"+e,r=o.get(n);if(r)return r;const i=this.options.loose,a=i?d[h.HYPHENRANGELOOSE]:d[h.HYPHENRANGE];e=e.replace(a,O(this.options.includePrerelease)),c("hyphen replace",e),e=e.replace(d[h.COMPARATORTRIM],p),c("comparator trim",e),e=e.replace(d[h.TILDETRIM],f),c("tilde trim",e),e=e.replace(d[h.CARETTRIM],m),c("caret trim",e);let s=e.split(" ").map(e=>w(e,this.options)).join(" ").split(/\s+/).map(e=>R(e,this.options));i&&(s=s.filter(e=>(c("loose invalid filter",e,this.options),!!e.match(d[h.COMPARATORLOOSE])))),c("range list",s);const u=new Map,y=s.map(e=>new l(e,this.options));for(const o of y){if(b(o))return[o];u.set(o.value,o)}u.size>1&&u.has("")&&u.delete("");const _=[...u.values()];return o.set(n,_),_}intersects(e,t){if(!(e instanceof i))throw new TypeError("a Range is required");return this.set.some(n=>_(n,t)&&e.set.some(e=>_(e,t)&&n.every(n=>e.every(e=>n.intersects(e,t)))))}test(e){if(!e)return!1;if("string"===typeof e)try{e=new u(e,this.options)}catch(t){return!1}for(let n=0;n<this.set.length;n++)if(I(this.set[n],e,this.options))return!0;return!1}}e.exports=i;const a=n(58953),o=new a,s=n(13990),l=n(51565),c=n(41361),u=n(24517),{safeRe:d,t:h,comparatorTrimReplace:p,tildeTrimReplace:f,caretTrimReplace:m}=n(72841),{FLAG_INCLUDE_PRERELEASE:g,FLAG_LOOSE:v}=n(79543),b=e=>"<0.0.0-0"===e.value,y=e=>""===e.value,_=(e,t)=>{let n=!0;const r=e.slice();let i=r.pop();while(n&&r.length)n=r.every(e=>i.intersects(e,t)),i=r.pop();return n},w=(e,t)=>(e=e.replace(d[h.BUILD],""),c("comp",e,t),e=x(e,t),c("caret",e),e=S(e,t),c("tildes",e),e=C(e,t),c("xrange",e),e=N(e,t),c("stars",e),e),E=e=>!e||"x"===e.toLowerCase()||"*"===e,S=(e,t)=>e.trim().split(/\s+/).map(e=>k(e,t)).join(" "),k=(e,t)=>{const n=t.loose?d[h.TILDELOOSE]:d[h.TILDE];return e.replace(n,(t,n,r,i,a)=>{let o;return c("tilde",e,t,n,r,i,a),E(n)?o="":E(r)?o=`>=${n}.0.0 <${+n+1}.0.0-0`:E(i)?o=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(c("replaceTilde pr",a),o=`>=${n}.${r}.${i}-${a} <${n}.${+r+1}.0-0`):o=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,c("tilde return",o),o})},x=(e,t)=>e.trim().split(/\s+/).map(e=>A(e,t)).join(" "),A=(e,t)=>{c("caret",e,t);const n=t.loose?d[h.CARETLOOSE]:d[h.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,(t,n,i,a,o)=>{let s;return c("caret",e,t,n,i,a,o),E(n)?s="":E(i)?s=`>=${n}.0.0${r} <${+n+1}.0.0-0`:E(a)?s="0"===n?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:o?(c("replaceCaret pr",o),s="0"===n?"0"===i?`>=${n}.${i}.${a}-${o} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}-${o} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a}-${o} <${+n+1}.0.0-0`):(c("no pr"),s="0"===n?"0"===i?`>=${n}.${i}.${a}${r} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a} <${+n+1}.0.0-0`),c("caret return",s),s})},C=(e,t)=>(c("replaceXRanges",e,t),e.split(/\s+/).map(e=>T(e,t)).join(" ")),T=(e,t)=>{e=e.trim();const n=t.loose?d[h.XRANGELOOSE]:d[h.XRANGE];return e.replace(n,(n,r,i,a,o,s)=>{c("xRange",e,n,r,i,a,o,s);const l=E(i),u=l||E(a),d=u||E(o),h=d;return"="===r&&h&&(r=""),s=t.includePrerelease?"-0":"",l?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&h?(u&&(a=0),o=0,">"===r?(r=">=",u?(i=+i+1,a=0,o=0):(a=+a+1,o=0)):"<="===r&&(r="<",u?i=+i+1:a=+a+1),"<"===r&&(s="-0"),n=`${r+i}.${a}.${o}${s}`):u?n=`>=${i}.0.0${s} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${a}.0${s} <${i}.${+a+1}.0-0`),c("xRange return",n),n})},N=(e,t)=>(c("replaceStars",e,t),e.trim().replace(d[h.STAR],"")),R=(e,t)=>(c("replaceGTE0",e,t),e.trim().replace(d[t.includePrerelease?h.GTE0PRE:h.GTE0],"")),O=e=>(t,n,r,i,a,o,s,l,c,u,d,h)=>(n=E(r)?"":E(i)?`>=${r}.0.0${e?"-0":""}`:E(a)?`>=${r}.${i}.0${e?"-0":""}`:o?`>=${n}`:`>=${n}${e?"-0":""}`,l=E(c)?"":E(u)?`<${+c+1}.0.0-0`:E(d)?`<${c}.${+u+1}.0-0`:h?`<=${c}.${u}.${d}-${h}`:e?`<${c}.${u}.${+d+1}-0`:`<=${l}`,`${n} ${l}`.trim()),I=(e,t,n)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(c(e[n].semver),e[n].semver!==l.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}},24517:function(e,t,n){"use strict";const r=n(41361),{MAX_LENGTH:i,MAX_SAFE_INTEGER:a}=n(79543),{safeRe:o,t:s}=n(72841),l=n(13990),{compareIdentifiers:c}=n(93806);class u{constructor(e,t){if(t=l(t),e instanceof u){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!==typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>i)throw new TypeError(`version is longer than ${i} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?o[s.LOOSE]:o[s.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>a||this.major<0)throw new TypeError("Invalid major version");if(this.minor>a||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>a||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<a)return t}return e}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(r("SemVer.compare",this.version,this.options,e),!(e instanceof u)){if("string"===typeof e&&e===this.version)return 0;e=new u(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof u||(e=new u(e,this.options)),this.major<e.major?-1:this.major>e.major?1:this.minor<e.minor?-1:this.minor>e.minor?1:this.patch<e.patch?-1:this.patch>e.patch?1:0}comparePre(e){if(e instanceof u||(e=new u(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const n=this.prerelease[t],i=e.prerelease[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(n!==i)return c(n,i)}while(++t)}compareBuild(e){e instanceof u||(e=new u(e,this.options));let t=0;do{const n=this.build[t],i=e.build[t];if(r("build compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(n!==i)return c(n,i)}while(++t)}inc(e,t,n){if(e.startsWith("pre")){if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(t){const e=`-${t}`.match(this.options.loose?o[s.PRERELEASELOOSE]:o[s.PRERELEASE]);if(!e||e[1]!==t)throw new Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"release":if(0===this.prerelease.length)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;while(--r>=0)"number"===typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===c(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=u},92281:function(e,t,n){"use strict";const r=n(93955),i=(e,t)=>{const n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};e.exports=i},54004:function(e,t,n){"use strict";const r=n(28848),i=n(28220),a=n(89761),o=n(72386),s=n(51262),l=n(89639),c=(e,t,n,c)=>{switch(t){case"===":return"object"===typeof e&&(e=e.version),"object"===typeof n&&(n=n.version),e===n;case"!==":return"object"===typeof e&&(e=e.version),"object"===typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return r(e,n,c);case"!=":return i(e,n,c);case">":return a(e,n,c);case">=":return o(e,n,c);case"<":return s(e,n,c);case"<=":return l(e,n,c);default:throw new TypeError(`Invalid operator: ${t}`)}};e.exports=c},56783:function(e,t,n){"use strict";const r=n(24517),i=n(93955),{safeRe:a,t:o}=n(72841),s=(e,t)=>{if(e instanceof r)return e;if("number"===typeof e&&(e=String(e)),"string"!==typeof e)return null;t=t||{};let n=null;if(t.rtl){const r=t.includePrerelease?a[o.COERCERTLFULL]:a[o.COERCERTL];let i;while((i=r.exec(e))&&(!n||n.index+n[0].length!==e.length))n&&i.index+i[0].length===n.index+n[0].length||(n=i),r.lastIndex=i.index+i[1].length+i[2].length;r.lastIndex=-1}else n=e.match(t.includePrerelease?a[o.COERCEFULL]:a[o.COERCE]);if(null===n)return null;const s=n[2],l=n[3]||"0",c=n[4]||"0",u=t.includePrerelease&&n[5]?`-${n[5]}`:"",d=t.includePrerelease&&n[6]?`+${n[6]}`:"";return i(`${s}.${l}.${c}${u}${d}`,t)};e.exports=s},6106:function(e,t,n){"use strict";const r=n(24517),i=(e,t,n)=>{const i=new r(e,n),a=new r(t,n);return i.compare(a)||i.compareBuild(a)};e.exports=i},52132:function(e,t,n){"use strict";const r=n(87851),i=(e,t)=>r(e,t,!0);e.exports=i},87851:function(e,t,n){"use strict";const r=n(24517),i=(e,t,n)=>new r(e,n).compare(new r(t,n));e.exports=i},73269:function(e,t,n){"use strict";const r=n(93955),i=(e,t)=>{const n=r(e,null,!0),i=r(t,null,!0),a=n.compare(i);if(0===a)return null;const o=a>0,s=o?n:i,l=o?i:n,c=!!s.prerelease.length,u=!!l.prerelease.length;if(u&&!c){if(!l.patch&&!l.minor)return"major";if(0===l.compareMain(s))return l.minor&&!l.patch?"minor":"patch"}const d=c?"pre":"";return n.major!==i.major?d+"major":n.minor!==i.minor?d+"minor":n.patch!==i.patch?d+"patch":"prerelease"};e.exports=i},28848:function(e,t,n){"use strict";const r=n(87851),i=(e,t,n)=>0===r(e,t,n);e.exports=i},89761:function(e,t,n){"use strict";const r=n(87851),i=(e,t,n)=>r(e,t,n)>0;e.exports=i},72386:function(e,t,n){"use strict";const r=n(87851),i=(e,t,n)=>r(e,t,n)>=0;e.exports=i},38868:function(e,t,n){"use strict";const r=n(24517),i=(e,t,n,i,a)=>{"string"===typeof n&&(a=i,i=n,n=void 0);try{return new r(e instanceof r?e.version:e,n).inc(t,i,a).version}catch(o){return null}};e.exports=i},51262:function(e,t,n){"use strict";const r=n(87851),i=(e,t,n)=>r(e,t,n)<0;e.exports=i},89639:function(e,t,n){"use strict";const r=n(87851),i=(e,t,n)=>r(e,t,n)<=0;e.exports=i},26381:function(e,t,n){"use strict";const r=n(24517),i=(e,t)=>new r(e,t).major;e.exports=i},31353:function(e,t,n){"use strict";const r=n(24517),i=(e,t)=>new r(e,t).minor;e.exports=i},28220:function(e,t,n){"use strict";const r=n(87851),i=(e,t,n)=>0!==r(e,t,n);e.exports=i},93955:function(e,t,n){"use strict";const r=n(24517),i=(e,t,n=!1)=>{if(e instanceof r)return e;try{return new r(e,t)}catch(i){if(!n)return null;throw i}};e.exports=i},96082:function(e,t,n){"use strict";const r=n(24517),i=(e,t)=>new r(e,t).patch;e.exports=i},69428:function(e,t,n){"use strict";const r=n(93955),i=(e,t)=>{const n=r(e,t);return n&&n.prerelease.length?n.prerelease:null};e.exports=i},87555:function(e,t,n){"use strict";const r=n(87851),i=(e,t,n)=>r(t,e,n);e.exports=i},93810:function(e,t,n){"use strict";const r=n(6106),i=(e,t)=>e.sort((e,n)=>r(n,e,t));e.exports=i},27229:function(e,t,n){"use strict";const r=n(37476),i=(e,t,n)=>{try{t=new r(t,n)}catch(i){return!1}return t.test(e)};e.exports=i},34042:function(e,t,n){"use strict";const r=n(6106),i=(e,t)=>e.sort((e,n)=>r(e,n,t));e.exports=i},28474:function(e,t,n){"use strict";const r=n(93955),i=(e,t)=>{const n=r(e,t);return n?n.version:null};e.exports=i},2722:function(e,t,n){"use strict";const r=n(72841),i=n(79543),a=n(24517),o=n(93806),s=n(93955),l=n(28474),c=n(92281),u=n(38868),d=n(73269),h=n(26381),p=n(31353),f=n(96082),m=n(69428),g=n(87851),v=n(87555),b=n(52132),y=n(6106),_=n(34042),w=n(93810),E=n(89761),S=n(51262),k=n(28848),x=n(28220),A=n(72386),C=n(89639),T=n(54004),N=n(56783),R=n(51565),O=n(37476),I=n(27229),L=n(26364),D=n(55039),P=n(55357),M=n(71280),B=n(37403),F=n(58854),$=n(27226),U=n(37183),j=n(18623),V=n(76486),K=n(40583);e.exports={parse:s,valid:l,clean:c,inc:u,diff:d,major:h,minor:p,patch:f,prerelease:m,compare:g,rcompare:v,compareLoose:b,compareBuild:y,sort:_,rsort:w,gt:E,lt:S,eq:k,neq:x,gte:A,lte:C,cmp:T,coerce:N,Comparator:R,Range:O,satisfies:I,toComparators:L,maxSatisfying:D,minSatisfying:P,minVersion:M,validRange:B,outside:F,gtr:$,ltr:U,intersects:j,simplifyRange:V,subset:K,SemVer:a,re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,RELEASE_TYPES:i.RELEASE_TYPES,compareIdentifiers:o.compareIdentifiers,rcompareIdentifiers:o.rcompareIdentifiers}},79543:function(e){"use strict";const t="2.0.0",n=256,r=Number.MAX_SAFE_INTEGER||9007199254740991,i=16,a=n-6,o=["major","premajor","minor","preminor","patch","prepatch","prerelease"];e.exports={MAX_LENGTH:n,MAX_SAFE_COMPONENT_LENGTH:i,MAX_SAFE_BUILD_LENGTH:a,MAX_SAFE_INTEGER:r,RELEASE_TYPES:o,SEMVER_SPEC_VERSION:t,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},41361:function(e,t,n){"use strict";var r=n(39907),i=n(4364);const a="object"===typeof r&&{NODE_ENV:"production",BASE_URL:"/"}.NODE_DEBUG&&/\bsemver\b/i.test({NODE_ENV:"production",BASE_URL:"/"}.NODE_DEBUG)?(...e)=>i.error("SEMVER",...e):()=>{};e.exports=a},93806:function(e){"use strict";const t=/^[0-9]+$/,n=(e,n)=>{if("number"===typeof e&&"number"===typeof n)return e===n?0:e<n?-1:1;const r=t.test(e),i=t.test(n);return r&&i&&(e=+e,n=+n),e===n?0:r&&!i?-1:i&&!r?1:e<n?-1:1},r=(e,t)=>n(t,e);e.exports={compareIdentifiers:n,rcompareIdentifiers:r}},58953:function(e){"use strict";class t{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);return void 0===t?void 0:(this.map.delete(e),this.map.set(e,t),t)}delete(e){return this.map.delete(e)}set(e,t){const n=this.delete(e);if(!n&&void 0!==t){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}e.exports=t},13990:function(e){"use strict";const t=Object.freeze({loose:!0}),n=Object.freeze({}),r=e=>e?"object"!==typeof e?t:e:n;e.exports=r},72841:function(e,t,n){"use strict";const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:a}=n(79543),o=n(41361);t=e.exports={};const s=t.re=[],l=t.safeRe=[],c=t.src=[],u=t.safeSrc=[],d=t.t={};let h=0;const p="[a-zA-Z0-9-]",f=[["\\s",1],["\\d",a],[p,i]],m=e=>{for(const[t,n]of f)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},g=(e,t,n)=>{const r=m(t),i=h++;o(e,i,t),d[e]=i,c[i]=t,u[i]=r,s[i]=new RegExp(t,n?"g":void 0),l[i]=new RegExp(r,n?"g":void 0)};g("NUMERICIDENTIFIER","0|[1-9]\\d*"),g("NUMERICIDENTIFIERLOOSE","\\d+"),g("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),g("MAINVERSION",`(${c[d.NUMERICIDENTIFIER]})\\.(${c[d.NUMERICIDENTIFIER]})\\.(${c[d.NUMERICIDENTIFIER]})`),g("MAINVERSIONLOOSE",`(${c[d.NUMERICIDENTIFIERLOOSE]})\\.(${c[d.NUMERICIDENTIFIERLOOSE]})\\.(${c[d.NUMERICIDENTIFIERLOOSE]})`),g("PRERELEASEIDENTIFIER",`(?:${c[d.NONNUMERICIDENTIFIER]}|${c[d.NUMERICIDENTIFIER]})`),g("PRERELEASEIDENTIFIERLOOSE",`(?:${c[d.NONNUMERICIDENTIFIER]}|${c[d.NUMERICIDENTIFIERLOOSE]})`),g("PRERELEASE",`(?:-(${c[d.PRERELEASEIDENTIFIER]}(?:\\.${c[d.PRERELEASEIDENTIFIER]})*))`),g("PRERELEASELOOSE",`(?:-?(${c[d.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[d.PRERELEASEIDENTIFIERLOOSE]})*))`),g("BUILDIDENTIFIER",`${p}+`),g("BUILD",`(?:\\+(${c[d.BUILDIDENTIFIER]}(?:\\.${c[d.BUILDIDENTIFIER]})*))`),g("FULLPLAIN",`v?${c[d.MAINVERSION]}${c[d.PRERELEASE]}?${c[d.BUILD]}?`),g("FULL",`^${c[d.FULLPLAIN]}$`),g("LOOSEPLAIN",`[v=\\s]*${c[d.MAINVERSIONLOOSE]}${c[d.PRERELEASELOOSE]}?${c[d.BUILD]}?`),g("LOOSE",`^${c[d.LOOSEPLAIN]}$`),g("GTLT","((?:<|>)?=?)"),g("XRANGEIDENTIFIERLOOSE",`${c[d.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),g("XRANGEIDENTIFIER",`${c[d.NUMERICIDENTIFIER]}|x|X|\\*`),g("XRANGEPLAIN",`[v=\\s]*(${c[d.XRANGEIDENTIFIER]})(?:\\.(${c[d.XRANGEIDENTIFIER]})(?:\\.(${c[d.XRANGEIDENTIFIER]})(?:${c[d.PRERELEASE]})?${c[d.BUILD]}?)?)?`),g("XRANGEPLAINLOOSE",`[v=\\s]*(${c[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[d.XRANGEIDENTIFIERLOOSE]})(?:${c[d.PRERELEASELOOSE]})?${c[d.BUILD]}?)?)?`),g("XRANGE",`^${c[d.GTLT]}\\s*${c[d.XRANGEPLAIN]}$`),g("XRANGELOOSE",`^${c[d.GTLT]}\\s*${c[d.XRANGEPLAINLOOSE]}$`),g("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),g("COERCE",`${c[d.COERCEPLAIN]}(?:$|[^\\d])`),g("COERCEFULL",c[d.COERCEPLAIN]+`(?:${c[d.PRERELEASE]})?`+`(?:${c[d.BUILD]})?(?:$|[^\\d])`),g("COERCERTL",c[d.COERCE],!0),g("COERCERTLFULL",c[d.COERCEFULL],!0),g("LONETILDE","(?:~>?)"),g("TILDETRIM",`(\\s*)${c[d.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",g("TILDE",`^${c[d.LONETILDE]}${c[d.XRANGEPLAIN]}$`),g("TILDELOOSE",`^${c[d.LONETILDE]}${c[d.XRANGEPLAINLOOSE]}$`),g("LONECARET","(?:\\^)"),g("CARETTRIM",`(\\s*)${c[d.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",g("CARET",`^${c[d.LONECARET]}${c[d.XRANGEPLAIN]}$`),g("CARETLOOSE",`^${c[d.LONECARET]}${c[d.XRANGEPLAINLOOSE]}$`),g("COMPARATORLOOSE",`^${c[d.GTLT]}\\s*(${c[d.LOOSEPLAIN]})$|^$`),g("COMPARATOR",`^${c[d.GTLT]}\\s*(${c[d.FULLPLAIN]})$|^$`),g("COMPARATORTRIM",`(\\s*)${c[d.GTLT]}\\s*(${c[d.LOOSEPLAIN]}|${c[d.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",g("HYPHENRANGE",`^\\s*(${c[d.XRANGEPLAIN]})\\s+-\\s+(${c[d.XRANGEPLAIN]})\\s*$`),g("HYPHENRANGELOOSE",`^\\s*(${c[d.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[d.XRANGEPLAINLOOSE]})\\s*$`),g("STAR","(<|>)?=?\\s*\\*"),g("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),g("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},27226:function(e,t,n){"use strict";const r=n(58854),i=(e,t,n)=>r(e,t,">",n);e.exports=i},18623:function(e,t,n){"use strict";const r=n(37476),i=(e,t,n)=>(e=new r(e,n),t=new r(t,n),e.intersects(t,n));e.exports=i},37183:function(e,t,n){"use strict";const r=n(58854),i=(e,t,n)=>r(e,t,"<",n);e.exports=i},55039:function(e,t,n){"use strict";const r=n(24517),i=n(37476),a=(e,t,n)=>{let a=null,o=null,s=null;try{s=new i(t,n)}catch(l){return null}return e.forEach(e=>{s.test(e)&&(a&&-1!==o.compare(e)||(a=e,o=new r(a,n)))}),a};e.exports=a},55357:function(e,t,n){"use strict";const r=n(24517),i=n(37476),a=(e,t,n)=>{let a=null,o=null,s=null;try{s=new i(t,n)}catch(l){return null}return e.forEach(e=>{s.test(e)&&(a&&1!==o.compare(e)||(a=e,o=new r(a,n)))}),a};e.exports=a},71280:function(e,t,n){"use strict";const r=n(24517),i=n(37476),a=n(89761),o=(e,t)=>{e=new i(e,t);let n=new r("0.0.0");if(e.test(n))return n;if(n=new r("0.0.0-0"),e.test(n))return n;n=null;for(let i=0;i<e.set.length;++i){const t=e.set[i];let o=null;t.forEach(e=>{const t=new r(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":o&&!a(t,o)||(o=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}),!o||n&&!a(n,o)||(n=o)}return n&&e.test(n)?n:null};e.exports=o},58854:function(e,t,n){"use strict";const r=n(24517),i=n(51565),{ANY:a}=i,o=n(37476),s=n(27229),l=n(89761),c=n(51262),u=n(89639),d=n(72386),h=(e,t,n,h)=>{let p,f,m,g,v;switch(e=new r(e,h),t=new o(t,h),n){case">":p=l,f=u,m=c,g=">",v=">=";break;case"<":p=c,f=d,m=l,g="<",v="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(s(e,t,h))return!1;for(let r=0;r<t.set.length;++r){const n=t.set[r];let o=null,s=null;if(n.forEach(e=>{e.semver===a&&(e=new i(">=0.0.0")),o=o||e,s=s||e,p(e.semver,o.semver,h)?o=e:m(e.semver,s.semver,h)&&(s=e)}),o.operator===g||o.operator===v)return!1;if((!s.operator||s.operator===g)&&f(e,s.semver))return!1;if(s.operator===v&&m(e,s.semver))return!1}return!0};e.exports=h},76486:function(e,t,n){"use strict";const r=n(27229),i=n(87851);e.exports=(e,t,n)=>{const a=[];let o=null,s=null;const l=e.sort((e,t)=>i(e,t,n));for(const i of l){const e=r(i,t,n);e?(s=i,o||(o=i)):(s&&a.push([o,s]),s=null,o=null)}o&&a.push([o,null]);const c=[];for(const[r,i]of a)r===i?c.push(r):i||r!==l[0]?i?r===l[0]?c.push(`<=${i}`):c.push(`${r} - ${i}`):c.push(`>=${r}`):c.push("*");const u=c.join(" || "),d="string"===typeof t.raw?t.raw:String(t);return u.length<d.length?u:t}},40583:function(e,t,n){"use strict";const r=n(37476),i=n(51565),{ANY:a}=i,o=n(27229),s=n(87851),l=(e,t,n={})=>{if(e===t)return!0;e=new r(e,n),t=new r(t,n);let i=!1;e:for(const r of e.set){for(const e of t.set){const t=d(r,e,n);if(i=i||null!==t,t)continue e}if(i)return!1}return!0},c=[new i(">=0.0.0-0")],u=[new i(">=0.0.0")],d=(e,t,n)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===a){if(1===t.length&&t[0].semver===a)return!0;e=n.includePrerelease?c:u}if(1===t.length&&t[0].semver===a){if(n.includePrerelease)return!0;t=u}const r=new Set;let i,l,d,f,m,g,v;for(const a of e)">"===a.operator||">="===a.operator?i=h(i,a,n):"<"===a.operator||"<="===a.operator?l=p(l,a,n):r.add(a.semver);if(r.size>1)return null;if(i&&l){if(d=s(i.semver,l.semver,n),d>0)return null;if(0===d&&(">="!==i.operator||"<="!==l.operator))return null}for(const a of r){if(i&&!o(a,String(i),n))return null;if(l&&!o(a,String(l),n))return null;for(const e of t)if(!o(a,String(e),n))return!1;return!0}let b=!(!l||n.includePrerelease||!l.semver.prerelease.length)&&l.semver,y=!(!i||n.includePrerelease||!i.semver.prerelease.length)&&i.semver;b&&1===b.prerelease.length&&"<"===l.operator&&0===b.prerelease[0]&&(b=!1);for(const a of t){if(v=v||">"===a.operator||">="===a.operator,g=g||"<"===a.operator||"<="===a.operator,i)if(y&&a.semver.prerelease&&a.semver.prerelease.length&&a.semver.major===y.major&&a.semver.minor===y.minor&&a.semver.patch===y.patch&&(y=!1),">"===a.operator||">="===a.operator){if(f=h(i,a,n),f===a&&f!==i)return!1}else if(">="===i.operator&&!o(i.semver,String(a),n))return!1;if(l)if(b&&a.semver.prerelease&&a.semver.prerelease.length&&a.semver.major===b.major&&a.semver.minor===b.minor&&a.semver.patch===b.patch&&(b=!1),"<"===a.operator||"<="===a.operator){if(m=p(l,a,n),m===a&&m!==l)return!1}else if("<="===l.operator&&!o(l.semver,String(a),n))return!1;if(!a.operator&&(l||i)&&0!==d)return!1}return!(i&&g&&!l&&0!==d)&&(!(l&&v&&!i&&0!==d)&&(!y&&!b))},h=(e,t,n)=>{if(!e)return t;const r=s(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},p=(e,t,n)=>{if(!e)return t;const r=s(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=l},26364:function(e,t,n){"use strict";const r=n(37476),i=(e,t)=>new r(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "));e.exports=i},37403:function(e,t,n){"use strict";const r=n(37476),i=(e,t)=>{try{return new r(e,t).range||"*"}catch(n){return null}};e.exports=i},26108:function(e,t,n){"use strict";var r=n(528),i=n(70686),a=n(17239)(),o=n(69336),s=n(3468),l=r("%Math.floor%");e.exports=function(e,t){if("function"!==typeof e)throw new s("`fn` is not a function");if("number"!==typeof t||t<0||t>4294967295||l(t)!==t)throw new s("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,c=!0;if("length"in e&&o){var u=o(e,"length");u&&!u.configurable&&(r=!1),u&&!u.writable&&(c=!1)}return(r||c||!n)&&(a?i(e,"length",t,!0,!0):i(e,"length",t)),e}},83346:function(e,t,n){"use strict";var r=n(48660),i=n(3468),a=function(e,t,n){for(var r,i=e;null!=(r=i.next);i=r)if(r.key===t)return i.next=r.next,n||(r.next=e.next,e.next=r),r},o=function(e,t){if(e){var n=a(e,t);return n&&n.value}},s=function(e,t,n){var r=a(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},l=function(e,t){return!!e&&!!a(e,t)},c=function(e,t){if(e)return a(e,t,!0)};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new i("Side channel does not contain "+r(e))},delete:function(t){var n=c(e,t);return n&&e&&!e.next&&(e=void 0),!!n},get:function(t){return o(e,t)},has:function(t){return l(e,t)},set:function(t,n){e||(e={next:void 0}),s(e,t,n)}};return t}},27004:function(e,t,n){"use strict";var r=n(528),i=n(14607),a=n(48660),o=n(3468),s=r("%Map%",!0),l=i("Map.prototype.get",!0),c=i("Map.prototype.set",!0),u=i("Map.prototype.has",!0),d=i("Map.prototype.delete",!0),h=i("Map.prototype.size",!0);e.exports=!!s&&function(){var e,t={assert:function(e){if(!t.has(e))throw new o("Side channel does not contain "+a(e))},delete:function(t){if(e){var n=d(e,t);return 0===h(e)&&(e=void 0),n}return!1},get:function(t){if(e)return l(e,t)},has:function(t){return!!e&&u(e,t)},set:function(t,n){e||(e=new s),c(e,t,n)}};return t}},66348:function(e,t,n){"use strict";var r=n(528),i=n(14607),a=n(48660),o=n(27004),s=n(3468),l=r("%WeakMap%",!0),c=i("WeakMap.prototype.get",!0),u=i("WeakMap.prototype.set",!0),d=i("WeakMap.prototype.has",!0),h=i("WeakMap.prototype.delete",!0);e.exports=l?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new s("Side channel does not contain "+a(e))},delete:function(n){if(l&&n&&("object"===typeof n||"function"===typeof n)){if(e)return h(e,n)}else if(o&&t)return t["delete"](n);return!1},get:function(n){return l&&n&&("object"===typeof n||"function"===typeof n)&&e?c(e,n):t&&t.get(n)},has:function(n){return l&&n&&("object"===typeof n||"function"===typeof n)&&e?d(e,n):!!t&&t.has(n)},set:function(n,r){l&&n&&("object"===typeof n||"function"===typeof n)?(e||(e=new l),u(e,n,r)):o&&(t||(t=o()),t.set(n,r))}};return n}:o},77575:function(e,t,n){"use strict";var r=n(3468),i=n(48660),a=n(83346),o=n(27004),s=n(66348),l=s||o||a;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new r("Side channel does not contain "+i(e))},delete:function(t){return!!e&&e["delete"](t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||(e=l()),e.set(t,n)}};return t}},59975:function(e,t,n){"use strict";var r=n(37101),i=Array.prototype.concat,a=Array.prototype.slice,o=e.exports=function(e){for(var t=[],n=0,o=e.length;n<o;n++){var s=e[n];r(s)?t=i.call(t,a.call(s)):t.push(s)}return t};o.wrap=function(e){return function(){return e(o(arguments))}}},37101:function(e){e.exports=function(e){return!(!e||"string"===typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},4865:function(e,t,n){var r=n(98636),i=n(36846),a=n(93227),o=n(30049),s=n(75442),l=t;l.request=function(e,t){e="string"===typeof e?s.parse(e):a(e);var i=-1===n.g.location.protocol.search(/^https?:$/)?"http:":"",o=e.protocol||i,l=e.hostname||e.host,c=e.port,u=e.path||"/";l&&-1!==l.indexOf(":")&&(l="["+l+"]"),e.url=(l?o+"//"+l:"")+(c?":"+c:"")+u,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var d=new r(e);return t&&d.on("response",t),d},l.get=function(e,t){var n=l.request(e,t);return n.end(),n},l.ClientRequest=r,l.IncomingMessage=i.IncomingMessage,l.Agent=function(){},l.Agent.defaultMaxSockets=4,l.globalAgent=new l.Agent,l.STATUS_CODES=o,l.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]},42271:function(e,t,n){var r;function i(){if(void 0!==r)return r;if(n.g.XMLHttpRequest){r=new n.g.XMLHttpRequest;try{r.open("GET",n.g.XDomainRequest?"/":"https://example.com")}catch(e){r=null}}else r=null;return r}function a(e){var t=i();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(n){}return!1}function o(e){return"function"===typeof e}t.fetch=o(n.g.fetch)&&o(n.g.ReadableStream),t.writableStream=o(n.g.WritableStream),t.abortController=o(n.g.AbortController),t.arraybuffer=t.fetch||a("arraybuffer"),t.msstream=!t.fetch&&a("ms-stream"),t.mozchunkedarraybuffer=!t.fetch&&a("moz-chunked-arraybuffer"),t.overrideMimeType=t.fetch||!!i()&&o(i().overrideMimeType),r=null},98636:function(e,t,n){var r=n(33486)["hp"],i=n(39907),a=n(42271),o=n(35615),s=n(36846),l=n(48635),c=s.IncomingMessage,u=s.readyStates;function d(e,t){return a.fetch&&t?"fetch":a.mozchunkedarraybuffer?"moz-chunked-arraybuffer":a.msstream?"ms-stream":a.arraybuffer&&e?"arraybuffer":"text"}var h=e.exports=function(e){var t,n=this;l.Writable.call(n),n._opts=e,n._body=[],n._headers={},e.auth&&n.setHeader("Authorization","Basic "+r.from(e.auth).toString("base64")),Object.keys(e.headers).forEach(function(t){n.setHeader(t,e.headers[t])});var i=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!a.abortController)i=!1,t=!0;else if("prefer-streaming"===e.mode)t=!1;else if("allow-wrong-content-type"===e.mode)t=!a.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");t=!0}n._mode=d(t,i),n._fetchTimer=null,n._socketTimeout=null,n._socketTimer=null,n.on("finish",function(){n._onFinish()})};function p(e){try{var t=e.status;return null!==t&&0!==t}catch(n){return!1}}o(h,l.Writable),h.prototype.setHeader=function(e,t){var n=this,r=e.toLowerCase();-1===f.indexOf(r)&&(n._headers[r]={name:e,value:t})},h.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},h.prototype.removeHeader=function(e){var t=this;delete t._headers[e.toLowerCase()]},h.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t=e._opts;"timeout"in t&&0!==t.timeout&&e.setTimeout(t.timeout);var r=e._headers,o=null;"GET"!==t.method&&"HEAD"!==t.method&&(o=new Blob(e._body,{type:(r["content-type"]||{}).value||""}));var s=[];if(Object.keys(r).forEach(function(e){var t=r[e].name,n=r[e].value;Array.isArray(n)?n.forEach(function(e){s.push([t,e])}):s.push([t,n])}),"fetch"===e._mode){var l=null;if(a.abortController){var c=new AbortController;l=c.signal,e._fetchAbortController=c,"requestTimeout"in t&&0!==t.requestTimeout&&(e._fetchTimer=n.g.setTimeout(function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()},t.requestTimeout))}n.g.fetch(e._opts.url,{method:e._opts.method,headers:s,body:o||void 0,mode:"cors",credentials:t.withCredentials?"include":"same-origin",signal:l}).then(function(t){e._fetchResponse=t,e._resetTimers(!1),e._connect()},function(t){e._resetTimers(!0),e._destroyed||e.emit("error",t)})}else{var d=e._xhr=new n.g.XMLHttpRequest;try{d.open(e._opts.method,e._opts.url,!0)}catch(h){return void i.nextTick(function(){e.emit("error",h)})}"responseType"in d&&(d.responseType=e._mode),"withCredentials"in d&&(d.withCredentials=!!t.withCredentials),"text"===e._mode&&"overrideMimeType"in d&&d.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in t&&(d.timeout=t.requestTimeout,d.ontimeout=function(){e.emit("requestTimeout")}),s.forEach(function(e){d.setRequestHeader(e[0],e[1])}),e._response=null,d.onreadystatechange=function(){switch(d.readyState){case u.LOADING:case u.DONE:e._onXHRProgress();break}},"moz-chunked-arraybuffer"===e._mode&&(d.onprogress=function(){e._onXHRProgress()}),d.onerror=function(){e._destroyed||(e._resetTimers(!0),e.emit("error",new Error("XHR error")))};try{d.send(o)}catch(h){return void i.nextTick(function(){e.emit("error",h)})}}}},h.prototype._onXHRProgress=function(){var e=this;e._resetTimers(!1),p(e._xhr)&&!e._destroyed&&(e._response||e._connect(),e._response._onXHRProgress(e._resetTimers.bind(e)))},h.prototype._connect=function(){var e=this;e._destroyed||(e._response=new c(e._xhr,e._fetchResponse,e._mode,e._resetTimers.bind(e)),e._response.on("error",function(t){e.emit("error",t)}),e.emit("response",e._response))},h.prototype._write=function(e,t,n){var r=this;r._body.push(e),n()},h.prototype._resetTimers=function(e){var t=this;n.g.clearTimeout(t._socketTimer),t._socketTimer=null,e?(n.g.clearTimeout(t._fetchTimer),t._fetchTimer=null):t._socketTimeout&&(t._socketTimer=n.g.setTimeout(function(){t.emit("timeout")},t._socketTimeout))},h.prototype.abort=h.prototype.destroy=function(e){var t=this;t._destroyed=!0,t._resetTimers(!0),t._response&&(t._response._destroyed=!0),t._xhr?t._xhr.abort():t._fetchAbortController&&t._fetchAbortController.abort(),e&&t.emit("error",e)},h.prototype.end=function(e,t,n){var r=this;"function"===typeof e&&(n=e,e=void 0),l.Writable.prototype.end.call(r,e,t,n)},h.prototype.setTimeout=function(e,t){var n=this;t&&n.once("timeout",t),n._socketTimeout=e,n._resetTimers(!1)},h.prototype.flushHeaders=function(){},h.prototype.setNoDelay=function(){},h.prototype.setSocketKeepAlive=function(){};var f=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]},36846:function(e,t,n){var r=n(39907),i=n(33486)["hp"],a=n(42271),o=n(35615),s=n(48635),l=t.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},c=t.IncomingMessage=function(e,t,n,o){var l=this;if(s.Readable.call(l),l._mode=n,l.headers={},l.rawHeaders=[],l.trailers={},l.rawTrailers=[],l.on("end",function(){r.nextTick(function(){l.emit("close")})}),"fetch"===n){if(l._fetchResponse=t,l.url=t.url,l.statusCode=t.status,l.statusMessage=t.statusText,t.headers.forEach(function(e,t){l.headers[t.toLowerCase()]=e,l.rawHeaders.push(t,e)}),a.writableStream){var c=new WritableStream({write:function(e){return o(!1),new Promise(function(t,n){l._destroyed?n():l.push(i.from(e))?t():l._resumeFetch=t})},close:function(){o(!0),l._destroyed||l.push(null)},abort:function(e){o(!0),l._destroyed||l.emit("error",e)}});try{return void t.body.pipeTo(c).catch(function(e){o(!0),l._destroyed||l.emit("error",e)})}catch(m){}}var u=t.body.getReader();function d(){u.read().then(function(e){l._destroyed||(o(e.done),e.done?l.push(null):(l.push(i.from(e.value)),d()))}).catch(function(e){o(!0),l._destroyed||l.emit("error",e)})}d()}else{l._xhr=e,l._pos=0,l.url=e.responseURL,l.statusCode=e.status,l.statusMessage=e.statusText;var h=e.getAllResponseHeaders().split(/\r?\n/);if(h.forEach(function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var n=t[1].toLowerCase();"set-cookie"===n?(void 0===l.headers[n]&&(l.headers[n]=[]),l.headers[n].push(t[2])):void 0!==l.headers[n]?l.headers[n]+=", "+t[2]:l.headers[n]=t[2],l.rawHeaders.push(t[1],t[2])}}),l._charset="x-user-defined",!a.overrideMimeType){var p=l.rawHeaders["mime-type"];if(p){var f=p.match(/;\s*charset=([^;])(;|$)/);f&&(l._charset=f[1].toLowerCase())}l._charset||(l._charset="utf-8")}}};o(c,s.Readable),c.prototype._read=function(){var e=this,t=e._resumeFetch;t&&(e._resumeFetch=null,t())},c.prototype._onXHRProgress=function(e){var t=this,r=t._xhr,a=null;switch(t._mode){case"text":if(a=r.responseText,a.length>t._pos){var o=a.substr(t._pos);if("x-user-defined"===t._charset){for(var s=i.alloc(o.length),c=0;c<o.length;c++)s[c]=255&o.charCodeAt(c);t.push(s)}else t.push(o,t._charset);t._pos=a.length}break;case"arraybuffer":if(r.readyState!==l.DONE||!r.response)break;a=r.response,t.push(i.from(new Uint8Array(a)));break;case"moz-chunked-arraybuffer":if(a=r.response,r.readyState!==l.LOADING||!a)break;t.push(i.from(new Uint8Array(a)));break;case"ms-stream":if(a=r.response,r.readyState!==l.LOADING)break;var u=new n.g.MSStreamReader;u.onprogress=function(){u.result.byteLength>t._pos&&(t.push(i.from(new Uint8Array(u.result.slice(t._pos)))),t._pos=u.result.byteLength)},u.onload=function(){e(!0),t.push(null)},u.readAsArrayBuffer(a);break}t._xhr.readyState===l.DONE&&"ms-stream"!==t._mode&&(e(!0),t.push(null))}},5692:function(e){"use strict";function t(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var n={};function r(e,r,i){function a(e,t,n){return"string"===typeof r?r:r(e,t,n)}i||(i=Error);var o=function(e){function n(t,n,r){return e.call(this,a(t,n,r))||this}return t(n,e),n}(i);o.prototype.name=i.name,o.prototype.code=e,n[e]=o}function i(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map(function(e){return String(e)}),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}function a(e,t,n){return e.substr(!n||n<0?0:+n,t.length)===t}function o(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}function s(e,t,n){return"number"!==typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}r("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(e,t,n){var r,l;if("string"===typeof t&&a(t,"not ")?(r="must not be",t=t.replace(/^not /,"")):r="must be",o(e," argument"))l="The ".concat(e," ").concat(r," ").concat(i(t,"type"));else{var c=s(e,".")?"property":"argument";l='The "'.concat(e,'" ').concat(c," ").concat(r," ").concat(i(t,"type"))}return l+=". Received type ".concat(typeof n),l},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.F=n},60634:function(e,t,n){"use strict";var r=n(39907),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=u;var a=n(56040),o=n(65464);n(35615)(u,a);for(var s=i(o.prototype),l=0;l<s.length;l++){var c=s[l];u.prototype[c]||(u.prototype[c]=o.prototype[c])}function u(e){if(!(this instanceof u))return new u(e);a.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",d)))}function d(){this._writableState.ended||r.nextTick(h,this)}function h(e){e.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},82108:function(e,t,n){"use strict";e.exports=i;var r=n(91846);function i(e){if(!(this instanceof i))return new i(e);r.call(this,e)}n(35615)(i,r),i.prototype._transform=function(e,t,n){n(null,e)}},56040:function(e,t,n){"use strict";var r,i=n(39907);e.exports=N,N.ReadableState=T;n(50046).EventEmitter;var a=function(e,t){return e.listeners(t).length},o=n(97845),s=n(1048).Buffer,l=("undefined"!==typeof n.g?n.g:"undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).Uint8Array||function(){};function c(e){return s.from(e)}function u(e){return s.isBuffer(e)||e instanceof l}var d,h=n(78314);d=h&&h.debuglog?h.debuglog("stream"):function(){};var p,f,m,g=n(80317),v=n(34532),b=n(79983),y=b.getHighWaterMark,_=n(5692).F,w=_.ERR_INVALID_ARG_TYPE,E=_.ERR_STREAM_PUSH_AFTER_EOF,S=_.ERR_METHOD_NOT_IMPLEMENTED,k=_.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(35615)(N,o);var x=v.errorOrDestroy,A=["error","close","destroy","pause","resume"];function C(e,t,n){if("function"===typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}function T(e,t,i){r=r||n(60634),e=e||{},"boolean"!==typeof i&&(i=t instanceof r),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=y(this,e,"readableHighWaterMark",i),this.buffer=new g,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(p||(p=n(18888).I),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function N(e){if(r=r||n(60634),!(this instanceof N))return new N(e);var t=this instanceof r;this._readableState=new T(e,this,t),this.readable=!0,e&&("function"===typeof e.read&&(this._read=e.read),"function"===typeof e.destroy&&(this._destroy=e.destroy)),o.call(this)}function R(e,t,n,r,i){d("readableAddChunk",t);var a,o=e._readableState;if(null===t)o.reading=!1,M(e,o);else if(i||(a=I(o,t)),a)x(e,a);else if(o.objectMode||t&&t.length>0)if("string"===typeof t||o.objectMode||Object.getPrototypeOf(t)===s.prototype||(t=c(t)),r)o.endEmitted?x(e,new k):O(e,o,t,!0);else if(o.ended)x(e,new E);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||0!==t.length?O(e,o,t,!1):$(e,o)):O(e,o,t,!1)}else r||(o.reading=!1,$(e,o));return!o.ended&&(o.length<o.highWaterMark||0===o.length)}function O(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&B(e)),$(e,t)}function I(e,t){var n;return u(t)||"string"===typeof t||void 0===t||e.objectMode||(n=new w("chunk",["string","Buffer","Uint8Array"],t)),n}Object.defineProperty(N.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),N.prototype.destroy=v.destroy,N.prototype._undestroy=v.undestroy,N.prototype._destroy=function(e,t){t(e)},N.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"===typeof e&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=s.from(e,t),t=""),n=!0),R(this,e,t,!1,n)},N.prototype.unshift=function(e){return R(this,e,null,!0,!1)},N.prototype.isPaused=function(){return!1===this._readableState.flowing},N.prototype.setEncoding=function(e){p||(p=n(18888).I);var t=new p(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;var r=this._readableState.buffer.head,i="";while(null!==r)i+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var L=1073741824;function D(e){return e>=L?e=L:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function P(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=D(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function M(e,t){if(d("onEofChunk"),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?B(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,F(e)))}}function B(e){var t=e._readableState;d("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(d("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(F,e))}function F(e){var t=e._readableState;d("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,z(e)}function $(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(U,e,t))}function U(e,t){while(!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length)){var n=t.length;if(d("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}function j(e){return function(){var t=e._readableState;d("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,z(e))}}function V(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function K(e){d("readable nexttick read 0"),e.read(0)}function G(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(H,e,t))}function H(e,t){d("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),z(e),t.flowing&&!t.reading&&e.read(0)}function z(e){var t=e._readableState;d("flow",t.flowing);while(t.flowing&&null!==e.read());}function q(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function X(e){var t=e._readableState;d("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(W,t,e))}function W(e,t){if(d("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function Y(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}N.prototype.read=function(e){d("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return d("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?X(this):B(this),null;if(e=P(e,t),0===e&&t.ended)return 0===t.length&&X(this),null;var r,i=t.needReadable;return d("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&(i=!0,d("length less than watermark",i)),t.ended||t.reading?(i=!1,d("reading or ended",i)):i&&(d("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=P(n,t))),r=e>0?q(e,t):null,null===r?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&X(this)),null!==r&&this.emit("data",r),r},N.prototype._read=function(e){x(this,new S("_read()"))},N.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e);break}r.pipesCount+=1,d("pipe count=%d opts=%j",r.pipesCount,t);var o=(!t||!1!==t.end)&&e!==i.stdout&&e!==i.stderr,s=o?c:b;function l(e,t){d("onunpipe"),e===n&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,p())}function c(){d("onend"),e.end()}r.endEmitted?i.nextTick(s):n.once("end",s),e.on("unpipe",l);var u=j(n);e.on("drain",u);var h=!1;function p(){d("cleanup"),e.removeListener("close",g),e.removeListener("finish",v),e.removeListener("drain",u),e.removeListener("error",m),e.removeListener("unpipe",l),n.removeListener("end",c),n.removeListener("end",b),n.removeListener("data",f),h=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||u()}function f(t){d("ondata");var i=e.write(t);d("dest.write",i),!1===i&&((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==Y(r.pipes,e))&&!h&&(d("false write response, pause",r.awaitDrain),r.awaitDrain++),n.pause())}function m(t){d("onerror",t),b(),e.removeListener("error",m),0===a(e,"error")&&x(e,t)}function g(){e.removeListener("finish",v),b()}function v(){d("onfinish"),e.removeListener("close",g),b()}function b(){d("unpipe"),n.unpipe(e)}return n.on("data",f),C(e,"error",m),e.once("close",g),e.once("finish",v),e.emit("pipe",n),r.flowing||(d("pipe resume"),n.resume()),e},N.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)r[a].emit("unpipe",this,{hasUnpiped:!1});return this}var o=Y(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},N.prototype.on=function(e,t){var n=o.prototype.on.call(this,e,t),r=this._readableState;return"data"===e?(r.readableListening=this.listenerCount("readable")>0,!1!==r.flowing&&this.resume()):"readable"===e&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,d("on readable",r.length,r.reading),r.length?B(this):r.reading||i.nextTick(K,this))),n},N.prototype.addListener=N.prototype.on,N.prototype.removeListener=function(e,t){var n=o.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick(V,this),n},N.prototype.removeAllListeners=function(e){var t=o.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||i.nextTick(V,this),t},N.prototype.resume=function(){var e=this._readableState;return e.flowing||(d("resume"),e.flowing=!e.readableListening,G(this,e)),e.paused=!1,this},N.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},N.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",function(){if(d("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){if(d("wrapped data"),n.decoder&&(i=n.decoder.write(i)),(!n.objectMode||null!==i&&void 0!==i)&&(n.objectMode||i&&i.length)){var a=t.push(i);a||(r=!0,e.pause())}}),e)void 0===this[i]&&"function"===typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a<A.length;a++)e.on(A[a],this.emit.bind(this,A[a]));return this._read=function(t){d("wrapped _read",t),r&&(r=!1,e.resume())},this},"function"===typeof Symbol&&(N.prototype[Symbol.asyncIterator]=function(){return void 0===f&&(f=n(87743)),f(this)}),Object.defineProperty(N.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(N.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(N.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),N._fromList=q,Object.defineProperty(N.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"===typeof Symbol&&(N.from=function(e,t){return void 0===m&&(m=n(2769)),m(N,e,t)})},91846:function(e,t,n){"use strict";e.exports=u;var r=n(5692).F,i=r.ERR_METHOD_NOT_IMPLEMENTED,a=r.ERR_MULTIPLE_CALLBACK,o=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=r.ERR_TRANSFORM_WITH_LENGTH_0,l=n(60634);function c(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new a);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function u(e){if(!(this instanceof u))return new u(e);l.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"===typeof e.transform&&(this._transform=e.transform),"function"===typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",d)}function d(){var e=this;"function"!==typeof this._flush||this._readableState.destroyed?h(this,null,null):this._flush(function(t,n){h(e,t,n)})}function h(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new s;if(e._transformState.transforming)throw new o;return e.push(null)}n(35615)(u,l),u.prototype.push=function(e,t){return this._transformState.needTransform=!1,l.prototype.push.call(this,e,t)},u.prototype._transform=function(e,t,n){n(new i("_transform()"))},u.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},u.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},u.prototype._destroy=function(e,t){l.prototype._destroy.call(this,e,function(e){t(e)})}},65464:function(e,t,n){"use strict";var r,i=n(39907);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){H(t,e)}}e.exports=T,T.WritableState=C;var o={deprecate:n(66732)},s=n(97845),l=n(1048).Buffer,c=("undefined"!==typeof n.g?n.g:"undefined"!==typeof window?window:"undefined"!==typeof self?self:{}).Uint8Array||function(){};function u(e){return l.from(e)}function d(e){return l.isBuffer(e)||e instanceof c}var h,p=n(34532),f=n(79983),m=f.getHighWaterMark,g=n(5692).F,v=g.ERR_INVALID_ARG_TYPE,b=g.ERR_METHOD_NOT_IMPLEMENTED,y=g.ERR_MULTIPLE_CALLBACK,_=g.ERR_STREAM_CANNOT_PIPE,w=g.ERR_STREAM_DESTROYED,E=g.ERR_STREAM_NULL_VALUES,S=g.ERR_STREAM_WRITE_AFTER_END,k=g.ERR_UNKNOWN_ENCODING,x=p.errorOrDestroy;function A(){}function C(e,t,i){r=r||n(60634),e=e||{},"boolean"!==typeof i&&(i=t instanceof r),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=m(this,e,"writableHighWaterMark",i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=!1===e.decodeStrings;this.decodeStrings=!o,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){M(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function T(e){r=r||n(60634);var t=this instanceof r;if(!t&&!h.call(T,this))return new T(e);this._writableState=new C(e,this,t),this.writable=!0,e&&("function"===typeof e.write&&(this._write=e.write),"function"===typeof e.writev&&(this._writev=e.writev),"function"===typeof e.destroy&&(this._destroy=e.destroy),"function"===typeof e.final&&(this._final=e.final)),s.call(this)}function N(e,t){var n=new S;x(e,n),i.nextTick(t,n)}function R(e,t,n,r){var a;return null===n?a=new E:"string"===typeof n||t.objectMode||(a=new v("chunk",["string","Buffer"],n)),!a||(x(e,a),i.nextTick(r,a),!1)}function O(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!==typeof t||(t=l.from(t,n)),t}function I(e,t,n,r,i,a){if(!n){var o=O(t,r,i);r!==o&&(n=!0,i="buffer",r=o)}var s=t.objectMode?1:r.length;t.length+=s;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:a,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else L(e,t,!1,s,r,i,a);return l}function L(e,t,n,r,i,a,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new w("write")):n?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function D(e,t,n,r,a){--t.pendingcb,n?(i.nextTick(a,r),i.nextTick(K,e,t),e._writableState.errorEmitted=!0,x(e,r)):(a(r),e._writableState.errorEmitted=!0,x(e,r),K(e,t))}function P(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function M(e,t){var n=e._writableState,r=n.sync,a=n.writecb;if("function"!==typeof a)throw new y;if(P(n),t)D(e,n,r,t,a);else{var o=U(n)||e.destroyed;o||n.corked||n.bufferProcessing||!n.bufferedRequest||$(e,n),r?i.nextTick(B,e,n,o,a):B(e,n,o,a)}}function B(e,t,n,r){n||F(e,t),t.pendingcb--,r(),K(e,t)}function F(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function $(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),o=t.corkedRequestsFree;o.entry=n;var s=0,l=!0;while(n)i[s]=n,n.isBuf||(l=!1),n=n.next,s+=1;i.allBuffers=l,L(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{while(n){var c=n.chunk,u=n.encoding,d=n.callback,h=t.objectMode?1:c.length;if(L(e,t,!1,h,c,u,d),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function U(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function j(e,t){e._final(function(n){t.pendingcb--,n&&x(e,n),t.prefinished=!0,e.emit("prefinish"),K(e,t)})}function V(e,t){t.prefinished||t.finalCalled||("function"!==typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,i.nextTick(j,e,t)))}function K(e,t){var n=U(t);if(n&&(V(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var r=e._readableState;(!r||r.autoDestroy&&r.endEmitted)&&e.destroy()}return n}function G(e,t,n){t.ending=!0,K(e,t),n&&(t.finished?i.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}function H(e,t,n){var r=e.entry;e.entry=null;while(r){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree.next=e}n(35615)(T,s),C.prototype.getBuffer=function(){var e=this.bufferedRequest,t=[];while(e)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(C.prototype,"buffer",{get:o.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"===typeof Symbol&&Symbol.hasInstance&&"function"===typeof Function.prototype[Symbol.hasInstance]?(h=Function.prototype[Symbol.hasInstance],Object.defineProperty(T,Symbol.hasInstance,{value:function(e){return!!h.call(this,e)||this===T&&(e&&e._writableState instanceof C)}})):h=function(e){return e instanceof this},T.prototype.pipe=function(){x(this,new _)},T.prototype.write=function(e,t,n){var r=this._writableState,i=!1,a=!r.objectMode&&d(e);return a&&!l.isBuffer(e)&&(e=u(e)),"function"===typeof t&&(n=t,t=null),a?t="buffer":t||(t=r.defaultEncoding),"function"!==typeof n&&(n=A),r.ending?N(this,n):(a||R(this,r,e,n))&&(r.pendingcb++,i=I(this,r,a,e,t,n)),i},T.prototype.cork=function(){this._writableState.corked++},T.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||$(this,e))},T.prototype.setDefaultEncoding=function(e){if("string"===typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new k(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(T.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(T.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),T.prototype._write=function(e,t,n){n(new b("_write()"))},T.prototype._writev=null,T.prototype.end=function(e,t,n){var r=this._writableState;return"function"===typeof e?(n=e,e=null,t=null):"function"===typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||G(this,r,n),this},Object.defineProperty(T.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),T.prototype.destroy=p.destroy,T.prototype._undestroy=p.undestroy,T.prototype._destroy=function(e,t){t(e)}},87743:function(e,t,n){"use strict";var r,i=n(39907);function a(e,t,n){return t=o(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){var t=s(e,"string");return"symbol"===typeof t?t:String(t)}function s(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var l=n(86138),c=Symbol("lastResolve"),u=Symbol("lastReject"),d=Symbol("error"),h=Symbol("ended"),p=Symbol("lastPromise"),f=Symbol("handlePromise"),m=Symbol("stream");function g(e,t){return{value:e,done:t}}function v(e){var t=e[c];if(null!==t){var n=e[m].read();null!==n&&(e[p]=null,e[c]=null,e[u]=null,t(g(n,!1)))}}function b(e){i.nextTick(v,e)}function y(e,t){return function(n,r){e.then(function(){t[h]?n(g(void 0,!0)):t[f](n,r)},r)}}var _=Object.getPrototypeOf(function(){}),w=Object.setPrototypeOf((r={get stream(){return this[m]},next:function(){var e=this,t=this[d];if(null!==t)return Promise.reject(t);if(this[h])return Promise.resolve(g(void 0,!0));if(this[m].destroyed)return new Promise(function(t,n){i.nextTick(function(){e[d]?n(e[d]):t(g(void 0,!0))})});var n,r=this[p];if(r)n=new Promise(y(r,this));else{var a=this[m].read();if(null!==a)return Promise.resolve(g(a,!1));n=new Promise(this[f])}return this[p]=n,n}},a(r,Symbol.asyncIterator,function(){return this}),a(r,"return",function(){var e=this;return new Promise(function(t,n){e[m].destroy(null,function(e){e?n(e):t(g(void 0,!0))})})}),r),_),E=function(e){var t,n=Object.create(w,(t={},a(t,m,{value:e,writable:!0}),a(t,c,{value:null,writable:!0}),a(t,u,{value:null,writable:!0}),a(t,d,{value:null,writable:!0}),a(t,h,{value:e._readableState.endEmitted,writable:!0}),a(t,f,{value:function(e,t){var r=n[m].read();r?(n[p]=null,n[c]=null,n[u]=null,e(g(r,!1))):(n[c]=e,n[u]=t)},writable:!0}),t));return n[p]=null,l(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=n[u];return null!==t&&(n[p]=null,n[c]=null,n[u]=null,t(e)),void(n[d]=e)}var r=n[c];null!==r&&(n[p]=null,n[c]=null,n[u]=null,r(g(void 0,!0))),n[h]=!0}),e.on("readable",b.bind(null,n)),n};e.exports=E},80317:function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function a(e,t,n){return t=c(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function l(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function c(e){var t=u(e,"string");return"symbol"===typeof t?t:String(t)}function u(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var d=n(1048),h=d.Buffer,p=n(62080),f=p.inspect,m=f&&f.custom||"inspect";function g(e,t,n){h.prototype.copy.call(e,t,n)}e.exports=function(){function e(){o(this,e),this.head=null,this.tail=null,this.length=0}return l(e,[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";var t=this.head,n=""+t.data;while(t=t.next)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return h.alloc(0);var t=h.allocUnsafe(e>>>0),n=this.head,r=0;while(n)g(n.data,t,r),r+=n.data.length,n=n.next;return t}},{key:"consume",value:function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,n=1,r=t.data;e-=r.length;while(t=t.next){var i=t.data,a=e>i.length?i.length:e;if(a===i.length?r+=i:r+=i.slice(0,e),e-=a,0===e){a===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(a));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=h.allocUnsafe(e),n=this.head,r=1;n.data.copy(t),e-=n.data.length;while(n=n.next){var i=n.data,a=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,a),e-=a,0===e){a===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(a));break}++r}return this.length-=r,t}},{key:m,value:function(e,t){return f(this,i(i({},t),{},{depth:0,customInspect:!1}))}}]),e}()},34532:function(e,t,n){"use strict";var r=n(39907);function i(e,t){var n=this,i=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return i||s?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(l,this,e)):r.nextTick(l,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?n._writableState?n._writableState.errorEmitted?r.nextTick(o,n):(n._writableState.errorEmitted=!0,r.nextTick(a,n,e)):r.nextTick(a,n,e):t?(r.nextTick(o,n),t(e)):r.nextTick(o,n)}),this)}function a(e,t){l(e,t),o(e)}function o(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function s(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function l(e,t){e.emit("error",t)}function c(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}e.exports={destroy:i,undestroy:s,errorOrDestroy:c}},86138:function(e,t,n){"use strict";var r=n(5692).F.ERR_STREAM_PREMATURE_CLOSE;function i(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r)}}}function a(){}function o(e){return e.setHeader&&"function"===typeof e.abort}function s(e,t,n){if("function"===typeof t)return s(e,null,t);t||(t={}),n=i(n||a);var l=t.readable||!1!==t.readable&&e.readable,c=t.writable||!1!==t.writable&&e.writable,u=function(){e.writable||h()},d=e._writableState&&e._writableState.finished,h=function(){c=!1,d=!0,l||n.call(e)},p=e._readableState&&e._readableState.endEmitted,f=function(){l=!1,p=!0,c||n.call(e)},m=function(t){n.call(e,t)},g=function(){var t;return l&&!p?(e._readableState&&e._readableState.ended||(t=new r),n.call(e,t)):c&&!d?(e._writableState&&e._writableState.ended||(t=new r),n.call(e,t)):void 0},v=function(){e.req.on("finish",h)};return o(e)?(e.on("complete",h),e.on("abort",g),e.req?v():e.on("request",v)):c&&!e._writableState&&(e.on("end",u),e.on("close",u)),e.on("end",f),e.on("finish",h),!1!==t.error&&e.on("error",m),e.on("close",g),function(){e.removeListener("complete",h),e.removeListener("abort",g),e.removeListener("request",v),e.req&&e.req.removeListener("finish",h),e.removeListener("end",u),e.removeListener("close",u),e.removeListener("finish",h),e.removeListener("end",f),e.removeListener("error",m),e.removeListener("close",g)}}e.exports=s},2769:function(e){e.exports=function(){throw new Error("Readable.from is not available in the browser")}},55506:function(e,t,n){"use strict";var r;function i(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var a=n(5692).F,o=a.ERR_MISSING_ARGS,s=a.ERR_STREAM_DESTROYED;function l(e){if(e)throw e}function c(e){return e.setHeader&&"function"===typeof e.abort}function u(e,t,a,o){o=i(o);var l=!1;e.on("close",function(){l=!0}),void 0===r&&(r=n(86138)),r(e,{readable:t,writable:a},function(e){if(e)return o(e);l=!0,o()});var u=!1;return function(t){if(!l&&!u)return u=!0,c(e)?e.abort():"function"===typeof e.destroy?e.destroy():void o(t||new s("pipe"))}}function d(e){e()}function h(e,t){return e.pipe(t)}function p(e){return e.length?"function"!==typeof e[e.length-1]?l:e.pop():l}function f(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i=p(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new o("streams");var a=t.map(function(e,n){var o=n<t.length-1,s=n>0;return u(e,o,s,function(e){r||(r=e),e&&a.forEach(d),o||(a.forEach(d),i(r))})});return t.reduce(h)}e.exports=f},79983:function(e,t,n){"use strict";var r=n(5692).F.ERR_INVALID_OPT_VALUE;function i(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}function a(e,t,n,a){var o=i(t,a,n);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0){var s=a?n:"highWaterMark";throw new r(s,o)}return Math.floor(o)}return e.objectMode?16:16384}e.exports={getHighWaterMark:a}},97845:function(e,t,n){e.exports=n(50046).EventEmitter},48635:function(e,t,n){t=e.exports=n(56040),t.Stream=t,t.Readable=t,t.Writable=n(65464),t.Duplex=n(60634),t.Transform=n(91846),t.PassThrough=n(82108),t.finished=n(86138),t.pipeline=n(55506)},18888:function(e,t,n){"use strict";var r=n(25636).Buffer,i=r.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(e){if(!e)return"utf8";var t;while(1)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function o(e){var t=a(e);if("string"!==typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=o(e),this.encoding){case"utf16le":this.text=f,this.end=m,t=4;break;case"utf8":this.fillLast=d,t=4;break;case"base64":this.text=g,this.end=v,t=3;break;default:return this.write=b,void(this.end=y)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function l(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function c(e,t,n){var r=t.length-1;if(r<n)return 0;var i=l(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||-2===i?0:(i=l(t[r]),i>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||-2===i?0:(i=l(t[r]),i>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0))}function u(e,t,n){if(128!==(192&t[0]))return e.lastNeed=0,"<22>";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,"<22>";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,"<22>"}}function d(e){var t=this.lastTotal-this.lastNeed,n=u(this,e,t);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function h(e,t){var n=c(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)}function p(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"<22>":t}function f(e,t){if((e.length-t)%2===0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function g(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function v(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function b(e){return e.toString(this.encoding)}function y(e){return e&&e.length?this.write(e):""}t.I=s,s.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(t=this.fillLast(e),void 0===t)return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},s.prototype.end=p,s.prototype.text=h,s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},90703:function(e,t,n){"use strict";n.d(t,{v:function(){return r}});const r="ResourceList"},11518:function(e,t,n){"use strict";n.d(t,{R8:function(){return a},T3:function(){return i},r6:function(){return r}});const r=["token-hashing","multi-cluster-management"],i="harvester",a="cluster-agent-scheduling-customization"},2841:function(e,t,n){"use strict";n.d(t,{$E:function(){return u},B9:function(){return R},Do:function(){return E},G5:function(){return _},Hs:function(){return C},MW:function(){return c},O3:function(){return w},Pl:function(){return g},Qw:function(){return v},Rw:function(){return f},S5:function(){return L},Ub:function(){return k},VT:function(){return D},W8:function(){return A},XH:function(){return M},Z_:function(){return T},_n:function(){return m},bs:function(){return d},c8:function(){return b},d6:function(){return p},eG:function(){return o},ks:function(){return r},lq:function(){return I},nN:function(){return h},ol:function(){return l},pS:function(){return y},qt:function(){return x},rk:function(){return P},tC:function(){return i},uf:function(){return B},vi:function(){return S},xO:function(){return N},yA:function(){return a},yl:function(){return s}});const r="field.cattle.io/name",i="field.cattle.io/description",a="kubernetes.io/hostname",o="management.cattle.io/system-namespace",s="field.cattle.io/projectId",l="authz.management.cattle.io/default-project",c="authz.management.cattle.io/system-project",u="field.cattle.io/containerDefaultResourceLimit",d="field.cattle.io/publicEndpoints",h="field.cattle.io/targetWorkloadIds",p="management.cattle.io/ui-managed",f="field.cattle.io/creatorId",m="field.cattle.io/resourceQuota",g="kubernetes.io/arch",v="management.cattle.io/project-scoped-secret",b="management.cattle.io/project-scoped-secret-copy",y={SERVICE_ACCOUNT_UID:"kubernetes.io/service-account.uid",SERVICE_ACCOUNT_NAME:"kubernetes.io/service-account.name",MANAGED_BY:"app.kubernetes.io/managed-by",MANAGED_NAME:"app.kubernetes.io/name",INSTANCE:"app.kubernetes.io/instance"},_={ISSUER:"cert-manager.io/issuer-name"},w={DEFAULT_STORAGE_CLASS:"storageclass.kubernetes.io/is-default-class",BETA_DEFAULT_STORAGE_CLASS:"storageclass.beta.kubernetes.io/is-default-class"},E={NODE_NAME:"management.cattle.io/nodename"},S={CONTROL_PLANE_OLD:"node-role.kubernetes.io/controlplane",CONTROL_PLANE:"node-role.kubernetes.io/control-plane",WORKER:"node-role.kubernetes.io/worker",ETCD:"node-role.kubernetes.io/etcd"},k={CONTROL_PLANE:"rke.cattle.io/control-plane-role",WORKER:"rke.cattle.io/worker-role",ETCD:"rke.cattle.io/etcd-role"},x={DEPLOYMENT_NAME:"cluster.x-k8s.io/deployment-name",CREDENTIAL_DRIVER:"provisioning.cattle.io/driver",CLUSTER_NAMESPACE:"cluster.x-k8s.io/cluster-namespace",FORCE_MACHINE_REMOVE:"provisioning.cattle.io/force-machine-remove",MACHINE_NAME:"cluster.x-k8s.io/machine",DELETE_MACHINE:"cluster.x-k8s.io/delete-machine",PROVIDER:"provider.cattle.io",HUMAN_NAME:"provisioning.cattle.io/management-cluster-display-name",SECRET_AUTH:"v2prov-secret-authorized-for-cluster",SECRET_WILL_DELETE:"v2prov-authorized-secret-deletes-on-cluster-removal",UI_CUSTOM_PROVIDER:"ui.rancher/provider",AUTOSCALER_CLUSTER_PAUSE:"provisioning.cattle.io/cluster-autoscaler-paused",AUTOSCALER_MACHINE_POOL_MIN_SIZE:"cluster.x-k8s.io/cluster-api-autoscaler-node-group-min-size",AUTOSCALER_MACHINE_POOL_MAX_SIZE:"cluster.x-k8s.io/cluster-api-autoscaler-node-group-max-size"},A={CERTIFIED:"catalog.cattle.io/certified",_RANCHER:"rancher",_PARTNER:"partner",_OTHER:"other",PRIME_ONLY:"catalog.cattle.io/prime-only",EXPERIMENTAL:"catalog.cattle.io/experimental",NAMESPACE:"catalog.cattle.io/namespace",RELEASE_NAME:"catalog.cattle.io/release-name",FEATURED:"catalog.cattle.io/featured",REQUIRES_GVK:"catalog.cattle.io/requires-gvr",PROVIDES:"catalog.cattle.io/provides-gvr",AUTO_INSTALL_GVK:"catalog.cattle.io/auto-install-gvr",AUTO_INSTALL:"catalog.cattle.io/auto-install",HIDDEN:"catalog.cattle.io/hidden",REQUESTS_CPU:"catalog.cattle.io/requests-cpu",REQUESTS_MEMORY:"catalog.cattle.io/requests-memory",SCOPE:"catalog.cattle.io/scope",_MANAGEMENT:"management",_DOWNSTREAM:"downstream",TYPE:"catalog.cattle.io/type",_APP:"app",_CLUSTER_TPL:"cluster-template",_CLUSTER_TOOL:"cluster-tool",COMPONENT:"catalog.cattle.io/ui-component",SOURCE_REPO_TYPE:"catalog.cattle.io/ui-source-repo-type",SOURCE_REPO_NAME:"catalog.cattle.io/ui-source-repo",COLOR:"catalog.cattle.io/ui-color",DISPLAY_NAME:"catalog.cattle.io/display-name",CLUSTER_REPO_NAME:"catalog.cattle.io/cluster-repo-name",SUSE_APP_COLLECTION:"catalog.cattle.io/suse-application-collection",SUPPORTED_OS:"catalog.cattle.io/os",PERMITTED_OS:"catalog.cattle.io/permits-os",DEPLOYED_OS:"catalog.cattle.io/deploys-on-os",MIGRATED:"apps.cattle.io/migrated",MANAGED:"catalog.cattle.io/managed",HIDDEN_REPO:"clusterrepo.cattle.io/hidden"},C={REPO_NAME:"fleet.cattle.io/repo-name",HELM_NAME:"fleet.cattle.io/fleet-helm-name",CLUSTER_DISPLAY_NAME:"management.cattle.io/cluster-display-name",CLUSTER_NAME:"management.cattle.io/cluster-name",BUNDLE_ID:"fleet.cattle.io/bundle-id",BUNDLE_NAME:"fleet.cattle.io/bundle-name",BUNDLE_NAMESPACE:"fleet.cattle.io/bundle-namespace",MANAGED:"fleet.cattle.io/managed",CLUSTER_NAMESPACE:"fleet.cattle.io/cluster-namespace",CLUSTER:"fleet.cattle.io/cluster",CREATED_BY_USER_ID:"fleet.cattle.io/created-by-user-id",OCI_STORAGE_SECRET_DEFAULT:"ui-default-oci-registry",OCI_STORAGE_SECRET_GENERATED:"fleet.cattle.io/bundle-internal-secret"},T={EXTERNAL_IP:"rke.cattle.io/external-ip"},N={CLUSTER_NAME:"rke.cattle.io/cluster-name"},R={AUTO_INJECTION:"istio-injection"},O=/cattle\.io\//,I=[O],L=[O],D=[/^kubectl\.kubernetes\.io\/.*$/,/^objectset\.rio\.cattle\.io\/.*$/],P={CLOUD_INIT:"harvesterhci.io/cloud-init-template",CLOUD_PROVIDER_IPAM:"cloudprovider.harvesterhci.io/ipam",NETWORK_ROUTE:"network.harvesterhci.io/route",IMAGE_NAME:"harvesterhci.io/image-name",NETWORK_TYPE:"network.harvesterhci.io/type",CLUSTER_NETWORK:"network.harvesterhci.io/clusternetwork",PRIMARY_SERVICE:"cloudprovider.harvesterhci.io/primary-service",CPU_MANAGER:"cpumanager"},M={TEXT:"ui.rancher/badge-text",COLOR:"ui.rancher/badge-color",ICON_TEXT:"ui.rancher/badge-icon-text"},B=["io.cattle.lifecycle.","beta.kubernetes.io","failure-domain.beta.kubernetes.io","node-role.kubernetes.io","kubernetes.io","cattle.io","authz.management.cattle.io","rke.cattle.io","field.cattle.io","workload.user.cattle.io","k3s.io","node.kubernetes.io","egress.rke2.io"]},57699:function(e,t,n){"use strict";n.d(t,{IZ:function(){return u},Xc:function(){return s},ce:function(){return p},ke:function(){return d},l3:function(){return a},nl:function(){return o},qI:function(){return h},r1:function(){return c},tm:function(){return l}});var r=n(2841),i=n(68774);const a={...i.o_,defaultSort:!0,value:"metadata.name",sort:["metadata.name"],search:"metadata.name"},o={name:"steve-id",labelKey:"tableHeaders.id",value:"id",sort:["id"],search:"id"},s={...i.c4,sort:["metadata.state.name"],search:"metadata.state.name"},l={...i.K,value:"metadata.creationTimestamp",sort:"metadata.creationTimestamp",search:!1},c={...i.CU,value:"metadata.namespace",sort:"metadata.namespace",search:"metadata.namespace"},u=(i.qv,{...i.ys,value:"metadata.fields.7",sort:"metadata.fields.7:desc"}),d={...i.g6,value:"metadata.fields.0",sort:"metadata.fields.0:desc"},h={...i.cP,value:"_type",sort:"_type"},p=[{tooltipKey:"resourceTable.groupBy.none",icon:"icon-list-flat",value:"none"},{icon:"icon-folder",value:"metadata.namespace",field:"metadata.namespace",hideColumn:i.CU.name,tooltipKey:"resourceTable.groupBy.namespace",groupLabelKey:"groupByLabel"}];i.OI,r.c8,i.uL},49845:function(e,t,n){"use strict";n.d(t,{M0:function(){return o},f7:function(){return h},xc:function(){return d}});var r=n(9262),i=n(83297),a=n(45224);const o=`https://ranchermanager.docs.rancher.com/v${i.ji}`,s="Rancher",l={suse:"Rancher Prime",csp:"SUSE Rancher"};let c=s,u=null;function d(e){c=e,p()}function h(){return c===r.HG.PL_RANCHER_VALUE?u&&l[u]?l[u]:s:c}function p(){const e=h();if("Harvester"===e){const e=(0,a.mS)("~shell/assets/images/pl/harvester.png");document.title="Harvester";const t=document.createElement("link");t.hid="icon",t.rel="icon",t.type="image/x-icon",t.hrefv=e;const n=document.getElementsByTagName("head")[0];n.appendChild(t)}}},90598:function(e,t,n){"use strict";n.d(t,{o_:function(){return r}});n(86565),n(35664),n(68774);const r="compliance"},27278:function(e,t,n){"use strict";n.d(t,{o:function(){return r}});n(35664),n(68774),n(86565),n(57699),n(39669),n(95265),n(46392),n(2841);const r="explorer"},2665:function(e,t,n){"use strict";n.d(t,{o_:function(){return i},xO:function(){return r}});n(86565),n(35664),n(68774),n(95265),n(10213);const r={REPO:"repo",OCI:"oci",TARBALL:"tarball"},i="fleet"},14220:function(e,t,n){"use strict";n.d(t,{$y:function(){return w},AS:function(){return m},CU:function(){return T},Dk:function(){return R},Eo:function(){return S},G5:function(){return c},G8:function(){return r},GQ:function(){return O},HC:function(){return p},L_:function(){return _},NO:function(){return k},Qp:function(){return i},RX:function(){return x},Rm:function(){return I},SD:function(){return F},Sd:function(){return D},UA:function(){return E},XJ:function(){return N},YQ:function(){return s},Yq:function(){return y},_N:function(){return M},au:function(){return v},dT:function(){return d},dV:function(){return L},dq:function(){return B},fS:function(){return g},g:function(){return o},iJ:function(){return P},nW:function(){return l},o_:function(){return C},qx:function(){return f},wC:function(){return u},wZ:function(){return h},xv:function(){return A},xz:function(){return a},zD:function(){return b}});const r="local",i=null,a=void 0,o="mode",s="create",l="view",c="edit",u="list",d="clone",h="stage",p="import",f="legacy",m="as",g="detail",v="config",b="yaml",y="graph",_="focus",w="preview",E="type",S="repo-type",k="repo",x="chart",A="version",C="name",T="namespace",N="category",R="tag",O="deprecated",I="tools",L="hide-side-nav",D="cloud",P="projectId",M="flatView",B={NAMESPACED:"namespaced",PROJECT_SCOPED:"project-scoped"},F="scope"},71025:function(e,t){"use strict";t.A=["cattle-dashboards","cattle-global-data","cattle-system","gatekeeper-system","ingress-nginx","kube-node-lease","kube-public","kube-system","linkerd","security-scan","tekton-pipelines","compliance-operator-system","istio-system","longhorn-system"]},68774:function(e,t,n){"use strict";n.d(t,{BD:function(){return k},CU:function(){return v},K:function(){return y},OI:function(){return S},P4:function(){return c},Qg:function(){return P},RP:function(){return l},Si:function(){return w},UA:function(){return A},X:function(){return h},X0:function(){return u},Yf:function(){return f},ZE:function(){return x},ZU:function(){return g},_:function(){return D},aQ:function(){return p},c4:function(){return o},cP:function(){return C},g6:function(){return R},hX:function(){return m},nv:function(){return b},o_:function(){return s},qv:function(){return I},rh:function(){return O},tC:function(){return _},uL:function(){return M},w5:function(){return L},wS:function(){return d},ys:function(){return N},z7:function(){return F}});var r=n(2841),i=n(35664),a=n(39669);const o={name:"state",labelKey:"tableHeaders.state",sort:["stateSort","nameSort"],value:"stateDisplay",getValue:e=>e.stateDisplay,width:100,default:"unknown",formatter:"BadgeStateFormatter"},s={name:"name",labelKey:"tableHeaders.name",value:"nameDisplay",getValue:e=>e.nameDisplay,sort:["nameSort"],formatter:"LinkDetail",canBeVariable:!0},l={...s,search:["nameDisplay","projectNameDisplay"]},c={name:"logging-output-providers",labelKey:"tableHeaders.loggingOutputProviders",value:"providersDisplay",sort:["providersSortable"],formatter:"List"},u={name:"name",labelKey:"tableHeaders.simpleName",value:"name",sort:["name"],width:200,canBeVariable:!0},d={name:"storage_class_provisioner",labelKey:"tableHeaders.storage_class_provisioner",value:"provisionerListDisplay",sort:["provisioner"]},h={name:"storage_class_default",labelKey:"tableHeaders.default",value:"isDefault",sort:["isDefault"],formatter:"Checked"},p={name:"localOutputRefs",labelKey:"tableHeaders.output",value:"outputs",sort:["outputsSortable"],formatter:"ListLink",formatterOpts:{options:{internal:!0}}},f={name:"providers",labelKey:"tableHeaders.providers",value:"providersDisplay",sort:"providersSortable",formatter:"List"},m={...p,name:"globalOutputRefs",value:"clusterOutputs",sort:["clusterOutputsSortable"],labelKey:"tableHeaders.clusterOutput"},g={name:"name",labelKey:"tableHeaders.nameUnlinked",value:"nameDisplay",sort:["nameSort"],canBeVariable:!0},v={name:"namespace",labelKey:"tableHeaders.namespace",value:"namespace",getValue:e=>e.namespace,sort:"namespace",dashIfEmpty:!0,formatter:"LinkName",formatterOpts:{type:i.CU}},b=(i.NW,{name:"principal",labelKey:"tableHeaders.name",sort:"principal.loginName",value:"principalId",formatter:"Principal"}),y={name:"age",labelKey:"tableHeaders.age",value:"creationTimestamp",getValue:e=>e.creationTimestamp,sort:"creationTimestamp:desc",search:!1,formatter:"LiveDate",width:100,align:"left"},_={name:"description",labelKey:"tableHeaders.description",align:"left",value:"description",sort:["description"],formatter:"Description",width:300},w={name:"NamespaceSnapshotQuota",labelKey:"harvester.tableHeaders.totalSnapshotQuota",value:"snapshotSizeQuota",sort:"snapshotSizeQuota",align:"center",formatter:"Si",formatterOpts:{opts:{increment:1024,addSuffix:!0,suffix:"i"},needParseSi:!1}},E={name:"pod_images",labelKey:"tableHeaders.podImages",value:"imageNames",getValue:e=>e.imageNames,sort:"imageNames",formatter:"PodImages"},S={name:"secret-origin",labelKey:"tableHeaders.secret.origin",tooltip:"tableHeaders.secret.originTooltip",formatter:"SecretOrigin",search:!1},k={name:"address",labelKey:"tableHeaders.address",value:"address",sort:["address"]},x={name:"type",labelKey:"tableHeaders.type",value:"typeDisplay",getValue:e=>e.typeDisplay,sort:["typeDisplay"],width:100},A={name:"subType",labelKey:"tableHeaders.subType",value:"subTypeDisplay",sort:["subTypeDisplay"],width:120},C={name:"type",labelKey:"tableHeaders.type",value:"eventType",sort:"eventType"},T={name:"lastSeen",labelKey:"tableHeaders.lastSeen",value:"lastSeen",sort:"lastTimestamp:desc",tooltip:"tableHeaders.lastSeenTooltip"},N={name:"firstSeen",labelKey:"tableHeaders.firstSeen",tooltip:"tableHeaders.firstSeenTooltip",value:"firstSeen",sort:"firstSeen:desc"},R={...T,defaultSort:!0},O={name:"reason",labelKey:"tableHeaders.reason",value:"reason",sort:["reason"]},I={name:"object",labelKey:"tableHeaders.object",value:"involvedObject",sort:["involvedObject.kind","involvedObject.name"],canBeVariable:!0,formatter:"InvolvedObjectLink"},L={name:"message",labelKey:"tableHeaders.message",value:"message",sort:["message"]},D={name:"key",labelKey:"tableHeaders.key",value:"key",sort:["key"]},P={name:"value",labelKey:"tableHeaders.value",value:"value",sort:["value"]},M=(a.c.LAPTOP,r.bs,a.c.DESKTOP,{name:"workloadHealthScale",labelKey:"tableHeaders.health",formatter:"WorkloadHealthScale",getValue:()=>{},width:150,skipSelect:!0,delayLoading:!0,search:!1,liveUpdates:!0}),B={name:"scope",value:"clusterName",labelKey:"tableHeaders.scope",dashIfEmpty:!0,align:"left",sort:["scope"],width:100},F={name:"role",value:"roleDisplay",labelKey:"tableHeaders.role"}},35664:function(e,t,n){"use strict";n.d(t,{$v:function(){return D},B9:function(){return X},BN:function(){return ee},CU:function(){return d},FV:function(){return te},GQ:function(){return oe},Hr:function(){return l},Hs:function(){return q},I$:function(){return H},JF:function(){return ie},K5:function(){return a},Mc:function(){return K},NW:function(){return h},PV:function(){return m},Rp:function(){return B},SB:function(){return j},Sg:function(){return _},Sm:function(){return f},UI:function(){return Q},UP:function(){return x},UR:function(){return p},W8:function(){return P},XG:function(){return S},YA:function(){return Y},YH:function(){return g},YV:function(){return b},Z7:function(){return z},ZV:function(){return se},Zd:function(){return U},Zq:function(){return E},bB:function(){return y},cG:function(){return J},cm:function(){return W},d_:function(){return re},eo:function(){return ne},fJ:function(){return w},fj:function(){return M},i2:function(){return o},k$:function(){return i},kf:function(){return u},lI:function(){return $},lk:function(){return A},ll:function(){return s},m3:function(){return k},m4:function(){return r},oU:function(){return C},oe:function(){return F},qt:function(){return G},rW:function(){return N},rk:function(){return Z},w3:function(){return le},wT:function(){return c},x8:function(){return ae},xO:function(){return V},yx:function(){return v}});const r={PREFERENCE:"userpreference",SCHEMA_DEFINITION:"schemaDefinition"},i={APP:"app",AUTH_CONFIG:"authconfig",CLUSTER:"cluster",CLUSTER_TOKEN:"clusterregistrationtoken",CLUSTER_ROLE_TEMPLATE_BINDING:"clusterroletemplatebinding",CLOUD_CREDENTIAL:"cloudcredential",FLEET_WORKSPACES:"fleetworkspace",GLOBAL_ROLE:"globalRole",GLOBAL_ROLE_BINDING:"globalRoleBinding",NODE_POOL:"nodePool",NODE:"node",PRINCIPAL:"principal",PROJECT:"project",PROJECT_ROLE_TEMPLATE_BINDING:"projectroletemplatebinding",SETTING:"setting",SPOOFED:{GROUP_PRINCIPAL:"group.principal"},ROLE_TEMPLATE:"roleTemplate",TOKEN:"token",USER:"user",KONTAINER_DRIVER:"kontainerDriver",NODE_DRIVER:"nodeDriver"},a="configmap",o="count",s="event",l="endpoints",c="autoscaling.horizontalpodautoscaler",u="networking.k8s.io.ingress",d="namespace",h="node",p="networking.k8s.io.networkpolicy",f="pod",m="persistentvolume",g="persistentvolumeclaim",v="schema",b="service",y="secret",_="serviceaccount",w="storage.k8s.io.storageclass",E="storage.k8s.io.csidriver",S="k8s.cni.cncf.io.networkattachmentdefinition",k="user",x="group",A={ROLE:"rbac.authorization.k8s.io.role",CLUSTER_ROLE:"rbac.authorization.k8s.io.clusterrole",ROLE_BINDING:"rbac.authorization.k8s.io.rolebinding",CLUSTER_ROLE_BINDING:"rbac.authorization.k8s.io.clusterrolebinding"},C={DEPLOYMENT:"apps.deployment",CRON_JOB:"batch.cronjob",DAEMON_SET:"apps.daemonset",JOB:"batch.job",STATEFUL_SET:"apps.statefulset",REPLICA_SET:"apps.replicaset",REPLICATION_CONTROLLER:"replicationcontroller"},T={DEPLOYMENT:"Deployment",CRON_JOB:"CronJob",DAEMON_SET:"DaemonSet",JOB:"Job",STATEFUL_SET:"StatefulSet",REPLICA_SET:"ReplicaSet",REPLICATION_CONTROLLER:"ReplicationController"},N={[C.DEPLOYMENT]:T.DEPLOYMENT,[C.CRON_JOB]:T.CRON_JOB,[C.DAEMON_SET]:T.DAEMON_SET,[C.JOB]:T.JOB,[C.STATEFUL_SET]:T.STATEFUL_SET,[C.REPLICA_SET]:T.REPLICA_SET,[C.REPLICATION_CONTROLLER]:T.REPLICATION_CONTROLLER},{DAEMON_SET:R,CRON_JOB:O,JOB:I,...L}=(T.DEPLOYMENT,C.DEPLOYMENT,T.CRON_JOB,C.CRON_JOB,T.DAEMON_SET,C.DAEMON_SET,T.JOB,C.JOB,T.STATEFUL_SET,C.STATEFUL_SET,T.REPLICA_SET,C.REPLICA_SET,T.REPLICATION_CONTROLLER,C.REPLICATION_CONTROLLER,C.DAEMON_SET,C.REPLICA_SET,C.STATEFUL_SET,C.DEPLOYMENT,C),D={NODE:"metrics.k8s.io.nodemetrics",POD:"metrics.k8s.io.podmetrics"},P={CLUSTER_REPO:"catalog.cattle.io.clusterrepo",OPERATION:"catalog.cattle.io.operation",APP:"catalog.cattle.io.app",REPO:"catalog.cattle.io.repo"},M={PROJECTHELMCHART:"helm.cattle.io.projecthelmchart"},B={ALERTMANAGER:"monitoring.coreos.com.alertmanager",ALERTMANAGERCONFIG:"monitoring.coreos.com.alertmanagerconfig",PODMONITOR:"monitoring.coreos.com.podmonitor",PROMETHEUS:"monitoring.coreos.com.prometheus",PROMETHEUSRULE:"monitoring.coreos.com.prometheusrule",SERVICEMONITOR:"monitoring.coreos.com.servicemonitor",THANOSRULER:"monitoring.coreos.com.thanosruler",SPOOFED:{RECEIVER:"monitoring.coreos.com.receiver",RECEIVER_SPEC:"monitoring.coreos.com.receiver.spec",RECEIVER_EMAIL:"monitoring.coreos.com.receiver.email",RECEIVER_SLACK:"monitoring.coreos.com.receiver.slack",RECEIVER_WEBHOOK:"monitoring.coreos.com.receiver.webhook",RECEIVER_PAGERDUTY:"monitoring.coreos.com.receiver.pagerduty",RECEIVER_OPSGENIE:"monitoring.coreos.com.receiver.opsgenie",RECEIVER_HTTP_CONFIG:"monitoring.coreos.com.receiver.httpconfig",RESPONDER:"monitoring.coreos.com.receiver.responder",ROUTE:"monitoring.coreos.com.route",ROUTE_SPEC:"monitoring.coreos.com.route.spec"}},F={ENGINES:"longhorn.io.engine",ENGINE_IMAGES:"longhorn.io.engineimage",NODES:"longhorn.io.node",REPLICAS:"longhorn.io.replica",SETTINGS:"longhorn.io.setting",VOLUMES:"longhorn.io.volume"},$="driver.longhorn.io",U="LonghornV1",j="LonghornV2",V="rke.cattle.io.etcdsnapshot",K={AUTH_CONFIG:"management.cattle.io.authconfig",CATALOG_TEMPLATE:"management.cattle.io.catalogtemplate",CLUSTER:"management.cattle.io.cluster",CLUSTER_ROLE_TEMPLATE_BINDING:"management.cattle.io.clusterroletemplatebinding",FEATURE:"management.cattle.io.feature",KONTAINER_DRIVER:"management.cattle.io.kontainerdriver",MULTI_CLUSTER_APP:"management.cattle.io.multiclusterapp",NODE:"management.cattle.io.node",NODE_DRIVER:"management.cattle.io.nodedriver",NODE_POOL:"management.cattle.io.nodepool",NODE_TEMPLATE:"management.cattle.io.nodetemplate",PROJECT:"management.cattle.io.project",PROJECT_ROLE_TEMPLATE_BINDING:"management.cattle.io.projectroletemplatebinding",ROLE_TEMPLATE:"management.cattle.io.roletemplate",SETTING:"management.cattle.io.setting",USER:"management.cattle.io.user",TOKEN:"management.cattle.io.token",GLOBAL_ROLE:"management.cattle.io.globalrole",GLOBAL_ROLE_BINDING:"management.cattle.io.globalrolebinding",PSA:"management.cattle.io.podsecurityadmissionconfigurationtemplate",MANAGED_CHART:"management.cattle.io.managedchart",USER_NOTIFICATION:"management.cattle.io.rancherusernotification",GLOBAL_DNS_PROVIDER:"management.cattle.io.globaldnsprovider",RKE_TEMPLATE:"management.cattle.io.clustertemplate",RKE_TEMPLATE_REVISION:"management.cattle.io.clustertemplaterevision",CLUSTER_PROXY_CONFIG:"management.cattle.io.clusterproxyconfig",OIDC_CLIENT:"management.cattle.io.oidcclient"},G={SUSE:"suse",CSP:"csp",FEDERAL:"federal",RGS:"rgs"},H={USER_ACTIVITY:"ext.cattle.io.useractivity",SELFUSER:"ext.cattle.io.selfuser",GROUP_MEMBERSHIP_REFRESH_REQUESTS:"ext.cattle.io.groupmembershiprefreshrequest",PASSWORD_CHANGE_REQUESTS:"ext.cattle.io.passwordchangerequest",KUBECONFIG:"ext.cattle.io.kubeconfig"},z={CAPI_CLUSTER:"cluster.x-k8s.io.cluster",MACHINE_DEPLOYMENT:"cluster.x-k8s.io.machinedeployment",MACHINE_SET:"cluster.x-k8s.io.machineset",MACHINE:"cluster.x-k8s.io.machine",RANCHER_CLUSTER:"provisioning.cattle.io.cluster",MACHINE_CONFIG_GROUP:"rke-machine-config.cattle.io"},q={APPLICATION:"fleet.cattle.io.application",BUNDLE:"fleet.cattle.io.bundle",BUNDLE_DEPLOYMENT:"fleet.cattle.io.bundledeployment",CLUSTER:"fleet.cattle.io.cluster",CLUSTER_GROUP:"fleet.cattle.io.clustergroup",DASHBOARD:"fleet.cattle.io.dashboard",GIT_REPO:"fleet.cattle.io.gitrepo",HELM_OP:"fleet.cattle.io.helmop",WORKSPACE:"management.cattle.io.fleetworkspace",TOKEN:"fleet.cattle.io.clusterregistrationtoken",BUNDLE_NAMESPACE_MAPPING:"fleet.cattle.io.bundlenamespacemapping",GIT_REPO_RESTRICTION:"fleet.cattle.io.gitreporestriction"},X={VIRTUAL_SERVICE:"networking.istio.io.virtualservice",DESTINATION_RULE:"networking.istio.io.destinationrule",GATEWAY:"networking.istio.io.gateway"},W={CLUSTER_FLOW:"logging.banzaicloud.io.clusterflow",CLUSTER_OUTPUT:"logging.banzaicloud.io.clusteroutput",FLOW:"logging.banzaicloud.io.flow",OUTPUT:"logging.banzaicloud.io.output",SPOOFED:{FILTERS:"logging.banzaicloud.io.output.filters",FILTER:"logging.banzaicloud.io.output.filter",CONCAT:"logging.banzaicloud.io.output.filters.concat",DEDOT:"logging.banzaicloud.io.output.filters.dedot",DETECTEXCEPTIONS:"logging.banzaicloud.io.output.filters.detectExceptions",GEOIP:"logging.banzaicloud.io.output.filters.geoip",GREP:"logging.banzaicloud.io.output.filters.grep",PARSER:"logging.banzaicloud.io.output.filters.parser",PROMETHEUS:"logging.banzaicloud.io.output.filters.prometheus",RECORD_MODIFIER:"logging.banzaicloud.io.output.filters.record_modifier",RECORD_TRANSFORMER:"logging.banzaicloud.io.output.filters.record_transformer",STDOUT:"logging.banzaicloud.io.output.filters.stdout",SUMOLOGIC:"logging.banzaicloud.io.output.filters.sumologic",TAG_NORMALISER:"logging.banzaicloud.io.output.filters.tag_normaliser",THROTTLE:"logging.banzaicloud.io.output.filters.throttle",RECORD:"logging.banzaicloud.io.output.filters.record",REGEXPSECTION:"logging.banzaicloud.io.output.filters.regexpsection",EXCLUDESECTION:"logging.banzaicloud.io.output.filters.excludesection",ORSECTION:"logging.banzaicloud.io.output.filters.orsection",ANDSECTION:"logging.banzaicloud.io.output.filters.andsection",PARSESECTION:"logging.banzaicloud.io.output.filters.parsesection",METRICSECTION:"logging.banzaicloud.io.output.filters.metricsection",REPLACE:"logging.banzaicloud.io.output.filters.replace",SINGLEPARSESECTION:"logging.banzaicloud.io.output.filters.replace.singleparsesection"}},Y={CLUSTER_SCAN:"compliance.cattle.io.clusterscan",CLUSTER_SCAN_PROFILE:"compliance.cattle.io.clusterscanprofile",BENCHMARK:"compliance.cattle.io.clusterscanbenchmark",REPORT:"compliance.cattle.io.clusterscanreport"},Q={NAV_LINK:"ui.cattle.io.navlink"},J={CLUSTER_MEMBERS:"cluster-members",PROJECT_NAMESPACES:"projects-namespaces",NAMESPACES:"namespaces",PROJECT_SECRETS:"projectsecret",JWT_AUTHENTICATION:"jwt.authentication"},Z={CLUSTER:"harvesterhci.io.management.cluster",DASHBOARD:"harvesterhci.io.dashboard",IMAGE:"harvesterhci.io.virtualmachineimage",VGPU_DEVICE:"devices.harvesterhci.io.vgpudevice",SETTING:"harvesterhci.io.setting",RESOURCE_QUOTA:"harvesterhci.io.resourcequota",HARVESTER_CONFIG:"rke-machine-config.cattle.io.harvesterconfig"},ee="harvester",te={HOSTNAME:"Hostname",INTERNAL_IP:"InternalIP",EXTERNAL_IP:"ExternalIP"},ne="fleet-default",re="local",ie="clusterrepo-appco-auth-",ae="0001-01-01T00:00:00Z",oe="Deprecated",se="Experimental",le="kube-system/cluster-autoscaler-status"},83297:function(e,t,n){"use strict";n.d(t,{f$:function(){return i},ji:function(){return o},nv:function(){return a}});let r={Version:"",RancherPrime:"false",GitCommit:""};function i(){return"true"===r.RancherPrime?.toLowerCase()}function a(){return r}const o="2.13"},8135:function(e,t,n){"use strict";n.d(t,{Fm:function(){return s},Mz:function(){return l}});var r=n(68851),i=n(74302),a=n(4364);let o=1;const s="_beforeSaveHooks",l="_afterSaveHooks";t.Ay={methods:{registerBeforeHook(e,t,n=99,r){this._registerHook(s,e,t,n,r)},unregisterBeforeSaveHook(e){this[s]=this[s].filter(t=>t.name!==e)},registerAfterHook(e,t,n=99,r){this._registerHook(l,e,t,n,r)},async applyHooks(e,...t){if(!e)throw new Error("Must specify key");const n=(0,i.Ul)(this[e]||[],["priority","name"]),r={};for(const i of n)a.debug("Applying hook",i.name),r[i.name]=await i.fn.apply(i.fnContext||this,t);return r},_registerHook(e,t,n,i,a){if(!e)throw new Error("Must specify key");n||(n=`hook_${o}`,o++),i||(i=99);let s=this[e];s||(s=[],this[e]=s);let l=(0,r.jq)(s,"name",n);l?(l.priority=i,l.fn=t,l.fnContext=a):(l={name:n,priority:i,fn:t,fnContext:a},s.push(l))}}}},55277:function(e,t){"use strict";t.A={props:{pref:{type:String,default:null},prefKey:{type:String,default:null}},computed:{shown(){let e=!0;if(this.pref){const t=this.$store.getters["prefs/get"](this.pref);e=this.prefKey?!t[this.prefKey]:!t}return e}},methods:{async hide(){if(this.pref){let e=this.$store.getters["prefs/get"](this.pref);this.prefKey&&((!0===e||!1===e||e.length>0)&&(e={}),e[this.prefKey]=!0),await this.$store.dispatch("prefs/set",{key:this.pref,value:e})}}}}},65375:function(e,t,n){"use strict";var r=n(14220),i=n(91462),a=n(99726),o=n(8135),s=n(68851),l=n(35664),c=n(79401),u=n(4364);t.A={name:"CreateEditView",mixins:[o.Ay],emits:["done"],data(){return{errors:[]}},computed:{isCreate(){return this.mode===r.YQ},isEdit(){return this.mode===r.G5},isView(){return this.mode===r.nW},schema(){const e=this.storeOverride||this.$store.getters["currentStore"](this.value.type);return this.$store.getters[`${e}/schemaFor`](this.value.type)},isNamespaced(){return this.schema?.attributes?.namespaced||!1},labels:{get(){return this.value?.labels},set(e){this.value.setLabels(e)}},annotations:{get(){return this.value?.annotations},set(e){this.value.setAnnotations(e)}},doneRoute(){if(this.value?.doneRoute)return this.value.doneRoute;let e=this.$route.name;return e?.endsWith("-id")?e=e.replace(/(-namespace)?-id$/,""):e?.endsWith("-create")&&(e=e.replace(/-create$/,"")),e},doneParams(){if(this.value?.doneParams)return this.value.doneParams;const e={...this.$route.params};return delete e.namespace,delete e.id,e}},methods:{done(){if(!this.doneEvent)return this.doneLocationOverride?this.$router.replace(this.doneLocationOverride):void(this.doneRoute&&this.$router.replace({name:this.doneRoute,params:this.doneParams||{resource:this.value.type}}));this.$emit("done")},async conflict(){return await(0,c.Rq)(this.initialValue,this.value,this.liveValue,{dispatch:this.$store.dispatch,getters:this.$store.getters},this.storeOverride||this.$store.getters["currentStore"](this.value.type))},async save(e,t,n=0){this.errors&&(0,s.IU)(this.errors);try{if(await this.applyHooks(o.Fm,this.value),this.value?.metadata?.labels&&0===Object.keys(this.value.metadata.labels||{}).length&&delete this.value.metadata.labels,this.value?.metadata?.annotations&&0===Object.keys(this.value.metadata.annotations||{}).length&&delete this.value.metadata.annotations,this.isCreate){const e=this.value?.metadata?.namespace;e&&e!==l.eo&&this.value.$dispatch("prefs/set",{key:i.Ri,value:e},{root:!0})}await this.actuallySave(t),this.$store.getters["type-map/isSpoofed"](this.value.type)&&await this.$store.dispatch("cluster/findAll",{type:this.value.type,opt:{force:!0}},{root:!0}),await this.applyHooks(o.Mz,this.value),e&&e(!0),this.done()}catch(r){const i=409===r.status||409===r._status;if(i&&0===n&&this.isEdit){const r=await this.conflict();if(!1===r)return this.save(e,t,n+1);this.errors=r}else this.errors=(0,a.rz)(r);u.error("CreateEditView mixin failed to save: ",r),e&&e(!1)}},async actuallySave(e){if(this.isCreate){e=e||this.schema.linkFor("collection");const t=await this.value.save({url:e});t&&Object.assign(this.value,t)}else await this.value.save()},setErrors(e){this.errors=e}}}},91825:function(e,t,n){"use strict";var r=n(14220),i=n(9274),a=n(65375);t.A=(0,i.defineComponent)({...a.A,props:{mode:{type:String,default:r.G5},realMode:{type:String,default:r.G5},as:{type:String,default:r.zD},value:{type:Object,required:!0},initialValue:{type:Object,default:null},liveValue:{type:Object,default:null},doneEvent:{type:Boolean,default:!1},useTabbedHash:{type:Boolean,default:void 0},defaultTab:{type:String,default:void 0}}})},77651:function(e,t,n){"use strict";var r=n(76978),i=n(71274);t.A={data(){return{fvFormRuleSets:[],fvReportedValidationPaths:[]}},methods:{fvGetPathRules(e){return this.fvRulesets.find(t=>t.path===e)?.rules||[]},fvGetAndReportPathRules(e){const t=this.fvGetPathRules(e);return t.length>0&&!this.fvReportedValidationPaths.includes(e)&&(this.fvReportedValidationPaths=[...this.fvReportedValidationPaths,e]),t},fvGetPathValues(e){const t=this.fvRulesets.find(t=>t.path===e);return t?(0,r.Ib)(t?.rootObject||this.value,t?.path):[]},fvGetValues(e,t,n){return n.length>1&&"object"===typeof e&&!Array.isArray(e)&&null!==e?{...e,idx:t}:e},fvGetPathErrors(e=[]){const t=e.reduce((e,t)=>{const n=[],r=this.fvGetPathRules(t),i=this.fvGetPathValues(t).map(this.fvGetValues);return r.forEach(e=>{i.forEach(t=>{n.push(e(t))})}),[...e,...n].filter(Boolean)},[]);return t}},computed:{fvExtraRules(){return{}},fvRulesets(){const e=()=>{};return[...this.fvFormRuleSets.map(t=>{const n={...(0,i.A)(this.$store.getters["i18n/t"],{displayKey:t?.translationKey?this.$store.getters["i18n/t"](t.translationKey):"Value"}),...this.fvExtraRules};return{...t,rules:t.rules.map(t=>n[t]||e),formValidationRule:!0}}),...(this?.value?.modelValidationRules||[]).map(e=>({...e,formValidationRule:!1}))]},fvUnreportedValidationErrors(){const e=this.fvRulesets.filter(e=>!!e.formValidationRule&&!this.fvReportedValidationPaths.includes(e.path)).map(e=>e.path),t=this.fvGetPathErrors(e),n=this.value.customValidationErrors?this.value.customValidationErrors(this.value,this.fvReportedValidationPaths):[];return[...t,...n,...this.errors||[]]},fvValidationErrors(){const e=this.fvRulesets.filter(e=>!!e.formValidationRule).map(e=>e.path),t=this.fvGetPathErrors(e),n=this.value.customValidationErrors?this.value.customValidationErrors(this.value):[];return[...t,...n]},fvFormIsValid(){return 0===this.fvValidationErrors.length}}}},23667:function(e,t,n){"use strict";n.d(t,{A:function(){return w}});var r=n(65359),i=n(35664),a=n(9262),o=n(18110),s=n(90703),l=n(81565),c={data(){return{forceUpdateLiveAndDelayed:0}},computed:{...(0,r.L8)(["currentProduct","currentCluster","namespaceFilters"]),namespaceFilterRequired(){return this.__namespaceRequired&&!this.__validFilter},namespaceFilter(){return this.__namespaceRequired?this.__validFilter:""},__validFilter(){const e=this.namespaceFilters.length&&this.namespaceFilters.every(e=>e.startsWith(o.EF)||e.startsWith(o.xs));return e?this.namespaceFilters:null},__namespaceRequired(){return!!l.A.isEnabled(this.$store.getters)&&this.__areResourcesNamespaced},__areResourcesNamespaced(){return"cluster"===this.currentProduct.inStore&&(this.loadResources||[]).every(e=>{const t=this.$store.getters["cluster/schemaFor"](e);return t?.attributes?.namespaced})}},watch:{async namespaceFilter(e){e&&(this.$options.name!==s.v&&this.$fetch&&await this.$fetch(),this.forceUpdateLiveAndDelayed=(new Date).getTime())}}},u=n(91462),d=n(15092),h=n(12784),p=n.n(h),f=n(50025),m=n(82637),g=n(88343),v={props:{namespaced:{type:Boolean,default:null},context:{type:String,default:null}},data(){return{forceUpdateLiveAndDelayed:0,pPagination:null,debouncedSetPagination:p()(this.setPagination,50),requestFilters:{filters:[],projectsOrNamespaces:[]},paginationFromList:null,isPaginationManualRefreshEnabled:d.A.isListManualRefreshEnabled({rootGetters:this.$store.getters})}},methods:{setPagination(e){e&&(this.pPagination=e)},paginationChanged(e){if(!e)return;this.paginationFromList=e;const{page:t,perPage:n,filter:r,sort:i,descending:a}=e,o=r.searchQuery?r.searchFields.map(e=>new f.Js({field:e,value:r.searchQuery,exact:!1})):[],s=new f.gR({page:t,pageSize:n,sort:i?.map(e=>({field:e,asc:!a})),projectsOrNamespaces:this.requestFilters.projectsOrNamespaces,filters:[new f.eY({fields:o}),...this.requestFilters.filters]});this.debouncedSetPagination(s)},paginationEqual(e,t){return!!e.page&&!!d.A.paginationEqual(e,t)},calcCanPaginate(){if(!this.resource)return!1;const e={id:this.resource.id||this.resource,context:this.context};return this.$store.getters[`${this.overrideInStore||this.inStore}/paginationEnabled`]?.(e)}},computed:{...(0,r.L8)(["currentProduct","isAllNamespaces"]),namespaceFilters(){return this.$store.getters["namespaceFilters"]},paginationNsFilterRequired(){return this.canPaginate&&!this.__validPaginationNsFilter},__validPaginationNsFilter(){return d.A.validateNsProjectFilters(this.namespaceFilters)},isResourceList(){return!!this.hasListComponent},pagination(){if(!this.isResourceList)return this.canPaginate?this.pPagination:""},canPaginate(){if(!this.isResourceList)return this.calcCanPaginate()},paginationResult(){if(!this.isResourceList&&this.canPaginate)return this.havePaginated?.result},havePaginated(){if(!this.isResourceList)return this.$store.getters[`${this.overrideInStore||this.inStore}/havePage`](this.resource)},productHidesSystemNamespaces(){return this.currentProduct?.hideSystemResources},showDynamicRancherNamespaces(){return this.$store.getters["prefs/get"](u.Pz)},isNamespaced(){return null!==this.namespaced?!!this.namespaced:this.schema?.attributes?.namespaced}},watch:{rows(e){this.canPaginate&&this.pagination&&!this.isResourceList&&this.pagination.page>1&&0===e.length&&this.setPagination({...this.pagination,page:this.pagination.page-1})},namespaceFilters:{immediate:!0,async handler(e,t){if(!this.canPaginate||!this.isNamespaced)return;if(this.isResourceList)return;const n=!e||0===e.length||e[0]===o.tj,r=!t||0===t.length||t[0]===o.tj;if(n&&r){const e=this.isAllNamespaces&&(!this.showDynamicRancherNamespaces||this.productHidesSystemNamespaces);if(!e)return}if(1===e.length&&[o.x8,o.TD].includes(e[0]))return;const{projectsOrNamespaces:a,filters:s}=m.A.createParamsFromNsFilter({allNamespaces:this.$store.getters[`${this.currentProduct?.inStore}/all`](i.CU),selection:e,isAllNamespaces:this.isAllNamespaces,isLocalCluster:this.$store.getters["currentCluster"].isLocal,showReservedRancherNamespaces:this.showDynamicRancherNamespaces,productHidesSystemNamespaces:this.productHidesSystemNamespaces});this.requestFilters.filters=s,this.requestFilters.projectsOrNamespaces=a}},"requestFilters.filters"(){this.paginationChanged(this.paginationFromList)},"requestFilters.projectsOrNamespaces"(){this.paginationChanged(this.paginationFromList)},async pagination(e,t){this.canPaginate&&(this.isResourceList||e&&this.$options.name!==s.v&&this.$fetch&&!this.paginationEqual(e,t)&&(await this.$fetch(!1),this.forceUpdateLiveAndDelayed=(new Date).getTime()))},async paginationResult(e,t){this.fetchPageSecondaryResources&&e&&e.timestamp!==t?.timestamp&&await this.fetchPageSecondaryResources({canPaginate:this.canPaginate,force:!1,page:this.rows,pagResult:this.paginationResult})}},async beforeUnmount(){if(this.havePaginated){const e={type:this.resource,mode:g.g.RESOURCE_CHANGES};await this.$store.dispatch(`${this.overrideInStore||this.inStore}/forgetType`,this.resource,t=>t.type===e.type&&t.mode===e.type.mode)}}},b=n(10257),y=n(4364);const _=4;var w={mixins:[c,v],inheritAttrs:!1,data(){const e=this.$store.getters["management/byId"](i.Mc.SETTING,a.HG.UI_PERFORMANCE);let t={};if(e&&e.value)try{t=JSON.parse(e.value)}catch(s){y.warn("ui-performance setting contains invalid data")}else t=a.$8;const n={...this.$route.params},r=n.resource||this.schema?.id,o=this.$store.getters["currentStore"](r);return{inStore:o,perfConfig:t,init:!1,multipleResources:[],loadResources:[r],hasManualRefresh:!1,watch:!0,isTooManyItemsToAutoUpdate:!1,force:!1,incremental:!1,fetchedResourceType:[],paginating:null,isFirstLoad:!0}},beforeUnmount(){this.init&&(this.$store.dispatch("resource-fetch/clearData"),this.fetchedResourceType.forEach(e=>{this.$store.dispatch(`${e.currStore}/incrementLoadCounter`,e.type)}))},props:{localFilter:{type:Function,default:null},apiFilter:{type:Function,default:null},includeAssociatedData:{type:Boolean,default:!1}},computed:{...(0,r.L8)({refreshFlag:"resource-fetch/refreshFlag"}),rows(){const e=this.fetchedResourceType.find(e=>e.type===this.resource);if(e){const t=this.$store.getters[`${e.currStore}/all`](this.resource);if(!this.canPaginate)return this.localFilter?this.localFilter(t):t;if(this.havePaginated)return t}return[]},loading(){return this.canPaginate?null===this.paginating||this.paginating:!this.rows.length&&this.$fetchState.pending}},watch:{async refreshFlag(e){this.init&&e&&(await this.$fetch(),this.clearSelection&&this.clearSelection(),this.canPaginate&&this.fetchPageSecondaryResources&&this.fetchPageSecondaryResources({canPaginate:this.canPaginate,force:!0,page:this.rows,pagResult:this.paginationResult}))},loading(e,t){t&&!e&&(this.isFirstLoad=!1)}},methods:{$initializeFetchData(e,t=[],n){if(!this.init){const r=n||this.$store.getters["currentStore"]();this.__gatherResourceFetchData(e,t,r),this.watch||(this.force=!0),this.isTooManyItemsToAutoUpdate&&(this.hasManualRefresh=!0)}},$fetchType(e,t=[],n){const r=n||this.$store.getters["currentStore"]();this.$initializeFetchData(e,t,r),this.fetchedResourceType.find(t=>t.type===e)||this.fetchedResourceType.push({type:e,currStore:r});const i=this.$store.getters[`${r}/schemaFor`](e);if(this.canPaginate){if(!this.pagination)return;const t={hasManualRefresh:this.hasManualRefresh,pagination:{...this.pagination},force:null!==this.paginating,includeAssociatedData:this.includeAssociatedData};this.apiFilter&&(t.paginating=this.apiFilter(t.pagination)),this["paginating"]=!0;const n=this;return this.$store.dispatch(`${r}/findPage`,{type:e,opt:t}).finally(()=>n["paginating"]=!1)}let a=null;if(this.incremental){const t=this.__getCountForResources([e],this.namespaceFilter,r);a={quickLoadCount:100,resourcesPerIncrement:Math.ceil(t/_),increments:_,pageByNumber:this.$store.getters[`${this.inStore}/paginationEnabled`]?.()}}const o={incremental:a,watch:this.watch,force:this.force,hasManualRefresh:this.hasManualRefresh};return i?.attributes?.namespaced&&(o.namespaced=this.namespaceFilter),this.$store.dispatch(`${r}/findAll`,{type:e,opt:o})},__getCountForResources(e,t,n){const r=n||this.$store.getters["currentStore"]();return e.reduce((e,n)=>e+this.__getCountForResource(n,t,r),0)},__getCountForResource(e,t,n){const r=n||this.$store.getters["currentStore"](),a=this.$store.getters[`${r}/all`](i.i2)[0]?.counts[`${e}`],o=t&&a?.namespaces?a?.namespaces[t]?.count:a?.summary?.count;return o||0},__gatherResourceFetchData(e,t,n){this.init=!0;const r=b.A.manualRefreshUtils.isEnabled(this.calcCanPaginate(),this.perfConfig),i=parseInt(this.perfConfig?.manualRefresh?.threshold||"0",10),a=b.A.incrementalLoadingUtils.isEnabled(this.calcCanPaginate(),this.perfConfig),o=parseInt(this.perfConfig?.incrementalLoading?.threshold||"0",10);this.multipleResources=t;let s=0,l=!0,c=!1,u=!1;const d=this.multipleResources.length?this.multipleResources:[e];s=this.__getCountForResources(d,this.namespaceFilter,n),r&&s>=i?(l=!1,c=!0):this.canPaginate&&this.isPaginationManualRefreshEnabled&&(c=!0),u=a&&o>0&&s>=o,this.$store.dispatch("resource-fetch/updateIsTooManyItems",c),this.watch=l,this.isTooManyItemsToAutoUpdate=c,this.incremental=u}}}},89626:function(e,t){"use strict";t.A={methods:{mappedKeys(e,t){const n={...e};return n[9]=e=>{t.open&&e.preventDefault()},n[27]=e=>(e.preventDefault(),e.stopPropagation(),this.isOpen=!1,t.open=!1,t.search="",this.$refs.select.focus(),!1),n[13]=(e,n)=>{if(!t.open)return void(t.open=!0);if(-1===t.typeAheadPointer)return;let r=t.filteredOptions[t.typeAheadPointer];t.$emit("option:selecting",r),t.isOptionSelected(r)||(t.taggable&&!t.optionExists(r)&&t.$emit("option:created",r),t.multiple&&(r=t.selectedValue.concat(r)),t.updateValue(r),t.$emit("option:selected",r),t.closeOnSelect&&(t.open=!1,t.typeAheadPointer=-1),t.clearSearchOnSelect&&(t.search=""))},n[38]=e=>(e.preventDefault(),t.open||(t.open=!0),t.typeAheadUp()),n[40]=e=>(e.preventDefault(),t.open||(t.open=!0),t.typeAheadDown()),n}}}},98962:function(e,t,n){"use strict";n.r(t);var r=n(22513);describe("class: ComplianceProfile",()=>{describe("getter: numberTestsSkipped",()=>{it("should return 0 if skipTests is not present in spec",()=>{const e=new r["default"]({spec:{}});expect(e.numberTestsSkipped).toBe(0)}),it("should return 0 if skipTests is null",()=>{const e=new r["default"]({spec:{skipTests:null}});expect(e.numberTestsSkipped).toBe(0)}),it("should return 0 if skipTests is an empty array",()=>{const e=new r["default"]({spec:{skipTests:[]}});expect(e.numberTestsSkipped).toBe(0)}),it("should return the correct number of skipped tests",()=>{const e=["test-1","test-2","test-3"],t=new r["default"]({spec:{skipTests:e}});expect(t.numberTestsSkipped).toBe(e.length)})})})},426:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(14220),i=n(89865);const a={KIND_SEPARATOR:"://",GROUP_SEPARATOR:":",BASE_SEPARATOR:"*",ID_SEPARATOR:":",KIND_ALL:"containers",SYSTEM_CATEGORIES:["Rancher services"],CATALOG_DEFAULT_GROUP:"library"};function o(e){const t={kind:null,group:null,base:null,id:null,name:null,version:null};if(!e)return t;const n=e.indexOf(a.KIND_SEPARATOR);if(n>=0){t.kind=e.substr(0,n);let r=e.substr(n+a.KIND_SEPARATOR.length+1);t.id=e,r=r.split("&"),r.forEach(e=>{const[n,r]=e.split("=");t[n]=r})}let r=t.catalog;return r=r.includes("/")?r.replace("/",":"):`cattle-global-data:${r}`,t.templateId=`${r}-${t.template}`,t.templateVersionId=`${r}-${t.template}-${t.version}`,t}class s extends i.A{get appEditUrl(){return this.detailLocation}goToEdit(e={}){const t=this.appEditUrl;t.query={...t.query,[r.g]:r.G5,...e},this.currentRouter().push(t)}get currentVersion(){return o(this.externalId).version}}},54686:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(87811);class i extends r.A{get revisionNumber(){return this.revision}}},89395:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(70775);class i extends r["default"]{async rollBack(e,t,n){const r=[{op:"replace",path:"/spec/template",value:{metadata:n.data.spec.template.metadata,spec:n.data.spec.template.spec}},{op:"replace",path:"/metadata/generation",value:n.revision}];await this.rollBackWorkload(e,t,"daemonsets",r)}}},41212:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(35664),i=n(70775);const a=["kubectl.kubernetes.io/last-applied-configuration","deployment.kubernetes.io/revision","deployment.kubernetes.io/revision-history","deployment.kubernetes.io/desired-replicas","deployment.kubernetes.io/max-replicas","deprecated.deployment.rollback.to"],o=/Replicas: (\d+)/;class s extends i["default"]{get replicaSetId(){const e=this.metadata?.relationships||[],t=e.filter(e=>"owner"===e.rel&&e.toType===r.oU.REPLICA_SET),n=t.find(e=>{const t=e.message?.match(o),n=t?parseInt(t[1],10):0;return n>0}),i=n||t[0];return i?.toId?.replace(`${this.namespace}/`,"")}async rollBack(e,t,n){const r=[{op:"replace",path:"/spec/template",value:{metadata:{creationTimestamp:null,labels:Object.keys(n.spec.template.metadata?.labels||{}).reduce((e,t)=>("pod-template-hash"!==t&&(e[t]=n.spec.template.metadata.labels[t]),e),{}),annotations:Object.keys(n.spec.template.metadata?.annotations||{}).reduce((e,t)=>(a.includes(t)||(e[t]=n.spec.template.metadata.annotations[t]),e),{})},spec:n.spec.template.spec}},{op:"replace",path:"/metadata/annotations",value:{"deployment.kubernetes.io/revision":n.metadata.annotations["deployment.kubernetes.io/revision"]}}];await this.rollBackWorkload(e,t,"deployments",r)}}},77763:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(70775);class i extends r["default"]{get revisionNumber(){if(this.ownedByWorkload)return this.metadata.annotations["deployment.kubernetes.io/revision"]}}},86791:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(70775),i=n(35664);class a extends r["default"]{async rollBack(e,t,n){const r=[{op:"replace",path:"/spec/template",value:{metadata:n.data.spec.template.metadata,spec:n.data.spec.template.spec}},{op:"replace",path:"/metadata/generation",value:n.revision}];await this.rollBackWorkload(e,t,"statefulsets",r)}get pods(){return this.podMatchExpression?super.pods.filter(e=>{if(e.metadata?.ownerReferences?.length){const t=e.metadata?.ownerReferences?.find(e=>e.kind===i.rW[i.oU.STATEFUL_SET]);if(t)return`${e.metadata.namespace}/${t.name}`===this.id}return!1}):[]}}},8488:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(68851),i=n(87811);class a extends i.A{get _availableActions(){const e=super._availableActions;return(0,r.PT)(e,0,{action:"enable",label:this.t("action.enable"),icon:"icon icon-play",enabled:(this.canEdit||this.canEditYaml)&&!this.spec.enabled,bulkable:!0,weight:2}),(0,r.PT)(e,0,{action:"disable",label:this.t("action.disable"),icon:"icon icon-pause",enabled:(this.canEdit||this.canEditYaml)&&this.spec.enabled,bulkable:!0,weight:1}),e}enable(){this.enableOrDisable("enable")}disable(){this.enableOrDisable("disable")}async enableOrDisable(e){const t=await this.$dispatch("rancher/clone",{resource:this},{root:!0});t.spec.enabled="enable"===e,await t.save().catch(t=>{this.$dispatch("growl/fromError",{title:this.t("auditPolicy.error.enableOrDisable",{flag:e,id:this.id}),err:t,timeout:5e3},{root:!0})})}}},20763:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(87811);class i extends r.A{get customValidationRules(){return[{nullable:!1,path:"metadata.name",required:!0,translationKey:"generic.name",type:"dnsLabel"}]}get details(){const{spec:e={},status:t}=this,n=[{label:e?.scaleTargetRef?.kind??this.t("hpa.tabs.workload"),content:e?.scaleTargetRef?.name},{label:this.t("hpa.workloadTab.min"),content:e?.minReplicas},{label:this.t("hpa.workloadTab.max"),content:e?.maxReplicas},{label:this.t("hpa.workloadTab.current"),content:t?.currentReplicas??0},{label:this.t("hpa.workloadTab.last"),content:t?.lastScaleTime,formatter:"LiveDate"}];return n}}},43020:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(68851),i=n(76978),a=n(35664),o=n(70775);class s extends o["default"]{get state(){return this.spec?.suspend?"suspended":super.state}get _availableActions(){const e=super._availableActions,t=this.spec?.suspend||!1,n=this.$getters["schemaFor"](a.oU.JOB),i=!!n?.collectionMethods.find(e=>["blocked-post","post"].includes(e.toLowerCase()));return(0,r.PT)(e,0,{action:"runNow",label:this.t("action.runNow"),icon:"icon icon-spinner",enabled:i,bulkable:!0}),(0,r.PT)(e,1,{action:"suspend",label:this.t("action.suspend"),icon:"icon icon-pause",enabled:!t&&this.canUpdate,bulkable:!0}),(0,r.PT)(e,2,{action:"resume",label:this.t("action.resume"),icon:"icon icon-play",enabled:t&&this.canUpdate,bulkable:!0}),e}async runNow(){const e={apiVersion:this.apiVersion,controller:!0,kind:this.kind,name:this.metadata.name,uid:this.metadata.uid},t=await this.$dispatch("create",{type:a.oU.JOB,kind:a.rW[a.oU.JOB],...(0,i.o8)(this.spec.jobTemplate)});t.metadata=t.metadata||{},t.metadata.namespace=this.metadata.namespace,t.metadata.name=`${this.metadata.name}-${Date.now()}`,t.metadata.ownerReferences=[e],await t.save(),t.goToDetail()}suspend(){this.spec.suspend=!0,this.save()}resume(){this.spec.suspend=!1,this.save()}}},66184:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(70775),i=n(51481);class a extends r["default"]{get duration(){const e=this.$getters["schemaFor"](this.type),t=this.$rootGetters["type-map/rowValueGetter"],{completionTime:n,startTime:r}=this.status,a=e&&t?t(e,"Duration")(this):null,o=a&&r?(0,i.Fp)(r,n||new Date):0;return{value:n?{staticValue:a}:{startTime:r},seconds:o}}}},65502:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return p}});var r=n(14220),i=n(2841),a=n(83288),o=n(68851),s=n(35664),l=n(91462),c=n(76978),u=n(87811),d=n(97707),h=n(4364);class p extends u.A{showMasthead(e){return e===r.nW}applyDefaults(){(0,c.hZ)(this,"disableOpenApiValidation",!1),(0,c.hZ)(this,"noHooks",!1),(0,c.hZ)(this,"skipCRDs",!1),(0,c.hZ)(this,"timeout",300),(0,c.hZ)(this,"wait",!0),(0,c.hZ)(this,"upgradeAvailableVersion","")}get _availableActions(){const e=super._availableActions,t={action:"goToUpgrade",enabled:!0,icon:"icon icon-edit",label:this.t("catalog.install.action.goToUpgrade")};return e.unshift(t),e}get warnDeletionMessage(){if(this.upgradeAvailable===d.I0.NOT_APPLICABLE){const e=this.spec?.chart?.metadata?.annotations?.[i.W8.MANAGED]||"Rancher";return this.t("catalog.delete.warning.managed",{manager:"true"===e?"Rancher":e,name:this.name})}return null}matchingCharts(e){const t=this.spec?.chart;if(!t)return[];const n=t.metadata?.name,r=t.metadata?.annotations?.[i.W8.SOURCE_REPO_NAME]||this.metadata?.labels?.[i.W8.CLUSTER_REPO_NAME],a=this.$rootGetters["catalog/chart"]({chartName:n,repoName:r,includeHidden:e,multiple:!0})||[];if(0===a.length)return[];const o=t?.metadata?.home,s=a.filter(({versions:e})=>{if(o===e[0]?.home)return!0;for(let t=1;t<e.length;t++){const{version:n,home:r}=e[t];if(n===this.currentVersion&&r===o)return!0}return!1});return s}get currentVersion(){return this.spec?.chart?.metadata?.version}get upgradeAvailable(){if(this.spec?.chart?.metadata?.annotations?.[i.W8.MANAGED]||this.spec?.chart?.metadata?.annotations?.[i.Hs.BUNDLE_ID])return d.I0.NOT_APPLICABLE;const e=this.matchingCharts(!1);return 0===e.length?d.I0.NO_UPGRADE:1===e.length?this.evaluateUpgradeForChart(e[0]):this.handleMultipleUpgradeMatches(e)}evaluateUpgradeForChart(e){const t=this.$rootGetters["currentCluster"].workerOSs,n=this.$rootGetters["prefs/get"](l.kJ);let r=e.versions;n||(r=e.versions.filter(e=>!(0,a.V1)(e.version))),r=(0,d.bh)(e,t,n);const i=r?.[0],o=i?.version;return this.currentVersion&&o&&(0,a.UD)(this.currentVersion,o)<0?(this.upgradeAvailableVersion=f(o),d.I0.SINGLE_UPGRADE):d.I0.NO_UPGRADE}handleMultipleUpgradeMatches(e){const t=[];for(const n of e){const e=this.evaluateUpgradeForChart(n);e===d.I0.SINGLE_UPGRADE&&t.push(n)}if(t.length>1)return d.I0.MULTIPLE_UPGRADES;if(1===t.length){const e=t[0]?.versions?.[0]?.version;return this.upgradeAvailableVersion=f(e),d.I0.SINGLE_UPGRADE}return d.I0.NO_UPGRADE}get upgradeAvailableSort(){return this.upgradeAvailable===d.I0.SINGLE_UPGRADE?(0,a.Xt)(this.upgradeAvailableVersion):"~"}get currentVersionCompatible(){const e=this.$rootGetters["currentCluster"].workerOSs,t=this.matchingCharts(!1)[0];if(!t)return!0;const n=t.versions.find(e=>e.version===this.currentVersion);if(!n)return!0;const r=(0,d.bh)(t,e,!0)||[],i=!!r.find(e=>e.version===this.currentVersion);return i}get stateDescription(){return this.currentVersionCompatible?null:this.upgradeAvailableVersion?this.t("catalog.os.versionIncompatible"):this.t("catalog.os.chartIncompatible")}goToUpgrade(e,t){const n=this.matchingCharts(!0)[0],i={[r.CU]:this.metadata.namespace,[r.o_]:this.metadata.name,[r.xv]:e||this.currentVersion};n&&(i[r.NO]=n.repoName,i[r.Eo]=n.repoType,i[r.RX]=n.chartName),t&&(i[r.Rm]=r.Qp),this.currentRouter().push({name:"c-cluster-apps-charts-install",params:{product:this.$rootGetters["productId"],cluster:this.$rootGetters["clusterId"]},query:i})}get details(){const e=this.$rootGetters["i18n/t"],t=this.spec?.info?.firstDeployed,n=this.spec?.info?.lastDeployed;return t&&n&&t!==n?[{label:e('model."catalog.cattle.io.app".lastDeployed'),formatter:"LiveDate",content:n}]:[]}get nameDisplay(){const e=this.spec?.name||this.metadata?.name||this.id||"";return e}get chartDisplay(){const e=this.spec?.chart?.metadata?.name||"?";return`${e}:${this.versionDisplay}`}get versionDisplay(){return f(this.currentVersion)}get versionSort(){return(0,a.Xt)(this.versionDisplay)}async remove(e={}){const t=await this.doAction("uninstall",e),n=await this.$dispatch("find",{type:s.W8.OPERATION,id:`${t.operationNamespace}/${t.operationName}`});try{await n.waitForLink("logs"),n.openLogs()}catch(r){}}get relatedResourcesToRemove(){return async()=>{const e=this.spec?.chart?.metadata?.annotations?.[i.W8.AUTO_INSTALL]?.replace("=match","");return await this.$dispatch("find",{type:s.W8.APP,id:`${this.metadata.namespace}/${e}`})}}get canDelete(){return this.hasAction("uninstall")}get deployedResources(){return(0,o.WP)(this.metadata?.relationships||[],"rel","helmresource")}get deployedAsMultiCluster(){return async()=>{try{const e=await this.$dispatch("management/findAll",{type:s.Mc.MULTI_CLUSTER_APP},{root:!0}).catch(()=>{throw new Error("You don't have permission to list multi-cluster apps")});if(e)return e.find(e=>e.spec?.targets?.find(e=>e.appName===this.metadata?.name))}catch(e){}return!1}}async deployedAsLegacy(){if(await this.fetchValues(),this.values?.global){const{clusterName:t,projectName:n}=this.values.global;if(t&&n)try{const e=await this.$dispatch("rancher/find",{type:s.k$.APP,id:`${n}:${this.metadata?.name}`,opt:{url:`/v3/project/${t}:${n}/apps/${n}:${this.metadata?.name}`}},{root:!0});if(e)return e}catch(e){}}return!1}async fetchValues(e=!1){if(!this.secretId)return;const t=!!this._values&&!!this._chartValues;if(!t||e)try{await this.$dispatch("find",{type:s.bB,id:this.secretId,opt:{force:e||!!this._secret&&!t,watch:!1,params:{includeHelmData:!0}}})}catch(n){h.error(`Cannot find values for ${this.id} (unable to fetch)`,n)}}get secretId(){const e=this.metadata,t=e.ownerReferences?.find(e=>e.kind.toLowerCase()===s.bB),n=t?.name,r=e.namespace;return r&&n?`${r}/${n}`:(h.warn(`Cannot find values for ${this.id} (cannot find related secret namespace or id)`),null)}get _secret(){return this.secretId?this.$getters["byId"](s.bB,this.secretId):null}_validateSecret(e){if(void 0===this._secret)throw new Error(`Cannot find ${e} for ${this.id} (chart secret has not been fetched via app \`fetchValues\`)`);if(null===this._secret)throw new Error(`Cannot find ${e} for ${this.id} (chart secret cannot or has failed to fetch) `)}get valuesLoaded(){return!!this._values&&!!this._chartValues}get values(){return this._validateSecret("values"),this._values}get _values(){return this._secret?.data?.release?.config}get chartValues(){return this._validateSecret("chartValues"),this._chartValues}get _chartValues(){return this._secret?.data?.release?.chart?.values}}function f(e){if(!e)return"?";e.match(/^v/i)&&(e=e.substr(1));const t=e.match(/[0-9a-f]{32,}/);return t&&(e=e.replace(t[0],t[0].substr(0,7))),e}},48723:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var r=n(50667),i=n(2841),a=n(68851),o=n(35664),s=n(40408),l=n(14220),c=n(87811);class u extends c.A{applyDefaults(){this.spec||(this["spec"]={url:""})}get _isClusterRepoDisabled(){return!1===this.spec?.enabled}get _availableActions(){const e=super._availableActions;return(0,a.PT)(e,0,{divider:!0}),this._isClusterRepoDisabled?(0,a.PT)(e,1,{action:"enableClusterRepo",label:this.t("action.enable"),icon:"icon icon-play",enabled:!0,bulkable:!0}):((0,a.PT)(e,1,{action:"disableClusterRepo",label:this.t("action.disable"),icon:"icon icon-pause",enabled:!0,bulkable:!0}),(0,a.PT)(e,0,{action:"refresh",label:this.t("action.refresh"),icon:"icon icon-refresh",enabled:!!this.links.update,bulkable:!0})),e}async refresh(){const e=(new Date).toISOString().replace(/\.\d+Z$/,"Z");this.spec.forceUpdate=e,await this.save(),await this.waitForState("active",1e4,1e3),this.$dispatch("catalog/load",{force:!0,reset:!0},{root:!0})}async disableClusterRepo(){this.spec.enabled=!1,await this.save()}async enableClusterRepo(){this.spec.enabled=!0,await this.save()}get isGit(){return!!this.spec?.gitRepo}get isOciType(){const e="oci"===this.spec.url?.split(":")[0],t=Object.prototype.hasOwnProperty.call(this.spec,"insecurePlainHttp");return e||t}get isRancherSource(){let e;return(!this.spec?.url||!this.spec?.gitRepo)&&(!!(this.spec?.url&&(e=(0,r.qg)(this.spec.url),e&&t(e.host)))||!!(this.spec?.gitRepo&&(e=(0,r.qg)(this.spec.gitRepo),e&&t(e.host))));function t(e){return e=(e||"").toLowerCase(),"rancher.io"===e||e.endsWith(".rancher.io")}}get isRancher(){return this.isRancherSource&&"rancher-charts"===this.metadata.name}get isPartner(){return this.isRancherSource&&"rancher-partner-charts"===this.metadata.name}get color(){if(this.isRancher)return"rancher";if(this.isPartner)return"partner";{const e=parseInt(this.metadata?.annotations?.[i.W8.COLOR],10);return isNaN(e)||e<=0||e>8?null:`color${e}`}}get canLoad(){return"active"===this.metadata?.state?.name}get isSuseAppCollectionFromUI(){return this.metadata?.annotations?.[i.W8.SUSE_APP_COLLECTION]}get isSuseAppCollection(){return this.isSuseAppCollectionFromUI||this.spec?.url?.startsWith("oci://dp.apps.rancher.io/charts")}get typeDisplay(){return this.isSuseAppCollectionFromUI?"SUSE AppCo":this.spec.gitRepo?"git":this.spec.url?this.isOciType?"oci":"http":"?"}get nameDisplay(){const e=this.metadata?.name,t=`catalog.repo.name."${e}"`;return this.$rootGetters["i18n/withFallback"](t,null,e)}detailPageHeaderActionOverride(e){return e===l.YQ?this.t("catalog.repo.add"):null}get urlDisplay(){return this.status?.url||this.spec.gitRepo||this.spec.url}get branchDisplay(){return this.spec?.gitBranch||"(default)"}get details(){return[{label:"Type",content:this.typeDisplay},{label:"Downloaded",content:this.status.downloadTime,formatter:"LiveDate",formatterOpts:{addSuffix:!0}}]}get stateObj(){return this.metadata?.state?{...this.metadata.state,transitioning:!(this.metadata.generation>this.status?.observedGeneration)&&this.metadata.state.transitioning}:void 0}get stateDisplay(){return this._isClusterRepoDisabled?this.t("generic.disabled"):(0,s.ch)(this.state)}get stateBackground(){return this._isClusterRepoDisabled?"badge-disabled":(0,s.uU)(this.state,this.stateObj?.error,this.stateObj?.transitioning).replace("text-","bg-")}waitForOperation(e,t,n=2e3){return this.waitForTestFn(()=>!!this.$getters["schemaFor"](o.W8.OPERATION)&&(!!this.$getters["byId"](o.W8.OPERATION,e)||void this.$dispatch("find",{type:o.W8.OPERATION,id:e})),"catalog operation fetch",t,n)}async save(){return 0===this.spec.clientSecret?.name?.search(o.JF)&&(this.metadata.annotations||(this.metadata.annotations={}),this.metadata.annotations[i.W8.SUSE_APP_COLLECTION]="true"),super.save()}}},67784:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(68851),i=n(92043),a=n(87811);class o extends a.A{get _availableActions(){const e=super._availableActions,t=(0,r.jq)(e,"altAction"," remove");let n=e.length-1;t&&(n=e.indexOf(t));const i={action:"openLogs",enabled:!0,icon:"icon icon-chevron-right",label:this.t("action.openLogs"),total:1};return(0,r.PT)(e,n+1,i),(0,r.PT)(e,n+2,{divider:!0}),e}openLogs(){this.$dispatch("wm/open",{id:`${this.id}-logs`,label:`${(0,i.TF)(this.status.action)} ${this.status.namespace}:${this.status?.releaseName||"chart"}`,icon:"file",component:"ContainerLogs",attrs:{pod:this,url:this.links.logs}},{root:!0})}}},71029:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(48723);class i extends r["default"]{}},97960:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(87811);const i=Object.freeze({CACHED:"cached",DISABLED:"disabled",PENDING:"pending"});class a extends r.A{get name(){return this.spec?.plugin?.name}get description(){return this.spec?.plugin?.description}get version(){return this.spec?.plugin?.version}get isInitialized(){return this.status?.cacheState!==i.PENDING}get pluginMetadata(){return this.spec?.plugin?.metadata||{}}get isDeveloper(){return"true"===this.pluginMetadata?.developer}get plugin(){return this.spec?.plugin||{}}}},92737:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return p}});var r=n(97707),i=n(14220),a=n(10213),o=n(91462),s=n(11524),l=n(87811),c=n(35664),u=n(2841),d=n(23464),h=n.n(d);class p extends l.A{queryParams(e,t){const n=this.latestCompatibleVersion.version,r={[i.Eo]:this.repoType,[i.NO]:this.repoName,[i.RX]:this.chartName,[i.xv]:n};return this.deprecated&&(r[i.GQ]=!0),e&&(r[e]=i.Qp),t&&(r[i.dV]=i.Qp),r}goToInstall(e,t,n){const r=this.queryParams(e,n),i=this.$rootGetters["currentCluster"];this.currentRouter().push({name:"c-cluster-apps-charts-install",params:{cluster:t||i?.id||a.w},query:r})}get matchingInstalledApps(){const e=this.versions?.[0]||[],t=e?.home,n=this.$rootGetters["cluster/all"](c.W8.APP);return n.filter(e=>{const n=e?.spec?.chart?.metadata,r=n?.name,i=n?.version,a=n?.home,o=n?.annotations?.[u.W8.SOURCE_REPO_NAME]||e?.metadata?.labels?.[u.W8.CLUSTER_REPO_NAME];return!(r!==this.chartName||!o||o!==this.repoName)&&(!(!t||a!==t)||this.versions?.some(e=>e.version===i&&a===t))})}get isInstalled(){return 1===this.matchingInstalledApps.length}get upgradeable(){return this.isInstalled&&this.matchingInstalledApps[0].upgradeAvailable===r.I0.SINGLE_UPGRADE}get latestCompatibleVersion(){if(this._latestCompatibleVersion)return this._latestCompatibleVersion;const e=this.$rootGetters["currentCluster"],t=e?.workerOSs,n=this.$rootGetters["prefs/get"](o.kJ);return this._latestCompatibleVersion=(0,s.G)(this,t,n),this._latestCompatibleVersion}get cardContent(){const e=this.latestCompatibleVersion,t=[];if(e){const n=e.created===c.x8;t.push({icon:"icon-version-alt",iconTooltip:{key:"tableHeaders.version"},label:e.version});const r={icon:"icon-refresh-alt",iconTooltip:{key:"tableHeaders.lastUpdated"},label:n?this.t("generic.na"):h()(e.created).format("MMM D, YYYY")};n&&(r.labelTooltip=this.t("catalog.charts.appChartCard.subHeaderItem.missingVersionDate")),t.push(r)}const n=[{type:i.NO,icon:"repository-alt",iconTooltip:{key:"tableHeaders.repoName"},labels:[this.repoNameDisplay],labelTooltip:this.t("catalog.charts.findSimilar.message",{type:this.t("catalog.charts.findSimilar.types.repo")},!0)}];this.categories.length&&n.push({type:i.XJ,icon:"category-alt",iconTooltip:{key:"generic.category"},labels:this.categories,labelTooltip:this.t("catalog.charts.findSimilar.message",{type:this.t("catalog.charts.findSimilar.types.category")},!0)}),this.tags.length&&n.push({type:i.Dk,icon:"tag-alt",iconTooltip:{key:"generic.tags"},labels:this.tags,labelTooltip:this.t("catalog.charts.findSimilar.message",{type:this.t("catalog.charts.findSimilar.types.tag")},!0)});const r=[];if(this.deprecated&&r.push({icon:"icon-alert-alt",color:"error",tooltip:{key:"generic.deprecated"}}),this.upgradeable&&r.push({icon:"icon-upgrade-alt",color:"info",tooltip:{key:"generic.upgradeable"}}),this.isInstalled){const e=this.matchingInstalledApps[0]?.spec?.chart?.metadata?.version;r.push({icon:"icon-confirmation-alt",color:"success",tooltip:{text:`${this.t("generic.installed")} (${e})`}})}return{subHeaderItems:t,footerItems:n,statuses:r}}}},91380:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(14220),i=n(76978),a=n(87811);class o extends a.A{showMasthead(e){return e===r.nW}applyDefaults(){this.charts||(0,i.hZ)(this,"charts",[{}])}}},4451:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(76978),i=n(87811);class a extends i.A{applyDefaults(){this.charts||(0,r.hZ)(this,"charts",[{}])}}},45231:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var r=n(2841);n(68851),n(4364);function i(e){return e.toLowerCase().replace(/[^a-z0-9]/gi,"")}["username","password","accesskey","secretkey","accesskeyid","secretkeyid","accesskeysecret","token","apikey","secret","clientid","clientsecret","subscriptionid","tenantid"].map(e=>i(e)),["location","region"].map(e=>i(e));const a=["username","accesskey","accesskeyid","clientid"].map(e=>i(e)),o=["token","apikey","secret"].map(e=>i(e)),s=[].map(e=>i(e));var l=n(76978),c=n(35664),u=n(92043),d=n(89865);class h extends d.A{get hasSensitiveData(){return!0}get canCustomEdit(){return!0}get _detailLocation(){return{name:"c-cluster-manager-cloudCredential-id",params:{product:this.$rootGetters["productId"],cluster:this.$rootGetters["clusterId"],id:this.id}}}get parentLocationOverride(){return{name:"c-cluster-manager-cloudCredential",params:{cluster:this.$rootGetters["clusterId"]}}}get secretName(){return this.id.replace(":","/")}get secret(){return this.$rootGetters["management/byId"](c.bB,this.secretName)}async getSecret(){await this.$dispatch("management/find",{type:c.bB,id:this.secretName},{root:!0})}get configKey(){return Object.keys(this).find(e=>e.endsWith("credentialConfig"))}get provider(){const e=this.annotations?.[r.qt.CREDENTIAL_DRIVER];if(e)return e;const t=this.configKey;if(t){const e=this.$rootGetters["plugins/credentialDriverFor"](t.replace(/credentialConfig$/,""));return e}return null}setProvider(e){this.setAnnotation(r.qt.CREDENTIAL_DRIVER,e),Object.keys(this).forEach(t=>{t=t.toLowerCase(),t.endsWith("config")&&t!==`${e}config`&&(0,l.hZ)(this,t,null)}),this[`${e}credentialConfig`]||(0,l.hZ)(this,`${e}credentialConfig`,{})}get decodedData(){const e=this.configKey;return e?this[e]:{}}setData(e,t){const n=e&&"object"===typeof e;let r;this[this.configKey]&&!n||(0,l.hZ)(this,this.configKey,{}),r=n?e:{[e]:t};for(const i in r)(0,l.hZ)(this,`"${this.configKey}"."${i}"`,r[i])}get providerDisplay(){const e=(this.provider||"").toLowerCase();return this.$rootGetters["i18n/withFallback"](`cluster.provider."${e}"`,null,e)}get publicData(){let{publicKey:e,publicMode:t}=this.$rootGetters["plugins/credentialOptions"](this.provider);const n={full:a,prefix:o,suffix:s};if(!e)for(const a in this.decodedData||{}){if(e)break;if(!(0,l.Im)(this.decodedData[a]))for(const r in n)if(n[r].includes(i(a))){e=a,t=r;break}}if(!e)return null;let r=this.decodedData[e];if(r||(r=this.secret?.decodedData?.[`${this.provider}credentialConfig-${e}`]),!r)return null;const c=Math.min(8,Math.floor(r.length/2));return"prefix"===t?`${(0,u.ZD)(r.substr(0,c))}…`:"suffix"===t?`…${(0,u.ZD)(r.substr(-1*c))}`:(0,u.ZD)(r)}get doneRoute(){return"c-cluster-manager-secret"}}},16787:function(e,t,n){"use strict";n.r(t),n.d(t,{ANNOTATIONS_CONTAINS_PROTECTED:function(){return o},LABEL_CONTAINS_PROTECTED:function(){return a},default:function(){return s}});var r=n(89865),i=n(35664);const a=["io.cattle.lifecycle","kubernetes.io","cattle.io","k3s.io"],o=["coreos.com","cattle.io","k3s.io","kubernetes.io","k3s.io","rancher.io"];class s extends r.A{get systemLabels(){return Object.keys(this.labels||{}).filter(e=>a.find(t=>e.includes(t)))}get systemAnnotations(){return Object.keys(this.annotations||{}).filter(e=>o.find(t=>e.includes(t)))}get hasSystemLabels(){return!!(this.systemLabels||[]).length}get hasSystemAnnotations(){return!!(this.systemAnnotations||[]).length}get provisioningClusterNs(){return this.annotations?.["objectset.rio.cattle.io/owner-namespace"]||"fleet-default"}get provisioningClusterName(){return this.annotations?.["objectset.rio.cattle.io/owner-name"]||this.id}get provisioningClusterId(){return`${this.provisioningClusterNs}/${this.provisioningClusterName}`}waitForProvisioning(e=6e4,t){return this.waitForTestFn(()=>{const e=this.provisioningClusterId;return e&&!!this.$rootGetters["management/byId"](i.Z7.RANCHER_CLUSTER,e)},this.$rootGetters["i18n/t"]("cluster.managementTimeout"),e,t)}}},61843:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return p},notOnlyOfRole:function(){return h}});var r=n(35664),i=n(2841),a=n(27278),o=n(44458),s=n(92043),l=n(68851),c=n(76978),u=n(6198),d=n(87811);function h(e,t){const n={};if(e.isControlPlane&&(n.isControlPlane=!1),e.isEtcd&&(n.isEtcd=!1),0===Object.keys(n).length)return!0;for(const r of t)if(Object.keys(n).forEach(e=>{r[e]&&(n[e]?delete n[e]:n[e]=!0)}),0===Object.keys(n).length)return!0;return!1}class p extends d.A{get _availableActions(){const e=super._availableActions,t={action:"openSsh",enabled:!!this.links.shell&&this.isRunning,icon:"icon icon-chevron-right",label:"SSH Shell"},n={action:"downloadKeys",enabled:!!this.links.sshkeys,icon:"icon icon-download",label:this.t("node.actions.downloadSSHKey")},r={action:"toggleForceRemoveModal",altAction:"forceMachineRemove",enabled:!!this.isRemoveForceable,label:this.t("node.actions.forceDelete"),icon:"icon icon-trash"},i={action:"toggleScaleDownModal",bulkAction:"toggleScaleDownModal",enabled:!!this.canScaleDown,icon:"icon icon-minus",label:this.t("node.actions.scaleDown"),bulkable:!0};return(0,l.PT)(e,0,{divider:!0}),(0,l.PT)(e,0,n),(0,l.PT)(e,0,t),(0,l.PT)(e,0,i),(0,l.PT)(e,0,r),e}get canClone(){return!1}openSsh(e){const t=e||this.nameDisplay;this.$dispatch("wm/open",{id:`${this.id}-ssh`,label:t,icon:"terminal",component:"MachineSsh",attrs:{machine:this,pod:{}}},{root:!0})}downloadKeys(){(0,u.Is)(this.links.sshkeys)}toggleForceRemoveModal(e=this){this.$dispatch("promptModal",{componentProps:{machine:e},component:"ForceMachineRemoveDialog"})}async forceMachineRemove(){const e=await this.machineRef();e.setAnnotation(i.qt.FORCE_MACHINE_REMOVE,"true"),await e.save()}toggleScaleDownModal(e=this){this.$dispatch("promptModal",{resources:e,component:"ScaleMachineDownDialog",modalWidth:"450px"})}async machineRef(){const e=this.spec.infrastructureRef,t=`${this.metadata.namespace}/${e.name}`,n=`rke-machine.cattle.io.${e.kind.toLowerCase()}`;return await this.$dispatch("find",{type:n,id:t})}get cluster(){if(!this.spec.clusterName)return null;const e=`${this.metadata.namespace}/${this.spec.clusterName}`,t=this.$rootGetters["management/byId"](r.Z7.RANCHER_CLUSTER,e);return t}get poolName(){return this.metadata?.labels?.[i.qt.DEPLOYMENT_NAME]||""}get poolId(){const e=`${this.metadata.namespace}/${this.poolName}`;return e}get pool(){return this.$rootGetters["management/byId"](r.Z7.MACHINE_DEPLOYMENT,this.poolId)}get operatingSystem(){return this.metadata?.labels["cattle.io/os"]||"linux"}get kubeNodeDetailLocation(){const e=this.status?.nodeRef?.name,t=this.cluster?.status?.clusterName;return e&&t?{name:"c-cluster-product-resource-id",params:{cluster:this.cluster.status.clusterName,product:a.o,resource:r.NW,id:e}}:e}get groupByLabel(){const e=this.cluster?.nameDisplay||this.spec.clusterName;return this.$rootGetters["i18n/t"]("resourceTable.groupLabel.cluster",{name:(0,s.ZD)(e)})}get labels(){return this.metadata?.labels||{}}get isWorker(){return"true"===`${this.labels[i.Ub.WORKER]}`}get isControlPlane(){return"true"===`${this.labels[i.Ub.CONTROL_PLANE]}`}get isEtcd(){return"true"===`${this.labels[i.Ub.ETCD]}`}get isRemoveForceable(){const e=(0,c.Jt)(this,"status.conditions"),t=((0,l.jq)(e,"type","InfrastructureReady")||{}).reason;return"DeleteError"===t||null}get canScaleDown(){return!(!this.canUpdate||!this.pool?.canUpdate)&&h(this,this.cluster?.machines)}get roles(){const{isControlPlane:e,isWorker:t,isEtcd:n}=this;return(0,o.listNodeRoles)(e,t,n,this.t("generic.all"))}get isRunning(){return"Running"===this.status?.phase}get internalIps(){return this.status?.addresses?.filter(({type:e})=>e===r.FV.INTERNAL_IP).map(e=>e.address)||[]}get externalIps(){return this.status?.addresses?.filter(({type:e})=>e===r.FV.EXTERNAL_IP).map(e=>e.address)||[]}get internalIp(){return this.internalIps[0]}get externalIp(){return this.externalIps[0]}}},22456:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return p}});var r=n(35664),i=n(92043),a=n(74302),o=n(87811),s=n(99726),l=n(79401),c=n(2841),u=n(61843);const d={MACHINE_INV_SELECTOR_TEMPLATES:"MachineInventorySelectorTemplate"},h={MACHINE_TEMPLATE:"HarvesterMachineTemplate"};class p extends o.A{get cluster(){if(!this.spec.clusterName)return null;const e=`${this.metadata.namespace}/${this.spec.clusterName}`,t=this.$rootGetters["management/byId"](r.Z7.RANCHER_CLUSTER,e);return t}get groupByLabel(){const e=this.cluster?.nameDisplay||this.spec.clusterName;return this.$rootGetters["i18n/t"]("resourceTable.groupLabel.cluster",{name:(0,i.ZD)(e)})}get groupByPoolLabel(){return`${this.$rootGetters["i18n/t"]("resourceTable.groupLabel.machinePool",{name:(0,i.ZD)(this.nameDisplay)})}`}get groupByPoolShortLabel(){return`${this.$rootGetters["i18n/t"]("resourceTable.groupLabel.machinePool",{name:(0,i.ZD)(this.nameDisplay)})}`}get infrastructureRefKind(){return this.spec?.template?.spec?.infrastructureRef?.kind}get templateType(){return this.infrastructureRefKind?`rke-machine.cattle.io.${this.infrastructureRefKind.toLowerCase()}`:null}get template(){const e=this.spec.template.spec.infrastructureRef,t=`${this.metadata.namespace}/${e.name}`,n=this.$rootGetters["management/byId"](this.templateType,t);return n}get providerName(){return this.template?.nameDisplay}get providerDisplay(){const e=(this.template?.provider||"").toLowerCase();return this.$rootGetters["i18n/withFallback"](`cluster.provider."${e}"`,null,"generic.unknown",!0)}get providerLocation(){return this.template?.providerLocation||this.t("node.list.poolDescription.noLocation")}get providerSize(){return this.template?.providerSize||this.t("node.list.poolDescription.noSize")}get providerSummary(){if(this.template)switch(this.infrastructureRefKind){case h.MACHINE_TEMPLATE:return null;default:return`${this.providerDisplay} – ${this.providerLocation} / ${this.providerSize} (${this.providerName})`}return null}get desired(){return this.spec?.replicas||0}get pending(){return Math.max(0,this.desired-(this.status?.replicas||0))}get outdated(){return Math.max(0,(this.status?.replicas||0)-(this.status?.upToDateReplicas||0))}get ready(){return this.status?.availableReplicas||0}get unavailable(){return Math.max(0,(this.status?.replicas||0)-(this.status?.availableReplicas||0))}get isControlPlane(){return"true"===`${this.spec?.template?.metadata?.labels?.[c.Ub.CONTROL_PLANE]}`}get isEtcd(){return"true"===`${this.spec?.template?.metadata?.labels?.[c.Ub.ETCD]}`}get inClusterSpec(){const e=this.template?.metadata?.annotations["rke.cattle.io/cloned-from-name"],t=this.spec?.template?.spec?.infrastructureRef?.name,n=e||t,r=this.cluster.spec.rkeConfig.machinePools;return r.find(e=>e.machineConfigRef.name===n)}scalePool(e,t=!0,n=0){if(!this.inClusterSpec)return;const i=this.cluster;if(this.inClusterSpec.quantity+=e,!t)return;const a=this.cluster,o=this.$rootGetters["management/byId"](r.Z7.RANCHER_CLUSTER,this.cluster.id);this.scaleTimer&&clearTimeout(this.scaleTimer),this.scaleTimer=setTimeout(()=>{this.cluster.save().catch(async t=>{let r=(0,s.rz)(t);if(409===t.status&&n<2){const t=await(0,l.Rq)(i,a,o,{dispatch:this.$dispatch,getters:this.$rootGetters},"management");if(!1===t)return this.scalePool(e,!0,n+1);r=t}this.$dispatch("growl/fromError",{title:"Error scaling pool",err:r},{root:!0})})},1e3)}get isAutoscalerEnabled(){return this.annotations?.[c.qt.AUTOSCALER_MACHINE_POOL_MIN_SIZE]||this.annotations?.[c.qt.AUTOSCALER_MACHINE_POOL_MAX_SIZE]}canScaleDownPool(){return!(!this.canUpdate||0===this.inClusterSpec?.quantity||this.infrastructureRefKind===d.MACHINE_INV_SELECTOR_TEMPLATES)&&(!this.isEtcd&&!this.isControlPlane||(0,u.notOnlyOfRole)(this,this.cluster.machines))}canScaleUpPool(){return this.infrastructureRefKind!==d.MACHINE_INV_SELECTOR_TEMPLATES}get showScalePool(){return this.canScaleDownPool()||this.canScaleUpPool()}get stateParts(){const e=[{label:"Pending",color:"bg-info",textColor:"text-info",value:this.pending,sort:1},{label:"Outdated",color:"bg-warning",textColor:"text-warning",value:this.outdated,sort:2},{label:"Unavailable",color:"bg-error",textColor:"text-error",value:this.unavailable,sort:3},{label:"Ready",color:"bg-success",textColor:"text-success",value:this.ready,sort:4}].filter(e=>e.value>0);return(0,a.Ul)(e,"sort:desc")}}},5555:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(35664),i=n(92043),a=n(87811);class o extends a.A{get cluster(){if(!this.spec.clusterName)return null;const e=`${this.metadata.namespace}/${this.spec.clusterName}`,t=this.$rootGetters["management/byId"](r.Z7.RANCHER_CLUSTER,e);return t}get groupByLabel(){const e=this.cluster?.nameDisplay||this.spec.clusterName;return this.$rootGetters["i18n/t"]("resourceTable.groupLabel.cluster",{name:(0,i.ZD)(e)})}}},44458:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c},listNodeRoles:function(){return d}});var r=n(92043),i=n(2841),a=n(35664),o=n(95799),s=n(87811),l=n(14220);class c extends s.A{get _availableActions(){const e=this.norman?.actions||{},t={action:"cordon",enabled:!!e.cordon,icon:"icon icon-pause",label:"Cordon",total:1,bulkable:!0},n={action:"uncordon",enabled:!!e.uncordon,icon:"icon icon-play",label:"Uncordon",total:1,bulkable:!0},r={action:"drain",enabled:!!e.drain,icon:"icon icon-dot-open",label:this.t("drainNode.action"),bulkable:!0,bulkAction:"drain"},i={action:"stopDrain",enabled:!!e.stopDrain,icon:"icon icon-x",label:this.t("drainNode.actionStop"),bulkable:!0},a={action:"openSsh",enabled:!!this.provisionedMachine?.links?.shell,icon:"icon icon-chevron-right",label:"SSH Shell"},o={action:"downloadKeys",enabled:!!this.provisionedMachine?.links?.sshkeys,icon:"icon icon-download",label:this.t("node.actions.downloadSSHKey")};return[a,o,{divider:!0},t,n,r,i,{divider:!0},...super._availableActions]}openSsh(){this.provisionedMachine.openSsh(this.nameDisplay)}downloadKeys(){this.provisionedMachine.downloadKeys()}get showDetailStateBadge(){return!0}get name(){return this.metadata.name}get addresses(){return this.status?.addresses||[]}get internalIps(){return this.addresses.filter(e=>"InternalIP"===e.type).map(e=>e.address)}get externalIps(){const e=this.metadata.annotations[i.Z_.EXTERNAL_IP],t=this.addresses.filter(e=>"ExternalIP"===e.type).map(e=>e.address);return t.concat(e||[])}get internalIp(){return this.internalIps[0]}get externalIp(){return this.externalIps[0]}get labels(){return this.metadata?.labels||{}}get customLabelCount(){return this.customLabels.length}get customLabels(){const e=[];if(this.labels)for(const t in this.labels){const[n]=t.split("/");i.uf.includes(n)||e.push(`${t}=${this.labels[t]}`)}return e}get isWorker(){return this.managementNode?this.managementNode.isWorker:"true"===`${this.labels[i.vi.WORKER]}`}get isControlPlane(){return this.managementNode?this.managementNode.isControlPlane:"true"===`${this.labels[i.vi.CONTROL_PLANE]}`||"true"===`${this.labels[i.vi.CONTROL_PLANE_OLD]}`}get isEtcd(){return this.managementNode?this.managementNode.isEtcd:"true"===`${this.labels[i.vi.ETCD]}`}get hasARole(){const e=Object.values(i.vi);return Object.keys(this.labels).some(t=>{const n=e.includes(t),r="true"===`${this.labels[t]}`;return n&&r})}get roles(){const{isControlPlane:e,isWorker:t,isEtcd:n}=this;return d(e,t,n,this.t("generic.all"))}get version(){return this.status.nodeInfo.kubeletVersion}get cpuUsage(){return this.isFromNorman&&"eks"===this.provider?(0,o.ao)(this.podRequests.cpu||"0"):(0,o.ao)(this.$rootGetters["cluster/byId"](a.$v.NODE,this.id)?.usage?.cpu||"0")}get cpuCapacity(){return(0,o.ao)(this.status.allocatable?.cpu)}get cpuUsagePercentage(){return(100*this.cpuUsage/this.cpuCapacity).toString()}get ramUsage(){return this.isFromNorman&&"eks"===this.provider?(0,o.ao)(this.podRequests.memory||"0"):(0,o.ao)(this.$rootGetters["cluster/byId"](a.$v.NODE,this.id)?.usage?.memory||"0")}get ramCapacity(){return(0,o.ao)(this.status.capacity?.memory)}get ramUsagePercentage(){return(100*this.ramUsage/this.ramCapacity).toString()}get ramReserved(){return(0,o.ao)(this.status?.allocatable?.memory)}get ramReservedPercentage(){return(100*this.ramUsage/this.ramReserved).toString()}get podUsage(){return u(this.status.allocatable?.pods,this.status.capacity?.pods)}get podConsumedUsage(){return(this.podConsumed/this.podCapacity*100).toString()}get podCapacity(){return(0,o.ao)(this.status.capacity?.pods)}get podConsumed(){const e=this.pods.filter(e=>"running"===e.state);return e.length||0}get podRequests(){return JSON.parse(this.metadata.annotations["management.cattle.io/pod-requests"]||"{}")}get isPidPressureOk(){return this.isCondition("PIDPressure","False")}get isDiskPressureOk(){return this.isCondition("DiskPressure","False")}get isMemoryPressureOk(){return this.isCondition("MemoryPressure","False")}get isKubeletOk(){return this.isCondition("Ready")}get isCordoned(){return!!this.spec.unschedulable}get drainedState(){const e=this.managementNode?.status.conditions.find(e=>"Drained"===e.type);if(e){if("True"===e.status)return"drained";if(e.transitioning)return"draining"}return null}get containerRuntimeVersion(){return this.status.nodeInfo.containerRuntimeVersion.replace("docker://","")}get containerRuntimeIcon(){return this.status.nodeInfo.containerRuntimeVersion.includes("docker")?"icon-docker":""}async cordon(e){const t=Array.isArray(e)?e:[this];await Promise.all(t.map(e=>e.norman?.doAction("cordon")))}async uncordon(e){const t=Array.isArray(e)?e:[this];await Promise.all(t.map(e=>e.norman?.doAction("uncordon")))}get clusterId(){const e=this.links.self.split("/");return e.length>6&&"k8s"===e[e.length-6]&&"clusters"===e[e.length-5]?e[e.length-4]:l.G8}get normanNodeId(){const e=(this.$rootGetters["management/all"](a.Mc.NODE)||[]).find(e=>e.id.startsWith(this.clusterId)&&e.status.nodeName===this.name);return e?e.id.replace("/",":"):null}get norman(){return this.$rootGetters["rancher/byId"](a.k$.NODE,this.normanNodeId)}get managementNode(){return this.$rootGetters["management/all"](a.Mc.NODE).find(e=>e.id.startsWith(this.clusterId)&&e.status.nodeName===this.id)}drain(e){this.$dispatch("promptModal",{component:"DrainNode",componentProps:{kubeNodes:e||[this],normanNodeId:this.normanNodeId}})}async stopDrain(e){const t=Array.isArray(e)?e:[this];await Promise.all(t.map(e=>e.norman?.doAction("stopDrain")))}get state(){return this.drainedState?this.drainedState:this.isCordoned?"cordoned":this.metadata?.state?.name||"unknown"}get details(){const e=[{label:this.t("node.detail.detailTop.version"),content:this.version},{label:this.t("node.detail.detailTop.os"),content:this.status.nodeInfo.osImage},{label:this.t("node.detail.detailTop.containerRuntime"),formatter:"IconText",formatterOpts:{iconClass:this.containerRuntimeIcon},content:this.containerRuntimeVersion}];return this.internalIp&&e.unshift({label:this.t("node.detail.detailTop.internalIP"),formatter:"CopyToClipboard",content:this.internalIp}),this.externalIp&&e.unshift({label:this.t("node.detail.detailTop.externalIP"),formatter:"CopyToClipboard",content:this.externalIp}),e}get pods(){const e=this.$rootGetters["cluster/all"](a.Sm);return e.filter(e=>e.spec.nodeName===this.name)}get confirmRemove(){return!0}get canClone(){return!1}get canDelete(){const e=["aks","azureaks","azurekubernetesservice","eks","amazoneks","gke","googlegke"];return!e.includes(this.provider)}get provisionedMachine(){const e=this.metadata?.annotations?.[i.qt.CLUSTER_NAMESPACE],t=this.metadata?.annotations?.[i.qt.MACHINE_NAME];return e&&t?this.$rootGetters["management/byId"](a.Z7.MACHINE,`${e}/${t}`):null}get isFromNorman(){return"norman"===(this.$rootGetters["currentCluster"].metadata.labels||{})["cattle.io/creator"]}get provider(){return this.$rootGetters["currentCluster"].provisioner.toLowerCase()}get displayTaintsAndLabels(){return!!this.spec.taints?.length||!!this.customLabelCount}}function u(e,t){const n=Number.parseFloat(t),i=Number.parseFloat(e),a=(n-i)/n*100;return(0,r.l9)(a)}function d(e,t,n,r){const i=[];return e&&i.push("Control Plane"),t&&i.push("Worker"),n&&i.push("Etcd"),3===i.length||0===i.length?r:i.join(", ")}},62973:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(45858);class i extends r["default"]{}},18027:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(35664),i=n(89865);class a extends i.A{get principalId(){return this.userPrincipalId||this.groupPrincipalId}get roleDisplay(){return this.roleTemplate.nameDisplay}get roleDescription(){return this.roleTemplate.description}get roleTemplate(){return this.$rootGetters["management/byId"](r.Mc.ROLE_TEMPLATE,this.roleTemplateId)}get clusterroletemplatebinding(){return this.$rootGetters["management/byId"](r.Mc.CLUSTER_ROLE_TEMPLATE_BINDING,this.id?.replace(":","/"))}get steve(){return this.$dispatch("management/find",{type:r.Mc.CLUSTER_ROLE_TEMPLATE_BINDING,id:this.id?.replace(":","/")},{root:!0})}}},53622:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return f},fetchSpecsScheduledScanConfig:function(){return h},hasSpecsScheduledScanConfig:function(){return p}});var r=n(90598),i=n(35664),a=n(68851),o=n(6198),s=n(76978),l=n(74302),c=n(23464),u=n.n(c),d=n(87811);const h=async e=>(await e.fetchResourceFields(),p(e)),p=e=>{const t=(0,s.Jt)(e,"resourceFields.spec.type"),n=e.schemaDefinitions?.[t];return!!n&&!!(0,s.Jt)(n,"resourceFields.scheduledScanConfig")};class f extends d.A{get _availableActions(){let e=super._availableActions;const t=["cloneYaml","goToEditYaml","download"];e=e.filter(e=>{if(!t.includes(e.action))return e});const n=this.$rootGetters["i18n/t"],r={action:"downloadLatestReport",enabled:this.hasReport,icon:"icon icon-download",label:n("compliance.downloadReport"),total:1},i={action:"downloadAllReports",enabled:this.hasReport,icon:"icon icon-download",label:n("compliance.downloadAllReports"),total:1};return this.hasReports&&(e.unshift({divider:!0}),this.spec?.scheduledScanConfig?.cronSchedule&&(e.unshift(i),r.label=n("compliance.downloadLatestReport")),e.unshift(r)),e}canBeScheduled(){return p(this.$getters["schemaFor"](this.type))}get isScheduled(){return!!(0,s.Jt)(this,"spec.scheduledScanConfig.cronSchedule")}get canUpdate(){return this.hasLink("update")&&this.isScheduled}get hasReports(){const{relationships:e=[]}=this.metadata,t=(0,a.jq)(e,"toType",i.YA.REPORT);return!!t}async getReports(){const e=await this.findOwned(),t=e.filter(e=>e.type===i.YA.REPORT)||[];return(0,l.Ul)(t,"metadata.creationTimestamp",!0)}async downloadLatestReport(){const e=await this.getReports()||[],t=(0,l.Ul)(e,"metadata.creationTimestamp",!0)[0],r=await n.e(829).then(n.t.bind(n,41880,23));try{const e=(t.aggregatedTests||[]).map(e=>(delete e.actual_value_per_node,e)),n=r.unparse(e);(0,o.PE)(`${m(t)}.csv`,n,"application/csv")}catch(i){this.$dispatch("growl/fromError",{title:"Error downloading file",err:i},{root:!0})}}async downloadAllReports(){const e={},t=await this.getReports()||[],r=await n.e(829).then(n.t.bind(n,41880,23));t.forEach(t=>{try{const n=(t.aggregatedTests||[]).map(e=>(delete e.actual_value_per_node,e)),i=r.unparse(n);e[`${m(t)}.csv`]=i}catch(n){this.$dispatch("growl/fromError",{title:"Error downloading file",err:n},{root:!0})}}),(0,s.Im)(e)||(0,o.jl)(e).then(e=>{(0,o.PE)(`${this.id}-reports`,e,"application/zip")})}get scanProfileLink(){return this.status?.lastRunScanProfileName?{name:"c-cluster-product-resource-id",params:{resource:i.YA.CLUSTER_SCAN_PROFILE,product:r.o_,id:this.status?.lastRunScanProfileName}}:{}}}const m=e=>{const{creationTimestamp:t}=e.metadata,n=u()(t).format("YYYY-MM-DD-HHmmss"),r=e.id.replace(/^scan-report-/,"");return`${r}--${n}`}},87923:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(35664),i=n(87811);class a extends i.A{warnDeletionMessage(e=[]){return this.$rootGetters["i18n/t"]("compliance.deleteBenchmarkWarning",{count:e.length})}get isDefault(){const{relationships:e=[]}=this.metadata;return!!e&&e.filter(e=>e.fromType===r.W8.APP).length>0}}},22513:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(87811),i=n(90598),a=n(35664);class o extends r.A{warnDeletionMessage(e=[]){return this.$rootGetters["i18n/t"]("compliance.deleteProfileWarning",{count:e.length})}get numberTestsSkipped(){const{skipTests:e=[]}=this.spec;return e?.length||0}get benchmarkVersionLink(){return this.spec?.benchmarkVersion?{name:"c-cluster-product-resource-id",params:{resource:a.YA.BENCHMARK,product:i.o_,id:this.spec?.benchmarkVersion}}:{}}}},98728:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(74302),i=n(87811);class a extends i.A{get aggregatedTests(){const e=this.parsedReport,t=e?.results,n=t?t.reduce((e,t)=>(t.checks&&e.push(...t.checks),e),[]):null,i=e=>(e||"").split(".").map(e=>+e+1e3).join("."),a=e=>{const t={other:7,notApplicable:6,skip:5,pass:4,warn:3,mixed:2,fail:1};return`${t[e]||t["other"]} ${e}`},o=n.slice().sort((e,t)=>{const n=(0,r.UD)(a(e.state),a(t.state)),o=(0,r.UD)(i(e.id),i(t.id));return n||o});return o}get nodes(){return this.parsedReport?this.parsedReport.nodes:{}}get parsedReport(){try{const e=this.spec?.reportJSON,t=JSON.parse(e);return t}catch(e){}return null}}},79925:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(87811);class i extends r.A{get keysDisplay(){const e=[...Object.keys(this.data||[]),...Object.keys(this.binaryData||[])];return e.length?e.join(", "):"(none)"}get fullDetailPageOverride(){return!0}}},40172:function(e,t,n){"use strict";n.r(t),n.d(t,{ENFORCEMENT_ACTION_VALUES:function(){return s},default:function(){return l}});var r=n(20246),i=n.n(r),a=n(87811),o=n(6198);const s={DENY:"deny",DRYRUN:"dryrun"};class l extends a.A{get _availableActions(){const e=super._availableActions,t=this.$rootGetters["i18n/t"],n={action:"downloadViolations",icon:"icon icon-download",label:t("gatekeeperConstraint.downloadViolations"),total:1};return e.unshift(n),e}async save(){let e,t;this.constraint?(e=await this.findLatestConstraint(),t=e?.metadata?.resourceVersion):e=await this.$dispatch("cluster/create",{type:`constraints.gatekeeper.sh.${this.kind.toLowerCase()}`},{root:!0}),e.spec=this.spec,e.metadata=this.metadata,t&&(e.metadata.resourceVersion=t),await e.save()}async downloadViolations(){const e=await n.e(829).then(n.t.bind(n,41880,23));try{const t=(this.violations||[]).map(e=>(delete e.resourceLink,delete e.constraintLink,e)),n=e.unparse(t);(0,o.PE)(`violations-${this.name}.csv`,n,"application/csv")}catch(t){this.$dispatch("growl/fromError",{title:"Error downloading file",err:t},{root:!0})}}cleanForNew(){this.$dispatch("cleanForNew",this),this.constraint&&delete this.constraint}saveYaml(e){const t=i().load(e);return Object.assign(this,t),this.save()}async remove(){const e=await this.findLatestConstraint();return e.remove()}findLatestConstraint(){return this.$dispatch("cluster/find",{type:this.constraint.type,id:this.constraint.id,opt:{force:!0}},{root:!0})}get totalViolations(){return this.status?.totalViolations||this.violations.length}get violations(){const e=this.status?.violations||[];return e.map(e=>({...e,resourceLink:{text:e.name,to:{name:"c-cluster-product-resource-id",params:{resource:e.kind.toLowerCase(),id:e.name,product:"explorer"}}},constraintLink:{text:this.nameDisplay,to:this.detailLocation}}))}}},81147:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(2841),i=n(89865),a=n(44660),o=n(56005),s=n.n(o);class l extends i.A{get canViewYaml(){return!1}get driverName(){if(!this.builtIn){const e=this.status?.displayName?.toLowerCase();if(e)return a.KONTAINER_TO_DRIVER[e]||e}return a.KONTAINER_TO_DRIVER[this.id]||this.name||this.id}get nameDisplay(){const e=`cluster.provider.${this.driverName}`,t=s()(this.driverName);return this.$rootGetters["i18n/withFallback"](e,t)}get description(){return this.builtIn||this.builtin?this.$rootGetters["i18n/withFallback"]("tableHeaders.builtIn"):this.url}set description(e){this.annotations&&(this.annotations[r.tC]=e),this._description=e}cleanForSave(e,t){const n=super.cleanForSave(e,t);return t&&(n.active=!0),delete n.metadata,n}}},28473:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(3514),i=n.n(r),a=n(92043),o=n(87811);class s extends o.A{get displayInvolvedObject(){const e=this.involvedObject;return i()(e)?"N/A":`${e.kind} ${e.name}`}get displayMessage(){return(0,a.TF)(this.message)}get timestamp(){return this.lastTimestamp||this.metadata?.creationTimestamp}get eventType(){return this._type}get firstSeen(){const e=this.$getters["schemaFor"](this.type),t=this.$rootGetters["type-map/rowValueGetter"];return e&&t?t(e,"First Seen")(this):null}get lastSeen(){const e=this.$getters["schemaFor"](this.type),t=this.$rootGetters["type-map/rowValueGetter"];return e&&t?t(e,"Last Seen")(this):null}get insightsColor(){return"disabled"}}},42510:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(87811);class i extends r.A{get canRefreshMemberships(){return this.schema?.collectionMethods.find(e=>"post"===e.toLowerCase())}cleanForSave(e){const t=super.cleanForSave(e);return delete t.type,t}}},61607:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(87811);class i extends r.A{get canChangePassword(){return this.schema?.collectionMethods.find(e=>"post"===e.toLowerCase())}cleanForSave(e){const t=super.cleanForSave(e);return delete t.type,t}}},76448:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(87811);class i extends r.A{get canGetUser(){return this.schema?.collectionMethods.find(e=>"post"===e.toLowerCase())}cleanForSave(e){const t=super.cleanForSave(e);return delete t.type,t}}},91970:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return f}});var r=n(38823),i=n(3514),a=n.n(i),o=n(92043),s=n(35664),l=n(2841),c=n(68851),u=n(87811),d=n(40408),h=n(40530);function p(e){if(a()(e))return{total:0,states:{}};const{desiredReady:t,...n}=e,r=Object.entries(n).reduce((e,[t,n])=>(e[(0,d.hb)(t)]=n,e),{});return{total:t,states:r}}class f extends u.A{async getCurrentUser(){const e=this.$rootGetters["auth/user"];if(e?.id)return e;const t=await this.$dispatch("auth/getSelfUser");if(t?.canGetUser&&t.status?.userID){const e=await this.$dispatch("management/find",{type:s.Mc.USER,id:t.status?.userID},{root:!0});if(e)return this.$dispatch("auth/gotUser",e,{root:!0}),e}return{}}pause(){this.spec.paused=!0,this.save()}unpause(){this.spec.paused=!1,this.save()}goToClone(){this.metadata?.labels?.[l.Hs.CREATED_BY_USER_ID]&&delete this.metadata.labels[l.Hs.CREATED_BY_USER_ID],super.goToClone()}get state(){return!0===this.spec?.paused?"paused":this.metadata?.state?.name||"unknown"}get targetClusters(){const e=this.$getters["byId"](s.Hs.WORKSPACE,this.metadata.namespace),t=e?.clusters||[],n=e?.clusterGroups||[];if("fleet-local"===e?.id){const e=(0,c.jq)(n,"id","fleet-local/default");return e?e.targetClusters:[]}if(!this.spec.targets)return[];const i=[];for(const a of this.spec.targets)if(a.clusterName){const e=(0,c.jq)(t,"metadata.name",a.clusterName);e&&(0,c.PG)(i,e)}else if(a.clusterGroup){const e=(0,c.jq)(n,{"metadata.namespace":this.metadata.namespace,"metadata.name":a.clusterGroup});e&&(0,c.cn)(i,e.targetClusters)}else if(a.clusterGroupSelector){const e=(0,r._R)(a.clusterGroupSelector),t=(0,r.wC)(n,e);for(const n of t)(0,c.cn)(i,n.targetClusters)}else if(a.clusterSelector){const e=(0,r._R)(a.clusterSelector),n=(0,r.wC)(t,e);(0,c.cn)(i,n)}return i}get targetInfo(){const e=h.A.Application.getTargetMode(this.spec.targets||[],this.metadata.namespace);return{mode:e,modeDisplay:this.t(`fleet.gitRepo.targetDisplay."${e}"`)}}get groupByLabel(){const e=this.metadata.namespace;return e?this.$rootGetters["i18n/t"]("resourceTable.groupLabel.workspace",{name:(0,o.ZD)(e)}):this.$rootGetters["i18n/t"]("resourceTable.groupLabel.notInAWorkspace")}get allResourceStatuses(){return p(this.status?.resourceCounts||{})}statusResourceCountsForCluster(e){return(this.targetClusters||[]).some(t=>t.id===e)?this.status?.perClusterResourceCounts?.[e]||{desiredReady:0}:{}}get resourcesStatuses(){if(a()(this.status?.resources))return[];const e=(this.targetClusters||[]).reduce((e,t)=>(e[t.id]=t,e),{}),t=this.status?.resources?.reduce((t,n)=>{const{perClusterState:r,...i}=n;return 0===Object.entries(r).length?(this.targetClusters||[]).forEach(e=>{t.push(Object.assign({},i,{clusterId:e.id,state:i.state}))}):Object.entries(r).forEach(([n,r])=>{r.filter(t=>!!e[t]).forEach(e=>{t.push(Object.assign({},i,{clusterId:e,state:n}))})}),t},[]);return t.map(t=>{const{namespace:n,name:r,clusterId:i}=t,a=h.A.resourceType(t),o=e[i];return{key:`${i}-${a}-${n}-${r}`,id:h.A.resourceId(t),type:a,clusterId:i,state:(0,d.hb)(t.state),clusterName:o.nameDisplay,apiVersion:t.apiVersion,kind:t.kind,name:r,namespace:n,detailLocation:h.A.detailLocation(t,o.metadata.labels[l.Hs.CLUSTER_NAME])}})}get clusterInfo(){const e=this.status?.readyClusters||0,t=this.status?.desiredReadyClusters||0;return{ready:e,unready:t-e,total:t}}clusterState(e){const t=this.statusResourceCountsForCluster(e);return(0,d.aB)(t)||d.jv.ACTIVE}get clustersList(){return this.$getters["all"](s.Hs.CLUSTER)}get readyClusters(){return this.status?.readyClusters||0}get meta(){return this.currentRoute()?.meta||{}}get _detailLocation(){return{...super._detailLocation,name:this.meta.detailLocation||super._detailLocation.name}}get doneOverride(){return{...super.listLocation,name:this.meta.doneOverride||super.listLocation.name}}get doneRoute(){return this.doneOverride?.name}get parentNameOverride(){return this.$rootGetters["i18n/t"](`typeLabel."${s.Hs.APPLICATION}"`,{count:1})?.trim()}}},5096:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c}});var r=n(92043),i=n(87811),a=n(68851),o=n(35664),s=n(2841),l=n(38823);class c extends i.A{get lastUpdateTime(){return this.status?.conditions?.[0].lastUpdateTime}get repoName(){const e=this.metadata?.labels||{};return e[s.Hs.REPO_NAME]}get helmName(){const e=this.metadata?.labels||{};return e[s.Hs.HELM_NAME]}get appSourceName(){return this.helmName||this.repoName}get targetClusters(){const e=this.$getters["byId"](o.Hs.WORKSPACE,this.metadata.namespace),t=e?.clusters||[],n=e?.clusterGroups||[],r=[];if("fleet-local"===e.id){const e=(0,a.jq)(n,"id","fleet-local/default");return e?e.targetClusters:[]}for(const i of this.spec.targets)if(i.clusterName){const e=(0,a.jq)(t,"metadata.name",i.clusterName);e&&(0,a.PG)(r,e)}else if(i.clusterGroup){const e=(0,a.jq)(n,{"metadata.namespace":this.metadata.namespace,"metadata.name":i.clusterGroup});e&&(0,a.cn)(r,e.targetClusters)}else if(i.clusterGroupSelector){const e=(0,l._R)(i.clusterGroupSelector),t=(0,l.wC)(n,e);for(const n of t)(0,a.cn)(r,n.targetClusters)}else if(i.clusterSelector){const e=(0,l._R)(i.clusterSelector),n=(0,l.wC)(t,e);(0,a.cn)(r,n)}return r}get stateDescription(){const e=this.stateObj?.error||!1,t=this.stateObj?.message;return e?(0,r.TF)(t):""}get stateObj(){const e=this.status?.conditions?.find(e=>{const{error:t,message:n}=e,r=!!t,i=n?.toLowerCase().includes("errapplied")||n?.toLowerCase().includes("error");return r&&i});return e?(e.name=e.message?.toLowerCase().includes("errapplied")?"errapplied":"error",e):{...this.metadata.state}}get groupByLabel(){const e=this.metadata.namespace;return e?this.$rootGetters["i18n/t"]("resourceTable.groupLabel.workspace",{name:(0,r.ZD)(e)}):this.$rootGetters["i18n/t"]("resourceTable.groupLabel.notInAWorkspace")}}},5904:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var r=n(35664),i=n(2841),a=n(91462),o=n(87811),s=n(92043),l=n(68851),c=n(20246),u=n.n(c),d=n(95265);class h extends o.A{get _availableActions(){const e=super._availableActions;return(0,l.PT)(e,0,{action:"pause",label:"Pause",icon:"icon icon-pause",bulkable:!0,enabled:!!this.links.update&&!this.spec?.paused}),(0,l.PT)(e,1,{action:"unpause",label:"Unpause",icon:"icon icon-play",bulkable:!0,enabled:!!this.links.update&&!0===this.spec?.paused}),(0,l.PT)(e,2,{action:"forceUpdate",label:"Force Update",icon:"icon icon-refresh",bulkable:!0,enabled:!!this.links.update}),this.canChangeWorkspace&&(0,l.PT)(e,3,{action:"assignTo",label:"Change workspace",icon:"icon icon-copy",bulkable:!0,bulkAction:"assignToBulk",enabled:!!this.links.update&&!!this.mgmt}),(0,l.PT)(e,4,{divider:!0}),e}pause(){this.spec.paused=!0,this.save()}unpause(){this.spec.paused=!1,this.save()}forceUpdate(){const e=this.spec.redeployAgentGeneration||1;this.spec.redeployAgentGeneration=e+1,this.save()}assignTo(){this.$dispatch("promptModal",{component:"AssignToDialog",componentProps:{toAssign:[this]}})}assignToBulk(e){this.$dispatch("promptModal",{component:"AssignToDialog",componentProps:{toAssign:e}})}get canDelete(){return!1}get canChangeWorkspace(){return!this.isLocal&&(!this.isRke2||this.$rootGetters["features/get"](d.N8))}get isLocal(){return this.metadata.name===r.d_||this.metadata?.labels?.[i.Hs.CLUSTER_NAME]===r.d_}get isRke2(){const e=this?.metadata?.labels?.[i.qt.PROVIDER]||this?.status?.provider;return e===a.gM}get nameDisplay(){return this.metadata?.labels?.[i.Hs.CLUSTER_DISPLAY_NAME]||this.metadata?.name||this.id}get name(){return this.metadata?.name||this.metadata?.labels?.[i.Hs.CLUSTER_NAME]}get state(){return!0===this.spec?.paused?"paused":this.metadata?.state?.name||"unknown"}get repoInfo(){const e=this.status?.readyGitRepos||0,t=this.status?.desiredReadyGitRepos||0;return{ready:e,unready:t-e,total:t}}get helmOpsInfo(){const e=this.status?.readyHelmOps||0,t=this.status?.desiredReadyHelmOps||0;return{ready:e,unready:t-e,total:t}}get bundleInfo(){const e={ready:0,total:0},t=this.status?.display?.readyBundles;if(t&&t.includes("/")){const n=t.split("/");if(2===n.length&&parseInt(n[0])>=0&&parseInt(n[1])>=0)return e.ready=parseInt(n[0]),e.total=parseInt(n[1]),e}return e.noValidData=!0,e}get mgmt(){const e=this.$getters["byId"](r.Mc.CLUSTER,this.metadata?.labels?.[i.Hs.CLUSTER_NAME]);return e}get basicNorman(){const e=this.$rootGetters["rancher/byId"](r.k$.CLUSTER,this.metadata?.labels?.[i.Hs.CLUSTER_NAME]);return e}get norman(){return this.basicNorman?this.basicNorman:this.$dispatch("rancher/find",{type:r.k$.CLUSTER,id:this.metadata.labels[i.Hs.CLUSTER_NAME]},{root:!0})}async normanClone(){const e=await this.norman;return this.$dispatch("rancher/clone",{resource:e},{root:!0})}get groupByLabel(){const e=this.metadata.namespace;return e?this.$rootGetters["i18n/t"]("resourceTable.groupLabel.workspace",{name:(0,s.ZD)(e)}):this.$rootGetters["i18n/t"]("resourceTable.groupLabel.notInAWorkspace")}get customLabels(){const e=[];if(this.labels)for(const t in this.labels){const[n]=t.split("/");i.uf.includes(n)||t===i.qt.PROVIDER||e.push(`${t}=${this.labels[t]}`)}return e}async saveYaml(e,t){await this._saveYaml(e,t);const n=u().load(e),r=await this.normanClone();r.setLabels(n.metadata.labels),r.setAnnotations(n.metadata.annotations),await r.save()}}},11173:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(92043),i=n(38823),a=n(35664),o=n(76978),s=n(87811);class l extends s.A{applyDefaults(){const e=this.spec||{};e.selector=e.selector||{},e.selector.matchExpressions=e.selector.matchExpressions||[],(0,o.hZ)(this,"spec",e)}get targetClusters(){const e=this.$getters["byId"](a.Hs.WORKSPACE,this.metadata.namespace),t=(0,i.C6)(this.spec?.selector?.matchLabels||{},this.spec?.selector?.matchExpressions||[]);if(!t.length)return e.clusters;const n=(0,i.wC)(e.clusters,t);return n}get groupByLabel(){const e=this.metadata.namespace;return e?this.$rootGetters["i18n/t"]("resourceTable.groupLabel.workspace",{name:(0,r.ZD)(e)}):this.$rootGetters["i18n/t"]("resourceTable.groupLabel.notInAWorkspace")}get clusterInfo(){const e=this.status?.clusterCount||0,t=this.status?.nonReadyClusterCount||0,n=e-t;return{ready:n,unready:t,total:e}}get details(){const e=[{label:"Clusters Ready",content:`${this.clusterInfo.ready} of ${this.clusterInfo.total}`}];return e}}},67424:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(92043),i=n(87811);class a extends i.A{get groupByLabel(){const e=this.metadata.namespace;return e?this.$rootGetters["i18n/t"]("resourceTable.groupLabel.workspace",{name:(0,r.ZD)(e)}):this.$rootGetters["i18n/t"]("resourceTable.groupLabel.notInAWorkspace")}}},84402:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c}});var r=n(76978),i=n(68851),a=n(35664),o=n(2841),s=n(91970),l=n(40530);class c extends s["default"]{applyDefaults(){const e=this.spec||{},t=this.metadata||{};t.namespace=this.$rootGetters["workspace"],e.repo=e.repo||"",e.branch||e.revision||(e.branch="master"),e.paths=e.paths||[],e.clientSecretName=e.clientSecretName||null,e["correctDrift"]={enabled:!1},(0,r.hZ)(this,"spec",e),(0,r.hZ)(this,"metadata",t)}get _availableActions(){const e=super._availableActions;return(0,i.PT)(e,0,{action:"pause",label:this.t("fleet.gitRepo.actions.pause.label"),icon:"icon icon-pause",bulkable:!0,enabled:!!this.links.update&&!this.spec?.paused}),(0,i.PT)(e,1,{action:"unpause",label:this.t("fleet.gitRepo.actions.unpause.label"),icon:"icon icon-play",bulkable:!0,enabled:!!this.links.update&&!0===this.spec?.paused}),(0,i.PT)(e,2,{action:"enablePollingAction",label:this.t("fleet.gitRepo.actions.enablePolling.label"),icon:"icon icon-endpoints_connected",bulkable:!0,enabled:!!this.links.update&&!!this.spec?.disablePolling}),(0,i.PT)(e,3,{action:"disablePollingAction",label:this.t("fleet.gitRepo.actions.disablePolling.label"),icon:"icon icon-endpoints_disconnected",bulkable:!0,enabled:!!this.links.update&&!this.spec?.disablePolling}),(0,i.PT)(e,4,{action:"forceUpdate",label:this.t("fleet.gitRepo.actions.forceUpdate.label"),icon:"icon icon-refresh",bulkable:!0,bulkAction:"forceUpdateBulk",enabled:!!this.links.update}),(0,i.PT)(e,5,{divider:!0}),e}enablePollingAction(){this.spec.disablePolling=!1,this.save()}disablePollingAction(){this.spec.disablePolling=!0,this.save()}forceUpdate(e=[this]){this.$dispatch("promptModal",{componentProps:{repositories:e},component:"GitRepoForceUpdateDialog"})}forceUpdateBulk(e){this.$dispatch("promptModal",{componentProps:{repositories:e},component:"GitRepoForceUpdateDialog"})}get isPollingEnabled(){return!this.spec.disablePolling}get isWebhookConfigured(){return!!this.status?.webhookCommit}get github(){const e=this.spec.repo||"",t=e.match(l.A.GIT_HTTPS_REGEX);if(t)return t[1];const n=e.match(l.A.GIT_SSH_REGEX);return!!n&&l.A.parseSSHUrl(n[0]).repoPath}get dashboardIcon(){return l.A.dashboardIcons[a.Hs.GIT_REPO]}get resourceIcon(){return this.github?"icon icon-github":l.A.resourceIcons[a.Hs.GIT_REPO]}get repoDisplay(){let e=this.spec.repo||"";return e?this.github?this.github:(e=e.replace(/.git$/,""),e=e.replace(/^https:\/\//,""),e=e.replace(/\/+$/,""),e):null}get commitDisplay(){const e=this.spec,t=this.status?.commit?.substr(0,7);return e&&e.repo?e.revision&&l.A.quacksLikeAHash(e.revision)?e.revision.substr(0,7):e.revision?e.revision:e.branch?e.branch+(t?` @ ${t}`:""):t:null}get bundles(){return this.$getters["matching"](a.Hs.BUNDLE,{[o.Hs.REPO_NAME]:this.name},this.namespace)}get bundleDeployments(){return this.$getters["matching"](a.Hs.BUNDLE_DEPLOYMENT,{[o.Hs.REPO_NAME]:this.name})}get source(){let e=this.spec.repo||"";const t=e.match(l.A.GIT_HTTPS_REGEX),n=e.match(l.A.GIT_SSH_REGEX);if(n){const{sshUserAndHost:t,repoPath:r}=l.A.parseSSHUrl(n[0]);e=`https://${t.replace("git@","")}/${r}`}return{value:e,display:this.repoDisplay,icon:this.resourceIcon,showLink:!(!t&&!n)}}get sourceSub(){return{value:this.status?.commit,display:this.commitDisplay}}get fullDetailPageOverride(){return!0}}},80591:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var r=n(50667),i=n(68851),a=n(76978),o=n(2665),s=n(40530),l=n(35664),c=n(2841),u=n(91970);class d extends u["default"]{applyDefaults(){const e=this.spec||{},t=this.metadata||{};t.namespace=this.$rootGetters["workspace"],e.helm=e.helm||{},e["correctDrift"]={enabled:!1},(0,a.hZ)(this,"spec",e),(0,a.hZ)(this,"metadata",t)}get _availableActions(){const e=super._availableActions;return(0,i.PT)(e,0,{action:"pause",label:this.t("fleet.helmOp.actions.pause.label"),icon:"icon icon-pause",bulkable:!0,enabled:!!this.links.update&&!this.spec?.paused}),(0,i.PT)(e,1,{action:"unpause",label:this.t("fleet.helmOp.actions.unpause.label"),icon:"icon icon-play",bulkable:!0,enabled:!!this.links.update&&!0===this.spec?.paused}),(0,i.PT)(e,5,{divider:!0}),e}get dashboardIcon(){return s.A.dashboardIcons[l.Hs.HELM_OP]}get resourceIcon(){return s.A.resourceIcons[l.Hs.HELM_OP]}github(e){const t=e||"",n=t.match(s.A.GIT_HTTPS_REGEX);if(n)return n[1];const r=t.match(s.A.GIT_SSH_REGEX);return!!r&&s.A.parseSSHUrl(r[0]).repoPath}sourceDisplay(e){if(!e)return null;const t=this.github(e);return t||(e=e.replace(/.git$/,""),e=e.replace(/^https:\/\//,""),e=e.replace(/\/+$/,""),e)}get sourceType(){return this.spec.helm?.repo?.startsWith("oci://")?o.xO.OCI:this.spec.helm?.repo&&this.spec.helm?.chart?o.xO.REPO:this.spec.helm?.chart?o.xO.TARBALL:null}get source(){let e="";switch(this.sourceType){case o.xO.REPO:e=this.spec.helm?.repo||"";break;case o.xO.OCI:{const t=(0,r.qg)(this.spec.helm?.repo||"");e=t?.host?`oci://${t.host}`:"";break}case o.xO.TARBALL:e=this.spec.helm?.chart||""}const t=e.match(s.A.HTTP_REGEX),n=e.match(s.A.GIT_SSH_REGEX);if(n){const{sshUserAndHost:t,repoPath:r}=s.A.parseSSHUrl(n[0]);e=`https://${t.replace("git@","")}/${r}`}return{value:e,display:this.sourceDisplay(e),icon:"icon icon-application",showLink:!(!t&&!n)}}get sourceSub(){const e=this.spec.helm?.version||"",t=this.status?.version||"";let n=e||t||"";e&&t&&e!==t&&(n=`${e} -> ${t}`);let i="";switch(this.sourceType){case o.xO.REPO:i=this.spec.helm.chart||"";break;case o.xO.OCI:{const e=(0,r.qg)(this.spec.helm.repo||"");i=e?.path?e?.path.substring(1):"";break}}let a=i||n||"";return i&&n&&(a=`${i} : ${n}`),{value:a,display:a}}get bundles(){return this.$getters["matching"](l.Hs.BUNDLE,{[c.Hs.HELM_NAME]:this.name},this.namespace)}get bundleDeployments(){return this.$getters["matching"](l.Hs.BUNDLE_DEPLOYMENT,{[c.Hs.HELM_NAME]:this.name})}get fullDetailPageOverride(){return!0}}},97030:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(35664),i=n(76978),a=n(97219);class o extends a["default"]{get canViewInApi(){return!1}get nameDisplay(){return this.principalNameDisplay}get principalNameDisplay(){const e=this.$rootGetters["rancher/byId"](r.k$.PRINCIPAL,this.id);return`${e.name} (${e.displayType})`}get detailLocation(){const e=(0,i.o8)(this._detailLocation);return e.params.id=this.id,e}get globalRoleBindings(){return this.$rootGetters["management/all"](r.Mc.GLOBAL_ROLE_BINDING).filter(e=>this.id===e.groupPrincipalName)}get _availableActions(){return[{action:"goToEdit",label:this.t("action.edit"),icon:"icon icon-edit",enabled:!0},{action:"promptUnassignGroupRoles",altAction:"unassignGroupRoles",label:this.t("action.unassign"),icon:"icon icon-trash",bulkable:!0,enabled:!!this.globalRoleBindings.length,bulkAction:"unassignGroupRoles"}]}promptUnassignGroupRoles(e=this){const t=Array.isArray(e)?e:[e],n=this.$rootGetters["management/all"](r.Mc.GLOBAL_ROLE_BINDING).filter(e=>t.find(t=>t.id===e.groupPrincipalName));this.$dispatch("promptRemove",n)}async unassignGroupRoles(e=this){const t=Array.isArray(e)?e:[e],n=this.$rootGetters["management/all"](r.Mc.GLOBAL_ROLE_BINDING).filter(e=>t.find(t=>t.id===e.groupPrincipalName));await Promise.all(n.map(e=>e.remove())),this.$dispatch("promptRemove",null)}}},7899:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(87811),i=n(35664);class a extends r.A{applyDefaults(){this.spec||(this["spec"]={helmApiVersion:"monitoring.cattle.io/v1alpha1"},this["metadata"]={name:"project-monitoring"})}get projectId(){const e=this.$rootGetters["currentProduct"].inStore,t=this.$rootGetters[`${e}/all`](i.CU),{projectId:n}=t.find(e=>e.id===this.metadata.namespace);return n}get projectDisplayName(){const e=this.$rootGetters["currentCluster"]?.id,t=this.$rootGetters["management/byId"](i.Mc.PROJECT,`${e}/${this.projectId}`);return t?.spec.displayName}get namespaces(){const e=this.$rootGetters["currentProduct"].inStore,t=this.$rootGetters[`${e}/all`](i.CU),n=t.filter(e=>e.projectId===this.projectId);return[...n]}get parentNameOverride(){return this.$rootGetters["i18n/t"](`typeLabel."${i.fj.PROJECTHELMCHART}"`,{count:1})?.trim()}}},72183:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(87811),i=n(2841);class a extends r.A{applyDefaults(){const e=this.spec||{config:JSON.stringify({cniVersion:"0.3.1",name:"",type:"bridge",bridge:"",promiscMode:!0,vlan:"",ipam:{}})};this["spec"]=e}get parseConfig(){try{return JSON.parse(this.spec.config)||{}}catch(e){return{}}}get isIpamStatic(){return"static"===this.parseConfig.ipam?.type}get clusterNetwork(){return this?.metadata?.labels?.[i.rk.CLUSTER_NETWORK]}get vlanType(){const e=this.metadata?.labels||{},t=e[i.rk.NETWORK_TYPE];return t}get vlanId(){return"UntaggedNetwork"===this.vlanType?"N/A":this.parseConfig.vlan}get customValidationRules(){const e=[{nullable:!1,path:"metadata.name",required:!0,minLength:1,maxLength:63,translationKey:"harvester.fields.name"}];return e}get connectivity(){const e=this.metadata?.annotations||{},t=e[i.rk.NETWORK_ROUTE];let n={};if("UntaggedNetwork"===this.vlanType)return"N/A";try{n=JSON.parse(t||"{}")}catch{return"invalid"}const r=n.connectivity;return"false"===r?"inactive":"true"===r?"active":r}}},83448:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(81147);class i extends r["default"]{get doneRoute(){return"c-cluster-manager-driver-kontainerdriver"}get _availableActions(){const e=[{action:"activate",label:this.t("action.activate"),icon:"icon icon-play",bulkable:!0,bulkAction:"activateBulk",enabled:!!this.links.update&&!this.active},{action:"deactivate",label:this.t("action.deactivate"),icon:"icon icon-pause",bulkable:!0,bulkAction:"deactivateBulk",enabled:!!this.links.update&&!!this.active,weight:-1},{divider:!0},{action:"viewInApi",enabled:!0,icon:"icon icon-external-link",label:this.t("action.viewInApi")},{divider:!0},{action:"goToEdit",label:this.t("action.edit"),icon:"icon icon-edit",bulkable:!1,enabled:!!this.links.update&&!this.builtin},{action:"promptRemove",altAction:"remove",bulkAction:"promptRemove",label:this.t("action.remove"),bulkable:!0,icon:"icon icon-delete",enabled:!!this.links.remove,weight:-10}];return e}deactivate(e=[this]){this.$dispatch("promptModal",{componentProps:{drivers:e,driverType:"kontainerDrivers"},component:"DeactivateDriverDialog"})}deactivateBulk(e){this.$dispatch("promptModal",{componentProps:{drivers:e,driverType:"kontainerDrivers"},component:"DeactivateDriverDialog"})}activate(){return this.$dispatch("rancher/request",{url:`v3/kontainerDrivers/${encodeURIComponent(this.id)}?action=activate`,method:"post"},{root:!0}).catch(e=>{this.$dispatch("growl/fromError",{title:this.t("drivers.error.activate",{name:this.nameDisplay}),err:e},{root:!0})})}async activateBulk(e){await Promise.all(e.map(e=>this.$dispatch("rancher/request",{url:`v3/kontainerDrivers/${encodeURIComponent(e.id)}?action=activate`,method:"post"},{root:!0}).catch(t=>{this.$dispatch("growl/fromError",{title:this.t("drivers.error.activate",{name:e.nameDisplay}),err:t},{root:!0})})))}}},78694:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(35664),i=n(82438),a=n.n(i),o=n(21766);class s extends o["default"]{get allOutputs(){return this.$rootGetters["cluster/all"](r.cm.CLUSTER_OUTPUT)||[]}get outputs(){if(!this.allOutputs)return[];const e=this?.spec?.globalOutputRefs||this?.spec?.outputRefs||[];return this.allOutputs.filter(t=>e.includes(t.name))}get outputProviders(){const e=this.outputs.flatMap(e=>e.providers);return a()(e)||[]}get customValidationRules(){return[{path:"spec",validators:["flowOutput"]}]}}},63331:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(44931);class i extends r["default"]{}},21766:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c},matchRuleIsPopulated:function(){return l}});var r=n(35664),i=n(76978),a=n(82438),o=n.n(a),s=n(87811);function l(e){return!!e&&(!(!e.labels||!Object.keys(e.labels).length)||(!!e.hosts?.length||(!!e.container_names?.length||!!e.namespaces?.length)))}class c extends s.A{applyDefaults(){(0,i.hZ)(this,"spec",this.spec||{}),(0,i.hZ)(this.spec,"match",this.spec.match||[]),(0,i.hZ)(this.spec,"filters",this.spec.filters||[]),(0,i.hZ)(this.spec,"localOutputRefs",this.spec.localOutputRefs||[]),(0,i.hZ)(this.spec,"globalOutputRefs",this.spec.globalOutputRefs||[])}get canCustomEdit(){if(!this.spec?.match?.length)return!0;let e=!0;for(const t of this.spec.match)if(l(t.select)&&l(t.exclude)){e=!1;break}return e}get allOutputs(){return this.$rootGetters["cluster/all"](r.cm.OUTPUT)||[]}get allClusterOutputs(){return this.$rootGetters["cluster/all"](r.cm.CLUSTER_OUTPUT)||[]}get outputs(){const e=this.spec?.localOutputRefs||[];return this.allOutputs.filter(t=>e.includes(t.name)&&t.metadata?.namespace===this.metadata?.namespace)}get outputsSortable(){const e=this.outputs.map(e=>e.nameDisplay);return e.sort(),e.join("")}get clusterOutputs(){const e=this.spec?.globalOutputRefs||[];return this.allClusterOutputs?this.allClusterOutputs.filter(t=>e.includes(t.name)):[]}get clusterOutputsSortable(){const e=this.clusterOutputs.map(e=>e.nameDisplay);return e.sort(),e.join("")}get providersDisplay(){const e=[...this.outputs,...this.clusterOutputs],t=e.flatMap(e=>e.providersDisplay);return o()(t)||[]}get customValidationRules(){return[{path:"spec",validators:["flowOutput:verifyLocal"]}]}}},44931:function(e,t,n){"use strict";n.r(t),n.d(t,{PROVIDERS:function(){return i},default:function(){return a}});var r=n(87811);const i=[{name:"awsElasticsearch",labelKey:"logging.outputProviders.awsElasticsearch",default:{endpoint:{}}},{name:"azurestorage",labelKey:"logging.outputProviders.azurestorage",default:{}},{name:"cloudwatch",labelKey:"logging.outputProviders.cloudwatch",default:{}},{name:"datadog",labelKey:"logging.outputProviders.datadog",default:{}},{name:"elasticsearch",labelKey:"logging.outputProviders.elasticsearch",default:{}},{name:"file",labelKey:"logging.outputProviders.file",default:{}},{name:"forward",labelKey:"logging.outputProviders.forward",default:{servers:[{}]}},{name:"gelf",labelKey:"logging.outputProviders.gelf",default:{}},{name:"gcs",labelKey:"logging.outputProviders.gcs",default:{}},{name:"kafka",labelKey:"logging.outputProviders.kafka",default:{format:{type:"json"}}},{name:"kinesisStream",labelKey:"logging.outputProviders.kinesisStream",default:{}},{name:"logdna",labelKey:"logging.outputProviders.logdna",default:{}},{name:"logz",labelKey:"logging.outputProviders.logz",default:{endpoint:{}}},{name:"loki",labelKey:"logging.outputProviders.loki",default:{configure_kubernetes_labels:!0}},{name:"newrelic",labelKey:"logging.outputProviders.newrelic",default:{}},{name:"opensearch",labelKey:"logging.outputProviders.opensearch",default:{}},{name:"redis",labelKey:"logging.outputProviders.redis",default:{port:6379,db_number:0,ttl:0}},{name:"splunkHec",labelKey:"logging.outputProviders.splunkHec",default:{}},{name:"sumologic",labelKey:"logging.outputProviders.sumologic",default:{}},{name:"syslog",labelKey:"logging.outputProviders.syslog",default:{}},{name:"s3",labelKey:"logging.outputProviders.s3",default:{}}];class a extends r.A{get canCustomEdit(){return this.allProvidersSupported}get providers(){const e=this.spec||{};return Object.keys(e).filter(e=>"loggingRef"!==e)}get providersDisplay(){return this.providers.map(e=>{const t=this.t(`logging.outputProviders.${e}`);return t||this.t("logging.outputProviders.unknown")})}isSupportedProvider(e){return!!i.find(t=>t.name===e)}get allProvidersSupported(){return this.providers.every(this.isSupportedProvider)}get providersSortable(){const e=[...this.providersDisplay];return e.sort(),e.join("")}get text(){return this.nameDisplay}get url(){return{name:"c-cluster-product-resource-namespace-id",params:{resource:this.type,id:this.name,namespace:this.namespace}}}get customValidationRules(){return[{path:"spec.logdna",validators:["logdna"]}]}}},78277:function(e,t,n){"use strict";n.r(t),n.d(t,{configType:function(){return o},default:function(){return l}});var r=n(68851),i=n(87811),a=n(45224);const o={activedirectory:"ldap",azuread:"oauth",openldap:"ldap",freeipa:"ldap",ping:"saml",adfs:"saml",keycloak:"saml",okta:"saml",shibboleth:"saml",googleoauth:"oauth",local:"",github:"oauth",githubapp:"oauth",keycloakoidc:"oidc",genericoidc:"oidc",cognito:"oidc"},s={keycloakoidc:"keycloak",genericoidc:"openid"};class l extends i.A{get _availableActions(){const e=super._availableActions;return(0,r.PT)(e,0,{action:"disable",label:"Disable",icon:"icon icon-spinner",enabled:!0===this.enabled}),(0,r.PT)(e,1,{divider:!0}),e}get nameDisplay(){return this.$rootGetters["i18n/withFallback"](`model.authConfig.name."${this.id}"`,null,this.provider)}get provider(){return this.$rootGetters["i18n/withFallback"](`model.authConfig.provider."${this.id}"`,null,this.id)}get configType(){return o[this.id]}get sideLabel(){return this.$rootGetters["i18n/withFallback"](`model.authConfig.description."${this.configType}"`,null,this.configType)}get icon(){try{return(0,a.mS)(`~shell/assets/images/vendor/${s[this.id]||this.id}.svg`)}catch(e){return""}}get state(){return this.enabled?"active":"inactive"}}},16544:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return k}});var r=n(2841),i=n(35664),a=n(68851),o=n(6198),s=n(95799),l=n(39705),c=n(50667),u=n(76978),d=n(11518);n(2722),n(92043),n(9262),n(50025),n(83288),n(74302),n(95265),n(14220),n(3514),n(4364);function h(e){const t=e?.metadata?.labels?.[r.qt.PROVIDER]||e?.status?.provider;return t===i.BN}var p=n(87811),f=n(97707),m=n(44660),g=n(45224),v=n(91462),b=n(48881),y=n(30633),_=n(4364);const w="#707070",E={};function S(e,t,n=[]){const r=`${e}Type`,i=`${e}Id`;return n.find(e=>e[r]===t)?.[i]}class k extends p.A{get details(){const e=[{label:"Provisioner",content:this.provisionerDisplay},{label:"Machine Provider",content:this.machineProviderDisplay},{label:"Kubernetes Version",content:this.kubernetesVersion}];return e}get canCreateKubeconfig(){const e=this.$rootGetters["management/schemaFor"](i.I$.KUBECONFIG);return(e?.collectionMethods||[]).includes("POST")}get _availableActions(){const e=super._availableActions;return(0,a.PT)(e,0,{action:"openShell",label:this.t("nav.shell"),icon:"icon icon-terminal",enabled:!!this.links.shell}),(0,a.PT)(e,1,{action:"downloadKubeConfig",bulkAction:"downloadKubeConfigBulk",label:this.t("nav.kubeconfig.download"),icon:"icon icon-download",bulkable:!0,enabled:this.$rootGetters["isRancher"]&&this.canCreateKubeconfig}),(0,a.PT)(e,2,{action:"copyKubeConfig",label:this.t("cluster.copyConfig"),bulkable:!1,enabled:this.$rootGetters["isRancher"]&&this.canCreateKubeconfig,icon:"icon icon-copy"}),e}get canDelete(){return this.hasLink("remove")&&!this?.spec?.internal}get machinePools(){const e=this.$getters["all"](i.Mc.NODE_POOL);return e.filter(e=>e.spec?.clusterName===this.id)}get provisioner(){return this.status?.driver?this.status.driver:"imported"}get machineProvider(){const e=this.machinePools?.[0]?.provider;return e?e.replace(/config$/i,"").toLowerCase():this.spec?.internal?"local":null}get providerForEmberParam(){let e;const t=m.KONTAINER_TO_DRIVER[(this.provisioner||"").toLowerCase()]||this.provisioner;return e="rancherKubernetesEngine"===t?this.machinePools?.[0]?this.machinePools[0]?.nodeTemplate?.spec?.driver||null:"custom":this.driver?this.driver:t&&t.endsWith("v2")?t:"import",e}get emberEditPath(){const e=this.providerForEmberParam,t={};e&&(t["provider"]=e),"import"===e&&(0,u.Im)(this.eksConfig)&&(0,u.Im)(this.gkeConfig)?t.importProvider="other":("amazoneks"===e&&!(0,u.Im)(this.eksConfig)||"gke"===e&&!(0,u.Im)(this.gkeConfig))&&(t.importProvider=m.KONTAINER_TO_DRIVER[e]);const n=(0,c.g)(`/c/${escape(this.id)}/edit`,t);return n}get groupByLabel(){return this.$rootGetters["i18n/t"]("resourceTable.groupLabel.notInAWorkspace")}get isReady(){return this.hasCondition("Connected")?this.isCondition("Connected"):this.isCondition("Ready")}get config(){if(!this.spec?.[`${this.provisioner}Config`]){const e=Object.keys(this.spec),t=e.find(e=>e.endsWith("Config"));return this.spec[t]}return this.spec?.[`${this.provisioner}Config`]}get kubernetesVersionRaw(){const e=this.status?.version?.gitVersion,t=this.config?.kubernetesVersion;return e||t}get kubernetesVersion(){return this.kubernetesVersionRaw||this.$rootGetters["i18n/t"]("generic.provisioning")}get kubernetesVersionBase(){return this.kubernetesVersion.replace(/[+-].*$/,"")}get kubernetesVersionExtension(){return this.kubernetesVersion.match(/[+-]/)?this.kubernetesVersion.replace(/^.*([+-])/,"$1"):""}get providerOs(){return this.status?.provider.endsWith(".windows")?"windows":"linux"}get providerOsLogo(){return(0,g.mS)(`~shell/assets/images/vendor/${this.providerOs}.svg`)}get workerOSs(){const e=this.status?.windowsWorkerCount,t=this.status?.linuxWorkerCount;if(e||t){const n=[];return e&&n.push(f.CB),t&&n.push(f["do"]),n}return this.providerOs===f.CB?[f.CB]:[f["do"]]}get isLocal(){return!0===this.spec?.internal}get isHarvester(){return h(this)}get isHostedKubernetesProvider(){const e={dispatch:this.$dispatch,getters:this.$getters,axios:this.$axios,$extension:this.$extension,t:(...e)=>this.t.apply(this,e)};return(0,y.b)(e,this.provisioner)}get providerLogo(){let e=this.status?.provider||"kubernetes";this.isHarvester&&(e=d.T3);const t=e.split(".")[0],n=E[t]||t;let r;try{r=(0,g.mS)(`~shell/assets/images/providers/${t}.svg`)}catch(i){_.warn(`Can not find provider logo for provider ${n}`),r=(0,g.mS)("~shell/assets/images/providers/kubernetes.svg")}return r}get providerMenuLogo(){return this.providerLogo}get providerNavLogo(){return this.providerLogo}get iconColor(){return this.metadata?.annotations?.[r.XH.COLOR]}get badge(){const e=this.metadata?.annotations?.[r.XH.ICON_TEXT],t=this.metadata?.annotations?.[r.XH.TEXT];if(!e&&!t)return;let n=this.iconColor||w;const i=this.metadata?.annotations[r.XH.ICON_TEXT]||"";let a;try{a=(0,l.hk)((0,l.H0)(n.trim()))}catch(o){n=w,a=(0,l.hk)((0,l.H0)(n))}return{text:t||void 0,color:n,textColor:a,iconText:i.substr(0,3)}}get scope(){return this.isLocal?r.W8._MANAGEMENT:r.W8._DOWNSTREAM}setClusterNameLabel(e){if(!this.ownerReferences?.length&&this.metadata?.labels?.[i.Hs.CLUSTER_NAME]!==this.id)return this.metadata=this.metadata||{},this.metadata.labels=this.metadata.labels||{},this.metadata.labels[i.Hs.CLUSTER_NAME]=this.id,e?this.save():void 0}get availableCpu(){const e=(0,s.ao)(this.status.requested?.cpu),t=(0,s.ao)(this.status.allocatable?.cpu);return t>0&&e>=0?Math.max(0,t-e):null}get availableMemory(){const e=(0,s.ao)(this.status.requested?.memory),t=(0,s.ao)(this.status.allocatable?.memory);return t>0&&e>=0?Math.max(0,t-e):null}openShell(){this.$dispatch("wm/open",{id:`kubectl-${this.id}`,label:this.$rootGetters["i18n/t"]("wm.kubectlShell.title",{name:this.nameDisplay}),icon:"terminal",component:"KubectlShell",attrs:{cluster:this,pod:{}}},{root:!0})}async generateKubeConfig(e=[this.id]){const t=await this.$dispatch("management/create",{type:i.I$.KUBECONFIG,spec:{clusters:e}},{root:!0}),n=await t.save();return n.status?.value}async downloadKubeConfig(){const e=await this.generateKubeConfig();(0,o.PE)(`${this.nameDisplay}.yaml`,e,"application/yaml")}async downloadKubeConfigBulk(e){const t=e.map(e=>e.mgmt?.id||e.id),n=await this.generateKubeConfig(t);(0,o.PE)("kubeconfig.yaml",n,"application/yaml")}async copyKubeConfig(){try{const e=await this.generateKubeConfig();e&&await(0,b.e)(e)}catch{}}async fetchNodeMetrics(){const e=await this.$dispatch("cluster/findAll",{type:i.NW},{root:!0}),t=await this.$dispatch("cluster/findAll",{type:i.NW},{root:!0}),n=e.some(e=>e.hasARole&&!e.isWorker),r=t.filter(t=>{const r=e.find(e=>e.id===t.id);return r&&(!n||r.isWorker)}),a={cpu:0,memory:0};return(0,u.Im)(r)?null:r.reduce((e,t)=>(e.cpu+=(0,s.ao)(t?.usage?.cpu),e.memory+=(0,s.ao)(t?.usage?.memory),e),a)}get nodes(){return this.$getters["all"](i.Mc.NODE).filter(e=>e.id.startsWith(this.id))}get provClusterId(){const e=!!this.spec?.rancherKubernetesEngineConfig,t=this.isLocal||e||this.isHostedKubernetesProvider?"to":"from",n=S(t,i.Z7.RANCHER_CLUSTER,this.metadata?.relationships);return n||S("to"===t?"from":"to",i.Z7.RANCHER_CLUSTER,this.metadata?.relationships)}get pinned(){return this.$rootGetters["prefs/get"](v.Hu).includes(this.id)}pin(){const e=this.$rootGetters["prefs/get"](v.Hu)||[];(0,a.PG)(e,this.id),this.$dispatch("prefs/set",{key:v.Hu,value:e},{root:!0})}unpin(){const e=this.$rootGetters["prefs/get"](v.Hu)||[];(0,a.Gj)(e,this.id),this.$dispatch("prefs/set",{key:v.Hu,value:e},{root:!0})}}},54820:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(2841),i=n(14220),a=n(35664),o=n(82614),s=n(11518);class l extends o.A{detailPageHeaderActionOverride(e){if(e===i.YQ)return this.t("members.createActionLabel")}get canCustomEdit(){return!1}get canYaml(){return!1}get canClone(){return!1}get user(){return this.$rootGetters["management/byId"](a.Mc.USER,this.userName)}get principal(){const e=this.principalId.replace(/\//g,"%2F");return this.$dispatch("rancher/find",{type:a.k$.PRINCIPAL,id:this.principalId,opt:{url:`/v3/principals/${e}`}},{root:!0})}get syncPrincipal(){return this.$rootGetters["rancher/byId"](a.k$.PRINCIPAL,this.principalId)}get principalId(){return this.principalName||this.userPrincipalName||this.groupPrincipalName||""}get nameDisplay(){return this.user?.nameDisplay||this.userName||this.syncPrincipal?.nameDisplay||this.principalId}get roleDisplay(){return this.roleTemplate?.nameDisplay}get roleDescription(){return this.roleTemplate?.description}get roleTemplate(){return this.$rootGetters["management/byId"](a.Mc.ROLE_TEMPLATE,this.roleTemplateName)}get cluster(){return this.$rootGetters["management/byId"](a.Mc.CLUSTER,this.clusterName)}get clusterDisplayName(){return this.cluster?this.cluster.nameDisplay:this.clusterName}get clusterDetailLocation(){if(this.cluster)return this.cluster.detailLocation;const e="c-cluster-product-resource-id",t={resource:a.Mc.CLUSTER_ROLE_TEMPLATE_BINDING,id:this.clusterName,product:"explorer"};return{name:e,params:t}}get listLocation(){return this.$rootGetters["currentProduct"].inStore===s.T3?{name:`${s.T3}-c-cluster-members`}:{name:"c-cluster-product-members"}}get doneOverride(){return this.listLocation}get parentLocationOverride(){return this.listLocation}get subSearch(){return[{nameDisplay:this.nameDisplay}]}get isSystem(){return!this.metadata.annotations[r.Rw]}get norman(){return(async()=>{const e=await this.principal,t="group"===e?.principalType?"groupPrincipalId":"userPrincipalId";return this.$dispatch("rancher/create",{type:a.k$.CLUSTER_ROLE_TEMPLATE_BINDING,roleTemplateId:this.roleTemplateName,[t]:e?.id,clusterId:this.clusterName,id:this.id?.replace("/",":")},{root:!0})})()}async save(){const e=await this.norman;return e.save()}async remove(){const e=await this.norman;await e.remove({url:`/v3/clusterRoleTemplateBindings/${e.id}`})}}},58975:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(11518),i=n(82614);class a extends i.A{get state(){return this.enabled?"active":"off"}get enabled(){return null!==this.status.lockedValue?this.status.lockedValue:null!==this.spec.value?this.spec.value:this.status.default}get restartRequired(){return!this.status.dynamic}get canYaml(){return!1}get canDisable(){return this.canUpdate&&!r.r6.includes(this.id)}get _availableActions(){const e=super._availableActions,t=this.enabled,n={action:"toggleFeatureFlag",label:t?this.t("action.deactivate"):this.t("action.activate"),icon:"icon icon-edit",enabled:t?this.canDisable:this.canUpdate};return n.enabled=n.enabled&&null===this.status.lockedValue,e.unshift(n),e}toggleFeatureFlag(e=this){this.$dispatch("promptModal",{component:"FeatureFlagListDialog",resources:Array.isArray(e)?e:[e],modalWidth:"450",height:"auto",styles:"max-height: 100vh;"})}}},61504:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(35664),i=n(68851),a=n(82614),o=n(2841);class s extends a.A{get isLocal(){return"fleet-local"===this.metadata.name}get counts(){const e=this.$rootGetters["management/all"](r.i2)[0].counts||{},t=this.metadata.name,n={clusterGroups:e[r.Hs.CLUSTER_GROUP]?.namespaces?.[t]?.count||0,clusters:e[r.Hs.CLUSTER]?.namespaces?.[t]?.count||0,gitRepos:e[r.Hs.GIT_REPO]?.namespaces?.[t]?.count||0,helmOps:e[r.Hs.HELM_OP]?.namespaces?.[t]?.count||0};return n}get clusters(){const e=this.$getters["all"](r.Hs.CLUSTER),t=(0,i.WP)(e,"metadata.namespace",this.metadata.name);return t}get clusterGroups(){const e=this.$getters["all"](r.Hs.CLUSTER_GROUP),t=(0,i.WP)(e,"metadata.namespace",this.metadata.name);return t}get repos(){const e=this.$getters["all"](r.Hs.GIT_REPO),t=(0,i.WP)(e,"namespace",this.id);return t}get helmOps(){const e=this.$getters["all"](r.Hs.HELM_OP),t=(0,i.WP)(e,"namespace",this.id);return t}get basicNorman(){return this.id?this.$dispatch("rancher/find",{id:this.id,type:r.k$.FLEET_WORKSPACES},{root:!0}):this.$dispatch("rancher/create",{type:r.k$.FLEET_WORKSPACES,name:this.metadata.name},{root:!0})}get norman(){return(async()=>{const e=await this.basicNorman;return e.annotations=this.metadata.annotations,e.labels=this.metadata.labels,e})()}async save(){const e=await this.norman;await e.save()}waitForWorkspaceSchema(e=2e4,t){return this.waitForTestFn(()=>{const e=this.$rootGetters["management/schemaFor"](r.Hs.WORKSPACE);return t?t(e):e},this.$rootGetters["i18n/t"]("fleet.workspaces.timeout"),e)}async remove(){const e=await this.norman;await e.remove()}get confirmRemove(){return!0}get systemAnnotations(){return[o.Hs.OCI_STORAGE_SECRET_DEFAULT]}}},33707:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(87811);class i extends r.A{}},14606:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var r=n(2841),i=n(35664),a=n(4799),o=n(68851),s=n(76978),l=n(63928),c=n(14220);const u="user-base",d="user",h="admin",p=[u,h,d],f=a.SUBTYPE_MAPPING.GLOBAL.key;class m extends l.A{get customValidationRules(){return[{path:"rules",validators:[`roleTemplateRules:${this.type}`],nullable:!1,type:"array"}]}get details(){const e=this._details;return e.unshift({label:this.t("resourceDetail.detailTop.name"),content:(0,s.Jt)(this,"name")}),e}get nameDisplay(){const e=`rbac.globalRoles.role.${this.id}.label`,t=this.displayName||this.metadata?.name||this.id;return this.$rootGetters["i18n/withFallback"](e,t)}get descriptionDisplay(){return this.description||this.metadata?.annotations?.[r.tC]||this.$rootGetters["i18n/withFallback"](`rbac.globalRoles.role.${this.id}.description`,this.t("rbac.globalRoles.unknownRole.description"))}get isSpecial(){return p.includes(this.id)}get subtype(){return f}get default(){return!!this.newUserDefault}get allResources(){return this.$getters["all"](i.yx).filter(e=>e.attributes?.kind)}get globalResources(){return this.allResources.filter(e=>e.attributes.group.includes(a.CATTLE_API_GROUP))}get resources(){return(0,o.sb)(this.globalResources.map(e=>e.attributes?.resource)).sort()}get listLocation(){return{name:"c-cluster-auth-roles",hash:`#${f}`}}get detailLocation(){return{...this._detailLocation,name:"c-cluster-auth-roles-resource-id"}}get doneOverride(){return this.listLocation}get parentLocationOverride(){return this.listLocation}get basicNorman(){return this.id?this.$dispatch("rancher/find",{id:this.id,type:i.k$.GLOBAL_ROLE},{root:!0}):this.$dispatch("rancher/create",{type:i.k$.GLOBAL_ROLE,name:this.displayName},{root:!0})}get norman(){return(async()=>{const e=await this.basicNorman;return e.rules=this.rules,e.newUserDefault=this.newUserDefault,e.id=this.id,e.name=this.displayName,e.description=this.description,e.inheritedClusterRoles=this.inheritedClusterRoles,e})()}get canCreate(){const e=this.$getters["schemaFor"](this.type);return e?.resourceMethods.find(e=>a.CREATE_VERBS.has(e))}goToClone(e={}){const t=this.detailLocation;t.query={...t.query,[c.g]:c.dT,[c.AS]:c.xz,roleContext:f,...e},this.currentRouter().push(t)}async save(){const e=await this.norman;for(const t of e.rules)t.nonResourceURLs&&t.nonResourceURLs.length?(delete t.resources,delete t.apiGroups):delete t.nonResourceURLs;return e.save()}async remove(){const e=await this.norman;await e.remove()}}},97621:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(35664),i=n(82614);class a extends i.A{get nameDisplay(){const e=this.$getters["byId"](r.Mc.GLOBAL_ROLE,this.globalRoleName);if(!e)return this.globalRoleName;const t=this.groupPrincipalName?this._displayPrincipal:this._displayUser;return t?`${e.displayName} (${t})`:e.displayName}get _displayPrincipal(){const e=this.$rootGetters["rancher/byId"](r.k$.PRINCIPAL,this.groupPrincipalName);return e?`${e.name} - ${e.displayType}`:null}get _displayUser(){return this.user}get basicNorman(){return this.id?this.$dispatch("rancher/find",{id:this.id,type:r.k$.GLOBAL_ROLE_BINDING},{root:!0}):this.$dispatch("rancher/create",{type:r.k$.GLOBAL_ROLE_BINDING,name:this.displayName},{root:!0})}get norman(){return(async()=>{const e=await this.basicNorman;return e.globalRoleId=this.globalRoleName,e.userId=this.userName,e.newUserDefault=this.newUserDefault,e.groupPrincipalId=this.groupPrincipalName,e})()}async save(){const e=await this.norman;return e.save()}async remove(){const e=await this.norman;await e.remove()}}},44660:function(e,t,n){"use strict";n.r(t),n.d(t,{DRIVER_TO_IMPORT:function(){return c},KEV1:function(){return l},KONTAINER_TO_DRIVER:function(){return s},default:function(){return u}});var r=n(82614);const i=["rke","rancherkubernetesengine"],a=["amazoneks","googlegke","azureaks"],o=["amazoneks","googlegke","azureaks"],s={amazonelasticcontainerservice:"amazoneks",azurekubernetesservice:"azureaks",aks:"azureaksv2",eks:"amazoneksv2",gke:"googlegkev2",googlekubernetesengine:"googlegke",huaweicontainercloudengine:"huaweicce",huaweiengine:"huaweicce",linodekubernetesengine:"linodelke",lke:"linodelke",lkeengine:"linodelke",okeengine:"oracleoke",oke:"oracleoke",oraclecontainerengine:"oracleoke",rke2:"rke2",tencentengine:"tencenttke",tencentkubernetesengine:"tencenttke",aliyunkubernetescontainerservice:"aliyun",baiducloudcontainerengine:"baidu",opentelekomcloudcontainerengine:"otccce"},l=["amazonelasticcontainerservice","azurekubernetesservice","googlekubernetesengine"],c={googlegke:"gke",amazoneks:"eks",azureaks:"aks",alibaba:"alibabacloud"};class u extends r.A{get showCreate(){return!i.includes(this.driverName)&&!!this.spec.active}get showImport(){return this.showCreate&&o.includes(this.driverName)}get emberCreatePath(){let e=this.driverName;return a.includes(e)&&!e.endsWith("v2")&&(e+="v2"),`/g/clusters/add/launch/${e}`}get emberImportPath(){const e=c[this.driverName]||this.driverName;return`/g/clusters/add/launch/import?importProvider=${e}`}get driverName(){if(!this.spec.builtIn){const e=this.status?.displayName?.toLowerCase();if(e)return s[e]||e}return s[this.id]||this.id}}},77917:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return p}});var r=n(2841),i=n(35664),a=n(27278),o=n(44458),s=n(6198),l=n(24576),c=n.n(l),u=n(82614),d=n(61843);const h=["goToViewYaml","download","viewInApi"];class p extends u.A{get _availableActions(){const e=super._availableActions;return e.filter(e=>e.divider||h.includes(e.action))}get kubeNodeName(){return this.metadata.labels[r.Do.NODE_NAME]}get mgmtClusterId(){return this.id.substring(0,this.id.indexOf("/"))}get kubeNodeDetailLocation(){return this.kubeNodeName?{name:"c-cluster-product-resource-id",params:{cluster:this.mgmtClusterId,product:a.o,resource:i.NW,id:this.kubeNodeName}}:null}get isWorker(){return this.spec.worker}get isControlPlane(){return this.spec.controlPlane}get isEtcd(){return this.spec.etcd}get roles(){const{isControlPlane:e,isWorker:t,isEtcd:n}=this;return(0,o.listNodeRoles)(e,t,n,this.t("generic.all"))}get pool(){const e=this.spec.nodePoolName.replace(":","/");return this.$rootGetters["management/byId"](i.Mc.NODE_POOL,e)}get norman(){const e=this.id.replace("/",":");return this.$rootGetters["rancher/byId"](i.k$.NODE,e)}get canDelete(){return this.norman?.hasLink("remove")}get canUpdate(){return this.hasLink("update")&&this.norman?.hasLink("update")}remove(){return this.norman?.remove()}downloadKeys(){const e=this.norman?.links?.nodeConfig;e&&(0,s.Is)(e)}async scaleDown(e=this){this.$dispatch("promptModal",{resources:e,component:"ScaleMachineDownDialog",modalWidth:"450px"})}get provisioningCluster(){return this.$getters["all"](i.Z7.RANCHER_CLUSTER).find(e=>e.mgmtClusterId===this.mgmtClusterId)}get doneOverride(){return this.provisioningCluster?.detailLocation}get canClone(){return!1}get addresses(){return this.status?.addresses||this.status?.internalNodeStatus?.addresses||[]}get internalIp(){const e=this.addresses.find(({type:e})=>e===i.FV.INTERNAL_IP);return e?e.address:!e&&this.status.rkeNode?this.status.rkeNode.internalAddress:this.t("generic.none")}get externalIp(){const e=c()(this.addresses,e=>"ExternalIP"===e.type)?.address;return e||(!e&&this.status.rkeNode?this.status.rkeNode.address:this.t("generic.none"))}get canScaleDown(){const e=this.norman?.actions?.scaledown;return!(this.isEtcd||this.isControlPlane||!e)||e&&(0,d.notOnlyOfRole)(this,this.provisioningCluster?.nodes)}}},68959:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(35664),i=n(74302),a=n(82614),o=n(61843);const s=["goToViewYaml","download","viewInApi"];class l extends a.A{get _availableActions(){const e=super._availableActions;return e.filter(e=>e.divider||s.includes(e.action))}get nodeTemplateId(){return(this.spec?.nodeTemplateName||"").replace(/:/,"/")}get nodeTemplate(){return this.$getters["byId"](r.Mc.NODE_TEMPLATE,this.nodeTemplateId)}get provider(){return this.nodeTemplate?.provider}get providerName(){return this.nodeTemplate?.nameDisplay}get providerDisplay(){return this.nodeTemplate?.providerDisplay}get providerLocation(){return this.nodeTemplate?.providerLocation}get providerSize(){return this.nodeTemplate?.providerSize}get provisioningCluster(){return this.$getters["all"](r.Z7.RANCHER_CLUSTER).find(e=>e.name===this.spec.clusterName)}get doneOverride(){return{name:"c-cluster-product-resource-namespace-id",params:{resource:r.Z7.RANCHER_CLUSTER,namespace:this.provisioningCluster?.namespace,id:this.spec.clusterName}}}get scale(){return this.norman.quantity}scalePool(e){this.norman.quantity+=e,this.scaleTimer&&clearTimeout(this.scaleTimer),this.scaleTimer=setTimeout(()=>{try{this.norman.save()}catch(e){this.$dispatch("growl/fromError",{title:"Error scaling pool",error:e},{root:!0})}},1e3)}get nodes(){const e=this.id.replace("/",":");return this.$getters["all"](r.Mc.NODE).filter(t=>t.spec.nodePoolName===e)}get nodeSummary(){const e={pending:0,unavailable:0,ready:0};return this.nodes?this.nodes.reduce((e,t)=>(t.metadata.state.error?e.unavailable++:t.metadata.state.transitioning?e.pending++:"active"!==t.state?e.unavailable++:e.ready++,e),{...e}):e}get desired(){return this.spec?.quantity||0}get pending(){return this.nodeSummary.pending}get ready(){return this.nodeSummary.ready}get unavailable(){return this.nodeSummary.unavailable}get stateParts(){const e=[{label:"Pending",color:"bg-info",textColor:"text-info",value:this.pending,sort:1},{label:"Unavailable",color:"bg-error",textColor:"text-error",value:this.unavailable,sort:3},{label:"Ready",color:"bg-success",textColor:"text-success",value:this.ready,sort:4}].filter(e=>e.value>0);return(0,i.Ul)(e,"sort:desc")}get norman(){const e=this.id.replace("/",":");return this.$rootGetters["rancher/byId"](r.k$.NODE_POOL,e)}get canDelete(){return this.norman?.hasLink("remove")}get canUpdate(){return this.norman?.hasLink("update")}get isControlPlane(){return!0===this.spec?.controlPlane}get isEtcd(){return!0===this.spec?.etcd}canScaleDownPool(){return!this.isEtcd&&!this.isControlPlane||(0,o.notOnlyOfRole)(this,this?.provisioningCluster?.nodes)}remove(){return this.norman?.remove()}}},57075:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(95799),i=n(82614);const a=[{driver:"aliyunecs",size:{key:"instanceType"},location:{getDisplayProperty(e){return`${e.providerConfig?.region}${e.providerConfig?.zone}`}}},{driver:"amazonec2",size:{key:"instanceType"},location:{getDisplayProperty(e){return`${e.providerConfig?.region}${e.providerConfig?.zone}`}}},{driver:"azure",size:{key:"size"},location:{key:"location"}},{driver:"digitalocean",size:{key:"size"},location:{key:"region"}},{driver:"exoscale",size:{key:"instanceProfile"},location:{key:"availabilityZone"}},{driver:"linode",size:{key:"instanceType"},location:{key:"region"}},{driver:"oci",size:{key:"nodeShape"},location:{}},{driver:"packet",size:{key:"plan"},location:{key:"facilityCode"}},{driver:"pnap",size:{key:"serverType"},location:{key:"serverLocation"}},{driver:"rackspace",size:{key:"flavorId"},location:{key:"region"}},{driver:"vmwarevsphere",size:{getDisplayProperty(e){const t=(0,r.Mo)(1048576*e.providerConfig?.memorySize,1024,"iB");return`${t}, ${e.providerConfig?.cpuCount} Core`}},location:{key:null}}];class o extends i.A{get provider(){const e=Object.keys(this),t=e.filter(e=>null!==this[e]).find(e=>e.endsWith("Config"));return t?t.replace(/config$/i,""):null}get providerConfig(){return this[`${this.provider}Config`]}get providerDisplay(){const e=(this.provider||"").toLowerCase();return this.$rootGetters["i18n/withFallback"](`cluster.provider."${e}"`,null,"generic.unknown",!0)}get providerLocation(){if(this.provider){const e=a.find(e=>e.driver===this.provider);if(e?.location){if(e.location.getDisplayProperty)return e.location.getDisplayProperty(this);const t=this.providerConfig?.[e.location.key];if(t)return t}}return this.providerConfig?.region||this.t("node.list.poolDescription.noLocation")}get providerSize(){if(this.provider){const e=a.find(e=>e.driver===this.provider);if(e?.size){if(e.size.getDisplayProperty)return e.size.getDisplayProperty(this);const t=this.providerConfig?.[e.size.key];if(t)return t}}return this.providerConfig?.size||this.t("node.list.poolDescription.noSize")}}},81831:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(87811);class i extends r.A{get details(){return[...this._details,{label:this.t("oidcclient.redirectURIs.label"),content:this.spec.redirectURIs?.join(", ")},{label:this.t("oidcclient.refreshTokenExpirationSeconds.detailLabel"),content:this.spec.refreshTokenExpirationSeconds},{label:this.t("oidcclient.tokenExpirationSeconds.detailLabel"),content:this.spec.tokenExpirationSeconds}]}}},10311:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(63928);class i extends r.A{}},24220:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var r=n(2841),i=n(35664),a=n(82614),o=n(3514),s=n.n(o),l=n(11518);function c(e,t){return t.forEach(t=>{e[t]?.limit&&!s()(e[t].limit)&&Object.keys(e[t].limit).forEach(n=>{e[t].limit[n]||delete e[t].limit[n]}),e[t]?.usedLimit&&!s()(e[t].usedLimit)&&Object.keys(e[t].usedLimit).forEach(n=>{e[t].usedLimit[n]||delete e[t].usedLimit[n]}),e[t]?.limit&&s()(e[t].limit)&&(e[t].limit=null),e[t]?.usedLimit&&s()(e[t].usedLimit)&&(e[t].usedLimit=null),e[t]&&!s()(e[t])&&Object.keys(e[t]).every(n=>null===e[t][n])&&(e[t]=null)}),e}class u extends a.A{get isSystem(){return"true"===this.metadata?.labels?.[r.MW]}get isDefault(){return"true"===this.metadata?.labels?.[r.ol]}get namespaces(){if(!this.$rootGetters["isRancher"])return[];const e=this.$rootGetters["currentProduct"].inStore,t=this.$rootGetters[`${e}/all`](i.CU);return t.filter(e=>e.projectId===this.metadata.name)}get description(){return this.spec?.description}get doneOverride(){return this.listLocation}get listLocation(){return this.$rootGetters["currentProduct"].inStore===l.T3?{name:`${l.T3}-c-cluster-projectsnamespaces`}:{name:"c-cluster-product-projectsnamespaces"}}get _detailLocation(){const e=super._detailLocation;return this.$rootGetters["currentProduct"].inStore===l.T3&&(e.name=`${l.T3}-${e.name}`.replace("-product","")),e}get parentLocationOverride(){return this.listLocation}async save(e){const t=await this.norman,n=await t.save({replace:e});return n}async remove(){const e=await this.norman;await e.remove(...arguments),await this.$dispatch("management/findAll",{type:i.Mc.PROJECT,opt:{force:!0}},{root:!0})}get norman(){return this.id?this.normanEditProject:this.normanNewProject}get normanNewProject(){return(async()=>{const e=c(this.spec,["resourceQuota","namespaceDefaultResourceQuota"]),t=await this.$dispatch("rancher/create",{type:i.k$.PROJECT,name:this.spec.displayName,description:this.spec.description,annotations:this.metadata.annotations,labels:this.metadata.labels,clusterId:this.$rootGetters["currentCluster"].id,creatorId:this.$rootGetters["auth/principalId"],containerDefaultResourceLimit:this.spec.containerDefaultResourceLimit},{root:!0});return t.setAnnotations(this.metadata.annotations),t.setLabels(this.metadata.labels),t.setResourceQuotas(e),t})()}get normanEditProject(){return(async()=>{const e=await this.$dispatch("rancher/find",{type:i.k$.PROJECT,id:this.id.replace("/",":")},{root:!0}),t=c(this.spec,["resourceQuota","namespaceDefaultResourceQuota"]);return e.setAnnotations(this.metadata.annotations),e.setLabels(this.metadata.labels),e.setResourceQuotas(t),e.description=this.spec.description,e.name=this.spec.displayName,e.containerDefaultResourceLimit=this.spec.containerDefaultResourceLimit,e})()}get canUpdate(){return super.canUpdate||this.canUpdateProjectBindings}get canUpdateProjectBindings(){const e=this.$rootGetters["rancher/schemaFor"](i.k$.PROJECT_ROLE_TEMPLATE_BINDING);return e?.collectionMethods.includes("POST")}get canEditYaml(){return!this.schema?.resourceMethods?.find(e=>"blocked-PUT"===e)&&super.canUpdate}get confirmRemove(){return!0}get glance(){const e=[...this._glance],t=e.findIndex(e=>"namespace"===e.name);return t>-1&&e.splice(t,1),e}}},91673:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(2841),i=n(35664),a=n(82614);class o extends a.A{get canCustomEdit(){return!1}get canYaml(){return!1}get canClone(){return!1}get user(){return this.$rootGetters["management/byId"](i.Mc.USER,this.userName)}get principal(){const e=this.principalId.replace(/\//g,"%2F");return this.$dispatch("rancher/find",{type:i.k$.PRINCIPAL,id:this.principalId,opt:{url:`/v3/principals/${e}`}},{root:!0})}get principalId(){return this.principalName||this.userPrincipalName||this.groupPrincipalName||""}get nameDisplay(){return this.user?.nameDisplay}get projectId(){return this.projectName?.replace(":","/")}get clusterId(){return this.projectName.substring(0,this.projectName.lastIndexOf(":"))}get project(){return this.$rootGetters["management/byId"](i.Mc.PROJECT,this.projectId)}get cluster(){return this.$rootGetters["management/byId"](i.Mc.CLUSTER,this.clusterId)}get projectDisplayName(){return this.project?this.project.nameDisplay:this.projectName}get clusterDisplayName(){return this.cluster?this.cluster.nameDisplay:this.clusterId}get userAvatar(){return{nameDisplay:this.nameDisplay,userName:this.user.username,avatarSrc:this.user.avatarSrc}}get projectDetailLocation(){if(this.project)return this.project.detailLocation;const e="c-cluster-product-resource-id",t={resource:i.Mc.PROJECT,id:this.projectId,product:"explorer"};return{name:e,params:t}}get clusterDetailLocation(){if(this.cluster)return this.cluster.detailLocation;const e="c-cluster-product-resource-id",t={resource:i.Mc.CLUSTER_ROLE_TEMPLATE_BINDING,id:this.clusterName,product:"explorer"};return{name:e,params:t}}get roleTemplate(){return this.$rootGetters["management/byId"](i.Mc.ROLE_TEMPLATE,this.roleTemplateName)}get roleDisplay(){return this.roleTemplate.nameDisplay}get listLocation(){return{name:"c-cluster-explorer-project-members"}}get isSystem(){return!this.metadata.annotations[r.Rw]}get norman(){return(async()=>{const e=await this.principal,t="group"===e?.principalType?"groupPrincipalId":"userPrincipalId";return this.$dispatch("rancher/create",{type:i.k$.PROJECT_ROLE_TEMPLATE_BINDING,roleTemplateId:this.roleTemplateName,[t]:e?.id,projectId:this.projectName,projectRoleTemplateId:"",id:this.id?.replace("/",":")},{root:!0})})()}async save(){const e=await this.norman;return e.save()}async remove(){const e=await this.norman;await e.remove({url:`/v3/projectRoleTemplateBindings/${e.id}`})}}},4372:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(63928);class i extends r.A{}},4799:function(e,t,n){"use strict";n.r(t),n.d(t,{CATTLE_API_GROUP:function(){return l},CREATE_VERBS:function(){return d},SUBTYPE_MAPPING:function(){return c},VERBS:function(){return u},default:function(){return h}});var r=n(76978),i=n(2841),a=n(35664),o=n(63928),s=n(14220);const l=".cattle.io",c={GLOBAL:{key:"GLOBAL",type:"management.cattle.io.globalrole",defaultKey:"newUserDefault",id:"GLOBAL",labelKey:"rbac.roletemplate.subtypes.GLOBAL.label"},CLUSTER:{key:"CLUSTER",type:"management.cattle.io.roletemplate",context:"cluster",defaultKey:"clusterCreatorDefault",id:"CLUSTER",labelKey:"rbac.roletemplate.subtypes.CLUSTER.label"},NAMESPACE:{key:"NAMESPACE",type:"management.cattle.io.roletemplate",context:"project",defaultKey:"projectCreatorDefault",id:"NAMESPACE",labelKey:"rbac.roletemplate.subtypes.NAMESPACE.label"},RBAC_ROLE:{key:"RBAC_ROLE",type:"rbac.authorization.k8s.io.role",id:"RBAC_ROLE",labelKey:"rbac.roletemplate.subtypes.RBAC_ROLE.label"},RBAC_CLUSTER_ROLE:{key:"RBAC_CLUSTER_ROLE",type:"rbac.authorization.k8s.io.clusterrole",id:"RBAC_CLUSTER_ROLE",labelKey:"rbac.roletemplate.subtypes.RBAC_CLUSTER_ROLE.label"}},u=["create","delete","get","list","patch","update","watch"],d=new Set(["PUT","blocked-PUT"]);class h extends o.A{get customValidationRules(){return[{path:"rules",validators:[`roleTemplateRules:${this.type}`],nullable:!1,type:"array"}]}get details(){const e=this._details;return e.unshift({label:this.t("resourceDetail.detailTop.name"),content:(0,r.Jt)(this,"name")},{label:this.t("resourceDetail.detailTop.description"),content:this.metadata?.annotations?.[i.tC]}),e}get state(){return this.locked?"locked":this.metadata?.state?.name||"unknown"}get subtype(){return this._subtype?this._subtype:this.type===c.CLUSTER.type&&this.context===c.CLUSTER.context?c.CLUSTER.key:this.type===c.NAMESPACE.type&&this.context===c.NAMESPACE.context?c.NAMESPACE.key:null}updateSubtype(e){this["_subtype"]=e,this.context=c[e].context}get default(){const e=c[this.subtype]?.defaultKey;return!!this[e]}updateDefault(e){const t=c[this.subtype].defaultKey;this[t]=e}get listLocation(){return{name:"c-cluster-auth-roles",hash:`#${this.subtype}`}}get detailLocation(){return{...this._detailLocation,name:"c-cluster-auth-roles-resource-id"}}get doneOverride(){return this.listLocation}get parentLocationOverride(){return this.listLocation}get basicNorman(){return this.id?this.$dispatch("rancher/find",{id:this.id,type:a.k$.ROLE_TEMPLATE},{root:!0}):this.$dispatch("rancher/create",{type:a.k$.ROLE_TEMPLATE,name:this.displayName},{root:!0})}get norman(){return(async()=>{const e=await this.basicNorman;return e.rules=this.rules,e.locked=this.locked,e.clusterCreatorDefault=this.clusterCreatorDefault||!1,e.projectCreatorDefault=this.projectCreatorDefault||!1,e.context=this.context,e.description=this.description,e.roleTemplateIds=this.roleTemplateNames,e})()}get canCreate(){const e=this.$getters["schemaFor"](this.type);return e?.resourceMethods.find(e=>d.has(e))}goToClone(e={}){const t=this.detailLocation;t.query={...t.query,[s.g]:s.dT,[s.AS]:s.xz,roleContext:this.subtype,...e},this.currentRouter().push(t)}async save(){const e=await this.norman;for(const t of e.rules)t.nonResourceURLs&&t.nonResourceURLs.length?(delete t.resources,delete t.apiGroups):delete t.nonResourceURLs;return e.save()}async remove(){const e=await this.norman;await e.remove()}}},76061:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(9262),i=n(82614),a=n(68094),o=n(11518),s=n(14220);class l extends i.A{get fromEnv(){return"env"===(this.source||"").toLowerCase()}get _availableActions(){const e=["cloneYaml","download","goToEditYaml","goToViewYaml","goToViewConfig"],t=r.Df[this.id];let n=super._availableActions;t?.readOnly&&e.push("goToEdit"),n=n.filter(t=>!e.includes(t.action));const i=n.find(e=>"goToEdit"===e.action);return i&&(i.label=this.t("advancedSettings.edit.label")),n}get customValidationRules(){const e=[];return(0,a.L6)(this.metadata.name)&&e.push({path:"value",validators:["required","https","url","trailingForwardSlash"]}),e}goToEdit(e={}){this.$rootGetters["currentProduct"].inStore===o.T3?(location.name=`${o.T3}-c-cluster-brand`,location.params={cluster:this.$rootGetters["currentCluster"].id,product:o.T3},location.query={...location.query,[s.g]:s.G5,[s.AS]:s.xz,...e},this.currentRouter().push(location)):super.goToEdit()}get disableResourceDetailDrawer(){return!0}}},69754:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(35664),i=n(87811),a=n(23464),o=n.n(a),s=n(4364);class l extends i.A{constructor(e,t,n=null,r=!1){const i=e.description;super(e,t,n,r),this.description=i}get isSystem(){for(const e of this.principalIds||[])if(e.startsWith("system://"))return!0;return!1}get isCurrentUser(){const e=this.$rootGetters["auth/principalId"];return!!(this.principalIds||[]).find(t=>t===e)}get principals(){return this.principalIds.map(e=>this.$rootGetters["rancher/byId"](r.k$.PRINCIPAL,e)).filter(e=>e)}get nameDisplay(){return this.displayName||this.username||this.id}get labelForSelect(){const e=this.nameDisplay,t=this.id;return e===t?t:`${e} (${t})`}get provider(){const e=this.principalIds||[];let t,n=!1,r=!0,i="";for(const a of e){const e=a.indexOf(":"),t=a.substr(0,e).toLowerCase().split("_")[0];"system"===t?n=!0:"local"===t||(r=!1,i=i?"multiple":t)}return t=n?"system":r?"local":i,t}get providerDisplay(){return this.$rootGetters["i18n/withFallback"](`model.authConfig.provider."${this.provider}"`,null,this.provider)}get userLastLogin(){return 1e3*this.metadata?.labels?.["cattle.io/last-login"]||0}get userDisabledIn(){return 1e3*this.metadata?.labels?.["cattle.io/disable-after"]||0}get userDisabledInDisplay(){return"inactive"===this.state?null:this.userDisabledIn}get userDeletedIn(){return 1e3*this.metadata?.labels?.["cattle.io/delete-after"]||0}get state(){return!1===this.enabled?"inactive":this.metadata?.state?.name||"unknown"}get stateDisplay(){switch(this.state){case"inactive":return this.t("user.state.inactive");case"active":return this.t("user.state.active");case"unknown":return this.t("user.state.unknown");default:return this.state}}get description(){return this._description}set description(e){this._description=e}toJSON(){const e=super.toJSON();return e.description=this._description,delete e._description,e}async save(e){const t=await this.$dispatch("clone",{resource:this});return delete t.canRefreshMemberships,t._save(e)}async setEnabled(e){const t=await this.$dispatch("clone",{resource:this});t.enabled=e,await t.save()}async activate(){await this.setEnabled(!0)}async activateBulk(e){await Promise.all(e.map(e=>e.setEnabled(!0)))}async deactivate(){await this.setEnabled(!1)}async deactivateBulk(e){await Promise.all(e.map(e=>e.setEnabled(!1)))}async refreshGroupMembership(){const e=await this.$dispatch("create",{type:r.I$.GROUP_MEMBERSHIP_REFRESH_REQUESTS});e.spec={userId:this.id},await e.save()}get canRefreshMemberships(){const e=this.$getters["schemaFor"](r.I$.GROUP_MEMBERSHIP_REFRESH_REQUESTS);return!!e&&e?.collectionMethods.find(e=>"post"===e.toLowerCase())}canActivate(e){const t=e?"inactive"===this.state:"active"===this.state,n=this.hasLink("update");return t&&n&&!this.isCurrentUser}get _availableActions(){return[{action:"activate",label:this.t("action.enable"),icon:"icon icon-play",bulkable:!0,bulkAction:"activateBulk",enabled:this.canActivate(!0),weight:2},{action:"deactivate",label:this.t("action.disable"),icon:"icon icon-pause",bulkable:!0,bulkAction:"deactivateBulk",enabled:this.canActivate(!1),weight:1},{action:"refreshGroupMembership",label:this.t("authGroups.actions.refresh"),icon:"icon icon-refresh",enabled:this.canRefreshMemberships},{divider:!0},...super._availableActions]}get details(){return[{label:this.t("user.detail.username"),formatter:"CopyToClipboard",content:this.username},{separator:!0},{label:this.t("tableHeaders.userLastLogin"),formatter:"LiveDate",formatterOpts:{addSuffix:!0,suffix:`${this.t("suffix.ago")} (${o()(this.userLastLogin)})`},content:this.userLastLogin},{label:this.t("tableHeaders.userDisabledIn"),formatter:"LiveDate",formatterOpts:{isCountdown:!0},content:this.userDisabledInDisplay},{label:this.t("tableHeaders.userDeletedIn"),formatter:"LiveDate",formatterOpts:{isCountdown:!0},content:this.userDeletedIn},...this._details]}get confirmRemove(){return!0}cleanForSave(e){const t=super.cleanForSave(e);return delete t.type,t}get norman(){return s.warn('Norman "user" is deprecated. Use Steve "management.cattle.io.user" user instead.'),this.$rootGetters["rancher/byId"](r.k$.USER,this.id)}}},95694:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(45858);class i extends r["default"]{}},86465:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(35664),i=n(95799),a=n(87811);class o extends a.A{get cpuUsage(){return(0,i.ao)(this?.usage?.cpu||"0")}get cpuCapacity(){return(0,i.ao)(this.$rootGetters[`${this.inStore}/byId`](r.NW,this.id)?.status?.allocatable?.cpu||"0")}get cpuUsagePercentage(){return(1e4*this.cpuUsage/this.cpuCapacity).toString()}get memoryUsage(){return(0,i.ao)(this?.usage?.memory||"0")}get memoryCapacity(){return(0,i.ao)(this.$rootGetters[`${this.inStore}/byId`](r.NW,this.id)?.status?.capacity?.memory||"0")}get memoryUsagePercentage(){return(1e4*this.ramUsage/this.ramCapacity).toString()}get storageUsage(){return(0,i.ao)(this.$rootGetters[`${this.inStore}/byId`](r.NW,this.id)?.status?.capacity?.["ephemeral-storage"])-(0,i.ao)(this.$rootGetters[`${this.inStore}/byId`](r.NW,this.id)?.status?.allocatable?.["ephemeral-storage"])}get storageTotal(){return(0,i.ao)(this.$rootGetters[`${this.inStore}/byId`](r.NW,this.id)?.status?.capacity?.["ephemeral-storage"])}get inStore(){return this.$rootGetters["currentProduct"].inStore}}},34858:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(87811),i=n(35664),a=n(14220),o=n(76978);class s extends r.A{applyDefaults(){if(this.spec)return this.spec;const e=this.spec?.route?.receivers||[],t={receivers:[...e],route:{receivers:this.spec?.route?.receivers||[],groupBy:this.spec?.route?.groupBy||[],groupWait:this.spec?.route?.groupWait||"30s",groupInterval:this.spec?.route?.groupInterval||"5m",repeatInterval:this.spec?.route?.repeatInterval||"4h",match:this.spec?.route?.match||{},matchRe:this.spec?.route?.matchRe||{}}};(0,o.hZ)(this,"spec",t)}get _availableActions(){const e=super._availableActions;return e}getReceiverActions(e){return e.filter(e=>{if(e.divider)return!0;switch(e.action){case"goToEdit":return!0;case"goToEditYaml":return!0;case"promptRemove":return!0;default:return!1}})}get alertmanagerConfigDoneRouteName(){return"c-cluster-product-resource-namespace-id"}get _detailLocation(){return{name:this.alertmanagerConfigDoneRouteName,params:{cluster:this.$rootGetters["clusterId"],product:"monitoring",resource:i.Rp.ALERTMANAGERCONFIG,namespace:this.metadata?.namespace,id:this.name},hash:"#receivers",query:{as:"config"}}}getCreateReceiverRoute(){return{name:"c-cluster-monitoring-alertmanagerconfig-alertmanagerconfigid-receiver",params:{cluster:this.$rootGetters["clusterId"],alertmanagerconfigid:this.id},query:{mode:a.YQ,currentView:a.au}}}getReceiverDetailLink(e){return{name:"c-cluster-monitoring-alertmanagerconfig-alertmanagerconfigid-receiver",params:{cluster:this.$rootGetters["clusterId"],alertmanagerconfigid:this.id,receiverName:e},query:{mode:a.nW,receiverName:e,currentView:a.au}}}getEditReceiverYamlRoute(e,t){return{name:"c-cluster-monitoring-alertmanagerconfig-alertmanagerconfigid-receiver",params:{cluster:this.$rootGetters["clusterId"],alertmanagerconfigid:this.id},query:{mode:t||a.nW,receiverName:e,currentView:a.zD}}}getEditReceiverConfigRoute(e,t){return{name:"c-cluster-monitoring-alertmanagerconfig-alertmanagerconfigid-receiver",params:{cluster:this.$rootGetters["clusterId"],alertmanagerconfigid:this.id},query:{mode:t||a.nW,receiverName:e,currentView:a.au}}}}},67750:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(87811);class i extends r.A{get _detailLocation(){const e=this.id?.replace(/.*\//,"");return{name:"c-cluster-monitoring-monitor-namespace-id",params:{cluster:this.$rootGetters["clusterId"],id:e,namespace:this.metadata.namespace},query:{resource:this.type}}}get doneOverride(){return{name:"c-cluster-monitoring-monitor",params:{cluster:this.$rootGetters["clusterId"]},query:{resource:this.type}}}}},61403:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(87811);class i extends r.A{get _availableActions(){const e=super._availableActions.filter(e=>!this.metadata.name.includes(".")||!["goToEdit","goToEditYaml","goToClone"].includes(e.action));return e}get customValidationRules(){return[{nullable:!1,path:"metadata.name",required:!0,translationKey:"generic.name",type:"dnsLabel"},{nullable:!1,path:"spec",required:!0,type:"array",validators:["ruleGroups"]},{nullable:!1,path:"spec.groups",required:!0,type:"array",validators:["groupsAreValid"]}]}}},57e3:function(e,t,n){"use strict";n.r(t),n.d(t,{RECEIVERS_TYPES:function(){return f},default:function(){return m}});var r=n(39589),i=n(76978),a=n(35664),o=n(20246),s=n.n(o),l=n(87811),c=n(69742),u=n(41778),d=n(75495),h=n(94569),p=n(98283);const f=[{name:"slack",label:"monitoringReceiver.slack.label",title:"monitoringReceiver.slack.title",info:"monitoringReceiver.slack.info",key:"slack_configs",logo:c},{name:"email",label:"monitoringReceiver.email.label",title:"monitoringReceiver.email.title",key:"email_configs",logo:u},{name:"pagerduty",label:"monitoringReceiver.pagerduty.label",title:"monitoringReceiver.pagerduty.title",info:"monitoringReceiver.pagerduty.info",key:"pagerduty_configs",logo:d},{name:"opsgenie",label:"monitoringReceiver.opsgenie.label",title:"monitoringReceiver.opsgenie.title",key:"opsgenie_configs",logo:u},{name:"webhook",label:"monitoringReceiver.webhook.label",title:"monitoringReceiver.webhook.title",key:"webhook_configs",logo:h,banner:"webhook.banner",addButton:"webhook.add"},{name:"custom",label:"monitoringReceiver.custom.label",title:"monitoringReceiver.custom.title",info:"monitoringReceiver.custom.info",key:"webhook_configs",logo:p}];class m extends l.A{get removeSerially(){return!0}remove(){return this.updateReceivers(e=>e.filter(e=>e.name!==this.spec?.name))}async save(){const e=this.validationErrors(this);return(0,i.Im)(e)?(await this.updateReceivers(e=>{const t=e.find(e=>e.name===this.spec?.name);return t?Object.assign(t,this.spec):e.push(this.spec),e}),{}):Promise.reject(e)}get canUpdate(){return this.secret.canUpdate}get canCustomEdit(){return!0}get canCreate(){return(0,r.BA)(this.$rootGetters)}get canDelete(){return"null"!==this.id&&"null"!==!this.spec.name&&this.secret.canDelete}get canViewInApi(){return!1}get canYaml(){return!0}get _detailLocation(){return{name:"c-cluster-monitoring-route-receiver-id",params:{cluster:this.$rootGetters["clusterId"],id:this.id},query:{resource:this.type}}}get doneOverride(){return{name:"c-cluster-monitoring-route-receiver",params:{cluster:this.$rootGetters["clusterId"]},query:{resource:this.type}}}get receiverTypes(){const e=f.filter(e=>"custom"!==e.name&&this.spec[e.key]?.length>0).map(e=>this.t(e.label)),t=f.map(e=>e.key).filter(e=>"custom"!==e);t.push("name");const n=Object.keys(this.spec).filter(e=>!t.includes(e));if(n.length>0){const t=this.t(f.find(e=>"custom"===e.name).label);e.push(t)}return e}get updateReceivers(){return e=>(0,r._R)(this.$dispatch,"receivers",this.type,e)}saveYaml(e){const t=s().load(e);return Object.assign(this,t),this.save()}get customValidationRules(){const e=[{nullable:!1,path:"spec.name",required:!0,translationKey:"monitoring.receiver.fields.name"}];return e}get routes(){if(!this.$rootGetters["cluster/haveAll"](a.Rp.SPOOFED.ROUTE))throw new Error("The routes have not been loaded");return this.$rootGetters["cluster/all"](a.Rp.SPOOFED.ROUTE)}get hasDependentRoutes(){return!!this.routes.find(e=>e.spec.receiver===this.id)}get preventDeletionMessage(){return this.hasDependentRoutes?"There are still routes using this receiver. You cannot delete this receiver while it's in use.":null}}},55162:function(e,t,n){"use strict";n.r(t),n.d(t,{ROOT_NAME:function(){return u},default:function(){return d}});var r=n(76978),i=n(39589),a=n(35664);n(86565),n(68774);const o="monitoring";var s=n(20246),l=n.n(s),c=n(87811);const u="root";class d extends c.A{applyDefaults(){const e=this.spec||{};e.group_by=e.group_by||[],e.group_wait=e.group_wait||"30s",e.group_interval=e.group_interval||"5m",e.repeat_interval=e.repeat_interval||"4h",e.match=e.match||{},e.match_re=e.match||{},(0,r.hZ)(this,"spec",e)}get removeSerially(){return!0}remove(){return this.updateRoutes(e=>e.filter((e,t)=>(0,i.Eb)(t)!==this.id))}async save(){const e=this.validationErrors(this);return(0,r.Im)(e)?(await this.updateRoutes(e=>{const t=e.find((e,t)=>(0,i.Eb)(t)===this.id);return t?Object.assign(t,this.spec):e.push(this.spec),e}),{}):Promise.reject(e)}get canUpdate(){return this.secret.canUpdate}get canCustomEdit(){return!0}get canCreate(){return(0,i.BA)(this.$rootGetters)&&(0,i.gb)(this.secret)}get canDelete(){return!this.isRoot&&this.secret.canDelete}get canViewInApi(){return!1}get canYaml(){return(0,i.gb)(this.secret)}get _detailLocation(){return{name:"c-cluster-monitoring-route-receiver-id",params:{cluster:this.$rootGetters["clusterId"],id:this.id},query:{resource:this.type}}}get doneOverride(){return{name:"c-cluster-monitoring-route-receiver",params:{cluster:this.$rootGetters["clusterId"]},query:{resource:this.type}}}get customValidationRules(){const e=[{nullable:!1,path:"spec.receiver",required:!0,translationKey:"monitoring.route.fields.receiver"},{path:"spec.group_wait",validators:["interval"],translationKey:"monitoring.route.fields.groupWait"},{path:"spec.group_interval",validators:["interval"],translationKey:"monitoring.route.fields.groupInterval"},{path:"spec.repeat_interval",validators:["interval"],translationKey:"monitoring.route.fields.repeatInterval"}];return this.isRoot||e.push({path:"spec",validators:["matching"]}),e}updateRoutes(e){return(0,i._R)(this.$dispatch,"route.routes",this.type,e)}get isRoot(){return this.id===u}saveYaml(e){const t=l().load(e);return Object.assign(this,t),this.save()}get receiverLink(){return{text:this.spec.receiver,to:{name:"c-cluster-product-resource-id",params:{resource:a.Rp.SPOOFED.RECEIVER,product:o,id:this.spec.receiver}}}}}},906:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(87811);class i extends r.A{get _detailLocation(){const e=this.id?.replace(/.*\//,"");return{name:"c-cluster-monitoring-monitor-namespace-id",params:{cluster:this.$rootGetters["clusterId"],id:e,namespace:this.metadata.namespace},query:{resource:this.type}}}get doneOverride(){return{name:"c-cluster-monitoring-monitor",params:{cluster:this.$rootGetters["clusterId"]},query:{resource:this.type}}}}},67867:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return S}});var r=n(71025),i=n(2841),a=n(35664),o=n(76978),s=n(68851),l=n(87811),c=n(11518),u=n(45250);const d="pod-security.kubernetes.io/",h=["enforce","audit","warn"],p=["privileged","baseline","restricted"],f=(p[0],h.reduce((e,t)=>[...e,`${d}${t}`],[])),m=h.reduce((e,t)=>[...e,`${d}${t}-version`],[]),g=[...f,...m],v=Object.assign({},...g.map(e=>({[e]:"icon-pod_security"})));var b=n(92043);const y=e=>(0,u.filter)((0,u.keys)(e?.metadata?.labels),e=>g.includes(e)),_=e=>y(e).length>0,w=e=>(0,u.reduce)(e?.metadata?.labels,(t,n,r)=>{const i=g.includes(r),a="-version",o=r.includes(a),s=e?.metadata?.labels[`${r}${a}`],l=s||"latest";return i&&!o?{...t,[r]:`${(0,b._R)(r.replace(d,""))} ${(0,b._R)(n)} (${l})`}:t},{}),E=["c-","p-","user-","local"];class S extends l.A{applyDefaults(){(0,o.hZ)(this,"disableOpenApiValidation",!1)}get _availableActions(){const e=super._availableActions;return(0,s.PT)(e,0,{divider:!0}),this.istioInstalled&&((0,s.PT)(e,0,{action:"enableAutoInjection",label:this.t("namespace.enableAutoInjection"),bulkable:!0,bulkAction:"enableAutoInjection",enabled:!this.injectionEnabled,icon:"icon icon-plus",weight:2}),(0,s.PT)(e,0,{action:"disableAutoInjection",label:this.t("namespace.disableAutoInjection"),bulkable:!0,bulkAction:"disableAutoInjection",enabled:this.injectionEnabled,icon:"icon icon-minus",weight:1})),this.$rootGetters["isRancher"]&&!this.$rootGetters["isSingleProduct"]&&(0,s.PT)(e,0,{action:"move",label:this.t("namespace.move"),bulkable:!0,bulkAction:"move",enabled:!0,icon:"icon icon-fork",weight:3}),e}move(e=this){this.$dispatch("promptModal",{component:"MoveNamespaceDialog",resources:Array.isArray(e)?e:[e],modalWidth:"440",height:"auto",styles:"max-height: 100vh;"})}get isSystem(){return"true"===this.metadata?.annotations?.[i.eG]||(!!r.A.includes(this.metadata.name)||(!(!this.metadata.name.startsWith("cattle-")||!this.metadata.name.endsWith("-system"))||!!this.project&&this.project.isSystem))}get isFleetManaged(){return"true"===(0,o.Jt)(this,`metadata.labels."${i.Hs.MANAGED}"`)}get isObscure(){return E.some(e=>this.metadata.name.startsWith(e))&&this.isSystem}get projectId(){const e=this.metadata?.annotations?.[i.yl]||"";return e.split(":")[1]||null}get project(){if(!this.projectId||!this.$rootGetters["isRancher"])return null;const e=this.$rootGetters["currentCluster"]?.id,t=this.$rootGetters["management/byId"](a.Mc.PROJECT,`${e}/${this.projectId}`);return t}get projectNameDisplay(){return this.project?.nameDisplay||""}get groupById(){const e=this.project?.id;return e||this.$rootGetters["i18n/t"]("resourceTable.groupLabel.notInAProject")}get projectNameSort(){return this.project?.nameSort||""}get istioInstalled(){const e=this.$rootGetters["cluster/schemaFor"](a.B9.GATEWAY);return!!e}get injectionEnabled(){return"enabled"===this.labels[i.B9.AUTO_INJECTION]}enableAutoInjection(e=this,t=!0){(0,s.cy)(e)||(e=[e]),e.forEach(e=>{!t&&e?.metadata?.labels?delete e.metadata.labels[i.B9.AUTO_INJECTION]:(e.metadata.labels||(e.metadata.labels={}),e.metadata.labels[i.B9.AUTO_INJECTION]="enabled"),e.save()})}disableAutoInjection(e=this){this.enableAutoInjection(e,!1)}get confirmRemove(){return!0}get listLocation(){const e={name:this.$rootGetters["isRancher"]?"c-cluster-product-projectsnamespaces":"c-cluster-product-resource"};return this.$rootGetters["currentProduct"].inStore===c.T3&&(e.name=`${c.T3}-${e.name}`.replace("-product",""),e.params={resource:"namespace"}),e}get _detailLocation(){const e=super._detailLocation;return e}get parentLocationOverride(){return this.listLocation}get doneOverride(){return this.listLocation}get resourceQuota(){return JSON.parse(this.metadata.annotations[i._n]||'{"limit":{}}')}set resourceQuota(e){this.metadata.annotations[i._n]=JSON.stringify(e)}get detailTopTooltips(){return this.psaTooltipsDescription}get detailTopIcons(){return v}get hasSystemLabels(){return _(this)}get filteredSystemLabels(){return Object.entries(this.labels).reduce((e,[t,n])=>(m.includes(t)||(e[t]=n),e),{})}get systemLabels(){return y(this)}get psaTooltipsDescription(){return w(this)}cleanForNew(){const e=this.metadata?.labels?.[i.yl];super.cleanForNew(),e&&(this.metadata=this.metadata||{},this.metadata.labels=this.metadata.labels||{},this.metadata.labels[i.yl]=e)}get hideDetailLocation(){const e=this.$rootGetters["currentProduct"];return!e||!!e.hideNamespaceLocation}get glance(){const e=[...this._glance],t=e.findIndex(e=>"namespace"===e.name);return t>-1&&e.splice(t,1,this.projectGlance),e.filter(Boolean)}get projectGlance(){if(this.project)return{name:"project",label:this.t("component.resource.detail.glance.project"),formatter:"Link",formatterOpts:{to:this.project.detailLocation,row:{},options:{internal:!0}},content:this.project.nameDisplay}}}},1835:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(87811);class i extends r.A{applyDefaults(){this["spec"]={host:"",subsets:[],trafficPolicy:{loadBalancer:{simple:"ROUND_ROBIN"},connectionPool:{tcp:{},http:{}},outlierDetection:{},tls:{}}}}}},67462:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return p},ingressFullPath:function(){return h}});var r=n(35664),i=n(24138),a=n.n(i),o=n(76978),s=n(3514),l=n.n(s),c=n(87811);function u(e){const t=e.tls||[];return t.flatMap(e=>e.hosts||[])}function d(e,t){return u(e).includes(t)}function h(e,t,n={}){const r=e.spec,i=t.host||"",a=n.path||"";let o="";return i&&(o=d(r,i)?"https://":"http://"),`${o}${i}${a}`}class p extends c.A{get tlsHosts(){return u(this.spec)}get isTlsHost(){return e=>d(this.spec,e)}targetTo(e,t){if(!t)return null;const n=t.startsWith("ingress-"),i=`${this.namespace}/${t}`;if(n){const t=e.find(e=>e.id===i);return t?.detailLocation||""}return{name:"c-cluster-product-resource-namespace-id",params:{resource:r.YV,id:t,namespace:this.namespace}}}createRulesForListPage(e,t){const n=this.spec.rules||[];return n.flatMap(n=>{const r=n?.http?.paths||[];return r.map(r=>this.createPathForListPage(e,n,r,t))})}createPathForListPage(e,t,n,r){const i=(0,o.Jt)(n?.backend,this.serviceNamePath),s=this.fullPath(t,n);return{isUrl:a()(s)&&!s.includes("*"),pathType:n.pathType,fullPath:s,serviceName:i,serviceTargetTo:this.targetTo(e,i),certs:this.certLinks(t,r),targetLink:this.targetLink(e,i),port:(0,o.Jt)(n?.backend,this.servicePortPath)}}fullPath(e,t){return h(this,e,t)}certLink(e,t=[]){const n=e.secretName||this.t("ingress.rulesAndCertificates.defaultCertificate");let i;return e.secretName&&t.includes(n)&&(i={name:"c-cluster-product-resource-namespace-id",params:{resource:r.bB,id:n}}),{to:i,text:n,options:{internal:!0}}}certLinks(e,t){const n=this.spec.tls||[],r=n.filter(t=>{const n=t.hosts||[];return n.includes(e.host)});return r.map(e=>this.certLink(e,t))}targetLink(e,t){return{to:this.targetTo(e,t),text:t,options:{internal:!0}}}createDefaultService(e){const t=(0,o.Jt)(this.spec,this.defaultBackendPath),n=(0,o.Jt)(t,this.serviceNamePath);return n?{name:n,targetTo:this.targetTo(e,n)}:null}get cache(){return this.cacheObject||(this.cacheObject={}),this.cacheObject}get showPathType(){return this.cache.showPathType||(this.cache.showPathType=this.$rootGetters["cluster/pathExistsInSchema"](this.type,"spec.rules.http.paths.pathType")),this.cache.showPathType}get useNestedBackendField(){return this.cache.useNestedBackendField||(this.cache.useNestedBackendField=this.$rootGetters["cluster/pathExistsInSchema"](this.type,"spec.rules.http.paths.backend.service.name")),this.cache.useNestedBackendField}get serviceNamePath(){const e="service.name",t="serviceName";return this.useNestedBackendField?e:t}get servicePortPath(){const e="service.port.number",t="servicePort";return this.useNestedBackendField?e:t}get defaultBackendPath(){const e=this.$rootGetters["cluster/pathExistsInSchema"](this.type,"spec.defaultBackend");return e?"defaultBackend":"backend"}get hasDefaultBackend(){return!l()(this.spec[this.defaultBackendPath])}get details(){const e=this._details;return this.spec?.ingressClassName&&e.push({label:this.t("ingress.ingressClass.label"),content:this.spec.ingressClassName}),e}}},80903:function(e,t,n){"use strict";n.r(t),n.d(t,{CLOUD_CREDENTIAL_OVERRIDE:function(){return i},default:function(){return a}});var r=n(81147);const i={nutanix:!0,oci:!0};class a extends r["default"]{get doneRoute(){return"c-cluster-manager-driver-nodedriver"}get _availableActions(){const e=[{action:"activate",label:this.t("action.activate"),icon:"icon icon-play",bulkable:!0,bulkAction:"activateBulk",enabled:!!this.actions?.activate&&"inactive"===this.state},{action:"deactivate",label:this.t("action.deactivate"),icon:"icon icon-pause",bulkable:!0,bulkAction:"deactivateBulk",enabled:!!this.actions?.deactivate&&"active"===this.state,weight:-1},{divider:!0},{action:"viewInApi",enabled:!0,icon:"icon icon-external-link",label:this.t("action.viewInApi")},{divider:!0},{action:"goToEdit",label:this.t("action.edit"),icon:"icon icon-edit",bulkable:!1,enabled:!!this.links.update&&!this.builtin},{action:"promptRemove",altAction:"remove",bulkAction:"promptRemove",label:this.t("action.remove"),bulkable:!0,icon:"icon icon-delete",enabled:!!this.links.update&&!this.active,weight:-10}];return e}deactivate(e=[this]){this.$dispatch("promptModal",{componentProps:{drivers:e,driverType:"nodeDrivers"},component:"DeactivateDriverDialog"})}deactivateBulk(e){this.$dispatch("promptModal",{componentProps:{drivers:e,driverType:"nodeDrivers"},component:"DeactivateDriverDialog"})}activate(){return this.$dispatch("rancher/request",{url:`v3/nodeDrivers/${encodeURIComponent(this.id)}?action=activate`,method:"post"},{root:!0}).catch(e=>{this.$dispatch("growl/fromError",{title:this.t("drivers.error.activate",{name:this.nameDisplay}),err:e},{root:!0})})}async activateBulk(e){await Promise.all(e.map(e=>this.$dispatch("rancher/request",{url:`v3/nodeDrivers/${encodeURIComponent(e.id)}?action=activate`,method:"post"},{root:!0}).catch(t=>{this.$dispatch("growl/fromError",{title:this.t("drivers.error.activate",{name:e.nameDisplay}),err:t},{root:!0})})))}}},13070:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(35664);const i=[{labelKey:"persistentVolume.awsElasticBlockStore.label",value:"awsElasticBlockStore",supported:!0},{labelKey:"persistentVolume.azureDisk.label",value:"azureDisk",supported:!0},{labelKey:"persistentVolume.azureFile.label",value:"azureFile",supported:!0},{labelKey:"persistentVolume.cephfs.label",value:"cephfs"},{labelKey:"persistentVolume.rbd.label",value:"rbd"},{labelKey:"persistentVolume.csi.label",value:"csi",supported:!0},{labelKey:"persistentVolume.fc.label",value:"fc"},{labelKey:"persistentVolume.flexVolume.label",value:"flexVolume"},{labelKey:"persistentVolume.flocker.label",value:"flocker"},{labelKey:"persistentVolume.glusterfs.label",value:"glusterfs"},{labelKey:"persistentVolume.gcePersistentDisk.label",value:"gcePersistentDisk",supported:!0},{labelKey:"persistentVolume.hostPath.label",value:"hostPath",supported:!0},{labelKey:"persistentVolume.iscsi.label",value:"iscsi"},{labelKey:"persistentVolume.local.label",value:"local",supported:!0},{labelKey:"persistentVolume.longhorn.label",value:"longhorn",supported:!0},{labelKey:"persistentVolume.nfs.label",value:"nfs",supported:!0},{labelKey:"persistentVolume.cinder.label",value:"cinder"},{labelKey:"persistentVolume.photonPersistentDisk.label",value:"photonPersistentDisk"},{labelKey:"persistentVolume.portworxVolume.label",value:"portworxVolume"},{labelKey:"persistentVolume.quobyte.label",value:"quobyte"},{labelKey:"persistentVolume.scaleIO.label",value:"scaleIO"},{labelKey:"persistentVolume.storageos.label",value:"storageos"},{labelKey:"persistentVolume.vsphereVolume.label",value:"vsphereVolume",supported:!0}];i.find(e=>"longhorn"===e.value);var a=n(87811);class o extends a.A{get source(){const e=this.spec?.csi?.driver,t=`${e} ${this.t("persistentVolume.csi.suffix")}`;if(e)return this.$rootGetters["i18n/withFallback"](`persistentVolume.csi.drivers.${e.replaceAll(".","-")}`,null,t);const n=i.find(e=>this.spec[e.value]);return n?this.t(n.labelKey):this.t("generic.unknown")}get isLonghorn(){return this.spec.csi&&this.spec.csi.driver===r.lI}get claim(){return this.name?this.$getters["all"](r.YH).find(e=>e.spec.volumeName===this.name):null}get claimName(){return this.claim?.nameDisplay||this.t("generic.na")}get canDelete(){return"bound"!==this.state}}},17544:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(68851),i=n(14220),a=n(87811),o=n(40408),s=n(35664);class l extends a.A{applyDefaults(e,t){const n=t===i.dT?this.spec.accessModes:[],r=t===i.dT?this.spec.resources.requests.storage:null;this["spec"]={accessModes:n,storageClassName:"",volumeName:"",resources:{requests:{storage:r}}}}get bound(){return this.state===o.jv.BOUND}get expandable(){return!!this.$getters["byId"](s.fJ,this.spec?.storageClassName)?.allowVolumeExpansion}get _availableActions(){const e=super._availableActions;return(0,r.PT)(e,0,{divider:!0}),(0,r.PT)(e,0,{action:"goToEditVolumeSize",enabled:this.expandable&&this.bound,icon:"icon icon-plus",label:this.t("persistentVolumeClaim.expand.label")}),e}goToEditVolumeSize(){const e=this.detailLocation;e.query={...e.query,[i.g]:i.G5,[i.AS]:i.xz,[i.L_]:"volumeclaim"},this.currentRouter().push(e)}}},76006:function(e,t,n){"use strict";n.r(t),n.d(t,{WORKLOAD_PRIORITY:function(){return p},default:function(){return f}});var r=n(68851),i=n(40408),a=n(35664),o=n(92043),s=n(2505),l=n(76978),c=n(11519);function u(e,t,n){return(t=d(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e){var t=h(e,"string");return"symbol"==typeof t?t:t+""}function h(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}const p={[a.oU.DEPLOYMENT]:1,[a.oU.CRON_JOB]:2,[a.oU.DAEMON_SET]:3,[a.oU.STATEFUL_SET]:4,[a.oU.JOB]:5,[a.oU.REPLICA_SET]:6,[a.oU.REPLICATION_CONTROLLER]:7};class f extends s["default"]{constructor(...e){super(...e),u(this,"_os",void 0)}get inStore(){return this.$rootGetters["currentProduct"].inStore}set os(e){this._os=e}get os(){return this._os?this._os:this?.node?.status?.nodeInfo?.operatingSystem}get node(){try{const e=this.$store.getters["cluster/schemaFor"](a.NW);e&&this.$dispatch("find",{type:a.NW,id:this.spec.nodeName})}catch{}return this.$getters["byId"](a.NW,this.spec.nodeName)}get customValidationRules(){const e=[{nullable:!1,path:"metadata.name",required:!0,translationKey:"generic.name",type:"subDomain"}];return e}get _availableActions(){const e=super._availableActions;return(0,r.PT)(e,0,{divider:!0}),(0,r.PT)(e,0,this.openLogsMenuItem),(0,r.PT)(e,0,this.openShellMenuItem),e}get openShellMenuItem(){return{action:"openShell",enabled:!!this.links.view&&this.isRunning,icon:"icon-chevron-right",label:"Execute Shell",total:1}}get openLogsMenuItem(){return{action:"openLogs",enabled:!!this.links.view,icon:"icon icon-chevron-right",label:"View Logs",total:1}}get containerActions(){const e=[];return(0,r.PT)(e,0,this.openLogsMenuItem),(0,r.PT)(e,0,this.openShellMenuItem),e}get defaultContainerName(){const e=this.spec.containers,t=e.filter(e=>"istio-proxy"!==e.name);return t.length?t[0].name:e[0]?.name}openShell(e=this.defaultContainerName){this.$dispatch("wm/open",{id:`${this.id}-shell`,label:this.nameDisplay,icon:"terminal",component:"ContainerShell",attrs:{pod:this,initialContainer:e}},{root:!0})}openLogs(e=this.defaultContainerName){this.$dispatch("wm/open",{id:`${this.id}-logs`,label:this.nameDisplay,icon:"file",component:"ContainerLogs",attrs:{pod:this,initialContainer:e}},{root:!0})}containerStateDisplay(e){const t=Object.keys(e.state||{})[0];return(0,i.ch)(t)}containerStateColor(e){const t=Object.keys(e.state||{})[0];return(0,i.uU)(t)}containerIsInit(e){const{initContainers:t=[]}=this.spec;return t.includes(e)}get imageNames(){return this.spec.containers.map(e=>(0,o.qO)(e.image))}get workloadRef(){const e=this.getOwners()||[],t=e.filter(e=>Object.values(a.oU).includes(e.type)).sort((e,t)=>{const n=p[e.type],r=p[t.type];return n-r});return t[0]}get ownedByWorkload(){return!!this.workloadRef}get details(){const e=[{label:this.t("workload.detailTop.podIP"),content:this.status.podIP}];return this.workloadRef&&e.push({label:"Workload",formatter:"LinkName",formatterOpts:{value:this.workloadRef.name,type:this.workloadRef.type,namespace:this.workloadRef.namespace},content:this.workloadRef.name}),this.spec.nodeName&&e.push({label:"Node",formatter:"LinkName",formatterOpts:{type:a.NW,value:this.spec.nodeName},content:this.spec.nodeName}),e}get isRunning(){return"Running"===this.status.phase}get groupByNode(){const e=this.spec?.nodeName||this.$rootGetters["i18n/t"]("generic.none");return this.$rootGetters["i18n/t"]("resourceTable.groupLabel.node",{name:(0,o.ZD)(e)})}get restartCount(){return this.status.containerStatuses&&this.status?.containerStatuses[0].restartCount||0}get restartsCount(){return this.metadata?.fields?.[3]?.match(c.q0)?.[1]||""}get restartsLaster(){return this.metadata?.fields?.[3]?.match(c.q0)?.[2]||""}processSaveResponse(e){if(e._headers&&e._headers.warning){const t=e._headers.warning.split("299")||[],n=t.filter(e=>e.includes("violate PodSecurity")).length;n&&this.$dispatch("growl/warning",{title:this.$rootGetters["i18n/t"]("growl.podSecurity.title"),message:this.$rootGetters["i18n/t"]("growl.podSecurity.message"),timeout:5e3},{root:!0})}}save(){const e={...this},{metadata:t,spec:n}=this.spec.template;return this.spec={...this.spec,...n},this.metadata={...this.metadata,...t},delete this.spec.template,this._save(...arguments).catch(t=>(this.spec=e.spec,this.metadata=e.metadata,Promise.reject(t)))}cleanForSave(e){const t=super.cleanForSave(e);return t.spec?.containers?.forEach(e=>{this.cleanContainerForSave(e)}),t.spec?.initContainers?.forEach(e=>{this.cleanContainerForSave(e)}),(0,l.BJ)(t,"spec.selector"),t}}},97219:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c}});var r=n(36313),i=n.n(r),a=n(4514),o=n(50667),s=n(92043),l=n(89865);class c extends l.A{get avatarSrc(){if("github"===this.provider)return(0,o.R_)(this.profilePicture,"s",80);{let e=this.id||"Unknown";e=e.replace(/[^:]+:\/\//,"");const t=(0,a.Fx)(e,"hex"),n=`data:image/png;base64,${new(i())(t,80,.01).toString()}`;return n}}get roundAvatar(){return"github"===this.provider}get providerSpecificType(){const e=this.id.replace(/:.*$/,"").split("_",2);return 2===e.length?e[1]:null}get displayType(){const e=this.$rootGetters["i18n/withFallback"](`model.authConfig.provider."${this.provider}"`,null,this.provider);return`${e} ${(0,s.TF)(this.providerSpecificType)}`}}},99493:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(35664),i=n(89865);class a extends i.A{get principalId(){return this.userPrincipalId||this.groupPrincipalId}get roleDisplay(){return this.roleTemplate?.nameDisplay}get roleDescription(){return this.roleTemplate?.description}get roleTemplate(){return this.$rootGetters["management/byId"](r.Mc.ROLE_TEMPLATE,this.roleTemplateId)}get steve(){return this.$dispatch("management/find",{type:r.Mc.PROJECT_ROLE_TEMPLATE_BINDING,id:this.id?.replace(":","/")},{root:!0})}get syncPrincipal(){return this.$rootGetters["rancher/byId"](r.k$.PRINCIPAL,this.principalId)}get nameDisplay(){return this.syncPrincipal?.nameDisplay||super.nameDisplay}}},47685:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return E}});var r=n(35664),i=n(87811),a=n(68851),o=n(76978),s=n(74302),l=n(92043),c=n(83288),u=n(11518),d=n(2841),h=n(44660),p=n(20246),f=n.n(p),m=n(9274),g=n(82637),v=n(50025),b=n(30633),y=n(4364);const _=["promptRemove","openShell","downloadKubeConfig","copyKubeConfig","download","viewInApi"],w={PROVISIONING:"provisioning",UNAVAILABLE:"unavailable"};class E extends i.A{get details(){const e=[{label:this.t("cluster.detail.provisioner"),content:this.provisionerDisplay||this.t("generic.none")},{label:this.t("cluster.detail.machineProvider"),content:this.machineProvider?this.machineProviderDisplay:null},{label:this.t("cluster.detail.kubernetesVersion"),content:this.kubernetesVersion},{label:this.t("cluster.detail.machinePools"),content:this.pools.length},{label:this.t("cluster.detail.machines"),content:this.desired},{label:"Autoscaler",content:this.isAutoscalerEnabled,valueOverride:{component:(0,m.markRaw)((0,m.defineAsyncComponent)(()=>n.e(452).then(n.bind(n,18452)))),props:{value:!0,row:this}}}].filter(e=>!!e.content);return this.machineProvider||e.splice(1,1),e}get creationTimestamp(){const e=Date.parse(this.metadata?.creationTimestamp),t=Date.parse(this.mgmt?.metadata?.creationTimestamp);return t&&t<e?this.mgmt?.metadata?.creationTimestamp:super.creationTimestamp}get canExplore(){return this.mgmt?.isReady&&!this.hasError}get canEdit(){return!(this.isKev1||this.isHarvester||this.isCapiHybrid)&&super.canEdit}get canCustomEdit(){return!this.isCapiHybrid&&super.canCustomEdit}get _availableActions(){const e=super._availableActions,t=this.mgmt?.isLocal;if(t){const t=e.findIndex(e=>"promptRemove"===e.action);t>-1&&e.splice(t,1)}const n=this.mgmt?.isReady,r=this.isRke2&&n&&this.canUpdate,i=n&&this.isRke2&&this.canUpdate,a=[{action:"openShell",label:this.$rootGetters["i18n/t"]("nav.shell"),icon:"icon icon-terminal",enabled:!!this.mgmt?.links.shell&&n},{action:"downloadKubeConfig",bulkAction:"downloadKubeConfigBulk",label:this.$rootGetters["i18n/t"]("nav.kubeconfig.download"),icon:"icon icon-download",bulkable:!0,enabled:this.mgmt?.canCreateKubeconfig},{action:"copyKubeConfig",label:this.t("cluster.copyConfig"),bulkable:!1,enabled:this.mgmt?.canCreateKubeconfig,icon:"icon icon-copy"},{action:"snapshotAction",label:this.$rootGetters["i18n/t"]("nav.takeSnapshot"),icon:"icon icon-snapshot",bulkAction:"snapshotBulk",bulkable:!0,enabled:i},{action:"restoreSnapshotAction",label:this.$rootGetters["i18n/t"]("nav.restoreSnapshot"),icon:"icon icon-backup-restore",enabled:i},{action:"rotateCertificates",label:this.$rootGetters["i18n/t"]("nav.rotateCertificates"),icon:"icon icon-backup",enabled:r||this.mgmt?.hasAction("rotateCertificates")&&n},{action:"rotateEncryptionKey",label:this.$rootGetters["i18n/t"]("nav.rotateEncryptionKeys"),icon:"icon icon-refresh",enabled:r},{action:"toggleAutoscalerRunner",label:this.isAutoscalerPaused?"Resume Autoscaler":"Pause Autoscaler",icon:"icon "+(this.isAutoscalerPaused?"icon-play":"icon-pause"),enabled:this.canPauseResumeAutoscaler},{divider:!0}],o=a.concat(e);if(this.isKev1||this.isHarvester){const e=o.find(e=>"goToEdit"===e.action);e&&(e.enabled=!1)}return this.isRke1&&o.forEach(e=>{e.divider||_.includes(e.action)||(e.enabled=!1)}),this.customProvisionerHelper?.availableActions&&this.customProvisionerHelper?.availableActions(this,o)||o}get detailLocation(){if(!this.isKev1)return super.detailLocation}get normanCluster(){const e=this.status?.clusterName;if(!e)return null;const t=this.$rootGetters["rancher/byId"](r.k$.CLUSTER,e);return t}async findNormanCluster(){const e=this.status?.clusterName;return e?await this.$dispatch("rancher/find",{type:r.k$.CLUSTER,id:e},{root:!0}):null}explore(){const e={name:"c-cluster",params:{cluster:this.mgmt.id}};this.currentRouter().push(e)}async goToHarvesterCluster(){const e=await this.$dispatch("create",{...this,type:r.rk.CLUSTER});try{await e.goToCluster()}catch{}}get canDelete(){return super.canDelete&&"removing"!==this.stateObj?.name}get canEditYaml(){return!!this.isRke2&&super.canEditYaml}get isHostedKubernetesProvider(){const e={dispatch:this.$dispatch,getters:this.$getters,axios:this.$axios,$extension:this.$extension,t:(...e)=>this.t.apply(this,e)};return(0,b.b)(e,this.provisioner)}get providerConfig(){return this.isRke2?this.spec.rkeConfig:this.mgmt&&this.mgmt.config?this.mgmt.config:null}get isPrivateHostedProvider(){if(this.isHostedKubernetesProvider&&this.mgmt&&this.provisioner)switch(this.provisioner.toLowerCase()){case"gke":return this.mgmt.spec?.gkeConfig?.privateClusterConfig?.enablePrivateEndpoint;case"eks":return this.mgmt.spec?.eksConfig?.privateAccess;case"aks":return this.mgmt.spec?.aksConfig?.privateCluster}return!1}get isLocal(){return this.mgmt?.isLocal}get isKev1(){return h.KEV1.includes(this.mgmt?.spec?.genericEngineConfig?.driverName)}get isImported(){if(this.isLocal)return!1;const e=this.mgmt?.status?.provider,t=this.mgmt?.status?.driver;return"k3s"===e||"rke2"===e?t===e:!(e||"k3s"!==t&&"rke2"!==t)||(!(!this.isHostedKubernetesProvider||!this.providerConfig.imported)||"imported"===this.provisioner)}get isCustom(){return this.isRke2?!this.spec?.rkeConfig?.machinePools?.length:!!this.isRke1&&!this.pools?.length}get confirmRemove(){return!0}get isImportedK3s(){return this.isImported&&this.isK3s}get isImportedRke2(){return this.isImported&&this.mgmt?.status?.provider?.startsWith("rke2")}get isK3s(){return this.mgmt?.status?"k3s"===this.mgmt?.status.provider:(this.spec?.kubernetesVersion||"").includes("k3s")}get isRke2(){return!!this.spec?.rkeConfig}get isRke1(){return!!this.mgmt?.spec?.rancherKubernetesEngineConfig||"rke"===this.mgmt?.labels["provider.cattle.io"]}get isHarvester(){return!!this.mgmt?.isHarvester}get isCapiHybrid(){if(!this.isRke2)return!1;const e=(this.spec?.rkeConfig?.machinePools||[]).map(e=>e.machineConfigRef),t=e.find(e=>e?.apiVersion?.includes("cluster.x-k8s.io"));return!!t}get mgmtClusterId(){const e=this.$rootGetters["management/byId"](r.Z7.RANCHER_CLUSTER,this.id);return this.status?.clusterName||e?.status?.clusterName}get mgmt(){return this.$rootGetters["management/byId"](r.Mc.CLUSTER,this.mgmtClusterId)}get isReady(){return!!this.mgmt?.isReady}get eksNodeGroups(){return this.mgmt?.spec?.eksConfig?.nodeGroups||[]}waitForProvisioner(e,t){return this.waitForTestFn(()=>!!this.provisioner,"set provisioner",e,t)}waitForMgmt(e=6e4,t){return this.waitForTestFn(()=>{const e=this.$rootGetters["management/byId"](r.Z7.RANCHER_CLUSTER,this.id),t=this.status?.clusterName||e?.status?.clusterName;try{t&&this.$dispatch("find",{type:r.Mc.CLUSTER,id:t})}catch{}return t&&!!this.$rootGetters["management/byId"](r.Mc.CLUSTER,t)},this.$rootGetters["i18n/t"]("cluster.managementTimeout"),e,t)}get provisioner(){if(this.isRke2){const e=Object.keys(this.spec),t=e.find(e=>e.endsWith("Config"));if("rkeConfig"===t)return"rke2";if(t)return t.replace(/config$/i,"")}else if(this.mgmt)return this.mgmt.provisioner;return null}get provisionerDisplay(){if(this.customProvisionerHelper?.provisionerDisplay)return this.customProvisionerHelper?.provisionerDisplay(this);let e=(this.provisioner||"").toLowerCase();return"rke2"===e&&this.spec?.kubernetesVersion?.includes("k3s")||this.isImportedK3s?e="k3s":this.isImportedRke2?e="rke2":(this.isImported||this.isLocal)&&this.isRke1&&(e="rke"),this.$rootGetters["i18n/withFallback"](`cluster.provider."${e}"`,null,(0,l.TF)(e))}get providerLogo(){return this.mgmt?.providerLogo}get nodesArchitecture(){const e={};return this.nodes?.forEach(t=>{if(!t.metadata?.state?.transitioning){const n=t.status?.nodeLabels?.[d.Pl],r=n||this.t("cluster.architecture.label.unknown");e[r]=(e[r]||0)+1}}),e}get architecture(){const e=Object.keys(this.nodesArchitecture);switch(e.length){case 0:return{label:this.t("generic.provisioning")};case 1:return{label:e[0]};default:return{label:this.t("cluster.architecture.label.mixed"),tooltip:e.reduce((e,t)=>`${e}${t}: ${this.nodesArchitecture[t]}<br>`,"")}}}get kubernetesVersion(){const e=this.$rootGetters["i18n/t"]("generic.unknown");if(this.isRke2){const t=this.status?.version?.gitVersion,n=this.spec?.kubernetesVersion;return t||n||e}return this.mgmt&&this.mgmt.kubernetesVersion||e}get machineProvider(){const e=this.annotations?.[d.qt.UI_CUSTOM_PROVIDER];if(e)return e;if(this.isHarvester)return u.T3;if(this.isImported||this.isCapiHybrid)return null;if(this.isRke2){const e=this.spec?.rkeConfig?.machinePools?.[0]?.machineConfigRef?.kind?.toLowerCase();return e?e.replace(/config$/i,"").toLowerCase():null}return this.mgmt?.machineProvider?this.mgmt.machineProvider.toLowerCase():null}get machineProviderDisplay(){if(this.customProvisionerHelper?.machineProviderDisplay)return this.customProvisionerHelper?.machineProviderDisplay(this);if(this.isImported)return null;const e=(this.machineProvider||"").toLowerCase();return e?this.$rootGetters["i18n/withFallback"](`cluster.provider."${e}"`,null,e):this.$rootGetters["i18n/t"]("generic.unknown")}get machinePoolDefaults(){return this.spec.rkeConfig?.machinePoolDefaults}set defaultHostnameLengthLimit(e){this.spec.rkeConfig=this.spec.rkeConfig||{},this.spec.rkeConfig.machinePoolDefaults=this.spec.rkeConfig.machinePoolDefaults||{},this.spec.rkeConfig.machinePoolDefaults.hostnameLengthLimit=e}get defaultHostnameLengthLimit(){return this.spec.rkeConfig?.machinePoolDefaults?.hostnameLengthLimit}removeDefaultHostnameLengthLimit(){this.machinePoolDefaults?.hostnameLengthLimit&&(delete this.spec.rkeConfig.machinePoolDefaults.hostnameLengthLimit,0===Object.keys(this.spec?.rkeConfig?.machinePoolDefaults).length&&delete this.spec.rkeConfig.machinePoolDefaults)}get nodes(){return this.$rootGetters["management/all"](r.Mc.NODE).filter(e=>e.id.startsWith(this.mgmtClusterId))}get machines(){return this.$rootGetters["management/all"](r.Z7.MACHINE).filter(e=>e.metadata?.namespace===this.metadata.namespace&&e.spec?.clusterName===this.metadata.name)}get displayName(){return this.mgmt&&!this.isRke2?this.mgmt.spec.displayName:null}get pools(){const e=this.$rootGetters["management/all"](r.Z7.MACHINE_DEPLOYMENT).filter(e=>e.spec?.clusterName===this.metadata.name);return e.length?e:this.$rootGetters["management/all"](r.Mc.NODE_POOL).filter(e=>e.spec.clusterName===this.status?.clusterName)}get desired(){return this.pools.reduce((e,t)=>e+(t.desired||0),0)}get pending(){return this.pools.reduce((e,t)=>e+(t.pending||0),0)}get outdated(){return this.pools.reduce((e,t)=>e+(t.outdated||0),0)}get ready(){return this.pools.reduce((e,t)=>e+(t.ready||0),0)}get unavailable(){return this.pools.reduce((e,t)=>e+(t.unavailable||0),0)}get unavailableMachines(){if(this.isReady){if(this.isRke1){const e=this.nodes.filter(e=>e.status.conditions.find(e=>e.error&&"Ready"===e.type)).map(e=>{const t=e.status.nodeName||e.metadata.name;return this.t("cluster.availabilityWarnings.node",{name:t})});return e.join("<br>")}{const e=this.machines.filter(e=>e.status?.conditions?.find(e=>e.error&&"NodeHealthy"===e.type)).map(e=>e.status?.nodeRef?.name?this.t("cluster.availabilityWarnings.node",{name:e.status.nodeRef.name}):this.t("cluster.availabilityWarnings.machine",{name:e.metadata.name}));return e.join("<br>")}}return""}get stateParts(){const e=[{label:"Pending",color:"bg-info",textColor:"text-info",value:this.pending,sort:1},{label:"Outdated",color:"bg-warning",textColor:"text-warning",value:this.outdated,sort:2},{label:"Unavailable",color:"bg-error",textColor:"text-error",value:this.unavailable,sort:3},{label:"Ready",color:"bg-success",textColor:"text-success",value:this.ready,sort:4}].filter(e=>e.value>0);return(0,s.Ul)(e,"sort:desc")}async getOrCreateToken(){if(await this.waitForMgmt(),!this.mgmt)return;const e=await this.$dispatch("rancher/findAll",{type:r.k$.CLUSTER_TOKEN,force:!0},{root:!0});let t=(0,a.jq)(e,"clusterId",this.mgmt.id);return t||(this.links.update?(t=await this.$dispatch("rancher/create",{type:r.k$.CLUSTER_TOKEN,clusterId:this.mgmt.id},{root:!0}),t.save()):void 0)}openShell(){return this.mgmt?.openShell()}generateKubeConfig(){return this.mgmt?.generateKubeConfig()}async copyKubeConfig(){await(this.mgmt?.copyKubeConfig()),this.$dispatch("growl/info",{title:this.t("cluster.copiedConfig"),timeout:3e3},{root:!0})}downloadKubeConfig(){return this.mgmt?.downloadKubeConfig()}downloadKubeConfigBulk(e){return this.mgmt?.downloadKubeConfigBulk(e)}async snapshotAction(){try{await this.takeSnapshot(),this.$dispatch("growl/info",{title:this.$rootGetters["i18n/t"]("cluster.snapshot.successTitle",{name:this.nameDisplay}),message:this.$rootGetters["i18n/t"]("cluster.snapshot.successMessage",{name:this.nameDisplay})},{root:!0})}catch(e){this.$dispatch("growl/fromError",{title:this.$rootGetters["i18n/t"]("cluster.snapshot.errorTitle",{name:this.nameDisplay}),err:e},{root:!0})}}async snapshotBulk(e){const t=await Promise.allSettled(e.map(e=>e.takeSnapshot())),n=t.filter(e=>"fulfilled"===e.status).length;n&&this.$dispatch("growl/info",{title:this.$rootGetters["i18n/t"]("cluster.snapshot.bulkSuccessTitle"),message:this.$rootGetters["i18n/t"]("cluster.snapshot.bulkSuccessMessage",{count:n})},{root:!0});for(let r=0;r<t.length;r++)"fulfilled"!==t[r].status&&this.$dispatch("growl/fromError",{title:this.$rootGetters["i18n/t"]("cluster.snapshot.errorTitle",{name:e[r].nameDisplay}),err:t[r].value},{root:!0})}takeSnapshot(){if(this.isRke1)return this.$dispatch("rancher/request",{url:`/v3/clusters/${escape(this.mgmt.id)}?action=backupEtcd`,method:"post"},{root:!0});{const e=this.spec?.rkeConfig?.etcdSnapshotCreate?.generation||0,t={generation:e+1};return this.spec?.rkeConfig?.etcd?.s3&&(t.s3=this.spec.rkeConfig.etcd.s3),(0,o.hZ)(this.spec.rkeConfig,"etcdSnapshotCreate",t),this.save()}}get etcdSnapshots(){const e=this.$rootGetters["management/all"]({type:r.xO});return e.filter(e=>e.metadata.namespace===this.namespace&&e.clusterName===this.name)}restoreSnapshotAction(e=this){this.$dispatch("promptRestore",[e])}rotateCertificates(e=this){this.$dispatch("promptModal",{componentProps:{cluster:e},component:"RotateCertificatesDialog"})}rotateEncryptionKey(e=this){this.$dispatch("promptModal",{componentProps:{cluster:e},component:"RotateEncryptionKeyDialog"})}get stateObj(){return this._stateObj}get _stateObj(){return this.isRke2?this.metadata?.state:this.mgmt?.stateObj||this.metadata?.state}get supportsWindows(){if(this.isK3s||this.isImportedK3s)return!1;if(this.isRke1)return this.mgmt?.spec?.windowsPreferedCluster||!1;if(!this.isRke2)return!1;if(!this.kubernetesVersion||(0,c.UD)(this.kubernetesVersion,"v1.21.0")<0)return!1;const e=this.spec?.rkeConfig?.machineGlobalConfig?.cni;return!("flannel"===e&&(0,c.UD)(this.kubernetesVersion,"v1.29.2")<0)&&(!e||"calico"===e||"flannel"===e)}get customValidationRules(){return[{path:"metadata.name",translationKey:"cluster.name.label",validators:[`clusterName:${this.isRke2}`],maxLength:63}]}get agentConfig(){return this.spec.rkeConfig?.machineSelectorConfig?.find(e=>!e.machineLabelSelector)?.config||{}}get cloudProvider(){return this.agentConfig?.["cloud-provider-name"]}get canClone(){return!1}async remove(e={}){e.url||(e.url=(this.links||{})["self"]),e.method="delete";const t=await this.$dispatch("request",e),n=(this.spec?.rkeConfig?.machinePools||[])[0];if("HarvesterConfig"===n?.machineConfigRef?.kind){const e=this.spec.cloudCredentialSecretName;await this.$dispatch("rancher/findAll",{type:r.k$.CLOUD_CREDENTIAL},{root:!0});const t=this.$rootGetters["rancher/byId"](r.k$.CLOUD_CREDENTIAL,e);if(t){const e=(0,o.Jt)(t,"decodedData.clusterId");try{const t=await this.$dispatch("management/find",{type:`${r.Z7.MACHINE_CONFIG_GROUP}.${(n?.machineConfigRef?.kind||"").toLowerCase()}`,id:`${this.metadata.namespace}/${n?.machineConfigRef?.name}`},{root:!0});await this.$dispatch("management/request",{url:`/k8s/clusters/${e}/v1/harvester/serviceaccounts/${t.vmNamespace}/${this.metadata.name}`,method:"DELETE"},{root:!0})}catch(i){y.error(i)}}}if(204===t?._status&&await this.$dispatch("ws.resource.remove",{data:this}),this.customProvisionerHelper?.postDelete)return this.customProvisionerHelper?.postDelete(this)}get customProvisionerHelper(){return this.modelExtensions.find(e=>!!e.useFor&&e.useFor(this))}get groupByParent(){return this.customProvisionerHelper?.parentCluster?.(this)||this.t("resourceTable.groupLabel.notInACluster")}get hasError(){if(this.status?.conditions&&this.status?.conditions.length&&this.status?.conditions.some(e=>!0===e.error)){if(!this.status?.conditions.some(e=>"Ready"===e.type))return!0;const e=this.status?.conditions.filter(e=>!0===e.error||"Ready"===e.type),t=e.reduce((e,t)=>e.lastUpdateTime>t.lastUpdateTime?e:t);return t.error}return!1}get namespaceLocation(){const e=this.$rootGetters["management/byId"](r.Mc.CLUSTER,r.d_);return e?{name:"c-cluster-product-resource-id",params:{cluster:e.id,product:this.$rootGetters["productId"],resource:r.CU,id:this.namespace}}:null}get commentFieldsOptions(){return this.isRke2?[{path:"spec.rkeConfig.machineGlobalConfig",key:"profile"}]:null}get yamlFolding(){return["spec.rkeConfig.machinePools.dynamicSchemaSpec"]}get description(){return super.description||this.mgmt?.description}get disableResourceDetailDrawerConfigTab(){return!!this.isHarvester||this.isCapiHybrid}get fullDetailPageOverride(){return!0}async loadAutoscalerEvents(){const e=await this.loadAutoscalerConfigMap(),t=this.$rootGetters["management/schemaFor"](r.ll),n=[new v.Js({field:"involvedObject.uid",value:e.metadata.uid,exact:!0}),new v.Js({field:"metadata.namespace",value:"kube-system",exact:!0})],i={page:1,pageSize:200,filters:[new v.eY({fields:n})]},a=g.A.createParamsForPagination({schema:t,opt:{pagination:i}}),o=`/k8s/clusters/${this.mgmtClusterId}/v1/${r.ll}?${a}`,s=(await this.$dispatch("cluster/request",{url:o},{root:!0}))?.data||[];return s.filter(e=>"cluster-autoscaler-status"===e.involvedObject.name)}get hasAccessToAutoscalerConfigMap(){return this.canEdit}async loadAutoscalerConfigMap(){const e=`/k8s/clusters/${this.mgmtClusterId}/v1/${r.K5}/${r.w3}`;return await this.$dispatch("cluster/request",{url:e},{root:!0})}get canPauseResumeAutoscaler(){return this.isAutoscalerEnabled&&this.canExplore&&this.hasAccessToAutoscalerConfigMap}async loadAutoscalerStatus(){if(!this.canExplore)return w.PROVISIONING;if(!this.hasAccessToAutoscalerConfigMap)return w.UNAVAILABLE;try{const e=await this.loadAutoscalerConfigMap(),t=e?.data?.status||"";return f().load(t)}catch(e){return y.error(e),w.UNAVAILABLE}}async loadAutoscalerDetails(){const e=[];if(this.isAutoscalerPaused)return e.push({label:this.t("autoscaler.card.details.status"),value:this.t("autoscaler.card.details.paused")}),e;const t=await this.loadAutoscalerStatus();if(t===w.UNAVAILABLE)return e.push({label:this.t("autoscaler.card.details.status"),value:this.t("autoscaler.card.details.unavailable")}),e;if(t===w.PROVISIONING)return e.push({label:this.t("autoscaler.card.details.status"),value:this.t("autoscaler.card.details.provisioning")}),e;if(t.autoscalerStatus&&e.push({label:this.t("autoscaler.card.details.status"),value:t.autoscalerStatus}),t.clusterWide?.health?.status){const n=t.clusterWide.health.status;e.push({label:this.t("autoscaler.card.details.health"),value:{component:"BadgeStateFormatter",props:{value:n,arbitrary:!0,row:{}}}})}return t.clusterWide?.scaleDown?.lastTransitionTime&&e.push({label:this.t("autoscaler.card.details.scaleDown"),value:{component:"LiveDate",props:{value:t.clusterWide.scaleDown.lastTransitionTime,addSuffix:!0}}}),t.clusterWide?.scaleUp?.lastTransitionTime&&e.push({label:this.t("autoscaler.card.details.scaleUp"),value:{component:"LiveDate",props:{value:t.clusterWide.scaleUp.lastTransitionTime,addSuffix:!0}}}),t.clusterWide?.health?.nodeCounts?.registered&&(e.push({label:this.t("autoscaler.card.details.nodes")}),e.push({label:this.t("autoscaler.card.details.ready"),value:t.clusterWide.health.nodeCounts.registered.ready||"0"}),e.push({label:this.t("autoscaler.card.details.notStarted"),value:t.clusterWide.health.nodeCounts.registered.notStarted||"0"}),e.push({label:this.t("autoscaler.card.details.inTotal"),value:t.clusterWide.health.nodeCounts.registered.total||"0"})),e}get isAutoscalerEnabled(){return!!this.spec?.rkeConfig?.machinePools?.some(e=>"undefined"!==typeof e.autoscalingMinSize||"undefined"!==typeof e.autoscalingMaxSize)}get isAutoscalerPaused(){return!!this.metadata?.annotations?.[d.qt.AUTOSCALER_CLUSTER_PAUSE]}pauseAutoscaler(){this.setAnnotation(d.qt.AUTOSCALER_CLUSTER_PAUSE,"true")}resumeAutoscaler(){this.setAnnotation(d.qt.AUTOSCALER_CLUSTER_PAUSE,void 0)}toggleAutoscalerRunner(){return this.isAutoscalerPaused?this.resumeAutoscaler():this.pauseAutoscaler(),this.save()}}},8324:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(4799),i=n(68851),a=n(51700);class o extends a["default"]{get subtype(){return r.SUBTYPE_MAPPING.RBAC_CLUSTER_ROLE.key}get namespaceResources(){return this.allResources.filter(e=>e.attributes.namespaced&&!e.attributes.group.includes(r.CATTLE_API_GROUP))}get resources(){return(0,i.sb)(this.namespaceResources.map(e=>e.attributes?.kind)).sort()}}},69791:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(82614),i=n(35664);class a extends r.A{get users(){return this.subjects?.filter(({kind:e})=>e?.toLowerCase()===i.m3)}get serviceAccounts(){return this.subjects?.filter(({kind:e})=>e?.toLowerCase()===i.Sg)}get groups(){return this.subjects?.filter(({kind:e})=>e?.toLowerCase()===i.UP)}}},51700:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(35664),i=n(4799),a=n(68851),o=n(87811);class s extends o.A{get customValidationRules(){return[{path:"name",translationKey:"nameNsDescription.name.label",required:!0,nullable:!1,type:"string"},{path:"rules",validators:[`roleTemplateRules:${this.type}`],nullable:!1,type:"array"}]}get nameWithinProduct(){return this.$rootGetters["i18n/withFallback"](`rbac.displayRole.${this.name}`,this.name)}get subtype(){return i.SUBTYPE_MAPPING.RBAC_ROLE.key}get allResources(){return this.$getters["all"](r.yx).filter(e=>e.attributes?.kind)}get clusterResources(){return this.allResources.filter(e=>!e.attributes.namespaced&&!e.attributes.group.includes(i.CATTLE_API_GROUP))}get resources(){return(0,a.sb)(this.clusterResources.map(e=>e.attributes?.kind)).sort()}set displayName(e){this.metadata.name=e}get displayName(){return this.metadata?.name}}},559:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(82614),i=n(35664);class a extends r.A{get users(){return this.subjects.filter(({kind:e})=>e?.toLowerCase()===i.m3)}get serviceAccounts(){return this.subjects.filter(({kind:e})=>e?.toLowerCase()===i.Sg)}get groups(){return this.subjects.filter(({kind:e})=>e?.toLowerCase()===i.UP)}}},12299:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(70775);class i extends r["default"]{}},89713:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(40408),i=n(68851),a=n(76978),o=n(87811);class s extends o.A{get readyMessage(){const e=(0,a.Jt)(this,"status.conditions"),t=((0,i.jq)(e,"type","Ready")||{}).message;return t}get colorForState(){return this.readyMessage?(0,r.uU)(this.readyMessage):(0,r.uU)()}get stateDisplay(){return this.readyMessage?(0,r.ch)(this.readyMessage):(0,r.ch)()}}},23741:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(40408),i=n(68851),a=n(76978),o=n(87811);class s extends o.A{get canUpdate(){return this?.metadata?.state?.error}get readyMessage(){const e=(0,a.Jt)(this,"status.conditions"),t=((0,i.jq)(e,"type","Ready")||{}).message;return t}get colorForState(){return this.readyMessage?(0,r.uU)(this.readyMessage):(0,r.uU)()}get stateDisplay(){return this.readyMessage?(0,r.ch)(this.readyMessage):(0,r.ch)()}}},81689:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(46108),i=n.n(r),a=n(82451),o=n.n(a),s=n(87811);class l extends s.A{applyDefaults(e,t){const n=i()(t);if(n[e]){const t=n[e]?.config;delete t.id,delete t.links,delete t.metadata,delete t.apiVersion,o()(this,t)}}}},39651:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(38799);class i extends r["default"]{get provider(){return"amazonec2"}get providerLocation(){return`${this.spec.template.spec.region}${this.spec.template.spec.zone}`}get providerSize(){return this.spec.template.spec.instanceType}}},79144:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(38799);class i extends r["default"]{get provider(){return"azure"}get providerLocation(){return this.spec.template.spec.location}get providerSize(){return this.spec.template.spec.size}}},81593:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(38799);class i extends r["default"]{get provider(){return"digitalocean"}get providerLocation(){return this.spec.template.spec.region}get providerSize(){return this.spec.template.spec.size}}},69770:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(38799);class i extends r["default"]{get provider(){return"linode"}get providerLocation(){return this.spec.template.spec.region}get providerSize(){return this.spec.template.spec.instanceType}}},38799:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(87811);class i extends r.A{get nameDisplay(){return this.name.replace(`${this.metadata.annotations["objectset.rio.cattle.io/owner-name"]}-`,"")}get provider(){return null}get providerLocation(){return null}get providerSize(){return null}}},82186:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(38799);class i extends r["default"]{get provider(){return"pnap"}get providerLocation(){return this.spec.template.spec.serverLocation}get providerSize(){return this.spec.template.spec.serverType}}},38816:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(95799),i=n(38799);class a extends i["default"]{get provider(){return"vmwarevsphere"}get providerSize(){const e=(0,r.Mo)(1048576*this.spec.template.spec.memorySize,1024,"iB");return`${e}, ${this.spec.template.spec.cpuCount} Core`}}},7100:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var r=n(89865),i=n(2841),a=n(35664),o=n(68851),s=n(76978),l=n(4514),c=n(92043),u=n(40408);class d extends r.A{get _availableActions(){const e=this.snapshotFile?.status===u.jv.SUCCESSFUL;return[{action:"promptRestore",enabled:e,icon:"icon icon-backup-restore",label:"Restore"}]}promptRestore(){this.$dispatch("promptRestore",[this])}get clusterName(){return this.metadata.labels[i.xO.CLUSTER_NAME]}get clusterId(){return this.cluster.id}get name(){return this.metadata.name}get cluster(){return(0,o.jq)(this.$rootGetters["management/all"](a.Z7.RANCHER_CLUSTER),"metadata.name",this.clusterName)}get rke2(){return this.cluster?.isRke2}get nameDisplay(){return this.snapshotFile?.name||this.name}get errorMessage(){const e=(0,s.Jt)(this,"snapshotFile.status")===u.jv.FAILED;return e?(0,l.u)(this.snapshotFile?.message):null}get stateDescription(){const e=this.stateObj?.transitioning||!1,t=this.stateObj?.error||this.snapshotFile?.status===u.jv.FAILED||!1,n=this.stateObj?.message,r=this.snapshotFile?.status===u.jv.FAILED?(0,l.u)(this.snapshotFile?.message):null;return e||t?r||(0,c.TF)(n):""}get backupLocation(){return this.metadata?.annotations?.["etcdsnapshot.rke.io/storage"]}}},2334:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i},parseType:function(){return o}});var r=n(40408);class i extends r.Ay{get groupName(){return this.attributes.namespaced?"ns":"cluster"}get canGet(){return this.hasLink("collection")}get canList(){return this.hasLink("collection")}}const a=/([^[\s]*)(\[(.*)\])?/;function o(e,t){const n=a.exec(e),r=n[3]||t?.subtype,i=[n[1]];return r&&i.push(r),i}},29859:function(e,t,n){"use strict";n.r(t),n.d(t,{TYPES:function(){return E},default:function(){return k}});var r=n(39198),i=n(2841),a=n(4514),o=n(68851),s=n(35664),l=n(14220),c=n(76978),u=(n(68774),n(95265),n(86565),n(10213));n(9274);const d="manager";var h=n(87811),p=n(40408),f=n(51481),m=n(23464),g=n.n(m),v=n(22915),b=n(92043);function y(e,t,n){return(t=_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e){var t=w(e,"string");return"symbol"==typeof t?t:t+""}function w(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}const E={OPAQUE:"Opaque",SERVICE_ACCT:"kubernetes.io/service-account-token",DOCKER:"kubernetes.io/dockercfg",DOCKER_JSON:"kubernetes.io/dockerconfigjson",BASIC:"kubernetes.io/basic-auth",SSH:"kubernetes.io/ssh-auth",TLS:"kubernetes.io/tls",BOOTSTRAP:"bootstrap.kubernetes.io/token",ISTIO_TLS:"istio.io/key-and-cert",HELM_RELEASE:"helm.sh/release.v1",FLEET_CLUSTER:"fleet.cattle.io/cluster-registration-values",CLOUD_CREDENTIAL:"provisioning.cattle.io/cloud-credential",RKE_AUTH_CONFIG:"rke.cattle.io/auth-config"},S=6912e5;class k extends h.A{constructor(...e){super(...e),y(this,"_cachedCertInfo",void 0)}get hasSensitiveData(){return!0}get isCertificate(){return this._type===E.TLS}get isRegistry(){return this._type===E.DOCKER_JSON}get isCloudCredential(){return this._type===E.CLOUD_CREDENTIAL||"cattle-global-data"===this.metadata.namespace&&"cc-"===this.metadata.generateName}get supportsSshKnownHosts(){return this._type===E.SSH&&!!this.data&&"known_hosts"in this.data}get issuer(){const{metadata:{annotations:e={}}}=this;return e[i.G5.ISSUER]?e[i.G5.ISSUER]:this.isCertificate?this.cachedCertInfo?.issuer:null}get notAfter(){return this.isCertificate?this.cachedCertInfo?.notAfter:null}get cn(){return this.isCertificate?this.cachedCertInfo?.cn:null}get plusMoreNames(){return this.isCertificate?this.unrepeatedSans.length:null}get dateClass(){if(this.isCertificate)switch(this.certState){case p.jv.EXPIRING:return"text-warning";case p.jv.EXPIRED:return"text-error";default:return""}return null}get details(){const e=[{label:this.t("secret.type"),content:this.typeDisplay}];if(this._type===E.SERVICE_ACCT){const t=this.metadata?.annotations?.[i.pS.SERVICE_ACCOUNT_NAME];t&&e.push({label:"Service Account",formatter:"LinkName",formatterOpts:{value:t,type:s.Sg,namespace:this.namespace},content:t})}return this.cn&&e.push({label:this.t("secret.certificate.cn"),content:this.plusMoreNames?`${this.cn} ${this.t("secret.certificate.plusMore",{n:this.plusMoreNames})}`:this.cn}),this.issuer&&e.push({label:this.t("secret.certificate.issuer"),content:this.issuer}),this.notAfter&&e.push({label:"Expires",formatter:"Date",formatterOpts:{class:this.dateClass},content:this.notAfter}),e}get canUpdate(){return!this.isProjectSecretCopy&&(!!this.hasLink("update")&&(this._type!==E.SERVICE_ACCT&&this.$rootGetters["type-map/optionsFor"](this.type).isEditable))}get canDelete(){return!this.isProjectSecretCopy&&super.canDelete}get canCreate(){return!this.isProjectSecretCopy&&super.canCreate}get canEditYaml(){return!this.isProjectSecretCopy&&super.canEditYaml}get keysDisplay(){const e=[...Object.keys(this.data||[]),...Object.keys(this.binaryData||[])];return e.length?e.join(", "):"(none)"}get dataPreview(){if(this._type===E.DOCKER_JSON){const t=this.data[".dockerconfigjson"];if(t){const n=(0,a.u)(t);try{const e=JSON.parse(n).auths,t=[];for(const n in e)t.push(n);return t.join(", ")}catch(e){return n}}}else{if(this._type===E.TLS)return this.certInfo||this.keysDisplay;if(this._type===E.BASIC)return(0,a.u)(this.data.username);if(this._type===E.SSH)return this.sshUser;if(this._type===E.SERVICE_ACCT)return this.metadata?.annotations?.["kubernetes.io/service-account.name"]}return this.keysDisplay}get sshUser(){if(this._type!==E.SSH)return null;const e=(0,a.u)(this.data["ssh-publickey"]);if(!e)return null;if(e.startsWith("----")){const t=e.match(/from OpenSSH by ([^"]+)"/);if(t)return t[1]}else if(e.startsWith("ssh-")){const t=e.replace(/\n/g,"").split(/\s+/);if(t&&3===t.length)return t[2]}return null}get subTypeDisplay(){const e=this._type||"",t=e.replace(/^kubernetes.io\//,"");return this.$rootGetters["i18n/withFallback"](`secret.types."${e}"`,null,t)}get certInfo(){const e=(0,a.u)(this.data["tls.crt"]);let t,n,i,o,s,l;const c="-----END CERTIFICATE-----";if(e){const a=e.split(c);let d=e;a.length>1&&(d=`${a[0]}${c}`);try{l=new r.X509,l.readCertPEM(d);const e=l.getIssuerString();t=e.slice(e.indexOf("CN=")+3),n=r.zulutodate(l.getNotBefore()),i=r.zulutodate(l.getNotAfter());const a=l.getSubjectString();o=a.slice(a.indexOf("CN=")+3)}catch{return null}try{s=l.getExtSubjectAltName()}catch(u){s=[]}const h={issuer:t,notBefore:n,notAfter:i,cn:o,sans:s};return h}return null}get cachedCertInfo(){return this._cachedCertInfo||(this._cachedCertInfo=this.certInfo),this._cachedCertInfo}get unrepeatedSans(){if(this._type===E.TLS){const e=this.cachedCertInfo;if(e?.sans?.filter){const t=e?.sans.filter(e=>0===e.indexOf("*.")||0===e.indexOf("www.")).map(e=>e.substr(e.indexOf("."))),n=(0,o.$M)(e?.sans,t);return n}return e?.sans?.array||e?.sans||[]}return null}get timeTilExpiration(){if(this._type===E.TLS){const e=this.cachedCertInfo;if(!e?.notAfter)return null;const t=e.notAfter,n=t.valueOf(),r=Date.now(),i=n-r;return i<0?0:i}return null}get timeTilExpirationDate(){return this.timeTilExpiration>0?this.cachedCertInfo?.notAfter?.valueOf():null}get decodedData(){const e={};for(const t in this.data||{})e[t]=(0,a.u)(this.data[t]);return e}get setData(){return(e,t)=>{const n=e&&"object"===typeof e;let r;this.data&&!n||(0,c.hZ)(this,"data",{}),r=n?e:{[e]:t};for(const i in r)(0,c.hZ)(this.data,`"${i}"`,(0,a.KA)(r[i]))}}get doneRoute(){return this.$rootGetters["currentProduct"].name===d?"c-cluster-manager-secret":"c-cluster-product-resource"}get certLifetime(){if(this._type===E.TLS){const e=this.cachedCertInfo;if(e)return(0,f.qx)(g()(e.notBefore),g()(e.notAfter),(e,t)=>this.t(e,t)).string}return null}get certState(){if(this._type===E.TLS)return"number"!==typeof this.timeTilExpiration||this.timeTilExpiration>S?"":this.timeTilExpiration>0?p.jv.EXPIRING:p.jv.EXPIRED}get certStateDisplay(){if(this._type===E.TLS)return(0,p.ch)(this.certState)}get certStateBackground(){if(this._type!==E.TLS)return;const e=(0,p.uU)(this.certState);return e.replace("text-","bg-")}cleanForSave(e,t){const n=super.cleanForSave(e,t);return t&&delete n._type,n}async cleanForDownload(e){return(0,v.C)(e,{rootKeys:["id","links","actions"]})}get isProjectScoped(){const e=!!this.metadata.labels?.[i.Qw];return e&&!this.isProjectSecretCopy&&this.$rootGetters["isRancher"]}get projectScopedClusterId(){if(!this.projectScopedProjectId)return;const e=this.metadata.namespace.replace(`-${this.projectScopedProjectId}`,"");return e===this.metadata.namespace?"local":e}get projectScopedProjectId(){return this.metadata.labels?.[i.Qw]}get isProjectSecretCopy(){return"true"===this.metadata?.annotations?.[i.c8]}get projectCluster(){if(this.isProjectScoped)return this.$rootGetters[`${u.e.MANAGEMENT}/byId`](s.Mc.CLUSTER,this.projectScopedClusterId)}get project(){if(this.isProjectScoped)return this.$rootGetters[`${u.e.MANAGEMENT}/byId`](s.Mc.PROJECT,`${this.projectScopedClusterId}/${this.projectScopedProjectId}`)}get projectScopedSecretCluster(){if(this.isProjectScoped)return this.$rootGetters[`${u.e.MANAGEMENT}/byId`](s.Mc.PROJECT,`${this.projectScopedClusterId}/${this.projectScopedProjectId}`)}get detailLocation(){if(this.isProjectScoped){const e=this.id?.replace(/.*\//,"");return{name:`c-cluster-product-${s.cG.PROJECT_SECRETS}-namespace-id`,params:{product:this.$rootGetters["productId"],cluster:this.$rootGetters["clusterId"],namespace:this.metadata?.namespace,resource:s.cG.PROJECT_SECRETS,id:e}}}return this._detailLocation}get listLocation(){return this.hasProjectScopedUrlQueryParam||this.isProjectScoped?{name:"c-cluster-product-resource",params:{product:this.$rootGetters["productId"],cluster:this.$rootGetters["clusterId"],resource:s.cG.PROJECT_SECRETS}}:super.listLocation}get hasProjectScopedUrlQueryParam(){return this.currentRoute()?.query?.[l.SD]===l.dq.PROJECT_SCOPED}get parentNameOverride(){return this.hasProjectScopedUrlQueryParam||this.isProjectScoped?this.$rootGetters["i18n/t"](`typeLabel."${s.cG.PROJECT_SECRETS}"`,{count:1})?.trim():super.parentNameOverride}get parentLocationOverride(){return this.hasProjectScopedUrlQueryParam||this.isProjectScoped?this.listLocation:super.parentLocationOverride}get groupByProject(){if(this.isProjectScoped)return this.t("resourceTable.groupLabel.project",{name:(0,b.ZD)(this?.project?.nameDisplay||"")},!0)}get fullDetailPageOverride(){return!0}}},96258:function(e,t,n){"use strict";n.r(t),n.d(t,{CLUSTERIP:function(){return h},DEFAULT_SERVICE_TYPES:function(){return u},HEADLESS:function(){return d},default:function(){return f},fetchNodesForServiceTargets:function(){return p},proxyUrlFromBase:function(){return g},proxyUrlFromParts:function(){return m}});var r=n(81936),i=n.n(r),a=n(35664),o=n(87811),s=n(38823),l=n(50025),c=n(4364);const u=[{id:"ClusterIP",label:"servicesPage.serviceTypes.clusterIp.label",description:"servicesPage.serviceTypes.clusterIp.description",bannerAbbrv:"servicesPage.serviceTypes.clusterIp.abbrv"},{id:"ExternalName",label:"servicesPage.serviceTypes.externalName.label",description:"servicesPage.serviceTypes.externalName.description",bannerAbbrv:"servicesPage.serviceTypes.externalName.abbrv"},{id:"Headless",label:"servicesPage.serviceTypes.headless.label",description:"servicesPage.serviceTypes.headless.description",bannerAbbrv:"servicesPage.serviceTypes.headless.abbrv"},{id:"LoadBalancer",label:"servicesPage.serviceTypes.loadBalancer.label",description:"servicesPage.serviceTypes.loadBalancer.description",bannerAbbrv:"servicesPage.serviceTypes.loadBalancer.abbrv"},{id:"NodePort",label:"servicesPage.serviceTypes.nodePort.label",description:"servicesPage.serviceTypes.nodePort.description",bannerAbbrv:"servicesPage.serviceTypes.nodePort.abbrv"}],d=(()=>{const e=i()(u,["id","Headless"]);return e.id})(),h=(()=>{const e=i()(u,["id","ClusterIP"]);return e.id})(),p=async({$store:e,inStore:t})=>{try{const n=e.getters[`${t}/schemaFor`](a.NW);if(n){if(e.getters[`${t}/paginationEnabled`](a.NW)){const n={pagination:{pageSize:1,filters:[l.eY.createSingleField({field:"status.addresses.type",value:"ExternalIP",equality:l.D0.CONTAINS})]}};return e.dispatch(`${t}/findPage`,{type:a.NW,opt:n})}return e.dispatch(`${t}/findAll`,{type:a.NW})}return[]}catch(n){return c.warn("Failed to fetch nodes for service targets:",n),[]}};class f extends o.A{get customValidationRules(){return[{nullable:!1,path:"metadata.name",required:!0,translationKey:"generic.name",type:"dnsLabel"},{nullable:!1,path:"spec",required:!0,type:"array",validators:["servicePort"]},{nullable:!0,path:"spec",required:!0,type:"string",validators:["clusterIp"]},{nullable:!0,path:"spec",required:!0,type:"array",validators:["externalName"]}]}get details(){const e=[{label:this.t("generic.type"),content:this.serviceType?.id||this.serviceType}],{clusterIP:t,externalName:n,sessionAffinity:r,loadBalancerIP:i}=this.spec;if(t&&e.push({label:this.t("servicesPage.serviceTypes.clusterIp.label"),content:t}),"LoadBalancer"===this.serviceType){const t=this.status.loadBalancer?.ingress?.map(e=>e.hostname||e.ip).join(", "),n=i||t||"";n&&e.push({label:this.t("servicesPage.ips.loadBalancer.label"),content:n})}return n&&e.push({label:this.t("servicesPage.serviceTypes.externalName.label"),content:n}),r&&e.push({label:this.t("servicesPage.affinity.label"),content:r}),e}get podRelationship(){const{metadata:{relationships:e=[]}}=this;return(e||[]).filter(e=>e.toType===a.Sm)[0]}async fetchPods(){return this.podRelationship?await this.$dispatch("findLabelSelector",{type:a.Sm,matching:{namespace:this.metadata.namespace,labelSelector:{matchExpressions:(0,s.qg)(this.podRelationship?.selector)}}}):[]}async unWatchPods(){return await this.$dispatch("unwatch",{type:a.Sm,all:!0})}get pods(){return this.podRelationship?.selector?this.$getters["matchingLabelSelector"](a.Sm,{matchExpressions:(0,s.qg)(this.podRelationship?.selector)},this.metadata.namespace):[]}get serviceType(){const e=this.spec?.type,t=this.spec?.clusterIP,n=i()(u,["id",h]);return e?e===h&&"None"===t?d:e:n}proxyUrl(e,t){const n=this.linkFor("view"),r=n.lastIndexOf("/");return g(n.slice(0,r),e,this.metadata.name,t)}}function m(e,t,n,r,i,a){const o=`/k8s/clusters/${escape(e)}/api/v1/namespaces/${escape(t)}/services`;return g(o,r,n,i,a)}function g(e,t,n,r,i){const a=(t?`${escape(t)}:`:"")+escape(n)+(r?`:${escape(r)}`:""),o=`/${(i||"").replace(/^\/+/g,"")}`,s=e.replace(/\/+$/g,""),l=`${s}/${a}/proxy${o}`;return l}},63809:function(e,t,n){"use strict";n.r(t),n.d(t,{PROVISIONER_OPTIONS:function(){return o}});var r=n(2841),i=n(35664),a=n(87811);const o=[{labelKey:"storageClass.aws-ebs.title",value:"kubernetes.io/aws-ebs",supported:!0,deprecated:!0},{labelKey:"storageClass.azure-disk.title",value:"kubernetes.io/azure-disk",supported:!0,deprecated:!0},{labelKey:"storageClass.azure-file.title",value:"kubernetes.io/azure-file",supported:!0,deprecated:!0},{labelKey:"storageClass.rbd.title",value:"kubernetes.io/rbd"},{labelKey:"storageClass.glusterfs.title",value:"kubernetes.io/glusterfs"},{labelKey:"storageClass.gce-pd.title",value:"kubernetes.io/gce-pd",supported:!0,deprecated:!0},{labelKey:"storageClass.no-provisioner.title",value:"kubernetes.io/no-provisioner"},{labelKey:"storageClass.longhorn.title",value:"driver.longhorn.io",supported:!0},{labelKey:"storageClass.cinder.title",value:"kubernetes.io/cinder",deprecated:!0},{labelKey:"storageClass.portworx-volume.title",value:"kubernetes.io/portworx-volume"},{labelKey:"storageClass.quobyte.title",value:"kubernetes.io/quobyte"},{labelKey:"storageClass.scaleio.title",value:"kubernetes.io/scaleio"},{labelKey:"storageClass.storageos.title",value:"kubernetes.io/storageos"},{labelKey:"storageClass.vsphere-volume.title",value:"kubernetes.io/vsphere-volume",supported:!0,deprecated:!0},{labelKey:"storageClass.harvesterhci.title",value:"driver.harvesterhci.io",supported:!0,hideCustomize:!0}];t["default"]=class extends a.A{get provisionerListDisplay(){return`${this.provisioner} (${this.provisionerDisplay})`}get provisionerDisplay(){const e=o.find(e=>e.value===this.provisioner),t=`${this.provisioner} ${this.t("persistentVolume.csi.suffix")}`;return e?this.t(e.labelKey):this.$rootGetters["i18n/withFallback"](`persistentVolume.csi.drivers.${this.provisioner.replaceAll(".","-")}`,null,t)}get isDefault(){return"true"===this.annotations[r.O3.DEFAULT_STORAGE_CLASS]}updateDefault(e){this.setAnnotation(r.O3.DEFAULT_STORAGE_CLASS,e.toString()),this.setAnnotation(r.O3.BETA_DEFAULT_STORAGE_CLASS,e.toString());const t={metadata:{annotations:{[r.O3.DEFAULT_STORAGE_CLASS]:e.toString(),[r.O3.BETA_DEFAULT_STORAGE_CLASS]:e.toString()}}};return this.patch(t,{},!0,!0)}async setDefault(){const e=this.$rootGetters["currentProduct"].inStore,t=this.$rootGetters[`${e}/all`](i.fJ)||[];for(const n of t)await n.resetDefault();t.forEach(e=>e.resetDefault()),this.updateDefault(!0)}async resetDefault(){this.isDefault&&await this.updateDefault(!1)}get _availableActions(){const e=super._availableActions;return this.isDefault?e.unshift({action:"resetDefault",enabled:!0,icon:"icon icon-checkmark",label:this.t("storageClass.actions.resetDefault")}):e.unshift({action:"setDefault",enabled:!0,icon:"icon icon-checkmark",label:this.t("storageClass.actions.setAsDefault")}),e}cleanForNew(){this.$dispatch("cleanForNew",this),delete this?.metadata?.annotations?.[r.O3.DEFAULT_STORAGE_CLASS]}},(Object.getOwnPropertyDescriptor(t["default"],"name")||{}).writable||Object.defineProperty(t["default"],"name",{value:"default",configurable:!0})},66491:function(e,t,n){"use strict";n.r(t);var r=n(87811);t["default"]=class extends r.A{get constraints(){const e=`constraints.gatekeeper.sh.${this.id}`;if(!this.$rootGetters["cluster/haveAll"](e))throw new Error("The constraints have not been loaded");return this.$rootGetters["cluster/all"](e)}get preventDeletionMessage(){const e=this.constraints;return e.length>0?"There are still constraints using this template. You cannot delete this template while it's in use.":null}},(Object.getOwnPropertyDescriptor(t["default"],"name")||{}).writable||Object.defineProperty(t["default"],"name",{value:"default",configurable:!0})},24364:function(e,t,n){"use strict";n.r(t);var r=n(23464),i=n.n(r),a=n(89865);t["default"]=class extends a.A{get _availableActions(){return super._availableActions.filter(e=>["viewInApi","promptRemove"].includes(e.action))}get state(){return this.isExpired?"expired":"active"}get isExpired(){const e=i()(this.expiresAt);return e.isBefore(i()())}},(Object.getOwnPropertyDescriptor(t["default"],"name")||{}).writable||Object.defineProperty(t["default"],"name",{value:"default",configurable:!0})},51225:function(e,t,n){"use strict";n.r(t);var r=n(96258),i=n(87811);t["default"]=class extends i.A{get labelDisplay(){return this.spec?.label||this.metadata.name||"?"}get link(){if(this.spec?.toURL)return this.spec.toURL;if(this.spec?.toService){const e=this.spec.toService;return(0,r.proxyUrlFromParts)(this.$rootGetters["clusterId"],e.namespace,e.name,e.scheme,e.port,e.path)}return null}get normalizedGroup(){return this.spec.group?this.spec.group.toLowerCase().trim().replace(/[^a-z0-9]/g,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,""):null}get actualTarget(){return(this.spec.target||"").trim()||"_blank"}},(Object.getOwnPropertyDescriptor(t["default"],"name")||{}).writable||Object.defineProperty(t["default"],"name",{value:"default",configurable:!0})},70775:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return v},defaultContainer:function(){return g}});var r=n(68851),i=n(2841),a=n(35664),o=n(76978),s=n(23464),l=n.n(s),c=n(38823);const u={separator:!0};var d=n(2505),h=n(3704),p=n(9274),f=n(6855),m=n(40408);const g={imagePullPolicy:"Always",name:"container-0",securityContext:{runAsNonRoot:!1,readOnlyRootFilesystem:!1,privileged:!1,allowPrivilegeEscalation:!1},volumeMounts:[]};class v extends d["default"]{get _availableActions(){let e=super._availableActions;const t=this._type?this._type:this.type,n=(0,r.jq)(e,"action","goToEditYaml"),i=n?e.indexOf(n):0;(0,r.PT)(e,i,{action:"addSidecar",label:this.t("action.addSidecar"),icon:"icon icon-plus",enabled:!!this.links.update}),t!==a.oU.JOB&&t!==a.oU.CRON_JOB&&t!==a.oU.REPLICA_SET&&((0,r.PT)(e,0,{action:"toggleRollbackModal",label:this.t("action.rollback"),icon:"icon icon-downgrade-alt",enabled:!!this.links.update}),(0,r.PT)(e,0,{action:"redeploy",label:this.t("action.redeploy"),icon:"icon icon-refresh",enabled:!!this.links.update,bulkable:!0,bulkAction:"redeploy"}),(0,r.PT)(e,0,{action:"pause",label:this.t("asyncButton.pause.action"),icon:"icon icon-pause",enabled:!!this.links.update&&!this.spec?.paused}),(0,r.PT)(e,0,{action:"resume",label:this.t("asyncButton.resume.action"),icon:"icon icon-play",enabled:!!this.links.update&&!0===this.spec?.paused})),(0,r.PT)(e,0,{divider:!0}),(0,r.PT)(e,0,{action:"openShell",enabled:!!this.links.view,icon:"icon icon-chevron-right",label:this.t("action.openShell"),total:1});const o=["cloneYaml"];return e=e.filter(e=>{if(!o.includes(e.action))return e}),e}applyDefaults(){const{spec:e={}}=this;this.type===a.oU.CRON_JOB?e.jobTemplate||(e.jobTemplate={spec:{template:{spec:{restartPolicy:"Never",containers:[{imagePullPolicy:"Always",name:"container-0"}],initContainers:[]}}}}):(e.replicas||0===e.replicas||(e.replicas=1),e.template||(e.template={spec:{restartPolicy:this.type===a.oU.JOB?"Never":"Always",containers:[{...structuredClone(g)}],initContainers:[]}}),e.selector||(e.selector={})),this.spec=e}toggleRollbackModal(e=this){this.$dispatch("promptModal",{componentProps:{workload:e},component:"RollbackWorkloadDialog"})}async rollBackWorkload(e,t,n,r){const i=JSON.stringify(r);if(Array.isArray(t))throw new TypeError(this.t("promptRollback.multipleWorkloadError"));const a=t.metadata.namespace,o=t.metadata.name;await this.patch(i,{url:`/k8s/clusters/${e.id}/apis/apps/v1/namespaces/${a}/${n}/${o}`})}pause(){(0,o.hZ)(this.spec,"paused",!0),this.save()}resume(){(0,o.hZ)(this.spec,"paused",!1),this.save()}async scaleDown(){const e=this.spec.replicas-1;e>=0&&((0,o.hZ)(this.spec,"replicas",e),await this.save())}async scaleUp(){(0,o.hZ)(this.spec,"replicas",this.spec.replicas+1),await this.save()}async scale(e){try{e?await this.scaleUp():await this.scaleDown()}catch(t){this.$store.dispatch("growl/fromError",{title:this.t("workload.list.errorCannotScale",{direction:e?"up":"down",workloadName:this.name}),err:t},{root:!0})}}get state(){return!0===this.spec?.paused?"paused":super.state}async openShell(){const e=await this.matchingPods();for(const t of e)if(t.isRunning)return void t.openShell();this.$dispatch("growl/error",{title:"Unavailable",message:"There are no running pods to execute a shell in."},{root:!0})}addSidecar(){return this.goToEdit({sidecar:!0})}get restartCount(){return this.pods.reduce((e,t)=>{const{status:{containerStatuses:n=[]}}=t;return n.length&&(e+=n.reduce((e,t)=>(e+=t.restartCount||0,e),0)),e},0)}get hasSidecars(){const e=this.type===a.oU.CRON_JOB?this?.spec?.jobTemplate?.spec?.template?.spec:this.spec?.template?.spec,{containers:t=[],initContainers:n=[]}=e;return t.length>1||n.length}get customValidationRules(){const e=this._type?this._type:this.type,t=e===a.oU.CRON_JOB?"spec.jobTemplate.spec.template.spec":"spec.template.spec",n=[{nullable:!1,path:"metadata.name",required:!0,translationKey:"generic.name",type:"subDomain"},{nullable:!1,path:"spec",required:!0,type:"object",validators:["containerImages"]},{nullable:!0,path:`${t}.affinity`,type:"object",validators:["podAffinity"]}];switch(e){case a.oU.DEPLOYMENT:case a.oU.REPLICA_SET:n.push({nullable:!1,path:"spec.replicas",required:!0,type:"number",translationKey:"workload.replicas"});break;case a.oU.STATEFUL_SET:n.push({nullable:!1,path:"spec.replicas",required:!0,type:"number",translationKey:"workload.replicas"}),n.push({nullable:!1,path:"spec.serviceName",required:!0,type:"string",translationKey:"workload.serviceName"});break;case a.oU.CRON_JOB:n.push({nullable:!1,path:"spec.schedule",required:!0,type:"string",validators:["cronSchedule"],translationKey:"workload.cronSchedule"})}return n}get endpoint(){return this?.metadata?.annotations?.[i.bs]}get desired(){return this.spec?.replicas||0}get available(){return this.status?.readyReplicas||0}get ready(){const e=Math.max(0,(this.status?.replicas||0)-(this.status?.unavailableReplicas||0));return this.type===a.oU.DAEMON_SET?e:`${e}/${this.desired}`}get unavailable(){return this.status?.unavailableReplicas||0}get upToDate(){return this.status?.updatedReplicas}get details(){const e=[],t=this._type?this._type:this.type,n={restarts:{label:this.t("resourceDetail.masthead.restartCount"),content:this.restartCount},endpoint:{label:"Endpoints",content:this.endpoint,formatter:"WorkloadDetailEndpoints"},ready:{label:"Ready",content:this.ready},upToDate:{label:"Up-to-date",content:this.upToDate},available:{label:"Available",content:this.available}};if(t===a.oU.JOB){const{completionTime:t,startTime:n}=this.status,r=[60,60,24],i=["sec","min","hour","day"];if(n&&e.push({label:"Started",content:n,formatter:"LiveDate",formatterOpts:{addSuffix:!0}}),t&&n){const a=l()(t),o=l()(n);let s,c=a.diff(o)/1e3,u=0;while(c>=r[u]&&u<r.length)c/=r[u],u++;s=c<5?Math.floor(10*c)/10:Math.floor(c),s+=` ${this.t(`unit.${i[u]}`,{count:s})} `,s=s.trim(),e.push({label:"Duration",content:s})}}else t===a.oU.CRON_JOB&&e.push({label:"Last Scheduled Time",content:this?.status?.lastScheduleTime,formatter:"LiveDate"});switch(e.push({label:"Image",content:this.imageNames,formatter:"PodImages"},{label:n.restarts.label,content:n.restarts.content}),t){case a.oU.DEPLOYMENT:e.push(n.ready,n.upToDate,n.available,u,n.endpoint);break;case a.oU.DAEMON_SET:e.push(n.ready,u,n.endpoint);break;case a.oU.REPLICA_SET:e.push(n.ready,u,n.endpoint);break;case a.oU.STATEFUL_SET:e.push(n.ready,u,n.endpoint);break;case a.oU.REPLICATION_CONTROLLER:e.push(n.ready,u,n.endpoint);break;case a.oU.JOB:e.push(n.endpoint);break;case a.oU.CRON_JOB:e.push(n.endpoint);break;case a.Sm:e.push(n.ready);break;default:break}return e}redeploy(e=this){const t=Array.isArray(e)?e:[e];this.$dispatch("promptModal",{modalWidth:"500px",componentProps:{workloads:t},component:"RedeployWorkloadDialog"})}async getPortsWithServiceType(){const e=[];this.containers.forEach(t=>e.push(...t.ports||[])),(this.initContainers||[]).forEach(t=>e.push(...t.ports||[]));const t=this.$getters["schemaFor"](a.YV),n=t?await this.getServicesOwned():[],i=[],o=[],s=[];return n.length&&n.forEach(e=>{switch(e.spec.type){case"ClusterIP":i.push(...e?.spec?.ports||[]);break;case"LoadBalancer":o.push(...e?.spec?.ports||[]);break;case"NodePort":s.push(...e?.spec?.ports||[]);break;default:break}}),e.forEach(e=>{const t=e.name?e.name:`${e.containerPort}${e.protocol.toLowerCase()}${e.hostPort||e._listeningPort||""}`;if(e.name=t,!e._serviceType||""===e._serviceType){if(o.length){const n=(0,r.jq)(o,"name",t);if(n)return e._listeningPort=n.port,void(e._serviceType="LoadBalancer")}if(s.length){const n=(0,r.jq)(s,"name",t);if(n)return e._listeningPort=n.nodePort,void(e._serviceType="NodePort")}i.length&&(0,r.jq)(i,"name",t)&&(e._serviceType="ClusterIP")}}),e}get ownedByWorkload(){const e=Object.values(a.oU);if(this.metadata?.ownerReferences)for(const t of this.metadata.ownerReferences){const n=`${t.apiVersion.replace(/\/.*/,"")}.${t.kind}`.toLowerCase();if(e.includes(n))return!0}return!1}get isFromNorman(){return"norman"===(this.metadata.labels||{})["cattle.io/creator"]}get warnDeletionMessage(){return this.isFromNorman?this.t("workload.normanWarning"):null}async fetchPods(){if(this.podMatchExpression)return this.$dispatch("findLabelSelector",{type:a.Sm,matching:{namespace:this.metadata.namespace,labelSelector:{matchExpressions:this.podMatchExpression}}})}async unWatchPods(){return await this.$dispatch("unwatch",{type:a.Sm,all:!0})}get pods(){return this.podMatchExpression?this.$getters["matchingLabelSelector"](a.Sm,{matchExpressions:this.podMatchExpression},this.metadata.namespace):[]}get podSelector(){const e=this.metadata?.relationships||[],t=e.filter(e=>e.toType===a.Sm)[0]?.selector;return t}get podMatchExpression(){return this.podSelector?(0,c.qg)(this.podSelector):null}calcPodGauges(e){const t={};let n=e;return this.metadata.associatedData&&(n=[],this.metadata.associatedData.forEach(e=>{if(e.gvk.kind.toLowerCase()===a.Sm)return e.data.forEach(e=>{n.push({stateColor:(0,m.uU)(e.state.name,"true"===e.state.error,"true"===e.state.transitioning),stateDisplay:(0,m.ch)(e.state.name)})})})),n?(n.map(e=>{const{stateColor:n,stateDisplay:r}=e;t[r]?t[r].count++:t[r]={color:n.replace("text-",""),count:1}}),t):t}get podGauges(){return this.calcPodGauges(this.pods)}get jobRelationships(){if(this.type===a.oU.CRON_JOB)return this.metadata?.relationships?.filter(e=>e.toType===a.oU.JOB)||[]}async matchingJobs(){if(this.type===a.oU.CRON_JOB)return Promise.all(this.jobRelationships.map(e=>this.$dispatch("find",{type:a.oU.JOB,id:e.toId})))}get jobs(){if(this.type===a.oU.CRON_JOB)return this.jobRelationships.map(e=>this.$getters["byId"](a.oU.JOB,e.toId)).filter(e=>!!e)}get currentRevisionNumber(){if(!this.ownedByWorkload&&"Job"!==this.kind&&"CronJob"!==this.kind)return"Deployment"===this.kind?this.metadata.annotations["deployment.kubernetes.io/revision"]:this.metadata.generation}async matchingPods(){const e=await(0,h.wC)({labelSelector:{matchExpressions:(0,c._R)(this.spec.selector)},type:a.Sm,$store:this.$store||{getters:this.$rootGetters,dispatch:(e,t)=>this.$dispatch(e.split("/")[1],t)},inStore:this.$rootGetters["currentProduct"].inStore,namespace:this.metadata.namespace,transient:!0});return e.matches}cleanForSave(e){const t=super.cleanForSave(e);return t.spec?.template?.spec?.containers?.forEach(e=>{this.cleanContainerForSave(e)}),t.spec?.template?.spec?.initContainers?.forEach(e=>{this.cleanContainerForSave(e)}),t}get servicesInNamespace(){return this.$rootGetters["cluster/all"](a.YV).filter(e=>e.metadata.namespace===this.metadata.namespace)}get relatedServices(){return this.servicesInNamespace.filter(e=>{const t=e.spec.selector;for(let n=0;n<this.pods.length;n++){const r=this.pods[n];if(e.metadata?.namespace===this.metadata?.namespace&&(0,c.cK)(r,t))return!0}return!1})}get resourcesCardRows(){return[(0,f.GD)(this.t("component.resource.detail.card.resourcesCard.rows.services"),this.relatedServices,void 0,void 0,"#services"),...this._resourcesCardRows]}get podsCard(){const e=[a.oU.DEPLOYMENT,a.oU.DAEMON_SET,a.oU.JOB,a.oU.STATEFUL_SET];if(!e.includes(this.type))return null;const t=[a.oU.DEPLOYMENT,a.oU.STATEFUL_SET],r=this.canUpdate&&t.includes(this.type);return!this.pods||0===this.pods.length&&!r?null:{component:(0,p.markRaw)((0,p.defineAsyncComponent)(()=>n.e(818).then(n.bind(n,44818)))),props:{title:this.t("component.resource.detail.card.podsCard.title"),resources:this.pods,showScaling:r,onIncrease:()=>this.scale(!0),onDecrease:()=>this.scale(!1),noResourcesMessage:this.t("component.resource.detail.card.podsCard.noPods")}}}get jobsCard(){const e=[a.oU.CRON_JOB];return!e.includes(this.type)||(this.jobs?.length||0)<=0?null:{component:(0,p.markRaw)((0,p.defineAsyncComponent)(()=>n.e(818).then(n.bind(n,44818)))),props:{title:this.t("component.resource.detail.card.jobsCard.title"),resources:this.jobs,showScaling:!1}}}get cards(){return[this.podsCard,this.jobsCard,this.insightCard,...this._cards]}}},2505:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c}});var r=n(68851),i=n(2841),a=n(35664),o=n(76978),s=n(87811),l=n(92043);class c extends s.A{async getPortsWithServiceType(){const e=[];this.containers.forEach(t=>e.push(...t.ports||[])),(this.initContainers||[]).forEach(t=>e.push(...t.ports||[]));const t=this.$getters["schemaFor"](a.YV),n=t?await this.getServicesOwned():[],i=[],o=[],s=[];return n.length&&n.forEach(e=>{switch(e.spec.type){case"ClusterIP":i.push(...e?.spec?.ports||[]);break;case"LoadBalancer":o.push(...e?.spec?.ports||[]);break;case"NodePort":s.push(...e?.spec?.ports||[]);break;default:break}}),e.forEach(e=>{const t=e.name?e.name:`${e.containerPort}${e.protocol.toLowerCase()}${e.hostPort||e._listeningPort||""}`;if(e.name=t,!e._serviceType||""===e._serviceType){if(o.length){const n=(0,r.jq)(o,"name",t);if(n)return e._listeningPort=n.port,void(e._serviceType="LoadBalancer")}if(s.length){const n=(0,r.jq)(s,"name",t);if(n)return e._listeningPort=n.nodePort,void(e._serviceType="NodePort")}i.length&&(0,r.jq)(i,"name",t)&&(e._serviceType="ClusterIP")}}),e}async getServicesOwned(e=!1){const t={[a.oU.REPLICA_SET]:"replicaSet",[a.oU.DEPLOYMENT]:"deployment",[a.oU.STATEFUL_SET]:"statefulSet",[a.oU.DAEMON_SET]:"daemonSet"},n=Object.keys(this.workloadSelector)[0],r=`${t[this._type?this._type:this.type]}-${this.metadata.namespace}-${this.metadata.name}`,i=this.workloadSelector[n],o=await this.$dispatch("cluster/findAll",{type:a.YV,opt:{force:e}},{root:!0});return(o||[]).filter(e=>(e.spec?.selector||{})[n]===i||(e.spec?.selector||{})[n]===r)}get imageNames(){let e;const t=[];return e=this.type===a.oU.CRON_JOB?(0,o.Jt)(this,"spec.jobTemplate.spec.template.spec.containers"):(0,o.Jt)(this,"spec.template.spec.containers"),e&&e.forEach(e=>{t.includes(e.image)||t.push(e.image)}),t.map(l.qO)}get containers(){if(this.type===a.oU.CRON_JOB){const{spec:{jobTemplate:{spec:{template:{spec:{containers:e}}}}}}=this;return e}if(this.spec.containers)return this.spec.containers;const{spec:{template:{spec:{containers:e}}}}=this;return e}get initContainers(){if(this.type===a.oU.CRON_JOB){const{spec:{jobTemplate:{spec:{template:{spec:{initContainers:e}}}}}}=this;return e}if(this.spec.initContainers)return this.spec.initContainers;const{spec:{template:{spec:{initContainers:e}}}}=this;return e}get workloadSelector(){return{"workload.user.cattle.io/workloadselector":`${this._type?this._type:this.type}-${this.metadata.namespace}-${this.metadata.name}`}}async servicesFromContainerPorts(e,t){const n={apiVersion:this.apiVersion,controller:!0,kind:this.kind,name:this.metadata.name,uid:this.metadata.uid},r={[i.nN]:JSON.stringify([`${this.metadata.namespace}/${this.metadata.name}`]),[i.d6]:"true"};let s={type:a.YV,spec:{ports:[],selector:this.workloadSelector,type:"ClusterIP"},metadata:{name:this.metadata.name,namespace:this.metadata.namespace,annotations:r,ownerReferences:[n]}},l={type:a.YV,spec:{ports:[],selector:this.workloadSelector,type:"NodePort"},metadata:{name:`${this.metadata.name}-nodeport`,namespace:this.metadata.namespace,annotations:r,ownerReferences:[n]}},c={type:a.YV,spec:{ports:[],selector:this.workloadSelector,type:"LoadBalancer",externalTrafficPolicy:"Cluster"},metadata:{name:`${this.metadata.name}-loadbalancer`,namespace:this.metadata.namespace,annotations:r,ownerReferences:[n]}};const u=await this.getServicesOwned(this.isFromNorman);u&&u.length&&u.forEach(e=>{switch(e.spec.type){case"ClusterIP":s=e,s.spec.ports=[];break;case"NodePort":l=e,l.spec.ports=[];break;case"LoadBalancer":c=e,c.spec.ports=[];break;default:break}}),t.forEach(e=>{const t={name:e.name,protocol:e.protocol,port:e.containerPort,targetPort:e.containerPort};if(""!==e._serviceType)switch(s.spec.ports.push(t),e._serviceType){case"NodePort":{const n=(0,o.o8)(t);e._listeningPort&&(n.nodePort=e._listeningPort),l.spec.ports.push(n);break}case"LoadBalancer":{const n=(0,o.o8)(t);e._listeningPort&&(n.port=e._listeningPort),c.spec.ports.push(n);break}default:break}});const d=[],h=[];let p;if(s.spec.ports.length>0?(p=s.id?s:await this.$dispatch("cluster/create",s,{root:!0}),d.push(p)):s.id&&h.push(s),l.spec.ports.length>0){let e;e=l.id?l:await this.$dispatch("cluster/create",l,{root:!0}),d.push(e)}else l.id&&h.push(l);if(c.spec.ports.length>0){let e;e=c.id?c:await this.$dispatch("cluster/create",c,{root:!0});const n=t.filter(e=>e._ipam)||[];n.length>0&&(e.metadata.annotations[i.rk.CLOUD_PROVIDER_IPAM]=n[0]._ipam),d.push(e)}else c.id&&h.push(c);return{toSave:d,toRemove:h}}cleanForSave(e){const t=super.cleanForSave(e);return delete t.__active,delete t.type,t}cleanContainerForSave(e){return delete e.__active,delete e.active,delete e._init,delete e.error,e}}},27436:function(e,t,n){"use strict";function r(e){return()=>{}}function i(e){return()=>{}}function a(e){return()=>{}}function o(e){return()=>{}}function s(e){return()=>{}}function l(e){return()=>{}}function c(e){return()=>{}}function u(e){return()=>{}}function d(e){return()=>{}}function h(e){}function p(e){}function f(e){}function m(e){}function g(e){return()=>{}}function v(e){}function b(e){}function y(e){}n.d(t,{Gw:function(){return s},L7:function(){return d},Lk:function(){return i},Nh:function(){return h},PP:function(){return l},dM:function(){return p},eG:function(){return o},gc:function(){return v},hi:function(){return b},ho:function(){return a},iE:function(){return u},lB:function(){return f},oe:function(){return m},qq:function(){return r},ro:function(){return g},uc:function(){return c},yo:function(){return y}})},70176:function(e,t,n){"use strict";n.d(t,{OD:function(){return l},P:function(){return s}});var r=n(97519),i=n(68851);n(4364);const a=["center","code","li","a","p","b","br","ul","pre","span","div","i","img","em","strong","h1","h2","h3","h4","h5","h6","table","thead","tr","th","tbody","td","blockquote"];let o=[];r.A.addHook("uponSanitizeAttribute",(e,t)=>{"A"===e.tagName&&"target"===t.attrName&&"_blank"===t.attrValue&&(t.forceKeepAttr=!0)}),r.A.addHook("afterSanitizeAttributes",e=>{if("A"===e.tagName&&"_blank"===e?.target){const t=["noopener","noreferrer","nofollow"],n=e.rel?.length?e.rel.split(" "):[],r=(0,i.sb)([...t,...n]);e.setAttribute("rel",r.join(" "))}if("A"===e.tagName&&o.length){let t=e.href;t=l(t),t!==e.href&&(e.href=t)}});const s=(e,t={ALLOWED_TAGS:a})=>r.A.sanitize(e,t);function l(e){for(let t=0;t<o.length;t++){const n=o[t](e);n&&(e=n)}return e}},63905:function(e,t,n){"use strict";n.d(t,{BH:function(){return A},m9:function(){return y},wA:function(){return x}});var r=n(82451),i=n.n(r),a=n(35664),o=n(86565),s=n(37648),l=n(50382),c=n(79401),u=n(90599),d=n(37417),h=n(50667),p=n(46392),f=n(88343),m=n(50025),g=n(3704),v=n(4364);const b="all",y="merge",_="multi",w="none",E=15,S=15,k=10;async function x(e,t,n,r){if(n.url.includes(o.QF)||n.url.includes(o.lm)){const[i,l,c,...u]=n.url.split("/"),d=u.join("/"),h=l===o.lm,p=d?"getSpoofedInstance":"getSpoofedInstances",f=e[`${t}/all`](a.yx),m=await e[`type-map/${p}`](c,r,d),g=h?(0,s.mH)(f,c,m):m;return d&&!h?g:{data:g}}}async function A(e,t=!0){const{getters:n,dispatch:r,commit:i,rootGetters:o}=e,s=await r("findAll",{type:a.yx,opt:{url:"schemas",load:!1}}),l=o["type-map/allSpoofedSchemas"];Array.isArray(s.data)?s.data=s.data.concat(l):Array.isArray(s)&&(s.data=s.concat(l)),s.data.forEach(d.w),i("loadAll",{ctx:e,type:a.yx,data:s.data,revision:s.revision}),!1!==t&&r("watch",{type:a.yx,revision:s.revision});const c=n.all(a.yx);return c}const C=(e,t,n)=>n.namespaced?e.matching(t,null,n.namespaced,{skipSelector:!0}):e.all(t),T=({type:e,id:t,opt:n,res:r})=>{const i="undefined"!==typeof n.revision?n.revision:r?.metadata?.resourceVersion,a={type:e,id:t,namespace:n.namespaced,revision:i||"",force:!0===n.forceWatch},o=t.indexOf("/");return o>0&&(a.namespace=t.substr(0,o),a.id=t.substr(o+1)),a};t.Ay={request(){throw new Error("Not Implemented")},loadSchemas:A,async loadDataPage(e,{type:t,opt:n,pageByLimit:r,pageByNumber:i}){const{getters:a,commit:o,dispatch:s}=e;t=a.normalizeType(t),a.typeRegistered(t)||o("registerType",t);const l=a["loadCounter"](t);try{if(r)n.url=r.next;else{if(!i)throw Error("loadDataPage requires either pageByLimit or pageByNumber");{const{url:e,page:t,pageSize:r}=i;n.url=(0,h.R_)(e,"page",`${t}`),n.url=(0,h.R_)(n.url,"pagesize",`${r}`)}}const c=await s("request",{opt:n,type:t}),u=a["loadCounter"](t);if(l!==u)return;o("loadAdd",{ctx:e,type:t,data:c.data}),r&&c.pagination?.next?s("loadDataPage",{type:t,opt:n,pageByLimit:{next:c.pagination.next}}):i&&i.page!==i.pages?s("loadDataPage",{type:t,opt:n,pageByNumber:{...i,page:i.page+1}}):(n.hasManualRefresh&&s("resource-fetch/updateManualRefreshIsLoading",!1,{root:!0}),n.namespaced?o("setHaveNamespace",{type:t,namespace:n.namespaced}):o("setHaveAll",{type:t}))}catch(c){return n.hasManualRefresh&&s("resource-fetch/updateManualRefreshIsLoading",!1,{root:!0}),Promise.reject(c)}},async findAll(e,{type:t,opt:n}){const{getters:r,commit:i,dispatch:a,rootGetters:o}=e;if(n=n||{},t=r.normalizeType(t),r.typeRegistered(t)||i("registerType",t),!n.force&&(r["haveAll"](t)||r["haveAllNamespace"](t,n.namespaced))){if(!1!==n.watch){const e={type:t,revision:"",namespace:n.watchNamespace||n.namespaced};a("watch",e)}return C(r,t,n)}let s=void 0===n.load?b:n.load;!1!==n.load&&n.load!==w||(s=w);const l=o["type-map/optionsFor"](t);v.log(`Find All: [${e.state.config.namespace}] ${t}`),n=n||{},n.isCollection=!0,n.url=r.urlFor(t,null,n),n.stream=!1!==n.stream&&s!==w,n.depaginate=(0,p.Ng)(l?.depaginate,{ctx:e,args:{type:t,opt:n}});let c,d,f=!1;n.incremental&&(i("incrementLoadCounter",t),n.hasManualRefresh&&a("resource-fetch/updateManualRefreshIsLoading",!0,{root:!0}),n.incremental.pageByNumber&&r.isSteveCacheUrl((0,h.qg)(n.url).path)?(d={url:n.url,page:1,pages:n.incremental.increments,pageSize:n.incremental.resourcesPerIncrement},n.url=(0,h.R_)(n.url,"pagesize",`${n.incremental.quickLoadCount}`)):(c={next:(0,h.R_)(n.url,"limit",`${n.incremental.resourcesPerIncrement}`)},n.url=(0,h.R_)(n.url,"limit",`${n.incremental.quickLoadCount}`)),f=!0,n.force&&i("forgetType",t));let m,g,E=!1,S=[];n.onData=function(n){if(E){if(S.push(n),S.length>10){const t=S;S=[],i("loadMulti",{ctx:e,data:t})}}else i("forgetAll",{type:t}),E=!0,g=n};try{!n.incremental&&n.hasManualRefresh&&a("resource-fetch/updateManualRefreshIsLoading",!0,{root:!0});const o=await a("request",{opt:n,type:t});if(E){S.length&&(i("loadMulti",{ctx:e,data:S}),S=[]),i("loadedAll",{type:t});const n=r.all(t);o.finishDeferred(n),m=g}else m=o}catch(x){return!n.incremental&&n.hasManualRefresh&&a("resource-fetch/updateManualRefreshIsLoading",!1,{root:!0}),Promise.reject(x)}if(s===w)return!n.incremental&&n.hasManualRefresh&&a("resource-fetch/updateManualRefreshIsLoading",!1,{root:!0}),m;if(m.data&&(s===_?i("loadMulti",{ctx:e,data:m.data}):s===y?i("loadMerge",{ctx:e,type:t,data:m.data,existing:!0}):i("loadAll",{ctx:e,type:t,data:m.data,revision:m.revision,skipHaveAll:f,namespace:n.namespaced,pagination:n.pagination?{request:n.pagination,result:{count:m.count,pages:m.pages,timestamp:(new Date).getTime()}}:void 0}),n.incremental&&a("loadDataPage",{type:t,opt:n,pageByLimit:c,pageByNumber:d})),!1!==n.watch){const e={type:t,revision:m.revision,namespace:n.watchNamespace||n.namespaced,force:!0===n.forceWatch};a("watch",e)}const k=C(r,t,n);return!n.incremental&&n.hasManualRefresh&&a("resource-fetch/updateManualRefreshIsLoading",!1,{root:!0}),u.A.gcUpdateLastAccessed(e,t),k},async findPage(e,{type:t,opt:n}){const{getters:r,commit:i,dispatch:a}=e;if(n=n||{},!n.pagination)return void v.error("Attempting to find a page for a resource but no pagination settings supplied",t);t=r.normalizeType(t),r.typeRegistered(t)||i("registerType",t);const o={type:t,namespace:n.watchNamespace||n.namespaced,force:!0===n.forceWatch,mode:f.g.RESOURCE_CHANGES};if(!n.transient&&!n.force&&r["havePaginatedPage"](t,n))return!1!==n.watch&&a("watch",o),C(r,t,n);let s;v.log(`Find Page: [${e.state.config.namespace}] ${t}. Page: ${n.pagination.page}. Revision: ${n.revision||"none"}. Size: ${n.pagination.pageSize}. Sort: ${n.pagination.sort?.map(e=>e.field).join(", ")}`),n=n||{},n.url=r.urlFor(t,null,n);try{n.hasManualRefresh&&a("resource-fetch/updateManualRefreshIsLoading",!0,{root:!0}),s=await a("request",{opt:n,type:t})}catch(c){return n.hasManualRefresh&&a("resource-fetch/updateManualRefreshIsLoading",!1,{root:!0}),Promise.reject(c)}const l=n.pagination?{request:{namespace:n.namespaced,pagination:n.pagination,includeAssociatedData:n.includeAssociatedData},result:{count:s.count,pages:s.pages||Math.ceil(s.count/(n.pagination.pageSize||Number.MAX_SAFE_INTEGER)),timestamp:(new Date).getTime(),revision:s.revision}}:void 0;return n.transient||i("loadPage",{ctx:e,type:t,data:s.data,pagination:l,revision:s.revision}),n.saveCountAs&&i("setSavedCount",{name:n.saveCountAs,count:s.count}),n.transient||!1===n.watch||a("watch",o),n.hasManualRefresh&&a("resource-fetch/updateManualRefreshIsLoading",!1,{root:!0}),u.A.gcUpdateLastAccessed(e,t),n.transient?{data:await a("createMany",s.data),pagination:l}:C(r,t,n)},async findLabelSelector(e,{type:t,matching:{namespace:n,labelSelector:r},opt:i}){const{getters:a,dispatch:o}=e;if(i=i||{},a["paginationEnabled"]?.()){if((0,g.Js)(r))throw new Error("labelSelector must not be empty when using findLabelSelector (avoid fetching all resources)");return o("findPage",{type:t,opt:{...i,namespaced:n,pagination:new m.YU({labelSelector:r}),transient:void 0!==i?.transient&&i.transient}})}const s=await o("findMatching",{type:t,selector:(0,g.Og)(r),opt:i,namespace:n});return i.transient?{data:s}:s},async findMatching(e,{type:t,selector:n,opt:r,namespace:i}){const{getters:a,commit:o,dispatch:s,rootGetters:l}=e;if(r=r||{},v.log(`Find Matching: [${e.state.config.namespace}] ${t}`,n),t=a.normalizeType(t),a.typeRegistered(t)||o("registerType",t),!0!==r.force&&a["haveSelector"](t,n))return a.all(t);if(!0!==r.force&&a["haveAll"](t))return a.matching(t,n,i);const c=l["type-map/optionsFor"](t);r=r||{},r.labelSelector=n,r.isCollection=!0,r.namespaced=i,r.url=a.urlFor(t,null,r),r.depaginate=(0,p.Ng)(c?.depaginate,{ctx:e,args:{type:t,opt:r}});const d=await s("request",{opt:r,type:t});return!1===r.load?d.data:(o("loadSelector",{ctx:e,type:t,entries:d.data,selector:n,revision:d.revision}),!1!==r.watch&&s("watch",{type:t,selector:n,revision:d.revision,force:!0===r.forceWatch}),u.A.gcUpdateLastAccessed(e,t),a.all(t))},async find(e,{type:t,id:n,opt:r}){if(!n)return void v.error("Attempting to find a resource with no id",t,n);const{getters:i,dispatch:a}=e;let o;if(r=r||{},t=(0,c.AZ)(t),v.log(`Find: [${e.state.config.namespace}] ${t} ${n}`),!0!==r.force&&(o=i.byId(t,n),o))return!1!==r.watch&&a("watch",T({type:t,id:n,opt:r,res:void 0})),o;r=r||{},r.url=i.urlFor(t,n,r);const s=await a("request",{opt:r,type:t});return r.transient||await a("load",{data:s,invalidatePageCache:r.invalidatePageCache}),r.transient||!1===r.watch||a("watch",T({type:t,id:n,opt:r,res:s})),u.A.gcUpdateLastAccessed(e,t),r.transient?await a("create",s):i.byId(t,n)},load(e,{data:t,existing:n,invalidatePageCache:r}){const{getters:i,commit:o}=e;let s=(0,c.AZ)(t.type);i.typeRegistered(s)||o("registerType",s),t.baseType&&t.baseType!==t.type&&(s=(0,c.AZ)(t.baseType),i.typeRegistered(s)||o("registerType",s)),s===a.yx&&(0,d.w)(t);const l=i.keyFieldForType(s),u=t?.[l]||n?.[l];if(u)return o("load",{ctx:e,data:t,existing:n,invalidatePageCache:r}),s===a.yx&&o("type-map/schemaChanged",null,{root:!0}),i["byId"](s,u);v.warn("Attempting to load a resource with no id",t,n)},loadMulti(e,t){const{commit:n}=e;n("loadMulti",{data:t,ctx:e})},batchChanges(e,t){const{commit:n}=e;n("batchChanges",{ctx:e,batch:t})},loadAll(e,{type:t,data:n}){const{commit:r}=e;r("loadAll",{ctx:e,type:t,data:n})},create(e,t){return(0,l.L8)(e,t)},createMany(e,t){return t.map(t=>(0,l.L8)(e,t))},async createPopulated(e,t){let n=null;const r=e.getters["schemaFor"](t.type);return r&&(r.fetchResourceFields&&await r.fetchResourceFields(),n=e.getters["defaultFor"](t.type,r)),i()(n,t),(0,l.L8)(e,n)},clone(e,{resource:t}={}){return(0,l.L8)(e,t.toJSON(),!0)},forgetType({commit:e,dispatch:t,state:n},r,i){n.started.filter(e=>i?i(e):e.type===r).forEach(e=>t("unwatch",e)),t("resetWatchBackOff",{type:r,compareWatches:i,resetStarted:!1}),e("forgetType",r)},promptRemove({commit:e,state:t},n){e("action-menu/togglePromptRemove",n,{root:!0})},promptModal({commit:e,state:t},n){e("action-menu/togglePromptModal",n,{root:!0})},resourceAction({getters:e,dispatch:t},{resource:n,actionName:r,body:i,opt:a}){throw new Error("Not Implemented")},collectionAction({getters:e,dispatch:t},{type:n,actionName:r,body:i,opt:a}){throw new Error("Not Implemented")},cleanForNew(e,t){throw new Error("Not Implemented")},createNamespace(e,t){throw new Error("Not Implemented")},cleanForDiff(e,t){throw new Error("Not Implemented")},cleanForDetail(e,t){return t},cleanForDownload(e,t){return t},async waitForSchema({getters:e,dispatch:t},{type:n}){let r=E,i=null;while(!i&&r>0)i=e["schemaFor"](n,!1,!1),i||(r===k&&v.warn(`Schema for ${n} not available... retrying...`),await new Promise(e=>setTimeout(e,1e3)),r--);0===r&&(v.warn(`Schema for ${n} still unavailable... loading schemas again...`),await t("loadSchemas",!0))},async waitForHaveAll({getters:e},{type:t,throwError:n=!1,attempts:r=S}){let i=r,a=null;while(!a&&i>0)a=e["haveAll"](t),a||(i===k&&v.warn(`wait for all of ${t} continuing...`),await new Promise(e=>setTimeout(e,1e3)),i--);if(0===i&&n)throw new Error(`Failed to wait for all of ${t}`)},incrementLoadCounter({commit:e},t){e("incrementLoadCounter",t)},garbageCollect(e,t){return u.A.garbageCollect(e,t)},gcResetStore({state:e}){u.A.gcResetStore(e)}}},50382:function(e,t,n){"use strict";n.d(t,{L8:function(){return a},vX:function(){return i}});var r=n(40408);const i="byType";function a(e,t,n=!1){if(t instanceof r.Ay)return t;const i=e.getters["classify"](t),a=new i(t,e,null,n);return a}},86794:function(e,t,n){"use strict";n.d(t,{d:function(){return m}});var r=n(35664),i=n(9262),a=n(38823),o=n(37648),s=n(40408),l=n(96730),c=n(79401),u=n(48074),d=n(90599),h=n(15092),p=n(3704),f=n(4364);const m=(e,t)=>(n,r,i)=>{i=i||{},n=t.normalizeType(n);let a,o=i.url;if(!o){if(a=t.schemaFor(n),!a)throw new Error(`Unknown schema for type: ${n}`);if(o=a.links.collection,!o)throw new Error(`You don't have permission to list this type: ${n}`);r&&(o+=`/${r}`)}if(!o.startsWith("/")&&!o.startsWith("http")){const t=e.config.baseUrl.replace(/\/$/,"");o=`${t}/${o}`}return o=t.urlOptions(o,i,a),o};function g(e,t,n){let i=n;const{name:a,count:o}=i;if(!a)throw new Error(`Resource type required to calc count: ${JSON.stringify(n)}`);if(!o){const e=t.schemaFor(a),n=t.all(r.i2)?.[0]?.counts||{},o=n[a];i={count:o?o.summary.count||0:null,byNamespace:o?o.namespaces:{},revision:o?o.revision:null,namespaced:e?.attributes?.namespaced}}const s=i?.namespaced&&!e.isAllNamespaces?Object.keys(e.activeNamespaceCache||{}):[];return v(i,s.length?s:null)}function v(e,t){if(!e.namespaced||!e.byNamespace||null===t||null===e.count)return e.count;let n=0;for(const r of t)n+=e.byNamespace[r]?.count||0;return n}t.A={all:(e,t,n)=>r=>(r=t.normalizeType(r),t.typeRegistered(r)||(f.warn(`All of ${r} is not loaded yet`),l.Ay.registerType(e,r)),d.A.gcUpdateLastAccessed({state:e,getters:t,rootState:n},r),e.types[r].list),matchingLabelSelector:(e,t,n)=>(e,n,r)=>{e=t.normalizeType(e);const i=(0,p.Og)(n),a=t["havePage"](e,i)?.request;return a?.namespace===r&&0===a?.pagination?.filters?.length&&a?.pagination.labelSelector&&i===(0,p.Og)(a?.pagination.labelSelector)||t["haveSelector"](e,i)?t.all(e):t["havePage"](e)||t["haveAll"](e)?t.matching(e,i,r):[]},matching:(e,t,n)=>(i,o,s,l={skipSelector:!1})=>{let c=t["all"](i);return s&&"string"===typeof s&&(c=i!==r.Sm||o?c.filter(e=>e.namespace===s):t["podsByNamespace"](s)),d.A.gcUpdateLastAccessed({state:e,getters:t,rootState:n},i),l.skipSelector?c:c.filter(e=>(0,a.cK)(e,o))},byId:(e,t,n)=>(r,i)=>{r=t.normalizeType(r);const a=e.types[r];if(a)return d.A.gcUpdateLastAccessed({state:e,getters:t,rootState:n},r),a.map.get(i)},brand:(e,t)=>{const n=t["byId"](r.Mc.SETTING,i.HG.BRAND);if(n?.value)return[r.qt.CSP,r.qt.FEDERAL,r.qt.RGS].includes(n.value)?r.qt.SUSE:n.value},pathExistsInSchema:(e,t)=>(e,t)=>!1,schema:(e,t)=>n=>{n=t.normalizeType(n);const i=e.types[r.yx],a=t.keyFieldForType(r.yx);return i.list.find(e=>{const r=t.normalizeType(e[a]);return r===n||r.endsWith(`.${n}`)})},schemaName:(e,t)=>n=>{n=t.normalizeType(n);const i=e.types[r.yx],a=t.keyFieldForType(r.yx),o=i.list.find(e=>{const r=t.normalizeType(e[a]);return r===n||r.endsWith(`.${n}`)});if(!o)return;const s=Array.isArray(o)?o:[o],l=s.map(e=>e[a]).sort((e,t)=>e.length-t.length);return l[0]?l[0]:n},schemaFor:(e,t)=>(n,i=!1,a=!0)=>{const o=e.types[r.yx];if(n=t.normalizeType(n),!o){if(a)throw new Error("Schemas aren't loaded yet");return null}const s=o.map.get(n);if(!s&&i){const e=t.schemaName(n);if(e)return t.schemaFor(e)}return s},defaultFor:(e,t)=>(e,n,r=null)=>{let i;if(r)if(n.requiresResourceFields)i=r[e]?.resourceFields||{};else{const n=t["schemaFor"](e);i=n?.resourceFields||{}}else r=n.schemaDefinitions||{},i=n.resourceFields||{};const a={};for(const s in i){const e=i[s];if(!e)continue;const l=(0,o.fs)(e.type),c=(0,o.Cd)("map",l,e),u=(0,o.Cd)("array",l,e),d=(0,o.Cd)("reference",l);c||"map"===l||"json"===l?a[s]=t.defaultFor(l,n,r):u||"array"===l?a[s]=[]:d?a[s]=void 0:o.xs.includes(l)?"undefined"===typeof e["default"]?a[s]=void 0:a[s]=e["default"]:a[s]=t.defaultFor(l,n,r)}return a},canGet:(e,t)=>e=>{const n=t.schemaFor(e);return n?.canGet},canList:(e,t)=>e=>{const n=t.schemaFor(e);return n?.canList},typeRegistered:(e,t)=>n=>(n=t.normalizeType(n),!!e.types[n]),typeEntry:(e,t)=>n=>(n=t.normalizeType(n),e.types[n]),haveAll:(e,t)=>n=>{n=t.normalizeType(n);const r=e.types[n];return r&&r.haveAll||!1},haveAllNamespace:(e,t)=>(n,r)=>{if(!r)return!1;n=t.normalizeType(n);const i=e.types[n];return!!i&&i.haveNamespace===r},havePaginatedPage:(e,t)=>(n,r)=>{if(!r.pagination)return!1;n=t.normalizeType(n);const i=e.types[n];if(i?.havePage){const{namespace:e,pagination:t}=i.havePage.request,{namespace:n,pagination:a}={namespace:r.namespaced,pagination:r.pagination};return i.havePage&&e===n&&h.A.paginationEqual(t,a)}return!1},haveNamespace:(e,t)=>n=>(n=t.normalizeType(n),e.types[n]?.haveNamespace||null),havePage:(e,t)=>n=>(n=t.normalizeType(n),e.types[n]?.havePage||null),haveSelector:(e,t)=>(n,r)=>{n=t.normalizeType(n);const i=e.types[n];return i&&i.haveSelector[r]||!1},normalizeType:()=>e=>(0,c.AZ)(e),keyFieldForType:()=>e=>(0,c.BZ)(e),urlFor:m,urlOptions:()=>(e,t,n)=>e,storeName:e=>e.config.namespace,defaultModel:()=>()=>{},classify:(e,t,n)=>t=>(0,u.$)(e.config.namespace,t?.type,t?.metadata?.name,n)||s.Ay,cleanResource:()=>(e,t)=>t,isClusterStore:e=>e.config.isClusterStore,loadCounter:(e,t)=>n=>(n=t.normalizeType(n),e.types[n]?e.types[n].loadCounter:0),gcIgnoreTypes:()=>({}),count:(e,t,n,r)=>e=>{const n=r["type-map/optionsFor"](e.name).subTypes||[];return n.length?n.reduce((e,n)=>e+g(r,t,{name:n}),0):g(r,t,e)},generation:(e,t)=>n=>{n=t.normalizeType(n);const r=e.types[n];if(r)return r.generation},paginationEnabled:(e,t,n,r)=>t=>{if(!t)return h.A.isSteveCacheEnabled({rootGetters:r});const i="object"===typeof t?t.id:t,a="object"===typeof t?t.context:void 0,o=e.config.namespace,s=i||a?{id:i,context:a}:null;return h.A.isEnabled({rootGetters:r,$extension:n.$extension},{store:o,resource:s})},isSteveUrl:e=>()=>!1,isSteveCacheUrl:e=>()=>!1,getSavedCount:e=>t=>e.savedCounts[t]}},25314:function(e,t,n){"use strict";n.d(t,{Ut:function(){return l},fs:function(){return s}});var r=n(63905),i=n(86794),a=n(96730),o=n(9274);const s={strict:!1,namespaced:!0,state(){return{...l()}},getters:{...i.A},mutations:{...a.Ay},actions:{...r.Ay}},l=(e,t,n)=>({config:{baseUrl:t,namespace:e,isClusterStore:n},types:{},savedCounts:{},$ctx:(0,o.markRaw)({})});var c=(e,t,n)=>{const r=t.namespace||"";return function(i){i.registerModule(r,e),i.commit(`${r}/applyConfig`,t);const a=i._modules.root._children[r],o=new Proxy(a.context,{get(e,t){return"rootGetters"===t?i.getters:e[t]}});n&&n(i,o)}};(Object.getOwnPropertyDescriptor(c,"name")||{}).writable||Object.defineProperty(c,"name",{value:"default",configurable:!0})},48074:function(e,t,n){"use strict";n.d(t,{$:function(){return l}});var r=n(79401);function i(e){return n(93197)(`./${e}`)}var a=n(4364);const o={};function s(e,t,n){const r=e[t];if(r)return r;if("undefined"!==typeof r)return null;try{const r=n.$extension.getDynamic("models",t);let a;if(a=r?"function"===typeof r?r():r:i(t),a?.default?.prototype)return e[t]=a.default,a.default}catch(o){"MODULE_NOT_FOUND"!==o?.code&&a.error("Find error",t,o)}return e[t]=null,null}function l(e,t,n,i){let a;t=(0,r.AZ)(t).replace(/\//g,"");const l=[`${e}/${t}`,t];for(const r of l)if(a=s(o,r,i),a)return a;return null}},96730:function(e,t,n){"use strict";n.d(t,{AJ:function(){return y},HC:function(){return h},Hh:function(){return m},TF:function(){return b},WI:function(){return g},aW:function(){return w},gh:function(){return _},zp:function(){return v}});var r=n(9274),i=n(68851),a=n(35664),o=n(79401),s=n(37417),l=n(50382),c=n(90599),u=n(4364);function d(e,t){let n=e.types[t];return n||(n={list:[],haveAll:!1,haveSelector:{},haveNamespace:void 0,havePage:void 0,revision:0,generation:0,loadCounter:0,map:new Map},e.types[t]=n),n}function h(e,t){const n={};for(const r of Object.keys(e))delete e[r],n[r]=!0;let i=!1;for(const r of Object.keys(t))i||n[r]||(i=!0),e[r]=t[r];return i?(0,r.reactive)(e):e}function p(e,t,n){return t=n.cleanResource(e,t),h(e,t)}function f(e,t){const{getters:n}=e,r=(0,o.AZ)(t),i=n.keyFieldForType(r),a=e.rootGetters["type-map/optionsFor"](r);return{type:r,keyField:i,opts:a}}function m(e,{data:t,ctx:n,existing:c,cachedArgs:u,invalidatePageCache:h=!0}){const{getters:m}=n,{type:g,keyField:v,opts:b}=u||f(n,t.type);let y=g;const _=b?.limit;y===a.yx&&(0,s.w)(t);const w=t[v];let E=d(e,y);E.generation++;let S=E.map.get(w);const k=!!S;if(c&&!c.id){const e=p(c,t,m);S=k?p(S,e,m):e}else if(k){const e=c&&S!==c?p(c,t,m):t;S=p(S,e,m)}else S=(0,r.reactive)((0,l.L8)(n,t));if(k||(E.list.push(S),E.map.set(w,S)),_&&E.list.length>_){const e=E.list.shift();E.map.delete(e.id)}return t.baseType&&(y=(0,o.AZ)(t.baseType),E=e.types[y],E&&((0,i.PG)(E.list,S),E.map.set(w,S))),E.havePage=!h&&E.havePage,S}function g(e,t){const n=e.types[t];if(n)return n.haveAll=!1,n.haveSelector={},n.haveNamespace=void 0,n.havePage=void 0,n.revision=0,n.generation=0,(0,i.IU)(n.list),n.map.clear(),delete e.types[t],c.A.gcResetType(e,t),!0}function v(e,t){u.log("Reset store: ",e.config.namespace);for(const n of Object.keys(e.types))t(`${e.config.namespace}/forgetType`,n);c.A.gcResetStore(e)}function b(e,t,n){if(t){let r=(0,o.AZ)(t.type);const a=n[`${e.config.namespace}/keyFieldForType`](r),s=t[a];let l=e.types[r];l&&((0,i.Gj)(l.list,t),l.map.delete(s)),t.baseType&&(r=(0,o.AZ)(t.baseType),l=e.types[r],l&&((0,i.Gj)(l.list,t),l.map.delete(s)))}}function y(e,{ctx:t,batch:n}){const i=Object.keys(n),c={};i.forEach(e=>{c[e]=n[e];const r=t.rootGetters["type-map/optionsFor"](e);if(r?.alias?.length>0){const t=r?.alias||[];t.forEach(t=>{c[t]={};for(const[r,i]of Object.entries(n[e]))c[t][r]={...i,type:t}})}});const u=Object.keys(c);u.forEach(n=>{const i=(0,o.AZ)("counts"===n?a.i2:n),u=(0,o.BZ)(i),h=d(e,i),f={};h.list.forEach((e,t)=>{f[e[u]]=t});const m=[];Object.keys(c[i]).forEach(e=>{const n=f[e],o=c[i][e];if(0===Object.keys(o).length&&void 0!==n)h.map.delete(e),m.push(n);else if(0===Object.keys(o).length);else{i===a.yx&&(0,s.w)(o);const c=(0,r.reactive)((0,l.L8)(t,o));void 0===n?(h.list.push(c),h.map.set(e,c),f[c[u]]=h.list.length-1):p(h.list[n],o,t.getters)}}),m.sort().forEach((e,t)=>{h.list.splice(e-t,1)});const g=t.rootGetters["type-map/optionsFor"](n),v=g?.limit;if(v&&h.list.length>v){const e=h.list.shift();h.map.delete(e.id)}h.generation++})}function _(e,{type:t,data:n,ctx:a,skipHaveAll:o,namespace:s,revision:c}){const{getters:u}=a;if(!n)return;const h=a.rootGetters["type-map/optionsFor"](t),p=h?.limit;p&&(n=n.slice(-p));const f=u.keyFieldForType(t),m=(0,r.reactive)(n.map(e=>(0,l.L8)(a,e))),g=d(e,t);(0,i.IU)(g.list),g.map.clear(),g.revision=c||0,g.generation++,(0,i.cn)(g.list,m);for(let r=0;r<m.length;r++)g.map.set(m[r][f],m[r]);return o||(s?(g.havePage=!1,g.haveNamespace=s,g.haveAll=!1):(g.havePage=!1,g.haveNamespace=!1,g.haveAll=!0)),m}function w(e,{type:t,data:n,ctx:r}){const{getters:i}=r,a=i.keyFieldForType(t),o=f(r,n?.[0]?.type);n.forEach(n=>{const i=e.types[t].map.get(n[a]);m(e,{data:n,ctx:r,existing:i,cachedArgs:o})})}t.Ay={registerType:d,load:m,applyConfig(e,t){e.config||(e.config={}),Object.assign(e.config,t)},loadMulti(e,{data:t,ctx:n}){for(const r of t)m(e,{data:r,ctx:n})},loadSelector(e,{type:t,entries:n,ctx:a,selector:o,revision:s}){const c=a.getters.keyFieldForType(t),u=d(e,t),h=(0,r.reactive)(n.map(e=>(0,l.L8)(a,e)));(0,i.IU)(u.list),u.map.clear(),u.generation++,(0,i.cn)(u.list,h);for(let r=0;r<h.length;r++)u.map.set(h[r][c],h[r]);u.havePage=void 0,u.haveNamespace=void 0,u.haveSelector={[o]:!0},u.haveAll=void 0,u.revision=s||0},loadAll:_,batchChanges:y,loadMerge(e,{type:t,data:n,ctx:r}){const{commit:i,getters:a}=r,o=a.keyFieldForType(t),s=e.types[t],l=f(r,n?.[0].type);n.forEach(n=>{const i=e.types[t].map.get(n[o]);m(e,{data:n,ctx:r,existing:i,cachedArgs:l})}),s.list.forEach(e=>{n.find(t=>t.id===e.id)||i("remove",e)})},loadAdd:w,loadPage(e,{type:t,data:n,ctx:i,pagination:a,revision:o}){if(!n)return;const s=i.getters.keyFieldForType(t),c={},u=(0,r.reactive)(n.map(e=>(c[e[s]]=!0,(0,l.L8)(i,e)))),h=d(e,t);h.generation++;const f=new Map(h.list.map(e=>[e[s],e])),m=u.map(e=>{const t=f.get(e[s]);return t?(p(t,e,i.getters),t):e});h.list.splice(0,h.list.length,...m),h.map.forEach((e,t)=>{c[e[s]]||h.map.delete(t)});for(let r=0;r<u.length;r++){const e=h.map.get(u[r][s]),t=u[r];e?p(e,t,i.getters):h.map.set(t[s],t)}return h.havePage=a,h.haveNamespace=void 0,h.haveAll=void 0,h.revision=o,u},forgetAll(e,{type:t}){const n=d(e,t);(0,i.IU)(n.list),n.map.clear(),n.generation++},setHaveAll(e,{type:t}){const n=d(e,t);n.haveAll=!0},setHaveNamespace(e,{type:t,namespace:n}){const r=d(e,t);r.haveNamespace=n},setSavedCount(e,{name:t,count:n}){e.savedCounts[t]=n},loadedAll(e,{type:t}){const n=d(e,t);n.generation++,n.haveAll=!0},remove(e,t){t&&b(e,t,this.getters)},reset(e){v(e,this.commit)},forgetType:g,incrementLoadCounter(e,t){const n=e.types[t];n&&n.loadCounter++}}},79401:function(e,t,n){"use strict";n.d(t,{AZ:function(){return l},BZ:function(){return s},Rq:function(){return c}});var r=n(35664),i=n(76978),a=n(4364);const o={[r.yx]:"_id",default:"id"};function s(e){return o[e]||o["default"]}function l(e){return e=(e?.type||e||"").toLowerCase(),e}async function c(e,t,n,r,o,s=e=>e.toJSON()){const l=await r.dispatch(`${o}/cleanForDiff`,s(e),{root:!0}),c=await r.dispatch(`${o}/cleanForDiff`,s(t),{root:!0}),u=await r.dispatch(`${o}/cleanForDiff`,s(n),{root:!0}),d=(0,i.no)(l,u),h=(0,i.no)(l,c),p=(0,i.MA)(d,h);if(a.log("Background Change",d),a.log("User Change",h),a.log("Conflicts",p),t.metadata.resourceVersion=n.metadata.resourceVersion,(0,i.TJ)(t,d),p.length){const e=[r.getters["i18n/t"]("validation.conflict",{fields:p.join(", "),fieldCount:p.length})];return e}return!1}},40408:function(e,t,n){"use strict";n.d(t,{qE:function(){return ae},xj:function(){return pe},jv:function(){return de},uU:function(){return me},Ay:function(){return we},rv:function(){return ye},hb:function(){return he},aB:function(){return ve},ch:function(){return ge}});var r=n(2841),i=n(83297),a=n(2722),o=n.n(a);const s="rancher-manager",l={UI:"uiVersion",EXTENSIONS_API_MISSING:"extensionsApiVersionMissing",EXTENSIONS_API:"extensionsApiVersion",KUBE:"kubeVersion",HOST:"host",PRIME_ONLY:"primeOnly"};l.UI,l.EXTENSIONS_API_MISSING,l.EXTENSIONS_API,l.KUBE,l.HOST,l.PRIME_ONLY;function c(e){let t=o().coerce(e)?.version;const n=t?.split(".");return e.includes("-")&&3===n?.length&&(t=`${n[0]}.${n[1]}.999`),t}var u=n(14220),d=n(91462),h=n(68851),p=n(3514),f=n.n(p);function m(e,t,n,r){const i=r.includes("verifyLocal"),a=e.localOutputRefs||[],o=e.globalOutputRefs||[];i?f()(a)&&f()(o)&&n.push(t["i18n/t"]("validation.flowOutput.both")):f()(o)&&n.push(t["i18n/t"]("validation.flowOutput.global"))}function g(e,t,n,r){f()(e)||f()(e.api_key)&&n.push(t["i18n/t"]("validation.output.logdna.apiKey"))}var v=n(96047);function b(e,t,n,r){const{ports:i,type:a}=e;return"ExternalName"===a?n:f()(i)?(n.push(t["i18n/t"]("validation.required",{key:"Port Rules"})),n):(i.forEach((e,r,i)=>{const{name:a,nodePort:o,port:s,targetPort:l}=e,c=r+1;if(i.length>1&&f()(a)&&n.push(t["i18n/t"]("validation.service.ports.name.required",{position:c})),!f()(a)){const e=(0,v.um)(a,"name",t,void 0,n);f()(e)||(n=n.length&&n.length>0?[...n,...e]:e)}if(o){const e=parseInt(o,10);isNaN(e)&&n.push(t["i18n/t"]("validation.service.ports.nodePort.requiredInt",{position:c}))}if(s){const e=parseInt(s,10);isNaN(e)&&n.push(t["i18n/t"]("validation.service.ports.port.requiredInt",{position:c}))}else n.push(t["i18n/t"]("validation.service.ports.port.required",{position:c}));if(l){const e=t["i18n/t"]("validation.service.ports.targetPort.ianaAt",{position:c}),r=parseInt(l,10),i=new RegExp("^\\d+$"),a=i.test(l);if(a)(r<1||r>65535)&&n.push(t["i18n/t"]("validation.service.ports.targetPort.between",{position:c}));else{const r={ianaServiceName:!0,maxLength:15,validChars:"A-Za-z0-9-"},i=(0,v.um)(l,e,t,r,n);f()(i)||n.push(...i)}}else n.push(t["i18n/t"]("validation.service.ports.targetPort.required",{position:c}))}),n)}function y(e,t,n,r){const i=["ClusterIP","NodePort","LoadBalancer"],a=e?.type;return i.includes(a),n}function _(e,t,n,r){if("ExternalName"===e?.type)if(f()(e?.externalName))n.push(t["i18n/t"]("validation.service.externalName.none"));else{const r=(0,v.cO)(e.externalName,"ExternalName",t,void 0,n);f()(r)||(n=n.length&&n.length>0?[...n,...r]:r)}return n}var w=n(52103),E=n.n(w);function S(e,t,n,r){return f()(e?.groups)&&n.push(t["i18n/t"]("validation.prometheusRule.groups.required")),n}function k(e=[],t,n,r){return e.forEach((e,r)=>{const i=r+1;f()(e?.name)&&n.push(t["i18n/t"]("validation.prometheusRule.groups.valid.name",{index:i})),f()(e?.rules)?n.push(t["i18n/t"]("validation.prometheusRule.groups.valid.singleEntry",{index:i})):e.rules.forEach((e,r)=>{const a=r+1;E()(e,"alert")&&f()(e?.alert)?n.push(t["i18n/t"]("validation.prometheusRule.groups.valid.rule.alertName",{groupIndex:i,ruleIndex:a})):E()(e,"record")&&f()(e?.record)&&n.push(t["i18n/t"]("validation.prometheusRule.groups.valid.rule.recordName",{groupIndex:i,ruleIndex:a})),(E()(e,"expr")&&f()(e.expr)||!E()(e,"expr"))&&n.push(t["i18n/t"]("validation.prometheusRule.groups.valid.rule.expr",{groupIndex:i,ruleIndex:a})),E()(e,"alert")&&(E()(e,"labels")&&f()(e.labels)||!E()(e,"labels"))&&n.push(t["i18n/t"]("validation.prometheusRule.groups.valid.rule.labels",{groupIndex:i,ruleIndex:a}))})}),n}function x(e,t,n,r){f()(e?.match)&&f()(e?.["match_re"])&&n.push(t["i18n/t"]("validation.monitoring.route.match"))}function A(e,t,n,r,i){/^\d+[hms]$/.test(e)||n.push(t["i18n/t"]("validation.monitoring.route.interval",{key:i}))}var C=n(76978);function T(e,t,n){let r;r=e.jobTemplate?(0,C.Jt)(e,"jobTemplate.spec.template.spec"):(0,C.Jt)(e,"template.spec"),r.containers&&r.containers.length?r.containers.forEach(e=>{e&&!e.image&&n.push(t["i18n/t"]("workload.validation.containerImage",{name:e.name}))}):n.push(t["i18n/t"]("validation.required",{key:t["i18n/t"]("workload.container.titles.containers")}))}var N=n(70500);function R(e,t,n){if(!e)return;const{podAffinity:r,podAntiAffinity:i}=e;if(r&&!(0,C.Im)(r)){const{preferredDuringSchedulingIgnoredDuringExecution:e=[],requiredDuringSchedulingIgnoredDuringExecution:i=[]}=r;e.forEach((e,r)=>{const i={index:r,group:t["i18n/t"]("validation.podAffinity.affinityTitle"),rules:t["i18n/t"]("validation.podAffinity.preferredDuringSchedulingIgnoredDuringExecution")};O(e,i,t,n);const{podAffinityTerm:a={}}=e;I(a,i,t,n),L(a,i,t,n)}),i.forEach((e,r)=>{const i={index:r,group:t["i18n/t"]("validation.podAffinity.affinityTitle"),rules:t["i18n/t"]("validation.podAffinity.requiredDuringSchedulingIgnoredDuringExecution")};I(e,i,t,n),L(e,i,t,n)})}if(i&&!(0,C.Im)(i)){const{preferredDuringSchedulingIgnoredDuringExecution:e=[],requiredDuringSchedulingIgnoredDuringExecution:r=[]}=i;e.forEach((e,r)=>{const i={index:r,group:t["i18n/t"]("validation.podAffinity.antiAffinityTitle"),rules:t["i18n/t"]("validation.podAffinity.preferredDuringSchedulingIgnoredDuringExecution")};O(e,i,t,n);const{podAffinityTerm:a={}}=e;I(a,i,t,n),L(a,i,t,n)}),r.forEach((e,r)=>{const i={index:r,group:t["i18n/t"]("validation.podAffinity.antiAffinityTitle"),rules:t["i18n/t"]("validation.podAffinity.requiredDuringSchedulingIgnoredDuringExecution")};I(e,i,t,n),L(e,i,t,n)})}}function O(e,t,n,r){const{weight:i=1}=e;("number"!==typeof i||i>100||i<1)&&r.push(n["i18n/t"]("validation.number.between",{key:n["i18n/t"]("workload.scheduling.matchExpressions.weight"),min:1,max:100,...t}))}function I(e,t,n,r){const{topologyKey:i}=e,a=RegExp("([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]");i&&a.test(i)||r.push(n["i18n/t"]("validation.podAffinity.topologyKey",t))}function L(e,t,n,r){const i=["In","NotIn","Exists","DoesNotExist"],{labelSelector:a}=e;if(a&&!(0,C.Im)(a)){const{matchExpressions:e=[]}=a;e.forEach((e,a)=>{const{operator:o,values:s}=e;i.includes(o)||r.push(n["i18n/t"]("validation.podAffinity.matchExpressions.operator",t)),"In"===o||"NotIn"===o?s&&s.length||r.push(n["i18n/t"]("validation.podAffinity.matchExpressions.valuesMustBeDefined",t)):s&&s.length&&r.push(n["i18n/t"]("validation.podAffinity.matchExpressions.valueMustBeEmpty",t))})}}var D=n(35664);function P(e=[],t,n,r=[]){e.some(e=>f()(e.verbs))&&n.push(t["i18n/t"]("validation.roleTemplate.roleTemplateRules.missingVerb")),e.some(e=>e.resources?.length&&e.nonResourceURLs?.length)&&n.push(t["i18n/t"]("validation.roleTemplate.roleTemplateRules.noResourceAndNonResource")),r[0]===D.lk.ROLE?(e.some(e=>f()(e.resources))&&n.push(t["i18n/t"]("validation.roleTemplate.roleTemplateRules.missingResource")),e.some(e=>f()(e.apiGroups))&&n.push(t["i18n/t"]("validation.roleTemplate.roleTemplateRules.missingApiGroup"))):e.some(e=>e.resources?.length&&e.nonResourceUrls?.length)&&n.push(t["i18n/t"]("validation.roleTemplate.roleTemplateRules.noResourceAndNonResource")),e.some(e=>f()(e.resources)&&f()(e.nonResourceURLs))&&n.push(t["i18n/t"]("validation.roleTemplate.roleTemplateRules.missingOneResource"))}function M(e,t,n,r,i){const a="true"===r[0];return a&&(e||"").match(/^(c-.{5}|local)$/i)&&n.push(t["i18n/t"]("validation.cluster.name")),n}var B={clusterName:M,clusterIp:y,externalName:_,flowOutput:m,groupsAreValid:k,logdna:g,ruleGroups:S,interval:A,servicePort:b,matching:x,containerImages:T,cronSchedule:N.u,podAffinity:R,roleTemplateRules:P},F=n(6198),$=n(88339),U=n(74302),j=n(92043),V=n(71274),K=n(23330),G=n(20246),H=n.n(G),z=n(16238),q=n.n(z),X=(n(68371),n(93655)),W=n.n(X),Y=n(8138),Q=n.n(Y),J=n(9274),Z=n(79401),ee=n(31915),te=n(25659),ne=n(38823),re=n(6855),ie=n(4364);const ae=["dnsLabel","dnsLabelRestricted","hostname"],oe={disabled:"inactive",notapplied:"Not Applied",notready:"Not Ready",waitapplied:"Wait Applied",outofsync:"Out of Sync","in-progress":"In Progress",gitupdating:"Git Updating",errapplied:"Err Applied",waitcheckin:"Wait Check-In",off:"Disabled",waitingforinfrastructure:"Waiting for Infra",waitingfornoderef:"Waiting for Node Ref"},se="warning",le="x",ce=1e3,ue=3e4,de={IN_USE:"in-use",IN_PROGRESS:"in-progress",PENDING_ROLLBACK:"pending-rollback",PENDING_UPGRADE:"pending-upgrade",ABORTED:"aborted",ACTIVATING:"activating",ACTIVE:"active",AVAILABLE:"available",BACKED_UP:"backedup",BOUND:"bound",BUILDING:"building",COMPLETED:"completed",CORDONED:"cordoned",COUNT:"count",CREATED:"created",CREATING:"creating",DEACTIVATING:"deactivating",DEGRADED:"degraded",DENIED:"denied",DEPLOYED:"deployed",DEPLOYING:"deploying",DISABLED:"disabled",DISCONNECTED:"disconnected",DRAINED:"drained",DRAINING:"draining",ENABLED:"enabled",ERR_APPLIED:"errapplied",ERROR:"error",ERRORING:"erroring",ERRORS:"errors",EXPIRED:"expired",EXPIRING:"expiring",FAIL:"fail",FAILED:"failed",HEALTHY:"healthy",INACTIVE:"inactive",INFO:"info",INITIALIZING:"initializing",INPROGRESS:"inprogress",LOCKED:"locked",MIGRATING:"migrating",MISSING:"missing",MODIFIED:"modified",NOT_APPLICABLE:"notApplicable",NOT_APLLIED:"notapplied",NOT_READY:"notready",OFF:"off",ORPHANED:"orphaned",OTHER:"other",OUT_OF_SYNC:"outofsync",ON_GOING:"on-going",PASS:"pass",PASSED:"passed",PAUSED:"paused",PENDING:"pending",PROVISIONING:"provisioning",PROVISIONED:"provisioned",PURGED:"purged",PURGING:"purging",READY:"ready",RECONNECTING:"reconnecting",REGISTERING:"registering",REINITIALIZING:"reinitializing",RELEASED:"released",REMOVED:"removed",REMOVING:"removing",REQUESTED:"requested",RESTARTING:"restarting",RESTORING:"restoring",RESIZING:"resizing",RUNNING:"running",SKIP:"skip",SKIPPED:"skipped",STARTING:"starting",STOPPED:"stopped",STOPPING:"stopping",SUCCEEDED:"succeeded",SUCCESS:"success",SUCCESSFUL:"successful",SUPERSEDED:"superseded",SUSPENDED:"suspended",UNAVAILABLE:"unavailable",UNHEALTHY:"unhealthy",UNINSTALLED:"uninstalled",UNINSTALLING:"uninstalling",UNKNOWN:"unknown",UNTRIGGERED:"untriggered",UPDATING:"updating",WAIT_APPLIED:"waitapplied",WAIT_CHECKIN:"waitcheckin",WAITING:"waiting",WARNING:"warning"};function he(e){return Object.values(de).find(t=>t.toLowerCase()===e.toLocaleLowerCase())}const pe={[de.IN_USE]:{color:"success",icon:"dot-open",label:"In Use",compoundIcon:"checkmark"},[de.IN_PROGRESS]:{color:"info",icon:"tag",label:"In Progress",compoundIcon:"info"},[de.PENDING_ROLLBACK]:{color:"info",icon:"dot-half",label:"Pending Rollback",compoundIcon:"info"},[de.PENDING_UPGRADE]:{color:"info",icon:"dot-half",label:"Pending Update",compoundIcon:"info"},[de.ABORTED]:{color:"warning",icon:"error",label:"Aborted",compoundIcon:"warning"},[de.ACTIVATING]:{color:"info",icon:"tag",label:"Activating",compoundIcon:"info"},[de.ACTIVE]:{color:"success",icon:"dot-open",label:"Active",compoundIcon:"checkmark"},[de.AVAILABLE]:{color:"success",icon:"dot-open",label:"Available",compoundIcon:"checkmark"},[de.BACKED_UP]:{color:"success",icon:"backup",label:"Backed Up",compoundIcon:"checkmark"},[de.BOUND]:{color:"success",icon:"dot",label:"Bound",compoundIcon:"checkmark"},[de.BUILDING]:{color:"success",icon:"dot-open",label:"Building",compoundIcon:"checkmark"},[de.COMPLETED]:{color:"success",icon:"dot",label:"Completed",compoundIcon:"checkmark"},[de.CORDONED]:{color:"info",icon:"tag",label:"Cordoned",compoundIcon:"info"},[de.COUNT]:{color:"success",icon:"dot-open",label:"Count",compoundIcon:"checkmark"},[de.CREATED]:{color:"info",icon:"tag",label:"Created",compoundIcon:"info"},[de.CREATING]:{color:"info",icon:"tag",label:"Creating",compoundIcon:"info"},[de.DEACTIVATING]:{color:"info",icon:"adjust",label:"Deactivating",compoundIcon:"info"},[de.DEGRADED]:{color:"warning",icon:"error",label:"Degraded",compoundIcon:"warning"},[de.DENIED]:{color:"error",icon:"adjust",label:"Denied",compoundIcon:"error"},[de.DEPLOYED]:{color:"success",icon:"dot-open",label:"Deployed",compoundIcon:"checkmark"},[de.DISABLED]:{color:"warning",icon:"error",label:"Disabled",compoundIcon:"warning"},[de.DISCONNECTED]:{color:"warning",icon:"error",label:"Disconnected",compoundIcon:"warning"},[de.DRAINED]:{color:"info",icon:"tag",label:"Drained",compoundIcon:"info"},[de.DRAINING]:{color:"warning",icon:"tag",label:"Draining",compoundIcon:"warning"},[de.ENABLED]:{color:"success",icon:"dot-open",label:"Enabled",compoundIcon:"checkmark"},[de.ERR_APPLIED]:{color:"error",icon:"error",label:"Error Applied",compoundIcon:"error"},[de.ERROR]:{color:"error",icon:"error",label:"Error",compoundIcon:"error"},[de.ERRORING]:{color:"error",icon:"error",label:"Erroring",compoundIcon:"error"},[de.ERRORS]:{color:"error",icon:"error",label:"Errors",compoundIcon:"error"},[de.EXPIRED]:{color:"error",icon:"error",label:"Expired",compoundIcon:"warning"},[de.EXPIRING]:{color:"warning",icon:"error",label:"Expiring",compoundIcon:"error"},[de.FAIL]:{color:"error",icon:"error",label:"Fail",compoundIcon:"error"},[de.FAILED]:{color:"error",icon:"error",label:"Failed",compoundIcon:"error"},[de.HEALTHY]:{color:"success",icon:"dot-open",label:"Healthy",compoundIcon:"checkmark"},[de.INACTIVE]:{color:"error",icon:"dot",label:"Inactive",compoundIcon:"error"},[de.INITIALIZING]:{color:"warning",icon:"error",label:"Initializing",compoundIcon:"warning"},[de.INPROGRESS]:{color:"info",icon:"spinner",label:"In Progress",compoundIcon:"info"},[de.INFO]:{color:"info",icon:"info",label:"Info",compoundIcon:"info"},[de.LOCKED]:{color:"warning",icon:"adjust",label:"Locked",compoundIcon:"warning"},[de.MIGRATING]:{color:"info",icon:"info",label:"Migrated",compoundIcon:"info"},[de.MISSING]:{color:"warning",icon:"adjust",label:"Missing",compoundIcon:"warning"},[de.MODIFIED]:{color:"warning",icon:"edit",label:"Modified",compoundIcon:"warning"},[de.NOT_APPLICABLE]:{color:"warning",icon:"tag",label:"Not Applicable",compoundIcon:"warning"},[de.NOT_APLLIED]:{color:"warning",icon:"tag",label:"Not Applied",compoundIcon:"warning"},[de.NOT_READY]:{color:"warning",icon:"tag",label:"Not Ready",compoundIcon:"warning"},[de.OFF]:{color:"darker",icon:"error",label:"Off"},[de.ON_GOING]:{color:"info",icon:"info",label:"Info",compoundIcon:"info"},[de.ORPHANED]:{color:"warning",icon:"tag",label:"Orphaned",compoundIcon:"warning"},[de.OTHER]:{color:"info",icon:"info",label:"Other",compoundIcon:"info"},[de.OUT_OF_SYNC]:{color:"warning",icon:"tag",label:"Out Of Sync",compoundIcon:"warning"},[de.PASS]:{color:"success",icon:"dot-dotfill",label:"Pass",compoundIcon:"checkmark"},[de.PASSED]:{color:"success",icon:"dot-dotfill",label:"Passed",compoundIcon:"checkmark"},[de.PAUSED]:{color:"info",icon:"info",label:"Paused",compoundIcon:"info"},[de.PENDING]:{color:"info",icon:"tag",label:"Pending",compoundIcon:"info"},[de.PROVISIONING]:{color:"info",icon:"dot",label:"Provisioning",compoundIcon:"info"},[de.PROVISIONED]:{color:"success",icon:"dot",label:"Provisioned",compoundIcon:"checkmark"},[de.PURGED]:{color:"error",icon:"purged",label:"Purged",compoundIcon:"error"},[de.PURGING]:{color:"info",icon:"purged",label:"Purging",compoundIcon:"info"},[de.READY]:{color:"success",icon:"dot-open",label:"Ready",compoundIcon:"checkmark"},[de.RECONNECTING]:{color:"error",icon:"error",label:"Reconnecting",compoundIcon:"error"},[de.REGISTERING]:{color:"info",icon:"tag",label:"Registering",compoundIcon:"info"},[de.REINITIALIZING]:{color:"warning",icon:"error",label:"Reinitializing",compoundIcon:"warning"},[de.RELEASED]:{color:"warning",icon:"error",label:"Released",compoundIcon:"warning"},[de.REMOVED]:{color:"error",icon:"trash",label:"Removed",compoundIcon:"error"},[de.REMOVING]:{color:"info",icon:"trash",label:"Removing",compoundIcon:"info"},[de.REQUESTED]:{color:"info",icon:"tag",label:"Requested",compoundIcon:"info"},[de.RESTARTING]:{color:"info",icon:"adjust",label:"Restarting",compoundIcon:"info"},[de.RESTORING]:{color:"info",icon:"medicalcross",label:"Restoring",compoundIcon:"info"},[de.RESIZING]:{color:"warning",icon:"dot",label:"Resizing",compoundIcon:"warning"},[de.RUNNING]:{color:"success",icon:"dot-open",label:"Running",compoundIcon:"checkmark"},[de.SKIP]:{color:"info",icon:"dot-open",label:"Skip",compoundIcon:"info"},[de.SKIPPED]:{color:"info",icon:"dot-open",label:"Skipped",compoundIcon:"info"},[de.STARTING]:{color:"info",icon:"adjust",label:"Starting",compoundIcon:"info"},[de.STOPPED]:{color:"error",icon:"dot",label:"Stopped",compoundIcon:"error"},[de.STOPPING]:{color:"info",icon:"adjust",label:"Stopping",compoundIcon:"info"},[de.SUCCEEDED]:{color:"success",icon:"dot-dotfill",label:"Succeeded",compoundIcon:"checkmark"},[de.SUCCESS]:{color:"success",icon:"dot-open",label:"Success",compoundIcon:"checkmark"},[de.SUCCESSFUL]:{color:"success",icon:"dot-open",label:"Successful"},[de.SUPERSEDED]:{color:"info",icon:"dot-open",label:"Superseded",compoundIcon:"info"},[de.SUSPENDED]:{color:"info",icon:"pause",label:"Suspended",compoundIcon:"info"},[de.UNAVAILABLE]:{color:"error",icon:"error",label:"Unavailable",compoundIcon:"error"},[de.UNHEALTHY]:{color:"error",icon:"error",label:"Unhealthy",compoundIcon:"error"},[de.UNINSTALLED]:{color:"info",icon:"trash",label:"Uninstalled",compoundIcon:"info"},[de.UNINSTALLING]:{color:"info",icon:"trash",label:"Uninstalling",compoundIcon:"info"},[de.UNKNOWN]:{color:"warning",icon:"x",label:"Unknown",compoundIcon:"warning"},[de.UNTRIGGERED]:{color:"success",icon:"tag",label:"Untriggered",compoundIcon:"checkmark"},[de.UPDATING]:{color:"warning",icon:"tag",label:"Updating",compoundIcon:"warning"},[de.WAIT_APPLIED]:{color:"info",icon:"tag",label:"Wait Applied",compoundIcon:"info"},[de.WAIT_CHECKIN]:{color:"warning",icon:"tag",label:"Wait Checkin",compoundIcon:"warning"},[de.WAITING]:{color:"info",icon:"tag",label:"Waiting",compoundIcon:"info"},[de.WARNING]:{color:"warning",icon:"error",label:"Warning",compoundIcon:"warning"},[de.DEPLOYING]:{color:"info",icon:"info",label:"Deploying",compoundIcon:"info"}};const fe={error:1,warning:2,info:3,success:4,ready:5,notready:6,other:7};function me(e,t,n){if(t)return"text-error";if(n)return"text-info";const r=(e||"active").toLowerCase();let i;return pe[r]&&pe[r].color&&(i=_e.call(this,pe[r].color)),i||(i=se),`text-${i}`}function ge(e){const t=(e||"active").toLowerCase();return oe[t]?oe[t]:t.split(/-/).map(j.TF).join("-")}function ve(e){const t=[de.ERROR,de.FAILED,de.WARNING,de.MODIFIED,de.WAIT_APPLIED,de.ORPHANED,de.MISSING,de.UNKNOWN,de.NOT_READY,de.READY],n=Object.keys(e).filter(n=>e[n]>0&&t.includes(n.toLowerCase())).sort((e,n)=>t.indexOf(e.toLowerCase())-t.indexOf(n.toLowerCase()));return n[0]?n[0]:de.UNKNOWN}function be(e,t){return e=e.replace(/^(text|bg)-/,""),`${fe[e]||fe["other"]} ${t}`}function ye(e){return!!e&&("ready"===e?.type?.toLowerCase()&&"waiting"===e?.reason?.toLowerCase())}function _e(e){return W()(e)?e(this):e}class we{constructor(e,t={},n=null,r=!1){for(const i in e)this[i]=e[i];Object.defineProperty(this,"$ctx",{value:(0,J.markRaw)(t),enumerable:!1}),n&&Object.defineProperty(this,"__rehydrate",{value:n,enumerable:!0,configurable:!0}),r&&Object.defineProperty(this,"__clone",{value:!0,enumerable:!0,configurable:!0,writable:!0})}get $getters(){return this.$ctx.getters}get $rootGetters(){return this.$ctx.rootGetters}get $dispatch(){return this.$ctx.dispatch}get $state(){return this.$ctx.state}get $rootState(){return this.$ctx.rootState}get $plugin(){return this.$ctx.rootState?.$extension}get $extension(){return this.$ctx.rootState?.$extension}get customValidationRules(){return[]}get _key(){const e=this.metadata;if(e){if(e.uid)return e.uid;if(e.namespace)return`${this.type}/${e.namespace}/${e.name}`}return this.id?`${this.type}/${this.id}`:`${this.type}/${Math.random()}`}get schema(){return this.$getters["schemaFor"](this.type)}toString(){return`[${this.type}: ${this.id}]`}get typeDisplay(){const e=this.schema;return e?this.$rootGetters["type-map/labelFor"](e):"?"}get nameDisplay(){return this.displayName||this.spec?.displayName||this.metadata?.annotations?.[r.ks]||this.name||this.metadata?.name||this.id}get nameSort(){return(0,U.RY)(this.nameDisplay).toLowerCase()}get namespacedName(){const e=this.metadata?.namespace,t=this.nameDisplay;return e?`${e}:${t}`:t}get namespacedNameSort(){return(0,U.RY)(this.namespacedName).toLowerCase()}get groupByLabel(){const e=this.metadata?.namespace;let t;return t=e?this.t("resourceTable.groupLabel.namespace",{name:(0,j.ZD)(e)}):this.t("resourceTable.groupLabel.notInANamespace"),t}setLabels(){throw new Error("Implement setLabels in subclass")}setLabel(){throw new Error("Implement setLabel in subclass")}setAnnotations(e){throw new Error("Implement setAnnotations in subclass")}setAnnotation(e,t){throw new Error("Implement setAnnotation in subclass")}get stateDisplay(){return ge(this.state)}get stateColor(){return me.call(this,this.state,this.stateObj?.error,this.stateObj?.transitioning)}get stateColorPair(){return{state:this.stateDisplay,color:this.stateSimpleColor}}get stateSimpleColor(){return this.stateColor.replace("text-","")}get stateBackground(){return this.stateColor.replace("text-","bg-")}get stateIcon(){let e=!1,t=!1;if(this.metadata&&this.metadata.state&&(e=this.metadata.state.transitioning,t=this.metadata.state.error),e)return"icon icon-spinner icon-spin";if(t)return"icon icon-error";const n=(this.state||"").toLowerCase();let r;return pe[n]&&pe[n].icon&&(r=_e.call(this,pe[n].icon)),r||(r=le),`icon icon-${r}`}get stateSort(){return be(this.stateColor,this.stateDisplay)}get stateDescription(){const e=this.stateObj?.transitioning||!1,t=this.stateObj?.error||!1,n=this.stateObj?.message;return e||t?(0,j.TF)(n):""}get stateObj(){return this.metadata?.state}waitForTestFn(e,t,n,r){return(0,K.f)(()=>e.apply(this),t,n||ue,r||ce,!0)}waitForState(e,t,n){return this.waitForTestFn(()=>(this.state||"").toLowerCase()===e.toLowerCase(),`state=${e}`,t,n)}waitForTransition(){return this.waitForTestFn(()=>!this.transitioning,"transition completion",void 0,void 0)}waitForAction(e){return this.waitForTestFn(()=>this.hasAction(e),`action=${e}`,void 0,void 0)}waitForLink(e){return this.waitForTestFn(()=>this.hasLink(e),`link=${e}`,void 0,void 0)}hasCondition(e){return this.isCondition(e,null)}isCondition(e,t="True"){if(!this.status||!this.status.conditions)return!1;const n=(0,h.jq)(this.status.conditions||[],"type",e);return!!n&&(!t||(n.status||"").toLowerCase()===`${t}`.toLowerCase())}waitForCondition(e,t="True",n=ue,r=ce){return this.waitForTestFn(()=>this.isCondition(e,t),`condition ${e}=${t}`,n,r)}get canEdit(){return this.canUpdate&&this.canCustomEdit}get availableActions(){const e=this._availableActions;let t=null;const n=e.filter(e=>{if(!1===e.enabled)return!1;const n=e.divider,r=!n||n&&!t;return t=n,r});while(n.length&&n[0].divider)n.shift();while(n.length&&n[n.length-1].divider)n.pop();for(let r=1;r<n.length;r++)n[r].divider&&n[r-1].divider&&((0,h.Wq)(n,r,1),r--);return n}showConfiguration(e,t){const r=()=>this.$ctx.commit("slideInPanel/close",void 0,{root:!0});this.$ctx.commit("slideInPanel/open",{component:n(93457).A,componentProps:{resource:this,onClose:r,width:"73%",height:"100vh",top:"0","z-index":101,closeOnRouteChange:["name","params","query"],triggerFocusTrap:!0,returnFocusSelector:e,defaultTab:t}},{root:!0})}get _availableActions(){const e=this.currentRouter().currentRoute.value,t=(0,te.A)(this.$rootState,ee.c7.ACTION,ee.ug.TABLE,e,this),n=(0,i.nv)(),r=c(n.Version),a=o().satisfies(r,">= 2.13.0"),s=[{action:"showConfiguration",label:this.t("action.showConfiguration"),icon:"icon icon-document",enabled:a&&!0!==this.disableResourceDetailDrawer&&(this.canCustomEdit||this.canYaml)},{divider:!0},{action:this.canUpdate?"goToEdit":"goToViewConfig",label:this.t(this.canUpdate?"action.edit":"action.view"),icon:"icon icon-edit",enabled:this.canCustomEdit},{action:this.canEditYaml?"goToEditYaml":"goToViewYaml",label:this.t(this.canEditYaml?"action.editYaml":"action.viewYaml"),icon:"icon icon-file",enabled:this.canYaml},{action:this.canCustomEdit?"goToClone":"cloneYaml",label:this.t("action.clone"),icon:"icon icon-copy",enabled:this.canClone&&this.canCreate&&(this.canCustomEdit||this.canYaml)},{divider:!0},{action:"download",label:this.t("action.download"),icon:"icon icon-download",bulkable:!0,bulkAction:"downloadBulk",enabled:this.canYaml,weight:-9},{action:"viewInApi",label:this.t("action.viewInApi"),icon:"icon icon-external-link",enabled:this.canViewInApi},{action:"promptRemove",altAction:"remove",label:this.t("action.remove"),icon:"icon icon-trash",bulkable:!0,enabled:this.canDelete,bulkAction:"promptRemove",weight:-10}];return t.length&&(s.push({divider:!0}),t.forEach(e=>{const t={...e},n=t.enabled,r=typeof n;switch(r){case"undefined":t.enabled=!0;break;case"function":Object.defineProperty(t,"enabled",{get:()=>n(this)});break;case"boolean":break;default:ie.warn(`Unsupported 'enabled' property type for action: ${e.label||e.labelKey}`),delete t.enabled;break}s.push(t)})),s}get canDelete(){return this._canDelete}get _canDelete(){return this.hasLink("remove")&&this.$rootGetters["type-map/optionsFor"](this.type).isRemovable}get canClone(){return!0}get canUpdate(){return this.hasLink("update")&&this.$rootGetters["type-map/optionsFor"](this.type).isEditable}get canCustomEdit(){return this.$rootGetters["type-map/hasCustomEdit"](this.type,this.id)}get canCreate(){return!(this.schema&&!this.schema?.collectionMethods.find(e=>"post"===e.toLowerCase()))&&this.$rootGetters["type-map/optionsFor"](this.type).isCreatable}get canViewInApi(){try{return this.hasLink("self")&&this.$rootGetters["prefs/get"](d.HZ)}catch{return this.hasLink("self")&&this.$rootGetters["prefs/get"](d.IJ)}}get canYaml(){return this.hasLink("view")}get canEditYaml(){return!this.schema?.resourceMethods?.find(e=>"blocked-PUT"===e)&&this.canUpdate}hasLink(e){return!!this.linkFor(e)}linkFor(e){return(this.links||{})[e]}followLink(e,t={}){if(t.url||(t.url=(this.links||{})[e]),t.urlSuffix&&(t.url+=t.urlSuffix),!t.url)throw new Error(`Unknown link ${e} on ${this.type} ${this.id}`);return this.$dispatch("request",{opt:t,type:this.type})}hasAction(e){return!!this.actionLinkFor(e)}actionLinkFor(e){return(this.actions||this.actionLinks||{})[e]}doAction(e,t,n={}){return this.$dispatch("resourceAction",{resource:this,actionName:e,body:t,opt:n})}async doActionGrowl(e,t,n={}){try{return await this.$dispatch("resourceAction",{resource:this,actionName:e,body:t,opt:n})}catch(r){this.$dispatch("growl/fromError",{title:this.$rootGetters["i18n/t"]("generic.notification.title.error"),err:r.data||r},{root:!0})}}patch(e,t={},n=!1,r=!1){if(t.url||(t.url=this.linkFor("view")||this.linkFor("self")),t.method="patch",t.headers=t.headers||{},!t.headers["content-type"]){const e=n?"application/strategic-merge-patch+json":"application/json-patch+json";t.headers["content-type"]=e}t.data=e;const i=this.$dispatch("request",{opt:t,type:this.type});return r?i.catch(e=>{const t=this.t("resource.errors.update",{name:this.name});ie.error(t,e),this.$dispatch("growl/error",{title:t,message:e?.message,timeout:5e3},{root:!0})}):i}save(){return this._save(...arguments)}cleanForSave(e,t){return delete e.__rehydrate,delete e.__clone,e}processSaveResponse(e,t={}){}async _save(e={}){const t=!this.id,n=this.validationErrors(this,e);if(!f()(n))return Promise.reject(n);if(this.metadata?.resourceVersion&&(this.metadata.resourceVersion=`${this.metadata.resourceVersion}`),!e.url)if(t){const t=this.$getters["schemaFor"](this.type);let n=t.linkFor("collection");t.attributes&&t.attributes.namespaced&&this.metadata&&this.metadata.namespace&&(n+=`/${this.metadata.namespace}`),e.url=n}else e.url=this.linkFor("update")||this.linkFor("self");if(e.method||(e.method=t?"post":"put"),e.headers||(e.headers={}),e.headers["content-type"]||(e.headers["content-type"]="application/json"),e.headers["accept"]||(e.headers["accept"]="application/json"),e.data=this.toSave()||JSON.parse(JSON.stringify(this)),e.data._type&&(e.data.type=e.data._type),e.data._name&&(e.data.name=e.data._name),e.data._labels&&(e.data.labels=e.data._labels),e.data._annotations&&(e.data.annotations=e.data._annotations),e.data=this.cleanForSave(e.data,t),e?.replace&&"put"===e.method){const t=e.url.includes("?")?"&":"?";e.url=`${e.url}${t}_replace=true`,delete e.replace}const r=e.invalidatePageCache||!1;try{const n=await this.$dispatch("request",{opt:e,type:this.type});if(this.processSaveResponse(n,e),n&&"Table"!==n.kind){const e=this.$getters.keyFieldForType(this.type),i=n[e];i&&await this.$dispatch("load",{data:n,existing:t?this:void 0,invalidatePageCache:r})}}catch(i){return this.type&&this.id&&409===i?._status&&await this.$dispatch("find",{type:this.type,id:this.id,opt:{force:!0,watch:!1,invalidatePageCache:r}}),Promise.reject(i)}return this}remove(){return this._remove(...arguments)}async _remove(e={}){e.url||(e.url=this.linkFor("self")),e.method="delete";const t=await this.$dispatch("request",{opt:e,type:this.type});200===t?._status?await this.$dispatch("load",{data:t,existing:this,invalidatePageCache:!1}):204===t?._status&&await this.$dispatch("ws.resource.remove",{data:this})}currentRoute(){return window.$globalApp.$route}currentRouter(){return window.$globalApp.$router}get isProdRegistrationV2TopLevelProductResoure(){let e="";const t=this.$extension.getPlugins();return Object.keys(t).forEach(n=>{t[n].productNames.includes(this.$rootGetters["productId"])&&(e=n)}),t[e]?.topLevelProduct||!1}get listLocation(){return this.isProdRegistrationV2TopLevelProductResoure?{name:`${this.$rootGetters["productId"]}-c-cluster-resource`,params:{product:this.$rootGetters["productId"],cluster:this.$rootGetters["clusterId"],resource:this.type}}:{name:"c-cluster-product-resource",params:{product:this.$rootGetters["productId"],cluster:this.$rootGetters["clusterId"],resource:this.type}}}get _detailLocation(){const e=this.$getters["schemaFor"](this.type),t=e?.attributes?.namespaced,n=this.id?.replace(/.*\//,"");return this.isProdRegistrationV2TopLevelProductResoure?{name:`${this.$rootGetters["productId"]}-c-cluster-resource${e?.attributes?.namespaced?"-namespace":""}-id`,params:{product:this.$rootGetters["productId"],cluster:this.$rootGetters["clusterId"],resource:this.type,namespace:t&&this.metadata?.namespace?this.metadata.namespace:void 0,id:n}}:{name:`c-cluster-product-resource${e?.attributes?.namespaced?"-namespace":""}-id`,params:{product:this.$rootGetters["productId"],cluster:this.$rootGetters["clusterId"],resource:this.type,namespace:t&&this.metadata?.namespace?this.metadata.namespace:void 0,id:n}}}get detailLocation(){return this._detailLocation}get detailPageAdditionalActions(){}goToDetail(){this.currentRouter().push(this.detailLocation)}goToClone(e={}){const t=this.detailLocation;t.query={...t.query,[u.g]:u.dT,[u.AS]:u.xz,...e},this.currentRouter().push(t)}goToEdit(e={},t=this.detailLocation){t.query={...t.query,[u.g]:u.G5,[u.AS]:u.xz,...e},this.currentRouter().push(t)}goToViewConfig(e={}){const t=this.detailLocation;t.query={...t.query,[u.g]:u.nW,[u.AS]:u.au,...e},this.currentRouter().push(t)}goToEditYaml(){const e=this.detailLocation;e.query={...e.query,[u.g]:u.G5,[u.AS]:u.zD},this.currentRouter().push(e)}goToViewYaml(){const e=this.detailLocation;e.query={...e.query,[u.g]:u.nW,[u.AS]:u.zD},this.currentRouter().push(e)}cloneYaml(e={}){const t=this.detailLocation;t.query={...t.query,[u.g]:u.dT,[u.AS]:u.zD,...e},this.currentRouter().push(t)}async download(){const e=await this.followLink("view",{headers:{accept:"application/yaml"}}),t=await this.cleanForDownload(e.data);(0,F.PE)(`${this.nameDisplay}.yaml`,t,"application/yaml")}async downloadBulk(e){const t={},n=[];for(const i of e){let e=`${i.nameDisplay}.yaml`,t=2;while(n.includes(e))e=`${i.nameDisplay}_${t++}.yaml`;n.push(e)}await(0,$.hF)(e,10,(e,r)=>e.followLink("view",{headers:{accept:"application/yaml"}}).then(async e=>{const i=e.data||e,a=await this.cleanForDownload(i);t[`resources/${n[r]}`]=a}));const r=await(0,F.jl)(t);(0,F.PE)("resources.zip",r,"application/zip")}viewInApi(){window.open(this.links.self,"_blank")}promptRemove(e){e||(e=this),this.$dispatch("promptRemove",e)}get confirmRemove(){return!1}applyDefaults(){}get urlFromAttrs(){const e=this.$getters["schemaFor"](this.type),{metadata:{namespace:t="default"}}=this;let n=e.links.collection;const r=e?.attributes;if(!r)throw new Error("Attributes must be present on the schema");const{group:i,resource:a}=r;return n=`${n.slice(0,n.indexOf("/v1"))}/apis/${i}/namespaces/${t}/${a}`,n}cleanYaml(e,t="edit"){try{const n=H().load(e);"edit"!==t&&this.$dispatch("cleanForNew",n),n._type&&(n.type=n._type,delete n._type);const r=H().dump(n,{skipInvalid:!0});return r}catch(n){return null}}cleanForNew(){this.$dispatch("cleanForNew",this)}cleanForDiff(){this.$dispatch("cleanForDiff",this.toJSON())}async cleanForDownload(e){return this.$dispatch("cleanForDownload",e)}yamlForSave(e){try{const t=H().load(e);if(t)return this._type&&(t._type=t.type),H().dump(t)}catch(t){return null}}async saveYaml(e,t){await this._saveYaml(e,t)}async _saveYaml(e,t,n=0){const r=H().load(e);if(this.schema?.attributes?.namespaced&&!r.metadata.namespace){const e=this.$rootGetters["i18n/t"]("resourceYaml.errors.namespaceRequired");throw e}let i;const a=!this.id,o={"content-type":"application/yaml",accept:"application/json"};if(a)i=await this.schema.followLink("collection",{method:"POST",headers:o,data:e});else try{i=await this.followLink("update",{method:"PUT",headers:o,data:e})}catch(s){const r=409===s.status||409===s._status;if(!r||0!==n||!t)throw s;{const r=this.$rootGetters["currentStore"](this.type),i=H().load(t),a=H().load(e),o=this.$rootGetters[`${r}/byId`](this.type,this.id),s=await(0,Z.Rq)(i,a,o,{dispatch:this.$dispatch,getters:this.$rootGetters},this.$rootGetters["currentStore"](this.type),e=>e.toJSON?e.toJSON():e);if(!1!==s)throw s;await this._saveYaml(H().dump(a),null,n+1)}}i&&(await this.$dispatch("load",{data:i,existing:a?this:void 0}),this.isSpoofed&&await this.$dispatch("cluster/findAll",{type:this.type,opt:{force:!0}},{root:!0}))}get modelValidationRules(){const e=[],t=this?.customValidationRules.filter(e=>!!e.validators||!!e.required).map(e=>{const t=(0,V.A)(this.t,{displayKey:e?.translationKey?this.t(e.translationKey):"Value"});return{path:e.path,rules:[...e.validators||[],...e.required?["required"]:[],...["dnsLabel","dnsLabelRestricted","hostname"].includes(e.type)?[e.type]:[]].map(e=>{if(e.includes(":")){const[n,r]=e.split(":");return t[n](r)}return t[e]}).filter(e=>!!e)}}).filter(e=>e.rules.length>0);return e.push(...t),e}customValidationErrors(e,t=[]){const n=[];let{customValidationRules:r}=this;return f()(r)||(W()(r)&&(r=r()),r.filter(e=>!t.includes(e.path)).forEach(t=>{const{path:r,requiredIf:i,validators:a=[],type:o}=t;let s=(0,C.Jt)(e,r);const l=q()(a||[]);let c=r;if(t.translationKey&&this.$rootGetters["i18n/exists"](t.translationKey)&&(c=this.t(t.translationKey)),Q()(s)&&(s=s.trim()),i){const t=(0,C.Jt)(e,i);!f()(t)&&f()(s)&&0!==s&&n.push(this.t("validation.required",{key:c}))}if((0,v.xR)(s,t,c,this.$rootGetters,n),(0,v.iK)(s,t,c,this.$rootGetters,n),!f()(s)&&ae.includes(o)){const t=(s||"").toLowerCase();t!==s&&(s=t,e[r]=s),n.push(...(0,v.OH)(s,o,c,this.$rootGetters,n))}l.forEach(t=>{const r=t.split(":"),i=r.slice(0,1),a=r.slice(1)||null,o=Object.prototype.hasOwnProperty.call(B,i);if(!f()(i)&&o)B[i](s,this.$rootGetters,n,a,c,e);else if(!f()(i)&&!o){const t=this.$rootState.$extension?.getValidator(i);t?t(s,this.$rootGetters,n,a,c,e):ie.warn(this.t("validation.custom.missing",{validatorName:i}))}})})),n}validationErrors(e=this,t={}){return this.customValidationErrors(e)}get ownersByType(){const e=this.metadata?.ownerReferences||[],t={};return e.forEach(e=>{t[e.kind]?t[e.kind].push(e):t[e.kind]=[e]}),t}get owners(){const e=[];for(const t in this.ownersByType){const n=this.$rootGetters["cluster/schema"](t);if(n){const r=n.id,i=this.$rootGetters["cluster/all"](r);this.ownersByType[t].forEach((t,n)=>{const r=i.find(e=>e?.metadata?.uid===t.uid);r&&e.push(r)})}}return e}get details(){return this._details}get _details(){const e=[];return this.owners?.length>0&&e.push({label:this.t("resourceDetail.detailTop.ownerReferences",{count:this.owners.length}),formatter:"ListLinkDetail",content:this.owners.map(e=>({key:e.id,row:e,col:{},value:e.metadata.name}))}),(0,C.Jt)(this,"metadata.deletionTimestamp")&&e.push({label:this.t("resourceDetail.detailTop.deleted"),formatter:"LiveDate",formatterOpts:{addSuffix:!0},content:(0,C.Jt)(this,"metadata.deletionTimestamp")}),e}get glance(){return this._glance}get _glance(){const e=this.parentNameOverride||this.$rootGetters["type-map/labelFor"](this.schema);let t=null;return t=this.isProdRegistrationV2TopLevelProductResoure?{name:`${this.$rootGetters["productId"]}-c-cluster-resource-id`,params:{product:this.$rootGetters["currentProduct"]?.id,cluster:this.$rootGetters["currentCluster"]?.id,resource:this.type}}:{name:"c-cluster-product-resource-id",product:this.$rootGetters["currentProduct"]?.id,cluster:this.$rootGetters["currentCluster"]?.id,resource:this.type},[{name:"state",label:this.t("component.resource.detail.glance.state"),formatter:"BadgeStateFormatter",formatterOpts:{row:this},content:this.stateDisplay},{name:"type",label:this.t("component.resource.detail.glance.type"),formatter:"Link",formatterOpts:{to:this.listLocation,row:{},options:{internal:!0}},content:e},{name:"namespace",label:this.t("component.resource.detail.glance.namespace"),formatter:this.$rootGetters["currentProduct"]?.id&&this.$rootGetters["currentCluster"]?.id?"Link":void 0,formatterOpts:{to:t,row:{},options:{internal:!0}},content:this.namespacedName},{name:"age",label:this.t("component.resource.detail.glance.age"),formatter:"LiveDate",content:this.creationTimestamp}]}get t(){return this.$rootGetters["i18n/t"]}findOwners(){return this._getRelationship("owner","from")}getOwners(){return this._getRelationship("owner","from")}findOwned(){return this._findRelationship("owner","to")}_relationshipsFor(e,t){const n={selectors:[],ids:[]};if(!this.metadata?.relationships?.length)return n;for(const r of this.metadata.relationships)if(("any"===e||r.rel===e)&&r[`${t}Type`])if(r.selector)(0,h.cn)(n.selectors,{type:r.toType,namespace:r.toNamespace,selector:r.selector});else{const e=r[`${t}Type`];let i=r[`${t}Namespace`],a=r[`${t}Id`];if(!i&&a.includes("/")){const e=a.indexOf("/");i=a.substr(0,e),a=a.substr(e+1)}const o=(i?`${i}/`:"")+a;(0,h.PG)(n.ids,{type:e,namespace:i,name:a,id:o})}return n}_getRelationship(e,t){const n=this._relationshipsFor(e,t);return n.selectors?.length&&ie.warn("Sync request for a relationship that is a selector"),n.ids||[]}async _findRelationship(e,t){const{selectors:n,ids:r}=this._relationshipsFor(e,t),i=[];for(const a of n){const{type:e,selector:t,namespace:n,opt:r}=a,o=await this.$dispatch("findLabelSelector",{type:e,matching:{namespace:n,labelSelector:{matchExpressions:(0,ne.qg)(t)}},opts:{transient:!0,...r}});(0,h.cn)(i,o.data)}for(const a of r){const{type:e,id:t}=a;let n=this.$getters["byId"](e,t);if(!n)try{n=await this.$dispatch("find",{type:e,id:t})}catch{}n&&(0,h.PG)(i,n)}return i}get shortId(){const e=this.id.split("/");return e.length>1?e[1]:e[0]}toJSON(){const e={},t=Object.keys(this);for(const n of t)this[n]?.toJSON?e[n]=this[n].toJSON():e[n]=(0,C.o8)(this[n]);return e}toSave(){}get creationTimestamp(){return this.metadata?.creationTimestamp}get yamlFolding(){return[]}get resourceConditions(){return(this.status?.conditions||[]).map(e=>{let t=e.message||"";return e.reason&&(t=`[${e.reason}] ${t}`.trim()),{condition:e.type||"Unknown",status:e.status||"Unknown",stateSimpleColor:e.error?"error":"disabled",error:e.error,time:e.lastProbeTime||e.lastUpdateTime||e.lastTransitionTime,message:t}})}get resourceEvents(){return this.$rootGetters["cluster/all"](D.ll).filter(e=>e.involvedObject?.uid===this.metadata?.uid)}get insightCardProps(){const e=[(0,re.GD)(this.t("component.resource.detail.card.insightsCard.rows.conditions"),this.resourceConditions,void 0,"condition","#conditions"),(0,re.GD)(this.t("component.resource.detail.card.insightsCard.rows.events"),this.resourceEvents,"insightsColor","eventType","#events")];return{title:this.t("component.resource.detail.card.insightsCard.title"),rows:e}}get insightCard(){return{component:(0,J.markRaw)((0,J.defineAsyncComponent)(()=>n.e(88).then(n.bind(n,86088)))),props:this.insightCardProps}}get _cards(){return[]}get cards(){return this._cards}}},82614:function(e,t,n){"use strict";n.d(t,{A:function(){return d},T:function(){return u}});var r=n(2841),i=n(38403),a=n.n(i),o=n(16735),s=n.n(o),l=n(92043),c=n(40408);function u(e){const t=["state","name","description","labels","annotations"];return t.forEach(t=>delete e[t]),e}class d extends c.Ay{constructor(e,t,n=null,r=!1){const i=u(e);super(i,t,n,r)}get labels(){const e=this.metadata?.labels||{};return a()(e,(e,t)=>(0,l.HV)(t,r.lq))}setLabels(e){this.metadata||(this.metadata={});const t=this.metadata.labels||{},n=s()(t,(e,t)=>(0,l.HV)(t,r.lq));this.metadata["labels"]={...n,...e}}setLabel(e,t){t?(this.metadata||(this.metadata={}),this.metadata.labels||(this.metadata.labels={}),this.metadata.labels[e]=t):this.metadata?.labels&&(this.metadata.labels[e]=void 0,delete this.metadata.labels[e])}get annotations(){const e=this.metadata?.annotations||{};return a()(e,(e,t)=>(0,l.HV)(t,r.S5))}setAnnotations(e){this.metadata||(this.metadata={});const t=this.metadata.annotations||{},n=s()(t,(e,t)=>(0,l.HV)(t,r.S5));this.metadata["annotations"]={...n,...e}}setAnnotation(e,t){t?(this.metadata||(this.metadata={}),this.metadata.annotations||(this.metadata.annotations={}),this.metadata.annotations[e]=t):this.metadata?.annotations&&(this.metadata.annotations[e]=void 0,delete this.metadata.annotations[e])}get state(){return this.stateObj?.name||"unknown"}}},89865:function(e,t,n){"use strict";n.d(t,{A:function(){return _}});var r=n(2841),i=n(16735),a=n.n(i),o=n(68851),s=n(92043),l=n(40408),c=n(76978),u=n(96047),d=n(79401),h=n(8138),p=n.n(h),f=n(82438),m=n.n(f),g=n(3514),v=n.n(g),b=n(4364);const y=["string","date","blob","enum","multiline","masked","password","dnsLabel","hostname"];class _ extends l.Ay{setLabels(e){const t=this.labels||{},n=a()(t,(e,t)=>(0,s.HV)(t,r.lq));this["labels"]={...n,...e}}setLabel(e,t){t?(this.labels||(this.labels={}),this.labels[e]=t):this.labels&&(this.labels[e]=void 0,delete this.labels[e])}setAnnotations(e){const t=this.annotations||{},n=a()(t,(e,t)=>(0,s.HV)(t,r.S5));this["annotations"]={...n,...e}}setAnnotation(e,t){t?(this.annotations||(this.annotations={}),this.annotations[e]=t):this.annotations&&(this.annotations[e]=void 0,delete this.annotations[e])}setResourceQuotas(e){const t=["resourceQuota","namespaceDefaultResourceQuota"];t.forEach(t=>{this[t]={...e[t]}})}isCondition(e,t="True"){if(!this.conditions)return!1;const n=(0,o.jq)(this.conditions||[],"type",e);return!!n&&(!t||(n.status||"").toLowerCase()===`${t}`.toLowerCase())}validationErrors(e=this,t={ignoreFields:void 0}){const n=[],{type:r,schema:i}=e,a=(0,d.AZ)(r);if(!r)return b.warn(this.t("validation.noType"),e),n;if(!i)return n;const o=i.resourceFields||{},h=Object.keys(o);let f,g,_,w;for(let m=0;m<h.length;m++){const r=[];g=h[m],f=o[g],_=(0,c.Jt)(e,g),w=(0,u.HK)(a,g,this.$rootGetters);const i=f?.type?(0,d.AZ)(f.type):null,b=p()(_);if(!t.ignoreFields||!t.ignoreFields.includes(g))if(void 0===_&&(_=null),b&&(i&&(e[g]=(0,s.i6)(_,i)),f.nullable&&0===_.length&&y.includes(i)&&(_=null,e[g]=_)),"boolean"===i?(0,u.p6)(_,f,w,this.$rootGetters,r):((0,u.xR)(_,f,w,this.$rootGetters,r),(0,u.iK)(_,f,w,this.$rootGetters,r)),r.length>0)r.push(this.t("validation.required",{key:w})),n.push(...r);else{if("id"!==g&&!v()(_)&&l.qE.includes(i)){const t=(_||"").toLowerCase();t!==_&&(_=t,e[g]=_),r.push(...(0,u.OH)(_,i,w,this.$rootGetters,r))}n.push(...r)}}const E=super.validationErrors(this,t);return m()([...n,...E])}}},37417:function(e,t,n){"use strict";n.d(t,{P:function(){return a},w:function(){return i}});var r=n(79401);function i(e){e._id=(0,r.AZ)(e.id),e._group=(0,r.AZ)(e.attributes?.group)}function a(e){delete e._id,delete e._group}},87811:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});var r=n(2841),i=n(82614),a=n(37648),o=n(76978),s=n(28197);const l=["metadata.resourceVersion","metadata.fields","metadata.clusterName","metadata.deletionGracePeriodSeconds","metadata.generateName","metadata.ownerReferences"],c=a.Ng.filter(e=>!l.includes(e));class u extends i.A{get name(){return this.metadata?.name||this._name}get namespace(){return this.metadata?.namespace}get description(){return this.metadata?.annotations?.[r.tC]||this.spec?.description||this._description}set description(e){this.metadata?.annotations&&(this.metadata.annotations[r.tC]=e),this.spec&&(this.spec.description=e),this._description=e}get modelExtensions(){return this.$extension.getDynamic(s.j.MODEL_EXTENSION,this.type)||[]}cleanForSave(e,t){const n=super.cleanForSave(e);for(const r of c)(0,o.BJ)(n,r);return n}paginationEnabled(){return this.$getters["paginationEnabled"](this.type)}processSaveResponse(e,t={}){if(super.processSaveResponse(e,t),e&&201===e._status&&e.metadata?.generateName&&e.id&&!t.suppressSuccessToast){const t=e.id.split("/").pop();if(t.length>0){const e=this.typeDisplay;this.$dispatch("growl/success",{title:this.t("generic.autogeneratedCreated.title",{resource:e}),message:this.t("generic.autogeneratedCreated.message",{id:t,resource:e}),timeout:3e3},{root:!0})}}}}},63928:function(e,t,n){"use strict";n.d(t,{A:function(){return i}});var r=n(87811);class i extends r.A{constructor(e,t,n=null,r=!1){const i=e.description;super(e,t,n,r),this.description=i}get description(){return this._description}set description(e){this._description=e}toJSON(){const e=super.toJSON();return e.description=this.description,delete e._description,e}toSave(){return this.toJSON()}}},55105:function(e,t,n){"use strict";n.r(t);var r=n(65359),i=n(92043),a=n(35664),o=n(4799);const s=o.SUBTYPE_MAPPING.CLUSTER.key;t["default"]={data(){return{warning:"",info:""}},computed:{...(0,r.aH)("action-menu",["toRemove"]),...(0,r.L8)({t:"i18n/t"}),names(){return this.toRemove.map(e=>e.nameDisplay)}},watch:{value:{handler(e){this.handleRoleDeletionCheck(e,e[0].type,this.$route.hash)},immediate:!0}},methods:{resourceNames:i.Nr,async handleRoleDeletionCheck(e,t,n){let r,i;this.warning="";let o=0;const l=new Set;switch(this.info=this.t("rbac.globalRoles.waiting",{count:e.length}),t){case a.Mc.GLOBAL_ROLE:r=a.Mc.GLOBAL_ROLE_BINDING,i="globalRoleName";break;default:r=n.includes(s)?a.Mc.CLUSTER_ROLE_TEMPLATE_BINDING:a.Mc.PROJECT_ROLE_TEMPLATE_BINDING,i="roleTemplateName";break}try{const t=await this.$store.dispatch("management/request",{url:`/v1/${r}`,method:"get"},{root:!0}),n=await this.$store.dispatch("management/request",{url:`/v1/${a.Mc.USER}`,method:"get"},{root:!0}),s=n.data?.reduce((e,t)=>(t.username&&(e[t.id]=t),e),{});t.data&&t.data.length?(e.forEach(e=>{const n=t.data.filter(t=>t[i]===e.id);if(n.length){const e=[...new Set(n.map(e=>e.userName).filter(e=>s[e]))];e.length&&(o++,e.forEach(e=>l.add(e)))}}),o&&l.size?(this.info="",this.warning=this.t("rbac.globalRoles.usersBound",{count:l.size})):this.info=this.t("rbac.globalRoles.notBound",null,!0)):this.info=this.t("rbac.globalRoles.notBound",null,!0)}catch(c){this.info=this.t("rbac.globalRoles.unableToCheck")}}}}},97707:function(e,t,n){"use strict";n.d(t,{CB:function(){return c},I0:function(){return l},bh:function(){return d},do:function(){return u}});n(35664);var r=n(2841),i=(n(50667),n(88339),n(76978),n(68851)),a=(n(99726),n(50382),n(74302),n(92043),n(83288)),o=n(88088),s=n.n(o);n(48074),n(4364);r.W8._RANCHER,r.W8._EXPERIMENTAL,r.W8._PARTNER;const l={NOT_APPLICABLE:"not_applicable",NO_UPGRADE:"no_upgrade",SINGLE_UPGRADE:"single_upgrade",MULTIPLE_UPGRADES:"multiple_upgrades"},c="windows",u="linux";function d(e,t,n=!0){const o=e.versions;return t&&!(0,i.cy)(t)&&(t=[t]),o.filter(e=>{const i=(e?.annotations?.[r.W8.PERMITTED_OS]||u).split(",");return!(!n&&(0,a.V1)(e.version))&&(!t||0===s()(t,i).length)})}},95265:function(e,t,n){"use strict";n.d(t,{N8:function(){return l},Vw:function(){return c},Wt:function(){return s},r$:function(){return o}});n(35664);var r=n(11518);const i={},a=function(e,t){return i[e]={def:t},e},o=function(e){return{get(){return this.$store.getters["features/get"](e)},set(e){throw new Error("The feature store only supports getting")}}},s=(a("multi-cluster-management",!0),a("legacy",!1),a("rke2",!0),a("unsupported-storage-drivers",!1)),l=(a("continuous-delivery",!0),a("harvester",!0),a("harvester-baremetal-container-workload",!1),a("provisioningv2-fleet-workspace-back-population",!1)),c=a("ui-sql-cache",!1);a("uiextension",!0),a("provisioningprebootstrap",!1),a(r.R8,!1),a("rancher-scc-registration-extension",!0),a("cluster-autoscaling",!1)},91462:function(e,t,n){"use strict";n.d(t,{AN:function(){return a},DX:function(){return y},EI:function(){return h},G$:function(){return _},HZ:function(){return E},Hu:function(){return d},IJ:function(){return w},JV:function(){return u},Mu:function(){return p},Pz:function(){return S},Ri:function(){return l},aP:function(){return f},bc:function(){return k},gM:function(){return A},jn:function(){return c},kJ:function(){return b},kc:function(){return m},qv:function(){return v},xL:function(){return g}});n(9262),n(35664),n(76978),n(38275),n(4364);const r={};const i=function(e,t,n={}){const i=!0===n.parseJSON,a=!0===n.asCookie,o=!1!==n.asUserPreference,s=n.options,l=n.inheritFrom;return r[e]={def:t,options:s,parseJSON:i,asCookie:a,asUserPreference:o,inheritFrom:l,mangleRead:n.mangleRead,mangleWrite:n.mangleWrite},e},a=function(e){return{get(){return this.$store.getters["prefs/get"](e)},set(t){this.$store.dispatch("prefs/set",{key:e,value:t})}}},o=!0,s=!0,l=(i("cluster",""),i("last-namespace","")),c=(i("ns-by-cluster",{},{parseJSON:o}),i("workspace",""),i("open-groups",["cluster","policy","rbac","serviceDiscovery","storage","workload"],{parseJSON:o})),u=i("fav-type",[],{parseJSON:o}),d=i("pinned-clusters",[],{parseJSON:o}),h=i("group-by","namespace"),p=i("diff","unified",{options:["unified","split"]}),f=(i("theme","auto",{options:["light","auto","dark"],asCookie:s,parseJSON:o,mangleRead:e=>e.replace(/^ui-/,""),mangleWrite:e=>`ui-${e}`}),i("pcs","",{asCookie:s,asUserPreference:!1}),i("locale","en-us",{asCookie:s}),i("keymap","sublime",{options:["sublime","emacs","vim"]})),m=i("per-page",100,{options:[10,25,50,100],parseJSON:o}),g=(i("logs-wrap",!0,{parseJSON:o}),i("logs-time",!0,{parseJSON:o}),i("logs-range","30 minutes",{parseJSON:o}),i("hide-repos",[],{parseJSON:o}),i("hide-desc",[],{parseJSON:o})),v=i("hide-sensitive",!0,{options:[!0,!1],parseJSON:o}),b=i("show-pre-release",!1,{options:[!1,!0],parseJSON:o}),y=i("date-format","ddd, MMM D YYYY",{options:["ddd, MMM D YYYY","ddd, D MMM YYYY","D/M/YYYY","M/D/YYYY","YYYY-MM-DD"]}),_=i("time-format","h:mm:ss a",{options:["h:mm:ss a","HH:mm:ss"]}),w=(i("time-zone","local"),i("dev",!1,{parseJSON:o})),E=i("view-in-api",!1,{parseJSON:o,inheritFrom:w}),S=i("all-namespaces",!1,{parseJSON:o,inheritFrom:w}),k=(i("theme-shortcut",!1,{parseJSON:o,inheritFrom:w}),i("last-visited","home",{parseJSON:o}),i("seen-whatsnew","",{parseJSON:o}),i("read-whatsnew","",{parseJSON:o}),i("after-login-route","home",{parseJSON:o}),i("home-page-cards",{},{parseJSON:o}),i("plugin-developer",!1,{parseJSON:o,inheritFrom:w})),x="rke1",A="rke2";i("provisioner",A,{options:[x,A]}),i("scale-pool-prompt",null,{parseJSON:o}),i("read-new-release","",{parseJSON:o}),i("read-support-notice","",{parseJSON:o}),i("read-upcoming-support-notice","",{parseJSON:o}),i("read-announcements","",{parseJSON:o}),i("hide-suse-app-collection-repo-banner",!1)},10213:function(e,t,n){"use strict";n.d(t,{e:function(){return r},w:function(){return i}});const r={CLUSTER:"cluster",RANCHER:"rancher",MANAGEMENT:"management"},i="_"},86565:function(e,t,n){"use strict";n.d(t,{f7:function(){return o},lm:function(){return a},QF:function(){return i},X2:function(){return s}});n(68774);var r=n(35664);n(91462),n(68851),n(76978),n(92043),n(27436),n(27278),n(41580),n(79401),n(74302),n(83416);n(46392),n(9274),n(37327);const i="__[[spoofed]]__",a="__[[spoofedapi]]__",o={V2_MONITORING:"v2-monitoring",PROJECT:"project",NO_PROJECT:"no-project",NOT_V1_ISTIO:"not-v1-istio",MULTI_CLUSTER:"multi-cluster",NEUVECTOR_NAMESPACE:"neuvector-namespace",ADMIN:"admin-user",MCM_DISABLED:"mcm-disabled",NOT_STANDALONE_HARVESTER:"not-standalone-harvester"};function s(e){const t=(e["management/schemaFor"](r.Mc.SETTING)?.resourceMethods||[]).includes("PUT"),n=(e["management/schemaFor"](r.Mc.FEATURE)?.resourceMethods||[]).includes("PUT"),i=(e["management/schemaFor"](r.W8.APP)?.resourceMethods||[]).includes("PUT"),a=(e["management/schemaFor"](r.W8.CLUSTER_REPO)?.resourceMethods||[]).includes("PUT"),o=(e["management/schemaFor"](r.W8.OPERATION)?.resourceMethods||[]).includes("PUT");return t&&n&&i&&a&&o}},39589:function(e,t,n){"use strict";n.d(t,{BA:function(){return S},ER:function(){return d},Eb:function(){return w},_R:function(){return y},gb:function(){return E}});var r=n(20246),i=n.n(r),a=n(4514),o=n(35664),s=n(76978),l=n(3514),c=n.n(l),u=n(55162);const d=async e=>{const t=e.getters["cluster/schemaFor"](o.Rp.ALERTMANAGERCONFIG);if(t)return await t.fetchResourceFields(),{receiverSchema:t.schemaDefinitions?.[`${t.schemaDefinition.type}.spec.receivers`],routeSchema:t.schemaDefinitions?.[`${t.schemaDefinition.type}.spec.route`]}},h="cattle-monitoring-system/alertmanager-rancher-monitoring-alertmanager",p="cattle-monitoring-system/rancher-monitoring-alertmanager",f="alertmanager.yaml";async function m(e){const t=await e("cluster/find",{type:o.Rp.ALERTMANAGER,id:p},{root:!0});return t?.spec?.configSecret?`${t.namespace}/${t?.spec?.configSecret}`:h}async function g(e){const t=await m(e,!1);try{return await e("cluster/find",{type:o.bB,id:t},{root:!0})}catch(n){const[r,i]=t.split("/"),a=await e("cluster/create",{type:o.bB},{root:!0});return a.metadata={namespace:r,name:i},a}}function v(e){e.data=e.data||{};const t=e.data[f],n=t?(0,a.u)(t):"{}",r=i().load(n);return r.receivers=r.receivers||[],r.route=r.route||{},r.route.routes=r.route.routes||[],r}async function b(e){const t=await g(e);return{config:v(t),secret:t}}async function y(e,t,n,r){const{config:o,secret:l}=await b(e);(0,s.hZ)(o,t,(0,s.Jt)(o,t)||[]),_(o.route.routes);const c=r((0,s.Jt)(o,t));(0,s.hZ)(o,t,c);const d=o.route.routes,h=d.findIndex(e=>e.name===u.ROOT_NAME);if(d.forEach(e=>{e.name&&delete e.name}),h>=0){const e=d.splice(h,1)[0];e.routes=d,o.route=e}const p=i().dump(o),m=(0,a.KA)(p);l.data[f]=m,await l.save()}function _(e){e.forEach((e,t)=>{e.name=e.name||w(t)})}function w(e){return`route-${e}`}function E(e){try{const t=v(e),n=t.route?.routes||[];return!n.some(c())}catch(t){return!1}}function S(e){return e["type-map/optionsFor"](o.bB).isCreatable}},11524:function(e,t,n){"use strict";n.d(t,{G:function(){return i}});n(2722),n(83288);var r=n(97707);function i(e,t,n){if(!e?.versions?.length)return{};const i=(0,r.bh)(e,t,n);return(i.length?i[0]:e.versions[0])||{}}},48881:function(e,t,n){"use strict";n.d(t,{e:function(){return $}});var r=n(4364),i="text/plain",a=e=>{};function o(e){a(e)}function s(){(r.warn||r.log).apply(r,arguments)}s.bind("[clipboard-polyfill]");var l,c,u,d="undefined"===typeof window?void 0:window,h="undefined"===typeof globalThis?void 0:globalThis,p=null!=(u=null==(l=d)?void 0:l.Promise)?u:null==(c=h)?void 0:c.Promise;function f(){if(!p)throw new Error("No `Promise` implementation available for `clipboard-polyfill`. Consider using: https://github.com/lgarron/clipboard-polyfill#flat-file-version-with-promise-included");return p}var m,g,v,b,y,_="undefined"===typeof navigator?void 0:navigator,w=null==_?void 0:_.clipboard,E=(null==(m=null==w?void 0:w.read)||m.bind(w),null==(g=null==w?void 0:w.readText)||g.bind(w),null==(v=null==w?void 0:w.write)||v.bind(w),null==(b=null==w?void 0:w.writeText)?void 0:b.bind(w)),S=(null==(y=d)||y.ClipboardItem,f()),k=d;function x(){return"undefined"===typeof ClipboardEvent&&"undefined"!==typeof(null==k?void 0:k.clipboardData)&&"undefined"!==typeof(null==k?void 0:k.clipboardData.setData)}function A(e){if(!k.clipboardData)return!1;var t=k.clipboardData.setData("Text",e);return t&&o("writeTextIE worked"),t}function C(e,t,n){for(var r in o("listener called"),e.success=!0,t){var a=t[r],s=n.clipboardData;s.setData(r,a),r===i&&s.getData(r)!==a&&(o("setting text/plain failed"),e.success=!1)}n.preventDefault()}function T(e){var t={success:!1},n=C.bind(this,t,e);document.addEventListener("copy",n);try{document.execCommand("copy")}finally{document.removeEventListener("copy",n)}return t.success}function N(e,t){I(e);var n=T(t);return L(),n}function R(e){var t=document.createElement("div");t.setAttribute("style","-webkit-user-select: text !important"),t.textContent="temporary element",document.body.appendChild(t);var n=N(t,e);return document.body.removeChild(t),n}function O(e){o("copyTextUsingDOM");var t=document.createElement("div");t.setAttribute("style","-webkit-user-select: text !important");var n=t;t.attachShadow&&(o("Using shadow DOM."),n=t.attachShadow({mode:"open"}));var r=document.createElement("span");r.innerText=e,n.appendChild(r),document.body.appendChild(t),I(r);var i=document.execCommand("copy");return L(),document.body.removeChild(t),i}function I(e){var t=document.getSelection();if(t){var n=document.createRange();n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n)}}function L(){var e=document.getSelection();e&&e.removeAllRanges()}function D(e){var t=i in e;if(x()){if(!t)throw new Error("No `text/plain` value was specified.");if(A(e[i]))return!0;throw new Error("Copying failed, possibly because the user rejected it.")}return T(e)?(o("regular execCopy worked"),!0):navigator.userAgent.indexOf("Edge")>-1?(o('UA "Edge" => assuming success'),!0):N(document.body,e)?(o("copyUsingTempSelection worked"),!0):R(e)?(o("copyUsingTempElem worked"),!0):!!O(e[i])&&(o("copyTextUsingDOM worked"),!0)}S.resolve(),S.resolve(!1);function P(e){return new S((t,n)=>{try{t(e())}catch(r){n(r)}})}function M(e){var t={};return t[i]=e,t}function B(e){return P(()=>E?(o("Using `navigator.clipboard.writeText()`."),E(e).catch(F)):S.resolve(F(e)))}function F(e){if(!D(M(e)))throw new Error("writeText() failed")}async function $(e){await B(e)}},39705:function(e,t,n){"use strict";n.d(t,{qe:function(){return z},yq:function(){return G},Tv:function(){return q},H0:function(){return j},hk:function(){return V}});const r={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};for(const X in r)Object.freeze(r[X]);var i=Object.freeze(r);const a=Object.create(null);for(const X in i)Object.hasOwn(i,X)&&(a[i[X]]=X);const o={to:{},get:{}};function s(e,t,n){return Math.min(Math.max(t,e),n)}function l(e){const t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}o.get=function(e){const t=e.slice(0,3).toLowerCase();let n,r;switch(t){case"hsl":n=o.get.hsl(e),r="hsl";break;case"hwb":n=o.get.hwb(e),r="hwb";break;default:n=o.get.rgb(e),r="rgb";break}return n?{model:r,value:n}:null},o.get.rgb=function(e){if(!e)return null;const t=/^#([a-f\d]{3,4})$/i,n=/^#([a-f\d]{6})([a-f\d]{2})?$/i,r=/^rgba?\(\s*([+-]?(?:\d*\.)?\d+(?:e\d+)?)(?=[\s,])\s*(?:,\s*)?([+-]?(?:\d*\.)?\d+(?:e\d+)?)(?=[\s,])\s*(?:,\s*)?([+-]?(?:\d*\.)?\d+(?:e\d+)?)\s*(?:[\s,|/]\s*([+-]?(?:\d*\.)?\d+(?:e\d+)?)(%?)\s*)?\)$/i,a=/^rgba?\(\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[\s,|/]\s*([+-]?[\d.]+)(%?)\s*)?\)$/i,o=/^(\w+)$/;let l,c,u,d=[0,0,0,1];if(l=e.match(n)){for(u=l[2],l=l[1],c=0;c<3;c++){const e=2*c;d[c]=Number.parseInt(l.slice(e,e+2),16)}u&&(d[3]=Number.parseInt(u,16)/255)}else if(l=e.match(t)){for(l=l[1],u=l[3],c=0;c<3;c++)d[c]=Number.parseInt(l[c]+l[c],16);u&&(d[3]=Number.parseInt(u+u,16)/255)}else if(l=e.match(r)){for(c=0;c<3;c++)d[c]=Number.parseFloat(l[c+1]);l[4]&&(d[3]=l[5]?.01*Number.parseFloat(l[4]):Number.parseFloat(l[4]))}else{if(!(l=e.match(a)))return(l=e.toLowerCase().match(o))?"transparent"===l[1]?[0,0,0,0]:Object.hasOwn(i,l[1])?(d=i[l[1]].slice(),d[3]=1,d):null:null;for(c=0;c<3;c++)d[c]=Math.round(2.55*Number.parseFloat(l[c+1]));l[4]&&(d[3]=l[5]?.01*Number.parseFloat(l[4]):Number.parseFloat(l[4]))}for(c=0;c<3;c++)d[c]=s(d[c],0,255);return d[3]=s(d[3],0,1),d},o.get.hsl=function(e){if(!e)return null;const t=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d.]+)%\s*,?\s*([+-]?[\d.]+)%\s*(?:[,|/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:e[+-]?\d+)?)\s*)?\)$/i,n=e.match(t);if(n){const e=Number.parseFloat(n[4]),t=(Number.parseFloat(n[1])%360+360)%360,r=s(Number.parseFloat(n[2]),0,100),i=s(Number.parseFloat(n[3]),0,100),a=s(Number.isNaN(e)?1:e,0,1);return[t,r,i,a]}return null},o.get.hwb=function(e){if(!e)return null;const t=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*[\s,]\s*([+-]?[\d.]+)%\s*[\s,]\s*([+-]?[\d.]+)%\s*(?:[\s,]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:e[+-]?\d+)?)\s*)?\)$/i,n=e.match(t);if(n){const e=Number.parseFloat(n[4]),t=(Number.parseFloat(n[1])%360+360)%360,r=s(Number.parseFloat(n[2]),0,100),i=s(Number.parseFloat(n[3]),0,100),a=s(Number.isNaN(e)?1:e,0,1);return[t,r,i,a]}return null},o.to.hex=function(...e){return"#"+l(e[0])+l(e[1])+l(e[2])+(e[3]<1?l(Math.round(255*e[3])):"")},o.to.rgb=function(...e){return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},o.to.rgb.percent=function(...e){const t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+n+"%, "+r+"%)":"rgba("+t+"%, "+n+"%, "+r+"%, "+e[3]+")"},o.to.hsl=function(...e){return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},o.to.hwb=function(...e){let t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},o.to.keyword=function(...e){return a[e.slice(0,3)]};var c=o;const u={};for(const X of Object.keys(i))u[i[X]]=X;const d={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},oklab:{channels:3,labels:["okl","oka","okb"]},lch:{channels:3,labels:"lch"},oklch:{channels:3,labels:["okl","okc","okh"]},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var h=d;const p=(6/29)**3;function f(e){const t=e>.0031308?1.055*e**(1/2.4)-.055:12.92*e;return Math.min(Math.max(0,t),1)}function m(e){return e>.04045?((e+.055)/1.055)**2.4:e/12.92}for(const X of Object.keys(d)){if(!("channels"in d[X]))throw new Error("missing channels property: "+X);if(!("labels"in d[X]))throw new Error("missing channel labels property: "+X);if(d[X].labels.length!==d[X].channels)throw new Error("channel and label counts mismatch: "+X);const{channels:e,labels:t}=d[X];delete d[X].channels,delete d[X].labels,Object.defineProperty(d[X],"channels",{value:e}),Object.defineProperty(d[X],"labels",{value:t})}function g(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}function v(){const e={},t=Object.keys(h);for(let{length:n}=t,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}function b(e){const t=v(),n=[e];t[e].distance=0;while(n.length>0){const e=n.pop(),r=Object.keys(h[e]);for(let{length:i}=r,a=0;a<i;a++){const i=r[a],o=t[i];-1===o.distance&&(o.distance=t[e].distance+1,o.parent=e,n.unshift(i))}}return t}function y(e,t){return function(n){return t(e(n))}}function _(e,t){const n=[t[e].parent,e];let r=h[t[e].parent][e],i=t[e].parent;while(t[i].parent)n.unshift(t[i].parent),r=y(h[t[i].parent][i],r),i=t[i].parent;return r.conversion=n,r}function w(e){const t=b(e),n={},r=Object.keys(t);for(let{length:i}=r,a=0;a<i;a++){const e=r[a],i=t[e];null!==i.parent&&(n[e]=_(e,t))}return n}d.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=a-i;let s,l;switch(a){case i:s=0;break;case t:s=(n-r)/o;break;case n:s=2+(r-t)/o;break;case r:s=4+(t-n)/o;break}s=Math.min(60*s,360),s<0&&(s+=360);const c=(i+a)/2;return l=a===i?0:c<=.5?o/(a+i):o/(2-a-i),[s,100*l,100*c]},d.rgb.hsv=function(e){let t,n,r,i,a;const o=e[0]/255,s=e[1]/255,l=e[2]/255,c=Math.max(o,s,l),u=c-Math.min(o,s,l),d=function(e){return(c-e)/6/u+.5};if(0===u)i=0,a=0;else{switch(a=u/c,t=d(o),n=d(s),r=d(l),c){case o:i=r-n;break;case s:i=1/3+t-r;break;case l:i=2/3+n-t;break}i<0?i+=1:i>1&&(i-=1)}return[360*i,100*a,100*c]},d.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const i=d.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[i,100*a,100*r]},d.rgb.oklab=function(e){const t=m(e[0]/255),n=m(e[1]/255),r=m(e[2]/255),i=Math.cbrt(.4122214708*t+.5363325363*n+.0514459929*r),a=Math.cbrt(.2119034982*t+.6806995451*n+.1073969566*r),o=Math.cbrt(.0883024619*t+.2817188376*n+.6299787005*r),s=.2104542553*i+.793617785*a-.0040720468*o,l=1.9779984951*i-2.428592205*a+.4505937099*o,c=.0259040371*i+.7827717662*a-.808675766*o;return[100*s,100*l,100*c]},d.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(1-t,1-n,1-r),a=(1-t-i)/(1-i)||0,o=(1-n-i)/(1-i)||0,s=(1-r-i)/(1-i)||0;return[100*a,100*o,100*s,100*i]},d.rgb.keyword=function(e){const t=u[e];if(t)return t;let n,r=Number.POSITIVE_INFINITY;for(const a of Object.keys(i)){const t=i[a],o=g(e,t);o<r&&(r=o,n=a)}return n},d.keyword.rgb=function(e){return[...i[e]]},d.rgb.xyz=function(e){const t=m(e[0]/255),n=m(e[1]/255),r=m(e[2]/255),i=.4124564*t+.3575761*n+.1804375*r,a=.2126729*t+.7151522*n+.072175*r,o=.0193339*t+.119192*n+.9503041*r;return[100*i,100*a,100*o]},d.rgb.lab=function(e){const t=d.rgb.xyz(e);let n=t[0],r=t[1],i=t[2];n/=95.047,r/=100,i/=108.883,n=n>p?n**(1/3):7.787*n+16/116,r=r>p?r**(1/3):7.787*r+16/116,i=i>p?i**(1/3):7.787*i+16/116;const a=116*r-16,o=500*(n-r),s=200*(r-i);return[a,o,s]},d.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let i,a;if(0===n)return a=255*r,[a,a,a];const o=r<.5?r*(1+n):r+n-r*n,s=2*r-o,l=[0,0,0];for(let c=0;c<3;c++)i=t+1/3*-(c-1),i<0&&i++,i>1&&i--,a=6*i<1?s+6*(o-s)*i:2*i<1?o:3*i<2?s+(o-s)*(2/3-i)*6:s,l[c]=255*a;return l},d.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,i=n;const a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,i*=a<=1?a:2-a;const o=(r+n)/2,s=0===r?2*i/(a+i):2*n/(r+n);return[t,100*s,100*o]},d.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const i=Math.floor(t)%6,a=t-Math.floor(t),o=255*r*(1-n),s=255*r*(1-n*a),l=255*r*(1-n*(1-a));switch(r*=255,i){case 0:return[r,l,o];case 1:return[s,r,o];case 2:return[o,r,l];case 3:return[o,s,r];case 4:return[l,o,r];case 5:return[r,o,s]}},d.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,i=Math.max(r,.01);let a,o;o=(2-n)*r;const s=(2-n)*i;return a=n*i,a/=s<=1?s:2-s,a=a||0,o/=2,[t,100*a,100*o]},d.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const i=n+r;let a;i>1&&(n/=i,r/=i);const o=Math.floor(6*t),s=1-r;a=6*t-o,0!==(1&o)&&(a=1-a);const l=n+a*(s-n);let c,u,d;switch(o){default:case 6:case 0:c=s,u=l,d=n;break;case 1:c=l,u=s,d=n;break;case 2:c=n,u=s,d=l;break;case 3:c=n,u=l,d=s;break;case 4:c=l,u=n,d=s;break;case 5:c=s,u=n,d=l;break}return[255*c,255*u,255*d]},d.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100,a=1-Math.min(1,t*(1-i)+i),o=1-Math.min(1,n*(1-i)+i),s=1-Math.min(1,r*(1-i)+i);return[255*a,255*o,255*s]},d.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let i,a,o;return i=3.2404542*t+-1.5371385*n+-.4985314*r,a=-.969266*t+1.8760108*n+.041556*r,o=.0556434*t+-.2040259*n+1.0572252*r,i=f(i),a=f(a),o=f(o),[255*i,255*a,255*o]},d.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>p?t**(1/3):7.787*t+16/116,n=n>p?n**(1/3):7.787*n+16/116,r=r>p?r**(1/3):7.787*r+16/116;const i=116*n-16,a=500*(t-n),o=200*(n-r);return[i,a,o]},d.xyz.oklab=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,i=Math.cbrt(.8189330101*t+.3618667424*n-.1288597137*r),a=Math.cbrt(.0329845436*t+.9293118715*n+.0361456387*r),o=Math.cbrt(.0482003018*t+.2643662691*n+.633851707*r),s=.2104542553*i+.793617785*a-.0040720468*o,l=1.9779984951*i-2.428592205*a+.4505937099*o,c=.0259040371*i+.7827717662*a-.808675766*o;return[100*s,100*l,100*c]},d.oklab.oklch=function(e){return d.lab.lch(e)},d.oklab.xyz=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,i=(.999999998*t+.396337792*n+.215803758*r)**3,a=(1.000000008*t-.105561342*n-.063854175*r)**3,o=(1.000000055*t-.089484182*n-1.291485538*r)**3,s=1.227013851*i-.55779998*a+.281256149*o,l=-.040580178*i+1.11225687*a-.071676679*o,c=-.076381285*i-.421481978*a+1.58616322*o;return[100*s,100*l,100*c]},d.oklab.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,i=(t+.3963377774*n+.2158037573*r)**3,a=(t-.1055613458*n-.0638541728*r)**3,o=(t-.0894841775*n-1.291485548*r)**3,s=f(4.0767416621*i-3.3077115913*a+.2309699292*o),l=f(-1.2684380046*i+2.6097574011*a-.3413193965*o),c=f(-.0041960863*i-.7034186147*a+1.707614701*o);return[255*s,255*l,255*c]},d.oklch.oklab=function(e){return d.lch.lab(e)},d.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let i,a,o;a=(t+16)/116,i=n/500+a,o=a-r/200;const s=a**3,l=i**3,c=o**3;return a=s>p?s:(a-16/116)/7.787,i=l>p?l:(i-16/116)/7.787,o=c>p?c:(o-16/116)/7.787,i*=95.047,a*=100,o*=108.883,[i,a,o]},d.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let i;const a=Math.atan2(r,n);i=360*a/2/Math.PI,i<0&&(i+=360);const o=Math.sqrt(n*n+r*r);return[t,o,i]},d.lch.lab=function(e){const t=e[0],n=e[1],r=e[2],i=r/360*2*Math.PI,a=n*Math.cos(i),o=n*Math.sin(i);return[t,a,o]},d.rgb.ansi16=function(e,t=null){const[n,r,i]=e;let a=null===t?d.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),0===a)return 30;let o=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return 2===a&&(o+=60),o},d.hsv.ansi16=function(e){return d.rgb.ansi16(d.hsv.rgb(e),e[2])},d.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];if(t>>4===n>>4&&n>>4===r>>4)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;const i=16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5);return i},d.ansi16.rgb=function(e){e=e[0];let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=.5*(Math.trunc(e>50)+1),r=(1&t)*n*255,i=(t>>1&1)*n*255,a=(t>>2&1)*n*255;return[r,i,a]},d.ansi256.rgb=function(e){if(e=e[0],e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;e-=16;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,i=t%6/5*255;return[n,r,i]},d.rgb.hex=function(e){const t=((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2])),n=t.toString(16).toUpperCase();return"000000".slice(n.length)+n},d.hex.rgb=function(e){const t=e.toString(16).match(/[a-f\d]{6}|[a-f\d]{3}/i);if(!t)return[0,0,0];let n=t[0];3===t[0].length&&(n=[...n].map(e=>e+e).join(""));const r=Number.parseInt(n,16),i=r>>16&255,a=r>>8&255,o=255&r;return[i,a,o]},d.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),o=i-a;let s;const l=o<1?a/(1-o):0;return s=o<=0?0:i===t?(n-r)/o%6:i===n?2+(r-t)/o:4+(t-n)/o,s/=6,s%=1,[360*s,100*o,100*l]},d.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let i=0;return r<1&&(i=(n-.5*r)/(1-r)),[e[0],100*r,100*i]},d.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},d.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];const i=[0,0,0],a=t%1*6,o=a%1,s=1-o;let l=0;switch(Math.floor(a)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=s,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=s,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=s}return l=(1-n)*r,[255*(n*i[0]+l),255*(n*i[1]+l),255*(n*i[2]+l)]},d.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let i=0;return r>0&&(i=t/r),[e[0],100*i,100*r]},d.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100,r=n*(1-t)+.5*t;let i=0;return r>0&&r<.5?i=t/(2*r):r>=.5&&r<1&&(i=t/(2*(1-r))),[e[0],100*i,100*r]},d.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],100*(r-t),100*(1-r)]},d.hwb.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=1-n,i=r-t;let a=0;return i<1&&(a=(r-i)/(1-i)),[e[0],100*i,100*a]},d.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},d.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},d.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},d.gray.hsl=function(e){return[0,0,e[0]]},d.gray.hsv=d.gray.hsl,d.gray.hwb=function(e){return[0,100,e[0]]},d.gray.cmyk=function(e){return[0,0,0,e[0]]},d.gray.lab=function(e){return[e[0],0,0]},d.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),n=(t<<16)+(t<<8)+t,r=n.toString(16).toUpperCase();return"000000".slice(r.length)+r},d.rgb.gray=function(e){const t=(e[0]+e[1]+e[2])/3;return[t/255*100]};var E=w;const S={},k=Object.keys(h);function x(e){const t=function(...t){const n=t[0];return void 0===n||null===n?n:(n.length>1&&(t=n),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}function A(e){const t=function(...t){const n=t[0];if(void 0===n||null===n)return n;n.length>1&&(t=n);const r=e(t);if("object"===typeof r)for(let{length:e}=r,i=0;i<e;i++)r[i]=Math.round(r[i]);return r};return"conversion"in e&&(t.conversion=e.conversion),t}for(const X of k){S[X]={},Object.defineProperty(S[X],"channels",{value:h[X].channels}),Object.defineProperty(S[X],"labels",{value:h[X].labels});const e=E(X),t=Object.keys(e);for(const n of t){const t=e[n];S[X][n]=A(t),S[X][n].raw=x(t)}}var C=S;const T=["keyword","gray","hex"],N={};for(const X of Object.keys(C))N[[...C[X].labels].sort().join("")]=X;const R={};function O(e,t){if(!(this instanceof O))return new O(e,t);if(t&&t in T&&(t=null),t&&!(t in C))throw new Error("Unknown model: "+t);let n,r;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof O)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if("string"===typeof e){const t=c.get(e);if(null===t)throw new Error("Unable to parse color from string: "+e);this.model=t.model,r=C[this.model].channels,this.color=t.value.slice(0,r),this.valpha="number"===typeof t.value[r]?t.value[r]:1}else if(e.length>0){this.model=t||"rgb",r=C[this.model].channels;const n=Array.prototype.slice.call(e,0,r);this.color=B(n,r),this.valpha="number"===typeof e[r]?e[r]:1}else if("number"===typeof e)this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;const t=Object.keys(e);"alpha"in e&&(t.splice(t.indexOf("alpha"),1),this.valpha="number"===typeof e.alpha?e.alpha:0);const r=t.sort().join("");if(!(r in N))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=N[r];const{labels:i}=C[this.model],a=[];for(n=0;n<i.length;n++)a.push(e[i[n]]);this.color=B(a)}if(R[this.model])for(r=C[this.model].channels,n=0;n<r;n++){const e=R[this.model][n];e&&(this.color[n]=e(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}O.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in c.to?this:this.rgb();t=t.round("number"===typeof e?e:1);const n=1===t.valpha?t.color:[...t.color,this.valpha];return c.to[t.model](...n)},percentString(e){const t=this.rgb().round("number"===typeof e?e:1),n=1===t.valpha?t.color:[...t.color,this.valpha];return c.to.rgb.percent(...n)},array(){return 1===this.valpha?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=C[this.model],{labels:n}=C[this.model];for(let r=0;r<t;r++)e[n[r]]=this.color[r];return 1!==this.valpha&&(e.alpha=this.valpha),e},unitArray(){const e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e},unitObject(){const e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new O([...this.color.map(L(e)),this.valpha],this.model)},alpha(e){return void 0!==e?new O([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:D("rgb",0,P(255)),green:D("rgb",1,P(255)),blue:D("rgb",2,P(255)),hue:D(["hsl","hsv","hsl","hwb","hcg"],0,e=>(e%360+360)%360),saturationl:D("hsl",1,P(100)),lightness:D("hsl",2,P(100)),saturationv:D("hsv",1,P(100)),value:D("hsv",2,P(100)),chroma:D("hcg",1,P(100)),gray:D("hcg",2,P(100)),white:D("hwb",1,P(100)),wblack:D("hwb",2,P(100)),cyan:D("cmyk",0,P(100)),magenta:D("cmyk",1,P(100)),yellow:D("cmyk",2,P(100)),black:D("cmyk",3,P(100)),x:D("xyz",0,P(95.047)),y:D("xyz",1,P(100)),z:D("xyz",2,P(108.833)),l:D("lab",0,P(100)),a:D("lab",1),b:D("lab",2),keyword(e){return void 0!==e?new O(e):C[this.model].keyword(this.color)},hex(e){return void 0!==e?new O(e):c.to.hex(...this.rgb().round().color)},hexa(e){if(void 0!==e)return new O(e);const t=this.rgb().round().color;let n=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===n.length&&(n="0"+n),c.to.hex(...t)+n},rgbNumber(){const e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity(){const e=this.rgb().color,t=[];for(const[n,r]of e.entries()){const e=r/255;t[n]=e<=.04045?e/12.92:((e+.055)/1.055)**2.4}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color,t=(2126*e[0]+7152*e[1]+722*e[2])/1e4;return t<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return O.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const n=e.rgb(),r=this.rgb(),i=void 0===t?.5:t,a=2*i-1,o=n.alpha()-r.alpha(),s=((a*o===-1?a:(a+o)/(1+a*o))+1)/2,l=1-s;return O.rgb(s*n.red()+l*r.red(),s*n.green()+l*r.green(),s*n.blue()+l*r.blue(),n.alpha()*i+r.alpha()*(1-i))}};for(const X of Object.keys(C)){if(T.includes(X))continue;const{channels:e}=C[X];O.prototype[X]=function(...e){return this.model===X?new O(this):e.length>0?new O(e,X):new O([...M(C[this.model][X].raw(this.color)),this.valpha],X)},O[X]=function(...t){let n=t[0];return"number"===typeof n&&(n=B(t,e)),new O(n,X)}}function I(e,t){return Number(e.toFixed(t))}function L(e){return function(t){return I(t,e)}}function D(e,t,n){e=Array.isArray(e)?e:[e];for(const r of e)(R[r]||=[])[t]=n;return e=e[0],function(r){let i;return void 0!==r?(n&&(r=n(r)),i=this[e](),i.color[t]=r,i):(i=this[e]().color[t],n&&(i=n(i)),i)}}function P(e){return function(t){return Math.max(0,Math.min(e,t))}}function M(e){return Array.isArray(e)?e:[e]}function B(e,t){for(let n=0;n<t;n++)"number"!==typeof e[n]&&(e[n]=0);return e}var F=O,$=n(4364);const U={black:"#000000",white:"#ffffff"};function j(e){return F(e)}function V(e){const t=e.rgb().array(),n=Math.round((299*parseInt(t[0])+587*parseInt(t[1])+114*parseInt(t[2]))/1e3);return n>125?"black":"white"}function K(e){const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null}function G(e){return U[e]||e}function H(e){const t=/^rgb\(([0-9]{1,3}),\s*([0-9]{1,3}),\s*([0-9]{1,3})\)$/i.exec(e);return t?{r:parseInt(t[1],10),g:parseInt(t[2],10),b:parseInt(t[3],10)}:null}function z(e){let t;return e.startsWith("rgb(")?t=H(e):e.startsWith("#")?t=K(e):$.warn(`Unable to parse color: ${e}`),t||{r:0,g:0,b:0}}function q(e){return e.includes("#")&&4===e.length?`#${e[1]}${e[1]}${e[2]}${e[2]}${e[3]}${e[3]}`:e.includes("#")||3!==e.length?e:`${e[0]}${e[0]}${e[1]}${e[1]}${e[2]}${e[2]}`}},37648:function(e,t,n){"use strict";n.d(t,{Cd:function(){return S},Kq:function(){return x},Ng:function(){return h},Yd:function(){return m},fs:function(){return k},mH:function(){return g},xs:function(){return u}});var r=n(92043),i=n(68851),a=n(20246),o=n.n(a),s=n(76978),l=n(2334),c=n(4364);const u=["string","multiline","masked","password","float","int","date","blob","boolean","version"],d=["apiVersion","kind","metadata","metadata.name","spec","spec.selector","spec.selector.matchLabels","spec.template","spec.template.metadata","spec.template.metadata.labels","spec.template.spec.containers.name","spec.template.spec.containers.image"],h=["metadata.clusterName","metadata.creationTimestamp","metadata.deletionGracePeriodSeconds","metadata.deletionTimestamp","metadata.finalizers","metadata.generateName","metadata.generation","metadata.initializers","metadata.managedFields","metadata.ownerReferences","metadata.resourceVersion","metadata.relationships","metadata.selfLink","metadata.state","metadata.uid","spec.versions.schema","status","stringData","links","_name","_labels","_annotations"],p=["metadata.managedFields","metadata.relationships","metadata.state","status","links","type","id"],f=2;function m(e,t,n,r,i){return g(e,t,n,!0,0,"",null,r,i)}function g(e,t,n,r=!0,a=0,l="",f=null,m={},_=null){let w,E,x,C;if(n=n||{},0===a){if(w=(0,i.jq)(e,"id",t),!w)return`Error loading schema for ${t}`;E=w,x=E.schemaDefinitions,C=E.resourceFields;const r=w.attributes||{};n.apiVersion=(r.group?`${r.group}/${r.version}`:r.version)||n.apiVersion,n.kind=r.kind||n.kind}else if(E=(0,i.jq)(e,"id",f),E.requiresResourceFields)x=E.schemaDefinitions,C=x[t]?.resourceFields;else{if(w=(0,i.jq)(e,"id",t),!w)return`Error loading schema for ${t}`;C=w.resourceFields}f||(f=t);const T=[];if(_||(_=n?.commentFieldsOptions),r){const e=d.slice();for(let t=e.length-1;t>=0;t--){let n=e[t].split(/\./);while(n.length)(0,i.PG)(e,n.join(".")),n=n.slice(0,-1)}for(const t of e){const e=t.split(/\./),n=e[e.length-1],r=e.slice(0,-1).join(".");r===l&&C&&C[n]&&(0,i.PG)(T,n)}}const N=Object.keys(C||{});N.forEach(e=>{("undefined"!==typeof n[e]||0===a&&"_type"===e)&&(0,i.PG)(T,e)});for(const o in n)"undefined"!==typeof n[o]&&(0,i.PG)(T,o);for(const o of m.activelyRemove||p){const e=o.split(/\./),t=e[e.length-1],n=e.slice(0,-1).join(".");n===l&&(0,i.Gj)(T,t)}for(const o of h){const e=o.split(/\./),t=e[e.length-1],n=e.slice(0,-1).join(".");n===l&&C&&C[t]&&(0,i.Gj)(N,t)}(0,i.$M)(N,T);const R=T.map(e=>L(e)),O=N.map(e=>"metadata"===l&&"namespace"===e&&E&&!E.attributes?.namespaced?null:v(L(e))),I=[...R,...O].filter(e=>null!==e).join("\n").trim();return I;function L(t){const d=C?.[t];let h=`${t}:`;if("_type"===t&&(h="type:"),_=D(_,n,l,t),Array.isArray(_)&&_.length){const e=l?`${l}.${t}`:t;_.some(t=>`${t.path}.${t.key}`===e)&&(h=`#${h}`)}if(!d){if(n[t])try{const e=(0,s.nY)(n),r=o().dump(e[t]);return"object"===typeof n[t]||Array.isArray(n[t])?h+=`\n${b(r.trim())}`:h+=` ${r.trim()}`,h}catch(N){c.error(`Error: Unable to parse map data for yaml key: ${t}`,N)}return null}const p=k(d.type),v=S("map",p,d),w=S("array",p,d),E=S("reference",p);if(v){if(n[t])try{const e=(0,s.nY)(n),r=A(e[t],m[t]);h+=`\n${b(r)}`}catch(N){c.error(`Error: Unable to parse map data for yaml of type: ${p}`,N)}if(u.includes(v))h+=`# key: ${v}`;else{const n=g(e,v,null,r,a+1,l?`${l}.${t}`:t,f,m,_);let i=b(n);i=i.replace(/^(#)?\s\s\s\s/,"$1"),h+=`${i}`}return h}if(w){if(n[t])try{const e=(0,s.nY)(n);if(e?.[t]){const r=o().dump(e[t]);let i;if(Array.isArray(_)&&_.length){let e=r.split("\n");_.forEach(r=>{`${l}.${t}`===r.path&&void 0!==n[t][r.key]&&(e=e.map((e,t)=>t===Number(r.key)?`#${e}`:e))}),i=e.join("\n").trim()}else i=r.trim();h+=`\n${b(i)}`}}catch(N){c.error(`Error: Unable to parse array data for yaml of type: ${p}`,N)}if(u.includes(w))h+=`\n# - ${w}`;else{const n=g(e,w,null,!1,a+1,l?`${l}.${t}`:t,f,m,_);let r=b(n,2);r=r.replace(/^(#)?\s*\s\s([^\s])/,"$1 - $2"),h+=`\n${r}`}return h}if(E)return h+=` #${E}`,h;if(u.includes(p))return"_type"===t&&"undefined"===typeof n[t]&&"undefined"!==typeof n["type"]?h+=` ${y(n["type"])}`:"undefined"===typeof n[t]?h+=` #${y(p)}`:h+=` ${y(n[t])}`,h;if("json"===p||".spec"===p)try{const e=o().dump(n[t]);return h+=e?`\n${b(e.trim())}`:` #${p}`,h}catch(N){}const T=x?.[p]||(0,i.jq)(e,"id",p);if(T){let i;if(T?.resourceFields&&!(0,s.Im)(T?.resourceFields))i=g(e,p,n[t],r,a+1,l?`${l}.${t}`:t,f,m,_);else if(n[t])try{const e=o().dump(n[t]);if(Array.isArray(_)&&_.length){let r=e.split("\n");_.forEach(e=>{if(`${l}.${t}`===e.path&&void 0!==n[t][e.key]){const t=`${e.key}:`;r=r.map(e=>e.trim().startsWith(t)?`# ${e}`:e)}}),i=r.join("\n").trim()}else i=e.trim()}catch(N){c.error(`Error: Unable to parse data for yaml of type: ${p}`,N)}h+=`\n${b(i)}`}else h+=` #${p}`;return h}function D(e,t,n,r){if(e&&Array.isArray(e)&&e.length){const i=n?`${n}.${r}`:r;e.some(e=>`${e.path}.${e.key}`===i)&&(e=[...e,...Object.keys(t[r]).map(e=>({path:`${n}.${r}`,key:e}))])}return e}}function v(e){return(e||"").split("\n").map(e=>`#${e.replace(/#/g,"")}`).join("\n")}function b(e,t=1){return(0,r.pZ)(e,t*f," ",/^#/)}function y(e){return o().dump(e).trim()}function _(e,t){const n=w(e,t);return{header:n,indentation:E(n)}}function w(e,t){const n=`(${t})[\\:][\\s|\\t]+[\\|\\>][\\d]*[\\-\\+]?`,r=new RegExp(n,"gi"),i=e.match(r);return i?.[0]||""}function E(e){const t=e.substr(e.indexOf(":")+1),n=t.match(/\d+/);return n?.[0]||""}function S(e,t,n=null){const[r,i]=(0,l.parseType)(t,n);if(e===r)return k(i||r)}function k(e){return"integer"===e?"int":"io.k8s.apimachinery.pkg.api.resource.Quantity"===e?"string":e}function x(e){const t=o().dump(e||{});return"{}\n"===t?"":t}function A(e,t={lineWidth:-1}){const n=o().dump(e,t);let r=n;const i=Object.keys(e).filter(t=>{if("string"===typeof e[t])return e[t].includes("\n")});if(i.length)for(const a of i){const{header:e,indentation:n}=_(r,a),i=t[a]?.scalarStyle??"|",o=t[a]?.chomping??"";e&&(r=r.replace(e,`${a}: ${i}${o}${n}`))}return r}},8755:function(e,t,n){"use strict";n.d(t,{Kz:function(){return o},en:function(){return a},pP:function(){return s}});var r=n(1048);function i(e){let t=0;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t=(t<<5)-t+r,t&=t}return new Uint32Array([t])[0].toString(36)}function a(e){return i(JSON.stringify(e,null,2))}function o(e){return"string"===typeof e?0===e.length:0===e.byteLength}function s(e){return"string"===typeof e&&(e=new r.Buffer(e,"utf8")),ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}},4514:function(e,t,n){"use strict";n.d(t,{u:function(){return T},KA:function(){return A},dQ:function(){return R},Fx:function(){return N}});var r=n(1048),i=n(8755);const a=64,o=16;function s(){this.state=[1732584193,4023233417,2562383102,271733878],this.buffer=new DataView(new ArrayBuffer(a)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}var l=s;function c(e,t,n,r,i,a){return t=(t+e&4294967295)+(r+a&4294967295)&4294967295,(t<<i|t>>>32-i)+n&4294967295}function u(e,t,n,r,i,a,o){return c(t&n|~t&r,e,t,i,a,o)}function d(e,t,n,r,i,a,o){return c(t&r|n&~r,e,t,i,a,o)}function h(e,t,n,r,i,a,o){return c(t^n^r,e,t,i,a,o)}function p(e,t,n,r,i,a,o){return c(n^(t|~r),e,t,i,a,o)}s.BLOCK_SIZE=a,s.prototype.update=function(e){if((0,i.Kz)(e))return this;if(this.finished)throw new Error("Attempted to update an already finished hash.");const t=(0,i.pP)(e);let n=0,r=t.byteLength;this.bytesHashed+=r;while(r>0)this.buffer.setUint8(this.bufferLength++,t[n++]),r--,this.bufferLength===a&&(this.hashBuffer(),this.bufferLength=0);return this},s.prototype.digest=function(e){if(!this.finished){const e=this,t=e.buffer,n=e.bufferLength,r=e.bytesHashed,i=8*r;if(t.setUint8(this.bufferLength++,128),n%a>=a-8){for(let e=this.bufferLength;e<a;e++)t.setUint8(e,0);this.hashBuffer(),this.bufferLength=0}for(let o=this.bufferLength;o<a-8;o++)t.setUint8(o,0);t.setUint32(a-8,i>>>0,!0),t.setUint32(a-4,Math.floor(i/4294967296),!0),this.hashBuffer(),this.finished=!0}const t=new DataView(new ArrayBuffer(o));for(let r=0;r<4;r++)t.setUint32(4*r,this.state[r],!0);const n=new r.Buffer(t.buffer,t.byteOffset,t.byteLength);return e?n.toString(e):n},s.prototype.hashBuffer=function(){const e=this,t=e.buffer,n=e.state;let r=n[0],i=n[1],a=n[2],o=n[3];r=u(r,i,a,o,t.getUint32(0,!0),7,3614090360),o=u(o,r,i,a,t.getUint32(4,!0),12,3905402710),a=u(a,o,r,i,t.getUint32(8,!0),17,606105819),i=u(i,a,o,r,t.getUint32(12,!0),22,3250441966),r=u(r,i,a,o,t.getUint32(16,!0),7,4118548399),o=u(o,r,i,a,t.getUint32(20,!0),12,1200080426),a=u(a,o,r,i,t.getUint32(24,!0),17,2821735955),i=u(i,a,o,r,t.getUint32(28,!0),22,4249261313),r=u(r,i,a,o,t.getUint32(32,!0),7,1770035416),o=u(o,r,i,a,t.getUint32(36,!0),12,2336552879),a=u(a,o,r,i,t.getUint32(40,!0),17,4294925233),i=u(i,a,o,r,t.getUint32(44,!0),22,2304563134),r=u(r,i,a,o,t.getUint32(48,!0),7,1804603682),o=u(o,r,i,a,t.getUint32(52,!0),12,4254626195),a=u(a,o,r,i,t.getUint32(56,!0),17,2792965006),i=u(i,a,o,r,t.getUint32(60,!0),22,1236535329),r=d(r,i,a,o,t.getUint32(4,!0),5,4129170786),o=d(o,r,i,a,t.getUint32(24,!0),9,3225465664),a=d(a,o,r,i,t.getUint32(44,!0),14,643717713),i=d(i,a,o,r,t.getUint32(0,!0),20,3921069994),r=d(r,i,a,o,t.getUint32(20,!0),5,3593408605),o=d(o,r,i,a,t.getUint32(40,!0),9,38016083),a=d(a,o,r,i,t.getUint32(60,!0),14,3634488961),i=d(i,a,o,r,t.getUint32(16,!0),20,3889429448),r=d(r,i,a,o,t.getUint32(36,!0),5,568446438),o=d(o,r,i,a,t.getUint32(56,!0),9,3275163606),a=d(a,o,r,i,t.getUint32(12,!0),14,4107603335),i=d(i,a,o,r,t.getUint32(32,!0),20,1163531501),r=d(r,i,a,o,t.getUint32(52,!0),5,2850285829),o=d(o,r,i,a,t.getUint32(8,!0),9,4243563512),a=d(a,o,r,i,t.getUint32(28,!0),14,1735328473),i=d(i,a,o,r,t.getUint32(48,!0),20,2368359562),r=h(r,i,a,o,t.getUint32(20,!0),4,4294588738),o=h(o,r,i,a,t.getUint32(32,!0),11,2272392833),a=h(a,o,r,i,t.getUint32(44,!0),16,1839030562),i=h(i,a,o,r,t.getUint32(56,!0),23,4259657740),r=h(r,i,a,o,t.getUint32(4,!0),4,2763975236),o=h(o,r,i,a,t.getUint32(16,!0),11,1272893353),a=h(a,o,r,i,t.getUint32(28,!0),16,4139469664),i=h(i,a,o,r,t.getUint32(40,!0),23,3200236656),r=h(r,i,a,o,t.getUint32(52,!0),4,681279174),o=h(o,r,i,a,t.getUint32(0,!0),11,3936430074),a=h(a,o,r,i,t.getUint32(12,!0),16,3572445317),i=h(i,a,o,r,t.getUint32(24,!0),23,76029189),r=h(r,i,a,o,t.getUint32(36,!0),4,3654602809),o=h(o,r,i,a,t.getUint32(48,!0),11,3873151461),a=h(a,o,r,i,t.getUint32(60,!0),16,530742520),i=h(i,a,o,r,t.getUint32(8,!0),23,3299628645),r=p(r,i,a,o,t.getUint32(0,!0),6,4096336452),o=p(o,r,i,a,t.getUint32(28,!0),10,1126891415),a=p(a,o,r,i,t.getUint32(56,!0),15,2878612391),i=p(i,a,o,r,t.getUint32(20,!0),21,4237533241),r=p(r,i,a,o,t.getUint32(48,!0),6,1700485571),o=p(o,r,i,a,t.getUint32(12,!0),10,2399980690),a=p(a,o,r,i,t.getUint32(40,!0),15,4293915773),i=p(i,a,o,r,t.getUint32(4,!0),21,2240044497),r=p(r,i,a,o,t.getUint32(32,!0),6,1873313359),o=p(o,r,i,a,t.getUint32(60,!0),10,4264355552),a=p(a,o,r,i,t.getUint32(24,!0),15,2734768916),i=p(i,a,o,r,t.getUint32(52,!0),21,1309151649),r=p(r,i,a,o,t.getUint32(16,!0),6,4149444226),o=p(o,r,i,a,t.getUint32(44,!0),10,3174756917),a=p(a,o,r,i,t.getUint32(8,!0),15,718787259),i=p(i,a,o,r,t.getUint32(36,!0),21,3951481745),n[0]=r+n[0]&4294967295,n[1]=i+n[1]&4294967295,n[2]=a+n[2]&4294967295,n[3]=o+n[3]&4294967295};const f=64,m=32,g=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),v=2**53-1;function b(){this.state=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}var y=b;b.BLOCK_SIZE=f,b.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");if((0,i.Kz)(e))return this;e=(0,i.pP)(e);let t=0,n=e.byteLength;if(this.bytesHashed+=n,8*this.bytesHashed>v)throw new Error("Cannot hash more than 2^53 - 1 bits");while(n>0)this.buffer[this.bufferLength++]=e[t++],n--,this.bufferLength===f&&(this.hashBuffer(),this.bufferLength=0);return this},b.prototype.digest=function(e){if(!this.finished){const e=8*this.bytesHashed,t=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),n=this.bufferLength;if(t.setUint8(this.bufferLength++,128),n%f>=f-8){for(let e=this.bufferLength;e<f;e++)t.setUint8(e,0);this.hashBuffer(),this.bufferLength=0}for(let r=this.bufferLength;r<f-8;r++)t.setUint8(r,0);t.setUint32(f-8,Math.floor(e/4294967296),!0),t.setUint32(f-4,e),this.hashBuffer(),this.finished=!0}const t=new r.Buffer(m);for(let n=0;n<8;n++)t[4*n]=this.state[n]>>>24&255,t[4*n+1]=this.state[n]>>>16&255,t[4*n+2]=this.state[n]>>>8&255,t[4*n+3]=this.state[n]>>>0&255;return e?t.toString(e):t},b.prototype.hashBuffer=function(){const e=this,t=e.buffer,n=e.state;let r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],l=n[5],c=n[6],u=n[7];for(let d=0;d<f;d++){if(d<16)this.temp[d]=(255&t[4*d])<<24|(255&t[4*d+1])<<16|(255&t[4*d+2])<<8|255&t[4*d+3];else{let e=this.temp[d-2];const t=(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10;e=this.temp[d-15];const n=(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3;this.temp[d]=(t+this.temp[d-7]|0)+(n+this.temp[d-16]|0)}const e=(((s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7))+(s&l^~s&c)|0)+(u+(g[d]+this.temp[d]|0)|0)|0,n=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&i^r&a^i&a)|0;u=c,c=l,l=s,s=o+e|0,o=a,a=i,i=r,r=e+n|0}n[0]+=r,n[1]+=i,n[2]+=a,n[3]+=o,n[4]+=s,n[5]+=l,n[6]+=c,n[7]+=u};const _=64,w=20;function E(){this.h0=1732584193,this.h1=4023233417,this.h2=2562383102,this.h3=271733878,this.h4=3285377520,this.block=new Uint32Array(80),this.offset=0,this.shift=24,this.totalLength=0}var S=E;E.BLOCK_SIZE=_,E.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");if((0,i.Kz)(e))return this;e=(0,i.pP)(e);const t=e.length;this.totalLength+=8*t;for(let n=0;n<t;n++)this.write(e[n]);return this},E.prototype.write=function(e){this.block[this.offset]|=(255&e)<<this.shift,this.shift?this.shift-=8:(this.offset++,this.shift=24),16===this.offset&&this.processBlock()},E.prototype.digest=function(e){this.write(128),(this.offset>14||14===this.offset&&this.shift<24)&&this.processBlock(),this.offset=14,this.shift=24,this.write(0),this.write(0),this.write(this.totalLength>0xffffffffff?this.totalLength/1099511627776:0),this.write(this.totalLength>4294967295?this.totalLength/4294967296:0);for(let r=24;r>=0;r-=8)this.write(this.totalLength>>r);const t=new r.Buffer(w),n=new DataView(t.buffer);return n.setUint32(0,this.h0,!1),n.setUint32(4,this.h1,!1),n.setUint32(8,this.h2,!1),n.setUint32(12,this.h3,!1),n.setUint32(16,this.h4,!1),e?t.toString(e):t},E.prototype.processBlock=function(){for(let s=16;s<80;s++){const e=this.block[s-3]^this.block[s-8]^this.block[s-14]^this.block[s-16];this.block[s]=e<<1|e>>>31}let e,t,n=this.h0,r=this.h1,i=this.h2,a=this.h3,o=this.h4;for(let s=0;s<80;s++){s<20?(e=a^r&(i^a),t=1518500249):s<40?(e=r^i^a,t=1859775393):s<60?(e=r&i|a&(r|i),t=2400959708):(e=r^i^a,t=3395469782);const l=(n<<5|n>>>27)+e+o+t+(0|this.block[s]);o=a,a=i,i=r<<30|r>>>2,r=n,n=l}this.h0=this.h0+n|0,this.h1=this.h1+r|0,this.h2=this.h2+i|0,this.h3=this.h3+a|0,this.h4=this.h4+o|0,this.offset=0;for(let s=0;s<16;s++)this.block[s]=0};const k="normal",x="url";function A(e,t=k){let n;if(null===e||"undefined"===typeof e)return e;if(n="function"===typeof r.Buffer.from&&r.Buffer.from!==Uint8Array.from?r.Buffer.from(e):new r.Buffer(e),t===x){const e={"+":"-","/":"_"};return n.toString("base64").replace(/[+/]|=+$/g,t=>e[t]||"")}return n.toString("base64")}function C(e){return null===e||"undefined"===typeof e?e:"function"===typeof r.Buffer.from&&r.Buffer.from!==Uint8Array.from?r.Buffer.from(e,"base64"):new r.Buffer(e,"base64")}function T(e){return e?C(e.replace(/[-_]/g,e=>"-"===e?"+":"/")).toString():e}function N(e,t,n){return O("md5",e,t,n)}function R(e){const t=`${e}`.length;let n=3*t/4;return e.length>0&&"="===e[e.length-1]&&(n--,e.length>1&&"="===e[e.length-2]&&n--),n}function O(e,t,n,i){const a=I(e);n||(n="binary"),"buffer"===n&&(n=void 0),"string"===typeof t&&(t=new r.Buffer(t));const o=L(t);let s=r.Buffer.isBuffer(t);if("undefined"!==typeof ArrayBuffer&&t&&t.buffer instanceof ArrayBuffer&&(s=!0),i&&"object"===typeof t&&"function"===typeof t.on&&!s)t.on("data",e=>{a.update(e)}),t.on("error",e=>{i(e)}),t.on("end",()=>{i(null,a.digest(n))});else{if(!i||!o||s||"undefined"===typeof FileReader){"object"!==typeof t||s||(t=new r.Buffer(new Uint8Array(t)));const e=a.update(t).digest(n);return i&&i(null,e),e}{let e=0;const s=524288,l=new FileReader;l.onerror=function(){i(new Error("Failed to read data."))},l.onload=function(){const t=new r.Buffer(new Uint8Array(l.result));a.update(t),e+=t.length,l._continueReading()},l._continueReading=function(){if(e>=t.size)return void i(null,a.digest(n));let r=e+s;r>t.size&&(r=t.size),l.readAsArrayBuffer(o.call(t,e,r))},l._continueReading()}}}function I(e){if(e=e.toLowerCase(),"md5"===e)return new l;if("sha256"===e)return new y;if("sha1"===e)return new S;throw new Error(`Hash algorithm ${e} is not supported`)}function L(e){const t=e.slice||e.webkitSlice||e.mozSlice;return"function"===typeof t?t:null}},6198:function(e,t,n){"use strict";n.d(t,{Is:function(){return s},PE:function(){return a},jl:function(){return o}});var r=n(47008),i=n.n(r);async function a(e,t,r="text/plain;charset=utf-8"){const i=new Blob([t],{type:r}),a=(await n.e(60).then(n.t.bind(n,45060,23))).default;return a(i,e)}function o(e){const t=new(i());for(const n in e)t.file(n,e[n]);return t.generateAsync({type:"blob"}).then(e=>e)}function s(e,t="__downloadIframe"){let n=document.getElementById(t);n||(n=document.createElement("iframe"),n.style.display="none",n.id=t,document.body.appendChild(n)),n.src=e}},99726:function(e,t,n){"use strict";n.d(t,{As:function(){return c},oV:function(){return s},rz:function(){return u}});var r=n(68851);function i(e,t,n){return(t=a(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){var t=o(e,"string");return"symbol"==typeof t?t:t+""}function o(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}class s extends Error{constructor(e){super(e),this.name=s.NAME}}i(s,"NAME","ClusterNotFoundError");class l extends Error{constructor(e,t){super(e),this.url=t,this.name=l.NAME}}i(l,"NAME","RedirectToError");Error;function c(e){let t;if("string"===typeof e)t=e;else if(e&&"object"===typeof e)if(e.message){if(t=e.message,"string"===typeof t)try{const e=JSON.parse(t).data;if(e)return e}catch{}e.detail&&(t?t+=` (${e.detail})`:t=e.detail)}else e.detail?t=e.detail:e.url&&(t=`from ${e.url}`);return t||(t=JSON.stringify(e)),t}function u(e){if(e?.response?.data){const t=e.response.data;return t&&t.message?[t.message]:[e]}return e.status&&e.message?[e.message]:(0,r.cy)(e)?e:[e]}},83416:function(e,t,n){"use strict";n.d(t,{de:function(){return o}});var r=n(35664),i=n(79401),a=n(68851);n(76978);function o(e){const t=e["getStoreNameByProductId"],n=e[`${t}/all`](r.yx),o=(0,a.jq)(n,"id",(0,i.AZ)(r.Rp.PODMONITOR));return!!o}},18110:function(e,t,n){"use strict";n.d(t,{EF:function(){return i},Rc:function(){return c},T6:function(){return f},TD:function(){return p},bE:function(){return u},os:function(){return o},pF:function(){return d},tA:function(){return s},tj:function(){return l},x8:function(){return h},xs:function(){return a}});const r="all",i="ns",a="project",o=`${i}://`,s=`${a}://`,l=r,c=`${r}://system`,u=`${r}://user`,d=`${r}://orphans`,h="namespaced://true",p="namespaced://false",f={DIVIDER:"divider",PROJECT:"project",NAMESPACE:"namespace",SPECIAL:"special"}},76978:function(e,t,n){"use strict";n.d(t,{TJ:function(){return ae},no:function(){return re},MA:function(){return ie},nY:function(){return Z},o8:function(){return Q},yo:function(){return se},BJ:function(){return Y},Ui:function(){return te},cX:function(){return oe},Jt:function(){return X},Ib:function(){return q},Im:function(){return J},n4:function(){return ne},hZ:function(){return z}});var r=n(9274),i=n(46108),a=n.n(i),o=n(53435),s=n.n(o),l=n(16238),c=n.n(l);class u{add(e,t,n){if("string"!=typeof arguments[0])for(let r in arguments[0])this.add(r,arguments[0][r],arguments[1]);else(Array.isArray(e)?e:[e]).forEach(function(e){this[e]=this[e]||[],t&&this[e][n?"unshift":"push"](t)},this)}run(e,t){this[e]=this[e]||[],this[e].forEach(function(e){e.call(t&&t.context?t.context:t,t)})}}class d{constructor(e){this.jsep=e,this.registered={}}register(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.forEach(e=>{if("object"!==typeof e||!e.name||!e.init)throw new Error("Invalid JSEP plugin format");this.registered[e.name]||(e.init(this.jsep),this.registered[e.name]=e)})}}class h{static get version(){return"1.4.0"}static toString(){return"JavaScript Expression Parser (JSEP) v"+h.version}static addUnaryOp(e){return h.max_unop_len=Math.max(e.length,h.max_unop_len),h.unary_ops[e]=1,h}static addBinaryOp(e,t,n){return h.max_binop_len=Math.max(e.length,h.max_binop_len),h.binary_ops[e]=t,n?h.right_associative.add(e):h.right_associative.delete(e),h}static addIdentifierChar(e){return h.additional_identifier_chars.add(e),h}static addLiteral(e,t){return h.literals[e]=t,h}static removeUnaryOp(e){return delete h.unary_ops[e],e.length===h.max_unop_len&&(h.max_unop_len=h.getMaxKeyLen(h.unary_ops)),h}static removeAllUnaryOps(){return h.unary_ops={},h.max_unop_len=0,h}static removeIdentifierChar(e){return h.additional_identifier_chars.delete(e),h}static removeBinaryOp(e){return delete h.binary_ops[e],e.length===h.max_binop_len&&(h.max_binop_len=h.getMaxKeyLen(h.binary_ops)),h.right_associative.delete(e),h}static removeAllBinaryOps(){return h.binary_ops={},h.max_binop_len=0,h}static removeLiteral(e){return delete h.literals[e],h}static removeAllLiterals(){return h.literals={},h}get char(){return this.expr.charAt(this.index)}get code(){return this.expr.charCodeAt(this.index)}constructor(e){this.expr=e,this.index=0}static parse(e){return new h(e).parse()}static getMaxKeyLen(e){return Math.max(0,...Object.keys(e).map(e=>e.length))}static isDecimalDigit(e){return e>=48&&e<=57}static binaryPrecedence(e){return h.binary_ops[e]||0}static isIdentifierStart(e){return e>=65&&e<=90||e>=97&&e<=122||e>=128&&!h.binary_ops[String.fromCharCode(e)]||h.additional_identifier_chars.has(String.fromCharCode(e))}static isIdentifierPart(e){return h.isIdentifierStart(e)||h.isDecimalDigit(e)}throwError(e){const t=new Error(e+" at character "+this.index);throw t.index=this.index,t.description=e,t}runHook(e,t){if(h.hooks[e]){const n={context:this,node:t};return h.hooks.run(e,n),n.node}return t}searchHook(e){if(h.hooks[e]){const t={context:this};return h.hooks[e].find(function(e){return e.call(t.context,t),t.node}),t.node}}gobbleSpaces(){let e=this.code;while(e===h.SPACE_CODE||e===h.TAB_CODE||e===h.LF_CODE||e===h.CR_CODE)e=this.expr.charCodeAt(++this.index);this.runHook("gobble-spaces")}parse(){this.runHook("before-all");const e=this.gobbleExpressions(),t=1===e.length?e[0]:{type:h.COMPOUND,body:e};return this.runHook("after-all",t)}gobbleExpressions(e){let t,n,r=[];while(this.index<this.expr.length)if(t=this.code,t===h.SEMCOL_CODE||t===h.COMMA_CODE)this.index++;else if(n=this.gobbleExpression())r.push(n);else if(this.index<this.expr.length){if(t===e)break;this.throwError('Unexpected "'+this.char+'"')}return r}gobbleExpression(){const e=this.searchHook("gobble-expression")||this.gobbleBinaryExpression();return this.gobbleSpaces(),this.runHook("after-expression",e)}gobbleBinaryOp(){this.gobbleSpaces();let e=this.expr.substr(this.index,h.max_binop_len),t=e.length;while(t>0){if(h.binary_ops.hasOwnProperty(e)&&(!h.isIdentifierStart(this.code)||this.index+e.length<this.expr.length&&!h.isIdentifierPart(this.expr.charCodeAt(this.index+e.length))))return this.index+=t,e;e=e.substr(0,--t)}return!1}gobbleBinaryExpression(){let e,t,n,r,i,a,o,s,l;if(a=this.gobbleToken(),!a)return a;if(t=this.gobbleBinaryOp(),!t)return a;i={value:t,prec:h.binaryPrecedence(t),right_a:h.right_associative.has(t)},o=this.gobbleToken(),o||this.throwError("Expected expression after "+t),r=[a,i,o];while(t=this.gobbleBinaryOp()){if(n=h.binaryPrecedence(t),0===n){this.index-=t.length;break}i={value:t,prec:n,right_a:h.right_associative.has(t)},l=t;const s=e=>i.right_a&&e.right_a?n>e.prec:n<=e.prec;while(r.length>2&&s(r[r.length-2]))o=r.pop(),t=r.pop().value,a=r.pop(),e={type:h.BINARY_EXP,operator:t,left:a,right:o},r.push(e);e=this.gobbleToken(),e||this.throwError("Expected expression after "+l),r.push(i,e)}s=r.length-1,e=r[s];while(s>1)e={type:h.BINARY_EXP,operator:r[s-1].value,left:r[s-2],right:e},s-=2;return e}gobbleToken(){let e,t,n,r;if(this.gobbleSpaces(),r=this.searchHook("gobble-token"),r)return this.runHook("after-token",r);if(e=this.code,h.isDecimalDigit(e)||e===h.PERIOD_CODE)return this.gobbleNumericLiteral();if(e===h.SQUOTE_CODE||e===h.DQUOTE_CODE)r=this.gobbleStringLiteral();else if(e===h.OBRACK_CODE)r=this.gobbleArray();else{t=this.expr.substr(this.index,h.max_unop_len),n=t.length;while(n>0){if(h.unary_ops.hasOwnProperty(t)&&(!h.isIdentifierStart(this.code)||this.index+t.length<this.expr.length&&!h.isIdentifierPart(this.expr.charCodeAt(this.index+t.length)))){this.index+=n;const e=this.gobbleToken();return e||this.throwError("missing unaryOp argument"),this.runHook("after-token",{type:h.UNARY_EXP,operator:t,argument:e,prefix:!0})}t=t.substr(0,--n)}h.isIdentifierStart(e)?(r=this.gobbleIdentifier(),h.literals.hasOwnProperty(r.name)?r={type:h.LITERAL,value:h.literals[r.name],raw:r.name}:r.name===h.this_str&&(r={type:h.THIS_EXP})):e===h.OPAREN_CODE&&(r=this.gobbleGroup())}return r?(r=this.gobbleTokenProperty(r),this.runHook("after-token",r)):this.runHook("after-token",!1)}gobbleTokenProperty(e){this.gobbleSpaces();let t=this.code;while(t===h.PERIOD_CODE||t===h.OBRACK_CODE||t===h.OPAREN_CODE||t===h.QUMARK_CODE){let n;if(t===h.QUMARK_CODE){if(this.expr.charCodeAt(this.index+1)!==h.PERIOD_CODE)break;n=!0,this.index+=2,this.gobbleSpaces(),t=this.code}this.index++,t===h.OBRACK_CODE?(e={type:h.MEMBER_EXP,computed:!0,object:e,property:this.gobbleExpression()},e.property||this.throwError('Unexpected "'+this.char+'"'),this.gobbleSpaces(),t=this.code,t!==h.CBRACK_CODE&&this.throwError("Unclosed ["),this.index++):t===h.OPAREN_CODE?e={type:h.CALL_EXP,arguments:this.gobbleArguments(h.CPAREN_CODE),callee:e}:(t===h.PERIOD_CODE||n)&&(n&&this.index--,this.gobbleSpaces(),e={type:h.MEMBER_EXP,computed:!1,object:e,property:this.gobbleIdentifier()}),n&&(e.optional=!0),this.gobbleSpaces(),t=this.code}return e}gobbleNumericLiteral(){let e,t,n="";while(h.isDecimalDigit(this.code))n+=this.expr.charAt(this.index++);if(this.code===h.PERIOD_CODE){n+=this.expr.charAt(this.index++);while(h.isDecimalDigit(this.code))n+=this.expr.charAt(this.index++)}if(e=this.char,"e"===e||"E"===e){n+=this.expr.charAt(this.index++),e=this.char,"+"!==e&&"-"!==e||(n+=this.expr.charAt(this.index++));while(h.isDecimalDigit(this.code))n+=this.expr.charAt(this.index++);h.isDecimalDigit(this.expr.charCodeAt(this.index-1))||this.throwError("Expected exponent ("+n+this.char+")")}return t=this.code,h.isIdentifierStart(t)?this.throwError("Variable names cannot start with a number ("+n+this.char+")"):(t===h.PERIOD_CODE||1===n.length&&n.charCodeAt(0)===h.PERIOD_CODE)&&this.throwError("Unexpected period"),{type:h.LITERAL,value:parseFloat(n),raw:n}}gobbleStringLiteral(){let e="";const t=this.index,n=this.expr.charAt(this.index++);let r=!1;while(this.index<this.expr.length){let t=this.expr.charAt(this.index++);if(t===n){r=!0;break}if("\\"===t)switch(t=this.expr.charAt(this.index++),t){case"n":e+="\n";break;case"r":e+="\r";break;case"t":e+="\t";break;case"b":e+="\b";break;case"f":e+="\f";break;case"v":e+="\v";break;default:e+=t}else e+=t}return r||this.throwError('Unclosed quote after "'+e+'"'),{type:h.LITERAL,value:e,raw:this.expr.substring(t,this.index)}}gobbleIdentifier(){let e=this.code,t=this.index;h.isIdentifierStart(e)?this.index++:this.throwError("Unexpected "+this.char);while(this.index<this.expr.length){if(e=this.code,!h.isIdentifierPart(e))break;this.index++}return{type:h.IDENTIFIER,name:this.expr.slice(t,this.index)}}gobbleArguments(e){const t=[];let n=!1,r=0;while(this.index<this.expr.length){this.gobbleSpaces();let i=this.code;if(i===e){n=!0,this.index++,e===h.CPAREN_CODE&&r&&r>=t.length&&this.throwError("Unexpected token "+String.fromCharCode(e));break}if(i===h.COMMA_CODE){if(this.index++,r++,r!==t.length)if(e===h.CPAREN_CODE)this.throwError("Unexpected token ,");else if(e===h.CBRACK_CODE)for(let e=t.length;e<r;e++)t.push(null)}else if(t.length!==r&&0!==r)this.throwError("Expected comma");else{const e=this.gobbleExpression();e&&e.type!==h.COMPOUND||this.throwError("Expected comma"),t.push(e)}}return n||this.throwError("Expected "+String.fromCharCode(e)),t}gobbleGroup(){this.index++;let e=this.gobbleExpressions(h.CPAREN_CODE);if(this.code===h.CPAREN_CODE)return this.index++,1===e.length?e[0]:!!e.length&&{type:h.SEQUENCE_EXP,expressions:e};this.throwError("Unclosed (")}gobbleArray(){return this.index++,{type:h.ARRAY_EXP,elements:this.gobbleArguments(h.CBRACK_CODE)}}}const p=new u;Object.assign(h,{hooks:p,plugins:new d(h),COMPOUND:"Compound",SEQUENCE_EXP:"SequenceExpression",IDENTIFIER:"Identifier",MEMBER_EXP:"MemberExpression",LITERAL:"Literal",THIS_EXP:"ThisExpression",CALL_EXP:"CallExpression",UNARY_EXP:"UnaryExpression",BINARY_EXP:"BinaryExpression",ARRAY_EXP:"ArrayExpression",TAB_CODE:9,LF_CODE:10,CR_CODE:13,SPACE_CODE:32,PERIOD_CODE:46,COMMA_CODE:44,SQUOTE_CODE:39,DQUOTE_CODE:34,OPAREN_CODE:40,CPAREN_CODE:41,OBRACK_CODE:91,CBRACK_CODE:93,QUMARK_CODE:63,SEMCOL_CODE:59,COLON_CODE:58,unary_ops:{"-":1,"!":1,"~":1,"+":1},binary_ops:{"||":1,"??":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":10,"/":10,"%":10,"**":11},right_associative:new Set(["**"]),additional_identifier_chars:new Set(["$","_"]),literals:{true:!0,false:!1,null:null},this_str:"this"}),h.max_unop_len=h.getMaxKeyLen(h.unary_ops),h.max_binop_len=h.getMaxKeyLen(h.binary_ops);const f=e=>new h(e).parse(),m=Object.getOwnPropertyNames(class{});Object.getOwnPropertyNames(h).filter(e=>!m.includes(e)&&void 0===f[e]).forEach(e=>{f[e]=h[e]}),f.Jsep=h;const g="ConditionalExpression";var v={name:"ternary",init(e){e.hooks.add("after-expression",function(t){if(t.node&&this.code===e.QUMARK_CODE){this.index++;const n=t.node,r=this.gobbleExpression();if(r||this.throwError("Expected expression"),this.gobbleSpaces(),this.code===e.COLON_CODE){this.index++;const i=this.gobbleExpression();if(i||this.throwError("Expected expression"),t.node={type:g,test:n,consequent:r,alternate:i},n.operator&&e.binary_ops[n.operator]<=.9){let r=n;while(r.right.operator&&e.binary_ops[r.right.operator]<=.9)r=r.right;t.node.test=r.right,r.right=t.node,t.node=n}}else this.throwError("Expected :")}})}};f.plugins.register(v);const b=47,y=92;var _={name:"regex",init(e){e.hooks.add("gobble-token",function(t){if(this.code===b){const r=++this.index;let i=!1;while(this.index<this.expr.length){if(this.code===b&&!i){const i=this.expr.slice(r,this.index);let a,o="";while(++this.index<this.expr.length){const e=this.code;if(!(e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57))break;o+=this.char}try{a=new RegExp(i,o)}catch(n){this.throwError(n.message)}return t.node={type:e.LITERAL,value:a,raw:this.expr.slice(r-1,this.index)},t.node=this.gobbleTokenProperty(t.node),t.node}this.code===e.OBRACK_CODE?i=!0:i&&this.code===e.CBRACK_CODE&&(i=!1),this.index+=this.code===y?2:1}this.throwError("Unclosed Regex")}})}};const w=43,E=45,S={name:"assignment",assignmentOperators:new Set(["=","*=","**=","/=","%=","+=","-=","<<=",">>=",">>>=","&=","^=","|=","||=","&&=","??="]),updateOperators:[w,E],assignmentPrecedence:.9,init(e){const t=[e.IDENTIFIER,e.MEMBER_EXP];function n(e){S.assignmentOperators.has(e.operator)?(e.type="AssignmentExpression",n(e.left),n(e.right)):e.operator||Object.values(e).forEach(e=>{e&&"object"===typeof e&&n(e)})}S.assignmentOperators.forEach(t=>e.addBinaryOp(t,S.assignmentPrecedence,!0)),e.hooks.add("gobble-token",function(e){const n=this.code;S.updateOperators.some(e=>e===n&&e===this.expr.charCodeAt(this.index+1))&&(this.index+=2,e.node={type:"UpdateExpression",operator:n===w?"++":"--",argument:this.gobbleTokenProperty(this.gobbleIdentifier()),prefix:!0},e.node.argument&&t.includes(e.node.argument.type)||this.throwError(`Unexpected ${e.node.operator}`))}),e.hooks.add("after-token",function(e){if(e.node){const n=this.code;S.updateOperators.some(e=>e===n&&e===this.expr.charCodeAt(this.index+1))&&(t.includes(e.node.type)||this.throwError(`Unexpected ${e.node.operator}`),this.index+=2,e.node={type:"UpdateExpression",operator:n===w?"++":"--",argument:e.node,prefix:!1})}}),e.hooks.add("after-expression",function(e){e.node&&n(e.node)})}};f.plugins.register(_,S),f.addUnaryOp("typeof"),f.addLiteral("null",null),f.addLiteral("undefined",void 0);const k=new Set(["constructor","__proto__","__defineGetter__","__defineSetter__"]),x={evalAst(e,t){switch(e.type){case"BinaryExpression":case"LogicalExpression":return x.evalBinaryExpression(e,t);case"Compound":return x.evalCompound(e,t);case"ConditionalExpression":return x.evalConditionalExpression(e,t);case"Identifier":return x.evalIdentifier(e,t);case"Literal":return x.evalLiteral(e,t);case"MemberExpression":return x.evalMemberExpression(e,t);case"UnaryExpression":return x.evalUnaryExpression(e,t);case"ArrayExpression":return x.evalArrayExpression(e,t);case"CallExpression":return x.evalCallExpression(e,t);case"AssignmentExpression":return x.evalAssignmentExpression(e,t);default:throw SyntaxError("Unexpected expression",e)}},evalBinaryExpression(e,t){const n={"||":(e,t)=>e||t(),"&&":(e,t)=>e&&t(),"|":(e,t)=>e|t(),"^":(e,t)=>e^t(),"&":(e,t)=>e&t(),"==":(e,t)=>e==t(),"!=":(e,t)=>e!=t(),"===":(e,t)=>e===t(),"!==":(e,t)=>e!==t(),"<":(e,t)=>e<t(),">":(e,t)=>e>t(),"<=":(e,t)=>e<=t(),">=":(e,t)=>e>=t(),"<<":(e,t)=>e<<t(),">>":(e,t)=>e>>t(),">>>":(e,t)=>e>>>t(),"+":(e,t)=>e+t(),"-":(e,t)=>e-t(),"*":(e,t)=>e*t(),"/":(e,t)=>e/t(),"%":(e,t)=>e%t()}[e.operator](x.evalAst(e.left,t),()=>x.evalAst(e.right,t));return n},evalCompound(e,t){let n;for(let r=0;r<e.body.length;r++){"Identifier"===e.body[r].type&&["var","let","const"].includes(e.body[r].name)&&e.body[r+1]&&"AssignmentExpression"===e.body[r+1].type&&(r+=1);const i=e.body[r];n=x.evalAst(i,t)}return n},evalConditionalExpression(e,t){return x.evalAst(e.test,t)?x.evalAst(e.consequent,t):x.evalAst(e.alternate,t)},evalIdentifier(e,t){if(Object.hasOwn(t,e.name))return t[e.name];throw ReferenceError(`${e.name} is not defined`)},evalLiteral(e){return e.value},evalMemberExpression(e,t){const n=String(e.computed?x.evalAst(e.property):e.property.name),r=x.evalAst(e.object,t);if(void 0===r||null===r)throw TypeError(`Cannot read properties of ${r} (reading '${n}')`);if(!Object.hasOwn(r,n)&&k.has(n))throw TypeError(`Cannot read properties of ${r} (reading '${n}')`);const i=r[n];return"function"===typeof i?i.bind(r):i},evalUnaryExpression(e,t){const n={"-":e=>-x.evalAst(e,t),"!":e=>!x.evalAst(e,t),"~":e=>~x.evalAst(e,t),"+":e=>+x.evalAst(e,t),typeof:e=>typeof x.evalAst(e,t)}[e.operator](e.argument);return n},evalArrayExpression(e,t){return e.elements.map(e=>x.evalAst(e,t))},evalCallExpression(e,t){const n=e.arguments.map(e=>x.evalAst(e,t)),r=x.evalAst(e.callee,t);return r(...n)},evalAssignmentExpression(e,t){if("Identifier"!==e.left.type)throw SyntaxError("Invalid left-hand side in assignment");const n=e.left.name,r=x.evalAst(e.right,t);return t[n]=r,t[n]}};class A{constructor(e){this.code=e,this.ast=f(this.code)}runInNewContext(e){const t=Object.assign(Object.create(null),e);return x.evalAst(this.ast,t)}}function C(e,t){return e=e.slice(),e.push(t),e}function T(e,t){return t=t.slice(),t.unshift(e),t}class N extends Error{constructor(e){super('JSONPath should not be called with "new" (it prevents return of (unwrapped) scalar values)'),this.avoidNew=!0,this.value=e,this.name="NewError"}}function R(e,t,n,r,i){if(!(this instanceof R))try{return new R(e,t,n,r,i)}catch(o){if(!o.avoidNew)throw o;return o.value}"string"===typeof e&&(i=r,r=n,n=t,t=e,e=null);const a=e&&"object"===typeof e;if(e=e||{},this.json=e.json||n,this.path=e.path||t,this.resultType=e.resultType||"value",this.flatten=e.flatten||!1,this.wrap=!Object.hasOwn(e,"wrap")||e.wrap,this.sandbox=e.sandbox||{},this.eval=void 0===e.eval?"safe":e.eval,this.ignoreEvalErrors="undefined"!==typeof e.ignoreEvalErrors&&e.ignoreEvalErrors,this.parent=e.parent||null,this.parentProperty=e.parentProperty||null,this.callback=e.callback||r||null,this.otherTypeCallback=e.otherTypeCallback||i||function(){throw new TypeError("You must supply an otherTypeCallback callback option with the @other() operator.")},!1!==e.autostart){const r={path:a?e.path:t};a?"json"in e&&(r.json=e.json):r.json=n;const i=this.evaluate(r);if(!i||"object"!==typeof i)throw new N(i);return i}}R.prototype.evaluate=function(e,t,n,r){let i=this.parent,a=this.parentProperty,{flatten:o,wrap:s}=this;if(this.currResultType=this.resultType,this.currEval=this.eval,this.currSandbox=this.sandbox,n=n||this.callback,this.currOtherTypeCallback=r||this.otherTypeCallback,t=t||this.json,e=e||this.path,e&&"object"===typeof e&&!Array.isArray(e)){if(!e.path&&""!==e.path)throw new TypeError('You must supply a "path" property when providing an object argument to JSONPath.evaluate().');if(!Object.hasOwn(e,"json"))throw new TypeError('You must supply a "json" property when providing an object argument to JSONPath.evaluate().');({json:t}=e),o=Object.hasOwn(e,"flatten")?e.flatten:o,this.currResultType=Object.hasOwn(e,"resultType")?e.resultType:this.currResultType,this.currSandbox=Object.hasOwn(e,"sandbox")?e.sandbox:this.currSandbox,s=Object.hasOwn(e,"wrap")?e.wrap:s,this.currEval=Object.hasOwn(e,"eval")?e.eval:this.currEval,n=Object.hasOwn(e,"callback")?e.callback:n,this.currOtherTypeCallback=Object.hasOwn(e,"otherTypeCallback")?e.otherTypeCallback:this.currOtherTypeCallback,i=Object.hasOwn(e,"parent")?e.parent:i,a=Object.hasOwn(e,"parentProperty")?e.parentProperty:a,e=e.path}if(i=i||null,a=a||null,Array.isArray(e)&&(e=R.toPathString(e)),!e&&""!==e||!t)return;const l=R.toPathArray(e);"$"===l[0]&&l.length>1&&l.shift(),this._hasParentSelector=null;const c=this._trace(l,t,["$"],i,a,n).filter(function(e){return e&&!e.isParentSelector});return c.length?s||1!==c.length||c[0].hasArrExpr?c.reduce((e,t)=>{const n=this._getPreferredOutput(t);return o&&Array.isArray(n)?e=e.concat(n):e.push(n),e},[]):this._getPreferredOutput(c[0]):s?[]:void 0},R.prototype._getPreferredOutput=function(e){const t=this.currResultType;switch(t){case"all":{const t=Array.isArray(e.path)?e.path:R.toPathArray(e.path);return e.pointer=R.toPointer(t),e.path="string"===typeof e.path?e.path:R.toPathString(e.path),e}case"value":case"parent":case"parentProperty":return e[t];case"path":return R.toPathString(e[t]);case"pointer":return R.toPointer(e.path);default:throw new TypeError("Unknown result type")}},R.prototype._handleCallback=function(e,t,n){if(t){const r=this._getPreferredOutput(e);e.path="string"===typeof e.path?e.path:R.toPathString(e.path),t(r,n,e)}},R.prototype._trace=function(e,t,n,r,i,a,o,s){let l;if(!e.length)return l={path:n,value:t,parent:r,parentProperty:i,hasArrExpr:o},this._handleCallback(l,a,"value"),l;const c=e[0],u=e.slice(1),d=[];function h(e){Array.isArray(e)?e.forEach(e=>{d.push(e)}):d.push(e)}if(("string"!==typeof c||s)&&t&&Object.hasOwn(t,c))h(this._trace(u,t[c],C(n,c),t,c,a,o));else if("*"===c)this._walk(t,e=>{h(this._trace(u,t[e],C(n,e),t,e,a,!0,!0))});else if(".."===c)h(this._trace(u,t,n,r,i,a,o)),this._walk(t,r=>{"object"===typeof t[r]&&h(this._trace(e.slice(),t[r],C(n,r),t,r,a,!0))});else{if("^"===c)return this._hasParentSelector=!0,{path:n.slice(0,-1),expr:u,isParentSelector:!0};if("~"===c)return l={path:C(n,c),value:i,parent:r,parentProperty:null},this._handleCallback(l,a,"property"),l;if("$"===c)h(this._trace(u,t,n,null,null,a,o));else if(/^(-?\d*):(-?\d*):?(\d*)$/u.test(c))h(this._slice(c,u,t,n,r,i,a));else if(0===c.indexOf("?(")){if(!1===this.currEval)throw new Error("Eval [?(expr)] prevented in JSONPath expression.");const e=c.replace(/^\?\((.*?)\)$/u,"$1"),o=/@.?([^?]*)[['](\??\(.*?\))(?!.\)\])[\]']/gu.exec(e);o?this._walk(t,e=>{const s=[o[2]],l=o[1]?t[e][o[1]]:t[e],c=this._trace(s,l,n,r,i,a,!0);c.length>0&&h(this._trace(u,t[e],C(n,e),t,e,a,!0))}):this._walk(t,o=>{this._eval(e,t[o],o,n,r,i)&&h(this._trace(u,t[o],C(n,o),t,o,a,!0))})}else if("("===c[0]){if(!1===this.currEval)throw new Error("Eval [(expr)] prevented in JSONPath expression.");h(this._trace(T(this._eval(c,t,n.at(-1),n.slice(0,-1),r,i),u),t,n,r,i,a,o))}else if("@"===c[0]){let e=!1;const o=c.slice(1,-2);switch(o){case"scalar":t&&["object","function"].includes(typeof t)||(e=!0);break;case"boolean":case"string":case"undefined":case"function":typeof t===o&&(e=!0);break;case"integer":!Number.isFinite(t)||t%1||(e=!0);break;case"number":Number.isFinite(t)&&(e=!0);break;case"nonFinite":"number"!==typeof t||Number.isFinite(t)||(e=!0);break;case"object":t&&typeof t===o&&(e=!0);break;case"array":Array.isArray(t)&&(e=!0);break;case"other":e=this.currOtherTypeCallback(t,n,r,i);break;case"null":null===t&&(e=!0);break;default:throw new TypeError("Unknown value type "+o)}if(e)return l={path:n,value:t,parent:r,parentProperty:i},this._handleCallback(l,a,"value"),l}else if("`"===c[0]&&t&&Object.hasOwn(t,c.slice(1))){const e=c.slice(1);h(this._trace(u,t[e],C(n,e),t,e,a,o,!0))}else if(c.includes(",")){const e=c.split(",");for(const o of e)h(this._trace(T(o,u),t,n,r,i,a,!0))}else!s&&t&&Object.hasOwn(t,c)&&h(this._trace(u,t[c],C(n,c),t,c,a,o,!0))}if(this._hasParentSelector)for(let p=0;p<d.length;p++){const e=d[p];if(e&&e.isParentSelector){const n=this._trace(e.expr,t,e.path,r,i,a,o);if(Array.isArray(n)){d[p]=n[0];const e=n.length;for(let t=1;t<e;t++)p++,d.splice(p,0,n[t])}else d[p]=n}}return d},R.prototype._walk=function(e,t){if(Array.isArray(e)){const n=e.length;for(let e=0;e<n;e++)t(e)}else e&&"object"===typeof e&&Object.keys(e).forEach(e=>{t(e)})},R.prototype._slice=function(e,t,n,r,i,a,o){if(!Array.isArray(n))return;const s=n.length,l=e.split(":"),c=l[2]&&Number.parseInt(l[2])||1;let u=l[0]&&Number.parseInt(l[0])||0,d=l[1]&&Number.parseInt(l[1])||s;u=u<0?Math.max(0,u+s):Math.min(s,u),d=d<0?Math.max(0,d+s):Math.min(s,d);const h=[];for(let p=u;p<d;p+=c){const e=this._trace(T(p,t),n,r,i,a,o,!0);e.forEach(e=>{h.push(e)})}return h},R.prototype._eval=function(e,t,n,r,i,a){this.currSandbox._$_parentProperty=a,this.currSandbox._$_parent=i,this.currSandbox._$_property=n,this.currSandbox._$_root=this.json,this.currSandbox._$_v=t;const o=e.includes("@path");o&&(this.currSandbox._$_path=R.toPathString(r.concat([n])));const s=this.currEval+"Script:"+e;if(!R.cache[s]){let t=e.replaceAll("@parentProperty","_$_parentProperty").replaceAll("@parent","_$_parent").replaceAll("@property","_$_property").replaceAll("@root","_$_root").replaceAll(/@([.\s)[])/gu,"_$_v$1");if(o&&(t=t.replaceAll("@path","_$_path")),"safe"===this.currEval||!0===this.currEval||void 0===this.currEval)R.cache[s]=new this.safeVm.Script(t);else if("native"===this.currEval)R.cache[s]=new this.vm.Script(t);else if("function"===typeof this.currEval&&this.currEval.prototype&&Object.hasOwn(this.currEval.prototype,"runInNewContext")){const e=this.currEval;R.cache[s]=new e(t)}else{if("function"!==typeof this.currEval)throw new TypeError(`Unknown "eval" property "${this.currEval}"`);R.cache[s]={runInNewContext:e=>this.currEval(t,e)}}}try{return R.cache[s].runInNewContext(this.currSandbox)}catch(l){if(this.ignoreEvalErrors)return!1;throw new Error("jsonPath: "+l.message+": "+e)}},R.cache={},R.toPathString=function(e){const t=e,n=t.length;let r="$";for(let i=1;i<n;i++)/^(~|\^|@.*?\(\))$/u.test(t[i])||(r+=/^[0-9*]+$/u.test(t[i])?"["+t[i]+"]":"['"+t[i]+"']");return r},R.toPointer=function(e){const t=e,n=t.length;let r="";for(let i=1;i<n;i++)/^(~|\^|@.*?\(\))$/u.test(t[i])||(r+="/"+t[i].toString().replaceAll("~","~0").replaceAll("/","~1"));return r},R.toPathArray=function(e){const{cache:t}=R;if(t[e])return t[e].concat();const n=[],r=e.replaceAll(/@(?:null|boolean|number|string|integer|undefined|nonFinite|scalar|array|object|function|other)\(\)/gu,";$&;").replaceAll(/[['](\??\(.*?\))[\]'](?!.\])/gu,function(e,t){return"[#"+(n.push(t)-1)+"]"}).replaceAll(/\[['"]([^'\]]*)['"]\]/gu,function(e,t){return"['"+t.replaceAll(".","%@%").replaceAll("~","%%@@%%")+"']"}).replaceAll("~",";~;").replaceAll(/['"]?\.['"]?(?![^[]*\])|\[['"]?/gu,";").replaceAll("%@%",".").replaceAll("%%@@%%","~").replaceAll(/(?:;)?(\^+)(?:;)?/gu,function(e,t){return";"+t.split("").join(";")+";"}).replaceAll(/;;;|;;/gu,";..;").replaceAll(/;$|'?\]|'$/gu,""),i=r.split(";").map(function(e){const t=e.match(/#(\d+)/u);return t&&t[1]?n[t[1]]:e});return t[e]=i,t[e].concat()},R.prototype.safeVm={Script:A};const O=function(e,t,n){const r=e.length;for(let i=0;i<r;i++){const r=e[i];n(r)&&t.push(e.splice(i--,1)[0])}};class I{constructor(e){this.code=e}runInNewContext(e){let t=this.code;const n=Object.keys(e),r=[];O(n,r,t=>"function"===typeof e[t]);const i=n.map(t=>e[t]),a=r.reduce((t,n)=>{let r=e[n].toString();return/function/u.test(r)||(r="function "+r),"var "+n+"="+r+";"+t},"");t=a+t,/(['"])use strict\1/u.test(t)||n.includes("arguments")||(t="var arguments = undefined;"+t),t=t.replace(/;\s*$/u,"");const o=t.lastIndexOf(";"),s=-1!==o?t.slice(0,o+1)+" return "+t.slice(o+1):" return "+t;return new Function(...n,s)(...i)}}R.prototype.vm={Script:I};var L=n(2011),D=n.n(L),P=n(41580),M=n.n(P),B=n(53142),F=n.n(B),$=n(46343),U=n.n($),j=n(88088),V=n.n(j),K=(n(48875),n(92043)),G=n(68851),H=n(4364);function z(e,t,n){let r=e;if(!r)return;const i=(0,K.jg)(t);for(let a=0;a<i.length;a++){const e=i[a];a===i.length-1?r[e]=n:r[e]||(r[e]={}),r=r[e]}return e}function q(e,t){const n=t.split(".");let r=[e];return n.forEach(e=>{r=r.map(t=>Array.isArray(t)?t.map(t=>t[e]).flat():t?t[e]:null).flat()}),r.filter(e=>null!==e)}function X(e,t){if(!t)throw new Error("Cannot translate an empty input. The t function requires a string.");if(t.startsWith("$"))try{return R({path:t,json:e,wrap:!1})}catch(r){return H.log("JSON Path error",r,t,e),"(JSON Path err)"}if(!t.includes("."))return e?.[t];const n=(0,K.jg)(t);for(let i=0;i<n.length;i++){if(!e)return;e=e[n[i]]}return e}function W(e,t){const n=(0,K.jg)(t);if(1===n.length)e[t]=void 0,delete e[t];else{const t=n.pop(),r=X(e,(0,K.ZM)(n));r&&(r[t]=void 0,delete r[t])}return e}function Y(e,t){const n=t.split("."),r=n.pop();delete n.reduce((e,t)=>e[t]||{},e)[r]}function Q(e){return a()(e)}function J(e){return!e||!Object.keys(e).length}function Z(e){return Object.keys(e).map(t=>{const n=e[t];Array.isArray(n)?(e[t]=n.map(e=>{if(null!==e&&void 0!==e)return Z(e)}),0===e[t].length&&delete e[t]):"undefined"===typeof n||null===n?delete e[t]:M()(n)&&(J(n)&&delete e[t],e[t]=Z(n))}),e}function ee(e){const t=Object.keys(e).map(t=>{const n=e[t];return Array.isArray(n)?`"${t}"`:M()(n)?(ee(n)||[]).map(e=>`"${t}".${e}`):`"${t}"`});return c()(s()(t))}function te(e,t,n=!1){e=e||{},t=t||{};const r=D()(t,(t,n,r)=>{const i=e[r];U()(n,i)||(Array.isArray(n)||Array.isArray(i)?t[r]=n:M()(n)&&M()(e[r])?t[r]=te(i,n):t[r]=n)}),i=ee(e),a=ee(t),o=V()(i,a);for(const s of o)if(n){let t=s;s.includes(".")||(t=s.replaceAll('"',"")),void 0!==e[t]&&null!==e[t]?z(r,t,e[t]):z(r,t,null)}else z(r,s,null);return r}function ne(e,t){const n=Object.keys(e||{}),r=Object.keys(t||{});if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++){const r=e[n[i]],a=t[n[i]];if(r!==a)return!1}return!0}function re(e,t,n=[]){let r={};if(U()(e,t))return r;for(const i in e){const a=(0,K.ZM)([...n,i]);i in t?M()(e[i])&&M()(t[i])||F()(e[i])&&F()(t[i])?r={...r,...re(e[i],t[i],[...n,i])}:U()(e[i],t[i])||(r[a]={op:"change",from:e[i],value:t[i]}):r[a]={op:"remove",path:a}}for(const i in t)if(!(i in e)){const e=(0,K.ZM)([...n,i]);r[e]={op:"add",value:t[i]}}return r}function ie(e,t){let n=Object.keys(e).sort();const r=[],i={};for(const o of n){let n=!0;const s=e[o],l=t[o];for(const e of a(o))if(i[e]){n=!1;break}if(i[o]=!0,n&&l)switch(`${s.op}-${l.op}`){case"add-add":case"add-change":case"change-add":case"change-change":n=U()(s.value,l.value);break;case"add-remove":case"change-remove":case"remove-add":case"remove-change":n=!1;break;case"remove-remove":default:n=!0;break}n||(0,G.PG)(r,o)}n=Object.keys(t).sort();for(const o of n){let e=!0;for(const t of a(o))if(i[t]){e=!1;break}i[o]=!0,e||(0,G.PG)(r,o)}return r.sort();function a(e){const t=[],n=(0,K.jg)(e);n.pop();while(n.length){const e=(0,K.ZM)(n);t.push(e),n.pop()}return t}}function ae(e,t){let n;for(const r in t)if(n=t[r],"add"===n.op||"change"===n.op)z(e,r,n.value);else{if("remove"!==n.op)throw new Error(`Unknown operation:${n.op}`);W(e,r)}return e}function oe(e,t){if(e)for(const n of t)delete e[n]}function se(e,t=new WeakSet){if(null===e||"object"!==typeof e)return e;if(t.has(e))return e;if(t.add(e),Array.isArray(e))return e.map(e=>se(e,t));{const n=(0,r.toRaw)(e),i={};for(const e in n)"function"===typeof n[e]||"symbol"===typeof n[e]?i[e]=null:i[e]=se(n[e],t);return i}}},35881:function(e,t,n){"use strict";n.d(t,{A0:function(){return p},ZA:function(){return s},_Z:function(){return h},cX:function(){return a},nN:function(){return u},nr:function(){return m},yC:function(){return d}});const r="undefined"===typeof window?"server":window.navigator.platform.toLowerCase(),i="undefined"===typeof window?"server":window.navigator.userAgent,a=(r.includes("linux")||r.includes("unix"),r.includes("mac")),o=(r.includes("win"),a?"metaKey":"ctrlKey"),s=a?"Command":"Control",l=o,c="shiftKey";function u(e){return!!e[o]}function d(e){return!!e[l]}function h(e){return!!e[c]}function p(e){return e.ctrlKey&&2===e.button}i.includes("Gecko/");const f=i.includes("Chrome/"),m=(!f&&i.includes("AppleWebKit/"),!f&&i.includes("Safari/"));/Android|webOS|iPhone|iPad|iPod|IEMobile/i.test(i)},14817:function(e,t,n){"use strict";n.d(t,{Q7:function(){return o},Q8:function(){return c},Tb:function(){return p}});const r="left",i="right",a="top",o="center",s="center",l="bottom",c="auto";function u(e){const t=e.getBoundingClientRect(),n=e.offsetWidth,r=e.offsetHeight;return{top:t.top,right:t.left+n,bottom:t.top+r,left:t.left,width:n,height:r}}function d(e){return{top:e.clientY,left:e.clientX,bottom:e.clientY,right:e.clientX,width:0,height:0}}function h(){const e=window.innerWidth,t=window.innerHeight,n=window.pageYOffset,r=window.pageXOffset;return{top:n,right:r+e,bottom:n+t,left:r,width:e,height:t}}function p(e,t,n,p){let{positionX:f=c,positionY:m=c}=n||{};const{fudgeX:g=0,fudgeY:v=0,overlapX:b=!0,overlapY:y=!1}=n||{},_=h();let w;w=t instanceof Event?d(t):u(t);let E={};e&&(E=u(e)),p&&(E={top:0,right:147,bottom:163,left:0,width:147,height:80});const S={position:"absolute"},k={left:b?w.left:w.right,center:(w.left+w.right)/2,right:b?w.right:w.left,top:y?w.bottom:w.top,middle:(w.top+w.bottom)/2,bottom:y?w.top:w.bottom},x={left:_.right-E.width-k.left,center:Math.min(_.right-E.width/2-k.center,k.center-E.width/2-_.left),right:k.right-E.width-_.left,top:k.bottom-E.height-_.top,middle:Math.min(k.middle-E.height/2-_.top,_.bottom-E.height/2-k.middle),bottom:_.bottom-E.height-k.top};switch(f===o&&x.center<0&&(f=c),f===c?f=x.left<0||1.5*x.right>x.left?i:r:m===r&&x.left<0?f=i:m===i&&x.right<0&&(f=r),f){case r:S.left=k.left-g+"px";break;case o:S.left=(k.left+k.right)/2-E.width/2-g+"px";break;case i:S.left=k.right+g-E.width+"px";break}switch(m===s&&x.middle<0&&(m=c),m===c?m=x.top<0||1.5*x.bottom>x.top?l:a:m===a&&x.top<0?m=l:m===l&&x.bottom<0&&(m=a),m){case a:S.top=k.top+v-E.height+"px";break;case o:S.top=(k.top+k.bottom)/2+v-E.height+"px";break;case l:S.top=k.bottom-v+"px";break}return S}},88339:function(e,t,n){"use strict";function r(){this.queue=[],this.offset=0,this.getLength=function(){return this.queue.length-this.offset},this.isEmpty=function(){return 0===this.queue.length},this.enqueue=function(e){this.queue.push(e)},this.dequeue=function(){if(0===this.queue.length)return;const e=this.queue[this.offset];return 2*++this.offset>=this.queue.length&&(this.queue=this.queue.slice(this.offset),this.offset=0),e},this.peek=function(){return this.queue.length>0?this.queue[this.offset]:void 0},this.clear=function(){this.offset=0,this.queue.length=0}}n.d(t,{kR:function(){return o},$t:function(){return s},yX:function(){return c},hF:function(){return l},DD:function(){return u}});var i=n(4364);async function a(e,t){const n=Object.keys(e),r=Object.values(e),i=await Promise[t](r),a={};for(let o=0;o<n.length;o++)a[n[o]]=i[o];return a}function o(e){return a(e,"all")}function s(e){return a(e,"allSettled")}function l(e,t,n,a=!1){return a&&i.log("eachLimit of",e.length," items",t,"at a time"),new Promise((o,s)=>{const l=new r;let c=0,u=!1;const d=[];for(let t=0;t<e.length;t++)l.enqueue({item:e[t],idx:t});function h(){if(a&&i.log(`process, queue=${l.getLength()}, pending=${c}, failed=${u}`),!u){if(l.isEmpty()&&0===c)return o(d);while(!l.isEmpty()&&c<t&&!u){const{item:e,idx:t}=l.dequeue();a&&i.log("Running",e),c++,n(e,t).then(n=>{a&&i.log("Done",e),d[t]=n,c--,h()}).catch(t=>{a&&i.log("Failed",t,e),u=!0,s(t)})}}}h()})}function c(e){const t={};return t.promise=new Promise((e,n)=>{t.resolve=e,t.reject=n},e),t}function u(e,t,n,r){e.then(e=>{t[n]=e}).catch(e=>{i.warn("Failed to: ",r,e)})}},37327:function(e,t,n){"use strict";n.d(t,{Q5:function(){return s},P:function(){return i}});n(14220),n(4364);var r=n(4364);function i(e){let t=e.params?.product;if(!t){const n=e.name?.match(/^c-cluster-([^-]+)/);n&&(t=n[1])}return t||(t=a(e,"product")),t}function a(e,t){if(e?.meta){const n=Array.isArray(e.meta)?e.meta:[e.meta];for(let e=0;e<n.length;e++)if(n[e][t])return n[e][t]}}function o(e,t){const n=e.getRoutes();return n.find(e=>e.name===t)}function s(e,t){if(!t||!t.name||!t.params)return r.warn("filterLocationValidParams received invalid arguments"),t;const n=o(e,t.name);if(!n)return r.warn("Could not find a route definition given the routeRecord",t),t;const i=t.params,a={};return Object.entries(i).forEach(([e,t])=>{const r=`:${e}`;n.path.includes(r)&&(a[e]=t)}),{...t,params:a}}},20162:function(e,t,n){"use strict";function r(e,t,n,r){const i=t.$parent.$el,a=i.getBoundingClientRect(),o=r||"bottom-start",s=document.body.offsetHeight,l=s-window.scrollY-a.y-1;let c;if(!o.includes("top")){c=a.y+a.height-1;const t=c+e.offsetHeight;t>window.innerHeight?c=void 0:c+=window.scrollY}c?(e.style.top=`${c}px`,e.classList.remove("vs__dropdown-up"),i.classList.remove("vs__dropdown-up")):(e.style.bottom=`${l}px`,e.classList.add("vs__dropdown-up"),i.classList.add("vs__dropdown-up")),e.style.left=`${a.x}px`,e.style.width="min-content",e.style.minWidth=`${a.width}px`}n.d(t,{s:function(){return r}})},38823:function(e,t,n){"use strict";n.d(t,{C6:function(){return c},CR:function(){return u},_R:function(){return l},cK:function(){return d},qg:function(){return s},wC:function(){return h}});var r=n(68851),i=n(76978);const a={},o={"=":"In","==":"In","!=":"NotIn","<":"Lt",">":"Gt"};function s(e){if(!e)return[];if(e=e.replace(/\+/g," "),a[e])return a[e];let t;const n=[],r=[];if(t=e.match(/\([^)]+\)/g),t&&t.length)for(const a of t){const t=a.replace(/^\s*\(\s*/,"").replace(/\s*\)\s*$/,"").split(/\s*,\s*/);r.push(t),e=e.replace(a,` @${r.length-1} `)}const i=e.split(/\s*,\s*/).filter(e=>!!e);for(let a of i)a=a.trim(),t=a.match(/^(.*?)\s+((not\s*)?in)\s+@(\d+)*$/i),t?n.push({key:t[1].trim(),operator:"notin"===t[2].toLowerCase().replace(/\s/g,"")?"NotIn":"In",values:r[t[4].trim()]}):(t=a.match(/^([^!=]*)\s*(\!=|=|==|>|<)\s*([^!=]*)$/),t?n.push({key:t[1].trim(),operator:o[t[2]],values:[t[3].trim()]}):a.startsWith("!")?n.push({key:a.substr(1).trim(),operator:"DoesNotExist"}):n.push({key:a.trim(),operator:"Exists"}));return a[e]=n,n}function l(e){return c(e.matchLabels||{},e.matchExpressions||[])}function c(e,t){const n=Object.keys(e||{}),i=t||[];for(const a of n){const t=e[a],n=(0,r.jq)(i,{key:a,operator:"In"});n?(0,r.PG)(n.values,t):i.push({key:a,operator:"In",values:(0,r.cy)(t)?t:[t]})}return i}function u(e){const t={},n=[],i=[],a={};for(const o of e)"In"===o.operator&&(a[o.key]?(0,r.PG)(i,o.key):a[o.key]=!0);for(const r of e)"In"!==r.operator||1!==r.values.length||i.includes(r.key)?n.push(Object.assign({},r)):t[r.key]=r.values[0];return{matchLabels:t,matchExpressions:n}}function d(e,t,n="metadata.labels"){let a=[];if("string"===typeof t)a=s(t);else if((0,r.cy)(t))a=t;else{if("object"!==typeof t||!t)return!1;a=c(t)}const o=(0,i.Jt)(e,n)||{};for(const r of a){const e=o[r.key],t=parseInt(e,10),n="undefined"!==typeof o[r.key];switch(r.operator){case"Exists":if(!n)return!1;break;case"DoesNotExist":if(n)return!1;break;case"In":if(!r.values.length||!r.values.includes(e))return!1;break;case"NotIn":if(r.values.includes(e))return!1;break;case"Lt":if(isNaN(t)||t>=Math.min.apply(null,r.values))return!1;break;case"Gt":if(isNaN(t)||t<=Math.max.apply(null,r.values))return!1;break}}return!0}function h(e,t,n){return e.filter(e=>d(e,t,n))}},74302:function(e,t,n){"use strict";n.d(t,{QP:function(){return s},RY:function(){return m},UD:function(){return u},Ul:function(){return h},cn:function(){return d}});var r=n(76978),i=n(92043);const a={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regexp","[object Object]":"object","[object FileList]":"filelist"},{toString:o}=Object.prototype;function s(e){if(null===e)return"null";if(void 0===e)return"undefined";let t=a[o.call(e)]||"object";return"object"===t&&(e instanceof Error?t="error":e instanceof Date&&(t="date")),t}function l(e,t){const n=e-t;return(n>0)-(n<0)}const c={undefined:0,null:1,boolean:2,number:3,string:4,array:5,object:6,instance:7,function:8,class:9,date:10};function u(e,t){const n=s(e),r=s(t),i=l(c[n],c[r]);if(i)return i;switch(n){case"boolean":case"number":return l(e,t);case"string":return l(e.localeCompare(t),0);case"array":{const n=e.length,r=t.length,i=Math.min(n,r);for(let a=0;a<i;a++){const n=u(e[a],t[a]);if(0!==n)return n}return l(n,r)}case"date":return l(e.getTime(),t.getTime())}return 0}function d(e){const t=e.split(/:/);return 2===t.length&&"desc"===t[1]?{field:t[0],reverse:!0}:{field:e,reverse:!1}}function h(e,t,n){return Array.isArray(t)||(t=[t]),(e||[]).slice().sort((e,i)=>{for(let a=0;a<t.length;a++){const o=d(t[a]),s=(0,r.Jt)(e,o.field),l=(0,r.Jt)(i,o.field);let c=u(s,l);if(c)return n&&(c*=-1),o.reverse&&(c*=-1),c}return 0})}const p=/([^\d]+)/,f=/^[0-9]+$/;function m(e){return"string"!==typeof e?e:e.split(p).map(e=>e.match(f)?(0,i.DZ)(e,10,"0"):e).join("").trim()}},92043:function(e,t,n){"use strict";function r(e){return E(e||"").split("-").map(e=>i(e)).join(" ")}function i(e){return e=e||"",e.substr(0,1).toUpperCase()+e.substr(1)}function a(e,t,n=" ",r=!1){if(e=`${e}`,e.length>=t)return e;const i=t-e.length+1,a=new Array(i).join(n).substr(0,i);return r?e+a:a+e}n.d(t,{$f:function(){return l},DZ:function(){return a},HV:function(){return x},Kn:function(){return C},LQ:function(){return p},Nr:function(){return v},OF:function(){return A},TF:function(){return i},XC:function(){return S},ZD:function(){return s},ZM:function(){return R},_R:function(){return r},_k:function(){return E},aR:function(){return L},eH:function(){return I},i6:function(){return k},jg:function(){return N},l9:function(){return m},pZ:function(){return b},qO:function(){return O},td:function(){return g},vx:function(){return f}});const o={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function s(e){return String(e).replace(/[&<>"']/g,e=>o[e])}function l(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function c(e){e=Math.max(0,e||1);const t=[];let n;if(window.crypto&&window.crypto.getRandomValues){const r=new Uint32Array(e);for(window.crypto.getRandomValues(r),n=0;n<r.length;n++)t[n]=r[n]}else for(n=0;n<e;n++)t[n]=4294967296*Math.random();return 1===e?t[0]:t}const u="abcdefghijklmnopqrstuvwxyz",d="0123456789",h="!@#$%^&*()_+-=[]{};:,./<>?|",p={NUMERIC:d,NO_VOWELS:"bcdfghjklmnpqrstvwxz2456789",ALPHA:u+u.toUpperCase(),ALPHA_NUM:u+u.toUpperCase()+d,ALPHA_LOWER:u,ALPHA_UPPER:u.toUpperCase(),HEX:`${d}ABCDEF`,PASSWORD:u+u.toUpperCase()+d+u+u.toUpperCase()+d+h};function f(e=16,t=p.ALPHA_NUM){return t&&t.length?c(e).map(e=>t[e%t.length]).join(""):null}function m(e,t=2){return e<1&&t>=2?Math.round(100*e)/100+"%":e<10&&t>=1?Math.round(10*e)/10+"%":`${Math.round(e)}%`}function g(e){return e.match(/.*[^aeiou]y$/i)?`${e.substr(0,e.length-1)}ies`:e.endsWith("ics")?e:e.endsWith("s")?`${e}es`:`${e}s`}function v(e,t,n,r){const i=5;return t||(t=n("promptRemove.andOthers",{count:e.length>i?e.length-i:0})),r||(r=!1===r?" ":"."),e.reduce((a,o,l)=>(l<i&&(a+=`<b>${s(o)}</b>`,l===e.length-1?a+=r:l===e.length-2?a+=e.length<=5?n("generic.and"):"":a+=l<i-1?n("generic.comma"):""),l===i&&(a+=t),a),"")}function b(e,t=2,n=" ",r=null){e="string"===typeof e?e.split(/\n/):e||[];const i=new Array(t+1).join(n),a=e.map(e=>{let t="",n=e;if(r){const i=e.match(r);i&&(t=i[i.length-1],n=e.substr(i[0].length))}return`${t}${i}${n}`}),o=a.join("\n");return o}const y=/([a-z\d])([A-Z])/g;function _(e){return e.replace(y,"$1_$2").toLowerCase()}const w=/[ _]/g;function E(e){return _(e).replace(w,"-")}function S(e){return e=e||"",!e.match(/[^\r\n\t\x20-\x7F]/)}function k(e,t){return"float"===t?e=parseFloat(e)||null:"int"===t?(e=parseInt(e,10),isNaN(e)&&(e=null)):"boolean"===t&&("true"===e.toLowerCase()?e=!0:"false"===e.toLowerCase()&&(e=!1)),e}function x(e,t=[]){return t.some(t=>{const n=e||"",r=A(t);return n.match(r)})}function A(e,t=!0){return"string"===typeof e?t?new RegExp(`^${l(e)}$`,"i"):new RegExp(`${l(e)}`,"i"):e}function C(e){return s(e||"").replace(/(\r\n|\r|\n)/g,"<br/>\n")}const T=/[^."']+|"([^"]*)"|'([^']*)'/g;function N(e){return e.includes('"')||e.includes("'")?e.match(T).map(e=>e.replace(/['"]/g,"")):e.split(".")}function R(e){let t="";for(const n of e)n.includes(".")?t+=`."${n}"`:t+=`.${n}`;return t.startsWith(".")&&(t=t.substr(1)),t}function O(e){return(e||"").replace(/^(index\.)?docker.io\/(library\/)?/,"").replace(/:latest$/,"").replace(/^(.*@sha256:)([0-9a-f]{8})[0-9a-f]+$/i,"$1$2…")}function I(e){const t=/^((25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(25[0-5]|2[0-4]\d|[01]?\d\d?)$/;return t.test(e)}function L(e){return Array.from({length:e},()=>String.fromCharCode(97+26*Math.random()|0)).join("")}},95799:function(e,t,n){"use strict";n.d(t,{$W:function(){return o},Mo:function(){return a},QN:function(){return r},ao:function(){return s},kq:function(){return i}});const r=["","K","M","G","T","P","E","Z","Y"],i=["","m","u","n","p","f","a","z","y"];function a(e,{increment:t=1e3,addSuffix:n=!0,addSuffixSpace:s=!0,suffix:l="",firstSuffix:c=null,startingExponent:u=0,minExponent:d=0,maxExponent:h=99,maxPrecision:p=2,canRoundToZero:f=!0}={}){let m=e,g=u;const v=h>=0;if(v)while(m>=t&&g+1<r.length&&g<h||g<d)m/=t,g++;else while(m<t&&g+1<i.length&&g<-1*h||g<-1*d)m*=t,g++;let b="";if(b=m<10&&p>=1?""+Math.round(m*10**p)/10**p:`${Math.round(m)}`,"0"===b&&!f&&0!==e){const r=o(e,t);return a(e,{increment:t,addSuffix:n,suffix:l,firstSuffix:c,startingExponent:u,minExponent:r,maxExponent:r,maxPrecision:p,canRoundToZero:!0})}return n&&(s&&(b+=" "),b+=0===g&&null!==c?`${c}`:`${v?r[g]:i[g]}${l}`||""),b}function o(e,t=1e3){let n=0;while(e>=t)e/=t,n++;return n}function s(e,t){t=t||{};let n=t.increment;const a=!1!==t.allowFractional;if(!e||"string"!==typeof e||!e.length)return NaN;e=e.replace(/,/g,"");let[,o,s,l]=e.match(/^([0-9.-]+)\s*([^0-9.-]?)([^0-9.-]?)/);const c=parseFloat(o);if(!s)return c;181===s.charCodeAt(0)&&(s="u");const u=i.includes(s),d=r.includes(s.toUpperCase());if(n||(n=(d||u)&&"i"===l?1024:1e3),u&&a){const e=i.indexOf(s);return c/n**e}if(d){const e=r.indexOf(s.toUpperCase());return c*n**e}return c}},70500:function(e,t,n){"use strict";n.d(t,{M:function(){return o},u:function(){return a}});var r=n(37021),i=n.n(r);function a(e="",t,n){try{o.validation(e)}catch(r){n.push(t["i18n/t"](o.message))}}const o={validation:e=>i().toString(e,{verbose:!0}),message:"validation.invalidCron"}},96047:function(e,t,n){"use strict";n.d(t,{HK:function(){return u},p6:function(){return g},iK:function(){return h},um:function(){return f},OH:function(){return m},cO:function(){return p},xR:function(){return d}});var r=n(3514),i=n.n(r),a=n(82438),o=n.n(a),s=n(76978),l=n(92043);function c(e,t,n,r,i=[]){r=r||{};const{invalidChars:a,forHostname:o=!1,errorKey:s=(o?"hostname":"label"),maxLength:l=63,minLength:c=1,validChars:u="A-Za-z0-9-"}=r;h(e,{validChars:u,invalidChars:a},t,n,i),"-"===e.slice(0,1)&&i.push(n["i18n/t"](`validation.dns.${s}.startHyphen`,{key:t})),"-"===e.slice(-1)&&i.push(n["i18n/t"](`validation.dns.${s}.endHyphen`,{key:t}));const d=c,p=l;return e.length<d?i.push(n["i18n/t"](`validation.dns.${s}.emptyLabel`,{key:t,min:d})):e.length>p&&i.push(n["i18n/t"](`validation.dns.${s}.tooLongLabel`,{key:t,max:p})),i}function u(e,t,n){const r=`model.${e}.${t}`,i=`${r}.label`;return n["i18n/exists"](`${r}.label`)?n["i18n/t"](i):n["i18n/exists"](r)?n["i18n/t"](r):t.match(/.Id$/)?(0,l._R)(t.replace(/Id$/,"")):(0,l._R)(t)}function d(e,t,n,r,a=[]){const{nullable:o,required:l,type:c="",minLength:u,maxLength:d,min:h,max:p}=t,f=e?(0,s.Jt)(e,"length"):0;if(!o&&l&&("object"===typeof e&&i()(e)||!e&&0!==e))return a.push(r["i18n/t"]("validation.required",{key:n})),a;if(null===e)return a;const m=0===c.indexOf("array[")?"arrayLength":"stringLength";let g=u,v=d;return g&&v?(f<g||f>v)&&(g===v?a.push(r["i18n/t"](`validation.${m}.exactly`,{key:n,count:g})):a.push(r["i18n/t"](`validation.${m}.between`,{key:n,min:g,max:v}))):g&&f<g?a.push(r["i18n/t"](`validation.${m}.min`,{key:n,count:g})):v&&f>v&&a.push(r["i18n/t"](`validation.${m}.max`,{key:n,count:v})),g=h,v=p,null!==e&&g&&v?(e<g||e>v)&&(g===v?a.push(r["i18n/t"]("validation.number.exactly",{key:n,val:v})):a.push(r["i18n/t"]("validation.number.between",{key:n,min:g,max:v}))):g&&e<g?a.push(r["i18n/t"]("validation.number.min",{key:n,val:g})):v&&e>v&&a.push(r["i18n/t"]("validation.number.max",{key:n,val:v})),a}function h(e,t,n,r,i=[]){const{validChars:a,invalidChars:s}=t,l=[];if(a&&l.push(`[^${t.validChars}]`),s&&l.push(`[${t.invalidChars}]`),l.length){const t=new RegExp(`(${l.join("|")})`,"g");let a=e.match(t);a&&(a=o()(a).map(e=>" "===e?"[space]":e),i.push(r["i18n/t"]("validation.chars",{key:n,count:a.length,chars:a.join(" ")})))}return i}function p(e,t,n,r,i=[]){r=r||{};const{max:a=253,restricted:o=!1}=r;"."===e.slice(0,1)&&i.push(n["i18n/t"]("validation.dns.hostname.startDot",{key:t})),o&&e.length>1&&"."===e.slice(-1)&&i.push(n["i18n/t"]("validation.dns.hostname.endDot",{key:t})),0===e.length&&i.push(n["i18n/t"]("validation.dns.hostname.empty",{key:t})),e.length>a&&i.push(n["i18n/t"]("validation.dns.hostname.tooLong",{key:t,max:a}));const s=e.split(/\./);let l;for(let c=0;c<s.length;c++)l=s[c],0===c&&""===l||c===s.length-1&&""===l||f(l,t,n,{forHostname:!0},i);return i}function f(e,t,n,r,i=[]){r=r||{};const{forHostname:a=!1,errorKey:o=(a?"hostname":"label"),ianaServiceName:s=!1,restricted:l=!1}=r;return c(e,t,n,r,i),l&&e.slice(0,1).match(/[0-9]/)&&i.push(n["i18n/t"](`validation.dns.${o}.startNumber`,{key:t})),("--"===e.substr(2,2)&&"xn"!==e.substr(0,2)||s&&e.includes("--"))&&i.push(n["i18n/t"]("validation.dns.doubleHyphen",{key:t})),i}function m(e,t,n,r,i,a=[]){switch(t){case"dnsLabel":f(e,n,r,{restricted:!1},a);break;case"dnsLabelRestricted":f(e,n,r,{restricted:!0},a);break;case"hostname":p(e,n,r,{restricted:!1},a);break;default:break}return a}function g(e,t,n,r,i=[]){const{required:a}=t;!a||e||!1===e?"boolean"!==typeof e&&e&&i.push(r["i18n/t"]("validation.boolean",{key:n})):i.push(r["i18n/t"]("validation.required",{key:n}))}},68094:function(e,t,n){"use strict";n.d(t,{L6:function(){return a},Lk:function(){return s},M8:function(){return l},Q6:function(){return o},fB:function(){return c}});var r=n(24138),i=n.n(r);const a=e=>"server-url"===e,o=e=>e.toLowerCase().startsWith("https://"),s=e=>/^(?=.{1,254}$)(?![a-z][a-z0-9+.-]*:\/\/)(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z]{2,}(?::\d{1,5})?(?:\/\S*)?$/i.test(e),l=e=>/^(?:https?:\/\/)?(?:localhost|127\.0\.0\.1)/i.test(e),c=e=>i()(e)&&e?.toLowerCase().endsWith("/")},83288:function(e,t,n){"use strict";n.d(t,{UD:function(){return d},V1:function(){return f},Xt:function(){return u},hQ:function(){return m}});var r=n(74302),i=n(2722),a=n.n(i),o=n(35664),s=(n(91462),n(9262)),l=n(83297);function c(e){e=`${e}`,"v"===e.substr(0,1).toLowerCase()&&(e=e.substr(1));const t=e.split(/[.+-]/);return t}function u(e){return c(e).map(e=>(0,r.RY)(e)).join(".")}function d(e,t){if(!e)return 1;if(!t)return-1;const n=c(e),r=c(t),i=Math.min(n.length,r.length);for(let a=0;a<i;a++){const e=p(n[a],r[a]);if(0!==e)return e}return n.length-r.length}function h(e){return`${e}`.match(/^([0-9]+\.)?[0-9]*$/)}function p(e,t){if(e=`${e}`.toLowerCase(),t=`${t}`.toLowerCase(),h(e)&&h(t)){const n=parseInt(e,10),r=parseInt(t,10);if(!isNaN(n)&&!isNaN(r))return n-r}return e.localeCompare(t)}function f(e=""){return a().valid(e)||(e=a().clean(e,{loose:!0})),!!a().prerelease(e)}function m(e){const t=e.getters["management/byId"](o.Mc.SETTING,s.HG.VERSION_RANCHER)?.value??(0,l.nv)()?.Version??"unknown";let n=t;const r=t.match(/^(.*)-([0-9a-f]{40})-(.*)$/);return r&&(n=r[2].substr(0,7)),{displayVersion:n,fullVersion:t}}},66242:function(e,t,n){"use strict";n.d(t,{d:function(){return r}});const r={CONSOLE_URL:"/host/#remote-console",RANCHER_INTEGRATION_URL:"/rancher/rancher-integration",KSMTUNED_MODE:"/host/#ksmtuned-mode",UPGRADE_URL:"/upgrade/index",UPGRADE_CONFIG_URL:"/advanced/index#upgrade-config",STORAGE_NETWORK_EXAMPLE:"/advanced/storagenetwork#configuration-example",SUPPORT_BUNDLE_NAMESPACES:"/advanced/index/#support-bundle-namespaces",VPC_CONFIGURATION_EXAMPLES:"/networking/kubeovn-vpc#vpc-peering-configuration-examples",NETWORK_POLICY:"/networking/kubeovn-vm-isolation/#network-policies",TRANSPARENT_HUGEPAGES:"https://docs.kernel.org/admin-guide/mm/transhuge.html"}},66338:function(e,t,n){"use strict";n.r(t),n.d(t,{IP_POOL_HEADERS:function(){return f},PRODUCT_NAME:function(){return p},init:function(){return m}});var r=n(35664),i=n(32766),a=n(68774),o=n(86565),s=n(1371),l=n(66905);function c(e,t,{addonName:n,resourceType:r,navGroup:i,types:a}){if("undefined"===typeof window)return;const o=()=>{const t="ui.refresh.trigger";e.dispatch("type-map/addFavorite",t),setTimeout(()=>{e.dispatch("type-map/removeFavorite",t)},600)},s=n=>{if(n)e.commit("type-map/basicType",{product:t,group:i,types:a});else{const n=e.state["type-map"].basicTypes[t];n&&a.forEach(e=>delete n[e])}o()};let l=0;const c=60,u=setInterval(()=>{l++;try{const i=e.getters[`${t}/schemaFor`]&&e.getters[`${t}/schemaFor`](r),a=e.getters[`${t}/haveAll`]&&e.getters[`${t}/haveAll`](r);i&&a?(clearInterval(u),e.watch((e,i)=>{const a=i[`${t}/all`](r),o=a.find(e=>e.metadata.name===n);return!0===o?.spec?.enabled},e=>{s(e)},{immediate:!0,deep:!0})):i&&!a?e.dispatch(`${t}/findAll`,{type:r}):l>=c&&clearInterval(u)}catch(i){l>=c&&clearInterval(u)}},1e3)}const u=i.rk.VM_VERSION,d="Monitoring & Logging::Monitoring",h="Monitoring & Logging::Logging",p="harvester",f=[a.c4,a.o_,{name:"subnet",labelKey:"harvester.ipPool.subnet.label",value:"subnetDisplay"},{name:"availableIP",labelKey:"harvester.ipPool.availableIP.label",value:"status.available"},a.K];function m(e,t){const{product:m,basicType:g,headers:v,configureType:b,virtualType:y,weightGroup:_}=e.DSL(t,p),w={NODE_ENV:"production",BASE_URL:"/"}.rancherEnv===p;if(w){const e={name:`${p}-c-cluster-resource`,params:{product:p,resource:i.rk.DASHBOARD}};t.dispatch("setIsSingleProduct",{productName:p,logo:n(53938),productNameKey:"harvester.productLabel",getVersionInfo:e=>e.getters[`${p}/byId`]?.(i.rk.SETTING,"server-version")?.value||"unknown",afterLoginRoute:e,logoRoute:e,supportCustomLogo:!0})}m({inStore:"harvester",removable:!1,showNamespaceFilter:!0,hideKubeShell:!0,hideKubeConfig:!0,showClusterSwitcher:!0,hideCopyConfig:!0,hideSystemResources:!0,customNamespaceFilter:!0,typeStoreMap:{[r.Mc.PROJECT]:"management",[r.Mc.CLUSTER_ROLE_TEMPLATE_BINDING]:"management",[r.Mc.PROJECT_ROLE_TEMPLATE_BINDING]:"management"},supportRoute:{name:`${p}-c-cluster-support`},to:{name:`${p}-c-cluster-resource`,params:{product:p,resource:i.rk.DASHBOARD}},hideNamespaceLocation:!0}),g([i.rk.DASHBOARD]),y({labelKey:"harvester.dashboard.label",group:"Root",name:i.rk.DASHBOARD,weight:500,route:{name:`${p}-c-cluster-resource`,params:{product:p,resource:i.rk.DASHBOARD}}}),b(i.rk.DASHBOARD,{showListMasthead:!1}),b(i.rk.HOST,{location:{name:`${p}-c-cluster-resource`,params:{resource:i.rk.HOST}},resource:r.NW,resourceDetail:i.rk.HOST,resourceEdit:i.rk.HOST,canYaml:!1}),b(i.rk.HOST,{isCreatable:!1,isEditable:!0}),g([i.rk.HOST]),y({ifHaveType:r.NW,labelKey:"harvester.host.label",group:"Root",name:i.rk.HOST,namespaced:!0,weight:499,route:{name:`${p}-c-cluster-resource`,params:{resource:i.rk.HOST}},exact:!1}),g(["cluster-members"],"rbac"),y({ifHave:o.f7.MULTI_CLUSTER,labelKey:"members.clusterMembers",group:"root",namespaced:!1,name:r.cG.CLUSTER_MEMBERS,weight:100,route:{name:`${p}-c-cluster-members`},exact:!0,ifHaveType:{type:r.Mc.CLUSTER_ROLE_TEMPLATE_BINDING,store:"management"}}),g([i.rk.VM]),b(i.rk.VM,{canYaml:!1}),y({labelKey:"harvester.virtualMachine.label",group:"root",name:i.rk.VM,namespaced:!0,weight:498,route:{name:`${p}-c-cluster-resource`,params:{resource:i.rk.VM}},exact:!1}),_("vmimport",0,!1),v(i.rk.VMIMPORT,[a.c4,a.o_,a.CU,s.Ad,s.R_,s.$G,a.K]),b(i.rk.VMIMPORT,{resource:i.rk.VMIMPORT,resourceDetail:i.rk.VMIMPORT,resourceEdit:i.rk.VMIMPORT,location:{name:`${p}-c-cluster-resource`,params:{resource:i.rk.VMIMPORT}}}),y({name:i.rk.VMIMPORT,labelKey:"harvester.addons.vmImport.labels.vmimport",group:"vmimport",namespaced:!0,route:{name:`${p}-c-cluster-resource`,params:{resource:i.rk.VMIMPORT}}}),v(i.rk.VMIMPORT_SOURCE_V,[a.c4,a.o_,s.Vv,s.H4,s.y2,a.K]),b(i.rk.VMIMPORT_SOURCE_V,{resource:i.rk.VMIMPORT_SOURCE_V,resourceDetail:i.rk.VMIMPORT_SOURCE_V,resourceEdit:i.rk.VMIMPORT_SOURCE_V,location:{name:`${p}-c-cluster-resource`,params:{resource:i.rk.VMIMPORT_SOURCE_V}}}),y({name:i.rk.VMIMPORT_SOURCE_V,labelKey:"harvester.addons.vmImport.labels.vmimportSourceVMWare",group:"vmimport",namespaced:!0,route:{name:`${p}-c-cluster-resource`,params:{resource:i.rk.VMIMPORT_SOURCE_V}}}),v(i.rk.VMIMPORT_SOURCE_O,[a.c4,a.o_,s.ap,s.Jb,s.Bc,a.K]),b(i.rk.VMIMPORT_SOURCE_O,{resource:i.rk.VMIMPORT_SOURCE_O,resourceDetail:i.rk.VMIMPORT_SOURCE_O,resourceEdit:i.rk.VMIMPORT_SOURCE_O,location:{name:`${p}-c-cluster-resource`,params:{resource:i.rk.VMIMPORT_SOURCE_O}}}),y({name:i.rk.VMIMPORT_SOURCE_O,labelKey:"harvester.addons.vmImport.labels.vmimportSourceOpenStack",group:"vmimport",namespaced:!0,route:{name:`${p}-c-cluster-resource`,params:{resource:i.rk.VMIMPORT_SOURCE_O}}}),v(i.rk.VMIMPORT_SOURCE_OVA,[a.c4,a.o_,s.Jw,s.M2,a.K]),b(i.rk.VMIMPORT_SOURCE_OVA,{resource:i.rk.VMIMPORT_SOURCE_OVA,resourceDetail:i.rk.VMIMPORT_SOURCE_OVA,resourceEdit:i.rk.VMIMPORT_SOURCE_OVA,location:{name:`${p}-c-cluster-resource`,params:{resource:i.rk.VMIMPORT_SOURCE_OVA}}}),y({name:i.rk.VMIMPORT_SOURCE_OVA,labelKey:"harvester.addons.vmImport.labels.vmimportSourceOVA",group:"vmimport",namespaced:!0,route:{name:`${p}-c-cluster-resource`,params:{resource:i.rk.VMIMPORT_SOURCE_OVA}}}),c(t,p,{addonName:l.Jo.VM_IMPORT_CONTROLLER,resourceType:i.rk.ADD_ONS,navGroup:"vmimport",types:[i.rk.VMIMPORT_SOURCE_V,i.rk.VMIMPORT_SOURCE_O,i.rk.VMIMPORT_SOURCE_OVA,i.rk.VMIMPORT]}),g([i.rk.VOLUME]),b(i.rk.VOLUME,{location:{name:`${p}-c-cluster-resource`,params:{resource:i.rk.VOLUME}},resource:r.YH,resourceDetail:i.rk.VOLUME,resourceEdit:i.rk.VOLUME,canYaml:!1}),y({labelKey:"harvester.volume.label",group:"root",ifHaveType:r.YH,name:i.rk.VOLUME,namespaced:!0,weight:497,route:{name:`${p}-c-cluster-resource`,params:{resource:i.rk.VOLUME}},exact:!1}),g([i.rk.IMAGE]),v(i.rk.IMAGE,[a.c4,a.o_,a.CU,s.EJ,s.r,s.IL,s.tI,s.WR,a.K]),b(i.rk.IMAGE,{canYaml:!1}),y({labelKey:"harvester.image.label",group:"root",name:i.rk.IMAGE,namespaced:!0,weight:496,route:{name:`${p}-c-cluster-resource`,params:{resource:i.rk.IMAGE}},exact:!1}),g(["projects-namespaces"]),y({ifHave:o.f7.MULTI_CLUSTER,labelKey:"harvester.projectNamespace.label",group:"root",namespaced:!0,name:"projects-namespaces",weight:495,route:{name:`${p}-c-cluster-projectsnamespaces`},exact:!0}),w&&(v(r.CU,[a.c4,a.ZU,a.tC,a.K]),g([r.CU]),y({labelKey:"harvester.namespace.label",name:r.CU,namespaced:!0,weight:495,route:{name:`${p}-c-cluster-resource`,params:{resource:r.CU}},exact:!1})),g([i.rk.ALERTMANAGERCONFIG],d),g([i.rk.CLUSTER_FLOW,i.rk.CLUSTER_OUTPUT,i.rk.FLOW,i.rk.OUTPUT],h),_("Monitoring",2,!0),_("Logging",1,!0),v(i.rk.ALERTMANAGERCONFIG,[a.c4,a.o_,a.CU,{name:"receivers",labelKey:"tableHeaders.receivers",formatter:"ReceiverIcons",value:"name"}]),b(i.rk.ALERTMANAGERCONFIG,{location:{name:`${p}-c-cluster-resource`,params:{resource:i.rk.ALERTMANAGERCONFIG}},resource:r.Rp.ALERTMANAGERCONFIG,resourceDetail:i.rk.ALERTMANAGERCONFIG,resourceEdit:i.rk.ALERTMANAGERCONFIG,canYaml:!1}),y({ifHaveType:r.Rp.ALERTMANAGERCONFIG,labelKey:"harvester.monitoring.alertmanagerConfig.label",name:i.rk.ALERTMANAGERCONFIG,namespaced:!0,weight:87,route:{name:`${p}-c-cluster-resource`,params:{resource:i.rk.ALERTMANAGERCONFIG}},exact:!1}),b(i.rk.CLUSTER_FLOW,{location:{name:`${p}-c-cluster-resource`,params:{resource:i.rk.CLUSTER_FLOW}},resource:r.cm.CLUSTER_FLOW,resourceDetail:i.rk.CLUSTER_FLOW,resourceEdit:i.rk.CLUSTER_FLOW,canYaml:!1}),y({labelKey:"harvester.logging.clusterFlow.label",name:i.rk.CLUSTER_FLOW,namespaced:!0,weight:79,route:{name:`${p}-c-cluster-resource`,params:{resource:i.rk.CLUSTER_FLOW}},exact:!1}),b(i.rk.CLUSTER_OUTPUT,{location:{name:`${p}-c-cluster-resource`,params:{resource:i.rk.CLUSTER_OUTPUT}},resource:r.cm.CLUSTER_OUTPUT,resourceDetail:i.rk.CLUSTER_OUTPUT,resourceEdit:i.rk.CLUSTER_OUTPUT,canYaml:!1}),y({labelKey:"harvester.logging.clusterOutput.label",name:i.rk.CLUSTER_OUTPUT,namespaced:!0,weight:78,route:{name:`${p}-c-cluster-resource`,params:{resource:i.rk.CLUSTER_OUTPUT}},exact:!1}),b(i.rk.FLOW,{location:{name:`${p}-c-cluster-resource`,params:{resource:i.rk.FLOW}},resource:r.cm.FLOW,resourceDetail:i.rk.FLOW,resourceEdit:i.rk.FLOW,canYaml:!1}),y({labelKey:"harvester.logging.flow.label",name:i.rk.FLOW,namespaced:!0,weight:77,route:{name:`${p}-c-cluster-resource`,params:{resource:i.rk.FLOW}},exact:!1}),b(i.rk.OUTPUT,{location:{name:`${p}-c-cluster-resource`,params:{resource:i.rk.OUTPUT}},resource:r.cm.OUTPUT,resourceDetail:i.rk.OUTPUT,resourceEdit:i.rk.OUTPUT,canYaml:!1}),y({labelKey:"harvester.logging.output.label",name:i.rk.OUTPUT,namespaced:!0,weight:76,route:{name:`${p}-c-cluster-resource`,params:{resource:i.rk.OUTPUT}},exact:!1}),v(i.rk.FLOW,[a.c4,a.o_,a.CU,a.aQ,a.hX,a.Yf,a.K]),v(i.rk.OUTPUT,[a.c4,a.o_,a.CU,a.P4,a.K]),v(i.rk.CLUSTER_FLOW,[a.c4,a.o_,a.CU,a.hX,a.Yf,a.K]),v(i.rk.CLUSTER_OUTPUT,[a.c4,a.o_,a.CU,a.P4,a.K]),g([i.rk.CLUSTER_NETWORK,i.rk.NETWORK_ATTACHMENT,i.rk.VPC,r.UR,i.rk.LB,i.rk.IP_POOL],"networks"),g([i.rk.SCHEDULE_VM_BACKUP,i.rk.BACKUP,i.rk.SNAPSHOT,i.rk.VM_SNAPSHOT],"backupAndSnapshot"),_("networks",494,!0),_("backupAndSnapshot",493,!0),g([u,i.rk.SSH,i.rk.CLOUD_TEMPLATE,i.rk.STORAGE,i.rk.SR_IOV,i.rk.PCI_DEVICE,i.rk.SR_IOVGPU_DEVICE,i.rk.VGPU_DEVICE,i.rk.MIG_CONFIGURATION,i.rk.USB_DEVICE,i.rk.ADD_ONS,i.rk.SECRET,i.rk.SETTING],"advanced"),b(i.rk.CLUSTER_NETWORK,{realResource:i.rk.SETTING,showState:!1}),y({labelKey:"harvester.vmTemplate.label",group:"root",name:u,namespaced:!0,weight:289,route:{name:`${p}-c-cluster-resource`,params:{resource:u}},exact:!1}),b(u,{canYaml:!1}),b(i.rk.SCHEDULE_VM_BACKUP,{showListMasthead:!1,showConfigView:!1,canYaml:!1}),y({labelKey:"harvester.schedule.label",name:i.rk.SCHEDULE_VM_BACKUP,namespaced:!0,weight:201,route:{name:`${p}-c-cluster-resource`,params:{resource:i.rk.SCHEDULE_VM_BACKUP}},exact:!1,ifHaveType:i.rk.SCHEDULE_VM_BACKUP}),b(i.rk.BACKUP,{showListMasthead:!1,showConfigView:!1,canYaml:!1}),y({labelKey:"harvester.backup.label",name:i.rk.BACKUP,namespaced:!0,weight:200,route:{name:`${p}-c-cluster-resource`,params:{resource:i.rk.BACKUP}},exact:!1}),b(i.rk.VLAN_CONFIG,{hiddenNamespaceGroupButton:!0,canYaml:!1}),b(i.rk.CLUSTER_NETWORK,{showListMasthead:!1,canYaml:!1}),y({labelKey:"harvester.clusterNetwork.title",name:i.rk.CLUSTER_NETWORK,ifHaveType:i.rk.CLUSTER_NETWORK,namespaced:!1,weight:189,route:{name:`${p}-c-cluster-resource`,params:{resource:i.rk.CLUSTER_NETWORK}},exact:!1}),b(i.rk.NETWORK_ATTACHMENT,{location:{name:`${p}-c-cluster-resource`,params:{resource:i.rk.NETWORK_ATTACHMENT}},resource:r.XG,resourceDetail:i.rk.NETWORK_ATTACHMENT,resourceEdit:i.rk.NETWORK_ATTACHMENT}),y({labelKey:"harvester.network.label",name:i.rk.NETWORK_ATTACHMENT,namespaced:!0,weight:188,route:{name:`${p}-c-cluster-resource`,params:{resource:i.rk.NETWORK_ATTACHMENT}},exact:!1}),b(i.rk.VPC,{hiddenNamespaceGroupButton:!0,canYaml:!1}),y({labelKey:"harvester.vpc.label",name:i.rk.VPC,namespaced:!0,weight:187,route:{name:`${p}-c-cluster-resource`,params:{resource:i.rk.VPC}},exact:!1,ifHaveType:i.rk.VPC}),b(r.UR,{hiddenNamespaceGroupButton:!0,canYaml:!1}),y({labelKey:"harvester.networkPolicy.label",name:r.UR,namespaced:!0,weight:186,route:{name:`${p}-c-cluster-resource`,params:{resource:r.UR}},exact:!1,ifHaveType:r.UR}),b(i.rk.SNAPSHOT,{isCreatable:!1,location:{name:`${p}-c-cluster-resource`,params:{resource:i.rk.SNAPSHOT}},resource:i.qY,resourceDetail:i.rk.SNAPSHOT,resourceEdit:i.rk.SNAPSHOT,canYaml:!1}),v(i.rk.SNAPSHOT,[a.c4,a.o_,a.CU,s.mt,a.K]),y({labelKey:"harvester.snapshot.label",name:i.rk.SNAPSHOT,namespaced:!0,weight:190,route:{name:`${p}-c-cluster-resource`,params:{resource:i.rk.SNAPSHOT}},exact:!1}),b(i.rk.VM_SNAPSHOT,{showListMasthead:!1,location:{name:`${p}-c-cluster-resource`,params:{resource:i.rk.VM_SNAPSHOT}},resource:i.rk.BACKUP,resourceDetail:i.rk.VM_SNAPSHOT,resourceEdit:i.rk.VM_SNAPSHOT,canYaml:!1}),y({labelKey:"harvester.vmSnapshot.label",name:i.rk.VM_SNAPSHOT,namespaced:!0,weight:191,route:{name:`${p}-c-cluster-resource`,params:{resource:i.rk.VM_SNAPSHOT}},exact:!1}),v(i.rk.SSH,[a.c4,a.o_,a.CU,s.lj,a.K]),y({labelKey:"harvester.sshKey.label",name:i.rk.SSH,namespaced:!0,weight:170,route:{name:`${p}-c-cluster-resource`,params:{resource:i.rk.SSH}},exact:!1}),b(i.rk.CLOUD_TEMPLATE,{location:{name:`${p}-c-cluster-resource`,params:{resource:i.rk.CLOUD_TEMPLATE}},resource:r.K5,resourceDetail:i.rk.CLOUD_TEMPLATE,resourceEdit:i.rk.CLOUD_TEMPLATE,canYaml:!1}),y({labelKey:"harvester.cloudTemplate.label",name:i.rk.CLOUD_TEMPLATE,namespaced:!0,weight:87,route:{name:`${p}-c-cluster-resource`,params:{resource:i.rk.CLOUD_TEMPLATE}},exact:!1}),v(i.rk.SECRET,[a.c4,a.o_,a.CU,a.UA,{name:"data",labelKey:"tableHeaders.data",value:"dataPreview",formatter:"SecretData"},a.K]),b(i.rk.SECRET,{location:{name:`${p}-c-cluster-resource`,params:{resource:i.rk.SECRET}},resource:r.bB,resourceDetail:i.rk.SECRET,resourceEdit:i.rk.SECRET,canYaml:!1,notFilterNamespace:["cattle-monitoring-system","cattle-logging-system"]}),y({labelKey:"harvester.secret.label",name:i.rk.SECRET,namespaced:!0,weight:-999,route:{name:`${p}-c-cluster-resource`,params:{resource:i.rk.SECRET}},exact:!1}),b(i.rk.SETTING,{isCreatable:!1}),y({ifHaveType:i.rk.SETTING,ifHaveVerb:"POST",labelKey:"harvester.setting.label",name:i.rk.SETTING,namespaced:!0,weight:-1e3,route:{name:`${p}-c-cluster-resource`,params:{resource:i.rk.SETTING}},exact:!1}),b(i.rk.STORAGE,{location:{name:`${p}-c-cluster-resource`,params:{resource:i.rk.STORAGE}},resource:r.fJ,resourceDetail:i.rk.STORAGE,resourceEdit:i.rk.STORAGE,isCreatable:!0,canYaml:!1}),y({labelKey:"harvester.storage.title",group:"root",ifHaveType:r.fJ,name:i.rk.STORAGE,namespaced:!1,weight:79,route:{name:`${p}-c-cluster-resource`,params:{resource:i.rk.STORAGE}},exact:!1}),y({label:"PCI Devices",group:"advanced",weight:14,name:i.rk.PCI_DEVICE,namespaced:!1,route:{name:`${p}-c-cluster-resource`,params:{resource:i.rk.PCI_DEVICE}},exact:!1}),b(i.rk.PCI_DEVICE,{isCreatable:!1,hiddenNamespaceGroupButton:!0,canYaml:!0,listGroups:[{icon:"icon-list-grouped",value:"description",field:"groupByDevice",hideColumn:"description",tooltipKey:"resourceTable.groupBy.device"},{icon:"icon-cluster",value:"node",field:"groupByNode",hideColumn:"node",tooltipKey:"resourceTable.groupBy.node"}]}),y({ifHaveType:i.rk.SR_IOV,labelKey:"harvester.sriov.label",group:"advanced",weight:15,name:i.rk.SR_IOV,namespaced:!1,route:{name:`${p}-c-cluster-resource`,params:{resource:i.rk.SR_IOV}},exact:!1}),b(i.rk.SR_IOV,{isCreatable:!1,hiddenNamespaceGroupButton:!0,canYaml:!1}),y({ifHaveType:i.rk.SR_IOVGPU_DEVICE,labelKey:"harvester.sriovgpu.label",group:"advanced",weight:13,name:i.rk.SR_IOVGPU_DEVICE,namespaced:!1,route:{name:`${p}-c-cluster-resource`,params:{resource:i.rk.SR_IOVGPU_DEVICE}},exact:!1}),b(i.rk.SR_IOVGPU_DEVICE,{isCreatable:!1,hiddenNamespaceGroupButton:!0,canYaml:!1}),y({labelKey:"harvester.vgpu.label",group:"advanced",weight:12,name:i.rk.VGPU_DEVICE,namespaced:!1,route:{name:`${p}-c-cluster-resource`,params:{resource:i.rk.VGPU_DEVICE}},exact:!1}),b(i.rk.VGPU_DEVICE,{isCreatable:!1,hiddenNamespaceGroupButton:!0,canYaml:!1,listGroups:[{icon:"icon-cluster",value:"node",field:"groupByNode",hideColumn:"node",tooltipKey:"resourceTable.groupBy.node"}]}),y({labelKey:"harvester.migconfiguration.label",group:"advanced",weight:12,name:i.rk.MIG_CONFIGURATION,namespaced:!1,route:{name:`${p}-c-cluster-resource`,params:{resource:i.rk.MIG_CONFIGURATION}},exact:!1,ifHaveType:i.rk.MIG_CONFIGURATION}),b(i.rk.MIG_CONFIGURATION,{isCreatable:!1,hiddenNamespaceGroupButton:!0,canYaml:!1}),y({labelKey:"harvester.usb.label",group:"advanced",weight:11,name:i.rk.USB_DEVICE,namespaced:!1,route:{name:`${p}-c-cluster-resource`,params:{resource:i.rk.USB_DEVICE}},exact:!1,ifHaveType:i.rk.USB_DEVICE}),b(i.rk.USB_DEVICE,{isCreatable:!1,hiddenNamespaceGroupButton:!0,canYaml:!1,listGroups:[{icon:"icon-list-grouped",value:"description",field:"groupByDevice",hideColumn:"description",tooltipKey:"resourceTable.groupBy.device"},{icon:"icon-cluster",value:"node",field:"groupByNode",hideColumn:"node",tooltipKey:"resourceTable.groupBy.node"}]}),b(i.rk.ADD_ONS,{isCreatable:!1,isRemovable:!1,showState:!1,canYaml:!1}),y({label:"Add-ons",group:"advanced",name:i.rk.ADD_ONS,ifHaveType:i.rk.ADD_ONS,weight:-900,namespaced:!1,route:{name:`${p}-c-cluster-resource`,params:{resource:i.rk.ADD_ONS}},exact:!1}),b(i.rk.LB,{location:{name:`${p}-c-cluster-resource`,params:{resource:i.rk.LB}},canYaml:!1}),y({labelKey:"harvester.loadBalancer.label",name:i.rk.LB,namespaced:!0,weight:185,route:{name:`${p}-c-cluster-resource`,params:{resource:i.rk.LB}},exact:!1,ifHaveType:i.rk.LB}),v(i.rk.LB,[a.c4,a.o_,{...a.BD,formatter:"HarvesterListener"},{name:"workloadType",labelKey:"harvester.loadBalancer.workloadType.label",value:"workloadTypeDisplay"},{name:"ipam",labelKey:"harvester.loadBalancer.ipam.label",value:"ipamDisplay"},a.K]),b(i.rk.IP_POOL,{location:{name:`${p}-c-cluster-resource`,params:{resource:i.rk.IP_POOL}},canYaml:!1}),y({labelKey:"harvester.ipPool.label",name:i.rk.IP_POOL,namespaced:!1,weight:184,route:{name:`${p}-c-cluster-resource`,params:{resource:i.rk.IP_POOL}},exact:!1,ifHaveType:i.rk.IP_POOL}),v(i.rk.IP_POOL,f)}},66905:function(e,t,n){"use strict";n.d(t,{$E:function(){return d},$z:function(){return i},Et:function(){return f},Ih:function(){return m},Jo:function(){return p},UQ:function(){return h},_w:function(){return o},cI:function(){return l},hg:function(){return u},uH:function(){return s},vo:function(){return c},xO:function(){return a}});var r=n(32766);const i=[{label:"VirtIO",value:"virtio"},{label:"SATA",value:"sata"},{label:"SCSI",value:"scsi"}],a={NEW:"New",IMAGE:"Virtual Machine Image",ATTACH_VOLUME:"Existing Volume",CONTAINER:"Container"},o=[{label:"disk",value:"disk"},{label:"cd-rom",value:"cd-rom"}],s={INSERT_CDROM_IMAGE:"INSERT_CDROM_IMAGE",EJECT_CDROM_IMAGE:"EJECT_CDROM_IMAGE",DETACH_DISK:"DETACH_DISK"},l={RESET_PWD:"userPassword",INJECT_SSH:"sshPublicKey"},c=["Always","RerunOnFailure","Manual","Halted"],u=["Migrate","ShutdownAndRestartAfterEnable","ShutdownAndRestartAfterDisable","Shutdown"],d={VolumeSnapshot:"VolumeSnapshot",PersistentVolumeClaim:"Volume"},h={LOGGING:"Logging",AUDIT:"Audit",EVENT:"Event"},p={HARVESTER_SEEDER:"harvester-seeder",PCI_DEVICE_CONTROLLER:"pcidevices-controller",NVIDIA_DRIVER_TOOLKIT_CONTROLLER:"nvidia-driver-toolkit",RANCHER_LOGGING:"rancher-logging",RANCHER_MONITORING:"rancher-monitoring",VM_IMPORT_CONTROLLER:"vm-import-controller",LVM_DRIVER:"lvm.driver.harvesterhci.io",KUBEOVN_OPERATOR:"kubeovn-operator"},f={CSI_PROVISIONER_SECRET_NAME:"csi.storage.k8s.io/provisioner-secret-name",CSI_PROVISIONER_SECRET_NAMESPACE:"csi.storage.k8s.io/provisioner-secret-namespace",CSI_NODE_PUBLISH_SECRET_NAME:"csi.storage.k8s.io/node-publish-secret-name",CSI_NODE_PUBLISH_SECRET_NAMESPACE:"csi.storage.k8s.io/node-publish-secret-namespace",CSI_NODE_STAGE_SECRET_NAME:"csi.storage.k8s.io/node-stage-secret-name",CSI_NODE_STAGE_SECRET_NAMESPACE:"csi.storage.k8s.io/node-stage-secret-namespace"},m={node:r.rk.HOST,configmap:r.rk.CLOUD_TEMPLATE,persistentvolumeclaim:r.rk.VOLUME,"snapshot.storage.k8s.io.volumesnapshot":r.rk.SNAPSHOT,"network.harvesterhci.io.vlanconfig":r.rk.CLUSTER_NETWORK,"kubeovn.io.subnet":r.rk.VPC}},2602:function(e,t,n){"use strict";n.d(t,{l:function(){return a},r:function(){return o}});const r=/cattle\.io\//,i=/harvesterhci\.io\/maintain-mode-strategy/,a=[r,i],o={CLOUD_INIT:"harvesterhci.io/cloud-init-template",CURRENT_IP:"rke2.io/internal-ip",IMAGE_ID:"harvesterhci.io/imageId",SSH_NAMES:"harvesterhci.io/sshNames",NETWORK_IPS:"network.harvesterhci.io/ips",TEMPLATE_VERSION_CUSTOM_NAME:"template-version.harvesterhci.io/customName",CREATOR:"harvesterhci.io/creator",OS:"harvesterhci.io/os",GOLDEN_IMAGE:"harvesterhci.io/goldenImage",NETWORK_TYPE:"network.harvesterhci.io/type",VM_NAME:"harvesterhci.io/vmName",VM_NAME_PREFIX:"harvesterhci.io/vmNamePrefix",VM_RESERVED_MEMORY:"harvesterhci.io/reservedMemory",MAINTENANCE_STATUS:"harvesterhci.io/maintain-status",HOST_CUSTOM_NAME:"harvesterhci.io/host-custom-name",HOST_CONSOLE_URL:"harvesterhci.io/host-console-url",RESTORE_NAME:"restore.harvesterhci.io/name",NODE_ROLE_MASTER:"node-role.kubernetes.io/master",NODE_ROLE_CONTROL_PLANE:"node-role.kubernetes.io/control-plane",NODE_ROLE_ETCD:"node-role.harvesterhci.io/witness",PROMOTE_STATUS:"harvesterhci.io/promote-status",CLONE_BACKEND_STORAGE_STATUS:"harvesterhci.io/clone-backend-storage-status",MIGRATION_STATE:"harvesterhci.io/migrationState",VOLUME_CLAIM_TEMPLATE:"harvesterhci.io/volumeClaimTemplates",IMAGE_NAME:"harvesterhci.io/image-name",INIT_IP:"etcd.rke2.cattle.io/node-address",NODE_SCHEDULABLE:"kubevirt.io/schedulable",NETWORK_ROUTE:"network.harvesterhci.io/route",MATCHED_NODES:"network.harvesterhci.io/matched-nodes",UPGRADE:"harvesterhci.io/upgrade",OS_UPGRADE_IMAGE:"harvesterhci.io/os-upgrade-image",LATEST_UPGRADE:"harvesterhci.io/latestUpgrade",UPGRADE_STATE:"harvesterhci.io/upgradeState",REAY_MESSAGE:"harvesterhci.io/read-message",DYNAMIC_SSHKEYS_NAMES:"harvesterhci.io/dynamic-ssh-key-names",DYNAMIC_SSHKEYS_USERS:"harvesterhci.io/dynamic-ssh-key-users",IMAGE_SUFFIX:"harvesterhci.io/image-type",OS_TYPE:"harvesterhci.io/os-type",STORAGE_PROVISIONER:"harvesterhci.io/storageProvisioner",SKIP_SINGLE_REPLICA_DETACHED_VOL:"harvesterhci.io/skipSingleReplicaDetachedVol",HOST_REQUEST:"management.cattle.io/pod-requests",STORAGE_CLASS:"harvesterhci.io/storageClassName",STORAGE_NETWORK:"storage-network.settings.harvesterhci.io",ADDON_EXPERIMENTAL:"addon.harvesterhci.io/experimental",ADDON_DISPLAYNAME:"addon.harvesterhci.io/displayName",VOLUME_ERROR:"longhorn.io/volume-scheduling-error",VOLUME_FOR_VM:"harvesterhci.io/volumeForVirtualMachine",KVM_AMD_CPU:"cpu-feature.node.kubevirt.io/svm",KVM_INTEL_CPU:"cpu-feature.node.kubevirt.io/vmx",NODE_MANUFACTURER:"manufacturer",NODE_MODEL:"model",NODE_SERIAL_NUMBER:"serialNumber",VM_INSUFFICIENT:"harvesterhci.io/insufficient-resource-quota",NODE_NTP_SYNC_STATUS:"node.harvesterhci.io/ntp-service",PARENT_SRIOV:"harvesterhci.io/parent-sriov-network-device",PARENT_SRIOV_GPU:"harvesterhci.io/parentSRIOVGPUDevice",VM_MAINTENANCE_MODE_STRATEGY:"harvesterhci.io/maintain-mode-strategy",NODE_CPU_MANAGER_UPDATE_STATUS:"harvesterhci.io/cpu-manager-update-status",CPU_MANAGER:"cpumanager",VM_DEVICE_ALLOCATION_DETAILS:"harvesterhci.io/deviceAllocationDetails",SVM_BACKUP_ID:"harvesterhci.io/svmbackupId",DISABLE_LONGHORN_V2_ENGINE:"node.longhorn.io/disable-v2-data-engine",K8S_ARCH:"kubernetes.io/arch",IMAGE_DISPLAY_NAME:"harvesterhci.io/imageDisplayName",CUSTOM_IP:"harvesterhci.io/custom-ip",IMPORTED_IMAGE:"migration.harvesterhci.io/imported",VM_CPU_MEMORY_HOTPLUG:"harvesterhci.io/enableCPUAndMemoryHotplug",FILESYSTEM_OVERHEAD:"cdi.harvesterhci.io/filesystemOverhead",CLONE_STRATEGY:"cdi.harvesterhci.io/storageProfileCloneStrategy",VOLUME_MODE_ACCESS_MODES:"cdi.harvesterhci.io/storageProfileVolumeModeAccessModes",VOLUME_SNAPSHOT_CLASS:"cdi.harvesterhci.io/storageProfileVolumeSnapshotClass",MAC_ADDRESS:"harvesterhci.io/mac-address",NODE_UPGRADE_PAUSE_MAP:"harvesterhci.io/node-upgrade-pause-map",CDI_POPULATOR_KIND:"cdi.kubevirt.io/storage.populator.kind"}},1371:function(e,t,n){"use strict";n.d(t,{$G:function(){return _},Ad:function(){return b},Bc:function(){return A},D9:function(){return m},EJ:function(){return f},H4:function(){return w},IL:function(){return o},Jb:function(){return k},Jw:function(){return C},KG:function(){return u},M2:function(){return T},R_:function(){return y},Su:function(){return v},Vv:function(){return E},WR:function(){return a},ap:function(){return x},iu:function(){return d},lA:function(){return h},lj:function(){return s},mt:function(){return l},nl:function(){return g},r:function(){return p},tC:function(){return c},tI:function(){return i},y2:function(){return S}});var r=n(68774);const i={name:"downloadedBytes",labelKey:"tableHeaders.size",value:"downSize",sort:"status.size"},a={name:"virtualSize",labelKey:"harvester.tableHeaders.virtualSize",value:"virtualSize",sort:"status.virtualSize"},o={name:"Uploaded",labelKey:"tableHeaders.progress",value:"status.progress",sort:"status.progress",formatter:"ImagePercentageBar"},s={name:"Fingerprint",labelKey:"tableHeaders.fingerprint",value:"status.fingerPrint"},l={name:"TargetVolume",labelKey:"harvester.tableHeaders.snapshotTargetVolume",value:"spec.source.persistentVolumeClaimName",sort:"spec.source.persistentVolumeClaimName",formatter:"SnapshotTargetVolume"},c={name:"CronExpression",labelKey:"harvester.tableHeaders.cronExpression",value:"spec.cron",align:"center",sort:"spec.cron",formatter:"HarvesterCronExpression"},u={name:"Retain",labelKey:"harvester.tableHeaders.retain",value:"spec.retain",sort:"spec.retain",align:"center"},d={name:"MaxFailure",labelKey:"harvester.tableHeaders.maxFailure",value:"spec.maxFailure",sort:"spec.maxFailure",align:"center"},h={name:"Type",labelKey:"harvester.tableHeaders.scheduleType",value:"spec.vmbackup.type",sort:"spec.vmbackup.type",align:"center"},p={name:"imageStorageClass",labelKey:"harvester.tableHeaders.storageClass",sort:"imageStorageClass",value:"imageStorageClass",align:"left",width:150},f={...r.tC,width:150},m={name:"cidrBlock",labelKey:"harvester.subnet.cidrBlock.label",sort:"cidrBlock",value:"spec.cidrBlock",align:"left"},g={name:"protocol",labelKey:"harvester.subnet.protocol.label",sort:"protocol",value:"spec.protocol",align:"left"},v={name:"provider",labelKey:"harvester.subnet.provider.label",sort:"provider",value:"spec.provider",align:"left"},b={name:"sourceVm",labelKey:"harvester.tableHeaders.vmImportSourceVm",value:"spec.virtualMachineName",sort:"spec.virtualMachineName",align:"left"},y={name:"sourceCluster",labelKey:"harvester.tableHeaders.vmImportSourceCluster",value:"spec.sourceCluster.name",sort:"spec.sourceCluster.name",align:"left"},_={name:"importStatus",labelKey:"harvester.tableHeaders.vmImportStatus",value:"status.importStatus",sort:"status.importStatus",align:"left"},w={name:"datacenter",labelKey:"harvester.tableHeaders.vmImportSourceVDatacenter",value:"spec.dc",sort:"spec.dc",align:"left"},E={name:"endpoint",labelKey:"harvester.tableHeaders.vmImportSourceVEndpoint",value:"spec.endpoint",sort:"spec.endpoint",align:"left"},S={name:"clusterStatus",labelKey:"harvester.tableHeaders.vmImportSourceVClusterStatus",value:"status.status",sort:"status.status",align:"left"},k={name:"region",labelKey:"harvester.tableHeaders.vmImportSourceORegion",value:"spec.region",sort:"spec.region",align:"left"},x={name:"endpoint",labelKey:"harvester.tableHeaders.vmImportSourceOEndpoint",value:"spec.endpoint",sort:"spec.endpoint",align:"left"},A={name:"clusterStatus",labelKey:"harvester.tableHeaders.vmImportSourceOClusterStatus",value:"status.status",sort:"status.status",align:"left"},C={name:"url",labelKey:"harvester.tableHeaders.vmImportSourceOVAUrl",value:"spec.url",sort:"spec.url",align:"left"},T={name:"status",labelKey:"harvester.tableHeaders.vmImportSourceOVAStatus",value:"status.status",sort:"status.status",align:"left"}},41837:function(e,t,n){"use strict";n.d(t,{AW:function(){return i},Nu:function(){return s},QD:function(){return l},aS:function(){return r},dt:function(){return d},pG:function(){return c},r4:function(){return u},s4:function(){return o},vU:function(){return a}});const r={BACKUP:"backup",SNAPSHOT:"snapshot"},i={L2VLAN:"L2VlanNetwork",UNTAGGED:"UntaggedNetwork",OVERLAY:"OverlayNetwork",L2TRUNK_VLAN:"L2VlanTrunkNetwork"},a={BLOCK:"Block",FILE_SYSTEM:"Filesystem"},o={IPv4:"IPv4",IPv6:"IPv6"},s={VMSTATE_PERSISTENCE:"vmstate-persistence",LONGHORN_STATIC:"longhorn-static"},l={ACCESS:"access",TRUNK:"trunk"},c={VMWARE:"vmware",OPENSTACK:"openstack",OVA:"ova"},u={VMWARE:"VmwareSource",OPENSTACK:"OpenstackSource",OVA:"OvaSource"},d={VOLUME_IMPORT_SOURCE:"VolumeImportSource",VOLUME_CLONE_SOURCE:"VolumeCloneSource"}},83727:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(35664),i=n(89865);class a extends i.A{get clusterroletemplatebinding(){return this.$rootGetters["management/byId"](r.Mc.CLUSTER_ROLE_TEMPLATE_BINDING,this.id?.replace(":","/"))}get principalId(){return this.userPrincipalId||this.groupPrincipalId}get roleDisplay(){return this.roleTemplate.nameDisplay}get roleDescription(){return this.roleTemplate.description}get roleTemplate(){return this.$rootGetters["management/byId"](r.Mc.ROLE_TEMPLATE,this.roleTemplateId)}}},17976:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(92043),i=n(40408),a=n(24222);class o extends a["default"]{get _availableActions(){let e=super._availableActions;return e=e.map(e=>"showConfiguration"===e.action||"goToEditYaml"===e.action?{...e,enabled:!this.spec.enabled}:"goToEdit"===e.action?{...e,enabled:!this.spec.enabled&&["disabled",""].includes(this.configStatus)}:e),e.push({action:"enableConfig",enabled:!this.isEnabled,icon:"icon icon-fw icon-dot",label:"Enable"},{action:"disableConfig",enabled:this.isEnabled,icon:"icon icon-fw icon-dot-open",label:"Disable"}),e}get canYaml(){return!1}get disableResourceDetailDrawer(){return!0}get canDelete(){return!1}get configStatus(){return this.status.status}get actualState(){return this.isEnabled?"Enabled":"Disabled"}get stateDisplay(){return this.actualState}get stateColor(){const e=this.actualState;return(0,i.uU)(e)}get isEnabled(){return this.spec.enabled}get configuredProfiles(){const e=this.spec?.profileSpec?.filter(e=>e.requested>0)||[];return 0===e.length?"":e.map(e=>`${e.name} * ${e.requested}`).join(", ")}async enableConfig(){try{this.spec.enabled=!0,await this.save()}catch(e){this.$dispatch("growl/fromError",{title:this.t("generic.notification.title.error",{name:(0,r.ZD)(this.name)}),err:e},{root:!0})}}async disableConfig(){const{enabled:e}=this.spec;try{this.spec.enabled=!1,await this.save()}catch(t){this.spec.enabled=e,this.$dispatch("growl/fromError",{title:this.t("generic.notification.title.error",{name:(0,r.ZD)(this.name)}),err:t},{root:!0})}}}},66529:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c}});var r=n(87811),i=n(92043),a=n(32766),o=n(2602),s=n(94741);const l={enabled:{displayKey:"generic.enabled",color:"bg-success"},pending:{displayKey:"generic.inProgress",color:"bg-info"},disabled:{displayKey:"generic.disabled",color:"bg-warning"},error:{displayKey:"generic.disabled",color:"bg-warning"}};class c extends r.A{get _availableActions(){const e=super._availableActions;return e.push({action:"enablePassthroughBulk",enabled:!this.isEnabling&&!this.isvGPUDevice,icon:"icon icon-fw icon-dot",label:"Enable Passthrough",bulkable:!0,bulkAction:"enablePassthroughBulk",weight:1},{action:"disablePassthrough",enabled:this.isEnabling&&this.claimedByMe&&!this.isvGPUDevice,icon:"icon icon-fw icon-dot-open",label:"Disable Passthrough",bulkable:!0,weight:0}),e}get isvGPUDevice(){return!!this.vGPUAsPCIDeviceFeatureEnabled&&!!this.metadata?.labels?.[o.r.PARENT_SRIOV_GPU]}get canYaml(){return!1}get canDelete(){return!1}goToDetail(){return!1}goToEdit(){return!1}get passthroughClaim(){const e=this.$getters["all"](a.rk.PCI_CLAIM)||[];return!!this.status&&e.find(e=>e?.spec?.nodeName===this.status?.nodeName&&e?.spec?.address===this.status?.address)}get uniqueId(){return`${this.status?.vendorId}:${this.status?.deviceId}`}get claimedBy(){return this.passthroughClaim?.spec?.userName}get claimedByMe(){if(!this.passthroughClaim)return!1;const e=(0,s.x)(this.$rootGetters);return this.claimedBy===e}get isEnabled(){return!!this.passthroughClaim?.status?.passthroughEnabled}get isEnabling(){return!!this.passthroughClaim}get claimStatusDisplay(){return this.passthroughClaim?this.isEnabled?l.enabled:l.pending:l.disabled}get stateDisplay(){const e=this.$rootGetters["i18n/t"];return e(this.claimStatusDisplay.displayKey)}get stateBackground(){return this.claimStatusDisplay.color}enablePassthroughBulk(e=this){this.$dispatch("promptModal",{resources:e,component:"EnablePciPassthrough"})}async disablePassthrough(){if(this.allowDisable)try{if(!this.claimedByMe)throw new Error(this.$rootGetters["i18n/t"]("harvester.pci.cantUnclaim",{name:(0,i.ZD)(this.metadata.name)}));await this.passthroughClaim.remove()}catch(e){this.$dispatch("growl/fromError",{title:this.$rootGetters["i18n/t"]("harvester.pci.unclaimError",{name:(0,i.ZD)(this.metadata.name)}),err:e},{root:!0})}else this.showDetachWarning()}get groupByNode(){const e=this.status?.nodeName||this.$rootGetters["i18n/t"]("generic.none");return this.$rootGetters["i18n/t"]("resourceTable.groupLabel.node",{name:(0,i.ZD)(e)})}get groupByDevice(){return this.status?.description}get vGPUAsPCIDeviceFeatureEnabled(){return this.$rootGetters["harvester-common/getFeatureEnabled"]("vGPUAsPCIDevice")}showDetachWarning(){this.$dispatch("growl/warning",{title:this.$rootGetters["i18n/t"]("harvester.pci.detachWarning.title"),message:this.$rootGetters["i18n/t"]("harvester.pci.detachWarning.message"),timeout:5e3},{root:!0})}get allowDisable(){return this._allowDisable}set allowDisable(e){this._allowDisable=e}}},66325:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(87811);class i extends r.A{cleanForSave(e,t){return e}}},13520:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c}});var r=n(87811),i=n(92043),a=n(40408),o=n(35664),s=n(2602),l=n(32766);class c extends r.A{get _availableActions(){const e=super._availableActions;return e.push({action:"enableDevice",enabled:!this.isEnabled,icon:"icon icon-fw icon-dot",label:"Enable"},{action:"disableDevice",enabled:this.isEnabled,icon:"icon icon-fw icon-dot-open",label:"Disable"}),e}get canYaml(){return!1}get canDelete(){return!1}goToDetail(){return!1}goToEdit(){return!1}get actualState(){return this.isEnabled?"Enabled":"Disabled"}get stateDisplay(){return this.actualState}get stateColor(){const e=this.actualState;return(0,a.uU)(e)}get isEnabled(){return this.spec.enabled&&this.status?.vfAddresses?.length>0&&this.status?.vGPUDevices?.length>0}async enableDevice(){try{this.spec.enabled=!0,await this.save()}catch(e){this.$dispatch("growl/fromError",{title:this.t("generic.notification.title.error",{name:(0,i.ZD)(this.metadata.name)}),err:e},{root:!0})}}async disableDevice(){const e=this.$rootGetters["currentProduct"].inStore,t=this.$rootGetters[`${e}/schemaFor`](l.rk.VGPU_DEVICE);if(t){const t=this.$rootGetters[`${e}/all`](l.rk.VGPU_DEVICE)||[],n=t.filter(e=>e.labels[s.r.PARENT_SRIOV_GPU]===this.id&&e.spec?.enabled).map(e=>e.id);if(n.length>0)return void this.$dispatch("growl/error",{title:this.t("generic.notification.title.error",{name:(0,i.ZD)(this.metadata.name)}),message:`\n Cannot disable ${this.metadata.name}, following vGPU devices are enabled:\n [${n.join(", ")}]\n `},{root:!0})}try{this.spec.enabled=!1,await this.save()}catch(n){this.$dispatch("growl/fromError",{title:this.t("generic.notification.title.error",{name:(0,i.ZD)(this.metadata.name)}),err:n},{root:!0})}}get realNodeName(){const e=this.$rootGetters["currentProduct"].inStore,t=this.spec?.nodeName,n=this.$rootGetters[`${e}/all`](o.NW),r=n.find(e=>e.id===t);return r?.nameDisplay||""}get numVFs(){return this.status?.vfAddresses?.length||0}get childDevice(){return l.rk.VGPU_DEVICE}}},75128:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(87811),i=n(92043),a=n(40408),o=n(35664),s=n(32766);class l extends r.A{get _availableActions(){const e=super._availableActions;return e.push({action:"enableDevice",enabled:!this.isEnabled,icon:"icon icon-fw icon-dot",label:"Enable"},{action:"disableDevice",enabled:this.isEnabled,icon:"icon icon-fw icon-dot-open",label:"Disable"}),e}get canYaml(){return!1}get canDelete(){return!1}goToDetail(){return!1}goToEdit(){return!1}get actualState(){return this.isEnabled?"Enabled":"Disabled"}get stateDisplay(){return this.actualState}get stateColor(){const e=this.actualState;return(0,a.uU)(e)}get isEnabled(){return"sriovNetworkDeviceEnabled"===this.status?.status&&this.spec?.numVFs>0}enableDevice(e=this){this.$dispatch("promptModal",{resources:e,component:"EnableSriovDevice"})}async disableDevice(){const e=this.spec.numVFs;try{this.spec.numVFs=0,await this.save()}catch(t){this.spec.numVFs=e,this.$dispatch("growl/fromError",{title:this.t("generic.notification.title.error",{name:(0,i.ZD)(this.metadata.name)}),err:t},{root:!0})}}get realNodeName(){const e=this.$rootGetters["currentProduct"].inStore,t=this.spec?.nodeName,n=this.$rootGetters[`${e}/all`](o.NW),r=n.find(e=>e.id===t);return r?.nameDisplay||""}get numVFs(){return this.spec?.numVFs}get childDevice(){return s.rk.PCI_DEVICE}}},95311:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(87811),i=n(92043),a=n(32766),o=n(94741);const s={enabled:{displayKey:"generic.enabled",color:"bg-success"},pending:{displayKey:"generic.inProgress",color:"bg-info"},disabled:{displayKey:"generic.disabled",color:"bg-warning"},error:{displayKey:"generic.disabled",color:"bg-warning"}};class l extends r.A{get _availableActions(){const e=super._availableActions;return e.push({action:"enablePassthroughBulk",enabled:!this.passthroughClaim&&!this.status.enabled,icon:"icon icon-fw icon-dot",label:"Enable Passthrough",bulkable:!0,bulkAction:"enablePassthroughBulk",weight:1},{action:"disablePassthrough",enabled:this.status.enabled,icon:"icon icon-fw icon-dot-open",label:"Disable Passthrough",bulkable:!0,weight:0}),e}get canYaml(){return!1}get canDelete(){return!1}goToDetail(){return!1}goToEdit(){return!1}get passthroughClaim(){const e=this.$getters["all"](a.rk.USB_CLAIM)||[];return!!this.status&&e.find(e=>e?.status?.nodeName===this.status?.nodeName&&e?.metadata?.name===this.metadata?.name)}get uniqueId(){return`${this.status?.vendorId}:${this.status?.deviceId}`}get claimedBy(){return this.passthroughClaim?.spec?.userName}get claimedByMe(){if(!this.passthroughClaim)return!1;const e=(0,o.x)(this.$rootGetters);return this.claimedBy===e}get claimStatusDisplay(){return this.passthroughClaim?this.status.enabled?s.enabled:s.pending:s.disabled}get stateDisplay(){const e=this.$rootGetters["i18n/t"];return e(this.claimStatusDisplay.displayKey)}get stateBackground(){return this.claimStatusDisplay.color}enablePassthroughBulk(e=this){this.$dispatch("promptModal",{resources:e,component:"EnableUSBPassthrough"})}async disablePassthrough(){if(this.allowDisable)try{if(!this.claimedByMe)throw new Error(this.$rootGetters["i18n/t"]("harvester.usb.cantUnclaim",{name:(0,i.ZD)(this.metadata.name)}));await this.passthroughClaim.remove()}catch(e){this.$dispatch("growl/fromError",{title:this.$rootGetters["i18n/t"]("harvester.usb.unclaimError",{name:(0,i.ZD)(this.metadata.name)}),err:e},{root:!0})}else this.showDetachWarning()}get groupByNode(){const e=this.status?.nodeName||this.$rootGetters["i18n/t"]("generic.none");return this.$rootGetters["i18n/t"]("resourceTable.groupLabel.node",{name:(0,i.ZD)(e)})}get groupByDevice(){return this.status?.description}showDetachWarning(){this.$dispatch("growl/warning",{title:this.$rootGetters["i18n/t"]("harvester.usb.detachWarning.title"),message:this.$rootGetters["i18n/t"]("harvester.usb.detachWarning.message"),timeout:5e3},{root:!0})}get allowDisable(){return this._allowDisable}set allowDisable(e){this._allowDisable=e}}},17467:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(87811);class i extends r.A{cleanForSave(e,t){return e}}},46505:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(87811),i=n(92043);const a={enabled:{displayKey:"generic.enabled",color:"bg-success"},pending:{displayKey:"generic.inProgress",color:"bg-info"},disabled:{displayKey:"generic.disabled",color:"bg-warning"},error:{displayKey:"generic.disabled",color:"bg-warning"}};class o extends r.A{get _availableActions(){const e=super._availableActions;return e.push({action:"enableVGpu",enabled:!this.isEnabled,icon:"icon icon-fw icon-dot",label:"Enable"},{action:"disableVGpu",enabled:this.isEnabled,icon:"icon icon-fw icon-dot-open",label:"Disable",bulkable:!0}),e}get canYaml(){return!1}get canDelete(){return!1}goToDetail(){return!1}goToEdit(){return!1}get isEnabled(){return!0===this?.spec?.enabled}get isEnabling(){return this.status?.vGPUStatus&&"vGPUConfigured"!==this.status?.vGPUStatus}get statusDisplay(){return this.isEnabling?a.pending:this.isEnabled?a.enabled:a.disabled}get stateDisplay(){const e=this.$rootGetters["i18n/t"];return e(this.statusDisplay.displayKey)}get stateBackground(){return this.statusDisplay.color}enableVGpu(e=this){this.$dispatch("promptModal",{resources:e,component:"EnableVGpuDevice"})}async disableVGpu(){if(!this.allowDisable)return void this.showDetachWarning();const{vGPUTypeName:e,enabled:t}=this.spec;try{this.spec.vGPUTypeName=void 0,this.spec.enabled=!1,await this.save()}catch(n){this.spec.vGPUTypeName=e,this.spec.enabled=t,this.$dispatch("growl/fromError",{title:this.t("generic.notification.title.error",{name:(0,i.ZD)(this.metadata.name)}),err:n},{root:!0})}}get groupByNode(){const e=this.spec?.nodeName||this.$rootGetters["i18n/t"]("generic.none");return this.$rootGetters["i18n/t"]("resourceTable.groupLabel.node",{name:(0,i.ZD)(e)})}get vGpuAvailableTypes(){return this.status?.availableTypes?Object.keys(this.status.availableTypes):[]}showDetachWarning(){this.$dispatch("growl/warning",{title:this.$rootGetters["i18n/t"]("harvester.vgpu.detachWarning.title"),message:this.$rootGetters["i18n/t"]("harvester.vgpu.detachWarning.message"),timeout:5e3},{root:!0})}get allowDisable(){return this._allowDisable}set allowDisable(e){this._allowDisable=e}}},24222:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(87811),i=n(91462),a=n(20652),o=n(66905);class s extends r.A{get listLocation(){const e=this.harvesterResourcesInExplorer?"c-cluster-product-resource":`${a.KR}-c-cluster-resource`,t=o.Ih[this.type]||this.type;return this.$rootGetters["type-map/optionsFor"](this.type).customRoute||{name:e,params:{product:this.$rootGetters["productId"],cluster:this.$rootGetters["clusterId"],resource:t}}}get parentLocationOverride(){return this.listLocation}get doneRoute(){return this.listLocation.name}get doneOverride(){return this.listLocation}get harvesterResourcesInExplorer(){return this.$rootGetters["productId"]!==a.KR}get _detailLocation(){const e=this.$getters["schemaFor"](this.type),t=this.id?.replace(/.*\//,""),n=this.harvesterResourcesInExplorer?`c-cluster-product-resource${e?.attributes?.namespaced?"-namespace":""}-id`:`${a.KR}-c-cluster-resource${e?.attributes?.namespaced?"-namespace":""}-id`,r={name:n,params:{product:this.$rootGetters["productId"],cluster:this.$rootGetters["clusterId"],resource:this.type,namespace:this.metadata?.namespace,id:t}};return this.harvesterResourcesInExplorer&&(r.query={as:"yaml"}),r}get forceYaml(){return this.harvesterResourcesInExplorer}get canViewInApi(){try{return this.hasLink("self")&&this.$rootGetters["prefs/get"](i.HZ)}catch{return this.hasLink("self")&&this.$rootGetters["prefs/get"](i.IJ)}}cleanForSave(e,t){return e}}},24481:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(76978),i=n(32766),a=n(24222),o=n(20652);class s extends a["default"]{get detailLocation(){const e=(0,r.o8)(this._detailLocation);return e.params.resource=i.rk.CLOUD_TEMPLATE,e}get doneOverride(){const e=(0,r.o8)(this._detailLocation);return delete e.params.namespace,delete e.params.id,e.params.resource=i.rk.CLOUD_TEMPLATE,e.name=`${o.KR}-c-cluster-resource`,e}get parentNameOverride(){return this.$rootGetters["i18n/t"](`typeLabel."${i.rk.CLOUD_TEMPLATE}"`,{count:1})?.trim()}get parentLocationOverride(){return this.doneOverride}}},4987:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(76978),i=n(43842),a=n(32766),o=n(20652);const s="Not Ready";class l extends i["default"]{get listLocation(){return this.$rootGetters["type-map/optionsFor"](this.type).customRoute||{name:`${o.KR}-c-cluster-resource`,params:{product:o.KR,cluster:this.$rootGetters["clusterId"],resource:a.rk.NETWORK_ATTACHMENT}}}get doneRoute(){return this.listLocation.name}get detailLocation(){const e=(0,r.o8)(this._detailLocation);return e.params.resource=a.rk.NETWORK_ATTACHMENT,e.name=`${o.KR}-c-cluster-resource-namespace-id`,e}get doneOverride(){const e=(0,r.o8)(this._detailLocation);return delete e.params.namespace,delete e.params.id,e.params.resource=a.rk.NETWORK_ATTACHMENT,e.name=`${o.KR}-c-cluster-resource`,e}get parentNameOverride(){return this.$rootGetters["i18n/t"](`typeLabel."${a.rk.NETWORK_ATTACHMENT}"`,{count:1})?.trim()}get parentLocationOverride(){return this.doneOverride}get inStore(){return this.$rootGetters["currentProduct"].inStore}get clusterNetworkResource(){const e=this.$rootGetters[`${this.inStore}/all`](a.rk.CLUSTER_NETWORK);return e.find(e=>e.id===this.clusterNetwork)}get clusterNetworkErrorMessage(){return this.clusterNetworkResource?this.clusterNetworkResource.isReady?"":this.t("harvester.clusterNetwork.notReady",{clusterNetwork:this.clusterNetwork}):this.t("harvester.clusterNetwork.notExist",{clusterNetwork:this.clusterNetwork})}get stateDisplay(){return this.clusterNetworkErrorMessage?s:super.stateDisplay}get stateBackground(){return this.stateDisplay===s?"bg-warning":super.stateBackground}get isNotReady(){return this.clusterNetworkErrorMessage}}},50826:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(76978),i=n(35664),a=n(32766),o=n(20652),s=n(40322);class l extends s["default"]{get allOutputs(){return this.$rootGetters["harvester/all"](i.cm.CLUSTER_OUTPUT)||[]}get listLocation(){const e=(0,r.o8)(super.listLocation);return e.name=this.harvesterResourcesInExplorer?"c-cluster-product-resource":`${o.KR}-c-cluster-resource`,e.params.resource=a.rk.CLUSTER_FLOW,e}get harvesterResourcesInExplorer(){return this.$rootGetters["productId"]!==o.KR}get _detailLocation(){const e=this.$getters["schemaFor"](this.type),t=this.id?.replace(/.*\//,"");return{name:`${o.KR}-c-cluster-resource${e?.attributes?.namespaced?"-namespace":""}-id`,params:{product:o.KR,cluster:this.$rootGetters["clusterId"],resource:this.type,id:t,namespace:this.metadata.namespace}}}get detailLocation(){const e=(0,r.o8)(this._detailLocation);return e.params.resource=a.rk.CLUSTER_FLOW,e}get doneOverride(){const e=(0,r.o8)(this._detailLocation);return delete e.params.namespace,delete e.params.id,e.params.resource=a.rk.CLUSTER_FLOW,e.name=`${o.KR}-c-cluster-resource`,e}get parentNameOverride(){return this.$rootGetters["i18n/t"](`typeLabel."${a.rk.CLUSTER_FLOW}"`,{count:1})?.trim()}get parentLocationOverride(){return this.doneOverride}}},49039:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(76978),i=n(32766),a=n(20652),o=n(15895);class s extends o["default"]{get _detailLocation(){const e=this.$getters["schemaFor"](this.type),t=this.id?.replace(/.*\//,"");return{name:`${a.KR}-c-cluster-resource${e?.attributes?.namespaced?"-namespace":""}-id`,params:{product:a.KR,cluster:this.$rootGetters["clusterId"],resource:this.type,id:t,namespace:this.metadata.namespace}}}get listLocation(){const e=(0,r.o8)(super.listLocation);return e.name=this.harvesterResourcesInExplorer?"c-cluster-product-resource":`${a.KR}-c-cluster-resource`,e.params.resource=i.rk.CLUSTER_OUTPUT,e}get harvesterResourcesInExplorer(){return this.$rootGetters["productId"]!==a.KR}get detailLocation(){const e=(0,r.o8)(this._detailLocation);return e.params.resource=i.rk.CLUSTER_OUTPUT,e}get doneOverride(){const e=(0,r.o8)(this._detailLocation);return delete e.params.namespace,delete e.params.id,e.params.resource=i.rk.CLUSTER_OUTPUT,e.name=`${a.KR}-c-cluster-resource`,e}get parentNameOverride(){return this.$rootGetters["i18n/t"](`typeLabel."${i.rk.CLUSTER_OUTPUT}"`,{count:1})?.trim()}get parentLocationOverride(){return this.doneOverride}}},40322:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c}});var r=n(35664),i=n(76978),a=n(21766),o=n(32766),s=n(20652),l=n(66905);class c extends a["default"]{get allOutputs(){return this.$rootGetters["harvester/all"](r.cm.OUTPUT)||[]}get allClusterOutputs(){return this.$rootGetters["harvester/all"](r.cm.CLUSTER_OUTPUT)||[]}get listLocation(){const e=(0,i.o8)(super.listLocation);return e.name=this.harvesterResourcesInExplorer?"c-cluster-product-resource":`${s.KR}-c-cluster-resource`,e.params.resource=o.rk.FLOW,e}get harvesterResourcesInExplorer(){return this.$rootGetters["productId"]!==s.KR}get _detailLocation(){const e=this.$getters["schemaFor"](this.type),t=this.id?.replace(/.*\//,"");return{name:`${s.KR}-c-cluster-resource${e?.attributes?.namespaced?"-namespace":""}-id`,params:{product:s.KR,cluster:this.$rootGetters["clusterId"],resource:this.type,id:t,namespace:this.metadata.namespace}}}get detailLocation(){const e=(0,i.o8)(this._detailLocation);return e.params.resource=o.rk.FLOW,e}get doneOverride(){const e=(0,i.o8)(this._detailLocation);return delete e.params.namespace,delete e.params.id,e.params.resource=o.rk.FLOW,e.name=`${s.KR}-c-cluster-resource`,e}get parentNameOverride(){return this.$rootGetters["i18n/t"](`typeLabel."${o.rk.FLOW}"`,{count:1})?.trim()}get parentLocationOverride(){return this.doneOverride}get loggingType(){return"harvester-kube-audit-log-ref"===this.spec.loggingRef?l.UQ.AUDIT:(this.spec.match||[]).find(e=>!!e?.select?.labels?.["app.kubernetes.io/name"])?l.UQ.EVENT:l.UQ.LOGGING}}},15895:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(76978),i=n(44931),a=n(32766),o=n(20652),s=n(66905);class l extends i["default"]{get _detailLocation(){const e=this.$getters["schemaFor"](this.type),t=this.id?.replace(/.*\//,"");return{name:`${o.KR}-c-cluster-resource${e?.attributes?.namespaced?"-namespace":""}-id`,params:{product:o.KR,cluster:this.$rootGetters["clusterId"],resource:this.type,id:t,namespace:this.metadata.namespace}}}get listLocation(){const e=(0,r.o8)(super.listLocation);return e.name=this.harvesterResourcesInExplorer?"c-cluster-product-resource":`${o.KR}-c-cluster-resource`,e.params.resource=a.rk.OUTPUT,e}get harvesterResourcesInExplorer(){return this.$rootGetters["productId"]!==o.KR}get detailLocation(){const e=(0,r.o8)(this._detailLocation);return e.params.resource=a.rk.OUTPUT,e}get doneOverride(){const e=(0,r.o8)(this._detailLocation);return delete e.params.namespace,delete e.params.id,e.params.resource=a.rk.OUTPUT,e.name=`${o.KR}-c-cluster-resource`,e}get parentNameOverride(){return this.$rootGetters["i18n/t"](`typeLabel."${a.rk.OUTPUT}"`,{count:1})?.trim()}get parentLocationOverride(){return this.doneOverride}get url(){return this.detailLocation}get loggingType(){return"harvester-kube-audit-log-ref"===this.spec.loggingRef?s.UQ.AUDIT:s.UQ.LOGGING}}},65073:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(76978),i=n(76061),a=n(32766),o=n(20652);class s extends i["default"]{get detailLocation(){const e=(0,r.o8)(this._detailLocation);return e.params.resource=a.rk.SETTING,e}get doneOverride(){const e=(0,r.o8)(this._detailLocation);return delete e.params.namespace,delete e.params.id,e.params.resource=a.rk.SETTING,e.name=`${o.KR}-c-cluster-resource`,e}get doneRoute(){return null}get parentNameOverride(){return this.$rootGetters["i18n/t"](`typeLabel."${a.rk.SETTING}"`,{count:1})?.trim()}get parentLocationOverride(){return this.doneOverride}get doneParams(){return{product:this.$rootGetters["productId"],cluster:this.$rootGetters["clusterId"],resource:a.rk.SETTING}}}},53942:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(76978),i=n(14220),a=n(87811),o=n(32766),s=n(20652);class l extends a.A{get _detailLocation(){return{name:this.alertmanagerConfigDoneRouteName,params:{cluster:this.$rootGetters["clusterId"],resource:o.rk.ALERTMANAGERCONFIG,namespace:this.metadata?.namespace,id:this.name},hash:"#receivers",query:{as:"config"}}}get listLocation(){const e=(0,r.o8)(super.listLocation);return e.name=this.harvesterResourcesInExplorer?"c-cluster-product-resource":`${s.KR}-c-cluster-resource`,e.params.resource=o.rk.ALERTMANAGERCONFIG,e}get harvesterResourcesInExplorer(){return this.$rootGetters["productId"]!==s.KR}get doneOverride(){const e=(0,r.o8)(this._detailLocation);return delete e.params.namespace,delete e.params.id,e.params.resource=o.rk.ALERTMANAGERCONFIG,e.name=`${s.KR}-c-cluster-resource`,e}get parentNameOverride(){return this.$rootGetters["i18n/t"](`typeLabel."${o.rk.ALERTMANAGERCONFIG}"`,{count:1})?.trim()}get parentLocationOverride(){return this.doneOverride}applyDefaults(){if(this.spec)return this.spec;const e=this.spec?.route?.receivers||[],t={receivers:[...e],route:{receivers:this.spec?.route?.receivers||[],groupBy:this.spec?.route?.groupBy||[],groupWait:this.spec?.route?.groupWait||"30s",groupInterval:this.spec?.route?.groupInterval||"5m",repeatInterval:this.spec?.route?.repeatInterval||"4h",match:this.spec?.route?.match||{},matchRe:this.spec?.route?.matchRe||{}}};(0,r.hZ)(this,"spec",t)}get _availableActions(){const e=super._availableActions;return e}getReceiverActions(e){return e.filter(e=>{if(e.divider)return!0;switch(e.action){case"goToEdit":return!0;case"goToEditYaml":return!0;case"promptRemove":return!0;default:return!1}})}get alertmanagerConfigDoneRouteName(){return`${s.KR}-c-cluster-resource-namespace-id`}getCreateReceiverRoute(){return{name:`${s.KR}-c-cluster-alertmanagerconfig-alertmanagerconfigid-receiver`,params:{cluster:this.$rootGetters["clusterId"],alertmanagerconfigid:this.id},query:{mode:i.YQ,currentView:i.au}}}getReceiverDetailLink(e){return{name:`${s.KR}-c-cluster-alertmanagerconfig-alertmanagerconfigid-receiver`,params:{cluster:this.$rootGetters["clusterId"],alertmanagerconfigid:this.id,receiverName:e},query:{mode:i.nW,receiverName:e,currentView:i.au}}}getEditReceiverYamlRoute(e,t){return{name:`${s.KR}-c-cluster-alertmanagerconfig-alertmanagerconfigid-receiver`,params:{cluster:this.$rootGetters["clusterId"],alertmanagerconfigid:this.id},query:{mode:t||i.nW,receiverName:e,currentView:i.zD}}}getEditReceiverConfigRoute(e,t){return{name:`${s.KR}-c-cluster-alertmanagerconfig-alertmanagerconfigid-receiver`,params:{cluster:this.$rootGetters["clusterId"],alertmanagerconfigid:this.id},query:{mode:t||i.nW,receiverName:e,currentView:i.au}}}}},62878:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var r=n(68851),i=n(67867),a=n(2841),o=n(71025),s=n(76978),l=n(35664),c=n(20652),u=n(32766);const d=["c-","p-","user-","local"];class h extends i["default"]{get _availableActions(){const e=super._availableActions,t=e.findIndex(e=>"promptRemove"===e.action),n={action:"promptRemove",altAction:"remove",label:this.t("action.remove"),icon:"icon icon-trash",bulkable:!0,enabled:this.canDelete,bulkAction:"promptRemove",weight:-10},i={action:"editNSQuota",label:this.t("harvester.modal.quota.editQuota"),icon:"icon icon-storage",enabled:!!this?.actions?.updateResourceQuota&&!!this?.actions?.deleteResourceQuota,weight:-11};return t>-1&&e.splice(t,1),(0,r.PT)(e,e.length-1,n),(0,r.PT)(e,e.length-5,i),e}editNSQuota(e=this){this.$dispatch("promptModal",{resources:e,snapshotSizeQuota:this.snapshotSizeQuota,component:"HarvesterQuotaDialog"})}promptRemove(e=this){this.$dispatch("promptModal",{resources:e,component:"ConfirmRelatedToRemoveDialog"})}get nsResourceQuota(){const e=this.$rootGetters["currentProduct"].inStore,t=this.$rootGetters[`${e}/all`](u.rk.RESOURCE_QUOTA);return t.find(e=>e.metadata.namespace===this.id)}get snapshotSizeQuota(){return this.nsResourceQuota?.spec?.snapshotLimit?.namespaceTotalSnapshotSizeQuota}get isSystem(){const e=["fleet-default"];if(e.includes(this.metadata.name))return!0;if("true"===this.metadata?.annotations?.[a.eG])return!0;if(o.A.includes(this.metadata.name))return!0;if(this.metadata.name.endsWith("-system"))return!0;if(this.project)return this.project.isSystem;if("true"===(0,s.Jt)(this,`metadata.labels."${a.Hs.MANAGED}"`))return!0;const t=this.$rootGetters["systemNamespaces"].includes(this.metadata.name),n=!!d.some(e=>this.metadata.name.startsWith(e));return t||n}get detailLocation(){const e=this.id?.replace(/.*\//,""),t={name:`${c.KR}-c-cluster-resource-id`,params:{product:this.$rootGetters["productId"],cluster:this.$rootGetters["clusterId"],resource:l.CU,namespace:this.metadata?.namespace,id:e}};return t}get hideDetailLocation(){return!!this.$rootGetters["currentProduct"].hideNamespaceLocation}}},55285:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return w}});var r=n(16735),i=n.n(r),a=n(35664),o=n(2841),s=n(2602),l=n(76978),c=n(24576),u=n.n(c),d=n(40408),h=n(95799),p=n(68851),f=n(92043),m=n(24222),g=n(20652),v=n(32766);const b=["topology.kubernetes.io/zone","topology.kubernetes.io/region"],y="healthy",_="warning";class w extends m["default"]{get _availableActions(){const e={action:"cordon",enabled:this.hasAction("cordon")&&!this.isCordoned,icon:"icon icon-fw icon-pause",label:this.t("harvester.action.cordon"),total:1},t={action:"uncordon",enabled:this.hasAction("uncordon"),icon:"icon icon-fw icon-play",label:this.t("harvester.action.uncordon"),total:1},n={action:"enableMaintenanceMode",enabled:this.hasAction("enableMaintenanceMode"),icon:"icon icon-fw icon-unlock",label:this.t("harvester.action.enableMaintenance"),total:1},r={action:"disableMaintenanceMode",enabled:this.hasAction("disableMaintenanceMode"),icon:"icon icon-fw icon-lock",label:this.t("harvester.action.disableMaintenance"),total:1},i={action:"enableCPUManager",enabled:this.cpuPinningFeatureEnabled&&this.hasAction("enableCPUManager")&&!this.isCPUManagerEnableInProgress&&!this.isCPUManagerEnabled&&!this.isEtcd,icon:"icon icon-fw icon-os-management",label:this.t("harvester.action.enableCPUManager"),total:1},a={action:"disableCPUManager",enabled:this.cpuPinningFeatureEnabled&&this.hasAction("disableCPUManager")&&!this.isCPUManagerEnableInProgress&&this.isCPUManagerEnabled&&!this.isEtcd,icon:"icon icon-fw icon-os-management",label:this.t("harvester.action.disableCPUManager"),total:1},o={action:"shutDown",enabled:this.hasAction("powerActionPossible")&&this.hasAction("powerAction")&&!this.isStopped&&!!this.inventory,icon:"icon icon-fw icon-dot",label:this.t("harvester.action.shutdown"),total:1},s={action:"powerOn",enabled:this.hasAction("powerActionPossible")&&this.hasAction("powerAction")&&this.isStopped&&!!this.inventory,icon:"icon icon-fw icon-play",label:this.t("harvester.action.powerOn"),total:1},l={action:"reboot",enabled:this.hasAction("powerActionPossible")&&this.hasAction("powerAction")&&!this.isStopped&&!!this.inventory,icon:"icon icon-fw icon-refresh",label:this.t("harvester.action.reboot"),total:1};return[e,t,n,r,i,a,o,s,l,...super._availableActions]}promptRemove(e=this){this.$dispatch("promptModal",{resources:e,component:"ConfirmRelatedToRemoveDialog"})}remove(e=this){const t=Array.isArray(e)?e:[e];t.forEach(e=>{e.capiMachine?e.capiMachine.remove():e.remove()})}get capiMachine(){const e=this.annotations?.[o.qt.CLUSTER_NAMESPACE],t=this.annotations?.[o.qt.MACHINE_NAME];if(e&&t){const n=this.$rootGetters["currentProduct"].inStore;return this.$rootGetters[`${n}/byId`](a.Z7.MACHINE,`${e}/${t}`)}return null}get confirmRemove(){return!0}get consoleUrl(){const e=this.metadata?.annotations?.[s.r.HOST_CONSOLE_URL],t=/^[a-z]+:\/\//;return!!e?.match(t)&&e}get filteredSystemLabels(){const e=/(k3s|kubernetes|kubevirt|harvesterhci|k3os)+\.io/,t=i()(this.labels,(t,n)=>!e.test(n));return b.map(e=>{const n=this?.metadata?.labels?.[e];n&&(t[e]=n)}),t}get nameDisplay(){return this.metadata?.annotations?.[s.r.HOST_CUSTOM_NAME]||this.name}get isKVMDisable(){const e=this.metadata.labels?.[s.r.K8S_ARCH]?.includes("arm");if(e)return this.status.capacity["devices.kubevirt.io/kvm"]&&"0"===this.status.capacity["devices.kubevirt.io/kvm"];const t=!this.metadata?.labels?.[s.r.KVM_AMD_CPU]&&!this.metadata?.labels?.[s.r.KVM_INTEL_CPU];return t||"false"===this.metadata?.labels?.[s.r.KVM_AMD_CPU]||"false"===this.metadata?.labels?.[s.r.KVM_INTEL_CPU]}get stateDisplay(){return this.isEnteringMaintenance?"Entering maintenance mode":this.isStopping?(0,f.TF)(d.jv.STOPPING):this.isStarting?(0,f.TF)(d.jv.STARTING):this.isStopped?(0,f.TF)(d.jv.OFF):this.isRebooting?"Rebooting":this.isMaintenance?"Maintenance":this.isCordoned?"Cordoned":(0,d.ch)(this.state)}get stateBackground(){return this.isStopped||this.isStopping||this.isStarting||this.isRebooting?(0,d.uU)(this.stateDisplay,!1,this.stateObj?.transitioning).replace("text-","bg-"):(0,d.uU)(this.stateDisplay,this.stateObj?.error,this.stateObj?.transitioning).replace("text-","bg-")}get stateDescription(){const e=this.metadata?.annotations?.[s.r.CURRENT_IP],t=this.metadata?.annotations?.[s.r.INIT_IP];return t&&e&&e!==t?this.t("harvester.host.inconsistentIP",{currentIP:e,initIP:t}):super.stateDescription}get stateObj(){const e=this.metadata?.annotations?.[s.r.CURRENT_IP],t=this.metadata?.annotations?.[s.r.INIT_IP];return t&&e&&e!==t&&(this.metadata.state.error=!0),this.metadata?.state}get detailLocation(){const e=(0,l.o8)(this._detailLocation);return e.params.resource=v.rk.HOST,e}get doneOverride(){const e=(0,l.o8)(this._detailLocation);return delete e.params.namespace,delete e.params.id,e.params.resource=v.rk.HOST,e.name=`${g.KR}-c-cluster-resource`,e}get parentNameOverride(){return this.$rootGetters["i18n/t"](`typeLabel."${v.rk.HOST}"`,{count:1})?.trim()}get parentLocationOverride(){return this.doneOverride}get internalIp(){const e=this.status?.addresses||[];return u()(e,e=>"InternalIP"===e.type)?.address}get isMaster(){return void 0!==this.metadata?.labels?.[s.r.NODE_ROLE_MASTER]||void 0!==this.metadata?.labels?.[s.r.NODE_ROLE_CONTROL_PLANE]}cordon(){this.doActionGrowl("cordon",{})}uncordon(){this.doAction("uncordon",{})}enableMaintenanceMode(e=this){this.$dispatch("promptModal",{resources:e,component:"HarvesterMaintenanceDialog"})}disableMaintenanceMode(){this.doAction("disableMaintenanceMode",{})}enableCPUManager(){this.doActionGrowl("enableCPUManager",{})}disableCPUManager(){this.doActionGrowl("disableCPUManager",{})}get isUnSchedulable(){return"false"===this.metadata?.labels?.[s.r.NODE_SCHEDULABLE]||this.spec.unschedulable}get isMigratable(){const e=["in-progress","unavailable"];return!this.metadata?.annotations?.[s.r.MAINTENANCE_STATUS]&&!this.isUnSchedulable&&!e.includes(this.state)}get isCordoned(){return this.hasAction("uncordon")}get isEtcd(){return this.metadata?.labels?.[s.r.NODE_ROLE_ETCD]}get isEnteringMaintenance(){return"running"===this.metadata?.annotations?.[s.r.MAINTENANCE_STATUS]}get isMaintenance(){return"completed"===this.metadata?.annotations?.[s.r.MAINTENANCE_STATUS]}get cpuPinningFeatureEnabled(){return this.$rootGetters["harvester-common/getFeatureEnabled"]("cpuPinning")}get isCPUManagerEnabled(){return"true"===this.metadata?.labels?.[s.r.CPU_MANAGER]}get isCPUManagerEnableInProgress(){return"requested"===this.cpuManagerUpdateStatus||"running"===this.cpuManagerUpdateStatus}get isCPUManagerEnableFailed(){return"failed"===this.cpuManagerUpdateStatus}get cpuManagerUpdateStatus(){try{const e=JSON.parse(this.metadata.annotations[s.r.NODE_CPU_MANAGER_UPDATE_STATUS]||"{}");return e.status||""}catch{return""}}get longhornDisks(){const e=this.$rootGetters["currentProduct"].inStore,t=this.$rootGetters[`${e}/byId`](a.oe.NODES,`longhorn-system/${this.id}`),n=t?.status?.diskStatus||{},r=t?.spec?.disks||{},i=Object.keys(n).map(e=>{const t=n[e]?.conditions||[];let i,a={},o={};return(0,p.cy)(t)?(a=(0,p.jq)(t,"type","Ready")||{},o=(0,p.jq)(t,"type","Schedulable")||{}):(a=t.Ready,o=t.Schedulable),i="True"!==a?.status||"True"!==o?.status?_:y,{...r[e],...n[e],name:e,storageReserved:r[e]?.storageReserved,storageAvailable:n[e]?.storageAvailable,storageMaximum:n[e]?.storageMaximum,storageScheduled:n[e]?.storageScheduled,readyCondition:a,schedulableCondition:o,state:i}});return i}get pods(){const e=this.$rootGetters["currentProduct"].inStore,t=this.$rootGetters[`${e}/all`](a.Sm)||[];return t.filter(e=>e?.spec?.nodeName===this.id&&"removing"!==e?.metadata?.name)}get reserved(){try{return JSON.parse(this.metadata.annotations[s.r.HOST_REQUEST]||"{}")}catch{return{}}}get cpuReserved(){return(0,h.ao)(this.reserved.cpu||"0")}get memoryReserved(){return(0,h.ao)(this.reserved.memory||"0")}get canDelete(){const e=this.$rootGetters["harvester/all"](a.NW)||[];return e.length>1&&super.canDelete}get vlanStatuses(){const e=this.$rootGetters["currentProduct"].inStore,t=this.id,n=this.$rootGetters[`${e}/all`](v.rk.VLAN_STATUS);return n.filter(e=>e?.status?.node===t)||[]}get blockDevices(){const e=this.$rootGetters["currentProduct"].inStore,t=this.id,n=this.$rootGetters[`${e}/all`](v.rk.BLOCK_DEVICE);return n.filter(e=>e?.spec?.nodeName===t)||[]}get unProvisionedDisks(){const e=this.blockDevices||[];return e.filter(e=>e?.isProvisioned&&"Provisioned"!==e?.status?.provisionPhase)}get diskStatusCount(){const e=this.unProvisionedDisks.filter(e=>e.metadata.state.error)||[];let t=0;this.longhornDisks.map(e=>{"warning"===e.state&&t++});const n=this.longhornDisks.length+e.length;return{total:n,errorCount:t+e.length,useful:n-t}}get manufacturer(){return this.metadata?.labels?.[s.r.NODE_MANUFACTURER]}get serialNumber(){return this.metadata?.labels?.[s.r.NODE_SERIAL_NUMBER]}get model(){return this.metadata?.labels?.[s.r.NODE_MODEL]}get isStopped(){const e=this.inventory||{};return"off"===e.status?.machinePowerState}get isStopping(){const e=this.inventory||{};return!Object.prototype.hasOwnProperty.call(e?.status?.powerAction||{},"actionStatus")&&"shutdown"===e.spec?.powerActionRequested}get isStarted(){const e=this.inventory||{};return"on"===e.status?.machinePowerState}get isStarting(){const e=this.inventory||{};return!Object.prototype.hasOwnProperty.call(e?.status?.powerAction||{},"actionStatus")&&"poweron"===e.spec?.powerActionRequested}get isRebooting(){const e=this.inventory||{};return!Object.prototype.hasOwnProperty.call(e?.status?.powerAction||{},"actionStatus")&&"reboot"===e.spec?.powerActionRequested}async shutDown(e=this){try{await this.doAction("powerActionPossible",{}),await this.doAction("powerAction",{operation:"shutdown"}),await this.$dispatch("growl/success",{title:this.t("generic.notification.title.succeed"),message:this.t("harvester.host.powerAction.message.success",{name:this.name,operation:"shut down"})},{root:!0})}catch(t){await this.$dispatch("growl/error",{title:this.t("generic.notification.title.error"),message:t},{root:!0})}}async powerOn(e=this){const t="poweron";try{await this.doAction("powerActionPossible",{}),await this.doAction("powerAction",{operation:t}),await this.$dispatch("growl/success",{title:this.t("generic.notification.title.succeed"),message:this.t("harvester.host.powerAction.message.success",{name:this.name,operation:t})},{root:!0})}catch(n){await this.$dispatch("growl/error",{title:this.t("generic.notification.title.error"),message:n},{root:!0})}}async reboot(e=this){const t="reboot";try{await this.doAction("powerActionPossible",{}),await this.doAction("powerAction",{operation:t}),await this.$dispatch("growl/success",{title:this.t("generic.notification.title.succeed"),message:this.t("harvester.host.powerAction.message.success",{name:this.name,operation:t})},{root:!0})}catch(n){await this.$dispatch("growl/error",{title:this.t("generic.notification.title.error"),message:n},{root:!0})}}get inventory(){const e=this.$rootGetters["currentProduct"].inStore,t=this.$rootGetters[`${e}/all`](v.rk.INVENTORY)||[];return t.find(e=>e.id===`harvester-system/${this.id}`)}get warningMessages(){let e=[];return e=e.concat(this.inventory?.warningMessages||[]),e}}},15908:function(e,t,n){"use strict";n.r(t),n.d(t,{DATA_ENGINE_V1:function(){return b},DATA_ENGINE_V2:function(){return y},default:function(){return _}});var r=n(14220),i=n(74874),a=n.n(i),o=n(35664),s=n(2841),l=n(2602),c=n(68851),u=n(76978),d=n(40408),h=n(32766),p=n(24222),f=n(20652),m=n(41837),g=n(82877);const v=["replica scheduling failed","precheck new replica failed"],b="v1",y="v2";class _ extends p["default"]{applyDefaults(e,t){const n=t===r.dT?this.spec.accessModes:[],i=t===r.dT?this.spec.resources.requests.storage:null,a=t===r.dT?this.spec.storageClassName:"";this["spec"]={accessModes:n,storageClassName:a,volumeName:"",resources:{requests:{storage:i}}}}get availableActions(){let e=super._availableActions;const t=e.find(e=>"goToClone"===e.action);t&&(t.action="goToCloneVolume");const n={action:"exportImage",enabled:this.hasAction("export")&&!this.isEncrypted,icon:"icon icon-external-link",label:this.t("harvester.action.exportImage")},r={action:"snapshot",enabled:this.hasAction("snapshot"),icon:"icon icon-backup",label:this.t("harvester.action.snapshot")};return this.thirdPartyStorageFeatureEnabled?e=[n,r,...e]:this.isLonghorn&&this.isLonghornV2||(e=[n,r,...e]),[{action:"cancelExpand",enabled:this.hasAction("cancelExpand"),icon:"icon icon-backup",label:this.t("harvester.action.cancelExpand")},{action:"dataMigration",enabled:this.hasAction("dataMigration")&&this.createPVCWithDataVolumeFeatureEnabled,icon:"icon icon-copy",label:this.t("harvester.action.dataMigration")},...e]}dataMigration(e=this){this.$dispatch("promptModal",{resources:e,component:"HarvesterDataMigrationDialog"})}exportImage(e=this){this.$dispatch("promptModal",{resources:e,component:"HarvesterExportImageDialog"})}cancelExpand(e=this){this.doActionGrowl("cancelExpand",{})}snapshot(e=this){this.$dispatch("promptModal",{resources:e,component:"SnapshotDialog"})}goToCloneVolume(e=this){this.$dispatch("promptModal",{resources:e,component:"VolumeCloneDialog"})}cleanForNew(){this.$dispatch("cleanForNew",this),delete this.metadata.finalizers;const e=[l.r.IMAGE_ID,s.tC];this.metadata.annotations=a()(this.metadata.annotations,e)}get storageClass(){const e=this.$rootGetters["currentProduct"].inStore;return this.$rootGetters[`${e}/all`](o.fJ).find(e=>e.name===this.spec.storageClassName)}get canUpdate(){return this.hasLink("update")}get stateDisplay(){const e=this.relatedPV?.metadata?.annotations?.[l.r.VOLUME_ERROR],t=v.includes(e),n="Bound"===this?.status?.phase&&!e&&this.isLonghornVolumeReady?"Ready":"Not Ready",r=this?.status?.conditions||[];return"True"===(0,c.jq)(r,"type","Resizing")?.status?"Resizing":this.attachVM&&!e?"In-use":t?"Degraded":n}get state(){const e=this.relatedPV?.metadata?.annotations?.[l.r.VOLUME_ERROR],t=v.includes(e);let n="Bound"!==this?.status?.phase||e?"Not Ready":"Ready";const r=this?.status?.conditions||[];return t&&(n="Degraded"),"True"===(0,c.jq)(r,"type","Resizing")?.status&&(n="Resizing"),n}get stateColor(){const e=this.stateDisplay;return(0,d.uU)(e)}get stateDescription(){return super.stateDescription}get detailLocation(){const e=(0,u.o8)(this._detailLocation);return e.params.resource=h.rk.VOLUME,e}get doneOverride(){const e=(0,u.o8)(this._detailLocation);return delete e.params.namespace,delete e.params.id,e.params.resource=h.rk.VOLUME,e.name=`${f.KR}-c-cluster-resource`,e}get parentNameOverride(){return this.$rootGetters["i18n/t"](`typeLabel."${h.rk.VOLUME}"`,{count:1}).trim()}get parentLocationOverride(){return this.doneOverride}get phaseState(){return this.status?.phase||"N/A"}get attachVM(){const e=this.$rootGetters["harvester/all"](h.rk.VM)||[],t=e=>{const t=e.spec.template?.spec?.volumes||[];return e.namespace===this.namespace&&t.length>0?t.find(e=>e.persistentVolumeClaim?.claimName===this.name):null};return e.find(t)}get isAvailable(){const e=["Resizing","Not Ready"];return!e.includes(this.stateDisplay)}get volumeSort(){const e=this.spec?.resources?.requests?.storage||0;return parseInt(e)}get isSystemResource(){const e=this.$rootGetters["systemNamespaces"];return!!e.includes(this.metadata?.namespace)}get isEncrypted(){return"true"===this.relatedPV?.spec?.csi?.volumeAttributes?.encrypted}get longhornVolume(){const e=this.$rootGetters["currentProduct"].inStore;return this.$rootGetters[`${e}/all`](o.oe.VOLUMES).find(e=>e.metadata?.name===this.spec?.volumeName)}get longhornEngine(){const e=this.$rootGetters["currentProduct"].inStore;return this.$rootGetters[`${e}/all`](o.oe.ENGINES).find(e=>e.spec?.volumeName===this.spec?.volumeName)}get isLonghornVolumeReady(){let e=!0;const t=this.longhornVolume||{},n=(t?.status?.conditions||[]).find(e=>"Scheduled"===e.type||"scheduled"===e.type)||{};return(""===t?.spec?.nodeID&&"detached"!==t?.status?.state||"detached"===t?.status?.state&&"True"!==n.status||"faulted"===t?.status?.robustness||t?.status?.restoreRequired||"failed"===t?.status?.cloneStatus?.state)&&(e=!1),e}get relatedVolumeSnapshotCounts(){const e=this.$rootGetters["harvester/all"](h.qY);return e.filter(e=>{const t=`${e.metadata?.namespace}/${e.spec?.source?.persistentVolumeClaimName}`,n=e.metadata?.ownerReferences?.[0]?.kind;return t===this.id&&"PersistentVolumeClaim"===n})}get originalSnapshot(){return this.spec?.dataSource?this.$rootGetters["harvester/all"](h.qY).find(e=>e.metadata?.name===this.spec.dataSource.name):null}get source(){const e=(0,u.Jt)(this,`metadata.annotations."${l.r.IMAGE_ID}"`);return e?"image":"data"}get warnDeletionMessage(){return this.t("harvester.volume.promptRemove.tips")}get relatedPV(){return this.$rootGetters["harvester/all"](o.PV).find(e=>e.metadata?.name===this.spec?.volumeName)}get volumeProvider(){return this.relatedPV?.spec.csi?.driver}get dataEngine(){return this.relatedPV?.spec.csi?.volumeAttributes?.dataEngine}get isLvm(){return this.volumeProvider===g.LVM_DRIVER}get isLonghorn(){return this.volumeProvider===o.lI}get isLonghornV1(){return this.isLonghorn&&!this.isLonghornV2}get isLonghornV2(){return this.dataEngine===y}get isGoldenImageVolume(){return"true"===this?.metadata?.annotations?.[l.r.GOLDEN_IMAGE]}get isCDIPopulatorVolume(){const e=this?.metadata?.annotations?.[l.r.CDI_POPULATOR_KIND];return e===m.dt.VOLUME_IMPORT_SOURCE||e===m.dt.VOLUME_CLONE_SOURCE}get thirdPartyStorageFeatureEnabled(){return this.$rootGetters["harvester-common/getFeatureEnabled"]("thirdPartyStorage")}get createPVCWithDataVolumeFeatureEnabled(){return this.$rootGetters["harvester-common/getFeatureEnabled"]("createPVCWithDataVolume")}get resourceExternalLink(){const e=window.location.host,{params:t}=this.currentRoute(),n=this.spec?.volumeName;return this.isLonghorn&&n?{tipsKey:"harvester.volume.externalLink.tips",url:`https://${e}/k8s/clusters/${t.cluster}/api/v1/namespaces/longhorn-system/services/http:longhorn-frontend:80/proxy/#/volume/${n}`}:null}get customValidationRules(){return[{nullable:!1,path:"spec.resources.requests.storage",required:!0,validators:["volumeSize"]}]}}},14426:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return k}});var r=n(65145),i=n.n(r),a=n(68851),o=n(76978),s=n(35664),l=n(24222);const c="POD_NOT_SCHEDULABLE",u="POD_FAILED",d="POD_CRASHLOOP_BACKOFF",h="POD_STATUS_UNKNOWN",p="POD_CONTAINER_FAILING",f="POD_NOT_READY",m="POD_STATUS_PENDING",g="POD_STATUS_COMPLETED",v="POD_STATUS_SUCCEEDED",b="POD_STATUS_RUNNING",y=["ImagePullBackOff","ErrImagePull","CrashLoopBackOff"],_=["Error"],w={Failed:u,CrashLoopBackOff:d,Unknown:h},E={Pending:m,Running:b,Completed:g,Succeeded:v},S={terminated:({reason:e,exitCode:t})=>`Terminated with ${e}${t?` (exit code ${t}).`:"."}`,waiting:({reason:e})=>`Waiting (${e}).`};class k extends l["default"]{get inStore(){return this.$rootGetters["currentProduct"].inStore}get nodes(){return this.$rootGetters[`${this.inStore}/all`](s.NW)}get node(){const{nodeName:e}=this.spec;return this.nodes.filter(t=>t?.metadata?.name===e)[0]}get getPodStatus(){return this.isNotSchedulable||this.hasErrorStatus||this.isContainerFailing||this.isNotReady||this.hasOkStatus||{status:h}}get isNotSchedulable(){if(!this.isPodSchedulable){const e=(0,o.Jt)(this,"status.conditions"),t=(0,a.jq)(e,"type","PodScheduled");return{status:c,message:t.message||"Pod scheduling failed."}}return null}get hasErrorStatus(){const e=w[this?.status?.phase];return e?{status:e,message:this.getContainerStatusReason(this.findFailingContainerStatus)}:null}get isPodSchedulable(){const e=(0,o.Jt)(this,"status.conditions"),t=(0,a.jq)(e,"type","PodScheduled");return!(t&&"True"!==t.status&&"Unschedulable"===t.reason)}get findFailingContainerStatus(){return((0,o.Jt)(this,"status.containerStatuses"),[]).find(e=>!e.ready&&(i()(y,(0,o.Jt)(e,"state.waiting.reason"))||i()(_,(0,o.Jt)(e,"state.terminated.reason"))))}get getContainerStatusReason(){return e=>{if(e){const t=Object.getOwnPropertyNames(e.state).find(t=>!!e.state[t].reason);if(t){const n=e.state[t];return n.message||S[t]&&S[t](n)||t}}}}get isContainerFailing(){const e=this.findFailingContainerStatus;return e?{status:p,message:this.getContainerStatusReason(e)}:null}get isNotReady(){const e=this.findPodFalseStatusConditionMessage;return e?{status:f,message:e}:null}get hasOkStatus(){const e=E[this?.status?.phase];return e?{status:e}:null}get findPodFalseStatusConditionMessage(){const e=this.getPodFalseStatusConditions;if(e.length>0)return e[0].message||`Step: ${e[0].type}`}get getPodFalseStatusConditions(){const e=(0,o.Jt)(this,"status.conditions")||[];return e.filter(e=>"True"!==e.status)}}},60698:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(45858);class i extends r["default"]{}},36577:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(76978),i=n(32766),a=n(20652),o=n(29859),s=n(35664);class l extends o["default"]{get fullDetailPageOverride(){return!1}get listLocation(){const e=(0,r.o8)(super.listLocation);return e.name=this.harvesterResourcesInExplorer?"c-cluster-product-resource":`${a.KR}-c-cluster-resource`,e.params.resource=i.rk.SECRET,e}get harvesterResourcesInExplorer(){return this.$rootGetters["productId"]!==a.KR}get _detailLocation(){const e=this.$getters["schemaFor"](this.type),t=this.id?.replace(/.*\//,"");return{name:`${a.KR}-c-cluster-resource${e?.attributes?.namespaced?"-namespace":""}-id`,params:{product:a.KR,cluster:this.$rootGetters["clusterId"],resource:this.type,id:t,namespace:this.metadata.namespace}}}get detailLocation(){const e=(0,r.o8)(this._detailLocation);return e.params.resource=i.rk.SECRET,e}get doneOverride(){const e=(0,r.o8)(this._detailLocation);return delete e.params.namespace,delete e.params.id,e.params.resource=i.rk.SECRET,e.name=`${a.KR}-c-cluster-resource`,e}get doneRoute(){return this.doneOverride.name}get parentNameOverride(){return this.$rootGetters["i18n/t"](`typeLabel."${i.rk.SECRET}"`,{count:1})?.trim()}get parentLocationOverride(){return this.doneOverride}get isSystem(){const e=this.$rootGetters["currentProduct"].inStore,t=this.$rootGetters[`${e}/all`](s.CU).filter(e=>!0===e.isSystem).map(e=>e.metadata.name);return t.includes(this.metadata.namespace)}get details(){const e=[{label:this.t("secret.type"),content:this.typeDisplay}];return this.cn&&e.push({label:this.t("secret.certificate.cn"),content:this.plusMoreNames?`${this.cn} ${this.t("secret.certificate.plusMore",{n:this.plusMoreNames})}`:this.cn}),this.issuer&&e.push({label:this.t("secret.certificate.issuer"),content:this.issuer}),this.notAfter&&e.push({label:"Expires",formatter:"Date",formatterOpts:{class:this.dateClass},content:this.notAfter}),e}}},87214:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(76978),i=n(35664),a=n(32766),o=n(24222),s=n(20652);class l extends o["default"]{get availableActions(){return[{action:"restoreSnapshot",enabled:this.hasAction("restore"),icon:"icon icon-refresh",label:this.t("harvester.action.restore")},...super._availableActions]}get canClone(){return!1}restoreSnapshot(e=this){this.$dispatch("promptModal",{resources:e,component:"RestoreSnapshotDialog"})}get detailLocation(){const e=(0,r.o8)(this._detailLocation);return e.params.resource=a.rk.SNAPSHOT,e}get doneOverride(){const e=(0,r.o8)(this._detailLocation);return delete e.params.namespace,delete e.params.id,e.params.resource=a.rk.SNAPSHOT,e.name=`${s.KR}-c-cluster-resource`,e}get parentNameOverride(){return this.$rootGetters["i18n/t"](`typeLabel."${a.rk.SNAPSHOT}"`,{count:1})?.trim()}get parentLocationOverride(){return this.doneOverride}get volume(){const e=this.$rootGetters["currentProduct"].inStore,t=this?.metadata?.namespace,n=this?.spec?.source?.persistentVolumeClaimName,r=this.$rootGetters[`${e}/byId`](i.YH,`${t}/${n}`);return r}}},82877:function(e,t,n){"use strict";n.r(t),n.d(t,{LVM_DRIVER:function(){return u},default:function(){return d}});var r=n(76978),i=n(63809),a=n(32766),o=n(20652),s=n(35664),l=n(15908),c=n(39407);const u="lvm.driver.harvesterhci.io";class d extends i["default"]{get listLocation(){const e=(0,r.o8)(super.listLocation);return e.name=this.harvesterResourcesInExplorer?"c-cluster-product-resource":`${o.KR}-c-cluster-resource`,e.params.resource=a.rk.STORAGE,e}get harvesterResourcesInExplorer(){return this.$rootGetters["productId"]!==o.KR}get detailLocation(){const e=(0,r.o8)(this._detailLocation);return e.params.resource=a.rk.STORAGE,e.name=`${o.KR}-c-cluster-resource-id`,e}get doneOverride(){const e=(0,r.o8)(this._detailLocation);return delete e.params.namespace,delete e.params.id,e.params.resource=a.rk.STORAGE,e.name=`${o.KR}-c-cluster-resource`,e}get parentLocationOverride(){return this.doneOverride}get parentNameOverride(){return this.$rootGetters["i18n/t"](`typeLabel."${a.rk.STORAGE}"`,{count:1})?.trim()}get longhornVersion(){return this.provisioner===s.lI?(this.parameters||{}).dataEngine||l.DATA_ENGINE_V1:null}get provisionerDisplay(){let e="";return this.provisioner===s.lI&&(e=`harvester.storage.storageClass.longhorn.${this.longhornVersion}.label`),this.provisioner===u&&(e="harvester.storage.storageClass.lvm.label"),e?this.$rootGetters["i18n/t"](e):this.provisioner}get isEncrypted(){return"true"===this.parameters?.encrypted}get isLonghorn(){return this.provisioner===s.lI}get isLonghornV1(){return this.provisioner===s.lI&&this.longhornVersion===l.DATA_ENGINE_V1}get isLonghornV2(){return this.provisioner===s.lI&&this.longhornVersion===l.DATA_ENGINE_V2}get longhornV2LVMSupport(){return this.$rootGetters["harvester-common/getFeatureEnabled"]("longhornV2LVMSupport")}get volumeEncryptionFeatureEnabled(){return this.$rootGetters["harvester-common/getFeatureEnabled"]("volumeEncryption")}get thirdPartyStorageFeatureEnabled(){return this.$rootGetters["harvester-common/getFeatureEnabled"]("thirdPartyStorage")}isInternalStorageClass(){return(0,c.N)(this.metadata?.name)}get availableActions(){let e=super.availableActions||[];return this.isInternalStorageClass()&&(e=e.filter(e=>!["setDefault","setAsDefault","promptRemove"].includes(e.action))),e[0]&&!0===e[0].divider&&(e=e.slice(1)),e}}},52528:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var r=n(20246),i=n.n(r),a=n(95479),o=n.n(a),s=n(2602),l=n(24222),c=n(32766);const u="harvester-system/nvidia-driver-toolkit";class d extends l["default"]{get availableActions(){const e=super._availableActions;if("harvester-system/rancher-vcluster"===this.id){const t={action:"goToRancher",enabled:this.spec.enabled,icon:"icon icon-external-link",label:this.t("harvester.addons.rancherVcluster.accessRancher")};e.push(t)}const t={action:"toggleAddon",enabled:!0,icon:this.spec.enabled?"icon icon-pause":"icon icon-play",label:this.spec.enabled?this.t("generic.disable"):this.t("generic.enable")};return e.unshift(t),e}async toggleAddon(){const e=this.spec.enabled;try{if(!this.spec.enabled&&"rancher-vcluster/rancher-vcluster"===this.id){const e=i().load(this.spec.valuesContent);if(!e.hostname||!e.bootstrapPassword)return void this.goToEdit()}if(!this.spec.enabled&&this.id===u)return void this.$dispatch("promptModal",{resources:[this],component:"HarvesterEnableNvidiaDriverToolkit"});this.spec.enabled=!this.spec.enabled,await this.save()}catch(t){this.spec.enabled=e,this.$dispatch("growl/fromError",{title:this.t("harvester.addons.switchFailed",{action:e?this.t("generic.disable"):this.t("generic.enable"),name:this.metadata.name}),err:t},{root:!0})}}goToRancher(){const e=i().load(this.spec.valuesContent);window.open(`https://${e.hostname}`,"_blank")}get rancherHostname(){const e=i().load(this.spec.valuesContent);return`https://${e.hostname}`}get stateColor(){const e=this.stateDisplay;return e?.toLowerCase().includes("enabled")||e?.toLowerCase().includes("success")?"text-success":"Disabled"===e?"text-darker":e?.toLowerCase().includes("ing")?"text-info":e?.toLowerCase().includes("failed")||e?.toLowerCase().includes("error")?"text-error":"text-info"}get stateDisplay(){const e=this?.status?.status;return e?e.startsWith("Addon")?o()(e.replace("Addon","")):e:"Disabled"}get stateDescription(){const e=(this.status?.conditions||[]).find(e=>"OperationFailed"===e.type);return e?.message||super.stateDescription}get parentNameOverride(){return this.$rootGetters["i18n/t"](`typeLabel."${c.rk.ADD_ONS}"`,{count:1})?.trim()}get displayName(){const e="true"===this.metadata?.labels?.[s.r.ADDON_EXPERIMENTAL],t=this.metadata?.labels?.[s.r.ADDON_DISPLAYNAME]||this.metadata.name;return e?`${t} (${this.t("generic.experimental")})`:t}get customValidationRules(){let e=[];return"rancher-monitoring"===this.metadata.name&&(e=[{nullable:!1,path:"spec.valuesContent",validators:["rancherMonitoring"]}]),"rancher-logging"===this.metadata.name&&(e=[{nullable:!1,path:"spec.valuesContent",validators:["rancherLogging"]}]),e}}},46933:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(32766),i=n(24222);class a extends i["default"]{get childParts(){const e=this.$rootGetters["currentProduct"].inStore,t=this.$rootGetters[`${e}/all`](r.rk.BLOCK_DEVICE),n=t.filter(e=>e.status?.deviceStatus?.parentDevice===this.spec?.devPath&&e.spec.nodeName===this.spec.nodeName);return n}get isChildPartProvisioned(){const e=this.childParts.filter(e=>e.isProvisioned)||[];return e.length>0}get provisionPhase(){const e=this?.status?.provisionPhase;let t="",n="";switch(e){case"Provisioned":t="bg-success",n="icon-checkmark";break;case"Unprovisioning":t="bg-warning",n="icon-warning";break;case"NotProvisioned":t="bg-error",n="icon-warning";break;default:break}return{label:e,color:t,icon:n}}get displayName(){return this.status?.deviceStatus?.devPath||this?.metadata?.name}get isFormatting(){const e=this?.status?.conditions||[],t=e.find(e=>"Formatting"===e.type)||{};return"True"===t.status}get isProvisioned(){return this.spec?.fileSystem?.provisioned||this.spec?.provision}cleanForSave(e){return e}}},72193:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(76978),i=n(68851),a=n(24222);class o extends a["default"]{get stateDisplay(){const e=(0,r.Jt)(this,"status.conditions"),t=((0,i.jq)(e,"type","validated")||{}).status;return"True"===t?"Validated":"Not Validated"}}},26422:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(24222),i=n(40408),a=n(14220),o=n(92043);class s extends r["default"]{detailPageHeaderActionOverride(e){if(e===a.YQ)return this.t("harvester.schedule.createTitle")}get _availableActions(){const e=["goToClone"],t=super._availableActions.filter(t=>{if(!e.includes(t.action))return t});return[{action:"resumeSchedule",enabled:(0,o.TF)(this.state)===i.xj.suspended.label,icon:"icons icon-play",label:this.t("harvester.action.resumeSchedule")},{action:"suspendSchedule",enabled:(0,o.TF)(this.state)===i.xj.active.label,icon:"icons icon-pause",label:this.t("harvester.action.suspendSchedule")},...t]}async suspendSchedule(){try{this.spec.suspend=!0,await this.save()}catch(e){this.spec.suspend=!1,this.$dispatch("growl/fromError",{title:this.t("generic.notification.title.error",{name:(0,o.ZD)(this.metadata.name)}),err:e},{root:!0})}}async resumeSchedule(){try{this.spec.suspend=!1,await this.save()}catch(e){this.spec.suspend=!0,this.$dispatch("growl/fromError",{title:this.t("generic.notification.title.error",{name:(0,o.ZD)(this.metadata.name)}),err:e},{root:!0})}}get stateObj(){return this?.metadata?.state||{}}get state(){return!0===this.status?.suspended?i.xj.suspended.label:i.xj.active.label}get stateDescription(){const e=(this.status?.conditions||[]).find(e=>"BackupSuspend"===e.type);return(0,o.TF)(e?.message)||super.stateDescription}get stateBackground(){return(0,i.uU)(this.stateDisplay).replace("text-","bg-")}get stateColor(){return(0,i.uU)(this.state)}get stateDisplay(){return(0,i.ch)(this.state)}}},96214:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c}});var r=n(68851),i=n(32766),a=n(50889),o=n(20652),s=n(24222),l=n(4364);class c extends s["default"]{get _availableActions(){const e=["cloneYaml","download","goToEditYaml","goToViewYaml","goToViewConfig","promptRemove"],t=a.gh[this.id];let n=super._availableActions;(t?.readOnly||this.fromEnv)&&e.push("goToEdit"),n=n.filter(t=>!e.includes(t.action));const r=n.find(e=>"goToEdit"===e.action);r&&(r.label=this.t("advancedSettings.edit.label"));const o=this.$getters["schemaFor"](i.rk.UPGRADE),s=!!o?.collectionMethods.find(e=>["post"].includes(e.toLowerCase()));return this.id===a.EP.SERVER_VERSION&&s&&n.unshift({action:"goToAirgapUpgrade",enabled:!0,icon:"icon icon-refresh",label:this.t("harvester.upgradePage.upgrade")}),n}goToAirgapUpgrade(){const e=this.currentRouter();e.push({name:`${o.KR}-c-cluster-airgapupgrade`,params:{cluster:this.$rootGetters["currentCluster"].id,product:"harvester"}})}get clusterRegistrationTLSVerifyFeatureEnabled(){return this.$rootGetters["harvester-common/getFeatureEnabled"]("clusterRegistrationTLSVerify")}get customValue(){if(this.metadata.name===a.EP.STORAGE_NETWORK)try{return JSON.stringify(JSON.parse(this.value),null,2)}catch(e){}else if(this.metadata.name===a.EP.CLUSTER_REGISTRATION_URL)try{return this.clusterRegistrationTLSVerifyFeatureEnabled?JSON.stringify(JSON.parse(this.value),null,2):this.value}catch(e){}return!1}get customFormatter(){if(this.metadata.name===a.EP.STORAGE_NETWORK)try{return JSON.stringify(JSON.parse(this.value),null,2),"json"}catch(e){}return!1}get backupTargetIsEmpty(){return!this.value}get errMessage(){const e=(0,r.jq)(this?.status?.conditions||[],"type","configured")||{};return!0===this.metadata?.state?.error?this.metadata.state.message:"False"===e?.status&&e.message}get valueOrDefaultValue(){return this.value||this.default}get currentVersion(){return this.value||""}get displayValue(){return"backup-target"===this.id?this.parseValue?.endpoint||" ":null}get parseValue(){try{if(this.value)return JSON.parse(this.value);if(this.default)return JSON.parse(this.default)}catch(e){l.error("Failed to parse setting value or default:",e)}return{}}get isS3(){return"s3"===this.parseValue.type}get isNFS(){return"nfs"===this.parseValue.type}get customValidationRules(){const e=this.id,t=[];switch(e){case"backup-target":t.push({nullable:!1,path:"value",type:"string",validators:["backupTarget"]});break;case"ntp-servers":t.push({nullable:!0,path:"value",validators:["ntpServers"]});break}return t}get disableResourceDetailDrawer(){return!0}}},25661:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(24222);class i extends r["default"]{get bundleState(){const e=this?.status?.state;return e}get bundleMessage(){const e=this?.metadata?.state;return!!e.error&&e?.message}get precent(){return this?.status?.progress/100||0}get customValidationRules(){return[{nullable:!1,path:"spec.description",required:!0,translationKey:"harvester.modal.bundle.description"}]}}},39334:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c}});var r=n(20246),i=n.n(r),a=n(35664),o=n(40408),s=n(2602),l=n(24222);class c extends l["default"]{get isLatestUpgrade(){return"true"===this?.metadata?.labels?.[s.r.LATEST_UPGRADE]}get isUpgradeFailed(){return"Failed"===this?.metadata?.labels?.[s.r.UPGRADE_STATE]}get isUpgradeSucceeded(){return"Succeeded"===this?.metadata?.labels?.[s.r.UPGRADE_STATE]}get hasReadMessage(){return"true"===this?.metadata?.labels?.[s.r.REAY_MESSAGE]}get repoInfo(){const e=this?.status?.repoInfo;if(e)try{return i().load(e)}catch(t){return!1}return!1}get stateDisplay(){const e=this?.status?.conditions||[],t=e.find(e=>"Completed"===e.type),n=t?.status;return"True"===n?"Success":"False"===n?"Fail":"on-going"}get stateColor(){return(0,o.uU)(this.stateDisplay)}get nodes(){return this.$rootGetters["harvester/all"](a.NW)}get upgradeImage(){return this?.status?.imageID}cleanForSave(e,t){return e}get upgradeMessage(){const e=[],t=this?.status?.nodeStatuses||{},n=this?.status?.conditions||[];for(const r in t){const n=t[r]?.state;t[r]&&"Succeeded"!==n&&"succeeded"!==n&&e.push({id:r,message:`The node ${r} is ${t[r]?.state}`})}for(let r=0;r<n.length;r++){const t=n[r].type;"systemServiceUpgraded"===t&&"True"!==n[r]?.status&&e.push({id:"systemService",message:"The systemService is upgrading"})}return this.metadata?.state?.message&&this.metadata?.state?.error&&e.push({id:"message",message:`${this.metadata.state.message}`}),e}get createRepo(){const e=this?.status?.conditions||[],t=e.find(e=>"RepoReady"===e.type),n="True"===t?.status;return{isReady:n,message:t?.message||t?.reason}}get overallMessage(){const e=this?.status?.conditions||[],t=e.find(e=>"Completed"===e.type),n="False"===t?.status,r=t?.message||t?.reason;return n?r:""}get upgradeImageMessage(){const e=this?.status?.conditions||[],t=e.find(e=>"ImageReady"===e.type),n="True"===t?.status,r=t?.message||t?.reason;return n?"":r}get nodeUpgradeMessage(){const e=[],t=this?.status?.nodeStatuses||{};for(const n in t){const r=t[n]?.state,i=t[n]?.message;let a=0;"Upgrading"===r?a=50:"Succeeded"!==r&&"succeeded"!==r||(a=100),e.push({name:n,state:r,percent:a,message:i})}for(const n of this.nodes){const t=e.find(e=>e.name===n.id);t||e.push({name:n.id,state:"Pending",percent:0})}return e}get nodeTotalPercent(){let e=0;for(let r=0;r<this.nodeUpgradeMessage.length;r++)e+=this.nodeUpgradeMessage[r].percent;e=Math.floor(e/this.nodeUpgradeMessage.length);const t=this?.status?.conditions||[],n=t.find(e=>"NodesUpgraded"===e.type);return 100!==e||n||(e=99),e}get sysServiceUpgradeMessage(){let e=0,t="Pending";const n=[],r=this?.status?.conditions||[];for(let i=0;i<r.length;i++){const a=r[i].type;"SystemServicesUpgraded"===a&&("True"===r[i].status?(e=100,t="Succeeded"):e=50,n.push({name:"system services",state:t,percent:e,message:r[i]?.message}))}return 0===n.length&&n.push({name:"system services",state:t,percent:e}),n}get totalPercent(){const e=this.nodeTotalPercent*this.nodeUpgradeMessage.length,t=this.sysServiceUpgradeMessage?.[0].percent;return Math.floor((e+t)/(this.nodeUpgradeMessage.length+1))}}},25418:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c}});var r=n(76978),i=n(52225),a=n.n(i),o=n(68851),s=n(32766),l=n(24222);class c extends l["default"]{get canStartedDownload(){const e=(0,r.Jt)(this,"status.conditions"),t=((0,o.jq)(e,"type","DownloadReady")||{}).status;return"True"===t}downloadLog(e){const t=a()(window.history.href),n=this.$rootGetters["clusterId"],r=`/k8s/clusters/${n}`;this.$rootGetters["isMultiCluster"]?window.location.href=`${t.origin}${r}/v1/harvester/${s.rk.UPGRADE_LOG}s/${this.id}/download?archiveName=${e}`:window.location.href=`${t.origin}/v1/harvester/${s.rk.UPGRADE_LOG}s/${this.id}/download?archiveName=${e}`}fileIsReady(e){const t=(this.status?.archives||{})[e];return!0===t?.ready||t?.reason}downloadArchivesStatus(e){return(this.status?.archives||{})[e]?.reason}get latestArchivesFileName(){const e=this.status?.archives||{},t=`${this.metadata.name}-archive-`,n=Object.keys(e).map(e=>e.replace(t,"")),r=n.sort((e,t)=>{const n=e.replace(/(\d{2})-(\d{2})-(\d{2})T(\d{2})-(\d{2})-(\d{2})Z/,"$1-$2-$3T$4:$5:$6Z"),r=t.replace(/(\d{2})-(\d{2})-(\d{2})T(\d{2})-(\d{2})-(\d{2})Z/,"$1-$2-$3T$4:$5:$6Z");return Date.parse(r)-Date.parse(n)}).map(e=>`${t}${e}`);return r[0]}}},64778:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var r=n(76978),i=n(68851),a=n(40408),o=n(2602),s=n(14220),l=n(32766),c=n(20652),u=n(41837),d=n(24222);class h extends d["default"]{detailPageHeaderActionOverride(e){const t=this.currentRoute();if(e===s.YQ)return t.params.resource===l.rk.BACKUP?this.t("harvester.backup.title"):this.t("harvester.vmSnapshot.title")}get detailLocation(){const e=(0,r.o8)(this._detailLocation);return e.params.resource=l.rk.BACKUP,e}get disableResourceDetailDrawerConfigTab(){return!0}get doneOverride(){const e=this.currentRoute(),t=(0,r.o8)(this._detailLocation);return delete t.params.namespace,delete t.params.id,t.params.resource=e.params.resource,t.name=`${c.KR}-c-cluster-resource`,t}get parentNameOverride(){const e=this.currentRoute();return this.$rootGetters["i18n/t"](`typeLabel."${e.params.resource}"`,{count:1})?.trim()}get parentLocationOverride(){return this.doneOverride}get _availableActions(){const e=["goToEdit","cloneYaml","goToClone","download"],t=super._availableActions.filter(t=>{if(!e.includes(t.action))return t}),n=this.$getters["schemaFor"](l.rk.VM);let r=!0;return n&&!n?.collectionMethods.find(e=>["post"].includes(e.toLowerCase()))&&(r=!1),[{action:"restoreExistingVM",enabled:r&&this.attachVmExisting&&this?.status?.readyToUse,icon:"icons icon-refresh",label:this.t("harvester.action.restoreExistingVM")},{action:"restoreNewVM",enabled:r&&this?.status?.readyToUse,icon:"icons icon-backup",label:this.t("harvester.action.restoreNewVM")},...t]}restoreExistingVM(e=this){const t=this.currentRouter(),n=e.spec.type===u.aS.BACKUP?l.rk.BACKUP:l.rk.VM_SNAPSHOT;t.push({name:`${c.KR}-c-cluster-resource-create`,params:{resource:n},query:{restoreMode:"existing",resourceName:e.name}})}restoreNewVM(e=this){const t=this.currentRouter(),n=e.spec.type===u.aS.BACKUP?l.rk.BACKUP:l.rk.VM_SNAPSHOT;t.push({name:`${c.KR}-c-cluster-resource-create`,params:{resource:n},query:{restoreMode:"new",resourceName:e.name}})}get state(){let e="Pending";const t=(0,r.Jt)(this,"status.conditions"),n="True"===(0,i.jq)(t,"type","InProgress")?.status,a="True"===(0,i.jq)(t,"type","Ready")?.status;return this?.status?.readyToUse?e="Ready":n?e="Progressing":a||(e="error"),e}get stateColor(){const e=this.state;return(0,a.uU)(e)}get sourceSchedule(){return this.metadata?.annotations?.[o.r.SVM_BACKUP_ID]}get attachVM(){return this.spec.source.name}get backupContentName(){return this?.status?.virtualMachineBackupContentName||""}get backupProgress(){return{type:u.aS.BACKUP,percentage:void 0!==this.status?.progress||this.status?.readyToUse?this.status?.progress:0,details:{volumes:this.status?.volumeBackups}}}get backupTarget(){return this?.status?.backupTarget?.endpoint||""}get attachVmExisting(){const e=this.$rootGetters["harvester/all"](l.rk.VM);return!!e.find(e=>e.metadata.name===this.attachVM)}remove(){const e={...arguments};return e.params={propagationPolicy:"Foreground"},this._remove(e)}}},38287:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return b}});var r=n(2841),i=n(2602),a=n(76978),o=n(95799),s=n(92043),l=n(40408),c=n(14220),u=n(32766),d=n(20652),h=n(24222),p=n(66905),f=n(84757);const{CSI_PROVISIONER_SECRET_NAME:m,CSI_PROVISIONER_SECRET_NAMESPACE:g}=p.Et;function v(){function e(e,t=[]){const n=Array.isArray((0,a.Jt)(this,"status.conditions"))?this.status.conditions:t;return n.find(t=>t.type===e)}const t=e.call(this,"Initialized"),n=e.call(this,"Imported"),r=100===this.status?.progress;return![t?.status,n?.status].includes("False")&&(r&&!0)}class b extends h["default"]{get availableActions(){let e=super._availableActions;const t=["goToEditYaml"];e=e.filter(e=>!t.includes(e.action)),"download"!==this.imageSource&&(e=e.filter(({action:e})=>"goToClone"!==e));const n=this.$getters["schemaFor"](u.rk.VM);let r=!0;n&&!n?.collectionMethods.find(e=>["post"].includes(e.toLowerCase()))&&(r=!1);const i=this.isReady?[{action:"createFromImage",enabled:r,icon:"icon icon-circle-plus",label:this.t("harvester.action.createVM")},{action:"encryptImage",enabled:this.volumeEncryptionFeatureEnabled&&!this.isEncrypted,icon:"icon icon-lock",label:this.t("harvester.action.encryptImage")},{action:"decryptImage",enabled:this.volumeEncryptionFeatureEnabled&&this.isEncrypted,icon:"icon icon-unlock",label:this.t("harvester.action.decryptImage")},{action:"imageDownload",enabled:this.links?.download,icon:"icon icon-download",label:this.t("asyncButton.download.action")}]:[];if(this.isImportedImage){const t=i.find(e=>"imageDownload"===e.action),n=e.filter(({action:e})=>["download","promptRemove"].includes(e));return t?[t,{divider:!0},...n]:n}const a=i.length>0?e:e[0]?.divider?e.slice(1):e;return[...i,...a]}encryptImage(){const e=this.currentRouter();e.push({name:`${d.KR}-c-cluster-resource-create`,params:{resource:u.rk.IMAGE},query:{image:JSON.stringify({metadata:{name:this.metadata.name,namespace:this.metadata.namespace}}),fromPage:u.rk.IMAGE,sourceType:"clone",cryptoOperation:"encrypt"}})}decryptImage(){const e=this.currentRouter();e.push({name:`${d.KR}-c-cluster-resource-create`,params:{resource:u.rk.IMAGE},query:{image:JSON.stringify({metadata:{name:this.metadata.name,namespace:this.metadata.namespace}}),fromPage:u.rk.IMAGE,sourceType:"clone",cryptoOperation:"decrypt"}})}applyDefaults(e=this,t){t!==c.dT&&(this.metadata["labels"]={[i.r.OS_TYPE]:"",[i.r.IMAGE_SUFFIX]:""},this.metadata["annotations"]={[i.r.STORAGE_CLASS]:""})}createFromImage(){const e=this.currentRouter();e.push({name:`${d.KR}-c-cluster-resource-create`,params:{resource:u.rk.VM},query:{image:this.id,fromPage:u.rk.IMAGE}})}cleanForNew(){this.$dispatch("cleanForNew",this),delete this.spec.displayName}get nameDisplay(){return this.spec?.displayName}get isOSImage(){return"True"===this?.metadata?.annotations?.[i.r.OS_UPGRADE_IMAGE]}get isReady(){return v.call(this)}get stateDisplay(){const e=this.getStatusConditionOfType("Initialized"),t=this.getStatusConditionOfType("Imported");return"Unknown"===t?.status?"restore"===this.spec.sourceType?"Restoring":"download"===this.spec.sourceType?"Downloading":"upload"===this.spec.sourceType?this.uploadError?"Failed":"Uploading":"Exporting":e?.message||t?.message?"Failed":(0,l.ch)(this.metadata.state.name)}get encryptionSecret(){const e=this.spec.storageClassParameters[g],t=this.spec.storageClassParameters[m];return e&&t?`${e}/${t}`:""}get isEncrypted(){return"clone"===this.spec.sourceType&&"encrypt"===this.spec.securityParameters?.cryptoOperation&&!!this.spec.securityParameters?.sourceImageName&&!!this.spec.securityParameters?.sourceImageNamespace}get isImportedImage(){return"true"===this.metadata?.labels?.[i.r.IMPORTED_IMAGE]}get displayNameWithNamespace(){return`${this.metadata.namespace}/${this.spec.displayName}`}get imageStorageClass(){return this?.metadata?.annotations?.[i.r.STORAGE_CLASS]||""}get imageMessage(){if(this.uploadError)return(0,s.TF)(this.uploadError);const e=this?.status?.conditions||[],t=e.find(e=>"Initialized"===e.type),n=e.find(e=>"Imported"===e.type),r=e.find(e=>"RetryLimitExceeded"===e.type),i=t?.message||n?.message||r?.message;return(0,s.TF)(i)}get stateBackground(){return(0,l.uU)(this.stateDisplay).replace("text-","bg-")}get imageSource(){return(0,a.Jt)(this,"spec.sourceType")||"download"}get progress(){return this?.status?.progress||0}get annotationsToIgnoreRegexes(){return[r.tC].concat(r.S5)}get downSize(){const e=this.status?.size;return e?(0,o.Mo)(e,{increment:1024,maxPrecision:2,suffix:f.jx,firstSuffix:f.jx}):"-"}get virtualSize(){const e=this.status?.virtualSize;return e?(0,o.Mo)(e,{increment:1024,maxPrecision:2,suffix:f.jx,firstSuffix:f.jx}):"-"}getStatusConditionOfType(e,t=[]){const n=Array.isArray((0,a.Jt)(this,"status.conditions"))?this.status.conditions:t;return n.find(t=>t.type===e)}get stateObj(){const e=(0,a.o8)(this.metadata?.state),t=this.getStatusConditionOfType("Initialized"),n=this.getStatusConditionOfType("Imported");return([t?.status,n?.status].includes("False")||this.uploadError)&&(e.error=!0),e}get stateDescription(){return this.imageMessage}get displayName(){return this.spec?.displayName}get storageClassName(){return this.status?.storageClassName||""}get uploadImage(){return async(e,t={})=>{const n=new FormData,r=this.spec?.backend||"backingimage",i={cdi:"file",backingimage:"chunk"},a=i[r];if(!a){const e=this.t("harvester.image.errors.unsupportedBackend",{backend:r});throw this.$ctx.commit("harvester-common/uploadError",{name:this.name,message:e},{root:!0}),new Error(e)}n.append(a,e);try{this.$ctx.commit("harvester-common/uploadStart",this.metadata.name,{root:!0});const r=await this.doAction("upload",n,{headers:{"Content-Type":"multipart/form-data","File-Size":e.size},params:{size:e.size},signal:t.signal});return r}catch(o){throw this.$ctx.commit("harvester-common/uploadError",{name:this.name,message:o.message},{root:!0}),this.$ctx.commit("harvester-common/uploadEnd",this.metadata.name,{root:!0}),o}finally{this.$ctx.commit("harvester-common/uploadEnd",this.metadata.name,{root:!0})}}}get uploadError(){return this.$rootGetters["harvester-common/uploadingImageError"](this.name)}get imageSuffix(){return this.metadata?.labels?.[i.r.IMAGE_SUFFIX]}get imageOSType(){return this.metadata?.labels?.[i.r.OS_TYPE]}get customValidationRules(){const e=[];if("download"===this.imageSource){const t={nullable:!1,path:"spec.url",validators:["imageUrl"]},n={nullable:!1,path:"spec.url",required:!0,translationKey:"harvester.image.url"};e.push(t,n)}if("upload"===this.imageSource){const t={nullable:!1,path:"metadata.annotations",validators:["fileRequired"]};e.push(t)}if(this.spec?.checksum?.length){const t={path:"spec.checksum",validators:["hashSHA512"]};e.push(t)}return[{nullable:!1,path:"spec.displayName",required:!0,minLength:1,maxLength:63,translationKey:"generic.name"},...e]}get volumeEncryptionFeatureEnabled(){return this.$rootGetters["harvester-common/getFeatureEnabled"]("volumeEncryption")}get thirdPartyStorageFeatureEnabled(){return this.$rootGetters["harvester-common/getFeatureEnabled"]("thirdPartyStorage")}imageDownload(e=this){"cdi"===this.spec?.backend?this.$dispatch("promptModal",{resources:e,component:"HarvesterImageDownloader"}):this.downloadViaLink()}downloadViaLink(){window.location.href=this.links.download}}},82680:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=n(24222);class i extends r["default"]{get isComplete(){return this?.status?.complete||!1}get pvcNames(){const e=this?.status?.restores||[],t=e.map(e=>e?.persistentVolumeClaimSpec?.name);return t}get customValidationRules(){const e=this.spec?.newVM,t=[{nullable:!1,path:"spec.target.name",required:!0,minLength:1,maxLength:63,translationKey:"harvester.fields.virtualName"},{nullable:!1,path:"spec.virtualMachineBackupName",required:!0,translationKey:"harvester.backup.restore.backup"}];return e||t.push({path:"spec.deletionPolicy",required:!0,type:"string",translationKey:"harvester.backup.restore.deletePreviousVolumes"}),t}}},61746:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(14220),i=n(32766),a=n(20652),o=n(24222),s=n(76978);class l extends o["default"]{get availableActions(){const e=["goToEdit","cloneYaml","goToClone","goToEditYaml","download"],t=super._availableActions.filter(t=>{if("remove"===t.altAction&&(t.bulkable=!1),!e.includes(t.action))return t}),n=this.$getters["schemaFor"](i.rk.VM);let r=!0;return n&&!n?.collectionMethods.find(e=>["post"].includes(e.toLowerCase()))&&(r=!1),[{action:"createFromTemplate",enabled:r,icon:"icon icon-spinner",label:this.t("harvester.action.createVM")},{action:"addVersion",enabled:this.canCreate,icon:"icon icon-fw icon-circle-plus",label:this.t("harvester.action.addTemplateVersion")},...t]}createFromTemplate(){const e=this.currentRouter();e.push({name:`${a.KR}-c-cluster-resource-create`,params:{resource:i.rk.VM},query:{templateId:this.id,versionId:this.spec.defaultVersionId}})}get cpuPinningFeatureEnabled(){return this.$rootGetters["harvester-common/getFeatureEnabled"]("cpuPinning")}addVersion(e={}){const t=this.currentRouter();t.push({name:`${a.KR}-c-cluster-resource-create`,params:{resource:i.rk.VM_VERSION},query:{[r.g]:r.YQ,templateId:this.id}})}get defaultVersion(){return this.status?.defaultVersion}get doneOverride(){const e=(0,s.o8)(this.listLocation);return e.params.resource=i.rk.VM_VERSION,e}}},96608:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return p}});var r=n(45250),i=n(14220),a=n(2602),o=n(68851),s=n(76978),l=n(40408),c=n(92043),u=n(20652),d=n(32766),h=n(24222);class p extends h["default"]{get availableActions(){let e=super._availableActions;const t=["goToClone","cloneYaml","goToViewConfig","goToEditYaml","goToViewYaml"];e=e.filter(e=>{if(!t.includes(e.action))return e});const n=this.$getters["schemaFor"](d.rk.VM);let r=!0;return n&&!n?.collectionMethods.find(e=>["post"].includes(e.toLowerCase()))&&(r=!1),[{action:"launchFromTemplate",icon:"icon icon-spinner",disabled:!r||!this.isReady,label:this.t("harvester.action.launchFormTemplate")},{action:"cloneTemplate",enabled:this.currentTemplate?.canCreate,icon:"icon icon-fw icon-edit",label:this.t("harvester.action.modifyTemplate")},{action:"setDefaultVersion",enabled:this.currentTemplate?.canCreate,icon:"icon icon-fw icon-checkmark",label:this.t("harvester.action.setDefaultVersion")},{action:"goToViewConfig",label:this.t("action.view"),icon:"icon icon-edit"},...e]}applyDefaults(){const e={vm:{metadata:{annotations:{[a.r.VOLUME_CLAIM_TEMPLATE]:"[]"},labels:{}},spec:{runStrategy:"RerunOnFailure",template:{metadata:{annotations:{},labels:{}},spec:{domain:{machine:{type:""},cpu:{cores:null,sockets:1,threads:1},devices:{inputs:[{bus:"usb",name:"tablet",type:"tablet"}],interfaces:[{masquerade:{},model:"virtio",name:"default"}],disks:[]},resources:{limits:{memory:null,cpu:""}},features:{acpi:{enabled:!0}}},evictionStrategy:"LiveMigrateIfPossible",hostname:"",networks:[{name:"default",pod:{}}],volumes:[],affinity:{}}}}}};this["spec"]=e}get canDelete(){return this.hasLink("remove")&&this.$rootGetters["type-map/optionsFor"](this.type).isRemovable&&!this.isDefaultVersion}get template(){return this.$rootGetters["harvester/all"](d.rk.VM_TEMPLATE).find(e=>e.id===this.spec.templateId)}get isReady(){const e=(0,s.Jt)(this,"status.conditions"),t=(0,o.jq)(e,"type","ready");return!t||"True"===t?.status}get stateDisplay(){return this.isReady?"Active":"Not Ready"}get stateColor(){const e=this.stateDisplay;return(0,l.uU)(e)}get version(){return this?.status?.version}get templates(){return this.$rootGetters["harvester/all"](d.rk.VM_TEMPLATE)}get machineType(){return this.vm?.spec?.template?.spec?.domain?.machine?.type||""}get templateId(){return this.spec.templateId}launchFromTemplate(){const e=this.currentTemplate,t=e.id,n=this.id,r=this.currentRouter();r.push({name:`${u.KR}-c-cluster-resource-create`,params:{resource:d.rk.VM},query:{templateId:t,versionId:n}})}cloneTemplate(e={}){const t=this.detailLocation;t.query={...t.query,[i.g]:i.G5,[i.AS]:i.xz,...e},this.currentRouter().push(t)}goToViewConfig(e={}){const t=this.detailLocation;t.query={...t.query,[i.g]:i.nW,[i.AS]:i.au,templateId:this.templateId,...e},this.currentRouter().push(t)}get currentTemplate(){return(0,r.find)(this.templates,e=>e.id===this.templateId)}async setDefaultVersion(e={}){const t=this.currentTemplate;t.spec.defaultVersionId=this.id,await t.save()}get cpuPinningFeatureEnabled(){return this.$rootGetters["harvester-common/getFeatureEnabled"]("cpuPinning")}get defaultVersion(){const e=this.$rootGetters["harvester/all"](d.rk.VM_TEMPLATE),t=e.find(e=>this.templateId===e.id);return t?.status?.defaultVersion}get isDefaultVersion(){return this.defaultVersion===this?.status?.version}get customValidationRules(){const e=[];return e}get instanceLabels(){const e=this.spec?.vm?.spec?.template?.metadata?.labels||{};return(0,r.omitBy)(e,(e,t)=>(0,c.HV)(t,a.l))}setInstanceLabels(e){this.spec?.vm?.spec?.template?.metadata?.labels||(0,s.hZ)(this,"spec.vm.spec.template.metadata.labels",{});const t=this.spec.vm.spec.template.metadata.labels||{},n=(0,r.pickBy)(t,(e,t)=>(0,c.HV)(t,a.l));this.spec.vm.spec.template.metadata["labels"]={...n,...e}}get tpmPersistentStateFeatureEnabled(){return this.$rootGetters["harvester-common/getFeatureEnabled"]("tpmPersistentState")}get efiPersistentStateFeatureEnabled(){return this.$rootGetters["harvester-common/getFeatureEnabled"]("efiPersistentState")}get systemAnnotations(){const e=this.annotations||{};return Object.keys(e).filter(e=>e.includes(a.r.TEMPLATE_VERSION_CUSTOM_NAME))}}},43842:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c}});var r=n(87811),i=n(2841),a=n(41837);const{UNTAGGED:o,OVERLAY:s,L2TRUNK_VLAN:l}=a.AW;class c extends r.A{applyDefaults(){const e=this.spec||{config:JSON.stringify({cniVersion:"0.3.1",name:"",type:"bridge",bridge:"",promiscMode:!0,vlan:"",ipam:{}})};this.spec=e}get parseConfig(){try{return JSON.parse(this.spec.config)||{}}catch(e){return{}}}get isSystem(){const e=this.$rootGetters["systemNamespaces"];return!!e.includes(this.metadata?.namespace)}get isIpamStatic(){return"static"===this.parseConfig.ipam?.type}get clusterNetwork(){return this?.metadata?.labels?.[i.rk.CLUSTER_NETWORK]}get vlanType(){const e=this.metadata?.labels||{},t=e[i.rk.NETWORK_TYPE];return t}get vlanId(){return this.vlanType===o||this.vlanType===s||this.vlanType===l?"N/A":this.parseConfig.vlan}get customValidationRules(){const e=[{nullable:!1,path:"metadata.name",required:!0,minLength:1,maxLength:63,translationKey:"harvester.fields.name"}];return e}get connectivity(){const e=this.metadata?.annotations||{},t=e[i.rk.NETWORK_ROUTE];let n={};if(this.vlanType===o||this.vlanType===s||this.vlanType===l)return"N/A";try{n=JSON.parse(t||"{}")}catch{return"invalid"}const r=n.connectivity;return"false"===r?"inactive":"true"===r?"active":r}}},13459:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(76978),i=n(32766),a=n(24222);class o extends a["default"]{get groupByVpc(){return this.spec?.vpc||""}get doneOverride(){const e=(0,r.o8)(this.listLocation);return e.params.resource=i.rk.VPC,e}get parentLocationOverride(){return{...this.listLocation,params:{...this.listLocation.params,resource:i.rk.VPC}}}}},58899:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(76978),i=n(32766),a=n(24222);class o extends a["default"]{get parentNameOverride(){return this.$rootGetters["i18n/t"](`typeLabel."${i.rk.VPC}"`,{count:1})?.trim()}get doneOverride(){const e=(0,r.o8)(this.listLocation);return e.params.resource=i.rk.VPC,e}get parentLocationOverride(){return{...this.listLocation,params:{...this.listLocation.params,resource:i.rk.VPC}}}}},50784:function(e,t,n){"use strict";n.r(t),n.d(t,{OFF:function(){return _},default:function(){return z}});var r=n(20246),i=n(45250),a=n(20652),o=n(40408),s=n(35664),l=n(68851),c=n(95799),u=n(76978),d=n(2602),h=n(14220),p=n(92043),f=n(66490),m=n(41837),g=n(32766),v=n(24222),b=n(58434),y=n(14127);const _="Off",w="The virtual machine is waiting for resources to become available.",E="VM error",S="Stopping",k="Unschedulable",x="Waiting",A="Not Ready",C="AgentConnected",T="Paused",N="This VM has been paused. If you wish to unpause it, please click the Unpause button below. For further details, please check with your system administrator.",R="POD_NOT_SCHEDULABLE",O="POD_CONTAINER_FAILING",I="POD_FAILED",L="POD_CRASHLOOP_BACKOFF",D="POD_STATUS_UNKNOWN",P=[R,O,I,L,D],M="POD_STATUS_COMPLETED",B="POD_STATUS_SUCCEEDED",F="POD_STATUS_RUNNING",$=[F,M,B],U={Always:"Always",RerunOnFailure:"RerunOnFailure",Halted:"Halted",Manual:"Manual"},j={Start:"Start",Stop:"Stop"},V="This virtual machine will start shortly. Preparing storage, networking, and compute resources.",K={Pending:"Pending",Scheduling:"Scheduling",Scheduled:"Scheduled",Running:"Running",Succeeded:"Succeeded",Failed:"Failed",Unknown:"Unknown"};let G;const H=["pod has unbound immediate PersistentVolumeClaims"];class z extends v["default"]{get availableActions(){const e=super._availableActions,t=e.find(e=>"goToClone"===e.action);return t&&(t.action="goToCloneVM"),[{action:"stopVM",altAction:"altStopVM",enabled:!!this.actions?.stop,icon:"icon icon-close",label:this.t("harvester.action.stop"),bulkable:!0,bulkAction:"stopVM"},{action:"forceStop",enabled:!!this.actions?.forceStop,icon:"icon icon-close",label:this.t("harvester.action.forceStop"),bulkable:!0},{action:"pauseVM",altAction:"altPauseVM",enabled:!!this.actions?.pause,icon:"icon icon-pause",label:this.t("harvester.action.pause")},{action:"unpauseVM",enabled:!!this.actions?.unpause,icon:"icon icon-spinner",label:this.t("harvester.action.unpause")},{action:"restartVM",enabled:!!this.actions?.restart,icon:"icon icon-refresh",label:this.t("harvester.action.restart"),bulkable:!0,bulkAction:"restartVM"},{action:"softrebootVM",enabled:!!this.actions?.softreboot,icon:"icon icon-pipeline",label:this.t("harvester.action.softreboot")},{action:"startVM",enabled:!!this.actions?.start,icon:"icon icon-play",label:this.t("harvester.action.start"),bulkable:!0},{action:"backupVM",enabled:!!this.actions?.backup&&!this.isBackupTargetUnavailable,icon:"icon icon-backup",label:this.t("harvester.action.backup")},{action:"takeVMSnapshot",enabled:!!this.actions?.snapshot||!!this.actions?.backup,icon:"icon icon-snapshot",label:this.t("harvester.action.vmSnapshot")},{action:"editVMQuota",enabled:!!this.actions?.updateResourceQuota&&!!this.actions.deleteResourceQuota,icon:"icon icon-storage",label:this.t("harvester.action.editVMQuota")},{action:"cpuMemoryHotplug",enabled:!!this.actions?.cpuAndMemoryHotplug,icon:"icon icon-os-management",label:this.t("harvester.action.cpuAndMemoryHotplug")},{action:"createSchedule",enabled:this.schedulingVMBackupFeatureEnabled,icon:"icon icon-history",label:this.t("harvester.action.createSchedule")},{action:"restoreVM",enabled:!!this.actions?.restore,icon:"icon icon-backup-restore",label:this.t("harvester.action.restore")},{action:"ejectCDROM",enabled:!this.hotplugCdRomEnabled&&!!this.actions?.ejectCdRom,icon:"icon icon-delete",label:this.t("harvester.action.ejectCDROM")},{action:"migrateVM",enabled:!!this.actions?.migrate,icon:"icon icon-copy",label:this.t("harvester.action.migrate")},{action:"abortMigrationVM",enabled:!!this.actions?.abortMigration,icon:"icon icon-close",label:this.t("harvester.action.abortMigration")},{action:"storageMigration",enabled:!!this.actions?.storageMigration,icon:"icon icon-copy",label:this.t("harvester.action.storageMigration")},{action:"cancelStorageMigration",enabled:!!this.actions?.cancelStorageMigration,icon:"icon icon-close",label:this.t("harvester.action.cancelStorageMigration")},{action:"addHotplugVolume",enabled:!!this.actions?.addVolume,icon:"icon icon-plus",label:this.t("harvester.action.addHotplugVolume")},{action:"addHotplugNic",enabled:this.hotplugNicFeatureEnabled&&!!this.actions?.addNic,icon:"icon icon-plus",label:this.t("harvester.action.addHotplugNic")},{action:"createTemplate",enabled:!!this.actions?.createTemplate,icon:"icon icon-copy",label:this.t("harvester.action.createTemplate")},{action:"openLogs",enabled:!!this.podResource,icon:"icon icon-fw icon-chevron-right",label:this.t("harvester.action.viewlogs"),total:1},...e]}get productInStore(){return G||(G=this.$rootGetters["currentProduct"].inStore),G}applyDefaults(e=this,t){const n={runStrategy:"RerunOnFailure",template:{metadata:{annotations:{},labels:{}},spec:{domain:{machine:{type:""},cpu:{cores:null,sockets:1,threads:1},devices:{inputs:[{bus:"usb",name:"tablet",type:"tablet"}],interfaces:[{masquerade:{},model:"virtio",name:"default"}],disks:[]},resources:{limits:{memory:null,cpu:""}},features:{acpi:{enabled:!0}}},evictionStrategy:"LiveMigrateIfPossible",hostname:"",networks:[{name:"default",pod:{}}],volumes:[],affinity:{}}}};t!==h.dT&&(this.metadata["annotations"]={[d.r.VOLUME_CLAIM_TEMPLATE]:"[]"},this.metadata["labels"]={},this["spec"]=n)}cleanForNew(){this.$dispatch("cleanForNew",this),this.spec.template.spec.hostname="";const e=this.spec.template.spec.domain.devices?.interfaces||[];for(let n=0;n<e.length;n++)e[n].macAddress&&(e[n].macAddress="");const t=this.volumeClaimTemplates.map(e=>(e?.spec?.dataSource&&delete e.spec.dataSource,e));this.metadata.annotations[d.r.VOLUME_CLAIM_TEMPLATE]=JSON.stringify(t)}restartVM(e=this){this.$dispatch("promptModal",{resources:e,action:"restart",warningMessageKey:"dialog.confirmExecution.restart.message",component:"ConfirmExecutionDialog"})}doSoftReboot(){this.doActionGrowl("softreboot",{})}softrebootVM(e=this){this.$dispatch("promptModal",{resources:e,action:"softreboot",warningMessageKey:"dialog.confirmExecution.softreboot.message",component:"ConfirmExecutionDialog"})}openLogs(){this.$dispatch("wm/open",{id:`${this.id}-logs`,label:this.nameDisplay,icon:"file",component:"ContainerLogs",attrs:{pod:this.podResource,initialContainer:this.podResource.metadata.annotations["kubectl.kubernetes.io/default-container"]}},{root:!0})}createSchedule(e=this){const t=this.currentRouter();t.push({name:`${a.KR}-c-cluster-resource-create`,params:{resource:g.rk.SCHEDULE_VM_BACKUP},query:{vmNamespace:this.metadata.namespace,vmName:this.metadata.name}})}storageMigration(e=this){this.$dispatch("promptModal",{resources:e,component:"HarvesterStorageMigrationDialog"})}backupVM(e=this){this.$dispatch("promptModal",{resources:e,component:"HarvesterBackupModal"})}takeVMSnapshot(e=this){this.$dispatch("promptModal",{resources:e,component:"HarvesterVMSnapshotDialog"})}editVMQuota(e=this){this.$dispatch("promptModal",{resources:e,snapshotSizeQuota:this.snapshotSizeQuota,component:"HarvesterQuotaDialog"})}unplugVolume(e){const t=this;this.$dispatch("promptModal",{resources:t,name:e,type:"volume",component:"HarvesterHotUnplug"})}ejectCdRomVolume(e){const t=this;this.$dispatch("promptModal",{resources:t,name:e,type:"cdrom",component:"HarvesterHotUnplug"})}unplugNIC(e){const t=this;this.$dispatch("promptModal",{resources:t,name:e,type:"network",component:"HarvesterHotUnplug"})}restoreVM(e=this){this.$dispatch("promptModal",{resources:e,component:"HarvesterRestoreDialog"})}get machineType(){return this.spec?.template?.spec?.domain?.machine?.type||""}get realAttachNodeName(){const e=this.$getters["byId"](g.rk.VMI,this.id),t=e?.status?.nodeName,n=this.$getters["byId"](s.NW,t);return n?.nameDisplay||""}get nodeName(){const e=this.$getters["byId"](g.rk.VMI,this.id),t=e?.status?.nodeName,n=this.$getters["byId"](s.NW,t);return n?.id}pauseVM(e=this){this.$dispatch("promptModal",{resources:e,action:"pause",warningMessageKey:"dialog.confirmExecution.pause.message",component:"ConfirmExecutionDialog"})}altPauseVM(){this.doActionGrowl("pause",{})}goToCloneVM(e=this){this.$dispatch("promptModal",{resources:e,component:"CloneVmDialog"})}unpauseVM(){this.doActionGrowl("unpause",{})}stopVM(e=this){this.$dispatch("promptModal",{resources:e,action:"stop",warningMessageKey:"dialog.confirmExecution.stop.message",component:"ConfirmExecutionDialog"})}altStopVM(){this.doActionGrowl("stop",{})}forceStop(){this.doActionGrowl("forceStop",{})}startVM(){this.doActionGrowl("start",{})}migrateVM(e=this){this.$dispatch("promptModal",{resources:e,component:"HarvesterMigrationDialog"})}ejectCDROM(e=this){this.$dispatch("promptModal",{resources:e,component:"HarvesterEjectCDROMDialog"})}cpuMemoryHotplug(e=this){this.$dispatch("promptModal",{resources:e,component:"HarvesterCPUMemoryHotPlugDialog"})}abortMigrationVM(){this.doActionGrowl("abortMigration",{})}cancelStorageMigration(){this.doActionGrowl("cancelStorageMigration",{})}createTemplate(e=this){this.$dispatch("promptModal",{resources:e,component:"HarvesterCloneTemplate"})}addHotplugVolume(e=this){this.$dispatch("promptModal",{resources:e,component:"HarvesterAddHotplugVolumeModal"})}insertCdRomVolume(e){const t=this;this.$dispatch("promptModal",{resources:t,name:e,component:"HarvesterInsertCdRomVolume"})}addHotplugNic(e=this){this.$dispatch("promptModal",{resources:e,component:"HarvesterAddHotplugNic"})}get networksName(){const e=this.spec.template.spec.domain.devices?.interfaces||[];return e.map(e=>e.name)}get isOff(){return this.isVMExpectedRunning?null:{status:_}}get isWaitingForVMI(){return this&&this.isVMExpectedRunning&&!this.isVMCreated?{status:x,message:w}:null}get cpuPinningFeatureEnabled(){return this.$rootGetters["harvester-common/getFeatureEnabled"]("cpuPinning")}get isCpuPinning(){return!0===this.spec?.template?.spec?.domain?.cpu?.dedicatedCpuPlacement}get isVMExpectedRunning(){if(!this?.spec)return!1;const{running:e=null,runStrategy:t=null}=this.spec,n=this?.status?.conditions||[];if(e)return!0;if(null!==t){let e;switch(t){case U.Halted:return!1;case U.Always:return!0;case U.RerunOnFailure:return!("ErrorUnschedulable"!==this.status?.printableStatus||!n.find(e=>e.message&&e.message.includes(H)))||["Starting","Running"].includes(this.status?.printableStatus);case U.Manual:default:return e=new Set((this.status?.stateChangeRequests||[]).map(e=>e?.action)),!e.has(j.Stop)&&(!!e.has(j.Start)||(0===e.size?["Starting","Running"].includes(this.status?.printableStatus):this.isVMCreated))}}return!1}get podResource(){const e=this.productInStore,t=this.$rootGetters[`${e}/byId`](g.rk.VMI,this.id),n=this.$rootGetters[`${e}/all`](s.Sm);return n.find(e=>t?.metadata?.name&&t?.metadata?.name===e.metadata?.ownerReferences?.[0].name)}get isPaused(){const e=this.vmi?.status?.conditions||[],t=e.filter(e=>e.type===T).length>0;return t?{status:T,message:N}:null}get isVMError(){const e=(0,u.Jt)(this,"status.conditions"),t=(0,l.jq)(e,"type","Failure");return t?{status:E,detailedMessage:t.message}:null}get nsResourceQuota(){const e=this.productInStore,t=this.$rootGetters[`${e}/all`](g.rk.RESOURCE_QUOTA);return t.find(e=>e.namespace===this.metadata.namespace)}get snapshotSizeQuota(){return this.nsResourceQuota?.spec?.snapshotLimit?.vmTotalSnapshotSizeQuota?.[this.metadata.name]}get vmi(){const e=this.productInStore,t=this.$rootGetters[`${e}/all`](g.rk.VMI);return t.find(e=>e.id===this.id)}get volumes(){const e=this.$rootGetters[`${this.productInStore}/all`](s.YH),t=this.spec.template.spec.volumes?.map(e=>e.persistentVolumeClaim?.claimName).filter(e=>!!e)||[];return e.filter(e=>t.includes(e.metadata.name))}get lvmVolumes(){return this.volumes.filter(e=>e?.isLvm)}get longhornV2Volumes(){return this.volumes.filter(e=>e?.isLonghornV2)}get encryptedVolumeType(){return this.volumes&&0!==this.volumes.length?this.volumes.every(e=>e.isEncrypted)?"all":this.volumes.some(e=>e.isEncrypted)?"partial":"none":"none"}get isError(){const e=(0,u.Jt)(this.vmi,"status.conditions"),t=(0,l.jq)(e,"type","Failure");return t?{status:"VMI error",detailedMessage:t.message}:((this.vmi||this.isVMCreated)&&this.podResource,this?.vmi?.status?.phase)}get isRunning(){const e=(0,u.Jt)(this.vmi,"status.conditions"),t="True"===(0,l.jq)(e,"type","Ready")?.status;return this.vmi?.status?.phase===K.Running&&t?{status:K.Running}:null}get isNotReady(){const e=(0,u.Jt)(this.vmi,"status.conditions"),t=(0,l.jq)(e,"type","Ready");return"False"===t?.status&&this.vmi?.status?.phase===K.Running?{status:A}:null}get isPending(){return this&&!this.isVMExpectedRunning&&this.isVMCreated&&this.vmi?.status?.phase===K.Pending||"cloning"===this.metadata?.annotations?.[d.r.CLONE_BACKEND_STORAGE_STATUS]?{status:K.Pending}:null}get isStopping(){return this&&!this.isVMExpectedRunning&&this.isVMCreated&&void 0!==this.vmi?.status?.phase&&this.vmi?.status?.phase!==K.Succeeded&&this.vmi?.status?.phase!==K.Pending?{status:S}:null}get isStarting(){if(this.isVMExpectedRunning&&this.isVMCreated){if(this.podResource){const e=this.podResource.getPodStatus;if(!$.includes(e?.status))return{...e,status:"Starting",message:V,detailedMessage:e?.message,pod:this.podResource}}return{status:"Starting",message:V,pod:this.podResource}}return null}get isUnschedulable(){if(this.isStopping||this.isStarting){const e=this.status?.conditions?.find(e=>e.reason===k);if(e)return{status:k,message:e.message||"VM is unschedulable"}}return null}get isTerminating(){return!!this?.metadata?.deletionTimestamp}get otherState(){const e=this.vmi&&[K.Scheduling,K.Scheduled].includes(this.vmi?.status?.phase)&&{status:"Starting",message:V}||this.vmi&&this.vmi.status?.phase===K.Pending&&{status:"VMI_WAITING",message:w}||this.vmi&&this.vmi?.status?.phase===K.Failed&&{status:"VMI_ERROR"}||this.isVMExpectedRunning&&!this.isVMCreated&&{status:"Pending"}||{status:"UNKNOWN"};return e}get isVMCreated(){return!!this?.status?.created}get getDataVolumeTemplates(){return null===(0,u.Jt)(this,"spec.volumeClaimTemplates")?[]:this.spec.volumeClaimTemplates}get restoreResource(){const e=`${this.metadata.namespace}/${(0,u.Jt)(this,`metadata.annotations."${d.r.RESTORE_NAME}"`)}`,t=this.productInStore,n=this.$rootGetters[`${t}/all`](g.rk.RESTORE),r=n.find(t=>t.id===e);if(r){const e=this.$rootGetters[`${t}/all`](g.rk.BACKUP);r.fromSnapshot=!!e.filter(e=>e.spec?.type!==m.aS.BACKUP).find(e=>e.id===`${r.spec?.virtualMachineBackupNamespace}/${r.spec?.virtualMachineBackupName}`)}return r}get restoreProgress(){if(this.isVMError||this.isTerminating)return{};const e=this.restoreResource?.status;return void 0!==e?{type:"restore",percentage:e?.progress||0,details:{volumes:e?.restores||[]}}:{}}get restoreState(){return!this.restoreResource||this.restoreResource?.isComplete}get actualState(){if(!this.restoreState)return"Restoring";if(this.isTerminating)return"Terminating";if(this?.vmi?.migrationState&&"Failed"!==this.vmi.migrationState.status)return this.vmi.migrationState.status;const e=this.isUnschedulable?.status||this.isPaused?.status||this.isVMError?.status||this.isPending?.status||this.isStopping?.status||this.isOff?.status||this.isError?.status||this.isRunning?.status||this.isNotReady?.status||this.isStarting?.status||this.isWaitingForVMI?.state||this.otherState?.status;return e}get warningMessage(){if(this.metadata?.annotations[d.r.VM_INSUFFICIENT])return{message:this.metadata?.annotations[d.r.VM_INSUFFICIENT],canDismiss:!0};const e=(0,u.Jt)(this,"status.conditions"),t=(0,l.jq)(e,"type","Failure");if(t)return{status:E,message:t.message};const n=(0,u.Jt)(this.vmi,"status.conditions"),r=(0,l.jq)(n,"type","Failure");if(r)return{status:"VMI error",detailedMessage:r.message};if((this.vmi||this.isVMCreated)&&this.podResource){const e=this.podResource.getPodStatus;if(P.includes(e?.status))return{...e,status:"LAUNCHER_POD_ERROR",pod:this.podResource}}return null}get migrationMessage(){return this?.vmi?.migrationState&&"Failed"===this.vmi.migrationState.status?{...this.actualState,message:this.t("harvester.modal.migration.failedMessage")}:null}get stateDisplay(){return this.actualState}get stateColor(){const e=this.actualState;return(0,o.uU)(e)}get networkIps(){let e="";const t=[],n=this.spec.template?.spec?.volumes||[];n.forEach(t=>{t.cloudInitNoCloud&&(e=t.cloudInitNoCloud.networkData)});try{const n=(0,r.load)(e);if(n?.config&&Array.isArray(n.config)){const e=n.config;e.forEach(e=>{if(e?.subnets&&Array.isArray(e.subnets)){const n=e.subnets;n.forEach(e=>{e.address&&t.push(e.address)})}})}}catch(i){}return t}get warningCount(){return this.resourcesStatus.warningCount}get errorCount(){return this.resourcesStatus.errorCount}get resourcesStatus(){const e=this.productInStore,t=this.$rootGetters[`${e}/all`](g.rk.VM);let n=0,r=0;return t.forEach(e=>{const t=e.actualState;t===E?r+=1:"Stopping"!==t&&"Waiting"!==t&&"Pending"!==t&&"Starting"!==t&&"Terminating"!==t||(n+=1)}),{warningCount:n,errorCount:r}}get volumeClaimTemplates(){return(0,f.v)(this)}get persistentVolumeClaimName(){const e=this.spec.template.spec.volumes||[];return e.map(e=>e?.persistentVolumeClaim?.claimName).filter(e=>!!e)}get rootImageId(){let e="";const t=this.productInStore,n=this.$rootGetters[`${t}/all`](s.YH)||[],r=this.spec.template.spec.volumes||[],i=r[0]?.persistentVolumeClaim?.claimName,a=this.volumeClaimTemplates.find(e=>i===e?.metadata?.name);if(!a){const e=n.find(e=>e.id===`${this.metadata.namespace}/${i}`);if(e)return e?.metadata?.annotations?.["harvesterhci.io/imageId"]}return this.volumeClaimTemplates.find(t=>(e=t?.metadata?.annotations?.["harvesterhci.io/imageId"],!!e)),e}get restoreName(){return(0,u.Jt)(this,`metadata.annotations."${d.r.RESTORE_NAME}"`)||""}get customValidationRules(){const e=[{nullable:!1,path:"metadata.name",required:!0,minLength:1,maxLength:63,translationKey:"harvester.fields.name"},{nullable:!1,path:"spec.template.spec",validators:["vmNetworks"]},{nullable:!1,path:"spec",validators:["vmDisks"]}];return e}get attachNetwork(){const e=this.spec?.template?.spec?.networks||[],t=e.find(e=>e.multus);return!!t}get memorySort(){const e=(0,b.J)(this).memory,t=(0,c.ao)(e);return parseInt(t,10)}get ingoreVMMessage(){const e=[{name:"unavailable",error:!1,vmState:this.actualState===T}],t=this.metadata?.state;return e.find(e=>e.name===t?.name&&e.error===t?.error&&e.vmState)||H.find(e=>super.stateDescription?.includes(e))||this.isOff}get isRestartRequired(){const e=(0,u.Jt)(this,"status.conditions"),t=(0,l.jq)(e,"type","RestartRequired");return t&&"True"===t.status}get stateDescription(){if(this.isRestartRequired)return this.t("harvester.virtualMachine.hotplug.restartVMMessage");const e=this.restoreResource?.status?.conditions||[],t=e.find(e=>!0===e.error&&"Error"===e.reason&&"Ready"===e.type);return t?.message?t.message:this.ingoreVMMessage?"":super.stateDescription}get displayCPU(){return(0,b.J)(this).cpu}get displayMemory(){return(0,b.J)(this).memory}get isQemuInstalled(){const e=this.vmi?.status?.conditions||[],t=e.find(e=>e.type===C);return"True"===t?.status}get instanceLabels(){const e=this.spec?.template?.metadata?.labels||{};return(0,i.omitBy)(e,(e,t)=>(0,p.HV)(t,d.l))}get hostDevices(){return this.spec?.template?.spec?.domain?.devices?.hostDevices||[]}get provisionedVGpus(){try{const e=JSON.parse(this.metadata?.annotations[d.r.VM_DEVICE_ALLOCATION_DETAILS]||"{}");return e?.gpus||{}}catch(e){return{}}}get schedulingVMBackupFeatureEnabled(){return this.$rootGetters["harvester-common/getFeatureEnabled"]("schedulingVMBackup")}get volumeEncryptionFeatureEnabled(){return this.$rootGetters["harvester-common/getFeatureEnabled"]("volumeEncryption")}get tpmPersistentStateFeatureEnabled(){return this.$rootGetters["harvester-common/getFeatureEnabled"]("tpmPersistentState")}get efiPersistentStateFeatureEnabled(){return this.$rootGetters["harvester-common/getFeatureEnabled"]("efiPersistentState")}get thirdPartyStorageFeatureEnabled(){return this.$rootGetters["harvester-common/getFeatureEnabled"]("thirdPartyStorage")}get vmMachineTypeAutoFeatureEnabled(){return this.$rootGetters["harvester-common/getFeatureEnabled"]("vmMachineTypeAuto")}get hotplugNicFeatureEnabled(){return this.$rootGetters["harvester-common/getFeatureEnabled"]("hotplugNic")}get hotplugCdRomEnabled(){return this.$rootGetters["harvester-common/getFeatureEnabled"]("hotplugCdRom")}get isBackupTargetUnavailable(){const e=this.$rootGetters["harvester/all"](g.rk.SETTING)||[],t=e.find(e=>"backup-target"===e.id);return(0,y.S)(t)}setInstanceLabels(e){this.spec?.template?.metadata?.labels||(0,u.hZ)(this,"spec.template.metadata.labels",{});const t=this.spec.template.metadata.labels||{},n=(0,i.pickBy)(t,(e,t)=>(0,p.HV)(t,d.l));this.spec.template.metadata["labels"]={...n,...e}}}},79095:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var r=n(40408),i=n(35664),a=n(2602),o=n(32766),s=n(24222);const l="Paused",c="This VM has been paused. If you wish to unpause it, please click the Unpause button below. For further details, please check with your system administrator.",u={Pending:"Pending",Scheduling:"Scheduling",Scheduled:"Scheduled",Running:"Running",Succeeded:"Succeeded",Failed:"Failed",Unknown:"Unknown"};class d extends s["default"]{get _availableActions(){const e=super._availableActions,t=e.find(e=>"promptRemove"===e.action);return[t]}get stateDisplay(){return this?.metadata?.deletionTimestamp?"Terminating":this?.status?.phase}get stateBackground(){return(0,r.uU)(this.stateDisplay).replace("text-","bg-")}get stateColor(){const e=this.stateDisplay;return(0,r.uU)(e)}get vmimResource(){const e=this.$rootGetters["harvester/all"](o.rk.VMIM)||[],t=e.filter(e=>e.spec?.vmiName===this.metadata?.name);return 0===t.length?[]:(t.sort((e,t)=>e?.metadata?.creationTimestamp>t?.metadata?.creationTimestamp?-1:1),t[0])}get migrationState(){const e=this.metadata?.annotations?.[a.r.MIGRATION_STATE];return this.vmimResource?.status?.phase===u.Failed?{type:"migration",status:u.Failed}:this.vmimResource?.status?.phase&&e?{type:"migration",status:e}:null}get migrationStateBackground(){const e=this.migrationState.status;return(0,r.uU)(e).replace("text-","bg-")}get isPaused(){const e=this?.status?.conditions||[],t=e.filter(e=>e.type===l).length>0;return t?{status:l,message:c}:null}get isRunning(){return this?.status?.phase===u.Running?{status:u.Running}:null}get isTerminated(){const e=this?.status?.conditions||[];return"False"===e.find(e=>"Ready"===e.type)?.status}get getVMIApiPath(){const e=this.$rootGetters["clusterId"];if(this.$rootGetters["isMultiCluster"]){const t=`/k8s/clusters/${e}`;return`${t}/apis/subresources.kubevirt.io/v1/namespaces/${this.metadata.namespace}/virtualmachineinstances/${this.name}/vnc`}return`/apis/subresources.kubevirt.io/v1/namespaces/${this.metadata.namespace}/virtualmachineinstances/${this.name}/vnc`}get realAttachNodeName(){const e=this?.status?.nodeName,t=this.$getters["byId"](i.NW,e);return t?.nameDisplay||""}get getSerialConsolePath(){const e=this.$rootGetters["clusterId"];if(this.$rootGetters["isMultiCluster"]){const t=`/k8s/clusters/${e}`;return`${t}/apis/subresources.kubevirt.io/v1/namespaces/${this.metadata.namespace}/virtualmachineinstances/${this.name}/console`}return`/apis/subresources.kubevirt.io/v1/namespaces/${this.metadata.namespace}/virtualmachineinstances/${this.name}/console`}}},68917:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(76978),i=n(24222),a=n(32766);const o="Not Ready";class s extends i["default"]{applyDefaults(){const e=this.spec||{},t=this.metadata||{};e.ranges=e.ranges||[],e.selector=e.selector||{},e.selector.network=e.selector.network||"",this["spec"]=e,this["metadata"]=t}get customValidationRules(){return[{nullable:!1,path:"metadata.name",required:!0,translationKey:"generic.name",type:"dnsLabel"},{nullable:!1,path:"spec.ranges",type:"array",validators:["ranges"]}]}get subnetDisplay(){const e=this.spec?.ranges||[];return e.map(e=>e.subnet).join(", ")}get startIPDisplay(){const e=this.spec?.ranges||[];return e.filter(e=>e.startIP).map(e=>e.startIP).join(", ")}get endIPDisplay(){const e=this.spec?.ranges||[];return e.filter(e=>e.endIP).map(e=>e.endIP).join(", ")}get details(){const e=[{label:this.t("harvester.ipPool.availableIP.label"),content:this.status?.available}];return e}get doneOverride(){const e=(0,r.o8)(this.listLocation);return e.params.resource=a.rk.IP_POOL,e}get parentLocationOverride(){return{...this.listLocation,params:{...this.listLocation.params,resource:a.rk.IP_POOL}}}get isReady(){const e=(this?.status?.conditions||[]).find(e=>"Ready"===e.type)||{};return"True"===e?.status}get stateDisplay(){return this.isReady?super.stateDisplay:o}get stateBackground(){return this.isReady?super.stateBackground:"bg-warning"}}},61772:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return l}});var r=n(76978),i=n(24222),a=n(32766);const o="vm",s="Not Ready";class l extends i["default"]{applyDefaults(){const e=this.spec||{},t=this.metadata||{};e.workloadType=e.workloadType||o,e.ipam=e.ipam||"dhcp",e.healthCheck=e.healthCheck||{},e.backendServerSelector=e.backendServerSelector||{},(0,r.hZ)(this,"spec",e),(0,r.hZ)(this,"metadata",t)}get workloadTypeDisplay(){const e=this.spec?.workloadType||"cluster";return this.$rootGetters["i18n/t"](`harvester.loadBalancer.workloadType.options.${e}`)}get ipamDisplay(){const e=this.spec?.ipam;return this.$rootGetters["i18n/t"](`harvester.loadBalancer.ipam.options.${e}`)}get customValidationRules(){return[{nullable:!1,path:"metadata.name",required:!0,translationKey:"generic.name",type:"dnsLabel"}]}get canCustomEdit(){return this.$rootGetters["type-map/hasCustomEdit"](this.type,this.id)&&this.spec.workloadType===o}get canUpdate(){return this.hasLink("update")&&this.$rootGetters["type-map/optionsFor"](this.type).isEditable&&this.spec.workloadType===o}get canClone(){return this.spec.workloadType===o}get details(){const e=[{label:this.t("harvester.loadBalancer.ipam.label"),content:this.ipamDisplay},{label:this.t("harvester.loadBalancer.workloadType.label"),content:this.workloadTypeDisplay},{label:this.t("tableHeaders.address"),content:this.status.address}];return e}get doneOverride(){const e=(0,r.o8)(this.listLocation);return e.params.resource=a.rk.LB,e}get parentLocationOverride(){return{...this.listLocation,params:{...this.listLocation.params,resource:a.rk.LB}}}get isReady(){const e=(this?.status?.conditions||[]).find(e=>"Ready"===e.type)||{};return"True"===e?.status}get stateDisplay(){return this.isReady?super.stateDisplay:s}get stateBackground(){return this.isReady?super.stateBackground:"bg-warning"}}},28433:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return o}});var r=n(87811);const i="healthy",a="warning";class o extends r.A{get used(){let e=0;return this.disks.filter(e=>e.allowScheduling).map(t=>{t?.storageAvailable&&t?.storageMaximum&&(e+=t.storageMaximum-t.storageAvailable)}),e}get disks(){const e=this?.status?.diskStatus||{},t=this?.spec?.disks||{};return Object.keys(t).map(n=>{const r=e[n]?.conditions||[],o=r.find(e=>"Ready"===e.type)||{},s=r.find(e=>"Schedulable"===e.type)||{};let l;return l="True"!==o?.status||"True"!==s?.status?a:i,{...e[n],...t[n],id:n,state:l}})||[]}}},11971:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(76978),i=n(24222);class a extends i["default"]{applyDefaults(){const e={baseboardSpec:{connection:{authSecretRef:{},insecureTLS:!1}},events:{enabled:!0,pollingInterval:"1h"},primaryDisk:"",managementInterfaceMacAddress:""};(0,r.hZ)(this,"metadata.annotations",{}),(0,r.hZ)(this,"spec",this.spec||e),(0,r.hZ)(this,"spec.baseboardSpec",this.spec?.baseboardSpec||e.baseboardSpec),(0,r.hZ)(this,"spec.baseboardSpec.connection",this.spec?.baseboardSpec?.connection||e.baseboardSpec.connection),(0,r.hZ)(this,"spec.baseboardSpec.connection.authSecretRef",this.spec?.baseboardSpec?.connection?.authSecretRef||{})}get warningMessages(){const e=[];return this.metadata?.state?.error&&e.push({text:this.metadata?.state.message}),e}get customValidationRules(){return[{path:"spec.events.pollingInterval",translationKey:"harvester.seeder.inventory.pollingInterval.label",validators:["interval"]}]}}},85696:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(76978),i=n(35664),a=n(32766),o=n(24222);class s extends o["default"]{get doneOverride(){const e=(0,r.o8)(this.listLocation);return e.params.resource=a.rk.CLUSTER_NETWORK,e}get parentLocationOverride(){return{...this.listLocation,params:{...this.listLocation.params,resource:a.rk.CLUSTER_NETWORK}}}get canDelete(){return this._canDelete&&"mgmt"!==this.id}get canUpdate(){return this.hasLink("update")&&this.$rootGetters["type-map/optionsFor"](this.type).isEditable&&"mgmt"!==this.id}get isReady(){const e=(this?.status?.conditions||[]).find(e=>"ready"===e.type)||{};return"True"===e?.status}get inStore(){return this.$rootGetters["currentProduct"].inStore}get nodes(){const e=this.$rootGetters[`${this.inStore}/all`](i.NW);return e.filter(e=>!e.isUnSchedulable&&"true"!==e.isEtcd)}get vlanStatuses(){const e=this.$rootGetters[`${this.inStore}/all`](a.rk.VLAN_STATUS),t=this.nodes.map(e=>e.id);return e.filter(e=>t.includes(e?.status?.node)&&this.id===e?.status?.clusterNetwork)||[]}get isReadyForStorageNetwork(){if("mgmt"===this.id)return!0;{const e=this.vlanStatuses.filter(e=>e.isReady)||[];return e.length===this.nodes.length&&this.isReady}}}},88272:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=n(68851),i=n(76978),a=n(32766),o=n(24222);class s extends o["default"]{get message(){const e=(0,i.Jt)(this,"status.conditions");return((0,r.jq)(e,"type","Ready")||{}).message}get isReady(){const e=(0,i.Jt)(this,"status.conditions");return"True"===((0,r.jq)(e,"type","Ready")||{})?.status}get nics(){return this?.status?.nics||[]}get attachNodeName(){return(0,i.Jt)(this,'metadata.labels."network.harvesterhci.io/nodename"')||""}get linkMessage(){return{name:this.attachNodeName,message:this.message,to:`${a.rk.HOST}/${this.attachNodeName}?mode=edit`}}}},70443:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var r=n(45250),i=n(76978),a=n(68851),o=n(2841),s=n(38823),l=n(35664),c=n(32766),u=n(24222);const d="Not Ready";class h extends u["default"]{applyDefaults(){const e={uplink:{nics:[],linkAttributes:{},bondOptions:{mode:"active-backup",miimon:-1}}};(0,i.hZ)(this,"spec",this.spec||e),(0,i.hZ)(this,"spec.uplink.linkAttributes",this.spec?.uplink?.linkAttributes||{}),(0,i.hZ)(this,"spec.uplink.bondOptions",this.spec?.uplink?.bondOptions||{})}get groupByClusterNetwork(){return this.spec?.clusterNetwork}get doneOverride(){const e=(0,i.o8)(this.listLocation);return e.params.resource=c.rk.CLUSTER_NETWORK,e}get parentLocationOverride(){return{...this.listLocation,params:{...this.listLocation.params,resource:c.rk.CLUSTER_NETWORK}}}get typeDisplay(){return"VLAN"}get _availableActions(){const e=super._availableActions;return(0,a.PT)(e,0,this.migrateAction),e}get migrateAction(){return{action:"migrate",icon:"icon icon-copy",label:this.t("harvester.vlanConfig.action.migrate")}}migrate(e=this){this.$dispatch("promptModal",{resources:e,component:"HarvesterVlanConfigMigrateDialog"})}get inStore(){return this.$rootGetters["currentProduct"].inStore}get vlanStatuses(){const e=this.nodes.map(e=>e.id)||[],t=this.$rootGetters[`${this.inStore}/all`](c.rk.VLAN_STATUS);return t.filter(t=>e.includes(t?.status?.node)&&this.id===t?.status?.vlanConfig)||[]}get isReady(){if(0===this.nodes.length||this.vlanStatuses.length!==this.nodes.length)return!1;{const e=this.vlanStatuses.filter(e=>e.isReady);return e.length===this.vlanStatuses.length}}get selectedNodes(){const e=this.spec?.nodeSelector||{},t=this.$rootGetters[`${this.inStore}/all`](l.NW);if((0,r.isEmpty)(e))return t;if(e[o.yA]&&1===Object.keys(e).length)return t.filter(t=>t.id===e[o.yA])||[];{const n=(0,s.wC)(t||[],e).map(e=>e.id);return t.filter(e=>n.includes(e.id))}}get nodes(){return this.selectedNodes.filter(e=>!e.isUnSchedulable&&"true"!==e.isEtcd)}get stateDisplay(){return this.isReady?super.stateDisplay:d}get stateBackground(){return this.isReady?super.stateBackground:"bg-warning"}}},61715:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(68851),i=n(24222);class a extends i["default"]{get isReady(){const e=this.status?.conditions||[],t=(0,r.jq)(e,"type","ready")||{};return"True"===t.status}}},94741:function(e,t,n){"use strict";function r(e,t="admin"){const n=e?.["isSingleProduct"];if(n)return t;const r=i(e);return r?.username||r?.id||t}function i(e){return e?.["auth/user"]}n.d(t,{c:function(){return i},x:function(){return r}})},58434:function(e,t,n){"use strict";n.d(t,{J:function(){return i}});var r=n(2602);function i(e){if(!e)return{cpu:null,memory:null,isHotplugEnabled:!1};const t=a(e),{sockets:n=1,threads:r=1,cores:i=null}=e.spec.template.spec.domain.cpu||{},o=null===i?null:n*r*i;return t?{cpu:o,memory:e.spec.template.spec.domain?.memory?.guest||null,maxCpu:e.spec.template.spec.domain.cpu?.maxSockets||0,maxMemory:e.spec.template.spec.domain?.memory?.maxGuest||null,isHotplugEnabled:t}:{cpu:o,memory:e.spec.template.spec.domain.resources?.limits?.memory||null,isHotplugEnabled:t}}function a(e){return"true"===e?.metadata?.annotations[r.r.VM_CPU_MEMORY_HOTPLUG]||!!e?.spec?.template?.spec?.domain?.memory?.maxGuest||!1}},3791:function(e,t,n){"use strict";n.d(t,{nn:function(){return c},at:function(){return p},HF:function(){return u}});var r=n(2722),i=n.n(r);const a={"v1.3.0":["supportHarvesterClusterVersion"],"v1.3.1":["autoRotateRke2CertsSetting","supportBundleNodeCollectionTimeoutSetting"],"v1.3.2":["kubeconfigDefaultTokenTTLMinutesSetting","improveMaintenanceMode"],"v1.3.3":[],"v1.4.0":["cpuPinning","usbPassthrough","volumeEncryption","schedulingVMBackup","vmSnapshotQuota","longhornV2LVMSupport","improveMaintenanceMode","upgradeConfigSetting"],"v1.4.1":[],"v1.4.2":["refreshIntervalInSecond","allowEmptySnapshotClassName"],"v1.4.3":[],"v1.5.0":["tpmPersistentState","efiPersistentState","untaggedNetworkSetting","skipSingleReplicaDetachedVol","thirdPartyStorage","liveMigrationProgress"],"v1.5.1":[],"v1.6.0":["customSupportBundle","csiOnlineExpandValidation","vmNetworkMigration","kubeovnVpcSubnet","rancherClusterSetting","cpuMemoryHotplug","cdiSettings","vmCloneRunStrategy"],"v1.6.1":[],"v1.7.0":["vmMachineTypeAuto","lhV2VolExpansion","l2VlanTrunkMode","kubevirtMigration","hotplugNic","resumeUpgradePausedNode"],"v1.7.1":[],"v1.8.0":["hotplugCdRom","supportBundleFileNameSetting","clusterRegistrationTLSVerify","vGPUAsPCIDevice","instanceManagerResourcesSetting","rwxNetworkSetting","createPVCWithDataVolume"],"v1.8.1":[],"v1.9.0":[]},o=()=>{const e=[...Object.keys(a)].filter(e=>i().valid(e)).sort(i().compare),t={};return e.forEach((n,r)=>{const i=e[r-1];t[n]=i?[...t[i],...a[n]]:[...a[n]]}),t},s=o();var l=n(4364);const c=(e,t)=>{const n=`v${i().major(t)}.${i().minor(t)}`;return`https://docs.harvesterhci.io/${n}${e}`};function u(e){if({NODE_ENV:"production",BASE_URL:"/"}.VUE_APP_SERVER_VERSION)return{NODE_ENV:"production",BASE_URL:"/"}.VUE_APP_SERVER_VERSION;try{return`v${i().major(e)}.${i().minor(e)}.${i().patch(e)}`}catch(t){return d()}}function d(){const e=Object.keys(s).filter(i().valid).sort(i().rcompare);return e[0]||""}function h(e){const t=Object.keys(s).filter(i().valid),n=t.filter(t=>i().lte(t,e)).sort(i().rcompare);return n[0]||d()}const p=(e,t)=>{const n="1.3.0",r=u(t);if(i().lt(r.replace("v",""),n))return l.error(`Harvester UI extension only supports Harvester cluster version >= ${n}. Current version: ${r}`),!1;const a=h(r),o=s?.[a];return Array.isArray(o)?o.includes(e):(l.error(`Feature flags for version ${r} are not defined. Please upgrade Harvester UI extension and check the support matrix.`),!1)}},38223:function(e,t,n){"use strict";function r(e){return/^[A-Fa-f0-9]{2}(-[A-Fa-f0-9]{2}){5}$|^[A-Fa-f0-9]{2}(:[A-Fa-f0-9]{2}){5}$/.test(e)}function i(e){const t=/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/;return t.test(e)}n.d(t,{i:function(){return r},z:function(){return i}})},14127:function(e,t,n){"use strict";n.d(t,{S:function(){return a},z:function(){return i}});var r=n(4364);function i(e={}){let t=!0;if(e?.value)try{const n=JSON.parse(e?.value);t=!n.type}catch(n){r.error("Failed to parse backup target value:",n)}return t}function a(e={}){const t=e.errorMessage,n=i(e),r=e.canUpdate;return(t||n)&&r}},39407:function(e,t,n){"use strict";n.d(t,{N:function(){return i}});var r=n(41837);function i(e){return e===r.Nu.VMSTATE_PERSISTENCE||e===r.Nu.LONGHORN_STATIC}},84757:function(e,t,n){"use strict";n.d(t,{Wl:function(){return i},gJ:function(){return a},jx:function(){return r}});const r="i",i="Gi",a="Mi"},66490:function(e,t,n){"use strict";n.d(t,{K:function(){return a},v:function(){return i}});var r=n(2602);function i(e){let t=[];try{t=JSON.parse(e?.metadata?.annotations?.[r.r.VOLUME_CLAIM_TEMPLATE])||[]}catch(n){}return t}const a="EMPTY_IMAGE"},52880:function(e,t,n){"use strict";n.d(t,{Vi:function(){return i},_X:function(){return s},b8:function(){return o}});var r=n(2602);const i=["qcow","qcow2","raw","img","iso"];function a(e){try{const t=new URL(e),n=t.pathname;return n.split("/").filter(Boolean).pop()||""}catch(t){const n=e.split("?")[0].split("#")[0];return n.split("/").pop()||""}}function o(e,t,n,r,o){const s="file"===o?"harvester.validation.image.ruleFileTip":"harvester.validation.image.ruleTip",l=t["i18n/t"];if(!e||""===e)return n;const c=a(e);if(!c)return n.push(l(s)),n;const u=c.split(".").pop().toLowerCase();return i.includes(u)||n.push(l(s)),n}function s(e={},t,n,i,a){const o=t["i18n/t"];return e[r.r.IMAGE_NAME]||n.push(o("validation.required",{key:o("harvester.image.fileName")})),n}},52225:function(e,t,n){"use strict";var r=n(33062),i=n(1359),a=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,o=/[\n\r\t]/g,s=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,l=/:\d+$/,c=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,u=/^[a-zA-Z]:/;function d(e){return(e||"").toString().replace(a,"")}var h=[["#","hash"],["?","query"],function(e,t){return m(t.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],p={hash:1,query:1};function f(e){var t;t="undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{};var r=t.location||{};e=e||r;var i,a={},o=typeof e;if("blob:"===e.protocol)a=new b(unescape(e.pathname),{});else if("string"===o)for(i in a=new b(e,{}),p)delete a[i];else if("object"===o){for(i in e)i in p||(a[i]=e[i]);void 0===a.slashes&&(a.slashes=s.test(e.href))}return a}function m(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function g(e,t){e=d(e),e=e.replace(o,""),t=t||{};var n,r=c.exec(e),i=r[1]?r[1].toLowerCase():"",a=!!r[2],s=!!r[3],l=0;return a?s?(n=r[2]+r[3]+r[4],l=r[2].length+r[3].length):(n=r[2]+r[4],l=r[2].length):s?(n=r[3]+r[4],l=r[3].length):n=r[4],"file:"===i?l>=2&&(n=n.slice(2)):m(i)?n=r[4]:i?a&&(n=n.slice(2)):l>=2&&m(t.protocol)&&(n=r[4]),{protocol:i,slashes:a||m(i),slashesCount:l,rest:n}}function v(e,t){if(""===e)return t;var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),r=n.length,i=n[r-1],a=!1,o=0;while(r--)"."===n[r]?n.splice(r,1):".."===n[r]?(n.splice(r,1),o++):o&&(0===r&&(a=!0),n.splice(r,1),o--);return a&&n.unshift(""),"."!==i&&".."!==i||n.push(""),n.join("/")}function b(e,t,n){if(e=d(e),e=e.replace(o,""),!(this instanceof b))return new b(e,t,n);var a,s,l,c,p,y,_=h.slice(),w=typeof t,E=this,S=0;for("object"!==w&&"string"!==w&&(n=t,t=null),n&&"function"!==typeof n&&(n=i.parse),t=f(t),s=g(e||"",t),a=!s.protocol&&!s.slashes,E.slashes=s.slashes||a&&t.slashes,E.protocol=s.protocol||t.protocol||"",e=s.rest,("file:"===s.protocol&&(2!==s.slashesCount||u.test(e))||!s.slashes&&(s.protocol||s.slashesCount<2||!m(E.protocol)))&&(_[3]=[/(.*)/,"pathname"]);S<_.length;S++)c=_[S],"function"!==typeof c?(l=c[0],y=c[1],l!==l?E[y]=e:"string"===typeof l?(p="@"===l?e.lastIndexOf(l):e.indexOf(l),~p&&("number"===typeof c[2]?(E[y]=e.slice(0,p),e=e.slice(p+c[2])):(E[y]=e.slice(p),e=e.slice(0,p)))):(p=l.exec(e))&&(E[y]=p[1],e=e.slice(0,p.index)),E[y]=E[y]||a&&c[3]&&t[y]||"",c[4]&&(E[y]=E[y].toLowerCase())):e=c(e,E);n&&(E.query=n(E.query)),a&&t.slashes&&"/"!==E.pathname.charAt(0)&&(""!==E.pathname||""!==t.pathname)&&(E.pathname=v(E.pathname,t.pathname)),"/"!==E.pathname.charAt(0)&&m(E.protocol)&&(E.pathname="/"+E.pathname),r(E.port,E.protocol)||(E.host=E.hostname,E.port=""),E.username=E.password="",E.auth&&(p=E.auth.indexOf(":"),~p?(E.username=E.auth.slice(0,p),E.username=encodeURIComponent(decodeURIComponent(E.username)),E.password=E.auth.slice(p+1),E.password=encodeURIComponent(decodeURIComponent(E.password))):E.username=encodeURIComponent(decodeURIComponent(E.auth)),E.auth=E.password?E.username+":"+E.password:E.username),E.origin="file:"!==E.protocol&&m(E.protocol)&&E.host?E.protocol+"//"+E.host:"null",E.href=E.toString()}function y(e,t,n){var a=this;switch(e){case"query":"string"===typeof t&&t.length&&(t=(n||i.parse)(t)),a[e]=t;break;case"port":a[e]=t,r(t,a.protocol)?t&&(a.host=a.hostname+":"+t):(a.host=a.hostname,a[e]="");break;case"hostname":a[e]=t,a.port&&(t+=":"+a.port),a.host=t;break;case"host":a[e]=t,l.test(t)?(t=t.split(":"),a.port=t.pop(),a.hostname=t.join(":")):(a.hostname=t,a.port="");break;case"protocol":a.protocol=t.toLowerCase(),a.slashes=!n;break;case"pathname":case"hash":if(t){var o="pathname"===e?"/":"#";a[e]=t.charAt(0)!==o?o+t:t}else a[e]=t;break;case"username":case"password":a[e]=encodeURIComponent(t);break;case"auth":var s=t.indexOf(":");~s?(a.username=t.slice(0,s),a.username=encodeURIComponent(decodeURIComponent(a.username)),a.password=t.slice(s+1),a.password=encodeURIComponent(decodeURIComponent(a.password))):a.username=encodeURIComponent(decodeURIComponent(t))}for(var c=0;c<h.length;c++){var u=h[c];u[4]&&(a[u[1]]=a[u[1]].toLowerCase())}return a.auth=a.password?a.username+":"+a.password:a.username,a.origin="file:"!==a.protocol&&m(a.protocol)&&a.host?a.protocol+"//"+a.host:"null",a.href=a.toString(),a}function _(e){e&&"function"===typeof e||(e=i.stringify);var t,n=this,r=n.host,a=n.protocol;a&&":"!==a.charAt(a.length-1)&&(a+=":");var o=a+(n.protocol&&n.slashes||m(n.protocol)?"//":"");return n.username?(o+=n.username,n.password&&(o+=":"+n.password),o+="@"):n.password?(o+=":"+n.password,o+="@"):"file:"!==n.protocol&&m(n.protocol)&&!r&&"/"!==n.pathname&&(o+="@"),(":"===r[r.length-1]||l.test(n.hostname)&&!n.port)&&(r+=":"),o+=r+n.pathname,t="object"===typeof n.query?e(n.query):n.query,t&&(o+="?"!==t.charAt(0)?"?"+t:t),n.hash&&(o+=n.hash),o}b.prototype={set:y,toString:_},b.extractProtocol=g,b.location=f,b.trimLeft=d,b.qs=i,e.exports=b},62113:function(e,t,n){var r;/*! https://mths.be/punycode v1.4.1 by @mathias */e=n.nmd(e),function(){t&&t.nodeType,e&&e.nodeType;var i="object"==typeof n.g&&n.g;i.global!==i&&i.window!==i&&i.self;var a,o=2147483647,s=36,l=1,c=26,u=38,d=700,h=72,p=128,f="-",m=/^xn--/,g=/[^\x20-\x7E]/,v=/[\x2E\u3002\uFF0E\uFF61]/g,b={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},y=s-l,_=Math.floor,w=String.fromCharCode;function E(e){throw new RangeError(b[e])}function S(e,t){var n=e.length,r=[];while(n--)r[n]=t(e[n]);return r}function k(e,t){var n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(v,".");var i=e.split("."),a=S(i,t).join(".");return r+a}function x(e){var t,n,r=[],i=0,a=e.length;while(i<a)t=e.charCodeAt(i++),t>=55296&&t<=56319&&i<a?(n=e.charCodeAt(i++),56320==(64512&n)?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--)):r.push(t);return r}function A(e){return S(e,function(e){var t="";return e>65535&&(e-=65536,t+=w(e>>>10&1023|55296),e=56320|1023&e),t+=w(e),t}).join("")}function C(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:s}function T(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function N(e,t,n){var r=0;for(e=n?_(e/d):e>>1,e+=_(e/t);e>y*c>>1;r+=s)e=_(e/y);return _(r+(y+1)*e/(e+u))}function R(e){var t,n,r,i,a,u,d,m,g,v,b=[],y=e.length,w=0,S=p,k=h;for(n=e.lastIndexOf(f),n<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&E("not-basic"),b.push(e.charCodeAt(r));for(i=n>0?n+1:0;i<y;){for(a=w,u=1,d=s;;d+=s){if(i>=y&&E("invalid-input"),m=C(e.charCodeAt(i++)),(m>=s||m>_((o-w)/u))&&E("overflow"),w+=m*u,g=d<=k?l:d>=k+c?c:d-k,m<g)break;v=s-g,u>_(o/v)&&E("overflow"),u*=v}t=b.length+1,k=N(w-a,t,0==a),_(w/t)>o-S&&E("overflow"),S+=_(w/t),w%=t,b.splice(w++,0,S)}return A(b)}function O(e){var t,n,r,i,a,u,d,m,g,v,b,y,S,k,A,C=[];for(e=x(e),y=e.length,t=p,n=0,a=h,u=0;u<y;++u)b=e[u],b<128&&C.push(w(b));r=i=C.length,i&&C.push(f);while(r<y){for(d=o,u=0;u<y;++u)b=e[u],b>=t&&b<d&&(d=b);for(S=r+1,d-t>_((o-n)/S)&&E("overflow"),n+=(d-t)*S,t=d,u=0;u<y;++u)if(b=e[u],b<t&&++n>o&&E("overflow"),b==t){for(m=n,g=s;;g+=s){if(v=g<=a?l:g>=a+c?c:g-a,m<v)break;A=m-v,k=s-v,C.push(w(T(v+A%k,0))),m=_(A/k)}C.push(w(T(m,0))),a=N(n,S,r==i),n=0,++r}++n,++t}return C.join("")}function I(e){return k(e,function(e){return m.test(e)?R(e.slice(4).toLowerCase()):e})}function L(e){return k(e,function(e){return g.test(e)?"xn--"+O(e):e})}a={version:"1.4.1",ucs2:{decode:x,encode:A},decode:R,encode:O,toASCII:L,toUnicode:I},r=function(){return a}.call(t,n,t,e),void 0===r||(e.exports=r)}()},75442:function(e,t,n){"use strict";var r=n(62113);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var a=/^([a-z0-9.+-]+:)/i,o=/:[0-9]*$/,s=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,l=["<",">",'"',"`"," ","\r","\n","\t"],c=["{","}","|","\\","^","`"].concat(l),u=["'"].concat(c),d=["%","/","?",";","#"].concat(u),h=["/","?","#"],p=255,f=/^[+a-z0-9A-Z_-]{0,63}$/,m=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,g={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},b={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=n(45810);function _(e,t,n){if(e&&"object"===typeof e&&e instanceof i)return e;var r=new i;return r.parse(e,t,n),r}function w(e){return"string"===typeof e&&(e=_(e)),e instanceof i?e.format():i.prototype.format.call(e)}function E(e,t){return _(e,!1,!0).resolve(t)}function S(e,t){return e?_(e,!1,!0).resolveObject(t):t}i.prototype.parse=function(e,t,n){if("string"!==typeof e)throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),o=-1!==i&&i<e.indexOf("#")?"?":"#",l=e.split(o),c=/\\/g;l[0]=l[0].replace(c,"/"),e=l.join(o);var _=e;if(_=_.trim(),!n&&1===e.split("#").length){var w=s.exec(_);if(w)return this.path=_,this.href=_,this.pathname=w[1],w[2]?(this.search=w[2],this.query=t?y.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var E=a.exec(_);if(E){E=E[0];var S=E.toLowerCase();this.protocol=S,_=_.substr(E.length)}if(n||E||_.match(/^\/\/[^@/]+@[^@/]+/)){var k="//"===_.substr(0,2);!k||E&&v[E]||(_=_.substr(2),this.slashes=!0)}if(!v[E]&&(k||E&&!b[E])){for(var x,A,C=-1,T=0;T<h.length;T++){var N=_.indexOf(h[T]);-1!==N&&(-1===C||N<C)&&(C=N)}A=-1===C?_.lastIndexOf("@"):_.lastIndexOf("@",C),-1!==A&&(x=_.slice(0,A),_=_.slice(A+1),this.auth=decodeURIComponent(x)),C=-1;for(T=0;T<d.length;T++){N=_.indexOf(d[T]);-1!==N&&(-1===C||N<C)&&(C=N)}-1===C&&(C=_.length),this.host=_.slice(0,C),_=_.slice(C),this.parseHost(),this.hostname=this.hostname||"";var R="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!R)for(var O=this.hostname.split(/\./),I=(T=0,O.length);T<I;T++){var L=O[T];if(L&&!L.match(f)){for(var D="",P=0,M=L.length;P<M;P++)L.charCodeAt(P)>127?D+="x":D+=L[P];if(!D.match(f)){var B=O.slice(0,T),F=O.slice(T+1),$=L.match(m);$&&(B.push($[1]),F.unshift($[2])),F.length&&(_="/"+F.join(".")+_),this.hostname=B.join(".");break}}}this.hostname.length>p?this.hostname="":this.hostname=this.hostname.toLowerCase(),R||(this.hostname=r.toASCII(this.hostname));var U=this.port?":"+this.port:"",j=this.hostname||"";this.host=j+U,this.href+=this.host,R&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==_[0]&&(_="/"+_))}if(!g[S])for(T=0,I=u.length;T<I;T++){var V=u[T];if(-1!==_.indexOf(V)){var K=encodeURIComponent(V);K===V&&(K=escape(V)),_=_.split(V).join(K)}}var G=_.indexOf("#");-1!==G&&(this.hash=_.substr(G),_=_.slice(0,G));var H=_.indexOf("?");if(-1!==H?(this.search=_.substr(H),this.query=_.substr(H+1),t&&(this.query=y.parse(this.query)),_=_.slice(0,H)):t&&(this.search="",this.query={}),_&&(this.pathname=_),b[S]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){U=this.pathname||"";var z=this.search||"";this.path=U+z}return this.href=this.format(),this},i.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",i=!1,a="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&"object"===typeof this.query&&Object.keys(this.query).length&&(a=y.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var o=this.search||a&&"?"+a||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||b[t])&&!1!==i?(i="//"+(i||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):i||(i=""),r&&"#"!==r.charAt(0)&&(r="#"+r),o&&"?"!==o.charAt(0)&&(o="?"+o),n=n.replace(/[?#]/g,function(e){return encodeURIComponent(e)}),o=o.replace("#","%23"),t+i+n+o+r},i.prototype.resolve=function(e){return this.resolveObject(_(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if("string"===typeof e){var t=new i;t.parse(e,!1,!0),e=t}for(var n=new i,r=Object.keys(this),a=0;a<r.length;a++){var o=r[a];n[o]=this[o]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),l=0;l<s.length;l++){var c=s[l];"protocol"!==c&&(n[c]=e[c])}return b[n.protocol]&&n.hostname&&!n.pathname&&(n.pathname="/",n.path=n.pathname),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!b[e.protocol]){for(var u=Object.keys(e),d=0;d<u.length;d++){var h=u[d];n[h]=e[h]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||v[e.protocol])n.pathname=e.pathname;else{var p=(e.pathname||"").split("/");while(p.length&&!(e.host=p.shift()));e.host||(e.host=""),e.hostname||(e.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),n.pathname=p.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var f=n.pathname||"",m=n.search||"";n.path=f+m}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var g=n.pathname&&"/"===n.pathname.charAt(0),y=e.host||e.pathname&&"/"===e.pathname.charAt(0),_=y||g||n.host&&e.pathname,w=_,E=n.pathname&&n.pathname.split("/")||[],S=(p=e.pathname&&e.pathname.split("/")||[],n.protocol&&!b[n.protocol]);if(S&&(n.hostname="",n.port=null,n.host&&(""===E[0]?E[0]=n.host:E.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===p[0]?p[0]=e.host:p.unshift(e.host)),e.host=null),_=_&&(""===p[0]||""===E[0])),y)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,E=p;else if(p.length)E||(E=[]),E.pop(),E=E.concat(p),n.search=e.search,n.query=e.query;else if(null!=e.search){if(S){n.host=E.shift(),n.hostname=n.host;var k=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");k&&(n.auth=k.shift(),n.hostname=k.shift(),n.host=n.hostname)}return n.search=e.search,n.query=e.query,null===n.pathname&&null===n.search||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!E.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var x=E.slice(-1)[0],A=(n.host||e.host||E.length>1)&&("."===x||".."===x)||""===x,C=0,T=E.length;T>=0;T--)x=E[T],"."===x?E.splice(T,1):".."===x?(E.splice(T,1),C++):C&&(E.splice(T,1),C--);if(!_&&!w)for(;C--;C)E.unshift("..");!_||""===E[0]||E[0]&&"/"===E[0].charAt(0)||E.unshift(""),A&&"/"!==E.join("/").substr(-1)&&E.push("");var N=""===E[0]||E[0]&&"/"===E[0].charAt(0);if(S){n.hostname=N?"":E.length?E.shift():"",n.host=n.hostname;k=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");k&&(n.auth=k.shift(),n.hostname=k.shift(),n.host=n.hostname)}return _=_||n.host&&E.length,_&&!N&&E.unshift(""),E.length>0?n.pathname=E.join("/"):(n.pathname=null,n.path=null),null===n.pathname&&null===n.search||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},i.prototype.parseHost=function(){var e=this.host,t=o.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},t.parse=_,t.resolve=E,t.resolveObject=S,t.format=w,t.Url=i},66732:function(e,t,n){var r=n(4364);function i(e,t){if(a("noDeprecation"))return e;var n=!1;function i(){if(!n){if(a("throwDeprecation"))throw new Error(t);a("traceDeprecation")?r.trace(t):r.warn(t),n=!0}return e.apply(this,arguments)}return i}function a(e){try{if(!n.g.localStorage)return!1}catch(r){return!1}var t=n.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=i},95272:function(e){e.exports=function(e){return e&&"object"===typeof e&&"function"===typeof e.copy&&"function"===typeof e.fill&&"function"===typeof e.readUInt8}},51531:function(e,t,n){"use strict";var r=n(55387),i=n(2625),a=n(52730),o=n(95943);function s(e){return e.call.bind(e)}var l="undefined"!==typeof BigInt,c="undefined"!==typeof Symbol,u=s(Object.prototype.toString),d=s(Number.prototype.valueOf),h=s(String.prototype.valueOf),p=s(Boolean.prototype.valueOf);if(l)var f=s(BigInt.prototype.valueOf);if(c)var m=s(Symbol.prototype.valueOf);function g(e,t){if("object"!==typeof e)return!1;try{return t(e),!0}catch(n){return!1}}function v(e){return"undefined"!==typeof Promise&&e instanceof Promise||null!==e&&"object"===typeof e&&"function"===typeof e.then&&"function"===typeof e.catch}function b(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):o(e)||j(e)}function y(e){return"Uint8Array"===a(e)}function _(e){return"Uint8ClampedArray"===a(e)}function w(e){return"Uint16Array"===a(e)}function E(e){return"Uint32Array"===a(e)}function S(e){return"Int8Array"===a(e)}function k(e){return"Int16Array"===a(e)}function x(e){return"Int32Array"===a(e)}function A(e){return"Float32Array"===a(e)}function C(e){return"Float64Array"===a(e)}function T(e){return"BigInt64Array"===a(e)}function N(e){return"BigUint64Array"===a(e)}function R(e){return"[object Map]"===u(e)}function O(e){return"undefined"!==typeof Map&&(R.working?R(e):e instanceof Map)}function I(e){return"[object Set]"===u(e)}function L(e){return"undefined"!==typeof Set&&(I.working?I(e):e instanceof Set)}function D(e){return"[object WeakMap]"===u(e)}function P(e){return"undefined"!==typeof WeakMap&&(D.working?D(e):e instanceof WeakMap)}function M(e){return"[object WeakSet]"===u(e)}function B(e){return M(e)}function F(e){return"[object ArrayBuffer]"===u(e)}function $(e){return"undefined"!==typeof ArrayBuffer&&(F.working?F(e):e instanceof ArrayBuffer)}function U(e){return"[object DataView]"===u(e)}function j(e){return"undefined"!==typeof DataView&&(U.working?U(e):e instanceof DataView)}t.isArgumentsObject=r,t.isGeneratorFunction=i,t.isTypedArray=o,t.isPromise=v,t.isArrayBufferView=b,t.isUint8Array=y,t.isUint8ClampedArray=_,t.isUint16Array=w,t.isUint32Array=E,t.isInt8Array=S,t.isInt16Array=k,t.isInt32Array=x,t.isFloat32Array=A,t.isFloat64Array=C,t.isBigInt64Array=T,t.isBigUint64Array=N,R.working="undefined"!==typeof Map&&R(new Map),t.isMap=O,I.working="undefined"!==typeof Set&&I(new Set),t.isSet=L,D.working="undefined"!==typeof WeakMap&&D(new WeakMap),t.isWeakMap=P,M.working="undefined"!==typeof WeakSet&&M(new WeakSet),t.isWeakSet=B,F.working="undefined"!==typeof ArrayBuffer&&F(new ArrayBuffer),t.isArrayBuffer=$,U.working="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof DataView&&U(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=j;var V="undefined"!==typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function K(e){return"[object SharedArrayBuffer]"===u(e)}function G(e){return"undefined"!==typeof V&&("undefined"===typeof K.working&&(K.working=K(new V)),K.working?K(e):e instanceof V)}function H(e){return"[object AsyncFunction]"===u(e)}function z(e){return"[object Map Iterator]"===u(e)}function q(e){return"[object Set Iterator]"===u(e)}function X(e){return"[object Generator]"===u(e)}function W(e){return"[object WebAssembly.Module]"===u(e)}function Y(e){return g(e,d)}function Q(e){return g(e,h)}function J(e){return g(e,p)}function Z(e){return l&&g(e,f)}function ee(e){return c&&g(e,m)}function te(e){return Y(e)||Q(e)||J(e)||Z(e)||ee(e)}function ne(e){return"undefined"!==typeof Uint8Array&&($(e)||G(e))}t.isSharedArrayBuffer=G,t.isAsyncFunction=H,t.isMapIterator=z,t.isSetIterator=q,t.isGeneratorObject=X,t.isWebAssemblyCompiledModule=W,t.isNumberObject=Y,t.isStringObject=Q,t.isBooleanObject=J,t.isBigIntObject=Z,t.isSymbolObject=ee,t.isBoxedPrimitive=te,t.isAnyArrayBuffer=ne,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})},49208:function(e,t,n){var r=n(39907),i=n(4364),a=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},o=/%[sdj%]/g;t.format=function(e){if(!x(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(u(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,a=String(e).replace(o,function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return e}}),s=r[n];n<i;s=r[++n])E(s)||!N(s)?a+=" "+s:a+=" "+u(s);return a},t.deprecate=function(e,n){if("undefined"!==typeof r&&!0===r.noDeprecation)return e;if("undefined"===typeof r)return function(){return t.deprecate(e,n).apply(this,arguments)};var a=!1;function o(){if(!a){if(r.throwDeprecation)throw new Error(n);r.traceDeprecation?i.trace(n):i.error(n),a=!0}return e.apply(this,arguments)}return o};var s={},l=/^$/;if({NODE_ENV:"production",BASE_URL:"/"}.NODE_DEBUG){var c={NODE_ENV:"production",BASE_URL:"/"}.NODE_DEBUG;c=c.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),l=new RegExp("^"+c+"$","i")}function u(e,n){var r={seen:[],stylize:h};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),w(n)?r.showHidden=n:n&&t._extend(r,n),C(r.showHidden)&&(r.showHidden=!1),C(r.depth)&&(r.depth=2),C(r.colors)&&(r.colors=!1),C(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=d),f(r,e,r.depth)}function d(e,t){var n=u.styles[t];return n?"["+u.colors[n][0]+"m"+e+"["+u.colors[n][1]+"m":e}function h(e,t){return e}function p(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}function f(e,n,r){if(e.customInspect&&n&&I(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return x(i)||(i=f(e,i,r)),i}var a=m(e,n);if(a)return a;var o=Object.keys(n),s=p(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(n)),O(n)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return g(n);if(0===o.length){if(I(n)){var l=n.name?": "+n.name:"";return e.stylize("[Function"+l+"]","special")}if(T(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(R(n))return e.stylize(Date.prototype.toString.call(n),"date");if(O(n))return g(n)}var c,u="",d=!1,h=["{","}"];if(_(n)&&(d=!0,h=["[","]"]),I(n)){var w=n.name?": "+n.name:"";u=" [Function"+w+"]"}return T(n)&&(u=" "+RegExp.prototype.toString.call(n)),R(n)&&(u=" "+Date.prototype.toUTCString.call(n)),O(n)&&(u=" "+g(n)),0!==o.length||d&&0!=n.length?r<0?T(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),c=d?v(e,n,r,s,o):o.map(function(t){return b(e,n,r,s,t,d)}),e.seen.pop(),y(c,u,h)):h[0]+u+h[1]}function m(e,t){if(C(t))return e.stylize("undefined","undefined");if(x(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return k(t)?e.stylize(""+t,"number"):w(t)?e.stylize(""+t,"boolean"):E(t)?e.stylize("null","null"):void 0}function g(e){return"["+Error.prototype.toString.call(e)+"]"}function v(e,t,n,r,i){for(var a=[],o=0,s=t.length;o<s;++o)F(t,String(o))?a.push(b(e,t,n,r,String(o),!0)):a.push("");return i.forEach(function(i){i.match(/^\d+$/)||a.push(b(e,t,n,r,i,!0))}),a}function b(e,t,n,r,i,a){var o,s,l;if(l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]},l.get?s=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(s=e.stylize("[Setter]","special")),F(r,i)||(o="["+i+"]"),s||(e.seen.indexOf(l.value)<0?(s=E(n)?f(e,l.value,null):f(e,l.value,n-1),s.indexOf("\n")>-1&&(s=a?s.split("\n").map(function(e){return" "+e}).join("\n").slice(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n"))):s=e.stylize("[Circular]","special")),C(o)){if(a&&i.match(/^\d+$/))return s;o=JSON.stringify(""+i),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+s}function y(e,t,n){var r=e.reduce(function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0);return r>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function _(e){return Array.isArray(e)}function w(e){return"boolean"===typeof e}function E(e){return null===e}function S(e){return null==e}function k(e){return"number"===typeof e}function x(e){return"string"===typeof e}function A(e){return"symbol"===typeof e}function C(e){return void 0===e}function T(e){return N(e)&&"[object RegExp]"===D(e)}function N(e){return"object"===typeof e&&null!==e}function R(e){return N(e)&&"[object Date]"===D(e)}function O(e){return N(e)&&("[object Error]"===D(e)||e instanceof Error)}function I(e){return"function"===typeof e}function L(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e}function D(e){return Object.prototype.toString.call(e)}function P(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!s[e])if(l.test(e)){var n=r.pid;s[e]=function(){var r=t.format.apply(t,arguments);i.error("%s %d: %s",e,n,r)}}else s[e]=function(){};return s[e]},t.inspect=u,u.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]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=n(51531),t.isArray=_,t.isBoolean=w,t.isNull=E,t.isNullOrUndefined=S,t.isNumber=k,t.isString=x,t.isSymbol=A,t.isUndefined=C,t.isRegExp=T,t.types.isRegExp=T,t.isObject=N,t.isDate=R,t.types.isDate=R,t.isError=O,t.types.isNativeError=O,t.isFunction=I,t.isPrimitive=L,t.isBuffer=n(95272);var M=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function B(){var e=new Date,t=[P(e.getHours()),P(e.getMinutes()),P(e.getSeconds())].join(":");return[e.getDate(),M[e.getMonth()],t].join(" ")}function F(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){i.log("%s - %s",B(),t.format.apply(t,arguments))},t.inherits=n(35615),t._extend=function(e,t){if(!t||!N(t))return e;var n=Object.keys(t),r=n.length;while(r--)e[n[r]]=t[n[r]];return e};var $="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function U(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}function j(e){if("function"!==typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);var i=t.pop();if("function"!==typeof i)throw new TypeError("The last argument must be of type Function");var a=this,o=function(){return i.apply(a,arguments)};e.apply(this,t).then(function(e){r.nextTick(o.bind(null,null,e))},function(e){r.nextTick(U.bind(null,e,o))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,a(e)),t}t.promisify=function(e){if("function"!==typeof e)throw new TypeError('The "original" argument must be of type Function');if($&&e[$]){var t=e[$];if("function"!==typeof t)throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,$,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise(function(e,r){t=e,n=r}),i=[],a=0;a<arguments.length;a++)i.push(arguments[a]);i.push(function(e,r){e?n(e):t(r)});try{e.apply(this,i)}catch(o){n(o)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),$&&Object.defineProperty(t,$,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,a(e))},t.promisify.custom=$,t.callbackify=j},47433:function(e,t){"use strict";t.A=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n}},11321:function(e,t,n){var r=n(11748);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("fc688d76",r,!0,{sourceMap:!1,shadowMode:!1})},9252:function(e,t,n){var r=n(28913);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("407ab32e",r,!0,{sourceMap:!1,shadowMode:!1})},63864:function(e,t,n){var r=n(96696);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("695df0fd",r,!0,{sourceMap:!1,shadowMode:!1})},68814:function(e,t,n){var r=n(36942);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("3b3abb59",r,!0,{sourceMap:!1,shadowMode:!1})},76543:function(e,t,n){var r=n(88831);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("599be99e",r,!0,{sourceMap:!1,shadowMode:!1})},65210:function(e,t,n){var r=n(49082);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("9cf81444",r,!0,{sourceMap:!1,shadowMode:!1})},2120:function(e,t,n){var r=n(60168);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("0ee8f660",r,!0,{sourceMap:!1,shadowMode:!1})},9722:function(e,t,n){var r=n(31354);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("e65ca0d2",r,!0,{sourceMap:!1,shadowMode:!1})},83520:function(e,t,n){var r=n(53184);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("8f19f75e",r,!0,{sourceMap:!1,shadowMode:!1})},1483:function(e,t,n){var r=n(86379);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("694cb007",r,!0,{sourceMap:!1,shadowMode:!1})},45801:function(e,t,n){var r=n(33289);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("6c712fba",r,!0,{sourceMap:!1,shadowMode:!1})},96727:function(e,t,n){var r=n(40791);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("97d0686a",r,!0,{sourceMap:!1,shadowMode:!1})},95781:function(e,t,n){var r=n(32549);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("8cfbd4be",r,!0,{sourceMap:!1,shadowMode:!1})},21255:function(e,t,n){var r=n(3367);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("631276d2",r,!0,{sourceMap:!1,shadowMode:!1})},91745:function(e,t,n){var r=n(17838);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("bd4ff38a",r,!0,{sourceMap:!1,shadowMode:!1})},39311:function(e,t,n){var r=n(31503);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("75ea2727",r,!0,{sourceMap:!1,shadowMode:!1})},39066:function(e,t,n){var r=n(6618);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("58c7ad54",r,!0,{sourceMap:!1,shadowMode:!1})},5947:function(e,t,n){var r=n(80123);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("6cd849b4",r,!0,{sourceMap:!1,shadowMode:!1})},91532:function(e,t,n){var r=n(80172);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("af8bca74",r,!0,{sourceMap:!1,shadowMode:!1})},97387:function(e,t,n){var r=n(37899);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("6e743df0",r,!0,{sourceMap:!1,shadowMode:!1})},82148:function(e,t,n){var r=n(79652);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("4c933aaa",r,!0,{sourceMap:!1,shadowMode:!1})},59918:function(e,t,n){var r=n(51758);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("a7280aee",r,!0,{sourceMap:!1,shadowMode:!1})},95304:function(e,t,n){var r=n(7752);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("4f9ca22f",r,!0,{sourceMap:!1,shadowMode:!1})},11466:function(e,t,n){var r=n(67722);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("432696ca",r,!0,{sourceMap:!1,shadowMode:!1})},32435:function(e,t,n){var r=n(9299);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("3df338b8",r,!0,{sourceMap:!1,shadowMode:!1})},45978:function(e,t,n){var r=n(20602);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("0f55430e",r,!0,{sourceMap:!1,shadowMode:!1})},47668:function(e,t,n){var r=n(71124);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("017ed6a8",r,!0,{sourceMap:!1,shadowMode:!1})},91565:function(e,t,n){var r=n(37325);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("8a1348ea",r,!0,{sourceMap:!1,shadowMode:!1})},72674:function(e,t,n){var r=n(83234);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("ec2b28d2",r,!0,{sourceMap:!1,shadowMode:!1})},40876:function(e,t,n){var r=n(73132);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("0685007a",r,!0,{sourceMap:!1,shadowMode:!1})},60513:function(e,t,n){var r=n(19201);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("9eb1273a",r,!0,{sourceMap:!1,shadowMode:!1})},60580:function(e,t,n){var r=n(7844);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("4b65b293",r,!0,{sourceMap:!1,shadowMode:!1})},1962:function(e,t,n){var r=n(98570);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("2853bda7",r,!0,{sourceMap:!1,shadowMode:!1})},31782:function(e,t,n){var r=n(51558);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("4c7f143f",r,!0,{sourceMap:!1,shadowMode:!1})},24025:function(e,t,n){var r=n(4025);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("4a306ce8",r,!0,{sourceMap:!1,shadowMode:!1})},4241:function(e,t,n){var r=n(1777);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("c78059ee",r,!0,{sourceMap:!1,shadowMode:!1})},17299:function(e,t,n){var r=n(94739);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("79740018",r,!0,{sourceMap:!1,shadowMode:!1})},21005:function(e,t,n){var r=n(4749);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("1403c7a4",r,!0,{sourceMap:!1,shadowMode:!1})},26550:function(e,t,n){var r=n(2582);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("23d3cfb4",r,!0,{sourceMap:!1,shadowMode:!1})},63048:function(e,t,n){var r=n(49576);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("18a58a30",r,!0,{sourceMap:!1,shadowMode:!1})},78805:function(e,t,n){var r=n(23541);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("cb97d524",r,!0,{sourceMap:!1,shadowMode:!1})},90785:function(e,t,n){var r=n(93345);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("2a83b2ec",r,!0,{sourceMap:!1,shadowMode:!1})},36424:function(e,t,n){var r=n(74184);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("2ed8cdd2",r,!0,{sourceMap:!1,shadowMode:!1})},347:function(e,t,n){var r=n(93147);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("5438fb76",r,!0,{sourceMap:!1,shadowMode:!1})},85447:function(e,t,n){var r=n(54343);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("0e5d7664",r,!0,{sourceMap:!1,shadowMode:!1})},25182:function(e,t,n){var r=n(414);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("72627b6e",r,!0,{sourceMap:!1,shadowMode:!1})},94068:function(e,t,n){var r=n(6772);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("2c2cad9d",r,!0,{sourceMap:!1,shadowMode:!1})},85547:function(e,t,n){var r=n(97867);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("29fee1ed",r,!0,{sourceMap:!1,shadowMode:!1})},15826:function(e,t,n){var r=n(13650);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("810e8806",r,!0,{sourceMap:!1,shadowMode:!1})},95301:function(e,t,n){var r=n(61349);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("72d8f930",r,!0,{sourceMap:!1,shadowMode:!1})},53958:function(e,t,n){var r=n(61446);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("24ee7e78",r,!0,{sourceMap:!1,shadowMode:!1})},56891:function(e,t,n){var r=n(21640);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("55c75678",r,!0,{sourceMap:!1,shadowMode:!1})},60253:function(e,t,n){var r=n(25309);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("1594bc76",r,!0,{sourceMap:!1,shadowMode:!1})},48587:function(e,t,n){var r=n(90539);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("4a3eb01a",r,!0,{sourceMap:!1,shadowMode:!1})},57704:function(e,t,n){var r=n(37896);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("5f195cd8",r,!0,{sourceMap:!1,shadowMode:!1})},97876:function(e,t,n){var r=n(50612);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("4cdee72e",r,!0,{sourceMap:!1,shadowMode:!1})},47383:function(e,t,n){var r=n(4055);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("1a53d188",r,!0,{sourceMap:!1,shadowMode:!1})},37915:function(e,t,n){var r=n(82875);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("9ccfdb8e",r,!0,{sourceMap:!1,shadowMode:!1})},60147:function(e,t,n){var r=n(28403);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("29da7f28",r,!0,{sourceMap:!1,shadowMode:!1})},4729:function(e,t,n){var r=n(96665);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("ae7353d8",r,!0,{sourceMap:!1,shadowMode:!1})},2578:function(e,t,n){var r=n(86226);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("27072055",r,!0,{sourceMap:!1,shadowMode:!1})},87968:function(e,t,n){var r=n(83904);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("14dcb12e",r,!0,{sourceMap:!1,shadowMode:!1})},97473:function(e,t,n){var r=n(90369);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("6bf8403c",r,!0,{sourceMap:!1,shadowMode:!1})},97119:function(e,t,n){var r=n(65727);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("1ea72460",r,!0,{sourceMap:!1,shadowMode:!1})},54436:function(e,t,n){var r=n(77124);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("79071031",r,!0,{sourceMap:!1,shadowMode:!1})},70194:function(e,t,n){var r=n(47794);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("4d3bf845",r,!0,{sourceMap:!1,shadowMode:!1})},94210:function(e,t,n){var r=n(67042);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("cf5d7c26",r,!0,{sourceMap:!1,shadowMode:!1})},857:function(e,t,n){var r=n(41561);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("362ba012",r,!0,{sourceMap:!1,shadowMode:!1})},81976:function(e,t,n){var r=n(93560);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("84d9b866",r,!0,{sourceMap:!1,shadowMode:!1})},4901:function(e,t,n){var r=n(32101);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("6a1f327e",r,!0,{sourceMap:!1,shadowMode:!1})},45:function(e,t,n){var r=n(85133);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("4518b4a0",r,!0,{sourceMap:!1,shadowMode:!1})},40930:function(e,t,n){var r=n(66882);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("fc30dc80",r,!0,{sourceMap:!1,shadowMode:!1})},20424:function(e,t,n){var r=n(73448);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("443a131a",r,!0,{sourceMap:!1,shadowMode:!1})},53575:function(e,t,n){var r=n(67271);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("18b320ff",r,!0,{sourceMap:!1,shadowMode:!1})},2788:function(e,t,n){var r=n(47460);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("cdd8b4d4",r,!0,{sourceMap:!1,shadowMode:!1})},6378:function(e,t,n){var r=n(26314);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("266436be",r,!0,{sourceMap:!1,shadowMode:!1})},32254:function(e,t,n){var r=n(38238);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("0c4f3662",r,!0,{sourceMap:!1,shadowMode:!1})},7428:function(e,t,n){var r=n(5828);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("12ab8166",r,!0,{sourceMap:!1,shadowMode:!1})},85738:function(e,t,n){var r=n(62922);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("f24ae60e",r,!0,{sourceMap:!1,shadowMode:!1})},88178:function(e,t,n){var r=n(83858);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("6bf8e79c",r,!0,{sourceMap:!1,shadowMode:!1})},38241:function(e,t,n){var r=n(58625);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("8eec5a00",r,!0,{sourceMap:!1,shadowMode:!1})},63607:function(e,t,n){var r=n(38276);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("45c3d184",r,!0,{sourceMap:!1,shadowMode:!1})},34941:function(e,t,n){var r=n(38589);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("8fa42958",r,!0,{sourceMap:!1,shadowMode:!1})},44392:function(e,t,n){var r=n(25832);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("5e200f3d",r,!0,{sourceMap:!1,shadowMode:!1})},68648:function(e,t,n){var r=n(28232);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("64fbc884",r,!0,{sourceMap:!1,shadowMode:!1})},7156:function(e,t,n){var r=n(42836);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("4eac63c4",r,!0,{sourceMap:!1,shadowMode:!1})},81133:function(e,t,n){var r=n(32397);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("9c2e1430",r,!0,{sourceMap:!1,shadowMode:!1})},99447:function(e,t,n){var r=n(95671);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("61b2cbac",r,!0,{sourceMap:!1,shadowMode:!1})},28022:function(e,t,n){var r=n(71286);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("4853f6b7",r,!0,{sourceMap:!1,shadowMode:!1})},12214:function(e,t,n){var r=n(59766);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("2e54c984",r,!0,{sourceMap:!1,shadowMode:!1})},25916:function(e,t,n){var r=n(78268);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("07667e63",r,!0,{sourceMap:!1,shadowMode:!1})},36261:function(e,t,n){var r=n(99365);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("30c04df4",r,!0,{sourceMap:!1,shadowMode:!1})},13643:function(e,t,n){var r=n(28811);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("096416cc",r,!0,{sourceMap:!1,shadowMode:!1})},97369:function(e,t,n){var r=n(43481);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("7b371db0",r,!0,{sourceMap:!1,shadowMode:!1})},52690:function(e,t,n){var r=n(45042);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("b3512bfa",r,!0,{sourceMap:!1,shadowMode:!1})},23179:function(e,t,n){var r=n(26155);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("733d4f24",r,!0,{sourceMap:!1,shadowMode:!1})},89923:function(e,t,n){var r=n(14531);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("be684fb0",r,!0,{sourceMap:!1,shadowMode:!1})},33938:function(e,t,n){var r=n(37746);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("4a1f6241",r,!0,{sourceMap:!1,shadowMode:!1})},21223:function(e,t,n){var r=n(86951);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("4a46f6fd",r,!0,{sourceMap:!1,shadowMode:!1})},21246:function(e,t,n){var r=n(53982);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("dae98eb0",r,!0,{sourceMap:!1,shadowMode:!1})},78213:function(e,t,n){var r=n(66181);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("39204982",r,!0,{sourceMap:!1,shadowMode:!1})},78267:function(e,t,n){var r=n(57051);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("1c3f326c",r,!0,{sourceMap:!1,shadowMode:!1})},3951:function(e,t,n){var r=n(30735);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("02cfaefa",r,!0,{sourceMap:!1,shadowMode:!1})},86427:function(e,t,n){var r=n(77851);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("a824eb0c",r,!0,{sourceMap:!1,shadowMode:!1})},207:function(e,t,n){var r=n(32751);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("96528276",r,!0,{sourceMap:!1,shadowMode:!1})},99811:function(e,t,n){var r=n(27363);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("cb6e0f64",r,!0,{sourceMap:!1,shadowMode:!1})},71203:function(e,t,n){var r=n(579);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("72054a5a",r,!0,{sourceMap:!1,shadowMode:!1})},47497:function(e,t,n){var r=n(78761);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("31859628",r,!0,{sourceMap:!1,shadowMode:!1})},32464:function(e,t,n){var r=n(52304);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("799fe399",r,!0,{sourceMap:!1,shadowMode:!1})},44166:function(e,t,n){var r=n(72326);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("f12b7872",r,!0,{sourceMap:!1,shadowMode:!1})},49608:function(e,t,n){var r=n(65320);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("73d296b4",r,!0,{sourceMap:!1,shadowMode:!1})},72001:function(e,t,n){var r=n(64065);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("9763166c",r,!0,{sourceMap:!1,shadowMode:!1})},83301:function(e,t,n){var r=n(38245);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("5e3edba4",r,!0,{sourceMap:!1,shadowMode:!1})},15324:function(e,t,n){var r=n(22972);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("8d662962",r,!0,{sourceMap:!1,shadowMode:!1})},36386:function(e,t,n){var r=n(22434);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("9f8a893a",r,!0,{sourceMap:!1,shadowMode:!1})},25737:function(e,t,n){var r=n(11881);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("50d7e800",r,!0,{sourceMap:!1,shadowMode:!1})},8987:function(e,t,n){var r=n(12123);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("1cbb7bbe",r,!0,{sourceMap:!1,shadowMode:!1})},56554:function(e,t,n){var r=n(64970);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("6ce52309",r,!0,{sourceMap:!1,shadowMode:!1})},75280:function(e,t,n){var r=n(76592);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("c416a7e2",r,!0,{sourceMap:!1,shadowMode:!1})},60226:function(e,t,n){var r=n(75106);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("51f6978c",r,!0,{sourceMap:!1,shadowMode:!1})},41158:function(e,t,n){var r=n(81945);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("2715a0f6",r,!0,{sourceMap:!1,shadowMode:!1})},29056:function(e,t,n){var r=n(66208);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("7f55fbee",r,!0,{sourceMap:!1,shadowMode:!1})},18955:function(e,t,n){var r=n(89009);r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals);var i=n(74825).A;i("1a282717",r,!0,{sourceMap:!1,shadowMode:!1})},74825:function(e,t,n){"use strict";function r(e,t){for(var n=[],r={},i=0;i<t.length;i++){var a=t[i],o=a[0],s=a[1],l=a[2],c=a[3],u={id:e+":"+i,css:s,media:l,sourceMap:c};r[o]?r[o].parts.push(u):n.push(r[o]={id:o,parts:[u]})}return n}n.d(t,{A:function(){return f}});var i="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!i)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var a={},o=i&&(document.head||document.getElementsByTagName("head")[0]),s=null,l=0,c=!1,u=function(){},d=null,h="data-vue-ssr-id",p="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function f(e,t,n,i){c=n,d=i||{};var o=r(e,t);return m(o),function(t){for(var n=[],i=0;i<o.length;i++){var s=o[i],l=a[s.id];l.refs--,n.push(l)}t?(o=r(e,t),m(o)):o=[];for(i=0;i<n.length;i++){l=n[i];if(0===l.refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete a[l.id]}}}}function m(e){for(var t=0;t<e.length;t++){var n=e[t],r=a[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;i++)r.parts.push(v(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var o=[];for(i=0;i<n.parts.length;i++)o.push(v(n.parts[i]));a[n.id]={id:n.id,refs:1,parts:o}}}}function g(){var e=document.createElement("style");return e.type="text/css",o.appendChild(e),e}function v(e){var t,n,r=document.querySelector("style["+h+'~="'+e.id+'"]');if(r){if(c)return u;r.parentNode.removeChild(r)}if(p){var i=l++;r=s||(s=g()),t=y.bind(null,r,i,!1),n=y.bind(null,r,i,!0)}else r=g(),t=_.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}var b=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}();function y(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=b(t,i);else{var a=document.createTextNode(i),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(a,o[t]):e.appendChild(a)}}function _(e,t){var n=t.css,r=t.media,i=t.sourceMap;if(r&&e.setAttribute("media",r),d.ssrId&&e.setAttribute(h,t.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{while(e.firstChild)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}},65359:function(e,t,n){"use strict";n.d(t,{i0:function(){return ie},L8:function(){return re},aH:function(){return ne},Pj:function(){return g}});var r=n(9274);function i(){return a().__VUE_DEVTOOLS_GLOBAL_HOOK__}function a(){return"undefined"!==typeof navigator&&"undefined"!==typeof window?window:"undefined"!==typeof globalThis?globalThis:{}}const o="function"===typeof Proxy,s="devtools-plugin:setup",l="plugin:settings:set";let c,u;function d(){var e;return void 0!==c||("undefined"!==typeof window&&window.performance?(c=!0,u=window.performance):"undefined"!==typeof globalThis&&(null===(e=globalThis.perf_hooks)||void 0===e?void 0:e.performance)?(c=!0,u=globalThis.perf_hooks.performance):c=!1),c}function h(){return d()?u.now():Date.now()}class p{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const n={};if(e.settings)for(const o in e.settings){const t=e.settings[o];n[o]=t.defaultValue}const r=`__vue-devtools-plugin-settings__${e.id}`;let i=Object.assign({},n);try{const e=localStorage.getItem(r),t=JSON.parse(e);Object.assign(i,t)}catch(a){}this.fallbacks={getSettings(){return i},setSettings(e){try{localStorage.setItem(r,JSON.stringify(e))}catch(a){}i=e},now(){return h()}},t&&t.on(l,(e,t)=>{e===this.plugin.id&&this.fallbacks.setSettings(t)}),this.proxiedOn=new Proxy({},{get:(e,t)=>this.target?this.target.on[t]:(...e)=>{this.onQueue.push({method:t,args:e})}}),this.proxiedTarget=new Proxy({},{get:(e,t)=>this.target?this.target[t]:"on"===t?this.proxiedOn:Object.keys(this.fallbacks).includes(t)?(...e)=>(this.targetQueue.push({method:t,args:e,resolve:()=>{}}),this.fallbacks[t](...e)):(...e)=>new Promise(n=>{this.targetQueue.push({method:t,args:e,resolve:n})})})}async setRealTarget(e){this.target=e;for(const t of this.onQueue)this.target.on[t.method](...t.args);for(const t of this.targetQueue)t.resolve(await this.target[t.method](...t.args))}}function f(e,t){const n=e,r=a(),l=i(),c=o&&n.enableEarlyProxy;if(!l||!r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&c){const e=c?new p(n,l):null,i=r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[];i.push({pluginDescriptor:n,setupFn:t,proxy:e}),e&&t(e.proxiedTarget)}else l.emit(s,e,t)}n(4364);
|
||
/*!
|
||
* vuex v4.1.0
|
||
* (c) 2022 Evan You
|
||
* @license MIT
|
||
*/var m="store";function g(e){return void 0===e&&(e=null),(0,r.inject)(null!==e?e:m)}function v(e,t){Object.keys(e).forEach(function(n){return t(e[n],n)})}function b(e){return null!==e&&"object"===typeof e}function y(e){return e&&"function"===typeof e.then}function _(e,t){return function(){return e(t)}}function w(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function E(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;k(e,n,[],e._modules.root,!0),S(e,n,t)}function S(e,t,n){var i=e._state,a=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var o=e._wrappedGetters,s={},l={},c=(0,r.effectScope)(!0);c.run(function(){v(o,function(t,n){s[n]=_(t,e),l[n]=(0,r.computed)(function(){return s[n]()}),Object.defineProperty(e.getters,n,{get:function(){return l[n].value},enumerable:!0})})}),e._state=(0,r.reactive)({data:t}),e._scope=c,e.strict&&R(e),i&&n&&e._withCommit(function(){i.data=null}),a&&a.stop()}function k(e,t,n,r,i){var a=!n.length,o=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[o],e._modulesNamespaceMap[o]=r),!a&&!i){var s=O(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit(function(){s[l]=r.state})}var c=r.context=x(e,o,n);r.forEachMutation(function(t,n){var r=o+n;C(e,r,t,c)}),r.forEachAction(function(t,n){var r=t.root?n:o+n,i=t.handler||t;T(e,r,i,c)}),r.forEachGetter(function(t,n){var r=o+n;N(e,r,t,c)}),r.forEachChild(function(r,a){k(e,t,n.concat(a),r,i)})}function x(e,t,n){var r=""===t,i={dispatch:r?e.dispatch:function(n,r,i){var a=I(n,r,i),o=a.payload,s=a.options,l=a.type;return s&&s.root||(l=t+l),e.dispatch(l,o)},commit:r?e.commit:function(n,r,i){var a=I(n,r,i),o=a.payload,s=a.options,l=a.type;s&&s.root||(l=t+l),e.commit(l,o,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return e.getters}:function(){return A(e,t)}},state:{get:function(){return O(e.state,n)}}}),i}function A(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach(function(i){if(i.slice(0,r)===t){var a=i.slice(r);Object.defineProperty(n,a,{get:function(){return e.getters[i]},enumerable:!0})}}),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function C(e,t,n,r){var i=e._mutations[t]||(e._mutations[t]=[]);i.push(function(t){n.call(e,r.state,t)})}function T(e,t,n,r){var i=e._actions[t]||(e._actions[t]=[]);i.push(function(t){var i=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t);return y(i)||(i=Promise.resolve(i)),e._devtoolHook?i.catch(function(t){throw e._devtoolHook.emit("vuex:error",t),t}):i})}function N(e,t,n,r){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)})}function R(e){(0,r.watch)(function(){return e._state.data},function(){0},{deep:!0,flush:"sync"})}function O(e,t){return t.reduce(function(e,t){return e[t]},e)}function I(e,t,n){return b(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}var L="vuex bindings",D="vuex:mutations",P="vuex:actions",M="vuex",B=0;function F(e,t){f({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[L]},function(n){n.addTimelineLayer({id:D,label:"Vuex Mutations",color:$}),n.addTimelineLayer({id:P,label:"Vuex Actions",color:$}),n.addInspector({id:M,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree(function(n){if(n.app===e&&n.inspectorId===M)if(n.filter){var r=[];H(r,t._modules.root,n.filter,""),n.rootNodes=r}else n.rootNodes=[G(t._modules.root,"")]}),n.on.getInspectorState(function(n){if(n.app===e&&n.inspectorId===M){var r=n.nodeId;A(t,r),n.state=z(X(t._modules,r),"root"===r?t.getters:t._makeLocalGettersCache,r)}}),n.on.editInspectorState(function(n){if(n.app===e&&n.inspectorId===M){var r=n.nodeId,i=n.path;"root"!==r&&(i=r.split("/").filter(Boolean).concat(i)),t._withCommit(function(){n.set(t._state.data,i,n.state.value)})}}),t.subscribe(function(e,t){var r={};e.payload&&(r.payload=e.payload),r.state=t,n.notifyComponentUpdate(),n.sendInspectorTree(M),n.sendInspectorState(M),n.addTimelineEvent({layerId:D,event:{time:Date.now(),title:e.type,data:r}})}),t.subscribeAction({before:function(e,t){var r={};e.payload&&(r.payload=e.payload),e._id=B++,e._time=Date.now(),r.state=t,n.addTimelineEvent({layerId:P,event:{time:e._time,title:e.type,groupId:e._id,subtitle:"start",data:r}})},after:function(e,t){var r={},i=Date.now()-e._time;r.duration={_custom:{type:"duration",display:i+"ms",tooltip:"Action duration",value:i}},e.payload&&(r.payload=e.payload),r.state=t,n.addTimelineEvent({layerId:P,event:{time:Date.now(),title:e.type,groupId:e._id,subtitle:"end",data:r}})}})})}var $=8702998,U=6710886,j=16777215,V={label:"namespaced",textColor:j,backgroundColor:U};function K(e){return e&&"root"!==e?e.split("/").slice(-2,-1)[0]:"Root"}function G(e,t){return{id:t||"root",label:K(t),tags:e.namespaced?[V]:[],children:Object.keys(e._children).map(function(n){return G(e._children[n],t+n+"/")})}}function H(e,t,n,r){r.includes(n)&&e.push({id:r||"root",label:r.endsWith("/")?r.slice(0,r.length-1):r||"Root",tags:t.namespaced?[V]:[]}),Object.keys(t._children).forEach(function(i){H(e,t._children[i],n,r+i+"/")})}function z(e,t,n){t="root"===n?t:t[n];var r=Object.keys(t),i={state:Object.keys(e.state).map(function(t){return{key:t,editable:!0,value:e.state[t]}})};if(r.length){var a=q(t);i.getters=Object.keys(a).map(function(e){return{key:e.endsWith("/")?K(e):e,editable:!1,value:W(function(){return a[e]})}})}return i}function q(e){var t={};return Object.keys(e).forEach(function(n){var r=n.split("/");if(r.length>1){var i=t,a=r.pop();r.forEach(function(e){i[e]||(i[e]={_custom:{value:{},display:e,tooltip:"Module",abstract:!0}}),i=i[e]._custom.value}),i[a]=W(function(){return e[n]})}else t[n]=W(function(){return e[n]})}),t}function X(e,t){var n=t.split("/").filter(function(e){return e});return n.reduce(function(e,r,i){var a=e[r];if(!a)throw new Error('Missing module "'+r+'" for path "'+t+'".');return i===n.length-1?a:a._children},"root"===t?e:e.root._children)}function W(e){try{return e()}catch(t){return t}}var Y=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"===typeof n?n():n)||{}},Q={namespaced:{configurable:!0}};Q.namespaced.get=function(){return!!this._rawModule.namespaced},Y.prototype.addChild=function(e,t){this._children[e]=t},Y.prototype.removeChild=function(e){delete this._children[e]},Y.prototype.getChild=function(e){return this._children[e]},Y.prototype.hasChild=function(e){return e in this._children},Y.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},Y.prototype.forEachChild=function(e){v(this._children,e)},Y.prototype.forEachGetter=function(e){this._rawModule.getters&&v(this._rawModule.getters,e)},Y.prototype.forEachAction=function(e){this._rawModule.actions&&v(this._rawModule.actions,e)},Y.prototype.forEachMutation=function(e){this._rawModule.mutations&&v(this._rawModule.mutations,e)},Object.defineProperties(Y.prototype,Q);var J=function(e){this.register([],e,!1)};function Z(e,t,n){if(t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return void 0;Z(e.concat(r),t.getChild(r),n.modules[r])}}J.prototype.get=function(e){return e.reduce(function(e,t){return e.getChild(t)},this.root)},J.prototype.getNamespace=function(e){var t=this.root;return e.reduce(function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")},"")},J.prototype.update=function(e){Z([],this.root,e)},J.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0);var i=new Y(t,n);if(0===e.length)this.root=i;else{var a=this.get(e.slice(0,-1));a.addChild(e[e.length-1],i)}t.modules&&v(t.modules,function(t,i){r.register(e.concat(i),t,n)})},J.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],r=t.getChild(n);r&&r.runtime&&t.removeChild(n)},J.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var ee=function(e){var t=this;void 0===e&&(e={});var n=e.plugins;void 0===n&&(n=[]);var r=e.strict;void 0===r&&(r=!1);var i=e.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new J(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=i;var a=this,o=this,s=o.dispatch,l=o.commit;this.dispatch=function(e,t){return s.call(a,e,t)},this.commit=function(e,t,n){return l.call(a,e,t,n)},this.strict=r;var c=this._modules.root.state;k(this,c,[],this._modules.root),S(this,c),n.forEach(function(e){return e(t)})},te={state:{configurable:!0}};ee.prototype.install=function(e,t){e.provide(t||m,this),e.config.globalProperties.$store=this;var n=void 0!==this._devtools&&this._devtools;n&&F(e,this)},te.state.get=function(){return this._state.data},te.state.set=function(e){0},ee.prototype.commit=function(e,t,n){var r=this,i=I(e,t,n),a=i.type,o=i.payload,s=(i.options,{type:a,payload:o}),l=this._mutations[a];l&&(this._withCommit(function(){l.forEach(function(e){e(o)})}),this._subscribers.slice().forEach(function(e){return e(s,r.state)}))},ee.prototype.dispatch=function(e,t){var n=this,r=I(e,t),i=r.type,a=r.payload,o={type:i,payload:a},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter(function(e){return e.before}).forEach(function(e){return e.before(o,n.state)})}catch(c){0}var l=s.length>1?Promise.all(s.map(function(e){return e(a)})):s[0](a);return new Promise(function(e,t){l.then(function(t){try{n._actionSubscribers.filter(function(e){return e.after}).forEach(function(e){return e.after(o,n.state)})}catch(c){0}e(t)},function(e){try{n._actionSubscribers.filter(function(e){return e.error}).forEach(function(t){return t.error(o,n.state,e)})}catch(c){0}t(e)})})}},ee.prototype.subscribe=function(e,t){return w(e,this._subscribers,t)},ee.prototype.subscribeAction=function(e,t){var n="function"===typeof e?{before:e}:e;return w(n,this._actionSubscribers,t)},ee.prototype.watch=function(e,t,n){var i=this;return(0,r.watch)(function(){return e(i.state,i.getters)},t,Object.assign({},n))},ee.prototype.replaceState=function(e){var t=this;this._withCommit(function(){t._state.data=e})},ee.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),k(this,this.state,e,this._modules.get(e),n.preserveState),S(this,this.state)},ee.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit(function(){var n=O(t.state,e.slice(0,-1));delete n[e[e.length-1]]}),E(this)},ee.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),this._modules.isRegistered(e)},ee.prototype.hotUpdate=function(e){this._modules.update(e),E(this,!0)},ee.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(ee.prototype,te);var ne=se(function(e,t){var n={};return ae(t).forEach(function(t){var r=t.key,i=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=le(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"===typeof i?i.call(this,t,n):t[i]},n[r].vuex=!0}),n}),re=(se(function(e,t){var n={};return ae(t).forEach(function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.commit;if(e){var a=le(this.$store,"mapMutations",e);if(!a)return;r=a.context.commit}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}}),n}),se(function(e,t){var n={};return ae(t).forEach(function(t){var r=t.key,i=t.val;i=e+i,n[r]=function(){if(!e||le(this.$store,"mapGetters",e))return this.$store.getters[i]},n[r].vuex=!0}),n})),ie=se(function(e,t){var n={};return ae(t).forEach(function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var a=le(this.$store,"mapActions",e);if(!a)return;r=a.context.dispatch}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}}),n});function ae(e){return oe(e)?Array.isArray(e)?e.map(function(e){return{key:e,val:e}}):Object.keys(e).map(function(t){return{key:t,val:e[t]}}):[]}function oe(e){return Array.isArray(e)||b(e)}function se(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function le(e,t,n){var r=e._modulesNamespaceMap[n];return r}},52730:function(e,t,n){"use strict";var r=n(80705),i=n(14834),a=n(28498),o=n(14607),s=n(69336),l=n(46369),c=o("Object.prototype.toString"),u=n(51913)(),d="undefined"===typeof globalThis?n.g:globalThis,h=i(),p=o("String.prototype.slice"),f=o("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},m={__proto__:null};r(h,u&&s&&l?function(e){var t=new d[e];if(Symbol.toStringTag in t&&l){var n=l(t),r=s(n,Symbol.toStringTag);if(!r&&n){var i=l(n);r=s(i,Symbol.toStringTag)}if(r&&r.get){var o=a(r.get);m["$"+e]=o}}}:function(e){var t=new d[e],n=t.slice||t.set;if(n){var r=a(n);m["$"+e]=r}});var g=function(e){var t=!1;return r(m,function(n,r){if(!t)try{"$"+n(e)===r&&(t=p(r,1))}catch(i){}}),t},v=function(e){var t=!1;return r(m,function(n,r){if(!t)try{n(e),t=p(r,1)}catch(i){}}),t};e.exports=function(e){if(!e||"object"!==typeof e)return!1;if(!u){var t=p(c(e),8,-1);return f(h,t)>-1?t:"Object"===t&&v(e)}return s?g(e):null}},93227:function(e){e.exports=n;var t=Object.prototype.hasOwnProperty;function n(){for(var e={},n=0;n<arguments.length;n++){var r=arguments[n];for(var i in r)t.call(r,i)&&(e[i]=r[i])}return e}},19199:function(e,t,n){var r={"./brand/csp/dark/rancher-logo.svg":32195,"./brand/csp/favicon.png":31365,"./brand/csp/rancher-logo.svg":42850,"./brand/federal/dark/rancher-logo.svg":70266,"./brand/federal/rancher-logo.svg":18729,"./brand/harvester/favicon.png":23561,"./brand/rgs/dark/rancher-logo.svg":85501,"./brand/rgs/rancher-logo.svg":24548,"./brand/suse/banner.svg":80307,"./brand/suse/dark/banner.svg":21458,"./brand/suse/dark/login-landscape.svg":33319,"./brand/suse/dark/rancher-logo.svg":47629,"./brand/suse/favicon.png":17089,"./brand/suse/login-landscape.svg":98040,"./brand/suse/rancher-logo.svg":8084,"./images/content/cloud-native.svg":10942,"./images/content/dark/cloud-native.svg":77667,"./images/content/dark/shield.svg":49549,"./images/content/dark/suse.svg":9902,"./images/content/shield.svg":76388,"./images/content/suse.svg":25931,"./images/featured.jpg":15447,"./images/featured/img1.jpg":25718,"./images/field-valid.svg":75054,"./images/generic-catalog.svg":39802,"./images/generic-driver.svg":76251,"./images/generic-plugin.svg":57784,"./images/key.svg":52150,"./images/pl/banner.svg":95754,"./images/pl/dark/banner.svg":9273,"./images/pl/dark/login-landscape.svg":26458,"./images/pl/dark/rancher-logo.svg":55966,"./images/pl/decoration-cloud-big-white.svg":12531,"./images/pl/decoration-ground.svg":77430,"./images/pl/error-desert-landscape.svg":21492,"./images/pl/half-logo.svg":28225,"./images/pl/harvester.png":57074,"./images/pl/harvester.svg":27782,"./images/pl/login-landscape.svg":46751,"./images/pl/rancher-logo.svg":5669,"./images/pl/setup-step-one.svg":549,"./images/pl/sunglasses.svg":38566,"./images/providers/aliyun-black.svg":87526,"./images/providers/aliyun.svg":17180,"./images/providers/aliyunecs-black.svg":75685,"./images/providers/aliyunecs.svg":38683,"./images/providers/amazonec2-black.svg":52212,"./images/providers/amazonec2.svg":16598,"./images/providers/amazoneks-black.svg":43881,"./images/providers/amazoneks.svg":90287,"./images/providers/aws.svg":59835,"./images/providers/azure-black.svg":80895,"./images/providers/azure.svg":60961,"./images/providers/azuread-black.svg":81392,"./images/providers/azuread.svg":45634,"./images/providers/azureaks-black.svg":35894,"./images/providers/azureaks.svg":40268,"./images/providers/baidu-black.svg":71351,"./images/providers/baidu.svg":47113,"./images/providers/cloudca-black.svg":50309,"./images/providers/cloudca.svg":23131,"./images/providers/cloudscale-black.svg":51773,"./images/providers/cloudscale.svg":86531,"./images/providers/custom.svg":29181,"./images/providers/digitalocean-black.svg":65988,"./images/providers/digitalocean.svg":19110,"./images/providers/equinix-black.svg":66335,"./images/providers/equinix.svg":60705,"./images/providers/exoscale.svg":12896,"./images/providers/gcp.svg":2054,"./images/providers/gke-black.svg":3405,"./images/providers/gke.svg":61939,"./images/providers/google.svg":32561,"./images/providers/googlegke-black.svg":73562,"./images/providers/googlegke.svg":97712,"./images/providers/harvester.svg":53938,"./images/providers/huaweicce-black.svg":91128,"./images/providers/huaweicce.svg":40634,"./images/providers/import.svg":28499,"./images/providers/k3s-black.svg":35671,"./images/providers/k3s.svg":85545,"./images/providers/kubernetes-black.svg":27442,"./images/providers/kubernetes.svg":9144,"./images/providers/linode.svg":75553,"./images/providers/linodelke-black.svg":96441,"./images/providers/linodelke.svg":3199,"./images/providers/local-cluster.svg":47600,"./images/providers/minikube-black.svg":18152,"./images/providers/minikube.svg":92746,"./images/providers/nutanix.svg":70079,"./images/providers/oci-black.svg":40097,"./images/providers/oci-open-containers.svg":67257,"./images/providers/oci.svg":46487,"./images/providers/openstack-black.svg":57990,"./images/providers/openstack.svg":53116,"./images/providers/oracle.svg":88594,"./images/providers/oracleoke-black.svg":56347,"./images/providers/oracleoke.svg":9053,"./images/providers/otc-black.svg":67294,"./images/providers/otc.svg":69348,"./images/providers/otccce.svg":24079,"./images/providers/outscale.svg":72886,"./images/providers/ovhcloudmks.svg":49619,"./images/providers/ovhcloudpubliccloud.svg":54474,"./images/providers/packet-black.svg":90742,"./images/providers/packet.svg":48428,"./images/providers/pinganyunecs-black.svg":49880,"./images/providers/pinganyunecs.svg":58490,"./images/providers/pnap-black.svg":59931,"./images/providers/pnap.svg":31549,"./images/providers/rackspace-black.svg":41511,"./images/providers/rackspace.svg":65785,"./images/providers/rke.svg":38102,"./images/providers/rke2.svg":49560,"./images/providers/sks.svg":46905,"./images/providers/softlayer.svg":61883,"./images/providers/tencenttke-black.svg":70963,"./images/providers/tencenttke.svg":77701,"./images/providers/traefik.png":19508,"./images/providers/vmwarevsphere-black.svg":26791,"./images/providers/vmwarevsphere.svg":5337,"./images/vendor/activedirectory.svg":6101,"./images/vendor/adfs.svg":24872,"./images/vendor/azuread.svg":14336,"./images/vendor/cognito.svg":62655,"./images/vendor/custom.svg":98283,"./images/vendor/email.svg":41778,"./images/vendor/freeipa.svg":42496,"./images/vendor/github.svg":52075,"./images/vendor/githubapp.svg":81584,"./images/vendor/googleoauth.svg":63104,"./images/vendor/grafana.svg":59826,"./images/vendor/jaeger.svg":36308,"./images/vendor/keycloak.svg":5477,"./images/vendor/kiali.svg":66234,"./images/vendor/linux.svg":31456,"./images/vendor/longhorn.svg":81199,"./images/vendor/neuvector.svg":66763,"./images/vendor/okta.svg":31545,"./images/vendor/openid.svg":92877,"./images/vendor/openldap.svg":7841,"./images/vendor/pagerduty.svg":75495,"./images/vendor/ping.svg":35646,"./images/vendor/prometheus.svg":91258,"./images/vendor/shibboleth.svg":23294,"./images/vendor/slack.svg":69742,"./images/vendor/webhook.svg":94569,"./images/vendor/windows.svg":88381,"./images/wechat-qr-code.jpg":45605};function i(e){var t=a(e);return n(t)}function a(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=a,e.exports=i,i.id=19199},99259:function(e,t,n){var r={"./brand/classic/metadata.json":29621,"./brand/csp/metadata.json":6471,"./brand/federal/metadata.json":91862,"./brand/harvester/metadata.json":51507,"./brand/rgs/metadata.json":48401,"./brand/suse/metadata.json":37259,"./data/aws-regions.json":35553,"./data/ec2-instance-groups.json":65321};function i(e){var t=a(e);return n(t)}function a(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=a,e.exports=i,i.id=99259},93197:function(e,t,n){var r={"./__tests__/apps.deployment.test":25192,"./__tests__/apps.deployment.test.ts":25192,"./__tests__/auditlog.cattle.io.auditpolicy.test":34700,"./__tests__/auditlog.cattle.io.auditpolicy.test.ts":34700,"./__tests__/batch.cronjob.test":8432,"./__tests__/batch.cronjob.test.ts":8432,"./__tests__/catalog.cattle.io.app.test":94226,"./__tests__/catalog.cattle.io.app.test.ts":94226,"./__tests__/chart.test":44775,"./__tests__/chart.test.ts":44775,"./__tests__/cluster.test":13573,"./__tests__/cluster.test.ts":13573,"./__tests__/compliance.cattle.io.clusterscanprofile.spec":98962,"./__tests__/compliance.cattle.io.clusterscanprofile.spec.js":98962,"./__tests__/ext.cattle.io.kubeconfig.test":90466,"./__tests__/ext.cattle.io.kubeconfig.test.ts":90466,"./__tests__/fleet.cattle.io.cluster.test":84264,"./__tests__/fleet.cattle.io.cluster.test.ts":84264,"./__tests__/fleet.cattle.io.gitrepo.test":44282,"./__tests__/fleet.cattle.io.gitrepo.test.ts":44282,"./__tests__/fleet.cattle.io.helmop.test":37069,"./__tests__/fleet.cattle.io.helmop.test.ts":37069,"./__tests__/logging.banzaicloud.io.flow.test":85166,"./__tests__/logging.banzaicloud.io.flow.test.ts":85166,"./__tests__/management.cattle.io.cluster.test":58221,"./__tests__/management.cattle.io.cluster.test.ts":58221,"./__tests__/management.cattle.io.node":25529,"./__tests__/management.cattle.io.node.ts":25529,"./__tests__/management.cattle.io.nodepool":94479,"./__tests__/management.cattle.io.nodepool.ts":94479,"./__tests__/namespace.test":68882,"./__tests__/namespace.test.ts":68882,"./__tests__/node.test":4915,"./__tests__/node.test.ts":4915,"./__tests__/provisioning.cattle.io.cluster.test":29759,"./__tests__/provisioning.cattle.io.cluster.test.ts":29759,"./__tests__/schema.tests":81453,"./__tests__/schema.tests.ts":81453,"./__tests__/secret.test":19147,"./__tests__/secret.test.ts":19147,"./__tests__/steve-schema.test":66888,"./__tests__/steve-schema.test.ts":66888,"./__tests__/storage.k8s.io.storageclass.test":77107,"./__tests__/storage.k8s.io.storageclass.test.ts":77107,"./__tests__/workload.test":91624,"./__tests__/workload.test.ts":91624,"./app":426,"./app.js":426,"./apps.controllerrevision":54686,"./apps.controllerrevision.js":54686,"./apps.daemonset":89395,"./apps.daemonset.js":89395,"./apps.deployment":41212,"./apps.deployment.js":41212,"./apps.replicaset":77763,"./apps.replicaset.js":77763,"./apps.statefulset":86791,"./apps.statefulset.js":86791,"./auditlog.cattle.io.auditpolicy":8488,"./auditlog.cattle.io.auditpolicy.js":8488,"./autoscaling.horizontalpodautoscaler":20763,"./autoscaling.horizontalpodautoscaler.js":20763,"./batch.cronjob":43020,"./batch.cronjob.js":43020,"./batch.job":66184,"./batch.job.js":66184,"./catalog.cattle.io.app":65502,"./catalog.cattle.io.app.js":65502,"./catalog.cattle.io.clusterrepo":48723,"./catalog.cattle.io.clusterrepo.js":48723,"./catalog.cattle.io.operation":67784,"./catalog.cattle.io.operation.js":67784,"./catalog.cattle.io.repo":71029,"./catalog.cattle.io.repo.js":71029,"./catalog.cattle.io.uiplugin":97960,"./catalog.cattle.io.uiplugin.js":97960,"./chart":92737,"./chart.js":92737,"./chartinstallaction":91380,"./chartinstallaction.js":91380,"./chartupgradeaction":4451,"./chartupgradeaction.js":4451,"./cloudcredential":45231,"./cloudcredential.js":45231,"./cluster":16787,"./cluster.js":16787,"./cluster.x-k8s.io.machine":61843,"./cluster.x-k8s.io.machine.js":61843,"./cluster.x-k8s.io.machinedeployment":22456,"./cluster.x-k8s.io.machinedeployment.js":22456,"./cluster.x-k8s.io.machineset":5555,"./cluster.x-k8s.io.machineset.js":5555,"./cluster/node":44458,"./cluster/node.js":44458,"./cluster/schema":62973,"./cluster/schema.js":62973,"./clusterroletemplatebinding":18027,"./clusterroletemplatebinding.js":18027,"./compliance.cattle.io.clusterscan":53622,"./compliance.cattle.io.clusterscan.js":53622,"./compliance.cattle.io.clusterscanbenchmark":87923,"./compliance.cattle.io.clusterscanbenchmark.js":87923,"./compliance.cattle.io.clusterscanprofile":22513,"./compliance.cattle.io.clusterscanprofile.js":22513,"./compliance.cattle.io.clusterscanreport":98728,"./compliance.cattle.io.clusterscanreport.js":98728,"./configmap":79925,"./configmap.js":79925,"./constraints.gatekeeper.sh.constraint":40172,"./constraints.gatekeeper.sh.constraint.js":40172,"./driver":81147,"./driver.js":81147,"./event":28473,"./event.js":28473,"./ext.cattle.io.groupmembershiprefreshrequest":42510,"./ext.cattle.io.groupmembershiprefreshrequest.js":42510,"./ext.cattle.io.kubeconfig":6856,"./ext.cattle.io.kubeconfig.ts":6856,"./ext.cattle.io.passwordchangerequest":61607,"./ext.cattle.io.passwordchangerequest.js":61607,"./ext.cattle.io.selfuser":76448,"./ext.cattle.io.selfuser.js":76448,"./fleet-application":91970,"./fleet-application.js":91970,"./fleet.cattle.io.bundle":5096,"./fleet.cattle.io.bundle.js":5096,"./fleet.cattle.io.cluster":5904,"./fleet.cattle.io.cluster.js":5904,"./fleet.cattle.io.clustergroup":11173,"./fleet.cattle.io.clustergroup.js":11173,"./fleet.cattle.io.clusterregistrationtoken":67424,"./fleet.cattle.io.clusterregistrationtoken.js":67424,"./fleet.cattle.io.gitrepo":84402,"./fleet.cattle.io.gitrepo.js":84402,"./fleet.cattle.io.helmop":80591,"./fleet.cattle.io.helmop.js":80591,"./group.principal":97030,"./group.principal.js":97030,"./helm.cattle.io.projecthelmchart":7899,"./helm.cattle.io.projecthelmchart.js":7899,"./k8s.cni.cncf.io.networkattachmentdefinition":72183,"./k8s.cni.cncf.io.networkattachmentdefinition.js":72183,"./kontainerdriver":83448,"./kontainerdriver.js":83448,"./logging.banzaicloud.io.clusterflow":78694,"./logging.banzaicloud.io.clusterflow.js":78694,"./logging.banzaicloud.io.clusteroutput":63331,"./logging.banzaicloud.io.clusteroutput.js":63331,"./logging.banzaicloud.io.flow":21766,"./logging.banzaicloud.io.flow.js":21766,"./logging.banzaicloud.io.output":44931,"./logging.banzaicloud.io.output.js":44931,"./management.cattle.io.authconfig":78277,"./management.cattle.io.authconfig.js":78277,"./management.cattle.io.cluster":16544,"./management.cattle.io.cluster.js":16544,"./management.cattle.io.clusterroletemplatebinding":54820,"./management.cattle.io.clusterroletemplatebinding.js":54820,"./management.cattle.io.feature":58975,"./management.cattle.io.feature.js":58975,"./management.cattle.io.fleetworkspace":61504,"./management.cattle.io.fleetworkspace.js":61504,"./management.cattle.io.gitreporestriction":33707,"./management.cattle.io.gitreporestriction.js":33707,"./management.cattle.io.globalrole":14606,"./management.cattle.io.globalrole.js":14606,"./management.cattle.io.globalrolebinding":97621,"./management.cattle.io.globalrolebinding.js":97621,"./management.cattle.io.kontainerdriver":44660,"./management.cattle.io.kontainerdriver.js":44660,"./management.cattle.io.node":77917,"./management.cattle.io.node.js":77917,"./management.cattle.io.nodepool":68959,"./management.cattle.io.nodepool.js":68959,"./management.cattle.io.nodetemplate":57075,"./management.cattle.io.nodetemplate.js":57075,"./management.cattle.io.oidcclient":81831,"./management.cattle.io.oidcclient.js":81831,"./management.cattle.io.podsecurityadmissionconfigurationtemplate":10311,"./management.cattle.io.podsecurityadmissionconfigurationtemplate.js":10311,"./management.cattle.io.project":24220,"./management.cattle.io.project.js":24220,"./management.cattle.io.projectroletemplatebinding":91673,"./management.cattle.io.projectroletemplatebinding.js":91673,"./management.cattle.io.registration":4372,"./management.cattle.io.registration.js":4372,"./management.cattle.io.roletemplate":4799,"./management.cattle.io.roletemplate.js":4799,"./management.cattle.io.setting":76061,"./management.cattle.io.setting.js":76061,"./management.cattle.io.user":69754,"./management.cattle.io.user.js":69754,"./management/schema":95694,"./management/schema.js":95694,"./metrics.k8s.io.nodemetrics":86465,"./metrics.k8s.io.nodemetrics.js":86465,"./monitoring.coreos.com.alertmanagerconfig":34858,"./monitoring.coreos.com.alertmanagerconfig.js":34858,"./monitoring.coreos.com.podmonitor":67750,"./monitoring.coreos.com.podmonitor.js":67750,"./monitoring.coreos.com.prometheusrule":61403,"./monitoring.coreos.com.prometheusrule.js":61403,"./monitoring.coreos.com.receiver":57e3,"./monitoring.coreos.com.receiver.js":57e3,"./monitoring.coreos.com.route":55162,"./monitoring.coreos.com.route.js":55162,"./monitoring.coreos.com.servicemonitor":906,"./monitoring.coreos.com.servicemonitor.js":906,"./namespace":67867,"./namespace.js":67867,"./networking.istio.io.destinationrule":1835,"./networking.istio.io.destinationrule.js":1835,"./networking.k8s.io.ingress":67462,"./networking.k8s.io.ingress.js":67462,"./nodedriver":80903,"./nodedriver.js":80903,"./persistentvolume":13070,"./persistentvolume.js":13070,"./persistentvolumeclaim":17544,"./persistentvolumeclaim.js":17544,"./pod":76006,"./pod.js":76006,"./principal":97219,"./principal.js":97219,"./projectroletemplatebinding":99493,"./projectroletemplatebinding.js":99493,"./provisioning.cattle.io.cluster":47685,"./provisioning.cattle.io.cluster.js":47685,"./rbac.authorization.k8s.io.clusterrole":8324,"./rbac.authorization.k8s.io.clusterrole.js":8324,"./rbac.authorization.k8s.io.clusterrolebinding":69791,"./rbac.authorization.k8s.io.clusterrolebinding.js":69791,"./rbac.authorization.k8s.io.role":51700,"./rbac.authorization.k8s.io.role.js":51700,"./rbac.authorization.k8s.io.rolebinding":559,"./rbac.authorization.k8s.io.rolebinding.js":559,"./replicationcontroller":12299,"./replicationcontroller.js":12299,"./resources.cattle.io.backup":89713,"./resources.cattle.io.backup.js":89713,"./resources.cattle.io.restore":23741,"./resources.cattle.io.restore.js":23741,"./rke-machine-config.cattle.io.harvesterconfig":81689,"./rke-machine-config.cattle.io.harvesterconfig.js":81689,"./rke-machine.cattle.io.amazonec2machinetemplate":39651,"./rke-machine.cattle.io.amazonec2machinetemplate.js":39651,"./rke-machine.cattle.io.azuremachinetemplate":79144,"./rke-machine.cattle.io.azuremachinetemplate.js":79144,"./rke-machine.cattle.io.digitaloceanmachinetemplate":81593,"./rke-machine.cattle.io.digitaloceanmachinetemplate.js":81593,"./rke-machine.cattle.io.linodemachinetemplate":69770,"./rke-machine.cattle.io.linodemachinetemplate.js":69770,"./rke-machine.cattle.io.machinetemplate":38799,"./rke-machine.cattle.io.machinetemplate.js":38799,"./rke-machine.cattle.io.pnapmachinetemplate":82186,"./rke-machine.cattle.io.pnapmachinetemplate.js":82186,"./rke-machine.cattle.io.vmwarevspheremachinetemplate":38816,"./rke-machine.cattle.io.vmwarevspheremachinetemplate.js":38816,"./rke.cattle.io.etcdsnapshot":7100,"./rke.cattle.io.etcdsnapshot.js":7100,"./schema":2334,"./schema.js":2334,"./secret":29859,"./secret.js":29859,"./service":96258,"./service.js":96258,"./steve-schema":45858,"./steve-schema.ts":45858,"./storage.k8s.io.storageclass":63809,"./storage.k8s.io.storageclass.js":63809,"./templates.gatekeeper.sh.constrainttemplate":66491,"./templates.gatekeeper.sh.constrainttemplate.js":66491,"./token":24364,"./token.js":24364,"./ui.cattle.io.navlink":51225,"./ui.cattle.io.navlink.js":51225,"./workload":70775,"./workload.js":70775,"./workload.service":2505,"./workload.service.js":2505};function i(e){var t=a(e);return n(t)}function a(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=a,e.exports=i,i.id=93197},39989:function(e,t,n){var r={"./management.cattle.io.fleetworkspace":2572,"./management.cattle.io.fleetworkspace.vue":2572,"./management.cattle.io.globalrole":39126,"./management.cattle.io.globalrole.vue":39126,"./management.cattle.io.project":11193,"./management.cattle.io.project.vue":11193,"./management.cattle.io.roletemplate":24093,"./management.cattle.io.roletemplate.vue":24093,"./mixin/roleDeletionCheck":55105,"./mixin/roleDeletionCheck.js":55105,"./pod":4563,"./pod.vue":4563};function i(e){var t=a(e);return n(t)}function a(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=a,e.exports=i,i.id=39989},32195:function(e,t,n){"use strict";e.exports=n.p+"img/rancher-logo.920195b3.svg"},42850:function(e,t,n){"use strict";e.exports=n.p+"img/rancher-logo.487fcd1d.svg"},70266:function(e,t,n){"use strict";e.exports=n.p+"img/rancher-logo.788ed883.svg"},18729:function(e,t,n){"use strict";e.exports=n.p+"img/rancher-logo.ef1ab5b0.svg"},85501:function(e,t,n){"use strict";e.exports=n.p+"img/rancher-logo.f190bd21.svg"},24548:function(e,t,n){"use strict";e.exports=n.p+"img/rancher-logo.fd684d42.svg"},80307:function(e,t,n){"use strict";e.exports=n.p+"img/banner.245c572a.svg"},21458:function(e,t,n){"use strict";e.exports=n.p+"img/banner.ee2db63b.svg"},33319:function(e,t,n){"use strict";e.exports=n.p+"img/login-landscape.6734e5cc.svg"},47629:function(e,t,n){"use strict";e.exports=n.p+"img/rancher-logo.8dca6972.svg"},98040:function(e,t,n){"use strict";e.exports=n.p+"img/login-landscape.0a4b1a5f.svg"},8084:function(e,t,n){"use strict";e.exports=n.p+"img/rancher-logo.db10c962.svg"},10942:function(e,t,n){"use strict";e.exports=n.p+"img/cloud-native.f640653c.svg"},77667:function(e,t,n){"use strict";e.exports=n.p+"img/cloud-native.9cfd7ba8.svg"},49549:function(e,t,n){"use strict";e.exports=n.p+"img/shield.8516dabb.svg"},9902:function(e,t,n){"use strict";e.exports=n.p+"img/suse.bc943e43.svg"},76388:function(e,t,n){"use strict";e.exports=n.p+"img/shield.d1ed84b4.svg"},25931:function(e,t,n){"use strict";e.exports=n.p+"img/suse.61974c8d.svg"},75054:function(e,t,n){"use strict";e.exports=n.p+"img/field-valid.b378b909.svg"},39802:function(e,t,n){"use strict";e.exports=n.p+"img/generic-catalog.1842a50e.svg"},76251:function(e,t,n){"use strict";e.exports=n.p+"img/generic-driver.7f81adcc.svg"},57784:function(e,t,n){"use strict";e.exports=n.p+"img/generic-plugin.f1ebdd74.svg"},52150:function(e,t,n){"use strict";e.exports=n.p+"img/key.3451c981.svg"},95754:function(e,t,n){"use strict";e.exports=n.p+"img/banner.00f803a6.svg"},9273:function(e,t,n){"use strict";e.exports=n.p+"img/banner.e66743c3.svg"},26458:function(e,t,n){"use strict";e.exports=n.p+"img/login-landscape.6e1253bb.svg"},55966:function(e,t,n){"use strict";e.exports=n.p+"img/rancher-logo.af9af640.svg"},12531:function(e,t,n){"use strict";e.exports=n.p+"img/decoration-cloud-big-white.4229596e.svg"},77430:function(e,t,n){"use strict";e.exports=n.p+"img/decoration-ground.3f64fcbb.svg"},21492:function(e,t,n){"use strict";e.exports=n.p+"img/error-desert-landscape.2a9d44f4.svg"},28225:function(e,t,n){"use strict";e.exports=n.p+"img/half-logo.1bc560ee.svg"},27782:function(e,t,n){"use strict";e.exports=n.p+"img/harvester.0168283e.svg"},46751:function(e,t,n){"use strict";e.exports=n.p+"img/login-landscape.60cd520b.svg"},5669:function(e,t,n){"use strict";e.exports=n.p+"img/rancher-logo.d26f6ac6.svg"},549:function(e,t,n){"use strict";e.exports=n.p+"img/setup-step-one.7b236b40.svg"},38566:function(e,t,n){"use strict";e.exports=n.p+"img/sunglasses.157dca2a.svg"},87526:function(e,t,n){"use strict";e.exports=n.p+"img/aliyun-black.a9967561.svg"},17180:function(e,t,n){"use strict";e.exports=n.p+"img/aliyun.d05bff3f.svg"},75685:function(e,t,n){"use strict";e.exports=n.p+"img/aliyunecs-black.93dd5b27.svg"},38683:function(e,t,n){"use strict";e.exports=n.p+"img/aliyunecs.b57b715b.svg"},52212:function(e,t,n){"use strict";e.exports=n.p+"img/amazonec2-black.5d49a518.svg"},16598:function(e,t,n){"use strict";e.exports=n.p+"img/amazonec2.259f7435.svg"},43881:function(e,t,n){"use strict";e.exports=n.p+"img/amazoneks-black.e3999509.svg"},90287:function(e,t,n){"use strict";e.exports=n.p+"img/amazoneks.44a8a254.svg"},59835:function(e,t,n){"use strict";e.exports=n.p+"img/aws.988ade4f.svg"},80895:function(e,t,n){"use strict";e.exports=n.p+"img/azure-black.4bcdbe6b.svg"},60961:function(e,t,n){"use strict";e.exports=n.p+"img/azure.7d30d447.svg"},81392:function(e,t,n){"use strict";e.exports=n.p+"img/azuread-black.d272db7e.svg"},45634:function(e,t,n){"use strict";e.exports=n.p+"img/azuread.7914bb78.svg"},35894:function(e,t,n){"use strict";e.exports=n.p+"img/azureaks-black.09cdc074.svg"},40268:function(e,t,n){"use strict";e.exports=n.p+"img/azureaks.239d69fb.svg"},71351:function(e,t,n){"use strict";e.exports=n.p+"img/baidu-black.32fb0569.svg"},47113:function(e,t,n){"use strict";e.exports=n.p+"img/baidu.063c3510.svg"},50309:function(e,t,n){"use strict";e.exports=n.p+"img/cloudca-black.2c8fc541.svg"},23131:function(e,t,n){"use strict";e.exports=n.p+"img/cloudca.fb088dd5.svg"},51773:function(e,t,n){"use strict";e.exports=n.p+"img/cloudscale-black.87d94917.svg"},86531:function(e,t,n){"use strict";e.exports=n.p+"img/cloudscale.dd348191.svg"},29181:function(e,t,n){"use strict";e.exports=n.p+"img/custom.2ff19310.svg"},65988:function(e,t,n){"use strict";e.exports=n.p+"img/digitalocean-black.3d5310a1.svg"},19110:function(e,t,n){"use strict";e.exports=n.p+"img/digitalocean.b0aa5786.svg"},66335:function(e,t,n){"use strict";e.exports=n.p+"img/equinix-black.0870820e.svg"},60705:function(e,t,n){"use strict";e.exports=n.p+"img/equinix.c112c186.svg"},12896:function(e,t,n){"use strict";e.exports=n.p+"img/exoscale.af115826.svg"},2054:function(e,t,n){"use strict";e.exports=n.p+"img/gcp.f7a1243c.svg"},3405:function(e,t,n){"use strict";e.exports=n.p+"img/gke-black.64bdd882.svg"},61939:function(e,t,n){"use strict";e.exports=n.p+"img/gke.4c1ecbcd.svg"},32561:function(e,t,n){"use strict";e.exports=n.p+"img/google.789cf860.svg"},73562:function(e,t,n){"use strict";e.exports=n.p+"img/googlegke-black.64bdd882.svg"},97712:function(e,t,n){"use strict";e.exports=n.p+"img/googlegke.4c1ecbcd.svg"},53938:function(e,t,n){"use strict";e.exports=n.p+"img/harvester.0168283e.svg"},91128:function(e,t,n){"use strict";e.exports=n.p+"img/huaweicce-black.d378b855.svg"},40634:function(e,t,n){"use strict";e.exports=n.p+"img/huaweicce.22b4ecea.svg"},28499:function(e,t,n){"use strict";e.exports=n.p+"img/import.ac396542.svg"},35671:function(e,t,n){"use strict";e.exports=n.p+"img/k3s-black.b4765216.svg"},85545:function(e,t,n){"use strict";e.exports=n.p+"img/k3s.f0881505.svg"},27442:function(e,t,n){"use strict";e.exports=n.p+"img/kubernetes-black.2ade6358.svg"},9144:function(e,t,n){"use strict";e.exports=n.p+"img/kubernetes.ac396542.svg"},75553:function(e,t,n){"use strict";e.exports=n.p+"img/linode.642005fe.svg"},96441:function(e,t,n){"use strict";e.exports=n.p+"img/linodelke-black.81aa799d.svg"},3199:function(e,t,n){"use strict";e.exports=n.p+"img/linodelke.642005fe.svg"},47600:function(e,t,n){"use strict";e.exports=n.p+"img/local-cluster.272d4fc9.svg"},18152:function(e,t,n){"use strict";e.exports=n.p+"img/minikube-black.94055a38.svg"},92746:function(e,t,n){"use strict";e.exports=n.p+"img/minikube.117e4a38.svg"},70079:function(e,t,n){"use strict";e.exports=n.p+"img/nutanix.862c3637.svg"},40097:function(e,t,n){"use strict";e.exports=n.p+"img/oci-black.cd3524de.svg"},67257:function(e,t,n){"use strict";e.exports=n.p+"img/oci-open-containers.a7329d94.svg"},46487:function(e,t,n){"use strict";e.exports=n.p+"img/oci.3a81eed0.svg"},57990:function(e,t,n){"use strict";e.exports=n.p+"img/openstack-black.af3ac5a0.svg"},53116:function(e,t,n){"use strict";e.exports=n.p+"img/openstack.475580f8.svg"},88594:function(e,t,n){"use strict";e.exports=n.p+"img/oracle.74aae75e.svg"},56347:function(e,t,n){"use strict";e.exports=n.p+"img/oracleoke-black.ec0a34a2.svg"},9053:function(e,t,n){"use strict";e.exports=n.p+"img/oracleoke.64fac528.svg"},67294:function(e,t,n){"use strict";e.exports=n.p+"img/otc-black.5629758c.svg"},69348:function(e,t,n){"use strict";e.exports=n.p+"img/otc.1b7d926f.svg"},24079:function(e,t,n){"use strict";e.exports=n.p+"img/otccce.1b7d926f.svg"},72886:function(e,t,n){"use strict";e.exports=n.p+"img/outscale.d0d823da.svg"},49619:function(e,t,n){"use strict";e.exports=n.p+"img/ovhcloudmks.612c966f.svg"},54474:function(e,t,n){"use strict";e.exports=n.p+"img/ovhcloudpubliccloud.612c966f.svg"},90742:function(e,t,n){"use strict";e.exports=n.p+"img/packet-black.5fc90c03.svg"},48428:function(e,t,n){"use strict";e.exports=n.p+"img/packet.ef1f45fa.svg"},49880:function(e,t,n){"use strict";e.exports=n.p+"img/pinganyunecs-black.bf0b3440.svg"},58490:function(e,t,n){"use strict";e.exports=n.p+"img/pinganyunecs.b74db865.svg"},59931:function(e,t,n){"use strict";e.exports=n.p+"img/pnap-black.a7948015.svg"},31549:function(e,t,n){"use strict";e.exports=n.p+"img/pnap.81704b7a.svg"},41511:function(e,t,n){"use strict";e.exports=n.p+"img/rackspace-black.0e8f8bc4.svg"},65785:function(e,t,n){"use strict";e.exports=n.p+"img/rackspace.5e8dcb5a.svg"},38102:function(e,t,n){"use strict";e.exports=n.p+"img/rke.a01f31e7.svg"},49560:function(e,t,n){"use strict";e.exports=n.p+"img/rke2.a01f31e7.svg"},46905:function(e,t,n){"use strict";e.exports=n.p+"img/sks.af115826.svg"},61883:function(e,t,n){"use strict";e.exports=n.p+"img/softlayer.5d9a5c2a.svg"},70963:function(e,t,n){"use strict";e.exports=n.p+"img/tencenttke-black.140c30e5.svg"},77701:function(e,t,n){"use strict";e.exports=n.p+"img/tencenttke.42042615.svg"},26791:function(e,t,n){"use strict";e.exports=n.p+"img/vmwarevsphere-black.454d68ed.svg"},5337:function(e,t,n){"use strict";e.exports=n.p+"img/vmwarevsphere.94d59db3.svg"},6101:function(e,t,n){"use strict";e.exports=n.p+"img/activedirectory.0baa2998.svg"},24872:function(e,t,n){"use strict";e.exports=n.p+"img/adfs.6e70726e.svg"},14336:function(e,t,n){"use strict";e.exports=n.p+"img/azuread.774efe5f.svg"},62655:function(e,t,n){"use strict";e.exports=n.p+"img/cognito.0f11062a.svg"},98283:function(e,t,n){"use strict";e.exports=n.p+"img/custom.6f45244d.svg"},41778:function(e,t,n){"use strict";e.exports=n.p+"img/email.b67ceff2.svg"},42496:function(e,t,n){"use strict";e.exports=n.p+"img/freeipa.ef110cc0.svg"},52075:function(e,t,n){"use strict";e.exports=n.p+"img/github.9c864145.svg"},81584:function(e,t,n){"use strict";e.exports=n.p+"img/githubapp.9c864145.svg"},63104:function(e,t,n){"use strict";e.exports=n.p+"img/googleoauth.4619a2a5.svg"},59826:function(e,t,n){"use strict";e.exports=n.p+"img/grafana.2db31bb8.svg"},36308:function(e,t,n){"use strict";e.exports=n.p+"img/jaeger.1c7d1266.svg"},5477:function(e,t,n){"use strict";e.exports=n.p+"img/keycloak.ca7b4848.svg"},66234:function(e,t,n){"use strict";e.exports=n.p+"img/kiali.d0e257dd.svg"},31456:function(e,t,n){"use strict";e.exports=n.p+"img/linux.a96776e5.svg"},81199:function(e,t,n){"use strict";e.exports=n.p+"img/longhorn.4809470b.svg"},66763:function(e,t,n){"use strict";e.exports=n.p+"img/neuvector.513801d3.svg"},31545:function(e,t,n){"use strict";e.exports=n.p+"img/okta.58a2aa35.svg"},92877:function(e,t,n){"use strict";e.exports=n.p+"img/openid.451743dd.svg"},7841:function(e,t,n){"use strict";e.exports=n.p+"img/openldap.59040f23.svg"},75495:function(e,t,n){"use strict";e.exports=n.p+"img/pagerduty.9871fbd3.svg"},35646:function(e,t,n){"use strict";e.exports=n.p+"img/ping.5b5afc6e.svg"},91258:function(e,t,n){"use strict";e.exports=n.p+"img/prometheus.be8ac54d.svg"},23294:function(e,t,n){"use strict";e.exports=n.p+"img/shibboleth.35ea1d68.svg"},69742:function(e,t,n){"use strict";e.exports=n.p+"img/slack.34dfd73f.svg"},94569:function(e,t,n){"use strict";e.exports=n.p+"img/webhook.f86c012b.svg"},88381:function(e,t,n){"use strict";e.exports=n.p+"img/windows.f862ed7d.svg"},99086:function(e,t,n){"use strict";e.exports=n.p+"img/icon.42954c0f.svg"},31365:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAABjFBMVEVHcEwMMiwJLi4MMiwMMiwNMy0MMysMMiwNNC4MMiwMMiwMMiwMMiwMMiz///8MMix9ko7O1tUQNS+pt7UTODLn6+oNMy2/ycihr63c4eAONC5xh4RHZF/d4uFhenbi5+YrTUdyiIXM1NJsg4AqTEbJ0dAaPjjX3dyRo6C5xMPl6en2+Pjr7u4qS0YgQz0yUk1cdnLAysgPNC6GmZYfQj2TpKF7j4xrgn9vhoJPamZQa2cvUEuQoZ6Nn5xWcW3o7OuKnJk3VlH9/f2ls7Gvu7lMaGO9yMYUODMeQTzN1dTv8fEhRD5Tbmr19/eotrQzU06VpqPI0M/CzMpqgn68x8XS2djs7+5AXlqsubcVOTOerasdQDuYqKYwUUuClpN4jYlje3dUb2tSbWh6jotTbWmXp6X6+/vq7e3P19aSo6H4+fnK0tFBX1oZPTj09fXu8fB8kY41VVBCYFuuu7n+/v40VE9Xcm17kI3W3Nu2wb9IZWC+yMfg5OQ+XFc2VVBZc2+ntbO7xsSZqaY/XVnvk2EjAAAADnRSTlMArxyp8Siw8ifvrq3s8H1RQAIAAAFMSURBVDjLzZNVcwIxEICDH5Vd3B2KFYe6UHd3d3d37x9vrsNAe8Mdb51+D5lJ9stsks0SIpMrkAeFiCFEpkQBlAyRoyDlRCEsSAmW4G8FX2O9qrauwfU9ae/mCE01dsih17Zq0Ar9CUtBiHZ1wE+yVjcdzZOpnOAdBi4DAM4F85SFFQxjUIzIIursDlZYKRoHI8aWTHNUiO/ASfoiepSO/Baqlw2z4WkqbMPpOaauMxir4hjGGb2WCntwhi9PcHV5nAlz0yR7qWCGB3xP+p4DIdwohEKdPcYRdx97TQ8k8DGI+ApxpElaVKqgE0BXeOp9uMfPN8Qb2MIhAAdd9AegWZMXXAdwSx/VfwijiG1qtYlutnnUWk2+Fl6Auw+THiZ4q7m2yx5rfJC/3PPrm6s2w3/4cjxCicapJCJhQUIYweatEBPClEl5G1MiJl+FK1ex1JQuFwAAAABJRU5ErkJggg=="},23561:function(e,t,n){"use strict";e.exports=n.p+"img/favicon.20240f8a.png"},17089:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAArCAMAAAA0X5qLAAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAACBUExURQAAADC6eDC6eDC6eDC6eDC6eDC6eDC6eDC6eDC6eDC6eDC6eDC6eDC6eDC6eDC6eDC6eDC6eDC6eDC6eDC6eDC6eDC6eDC6eDC6eDC6eDC6eDC6eDC6eDC6eDC6eDC6eDC6eDC6eDC6eDC6eDC6eDC6eDC6eDC6eDC6eDC6eP///xqBfEkAAAApdFJOUwASJCkzOC4eFwdJcpiquL2wf1yPi1DC7fry4FbQQqFpy9zX9oTleAxjgi9WKgAAAAFiS0dEKlO+1J4AAAAHdElNRQfpCh4JICpGBw4cAAABvUlEQVQ4y+2U2ZKbMBBFm0XGArEIAZLYMWv//w+ORGUqdmxPUnlLas4LVHPVuupuAfDNf4Xjej4h/iW40h8R6gYvlTQIIxYnaZpkjOfkegavonDpk9QrWSUVfqLrSjRG5raqFcR53L+LW42P6LYfHHdElAl37wx0Lb5m6m/nc47Dz7TLhO9Q1tlU+A0np/VrNCn8CiUu4ISDteKJr6WIawfQ5KIxfov1PM26zu/E0vgdtmwzZ6vNPreo8y7lsr5RxwT2QzO4sBk163aglDohk69cpG2y9DfVw1Cj4g445VJEZj2vn8VzJRbOl6UBrnEKTPHaup6qcnfFi9TzbUyT/vCgUBgDkFWyIlunErxfjChta6Vkte0Ay4w90FxvAHuukgAOq14t0pRnFV14DEfjO7Ylm8YUaCm57Y5cCUBqxGIziFRhW95PUNOiDiFgqVnpSG0ragqY20S7188y9vefYj9WmF0pMe2Bi7JikiBmh2e3LSeULLwfODNExXkbXIa1byIkG8eR+fZjZN7Su9QQ3UwHxcbZpBR7nPJnAq5shWyJxhB+x55ntTKDW2f+H9xpSo6iZ8VB/u6X8M0/wwcYOE+P9UYVVgAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyNS0xMC0zMFQwOTozMjo0MiswMDowMHi/UvcAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjUtMTAtMzBUMDk6MzI6NDIrMDA6MDAJ4upLAAAAKHRFWHRkYXRlOnRpbWVzdGFtcAAyMDI1LTEwLTMwVDA5OjMyOjQyKzAwOjAwXvfLlAAAAABJRU5ErkJggg=="},15447:function(e,t,n){"use strict";e.exports=n.p+"img/featured.e7faac8a.jpg"},25718:function(e){"use strict";e.exports="data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAAeAAD/4QMuaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA3LjEtYzAwMCA3OS5iMGY4YmU5MCwgMjAyMS8xMi8xNS0yMToyNToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIwMjIgTWFjaW50b3NoIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjJCQzFGNkY5QUMxNzExRUNCNjhDOUU3MjY3NTM0QTBGIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjJCQzFGNkZBQUMxNzExRUNCNjhDOUU3MjY3NTM0QTBGIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MkJDMUY2RjdBQzE3MTFFQ0I2OEM5RTcyNjc1MzRBMEYiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MkJDMUY2RjhBQzE3MTFFQ0I2OEM5RTcyNjc1MzRBMEYiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7/7gAOQWRvYmUAZMAAAAAB/9sAhAAQCwsLDAsQDAwQFw8NDxcbFBAQFBsfFxcXFxcfHhcaGhoaFx4eIyUnJSMeLy8zMy8vQEBAQEBAQEBAQEBAQEBAAREPDxETERUSEhUUERQRFBoUFhYUGiYaGhwaGiYwIx4eHh4jMCsuJycnLis1NTAwNTVAQD9AQEBAQEBAQEBAQED/wAARCABmAGYDASIAAhEBAxEB/8QAmQABAAIDAQEAAAAAAAAAAAAAAAQHAgUGAwEBAAMBAQAAAAAAAAAAAAAAAAABAgMEEAAABQIABhADBgcBAAAAAAAAAQIDBBEFIRKTdBUGMUFRYXEystIT0xQ0VLQ1VZGxIoHR4UJSI8FygpIzYwcWEQACAgADBgYCAwAAAAAAAAAAARECITEDQVGBoRITcZHB0WIEsUIyUoL/2gAMAwEAAhEDEQA/AOwvF4iWeIcmQdVHgaaLjLVuF/ExX1x1vvc5asR44rR8Vtn6aFvr4xjLXK4LmXt1vGq1F/ZbTtEZcc+HGGiHTp6aSTalsi1iZpi7+OkZZfODTF38dIyy+cIYDSFuJlkzTF38dIyy+cGmLv46Rll84QwBC3BLJmmLv46Rll84NMXfx0jLL5whgCFuCWTNMXfx0jLL5waYu/jpGWXzhDAELcEsmFebuRkZTpFS/wBq+cN1aNeLjFcSi4H2uMZ0UZ0J1JbpGWz9vxHMgE61eDQSy4tJQewaR6ZPY8XH6Xap99cFN3AAri33BZ6uXW2rVVKSaeaI9r95tK/mQDHtYxP7RwzL6vwQ7963Pzh3lGIAn371ufnDvKMQBvXJeBDzAD6RGZkRFUzwEQ3sfVZ5bRLeeJpZlUkEnGpwnUhGrraekk9S3TORenpX1G1SvVBoQEmfAfgP9C9Q6lVKi2FEJVjsMu9SDbZ+hlFDeeMqkkj+Z7wpXq69aadXjJLq03VqGthrAFoQtTrFEQSVMdoXTC48eNX+nAkvgPSTqpYJCDQcRLZ7S2qoUXwwfER3q7mPoZVYDfax6rSLMfTtKN6Eo6E5+ZBnsEv7xoRommpRLUAAAMCZB7tcc2T5mOAQe7XHNk+ZjgJ28fQPYzv3rc/OHeUYgCffvW5+cO8oxADrkvAHme8J1DMxl1wqoQtKlcBGO8SpK0kpJkpKiqRlsGQrwSGp81hHRtPrQj9JKOg5Pt/Ueu6utul1wxyg6frfZWl1JqVbHA2+tTzSnWGUnVxslGveJVKfId1q9bkW20x45FRZpJx49s3FlVXw2BU6lKUZqUZqUeEzPCZi6UcRPAQfb7WlTTTmJxIvqdzUteIk4PWTXGaqY5DtrnQMMqNCnU0x1qTgOhnsFXcEK1a5XaHIT2p05UYz/cQvCoi2zSrZqNA5hcUZ7p/MYjoVKxEGUuS5HWo1xhKbXRyPJb+KVlgMhUEuOqLKejL4zK1Nq4Unii2LF6JAzdrkEKxv3rc/OHeWYz0cHZDtkiAAANySZB7tcc2T5mOAQe7XHNk+ZjgJ28fQPYzv3rc/OHeUYgCffvW5+cO8oxADrkvAHmAAAwAupHETwEKVF1I4ieAhhr/rxKptKXc46uE/mMR0itRb8ajMktUMzP8AyfgMf/CX79LWU/Aa9df7IUPcd3YvRIGbtcghWN+9bn5w7yzFp2uO5FtsSM7TpGWW210wljJSRHQVZfvW5+cO8sxlo/ysO2SIAAA3JJkHu1xzZPmY4BB7tcc2T5mOAnbx9A9jO/etz84d5RiAJ9+9bn5w7yjEAOuS8AeYAADACxYWvVoXGbOVjsvkRE4gkGoql+ky2hXQCbUVs9gJwW1a7/bbs4tuEtS1NkSlYyTTgM6bY9LpeINpbQ7NUaEOKxUmlJqw0rtDj/8AnZl26WW2bSaFwKE//oii7DETX6jdUZFt0JP4jndF3OnYXOEk1evNgSg1JW4tRFgSTZkZ/wB1CFeTpRzJr8s04pvuKcxdzHM1UHgA3rRVyJbbAAAsRMg92uObJ8zHAIPdrjmyfMxwE7ePoHsel/Iyvk8jKh9ocPDuGozIa8dXr1Z3GJulGk1YkUJ0y/I4RUw/zEOUBRzVMbzAAAoQAAAB7RJkqE+mREcU08nYWnf2j3RnOuU64uE7NeU8tJUTWhERbxFQiEYAoUyAAADAAAAAmwCPslyOmAoySM+GQwA30OwyWNUbhKU2o5Msm1Ibp9RMtuJXWm/hPgAZ9an/AHHIcfg7qb2TsrvbcXsuKfS9JxcXfFc3GBqqtxS7ddOhI9hp1l5SS4FkitPiADLSnGOrhlzKtwIGj4HusfJyOoDR8D3WPk5HUAA3x+XInyGj4HusfJyOoDR8D3WPk5HUAAMflyDyGj4HusfJyOoDR8D3WPk5HUAAMflyDyGj4HusfJyOoDR8D3WPk5HUAAMflyDyBW631Kt1YItsybkdSN7Yomp7EltUieUuSai6NK23G2iVtVx00P7ToACbzH78IBcDvvkAAOU0P//Z"},57074:function(e,t,n){"use strict";e.exports=n.p+"img/harvester.20240f8a.png"},19508:function(e,t,n){"use strict";e.exports=n.p+"img/traefik.6be4ff82.png"},45605:function(e,t,n){"use strict";e.exports=n.p+"img/wechat-qr-code.c0468b45.jpg"},20246:function(e){"use strict";e.exports=t},47008:function(e){"use strict";e.exports=n},9274:function(t){"use strict";t.exports=e},86973:function(){},62080:function(){},78314:function(){},14834:function(e,t,n){"use strict";var r=n(69501),i="undefined"===typeof globalThis?n.g:globalThis;e.exports=function(){for(var e=[],t=0;t<r.length;t++)"function"===typeof i[r[t]]&&(e[e.length]=r[t]);return e}},3973:function(e,t,n){var r=n(4364),i={exports:{}};function a(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(function(t){var n=e[t];"object"!=typeof n||Object.isFrozen(n)||a(n)}),e}i.exports=a,i.exports.default=a;class o{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function s(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function l(e,...t){const n=Object.create(null);for(const r in e)n[r]=e[r];return t.forEach(function(e){for(const t in e)n[t]=e[t]}),n}const c="</span>",u=e=>!!e.scope||e.sublanguage&&e.language,d=(e,{prefix:t})=>{if(e.includes(".")){const n=e.split(".");return[`${t}${n.shift()}`,...n.map((e,t)=>`${e}${"_".repeat(t+1)}`)].join(" ")}return`${t}${e}`};class h{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=s(e)}openNode(e){if(!u(e))return;let t="";t=e.sublanguage?`language-${e.language}`:d(e.scope,{prefix:this.classPrefix}),this.span(t)}closeNode(e){u(e)&&(this.buffer+=c)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const p=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class f{constructor(){this.rootNode=p(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t=p({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){while(this.closeNode());}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return"string"===typeof t?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(t=>this._walk(e,t)),e.closeNode(t)),e}static _collapse(e){"string"!==typeof e&&e.children&&(e.children.every(e=>"string"===typeof e)?e.children=[e.children.join("")]:e.children.forEach(e=>{f._collapse(e)}))}}class m extends f{constructor(e){super(),this.options=e}addKeyword(e,t){""!==e&&(this.openNode(t),this.addText(e),this.closeNode())}addText(e){""!==e&&this.add(e)}addSublanguage(e,t){const n=e.root;n.sublanguage=!0,n.language=t,this.add(n)}toHTML(){const e=new h(this,this.options);return e.value()}finalize(){return!0}}function g(e){return e?"string"===typeof e?e:e.source:null}function v(e){return _("(?=",e,")")}function b(e){return _("(?:",e,")*")}function y(e){return _("(?:",e,")?")}function _(...e){const t=e.map(e=>g(e)).join("");return t}function w(e){const t=e[e.length-1];return"object"===typeof t&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function E(...e){const t=w(e),n="("+(t.capture?"":"?:")+e.map(e=>g(e)).join("|")+")";return n}function S(e){return new RegExp(e.toString()+"|").exec("").length-1}function k(e,t){const n=e&&e.exec(t);return n&&0===n.index}const x=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function A(e,{joinWith:t}){let n=0;return e.map(e=>{n+=1;const t=n;let r=g(e),i="";while(r.length>0){const e=x.exec(r);if(!e){i+=r;break}i+=r.substring(0,e.index),r=r.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?i+="\\"+String(Number(e[1])+t):(i+=e[0],"("===e[0]&&n++)}return i}).map(e=>`(${e})`).join(t)}const C=/\b\B/,T="[a-zA-Z]\\w*",N="[a-zA-Z_]\\w*",R="\\b\\d+(\\.\\d+)?",O="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",I="\\b(0b[01]+)",L="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",D=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=_(t,/.*\b/,e.binary,/\b.*/)),l({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{0!==e.index&&t.ignoreMatch()}},e)},P={begin:"\\\\[\\s\\S]",relevance:0},M={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[P]},B={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[P]},F={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},$=function(e,t,n={}){const r=l({scope:"comment",begin:e,end:t,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const i=E("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:_(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},U=$("//","$"),j=$("/\\*","\\*/"),V=$("#","$"),K={scope:"number",begin:R,relevance:0},G={scope:"number",begin:O,relevance:0},H={scope:"number",begin:I,relevance:0},z={begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[P,{begin:/\[/,end:/\]/,relevance:0,contains:[P]}]}]},q={scope:"title",begin:T,relevance:0},X={scope:"title",begin:N,relevance:0},W={begin:"\\.\\s*"+N,relevance:0},Y=function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})};var Q=Object.freeze({__proto__:null,MATCH_NOTHING_RE:C,IDENT_RE:T,UNDERSCORE_IDENT_RE:N,NUMBER_RE:R,C_NUMBER_RE:O,BINARY_NUMBER_RE:I,RE_STARTERS_RE:L,SHEBANG:D,BACKSLASH_ESCAPE:P,APOS_STRING_MODE:M,QUOTE_STRING_MODE:B,PHRASAL_WORDS_MODE:F,COMMENT:$,C_LINE_COMMENT_MODE:U,C_BLOCK_COMMENT_MODE:j,HASH_COMMENT_MODE:V,NUMBER_MODE:K,C_NUMBER_MODE:G,BINARY_NUMBER_MODE:H,REGEXP_MODE:z,TITLE_MODE:q,UNDERSCORE_TITLE_MODE:X,METHOD_GUARD:W,END_SAME_AS_BEGIN:Y});function J(e,t){const n=e.input[e.index-1];"."===n&&t.ignoreMatch()}function Z(e,t){void 0!==e.className&&(e.scope=e.className,delete e.className)}function ee(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=J,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,void 0===e.relevance&&(e.relevance=0))}function te(e,t){Array.isArray(e.illegal)&&(e.illegal=E(...e.illegal))}function ne(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function re(e,t){void 0===e.relevance&&(e.relevance=1)}const ie=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},e);Object.keys(e).forEach(t=>{delete e[t]}),e.keywords=n.keywords,e.begin=_(n.beforeMatch,v(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},ae=["of","and","for","in","not","or","if","then","parent","list","value"],oe="keyword";function se(e,t,n=oe){const r=Object.create(null);return"string"===typeof e?i(n,e.split(" ")):Array.isArray(e)?i(n,e):Object.keys(e).forEach(function(n){Object.assign(r,se(e[n],t,n))}),r;function i(e,n){t&&(n=n.map(e=>e.toLowerCase())),n.forEach(function(t){const n=t.split("|");r[n[0]]=[e,le(n[0],n[1])]})}}function le(e,t){return t?Number(t):ce(e)?0:1}function ce(e){return ae.includes(e.toLowerCase())}const ue={},de=e=>{r.error(e)},he=(e,...t)=>{r.log(`WARN: ${e}`,...t)},pe=(e,t)=>{ue[`${e}/${t}`]||(r.log(`Deprecated as of ${e}. ${t}`),ue[`${e}/${t}`]=!0)},fe=new Error;function me(e,t,{key:n}){let r=0;const i=e[n],a={},o={};for(let s=1;s<=t.length;s++)o[s+r]=i[s],a[s+r]=!0,r+=S(t[s-1]);e[n]=o,e[n]._emit=a,e[n]._multi=!0}function ge(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw de("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),fe;if("object"!==typeof e.beginScope||null===e.beginScope)throw de("beginScope must be object"),fe;me(e,e.begin,{key:"beginScope"}),e.begin=A(e.begin,{joinWith:""})}}function ve(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw de("skip, excludeEnd, returnEnd not compatible with endScope: {}"),fe;if("object"!==typeof e.endScope||null===e.endScope)throw de("endScope must be object"),fe;me(e,e.end,{key:"endScope"}),e.end=A(e.end,{joinWith:""})}}function be(e){e.scope&&"object"===typeof e.scope&&null!==e.scope&&(e.beginScope=e.scope,delete e.scope)}function ye(e){be(e),"string"===typeof e.beginScope&&(e.beginScope={_wrap:e.beginScope}),"string"===typeof e.endScope&&(e.endScope={_wrap:e.endScope}),ge(e),ve(e)}function _e(e){function t(t,n){return new RegExp(g(t),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(n?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=S(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const e=this.regexes.map(e=>e[1]);this.matcherRe=t(A(e,{joinWith:"|"}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;const t=this.matcherRe.exec(e);if(!t)return null;const n=t.findIndex((e,t)=>t>0&&void 0!==e),r=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,r)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];const t=new n;return this.rules.slice(e).forEach(([e,n])=>t.addRule(e,n)),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){const t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let n=t.exec(e);if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{const t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}function i(e){const t=new r;return e.contains.forEach(e=>t.addRule(e.begin,{rule:e,type:"begin"})),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:"end"}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t}function a(n,r){const o=n;if(n.isCompiled)return o;[Z,ne,ye,ie].forEach(e=>e(n,r)),e.compilerExtensions.forEach(e=>e(n,r)),n.__beforeBegin=null,[ee,te,re].forEach(e=>e(n,r)),n.isCompiled=!0;let s=null;return"object"===typeof n.keywords&&n.keywords.$pattern&&(n.keywords=Object.assign({},n.keywords),s=n.keywords.$pattern,delete n.keywords.$pattern),s=s||/\w+/,n.keywords&&(n.keywords=se(n.keywords,e.case_insensitive)),o.keywordPatternRe=t(s,!0),r&&(n.begin||(n.begin=/\B|\b/),o.beginRe=t(o.begin),n.end||n.endsWithParent||(n.end=/\B|\b/),n.end&&(o.endRe=t(o.end)),o.terminatorEnd=g(o.end)||"",n.endsWithParent&&r.terminatorEnd&&(o.terminatorEnd+=(n.end?"|":"")+r.terminatorEnd)),n.illegal&&(o.illegalRe=t(n.illegal)),n.contains||(n.contains=[]),n.contains=[].concat(...n.contains.map(function(e){return Ee("self"===e?n:e)})),n.contains.forEach(function(e){a(e,o)}),n.starts&&a(n.starts,r),o.matcher=i(o),o}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=l(e.classNameAliases||{}),a(e)}function we(e){return!!e&&(e.endsWithParent||we(e.starts))}function Ee(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return l(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:we(e)?l(e,{starts:e.starts?l(e.starts):null}):Object.isFrozen(e)?l(e):e}var Se="11.6.0";class ke extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const xe=s,Ae=l,Ce=Symbol("nomatch"),Te=7,Ne=function(e){const t=Object.create(null),n=Object.create(null),a=[];let s=!0;const l="Could not find the language '{}', did you forget to load/include a language module?",c={disableAutodetect:!0,name:"Plain text",contains:[]};let u={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:m};function d(e){return u.noHighlightRe.test(e)}function h(e){let t=e.className+" ";t+=e.parentNode?e.parentNode.className:"";const n=u.languageDetectRe.exec(t);if(n){const t=P(n[1]);return t||(he(l.replace("{}",n[1])),he("Falling back to no-highlight mode for this block.",e)),t?n[1]:"no-highlight"}return t.split(/\s+/).find(e=>d(e)||P(e))}function p(e,t,n){let r="",i="";"object"===typeof t?(r=e,n=t.ignoreIllegals,i=t.language):(pe("10.7.0","highlight(lang, code, ...args) has been deprecated."),pe("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),i=e,r=t),void 0===n&&(n=!0);const a={code:r,language:i};U("before:highlight",a);const o=a.result?a.result:f(a.language,a.code,n);return o.code=a.code,U("after:highlight",o),o}function f(e,n,r,i){const a=Object.create(null);function c(e,t){return e.keywords[t]}function d(){if(!N.keywords)return void O.addText(I);let e=0;N.keywordPatternRe.lastIndex=0;let t=N.keywordPatternRe.exec(I),n="";while(t){n+=I.substring(e,t.index);const r=A.case_insensitive?t[0].toLowerCase():t[0],i=c(N,r);if(i){const[e,o]=i;if(O.addText(n),n="",a[r]=(a[r]||0)+1,a[r]<=Te&&(L+=o),e.startsWith("_"))n+=t[0];else{const n=A.classNameAliases[e]||e;O.addKeyword(t[0],n)}}else n+=t[0];e=N.keywordPatternRe.lastIndex,t=N.keywordPatternRe.exec(I)}n+=I.substring(e),O.addText(n)}function h(){if(""===I)return;let e=null;if("string"===typeof N.subLanguage){if(!t[N.subLanguage])return void O.addText(I);e=f(N.subLanguage,I,!0,R[N.subLanguage]),R[N.subLanguage]=e._top}else e=w(I,N.subLanguage.length?N.subLanguage:null);N.relevance>0&&(L+=e.relevance),O.addSublanguage(e._emitter,e.language)}function p(){null!=N.subLanguage?h():d(),I=""}function m(e,t){let n=1;const r=t.length-1;while(n<=r){if(!e._emit[n]){n++;continue}const r=A.classNameAliases[e[n]]||e[n],i=t[n];r?O.addKeyword(i,r):(I=i,d(),I=""),n++}}function g(e,t){return e.scope&&"string"===typeof e.scope&&O.openNode(A.classNameAliases[e.scope]||e.scope),e.beginScope&&(e.beginScope._wrap?(O.addKeyword(I,A.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),I=""):e.beginScope._multi&&(m(e.beginScope,t),I="")),N=Object.create(e,{parent:{value:N}}),N}function v(e,t,n){let r=k(e.endRe,n);if(r){if(e["on:end"]){const n=new o(e);e["on:end"](t,n),n.isMatchIgnored&&(r=!1)}if(r){while(e.endsParent&&e.parent)e=e.parent;return e}}if(e.endsWithParent)return v(e.parent,t,n)}function b(e){return 0===N.matcher.regexIndex?(I+=e[0],1):(B=!0,0)}function y(e){const t=e[0],n=e.rule,r=new o(n),i=[n.__beforeBegin,n["on:begin"]];for(const a of i)if(a&&(a(e,r),r.isMatchIgnored))return b(t);return n.skip?I+=t:(n.excludeBegin&&(I+=t),p(),n.returnBegin||n.excludeBegin||(I=t)),g(n,e),n.returnBegin?0:t.length}function _(e){const t=e[0],r=n.substring(e.index),i=v(N,e,r);if(!i)return Ce;const a=N;N.endScope&&N.endScope._wrap?(p(),O.addKeyword(t,N.endScope._wrap)):N.endScope&&N.endScope._multi?(p(),m(N.endScope,e)):a.skip?I+=t:(a.returnEnd||a.excludeEnd||(I+=t),p(),a.excludeEnd&&(I=t));do{N.scope&&O.closeNode(),N.skip||N.subLanguage||(L+=N.relevance),N=N.parent}while(N!==i.parent);return i.starts&&g(i.starts,e),a.returnEnd?0:t.length}function E(){const e=[];for(let t=N;t!==A;t=t.parent)t.scope&&e.unshift(t.scope);e.forEach(e=>O.openNode(e))}let S={};function x(t,i){const a=i&&i[0];if(I+=t,null==a)return p(),0;if("begin"===S.type&&"end"===i.type&&S.index===i.index&&""===a){if(I+=n.slice(i.index,i.index+1),!s){const t=new Error(`0 width match regex (${e})`);throw t.languageName=e,t.badRule=S.rule,t}return 1}if(S=i,"begin"===i.type)return y(i);if("illegal"===i.type&&!r){const e=new Error('Illegal lexeme "'+a+'" for mode "'+(N.scope||"<unnamed>")+'"');throw e.mode=N,e}if("end"===i.type){const e=_(i);if(e!==Ce)return e}if("illegal"===i.type&&""===a)return 1;if(M>1e5&&M>3*i.index){const e=new Error("potential infinite loop, way more iterations than matches");throw e}return I+=a,a.length}const A=P(e);if(!A)throw de(l.replace("{}",e)),new Error('Unknown language: "'+e+'"');const C=_e(A);let T="",N=i||C;const R={},O=new u.__emitter(u);E();let I="",L=0,D=0,M=0,B=!1;try{for(N.matcher.considerAll();;){M++,B?B=!1:N.matcher.considerAll(),N.matcher.lastIndex=D;const e=N.matcher.exec(n);if(!e)break;const t=n.substring(D,e.index),r=x(t,e);D=e.index+r}return x(n.substring(D)),O.closeAllNodes(),O.finalize(),T=O.toHTML(),{language:e,value:T,relevance:L,illegal:!1,_emitter:O,_top:N}}catch(F){if(F.message&&F.message.includes("Illegal"))return{language:e,value:xe(n),illegal:!0,relevance:0,_illegalBy:{message:F.message,index:D,context:n.slice(D-100,D+100),mode:F.mode,resultSoFar:T},_emitter:O};if(s)return{language:e,value:xe(n),illegal:!1,relevance:0,errorRaised:F,_emitter:O,_top:N};throw F}}function g(e){const t={value:xe(e),illegal:!1,relevance:0,_top:c,_emitter:new u.__emitter(u)};return t._emitter.addText(e),t}function w(e,n){n=n||u.languages||Object.keys(t);const r=g(e),i=n.filter(P).filter(B).map(t=>f(t,e,!1));i.unshift(r);const a=i.sort((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(P(e.language).supersetOf===t.language)return 1;if(P(t.language).supersetOf===e.language)return-1}return 0}),[o,s]=a,l=o;return l.secondBest=s,l}function S(e,t,r){const i=t&&n[t]||r;e.classList.add("hljs"),e.classList.add(`language-${i}`)}function x(e){let t=null;const n=h(e);if(d(n))return;if(U("before:highlightElement",{el:e,language:n}),e.children.length>0&&(u.ignoreUnescapedHTML||(r.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),r.warn("https://github.com/highlightjs/highlight.js/wiki/security"),r.warn("The element with unescaped HTML:"),r.warn(e)),u.throwUnescapedHTML)){const t=new ke("One of your code blocks includes unescaped HTML.",e.innerHTML);throw t}t=e;const i=t.textContent,a=n?p(i,{language:n,ignoreIllegals:!0}):w(i);e.innerHTML=a.value,S(e,n,a.language),e.result={language:a.language,re:a.relevance,relevance:a.relevance},a.secondBest&&(e.secondBest={language:a.secondBest.language,relevance:a.secondBest.relevance}),U("after:highlightElement",{el:e,result:a,text:i})}function A(e){u=Ae(u,e)}const C=()=>{R(),pe("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function T(){R(),pe("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let N=!1;function R(){if("loading"===document.readyState)return void(N=!0);const e=document.querySelectorAll(u.cssSelector);e.forEach(x)}function O(){N&&R()}function I(n,r){let i=null;try{i=r(e)}catch(a){if(de("Language definition for '{}' could not be registered.".replace("{}",n)),!s)throw a;de(a),i=c}i.name||(i.name=n),t[n]=i,i.rawDefinition=r.bind(null,e),i.aliases&&M(i.aliases,{languageName:n})}function L(e){delete t[e];for(const t of Object.keys(n))n[t]===e&&delete n[t]}function D(){return Object.keys(t)}function P(e){return e=(e||"").toLowerCase(),t[e]||t[n[e]]}function M(e,{languageName:t}){"string"===typeof e&&(e=[e]),e.forEach(e=>{n[e.toLowerCase()]=t})}function B(e){const t=P(e);return t&&!t.disableAutodetect}function F(e){e["before:highlightBlock"]&&!e["before:highlightElement"]&&(e["before:highlightElement"]=t=>{e["before:highlightBlock"](Object.assign({block:t.el},t))}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=t=>{e["after:highlightBlock"](Object.assign({block:t.el},t))})}function $(e){F(e),a.push(e)}function U(e,t){const n=e;a.forEach(function(e){e[n]&&e[n](t)})}function j(e){return pe("10.7.0","highlightBlock will be removed entirely in v12.0"),pe("10.7.0","Please use highlightElement now."),x(e)}"undefined"!==typeof window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",O,!1),Object.assign(e,{highlight:p,highlightAuto:w,highlightAll:R,highlightElement:x,highlightBlock:j,configure:A,initHighlighting:C,initHighlightingOnLoad:T,registerLanguage:I,unregisterLanguage:L,listLanguages:D,getLanguage:P,registerAliases:M,autoDetection:B,inherit:Ae,addPlugin:$}),e.debugMode=function(){s=!1},e.safeMode=function(){s=!0},e.versionString=Se,e.regex={concat:_,lookahead:v,either:E,optional:y,anyNumberOfTimes:b};for(const r in Q)"object"===typeof Q[r]&&i.exports(Q[r]);return Object.assign(e,Q),e};var Re=Ne({});e.exports=Re,Re.HighlightJS=Re,Re.default=Re},69205:function(e){function t(e){const t={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},n="BEGIN END if else while do for in break continue delete next nextfile function func exit|10",r={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/(u|b)?r?'''/,end:/'''/,relevance:10},{begin:/(u|b)?r?"""/,end:/"""/,relevance:10},{begin:/(u|r|ur)'/,end:/'/,relevance:10},{begin:/(u|r|ur)"/,end:/"/,relevance:10},{begin:/(b|br)'/,end:/'/},{begin:/(b|br)"/,end:/"/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]};return{name:"Awk",keywords:{keyword:n},contains:[t,r,e.REGEXP_MODE,e.HASH_COMMENT_MODE,e.NUMBER_MODE]}}e.exports=t},46760:function(e){function t(e){const t=e.regex,n={},r={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},r]});const i={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},a={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},o={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,i]};i.contains.push(o);const s={className:"",begin:/\\"/},l={className:"string",begin:/'/,end:/'/},c={begin:/\$\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,n]},u=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],d=e.SHEBANG({binary:`(${u.join("|")})`,relevance:10}),h={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},p=["if","then","else","elif","fi","for","while","in","do","done","case","esac","function"],f=["true","false"],m={match:/(\/[a-z._-]+)+/},g=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],v=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","type","typeset","ulimit","unalias"],b=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],y=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:p,literal:f,built_in:[...g,...v,"set","shopt",...b,...y]},contains:[d,e.SHEBANG(),h,c,e.HASH_COMMENT_MODE,a,m,o,s,l,n]}}e.exports=t},33089:function(e){function t(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",a="<[^<>]+>",o="("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional(a)+")",s={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},l="\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)",c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+l+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},u={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},d={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(c,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},h={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},p=t.optional(i)+e.IDENT_RE+"\\s*\\(",f=["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],m=["float","double","signed","unsigned","int","short","long","char","void","_Bool","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal128","const","static","complex","bool","imaginary"],g={keyword:f,type:m,literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},v=[d,s,n,e.C_BLOCK_COMMENT_MODE,u,c],b={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:g,contains:v.concat([{begin:/\(/,end:/\)/,keywords:g,contains:v.concat(["self"]),relevance:0}]),relevance:0},y={begin:"("+o+"[\\*&\\s]+)+"+p,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:g,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:g,relevance:0},{begin:p,returnBegin:!0,contains:[e.inherit(h,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,c,u,s,{begin:/\(/,end:/\)/,keywords:g,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,c,u,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,d]};return{name:"C",aliases:["h"],keywords:g,disableAutodetect:!0,illegal:"</",contains:[].concat(b,y,v,[d,{begin:e.IDENT_RE+"::",keywords:g},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:d,strings:c,keywords:g}}}e.exports=t},37620:function(e){function t(e){const t="a-zA-Z_\\-!.?+*=<>&'",n="[#]?["+t+"]["+t+"0-9/;:$#]*",r="def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord",i={$pattern:n,built_in:r+" cond apply if-not if-let if not not= =|0 <|0 >|0 <=|0 >=|0 ==|0 +|0 /|0 *|0 -|0 rem quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last drop-while while intern condp case reduced cycle split-at split-with repeat replicate iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter monitor-exit macroexpand macroexpand-1 for dosync and or when when-not when-let comp juxt partial sequence memoize constantly complement identity assert peek pop doto proxy first rest cons cast coll last butlast sigs reify second ffirst fnext nfirst nnext meta with-meta ns in-ns create-ns import refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize"},a={begin:n,relevance:0},o={scope:"number",relevance:0,variants:[{match:/[-+]?0[xX][0-9a-fA-F]+N?/},{match:/[-+]?0[0-7]+N?/},{match:/[-+]?[1-9][0-9]?[rR][0-9a-zA-Z]+N?/},{match:/[-+]?[0-9]+\/[0-9]+N?/},{match:/[-+]?[0-9]+((\.[0-9]*([eE][+-]?[0-9]+)?M?)|([eE][+-]?[0-9]+M?|M))/},{match:/[-+]?([1-9][0-9]*|0)N?/}]},s={scope:"character",variants:[{match:/\\o[0-3]?[0-7]{1,2}/},{match:/\\u[0-9a-fA-F]{4}/},{match:/\\(newline|space|tab|formfeed|backspace|return)/},{match:/\\\S/,relevance:0}]},l={scope:"regex",begin:/#"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]},c=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),u={scope:"punctuation",match:/,/,relevance:0},d=e.COMMENT(";","$",{relevance:0}),h={className:"literal",begin:/\b(true|false|nil)\b/},p={begin:"\\[|(#::?"+n+")?\\{",end:"[\\]\\}]",relevance:0},f={className:"symbol",begin:"[:]{1,2}"+n},m={begin:"\\(",end:"\\)"},g={endsWithParent:!0,relevance:0},v={keywords:i,className:"name",begin:n,relevance:0,starts:g},b=[u,m,s,l,c,d,f,p,o,h,a],y={beginKeywords:r,keywords:{$pattern:n,keyword:r},end:'(\\[|#|\\d|"|:|\\{|\\)|\\(|$)',contains:[{className:"title",begin:n,relevance:0,excludeEnd:!0,endsParent:!0}].concat(b)};return m.contains=[y,v,g],g.contains=b,p.contains=b,{name:"Clojure",aliases:["clj","edn"],illegal:/\S/,contains:[u,m,s,l,c,d,f,p,o,h]}}e.exports=t},68049:function(e){function t(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",a="<[^<>]+>",o="(?!struct)("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional(a)+")",s={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},l="\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)",c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+l+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},u={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},d={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(c,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},h={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},p=t.optional(i)+e.IDENT_RE+"\\s*\\(",f=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],m=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],g=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],v=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],b=["NULL","false","nullopt","nullptr","true"],y=["_Pragma"],_={type:m,keyword:f,literal:b,built_in:y,_type_hints:g},w={className:"function.dispatch",relevance:0,keywords:{_hint:v},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},E=[w,d,s,n,e.C_BLOCK_COMMENT_MODE,u,c],S={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:_,contains:E.concat([{begin:/\(/,end:/\)/,keywords:_,contains:E.concat(["self"]),relevance:0}]),relevance:0},k={className:"function",begin:"("+o+"[\\*&\\s]+)+"+p,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:_,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:_,relevance:0},{begin:p,returnBegin:!0,contains:[h],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[c,u]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:_,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,c,u,s,{begin:/\(/,end:/\)/,keywords:_,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,c,u,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,d]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:_,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(S,k,w,E,[d,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function)\\s*<(?!<)",end:">",keywords:_,contains:["self",s]},{begin:e.IDENT_RE+"::",keywords:_},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}e.exports=t},25326:function(e){function t(e){const t="(_?[ui](8|16|32|64|128))?",n="(_?f(32|64))?",r="[a-zA-Z_]\\w*[!?=]?",i="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|[=!]~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~|]|//|//=|&[-+*]=?|&\\*\\*|\\[\\][=?]?",a="[A-Za-z_]\\w*(::\\w+)*(\\?|!)?",o={$pattern:r,keyword:"abstract alias annotation as as? asm begin break case class def do else elsif end ensure enum extend for fun if include instance_sizeof is_a? lib macro module next nil? of out pointerof private protected rescue responds_to? return require select self sizeof struct super then type typeof union uninitialized unless until verbatim when while with yield __DIR__ __END_LINE__ __FILE__ __LINE__",literal:"false nil true"},s={className:"subst",begin:/#\{/,end:/\}/,keywords:o},l={className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},c={className:"template-variable",variants:[{begin:"\\{\\{",end:"\\}\\}"},{begin:"\\{%",end:"%\\}"}],keywords:o};function u(e,t){const n=[{begin:e,end:t}];return n[0].contains=n,n}const d={className:"string",contains:[e.BACKSLASH_ESCAPE,s],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:"%[Qwi]?\\(",end:"\\)",contains:u("\\(","\\)")},{begin:"%[Qwi]?\\[",end:"\\]",contains:u("\\[","\\]")},{begin:"%[Qwi]?\\{",end:/\}/,contains:u(/\{/,/\}/)},{begin:"%[Qwi]?<",end:">",contains:u("<",">")},{begin:"%[Qwi]?\\|",end:"\\|"},{begin:/<<-\w+$/,end:/^\s*\w+$/}],relevance:0},h={className:"string",variants:[{begin:"%q\\(",end:"\\)",contains:u("\\(","\\)")},{begin:"%q\\[",end:"\\]",contains:u("\\[","\\]")},{begin:"%q\\{",end:/\}/,contains:u(/\{/,/\}/)},{begin:"%q<",end:">",contains:u("<",">")},{begin:"%q\\|",end:"\\|"},{begin:/<<-'\w+'$/,end:/^\s*\w+$/}],relevance:0},p={begin:"(?!%\\})("+e.RE_STARTERS_RE+"|\\n|\\b(case|if|select|unless|until|when|while)\\b)\\s*",keywords:"case if select unless until when while",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,s],variants:[{begin:"//[a-z]*",relevance:0},{begin:"/(?!\\/)",end:"/[a-z]*"}]}],relevance:0},f={className:"regexp",contains:[e.BACKSLASH_ESCAPE,s],variants:[{begin:"%r\\(",end:"\\)",contains:u("\\(","\\)")},{begin:"%r\\[",end:"\\]",contains:u("\\[","\\]")},{begin:"%r\\{",end:/\}/,contains:u(/\{/,/\}/)},{begin:"%r<",end:">",contains:u("<",">")},{begin:"%r\\|",end:"\\|"}],relevance:0},m={className:"meta",begin:"@\\[",end:"\\]",contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"string"})]},g=[c,d,h,f,p,m,l,e.HASH_COMMENT_MODE,{className:"class",beginKeywords:"class module struct",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:a}),{begin:"<"}]},{className:"class",beginKeywords:"lib enum union",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:a})]},{beginKeywords:"annotation",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:a})],relevance:2},{className:"function",beginKeywords:"def",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:i,endsParent:!0})]},{className:"function",beginKeywords:"fun macro",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:i,endsParent:!0})],relevance:2},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":",contains:[d,{begin:i}],relevance:0},{className:"number",variants:[{begin:"\\b0b([01_]+)"+t},{begin:"\\b0o([0-7_]+)"+t},{begin:"\\b0x([A-Fa-f0-9_]+)"+t},{begin:"\\b([1-9][0-9_]*[0-9]|[0-9])(\\.[0-9][0-9_]*)?([eE]_?[-+]?[0-9_]*)?"+n+"(?!_)"},{begin:"\\b([1-9][0-9_]*|0)"+t}],relevance:0}];return s.contains=g,c.contains=g.slice(1),{name:"Crystal",aliases:["cr"],keywords:o,contains:g}}e.exports=t},17025:function(e){function t(e){const t=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],n=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],r=["default","false","null","true"],i=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],a=["add","alias","and","ascending","async","await","by","descending","equals","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","remove","select","set","unmanaged","value|0","var","when","where","with","yield"],o={keyword:i.concat(a),built_in:t,literal:r},s=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),l={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},c={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},u=e.inherit(c,{illegal:/\n/}),d={className:"subst",begin:/\{/,end:/\}/,keywords:o},h=e.inherit(d,{illegal:/\n/}),p={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,h]},f={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},d]},m=e.inherit(f,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},h]});d.contains=[f,p,c,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,e.C_BLOCK_COMMENT_MODE],h.contains=[m,p,u,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,l,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const g={variants:[f,p,c,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},v={begin:"<",end:">",contains:[{beginKeywords:"in out"},s]},b=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",y={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:o,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"\x3c!--|--\x3e"},{begin:"</?",end:">"}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},g,l,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},s,v,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[s,v,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+b+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:o,contains:[{beginKeywords:n.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,v],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,relevance:0,contains:[g,l,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},y]}}e.exports=t},35678:function(e){function t(e){const t=["base-uri","child-src","connect-src","default-src","font-src","form-action","frame-ancestors","frame-src","img-src","manifest-src","media-src","object-src","plugin-types","report-uri","sandbox","script-src","style-src","trusted-types","unsafe-hashes","worker-src"];return{name:"CSP",case_insensitive:!1,keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_-]*",keyword:t},contains:[{className:"string",begin:"'",end:"'"},{className:"attribute",begin:"^Content",end:":",excludeEnd:!0}]}}e.exports=t},63355:function(e){const t=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}),n=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],i=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],a=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],o=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function s(e){const s=e.regex,l=t(e),c={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},u="and or not only",d=/@-?\w[\w]*(-\w+)*/,h="[a-zA-Z-][a-zA-Z0-9_-]*",p=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[l.BLOCK_COMMENT,c,l.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+h,relevance:0},l.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+i.join("|")+")"},{begin:":(:)?("+a.join("|")+")"}]},l.CSS_VARIABLE,{className:"attribute",begin:"\\b("+o.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[l.BLOCK_COMMENT,l.HEXCOLOR,l.IMPORTANT,l.CSS_NUMBER_MODE,...p,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...p,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},l.FUNCTION_DISPATCH]},{begin:s.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:d},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:u,attribute:r.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...p,l.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+n.join("|")+")\\b"}]}}e.exports=s},92835:function(e){function t(e){const t={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"}]},n={className:"subst",variants:[{begin:/\$\{/,end:/\}/}],keywords:"true false null this is new super"},r={className:"string",variants:[{begin:"r'''",end:"'''"},{begin:'r"""',end:'"""'},{begin:"r'",end:"'",illegal:"\\n"},{begin:'r"',end:'"',illegal:"\\n"},{begin:"'''",end:"'''",contains:[e.BACKSLASH_ESCAPE,t,n]},{begin:'"""',end:'"""',contains:[e.BACKSLASH_ESCAPE,t,n]},{begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,t,n]},{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,t,n]}]};n.contains=[e.C_NUMBER_MODE,r];const i=["Comparable","DateTime","Duration","Function","Iterable","Iterator","List","Map","Match","Object","Pattern","RegExp","Set","Stopwatch","String","StringBuffer","StringSink","Symbol","Type","Uri","bool","double","int","num","Element","ElementList"],a=i.map(e=>`${e}?`),o=["abstract","as","assert","async","await","break","case","catch","class","const","continue","covariant","default","deferred","do","dynamic","else","enum","export","extends","extension","external","factory","false","final","finally","for","Function","get","hide","if","implements","import","in","inferface","is","late","library","mixin","new","null","on","operator","part","required","rethrow","return","set","show","static","super","switch","sync","this","throw","true","try","typedef","var","void","while","with","yield"],s={keyword:o,built_in:i.concat(a).concat(["Never","Null","dynamic","print","document","querySelector","querySelectorAll","window"]),$pattern:/[A-Za-z][A-Za-z0-9_]*\??/};return{name:"Dart",keywords:s,contains:[r,e.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:"markdown",relevance:0}),e.COMMENT(/\/{3,} ?/,/$/,{contains:[{subLanguage:"markdown",begin:".",end:"$",relevance:0}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},e.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"},{begin:"=>"}]}}e.exports=t},16361:function(e){function t(e){const t=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}e.exports=t},82476:function(e){function t(e){const t=["from","maintainer","expose","env","arg","user","onbuild","stopsignal"];return{name:"Dockerfile",aliases:["docker"],case_insensitive:!0,keywords:t,contains:[e.HASH_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{beginKeywords:"run cmd entrypoint volume add copy workdir label healthcheck shell",starts:{end:/[^\\]$/,subLanguage:"bash"}}],illegal:"</"}}e.exports=t},74809:function(e){function t(e){const t=e.regex,n="[a-zA-Z_][a-zA-Z0-9_.]*(!|\\?)?",r="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",i=["after","alias","and","case","catch","cond","defstruct","defguard","do","else","end","fn","for","if","import","in","not","or","quote","raise","receive","require","reraise","rescue","try","unless","unquote","unquote_splicing","use","when","with|0"],a=["false","nil","true"],o={$pattern:n,keyword:i,literal:a},s={className:"subst",begin:/#\{/,end:/\}/,keywords:o},l={className:"number",begin:"(\\b0o[0-7_]+)|(\\b0b[01_]+)|(\\b0x[0-9a-fA-F_]+)|(-?\\b[0-9][0-9_]*(\\.[0-9_]+([eE][-+]?[0-9]+)?)?)",relevance:0},c=/\\[\s\S]/,u={match:c,scope:"char.escape",relevance:0},d="[/|([{<\"']",h=[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin:/</,end:/>/}],p=e=>({scope:"char.escape",begin:t.concat(/\\/,e),relevance:0}),f={className:"string",begin:"~[a-z](?="+d+")",contains:h.map(t=>e.inherit(t,{contains:[p(t.end),u,s]}))},m={className:"string",begin:"~[A-Z](?="+d+")",contains:h.map(t=>e.inherit(t,{contains:[p(t.end)]}))},g={className:"regex",variants:[{begin:"~r(?="+d+")",contains:h.map(n=>e.inherit(n,{end:t.concat(n.end,/[uismxfU]{0,7}/),contains:[p(n.end),u,s]}))},{begin:"~R(?="+d+")",contains:h.map(n=>e.inherit(n,{end:t.concat(n.end,/[uismxfU]{0,7}/),contains:[p(n.end)]}))}]},v={className:"string",contains:[e.BACKSLASH_ESCAPE,s],variants:[{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:/~S"""/,end:/"""/,contains:[]},{begin:/~S"/,end:/"/,contains:[]},{begin:/~S'''/,end:/'''/,contains:[]},{begin:/~S'/,end:/'/,contains:[]},{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},b={className:"function",beginKeywords:"def defp defmacro defmacrop",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:n,endsParent:!0})]},y=e.inherit(b,{className:"class",beginKeywords:"defimpl defmodule defprotocol defrecord",end:/\bdo\b|$|;/}),_=[v,g,m,f,e.HASH_COMMENT_MODE,y,b,{begin:"::"},{className:"symbol",begin:":(?![\\s:])",contains:[v,{begin:r}],relevance:0},{className:"symbol",begin:n+":(?!:)",relevance:0},{className:"title.class",begin:/(\b[A-Z][a-zA-Z0-9_]+)/,relevance:0},l,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))"}];return s.contains=_,{name:"Elixir",aliases:["ex","exs"],keywords:o,contains:_}}e.exports=t},42892:function(e){function t(e){const t={variants:[e.COMMENT("--","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},n={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},r={begin:"\\(",end:"\\)",illegal:'"',contains:[{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},t]},i={begin:/\{/,end:/\}/,contains:r.contains},a={className:"string",begin:"'\\\\?.",end:"'",illegal:"."},o=["let","in","if","then","else","case","of","where","module","import","exposing","type","alias","as","infix","infixl","infixr","port","effect","command","subscription"];return{name:"Elm",keywords:o,contains:[{beginKeywords:"port effect module",end:"exposing",keywords:"port effect module where command subscription exposing",contains:[r,t],illegal:"\\W\\.|;"},{begin:"import",end:"$",keywords:"import as exposing",contains:[r,t],illegal:"\\W\\.|;"},{begin:"type",end:"$",keywords:"type alias",contains:[n,r,i,t]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,t]},{begin:"port",end:"$",keywords:"port",contains:[t]},a,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,n,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),t,{begin:"->|<-"}],illegal:/;/}}e.exports=t},84441:function(e){function t(e){const t="[a-z'][a-zA-Z0-9_']*",n="("+t+":"+t+"|"+t+")",r={keyword:"after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if let not of orelse|10 query receive rem try when xor",literal:"false true"},i=e.COMMENT("%","$"),a={className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},o={begin:"fun\\s+"+t+"/\\d+"},s={begin:n+"\\(",end:"\\)",returnBegin:!0,relevance:0,contains:[{begin:n,relevance:0},{begin:"\\(",end:"\\)",endsWithParent:!0,returnEnd:!0,relevance:0}]},l={begin:/\{/,end:/\}/,relevance:0},c={begin:"\\b_([A-Z][A-Za-z0-9_]*)?",relevance:0},u={begin:"[A-Z][a-zA-Z0-9_]*",relevance:0},d={begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0,returnBegin:!0,contains:[{begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0},{begin:/\{/,end:/\}/,relevance:0}]},h={beginKeywords:"fun receive if try case",end:"end",keywords:r};h.contains=[i,o,e.inherit(e.APOS_STRING_MODE,{className:""}),h,s,e.QUOTE_STRING_MODE,a,l,c,u,d];const p=[i,o,h,s,e.QUOTE_STRING_MODE,a,l,c,u,d];s.contains[1].contains=p,l.contains=p,d.contains[1].contains=p;const f=["-module","-record","-undef","-export","-ifdef","-ifndef","-author","-copyright","-doc","-vsn","-import","-include","-include_lib","-compile","-define","-else","-endif","-file","-behaviour","-behavior","-spec"],m={className:"params",begin:"\\(",end:"\\)",contains:p};return{name:"Erlang",aliases:["erl"],keywords:r,illegal:"(</|\\*=|\\+=|-=|/\\*|\\*/|\\(\\*|\\*\\))",contains:[{className:"function",begin:"^"+t+"\\s*\\(",end:"->",returnBegin:!0,illegal:"\\(|#|//|/\\*|\\\\|:|;",contains:[m,e.inherit(e.TITLE_MODE,{begin:t})],starts:{end:";|\\.",keywords:r,contains:p}},i,{begin:"^-",end:"\\.",relevance:0,excludeEnd:!0,returnBegin:!0,keywords:{$pattern:"-"+e.IDENT_RE,keyword:f.map(e=>`${e}|1.5`).join(" ")},contains:[m]},a,e.QUOTE_STRING_MODE,d,c,u,l,{begin:/\.$/}]}}e.exports=t},25236:function(e){function t(e){return new RegExp(e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function n(e){return e?"string"===typeof e?e:e.source:null}function r(e){return i("(?=",e,")")}function i(...e){const t=e.map(e=>n(e)).join("");return t}function a(e){const t=e[e.length-1];return"object"===typeof t&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function o(...e){const t=a(e),r="("+(t.capture?"":"?:")+e.map(e=>n(e)).join("|")+")";return r}function s(e){const n=["abstract","and","as","assert","base","begin","class","default","delegate","do","done","downcast","downto","elif","else","end","exception","extern","finally","fixed","for","fun","function","global","if","in","inherit","inline","interface","internal","lazy","let","match","member","module","mutable","namespace","new","of","open","or","override","private","public","rec","return","static","struct","then","to","try","type","upcast","use","val","void","when","while","with","yield"],a={scope:"keyword",match:/\b(yield|return|let|do|match|use)!/},s=["if","else","endif","line","nowarn","light","r","i","I","load","time","help","quit"],l=["true","false","null","Some","None","Ok","Error","infinity","infinityf","nan","nanf"],c=["__LINE__","__SOURCE_DIRECTORY__","__SOURCE_FILE__"],u=["bool","byte","sbyte","int8","int16","int32","uint8","uint16","uint32","int","uint","int64","uint64","nativeint","unativeint","decimal","float","double","float32","single","char","string","unit","bigint","option","voption","list","array","seq","byref","exn","inref","nativeptr","obj","outref","voidptr","Result"],d=["not","ref","raise","reraise","dict","readOnlyDict","set","get","enum","sizeof","typeof","typedefof","nameof","nullArg","invalidArg","invalidOp","id","fst","snd","ignore","lock","using","box","unbox","tryUnbox","printf","printfn","sprintf","eprintf","eprintfn","fprintf","fprintfn","failwith","failwithf"],h={keyword:n,literal:l,built_in:d,"variable.constant":c},p=e.COMMENT(/\(\*(?!\))/,/\*\)/,{contains:["self"]}),f={variants:[p,e.C_LINE_COMMENT_MODE]},m=/[a-zA-Z_](\w|')*/,g={scope:"variable",begin:/``/,end:/``/},v=/\B('|\^)/,b={scope:"symbol",variants:[{match:i(v,/``.*?``/)},{match:i(v,e.UNDERSCORE_IDENT_RE)}],relevance:0},y=function({includeEqual:e}){let n;n=e?"!%&*+-/<=>@^|~?":"!%&*+-/<>@^|~?";const a=Array.from(n),s=i("[",...a.map(t),"]"),l=o(s,/\./),c=i(l,r(l)),u=o(i(c,l,"*"),i(s,"+"));return{scope:"operator",match:o(u,/:\?>/,/:\?/,/:>/,/:=/,/::?/,/\$/),relevance:0}},_=y({includeEqual:!0}),w=y({includeEqual:!1}),E=function(t,n){return{begin:i(t,r(i(/\s*/,o(/\w/,/'/,/\^/,/#/,/``/,/\(/,/{\|/)))),beginScope:n,end:r(o(/\n/,/=/)),relevance:0,keywords:e.inherit(h,{type:u}),contains:[f,b,e.inherit(g,{scope:null}),w]}},S=E(/:/,"operator"),k=E(/\bof\b/,"keyword"),x={begin:[/(^|\s+)/,/type/,/\s+/,m],beginScope:{2:"keyword",4:"title.class"},end:r(/\(|=|$/),keywords:h,contains:[f,e.inherit(g,{scope:null}),b,{scope:"operator",match:/<|>/},S]},A={scope:"computation-expression",match:/\b[_a-z]\w*(?=\s*\{)/},C={begin:[/^\s*/,i(/#/,o(...s)),/\b/],beginScope:{2:"meta"},end:r(/\s|$/)},T={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},N={scope:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]},R={scope:"string",begin:/@"/,end:/"/,contains:[{match:/""/},e.BACKSLASH_ESCAPE]},O={scope:"string",begin:/"""/,end:/"""/,relevance:2},I={scope:"subst",begin:/\{/,end:/\}/,keywords:h},L={scope:"string",begin:/\$"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},e.BACKSLASH_ESCAPE,I]},D={scope:"string",begin:/(\$@|@\$)"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},{match:/""/},e.BACKSLASH_ESCAPE,I]},P={scope:"string",begin:/\$"""/,end:/"""/,contains:[{match:/\{\{/},{match:/\}\}/},I],relevance:2},M={scope:"string",match:i(/'/,o(/[^\\']/,/\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8})/),/'/)};I.contains=[D,L,R,N,M,a,f,g,S,A,C,T,b,_];const B={variants:[P,D,L,O,R,N,M]};return{name:"F#",aliases:["fs","f#"],keywords:h,illegal:/\/\*/,classNameAliases:{"computation-expression":"keyword"},contains:[a,B,f,g,x,{scope:"meta",begin:/\[</,end:/>\]/,relevance:2,contains:[g,O,R,N,M,T]},k,S,A,C,T,b,_]}}e.exports=s},51468:function(e){function t(e){const t=["true","false","iota","nil"],n=["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"],r=["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],i=["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],a={keyword:i,type:r,literal:t,built_in:n};return{name:"Go",aliases:["golang"],keywords:a,illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{begin:e.C_NUMBER_RE+"[i]",relevance:1},e.C_NUMBER_MODE]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:a,illegal:/["']/}]}]}}e.exports=t},95541:function(e){function t(e){const t=["task","project","allprojects","subprojects","artifacts","buildscript","configurations","dependencies","repositories","sourceSets","description","delete","from","into","include","exclude","source","classpath","destinationDir","includes","options","sourceCompatibility","targetCompatibility","group","flatDir","doLast","doFirst","flatten","todir","fromdir","ant","def","abstract","break","case","catch","continue","default","do","else","extends","final","finally","for","if","implements","instanceof","native","new","private","protected","public","return","static","switch","synchronized","throw","throws","transient","try","volatile","while","strictfp","package","import","false","null","super","this","true","antlrtask","checkstyle","codenarc","copy","boolean","byte","char","class","double","float","int","interface","long","short","void","compile","runTime","file","fileTree","abs","any","append","asList","asWritable","call","collect","compareTo","count","div","dump","each","eachByte","eachFile","eachLine","every","find","findAll","flatten","getAt","getErr","getIn","getOut","getText","grep","immutable","inject","inspect","intersect","invokeMethods","isCase","join","leftShift","minus","multiply","newInputStream","newOutputStream","newPrintWriter","newReader","newWriter","next","plus","pop","power","previous","print","println","push","putAt","read","readBytes","readLines","reverse","reverseEach","round","size","sort","splitEachLine","step","subMap","times","toInteger","toList","tokenize","upto","waitForOrKill","withPrintWriter","withReader","withStream","withWriter","withWriterAppend","write","writeLine"];return{name:"Gradle",case_insensitive:!0,keywords:t,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.REGEXP_MODE]}}e.exports=t},53528:function(e){function t(e,t={}){return t.variants=e,t}function n(e){const n=e.regex,r="[A-Za-z0-9_$]+",i=t([e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]})]),a={className:"regexp",begin:/~?\/[^\/\n]+\//,contains:[e.BACKSLASH_ESCAPE]},o=t([e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]),s=t([{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:"\\$/",end:"/\\$",relevance:10},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE],{className:"string"}),l={match:[/(class|interface|trait|enum|extends|implements)/,/\s+/,e.UNDERSCORE_IDENT_RE],scope:{1:"keyword",3:"title.class"}},c=["byte","short","char","int","long","boolean","float","double","void"],u=["def","as","in","assert","trait","abstract","static","volatile","transient","public","private","protected","synchronized","final","class","interface","enum","if","else","for","while","switch","case","break","default","continue","throw","throws","try","catch","finally","implements","extends","new","import","package","return","instanceof"];return{name:"Groovy",keywords:{"variable.language":"this super",literal:"true false null",type:c,keyword:u},contains:[e.SHEBANG({binary:"groovy",relevance:10}),i,s,a,o,l,{className:"meta",begin:"@[A-Za-z]+",relevance:0},{className:"attr",begin:r+"[ \t]*:",relevance:0},{begin:/\?/,end:/:/,relevance:0,contains:[i,s,a,o,"self"]},{className:"symbol",begin:"^[ \t]*"+n.lookahead(r+":"),excludeBegin:!0,end:r+":",relevance:0}],illegal:/#|<\//}}e.exports=n},88842:function(e){function t(e){const t=e.regex,n={$pattern:/[\w.\/]+/,built_in:["action","bindattr","collection","component","concat","debugger","each","each-in","get","hash","if","in","input","link-to","loc","log","lookup","mut","outlet","partial","query-params","render","template","textarea","unbound","unless","view","with","yield"]},r={$pattern:/[\w.\/]+/,literal:["true","false","undefined","null"]},i=/""|"[^"]+"/,a=/''|'[^']+'/,o=/\[\]|\[[^\]]+\]/,s=/[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/,l=/(\.|\/)/,c=t.either(i,a,o,s),u=t.concat(t.optional(/\.|\.\/|\//),c,t.anyNumberOfTimes(t.concat(l,c))),d=t.concat("(",o,"|",s,")(?==)"),h={begin:u},p=e.inherit(h,{keywords:r}),f={begin:/\(/,end:/\)/},m={className:"attr",begin:d,relevance:0,starts:{begin:/=/,end:/=/,starts:{contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,p,f]}}},g={begin:/as\s+\|/,keywords:{keyword:"as"},end:/\|/,contains:[{begin:/\w+/}]},v={contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,g,m,p,f],returnEnd:!0},b=e.inherit(h,{className:"name",keywords:n,starts:e.inherit(v,{end:/\)/})});f.contains=[b];const y=e.inherit(h,{keywords:n,className:"name",starts:e.inherit(v,{end:/\}\}/})}),_=e.inherit(h,{keywords:n,className:"name"}),w=e.inherit(h,{className:"name",keywords:n,starts:e.inherit(v,{end:/\}\}/})}),E={begin:/\\\{\{/,skip:!0},S={begin:/\\\\(?=\{\{)/,skip:!0};return{name:"Handlebars",aliases:["hbs","html.hbs","html.handlebars","htmlbars"],case_insensitive:!0,subLanguage:"xml",contains:[E,S,e.COMMENT(/\{\{!--/,/--\}\}/),e.COMMENT(/\{\{!/,/\}\}/),{className:"template-tag",begin:/\{\{\{\{(?!\/)/,end:/\}\}\}\}/,contains:[y],starts:{end:/\{\{\{\{\//,returnEnd:!0,subLanguage:"xml"}},{className:"template-tag",begin:/\{\{\{\{\//,end:/\}\}\}\}/,contains:[_]},{className:"template-tag",begin:/\{\{#/,end:/\}\}/,contains:[y]},{className:"template-tag",begin:/\{\{(?=else\}\})/,end:/\}\}/,keywords:"else"},{className:"template-tag",begin:/\{\{(?=else if)/,end:/\}\}/,keywords:"else if"},{className:"template-tag",begin:/\{\{\//,end:/\}\}/,contains:[_]},{className:"template-variable",begin:/\{\{\{/,end:/\}\}\}/,contains:[w]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[w]}]}}e.exports=t},74192:function(e){function t(e){const t={variants:[e.COMMENT("--","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},n={className:"meta",begin:/\{-#/,end:/#-\}/},r={className:"meta",begin:"^#",end:"$"},i={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},a={begin:"\\(",end:"\\)",illegal:'"',contains:[n,r,{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},e.inherit(e.TITLE_MODE,{begin:"[_a-z][\\w']*"}),t]},o={begin:/\{/,end:/\}/,contains:a.contains},s="([0-9]_*)+",l="([0-9a-fA-F]_*)+",c="([01]_*)+",u="([0-7]_*)+",d={className:"number",relevance:0,variants:[{match:`\\b(${s})(\\.(${s}))?([eE][+-]?(${s}))?\\b`},{match:`\\b0[xX]_*(${l})(\\.(${l}))?([pP][+-]?(${s}))?\\b`},{match:`\\b0[oO](${u})\\b`},{match:`\\b0[bB](${c})\\b`}]};return{name:"Haskell",aliases:["hs"],keywords:"let in if then else case of where do module import hiding qualified type data newtype deriving class instance as default infix infixl infixr foreign export ccall stdcall cplusplus jvm dotnet safe unsafe family forall mdo proc rec",contains:[{beginKeywords:"module",end:"where",keywords:"module where",contains:[a,t],illegal:"\\W\\.|;"},{begin:"\\bimport\\b",end:"$",keywords:"import qualified as hiding",contains:[a,t],illegal:"\\W\\.|;"},{className:"class",begin:"^(\\s*)?(class|instance)\\b",end:"where",keywords:"class family instance where",contains:[i,a,t]},{className:"class",begin:"\\b(data|(new)?type)\\b",end:"$",keywords:"data family type newtype deriving",contains:[n,i,a,o,t]},{beginKeywords:"default",end:"$",contains:[i,a,t]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,t]},{begin:"\\bforeign\\b",end:"$",keywords:"foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe",contains:[i,e.QUOTE_STRING_MODE,t]},{className:"meta",begin:"#!\\/usr\\/bin\\/env runhaskell",end:"$"},n,r,e.QUOTE_STRING_MODE,d,i,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),t,{begin:"->|<-"}]}}e.exports=t},99682:function(e){function t(e){const t=e.regex,n={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},r=e.COMMENT();r.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const i={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},a={className:"literal",begin:/\bon|off|true|false|yes|no\b/},o={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},s={begin:/\[/,end:/\]/,contains:[r,a,i,o,n,"self"],relevance:0},l=/[A-Za-z0-9_-]+/,c=/"(\\"|[^"])*"/,u=/'[^']*'/,d=t.either(l,c,u),h=t.concat(d,"(\\s*\\.\\s*",d,")*",t.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[r,{className:"section",begin:/\[+/,end:/\]+/},{begin:h,className:"attr",starts:{end:/$/,contains:[r,s,a,i,o,n]}}]}}e.exports=t},26418:function(e){var t="[0-9](_*[0-9])*",n=`\\.(${t})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",i={className:"number",variants:[{begin:`(\\b(${t})((${n})|\\.)?|(${n}))[eE][+-]?(${t})[fFdD]?\\b`},{begin:`\\b(${t})((${n})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${n})[fFdD]?\\b`},{begin:`\\b(${t})[fFdD]\\b`},{begin:`\\b0[xX]((${r})\\.?|(${r})?\\.(${r}))[pP][+-]?(${t})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${r})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function a(e,t,n){return-1===n?"":e.replace(t,r=>a(e,t,n-1))}function o(e){const t=e.regex,n="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",r=n+a("(?:<"+n+"~~~(?:\\s*,\\s*"+n+"~~~)*>)?",/~~~/g,2),o=["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed"],s=["super","this"],l=["false","true","null"],c=["char","boolean","long","float","int","byte","short","double"],u={keyword:o,literal:l,type:c,built_in:s},d={className:"meta",begin:"@"+n,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},h={className:"params",begin:/\(/,end:/\)/,keywords:u,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:u,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[t.concat(/(?!else)/,n),/\s+/,n,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,n],className:{1:"keyword",3:"title.class"},contains:[h,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+r+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:u,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:u,relevance:0,contains:[d,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,i,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},i,d]}}e.exports=o},73113:function(e){const t="[A-Za-z$_][0-9A-Za-z$_]*",n=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],r=["true","false","null","undefined","NaN","Infinity"],i=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],a=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],o=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],s=["arguments","this","super","console","window","document","localStorage","module","global"],l=[].concat(o,i,a);function c(e){const c=e.regex,u=(e,{after:t})=>{const n="</"+e[0].slice(1),r=e.input.indexOf(n,t);return-1!==r},d=t,h={begin:"<>",end:"</>"},p=/<[A-Za-z0-9\\._:-]+\s*\/>/,f={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,t)=>{const n=e[0].length+e.index,r=e.input[n];if("<"===r||","===r)return void t.ignoreMatch();let i;">"===r&&(u(e,{after:n})||t.ignoreMatch());const a=e.input.substring(n);(i=a.match(/^\s+extends\s+/))&&0===i.index&&t.ignoreMatch()}},m={$pattern:t,keyword:n,literal:r,built_in:l,"variable.language":s},g="[0-9](_?[0-9])*",v=`\\.(${g})`,b="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",y={className:"number",variants:[{begin:`(\\b(${b})((${v})|\\.)?|(${v}))[eE][+-]?(${g})\\b`},{begin:`\\b(${b})\\b((${v})\\b|\\.)?|(${v})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},_={className:"subst",begin:"\\$\\{",end:"\\}",keywords:m,contains:[]},w={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,_],subLanguage:"xml"}},E={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,_],subLanguage:"css"}},S={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,_]},k=e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:d+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),x={className:"comment",variants:[k,e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},A=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,w,E,S,y];_.contains=A.concat({begin:/\{/,end:/\}/,keywords:m,contains:["self"].concat(A)});const C=[].concat(x,_.contains),T=C.concat([{begin:/\(/,end:/\)/,keywords:m,contains:["self"].concat(C)}]),N={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:m,contains:T},R={variants:[{match:[/class/,/\s+/,d,/\s+/,/extends/,/\s+/,c.concat(d,"(",c.concat(/\./,d),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,d],scope:{1:"keyword",3:"title.class"}}]},O={relevance:0,match:c.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...i,...a]}},I={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},L={variants:[{match:[/function/,/\s+/,d,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[N],illegal:/%/},D={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function P(e){return c.concat("(?!",e.join("|"),")")}const M={match:c.concat(/\b/,P([...o,"super"]),d,c.lookahead(/\(/)),className:"title.function",relevance:0},B={begin:c.concat(/\./,c.lookahead(c.concat(d,/(?![0-9A-Za-z$_(])/))),end:d,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},F={match:[/get|set/,/\s+/,d,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},N]},$="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",U={match:[/const|var|let/,/\s+/,d,/\s*/,/=\s*/,/(async\s*)?/,c.lookahead($)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[N]};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:m,exports:{PARAMS_CONTAINS:T,CLASS_REFERENCE:O},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),I,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,w,E,S,x,y,O,{className:"attr",begin:d+c.lookahead(":"),relevance:0},U,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[x,e.REGEXP_MODE,{className:"function",begin:$,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:m,contains:T}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:h.begin,end:h.end},{match:p},{begin:f.begin,"on:begin":f.isTrulyOpeningTag,end:f.end}],subLanguage:"xml",contains:[{begin:f.begin,end:f.end,skip:!0,contains:["self"]}]}]},L,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[N,e.inherit(e.TITLE_MODE,{begin:d,className:"title.function"})]},{match:/\.\.\./,relevance:0},B,{match:"\\$"+d,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[N]},M,D,R,F,{match:/\$[(.]/}]}}e.exports=c},90020:function(e){function t(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},r=["true","false","null"],i={scope:"literal",beginKeywords:r.join(" ")};return{name:"JSON",keywords:{literal:r},contains:[t,n,e.QUOTE_STRING_MODE,i,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}e.exports=t},44063:function(e){var t="[0-9](_*[0-9])*",n=`\\.(${t})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",i={className:"number",variants:[{begin:`(\\b(${t})((${n})|\\.)?|(${n}))[eE][+-]?(${t})[fFdD]?\\b`},{begin:`\\b(${t})((${n})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${n})[fFdD]?\\b`},{begin:`\\b(${t})[fFdD]\\b`},{begin:`\\b0[xX]((${r})\\.?|(${r})?\\.(${r}))[pP][+-]?(${t})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${r})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function a(e){const t={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},n={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},r={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},a={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},o={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},s={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[o,a]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,o,a]}]};a.contains.push(s);const l={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},c={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(s,{className:"string"}),"self"]}]},u=i,d=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),h={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},p=h;return p.variants[1].contains=[h],h.variants[1].contains=[p],{name:"Kotlin",aliases:["kt","kts"],keywords:t,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,d,n,r,l,c,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:t,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[h,e.C_LINE_COMMENT_MODE,d],relevance:0},e.C_LINE_COMMENT_MODE,d,l,c,s,e.C_NUMBER_MODE]},d]},{begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},l,c]},s,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:"\n"},u]}}e.exports=a},1075:function(e){const t=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}),n=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],i=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],a=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],o=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse(),s=i.concat(a);function l(e){const l=t(e),c=s,u="and or not only",d="[\\w-]+",h="("+d+"|@\\{"+d+"\\})",p=[],f=[],m=function(e){return{className:"string",begin:"~?"+e+".*?"+e}},g=function(e,t,n){return{className:e,begin:t,relevance:n}},v={$pattern:/[a-z-]+/,keyword:u,attribute:r.join(" ")},b={begin:"\\(",end:"\\)",contains:f,keywords:v,relevance:0};f.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,m("'"),m('"'),l.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},l.HEXCOLOR,b,g("variable","@@?"+d,10),g("variable","@\\{"+d+"\\}"),g("built_in","~?`[^`]*?`"),{className:"attribute",begin:d+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},l.IMPORTANT,{beginKeywords:"and not"},l.FUNCTION_DISPATCH);const y=f.concat({begin:/\{/,end:/\}/,contains:p}),_={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(f)},w={begin:h+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},l.CSS_VARIABLE,{className:"attribute",begin:"\\b("+o.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:f}}]},E={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:v,returnEnd:!0,contains:f,relevance:0}},S={className:"variable",variants:[{begin:"@"+d+"\\s*:",relevance:15},{begin:"@"+d}],starts:{end:"[;}]",returnEnd:!0,contains:y}},k={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:h,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:"[<='$\"]",relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,_,g("keyword","all\\b"),g("variable","@\\{"+d+"\\}"),{begin:"\\b("+n.join("|")+")\\b",className:"selector-tag"},l.CSS_NUMBER_MODE,g("selector-tag",h,0),g("selector-id","#"+h),g("selector-class","\\."+h,0),g("selector-tag","&",0),l.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+i.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+a.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:y},{begin:"!important"},l.FUNCTION_DISPATCH]},x={begin:d+":(:)?"+`(${c.join("|")})`,returnBegin:!0,contains:[k]};return p.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,E,S,x,w,k,_,l.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:"[=>'/<($\"]",contains:p}}e.exports=l},8090:function(e){function t(e){const t="[a-zA-Z_\\-+\\*\\/<=>&#][a-zA-Z0-9_\\-+*\\/<=>&#!]*",n="\\|[^]*?\\|",r="(-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|-)?\\d+)?",i={className:"literal",begin:"\\b(t{1}|nil)\\b"},a={className:"number",variants:[{begin:r,relevance:0},{begin:"#(b|B)[0-1]+(/[0-1]+)?"},{begin:"#(o|O)[0-7]+(/[0-7]+)?"},{begin:"#(x|X)[0-9a-fA-F]+(/[0-9a-fA-F]+)?"},{begin:"#(c|C)\\("+r+" +"+r,end:"\\)"}]},o=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),s=e.COMMENT(";","$",{relevance:0}),l={begin:"\\*",end:"\\*"},c={className:"symbol",begin:"[:&]"+t},u={begin:t,relevance:0},d={begin:n},h={begin:"\\(",end:"\\)",contains:["self",i,o,a,u]},p={contains:[a,o,l,c,h,u],variants:[{begin:"['`]\\(",end:"\\)"},{begin:"\\(quote ",end:"\\)",keywords:{name:"quote"}},{begin:"'"+n}]},f={variants:[{begin:"'"+t},{begin:"#'"+t+"(::"+t+")*"}]},m={begin:"\\(\\s*",end:"\\)"},g={endsWithParent:!0,relevance:0};return m.contains=[{className:"name",variants:[{begin:t,relevance:0},{begin:n}]},g],g.contains=[p,f,m,i,a,o,s,l,c,d,u],{name:"Lisp",illegal:/\S/,contains:[a,e.SHEBANG(),i,o,s,p,f,m,u]}}e.exports=t},77190:function(e){function t(e){const t="\\[=*\\[",n="\\]=*\\]",r={begin:t,end:n,contains:["self"]},i=[e.COMMENT("--(?!"+t+")","$"),e.COMMENT("--"+t,n,{contains:[r],relevance:10})];return{name:"Lua",keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:i.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:i}].concat(i)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:t,end:n,contains:[r],relevance:5}])}}e.exports=t},30374:function(e){function t(e){const t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},n={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t]},r={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[t]},i={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},a={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},o={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[t]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[e.HASH_COMMENT_MODE,t,n,r,i,a,o]}}e.exports=t},50687:function(e){function t(e){const t=e.regex,n={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},r={begin:"^[-\\*]{3,}",end:"$"},i={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},a={className:"bullet",begin:"^[ \t]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},o={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},s=/[A-Za-z][A-Za-z0-9+.-]*/,l={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,s,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},c={className:"strong",contains:[],variants:[{begin:/_{2}/,end:/_{2}/},{begin:/\*{2}/,end:/\*{2}/}]},u={className:"emphasis",contains:[],variants:[{begin:/\*(?!\*)/,end:/\*/},{begin:/_(?!_)/,end:/_/,relevance:0}]},d=e.inherit(c,{contains:[]}),h=e.inherit(u,{contains:[]});c.contains.push(h),u.contains.push(d);let p=[n,l];[c,u,d,h].forEach(e=>{e.contains=e.contains.concat(p)}),p=p.concat(c,u);const f={className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:p},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:p}]}]},m={className:"quote",begin:"^>\\s+",contains:p,end:"$"};return{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[f,n,a,c,u,m,i,r,l,o]}}e.exports=t},86072:function(e){function t(e){const t=e.regex,n={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{\w+\}/},{begin:t.concat(/[$@]/,e.UNDERSCORE_IDENT_RE)}]},r=["on","off","yes","no","true","false","none","blocked","debug","info","notice","warn","error","crit","select","break","last","permanent","redirect","kqueue","rtsig","epoll","poll","/dev/poll"],i={endsWithParent:!0,keywords:{$pattern:/[a-z_]{2,}|\/dev\/poll/,literal:r},relevance:0,illegal:"=>",contains:[e.HASH_COMMENT_MODE,{className:"string",contains:[e.BACKSLASH_ESCAPE,n],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[n]},{className:"regexp",contains:[e.BACKSLASH_ESCAPE,n],variants:[{begin:"\\s\\^",end:"\\s|\\{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|\\{|;",returnEnd:!0},{begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number",begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{className:"number",begin:"\\b\\d+[kKmMgGdshdwy]?\\b",relevance:0},n]};return{name:"Nginx config",aliases:["nginxconf"],contains:[e.HASH_COMMENT_MODE,{beginKeywords:"upstream location",end:/;|\{/,contains:i.contains,keywords:{section:"upstream location"}},{className:"section",begin:t.concat(e.UNDERSCORE_IDENT_RE+t.lookahead(/\s+\{/)),relevance:0},{begin:t.lookahead(e.UNDERSCORE_IDENT_RE+"\\s"),end:";|\\{",contains:[{className:"attribute",begin:e.UNDERSCORE_IDENT_RE,starts:i}],relevance:0}],illegal:"[^\\s\\}\\{]"}}e.exports=t},69318:function(e){function t(e){const t={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},n=/[a-zA-Z@][a-zA-Z0-9_]*/,r=["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"],i=["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],a=["false","true","FALSE","TRUE","nil","YES","NO","NULL"],o=["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],s={"variable.language":["this","super"],$pattern:n,keyword:i,literal:a,built_in:o,type:r},l={$pattern:n,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:s,illegal:"</",contains:[t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+l.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:l,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}e.exports=t},3315:function(e){function t(e){const t=e.regex,n=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],r=/[dualxmsipngr]{0,12}/,i={$pattern:/[\w.]+/,keyword:n.join(" ")},a={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:i},o={begin:/->\{/,end:/\}/},s={variants:[{begin:/\$\d/},{begin:t.concat(/[$%@](\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@][^\s\w{]/,relevance:0}]},l=[e.BACKSLASH_ESCAPE,a,s],c=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],u=(e,n,i="\\1")=>{const a="\\1"===i?i:t.concat(i,n);return t.concat(t.concat("(?:",e,")"),n,/(?:\\.|[^\\\/])*?/,a,/(?:\\.|[^\\\/])*?/,i,r)},d=(e,n,i)=>t.concat(t.concat("(?:",e,")"),n,/(?:\\.|[^\\\/])*?/,i,r),h=[s,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),o,{className:"string",contains:l,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:u("s|tr|y",t.either(...c,{capture:!0}))},{begin:u("s|tr|y","\\(","\\)")},{begin:u("s|tr|y","\\[","\\]")},{begin:u("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:d("(?:m|qr)?",/\//,/\//)},{begin:d("m|qr",t.either(...c,{capture:!0}),/\1/)},{begin:d("m|qr",/\(/,/\)/)},{begin:d("m|qr",/\[/,/\]/)},{begin:d("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return a.contains=h,o.contains=h,{name:"Perl",aliases:["pl","pm"],keywords:i,contains:h}}e.exports=t},74071:function(e){function t(e){const t=e.COMMENT("--","$"),n="[a-zA-Z_][a-zA-Z_0-9$]*",r="\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$",i="<<\\s*"+n+"\\s*>>",a="ABORT ALTER ANALYZE BEGIN CALL CHECKPOINT|10 CLOSE CLUSTER COMMENT COMMIT COPY CREATE DEALLOCATE DECLARE DELETE DISCARD DO DROP END EXECUTE EXPLAIN FETCH GRANT IMPORT INSERT LISTEN LOAD LOCK MOVE NOTIFY PREPARE REASSIGN|10 REFRESH REINDEX RELEASE RESET REVOKE ROLLBACK SAVEPOINT SECURITY SELECT SET SHOW START TRUNCATE UNLISTEN|10 UPDATE VACUUM|10 VALUES AGGREGATE COLLATION CONVERSION|10 DATABASE DEFAULT PRIVILEGES DOMAIN TRIGGER EXTENSION FOREIGN WRAPPER|10 TABLE FUNCTION GROUP LANGUAGE LARGE OBJECT MATERIALIZED VIEW OPERATOR CLASS FAMILY POLICY PUBLICATION|10 ROLE RULE SCHEMA SEQUENCE SERVER STATISTICS SUBSCRIPTION SYSTEM TABLESPACE CONFIGURATION DICTIONARY PARSER TEMPLATE TYPE USER MAPPING PREPARED ACCESS METHOD CAST AS TRANSFORM TRANSACTION OWNED TO INTO SESSION AUTHORIZATION INDEX PROCEDURE ASSERTION ALL ANALYSE AND ANY ARRAY ASC ASYMMETRIC|10 BOTH CASE CHECK COLLATE COLUMN CONCURRENTLY|10 CONSTRAINT CROSS DEFERRABLE RANGE DESC DISTINCT ELSE EXCEPT FOR FREEZE|10 FROM FULL HAVING ILIKE IN INITIALLY INNER INTERSECT IS ISNULL JOIN LATERAL LEADING LIKE LIMIT NATURAL NOT NOTNULL NULL OFFSET ON ONLY OR ORDER OUTER OVERLAPS PLACING PRIMARY REFERENCES RETURNING SIMILAR SOME SYMMETRIC TABLESAMPLE THEN TRAILING UNION UNIQUE USING VARIADIC|10 VERBOSE WHEN WHERE WINDOW WITH BY RETURNS INOUT OUT SETOF|10 IF STRICT CURRENT CONTINUE OWNER LOCATION OVER PARTITION WITHIN BETWEEN ESCAPE EXTERNAL INVOKER DEFINER WORK RENAME VERSION CONNECTION CONNECT TABLES TEMP TEMPORARY FUNCTIONS SEQUENCES TYPES SCHEMAS OPTION CASCADE RESTRICT ADD ADMIN EXISTS VALID VALIDATE ENABLE DISABLE REPLICA|10 ALWAYS PASSING COLUMNS PATH REF VALUE OVERRIDING IMMUTABLE STABLE VOLATILE BEFORE AFTER EACH ROW PROCEDURAL ROUTINE NO HANDLER VALIDATOR OPTIONS STORAGE OIDS|10 WITHOUT INHERIT DEPENDS CALLED INPUT LEAKPROOF|10 COST ROWS NOWAIT SEARCH UNTIL ENCRYPTED|10 PASSWORD CONFLICT|10 INSTEAD INHERITS CHARACTERISTICS WRITE CURSOR ALSO STATEMENT SHARE EXCLUSIVE INLINE ISOLATION REPEATABLE READ COMMITTED SERIALIZABLE UNCOMMITTED LOCAL GLOBAL SQL PROCEDURES RECURSIVE SNAPSHOT ROLLUP CUBE TRUSTED|10 INCLUDE FOLLOWING PRECEDING UNBOUNDED RANGE GROUPS UNENCRYPTED|10 SYSID FORMAT DELIMITER HEADER QUOTE ENCODING FILTER OFF FORCE_QUOTE FORCE_NOT_NULL FORCE_NULL COSTS BUFFERS TIMING SUMMARY DISABLE_PAGE_SKIPPING RESTART CYCLE GENERATED IDENTITY DEFERRED IMMEDIATE LEVEL LOGGED UNLOGGED OF NOTHING NONE EXCLUDE ATTRIBUTE USAGE ROUTINES TRUE FALSE NAN INFINITY ",o="SUPERUSER NOSUPERUSER CREATEDB NOCREATEDB CREATEROLE NOCREATEROLE INHERIT NOINHERIT LOGIN NOLOGIN REPLICATION NOREPLICATION BYPASSRLS NOBYPASSRLS ",s="ALIAS BEGIN CONSTANT DECLARE END EXCEPTION RETURN PERFORM|10 RAISE GET DIAGNOSTICS STACKED|10 FOREACH LOOP ELSIF EXIT WHILE REVERSE SLICE DEBUG LOG INFO NOTICE WARNING ASSERT OPEN ",l="BIGINT INT8 BIGSERIAL SERIAL8 BIT VARYING VARBIT BOOLEAN BOOL BOX BYTEA CHARACTER CHAR VARCHAR CIDR CIRCLE DATE DOUBLE PRECISION FLOAT8 FLOAT INET INTEGER INT INT4 INTERVAL JSON JSONB LINE LSEG|10 MACADDR MACADDR8 MONEY NUMERIC DEC DECIMAL PATH POINT POLYGON REAL FLOAT4 SMALLINT INT2 SMALLSERIAL|10 SERIAL2|10 SERIAL|10 SERIAL4|10 TEXT TIME ZONE TIMETZ|10 TIMESTAMP TIMESTAMPTZ|10 TSQUERY|10 TSVECTOR|10 TXID_SNAPSHOT|10 UUID XML NATIONAL NCHAR INT4RANGE|10 INT8RANGE|10 NUMRANGE|10 TSRANGE|10 TSTZRANGE|10 DATERANGE|10 ANYELEMENT ANYARRAY ANYNONARRAY ANYENUM ANYRANGE CSTRING INTERNAL RECORD PG_DDL_COMMAND VOID UNKNOWN OPAQUE REFCURSOR NAME OID REGPROC|10 REGPROCEDURE|10 REGOPER|10 REGOPERATOR|10 REGCLASS|10 REGTYPE|10 REGROLE|10 REGNAMESPACE|10 REGCONFIG|10 REGDICTIONARY|10 ",c=l.trim().split(" ").map(function(e){return e.split("|")[0]}).join("|"),u="CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURRENT_CATALOG|10 CURRENT_DATE LOCALTIME LOCALTIMESTAMP CURRENT_ROLE|10 CURRENT_SCHEMA|10 SESSION_USER PUBLIC ",d="FOUND NEW OLD TG_NAME|10 TG_WHEN|10 TG_LEVEL|10 TG_OP|10 TG_RELID|10 TG_RELNAME|10 TG_TABLE_NAME|10 TG_TABLE_SCHEMA|10 TG_NARGS|10 TG_ARGV|10 TG_EVENT|10 TG_TAG|10 ROW_COUNT RESULT_OID|10 PG_CONTEXT|10 RETURNED_SQLSTATE COLUMN_NAME CONSTRAINT_NAME PG_DATATYPE_NAME|10 MESSAGE_TEXT TABLE_NAME SCHEMA_NAME PG_EXCEPTION_DETAIL|10 PG_EXCEPTION_HINT|10 PG_EXCEPTION_CONTEXT|10 ",h="SQLSTATE SQLERRM|10 SUCCESSFUL_COMPLETION WARNING DYNAMIC_RESULT_SETS_RETURNED IMPLICIT_ZERO_BIT_PADDING NULL_VALUE_ELIMINATED_IN_SET_FUNCTION PRIVILEGE_NOT_GRANTED PRIVILEGE_NOT_REVOKED STRING_DATA_RIGHT_TRUNCATION DEPRECATED_FEATURE NO_DATA NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED SQL_STATEMENT_NOT_YET_COMPLETE CONNECTION_EXCEPTION CONNECTION_DOES_NOT_EXIST CONNECTION_FAILURE SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION TRANSACTION_RESOLUTION_UNKNOWN PROTOCOL_VIOLATION TRIGGERED_ACTION_EXCEPTION FEATURE_NOT_SUPPORTED INVALID_TRANSACTION_INITIATION LOCATOR_EXCEPTION INVALID_LOCATOR_SPECIFICATION INVALID_GRANTOR INVALID_GRANT_OPERATION INVALID_ROLE_SPECIFICATION DIAGNOSTICS_EXCEPTION STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER CASE_NOT_FOUND CARDINALITY_VIOLATION DATA_EXCEPTION ARRAY_SUBSCRIPT_ERROR CHARACTER_NOT_IN_REPERTOIRE DATETIME_FIELD_OVERFLOW DIVISION_BY_ZERO ERROR_IN_ASSIGNMENT ESCAPE_CHARACTER_CONFLICT INDICATOR_OVERFLOW INTERVAL_FIELD_OVERFLOW INVALID_ARGUMENT_FOR_LOGARITHM INVALID_ARGUMENT_FOR_NTILE_FUNCTION INVALID_ARGUMENT_FOR_NTH_VALUE_FUNCTION INVALID_ARGUMENT_FOR_POWER_FUNCTION INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION INVALID_CHARACTER_VALUE_FOR_CAST INVALID_DATETIME_FORMAT INVALID_ESCAPE_CHARACTER INVALID_ESCAPE_OCTET INVALID_ESCAPE_SEQUENCE NONSTANDARD_USE_OF_ESCAPE_CHARACTER INVALID_INDICATOR_PARAMETER_VALUE INVALID_PARAMETER_VALUE INVALID_REGULAR_EXPRESSION INVALID_ROW_COUNT_IN_LIMIT_CLAUSE INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE INVALID_TABLESAMPLE_ARGUMENT INVALID_TABLESAMPLE_REPEAT INVALID_TIME_ZONE_DISPLACEMENT_VALUE INVALID_USE_OF_ESCAPE_CHARACTER MOST_SPECIFIC_TYPE_MISMATCH NULL_VALUE_NOT_ALLOWED NULL_VALUE_NO_INDICATOR_PARAMETER NUMERIC_VALUE_OUT_OF_RANGE SEQUENCE_GENERATOR_LIMIT_EXCEEDED STRING_DATA_LENGTH_MISMATCH STRING_DATA_RIGHT_TRUNCATION SUBSTRING_ERROR TRIM_ERROR UNTERMINATED_C_STRING ZERO_LENGTH_CHARACTER_STRING FLOATING_POINT_EXCEPTION INVALID_TEXT_REPRESENTATION INVALID_BINARY_REPRESENTATION BAD_COPY_FILE_FORMAT UNTRANSLATABLE_CHARACTER NOT_AN_XML_DOCUMENT INVALID_XML_DOCUMENT INVALID_XML_CONTENT INVALID_XML_COMMENT INVALID_XML_PROCESSING_INSTRUCTION INTEGRITY_CONSTRAINT_VIOLATION RESTRICT_VIOLATION NOT_NULL_VIOLATION FOREIGN_KEY_VIOLATION UNIQUE_VIOLATION CHECK_VIOLATION EXCLUSION_VIOLATION INVALID_CURSOR_STATE INVALID_TRANSACTION_STATE ACTIVE_SQL_TRANSACTION BRANCH_TRANSACTION_ALREADY_ACTIVE HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION READ_ONLY_SQL_TRANSACTION SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED NO_ACTIVE_SQL_TRANSACTION IN_FAILED_SQL_TRANSACTION IDLE_IN_TRANSACTION_SESSION_TIMEOUT INVALID_SQL_STATEMENT_NAME TRIGGERED_DATA_CHANGE_VIOLATION INVALID_AUTHORIZATION_SPECIFICATION INVALID_PASSWORD DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST DEPENDENT_OBJECTS_STILL_EXIST INVALID_TRANSACTION_TERMINATION SQL_ROUTINE_EXCEPTION FUNCTION_EXECUTED_NO_RETURN_STATEMENT MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED INVALID_CURSOR_NAME EXTERNAL_ROUTINE_EXCEPTION CONTAINING_SQL_NOT_PERMITTED MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED EXTERNAL_ROUTINE_INVOCATION_EXCEPTION INVALID_SQLSTATE_RETURNED NULL_VALUE_NOT_ALLOWED TRIGGER_PROTOCOL_VIOLATED SRF_PROTOCOL_VIOLATED EVENT_TRIGGER_PROTOCOL_VIOLATED SAVEPOINT_EXCEPTION INVALID_SAVEPOINT_SPECIFICATION INVALID_CATALOG_NAME INVALID_SCHEMA_NAME TRANSACTION_ROLLBACK TRANSACTION_INTEGRITY_CONSTRAINT_VIOLATION SERIALIZATION_FAILURE STATEMENT_COMPLETION_UNKNOWN DEADLOCK_DETECTED SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION SYNTAX_ERROR INSUFFICIENT_PRIVILEGE CANNOT_COERCE GROUPING_ERROR WINDOWING_ERROR INVALID_RECURSION INVALID_FOREIGN_KEY INVALID_NAME NAME_TOO_LONG RESERVED_NAME DATATYPE_MISMATCH INDETERMINATE_DATATYPE COLLATION_MISMATCH INDETERMINATE_COLLATION WRONG_OBJECT_TYPE GENERATED_ALWAYS UNDEFINED_COLUMN UNDEFINED_FUNCTION UNDEFINED_TABLE UNDEFINED_PARAMETER UNDEFINED_OBJECT DUPLICATE_COLUMN DUPLICATE_CURSOR DUPLICATE_DATABASE DUPLICATE_FUNCTION DUPLICATE_PREPARED_STATEMENT DUPLICATE_SCHEMA DUPLICATE_TABLE DUPLICATE_ALIAS DUPLICATE_OBJECT AMBIGUOUS_COLUMN AMBIGUOUS_FUNCTION AMBIGUOUS_PARAMETER AMBIGUOUS_ALIAS INVALID_COLUMN_REFERENCE INVALID_COLUMN_DEFINITION INVALID_CURSOR_DEFINITION INVALID_DATABASE_DEFINITION INVALID_FUNCTION_DEFINITION INVALID_PREPARED_STATEMENT_DEFINITION INVALID_SCHEMA_DEFINITION INVALID_TABLE_DEFINITION INVALID_OBJECT_DEFINITION WITH_CHECK_OPTION_VIOLATION INSUFFICIENT_RESOURCES DISK_FULL OUT_OF_MEMORY TOO_MANY_CONNECTIONS CONFIGURATION_LIMIT_EXCEEDED PROGRAM_LIMIT_EXCEEDED STATEMENT_TOO_COMPLEX TOO_MANY_COLUMNS TOO_MANY_ARGUMENTS OBJECT_NOT_IN_PREREQUISITE_STATE OBJECT_IN_USE CANT_CHANGE_RUNTIME_PARAM LOCK_NOT_AVAILABLE OPERATOR_INTERVENTION QUERY_CANCELED ADMIN_SHUTDOWN CRASH_SHUTDOWN CANNOT_CONNECT_NOW DATABASE_DROPPED SYSTEM_ERROR IO_ERROR UNDEFINED_FILE DUPLICATE_FILE SNAPSHOT_TOO_OLD CONFIG_FILE_ERROR LOCK_FILE_EXISTS FDW_ERROR FDW_COLUMN_NAME_NOT_FOUND FDW_DYNAMIC_PARAMETER_VALUE_NEEDED FDW_FUNCTION_SEQUENCE_ERROR FDW_INCONSISTENT_DESCRIPTOR_INFORMATION FDW_INVALID_ATTRIBUTE_VALUE FDW_INVALID_COLUMN_NAME FDW_INVALID_COLUMN_NUMBER FDW_INVALID_DATA_TYPE FDW_INVALID_DATA_TYPE_DESCRIPTORS FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER FDW_INVALID_HANDLE FDW_INVALID_OPTION_INDEX FDW_INVALID_OPTION_NAME FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH FDW_INVALID_STRING_FORMAT FDW_INVALID_USE_OF_NULL_POINTER FDW_TOO_MANY_HANDLES FDW_OUT_OF_MEMORY FDW_NO_SCHEMAS FDW_OPTION_NAME_NOT_FOUND FDW_REPLY_HANDLE FDW_SCHEMA_NOT_FOUND FDW_TABLE_NOT_FOUND FDW_UNABLE_TO_CREATE_EXECUTION FDW_UNABLE_TO_CREATE_REPLY FDW_UNABLE_TO_ESTABLISH_CONNECTION PLPGSQL_ERROR RAISE_EXCEPTION NO_DATA_FOUND TOO_MANY_ROWS ASSERT_FAILURE INTERNAL_ERROR DATA_CORRUPTED INDEX_CORRUPTED ",p="ARRAY_AGG AVG BIT_AND BIT_OR BOOL_AND BOOL_OR COUNT EVERY JSON_AGG JSONB_AGG JSON_OBJECT_AGG JSONB_OBJECT_AGG MAX MIN MODE STRING_AGG SUM XMLAGG CORR COVAR_POP COVAR_SAMP REGR_AVGX REGR_AVGY REGR_COUNT REGR_INTERCEPT REGR_R2 REGR_SLOPE REGR_SXX REGR_SXY REGR_SYY STDDEV STDDEV_POP STDDEV_SAMP VARIANCE VAR_POP VAR_SAMP PERCENTILE_CONT PERCENTILE_DISC ROW_NUMBER RANK DENSE_RANK PERCENT_RANK CUME_DIST NTILE LAG LEAD FIRST_VALUE LAST_VALUE NTH_VALUE NUM_NONNULLS NUM_NULLS ABS CBRT CEIL CEILING DEGREES DIV EXP FLOOR LN LOG MOD PI POWER RADIANS ROUND SCALE SIGN SQRT TRUNC WIDTH_BUCKET RANDOM SETSEED ACOS ACOSD ASIN ASIND ATAN ATAND ATAN2 ATAN2D COS COSD COT COTD SIN SIND TAN TAND BIT_LENGTH CHAR_LENGTH CHARACTER_LENGTH LOWER OCTET_LENGTH OVERLAY POSITION SUBSTRING TREAT TRIM UPPER ASCII BTRIM CHR CONCAT CONCAT_WS CONVERT CONVERT_FROM CONVERT_TO DECODE ENCODE INITCAP LEFT LENGTH LPAD LTRIM MD5 PARSE_IDENT PG_CLIENT_ENCODING QUOTE_IDENT|10 QUOTE_LITERAL|10 QUOTE_NULLABLE|10 REGEXP_MATCH REGEXP_MATCHES REGEXP_REPLACE REGEXP_SPLIT_TO_ARRAY REGEXP_SPLIT_TO_TABLE REPEAT REPLACE REVERSE RIGHT RPAD RTRIM SPLIT_PART STRPOS SUBSTR TO_ASCII TO_HEX TRANSLATE OCTET_LENGTH GET_BIT GET_BYTE SET_BIT SET_BYTE TO_CHAR TO_DATE TO_NUMBER TO_TIMESTAMP AGE CLOCK_TIMESTAMP|10 DATE_PART DATE_TRUNC ISFINITE JUSTIFY_DAYS JUSTIFY_HOURS JUSTIFY_INTERVAL MAKE_DATE MAKE_INTERVAL|10 MAKE_TIME MAKE_TIMESTAMP|10 MAKE_TIMESTAMPTZ|10 NOW STATEMENT_TIMESTAMP|10 TIMEOFDAY TRANSACTION_TIMESTAMP|10 ENUM_FIRST ENUM_LAST ENUM_RANGE AREA CENTER DIAMETER HEIGHT ISCLOSED ISOPEN NPOINTS PCLOSE POPEN RADIUS WIDTH BOX BOUND_BOX CIRCLE LINE LSEG PATH POLYGON ABBREV BROADCAST HOST HOSTMASK MASKLEN NETMASK NETWORK SET_MASKLEN TEXT INET_SAME_FAMILY INET_MERGE MACADDR8_SET7BIT ARRAY_TO_TSVECTOR GET_CURRENT_TS_CONFIG NUMNODE PLAINTO_TSQUERY PHRASETO_TSQUERY WEBSEARCH_TO_TSQUERY QUERYTREE SETWEIGHT STRIP TO_TSQUERY TO_TSVECTOR JSON_TO_TSVECTOR JSONB_TO_TSVECTOR TS_DELETE TS_FILTER TS_HEADLINE TS_RANK TS_RANK_CD TS_REWRITE TSQUERY_PHRASE TSVECTOR_TO_ARRAY TSVECTOR_UPDATE_TRIGGER TSVECTOR_UPDATE_TRIGGER_COLUMN XMLCOMMENT XMLCONCAT XMLELEMENT XMLFOREST XMLPI XMLROOT XMLEXISTS XML_IS_WELL_FORMED XML_IS_WELL_FORMED_DOCUMENT XML_IS_WELL_FORMED_CONTENT XPATH XPATH_EXISTS XMLTABLE XMLNAMESPACES TABLE_TO_XML TABLE_TO_XMLSCHEMA TABLE_TO_XML_AND_XMLSCHEMA QUERY_TO_XML QUERY_TO_XMLSCHEMA QUERY_TO_XML_AND_XMLSCHEMA CURSOR_TO_XML CURSOR_TO_XMLSCHEMA SCHEMA_TO_XML SCHEMA_TO_XMLSCHEMA SCHEMA_TO_XML_AND_XMLSCHEMA DATABASE_TO_XML DATABASE_TO_XMLSCHEMA DATABASE_TO_XML_AND_XMLSCHEMA XMLATTRIBUTES TO_JSON TO_JSONB ARRAY_TO_JSON ROW_TO_JSON JSON_BUILD_ARRAY JSONB_BUILD_ARRAY JSON_BUILD_OBJECT JSONB_BUILD_OBJECT JSON_OBJECT JSONB_OBJECT JSON_ARRAY_LENGTH JSONB_ARRAY_LENGTH JSON_EACH JSONB_EACH JSON_EACH_TEXT JSONB_EACH_TEXT JSON_EXTRACT_PATH JSONB_EXTRACT_PATH JSON_OBJECT_KEYS JSONB_OBJECT_KEYS JSON_POPULATE_RECORD JSONB_POPULATE_RECORD JSON_POPULATE_RECORDSET JSONB_POPULATE_RECORDSET JSON_ARRAY_ELEMENTS JSONB_ARRAY_ELEMENTS JSON_ARRAY_ELEMENTS_TEXT JSONB_ARRAY_ELEMENTS_TEXT JSON_TYPEOF JSONB_TYPEOF JSON_TO_RECORD JSONB_TO_RECORD JSON_TO_RECORDSET JSONB_TO_RECORDSET JSON_STRIP_NULLS JSONB_STRIP_NULLS JSONB_SET JSONB_INSERT JSONB_PRETTY CURRVAL LASTVAL NEXTVAL SETVAL COALESCE NULLIF GREATEST LEAST ARRAY_APPEND ARRAY_CAT ARRAY_NDIMS ARRAY_DIMS ARRAY_FILL ARRAY_LENGTH ARRAY_LOWER ARRAY_POSITION ARRAY_POSITIONS ARRAY_PREPEND ARRAY_REMOVE ARRAY_REPLACE ARRAY_TO_STRING ARRAY_UPPER CARDINALITY STRING_TO_ARRAY UNNEST ISEMPTY LOWER_INC UPPER_INC LOWER_INF UPPER_INF RANGE_MERGE GENERATE_SERIES GENERATE_SUBSCRIPTS CURRENT_DATABASE CURRENT_QUERY CURRENT_SCHEMA|10 CURRENT_SCHEMAS|10 INET_CLIENT_ADDR INET_CLIENT_PORT INET_SERVER_ADDR INET_SERVER_PORT ROW_SECURITY_ACTIVE FORMAT_TYPE TO_REGCLASS TO_REGPROC TO_REGPROCEDURE TO_REGOPER TO_REGOPERATOR TO_REGTYPE TO_REGNAMESPACE TO_REGROLE COL_DESCRIPTION OBJ_DESCRIPTION SHOBJ_DESCRIPTION TXID_CURRENT TXID_CURRENT_IF_ASSIGNED TXID_CURRENT_SNAPSHOT TXID_SNAPSHOT_XIP TXID_SNAPSHOT_XMAX TXID_SNAPSHOT_XMIN TXID_VISIBLE_IN_SNAPSHOT TXID_STATUS CURRENT_SETTING SET_CONFIG BRIN_SUMMARIZE_NEW_VALUES BRIN_SUMMARIZE_RANGE BRIN_DESUMMARIZE_RANGE GIN_CLEAN_PENDING_LIST SUPPRESS_REDUNDANT_UPDATES_TRIGGER LO_FROM_BYTEA LO_PUT LO_GET LO_CREAT LO_CREATE LO_UNLINK LO_IMPORT LO_EXPORT LOREAD LOWRITE GROUPING CAST ",f=p.trim().split(" ").map(function(e){return e.split("|")[0]}).join("|");return{name:"PostgreSQL",aliases:["postgres","postgresql"],supersetOf:"sql",case_insensitive:!0,keywords:{keyword:a+s+o,built_in:u+d+h},illegal:/:==|\W\s*\(\*|(^|\s)\$[a-z]|\{\{|[a-z]:\s*$|\.\.\.|TO:|DO:/,contains:[{className:"keyword",variants:[{begin:/\bTEXT\s*SEARCH\b/},{begin:/\b(PRIMARY|FOREIGN|FOR(\s+NO)?)\s+KEY\b/},{begin:/\bPARALLEL\s+(UNSAFE|RESTRICTED|SAFE)\b/},{begin:/\bSTORAGE\s+(PLAIN|EXTERNAL|EXTENDED|MAIN)\b/},{begin:/\bMATCH\s+(FULL|PARTIAL|SIMPLE)\b/},{begin:/\bNULLS\s+(FIRST|LAST)\b/},{begin:/\bEVENT\s+TRIGGER\b/},{begin:/\b(MAPPING|OR)\s+REPLACE\b/},{begin:/\b(FROM|TO)\s+(PROGRAM|STDIN|STDOUT)\b/},{begin:/\b(SHARE|EXCLUSIVE)\s+MODE\b/},{begin:/\b(LEFT|RIGHT)\s+(OUTER\s+)?JOIN\b/},{begin:/\b(FETCH|MOVE)\s+(NEXT|PRIOR|FIRST|LAST|ABSOLUTE|RELATIVE|FORWARD|BACKWARD)\b/},{begin:/\bPRESERVE\s+ROWS\b/},{begin:/\bDISCARD\s+PLANS\b/},{begin:/\bREFERENCING\s+(OLD|NEW)\b/},{begin:/\bSKIP\s+LOCKED\b/},{begin:/\bGROUPING\s+SETS\b/},{begin:/\b(BINARY|INSENSITIVE|SCROLL|NO\s+SCROLL)\s+(CURSOR|FOR)\b/},{begin:/\b(WITH|WITHOUT)\s+HOLD\b/},{begin:/\bWITH\s+(CASCADED|LOCAL)\s+CHECK\s+OPTION\b/},{begin:/\bEXCLUDE\s+(TIES|NO\s+OTHERS)\b/},{begin:/\bFORMAT\s+(TEXT|XML|JSON|YAML)\b/},{begin:/\bSET\s+((SESSION|LOCAL)\s+)?NAMES\b/},{begin:/\bIS\s+(NOT\s+)?UNKNOWN\b/},{begin:/\bSECURITY\s+LABEL\b/},{begin:/\bSTANDALONE\s+(YES|NO|NO\s+VALUE)\b/},{begin:/\bWITH\s+(NO\s+)?DATA\b/},{begin:/\b(FOREIGN|SET)\s+DATA\b/},{begin:/\bSET\s+(CATALOG|CONSTRAINTS)\b/},{begin:/\b(WITH|FOR)\s+ORDINALITY\b/},{begin:/\bIS\s+(NOT\s+)?DOCUMENT\b/},{begin:/\bXML\s+OPTION\s+(DOCUMENT|CONTENT)\b/},{begin:/\b(STRIP|PRESERVE)\s+WHITESPACE\b/},{begin:/\bNO\s+(ACTION|MAXVALUE|MINVALUE)\b/},{begin:/\bPARTITION\s+BY\s+(RANGE|LIST|HASH)\b/},{begin:/\bAT\s+TIME\s+ZONE\b/},{begin:/\bGRANTED\s+BY\b/},{begin:/\bRETURN\s+(QUERY|NEXT)\b/},{begin:/\b(ATTACH|DETACH)\s+PARTITION\b/},{begin:/\bFORCE\s+ROW\s+LEVEL\s+SECURITY\b/},{begin:/\b(INCLUDING|EXCLUDING)\s+(COMMENTS|CONSTRAINTS|DEFAULTS|IDENTITY|INDEXES|STATISTICS|STORAGE|ALL)\b/},{begin:/\bAS\s+(ASSIGNMENT|IMPLICIT|PERMISSIVE|RESTRICTIVE|ENUM|RANGE)\b/}]},{begin:/\b(FORMAT|FAMILY|VERSION)\s*\(/},{begin:/\bINCLUDE\s*\(/,keywords:"INCLUDE"},{begin:/\bRANGE(?!\s*(BETWEEN|UNBOUNDED|CURRENT|[-0-9]+))/},{begin:/\b(VERSION|OWNER|TEMPLATE|TABLESPACE|CONNECTION\s+LIMIT|PROCEDURE|RESTRICT|JOIN|PARSER|COPY|START|END|COLLATION|INPUT|ANALYZE|STORAGE|LIKE|DEFAULT|DELIMITER|ENCODING|COLUMN|CONSTRAINT|TABLE|SCHEMA)\s*=/},{begin:/\b(PG_\w+?|HAS_[A-Z_]+_PRIVILEGE)\b/,relevance:10},{begin:/\bEXTRACT\s*\(/,end:/\bFROM\b/,returnEnd:!0,keywords:{type:"CENTURY DAY DECADE DOW DOY EPOCH HOUR ISODOW ISOYEAR MICROSECONDS MILLENNIUM MILLISECONDS MINUTE MONTH QUARTER SECOND TIMEZONE TIMEZONE_HOUR TIMEZONE_MINUTE WEEK YEAR"}},{begin:/\b(XMLELEMENT|XMLPI)\s*\(\s*NAME/,keywords:{keyword:"NAME"}},{begin:/\b(XMLPARSE|XMLSERIALIZE)\s*\(\s*(DOCUMENT|CONTENT)/,keywords:{keyword:"DOCUMENT CONTENT"}},{beginKeywords:"CACHE INCREMENT MAXVALUE MINVALUE",end:e.C_NUMBER_RE,returnEnd:!0,keywords:"BY CACHE INCREMENT MAXVALUE MINVALUE"},{className:"type",begin:/\b(WITH|WITHOUT)\s+TIME\s+ZONE\b/},{className:"type",begin:/\bINTERVAL\s+(YEAR|MONTH|DAY|HOUR|MINUTE|SECOND)(\s+TO\s+(MONTH|HOUR|MINUTE|SECOND))?\b/},{begin:/\bRETURNS\s+(LANGUAGE_HANDLER|TRIGGER|EVENT_TRIGGER|FDW_HANDLER|INDEX_AM_HANDLER|TSM_HANDLER)\b/,keywords:{keyword:"RETURNS",type:"LANGUAGE_HANDLER TRIGGER EVENT_TRIGGER FDW_HANDLER INDEX_AM_HANDLER TSM_HANDLER"}},{begin:"\\b("+f+")\\s*\\("},{begin:"\\.("+c+")\\b"},{begin:"\\b("+c+")\\s+PATH\\b",keywords:{keyword:"PATH",type:l.replace("PATH ","")}},{className:"type",begin:"\\b("+c+")\\b"},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{className:"string",begin:"(e|E|u&|U&)'",end:"'",contains:[{begin:"\\\\."}],relevance:10},e.END_SAME_AS_BEGIN({begin:r,end:r,contains:[{subLanguage:["pgsql","perl","python","tcl","r","lua","java","php","ruby","bash","scheme","xml","json"],endsWithParent:!0}]}),{begin:'"',end:'"',contains:[{begin:'""'}]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,t,{className:"meta",variants:[{begin:"%(ROW)?TYPE",relevance:10},{begin:"\\$\\d+"},{begin:"^#\\w",end:"$"}]},{className:"symbol",begin:i,relevance:10}]}}e.exports=t},37592:function(e){function t(e){const t=e.regex,n=/(?![A-Za-z0-9])(?![$])/,r=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),i=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),a={scope:"variable",match:"\\$+"+r},o={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},s={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},l=e.inherit(e.APOS_STRING_MODE,{illegal:null}),c=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(s)}),u=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*(\w+)\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(s)}),d="[ \t\n]",h={scope:"string",variants:[c,l,u]},p={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},f=["false","null","true"],m=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],g=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],v=e=>{const t=[];return e.forEach(e=>{t.push(e),e.toLowerCase()===e?t.push(e.toUpperCase()):t.push(e.toLowerCase())}),t},b={keyword:m,literal:v(f),built_in:g},y=e=>e.map(e=>e.replace(/\|\d+$/,"")),_={variants:[{match:[/new/,t.concat(d,"+"),t.concat("(?!",y(g).join("\\b|"),"\\b)"),i],scope:{1:"keyword",4:"title.class"}}]},w=t.concat(r,"\\b(?!\\()"),E={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),w],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[i,t.concat(/::/,t.lookahead(/(?!class\b)/)),w],scope:{1:"title.class",3:"variable.constant"}},{match:[i,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[i,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},S={scope:"attr",match:t.concat(r,t.lookahead(":"),t.lookahead(/(?!::)/))},k={relevance:0,begin:/\(/,end:/\)/,keywords:b,contains:[S,a,E,e.C_BLOCK_COMMENT_MODE,h,p,_]},x={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",y(m).join("\\b|"),"|",y(g).join("\\b|"),"\\b)"),r,t.concat(d,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[k]};k.contains.push(x);const A=[S,E,e.C_BLOCK_COMMENT_MODE,h,p,_],C={begin:t.concat(/#\[\s*/,i),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:f,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:f,keyword:["new","array"]},contains:["self",...A]},...A,{scope:"meta",match:i}]};return{case_insensitive:!1,keywords:b,contains:[C,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},o,{scope:"variable.language",match:/\$this\b/},a,x,E,{match:[/const/,/\s/,r],scope:{1:"keyword",3:"variable.constant"}},_,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:b,contains:["self",a,E,e.C_BLOCK_COMMENT_MODE,h,p]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},h,p]}}e.exports=t},50619:function(e){function t(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}e.exports=t},45107:function(e){function t(e){const t=["string","char","byte","int","long","bool","decimal","single","double","DateTime","xml","array","hashtable","void"],n="Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where",r="-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor",i={$pattern:/-?[A-z\.\-]+\b/,keyword:"if else foreach return do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch hidden static parameter",built_in:"ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write"},a=/\w[\w\d]*((-)[\w\d]+)*/,o={begin:"`[\\s\\S]",relevance:0},s={className:"variable",variants:[{begin:/\$\B/},{className:"keyword",begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}]},l={className:"literal",begin:/\$(null|true|false)\b/},c={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[o,s,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},u={className:"string",variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},d={className:"doctag",variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]},h=e.inherit(e.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[d]}),p={className:"built_in",variants:[{begin:"(".concat(n,")+(-)[\\w\\d]+")}]},f={className:"class",beginKeywords:"class enum",end:/\s*[{]/,excludeEnd:!0,relevance:0,contains:[e.TITLE_MODE]},m={className:"function",begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0,contains:[{begin:"function",relevance:0,className:"keyword"},{className:"title",begin:a,relevance:0},{begin:/\(/,end:/\)/,className:"params",relevance:0,contains:[s]}]},g={begin:/using\s/,end:/$/,returnBegin:!0,contains:[c,u,{className:"keyword",begin:/(using|assembly|command|module|namespace|type)/}]},v={variants:[{className:"operator",begin:"(".concat(r,")\\b")},{className:"literal",begin:/(-){1,2}[\w\d-]+/,relevance:0}]},b={className:"selector-tag",begin:/@\B/,relevance:0},y={className:"function",begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:"keyword",begin:"(".concat(i.keyword.toString().replace(/\s/g,"|"),")\\b"),endsParent:!0,relevance:0},e.inherit(e.TITLE_MODE,{endsParent:!0})]},_=[y,h,o,e.NUMBER_MODE,c,u,p,s,l,b],w={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[].concat("self",_,{begin:"("+t.join("|")+")",className:"built_in",relevance:0},{className:"type",begin:/[\.\w\d]+/,relevance:0})};return y.contains.unshift(w),{name:"PowerShell",aliases:["pwsh","ps","ps1"],case_insensitive:!0,keywords:i,contains:_.concat(f,m,g,v,w)}}e.exports=t},76015:function(e){function t(e){const t="[ \\t\\f]*",n="[ \\t\\f]+",r=t+"[:=]"+t,i=n,a="("+r+"|"+i+")",o="([^\\\\:= \\t\\f\\n]|\\\\.)+",s={end:a,relevance:0,starts:{className:"string",end:/$/,relevance:0,contains:[{begin:"\\\\\\\\"},{begin:"\\\\\\n"}]}};return{name:".properties",disableAutodetect:!0,case_insensitive:!0,illegal:/\S/,contains:[e.COMMENT("^\\s*[!#]","$"),{returnBegin:!0,variants:[{begin:o+r},{begin:o+i}],contains:[{className:"attr",begin:o,endsParent:!0}],starts:s},{className:"attr",begin:o+t+"$"}]}}e.exports=t},2061:function(e){function t(e){const t=["package","import","option","optional","required","repeated","group","oneof"],n=["double","float","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","bool","string","bytes"],r={match:[/(message|enum|service)\s+/,e.IDENT_RE],scope:{1:"keyword",2:"title.class"}};return{name:"Protocol Buffers",keywords:{keyword:t,type:n,literal:["true","false"]},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r,{className:"function",beginKeywords:"rpc",end:/[{;]/,excludeEnd:!0,keywords:"rpc returns"},{begin:/^\s*[A-Z_]+(?=\s*=[^\n]+;$)/}]}}e.exports=t},90944:function(e){function t(e){const t=e.regex,n=/[\p{XID_Start}_]\p{XID_Continue}*/u,r=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],i=["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],a=["__debug__","Ellipsis","False","None","NotImplemented","True"],o=["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"],s={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:r,built_in:i,literal:a,type:o},l={className:"meta",begin:/^(>>>|\.\.\.) /},c={className:"subst",begin:/\{/,end:/\}/,keywords:s,illegal:/#/},u={begin:/\{\{/,relevance:0},d={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,l],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,l],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,l,u,c]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,l,u,c]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,u,c]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,u,c]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},h="[0-9](_?[0-9])*",p=`(\\b(${h}))?\\.(${h})|\\b(${h})\\.`,f=`\\b|${r.join("|")}`,m={className:"number",relevance:0,variants:[{begin:`(\\b(${h})|(${p}))[eE][+-]?(${h})[jJ]?(?=${f})`},{begin:`(${p})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${f})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${f})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${f})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${f})`},{begin:`\\b(${h})[jJ](?=${f})`}]},g={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:s,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},v={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:["self",l,m,d,e.HASH_COMMENT_MODE]}]};return c.contains=[d,m,l],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:s,illegal:/(<\/|->|\?)|=>/,contains:[l,m,{begin:/\bself\b/},{beginKeywords:"if",relevance:0},d,g,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[v]},{variants:[{match:[/\bclass/,/\s+/,n,/\s*/,/\(\s*/,n,/\s*\)/]},{match:[/\bclass/,/\s+/,n]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[m,v,d]}]}}e.exports=t},79386:function(e){function t(e){const t=e.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",r=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=t.concat(r,/(::\w+)*/),a={"variable.constant":["__FILE__","__LINE__"],"variable.language":["self","super"],keyword:["alias","and","attr_accessor","attr_reader","attr_writer","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","include","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield"],built_in:["proc","lambda"],literal:["true","false","nil"]},o={className:"doctag",begin:"@[A-Za-z]+"},s={begin:"#<",end:">"},l=[e.COMMENT("#","$",{contains:[o]}),e.COMMENT("^=begin","^=end",{contains:[o],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],c={className:"subst",begin:/#\{/,end:/\}/,keywords:a},u={className:"string",contains:[e.BACKSLASH_ESCAPE,c],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,c]})]}]},d="[1-9](_?[0-9])*|0",h="[0-9](_?[0-9])*",p={className:"number",relevance:0,variants:[{begin:`\\b(${d})(\\.(${h}))?([eE][+-]?(${h})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},f={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:a}]},m={variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{match:[/class\s+/,i]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:a},g={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},v={match:[/def/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[f]},b={relevance:0,match:[i,/\.new[ (]/],scope:{1:"title.class"}},y=[u,m,b,g,v,{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[u,{begin:n}],relevance:0},p,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:a},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,c],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(s,l),relevance:0}].concat(s,l);c.contains=y,f.contains=y;const _="[>?]>",w="[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]",E="(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>",S=[{begin:/^\s*=>/,starts:{end:"$",contains:y}},{className:"meta.prompt",begin:"^("+_+"|"+w+"|"+E+")(?=[ ])",starts:{end:"$",keywords:a,contains:y}}];return l.unshift(s),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:a,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(S).concat(l).concat(y)}}e.exports=t},8368:function(e){function t(e){const t=e.regex,n={className:"title.function.invoke",relevance:0,begin:t.concat(/\b/,/(?!let\b)/,e.IDENT_RE,t.lookahead(/\s*\(/))},r="([ui](8|16|32|64|128|size)|f(32|64))?",i=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","unsafe","unsized","use","virtual","where","while","yield"],a=["true","false","Some","None","Ok","Err"],o=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],s=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:s,keyword:i,literal:a,built_in:o},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'\\?(x\w{2}|u\w{4}|U\w{8}|.)'/}]},{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*/},{className:"number",variants:[{begin:"\\b0b([01_]+)"+r},{begin:"\\b0o([0-7_]+)"+r},{begin:"\\b0x([A-Fa-f0-9_]+)"+r},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+r}],relevance:0},{begin:[/fn/,/\s+/,e.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,e.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,e.UNDERSCORE_IDENT_RE,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,e.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,e.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"title.class"}},{begin:e.IDENT_RE+"::",keywords:{keyword:"Self",built_in:o,type:s}},{className:"punctuation",begin:"->"},n]}}e.exports=t},31914:function(e){function t(e){const t=e.regex,n={className:"meta",begin:"@[A-Za-z]+"},r={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"},{begin:/\$\{/,end:/\}/}]},i={className:"string",variants:[{begin:'"""',end:'"""'},{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:'[a-z]+"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,r]},{className:"string",begin:'[a-z]+"""',end:'"""',contains:[r],relevance:10}]},a={className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},o={className:"title",begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/,relevance:0},s={className:"class",beginKeywords:"class object trait type",end:/[:={\[\n;]/,excludeEnd:!0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{beginKeywords:"extends with",relevance:10},{begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[a]},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[a]},o]},l={className:"function",beginKeywords:"def",end:t.lookahead(/[:={\[(\n;]/),contains:[o]},c={begin:[/^\s*/,"extension",/\s+(?=[[(])/],beginScope:{2:"keyword"}},u={begin:[/^\s*/,/end/,/\s+/,/(extension\b)?/],beginScope:{2:"keyword",4:"keyword"}},d=[{match:/\.inline\b/},{begin:/\binline(?=\s)/,keywords:"inline"}],h={begin:[/\(\s*/,/using/,/\s+(?!\))/],beginScope:{2:"keyword"}};return{name:"Scala",keywords:{literal:"true false null",keyword:"type yield lazy override def with val var sealed abstract private trait object if then forSome for while do throw finally protected extends import final return else break new catch super class case package default try this match continue throws implicit export enum given transparent"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,a,l,s,e.C_NUMBER_MODE,c,u,...d,h,n]}}e.exports=t},74222:function(e){const t=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}),n=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],i=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],a=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],o=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function s(e){const s=t(e),l=a,c=i,u="@[a-z-]+",d="and or not only",h="[a-zA-Z-][a-zA-Z0-9_-]*",p={className:"variable",begin:"(\\$"+h+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},s.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+n.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+c.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+l.join("|")+")"},p,{begin:/\(/,end:/\)/,contains:[s.CSS_NUMBER_MODE]},s.CSS_VARIABLE,{className:"attribute",begin:"\\b("+o.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[s.BLOCK_COMMENT,p,s.HEXCOLOR,s.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,s.IMPORTANT,s.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:u,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:d,attribute:r.join(" ")},contains:[{begin:u,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},p,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,s.HEXCOLOR,s.CSS_NUMBER_MODE]},s.FUNCTION_DISPATCH]}}e.exports=s},7846:function(e){function t(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}e.exports=t},90984:function(e){function t(e){const t=e.regex,n=e.COMMENT("--","$"),r={className:"string",variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},i={begin:/"/,end:/"/,contains:[{begin:/""/}]},a=["true","false","unknown"],o=["double precision","large object","with timezone","without timezone"],s=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],l=["add","asc","collation","desc","final","first","last","view"],c=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],u=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],d=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],h=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],p=u,f=[...c,...l].filter(e=>!u.includes(e)),m={className:"variable",begin:/@[a-z0-9]+/},g={className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},v={begin:t.concat(/\b/,t.either(...p),/\s*\(/),relevance:0,keywords:{built_in:p}};function b(e,{exceptions:t,when:n}={}){const r=n;return t=t||[],e.map(e=>e.match(/\|\d+$/)||t.includes(e)?e:r(e)?`${e}|0`:e)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:b(f,{when:e=>e.length<3}),literal:a,type:s,built_in:d},contains:[{begin:t.either(...h),relevance:0,keywords:{$pattern:/[\w\.]+/,keyword:f.concat(h),literal:a,type:s}},{className:"type",begin:t.either(...o)},v,m,r,i,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,g]}}e.exports=t},72723:function(e){function t(e){return e?"string"===typeof e?e:e.source:null}function n(e){return r("(?=",e,")")}function r(...e){const n=e.map(e=>t(e)).join("");return n}function i(e){const t=e[e.length-1];return"object"===typeof t&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function a(...e){const n=i(e),r="("+(n.capture?"":"?:")+e.map(e=>t(e)).join("|")+")";return r}const o=e=>r(/\b/,e,/\w$/.test(e)?/\b/:/\B/),s=["Protocol","Type"].map(o),l=["init","self"].map(o),c=["Any","Self"],u=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","break","case","catch","class","continue","convenience","default","defer","deinit","didSet","distributed","do","dynamic","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],d=["false","nil","true"],h=["assignment","associativity","higherThan","left","lowerThan","none","right"],p=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warn_unqualified_access","#warning"],f=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],m=a(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),g=a(m,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),v=r(m,g,"*"),b=a(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),y=a(b,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),_=r(b,y,"*"),w=r(/[A-Z]/,y,"*"),E=["autoclosure",r(/convention\(/,a("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",r(/objc\(/,_,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","testable","UIApplicationMain","unknown","usableFromInline"],S=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function k(e){const t={match:/\s+/,relevance:0},i=e.COMMENT("/\\*","\\*/",{contains:["self"]}),m=[e.C_LINE_COMMENT_MODE,i],b={match:[/\./,a(...s,...l)],className:{2:"keyword"}},k={match:r(/\./,a(...u)),relevance:0},x=u.filter(e=>"string"===typeof e).concat(["_|0"]),A=u.filter(e=>"string"!==typeof e).concat(c).map(o),C={variants:[{className:"keyword",match:a(...A,...l)}]},T={$pattern:a(/\b\w+/,/#\w+/),keyword:x.concat(p),literal:d},N=[b,k,C],R={match:r(/\./,a(...f)),relevance:0},O={className:"built_in",match:r(/\b/,a(...f),/(?=\()/)},I=[R,O],L={match:/->/,relevance:0},D={className:"operator",relevance:0,variants:[{match:v},{match:`\\.(\\.|${g})+`}]},P=[L,D],M="([0-9]_*)+",B="([0-9a-fA-F]_*)+",F={className:"number",relevance:0,variants:[{match:`\\b(${M})(\\.(${M}))?([eE][+-]?(${M}))?\\b`},{match:`\\b0x(${B})(\\.(${B}))?([pP][+-]?(${M}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},$=(e="")=>({className:"subst",variants:[{match:r(/\\/,e,/[0\\tnr"']/)},{match:r(/\\/,e,/u\{[0-9a-fA-F]{1,8}\}/)}]}),U=(e="")=>({className:"subst",match:r(/\\/,e,/[\t ]*(?:[\r\n]|\r\n)/)}),j=(e="")=>({className:"subst",label:"interpol",begin:r(/\\/,e,/\(/),end:/\)/}),V=(e="")=>({begin:r(e,/"""/),end:r(/"""/,e),contains:[$(e),U(e),j(e)]}),K=(e="")=>({begin:r(e,/"/),end:r(/"/,e),contains:[$(e),j(e)]}),G={className:"string",variants:[V(),V("#"),V("##"),V("###"),K(),K("#"),K("##"),K("###")]},H={match:r(/`/,_,/`/)},z={className:"variable",match:/\$\d+/},q={className:"variable",match:`\\$${y}+`},X=[H,z,q],W={match:/(@|#(un)?)available/,className:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:S,contains:[...P,F,G]}]}},Y={className:"keyword",match:r(/@/,a(...E))},Q={className:"meta",match:r(/@/,_)},J=[W,Y,Q],Z={match:n(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:r(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,y,"+")},{className:"type",match:w,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:r(/\s+&\s+/,n(w)),relevance:0}]},ee={begin:/</,end:/>/,keywords:T,contains:[...m,...N,...J,L,Z]};Z.contains.push(ee);const te={match:r(_,/\s*:/),keywords:"_|0",relevance:0},ne={begin:/\(/,end:/\)/,relevance:0,keywords:T,contains:["self",te,...m,...N,...I,...P,F,G,...X,...J,Z]},re={begin:/</,end:/>/,contains:[...m,Z]},ie={begin:a(n(r(_,/\s*:/)),n(r(_,/\s+/,_,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:_}]},ae={begin:/\(/,end:/\)/,keywords:T,contains:[ie,...m,...N,...P,F,G,...J,Z,ne],endsParent:!0,illegal:/["']/},oe={match:[/func/,/\s+/,a(H.match,_,v)],className:{1:"keyword",3:"title.function"},contains:[re,ae,t],illegal:[/\[/,/%/]},se={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[re,ae,t],illegal:/\[|%/},le={match:[/operator/,/\s+/,v],className:{1:"keyword",3:"title"}},ce={begin:[/precedencegroup/,/\s+/,w],className:{1:"keyword",3:"title"},contains:[Z],keywords:[...h,...d],end:/}/};for(const n of G.variants){const e=n.contains.find(e=>"interpol"===e.label);e.keywords=T;const t=[...N,...I,...P,F,G,...X];e.contains=[...t,{begin:/\(/,end:/\)/,contains:["self",...t]}]}return{name:"Swift",keywords:T,contains:[...m,oe,se,{beginKeywords:"struct protocol class extension enum actor",end:"\\{",excludeEnd:!0,keywords:T,contains:[e.inherit(e.TITLE_MODE,{className:"title.class",begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/}),...N]},le,ce,{beginKeywords:"import",end:/$/,contains:[...m],relevance:0},...N,...I,...P,F,G,...X,...J,Z,ne]}}e.exports=k},45745:function(e){const t="[A-Za-z$_][0-9A-Za-z$_]*",n=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],r=["true","false","null","undefined","NaN","Infinity"],i=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],a=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],o=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],s=["arguments","this","super","console","window","document","localStorage","module","global"],l=[].concat(o,i,a);function c(e){const c=e.regex,u=(e,{after:t})=>{const n="</"+e[0].slice(1),r=e.input.indexOf(n,t);return-1!==r},d=t,h={begin:"<>",end:"</>"},p=/<[A-Za-z0-9\\._:-]+\s*\/>/,f={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,t)=>{const n=e[0].length+e.index,r=e.input[n];if("<"===r||","===r)return void t.ignoreMatch();let i;">"===r&&(u(e,{after:n})||t.ignoreMatch());const a=e.input.substring(n);(i=a.match(/^\s+extends\s+/))&&0===i.index&&t.ignoreMatch()}},m={$pattern:t,keyword:n,literal:r,built_in:l,"variable.language":s},g="[0-9](_?[0-9])*",v=`\\.(${g})`,b="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",y={className:"number",variants:[{begin:`(\\b(${b})((${v})|\\.)?|(${v}))[eE][+-]?(${g})\\b`},{begin:`\\b(${b})\\b((${v})\\b|\\.)?|(${v})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},_={className:"subst",begin:"\\$\\{",end:"\\}",keywords:m,contains:[]},w={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,_],subLanguage:"xml"}},E={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,_],subLanguage:"css"}},S={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,_]},k=e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:d+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),x={className:"comment",variants:[k,e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},A=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,w,E,S,y];_.contains=A.concat({begin:/\{/,end:/\}/,keywords:m,contains:["self"].concat(A)});const C=[].concat(x,_.contains),T=C.concat([{begin:/\(/,end:/\)/,keywords:m,contains:["self"].concat(C)}]),N={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:m,contains:T},R={variants:[{match:[/class/,/\s+/,d,/\s+/,/extends/,/\s+/,c.concat(d,"(",c.concat(/\./,d),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,d],scope:{1:"keyword",3:"title.class"}}]},O={relevance:0,match:c.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...i,...a]}},I={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},L={variants:[{match:[/function/,/\s+/,d,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[N],illegal:/%/},D={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function P(e){return c.concat("(?!",e.join("|"),")")}const M={match:c.concat(/\b/,P([...o,"super"]),d,c.lookahead(/\(/)),className:"title.function",relevance:0},B={begin:c.concat(/\./,c.lookahead(c.concat(d,/(?![0-9A-Za-z$_(])/))),end:d,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},F={match:[/get|set/,/\s+/,d,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},N]},$="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",U={match:[/const|var|let/,/\s+/,d,/\s*/,/=\s*/,/(async\s*)?/,c.lookahead($)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[N]};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:m,exports:{PARAMS_CONTAINS:T,CLASS_REFERENCE:O},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),I,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,w,E,S,x,y,O,{className:"attr",begin:d+c.lookahead(":"),relevance:0},U,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[x,e.REGEXP_MODE,{className:"function",begin:$,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:m,contains:T}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:h.begin,end:h.end},{match:p},{begin:f.begin,"on:begin":f.isTrulyOpeningTag,end:f.end}],subLanguage:"xml",contains:[{begin:f.begin,end:f.end,skip:!0,contains:["self"]}]}]},L,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[N,e.inherit(e.TITLE_MODE,{begin:d,className:"title.function"})]},{match:/\.\.\./,relevance:0},B,{match:"\\$"+d,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[N]},M,D,R,F,{match:/\$[(.]/}]}}function u(e){const i=c(e),a=t,o=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],u={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[i.exports.CLASS_REFERENCE]},d={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:o},contains:[i.exports.CLASS_REFERENCE]},h={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},p=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],f={$pattern:t,keyword:n.concat(p),literal:r,built_in:l.concat(o),"variable.language":s},m={className:"meta",begin:"@"+a},g=(e,t,n)=>{const r=e.contains.findIndex(e=>e.label===t);if(-1===r)throw new Error("can not find mode to replace");e.contains.splice(r,1,n)};Object.assign(i.keywords,f),i.exports.PARAMS_CONTAINS.push(m),i.contains=i.contains.concat([m,u,d]),g(i,"shebang",e.SHEBANG()),g(i,"use_strict",h);const v=i.contains.find(e=>"func.def"===e.label);return v.relevance=0,Object.assign(i,{name:"TypeScript",aliases:["ts","tsx"]}),i}e.exports=u},21869:function(e){function t(e){const t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},a={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=e.inherit(a,{begin:/\(/,end:/\)/}),s=e.inherit(e.APOS_STRING_MODE,{className:"string"}),l=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),c={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[a,l,s,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[a,o,l,s]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[l]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[c],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[c],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(n,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:c}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}e.exports=t},98005:function(e){function t(e){const t="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",r={className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ \t]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ \t]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ \t]|$)"}]},i={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},a={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,i]},o=e.inherit(a,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),s="[0-9]{4}(-[0-9][0-9]){0,2}",l="([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?",c="(\\.[0-9]*)?",u="([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?",d={className:"number",begin:"\\b"+s+l+c+u+"\\b"},h={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},p={begin:/\{/,end:/\}/,contains:[h],illegal:"\\n",relevance:0},f={begin:"\\[",end:"\\]",contains:[h],illegal:"\\n",relevance:0},m=[r,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},d,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},p,f,a],g=[...m];return g.pop(),g.push(o),h.contains=g,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:m}}e.exports=t},38858:function(e,t,n){"use strict";n.d(t,{Or:function(){return rl},Ky:function(){return il}});var r=n(9274),i=n.t(r,2);n(4364);
|
||
/**
|
||
* @vue/shared v3.5.29
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/
|
||
function a(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return e=>e in t}const o={},s=()=>{},l=()=>!1,c=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),u=Object.assign,d=(Object.prototype.hasOwnProperty,Array.isArray),h=e=>"string"===typeof e,p=e=>"symbol"===typeof e,f=e=>null!==e&&"object"===typeof e,m=(Object.prototype.toString,a(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted")),g=a("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),v=e=>{const t=Object.create(null);return n=>{const r=t[n];return r||(t[n]=e(n))}},b=/-\w/g,y=v(e=>e.replace(b,e=>e.slice(1).toUpperCase())),_=/\B([A-Z])/g,w=(v(e=>e.replace(_,"-$1").toLowerCase()),v(e=>e.charAt(0).toUpperCase()+e.slice(1))),E=v(e=>{const t=e?`on${w(e)}`:"";return t});let S;const k=()=>S||(S="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{});const x=/;(?![^(]*\))/g,A=/:([^]+)/,C=/\/\*[^]*?\*\//g;function T(e){const t={};return e.replace(C,"").split(x).forEach(e=>{if(e){const n=e.split(A);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}const N="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",R="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",O="annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics",I="area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr",L=a(N),D=a(R),P=a(O),M=a(I);
|
||
/**
|
||
* @vue/compiler-core v3.5.29
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/
|
||
const B=Symbol(""),F=Symbol(""),$=Symbol(""),U=Symbol(""),j=Symbol(""),V=Symbol(""),K=Symbol(""),G=Symbol(""),H=Symbol(""),z=Symbol(""),q=Symbol(""),X=Symbol(""),W=Symbol(""),Y=Symbol(""),Q=Symbol(""),J=Symbol(""),Z=Symbol(""),ee=Symbol(""),te=Symbol(""),ne=Symbol(""),re=Symbol(""),ie=Symbol(""),ae=Symbol(""),oe=Symbol(""),se=Symbol(""),le=Symbol(""),ce=Symbol(""),ue=Symbol(""),de=Symbol(""),he=Symbol(""),pe=Symbol(""),fe=Symbol(""),me=Symbol(""),ge=Symbol(""),ve=Symbol(""),be=Symbol(""),ye=Symbol(""),_e=Symbol(""),we=Symbol(""),Ee={[B]:"Fragment",[F]:"Teleport",[$]:"Suspense",[U]:"KeepAlive",[j]:"BaseTransition",[V]:"openBlock",[K]:"createBlock",[G]:"createElementBlock",[H]:"createVNode",[z]:"createElementVNode",[q]:"createCommentVNode",[X]:"createTextVNode",[W]:"createStaticVNode",[Y]:"resolveComponent",[Q]:"resolveDynamicComponent",[J]:"resolveDirective",[Z]:"resolveFilter",[ee]:"withDirectives",[te]:"renderList",[ne]:"renderSlot",[re]:"createSlots",[ie]:"toDisplayString",[ae]:"mergeProps",[oe]:"normalizeClass",[se]:"normalizeStyle",[le]:"normalizeProps",[ce]:"guardReactiveProps",[ue]:"toHandlers",[de]:"camelize",[he]:"capitalize",[pe]:"toHandlerKey",[fe]:"setBlockTracking",[me]:"pushScopeId",[ge]:"popScopeId",[ve]:"withCtx",[be]:"unref",[ye]:"isRef",[_e]:"withMemo",[we]:"isMemoSame"};function Se(e){Object.getOwnPropertySymbols(e).forEach(t=>{Ee[t]=e[t]})}const ke={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function xe(e,t=""){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:ke}}function Ae(e,t,n,r,i,a,o,s=!1,l=!1,c=!1,u=ke){return e&&(s?(e.helper(V),e.helper(Fe(e.inSSR,c))):e.helper(Be(e.inSSR,c)),o&&e.helper(ee)),{type:13,tag:t,props:n,children:r,patchFlag:i,dynamicProps:a,directives:o,isBlock:s,disableTracking:l,isComponent:c,loc:u}}function Ce(e,t=ke){return{type:17,loc:t,elements:e}}function Te(e,t=ke){return{type:15,loc:t,properties:e}}function Ne(e,t){return{type:16,loc:ke,key:h(e)?Re(e,!0):e,value:t}}function Re(e,t=!1,n=ke,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function Oe(e,t=ke){return{type:8,loc:t,children:e}}function Ie(e,t=[],n=ke){return{type:14,loc:n,callee:e,arguments:t}}function Le(e,t=void 0,n=!1,r=!1,i=ke){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:i}}function De(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:ke}}function Pe(e,t,n=!1,r=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:r,needArraySpread:!1,loc:ke}}function Me(e){return{type:21,body:e,loc:ke}}function Be(e,t){return e||t?H:z}function Fe(e,t){return e||t?K:G}function $e(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(Be(r,e.isComponent)),t(V),t(Fe(r,e.isComponent)))}const Ue=new Uint8Array([123,123]),je=new Uint8Array([125,125]);function Ve(e){return e>=97&&e<=122||e>=65&&e<=90}function Ke(e){return 32===e||10===e||9===e||12===e||13===e}function Ge(e){return 47===e||62===e||Ke(e)}function He(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}const ze={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])};class qe{constructor(e,t){this.stack=e,this.cbs=t,this.state=1,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=Ue,this.delimiterClose=je,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return 2===this.mode&&0===this.stack.length}reset(){this.state=1,this.mode=0,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=Ue,this.delimiterClose=je}getPos(e){let t=1,n=e+1;const r=this.newlines.length;let i=-1;if(r>100){let t=-1,n=r;while(t+1<n){const r=t+n>>>1;this.newlines[r]<e?t=r:n=r}i=t}else for(let a=r-1;a>=0;a--)if(e>this.newlines[a]){i=a;break}return i>=0&&(t=i+2,n=e-this.newlines[i]),{column:n,line:t,offset:e}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(e){60===e?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):this.inVPre||e!==this.delimiterOpen[0]||(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e))}stateInterpolationOpen(e){if(e===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){const e=this.index+1-this.delimiterOpen.length;e>this.sectionStart&&this.cbs.ontext(this.sectionStart,e),this.state=3,this.sectionStart=e}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(e)):(this.state=1,this.stateText(e))}stateInterpolation(e){e===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(e))}stateInterpolationClose(e){e===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(e))}stateSpecialStartSequence(e){const t=this.sequenceIndex===this.currentSequence.length,n=t?Ge(e):(32|e)===this.currentSequence[this.sequenceIndex];if(n){if(!t)return void this.sequenceIndex++}else this.inRCDATA=!1;this.sequenceIndex=0,this.state=6,this.stateInTagName(e)}stateInRCDATA(e){if(this.sequenceIndex===this.currentSequence.length){if(62===e||Ke(e)){const t=this.index-this.currentSequence.length;if(this.sectionStart<t){const e=this.index;this.index=t,this.cbs.ontext(this.sectionStart,t),this.index=e}return this.sectionStart=t+2,this.stateInClosingTagName(e),void(this.inRCDATA=!1)}this.sequenceIndex=0}(32|e)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:0===this.sequenceIndex?this.currentSequence===ze.TitleEnd||this.currentSequence===ze.TextareaEnd&&!this.inSFCRoot?this.inVPre||e!==this.delimiterOpen[0]||(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=Number(60===e)}stateCDATASequence(e){e===ze.Cdata[this.sequenceIndex]?++this.sequenceIndex===ze.Cdata.length&&(this.state=28,this.currentSequence=ze.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(e))}fastForwardTo(e){while(++this.index<this.buffer.length){const t=this.buffer.charCodeAt(this.index);if(10===t&&this.newlines.push(this.index),t===e)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(e){e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===ze.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):0===this.sequenceIndex?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(e,t){this.enterRCDATA(e,t),this.state=31}enterRCDATA(e,t){this.inRCDATA=!0,this.currentSequence=e,this.sequenceIndex=t}stateBeforeTagName(e){33===e?(this.state=22,this.sectionStart=this.index+1):63===e?(this.state=24,this.sectionStart=this.index+1):Ve(e)?(this.sectionStart=this.index,0===this.mode?this.state=6:this.inSFCRoot?this.state=34:this.inXML?this.state=6:this.state=116===e?30:115===e?29:6):47===e?this.state=8:(this.state=1,this.stateText(e))}stateInTagName(e){Ge(e)&&this.handleTagName(e)}stateInSFCRootTagName(e){if(Ge(e)){const t=this.buffer.slice(this.sectionStart,this.index);"template"!==t&&this.enterRCDATA(He("</"+t),0),this.handleTagName(e)}}handleTagName(e){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(e)}stateBeforeClosingTagName(e){Ke(e)||(62===e?(this.state=1,this.sectionStart=this.index+1):(this.state=Ve(e)?9:27,this.sectionStart=this.index))}stateInClosingTagName(e){(62===e||Ke(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(e))}stateAfterClosingTagName(e){62===e&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(e){62===e?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):47===e?this.state=7:60===e&&47===this.peek()?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):Ke(e)||this.handleAttrStart(e)}handleAttrStart(e){118===e&&45===this.peek()?(this.state=13,this.sectionStart=this.index):46===e||58===e||64===e||35===e?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(e){62===e?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):Ke(e)||(this.state=11,this.stateBeforeAttrName(e))}stateInAttrName(e){(61===e||Ge(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(e))}stateInDirName(e){61===e||Ge(e)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(e)):58===e?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):46===e&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(e){61===e||Ge(e)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(e)):91===e?this.state=15:46===e&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(e){93===e?this.state=14:(61===e||Ge(e))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(e))}stateInDirModifier(e){61===e||Ge(e)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(e)):46===e&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(e){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(e)}stateAfterAttrName(e){61===e?this.state=18:47===e||62===e?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(e)):Ke(e)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(e))}stateBeforeAttrValue(e){34===e?(this.state=19,this.sectionStart=this.index+1):39===e?(this.state=20,this.sectionStart=this.index+1):Ke(e)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(e))}handleInAttrValue(e,t){(e===t||this.fastForwardTo(t))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(34===t?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(e){this.handleInAttrValue(e,34)}stateInAttrValueSingleQuotes(e){this.handleInAttrValue(e,39)}stateInAttrValueNoQuotes(e){Ke(e)||62===e?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(e)):39!==e&&60!==e&&61!==e&&96!==e||this.cbs.onerr(18,this.index)}stateBeforeDeclaration(e){91===e?(this.state=26,this.sequenceIndex=0):this.state=45===e?25:23}stateInDeclaration(e){(62===e||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(e){(62===e||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(e){45===e?(this.state=28,this.currentSequence=ze.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(e){(62===e||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(e){e===ze.ScriptEnd[3]?this.startSpecial(ze.ScriptEnd,4):e===ze.StyleEnd[3]?this.startSpecial(ze.StyleEnd,4):(this.state=6,this.stateInTagName(e))}stateBeforeSpecialT(e){e===ze.TitleEnd[3]?this.startSpecial(ze.TitleEnd,4):e===ze.TextareaEnd[3]?this.startSpecial(ze.TextareaEnd,4):(this.state=6,this.stateInTagName(e))}startEntity(){}stateInEntity(){}parse(e){this.buffer=e;while(this.index<this.buffer.length){const e=this.buffer.charCodeAt(this.index);switch(10===e&&33!==this.state&&this.newlines.push(this.index),this.state){case 1:this.stateText(e);break;case 2:this.stateInterpolationOpen(e);break;case 3:this.stateInterpolation(e);break;case 4:this.stateInterpolationClose(e);break;case 31:this.stateSpecialStartSequence(e);break;case 32:this.stateInRCDATA(e);break;case 26:this.stateCDATASequence(e);break;case 19:this.stateInAttrValueDoubleQuotes(e);break;case 12:this.stateInAttrName(e);break;case 13:this.stateInDirName(e);break;case 14:this.stateInDirArg(e);break;case 15:this.stateInDynamicDirArg(e);break;case 16:this.stateInDirModifier(e);break;case 28:this.stateInCommentLike(e);break;case 27:this.stateInSpecialComment(e);break;case 11:this.stateBeforeAttrName(e);break;case 6:this.stateInTagName(e);break;case 34:this.stateInSFCRootTagName(e);break;case 9:this.stateInClosingTagName(e);break;case 5:this.stateBeforeTagName(e);break;case 17:this.stateAfterAttrName(e);break;case 20:this.stateInAttrValueSingleQuotes(e);break;case 18:this.stateBeforeAttrValue(e);break;case 8:this.stateBeforeClosingTagName(e);break;case 10:this.stateAfterClosingTagName(e);break;case 29:this.stateBeforeSpecialS(e);break;case 30:this.stateBeforeSpecialT(e);break;case 21:this.stateInAttrValueNoQuotes(e);break;case 7:this.stateInSelfClosingTag(e);break;case 23:this.stateInDeclaration(e);break;case 22:this.stateBeforeDeclaration(e);break;case 25:this.stateBeforeComment(e);break;case 24:this.stateInProcessingInstruction(e);break;case 33:this.stateInEntity();break}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(1===this.state||32===this.state&&0===this.sequenceIndex?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):19!==this.state&&20!==this.state&&21!==this.state||(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const e=this.buffer.length;this.sectionStart>=e||(28===this.state?this.currentSequence===ze.CdataEnd?this.cbs.oncdata(this.sectionStart,e):this.cbs.oncomment(this.sectionStart,e):6===this.state||11===this.state||18===this.state||17===this.state||12===this.state||13===this.state||14===this.state||15===this.state||16===this.state||20===this.state||19===this.state||21===this.state||9===this.state||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,t){}}function Xe(e,{compatConfig:t}){const n=t&&t[e];return"MODE"===e?n||3:n}function We(e,t){const n=Xe("MODE",t),r=Xe(e,t);return 3===n?!0===r:!1!==r}function Ye(e,t,n,...r){const i=We(e,t);return i}function Qe(e){throw e}function Je(e){}function Ze(e,t,n,r){const i=`https://vuejs.org/error-reference/#compiler-${e}`,a=new SyntaxError(String(i));return a.code=e,a.loc=t,a}const et=e=>4===e.type&&e.isStatic;function tt(e){switch(e){case"Teleport":case"teleport":return F;case"Suspense":case"suspense":return $;case"KeepAlive":case"keep-alive":return U;case"BaseTransition":case"base-transition":return j}}const nt=/^$|^\d|[^\$\w\xA0-\uFFFF]/,rt=e=>!nt.test(e),it=/[A-Za-z_$\xA0-\uFFFF]/,at=/[\.\?\w$\xA0-\uFFFF]/,ot=/\s+[.[]\s*|\s*[.[]\s+/g,st=e=>4===e.type?e.content:e.loc.source,lt=e=>{const t=st(e).trim().replace(ot,e=>e.trim());let n=0,r=[],i=0,a=0,o=null;for(let s=0;s<t.length;s++){const e=t.charAt(s);switch(n){case 0:if("["===e)r.push(n),n=1,i++;else if("("===e)r.push(n),n=2,a++;else if(!(0===s?it:at).test(e))return!1;break;case 1:"'"===e||'"'===e||"`"===e?(r.push(n),n=3,o=e):"["===e?i++:"]"===e&&(--i||(n=r.pop()));break;case 2:if("'"===e||'"'===e||"`"===e)r.push(n),n=3,o=e;else if("("===e)a++;else if(")"===e){if(s===t.length-1)return!1;--a||(n=r.pop())}break;case 3:e===o&&(n=r.pop(),o=null);break}}return!i&&!a},ct=lt,ut=/^\s*(?:async\s*)?(?:\([^)]*?\)|[\w$_]+)\s*(?::[^=]+)?=>|^\s*(?:async\s+)?function(?:\s+[\w$]+)?\s*\(/,dt=e=>ut.test(st(e)),ht=dt;function pt(e,t,n=!1){for(let r=0;r<e.props.length;r++){const i=e.props[r];if(7===i.type&&(n||i.exp)&&(h(t)?i.name===t:t.test(i.name)))return i}}function ft(e,t,n=!1,r=!1){for(let i=0;i<e.props.length;i++){const a=e.props[i];if(6===a.type){if(n)continue;if(a.name===t&&(a.value||r))return a}else if("bind"===a.name&&(a.exp||r)&&mt(a.arg,t))return a}}function mt(e,t){return!(!e||!et(e)||e.content!==t)}function gt(e){return e.props.some(e=>7===e.type&&"bind"===e.name&&(!e.arg||4!==e.arg.type||!e.arg.isStatic))}function vt(e){return 5===e.type||2===e.type}function bt(e){return 7===e.type&&"pre"===e.name}function yt(e){return 7===e.type&&"slot"===e.name}function _t(e){return 1===e.type&&3===e.tagType}function wt(e){return 1===e.type&&2===e.tagType}const Et=new Set([le,ce]);function St(e,t=[]){if(e&&!h(e)&&14===e.type){const n=e.callee;if(!h(n)&&Et.has(n))return St(e.arguments[0],t.concat(e))}return[e,t]}function kt(e,t,n){let r,i,a=13===e.type?e.props:e.arguments[2],o=[];if(a&&!h(a)&&14===a.type){const e=St(a);a=e[0],o=e[1],i=o[o.length-1]}if(null==a||h(a))r=Te([t]);else if(14===a.type){const e=a.arguments[0];h(e)||15!==e.type?a.callee===ue?r=Ie(n.helper(ae),[Te([t]),a]):a.arguments.unshift(Te([t])):xt(t,e)||e.properties.unshift(t),!r&&(r=a)}else 15===a.type?(xt(t,a)||a.properties.unshift(t),r=a):(r=Ie(n.helper(ae),[Te([t]),a]),i&&i.callee===ce&&(i=o[o.length-2]));13===e.type?i?i.arguments[0]=r:e.props=r:i?i.arguments[0]=r:e.arguments[2]=r}function xt(e,t){let n=!1;if(4===e.key.type){const r=e.key.content;n=t.properties.some(e=>4===e.key.type&&e.key.content===r)}return n}function At(e,t){return`_${t}_${e.replace(/[^\w]/g,(t,n)=>"-"===t?"_":e.charCodeAt(n).toString())}`}function Ct(e){return 14===e.type&&e.callee===_e?e.arguments[1].returns:e}const Tt=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/;function Nt(e){for(let t=0;t<e.length;t++)if(!Ke(e.charCodeAt(t)))return!1;return!0}function Rt(e){return 2===e.type&&Nt(e.content)||12===e.type&&Rt(e.content)}function Ot(e){return 3===e.type||Rt(e)}const It={parseMode:"base",ns:0,delimiters:["{{","}}"],getNamespace:()=>0,isVoidTag:l,isPreTag:l,isIgnoreNewlineTag:l,isCustomElement:l,onError:Qe,onWarn:Je,comments:!1,prefixIdentifiers:!1};let Lt=It,Dt=null,Pt="",Mt=null,Bt=null,Ft="",$t=-1,Ut=-1,jt=0,Vt=!1,Kt=null;const Gt=[],Ht=new qe(Gt,{onerr:gn,ontext(e,t){Qt(Wt(e,t),e,t)},ontextentity(e,t,n){Qt(e,t,n)},oninterpolation(e,t){if(Vt)return Qt(Wt(e,t),e,t);let n=e+Ht.delimiterOpen.length,r=t-Ht.delimiterClose.length;while(Ke(Pt.charCodeAt(n)))n++;while(Ke(Pt.charCodeAt(r-1)))r--;let i=Wt(n,r);i.includes("&")&&(i=Lt.decodeEntities(i,!1)),un({type:5,content:mn(i,!1,dn(n,r)),loc:dn(e,t)})},onopentagname(e,t){const n=Wt(e,t);Mt={type:1,tag:n,ns:Lt.getNamespace(n,Gt[0],Lt.ns),tagType:0,props:[],children:[],loc:dn(e-1,t),codegenNode:void 0}},onopentagend(e){Yt(e)},onclosetag(e,t){const n=Wt(e,t);if(!Lt.isVoidTag(n)){let r=!1;for(let e=0;e<Gt.length;e++){const i=Gt[e];if(i.tag.toLowerCase()===n.toLowerCase()){r=!0,e>0&&gn(24,Gt[0].loc.start.offset);for(let n=0;n<=e;n++){const r=Gt.shift();Jt(r,t,n<e)}break}}r||gn(23,en(e,60))}},onselfclosingtag(e){const t=Mt.tag;Mt.isSelfClosing=!0,Yt(e),Gt[0]&&Gt[0].tag===t&&Jt(Gt.shift(),e)},onattribname(e,t){Bt={type:6,name:Wt(e,t),nameLoc:dn(e,t),value:void 0,loc:dn(e)}},ondirname(e,t){const n=Wt(e,t),r="."===n||":"===n?"bind":"@"===n?"on":"#"===n?"slot":n.slice(2);if(Vt||""!==r||gn(26,e),Vt||""===r)Bt={type:6,name:n,nameLoc:dn(e,t),value:void 0,loc:dn(e)};else if(Bt={type:7,name:r,rawName:n,exp:void 0,arg:void 0,modifiers:"."===n?[Re("prop")]:[],loc:dn(e)},"pre"===r){Vt=Ht.inVPre=!0,Kt=Mt;const e=Mt.props;for(let t=0;t<e.length;t++)7===e[t].type&&(e[t]=fn(e[t]))}},ondirarg(e,t){if(e===t)return;const n=Wt(e,t);if(Vt&&!bt(Bt))Bt.name+=n,pn(Bt.nameLoc,t);else{const r="["!==n[0];Bt.arg=mn(r?n:n.slice(1,-1),r,dn(e,t),r?3:0)}},ondirmodifier(e,t){const n=Wt(e,t);if(Vt&&!bt(Bt))Bt.name+="."+n,pn(Bt.nameLoc,t);else if("slot"===Bt.name){const e=Bt.arg;e&&(e.content+="."+n,pn(e.loc,t))}else{const r=Re(n,!0,dn(e,t));Bt.modifiers.push(r)}},onattribdata(e,t){Ft+=Wt(e,t),$t<0&&($t=e),Ut=t},onattribentity(e,t,n){Ft+=e,$t<0&&($t=t),Ut=n},onattribnameend(e){const t=Bt.loc.start.offset,n=Wt(t,e);7===Bt.type&&(Bt.rawName=n),Mt.props.some(e=>(7===e.type?e.rawName:e.name)===n)&&gn(2,t)},onattribend(e,t){if(Mt&&Bt){if(pn(Bt.loc,t),0!==e)if(Ft.includes("&")&&(Ft=Lt.decodeEntities(Ft,!0)),6===Bt.type)"class"===Bt.name&&(Ft=cn(Ft).trim()),1!==e||Ft||gn(13,t),Bt.value={type:2,content:Ft,loc:1===e?dn($t,Ut):dn($t-1,Ut+1)},Ht.inSFCRoot&&"template"===Mt.tag&&"lang"===Bt.name&&Ft&&"html"!==Ft&&Ht.enterRCDATA(He("</template"),0);else{let e=0;Bt.exp=mn(Ft,!1,dn($t,Ut),0,e),"for"===Bt.name&&(Bt.forParseResult=Xt(Bt.exp));let t=-1;"bind"===Bt.name&&(t=Bt.modifiers.findIndex(e=>"sync"===e.content))>-1&&Ye("COMPILER_V_BIND_SYNC",Lt,Bt.loc,Bt.arg.loc.source)&&(Bt.name="model",Bt.modifiers.splice(t,1))}7===Bt.type&&"pre"===Bt.name||Mt.props.push(Bt)}Ft="",$t=Ut=-1},oncomment(e,t){Lt.comments&&un({type:3,content:Wt(e,t),loc:dn(e-4,t+3)})},onend(){const e=Pt.length;for(let t=0;t<Gt.length;t++)Jt(Gt[t],e-1),gn(24,Gt[t].loc.start.offset)},oncdata(e,t){0!==Gt[0].ns?Qt(Wt(e,t),e,t):gn(1,e-9)},onprocessinginstruction(e){0===(Gt[0]?Gt[0].ns:Lt.ns)&&gn(21,e-1)}}),zt=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,qt=/^\(|\)$/g;function Xt(e){const t=e.loc,n=e.content,r=n.match(Tt);if(!r)return;const[,i,a]=r,o=(e,n,r=!1)=>{const i=t.start.offset+n,a=i+e.length;return mn(e,!1,dn(i,a),0,r?1:0)},s={source:o(a.trim(),n.indexOf(a,i.length)),value:void 0,key:void 0,index:void 0,finalized:!1};let l=i.trim().replace(qt,"").trim();const c=i.indexOf(l),u=l.match(zt);if(u){l=l.replace(zt,"").trim();const e=u[1].trim();let t;if(e&&(t=n.indexOf(e,c+l.length),s.key=o(e,t,!0)),u[2]){const r=u[2].trim();r&&(s.index=o(r,n.indexOf(r,s.key?t+e.length:c+l.length),!0))}}return l&&(s.value=o(l,c,!0)),s}function Wt(e,t){return Pt.slice(e,t)}function Yt(e){Ht.inSFCRoot&&(Mt.innerLoc=dn(e+1,e+1)),un(Mt);const{tag:t,ns:n}=Mt;0===n&&Lt.isPreTag(t)&&jt++,Lt.isVoidTag(t)?Jt(Mt,e):(Gt.unshift(Mt),1!==n&&2!==n||(Ht.inXML=!0)),Mt=null}function Qt(e,t,n){{const t=Gt[0]&&Gt[0].tag;"script"!==t&&"style"!==t&&e.includes("&")&&(e=Lt.decodeEntities(e,!1))}const r=Gt[0]||Dt,i=r.children[r.children.length-1];i&&2===i.type?(i.content+=e,pn(i.loc,n)):r.children.push({type:2,content:e,loc:dn(t,n)})}function Jt(e,t,n=!1){pn(e.loc,n?en(t,60):Zt(t,62)+1),Ht.inSFCRoot&&(e.children.length?e.innerLoc.end=u({},e.children[e.children.length-1].loc.end):e.innerLoc.end=u({},e.innerLoc.start),e.innerLoc.source=Wt(e.innerLoc.start.offset,e.innerLoc.end.offset));const{tag:r,ns:i,children:a}=e;if(Vt||("slot"===r?e.tagType=2:nn(e)?e.tagType=3:rn(e)&&(e.tagType=1)),Ht.inRCDATA||(e.children=sn(a)),0===i&&Lt.isIgnoreNewlineTag(r)){const e=a[0];e&&2===e.type&&(e.content=e.content.replace(/^\r?\n/,""))}0===i&&Lt.isPreTag(r)&&jt--,Kt===e&&(Vt=Ht.inVPre=!1,Kt=null),Ht.inXML&&0===(Gt[0]?Gt[0].ns:Lt.ns)&&(Ht.inXML=!1);{const t=e.props;if(!Ht.inSFCRoot&&We("COMPILER_NATIVE_TEMPLATE",Lt)&&"template"===e.tag&&!nn(e)){const t=Gt[0]||Dt,n=t.children.indexOf(e);t.children.splice(n,1,...e.children)}const n=t.find(e=>6===e.type&&"inline-template"===e.name);n&&Ye("COMPILER_INLINE_TEMPLATE",Lt,n.loc)&&e.children.length&&(n.value={type:2,content:Wt(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:n.loc})}}function Zt(e,t){let n=e;while(Pt.charCodeAt(n)!==t&&n<Pt.length-1)n++;return n}function en(e,t){let n=e;while(Pt.charCodeAt(n)!==t&&n>=0)n--;return n}const tn=new Set(["if","else","else-if","for","slot"]);function nn({tag:e,props:t}){if("template"===e)for(let n=0;n<t.length;n++)if(7===t[n].type&&tn.has(t[n].name))return!0;return!1}function rn({tag:e,props:t}){if(Lt.isCustomElement(e))return!1;if("component"===e||an(e.charCodeAt(0))||tt(e)||Lt.isBuiltInComponent&&Lt.isBuiltInComponent(e)||Lt.isNativeTag&&!Lt.isNativeTag(e))return!0;for(let n=0;n<t.length;n++){const e=t[n];if(6===e.type){if("is"===e.name&&e.value){if(e.value.content.startsWith("vue:"))return!0;if(Ye("COMPILER_IS_ON_ELEMENT",Lt,e.loc))return!0}}else if("bind"===e.name&&mt(e.arg,"is")&&Ye("COMPILER_IS_ON_ELEMENT",Lt,e.loc))return!0}return!1}function an(e){return e>64&&e<91}const on=/\r\n/g;function sn(e){const t="preserve"!==Lt.whitespace;let n=!1;for(let r=0;r<e.length;r++){const i=e[r];if(2===i.type)if(jt)i.content=i.content.replace(on,"\n");else if(Nt(i.content)){const a=e[r-1]&&e[r-1].type,o=e[r+1]&&e[r+1].type;!a||!o||t&&(3===a&&(3===o||1===o)||1===a&&(3===o||1===o&&ln(i.content)))?(n=!0,e[r]=null):i.content=" "}else t&&(i.content=cn(i.content))}return n?e.filter(Boolean):e}function ln(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(10===n||13===n)return!0}return!1}function cn(e){let t="",n=!1;for(let r=0;r<e.length;r++)Ke(e.charCodeAt(r))?n||(t+=" ",n=!0):(t+=e[r],n=!1);return t}function un(e){(Gt[0]||Dt).children.push(e)}function dn(e,t){return{start:Ht.getPos(e),end:null==t?t:Ht.getPos(t),source:null==t?t:Wt(e,t)}}function hn(e){return dn(e.start.offset,e.end.offset)}function pn(e,t){e.end=Ht.getPos(t),e.source=Wt(e.start.offset,t)}function fn(e){const t={type:6,name:e.rawName,nameLoc:dn(e.loc.start.offset,e.loc.start.offset+e.rawName.length),value:void 0,loc:e.loc};if(e.exp){const n=e.exp.loc;n.end.offset<e.loc.end.offset&&(n.start.offset--,n.start.column--,n.end.offset++,n.end.column++),t.value={type:2,content:e.exp.content,loc:n}}return t}function mn(e,t=!1,n,r=0,i=0){const a=Re(e,t,n,r);return a}function gn(e,t,n){Lt.onError(Ze(e,dn(t,t),void 0,n))}function vn(){Ht.reset(),Mt=null,Bt=null,Ft="",$t=-1,Ut=-1,Gt.length=0}function bn(e,t){if(vn(),Pt=e,Lt=u({},It),t){let e;for(e in t)null!=t[e]&&(Lt[e]=t[e])}Ht.mode="html"===Lt.parseMode?1:"sfc"===Lt.parseMode?2:0,Ht.inXML=1===Lt.ns||2===Lt.ns;const n=t&&t.delimiters;n&&(Ht.delimiterOpen=He(n[0]),Ht.delimiterClose=He(n[1]));const r=Dt=xe([],e);return Ht.parse(Pt),r.loc=dn(0,e.length),r.children=sn(r.children),Dt=null,r}function yn(e,t){wn(e,void 0,t,!!_n(e))}function _n(e){const t=e.children.filter(e=>3!==e.type);return 1!==t.length||1!==t[0].type||wt(t[0])?null:t[0]}function wn(e,t,n,r=!1,i=!1){const{children:a}=e,o=[];for(let u=0;u<a.length;u++){const t=a[u];if(1===t.type&&0===t.tagType){const e=r?0:En(t,n);if(e>0){if(e>=2){t.codegenNode.patchFlag=-1,o.push(t);continue}}else{const e=t.codegenNode;if(13===e.type){const r=e.patchFlag;if((void 0===r||512===r||1===r)&&xn(t,n)>=2){const r=An(t);r&&(e.props=n.hoist(r))}e.dynamicProps&&(e.dynamicProps=n.hoist(e.dynamicProps))}}}else if(12===t.type){const e=r?0:En(t,n);if(e>=2){14===t.codegenNode.type&&t.codegenNode.arguments.length>0&&t.codegenNode.arguments.push("-1"),o.push(t);continue}}if(1===t.type){const r=1===t.tagType;r&&n.scopes.vSlot++,wn(t,e,n,!1,i),r&&n.scopes.vSlot--}else if(11===t.type)wn(t,e,n,1===t.children.length,!0);else if(9===t.type)for(let r=0;r<t.branches.length;r++)wn(t.branches[r],e,n,1===t.branches[r].children.length,i)}let s=!1;if(o.length===a.length&&1===e.type)if(0===e.tagType&&e.codegenNode&&13===e.codegenNode.type&&d(e.codegenNode.children))e.codegenNode.children=l(Ce(e.codegenNode.children)),s=!0;else if(1===e.tagType&&e.codegenNode&&13===e.codegenNode.type&&e.codegenNode.children&&!d(e.codegenNode.children)&&15===e.codegenNode.children.type){const t=c(e.codegenNode,"default");t&&(t.returns=l(Ce(t.returns)),s=!0)}else if(3===e.tagType&&t&&1===t.type&&1===t.tagType&&t.codegenNode&&13===t.codegenNode.type&&t.codegenNode.children&&!d(t.codegenNode.children)&&15===t.codegenNode.children.type){const n=pt(e,"slot",!0),r=n&&n.arg&&c(t.codegenNode,n.arg);r&&(r.returns=l(Ce(r.returns)),s=!0)}if(!s)for(const u of o)u.codegenNode=n.cache(u.codegenNode);function l(e){const t=n.cache(e);return t.needArraySpread=!0,t}function c(e,t){if(e.children&&!d(e.children)&&15===e.children.type){const n=e.children.properties.find(e=>e.key===t||e.key.content===t);return n&&n.value}}o.length&&n.transformHoist&&n.transformHoist(a,n,e)}function En(e,t){const{constantCache:n}=t;switch(e.type){case 1:if(0!==e.tagType)return 0;const r=n.get(e);if(void 0!==r)return r;const i=e.codegenNode;if(13!==i.type)return 0;if(i.isBlock&&"svg"!==e.tag&&"foreignObject"!==e.tag&&"math"!==e.tag)return 0;if(void 0===i.patchFlag){let r=3;const a=xn(e,t);if(0===a)return n.set(e,0),0;a<r&&(r=a);for(let i=0;i<e.children.length;i++){const a=En(e.children[i],t);if(0===a)return n.set(e,0),0;a<r&&(r=a)}if(r>1)for(let i=0;i<e.props.length;i++){const a=e.props[i];if(7===a.type&&"bind"===a.name&&a.exp){const i=En(a.exp,t);if(0===i)return n.set(e,0),0;i<r&&(r=i)}}if(i.isBlock){for(let t=0;t<e.props.length;t++){const r=e.props[t];if(7===r.type)return n.set(e,0),0}t.removeHelper(V),t.removeHelper(Fe(t.inSSR,i.isComponent)),i.isBlock=!1,t.helper(Be(t.inSSR,i.isComponent))}return n.set(e,r),r}return n.set(e,0),0;case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return En(e.content,t);case 4:return e.constType;case 8:let a=3;for(let n=0;n<e.children.length;n++){const r=e.children[n];if(h(r)||p(r))continue;const i=En(r,t);if(0===i)return 0;i<a&&(a=i)}return a;case 20:return 2;default:return 0}}const Sn=new Set([oe,se,le,ce]);function kn(e,t){if(14===e.type&&!h(e.callee)&&Sn.has(e.callee)){const n=e.arguments[0];if(4===n.type)return En(n,t);if(14===n.type)return kn(n,t)}return 0}function xn(e,t){let n=3;const r=An(e);if(r&&15===r.type){const{properties:e}=r;for(let r=0;r<e.length;r++){const{key:i,value:a}=e[r],o=En(i,t);if(0===o)return o;let s;if(o<n&&(n=o),s=4===a.type?En(a,t):14===a.type?kn(a,t):0,0===s)return s;s<n&&(n=s)}}return n}function An(e){const t=e.codegenNode;if(13===t.type)return t.props}function Cn(e,{filename:t="",prefixIdentifiers:n=!1,hoistStatic:r=!1,hmr:i=!1,cacheHandlers:a=!1,nodeTransforms:l=[],directiveTransforms:c={},transformHoist:u=null,isBuiltInComponent:d=s,isCustomElement:p=s,expressionPlugins:f=[],scopeId:m=null,slotted:g=!0,ssr:v=!1,inSSR:b=!1,ssrCssVars:_="",bindingMetadata:E=o,inline:S=!1,isTS:k=!1,onError:x=Qe,onWarn:A=Je,compatConfig:C}){const T=t.replace(/\?.*$/,"").match(/([^/\\]+)\.\w+$/),N={filename:t,selfName:T&&w(y(T[1])),prefixIdentifiers:n,hoistStatic:r,hmr:i,cacheHandlers:a,nodeTransforms:l,directiveTransforms:c,transformHoist:u,isBuiltInComponent:d,isCustomElement:p,expressionPlugins:f,scopeId:m,slotted:g,ssr:v,inSSR:b,ssrCssVars:_,bindingMetadata:E,inline:S,isTS:k,onError:x,onWarn:A,compatConfig:C,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],cached:[],constantCache:new WeakMap,temps:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,grandParent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(e){const t=N.helpers.get(e)||0;return N.helpers.set(e,t+1),e},removeHelper(e){const t=N.helpers.get(e);if(t){const n=t-1;n?N.helpers.set(e,n):N.helpers.delete(e)}},helperString(e){return`_${Ee[N.helper(e)]}`},replaceNode(e){N.parent.children[N.childIndex]=N.currentNode=e},removeNode(e){const t=N.parent.children,n=e?t.indexOf(e):N.currentNode?N.childIndex:-1;e&&e!==N.currentNode?N.childIndex>n&&(N.childIndex--,N.onNodeRemoved()):(N.currentNode=null,N.onNodeRemoved()),N.parent.children.splice(n,1)},onNodeRemoved:s,addIdentifiers(e){},removeIdentifiers(e){},hoist(e){h(e)&&(e=Re(e)),N.hoists.push(e);const t=Re(`_hoisted_${N.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache(e,t=!1,n=!1){const r=Pe(N.cached.length,e,t,n);return N.cached.push(r),r}};return N.filters=new Set,N}function Tn(e,t){const n=Cn(e,t);On(e,n),t.hoistStatic&&yn(e,n),t.ssr||Nn(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function Nn(e,t){const{helper:n}=t,{children:r}=e;if(1===r.length){const n=_n(e);if(n&&n.codegenNode){const r=n.codegenNode;13===r.type&&$e(r,t),e.codegenNode=r}else e.codegenNode=r[0]}else if(r.length>1){let r=64;0,e.codegenNode=Ae(t,n(B),void 0,e.children,r,void 0,void 0,!0,void 0,!1)}}function Rn(e,t){let n=0;const r=()=>{n--};for(;n<e.children.length;n++){const i=e.children[n];h(i)||(t.grandParent=t.parent,t.parent=e,t.childIndex=n,t.onNodeRemoved=r,On(i,t))}}function On(e,t){t.currentNode=e;const{nodeTransforms:n}=t,r=[];for(let a=0;a<n.length;a++){const i=n[a](e,t);if(i&&(d(i)?r.push(...i):r.push(i)),!t.currentNode)return;e=t.currentNode}switch(e.type){case 3:t.ssr||t.helper(q);break;case 5:t.ssr||t.helper(ie);break;case 9:for(let n=0;n<e.branches.length;n++)On(e.branches[n],t);break;case 10:case 11:case 1:case 0:Rn(e,t);break}t.currentNode=e;let i=r.length;while(i--)r[i]()}function In(e,t){const n=h(e)?t=>t===e:t=>e.test(t);return(e,r)=>{if(1===e.type){const{props:i}=e;if(3===e.tagType&&i.some(yt))return;const a=[];for(let o=0;o<i.length;o++){const s=i[o];if(7===s.type&&n(s.name)){i.splice(o,1),o--;const n=t(e,s,r);n&&a.push(n)}}return a}}}const Ln="/*@__PURE__*/",Dn=e=>`${Ee[e]}: _${Ee[e]}`;function Pn(e,{mode:t="function",prefixIdentifiers:n="module"===t,sourceMap:r=!1,filename:i="template.vue.html",scopeId:a=null,optimizeImports:o=!1,runtimeGlobalName:s="Vue",runtimeModuleName:l="vue",ssrRuntimeModuleName:c="vue/server-renderer",ssr:u=!1,isTS:d=!1,inSSR:h=!1}){const p={mode:t,prefixIdentifiers:n,sourceMap:r,filename:i,scopeId:a,optimizeImports:o,runtimeGlobalName:s,runtimeModuleName:l,ssrRuntimeModuleName:c,ssr:u,isTS:d,inSSR:h,source:e.source,code:"",column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(e){return`_${Ee[e]}`},push(e,t=-2,n){p.code+=e},indent(){f(++p.indentLevel)},deindent(e=!1){e?--p.indentLevel:f(--p.indentLevel)},newline(){f(p.indentLevel)}};function f(e){p.push("\n"+" ".repeat(e),0)}return p}function Mn(e,t={}){const n=Pn(e,t);t.onContextCreated&&t.onContextCreated(n);const{mode:r,push:i,prefixIdentifiers:a,indent:o,deindent:s,newline:l,scopeId:c,ssr:u}=n,d=Array.from(e.helpers),h=d.length>0,p=!a&&"module"!==r,f=n;Bn(e,f);const m=u?"ssrRender":"render",g=u?["_ctx","_push","_parent","_attrs"]:["_ctx","_cache"],v=g.join(", ");if(i(`function ${m}(${v}) {`),o(),p&&(i("with (_ctx) {"),o(),h&&(i(`const { ${d.map(Dn).join(", ")} } = _Vue\n`,-1),l())),e.components.length&&(Fn(e.components,"component",n),(e.directives.length||e.temps>0)&&l()),e.directives.length&&(Fn(e.directives,"directive",n),e.temps>0&&l()),e.filters&&e.filters.length&&(l(),Fn(e.filters,"filter",n),l()),e.temps>0){i("let ");for(let t=0;t<e.temps;t++)i(`${t>0?", ":""}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(i("\n",0),l()),u||i("return "),e.codegenNode?Vn(e.codegenNode,n):i("null"),p&&(s(),i("}")),s(),i("}"),{ast:e,code:n.code,preamble:"",map:n.map?n.map.toJSON():void 0}}function Bn(e,t){const{ssr:n,prefixIdentifiers:r,push:i,newline:a,runtimeModuleName:o,runtimeGlobalName:s,ssrRuntimeModuleName:l}=t,c=s,u=Array.from(e.helpers);if(u.length>0&&(i(`const _Vue = ${c}\n`,-1),e.hoists.length)){const e=[H,z,q,X,W].filter(e=>u.includes(e)).map(Dn).join(", ");i(`const { ${e} } = _Vue\n`,-1)}$n(e.hoists,t),a(),i("return ")}function Fn(e,t,{helper:n,push:r,newline:i,isTS:a}){const o=n("filter"===t?Z:"component"===t?Y:J);for(let s=0;s<e.length;s++){let n=e[s];const l=n.endsWith("__self");l&&(n=n.slice(0,-6)),r(`const ${At(n,t)} = ${o}(${JSON.stringify(n)}${l?", true":""})${a?"!":""}`),s<e.length-1&&i()}}function $n(e,t){if(!e.length)return;t.pure=!0;const{push:n,newline:r}=t;r();for(let i=0;i<e.length;i++){const a=e[i];a&&(n(`const _hoisted_${i+1} = `),Vn(a,t),r())}t.pure=!1}function Un(e,t){const n=e.length>3||!1;t.push("["),n&&t.indent(),jn(e,t,n),n&&t.deindent(),t.push("]")}function jn(e,t,n=!1,r=!0){const{push:i,newline:a}=t;for(let o=0;o<e.length;o++){const s=e[o];h(s)?i(s,-3):d(s)?Un(s,t):Vn(s,t),o<e.length-1&&(n?(r&&i(","),a()):r&&i(", "))}}function Vn(e,t){if(h(e))t.push(e,-3);else if(p(e))t.push(t.helper(e));else switch(e.type){case 1:case 9:case 11:Vn(e.codegenNode,t);break;case 2:Kn(e,t);break;case 4:Gn(e,t);break;case 5:Hn(e,t);break;case 12:Vn(e.codegenNode,t);break;case 8:zn(e,t);break;case 3:Xn(e,t);break;case 13:Wn(e,t);break;case 14:Qn(e,t);break;case 15:Jn(e,t);break;case 17:Zn(e,t);break;case 18:er(e,t);break;case 19:tr(e,t);break;case 20:nr(e,t);break;case 21:jn(e.body,t,!0,!1);break;case 22:break;case 23:break;case 24:break;case 25:break;case 26:break;case 10:break;default:0}}function Kn(e,t){t.push(JSON.stringify(e.content),-3,e)}function Gn(e,t){const{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,-3,e)}function Hn(e,t){const{push:n,helper:r,pure:i}=t;i&&n(Ln),n(`${r(ie)}(`),Vn(e.content,t),n(")")}function zn(e,t){for(let n=0;n<e.children.length;n++){const r=e.children[n];h(r)?t.push(r,-3):Vn(r,t)}}function qn(e,t){const{push:n}=t;if(8===e.type)n("["),zn(e,t),n("]");else if(e.isStatic){const t=rt(e.content)?e.content:JSON.stringify(e.content);n(t,-2,e)}else n(`[${e.content}]`,-3,e)}function Xn(e,t){const{push:n,helper:r,pure:i}=t;i&&n(Ln),n(`${r(q)}(${JSON.stringify(e.content)})`,-3,e)}function Wn(e,t){const{push:n,helper:r,pure:i}=t,{tag:a,props:o,children:s,patchFlag:l,dynamicProps:c,directives:u,isBlock:d,disableTracking:h,isComponent:p}=e;let f;l&&(f=String(l)),u&&n(r(ee)+"("),d&&n(`(${r(V)}(${h?"true":""}), `),i&&n(Ln);const m=d?Fe(t.inSSR,p):Be(t.inSSR,p);n(r(m)+"(",-2,e),jn(Yn([a,o,s,f,c]),t),n(")"),d&&n(")"),u&&(n(", "),Vn(u,t),n(")"))}function Yn(e){let t=e.length;while(t--)if(null!=e[t])break;return e.slice(0,t+1).map(e=>e||"null")}function Qn(e,t){const{push:n,helper:r,pure:i}=t,a=h(e.callee)?e.callee:r(e.callee);i&&n(Ln),n(a+"(",-2,e),jn(e.arguments,t),n(")")}function Jn(e,t){const{push:n,indent:r,deindent:i,newline:a}=t,{properties:o}=e;if(!o.length)return void n("{}",-2,e);const s=o.length>1||!1;n(s?"{":"{ "),s&&r();for(let l=0;l<o.length;l++){const{key:e,value:r}=o[l];qn(e,t),n(": "),Vn(r,t),l<o.length-1&&(n(","),a())}s&&i(),n(s?"}":" }")}function Zn(e,t){Un(e.elements,t)}function er(e,t){const{push:n,indent:r,deindent:i}=t,{params:a,returns:o,body:s,newline:l,isSlot:c}=e;c&&n(`_${Ee[ve]}(`),n("(",-2,e),d(a)?jn(a,t):a&&Vn(a,t),n(") => "),(l||s)&&(n("{"),r()),o?(l&&n("return "),d(o)?Un(o,t):Vn(o,t)):s&&Vn(s,t),(l||s)&&(i(),n("}")),c&&(e.isNonScopedSlot&&n(", undefined, true"),n(")"))}function tr(e,t){const{test:n,consequent:r,alternate:i,newline:a}=e,{push:o,indent:s,deindent:l,newline:c}=t;if(4===n.type){const e=!rt(n.content);e&&o("("),Gn(n,t),e&&o(")")}else o("("),Vn(n,t),o(")");a&&s(),t.indentLevel++,a||o(" "),o("? "),Vn(r,t),t.indentLevel--,a&&c(),a||o(" "),o(": ");const u=19===i.type;u||t.indentLevel++,Vn(i,t),u||t.indentLevel--,a&&l(!0)}function nr(e,t){const{push:n,helper:r,indent:i,deindent:a,newline:o}=t,{needPauseTracking:s,needArraySpread:l}=e;l&&n("[...("),n(`_cache[${e.index}] || (`),s&&(i(),n(`${r(fe)}(-1`),e.inVOnce&&n(", true"),n("),"),o(),n("(")),n(`_cache[${e.index}] = `),Vn(e.value,t),s&&(n(`).cacheIndex = ${e.index},`),o(),n(`${r(fe)}(1),`),o(),n(`_cache[${e.index}]`),a()),n(")"),l&&n(")]")}new RegExp("\\b"+"arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b")+"\\b");const rr=In(/^(?:if|else|else-if)$/,(e,t,n)=>ir(e,t,n,(e,t,r)=>{const i=n.parent.children;let a=i.indexOf(e),o=0;while(a-- >=0){const e=i[a];e&&9===e.type&&(o+=e.branches.length)}return()=>{if(r)e.codegenNode=or(t,o,n);else{const r=lr(e.codegenNode);r.alternate=or(t,o+e.branches.length-1,n)}}}));function ir(e,t,n,r){if("else"!==t.name&&(!t.exp||!t.exp.content.trim())){const r=t.exp?t.exp.loc:e.loc;n.onError(Ze(28,t.loc)),t.exp=Re("true",!1,r)}if("if"===t.name){const i=ar(e,t),a={type:9,loc:hn(e.loc),branches:[i]};if(n.replaceNode(a),r)return r(a,i,!0)}else{const i=n.parent.children;let a=i.indexOf(e);while(a-- >=-1){const o=i[a];if(!o||!Ot(o)){if(o&&9===o.type){"else-if"!==t.name&&"else"!==t.name||void 0!==o.branches[o.branches.length-1].condition||n.onError(Ze(30,e.loc)),n.removeNode();const i=ar(e,t);0,o.branches.push(i);const a=r&&r(o,i,!1);On(i,n),a&&a(),n.currentNode=null}else n.onError(Ze(30,e.loc));break}n.removeNode(o)}}}function ar(e,t){const n=3===e.tagType;return{type:10,loc:e.loc,condition:"else"===t.name?void 0:t.exp,children:n&&!pt(e,"for")?e.children:[e],userKey:ft(e,"key"),isTemplateIf:n}}function or(e,t,n){return e.condition?De(e.condition,sr(e,t,n),Ie(n.helper(q),['""',"true"])):sr(e,t,n)}function sr(e,t,n){const{helper:r}=n,i=Ne("key",Re(`${t}`,!1,ke,2)),{children:a}=e,o=a[0],s=1!==a.length||1!==o.type;if(s){if(1===a.length&&11===o.type){const e=o.codegenNode;return kt(e,i,n),e}{let t=64;return Ae(n,r(B),Te([i]),a,t,void 0,void 0,!0,!1,!1,e.loc)}}{const e=o.codegenNode,t=Ct(e);return 13===t.type&&$e(t,n),kt(t,i,n),e}}function lr(e){while(1)if(19===e.type){if(19!==e.alternate.type)return e;e=e.alternate}else 20===e.type&&(e=e.value)}const cr=In("for",(e,t,n)=>{const{helper:r,removeHelper:i}=n;return ur(e,t,n,t=>{const a=Ie(r(te),[t.source]),o=_t(e),s=pt(e,"memo"),l=ft(e,"key",!1,!0);l&&l.type;let c=l&&(6===l.type?l.value?Re(l.value.content,!0):void 0:l.exp);const u=l&&c?Ne("key",c):null,d=4===t.source.type&&t.source.constType>0,h=d?64:l?128:256;return t.codegenNode=Ae(n,r(B),void 0,a,h,void 0,void 0,!0,!d,!1,e.loc),()=>{let l;const{children:h}=t;const p=1!==h.length||1!==h[0].type,f=wt(e)?e:o&&1===e.children.length&&wt(e.children[0])?e.children[0]:null;if(f?(l=f.codegenNode,o&&u&&kt(l,u,n)):p?l=Ae(n,r(B),u?Te([u]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(l=h[0].codegenNode,o&&u&&kt(l,u,n),l.isBlock!==!d&&(l.isBlock?(i(V),i(Fe(n.inSSR,l.isComponent))):i(Be(n.inSSR,l.isComponent))),l.isBlock=!d,l.isBlock?(r(V),r(Fe(n.inSSR,l.isComponent))):r(Be(n.inSSR,l.isComponent))),s){const e=Le(hr(t.parseResult,[Re("_cached")]));e.body=Me([Oe(["const _memo = (",s.exp,")"]),Oe(["if (_cached",...c?[" && _cached.key === ",c]:[],` && ${n.helperString(we)}(_cached, _memo)) return _cached`]),Oe(["const _item = ",l]),Re("_item.memo = _memo"),Re("return _item")]),a.arguments.push(e,Re("_cache"),Re(String(n.cached.length))),n.cached.push(null)}else a.arguments.push(Le(hr(t.parseResult),l,!0))}})});function ur(e,t,n,r){if(!t.exp)return void n.onError(Ze(31,t.loc));const i=t.forParseResult;if(!i)return void n.onError(Ze(32,t.loc));dr(i,n);const{addIdentifiers:a,removeIdentifiers:o,scopes:s}=n,{source:l,value:c,key:u,index:d}=i,h={type:11,loc:t.loc,source:l,valueAlias:c,keyAlias:u,objectIndexAlias:d,parseResult:i,children:_t(e)?e.children:[e]};n.replaceNode(h),s.vFor++;const p=r&&r(h);return()=>{s.vFor--,p&&p()}}function dr(e,t){e.finalized||(e.finalized=!0)}function hr({value:e,key:t,index:n},r=[]){return pr([e,t,n,...r])}function pr(e){let t=e.length;while(t--)if(e[t])break;return e.slice(0,t+1).map((e,t)=>e||Re("_".repeat(t+1),!1))}const fr=Re("undefined",!1),mr=(e,t)=>{if(1===e.type&&(1===e.tagType||3===e.tagType)){const n=pt(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},gr=(e,t,n,r)=>Le(e,n,!1,!0,n.length?n[0].loc:r);function vr(e,t,n=gr){t.helper(ve);const{children:r,loc:i}=e,a=[],o=[];let s=t.scopes.vSlot>0||t.scopes.vFor>0;const l=pt(e,"slot",!0);if(l){const{arg:e,exp:t}=l;e&&!et(e)&&(s=!0),a.push(Ne(e||Re("default",!0),n(t,void 0,r,i)))}let c=!1,u=!1;const d=[],h=new Set;let p=0;for(let g=0;g<r.length;g++){const e=r[g];let i;if(!_t(e)||!(i=pt(e,"slot",!0))){3!==e.type&&d.push(e);continue}if(l){t.onError(Ze(37,i.loc));break}c=!0;const{children:f,loc:m}=e,{arg:v=Re("default",!0),exp:b,loc:y}=i;let _;et(v)?_=v?v.content:"default":s=!0;const w=pt(e,"for"),E=n(b,w,f,m);let S,k;if(S=pt(e,"if"))s=!0,o.push(De(S.exp,br(v,E,p++),fr));else if(k=pt(e,/^else(?:-if)?$/,!0)){let e,n=g;while(n--)if(e=r[n],!Ot(e))break;if(e&&_t(e)&&pt(e,/^(?:else-)?if$/)){let e=o[o.length-1];while(19===e.alternate.type)e=e.alternate;e.alternate=k.exp?De(k.exp,br(v,E,p++),fr):br(v,E,p++)}else t.onError(Ze(30,k.loc))}else if(w){s=!0;const e=w.forParseResult;e?(dr(e,t),o.push(Ie(t.helper(te),[e.source,Le(hr(e),br(v,E),!0)]))):t.onError(Ze(32,w.loc))}else{if(_){if(h.has(_)){t.onError(Ze(38,y));continue}h.add(_),"default"===_&&(u=!0)}a.push(Ne(v,E))}}if(!l){const e=(e,r)=>{const a=n(e,void 0,r,i);return t.compatConfig&&(a.isNonScopedSlot=!0),Ne("default",a)};c?d.length&&!d.every(Rt)&&(u?t.onError(Ze(39,d[0].loc)):a.push(e(void 0,d))):a.push(e(void 0,r))}const f=s?2:yr(e.children)?3:1;let m=Te(a.concat(Ne("_",Re(f+"",!1))),i);return o.length&&(m=Ie(t.helper(re),[m,Ce(o)])),{slots:m,hasDynamicSlots:s}}function br(e,t,n){const r=[Ne("name",e),Ne("fn",t)];return null!=n&&r.push(Ne("key",Re(String(n),!0))),Te(r)}function yr(e){for(let t=0;t<e.length;t++){const n=e[t];switch(n.type){case 1:if(2===n.tagType||yr(n.children))return!0;break;case 9:if(yr(n.branches))return!0;break;case 10:case 11:if(yr(n.children))return!0;break}}return!1}const _r=new WeakMap,wr=(e,t)=>function(){if(e=t.currentNode,1!==e.type||0!==e.tagType&&1!==e.tagType)return;const{tag:n,props:r}=e,i=1===e.tagType;let a=i?Er(e,t):`"${n}"`;const o=f(a)&&a.callee===Q;let s,l,c,u,d,h=0,p=o||a===F||a===$||!i&&("svg"===n||"foreignObject"===n||"math"===n);if(r.length>0){const n=Sr(e,t,void 0,i,o);s=n.props,h=n.patchFlag,u=n.dynamicPropNames;const r=n.directives;d=r&&r.length?Ce(r.map(e=>Ar(e,t))):void 0,n.shouldUseBlock&&(p=!0)}if(e.children.length>0){a===U&&(p=!0,h|=1024);const n=i&&a!==F&&a!==U;if(n){const{slots:n,hasDynamicSlots:r}=vr(e,t);l=n,r&&(h|=1024)}else if(1===e.children.length&&a!==F){const n=e.children[0],r=n.type,i=5===r||8===r;i&&0===En(n,t)&&(h|=1),l=i||2===r?n:e.children}else l=e.children}u&&u.length&&(c=Cr(u)),e.codegenNode=Ae(t,a,s,l,0===h?void 0:h,c,d,!!p,!1,i,e.loc)};function Er(e,t,n=!1){let{tag:r}=e;const i=Tr(r),a=ft(e,"is",!1,!0);if(a)if(i||We("COMPILER_IS_ON_ELEMENT",t)){let e;if(6===a.type?e=a.value&&Re(a.value.content,!0):(e=a.exp,e||(e=Re("is",!1,a.arg.loc))),e)return Ie(t.helper(Q),[e])}else 6===a.type&&a.value.content.startsWith("vue:")&&(r=a.value.content.slice(4));const o=tt(r)||t.isBuiltInComponent(r);return o?(n||t.helper(o),o):(t.helper(Y),t.components.add(r),At(r,"component"))}function Sr(e,t,n=e.props,r,i,a=!1){const{tag:o,loc:s,children:l}=e;let u=[];const d=[],h=[],f=l.length>0;let v=!1,b=0,y=!1,_=!1,w=!1,E=!1,S=!1,k=!1;const x=[],A=e=>{u.length&&(d.push(Te(kr(u),s)),u=[]),e&&d.push(e)},C=()=>{t.scopes.vFor>0&&u.push(Ne(Re("ref_for",!0),Re("true")))},T=({key:e,value:n})=>{if(et(e)){const a=e.content,o=c(a);if(!o||r&&!i||"onclick"===a.toLowerCase()||"onUpdate:modelValue"===a||m(a)||(E=!0),o&&m(a)&&(k=!0),o&&14===n.type&&(n=n.arguments[0]),20===n.type||(4===n.type||8===n.type)&&En(n,t)>0)return;"ref"===a?y=!0:"class"===a?_=!0:"style"===a?w=!0:"key"===a||x.includes(a)||x.push(a),!r||"class"!==a&&"style"!==a||x.includes(a)||x.push(a)}else S=!0};for(let c=0;c<n.length;c++){const i=n[c];if(6===i.type){const{loc:e,name:n,nameLoc:r,value:a}=i;let s=!0;if("ref"===n&&(y=!0,C()),"is"===n&&(Tr(o)||a&&a.content.startsWith("vue:")||We("COMPILER_IS_ON_ELEMENT",t)))continue;u.push(Ne(Re(n,!0,r),Re(a?a.content:"",s,a?a.loc:e)))}else{const{name:n,arg:l,exp:c,loc:m,modifiers:y}=i,_="bind"===n,w="on"===n;if("slot"===n){r||t.onError(Ze(40,m));continue}if("once"===n||"memo"===n)continue;if("is"===n||_&&mt(l,"is")&&(Tr(o)||We("COMPILER_IS_ON_ELEMENT",t)))continue;if(w&&a)continue;if((_&&mt(l,"key")||w&&f&&mt(l,"vue:before-update"))&&(v=!0),_&&mt(l,"ref")&&C(),!l&&(_||w)){if(S=!0,c)if(_){if(A(),We("COMPILER_V_BIND_OBJECT_ORDER",t)){d.unshift(c);continue}C(),A(),d.push(c)}else A({type:14,loc:m,callee:t.helper(ue),arguments:r?[c]:[c,"true"]});else t.onError(Ze(_?34:35,m));continue}_&&y.some(e=>"prop"===e.content)&&(b|=32);const E=t.directiveTransforms[n];if(E){const{props:n,needRuntime:r}=E(i,e,t);!a&&n.forEach(T),w&&l&&!et(l)?A(Te(n,s)):u.push(...n),r&&(h.push(i),p(r)&&_r.set(i,r))}else g(n)||(h.push(i),f&&(v=!0))}}let N;if(d.length?(A(),N=d.length>1?Ie(t.helper(ae),d,s):d[0]):u.length&&(N=Te(kr(u),s)),S?b|=16:(_&&!r&&(b|=2),w&&!r&&(b|=4),x.length&&(b|=8),E&&(b|=32)),v||0!==b&&32!==b||!(y||k||h.length>0)||(b|=512),!t.inSSR&&N)switch(N.type){case 15:let e=-1,n=-1,r=!1;for(let t=0;t<N.properties.length;t++){const i=N.properties[t].key;et(i)?"class"===i.content?e=t:"style"===i.content&&(n=t):i.isHandlerKey||(r=!0)}const i=N.properties[e],a=N.properties[n];r?N=Ie(t.helper(le),[N]):(i&&!et(i.value)&&(i.value=Ie(t.helper(oe),[i.value])),a&&(w||4===a.value.type&&"["===a.value.content.trim()[0]||17===a.value.type)&&(a.value=Ie(t.helper(se),[a.value])));break;case 14:break;default:N=Ie(t.helper(le),[Ie(t.helper(ce),[N])]);break}return{props:N,directives:h,patchFlag:b,dynamicPropNames:x,shouldUseBlock:v}}function kr(e){const t=new Map,n=[];for(let r=0;r<e.length;r++){const i=e[r];if(8===i.key.type||!i.key.isStatic){n.push(i);continue}const a=i.key.content,o=t.get(a);o?("style"===a||"class"===a||c(a))&&xr(o,i):(t.set(a,i),n.push(i))}return n}function xr(e,t){17===e.value.type?e.value.elements.push(t.value):e.value=Ce([e.value,t.value],e.loc)}function Ar(e,t){const n=[],r=_r.get(e);r?n.push(t.helperString(r)):(t.helper(J),t.directives.add(e.name),n.push(At(e.name,"directive")));const{loc:i}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push("void 0"),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push("void 0"),n.push("void 0"));const t=Re("true",!1,i);n.push(Te(e.modifiers.map(e=>Ne(e,t)),i))}return Ce(n,e.loc)}function Cr(e){let t="[";for(let n=0,r=e.length;n<r;n++)t+=JSON.stringify(e[n]),n<r-1&&(t+=", ");return t+"]"}function Tr(e){return"component"===e||"Component"===e}const Nr=(e,t)=>{if(wt(e)){const{children:n,loc:r}=e,{slotName:i,slotProps:a}=Rr(e,t),o=[t.prefixIdentifiers?"_ctx.$slots":"$slots",i,"{}","undefined","true"];let s=2;a&&(o[2]=a,s=3),n.length&&(o[3]=Le([],n,!1,!1,r),s=4),t.scopeId&&!t.slotted&&(s=5),o.splice(s),e.codegenNode=Ie(t.helper(ne),o,r)}};function Rr(e,t){let n,r='"default"';const i=[];for(let a=0;a<e.props.length;a++){const t=e.props[a];if(6===t.type)t.value&&("name"===t.name?r=JSON.stringify(t.value.content):(t.name=y(t.name),i.push(t)));else if("bind"===t.name&&mt(t.arg,"name")){if(t.exp)r=t.exp;else if(t.arg&&4===t.arg.type){const e=y(t.arg.content);r=t.exp=Re(e,!1,t.arg.loc)}}else"bind"===t.name&&t.arg&&et(t.arg)&&(t.arg.content=y(t.arg.content)),i.push(t)}if(i.length>0){const{props:r,directives:a}=Sr(e,t,i,!1,!1);n=r,a.length&&t.onError(Ze(36,a[0].loc))}return{slotName:r,slotProps:n}}const Or=(e,t,n,r)=>{const{loc:i,modifiers:a,arg:o}=e;let s;if(e.exp||a.length||n.onError(Ze(35,i)),4===o.type)if(o.isStatic){let e=o.content;0,e.startsWith("vue:")&&(e=`vnode-${e.slice(4)}`);const n=0!==t.tagType||e.startsWith("vnode")||!/[A-Z]/.test(e)?E(y(e)):`on:${e}`;s=Re(n,!0,o.loc)}else s=Oe([`${n.helperString(pe)}(`,o,")"]);else s=o,s.children.unshift(`${n.helperString(pe)}(`),s.children.push(")");let l=e.exp;l&&!l.content.trim()&&(l=void 0);let c=n.cacheHandlers&&!l&&!n.inVOnce;if(l){const e=ct(l),t=!(e||ht(l)),n=l.content.includes(";");0,(t||c&&e)&&(l=Oe([`${t?"$event":"(...args)"} => ${n?"{":"("}`,l,n?"}":")"]))}let u={props:[Ne(s,l||Re("() => {}",!1,i))]};return r&&(u=r(u)),c&&(u.props[0].value=n.cache(u.props[0].value)),u.props.forEach(e=>e.key.isHandlerKey=!0),u},Ir=(e,t,n)=>{const{modifiers:r,loc:i}=e,a=e.arg;let{exp:o}=e;return o&&4===o.type&&!o.content.trim()&&(o=void 0),4!==a.type?(a.children.unshift("("),a.children.push(') || ""')):a.isStatic||(a.content=a.content?`${a.content} || ""`:'""'),r.some(e=>"camel"===e.content)&&(4===a.type?a.isStatic?a.content=y(a.content):a.content=`${n.helperString(de)}(${a.content})`:(a.children.unshift(`${n.helperString(de)}(`),a.children.push(")"))),n.inSSR||(r.some(e=>"prop"===e.content)&&Lr(a,"."),r.some(e=>"attr"===e.content)&&Lr(a,"^")),{props:[Ne(a,o)]}},Lr=(e,t)=>{4===e.type?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},Dr=(e,t)=>{if(0===e.type||1===e.type||11===e.type||10===e.type)return()=>{const n=e.children;let r,i=!1;for(let e=0;e<n.length;e++){const t=n[e];if(vt(t)){i=!0;for(let i=e+1;i<n.length;i++){const a=n[i];if(!vt(a)){r=void 0;break}r||(r=n[e]=Oe([t],t.loc)),r.children.push(" + ",a),n.splice(i,1),i--}}}if(i&&(1!==n.length||0!==e.type&&(1!==e.type||0!==e.tagType||e.props.find(e=>7===e.type&&!t.directiveTransforms[e.name])||"template"===e.tag)))for(let e=0;e<n.length;e++){const r=n[e];if(vt(r)||8===r.type){const i=[];2===r.type&&" "===r.content||i.push(r),t.ssr||0!==En(r,t)||i.push("1"),n[e]={type:12,content:r,loc:r.loc,codegenNode:Ie(t.helper(X),i)}}}}},Pr=new WeakSet,Mr=(e,t)=>{if(1===e.type&&pt(e,"once",!0)){if(Pr.has(e)||t.inVOnce||t.inSSR)return;return Pr.add(e),t.inVOnce=!0,t.helper(fe),()=>{t.inVOnce=!1;const e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0,!0))}}},Br=(e,t,n)=>{const{exp:r,arg:i}=e;if(!r)return n.onError(Ze(41,e.loc)),Fr();const a=r.loc.source.trim(),o=4===r.type?r.content:a,s=n.bindingMetadata[a];if("props"===s||"props-aliased"===s)return n.onError(Ze(44,r.loc)),Fr();if("literal-const"===s||"setup-const"===s)return n.onError(Ze(45,r.loc)),Fr();if(!o.trim()||!ct(r))return n.onError(Ze(42,r.loc)),Fr();const l=i||Re("modelValue",!0),c=i?et(i)?`onUpdate:${y(i.content)}`:Oe(['"onUpdate:" + ',i]):"onUpdate:modelValue";let u;const d=n.isTS?"($event: any)":"$event";u=Oe([`${d} => ((`,r,") = $event)"]);const h=[Ne(l,e.exp),Ne(c,u)];if(e.modifiers.length&&1===t.tagType){const t=e.modifiers.map(e=>e.content).map(e=>(rt(e)?e:JSON.stringify(e))+": true").join(", "),n=i?et(i)?`${i.content}Modifiers`:Oe([i,' + "Modifiers"']):"modelModifiers";h.push(Ne(n,Re(`{ ${t} }`,!1,e.loc,2)))}return Fr(h)};function Fr(e=[]){return{props:e}}const $r=/[\w).+\-_$\]]/,Ur=(e,t)=>{We("COMPILER_FILTERS",t)&&(5===e.type?jr(e.content,t):1===e.type&&e.props.forEach(e=>{7===e.type&&"for"!==e.name&&e.exp&&jr(e.exp,t)}))};function jr(e,t){if(4===e.type)Vr(e,t);else for(let n=0;n<e.children.length;n++){const r=e.children[n];"object"===typeof r&&(4===r.type?Vr(r,t):8===r.type?jr(e,t):5===r.type&&jr(r.content,t))}}function Vr(e,t){const n=e.content;let r,i,a,o,s=!1,l=!1,c=!1,u=!1,d=0,h=0,p=0,f=0,m=[];for(a=0;a<n.length;a++)if(i=r,r=n.charCodeAt(a),s)39===r&&92!==i&&(s=!1);else if(l)34===r&&92!==i&&(l=!1);else if(c)96===r&&92!==i&&(c=!1);else if(u)47===r&&92!==i&&(u=!1);else if(124!==r||124===n.charCodeAt(a+1)||124===n.charCodeAt(a-1)||d||h||p){switch(r){case 34:l=!0;break;case 39:s=!0;break;case 96:c=!0;break;case 40:p++;break;case 41:p--;break;case 91:h++;break;case 93:h--;break;case 123:d++;break;case 125:d--;break}if(47===r){let e,t=a-1;for(;t>=0;t--)if(e=n.charAt(t)," "!==e)break;e&&$r.test(e)||(u=!0)}}else void 0===o?(f=a+1,o=n.slice(0,a).trim()):g();function g(){m.push(n.slice(f,a).trim()),f=a+1}if(void 0===o?o=n.slice(0,a).trim():0!==f&&g(),m.length){for(a=0;a<m.length;a++)o=Kr(o,m[a],t);e.content=o,e.ast=void 0}}function Kr(e,t,n){n.helper(Z);const r=t.indexOf("(");if(r<0)return n.filters.add(t),`${At(t,"filter")}(${e})`;{const i=t.slice(0,r),a=t.slice(r+1);return n.filters.add(i),`${At(i,"filter")}(${e}${")"!==a?","+a:a}`}}const Gr=new WeakSet,Hr=(e,t)=>{if(1===e.type){const n=pt(e,"memo");if(!n||Gr.has(e)||t.inSSR)return;return Gr.add(e),()=>{const r=e.codegenNode||t.currentNode.codegenNode;r&&13===r.type&&(1!==e.tagType&&$e(r,t),e.codegenNode=Ie(t.helper(_e),[n.exp,Le(void 0,r),"_cache",String(t.cached.length)]),t.cached.push(null))}}},zr=(e,t)=>{if(1===e.type)for(const n of e.props)if(7===n.type&&"bind"===n.name&&(!n.exp||4===n.exp.type&&!n.exp.content.trim())&&n.arg){const e=n.arg;if(4===e.type&&e.isStatic){const t=y(e.content);(it.test(t[0])||"-"===t[0])&&(n.exp=Re(t,!1,e.loc))}else t.onError(Ze(53,e.loc)),n.exp=Re("",!0,e.loc)}};function qr(e){return[[zr,Mr,rr,Hr,cr,Ur,Nr,wr,mr,Dr],{on:Or,bind:Ir,model:Br}]}function Xr(e,t={}){const n=t.onError||Qe,r="module"===t.mode;!0===t.prefixIdentifiers?n(Ze(48)):r&&n(Ze(49));const i=!1;t.cacheHandlers&&n(Ze(50)),t.scopeId&&!r&&n(Ze(51));const a=u({},t,{prefixIdentifiers:i}),o=h(e)?bn(e,a):e,[s,l]=qr();return Tn(o,u({},a,{nodeTransforms:[...s,...t.nodeTransforms||[]],directiveTransforms:u({},l,t.directiveTransforms||{})})),Mn(o,a)}const Wr=()=>({props:[]});
|
||
/**
|
||
* @vue/compiler-dom v3.5.29
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/
|
||
const Yr=Symbol(""),Qr=Symbol(""),Jr=Symbol(""),Zr=Symbol(""),ei=Symbol(""),ti=Symbol(""),ni=Symbol(""),ri=Symbol(""),ii=Symbol(""),ai=Symbol("");let oi;function si(e,t=!1){return oi||(oi=document.createElement("div")),t?(oi.innerHTML=`<div foo="${e.replace(/"/g,""")}">`,oi.children[0].getAttribute("foo")):(oi.innerHTML=e,oi.textContent)}Se({[Yr]:"vModelRadio",[Qr]:"vModelCheckbox",[Jr]:"vModelText",[Zr]:"vModelSelect",[ei]:"vModelDynamic",[ti]:"withModifiers",[ni]:"withKeys",[ri]:"vShow",[ii]:"Transition",[ai]:"TransitionGroup"});const li={parseMode:"html",isVoidTag:M,isNativeTag:e=>L(e)||D(e)||P(e),isPreTag:e=>"pre"===e,isIgnoreNewlineTag:e=>"pre"===e||"textarea"===e,decodeEntities:si,isBuiltInComponent:e=>"Transition"===e||"transition"===e?ii:"TransitionGroup"===e||"transition-group"===e?ai:void 0,getNamespace(e,t,n){let r=t?t.ns:n;if(t&&2===r)if("annotation-xml"===t.tag){if("svg"===e)return 1;t.props.some(e=>6===e.type&&"encoding"===e.name&&null!=e.value&&("text/html"===e.value.content||"application/xhtml+xml"===e.value.content))&&(r=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&"mglyph"!==e&&"malignmark"!==e&&(r=0);else t&&1===r&&("foreignObject"!==t.tag&&"desc"!==t.tag&&"title"!==t.tag||(r=0));if(0===r){if("svg"===e)return 1;if("math"===e)return 2}return r}},ci=e=>{1===e.type&&e.props.forEach((t,n)=>{6===t.type&&"style"===t.name&&t.value&&(e.props[n]={type:7,name:"bind",arg:Re("style",!0,t.loc),exp:ui(t.value.content,t.loc),modifiers:[],loc:t.loc})})},ui=(e,t)=>{const n=T(e);return Re(JSON.stringify(n),!1,t,3)};function di(e,t){return Ze(e,t,void 0)}const hi=(e,t,n)=>{const{exp:r,loc:i}=e;return r||n.onError(di(54,i)),t.children.length&&(n.onError(di(55,i)),t.children.length=0),{props:[Ne(Re("innerHTML",!0,i),r||Re("",!0))]}},pi=(e,t,n)=>{const{exp:r,loc:i}=e;return r||n.onError(di(56,i)),t.children.length&&(n.onError(di(57,i)),t.children.length=0),{props:[Ne(Re("textContent",!0),r?En(r,n)>0?r:Ie(n.helperString(ie),[r],i):Re("",!0))]}},fi=(e,t,n)=>{const r=Br(e,t,n);if(!r.props.length||1===t.tagType)return r;e.arg&&n.onError(di(59,e.arg.loc));const{tag:i}=t,a=n.isCustomElement(i);if("input"===i||"textarea"===i||"select"===i||a){let o=Jr,s=!1;if("input"===i||a){const r=ft(t,"type");if(r){if(7===r.type)o=ei;else if(r.value)switch(r.value.content){case"radio":o=Yr;break;case"checkbox":o=Qr;break;case"file":s=!0,n.onError(di(60,e.loc));break;default:break}}else gt(t)&&(o=ei)}else"select"===i&&(o=Zr);s||(r.needRuntime=n.helper(o))}else n.onError(di(58,e.loc));return r.props=r.props.filter(e=>!(4===e.key.type&&"modelValue"===e.key.content)),r},mi=a("passive,once,capture"),gi=a("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),vi=a("left,right"),bi=a("onkeyup,onkeydown,onkeypress"),yi=(e,t,n,r)=>{const i=[],a=[],o=[];for(let s=0;s<t.length;s++){const l=t[s].content;"native"===l&&Ye("COMPILER_V_ON_NATIVE",n,r)||mi(l)?o.push(l):vi(l)?et(e)?bi(e.content.toLowerCase())?i.push(l):a.push(l):(i.push(l),a.push(l)):gi(l)?a.push(l):i.push(l)}return{keyModifiers:i,nonKeyModifiers:a,eventOptionModifiers:o}},_i=(e,t)=>{const n=et(e)&&"onclick"===e.content.toLowerCase();return n?Re(t,!0):4!==e.type?Oe(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e},wi=(e,t,n)=>Or(e,t,n,t=>{const{modifiers:r}=e;if(!r.length)return t;let{key:i,value:a}=t.props[0];const{keyModifiers:o,nonKeyModifiers:s,eventOptionModifiers:l}=yi(i,r,n,e.loc);if(s.includes("right")&&(i=_i(i,"onContextmenu")),s.includes("middle")&&(i=_i(i,"onMouseup")),s.length&&(a=Ie(n.helper(ti),[a,JSON.stringify(s)])),!o.length||et(i)&&!bi(i.content.toLowerCase())||(a=Ie(n.helper(ni),[a,JSON.stringify(o)])),l.length){const e=l.map(w).join("");i=et(i)?Re(`${i.content}${e}`,!0):Oe(["(",i,`) + "${e}"`])}return{props:[Ne(i,a)]}}),Ei=(e,t,n)=>{const{exp:r,loc:i}=e;return r||n.onError(di(62,i)),{props:[],needRuntime:n.helper(ri)}};const Si=(e,t)=>{1!==e.type||0!==e.tagType||"script"!==e.tag&&"style"!==e.tag||t.removeNode()};const ki=[ci],xi={cloak:Wr,html:hi,text:pi,model:fi,on:wi,show:Ei};function Ai(e,t={}){return Xr(e,u({},li,t,{nodeTransforms:[Si,...ki,...t.nodeTransforms||[]],directiveTransforms:u({},xi,t.directiveTransforms||{}),transformHoist:null}))}n(4364);const{ensureValidVNode:Ci}=r.ssrUtils;{const e=k(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};t("__VUE_INSTANCE_SETTERS__",e=>e),t("__VUE_SSR_SETTERS__",e=>e)}const{createComponentInstance:Ti,setCurrentRenderingInstance:Ni,setupComponent:Ri,renderComponentRoot:Oi,normalizeVNode:Ii,pushWarningContext:Li,popWarningContext:Di}=r.ssrUtils;const{isVNode:Pi}=r.ssrUtils;const{isVNode:Mi}=r.ssrUtils;(0,r.initDirectivesForSSR)();var Bi=n(4364),Fi=function(e,t){return Fi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Fi(e,t)};function $i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Fi(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Ui=function(){return Ui=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ui.apply(this,arguments)};function ji(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,a){function o(e){try{l(r.next(e))}catch(t){a(t)}}function s(e){try{l(r["throw"](e))}catch(t){a(t)}}function l(e){e.done?n(e.value):i(e.value).then(o,s)}l((r=r.apply(e,t||[])).next())})}function Vi(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return l([e,t])}}function l(s){if(n)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(o=0)),o)try{if(n=1,r&&(i=2&s[0]?r["return"]:s[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(i=o.trys,!(i=i.length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(l){s=[6,l],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}function Ki(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}"function"===typeof SuppressedError&&SuppressedError;var Gi=function(){function e(){this.installedPlugins=[]}return e.prototype.install=function(e,t){"function"!==typeof e&&(Bi.error("plugin.install must receive a function"),e=function(){return{}}),this.installedPlugins.push({handler:e,options:t})},e.prototype.extend=function(e){var t=function(t){var n=t.handler,r=t.options;return n(e,r)},n=function(t){var n=t[0],r=t[1];e[n]="function"===typeof r?r.bind(e):r},r=function(e){e="object"===typeof e?e:{},Object.entries(e).forEach(n)};this.installedPlugins.map(t).forEach(r)},e.prototype.reset=function(){this.installedPlugins=[]},e}(),Hi={global:{stubs:{transition:!0,"transition-group":!0},provide:{},components:{},config:{},directives:{},mixins:[],mocks:{},plugins:[],renderStubDefaultSlot:!1},plugins:{VueWrapper:new Gi,DOMWrapper:new Gi}};function zi(e,t){if(t.stubs)if(Array.isArray(t.stubs))t.stubs.forEach(function(t){return e[t]=!0});else for(var n=0,r=Object.entries(t.stubs);n<r.length;n++){var i=r[n],a=i[0],o=i[1];e[a]=o}}function qi(e,t){return Ui(Ui(Ui({},e),t),{globalProperties:Ui(Ui({},null===e||void 0===e?void 0:e.globalProperties),null===t||void 0===t?void 0:t.globalProperties)})}function Xi(e){var t,n,r;void 0===e&&(e={});var i={},a=null!==(t=null===Hi||void 0===Hi?void 0:Hi.global)&&void 0!==t?t:{};zi(i,a),zi(i,e);var o=null!==(r=null!==(n=e.renderStubDefaultSlot)&&void 0!==n?n:a.renderStubDefaultSlot||(null===Hi||void 0===Hi?void 0:Hi.renderStubDefaultSlot))&&void 0!==r&&r;return!0===Hi.renderStubDefaultSlot&&Bi.warn("config.renderStubDefaultSlot is deprecated, use config.global.renderStubDefaultSlot instead"),{mixins:Ki(Ki([],a.mixins||[],!0),e.mixins||[],!0),plugins:Ki(Ki([],a.plugins||[],!0),e.plugins||[],!0),stubs:i,components:Ui(Ui({},a.components),e.components),provide:Ui(Ui({},a.provide),e.provide),mocks:Ui(Ui({},a.mocks),e.mocks),config:qi(a.config,e.config),directives:Ui(Ui({},a.directives),e.directives),renderStubDefaultSlot:o}}var Wi=function(e){return!!e&&"object"===typeof e};function Yi(e){if(e instanceof Object){var t=e.constructor&&"class"===e.constructor.toString().substring(0,5);if(!("prototype"in e))return t;var n=e.prototype,r=n.constructor&&n.constructor.toString&&"class"===n.constructor.toString().substring(0,5);return t||r}}var Qi=function(e,t){var n;return Wi(e)&&Wi(t)?(Object.keys(t).concat(Yi(t)?Object.getOwnPropertyNames(null!==(n=Object.getPrototypeOf(t))&&void 0!==n?n:{}):Object.getOwnPropertyNames(t)).forEach(function(n){var r=e[n],i=t[n];Array.isArray(r)&&Array.isArray(i)||i instanceof Date?e[n]=i:Wi(r)&&Wi(i)?e[n]=Qi(Object.assign({},r),i):e[n]=i}),e):t};function Ji(e){return"function"===typeof e&&"__vccOpts"in e}function Zi(e){return Boolean(e&&("object"===typeof e||"function"===typeof e))}function ea(e){return"function"===typeof e&&!Ji(e)}function ta(e){return Boolean(e&&"object"===typeof e)}function na(e){var t,n;return e.nodeType!==Node.COMMENT_NODE&&null!==(n=null===(t=e.textContent)||void 0===t?void 0:t.trim())&&void 0!==n?n:""}function ra(e,t){return e.hasOwnProperty(t)}function ia(e){return Boolean(e)}function aa(e){return"object"===typeof e&&"ref"in e}function oa(e){return Array.isArray(e)?e.reduce(function(e,t){return e[t]=!0,e},{}):e}var sa,la=function(e){return e.match(/^v[A-Z].*/)};function ca(e){var t=oa(e);return Object.fromEntries(Object.entries(t).filter(function(e){var t=e[0];return!la(t)}))}function ua(e){var t=oa(e);return Object.fromEntries(Object.entries(t).filter(function(e){var t=e[0],n=e[1];return la(t)&&!1!==n}).map(function(e){var t=e[0],n=e[1];return[t.substring(1),n]}))}function da(e){return e&&e.$.devtoolsRawSetupState}function ha(e){return e&&e.$.setupState.__isScriptSetup}var pa=function(){return sa||(sa="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{})},fa=["stop","prevent","self","exact","prevent","capture"],ma=["ctrl","shift","alt","meta"],ga=["left","middle","right"],va={backspace:8,tab:9,enter:13,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46},ba={abort:{eventInterface:"Event",bubbles:!1,cancelable:!1},afterprint:{eventInterface:"Event",bubbles:!1,cancelable:!1},animationend:{eventInterface:"AnimationEvent",bubbles:!0,cancelable:!1},animationiteration:{eventInterface:"AnimationEvent",bubbles:!0,cancelable:!1},animationstart:{eventInterface:"AnimationEvent",bubbles:!0,cancelable:!1},appinstalled:{eventInterface:"Event",bubbles:!1,cancelable:!1},audioprocess:{eventInterface:"AudioProcessingEvent",bubbles:!1,cancelable:!1},audioend:{eventInterface:"Event",bubbles:!1,cancelable:!1},audiostart:{eventInterface:"Event",bubbles:!1,cancelable:!1},beforeprint:{eventInterface:"Event",bubbles:!1,cancelable:!1},beforeunload:{eventInterface:"BeforeUnloadEvent",bubbles:!1,cancelable:!0},beginEvent:{eventInterface:"TimeEvent",bubbles:!1,cancelable:!1},blur:{eventInterface:"FocusEvent",bubbles:!1,cancelable:!1},boundary:{eventInterface:"SpeechSynthesisEvent",bubbles:!1,cancelable:!1},cached:{eventInterface:"Event",bubbles:!1,cancelable:!1},canplay:{eventInterface:"Event",bubbles:!1,cancelable:!1},canplaythrough:{eventInterface:"Event",bubbles:!1,cancelable:!1},change:{eventInterface:"Event",bubbles:!0,cancelable:!1},chargingchange:{eventInterface:"Event",bubbles:!1,cancelable:!1},chargingtimechange:{eventInterface:"Event",bubbles:!1,cancelable:!1},checking:{eventInterface:"Event",bubbles:!1,cancelable:!1},click:{eventInterface:"MouseEvent",bubbles:!0,cancelable:!0},close:{eventInterface:"Event",bubbles:!1,cancelable:!1},complete:{eventInterface:"OfflineAudioCompletionEvent",bubbles:!1,cancelable:!1},compositionend:{eventInterface:"CompositionEvent",bubbles:!0,cancelable:!0},compositionstart:{eventInterface:"CompositionEvent",bubbles:!0,cancelable:!0},compositionupdate:{eventInterface:"CompositionEvent",bubbles:!0,cancelable:!1},contextmenu:{eventInterface:"MouseEvent",bubbles:!0,cancelable:!0},copy:{eventInterface:"ClipboardEvent",bubbles:!0,cancelable:!0},cut:{eventInterface:"ClipboardEvent",bubbles:!0,cancelable:!0},dblclick:{eventInterface:"MouseEvent",bubbles:!0,cancelable:!0},devicechange:{eventInterface:"Event",bubbles:!1,cancelable:!1},devicelight:{eventInterface:"DeviceLightEvent",bubbles:!1,cancelable:!1},devicemotion:{eventInterface:"DeviceMotionEvent",bubbles:!1,cancelable:!1},deviceorientation:{eventInterface:"DeviceOrientationEvent",bubbles:!1,cancelable:!1},deviceproximity:{eventInterface:"DeviceProximityEvent",bubbles:!1,cancelable:!1},dischargingtimechange:{eventInterface:"Event",bubbles:!1,cancelable:!1},DOMActivate:{eventInterface:"UIEvent",bubbles:!0,cancelable:!0},DOMAttributeNameChanged:{eventInterface:"MutationNameEvent",bubbles:!0,cancelable:!0},DOMAttrModified:{eventInterface:"MutationEvent",bubbles:!0,cancelable:!0},DOMCharacterDataModified:{eventInterface:"MutationEvent",bubbles:!0,cancelable:!0},DOMContentLoaded:{eventInterface:"Event",bubbles:!0,cancelable:!0},DOMElementNameChanged:{eventInterface:"MutationNameEvent",bubbles:!0,cancelable:!0},DOMFocusIn:{eventInterface:"FocusEvent",bubbles:!0,cancelable:!0},DOMFocusOut:{eventInterface:"FocusEvent",bubbles:!0,cancelable:!0},DOMNodeInserted:{eventInterface:"MutationEvent",bubbles:!0,cancelable:!0},DOMNodeInsertedIntoDocument:{eventInterface:"MutationEvent",bubbles:!0,cancelable:!0},DOMNodeRemoved:{eventInterface:"MutationEvent",bubbles:!0,cancelable:!0},DOMNodeRemovedFromDocument:{eventInterface:"MutationEvent",bubbles:!0,cancelable:!0},DOMSubtreeModified:{eventInterface:"MutationEvent",bubbles:!0,cancelable:!1},downloading:{eventInterface:"Event",bubbles:!1,cancelable:!1},drag:{eventInterface:"DragEvent",bubbles:!0,cancelable:!0},dragend:{eventInterface:"DragEvent",bubbles:!0,cancelable:!1},dragenter:{eventInterface:"DragEvent",bubbles:!0,cancelable:!0},dragleave:{eventInterface:"DragEvent",bubbles:!0,cancelable:!1},dragover:{eventInterface:"DragEvent",bubbles:!0,cancelable:!0},dragstart:{eventInterface:"DragEvent",bubbles:!0,cancelable:!0},drop:{eventInterface:"DragEvent",bubbles:!0,cancelable:!0},durationchange:{eventInterface:"Event",bubbles:!1,cancelable:!1},emptied:{eventInterface:"Event",bubbles:!1,cancelable:!1},end:{eventInterface:"Event",bubbles:!1,cancelable:!1},ended:{eventInterface:"Event",bubbles:!1,cancelable:!1},endEvent:{eventInterface:"TimeEvent",bubbles:!1,cancelable:!1},error:{eventInterface:"Event",bubbles:!1,cancelable:!1},focus:{eventInterface:"FocusEvent",bubbles:!1,cancelable:!1},focusin:{eventInterface:"FocusEvent",bubbles:!0,cancelable:!1},focusout:{eventInterface:"FocusEvent",bubbles:!0,cancelable:!1},fullscreenchange:{eventInterface:"Event",bubbles:!0,cancelable:!1},fullscreenerror:{eventInterface:"Event",bubbles:!0,cancelable:!1},gamepadconnected:{eventInterface:"GamepadEvent",bubbles:!1,cancelable:!1},gamepaddisconnected:{eventInterface:"GamepadEvent",bubbles:!1,cancelable:!1},gotpointercapture:{eventInterface:"PointerEvent",bubbles:!1,cancelable:!1},hashchange:{eventInterface:"HashChangeEvent",bubbles:!0,cancelable:!1},lostpointercapture:{eventInterface:"PointerEvent",bubbles:!1,cancelable:!1},input:{eventInterface:"Event",bubbles:!0,cancelable:!1},invalid:{eventInterface:"Event",cancelable:!0,bubbles:!1},keydown:{eventInterface:"KeyboardEvent",bubbles:!0,cancelable:!0},keypress:{eventInterface:"KeyboardEvent",bubbles:!0,cancelable:!0},keyup:{eventInterface:"KeyboardEvent",bubbles:!0,cancelable:!0},languagechange:{eventInterface:"Event",bubbles:!1,cancelable:!1},levelchange:{eventInterface:"Event",bubbles:!1,cancelable:!1},load:{eventInterface:"UIEvent",bubbles:!1,cancelable:!1},loadeddata:{eventInterface:"Event",bubbles:!1,cancelable:!1},loadedmetadata:{eventInterface:"Event",bubbles:!1,cancelable:!1},loadend:{eventInterface:"ProgressEvent",bubbles:!1,cancelable:!1},loadstart:{eventInterface:"ProgressEvent",bubbles:!1,cancelable:!1},mark:{eventInterface:"SpeechSynthesisEvent",bubbles:!1,cancelable:!1},message:{eventInterface:"MessageEvent",bubbles:!1,cancelable:!1},messageerror:{eventInterface:"MessageEvent",bubbles:!1,cancelable:!1},mousedown:{eventInterface:"MouseEvent",bubbles:!0,cancelable:!0},mouseenter:{eventInterface:"MouseEvent",bubbles:!1,cancelable:!1},mouseleave:{eventInterface:"MouseEvent",bubbles:!1,cancelable:!1},mousemove:{eventInterface:"MouseEvent",bubbles:!0,cancelable:!0},mouseout:{eventInterface:"MouseEvent",bubbles:!0,cancelable:!0},mouseover:{eventInterface:"MouseEvent",bubbles:!0,cancelable:!0},mouseup:{eventInterface:"MouseEvent",bubbles:!0,cancelable:!0},nomatch:{eventInterface:"SpeechRecognitionEvent",bubbles:!1,cancelable:!1},notificationclick:{eventInterface:"NotificationEvent",bubbles:!1,cancelable:!1},noupdate:{eventInterface:"Event",bubbles:!1,cancelable:!1},obsolete:{eventInterface:"Event",bubbles:!1,cancelable:!1},offline:{eventInterface:"Event",bubbles:!1,cancelable:!1},online:{eventInterface:"Event",bubbles:!1,cancelable:!1},open:{eventInterface:"Event",bubbles:!1,cancelable:!1},orientationchange:{eventInterface:"Event",bubbles:!1,cancelable:!1},pagehide:{eventInterface:"PageTransitionEvent",bubbles:!1,cancelable:!1},pageshow:{eventInterface:"PageTransitionEvent",bubbles:!1,cancelable:!1},paste:{eventInterface:"ClipboardEvent",bubbles:!0,cancelable:!0},pause:{eventInterface:"SpeechSynthesisEvent",bubbles:!1,cancelable:!1},pointercancel:{eventInterface:"PointerEvent",bubbles:!0,cancelable:!1},pointerdown:{eventInterface:"PointerEvent",bubbles:!0,cancelable:!0},pointerenter:{eventInterface:"PointerEvent",bubbles:!1,cancelable:!1},pointerleave:{eventInterface:"PointerEvent",bubbles:!1,cancelable:!1},pointerlockchange:{eventInterface:"Event",bubbles:!0,cancelable:!1},pointerlockerror:{eventInterface:"Event",bubbles:!0,cancelable:!1},pointermove:{eventInterface:"PointerEvent",bubbles:!0,cancelable:!0},pointerout:{eventInterface:"PointerEvent",bubbles:!0,cancelable:!0},pointerover:{eventInterface:"PointerEvent",bubbles:!0,cancelable:!0},pointerup:{eventInterface:"PointerEvent",bubbles:!0,cancelable:!0},play:{eventInterface:"Event",bubbles:!1,cancelable:!1},playing:{eventInterface:"Event",bubbles:!1,cancelable:!1},popstate:{eventInterface:"PopStateEvent",bubbles:!0,cancelable:!1},progress:{eventInterface:"ProgressEvent",bubbles:!1,cancelable:!1},push:{eventInterface:"PushEvent",bubbles:!1,cancelable:!1},pushsubscriptionchange:{eventInterface:"PushEvent",bubbles:!1,cancelable:!1},ratechange:{eventInterface:"Event",bubbles:!1,cancelable:!1},readystatechange:{eventInterface:"Event",bubbles:!1,cancelable:!1},repeatEvent:{eventInterface:"TimeEvent",bubbles:!1,cancelable:!1},reset:{eventInterface:"Event",bubbles:!0,cancelable:!0},resize:{eventInterface:"UIEvent",bubbles:!1,cancelable:!1},resourcetimingbufferfull:{eventInterface:"Performance",bubbles:!0,cancelable:!0},result:{eventInterface:"SpeechRecognitionEvent",bubbles:!1,cancelable:!1},resume:{eventInterface:"SpeechSynthesisEvent",bubbles:!1,cancelable:!1},scroll:{eventInterface:"UIEvent",bubbles:!1,cancelable:!1},seeked:{eventInterface:"Event",bubbles:!1,cancelable:!1},seeking:{eventInterface:"Event",bubbles:!1,cancelable:!1},select:{eventInterface:"UIEvent",bubbles:!0,cancelable:!1},selectstart:{eventInterface:"Event",bubbles:!0,cancelable:!0},selectionchange:{eventInterface:"Event",bubbles:!1,cancelable:!1},show:{eventInterface:"MouseEvent",bubbles:!1,cancelable:!1},slotchange:{eventInterface:"Event",bubbles:!0,cancelable:!1},soundend:{eventInterface:"Event",bubbles:!1,cancelable:!1},soundstart:{eventInterface:"Event",bubbles:!1,cancelable:!1},speechend:{eventInterface:"Event",bubbles:!1,cancelable:!1},speechstart:{eventInterface:"Event",bubbles:!1,cancelable:!1},stalled:{eventInterface:"Event",bubbles:!1,cancelable:!1},start:{eventInterface:"SpeechSynthesisEvent",bubbles:!1,cancelable:!1},storage:{eventInterface:"StorageEvent",bubbles:!1,cancelable:!1},submit:{eventInterface:"Event",bubbles:!0,cancelable:!0},success:{eventInterface:"Event",bubbles:!1,cancelable:!1},suspend:{eventInterface:"Event",bubbles:!1,cancelable:!1},SVGAbort:{eventInterface:"SVGEvent",bubbles:!0,cancelable:!1},SVGError:{eventInterface:"SVGEvent",bubbles:!0,cancelable:!1},SVGLoad:{eventInterface:"SVGEvent",bubbles:!1,cancelable:!1},SVGResize:{eventInterface:"SVGEvent",bubbles:!0,cancelable:!1},SVGScroll:{eventInterface:"SVGEvent",bubbles:!0,cancelable:!1},SVGUnload:{eventInterface:"SVGEvent",bubbles:!1,cancelable:!1},SVGZoom:{eventInterface:"SVGZoomEvent",bubbles:!0,cancelable:!1},timeout:{eventInterface:"ProgressEvent",bubbles:!1,cancelable:!1},timeupdate:{eventInterface:"Event",bubbles:!1,cancelable:!1},touchcancel:{eventInterface:"TouchEvent",bubbles:!0,cancelable:!1},touchend:{eventInterface:"TouchEvent",bubbles:!0,cancelable:!0},touchmove:{eventInterface:"TouchEvent",bubbles:!0,cancelable:!0},touchstart:{eventInterface:"TouchEvent",bubbles:!0,cancelable:!0},transitionend:{eventInterface:"TransitionEvent",bubbles:!0,cancelable:!0},unload:{eventInterface:"UIEvent",bubbles:!1,cancelable:!1},updateready:{eventInterface:"Event",bubbles:!1,cancelable:!1},userproximity:{eventInterface:"UserProximityEvent",bubbles:!1,cancelable:!1},voiceschanged:{eventInterface:"Event",bubbles:!1,cancelable:!1},visibilitychange:{eventInterface:"Event",bubbles:!0,cancelable:!1},volumechange:{eventInterface:"Event",bubbles:!1,cancelable:!1},waiting:{eventInterface:"Event",bubbles:!1,cancelable:!1},wheel:{eventInterface:"WheelEvent",bubbles:!0,cancelable:!0}};function ya(e,t){for(var n=[],r=[],i=0;i<e.length;i++){var a=e[i];fa.includes(a)||(ma.includes(a)||ga.includes(a)&&t?r.push(a):n.push(a))}return{keyModifiers:n,systemModifiers:r}}function _a(e){var t=e.modifiers,n=e.options,r=void 0===n?{}:n,i=e.eventType,a="click"===i,o=ya(t,a),s=o.keyModifiers,l=o.systemModifiers;a&&(l.includes("right")?(i="contextmenu",r.button=2):l.includes("middle")&&(i="mouseup",r.button=1));var c=ba[i]||{eventInterface:"Event",cancelable:!0,bubbles:!0},u=l.reduce(function(e,t){return e["".concat(t,"Key")]=!0,e},{}),d=va[s[0]]||r&&(r.keyCode||r.code),h=Ui(Ui(Ui(Ui({},u),r),{bubbles:c.bubbles,cancelable:c.cancelable,keyCode:d,code:d}),s[0]?{key:s[0]}:{});return{eventProperties:h,meta:c,eventType:i}}function wa(e){var t=_a(e),n=t.eventProperties,r=t.meta,i=t.eventType,a=r.eventInterface,o=window[a],s="function"===typeof o?o:window.Event;return new s(i,n)}function Ea(e,t){var n=e.split("."),r=n[0],i=n.slice(1),a={eventType:r,modifiers:i,options:t},o=wa(a),s=Object.getPrototypeOf(o);return t&&Object.keys(t).forEach(function(e){var n=Object.getOwnPropertyDescriptor(s,e),r=!(n&&void 0===n.set);r&&(o[e]=t[e])}),o}var Sa=new WeakMap;function ka(e){var t=e.source,n=e.stub;Sa.set(n,t)}function xa(e){return Sa.get(e)}var Aa=function(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}},Ca=/-(\w)/g,Ta=Aa(function(e){return e.replace(Ca,function(e,t){return t?t.toUpperCase():""})}),Na=Aa(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),Ra=/\B([A-Z])/g,Oa=Aa(function(e){return e.replace(Ra,"-$1").toLowerCase()});function Ia(e,t){var n=Ta(e),r=Na(n);return!!t&&(t===e||t===n||t===r||Na(Ta(t))===r)}function La(e){var t,n;return null!==(n=null===(t=r.compatUtils)||void 0===t?void 0:t.isCompatEnabled(e))&&void 0!==n&&n}function Da(e){return!(!La("GLOBAL_EXTEND")||"function"!==typeof e)&&(ra(e,"super")&&e.super.extend({}).super===e.super)}function Pa(e){return Da(e)?e.options:e}function Ma(e){return Boolean(e&&"object"===typeof e&&ra(e,"functional")&&e.functional)}var Ba,Fa=function(e,t){return Object.keys((null===e||void 0===e?void 0:e.setupState)||{}).find(function(n){var r;return(null===(r=Object.getOwnPropertyDescriptor(e.setupState,n))||void 0===r?void 0:r.value)===t})},$a=function(e,t){if(!e||!e.parent)return null;var n=e.type.components;for(var r in n)if(n[r]===t)return r;return Fa(e.parent,t)||null},Ua=function(e,t){return ta(t)?Fa(e,t)||t.name||t.__name||"":Da(t)?Pa(t).name||"":ea(t)?t.displayName||t.name:""};function ja(e,t){var n,r,i,a=Pa(t);if(!e.component)return!1;var o=e.type;if(!Zi(o))return!1;if("string"===typeof a)return null===(r=null===(n=e.el)||void 0===n?void 0:n.matches)||void 0===r?void 0:r.call(n,a);var s,l=[o,xa(o)].filter(Boolean),c=null!==(i=xa(a))&&void 0!==i?i:a;if(l.includes(c))return!0;s=Ua(e.component,o);var u=a.name;if(s&&u)return Ia(u,s);if(s=$a(e.component,o)||void 0,e.component.parent){var d=e.component.parent.type.components;for(var h in d)u||d[h]!==a||(u=h),s||d[h]!==o||(s=h)}return!(!u||!s)&&Ia(u,s)}function Va(e){return!!e&&"object"===typeof e}function Ka(e,t){if(t&&Array.isArray(t)){var n=Ki([],t,!0).reverse().filter(Va);n.forEach(function(t){Array.isArray(t)?Ka(e,t):e.unshift(t)})}}function Ga(e,t){var n=[],r=[e];while(r.length){var i=r.shift();if(Ka(r,i.children),i.component&&Ka(r,[i.component.subTree]),i.suspense){var a=i.suspense.activeBranch;Ka(r,[a])}ja(i,t)&&!n.includes(i)&&n.push(i)}return n}function Ha(e,t){var n=Ga(e,t);return"string"===typeof t&&(n=n.filter(function(e){var t;return(null===(t=e.component.parent)||void 0===t?void 0:t.vnode.el)!==e.el})),n.map(function(e){return e.component})}function za(e){return new Proxy(Object.create(null),{get:function(t,n){switch(n){case"then":return;case"exists":return function(){return!1};default:throw new Error("Cannot call ".concat(String(n)," on an empty ").concat(e,"."))}}})}
|
||
/*!
|
||
* isElementVisible
|
||
* Adapted from https://github.com/testing-library/jest-dom
|
||
* Licensed under the MIT License.
|
||
*/function qa(e){if(!(e instanceof HTMLElement)&&!(e instanceof SVGElement))return!1;var t=getComputedStyle(e),n=t.display,r=t.visibility,i=t.opacity;return"none"!==n&&"hidden"!==r&&"collapse"!==r&&"0"!==i}function Xa(e){return!e.hasAttribute("hidden")&&("DETAILS"!==e.nodeName||e.hasAttribute("open"))}function Wa(e){return"#comment"!==e.nodeName&&qa(e)&&Xa(e)&&(!e.parentElement||Wa(e.parentElement))}function Ya(e){return e instanceof Element}(function(e){e[e["DOMWrapper"]=0]="DOMWrapper",e[e["VueWrapper"]=1]="VueWrapper"})(Ba||(Ba={}));var Qa={};function Ja(e,t){Qa[e]=t}var Za=function(e){return Qa[Ba.DOMWrapper](e)},eo=function(e,t,n){return Qa[Ba.VueWrapper](e,t,n)};function to(e){return e instanceof Element?e.outerHTML:(new XMLSerializer).serializeToString(e)}function no(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}var ro,io={exports:{}},ao={},oo={exports:{}},so={},lo={};function co(){if(ro)return lo;function e(e){this.__parent=e,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}function t(e,t){this.__cache=[""],this.__indent_size=e.indent_size,this.__indent_string=e.indent_char,e.indent_with_tabs||(this.__indent_string=new Array(e.indent_size+1).join(e.indent_char)),t=t||"",e.indent_level>0&&(t=new Array(e.indent_level+1).join(this.__indent_string)),this.__base_string=t,this.__base_string_length=t.length}function n(n,r){this.__indent_cache=new t(n,r),this.raw=!1,this._end_with_newline=n.end_with_newline,this.indent_size=n.indent_size,this.wrap_line_length=n.wrap_line_length,this.indent_empty_lines=n.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new e(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}return ro=1,e.prototype.clone_empty=function(){var t=new e(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},e.prototype.item=function(e){return e<0?this.__items[this.__items.length+e]:this.__items[e]},e.prototype.has_match=function(e){for(var t=this.__items.length-1;t>=0;t--)if(this.__items[t].match(e))return!0;return!1},e.prototype.set_indent=function(e,t){this.is_empty()&&(this.__indent_count=e||0,this.__alignment_count=t||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},e.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},e.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},e.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var e=this.__parent.current_line;return e.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),e.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),e.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===e.__items[0]&&(e.__items.splice(0,1),e.__character_count-=1),!0}return!1},e.prototype.is_empty=function(){return 0===this.__items.length},e.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},e.prototype.push=function(e){this.__items.push(e);var t=e.lastIndexOf("\n");-1!==t?this.__character_count=e.length-t:this.__character_count+=e.length},e.prototype.pop=function(){var e=null;return this.is_empty()||(e=this.__items.pop(),this.__character_count-=e.length),e},e.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},e.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},e.prototype.trim=function(){while(" "===this.last())this.__items.pop(),this.__character_count-=1},e.prototype.toString=function(){var e="";return this.is_empty()?this.__parent.indent_empty_lines&&(e=this.__parent.get_indent_string(this.__indent_count)):(e=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),e+=this.__items.join("")),e},t.prototype.get_indent_size=function(e,t){var n=this.__base_string_length;return t=t||0,e<0&&(n=0),n+=e*this.__indent_size,n+=t,n},t.prototype.get_indent_string=function(e,t){var n=this.__base_string;return t=t||0,e<0&&(e=0,n=""),t+=e*this.__indent_size,this.__ensure_cache(t),n+=this.__cache[t],n},t.prototype.__ensure_cache=function(e){while(e>=this.__cache.length)this.__add_column()},t.prototype.__add_column=function(){var e=this.__cache.length,t=0,n="";this.__indent_size&&e>=this.__indent_size&&(t=Math.floor(e/this.__indent_size),e-=t*this.__indent_size,n=new Array(t+1).join(this.__indent_string)),e&&(n+=new Array(e+1).join(" ")),this.__cache.push(n)},n.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},n.prototype.get_line_number=function(){return this.__lines.length},n.prototype.get_indent_string=function(e,t){return this.__indent_cache.get_indent_string(e,t)},n.prototype.get_indent_size=function(e,t){return this.__indent_cache.get_indent_size(e,t)},n.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},n.prototype.add_new_line=function(e){return!(this.is_empty()||!e&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},n.prototype.get_code=function(e){this.trim(!0);var t=this.current_line.pop();t&&("\n"===t[t.length-1]&&(t=t.replace(/\n+$/g,"")),this.current_line.push(t)),this._end_with_newline&&this.__add_outputline();var n=this.__lines.join("\n");return"\n"!==e&&(n=n.replace(/[\n]/g,e)),n},n.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},n.prototype.set_indent=function(e,t){return e=e||0,t=t||0,this.next_line.set_indent(e,t),this.__lines.length>1?(this.current_line.set_indent(e,t),!0):(this.current_line.set_indent(),!1)},n.prototype.add_raw_token=function(e){for(var t=0;t<e.newlines;t++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(e.whitespace_before),this.current_line.push(e.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},n.prototype.add_token=function(e){this.__add_space_before_token(),this.current_line.push(e),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},n.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},n.prototype.remove_indent=function(e){var t=this.__lines.length;while(e<t)this.__lines[e]._remove_indent(),e++;this.current_line._remove_wrap_indent()},n.prototype.trim=function(e){e=void 0!==e&&e,this.current_line.trim();while(e&&this.__lines.length>1&&this.current_line.is_empty())this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},n.prototype.just_added_newline=function(){return this.current_line.is_empty()},n.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},n.prototype.ensure_empty_line_above=function(t,n){var r=this.__lines.length-2;while(r>=0){var i=this.__lines[r];if(i.is_empty())break;if(0!==i.item(0).indexOf(t)&&i.item(-1)!==n){this.__lines.splice(r+1,0,new e(this)),this.previous_line=this.__lines[this.__lines.length-2];break}r--}},lo.Output=n,lo}var uo,ho={};function po(){if(uo)return ho;function e(e,t,n,r){this.type=e,this.text=t,this.comments_before=null,this.newlines=n||0,this.whitespace_before=r||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}return uo=1,ho.Token=e,ho}var fo,mo={};function go(){return fo||(fo=1,function(e){var t="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",n="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",r="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",i="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",a="(?:\\\\u[0-9a-fA-F]{4}|["+t+r+"])",o="(?:\\\\u[0-9a-fA-F]{4}|["+n+r+i+"])*";e.identifier=new RegExp(a+o,"g"),e.identifierStart=new RegExp(a),e.identifierMatch=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|["+n+r+i+"])+"),e.newline=/[\n\r\u2028\u2029]/,e.lineBreak=new RegExp("\r\n|"+e.newline.source),e.allLineBreaks=new RegExp(e.lineBreak.source,"g")}(mo)),mo}var vo,bo,yo={},_o={};function wo(){if(vo)return _o;function e(e,n){this.raw_options=t(e,n),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}function t(e,t){var r,i={};for(r in e=n(e),e)r!==t&&(i[r]=e[r]);if(t&&e[t])for(r in e[t])i[r]=e[t][r];return i}function n(e){var t,n={};for(t in e){var r=t.replace(/-/g,"_");n[r]=e[t]}return n}return vo=1,e.prototype._get_array=function(e,t){var n=this.raw_options[e],r=t||[];return"object"===typeof n?null!==n&&"function"===typeof n.concat&&(r=n.concat()):"string"===typeof n&&(r=n.split(/[^a-zA-Z0-9_\/\-]+/)),r},e.prototype._get_boolean=function(e,t){var n=this.raw_options[e],r=void 0===n?!!t:!!n;return r},e.prototype._get_characters=function(e,t){var n=this.raw_options[e],r=t||"";return"string"===typeof n&&(r=n.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),r},e.prototype._get_number=function(e,t){var n=this.raw_options[e];t=parseInt(t,10),isNaN(t)&&(t=0);var r=parseInt(n,10);return isNaN(r)&&(r=t),r},e.prototype._get_selection=function(e,t,n){var r=this._get_selection_list(e,t,n);if(1!==r.length)throw new Error("Invalid Option Value: The option '"+e+"' can only be one of the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return r[0]},e.prototype._get_selection_list=function(e,t,n){if(!t||0===t.length)throw new Error("Selection list cannot be empty.");if(n=n||[t[0]],!this._is_valid_selection(n,t))throw new Error("Invalid Default Value!");var r=this._get_array(e,n);if(!this._is_valid_selection(r,t))throw new Error("Invalid Option Value: The option '"+e+"' can contain only the following values:\n"+t+"\nYou passed in: '"+this.raw_options[e]+"'");return r},e.prototype._is_valid_selection=function(e,t){return e.length&&t.length&&!e.some(function(e){return-1===t.indexOf(e)})},_o.Options=e,_o.normalizeOpts=n,_o.mergeOpts=t,_o}function Eo(){if(bo)return yo;bo=1;var e=wo().Options,t=["before-newline","after-newline","preserve-newline"];function n(n){e.call(this,n,"js");var r=this.raw_options.brace_style||null;"expand-strict"===r?this.raw_options.brace_style="expand":"collapse-preserve-inline"===r?this.raw_options.brace_style="collapse,preserve-inline":void 0!==this.raw_options.braces_on_own_line&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var i=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var a=0;a<i.length;a++)"preserve-inline"===i[a]?this.brace_preserve_inline=!0:this.brace_style=i[a];this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",t),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}return n.prototype=new e,yo.Options=n,yo}var So,ko={},xo={};function Ao(){if(So)return xo;So=1;var e=RegExp.prototype.hasOwnProperty("sticky");function t(e){this.__input=e||"",this.__input_length=this.__input.length,this.__position=0}return t.prototype.restart=function(){this.__position=0},t.prototype.back=function(){this.__position>0&&(this.__position-=1)},t.prototype.hasNext=function(){return this.__position<this.__input_length},t.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__input.charAt(this.__position),this.__position+=1),e},t.prototype.peek=function(e){var t=null;return e=e||0,e+=this.__position,e>=0&&e<this.__input_length&&(t=this.__input.charAt(e)),t},t.prototype.__match=function(t,n){t.lastIndex=n;var r=t.exec(this.__input);return!r||e&&t.sticky||r.index!==n&&(r=null),r},t.prototype.test=function(e,t){return t=t||0,t+=this.__position,t>=0&&t<this.__input_length&&!!this.__match(e,t)},t.prototype.testChar=function(e,t){var n=this.peek(t);return e.lastIndex=0,null!==n&&e.test(n)},t.prototype.match=function(e){var t=this.__match(e,this.__position);return t?this.__position+=t[0].length:t=null,t},t.prototype.read=function(e,t,n){var r,i="";return e&&(r=this.match(e),r&&(i+=r[0])),!t||!r&&e||(i+=this.readUntil(t,n)),i},t.prototype.readUntil=function(e,t){var n="",r=this.__position;e.lastIndex=this.__position;var i=e.exec(this.__input);return i?(r=i.index,t&&(r+=i[0].length)):r=this.__input_length,n=this.__input.substring(this.__position,r),this.__position=r,n},t.prototype.readUntilAfter=function(e){return this.readUntil(e,!0)},t.prototype.get_regexp=function(t,n){var r=null,i="g";return n&&e&&(i="y"),"string"===typeof t&&""!==t?r=new RegExp(t,i):t&&(r=new RegExp(t.source,i)),r},t.prototype.get_literal_regexp=function(e){return RegExp(e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},t.prototype.peekUntilAfter=function(e){var t=this.__position,n=this.readUntilAfter(e);return this.__position=t,n},t.prototype.lookBack=function(e){var t=this.__position-1;return t>=e.length&&this.__input.substring(t-e.length,t).toLowerCase()===e},xo.InputScanner=t,xo}var Co,To={},No={};function Ro(){if(Co)return No;function e(e){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=e}return Co=1,e.prototype.restart=function(){this.__position=0},e.prototype.isEmpty=function(){return 0===this.__tokens_length},e.prototype.hasNext=function(){return this.__position<this.__tokens_length},e.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__tokens[this.__position],this.__position+=1),e},e.prototype.peek=function(e){var t=null;return e=e||0,e+=this.__position,e>=0&&e<this.__tokens_length&&(t=this.__tokens[e]),t},e.prototype.add=function(e){this.__parent_token&&(e.parent=this.__parent_token),this.__tokens.push(e),this.__tokens_length+=1},No.TokenStream=e,No}var Oo,Io,Lo,Do={},Po={};function Mo(){if(Oo)return Po;function e(e,t){this._input=e,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,t&&(this._starting_pattern=this._input.get_regexp(t._starting_pattern,!0),this._match_pattern=this._input.get_regexp(t._match_pattern,!0),this._until_pattern=this._input.get_regexp(t._until_pattern),this._until_after=t._until_after)}return Oo=1,e.prototype.read=function(){var e=this._input.read(this._starting_pattern);return this._starting_pattern&&!e||(e+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),e},e.prototype.read_match=function(){return this._input.match(this._match_pattern)},e.prototype.until_after=function(e){var t=this._create();return t._until_after=!0,t._until_pattern=this._input.get_regexp(e),t._update(),t},e.prototype.until=function(e){var t=this._create();return t._until_after=!1,t._until_pattern=this._input.get_regexp(e),t._update(),t},e.prototype.starting_with=function(e){var t=this._create();return t._starting_pattern=this._input.get_regexp(e,!0),t._update(),t},e.prototype.matching=function(e){var t=this._create();return t._match_pattern=this._input.get_regexp(e,!0),t._update(),t},e.prototype._create=function(){return new e(this._input,this)},e.prototype._update=function(){},Po.Pattern=e,Po}function Bo(){if(Io)return Do;Io=1;var e=Mo().Pattern;function t(t,n){e.call(this,t,n),n?this._line_regexp=this._input.get_regexp(n._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}return t.prototype=new e,t.prototype.__set_whitespace_patterns=function(e,t){e+="\\t ",t+="\\n\\r",this._match_pattern=this._input.get_regexp("["+e+t+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+t+"]")},t.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var e=this._input.read(this._match_pattern);if(" "===e)this.whitespace_before_token=" ";else if(e){var t=this.__split(this._newline_regexp,e);this.newline_count=t.length-1,this.whitespace_before_token=t[this.newline_count]}return e},t.prototype.matching=function(e,t){var n=this._create();return n.__set_whitespace_patterns(e,t),n._update(),n},t.prototype._create=function(){return new t(this._input,this)},t.prototype.__split=function(e,t){e.lastIndex=0;var n=0,r=[],i=e.exec(t);while(i)r.push(t.substring(n,i.index)),n=i.index+i[0].length,i=e.exec(t);return n<t.length?r.push(t.substring(n,t.length)):r.push(""),r},Do.WhitespacePattern=t,Do}function Fo(){if(Lo)return To;Lo=1;var e=Ao().InputScanner,t=po().Token,n=Ro().TokenStream,r=Bo().WhitespacePattern,i={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},a=function(t,n){this._input=new e(t),this._options=n||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new r(this._input)};return a.prototype.tokenize=function(){var e;this._input.restart(),this.__tokens=new n,this._reset();var r=new t(i.START,""),a=null,o=[],s=new n;while(r.type!==i.EOF){e=this._get_next_token(r,a);while(this._is_comment(e))s.add(e),e=this._get_next_token(r,a);s.isEmpty()||(e.comments_before=s,s=new n),e.parent=a,this._is_opening(e)?(o.push(a),a=e):a&&this._is_closing(e,a)&&(e.opened=a,a.closed=e,a=o.pop(),e.parent=a),e.previous=r,r.next=e,this.__tokens.add(e),r=e}return this.__tokens},a.prototype._is_first_token=function(){return this.__tokens.isEmpty()},a.prototype._reset=function(){},a.prototype._get_next_token=function(e,t){this._readWhitespace();var n=this._input.read(/.+/g);return n?this._create_token(i.RAW,n):this._create_token(i.EOF,"")},a.prototype._is_comment=function(e){return!1},a.prototype._is_opening=function(e){return!1},a.prototype._is_closing=function(e,t){return!1},a.prototype._create_token=function(e,n){var r=new t(e,n,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return r},a.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},To.Tokenizer=a,To.TOKEN=i,To}var $o,Uo={};function jo(){if($o)return Uo;function e(e,t){e="string"===typeof e?e:e.source,t="string"===typeof t?t:t.source,this.__directives_block_pattern=new RegExp(e+/ beautify( \w+[:]\w+)+ /.source+t,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(e+/\sbeautify\signore:end\s/.source+t,"g")}return $o=1,e.prototype.get_directives=function(e){if(!e.match(this.__directives_block_pattern))return null;var t={};this.__directive_pattern.lastIndex=0;var n=this.__directive_pattern.exec(e);while(n)t[n[1]]=n[2],n=this.__directive_pattern.exec(e);return t},e.prototype.readIgnored=function(e){return e.readUntilAfter(this.__directives_end_ignore_pattern)},Uo.Directives=e,Uo}var Vo,Ko,Go,Ho,zo={};function qo(){if(Vo)return zo;Vo=1;var e=Mo().Pattern,t={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1};function n(n,r){e.call(this,n,r),this.__template_pattern=null,this._disabled=Object.assign({},t),this._excluded=Object.assign({},t),r&&(this.__template_pattern=this._input.get_regexp(r.__template_pattern),this._excluded=Object.assign(this._excluded,r._excluded),this._disabled=Object.assign(this._disabled,r._disabled));var i=new e(n);this.__patterns={handlebars_comment:i.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:i.starting_with(/{{{/).until_after(/}}}/),handlebars:i.starting_with(/{{/).until_after(/}}/),php:i.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:i.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:i.starting_with(/{%/).until_after(/%}/),django_value:i.starting_with(/{{/).until_after(/}}/),django_comment:i.starting_with(/{#/).until_after(/#}/),smarty:i.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:i.starting_with(/{\*/).until_after(/\*}/),smarty_literal:i.starting_with(/{literal}/).until_after(/{\/literal}/)}}return n.prototype=new e,n.prototype._create=function(){return new n(this._input,this)},n.prototype._update=function(){this.__set_templated_pattern()},n.prototype.disable=function(e){var t=this._create();return t._disabled[e]=!0,t._update(),t},n.prototype.read_options=function(e){var n=this._create();for(var r in t)n._disabled[r]=-1===e.templating.indexOf(r);return n._update(),n},n.prototype.exclude=function(e){var t=this._create();return t._excluded[e]=!0,t._update(),t},n.prototype.read=function(){var e="";e=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern);var t=this._read_template();while(t)this._match_pattern?t+=this._input.read(this._match_pattern):t+=this._input.readUntil(this.__template_pattern),e+=t,t=this._read_template();return this._until_after&&(e+=this._input.readUntilAfter(this._until_pattern)),e},n.prototype.__set_templated_pattern=function(){var e=[];this._disabled.php||e.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||e.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||e.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(e.push(this.__patterns.django._starting_pattern.source),e.push(this.__patterns.django_value._starting_pattern.source),e.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||e.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&e.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+e.join("|")+")")},n.prototype._read_template=function(){var e="",t=this._input.peek();if("<"===t){var n=this._input.peek(1);this._disabled.php||this._excluded.php||"?"!==n||(e=e||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==n||(e=e||this.__patterns.erb.read())}else"{"===t&&(this._disabled.handlebars||this._excluded.handlebars||(e=e||this.__patterns.handlebars_comment.read(),e=e||this.__patterns.handlebars_unescaped.read(),e=e||this.__patterns.handlebars.read()),this._disabled.django||(this._excluded.django||this._excluded.handlebars||(e=e||this.__patterns.django_value.read()),this._excluded.django||(e=e||this.__patterns.django_comment.read(),e=e||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(e=e||this.__patterns.smarty_comment.read(),e=e||this.__patterns.smarty_literal.read(),e=e||this.__patterns.smarty.read()));return e},zo.TemplatablePattern=n,zo}function Xo(){if(Ko)return ko;Ko=1;var e=Ao().InputScanner,t=Fo().Tokenizer,n=Fo().TOKEN,r=jo().Directives,i=go(),a=Mo().Pattern,o=qo().TemplatablePattern;function s(e,t){return-1!==t.indexOf(e)}var l={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:n.START,RAW:n.RAW,EOF:n.EOF},c=new r(/\/\*/,/\*\//),u=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,d=/[0-9]/,h=/[^\d\.]/,p=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),f=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";f=f.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),f="\\?\\.(?!\\d) "+f,f=f.replace(/ /g,"|");var m,g=new RegExp(f),v="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),b=v.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),y=new RegExp("^(?:"+b.join("|")+")$"),_=function(e,n){t.call(this,e,n),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var r=new a(this._input),s=new o(this._input).read_options(this._options);this.__patterns={template:s,identifier:s.starting_with(i.identifier).matching(i.identifierMatch),number:r.matching(u),punct:r.matching(g),comment:r.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:r.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:r.matching(/<!--/),html_comment_end:r.matching(/-->/),include:r.starting_with(/#include/).until_after(i.lineBreak),shebang:r.starting_with(/#!/).until_after(i.lineBreak),xml:r.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:s.until(/['\\\n\r\u2028\u2029]/),double_quote:s.until(/["\\\n\r\u2028\u2029]/),template_text:s.until(/[`\\$]/),template_expression:s.until(/[`}\\]/)}};function w(t){var n="",r=0,i=new e(t),a=null;while(i.hasNext())if(a=i.match(/([\s]|[^\\]|\\\\)+/g),a&&(n+=a[0]),"\\"===i.peek()){if(i.next(),"x"===i.peek())a=i.match(/x([0-9A-Fa-f]{2})/g);else{if("u"!==i.peek()){n+="\\",i.hasNext()&&(n+=i.next());continue}a=i.match(/u([0-9A-Fa-f]{4})/g)}if(!a)return t;if(r=parseInt(a[1],16),r>126&&r<=255&&0===a[0].indexOf("x"))return t;if(r>=0&&r<32){n+="\\"+a[0];continue}n+=34===r||39===r||92===r?"\\"+String.fromCharCode(r):String.fromCharCode(r)}return n}return _.prototype=new t,_.prototype._is_comment=function(e){return e.type===l.COMMENT||e.type===l.BLOCK_COMMENT||e.type===l.UNKNOWN},_.prototype._is_opening=function(e){return e.type===l.START_BLOCK||e.type===l.START_EXPR},_.prototype._is_closing=function(e,t){return(e.type===l.END_BLOCK||e.type===l.END_EXPR)&&t&&("]"===e.text&&"["===t.text||")"===e.text&&"("===t.text||"}"===e.text&&"{"===t.text)},_.prototype._reset=function(){m=!1},_.prototype._get_next_token=function(e,t){var n=null;this._readWhitespace();var r=this._input.peek();return null===r?this._create_token(l.EOF,""):(n=n||this._read_non_javascript(r),n=n||this._read_string(r),n=n||this._read_pair(r,this._input.peek(1)),n=n||this._read_word(e),n=n||this._read_singles(r),n=n||this._read_comment(r),n=n||this._read_regexp(r,e),n=n||this._read_xml(r,e),n=n||this._read_punctuation(),n=n||this._create_token(l.UNKNOWN,this._input.next()),n)},_.prototype._read_word=function(e){var t;return t=this.__patterns.identifier.read(),""!==t?(t=t.replace(i.allLineBreaks,"\n"),e.type!==l.DOT&&(e.type!==l.RESERVED||"set"!==e.text&&"get"!==e.text)&&y.test(t)?"in"!==t&&"of"!==t||e.type!==l.WORD&&e.type!==l.STRING?this._create_token(l.RESERVED,t):this._create_token(l.OPERATOR,t):this._create_token(l.WORD,t)):(t=this.__patterns.number.read(),""!==t?this._create_token(l.WORD,t):void 0)},_.prototype._read_singles=function(e){var t=null;return"("===e||"["===e?t=this._create_token(l.START_EXPR,e):")"===e||"]"===e?t=this._create_token(l.END_EXPR,e):"{"===e?t=this._create_token(l.START_BLOCK,e):"}"===e?t=this._create_token(l.END_BLOCK,e):";"===e?t=this._create_token(l.SEMICOLON,e):"."===e&&h.test(this._input.peek(1))?t=this._create_token(l.DOT,e):","===e&&(t=this._create_token(l.COMMA,e)),t&&this._input.next(),t},_.prototype._read_pair=function(e,t){var n=null;return"#"===e&&"{"===t&&(n=this._create_token(l.START_BLOCK,e+t)),n&&(this._input.next(),this._input.next()),n},_.prototype._read_punctuation=function(){var e=this.__patterns.punct.read();if(""!==e)return"="===e?this._create_token(l.EQUALS,e):"?."===e?this._create_token(l.DOT,e):this._create_token(l.OPERATOR,e)},_.prototype._read_non_javascript=function(e){var t="";if("#"===e){if(this._is_first_token()&&(t=this.__patterns.shebang.read(),t))return this._create_token(l.UNKNOWN,t.trim()+"\n");if(t=this.__patterns.include.read(),t)return this._create_token(l.UNKNOWN,t.trim()+"\n");e=this._input.next();var n="#";if(this._input.hasNext()&&this._input.testChar(d)){do{e=this._input.next(),n+=e}while(this._input.hasNext()&&"#"!==e&&"="!==e);return"#"===e||("["===this._input.peek()&&"]"===this._input.peek(1)?(n+="[]",this._input.next(),this._input.next()):"{"===this._input.peek()&&"}"===this._input.peek(1)&&(n+="{}",this._input.next(),this._input.next())),this._create_token(l.WORD,n)}this._input.back()}else if("<"===e&&this._is_first_token()){if(t=this.__patterns.html_comment_start.read(),t){while(this._input.hasNext()&&!this._input.testChar(i.newline))t+=this._input.next();return m=!0,this._create_token(l.COMMENT,t)}}else if(m&&"-"===e&&(t=this.__patterns.html_comment_end.read(),t))return m=!1,this._create_token(l.COMMENT,t);return null},_.prototype._read_comment=function(e){var t=null;if("/"===e){var n="";if("*"===this._input.peek(1)){n=this.__patterns.block_comment.read();var r=c.get_directives(n);r&&"start"===r.ignore&&(n+=c.readIgnored(this._input)),n=n.replace(i.allLineBreaks,"\n"),t=this._create_token(l.BLOCK_COMMENT,n),t.directives=r}else"/"===this._input.peek(1)&&(n=this.__patterns.comment.read(),t=this._create_token(l.COMMENT,n))}return t},_.prototype._read_string=function(e){if("`"===e||"'"===e||'"'===e){var t=this._input.next();return this.has_char_escapes=!1,t+="`"===e?this._read_string_recursive("`",!0,"${"):this._read_string_recursive(e),this.has_char_escapes&&this._options.unescape_strings&&(t=w(t)),this._input.peek()===e&&(t+=this._input.next()),t=t.replace(i.allLineBreaks,"\n"),this._create_token(l.STRING,t)}return null},_.prototype._allow_regexp_or_xml=function(e){return e.type===l.RESERVED&&s(e.text,["return","case","throw","else","do","typeof","yield"])||e.type===l.END_EXPR&&")"===e.text&&e.opened.previous.type===l.RESERVED&&s(e.opened.previous.text,["if","while","for"])||s(e.type,[l.COMMENT,l.START_EXPR,l.START_BLOCK,l.START,l.END_BLOCK,l.OPERATOR,l.EQUALS,l.EOF,l.SEMICOLON,l.COMMA])},_.prototype._read_regexp=function(e,t){if("/"===e&&this._allow_regexp_or_xml(t)){var n=this._input.next(),r=!1,a=!1;while(this._input.hasNext()&&(r||a||this._input.peek()!==e)&&!this._input.testChar(i.newline))n+=this._input.peek(),r?r=!1:(r="\\"===this._input.peek(),"["===this._input.peek()?a=!0:"]"===this._input.peek()&&(a=!1)),this._input.next();return this._input.peek()===e&&(n+=this._input.next(),n+=this._input.read(i.identifier)),this._create_token(l.STRING,n)}return null},_.prototype._read_xml=function(e,t){if(this._options.e4x&&"<"===e&&this._allow_regexp_or_xml(t)){var n="",r=this.__patterns.xml.read_match();if(r){var a=r[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),o=0===a.indexOf("{"),s=0;while(r){var c=!!r[1],u=r[2],d=!!r[r.length-1]||"![CDATA["===u.slice(0,8);if(!d&&(u===a||o&&u.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(c?--s:++s),n+=r[0],s<=0)break;r=this.__patterns.xml.read_match()}return r||(n+=this._input.match(/[\s\S]*/g)[0]),n=n.replace(i.allLineBreaks,"\n"),this._create_token(l.STRING,n)}}return null},_.prototype._read_string_recursive=function(e,t,n){var r,a;"'"===e?a=this.__patterns.single_quote:'"'===e?a=this.__patterns.double_quote:"`"===e?a=this.__patterns.template_text:"}"===e&&(a=this.__patterns.template_expression);var o=a.read(),s="";while(this._input.hasNext()){if(s=this._input.next(),s===e||!t&&i.newline.test(s)){this._input.back();break}"\\"===s&&this._input.hasNext()?(r=this._input.peek(),"x"===r||"u"===r?this.has_char_escapes=!0:"\r"===r&&"\n"===this._input.peek(1)&&this._input.next(),s+=this._input.next()):n&&("${"===n&&"$"===s&&"{"===this._input.peek()&&(s+=this._input.next()),n===s&&(s+="`"===e?this._read_string_recursive("}",t,"`"):this._read_string_recursive("`",t,"${"),this._input.hasNext()&&(s+=this._input.next()))),s+=a.read(),o+=s}return o},ko.Tokenizer=_,ko.TOKEN=l,ko.positionable_operators=p.slice(),ko.line_starters=v.slice(),ko}function Wo(){if(Go)return so;Go=1;var e=co().Output,t=po().Token,n=go(),r=Eo().Options,i=Xo().Tokenizer,a=Xo().line_starters,o=Xo().positionable_operators,s=Xo().TOKEN;function l(e,t){return-1!==t.indexOf(e)}function c(e){return e.replace(/^\s+/g,"")}function u(e){for(var t={},n=0;n<e.length;n++)t[e[n].replace(/-/g,"_")]=e[n];return t}function d(e,t){return e&&e.type===s.RESERVED&&e.text===t}function h(e,t){return e&&e.type===s.RESERVED&&l(e.text,t)}var p=["case","return","do","if","throw","else","await","break","continue","async"],f=["before-newline","after-newline","preserve-newline"],m=u(f),g=[m.before_newline,m.preserve_newline],v={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function b(e,t){t.multiline_frame||t.mode===v.ForInitializer||t.mode===v.Conditional||e.remove_indent(t.start_line_index)}function y(e){e=e.replace(n.allLineBreaks,"\n");var t=[],r=e.indexOf("\n");while(-1!==r)t.push(e.substring(0,r)),e=e.substring(r+1),r=e.indexOf("\n");return e.length&&t.push(e),t}function _(e){return e===v.ArrayLiteral}function w(e){return l(e,[v.Expression,v.ForInitializer,v.Conditional])}function E(e,t){for(var n=0;n<e.length;n++){var r=e[n].trim();if(r.charAt(0)!==t)return!1}return!0}function S(e,t){for(var n,r=0,i=e.length;r<i;r++)if(n=e[r],n&&0!==n.indexOf(t))return!1;return!0}function k(e,t){t=t||{},this._source_text=e||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new r(t)}k.prototype.create_flags=function(e,n){var r=0;e&&(r=e.indentation_level,!this._output.just_added_newline()&&e.line_indent_level>r&&(r=e.line_indent_level));var i={mode:n,parent:e,last_token:e?e.last_token:new t(s.START_BLOCK,""),last_word:e?e.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:r,alignment:0,line_indent_level:e?e.line_indent_level:r,start_line_index:this._output.get_line_number(),ternary_depth:0};return i},k.prototype._reset=function(t){var n=t.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new e(this._options,n),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(v.BlockStatement);var r=new i(t,this._options);return this._tokens=r.tokenize(),t},k.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e,t=this._reset(this._source_text),r=this._options.eol;"auto"===this._options.eol&&(r="\n",t&&n.lineBreak.test(t||"")&&(r=t.match(n.lineBreak)[0]));var i=this._tokens.next();while(i)this.handle_token(i),this._last_last_text=this._flags.last_token.text,this._flags.last_token=i,i=this._tokens.next();return e=this._output.get_code(r),e},k.prototype.handle_token=function(e,t){e.type===s.START_EXPR?this.handle_start_expr(e):e.type===s.END_EXPR?this.handle_end_expr(e):e.type===s.START_BLOCK?this.handle_start_block(e):e.type===s.END_BLOCK?this.handle_end_block(e):e.type===s.WORD||e.type===s.RESERVED?this.handle_word(e):e.type===s.SEMICOLON?this.handle_semicolon(e):e.type===s.STRING?this.handle_string(e):e.type===s.EQUALS?this.handle_equals(e):e.type===s.OPERATOR?this.handle_operator(e):e.type===s.COMMA?this.handle_comma(e):e.type===s.BLOCK_COMMENT?this.handle_block_comment(e,t):e.type===s.COMMENT?this.handle_comment(e,t):e.type===s.DOT?this.handle_dot(e):e.type===s.EOF?this.handle_eof(e):(e.type,s.UNKNOWN,this.handle_unknown(e,t))},k.prototype.handle_whitespace_and_comments=function(e,t){var n=e.newlines,r=this._options.keep_array_indentation&&_(this._flags.mode);if(e.comments_before){var i=e.comments_before.next();while(i)this.handle_whitespace_and_comments(i,t),this.handle_token(i,t),i=e.comments_before.next()}if(r)for(var a=0;a<n;a+=1)this.print_newline(a>0,t);else if(this._options.max_preserve_newlines&&n>this._options.max_preserve_newlines&&(n=this._options.max_preserve_newlines),this._options.preserve_newlines&&n>1){this.print_newline(!1,t);for(var o=1;o<n;o+=1)this.print_newline(!0,t)}};var x=["async","break","continue","return","throw","yield"];return k.prototype.allow_wrap_or_preserved_newline=function(e,t){if(t=void 0!==t&&t,!this._output.just_added_newline()){var n=this._options.preserve_newlines&&e.newlines||t,r=l(this._flags.last_token.text,o)||l(e.text,o);if(r){var i=l(this._flags.last_token.text,o)&&l(this._options.operator_position,g)||l(e.text,o);n=n&&i}if(n)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(h(this._flags.last_token,x))return;this._output.set_wrap_point()}}},k.prototype.print_newline=function(e,t){if(!t&&";"!==this._flags.last_token.text&&","!==this._flags.last_token.text&&"="!==this._flags.last_token.text&&(this._flags.last_token.type!==s.OPERATOR||"--"===this._flags.last_token.text||"++"===this._flags.last_token.text)){var n=this._tokens.peek();while(this._flags.mode===v.Statement&&(!this._flags.if_block||!d(n,"else"))&&!this._flags.do_block)this.restore_mode()}this._output.add_new_line(e)&&(this._flags.multiline_frame=!0)},k.prototype.print_token_line_indentation=function(e){this._output.just_added_newline()&&(this._options.keep_array_indentation&&e.newlines&&("["===e.text||_(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(e.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},k.prototype.print_token=function(e){if(this._output.raw)this._output.add_raw_token(e);else{if(this._options.comma_first&&e.previous&&e.previous.type===s.COMMA&&this._output.just_added_newline()&&","===this._output.previous_line.last()){var t=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(t),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(e),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(e),this._output.non_breaking_space=!0,this._output.add_token(e.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)}},k.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},k.prototype.deindent=function(){this._flags.indentation_level>0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},k.prototype.set_mode=function(e){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,e),this._flags=this.create_flags(this._previous_flags,e),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},k.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===v.Statement&&b(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},k.prototype.start_of_object_property=function(){return this._flags.parent.mode===v.ObjectLiteral&&this._flags.mode===v.Statement&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||h(this._flags.last_token,["get","set"]))},k.prototype.start_of_statement=function(e){var t=!1;return t=t||h(this._flags.last_token,["var","let","const"])&&e.type===s.WORD,t=t||d(this._flags.last_token,"do"),t=t||!(this._flags.parent.mode===v.ObjectLiteral&&this._flags.mode===v.Statement)&&h(this._flags.last_token,x)&&!e.newlines,t=t||d(this._flags.last_token,"else")&&!(d(e,"if")&&!e.comments_before),t=t||this._flags.last_token.type===s.END_EXPR&&(this._previous_flags.mode===v.ForInitializer||this._previous_flags.mode===v.Conditional),t=t||this._flags.last_token.type===s.WORD&&this._flags.mode===v.BlockStatement&&!this._flags.in_case&&!("--"===e.text||"++"===e.text)&&"function"!==this._last_last_text&&e.type!==s.WORD&&e.type!==s.RESERVED,t=t||this._flags.mode===v.ObjectLiteral&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||h(this._flags.last_token,["get","set"])),!!t&&(this.set_mode(v.Statement),this.indent(),this.handle_whitespace_and_comments(e,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e,h(e,["do","for","if","while"])),!0)},k.prototype.handle_start_expr=function(e){this.start_of_statement(e)||this.handle_whitespace_and_comments(e);var t=v.Expression;if("["===e.text){if(this._flags.last_token.type===s.WORD||")"===this._flags.last_token.text)return h(this._flags.last_token,a)&&(this._output.space_before_token=!0),this.print_token(e),this.set_mode(t),this.indent(),void(this._options.space_in_paren&&(this._output.space_before_token=!0));t=v.ArrayLiteral,_(this._flags.mode)&&("["!==this._flags.last_token.text&&(","!==this._flags.last_token.text||"]"!==this._last_last_text&&"}"!==this._last_last_text)||this._options.keep_array_indentation||this.print_newline()),l(this._flags.last_token.type,[s.START_EXPR,s.END_EXPR,s.WORD,s.OPERATOR,s.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===s.RESERVED)"for"===this._flags.last_token.text?(this._output.space_before_token=this._options.space_before_conditional,t=v.ForInitializer):l(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,t=v.Conditional):l(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:"import"===this._flags.last_token.text&&""===e.whitespace_before?this._output.space_before_token=!1:(l(this._flags.last_token.text,a)||"catch"===this._flags.last_token.text)&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===s.EQUALS||this._flags.last_token.type===s.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e);else if(this._flags.last_token.type===s.WORD){this._output.space_before_token=!1;var n=this._tokens.peek(-3);if(this._options.space_after_named_function&&n){var r=this._tokens.peek(-4);h(n,["async","function"])||"*"===n.text&&h(r,["async","function"])?this._output.space_before_token=!0:this._flags.mode===v.ObjectLiteral?"{"!==n.text&&","!==n.text&&("*"!==n.text||"{"!==r.text&&","!==r.text)||(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(e);(this._flags.last_token.type===s.RESERVED&&("function"===this._flags.last_word||"typeof"===this._flags.last_word)||"*"===this._flags.last_token.text&&(l(this._last_last_text,["function","yield"])||this._flags.mode===v.ObjectLiteral&&l(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}";"===this._flags.last_token.text||this._flags.last_token.type===s.START_BLOCK?this.print_newline():this._flags.last_token.type!==s.END_EXPR&&this._flags.last_token.type!==s.START_EXPR&&this._flags.last_token.type!==s.END_BLOCK&&"."!==this._flags.last_token.text&&this._flags.last_token.type!==s.COMMA||this.allow_wrap_or_preserved_newline(e,e.newlines),this.print_token(e),this.set_mode(t),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},k.prototype.handle_end_expr=function(e){while(this._flags.mode===v.Statement)this.restore_mode();this.handle_whitespace_and_comments(e),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(e,"]"===e.text&&_(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type!==s.START_EXPR||this._options.space_in_empty_paren?this._output.space_before_token=!0:(this._output.trim(),this._output.space_before_token=!1)),this.deindent(),this.print_token(e),this.restore_mode(),b(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===v.Conditional&&(this._previous_flags.mode=v.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},k.prototype.handle_start_block=function(e){this.handle_whitespace_and_comments(e);var t=this._tokens.peek(),n=this._tokens.peek(1);"switch"===this._flags.last_word&&this._flags.last_token.type===s.END_EXPR?(this.set_mode(v.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(v.BlockStatement):n&&(l(n.text,[":",","])&&l(t.type,[s.STRING,s.WORD,s.RESERVED])||l(t.text,["get","set","..."])&&l(n.type,[s.WORD,s.RESERVED]))?l(this._last_last_text,["class","interface"])&&!l(n.text,[":",","])?this.set_mode(v.BlockStatement):this.set_mode(v.ObjectLiteral):this._flags.last_token.type===s.OPERATOR&&"=>"===this._flags.last_token.text?this.set_mode(v.BlockStatement):l(this._flags.last_token.type,[s.EQUALS,s.START_EXPR,s.COMMA,s.OPERATOR])||h(this._flags.last_token,["return","throw","import","default"])?this.set_mode(v.ObjectLiteral):this.set_mode(v.BlockStatement),this._flags.last_token&&h(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var r=!t.comments_before&&"}"===t.text,i=r&&"function"===this._flags.last_word&&this._flags.last_token.type===s.END_EXPR;if(this._options.brace_preserve_inline){var a=0,o=null;this._flags.inline_frame=!0;do{if(a+=1,o=this._tokens.peek(a-1),o.newlines){this._flags.inline_frame=!1;break}}while(o.type!==s.EOF&&(o.type!==s.END_BLOCK||o.opened!==e))}("expand"===this._options.brace_style||"none"===this._options.brace_style&&e.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==s.OPERATOR&&(i||this._flags.last_token.type===s.EQUALS||h(this._flags.last_token,p)&&"else"!==this._flags.last_token.text)?this._output.space_before_token=!0:this.print_newline(!1,!0):(!_(this._previous_flags.mode)||this._flags.last_token.type!==s.START_EXPR&&this._flags.last_token.type!==s.COMMA||((this._flags.last_token.type===s.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===s.COMMA||this._flags.last_token.type===s.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(e),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==s.OPERATOR&&this._flags.last_token.type!==s.START_EXPR&&(l(this._flags.last_token.type,[s.START_BLOCK,s.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(e),this.indent(),r||this._options.brace_preserve_inline&&this._flags.inline_frame||this.print_newline()},k.prototype.handle_end_block=function(e){this.handle_whitespace_and_comments(e);while(this._flags.mode===v.Statement)this.restore_mode();var t=this._flags.last_token.type===s.START_BLOCK;this._flags.inline_frame&&!t?this._output.space_before_token=!0:"expand"===this._options.brace_style?t||this.print_newline():t||(_(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(e)},k.prototype.handle_word=function(e){if(e.type===s.RESERVED)if(l(e.text,["set","get"])&&this._flags.mode!==v.ObjectLiteral)e.type=s.WORD;else if("import"===e.text&&l(this._tokens.peek().text,["(","."]))e.type=s.WORD;else if(l(e.text,["as","from"])&&!this._flags.import_block)e.type=s.WORD;else if(this._flags.mode===v.ObjectLiteral){var t=this._tokens.peek();":"===t.text&&(e.type=s.WORD)}if(this.start_of_statement(e)?h(this._flags.last_token,["var","let","const"])&&e.type===s.WORD&&(this._flags.declaration_statement=!0):!e.newlines||w(this._flags.mode)||this._flags.last_token.type===s.OPERATOR&&"--"!==this._flags.last_token.text&&"++"!==this._flags.last_token.text||this._flags.last_token.type===s.EQUALS||!this._options.preserve_newlines&&h(this._flags.last_token,["var","let","const","set","get"])?this.handle_whitespace_and_comments(e):(this.handle_whitespace_and_comments(e),this.print_newline()),this._flags.do_block&&!this._flags.do_while){if(d(e,"while"))return this._output.space_before_token=!0,this.print_token(e),this._output.space_before_token=!0,void(this._flags.do_while=!0);this.print_newline(),this._flags.do_block=!1}if(this._flags.if_block)if(!this._flags.else_block&&d(e,"else"))this._flags.else_block=!0;else{while(this._flags.mode===v.Statement)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&h(e,["case","default"]))return this.print_newline(),this._flags.case_block||!this._flags.case_body&&!this._options.jslint_happy||this.deindent(),this._flags.case_body=!1,this.print_token(e),void(this._flags.in_case=!0);if(this._flags.last_token.type!==s.COMMA&&this._flags.last_token.type!==s.START_EXPR&&this._flags.last_token.type!==s.EQUALS&&this._flags.last_token.type!==s.OPERATOR||this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e),d(e,"function"))return(l(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!l(this._flags.last_token.text,["(","[","{",":","=",","])&&this._flags.last_token.type!==s.OPERATOR)&&(this._output.just_added_blankline()||e.comments_before||(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===s.RESERVED||this._flags.last_token.type===s.WORD?h(this._flags.last_token,["get","set","new","export"])||h(this._flags.last_token,x)||d(this._flags.last_token,"default")&&"export"===this._last_last_text||"declare"===this._flags.last_token.text?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===s.OPERATOR||"="===this._flags.last_token.text?this._output.space_before_token=!0:(this._flags.multiline_frame||!w(this._flags.mode)&&!_(this._flags.mode))&&this.print_newline(),this.print_token(e),void(this._flags.last_word=e.text);var n="NONE";if(this._flags.last_token.type===s.END_BLOCK?this._previous_flags.inline_frame?n="SPACE":h(e,["else","catch","finally","from"])?"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&e.newlines?n="NEWLINE":(n="SPACE",this._output.space_before_token=!0):n="NEWLINE":this._flags.last_token.type===s.SEMICOLON&&this._flags.mode===v.BlockStatement?n="NEWLINE":this._flags.last_token.type===s.SEMICOLON&&w(this._flags.mode)?n="SPACE":this._flags.last_token.type===s.STRING?n="NEWLINE":this._flags.last_token.type===s.RESERVED||this._flags.last_token.type===s.WORD||"*"===this._flags.last_token.text&&(l(this._last_last_text,["function","yield"])||this._flags.mode===v.ObjectLiteral&&l(this._last_last_text,["{",","]))?n="SPACE":this._flags.last_token.type===s.START_BLOCK?n=this._flags.inline_frame?"SPACE":"NEWLINE":this._flags.last_token.type===s.END_EXPR&&(this._output.space_before_token=!0,n="NEWLINE"),h(e,a)&&")"!==this._flags.last_token.text&&(n=this._flags.inline_frame||"else"===this._flags.last_token.text||"export"===this._flags.last_token.text?"SPACE":"NEWLINE"),h(e,["else","catch","finally"]))if((this._flags.last_token.type!==s.END_BLOCK||this._previous_flags.mode!==v.BlockStatement||"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&e.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var r=this._output.current_line;"}"!==r.last()&&this.print_newline(),this._output.space_before_token=!0}else"NEWLINE"===n?h(this._flags.last_token,p)||"declare"===this._flags.last_token.text&&h(e,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==s.END_EXPR?this._flags.last_token.type===s.START_EXPR&&h(e,["var","let","const"])||":"===this._flags.last_token.text||(d(e,"if")&&d(e.previous,"else")?this._output.space_before_token=!0:this.print_newline()):h(e,a)&&")"!==this._flags.last_token.text&&this.print_newline():this._flags.multiline_frame&&_(this._flags.mode)&&","===this._flags.last_token.text&&"}"===this._last_last_text?this.print_newline():"SPACE"===n&&(this._output.space_before_token=!0);!e.previous||e.previous.type!==s.WORD&&e.previous.type!==s.RESERVED||(this._output.space_before_token=!0),this.print_token(e),this._flags.last_word=e.text,e.type===s.RESERVED&&("do"===e.text?this._flags.do_block=!0:"if"===e.text?this._flags.if_block=!0:"import"===e.text?this._flags.import_block=!0:this._flags.import_block&&d(e,"from")&&(this._flags.import_block=!1))},k.prototype.handle_semicolon=function(e){this.start_of_statement(e)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(e);var t=this._tokens.peek();while(this._flags.mode===v.Statement&&(!this._flags.if_block||!d(t,"else"))&&!this._flags.do_block)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(e)},k.prototype.handle_string=function(e){(!e.text.startsWith("`")||0!==e.newlines||""!==e.whitespace_before||")"!==e.previous.text&&this._flags.last_token.type!==s.WORD)&&(this.start_of_statement(e)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(e),this._flags.last_token.type===s.RESERVED||this._flags.last_token.type===s.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===s.COMMA||this._flags.last_token.type===s.START_EXPR||this._flags.last_token.type===s.EQUALS||this._flags.last_token.type===s.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(e):!e.text.startsWith("`")||this._flags.last_token.type!==s.END_EXPR||"]"!==e.previous.text&&")"!==e.previous.text||0!==e.newlines?this.print_newline():this._output.space_before_token=!0)),this.print_token(e)},k.prototype.handle_equals=function(e){this.start_of_statement(e)||this.handle_whitespace_and_comments(e),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(e),this._output.space_before_token=!0},k.prototype.handle_comma=function(e){this.handle_whitespace_and_comments(e,!0),this.print_token(e),this._output.space_before_token=!0,this._flags.declaration_statement?(w(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(e)):this._flags.mode===v.ObjectLiteral||this._flags.mode===v.Statement&&this._flags.parent.mode===v.ObjectLiteral?(this._flags.mode===v.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(e)},k.prototype.handle_operator=function(e){var t="*"===e.text&&(h(this._flags.last_token,["function","yield"])||l(this._flags.last_token.type,[s.START_BLOCK,s.COMMA,s.END_BLOCK,s.SEMICOLON])),n=l(e.text,["-","+"])&&(l(this._flags.last_token.type,[s.START_BLOCK,s.START_EXPR,s.EQUALS,s.OPERATOR])||l(this._flags.last_token.text,a)||","===this._flags.last_token.text);if(this.start_of_statement(e));else{var r=!t;this.handle_whitespace_and_comments(e,r)}if("*"!==e.text||this._flags.last_token.type!==s.DOT)if("::"!==e.text){if(this._flags.last_token.type===s.OPERATOR&&l(this._options.operator_position,g)&&this.allow_wrap_or_preserved_newline(e),":"===e.text&&this._flags.in_case)return this.print_token(e),this._flags.in_case=!1,this._flags.case_body=!0,void(this._tokens.peek().type!==s.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0));var i=!0,c=!0,u=!1;if(":"===e.text?0===this._flags.ternary_depth?i=!1:(this._flags.ternary_depth-=1,u=!0):"?"===e.text&&(this._flags.ternary_depth+=1),!n&&!t&&this._options.preserve_newlines&&l(e.text,o)){var d=":"===e.text,f=d&&u,b=d&&!u;switch(this._options.operator_position){case m.before_newline:return this._output.space_before_token=!b,this.print_token(e),d&&!f||this.allow_wrap_or_preserved_newline(e),void(this._output.space_before_token=!0);case m.after_newline:return this._output.space_before_token=!0,!d||f?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(e):this._output.space_before_token=!1,this.print_token(e),void(this._output.space_before_token=!0);case m.preserve_newline:return b||this.allow_wrap_or_preserved_newline(e),i=!(this._output.just_added_newline()||b),this._output.space_before_token=i,this.print_token(e),void(this._output.space_before_token=!0)}}if(t){this.allow_wrap_or_preserved_newline(e),i=!1;var y=this._tokens.peek();c=y&&l(y.type,[s.WORD,s.RESERVED])}else if("..."===e.text)this.allow_wrap_or_preserved_newline(e),i=this._flags.last_token.type===s.START_BLOCK,c=!1;else if(l(e.text,["--","++","!","~"])||n){if(this._flags.last_token.type!==s.COMMA&&this._flags.last_token.type!==s.START_EXPR||this.allow_wrap_or_preserved_newline(e),i=!1,c=!1,e.newlines&&("--"===e.text||"++"===e.text||"~"===e.text)){var _=h(this._flags.last_token,p)&&e.newlines;_&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(_,!0)}";"===this._flags.last_token.text&&w(this._flags.mode)&&(i=!0),this._flags.last_token.type===s.RESERVED?i=!0:this._flags.last_token.type===s.END_EXPR?i=!("]"===this._flags.last_token.text&&("--"===e.text||"++"===e.text)):this._flags.last_token.type===s.OPERATOR&&(i=l(e.text,["--","-","++","+"])&&l(this._flags.last_token.text,["--","-","++","+"]),l(e.text,["+","-"])&&l(this._flags.last_token.text,["--","++"])&&(c=!0)),(this._flags.mode!==v.BlockStatement||this._flags.inline_frame)&&this._flags.mode!==v.Statement||"{"!==this._flags.last_token.text&&";"!==this._flags.last_token.text||this.print_newline()}this._output.space_before_token=this._output.space_before_token||i,this.print_token(e),this._output.space_before_token=c}else this.print_token(e);else this.print_token(e)},k.prototype.handle_block_comment=function(e,t){return this._output.raw?(this._output.add_raw_token(e),void(e.directives&&"end"===e.directives.preserve&&(this._output.raw=this._options.test_output_raw))):e.directives?(this.print_newline(!1,t),this.print_token(e),"start"===e.directives.preserve&&(this._output.raw=!0),void this.print_newline(!1,!0)):n.newline.test(e.text)||e.newlines?void this.print_block_commment(e,t):(this._output.space_before_token=!0,this.print_token(e),void(this._output.space_before_token=!0))},k.prototype.print_block_commment=function(e,t){var n,r=y(e.text),i=!1,a=!1,o=e.whitespace_before,s=o.length;if(this.print_newline(!1,t),this.print_token_line_indentation(e),this._output.add_token(r[0]),this.print_newline(!1,t),r.length>1){for(r=r.slice(1),i=E(r,"*"),a=S(r,o),i&&(this._flags.alignment=1),n=0;n<r.length;n++)i?(this.print_token_line_indentation(e),this._output.add_token(c(r[n]))):a&&r[n]?(this.print_token_line_indentation(e),this._output.add_token(r[n].substring(s))):(this._output.current_line.set_indent(-1),this._output.add_token(r[n])),this.print_newline(!1,t);this._flags.alignment=0}},k.prototype.handle_comment=function(e,t){e.newlines?this.print_newline(!1,t):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(e),this.print_newline(!1,t)},k.prototype.handle_dot=function(e){this.start_of_statement(e)||this.handle_whitespace_and_comments(e,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),h(this._flags.last_token,p)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(e,")"===this._flags.last_token.text&&this._options.break_chained_methods),this._options.unindent_chained_methods&&this._output.just_added_newline()&&this.deindent(),this.print_token(e)},k.prototype.handle_unknown=function(e,t){this.print_token(e),"\n"===e.text[e.text.length-1]&&this.print_newline(!1,t)},k.prototype.handle_eof=function(e){while(this._flags.mode===v.Statement)this.restore_mode();this.handle_whitespace_and_comments(e)},so.Beautifier=k,so}function Yo(){if(Ho)return oo.exports;Ho=1;var e=Wo().Beautifier,t=Eo().Options;function n(t,n){var r=new e(t,n);return r.beautify()}return oo.exports=n,oo.exports.defaultOptions=function(){return new t},oo.exports}var Qo,Jo,Zo,es={exports:{}},ts={},ns={};function rs(){if(Qo)return ns;Qo=1;var e=wo().Options;function t(t){e.call(this,t,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var n=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||n;var r=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var i=0;i<r.length;i++)"expand"!==r[i]?this.brace_style="collapse":this.brace_style=r[i]}return t.prototype=new e,ns.Options=t,ns}function is(){if(Jo)return ts;Jo=1;var e=rs().Options,t=co().Output,n=Ao().InputScanner,r=jo().Directives,i=new r(/\/\*/,/\*\//),a=/\r\n|[\r\n]/,o=/\r\n|[\r\n]/g,s=/\s/,l=/(?:\s|\n)+/g,c=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,u=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function d(t,n){this._source_text=t||"",this._options=new e(n),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}return d.prototype.eatString=function(e){var t="";this._ch=this._input.next();while(this._ch){if(t+=this._ch,"\\"===this._ch)t+=this._input.next();else if(-1!==e.indexOf(this._ch)||"\n"===this._ch)break;this._ch=this._input.next()}return t},d.prototype.eatWhitespace=function(e){var t=s.test(this._input.peek()),n=0;while(s.test(this._input.peek()))this._ch=this._input.next(),e&&"\n"===this._ch&&(0===n||n<this._options.max_preserve_newlines)&&(n++,this._output.add_new_line(!0));return t},d.prototype.foundNestedPseudoClass=function(){var e=0,t=1,n=this._input.peek(t);while(n){if("{"===n)return!0;if("("===n)e+=1;else if(")"===n){if(0===e)return!1;e-=1}else if(";"===n||"}"===n)return!1;t++,n=this._input.peek(t)}return!1},d.prototype.print_string=function(e){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(e)},d.prototype.preserveSingleSpace=function(e){e&&(this._output.space_before_token=!0)},d.prototype.indent=function(){this._indentLevel++},d.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},d.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._source_text,r=this._options.eol;"auto"===r&&(r="\n",e&&a.test(e||"")&&(r=e.match(a)[0])),e=e.replace(o,"\n");var d=e.match(/^[\t ]*/)[0];this._output=new t(this._options,d),this._input=new n(e),this._indentLevel=0,this._nestedLevel=0,this._ch=null;var h,p,f,m=0,g=!1,v=!1,b=!1,y=!1,_=!1,w=this._ch,E=!1;while(1){if(h=this._input.read(l),p=""!==h,f=w,this._ch=this._input.next(),"\\"===this._ch&&this._input.hasNext()&&(this._ch+=this._input.next()),w=this._ch,!this._ch)break;if("/"===this._ch&&"*"===this._input.peek()){this._output.add_new_line(),this._input.back();var S=this._input.read(c),k=i.get_directives(S);k&&"start"===k.ignore&&(S+=i.readIgnored(this._input)),this.print_string(S),this.eatWhitespace(!0),this._output.add_new_line()}else if("/"===this._ch&&"/"===this._input.peek())this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(u)),this.eatWhitespace(!0);else if("$"===this._ch){this.preserveSingleSpace(p),this.print_string(this._ch);var x=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);x.match(/[ :]$/)&&(x=this.eatString(": ").replace(/\s$/,""),this.print_string(x),this._output.space_before_token=!0),x=x.replace(/\s$/,""),0===m&&-1!==x.indexOf(":")&&(v=!0,this.indent())}else if("@"===this._ch)if(this.preserveSingleSpace(p),"{"===this._input.peek())this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var A=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);A.match(/[ :]$/)&&(A=this.eatString(": ").replace(/\s$/,""),this.print_string(A),this._output.space_before_token=!0),A=A.replace(/\s$/,""),0===m&&-1!==A.indexOf(":")?(v=!0,this.indent()):A in this.NESTED_AT_RULE?(this._nestedLevel+=1,A in this.CONDITIONAL_GROUP_RULE&&(b=!0)):0!==m||v||(y=!0)}else if("#"===this._ch&&"{"===this._input.peek())this.preserveSingleSpace(p),this.print_string(this._ch+this.eatString("}"));else if("{"===this._ch)v&&(v=!1,this.outdent()),y=!1,b?(b=!1,g=this._indentLevel>=this._nestedLevel):g=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&g&&this._output.previous_line&&"{"!==this._output.previous_line.item(-1)&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,"expand"===this._options.brace_style?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):("("===f?this._output.space_before_token=!1:","!==f&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if("}"===this._ch)this.outdent(),this._output.add_new_line(),"{"===f&&this._output.trim(!0),v&&(this.outdent(),v=!1),this.print_string(this._ch),g=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&"}"!==this._input.peek()&&this._output.add_new_line(!0),")"===this._input.peek()&&(this._output.trim(!0),"expand"===this._options.brace_style&&this._output.add_new_line(!0));else if(":"===this._ch){for(var C=0;C<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;C++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[C])){E=!0;break}!g&&!b||this._input.lookBack("&")||this.foundNestedPseudoClass()||this._input.lookBack("(")||y||0!==m?(this._input.lookBack(" ")&&(this._output.space_before_token=!0),":"===this._input.peek()?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":")):(this.print_string(":"),v||(v=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent()))}else if('"'===this._ch||"'"===this._ch){var T='"'===f||"'"===f;this.preserveSingleSpace(T||p),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(";"===this._ch)E=!1,0===m?(v&&(this.outdent(),v=!1),y=!1,this.print_string(this._ch),this.eatWhitespace(!0),"/"!==this._input.peek()&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if("("===this._ch)if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),m++,this.indent(),this._ch=this._input.next(),")"===this._ch||'"'===this._ch||"'"===this._ch?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),m&&(m--,this.outdent()));else{var N=!1;this._input.lookBack("with")&&(N=!0),this.preserveSingleSpace(p||N),this.print_string(this._ch),v&&"$"===f&&this._options.selector_separator_newline?(this._output.add_new_line(),_=!0):(this.eatWhitespace(),m++,this.indent())}else if(")"===this._ch)m&&(m--,this.outdent()),_&&";"===this._input.peek()&&this._options.selector_separator_newline&&(_=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(","===this._ch)this.print_string(this._ch),this.eatWhitespace(!0),!this._options.selector_separator_newline||v&&!_||0!==m||y?this._output.space_before_token=!0:this._output.add_new_line();else if(">"!==this._ch&&"+"!==this._ch&&"~"!==this._ch||v||0!==m)if("]"===this._ch)this.print_string(this._ch);else if("["===this._ch)this.preserveSingleSpace(p),this.print_string(this._ch);else if("="===this._ch)this.eatWhitespace(),this.print_string("="),s.test(this._ch)&&(this._ch="");else if("!"!==this._ch||this._input.lookBack("\\")){var R='"'===f||"'"===f;this.preserveSingleSpace(R||p),this.print_string(this._ch),!this._output.just_added_newline()&&"\n"===this._input.peek()&&E&&this._output.add_new_line()}else this._output.space_before_token=!0,this.print_string(this._ch);else this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&s.test(this._ch)&&(this._ch=""))}var O=this._output.get_code(r);return O},ts.Beautifier=d,ts}function as(){if(Zo)return es.exports;Zo=1;var e=is().Beautifier,t=rs().Options;function n(t,n){var r=new e(t,n);return r.beautify()}return es.exports=n,es.exports.defaultOptions=function(){return new t},es.exports}var os,ss={exports:{}},ls={},cs={};function us(){if(os)return cs;os=1;var e=wo().Options;function t(t){e.call(this,t,"html"),1===this.templating.length&&"auto"===this.templating[0]&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_min_attrs=this._get_number("wrap_attributes_min_attrs",2),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.inline_custom_elements=this._get_boolean("inline_custom_elements",!0),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}return t.prototype=new e,cs.Options=t,cs}var ds,hs,ps,fs,ms={};function gs(){if(ds)return ms;ds=1;var e=Fo().Tokenizer,t=Fo().TOKEN,n=jo().Directives,r=qo().TemplatablePattern,i=Mo().Pattern,a={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:t.START,RAW:t.RAW,EOF:t.EOF},o=new n(/<\!--/,/-->/),s=function(t,n){e.call(this,t,n),this._current_tag_name="";var a=new r(this._input).read_options(this._options),o=new i(this._input);if(this.__patterns={word:a.until(/[\n\r\t <]/),single_quote:a.until_after(/'/),double_quote:a.until_after(/"/),attribute:a.until(/[\n\r\t =>]|\/>/),element_name:a.until(/[\n\r\t >\/]/),handlebars_comment:o.starting_with(/{{!--/).until_after(/--}}/),handlebars:o.starting_with(/{{/).until_after(/}}/),handlebars_open:o.until(/[\n\r\t }]/),handlebars_raw_close:o.until(/}}/),comment:o.starting_with(/<!--/).until_after(/-->/),cdata:o.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:o.starting_with(/<!\[/).until_after(/]>/),processing:o.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var s=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=o.matching(s).until_after(s)}};return s.prototype=new e,s.prototype._is_comment=function(e){return!1},s.prototype._is_opening=function(e){return e.type===a.TAG_OPEN},s.prototype._is_closing=function(e,t){return e.type===a.TAG_CLOSE&&t&&((">"===e.text||"/>"===e.text)&&"<"===t.text[0]||"}}"===e.text&&"{"===t.text[0]&&"{"===t.text[1])},s.prototype._reset=function(){this._current_tag_name=""},s.prototype._get_next_token=function(e,t){var n=null;this._readWhitespace();var r=this._input.peek();return null===r?this._create_token(a.EOF,""):(n=n||this._read_open_handlebars(r,t),n=n||this._read_attribute(r,e,t),n=n||this._read_close(r,t),n=n||this._read_raw_content(r,e,t),n=n||this._read_content_word(r),n=n||this._read_comment_or_cdata(r),n=n||this._read_processing(r),n=n||this._read_open(r,t),n=n||this._create_token(a.UNKNOWN,this._input.next()),n)},s.prototype._read_comment_or_cdata=function(e){var t=null,n=null,r=null;if("<"===e){var i=this._input.peek(1);"!"===i&&(n=this.__patterns.comment.read(),n?(r=o.get_directives(n),r&&"start"===r.ignore&&(n+=o.readIgnored(this._input))):n=this.__patterns.cdata.read()),n&&(t=this._create_token(a.COMMENT,n),t.directives=r)}return t},s.prototype._read_processing=function(e){var t=null,n=null,r=null;if("<"===e){var i=this._input.peek(1);"!"!==i&&"?"!==i||(n=this.__patterns.conditional_comment.read(),n=n||this.__patterns.processing.read()),n&&(t=this._create_token(a.COMMENT,n),t.directives=r)}return t},s.prototype._read_open=function(e,t){var n=null,r=null;return t||"<"===e&&(n=this._input.next(),"/"===this._input.peek()&&(n+=this._input.next()),n+=this.__patterns.element_name.read(),r=this._create_token(a.TAG_OPEN,n)),r},s.prototype._read_open_handlebars=function(e,t){var n=null,r=null;return t||this._options.indent_handlebars&&"{"===e&&"{"===this._input.peek(1)&&("!"===this._input.peek(2)?(n=this.__patterns.handlebars_comment.read(),n=n||this.__patterns.handlebars.read(),r=this._create_token(a.COMMENT,n)):(n=this.__patterns.handlebars_open.read(),r=this._create_token(a.TAG_OPEN,n))),r},s.prototype._read_close=function(e,t){var n=null,r=null;return t&&("<"===t.text[0]&&(">"===e||"/"===e&&">"===this._input.peek(1))?(n=this._input.next(),"/"===e&&(n+=this._input.next()),r=this._create_token(a.TAG_CLOSE,n)):"{"===t.text[0]&&"}"===e&&"}"===this._input.peek(1)&&(this._input.next(),this._input.next(),r=this._create_token(a.TAG_CLOSE,"}}"))),r},s.prototype._read_attribute=function(e,t,n){var r=null,i="";if(n&&"<"===n.text[0])if("="===e)r=this._create_token(a.EQUALS,this._input.next());else if('"'===e||"'"===e){var o=this._input.next();o+='"'===e?this.__patterns.double_quote.read():this.__patterns.single_quote.read(),r=this._create_token(a.VALUE,o)}else i=this.__patterns.attribute.read(),i&&(r=t.type===a.EQUALS?this._create_token(a.VALUE,i):this._create_token(a.ATTRIBUTE,i));return r},s.prototype._is_content_unformatted=function(e){return-1===this._options.void_elements.indexOf(e)&&(-1!==this._options.content_unformatted.indexOf(e)||-1!==this._options.unformatted.indexOf(e))},s.prototype._read_raw_content=function(e,t,n){var r="";if(n&&"{"===n.text[0])r=this.__patterns.handlebars_raw_close.read();else if(t.type===a.TAG_CLOSE&&"<"===t.opened.text[0]&&"/"!==t.text[0]){var i=t.opened.text.substr(1).toLowerCase();if("script"===i||"style"===i){var o=this._read_comment_or_cdata(e);if(o)return o.type=a.TEXT,o;r=this._input.readUntil(new RegExp("</"+i+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(i)&&(r=this._input.readUntil(new RegExp("</"+i+"[\\n\\r\\t ]*?>","ig")))}return r?this._create_token(a.TEXT,r):null},s.prototype._read_content_word=function(e){var t="";if(this._options.unformatted_content_delimiter&&e===this._options.unformatted_content_delimiter[0]&&(t=this.__patterns.unformatted_content_delimiter.read()),t||(t=this.__patterns.word.read()),t)return this._create_token(a.TEXT,t)},ms.Tokenizer=s,ms.TOKEN=a,ms}function vs(){if(hs)return ls;hs=1;var e=us().Options,t=co().Output,n=gs().Tokenizer,r=gs().TOKEN,i=/\r\n|[\r\n]/,a=/\r\n|[\r\n]/g,o=function(e,n){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=e.max_preserve_newlines,this.preserve_newlines=e.preserve_newlines,this._output=new t(e,n)};o.prototype.current_line_has_match=function(e){return this._output.current_line.has_match(e)},o.prototype.set_space_before_token=function(e,t){this._output.space_before_token=e,this._output.non_breaking_space=t},o.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},o.prototype.add_raw_token=function(e){this._output.add_raw_token(e)},o.prototype.print_preserved_newlines=function(e){var t=0;e.type!==r.TEXT&&e.previous.type!==r.TEXT&&(t=e.newlines?1:0),this.preserve_newlines&&(t=e.newlines<this.max_preserve_newlines+1?e.newlines:this.max_preserve_newlines+1);for(var n=0;n<t;n++)this.print_newline(n>0);return 0!==t},o.prototype.traverse_whitespace=function(e){return!(!e.whitespace_before&&!e.newlines)&&(this.print_preserved_newlines(e)||(this._output.space_before_token=!0),!0)},o.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},o.prototype.print_newline=function(e){this._output.add_new_line(e)},o.prototype.print_token=function(e){e.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(e.text))},o.prototype.indent=function(){this.indent_level++},o.prototype.get_full_indent=function(e){return e=this.indent_level+(e||0),e<1?"":this._output.get_indent_string(e)};var s=function(e){var t=null,n=e.next;while(n.type!==r.EOF&&e.closed!==n){if(n.type===r.ATTRIBUTE&&"type"===n.text){n.next&&n.next.type===r.EQUALS&&n.next.next&&n.next.next.type===r.VALUE&&(t=n.next.next.text);break}n=n.next}return t},l=function(e,t){var n=null,r=null;return t.closed?("script"===e?n="text/javascript":"style"===e&&(n="text/css"),n=s(t)||n,n.search("text/css")>-1?r="css":n.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?r="javascript":n.search(/(text|application|dojo)\/(x-)?(html)/)>-1?r="html":n.search(/test\/null/)>-1&&(r="null"),r):null};function c(e,t){return-1!==t.indexOf(e)}function u(e,t,n){this.parent=e||null,this.tag=t?t.tag_name:"",this.indent_level=n||0,this.parser_token=t||null}function d(e){this._printer=e,this._current_frame=null}function h(t,n,r,i){this._source_text=t||"",n=n||{},this._js_beautify=r,this._css_beautify=i,this._tag_stack=null;var a=new e(n,"html");this._options=a,this._is_wrap_attributes_force="force"===this._options.wrap_attributes.substr(0,5),this._is_wrap_attributes_force_expand_multiline="force-expand-multiline"===this._options.wrap_attributes,this._is_wrap_attributes_force_aligned="force-aligned"===this._options.wrap_attributes,this._is_wrap_attributes_aligned_multiple="aligned-multiple"===this._options.wrap_attributes,this._is_wrap_attributes_preserve="preserve"===this._options.wrap_attributes.substr(0,8),this._is_wrap_attributes_preserve_aligned="preserve-aligned"===this._options.wrap_attributes}d.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},d.prototype.record_tag=function(e){var t=new u(this._current_frame,e,this._printer.indent_level);this._current_frame=t},d.prototype._try_pop_frame=function(e){var t=null;return e&&(t=e.parser_token,this._printer.indent_level=e.indent_level,this._current_frame=e.parent),t},d.prototype._get_frame=function(e,t){var n=this._current_frame;while(n){if(-1!==e.indexOf(n.tag))break;if(t&&-1!==t.indexOf(n.tag)){n=null;break}n=n.parent}return n},d.prototype.try_pop=function(e,t){var n=this._get_frame([e],t);return this._try_pop_frame(n)},d.prototype.indent_to_tag=function(e){var t=this._get_frame(e);t&&(this._printer.indent_level=t.indent_level)},h.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var e=this._source_text,t=this._options.eol;"auto"===this._options.eol&&(t="\n",e&&i.test(e)&&(t=e.match(i)[0])),e=e.replace(a,"\n");var s=e.match(/^[\t ]*/)[0],l={text:"",type:""},c=new p,u=new o(this._options,s),h=new n(e,this._options).tokenize();this._tag_stack=new d(u);var f=null,m=h.next();while(m.type!==r.EOF)m.type===r.TAG_OPEN||m.type===r.COMMENT?(f=this._handle_tag_open(u,m,c,l,h),c=f):m.type===r.ATTRIBUTE||m.type===r.EQUALS||m.type===r.VALUE||m.type===r.TEXT&&!c.tag_complete?f=this._handle_inside_tag(u,m,c,l):m.type===r.TAG_CLOSE?f=this._handle_tag_close(u,m,c):m.type===r.TEXT?f=this._handle_text(u,m,c):u.add_raw_token(m),l=f,m=h.next();var g=u._output.get_code(t);return g},h.prototype._handle_tag_close=function(e,t,n){var r={text:t.text,type:t.type};return e.alignment_size=0,n.tag_complete=!0,e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),n.is_unformatted?e.add_raw_token(t):("<"===n.tag_start_char&&(e.set_space_before_token("/"===t.text[0],!0),this._is_wrap_attributes_force_expand_multiline&&n.has_wrapped_attrs&&e.print_newline(!1)),e.print_token(t)),!n.indent_content||n.is_unformatted||n.is_content_unformatted||(e.indent(),n.indent_content=!1),n.is_inline_element||n.is_unformatted||n.is_content_unformatted||e.set_wrap_point(),r},h.prototype._handle_inside_tag=function(e,t,n,i){var a=n.has_wrapped_attrs,o={text:t.text,type:t.type};return e.set_space_before_token(t.newlines||""!==t.whitespace_before,!0),n.is_unformatted?e.add_raw_token(t):"{"===n.tag_start_char&&t.type===r.TEXT?e.print_preserved_newlines(t)?(t.newlines=0,e.add_raw_token(t)):e.print_token(t):(t.type===r.ATTRIBUTE?e.set_space_before_token(!0):(t.type===r.EQUALS||t.type===r.VALUE&&t.previous.type===r.EQUALS)&&e.set_space_before_token(!1),t.type===r.ATTRIBUTE&&"<"===n.tag_start_char&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(e.traverse_whitespace(t),a=a||0!==t.newlines),this._is_wrap_attributes_force&&n.attr_count>=this._options.wrap_attributes_min_attrs&&(i.type!==r.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(e.print_newline(!1),a=!0)),e.print_token(t),a=a||e.previous_token_wrapped(),n.has_wrapped_attrs=a),o},h.prototype._handle_text=function(e,t,n){var r={text:t.text,type:"TK_CONTENT"};return n.custom_beautifier_name?this._print_custom_beatifier_text(e,t,n):n.is_unformatted||n.is_content_unformatted?e.add_raw_token(t):(e.traverse_whitespace(t),e.print_token(t)),r},h.prototype._print_custom_beatifier_text=function(e,t,n){var r=this;if(""!==t.text){var i,a=t.text,o=1,s="",l="";"javascript"===n.custom_beautifier_name&&"function"===typeof this._js_beautify?i=this._js_beautify:"css"===n.custom_beautifier_name&&"function"===typeof this._css_beautify?i=this._css_beautify:"html"===n.custom_beautifier_name&&(i=function(e,t){var n=new h(e,t,r._js_beautify,r._css_beautify);return n.beautify()}),"keep"===this._options.indent_scripts?o=0:"separate"===this._options.indent_scripts&&(o=-e.indent_level);var c=e.get_full_indent(o);if(a=a.replace(/\n[ \t]*$/,""),"html"!==n.custom_beautifier_name&&"<"===a[0]&&a.match(/^(<!--|<!\[CDATA\[)/)){var u=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(a);if(!u)return void e.add_raw_token(t);s=c+u[1]+"\n",a=u[4],u[5]&&(l=c+u[5]),a=a.replace(/\n[ \t]*$/,""),(u[2]||-1!==u[3].indexOf("\n"))&&(u=u[3].match(/[ \t]+$/),u&&(t.whitespace_before=u[0]))}if(a)if(i){var d=function(){this.eol="\n"};d.prototype=this._options.raw_options;var p=new d;a=i(c+a,p)}else{var f=t.whitespace_before;f&&(a=a.replace(new RegExp("\n("+f+")?","g"),"\n")),a=c+a.replace(/\n/g,"\n"+c)}s&&(a=a?s+a+"\n"+l:s+l),e.print_newline(!1),a&&(t.text=a,t.whitespace_before="",t.newlines=0,e.add_raw_token(t),e.print_newline(!0))}},h.prototype._handle_tag_open=function(e,t,n,i,a){var o=this._get_tag_open_token(t);if(!n.is_unformatted&&!n.is_content_unformatted||n.is_empty_element||t.type!==r.TAG_OPEN||o.is_start_tag?(e.traverse_whitespace(t),this._set_tag_position(e,t,o,n,i),o.is_inline_element||e.set_wrap_point(),e.print_token(t)):(e.add_raw_token(t),o.start_tag_token=this._tag_stack.try_pop(o.tag_name)),o.is_start_tag&&this._is_wrap_attributes_force){var s,l=0;do{s=a.peek(l),s.type===r.ATTRIBUTE&&(o.attr_count+=1),l+=1}while(s.type!==r.EOF&&s.type!==r.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(o.alignment_size=t.text.length+1),o.tag_complete||o.is_unformatted||(e.alignment_size=o.alignment_size),o};var p=function(e,t){if(this.parent=e||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",t){var n;this.tag_start_char=t.text[0],this.text=t.text,"<"===this.tag_start_char?(n=t.text.match(/^<([^\s>]*)/),this.tag_check=n?n[1]:""):(n=t.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=n?n[1]:"",(t.text.startsWith("{{#>")||t.text.startsWith("{{~#>"))&&">"===this.tag_check[0]&&(">"===this.tag_check&&null!==t.next?this.tag_check=t.next.text.split(" ")[0]:this.tag_check=t.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),t.type===r.COMMENT&&(this.tag_complete=!0),this.is_start_tag="/"!==this.tag_check.charAt(0),this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||t.closed&&"/>"===t.closed.text;var i=2;"{"===this.tag_start_char&&this.text.length>=3&&"~"===this.text.charAt(2)&&(i=3),this.is_end_tag=this.is_end_tag||"{"===this.tag_start_char&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(i)))}else this.tag_complete=!0};h.prototype._get_tag_open_token=function(e){var t=new p(this._tag_stack.get_parser_token(),e);return t.alignment_size=this._options.wrap_attributes_indent_size,t.is_end_tag=t.is_end_tag||c(t.tag_check,this._options.void_elements),t.is_empty_element=t.tag_complete||t.is_start_tag&&t.is_end_tag,t.is_unformatted=!t.tag_complete&&c(t.tag_check,this._options.unformatted),t.is_content_unformatted=!t.is_empty_element&&c(t.tag_check,this._options.content_unformatted),t.is_inline_element=c(t.tag_name,this._options.inline)||this._options.inline_custom_elements&&t.tag_name.includes("-")||"{"===t.tag_start_char,t},h.prototype._set_tag_position=function(e,t,n,i,a){if(n.is_empty_element||(n.is_end_tag?n.start_tag_token=this._tag_stack.try_pop(n.tag_name):(this._do_optional_end_element(n)&&(n.is_inline_element||e.print_newline(!1)),this._tag_stack.record_tag(n),"script"!==n.tag_name&&"style"!==n.tag_name||n.is_unformatted||n.is_content_unformatted||(n.custom_beautifier_name=l(n.tag_check,t)))),c(n.tag_check,this._options.extra_liners)&&(e.print_newline(!1),e._output.just_added_blankline()||e.print_newline(!0)),n.is_empty_element){if("{"===n.tag_start_char&&"else"===n.tag_check){this._tag_stack.indent_to_tag(["if","unless","each"]),n.indent_content=!0;var o=e.current_line_has_match(/{{#if/);o||e.print_newline(!1)}"!--"===n.tag_name&&a.type===r.TAG_CLOSE&&i.is_end_tag&&-1===n.text.indexOf("\n")||(n.is_inline_element||n.is_unformatted||e.print_newline(!1),this._calcluate_parent_multiline(e,n))}else if(n.is_end_tag){var s=!1;s=n.start_tag_token&&n.start_tag_token.multiline_content,s=s||!n.is_inline_element&&!(i.is_inline_element||i.is_unformatted)&&!(a.type===r.TAG_CLOSE&&n.start_tag_token===i)&&"TK_CONTENT"!==a.type,(n.is_content_unformatted||n.is_unformatted)&&(s=!1),s&&e.print_newline(!1)}else n.indent_content=!n.custom_beautifier_name,"<"===n.tag_start_char&&("html"===n.tag_name?n.indent_content=this._options.indent_inner_html:"head"===n.tag_name?n.indent_content=this._options.indent_head_inner_html:"body"===n.tag_name&&(n.indent_content=this._options.indent_body_inner_html)),n.is_inline_element||n.is_unformatted||"TK_CONTENT"===a.type&&!n.is_content_unformatted||e.print_newline(!1),this._calcluate_parent_multiline(e,n)},h.prototype._calcluate_parent_multiline=function(e,t){!t.parent||!e._output.just_added_newline()||(t.is_inline_element||t.is_unformatted)&&t.parent.is_inline_element||(t.parent.multiline_content=!0)};var f=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","menu","nav","ol","p","pre","section","table","ul"],m=["a","audio","del","ins","map","noscript","video"];return h.prototype._do_optional_end_element=function(e){var t=null;if(!e.is_empty_element&&e.is_start_tag&&e.parent){if("body"===e.tag_name)t=t||this._tag_stack.try_pop("head");else if("li"===e.tag_name)t=t||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if("dd"===e.tag_name||"dt"===e.tag_name)t=t||this._tag_stack.try_pop("dt",["dl"]),t=t||this._tag_stack.try_pop("dd",["dl"]);else if("p"===e.parent.tag_name&&-1!==f.indexOf(e.tag_name)){var n=e.parent.parent;n&&-1!==m.indexOf(n.tag_name)||(t=t||this._tag_stack.try_pop("p"))}else"rp"===e.tag_name||"rt"===e.tag_name?(t=t||this._tag_stack.try_pop("rt",["ruby","rtc"]),t=t||this._tag_stack.try_pop("rp",["ruby","rtc"])):"optgroup"===e.tag_name?t=t||this._tag_stack.try_pop("optgroup",["select"]):"option"===e.tag_name?t=t||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):"colgroup"===e.tag_name?t=t||this._tag_stack.try_pop("caption",["table"]):"thead"===e.tag_name?(t=t||this._tag_stack.try_pop("caption",["table"]),t=t||this._tag_stack.try_pop("colgroup",["table"])):"tbody"===e.tag_name||"tfoot"===e.tag_name?(t=t||this._tag_stack.try_pop("caption",["table"]),t=t||this._tag_stack.try_pop("colgroup",["table"]),t=t||this._tag_stack.try_pop("thead",["table"]),t=t||this._tag_stack.try_pop("tbody",["table"])):"tr"===e.tag_name?(t=t||this._tag_stack.try_pop("caption",["table"]),t=t||this._tag_stack.try_pop("colgroup",["table"]),t=t||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):"th"!==e.tag_name&&"td"!==e.tag_name||(t=t||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),t=t||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return e.parent=this._tag_stack.get_parser_token(),t}},ls.Beautifier=h,ls}function bs(){if(ps)return ss.exports;ps=1;var e=vs().Beautifier,t=us().Options;function n(t,n,r,i){var a=new e(t,n,r,i);return a.beautify()}return ss.exports=n,ss.exports.defaultOptions=function(){return new t},ss.exports}function ys(){if(fs)return ao;fs=1;var e=Yo(),t=as(),n=bs();function r(r,i,a,o){return a=a||e,o=o||t,n(r,i,a,o)}return r.defaultOptions=n.defaultOptions,ao.js=e,ao.css=t,ao.html=r,ao}(function(e){function t(e,t,n){var r=function(t,n){return e.js_beautify(t,n)};return r.js=e.js_beautify,r.css=t.css_beautify,r.html=n.html_beautify,r.js_beautify=e.js_beautify,r.css_beautify=t.css_beautify,r.html_beautify=n.html_beautify,r}(function(e){var n=ys();n.js_beautify=n.js,n.css_beautify=n.css,n.html_beautify=n.html,e.exports=t(n,n,n)})(e)})(io);var _s=io.exports,ws=no(_s),Es=function(){function e(e){var t=this;this.isDisabled=function(){var e=["BUTTON","COMMAND","FIELDSET","KEYGEN","OPTGROUP","OPTION","SELECT","TEXTAREA","INPUT"],n=void 0!==t.attributes().disabled,r=Ya(t.element)&&e.includes(t.element.tagName);return n&&r},this.wrapperElement=e}return Object.defineProperty(e.prototype,"element",{get:function(){return this.wrapperElement},enumerable:!1,configurable:!0}),e.prototype.findAllDOMElements=function(e){var t=this.getRootNodes().filter(Ya);if(0===t.length)return[];var n=Ki([],t.filter(function(t){return t.matches(e)}),!0);return t.forEach(function(t){n.push.apply(n,Array.from(t.querySelectorAll(e)))}),n},e.prototype.find=function(e){if("object"===typeof e&&"ref"in e){var t=this.getCurrentComponent();if(!t)return za("DOMWrapper");var n=t.refs[e.ref];return Array.isArray(n)&&(n=n.length?n[0]:void 0),n instanceof Node?Za(n):za("DOMWrapper")}var r=this.findAll(e);return r.length>0?r[0]:za("DOMWrapper")},e.prototype.findComponent=function(e){var t=this.getCurrentComponent();if(!t)return za("VueWrapper");if("object"===typeof e&&"ref"in e){var n=t.refs[e.ref];return Array.isArray(n)&&(n=n.length?n[0]:void 0),!n||n instanceof HTMLElement?za("VueWrapper"):eo(null,n)}if(ja(t.vnode,e)&&this.element.contains(t.vnode.el))return eo(null,t.subTree.component?t.subTree.component.proxy:t.proxy);var r=this.findAllComponents(e)[0];return null!==r&&void 0!==r?r:za("VueWrapper")},e.prototype.findAllComponents=function(e){var t=this.getCurrentComponent();if(!t)return[];var n=Ha(t.subTree,e);return n.map(function(e){return e.proxy?eo(null,e.proxy):Za(e.vnode.el)})},e.prototype.html=function(e){var t=this.getRootNodes().map(function(e){return to(e)});return(null===e||void 0===e?void 0:e.raw)?t.join(""):t.map(function(e){return ws.html(e,{unformatted:["code","pre","em","strong","span"],indent_inner_html:!0,indent_size:2,inline_custom_elements:!1})}).join("\n")},e.prototype.classes=function(e){var t=Ya(this.element)?Array.from(this.element.classList):[];return e?t.includes(e):t},e.prototype.attributes=function(e){var t={};if(Ya(this.element))for(var n=Array.from(this.element.attributes),r=0,i=n;r<i.length;r++){var a=i[r];t[a.localName]=a.value}return e?t[e]:t},e.prototype.text=function(){return this.getRootNodes().map(na).join("")},e.prototype.exists=function(){return!0},e.prototype.get=function(e){var t=this.find(e);if(t.exists())return t;throw new Error("Unable to get ".concat(e," within: ").concat(this.html()))},e.prototype.getComponent=function(e){var t=this.findComponent(e);if(t.exists())return t;var n="Unable to get ";throw n+="string"===typeof e?"component with selector ".concat(e):"name"in e?"component with name ".concat(e.name):"ref"in e?"component with ref ".concat(e.ref):"specified component",n+=" within: ".concat(this.html()),new Error(n)},e.prototype.isVisible=function(){return Ya(this.element)&&Wa(this.element)},e.prototype.trigger=function(e,t){return ji(this,void 0,void 0,function(){var n;return Vi(this,function(i){if(t&&t["target"])throw Error("[vue-test-utils]: you cannot set the target value of an event. See the notes section of the docs for more details—https://vue-test-utils.vuejs.org/api/wrapper/trigger.html");return this.element&&!this.isDisabled()&&(n=Ea(e,t),n._vts=Date.now()+1,this.element.dispatchEvent(n)),[2,(0,r.nextTick)()]})})},e}(),Ss=function(e){function t(t){var n=this;return t?(n=e.call(this,t)||this,Hi.plugins.DOMWrapper.extend(n),n):za("DOMWrapper")}return $i(t,e),t.prototype.getRootNodes=function(){return[this.wrapperElement]},t.prototype.getCurrentComponent=function(){var e,t=this.element.__vueParentComponent;while((null===(e=null===t||void 0===t?void 0:t.parent)||void 0===e?void 0:e.vnode.el)===this.element)t=t.parent;return t},t.prototype.find=function(t){var n=e.prototype.find.call(this,t);return n.exists()&&aa(t)?this.element.contains(n.element)?n:za("DOMWrapper"):n},t.prototype.findAll=function(e){return this.wrapperElement instanceof Element?Array.from(this.wrapperElement.querySelectorAll(e),Za):[]},t.prototype.findAllComponents=function(t){var n=this,r=e.prototype.findAllComponents.call(this,t);return r.filter(function(e){return n.element.contains(e.element)})},t.prototype.setChecked=function(){return ji(this,arguments,void 0,function(e){var t,n;return void 0===e&&(e=!0),Vi(this,function(r){if(t=this.element,n=this.attributes().type,"radio"===n&&!e)throw Error('wrapper.setChecked() cannot be called with parameter false on a \'<input type="radio" /> element.');return e===t.checked?[2]:(t.checked=e,this.trigger("input"),[2,this.trigger("change")])})})},t.prototype.setValue=function(e){var t=this.element,n=t.tagName,r=this.attributes().type;if("OPTION"===n)return this.setSelected(),Promise.resolve();if("INPUT"===n&&"checkbox"===r)return this.setChecked(e);if("INPUT"===n&&"radio"===r)return this.setChecked(e);if("SELECT"===n){if(Array.isArray(e))for(var i=t,a=0;a<i.options.length;a++){var o=i.options[a];o.selected=e.includes(o.value)}else t.value=e;return this.trigger("input"),this.trigger("change")}if("INPUT"===n||"TEXTAREA"===n)return t.value=e,this.trigger("input"),this.trigger("change");throw Error("wrapper.setValue() cannot be called on ".concat(n))},t.prototype.setSelected=function(){var e=this.element;if(!e.selected){e.selected=!0;var n=e.parentElement;"OPTGROUP"===n.tagName&&(n=n.parentElement);var r=new t(n);return r.trigger("input"),r.trigger("change")}},t}(Es);function ks(e){if(1&e.shapeFlag)return[e.el];if(6&e.shapeFlag){var t=e.component.subTree;return ks(t)}if(128&e.shapeFlag)return ks(e.suspense.activeBranch);if(72&e.shapeFlag){var n=[e.el];if(e.anchor){var r=n[0].nextSibling;while(r&&r.previousSibling!==e.anchor)n.push(r),r=r.nextSibling}return n}if(16&e.shapeFlag){var i=e.children.flat();return i.flatMap(function(e){return ks(e)}).filter(ia)}return[]}Ja(Ba.DOMWrapper,function(e){return new Ss(e)});var xs={};function As(e,t){var n=e.$.uid,r=xs[n]||{};return t?r?r[t]:void 0:r}var Cs=function(){var e=pa();if(e.__VUE_DEVTOOLS_GLOBAL_HOOK__){var t=e.__VUE_DEVTOOLS_GLOBAL_HOOK__.emit;e.__VUE_DEVTOOLS_GLOBAL_HOOK__.emit=function(n){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];t.call.apply(t,Ki([e.__VUE_DEVTOOLS_GLOBAL_HOOK__,n],r,!1)),Ts(n,r)}}else(0,r.setDevtoolsHook)(Ns(),{})};function Ts(e,t){if("component:emit"===e){t[0];var n=t[1],r=t[2],i=t[3];Rs(n,r,i)}}function Ns(){return{emit:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];Ts(e,t)}}}var Rs=function(e,t,n){var r=e;while("function"===typeof(null===r||void 0===r?void 0:r.type))r=r.parent;var i=r.uid;i in xs||(xs[i]={}),t in xs[i]||(xs[i][t]=[]),xs[i][t].push(n)},Os=function(e){var t=e.$.uid;delete xs[t]};function Is(e,t){return new Proxy(e,{get:function(e,n,r){return e.$.exposed&&e.$.exposeProxy&&n in e.$.exposeProxy?Reflect.get(e.$.exposeProxy,n,r):n in t?Reflect.get(t,n,r):n in e.$.appContext.config.globalProperties?Reflect.get(e.$.appContext.config.globalProperties,n,r):e.$.ctx[n]},set:function(e,n,r,i){return n in t?Reflect.set(t,n,r,i):Reflect.set(e,n,r,i)},has:function(e,n){return Reflect.has(t,n)||Reflect.has(e,n)},defineProperty:function(e,n,r){return n in t?Reflect.defineProperty(t,n,r):Reflect.defineProperty(e,n,r)},getOwnPropertyDescriptor:function(e,n){return n in t?Reflect.getOwnPropertyDescriptor(t,n):Reflect.getOwnPropertyDescriptor(e,n)},deleteProperty:function(e,n){return n in t?Reflect.deleteProperty(t,n):Reflect.deleteProperty(e,n)}})}var Ls=function(e){function t(t,n,r){var i=e.call(this,null===n||void 0===n?void 0:n.$el)||this;return i.cleanUpCallbacks=[],i.__app=t,i.rootVM=null===n||void 0===n?void 0:n.$root,da(n)?i.componentVM=Is(n,n.$.setupState):i.componentVM=n,i.__setProps=r,i.attachNativeEventListener(),Hi.plugins.VueWrapper.extend(i),i}return $i(t,e),Object.defineProperty(t.prototype,"hasMultipleRoots",{get:function(){var e=function(t){var n;if(16===t.shapeFlag)return!0;if(4&t.shapeFlag||2&t.shapeFlag){if(null===(n=t.component)||void 0===n?void 0:n.subTree)return e(t.component.subTree);if(16&t.shapeFlag)return!0}return!1};return e(this.vm.$.subTree)},enumerable:!1,configurable:!0}),t.prototype.getRootNodes=function(){return ks(this.vm.$.vnode)},Object.defineProperty(t.prototype,"parentElement",{get:function(){return this.vm.$el.parentElement},enumerable:!1,configurable:!0}),t.prototype.getCurrentComponent=function(){return this.vm.$},t.prototype.exists=function(){return!this.getCurrentComponent().isUnmounted},t.prototype.findAll=function(e){return this.findAllDOMElements(e).map(Za)},t.prototype.attachNativeEventListener=function(){var e=this.vm;if(e){var t=e.$options.emits?Array.isArray(e.$options.emits)?e.$options.emits:Object.keys(e.$options.emits):[],n=this.getRootNodes().filter(function(e){return e instanceof Element});if(1===n.length)for(var r=n[0],i=function(n){if(t.includes(n))return"continue";var i=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];Rs(e.$,n,t)};r.addEventListener(n,i),a.cleanUpCallbacks.push(function(){r.removeEventListener(n,i)})},a=this,o=0,s=Object.keys(ba);o<s.length;o++){var l=s[o];i(l)}}},Object.defineProperty(t.prototype,"element",{get:function(){return this.hasMultipleRoots?this.parentElement:this.vm.$el},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"vm",{get:function(){return this.componentVM},enumerable:!1,configurable:!0}),t.prototype.props=function(e){var t=this.componentVM.$props;return e?t[e]:t},t.prototype.emitted=function(e){return As(this.vm,e)},t.prototype.isVisible=function(){var e=Za(this.element);return e.isVisible()},t.prototype.setData=function(e){return Qi(this.componentVM.$data,e),(0,r.nextTick)()},t.prototype.setProps=function(e){if(this.vm.$parent!==this.rootVM||!this.__setProps)throw Error("You can only use setProps on your mounted component");return this.__setProps(e),(0,r.nextTick)()},t.prototype.setValue=function(e,t){var n=t||"modelValue";return this.vm.$emit("update:".concat(n),e),this.vm.$nextTick()},t.prototype.unmount=function(){if(!this.__app)throw new Error("wrapper.unmount() can only be called by the root wrapper");Os(this.vm),this.cleanUpCallbacks.forEach(function(e){return e()}),this.cleanUpCallbacks=[],this.__app.unmount()},t}(Es);function Ds(e,t){void 0===e&&(e=""),void 0===t&&(t=i);var n=e.trim(),r=n&&n.startsWith("<template");r||(n='<template #default="params">'.concat(n,"</template>"));var a=Ai("<transition>".concat(n,"</transition>"),{mode:"function",prefixIdentifiers:!1}).code,o=new Function("Vue",a),s=o(t);return function(e){void 0===e&&(e={});var t=s(e),n=Object.keys(t.children)[0];return t.children[n](e)}}Ja(Ba.VueWrapper,function(e,t,n){return new Ls(e,t,n)});var Ps=function(e){return e.__isTeleport},Ms=function(e){return e.__isKeepAlive},Bs=function(e,t,n){return!!(!n||e.component===t&&!(null===n||void 0===n?void 0:n.parent)||e.functional&&e.functional===t)},Fs=function(e){var t=e.rootComponents,n=e.transformers,r=new WeakMap;return function(e,i){var a=e[0],o=e[1],s=e[2],l=e.slice(3);if(!Zi(a))return Ki([a,o,s],l,!0);var c=a,u=r.get(a);if(u&&!Bs(t,c,i)&&!Ps(a)&&!Ms(a))return Ki([u,o,s],l,!0);var d=n.reduce(function(e,t){return t(e,i)},c);return a!==d&&(r.set(a,d),ka({source:a,stub:d}),Ps(a)||Ms(a))?Ki([d,o,function(){return s}],l,!0):Ki([d,o,s],l,!0)}},$s=function(e){var t=e;return Object.keys(t).reduce(function(e,n){var r,i,a,o;return"symbol"===typeof t[n]?Ui(Ui({},e),(r={},r[n]=[null===(o=t[n])||void 0===o?void 0:o.toString()],r)):"function"===typeof t[n]?Ui(Ui({},e),(i={},i[n]=["[Function]"],i)):Ui(Ui({},e),(a={},a[n]=t[n],a))},{})},Us=function(e){return e.replace(/-/,"").toUpperCase()},js=function(e){return e.replace(/(^\w|-\w)/g,Us)},Vs={teleport:Ps,"keep-alive":Ms,transition:function(e){return e===r.Transition||e===r.BaseTransition},"transition-group":function(e){return e===r.TransitionGroup}},Ks=function(e,t,n,r){var i=js(e);if(t(n)&&(i in r||e in r)){if(e in r&&!1===r[e])return n;if(i in r&&!1===r[i])return n;if(!0===r[e]||!0===r[i])return Gs({name:e,type:n,renderStubDefaultSlot:!0})}},Gs=function(e){var t=e.name,n=e.type,i=e.renderStubDefaultSlot,a="anonymous-stub",o=t?"".concat(Oa(t),"-stub"):a,s=n&&Pa(n)||{},l=(0,r.defineComponent)({name:t||a,props:s.props||{},model:s.model,setup:function(e,t){var n=t.slots;return function(){var t=$s(e);return i&&n.default?(0,r.h)(o,t,n.default({})):(0,r.h)(o,t)}}}),c=n.__asyncLoader;return c&&c().then(function(){ka({source:n.__asyncResolved,stub:l})}),l},Hs=function(e,t){for(var n=0,r=Object.entries(t);n<r.length;n++){var i=r[n],a=i[0],o=i[1];if(Ia(e,a))return o}};function zs(e){var t=e.rootComponents,n=e.stubs,r=void 0===n?{}:n,i=e.shallow,a=void 0!==i&&i,o=e.renderStubDefaultSlot,s=void 0!==o&&o;return function(e,n){var i,o,l;for(var c in Vs){var u=Vs[c],d=Ks(c,u,e,r);if(d)return d}if(Bs(t,e,n))return e;var h=$a(n,e),p=Ua(n,e),f=null,m=null;if(h&&(f=Hs(h,r),f&&(m=h)),!f&&p&&(f=Hs(p,r),f&&(m=p)),Zi(f)){var g=Pa(f),v=ea(g)?g:null;ka({source:e,stub:f});var b=v?function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return v.apply(void 0,e)}:Ui({},g);return b.props=g.props,b}if(!1===f)return e;if(!0===f||a){var y=m||h||p;return null!==(l=null===(o=(i=Hi.plugins).createStubs)||void 0===o?void 0:o.call(i,{name:y,component:e,registerStub:ka}))&&void 0!==l?l:Gs({name:y,type:e,renderStubDefaultSlot:s})}return e}}var qs=function(){};function Xs(e){var t=e.directives,n=void 0===t?{}:t;return 0===Object.keys(n).length?function(e){return e}:function(e){if(ta(e)&&e.directives){var t=Object.keys(e.directives).filter(function(e){return e in n});if(!t.length)return e;var r=Object.fromEntries(t.map(function(e){var t=n[e];return[e,"boolean"===typeof t?qs:t]}));return Ui(Ui({},e),{directives:Ui(Ui({},e.directives),r)})}return e}}var Ws=function(e,t){return!!(0,r.isRef)(e)||!!Wi(e)&&(!t.has(e)&&(t.set(e,!0),Object.values(e).some(function(e){return Ws(e,t)})))},Ys=function(e){var t=new WeakMap;return Ws(e,t)},Qs=["attachTo","attrs","data","props","slots","global","shallow"];function Js(e){e.methods&&(Bi.warn("Passing a `methods` option to mount was deprecated on Vue Test Utils v1, and it won't have any effect on v2. For additional info: https://vue-test-utils.vuejs.org/upgrading-to-v1/#setmethods-and-mountingoptions-methods"),delete e.methods);for(var t=Ui({},e),n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];Qs.includes(i)&&delete t[i]}return t}function Zs(e,t){var n,i=Pa(e),a=Js(null!==t&&void 0!==t?t:{}),o={};function s(e){switch(typeof e){case"function":return e;case"object":return function(){return(0,r.h)(e)};case"string":return Ds(e);default:throw Error("Invalid slot received.")}}ea(i)||Ma(i)?(n=(0,r.defineComponent)(Ui({compatConfig:{MODE:3,INSTANCE_LISTENERS:!1,INSTANCE_ATTRS_CLASS_STYLE:!1,COMPONENT_FUNCTIONAL:!!Ma(i)&&"suppress-warning"},props:i.props||{},setup:function(e,t){var n=t.attrs,a=t.slots;return function(){return(0,r.h)(i,Ui(Ui({},e),n),a)}}},a)),o.functional=i):n=ta(i)?Ui(Ui({},i),a):i,o.component=n,ka({source:i,stub:n});var l=(null===t||void 0===t?void 0:t.slots)&&Object.entries(t.slots).reduce(function(e,t){var n=t[0],r=t[1];if(Array.isArray(r)){var i=r.map(s);return e[n]=function(e){return i.map(function(t){return t(e)})},e}return e[n]=s(r),e},{});if(null===t||void 0===t?void 0:t.data){var c=t.data();if(!ta(i))throw new Error("data() option is not supported on functional and class components");var u=n,d=i.data||function(){return{}};u.data=function(e){return Ui(Ui({},d.call(e,e)),c)}}var h="VTU_COMPONENT",p=(0,r.shallowReactive)({}),f=(0,r.reactive)({});Object.entries(Ui(Ui(Ui(Ui({},null===t||void 0===t?void 0:t.attrs),null===t||void 0===t?void 0:t.propsData),null===t||void 0===t?void 0:t.props),{ref:h})).forEach(function(e){var t=e[0],n=e[1];Ys(n)?p[t]=n:f[t]=n});var m=Xi(null===t||void 0===t?void 0:t.global);ta(n)&&(n.components=Ui(Ui({},n.components),m.components));var g=(0,r.ref)(null),v=(0,r.defineComponent)({name:"VTU_ROOT",setup:function(){var e;return e={},e[h]=g,e},render:function(){return(0,r.h)(n,Ui(Ui({},f),p),l)}}),b=(0,r.createApp)(v);if(Cs(),null===m||void 0===m?void 0:m.mocks){var y={beforeCreate:function(){if(ha(this)){for(var e=0,t=Object.entries(m.mocks);e<t.length;e++){var n=t[e],r=n[0],i=n[1];try{this.$.setupState[r]=i}catch(l){}}this.$.proxy=new Proxy(this.$.proxy,{get:function(e,t){return t in m.mocks?m.mocks[t]:e[t]}})}else for(var a=0,o=Object.entries(m.mocks);a<o.length;a++){var s=o[a];r=s[0],i=s[1];this[r]=i}}};b.mixin(y)}if(m.config)for(var _=0,w=Object.entries(m.config);_<w.length;_++){var E=w[_],S=E[0],k=E[1];b.config[S]=Wi(b.config[S])?Object.assign(b.config[S],k):k}if(m.provide)for(var x=0,A=Reflect.ownKeys(m.provide);x<A.length;x++){var C=A[x];b.provide(C,m.provide[C])}if(m.plugins)for(var T=0,N=m.plugins;T<N.length;T++){var R=N[T];Array.isArray(R)?b.use.apply(b,Ki([R[0]],R.slice(1),!1)):b.use(R)}if(m.mixins)for(var O=0,I=m.mixins;O<I.length;O++){y=I[O];b.mixin(y)}if(m.components)for(var L=0,D=Object.keys(m.components);L<D.length;L++){C=D[L];C in m.stubs||b.component(C,m.components[C])}if(m.directives)for(var P=0,M=Object.keys(m.directives);P<M.length;P++){C=M[P];b.directive(C,m.directives[C])}if((0,r.transformVNodeArgs)(Fs({rootComponents:o,transformers:[zs({rootComponents:o,stubs:ca(m.stubs),shallow:null===t||void 0===t?void 0:t.shallow,renderStubDefaultSlot:m.renderStubDefaultSlot}),Xs({directives:ua(m.stubs)})]})),null===m||void 0===m?void 0:m.stubs)for(var B=0,F=Object.keys(ca(m.stubs));B<F.length;B++){var $=F[B];b.component($)||b.component($,{name:$})}return{app:b,props:f,componentRef:g}}var el=!1,tl=[];function nl(e){el&&tl.push(e)}function rl(e,t){var n=Zs(e,t),r=n.app,i=n.props,a=n.componentRef,o=function(e){for(var t=0,n=Object.entries(e);t<n.length;t++){var r=n[t],a=r[0],o=r[1];i[a]=o}return d.$nextTick()},s=r.config.errorHandler,l=[];r.config.errorHandler=function(e,t,n){return l.push(e),null===s||void 0===s?void 0:s(e,t,n)};var c=document.createElement("div");if(null===t||void 0===t?void 0:t.attachTo){var u=void 0;if("string"===typeof t.attachTo){if(u=document.querySelector(t.attachTo),!u)throw new Error("Unable to find the element matching the selector ".concat(t.attachTo," given as the `attachTo` option"))}else u=t.attachTo;u.appendChild(c)}var d=r.mount(c);if(l.length)throw l[0];r.config.errorHandler=s;var h=a.value;r.hasOwnProperty||(h.hasOwnProperty=function(e){return Reflect.has(h,e)});var p=eo(r,h,o);return nl(p),p}var il=function(e,t){return rl(e,Ui(Ui({},t),{shallow:!0}))};var al={path:"/",name:void 0,redirectedFrom:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},href:"/"};(0,r.defineComponent)({name:"RouterLinkStub",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},custom:{type:Boolean,default:!1}},render:function(){var e,t,n=this,i=(0,r.computed)(function(){return al}),a=null===(t=null===(e=this.$slots)||void 0===e?void 0:e.default)||void 0===t?void 0:t.call(e,{route:i,href:(0,r.computed)(function(){return i.value.href}),isActive:(0,r.computed)(function(){return!1}),isExactActive:(0,r.computed)(function(){return!1}),navigate:function(){return ji(n,void 0,void 0,function(){return Vi(this,function(e){return[2]})})}});return this.custom?a:(0,r.h)("a",void 0,a)}}),"function"===typeof setImmediate?setImmediate:setTimeout},97519:function(e,t,n){"use strict";n.d(t,{A:function(){return se}});var r=n(4364);
|
||
/*! @license DOMPurify 3.2.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.5/LICENSE */const{entries:i,setPrototypeOf:a,isFrozen:o,getPrototypeOf:s,getOwnPropertyDescriptor:l}=Object;let{freeze:c,seal:u,create:d}=Object,{apply:h,construct:p}="undefined"!==typeof Reflect&&Reflect;c||(c=function(e){return e}),u||(u=function(e){return e}),h||(h=function(e,t,n){return e.apply(t,n)}),p||(p=function(e,t){return new e(...t)});const f=T(Array.prototype.forEach),m=T(Array.prototype.lastIndexOf),g=T(Array.prototype.pop),v=T(Array.prototype.push),b=T(Array.prototype.splice),y=T(String.prototype.toLowerCase),_=T(String.prototype.toString),w=T(String.prototype.match),E=T(String.prototype.replace),S=T(String.prototype.indexOf),k=T(String.prototype.trim),x=T(Object.prototype.hasOwnProperty),A=T(RegExp.prototype.test),C=N(TypeError);function T(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return h(e,t,r)}}function N(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return p(e,n)}}function R(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y;a&&a(e,null);let r=t.length;while(r--){let i=t[r];if("string"===typeof i){const e=n(i);e!==i&&(o(t)||(t[r]=e),i=e)}e[i]=!0}return e}function O(e){for(let t=0;t<e.length;t++){const n=x(e,t);n||(e[t]=null)}return e}function I(e){const t=d(null);for(const[n,r]of i(e)){const i=x(e,n);i&&(Array.isArray(r)?t[n]=O(r):r&&"object"===typeof r&&r.constructor===Object?t[n]=I(r):t[n]=r)}return t}function L(e,t){while(null!==e){const n=l(e,t);if(n){if(n.get)return T(n.get);if("function"===typeof n.value)return T(n.value)}e=s(e)}function n(){return null}return n}const D=c(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),P=c(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),M=c(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),B=c(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),F=c(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),$=c(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),U=c(["#text"]),j=c(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),V=c(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),K=c(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),G=c(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),H=u(/\{\{[\w\W]*|[\w\W]*\}\}/gm),z=u(/<%[\w\W]*|[\w\W]*%>/gm),q=u(/\$\{[\w\W]*/gm),X=u(/^data-[\-\w.\u00B7-\uFFFF]+$/),W=u(/^aria-[\-\w]+$/),Y=u(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Q=u(/^(?:\w+script|data):/i),J=u(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Z=u(/^html$/i),ee=u(/^[a-z][.\w]*(-[.\w]+)+$/i);var te=Object.freeze({__proto__:null,ARIA_ATTR:W,ATTR_WHITESPACE:J,CUSTOM_ELEMENT:ee,DATA_ATTR:X,DOCTYPE_NAME:Z,ERB_EXPR:z,IS_ALLOWED_URI:Y,IS_SCRIPT_OR_DATA:Q,MUSTACHE_EXPR:H,TMPLIT_EXPR:q});const ne={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},re=function(){return"undefined"===typeof window?null:window},ie=function(e,t){if("object"!==typeof e||"function"!==typeof e.createPolicy)return null;let n=null;const i="data-tt-policy-suffix";t&&t.hasAttribute(i)&&(n=t.getAttribute(i));const a="dompurify"+(n?"#"+n:"");try{return e.createPolicy(a,{createHTML(e){return e},createScriptURL(e){return e}})}catch(o){return r.warn("TrustedTypes policy "+a+" could not be created."),null}},ae=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function oe(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:re();const t=e=>oe(e);if(t.version="3.2.5",t.removed=[],!e||!e.document||e.document.nodeType!==ne.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const r=n,a=r.currentScript,{DocumentFragment:o,HTMLTemplateElement:s,Node:l,Element:u,NodeFilter:h,NamedNodeMap:p=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:T,DOMParser:N,trustedTypes:O}=e,H=u.prototype,z=L(H,"cloneNode"),q=L(H,"remove"),X=L(H,"nextSibling"),W=L(H,"childNodes"),Q=L(H,"parentNode");if("function"===typeof s){const e=n.createElement("template");e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let J,ee="";const{implementation:se,createNodeIterator:le,createDocumentFragment:ce,getElementsByTagName:ue}=n,{importNode:de}=r;let he=ae();t.isSupported="function"===typeof i&&"function"===typeof Q&&se&&void 0!==se.createHTMLDocument;const{MUSTACHE_EXPR:pe,ERB_EXPR:fe,TMPLIT_EXPR:me,DATA_ATTR:ge,ARIA_ATTR:ve,IS_SCRIPT_OR_DATA:be,ATTR_WHITESPACE:ye,CUSTOM_ELEMENT:_e}=te;let{IS_ALLOWED_URI:we}=te,Ee=null;const Se=R({},[...D,...P,...M,...F,...U]);let ke=null;const xe=R({},[...j,...V,...K,...G]);let Ae=Object.seal(d(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ce=null,Te=null,Ne=!0,Re=!0,Oe=!1,Ie=!0,Le=!1,De=!0,Pe=!1,Me=!1,Be=!1,Fe=!1,$e=!1,Ue=!1,je=!0,Ve=!1;const Ke="user-content-";let Ge=!0,He=!1,ze={},qe=null;const Xe=R({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let We=null;const Ye=R({},["audio","video","img","source","image","track"]);let Qe=null;const Je=R({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ze="http://www.w3.org/1998/Math/MathML",et="http://www.w3.org/2000/svg",tt="http://www.w3.org/1999/xhtml";let nt=tt,rt=!1,it=null;const at=R({},[Ze,et,tt],_);let ot=R({},["mi","mo","mn","ms","mtext"]),st=R({},["annotation-xml"]);const lt=R({},["title","style","font","a","script"]);let ct=null;const ut=["application/xhtml+xml","text/html"],dt="text/html";let ht=null,pt=null;const ft=n.createElement("form"),mt=function(e){return e instanceof RegExp||e instanceof Function},gt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!pt||pt!==e){if(e&&"object"===typeof e||(e={}),e=I(e),ct=-1===ut.indexOf(e.PARSER_MEDIA_TYPE)?dt:e.PARSER_MEDIA_TYPE,ht="application/xhtml+xml"===ct?_:y,Ee=x(e,"ALLOWED_TAGS")?R({},e.ALLOWED_TAGS,ht):Se,ke=x(e,"ALLOWED_ATTR")?R({},e.ALLOWED_ATTR,ht):xe,it=x(e,"ALLOWED_NAMESPACES")?R({},e.ALLOWED_NAMESPACES,_):at,Qe=x(e,"ADD_URI_SAFE_ATTR")?R(I(Je),e.ADD_URI_SAFE_ATTR,ht):Je,We=x(e,"ADD_DATA_URI_TAGS")?R(I(Ye),e.ADD_DATA_URI_TAGS,ht):Ye,qe=x(e,"FORBID_CONTENTS")?R({},e.FORBID_CONTENTS,ht):Xe,Ce=x(e,"FORBID_TAGS")?R({},e.FORBID_TAGS,ht):{},Te=x(e,"FORBID_ATTR")?R({},e.FORBID_ATTR,ht):{},ze=!!x(e,"USE_PROFILES")&&e.USE_PROFILES,Ne=!1!==e.ALLOW_ARIA_ATTR,Re=!1!==e.ALLOW_DATA_ATTR,Oe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ie=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Le=e.SAFE_FOR_TEMPLATES||!1,De=!1!==e.SAFE_FOR_XML,Pe=e.WHOLE_DOCUMENT||!1,Fe=e.RETURN_DOM||!1,$e=e.RETURN_DOM_FRAGMENT||!1,Ue=e.RETURN_TRUSTED_TYPE||!1,Be=e.FORCE_BODY||!1,je=!1!==e.SANITIZE_DOM,Ve=e.SANITIZE_NAMED_PROPS||!1,Ge=!1!==e.KEEP_CONTENT,He=e.IN_PLACE||!1,we=e.ALLOWED_URI_REGEXP||Y,nt=e.NAMESPACE||tt,ot=e.MATHML_TEXT_INTEGRATION_POINTS||ot,st=e.HTML_INTEGRATION_POINTS||st,Ae=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&mt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ae.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&mt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ae.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"===typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ae.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Le&&(Re=!1),$e&&(Fe=!0),ze&&(Ee=R({},U),ke=[],!0===ze.html&&(R(Ee,D),R(ke,j)),!0===ze.svg&&(R(Ee,P),R(ke,V),R(ke,G)),!0===ze.svgFilters&&(R(Ee,M),R(ke,V),R(ke,G)),!0===ze.mathMl&&(R(Ee,F),R(ke,K),R(ke,G))),e.ADD_TAGS&&(Ee===Se&&(Ee=I(Ee)),R(Ee,e.ADD_TAGS,ht)),e.ADD_ATTR&&(ke===xe&&(ke=I(ke)),R(ke,e.ADD_ATTR,ht)),e.ADD_URI_SAFE_ATTR&&R(Qe,e.ADD_URI_SAFE_ATTR,ht),e.FORBID_CONTENTS&&(qe===Xe&&(qe=I(qe)),R(qe,e.FORBID_CONTENTS,ht)),Ge&&(Ee["#text"]=!0),Pe&&R(Ee,["html","head","body"]),Ee.table&&(R(Ee,["tbody"]),delete Ce.tbody),e.TRUSTED_TYPES_POLICY){if("function"!==typeof e.TRUSTED_TYPES_POLICY.createHTML)throw C('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!==typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw C('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');J=e.TRUSTED_TYPES_POLICY,ee=J.createHTML("")}else void 0===J&&(J=ie(O,a)),null!==J&&"string"===typeof ee&&(ee=J.createHTML(""));c&&c(e),pt=e}},vt=R({},[...P,...M,...B]),bt=R({},[...F,...$]),yt=function(e){let t=Q(e);t&&t.tagName||(t={namespaceURI:nt,tagName:"template"});const n=y(e.tagName),r=y(t.tagName);return!!it[e.namespaceURI]&&(e.namespaceURI===et?t.namespaceURI===tt?"svg"===n:t.namespaceURI===Ze?"svg"===n&&("annotation-xml"===r||ot[r]):Boolean(vt[n]):e.namespaceURI===Ze?t.namespaceURI===tt?"math"===n:t.namespaceURI===et?"math"===n&&st[r]:Boolean(bt[n]):e.namespaceURI===tt?!(t.namespaceURI===et&&!st[r])&&(!(t.namespaceURI===Ze&&!ot[r])&&(!bt[n]&&(lt[n]||!vt[n]))):!("application/xhtml+xml"!==ct||!it[e.namespaceURI]))},_t=function(e){v(t.removed,{element:e});try{Q(e).removeChild(e)}catch(n){q(e)}},wt=function(e,n){try{v(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch(r){v(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),"is"===e)if(Fe||$e)try{_t(n)}catch(r){}else try{n.setAttribute(e,"")}catch(r){}},Et=function(e){let t=null,r=null;if(Be)e="<remove></remove>"+e;else{const t=w(e,/^[\r\n\t ]+/);r=t&&t[0]}"application/xhtml+xml"===ct&&nt===tt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const i=J?J.createHTML(e):e;if(nt===tt)try{t=(new N).parseFromString(i,ct)}catch(o){}if(!t||!t.documentElement){t=se.createDocument(nt,"template",null);try{t.documentElement.innerHTML=rt?ee:i}catch(o){}}const a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),nt===tt?ue.call(t,Pe?"html":"body")[0]:Pe?t.documentElement:a},St=function(e){return le.call(e.ownerDocument||e,e,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},kt=function(e){return e instanceof T&&("string"!==typeof e.nodeName||"string"!==typeof e.textContent||"function"!==typeof e.removeChild||!(e.attributes instanceof p)||"function"!==typeof e.removeAttribute||"function"!==typeof e.setAttribute||"string"!==typeof e.namespaceURI||"function"!==typeof e.insertBefore||"function"!==typeof e.hasChildNodes)},xt=function(e){return"function"===typeof l&&e instanceof l};function At(e,n,r){f(e,e=>{e.call(t,n,r,pt)})}const Ct=function(e){let n=null;if(At(he.beforeSanitizeElements,e,null),kt(e))return _t(e),!0;const r=ht(e.nodeName);if(At(he.uponSanitizeElement,e,{tagName:r,allowedTags:Ee}),e.hasChildNodes()&&!xt(e.firstElementChild)&&A(/<[/\w!]/g,e.innerHTML)&&A(/<[/\w!]/g,e.textContent))return _t(e),!0;if(e.nodeType===ne.progressingInstruction)return _t(e),!0;if(De&&e.nodeType===ne.comment&&A(/<[/\w]/g,e.data))return _t(e),!0;if(!Ee[r]||Ce[r]){if(!Ce[r]&&Nt(r)){if(Ae.tagNameCheck instanceof RegExp&&A(Ae.tagNameCheck,r))return!1;if(Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(r))return!1}if(Ge&&!qe[r]){const t=Q(e)||e.parentNode,n=W(e)||e.childNodes;if(n&&t){const r=n.length;for(let i=r-1;i>=0;--i){const r=z(n[i],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,X(e))}}}return _t(e),!0}return e instanceof u&&!yt(e)?(_t(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!A(/<\/no(script|embed|frames)/i,e.innerHTML)?(Le&&e.nodeType===ne.text&&(n=e.textContent,f([pe,fe,me],e=>{n=E(n,e," ")}),e.textContent!==n&&(v(t.removed,{element:e.cloneNode()}),e.textContent=n)),At(he.afterSanitizeElements,e,null),!1):(_t(e),!0)},Tt=function(e,t,r){if(je&&("id"===t||"name"===t)&&(r in n||r in ft))return!1;if(Re&&!Te[t]&&A(ge,t));else if(Ne&&A(ve,t));else if(!ke[t]||Te[t]){if(!(Nt(e)&&(Ae.tagNameCheck instanceof RegExp&&A(Ae.tagNameCheck,e)||Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(e))&&(Ae.attributeNameCheck instanceof RegExp&&A(Ae.attributeNameCheck,t)||Ae.attributeNameCheck instanceof Function&&Ae.attributeNameCheck(t))||"is"===t&&Ae.allowCustomizedBuiltInElements&&(Ae.tagNameCheck instanceof RegExp&&A(Ae.tagNameCheck,r)||Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(r))))return!1}else if(Qe[t]);else if(A(we,E(r,ye,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==S(r,"data:")||!We[e]){if(Oe&&!A(be,E(r,ye,"")));else if(r)return!1}else;return!0},Nt=function(e){return"annotation-xml"!==e&&w(e,_e)},Rt=function(e){At(he.beforeSanitizeAttributes,e,null);const{attributes:n}=e;if(!n||kt(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ke,forceKeepAttr:void 0};let i=n.length;while(i--){const o=n[i],{name:s,namespaceURI:l,value:c}=o,u=ht(s);let d="value"===s?c:k(c);if(r.attrName=u,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,At(he.uponSanitizeAttribute,e,r),d=r.attrValue,!Ve||"id"!==u&&"name"!==u||(wt(s,e),d=Ke+d),De&&A(/((--!?|])>)|<\/(style|title)/i,d)){wt(s,e);continue}if(r.forceKeepAttr)continue;if(wt(s,e),!r.keepAttr)continue;if(!Ie&&A(/\/>/i,d)){wt(s,e);continue}Le&&f([pe,fe,me],e=>{d=E(d,e," ")});const h=ht(e.nodeName);if(Tt(h,u,d)){if(J&&"object"===typeof O&&"function"===typeof O.getAttributeType)if(l);else switch(O.getAttributeType(h,u)){case"TrustedHTML":d=J.createHTML(d);break;case"TrustedScriptURL":d=J.createScriptURL(d);break}try{l?e.setAttributeNS(l,s,d):e.setAttribute(s,d),kt(e)?_t(e):g(t.removed)}catch(a){}}}At(he.afterSanitizeAttributes,e,null)},Ot=function e(t){let n=null;const r=St(t);At(he.beforeSanitizeShadowDOM,t,null);while(n=r.nextNode())At(he.uponSanitizeShadowNode,n,null),Ct(n),Rt(n),n.content instanceof o&&e(n.content);At(he.afterSanitizeShadowDOM,t,null)};return t.sanitize=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,a=null,s=null,c=null;if(rt=!e,rt&&(e="\x3c!--\x3e"),"string"!==typeof e&&!xt(e)){if("function"!==typeof e.toString)throw C("toString is not a function");if(e=e.toString(),"string"!==typeof e)throw C("dirty is not a string, aborting")}if(!t.isSupported)return e;if(Me||gt(n),t.removed=[],"string"===typeof e&&(He=!1),He){if(e.nodeName){const t=ht(e.nodeName);if(!Ee[t]||Ce[t])throw C("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)i=Et("\x3c!----\x3e"),a=i.ownerDocument.importNode(e,!0),a.nodeType===ne.element&&"BODY"===a.nodeName||"HTML"===a.nodeName?i=a:i.appendChild(a);else{if(!Fe&&!Le&&!Pe&&-1===e.indexOf("<"))return J&&Ue?J.createHTML(e):e;if(i=Et(e),!i)return Fe?null:Ue?ee:""}i&&Be&&_t(i.firstChild);const u=St(He?e:i);while(s=u.nextNode())Ct(s),Rt(s),s.content instanceof o&&Ot(s.content);if(He)return e;if(Fe){if($e){c=ce.call(i.ownerDocument);while(i.firstChild)c.appendChild(i.firstChild)}else c=i;return(ke.shadowroot||ke.shadowrootmode)&&(c=de.call(r,c,!0)),c}let d=Pe?i.outerHTML:i.innerHTML;return Pe&&Ee["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&A(Z,i.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+d),Le&&f([pe,fe,me],e=>{d=E(d,e," ")}),J&&Ue?J.createHTML(d):d},t.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};gt(e),Me=!0},t.clearConfig=function(){pt=null,Me=!1},t.isValidAttribute=function(e,t,n){pt||gt({});const r=ht(e),i=ht(t);return Tt(r,i,n)},t.addHook=function(e,t){"function"===typeof t&&v(he[e],t)},t.removeHook=function(e,t){if(void 0!==t){const n=m(he[e],t);return-1===n?void 0:b(he[e],n,1)[0]}return g(he[e])},t.removeHooks=function(e){he[e]=[]},t.removeAllHooks=function(){he=ae()},t}var se=oe()},68974:function(e,t,n){"use strict";n.d(t,{Wk:function(){return y},lq:function(){return x},rd:function(){return k}});var r=n(9274);n(4364);Object.assign;const i=()=>{},a=Array.isArray;function o(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function s(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!l(e[n],t[n]))return!1;return!0}function l(e,t){return a(e)?c(e,t):a(t)?c(t,e):e?.valueOf()===t?.valueOf()}function c(e,t){return a(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):1===e.length&&e[0]===t}let u=function(e){return e[e["MATCHER_NOT_FOUND"]=1]="MATCHER_NOT_FOUND",e[e["NAVIGATION_GUARD_REDIRECT"]=2]="NAVIGATION_GUARD_REDIRECT",e[e["NAVIGATION_ABORTED"]=4]="NAVIGATION_ABORTED",e[e["NAVIGATION_CANCELLED"]=8]="NAVIGATION_CANCELLED",e[e["NAVIGATION_DUPLICATED"]=16]="NAVIGATION_DUPLICATED",e}({});Symbol("");u.MATCHER_NOT_FOUND,u.NAVIGATION_GUARD_REDIRECT,u.NAVIGATION_ABORTED,u.NAVIGATION_CANCELLED,u.NAVIGATION_DUPLICATED;const d=["params","query","hash"];function h(e){if("string"===typeof e)return e;if(null!=e.path)return e.path;const t={};for(const n of d)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}Symbol(""),Symbol("");const p=Symbol(""),f=Symbol("");Symbol("");n(4364);let m=function(e){return e[e["Static"]=0]="Static",e[e["Param"]=1]="Param",e[e["Group"]=2]="Group",e}({});m.Static;function g(e){const t=(0,r.inject)(p),n=(0,r.inject)(f);const a=(0,r.computed)(()=>{const n=(0,r.unref)(e.to);return t.resolve(n)}),l=(0,r.computed)(()=>{const{matched:e}=a.value,{length:t}=e,r=e[t-1],i=n.matched;if(!r||!i.length)return-1;const s=i.findIndex(o.bind(null,r));if(s>-1)return s;const l=E(e[t-2]);return t>1&&E(r)===l&&i[i.length-1].path!==l?i.findIndex(o.bind(null,e[t-2])):s}),c=(0,r.computed)(()=>l.value>-1&&w(n.params,a.value.params)),u=(0,r.computed)(()=>l.value>-1&&l.value===n.matched.length-1&&s(n.params,a.value.params));function d(n={}){if(_(n)){const n=t[(0,r.unref)(e.replace)?"replace":"push"]((0,r.unref)(e.to)).catch(i);return e.viewTransition&&"undefined"!==typeof document&&"startViewTransition"in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:a,href:(0,r.computed)(()=>a.value.href),isActive:c,isExactActive:u,navigate:d}}function v(e){return 1===e.length?e[0]:e}const b=(0,r.defineComponent)({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:g,setup(e,{slots:t}){const n=(0,r.reactive)(g(e)),{options:i}=(0,r.inject)(p),a=(0,r.computed)(()=>({[S(e.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[S(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&v(t.default(n));return e.custom?i:(0,r.h)("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:a.value},i)}}}),y=b;function _(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(void 0===e.button||0===e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function w(e,t){for(const n in t){const r=t[n],i=e[n];if("string"===typeof r){if(r!==i)return!1}else if(!a(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}function E(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const S=(e,t,n)=>null!=e?e:null!=t?t:n;function k(){return(0,r.inject)(p)}function x(e){return(0,r.inject)(f)}},29621:function(e){"use strict";e.exports=JSON.parse('{"hasStylesheet":"true"}')},6471:function(e){"use strict";e.exports=JSON.parse('{"hasStylesheet":"true"}')},91862:function(e){"use strict";e.exports=JSON.parse('{"hasStylesheet":"false"}')},51507:function(e){"use strict";e.exports=JSON.parse('{"hasStylesheet":"false"}')},48401:function(e){"use strict";e.exports=JSON.parse('{"hasStylesheet":"false"}')},37259:function(e){"use strict";e.exports=JSON.parse('{"hasStylesheet":"true","banner":{"bannerClass":"suse-banner-graphic","textAlign":"left"},"login":{"bannerClass":"suse-login-banner-graphic","logo":"rancher-logo.svg","logoClass":"suse-logo-login","welcomeLabelKey":"login.login","setupLabelKey":"setup.setup"}}')},35553:function(e){"use strict";e.exports=JSON.parse('["af-south-1","ap-east-1","ap-east-2","ap-northeast-1","ap-northeast-2","ap-northeast-3","ap-south-1","ap-south-2","ap-southeast-1","ap-southeast-2","ap-southeast-3","ap-southeast-4","ap-southeast-5","ap-southeast-7","ca-central-1","ca-west-1","cn-north-1","cn-northwest-1","eu-central-1","eu-central-2","eu-north-1","eu-south-1","eu-south-2","eu-west-1","eu-west-2","eu-west-3","il-central-1","me-central-1","me-south-1","mx-central-1","sa-east-1","us-east-1","us-east-2","us-gov-east-1","us-gov-west-1","us-iso-east-1","us-iso-west-1","us-isob-east-1","us-west-1","us-west-2"]')},65321:function(e){"use strict";e.exports=JSON.parse('{"a1":"A1 - ARM","c1":"C1 - High-CPU (Intel)","c3":"C3 - High CPU (Intel)","c4":"C4 - High CPU (Intel)","c5":"C5 - High CPU (Intel)","c5a":"C5a - High CPU (AMD)","c5ad":"C5ad - High CPU (AMD, Local SSD)","c5d":"C5d - High CPU (Intel, Local SSD)","c5n":"C5n - High CPU (Intel)","c6g":"C6g - High CPU (ARM)","c6gd":"C6gd - High CPU (ARM, Local SSD)","c6gn":"C6gn - High CPU (ARM)","c6i":"C6i - High-CPU (Intel)","cc2":"CC2 - Cluster Compute","d2":"D2 - High Density Storage (Local HDD)","d3":"D3 - High Density Storage (Local HDD)","d3en":"D3en - High Density Storage (Local HDD)","dl1":"DL1 - ML Accelerator (Intel, Gaudi)","f1":"F1 - FPGA (Local SSD)","g2":"G2 - GPU (Intel, NVIDIA GRID, Local SSD)","g3":"G3 - GPU (NVIDIA M60)","g3s":"G3s - GPU (NVIDIA M60)","g4ad":"G4ad - GPU (AMD, Radeon V520, Local SSD)","g4dn":"G4dn - GPU (Intel, NVIDIA T4, Local SSD)","g5":"G5 - GPU (AMD, NVIDIA A10G, Local NVMe)","g5g":"G5g - GPU (ARM, NVIDIA T4G)","h1":"H1 - High Density Storage (Local HDD)","i2":"I2 - High I/O Storage (Local SSD)","i3":"I3 - High I/O Storage (Local SSD)","i3en":"I3en - High I/O Storage (Local SSD)","i4i":"I4i - High I/O Storage (Local Nitro SSD)","im4gn":"Im4gn - Storage (ARM, Local NVME)","inf1":"Inf1 - ML Accelerator (Intel, Inferentia)","m1":"M1 - General Purpose","m2":"M2 - General Purpose","m3":"M3 - General Purpose","m4":"M4 - General Purpose","m5":"M5 - General Purpose (Intel)","m5a":"M5a - General Purpose (AMD)","m5ad":"M5ad - General Purpose (AMD, Local SSD)","m5d":"M5d - General Purpose (Intel, Local SSD)","m5dn":"M5dn - General Purpose (Intel, Local SSD)","m5n":"M5n - General Purpose (Intel)","m5zn":"M5zn - General Purpose (Intel, High Speed Cores)","m6a":"M6a - General Purpose (AMD)","m6g":"M6g - General Purpose (ARM)","m6gd":"M6gd - General Purpose (ARM, Local SSD)","m6i":"M6i - General Purpose (Intel)","mac1":"Mac1 - macOS (Intel)","p2":"P2 - GPU (NVIDIA K80)","p3":"P3 - GPU (NVIDIA V100)","p3dn":"P3dn - GPU (NVIDIA V100, Local SSD)","p4":"P4 - GPU (Intel, NVIDIA A100)","p4d":"P4 - GPU (Intel, NVIDIA A100)","r3":"R3 - High Memory","r4":"R4 - High Memory","r5":"R5 - High Memory (Intel)","r5a":"R5a - High Memory (AMD)","r5ad":"R5ad - High Memory (AMD, Local SSD)","r5b":"R5b - High Memory (Intel)","r5d":"R5d - High Memory (Intel, Local SSD)","r5dn":"R5dn - High Memory (Intel, Local SSD)","r5n":"R5n - High Memory (Intel)","r6g":"R6g - High Memory (ARM)","r6gd":"R6gd - High Memory (AMD, Local SSD)","r6i":"R6i - High Memory (Intel)","t1":"T1 - Burstable","t2":"T2 - Burstable","t3":"T3 - Burstable (Intel)","t3a":"T3a - Burstable (AMD)","t4g":"T4g - Burstable (ARM)","u":"U - Really High Memory","u-12tb1":"U - Really High Memory","u-6tb1":"U - Really High Memory","u-9tb1":"U - Really High Memory","vt1":"VT1 - Video Accelerator (Intel, Xilinx U30)","x1":"X1 - Really High Memory","x1e":"X1e - Really High Memory","x2gd":"X2gd - High Memory (ARM, Local NVMe)","x2idn":"X2idn - High Memory (Intel, Local NVMe)","x2iedn":"X2iedn - High Memory (Intel, Local NVMe)","x2iezn":"X2iezn - High Memory (Intel)","z1d":"Z1d - High Memory (Local SSD)"}')},8330:function(e){"use strict";e.exports=JSON.parse('{"name":"harvester","description":"Rancher UI Extension for Harvester","version":"1.9.0-dev","private":false,"rancher":{"annotations":{"catalog.cattle.io/display-name":"Harvester","catalog.cattle.io/kube-version":">= 1.16.0-0","catalog.cattle.io/rancher-version":">= 2.14.0-0","catalog.cattle.io/ui-extensions-version":">= 3.0.0 < 4.0.0"}},"icon":"https://raw.githubusercontent.com/harvester/harvester-ui-extension/main/pkg/harvester/icon.svg","scripts":{"dev":"./node_modules/.bin/nuxt dev","nuxt":"./node_modules/.bin/nuxt"},"engines":{"node":">=24.0.0"},"devDependencies":{"@vue/cli-plugin-babel":"~5.0.9","@vue/cli-service":"~5.0.9","@vue/cli-plugin-typescript":"~5.0.9"},"browserslist":["> 1%","last 2 versions","not dead"]}')}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return r[e].call(n.exports,n,n.exports,a),n.loaded=!0,n.exports}a.m=r,function(){a.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return a.d(t,{a:t}),t}}(),function(){var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};a.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"===typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"===typeof n.then)return n}var i=Object.create(null);a.r(i);var o={};e=e||[null,t({}),t([]),t(t)];for(var s=2&r&&n;("object"==typeof s||"function"==typeof s)&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach(function(e){o[e]=function(){return n[e]}});return o["default"]=function(){return n},a.d(i,o),i}}(),function(){a.d=function(e,t){for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}}(),function(){a.f={},a.e=function(e){return Promise.all(Object.keys(a.f).reduce(function(t,n){return a.f[n](e,t),t},[]))}}(),function(){a.u=function(e){return"harvester-1.9.0-dev.umd.min."+({332:"detail",715:"list",739:"edit",829:"csv",902:"formatters",907:"dialog",935:"xterm",973:"promptRemove"}[e]||e)+".js"}}(),function(){a.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){var e={},t="harvester-1.9.0-dev:";a.l=function(n,r,i,o){if(e[n])e[n].push(r);else{var s,l;if(void 0!==i)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==n||d.getAttribute("data-webpack")==t+i){s=d;break}}s||(l=!0,s=document.createElement("script"),s.charset="utf-8",a.nc&&s.setAttribute("nonce",a.nc),s.setAttribute("data-webpack",t+i),s.src=n),e[n]=[r];var h=function(t,r){s.onerror=s.onload=null,clearTimeout(p);var i=e[n];if(delete e[n],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach(function(e){return e(r)}),t)return t(r)},p=setTimeout(h.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=h.bind(null,s.onerror),s.onload=h.bind(null,s.onload),l&&document.head.appendChild(s)}}}(),function(){a.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){a.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e}}(),function(){a.p=""}(),function(){var e={584:0};a.f.j=function(t,n){var r=a.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var i=new Promise(function(n,i){r=e[t]=[n,i]});n.push(r[2]=i);var o=a.p+a.u(t),s=new Error,l=function(n){if(a.o(e,t)&&(r=e[t],0!==r&&(e[t]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+o+")",s.name="ChunkLoadError",s.type=i,s.request=o,r[1](s)}};a.l(o,l,"chunk-"+t,t)}};var t=function(t,n){var r,i,o=n[0],s=n[1],l=n[2],c=0;if(o.some(function(t){return 0!==e[t]})){for(r in s)a.o(s,r)&&(a.m[r]=s[r]);if(l)l(a)}for(t&&t(n);c<o.length;c++)i=o[c],a.o(e,i)&&e[i]&&e[i][0](),e[i]=0},n=("undefined"!==typeof self?self:this)["webpackChunkharvester_1_9_0_dev"]=("undefined"!==typeof self?self:this)["webpackChunkharvester_1_9_0_dev"]||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}();var o={};return function(){"use strict";if(a.r(o),a.d(o,{default:function(){return bg}}),"undefined"!==typeof window){var e=window.document.currentScript,t=e&&e.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);t&&(a.p=t[1])}function n(e){if("undefined"!==typeof document){var t=function(){var e=document.getElementById("app").__vue_app__;if(!e)return!1;if(e.config&&e.config.globalProperties){var t=e.config.globalProperties;return!t.$extension&&t.$plugin?t.$extension=t.$plugin:!t.$plugin&&t.$extension&&(t.$plugin=t.$extension),!0}return!1};if(!t()){var n=setInterval(function(){t()&&clearInterval(n)},100);setTimeout(function(){clearInterval(n)},1e4)}}e.register("detail","devices.harvesterhci.io.migconfiguration",()=>Promise.all([a.e(238),a.e(77),a.e(456),a.e(682),a.e(431),a.e(564),a.e(189),a.e(819),a.e(332)]).then(a.bind(a,33094))),e.register("detail","harvesterhci.io.host",()=>Promise.all([a.e(238),a.e(77),a.e(456),a.e(682),a.e(431),a.e(564),a.e(189),a.e(819),a.e(332)]).then(a.bind(a,87201))),e.register("detail","harvesterhci.io.management.cluster",()=>Promise.all([a.e(238),a.e(77),a.e(456),a.e(682),a.e(431),a.e(564),a.e(189),a.e(819),a.e(332)]).then(a.bind(a,45713))),e.register("detail","harvesterhci.io.schedulevmbackup",()=>Promise.all([a.e(238),a.e(77),a.e(456),a.e(682),a.e(431),a.e(564),a.e(189),a.e(819),a.e(332)]).then(a.bind(a,49096))),e.register("detail","harvesterhci.io.secret",()=>Promise.all([a.e(238),a.e(77),a.e(456),a.e(682),a.e(431),a.e(564),a.e(189),a.e(819),a.e(332)]).then(a.bind(a,84735))),e.register("detail","harvesterhci.io.virtualmachinebackup",()=>Promise.all([a.e(238),a.e(77),a.e(456),a.e(682),a.e(431),a.e(564),a.e(189),a.e(819),a.e(332)]).then(a.bind(a,13077))),e.register("detail","harvesterhci.io.virtualmachineimage",()=>Promise.all([a.e(238),a.e(77),a.e(456),a.e(682),a.e(431),a.e(564),a.e(189),a.e(819),a.e(332)]).then(a.bind(a,94411))),e.register("detail","harvesterhci.io.vmsnapshot",()=>Promise.all([a.e(238),a.e(77),a.e(456),a.e(682),a.e(431),a.e(564),a.e(189),a.e(819),a.e(332)]).then(a.bind(a,18588))),e.register("detail","kubeovn.io.vpc",()=>Promise.all([a.e(238),a.e(77),a.e(456),a.e(682),a.e(431),a.e(564),a.e(189),a.e(819),a.e(332)]).then(a.bind(a,27850))),e.register("detail","kubevirt.io.virtualmachine",()=>Promise.all([a.e(238),a.e(77),a.e(456),a.e(682),a.e(431),a.e(564),a.e(189),a.e(819),a.e(332)]).then(a.bind(a,23502))),e.register("detail","loadbalancer.harvesterhci.io.ippool",()=>Promise.all([a.e(238),a.e(77),a.e(456),a.e(682),a.e(431),a.e(564),a.e(189),a.e(819),a.e(332)]).then(a.bind(a,67973))),e.register("detail","loadbalancer.harvesterhci.io.loadbalancer",()=>Promise.all([a.e(238),a.e(77),a.e(456),a.e(682),a.e(431),a.e(564),a.e(189),a.e(819),a.e(332)]).then(a.bind(a,55224))),e.register("detail","network.harvesterhci.io.vlanconfig",()=>Promise.all([a.e(238),a.e(77),a.e(456),a.e(682),a.e(431),a.e(564),a.e(189),a.e(819),a.e(332)]).then(a.bind(a,27626))),e.register("edit","devices.harvesterhci.io.migconfiguration",()=>Promise.all([a.e(238),a.e(77),a.e(191),a.e(431),a.e(564),a.e(882),a.e(739)]).then(a.bind(a,18324))),e.register("edit","harvesterhci.io.addon",()=>Promise.all([a.e(238),a.e(77),a.e(191),a.e(431),a.e(564),a.e(882),a.e(739)]).then(a.bind(a,20668))),e.register("edit","harvesterhci.io.cloudtemplate",()=>Promise.all([a.e(238),a.e(77),a.e(191),a.e(431),a.e(564),a.e(882),a.e(739)]).then(a.bind(a,41690))),e.register("edit","harvesterhci.io.host",()=>Promise.all([a.e(238),a.e(77),a.e(191),a.e(431),a.e(564),a.e(882),a.e(739)]).then(a.bind(a,35237))),e.register("edit","harvesterhci.io.keypair",()=>Promise.all([a.e(238),a.e(77),a.e(191),a.e(431),a.e(564),a.e(882),a.e(739)]).then(a.bind(a,30639))),e.register("edit","harvesterhci.io.logging.clusterflow",()=>Promise.all([a.e(238),a.e(77),a.e(191),a.e(431),a.e(564),a.e(882),a.e(739)]).then(a.bind(a,70675))),e.register("edit","harvesterhci.io.logging.clusteroutput",()=>Promise.all([a.e(238),a.e(77),a.e(191),a.e(431),a.e(564),a.e(882),a.e(739)]).then(a.bind(a,17733))),e.register("edit","harvesterhci.io.logging.flow",()=>Promise.all([a.e(238),a.e(77),a.e(191),a.e(431),a.e(564),a.e(882),a.e(739)]).then(a.bind(a,65647))),e.register("edit","harvesterhci.io.logging.output",()=>Promise.all([a.e(238),a.e(77),a.e(191),a.e(431),a.e(564),a.e(882),a.e(739)]).then(a.bind(a,64576))),e.register("edit","harvesterhci.io.monitoring.alertmanagerconfig",()=>Promise.all([a.e(238),a.e(77),a.e(191),a.e(431),a.e(564),a.e(882),a.e(739)]).then(a.bind(a,36605))),e.register("edit","harvesterhci.io.networkattachmentdefinition",()=>Promise.all([a.e(238),a.e(77),a.e(191),a.e(431),a.e(564),a.e(882),a.e(739)]).then(a.bind(a,91600))),e.register("edit","harvesterhci.io.schedulevmbackup",()=>Promise.all([a.e(238),a.e(77),a.e(191),a.e(431),a.e(564),a.e(882),a.e(739)]).then(a.bind(a,4335))),e.register("edit","harvesterhci.io.secret",()=>Promise.all([a.e(238),a.e(77),a.e(191),a.e(431),a.e(564),a.e(882),a.e(739)]).then(a.bind(a,74583))),e.register("edit","harvesterhci.io.setting",()=>Promise.all([a.e(238),a.e(77),a.e(191),a.e(431),a.e(564),a.e(882),a.e(739)]).then(a.bind(a,78407))),e.register("edit","harvesterhci.io.storage",()=>Promise.all([a.e(238),a.e(77),a.e(191),a.e(431),a.e(564),a.e(882),a.e(739)]).then(a.bind(a,14787))),e.register("edit","harvesterhci.io.virtualmachinebackup",()=>Promise.all([a.e(238),a.e(77),a.e(191),a.e(431),a.e(564),a.e(882),a.e(739)]).then(a.bind(a,57717))),e.register("edit","harvesterhci.io.virtualmachineimage",()=>Promise.all([a.e(238),a.e(77),a.e(191),a.e(431),a.e(564),a.e(882),a.e(739)]).then(a.bind(a,35901))),e.register("edit","harvesterhci.io.virtualmachinetemplateversion",()=>Promise.all([a.e(238),a.e(77),a.e(191),a.e(431),a.e(564),a.e(882),a.e(739)]).then(a.bind(a,68775))),e.register("edit","harvesterhci.io.vmsnapshot",()=>Promise.all([a.e(238),a.e(77),a.e(191),a.e(431),a.e(564),a.e(882),a.e(739)]).then(a.bind(a,68747))),e.register("edit","harvesterhci.io.volume",()=>Promise.all([a.e(238),a.e(77),a.e(191),a.e(431),a.e(564),a.e(882),a.e(739)]).then(a.bind(a,6893))),e.register("edit","harvesterhci.io.volumesnapshot",()=>Promise.all([a.e(238),a.e(77),a.e(191),a.e(431),a.e(564),a.e(882),a.e(739)]).then(a.bind(a,33514))),e.register("edit","kubeovn.io.subnet",()=>Promise.all([a.e(238),a.e(77),a.e(191),a.e(431),a.e(564),a.e(882),a.e(739)]).then(a.bind(a,77252))),e.register("edit","kubeovn.io.vpc",()=>Promise.all([a.e(238),a.e(77),a.e(191),a.e(431),a.e(564),a.e(882),a.e(739)]).then(a.bind(a,18411))),e.register("edit","kubevirt.io.virtualmachine",()=>Promise.all([a.e(238),a.e(77),a.e(191),a.e(431),a.e(564),a.e(882),a.e(739)]).then(a.bind(a,57375))),e.register("edit","loadbalancer.harvesterhci.io.ippool",()=>Promise.all([a.e(238),a.e(77),a.e(191),a.e(431),a.e(564),a.e(882),a.e(739)]).then(a.bind(a,27494))),e.register("edit","loadbalancer.harvesterhci.io.loadbalancer",()=>Promise.all([a.e(238),a.e(77),a.e(191),a.e(431),a.e(564),a.e(882),a.e(739)]).then(a.bind(a,21132))),e.register("edit","management.cattle.io.project",()=>Promise.all([a.e(238),a.e(77),a.e(191),a.e(431),a.e(564),a.e(882),a.e(739)]).then(a.bind(a,8212))),e.register("edit","migration.harvesterhci.io.openstacksource",()=>Promise.all([a.e(238),a.e(77),a.e(191),a.e(431),a.e(564),a.e(882),a.e(739)]).then(a.bind(a,16998))),e.register("edit","migration.harvesterhci.io.ovasource",()=>Promise.all([a.e(238),a.e(77),a.e(191),a.e(431),a.e(564),a.e(882),a.e(739)]).then(a.bind(a,47974))),e.register("edit","migration.harvesterhci.io.virtualmachineimport",()=>Promise.all([a.e(238),a.e(77),a.e(191),a.e(431),a.e(564),a.e(882),a.e(739)]).then(a.bind(a,13029))),e.register("edit","migration.harvesterhci.io.vmwaresource",()=>Promise.all([a.e(238),a.e(77),a.e(191),a.e(431),a.e(564),a.e(882),a.e(739)]).then(a.bind(a,9913))),e.register("edit","network.harvesterhci.io.clusternetwork",()=>Promise.all([a.e(238),a.e(77),a.e(191),a.e(431),a.e(564),a.e(882),a.e(739)]).then(a.bind(a,40041))),e.register("edit","network.harvesterhci.io.vlanconfig",()=>Promise.all([a.e(238),a.e(77),a.e(191),a.e(431),a.e(564),a.e(882),a.e(739)]).then(a.bind(a,55191))),e.register("edit","networking.k8s.io.networkpolicy",()=>Promise.all([a.e(238),a.e(77),a.e(191),a.e(431),a.e(564),a.e(882),a.e(739)]).then(a.bind(a,25058))),e.register("list","devices.harvesterhci.io.migconfiguration",()=>Promise.all([a.e(456),a.e(131),a.e(189),a.e(882),a.e(715)]).then(a.bind(a,93308))),e.register("list","devices.harvesterhci.io.pcidevice",()=>Promise.all([a.e(456),a.e(131),a.e(189),a.e(882),a.e(715)]).then(a.bind(a,73774))),e.register("list","devices.harvesterhci.io.sriovgpudevice",()=>Promise.all([a.e(456),a.e(131),a.e(189),a.e(882),a.e(715)]).then(a.bind(a,40190))),e.register("list","devices.harvesterhci.io.sriovnetworkdevice",()=>Promise.all([a.e(456),a.e(131),a.e(189),a.e(882),a.e(715)]).then(a.bind(a,88426))),e.register("list","devices.harvesterhci.io.usbdevice",()=>Promise.all([a.e(456),a.e(131),a.e(189),a.e(882),a.e(715)]).then(a.bind(a,38439))),e.register("list","devices.harvesterhci.io.vgpudevice",()=>Promise.all([a.e(456),a.e(131),a.e(189),a.e(882),a.e(715)]).then(a.bind(a,86869))),e.register("list","harvesterhci.io.addon",()=>Promise.all([a.e(456),a.e(131),a.e(189),a.e(882),a.e(715)]).then(a.bind(a,33699))),e.register("list","harvesterhci.io.cloudtemplate",()=>Promise.all([a.e(456),a.e(131),a.e(189),a.e(882),a.e(715)]).then(a.bind(a,34317))),e.register("list","harvesterhci.io.dashboard",()=>Promise.all([a.e(456),a.e(131),a.e(189),a.e(882),a.e(715)]).then(a.bind(a,93918))),e.register("list","harvesterhci.io.host",()=>Promise.all([a.e(456),a.e(131),a.e(189),a.e(882),a.e(715)]).then(a.bind(a,60584))),e.register("list","harvesterhci.io.logging.clusterflow",()=>Promise.all([a.e(456),a.e(131),a.e(189),a.e(882),a.e(715)]).then(a.bind(a,78646))),e.register("list","harvesterhci.io.logging.clusteroutput",()=>Promise.all([a.e(456),a.e(131),a.e(189),a.e(882),a.e(715)]).then(a.bind(a,56497))),e.register("list","harvesterhci.io.logging.flow",()=>Promise.all([a.e(456),a.e(131),a.e(189),a.e(882),a.e(715)]).then(a.bind(a,81342))),e.register("list","harvesterhci.io.logging.output",()=>Promise.all([a.e(456),a.e(131),a.e(189),a.e(882),a.e(715)]).then(a.bind(a,65391))),e.register("list","harvesterhci.io.monitoring.alertmanagerconfig",()=>Promise.all([a.e(456),a.e(131),a.e(189),a.e(882),a.e(715)]).then(a.bind(a,49610))),e.register("list","harvesterhci.io.networkattachmentdefinition",()=>Promise.all([a.e(456),a.e(131),a.e(189),a.e(882),a.e(715)]).then(a.bind(a,9470))),e.register("list","harvesterhci.io.schedulevmbackup",()=>Promise.all([a.e(456),a.e(131),a.e(189),a.e(882),a.e(715)]).then(a.bind(a,42148))),e.register("list","harvesterhci.io.secret",()=>Promise.all([a.e(456),a.e(131),a.e(189),a.e(882),a.e(715)]).then(a.bind(a,60633))),e.register("list","harvesterhci.io.setting",()=>Promise.all([a.e(456),a.e(131),a.e(189),a.e(882),a.e(715)]).then(a.bind(a,88695))),e.register("list","harvesterhci.io.storage",()=>Promise.all([a.e(456),a.e(131),a.e(189),a.e(882),a.e(715)]).then(a.bind(a,48490))),e.register("list","harvesterhci.io.virtualmachinebackup",()=>Promise.all([a.e(456),a.e(131),a.e(189),a.e(882),a.e(715)]).then(a.bind(a,17451))),e.register("list","harvesterhci.io.virtualmachineimage",()=>Promise.all([a.e(456),a.e(131),a.e(189),a.e(882),a.e(715)]).then(a.bind(a,71743))),e.register("list","harvesterhci.io.virtualmachinetemplateversion",()=>Promise.all([a.e(456),a.e(131),a.e(189),a.e(882),a.e(715)]).then(a.bind(a,81959))),e.register("list","harvesterhci.io.vmsnapshot",()=>Promise.all([a.e(456),a.e(131),a.e(189),a.e(882),a.e(715)]).then(a.bind(a,61117))),e.register("list","harvesterhci.io.volume",()=>Promise.all([a.e(456),a.e(131),a.e(189),a.e(882),a.e(715)]).then(a.bind(a,77210))),e.register("list","harvesterhci.io.volumesnapshot",()=>Promise.all([a.e(456),a.e(131),a.e(189),a.e(882),a.e(715)]).then(a.bind(a,32776))),e.register("list","kubeovn.io.vpc",()=>Promise.all([a.e(456),a.e(131),a.e(189),a.e(882),a.e(715)]).then(a.bind(a,72226))),e.register("list","kubevirt.io.virtualmachine",()=>Promise.all([a.e(456),a.e(131),a.e(189),a.e(882),a.e(715)]).then(a.bind(a,59021))),e.register("list","migration.harvesterhci.io.openstacksource",()=>Promise.all([a.e(456),a.e(131),a.e(189),a.e(882),a.e(715)]).then(a.bind(a,87875))),e.register("list","migration.harvesterhci.io.ovasource",()=>Promise.all([a.e(456),a.e(131),a.e(189),a.e(882),a.e(715)]).then(a.bind(a,53373))),e.register("list","migration.harvesterhci.io.virtualmachineimport",()=>Promise.all([a.e(456),a.e(131),a.e(189),a.e(882),a.e(715)]).then(a.bind(a,19767))),e.register("list","migration.harvesterhci.io.vmwaresource",()=>Promise.all([a.e(456),a.e(131),a.e(189),a.e(882),a.e(715)]).then(a.bind(a,25765))),e.register("list","network.harvesterhci.io.clusternetwork",()=>Promise.all([a.e(456),a.e(131),a.e(189),a.e(882),a.e(715)]).then(a.bind(a,52493))),e.register("models","clusterroletemplatebinding",()=>a(83727)),e.register("models","devices.harvesterhci.io.migconfiguration",()=>a(17976)),e.register("models","devices.harvesterhci.io.pcidevice",()=>a(66529)),e.register("models","devices.harvesterhci.io.pcideviceclaim",()=>a(66325)),e.register("models","devices.harvesterhci.io.sriovgpudevice",()=>a(13520)),e.register("models","devices.harvesterhci.io.sriovnetworkdevice",()=>a(75128)),e.register("models","devices.harvesterhci.io.usbdevice",()=>a(95311)),e.register("models","devices.harvesterhci.io.usbdeviceclaim",()=>a(17467)),e.register("models","devices.harvesterhci.io.vgpudevice",()=>a(46505)),e.register("models","harvester/configmap",()=>a(24481)),e.register("models","harvester/k8s.cni.cncf.io.networkattachmentdefinition",()=>a(4987)),e.register("models","harvester/logging.banzaicloud.io.clusterflow",()=>a(50826)),e.register("models","harvester/logging.banzaicloud.io.clusteroutput",()=>a(49039)),e.register("models","harvester/logging.banzaicloud.io.flow",()=>a(40322)),e.register("models","harvester/logging.banzaicloud.io.output",()=>a(15895)),e.register("models","harvester/management.cattle.io.setting",()=>a(65073)),e.register("models","harvester/monitoring.coreos.com.alertmanagerconfig",()=>a(53942)),e.register("models","harvester/namespace",()=>a(62878)),e.register("models","harvester/node",()=>a(55285)),e.register("models","harvester/persistentvolumeclaim",()=>a(15908)),e.register("models","harvester/pod",()=>a(14426)),e.register("models","harvester/schema",()=>a(60698)),e.register("models","harvester/secret",()=>a(36577)),e.register("models","harvester/snapshot.storage.k8s.io.volumesnapshot",()=>a(87214)),e.register("models","harvester/storage.k8s.io.storageclass",()=>a(82877)),e.register("models","harvester",()=>a(24222)),e.register("models","harvesterhci.io.addon",()=>a(52528)),e.register("models","harvesterhci.io.blockdevice",()=>a(46933)),e.register("models","harvesterhci.io.keypair",()=>a(72193)),e.register("models","harvesterhci.io.schedulevmbackup",()=>a(26422)),e.register("models","harvesterhci.io.setting",()=>a(96214)),e.register("models","harvesterhci.io.supportbundle",()=>a(25661)),e.register("models","harvesterhci.io.upgrade",()=>a(39334)),e.register("models","harvesterhci.io.upgradelog",()=>a(25418)),e.register("models","harvesterhci.io.virtualmachinebackup",()=>a(64778)),e.register("models","harvesterhci.io.virtualmachineimage",()=>a(38287)),e.register("models","harvesterhci.io.virtualmachinerestore",()=>a(82680)),e.register("models","harvesterhci.io.virtualmachinetemplate",()=>a(61746)),e.register("models","harvesterhci.io.virtualmachinetemplateversion",()=>a(96608)),e.register("models","k8s.cni.cncf.io.networkattachmentdefinition",()=>a(43842)),e.register("models","kubeovn.io.subnet",()=>a(13459)),e.register("models","kubeovn.io.vpc",()=>a(58899)),e.register("models","kubevirt.io.virtualmachine",()=>a(50784)),e.register("models","kubevirt.io.virtualmachineinstance",()=>a(79095)),e.register("models","loadbalancer.harvesterhci.io.ippool",()=>a(68917)),e.register("models","loadbalancer.harvesterhci.io.loadbalancer",()=>a(61772)),e.register("models","longhorn.io.node",()=>a(28433)),e.register("models","metal.harvesterhci.io.inventory",()=>a(11971)),e.register("models","network.harvesterhci.io.clusternetwork",()=>a(85696)),e.register("models","network.harvesterhci.io.nodenetwork",()=>a(88272)),e.register("models","network.harvesterhci.io.vlanconfig",()=>a(70443)),e.register("models","network.harvesterhci.io.vlanstatus",()=>a(61715)),e.register("promptRemove","harvesterhci.io.virtualmachinebackup",()=>a.e(973).then(a.bind(a,88891))),e.register("promptRemove","kubevirt.io.virtualmachine",()=>a.e(973).then(a.bind(a,20377))),e.register("l10n","en-us",()=>a.e(37).then(a.t.bind(a,49037,23))),e.register("dialog","CloneVmDialog",()=>a.e(907).then(a.bind(a,89434))),e.register("dialog","ConfirmExecutionDialog",()=>a.e(907).then(a.bind(a,69210))),e.register("dialog","ConfirmRelatedToRemoveDialog",()=>a.e(907).then(a.bind(a,66402))),e.register("dialog","EnablePciPassthrough",()=>a.e(907).then(a.bind(a,53772))),e.register("dialog","EnableSriovDevice",()=>a.e(907).then(a.bind(a,67038))),e.register("dialog","EnableUSBPassthrough",()=>a.e(907).then(a.bind(a,83636))),e.register("dialog","EnableVGpuDevice",()=>a.e(907).then(a.bind(a,71524))),e.register("dialog","HarvesterAddHotplugNic",()=>a.e(907).then(a.bind(a,75867))),e.register("dialog","HarvesterAddHotplugVolumeModal",()=>a.e(907).then(a.bind(a,98150))),e.register("dialog","HarvesterBackupModal",()=>a.e(907).then(a.bind(a,71452))),e.register("dialog","HarvesterCPUMemoryHotPlugDialog",()=>a.e(907).then(a.bind(a,26851))),e.register("dialog","HarvesterCloneTemplate",()=>a.e(907).then(a.bind(a,31223))),e.register("dialog","HarvesterDataMigrationDialog",()=>a.e(907).then(a.bind(a,37485))),e.register("dialog","HarvesterEjectCDROMDialog",()=>a.e(907).then(a.bind(a,3352))),e.register("dialog","HarvesterEnableNvidiaDriverToolkit",()=>a.e(907).then(a.bind(a,98420))),e.register("dialog","HarvesterExportImageDialog",()=>a.e(907).then(a.bind(a,22807))),e.register("dialog","HarvesterHotUnplug",()=>a.e(907).then(a.bind(a,68399))),e.register("dialog","HarvesterImageDownloader",()=>a.e(907).then(a.bind(a,51665))),e.register("dialog","HarvesterInsertCdRomVolume",()=>a.e(907).then(a.bind(a,5855))),e.register("dialog","HarvesterMaintenanceDialog",()=>a.e(907).then(a.bind(a,24384))),e.register("dialog","HarvesterMigrationDialog",()=>a.e(907).then(a.bind(a,22466))),e.register("dialog","HarvesterQuotaDialog",()=>a.e(907).then(a.bind(a,31624))),e.register("dialog","HarvesterRestoreDialog",()=>a.e(907).then(a.bind(a,289))),e.register("dialog","HarvesterStorageMigrationDialog",()=>a.e(907).then(a.bind(a,15048))),e.register("dialog","HarvesterSupportBundle",()=>a.e(907).then(a.bind(a,99061))),e.register("dialog","HarvesterVMSnapshotDialog",()=>a.e(907).then(a.bind(a,84783))),e.register("dialog","HarvesterVlanConfigMigrateDialog",()=>a.e(907).then(a.bind(a,83874))),e.register("dialog","MessageBox",()=>a.e(907).then(a.bind(a,89257))),e.register("dialog","RestartVMDialog",()=>a.e(907).then(a.bind(a,48387))),e.register("dialog","RestoreSnapshotDialog",()=>a.e(907).then(a.bind(a,39058))),e.register("dialog","SnapshotDialog",()=>a.e(907).then(a.bind(a,95931))),e.register("dialog","VolumeCloneDialog",()=>a.e(907).then(a.bind(a,55780))),e.register("formatters","AttachVMWithName",()=>Promise.all([a.e(238),a.e(728),a.e(431),a.e(819),a.e(902)]).then(a.bind(a,59989))),e.register("formatters","BackupCreatedFrom",()=>Promise.all([a.e(238),a.e(728),a.e(431),a.e(819),a.e(902)]).then(a.bind(a,22234))),e.register("formatters","CloudInitType",()=>Promise.all([a.e(238),a.e(728),a.e(431),a.e(819),a.e(902)]).then(a.bind(a,32012))),e.register("formatters","HarvesterBackupProgressBar",()=>Promise.all([a.e(238),a.e(728),a.e(431),a.e(819),a.e(902)]).then(a.bind(a,13396))),e.register("formatters","HarvesterBackupTargetValidation",()=>Promise.all([a.e(238),a.e(728),a.e(431),a.e(819),a.e(902)]).then(a.bind(a,98235))),e.register("formatters","HarvesterCPUPinning",()=>Promise.all([a.e(238),a.e(728),a.e(431),a.e(819),a.e(902)]).then(a.bind(a,46e3))),e.register("formatters","HarvesterCPUUsed",()=>Promise.all([a.e(238),a.e(728),a.e(431),a.e(819),a.e(902)]).then(a.bind(a,14290))),e.register("formatters","HarvesterCronExpression",()=>Promise.all([a.e(238),a.e(728),a.e(431),a.e(819),a.e(902)]).then(a.bind(a,79211))),e.register("formatters","HarvesterDiskState",()=>Promise.all([a.e(238),a.e(728),a.e(431),a.e(819),a.e(902)]).then(a.bind(a,8579))),e.register("formatters","HarvesterHost",()=>Promise.all([a.e(238),a.e(728),a.e(431),a.e(819),a.e(902)]).then(a.bind(a,18290))),e.register("formatters","HarvesterIpAddress",()=>Promise.all([a.e(238),a.e(728),a.e(431),a.e(819),a.e(902)]).then(a.bind(a,56258))),e.register("formatters","HarvesterListener",()=>Promise.all([a.e(238),a.e(728),a.e(431),a.e(819),a.e(902)]).then(a.bind(a,52279))),e.register("formatters","HarvesterMemoryUsed",()=>Promise.all([a.e(238),a.e(728),a.e(431),a.e(819),a.e(902)]).then(a.bind(a,79898))),e.register("formatters","HarvesterMigrationState",()=>Promise.all([a.e(238),a.e(728),a.e(431),a.e(819),a.e(902)]).then(a.bind(a,69760))),e.register("formatters","HarvesterStorageUsed",()=>Promise.all([a.e(238),a.e(728),a.e(431),a.e(819),a.e(902)]).then(a.bind(a,46484))),e.register("formatters","HarvesterVFAddress",()=>Promise.all([a.e(238),a.e(728),a.e(431),a.e(819),a.e(902)]).then(a.bind(a,93922))),e.register("formatters","HarvesterVFsNum",()=>Promise.all([a.e(238),a.e(728),a.e(431),a.e(819),a.e(902)]).then(a.bind(a,22011))),e.register("formatters","HarvesterVGpuDevices",()=>Promise.all([a.e(238),a.e(728),a.e(431),a.e(819),a.e(902)]).then(a.bind(a,66810))),e.register("formatters","HarvesterVmState",()=>Promise.all([a.e(238),a.e(728),a.e(431),a.e(819),a.e(902)]).then(a.bind(a,98993))),e.register("formatters","HarvesterVolumeState",()=>Promise.all([a.e(238),a.e(728),a.e(431),a.e(819),a.e(902)]).then(a.bind(a,5538))),e.register("formatters","NetworkRouteConnectivity",()=>Promise.all([a.e(238),a.e(728),a.e(431),a.e(819),a.e(902)]).then(a.bind(a,47385))),e.register("formatters","RelatedVolumeSnapshotCounts",()=>Promise.all([a.e(238),a.e(728),a.e(431),a.e(819),a.e(902)]).then(a.bind(a,40179))),e.register("formatters","SnapshotTargetVolume",()=>Promise.all([a.e(238),a.e(728),a.e(431),a.e(819),a.e(902)]).then(a.bind(a,67359))),e.register("formatters","StateWithPopover",()=>Promise.all([a.e(238),a.e(728),a.e(431),a.e(819),a.e(902)]).then(a.bind(a,12521)))}var r=a(20652),i=a(9274);function s(e,t,n,r,a,o){return(0,i.openBlock)(),(0,i.createElementBlock)("div",null," This is harvester Dashboard. ")}var l=a(32766),c={beforeCreate(){this.$router.replace({name:`${r.KR}-c-cluster-resource`,params:{...this.$router.currentRoute.params,product:r.KR,resource:l.rk.DASHBOARD}})}},u=a(47433);const d=(0,u.A)(c,[["render",s]]);var h=d;const p={class:"content mt-20"},f={class:"promo"},m={key:0,class:"box mb-20 box-primary"},g={class:"pb-10"},v={class:"pb-10"},b={key:1,class:"row"},y={class:"col span-6 box box-primary"},_=["href"],w={class:"warning"},E={class:"col span-6 box box-primary"},S=["href"],k={class:"warning"},x={class:"community"},A={class:"external"},C={href:"https://www.suse.com/suse-harvester/support-matrix/all-supported-versions",target:"_blank",rel:"noopener noreferrer nofollow"},T={href:"https://www.suse.com/products/harvester/",target:"_blank",rel:"noopener noreferrer nofollow"};function N(e,t,n,r,a,o){const s=(0,i.resolveComponent)("BannerGraphic"),l=(0,i.resolveComponent)("t"),c=(0,i.resolveComponent)("CommunityLinks"),u=(0,i.resolveComponent)("IndentedPanel"),d=(0,i.resolveComponent)("HarvesterSupportBundle");return(0,i.openBlock)(),(0,i.createElementBlock)("div",null,[(0,i.createVNode)(s,{title:e.t(o.title,{},!0)},null,8,["title"]),(0,i.createVNode)(u,null,{default:(0,i.withCtx)(()=>[(0,i.createElementVNode)("div",p,[(0,i.createElementVNode)("div",f,[o.showSupportBundle?((0,i.openBlock)(),(0,i.createElementBlock)("div",m,[(0,i.createElementVNode)("h2",null,(0,i.toDisplayString)(e.t("harvester.modal.bundle.title")),1),(0,i.createElementVNode)("div",null,[(0,i.createElementVNode)("p",g,(0,i.toDisplayString)(e.t("harvester.modal.bundle.titleDescription")),1),(0,i.createElementVNode)("button",{class:"btn role-secondary btn-sm",type:"button",onClick:t[0]||(t[0]=(...e)=>o.open&&o.open(...e))},(0,i.toDisplayString)(e.t("harvester.modal.bundle.title")),1)])])):(0,i.createCommentVNode)("",!0),(0,i.createElementVNode)("div",{class:(0,i.normalizeClass)(["box box-primary",{"mb-20":o.dev}])},[(0,i.createElementVNode)("h2",null,(0,i.toDisplayString)(e.t("harvester.support.kubeconfig.title")),1),(0,i.createElementVNode)("div",null,[(0,i.createElementVNode)("p",v,(0,i.toDisplayString)(e.t("harvester.support.kubeconfig.titleDescription")),1),(0,i.createElementVNode)("button",{class:"btn role-secondary btn-sm",type:"button",onClick:t[1]||(t[1]=t=>e.currentCluster.downloadKubeConfig())},(0,i.toDisplayString)(e.t("harvester.support.kubeconfig.title")),1)])],2),o.dev?((0,i.openBlock)(),(0,i.createElementBlock)("div",b,[(0,i.createElementVNode)("div",y,[(0,i.createElementVNode)("h2",null,[(0,i.createElementVNode)("a",{rel:"nofollow noopener noreferrer",target:"_blank",href:o.rancherLink},[(0,i.createTextVNode)((0,i.toDisplayString)(e.t("harvester.support.internal.rancher.title"))+" ",1),t[2]||(t[2]=(0,i.createElementVNode)("i",{class:"icon icon-external-link"},null,-1))],8,_)]),(0,i.createElementVNode)("div",null,[(0,i.createElementVNode)("p",w,[(0,i.createVNode)(l,{k:"harvester.support.internal.rancher.titleDescription",raw:!0,url:o.rancherIntegrationLink},null,8,["url"])])])]),(0,i.createElementVNode)("div",E,[(0,i.createElementVNode)("h2",null,[(0,i.createElementVNode)("a",{rel:"nofollow noopener noreferrer",target:"_blank",href:o.longhornLink},[(0,i.createTextVNode)((0,i.toDisplayString)(e.t("harvester.support.internal.longhorn.title"))+" ",1),t[3]||(t[3]=(0,i.createElementVNode)("i",{class:"icon icon-external-link"},null,-1))],8,S)]),(0,i.createElementVNode)("div",null,[(0,i.createElementVNode)("p",k,[(0,i.createVNode)(l,{k:"harvester.support.internal.longhorn.titleDescription",raw:!0})])])])])):(0,i.createCommentVNode)("",!0)]),(0,i.createElementVNode)("div",x,[(0,i.createVNode)(c,{"link-options":a.options},null,8,["link-options"])]),(0,i.createElementVNode)("div",A,[(0,i.createElementVNode)("a",C,[(0,i.createTextVNode)((0,i.toDisplayString)(e.t("harvester.support.community.learnMore"))+" ",1),t[4]||(t[4]=(0,i.createElementVNode)("i",{class:"icon icon-external-link"},null,-1))]),t[6]||(t[6]=(0,i.createTextVNode)(" or ",-1)),(0,i.createElementVNode)("a",T,[(0,i.createTextVNode)((0,i.toDisplayString)(e.t("harvester.support.community.pricing"))+" ",1),t[5]||(t[5]=(0,i.createElementVNode)("i",{class:"icon icon-external-link"},null,-1))])])])]),_:1}),o.showSupportBundle?((0,i.openBlock)(),(0,i.createBlock)(d,{key:0})):(0,i.createCommentVNode)("",!0)])}var R=a(65359),O=a(91462);const I={key:0,"data-testid":"banner-title-key",class:"title"},L={key:1,"data-testid":"banner-title",class:"title"};function D(e,t,n,r,a,o){const s=(0,i.resolveComponent)("BrandImage"),l=(0,i.resolveComponent)("t"),c=(0,i.resolveDirective)("clean-html");return e.shown?((0,i.openBlock)(),(0,i.createElementBlock)("div",{key:0,class:(0,i.normalizeClass)(["banner-graphic-area",{[a.alignClass]:!0}])},[(0,i.createElementVNode)("div",{class:(0,i.normalizeClass)([a.bannerClass,"graphic banner-graphic-height"])},[(0,i.createVNode)(s,{class:"banner","data-testid":"banner-brand__img","file-name":"banner.svg",draggable:!1,alt:e.t("landing.bannerImage")},null,8,["alt"])],2),n.titleKey?((0,i.openBlock)(),(0,i.createElementBlock)("div",I,[(0,i.createVNode)(l,{k:n.titleKey},null,8,["k"])])):n.title?(0,i.withDirectives)(((0,i.openBlock)(),(0,i.createElementBlock)("h1",L,null,512)),[[c,n.title]]):(0,i.createCommentVNode)("",!0)],2)):(0,i.createCommentVNode)("",!0)}var P=a(55277);const M=["src"];function B(e,t,n,r,a,o){return(0,i.openBlock)(),(0,i.createElementBlock)("img",(0,i.mergeProps)(e.$attrs,{src:o.pathToBrandedImage}),null,16,M)}var F=a(35664),$=a(9262),U=a(45224),j={props:{fileName:{type:String,required:!0},dark:{type:Boolean,default:!1},supportCustomLogo:{type:Boolean,default:!1}},data(){const e=this.$store.getters["management/all"](F.Mc.SETTING),t=e?.filter(e=>e.id===$.HG.LOGIN_BACKGROUND_LIGHT)?.[0]?.value,n=e?.filter(e=>e.id===$.HG.LOGIN_BACKGROUND_DARK)?.[0]?.value;return{managementSettings:e,uiLoginBackgroundLight:t,uiLoginBackgroundDark:n}},computed:{...(0,R.L8)({theme:"prefs/theme",brand:"management/brand"}),brandBase(){const e=this.managementSettings.filter(e=>e.id===$.HG.BRAND)[0]||{};return e.value},uiLogoLight(){const e=this.managementSettings.filter(e=>e.id===$.HG.LOGO_LIGHT)[0]||{};return e.value},uiLogoDark(){const e=this.managementSettings.filter(e=>e.id===$.HG.LOGO_DARK)[0]||{};return e.value},uiBannerLight(){const e=this.managementSettings.filter(e=>e.id===$.HG.BANNER_LIGHT)[0]||{};return e.value},uiBannerDark(){const e=this.managementSettings.filter(e=>e.id===$.HG.BANNER_DARK)[0]||{};return e.value},defaultPathToBrandedImage(){const e="dark"===this.theme?"dark/":"";try{return(0,U.mS)(`~shell/assets/images/pl/${e}${this.fileName}`)}catch{return(0,U.mS)(`~shell/assets/images/pl/${this.fileName}`)}},isDark(){return"dark"===this.theme},pathToBrandedImage(){if("rancher-logo.svg"===this.fileName||this.supportCustomLogo){if(this.isDark&&this.uiLogoDark)return this.uiLogoDark;if(this.uiLogoLight)return this.uiLogoLight;if(this.brandBase!==this.brand)try{return(0,U.mS)(`~shell/assets/brand/${this.brandBase}/${this.isDark?"dark/":""}${this.fileName}`)}catch{}}if("banner.svg"===this.fileName){if(this.isDark&&this.uiBannerDark)return this.uiBannerDark;if(this.uiBannerLight)return this.uiBannerLight}if("login-landscape.svg"===this.fileName){if(this.isDark&&this.uiLoginBackgroundDark)return this.uiLoginBackgroundDark;if(this.uiLoginBackgroundLight)return this.uiLoginBackgroundLight}if(this.brand){if(this.isDark||this.dark)try{return(0,U.mS)(`~shell/assets/brand/${this.brand}/dark/${this.fileName}`)}catch{}try{return(0,U.mS)(`~shell/assets/brand/${this.brand}/${this.fileName}`)}catch{}return this.defaultPathToBrandedImage}return this.defaultPathToBrandedImage}}};const V=(0,u.A)(j,[["render",B]]);var K=V,G=a(38275),H={components:{BrandImage:K},mixins:[P.A],props:{title:{type:String,default:null},titleKey:{type:String,default:null}},data(){const e=(0,G.V)(this.$store.getters["management/brand"]),t=e?.banner||{},n=t.textAlign||"center",r=t.bannerClass||"";return{alignClass:`banner-text-${n}`,bannerClass:r}}};a(2120);const z=(0,u.A)(H,[["render",D],["__scopeId","data-v-444cefe6"]]);var q=z;const X={class:"indented-panel"};function W(e,t,n,r,a,o){return(0,i.openBlock)(),(0,i.createElementBlock)("div",X,[(0,i.renderSlot)(e.$slots,"default")])}var Y={};a(72674);const Q=(0,u.A)(Y,[["render",W]]);var J=Q;const Z={key:0},ee=["href","aria-label"],te={key:0,class:"support-link"},ne=["aria-label"];function re(e,t,n,r,a,o){const s=(0,i.resolveComponent)("router-link"),l=(0,i.resolveComponent)("SimpleBox");return o.hasOptions?((0,i.openBlock)(),(0,i.createElementBlock)("div",Z,[(0,i.createVNode)(l,{pref:e.pref,"pref-key":e.prefKey},{title:(0,i.withCtx)(()=>[(0,i.createElementVNode)("h2",null,(0,i.toDisplayString)(e.t("customLinks.displayTitle")),1)]),default:(0,i.withCtx)(()=>[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(o.options,(e,t)=>((0,i.openBlock)(),(0,i.createElementBlock)("div",{key:t,class:"support-link"},[e.value.startsWith("/")?((0,i.openBlock)(),(0,i.createBlock)(s,{key:0,to:e.value,role:"link","aria-label":e.label},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.label),1)]),_:2},1032,["to","aria-label"])):((0,i.openBlock)(),(0,i.createElementBlock)("a",{key:1,href:e.value,rel:"noopener noreferrer nofollow",target:"_blank",role:"link","aria-label":e.label},(0,i.toDisplayString)(e.label),9,ee))]))),128)),(0,i.renderSlot)(e.$slots,"default",{},void 0,!0),e.selectedLocaleLabel===e.t("locale.zh-hans")?((0,i.openBlock)(),(0,i.createElementBlock)("div",te,[(0,i.createElementVNode)("a",{class:"link",tabindex:"0","aria-label":e.t("footer.wechat.title"),role:"link",onClick:t[0]||(t[0]=(...e)=>o.show&&o.show(...e)),onKeydown:t[1]||(t[1]=(0,i.withKeys)((...e)=>o.show&&o.show(...e),["enter"]))},(0,i.toDisplayString)(e.t("footer.wechat.title")),41,ne)])):(0,i.createCommentVNode)("",!0)]),_:3},8,["pref","pref-key"])])):(0,i.createCommentVNode)("",!0)}var ie=a(87211),ae=a(83297),oe=a(49845),se=a(88339),le=a(97519),ce=a(4364);const ue=[{key:"docs",value:oe.M0,enabled:!0},{key:"forums",value:"https://forums.suse.com/",enabled:!0},{key:"slack",value:"https://slack.rancher.io/",enabled:!0},{key:"issues",value:"https://github.com/rancher/dashboard/issues/new/choose",enabled:!0},{key:"getStarted",value:`${oe.M0}/getting-started/overview`,enabled:!0}],de="suseCollective",he={key:"appCo",value:"https://apps.rancher.io/",enabled:!0},pe={key:"commercialSupport",value:"/support",enabled:!0,readonly:!0},fe={key:"cnforums",value:"https://forums.rancher.cn/",enabled:!0},me="v1",ge="v1.1",ve="v1.2";async function be(e,t,n,r){let i={};try{const t=await e.dispatch("management/find",{type:F.Mc.SETTING,id:$.HG.UI_CUSTOM_LINKS});t.value&&(i=JSON.parse(t.value))}catch($s){ce.warn("Could not parse custom link settings",$s)}if(i?.version?.startsWith(me)){if(i?.version!==me&&i?.version!==ge||(i.version=ve,i.defaults.includes(he.key)||i.defaults.push(he.key),i.defaults=i.defaults.filter(e=>e!==de)),i.defaults){const e=[...ue];(0,ae.f$)()&&e.push(he),e.forEach(e=>{const t=i.defaults.find(t=>t===e.key);e.enabled=!!t}),i.defaults=e}return i.custom.forEach(e=>{const t=`<a href="${e.value}"></a>`,n=le.A.sanitize(t);n!==t&&(ce.error(`Custom link value "${e.value}" is not valid for link "${e.label}"`),e.value="/#")}),ye(i,t,n,r,e)}const a={version:me,defaults:[...ue],custom:[]};(0,ae.f$)()&&a.defaults.push(he);try{const{uiIssuesSetting:t,uiCommunitySetting:n}=await(0,se.kR)({uiIssuesSetting:e.dispatch("management/find",{type:F.Mc.SETTING,id:$.HG.ISSUES}),uiCommunitySetting:e.dispatch("management/find",{type:F.Mc.SETTING,id:$.HG.COMMUNITY_LINKS})});if("false"===n?.value&&a.defaults.forEach(e=>e.enabled=!1),t?.value){a.custom.push({label:r?r("customLinks.defaults.issues"):"Issues",value:t.value});const e=a.defaults?.find(e=>"issues"===e.key);e&&(e.enabled=!1,e.readOnly=!0)}}catch($s){ce.warn("Could not parse legacy link settings",$s)}return ye(a,t,n,r,e)}function ye(e,t,n,r,i){if(!t&&!n){const t=e.defaults?.find(e=>"commercialSupport"===e.key);t||e.defaults.push(pe)}const a=i.getters["i18n/selectedLocaleLabel"];a===r("locale.zh-hans")&&e.defaults.push(fe),e.defaults=e.defaults.map(e=>({...e,label:r(`'customLinks.defaults.${e.key}`)}));const o=e.custom.reduce((e,t)=>(e[t.label]=t,e),{});return e.defaults.forEach(e=>{o[e.label]&&(e.enabled=!1,e.readonly=!0)}),e}var _e=a(70176),we={name:"CommunityLinks",components:{SimpleBox:ie.A},props:{linkOptions:{type:Object,default:()=>({})},isSupportPage:{type:Boolean,default:!1}},mixins:[P.A],async fetch(){this.links=await be(this.$store,this.hasSupport,this.isSupportPage,e=>this.t(e))},data(){return{links:{},showWeChatModal:!1}},computed:{...(0,R.L8)("i18n",["selectedLocaleLabel"]),hasOptions(){return!!Object.keys(this.options).length||!!Object.keys(this.$slots).length},hasSupport(){return(0,ae.f$)()||"true"===this.$store.getters["management/byId"](F.Mc.SETTING,$.HG.SUPPORTED)?.value},options(){if(this.linkOptions&&Object.keys(this.linkOptions).length){const e=[];return Object.keys(this.linkOptions).forEach(t=>{e.push({key:t,label:this.t(t),value:this.linkOptions[t]})}),e}const e=[];return this.links.custom&&e.push(...this.links.custom),this.links.defaults&&e.push(...this.links.defaults.filter(e=>e.enabled)),e.map(e=>({...e,value:(0,_e.OD)(e.value)}))}},methods:{show(){this.$store.dispatch("management/promptModal",{component:"WechatDialog"})}}};a(45801);const Ee=(0,u.A)(we,[["render",re],["__scopeId","data-v-50534f1b"]]);var Se=Ee,ke=a(99061),xe=a(66242),Ae=a(3791),Ce={components:{BannerGraphic:q,IndentedPanel:J,CommunityLinks:Se,HarvesterSupportBundle:ke["default"]},data(){return{options:{"footer.docs":"https://docs.harvesterhci.io","footer.forums":"https://forums.rancher.com/c/harvester/","footer.slack":"https://slack.rancher.io","footer.issue":"https://github.com/harvester/harvester/issues/new/choose"}}},computed:{...(0,R.L8)(["currentCluster"]),dev(){try{return this.$store.getters["prefs/get"](O.bc)}catch{return this.$store.getters["prefs/get"](O.IJ)}},title(){return"harvester.support.title"},showSupportBundle(){const e=this.$store.getters["currentProduct"].inStore;return!!this.$store.getters[`${e}/byId`](F.yx,l.rk.SUPPORT_BUNDLE)},internalPrefix(){const e=window.location.host,t=window.location.pathname.replace(this.$route.path,""),n=this.$route?.params;return{host:e,prefix:t,params:n}},rancherLink(){const{host:e,prefix:t,params:n}=this.internalPrefix;return`https://${e}${t}/c/${n.cluster}/explorer`},longhornLink(){const{host:e,params:t}=this.internalPrefix;return`https://${e}/k8s/clusters/${t.cluster}/api/v1/namespaces/longhorn-system/services/http:longhorn-frontend:80/proxy/#/dashboard`},rancherIntegrationLink(){const e=this.$store.getters["harvester-common/getServerVersion"]();return(0,Ae.nn)(xe.d.RANCHER_INTEGRATION_URL,e)}},methods:{open(){this.$store.commit("harvester-common/toggleBundleModal",!0)}}};a(41158);const Te=(0,u.A)(Ce,[["render",N],["__scopeId","data-v-74e3f663"]]);var Ne=Te;function Re(e,t,n,r,a,o){const s=(0,i.resolveComponent)("Loading"),l=(0,i.resolveComponent)("SerialConsole");return e.$fetchState.pending?((0,i.openBlock)(),(0,i.createBlock)(s,{key:0})):((0,i.openBlock)(),(0,i.createBlock)(l,{key:1,ref:"serialConsole",value:o.vmi,"onUpdate:value":t[0]||(t[0]=e=>o.vmi=e)},null,8,["value"]))}var Oe=a(87619);const Ie={class:"harvester-shell-container"},Le={ref:"xterm",class:"shell-body"};function De(e,t,n,r,a,o){const s=(0,i.resolveComponent)("resize-observer");return(0,i.openBlock)(),(0,i.createElementBlock)("div",Ie,[(0,i.createElementVNode)("div",Le,null,512),(0,i.createVNode)(s,{onNotify:o.fit},null,8,["onNotify"])])}var Pe=a(12784),Me=a.n(Pe),Be=a(4364);const Fe=new WeakMap,$e=new WeakMap;function Ue(e){const t=Fe.get(e);return Be.assert(null!=t,"'this' is expected an Event object, but got",e),t}function je(e){null==e.passiveListener?e.event.cancelable&&(e.canceled=!0,"function"===typeof e.event.preventDefault&&e.event.preventDefault()):"undefined"!==typeof Be&&"function"===typeof Be.error&&Be.error("Unable to preventDefault inside passive event listener invocation.",e.passiveListener)}function Ve(e,t){Fe.set(this,{eventTarget:e,event:t,eventPhase:2,currentTarget:e,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:t.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});const n=Object.keys(t);for(let r=0;r<n.length;++r){const e=n[r];e in this||Object.defineProperty(this,e,Ke(e))}}function Ke(e){return{get(){return Ue(this).event[e]},set(t){Ue(this).event[e]=t},configurable:!0,enumerable:!0}}function Ge(e){return{value(){const t=Ue(this).event;return t[e].apply(t,arguments)},configurable:!0,enumerable:!0}}function He(e,t){const n=Object.keys(t);if(0===n.length)return e;function r(t,n){e.call(this,t,n)}r.prototype=Object.create(e.prototype,{constructor:{value:r,configurable:!0,writable:!0}});for(let i=0;i<n.length;++i){const a=n[i];if(!(a in e.prototype)){const e=Object.getOwnPropertyDescriptor(t,a),n="function"===typeof e.value;Object.defineProperty(r.prototype,a,n?Ge(a):Ke(a))}}return r}function ze(e){if(null==e||e===Object.prototype)return Ve;let t=$e.get(e);return null==t&&(t=He(ze(Object.getPrototypeOf(e)),e),$e.set(e,t)),t}function qe(e,t){const n=ze(Object.getPrototypeOf(t));return new n(e,t)}function Xe(e){return Ue(e).immediateStopped}function We(e,t){Ue(e).eventPhase=t}function Ye(e,t){Ue(e).currentTarget=t}function Qe(e,t){Ue(e).passiveListener=t}Ve.prototype={get type(){return Ue(this).event.type},get target(){return Ue(this).eventTarget},get currentTarget(){return Ue(this).currentTarget},composedPath(){const e=Ue(this).currentTarget;return null==e?[]:[e]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return Ue(this).eventPhase},stopPropagation(){const e=Ue(this);e.stopped=!0,"function"===typeof e.event.stopPropagation&&e.event.stopPropagation()},stopImmediatePropagation(){const e=Ue(this);e.stopped=!0,e.immediateStopped=!0,"function"===typeof e.event.stopImmediatePropagation&&e.event.stopImmediatePropagation()},get bubbles(){return Boolean(Ue(this).event.bubbles)},get cancelable(){return Boolean(Ue(this).event.cancelable)},preventDefault(){je(Ue(this))},get defaultPrevented(){return Ue(this).canceled},get composed(){return Boolean(Ue(this).event.composed)},get timeStamp(){return Ue(this).timeStamp},get srcElement(){return Ue(this).eventTarget},get cancelBubble(){return Ue(this).stopped},set cancelBubble(e){if(!e)return;const t=Ue(this);t.stopped=!0,"boolean"===typeof t.event.cancelBubble&&(t.event.cancelBubble=!0)},get returnValue(){return!Ue(this).canceled},set returnValue(e){e||je(Ue(this))},initEvent(){}},Object.defineProperty(Ve.prototype,"constructor",{value:Ve,configurable:!0,writable:!0}),"undefined"!==typeof window&&"undefined"!==typeof window.Event&&(Object.setPrototypeOf(Ve.prototype,window.Event.prototype),$e.set(window.Event.prototype,Ve));const Je=new WeakMap,Ze=1,et=2,tt=3;function nt(e){return null!==e&&"object"===typeof e}function rt(e){const t=Je.get(e);if(null==t)throw new TypeError("'this' is expected an EventTarget object, but got another value.");return t}function it(e){return{get(){const t=rt(this);let n=t.get(e);while(null!=n){if(n.listenerType===tt)return n.listener;n=n.next}return null},set(t){"function"===typeof t||nt(t)||(t=null);const n=rt(this);let r=null,i=n.get(e);while(null!=i)i.listenerType===tt?null!==r?r.next=i.next:null!==i.next?n.set(e,i.next):n.delete(e):r=i,i=i.next;if(null!==t){const i={listener:t,listenerType:tt,passive:!1,once:!1,next:null};null===r?n.set(e,i):r.next=i}},configurable:!0,enumerable:!0}}function at(e,t){Object.defineProperty(e,`on${t}`,it(t))}function ot(e){function t(){st.call(this)}t.prototype=Object.create(st.prototype,{constructor:{value:t,configurable:!0,writable:!0}});for(let n=0;n<e.length;++n)at(t.prototype,e[n]);return t}function st(){if(!(this instanceof st)){if(1===arguments.length&&Array.isArray(arguments[0]))return ot(arguments[0]);if(arguments.length>0){const e=new Array(arguments.length);for(let t=0;t<arguments.length;++t)e[t]=arguments[t];return ot(e)}throw new TypeError("Cannot call a class as a function")}Je.set(this,new Map)}st.prototype={addEventListener(e,t,n){if(null==t)return;if("function"!==typeof t&&!nt(t))throw new TypeError("'listener' should be a function or an object.");const r=rt(this),i=nt(n),a=i?Boolean(n.capture):Boolean(n),o=a?Ze:et,s={listener:t,listenerType:o,passive:i&&Boolean(n.passive),once:i&&Boolean(n.once),next:null};let l=r.get(e);if(void 0===l)return void r.set(e,s);let c=null;while(null!=l){if(l.listener===t&&l.listenerType===o)return;c=l,l=l.next}c.next=s},removeEventListener(e,t,n){if(null==t)return;const r=rt(this),i=nt(n)?Boolean(n.capture):Boolean(n),a=i?Ze:et;let o=null,s=r.get(e);while(null!=s){if(s.listener===t&&s.listenerType===a)return void(null!==o?o.next=s.next:null!==s.next?r.set(e,s.next):r.delete(e));o=s,s=s.next}},dispatchEvent(e){if(null==e||"string"!==typeof e.type)throw new TypeError('"event.type" should be a string.');const t=rt(this),n=e.type;let r=t.get(n);if(null==r)return!0;const i=qe(this,e);let a=null;while(null!=r){if(r.once?null!==a?a.next=r.next:null!==r.next?t.set(n,r.next):t.delete(n):a=r,Qe(i,r.passive?r.listener:null),"function"===typeof r.listener)try{r.listener.call(this,i)}catch(Uo){"undefined"!==typeof Be&&"function"===typeof Be.error&&Be.error(Uo)}else r.listenerType!==tt&&"function"===typeof r.listener.handleEvent&&r.listener.handleEvent(i);if(Xe(i))break;r=r.next}return Qe(i,null),We(i,0),Ye(i,null),!i.defaultPrevented}},Object.defineProperty(st.prototype,"constructor",{value:st,configurable:!0,writable:!0}),"undefined"!==typeof window&&"undefined"!==typeof window.EventTarget&&Object.setPrototypeOf(st.prototype,window.EventTarget.prototype);var lt=a(35881),ct=a(50667),ut=a(4364);function dt(e,t,n){return(t=ht(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ht(e){var t=pt(e,"string");return"symbol"==typeof t?t:t+""}function pt(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}let ft=1,mt=!1,gt=!1;const vt="ws://",bt="wss://",yt="disconnected",_t=(st.addEventListener,"connecting"),wt="connected",Et="closing",St="reconnecting",kt=_t,xt=wt,At=yt,Ct="message",Tt="frame_timeout",Nt="connect_error",Rt="disconnect_error",Ot="NO_WATCH",It="NO_SCHEMA",Lt="NO_PERMS",Dt="TOO_OLD";class Pt extends st{constructor(e,t=!0,n=null,r=null,i=null,a=!1){super(),dt(this,"url",void 0),dt(this,"autoReconnect",!0),dt(this,"frameTimeout",35e3),dt(this,"metadata",{}),dt(this,"hasBeenOpen",!1),dt(this,"hasReconnected",!1),dt(this,"protocol",null),dt(this,"maxTries",null),dt(this,"tries",0),dt(this,"idAsTimestamp",!1),dt(this,"socket",null),dt(this,"state",yt),dt(this,"framesReceived",0),dt(this,"frameTimer",void 0),dt(this,"reconnectTimer",void 0),dt(this,"disconnectCallBacks",[]),dt(this,"disconnectedAt",0),dt(this,"closingId",0),dt(this,"autoReconnectUrl",null),this.setUrl(e),this.autoReconnect=t,this.protocol=r,this.maxTries=i,this.idAsTimestamp=a,null!==n&&(this.frameTimeout=n)}setUrl(e){e.match(/wss?:\/\//)||(e=self.location.origin.replace(/^http/,"ws")+e),"https:"===self.location.protocol&&e.startsWith(vt)&&(e=bt+e.substr(vt.length)),this.url=e}connect(e={}){if(this.socket)return void ut.error("Socket refusing to connect while another socket exists");this.state!==St&&(this.state=_t),Object.assign(this.metadata,e);const t=this.idAsTimestamp?(new Date).getTime():ft++,n=(0,ct.R_)(this.url,"sockId",t);let r;this._baseLog("connecting",{id:t,url:n.replace(/\?.*/,"")}),this.tries++,r=this.protocol?new WebSocket(n,this.protocol):new WebSocket(n),r.sockId=t,r.metadata=this.metadata,r.onmessage=this._onmessage.bind(this),r.onopen=this._opened.bind(this),r.onerror=this._error.bind(this),r.onclose=this._closed.bind(this),this.socket=r,this.state=_t,this.dispatchEvent(new CustomEvent(kt))}send(e){return!(!this.socket||this.state!==wt)&&(this.socket.send(e),!0)}disconnect(e){e&&this.disconnectCallBacks.push(e);const t=this,n=new Promise((e,n)=>{function r(e){n(e),t.removeEventListener(Nt,r)}this.state===yt&&e(),this.addEventListener(Nt,r),this.disconnectCallBacks.push(()=>{this.removeEventListener(Nt,r),e()})});return this.autoReconnect=!1,this._close(),n}reconnect(e={}){Object.assign(this.metadata,e),this.state!==_t?this.socket?this._close():this.connect(e):this._log("Ignoring reconnect for socket in connecting")}getMetadata(){return this.socket?this.socket.metadata:{}}getId(){return this.socket?this.socket.sockId:0}isConnected(){return this.state===wt}setAutoReconnect(e){this.autoReconnect=e}setAutoReconnectUrl(e){this.autoReconnectUrl=e}_close(){const e=this.socket;if(e){try{this._log("closing"),this.closingId=e.sockId,e.onopen=null,e.onerror=null,e.onmessage=null,e.close()}catch($s){this._log("exception",{e:$s.toString()})}this.state=Et}}_opened(){this._log("opened");const e=(new Date).getTime(),t=this.disconnectedAt;let n=0;t&&(n=e-t),this.hasBeenOpen&&(this.hasReconnected=!0),this.hasBeenOpen=!0,this.state=wt,this.framesReceived=0,this.disconnectedAt=0,this.dispatchEvent(new CustomEvent(xt,{detail:{tries:this.tries,afterMilliseconds:n}})),this.tries=0,this._resetWatchdog(),clearTimeout(this.reconnectTimer)}_onmessage(e){this._resetWatchdog(),this.tries=0,this.framesReceived++,this.dispatchEvent(new CustomEvent(Ct,{detail:e}))}_resetWatchdog(){clearTimeout(this.frameTimer);const e=this.frameTimeout;e&&this.state===wt&&(this.frameTimer=setTimeout(()=>{this._log(`watchdog expired after${e}. Closing`),this._close(),this.dispatchEvent(new CustomEvent(Tt))},e))}_error(){this.closingId=this.socket?this.socket.sockId:0,this._log("error")}_closed(e){const{code:t,reason:n,wasClean:r}=e;this._baseLog("closed",{id:this.closingId||this.socket?.sockId||"unknown",code:t,reason:n,clean:r}),this.closingId=0,this.socket=null,clearTimeout(this.reconnectTimer),clearTimeout(this.frameTimer);const i=this.disconnectCallBacks;while(i.length){const e=i.pop();e&&e.apply(this)}if([wt,Et].includes(this.state)&&(gt=!0),this.disconnectedAt||(this.disconnectedAt=(new Date).getTime()),mt||gt)if(this.autoReconnect){if(this.state=St,this.maxTries&&this.tries>1&&this.tries<=this.maxTries){const e=new CustomEvent(Nt);this.dispatchEvent(e)}if(this.maxTries&&this.tries>this.maxTries)this._log("closed. Will not reconnect (hit max attempts)"),this.state=yt,this.dispatchEvent(new CustomEvent(Rt));else{const e=()=>{this._log("closed. Attempting to reconnect");const e=Math.max(1e3,Math.min(1e3*this.tries,3e4));this.reconnectTimer=setTimeout(()=>{this.connect()},e)};this.autoReconnectUrl?this.autoReconnectUrl().then(t=>{this.setUrl(t),e()}).catch(e=>{ut.error("Failed to fetch socket auto reconnect url",e)}):e()}}else this.state=yt;else{this.autoReconnect=!1,this.state=yt;const e=new CustomEvent(Nt,{detail:{isSafari:lt.nr}});this.dispatchEvent(e),mt=!0}this.state===yt?this.dispatchEvent(new CustomEvent(At)):this.state===St&&this.dispatchEvent(new CustomEvent(kt))}_log(e,t){this._baseLog(e,{state:this.state,id:this.socket?.sockId||0,...t})}_baseLog(e,t){const n=[e],r=Object.entries(t||{});n.unshift("Socket "),r.length&&(n.push(" ("),r.forEach(([e,t],r)=>{0!==r&&n.push(", "),n.push(`${e}=${t}`)}),n.push(")")),ut.log(n.join(""))}}var Mt=a(4364),Bt={emits:["close"],props:{value:{type:Object,required:!0}},data(){return{socket:null,terminal:null,fitAddon:null,searchAddon:null,webglAddon:null,isOpen:!1,isOpening:!1,backlog:[],firstTime:!0,queue:[]}},computed:{xtermConfig(){return{allowProposedApi:!0,cursorBlink:!0,useStyle:!0,fontSize:12}}},watch:{queue:{handler:Me()(async function(e){if(0===e.length)return;const t=await Promise.all(e);(t||[]).forEach(e=>{this.terminal.write(e)}),this.queue=[]},10),deep:!0}},beforeUnmount(){this.close()},async mounted(){await this.setupTerminal(),await this.connect()},methods:{async setupTerminal(){const e=getComputedStyle(document.querySelector("body")),t=await a.e(935).then(a.t.bind(a,84594,23)),n=await(0,se.kR)({fit:a.e(935).then(a.t.bind(a,34462,23)),webgl:a.e(935).then(a.t.bind(a,90382,23)),weblinks:a.e(935).then(a.t.bind(a,72338,23)),search:a.e(935).then(a.t.bind(a,720,23))}),r=new t.Terminal({theme:{background:e.getPropertyValue("--terminal-bg").trim(),cursor:e.getPropertyValue("--terminal-cursor").trim(),foreground:e.getPropertyValue("--terminal-text").trim()},...this.xtermConfig});this.fitAddon=new n.fit.FitAddon,this.searchAddon=new n.search.SearchAddon;try{this.webglAddon=new n.webgl.WebGlAddon}catch($s){this.webglAddon=null}r.loadAddon(this.fitAddon),r.loadAddon(this.searchAddon),r.loadAddon(new n.weblinks.WebLinksAddon),r.open(this.$refs.xterm),this.webglAddon&&r.loadAddon(this.webglAddon),this.fit(),this.flush(),r.onData(e=>{const t=this.str2ab(e);this.write(t)}),this.terminal=r},str2ab(e){const t=new TextEncoder;return t.encode(e)},write(e){this.isOpen?this.socket.send(e):this.backlog.push(e)},clear(){this.terminal.clear()},getSocketUrl(){return`${this.value?.getSerialConsolePath}`},async connect(){this.socket&&(await this.socket.disconnect(),this.socket=null,this.terminal.reset());const e=this.getSocketUrl();e&&(this.socket=new Pt(e),this.socket.addEventListener(kt,e=>{this.isOpen=!1,this.isOpening=!0}),this.socket.addEventListener(Nt,e=>{this.isOpen=!1,this.isOpening=!1,Mt.error("Connect Error",e)}),this.socket.addEventListener(xt,e=>{this.isOpen=!0,this.isOpening=!1,this.show&&(this.fit(),this.flush()),this.firstTime&&(this.socket.send(this.str2ab("\n")),this.firstTime=!1)}),this.socket.addEventListener(At,e=>{this.isOpen=!1,this.isOpening=!1,this.$emit("close")}),this.socket.addEventListener(Ct,e=>{this.queue.push(e.detail.data.text())}),this.socket.connect(),this.terminal.focus())},flush(){const e=this.backlog.slice();this.backlog=[];for(const t of e)this.socket.send(t)},fit(e){if(!this.fitAddon)return;this.fitAddon.fit();const{rows:t,cols:n}=this.fitAddon.proposeDimensions();if(!this.isOpen)return;const r=JSON.stringify({Width:n,Height:t});this.socket.send(this.str2ab(r))},close(){this.socket&&this.socket.disconnect(),this.terminal&&this.terminal.dispose()}}};a(44166);const Ft=(0,u.A)(Bt,[["render",De]]);var $t=Ft,Ut={components:{SerialConsole:$t,Loading:Oe.A},async fetch(){this.rows=await this.$store.dispatch("harvester/findAll",{type:l.rk.VMI})},data(){return{uid:this.$route.params.uid}},computed:{vmi(){const e=this.$store.getters["harvester/all"](l.rk.VMI)||[],t=e.find(e=>e?.metadata?.ownerReferences?.[0]?.uid===this.uid);return t}},mounted(){window.addEventListener("beforeunload",()=>{this.$refs.serialConsole.close()})},head(){return{title:this.vmi?.metadata?.name}}};a(60226);const jt=(0,u.A)(Ut,[["render",Re],["__scopeId","data-v-2efbfdaf"]]);var Vt=jt;function Kt(e,t,n,r,a,o){const s=(0,i.resolveComponent)("Loading"),l=(0,i.resolveComponent)("NovncConsoleWrapper");return e.$fetchState.pending?((0,i.openBlock)(),(0,i.createBlock)(s,{key:0})):((0,i.openBlock)(),(0,i.createBlock)(l,{key:1,ref:"console",value:o.vmi,"onUpdate:value":t[0]||(t[0]=e=>o.vmi=e),class:"novnc-wrapper"},null,8,["value"]))}const Gt={id:"app"},Ht={class:"vm-console"},zt={class:"combination-keys"},qt={class:"btn btn-sm bg-primary"},Xt={class:"btn btn-sm bg-primary"},Wt=["onClick"],Yt={key:1};function Qt(e,t,n,r,a,o){const s=(0,i.resolveComponent)("novnc-console-item"),l=(0,i.resolveComponent)("v-dropdown"),c=(0,i.resolveComponent)("NovncConsoleCustomKeys"),u=(0,i.resolveComponent)("NovncConsole");return(0,i.openBlock)(),(0,i.createElementBlock)("div",Gt,[(0,i.createElementVNode)("div",Ht,[(0,i.createElementVNode)("div",zt,[(0,i.createVNode)(l,{ref:"popover",placement:"top",trigger:"click",container:!1,onAutoHide:t[0]||(t[0]=e=>a.keysRecord=[])},{popper:(0,i.withCtx)(()=>[(0,i.createVNode)(s,{items:o.keymap,path:a.keysRecord,pos:0,onUpdate:o.update,onSendKeys:o.sendKeys},null,8,["items","path","onUpdate","onSendKeys"])]),default:(0,i.withCtx)(()=>[(0,i.createElementVNode)("button",qt,(0,i.toDisplayString)(e.t("harvester.virtualMachine.detail.console.shortcutKeys")),1)]),_:1},512),o.hasSoftRebootAction?((0,i.openBlock)(),(0,i.createElementBlock)("button",{key:0,class:"btn btn-sm bg-primary",onClick:t[1]||(t[1]=(...e)=>o.softReboot&&o.softReboot(...e))},(0,i.toDisplayString)(e.t("harvester.action.softreboot")),1)):(0,i.createCommentVNode)("",!0),(0,i.createElementVNode)("button",{class:"btn btn-sm bg-primary",onClick:t[2]||(t[2]=(...e)=>o.reconnect&&o.reconnect(...e))},(0,i.toDisplayString)(e.t("harvester.action.reconnect")),1),a.hideCustomKeysBar?(0,i.createCommentVNode)("",!0):((0,i.openBlock)(),(0,i.createBlock)(l,{key:1,ref:"customKeyPopover",placement:"top",trigger:"click",container:!1},{popper:(0,i.withCtx)(()=>[(0,i.createElementVNode)("div",null,[(0,i.createElementVNode)("button",{class:"btn btn-sm bg-primary",onClick:t[3]||(t[3]=(...e)=>o.showKeysModal&&o.showKeysModal(...e))},(0,i.toDisplayString)(e.t("harvester.virtualMachine.detail.console.management")),1)]),t[4]||(t[4]=(0,i.createElementVNode)("hr",null,null,-1)),((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(o.preferredShortcutKeys,(e,t)=>((0,i.openBlock)(),(0,i.createElementBlock)("div",{key:t},[(0,i.createElementVNode)("button",{class:"btn btn-sm bg-primary",onClick:t=>o.sendCustomKeys(e.value)},(0,i.toDisplayString)(e.label),9,Wt)]))),128))]),default:(0,i.withCtx)(()=>[(0,i.createElementVNode)("button",Xt,(0,i.toDisplayString)(e.t("harvester.virtualMachine.detail.console.customShortcutKeys")),1)]),_:1},512)),a.renderKeysModal?((0,i.openBlock)(),(0,i.createBlock)(c,{key:2,"current-user":a.currentUser,onClose:o.hideKeysModal},null,8,["current-user","onClose"])):(0,i.createCommentVNode)("",!0)]),o.url&&!o.isDown?((0,i.openBlock)(),(0,i.createBlock)(u,{key:0,ref:"novncConsole",url:o.url},null,8,["url"])):(0,i.createCommentVNode)("",!0),o.isDown?((0,i.openBlock)(),(0,i.createElementBlock)("p",Yt,(0,i.toDisplayString)(e.t("harvester.virtualMachine.detail.console.down")),1)):(0,i.createCommentVNode)("",!0)])])}var Jt=a(92043),Zt={XK_VoidSymbol:16777215,XK_BackSpace:65288,XK_Tab:65289,XK_Linefeed:65290,XK_Clear:65291,XK_Return:65293,XK_Pause:65299,XK_Scroll_Lock:65300,XK_Sys_Req:65301,XK_Escape:65307,XK_Delete:65535,XK_Multi_key:65312,XK_Codeinput:65335,XK_SingleCandidate:65340,XK_MultipleCandidate:65341,XK_PreviousCandidate:65342,XK_Kanji:65313,XK_Muhenkan:65314,XK_Henkan_Mode:65315,XK_Henkan:65315,XK_Romaji:65316,XK_Hiragana:65317,XK_Katakana:65318,XK_Hiragana_Katakana:65319,XK_Zenkaku:65320,XK_Hankaku:65321,XK_Zenkaku_Hankaku:65322,XK_Touroku:65323,XK_Massyo:65324,XK_Kana_Lock:65325,XK_Kana_Shift:65326,XK_Eisu_Shift:65327,XK_Eisu_toggle:65328,XK_Kanji_Bangou:65335,XK_Zen_Koho:65341,XK_Mae_Koho:65342,XK_Home:65360,XK_Left:65361,XK_Up:65362,XK_Right:65363,XK_Down:65364,XK_Prior:65365,XK_Page_Up:65365,XK_Next:65366,XK_Page_Down:65366,XK_End:65367,XK_Begin:65368,XK_Select:65376,XK_Print:65377,XK_Execute:65378,XK_Insert:65379,XK_Undo:65381,XK_Redo:65382,XK_Menu:65383,XK_Find:65384,XK_Cancel:65385,XK_Help:65386,XK_Break:65387,XK_Mode_switch:65406,XK_script_switch:65406,XK_Num_Lock:65407,XK_KP_Space:65408,XK_KP_Tab:65417,XK_KP_Enter:65421,XK_KP_F1:65425,XK_KP_F2:65426,XK_KP_F3:65427,XK_KP_F4:65428,XK_KP_Home:65429,XK_KP_Left:65430,XK_KP_Up:65431,XK_KP_Right:65432,XK_KP_Down:65433,XK_KP_Prior:65434,XK_KP_Page_Up:65434,XK_KP_Next:65435,XK_KP_Page_Down:65435,XK_KP_End:65436,XK_KP_Begin:65437,XK_KP_Insert:65438,XK_KP_Delete:65439,XK_KP_Equal:65469,XK_KP_Multiply:65450,XK_KP_Add:65451,XK_KP_Separator:65452,XK_KP_Subtract:65453,XK_KP_Decimal:65454,XK_KP_Divide:65455,XK_KP_0:65456,XK_KP_1:65457,XK_KP_2:65458,XK_KP_3:65459,XK_KP_4:65460,XK_KP_5:65461,XK_KP_6:65462,XK_KP_7:65463,XK_KP_8:65464,XK_KP_9:65465,XK_F1:65470,XK_F2:65471,XK_F3:65472,XK_F4:65473,XK_F5:65474,XK_F6:65475,XK_F7:65476,XK_F8:65477,XK_F9:65478,XK_F10:65479,XK_F11:65480,XK_L1:65480,XK_F12:65481,XK_L2:65481,XK_F13:65482,XK_L3:65482,XK_F14:65483,XK_L4:65483,XK_F15:65484,XK_L5:65484,XK_F16:65485,XK_L6:65485,XK_F17:65486,XK_L7:65486,XK_F18:65487,XK_L8:65487,XK_F19:65488,XK_L9:65488,XK_F20:65489,XK_L10:65489,XK_F21:65490,XK_R1:65490,XK_F22:65491,XK_R2:65491,XK_F23:65492,XK_R3:65492,XK_F24:65493,XK_R4:65493,XK_F25:65494,XK_R5:65494,XK_F26:65495,XK_R6:65495,XK_F27:65496,XK_R7:65496,XK_F28:65497,XK_R8:65497,XK_F29:65498,XK_R9:65498,XK_F30:65499,XK_R10:65499,XK_F31:65500,XK_R11:65500,XK_F32:65501,XK_R12:65501,XK_F33:65502,XK_R13:65502,XK_F34:65503,XK_R14:65503,XK_F35:65504,XK_R15:65504,XK_Shift_L:65505,XK_Shift_R:65506,XK_Control_L:65507,XK_Control_R:65508,XK_Caps_Lock:65509,XK_Shift_Lock:65510,XK_Meta_L:65511,XK_Meta_R:65512,XK_Alt_L:65513,XK_Alt_R:65514,XK_Super_L:65515,XK_Super_R:65516,XK_Hyper_L:65517,XK_Hyper_R:65518,XK_ISO_Level3_Shift:65027,XK_ISO_Next_Group:65032,XK_ISO_Prev_Group:65034,XK_ISO_First_Group:65036,XK_ISO_Last_Group:65038,XK_space:32,XK_exclam:33,XK_quotedbl:34,XK_numbersign:35,XK_dollar:36,XK_percent:37,XK_ampersand:38,XK_apostrophe:39,XK_quoteright:39,XK_parenleft:40,XK_parenright:41,XK_asterisk:42,XK_plus:43,XK_comma:44,XK_minus:45,XK_period:46,XK_slash:47,XK_0:48,XK_1:49,XK_2:50,XK_3:51,XK_4:52,XK_5:53,XK_6:54,XK_7:55,XK_8:56,XK_9:57,XK_colon:58,XK_semicolon:59,XK_less:60,XK_equal:61,XK_greater:62,XK_question:63,XK_at:64,XK_A:65,XK_B:66,XK_C:67,XK_D:68,XK_E:69,XK_F:70,XK_G:71,XK_H:72,XK_I:73,XK_J:74,XK_K:75,XK_L:76,XK_M:77,XK_N:78,XK_O:79,XK_P:80,XK_Q:81,XK_R:82,XK_S:83,XK_T:84,XK_U:85,XK_V:86,XK_W:87,XK_X:88,XK_Y:89,XK_Z:90,XK_bracketleft:91,XK_backslash:92,XK_bracketright:93,XK_asciicircum:94,XK_underscore:95,XK_grave:96,XK_quoteleft:96,XK_a:97,XK_b:98,XK_c:99,XK_d:100,XK_e:101,XK_f:102,XK_g:103,XK_h:104,XK_i:105,XK_j:106,XK_k:107,XK_l:108,XK_m:109,XK_n:110,XK_o:111,XK_p:112,XK_q:113,XK_r:114,XK_s:115,XK_t:116,XK_u:117,XK_v:118,XK_w:119,XK_x:120,XK_y:121,XK_z:122,XK_braceleft:123,XK_bar:124,XK_braceright:125,XK_asciitilde:126,XK_nobreakspace:160,XK_exclamdown:161,XK_cent:162,XK_sterling:163,XK_currency:164,XK_yen:165,XK_brokenbar:166,XK_section:167,XK_diaeresis:168,XK_copyright:169,XK_ordfeminine:170,XK_guillemotleft:171,XK_notsign:172,XK_hyphen:173,XK_registered:174,XK_macron:175,XK_degree:176,XK_plusminus:177,XK_twosuperior:178,XK_threesuperior:179,XK_acute:180,XK_mu:181,XK_paragraph:182,XK_periodcentered:183,XK_cedilla:184,XK_onesuperior:185,XK_masculine:186,XK_guillemotright:187,XK_onequarter:188,XK_onehalf:189,XK_threequarters:190,XK_questiondown:191,XK_Agrave:192,XK_Aacute:193,XK_Acircumflex:194,XK_Atilde:195,XK_Adiaeresis:196,XK_Aring:197,XK_AE:198,XK_Ccedilla:199,XK_Egrave:200,XK_Eacute:201,XK_Ecircumflex:202,XK_Ediaeresis:203,XK_Igrave:204,XK_Iacute:205,XK_Icircumflex:206,XK_Idiaeresis:207,XK_ETH:208,XK_Eth:208,XK_Ntilde:209,XK_Ograve:210,XK_Oacute:211,XK_Ocircumflex:212,XK_Otilde:213,XK_Odiaeresis:214,XK_multiply:215,XK_Oslash:216,XK_Ooblique:216,XK_Ugrave:217,XK_Uacute:218,XK_Ucircumflex:219,XK_Udiaeresis:220,XK_Yacute:221,XK_THORN:222,XK_Thorn:222,XK_ssharp:223,XK_agrave:224,XK_aacute:225,XK_acircumflex:226,XK_atilde:227,XK_adiaeresis:228,XK_aring:229,XK_ae:230,XK_ccedilla:231,XK_egrave:232,XK_eacute:233,XK_ecircumflex:234,XK_ediaeresis:235,XK_igrave:236,XK_iacute:237,XK_icircumflex:238,XK_idiaeresis:239,XK_eth:240,XK_ntilde:241,XK_ograve:242,XK_oacute:243,XK_ocircumflex:244,XK_otilde:245,XK_odiaeresis:246,XK_division:247,XK_oslash:248,XK_ooblique:248,XK_ugrave:249,XK_uacute:250,XK_ucircumflex:251,XK_udiaeresis:252,XK_yacute:253,XK_thorn:254,XK_ydiaeresis:255,XK_Hangul:65329,XK_Hangul_Hanja:65332,XK_Hangul_Jeonja:65336,XF86XK_ModeLock:269025025,XF86XK_MonBrightnessUp:269025026,XF86XK_MonBrightnessDown:269025027,XF86XK_KbdLightOnOff:269025028,XF86XK_KbdBrightnessUp:269025029,XF86XK_KbdBrightnessDown:269025030,XF86XK_Standby:269025040,XF86XK_AudioLowerVolume:269025041,XF86XK_AudioMute:269025042,XF86XK_AudioRaiseVolume:269025043,XF86XK_AudioPlay:269025044,XF86XK_AudioStop:269025045,XF86XK_AudioPrev:269025046,XF86XK_AudioNext:269025047,XF86XK_HomePage:269025048,XF86XK_Mail:269025049,XF86XK_Start:269025050,XF86XK_Search:269025051,XF86XK_AudioRecord:269025052,XF86XK_Calculator:269025053,XF86XK_Memo:269025054,XF86XK_ToDoList:269025055,XF86XK_Calendar:269025056,XF86XK_PowerDown:269025057,XF86XK_ContrastAdjust:269025058,XF86XK_RockerUp:269025059,XF86XK_RockerDown:269025060,XF86XK_RockerEnter:269025061,XF86XK_Back:269025062,XF86XK_Forward:269025063,XF86XK_Stop:269025064,XF86XK_Refresh:269025065,XF86XK_PowerOff:269025066,XF86XK_WakeUp:269025067,XF86XK_Eject:269025068,XF86XK_ScreenSaver:269025069,XF86XK_WWW:269025070,XF86XK_Sleep:269025071,XF86XK_Favorites:269025072,XF86XK_AudioPause:269025073,XF86XK_AudioMedia:269025074,XF86XK_MyComputer:269025075,XF86XK_VendorHome:269025076,XF86XK_LightBulb:269025077,XF86XK_Shop:269025078,XF86XK_History:269025079,XF86XK_OpenURL:269025080,XF86XK_AddFavorite:269025081,XF86XK_HotLinks:269025082,XF86XK_BrightnessAdjust:269025083,XF86XK_Finance:269025084,XF86XK_Community:269025085,XF86XK_AudioRewind:269025086,XF86XK_BackForward:269025087,XF86XK_Launch0:269025088,XF86XK_Launch1:269025089,XF86XK_Launch2:269025090,XF86XK_Launch3:269025091,XF86XK_Launch4:269025092,XF86XK_Launch5:269025093,XF86XK_Launch6:269025094,XF86XK_Launch7:269025095,XF86XK_Launch8:269025096,XF86XK_Launch9:269025097,XF86XK_LaunchA:269025098,XF86XK_LaunchB:269025099,XF86XK_LaunchC:269025100,XF86XK_LaunchD:269025101,XF86XK_LaunchE:269025102,XF86XK_LaunchF:269025103,XF86XK_ApplicationLeft:269025104,XF86XK_ApplicationRight:269025105,XF86XK_Book:269025106,XF86XK_CD:269025107,XF86XK_Calculater:269025108,XF86XK_Clear:269025109,XF86XK_Close:269025110,XF86XK_Copy:269025111,XF86XK_Cut:269025112,XF86XK_Display:269025113,XF86XK_DOS:269025114,XF86XK_Documents:269025115,XF86XK_Excel:269025116,XF86XK_Explorer:269025117,XF86XK_Game:269025118,XF86XK_Go:269025119,XF86XK_iTouch:269025120,XF86XK_LogOff:269025121,XF86XK_Market:269025122,XF86XK_Meeting:269025123,XF86XK_MenuKB:269025125,XF86XK_MenuPB:269025126,XF86XK_MySites:269025127,XF86XK_New:269025128,XF86XK_News:269025129,XF86XK_OfficeHome:269025130,XF86XK_Open:269025131,XF86XK_Option:269025132,XF86XK_Paste:269025133,XF86XK_Phone:269025134,XF86XK_Q:269025136,XF86XK_Reply:269025138,XF86XK_Reload:269025139,XF86XK_RotateWindows:269025140,XF86XK_RotationPB:269025141,XF86XK_RotationKB:269025142,XF86XK_Save:269025143,XF86XK_ScrollUp:269025144,XF86XK_ScrollDown:269025145,XF86XK_ScrollClick:269025146,XF86XK_Send:269025147,XF86XK_Spell:269025148,XF86XK_SplitScreen:269025149,XF86XK_Support:269025150,XF86XK_TaskPane:269025151,XF86XK_Terminal:269025152,XF86XK_Tools:269025153,XF86XK_Travel:269025154,XF86XK_UserPB:269025156,XF86XK_User1KB:269025157,XF86XK_User2KB:269025158,XF86XK_Video:269025159,XF86XK_WheelButton:269025160,XF86XK_Word:269025161,XF86XK_Xfer:269025162,XF86XK_ZoomIn:269025163,XF86XK_ZoomOut:269025164,XF86XK_Away:269025165,XF86XK_Messenger:269025166,XF86XK_WebCam:269025167,XF86XK_MailForward:269025168,XF86XK_Pictures:269025169,XF86XK_Music:269025170,XF86XK_Battery:269025171,XF86XK_Bluetooth:269025172,XF86XK_WLAN:269025173,XF86XK_UWB:269025174,XF86XK_AudioForward:269025175,XF86XK_AudioRepeat:269025176,XF86XK_AudioRandomPlay:269025177,XF86XK_Subtitle:269025178,XF86XK_AudioCycleTrack:269025179,XF86XK_CycleAngle:269025180,XF86XK_FrameBack:269025181,XF86XK_FrameForward:269025182,XF86XK_Time:269025183,XF86XK_Select:269025184,XF86XK_View:269025185,XF86XK_TopMenu:269025186,XF86XK_Red:269025187,XF86XK_Green:269025188,XF86XK_Yellow:269025189,XF86XK_Blue:269025190,XF86XK_Suspend:269025191,XF86XK_Hibernate:269025192,XF86XK_TouchpadToggle:269025193,XF86XK_TouchpadOn:269025200,XF86XK_TouchpadOff:269025201,XF86XK_AudioMicMute:269025202,XF86XK_Switch_VT_1:269024769,XF86XK_Switch_VT_2:269024770,XF86XK_Switch_VT_3:269024771,XF86XK_Switch_VT_4:269024772,XF86XK_Switch_VT_5:269024773,XF86XK_Switch_VT_6:269024774,XF86XK_Switch_VT_7:269024775,XF86XK_Switch_VT_8:269024776,XF86XK_Switch_VT_9:269024777,XF86XK_Switch_VT_10:269024778,XF86XK_Switch_VT_11:269024779,XF86XK_Switch_VT_12:269024780,XF86XK_Ungrab:269024800,XF86XK_ClearGrab:269024801,XF86XK_Next_VMode:269024802,XF86XK_Prev_VMode:269024803,XF86XK_LogWindowTree:269024804,XF86XK_LogGrabInfo:269024805};const en={256:960,257:992,258:451,259:483,260:417,261:433,262:454,263:486,264:710,265:742,266:709,267:741,268:456,269:488,270:463,271:495,272:464,273:496,274:938,275:954,278:972,279:1004,280:458,281:490,282:460,283:492,284:728,285:760,286:683,287:699,288:725,289:757,290:939,291:955,292:678,293:694,294:673,295:689,296:933,297:949,298:975,299:1007,302:967,303:999,304:681,305:697,308:684,309:700,310:979,311:1011,312:930,313:453,314:485,315:934,316:950,317:421,318:437,321:419,322:435,323:465,324:497,325:977,326:1009,327:466,328:498,330:957,331:959,332:978,333:1010,336:469,337:501,338:5052,339:5053,340:448,341:480,342:931,343:947,344:472,345:504,346:422,347:438,348:734,349:766,350:426,351:442,352:425,353:441,354:478,355:510,356:427,357:443,358:940,359:956,360:989,361:1021,362:990,363:1022,364:733,365:765,366:473,367:505,368:475,369:507,370:985,371:1017,376:5054,377:428,378:444,379:431,380:447,381:430,382:446,402:2294,466:16777681,711:439,728:418,729:511,731:434,733:445,901:1966,902:1953,904:1954,905:1955,906:1956,908:1959,910:1960,911:1963,912:1974,913:1985,914:1986,915:1987,916:1988,917:1989,918:1990,919:1991,920:1992,921:1993,922:1994,923:1995,924:1996,925:1997,926:1998,927:1999,928:2e3,929:2001,931:2002,932:2004,933:2005,934:2006,935:2007,936:2008,937:2009,938:1957,939:1961,940:1969,941:1970,942:1971,943:1972,944:1978,945:2017,946:2018,947:2019,948:2020,949:2021,950:2022,951:2023,952:2024,953:2025,954:2026,955:2027,956:2028,957:2029,958:2030,959:2031,960:2032,961:2033,962:2035,963:2034,964:2036,965:2037,966:2038,967:2039,968:2040,969:2041,970:1973,971:1977,972:1975,973:1976,974:1979,1025:1715,1026:1713,1027:1714,1028:1716,1029:1717,1030:1718,1031:1719,1032:1720,1033:1721,1034:1722,1035:1723,1036:1724,1038:1726,1039:1727,1040:1761,1041:1762,1042:1783,1043:1767,1044:1764,1045:1765,1046:1782,1047:1786,1048:1769,1049:1770,1050:1771,1051:1772,1052:1773,1053:1774,1054:1775,1055:1776,1056:1778,1057:1779,1058:1780,1059:1781,1060:1766,1061:1768,1062:1763,1063:1790,1064:1787,1065:1789,1066:1791,1067:1785,1068:1784,1069:1788,1070:1760,1071:1777,1072:1729,1073:1730,1074:1751,1075:1735,1076:1732,1077:1733,1078:1750,1079:1754,1080:1737,1081:1738,1082:1739,1083:1740,1084:1741,1085:1742,1086:1743,1087:1744,1088:1746,1089:1747,1090:1748,1091:1749,1092:1734,1093:1736,1094:1731,1095:1758,1096:1755,1097:1757,1098:1759,1099:1753,1100:1752,1101:1756,1102:1728,1103:1745,1105:1699,1106:1697,1107:1698,1108:1700,1109:1701,1110:1702,1111:1703,1112:1704,1113:1705,1114:1706,1115:1707,1116:1708,1118:1710,1119:1711,1168:1725,1169:1709,1488:3296,1489:3297,1490:3298,1491:3299,1492:3300,1493:3301,1494:3302,1495:3303,1496:3304,1497:3305,1498:3306,1499:3307,1500:3308,1501:3309,1502:3310,1503:3311,1504:3312,1505:3313,1506:3314,1507:3315,1508:3316,1509:3317,1510:3318,1511:3319,1512:3320,1513:3321,1514:3322,1548:1452,1563:1467,1567:1471,1569:1473,1570:1474,1571:1475,1572:1476,1573:1477,1574:1478,1575:1479,1576:1480,1577:1481,1578:1482,1579:1483,1580:1484,1581:1485,1582:1486,1583:1487,1584:1488,1585:1489,1586:1490,1587:1491,1588:1492,1589:1493,1590:1494,1591:1495,1592:1496,1593:1497,1594:1498,1600:1504,1601:1505,1602:1506,1603:1507,1604:1508,1605:1509,1606:1510,1607:1511,1608:1512,1609:1513,1610:1514,1611:1515,1612:1516,1613:1517,1614:1518,1615:1519,1616:1520,1617:1521,1618:1522,3585:3489,3586:3490,3587:3491,3588:3492,3589:3493,3590:3494,3591:3495,3592:3496,3593:3497,3594:3498,3595:3499,3596:3500,3597:3501,3598:3502,3599:3503,3600:3504,3601:3505,3602:3506,3603:3507,3604:3508,3605:3509,3606:3510,3607:3511,3608:3512,3609:3513,3610:3514,3611:3515,3612:3516,3613:3517,3614:3518,3615:3519,3616:3520,3617:3521,3618:3522,3619:3523,3620:3524,3621:3525,3622:3526,3623:3527,3624:3528,3625:3529,3626:3530,3627:3531,3628:3532,3629:3533,3630:3534,3631:3535,3632:3536,3633:3537,3634:3538,3635:3539,3636:3540,3637:3541,3638:3542,3639:3543,3640:3544,3641:3545,3642:3546,3647:3551,3648:3552,3649:3553,3650:3554,3651:3555,3652:3556,3653:3557,3654:3558,3655:3559,3656:3560,3657:3561,3658:3562,3659:3563,3660:3564,3661:3565,3664:3568,3665:3569,3666:3570,3667:3571,3668:3572,3669:3573,3670:3574,3671:3575,3672:3576,3673:3577,8194:2722,8195:2721,8196:2723,8197:2724,8199:2725,8200:2726,8201:2727,8202:2728,8210:2747,8211:2730,8212:2729,8213:1967,8215:3295,8216:2768,8217:2769,8218:2813,8220:2770,8221:2771,8222:2814,8224:2801,8225:2802,8226:2790,8229:2735,8230:2734,8240:2773,8242:2774,8243:2775,8248:2812,8254:1150,8361:3839,8364:8364,8453:2744,8470:1712,8471:2811,8478:2772,8482:2761,8531:2736,8532:2737,8533:2738,8534:2739,8535:2740,8536:2741,8537:2742,8538:2743,8539:2755,8540:2756,8541:2757,8542:2758,8592:2299,8593:2300,8594:2301,8595:2302,8658:2254,8660:2253,8706:2287,8711:2245,8728:3018,8730:2262,8733:2241,8734:2242,8743:2270,8744:2271,8745:2268,8746:2269,8747:2239,8756:2240,8764:2248,8771:2249,8773:16785992,8800:2237,8801:2255,8804:2236,8805:2238,8834:2266,8835:2267,8866:3068,8867:3036,8868:3010,8869:3022,8968:3027,8970:3012,8981:2810,8992:2212,8993:2213,9109:3020,9115:2219,9117:2220,9118:2221,9120:2222,9121:2215,9123:2216,9124:2217,9126:2218,9128:2223,9132:2224,9143:2209,9146:2543,9147:2544,9148:2546,9149:2547,9225:2530,9226:2533,9227:2537,9228:2531,9229:2532,9251:2732,9252:2536,9472:2211,9474:2214,9484:2210,9488:2539,9492:2541,9496:2538,9500:2548,9508:2549,9516:2551,9524:2550,9532:2542,9618:2529,9642:2791,9643:2785,9644:2779,9645:2786,9646:2783,9647:2767,9650:2792,9651:2787,9654:2781,9655:2765,9660:2793,9661:2788,9664:2780,9665:2764,9670:2528,9675:2766,9679:2782,9702:2784,9734:2789,9742:2809,9747:2762,9756:2794,9758:2795,9792:2808,9794:2807,9827:2796,9829:2798,9830:2797,9837:2806,9839:2805,10003:2803,10007:2804,10013:2777,10016:2800,10216:2748,10217:2750,12289:1188,12290:1185,12300:1186,12301:1187,12443:1246,12444:1247,12449:1191,12450:1201,12451:1192,12452:1202,12453:1193,12454:1203,12455:1194,12456:1204,12457:1195,12458:1205,12459:1206,12461:1207,12463:1208,12465:1209,12467:1210,12469:1211,12471:1212,12473:1213,12475:1214,12477:1215,12479:1216,12481:1217,12483:1199,12484:1218,12486:1219,12488:1220,12490:1221,12491:1222,12492:1223,12493:1224,12494:1225,12495:1226,12498:1227,12501:1228,12504:1229,12507:1230,12510:1231,12511:1232,12512:1233,12513:1234,12514:1235,12515:1196,12516:1236,12517:1197,12518:1237,12519:1198,12520:1238,12521:1239,12522:1240,12523:1241,12524:1242,12525:1243,12527:1244,12530:1190,12531:1245,12539:1189,12540:1200};var tn={lookup(e){if(e>=32&&e<=255)return e;const t=en[e];return void 0!==t?t:16777216|e}},nn={8:"Backspace",9:"Tab",10:"NumpadClear",12:"Numpad5",13:"Enter",16:"ShiftLeft",17:"ControlLeft",18:"AltLeft",19:"Pause",20:"CapsLock",21:"Lang1",25:"Lang2",27:"Escape",28:"Convert",29:"NonConvert",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",41:"Select",44:"PrintScreen",45:"Insert",46:"Delete",47:"Help",48:"Digit0",49:"Digit1",50:"Digit2",51:"Digit3",52:"Digit4",53:"Digit5",54:"Digit6",55:"Digit7",56:"Digit8",57:"Digit9",91:"MetaLeft",92:"MetaRight",93:"ContextMenu",95:"Sleep",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9",106:"NumpadMultiply",107:"NumpadAdd",108:"NumpadDecimal",109:"NumpadSubtract",110:"NumpadDecimal",111:"NumpadDivide",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",124:"F13",125:"F14",126:"F15",127:"F16",128:"F17",129:"F18",130:"F19",131:"F20",132:"F21",133:"F22",134:"F23",135:"F24",144:"NumLock",145:"ScrollLock",166:"BrowserBack",167:"BrowserForward",168:"BrowserRefresh",169:"BrowserStop",170:"BrowserSearch",171:"BrowserFavorites",172:"BrowserHome",173:"AudioVolumeMute",174:"AudioVolumeDown",175:"AudioVolumeUp",176:"MediaTrackNext",177:"MediaTrackPrevious",178:"MediaStop",179:"MediaPlayPause",180:"LaunchMail",181:"MediaSelect",182:"LaunchApp1",183:"LaunchApp2",225:"AltRight"},rn={Backspace:"Backspace",AltLeft:"Alt",AltRight:"Alt",CapsLock:"CapsLock",ContextMenu:"ContextMenu",ControlLeft:"Control",ControlRight:"Control",Enter:"Enter",MetaLeft:"Meta",MetaRight:"Meta",ShiftLeft:"Shift",ShiftRight:"Shift",Tab:"Tab",Delete:"Delete",End:"End",Help:"Help",Home:"Home",Insert:"Insert",PageDown:"PageDown",PageUp:"PageUp",ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",ArrowUp:"ArrowUp",NumLock:"NumLock",NumpadBackspace:"Backspace",NumpadClear:"Clear",Escape:"Escape",F1:"F1",F2:"F2",F3:"F3",F4:"F4",F5:"F5",F6:"F6",F7:"F7",F8:"F8",F9:"F9",F10:"F10",F11:"F11",F12:"F12",F13:"F13",F14:"F14",F15:"F15",F16:"F16",F17:"F17",F18:"F18",F19:"F19",F20:"F20",F21:"F21",F22:"F22",F23:"F23",F24:"F24",F25:"F25",F26:"F26",F27:"F27",F28:"F28",F29:"F29",F30:"F30",F31:"F31",F32:"F32",F33:"F33",F34:"F34",F35:"F35",PrintScreen:"PrintScreen",ScrollLock:"ScrollLock",Pause:"Pause",BrowserBack:"BrowserBack",BrowserFavorites:"BrowserFavorites",BrowserForward:"BrowserForward",BrowserHome:"BrowserHome",BrowserRefresh:"BrowserRefresh",BrowserSearch:"BrowserSearch",BrowserStop:"BrowserStop",Eject:"Eject",LaunchApp1:"LaunchMyComputer",LaunchApp2:"LaunchCalendar",LaunchMail:"LaunchMail",MediaPlayPause:"MediaPlay",MediaStop:"MediaStop",MediaTrackNext:"MediaTrackNext",MediaTrackPrevious:"MediaTrackPrevious",Power:"Power",Sleep:"Sleep",AudioVolumeDown:"AudioVolumeDown",AudioVolumeMute:"AudioVolumeMute",AudioVolumeUp:"AudioVolumeUp",WakeUp:"WakeUp"};const an={};function on(e,t){if(void 0===t)throw new Error('Undefined keysym for key "'+e+'"');if(e in an)throw new Error('Duplicate entry for key "'+e+'"');an[e]=[t,t,t,t]}function sn(e,t,n){if(void 0===t)throw new Error('Undefined keysym for key "'+e+'"');if(void 0===n)throw new Error('Undefined keysym for key "'+e+'"');if(e in an)throw new Error('Duplicate entry for key "'+e+'"');an[e]=[t,t,n,t]}function ln(e,t,n){if(void 0===t)throw new Error('Undefined keysym for key "'+e+'"');if(void 0===n)throw new Error('Undefined keysym for key "'+e+'"');if(e in an)throw new Error('Duplicate entry for key "'+e+'"');an[e]=[t,t,t,n]}sn("Alt",Zt.XK_Alt_L,Zt.XK_Alt_R),on("AltGraph",Zt.XK_ISO_Level3_Shift),on("CapsLock",Zt.XK_Caps_Lock),sn("Control",Zt.XK_Control_L,Zt.XK_Control_R),sn("Meta",Zt.XK_Super_L,Zt.XK_Super_R),on("NumLock",Zt.XK_Num_Lock),on("ScrollLock",Zt.XK_Scroll_Lock),sn("Shift",Zt.XK_Shift_L,Zt.XK_Shift_R),ln("Enter",Zt.XK_Return,Zt.XK_KP_Enter),on("Tab",Zt.XK_Tab),ln(" ",Zt.XK_space,Zt.XK_KP_Space),ln("ArrowDown",Zt.XK_Down,Zt.XK_KP_Down),ln("ArrowUp",Zt.XK_Up,Zt.XK_KP_Up),ln("ArrowLeft",Zt.XK_Left,Zt.XK_KP_Left),ln("ArrowRight",Zt.XK_Right,Zt.XK_KP_Right),ln("End",Zt.XK_End,Zt.XK_KP_End),ln("Home",Zt.XK_Home,Zt.XK_KP_Home),ln("PageDown",Zt.XK_Next,Zt.XK_KP_Next),ln("PageUp",Zt.XK_Prior,Zt.XK_KP_Prior),on("Backspace",Zt.XK_BackSpace),ln("Clear",Zt.XK_Clear,Zt.XK_KP_Begin),on("Copy",Zt.XF86XK_Copy),on("Cut",Zt.XF86XK_Cut),ln("Delete",Zt.XK_Delete,Zt.XK_KP_Delete),ln("Insert",Zt.XK_Insert,Zt.XK_KP_Insert),on("Paste",Zt.XF86XK_Paste),on("Redo",Zt.XK_Redo),on("Undo",Zt.XK_Undo),on("Cancel",Zt.XK_Cancel),on("ContextMenu",Zt.XK_Menu),on("Escape",Zt.XK_Escape),on("Execute",Zt.XK_Execute),on("Find",Zt.XK_Find),on("Help",Zt.XK_Help),on("Pause",Zt.XK_Pause),on("Select",Zt.XK_Select),on("ZoomIn",Zt.XF86XK_ZoomIn),on("ZoomOut",Zt.XF86XK_ZoomOut),on("BrightnessDown",Zt.XF86XK_MonBrightnessDown),on("BrightnessUp",Zt.XF86XK_MonBrightnessUp),on("Eject",Zt.XF86XK_Eject),on("LogOff",Zt.XF86XK_LogOff),on("Power",Zt.XF86XK_PowerOff),on("PowerOff",Zt.XF86XK_PowerDown),on("PrintScreen",Zt.XK_Print),on("Hibernate",Zt.XF86XK_Hibernate),on("Standby",Zt.XF86XK_Standby),on("WakeUp",Zt.XF86XK_WakeUp),on("AllCandidates",Zt.XK_MultipleCandidate),on("Alphanumeric",Zt.XK_Eisu_Shift),on("CodeInput",Zt.XK_Codeinput),on("Compose",Zt.XK_Multi_key),on("Convert",Zt.XK_Henkan),on("GroupFirst",Zt.XK_ISO_First_Group),on("GroupLast",Zt.XK_ISO_Last_Group),on("GroupNext",Zt.XK_ISO_Next_Group),on("GroupPrevious",Zt.XK_ISO_Prev_Group),on("NonConvert",Zt.XK_Muhenkan),on("PreviousCandidate",Zt.XK_PreviousCandidate),on("SingleCandidate",Zt.XK_SingleCandidate),on("HangulMode",Zt.XK_Hangul),on("HanjaMode",Zt.XK_Hangul_Hanja),on("JunjuaMode",Zt.XK_Hangul_Jeonja),on("Eisu",Zt.XK_Eisu_toggle),on("Hankaku",Zt.XK_Hankaku),on("Hiragana",Zt.XK_Hiragana),on("HiraganaKatakana",Zt.XK_Hiragana_Katakana),on("KanaMode",Zt.XK_Kana_Shift),on("KanjiMode",Zt.XK_Kanji),on("Katakana",Zt.XK_Katakana),on("Romaji",Zt.XK_Romaji),on("Zenkaku",Zt.XK_Zenkaku),on("ZenkakuHanaku",Zt.XK_Zenkaku_Hankaku),on("F1",Zt.XK_F1),on("F2",Zt.XK_F2),on("F3",Zt.XK_F3),on("F4",Zt.XK_F4),on("F5",Zt.XK_F5),on("F6",Zt.XK_F6),on("F7",Zt.XK_F7),on("F8",Zt.XK_F8),on("F9",Zt.XK_F9),on("F10",Zt.XK_F10),on("F11",Zt.XK_F11),on("F12",Zt.XK_F12),on("F13",Zt.XK_F13),on("F14",Zt.XK_F14),on("F15",Zt.XK_F15),on("F16",Zt.XK_F16),on("F17",Zt.XK_F17),on("F18",Zt.XK_F18),on("F19",Zt.XK_F19),on("F20",Zt.XK_F20),on("F21",Zt.XK_F21),on("F22",Zt.XK_F22),on("F23",Zt.XK_F23),on("F24",Zt.XK_F24),on("F25",Zt.XK_F25),on("F26",Zt.XK_F26),on("F27",Zt.XK_F27),on("F28",Zt.XK_F28),on("F29",Zt.XK_F29),on("F30",Zt.XK_F30),on("F31",Zt.XK_F31),on("F32",Zt.XK_F32),on("F33",Zt.XK_F33),on("F34",Zt.XK_F34),on("F35",Zt.XK_F35),on("Close",Zt.XF86XK_Close),on("MailForward",Zt.XF86XK_MailForward),on("MailReply",Zt.XF86XK_Reply),on("MailSend",Zt.XF86XK_Send),on("MediaFastForward",Zt.XF86XK_AudioForward),on("MediaPause",Zt.XF86XK_AudioPause),on("MediaPlay",Zt.XF86XK_AudioPlay),on("MediaRecord",Zt.XF86XK_AudioRecord),on("MediaRewind",Zt.XF86XK_AudioRewind),on("MediaStop",Zt.XF86XK_AudioStop),on("MediaTrackNext",Zt.XF86XK_AudioNext),on("MediaTrackPrevious",Zt.XF86XK_AudioPrev),on("New",Zt.XF86XK_New),on("Open",Zt.XF86XK_Open),on("Print",Zt.XK_Print),on("Save",Zt.XF86XK_Save),on("SpellCheck",Zt.XF86XK_Spell),on("AudioVolumeDown",Zt.XF86XK_AudioLowerVolume),on("AudioVolumeUp",Zt.XF86XK_AudioRaiseVolume),on("AudioVolumeMute",Zt.XF86XK_AudioMute),on("MicrophoneVolumeMute",Zt.XF86XK_AudioMicMute),on("LaunchApplication1",Zt.XF86XK_MyComputer),on("LaunchApplication2",Zt.XF86XK_Calculator),on("LaunchCalendar",Zt.XF86XK_Calendar),on("LaunchMail",Zt.XF86XK_Mail),on("LaunchMediaPlayer",Zt.XF86XK_AudioMedia),on("LaunchMusicPlayer",Zt.XF86XK_Music),on("LaunchPhone",Zt.XF86XK_Phone),on("LaunchScreenSaver",Zt.XF86XK_ScreenSaver),on("LaunchSpreadsheet",Zt.XF86XK_Excel),on("LaunchWebBrowser",Zt.XF86XK_WWW),on("LaunchWebCam",Zt.XF86XK_WebCam),on("LaunchWordProcessor",Zt.XF86XK_Word),on("BrowserBack",Zt.XF86XK_Back),on("BrowserFavorites",Zt.XF86XK_Favorites),on("BrowserForward",Zt.XF86XK_Forward),on("BrowserHome",Zt.XF86XK_HomePage),on("BrowserRefresh",Zt.XF86XK_Refresh),on("BrowserSearch",Zt.XF86XK_Search),on("BrowserStop",Zt.XF86XK_Stop),on("Dimmer",Zt.XF86XK_BrightnessAdjust),on("MediaAudioTrack",Zt.XF86XK_AudioCycleTrack),on("RandomToggle",Zt.XF86XK_AudioRandomPlay),on("SplitScreenToggle",Zt.XF86XK_SplitScreen),on("Subtitle",Zt.XF86XK_Subtitle),on("VideoModeNext",Zt.XF86XK_Next_VMode),ln("=",Zt.XK_equal,Zt.XK_KP_Equal),ln("+",Zt.XK_plus,Zt.XK_KP_Add),ln("-",Zt.XK_minus,Zt.XK_KP_Subtract),ln("*",Zt.XK_asterisk,Zt.XK_KP_Multiply),ln("/",Zt.XK_slash,Zt.XK_KP_Divide),ln(".",Zt.XK_period,Zt.XK_KP_Decimal),ln(",",Zt.XK_comma,Zt.XK_KP_Separator),ln("0",Zt.XK_0,Zt.XK_KP_0),ln("1",Zt.XK_1,Zt.XK_KP_1),ln("2",Zt.XK_2,Zt.XK_KP_2),ln("3",Zt.XK_3,Zt.XK_KP_3),ln("4",Zt.XK_4,Zt.XK_KP_4),ln("5",Zt.XK_5,Zt.XK_KP_5),ln("6",Zt.XK_6,Zt.XK_KP_6),ln("7",Zt.XK_7,Zt.XK_KP_7),ln("8",Zt.XK_8,Zt.XK_KP_8),ln("9",Zt.XK_9,Zt.XK_KP_9);var cn=an,un=a(4364);let dn="warn",hn=()=>{},pn=()=>{},fn=()=>{},mn=()=>{};function gn(e){if("undefined"===typeof e?e=dn:dn=e,hn=pn=fn=mn=()=>{},"undefined"!==typeof window.console)switch(e){case"debug":hn=un.debug.bind(window.console);case"info":pn=un.info.bind(window.console);case"warn":fn=un.warn.bind(window.console);case"error":mn=un.error.bind(window.console);case"none":break;default:throw new window.Error("invalid logging type '"+e+"'")}}gn();let vn="ontouchstart"in document.documentElement||void 0!==document.ontouchstart||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.addEventListener("touchstart",function e(){vn=!0,window.removeEventListener("touchstart",e,!1)},!1);let bn=10*(window.devicePixelRatio||1),yn=!1;try{const e=document.createElement("canvas");e.style.cursor='url("data:image/x-icon;base64,AAACAAEACAgAAAIAAgA4AQAAFgAAACgAAAAIAAAAEAAAAAEAIAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////AAAAAAAAAAAAAAAAAAAAAA==") 2 2, default',0===e.style.cursor.indexOf("url")?(pn("Data URI scheme cursor supported"),yn=!0):fn("Data URI scheme cursor not supported")}catch(yg){mn("Data URI scheme cursor test exception: "+yg)}const _n=yn;let wn=!1;try{new ImageData(new Uint8ClampedArray(4),1,1),wn=!0}catch(_g){}const En=wn;let Sn=!0;try{const e=document.createElement("div");e.style.visibility="hidden",e.style.overflow="scroll",document.body.appendChild(e);const t=document.createElement("div");e.appendChild(t);const n=e.offsetWidth-t.offsetWidth;e.parentNode.removeChild(e),Sn=0!=n}catch(yg){mn("Scrollbar test exception: "+yg)}function kn(){return navigator&&!!/mac/i.exec(navigator.platform)}function xn(){return navigator&&!!/win/i.exec(navigator.platform)}function An(){return navigator&&(!!/ipad/i.exec(navigator.platform)||!!/iphone/i.exec(navigator.platform)||!!/ipod/i.exec(navigator.platform))}function Cn(){return navigator&&!!/trident/i.exec(navigator.userAgent)}function Tn(){return navigator&&!!/edge/i.exec(navigator.userAgent)}function Nn(){return navigator&&!!/firefox/i.exec(navigator.userAgent)}function Rn(e){if(e.code){switch(e.code){case"OSLeft":return"MetaLeft";case"OSRight":return"MetaRight"}return e.code}if("keypress"!==e.type&&e.keyCode in nn){let t=nn[e.keyCode];if(kn()&&"ContextMenu"===t&&(t="MetaRight"),2===e.location)switch(t){case"ShiftLeft":return"ShiftRight";case"ControlLeft":return"ControlRight";case"AltLeft":return"AltRight"}if(3===e.location)switch(t){case"Delete":return"NumpadDecimal";case"Insert":return"Numpad0";case"End":return"Numpad1";case"ArrowDown":return"Numpad2";case"PageDown":return"Numpad3";case"ArrowLeft":return"Numpad4";case"ArrowRight":return"Numpad6";case"Home":return"Numpad7";case"ArrowUp":return"Numpad8";case"PageUp":return"Numpad9";case"Enter":return"NumpadEnter"}return t}return"Unidentified"}function On(e){if(void 0!==e.key){switch(e.key){case"Spacebar":return" ";case"Esc":return"Escape";case"Scroll":return"ScrollLock";case"Win":return"Meta";case"Apps":return"ContextMenu";case"Up":return"ArrowUp";case"Left":return"ArrowLeft";case"Right":return"ArrowRight";case"Down":return"ArrowDown";case"Del":return"Delete";case"Divide":return"/";case"Multiply":return"*";case"Subtract":return"-";case"Add":return"+";case"Decimal":return e.char}switch(e.key){case"OS":return"Meta";case"LaunchMyComputer":return"LaunchApplication1";case"LaunchCalculator":return"LaunchApplication2"}switch(e.key){case"UIKeyInputUpArrow":return"ArrowUp";case"UIKeyInputDownArrow":return"ArrowDown";case"UIKeyInputLeftArrow":return"ArrowLeft";case"UIKeyInputRightArrow":return"ArrowRight";case"UIKeyInputEscape":return"Escape"}if("\0"===e.key&&"NumpadDecimal"===e.code)return"Delete";if(!Cn()&&!Tn())return e.key;if(1!==e.key.length&&"Unidentified"!==e.key)return e.key}const t=Rn(e);return t in rn?rn[t]:e.charCode?String.fromCharCode(e.charCode):"Unidentified"}function In(e){const t=On(e);if("Unidentified"===t)return null;if(t in cn){let n=e.location;if("Meta"===t&&0===n&&(n=2),"Clear"===t&&3===n){let t=Rn(e);"NumLock"===t&&(n=0)}if((void 0===n||n>3)&&(n=0),"Meta"===t){let t=Rn(e);if("AltLeft"===t)return Zt.XK_Meta_L;if("AltRight"===t)return Zt.XK_Meta_R}if("Clear"===t){let t=Rn(e);if("NumLock"===t)return Zt.XK_Num_Lock}return cn[t][n]}if(1!==t.length)return null;const n=t.charCodeAt();return n?tn.lookup(n):null}const Ln={key:0},Dn={class:"main-layout error"},Pn={class:"text-center"},Mn={class:"text-secondary mt-20"},Bn={key:1},Fn={class:"main-layout"},$n={class:"text-center"},Un={class:"text-secondary mt-20"},jn={ref:"view"};function Vn(e,t,n,r,a,o){const s=(0,i.resolveComponent)("BrandImage");return(0,i.openBlock)(),(0,i.createElementBlock)("div",null,[a.connected&&a.disconnected?((0,i.openBlock)(),(0,i.createElementBlock)("div",Ln,[(0,i.createElementVNode)("main",Dn,[(0,i.createElementVNode)("div",Pn,[(0,i.createVNode)(s,{"file-name":"error-desert-landscape.svg",width:"900",height:"300"}),(0,i.createElementVNode)("h1",null,(0,i.toDisplayString)(e.t("generic.notification.title.warning")),1),(0,i.createElementVNode)("h2",Mn,(0,i.toDisplayString)(e.t("vncConsole.error.message")),1)])])])):(0,i.createCommentVNode)("",!0),a.reconnecting?((0,i.openBlock)(),(0,i.createElementBlock)("div",Bn,[(0,i.createElementVNode)("main",Fn,[(0,i.createElementVNode)("div",$n,[(0,i.createElementVNode)("h2",Un,(0,i.toDisplayString)(e.t("vncConsole.reconnecting.message"))+":"+(0,i.toDisplayString)(a.retryTimes)+" of "+(0,i.toDisplayString)(a.maximumRetryTimes),1)])])])):(0,i.createCommentVNode)("",!0),(0,i.createElementVNode)("div",jn,null,512)])}function Kn(e){return e>>>0}function Gn(e){return 0|e}function Hn(e,t=!1){try{return decodeURIComponent(escape(e))}catch($s){if($s instanceof URIError&&t)return e;throw $s}}function zn(e){return unescape(encodeURIComponent(e))}function qn(e,t,n){const r=n.getBoundingClientRect();let i={x:0,y:0};return e<r.left?i.x=0:e>=r.right?i.x=r.width-1:i.x=e-r.left,t<r.top?i.y=0:t>=r.bottom?i.y=r.height-1:i.y=t-r.top,i}function Xn(e){e.stopPropagation(),e.preventDefault()}let Wn=!1,Yn=null;function Qn(e){if(Wn)return;const t=new e.constructor(e.type,e);Wn=!0,document.captureElement?document.captureElement.dispatchEvent(t):Yn.dispatchEvent(t),Wn=!1,e.stopPropagation(),t.defaultPrevented&&e.preventDefault(),"mouseup"===e.type&&tr()}function Jn(){const e=document.getElementById("noVNC_mouse_capture_elem");e.style.cursor=window.getComputedStyle(document.captureElement).cursor}document.captureElement=null;const Zn=new MutationObserver(Jn);function er(e){if(e.setCapture)e.setCapture(),document.captureElement=e,e.addEventListener("mouseup",tr);else{tr();let t=document.getElementById("noVNC_mouse_capture_elem");null===t&&(t=document.createElement("div"),t.id="noVNC_mouse_capture_elem",t.style.position="fixed",t.style.top="0px",t.style.left="0px",t.style.width="100%",t.style.height="100%",t.style.zIndex=1e4,t.style.display="none",document.body.appendChild(t),t.addEventListener("contextmenu",Qn),t.addEventListener("mousemove",Qn),t.addEventListener("mouseup",Qn)),document.captureElement=e,Zn.observe(e,{attributes:!0}),Jn(),t.style.display="",window.addEventListener("mousemove",Qn),window.addEventListener("mouseup",Qn)}}function tr(){if(document.releaseCapture)document.releaseCapture(),document.captureElement=null;else{if(!document.captureElement)return;Yn=document.captureElement,document.captureElement=null,Zn.disconnect();const e=document.getElementById("noVNC_mouse_capture_elem");e.style.display="none",window.removeEventListener("mousemove",Qn),window.removeEventListener("mouseup",Qn)}}class nr{constructor(){this._listeners=new Map}addEventListener(e,t){this._listeners.has(e)||this._listeners.set(e,new Set),this._listeners.get(e).add(t)}removeEventListener(e,t){this._listeners.has(e)&&this._listeners.get(e).delete(t)}dispatchEvent(e){return!this._listeners.has(e.type)||(this._listeners.get(e.type).forEach(t=>t.call(this,e)),!e.defaultPrevented)}}var rr={toBase64Table:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split(""),base64Pad:"=",encode(e){let t="";const n=e.length,r=n%3;for(let a=0;a<n-2;a+=3)t+=this.toBase64Table[e[a]>>2],t+=this.toBase64Table[((3&e[a])<<4)+(e[a+1]>>4)],t+=this.toBase64Table[((15&e[a+1])<<2)+(e[a+2]>>6)],t+=this.toBase64Table[63&e[a+2]];const i=n-r;return 2===r?(t+=this.toBase64Table[e[i]>>2],t+=this.toBase64Table[((3&e[i])<<4)+(e[i+1]>>4)],t+=this.toBase64Table[(15&e[i+1])<<2],t+=this.toBase64Table[64]):1===r&&(t+=this.toBase64Table[e[i]>>2],t+=this.toBase64Table[(3&e[i])<<4],t+=this.toBase64Table[64],t+=this.toBase64Table[64]),t},toBinaryTable:[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,0,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1],decode(e,t=0){let n=e.indexOf("=")-t;n<0&&(n=e.length-t);const r=3*(n>>2)+Math.floor(n%4/1.5),i=new Array(r);let a=0,o=0;for(let s=0,l=t;l<e.length;l++){const t=this.toBinaryTable[127&e.charCodeAt(l)],n=e.charAt(l)===this.base64Pad;-1!==t?(o=o<<6|t,a+=6,a>=8&&(a-=8,n||(i[s++]=o>>a&255),o&=(1<<a)-1)):mn("Illegal character code "+e.charCodeAt(l)+" at position "+l)}if(a){const e=new Error("Corrupted base64 string");throw e.name="Base64-Error",e}return i}};class ir{constructor(e){if(this._drawCtx=null,this._renderQ=[],this._flushing=!1,this._fbWidth=0,this._fbHeight=0,this._prevDrawStyle="",this._tile=null,this._tile16x16=null,this._tileX=0,this._tileY=0,hn(">> Display.constructor"),this._target=e,!this._target)throw new Error("Target must be set");if("string"===typeof this._target)throw new Error("target must be a DOM element");if(!this._target.getContext)throw new Error("no getContext method");if(this._targetCtx=this._target.getContext("2d"),this._viewportLoc={x:0,y:0,w:this._target.width,h:this._target.height},this._backbuffer=document.createElement("canvas"),this._drawCtx=this._backbuffer.getContext("2d"),this._damageBounds={left:0,top:0,right:this._backbuffer.width,bottom:this._backbuffer.height},hn("User Agent: "+navigator.userAgent),!("createImageData"in this._drawCtx))throw new Error("Canvas does not support createImageData");this._tile16x16=this._drawCtx.createImageData(16,16),hn("<< Display.constructor"),this._scale=1,this._clipViewport=!1,this.onflush=()=>{}}get scale(){return this._scale}set scale(e){this._rescale(e)}get clipViewport(){return this._clipViewport}set clipViewport(e){this._clipViewport=e;const t=this._viewportLoc;this.viewportChangeSize(t.w,t.h),this.viewportChangePos(0,0)}get width(){return this._fbWidth}get height(){return this._fbHeight}viewportChangePos(e,t){const n=this._viewportLoc;e=Math.floor(e),t=Math.floor(t),this._clipViewport||(e=-n.w,t=-n.h);const r=n.x+n.w-1,i=n.y+n.h-1;e<0&&n.x+e<0&&(e=-n.x),r+e>=this._fbWidth&&(e-=r+e-this._fbWidth+1),n.y+t<0&&(t=-n.y),i+t>=this._fbHeight&&(t-=i+t-this._fbHeight+1),0===e&&0===t||(hn("viewportChange deltaX: "+e+", deltaY: "+t),n.x+=e,n.y+=t,this._damage(n.x,n.y,n.w,n.h),this.flip())}viewportChangeSize(e,t){this._clipViewport&&"undefined"!==typeof e&&"undefined"!==typeof t||(hn("Setting viewport to full display region"),e=this._fbWidth,t=this._fbHeight),e=Math.floor(e),t=Math.floor(t),e>this._fbWidth&&(e=this._fbWidth),t>this._fbHeight&&(t=this._fbHeight);const n=this._viewportLoc;if(n.w!==e||n.h!==t){n.w=e,n.h=t;const r=this._target;r.width=e,r.height=t,this.viewportChangePos(0,0),this._damage(n.x,n.y,n.w,n.h),this.flip(),this._rescale(this._scale)}}absX(e){return 0===this._scale?0:Gn(e/this._scale+this._viewportLoc.x)}absY(e){return 0===this._scale?0:Gn(e/this._scale+this._viewportLoc.y)}resize(e,t){this._prevDrawStyle="",this._fbWidth=e,this._fbHeight=t;const n=this._backbuffer;if(n.width!==e||n.height!==t){let r=null;n.width>0&&n.height>0&&(r=this._drawCtx.getImageData(0,0,n.width,n.height)),n.width!==e&&(n.width=e),n.height!==t&&(n.height=t),r&&this._drawCtx.putImageData(r,0,0)}const r=this._viewportLoc;this.viewportChangeSize(r.w,r.h),this.viewportChangePos(0,0)}_damage(e,t,n,r){e<this._damageBounds.left&&(this._damageBounds.left=e),t<this._damageBounds.top&&(this._damageBounds.top=t),e+n>this._damageBounds.right&&(this._damageBounds.right=e+n),t+r>this._damageBounds.bottom&&(this._damageBounds.bottom=t+r)}flip(e){if(0===this._renderQ.length||e){let e=this._damageBounds.left,t=this._damageBounds.top,n=this._damageBounds.right-e,r=this._damageBounds.bottom-t,i=e-this._viewportLoc.x,a=t-this._viewportLoc.y;i<0&&(n+=i,e-=i,i=0),a<0&&(r+=a,t-=a,a=0),i+n>this._viewportLoc.w&&(n=this._viewportLoc.w-i),a+r>this._viewportLoc.h&&(r=this._viewportLoc.h-a),n>0&&r>0&&this._targetCtx.drawImage(this._backbuffer,e,t,n,r,i,a,n,r),this._damageBounds.left=this._damageBounds.top=65535,this._damageBounds.right=this._damageBounds.bottom=0}else this._renderQPush({type:"flip"})}pending(){return this._renderQ.length>0}flush(){0===this._renderQ.length?this.onflush():this._flushing=!0}fillRect(e,t,n,r,i,a){0===this._renderQ.length||a?(this._setFillColor(i),this._drawCtx.fillRect(e,t,n,r),this._damage(e,t,n,r)):this._renderQPush({type:"fill",x:e,y:t,width:n,height:r,color:i})}copyImage(e,t,n,r,i,a,o){0===this._renderQ.length||o?(this._drawCtx.mozImageSmoothingEnabled=!1,this._drawCtx.webkitImageSmoothingEnabled=!1,this._drawCtx.msImageSmoothingEnabled=!1,this._drawCtx.imageSmoothingEnabled=!1,this._drawCtx.drawImage(this._backbuffer,e,t,i,a,n,r,i,a),this._damage(n,r,i,a)):this._renderQPush({type:"copy",oldX:e,oldY:t,x:n,y:r,width:i,height:a})}imageRect(e,t,n,r,i,a){if(0===n||0===r)return;const o=new Image;o.src="data: "+i+";base64,"+rr.encode(a),this._renderQPush({type:"img",img:o,x:e,y:t,width:n,height:r})}startTile(e,t,n,r,i){this._tileX=e,this._tileY=t,this._tile=16===n&&16===r?this._tile16x16:this._drawCtx.createImageData(n,r);const a=i[2],o=i[1],s=i[0],l=this._tile.data;for(let c=0;c<n*r*4;c+=4)l[c]=a,l[c+1]=o,l[c+2]=s,l[c+3]=255}subTile(e,t,n,r,i){const a=i[2],o=i[1],s=i[0],l=e+n,c=t+r,u=this._tile.data,d=this._tile.width;for(let h=t;h<c;h++)for(let t=e;t<l;t++){const e=4*(t+h*d);u[e]=a,u[e+1]=o,u[e+2]=s,u[e+3]=255}}finishTile(){this._drawCtx.putImageData(this._tile,this._tileX,this._tileY),this._damage(this._tileX,this._tileY,this._tile.width,this._tile.height)}blitImage(e,t,n,r,i,a,o){if(0===this._renderQ.length||o)this._bgrxImageData(e,t,n,r,i,a);else{const a=new Uint8Array(n*r*4);a.set(new Uint8Array(i.buffer,0,a.length)),this._renderQPush({type:"blit",data:a,x:e,y:t,width:n,height:r})}}blitRgbImage(e,t,n,r,i,a,o){if(0===this._renderQ.length||o)this._rgbImageData(e,t,n,r,i,a);else{const a=new Uint8Array(n*r*3);a.set(new Uint8Array(i.buffer,0,a.length)),this._renderQPush({type:"blitRgb",data:a,x:e,y:t,width:n,height:r})}}blitRgbxImage(e,t,n,r,i,a,o){if(0===this._renderQ.length||o)this._rgbxImageData(e,t,n,r,i,a);else{const a=new Uint8Array(n*r*4);a.set(new Uint8Array(i.buffer,0,a.length)),this._renderQPush({type:"blitRgbx",data:a,x:e,y:t,width:n,height:r})}}drawImage(e,t,n){this._drawCtx.drawImage(e,t,n),this._damage(t,n,e.width,e.height)}autoscale(e,t){let n;if(0===e||0===t)n=0;else{const r=this._viewportLoc,i=e/t,a=r.w/r.h;n=a>=i?e/r.w:t/r.h}this._rescale(n)}_rescale(e){this._scale=e;const t=this._viewportLoc,n=e*t.w+"px",r=e*t.h+"px";this._target.style.width===n&&this._target.style.height===r||(this._target.style.width=n,this._target.style.height=r)}_setFillColor(e){const t="rgb("+e[2]+","+e[1]+","+e[0]+")";t!==this._prevDrawStyle&&(this._drawCtx.fillStyle=t,this._prevDrawStyle=t)}_rgbImageData(e,t,n,r,i,a){const o=this._drawCtx.createImageData(n,r),s=o.data;for(let l=0,c=a;l<n*r*4;l+=4,c+=3)s[l]=i[c],s[l+1]=i[c+1],s[l+2]=i[c+2],s[l+3]=255;this._drawCtx.putImageData(o,e,t),this._damage(e,t,o.width,o.height)}_bgrxImageData(e,t,n,r,i,a){const o=this._drawCtx.createImageData(n,r),s=o.data;for(let l=0,c=a;l<n*r*4;l+=4,c+=4)s[l]=i[c+2],s[l+1]=i[c+1],s[l+2]=i[c],s[l+3]=255;this._drawCtx.putImageData(o,e,t),this._damage(e,t,o.width,o.height)}_rgbxImageData(e,t,n,r,i,a){let o;En?o=new ImageData(new Uint8ClampedArray(i.buffer,i.byteOffset,n*r*4),n,r):(o=this._drawCtx.createImageData(n,r),o.data.set(new Uint8ClampedArray(i.buffer,i.byteOffset,n*r*4))),this._drawCtx.putImageData(o,e,t),this._damage(e,t,o.width,o.height)}_renderQPush(e){this._renderQ.push(e),1===this._renderQ.length&&this._scanRenderQ()}_resumeRenderQ(){this.removeEventListener("load",this._noVNCDisplay._resumeRenderQ),this._noVNCDisplay._scanRenderQ()}_scanRenderQ(){let e=!0;while(e&&this._renderQ.length>0){const t=this._renderQ[0];switch(t.type){case"flip":this.flip(!0);break;case"copy":this.copyImage(t.oldX,t.oldY,t.x,t.y,t.width,t.height,!0);break;case"fill":this.fillRect(t.x,t.y,t.width,t.height,t.color,!0);break;case"blit":this.blitImage(t.x,t.y,t.width,t.height,t.data,0,!0);break;case"blitRgb":this.blitRgbImage(t.x,t.y,t.width,t.height,t.data,0,!0);break;case"blitRgbx":this.blitRgbxImage(t.x,t.y,t.width,t.height,t.data,0,!0);break;case"img":if(t.img.complete&&0!==t.img.width&&0!==t.img.height){if(t.img.width!==t.width||t.img.height!==t.height)return void mn("Decoded image has incorrect dimensions. Got "+t.img.width+"x"+t.img.height+". Expected "+t.width+"x"+t.height+".");this.drawImage(t.img,t.x,t.y)}else t.img._noVNCDisplay=this,t.img.addEventListener("load",this._resumeRenderQ),e=!1;break}e&&this._renderQ.shift()}0===this._renderQ.length&&this._flushing&&(this._flushing=!1,this.onflush())}}function ar(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var a=0;a<r;a++)e[i+a]=t[n+a]}var or=Uint8Array,sr=Uint16Array,lr=Int32Array;function cr(e,t,n,r){var i=65535&e,a=e>>>16&65535,o=0;while(0!==n){o=n>2e3?2e3:n,n-=o;do{i=i+t[r++]|0,a=a+i|0}while(--o);i%=65521,a%=65521}return i|a<<16}function ur(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}ur();var dr=30,hr=12;function pr(e,t){var n,r,i,a,o,s,l,c,u,d,h,p,f,m,g,v,b,y,_,w,E,S,k,x,A;n=e.state,r=e.next_in,x=e.input,i=r+(e.avail_in-5),a=e.next_out,A=e.output,o=a-(t-e.avail_out),s=a+(e.avail_out-257),l=n.dmax,c=n.wsize,u=n.whave,d=n.wnext,h=n.window,p=n.hold,f=n.bits,m=n.lencode,g=n.distcode,v=(1<<n.lenbits)-1,b=(1<<n.distbits)-1;e:do{f<15&&(p+=x[r++]<<f,f+=8,p+=x[r++]<<f,f+=8),y=m[p&v];t:for(;;){if(_=y>>>24,p>>>=_,f-=_,_=y>>>16&255,0===_)A[a++]=65535&y;else{if(!(16&_)){if(0===(64&_)){y=m[(65535&y)+(p&(1<<_)-1)];continue t}if(32&_){n.mode=hr;break e}e.msg="invalid literal/length code",n.mode=dr;break e}w=65535&y,_&=15,_&&(f<_&&(p+=x[r++]<<f,f+=8),w+=p&(1<<_)-1,p>>>=_,f-=_),f<15&&(p+=x[r++]<<f,f+=8,p+=x[r++]<<f,f+=8),y=g[p&b];n:for(;;){if(_=y>>>24,p>>>=_,f-=_,_=y>>>16&255,!(16&_)){if(0===(64&_)){y=g[(65535&y)+(p&(1<<_)-1)];continue n}e.msg="invalid distance code",n.mode=dr;break e}if(E=65535&y,_&=15,f<_&&(p+=x[r++]<<f,f+=8,f<_&&(p+=x[r++]<<f,f+=8)),E+=p&(1<<_)-1,E>l){e.msg="invalid distance too far back",n.mode=dr;break e}if(p>>>=_,f-=_,_=a-o,E>_){if(_=E-_,_>u&&n.sane){e.msg="invalid distance too far back",n.mode=dr;break e}if(S=0,k=h,0===d){if(S+=c-_,_<w){w-=_;do{A[a++]=h[S++]}while(--_);S=a-E,k=A}}else if(d<_){if(S+=c+d-_,_-=d,_<w){w-=_;do{A[a++]=h[S++]}while(--_);if(S=0,d<w){_=d,w-=_;do{A[a++]=h[S++]}while(--_);S=a-E,k=A}}}else if(S+=d-_,_<w){w-=_;do{A[a++]=h[S++]}while(--_);S=a-E,k=A}while(w>2)A[a++]=k[S++],A[a++]=k[S++],A[a++]=k[S++],w-=3;w&&(A[a++]=k[S++],w>1&&(A[a++]=k[S++]))}else{S=a-E;do{A[a++]=A[S++],A[a++]=A[S++],A[a++]=A[S++],w-=3}while(w>2);w&&(A[a++]=A[S++],w>1&&(A[a++]=A[S++]))}break}}break}}while(r<i&&a<s);w=f>>3,r-=w,f-=w<<3,p&=(1<<f)-1,e.next_in=r,e.next_out=a,e.avail_in=r<i?i-r+5:5-(r-i),e.avail_out=a<s?s-a+257:257-(a-s),n.hold=p,n.bits=f}var fr=15,mr=852,gr=592,vr=0,br=1,yr=2,_r=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],wr=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],Er=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],Sr=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];function kr(e,t,n,r,i,a,o,s){var l,c,u,d,h,p,f,m,g,v=s.bits,b=0,y=0,_=0,w=0,E=0,S=0,k=0,x=0,A=0,C=0,T=null,N=0,R=new sr(fr+1),O=new sr(fr+1),I=null,L=0;for(b=0;b<=fr;b++)R[b]=0;for(y=0;y<r;y++)R[t[n+y]]++;for(E=v,w=fr;w>=1;w--)if(0!==R[w])break;if(E>w&&(E=w),0===w)return i[a++]=20971520,i[a++]=20971520,s.bits=1,0;for(_=1;_<w;_++)if(0!==R[_])break;for(E<_&&(E=_),x=1,b=1;b<=fr;b++)if(x<<=1,x-=R[b],x<0)return-1;if(x>0&&(e===vr||1!==w))return-1;for(O[1]=0,b=1;b<fr;b++)O[b+1]=O[b]+R[b];for(y=0;y<r;y++)0!==t[n+y]&&(o[O[t[n+y]]++]=y);if(e===vr?(T=I=o,p=19):e===br?(T=_r,N-=257,I=wr,L-=257,p=256):(T=Er,I=Sr,p=-1),C=0,y=0,b=_,h=a,S=E,k=0,u=-1,A=1<<E,d=A-1,e===br&&A>mr||e===yr&&A>gr)return 1;for(;;){f=b-k,o[y]<p?(m=0,g=o[y]):o[y]>p?(m=I[L+o[y]],g=T[N+o[y]]):(m=96,g=0),l=1<<b-k,c=1<<S,_=c;do{c-=l,i[h+(C>>k)+c]=f<<24|m<<16|g}while(0!==c);l=1<<b-1;while(C&l)l>>=1;if(0!==l?(C&=l-1,C+=l):C=0,y++,0===--R[b]){if(b===w)break;b=t[n+o[y]]}if(b>E&&(C&d)!==u){0===k&&(k=E),h+=_,S=b-k,x=1<<S;while(S+k<w){if(x-=R[S+k],x<=0)break;S++,x<<=1}if(A+=1<<S,e===br&&A>mr||e===yr&&A>gr)return 1;u=C&d,i[u]=E<<24|S<<16|h-a}}return 0!==C&&(i[h+C]=b-k<<24|64<<16),s.bits=E,0}var xr=0,Ar=1,Cr=2;const Tr=4,Nr=5,Rr=6,Or=0,Ir=1,Lr=2,Dr=-2,Pr=-3,Mr=-4,Br=-5,Fr=8;var $r=1,Ur=2,jr=3,Vr=4,Kr=5,Gr=6,Hr=7,zr=8,qr=9,Xr=10,Wr=11,Yr=12,Qr=13,Jr=14,Zr=15,ei=16,ti=17,ni=18,ri=19,ii=20,ai=21,oi=22,si=23,li=24,ci=25,ui=26,di=27,hi=28,pi=29,fi=30,mi=31,gi=32,vi=852,bi=592,yi=15,_i=yi;function wi(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function Ei(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new sr(320),this.work=new sr(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Si(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=$r,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new lr(vi),t.distcode=t.distdyn=new lr(bi),t.sane=1,t.back=-1,Or):Dr}function ki(e){var t;return e&&e.state?(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,Si(e)):Dr}function xi(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?Dr:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,ki(e))):Dr}function Ai(e,t){var n,r;return e?(r=new Ei,e.state=r,r.window=null,n=xi(e,t),n!==Or&&(e.state=null),n):Dr}function Ci(e){return Ai(e,_i)}var Ti,Ni,Ri=!0;function Oi(e){if(Ri){var t;Ti=new lr(512),Ni=new lr(32),t=0;while(t<144)e.lens[t++]=8;while(t<256)e.lens[t++]=9;while(t<280)e.lens[t++]=7;while(t<288)e.lens[t++]=8;kr(Ar,e.lens,0,288,Ti,0,e.work,{bits:9}),t=0;while(t<32)e.lens[t++]=5;kr(Cr,e.lens,0,32,Ni,0,e.work,{bits:5}),Ri=!1}e.lencode=Ti,e.lenbits=9,e.distcode=Ni,e.distbits=5}function Ii(e,t,n,r){var i,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new or(a.wsize)),r>=a.wsize?(ar(a.window,t,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(i=a.wsize-a.wnext,i>r&&(i=r),ar(a.window,t,n-r,i,a.wnext),r-=i,r?(ar(a.window,t,n-r,r,0),a.wnext=r,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0}function Li(e,t){var n,r,i,a,o,s,l,c,u,d,h,p,f,m,g,v,b,y,_,w,E,S,k,x,A=0,C=new or(4),T=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return Dr;n=e.state,n.mode===Yr&&(n.mode=Qr),o=e.next_out,i=e.output,l=e.avail_out,a=e.next_in,r=e.input,s=e.avail_in,c=n.hold,u=n.bits,d=s,h=l,S=Or;e:for(;;)switch(n.mode){case $r:if(0===n.wrap){n.mode=Qr;break}while(u<16){if(0===s)break e;s--,c+=r[a++]<<u,u+=8}if(2&n.wrap&&35615===c){n.check=0,C[0]=255&c,C[1]=c>>>8&255,n.check=ur(n.check,C,2,0),c=0,u=0,n.mode=Ur;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&c)<<8)+(c>>8))%31){e.msg="incorrect header check",n.mode=fi;break}if((15&c)!==Fr){e.msg="unknown compression method",n.mode=fi;break}if(c>>>=4,u-=4,E=8+(15&c),0===n.wbits)n.wbits=E;else if(E>n.wbits){e.msg="invalid window size",n.mode=fi;break}n.dmax=1<<E,e.adler=n.check=1,n.mode=512&c?Xr:Yr,c=0,u=0;break;case Ur:while(u<16){if(0===s)break e;s--,c+=r[a++]<<u,u+=8}if(n.flags=c,(255&n.flags)!==Fr){e.msg="unknown compression method",n.mode=fi;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=fi;break}n.head&&(n.head.text=c>>8&1),512&n.flags&&(C[0]=255&c,C[1]=c>>>8&255,n.check=ur(n.check,C,2,0)),c=0,u=0,n.mode=jr;case jr:while(u<32){if(0===s)break e;s--,c+=r[a++]<<u,u+=8}n.head&&(n.head.time=c),512&n.flags&&(C[0]=255&c,C[1]=c>>>8&255,C[2]=c>>>16&255,C[3]=c>>>24&255,n.check=ur(n.check,C,4,0)),c=0,u=0,n.mode=Vr;case Vr:while(u<16){if(0===s)break e;s--,c+=r[a++]<<u,u+=8}n.head&&(n.head.xflags=255&c,n.head.os=c>>8),512&n.flags&&(C[0]=255&c,C[1]=c>>>8&255,n.check=ur(n.check,C,2,0)),c=0,u=0,n.mode=Kr;case Kr:if(1024&n.flags){while(u<16){if(0===s)break e;s--,c+=r[a++]<<u,u+=8}n.length=c,n.head&&(n.head.extra_len=c),512&n.flags&&(C[0]=255&c,C[1]=c>>>8&255,n.check=ur(n.check,C,2,0)),c=0,u=0}else n.head&&(n.head.extra=null);n.mode=Gr;case Gr:if(1024&n.flags&&(p=n.length,p>s&&(p=s),p&&(n.head&&(E=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),ar(n.head.extra,r,a,p,E)),512&n.flags&&(n.check=ur(n.check,r,p,a)),s-=p,a+=p,n.length-=p),n.length))break e;n.length=0,n.mode=Hr;case Hr:if(2048&n.flags){if(0===s)break e;p=0;do{E=r[a+p++],n.head&&E&&n.length<65536&&(n.head.name+=String.fromCharCode(E))}while(E&&p<s);if(512&n.flags&&(n.check=ur(n.check,r,p,a)),s-=p,a+=p,E)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=zr;case zr:if(4096&n.flags){if(0===s)break e;p=0;do{E=r[a+p++],n.head&&E&&n.length<65536&&(n.head.comment+=String.fromCharCode(E))}while(E&&p<s);if(512&n.flags&&(n.check=ur(n.check,r,p,a)),s-=p,a+=p,E)break e}else n.head&&(n.head.comment=null);n.mode=qr;case qr:if(512&n.flags){while(u<16){if(0===s)break e;s--,c+=r[a++]<<u,u+=8}if(c!==(65535&n.check)){e.msg="header crc mismatch",n.mode=fi;break}c=0,u=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=Yr;break;case Xr:while(u<32){if(0===s)break e;s--,c+=r[a++]<<u,u+=8}e.adler=n.check=wi(c),c=0,u=0,n.mode=Wr;case Wr:if(0===n.havedict)return e.next_out=o,e.avail_out=l,e.next_in=a,e.avail_in=s,n.hold=c,n.bits=u,Lr;e.adler=n.check=1,n.mode=Yr;case Yr:if(t===Nr||t===Rr)break e;case Qr:if(n.last){c>>>=7&u,u-=7&u,n.mode=di;break}while(u<3){if(0===s)break e;s--,c+=r[a++]<<u,u+=8}switch(n.last=1&c,c>>>=1,u-=1,3&c){case 0:n.mode=Jr;break;case 1:if(Oi(n),n.mode=ii,t===Rr){c>>>=2,u-=2;break e}break;case 2:n.mode=ti;break;case 3:e.msg="invalid block type",n.mode=fi}c>>>=2,u-=2;break;case Jr:c>>>=7&u,u-=7&u;while(u<32){if(0===s)break e;s--,c+=r[a++]<<u,u+=8}if((65535&c)!==(c>>>16^65535)){e.msg="invalid stored block lengths",n.mode=fi;break}if(n.length=65535&c,c=0,u=0,n.mode=Zr,t===Rr)break e;case Zr:n.mode=ei;case ei:if(p=n.length,p){if(p>s&&(p=s),p>l&&(p=l),0===p)break e;ar(i,r,a,p,o),s-=p,a+=p,l-=p,o+=p,n.length-=p;break}n.mode=Yr;break;case ti:while(u<14){if(0===s)break e;s--,c+=r[a++]<<u,u+=8}if(n.nlen=257+(31&c),c>>>=5,u-=5,n.ndist=1+(31&c),c>>>=5,u-=5,n.ncode=4+(15&c),c>>>=4,u-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=fi;break}n.have=0,n.mode=ni;case ni:while(n.have<n.ncode){while(u<3){if(0===s)break e;s--,c+=r[a++]<<u,u+=8}n.lens[T[n.have++]]=7&c,c>>>=3,u-=3}while(n.have<19)n.lens[T[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,k={bits:n.lenbits},S=kr(xr,n.lens,0,19,n.lencode,0,n.work,k),n.lenbits=k.bits,S){e.msg="invalid code lengths set",n.mode=fi;break}n.have=0,n.mode=ri;case ri:while(n.have<n.nlen+n.ndist){for(;;){if(A=n.lencode[c&(1<<n.lenbits)-1],g=A>>>24,v=A>>>16&255,b=65535&A,g<=u)break;if(0===s)break e;s--,c+=r[a++]<<u,u+=8}if(b<16)c>>>=g,u-=g,n.lens[n.have++]=b;else{if(16===b){x=g+2;while(u<x){if(0===s)break e;s--,c+=r[a++]<<u,u+=8}if(c>>>=g,u-=g,0===n.have){e.msg="invalid bit length repeat",n.mode=fi;break}E=n.lens[n.have-1],p=3+(3&c),c>>>=2,u-=2}else if(17===b){x=g+3;while(u<x){if(0===s)break e;s--,c+=r[a++]<<u,u+=8}c>>>=g,u-=g,E=0,p=3+(7&c),c>>>=3,u-=3}else{x=g+7;while(u<x){if(0===s)break e;s--,c+=r[a++]<<u,u+=8}c>>>=g,u-=g,E=0,p=11+(127&c),c>>>=7,u-=7}if(n.have+p>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=fi;break}while(p--)n.lens[n.have++]=E}}if(n.mode===fi)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=fi;break}if(n.lenbits=9,k={bits:n.lenbits},S=kr(Ar,n.lens,0,n.nlen,n.lencode,0,n.work,k),n.lenbits=k.bits,S){e.msg="invalid literal/lengths set",n.mode=fi;break}if(n.distbits=6,n.distcode=n.distdyn,k={bits:n.distbits},S=kr(Cr,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,k),n.distbits=k.bits,S){e.msg="invalid distances set",n.mode=fi;break}if(n.mode=ii,t===Rr)break e;case ii:n.mode=ai;case ai:if(s>=6&&l>=258){e.next_out=o,e.avail_out=l,e.next_in=a,e.avail_in=s,n.hold=c,n.bits=u,pr(e,h),o=e.next_out,i=e.output,l=e.avail_out,a=e.next_in,r=e.input,s=e.avail_in,c=n.hold,u=n.bits,n.mode===Yr&&(n.back=-1);break}for(n.back=0;;){if(A=n.lencode[c&(1<<n.lenbits)-1],g=A>>>24,v=A>>>16&255,b=65535&A,g<=u)break;if(0===s)break e;s--,c+=r[a++]<<u,u+=8}if(v&&0===(240&v)){for(y=g,_=v,w=b;;){if(A=n.lencode[w+((c&(1<<y+_)-1)>>y)],g=A>>>24,v=A>>>16&255,b=65535&A,y+g<=u)break;if(0===s)break e;s--,c+=r[a++]<<u,u+=8}c>>>=y,u-=y,n.back+=y}if(c>>>=g,u-=g,n.back+=g,n.length=b,0===v){n.mode=ui;break}if(32&v){n.back=-1,n.mode=Yr;break}if(64&v){e.msg="invalid literal/length code",n.mode=fi;break}n.extra=15&v,n.mode=oi;case oi:if(n.extra){x=n.extra;while(u<x){if(0===s)break e;s--,c+=r[a++]<<u,u+=8}n.length+=c&(1<<n.extra)-1,c>>>=n.extra,u-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=si;case si:for(;;){if(A=n.distcode[c&(1<<n.distbits)-1],g=A>>>24,v=A>>>16&255,b=65535&A,g<=u)break;if(0===s)break e;s--,c+=r[a++]<<u,u+=8}if(0===(240&v)){for(y=g,_=v,w=b;;){if(A=n.distcode[w+((c&(1<<y+_)-1)>>y)],g=A>>>24,v=A>>>16&255,b=65535&A,y+g<=u)break;if(0===s)break e;s--,c+=r[a++]<<u,u+=8}c>>>=y,u-=y,n.back+=y}if(c>>>=g,u-=g,n.back+=g,64&v){e.msg="invalid distance code",n.mode=fi;break}n.offset=b,n.extra=15&v,n.mode=li;case li:if(n.extra){x=n.extra;while(u<x){if(0===s)break e;s--,c+=r[a++]<<u,u+=8}n.offset+=c&(1<<n.extra)-1,c>>>=n.extra,u-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=fi;break}n.mode=ci;case ci:if(0===l)break e;if(p=h-l,n.offset>p){if(p=n.offset-p,p>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=fi;break}p>n.wnext?(p-=n.wnext,f=n.wsize-p):f=n.wnext-p,p>n.length&&(p=n.length),m=n.window}else m=i,f=o-n.offset,p=n.length;p>l&&(p=l),l-=p,n.length-=p;do{i[o++]=m[f++]}while(--p);0===n.length&&(n.mode=ai);break;case ui:if(0===l)break e;i[o++]=n.length,l--,n.mode=ai;break;case di:if(n.wrap){while(u<32){if(0===s)break e;s--,c|=r[a++]<<u,u+=8}if(h-=l,e.total_out+=h,n.total+=h,h&&(e.adler=n.check=n.flags?ur(n.check,i,h,o-h):cr(n.check,i,h,o-h)),h=l,(n.flags?c:wi(c))!==n.check){e.msg="incorrect data check",n.mode=fi;break}c=0,u=0}n.mode=hi;case hi:if(n.wrap&&n.flags){while(u<32){if(0===s)break e;s--,c+=r[a++]<<u,u+=8}if(c!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=fi;break}c=0,u=0}n.mode=pi;case pi:S=Ir;break e;case fi:S=Pr;break e;case mi:return Mr;case gi:default:return Dr}return e.next_out=o,e.avail_out=l,e.next_in=a,e.avail_in=s,n.hold=c,n.bits=u,(n.wsize||h!==e.avail_out&&n.mode<fi&&(n.mode<di||t!==Tr))&&Ii(e,e.output,e.next_out,h-e.avail_out)?(n.mode=mi,Mr):(d-=e.avail_in,h-=e.avail_out,e.total_in+=d,e.total_out+=h,n.total+=h,n.wrap&&h&&(e.adler=n.check=n.flags?ur(n.check,i,h,e.next_out-h):cr(n.check,i,h,e.next_out-h)),e.data_type=n.bits+(n.last?64:0)+(n.mode===Yr?128:0)+(n.mode===ii||n.mode===Zr?256:0),(0===d&&0===h||t===Tr)&&S===Or&&(S=Br),S)}function Di(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}class Pi{constructor(){this.strm=new Di,this.chunkSize=102400,this.strm.output=new Uint8Array(this.chunkSize),this.windowBits=5,Ci(this.strm,this.windowBits)}setInput(e){e?(this.strm.input=e,this.strm.avail_in=this.strm.input.length,this.strm.next_in=0):(this.strm.input=null,this.strm.avail_in=0,this.strm.next_in=0)}inflate(e){e>this.chunkSize&&(this.chunkSize=e,this.strm.output=new Uint8Array(this.chunkSize)),this.strm.next_out=0,this.strm.avail_out=e;let t=Li(this.strm,0);if(t<0)throw new Error("zlib inflate failed");if(this.strm.next_out!=e)throw new Error("Incomplete zlib block");return new Uint8Array(this.strm.output.buffer,0,this.strm.next_out)}reset(){ki(this.strm)}}var Mi=4,Bi=0,Fi=1,$i=2;function Ui(e){var t=e.length;while(--t>=0)e[t]=0}var ji=0,Vi=1,Ki=2,Gi=3,Hi=258,zi=29,qi=256,Xi=qi+1+zi,Wi=30,Yi=19,Qi=2*Xi+1,Ji=15,Zi=16,ea=7,ta=256,na=16,ra=17,ia=18,aa=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],oa=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],sa=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],la=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ca=512,ua=new Array(2*(Xi+2));Ui(ua);var da=new Array(2*Wi);Ui(da);var ha=new Array(ca);Ui(ha);var pa=new Array(Hi-Gi+1);Ui(pa);var fa=new Array(zi);Ui(fa);var ma,ga,va,ba=new Array(Wi);function ya(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function _a(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function wa(e){return e<256?ha[e]:ha[256+(e>>>7)]}function Ea(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function Sa(e,t,n){e.bi_valid>Zi-n?(e.bi_buf|=t<<e.bi_valid&65535,Ea(e,e.bi_buf),e.bi_buf=t>>Zi-e.bi_valid,e.bi_valid+=n-Zi):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function ka(e,t,n){Sa(e,n[2*t],n[2*t+1])}function xa(e,t){var n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}function Aa(e){16===e.bi_valid?(Ea(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}function Ca(e,t){var n,r,i,a,o,s,l=t.dyn_tree,c=t.max_code,u=t.stat_desc.static_tree,d=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,f=t.stat_desc.max_length,m=0;for(a=0;a<=Ji;a++)e.bl_count[a]=0;for(l[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<Qi;n++)r=e.heap[n],a=l[2*l[2*r+1]+1]+1,a>f&&(a=f,m++),l[2*r+1]=a,r>c||(e.bl_count[a]++,o=0,r>=p&&(o=h[r-p]),s=l[2*r],e.opt_len+=s*(a+o),d&&(e.static_len+=s*(u[2*r+1]+o)));if(0!==m){do{a=f-1;while(0===e.bl_count[a])a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[f]--,m-=2}while(m>0);for(a=f;0!==a;a--){r=e.bl_count[a];while(0!==r)i=e.heap[--n],i>c||(l[2*i+1]!==a&&(e.opt_len+=(a-l[2*i+1])*l[2*i],l[2*i+1]=a),r--)}}}function Ta(e,t,n){var r,i,a=new Array(Ji+1),o=0;for(r=1;r<=Ji;r++)a[r]=o=o+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=xa(a[s]++,s))}}function Na(){var e,t,n,r,i,a=new Array(Ji+1);for(n=0,r=0;r<zi-1;r++)for(fa[r]=n,e=0;e<1<<aa[r];e++)pa[n++]=r;for(pa[n-1]=r,i=0,r=0;r<16;r++)for(ba[r]=i,e=0;e<1<<oa[r];e++)ha[i++]=r;for(i>>=7;r<Wi;r++)for(ba[r]=i<<7,e=0;e<1<<oa[r]-7;e++)ha[256+i++]=r;for(t=0;t<=Ji;t++)a[t]=0;e=0;while(e<=143)ua[2*e+1]=8,e++,a[8]++;while(e<=255)ua[2*e+1]=9,e++,a[9]++;while(e<=279)ua[2*e+1]=7,e++,a[7]++;while(e<=287)ua[2*e+1]=8,e++,a[8]++;for(Ta(ua,Xi+1,a),e=0;e<Wi;e++)da[2*e+1]=5,da[2*e]=xa(e,5);ma=new ya(ua,aa,qi+1,Xi,Ji),ga=new ya(da,oa,0,Wi,Ji),va=new ya(new Array(0),sa,0,Yi,ea)}function Ra(e){var t;for(t=0;t<Xi;t++)e.dyn_ltree[2*t]=0;for(t=0;t<Wi;t++)e.dyn_dtree[2*t]=0;for(t=0;t<Yi;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*ta]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function Oa(e){e.bi_valid>8?Ea(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function Ia(e,t,n,r){Oa(e),r&&(Ea(e,n),Ea(e,~n)),ar(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}function La(e,t,n,r){var i=2*t,a=2*n;return e[i]<e[a]||e[i]===e[a]&&r[t]<=r[n]}function Da(e,t,n){var r=e.heap[n],i=n<<1;while(i<=e.heap_len){if(i<e.heap_len&&La(t,e.heap[i+1],e.heap[i],e.depth)&&i++,La(t,r,e.heap[i],e.depth))break;e.heap[n]=e.heap[i],n=i,i<<=1}e.heap[n]=r}function Pa(e,t,n){var r,i,a,o,s=0;if(0!==e.last_lit)do{r=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],i=e.pending_buf[e.l_buf+s],s++,0===r?ka(e,i,t):(a=pa[i],ka(e,a+qi+1,t),o=aa[a],0!==o&&(i-=fa[a],Sa(e,i,o)),r--,a=wa(r),ka(e,a,n),o=oa[a],0!==o&&(r-=ba[a],Sa(e,r,o)))}while(s<e.last_lit);ka(e,ta,t)}function Ma(e,t){var n,r,i,a=t.dyn_tree,o=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.elems,c=-1;for(e.heap_len=0,e.heap_max=Qi,n=0;n<l;n++)0!==a[2*n]?(e.heap[++e.heap_len]=c=n,e.depth[n]=0):a[2*n+1]=0;while(e.heap_len<2)i=e.heap[++e.heap_len]=c<2?++c:0,a[2*i]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=o[2*i+1]);for(t.max_code=c,n=e.heap_len>>1;n>=1;n--)Da(e,a,n);i=l;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Da(e,a,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,a[2*i]=a[2*n]+a[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,a[2*n+1]=a[2*r+1]=i,e.heap[1]=i++,Da(e,a,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],Ca(e,t),Ta(a,c,e.bl_count)}function Ba(e,t,n){var r,i,a=-1,o=t[1],s=0,l=7,c=4;for(0===o&&(l=138,c=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=o,o=t[2*(r+1)+1],++s<l&&i===o||(s<c?e.bl_tree[2*i]+=s:0!==i?(i!==a&&e.bl_tree[2*i]++,e.bl_tree[2*na]++):s<=10?e.bl_tree[2*ra]++:e.bl_tree[2*ia]++,s=0,a=i,0===o?(l=138,c=3):i===o?(l=6,c=3):(l=7,c=4))}function Fa(e,t,n){var r,i,a=-1,o=t[1],s=0,l=7,c=4;for(0===o&&(l=138,c=3),r=0;r<=n;r++)if(i=o,o=t[2*(r+1)+1],!(++s<l&&i===o)){if(s<c)do{ka(e,i,e.bl_tree)}while(0!==--s);else 0!==i?(i!==a&&(ka(e,i,e.bl_tree),s--),ka(e,na,e.bl_tree),Sa(e,s-3,2)):s<=10?(ka(e,ra,e.bl_tree),Sa(e,s-3,3)):(ka(e,ia,e.bl_tree),Sa(e,s-11,7));s=0,a=i,0===o?(l=138,c=3):i===o?(l=6,c=3):(l=7,c=4)}}function $a(e){var t;for(Ba(e,e.dyn_ltree,e.l_desc.max_code),Ba(e,e.dyn_dtree,e.d_desc.max_code),Ma(e,e.bl_desc),t=Yi-1;t>=3;t--)if(0!==e.bl_tree[2*la[t]+1])break;return e.opt_len+=3*(t+1)+5+5+4,t}function Ua(e,t,n,r){var i;for(Sa(e,t-257,5),Sa(e,n-1,5),Sa(e,r-4,4),i=0;i<r;i++)Sa(e,e.bl_tree[2*la[i]+1],3);Fa(e,e.dyn_ltree,t-1),Fa(e,e.dyn_dtree,n-1)}function ja(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return Bi;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return Fi;for(t=32;t<qi;t++)if(0!==e.dyn_ltree[2*t])return Fi;return Bi}Ui(ba);var Va=!1;function Ka(e){Va||(Na(),Va=!0),e.l_desc=new _a(e.dyn_ltree,ma),e.d_desc=new _a(e.dyn_dtree,ga),e.bl_desc=new _a(e.bl_tree,va),e.bi_buf=0,e.bi_valid=0,Ra(e)}function Ga(e,t,n,r){Sa(e,(ji<<1)+(r?1:0),3),Ia(e,t,n,!0)}function Ha(e){Sa(e,Vi<<1,3),ka(e,ta,ua),Aa(e)}function za(e,t,n,r){var i,a,o=0;e.level>0?(e.strm.data_type===$i&&(e.strm.data_type=ja(e)),Ma(e,e.l_desc),Ma(e,e.d_desc),o=$a(e),i=e.opt_len+3+7>>>3,a=e.static_len+3+7>>>3,a<=i&&(i=a)):i=a=n+5,n+4<=i&&-1!==t?Ga(e,t,n,r):e.strategy===Mi||a===i?(Sa(e,(Vi<<1)+(r?1:0),3),Pa(e,ua,da)):(Sa(e,(Ki<<1)+(r?1:0),3),Ua(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),Pa(e,e.dyn_ltree,e.dyn_dtree)),Ra(e),r&&Oa(e)}function qa(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(pa[n]+qi+1)]++,e.dyn_dtree[2*wa(t)]++),e.last_lit===e.lit_bufsize-1}var Xa={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};const Wa=0,Ya=1,Qa=3,Ja=4,Za=5,eo=0,to=1,no=-2,ro=-5,io=-1,ao=1,oo=2,so=3,lo=4,co=0,uo=2,ho=8;var po,fo=9,mo=15,go=8,vo=29,bo=256,yo=bo+1+vo,_o=30,wo=19,Eo=2*yo+1,So=15,ko=3,xo=258,Ao=xo+ko+1,Co=32,To=42,No=69,Ro=73,Oo=91,Io=103,Lo=113,Do=666,Po=1,Mo=2,Bo=3,Fo=4,$o=3;function Uo(e,t){return e.msg=Xa[t],t}function jo(e){return(e<<1)-(e>4?9:0)}function Vo(e){var t=e.length;while(--t>=0)e[t]=0}function Ko(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(ar(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function Go(e,t){za(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Ko(e.strm)}function Ho(e,t){e.pending_buf[e.pending++]=t}function zo(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function qo(e,t,n,r){var i=e.avail_in;return i>r&&(i=r),0===i?0:(e.avail_in-=i,ar(t,e.input,e.next_in,i,n),1===e.state.wrap?e.adler=cr(e.adler,t,i,n):2===e.state.wrap&&(e.adler=ur(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)}function Xo(e,t){var n,r,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-Ao?e.strstart-(e.w_size-Ao):0,c=e.window,u=e.w_mask,d=e.prev,h=e.strstart+xo,p=c[a+o-1],f=c[a+o];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(n=t,c[n+o]===f&&c[n+o-1]===p&&c[n]===c[a]&&c[++n]===c[a+1]){a+=2,n++;do{}while(c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&c[++a]===c[++n]&&a<h);if(r=xo-(h-a),a=h-xo,r>o){if(e.match_start=t,o=r,r>=s)break;p=c[a+o-1],f=c[a+o]}}}while((t=d[t&u])>l&&0!==--i);return o<=e.lookahead?o:e.lookahead}function Wo(e){var t,n,r,i,a,o=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=o+(o-Ao)){ar(e.window,e.window,o,o,0),e.match_start-=o,e.strstart-=o,e.block_start-=o,n=e.hash_size,t=n;do{r=e.head[--t],e.head[t]=r>=o?r-o:0}while(--n);n=o,t=n;do{r=e.prev[--t],e.prev[t]=r>=o?r-o:0}while(--n);i+=o}if(0===e.strm.avail_in)break;if(n=qo(e.strm,e.window,e.strstart+e.lookahead,i),e.lookahead+=n,e.lookahead+e.insert>=ko){a=e.strstart-e.insert,e.ins_h=e.window[a],e.ins_h=(e.ins_h<<e.hash_shift^e.window[a+1])&e.hash_mask;while(e.insert)if(e.ins_h=(e.ins_h<<e.hash_shift^e.window[a+ko-1])&e.hash_mask,e.prev[a&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=a,a++,e.insert--,e.lookahead+e.insert<ko)break}}while(e.lookahead<Ao&&0!==e.strm.avail_in)}function Yo(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(Wo(e),0===e.lookahead&&t===Wa)return Po;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,Go(e,!1),0===e.strm.avail_out))return Po;if(e.strstart-e.block_start>=e.w_size-Ao&&(Go(e,!1),0===e.strm.avail_out))return Po}return e.insert=0,t===Ja?(Go(e,!0),0===e.strm.avail_out?Bo:Fo):(e.strstart>e.block_start&&(Go(e,!1),e.strm.avail_out),Po)}function Qo(e,t){for(var n,r;;){if(e.lookahead<Ao){if(Wo(e),e.lookahead<Ao&&t===Wa)return Po;if(0===e.lookahead)break}if(n=0,e.lookahead>=ko&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ko-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-Ao&&(e.match_length=Xo(e,n)),e.match_length>=ko)if(r=qa(e,e.strstart-e.match_start,e.match_length-ko),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=ko){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ko-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!==--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=qa(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(Go(e,!1),0===e.strm.avail_out))return Po}return e.insert=e.strstart<ko-1?e.strstart:ko-1,t===Ja?(Go(e,!0),0===e.strm.avail_out?Bo:Fo):e.last_lit&&(Go(e,!1),0===e.strm.avail_out)?Po:Mo}function Jo(e,t){for(var n,r,i;;){if(e.lookahead<Ao){if(Wo(e),e.lookahead<Ao&&t===Wa)return Po;if(0===e.lookahead)break}if(n=0,e.lookahead>=ko&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ko-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=ko-1,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-Ao&&(e.match_length=Xo(e,n),e.match_length<=5&&(e.strategy===ao||e.match_length===ko&&e.strstart-e.match_start>4096)&&(e.match_length=ko-1)),e.prev_length>=ko&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-ko,r=qa(e,e.strstart-1-e.prev_match,e.prev_length-ko),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+ko-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!==--e.prev_length);if(e.match_available=0,e.match_length=ko-1,e.strstart++,r&&(Go(e,!1),0===e.strm.avail_out))return Po}else if(e.match_available){if(r=qa(e,0,e.window[e.strstart-1]),r&&Go(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return Po}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=qa(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<ko-1?e.strstart:ko-1,t===Ja?(Go(e,!0),0===e.strm.avail_out?Bo:Fo):e.last_lit&&(Go(e,!1),0===e.strm.avail_out)?Po:Mo}function Zo(e,t){for(var n,r,i,a,o=e.window;;){if(e.lookahead<=xo){if(Wo(e),e.lookahead<=xo&&t===Wa)return Po;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=ko&&e.strstart>0&&(i=e.strstart-1,r=o[i],r===o[++i]&&r===o[++i]&&r===o[++i])){a=e.strstart+xo;do{}while(r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&i<a);e.match_length=xo-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=ko?(n=qa(e,1,e.match_length-ko),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=qa(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(Go(e,!1),0===e.strm.avail_out))return Po}return e.insert=0,t===Ja?(Go(e,!0),0===e.strm.avail_out?Bo:Fo):e.last_lit&&(Go(e,!1),0===e.strm.avail_out)?Po:Mo}function es(e,t){for(var n;;){if(0===e.lookahead&&(Wo(e),0===e.lookahead)){if(t===Wa)return Po;break}if(e.match_length=0,n=qa(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(Go(e,!1),0===e.strm.avail_out))return Po}return e.insert=0,t===Ja?(Go(e,!0),0===e.strm.avail_out?Bo:Fo):e.last_lit&&(Go(e,!1),0===e.strm.avail_out)?Po:Mo}function ts(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function ns(e){e.window_size=2*e.w_size,Vo(e.head),e.max_lazy_match=po[e.level].max_lazy,e.good_match=po[e.level].good_length,e.nice_match=po[e.level].nice_length,e.max_chain_length=po[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=ko-1,e.match_available=0,e.ins_h=0}function rs(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ho,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new sr(2*Eo),this.dyn_dtree=new sr(2*(2*_o+1)),this.bl_tree=new sr(2*(2*wo+1)),Vo(this.dyn_ltree),Vo(this.dyn_dtree),Vo(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new sr(So+1),this.heap=new sr(2*yo+1),Vo(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new sr(2*yo+1),Vo(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function is(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=uo,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?To:Lo,e.adler=2===t.wrap?0:1,t.last_flush=Wa,Ka(t),eo):Uo(e,no)}function as(e){var t=is(e);return t===eo&&ns(e.state),t}function os(e,t,n,r,i,a){if(!e)return no;var o=1;if(t===io&&(t=6),r<0?(o=0,r=-r):r>15&&(o=2,r-=16),i<1||i>fo||n!==ho||r<8||r>15||t<0||t>9||a<0||a>lo)return Uo(e,no);8===r&&(r=9);var s=new rs;return e.state=s,s.strm=e,s.wrap=o,s.gzhead=null,s.w_bits=r,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+ko-1)/ko),s.window=new or(2*s.w_size),s.head=new sr(s.hash_size),s.prev=new sr(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new or(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=t,s.strategy=a,s.method=n,as(e)}function ss(e,t){return os(e,t,ho,mo,go,co)}function ls(e,t){var n,r,i,a;if(!e||!e.state||t>Za||t<0)return e?Uo(e,no):no;if(r=e.state,!e.output||!e.input&&0!==e.avail_in||r.status===Do&&t!==Ja)return Uo(e,0===e.avail_out?ro:no);if(r.strm=e,n=r.last_flush,r.last_flush=t,r.status===To)if(2===r.wrap)e.adler=0,Ho(r,31),Ho(r,139),Ho(r,8),r.gzhead?(Ho(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),Ho(r,255&r.gzhead.time),Ho(r,r.gzhead.time>>8&255),Ho(r,r.gzhead.time>>16&255),Ho(r,r.gzhead.time>>24&255),Ho(r,9===r.level?2:r.strategy>=oo||r.level<2?4:0),Ho(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(Ho(r,255&r.gzhead.extra.length),Ho(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=ur(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=No):(Ho(r,0),Ho(r,0),Ho(r,0),Ho(r,0),Ho(r,0),Ho(r,9===r.level?2:r.strategy>=oo||r.level<2?4:0),Ho(r,$o),r.status=Lo);else{var o=ho+(r.w_bits-8<<4)<<8,s=-1;s=r.strategy>=oo||r.level<2?0:r.level<6?1:6===r.level?2:3,o|=s<<6,0!==r.strstart&&(o|=Co),o+=31-o%31,r.status=Lo,zo(r,o),0!==r.strstart&&(zo(r,e.adler>>>16),zo(r,65535&e.adler)),e.adler=1}if(r.status===No)if(r.gzhead.extra){i=r.pending;while(r.gzindex<(65535&r.gzhead.extra.length)){if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(e.adler=ur(e.adler,r.pending_buf,r.pending-i,i)),Ko(e),i=r.pending,r.pending===r.pending_buf_size))break;Ho(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++}r.gzhead.hcrc&&r.pending>i&&(e.adler=ur(e.adler,r.pending_buf,r.pending-i,i)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=Ro)}else r.status=Ro;if(r.status===Ro)if(r.gzhead.name){i=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(e.adler=ur(e.adler,r.pending_buf,r.pending-i,i)),Ko(e),i=r.pending,r.pending===r.pending_buf_size)){a=1;break}a=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,Ho(r,a)}while(0!==a);r.gzhead.hcrc&&r.pending>i&&(e.adler=ur(e.adler,r.pending_buf,r.pending-i,i)),0===a&&(r.gzindex=0,r.status=Oo)}else r.status=Oo;if(r.status===Oo)if(r.gzhead.comment){i=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(e.adler=ur(e.adler,r.pending_buf,r.pending-i,i)),Ko(e),i=r.pending,r.pending===r.pending_buf_size)){a=1;break}a=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,Ho(r,a)}while(0!==a);r.gzhead.hcrc&&r.pending>i&&(e.adler=ur(e.adler,r.pending_buf,r.pending-i,i)),0===a&&(r.status=Io)}else r.status=Io;if(r.status===Io&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&Ko(e),r.pending+2<=r.pending_buf_size&&(Ho(r,255&e.adler),Ho(r,e.adler>>8&255),e.adler=0,r.status=Lo)):r.status=Lo),0!==r.pending){if(Ko(e),0===e.avail_out)return r.last_flush=-1,eo}else if(0===e.avail_in&&jo(t)<=jo(n)&&t!==Ja)return Uo(e,ro);if(r.status===Do&&0!==e.avail_in)return Uo(e,ro);if(0!==e.avail_in||0!==r.lookahead||t!==Wa&&r.status!==Do){var l=r.strategy===oo?es(r,t):r.strategy===so?Zo(r,t):po[r.level].func(r,t);if(l!==Bo&&l!==Fo||(r.status=Do),l===Po||l===Bo)return 0===e.avail_out&&(r.last_flush=-1),eo;if(l===Mo&&(t===Ya?Ha(r):t!==Za&&(Ga(r,0,0,!1),t===Qa&&(Vo(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),Ko(e),0===e.avail_out))return r.last_flush=-1,eo}return t!==Ja?eo:r.wrap<=0?to:(2===r.wrap?(Ho(r,255&e.adler),Ho(r,e.adler>>8&255),Ho(r,e.adler>>16&255),Ho(r,e.adler>>24&255),Ho(r,255&e.total_in),Ho(r,e.total_in>>8&255),Ho(r,e.total_in>>16&255),Ho(r,e.total_in>>24&255)):(zo(r,e.adler>>>16),zo(r,65535&e.adler)),Ko(e),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?eo:to)}po=[new ts(0,0,0,0,Yo),new ts(4,4,8,4,Qo),new ts(4,5,16,8,Qo),new ts(4,6,32,32,Qo),new ts(4,4,16,16,Jo),new ts(8,16,32,32,Jo),new ts(8,16,128,128,Jo),new ts(8,32,128,256,Jo),new ts(32,128,258,1024,Jo),new ts(32,258,258,4096,Jo)];class cs{constructor(){this.strm=new Di,this.chunkSize=102400,this.outputBuffer=new Uint8Array(this.chunkSize),this.windowBits=5,ss(this.strm,this.windowBits)}deflate(e){this.strm.input=e,this.strm.avail_in=this.strm.input.length,this.strm.next_in=0,this.strm.output=this.outputBuffer,this.strm.avail_out=this.chunkSize,this.strm.next_out=0;let t=ls(this.strm,Qa),n=new Uint8Array(this.strm.output.buffer,0,this.strm.next_out);if(t<0)throw new Error("zlib deflate failed");if(this.strm.avail_in>0){let e=[n],r=n.length;do{if(this.strm.output=new Uint8Array(this.chunkSize),this.strm.next_out=0,this.strm.avail_out=this.chunkSize,t=ls(this.strm,Qa),t<0)throw new Error("zlib deflate failed");let n=new Uint8Array(this.strm.output.buffer,0,this.strm.next_out);r+=n.length,e.push(n)}while(this.strm.avail_in>0);let i=new Uint8Array(r),a=0;for(let t=0;t<e.length;t++)i.set(e[t],a),a+=e[t].length;n=i}return this.strm.input=null,this.strm.avail_in=0,this.strm.next_in=0,n}}class us{constructor(e){this._target=e||null,this._keyDownList={},this._pendingKey=null,this._altGrArmed=!1,this._eventHandlers={keyup:this._handleKeyUp.bind(this),keydown:this._handleKeyDown.bind(this),keypress:this._handleKeyPress.bind(this),blur:this._allKeysUp.bind(this),checkalt:this._checkAlt.bind(this)},this.onkeyevent=()=>{}}_sendKeyEvent(e,t,n){if(n)this._keyDownList[t]=e;else{if(!(t in this._keyDownList))return;delete this._keyDownList[t]}hn("onkeyevent "+(n?"down":"up")+", keysym: "+e,", code: "+t),this.onkeyevent(e,t,n)}_getKeyCode(e){const t=Rn(e);if("Unidentified"!==t)return t;if(e.keyCode&&"keypress"!==e.type&&229!==e.keyCode)return"Platform"+e.keyCode;if(e.keyIdentifier){if("U+"!==e.keyIdentifier.substr(0,2))return e.keyIdentifier;const t=parseInt(e.keyIdentifier.substr(2),16),n=String.fromCharCode(t).toUpperCase();return"Platform"+n.charCodeAt()}return"Unidentified"}_handleKeyDown(e){const t=this._getKeyCode(e);let n=In(e);if(this._altGrArmed&&(this._altGrArmed=!1,clearTimeout(this._altGrTimeout),"AltRight"===t&&e.timeStamp-this._altGrCtrlTime<50?n=Zt.XK_ISO_Level3_Shift:this._sendKeyEvent(Zt.XK_Control_L,"ControlLeft",!0)),"Unidentified"===t)return n&&(this._sendKeyEvent(n,t,!0),this._sendKeyEvent(n,t,!1)),void Xn(e);if(kn()||An())switch(n){case Zt.XK_Super_L:n=Zt.XK_Alt_L;break;case Zt.XK_Super_R:n=Zt.XK_Super_L;break;case Zt.XK_Alt_L:n=Zt.XK_Mode_switch;break;case Zt.XK_Alt_R:n=Zt.XK_ISO_Level3_Shift;break}return t in this._keyDownList&&(n=this._keyDownList[t]),(kn()||An())&&"CapsLock"===t?(this._sendKeyEvent(Zt.XK_Caps_Lock,"CapsLock",!0),this._sendKeyEvent(Zt.XK_Caps_Lock,"CapsLock",!1),void Xn(e)):n||e.key&&!Cn()&&!Tn()?(this._pendingKey=null,Xn(e),"ControlLeft"===t&&xn()&&!("ControlLeft"in this._keyDownList)?(this._altGrArmed=!0,this._altGrTimeout=setTimeout(this._handleAltGrTimeout.bind(this),100),void(this._altGrCtrlTime=e.timeStamp)):void this._sendKeyEvent(n,t,!0)):(this._pendingKey=t,void setTimeout(this._handleKeyPressTimeout.bind(this),10,e))}_handleKeyPress(e){if(Xn(e),null===this._pendingKey)return;let t=this._getKeyCode(e);const n=In(e);"Unidentified"!==t&&t!=this._pendingKey||(t=this._pendingKey,this._pendingKey=null,n?this._sendKeyEvent(n,t,!0):pn("keypress with no keysym:",e))}_handleKeyPressTimeout(e){if(null===this._pendingKey)return;let t;const n=this._pendingKey;if(this._pendingKey=null,e.keyCode>=48&&e.keyCode<=57)t=e.keyCode;else if(e.keyCode>=65&&e.keyCode<=90){let n=String.fromCharCode(e.keyCode);n=e.shiftKey?n.toUpperCase():n.toLowerCase(),t=n.charCodeAt()}else t=0;this._sendKeyEvent(t,n,!0)}_handleKeyUp(e){Xn(e);const t=this._getKeyCode(e);if(this._altGrArmed&&(this._altGrArmed=!1,clearTimeout(this._altGrTimeout),this._sendKeyEvent(Zt.XK_Control_L,"ControlLeft",!0)),(kn()||An())&&"CapsLock"===t)return this._sendKeyEvent(Zt.XK_Caps_Lock,"CapsLock",!0),void this._sendKeyEvent(Zt.XK_Caps_Lock,"CapsLock",!1);this._sendKeyEvent(this._keyDownList[t],t,!1),!xn()||"ShiftLeft"!==t&&"ShiftRight"!==t||("ShiftRight"in this._keyDownList&&this._sendKeyEvent(this._keyDownList["ShiftRight"],"ShiftRight",!1),"ShiftLeft"in this._keyDownList&&this._sendKeyEvent(this._keyDownList["ShiftLeft"],"ShiftLeft",!1))}_handleAltGrTimeout(){this._altGrArmed=!1,clearTimeout(this._altGrTimeout),this._sendKeyEvent(Zt.XK_Control_L,"ControlLeft",!0)}_allKeysUp(){hn(">> Keyboard.allKeysUp");for(let e in this._keyDownList)this._sendKeyEvent(this._keyDownList[e],e,!1);hn("<< Keyboard.allKeysUp")}_checkAlt(e){if(e.skipCheckAlt)return;if(e.altKey)return;const t=this._target,n=this._keyDownList;["AltLeft","AltRight"].forEach(e=>{if(!(e in n))return;const r=new KeyboardEvent("keyup",{key:n[e],code:e});r.skipCheckAlt=!0,t.dispatchEvent(r)})}grab(){if(this._target.addEventListener("keydown",this._eventHandlers.keydown),this._target.addEventListener("keyup",this._eventHandlers.keyup),this._target.addEventListener("keypress",this._eventHandlers.keypress),window.addEventListener("blur",this._eventHandlers.blur),xn()&&Nn()){const e=this._eventHandlers.checkalt;["mousedown","mouseup","mousemove","wheel","touchstart","touchend","touchmove","keydown","keyup"].forEach(t=>document.addEventListener(t,e,{capture:!0,passive:!0}))}}ungrab(){if(xn()&&Nn()){const e=this._eventHandlers.checkalt;["mousedown","mouseup","mousemove","wheel","touchstart","touchend","touchmove","keydown","keyup"].forEach(t=>document.removeEventListener(t,e))}this._target.removeEventListener("keydown",this._eventHandlers.keydown),this._target.removeEventListener("keyup",this._eventHandlers.keyup),this._target.removeEventListener("keypress",this._eventHandlers.keypress),window.removeEventListener("blur",this._eventHandlers.blur),this._allKeysUp()}}const ds=0,hs=1,ps=2,fs=4,ms=8,gs=16,vs=32,bs=64,ys=127,_s=50,ws=90,Es=250,Ss=1e3,ks=1e3,xs=50;class As{constructor(){this._target=null,this._state=ys,this._tracked=[],this._ignored=[],this._waitingRelease=!1,this._releaseStart=0,this._longpressTimeoutId=null,this._twoTouchTimeoutId=null,this._boundEventHandler=this._eventHandler.bind(this)}attach(e){this.detach(),this._target=e,this._target.addEventListener("touchstart",this._boundEventHandler),this._target.addEventListener("touchmove",this._boundEventHandler),this._target.addEventListener("touchend",this._boundEventHandler),this._target.addEventListener("touchcancel",this._boundEventHandler)}detach(){this._target&&(this._stopLongpressTimeout(),this._stopTwoTouchTimeout(),this._target.removeEventListener("touchstart",this._boundEventHandler),this._target.removeEventListener("touchmove",this._boundEventHandler),this._target.removeEventListener("touchend",this._boundEventHandler),this._target.removeEventListener("touchcancel",this._boundEventHandler),this._target=null)}_eventHandler(e){let t;switch(e.stopPropagation(),e.preventDefault(),e.type){case"touchstart":t=this._touchStart;break;case"touchmove":t=this._touchMove;break;case"touchend":case"touchcancel":t=this._touchEnd;break}for(let n=0;n<e.changedTouches.length;n++){let r=e.changedTouches[n];t.call(this,r.identifier,r.clientX,r.clientY)}}_touchStart(e,t,n){if(this._hasDetectedGesture()||this._state===ds)this._ignored.push(e);else{if(this._tracked.length>0&&Date.now()-this._tracked[0].started>Es)return this._state=ds,void this._ignored.push(e);if(this._waitingRelease)return this._state=ds,void this._ignored.push(e);switch(this._tracked.push({id:e,started:Date.now(),active:!0,firstX:t,firstY:n,lastX:t,lastY:n,angle:0}),this._tracked.length){case 1:this._startLongpressTimeout();break;case 2:this._state&=~(hs|ms|gs),this._stopLongpressTimeout();break;case 3:this._state&=~(ps|vs|bs);break;default:this._state=ds}}}_touchMove(e,t,n){let r=this._tracked.find(t=>t.id===e);if(void 0===r)return;r.lastX=t,r.lastY=n;let i=t-r.firstX,a=n-r.firstY;if(r.firstX===r.lastX&&r.firstY===r.lastY||(r.angle=180*Math.atan2(a,i)/Math.PI),!this._hasDetectedGesture()){if(Math.hypot(i,a)<_s)return;if(this._state&=~(hs|ps|fs|gs),this._stopLongpressTimeout(),1!==this._tracked.length&&(this._state&=~ms),2!==this._tracked.length&&(this._state&=~(vs|bs)),2===this._tracked.length){let t=this._tracked.find(t=>t.id!==e),n=Math.hypot(t.firstX-t.lastX,t.firstY-t.lastY);if(n>_s){let e=Math.abs(r.angle-t.angle);e=Math.abs((e+180)%360-180),this._state&=e>ws?~vs:~bs,this._isTwoTouchTimeoutRunning()&&this._stopTwoTouchTimeout()}else this._isTwoTouchTimeoutRunning()||this._startTwoTouchTimeout()}if(!this._hasDetectedGesture())return;this._pushEvent("gesturestart")}this._pushEvent("gesturemove")}_touchEnd(e,t,n){if(-1!==this._ignored.indexOf(e))return this._ignored.splice(this._ignored.indexOf(e),1),void(0===this._ignored.length&&0===this._tracked.length&&(this._state=ys,this._waitingRelease=!1));if(!this._hasDetectedGesture()&&this._isTwoTouchTimeoutRunning()&&(this._stopTwoTouchTimeout(),this._state=ds),!this._hasDetectedGesture()&&(this._state&=~(ms|vs|bs),this._state&=~gs,this._stopLongpressTimeout(),!this._waitingRelease))switch(this._releaseStart=Date.now(),this._waitingRelease=!0,this._tracked.length){case 1:this._state&=~(ps|fs);break;case 2:this._state&=~(hs|fs);break}if(this._waitingRelease){Date.now()-this._releaseStart>Es&&(this._state=ds),this._tracked.some(e=>Date.now()-e.started>Ss)&&(this._state=ds);let t=this._tracked.find(t=>t.id===e);if(t.active=!1,this._hasDetectedGesture())this._pushEvent("gesturestart");else if(this._state!==ds)return}this._hasDetectedGesture()&&this._pushEvent("gestureend");for(let r=0;r<this._tracked.length;r++)this._tracked[r].active&&this._ignored.push(this._tracked[r].id);this._tracked=[],this._state=ds,-1!==this._ignored.indexOf(e)&&this._ignored.splice(this._ignored.indexOf(e),1),0===this._ignored.length&&(this._state=ys,this._waitingRelease=!1)}_hasDetectedGesture(){return this._state!==ds&&(!(this._state&this._state-1)&&!(this._state&(hs|ps|fs)&&this._tracked.some(e=>e.active)))}_startLongpressTimeout(){this._stopLongpressTimeout(),this._longpressTimeoutId=setTimeout(()=>this._longpressTimeout(),ks)}_stopLongpressTimeout(){clearTimeout(this._longpressTimeoutId),this._longpressTimeoutId=null}_longpressTimeout(){if(this._hasDetectedGesture())throw new Error("A longpress gesture failed, conflict with a different gesture");this._state=gs,this._pushEvent("gesturestart")}_startTwoTouchTimeout(){this._stopTwoTouchTimeout(),this._twoTouchTimeoutId=setTimeout(()=>this._twoTouchTimeout(),xs)}_stopTwoTouchTimeout(){clearTimeout(this._twoTouchTimeoutId),this._twoTouchTimeoutId=null}_isTwoTouchTimeoutRunning(){return null!==this._twoTouchTimeoutId}_twoTouchTimeout(){if(0===this._tracked.length)throw new Error("A pinch or two drag gesture failed, no tracked touches");let e=this._getAverageMovement(),t=Math.abs(e.x),n=Math.abs(e.y),r=this._getAverageDistance(),i=Math.abs(Math.hypot(r.first.x,r.first.y)-Math.hypot(r.last.x,r.last.y));this._state=n<i&&t<i?bs:vs,this._pushEvent("gesturestart"),this._pushEvent("gesturemove")}_pushEvent(e){let t={type:this._stateToGesture(this._state)},n=this._getPosition(),r=n.last;switch("gesturestart"===e&&(r=n.first),this._state){case vs:case bs:r=n.first;break}if(t["clientX"]=r.x,t["clientY"]=r.y,this._state===bs){let n=this._getAverageDistance();"gesturestart"===e?(t["magnitudeX"]=n.first.x,t["magnitudeY"]=n.first.y):(t["magnitudeX"]=n.last.x,t["magnitudeY"]=n.last.y)}else if(this._state===vs)if("gesturestart"===e)t["magnitudeX"]=0,t["magnitudeY"]=0;else{let e=this._getAverageMovement();t["magnitudeX"]=e.x,t["magnitudeY"]=e.y}let i=new CustomEvent(e,{detail:t});this._target.dispatchEvent(i)}_stateToGesture(e){switch(e){case hs:return"onetap";case ps:return"twotap";case fs:return"threetap";case ms:return"drag";case gs:return"longpress";case vs:return"twodrag";case bs:return"pinch"}throw new Error("Unknown gesture state: "+e)}_getPosition(){if(0===this._tracked.length)throw new Error("Failed to get gesture position, no tracked touches");let e=this._tracked.length,t=0,n=0,r=0,i=0;for(let a=0;a<this._tracked.length;a++)t+=this._tracked[a].firstX,n+=this._tracked[a].firstY,r+=this._tracked[a].lastX,i+=this._tracked[a].lastY;return{first:{x:t/e,y:n/e},last:{x:r/e,y:i/e}}}_getAverageMovement(){if(0===this._tracked.length)throw new Error("Failed to get gesture movement, no tracked touches");let e,t;e=t=0;let n=this._tracked.length;for(let r=0;r<this._tracked.length;r++)e+=this._tracked[r].lastX-this._tracked[r].firstX,t+=this._tracked[r].lastY-this._tracked[r].firstY;return{x:e/n,y:t/n}}_getAverageDistance(){if(0===this._tracked.length)throw new Error("Failed to get gesture distance, no tracked touches");let e=this._tracked[0],t=this._tracked[this._tracked.length-1],n=Math.abs(t.firstX-e.firstX),r=Math.abs(t.firstY-e.firstY),i=Math.abs(t.lastX-e.lastX),a=Math.abs(t.lastY-e.lastY);return{first:{x:n,y:r},last:{x:i,y:a}}}}const Cs=!_n||vn;class Ts{constructor(){this._target=null,this._canvas=document.createElement("canvas"),Cs&&(this._canvas.style.position="fixed",this._canvas.style.zIndex="65535",this._canvas.style.pointerEvents="none",this._canvas.style.visibility="hidden"),this._position={x:0,y:0},this._hotSpot={x:0,y:0},this._eventHandlers={mouseover:this._handleMouseOver.bind(this),mouseleave:this._handleMouseLeave.bind(this),mousemove:this._handleMouseMove.bind(this),mouseup:this._handleMouseUp.bind(this)}}attach(e){if(this._target&&this.detach(),this._target=e,Cs){document.body.appendChild(this._canvas);const e={capture:!0,passive:!0};this._target.addEventListener("mouseover",this._eventHandlers.mouseover,e),this._target.addEventListener("mouseleave",this._eventHandlers.mouseleave,e),this._target.addEventListener("mousemove",this._eventHandlers.mousemove,e),this._target.addEventListener("mouseup",this._eventHandlers.mouseup,e)}this.clear()}detach(){if(this._target){if(Cs){const e={capture:!0,passive:!0};this._target.removeEventListener("mouseover",this._eventHandlers.mouseover,e),this._target.removeEventListener("mouseleave",this._eventHandlers.mouseleave,e),this._target.removeEventListener("mousemove",this._eventHandlers.mousemove,e),this._target.removeEventListener("mouseup",this._eventHandlers.mouseup,e),document.body.removeChild(this._canvas)}this._target=null}}change(e,t,n,r,i){if(0===r||0===i)return void this.clear();this._position.x=this._position.x+this._hotSpot.x-t,this._position.y=this._position.y+this._hotSpot.y-n,this._hotSpot.x=t,this._hotSpot.y=n;let a,o=this._canvas.getContext("2d");this._canvas.width=r,this._canvas.height=i;try{a=new ImageData(new Uint8ClampedArray(e),r,i)}catch(_g){a=o.createImageData(r,i),a.data.set(new Uint8ClampedArray(e))}if(o.clearRect(0,0,r,i),o.putImageData(a,0,0),Cs)this._updatePosition();else{let e=this._canvas.toDataURL();this._target.style.cursor="url("+e+")"+t+" "+n+", default"}}clear(){this._target.style.cursor="none",this._canvas.width=0,this._canvas.height=0,this._position.x=this._position.x+this._hotSpot.x,this._position.y=this._position.y+this._hotSpot.y,this._hotSpot.x=0,this._hotSpot.y=0}move(e,t){if(!Cs)return;window.visualViewport?(this._position.x=e+window.visualViewport.offsetLeft,this._position.y=t+window.visualViewport.offsetTop):(this._position.x=e,this._position.y=t),this._updatePosition();let n=document.elementFromPoint(e,t);this._updateVisibility(n)}_handleMouseOver(e){this._handleMouseMove(e)}_handleMouseLeave(e){this._updateVisibility(e.relatedTarget)}_handleMouseMove(e){this._updateVisibility(e.target),this._position.x=e.clientX-this._hotSpot.x,this._position.y=e.clientY-this._hotSpot.y,this._updatePosition()}_handleMouseUp(e){let t=document.elementFromPoint(e.clientX,e.clientY);this._updateVisibility(t),this._captureIsActive()&&window.setTimeout(()=>{this._target&&(t=document.elementFromPoint(e.clientX,e.clientY),this._updateVisibility(t))},0)}_showCursor(){"hidden"===this._canvas.style.visibility&&(this._canvas.style.visibility="")}_hideCursor(){"hidden"!==this._canvas.style.visibility&&(this._canvas.style.visibility="hidden")}_shouldShowCursor(e){return!!e&&(e===this._target||!!this._target.contains(e)&&"none"===window.getComputedStyle(e).cursor)}_updateVisibility(e){this._captureIsActive()&&(e=document.captureElement),this._shouldShowCursor(e)?this._showCursor():this._hideCursor()}_updatePosition(){this._canvas.style.left=this._position.x+"px",this._canvas.style.top=this._position.y+"px"}_captureIsActive(){return document.captureElement&&document.documentElement.contains(document.captureElement)}}const Ns=!1,Rs=41943040;class Os{constructor(){this._websocket=null,this._rQi=0,this._rQlen=0,this._rQbufferSize=4194304,this._rQ=null,this._sQbufferSize=10240,this._sQlen=0,this._sQ=null,this._eventHandlers={message:()=>{},open:()=>{},close:()=>{},error:()=>{}}}get sQ(){return this._sQ}get rQ(){return this._rQ}get rQi(){return this._rQi}set rQi(e){this._rQi=e}get rQlen(){return this._rQlen-this._rQi}rQpeek8(){return this._rQ[this._rQi]}rQskipBytes(e){this._rQi+=e}rQshift8(){return this._rQshift(1)}rQshift16(){return this._rQshift(2)}rQshift32(){return this._rQshift(4)}_rQshift(e){let t=0;for(let n=e-1;n>=0;n--)t+=this._rQ[this._rQi++]<<8*n;return t}rQshiftStr(e){"undefined"===typeof e&&(e=this.rQlen);let t="";for(let n=0;n<e;n+=4096){let r=this.rQshiftBytes(Math.min(4096,e-n));t+=String.fromCharCode.apply(null,r)}return t}rQshiftBytes(e){return"undefined"===typeof e&&(e=this.rQlen),this._rQi+=e,new Uint8Array(this._rQ.buffer,this._rQi-e,e)}rQshiftTo(e,t){void 0===t&&(t=this.rQlen),e.set(new Uint8Array(this._rQ.buffer,this._rQi,t)),this._rQi+=t}rQslice(e,t=this.rQlen){return new Uint8Array(this._rQ.buffer,this._rQi+e,t-e)}rQwait(e,t,n){if(this.rQlen<t){if(n){if(this._rQi<n)throw new Error("rQwait cannot backup "+n+" bytes");this._rQi-=n}return!0}return!1}flush(){this._sQlen>0&&this._websocket.readyState===WebSocket.OPEN&&(this._websocket.send(this._encodeMessage()),this._sQlen=0)}send(e){this._sQ.set(e,this._sQlen),this._sQlen+=e.length,this.flush()}sendString(e){this.send(e.split("").map(e=>e.charCodeAt(0)))}off(e){this._eventHandlers[e]=()=>{}}on(e,t){this._eventHandlers[e]=t}_allocateBuffers(){this._rQ=new Uint8Array(this._rQbufferSize),this._sQ=new Uint8Array(this._sQbufferSize)}init(){this._allocateBuffers(),this._rQi=0,this._websocket=null}open(e,t){this.init(),this._websocket=new WebSocket(e,t),this._websocket.binaryType="arraybuffer",this._websocket.onmessage=this._recvMessage.bind(this),this._websocket.onopen=()=>{hn(">> WebSock.onopen"),this._websocket.protocol&&pn("Server choose sub-protocol: "+this._websocket.protocol),this._eventHandlers.open(),hn("<< WebSock.onopen")},this._websocket.onclose=e=>{hn(">> WebSock.onclose"),this._eventHandlers.close(e),hn("<< WebSock.onclose")},this._websocket.onerror=e=>{hn(">> WebSock.onerror: "+e),this._eventHandlers.error(e),hn("<< WebSock.onerror: "+e)}}close(){this._websocket&&(this._websocket.readyState!==WebSocket.OPEN&&this._websocket.readyState!==WebSocket.CONNECTING||(pn("Closing WebSocket connection"),this._websocket.close()),this._websocket.onmessage=()=>{})}_encodeMessage(){return new Uint8Array(this._sQ.buffer,0,this._sQlen)}_expandCompactRQ(e){const t=8*(this._rQlen-this._rQi+e),n=this._rQbufferSize<t;if(n&&(this._rQbufferSize=Math.max(2*this._rQbufferSize,t)),this._rQbufferSize>Rs&&(this._rQbufferSize=Rs,this._rQbufferSize-this.rQlen<e))throw new Error("Receive Queue buffer exceeded "+Rs+" bytes, and the new message could not fit");if(n){const e=this._rQ.buffer;this._rQ=new Uint8Array(this._rQbufferSize),this._rQ.set(new Uint8Array(e,this._rQi,this._rQlen-this._rQi))}else Ns?this._rQ.copyWithin(0,this._rQi,this._rQlen):this._rQ.set(new Uint8Array(this._rQ.buffer,this._rQi,this._rQlen-this._rQi));this._rQlen=this._rQlen-this._rQi,this._rQi=0}_DecodeMessage(e){const t=new Uint8Array(e);t.length>this._rQbufferSize-this._rQlen&&this._expandCompactRQ(t.length),this._rQ.set(t,this._rQlen),this._rQlen+=t.length}_recvMessage(e){this._DecodeMessage(e.data),this.rQlen>0?(this._eventHandlers.message(),this._rQlen==this._rQi&&(this._rQlen=0,this._rQi=0)):hn("Ignoring empty message")}}const Is=[13,16,10,23,0,4,2,27,14,5,20,9,22,18,11,3,25,7,15,6,26,19,12,1,40,51,30,36,46,54,29,39,50,44,32,47,43,48,38,55,33,52,45,41,49,35,28,31],Ls=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],Ds=0;let Ps,Ms,Bs,Fs,$s,Us;Ps=65536,Ms=1<<24,Bs=Ps|Ms,Fs=4,$s=1024,Us=Fs|$s;const js=[Bs|$s,Ds|Ds,Ps|Ds,Bs|Us,Bs|Fs,Ps|Us,Ds|Fs,Ps|Ds,Ds|$s,Bs|$s,Bs|Us,Ds|$s,Ms|Us,Bs|Fs,Ms|Ds,Ds|Fs,Ds|Us,Ms|$s,Ms|$s,Ps|$s,Ps|$s,Bs|Ds,Bs|Ds,Ms|Us,Ps|Fs,Ms|Fs,Ms|Fs,Ps|Fs,Ds|Ds,Ds|Us,Ps|Us,Ms|Ds,Ps|Ds,Bs|Us,Ds|Fs,Bs|Ds,Bs|$s,Ms|Ds,Ms|Ds,Ds|$s,Bs|Fs,Ps|Ds,Ps|$s,Ms|Fs,Ds|$s,Ds|Fs,Ms|Us,Ps|Us,Bs|Us,Ps|Fs,Bs|Ds,Ms|Us,Ms|Fs,Ds|Us,Ps|Us,Bs|$s,Ds|Us,Ms|$s,Ms|$s,Ds|Ds,Ps|Fs,Ps|$s,Ds|Ds,Bs|Fs];Ps=1<<20,Ms=1<<31,Bs=Ps|Ms,Fs=32,$s=32768,Us=Fs|$s;const Vs=[Bs|Us,Ms|$s,Ds|$s,Ps|Us,Ps|Ds,Ds|Fs,Bs|Fs,Ms|Us,Ms|Fs,Bs|Us,Bs|$s,Ms|Ds,Ms|$s,Ps|Ds,Ds|Fs,Bs|Fs,Ps|$s,Ps|Fs,Ms|Us,Ds|Ds,Ms|Ds,Ds|$s,Ps|Us,Bs|Ds,Ps|Fs,Ms|Fs,Ds|Ds,Ps|$s,Ds|Us,Bs|$s,Bs|Ds,Ds|Us,Ds|Ds,Ps|Us,Bs|Fs,Ps|Ds,Ms|Us,Bs|Ds,Bs|$s,Ds|$s,Bs|Ds,Ms|$s,Ds|Fs,Bs|Us,Ps|Us,Ds|Fs,Ds|$s,Ms|Ds,Ds|Us,Bs|$s,Ps|Ds,Ms|Fs,Ps|Fs,Ms|Us,Ms|Fs,Ps|Fs,Ps|$s,Ds|Ds,Ms|$s,Ds|Us,Ms|Ds,Bs|Fs,Bs|Us,Ps|$s];Ps=1<<17,Ms=1<<27,Bs=Ps|Ms,Fs=8,$s=512,Us=Fs|$s;const Ks=[Ds|Us,Bs|$s,Ds|Ds,Bs|Fs,Ms|$s,Ds|Ds,Ps|Us,Ms|$s,Ps|Fs,Ms|Fs,Ms|Fs,Ps|Ds,Bs|Us,Ps|Fs,Bs|Ds,Ds|Us,Ms|Ds,Ds|Fs,Bs|$s,Ds|$s,Ps|$s,Bs|Ds,Bs|Fs,Ps|Us,Ms|Us,Ps|$s,Ps|Ds,Ms|Us,Ds|Fs,Bs|Us,Ds|$s,Ms|Ds,Bs|$s,Ms|Ds,Ps|Fs,Ds|Us,Ps|Ds,Bs|$s,Ms|$s,Ds|Ds,Ds|$s,Ps|Fs,Bs|Us,Ms|$s,Ms|Fs,Ds|$s,Ds|Ds,Bs|Fs,Ms|Us,Ps|Ds,Ms|Ds,Bs|Us,Ds|Fs,Ps|Us,Ps|$s,Ms|Fs,Bs|Ds,Ms|Us,Ds|Us,Bs|Ds,Ps|Us,Ds|Fs,Bs|Fs,Ps|$s];Ps=8192,Ms=1<<23,Bs=Ps|Ms,Fs=1,$s=128,Us=Fs|$s;const Gs=[Bs|Fs,Ps|Us,Ps|Us,Ds|$s,Bs|$s,Ms|Us,Ms|Fs,Ps|Fs,Ds|Ds,Bs|Ds,Bs|Ds,Bs|Us,Ds|Us,Ds|Ds,Ms|$s,Ms|Fs,Ds|Fs,Ps|Ds,Ms|Ds,Bs|Fs,Ds|$s,Ms|Ds,Ps|Fs,Ps|$s,Ms|Us,Ds|Fs,Ps|$s,Ms|$s,Ps|Ds,Bs|$s,Bs|Us,Ds|Us,Ms|$s,Ms|Fs,Bs|Ds,Bs|Us,Ds|Us,Ds|Ds,Ds|Ds,Bs|Ds,Ps|$s,Ms|$s,Ms|Us,Ds|Fs,Bs|Fs,Ps|Us,Ps|Us,Ds|$s,Bs|Us,Ds|Us,Ds|Fs,Ps|Ds,Ms|Fs,Ps|Fs,Bs|$s,Ms|Us,Ps|Fs,Ps|$s,Ms|Ds,Bs|Fs,Ds|$s,Ms|Ds,Ps|Ds,Bs|$s];Ps=1<<25,Ms=1<<30,Bs=Ps|Ms,Fs=256,$s=1<<19,Us=Fs|$s;const Hs=[Ds|Fs,Ps|Us,Ps|$s,Bs|Fs,Ds|$s,Ds|Fs,Ms|Ds,Ps|$s,Ms|Us,Ds|$s,Ps|Fs,Ms|Us,Bs|Fs,Bs|$s,Ds|Us,Ms|Ds,Ps|Ds,Ms|$s,Ms|$s,Ds|Ds,Ms|Fs,Bs|Us,Bs|Us,Ps|Fs,Bs|$s,Ms|Fs,Ds|Ds,Bs|Ds,Ps|Us,Ps|Ds,Bs|Ds,Ds|Us,Ds|$s,Bs|Fs,Ds|Fs,Ps|Ds,Ms|Ds,Ps|$s,Bs|Fs,Ms|Us,Ps|Fs,Ms|Ds,Bs|$s,Ps|Us,Ms|Us,Ds|Fs,Ps|Ds,Bs|$s,Bs|Us,Ds|Us,Bs|Ds,Bs|Us,Ps|$s,Ds|Ds,Ms|$s,Bs|Ds,Ds|Us,Ps|Fs,Ms|Fs,Ds|$s,Ds|Ds,Ms|$s,Ps|Us,Ms|Fs];Ps=1<<22,Ms=1<<29,Bs=Ps|Ms,Fs=16,$s=16384,Us=Fs|$s;const zs=[Ms|Fs,Bs|Ds,Ds|$s,Bs|Us,Bs|Ds,Ds|Fs,Bs|Us,Ps|Ds,Ms|$s,Ps|Us,Ps|Ds,Ms|Fs,Ps|Fs,Ms|$s,Ms|Ds,Ds|Us,Ds|Ds,Ps|Fs,Ms|Us,Ds|$s,Ps|$s,Ms|Us,Ds|Fs,Bs|Fs,Bs|Fs,Ds|Ds,Ps|Us,Bs|$s,Ds|Us,Ps|$s,Bs|$s,Ms|Ds,Ms|$s,Ds|Fs,Bs|Fs,Ps|$s,Bs|Us,Ps|Ds,Ds|Us,Ms|Fs,Ps|Ds,Ms|$s,Ms|Ds,Ds|Us,Ms|Fs,Bs|Us,Ps|$s,Bs|Ds,Ps|Us,Bs|$s,Ds|Ds,Bs|Fs,Ds|Fs,Ds|$s,Bs|Ds,Ps|Us,Ds|$s,Ps|Fs,Ms|Us,Ds|Ds,Bs|$s,Ms|Ds,Ps|Fs,Ms|Us];Ps=1<<21,Ms=1<<26,Bs=Ps|Ms,Fs=2,$s=2048,Us=Fs|$s;const qs=[Ps|Ds,Bs|Fs,Ms|Us,Ds|Ds,Ds|$s,Ms|Us,Ps|Us,Bs|$s,Bs|Us,Ps|Ds,Ds|Ds,Ms|Fs,Ds|Fs,Ms|Ds,Bs|Fs,Ds|Us,Ms|$s,Ps|Us,Ps|Fs,Ms|$s,Ms|Fs,Bs|Ds,Bs|$s,Ps|Fs,Bs|Ds,Ds|$s,Ds|Us,Bs|Us,Ps|$s,Ds|Fs,Ms|Ds,Ps|$s,Ms|Ds,Ps|$s,Ps|Ds,Ms|Us,Ms|Us,Bs|Fs,Bs|Fs,Ds|Fs,Ps|Fs,Ms|Ds,Ms|$s,Ps|Ds,Bs|$s,Ds|Us,Ps|Us,Bs|$s,Ds|Us,Ms|Fs,Bs|Us,Bs|Ds,Ps|$s,Ds|Ds,Ds|Fs,Bs|Us,Ds|Ds,Ps|Us,Bs|Ds,Ds|$s,Ms|Fs,Ms|$s,Ds|$s,Ps|Fs];Ps=1<<18,Ms=1<<28,Bs=Ps|Ms,Fs=64,$s=4096,Us=Fs|$s;const Xs=[Ms|Us,Ds|$s,Ps|Ds,Bs|Us,Ms|Ds,Ms|Us,Ds|Fs,Ms|Ds,Ps|Fs,Bs|Ds,Bs|Us,Ps|$s,Bs|$s,Ps|Us,Ds|$s,Ds|Fs,Bs|Ds,Ms|Fs,Ms|$s,Ds|Us,Ps|$s,Ps|Fs,Bs|Fs,Bs|$s,Ds|Us,Ds|Ds,Ds|Ds,Bs|Fs,Ms|Fs,Ms|$s,Ps|Us,Ps|Ds,Ps|Us,Ps|Ds,Bs|$s,Ds|$s,Ds|Fs,Bs|Fs,Ds|$s,Ps|Us,Ms|$s,Ds|Fs,Ms|Fs,Bs|Ds,Bs|Fs,Ms|Ds,Ps|Ds,Ms|Us,Ds|Ds,Bs|Us,Ps|Fs,Ms|Fs,Bs|Ds,Ms|$s,Ms|Us,Ds|Ds,Bs|Us,Ps|$s,Ps|$s,Ds|Us,Ds|Us,Ps|Fs,Ms|Ds,Bs|$s];class Ws{constructor(e){this.keys=[];const t=[],n=[],r=[];for(let i=0,a=56;i<56;++i,a-=8){a+=a<-5?65:a<-3?31:a<-1?63:27===a?35:0;const n=7&a;t[i]=0!==(e[a>>>3]&1<<n)?1:0}for(let i=0;i<16;++i){const e=i<<1,a=e+1;r[e]=r[a]=0;for(let r=28;r<59;r+=28)for(let e=r-28;e<r;++e){const a=e+Ls[i];n[e]=a<r?t[a]:t[a-28]}for(let t=0;t<24;++t)0!==n[Is[t]]&&(r[e]|=1<<23-t),0!==n[Is[t+24]]&&(r[a]|=1<<23-t)}for(let i=0,a=0,o=0;i<16;++i){const e=r[a++],t=r[a++];this.keys[o]=(16515072&e)<<6,this.keys[o]|=(4032&e)<<10,this.keys[o]|=(16515072&t)>>>10,this.keys[o]|=(4032&t)>>>6,++o,this.keys[o]=(258048&e)<<12,this.keys[o]|=(63&e)<<16,this.keys[o]|=(258048&t)>>>4,this.keys[o]|=63&t,++o}}enc8(e){const t=e.slice();let n,r,i,a=0;n=t[a++]<<24|t[a++]<<16|t[a++]<<8|t[a++],r=t[a++]<<24|t[a++]<<16|t[a++]<<8|t[a++],i=252645135&(n>>>4^r),r^=i,n^=i<<4,i=65535&(n>>>16^r),r^=i,n^=i<<16,i=858993459&(r>>>2^n),n^=i,r^=i<<2,i=16711935&(r>>>8^n),n^=i,r^=i<<8,r=r<<1|r>>>31&1,i=2863311530&(n^r),n^=i,r^=i,n=n<<1|n>>>31&1;for(let o=0,s=0;o<8;++o){i=r<<28|r>>>4,i^=this.keys[s++];let e=qs[63&i];e|=Hs[i>>>8&63],e|=Ks[i>>>16&63],e|=js[i>>>24&63],i=r^this.keys[s++],e|=Xs[63&i],e|=zs[i>>>8&63],e|=Gs[i>>>16&63],e|=Vs[i>>>24&63],n^=e,i=n<<28|n>>>4,i^=this.keys[s++],e=qs[63&i],e|=Hs[i>>>8&63],e|=Ks[i>>>16&63],e|=js[i>>>24&63],i=n^this.keys[s++],e|=Xs[63&i],e|=zs[i>>>8&63],e|=Gs[i>>>16&63],e|=Vs[i>>>24&63],r^=e}for(r=r<<31|r>>>1,i=2863311530&(n^r),n^=i,r^=i,n=n<<31|n>>>1,i=16711935&(n>>>8^r),r^=i,n^=i<<8,i=858993459&(n>>>2^r),r^=i,n^=i<<2,i=65535&(r>>>16^n),n^=i,r^=i<<16,i=252645135&(r>>>4^n),n^=i,r^=i<<4,i=[r,n],a=0;a<8;a++)t[a]=(i[a>>>2]>>>8*(3-a%4))%256,t[a]<0&&(t[a]+=256);return t}encrypt(e){return this.enc8(e.slice(0,8)).concat(this.enc8(e.slice(8,16)))}}var Ys={Again:57349,AltLeft:56,AltRight:57400,ArrowDown:57424,ArrowLeft:57419,ArrowRight:57421,ArrowUp:57416,AudioVolumeDown:57390,AudioVolumeMute:57376,AudioVolumeUp:57392,Backquote:41,Backslash:43,Backspace:14,BracketLeft:26,BracketRight:27,BrowserBack:57450,BrowserFavorites:57446,BrowserForward:57449,BrowserHome:57394,BrowserRefresh:57447,BrowserSearch:57445,BrowserStop:57448,CapsLock:58,Comma:51,ContextMenu:57437,ControlLeft:29,ControlRight:57373,Convert:121,Copy:57464,Cut:57404,Delete:57427,Digit0:11,Digit1:2,Digit2:3,Digit3:4,Digit4:5,Digit5:6,Digit6:7,Digit7:8,Digit8:9,Digit9:10,Eject:57469,End:57423,Enter:28,Equal:13,Escape:1,F1:59,F10:68,F11:87,F12:88,F13:93,F14:94,F15:95,F16:85,F17:57347,F18:57463,F19:57348,F2:60,F20:90,F21:116,F22:57465,F23:109,F24:111,F3:61,F4:62,F5:63,F6:64,F7:65,F8:66,F9:67,Find:57409,Help:57461,Hiragana:119,Home:57415,Insert:57426,IntlBackslash:86,IntlRo:115,IntlYen:125,KanaMode:112,Katakana:120,KeyA:30,KeyB:48,KeyC:46,KeyD:32,KeyE:18,KeyF:33,KeyG:34,KeyH:35,KeyI:23,KeyJ:36,KeyK:37,KeyL:38,KeyM:50,KeyN:49,KeyO:24,KeyP:25,KeyQ:16,KeyR:19,KeyS:31,KeyT:20,KeyU:22,KeyV:47,KeyW:17,KeyX:45,KeyY:21,KeyZ:44,Lang3:120,Lang4:119,Lang5:118,LaunchApp1:57451,LaunchApp2:57377,LaunchMail:57452,MediaPlayPause:57378,MediaSelect:57453,MediaStop:57380,MediaTrackNext:57369,MediaTrackPrevious:57360,MetaLeft:57435,MetaRight:57436,Minus:12,NonConvert:123,NumLock:69,Numpad0:82,Numpad1:79,Numpad2:80,Numpad3:81,Numpad4:75,Numpad5:76,Numpad6:77,Numpad7:71,Numpad8:72,Numpad9:73,NumpadAdd:78,NumpadComma:126,NumpadDecimal:83,NumpadDivide:57397,NumpadEnter:57372,NumpadEqual:89,NumpadMultiply:55,NumpadParenLeft:57462,NumpadParenRight:57467,NumpadSubtract:74,Open:100,PageDown:57425,PageUp:57417,Paste:101,Pause:57414,Period:52,Power:57438,PrintScreen:84,Props:57350,Quote:40,ScrollLock:70,Semicolon:39,ShiftLeft:42,ShiftRight:54,Slash:53,Sleep:57439,Space:57,Suspend:57381,Tab:15,Undo:57351,WakeUp:57443};const Qs={encodingRaw:0,encodingCopyRect:1,encodingRRE:2,encodingHextile:5,encodingTight:7,encodingTightPNG:-260,pseudoEncodingQualityLevel9:-23,pseudoEncodingQualityLevel0:-32,pseudoEncodingDesktopSize:-223,pseudoEncodingLastRect:-224,pseudoEncodingCursor:-239,pseudoEncodingQEMUExtendedKeyEvent:-258,pseudoEncodingDesktopName:-307,pseudoEncodingExtendedDesktopSize:-308,pseudoEncodingXvp:-309,pseudoEncodingFence:-312,pseudoEncodingContinuousUpdates:-313,pseudoEncodingCompressLevel9:-247,pseudoEncodingCompressLevel0:-256,pseudoEncodingVMwareCursor:1464686180,pseudoEncodingExtendedClipboard:3231835598};a(4979);class Js{constructor(){this._lines=0}decodeRect(e,t,n,r,i,a,o){0===this._lines&&(this._lines=r);const s=8==o?1:4,l=n*s;if(i.rQwait("RAW",l))return!1;const c=t+(r-this._lines),u=Math.min(this._lines,Math.floor(i.rQlen/l));let d=i.rQ,h=i.rQi;if(8==o){const e=n*u,t=new Uint8Array(4*e);for(let n=0;n<e;n++)t[4*n+0]=255*(3&d[h+n])/3,t[4*n+1]=255*(d[h+n]>>2&3)/3,t[4*n+2]=255*(d[h+n]>>4&3)/3,t[4*n+4]=0;d=t,h=0}return a.blitImage(e,c,n,u,d,h),i.rQskipBytes(u*l),this._lines-=u,!(this._lines>0)}}class Zs{decodeRect(e,t,n,r,i,a,o){if(i.rQwait("COPYRECT",4))return!1;let s=i.rQshift16(),l=i.rQshift16();return a.copyImage(s,l,e,t,n,r),!0}}class el{constructor(){this._subrects=0}decodeRect(e,t,n,r,i,a,o){if(0===this._subrects){if(i.rQwait("RRE",8))return!1;this._subrects=i.rQshift32();let o=i.rQshiftBytes(4);a.fillRect(e,t,n,r,o)}while(this._subrects>0){if(i.rQwait("RRE",12))return!1;let n=i.rQshiftBytes(4),r=i.rQshift16(),o=i.rQshift16(),s=i.rQshift16(),l=i.rQshift16();a.fillRect(e+r,t+o,s,l,n),this._subrects--}return!0}}class tl{constructor(){this._tiles=0,this._lastsubencoding=0}decodeRect(e,t,n,r,i,a,o){0===this._tiles&&(this._tilesX=Math.ceil(n/16),this._tilesY=Math.ceil(r/16),this._totalTiles=this._tilesX*this._tilesY,this._tiles=this._totalTiles);while(this._tiles>0){let o=1;if(i.rQwait("HEXTILE",o))return!1;let s=i.rQ,l=i.rQi,c=s[l];if(c>30)throw new Error("Illegal hextile subencoding (subencoding: "+c+")");const u=this._totalTiles-this._tiles,d=u%this._tilesX,h=Math.floor(u/this._tilesX),p=e+16*d,f=t+16*h,m=Math.min(16,e+n-p),g=Math.min(16,t+r-f);if(1&c)o+=m*g*4;else if(2&c&&(o+=4),4&c&&(o+=4),8&c){if(o++,i.rQwait("HEXTILE",o))return!1;let e=s[l+o-1];o+=16&c?6*e:2*e}if(i.rQwait("HEXTILE",o))return!1;if(l++,0===c)1&this._lastsubencoding?hn(" Ignoring blank after RAW"):a.fillRect(p,f,m,g,this._background);else if(1&c)a.blitImage(p,f,m,g,s,l),l+=o-1;else{if(2&c&&(this._background=[s[l],s[l+1],s[l+2],s[l+3]],l+=4),4&c&&(this._foreground=[s[l],s[l+1],s[l+2],s[l+3]],l+=4),a.startTile(p,f,m,g,this._background),8&c){let e=s[l];l++;for(let t=0;t<e;t++){let e;16&c?(e=[s[l],s[l+1],s[l+2],s[l+3]],l+=4):e=this._foreground;const t=s[l];l++;const n=t>>4,r=15&t,i=s[l];l++;const o=1+(i>>4),u=1+(15&i);a.subTile(n,r,o,u,e)}}a.finishTile()}i.rQi=l,this._lastsubencoding=c,this._tiles--}return!0}}class nl{constructor(){this._ctl=null,this._filter=null,this._numColors=0,this._palette=new Uint8Array(1024),this._len=0,this._zlibs=[];for(let e=0;e<4;e++)this._zlibs[e]=new Pi}decodeRect(e,t,n,r,i,a,o){if(null===this._ctl){if(i.rQwait("TIGHT compression-control",1))return!1;this._ctl=i.rQshift8();for(let e=0;e<4;e++)this._ctl>>e&1&&(this._zlibs[e].reset(),pn("Reset zlib stream "+e));this._ctl=this._ctl>>4}let s;if(8===this._ctl)s=this._fillRect(e,t,n,r,i,a,o);else if(9===this._ctl)s=this._jpegRect(e,t,n,r,i,a,o);else if(10===this._ctl)s=this._pngRect(e,t,n,r,i,a,o);else{if(0!=(128&this._ctl))throw new Error("Illegal tight compression received (ctl: "+this._ctl+")");s=this._basicRect(this._ctl,e,t,n,r,i,a,o)}return s&&(this._ctl=null),s}_fillRect(e,t,n,r,i,a,o){if(i.rQwait("TIGHT",3))return!1;const s=i.rQi,l=i.rQ;return a.fillRect(e,t,n,r,[l[s+2],l[s+1],l[s]],!1),i.rQskipBytes(3),!0}_jpegRect(e,t,n,r,i,a,o){let s=this._readData(i);return null!==s&&(a.imageRect(e,t,n,r,"image/jpeg",s),!0)}_pngRect(e,t,n,r,i,a,o){throw new Error("PNG received in standard Tight rect")}_basicRect(e,t,n,r,i,a,o,s){if(null===this._filter)if(4&e){if(a.rQwait("TIGHT",1))return!1;this._filter=a.rQshift8()}else this._filter=0;let l,c=3&e;switch(this._filter){case 0:l=this._copyFilter(c,t,n,r,i,a,o,s);break;case 1:l=this._paletteFilter(c,t,n,r,i,a,o,s);break;case 2:l=this._gradientFilter(c,t,n,r,i,a,o,s);break;default:throw new Error("Illegal tight filter received (ctl: "+this._filter+")")}return l&&(this._filter=null),l}_copyFilter(e,t,n,r,i,a,o,s){const l=r*i*3;let c;if(l<12){if(a.rQwait("TIGHT",l))return!1;c=a.rQshiftBytes(l)}else{if(c=this._readData(a),null===c)return!1;this._zlibs[e].setInput(c),c=this._zlibs[e].inflate(l),this._zlibs[e].setInput(null)}return o.blitRgbImage(t,n,r,i,c,0,!1),!0}_paletteFilter(e,t,n,r,i,a,o,s){if(0===this._numColors){if(a.rQwait("TIGHT palette",1))return!1;const e=a.rQpeek8()+1,t=3*e;if(a.rQwait("TIGHT palette",1+t))return!1;this._numColors=e,a.rQskipBytes(1),a.rQshiftTo(this._palette,t)}const l=this._numColors<=2?1:8,c=Math.floor((r*l+7)/8),u=c*i;let d;if(u<12){if(a.rQwait("TIGHT",u))return!1;d=a.rQshiftBytes(u)}else{if(d=this._readData(a),null===d)return!1;this._zlibs[e].setInput(d),d=this._zlibs[e].inflate(u),this._zlibs[e].setInput(null)}return 2==this._numColors?this._monoRect(t,n,r,i,d,this._palette,o):this._paletteRect(t,n,r,i,d,this._palette,o),this._numColors=0,!0}_monoRect(e,t,n,r,i,a,o){const s=this._getScratchBuffer(n*r*4),l=Math.floor((n+7)/8),c=Math.floor(n/8);for(let u=0;u<r;u++){let e,t,r;for(r=0;r<c;r++)for(let o=7;o>=0;o--)e=4*(u*n+8*r+7-o),t=3*(i[u*l+r]>>o&1),s[e]=a[t],s[e+1]=a[t+1],s[e+2]=a[t+2],s[e+3]=255;for(let o=7;o>=8-n%8;o--)e=4*(u*n+8*r+7-o),t=3*(i[u*l+r]>>o&1),s[e]=a[t],s[e+1]=a[t+1],s[e+2]=a[t+2],s[e+3]=255}o.blitRgbxImage(e,t,n,r,s,0,!1)}_paletteRect(e,t,n,r,i,a,o){const s=this._getScratchBuffer(n*r*4),l=n*r*4;for(let c=0,u=0;c<l;c+=4,u++){const e=3*i[u];s[c]=a[e],s[c+1]=a[e+1],s[c+2]=a[e+2],s[c+3]=255}o.blitRgbxImage(e,t,n,r,s,0,!1)}_gradientFilter(e,t,n,r,i,a,o,s){throw new Error("Gradient filter not implemented")}_readData(e){if(0===this._len){if(e.rQwait("TIGHT",3))return null;let t;t=e.rQshift8(),this._len=127&t,128&t&&(t=e.rQshift8(),this._len|=(127&t)<<7,128&t&&(t=e.rQshift8(),this._len|=t<<14))}if(e.rQwait("TIGHT",this._len))return null;let t=e.rQshiftBytes(this._len);return this._len=0,t}_getScratchBuffer(e){return(!this._scratchBuffer||this._scratchBuffer.length<e)&&(this._scratchBuffer=new Uint8Array(e)),this._scratchBuffer}}class rl extends nl{_pngRect(e,t,n,r,i,a,o){let s=this._readData(i);return null!==s&&(a.imageRect(e,t,n,r,"image/png",s),!0)}_basicRect(e,t,n,r,i,a,o,s){throw new Error("BasicCompression received in TightPNG rect")}}const il=3,al="rgb(40, 40, 40)",ol=17,sl=50,ll=19,cl=75,ul=50,dl=1e3,hl=50,pl=1,fl=1<<24,ml=1<<25,gl=1<<26,vl=1<<27,bl=1<<28;class yl extends nr{constructor(e,t,n){if(!e)throw new Error("Must specify target");if(!t)throw new Error("Must specify URL");super(),this._target=e,this._url=t,n=n||{},this._rfbCredentials=n.credentials||{},this._shared=!("shared"in n)||!!n.shared,this._repeaterID=n.repeaterID||"",this._wsProtocols=n.wsProtocols||[],this._rfbConnectionState="",this._rfbInitState="",this._rfbAuthScheme=-1,this._rfbCleanDisconnect=!0,this._rfbVersion=0,this._rfbMaxVersion=3.8,this._rfbTightVNC=!1,this._rfbVeNCryptState=0,this._rfbXvpVer=0,this._fbWidth=0,this._fbHeight=0,this._fbName="",this._capabilities={power:!1},this._supportsFence=!1,this._supportsContinuousUpdates=!1,this._enabledContinuousUpdates=!1,this._supportsSetDesktopSize=!1,this._screenID=0,this._screenFlags=0,this._qemuExtKeyEventSupported=!1,this._clipboardText=null,this._clipboardServerCapabilitiesActions={},this._clipboardServerCapabilitiesFormats={},this._sock=null,this._display=null,this._flushing=!1,this._keyboard=null,this._gestures=null,this._disconnTimer=null,this._resizeTimeout=null,this._mouseMoveTimer=null,this._decoders={},this._FBU={rects:0,x:0,y:0,width:0,height:0,encoding:null},this._mousePos={},this._mouseButtonMask=0,this._mouseLastMoveTime=0,this._viewportDragging=!1,this._viewportDragPos={},this._viewportHasMoved=!1,this._accumulatedWheelDeltaX=0,this._accumulatedWheelDeltaY=0,this._gestureLastTapTime=null,this._gestureFirstDoubleTapEv=null,this._gestureLastMagnitudeX=0,this._gestureLastMagnitudeY=0,this._eventHandlers={focusCanvas:this._focusCanvas.bind(this),windowResize:this._windowResize.bind(this),handleMouse:this._handleMouse.bind(this),handleWheel:this._handleWheel.bind(this),handleGesture:this._handleGesture.bind(this)},hn(">> RFB.constructor"),this._screen=document.createElement("div"),this._screen.style.display="flex",this._screen.style.width="100%",this._screen.style.height="100%",this._screen.style.overflow="auto",this._screen.style.background=al,this._canvas=document.createElement("canvas"),this._canvas.style.margin="auto",this._canvas.style.outline="none",this._canvas.style.flexShrink="0",this._canvas.width=0,this._canvas.height=0,this._canvas.tabIndex=-1,this._screen.appendChild(this._canvas),this._cursor=new Ts,this._cursorImage=yl.cursors.none,this._decoders[Qs.encodingRaw]=new Js,this._decoders[Qs.encodingCopyRect]=new Zs,this._decoders[Qs.encodingRRE]=new el,this._decoders[Qs.encodingHextile]=new tl,this._decoders[Qs.encodingTight]=new nl,this._decoders[Qs.encodingTightPNG]=new rl;try{this._display=new ir(this._canvas)}catch(yg){throw mn("Display exception: "+yg),yg}this._display.onflush=this._onFlush.bind(this),this._keyboard=new us(this._canvas),this._keyboard.onkeyevent=this._handleKeyEvent.bind(this),this._gestures=new As,this._sock=new Os,this._sock.on("message",()=>{this._handleMessage()}),this._sock.on("open",()=>{"connecting"===this._rfbConnectionState&&""===this._rfbInitState?(this._rfbInitState="ProtocolVersion",hn("Starting VNC handshake")):this._fail("Unexpected server connection while "+this._rfbConnectionState)}),this._sock.on("close",e=>{hn("WebSocket on-close event");let t="";switch(e.code&&(t="(code: "+e.code,e.reason&&(t+=", reason: "+e.reason),t+=")"),this._rfbConnectionState){case"connecting":this._fail("Connection closed "+t);break;case"connected":this._updateConnectionState("disconnecting"),this._updateConnectionState("disconnected");break;case"disconnecting":this._updateConnectionState("disconnected");break;case"disconnected":this._fail("Unexpected server disconnect when already disconnected "+t);break;default:this._fail("Unexpected server disconnect before connecting "+t);break}this._sock.off("close")}),this._sock.on("error",e=>fn("WebSocket on-error event")),setTimeout(this._updateConnectionState.bind(this,"connecting")),hn("<< RFB.constructor"),this.dragViewport=!1,this.focusOnClick=!0,this._viewOnly=!1,this._clipViewport=!1,this._scaleViewport=!1,this._resizeSession=!1,this._showDotCursor=!1,void 0!==n.showDotCursor&&(fn("Specifying showDotCursor as a RFB constructor argument is deprecated"),this._showDotCursor=n.showDotCursor),this._qualityLevel=6,this._compressionLevel=2}get viewOnly(){return this._viewOnly}set viewOnly(e){this._viewOnly=e,"connecting"!==this._rfbConnectionState&&"connected"!==this._rfbConnectionState||(e?this._keyboard.ungrab():this._keyboard.grab())}get capabilities(){return this._capabilities}get touchButton(){return 0}set touchButton(e){fn("Using old API!")}get clipViewport(){return this._clipViewport}set clipViewport(e){this._clipViewport=e,this._updateClip()}get scaleViewport(){return this._scaleViewport}set scaleViewport(e){this._scaleViewport=e,e&&this._clipViewport&&this._updateClip(),this._updateScale(),!e&&this._clipViewport&&this._updateClip()}get resizeSession(){return this._resizeSession}set resizeSession(e){this._resizeSession=e,e&&this._requestRemoteResize()}get showDotCursor(){return this._showDotCursor}set showDotCursor(e){this._showDotCursor=e,this._refreshCursor()}get background(){return this._screen.style.background}set background(e){this._screen.style.background=e}get qualityLevel(){return this._qualityLevel}set qualityLevel(e){!Number.isInteger(e)||e<0||e>9?mn("qualityLevel must be an integer between 0 and 9"):this._qualityLevel!==e&&(this._qualityLevel=e,"connected"===this._rfbConnectionState&&this._sendEncodings())}get compressionLevel(){return this._compressionLevel}set compressionLevel(e){!Number.isInteger(e)||e<0||e>9?mn("compressionLevel must be an integer between 0 and 9"):this._compressionLevel!==e&&(this._compressionLevel=e,"connected"===this._rfbConnectionState&&this._sendEncodings())}disconnect(){this._updateConnectionState("disconnecting"),this._sock.off("error"),this._sock.off("message"),this._sock.off("open")}sendCredentials(e){this._rfbCredentials=e,setTimeout(this._initMsg.bind(this),0)}sendCtrlAltDel(){"connected"!==this._rfbConnectionState||this._viewOnly||(pn("Sending Ctrl-Alt-Del"),this.sendKey(Zt.XK_Control_L,"ControlLeft",!0),this.sendKey(Zt.XK_Alt_L,"AltLeft",!0),this.sendKey(Zt.XK_Delete,"Delete",!0),this.sendKey(Zt.XK_Delete,"Delete",!1),this.sendKey(Zt.XK_Alt_L,"AltLeft",!1),this.sendKey(Zt.XK_Control_L,"ControlLeft",!1))}machineShutdown(){this._xvpOp(1,2)}machineReboot(){this._xvpOp(1,3)}machineReset(){this._xvpOp(1,4)}sendKey(e,t,n){if("connected"!==this._rfbConnectionState||this._viewOnly)return;if(void 0===n)return this.sendKey(e,t,!0),void this.sendKey(e,t,!1);const r=Ys[t];if(this._qemuExtKeyEventSupported&&r)e=e||0,pn("Sending key ("+(n?"down":"up")+"): keysym "+e+", scancode "+r),yl.messages.QEMUExtendedKeyEvent(this._sock,e,n,r);else{if(!e)return;pn("Sending keysym ("+(n?"down":"up")+"): "+e),yl.messages.keyEvent(this._sock,e,n?1:0)}}focus(){this._canvas.focus()}blur(){this._canvas.blur()}clipboardPasteFrom(e){if("connected"===this._rfbConnectionState&&!this._viewOnly)if(this._clipboardServerCapabilitiesFormats[pl]&&this._clipboardServerCapabilitiesActions[vl])this._clipboardText=e,yl.messages.extendedClipboardNotify(this._sock,[pl]);else{let t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);yl.messages.clientCutText(this._sock,t)}}_connect(){hn(">> RFB.connect"),pn("connecting to "+this._url);try{this._sock.open(this._url,this._wsProtocols)}catch($s){"SyntaxError"===$s.name?this._fail("Invalid host or port ("+$s+")"):this._fail("Error when opening socket ("+$s+")")}this._target.appendChild(this._screen),this._gestures.attach(this._canvas),this._cursor.attach(this._canvas),this._refreshCursor(),window.addEventListener("resize",this._eventHandlers.windowResize),this._canvas.addEventListener("mousedown",this._eventHandlers.focusCanvas),this._canvas.addEventListener("touchstart",this._eventHandlers.focusCanvas),this._canvas.addEventListener("mousedown",this._eventHandlers.handleMouse),this._canvas.addEventListener("mouseup",this._eventHandlers.handleMouse),this._canvas.addEventListener("mousemove",this._eventHandlers.handleMouse),this._canvas.addEventListener("click",this._eventHandlers.handleMouse),this._canvas.addEventListener("contextmenu",this._eventHandlers.handleMouse),this._canvas.addEventListener("wheel",this._eventHandlers.handleWheel),this._canvas.addEventListener("gesturestart",this._eventHandlers.handleGesture),this._canvas.addEventListener("gesturemove",this._eventHandlers.handleGesture),this._canvas.addEventListener("gestureend",this._eventHandlers.handleGesture),hn("<< RFB.connect")}_disconnect(){hn(">> RFB.disconnect"),this._cursor.detach(),this._canvas.removeEventListener("gesturestart",this._eventHandlers.handleGesture),this._canvas.removeEventListener("gesturemove",this._eventHandlers.handleGesture),this._canvas.removeEventListener("gestureend",this._eventHandlers.handleGesture),this._canvas.removeEventListener("wheel",this._eventHandlers.handleWheel),this._canvas.removeEventListener("mousedown",this._eventHandlers.handleMouse),this._canvas.removeEventListener("mouseup",this._eventHandlers.handleMouse),this._canvas.removeEventListener("mousemove",this._eventHandlers.handleMouse),this._canvas.removeEventListener("click",this._eventHandlers.handleMouse),this._canvas.removeEventListener("contextmenu",this._eventHandlers.handleMouse),this._canvas.removeEventListener("mousedown",this._eventHandlers.focusCanvas),this._canvas.removeEventListener("touchstart",this._eventHandlers.focusCanvas),window.removeEventListener("resize",this._eventHandlers.windowResize),this._keyboard.ungrab(),this._gestures.detach(),this._sock.close();try{this._target.removeChild(this._screen)}catch($s){if("NotFoundError"!==$s.name)throw $s}clearTimeout(this._resizeTimeout),clearTimeout(this._mouseMoveTimer),hn("<< RFB.disconnect")}_focusCanvas(e){this.focusOnClick&&this.focus()}_setDesktopName(e){this._fbName=e,this.dispatchEvent(new CustomEvent("desktopname",{detail:{name:this._fbName}}))}_windowResize(e){window.requestAnimationFrame(()=>{this._updateClip(),this._updateScale()}),this._resizeSession&&(clearTimeout(this._resizeTimeout),this._resizeTimeout=setTimeout(this._requestRemoteResize.bind(this),500))}_updateClip(){const e=this._display.clipViewport;let t=this._clipViewport;if(this._scaleViewport&&(t=!1),e!==t&&(this._display.clipViewport=t),t){const e=this._screenSize();this._display.viewportChangeSize(e.w,e.h),this._fixScrollbars()}}_updateScale(){if(this._scaleViewport){const e=this._screenSize();this._display.autoscale(e.w,e.h)}else this._display.scale=1;this._fixScrollbars()}_requestRemoteResize(){if(clearTimeout(this._resizeTimeout),this._resizeTimeout=null,!this._resizeSession||this._viewOnly||!this._supportsSetDesktopSize)return;const e=this._screenSize();yl.messages.setDesktopSize(this._sock,Math.floor(e.w),Math.floor(e.h),this._screenID,this._screenFlags),hn("Requested new desktop size: "+e.w+"x"+e.h)}_screenSize(){let e=this._screen.getBoundingClientRect();return{w:e.width,h:e.height}}_fixScrollbars(){const e=this._screen.style.overflow;this._screen.style.overflow="hidden",this._screen.getBoundingClientRect(),this._screen.style.overflow=e}_updateConnectionState(e){const t=this._rfbConnectionState;if(e!==t)if("disconnected"!==t){switch(e){case"connected":if("connecting"!==t)return void mn("Bad transition to connected state, previous connection state: "+t);break;case"disconnected":if("disconnecting"!==t)return void mn("Bad transition to disconnected state, previous connection state: "+t);break;case"connecting":if(""!==t)return void mn("Bad transition to connecting state, previous connection state: "+t);break;case"disconnecting":if("connected"!==t&&"connecting"!==t)return void mn("Bad transition to disconnecting state, previous connection state: "+t);break;default:return void mn("Unknown connection state: "+e)}switch(this._rfbConnectionState=e,hn("New state '"+e+"', was '"+t+"'."),this._disconnTimer&&"disconnecting"!==e&&(hn("Clearing disconnect timer"),clearTimeout(this._disconnTimer),this._disconnTimer=null,this._sock.off("close")),e){case"connecting":this._connect();break;case"connected":this.dispatchEvent(new CustomEvent("connect",{detail:{}}));break;case"disconnecting":this._disconnect(),this._disconnTimer=setTimeout(()=>{mn("Disconnection timed out."),this._updateConnectionState("disconnected")},1e3*il);break;case"disconnected":this.dispatchEvent(new CustomEvent("disconnect",{detail:{clean:this._rfbCleanDisconnect}}));break}}else mn("Tried changing state of a disconnected RFB object");else hn("Already in state '"+e+"', ignoring")}_fail(e){switch(this._rfbConnectionState){case"disconnecting":mn("Failed when disconnecting: "+e);break;case"connected":mn("Failed while connected: "+e);break;case"connecting":mn("Failed when connecting: "+e);break;default:mn("RFB failure: "+e);break}return this._rfbCleanDisconnect=!1,this._updateConnectionState("disconnecting"),this._updateConnectionState("disconnected"),!1}_setCapability(e,t){this._capabilities[e]=t,this.dispatchEvent(new CustomEvent("capabilities",{detail:{capabilities:this._capabilities}}))}_handleMessage(){if(0!==this._sock.rQlen)switch(this._rfbConnectionState){case"disconnected":mn("Got data while disconnected");break;case"connected":while(1){if(this._flushing)break;if(!this._normalMsg())break;if(0===this._sock.rQlen)break}break;default:this._initMsg();break}else fn("handleMessage called on an empty receive queue")}_handleKeyEvent(e,t,n){this.sendKey(e,t,n)}_handleMouse(e){if("click"===e.type&&e.target!==this._canvas)return;if(e.stopPropagation(),e.preventDefault(),"click"===e.type||"contextmenu"===e.type)return;let t=qn(e.clientX,e.clientY,this._canvas);switch(e.type){case"mousedown":er(this._canvas),this._handleMouseButton(t.x,t.y,!0,1<<e.button);break;case"mouseup":this._handleMouseButton(t.x,t.y,!1,1<<e.button);break;case"mousemove":this._handleMouseMove(t.x,t.y);break}}_handleMouseButton(e,t,n,r){if(this.dragViewport){if(n&&!this._viewportDragging)return this._viewportDragging=!0,this._viewportDragPos={x:e,y:t},void(this._viewportHasMoved=!1);if(this._viewportDragging=!1,this._viewportHasMoved)return;this._sendMouse(e,t,r)}null!==this._mouseMoveTimer&&(clearTimeout(this._mouseMoveTimer),this._mouseMoveTimer=null,this._sendMouse(e,t,this._mouseButtonMask)),n?this._mouseButtonMask|=r:this._mouseButtonMask&=~r,this._sendMouse(e,t,this._mouseButtonMask)}_handleMouseMove(e,t){if(this._viewportDragging){const n=this._viewportDragPos.x-e,r=this._viewportDragPos.y-t;return void((this._viewportHasMoved||Math.abs(n)>bn||Math.abs(r)>bn)&&(this._viewportHasMoved=!0,this._viewportDragPos={x:e,y:t},this._display.viewportChangePos(n,r)))}if(this._mousePos={x:e,y:t},null==this._mouseMoveTimer){const n=Date.now()-this._mouseLastMoveTime;n>ol?(this._sendMouse(e,t,this._mouseButtonMask),this._mouseLastMoveTime=Date.now()):this._mouseMoveTimer=setTimeout(()=>{this._handleDelayedMouseMove()},ol-n)}}_handleDelayedMouseMove(){this._mouseMoveTimer=null,this._sendMouse(this._mousePos.x,this._mousePos.y,this._mouseButtonMask),this._mouseLastMoveTime=Date.now()}_sendMouse(e,t,n){"connected"===this._rfbConnectionState&&(this._viewOnly||yl.messages.pointerEvent(this._sock,this._display.absX(e),this._display.absY(t),n))}_handleWheel(e){if("connected"!==this._rfbConnectionState)return;if(this._viewOnly)return;e.stopPropagation(),e.preventDefault();let t=qn(e.clientX,e.clientY,this._canvas),n=e.deltaX,r=e.deltaY;0!==e.deltaMode&&(n*=ll,r*=ll),this._accumulatedWheelDeltaX+=n,this._accumulatedWheelDeltaY+=r,Math.abs(this._accumulatedWheelDeltaX)>=sl&&(this._accumulatedWheelDeltaX<0?(this._handleMouseButton(t.x,t.y,!0,32),this._handleMouseButton(t.x,t.y,!1,32)):this._accumulatedWheelDeltaX>0&&(this._handleMouseButton(t.x,t.y,!0,64),this._handleMouseButton(t.x,t.y,!1,64)),this._accumulatedWheelDeltaX=0),Math.abs(this._accumulatedWheelDeltaY)>=sl&&(this._accumulatedWheelDeltaY<0?(this._handleMouseButton(t.x,t.y,!0,8),this._handleMouseButton(t.x,t.y,!1,8)):this._accumulatedWheelDeltaY>0&&(this._handleMouseButton(t.x,t.y,!0,16),this._handleMouseButton(t.x,t.y,!1,16)),this._accumulatedWheelDeltaY=0)}_fakeMouseMove(e,t,n){this._handleMouseMove(t,n),this._cursor.move(e.detail.clientX,e.detail.clientY)}_handleTapEvent(e,t){let n=qn(e.detail.clientX,e.detail.clientY,this._canvas);if(null!==this._gestureLastTapTime&&Date.now()-this._gestureLastTapTime<dl&&this._gestureFirstDoubleTapEv.detail.type===e.detail.type){let t=this._gestureFirstDoubleTapEv.detail.clientX-e.detail.clientX,r=this._gestureFirstDoubleTapEv.detail.clientY-e.detail.clientY,i=Math.hypot(t,r);i<hl?n=qn(this._gestureFirstDoubleTapEv.detail.clientX,this._gestureFirstDoubleTapEv.detail.clientY,this._canvas):this._gestureFirstDoubleTapEv=e}else this._gestureFirstDoubleTapEv=e;this._gestureLastTapTime=Date.now(),this._fakeMouseMove(this._gestureFirstDoubleTapEv,n.x,n.y),this._handleMouseButton(n.x,n.y,!0,t),this._handleMouseButton(n.x,n.y,!1,t)}_handleGesture(e){let t,n=qn(e.detail.clientX,e.detail.clientY,this._canvas);switch(e.type){case"gesturestart":switch(e.detail.type){case"onetap":this._handleTapEvent(e,1);break;case"twotap":this._handleTapEvent(e,4);break;case"threetap":this._handleTapEvent(e,2);break;case"drag":this._fakeMouseMove(e,n.x,n.y),this._handleMouseButton(n.x,n.y,!0,1);break;case"longpress":this._fakeMouseMove(e,n.x,n.y),this._handleMouseButton(n.x,n.y,!0,4);break;case"twodrag":this._gestureLastMagnitudeX=e.detail.magnitudeX,this._gestureLastMagnitudeY=e.detail.magnitudeY,this._fakeMouseMove(e,n.x,n.y);break;case"pinch":this._gestureLastMagnitudeX=Math.hypot(e.detail.magnitudeX,e.detail.magnitudeY),this._fakeMouseMove(e,n.x,n.y);break}break;case"gesturemove":switch(e.detail.type){case"onetap":case"twotap":case"threetap":break;case"drag":case"longpress":this._fakeMouseMove(e,n.x,n.y);break;case"twodrag":this._fakeMouseMove(e,n.x,n.y);while(e.detail.magnitudeY-this._gestureLastMagnitudeY>ul)this._handleMouseButton(n.x,n.y,!0,8),this._handleMouseButton(n.x,n.y,!1,8),this._gestureLastMagnitudeY+=ul;while(e.detail.magnitudeY-this._gestureLastMagnitudeY<-ul)this._handleMouseButton(n.x,n.y,!0,16),this._handleMouseButton(n.x,n.y,!1,16),this._gestureLastMagnitudeY-=ul;while(e.detail.magnitudeX-this._gestureLastMagnitudeX>ul)this._handleMouseButton(n.x,n.y,!0,32),this._handleMouseButton(n.x,n.y,!1,32),this._gestureLastMagnitudeX+=ul;while(e.detail.magnitudeX-this._gestureLastMagnitudeX<-ul)this._handleMouseButton(n.x,n.y,!0,64),this._handleMouseButton(n.x,n.y,!1,64),this._gestureLastMagnitudeX-=ul;break;case"pinch":if(this._fakeMouseMove(e,n.x,n.y),t=Math.hypot(e.detail.magnitudeX,e.detail.magnitudeY),Math.abs(t-this._gestureLastMagnitudeX)>cl){this._handleKeyEvent(Zt.XK_Control_L,"ControlLeft",!0);while(t-this._gestureLastMagnitudeX>cl)this._handleMouseButton(n.x,n.y,!0,8),this._handleMouseButton(n.x,n.y,!1,8),this._gestureLastMagnitudeX+=cl;while(t-this._gestureLastMagnitudeX<-cl)this._handleMouseButton(n.x,n.y,!0,16),this._handleMouseButton(n.x,n.y,!1,16),this._gestureLastMagnitudeX-=cl}this._handleKeyEvent(Zt.XK_Control_L,"ControlLeft",!1);break}break;case"gestureend":switch(e.detail.type){case"onetap":case"twotap":case"threetap":case"pinch":case"twodrag":break;case"drag":this._fakeMouseMove(e,n.x,n.y),this._handleMouseButton(n.x,n.y,!1,1);break;case"longpress":this._fakeMouseMove(e,n.x,n.y),this._handleMouseButton(n.x,n.y,!1,4);break}break}}_negotiateProtocolVersion(){if(this._sock.rQwait("version",12))return!1;const e=this._sock.rQshiftStr(12).substr(4,7);pn("Server ProtocolVersion: "+e);let t=0;switch(e){case"000.000":t=1;break;case"003.003":case"003.006":case"003.889":this._rfbVersion=3.3;break;case"003.007":this._rfbVersion=3.7;break;case"003.008":case"004.000":case"004.001":case"005.000":this._rfbVersion=3.8;break;default:return this._fail("Invalid server version "+e)}if(t){let e="ID:"+this._repeaterID;while(e.length<250)e+="\0";return this._sock.sendString(e),!0}this._rfbVersion>this._rfbMaxVersion&&(this._rfbVersion=this._rfbMaxVersion);const n="00"+parseInt(this._rfbVersion,10)+".00"+10*this._rfbVersion%10;this._sock.sendString("RFB "+n+"\n"),hn("Sent ProtocolVersion: "+n),this._rfbInitState="Security"}_negotiateSecurity(){function e(e,t){for(let n=0;n<t.length;n++)if(t[n]===e)return!0;return!1}if(this._rfbVersion>=3.7){const t=this._sock.rQshift8();if(this._sock.rQwait("security type",t,1))return!1;if(0===t)return this._rfbInitState="SecurityReason",this._securityContext="no security types",this._securityStatus=1,this._initMsg();const n=this._sock.rQshiftBytes(t);if(hn("Server security types: "+n),e(1,n))this._rfbAuthScheme=1;else if(e(22,n))this._rfbAuthScheme=22;else if(e(16,n))this._rfbAuthScheme=16;else if(e(2,n))this._rfbAuthScheme=2;else{if(!e(19,n))return this._fail("Unsupported security types (types: "+n+")");this._rfbAuthScheme=19}this._sock.send([this._rfbAuthScheme])}else{if(this._sock.rQwait("security scheme",4))return!1;if(this._rfbAuthScheme=this._sock.rQshift32(),0==this._rfbAuthScheme)return this._rfbInitState="SecurityReason",this._securityContext="authentication scheme",this._securityStatus=1,this._initMsg()}return this._rfbInitState="Authentication",hn("Authenticating using scheme: "+this._rfbAuthScheme),this._initMsg()}_handleSecurityReason(){if(this._sock.rQwait("reason length",4))return!1;const e=this._sock.rQshift32();let t="";if(e>0){if(this._sock.rQwait("reason",e,4))return!1;t=this._sock.rQshiftStr(e)}return""!==t?(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:this._securityStatus,reason:t}})),this._fail("Security negotiation failed on "+this._securityContext+" (reason: "+t+")")):(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:this._securityStatus}})),this._fail("Security negotiation failed on "+this._securityContext))}_negotiateXvpAuth(){if(void 0===this._rfbCredentials.username||void 0===this._rfbCredentials.password||void 0===this._rfbCredentials.target)return this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["username","password","target"]}})),!1;const e=String.fromCharCode(this._rfbCredentials.username.length)+String.fromCharCode(this._rfbCredentials.target.length)+this._rfbCredentials.username+this._rfbCredentials.target;return this._sock.sendString(e),this._rfbAuthScheme=2,this._negotiateAuthentication()}_negotiateVeNCryptAuth(){if(0==this._rfbVeNCryptState){if(this._sock.rQwait("vencrypt version",2))return!1;const e=this._sock.rQshift8(),t=this._sock.rQshift8();if(0!=e||2!=t)return this._fail("Unsupported VeNCrypt version "+e+"."+t);this._sock.send([0,2]),this._rfbVeNCryptState=1}if(1==this._rfbVeNCryptState){if(this._sock.rQwait("vencrypt ack",1))return!1;const e=this._sock.rQshift8();if(0!=e)return this._fail("VeNCrypt failure "+e);this._rfbVeNCryptState=2}if(2==this._rfbVeNCryptState){if(this._sock.rQwait("vencrypt subtypes length",1))return!1;const e=this._sock.rQshift8();if(e<1)return this._fail("VeNCrypt subtypes empty");this._rfbVeNCryptSubtypesLength=e,this._rfbVeNCryptState=3}if(3==this._rfbVeNCryptState){if(this._sock.rQwait("vencrypt subtypes",4*this._rfbVeNCryptSubtypesLength))return!1;const e=[];for(let t=0;t<this._rfbVeNCryptSubtypesLength;t++)e.push(this._sock.rQshift32());if(-1==e.indexOf(256))return this._fail("VeNCrypt Plain subtype not offered by server");this._sock.send([0,0,1,0]),this._rfbVeNCryptState=4}if(4==this._rfbVeNCryptState){if(!this._rfbCredentials.username||!this._rfbCredentials.password)return this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["username","password"]}})),!1;const e=zn(this._rfbCredentials.username),t=zn(this._rfbCredentials.password);return this._sock.send([0,0,0,e.length]),this._sock.send([0,0,0,t.length]),this._sock.sendString(e),this._sock.sendString(t),this._rfbInitState="SecurityResult",!0}}_negotiateStdVNCAuth(){if(this._sock.rQwait("auth challenge",16))return!1;if(void 0===this._rfbCredentials.password)return this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["password"]}})),!1;const e=Array.prototype.slice.call(this._sock.rQshiftBytes(16)),t=yl.genDES(this._rfbCredentials.password,e);return this._sock.send(t),this._rfbInitState="SecurityResult",!0}_negotiateTightUnixAuth(){return void 0===this._rfbCredentials.username||void 0===this._rfbCredentials.password?(this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["username","password"]}})),!1):(this._sock.send([0,0,0,this._rfbCredentials.username.length]),this._sock.send([0,0,0,this._rfbCredentials.password.length]),this._sock.sendString(this._rfbCredentials.username),this._sock.sendString(this._rfbCredentials.password),this._rfbInitState="SecurityResult",!0)}_negotiateTightTunnels(e){const t={0:{vendor:"TGHT",signature:"NOTUNNEL"}},n={};for(let r=0;r<e;r++){const e=this._sock.rQshift32(),t=this._sock.rQshiftStr(4),r=this._sock.rQshiftStr(8);n[e]={vendor:t,signature:r}}return hn("Server Tight tunnel types: "+n),n[1]&&"SICR"===n[1].vendor&&"SCHANNEL"===n[1].signature&&(hn("Detected Siemens server. Assuming NOTUNNEL support."),n[0]={vendor:"TGHT",signature:"NOTUNNEL"}),n[0]?n[0].vendor!=t[0].vendor||n[0].signature!=t[0].signature?this._fail("Client's tunnel type had the incorrect vendor or signature"):(hn("Selected tunnel type: "+t[0]),this._sock.send([0,0,0,0]),!1):this._fail("Server wanted tunnels, but doesn't support the notunnel type")}_negotiateTightAuth(){if(!this._rfbTightVNC){if(this._sock.rQwait("num tunnels",4))return!1;const e=this._sock.rQshift32();if(e>0&&this._sock.rQwait("tunnel capabilities",16*e,4))return!1;if(this._rfbTightVNC=!0,e>0)return this._negotiateTightTunnels(e),!1}if(this._sock.rQwait("sub auth count",4))return!1;const e=this._sock.rQshift32();if(0===e)return this._rfbInitState="SecurityResult",!0;if(this._sock.rQwait("sub auth capabilities",16*e,4))return!1;const t={STDVNOAUTH__:1,STDVVNCAUTH_:2,TGHTULGNAUTH:129},n=[];for(let r=0;r<e;r++){this._sock.rQshift32();const e=this._sock.rQshiftStr(12);n.push(e)}hn("Server Tight authentication types: "+n);for(let r in t)if(-1!=n.indexOf(r))switch(this._sock.send([0,0,0,t[r]]),hn("Selected authentication type: "+r),r){case"STDVNOAUTH__":return this._rfbInitState="SecurityResult",!0;case"STDVVNCAUTH_":return this._rfbAuthScheme=2,this._initMsg();case"TGHTULGNAUTH":return this._rfbAuthScheme=129,this._initMsg();default:return this._fail("Unsupported tiny auth scheme (scheme: "+r+")")}return this._fail("No supported sub-auth types!")}_negotiateAuthentication(){switch(this._rfbAuthScheme){case 1:return this._rfbVersion>=3.8?(this._rfbInitState="SecurityResult",!0):(this._rfbInitState="ClientInitialisation",this._initMsg());case 22:return this._negotiateXvpAuth();case 2:return this._negotiateStdVNCAuth();case 16:return this._negotiateTightAuth();case 19:return this._negotiateVeNCryptAuth();case 129:return this._negotiateTightUnixAuth();default:return this._fail("Unsupported auth scheme (scheme: "+this._rfbAuthScheme+")")}}_handleSecurityResult(){if(this._sock.rQwait("VNC auth response ",4))return!1;const e=this._sock.rQshift32();return 0===e?(this._rfbInitState="ClientInitialisation",hn("Authentication OK"),this._initMsg()):this._rfbVersion>=3.8?(this._rfbInitState="SecurityReason",this._securityContext="security result",this._securityStatus=e,this._initMsg()):(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:e}})),this._fail("Security handshake failed"))}_negotiateServerInit(){if(this._sock.rQwait("server initialization",24))return!1;const e=this._sock.rQshift16(),t=this._sock.rQshift16(),n=this._sock.rQshift8(),r=this._sock.rQshift8(),i=this._sock.rQshift8(),a=this._sock.rQshift8(),o=this._sock.rQshift16(),s=this._sock.rQshift16(),l=this._sock.rQshift16(),c=this._sock.rQshift8(),u=this._sock.rQshift8(),d=this._sock.rQshift8();this._sock.rQskipBytes(3);const h=this._sock.rQshift32();if(this._sock.rQwait("server init name",h,24))return!1;let p=this._sock.rQshiftStr(h);if(p=Hn(p,!0),this._rfbTightVNC){if(this._sock.rQwait("TightVNC extended server init header",8,24+h))return!1;const e=this._sock.rQshift16(),t=this._sock.rQshift16(),n=this._sock.rQshift16();this._sock.rQskipBytes(2);const r=16*(e+t+n);if(this._sock.rQwait("TightVNC extended server init header",r,32+h))return!1;this._sock.rQskipBytes(16*e),this._sock.rQskipBytes(16*t),this._sock.rQskipBytes(16*n)}return pn("Screen: "+e+"x"+t+", bpp: "+n+", depth: "+r+", bigEndian: "+i+", trueColor: "+a+", redMax: "+o+", greenMax: "+s+", blueMax: "+l+", redShift: "+c+", greenShift: "+u+", blueShift: "+d),this._setDesktopName(p),this._resize(e,t),this._viewOnly||this._keyboard.grab(),this._fbDepth=24,"Intel(r) AMT KVM"===this._fbName&&(fn("Intel AMT KVM only supports 8/16 bit depths. Using low color mode."),this._fbDepth=8),yl.messages.pixelFormat(this._sock,this._fbDepth,!0),this._sendEncodings(),yl.messages.fbUpdateRequest(this._sock,!1,0,0,this._fbWidth,this._fbHeight),this._updateConnectionState("connected"),!0}_sendEncodings(){const e=[];e.push(Qs.encodingCopyRect),24==this._fbDepth&&(e.push(Qs.encodingTight),e.push(Qs.encodingTightPNG),e.push(Qs.encodingHextile),e.push(Qs.encodingRRE)),e.push(Qs.encodingRaw),e.push(Qs.pseudoEncodingQualityLevel0+this._qualityLevel),e.push(Qs.pseudoEncodingCompressLevel0+this._compressionLevel),e.push(Qs.pseudoEncodingDesktopSize),e.push(Qs.pseudoEncodingLastRect),e.push(Qs.pseudoEncodingQEMUExtendedKeyEvent),e.push(Qs.pseudoEncodingExtendedDesktopSize),e.push(Qs.pseudoEncodingXvp),e.push(Qs.pseudoEncodingFence),e.push(Qs.pseudoEncodingContinuousUpdates),e.push(Qs.pseudoEncodingDesktopName),e.push(Qs.pseudoEncodingExtendedClipboard),24==this._fbDepth&&(e.push(Qs.pseudoEncodingVMwareCursor),e.push(Qs.pseudoEncodingCursor)),yl.messages.clientEncodings(this._sock,e)}_initMsg(){switch(this._rfbInitState){case"ProtocolVersion":return this._negotiateProtocolVersion();case"Security":return this._negotiateSecurity();case"Authentication":return this._negotiateAuthentication();case"SecurityResult":return this._handleSecurityResult();case"SecurityReason":return this._handleSecurityReason();case"ClientInitialisation":return this._sock.send([this._shared?1:0]),this._rfbInitState="ServerInitialisation",!0;case"ServerInitialisation":return this._negotiateServerInit();default:return this._fail("Unknown init state (state: "+this._rfbInitState+")")}}_handleSetColourMapMsg(){return hn("SetColorMapEntries"),this._fail("Unexpected SetColorMapEntries message")}_handleServerCutText(){if(hn("ServerCutText"),this._sock.rQwait("ServerCutText header",7,1))return!1;this._sock.rQskipBytes(3);let e=this._sock.rQshift32();if(e=Gn(e),this._sock.rQwait("ServerCutText content",Math.abs(e),8))return!1;if(e>=0){const t=this._sock.rQshiftStr(e);if(this._viewOnly)return!0;this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:t}}))}else{e=Math.abs(e);const t=this._sock.rQshift32();let n=65535&t,r=4278190080&t,i=!!(r&fl);if(i){this._clipboardServerCapabilitiesFormats={},this._clipboardServerCapabilitiesActions={};for(let t=0;t<=15;t++){let e=1<<t;n&e&&(this._clipboardServerCapabilitiesFormats[e]=!0,this._sock.rQshift32())}for(let t=24;t<=31;t++){let e=1<<t;this._clipboardServerCapabilitiesActions[e]=!!(r&e)}let e=[fl,ml,gl,vl,bl];yl.messages.extendedClipboardCaps(this._sock,e,{extendedClipboardFormatText:0})}else if(r===ml){if(this._viewOnly)return!0;null!=this._clipboardText&&this._clipboardServerCapabilitiesActions[bl]&&n&pl&&yl.messages.extendedClipboardProvide(this._sock,[pl],[this._clipboardText])}else if(r===gl){if(this._viewOnly)return!0;this._clipboardServerCapabilitiesActions[vl]&&(null!=this._clipboardText?yl.messages.extendedClipboardNotify(this._sock,[pl]):yl.messages.extendedClipboardNotify(this._sock,[]))}else if(r===vl){if(this._viewOnly)return!0;this._clipboardServerCapabilitiesActions[ml]&&n&pl&&yl.messages.extendedClipboardRequest(this._sock,[pl])}else{if(r!==bl)return this._fail("Unexpected action in extended clipboard message: "+r);{if(this._viewOnly)return!0;if(!(n&pl))return!0;this._clipboardText=null;let t=this._sock.rQshiftBytes(e-4),r=new Pi,i=null;r.setInput(t);for(let e=0;e<=15;e++){let t=1<<e;if(n&t){let e=0,n=r.inflate(4);e|=n[0]<<24,e|=n[1]<<16,e|=n[2]<<8,e|=n[3];let a=r.inflate(e);t===pl&&(i=a)}}if(r.setInput(null),null!==i){let e="";for(let t=0;t<i.length;t++)e+=String.fromCharCode(i[t]);i=e,i=Hn(i),i.length>0&&"\0"===i.charAt(i.length-1)&&(i=i.slice(0,-1)),i=i.replace("\r\n","\n"),this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:i}}))}}}}return!0}_handleServerFenceMsg(){if(this._sock.rQwait("ServerFence header",8,1))return!1;this._sock.rQskipBytes(3);let e=this._sock.rQshift32(),t=this._sock.rQshift8();if(this._sock.rQwait("ServerFence payload",t,9))return!1;t>64&&(fn("Bad payload length ("+t+") in fence response"),t=64);const n=this._sock.rQshiftStr(t);return this._supportsFence=!0,e&1<<31?(e&=3,yl.messages.clientFence(this._sock,e,n),!0):this._fail("Unexpected fence response")}_handleXvpMsg(){if(this._sock.rQwait("XVP version and message",3,1))return!1;this._sock.rQskipBytes(1);const e=this._sock.rQshift8(),t=this._sock.rQshift8();switch(t){case 0:mn("XVP Operation Failed");break;case 1:this._rfbXvpVer=e,pn("XVP extensions enabled (version "+this._rfbXvpVer+")"),this._setCapability("power",!0);break;default:this._fail("Illegal server XVP message (msg: "+t+")");break}return!0}_normalMsg(){let e,t,n;switch(e=this._FBU.rects>0?0:this._sock.rQshift8(),e){case 0:return n=this._framebufferUpdate(),n&&!this._enabledContinuousUpdates&&yl.messages.fbUpdateRequest(this._sock,!0,0,0,this._fbWidth,this._fbHeight),n;case 1:return this._handleSetColourMapMsg();case 2:return hn("Bell"),this.dispatchEvent(new CustomEvent("bell",{detail:{}})),!0;case 3:return this._handleServerCutText();case 150:return t=!this._supportsContinuousUpdates,this._supportsContinuousUpdates=!0,this._enabledContinuousUpdates=!1,t&&(this._enabledContinuousUpdates=!0,this._updateContinuousUpdates(),pn("Enabling continuous updates.")),!0;case 248:return this._handleServerFenceMsg();case 250:return this._handleXvpMsg();default:return this._fail("Unexpected server message (type "+e+")"),hn("sock.rQslice(0, 30): "+this._sock.rQslice(0,30)),!0}}_onFlush(){this._flushing=!1,this._sock.rQlen>0&&this._handleMessage()}_framebufferUpdate(){if(0===this._FBU.rects){if(this._sock.rQwait("FBU header",3,1))return!1;if(this._sock.rQskipBytes(1),this._FBU.rects=this._sock.rQshift16(),this._display.pending())return this._flushing=!0,this._display.flush(),!1}while(this._FBU.rects>0){if(null===this._FBU.encoding){if(this._sock.rQwait("rect header",12))return!1;const e=this._sock.rQshiftBytes(12);this._FBU.x=(e[0]<<8)+e[1],this._FBU.y=(e[2]<<8)+e[3],this._FBU.width=(e[4]<<8)+e[5],this._FBU.height=(e[6]<<8)+e[7],this._FBU.encoding=parseInt((e[8]<<24)+(e[9]<<16)+(e[10]<<8)+e[11],10)}if(!this._handleRect())return!1;this._FBU.rects--,this._FBU.encoding=null}return this._display.flip(),!0}_handleRect(){switch(this._FBU.encoding){case Qs.pseudoEncodingLastRect:return this._FBU.rects=1,!0;case Qs.pseudoEncodingVMwareCursor:return this._handleVMwareCursor();case Qs.pseudoEncodingCursor:return this._handleCursor();case Qs.pseudoEncodingQEMUExtendedKeyEvent:try{const e=document.createEvent("keyboardEvent");void 0!==e.code&&(this._qemuExtKeyEventSupported=!0)}catch(Uo){}return!0;case Qs.pseudoEncodingDesktopName:return this._handleDesktopName();case Qs.pseudoEncodingDesktopSize:return this._resize(this._FBU.width,this._FBU.height),!0;case Qs.pseudoEncodingExtendedDesktopSize:return this._handleExtendedDesktopSize();default:return this._handleDataRect()}}_handleVMwareCursor(){const e=this._FBU.x,t=this._FBU.y,n=this._FBU.width,r=this._FBU.height;if(this._sock.rQwait("VMware cursor encoding",1))return!1;const i=this._sock.rQshift8();let a;this._sock.rQshift8();const o=4;if(0==i){const e=-256;if(a=new Array(n*r*o),this._sock.rQwait("VMware cursor classic encoding",n*r*o*2,2))return!1;let t=new Array(n*r);for(let a=0;a<n*r;a++)t[a]=this._sock.rQshift32();let i=new Array(n*r);for(let a=0;a<n*r;a++)i[a]=this._sock.rQshift32();for(let s=0;s<n*r;s++)if(0==t[s]){let e=i[s],t=e>>8&255,n=e>>16&255,r=e>>24&255;a[s*o]=t,a[s*o+1]=n,a[s*o+2]=r,a[s*o+3]=255}else(t[s]&e)==e?0==i[s]?(a[s*o]=0,a[s*o+1]=0,a[s*o+2]=0,a[s*o+3]=0):(i[s],a[s*o]=0,a[s*o+1]=0,a[s*o+2]=0,a[s*o+3]=255):(a[s*o]=0,a[s*o+1]=0,a[s*o+2]=0,a[s*o+3]=255)}else{if(1!=i)return fn("The given cursor type is not supported: "+i+" given."),!1;if(this._sock.rQwait("VMware cursor alpha encoding",n*r*4,2))return!1;a=new Array(n*r*o);for(let e=0;e<n*r;e++){let t=this._sock.rQshift32();a[4*e]=t>>24&255,a[4*e+1]=t>>16&255,a[4*e+2]=t>>8&255,a[4*e+3]=255&t}}return this._updateCursor(a,e,t,n,r),!0}_handleCursor(){const e=this._FBU.x,t=this._FBU.y,n=this._FBU.width,r=this._FBU.height,i=n*r*4,a=Math.ceil(n/8)*r;let o=i+a;if(this._sock.rQwait("cursor encoding",o))return!1;const s=this._sock.rQshiftBytes(i),l=this._sock.rQshiftBytes(a);let c=new Uint8Array(n*r*4),u=0;for(let d=0;d<r;d++)for(let e=0;e<n;e++){let t=d*Math.ceil(n/8)+Math.floor(e/8),r=l[t]<<e%8&128?255:0;c[u]=s[u+2],c[u+1]=s[u+1],c[u+2]=s[u],c[u+3]=r,u+=4}return this._updateCursor(c,e,t,n,r),!0}_handleDesktopName(){if(this._sock.rQwait("DesktopName",4))return!1;let e=this._sock.rQshift32();if(this._sock.rQwait("DesktopName",e,4))return!1;let t=this._sock.rQshiftStr(e);return t=Hn(t,!0),this._setDesktopName(t),!0}_handleExtendedDesktopSize(){if(this._sock.rQwait("ExtendedDesktopSize",4))return!1;const e=this._sock.rQpeek8();let t=4+16*e;if(this._sock.rQwait("ExtendedDesktopSize",t))return!1;const n=!this._supportsSetDesktopSize;this._supportsSetDesktopSize=!0,n&&this._requestRemoteResize(),this._sock.rQskipBytes(1),this._sock.rQskipBytes(3);for(let r=0;r<e;r+=1)0===r?(this._screenID=this._sock.rQshiftBytes(4),this._sock.rQskipBytes(2),this._sock.rQskipBytes(2),this._sock.rQskipBytes(2),this._sock.rQskipBytes(2),this._screenFlags=this._sock.rQshiftBytes(4)):this._sock.rQskipBytes(16);if(1===this._FBU.x&&0!==this._FBU.y){let e="";switch(this._FBU.y){case 1:e="Resize is administratively prohibited";break;case 2:e="Out of resources";break;case 3:e="Invalid screen layout";break;default:e="Unknown reason";break}fn("Server did not accept the resize request: "+e)}else this._resize(this._FBU.width,this._FBU.height);return!0}_handleDataRect(){let e=this._decoders[this._FBU.encoding];if(!e)return this._fail("Unsupported encoding (encoding: "+this._FBU.encoding+")"),!1;try{return e.decodeRect(this._FBU.x,this._FBU.y,this._FBU.width,this._FBU.height,this._sock,this._display,this._fbDepth)}catch(Uo){return this._fail("Error decoding rect: "+Uo),!1}}_updateContinuousUpdates(){this._enabledContinuousUpdates&&yl.messages.enableContinuousUpdates(this._sock,!0,0,0,this._fbWidth,this._fbHeight)}_resize(e,t){this._fbWidth=e,this._fbHeight=t,this._display.resize(this._fbWidth,this._fbHeight),this._updateClip(),this._updateScale(),this._updateContinuousUpdates()}_xvpOp(e,t){this._rfbXvpVer<e||(pn("Sending XVP operation "+t+" (version "+e+")"),yl.messages.xvpOp(this._sock,e,t))}_updateCursor(e,t,n,r,i){this._cursorImage={rgbaPixels:e,hotx:t,hoty:n,w:r,h:i},this._refreshCursor()}_shouldShowDotCursor(){if(!this._showDotCursor)return!1;for(let e=3;e<this._cursorImage.rgbaPixels.length;e+=4)if(this._cursorImage.rgbaPixels[e])return!1;return!0}_refreshCursor(){if("connecting"!==this._rfbConnectionState&&"connected"!==this._rfbConnectionState)return;const e=this._shouldShowDotCursor()?yl.cursors.dot:this._cursorImage;this._cursor.change(e.rgbaPixels,e.hotx,e.hoty,e.w,e.h)}static genDES(e,t){const n=e.split("").map(e=>e.charCodeAt(0));return new Ws(n).encrypt(t)}}yl.messages={keyEvent(e,t,n){const r=e._sQ,i=e._sQlen;r[i]=4,r[i+1]=n,r[i+2]=0,r[i+3]=0,r[i+4]=t>>24,r[i+5]=t>>16,r[i+6]=t>>8,r[i+7]=t,e._sQlen+=8,e.flush()},QEMUExtendedKeyEvent(e,t,n,r){function i(e){const t=r>>8,n=255&r;return 224===t&&n<127?128|n:e}const a=e._sQ,o=e._sQlen;a[o]=255,a[o+1]=0,a[o+2]=n>>8,a[o+3]=n,a[o+4]=t>>24,a[o+5]=t>>16,a[o+6]=t>>8,a[o+7]=t;const s=i(r);a[o+8]=s>>24,a[o+9]=s>>16,a[o+10]=s>>8,a[o+11]=s,e._sQlen+=12,e.flush()},pointerEvent(e,t,n,r){const i=e._sQ,a=e._sQlen;i[a]=5,i[a+1]=r,i[a+2]=t>>8,i[a+3]=t,i[a+4]=n>>8,i[a+5]=n,e._sQlen+=6,e.flush()},_buildExtendedClipboardFlags(e,t){let n=new Uint8Array(4),r=0,i=0;for(let a=0;a<e.length;a++)i|=e[a];for(let a=0;a<t.length;a++)r|=t[a];return n[0]=i>>24,n[1]=0,n[2]=0,n[3]=r,n},extendedClipboardProvide(e,t,n){let r=new cs,i=[];for(let s=0;s<t.length;s++){if(t[s]!=pl)throw new Error("Unsupported extended clipboard format for Provide message.");n[s]=n[s].replace(/\r\n|\r|\n/gm,"\r\n");let e=zn(n[s]+"\0");i.push(e.length>>24&255,e.length>>16&255,e.length>>8&255,255&e.length);for(let t=0;t<e.length;t++)i.push(e.charCodeAt(t))}let a=r.deflate(new Uint8Array(i)),o=new Uint8Array(4+a.length);o.set(yl.messages._buildExtendedClipboardFlags([bl],t)),o.set(a,4),yl.messages.clientCutText(e,o,!0)},extendedClipboardNotify(e,t){let n=yl.messages._buildExtendedClipboardFlags([vl],t);yl.messages.clientCutText(e,n,!0)},extendedClipboardRequest(e,t){let n=yl.messages._buildExtendedClipboardFlags([ml],t);yl.messages.clientCutText(e,n,!0)},extendedClipboardCaps(e,t,n){let r=Object.keys(n),i=new Uint8Array(4+4*r.length);r.map(e=>parseInt(e)),r.sort((e,t)=>e-t),i.set(yl.messages._buildExtendedClipboardFlags(t,[]));let a=4;for(let o=0;o<r.length;o++)i[a]=n[r[o]]>>24,i[a+1]=n[r[o]]>>16,i[a+2]=n[r[o]]>>8,i[a+3]=n[r[o]]|0,a+=4,i[3]|=1<<r[o];yl.messages.clientCutText(e,i,!0)},clientCutText(e,t,n=!1){const r=e._sQ,i=e._sQlen;let a;r[i]=6,r[i+1]=0,r[i+2]=0,r[i+3]=0,a=n?Kn(-t.length):t.length,r[i+4]=a>>24,r[i+5]=a>>16,r[i+6]=a>>8,r[i+7]=a,e._sQlen+=8;let o=0,s=t.length;while(s>0){let n=Math.min(s,e._sQbufferSize-e._sQlen);for(let i=0;i<n;i++)r[e._sQlen+i]=t[o+i];e._sQlen+=n,e.flush(),s-=n,o+=n}},setDesktopSize(e,t,n,r,i){const a=e._sQ,o=e._sQlen;a[o]=251,a[o+1]=0,a[o+2]=t>>8,a[o+3]=t,a[o+4]=n>>8,a[o+5]=n,a[o+6]=1,a[o+7]=0,a[o+8]=r>>24,a[o+9]=r>>16,a[o+10]=r>>8,a[o+11]=r,a[o+12]=0,a[o+13]=0,a[o+14]=0,a[o+15]=0,a[o+16]=t>>8,a[o+17]=t,a[o+18]=n>>8,a[o+19]=n,a[o+20]=i>>24,a[o+21]=i>>16,a[o+22]=i>>8,a[o+23]=i,e._sQlen+=24,e.flush()},clientFence(e,t,n){const r=e._sQ,i=e._sQlen;r[i]=248,r[i+1]=0,r[i+2]=0,r[i+3]=0,r[i+4]=t>>24,r[i+5]=t>>16,r[i+6]=t>>8,r[i+7]=t;const a=n.length;r[i+8]=a;for(let o=0;o<a;o++)r[i+9+o]=n.charCodeAt(o);e._sQlen+=9+a,e.flush()},enableContinuousUpdates(e,t,n,r,i,a){const o=e._sQ,s=e._sQlen;o[s]=150,o[s+1]=t,o[s+2]=n>>8,o[s+3]=n,o[s+4]=r>>8,o[s+5]=r,o[s+6]=i>>8,o[s+7]=i,o[s+8]=a>>8,o[s+9]=a,e._sQlen+=10,e.flush()},pixelFormat(e,t,n){const r=e._sQ,i=e._sQlen;let a;a=t>16?32:t>8?16:8;const o=Math.floor(t/3);r[i]=0,r[i+1]=0,r[i+2]=0,r[i+3]=0,r[i+4]=a,r[i+5]=t,r[i+6]=0,r[i+7]=n?1:0,r[i+8]=0,r[i+9]=(1<<o)-1,r[i+10]=0,r[i+11]=(1<<o)-1,r[i+12]=0,r[i+13]=(1<<o)-1,r[i+14]=2*o,r[i+15]=1*o,r[i+16]=0*o,r[i+17]=0,r[i+18]=0,r[i+19]=0,e._sQlen+=20,e.flush()},clientEncodings(e,t){const n=e._sQ,r=e._sQlen;n[r]=2,n[r+1]=0,n[r+2]=t.length>>8,n[r+3]=t.length;let i=r+4;for(let a=0;a<t.length;a++){const e=t[a];n[i]=e>>24,n[i+1]=e>>16,n[i+2]=e>>8,n[i+3]=e,i+=4}e._sQlen+=i-r,e.flush()},fbUpdateRequest(e,t,n,r,i,a){const o=e._sQ,s=e._sQlen;"undefined"===typeof n&&(n=0),"undefined"===typeof r&&(r=0),o[s]=3,o[s+1]=t?1:0,o[s+2]=n>>8&255,o[s+3]=255&n,o[s+4]=r>>8&255,o[s+5]=255&r,o[s+6]=i>>8&255,o[s+7]=255&i,o[s+8]=a>>8&255,o[s+9]=255&a,e._sQlen+=10,e.flush()},xvpOp(e,t,n){const r=e._sQ,i=e._sQlen;r[i]=250,r[i+1]=0,r[i+2]=t,r[i+3]=n,e._sQlen+=4,e.flush()}},yl.cursors={none:{rgbaPixels:new Uint8Array,w:0,h:0,hotx:0,hoty:0},dot:{rgbaPixels:new Uint8Array([255,255,255,255,0,0,0,255,255,255,255,255,0,0,0,255,0,0,0,0,0,0,0,255,255,255,255,255,0,0,0,255,255,255,255,255]),w:3,h:3,hotx:1,hoty:1}};var _l={props:{url:{type:String,default:""}},components:{BrandImage:K},data(){return{rfb:null,connected:!1,disconnected:!1,reconnectDelay:3e3,reconnecting:!1,maximumRetryTimes:10,retryTimes:0,setTimeout:null}},mounted(){this.$nextTick(()=>{this.connect()})},beforeUnmount(){this.clearTimeout()},methods:{connect(){const e=new yl(this.$refs.view,this.url);e.addEventListener("connect",()=>{this.clearTimeout(),this.connected=!0,this.retryTimes=0,this.reconnecting=!1}),e.addEventListener("disconnect",e=>{this.clearTimeout(),this.disconnected=!0,this.rfb=null,this.reconnect()}),this.rfb=e},reconnect(){if(this.retryTimes>=this.maximumRetryTimes)return this.reconnecting=!1,this.connected=!0,void(this.disconnected=!0);this.retryTimes+=1,this.reconnecting=!0,this.connected=!1,this.disconnected=!1,this.setTimeout=setTimeout(()=>{this.connect()},this.reconnectDelay)},clearTimeout(){this.setTimeout&&clearTimeout(this.setTimeout)},disconnect(){this.rfb.disconnect()},ctrlAltDelete(){this.rfb.sendCtrlAltDel()},sendKey(e,t,n){this.rfb.sendKey(e,t,n)}}};a(49608);const wl=(0,u.A)(_l,[["render",Vn],["__scopeId","data-v-56da10be"]]);var El=wl;const Sl={class:"list-unstyled dropdown combination-keys__container"},kl=["onClick"],xl=["onClick"];function Al(e,t,n,r,a,o){const s=(0,i.resolveComponent)("novnc-console-item",!0),l=(0,i.resolveComponent)("v-dropdown");return(0,i.openBlock)(),(0,i.createElementBlock)("ul",Sl,[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(n.items,(e,t)=>((0,i.openBlock)(),(0,i.createElementBlock)("li",{key:t},[e.keys?((0,i.openBlock)(),(0,i.createBlock)(l,{key:0,placement:"right-start",trigger:"click",container:!1},{popper:(0,i.withCtx)(()=>[(0,i.createVNode)(s,{items:e.keys,path:n.path,pos:n.pos+1,onUpdate:o.addKeys,onSendKeys:o.sendKeys},null,8,["items","path","pos","onUpdate","onSendKeys"])]),default:(0,i.withCtx)(()=>[(0,i.createElementVNode)("span",{class:(0,i.normalizeClass)([{open:o.getOpenStatus(t,n.pos)},"p-10 hand"]),onClick:e=>o.addKeys({key:t,pos:n.pos})},(0,i.toDisplayString)(e.label),11,kl)]),_:2},1024)):((0,i.openBlock)(),(0,i.createElementBlock)("span",{key:1,class:"p-10 hand",onClick:e=>o.keysDown(t,n.pos)},(0,i.toDisplayString)(e.label),9,xl))]))),128))])}var Cl={name:"NovncConsoleItem",emits:["send-keys","update"],props:{items:{type:Object,required:!0,default:()=>({})},path:{type:Array,required:!0,default:()=>[]},pos:{type:Number,required:!0,default:0}},methods:{keysDown(e,t){this.addKeys({key:e,pos:t}),this.$emit("send-keys")},addKeys({key:e,pos:t}){this.$emit("update",{key:e,pos:t})},sendKeys(){this.$emit("send-keys")},getOpenStatus(e,t){return this.path[t]===e}}};a(83301);const Tl=(0,u.A)(Cl,[["render",Al],["__scopeId","data-v-11c334cb"]]);var Nl=Tl;const Rl={class:"row"},Ol={class:"col span-12"},Il={class:"row"},Ll={class:"col span-12"},Dl=["disabled"],Pl={class:"displayed-keys mt-20"},Ml={class:"text-default-text"},Bl={class:"displayed-banners"},Fl={class:"actions"};function $l(e,t,n,r,a,o){const s=(0,i.resolveComponent)("t"),l=(0,i.resolveComponent)("Banner"),c=(0,i.resolveComponent)("AsyncButton"),u=(0,i.resolveComponent)("ModalWithCard"),d=(0,i.resolveDirective)("clean-html");return(0,i.openBlock)(),(0,i.createBlock)(u,{name:"recordShortcutKeys",width:550},{title:(0,i.withCtx)(()=>[(0,i.createVNode)(s,{k:"harvester.virtualMachine.detail.console.customShortcutKeys"})]),content:(0,i.withCtx)(()=>[(0,i.createElementVNode)("div",Rl,[(0,i.createElementVNode)("div",Ol,[(0,i.createVNode)(l,{color:"info"},{default:(0,i.withCtx)(()=>[(0,i.withDirectives)((0,i.createElementVNode)("span",null,null,512),[[d,o.keysRecordFormat]])]),_:1})])]),(0,i.createElementVNode)("div",Il,[(0,i.createElementVNode)("div",Ll,[(0,i.createElementVNode)("button",{class:"btn bg-primary",onClick:t[0]||(t[0]=(...e)=>o.toggleRecording&&o.toggleRecording(...e))},[(0,i.createVNode)(s,{k:o.recordButton},null,8,["k"]),(0,i.createElementVNode)("i",{class:(0,i.normalizeClass)(["icon icon-fw",a.isRecording?"icon-dot-open":"icon-dot"])},null,2)]),(0,i.createElementVNode)("button",{disabled:!o.canAdd,class:"btn bg-primary",onClick:t[1]||(t[1]=(...e)=>o.addShortcutKey&&o.addShortcutKey(...e))},[(0,i.createVNode)(s,{k:"generic.add"})],8,Dl)])]),t[3]||(t[3]=(0,i.createElementVNode)("hr",null,null,-1)),(0,i.createElementVNode)("div",Pl,[(0,i.withDirectives)((0,i.createElementVNode)("h4",Ml,null,512),[[d,e.t("harvester.virtualMachine.detail.console.record.preferredKeys")]]),(0,i.createElementVNode)("div",Bl,[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(o.displayedKeys,(e,t)=>((0,i.openBlock)(),(0,i.createBlock)(l,{key:t},{default:(0,i.withCtx)(()=>[(0,i.withDirectives)((0,i.createElementVNode)("span",null,null,512),[[d,e]])]),_:2},1024))),128))])])]),footer:(0,i.withCtx)(()=>[(0,i.createElementVNode)("div",Fl,[(0,i.createElementVNode)("button",{class:"btn role-secondary mr-20",onClick:t[2]||(t[2]=(0,i.withModifiers)((...e)=>o.closeRecordingModal&&o.closeRecordingModal(...e),["prevent"]))},[(0,i.createVNode)(s,{k:"generic.close"})]),(0,i.createVNode)(c,{mode:"done",onClick:o.saveKeys},null,8,["onClick"])])]),_:1})}var Ul=a(68745),jl=a(67607),Vl=a(24151);const Kl="prefered-shortcut-keys";var Gl={name:"NovncConsoleCustomKeys",emits:["close"],components:{ModalWithCard:Vl.A,Banner:Ul.A,AsyncButton:jl.A},data(){return{keysRecord:[],addedShortcutKeys:[],preferredShortcutKeys:[],isRecording:!1}},computed:{savedShortcutKeys(){const e=this.$store.getters["management/all"](F.m4.PREFERENCE),t=e?.[0]?.data?.[Kl];let n=[];if(!t)return n;try{n=JSON.parse(t)}catch(Uo){this.$store.dispatch("growl/fromError",{title:this.t("generic.notification.title.error",{name:this.t("harvester.virtualMachine.detail.console.customShortcutKeys")}),err:Uo},{root:!0})}return n},displayedKeys(){const e=this.addedShortcutKeys.concat(this.preferredShortcutKeys).map(e=>{const t=e.map(e=>` <code>${e.key.charAt(0).toUpperCase()+e.key.slice(1)}</code>`);return t.join(",")});return e},recordButton(){return this.isRecording?"harvester.virtualMachine.detail.console.record.stop":"harvester.virtualMachine.detail.console.record.start"},keysRecordFormat(){if(!this.isRecording&&0===this.keysRecord.length)return this.t("harvester.virtualMachine.detail.console.record.tips");const e=this.keysRecord.map(e=>` <code>${e.key.charAt(0).toUpperCase()+e.key.slice(1)}</code>`);return`Keys: ${e.join(",")}`},canAdd(){const e=this.keysRecord.length>0;let t=[].concat(this.preferredShortcutKeys,this.addedShortcutKeys);return!!e&&(t.push(this.keysRecord),t=t.map(e=>{const t=e.map(e=>e.key);return t.join(",")}),t.length===new Set(t).size)}},watch:{savedShortcutKeys:{handler(){this.preferredShortcutKeys=[].concat(this.savedShortcutKeys)||[]},immediate:!0}},methods:{closeRecordingModal(){window.removeEventListener("keydown",this.handleShortcut),this.$emit("close")},toggleRecording(){this.isRecording=!this.isRecording,this.isRecording?(this.keysRecord=[],window.addEventListener("keydown",this.handleShortcut)):window.removeEventListener("keydown",this.handleShortcut)},handleShortcut(e){e.preventDefault();const{key:t,keyCode:n,code:r,location:i,charCode:a}=e;this.keysRecord.push({key:t,keyCode:n,code:r,location:i,charCode:a})},addShortcutKey(){this.addedShortcutKeys.push([].concat(this.keysRecord))},removeKey(e){const t=e.replace(/(\s*)<code>|<\/code>/g,"").replace(/\s*,\s*/g,",");this.addedShortcutKeys=this.addedShortcutKeys.filter(e=>{const n=e.map(e=>e.key.charAt(0).toUpperCase()+e.key.slice(1)).join(",");return n!==t}),this.preferredShortcutKeys=this.preferredShortcutKeys.filter(e=>{const n=e.map(e=>e.key.charAt(0).toUpperCase()+e.key.slice(1)).join(",");return n!==t})},async saveKeys(e){const t=[].concat(this.preferredShortcutKeys,this.addedShortcutKeys),n=this.$store.getters["management/all"](F.m4.PREFERENCE)?.[0];try{n.data[Kl]=JSON.stringify(t),await n.save(),this.closeRecordingModal(),e(!0)}catch(Uo){e(!1)}}}};a(72001);const Hl=(0,u.A)(Gl,[["render",$l],["__scopeId","data-v-7821dcb9"]]);var zl=Hl;const ql="prefered-shortcut-keys",Xl={ControlLeft:{label:"Ctrl",value:Zt.XK_Control_L},AltLeft:{label:"Alt",value:Zt.XK_Alt_L}},Wl={Delete:{label:"Del",value:Zt.XK_Delete},PrintScreen:{label:"Print Screen",value:Zt.XK_Print}},Yl={KeyN:{label:"N",value:Zt.XK_n},KeyT:{label:"T",value:Zt.XK_t},KeyW:{label:"W",value:Zt.XK_w},KeyY:{label:"Y",value:Zt.XK_y}},Ql={F1:{label:"F1",value:Zt.XK_F1},F2:{label:"F2",value:Zt.XK_F2},F3:{label:"F3",value:Zt.XK_F3},F4:{label:"F4",value:Zt.XK_F4},F5:{label:"F5",value:Zt.XK_F5},F6:{label:"F6",value:Zt.XK_F6},F7:{label:"F7",value:Zt.XK_F7},F8:{label:"F8",value:Zt.XK_F8},F9:{label:"F9",value:Zt.XK_F9},F10:{label:"F10",value:Zt.XK_F10},F11:{label:"F11",value:Zt.XK_F11},F12:{label:"F12",value:Zt.XK_F12}};var Jl={name:"NovncConsoleWrapper",components:{NovncConsole:El,NovncConsoleItem:Nl,NovncConsoleCustomKeys:zl},async fetch(){const e={vmResource:this.$store.dispatch("harvester/find",{type:l.rk.VM,id:this.value.id})},t=await(0,se.kR)(e);this.vmResource=t.vmResource},props:{value:{type:Object,required:!0,default:()=>({})}},data(){return{keysRecord:[],vmResource:{},renderKeysModal:!1,currentUser:null,hideCustomKeysBar:!1}},computed:{savedShortcutKeys(){const e=this.$store.getters["management/all"](F.m4.PREFERENCE),t=e?.[0]?.data?.[ql];let n=[];if(!e?.[0]?.data)return this.hideCustomKeysBar=!0,n;if(!t)return n;try{n=JSON.parse(t)}catch(Uo){this.$store.dispatch("growl/fromError",{title:this.t("generic.notification.title.error",{name:(0,Jt.ZD)(this.value.metadata.name)}),err:Uo},{root:!0})}return n},isDown(){return this.isEmpty(this.value)},url(){const e=`${window.location.hostname}:${window.location.port}`;return`wss://${e}${this.value?.getVMIApiPath}`},allKeys(){return{...Xl,...Wl,...Yl,...Ql}},keymap(){const e={...Xl,PrintScreen:Wl.PrintScreen,...Ql};return e.AltLeft.keys={PrintScreen:Wl.PrintScreen,...Ql},e.ControlLeft.keys={AltLeft:{...Object.assign(Xl.AltLeft,{}),keys:{Delete:Wl.Delete}},...Yl},e},hasSoftRebootAction(){return!!this.vmResource?.actions?.softreboot},preferredShortcutKeys(){return(this.savedShortcutKeys||[]).map(e=>({label:e.map(e=>e.key.charAt(0).toUpperCase()+e.key.slice(1)).join("+"),value:e}))}},methods:{isEmpty(e){return void 0!==e&&0===Object.keys(e).length},close(){this.$refs.novncConsole.disconnect()},update({key:e,pos:t}){this.keysRecord.splice(t,this.keysRecord.length-t,e)},sendKeys(){this.keysRecord.forEach(e=>{this.$refs.novncConsole.sendKey(this.allKeys[e].value,e,!0)}),this.keysRecord.reverse().forEach(e=>{this.$refs.novncConsole.sendKey(this.allKeys[e].value,e,!1)}),this.$refs.popover.isOpen=!1,this.keysRecord=[]},sendCustomKeys(e){const t=[].concat(e);t.forEach(e=>{this.$refs.novncConsole.sendKey(In(e),Rn(e),!0)}),t.reverse().forEach(e=>{this.$refs.novncConsole.sendKey(In(e),Rn(e),!1)})},reconnect(){this.$refs.novncConsole.reconnect()},softReboot(){this.vmResource.doSoftReboot()},showKeysModal(){this.renderKeysModal=!0},hideKeysModal(){this.renderKeysModal=!1}}};a(15324),a(36386);const Zl=(0,u.A)(Jl,[["render",Qt],["__scopeId","data-v-073fcb40"]]);var ec=Zl,tc={components:{NovncConsoleWrapper:ec,Loading:Oe.A},async fetch(){this.rows=await this.$store.dispatch("harvester/findAll",{type:l.rk.VMI})},data(){return{uid:this.$route.params.uid}},computed:{vmi(){const e=this.$store.getters["harvester/all"](l.rk.VMI)||[],t=e.find(e=>e?.metadata?.ownerReferences?.[0]?.uid===this.uid);return t}},mounted(){window.addEventListener("beforeunload",()=>{this.$refs.console.close()})},head(){return{title:this.vmi?.metadata?.name}}};a(9252);const nc=(0,u.A)(tc,[["render",Kt]]);var rc=nc;function ic(e,t,n,r,a,o){const s=(0,i.resolveComponent)("ResourceList");return(0,i.openBlock)(),(0,i.createBlock)(s)}var ac=a(21758),oc={name:"HarvesterResourcedList",components:{ResourceList:ac.A}};const sc=(0,u.A)(oc,[["render",ic]]);var lc=sc;const cc={key:1},uc={class:"mb-20"},dc={class:"row mb-20"},hc={class:"col span-6"},pc={class:"mt-20 mb-5 pb-5"},fc={class:"text-label"},mc={class:"row mt-10 mb-20"},gc={key:0,class:"row mb-20"},vc={class:"col logo-container span-6"},bc={class:"mb-10"},yc={class:"text-muted"},_c=["src"],wc={class:"col logo-container span-6"},Ec={class:"mb-10"},Sc={class:"text-muted"},kc=["src"],xc={class:"mt-20 mb-5 pb-5"},Ac={class:"text-label"},Cc={class:"row mt-10 mb-20"},Tc={key:1,class:"row mb-20"},Nc={class:"col logo-container span-12"},Rc={class:"mb-10"},Oc={class:"text-muted"},Ic=["src"],Lc={class:"mt-40 mb-5 pb-0"},Dc={class:"text-label"},Pc={class:"row mt-20"},Mc={key:2,class:"row mt-20 mb-20"},Bc={class:"mt-40 mb-5 pb-0"},Fc={class:"text-label"},$c={class:"row mt-20"},Uc={key:3,class:"row mt-20 mb-20"},jc={class:"col link-example"},Vc={key:0};function Kc(e,t,n,r,a,o){const s=(0,i.resolveComponent)("Loading"),l=(0,i.resolveComponent)("TypeDescription"),c=(0,i.resolveComponent)("LabeledInput"),u=(0,i.resolveComponent)("Checkbox"),d=(0,i.resolveComponent)("FileSelector"),h=(0,i.resolveComponent)("SimpleBox"),p=(0,i.resolveComponent)("ColorInput"),f=(0,i.resolveComponent)("Banner"),m=(0,i.resolveComponent)("AsyncButton");return e.$fetchState.pending?((0,i.openBlock)(),(0,i.createBlock)(s,{key:0})):((0,i.openBlock)(),(0,i.createElementBlock)("div",cc,[(0,i.createElementVNode)("h1",uc,(0,i.toDisplayString)(e.t("branding.label")),1),(0,i.createVNode)(l,{resource:"harvester"}),(0,i.createElementVNode)("div",null,[(0,i.createElementVNode)("div",dc,[(0,i.createElementVNode)("div",hc,[(0,i.createVNode)(c,{value:a.uiPLSetting.value,"onUpdate:value":t[0]||(t[0]=e=>a.uiPLSetting.value=e),label:e.t("branding.uiPL.label"),mode:o.mode,maxlength:100},null,8,["value","label","mode"])])]),(0,i.createElementVNode)("h3",pc,(0,i.toDisplayString)(e.t("branding.logos.label")),1),(0,i.createElementVNode)("label",fc,(0,i.toDisplayString)(e.t("harvester.branding.logos.tip",{},!0)),1),(0,i.createElementVNode)("div",mc,[(0,i.createVNode)(u,{value:a.customizeLogo,"onUpdate:value":t[1]||(t[1]=e=>a.customizeLogo=e),label:e.t("branding.logos.useCustom"),mode:o.mode},null,8,["value","label","mode"])]),a.customizeLogo?((0,i.openBlock)(),(0,i.createElementBlock)("div",gc,[(0,i.createElementVNode)("div",vc,[(0,i.createElementVNode)("div",bc,[(0,i.createVNode)(d,{"byte-limit":2e4,"read-as-data-url":!0,class:"role-secondary",label:e.t("branding.logos.uploadLight"),mode:o.mode,onError:o.setError,onSelected:t[2]||(t[2]=e=>o.updateLogo(e,"uiLogoLight"))},null,8,["label","mode","onError"])]),a.uiLogoLight||a.uiLogoDark?((0,i.openBlock)(),(0,i.createBlock)(h,{key:0,class:"theme-light mb-10"},{default:(0,i.withCtx)(()=>[(0,i.createElementVNode)("label",yc,(0,i.toDisplayString)(e.t("branding.logos.lightPreview")),1),(0,i.createElementVNode)("img",{class:"logo-preview",src:a.uiLogoLight?a.uiLogoLight:a.uiLogoDark},null,8,_c)]),_:1})):(0,i.createCommentVNode)("",!0)]),(0,i.createElementVNode)("div",wc,[(0,i.createElementVNode)("div",Ec,[(0,i.createVNode)(d,{"byte-limit":2e4,"read-as-data-url":!0,class:"role-secondary",label:e.t("branding.logos.uploadDark"),mode:o.mode,onError:o.setError,onSelected:t[3]||(t[3]=e=>o.updateLogo(e,"uiLogoDark"))},null,8,["label","mode","onError"])]),a.uiLogoDark||a.uiLogoLight?((0,i.openBlock)(),(0,i.createBlock)(h,{key:0,class:"theme-dark mb-10"},{default:(0,i.withCtx)(()=>[(0,i.createElementVNode)("label",Sc,(0,i.toDisplayString)(e.t("branding.logos.darkPreview")),1),(0,i.createElementVNode)("img",{class:"logo-preview",src:a.uiLogoDark?a.uiLogoDark:a.uiLogoLight},null,8,kc)]),_:1})):(0,i.createCommentVNode)("",!0)])])):(0,i.createCommentVNode)("",!0),(0,i.createElementVNode)("h3",xc,(0,i.toDisplayString)(e.t("branding.favicon.label")),1),(0,i.createElementVNode)("label",Ac,(0,i.toDisplayString)(e.t("harvester.branding.favicon.tip",{},!0)),1),(0,i.createElementVNode)("div",Cc,[(0,i.createVNode)(u,{value:a.customizeFavicon,"onUpdate:value":t[4]||(t[4]=e=>a.customizeFavicon=e),label:e.t("branding.favicon.useCustom"),mode:o.mode},null,8,["value","label","mode"])]),a.customizeFavicon?((0,i.openBlock)(),(0,i.createElementBlock)("div",Tc,[(0,i.createElementVNode)("div",Nc,[(0,i.createElementVNode)("div",Rc,[(0,i.createVNode)(d,{"byte-limit":2e4,"read-as-data-url":!0,class:"role-secondary",label:e.t("branding.favicon.upload"),mode:o.mode,onError:o.setError,onSelected:t[5]||(t[5]=e=>o.updateLogo(e,"uiFavicon"))},null,8,["label","mode","onError"])]),a.uiFavicon?((0,i.openBlock)(),(0,i.createBlock)(h,{key:0},{default:(0,i.withCtx)(()=>[(0,i.createElementVNode)("label",Oc,(0,i.toDisplayString)(e.t("branding.favicon.preview")),1),(0,i.createElementVNode)("img",{class:"logo-preview",src:a.uiFavicon},null,8,Ic)]),_:1})):(0,i.createCommentVNode)("",!0)])])):(0,i.createCommentVNode)("",!0),(0,i.createElementVNode)("h3",Lc,(0,i.toDisplayString)(e.t("branding.color.label")),1),(0,i.createElementVNode)("label",Dc,(0,i.toDisplayString)(e.t("branding.color.tip",{},!0)),1),(0,i.createElementVNode)("div",Pc,[(0,i.createVNode)(u,{value:a.customizeColor,"onUpdate:value":t[6]||(t[6]=e=>a.customizeColor=e),label:e.t("branding.color.useCustom"),mode:o.mode},null,8,["value","label","mode"])]),a.customizeColor?((0,i.openBlock)(),(0,i.createElementBlock)("div",Mc,[(0,i.createVNode)(p,{value:a.uiColor,"onUpdate:value":t[7]||(t[7]=e=>a.uiColor=e),"component-testid":"primary"},null,8,["value"])])):(0,i.createCommentVNode)("",!0),(0,i.createElementVNode)("h3",Bc,(0,i.toDisplayString)(e.t("branding.linkColor.label")),1),(0,i.createElementVNode)("label",Fc,(0,i.toDisplayString)(e.t("branding.linkColor.tip",{},!0)),1),(0,i.createElementVNode)("div",$c,[(0,i.createVNode)(u,{value:a.customizeLinkColor,"onUpdate:value":t[8]||(t[8]=e=>a.customizeLinkColor=e),label:e.t("branding.linkColor.useCustom"),mode:o.mode},null,8,["value","label","mode"])]),a.customizeLinkColor?((0,i.openBlock)(),(0,i.createElementBlock)("div",Uc,[(0,i.createVNode)(p,{value:a.uiLinkColor,"onUpdate:value":t[9]||(t[9]=e=>a.uiLinkColor=e),class:"col","component-testid":"link"},null,8,["value"]),(0,i.createElementVNode)("span",jc,[(0,i.createElementVNode)("a",{style:(0,i.normalizeStyle)(o.customLinkColor)},(0,i.toDisplayString)(e.t("branding.linkColor.example")),5)])])):(0,i.createCommentVNode)("",!0)]),((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(a.errors,(e,t)=>((0,i.openBlock)(),(0,i.createBlock)(f,{key:t,color:"error",label:e},null,8,["label"]))),128)),"edit"===o.mode?((0,i.openBlock)(),(0,i.createElementBlock)("div",Vc,[(0,i.createVNode)(m,{"component-testid":"branding-apply",class:"pull-right mt-20",mode:"apply",onClick:o.save},null,8,["onClick"])])):(0,i.createCommentVNode)("",!0)]))}var Gc=a(79380);const Hc=["data-testid","tabindex"],zc={key:0,class:"text-label","aria-hidden":"true"},qc=["data-testid"],Xc=["aria-disabled","aria-label","aria-describedby","disabled","value"],Wc={class:"text-muted color-value"};function Yc(e,t,n,r,a,o){const s=(0,i.resolveComponent)("t");return(0,i.openBlock)(),(0,i.createElementBlock)("div",{class:(0,i.normalizeClass)(["color-input",{[n.mode]:n.mode,disabled:o.isDisabled}]),"data-testid":n.componentTestid+"-color-input",tabindex:o.isDisabled?-1:0,onKeydown:t[2]||(t[2]=(0,i.withKeys)((0,i.withModifiers)(()=>{},["prevent"]),["space"])),onKeyup:t[3]||(t[3]=(0,i.withKeys)((0,i.withModifiers)(e=>o.handleKeyup(e),["stop"]),["enter","space"]))},[n.labelKey||n.label?((0,i.openBlock)(),(0,i.createElementBlock)("label",zc,[n.labelKey?((0,i.openBlock)(),(0,i.createBlock)(s,{key:0,k:n.labelKey,raw:!0},null,8,["k"])):n.label?((0,i.openBlock)(),(0,i.createElementBlock)(i.Fragment,{key:1},[(0,i.createTextVNode)((0,i.toDisplayString)(n.label),1)],64)):(0,i.createCommentVNode)("",!0)])):(0,i.createCommentVNode)("",!0),(0,i.createElementVNode)("div",{"data-testid":n.componentTestid+"-color-input_preview-container",class:"preview-container",onClick:t[1]||(t[1]=(0,i.withModifiers)(t=>e.$refs.input.click(t),["stop"]))},[(0,i.createElementVNode)("span",{style:(0,i.normalizeStyle)({"background-color":o.inputValue}),class:"color-display"},[(0,i.createElementVNode)("input",{ref:"input","aria-disabled":o.isDisabled?"true":"false","aria-label":o.ariaLabel,"aria-describedby":o.ariaDescribedBy,type:"color",disabled:o.isDisabled,tabindex:"-1",value:o.inputValue,onInput:t[0]||(t[0]=t=>e.$emit("update:value",t.target.value))},null,40,Xc)],4),(0,i.createElementVNode)("span",Wc,(0,i.toDisplayString)(o.inputValue),1)],8,qc)],42,Hc)}var Qc=a(14220),Jc={emits:["update:value"],inheritAttrs:!1,props:{value:{type:String,default:""},defaultValue:{type:String,default:""},label:{type:String,default:null},labelKey:{type:String,default:null},mode:{type:String,validator(e){return[Qc.G5,Qc.nW].includes(e)},default:Qc.G5},componentTestid:{type:String,default:"color-input"},disabled:{type:Boolean,default:!1}},data(){return{viewMode:Qc.nW,editMode:Qc.G5}},computed:{inputValue(){return this.value?this.value:this.defaultValue},isDisabled(){const e=this.disabled;return this.mode!==this.editMode||e},ariaLabel(){return this.$attrs["aria-label"]?this.$attrs["aria-label"]:this.labelKey?this.t(this.labelKey):this.label?this.label:this.t("generic.colorPicker")},ariaDescribedBy(){return this.$attrs["aria-describedby"]||void 0}},mounted(){this.$emit("update:value",this.inputValue)},methods:{handleKeyup(e){return this.isDisabled?"":this.$refs.input.click(e)}}};a(2788);const Zc=(0,u.A)(Jc,[["render",Yc],["__scopeId","data-v-66bade12"]]);var eu=Zc,tu=a(89559),nu=a(42200),ru=a(20491),iu=a(9980),au=a(34765);let ou=!1;function su(e){const t=e.getters["management/byId"](F.Mc.SETTING,$.HG.FAVICON),n=e.getters["management/brand"],r=cu(document.head.getElementsByTagName("link"));if(r){let e;"suse"===n?e=(0,U.mS)("~shell/assets/brand/suse/favicon.png"):"csp"===n?e=(0,U.mS)("~shell/assets/brand/csp/favicon.png"):"harvester"===n&&(e=(0,U.mS)("~shell/assets/brand/harvester/favicon.png")),r.href=t?.value||e||uu,ou=!0}}function lu(){const e=cu(document.head.getElementsByTagName("link"));return e?e.href:""}function cu(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.rel?.includes("icon"))return n}}const uu=lu(),du=a(70465);var hu={components:{LabeledInput:Gc.o,Checkbox:nu.S,FileSelector:ru.A,Loading:Oe.A,SimpleBox:ie.A,AsyncButton:jl.A,Banner:iu.l,ColorInput:eu,TypeDescription:tu.A},async fetch(){const e=await(0,se.kR)({uiPLSetting:this.$store.dispatch("management/find",{type:F.Mc.SETTING,id:$.HG.PL}),uiLogoDarkSetting:(0,au.eB)(this.$store,$.HG.LOGO_DARK,""),uiLogoLightSetting:(0,au.eB)(this.$store,$.HG.LOGO_LIGHT,""),uiColorSetting:(0,au.eB)(this.$store,$.HG.PRIMARY_COLOR,""),uiLinkColorSetting:(0,au.eB)(this.$store,$.HG.LINK_COLOR,""),uiFaviconSetting:(0,au.eB)(this.$store,$.HG.FAVICON,"")});if(Object.assign(this,e),e.uiLogoDarkSetting.value)try{this.uiLogoDark=e.uiLogoDarkSetting.value,this.customizeLogo=!0}catch{}if(e.uiLogoLightSetting.value)try{this.uiLogoLight=e.uiLogoLightSetting.value,this.customizeLogo=!0}catch{}if(e.uiFaviconSetting.value)try{this.uiFavicon=e.uiFaviconSetting.value,this.customizeFavicon=!0}catch{}e.uiColorSetting.value&&(this.uiColor=du(e.uiColorSetting.value).hex(),this.customizeColor=!0),e.uiLinkColorSetting.value&&(this.uiLinkColor=du(e.uiLinkColorSetting.value).hex(),this.customizeLinkColor=!0)},data(){return{vendor:(0,oe.f7)(),uiPLSetting:{},uiLogoDarkSetting:{},uiLogoDark:"",uiLogoLightSetting:{},uiLogoLight:"",customizeLogo:!1,uiFaviconSetting:{},uiFavicon:"",customizeFavicon:!1,uiColorSetting:{},uiColor:null,customizeColor:!1,uiLinkColorSetting:{},uiLinkColor:null,customizeLinkColor:!1,errors:[]}},computed:{mode(){const e=this.$store.getters["management/schemaFor"](F.Mc.SETTING);return e?.resourceMethods?.includes("PUT")?Qc.G5:Qc.nW},customLinkColor(){return{color:this.uiLinkColor}}},mounted(){let e=getComputedStyle(document.body).getPropertyValue("--primary"),t=getComputedStyle(document.body).getPropertyValue("--link");const n=document.querySelector(".suse");n&&(e=getComputedStyle(n).getPropertyValue("--primary"),t=getComputedStyle(n).getPropertyValue("--link")),this.uiColor=this.uiColor||e.trim(),this.uiLinkColor=this.uiLinkColor||t.trim()},methods:{updateLogo(e,t){this[t]=e},setError(e){this.errors=[],this.errors.push(e)},async save(e){this.uiPLSetting.value=this.uiPLSetting.value.replaceAll(/[\<>&=#()"]/gm,""),this.customizeLogo?(this.uiLogoLightSetting.value=this.uiLogoLight,this.uiLogoDarkSetting.value=this.uiLogoDark):(this.uiLogoLightSetting.value="",this.uiLogoDarkSetting.value=""),this.customizeFavicon?this.uiFaviconSetting.value=this.uiFavicon:this.uiFaviconSetting.value="",this.customizeColor?this.uiColorSetting.value=du(this.uiColor).rgb().string():this.uiColorSetting.value=null,this.customizeLinkColor?this.uiLinkColorSetting.value=du(this.uiLinkColor).rgb().string():this.uiLinkColorSetting.value=null,this.errors=[];try{await Promise.all([this.uiPLSetting.save(),this.uiLogoDarkSetting.save(),this.uiLogoLightSetting.save(),this.uiColorSetting.save(),this.uiLinkColorSetting.save(),this.uiFaviconSetting.save()]),this.uiPLSetting.value!==this.vendor&&(0,oe.xc)(this.uiPLSetting.value),su(this.$store),e(!0)}catch(Uo){this.errors.push(Uo),e(!1)}}}};a(75280);const pu=(0,u.A)(hu,[["render",Kc],["__scopeId","data-v-45ae37da"]]);var fu=pu;function mu(e,t,n,r,a,o){const s=(0,i.resolveComponent)("ResourceDetail");return(0,i.openBlock)(),(0,i.createBlock)(s)}var gu=a(56825),vu={name:"HarvesterResourceCreate",components:{ResourceDetail:gu.A}};const bu=(0,u.A)(vu,[["render",mu]]);var yu=bu;function _u(e,t,n,r,a,o){const s=(0,i.resolveComponent)("ResourceDetail");return(0,i.openBlock)(),(0,i.createBlock)(s)}var wu={name:"HarvesterResourcedId",components:{ResourceDetail:gu.A}};const Eu=(0,u.A)(wu,[["render",_u]]);var Su=Eu;function ku(e,t,n,r,a,o){const s=(0,i.resolveComponent)("ResourceDetail");return(0,i.openBlock)(),(0,i.createBlock)(s)}var xu={name:"HarvesterResourcedNamespaceId",components:{ResourceDetail:gu.A}};const Au=(0,u.A)(xu,[["render",ku]]);var Cu=Au;const Tu={key:0,id:"air-gap"},Nu={class:"mb-20"},Ru={key:3,class:"mt-10 mb-10"},Ou={key:1,class:"mb-20"},Iu={key:4},Lu={key:1,class:"chooseFile"},Du=["disabled"],Pu={key:6,class:"mt-20"};function Mu(e,t,n,r,a,o){const s=(0,i.resolveComponent)("RadioGroup"),l=(0,i.resolveComponent)("UpgradeInfo"),c=(0,i.resolveComponent)("Banner"),u=(0,i.resolveComponent)("Checkbox"),d=(0,i.resolveComponent)("LabeledInput"),h=(0,i.resolveComponent)("ImagePercentageBar"),p=(0,i.resolveComponent)("LabeledSelect"),f=(0,i.resolveComponent)("CruResource");return a.value?((0,i.openBlock)(),(0,i.createElementBlock)("div",Tu,[(0,i.createElementVNode)("h3",Nu,(0,i.toDisplayString)(e.t("harvester.upgradePage.osUpgrade")),1),(0,i.createVNode)(f,{"done-route":o.doneRoute,resource:a.value,mode:"create",errors:a.errors,"can-yaml":!1,"finish-button-mode":"upgrade","validation-passed":o.enableUpgrade,"cancel-event":!0,onFinish:o.save,onCancel:o.done,onError:t[11]||(t[11]=e=>a.errors=e)},{default:(0,i.withCtx)(()=>[(0,i.createVNode)(s,{value:a.imageSource,"onUpdate:value":t[0]||(t[0]=e=>a.imageSource=e),class:"image-group",name:"image",options:[a.IMAGE_METHOD.NEW,a.IMAGE_METHOD.EXIST,a.IMAGE_METHOD.DELETE],labels:[e.t("harvester.upgradePage.uploadNew"),e.t("harvester.upgradePage.selectExisting"),e.t("harvester.upgradePage.deleteExisting")]},null,8,["value","options","labels"]),o.createNewImage||o.selectExistImage?((0,i.openBlock)(),(0,i.createBlock)(l,{key:0})):(0,i.createCommentVNode)("",!0),o.showUploadSuccessBanner?((0,i.openBlock)(),(0,i.createBlock)(c,{key:1,color:"success",class:"mt-0 mb-30",label:e.t("harvester.setting.upgrade.uploadSuccess",{name:o.fileName})},null,8,["label"])):(0,i.createCommentVNode)("",!0),o.showUploadingWarningBanner?((0,i.openBlock)(),(0,i.createBlock)(c,{key:2,color:"warning",class:"mt-0 mb-30",label:e.t("harvester.image.warning.osUpgrade.uploading",{name:o.fileName})},null,8,["label"])):(0,i.createCommentVNode)("",!0),o.showUpgradeOptions?((0,i.openBlock)(),(0,i.createElementBlock)("div",Ru,[o.canEnableLogging?((0,i.openBlock)(),(0,i.createBlock)(u,{key:0,value:a.enableLogging,"onUpdate:value":t[1]||(t[1]=e=>a.enableLogging=e),class:"check mb-20",type:"checkbox",label:e.t("harvester.upgradePage.enableLogging")},null,8,["value","label"])):(0,i.createCommentVNode)("",!0),o.skipSingleReplicaDetachedVolFeatureEnabled?((0,i.openBlock)(),(0,i.createElementBlock)("div",Ou,[(0,i.createVNode)(u,{value:a.skipSingleReplicaDetachedVol,"onUpdate:value":t[2]||(t[2]=e=>a.skipSingleReplicaDetachedVol=e),class:"check",type:"checkbox",label:e.t("harvester.upgradePage.skipSingleReplicaDetachedVol")},null,8,["value","label"])])):(0,i.createCommentVNode)("",!0)])):(0,i.createCommentVNode)("",!0),o.createNewImage?((0,i.openBlock)(),(0,i.createElementBlock)("div",Iu,[(0,i.createVNode)(d,{value:a.imageValue.spec.displayName,"onUpdate:value":t[3]||(t[3]=e=>a.imageValue.spec.displayName=e),valueModifiers:{trim:!0},class:"mb-20","label-key":"harvester.fields.name",required:""},null,8,["value"]),(0,i.createVNode)(d,{value:a.imageValue.spec.checksum,"onUpdate:value":t[4]||(t[4]=e=>a.imageValue.spec.checksum=e),class:"mb-10","label-key":"harvester.setting.upgrade.checksum"},null,8,["value"]),(0,i.createVNode)(s,{value:a.sourceType,"onUpdate:value":t[5]||(t[5]=e=>a.sourceType=e),class:"mb-20 image-group",name:"sourceType",options:["upload","download"],labels:[e.t("harvester.image.sourceType.upload"),e.t("harvester.image.sourceType.download")]},null,8,["value","labels"]),"download"===a.sourceType?((0,i.openBlock)(),(0,i.createBlock)(d,{key:0,value:a.imageValue.spec.url,"onUpdate:value":t[6]||(t[6]=e=>a.imageValue.spec.url=e),valueModifiers:{trim:!0},class:"labeled-input--tooltip",required:"","label-key":"harvester.image.url"},null,8,["value"])):((0,i.openBlock)(),(0,i.createElementBlock)("div",Lu,[(0,i.createElementVNode)("button",{type:"button",class:"btn role-primary",disabled:o.disableUploadButton,onClick:t[8]||(t[8]=(...e)=>o.selectFile&&o.selectFile(...e))},[(0,i.createTextVNode)((0,i.toDisplayString)(e.t("harvester.image.uploadFile"))+" ",1),(0,i.withDirectives)((0,i.createElementVNode)("input",{id:"file",ref:"file",type:"file",accept:".iso",onChange:t[7]||(t[7]=e=>o.handleFileUpload())},null,544),[[i.vShow,!1]])],8,Du),(0,i.createElementVNode)("span",{class:(0,i.normalizeClass)([{"text-muted":!o.fileName},"ml-20"])},(0,i.toDisplayString)(o.fileName?o.fileName:e.t("harvester.generic.noFileChosen")),3)])),o.showProgressBar?((0,i.openBlock)(),(0,i.createBlock)(h,{key:2,class:"mt-20",value:o.uploadProgress},null,8,["value"])):(0,i.createCommentVNode)("",!0)])):(0,i.createCommentVNode)("",!0),o.selectExistImage?((0,i.openBlock)(),(0,i.createBlock)(p,{key:5,value:a.imageId,"onUpdate:value":t[9]||(t[9]=e=>a.imageId=e),options:o.osImageOptions,required:"",class:"mb-20","label-key":"harvester.fields.image"},null,8,["value","options"])):(0,i.createCommentVNode)("",!0),o.deleteExistImage?((0,i.openBlock)(),(0,i.createElementBlock)("div",Pu,[(0,i.createVNode)(c,{color:"info",class:"mt-10 mb-30",label:e.t("harvester.upgradePage.deleteHeader")},null,8,["label"]),(0,i.createVNode)(p,{value:a.deleteImageId,"onUpdate:value":[t[10]||(t[10]=e=>a.deleteImageId=e),o.handleImageDelete],options:o.deleteOSImageOptions,required:"",class:"mb-20","label-key":"harvester.fields.image"},null,8,["value","options","onUpdate:value"])])):(0,i.createCommentVNode)("",!0)]),_:1},8,["done-route","resource","errors","validation-passed","onFinish","onCancel"])])):(0,i.createCommentVNode)("",!0)}var Bu=a(71192),Fu=a(10196),$u=a(32748),Uu=a(99726),ju=a(2602),Vu=a(17252);const Ku={key:0,class:"parent"},Gu={class:"progress-box"},Hu={class:"text"},zu={key:1};function qu(e,t,n,r,a,o){const s=(0,i.resolveComponent)("ProgressBarMulti");return o.completed?((0,i.openBlock)(),(0,i.createElementBlock)("div",zu,(0,i.toDisplayString)(e.t("generic.completed")),1)):((0,i.openBlock)(),(0,i.createElementBlock)("div",Ku,[(0,i.createElementVNode)("div",Gu,[(0,i.createVNode)(s,{values:o.percentage,min:0,max:100},null,8,["values"])]),(0,i.createElementVNode)("div",Hu,(0,i.toDisplayString)(n.value||0)+"% ",1)]))}var Xu=a(74315),Wu={components:{ProgressBarMulti:Xu.A},props:{value:{type:[String,Number],default:0},row:{type:Object,default:()=>{}},col:{type:Object,default:()=>{}}},computed:{percentage(){const e=Number.parseFloat(this.value);let t="bg-success";return 0===e?t="bg-secondary":e<30?t="bg-darker":e<70&&(t="bg-warning"),[{value:e,color:t}]},completed(){return 100===Number.parseFloat(this.value)}}};a(63607);const Yu=(0,u.A)(Wu,[["render",qu],["__scopeId","data-v-5ad5aa7a"]]);var Qu=Yu,Ju=a(3514),Zu=a.n(Ju),ed=a(4364);const td={NEW:"new",EXIST:"exist",DELETE:"delete"},nd="download",rd="upload";var id={name:"HarvesterAirgapUpgrade",components:{Checkbox:nu.S,CruResource:Bu.A,LabeledSelect:$u.A,LabeledInput:Gc.o,RadioGroup:Fu.z,UpgradeInfo:Vu.A,ImagePercentageBar:Qu,Banner:iu.l},inheritAttrs:!1,async fetch(){await this.$store.dispatch("harvester/findAll",{type:l.rk.IMAGE});const e=await this.$store.dispatch("harvester/create",{type:l.rk.UPGRADE,metadata:{generateName:"hvst-upgrade-",namespace:"harvester-system"},spec:{image:""}});await this.initImageValue(),this.value=e},beforeUnmount(){this.uploadController&&this.uploadController.abort()},data(){return{value:null,file:{},uploadImageId:"",imageId:"",deleteImageId:"",imageSource:td.NEW,sourceType:rd,uploadController:null,uploadResult:null,imageValue:null,enableLogging:!0,IMAGE_METHOD:td,skipSingleReplicaDetachedVol:!1,errors:[]}},computed:{doneRoute(){return`${r.KR}-c-cluster-resource`},skipSingleReplicaDetachedVolFeatureEnabled(){return this.$store.getters["harvester-common/getFeatureEnabled"]("skipSingleReplicaDetachedVol")},allOSImages(){return this.$store.getters["harvester/all"](l.rk.IMAGE).filter(e=>e.isOSImage)||[]},deleteOSImageOptions(){return this.allOSImages.map(e=>({label:e.spec.displayName,value:e.id}))},osImageOptions(){return this.allOSImages.map(e=>({label:e.spec.displayName,value:e.id,disabled:!e.isReady}))},createNewImage(){return this.imageSource===td.NEW},selectExistImage(){return this.imageSource===td.EXIST},deleteExistImage(){return this.imageSource===td.DELETE},fileName(){return this.preprocessImageName(this.file?.name||"")},canEnableLogging(){return this.$store.getters["harvester/schemaFor"](l.rk.UPGRADE_LOG)},uploadProgress(){const e=this.$store.getters["harvester/byId"](l.rk.IMAGE,this.imageValue.id);return e?.status?.progress},enableUpgrade(){return!this.deleteExistImage&&(this.sourceType===nd||(this.sourceType!==rd||(""===this.fileName||100===this.uploadProgress)))},isUploading(){return""!==this.fileName&&100!==this.uploadProgress},showProgressBar(){return this.createNewImage&&this.sourceType===rd&&this.isUploading},showUploadSuccessBanner(){return this.createNewImage&&""!==this.fileName&&Zu()(this.errors)&&!this.showUploadingWarningBanner&&200===this.uploadResult?._status},showUploadingWarningBanner(){return this.createNewImage&&this.isUploading},showUpgradeOptions(){return this.createNewImage||this.selectExistImage},disableUploadButton(){return this.sourceType===rd&&this.isUploading}},methods:{done(){this.uploadController&&this.uploadController.abort(),this.$router.push({name:this.doneRoute,params:{resource:l.rk.SETTING,product:"harvester"}})},async initImageValue(){this.imageValue=await this.$store.dispatch("harvester/create",{type:l.rk.IMAGE,metadata:{name:"",namespace:"harvester-system",generateName:"image-",annotations:{}},spec:{backend:"cdi",sourceType:rd,displayName:"",checksum:this.imageValue?.spec?.checksum||""}})},async save(e){let t=null;this.file={},this.errors=[];const n=this.imageValue?.spec?.displayName||"";if(!n&&this.createNewImage)return this.errors.push(this.$store.getters["i18n/t"]("validation.required",{key:this.t("generic.name")})),void e(!1);try{if(this.imageSource===td.NEW){if(this.imageValue.metadata.annotations[ju.r.OS_UPGRADE_IMAGE]="True",this.sourceType===rd&&""!==this.uploadImageId)this.value.spec.image=this.uploadImageId;else if(this.sourceType===nd){if(!this.imageValue.spec.url)return this.errors.push(this.$store.getters["i18n/t"]("harvester.setting.upgrade.imageUrl")),void e(!1);this.imageValue.spec.sourceType=nd,this.imageValue.spec.targetStorageClassName="longhorn-static",t=await this.imageValue.save(),this.value.spec.image=t.id}}else if(this.imageSource===td.EXIST){if(!this.imageId)return this.errors.push(this.$store.getters["i18n/t"]("harvester.setting.upgrade.chooseFile")),void e(!1);this.value.spec.image=this.imageId}this.canEnableLogging&&(this.value.spec.logEnabled=this.enableLogging),this.skipSingleReplicaDetachedVolFeatureEnabled&&(this.value.metadata.annotations={[ju.r.SKIP_SINGLE_REPLICA_DETACHED_VOL]:JSON.stringify(this.skipSingleReplicaDetachedVol)}),await this.value.save(),this.done(),e(!0)}catch($s){this.errors=[$s?.message]||0,e(!1)}},async uploadFile(e){const t=this.preprocessImageName(e.name);if(!t)return void this.errors.push(this.$store.getters["i18n/t"]("harvester.setting.upgrade.unknownImageName"));const n=this.allOSImages.some(e=>e.spec.displayName===t);if(n)return this.errors.push(this.$store.getters["i18n/t"]("harvester.upgradePage.upload.duplicatedFile")),void(this.file={});this.errors=[],this.imageValue.spec.sourceType=rd,this.imageValue.spec.displayName=t,this.imageValue.metadata.annotations[ju.r.OS_UPGRADE_IMAGE]="True",this.imageValue.metadata.annotations[ju.r.IMAGE_NAME]=t,this.imageValue.spec.url="";try{this.imageValue.spec.targetStorageClassName="longhorn-static";const t=await this.imageValue.save();this.uploadImageId=t.id,this.uploadController=new AbortController;const n=this.uploadController.signal;this.uploadResult=await t.uploadImage(e,{signal:n})}catch($s){"ERR_NETWORK"===$s?.code?this.errors.push(this.$store.getters["i18n/t"]("harvester.setting.upgrade.networkError")):"ERR_CANCELED"===$s?.code?this.errors.push(this.$store.getters["i18n/t"]("harvester.setting.upgrade.cancelUpload")):this.errors=(0,Uu.rz)($s),this.file={},this.uploadImageId=""}},preprocessImageName(e){return e?e.toLowerCase().replace(/[_]/g,"-"):""},handleImageDelete(e){const t=this.allOSImages.find(t=>t.id===e),n=t?.spec?.displayName||"";t&&n&&(this.$store.dispatch("harvester/promptModal",{resources:[t],component:"ConfirmRelatedToRemoveDialog",needConfirmation:!1,warningMessage:this.$store.getters["i18n/t"]("harvester.modal.osImage.message",{name:n})}),this.deleteImageId="")},async handleFileUpload(){this.uploadImageId="",this.errors=[],this.file=this.$refs.file?.files[0],this.file&&(await this.initImageValue(),await this.uploadFile(this.file))},selectFile(){this.$refs.file.value=null,this.$refs.file.click()}},watch:{async sourceType(e){if(e===nd&&this.imageValue&&this.uploadController){this.uploadController&&this.uploadController.abort();try{await this.imageValue.remove(),await this.initImageValue()}catch(Uu){ed.error("Error occurred while removing imageValue:",Uu)}}},imageSource(e){e!==td.DELETE&&(this.deleteImageId="")},"imageValue.spec.url":{handler(e){const t=e?.split("/")?.pop(),n=t?.split(".")||[],r=n?.pop()?.toLowerCase();n.length>1&&"iso"===r&&t!==this.imageValue.spec.displayName&&(this.imageValue.spec.displayName=t)},deep:!0},file(e){e.name&&e.name!==this.imageValue.spec.displayName&&(this.imageValue.spec.displayName=e.name)}}};a(8987);const ad=(0,u.A)(id,[["render",Mu],["__scopeId","data-v-642e2b87"]]);var od=ad;function sd(e,t,n,r,a,o){const s=(0,i.resolveComponent)("Members");return(0,i.openBlock)(),(0,i.createBlock)(s,(0,i.mergeProps)({"create-location-override":o.createLocationOverride},e.$attrs),null,16,["create-location-override"])}const ld={class:"project-members"},cd={key:0,class:"row mb-10 cluster-add"};function ud(e,t,n,r,a,o){const s=(0,i.resolveComponent)("Masthead"),l=(0,i.resolveComponent)("Banner"),c=(0,i.resolveComponent)("router-link"),u=(0,i.resolveComponent)("ResourceTable"),d=(0,i.resolveComponent)("Tab"),h=(0,i.resolveComponent)("Tabbed");return(0,i.openBlock)(),(0,i.createElementBlock)("div",ld,[(0,i.createVNode)(s,{schema:a.schema,resource:a.resource,"favorite-resource":a.VIRTUAL_TYPES.CLUSTER_MEMBERS,"create-location":a.createLocation,"create-button-label":e.t("members.createActionLabel"),"is-creatable":!1,"type-display":e.t("members.clusterAndProject")},null,8,["schema","resource","favorite-resource","create-location","create-button-label","type-display"]),o.isLocal?((0,i.openBlock)(),(0,i.createBlock)(l,{key:0,color:"error",label:e.t("members.localClusterWarning")},null,8,["label"])):(0,i.createCommentVNode)("",!0),(0,i.createVNode)(h,null,{default:(0,i.withCtx)(()=>[(0,i.createVNode)(d,{name:"cluster-membership",label:e.t("members.clusterMembership")},{default:(0,i.withCtx)(()=>[o.canEditClusterMembers?((0,i.openBlock)(),(0,i.createElementBlock)("div",cd,[(0,i.createVNode)(c,{to:a.createLocation,class:"btn role-primary pull-right"},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.t("members.createActionLabel")),1)]),_:1},8,["to"])])):(0,i.createCommentVNode)("",!0),(0,i.createVNode)(u,{schema:a.schema,headers:a.headers,rows:o.filteredClusterRoleTemplateBindings,groupable:!0,"show-grouping":!0,namespaced:!1,loading:e.$fetchState.pending||!e.currentCluster||a.loadingClusterBindings,"sub-search":"subSearch","sub-fields":["nameDisplay"]},null,8,["schema","headers","rows","loading"])]),_:1},8,["label"])]),_:1})])}var dd=a(76996),hd=a(95650),pd=a(68774),fd=a(27234),md=a(2675),gd={name:"Members",components:{Banner:Ul.A,Masthead:hd.A,ResourceTable:dd.A,Tabbed:fd.A,Tab:md.A},props:{createLocationOverride:{type:Object,default:()=>({name:"c-cluster-product-resource-create",params:{resource:F.Mc.CLUSTER_ROLE_TEMPLATE_BINDING}})}},async fetch(){const e=this.$store.getters["rancher/schemaFor"](F.k$.CLUSTER_ROLE_TEMPLATE_BINDING),t=this.$store.getters["rancher/schemaFor"](F.k$.PROJECT_ROLE_TEMPLATE_BINDING);this["normanClusterRTBSchema"]=e,this["normanProjectRTBSchema"]=t,e&&Promise.all([this.$store.dispatch("rancher/findAll",{type:F.k$.CLUSTER_ROLE_TEMPLATE_BINDING},{root:!0}),this.$store.dispatch("management/findAll",{type:F.Mc.CLUSTER_ROLE_TEMPLATE_BINDING})]).then(([e])=>{this["normanClusterRoleTemplateBindings"]=e,this.loadingClusterBindings=!1}),t&&this.$store.dispatch("rancher/findAll",{type:F.k$.PROJECT_ROLE_TEMPLATE_BINDING},{root:!0}).then(e=>{this["projectRoleTemplateBindings"]=e,this.loadingProjectBindings=!1});const n={normanPrincipals:this.$store.dispatch("rancher/findAll",{type:F.k$.PRINCIPAL}),mgmt:this.$store.dispatch("management/findAll",{type:F.Mc.USER}),mgmtRoleTemplates:this.$store.dispatch("management/findAll",{type:F.Mc.ROLE_TEMPLATE})};await(0,se.kR)(n)},data(){return{schema:this.$store.getters["management/schemaFor"](F.Mc.CLUSTER_ROLE_TEMPLATE_BINDING),headers:[pd.c4,pd.nv,pd.z7,pd.K],createLocation:{...this.createLocationOverride,params:{...this.createLocationOverride.params,cluster:this.$store.getters["currentCluster"].id}},resource:F.Mc.CLUSTER_ROLE_TEMPLATE_BINDING,normanClusterRTBSchema:null,normanProjectRTBSchema:null,normanClusterRoleTemplateBindings:[],projectRoleTemplateBindings:[],VIRTUAL_TYPES:F.cG,projectRoleTemplateColumns:[pd.c4,{name:"member",labeKey:"generic.name",value:"principalId",formatter:"Principal"},{name:"role",labelKey:"tableHeaders.role",value:"roleTemplate.nameDisplay"}],loadingProjectBindings:!0,loadingClusterBindings:!0}},computed:{...(0,R.L8)(["currentCluster"]),clusterRoleTemplateBindings(){return this.normanClusterRoleTemplateBindings.map(e=>e.clusterroletemplatebinding)},filteredClusterRoleTemplateBindings(){return this.clusterRoleTemplateBindings.filter(e=>e?.clusterName===this.$store.getters["currentCluster"].id)},isLocal(){return this.$store.getters["currentCluster"].isLocal},canEditClusterMembers(){return this.normanClusterRTBSchema?.collectionMethods.find(e=>"post"===e.toLowerCase())}}};a(32464);const vd=(0,u.A)(gd,[["render",ud],["__scopeId","data-v-fa2c9f40"]]);var bd=vd,yd={components:{Members:bd},inheritAttrs:!1,computed:{createLocationOverride(){return{name:`${r.KR}-c-cluster-resource-create`,params:{product:r.KR,cluster:this.$store.getters["currentCluster"]?.id,resource:F.Mc.CLUSTER_ROLE_TEMPLATE_BINDING}}}}};const _d=(0,u.A)(yd,[["render",sd]]);var wd=_d;function Ed(e,t,n,r,a,o){const s=(0,i.resolveComponent)("ExplorerProjectsNamespaces");return(0,i.openBlock)(),(0,i.createBlock)(s,(0,i.mergeProps)(e.$attrs,{"create-project-location-override":a.createProjectLocation,"create-namespace-location-override":a.createNamespaceLocation}),null,16,["create-project-location-override","create-namespace-location-override"])}const Sd={class:"project-namespaces outlet"},kd={class:"group-tab"},xd={class:"project-name"},Ad={key:0,class:"description text-muted text-small"},Cd={class:"right mr-10"},Td={key:1,class:"invisible"},Nd={key:0},Rd={key:1,class:"text-muted"},Od={class:"namespace-name"},Id={key:1},Ld={key:2,class:"icon icon-istio ml-5"},Dd={key:3,class:"icon icon-lock ml-5"},Pd={class:"main-row"},Md=["colspan"],Bd={class:"main-row"},Fd=["colspan"];function $d(e,t,n,r,a,o){const s=(0,i.resolveComponent)("router-link"),l=(0,i.resolveComponent)("Masthead"),c=(0,i.resolveComponent)("ExtensionPanel"),u=(0,i.resolveComponent)("ActionMenu"),d=(0,i.resolveComponent)("ButtonMultiAction"),h=(0,i.resolveComponent)("ResourceTable"),p=(0,i.resolveDirective)("clean-html"),f=(0,i.resolveDirective)("trim-whitespace"),m=(0,i.resolveDirective)("clean-tooltip");return(0,i.openBlock)(),(0,i.createElementBlock)("div",Sd,[(0,i.createVNode)(l,{schema:a.projectSchema,"type-display":e.t("projectNamespaces.label"),resource:a.MANAGEMENT.PROJECT,"favorite-resource":a.VIRTUAL_TYPES.PROJECT_NAMESPACES,"create-location":o.createProjectLocation,"create-button-label":e.t("projectNamespaces.createProject"),"show-incremental-loading-indicator":o.showIncrementalLoadingIndicator,"load-resources":a.loadResources,"load-indeterminate":a.loadIndeterminate},(0,i.createSlots)({_:2},[o.showCreateNsButton?{name:"extraActions",fn:(0,i.withCtx)(()=>[(0,i.createVNode)(s,{to:o.createNamespaceLocationFlatList(),class:"btn role-primary mr-10","data-testid":"create_project_namespaces"},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.t("projectNamespaces.createNamespace")),1)]),_:1},8,["to"])]),key:"0"}:void 0]),1032,["schema","type-display","resource","favorite-resource","create-location","create-button-label","show-incremental-loading-indicator","load-resources","load-indeterminate"]),(0,i.createVNode)(c,{resource:{},type:a.extensionType,location:a.extensionLocation},null,8,["type","location"]),(0,i.createVNode)(h,(0,i.mergeProps)({ref:"table"},{...e.$attrs,class:null},{class:"table project-namespaces-table",schema:a.schema,headers:o.headers,rows:o.filteredRows,"group-by":o.projectGroupBy,groupable:!0,"sort-generation-fn":o.sortGenerationFn,loading:o.loading,"group-tooltip":"resourceTable.groupBy.project","key-field":"_key"}),(0,i.createSlots)({"group-by":(0,i.withCtx)(t=>[(0,i.createElementVNode)("div",{class:(0,i.normalizeClass)(["project-bar",{"has-description":o.projectDescription(t.group)}])},[(0,i.withDirectives)(((0,i.openBlock)(),(0,i.createElementBlock)("div",kd,[(0,i.withDirectives)((0,i.createElementVNode)("div",xd,null,512),[[p,o.projectLabel(t.group)]]),o.projectDescription(t.group)?((0,i.openBlock)(),(0,i.createElementBlock)("div",Ad,(0,i.toDisplayString)(o.projectDescription(t.group)),1)):(0,i.createCommentVNode)("",!0)])),[[f]]),(0,i.createElementVNode)("div",Cd,[o.isNamespaceCreatable&&(o.canSeeProjectlessNamespaces||t.group.key!==o.notInProjectKey)?((0,i.openBlock)(),(0,i.createBlock)(s,{key:0,class:"create-namespace btn btn-sm role-secondary mr-5",to:o.createNamespaceLocation(t.group)},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.t("projectNamespaces.createNamespace")),1)]),_:1},8,["to"])):(0,i.createCommentVNode)("",!0),r.featureDropdownMenu?((0,i.openBlock)(),(0,i.createElementBlock)(i.Fragment,{key:1},[o.showProjectActionButton(t.group)?((0,i.openBlock)(),(0,i.createBlock)(u,{key:0,resource:o.getProjectActions(t.group),"data-testid":"action-button","button-aria-label":e.t("projectNamespaces.tableActionsLabel",{resource:o.projectResource(t.group)})},null,8,["resource","button-aria-label"])):((0,i.openBlock)(),(0,i.createElementBlock)("div",Td))],64)):((0,i.openBlock)(),(0,i.createBlock)(d,{key:2,class:"project-action",borderless:!0,"aria-label":e.t("projectNamespaces.tableActionsLabel",{resource:o.projectResource(t.group)}),invisible:!o.showProjectActionButton(t.group),onClick:e=>o.showProjectAction(e,t.group)},null,8,["aria-label","invisible","onClick"]))])],2)]),"cell:project":(0,i.withCtx)(({row:e})=>[e.project?((0,i.openBlock)(),(0,i.createElementBlock)("span",Nd,(0,i.toDisplayString)(e.project.nameDisplay),1)):((0,i.openBlock)(),(0,i.createElementBlock)("span",Rd,"–"))]),"cell:name":(0,i.withCtx)(({row:t})=>[(0,i.createElementVNode)("div",Od,[t.detailLocation&&!t.hideDetailLocation?((0,i.openBlock)(),(0,i.createBlock)(s,{key:0,to:t.detailLocation},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(t.name),1)]),_:2},1032,["to"])):((0,i.openBlock)(),(0,i.createElementBlock)("span",Id,(0,i.toDisplayString)(t.name),1)),t.injectionEnabled?(0,i.withDirectives)(((0,i.openBlock)(),(0,i.createElementBlock)("i",Ld,null,512)),[[m,e.t("projectNamespaces.isIstioInjectionEnabled")]]):(0,i.createCommentVNode)("",!0),t.hasSystemLabels?(0,i.withDirectives)(((0,i.openBlock)(),(0,i.createElementBlock)("i",Dd,null,512)),[[m,o.getPsaTooltip(t)]]):(0,i.createCommentVNode)("",!0)])]),"main-row:fake-empty":(0,i.withCtx)(({fullColspan:t})=>[(0,i.createElementVNode)("tr",Bd,[(0,i.createElementVNode)("td",{class:"empty text-center",colspan:t},(0,i.toDisplayString)(e.t("projectNamespaces.noProjectNoNamespaces")),9,Fd)])]),_:2},[(0,i.renderList)(o.projectsWithoutNamespaces,(t,n)=>({name:o.slotName(t),fn:(0,i.withCtx)(({fullColspan:t})=>[(0,i.createElementVNode)("tr",Pd,[(0,i.createElementVNode)("td",{class:"empty text-center",colspan:t},(0,i.toDisplayString)(e.t("projectNamespaces.noNamespaces")),9,Md)])])}))]),1040,["schema","headers","rows","group-by","sort-generation-fn","loading"])])}var Ud=a(68851),jd=a(31915),Vd=a(10312),Kd=a(56601),Gd=a(18110),Hd=a(23667),zd=a(11518),qd=a(10257),Xd=a(76204),Wd=a(75886),Yd={name:"ListProjectNamespace",components:{ExtensionPanel:Vd.A,Masthead:hd.A,ResourceTable:dd.A,ButtonMultiAction:Kd.A,ActionMenu:Xd.A},mixins:[Hd.A],props:{createProjectLocationOverride:{type:Object,default:()=>null},createNamespaceLocationOverride:{type:Object,default:()=>null}},async fetch(){const e=this.$store.getters["currentStore"](F.CU);this.harvesterResourceQuotaSchema=this.$store.getters[`${e}/schemaFor`](F.rk.RESOURCE_QUOTA),this.schema=this.$store.getters[`${e}/schemaFor`](F.CU),this.projectSchema=this.$store.getters["management/schemaFor"](F.Mc.PROJECT),this.schema&&(await this.$fetchType(F.CU),this.projects=await this.$store.dispatch("management/findAll",{type:F.Mc.PROJECT,opt:{force:!0}}))},setup(){const e=(0,R.Pj)(),{featureDropdownMenu:t}=(0,Wd.K)(e);return{featureDropdownMenu:t}},data(){return{loadResources:[F.CU],loadIndeterminate:!0,harvesterResourceQuotaSchema:null,schema:null,projects:[],projectSchema:null,extensionType:jd.c7.PANEL,extensionLocation:jd.W7.RESOURCE_LIST,MANAGEMENT:F.Mc,VIRTUAL_TYPES:F.cG,defaultCreateProjectLocation:{name:"c-cluster-product-resource-create",params:{product:this.$store.getters["currentProduct"].name,resource:F.Mc.PROJECT}}}},watch:{actionCb:{handler(e){e?.moveNamespaceCb&&(this.clearSelection(),this.$store.dispatch("action-menu/clearCallbackData"))},immediate:!0}},computed:{...(0,R.L8)(["currentCluster","currentProduct"]),...(0,R.L8)({actionCb:"action-menu/performCallbackData"}),namespaces(){const e=this.$store.getters["currentStore"](F.CU);return this.$store.getters[`${e}/all`](F.CU)},loading(){return!(!this.currentCluster||this.namespaces.length)&&this.$fetchState.pending},showIncrementalLoadingIndicator(){return qd.A.incrementalLoadingUtils.isEnabled(this.calcCanPaginate(),this.perfConfig)},isNamespaceCreatable(){return(this.schema?.collectionMethods||[]).includes("POST")},isHarvester(){return this.$store.getters["currentProduct"].inStore===zd.T3},headers(){let e;if("none"===this.groupPreference){e=[pd.c4,pd.o_,pd.tC];const t={name:"project",label:this.t("tableHeaders.project"),value:"project.nameDisplay",sort:["projectNameSort","nameSort"]};e.push(t)}else e=[pd.c4,pd.RP,pd.tC];return this.isHarvester&&this.harvesterResourceQuotaSchema&&e.push(pd.Si),e.push(pd.K),e},projectIdsWithNamespaces(){const e=this.rows.map(e=>e.projectId).filter(e=>e);return(0,Ud.sb)(e)},clusterProjects(){const e=this.currentCluster.id,t=this.$store.getters["management/all"](F.Mc.PROJECT);if(this.currentProduct?.customNamespaceFilter&&this.currentProduct?.inStore&&this.$store.getters[`${this.currentProduct.inStore}/filterProject`])return this.$store.getters[`${this.currentProduct.inStore}/filterProject`];const n=t.filter(t=>t.spec.clusterName===e);return n},projectsWithoutNamespaces(){return this.activeProjects.filter(e=>!this.projectIdsWithNamespaces.find(t=>e?.id?.endsWith(`/${t}`)))},rowsWithFakeNamespaces(){const e=this.projectsWithoutNamespaces.map(e=>({groupById:`resourceTable.groupLabel.notInAProject-${e.id}`,isFake:!0,mainRowKey:e.id,projectNameDisplay:e.spec?.displayName,project:e,availableActions:[]}));return this.showMockNotInProjectGroup&&e.push({groupById:this.t("resourceTable.groupLabel.notInAProject"),mainRowKey:"fake-empty"}),[...this.rows,...e]},createProjectLocation(){return this.createProjectLocationOverride||this.defaultCreateProjectLocation},groupPreference:(0,O.AN)(O.EI),activeNamespaceFilters(){return this.$store.getters["activeNamespaceFilters"]},activeProjectFilters(){const e={};for(const t of this.activeNamespaceFilters){const[n,r]=t.split("://",2);"project"===n&&(e[r]=!0)}return e},activeProjects(){const e=this.$store.getters["activeNamespaceFilters"];return e.includes(Gd.pF)&&0===Object.keys(this.activeProjectFilters).length?[]:this.userIsFilteringForSpecificNamespaceOrProject()?this.clusterProjects.filter(e=>{const t=e.id.split("/")[1];return!!this.activeProjectFilters[t]}):this.clusterProjects},activeNamespaces(){const e=this.$store.getters["namespaces"]();return this.namespaces.filter(t=>!!e[t.metadata.name])},filteredRows(){return"none"===this.groupPreference?this.rows:this.rowsWithFakeNamespaces},rows(){let e;try{e=this.$store.getters["prefs/get"](O.Pz)}catch{e=this.$store.getters["prefs/get"](O.IJ)}return e?this.activeNamespaces:this.activeNamespaces.filter(e=>{const t=this.$store.getters["systemNamespaces"].includes(e.metadata.name),n=e.isSystem||e.isFleetManaged||t;return!this.currentProduct?.hideSystemResources||!n})},canSeeProjectlessNamespaces(){return this.currentCluster.canUpdate},showMockNotInProjectGroup(){if(!this.canSeeProjectlessNamespaces)return!1;const e=!this.rows.some(e=>!e.project),t=this.userIsFilteringForSpecificNamespaceOrProject();return!t&&e},notInProjectKey(){return this.$store.getters["i18n/t"]("resourceTable.groupLabel.notInAProject")},showCreateNsButton(){return"namespace"!==this.groupPreference},projectGroupBy(){return"none"===this.groupPreference?null:"groupById"}},methods:{getPsaTooltip(e){const t=e.psaTooltipsDescription,n=Object.values(t).sort().map(e=>`<li>${e}</li>`).join(""),r=`<p>${this.t("podSecurityAdmission.name")}: </p>`;return`${r}<ul class="psa-tooltip">${n}</ul>`},userIsFilteringForSpecificNamespaceOrProject(){const e=this.$store.getters["namespaceFilters"];for(let t=0;t<e.length;t++){const n=e[t],r=n.split("://")[0];if("ns"===r||"project"===r)return!0}return!1},slotName(e){return`main-row:${e.id}`},createNamespaceLocation(e){const t=e.rows[0].project,n=this.createNamespaceLocationOverride?{...this.createNamespaceLocationOverride}:{name:"c-cluster-product-resource-create",params:{product:this.$store.getters["currentProduct"].name,resource:F.CU}};return n.query={[Qc.iJ]:t?.metadata.name},n},createNamespaceLocationFlatList(){const e=this.createNamespaceLocationOverride?{...this.createNamespaceLocationOverride}:{name:"c-cluster-product-resource-create",params:{product:this.$store.getters["currentProduct"]?.name,resource:F.CU}};return e.query={[Qc._N]:!0},e},getProjectActions(e){return e.rows[0].project},showProjectAction(e,t){const n=t.rows[0].project;this.$store.commit("action-menu/show",{resources:[n],elem:e.target})},showProjectActionButton(e){const t=e.rows[0].project;return!!t},projectLabel(e){const t=e.rows[0];if(t.isFake)return le.A.sanitize(this.t("resourceTable.groupLabel.project",{name:t.project?.nameDisplay},!0),{ALLOWED_TAGS:["span"]});if(t.groupById===this.notInProjectKey)return this.t("resourceTable.groupLabel.notInAProject");const n=t.project?.nameDisplay||t.project?.id||"";return this.t("resourceTable.groupLabel.project",{name:(0,Jt.ZD)(n)},!0)},projectDescription(e){const t=e.rows[0].project;return t?.description},projectResource(e){const t=e.rows[0];return t.nameDisplay||t.id||""},clearSelection(){this.$refs.table.clearSelection()},sortGenerationFn(){const e=(0,dd.S)(this.schema,this.$store);return e+(this.showMockNotInProjectGroup?"-mock":"")}}};a(95304),a(11466);const Qd=(0,u.A)(Yd,[["render",$d],["__scopeId","data-v-71d78a1c"]]);var Jd=Qd,Zd={components:{ExplorerProjectsNamespaces:Jd},data(){return{createProjectLocation:{name:`${r.KR}-c-cluster-resource-create`,params:{product:r.KR,cluster:this.$store.getters["currentCluster"]?.id,resource:F.Mc.PROJECT}},createNamespaceLocation:{name:`${r.KR}-c-cluster-resource-create`,params:{product:r.KR,resource:F.CU}}}}};const eh=(0,u.A)(Zd,[["render",Ed]]);var th=eh;const nh={class:"header"},rh={class:"title"},ih={class:"primaryheader"},ah={class:"actions-container"},oh={class:"actions"};function sh(e,t,n,r,a,o){const s=(0,i.resolveComponent)("ButtonGroup"),l=(0,i.resolveComponent)("ResourceYaml"),c=(0,i.resolveComponent)("ReceiverConfig"),u=(0,i.resolveComponent)("ActionMenu");return(0,i.openBlock)(),(0,i.createElementBlock)("div",null,[(0,i.createElementVNode)("header",nh,[(0,i.createElementVNode)("div",rh,[(0,i.createElementVNode)("div",ih,[(0,i.createElementVNode)("h1",null,(0,i.toDisplayString)(o.heading),1)])]),(0,i.createElementVNode)("div",ah,[(0,i.createElementVNode)("div",oh,[a.viewOptions&&o.mode===a.view?((0,i.openBlock)(),(0,i.createBlock)(s,{key:0,value:o.currentView,options:a.viewOptions,"onUpdate:value":o.handleButtonGroupClick},null,8,["value","options","onUpdate:value"])):(0,i.createCommentVNode)("",!0),o.mode===a.view?((0,i.openBlock)(),(0,i.createElementBlock)("button",{key:1,ref:"actions","aria-haspopup":"true",type:"button",class:"btn role-multi-action actions",onClick:t[0]||(t[0]=(...e)=>o.handleReceiverActionMenuClick&&o.handleReceiverActionMenuClick(...e))},[...t[3]||(t[3]=[(0,i.createElementVNode)("i",{class:"icon icon-actions"},null,-1)])],512)):(0,i.createCommentVNode)("",!0)])])]),o.currentView===a.yaml&&a.alertmanagerConfigResource?((0,i.openBlock)(),(0,i.createBlock)(l,{key:0,ref:"resourceyaml",value:a.alertmanagerConfigResource,mode:o.mode,"initial-yaml-for-diff":null,yaml:o.resourceYaml,"offer-preview":o.mode===a.edit,"done-route":JSON.stringify(o.redirectToReceiverDetail(a.receiverName)),"done-override":a.alertmanagerConfigDetailRoute,"apply-hooks":a.alertmanagerConfigResource.applyHooks,onError:t[1]||(t[1]=t=>e.$emit("error",t))},null,8,["value","mode","yaml","offer-preview","done-route","done-override","apply-hooks"])):(0,i.createCommentVNode)("",!0),o.currentView!==a.config&&o.currentView!==a.detail||!a.alertmanagerConfigResource?(0,i.createCommentVNode)("",!0):((0,i.openBlock)(),(0,i.createBlock)(c,{key:1,value:a.receiverValue,mode:o.mode,"alertmanager-config-id":a.alertmanagerConfigId,"alertmanager-config-resource":a.alertmanagerConfigResource,"save-override":o.saveOverride},null,8,["value","mode","alertmanager-config-id","alertmanager-config-resource","save-override"])),(0,i.createVNode)(u,{"custom-actions":o.receiverActions,open:a.receiverActionMenuIsOpen,"use-custom-target-element":!0,"custom-target-element":a.actionMenuTargetElement,"custom-target-event":a.actionMenuTargetEvent,onClose:t[2]||(t[2]=e=>a.receiverActionMenuIsOpen=!1),onGoToEdit:o.goToEdit,onGoToEditYaml:o.goToEditYaml,onPromptRemove:o.promptRemove},null,8,["custom-actions","open","custom-target-element","custom-target-event","onGoToEdit","onGoToEditYaml","onPromptRemove"])])}var lh=a(69091);const ch={class:"row mb-10"},uh={class:"col span-6"},dh={class:"box-container create-resource-container"},hh=["onClick"],ph={class:"left"},fh={class:"logo"},mh=["src"],gh={class:"name ml-10"},vh={key:0,class:"right"},bh={key:1};function yh(e,t,n,r,a,o){const s=(0,i.resolveComponent)("LabeledInput"),l=(0,i.resolveComponent)("t"),c=(0,i.resolveComponent)("Tab"),u=(0,i.resolveComponent)("YamlEditor"),d=(0,i.resolveComponent)("ArrayListGrouped"),h=(0,i.resolveComponent)("Tabbed"),p=(0,i.resolveComponent)("CruResource");return(0,i.openBlock)(),(0,i.createBlock)(p,{class:"receiver","done-route":n.alertmanagerConfigResource._detailLocation,mode:n.mode,resource:n.alertmanagerConfigResource,subtypes:[],"can-yaml":!0,errors:e.errors,"cancel-event":!0,"validation-passed":e.fvFormIsValid,onError:t[2]||(t[2]=t=>e.errors=t),onFinish:n.saveOverride,onCancel:o.redirectAfterCancel},{default:(0,i.withCtx)(()=>[(0,i.createElementVNode)("div",ch,[(0,i.createElementVNode)("div",uh,[(0,i.createVNode)(s,{value:n.value.name,"onUpdate:value":t[0]||(t[0]=e=>n.value.name=e),"is-disabled":o.receiverNameDisabled,label:e.t("generic.name"),required:!0,mode:n.mode,rules:e.fvGetAndReportPathRules("name"),"data-testid":"v2-monitoring-receiver-name"},null,8,["value","is-disabled","label","mode","rules"])])]),(0,i.createVNode)(h,{ref:"tabbed","side-tabs":!0,"default-tab":e.defaultTab||"overview","use-hash":n.useTabbedHash,onChanged:o.tabChanged},{default:(0,i.withCtx)(()=>[(0,i.createVNode)(c,{label:e.t("generic.overview"),weight:a.receiverTypes.length,name:"overview"},{default:(0,i.withCtx)(()=>[(0,i.createElementVNode)("div",dh,[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(a.receiverTypes,(e,t)=>((0,i.openBlock)(),(0,i.createElementBlock)("div",{key:t,class:"mb-10 subtype-banner","primary-color-var":"--primary-color",onClick:t=>o.navigateTo(e)},[(0,i.createElementVNode)("div",ph,[(0,i.createElementVNode)("div",fh,[(0,i.createElementVNode)("img",{src:e.logo},null,8,mh)]),(0,i.createElementVNode)("h4",gh,[(0,i.createVNode)(l,{k:e.label},null,8,["k"])])]),"custom"!==e.name?((0,i.openBlock)(),(0,i.createElementBlock)("div",vh,(0,i.toDisplayString)(o.getCount(e)),1)):(0,i.createCommentVNode)("",!0)],8,hh))),128))])]),_:1},8,["label","weight"]),((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(a.receiverTypes,(r,s)=>((0,i.openBlock)(),(0,i.createBlock)(c,{key:s,label:e.t(r.label),name:r.name,weight:a.receiverTypes.length-s},{default:(0,i.withCtx)(()=>["custom"===r.name?((0,i.openBlock)(),(0,i.createBlock)(u,{key:0,ref_for:!0,ref:"customEditor",value:e.suffixYaml,"onUpdate:value":t[1]||(t[1]=t=>e.suffixYaml=t),scrolling:!1,"editor-mode":o.editorMode},null,8,["value","editor-mode"])):((0,i.openBlock)(),(0,i.createElementBlock)("div",bh,[(0,i.createVNode)(d,{value:n.value[r.key],"onUpdate:value":e=>n.value[r.key]=e,class:"namespace-list",mode:n.mode,"default-add-value":{},"add-label":e.t("monitoringReceiver.addButton",{type:e.t(r.label)})},{default:(0,i.withCtx)(e=>[((0,i.openBlock)(),(0,i.createBlock)((0,i.resolveDynamicComponent)(o.getComponent(r.name)),{value:e.row.value,mode:n.mode,namespace:o.alertmanagerConfigNamespace},null,8,["value","mode","namespace"]))]),_:2},1032,["value","onUpdate:value","mode","add-label"])]))]),_:2},1032,["label","name","weight"]))),128))]),_:1},8,["default-tab","use-hash","onChanged"])]),_:1},8,["done-route","mode","resource","errors","validation-passed","onFinish","onCancel"])}var _h=a(31097),wh=a(67850),Eh=a(91825),Sh=a(20246),kh=a.n(Sh),xh=a(89958),Ah=a(77651),Ch=a(39589),Th=a(69742),Nh=a(41778),Rh=a(75495),Oh=a(94569),Ih=a(98283);const Lh=[{name:"slack",label:"monitoringReceiver.slack.label",title:"monitoringReceiver.slack.title",info:"monitoringReceiver.slack.info",key:"slackConfigs",logo:Th},{name:"email",label:"monitoringReceiver.email.label",title:"monitoringReceiver.email.title",key:"emailConfigs",logo:Nh},{name:"pagerduty",label:"monitoringReceiver.pagerduty.label",title:"monitoringReceiver.pagerduty.title",info:"monitoringReceiver.pagerduty.info",key:"pagerdutyConfigs",logo:Rh},{name:"opsgenie",label:"monitoringReceiver.opsgenie.label",title:"monitoringReceiver.opsgenie.title",key:"opsgenieConfigs",logo:Nh},{name:"webhook",label:"monitoringReceiver.webhook.label",title:"monitoringReceiver.webhook.title",key:"webhookConfigs",logo:Oh},{name:"custom",label:"monitoringReceiver.custom.label",title:"monitoringReceiver.custom.title",info:"monitoringReceiver.custom.info",key:"webhookConfigs",logo:Ih}];var Dh={components:{ArrayListGrouped:_h.A,Banner:iu.l,ButtonDropdown:xh.A,CruResource:Bu.A,LabeledInput:Gc.o,Loading:Oe.A,Tabbed:fd.A,Tab:md.A,YamlEditor:wh.A},props:{value:{type:Object,default:()=>({})},mode:{type:String,default:""},alertmanagerConfigResource:{type:Object,required:!0},alertmanagerConfigId:{type:String,required:!0},saveOverride:{type:Function,required:!0},useTabbedHash:{type:Boolean,default:void 0}},mixins:[Eh.A,Ah.A],inheritAttrs:!1,async fetch(){const{receiverSchema:e}=await(0,Ch.ER)(this.$store);if(!e)throw new Error("Can't render the form because the AlertmanagerConfig schema, or it's definitions, is not loaded yet.");const t=Object.keys(e.resourceFields),n={};Object.keys(this.value).forEach(e=>{t.includes(e)||(n[e]=this.value[e])});let r=kh().dump(n);"{}"===r.trim()&&(r=""),this.expectedFields=t,this.suffixYaml=r},data(e){const t={},n=this.$route.query.mode;return n===Qc.YQ&&Lh.forEach(e=>{t[e.key]=t[e.key]||[]}),{create:Qc.YQ,EDITOR_MODES:wh.j,fileFound:!1,receiverTypes:Lh,view:Qc.nW,yamlError:"",fvFormRuleSets:[{path:"name",rules:["required","duplicateName"]}],fvReportedValidationPaths:["value"]}},mounted(){this.mode===this.create&&(this.alertmanagerConfigResource.spec.receivers||(this.alertmanagerConfigResource.spec.receivers=[]),this.alertmanagerConfigResource.spec.receivers.push(this.value))},computed:{editorMode(){return this.$route.query.mode===Qc.nW?wh.j.VIEW_CODE:wh.j.EDIT_CODE},alertmanagerConfigNamespace(){return this.alertmanagerConfigResource?.metadata?.namespace||""},receiverNameDisabled(){return this.$route.query.mode===Qc.nW},fvExtraRules(){return{duplicateName:()=>{const e=this.alertmanagerConfigResource.spec.receivers,t=e?.map(e=>e.name)||[],n=new Set(t);if(e.length!==n.size)return this.$store.getters["i18n/t"]("monitoring.alerting.validation.duplicatedReceiverName",{name:this.value.name})}}}},watch:{suffixYaml(e){try{Object.keys(this.value).forEach(e=>{this.expectedFields.includes(e)||delete this.value[e]});const t=kh().load(e);Object.assign(this.value,t),this.yamlError=""}catch(_g){this.yamlError=`There was a problem parsing the Custom Config: ${_g}`}}},methods:{getComponent(e){return a(19469)(`./${e}`).default},navigateTo(e){this.$refs.tabbed.select(e.name)},getCount(e){const t=this.value?.[e.key]||[];return t.length},tabChanged({tab:e}){window.scrollTop=0,"custom"===e.name&&this.$nextTick(()=>{this.$refs.customEditor&&(this.$refs.customEditor[0].refresh(),this.$refs.customEditor[0].focus())})},redirectAfterCancel(){this.$router.push(this.alertmanagerConfigResource._detailLocation)},createAddOptions(e){return e.addOptions.map()},setError(e){this.errors=e?[e]:[]}}};a(68648);const Ph=(0,u.A)(Dh,[["render",yh]]);var Mh=Ph,Bh=a(96858),Fh=a(40103),$h=a(37648),Uh=a(76978),jh={name:"AlertmanagerConfigReceiverCreateEdit",components:{ActionMenu:lh.A,ButtonGroup:Bh.A,ReceiverConfig:Mh,ResourceYaml:Fh.A},async fetch(){const e=this.$store.getters["currentProduct"].inStore;this.receiverName=this.$route.query.receiverName;const t=this.$route.params.alertmanagerconfigid,n=await this.$store.dispatch(`${e}/find`,{type:F.Rp.ALERTMANAGERCONFIG,id:t}),r=await this.$store.dispatch(`${e}/clone`,{resource:n}),i=this.$route.query.mode;if(i!==Qc.YQ){const e=(r.spec.receivers||[]).find(e=>e.name===this.receiverName);e&&(this.receiverValue=e)}this.alertmanagerConfigId=r.id,this.alertmanagerConfigResource=r,this.alertmanagerConfigDetailRoute=r._detailLocation},data(){return{actionMenuTargetElement:null,actionMenuTargetEvent:null,alertmanagerConfigId:"",alertmanagerConfigResource:null,alertmanagerConfigDetailRoute:null,config:Qc.au,create:Qc.YQ,detail:Qc.fS,edit:Qc.G5,receiverActionMenuIsOpen:!1,receiverName:"",receiverValue:{},showPreview:!1,view:Qc.nW,viewOptions:[{labelKey:"resourceDetail.masthead.config",value:"config"},{labelKey:"resourceDetail.masthead.yaml",value:Qc.zD}],yaml:Qc.zD}},computed:{currentView(){return this.$route.query.currentView},receiverActions(){const e=this.alertmanagerConfigResource?.availableActions;return e?this.alertmanagerConfigResource.getReceiverActions(e):[]},resourceYaml(){const e=this.alertmanagerConfigResource,t=this.$store.getters["currentStore"](e),n=this.$store.getters[`${t}/all`](F.yx),r=(0,Uh.o8)(e),i=(0,$h.mH)(n,F.Rp.ALERTMANAGERCONFIG,r);return i},mode(){return this.$route.query.mode},editorMode(){return this.mode===this.view?wh.j.VIEW_CODE:this.showPreview?wh.j.DIFF_CODE:wh.j.EDIT_CODE},heading(){switch(this.$route.query.mode){case this.create:return this.t("monitoring.alertmanagerConfig.receiverFormNames.create");case this.edit:return this.currentView===this.yaml||this.$route.query.as===this.yaml?this.t("monitoring.alertmanagerConfig.receiverFormNames.editYaml"):this.t("monitoring.alertmanagerConfig.receiverFormNames.edit");default:return this.t("monitoring.alertmanagerConfig.receiverFormNames.detail")}}},methods:{saveOverride(e){if(this.alertmanagerConfigResource.yamlError)return this.alertmanagerConfigResource.errors=this.alertmanagerConfigResource.errors||[],this.alertmanagerConfigResource.errors.push(this.alertmanagerConfigResource.yamlError),void e(!1);this.alertmanagerConfigResource.save(...arguments),this.redirectToAlertmanagerConfigDetail()},handleButtonGroupClick(e){e===this.yaml&&this.goToEditYaml(this.view),e===this.config&&this.goToEdit(this.view)},toggleReceiverActionMenu(){this.receiverActionMenuIsOpen=!this.receiverActionMenuIsOpen},handleReceiverActionMenuClick(e){this.actionMenuTargetElement=this.$refs.actions,this.actionMenuTargetEvent=e,this.toggleReceiverActionMenu()},goToEdit(){this.$router.push(this.alertmanagerConfigResource.getEditReceiverConfigRoute(this.receiverValue.name,Qc.G5))},goToEditYaml(){this.$router.push(this.alertmanagerConfigResource.getEditReceiverYamlRoute(this.receiverValue.name,Qc.G5))},promptRemove(e){const t=e.route.query.receiverName,n=this.alertmanagerConfigResource.spec.receivers||[],r=n.filter(e=>e.name!==t);this.alertmanagerConfigResource.spec.receivers=r,this.alertmanagerConfigResource.save(...arguments),this.$router.push(this.alertmanagerConfigResource._detailLocation)},redirectToReceiverDetail(e){return this.alertmanagerConfigResource.getReceiverDetailLink(e)},redirectToAlertmanagerConfigDetail(){const e=this.alertmanagerConfigResource._detailLocation;this.$router.push(e)}}};a(56554);const Vh=(0,u.A)(jh,[["render",sh],["__scopeId","data-v-a0fecebc"]]);var Kh=Vh;const Gh={class:"dashboard-root"},Hh={class:"dashboard-content"},zh={class:"main-layout"},qh={class:"logo"},Xh={class:"tagline"},Wh={class:"description"},Yh={class:"tagline"},Qh={class:"tagline"};function Jh(e,t,n,r,a,o){const s=(0,i.resolveComponent)("BrandImage"),l=(0,i.resolveDirective)("clean-html");return(0,i.openBlock)(),(0,i.createElementBlock)("div",Gh,[(0,i.createElementVNode)("div",Hh,[(0,i.createElementVNode)("main",zh,[(0,i.createElementVNode)("div",qh,[(0,i.createVNode)(s,{"file-name":"harvester.png",height:"64"})]),(0,i.createElementVNode)("div",Xh,[(0,i.createElementVNode)("div",Wh,(0,i.toDisplayString)(e.t("unsupported.description")),1)]),(0,i.createElementVNode)("div",Yh,[(0,i.withDirectives)((0,i.createElementVNode)("div",null,null,512),[[l,e.t("unsupported.serverVersion",{serverVersion:o.serverVersion},!0)]])]),(0,i.createElementVNode)("div",Qh,[(0,i.withDirectives)((0,i.createElementVNode)("div",null,null,512),[[l,e.t("unsupported.learnMore",{},!0)]])])])])])}var Zh={components:{BrandImage:K},computed:{serverVersion(){const e=this.$store.getters["harvester-common/getServerVersion"]()||"";return e.replace("v","")}}};a(29056);const ep=(0,u.A)(Zh,[["render",Jh],["__scopeId","data-v-140c2578"]]);var tp=ep;const np=[{route:{name:`${r.KR}-c-cluster-unsupported-standalone`,path:"/:product",component:tp},parent:"blank"},{route:{name:`${r.KR}-c-cluster-unsupported`,path:"/:product",component:tp},parent:"plain"},{name:`${r.KR}-c-cluster-support`,path:"/:product/c/:cluster/support",component:Ne},{route:{name:`${r.KR}-c-cluster-console-uid-serial`,path:"/:product/c/:cluster/console/:uid/serial",component:Vt},parent:"blank"},{route:{name:`${r.KR}-c-cluster-console-uid-vnc`,path:"/:product/c/:cluster/console/:uid/vnc",component:rc},parent:"blank"},{name:`${r.KR}-c-cluster-airgapupgrade`,path:"/:product/c/:cluster/airgapupgrade",component:od},{name:`${r.KR}-c-cluster-brand`,path:"/:product/c/:cluster/brand",component:fu},{name:`${r.KR}-c-cluster-alertmanagerconfig-alertmanagerconfigid-receiver`,path:"/:product/c/:cluster/alertmanagerconfig/:alertmanagerconfigid/receiver",component:Kh},{name:`${r.KR}-c-cluster-members`,path:"/:product/c/:cluster/members",component:wd},{name:`${r.KR}-c-cluster`,path:"/:product/c/:cluster",component:h},{name:`${r.KR}-c-cluster-projectsnamespaces`,path:"/:product/c/:cluster/projectsnamespaces",component:th},{name:`${r.KR}-c-cluster-resource`,path:"/:product/c/:cluster/:resource",component:lc},{name:`${r.KR}-c-cluster-resource-create`,path:"/:product/c/:cluster/:resource/create",component:yu},{name:`${r.KR}-c-cluster-resource-id`,path:"/:product/c/:cluster/:resource/:id",component:Su},{name:`${r.KR}-c-cluster-resource-namespace-id`,path:"/:product/c/:cluster/:resource/:namespace/:id",component:Cu}];var rp=np,ip=a(52225),ap=a.n(ip);const op=function(){return{latestBundleId:"",bundlePending:!1,showBundleModal:!1,bundlePercentage:0,uploadingImages:[],uploadingImageError:{},downloadImageId:"",downloadImageInProgress:!1,isDownloadImageCancel:!1}},sp={setDownloadImageId(e,t){e.downloadImageId=t},setDownloadImageCancel(e,t){e.isDownloadImageCancel=t},setDownloadImageInProgress(e,t){e.downloadImageInProgress=t},setLatestBundleId(e,t){e.latestBundleId=t},setBundlePending(e,t){e.bundlePending=t},toggleBundleModal(e,t){e.showBundleModal=t},setBundlePercentage(e,t){e.bundlePercentage=t},uploadStart(e,t){e.uploadingImages.push(t)},uploadError(e,{name:t,message:n}){e.uploadingImageError[t]=n},uploadEnd(e,t){const n=e.uploadingImages.filter(e=>e!==t);e["uploadingImages"]=n}},lp={getBundleId(e){return e.latestBundleId},isDownloadImageCancel(e){return e.isDownloadImageCancel},isDownloadImageInProgress(e){return e.downloadImageInProgress},isBundlePending(e){return e.bundlePending},isShowBundleModal(e){return e.showBundleModal},getBundlePercentage(e){return e.bundlePercentage},uploadingImages(e){return e.uploadingImages},uploadingImageError(e){return t=>e.uploadingImageError[t]},getServerVersion:(e,t,n,r)=>()=>{const e=r["harvester/byId"](l.rk.SETTING,"server-version")?.value;return(0,Ae.HF)(e)},getFeatureEnabled:(e,t,n,r)=>(e,t)=>{const n=t||r["harvester/byId"](l.rk.SETTING,"server-version")?.value;return(0,Ae.at)(e,n)},getHarvesterClusterUrl:(e,t,n,r)=>e=>{if(r["isMultiCluster"]){const t=r["clusterId"],n=`/k8s/clusters/${t}/${e}`;return`${n}`}return e}},cp={async downloadImageProgress({state:e,dispatch:t,commit:n,rootGetters:r}){const i=ap()(window.history.href),a=e.downloadImageId;let o=await t("harvester/find",{type:l.rk.VM_IMAGE_DOWNLOADER,id:a},{root:!0});await n("setDownloadImageInProgress",!0);let s=0;const c=setInterval(async()=>{if(s+=1,s%3===0&&(o=await t("harvester/find",{type:l.rk.VM_IMAGE_DOWNLOADER,id:a,opt:{force:!0}},{root:!0})),!0!==e.isDownloadImageCancel){if("Ready"===o?.status?.status){if(o=r["harvester/byId"](l.rk.VM_IMAGE_DOWNLOADER,a),setTimeout(()=>{n("setDownloadImageInProgress",!1),t("promptModal")},600),r["isMultiCluster"]){const e=r["clusterId"],t=`/k8s/clusters/${e}`;window.location.href=`${i.origin}${t}/v1/harvester/${l.rk.IMAGE}/${a}/download`}else{const e=`${i.origin}/v1/harvester/${l.rk.IMAGE}/${a}/download`;window.location.href=e}clearInterval(c)}}else clearInterval(c)},1e3)},async bundleProgress({state:e,dispatch:t,commit:n,rootGetters:r}){const i=ap()(window.history.href),a=e.latestBundleId;let o=await t("harvester/find",{type:l.rk.SUPPORT_BUNDLE,id:a},{root:!0});const s=r["i18n/t"];let c=0;await n("setBundlePending",!0);const u=setInterval(async()=>{if(c+=1,c%3===0&&(o=await t("harvester/find",{type:l.rk.SUPPORT_BUNDLE,id:a,opt:{force:!0}},{root:!0})),"ready"!==o.bundleState){o=r["harvester/byId"](l.rk.SUPPORT_BUNDLE,a);const e=o.precent;if(n("setBundlePercentage",e),o?.bundleMessage){const e=o?.bundleMessage;t("growl/fromError",{title:s("generic.notification.title.error"),err:e},{root:!0}),clearInterval(u),n("setBundlePending",!1),n("toggleBundleModal",!1)}}else{const e=a.split("/")[1];if(n("setBundlePercentage",1),setTimeout(()=>{n("toggleBundleModal",!1),n("setBundlePending",!1),n("setBundlePercentage",0)},600),r["isMultiCluster"]){const t=r["clusterId"],n=`/k8s/clusters/${t}`;window.location.href=`${i.origin}${n}/v1/harvester/supportbundles/${e}/download`}else window.location.href=`${i.origin}/v1/harvester/supportbundles/${e}/download`;clearInterval(u)}},1e3)}},up=()=>({state:op,getters:{...lp},mutations:{...sp},actions:{...cp}}),dp={namespace:`${r.KR}-common`,isClusterStore:!1};var hp={specifics:up(),config:dp},pp=a(25314);const fp="CSRF";var mp=a(79401),gp=a(23464),vp=a.n(gp),bp=a(4364);function yp(e,t,n){return(t=_p(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _p(e){var t=wp(e,"string");return"symbol"==typeof t?t:t+""}function wp(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}const Ep={WATCH_PENDING:"pending",WATCH_REQUESTED:"requested",WATCHING:"watching",STOPPED:"stopped",REMOVE_PENDING:"removed_pending",REMOVE_REQUESTED:"removed_requested"},Sp=({resourceType:e,type:t,namespace:n,id:r,selector:i,mode:a}={})=>{const o={type:e||t,namespace:n,id:r,selector:i,mode:a};return Object.entries(o).map(([e,t])=>`${e}=${t||""}`).join(",")},kp=e=>{const{resourceType:t,namespace:n,id:r,selector:i}=e,a={resourceType:t,id:r,namespace:n,selector:i};return Sp(a)},{WATCH_PENDING:xp,WATCH_REQUESTED:Ap,WATCHING:Cp,REMOVE_PENDING:Tp,REQUESTED_REMOVE:Np}=Ep;class Rp extends Pt{constructor(e,t=!0,n=null,r=null,i=null,a){super(e,t,n,r,i,!0),yp(this,"watches",{}),yp(this,"status",""),yp(this,"debugWatcher",!1),yp(this,"csrf",void 0),this.baseUrl=self.location.origin+e.replace("subscribe",""),this.csrf=a,this.addEventListener(xt,e=>{this.trace(xt,": processing previously requested or watched resources"),Object.values(this.watches).forEach(e=>{const{status:t,error:n}=e,r=Sp(e);[xp,Ap,Cp].includes(t)&&!n?(this.trace(xt,": re-watching previously required resource",r,t),this.watches[r].status=xp,this.watch(r)):[Tp].includes(t)&&(this.trace(xt,": un-watching previously watched resource",r,t),this.watches[r].status=Tp,this.unwatch(r))})})}trace(...e){this.debugWatcher&&bp.info("Resource Watcher:",...e)}setDebug(e){this.debugWatcher=!!e}watchExists(e){return!!this.watches?.[e]}watch(e,t,n,r={},i){const{resourceType:a,id:o,namespace:s,selector:l,force:c}=r;if(this.trace("watch:","requested",e),[Ap,Cp].includes(this.watches?.[e]?.status))return void this.trace("watch:","already requested or watching, aborting",e);if(!c&&this.watches?.[e]?.error)return void(this.watches?.[e]?.error.reason!==Dt&&this.trace("watch:","in error, aborting",e));const u=a||this.watches?.[e]?.resourceType,d=o||this.watches?.[e]?.id,h=s||this.watches?.[e]?.namespace,p=l||this.watches?.[e]?.selector,f=this.watches?.[e]?.skipResourceVersion||i,m={resourceType:u,id:d,namespace:h,selector:p},g=n||this.watches?.[e]?.resourceVersionTime,v=t||this.watches?.[e]?.resourceVersion,b=this.send(JSON.stringify({...m,resourceVersion:f?void 0:v}));this.watches[e]={...m,status:b?Ep.WATCH_REQUESTED:Ep.WATCH_PENDING,resourceVersion:v,resourceVersionTime:g,skipResourceVersion:f}}unwatch(e){const t=this.watches?.[e]||{},{resourceType:n,id:r,namespace:i,selector:a}=t,o={resourceType:n,id:r,namespace:i,selector:a};if(n&&this.watches[e].status!==Np){const t=this.send(JSON.stringify({...o,stop:!0}));this.watches[e].status=t?Np:Tp}}_onmessage(e){const{name:t,resourceType:n,data:{type:r},id:i,namespace:a,selector:o,data:s}=JSON.parse(e.data),l=Sp({resourceType:n,type:r,id:i,namespace:a,selector:o});if("resource.start"===t&&this.watches?.[l]?.status===Ap)this.watches[l].status=Cp,delete this.watches[l].error;else if("resource.stop"===t&&this.watches?.[l])this.watches[l]={error:this.watches[l]?.error};else if("resource.error"===t){const e=s?.error?.toLowerCase();this.watches[l]&&e.includes("watch not allowed")?this.watches[l].error={type:n,reason:Ot}:this.watches[l]&&e.includes("failed to find schema")?this.watches[l].error={type:n,reason:It}:e.includes("too old")&&(delete this.watches[l].resourceVersion,delete this.watches[l].resourceVersionTime,delete this.watches[l].skipResourceVersion,this.watches[l].error={type:n,reason:Dt},this.dispatchEvent(new CustomEvent("resync",{detail:{data:{resourceType:n,id:i,namespace:a,selector:o}}}))),this.trace("_onmessage:","new error",this.watches[l].error)}super._onmessage(e)}}var Op=a(23330),Ip=a(8755),Lp=a(37417),Dp=a(4364);const Pp=2500,Mp={store:"",flushTimer:void 0,queue:[],schemas:{}};function Bp(){Mp.queue.forEach(e=>{const t=(0,Ip.en)(e),n=Mp.schemas[e.id];if(!n||n&&n!==t){Mp.schemas[e.id]=t;const n={data:e,resourceType:F.yx,type:"resource.change"};Fp(n)}}),Mp.queue=[],Mp.flushTimer=setTimeout(Bp,Pp)}function Fp(e){self.postMessage({load:e})}function $p(e){self.postMessage({redispatch:e})}Mp.flushTimer=setTimeout(Bp,Pp);const Up={watch:e=>{$p({send:e})},createWatcher:e=>{$p({subscribe:e})}},jp={onmessage:e=>{const t=Object.keys(e?.data);t.forEach(t=>{jp[t]?jp[t](e?.data[t]):Dp.warn("no associated action for:",t)})},initWorker:({storeName:e})=>{Mp.store=e},destroyWorker:()=>{clearTimeout(Mp.flushTimer),self.postMessage({destroyWorker:!0})},loadSchemas:e=>{e.forEach(e=>{(0,Lp.P)(e),Mp.schemas[e.id]=(0,Ip.en)(e)})},updateSchema:e=>{Mp.queue.push(e)},removeSchema:e=>{Mp.queue=Mp.queue.filter(t=>t.id!==e),delete Mp.schemas[e]},...Up};function Vp(e,t,n){return(t=Kp(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kp(e){var t=Gp(e,"string");return"symbol"==typeof t?t:t+""}function Gp(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}self.onmessage=jp.onmessage;class Hp{constructor(e){Vp(this,"resources",{}),Vp(this,"type",void 0),Vp(this,"keyField",void 0),this.type=(0,mp.AZ)("counts"===e?F.i2:e),this.keyField=(0,mp.BZ)(this.type)}load(e=[]){for(let t=0;t<e.length;t++){const n=e[t];this.type===F.yx&&(0,Lp.w)(n);const r=n[this.keyField];this.resources[r]=(0,Ip.en)(n)}return this}change(e,t){this.type===F.yx&&(0,Lp.w)(e);const n=this.resources[e[this.keyField]]||{},r=(0,Ip.en)(e);n!==r&&(this.resources[e[this.keyField]]=e,t())}create(e,t){this.change(e,t)}remove(e,t){this.resources[e]&&(delete this.resources[e],t())}}var zp=a(4364);const qp={},Xp={watcher:void 0,store:"",workerQueue:[],batchChanges:{},debugWorker:!1},Wp=(...e)=>{Xp.debugWorker&&zp.info("Advanced Worker:",...e)};Wp("created");const Yp=setInterval(()=>{Object.keys(Xp.batchChanges).length&&(self.postMessage({batchChanges:Xp.batchChanges}),Xp.batchChanges={})},5e3),Qp=e=>{const{resourceType:t,data:{type:n},data:r}=e,i=t||n,a=(0,mp.AZ)("counts"===i?F.i2:i),o=(0,mp.BZ)(a);return a===F.yx&&(0,Lp.w)(r),{type:a,id:r[o],data:r}},Jp=(e,t,n)=>{Wp("createWatcher",e,t),self.postMessage({[e]:{type:t.type,detail:t.detail,srcElement:{disconnectedAt:n.disconnectedAt,url:n.url}}})},Zp=e=>{Xp.workerQueue=Xp.workerQueue.filter(t=>{const[,n]=Object.entries(t)[0],r=kp(n);return e!==r})},ef={loadSchemas:e=>{qp[F.yx]||(qp[F.yx]=new Hp(F.yx)),qp[F.yx].load(e)},createWatcher:e=>{Wp("createWatcher",e);const{metadata:t,maxTries:n,url:r,csrf:i}=e;if(!Xp.watcher){Xp.watcher=new Rp(r,!0,null,null,n,i),Xp.watcher.addEventListener(Ct,e=>{const t=e.detail;if(t.data){const e=JSON.parse(t.data);e.name&&(tf[e.name]?tf[e.name](e):tf.dispatch(e))}}),Xp.watcher.addEventListener("resync",e=>{self.postMessage({redispatch:{resyncWatch:e.detail.data}})}),Xp.watcher.addEventListener(Nt,e=>{Jp(Nt,e,Xp.watcher)}),Xp.watcher.addEventListener(Rt,e=>{Jp(Rt,e,Xp.watcher)}),Xp.watcher.setDebug(Xp.debugWorker),Xp.watcher.connect(t);while(Xp.workerQueue.length>0){Wp("createWatcher","flushing workerQueue",Xp.workerQueue);const e=Xp.workerQueue.shift(),[t,n]=Object.entries(e)[0];ef[t]?ef[t](n):zp.warn("no associated action for:",t)}}},watch:e=>{Wp("watch",e);const t=kp(e);if(e.stop)return void ef.unwatch(t);if(!e.force&&Xp.watcher?.watches[t]?.error)return;if(!Xp.watcher)return void Xp.workerQueue.push({watch:e});const{resourceType:n,namespace:r,id:i,selector:a,resourceVersion:o}=e,s=o?Date.now():void 0,l=[F.yx,F.i2].includes(n),c={resourceType:n,id:i,namespace:r,selector:a,force:e.force};Xp.watcher.watch(t,o,s,c,l)},unwatch:e=>{Wp("unwatch",e),Zp(e),Xp.watcher&&Xp.watcher.unwatch(e)},initWorker:({storeName:e})=>{Wp("initWorker",e),Xp.store=e},destroyWorker:()=>{function e(){delete self.onmessage,self.postMessage({destroyWorker:!0})}Wp("destroyWorker"),clearInterval(Yp),Xp.watcher?Xp.watcher?.disconnect().then(e):e()},toggleDebug:({on:e})=>{Xp.debugWorker=!!e,Xp.watcher.setDebug(!!e)},updateBatch(e,t,n){Xp.batchChanges[e]||(Xp.batchChanges[e]={}),Xp.batchChanges[e][t]=n}},tf={"resource.change":e=>{const{type:t,id:n,data:r}=Qp(e);qp[t]?qp[t].change(r,()=>ef.updateBatch(t,n,r)):ef.updateBatch(t,n,r)},"resource.create":e=>{const{type:t,id:n,data:r}=Qp(e);qp[t]?qp[t].create(r,()=>ef.updateBatch(t,n,r)):ef.updateBatch(t,n,r)},"resource.start":e=>{},"resource.remove":e=>{const{type:t,id:n}=Qp(e);qp[t]?qp[t].remove(n,()=>ef.updateBatch(t,n,{})):ef.updateBatch(t,n,{})},"resource.stop":e=>{Wp("resource.stop",e);const t=kp(e);Zp(t),Xp.watcher?.watches[t]?.error||tf.dispatch({...e,advancedWorker:!0})},"resource.error":e=>{zp.warn(`Resource error [${Xp.store}]`,e.resourceType,":",e.data.error)},dispatch:e=>{self.postMessage({dispatch:e})}};self.onmessage=e=>{const t=Object.keys(e?.data);t.forEach(t=>{ef[t]?ef[t](e?.data[t]):zp.debug("no associated action for:",t)})};const nf={WAITING:"waiting",DESTROY_MOCK:"destroy",BASIC:"basic",ADVANCED:"advanced"};var rf=a(81565);class af{typeIsNamespaced({getters:e},t){return e.haveNamespace(t)?.length>0}typeIsPaginated({getters:e},t){return!!e.havePage(t)}filteredNamespaces({rootGetters:e}){return e.activeNamespaceCache}subscribeNamespace(e){if(!rf.A.isApplicable({namespaced:e,type:"n/a"})||!e.length)return e}validChange({getters:e,rootGetters:t},n,r){if(this.typeIsNamespaced({getters:e},n)){const e=this.filteredNamespaces({rootGetters:t});if(!e[r.metadata.namespace])return!1}if(this.typeIsPaginated({getters:e},n)){const t=e["all"](n);return!!t.find(e=>e.id===r.id)}return!0}validateBatchChange({getters:e,rootGetters:t},n){const r=this.filteredNamespaces({rootGetters:t}),i={namespaced:{},paginated:{}};return Object.entries(n).forEach(([t,n])=>{if(void 0===i.namespaced[t]&&(i.namespaced[t]=this.typeIsNamespaced({getters:e},t)),i.namespaced[t]){const i=e.schemaFor(t);if(!i?.attributes?.namespaced)return;Object.keys(n).forEach(e=>{const t=e.split("/")[0];t&&r[t]||delete n[e]})}if(void 0===i.paginated[t]&&(i.paginated[t]=this.typeIsPaginated({getters:e},t)),i.paginated[t]){const r=e["all"](t);Object.keys(n).forEach(e=>{r.find(t=>t.id===e)||delete n[e]})}}),n}}var of=new af,sf=a(10213),lf=a(63905),cf=a(88343),uf=a(15092),df=a(4364);const hf=e=>e?JSON.stringify(e,(e,t)=>void 0===t?"":t):"",pf="font-weight: bold; font-style: italic;",ff="font-weight: normal; font-style: normal;";var mf;(function(e){e["EXECUTE"]="delay",e["RECURSE"]="recurse"})(mf||(mf={}));const gf=!1,vf=e=>{if(gf||0!==e)return"info"};class bf{constructor(){this.map={},this.sleep=e=>new Promise(t=>setTimeout(t,e)),this.calcDelay=e=>0===e?1:250*Math.pow(e,2),this.canRecurse=async(e,{id:t,description:n,metadata:r,canFn:i=async()=>!0})=>{if(!this.map[t])return this.logAndError("info",{id:t,status:"Aborting (backoff was reset, do not continue to process)",description:n,metadata:r,type:mf.RECURSE});if(this.map[t].recurse?.id!==e.recurse?.id)return this.logAndError("info",{id:t,status:"Aborting (stale backoff, a new one exists)",description:n,metadata:r,type:mf.RECURSE});const a=await i();return a?void 0:this.logAndError("info",{id:t,status:"Skipping (canFn test failed)",description:n,metadata:r,type:mf.RECURSE})}}getLogTypeFromMap(e){const t=this.getBackOff(e);let n="";return t?.execute?n=mf.EXECUTE:t?.recurse&&(n=mf.RECURSE),n}log(e,{id:t,status:n,description:r,metadata:i,type:a},...o){if(!e)return;let s=a||this.getLogTypeFromMap(t);s=s?` (${s})`:"",df[e](`%cBackOff${s}%c... \n%cId%c: ${t}\n%cDescription%c: ${r}\n%cStatus%c: ${n}\n%cMetadata%c: ${hf(i)}\n%cCache %c: ${Object.keys(this.map).map(e=>`"${e}"`).join(" + ")}`,pf,ff,pf,ff,pf,ff,pf,ff,pf,ff,pf,ff,...o)}logAndError(e,{id:t,status:n,description:r,metadata:i,type:a},...o){return this.log(e,{id:t,status:n,description:r,metadata:i,type:a},...o),Promise.reject(new Error(n))}getBackOff(e){return this.map[e]}resetAll(){Object.keys(this.map).forEach(e=>{this.reset(e)})}resetPrefix(e){Object.keys(this.map).forEach(t=>{t.startsWith(e)&&this.reset(t)})}reset(e){const t=this.map[e];if(!t)return;const n=this.getLogTypeFromMap(e);t?.execute?.timeoutId&&(this.log("info",{id:e,status:"Stopping (cancelling active back-off)",description:t.description,metadata:t.metadata,type:n}),clearTimeout(t.execute.timeoutId));const r=t?.try||0,i=r<=1?void 0:"debug";delete this.map[e],this.log(i,{id:e,status:"Reset",description:t.description,metadata:t.metadata,type:n})}async recurse(e){const{id:t,description:n,retries:r=10,delayedFn:i,continueOnError:a,metadata:o}=e;if(this.map[t])return this.logAndError("info",{id:t,status:"Skipping (previous recurse back off process still running)",description:n,metadata:o,type:"recurse"});this.map[t]={try:1,retries:r,description:n,metadata:o,recurse:{id:(0,Jt.vx)()}};for(let s=0;s<r;s++){await this.canRecurse(this.map[t],e),this.map[t].try=s+1;const r=this.calcDelay(s),l=vf(s);let c;this.log(l,{id:t,status:`Delaying call (attempt ${s+1}, delayed by ${r}ms)`,description:n,metadata:o,type:mf.RECURSE}),await this.sleep(r),await this.canRecurse(this.map[t],e),this.log(l,{id:t,status:"Executing call",description:n,metadata:o,type:mf.RECURSE});try{c=await i()}catch($s){const r=await a($s);if(!r){this.reset(t);const r="Failed call";return this.logAndError("error",{id:t,status:r,description:n,metadata:o,type:mf.RECURSE},$s)}}if(c)return await this.canRecurse(this.map[t],e),this.reset(t),this.log(l,{id:t,status:"Successful call",description:n,metadata:o,type:mf.RECURSE}),c}}async execute({id:e,description:t,retries:n=10,delayedFn:r,canFn:i=async()=>!0,metadata:a}){const o=this.map[e],s=await i();if(s){if(o?.execute?.timeoutId)return this.log("info",{id:e,status:"Skipping (previous back off process still running)",description:t,metadata:a,type:mf.EXECUTE}),o?.execute?.timeoutId;{const i=o?.try||0;if(i+1>n)return void this.log("error",{id:e,status:"Aborting (too many retries)",description:t,metadata:a,type:mf.EXECUTE});const s=this.calcDelay(i),l=vf(i);this.log(l,{id:e,status:`Delaying call (attempt ${i+1}, delayed by ${s}ms)`,description:t,metadata:a,type:mf.EXECUTE});const c=setTimeout(async()=>{try{this.log(l,{id:e,status:"Executing call",description:t,metadata:a,type:mf.EXECUTE}),await r()}catch($s){this.log("error",{id:e,status:"Failed call",description:t,metadata:a,type:mf.EXECUTE})}delete this.map[e]?.execute?.timeoutId},s);return this.map[e]={execute:{timeoutId:c},try:o?.try?o.try+1:1,retries:n,description:t,metadata:a},c}}this.log("info",{id:e,status:"Skipping (canExecute test failed)",description:t,metadata:a,type:mf.EXECUTE})}}const yf=new bf;var _f=yf;class wf{constructor(){this.watches={},this.supportedEventTypes=[cf.r.CHANGES]}keyForSubscribe({params:e}){return Sp(e)}isSupportedEventType(e){return!!this.supportedEventTypes.includes(e)}getWatch({params:e}){const t=this.keyForSubscribe({params:e});return this.watches[t]}initialiseWatch({params:e}){const t=this.keyForSubscribe({params:e});return this.watches[t]={hasStandardWatch:!1,listeners:[]},this.watches[t]}deleteWatch({params:e}){const t=this.keyForSubscribe({params:e});delete this.watches[t]}hasStandardWatch({params:e}){const t=this.keyForSubscribe({params:e});return this.watches[t]?.hasStandardWatch}setStandardWatch({standardWatch:e,args:t}){const{params:n}=t;let r=this.getWatch({params:n});if(!r){if(!e)return;r=this.initialiseWatch({params:n})}r.hasStandardWatch=e,r.hasStandardWatch||0!==r.listeners.length||this.deleteWatch({params:n})}hasEventListeners({params:e}){const t=this.keyForSubscribe({params:e}),n=this.watches[t],r=n?.listeners.find(e=>Object.values(e.callbacks).length>0);return!!r}getEventListener({entryOnly:e,args:t}){const{params:n,event:r}=t,i=this.keyForSubscribe({params:n}),a=this.watches[i];if(a){const t=a.listeners.find(e=>e.event===r);if(t&&(e||Object.keys(t?.callbacks||{}).length))return t}return null}addEventListener({event:e,params:t}){if(!e)throw new Error("Cannot add a socket watch event listener if there's no event to listen to");let n=this.getWatch({params:t});n||(n=this.initialiseWatch({params:t}));let r=this.getEventListener({entryOnly:!0,args:{event:e,params:t}});return r||(r={event:e,callbacks:{}},n.listeners.push(r)),r}triggerEventListener({event:e,params:t}){const n=this.getEventListener({entryOnly:!1,args:{event:e,params:t}});n&&Object.values(n.callbacks).forEach(e=>{e({forceWatch:t.forceWatch,revision:t.revision})})}triggerAllEventListeners({params:e}){const t=this.getWatch({params:e});t.listeners.forEach(t=>{Object.values(t.callbacks||{}).forEach(t=>{t({forceWatch:e.forceWatch,revision:e.revision})})})}addEventListenerCallback({callback:e,args:t}){const{params:n,event:r,id:i}=t,a=this.addEventListener({event:r,params:n});return a.callbacks[i]||(a.callbacks[i]=e),a}removeEventListenerCallback({event:e,params:t,id:n}){const r=this.getEventListener({args:{event:e,params:t}});r&&delete r.callbacks[n]}}class Ef{constructor(e){this.revision=e,this.asNumber=Number(e),this.isNumber=!Number.isNaN(this.asNumber)}isNewerThan(e){return Ef.areAllNumbers([this,e])&&this.asNumber>e.asNumber}static areAllNumbers(e){return e.every(e=>e.isNumber)}}const Sf={UNKNOWN_REVISION:"unknown revision"};var kf=a(4364);const xf=3e3,Af={},Cf=[sf.e.CLUSTER,sf.e.RANCHER,sf.e.MANAGEMENT],Tf=(e,t)=>t.$workers[e]?.waitingForDestroy&&t.$workers[e].waitingForDestroy(),Nf=(e,t)=>(0,Op.f)(()=>Tf(e,t)||!!t.getters["management/byId"](F.yx,F.Mc.SETTING),"management settings schema to be available"),Rf=(e,t)=>(0,Op.f)(()=>Tf(e,t)||!!t.getters["management/byId"](F.Mc.SETTING,$.HG.UI_PERFORMANCE),"UI performance settings to be available"),Of=e=>{const{rootGetters:t,getters:n}=e,r=n.storeName,i=t.clusterId;if(!Cf.includes(r)||i===sf.w&&r===sf.e.CLUSTER)return!1;const a=(0,au.fD)(t);return a?.advancedWorker.enabled};async function If(e,t){const{getters:n,dispatch:r}=t,i=n.storeName;if(e.$workers=e.$workers||{},!Cf.includes(i))return;e.$workers[i]||(e.$workers[i]={postMessage:t=>{"destroyWorker"!==Object.keys(t)?.[0]?Af[i]?Af[i].push(t):Af[i]=[t]:e.$workers[i].mode=nf.DESTROY_MOCK},mode:nf.WAITING,waitingForDestroy:()=>e.$workers[i]?.mode===nf.DESTROY_MOCK,destroy:()=>{delete e.$workers[i]}});try{await Nf(i,e),await Rf(i,e)}catch($s){return void(e.$workers[i]?.destroy?e.$workers[i].destroy():delete e.$workers[i])}if(e.$workers[i].waitingForDestroy())return void e.$workers[i].destroy();const a=Of(t),o={load:e=>{Df(t,e,!0,"Change")},destroyWorker:()=>{e.$workers&&(e.$workers[i].terminate(),delete e.$workers[i])},batchChanges:e=>{r("batchChanges",of.validateBatchChange(t,e))},dispatch:e=>{r(`ws.${e.name}`,e)},redispatch:e=>{Object.entries(e).forEach(([e,t])=>{r(e,t)})},[Nt]:e=>{r("error",e)},[Rt]:e=>{r("error",e)}};if(!e.$workers[i]||e.$workers[i].mode===nf.WAITING){const t=a?nf.ADVANCED:nf.BASIC,n=e.steveCreateWorker(t);e.$workers[i]=n,n.postMessage({initWorker:{storeName:i}}),e.$workers[i].onmessage=e=>{const t=Object.keys(e?.data);t.forEach(t=>{o[t](e?.data[t])})}}while(Af[i]?.length){const t=Af[i].shift(),n=(0,Uh.yo)(t);e.$workers[i].postMessage(n)}}function Lf(e,t){const n=e.resourceType||e.type,r=t.resourceType||t.type;return n===r&&((e.mode===t.mode||!e.mode&&!t.mode)&&((e.id===t.id||!e.id&&!t.id)&&((e.namespace===t.namespace||!e.namespace&&!t.namespace)&&(e.selector===t.selector||!e.selector&&!t.selector))))}function Df({getters:e,state:t,rootGetters:n},{data:r,revision:i},a,o){const s=e.normalizeType(r.type),l=e.typeEntry(s);if(l&&(l.revision=Math.max(l.revision,parseInt(i,10)),of.validChange({getters:e,rootGetters:n},s,r)))if(a)t.queue.push({action:"dispatch",event:"load",body:r});else{const n=e.byId(r.type,r.id);n&&t.queue.push({action:"commit",event:"remove",body:n}),s===F.yx&&t.queue.push({action:"commit",event:"forgetType",body:r.id})}}function Pf(e){return(0,au.fD)(e)?.disableWebsocketNotification}const Mf=({getters:e,commit:t},n)=>{_f.resetPrefix(e.backOffId(n.obj,"")),t("clearInError",n.obj)},Bf={async subscribe(e,t){const{state:n,commit:r,dispatch:i,getters:a,rootGetters:o}=e;if(o["isSingleProduct"]?.disableSteveSockets)return;let s=n.socket;r("setWantSocket",!0),n.debugSocket&&kf.info(`Subscribe [${a.storeName}]`);const l=`${n.config.baseUrl}/subscribe`,c=Pf(o)?null:3,u=(0,Uh.Jt)(t,"metadata");if(Of(e)){if(this.$workers[a.storeName]||await If(this,e),!this.$workers[a.storeName])return;const t={parseJSON:!1},r=o["cookies/get"]({key:fp,options:t});this.$workers[a.storeName].postMessage({createWatcher:{metadata:u,url:`${n.config.baseUrl}/subscribe`,csrf:r,maxTries:c}})}else s?(s.setAutoReconnect(!0),s.setUrl(l),s.connect(u)):(s=new Pt(`${n.config.baseUrl}/subscribe`,!0,null,null,c),r("setSocket",s),s.addEventListener(xt,e=>{i("opened",e)}),s.addEventListener(At,e=>{i("closed",e)}),s.addEventListener(Nt,e=>{i("error",e)}),s.addEventListener(Rt,e=>{i("error",e)}),s.addEventListener(Ct,e=>{const t=e.detail;if(t.data){const e=JSON.parse(t.data);e.name&&i(`ws.${e.name}`,e)}}),s.connect(u))},async unsubscribe({commit:e,getters:t,state:n,dispatch:r}){const i=n.socket;e("setWantSocket",!1);const a=[],o=(this.$workers||{})[t.storeName];return o&&(o.postMessage({destroyWorker:!0}),a.push((0,Op.f)(()=>!this.$workers[t.storeName],"Worker is destroyed"))),i&&a.push(i.disconnect()),await r("resetWatchBackOff"),Promise.all(a)},watchEvent(e,{event:t=cf.r.CHANGES,id:n,callback:r,params:i}){if(!e.getters.listenerManager.isSupportedEventType(t))return void kf.error(`Unknown event type "${t}", only ${Object.keys(e.getters.listenerManager.supportedEventTypes).join(",")} are supported`);e.getters.listenerManager.addEventListenerCallback({callback:r,args:{event:t,params:i,id:n}});const a=e.getters.listenerManager.hasStandardWatch({params:i});a||e.dispatch("watch",{...i,standardWatch:!1})},unwatchEvent(e,{event:t=cf.r.CHANGES,id:n,params:r}){e.getters.listenerManager.isSupportedEventType(t)?(e.getters.listenerManager.removeEventListenerCallback({event:t,params:r,id:n}),e.dispatch("unwatch",r)):kf.info(`Attempted to unwatch for an event "${t}" but it had no watchers`)},watch({state:e,dispatch:t,getters:n,rootGetters:r},i){e.debugSocket&&kf.info(`Watch Request [${n.storeName}]`,JSON.stringify(i));let{type:a,selector:o,id:s,revision:l,namespace:c,stop:u,force:d,mode:h,standardWatch:p=!0}=i;if(c=of.subscribeNamespace(c),a=n.normalizeType(a),r["type-map/isSpoofed"](a))return void(e.debugSocket&&kf.info("Will not Watch (type is spoofed)",JSON.stringify(i)));const f=n.schemaFor(a,!1,!1);if(f?.attributes?.verbs?.includes&&!f.attributes.verbs.includes("watch"))return void(e.debugSocket&&kf.info("Will not Watch (type does not have watch verb)",JSON.stringify(i)));const m=n.inError(i);if(!u&&!d&&m)return void(m!==Dt&&kf.error(`Aborting Watch Request [${n.storeName}]. Watcher in error (${m})`,JSON.stringify(i)));const g={type:a,id:s,selector:o,namespace:c,mode:h};if(!u&&n.watchStarted(g))return void(e.debugSocket&&kf.debug(`Already Watching [${n.storeName}]`,{type:a,id:s,selector:o,namespace:c,mode:h}));"undefined"===typeof l&&(l=n.nextResourceVersion(a,s));const v={resourceType:a};if(h&&(v.mode=h,h===cf.g.RESOURCE_CHANGES)){const e=uf.A.resourceChangesDebounceMs({rootGetters:r});e&&(v.debounceMs=e)}l&&(v.resourceVersion=`${l}`),c&&(v.namespace=c),u&&(v.stop=!0),s&&(v.id=s),o&&(v.selector=o);const b=this.$workers?.[n.storeName]||{};return b.mode===nf.ADVANCED||b.mode===nf.WAITING?(d&&(v.force=!0),void b.postMessage({watch:v})):(!u&&p&&n.listenerManager.setStandardWatch({standardWatch:!0,args:{event:v.mode,params:v}}),t("send",v))},unwatch(e,{type:t,id:n,namespace:r,selector:i,all:a,mode:o}){const{commit:s,getters:l,dispatch:c}=e;if(l["schemaFor"](t)){r=of.subscribeNamespace(r);const u={type:t,id:n,namespace:r,selector:i,mode:o,stop:!0},d=n=>{const r=e.getters.listenerManager.hasStandardWatch({params:n}),i=e.getters.listenerManager.hasEventListeners({params:n});r&&e.getters.listenerManager.setStandardWatch({standardWatch:!1,args:{params:n}}),i||l["watchStarted"](n)&&(s("setWatchStopped",n),c("watch",n),s("clearFromQueue",t))},h=Sp(u),p=[];Of(e)?c("watch",u):a?p.push(...l["watchesOfType"](t)):l["watchStarted"](u)&&p.push(u),p.forEach(e=>{d(e),c("resetWatchBackOff",{type:t,compareWatches:e=>h===Sp(e)})})}},resetWatchBackOff({state:e,getters:t,commit:n},{type:r,compareWatches:i,resetInError:a=!0,resetStarted:o=!0}={resetInError:!0,resetStarted:!0}){if(o&&e.started?.length){let n=e.started;(r||i)&&(n=n.filter(e=>i?i(e):e.type===r)),n.forEach(e=>_f.resetPrefix(t.backOffId(e,"")))}if(a&&e.inError){let a=Object.values(e.inError||{});(r||i)&&(a=a.filter(e=>i?i(e.obj):e.obj.type===r)),a.filter(e=>e.reason===Dt).forEach(e=>Mf({getters:t,commit:n},e))}},"ws.ping"({getters:e,dispatch:t},n){if("management"===e.storeName){const r=n?.data?.version||null;t("updateServerVersion",r,{root:!0}),kf.info(`Ping [${e.storeName}] from ${r||"unknown version"}`)}}},Ff={debug(e,t,n){e.debugSocket=!1!==t,n&&this.$workers[n]&&this.$workers[n].postMessage({toggleDebug:!1!==t})}},$f={async flush({state:e,commit:t,dispatch:n,getters:r}){const i=e.queue;let a=[];if(!i.length)return;const o=(new Date).getTime();e.queue=[],e.debugSocket&&kf.debug(`Subscribe Flush [${r.storeName}]`,i.length,"items");for(const{action:s,event:l,body:c}of i)if("dispatch"===s&&"load"===l)a.push(c);else if(a.length&&(await n("loadMulti",a),a=[]),"dispatch"===s)await n(l,c);else{if("commit"!==s)throw new Error("Invalid queued action");t(l,c)}a.length&&await n("loadMulti",a),e.debugSocket&&kf.debug(`Subscribe Flush [${r.storeName}] finished`,(new Date).getTime()-o,"ms")},rehydrateSubscribe({state:e,dispatch:t}){e.wantSocket&&!e.socket&&t("subscribe")},reconnectWatches({state:e,getters:t,commit:n,dispatch:r}){const i=[];for(const a of e.started.slice())kf.info(`Reconnect [${t.storeName}]`,JSON.stringify(a)),t.schemaFor(a.type)&&(n("setWatchStopped",a),delete a.revision,i.push(r("watch",a)));return Promise.all(i)},async resyncWatch({getters:e,dispatch:t},n){kf.info(`Resync [${e.storeName}]`,n);const{backOffId:r,...i}=n;await t("fetchResources",{params:i,backOffId:r,opt:{force:!0,forceWatch:!0}})},async fetchPageResources({getters:e,dispatch:t},{opt:n,storePagination:r,params:i,backOffId:a}){const{resourceType:o,namespace:s,revision:l}=i,c=o||i.type,u=a||e.backOffId(i,"fetchPageResources"),d=_f.getBackOff(u)?.metadata?.revision,h=e["typeEntry"](o||c)?.revision,p=new Ef(l),f=new Ef(d),m=new Ef(h),g=new Ef(d||h);if(g.isNewerThan(p))kf.warn(`Ignoring subscribe request to update '${c}' with revision '${p.revision}' (active revision '${g.revision} & cached revision '${m.revision}''). This probably means the replica that provided the web socket message has not yet correctly synced it's cache with other fresher replicas.`);else{p.isNewerThan(f)&&(kf.info(`Dropping previous subscribe request to update '${c}' with revision '${g.revision}' (new target revision '${p.revision}'). `),_f.reset(u));try{await _f.recurse({id:u,metadata:{revision:l},description:`Fetching resources for ${c}. Triggered by web socket`,canFn:()=>{if(!e.canBackoff(this.$socket))return kf.info(`Aborting subscribe request to update '${c}' with revision '${g.revision}' (socket closed). `),!1;if(!e["watchStarted"](i)){const t=e.inError(i);if(t!==Dt)return kf.info(`Aborting subscribe request to update '${c}' with revision '${g.revision}' (resource not watched). `),!1}return!0},continueOnError:async e=>400===e?.status&&e?.code===Sf.UNKNOWN_REVISION,delayedFn:async()=>await t("findPage",{type:c,opt:{...n,namespaced:s,revision:l,...r.request}})})}catch(Uo){kf.info(`Failed subscribe request to update '${c}' with revision '${g.revision}' (error). `,Uo)}}},async fetchResources({state:e,getters:t,dispatch:n,commit:r},{opt:i,params:a,backOffId:o}){const{resourceType:s,namespace:l,id:c,selector:u,mode:d,revision:h}=a;if(!s)return void kf.error("A socket message has prompted a request to fetch a resource but no resource type was supplied");if(c)return void await n("find",{type:s,id:c,opt:{...i,namespaced:l,revision:null}});let p=[],f=[];if(u)p=t["matching"](s,u).slice(),f=await n("findMatching",{type:s,selector:u,opt:i});else if(d===cf.g.RESOURCE_CHANGES){const e=t["havePage"](s);e&&(await n("fetchPageResources",{params:a,storePagination:e,opt:i,backOffId:o}),p=[],f=[]),t.listenerManager.triggerEventListener({event:cf.g.RESOURCE_CHANGES,params:{...a,revision:h,forceWatch:i.forceWatch}})}else p=t["all"](s).slice(),l&&(p=p.filter(e=>e.metadata?.namespace===l)),f=await n("findAll",{type:s,watchNamespace:l,opt:i});const m={};for(const g of f)m[g.id]=!0;for(const g of p)m[g.id]||(e.debugSocket&&kf.info(`Remove stale [${t.storeName}]`,s,g.id),r("remove",g))},async opened({commit:e,dispatch:t,state:n,getters:r,rootGetters:i},a){n.debugSocket&&kf.info(`WebSocket Opened [${r.storeName}]`);const o=a.currentTarget,s=a?.detail?.tries,l=i["i18n/t"],c=Pf(i);if(this.$socket=o,n.queue||(n.queue=[]),n.queueTimer||(n.flushQueue=async()=>{n.queue.length&&await t("flush"),n.queueTimer=setTimeout(n.flushQueue,1e3)},n.flushQueue()),o.hasReconnected){await t("reconnectWatches");const e=i["growl/find"]({key:"url",val:o.url});e&&t("growl/remove",e.id,{root:!0}),s>1&&!c&&t("growl/success",{title:l("growl.reconnected.title"),message:l("growl.reconnected.message",{url:this.$socket.url,tries:s})},{root:!0})}for(const u of n.pendingFrames.slice())e("dequeuePendingFrame",u),t("sendImmediate",u)},async closed({state:e,getters:t,dispatch:n}){e.debugSocket&&kf.info(`WebSocket Closed [${t.storeName}]`),await n("resetWatchBackOff"),clearTimeout(e.queueTimer),e.queueTimer=null},async error({getters:e,state:t,dispatch:n,rootGetters:r},i){t.debugSocket&&kf.info(`WebSocket Error [${e.storeName}]`),await n("resetWatchBackOff"),clearTimeout(t.queueTimer),t.queueTimer=null;const a=Pf(r);if(!a){const a=(0,Jt.ZD)(r["prefs/get"](O.DX)),o=(0,Jt.ZD)(r["prefs/get"](O.G$)),s=i?.srcElement?.disconnectedAt||Date.now(),l=`${vp()(s).format(`${a} ${o}`)}`,c=i?.srcElement?.url,u=t?.socket?.tries,d=r["i18n/t"],h=r["growl/find"]({key:"url",val:c});i.type===Nt?(h&&n("growl/remove",h.id,{root:!0}),n("growl/error",{title:d("growl.connectError.title"),message:d("growl.connectError.message",{url:c,time:l,tries:u},{raw:!0}),icon:"error",earliestClose:s+xf,url:c},{root:!0})):i.type===Rt?(h&&n("growl/remove",h.id,{root:!0}),n("growl/error",{title:d("growl.disconnectError.title"),message:d("growl.disconnectError.message",{url:c,time:l,tries:u},{raw:!0}),icon:"error",earliestClose:s+xf,url:c},{root:!0})):kf.error(`WebSocket Connection Error [${e.storeName}]`,i.detail)}},send({state:e,commit:t},n){if(e.socket){const t=e.socket.send(JSON.stringify(n));if(t)return}t("enqueuePendingFrame",n)},sendImmediate({state:e},t){if(e.socket)return e.socket.send(JSON.stringify(t))},"ws.resource.start"({state:e,getters:t,commit:n,dispatch:r},i){e.debugSocket&&kf.info(`Resource start: [${t.storeName}]`,i);const a={type:i.resourceType,namespace:i.namespace,id:i.id,selector:i.selector,mode:i.mode};e.started.filter(e=>{if(e.type===a.type&&e.namespace!==a.namespace&&!e.mode&&!a.mode)return!0}).forEach(e=>{r("unwatch",e)}),n("setWatchStarted",a)},"ws.resource.error"({getters:e,commit:t,dispatch:n},r){kf.warn(`Resource error [${e.storeName}]`,r.resourceType,":",r.data.error);const i=r.data?.error?.toLowerCase();if(i.includes("watch not allowed"))t("setInError",{msg:r,reason:Ot});else if(i.includes("failed to find schema"))t("setInError",{msg:r,reason:It});else if(i.includes("too old")){t("setInError",{msg:r,reason:Dt});const i=e.backOffId(r,Dt);_f.execute({id:i,description:"Invalid watch revision, re-syncing",canFn:()=>e.canBackoff(this.$socket),delayedFn:()=>n("resyncWatch",{...r,backOffId:void 0})})}else i.includes("the server does not allow this method on the requested resource")&&t("setInError",{msg:r,reason:Lt})},"ws.resource.stop"({state:e,getters:t,commit:n,dispatch:r},i){const a=i.resourceType,o={type:a,id:i.id,namespace:i.namespace,selector:i.selector,mode:i.mode};if(e.debugSocket&&kf.info(`Resource Stop [${t.storeName}]`,a,i),!a)return void kf.error(`Resource Stop [${t.storeName}]. Received resource.stop with an empty resourceType, aborting`,i);const s=i.advancedWorker,l=!s,c=l?t["watchStarted"](o):s;if(t["schemaFor"](a)&&c){l&&n("setWatchStopped",o);const e=t.listenerManager.hasEventListeners({params:o}),i=t.listenerManager.hasStandardWatch({params:o});if(r("watch",{...o,standardWatch:!(e&&!i)}),e){const e=t.inError(o);e||t.listenerManager.triggerEventListener({event:cf.r.CHANGES,params:o})}}},"ws.resource.create"(e,t){const n=t.data,r=n?.type,i=e.getters["havePage"](r);if(i)return kf.warn(`Prevented watch \`resource.create\` data from polluting the cache for type "${r}" (currently represents a page). To prevent any further issues the watch has been stopped.`,t),void e.dispatch("unwatch",{...t,type:r});e.state.debugSocket&&kf.info(`Resource Create [${e.getters.storeName}]`,t.resourceType,t),Df(e,t,!0,"Create")},"ws.resource.change"(e,t){const n=t.data,r=n.type;if(n.message&&!n.id)return;if(r===F.yx){const t=(this.$workers||{})[e.getters.storeName];if(t)return void t.postMessage({updateSchema:n})}const i=e.getters["havePage"](r);if(i)return kf.warn(`Prevented watch \`resource.change\` data from polluting the cache for type "${r}" (currently represents a page). To prevent any further issues the watch has been stopped.`,t),void e.dispatch("unwatch",{...t,type:r});Df(e,t,!0,"Change");const a=e.rootGetters["type-map/optionsFor"](r);if(a?.alias?.length>0){const t=a?.alias||[];t.map(t=>{e.state.queue.push({action:"dispatch",event:"load",body:{...n,type:t}})})}},async"ws.resource.changes"({dispatch:e},t){await e("fetchResources",{params:t,opt:{force:!0,load:lf.m9}})},"ws.resource.remove"(e,t){const n=t.data,r=n.type;if(e.state.debugSocket&&kf.info(`Resource Remove [${e.getters.storeName}]`,r,t),r===F.yx){const t=(this.$workers||{})[e.getters.storeName];t&&t.postMessage({removeSchema:n.id})}const i=e.getters["havePage"](r);if(i)return kf.warn(`Prevented watch \`resource.remove\` data from polluting the cache for type "${r}" (currently represents a page). To prevent any further issues the watch has been stopped.`,t),void e.dispatch("unwatch",{...t,type:r});Df(e,t,!1,"Remove");const a=e.rootGetters["type-map/optionsFor"](r);if(a?.alias?.length>0){const t=a?.alias||[];t.map(t=>{const r=e.getters.byId(t,n.id);e.state.queue.push({action:"commit",event:"remove",body:r})})}}},Uf={setSocket(e,t){e.socket=t},setWantSocket(e,t){e.wantSocket=t},enqueuePendingFrame(e,t){e.pendingFrames.push(t)},dequeuePendingFrame(e,t){(0,Ud.Gj)(e.pendingFrames,t)},setWatchStarted(e,t){const n=e.started.find(e=>Lf(t,e));n||(0,Ud.PG)(e.started,t),delete e.inError[Sp(t)]},setWatchStopped(e,t){const n=e.started.find(e=>Lf(t,e));n?(0,Ud.Gj)(e.started,n):kf.warn("Tried to remove a watch that doesn't exist",t)},setInError(e,{msg:t,reason:n}){const r=Sp(t),{data:i,resourceType:a,...o}=t;o.type=t.resourceType||t.type,e.inError[r]={obj:o,reason:n}},clearInError(e,t){const n=Sp(t);delete e.inError[n]},resetSubscriptions(e){(0,Ud.IU)(e.started),(0,Ud.IU)(e.pendingFrames),(0,Ud.IU)(e.queue),clearTimeout(e.queueTimer),e.deferredRequests={},e.queueTimer=null,e.socketListenerManager=new wf(e.config.namespace)},clearFromQueue(e,t){e.queue=e.queue.filter(e=>e.body?.type!==t)}},jf={backOffId:()=>(e,t)=>`${Sp(e)}${t?`:detail=${t}`:""}`,canBackoff:()=>e=>e.state===xt,inError:e=>t=>e.inError[Sp(t)]?.reason,watchesOfType:e=>t=>e.started.filter(e=>t===(e.resourceType||e.type)),watchStarted:e=>t=>{const n=e.started.find(e=>Lf(t,e));return!!n},nextResourceVersion:(e,t)=>(n,r)=>{n=(0,mp.AZ)(n);let i=0;if(r){const e=t["byId"](n,r);i=e?.metadata?.resourceVersion}if(!i){const t=e.types[n];if(!t)return null;const r=new Ef(t.revision);if(!r.isNumber)return t.revision||null;i=r;for(const e of t.list||[])if(e&&e.metadata){const t=new Ef(e.metadata.resourceVersion);t.isNewerThan(i)&&(i=t)}i=i.asNumber}return i||null},listenerManager:e=>e.socketListenerManager},Vf={...Bf,...$f},Kf={...Ff,...Uf},Gf={...jf};var Hf=a(50382),zf=a(48074),qf=a(87811),Xf=a(82614),Wf=a(89865),Yf=a(86794),Qf=a(82637),Jf=a(2334),Zf=a(57699),em=a(46392),tm=a(4364);const nm={NORMAN:"norman",STEVE:"steve",BY_TYPE:"byType"},rm={[F.i2]:!0,[F.CU]:!0,[F.yx]:!0,[F.UI.NAV_LINK]:!0},im=new RegExp("(/v1)|(/k8s/clusters/[a-z0-9-]+/v1)");var am={isSteveUrl:()=>e=>im.test(e),isSteveCacheUrl:(e,t,n,r)=>e=>t.isSteveUrl(e)&&uf.A.isSteveCacheEnabled({rootGetters:r}),urlOptions:(e,t)=>(e,n,r)=>{n=n||{};const i=(0,ct.qg)(e||""),a=t.isSteveUrl(i.path),o=Qf.A.createParamsForPagination({schema:r,opt:n});if(o)e+=""+((e.includes("?")?"&":"?")+o);else{const r=t.isSteveCacheUrl(i.path);if(n.labelSelector&&(e+=`${e.includes("?")?"&":"?"}labelSelector=${n.labelSelector}`),n.filter){e+=""+(e.includes("?")?"&":"?");const t=Object.keys(n.filter);t.forEach(t=>{let i=n.filter[t];(0,Ud.cy)(i)||(i=[i]),a&&(e+=""+(e.includes("filter=")?"&":"filter="));const o=i.map(e=>`${encodeURI(t)}${r?"~":"="}${encodeURI(e)}`),s=e.charAt(e.length-1),l=["&","?","="].includes(s)?"":"&";e+=`${l}${o.join("&")}`})}const o=rf.A.checkAndCreateParam(n);o&&(e+=""+((e.includes("?")?"&":"?")+o));const s=n.limit;s&&(e+=`${e.includes("?")?"&":"?"}limit=${s}`),r&&n.isCollection&&(e+=`${e.includes("?")?"&":"?"}pagesize=${uf.A.defaultPageSize}`);const l=n.sortBy,c=n.sortOrder;l&&(a?e+=`${e.includes("?")?"&":"?"}sort=${("desc"===c?"-":"")+encodeURI(l)}`:(e+=`${e.includes("?")?"&":"?"}sort=${encodeURI(l)}`,c&&(e+=`${e.includes("?")?"&":"?"}order=${encodeURI(c)}`)))}if(a){if(!Array.isArray(n?.excludeFields)){const e=["metadata.managedFields"];n.excludeFields=Array.isArray(n?.omitExcludeFields)?e.filter(e=>!e.includes(n.omitExcludeFields)):e}if(n.excludeFields.length){const t=n.excludeFields.map(e=>`exclude=${e}`).join("&");e+=`${e.includes("?")?"&":"?"}${t}`}n.revision&&(e+=`${e.includes("?")?"&":"?"}revision=${n.revision}`)}return e},urlFor:(e,t)=>(n,r,i)=>{let a=(0,Yf.d)(e,t)(n,r,i);if(!i?.url&&i?.namespaced&&!rf.A.isApplicable(i)){const e=new URL(a),t=e.pathname;t?.length&&"/"===t[t.length-1]&&(e.pathname=t.substring(0,t.length-1));const n=e.pathname.split("/");r?(n.splice(n.length-1,0,i.namespaced),e.pathname=n.join("/")):e.pathname=`${e.pathname.split("/").join("/")}/${i.namespaced}`,a=e.toString()}return a},defaultModel:e=>t=>{const n=e.config.modelBaseClass||nm.BY_TYPE.STEVE;return n===nm.BY_TYPE?t?.type?.startsWith("management.cattle.io.")||t?.type?.startsWith("project.cattle.io.")?Xf.A:qf.A:n===nm.NORMAN?Wf.A:qf.A},classify:(e,t,n)=>t=>{const r=(0,zf.$)(e.config.namespace,t?.type,t?.metadata?.name,n);if(r)return r;const i=e.config.modelBaseClass||Hf.vX;return i===Hf.vX?t?.type?.startsWith("management.cattle.io.")||t?.type?.startsWith("project.cattle.io.")?Xf.A:qf.A:i===nm.NORMAN?Wf.A:qf.A},cleanResource:()=>(e,t)=>{if(t?.type===F.i2&&e)return t.counts={...e.counts,...t.counts},t;if(e?.cleanResource&&"function"===typeof e.cleanResource)return e.cleanResource(t);const n=Object.getPrototypeOf(Object.getPrototypeOf(e))?.constructor;return n===Xf.A?(0,Xf.T)(t):t},podsByNamespace:e=>t=>{const n=e.podsByNamespace[t];return n?.list||[]},gcIgnoreTypes:()=>rm,currentGeneration:e=>t=>{t=(0,mp.AZ)(t);const n=e.types[t];return n?n.generation:null},pathExistsInSchema:(e,t)=>(e,n)=>{const r=t.schemaFor(e);if(r.requiresResourceFields&&!r.hasResourceFields)return tm.warn(`pathExistsInSchema requires schema ${r.id} to have resources fields via schema definition but none were found. has the schema 'fetchResourceFields' been called?`),!1;const i=r.requiresResourceFields?r.schemaDefinitions:null,a=(0,Jt.jg)(n);let o=r;while(a.length){const n=a.shift(),s=o.resourceFields?.[n];if(e=s?.type,!e)return!1;if(a.length&&(e=(0,Jf.parseType)(e,s).pop(),o=i?i?.[e]:t.schemaFor(e),!r))return!1}return!0},headersFor:(e,t,n,r)=>({getters:e,state:t},{schema:n,pagination:i})=>{if(i)return(0,em.Bm)({state:t,getters:e,rootGetters:r},{headers:t.paginationHeaders,typeOptions:e["optionsFor"](n,!0),schema:n,columns:{name:Zf.l3,state:Zf.Xc,namespace:Zf.r1,age:Zf.tm,id:Zf.nl}})},optionsFor:()=>(e,{schema:t,pagination:n,opts:r})=>{if(n){const e={listMandatorySort:[]};return!r.listGroupsWillOverride&&t.attributes.namespaced&&(e.listGroups=Zf.ce,e.listGroupsWillOverride=!0),e}}},om=a(96730),sm=a(4364);const lm={node:{count:800,statusRow:2},"apps.deployment":{count:4e3,statusRow:5},pod:{count:4e3,statusRow:10}};({NODE_ENV:"production",BASE_URL:"/"}).perfTest&&{NODE_ENV:"production",BASE_URL:"/"}.dev&&sm.warn("Performance Testing data enabled",lm);const cm={count:1,statusRow:0,custom:null};function um(e,t){if(0===t.length)return t;const n=t[0];if(!n.apiVersion)return t;let r=lm[e];return r?("number"===typeof r&&(r={count:r}),r={...cm,...r},hm(t,r)):t}function dm(e){return Math.floor(Math.random()*e)}function hm(e,t){if(0===e.length)return e;if(0===t.count)return[];if(t.count<=e.length)return e.slice(0,t.count);const n=[];let r=0;e.forEach(e=>n.push(JSON.stringify(e)));const i=[...e],a=t.count-e.length;for(let o=0;o<a;o++){const e=JSON.parse(n[r]);if(e.id=`${e.id}_${o}`,e.metadata.uid=`uid_${o}_${1e3*Math.random()}`,e.metadata.name=`${e.metadata?.name}_${o}`,e.metadata.creationTimestamp=vp()().format(),i.push(e),t.statusRow>0){const n=1===t.statusRow||0===dm(t.statusRow);if(n){e.metadata.state=e.metadata.state||{};const t=0===dm(2);t?e.metadata.state.error=!0:e.metadata.state.transitioning=!0,e.metadata.state.message=`Test state description for ${e.metadata.name}`}}t.custom&&t.custom(e,o),r++,r===n.length&&(r=0)}return i}var pm=a(45858),fm=a(4364);function mm(e,t){let n=e.podsByNamespace[t];return n||(n={list:[],map:new Map},e.podsByNamespace[t]=n),n}function gm(e,t,n,r){r&&Object.keys(e.podsByNamespace).forEach(t=>{delete e.podsByNamespace[t]}),n.forEach(n=>{const r=e.types[F.Sm].map.get(n.id)||(0,Hf.L8)(t,n),i=mm(e,r.namespace),a=i.map.get(n.id);a?(0,om.HC)(a,n):((0,Ud.PG)(i.list,r),i.map.set(n.id,r))})}function vm(e,t){if(t&&t.type===F.Sm){const n=e.podsByNamespace[t.namespace];if(n){const e=n.list.findIndex(e=>e.id===t.id);e>=0&&n.list.splice(e,1),n.map.delete(t.id)}}else t&&t.type===F.CU&&delete e.podsByNamespace[t.id]}var bm={batchChanges(e,{ctx:t,batch:n}){if((0,om.AJ)(e,{ctx:t,batch:n}),n[F.Sm]){const r=Object.entries(n[F.Sm]).reduce((t,[n,r])=>(r.id?t.push(r):vm(e,{id:n,type:F.Sm,namespace:n.substring(0,n.indexOf("/"))}),t),[]);gm(e,t,r,!1)}n[F.CU]&&Object.entries(n[F.CU]).forEach(([t,n])=>{n.id||vm(e,{id:t,type:F.CU})})},loadAll(e,{type:t,data:n,ctx:r,skipHaveAll:i,namespace:a,revision:o,pagination:s}){({NODE_ENV:"production",BASE_URL:"/"}).dev&&{NODE_ENV:"production",BASE_URL:"/"}.perfTest&&(n=um(t,n));const l=(0,om.gh)(e,{type:t,data:n,ctx:r,skipHaveAll:i,namespace:a,revision:o,pagination:s});if(t===F.Sm&&gm(e,r,l,!0),t===F.yx){const e=(this.$workers||{})[r.getters.storeName];if(e){const t=(0,Uh.yo)(n);e.postMessage({loadSchemas:t})}}},forgetType(e,t){(0,om.WI)(e,t)&&Object.keys(e.inError).forEach(n=>{n.startsWith(t)&&delete e.inError[n]})},reset(e){(0,om.zp)(e,this.commit),this.commit(`${e.config.namespace}/resetSubscriptions`),e.podsByNamespace={},pm["default"].reset(e.config.namespace)},loadMulti(e,{data:t,ctx:n}){const r=t[0]?.type,i=e.types[r];if(i?.havePage)fm.warn(`Prevented \`loadMulti\` mutation from polluting the cache for type "${r}" (currently represents a page).`);else for(const a of t){const t=(0,om.Hh)(e,{data:a,ctx:n});if(t.type===F.Sm&&t.metadata){const n=mm(e,t.namespace);(0,Ud.PG)(n.list,t),n.map.set(t.id,t)}}},loadAdd(e,{type:t,data:n,ctx:r}){(0,om.aW)(e,{type:t,data:n,ctx:r}),n.length&&n[0].type===F.Sm&&gm(e,r,n,!1)},remove(e,t){(0,om.TF)(e,t,this.getters),vm(e,t)}},ym=a(27500),_m=a.n(ym),wm=a(4364);function Em(e,t,n){t=t||{},t.method=t.method||"get",t.headers=t.headers||{},t.headers.accept="application/jsonl";const r=new TextDecoder;let i="";return fetch(e,t).then(e=>{if(e.status>=400){wm.error("Error Streaming",e);const t={message:"Error Streaming"};return t.response=e,Promise.reject(t)}return e.body.getReader()}).then(e=>e.read().then(function t({value:a,done:o}){if(o)return void n(JSON.parse(i));i+=r.decode(a,{stream:!0});const s=i.split(/[\r\n](?=.)/);return i=s.pop(),s.map(JSON.parse).forEach(n),e.read().then(t)}))}function Sm(){const e="undefined"!==typeof TextDecoder;return e}var km=a(41580),xm=a.n(km),Am=a(4364);let Cm;function Tm(e){const t=e.split(Cm.separator)||[];return t.reduce((e,t)=>{const n=t.trim();if(!n)return e;const r=n.endsWith(",")?n.slice(0,-1):n;return e.push(Cm.separator+r),e},[])}function Nm(e,t,n,r,i=!1){const a=r?.toLowerCase();if("post"!==a&&"put"!==a||!e.headers?.warning)return;if(!Cm||i){const e=(0,au.fD)(n);Cm=e?.kubeAPI.warningHeader}const o=Tm(e.headers?.warning);if(!o.length)return;const s=o.filter(e=>!Cm.notificationBlockList.find(t=>e.startsWith(t)));if(s.length){const i=e.data?.type||e.data?.kind||n["i18n/t"]("generic.resource",{count:1});t("growl/warning",{title:"put"===r?n["i18n/t"]("growl.kubeApiHeaderWarning.titleUpdate",{resourceType:i}):n["i18n/t"]("growl.kubeApiHeaderWarning.titleCreate",{resourceType:i}),message:s.join(", "),timeout:0},{root:!0})}const l=`Validation Warnings for ${e.config.url}\n\n${o.join("\n")}`;!{NODE_ENV:"production",BASE_URL:"/"}.dev?Am.debug(l):Am.warn(`${l}\n\n`,e.data)}var Rm=a(22915),Om={async loadSchemas(e,t=!0){return await(0,lf.BH)(e,t)},async request({state:e,dispatch:t,rootGetters:n,getters:r},i){const a=i.opt||i,o=await(0,lf.wA)(n,"cluster",a);if(o)return o;a.url=a.url.replace(/\/*$/g,"");const s="epinio"===this.$config.rancherEnv?"/pp/v1/epinio/rancher":"";if(s)if(a.url.startsWith("/"))a.url=s+a.url;else{const e=(0,ct.qg)(a.url);e.path.startsWith(s)||(e.path=s+e.path,a.url=(0,ct.As)(e))}a.httpsAgent=new(_m().Agent)({rejectUnauthorized:!1});const l=(a.method||"get").toLowerCase(),c=a.headers||{},u=JSON.stringify(c)+l+a.url;let d,h;if("get"===l){if(d=e.deferredRequests[u],d){const e=(0,se.yX)();return d.push(e),e.promise}d=[],e.deferredRequests[u]=d}if(a.stream&&e.allowStreaming&&e.config.supportsStream&&Sm())return Em(a.url,a,a.onData).then(()=>({finishDeferred:m.bind(null,u,"resolve")})).catch(e=>v(e));const p=r.isSteveCacheUrl(a.url);while(1)try{const e=await f(this,a,n);if(!a.depaginate)return e;if(h)h.out.data=h.out.data.concat(e.data);else{const t=p&&a.url.includes(`pagesize=${uf.A.defaultPageSize}`)?{total:e.count,page:1,url:a.url}:null,n=t?null:{};h={pageByLimit:n,pageByNumber:t,out:e}}const{total:t,page:r,url:i}=h.pageByNumber||{};if(h.pageByLimit&&e?.pagination?.next)a.url=e?.pagination?.next;else{if(!(h.pageByNumber&&t>uf.A.defaultPageSize*r))return delete h.out.pagination?.first,delete h.out.pagination?.last,delete h.out.pagination?.next,delete h.out.pagination?.partial,delete h.out.continue,h.out;h.pageByNumber.page+=1,a.url=(0,ct.R_)(i,"page",`${h.pageByNumber.page}`)}}catch(Uo){return v(Uo)}function f(e,n,r){return e.$axios(n).then(e=>{let i;return i=n.responseType?e:g(e),m(u,"resolve",i),Nm(e,t,r,n.method),i})}function m(t,n="resolve",r){const i=e.deferredRequests[t]||[];while(i.length)i.pop()[n](r);delete e.deferredRequests[t]}function g(e){let r=e.data;const i=e.headers["x-api-cattle-auth"];return i&&i!==n["auth/fromHeader"]&&t("auth/gotHeader",i,{root:!0}),204!==e.status&&null!==r||(r={}),"object"!==typeof r&&(r={data:r}),Object.defineProperties(r,{_status:{value:e.status},_statusText:{value:e.statusText},_headers:{value:e.headers},_req:{value:e.request},_url:{value:a.url}}),r}function v(e){let n=e;if(e?.response){const r=e.response;!1!==a.redirectUnauthorized&&401===r.status&&t("auth/logout",a.logoutOnError,{root:!0}),"undefined"!==typeof r.data&&(n=g(r))}return m(u,"reject",n),Promise.reject(n)}},promptRestore({commit:e,state:t},n){e("action-menu/togglePromptRestore",n,{root:!0})},async resourceAction({getters:e,dispatch:t},{resource:n,actionName:r,body:i,opt:a}){a=a||{},a.url||(a.url=n.actionLinkFor(r)),a.method="post",a.data=i;const o=await t("request",{opt:a});return!1!==a.load&&"collection"===o.type?(await t("loadMulti",o.data),o.data.map(t=>e.byId(t.type,t.id)||t)):!1!==a.load&&o.type&&o.id?t("load",{data:o}):o},async collectionAction({getters:e,dispatch:t},{type:n,actionName:r,body:i,opt:a}){if(a=a||{},!a.url){const t=e["schemaFor"](n);a.url=(0,ct.R_)(t.links.collection,"action",r)}a.method="post",a.data=i;const o=await t("request",{opt:a});return!1!==a.load&&"collection"===o.type?(await t("loadMulti",o.data),o.data.map(t=>e.byId(t.type,t.id)||t)):!1!==a.load&&o.type&&o.id?t("load",{data:o}):o},createNamespace(e,t){return(0,Hf.L8)(e,{type:F.CU,metadata:{name:t.name}})},cleanForNew(e,t){const n=t.metadata||{};return(0,Uh.cX)(t,Dm),(0,Uh.cX)(n,Pm),Bm(n.annotations),Bm(n.labels),n.name="",t?.spec?.crd?.spec?.names?.kind&&(t.spec.crd.spec.names.kind=""),t},cleanForDiff(e,t){const n=t.metadata||{};return n.labels||(n.labels={}),n.annotations||(n.annotations={}),Mm(t),(0,Uh.cX)(t,Im),(0,Uh.cX)(n,Lm),Bm(n.annotations),Bm(n.labels),t},cleanForDetail(e,t){return t.metadata||(0,Uh.hZ)(t,"metadata",{}),t.metadata.annotations||(0,Uh.hZ)(t,"metadata.annotations",{}),t.metadata.labels||(0,Uh.hZ)(t,"metadata.labels",{}),t},cleanForDownload(e,t){return(0,Rm.C)(t)}};const Im=["actions","links","status","__rehydrate","__clone"],Lm=["ownerReferences","selfLink","creationTimestamp","deletionTimestamp","state","fields","relationships","generation","managedFields","resourceVersion"],Dm=["actions","links","status","id"],Pm=[...Lm,"uid"];function Mm(e){for(const t in e)if(t.startsWith("__"))delete e[t];else{const n=e[t];xm()(n)&&Mm(n)}}function Bm(e){e&&Object.keys(e).forEach(t=>{t.match(/(^|field\.)cattle\.io(\/.*|$)/)&&delete e[t]})}var Fm,$m;function Um(e,t){return{...pp.fs,state(){return{...(0,pp.Ut)(e,t),socket:null,queue:[],wantSocket:!1,debugSocket:!1,allowStreaming:!0,pendingFrames:[],deferredRequests:{},started:[],inError:{},socketListenerManager:(0,i.markRaw)(new wf),podsByNamespace:{}}},getters:{...pp.fs.getters,...am,...Gf},mutations:{...pp.fs.mutations,...bm,...Kf},actions:{...pp.fs.actions,...Om,...Vf}}}const jm=(e,t)=>{If(e,t)};var Vm=e=>{switch(e.namespace=e.namespace||"",e.baseUrl=e.baseUrl||`/${e.namespace}`,e.namespace){case"management":e.modelBaseClass=$m.BY_TYPE;break;case"rancher":e.modelBaseClass=$m.NORMAN;break}return Fm(Um(e.namespace,e.baseUrl),e,jm)};(Object.getOwnPropertyDescriptor(Vm,"name")||{}).writable||Object.defineProperty(Vm,"name",{value:"default",configurable:!0});var Km=a(74302),Gm={namespaceFilterOptions:(e,t,n,r)=>({addNamespace:e,divider:n,notFilterNamespaces:i})=>{const a=[{id:Gd.tj,kind:Gd.T6.SPECIAL,label:r["i18n/t"]("nav.ns.all")}];n(a);const o=t.filterNamespace(i);if(!r["isStandaloneHarvester"]&&r["currentCluster"]&&"_"!==r["currentCluster"]?.id){const t=r["currentCluster"];let i=r["management/all"](F.Mc.PROJECT);i=(0,Km.Ul)((0,Ud.WP)(i,"spec.clusterName",t.id),["nameDisplay"]).filter(e=>"System"!==e.nameDisplay);const s={},l={};let c=!0;l["null"]=[];for(const e of i)s[e.metadata.name]=e;for(const e of o){let t=e.projectId;t&&s[t]||(t="null");let n=l[t];n||(n=[],l[e.projectId]=n),n.push(e)}for(const r of i){const t=r.metadata.name;c?c=!1:n(a),a.push({id:`project://${t}`,kind:"project",label:r.nameDisplay});const i=l[t]||[];e(a,i)}const u=l["null"];u.length&&(c||n(a),a.push({id:Gd.pF,kind:"project",label:r["i18n/t"]("nav.ns.orphan")}),e(a,u))}else e(a,o);return a},filterNamespace(e,t,n,r,i){const a=t.all("namespace");return(e=[])=>a.filter(t=>!t.isSystem||e.includes(t.id))},filterProject(e,t,n,r){const i=r["management/all"](F.Mc.PROJECT),a=r["currentCluster"],o=a.id;return i.filter(e=>e.spec.clusterName===o&&"System"!==e.nameDisplay)}},Hm={},zm={async loadCluster({state:e,commit:t,dispatch:n,getters:r,rootGetters:i,rootState:a},{id:o}){await n("management/waitForSchema",{type:F.Mc.CLUSTER},{root:!0});const s=await n("management/find",{type:F.Mc.CLUSTER,id:o,opt:{url:`${F.Mc.CLUSTER}s/${escape(o)}`}},{root:!0});let c=`/k8s/clusters/${escape(o)}/v1/harvester`;if("local"===o&&(c="/v1/harvester"),!s)throw t("clusterId",null,{root:!0}),t("applyConfig",{baseUrl:null}),new Uu.oV(o);t("applyConfig",{baseUrl:c}),await Promise.all([n("loadSchemas",!0)]),n("subscribe");const u={type:F.Mc.PROJECT,opt:{url:`${F.Mc.PROJECT}/${escape(o)}`,watchNamespace:o}},d=async()=>{let e=3e4;const t=100;while(e>0&&!a.managementReady)await setTimeout(()=>{},t),e-=t;if(i["management/schemaFor"](F.Mc.PROJECT))return n("management/findAll",u,{root:!0})};if("local"!==o&&r["schemaFor"](F.Mc.SETTING)){const e=await n("findAll",{type:F.Mc.SETTING,id:$.HG.SYSTEM_NAMESPACES,opt:{url:`${c}/${F.Mc.SETTING}s/`,force:!0}}),r=e?.find(e=>e.id===$.HG.SYSTEM_NAMESPACES);if(r){const e=(r.value||r.default)?.split(",");t("setSystemNamespaces",e,{root:!0})}}const h={projects:d(),virtualCount:n("findAll",{type:F.i2}),virtualNamespaces:n("findAll",{type:F.CU}),settings:n("findAll",{type:l.rk.SETTING}),clusters:n("management/findAll",{type:F.Mc.CLUSTER,opt:{force:!0}},{root:!0})};r["schemaFor"](l.rk.RESOURCE_QUOTA)&&(h.resourceQuota=n("findAll",{type:l.rk.RESOURCE_QUOTA})),r["schemaFor"](l.rk.UPGRADE)&&(h.upgrades=n("findAll",{type:l.rk.UPGRADE})),r["schemaFor"](l.rk.UPGRADE_LOG)&&(h.upgradeLogs=n("findAll",{type:l.rk.UPGRADE_LOG}));const p=await(0,se.kR)(h),f=i["harvester-common/getFeatureEnabled"]("supportHarvesterClusterVersion");if(!f){const e=i["productId"];return void this.$router?.push({name:`${e}-c-cluster-unsupported${"local"===o?"-standalone":""}`,params:{product:e}})}await n("cleanNamespaces",null,{root:!0}),t("updateNamespaces",{filters:[],all:r.filterNamespace(),getters:r},{root:!0});const m={def:!1,parseJSON:!0,inheritFrom:O.IJ,asUserPreference:!0};t("prefs/setDefinition",{name:"view-in-api",definition:m},{root:!0}),t("prefs/setDefinition",{name:"all-namespaces",definition:m},{root:!0}),t("prefs/setDefinition",{name:"theme-shortcut",definition:m},{root:!0}),t("prefs/setDefinition",{name:"plugin-developer",definition:m},{root:!0});const g=!(1===p.clusters.length&&"local"===p.clusters[0].metadata?.name);g&&t("managementChanged",{ready:!0,isMultiCluster:!0,isRancher:!0},{root:!0})}};const qm=()=>{const e=Um(null,null);return e.getters={...e.getters,...Gm},e.mutations={...e.mutations,...Hm},e.actions={...e.actions,...zm},e},Xm={namespace:r.KR,isClusterStore:!0};var Wm={specifics:qm(),config:Xm,init:jm},Ym=a(52880),Qm=a(38223),Jm=a(66905),Zm=a(66490),eg=a(84757);const tg=63;function ng(e,t,n,r){const{domain:{devices:{interfaces:i}},networks:a}=e,o=[];return i.map((e,r)=>{const i=a.find(t=>e.name===t.name),s=e.name||i.name||`Network ${r+1}`,l=t["i18n/t"]("harvester.fields.network"),c=t["i18n/t"]("harvester.validation.vm.network.lowerType"),u=t["i18n/t"]("harvester.validation.vm.network.upperType");if(ag(t,n,e.name,o,s,l,c,u),i.multus&&!i.multus.networkName){const e=t["i18n/t"]("harvester.fields.network"),r=t["i18n/t"]("validation.required",{key:e});n.push(t["i18n/t"]("harvester.validation.generic.tabError",{prefix:s,message:r}))}if(e.macAddress&&!(0,Qm.i)(e.macAddress)&&!i.pod){const e=t["i18n/t"]("harvester.validation.vm.network.macFormat");n.push(t["i18n/t"]("harvester.validation.generic.tabError",{prefix:s,message:e}))}}),n}function rg(e,t,n,r,i,a){const o=r.includes("isVMTemplate"),s=o?this.value.spec.vm:a,l=(0,Zm.v)(s),c=e.template.spec.volumes||[],u=e.template.spec.domain.devices.disks||[],d=[];u.forEach((e,r)=>{const i=e.name||c[r]?.name||`Volume ${r+1}`;if(!e.disk&&!e.cdrom){const e=t["i18n/t"]("harvester.fields.type"),r=t["i18n/t"]("validation.required",{key:e});n.push(t["i18n/t"]("harvester.validation.generic.tabError",{prefix:i,message:r}))}const a=t["i18n/t"]("harvester.fields.volume"),o=t["i18n/t"]("harvester.validation.vm.volume.lowerType"),s=t["i18n/t"]("harvester.validation.vm.volume.upperType");ag(t,n,e.name,d,i,a,o,s)});let h=!1;return c.forEach((e,r)=>{const{type:i,typeValue:s}=ig(t,e,l,a),c=e.name||r+1;if([Jm.xO.IMAGE,Jm.xO.ATTACH_VOLUME,Jm.xO.CONTAINER].includes(i)&&(h=!0),i===Jm.xO.NEW||i===Jm.xO.IMAGE){if(!/([1-9]|[1-9][0-9]+)[a-zA-Z]+/.test(s?.spec?.resources?.requests?.storage)){const e=t["i18n/t"]("harvester.fields.size"),r=t["i18n/t"]("validation.required",{key:e});n.push(t["i18n/t"]("harvester.validation.generic.tabError",{prefix:c,message:r}))}if(s?.spec?.resources?.requests?.storage&&!/^([0-9][0-9]{0,8})[a-zA-Z]+$/.test(s?.spec?.resources?.requests?.storage)){const e=t["i18n/t"]("harvester.validation.generic.maximumSize",{max:`999999999 ${eg.Wl}`});n.push(t["i18n/t"]("harvester.validation.generic.tabError",{prefix:c,message:e}))}if(i===Jm.xO.IMAGE&&!s?.spec?.storageClassName&&!o){const e=t["i18n/t"]("harvester.fields.image"),r=t["i18n/t"]("validation.required",{key:e});n.push(t["i18n/t"]("harvester.validation.generic.tabError",{prefix:c,message:r}))}if(!s?.spec?.storageClassName&&e?.persistentVolumeClaim?.claimName&&i!==Jm.xO.IMAGE){const e=t["i18n/t"]("harvester.fields.storageClass"),r=t["i18n/t"]("validation.required",{key:e});n.push(t["i18n/t"]("harvester.validation.generic.tabError",{prefix:c,message:r}))}}if(i===Jm.xO.ATTACH_VOLUME){const r=t["harvester/all"](F.YH),i=e?.persistentVolumeClaim?.claimName,o=r.find(e=>e.id===`${a.metadata.namespace}/${i}`);if(!o&&i){const e=t["i18n/t"]("harvester.fields.volume");n.push(t["i18n/t"]("harvester.validation.generic.hasDelete",{type:e,name:i}))}if(!i){const e=t["i18n/t"]("harvester.virtualMachine.volume.volume");n.push(t["i18n/t"]("validation.required",{key:e}))}}if(i===Jm.xO.CONTAINER&&!e.containerDisk.image){const e=t["i18n/t"]("harvester.fields.dockerImage"),r=t["i18n/t"]("validation.required",{key:e});n.push(t["i18n/t"]("harvester.validation.generic.tabError",{prefix:c,message:r}))}}),h||a.links||n.push(t["i18n/t"]("harvester.validation.vm.volume.needAtLeastOneBootable")),n}function ig(e,t,n,r){let i=null;const a=e["harvester/all"](F.YH);if(t.persistentVolumeClaim){const e=t?.persistentVolumeClaim?.claimName,o=a.find(t=>t.id===`${r.metadata.namespace}/${e}`);if(o)return{type:Jm.xO.ATTACH_VOLUME,typeValue:null};if(i=n.find(e=>t.persistentVolumeClaim.claimName===e.metadata.name&&e.metadata?.annotations&&Object.prototype.hasOwnProperty.call(e.metadata.annotations,"harvesterhci.io/imageId")),i)return{type:Jm.xO.IMAGE,typeValue:i};if(i=n.find(e=>t.persistentVolumeClaim.claimName===e.metadata.name),i)return{type:Jm.xO.NEW,typeValue:i}}return t.containerDisk?{type:Jm.xO.CONTAINER,typeValue:null}:{}}function ag(e,t,n,r=[],i,a,o,s){if(-1!==r.findIndex(e=>n===e)&&t.push(e["i18n/t"]("harvester.validation.vm.duplicatedName",{type:a,name:n})),r.push(n),n&&n?.length>tg){const n=e["i18n/t"]("harvester.fields.name"),r=e["i18n/t"]("harvester.validation.generic.maxLength",{key:n,max:tg});t.push(e["i18n/t"]("harvester.validation.generic.tabError",{prefix:i,message:r}))}if(!n){const n=e["i18n/t"]("harvester.fields.name"),r=e["i18n/t"]("validation.required",{key:n});t.push(e["i18n/t"]("harvester.validation.generic.tabError",{prefix:i,message:r}))}if(!(0,Qm.z)(n)){const r="^[a-z0-9]([-a-z0-9]*[a-z0-9])?$";t.push(e["i18n/t"]("harvester.validation.generic.regex",{lowerType:o,name:n,regex:r,upperType:s}))}}var og=a(95799);function sg(e,t,n,r){const i=t["i18n/t"];if(!e||""===e){const e=i("harvester.volume.size");return n.push(i("validation.required",{key:e})),n}const a=lg(e),o=999999,s=/^[1-9]\d*$/;return(!s.test(a)||a>o)&&n.push(i("harvester.validation.volume.sizeRange")),n}function lg(e){if(!e)return null;const t=(0,og.ao)(e);return(0,og.Mo)(t,{addSuffix:!1,increment:1024,minExponent:3,maxExponent:3})}function cg(e,t,n,r){const i=t["i18n/t"];if(!e)return n;const a=JSON.parse(e),o=a.type;return o?("s3"===o&&(a.accessKeyId||n.push(i("validation.required",{key:"accessKeyId"})),a.secretAccessKey||n.push(i("validation.required",{key:"secretAccessKey"})),a.bucketRegion||n.push(i("validation.required",{key:"bucketRegion"})),a.bucketName||n.push(i("validation.required",{key:"bucketName"}))),a.endpoint||"s3"===o||n.push(i("validation.required",{key:"endpoint"})),n):n}function ug(e,t,n,r){const{ntpServers:i}=JSON.parse(e),a=t["i18n/t"],o=/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}$/,s=/^(?!:\/\/)(?:[a-zA-Z0-9-]{1,63}\.)+[a-zA-Z]{2,63}$/;if(!i)return n;const l=new Set(i);return i.length!==l.size&&n.push(a("harvester.setting.ntpServers.isDuplicate")),i.find(e=>!o.test(e)&&!s.test(e))&&n.push(a("harvester.setting.ntpServers.isNotIPV4")),n}function dg(e,t,n,r,i,a){if(!e){const e=t["i18n/t"]("harvester.volume.size");n.push(t["i18n/t"]("validation.required",{key:e}))}if(e&&!/^([0-9][0-9]{0,8})[a-zA-Z]+$/.test(e)){const e=t["i18n/t"]("harvester.validation.generic.maximumSize",{max:`999999999 ${eg.Wl}`});n.push(e)}return n}function hg(e,t,n,r){const i=kh().load(e),a=[{path:"prometheus.prometheusSpec.scrapeInterval",translationKey:"monitoring.prometheus.config.scrape"},{path:"prometheus.prometheusSpec.evaluationInterval",translationKey:"monitoring.prometheus.config.evaluation"},{path:"prometheus.prometheusSpec.retention",translationKey:"monitoring.prometheus.config.retention"},{path:"prometheus.prometheusSpec.retentionSize",translationKey:"monitoring.prometheus.config.retentionSize"},{path:"prometheus.prometheusSpec.resources.requests.cpu",translationKey:"monitoring.prometheus.config.requests.cpu"},{path:"prometheus.prometheusSpec.resources.requests.memory",translationKey:"monitoring.prometheus.config.requests.memory"},{path:"prometheus.prometheusSpec.resources.limits.cpu",translationKey:"monitoring.prometheus.config.limits.cpu"},{path:"prometheus.prometheusSpec.resources.limits.memory",translationKey:"monitoring.prometheus.config.limits.memory"},{path:"prometheus-node-exporter.resources.requests.cpu",translationKey:"monitoring.prometheus.config.requests.cpu"},{path:"prometheus-node-exporter.resources.requests.memory",translationKey:"monitoring.prometheus.config.requests.memory"},{path:"prometheus-node-exporter.resources.limits.cpu",translationKey:"monitoring.prometheus.config.limits.cpu"},{path:"prometheus-node-exporter.resources.limits.memory",translationKey:"monitoring.prometheus.config.limits.memory"},{path:"grafana.resources.requests.cpu",translationKey:"monitoring.prometheus.config.requests.cpu"},{path:"grafana.resources.requests.memory",translationKey:"monitoring.prometheus.config.requests.memory"},{path:"grafana.resources.limits.cpu",translationKey:"monitoring.prometheus.config.limits.cpu"},{path:"grafana.resources.limits.memory",translationKey:"monitoring.prometheus.config.limits.memory"},{path:"alertmanager.alertmanagerSpec.retention",translationKey:"monitoring.prometheus.config.retention"},{path:"alertmanager.alertmanagerSpec.resources.requests.cpu",translationKey:"monitoring.prometheus.config.requests.cpu"},{path:"alertmanager.alertmanagerSpec.resources.requests.memory",translationKey:"monitoring.prometheus.config.requests.memory"},{path:"alertmanager.alertmanagerSpec.resources.limits.cpu",translationKey:"monitoring.prometheus.config.limits.cpu"},{path:"alertmanager.alertmanagerSpec.resources.limits.memory",translationKey:"monitoring.prometheus.config.limits.memory"}];return a.forEach(e=>{(0,Uh.Jt)(i,e.path)||n.push(t["i18n/t"]("validation.required",{key:t["i18n/t"](e.translationKey)}))}),n}function pg(e,t,n,r){const i=kh().load(e),a=[{path:"fluentbit.resources.requests.cpu",translationKey:"monitoring.prometheus.config.requests.cpu"},{path:"fluentbit.resources.requests.memory",translationKey:"monitoring.prometheus.config.requests.memory"},{path:"fluentbit.resources.limits.cpu",translationKey:"monitoring.prometheus.config.limits.cpu"},{path:"fluentbit.resources.limits.memory",translationKey:"monitoring.prometheus.config.limits.memory"},{path:"fluentd.resources.requests.cpu",translationKey:"monitoring.prometheus.config.requests.cpu"},{path:"fluentd.resources.requests.memory",translationKey:"monitoring.prometheus.config.requests.memory"},{path:"fluentd.resources.limits.cpu",translationKey:"monitoring.prometheus.config.limits.cpu"},{path:"fluentd.resources.limits.memory",translationKey:"monitoring.prometheus.config.limits.memory"}];return a.forEach(e=>{(0,Uh.Jt)(i,e.path)||n.push(t["i18n/t"]("validation.required",{key:t["i18n/t"](e.translationKey)}))}),n}function fg(e=[],t,n,r){const i=t["i18n/t"];return 0===e.length&&n.push(i("validation.required",{key:i("harvester.ipPool.tabs.range")},!0)),e.map(e=>{e.subnet||n.push(i("validation.required",{key:i("harvester.ipPool.subnet.label")},!0))}),n}function mg(e,t,n,r,i){return/^[a-f0-9]{128}$/i.test(e)||n.push(t["i18n/t"]("harvester.validation.hash.sha512")),n}var gg={imageUrl:Ym.b8,dataVolumeSize:sg,vmNetworks:ng,vmDisks:rg,fileRequired:Ym._X,backupTarget:cg,ntpServers:ug,volumeSize:dg,rancherMonitoring:hg,rancherLogging:pg,ranges:fg,hashSHA512:mg};a(18955);function vg(e){r.KR;n(e),e.metadata=a(8330),e.metadata.icon=a(99086),e.addProduct(a(66338)),e.addDashboardStore(hp.config.namespace,hp.specifics,hp.config),e.addDashboardStore(Wm.config.namespace,Wm.specifics,Wm.config,Wm.init),e.validators=gg,e.addRoutes(rp),e.register("component","NavHeaderRight",(0,i.defineAsyncComponent)(()=>Promise.all([a.e(327),a.e(961)]).then(a.bind(a,41961))))}Object.defineProperty(vg,"name",{value:"default",configurable:!0});var bg=vg}(),o}()});
|
||
//# sourceMappingURL=harvester-1.9.0-dev.umd.min.js.map |