@techdocs/cli
Version:
Utility CLI for managing TechDocs sites in Backstage.
15 lines • 121 kB
JavaScript
(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([["7227"],{86912(e){e.exports=function(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)}},73788(e){e.exports=function(e,t,n,s){for(var i=-1,r=null==e?0:e.length;++i<r;){var o=e[i];t(s,o,n(o),e)}return s}},82226(e,t,n){var s=n(84570);e.exports=function(e,t,n,i){return s(e,function(e,s,r){t(i,e,n(e),r)}),i}},84570(e,t,n){var s=n(47170);e.exports=n(45770)(s)},90313(e,t,n){var s=n(11129),i=n(20714);e.exports=function e(t,n,r,o,l){var a=-1,c=t.length;for(r||(r=i),l||(l=[]);++a<c;){var u=t[a];n>0&&r(u)?n>1?e(u,n-1,r,o,l):s(l,u):o||(l[l.length]=u)}return l}},41393(e,t,n){var s=n(84570),i=n(36529);e.exports=function(e,t){var n=-1,r=i(e)?Array(e.length):[];return s(e,function(e,s,i){r[++n]=t(e,s,i)}),r}},70310(e,t,n){var s=n(65111),i=n(57923),r=n(3334),o=n(41393),l=n(50642),a=n(49460),c=n(46775),u=n(22053),f=n(53142);e.exports=function(e,t,n){t=t.length?s(t,function(e){return f(e)?function(t){return i(t,1===e.length?e[0]:e)}:e}):[u];var h=-1;return t=s(t,a(r)),l(o(e,function(e,n,i){return{criteria:s(t,function(t){return t(e)}),index:++h,value:e}}),function(e,t){return c(e,t,n)})}},23945(e,t,n){var s=n(22053),i=n(75234),r=n(80796);e.exports=function(e,t){return r(i(e,t,s),e+"")}},47403(e,t,n){var s=n(82619),i=n(72532),r=n(22053);e.exports=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:s(t),writable:!0})}:r},50642(e){e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},63521(e,t,n){var s=n(51187);e.exports=function(e,t){if(e!==t){var n=void 0!==e,i=null===e,r=e==e,o=s(e),l=void 0!==t,a=null===t,c=t==t,u=s(t);if(!a&&!u&&!o&&e>t||o&&l&&c&&!a&&!u||i&&l&&c||!n&&c||!r)return 1;if(!i&&!o&&!u&&e<t||u&&n&&r&&!i&&!o||a&&n&&r||!l&&r||!c)return -1}return 0}},46775(e,t,n){var s=n(63521);e.exports=function(e,t,n){for(var i=-1,r=e.criteria,o=t.criteria,l=r.length,a=n.length;++i<l;){var c=s(r[i],o[i]);if(c){if(i>=a)return c;return c*("desc"==n[i]?-1:1)}}return e.index-t.index}},72195(e,t,n){var s=n(73788),i=n(82226),r=n(3334),o=n(53142);e.exports=function(e,t){return function(n,l){var a=o(n)?s:i,c=t?t():{};return a(n,e,r(l,2),c)}}},45770(e,t,n){var s=n(36529);e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!s(n))return e(n,i);for(var r=n.length,o=t?r:-1,l=Object(n);(t?o--:++o<r)&&!1!==i(l[o],o,l););return n}}},20714(e,t,n){var s=n(65650),i=n(3283),r=n(53142),o=s?s.isConcatSpreadable:void 0;e.exports=function(e){return r(e)||i(e)||!!(o&&e&&e[o])}},74535(e,t,n){var s=n(46285),i=n(36529),r=n(69632),o=n(41580);e.exports=function(e,t,n){if(!o(n))return!1;var l=typeof t;return("number"==l?!!(i(n)&&r(t,n.length)):"string"==l&&t in n)&&s(n[t],e)}},75234(e,t,n){var s=n(86912),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,l=i(r.length-t,0),a=Array(l);++o<l;)a[o]=r[t+o];o=-1;for(var c=Array(t+1);++o<t;)c[o]=r[o];return c[t]=n(a),s(e,this,c)}}},80796(e,t,n){var s=n(47403);e.exports=n(3316)(s)},3316(e){var t=Date.now;e.exports=function(e){var n=0,s=0;return function(){var i=t(),r=16-(i-s);if(s=i,r>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},82619(e){e.exports=function(e){return function(){return e}}},87809(e,t,n){var s=n(57073),i=n(72195),r=Object.prototype.hasOwnProperty;e.exports=i(function(e,t,n){r.call(e,n)?e[n].push(t):s(e,n,[t])})},40074(e,t,n){var s=n(90313),i=n(70310),r=n(23945),o=n(74535);e.exports=r(function(e,t){if(null==e)return[];var n=t.length;return n>1&&o(e,t[0],t[1])?t=[]:n>2&&o(t[0],t[1],t[2])&&(t=[t[0]]),i(e,s(t,1),[])})},15784(e,t,n){"use strict";n.d(t,{vw:()=>et,LY:()=>Z,CR:()=>Q});var s=n(57873),i=n(95288),r=n(87313),o=n(41181),l=n(82072),a=n(23413),c=n(91832),u=n(84351),f=n(94816),h=n(59878);let d=new WeakMap;function p(e,t){var n;let{id:s}=d.get(e)??{};if(!s)throw Error("Unknown list");return`${s}-${"string"==typeof(n=t)?n.replace(/\s*/g,""):""+n}`}var m=n(28052),y=n(65095),g=n(46713),b=n(57648),v=n(47499),k=n(36794),w=n(33875),S=n(64306),E=n(28176),N=n(66030),O=n(14041);let A=new WeakMap;var L={};L={"ar-AE":{removeButtonLabel:"إزالة",removeDescription:"اضغط على مفتاح DELETE لإزالة علامة."},"bg-BG":{removeButtonLabel:"Премахване",removeDescription:"Натиснете Delete, за да премахнете маркера."},"cs-CZ":{removeButtonLabel:"Odebrat",removeDescription:"Stisknut\xedm kl\xe1vesy Delete odeberete značku."},"da-DK":{removeButtonLabel:"Fjern",removeDescription:"Tryk p\xe5 Slet for at fjerne tag."},"de-DE":{removeButtonLabel:"Entfernen",removeDescription:"Auf „L\xf6schen“ dr\xfccken, um das Tag zu entfernen."},"el-GR":{removeButtonLabel:"Κατάργηση",removeDescription:"Πατήστε Διαγραφή για να καταργήσετε την ετικέτα."},"en-US":{removeDescription:"Press Delete to remove tag.",removeButtonLabel:"Remove"},"es-ES":{removeButtonLabel:"Quitar",removeDescription:"Pulse Eliminar para quitar la etiqueta."},"et-EE":{removeButtonLabel:"Eemalda",removeDescription:"Sildi eemaldamiseks vajutage kustutusklahvi Delete."},"fi-FI":{removeButtonLabel:"Poista",removeDescription:"Poista tunniste painamalla Poista-painiketta."},"fr-FR":{removeButtonLabel:"Supprimer",removeDescription:"Appuyez sur Supprimer pour supprimer l’\xe9tiquette."},"he-IL":{removeButtonLabel:"הסר",removeDescription:"לחץ על מחק כדי להסיר תג."},"hr-HR":{removeButtonLabel:"Ukloni",removeDescription:"Pritisnite Delete za uklanjanje oznake."},"hu-HU":{removeButtonLabel:"Elt\xe1vol\xedt\xe1s",removeDescription:"Nyomja meg a Delete billentyűt a c\xedmke elt\xe1vol\xedt\xe1s\xe1hoz."},"it-IT":{removeButtonLabel:"Rimuovi",removeDescription:"Premi Elimina per rimuovere il tag."},"ja-JP":{removeButtonLabel:"削除",removeDescription:"タグを削除するには、Delete キーを押します。"},"ko-KR":{removeButtonLabel:"제거",removeDescription:"태그를 제거하려면 Delete 키를 누르십시오."},"lt-LT":{removeButtonLabel:"Pašalinti",removeDescription:"Norėdami pašalinti žymą, paspauskite „Delete“ klavišą."},"lv-LV":{removeButtonLabel:"Noņemt",removeDescription:"Nospiediet Delete [Dzēst], lai noņemtu tagu."},"nb-NO":{removeButtonLabel:"Fjern",removeDescription:"Trykk p\xe5 Slett for \xe5 fjerne taggen."},"nl-NL":{removeButtonLabel:"Verwijderen",removeDescription:"Druk op Verwijderen om de tag te verwijderen."},"pl-PL":{removeButtonLabel:"Usuń",removeDescription:"Naciśnij Usuń, aby usunąć znacznik."},"pt-BR":{removeButtonLabel:"Remover",removeDescription:"Pressione Delete para remover a tag."},"pt-PT":{removeButtonLabel:"Eliminar",removeDescription:"Prima Delete para eliminar a tag."},"ro-RO":{removeButtonLabel:"\xcendepărtaţi",removeDescription:"Apăsați pe Delete (Ștergere) pentru a elimina eticheta."},"ru-RU":{removeButtonLabel:"Удалить",removeDescription:"Нажмите DELETE, чтобы удалить тег."},"sk-SK":{removeButtonLabel:"Odstr\xe1niť",removeDescription:"Ak chcete odstr\xe1niť značku, stlačte kl\xe1ves Delete."},"sl-SI":{removeButtonLabel:"Odstrani",removeDescription:"Pritisnite Delete, da odstranite oznako."},"sr-SP":{removeButtonLabel:"Ukloni",removeDescription:"Pritisnite Obriši da biste uklonili oznaku."},"sv-SE":{removeButtonLabel:"Ta bort",removeDescription:"Tryck p\xe5 Radera f\xf6r att ta bort taggen."},"tr-TR":{removeButtonLabel:"Kaldır",removeDescription:"Etiketi kaldırmak i\xe7in Sil tuşuna basın."},"uk-UA":{removeButtonLabel:"Вилучити",removeDescription:"Натисніть Delete, щоб вилучити тег."},"zh-CN":{removeButtonLabel:"删除",removeDescription:"按下“删除”以删除标记。"},"zh-TW":{removeButtonLabel:"移除",removeDescription:"按 Delete 鍵以移除標記。"}};var x=n(38919),T=n(73817),I=n(23977),$=n(78484),D=n(34122),C=n(56059),B=n(21317),_=n(81901),K=n(25435),M=n(95783),P=n(90970);let j={ltr:"ArrowRight",rtl:"ArrowLeft"},q={ltr:"ArrowLeft",rtl:"ArrowRight"};function R(e){let t=null,n=null;do(n=e.lastChild())&&(t=n);while(n);return t}var U=n(44018),F=n(87426),V=n(3453),J=n(7553),W=n(86414),z=n(44031),Y=n(54469);let G=(0,O.createContext)(null),H=(0,O.createContext)(null),Q=(0,O.forwardRef)(function(e,t){return[e,t]=(0,i.JT)(e,t,G),O.createElement(l.DN.Provider,{value:null},O.createElement(F.GQ,{content:e.children},n=>O.createElement(X,{props:e,forwardedRef:t,collection:n})))});function X({props:e,forwardedRef:t,collection:n}){let s=(0,O.useRef)(null),{id:r,...c}=e;[c,s]=(0,i.JT)(c,s,a.Co);let{filter:u,shouldUseVirtualFocus:p,...L}=c,[x,T]=(0,i._E)(!e["aria-label"]&&!e["aria-labelledby"]),I=(0,J.p)({...L,children:void 0,collection:n}),$=(0,J.Z)(I,u),D=(0,h.$)(c,{global:!0}),C=Object.fromEntries(Object.entries(D).map(([e,t])=>[e,"id"===e?t:void 0])),{gridProps:B,labelProps:_,descriptionProps:K,errorMessageProps:M}=function(e,t,n){let{direction:s}=(0,N.Y)(),i=e.keyboardDelegate||new(0,w.n)({collection:t.collection,ref:n,orientation:"horizontal",direction:s,disabledKeys:t.disabledKeys,disabledBehavior:t.selectionManager.disabledBehavior}),{labelProps:r,fieldProps:o,descriptionProps:l,errorMessageProps:a}=(0,S.M)({...e,labelElementType:"span"}),{gridProps:c}=function(e,t,n){let{isVirtualized:s,keyboardDelegate:i,layoutDelegate:r,onAction:o,disallowTypeAhead:l,linkBehavior:a="action",keyboardNavigationBehavior:c="arrow",escapeKeyBehavior:u="clearSelection",shouldSelectOnPressUp:f}=e;e["aria-label"]||e["aria-labelledby"]||console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let{listProps:p}=(0,k.y)({selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,ref:n,keyboardDelegate:i,layoutDelegate:r,isVirtualized:s,selectOnFocus:"replace"===t.selectionManager.selectionBehavior,shouldFocusWrap:e.shouldFocusWrap,linkBehavior:a,disallowTypeAhead:l,autoFocus:e.autoFocus,escapeKeyBehavior:u}),w=(0,v.Bi)(e.id);d.set(t,{id:w,onAction:o,linkBehavior:a,keyboardNavigationBehavior:c,shouldSelectOnPressUp:f});let S=(0,b.m)({selectionManager:t.selectionManager,hasItemActions:!!o}),E=(0,g.$)(n,{isDisabled:0!==t.collection.size}),N=(0,h.$)(e,{labelable:!0}),O=(0,m.v)(N,{role:"grid",id:w,"aria-multiselectable":"multiple"===t.selectionManager.selectionMode?"true":void 0},0===t.collection.size?{tabIndex:E?-1:0}:p,S);return s&&(O["aria-rowcount"]=t.collection.size,O["aria-colcount"]=1),(0,y.H)({},t),{gridProps:O}}({...e,...o,keyboardDelegate:i,shouldFocusWrap:!0,linkBehavior:"override",keyboardNavigationBehavior:"tab"},t,n),[u,f]=(0,O.useState)(!1),{focusWithinProps:p}=(0,E.R)({onFocusWithinChange:f}),L=(0,h.$)(e),x=(0,O.useRef)(t.collection.size);return(0,O.useEffect)(()=>{n.current&&x.current>0&&0===t.collection.size&&u&&n.current.focus(),x.current=t.collection.size},[t.collection.size,u,n]),A.set(t,{onRemove:e.onRemove}),{gridProps:(0,m.v)(c,L,{role:t.collection.size?"grid":"group","aria-atomic":!1,"aria-relevant":"additions","aria-live":u?"polite":"off",...p,...o}),labelProps:r,descriptionProps:l,errorMessageProps:a}}({...L,...C,label:T},$,s);return O.createElement(i.tT.div,{render:e.render,...D,id:r,ref:t,slot:e.slot||void 0,className:e.className??"react-aria-TagGroup",style:e.style},O.createElement(i.Kq,{values:[[o.I,{..._,elementType:"span",ref:x}],[H,{...B,ref:s}],[l.DN,$],[f.h,{slots:{description:K,errorMessage:M}}]]},e.children))}let Z=(0,O.forwardRef)(function(e,t){return(0,O.useContext)(l.DN)?O.createElement(ee,{props:e,forwardedRef:t}):O.createElement(F.pM,e)});function ee({props:e,forwardedRef:t}){let n=(0,O.useContext)(l.DN),{CollectionRoot:s}=(0,O.useContext)(r.zL),[o,a]=(0,i.JT)({},t,H),{focusProps:c,isFocused:f,isFocusVisible:d}=(0,W.o)(),p={isEmpty:0===n.collection.size,isFocused:f,isFocusVisible:d,state:n},y=(0,i.Sl)({...e,children:void 0,defaultClassName:"react-aria-TagList",values:p}),g=(0,r.l2)(n.selectionManager.focusedKey),b=(0,h.$)(e,{global:!0});return O.createElement(i.tT.div,{...(0,m.v)(b,y,o,c),ref:a,"data-empty":0===n.collection.size||void 0,"data-focused":f||void 0,"data-focus-visible":d||void 0},O.createElement(u.D,null,0===n.collection.size&&e.renderEmptyState?e.renderEmptyState(p):O.createElement(s,{collection:n.collection,persistedKeys:g})))}let et=(0,F.KU)(V._B,(e,t,n)=>{let o=(0,O.useContext)(l.DN),a=(0,Y.U)(t),{focusProps:u,isFocusVisible:f}=(0,W.o)({within:!1}),{rowProps:y,gridCellProps:g,removeButtonProps:b,...k}=function(e,t,n){var s;let{item:i}=e,r=(0,U.o)((s=L)&&s.__esModule?s.default:s,"@react-aria/tag"),o=(0,v.Bi)(),{onRemove:l}=A.get(t)||{},{rowProps:a,gridCellProps:c,...u}=function(e,t,n){let{node:s,isVirtualized:i}=e,{direction:r}=(0,N.Y)(),{onAction:o,linkBehavior:l,keyboardNavigationBehavior:a,shouldSelectOnPressUp:c}=d.get(t),u=(0,v.X1)(),f=(0,O.useRef)(null),h={},y=e.hasChildItems,g=t.selectionManager.isLink(s.key);if(null!=s&&"expandedKeys"in t){let e=t.collection.getChildren?.(s.key);y=y||[...e??[]].length>1,null==o&&!g&&"none"===t.selectionManager.selectionMode&&y&&(o=()=>t.toggleKey(s.key));let n=y?t.expandedKeys.has(s.key):void 0,i=1,r=s.index;if(s.level>=0&&s?.parentKey!=null){let e=t.collection.getItem(s.parentKey);if(e){let n=function(e,t){let n=t.getChildren?.(e.key),s=n?Array.from(n):[],i=s.length>0?s[0]:null,r=[];for(;i;)r.push(i),i=null!=i.nextKey?t.getItem(i.nextKey):null;return r}(e,t.collection);i=[...n].filter(e=>"item"===e.type).length,r>0&&"item"!==n[0].type&&(r-=1)}}else i=[...t.collection].filter(e=>0===e.level&&"item"===e.type).length;h={"aria-expanded":n,"aria-level":s.level+1,"aria-posinset":r+1,"aria-setsize":i}}let{itemProps:b,...k}=(0,M.p)({selectionManager:t.selectionManager,key:s.key,ref:n,isVirtualized:i,shouldSelectOnPressUp:e.shouldSelectOnPressUp||c,onAction:o||s.props?.onAction?(0,I.c)(s.props?.onAction,o?()=>o(s.key):void 0):void 0,focus:()=>{null===n.current||(null==f.current||s.key===f.current)&&(0,D.ae)(n.current)||(0,$.l)(n.current)},linkBehavior:l}),w=(0,P.HI)(s.props),S=k.hasAction?w:{},E=(0,m.v)(b,S,{role:"row",onKeyDownCapture:e=>{let i=(0,D.bq)();if(!(0,D.sD)(e.currentTarget,(0,D.wt)(e))||!n.current||!i)return;let o=(0,C.N$)(n.current);if(o.currentNode=i,"expandedKeys"in t&&i===n.current){if(e.key===j[r]&&t.selectionManager.focusedKey===s.key&&y&&!t.expandedKeys.has(s.key)){t.toggleKey(s.key),e.stopPropagation();return}else if(e.key===q[r]&&t.selectionManager.focusedKey===s.key){if(y&&t.expandedKeys.has(s.key)){t.toggleKey(s.key),e.stopPropagation();return}else if(!t.expandedKeys.has(s.key)&&s.parentKey){t.selectionManager.setFocusedKey(s.parentKey),e.stopPropagation();return}}}switch(e.key){case"ArrowLeft":if("arrow"===a){let t="rtl"===r?o.nextNode():o.previousNode();if(t)e.preventDefault(),e.stopPropagation(),(0,$.l)(t),(0,K.o)(t,{containingElement:(0,B.m)(n.current)});else if(e.preventDefault(),e.stopPropagation(),"rtl"===r)(0,$.l)(n.current),(0,K.o)(n.current,{containingElement:(0,B.m)(n.current)});else{o.currentNode=n.current;let e=R(o);e&&((0,$.l)(e),(0,K.o)(e,{containingElement:(0,B.m)(n.current)}))}}break;case"ArrowRight":if("arrow"===a){let t="rtl"===r?o.previousNode():o.nextNode();if(t)e.preventDefault(),e.stopPropagation(),(0,$.l)(t),(0,K.o)(t,{containingElement:(0,B.m)(n.current)});else if(e.preventDefault(),e.stopPropagation(),"ltr"===r)(0,$.l)(n.current),(0,K.o)(n.current,{containingElement:(0,B.m)(n.current)});else{o.currentNode=n.current;let e=R(o);e&&((0,$.l)(e),(0,K.o)(e,{containingElement:(0,B.m)(n.current)}))}}break;case"ArrowUp":case"ArrowDown":!e.altKey&&(0,D.sD)(n.current,(0,D.wt)(e))&&(e.stopPropagation(),e.preventDefault(),n.current.parentElement?.dispatchEvent(new KeyboardEvent(e.nativeEvent.type,e.nativeEvent)))}},onKeyDown:e=>{let t=(0,D.bq)();if((0,D.sD)(e.currentTarget,(0,D.wt)(e))&&n.current&&t&&"Tab"===e.key&&"tab"===a){let s=(0,C.N$)(n.current,{tabbable:!0});s.currentNode=t,(e.shiftKey?s.previousNode():s.nextNode())&&e.stopPropagation()}},onFocus:e=>{if(f.current=s.key,(0,D.wt)(e)!==n.current){(0,_.pP)()||t.selectionManager.setFocusedKey(s.key);return}},"aria-label":s["aria-label"]||s.textValue||void 0,"aria-selected":t.selectionManager.canSelectItem(s.key)?t.selectionManager.isSelected(s.key):void 0,"aria-disabled":t.selectionManager.isDisabled(s.key)||void 0,"aria-labelledby":u&&(s["aria-label"]||s.textValue)?`${p(t,s.key)} ${u}`:void 0,id:p(t,s.key)});if(i){let{collection:e}=t,n=[...e];E["aria-rowindex"]=n.find(e=>"section"===e.type)?[...e.getKeys()].filter(t=>e.getItem(t)?.type!=="section").findIndex(e=>e===s.key)+1:s.index+1}return{rowProps:{...(0,m.v)(E,h)},gridCellProps:{role:"gridcell","aria-colindex":1},descriptionProps:{id:u},...k}}({node:i},t,n),{descriptionProps:f,...y}=u,g=t.disabledKeys.has(i.key)||i.props.isDisabled,b=(0,_.lb)();"virtual"===b&&"u">typeof window&&"ontouchstart"in window&&(b="pointer");let k=l&&("keyboard"===b||"virtual"===b)?r.format("removeDescription"):"",w=(0,x.I)(k),S=i.key===t.selectionManager.focusedKey,E=null!=t.selectionManager.focusedKey,F=-1;g||!S&&E||(F=0);let V=(0,h.$)(i.props),J=(0,P.HI)(i.props),{focusableProps:W}=(0,T.Wc)({...i.props,isDisabled:g},n);return{removeButtonProps:{"aria-label":r.format("removeButtonLabel"),"aria-labelledby":`${o} ${a.id}`,isDisabled:g,id:o,onPress:()=>l?l(new Set([i.key])):null},rowProps:(0,m.v)(W,a,V,J,{tabIndex:F,onKeyDown:l?e=>{("Delete"===e.key||"Backspace"===e.key)&&(g||(e.preventDefault(),t.selectionManager.isSelected(i.key)?l?.(new Set(t.selectionManager.selectedKeys)):l?.(new Set([i.key]))))}:void 0,"aria-describedby":w["aria-describedby"]}),gridCellProps:(0,m.v)(c,{"aria-errormessage":e["aria-errormessage"],"aria-label":e["aria-label"]}),...y,allowsRemoving:!!l}}({item:n},o,a),{hoverProps:w,isHovered:S}=(0,z.M)({isDisabled:!k.allowsSelection&&!k.hasAction,onHoverStart:n.props.onHoverStart,onHoverChange:n.props.onHoverChange,onHoverEnd:n.props.onHoverEnd}),E=(0,i.Sl)({...e,id:void 0,children:n.rendered,defaultClassName:"react-aria-Tag",values:{...k,isFocusVisible:f,isHovered:S,selectionMode:o.selectionManager.selectionMode,selectionBehavior:o.selectionManager.selectionBehavior}});(0,O.useEffect)(()=>{n.textValue},[n.textValue]);let F=(0,h.$)(e,{global:!0});return delete F.id,delete F.onClick,O.createElement(i.tT.div,{ref:a,...(0,m.v)(F,E,y,u,w),"data-selected":k.isSelected||void 0,"data-disabled":k.isDisabled||void 0,"data-hovered":S||void 0,"data-focused":k.isFocused||void 0,"data-focus-visible":f||void 0,"data-pressed":k.isPressed||void 0,"data-allows-removing":k.allowsRemoving||void 0,"data-selection-mode":"none"===o.selectionManager.selectionMode?void 0:o.selectionManager.selectionMode},O.createElement("div",{...g,style:{display:"contents"}},O.createElement(i.Kq,{values:[[s.k,{slots:{remove:b}}],[r.zL,r.N],[c.r,{isSelected:k.isSelected}]]},E.children)))})},64402(e,t,n){"use strict";let s;n.d(t,{Ay:()=>nl});var i={};n.r(i),n.d(i,{BOM:()=>tU,DOCUMENT:()=>tF,FLOW_END:()=>tV,SCALAR:()=>tJ,createScalarToken:()=>t$,isCollection:()=>tW,isScalar:()=>tz,prettyToken:()=>tY,resolveAsScalar:()=>tI,setScalarValue:()=>tD,stringify:()=>t_,tokenType:()=>tG,visit:()=>tR});var r={};n.r(r),n.d(r,{Alias:()=>R,CST:()=>i,Composer:()=>tT,Document:()=>ti,Lexer:()=>t2,LineCounter:()=>t9,Pair:()=>ey,Parser:()=>nt,Scalar:()=>F,Schema:()=>ts,YAMLError:()=>to,YAMLMap:()=>ek,YAMLParseError:()=>tl,YAMLSeq:()=>eS,YAMLWarning:()=>ta,isAlias:()=>d,isCollection:()=>v,isDocument:()=>p,isMap:()=>m,isNode:()=>k,isPair:()=>y,isScalar:()=>g,isSeq:()=>b,parse:()=>nr,parseAllDocuments:()=>ns,parseDocument:()=>ni,stringify:()=>no,visit:()=>O,visitAsync:()=>L});let o=Symbol.for("yaml.alias"),l=Symbol.for("yaml.document"),a=Symbol.for("yaml.map"),c=Symbol.for("yaml.pair"),u=Symbol.for("yaml.scalar"),f=Symbol.for("yaml.seq"),h=Symbol.for("yaml.node.type"),d=e=>!!e&&"object"==typeof e&&e[h]===o,p=e=>!!e&&"object"==typeof e&&e[h]===l,m=e=>!!e&&"object"==typeof e&&e[h]===a,y=e=>!!e&&"object"==typeof e&&e[h]===c,g=e=>!!e&&"object"==typeof e&&e[h]===u,b=e=>!!e&&"object"==typeof e&&e[h]===f;function v(e){if(e&&"object"==typeof e)switch(e[h]){case a:case f:return!0}return!1}function k(e){if(e&&"object"==typeof e)switch(e[h]){case o:case a:case u:case f:return!0}return!1}let w=e=>(g(e)||v(e))&&!!e.anchor,S=Symbol("break visit"),E=Symbol("skip children"),N=Symbol("remove node");function O(e,t){let n=T(t);p(e)?A(null,e.contents,n,Object.freeze([e]))===N&&(e.contents=null):A(null,e,n,Object.freeze([]))}function A(e,t,n,s){let i=I(e,t,n,s);if(k(i)||y(i))return $(e,s,i),A(e,i,n,s);if("symbol"!=typeof i){if(v(t)){s=Object.freeze(s.concat(t));for(let e=0;e<t.items.length;++e){let i=A(e,t.items[e],n,s);if("number"==typeof i)e=i-1;else{if(i===S)return S;i===N&&(t.items.splice(e,1),e-=1)}}}else if(y(t)){s=Object.freeze(s.concat(t));let e=A("key",t.key,n,s);if(e===S)return S;e===N&&(t.key=null);let i=A("value",t.value,n,s);if(i===S)return S;i===N&&(t.value=null)}}return i}async function L(e,t){let n=T(t);p(e)?await x(null,e.contents,n,Object.freeze([e]))===N&&(e.contents=null):await x(null,e,n,Object.freeze([]))}async function x(e,t,n,s){let i=await I(e,t,n,s);if(k(i)||y(i))return $(e,s,i),x(e,i,n,s);if("symbol"!=typeof i){if(v(t)){s=Object.freeze(s.concat(t));for(let e=0;e<t.items.length;++e){let i=await x(e,t.items[e],n,s);if("number"==typeof i)e=i-1;else{if(i===S)return S;i===N&&(t.items.splice(e,1),e-=1)}}}else if(y(t)){s=Object.freeze(s.concat(t));let e=await x("key",t.key,n,s);if(e===S)return S;e===N&&(t.key=null);let i=await x("value",t.value,n,s);if(i===S)return S;i===N&&(t.value=null)}}return i}function T(e){return"object"==typeof e&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function I(e,t,n,s){return"function"==typeof n?n(e,t,s):m(t)?n.Map?.(e,t,s):b(t)?n.Seq?.(e,t,s):y(t)?n.Pair?.(e,t,s):g(t)?n.Scalar?.(e,t,s):d(t)?n.Alias?.(e,t,s):void 0}function $(e,t,n){let s=t[t.length-1];if(v(s))s.items[e]=n;else if(y(s))"key"===e?s.key=n:s.value=n;else if(p(s))s.contents=n;else{let e=d(s)?"alias":"scalar";throw Error(`Cannot replace node with ${e} parent`)}}O.BREAK=S,O.SKIP=E,O.REMOVE=N,L.BREAK=S,L.SKIP=E,L.REMOVE=N;let D={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},C=e=>e.replace(/[!,[\]{}]/g,e=>D[e]);class B{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},B.defaultYaml,e),this.tags=Object.assign({},B.defaultTags,t)}clone(){let e=new B(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){let e=new B(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:B.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},B.defaultTags)}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:B.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},B.defaultTags),this.atNextDocument=!1);let n=e.trim().split(/[ \t]+/),s=n.shift();switch(s){case"%TAG":{if(2!==n.length&&(t(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;let[e,s]=n;return this.tags[e]=s,!0}case"%YAML":{if(this.yaml.explicit=!0,1!==n.length)return t(0,"%YAML directive should contain exactly one part"),!1;let[e]=n;if("1.1"===e||"1.2"===e)return this.yaml.version=e,!0;{let n=/^\d+\.\d+$/.test(e);return t(6,`Unsupported YAML version ${e}`,n),!1}}default:return t(0,`Unknown directive ${s}`,!0),!1}}tagName(e,t){if("!"===e)return"!";if("!"!==e[0])return t(`Not a valid tag: ${e}`),null;if("<"===e[1]){let n=e.slice(2,-1);return"!"===n||"!!"===n?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(">"!==e[e.length-1]&&t("Verbatim tags must end with a >"),n)}let[,n,s]=e.match(/^(.*!)([^!]*)$/s);s||t(`The ${e} tag has no suffix`);let i=this.tags[n];if(i)try{return i+decodeURIComponent(s)}catch(e){return t(String(e)),null}return"!"===n?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+C(e.substring(n.length));return"!"===e[0]?e:`!<${e}>`}toString(e){let t,n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],s=Object.entries(this.tags);if(e&&s.length>0&&k(e.contents)){let n={};O(e.contents,(e,t)=>{k(t)&&t.tag&&(n[t.tag]=!0)}),t=Object.keys(n)}else t=[];for(let[i,r]of s)("!!"!==i||"tag:yaml.org,2002:"!==r)&&(!e||t.some(e=>e.startsWith(r)))&&n.push(`%TAG ${i} ${r}`);return n.join("\n")}}function _(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=JSON.stringify(e);throw Error(`Anchor must not contain whitespace or control characters: ${t}`)}return!0}function K(e){let t=new Set;return O(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function M(e,t){for(let n=1;;++n){let s=`${e}${n}`;if(!t.has(s))return s}}function P(e,t,n,s){if(s&&"object"==typeof s)if(Array.isArray(s))for(let t=0,n=s.length;t<n;++t){let n=s[t],i=P(e,s,String(t),n);void 0===i?delete s[t]:i!==n&&(s[t]=i)}else if(s instanceof Map)for(let t of Array.from(s.keys())){let n=s.get(t),i=P(e,s,t,n);void 0===i?s.delete(t):i!==n&&s.set(t,i)}else if(s instanceof Set)for(let t of Array.from(s)){let n=P(e,s,t,t);void 0===n?s.delete(t):n!==t&&(s.delete(t),s.add(n))}else for(let[t,n]of Object.entries(s)){let i=P(e,s,t,n);void 0===i?delete s[t]:i!==n&&(s[t]=i)}return e.call(t,n,s)}function j(e,t,n){if(Array.isArray(e))return e.map((e,t)=>j(e,String(t),n));if(e&&"function"==typeof e.toJSON){if(!n||!w(e))return e.toJSON(t,n);let s={aliasCount:0,count:1,res:void 0};n.anchors.set(e,s),n.onCreate=e=>{s.res=e,delete n.onCreate};let i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return"bigint"!=typeof e||n?.keep?e:Number(e)}B.defaultYaml={explicit:!1,version:"1.2"},B.defaultTags={"!!":"tag:yaml.org,2002:"};class q{constructor(e){Object.defineProperty(this,h,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:s,reviver:i}={}){if(!p(e))throw TypeError("A document argument is required");let r={anchors:new Map,doc:e,keep:!0,mapAsMap:!0===t,mapKeyWarned:!1,maxAliasCount:"number"==typeof n?n:100},o=j(this,"",r);if("function"==typeof s)for(let{count:e,res:t}of r.anchors.values())s(t,e);return"function"==typeof i?P(i,{"":o},"",o):o}}class R extends q{constructor(e){super(o),this.source=e,Object.defineProperty(this,"tag",{set(){throw Error("Alias nodes cannot have tags")}})}resolve(e,t){let n,s;if(t?.maxAliasCount===0)throw ReferenceError("Alias resolution is disabled");for(let i of(t?.aliasResolveCache?n=t.aliasResolveCache:(n=[],O(e,{Node:(e,t)=>{(d(t)||w(t))&&n.push(t)}}),t&&(t.aliasResolveCache=n)),n)){if(i===this)break;i.anchor===this.source&&(s=i)}return s}toJSON(e,t){if(!t)return{source:this.source};let{anchors:n,doc:s,maxAliasCount:i}=t,r=this.resolve(s,t);if(!r)throw ReferenceError(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);let o=n.get(r);if(o||(j(r,null,t),o=n.get(r)),o?.res===void 0)throw ReferenceError("This should not happen: Alias anchor was not resolved?");if(i>=0&&(o.count+=1,0===o.aliasCount&&(o.aliasCount=function e(t,n,s){if(d(n)){let e=n.resolve(t),i=s&&e&&s.get(e);return i?i.count*i.aliasCount:0}if(v(n)){let i=0;for(let r of n.items){let n=e(t,r,s);n>i&&(i=n)}return i}return y(n)?Math.max(e(t,n.key,s),e(t,n.value,s)):1}(s,r,n)),o.count*o.aliasCount>i))throw ReferenceError("Excessive alias count indicates a resource exhaustion attack");return o.res}toString(e,t,n){let s=`*${this.source}`;if(e){if(_(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source))throw Error(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);if(e.implicitKey)return`${s} `}return s}}let U=e=>!e||"function"!=typeof e&&"object"!=typeof e;class F extends q{constructor(e){super(u),this.value=e}toJSON(e,t){return t?.keep?this.value:j(this.value,e,t)}toString(){return String(this.value)}}function V(e,t,n){let s;if(p(e)&&(e=e.contents),k(e))return e;if(y(e)){let t=n.schema[a].createNode?.(n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||"u">typeof BigInt&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:i,onAnchor:r,onTagObj:o,schema:l,sourceObjects:c}=n;if(i&&e&&"object"==typeof e){if(s=c.get(e))return s.anchor??(s.anchor=r(e)),new R(s.anchor);s={anchor:null,node:null},c.set(e,s)}t?.startsWith("!!")&&(t="tag:yaml.org,2002:"+t.slice(2));let u=function(e,t,n){if(t){let e=n.filter(e=>e.tag===t),s=e.find(e=>!e.format)??e[0];if(!s)throw Error(`Tag ${t} not found`);return s}return n.find(t=>t.identify?.(e)&&!t.format)}(e,t,l.tags);if(!u){if(e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e){let t=new F(e);return s&&(s.node=t),t}u=e instanceof Map?l[a]:Symbol.iterator in Object(e)?l[f]:l[a]}o&&(o(u),delete n.onTagObj);let h=u?.createNode?u.createNode(n.schema,e,n):"function"==typeof u?.nodeClass?.from?u.nodeClass.from(n.schema,e,n):new F(e);return t?h.tag=t:u.default||(h.tag=u.tag),s&&(s.node=h),h}function J(e,t,n){let s=n;for(let e=t.length-1;e>=0;--e){let n=t[e];if("number"==typeof n&&Number.isInteger(n)&&n>=0){let e=[];e[n]=s,s=e}else s=new Map([[n,s]])}return V(s,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}F.BLOCK_FOLDED="BLOCK_FOLDED",F.BLOCK_LITERAL="BLOCK_LITERAL",F.PLAIN="PLAIN",F.QUOTE_DOUBLE="QUOTE_DOUBLE",F.QUOTE_SINGLE="QUOTE_SINGLE";let W=e=>null==e||"object"==typeof e&&!!e[Symbol.iterator]().next().done;class z extends q{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>k(t)||y(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(W(e))this.add(t);else{let[n,...s]=e,i=this.get(n,!0);if(v(i))i.addIn(s,t);else if(void 0===i&&this.schema)this.set(n,J(this.schema,s,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${s}`)}}deleteIn(e){let[t,...n]=e;if(0===n.length)return this.delete(t);let s=this.get(t,!0);if(v(s))return s.deleteIn(n);throw Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){let[n,...s]=e,i=this.get(n,!0);return 0===s.length?!t&&g(i)?i.value:i:v(i)?i.getIn(s,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!y(t))return!1;let n=t.value;return null==n||e&&g(n)&&null==n.value&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){let[t,...n]=e;if(0===n.length)return this.has(t);let s=this.get(t,!0);return!!v(s)&&s.hasIn(n)}setIn(e,t){let[n,...s]=e;if(0===s.length)this.set(n,t);else{let e=this.get(n,!0);if(v(e))e.setIn(s,t);else if(void 0===e&&this.schema)this.set(n,J(this.schema,s,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${s}`)}}}let Y=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function G(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}let H=(e,t,n)=>e.endsWith("\n")?G(n,t):n.includes("\n")?"\n"+G(n,t):(e.endsWith(" ")?"":" ")+n,Q="block",X="quoted";function Z(e,t,n="flow",{indentAtStart:s,lineWidth:i=80,minContentWidth:r=20,onFold:o,onOverflow:l}={}){let a,c,u;if(!i||i<0)return e;i<r&&(r=0);let f=Math.max(1+r,1+i-t.length);if(e.length<=f)return e;let h=[],d={},p=i-t.length;"number"==typeof s&&(s>i-Math.max(2,r)?h.push(0):p=i-s);let m=!1,y=-1,g=-1,b=-1;for(n===Q&&-1!==(y=ee(e,y,t.length))&&(p=y+f);u=e[y+=1];){if(n===X&&"\\"===u){switch(g=y,e[y+1]){case"x":y+=3;break;case"u":y+=5;break;case"U":y+=9;break;default:y+=1}b=y}if("\n"===u)n===Q&&(y=ee(e,y,t.length)),p=y+t.length+f,a=void 0;else{if(" "===u&&c&&" "!==c&&"\n"!==c&&" "!==c){let t=e[y+1];t&&" "!==t&&"\n"!==t&&" "!==t&&(a=y)}if(y>=p)if(a)h.push(a),p=a+f,a=void 0;else if(n===X){for(;" "===c||" "===c;)c=u,u=e[y+=1],m=!0;let t=y>b+1?y-2:g-1;if(d[t])return e;h.push(t),d[t]=!0,p=t+f,a=void 0}else m=!0}c=u}if(m&&l&&l(),0===h.length)return e;o&&o();let v=e.slice(0,h[0]);for(let s=0;s<h.length;++s){let i=h[s],r=h[s+1]||e.length;0===i?v=`
${t}${e.slice(0,r)}`:(n===X&&d[i]&&(v+=`${e[i]}\\`),v+=`
${t}${e.slice(i+1,r)}`)}return v}function ee(e,t,n){let s=t,i=t+1,r=e[i];for(;" "===r||" "===r;)if(t<i+n)r=e[++t];else{do r=e[++t];while(r&&"\n"!==r);s=t,r=e[i=t+1]}return s}let et=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth});function en(e,t){let n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;let{implicitKey:s}=t,i=t.options.doubleQuotedMinMultiLineLength,r=t.indent||(/^(%|---|\.\.\.)/m.test(e)?" ":""),o="",l=0;for(let e=0,t=n[e];t;t=n[++e])if(" "===t&&"\\"===n[e+1]&&"n"===n[e+2]&&(o+=n.slice(l,e)+"\\ ",e+=1,l=e,t="\\"),"\\"===t)switch(n[e+1]){case"u":{o+=n.slice(l,e);let t=n.substr(e+2,4);switch(t){case"0000":o+="\\0";break;case"0007":o+="\\a";break;case"000b":o+="\\v";break;case"001b":o+="\\e";break;case"0085":o+="\\N";break;case"00a0":o+="\\_";break;case"2028":o+="\\L";break;case"2029":o+="\\P";break;default:"00"===t.substr(0,2)?o+="\\x"+t.substr(2):o+=n.substr(e,6)}e+=5,l=e+1}break;case"n":if(s||'"'===n[e+2]||n.length<i)e+=1;else{for(o+=n.slice(l,e)+"\n\n";"\\"===n[e+2]&&"n"===n[e+3]&&'"'!==n[e+4];)o+="\n",e+=2;o+=r," "===n[e+2]&&(o+="\\"),e+=1,l=e+1}break;default:e+=1}return o=l?o+n.slice(l):n,s?o:Z(o,r,"quoted",et(t,!1))}function es(e,t){if(!1===t.options.singleQuote||t.implicitKey&&e.includes("\n")||/[ \t]\n|\n[ \t]/.test(e))return en(e,t);let n=t.indent||(/^(%|---|\.\.\.)/m.test(e)?" ":""),s="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
${n}`)+"'";return t.implicitKey?s:Z(s,n,"flow",et(t,!1))}function ei(e,t){let n,{singleQuote:s}=t.options;if(!1===s)n=en;else{let t=e.includes('"'),i=e.includes("'");n=t&&!i?es:i&&!t?en:s?es:en}return n(e,t)}try{s=RegExp("(^|(?<!\n))\n+(?!\n|$)","g")}catch{s=/\n+(?!\n|$)/g}function er({comment:e,type:t,value:n},i,r,o){let l,a,c,u,{blockQuote:f,commentString:h,lineWidth:d}=i.options;if(!f||/\n[\t ]+$/.test(n))return ei(n,i);let p=i.indent||(i.forceBlockIndent||(u=n,/^(%|---|\.\.\.)/m.test(u))?" ":""),m="literal"===f||"folded"!==f&&t!==F.BLOCK_FOLDED&&(t===F.BLOCK_LITERAL||!function(e,t,n){if(!t||t<0)return!1;let s=t-n,i=e.length;if(i<=s)return!1;for(let t=0,n=0;t<i;++t)if("\n"===e[t]){if(t-n>s)return!0;if(i-(n=t+1)<=s)return!1}return!0}(n,d,p.length));if(!n)return m?"|\n":">\n";for(a=n.length;a>0;--a){let e=n[a-1];if("\n"!==e&&" "!==e&&" "!==e)break}let y=n.substring(a),g=y.indexOf("\n");-1===g?l="-":n===y||g!==y.length-1?(l="+",o&&o()):l="",y&&(n=n.slice(0,-y.length),"\n"===y[y.length-1]&&(y=y.slice(0,-1)),y=y.replace(s,`$&${p}`));let b=!1,v=-1;for(c=0;c<n.length;++c){let e=n[c];if(" "===e)b=!0;else if("\n"===e)v=c;else break}let k=n.substring(0,v<c?v+1:c);k&&(n=n.substring(k.length),k=k.replace(/\n+/g,`$&${p}`));let w=p?"2":"1",S=(b?w:"")+l;if(e&&(S+=" "+h(e.replace(/ ?[\r\n]+/g," ")),r&&r()),!m){let e=n.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${p}`),s=!1,r=et(i,!0);"folded"!==f&&t!==F.BLOCK_FOLDED&&(r.onOverflow=()=>{s=!0});let o=Z(`${k}${e}${y}`,p,"block",r);if(!s)return`>${S}
${p}${o}`}return n=n.replace(/\n+/g,`$&${p}`),`|${S}
${p}${k}${n}${y}`}function eo(e,t,n,s){let{implicitKey:i,inFlow:r}=t,o="string"==typeof e.value?e:Object.assign({},e,{value:String(e.value)}),{type:l}=e;l!==F.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(l=F.QUOTE_DOUBLE);let a=e=>{switch(e){case F.BLOCK_FOLDED:case F.BLOCK_LITERAL:return i||r?ei(o.value,t):er(o,t,n,s);case F.QUOTE_DOUBLE:return en(o.value,t);case F.QUOTE_SINGLE:return es(o.value,t);case F.PLAIN:return function(e,t,n,s){let{type:i,value:r}=e,{actualString:o,implicitKey:l,indent:a,indentStep:c,inFlow:u}=t;if(l&&r.includes("\n")||u&&/[[\]{},]/.test(r))return ei(r,t);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(r))return l||u||!r.includes("\n")?ei(r,t):er(e,t,n,s);if(!l&&!u&&i!==F.PLAIN&&r.includes("\n"))return er(e,t,n,s);if(/^(%|---|\.\.\.)/m.test(r)){if(""===a)return t.forceBlockIndent=!0,er(e,t,n,s);else if(l&&a===c)return ei(r,t)}let f=r.replace(/\n+/g,`$&
${a}`);if(o){let e=e=>e.default&&"tag:yaml.org,2002:str"!==e.tag&&e.test?.test(f),{compat:n,tags:s}=t.doc.schema;if(s.some(e)||n?.some(e))return ei(r,t)}return l?f:Z(f,a,"flow",et(t,!1))}(o,t,n,s);default:return null}},c=a(l);if(null===c){let{defaultKeyType:e,defaultStringType:n}=t.options,s=i&&e||n;if(null===(c=a(s)))throw Error(`Unsupported default string type ${s}`)}return c}function el(e,t){let n,s=Object.assign({blockQuote:!0,commentString:Y,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);switch(s.collectionStyle){case"block":n=!1;break;case"flow":n=!0;break;default:n=null}return{anchors:new Set,doc:e,flowCollectionPadding:s.flowCollectionPadding?" ":"",indent:"",indentStep:"number"==typeof s.indent?" ".repeat(s.indent):" ",inFlow:n,options:s}}function ea(e,t,n,s){let i;if(y(e))return e.toString(t,n,s);if(d(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let r=k(e)?e:t.doc.createNode(e,{onTagObj:e=>i=e});i??(i=function(e,t){let n,s;if(t.tag){let n=e.filter(e=>e.tag===t.tag);if(n.length>0)return n.find(e=>e.format===t.format)??n[0]}if(g(t)){n=t.value;let i=e.filter(e=>e.identify?.(n));if(i.length>1){let e=i.filter(e=>e.test);e.length>0&&(i=e)}s=i.find(e=>e.format===t.format)??i.find(e=>!e.format)}else n=t,s=e.find(e=>e.nodeClass&&n instanceof e.nodeClass);if(!s){let e=n?.constructor?.name??(null===n?"null":typeof n);throw Error(`Tag not resolved for ${e} value`)}return s}(t.doc.schema.tags,r));let o=function(e,t,{anchors:n,doc:s}){if(!s.directives)return"";let i=[],r=(g(e)||v(e))&&e.anchor;r&&_(r)&&(n.add(r),i.push(`&${r}`));let o=e.tag??(t.default?null:t.tag);return o&&i.push(s.directives.tagString(o)),i.join(" ")}(r,i,t);o.length>0&&(t.indentAtStart=(t.indentAtStart??0)+o.length+1);let l="function"==typeof i.stringify?i.stringify(r,t,n,s):g(r)?eo(r,t,n,s):r.toString(t,n,s);return o?g(r)||"{"===l[0]||"["===l[0]?`${o} ${l}`:`${o}
${t.indent}${l}`:l}function ec(e,t){("debug"===e||"warn"===e)&&console.warn(t)}let eu={identify:e=>"<<"===e||"symbol"==typeof e&&"<<"===e.description,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new F(Symbol("<<")),{addToJSMap:ef}),stringify:()=>"<<"};function ef(e,t,n){let s=ed(e,n);if(b(s))for(let n of s.items)eh(e,t,n);else if(Array.isArray(s))for(let n of s)eh(e,t,n);else eh(e,t,s)}function eh(e,t,n){let s=ed(e,n);if(!m(s))throw Error("Merge sources must be maps or map aliases");for(let[n,i]of s.toJSON(null,e,Map))t instanceof Map?t.has(n)||t.set(n,i):t instanceof Set?t.add(n):Object.prototype.hasOwnProperty.call(t,n)||Object.defineProperty(t,n,{value:i,writable:!0,enumerable:!0,configurable:!0});return t}function ed(e,t){return e&&d(t)?t.resolve(e.doc,e):t}function ep(e,t,{key:n,value:s}){if(k(n)&&n.addToJSMap)n.addToJSMap(e,t,s);else if((eu.identify(n)||g(n)&&(!n.type||n.type===F.PLAIN)&&eu.identify(n.value))&&e?.doc.schema.tags.some(e=>e.tag===eu.tag&&e.default))ef(e,t,s);else{let i=j(n,"",e);if(t instanceof Map)t.set(i,j(s,i,e));else if(t instanceof Set)t.add(i);else{let r=function(e,t,n){if(null===t)return"";if("object"!=typeof t)return String(t);if(k(e)&&n?.doc){let t=el(n.doc,{});for(let e of(t.anchors=new Set,n.anchors.keys()))t.anchors.add(e.anchor);t.inFlow=!0,t.inStringifyKey=!0;let s=e.toString(t);if(!n.mapKeyWarned){let e=JSON.stringify(s);e.length>40&&(e=e.substring(0,36)+'..."'),ec(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return s}return JSON.stringify(t)}(n,i,e),o=j(s,r,e);r in t?Object.defineProperty(t,r,{value:o,writable:!0,enumerable:!0,configurable:!0}):t[r]=o}}return t}function em(e,t,n){return new ey(V(e,void 0,n),V(t,void 0,n))}class ey{constructor(e,t=null){Object.defineProperty(this,h,{value:c}),this.key=e,this.value=t}clone(e){let{key:t,value:n}=this;return k(t)&&(t=t.clone(e)),k(n)&&(n=n.clone(e)),new ey(t,n)}toJSON(e,t){let n=t?.mapAsMap?new Map:{};return ep(t,n,this)}toString(e,t,n){return e?.doc?function({key:e,value:t},n,s,i){let r,o,l,{allNullValues:a,doc:c,indent:u,indentStep:f,options:{commentString:h,indentSeq:d,simpleKeys:p}}=n,m=k(e)&&e.comment||null;if(p){if(m)throw Error("With simple keys, key nodes cannot have comments");if(v(e)||!k(e)&&"object"==typeof e)throw Error("With simple keys, collection cannot be used as a key value")}let y=!p&&(!e||m&&null==t&&!n.inFlow||v(e)||(g(e)?e.type===F.BLOCK_FOLDED||e.type===F.BLOCK_LITERAL:"object"==typeof e));n=Object.assign({},n,{allNullValues:!1,implicitKey:!y&&(p||!a),indent:u+f});let w=!1,S=!1,E=ea(e,n,()=>w=!0,()=>S=!0);if(!y&&!n.inFlow&&E.length>1024){if(p)throw Error("With simple keys, single line scalar must not span more than 1024 characters");y=!0}if(n.inFlow){if(a||null==t)return w&&s&&s(),""===E?"?":y?`? ${E}`:E}else if(a&&!p||null==t&&y)return E=`? ${E}`,m&&!w?E+=H(E,n.indent,h(m)):S&&i&&i(),E;w&&(m=null),y?(m&&(E+=H(E,n.indent,h(m))),E=`? ${E}
${u}:`):(E=`${E}:`,m&&(E+=H(E,n.indent,h(m)))),k(t)?(r=!!t.spaceBefore,o=t.commentBefore,l=t.comment):(r=!1,o=null,l=null,t&&"object"==typeof t&&(t=c.createNode(t))),n.implicitKey=!1,!y&&!m&&g(t)&&(n.indentAtStart=E.length+1),S=!1,!(!d&&f.length>=2&&!n.inFlow&&!y&&b(t))||t.flow||t.tag||t.anchor||(n.indent=n.indent.substring(2));let N=!1,O=ea(t,n,()=>N=!0,()=>S=!0),A=" ";if(m||r||o){if(A=r?"\n":"",o){let e=h(o);A+=`
${G(e,n.indent)}`}""!==O||n.inFlow?A+=`
${n.indent}`:"\n"===A&&l&&(A="\n\n")}else if(!y&&v(t)){let e=O[0],s=O.indexOf("\n"),i=-1!==s,r=n.inFlow??t.flow??0===t.items.length;if(i||!r){let t=!1;if(i&&("&"===e||"!"===e)){let n=O.indexOf(" ");"&"===e&&-1!==n&&n<s&&"!"===O[n+1]&&(n=O.indexOf(" ",n+1)),(-1===n||s<n)&&(t=!0)}t||(A=`
${n.indent}`)}}else(""===O||"\n"===O[0])&&(A="");return E+=A+O,n.inFlow?N&&s&&s():l&&!N?E+=H(E,n.indent,h(l)):S&&i&&i(),E}(this,e,t,n):JSON.stringify(this)}}function eg(e,t,n){return(t.inFlow??e.flow?function({items:e},t,{flowChars:n,itemIndent:s}){let{indent:i,indentStep:r,flowCollectionPadding:o,options:{commentString:l}}=t,a=Object.assign({},t,{indent:s+=r,inFlow:!0,type:null}),c=!1,u=0,f=[];for(let n=0;n<e.length;++n){let i=e[n],r=null;if(k(i))i.spaceBefore&&f.push(""),eb(t,f,i.commentBefore,!1),i.comment&&(r=i.comment);else if(y(i)){let e=k(i.key)?i.key:null;e&&(e.spaceBefore&&f.push(""),eb(t,f,e.commentBefore,!1),e.comment&&(c=!0));let n=k(i.value)?i.value:null;n?(n.comment&&(r=n.comment),n.commentBefore&&(c=!0)):null==i.value&&e?.comment&&(r=e.comment)}r&&(c=!0);let o=ea(i,a,()=>r=null);c||(c=f.length>u||o.includes("\n")),n<e.length-1?o+=",":t.options.trailingComma&&(t.options.lineWidth>0&&(c||(c=f.reduce((e,t)=>e+t.length+2,2)+(o.length+2)>t.options.lineWidth)),c&&(o+=",")),r&&(o+=H(o,s,l(r))),f.push(o),u=f.length}let{start:h,end:d}=n;if(0===f.length)return h+d;if(!c){let e=f.reduce((e,t)=>e+t.length+2,2);c=t.options.lineWidth>0&&e>t.options.lineWidth}if(!c)return`${h}${o}${f.join(" ")}${o}${d}`;{let e=h;for(let t of f)e+=t?`
${r}${i}${t}`:"\n";return`${e}
${i}${d}`}}:function({comment:e,items:t},n,{blockItemPrefix:s,flowChars:i,itemIndent:r,onChompKeep:o,onComment:l}){let a,{indent:c,options:{commentString:u}}=n,f=Object.assign({},n,{indent:r,type:null}),h=!1,d=[];for(let e=0;e<t.length;++e){let i=t[e],o=null;if(k(i))!h&&i.spaceBefore&&d.push(""),eb(n,d,i.commentBefore,h),i.comment&&(o=i.comment);else if(y(i)){let e=k(i.key)?i.key:null;e&&(!h&&e.spaceBefore&&d.push(""),eb(n,d,e.commentBefore,h))}h=!1;let l=ea(i,f,()=>o=null,()=>h=!0);o&&(l+=H(l,r,u(o))),h&&o&&(h=!1),d.push(s+l)}if(0===d.length)a=i.start+i.end;else{a=d[0];for(let e=1;e<d.length;++e){let t=d[e];a+=t?`
${c}${t}`:"\n"}}return e?(a+="\n"+G(u(e),c),l&&l()):h&&o&&o(),a})(e,t,n)}function eb({indent:e,options:{commentString:t}},n,s,i){if(s&&i&&(s=s.replace(/^\n+/,"")),s){let i=G(t(s),e);n.push(i.trimStart())}}function ev(e,t){let n=g(t)?t.value:t;for(let s of e)if(y(s)&&(s.key===t||s.key===n||g(s.key)&&s.key.value===n))return s}class ek extends z{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(a,e),this.items=[]}static from(e,t,n){let{keepUndefined:s,replacer:i}=n,r=new this(e),o=(e,o)=>{if("function"==typeof i)o=i.call(t,e,o);else if(Array.isArray(i)&&!i.includes(e))return;(void 0!==o||s)&&r.items.push(em(e,o,n))};if(t instanceof Map)for(let[e,n]of t)o(e,n);else if(t&&"object"==typeof t)for(let e of Object.keys(t))o(e,t[e]);return"function"==typeof e.sortMapEntries&&r.items.sort(e.sortMapEntries),r}add(e,t){let n;n=y(e)?e:e&&"object"==typeof e&&"key"in e?new ey(e.key,e.value):new ey(e,e?.value);let s=ev(this.items,n.key),i=this.schema?.sortMapEntries;if(s){if(!t)throw Error(`Key ${n.key} already set`);g(s.value)&&U(n.value)?s.value.value=n.value:s.value=n.value}else if(i){let e=this.items.findIndex(e=>0>i(n,e));-1===e?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){let t=ev(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){let n=ev(this.items,e),s=n?.value;return(!t&&g(s)?s.value:s)??void 0}has(e){return!!ev(this.items,e)}set(e,t){this.add(new ey(e,t),!0)}toJSON(e,t,n){let s=n?new n:t?.mapAsMap?new Map:{};for(let e of(t?.onCreate&&t.onCreate(s),this.items))ep(t,s,e);return s}toString(e,t,n){if(!e)return JSON.stringify(this);for(let e of this.items)if(!y(e))throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),eg(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:n,onComment:t})}}let ew={collection:"map",default:!0,nodeClass:ek,tag:"tag:yaml.org,2002:map",resolve:(e,t)=>(m(e)||t("Expected a mapping for this tag"),e),createNode:(e,t,n)=>ek.from(e,t,n)};class eS extends z{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(f,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=eE(e);return"number"==typeof t&&this.items.splice(t,1).length>0}get(e,t){let n=eE(e);if("number"!=typeof n)return;let s=this.items[n];return!t&&g(s)?s.value:s}has(e){let t=eE(e);return"number"==typeof t&&t<this.items.length}set(e,t){let n=eE(e);if("number"!=typeof n)throw Error(`Expected a valid index, not ${e}.`);let s=this.items[n];g(s)&&U(t)?s.value=t:this.items[n]=t}toJSON(e,t){let n=[];t?.onCreate&&t.onCreate(n);let s=0;for(let e of this.items)n.push(j(e,String(s++),t));return n}toString(e,t,n){return e?eg(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:n,onComment:t}):JSON.stringify(this)}static from(e,t,n){let{replacer:s}=n,i=new this(e);if(t&&Symbol.iterator in Object(t)){let e=0;for(let r of t){if("function"==typeof s){let n=t instanceof Set?r:String(e++);r=s.call(t,n,r)}i.items.push(V(r,void 0,n))}}return i}}function eE(e){let t=g(e)?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),"number"==typeof t&&Number.isInteger(t)&&t>=0?t:null}let eN={collection:"seq",default:!0,nodeClass:eS,tag:"tag:yaml.org,2002:seq",resolve:(e,t)=>(b(e)||t("Expected a sequence for this tag"),e),createNode:(e,t,n)=>eS.from(e,t,n)},eO={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:(e,t,n,s)=>eo(e,t=Object.assign({actualString:!0},t),n,s)},eA={identify:e=>null==e,createNode:()=>new F(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new F(null),stringify:({source:e},t)=>"string"==typeof e&&eA.test.test(e)?e:t.options.nullStr},eL={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new F("t"===e[0]||"T"===e[0]),stringify:({source:e,value:t},n)=>e&&eL.test.test(e)&&t===("t"===e[0]||"T"===e[0])?e:t?n.options.trueStr:n.options.falseStr};function ex({format:e,minFractionDigits:t,tag:n,value:s}){if("bigint"==typeof s)return String(s);let i="number"==typeof s?s:Number(s);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";let r=Object.is(s,-0)?"-0":JSON.stringify(s);if(!e&&t&&(!n||"tag:yaml.org,2002:float"===n)&&/^-?\d/.test(r)&&!r.includes("e")){let e=r.indexOf(".");e<0&&(e=r.length,r+=".");let n=t-(r.length-e-1);for(;n-- >0;)r+="0"}return r}let eT={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?-1/0:1/0,stringify:ex},eI={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():ex(e)}},e$={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let t=new F(parseFloat(e)),n=e.indexOf(".");return -1!==n&&"0"===e[e.length-1]&&(t.minFractionDigits=e.length-n-1),t},stringify:ex},eD=e=>"bigint"==typeof e||Number.isInteger(e),eC=(e,t,n,{intAsBigInt:s})=>s?BigInt(e):parseInt(e.substring(t),n);function eB(e,t,n){let{value:s}=e;return eD(s)&&s>=0?n+s.toString(t):ex(e)}let e_={identify:e=>eD(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>eC(e,2,8,n),stringify:e=>eB(e,8,"0o")},eK={identify:eD,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>eC(e,0,10,n),stringify:ex},eM={identify:e=>eD(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e