UNPKG

@techdocs/cli

Version:

Utility CLI for managing TechDocs sites in Backstage.

3 lines (2 loc) 10.2 kB
(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[5184],{88654:(c,p,e)=>{"use strict";e.d(p,{A:()=>a});const a={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"}},86912:c=>{function p(e,n,a){switch(a.length){case 0:return e.call(n);case 1:return e.call(n,a[0]);case 2:return e.call(n,a[0],a[1]);case 3:return e.call(n,a[0],a[1],a[2])}return e.apply(n,a)}c.exports=p},84570:(c,p,e)=>{var n=e(47170),a=e(45770),s=a(n);c.exports=s},90313:(c,p,e)=>{var n=e(11129),a=e(20714);function s(i,t,u,o,l){var h=-1,$=i.length;for(u||(u=a),l||(l=[]);++h<$;){var f=i[h];t>0&&u(f)?t>1?s(f,t-1,u,o,l):n(l,f):o||(l[l.length]=f)}return l}c.exports=s},41393:(c,p,e)=>{var n=e(84570),a=e(36529);function s(i,t){var u=-1,o=a(i)?Array(i.length):[];return n(i,function(l,h,$){o[++u]=t(l,h,$)}),o}c.exports=s},70310:(c,p,e)=>{var n=e(65111),a=e(57923),s=e(3334),i=e(41393),t=e(50642),u=e(49460),o=e(46775),l=e(22053),h=e(53142);function $(f,r,d){r.length?r=n(r,function(m){return h(m)?function(b){return a(b,m.length===1?m[0]:m)}:m}):r=[l];var v=-1;r=n(r,u(s));var g=i(f,function(m,b,w){var y=n(r,function(x){return x(m)});return{criteria:y,index:++v,value:m}});return t(g,function(m,b){return o(m,b,d)})}c.exports=$},23945:(c,p,e)=>{var n=e(22053),a=e(75234),s=e(80796);function i(t,u){return s(a(t,u,n),t+"")}c.exports=i},47403:(c,p,e)=>{var n=e(82619),a=e(72532),s=e(22053),i=a?function(t,u){return a(t,"toString",{configurable:!0,enumerable:!1,value:n(u),writable:!0})}:s;c.exports=i},50642:c=>{function p(e,n){var a=e.length;for(e.sort(n);a--;)e[a]=e[a].value;return e}c.exports=p},63521:(c,p,e)=>{var n=e(51187);function a(s,i){if(s!==i){var t=s!==void 0,u=s===null,o=s===s,l=n(s),h=i!==void 0,$=i===null,f=i===i,r=n(i);if(!$&&!r&&!l&&s>i||l&&h&&f&&!$&&!r||u&&h&&f||!t&&f||!o)return 1;if(!u&&!l&&!r&&s<i||r&&t&&o&&!u&&!l||$&&t&&o||!h&&o||!f)return-1}return 0}c.exports=a},46775:(c,p,e)=>{var n=e(63521);function a(s,i,t){for(var u=-1,o=s.criteria,l=i.criteria,h=o.length,$=t.length;++u<h;){var f=n(o[u],l[u]);if(f){if(u>=$)return f;var r=t[u];return f*(r=="desc"?-1:1)}}return s.index-i.index}c.exports=a},45770:(c,p,e)=>{var n=e(36529);function a(s,i){return function(t,u){if(t==null)return t;if(!n(t))return s(t,u);for(var o=t.length,l=i?o:-1,h=Object(t);(i?l--:++l<o)&&u(h[l],l,h)!==!1;);return t}}c.exports=a},20714:(c,p,e)=>{var n=e(65650),a=e(3283),s=e(53142),i=n?n.isConcatSpreadable:void 0;function t(u){return s(u)||a(u)||!!(i&&u&&u[i])}c.exports=t},74535:(c,p,e)=>{var n=e(46285),a=e(36529),s=e(69632),i=e(41580);function t(u,o,l){if(!i(l))return!1;var h=typeof o;return(h=="number"?a(l)&&s(o,l.length):h=="string"&&o in l)?n(l[o],u):!1}c.exports=t},75234:(c,p,e)=>{var n=e(86912),a=Math.max;function s(i,t,u){return t=a(t===void 0?i.length-1:t,0),function(){for(var o=arguments,l=-1,h=a(o.length-t,0),$=Array(h);++l<h;)$[l]=o[t+l];l=-1;for(var f=Array(t+1);++l<t;)f[l]=o[l];return f[t]=u($),n(i,this,f)}}c.exports=s},80796:(c,p,e)=>{var n=e(47403),a=e(3316),s=a(n);c.exports=s},3316:c=>{var p=800,e=16,n=Date.now;function a(s){var i=0,t=0;return function(){var u=n(),o=e-(u-t);if(t=u,o>0){if(++i>=p)return arguments[0]}else i=0;return s.apply(void 0,arguments)}}c.exports=a},82619:c=>{function p(e){return function(){return e}}c.exports=p},46343:(c,p,e)=>{var n=e(94687);function a(s,i){return n(s,i)}c.exports=a},40074:(c,p,e)=>{var n=e(90313),a=e(70310),s=e(23945),i=e(74535),t=s(function(u,o){if(u==null)return[];var l=o.length;return l>1&&i(u,o[0],o[1])?o=[]:l>2&&i(o[0],o[1],o[2])&&(o=[o[0]]),a(u,n(o,1),[])});c.exports=t},65398:function(c){(function(p,e){c.exports=e()})(this,function(){var p=[],e=[],n={},a={},s={};function i(r){return typeof r=="string"?new RegExp("^"+r+"$","i"):r}function t(r,d){return r===d?d:r===r.toLowerCase()?d.toLowerCase():r===r.toUpperCase()?d.toUpperCase():r[0]===r[0].toUpperCase()?d.charAt(0).toUpperCase()+d.substr(1).toLowerCase():d.toLowerCase()}function u(r,d){return r.replace(/\$(\d{1,2})/g,function(v,g){return d[g]||""})}function o(r,d){return r.replace(d[0],function(v,g){var m=u(d[1],arguments);return t(v===""?r[g-1]:v,m)})}function l(r,d,v){if(!r.length||n.hasOwnProperty(r))return d;for(var g=v.length;g--;){var m=v[g];if(m[0].test(d))return o(d,m)}return d}function h(r,d,v){return function(g){var m=g.toLowerCase();return d.hasOwnProperty(m)?t(g,m):r.hasOwnProperty(m)?t(g,r[m]):l(m,g,v)}}function $(r,d,v,g){return function(m){var b=m.toLowerCase();return d.hasOwnProperty(b)?!0:r.hasOwnProperty(b)?!1:l(b,b,v)===b}}function f(r,d,v){var g=d===1?f.singular(r):f.plural(r);return(v?d+" ":"")+g}return f.plural=h(s,a,p),f.isPlural=$(s,a,p),f.singular=h(a,s,e),f.isSingular=$(a,s,e),f.addPluralRule=function(r,d){p.push([i(r),d])},f.addSingularRule=function(r,d){e.push([i(r),d])},f.addUncountableRule=function(r){if(typeof r=="string"){n[r.toLowerCase()]=!0;return}f.addPluralRule(r,"$0"),f.addSingularRule(r,"$0")},f.addIrregularRule=function(r,d){d=d.toLowerCase(),r=r.toLowerCase(),s[r]=d,a[d]=r},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(r){return f.addIrregularRule(r[0],r[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(r){return f.addPluralRule(r[0],r[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(r){return f.addSingularRule(r[0],r[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(f.addUncountableRule),f})},16983:(c,p,e)=>{"use strict";var n;n={value:!0};var a=e(85608),s=e(14041),i=a.__importDefault(e(49069));function t(u,o,l){o===void 0&&(o=0),l===void 0&&(l=[]);var h=i.default(u,o),$=h[0],f=h[1],r=h[2];return s.useEffect(r,l),[$,f]}p.A=t},49069:(c,p,e)=>{"use strict";Object.defineProperty(p,"__esModule",{value:!0});var n=e(14041);function a(s,i){i===void 0&&(i=0);var t=n.useRef(!1),u=n.useRef(),o=n.useRef(s),l=n.useCallback(function(){return t.current},[]),h=n.useCallback(function(){t.current=!1,u.current&&clearTimeout(u.current),u.current=setTimeout(function(){t.current=!0,o.current()},i)},[i]),$=n.useCallback(function(){t.current=null,u.current&&clearTimeout(u.current)},[]);return n.useEffect(function(){o.current=s},[s]),n.useEffect(function(){return h(),$},[i]),[l,$,h]}p.default=a}}]);})(); //# sourceMappingURL=5184.37d9760f.chunk.js.map