@runeya/runeya 1.33.26 → 1.33.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/node-red-contrib-runeya.tar +0 -0
  2. package/package.json +1 -1
  3. package/public/assets/{App-Cuu3qapD.js → App-CsI6OcLx.js} +4 -4
  4. package/public/assets/{Bugs-H-Otgxln.js → Bugs-MZTedjOE.js} +1 -1
  5. package/public/assets/{Configs-CS7LQ3j2.js → Configs-BgQMyHZa.js} +1 -1
  6. package/public/assets/{CurrentEditor-DSg_c1cT.js → CurrentEditor-DWe_jHov.js} +1 -1
  7. package/public/assets/{DynamicComponent-Cd8cbFTY.js → DynamicComponent-21b6a83j.js} +1 -1
  8. package/public/assets/{Editor-BUC6Zjcy.js → Editor-DN-ZxIRY.js} +6 -6
  9. package/public/assets/{Git-CWhmBLgo.js → Git-Cwuf8t1y.js} +1 -1
  10. package/public/assets/{ImportCreate-BMYQ7CRt.js → ImportCreate-D7EkVr9x.js} +1 -1
  11. package/public/assets/{Index-DXLLCB8w.js → Index-C0kNw_RG.js} +1 -1
  12. package/public/assets/Index-CmroLpq5.js +1 -0
  13. package/public/assets/{Index-CCt5RYhV.js → Index-Dfxab_I2.js} +1 -1
  14. package/public/assets/{Index-CvSNWhOl.js → Index-DrguhRqW.js} +1 -1
  15. package/public/assets/Index-DtZrxZqP.js +1 -0
  16. package/public/assets/{Index-CNTmcq3o.js → Index-DusWDLpW.js} +1 -1
  17. package/public/assets/{Index-CKyiBy6h.js → Index-Q4_j8YjB.js} +1 -1
  18. package/public/assets/{Init-ec91xg4K.js → Init-UQADYgJ2.js} +1 -1
  19. package/public/assets/{LeftLogo-DdpN8uKw.js → LeftLogo-WwcR9Ouh.js} +1 -1
  20. package/public/assets/{Logs-Dr0aVld6.js → Logs-X8OwrHBK.js} +4 -4
  21. package/public/assets/{Markdown-CINu7VUT.js → Markdown-h-TQzZmw.js} +1 -1
  22. package/public/assets/{Modal-CMVKUmmz.js → Modal-BdxNbadF.js} +1 -1
  23. package/public/assets/{Modals-UgnVGGTd.js → Modals-TRAAm7M1.js} +1 -1
  24. package/public/assets/{NotUpToDate-Dv1x5laT.js → NotUpToDate-DzOvMb7E.js} +1 -1
  25. package/public/assets/{Npm-BQOhWPXB.js → Npm-CjJPSo9X.js} +1 -1
  26. package/public/assets/Overview-CeyyN0oI.js +1 -0
  27. package/public/assets/{Section-DWZalQSy.js → Section-lgKMkAwG.js} +1 -1
  28. package/public/assets/{Settings-gQ2r_ArG.js → Settings-CHmRle2O.js} +1 -1
  29. package/public/assets/{Spinner-BDdyfVPn.js → Spinner-CUHDMnpi.js} +1 -1
  30. package/public/assets/{StackChooser-D4JG1V6p.js → StackChooser-BevuWQmP.js} +1 -1
  31. package/public/assets/{StackChooser-Dy0nw-1k.js → StackChooser-_zBnelt3.js} +1 -1
  32. package/public/assets/{StackMultiple-CXbZO3gp.js → StackMultiple-Csmw3IYP.js} +1 -1
  33. package/public/assets/StackSingle-Dlt8beq2.js +1 -0
  34. package/public/assets/{Tabs-zx6MP1w5.js → Tabs-BywdfSIb.js} +1 -1
  35. package/public/assets/{Theme-CVJqEc74.js → Theme-Crc3Y5Xq.js} +1 -1
  36. package/public/assets/{Toolbox-CeYvSlof.js → Toolbox-CdJUlTYX.js} +1 -1
  37. package/public/assets/{cssMode-DRJB02N-.js → cssMode-Dc_mjwBm.js} +1 -1
  38. package/public/assets/{currentEditor-Mutd140I.js → currentEditor-7U_ffDbK.js} +1 -1
  39. package/public/assets/{freemarker2-CUNqJsQJ.js → freemarker2-DenoI_EN.js} +1 -1
  40. package/public/assets/{fs-zCN6KWbV.js → fs--ioNfX4e.js} +1 -1
  41. package/public/assets/{handlebars-DFPe5IUH.js → handlebars-DE9m4AD9.js} +1 -1
  42. package/public/assets/{html-iAZ8fYxX.js → html-DWkY5lmD.js} +1 -1
  43. package/public/assets/{htmlMode-CiLcIJ9M.js → htmlMode-H_uCDovv.js} +1 -1
  44. package/public/assets/{index-D6ITaiDq.js → index-BDHszrMp.js} +1 -1
  45. package/public/assets/{index-D7eodgey.js → index-BRb5P6Lf.js} +1 -1
  46. package/public/assets/{index-DlBh1BN-.js → index-BU5twE5I.js} +1 -1
  47. package/public/assets/{index-LXuPKlr_.js → index-BgXIYHf3.js} +1 -1
  48. package/public/assets/{index-CnHkskP1.js → index-C02AjRq4.js} +2 -2
  49. package/public/assets/{index-r5zB7DkH.js → index-CDIN4LjQ.js} +1 -1
  50. package/public/assets/{index-BYlmWHqo.js → index-CajhEFGy.js} +1 -1
  51. package/public/assets/{index-BvK3ngOF.js → index-Cz_I0ncW.js} +1 -1
  52. package/public/assets/{index-CED4m1pl.js → index-DNGpCJ06.js} +1 -1
  53. package/public/assets/index-DzbsgEyi.js +1 -0
  54. package/public/assets/{index-BykKOUV5.js → index-oilsqKTE.js} +1 -1
  55. package/public/assets/{javascript-DRLQS2xP.js → javascript-JEHh0kiL.js} +1 -1
  56. package/public/assets/{json-tree-view-vue3.es-BAcuRLYG.js → json-tree-view-vue3.es-rwBZaiwd.js} +1 -1
  57. package/public/assets/{jsonMode-BKVfjW9m.js → jsonMode-IIPA7cCY.js} +1 -1
  58. package/public/assets/{liquid-CBIGo8D7.js → liquid-BRkFpgwx.js} +1 -1
  59. package/public/assets/{mdx-D_MaKLKm.js → mdx-BrIuyYYh.js} +1 -1
  60. package/public/assets/{python-ROmifk5f.js → python-DeMyHNgB.js} +1 -1
  61. package/public/assets/{razor-B2BrIgAg.js → razor-JtCeytr2.js} +1 -1
  62. package/public/assets/router-6vVxI5YF.js +103 -0
  63. package/public/assets/{system-CmOEECxV.js → system-h6IsCj_l.js} +1 -1
  64. package/public/assets/{tsMode-ur-_baj-.js → tsMode-z-HPtKEe.js} +1 -1
  65. package/public/assets/{typescript-BI5fccq7.js → typescript-Doy-VTuU.js} +1 -1
  66. package/public/assets/{xml-C8ZhN0MF.js → xml-BOYtRcyI.js} +1 -1
  67. package/public/assets/{yaml-DEXuQlV0.js → yaml-Cu0wuKOc.js} +1 -1
  68. package/public/index.html +1 -1
  69. package/www.js +24 -3
  70. package/www.js.map +1 -1
  71. package/public/assets/Index-_Myie1IE.js +0 -1
  72. package/public/assets/Overview-CyhbZrp6.js +0 -1
  73. package/public/assets/StackSingle-BrA92wNq.js +0 -1
  74. package/public/assets/router-BmEvmcw4.js +0 -103
@@ -1 +0,0 @@
1
- import{l as He,a as p,o as h,b as y,g as N,n as z,F as B,q as D,u as q,h as Y,d as b,t as M,e as ie,f as X,T as Ne,r as $,c as H,j as se,V as Ve,w as Fe,s as Ye,m as ve,aB as ge,k as te}from"./index-CnHkskP1.js";import{d as Ue,a as qe,n as ze}from"./router-BmEvmcw4.js";import{_ as Ke}from"./Section-DWZalQSy.js";import{s as K}from"./sort-BibmqbFD.js";import{g as Je}from"./_commonjsHelpers-D6-XlEtG.js";import{d as he}from"./dayjs.min-CfWDS3UC.js";import{S as Xe}from"./Spinner-BDdyfVPn.js";import{_ as Le}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{k as ae,l as Ze,p as V,x as W,M as le,g as We,U as pe,y as me,z as _e,n as Ae,S as Z,o as Qe,c as je,A as Re,B as et,f as tt,s as nt,i as rt,v as it,e as st,b as at,w as lt}from"./_baseFor-DiPelG4M.js";import"./Editor-BUC6Zjcy.js";var ut="[object Symbol]";function ue(e){return typeof e=="symbol"||ae(e)&&Ze(e)==ut}function ot(e,t){for(var a=-1,s=e==null?0:e.length,c=Array(s);++a<s;)c[a]=t(e[a],a,e);return c}var we=W?W.prototype:void 0,Pe=we?we.toString:void 0;function be(e){if(typeof e=="string")return e;if(V(e))return ot(e,be)+"";if(ue(e))return Pe?Pe.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var ft=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ct=/^\w*$/;function oe(e,t){if(V(e))return!1;var a=typeof e;return a=="number"||a=="symbol"||a=="boolean"||e==null||ue(e)?!0:ct.test(e)||!ft.test(e)||t!=null&&e in Object(t)}var dt="Expected a function";function fe(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(dt);var a=function(){var s=arguments,c=t?t.apply(this,s):s[0],d=a.cache;if(d.has(c))return d.get(c);var v=e.apply(this,s);return a.cache=d.set(c,v)||d,v};return a.cache=new(fe.Cache||le),a}fe.Cache=le;var yt=500;function vt(e){var t=fe(e,function(s){return a.size===yt&&a.clear(),s}),a=t.cache;return t}var gt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ht=/\\(\\)?/g,pt=vt(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(gt,function(a,s,c,d){t.push(c?d.replace(ht,"$1"):s||a)}),t});function mt(e){return e==null?"":be(e)}function $e(e,t){return V(e)?e:oe(e,t)?[e]:pt(mt(e))}function j(e){if(typeof e=="string"||ue(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Be(e,t){t=$e(t,e);for(var a=0,s=t.length;e!=null&&a<s;)e=e[j(t[a++])];return a&&a==s?e:void 0}function _t(e,t,a){var s=e==null?void 0:Be(e,t);return s===void 0?a:s}var At="__lodash_hash_undefined__";function wt(e){return this.__data__.set(e,At),this}function Pt(e){return this.__data__.has(e)}function Q(e){var t=-1,a=e==null?0:e.length;for(this.__data__=new le;++t<a;)this.add(e[t])}Q.prototype.add=Q.prototype.push=wt;Q.prototype.has=Pt;function Ot(e,t){for(var a=-1,s=e==null?0:e.length;++a<s;)if(t(e[a],a,e))return!0;return!1}function St(e,t){return e.has(t)}var Tt=1,Et=2;function Ce(e,t,a,s,c,d){var v=a&Tt,_=e.length,P=t.length;if(_!=P&&!(v&&P>_))return!1;var S=d.get(e),l=d.get(t);if(S&&l)return S==t&&l==e;var A=-1,o=!0,r=a&Et?new Q:void 0;for(d.set(e,t),d.set(t,e);++A<_;){var n=e[A],i=t[A];if(s)var u=v?s(i,n,A,t,e,d):s(n,i,A,e,t,d);if(u!==void 0){if(u)continue;o=!1;break}if(r){if(!Ot(t,function(f,m){if(!St(r,m)&&(n===f||c(n,f,a,s,d)))return r.push(m)})){o=!1;break}}else if(!(n===i||c(n,i,a,s,d))){o=!1;break}}return d.delete(e),d.delete(t),o}function xt(e){var t=-1,a=Array(e.size);return e.forEach(function(s,c){a[++t]=[c,s]}),a}function Lt(e){var t=-1,a=Array(e.size);return e.forEach(function(s){a[++t]=s}),a}var Rt=1,bt=2,$t="[object Boolean]",Bt="[object Date]",Ct="[object Error]",Dt="[object Map]",Mt="[object Number]",kt="[object RegExp]",It="[object Set]",Gt="[object String]",Ht="[object Symbol]",Nt="[object ArrayBuffer]",Vt="[object DataView]",Oe=W?W.prototype:void 0,ne=Oe?Oe.valueOf:void 0;function Ft(e,t,a,s,c,d,v){switch(a){case Vt:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Nt:return!(e.byteLength!=t.byteLength||!d(new pe(e),new pe(t)));case $t:case Bt:case Mt:return We(+e,+t);case Ct:return e.name==t.name&&e.message==t.message;case kt:case Gt:return e==t+"";case Dt:var _=xt;case It:var P=s&Rt;if(_||(_=Lt),e.size!=t.size&&!P)return!1;var S=v.get(e);if(S)return S==t;s|=bt,v.set(e,t);var l=Ce(_(e),_(t),s,c,d,v);return v.delete(e),l;case Ht:if(ne)return ne.call(e)==ne.call(t)}return!1}var Yt=1,Ut=Object.prototype,qt=Ut.hasOwnProperty;function zt(e,t,a,s,c,d){var v=a&Yt,_=me(e),P=_.length,S=me(t),l=S.length;if(P!=l&&!v)return!1;for(var A=P;A--;){var o=_[A];if(!(v?o in t:qt.call(t,o)))return!1}var r=d.get(e),n=d.get(t);if(r&&n)return r==t&&n==e;var i=!0;d.set(e,t),d.set(t,e);for(var u=v;++A<P;){o=_[A];var f=e[o],m=t[o];if(s)var L=v?s(m,f,o,t,e,d):s(f,m,o,e,t,d);if(!(L===void 0?f===m||c(f,m,a,s,d):L)){i=!1;break}u||(u=o=="constructor")}if(i&&!u){var T=e.constructor,R=t.constructor;T!=R&&"constructor"in e&&"constructor"in t&&!(typeof T=="function"&&T instanceof T&&typeof R=="function"&&R instanceof R)&&(i=!1)}return d.delete(e),d.delete(t),i}var Kt=1,Se="[object Arguments]",Te="[object Array]",J="[object Object]",Jt=Object.prototype,Ee=Jt.hasOwnProperty;function Xt(e,t,a,s,c,d){var v=V(e),_=V(t),P=v?Te:_e(e),S=_?Te:_e(t);P=P==Se?J:P,S=S==Se?J:S;var l=P==J,A=S==J,o=P==S;if(o&&Ae(e)){if(!Ae(t))return!1;v=!0,l=!1}if(o&&!l)return d||(d=new Z),v||Qe(e)?Ce(e,t,a,s,c,d):Ft(e,t,P,a,s,c,d);if(!(a&Kt)){var r=l&&Ee.call(e,"__wrapped__"),n=A&&Ee.call(t,"__wrapped__");if(r||n){var i=r?e.value():e,u=n?t.value():t;return d||(d=new Z),c(i,u,a,s,d)}}return o?(d||(d=new Z),zt(e,t,a,s,c,d)):!1}function ce(e,t,a,s,c){return e===t?!0:e==null||t==null||!ae(e)&&!ae(t)?e!==e&&t!==t:Xt(e,t,a,s,ce,c)}var Zt=1,Wt=2;function Qt(e,t,a,s){var c=a.length,d=c;if(e==null)return!d;for(e=Object(e);c--;){var v=a[c];if(v[2]?v[1]!==e[v[0]]:!(v[0]in e))return!1}for(;++c<d;){v=a[c];var _=v[0],P=e[_],S=v[1];if(v[2]){if(P===void 0&&!(_ in e))return!1}else{var l=new Z,A;if(!(A===void 0?ce(S,P,Zt|Wt,s,l):A))return!1}}return!0}function De(e){return e===e&&!je(e)}function jt(e){for(var t=Re(e),a=t.length;a--;){var s=t[a],c=e[s];t[a]=[s,c,De(c)]}return t}function Me(e,t){return function(a){return a==null?!1:a[e]===t&&(t!==void 0||e in Object(a))}}function en(e){var t=jt(e);return t.length==1&&t[0][2]?Me(t[0][0],t[0][1]):function(a){return a===e||Qt(a,e,t)}}function tn(e,t){return e!=null&&t in Object(e)}function nn(e,t,a){t=$e(t,e);for(var s=-1,c=t.length,d=!1;++s<c;){var v=j(t[s]);if(!(d=e!=null&&a(e,v)))break;e=e[v]}return d||++s!=c?d:(c=e==null?0:e.length,!!c&&et(c)&&tt(v,c)&&(V(e)||nt(e)))}function rn(e,t){return e!=null&&nn(e,t,tn)}var sn=1,an=2;function ln(e,t){return oe(e)&&De(t)?Me(j(e),t):function(a){var s=_t(a,e);return s===void 0&&s===t?rn(a,e):ce(t,s,sn|an)}}function un(e){return function(t){return t==null?void 0:t[e]}}function on(e){return function(t){return Be(t,e)}}function fn(e){return oe(e)?un(j(e)):on(e)}function cn(e){return typeof e=="function"?e:e==null?rt:typeof e=="object"?V(e)?ln(e[0],e[1]):en(e):fn(e)}function dn(e,t,a,s){for(var c=-1,d=e==null?0:e.length;++c<d;){var v=e[c];t(s,v,a(v),e)}return s}function yn(e,t){return e&&it(e,t,Re)}function vn(e,t){return function(a,s){if(a==null)return a;if(!st(a))return e(a,s);for(var c=a.length,d=-1,v=Object(a);++d<c&&s(v[d],d,v)!==!1;);return a}}var gn=vn(yn);function hn(e,t,a,s){return gn(e,function(c,d,v){t(s,c,a(c),v)}),s}function pn(e,t){return function(a,s){var c=V(a)?dn:hn,d=t?t():{};return c(a,e,cn(s),d)}}var mn=Object.prototype,_n=mn.hasOwnProperty,An=pn(function(e,t,a){_n.call(e,a)?e[a].push(t):at(e,a,[t])}),re,xe;function wn(){if(xe)return re;xe=1;function e(r,n){var i,u;if(typeof n=="function")u=n(r),u!==void 0&&(r=u);else if(Array.isArray(n))for(i=0;i<n.length;i++)u=n[i](r),u!==void 0&&(r=u);return r}function t(r,n){return r[0]==="-"&&Array.isArray(n)&&/^-\d+$/.test(r)?n.length+parseInt(r,10):r}function a(r){return/^\d+$/.test(r)}function s(r){return Object.prototype.toString.call(r)==="[object Object]"}function c(r){return Object(r)===r}function d(r){return Object.keys(r).length===0}var v=["__proto__","prototype","constructor"],_=function(r){return v.indexOf(r)===-1};function P(r,n){r.indexOf("[")>=0&&(r=r.replace(/\[/g,n).replace(/]/g,""));var i=r.split(n),u=i.filter(_);if(u.length!==i.length)throw Error("Refusing to update blacklisted property "+r);return i}var S=Object.prototype.hasOwnProperty;function l(r,n,i,u){if(!(this instanceof l))return new l(r,n,i,u);typeof n>"u"&&(n=!1),typeof i>"u"&&(i=!0),typeof u>"u"&&(u=!0),this.separator=r||".",this.override=n,this.useArray=i,this.useBrackets=u,this.keepArray=!1,this.cleanup=[]}var A=new l(".",!1,!0,!0);function o(r){return function(){return A[r].apply(A,arguments)}}return l.prototype._fill=function(r,n,i,u){var f=r.shift();if(r.length>0){if(n[f]=n[f]||(this.useArray&&a(r[0])?[]:{}),!c(n[f]))if(this.override)n[f]={};else{if(!(c(i)&&d(i)))throw new Error("Trying to redefine `"+f+"` which is a "+typeof n[f]);return}this._fill(r,n[f],i,u)}else{if(!this.override&&c(n[f])&&!d(n[f])){if(!(c(i)&&d(i)))throw new Error("Trying to redefine non-empty obj['"+f+"']");return}n[f]=e(i,u)}},l.prototype.object=function(r,n){var i=this;return Object.keys(r).forEach(function(u){var f=n===void 0?null:n[u],m=P(u,i.separator).join(i.separator);m.indexOf(i.separator)!==-1?(i._fill(m.split(i.separator),r,r[u],f),delete r[u]):r[u]=e(r[u],f)}),r},l.prototype.str=function(r,n,i,u){var f=P(r,this.separator).join(this.separator);return r.indexOf(this.separator)!==-1?this._fill(f.split(this.separator),i,n,u):i[r]=e(n,u),i},l.prototype.pick=function(r,n,i,u){var f,m,L,T,R;for(m=P(r,this.separator),f=0;f<m.length;f++)if(T=t(m[f],n),n&&typeof n=="object"&&T in n){if(f===m.length-1)return i?(L=n[T],u&&Array.isArray(n)?n.splice(T,1):delete n[T],Array.isArray(n)&&(R=m.slice(0,-1).join("."),this.cleanup.indexOf(R)===-1&&this.cleanup.push(R)),L):n[T];n=n[T]}else return;return i&&Array.isArray(n)&&(n=n.filter(function(ee){return ee!==void 0})),n},l.prototype.delete=function(r,n){return this.remove(r,n,!0)},l.prototype.remove=function(r,n,i){var u;if(this.cleanup=[],Array.isArray(r)){for(u=0;u<r.length;u++)this.pick(r[u],n,!0,i);return i||this._cleanup(n),n}else return this.pick(r,n,!0,i)},l.prototype._cleanup=function(r){var n,i,u,f;if(this.cleanup.length){for(i=0;i<this.cleanup.length;i++)u=this.cleanup[i].split("."),f=u.splice(0,-1).join("."),n=f?this.pick(f,r):r,n=n[u[0]].filter(function(m){return m!==void 0}),this.set(this.cleanup[i],n,r);this.cleanup=[]}},l.prototype.del=l.prototype.remove,l.prototype.move=function(r,n,i,u,f){return typeof u=="function"||Array.isArray(u)?this.set(n,e(this.pick(r,i,!0),u),i,f):(f=u,this.set(n,this.pick(r,i,!0),i,f)),i},l.prototype.transfer=function(r,n,i,u,f,m){return typeof f=="function"||Array.isArray(f)?this.set(n,e(this.pick(r,i,!0),f),u,m):(m=f,this.set(n,this.pick(r,i,!0),u,m)),u},l.prototype.copy=function(r,n,i,u,f,m){return typeof f=="function"||Array.isArray(f)?this.set(n,e(JSON.parse(JSON.stringify(this.pick(r,i,!1))),f),u,m):(m=f,this.set(n,this.pick(r,i,!1),u,m)),u},l.prototype.set=function(r,n,i,u){var f,m,L,T;if(typeof n>"u")return i;for(L=P(r,this.separator),f=0;f<L.length;f++){if(T=L[f],f===L.length-1)if(u&&s(n)&&s(i[T]))for(m in n)S.call(n,m)&&(i[T][m]=n[m]);else if(u&&Array.isArray(i[T])&&Array.isArray(n))for(var R=0;R<n.length;R++)i[L[f]].push(n[R]);else i[T]=n;else(!S.call(i,T)||!s(i[T])&&!Array.isArray(i[T]))&&(/^\d+$/.test(L[f+1])?i[T]=[]:i[T]={});i=i[T]}return i},l.prototype.transform=function(r,n,i){return n=n||{},i=i||{},Object.keys(r).forEach((function(u){this.set(r[u],this.pick(u,n),i)}).bind(this)),i},l.prototype.dot=function(r,n,i){n=n||{},i=i||[];var u=Array.isArray(r);return Object.keys(r).forEach((function(f){var m=u&&this.useBrackets?"["+f+"]":f;if(c(r[f])&&(s(r[f])&&!d(r[f])||Array.isArray(r[f])&&!this.keepArray&&r[f].length!==0))if(u&&this.useBrackets){var L=i[i.length-1]||"";return this.dot(r[f],n,i.slice(0,-1).concat(L+m))}else return this.dot(r[f],n,i.concat(m));else u&&this.useBrackets?n[i.join(this.separator).concat("["+f+"]")]=r[f]:n[i.concat(m).join(this.separator)]=r[f]}).bind(this)),n},l.pick=o("pick"),l.move=o("move"),l.transfer=o("transfer"),l.transform=o("transform"),l.copy=o("copy"),l.object=o("object"),l.str=o("str"),l.set=o("set"),l.delete=o("delete"),l.del=l.remove=o("remove"),l.dot=o("dot"),["override","overwrite"].forEach(function(r){Object.defineProperty(l,r,{get:function(){return A.override},set:function(n){A.override=!!n}})}),["useArray","keepArray","useBrackets"].forEach(function(r){Object.defineProperty(l,r,{get:function(){return A[r]},set:function(n){A[r]=n}})}),l._process=e,re=l,re}var Pn=wn();const On=Je(Pn),Sn={components:{Spinner:Xe},props:{value:{default:()=>[],type:Array},asyncValue:{default:null,type:Function},headers:{default:()=>[],type:Array},defaultSortProperty:{default:"",type:String},defaultSortDirection:{default:"asc",type:String},showGroups:{default:!1,type:Boolean},height:{default:"",type:String},filterValue:{default:"",type:String},filterSchema:{default:()=>({}),type:Object},center:{default:!1,type:Boolean},develop:{default:!1,type:Boolean},noHeader:{default:!1,type:Boolean},noHover:{default:!1,type:Boolean},maxPerPage:{default:0,type:Number},totalRows:{default:0,type:Number},noBorder:{default:!1,type:Boolean},customGroupByValue:{default:null,type:Function},customGroupByLabel:{default:null,type:String},lazy:{default:!1,type:Boolean}},setup(e,t){const a=$(),s=$(!1),c=$(0),d=$([]),v=$(!!e.asyncValue),_=H(()=>v.value?d.value:e.value),P=400,S=$(!1),l=Ue(()=>{c.value++},100),A=g=>{S.value=g.target.scrollTop!==0;const E=g.target.offsetHeight+g.target.scrollTop>=g.target.scrollHeight-P;e.lazy&&E&&l()},o=$(""),r=$("asc"),n=g=>{o.value!==g.id?r.value="asc":r.value=r.value==="asc"?"desc":"asc",o.value=g.id},i=H(()=>{const g=w=>(w.sortByAsc=o.value===w.id&&r.value==="asc",w.sortByDesc=o.value===w.id&&r.value==="desc",w);if(e.headers&&e.headers.length)return e.headers.map(w=>g(typeof w=="string"?{label:w,id:w}:w));const E={};return _.value.map(w=>{w&&Object.keys(w).forEach(C=>E[C]={label:C,id:C})}),Object.values(E).map(g)});se(()=>{var g;o.value=e.defaultSortProperty||((g=i.value[0])==null?void 0:g.id),r.value=e.defaultSortDirection||"asc"});const u=H(()=>{const g=i.value.filter(O=>O.id===o.value).pop(),E=O=>g&&g.customSortValue?g.customSortValue(O[o.value]):O[o.value],w=i.value.reduce((O,x)=>(O[x.id]=x,O),{}),C=O=>{const x=lt(O);return i.value.forEach(({id:G})=>{const U=x[G];w[G]&&w[G].customValue?x[G]=w[G].customValue(U,x):x[G]=U}),x},k=O=>e.customGroupByValue?e.customGroupByValue(O[o.value]):w[o.value]&&w[o.value].customGroupByValue?w[o.value].customGroupByValue(O[o.value]):typeof O[o.value]=="string"?O[o.value].toString().toUpperCase().substr(0,1):O[o.value],I=O=>{const x=r.value==="asc"?K(Object.keys(O)).asc():K(Object.keys(O)).desc(),G=[];return x.forEach(U=>{const Ge=e.customGroupByLabel?O[U][0][e.customGroupByLabel]:U;G.push({tableLetter:!0,label:Ge},...O[U])}),{type:"groupBy",rows:G}},F=O=>Object.keys(O).map(x=>typeof O[x]=="string"?e.filterValue?O[x]:O[x].toUpperCase().includes(e.filterValue.toUpperCase()):typeof O[x]=="number"?e.filterValue?O[x].toString():O[x].toString().includes(e.filterValue):!1).some(x=>x),de=r.value==="asc"?K(_.value).asc(E).map(C).filter(F):K(_.value).desc(E).map(C).filter(F),ke=c.value*e.maxPerPage+e.maxPerPage,Ie=e.lazy?0:c.value*e.maxPerPage,ye=e.maxPerPage&&!v.value?de.slice(Ie,ke):de;return e.showGroups?I(An(ye,k)):ye}),f=Ve([]),m=H(()=>{var g;return((g=u.value)==null?void 0:g.type)==="groupBy"}),L=H(()=>{var C,k,I,F;if(v.value)return Math.ceil(e.totalRows/e.maxPerPage);const g=(C=_.value)==null?void 0:C.length,E=m.value?(I=(k=u.value)==null?void 0:k.rows)==null?void 0:I.length:(F=u.value)==null?void 0:F.length,w=Math.ceil(g/E);return Number.isNaN(w)?0:w}),T=g=>(/\d{2}\/\d{2}\/\d{4}/.test(e.filterValue)?g=he(e.filterValue,"DD/MM/YYYY").format("YYYY-MM-DD"):/\d{2}\/\d{4}/.test(e.filterValue)&&(g=he(e.filterValue,"MM/YYYY").format("YYYY-MM")),g),R=async()=>{if(!e.asyncValue)return;s.value=!0;let g={};if(e.filterValue!=""&&e.filterSchema){const w=[".\\$L$",".\\$u$",".\\$d$",".\\$x$",".\\$y$",".\\$M$",".\\$D$",".\\$W$",".\\$H$",".\\$m$",".\\$s$",".\\$ms$"],C=new RegExp(w.join("|"));g.$or=Object.keys(On.dot(e.filterSchema)).map(k=>k.replace(C,"")).filter((k,I,F)=>F.indexOf(k)==I).map(k=>{let I=e.filterValue;return I=T(I),{[k]:{$regex:I,$options:"i"}}})}const E=await e.asyncValue({offset:e.lazy?0:c.value*e.maxPerPage,maxPerPage:e.lazy?c.value*e.maxPerPage+e.maxPerPage:e.maxPerPage,sort:{[o.value]:r.value==="asc"?1:-1},sortProperty:o.value,filter:g}).finally(()=>s.value=!1);if(!Array.isArray(E))throw new Error("Async table return should be an array");d.value=E},ee=H(()=>[e.asyncValue,e.filterValue,c.value,r.value,o.value]);return Fe(()=>ee.value,R),se(R),{tableWrapperRef:a,loading:s,offset:c,nbTotalPagination:L,computedHeaders:i,computedList:u,scroll:A,isScrolling:S,changeSort:n,openRows:f,isGroupByTable:m,noElements:H(()=>{var g,E,w;return m.value?!((E=(g=u.value)==null?void 0:g.rows)!=null&&E.length)&&!e.filterValue:!((w=u.value)!=null&&w.length)&&!e.filterValue}),noElementsFilter:H(()=>{var g,E,w;return m.value?!((E=(g=u.value)==null?void 0:g.rows)!=null&&E.length)&&e.filterValue:!((w=u.value)!=null&&w.length)&&e.filterValue}),previousPage(){c.value!==0&&(c.value--,a.value.scrollTop=0)},nextPage(){c.value++,a.value.scrollTop=0},click(g,E,w){e.develop?f.includes(g)?f.splice(f.indexOf(g),1):f.push(g):(t.emit("row-click",{row:g}),t.emit("td-click",{row:g,header:E,value:w}))}}}},Tn={class:"table-root"},En={key:0},xn=["id"],Ln={class:"header"},Rn=["onClick"],bn={key:1,class:"spinner"},$n={key:2},Bn=["colspan"],Cn={key:3},Dn=["colspan"],Mn={key:4},kn=["onClick"],In={key:0,class:"develop-row"},Gn=["colspan"],Hn={key:5},Nn=["onClick"],Vn={key:6},Fn={key:0,class:"letter"},Yn={key:1},Un=["onClick"],qn={key:0,class:"pagination"};function zn(e,t,a,s,c,d){var _,P,S;const v=He("spinner");return h(),p("div",Tn,[y("div",{class:z(["table-wrapper",{scroll:s.isScrolling,center:a.center,noBorder:a.noBorder,noHover:a.noHover}]),ref:"tableWrapperRef",onScroll:t[0]||(t[0]=(...l)=>s.scroll&&s.scroll(...l)),style:q({maxHeight:a.height})},[y("table",{class:z({"table-group-by":!Array.isArray(s.computedList)&&s.computedList.type==="groupBy"})},[t[5]||(t[5]=y("caption",null,"Table",-1)),a.noHeader?N("",!0):(h(),p("thead",En,[y("tr",null,[(h(!0),p(B,null,D(s.computedHeaders,l=>(h(),p("th",{key:"th-"+l.id,id:l.id,style:q({width:l.width?l.width:""})},[y("div",Ln,[l.label&&!l.disableSort?(h(),p("div",{key:0,class:"sort-container",onClick:A=>s.changeSort(l)},[y("i",{class:z(["fas fa-sort-up",{active:l.sortByAsc}]),"aria-hidden":"true"},null,2),y("i",{class:z(["fas fa-sort-down",{active:l.sortByDesc}]),"aria-hidden":"true"},null,2)],8,Rn)):N("",!0),b(" "+M(l.label),1)]),Y(e.$slots,"header-"+l.id,{},void 0,!0)],12,xn))),128))])])),s.loading?(h(),p("div",bn,[ie(v)])):s.noElements?(h(),p("tbody",$n,[y("tr",null,[y("td",{colspan:s.computedHeaders.length},[Y(e.$slots,"fallback",{},()=>[t[3]||(t[3]=b("Aucun élément à afficher"))],!0)],8,Bn)])])):s.noElementsFilter?(h(),p("tbody",Cn,[y("tr",null,[y("td",{colspan:s.computedHeaders.length},[Y(e.$slots,"fallbackFilter",{},()=>[t[4]||(t[4]=b("Aucun élément à afficher pour ce filtre"))],!0)],8,Dn)])])):a.develop?(h(),p("tbody",Mn,[(h(!0),p(B,null,D(s.computedList,(l,A)=>(h(),p(B,{key:"rows-"+A},[y("tr",null,[(h(!0),p(B,null,D(s.computedHeaders,(o,r)=>(h(),p("td",{key:r+"-td-"+o.id,style:q({width:o.width?o.width:""}),onClick:n=>s.click(l,o,l[o.id])},[Y(e.$slots,o.id,{item:l[o.id],row:l},()=>[b(M(l[o.id]),1)],!0)],12,kn))),128))]),ie(Ne,{name:"develop-row"},{default:X(()=>[s.openRows.includes(l)?(h(),p("tr",In,[y("td",{colspan:s.computedHeaders.length},[Y(e.$slots,"develop",{row:l},void 0,!0)],8,Gn)])):N("",!0)]),_:2},1024)],64))),128))])):Array.isArray(s.computedList)?(h(),p("tbody",Hn,[(h(!0),p(B,null,D(s.computedList,(l,A)=>(h(),p("tr",{key:`row-${A}`},[(h(!0),p(B,null,D(s.computedHeaders,(o,r)=>(h(),p("td",{key:r+"-td-"+o.id,style:q({width:o.width?o.width:""}),onClick:n=>s.click(l,o,l[o.id])},[Y(e.$slots,o.id,{item:l[o.id],row:l,index:r},()=>[b(M(l[o.id]),1)],!0)],12,Nn))),128))]))),128))])):(h(),p("tbody",Vn,[(h(!0),p(B,null,D(s.computedList.rows,(l,A)=>(h(),p(B,{key:"rows-"+A},[l.tableLetter?(h(),p("tr",Fn,[y("td",null,[y("div",null,M(l.label),1)])])):(h(),p("tr",Yn,[(h(!0),p(B,null,D(s.computedHeaders,(o,r)=>(h(),p("td",{key:r+"-td-"+o.id,style:q({width:o.width?o.width:""}),onClick:n=>s.click(l,o,l[o.id])},[Y(e.$slots,o.id,{item:l[o.id],row:l},()=>[b(M(l[o.id]),1)],!0)],12,Un))),128))]))],64))),128))]))],2)],38),((_=s.computedList)!=null&&_.length||(S=(P=s.computedList)==null?void 0:P.rows)!=null&&S.length)&&s.nbTotalPagination&&s.nbTotalPagination!==1&&!a.lazy?(h(),p("div",qn,[s.offset?(h(),p("button",{key:0,onClick:t[1]||(t[1]=(...l)=>s.previousPage&&s.previousPage(...l))},t[6]||(t[6]=[y("i",{class:"fas fa-chevron-left"},null,-1)]))):N("",!0),y("button",null,M(s.offset+1)+" sur "+M(s.nbTotalPagination),1),s.offset+1<s.nbTotalPagination?(h(),p("button",{key:1,onClick:t[2]||(t[2]=(...l)=>s.nextPage&&s.nextPage(...l))},t[7]||(t[7]=[y("i",{class:"fas fa-chevron-right"},null,-1)]))):N("",!0)])):N("",!0)])}const Kn=Le(Sn,[["render",zn],["__scopeId","data-v-87ac689b"]]),Jn={key:0,class:"container"},Xn={key:0,class:"chooser"},Zn={class:"avatars"},Wn=["src","alt","title"],Qn={class:"avatars"},jn=["src","alt","title"],er={key:1,class:"content"},tr={class:"section"},nr=["href"],rr=["href"],ir=["href"],sr={class:"section"},ar={class:"avatars"},lr=["href"],ur=["src"],or={class:"section"},fr={class:"avatars"},cr=["href"],dr=["src"],yr={key:1,class:"container"},vr={__name:"Index",props:{service:{default:null,required:!0,type:qe}},setup(e){const t=e;$("");const a=$(!1),s=$(!1),c=$(!1),d=$(""),v=$([]),_=$(null);se(async()=>{await A()});async function P(){const{data:r}=await te.get(`/github/service/${t.service.label}/ready`);return!!r}async function S(){const{data:r}=await te.get(`/github/service/${t.service.label}/whoami`);return r.loggedAs}async function l(){const{data:r}=await te.get(`/github/service/${t.service.label}/pull-requests`);return r}async function A(){try{if(c.value=await P(),!c.value)return;d.value=await S(),v.value=await l()}catch(r){ze.next("error","Something not works"),console.error(r)}}const o=H(()=>{let r=v.value;return a.value&&(r=r.filter(n=>n.requested_reviewers.find(i=>i.login===d.value))),s.value&&(r=r.filter(n=>n.assignees.find(i=>i.login===d.value))),r});return(r,n)=>e.service?(h(),Ye(Ke,{key:e.service.label},{default:X(()=>[n[11]||(n[11]=y("div",{class:"header"},[y("h2",null,"Github")],-1)),c.value?(h(),p("div",Jn,[y("div",null," Logged as: "+M(d.value),1),_.value?N("",!0):(h(),p("div",Xn,[y("div",null,[ve(y("input",{type:"checkbox","onUpdate:modelValue":n[0]||(n[0]=i=>a.value=i)},null,512),[[ge,a.value]]),n[4]||(n[4]=b(" Display only to review "))]),y("div",null,[ve(y("input",{type:"checkbox","onUpdate:modelValue":n[1]||(n[1]=i=>s.value=i)},null,512),[[ge,s.value]]),n[5]||(n[5]=b(" Display only owned "))]),ie(Kn,{headers:[{id:"state",label:"State",width:"70px"},{id:"title",label:"Title"},{id:"assignees",label:"Owner",width:"100px"},{id:"requested_reviewers",label:"Reviewers",width:"100px"}],value:o.value,onRowClick:n[2]||(n[2]=i=>_.value=i.row)},{assignees:X(({item:i})=>[y("div",Zn,[(h(!0),p(B,null,D(i,u=>(h(),p("img",{class:"avatar",src:u.avatar_url,alt:u.login,title:u.login},null,8,Wn))),256))])]),requested_reviewers:X(({item:i})=>[y("div",Qn,[(h(!0),p(B,null,D(i,u=>(h(),p("img",{class:"avatar",src:u.avatar_url,alt:u.login,title:u.login},null,8,jn))),256))])]),_:1},8,["value"])])),_.value?(h(),p("div",er,[y("div",{onClick:n[3]||(n[3]=i=>_.value=null)},n[6]||(n[6]=[y("i",{class:"fas fa-chevron-left"},null,-1),b(" Return ")])),y("h2",null,M(_.value.title),1),y("div",tr,[n[7]||(n[7]=y("h3",null,[y("i",{class:"fas fa-globe"}),b("Urls")],-1)),y("ul",null,[y("li",null,[y("a",{href:_.value.html_url},"Home url",8,nr)]),y("li",null,[y("a",{href:_.value.diff_url},"Diff url",8,rr)]),y("li",null,[y("a",{href:_.value.comments_url},"Comment url",8,ir)])])]),y("div",sr,[n[8]||(n[8]=y("h3",null,[y("i",{class:"fas fa-users"}),b("Assignees")],-1)),y("ul",null,[(h(!0),p(B,null,D(_.value.assignees,i=>(h(),p("li",ar,[y("a",{href:i.html_url},[y("img",{class:"avatar",src:i.avatar_url,alt:""},null,8,ur),b(M(i.login),1)],8,lr)]))),256))])]),y("div",or,[n[9]||(n[9]=y("h3",null,[y("i",{class:"fas fa-users"}),b("Reviewers")],-1)),y("ul",null,[(h(!0),p(B,null,D(_.value.requested_reviewers,i=>(h(),p("li",fr,[y("a",{href:i.html_url},[y("img",{class:"avatar",src:i.avatar_url,alt:""},null,8,dr),b(M(i.login),1)],8,cr)]))),256))])])])):N("",!0)])):(h(),p("div",yr,n[10]||(n[10]=[y("div",null,[b(" To use this module you need to provide a valid apikey from github in the RUNEYA_GH_APIKEY environment variable. "),y("a",{href:"https://github.com/settings/tokens/new",target:"_blank"},"See here.")],-1)])))]),_:1,__:[11]})):N("",!0)}},Tr=Le(vr,[["__scopeId","data-v-d80e07ef"]]);export{Tr as default};
@@ -1 +0,0 @@
1
- import{_ as u}from"./Section-DWZalQSy.js";import{S as p,p as f}from"./router-BmEvmcw4.js";import{S as _}from"./StackChooser-Dy0nw-1k.js";import{S as v}from"./Spinner-BDdyfVPn.js";import{c as b,r as k,j as h,k as y,a as t,o as s,e as n,s as S,g,f as x,b as r,d as c,F as w,q as C,n as i,t as B,L as N,a1 as V}from"./index-CnHkskP1.js";import{_ as D}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./Editor-BUC6Zjcy.js";import"./system-CmOEECxV.js";import"./LeftLogo-DdpN8uKw.js";const z={class:"overview-root column"},E={key:0,class:"spinner-container"},F={__name:"Overview",setup(L){const m=V(()=>{var e;return(e=f.find(a=>a.name==="Documentation"))==null?void 0:e.cmp()}),d=b(()=>p.services.value.slice().sort((e,a)=>a.enabled-e.enabled)),l=k(!1);return h(async()=>{const{data:e}=await y.get("/documentation/service/global/is-available");l.value=!!e}),(e,a)=>(s(),t("div",z,[n(u,{class:"home-container"},{default:x(()=>[a[0]||(a[0]=r("h2",null,[r("i",{class:"fas fa-home"}),c("Mes services")],-1)),r("ul",null,[(s(!0),t(w,null,C(d.value,o=>(s(),t("li",{key:o.label,class:i(["service",{enabled:o.enabled}])},[o.enabled?(s(),t("div",E,[n(v,{size:"10"})])):(s(),t("i",{key:1,class:i(["fas",{"fa-pause":!o.enabled}])},null,2)),c(" "+B(o.label),1)],2))),128))])]),_:1,__:[0]}),n(_,{class:"stack-chooser",embed:!0}),l.value?(s(),S(N(m),{key:0,class:"doc-container"})):g("",!0)]))}},J=D(F,[["__scopeId","data-v-8703aba6"]]);export{J as default};
@@ -1 +0,0 @@
1
- import{n as M,p as q,u as A,S as B}from"./router-BmEvmcw4.js";import K from"./system-CmOEECxV.js";import{_ as b}from"./_plugin-vue_export-helper-DlAUqK2U.js";import{a as r,o as l,b as t,u as G,h as J,n as T,P as Q,a1 as W,r as f,w as X,j as R,S as E,K as N,g as p,s as _,d as Y,f as c,t as C,e as u,F as Z,q as ee,a2 as ae,H as te,k as se}from"./index-CnHkskP1.js";import{P as ne,_ as oe}from"./Section-DWZalQSy.js";import{T as le}from"./Tabs-zx6MP1w5.js";import{C as re}from"./CurrentEditor-DSg_c1cT.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./Editor-BUC6Zjcy.js";import"./currentEditor-Mutd140I.js";import"./Spinner-BDdyfVPn.js";const ie={props:{percent:{default:0}}},ce={class:"progress progress-moved"};function ue(v,d,i,a,g,y){return l(),r("div",ce,[t("div",{class:"progress-bar",style:G({width:`${(i.percent||0)>100?100:i.percent||0}%`})},null,4)])}const V=b(ie,[["render",ue],["__scopeId","data-v-3bbda6b0"]]),de={class:"card-container"},fe={__name:"Card",props:{color:{default:"blue"},mini:{default:!1}},setup(v){return(d,i)=>(l(),r("div",{class:T(["card-root",{[v.color]:!0,mini:v.mini}])},[t("div",de,[J(d.$slots,"default",{},void 0,!0)])],2))}},S=b(fe,[["__scopeId","data-v-bebaadaf"]]),ve={__name:"NotificationBell",setup(v){const d=()=>M.openHistory.next();return(i,a)=>(l(),r("div",{class:"notification-bell-root",onClick:d},a[0]||(a[0]=[t("i",{class:"fas fa-bell","aria-hidden":"true"},null,-1)])))}},pe=b(ve,[["__scopeId","data-v-c97a762b"]]),me={class:"main"},_e={class:"header"},be={class:"left"},ge={class:"title"},ye={class:"description"},he={class:"right"},ke={class:"icons"},Ce=["href"],Se=["href"],we=["href","title"],$e={class:"sections"},Ie={key:0,class:"sections"},xe={key:1,class:"system-cards"},Pe=["disabled"],Oe={class:"tab"},Be={__name:"StackSingle",setup(v){const d=Q({});q.forEach(s=>{s.cmp&&typeof s.cmp=="function"&&(d.value[s.name]=W(()=>s.cmp()))});const i=A(),a=f(),g=f(0),y=f(0),m=f(!1);X(()=>i.currentRoute.value.params.label,async()=>{await k()});const w=s=>{s.includes(i.currentRoute.value.params.label.toString())&&k()};R(()=>{E.on("conf:update",w)}),N(()=>{E.off("conf:update",w)});let h;const $=f([]);async function k(){var s;if(await B.loadServices(),a.value=await B.getService((s=i.currentRoute.value.params.label)==null?void 0:s.toString()),a.value){const{data:e}=await se.get("/plugins/services/"+a.value.label);$.value=e.sort((n,o)=>n.order-o.order).map(n=>{var I,x,P,O;const o={label:n.name,id:n.name,icon:n.icon,hidden:n.hidden,warning:0};if(n.name==="Configuration"){const D=Object.keys(((x=(I=a.value)==null?void 0:I.spawnOptions)==null?void 0:x.overrideEnvs)||{});Object.keys(((O=(P=a.value)==null?void 0:P.spawnOptions)==null?void 0:O.env)||{}).some(H=>D.includes(H))&&(o.warning=1)}return o})}}R(async()=>{await k(),h=setInterval(async()=>{var n;if(!((n=a.value)!=null&&n.label))return;const{cpu:s,mem:e}=await K.getInfos(a.value.label.toString());g.value=s,y.value=e},1e3)}),N(()=>{h&&clearInterval(h)}),f(!1);async function F(s,e){var n;(n=a.value)==null||n.openInVsCode(s,e)}async function L(s){var e;(e=a.value)==null||e.openFolder(s)}async function U(){var s;m.value=!0,await((s=a.value)==null?void 0:s.restart().finally(()=>m.value=!1))}async function j(){var s;await((s=a.value)==null?void 0:s.stop())}async function z(){var s;await((s=a.value)==null?void 0:s.start())}return(s,e)=>{var n;return a.value?(l(),r("div",{class:"stack-single",key:s.$route.params.label.toString()},[t("div",me,[t("div",_e,[t("div",be,[t("div",ge,[(n=a.value.container)!=null&&n.enabled?(l(),_(ne,{key:0,trigger:"mouseenter",appendTo:"parent","max-width":"50vh"},{trigger:c(()=>e[4]||(e[4]=[t("i",{class:"fab fa-docker"},null,-1)])),content:c(()=>[t("ul",null,[t("li",null,"Container name: "+C(a.value.container.name),1)])]),_:1})):p("",!0),Y(" "+C(a.value.label),1)]),t("div",ye,C(a.value.description),1)]),t("div",he,[u(pe),t("div",ke,[a.value.git&&a.value.git.home?(l(),r("a",{key:0,href:a.value.git.home,target:"_blank",title:"Open git home"},e[5]||(e[5]=[t("i",{class:"fab fa-github","aria-hidden":"true"},null,-1)]),8,Ce)):p("",!0),a.value.url?(l(),r("a",{key:1,href:a.value.url,target:"_blank",title:"Open service URL"},e[6]||(e[6]=[t("i",{class:"fas fa-globe","aria-hidden":"true"},null,-1)]),8,Se)):p("",!0),(l(!0),r(Z,null,ee(a.value.urls,o=>(l(),r("a",{key:o,href:o,target:"_blank",title:o},e[7]||(e[7]=[t("i",{class:"fas fa-globe","aria-hidden":"true"},null,-1)]),8,we))),128)),(l(),_(re,{key:"current-editor-"+a.value.label,service:a.value,onOpenEditor:e[0]||(e[0]=o=>F(a.value.rootPath,o))},null,8,["service"])),a.value.rootPath?(l(),r("i",{key:2,class:"fas fa-folder","aria-hidden":"true",title:"Open folder",onClick:e[1]||(e[1]=o=>L(a.value.rootPath))})):p("",!0)])])]),t("div",$e,[a.value.enabled?(l(),r("div",xe,[u(S,{class:"card to-hide-for-small-screen",mini:!0},{default:c(()=>[e[8]||(e[8]=t("i",{class:"fas fa-memory"},null,-1)),e[9]||(e[9]=t("div",{class:"hovered"},"Memory",-1)),u(V,{percent:y.value},null,8,["percent"])]),_:1,__:[8,9]}),u(S,{class:"card to-hide-for-small-screen",color:"purple",mini:!0},{default:c(()=>[e[10]||(e[10]=t("i",{class:"fas fa-microchip"},null,-1)),e[11]||(e[11]=t("div",{class:"hovered"},"CPU",-1)),u(V,{percent:g.value},null,8,["percent"])]),_:1,__:[10,11]}),u(S,{class:"card restart-stop-card",color:"orange",mini:!0},{default:c(()=>[t("button",{class:"small",onClick:e[2]||(e[2]=o=>U()),disabled:m.value},[t("i",{class:T(["fas fa-sync",{rotate:m.value}]),"aria-hidden":"true"},null,2),e[12]||(e[12]=t("span",null,"Restart",-1))],8,Pe),t("button",{class:"small",onClick:e[3]||(e[3]=o=>j())},e[13]||(e[13]=[t("i",{class:"fas fa-stop","aria-hidden":"true"},null,-1),t("span",null,"Stop",-1)]))]),_:1})])):(l(),r("div",Ie,[u(oe,{header:"This service is not started",actions:[{label:"Start",click:()=>z(),icon:"fas fa-play"}],class:"section-not-started"},null,8,["actions"])])),u(le,{class:"tabs",tabs:$.value,showLabels:!1,direction:"left",contentCss:{height:"100%"}},{default:c(({tab:o})=>[t("div",Oe,[(l(),_(ae,null,{default:c(()=>[(l(),_(te(d.value[o.id]||o.id),{service:a.value,key:a.value.label},null,8,["service"]))]),fallback:c(()=>e[14]||(e[14]=[t("div",{class:"dynamic-loader"},[t("div",{class:"loader-content"},[t("i",{class:"fas fa-spinner fa-spin loader-icon"}),t("span",null,"Loading component...")])],-1)])),_:2},1024))])]),_:1},8,["tabs"])])])])):p("",!0)}}},Me=b(Be,[["__scopeId","data-v-f185c830"]]);export{Me as default};
@@ -1,103 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Index-CCt5RYhV.js","assets/_commonjsHelpers-D6-XlEtG.js","assets/Section-DWZalQSy.js","assets/_plugin-vue_export-helper-DlAUqK2U.js","assets/index-CnHkskP1.js","assets/index-D9v3u7Fv.css","assets/Section-Dz0BsVYl.css","assets/Theme-CVJqEc74.js","assets/_baseFor-DiPelG4M.js","assets/Editor-BUC6Zjcy.js","assets/Editor-CPPFMOjb.css","assets/Index-Cd-qd5VG.css","assets/NotUpToDate-Dv1x5laT.js","assets/Spinner-BDdyfVPn.js","assets/Spinner-BZXOybIg.css","assets/NotUpToDate-Dh9RbAwK.css","assets/Index-CKyiBy6h.js","assets/Index-CvSNWhOl.js","assets/Index-CNTmcq3o.js","assets/json-tree-view-vue3.es-BAcuRLYG.js","assets/Index-C66tLKvy.css","assets/Toolbox-CeYvSlof.js","assets/Toolbox-B5KXz4eX.css","assets/DynamicComponent-Cd8cbFTY.js","assets/DynamicComponent-DgxRO4Pl.css","assets/Modals-UgnVGGTd.js","assets/Modal-CMVKUmmz.js","assets/Modal-CGUZawhK.css","assets/index-LXuPKlr_.js","assets/index-CED4m1pl.js","assets/index-r5zB7DkH.js","assets/Logs-Dr0aVld6.js","assets/dayjs.min-CfWDS3UC.js","assets/fs-zCN6KWbV.js","assets/Logs-C7U-WsYO.css","assets/Git-CWhmBLgo.js","assets/currentEditor-Mutd140I.js","assets/Git-UQIt5ANe.css","assets/Index-_Myie1IE.js","assets/sort-BibmqbFD.js","assets/Index-BcFahN3S.css","assets/Npm-BQOhWPXB.js","assets/Npm-KBzO1DYv.css","assets/Bugs-H-Otgxln.js","assets/Bugs-DZVuTDKA.css","assets/Configs-CS7LQ3j2.js","assets/index-BykKOUV5.js","assets/index-BYlmWHqo.js","assets/index-D7eodgey.js","assets/index-BvK3ngOF.js","assets/index-D6ITaiDq.js","assets/lodash-D2RHCRSL.js","assets/Configs-DQRZRhbp.css","assets/Index-DXLLCB8w.js","assets/Markdown-CINu7VUT.js","assets/Markdown-CqAPHaPe.css","assets/index-DlBh1BN-.js","assets/Index-CvhWs0kp.css","assets/StackChooser-D4JG1V6p.js","assets/system-CmOEECxV.js","assets/LeftLogo-DdpN8uKw.js","assets/LeftLogo-DsGaOcJY.css","assets/StackChooser-Dy0nw-1k.js","assets/StackChooser-mg-uox7H.css","assets/StackChooser-DRNfmbOi.css","assets/StackSingle-BrA92wNq.js","assets/Tabs-zx6MP1w5.js","assets/Tabs-BGPqRkjE.css","assets/CurrentEditor-DSg_c1cT.js","assets/CurrentEditor-CICqnVzc.css","assets/StackSingle-BVHxvisP.css","assets/Overview-CyhbZrp6.js","assets/Overview-D94ypoub.css","assets/StackMultiple-CXbZO3gp.js","assets/StackMultiple-CiXqkibR.css","assets/ImportCreate-BMYQ7CRt.js","assets/ImportCreate-D2Vb-Kah.css","assets/Settings-gQ2r_ArG.js","assets/Settings-DvieCtW4.css","assets/Init-ec91xg4K.js"])))=>i.map(i=>d[i]);
2
- import{P as _n,Q as Ge,L as Pt,R as gn,U as At,V as yn,c as yt,W as ze,X as ee,r as mt,w as Qt,i as Qe,K as mn,j as bn,m as ye,Y as wn,a as jt,o as Tt,g as me,b as dt,v as En,F as be,q as we,s as Cn,f as Rn,t as Ft,O as ne,n as re,k as B,_ as ot,Z as kn,S as Gt}from"./index-CnHkskP1.js";import{c as Nt,g as Ke}from"./_commonjsHelpers-D6-XlEtG.js";import{E as Sn}from"./Editor-BUC6Zjcy.js";import{_ as Xe}from"./Section-DWZalQSy.js";import{_ as xn}from"./_plugin-vue_export-helper-DlAUqK2U.js";/*!
3
- * vue-router v4.5.1
4
- * (c) 2025 Eduardo San Martin Morote
5
- * @license MIT
6
- */const Ot=typeof document<"u";function qe(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Tn(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&qe(e.default)}const rt=Object.assign;function ie(e,n){const s={};for(const r in n){const c=n[r];s[r]=wt(c)?c.map(e):e(c)}return s}const Ht=()=>{},wt=Array.isArray,Ye=/#/g,Fn=/&/g,An=/\//g,jn=/=/g,On=/\?/g,Je=/\+/g,In=/%5B/g,Dn=/%5D/g,Ze=/%5E/g,Ln=/%60/g,tn=/%7B/g,Vn=/%7C/g,en=/%7D/g,Pn=/%20/g;function fe(e){return encodeURI(""+e).replace(Vn,"|").replace(In,"[").replace(Dn,"]")}function Hn(e){return fe(e).replace(tn,"{").replace(en,"}").replace(Ze,"^")}function le(e){return fe(e).replace(Je,"%2B").replace(Pn,"+").replace(Ye,"%23").replace(Fn,"%26").replace(Ln,"`").replace(tn,"{").replace(en,"}").replace(Ze,"^")}function Un(e){return le(e).replace(jn,"%3D")}function $n(e){return fe(e).replace(Ye,"%23").replace(On,"%3F")}function Bn(e){return e==null?"":$n(e).replace(An,"%2F")}function $t(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const Nn=/\/$/,Mn=e=>e.replace(Nn,"");function oe(e,n,s="/"){let r,c={},R="",t="";const b=n.indexOf("#");let f=n.indexOf("?");return b<f&&b>=0&&(f=-1),f>-1&&(r=n.slice(0,f),R=n.slice(f+1,b>-1?b:n.length),c=e(R)),b>-1&&(r=r||n.slice(0,b),t=n.slice(b,n.length)),r=Qn(r??n,s),{fullPath:r+(R&&"?")+R+t,path:r,query:c,hash:$t(t)}}function Wn(e,n){const s=n.query?e(n.query):"";return n.path+(s&&"?")+s+(n.hash||"")}function Ee(e,n){return!n||!e.toLowerCase().startsWith(n.toLowerCase())?e:e.slice(n.length)||"/"}function Gn(e,n,s){const r=n.matched.length-1,c=s.matched.length-1;return r>-1&&r===c&&It(n.matched[r],s.matched[c])&&nn(n.params,s.params)&&e(n.query)===e(s.query)&&n.hash===s.hash}function It(e,n){return(e.aliasOf||e)===(n.aliasOf||n)}function nn(e,n){if(Object.keys(e).length!==Object.keys(n).length)return!1;for(const s in e)if(!zn(e[s],n[s]))return!1;return!0}function zn(e,n){return wt(e)?Ce(e,n):wt(n)?Ce(n,e):e===n}function Ce(e,n){return wt(n)?e.length===n.length&&e.every((s,r)=>s===n[r]):e.length===1&&e[0]===n}function Qn(e,n){if(e.startsWith("/"))return e;if(!e)return n;const s=n.split("/"),r=e.split("/"),c=r[r.length-1];(c===".."||c===".")&&r.push("");let R=s.length-1,t,b;for(t=0;t<r.length;t++)if(b=r[t],b!==".")if(b==="..")R>1&&R--;else break;return s.slice(0,R).join("/")+"/"+r.slice(t).join("/")}const kt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Bt;(function(e){e.pop="pop",e.push="push"})(Bt||(Bt={}));var Ut;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Ut||(Ut={}));function Kn(e){if(!e)if(Ot){const n=document.querySelector("base");e=n&&n.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Mn(e)}const Xn=/^[^#]+#/;function qn(e,n){return e.replace(Xn,"#")+n}function Yn(e,n){const s=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:n.behavior,left:r.left-s.left-(n.left||0),top:r.top-s.top-(n.top||0)}}const Kt=()=>({left:window.scrollX,top:window.scrollY});function Jn(e){let n;if("el"in e){const s=e.el,r=typeof s=="string"&&s.startsWith("#"),c=typeof s=="string"?r?document.getElementById(s.slice(1)):document.querySelector(s):s;if(!c)return;n=Yn(c,e)}else n=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(n):window.scrollTo(n.left!=null?n.left:window.scrollX,n.top!=null?n.top:window.scrollY)}function Re(e,n){return(history.state?history.state.position-n:-1)+e}const ce=new Map;function Zn(e,n){ce.set(e,n)}function tr(e){const n=ce.get(e);return ce.delete(e),n}let er=()=>location.protocol+"//"+location.host;function rn(e,n){const{pathname:s,search:r,hash:c}=n,R=e.indexOf("#");if(R>-1){let b=c.includes(e.slice(R))?e.slice(R).length:1,f=c.slice(b);return f[0]!=="/"&&(f="/"+f),Ee(f,"")}return Ee(s,e)+r+c}function nr(e,n,s,r){let c=[],R=[],t=null;const b=({state:o})=>{const a=rn(e,location),u=s.value,y=n.value;let v=0;if(o){if(s.value=a,n.value=o,t&&t===u){t=null;return}v=y?o.position-y.position:0}else r(a);c.forEach(g=>{g(s.value,u,{delta:v,type:Bt.pop,direction:v?v>0?Ut.forward:Ut.back:Ut.unknown})})};function f(){t=s.value}function l(o){c.push(o);const a=()=>{const u=c.indexOf(o);u>-1&&c.splice(u,1)};return R.push(a),a}function m(){const{history:o}=window;o.state&&o.replaceState(rt({},o.state,{scroll:Kt()}),"")}function p(){for(const o of R)o();R=[],window.removeEventListener("popstate",b),window.removeEventListener("beforeunload",m)}return window.addEventListener("popstate",b),window.addEventListener("beforeunload",m,{passive:!0}),{pauseListeners:f,listen:l,destroy:p}}function ke(e,n,s,r=!1,c=!1){return{back:e,current:n,forward:s,replaced:r,position:window.history.length,scroll:c?Kt():null}}function rr(e){const{history:n,location:s}=window,r={value:rn(e,s)},c={value:n.state};c.value||R(r.value,{back:null,current:r.value,forward:null,position:n.length-1,replaced:!0,scroll:null},!0);function R(f,l,m){const p=e.indexOf("#"),o=p>-1?(s.host&&document.querySelector("base")?e:e.slice(p))+f:er()+e+f;try{n[m?"replaceState":"pushState"](l,"",o),c.value=l}catch(a){console.error(a),s[m?"replace":"assign"](o)}}function t(f,l){const m=rt({},n.state,ke(c.value.back,f,c.value.forward,!0),l,{position:c.value.position});R(f,m,!0),r.value=f}function b(f,l){const m=rt({},c.value,n.state,{forward:f,scroll:Kt()});R(m.current,m,!0);const p=rt({},ke(r.value,f,null),{position:m.position+1},l);R(f,p,!1),r.value=f}return{location:r,state:c,push:b,replace:t}}function ir(e){e=Kn(e);const n=rr(e),s=nr(e,n.state,n.location,n.replace);function r(R,t=!0){t||s.pauseListeners(),history.go(R)}const c=rt({location:"",base:e,go:r,createHref:qn.bind(null,e)},n,s);return Object.defineProperty(c,"location",{enumerable:!0,get:()=>n.location.value}),Object.defineProperty(c,"state",{enumerable:!0,get:()=>n.state.value}),c}function or(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),ir(e)}function ar(e){return typeof e=="string"||e&&typeof e=="object"}function on(e){return typeof e=="string"||typeof e=="symbol"}const an=Symbol("");var Se;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Se||(Se={}));function Dt(e,n){return rt(new Error,{type:e,[an]:!0},n)}function Rt(e,n){return e instanceof Error&&an in e&&(n==null||!!(e.type&n))}const xe="[^/]+?",sr={sensitive:!1,strict:!1,start:!0,end:!0},lr=/[.+*?^${}()[\]/\\]/g;function cr(e,n){const s=rt({},sr,n),r=[];let c=s.start?"^":"";const R=[];for(const l of e){const m=l.length?[]:[90];s.strict&&!l.length&&(c+="/");for(let p=0;p<l.length;p++){const o=l[p];let a=40+(s.sensitive?.25:0);if(o.type===0)p||(c+="/"),c+=o.value.replace(lr,"\\$&"),a+=40;else if(o.type===1){const{value:u,repeatable:y,optional:v,regexp:g}=o;R.push({name:u,repeatable:y,optional:v});const w=g||xe;if(w!==xe){a+=10;try{new RegExp(`(${w})`)}catch(_){throw new Error(`Invalid custom RegExp for param "${u}" (${w}): `+_.message)}}let d=y?`((?:${w})(?:/(?:${w}))*)`:`(${w})`;p||(d=v&&l.length<2?`(?:/${d})`:"/"+d),v&&(d+="?"),c+=d,a+=20,v&&(a+=-8),y&&(a+=-20),w===".*"&&(a+=-50)}m.push(a)}r.push(m)}if(s.strict&&s.end){const l=r.length-1;r[l][r[l].length-1]+=.7000000000000001}s.strict||(c+="/?"),s.end?c+="$":s.strict&&!c.endsWith("/")&&(c+="(?:/|$)");const t=new RegExp(c,s.sensitive?"":"i");function b(l){const m=l.match(t),p={};if(!m)return null;for(let o=1;o<m.length;o++){const a=m[o]||"",u=R[o-1];p[u.name]=a&&u.repeatable?a.split("/"):a}return p}function f(l){let m="",p=!1;for(const o of e){(!p||!m.endsWith("/"))&&(m+="/"),p=!1;for(const a of o)if(a.type===0)m+=a.value;else if(a.type===1){const{value:u,repeatable:y,optional:v}=a,g=u in l?l[u]:"";if(wt(g)&&!y)throw new Error(`Provided param "${u}" is an array but it is not repeatable (* or + modifiers)`);const w=wt(g)?g.join("/"):g;if(!w)if(v)o.length<2&&(m.endsWith("/")?m=m.slice(0,-1):p=!0);else throw new Error(`Missing required param "${u}"`);m+=w}}return m||"/"}return{re:t,score:r,keys:R,parse:b,stringify:f}}function ur(e,n){let s=0;for(;s<e.length&&s<n.length;){const r=n[s]-e[s];if(r)return r;s++}return e.length<n.length?e.length===1&&e[0]===80?-1:1:e.length>n.length?n.length===1&&n[0]===80?1:-1:0}function sn(e,n){let s=0;const r=e.score,c=n.score;for(;s<r.length&&s<c.length;){const R=ur(r[s],c[s]);if(R)return R;s++}if(Math.abs(c.length-r.length)===1){if(Te(r))return 1;if(Te(c))return-1}return c.length-r.length}function Te(e){const n=e[e.length-1];return e.length>0&&n[n.length-1]<0}const fr={type:0,value:""},pr=/[a-zA-Z0-9_]/;function hr(e){if(!e)return[[]];if(e==="/")return[[fr]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function n(a){throw new Error(`ERR (${s})/"${l}": ${a}`)}let s=0,r=s;const c=[];let R;function t(){R&&c.push(R),R=[]}let b=0,f,l="",m="";function p(){l&&(s===0?R.push({type:0,value:l}):s===1||s===2||s===3?(R.length>1&&(f==="*"||f==="+")&&n(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),R.push({type:1,value:l,regexp:m,repeatable:f==="*"||f==="+",optional:f==="*"||f==="?"})):n("Invalid state to consume buffer"),l="")}function o(){l+=f}for(;b<e.length;){if(f=e[b++],f==="\\"&&s!==2){r=s,s=4;continue}switch(s){case 0:f==="/"?(l&&p(),t()):f===":"?(p(),s=1):o();break;case 4:o(),s=r;break;case 1:f==="("?s=2:pr.test(f)?o():(p(),s=0,f!=="*"&&f!=="?"&&f!=="+"&&b--);break;case 2:f===")"?m[m.length-1]=="\\"?m=m.slice(0,-1)+f:s=3:m+=f;break;case 3:p(),s=0,f!=="*"&&f!=="?"&&f!=="+"&&b--,m="";break;default:n("Unknown state");break}}return s===2&&n(`Unfinished custom RegExp for param "${l}"`),p(),t(),c}function dr(e,n,s){const r=cr(hr(e.path),s),c=rt(r,{record:e,parent:n,children:[],alias:[]});return n&&!c.record.aliasOf==!n.record.aliasOf&&n.children.push(c),c}function vr(e,n){const s=[],r=new Map;n=Oe({strict:!1,end:!0,sensitive:!1},n);function c(p){return r.get(p)}function R(p,o,a){const u=!a,y=Ae(p);y.aliasOf=a&&a.record;const v=Oe(n,p),g=[y];if("alias"in p){const _=typeof p.alias=="string"?[p.alias]:p.alias;for(const x of _)g.push(Ae(rt({},y,{components:a?a.record.components:y.components,path:x,aliasOf:a?a.record:y})))}let w,d;for(const _ of g){const{path:x}=_;if(o&&x[0]!=="/"){const A=o.record.path,T=A[A.length-1]==="/"?"":"/";_.path=o.record.path+(x&&T+x)}if(w=dr(_,o,v),a?a.alias.push(w):(d=d||w,d!==w&&d.alias.push(w),u&&p.name&&!je(w)&&t(p.name)),ln(w)&&f(w),y.children){const A=y.children;for(let T=0;T<A.length;T++)R(A[T],w,a&&a.children[T])}a=a||w}return d?()=>{t(d)}:Ht}function t(p){if(on(p)){const o=r.get(p);o&&(r.delete(p),s.splice(s.indexOf(o),1),o.children.forEach(t),o.alias.forEach(t))}else{const o=s.indexOf(p);o>-1&&(s.splice(o,1),p.record.name&&r.delete(p.record.name),p.children.forEach(t),p.alias.forEach(t))}}function b(){return s}function f(p){const o=yr(p,s);s.splice(o,0,p),p.record.name&&!je(p)&&r.set(p.record.name,p)}function l(p,o){let a,u={},y,v;if("name"in p&&p.name){if(a=r.get(p.name),!a)throw Dt(1,{location:p});v=a.record.name,u=rt(Fe(o.params,a.keys.filter(d=>!d.optional).concat(a.parent?a.parent.keys.filter(d=>d.optional):[]).map(d=>d.name)),p.params&&Fe(p.params,a.keys.map(d=>d.name))),y=a.stringify(u)}else if(p.path!=null)y=p.path,a=s.find(d=>d.re.test(y)),a&&(u=a.parse(y),v=a.record.name);else{if(a=o.name?r.get(o.name):s.find(d=>d.re.test(o.path)),!a)throw Dt(1,{location:p,currentLocation:o});v=a.record.name,u=rt({},o.params,p.params),y=a.stringify(u)}const g=[];let w=a;for(;w;)g.unshift(w.record),w=w.parent;return{name:v,path:y,params:u,matched:g,meta:gr(g)}}e.forEach(p=>R(p));function m(){s.length=0,r.clear()}return{addRoute:R,resolve:l,removeRoute:t,clearRoutes:m,getRoutes:b,getRecordMatcher:c}}function Fe(e,n){const s={};for(const r of n)r in e&&(s[r]=e[r]);return s}function Ae(e){const n={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:_r(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(n,"mods",{value:{}}),n}function _r(e){const n={},s=e.props||!1;if("component"in e)n.default=s;else for(const r in e.components)n[r]=typeof s=="object"?s[r]:s;return n}function je(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function gr(e){return e.reduce((n,s)=>rt(n,s.meta),{})}function Oe(e,n){const s={};for(const r in e)s[r]=r in n?n[r]:e[r];return s}function yr(e,n){let s=0,r=n.length;for(;s!==r;){const R=s+r>>1;sn(e,n[R])<0?r=R:s=R+1}const c=mr(e);return c&&(r=n.lastIndexOf(c,r-1)),r}function mr(e){let n=e;for(;n=n.parent;)if(ln(n)&&sn(e,n)===0)return n}function ln({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function br(e){const n={};if(e===""||e==="?")return n;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let c=0;c<r.length;++c){const R=r[c].replace(Je," "),t=R.indexOf("="),b=$t(t<0?R:R.slice(0,t)),f=t<0?null:$t(R.slice(t+1));if(b in n){let l=n[b];wt(l)||(l=n[b]=[l]),l.push(f)}else n[b]=f}return n}function Ie(e){let n="";for(let s in e){const r=e[s];if(s=Un(s),r==null){r!==void 0&&(n+=(n.length?"&":"")+s);continue}(wt(r)?r.map(R=>R&&le(R)):[r&&le(r)]).forEach(R=>{R!==void 0&&(n+=(n.length?"&":"")+s,R!=null&&(n+="="+R))})}return n}function wr(e){const n={};for(const s in e){const r=e[s];r!==void 0&&(n[s]=wt(r)?r.map(c=>c==null?null:""+c):r==null?r:""+r)}return n}const Er=Symbol(""),De=Symbol(""),Xt=Symbol(""),pe=Symbol(""),ue=Symbol("");function Vt(){let e=[];function n(r){return e.push(r),()=>{const c=e.indexOf(r);c>-1&&e.splice(c,1)}}function s(){e=[]}return{add:n,list:()=>e.slice(),reset:s}}function St(e,n,s,r,c,R=t=>t()){const t=r&&(r.enterCallbacks[c]=r.enterCallbacks[c]||[]);return()=>new Promise((b,f)=>{const l=o=>{o===!1?f(Dt(4,{from:s,to:n})):o instanceof Error?f(o):ar(o)?f(Dt(2,{from:n,to:o})):(t&&r.enterCallbacks[c]===t&&typeof o=="function"&&t.push(o),b())},m=R(()=>e.call(r&&r.instances[c],n,s,l));let p=Promise.resolve(m);e.length<3&&(p=p.then(l)),p.catch(o=>f(o))})}function ae(e,n,s,r,c=R=>R()){const R=[];for(const t of e)for(const b in t.components){let f=t.components[b];if(!(n!=="beforeRouteEnter"&&!t.instances[b]))if(qe(f)){const m=(f.__vccOpts||f)[n];m&&R.push(St(m,s,r,t,b,c))}else{let l=f();R.push(()=>l.then(m=>{if(!m)throw new Error(`Couldn't resolve component "${b}" at "${t.path}"`);const p=Tn(m)?m.default:m;t.mods[b]=m,t.components[b]=p;const a=(p.__vccOpts||p)[n];return a&&St(a,s,r,t,b,c)()}))}}return R}function Le(e){const n=At(Xt),s=At(pe),r=yt(()=>{const f=Pt(e.to);return n.resolve(f)}),c=yt(()=>{const{matched:f}=r.value,{length:l}=f,m=f[l-1],p=s.matched;if(!m||!p.length)return-1;const o=p.findIndex(It.bind(null,m));if(o>-1)return o;const a=Ve(f[l-2]);return l>1&&Ve(m)===a&&p[p.length-1].path!==a?p.findIndex(It.bind(null,f[l-2])):o}),R=yt(()=>c.value>-1&&xr(s.params,r.value.params)),t=yt(()=>c.value>-1&&c.value===s.matched.length-1&&nn(s.params,r.value.params));function b(f={}){if(Sr(f)){const l=n[Pt(e.replace)?"replace":"push"](Pt(e.to)).catch(Ht);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>l),l}return Promise.resolve()}return{route:r,href:yt(()=>r.value.href),isActive:R,isExactActive:t,navigate:b}}function Cr(e){return e.length===1?e[0]:e}const Rr=Ge({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:Le,setup(e,{slots:n}){const s=yn(Le(e)),{options:r}=At(Xt),c=yt(()=>({[Pe(e.activeClass,r.linkActiveClass,"router-link-active")]:s.isActive,[Pe(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:s.isExactActive}));return()=>{const R=n.default&&Cr(n.default(s));return e.custom?R:ze("a",{"aria-current":s.isExactActive?e.ariaCurrentValue:null,href:s.href,onClick:s.navigate,class:c.value},R)}}}),kr=Rr;function Sr(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const n=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(n))return}return e.preventDefault&&e.preventDefault(),!0}}function xr(e,n){for(const s in n){const r=n[s],c=e[s];if(typeof r=="string"){if(r!==c)return!1}else if(!wt(c)||c.length!==r.length||r.some((R,t)=>R!==c[t]))return!1}return!0}function Ve(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Pe=(e,n,s)=>e??n??s,Tr=Ge({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:n,slots:s}){const r=At(ue),c=yt(()=>e.route||r.value),R=At(De,0),t=yt(()=>{let l=Pt(R);const{matched:m}=c.value;let p;for(;(p=m[l])&&!p.components;)l++;return l}),b=yt(()=>c.value.matched[t.value]);ee(De,yt(()=>t.value+1)),ee(Er,b),ee(ue,c);const f=mt();return Qt(()=>[f.value,b.value,e.name],([l,m,p],[o,a,u])=>{m&&(m.instances[p]=l,a&&a!==m&&l&&l===o&&(m.leaveGuards.size||(m.leaveGuards=a.leaveGuards),m.updateGuards.size||(m.updateGuards=a.updateGuards))),l&&m&&(!a||!It(m,a)||!o)&&(m.enterCallbacks[p]||[]).forEach(y=>y(l))},{flush:"post"}),()=>{const l=c.value,m=e.name,p=b.value,o=p&&p.components[m];if(!o)return He(s.default,{Component:o,route:l});const a=p.props[m],u=a?a===!0?l.params:typeof a=="function"?a(l):a:null,v=ze(o,rt({},u,n,{onVnodeUnmounted:g=>{g.component.isUnmounted&&(p.instances[m]=null)},ref:f}));return He(s.default,{Component:v,route:l})||v}}});function He(e,n){if(!e)return null;const s=e(n);return s.length===1?s[0]:s}const Fr=Tr;function Ar(e){const n=vr(e.routes,e),s=e.parseQuery||br,r=e.stringifyQuery||Ie,c=e.history,R=Vt(),t=Vt(),b=Vt(),f=_n(kt);let l=kt;Ot&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const m=ie.bind(null,F=>""+F),p=ie.bind(null,Bn),o=ie.bind(null,$t);function a(F,h){let i,E;return on(F)?(i=n.getRecordMatcher(F),E=h):E=F,n.addRoute(E,i)}function u(F){const h=n.getRecordMatcher(F);h&&n.removeRoute(h)}function y(){return n.getRoutes().map(F=>F.record)}function v(F){return!!n.getRecordMatcher(F)}function g(F,h){if(h=rt({},h||f.value),typeof F=="string"){const H=oe(s,F,h.path),Q=n.resolve({path:H.path},h),ft=c.createHref(H.fullPath);return rt(H,Q,{params:o(Q.params),hash:$t(H.hash),redirectedFrom:void 0,href:ft})}let i;if(F.path!=null)i=rt({},F,{path:oe(s,F.path,h.path).path});else{const H=rt({},F.params);for(const Q in H)H[Q]==null&&delete H[Q];i=rt({},F,{params:p(H)}),h.params=p(h.params)}const E=n.resolve(i,h),O=F.hash||"";E.params=m(o(E.params));const I=Wn(r,rt({},F,{hash:Hn(O),path:E.path})),j=c.createHref(I);return rt({fullPath:I,hash:O,query:r===Ie?wr(F.query):F.query||{}},E,{redirectedFrom:void 0,href:j})}function w(F){return typeof F=="string"?oe(s,F,f.value.path):rt({},F)}function d(F,h){if(l!==F)return Dt(8,{from:h,to:F})}function _(F){return T(F)}function x(F){return _(rt(w(F),{replace:!0}))}function A(F){const h=F.matched[F.matched.length-1];if(h&&h.redirect){const{redirect:i}=h;let E=typeof i=="function"?i(F):i;return typeof E=="string"&&(E=E.includes("?")||E.includes("#")?E=w(E):{path:E},E.params={}),rt({query:F.query,hash:F.hash,params:E.path!=null?{}:F.params},E)}}function T(F,h){const i=l=g(F),E=f.value,O=F.state,I=F.force,j=F.replace===!0,H=A(i);if(H)return T(rt(w(H),{state:typeof H=="object"?rt({},O,H.state):O,force:I,replace:j}),h||i);const Q=i;Q.redirectedFrom=h;let ft;return!I&&Gn(r,E,i)&&(ft=Dt(16,{to:Q,from:E}),Y(E,E,!0,!1)),(ft?Promise.resolve(ft):P(Q,E)).catch(lt=>Rt(lt)?Rt(lt,2)?lt:tt(lt):q(lt,Q,E)).then(lt=>{if(lt){if(Rt(lt,2))return T(rt({replace:j},w(lt.to),{state:typeof lt.to=="object"?rt({},O,lt.to.state):O,force:I}),h||Q)}else lt=Z(Q,E,!0,j,O);return W(Q,E,lt),lt})}function $(F,h){const i=d(F,h);return i?Promise.reject(i):Promise.resolve()}function V(F){const h=k.values().next().value;return h&&typeof h.runWithContext=="function"?h.runWithContext(F):F()}function P(F,h){let i;const[E,O,I]=jr(F,h);i=ae(E.reverse(),"beforeRouteLeave",F,h);for(const H of E)H.leaveGuards.forEach(Q=>{i.push(St(Q,F,h))});const j=$.bind(null,F,h);return i.push(j),ht(i).then(()=>{i=[];for(const H of R.list())i.push(St(H,F,h));return i.push(j),ht(i)}).then(()=>{i=ae(O,"beforeRouteUpdate",F,h);for(const H of O)H.updateGuards.forEach(Q=>{i.push(St(Q,F,h))});return i.push(j),ht(i)}).then(()=>{i=[];for(const H of I)if(H.beforeEnter)if(wt(H.beforeEnter))for(const Q of H.beforeEnter)i.push(St(Q,F,h));else i.push(St(H.beforeEnter,F,h));return i.push(j),ht(i)}).then(()=>(F.matched.forEach(H=>H.enterCallbacks={}),i=ae(I,"beforeRouteEnter",F,h,V),i.push(j),ht(i))).then(()=>{i=[];for(const H of t.list())i.push(St(H,F,h));return i.push(j),ht(i)}).catch(H=>Rt(H,8)?H:Promise.reject(H))}function W(F,h,i){b.list().forEach(E=>V(()=>E(F,h,i)))}function Z(F,h,i,E,O){const I=d(F,h);if(I)return I;const j=h===kt,H=Ot?history.state:{};i&&(E||j?c.replace(F.fullPath,rt({scroll:j&&H&&H.scroll},O)):c.push(F.fullPath,O)),f.value=F,Y(F,h,i,j),tt()}let G;function X(){G||(G=c.listen((F,h,i)=>{if(!ut.listening)return;const E=g(F),O=A(E);if(O){T(rt(O,{replace:!0,force:!0}),E).catch(Ht);return}l=E;const I=f.value;Ot&&Zn(Re(I.fullPath,i.delta),Kt()),P(E,I).catch(j=>Rt(j,12)?j:Rt(j,2)?(T(rt(w(j.to),{force:!0}),E).then(H=>{Rt(H,20)&&!i.delta&&i.type===Bt.pop&&c.go(-1,!1)}).catch(Ht),Promise.reject()):(i.delta&&c.go(-i.delta,!1),q(j,E,I))).then(j=>{j=j||Z(E,I,!1),j&&(i.delta&&!Rt(j,8)?c.go(-i.delta,!1):i.type===Bt.pop&&Rt(j,20)&&c.go(-1,!1)),W(E,I,j)}).catch(Ht)}))}let U=Vt(),z=Vt(),M;function q(F,h,i){tt(F);const E=z.list();return E.length?E.forEach(O=>O(F,h,i)):console.error(F),Promise.reject(F)}function nt(){return M&&f.value!==kt?Promise.resolve():new Promise((F,h)=>{U.add([F,h])})}function tt(F){return M||(M=!F,X(),U.list().forEach(([h,i])=>F?i(F):h()),U.reset()),F}function Y(F,h,i,E){const{scrollBehavior:O}=e;if(!Ot||!O)return Promise.resolve();const I=!i&&tr(Re(F.fullPath,0))||(E||!i)&&history.state&&history.state.scroll||null;return Qe().then(()=>O(F,h,I)).then(j=>j&&Jn(j)).catch(j=>q(j,F,h))}const J=F=>c.go(F);let it;const k=new Set,ut={currentRoute:f,listening:!0,addRoute:a,removeRoute:u,clearRoutes:n.clearRoutes,hasRoute:v,getRoutes:y,resolve:g,options:e,push:_,replace:x,go:J,back:()=>J(-1),forward:()=>J(1),beforeEach:R.add,beforeResolve:t.add,afterEach:b.add,onError:z.add,isReady:nt,install(F){const h=this;F.component("RouterLink",kr),F.component("RouterView",Fr),F.config.globalProperties.$router=h,Object.defineProperty(F.config.globalProperties,"$route",{enumerable:!0,get:()=>Pt(f)}),Ot&&!it&&f.value===kt&&(it=!0,_(c.location).catch(O=>{}));const i={};for(const O in kt)Object.defineProperty(i,O,{get:()=>f.value[O],enumerable:!0});F.provide(Xt,h),F.provide(pe,gn(i)),F.provide(ue,f);const E=F.unmount;k.add(F),F.unmount=function(){k.delete(F),k.size<1&&(l=kt,G&&G(),G=null,f.value=kt,it=!1,M=!1),E()}}};function ht(F){return F.reduce((h,i)=>h.then(()=>V(i)),Promise.resolve())}return ut}function jr(e,n){const s=[],r=[],c=[],R=Math.max(n.matched.length,e.matched.length);for(let t=0;t<R;t++){const b=n.matched[t];b&&(e.matched.find(l=>It(l,b))?r.push(b):s.push(b));const f=e.matched[t];f&&(n.matched.find(l=>It(l,f))||c.push(f))}return[s,r,c]}function cn(){return At(Xt)}function Ei(e){return At(pe)}var se={exports:{}},Ue;function Or(){return Ue||(Ue=1,function(e,n){var s={};/* @preserve
7
- * The MIT License (MIT)
8
- *
9
- * Copyright (c) 2013-2018 Petka Antonov
10
- *
11
- * Permission is hereby granted, free of charge, to any person obtaining a copy
12
- * of this software and associated documentation files (the "Software"), to deal
13
- * in the Software without restriction, including without limitation the rights
14
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
- * copies of the Software, and to permit persons to whom the Software is
16
- * furnished to do so, subject to the following conditions:
17
- *
18
- * The above copyright notice and this permission notice shall be included in
19
- * all copies or substantial portions of the Software.
20
- *
21
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
27
- * THE SOFTWARE.
28
- *
29
- */(function(r){e.exports=r()})(function(){return function r(c,R,t){function b(m,p){if(!R[m]){if(!c[m]){var o=typeof _dereq_=="function"&&_dereq_;if(!p&&o)return o(m,!0);if(f)return f(m,!0);var a=new Error("Cannot find module '"+m+"'");throw a.code="MODULE_NOT_FOUND",a}var u=R[m]={exports:{}};c[m][0].call(u.exports,function(y){var v=c[m][1][y];return b(v||y)},u,u.exports,r,c,R,t)}return R[m].exports}for(var f=typeof _dereq_=="function"&&_dereq_,l=0;l<t.length;l++)b(t[l]);return b}({1:[function(r,c,R){c.exports=function(t){var b=t._SomePromiseArray;function f(l){var m=new b(l),p=m.promise();return m.setHowMany(1),m.setUnwrap(),m.init(),p}t.any=function(l){return f(l)},t.prototype.any=function(){return f(this)}}},{}],2:[function(r,c,R){var t;try{throw new Error}catch(y){t=y}var b=r("./schedule"),f=r("./queue");function l(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new f(16),this._normalQueue=new f(16),this._haveDrainedQueues=!1;var y=this;this.drainQueues=function(){y._drainQueues()},this._schedule=b}l.prototype.setScheduler=function(y){var v=this._schedule;return this._schedule=y,this._customScheduler=!0,v},l.prototype.hasCustomScheduler=function(){return this._customScheduler},l.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},l.prototype.fatalError=function(y,v){v?(process.stderr.write("Fatal "+(y instanceof Error?y.stack:y)+`
30
- `),process.exit(2)):this.throwLater(y)},l.prototype.throwLater=function(y,v){if(arguments.length===1&&(v=y,y=function(){throw v}),typeof setTimeout<"u")setTimeout(function(){y(v)},0);else try{this._schedule(function(){y(v)})}catch{throw new Error(`No async scheduler available
31
-
32
- See http://goo.gl/MqrFmX
33
- `)}};function m(y,v,g){this._lateQueue.push(y,v,g),this._queueTick()}function p(y,v,g){this._normalQueue.push(y,v,g),this._queueTick()}function o(y){this._normalQueue._pushOne(y),this._queueTick()}l.prototype.invokeLater=m,l.prototype.invoke=p,l.prototype.settlePromises=o;function a(y){for(;y.length()>0;)u(y)}function u(y){var v=y.shift();if(typeof v!="function")v._settlePromises();else{var g=y.shift(),w=y.shift();v.call(g,w)}}l.prototype._drainQueues=function(){a(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,a(this._lateQueue)},l.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},l.prototype._reset=function(){this._isTickUsed=!1},c.exports=l,c.exports.firstLineError=t},{"./queue":26,"./schedule":29}],3:[function(r,c,R){c.exports=function(t,b,f,l){var m=!1,p=function(y,v){this._reject(v)},o=function(y,v){v.promiseRejectionQueued=!0,v.bindingPromise._then(p,p,null,this,y)},a=function(y,v){(this._bitField&50397184)===0&&this._resolveCallback(v.target)},u=function(y,v){v.promiseRejectionQueued||this._reject(y)};t.prototype.bind=function(y){m||(m=!0,t.prototype._propagateFrom=l.propagateFromFunction(),t.prototype._boundValue=l.boundValueFunction());var v=f(y),g=new t(b);g._propagateFrom(this,1);var w=this._target();if(g._setBoundTo(v),v instanceof t){var d={promiseRejectionQueued:!1,promise:g,target:w,bindingPromise:v};w._then(b,o,void 0,g,d),v._then(a,u,void 0,g,d),g._setOnCancel(v)}else g._resolveCallback(w);return g},t.prototype._setBoundTo=function(y){y!==void 0?(this._bitField=this._bitField|2097152,this._boundTo=y):this._bitField=this._bitField&-2097153},t.prototype._isBound=function(){return(this._bitField&2097152)===2097152},t.bind=function(y,v){return t.resolve(v).bind(y)}}},{}],4:[function(r,c,R){var t;typeof Promise<"u"&&(t=Promise);function b(){try{Promise===f&&(Promise=t)}catch{}return f}var f=r("./promise")();f.noConflict=b,c.exports=f},{"./promise":22}],5:[function(r,c,R){var t=Object.create;if(t){var b=t(null),f=t(null);b[" size"]=f[" size"]=0}c.exports=function(l){var m=r("./util"),p=m.canEvaluate;m.isIdentifier;var o;function a(g,w){var d;if(g!=null&&(d=g[w]),typeof d!="function"){var _="Object "+m.classString(g)+" has no method '"+m.toString(w)+"'";throw new l.TypeError(_)}return d}function u(g){var w=this.pop(),d=a(g,w);return d.apply(g,this)}l.prototype.call=function(g){var w=[].slice.call(arguments,1);return w.push(g),this._then(u,void 0,void 0,w,void 0)};function y(g){return g[this]}function v(g){var w=+this;return w<0&&(w=Math.max(0,w+g.length)),g[w]}l.prototype.get=function(g){var w=typeof g=="number",d;if(w)d=v;else if(p){var _=o(g);d=_!==null?_:y}else d=y;return this._then(d,void 0,void 0,g,void 0)}}},{"./util":36}],6:[function(r,c,R){c.exports=function(t,b,f,l){var m=r("./util"),p=m.tryCatch,o=m.errorObj,a=t._async;t.prototype.break=t.prototype.cancel=function(){if(!l.cancellation())return this._warn("cancellation is disabled");for(var u=this,y=u;u._isCancellable();){if(!u._cancelBy(y)){y._isFollowing()?y._followee().cancel():y._cancelBranched();break}var v=u._cancellationParent;if(v==null||!v._isCancellable()){u._isFollowing()?u._followee().cancel():u._cancelBranched();break}else u._isFollowing()&&u._followee().cancel(),u._setWillBeCancelled(),y=u,u=v}},t.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},t.prototype._enoughBranchesHaveCancelled=function(){return this._branchesRemainingToCancel===void 0||this._branchesRemainingToCancel<=0},t.prototype._cancelBy=function(u){return u===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),this._enoughBranchesHaveCancelled()?(this._invokeOnCancel(),!0):!1)},t.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},t.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),a.invoke(this._cancelPromises,this,void 0))},t.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},t.prototype._unsetOnCancel=function(){this._onCancelField=void 0},t.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},t.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},t.prototype._doInvokeOnCancel=function(u,y){if(m.isArray(u))for(var v=0;v<u.length;++v)this._doInvokeOnCancel(u[v],y);else if(u!==void 0)if(typeof u=="function"){if(!y){var g=p(u).call(this._boundValue());g===o&&(this._attachExtraTrace(g.e),a.throwLater(g.e))}}else u._resultCancelled(this)},t.prototype._invokeOnCancel=function(){var u=this._onCancel();this._unsetOnCancel(),a.invoke(this._doInvokeOnCancel,this,u)},t.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},t.prototype._resultCancelled=function(){this.cancel()}}},{"./util":36}],7:[function(r,c,R){c.exports=function(t){var b=r("./util"),f=r("./es5").keys,l=b.tryCatch,m=b.errorObj;function p(o,a,u){return function(y){var v=u._boundValue();t:for(var g=0;g<o.length;++g){var w=o[g];if(w===Error||w!=null&&w.prototype instanceof Error){if(y instanceof w)return l(a).call(v,y)}else if(typeof w=="function"){var d=l(w).call(v,y);if(d===m)return d;if(d)return l(a).call(v,y)}else if(b.isObject(y)){for(var _=f(w),x=0;x<_.length;++x){var A=_[x];if(w[A]!=y[A])continue t}return l(a).call(v,y)}}return t}}return p}},{"./es5":13,"./util":36}],8:[function(r,c,R){c.exports=function(t){var b=!1,f=[];t.prototype._promiseCreated=function(){},t.prototype._pushContext=function(){},t.prototype._popContext=function(){return null},t._peekContext=t.prototype._peekContext=function(){};function l(){this._trace=new l.CapturedTrace(p())}l.prototype._pushContext=function(){this._trace!==void 0&&(this._trace._promiseCreated=null,f.push(this._trace))},l.prototype._popContext=function(){if(this._trace!==void 0){var o=f.pop(),a=o._promiseCreated;return o._promiseCreated=null,a}return null};function m(){if(b)return new l}function p(){var o=f.length-1;if(o>=0)return f[o]}return l.CapturedTrace=null,l.create=m,l.deactivateLongStackTraces=function(){},l.activateLongStackTraces=function(){var o=t.prototype._pushContext,a=t.prototype._popContext,u=t._peekContext,y=t.prototype._peekContext,v=t.prototype._promiseCreated;l.deactivateLongStackTraces=function(){t.prototype._pushContext=o,t.prototype._popContext=a,t._peekContext=u,t.prototype._peekContext=y,t.prototype._promiseCreated=v,b=!1},b=!0,t.prototype._pushContext=l.prototype._pushContext,t.prototype._popContext=l.prototype._popContext,t._peekContext=t.prototype._peekContext=p,t.prototype._promiseCreated=function(){var g=this._peekContext();g&&g._promiseCreated==null&&(g._promiseCreated=this)}},l}},{}],9:[function(r,c,R){c.exports=function(t,b,f,l){var m=t._async,p=r("./errors").Warning,o=r("./util"),a=r("./es5"),u=o.canAttachTrace,y,v,g=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,w=/\((?:timers\.js):\d+:\d+\)/,d=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,_=null,x=null,A=!1,T,$=o.env("BLUEBIRD_DEBUG")!=0,V=!!(o.env("BLUEBIRD_WARNINGS")!=0&&($||o.env("BLUEBIRD_WARNINGS"))),P=!!(o.env("BLUEBIRD_LONG_STACK_TRACES")!=0&&($||o.env("BLUEBIRD_LONG_STACK_TRACES"))),W=o.env("BLUEBIRD_W_FORGOTTEN_RETURN")!=0&&(V||!!o.env("BLUEBIRD_W_FORGOTTEN_RETURN")),Z;(function(){var C=[];function S(){for(var D=0;D<C.length;++D)C[D]._notifyUnhandledRejection();L()}function L(){C.length=0}Z=function(D){C.push(D),setTimeout(S,1)},a.defineProperty(t,"_unhandledRejectionCheck",{value:S}),a.defineProperty(t,"_unhandledRejectionClear",{value:L})})(),t.prototype.suppressUnhandledRejections=function(){var C=this._target();C._bitField=C._bitField&-1048577|524288},t.prototype._ensurePossibleRejectionHandled=function(){(this._bitField&524288)===0&&(this._setRejectionIsUnhandled(),Z(this))},t.prototype._notifyUnhandledRejectionIsHandled=function(){ve("rejectionHandled",y,void 0,this)},t.prototype._setReturnedNonUndefined=function(){this._bitField=this._bitField|268435456},t.prototype._returnedNonUndefined=function(){return(this._bitField&268435456)!==0},t.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var C=this._settledValue();this._setUnhandledRejectionIsNotified(),ve("unhandledRejection",v,C,this)}},t.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=this._bitField|262144},t.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=this._bitField&-262145},t.prototype._isUnhandledRejectionNotified=function(){return(this._bitField&262144)>0},t.prototype._setRejectionIsUnhandled=function(){this._bitField=this._bitField|1048576},t.prototype._unsetRejectionIsUnhandled=function(){this._bitField=this._bitField&-1048577,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},t.prototype._isRejectionUnhandled=function(){return(this._bitField&1048576)>0},t.prototype._warn=function(C,S,L){return Q(C,S,L||this)},t.onPossiblyUnhandledRejection=function(C){var S=t._getContext();v=o.contextBind(S,C)},t.onUnhandledRejectionHandled=function(C){var S=t._getContext();y=o.contextBind(S,C)};var G=function(){};t.longStackTraces=function(){if(m.haveItemsQueued()&&!ct.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
34
-
35
- See http://goo.gl/MqrFmX
36
- `);if(!ct.longStackTraces&&Jt()){var C=t.prototype._captureStackTrace,S=t.prototype._attachExtraTrace,L=t.prototype._dereferenceTrace;ct.longStackTraces=!0,G=function(){if(m.haveItemsQueued()&&!ct.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
37
-
38
- See http://goo.gl/MqrFmX
39
- `);t.prototype._captureStackTrace=C,t.prototype._attachExtraTrace=S,t.prototype._dereferenceTrace=L,b.deactivateLongStackTraces(),ct.longStackTraces=!1},t.prototype._captureStackTrace=E,t.prototype._attachExtraTrace=O,t.prototype._dereferenceTrace=I,b.activateLongStackTraces()}},t.hasLongStackTraces=function(){return ct.longStackTraces&&Jt()};var X={unhandledrejection:{before:function(){var C=o.global.onunhandledrejection;return o.global.onunhandledrejection=null,C},after:function(C){o.global.onunhandledrejection=C}},rejectionhandled:{before:function(){var C=o.global.onrejectionhandled;return o.global.onrejectionhandled=null,C},after:function(C){o.global.onrejectionhandled=C}}},U=function(){var C=function(L,D){if(L){var N;try{return N=L.before(),!o.global.dispatchEvent(D)}finally{L.after(N)}}else return!o.global.dispatchEvent(D)};try{if(typeof CustomEvent=="function"){var S=new CustomEvent("CustomEvent");return o.global.dispatchEvent(S),function(L,D){L=L.toLowerCase();var N={detail:D,cancelable:!0},et=new CustomEvent(L,N);return a.defineProperty(et,"promise",{value:D.promise}),a.defineProperty(et,"reason",{value:D.reason}),C(X[L],et)}}else if(typeof Event=="function"){var S=new Event("CustomEvent");return o.global.dispatchEvent(S),function(D,N){D=D.toLowerCase();var et=new Event(D,{cancelable:!0});return et.detail=N,a.defineProperty(et,"promise",{value:N.promise}),a.defineProperty(et,"reason",{value:N.reason}),C(X[D],et)}}else{var S=document.createEvent("CustomEvent");return S.initCustomEvent("testingtheevent",!1,!0,{}),o.global.dispatchEvent(S),function(D,N){D=D.toLowerCase();var et=document.createEvent("CustomEvent");return et.initCustomEvent(D,!1,!0,N),C(X[D],et)}}}catch{}return function(){return!1}}(),z=function(){return o.isNode?function(){return process.emit.apply(process,arguments)}:o.global?function(C){var S="on"+C.toLowerCase(),L=o.global[S];return L?(L.apply(o.global,[].slice.call(arguments,1)),!0):!1}:function(){return!1}}();function M(C,S){return{promise:S}}var q={promiseCreated:M,promiseFulfilled:M,promiseRejected:M,promiseResolved:M,promiseCancelled:M,promiseChained:function(C,S,L){return{promise:S,child:L}},warning:function(C,S){return{warning:S}},unhandledRejection:function(C,S,L){return{reason:S,promise:L}},rejectionHandled:M},nt=function(C){var S=!1;try{S=z.apply(null,arguments)}catch(D){m.throwLater(D),S=!0}var L=!1;try{L=U(C,q[C].apply(null,arguments))}catch(D){m.throwLater(D),L=!0}return L||S};t.config=function(C){if(C=Object(C),"longStackTraces"in C&&(C.longStackTraces?t.longStackTraces():!C.longStackTraces&&t.hasLongStackTraces()&&G()),"warnings"in C){var S=C.warnings;ct.warnings=!!S,W=ct.warnings,o.isObject(S)&&"wForgottenReturn"in S&&(W=!!S.wForgottenReturn)}if("cancellation"in C&&C.cancellation&&!ct.cancellation){if(m.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");t.prototype._clearCancellationData=ut,t.prototype._propagateFrom=ht,t.prototype._onCancel=it,t.prototype._setOnCancel=k,t.prototype._attachCancellationCallback=J,t.prototype._execute=Y,h=ht,ct.cancellation=!0}if("monitoring"in C&&(C.monitoring&&!ct.monitoring?(ct.monitoring=!0,t.prototype._fireEvent=nt):!C.monitoring&&ct.monitoring&&(ct.monitoring=!1,t.prototype._fireEvent=tt)),"asyncHooks"in C&&o.nodeSupportsAsyncResource){var L=ct.asyncHooks,D=!!C.asyncHooks;L!==D&&(ct.asyncHooks=D,D?f():l())}return t};function tt(){return!1}t.prototype._fireEvent=tt,t.prototype._execute=function(C,S,L){try{C(S,L)}catch(D){return D}},t.prototype._onCancel=function(){},t.prototype._setOnCancel=function(C){},t.prototype._attachCancellationCallback=function(C){},t.prototype._captureStackTrace=function(){},t.prototype._attachExtraTrace=function(){},t.prototype._dereferenceTrace=function(){},t.prototype._clearCancellationData=function(){},t.prototype._propagateFrom=function(C,S){};function Y(C,S,L){var D=this;try{C(S,L,function(N){if(typeof N!="function")throw new TypeError("onCancel must be a function, got: "+o.toString(N));D._attachCancellationCallback(N)})}catch(N){return N}}function J(C){if(!this._isCancellable())return this;var S=this._onCancel();S!==void 0?o.isArray(S)?S.push(C):this._setOnCancel([S,C]):this._setOnCancel(C)}function it(){return this._onCancelField}function k(C){this._onCancelField=C}function ut(){this._cancellationParent=void 0,this._onCancelField=void 0}function ht(C,S){if((S&1)!==0){this._cancellationParent=C;var L=C._branchesRemainingToCancel;L===void 0&&(L=0),C._branchesRemainingToCancel=L+1}(S&2)!==0&&C._isBound()&&this._setBoundTo(C._boundTo)}function F(C,S){(S&2)!==0&&C._isBound()&&this._setBoundTo(C._boundTo)}var h=F;function i(){var C=this._boundTo;return C!==void 0&&C instanceof t?C.isFulfilled()?C.value():void 0:C}function E(){this._trace=new xt(this._peekContext())}function O(C,S){if(u(C)){var L=this._trace;if(L!==void 0&&S&&(L=L._parent),L!==void 0)L.attachExtraTrace(C);else if(!C.__stackCleaned__){var D=Yt(C);o.notEnumerableProp(C,"stack",D.message+`
40
- `+D.stack.join(`
41
- `)),o.notEnumerableProp(C,"__stackCleaned__",!0)}}}function I(){this._trace=void 0}function j(C,S,L,D,N){if(C===void 0&&S!==null&&W){if(N!==void 0&&N._returnedNonUndefined()||(D._bitField&65535)===0)return;L&&(L=L+" ");var et="",at="";if(S._trace){for(var K=S._trace.stack.split(`
42
- `),st=gt(K),pt=st.length-1;pt>=0;--pt){var Et=st[pt];if(!w.test(Et)){var Ct=Et.match(d);Ct&&(et="at "+Ct[1]+":"+Ct[2]+":"+Ct[3]+" ");break}}if(st.length>0){for(var dn=st[0],pt=0;pt<K.length;++pt)if(K[pt]===dn){pt>0&&(at=`
43
- `+K[pt-1]);break}}}var vn="a promise was created in a "+L+"handler "+et+"but was not returned from it, see http://goo.gl/rRqMUw"+at;D._warn(vn,!0,S)}}function H(C,S){var L=C+" is deprecated and will be removed in a future version.";return S&&(L+=" Use "+S+" instead."),Q(L)}function Q(C,S,L){if(ct.warnings){var D=new p(C),N;if(S)L._attachExtraTrace(D);else if(ct.longStackTraces&&(N=t._peekContext()))N.attachExtraTrace(D);else{var et=Yt(D);D.stack=et.message+`
44
- `+et.stack.join(`
45
- `)}nt("warning",D)||de(D,"",!0)}}function ft(C,S){for(var L=0;L<S.length-1;++L)S[L].push("From previous event:"),S[L]=S[L].join(`
46
- `);return L<S.length&&(S[L]=S[L].join(`
47
- `)),C+`
48
- `+S.join(`
49
- `)}function lt(C){for(var S=0;S<C.length;++S)(C[S].length===0||S+1<C.length&&C[S][0]===C[S+1][0])&&(C.splice(S,1),S--)}function bt(C){for(var S=C[0],L=1;L<C.length;++L){for(var D=C[L],N=S.length-1,et=S[N],at=-1,K=D.length-1;K>=0;--K)if(D[K]===et){at=K;break}for(var K=at;K>=0;--K){var st=D[K];if(S[N]===st)S.pop(),N--;else break}S=D}}function gt(C){for(var S=[],L=0;L<C.length;++L){var D=C[L],N=D===" (No stack trace)"||_.test(D),et=N&&Zt(D);N&&!et&&(A&&D.charAt(0)!==" "&&(D=" "+D),S.push(D))}return S}function Lt(C){for(var S=C.stack.replace(/\s+$/g,"").split(`
50
- `),L=0;L<S.length;++L){var D=S[L];if(D===" (No stack trace)"||_.test(D))break}return L>0&&C.name!="SyntaxError"&&(S=S.slice(L)),S}function Yt(C){var S=C.stack,L=C.toString();return S=typeof S=="string"&&S.length>0?Lt(C):[" (No stack trace)"],{message:L,stack:C.name=="SyntaxError"?S:gt(S)}}function de(C,S,L){if(typeof console<"u"){var D;if(o.isObject(C)){var N=C.stack;D=S+x(N,C)}else D=S+String(C);typeof T=="function"?T(D,L):(typeof console.log=="function"||typeof console.log=="object")&&console.log(D)}}function ve(C,S,L,D){var N=!1;try{typeof S=="function"&&(N=!0,C==="rejectionHandled"?S(D):S(L,D))}catch(et){m.throwLater(et)}C==="unhandledRejection"?!nt(C,L,D)&&!N&&de(L,"Unhandled rejection "):nt(C,D)}function _e(C){var S;if(typeof C=="function")S="[function "+(C.name||"anonymous")+"]";else{S=C&&typeof C.toString=="function"?C.toString():o.toString(C);var L=/\[object [a-zA-Z0-9$_]+\]/;if(L.test(S))try{var D=JSON.stringify(C);S=D}catch{}S.length===0&&(S="(empty array)")}return"(<"+fn(S)+">, no stack trace)"}function fn(C){var S=41;return C.length<S?C:C.substr(0,S-3)+"..."}function Jt(){return typeof ge=="function"}var Zt=function(){return!1},pn=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function te(C){var S=C.match(pn);if(S)return{fileName:S[1],line:parseInt(S[2],10)}}function hn(C,S){if(Jt()){for(var L=(C.stack||"").split(`
51
- `),D=(S.stack||"").split(`
52
- `),N=-1,et=-1,at,K,st=0;st<L.length;++st){var pt=te(L[st]);if(pt){at=pt.fileName,N=pt.line;break}}for(var st=0;st<D.length;++st){var pt=te(D[st]);if(pt){K=pt.fileName,et=pt.line;break}}N<0||et<0||!at||!K||at!==K||N>=et||(Zt=function(Et){if(g.test(Et))return!0;var Ct=te(Et);return!!(Ct&&Ct.fileName===at&&N<=Ct.line&&Ct.line<=et)})}}function xt(C){this._parent=C,this._promisesCreated=0;var S=this._length=1+(C===void 0?0:C._length);ge(this,xt),S>32&&this.uncycle()}o.inherits(xt,Error),b.CapturedTrace=xt,xt.prototype.uncycle=function(){var C=this._length;if(!(C<2)){for(var S=[],L={},D=0,N=this;N!==void 0;++D)S.push(N),N=N._parent;C=this._length=D;for(var D=C-1;D>=0;--D){var et=S[D].stack;L[et]===void 0&&(L[et]=D)}for(var D=0;D<C;++D){var at=S[D].stack,K=L[at];if(K!==void 0&&K!==D){K>0&&(S[K-1]._parent=void 0,S[K-1]._length=1),S[D]._parent=void 0,S[D]._length=1;var st=D>0?S[D-1]:this;K<C-1?(st._parent=S[K+1],st._parent.uncycle(),st._length=st._parent._length+1):(st._parent=void 0,st._length=1);for(var pt=st._length+1,Et=D-2;Et>=0;--Et)S[Et]._length=pt,pt++;return}}}},xt.prototype.attachExtraTrace=function(C){if(!C.__stackCleaned__){this.uncycle();for(var S=Yt(C),L=S.message,D=[S.stack],N=this;N!==void 0;)D.push(gt(N.stack.split(`
53
- `))),N=N._parent;bt(D),lt(D),o.notEnumerableProp(C,"stack",ft(L,D)),o.notEnumerableProp(C,"__stackCleaned__",!0)}};var ge=function(){var S=/^\s*at\s*/,L=function(at,K){return typeof at=="string"?at:K.name!==void 0&&K.message!==void 0?K.toString():_e(K)};if(typeof Error.stackTraceLimit=="number"&&typeof Error.captureStackTrace=="function"){Error.stackTraceLimit+=6,_=S,x=L;var D=Error.captureStackTrace;return Zt=function(at){return g.test(at)},function(at,K){Error.stackTraceLimit+=6,D(at,K),Error.stackTraceLimit-=6}}var N=new Error;if(typeof N.stack=="string"&&N.stack.split(`
54
- `)[0].indexOf("stackDetection@")>=0)return _=/@/,x=L,A=!0,function(K){K.stack=new Error().stack};var et;try{throw new Error}catch(at){et="stack"in at}return!("stack"in N)&&et&&typeof Error.stackTraceLimit=="number"?(_=S,x=L,function(K){Error.stackTraceLimit+=6;try{throw new Error}catch(st){K.stack=st.stack}Error.stackTraceLimit-=6}):(x=function(at,K){return typeof at=="string"?at:(typeof K=="object"||typeof K=="function")&&K.name!==void 0&&K.message!==void 0?K.toString():_e(K)},null)}();typeof console<"u"&&typeof console.warn<"u"&&(T=function(C){console.warn(C)},o.isNode&&process.stderr.isTTY?T=function(C,S){var L=S?"\x1B[33m":"\x1B[31m";console.warn(L+C+`\x1B[0m
55
- `)}:!o.isNode&&typeof new Error().stack=="string"&&(T=function(C,S){console.warn("%c"+C,S?"color: darkorange":"color: red")}));var ct={warnings:V,longStackTraces:!1,cancellation:!1,monitoring:!1,asyncHooks:!1};return P&&t.longStackTraces(),{asyncHooks:function(){return ct.asyncHooks},longStackTraces:function(){return ct.longStackTraces},warnings:function(){return ct.warnings},cancellation:function(){return ct.cancellation},monitoring:function(){return ct.monitoring},propagateFromFunction:function(){return h},boundValueFunction:function(){return i},checkForgottenReturns:j,setBounds:hn,warn:Q,deprecated:H,CapturedTrace:xt,fireDomEvent:U,fireGlobalEvent:z}}},{"./errors":12,"./es5":13,"./util":36}],10:[function(r,c,R){c.exports=function(t){function b(){return this.value}function f(){throw this.reason}t.prototype.return=t.prototype.thenReturn=function(l){return l instanceof t&&l.suppressUnhandledRejections(),this._then(b,void 0,void 0,{value:l},void 0)},t.prototype.throw=t.prototype.thenThrow=function(l){return this._then(f,void 0,void 0,{reason:l},void 0)},t.prototype.catchThrow=function(l){if(arguments.length<=1)return this._then(void 0,f,void 0,{reason:l},void 0);var m=arguments[1],p=function(){throw m};return this.caught(l,p)},t.prototype.catchReturn=function(l){if(arguments.length<=1)return l instanceof t&&l.suppressUnhandledRejections(),this._then(void 0,b,void 0,{value:l},void 0);var m=arguments[1];m instanceof t&&m.suppressUnhandledRejections();var p=function(){return m};return this.caught(l,p)}}},{}],11:[function(r,c,R){c.exports=function(t,b){var f=t.reduce,l=t.all;function m(){return l(this)}function p(o,a){return f(o,a,b,b)}t.prototype.each=function(o){return f(this,o,b,0)._then(m,void 0,void 0,this,void 0)},t.prototype.mapSeries=function(o){return f(this,o,b,b)},t.each=function(o,a){return f(o,a,b,0)._then(m,void 0,void 0,o,void 0)},t.mapSeries=p}},{}],12:[function(r,c,R){var t=r("./es5"),b=t.freeze,f=r("./util"),l=f.inherits,m=f.notEnumerableProp;function p(T,$){function V(P){if(!(this instanceof V))return new V(P);m(this,"message",typeof P=="string"?P:$),m(this,"name",T),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return l(V,Error),V}var o,a,u=p("Warning","warning"),y=p("CancellationError","cancellation error"),v=p("TimeoutError","timeout error"),g=p("AggregateError","aggregate error");try{o=TypeError,a=RangeError}catch{o=p("TypeError","type error"),a=p("RangeError","range error")}for(var w="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),d=0;d<w.length;++d)typeof Array.prototype[w[d]]=="function"&&(g.prototype[w[d]]=Array.prototype[w[d]]);t.defineProperty(g.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),g.prototype.isOperational=!0;var _=0;g.prototype.toString=function(){var T=Array(_*4+1).join(" "),$=`
56
- `+T+`AggregateError of:
57
- `;_++,T=Array(_*4+1).join(" ");for(var V=0;V<this.length;++V){for(var P=this[V]===this?"[Circular AggregateError]":this[V]+"",W=P.split(`
58
- `),Z=0;Z<W.length;++Z)W[Z]=T+W[Z];P=W.join(`
59
- `),$+=P+`
60
- `}return _--,$};function x(T){if(!(this instanceof x))return new x(T);m(this,"name","OperationalError"),m(this,"message",T),this.cause=T,this.isOperational=!0,T instanceof Error?(m(this,"message",T.message),m(this,"stack",T.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}l(x,Error);var A=Error.__BluebirdErrorTypes__;A||(A=b({CancellationError:y,TimeoutError:v,OperationalError:x,RejectionError:x,AggregateError:g}),t.defineProperty(Error,"__BluebirdErrorTypes__",{value:A,writable:!1,enumerable:!1,configurable:!1})),c.exports={Error,TypeError:o,RangeError:a,CancellationError:A.CancellationError,OperationalError:A.OperationalError,TimeoutError:A.TimeoutError,AggregateError:A.AggregateError,Warning:u}},{"./es5":13,"./util":36}],13:[function(r,c,R){var t=function(){return this===void 0}();if(t)c.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:t,propertyIsWritable:function(v,g){var w=Object.getOwnPropertyDescriptor(v,g);return!!(!w||w.writable||w.set)}};else{var b={}.hasOwnProperty,f={}.toString,l={}.constructor.prototype,m=function(v){var g=[];for(var w in v)b.call(v,w)&&g.push(w);return g},p=function(v,g){return{value:v[g]}},o=function(v,g,w){return v[g]=w.value,v},a=function(v){return v},u=function(v){try{return Object(v).constructor.prototype}catch{return l}},y=function(v){try{return f.call(v)==="[object Array]"}catch{return!1}};c.exports={isArray:y,keys:m,names:m,defineProperty:o,getDescriptor:p,freeze:a,getPrototypeOf:u,isES5:t,propertyIsWritable:function(){return!0}}}},{}],14:[function(r,c,R){c.exports=function(t,b){var f=t.map;t.prototype.filter=function(l,m){return f(this,l,m,b)},t.filter=function(l,m,p){return f(l,m,p,b)}}},{}],15:[function(r,c,R){c.exports=function(t,b,f){var l=r("./util"),m=t.CancellationError,p=l.errorObj,o=r("./catch_filter")(f);function a(d,_,x){this.promise=d,this.type=_,this.handler=x,this.called=!1,this.cancelPromise=null}a.prototype.isFinallyHandler=function(){return this.type===0};function u(d){this.finallyHandler=d}u.prototype._resultCancelled=function(){y(this.finallyHandler)};function y(d,_){return d.cancelPromise!=null?(arguments.length>1?d.cancelPromise._reject(_):d.cancelPromise._cancel(),d.cancelPromise=null,!0):!1}function v(){return w.call(this,this.promise._target()._settledValue())}function g(d){if(!y(this,d))return p.e=d,p}function w(d){var _=this.promise,x=this.handler;if(!this.called){this.called=!0;var A=this.isFinallyHandler()?x.call(_._boundValue()):x.call(_._boundValue(),d);if(A===f)return A;if(A!==void 0){_._setReturnedNonUndefined();var T=b(A,_);if(T instanceof t){if(this.cancelPromise!=null)if(T._isCancelled()){var $=new m("late cancellation observer");return _._attachExtraTrace($),p.e=$,p}else T.isPending()&&T._attachCancellationCallback(new u(this));return T._then(v,g,void 0,this,void 0)}}}return _.isRejected()?(y(this),p.e=d,p):(y(this),d)}return t.prototype._passThrough=function(d,_,x,A){return typeof d!="function"?this.then():this._then(x,A,void 0,new a(this,_,d),void 0)},t.prototype.lastly=t.prototype.finally=function(d){return this._passThrough(d,0,w,w)},t.prototype.tap=function(d){return this._passThrough(d,1,w)},t.prototype.tapCatch=function(d){var _=arguments.length;if(_===1)return this._passThrough(d,1,void 0,w);var x=new Array(_-1),A=0,T;for(T=0;T<_-1;++T){var $=arguments[T];if(l.isObject($))x[A++]=$;else return t.reject(new TypeError("tapCatch statement predicate: expecting an object but got "+l.classString($)))}x.length=A;var V=arguments[T];return this._passThrough(o(x,V,this),1,void 0,w)},a}},{"./catch_filter":7,"./util":36}],16:[function(r,c,R){c.exports=function(t,b,f,l,m,p){var o=r("./errors"),a=o.TypeError,u=r("./util"),y=u.errorObj,v=u.tryCatch,g=[];function w(_,x,A){for(var T=0;T<x.length;++T){A._pushContext();var $=v(x[T])(_);if(A._popContext(),$===y){A._pushContext();var V=t.reject(y.e);return A._popContext(),V}var P=l($,A);if(P instanceof t)return P}return null}function d(_,x,A,T){if(p.cancellation()){var $=new t(f),V=this._finallyPromise=new t(f);this._promise=$.lastly(function(){return V}),$._captureStackTrace(),$._setOnCancel(this)}else{var P=this._promise=new t(f);P._captureStackTrace()}this._stack=T,this._generatorFunction=_,this._receiver=x,this._generator=void 0,this._yieldHandlers=typeof A=="function"?[A].concat(g):g,this._yieldedPromise=null,this._cancellationPhase=!1}u.inherits(d,m),d.prototype._isResolved=function(){return this._promise===null},d.prototype._cleanup=function(){this._promise=this._generator=null,p.cancellation()&&this._finallyPromise!==null&&(this._finallyPromise._fulfill(),this._finallyPromise=null)},d.prototype._promiseCancelled=function(){if(!this._isResolved()){var _=typeof this._generator.return<"u",x;if(_)this._promise._pushContext(),x=v(this._generator.return).call(this._generator,void 0),this._promise._popContext();else{var A=new t.CancellationError("generator .return() sentinel");t.coroutine.returnSentinel=A,this._promise._attachExtraTrace(A),this._promise._pushContext(),x=v(this._generator.throw).call(this._generator,A),this._promise._popContext()}this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(x)}},d.prototype._promiseFulfilled=function(_){this._yieldedPromise=null,this._promise._pushContext();var x=v(this._generator.next).call(this._generator,_);this._promise._popContext(),this._continue(x)},d.prototype._promiseRejected=function(_){this._yieldedPromise=null,this._promise._attachExtraTrace(_),this._promise._pushContext();var x=v(this._generator.throw).call(this._generator,_);this._promise._popContext(),this._continue(x)},d.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof t){var _=this._yieldedPromise;this._yieldedPromise=null,_.cancel()}},d.prototype.promise=function(){return this._promise},d.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},d.prototype._continue=function(_){var x=this._promise;if(_===y)return this._cleanup(),this._cancellationPhase?x.cancel():x._rejectCallback(_.e,!1);var A=_.value;if(_.done===!0)return this._cleanup(),this._cancellationPhase?x.cancel():x._resolveCallback(A);var T=l(A,this._promise);if(!(T instanceof t)&&(T=w(T,this._yieldHandlers,this._promise),T===null)){this._promiseRejected(new a(`A value %s was yielded that could not be treated as a promise
61
-
62
- See http://goo.gl/MqrFmX
63
-
64
- `.replace("%s",String(A))+`From coroutine:
65
- `+this._stack.split(`
66
- `).slice(1,-7).join(`
67
- `)));return}T=T._target();var $=T._bitField;($&50397184)===0?(this._yieldedPromise=T,T._proxy(this,null)):($&33554432)!==0?t._async.invoke(this._promiseFulfilled,this,T._value()):($&16777216)!==0?t._async.invoke(this._promiseRejected,this,T._reason()):this._promiseCancelled()},t.coroutine=function(_,x){if(typeof _!="function")throw new a(`generatorFunction must be a function
68
-
69
- See http://goo.gl/MqrFmX
70
- `);var A=Object(x).yieldHandler,T=d,$=new Error().stack;return function(){var V=_.apply(this,arguments),P=new T(void 0,void 0,A,$),W=P.promise();return P._generator=V,P._promiseFulfilled(void 0),W}},t.coroutine.addYieldHandler=function(_){if(typeof _!="function")throw new a("expecting a function but got "+u.classString(_));g.push(_)},t.spawn=function(_){if(p.deprecated("Promise.spawn()","Promise.coroutine()"),typeof _!="function")return b(`generatorFunction must be a function
71
-
72
- See http://goo.gl/MqrFmX
73
- `);var x=new d(_,this),A=x.promise();return x._run(t.spawn),A}}},{"./errors":12,"./util":36}],17:[function(r,c,R){c.exports=function(t,b,f,l,m){var p=r("./util");p.canEvaluate,p.tryCatch,p.errorObj,t.join=function(){var o=arguments.length-1,a;if(o>0&&typeof arguments[o]=="function"){a=arguments[o];var y}var u=[].slice.call(arguments);a&&u.pop();var y=new b(u).promise();return a!==void 0?y.spread(a):y}}},{"./util":36}],18:[function(r,c,R){c.exports=function(t,b,f,l,m,p){var o=r("./util"),a=o.tryCatch,u=o.errorObj,y=t._async;function v(w,d,_,x){this.constructor$(w),this._promise._captureStackTrace();var A=t._getContext();if(this._callback=o.contextBind(A,d),this._preservedValues=x===m?new Array(this.length()):null,this._limit=_,this._inFlight=0,this._queue=[],y.invoke(this._asyncInit,this,void 0),o.isArray(w))for(var T=0;T<w.length;++T){var $=w[T];$ instanceof t&&$.suppressUnhandledRejections()}}o.inherits(v,b),v.prototype._asyncInit=function(){this._init$(void 0,-2)},v.prototype._init=function(){},v.prototype._promiseFulfilled=function(w,d){var _=this._values,x=this.length(),A=this._preservedValues,T=this._limit;if(d<0){if(d=d*-1-1,_[d]=w,T>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(T>=1&&this._inFlight>=T)return _[d]=w,this._queue.push(d),!1;A!==null&&(A[d]=w);var $=this._promise,V=this._callback,P=$._boundValue();$._pushContext();var W=a(V).call(P,w,d,x),Z=$._popContext();if(p.checkForgottenReturns(W,Z,A!==null?"Promise.filter":"Promise.map",$),W===u)return this._reject(W.e),!0;var G=l(W,this._promise);if(G instanceof t){G=G._target();var X=G._bitField;if((X&50397184)===0)return T>=1&&this._inFlight++,_[d]=G,G._proxy(this,(d+1)*-1),!1;if((X&33554432)!==0)W=G._value();else return(X&16777216)!==0?(this._reject(G._reason()),!0):(this._cancel(),!0)}_[d]=W}var U=++this._totalResolved;return U>=x?(A!==null?this._filter(_,A):this._resolve(_),!0):!1},v.prototype._drainQueue=function(){for(var w=this._queue,d=this._limit,_=this._values;w.length>0&&this._inFlight<d;){if(this._isResolved())return;var x=w.pop();this._promiseFulfilled(_[x],x)}},v.prototype._filter=function(w,d){for(var _=d.length,x=new Array(_),A=0,T=0;T<_;++T)w[T]&&(x[A++]=d[T]);x.length=A,this._resolve(x)},v.prototype.preservedValues=function(){return this._preservedValues};function g(w,d,_,x){if(typeof d!="function")return f("expecting a function but got "+o.classString(d));var A=0;if(_!==void 0)if(typeof _=="object"&&_!==null){if(typeof _.concurrency!="number")return t.reject(new TypeError("'concurrency' must be a number but it is "+o.classString(_.concurrency)));A=_.concurrency}else return t.reject(new TypeError("options argument must be an object but it is "+o.classString(_)));return A=typeof A=="number"&&isFinite(A)&&A>=1?A:0,new v(w,d,A,x).promise()}t.prototype.map=function(w,d){return g(this,w,d,null)},t.map=function(w,d,_,x){return g(w,d,_,x)}}},{"./util":36}],19:[function(r,c,R){c.exports=function(t,b,f,l,m){var p=r("./util"),o=p.tryCatch;t.method=function(a){if(typeof a!="function")throw new t.TypeError("expecting a function but got "+p.classString(a));return function(){var u=new t(b);u._captureStackTrace(),u._pushContext();var y=o(a).apply(this,arguments),v=u._popContext();return m.checkForgottenReturns(y,v,"Promise.method",u),u._resolveFromSyncValue(y),u}},t.attempt=t.try=function(a){if(typeof a!="function")return l("expecting a function but got "+p.classString(a));var u=new t(b);u._captureStackTrace(),u._pushContext();var y;if(arguments.length>1){m.deprecated("calling Promise.try with more than 1 argument");var v=arguments[1],g=arguments[2];y=p.isArray(v)?o(a).apply(g,v):o(a).call(g,v)}else y=o(a)();var w=u._popContext();return m.checkForgottenReturns(y,w,"Promise.try",u),u._resolveFromSyncValue(y),u},t.prototype._resolveFromSyncValue=function(a){a===p.errorObj?this._rejectCallback(a.e,!1):this._resolveCallback(a,!0)}}},{"./util":36}],20:[function(r,c,R){var t=r("./util"),b=t.maybeWrapAsError,f=r("./errors"),l=f.OperationalError,m=r("./es5");function p(y){return y instanceof Error&&m.getPrototypeOf(y)===Error.prototype}var o=/^(?:name|message|stack|cause)$/;function a(y){var v;if(p(y)){v=new l(y),v.name=y.name,v.message=y.message,v.stack=y.stack;for(var g=m.keys(y),w=0;w<g.length;++w){var d=g[w];o.test(d)||(v[d]=y[d])}return v}return t.markAsOriginatingFromRejection(y),y}function u(y,v){return function(g,w){if(y!==null){if(g){var d=a(b(g));y._attachExtraTrace(d),y._reject(d)}else if(!v)y._fulfill(w);else{var _=[].slice.call(arguments,1);y._fulfill(_)}y=null}}}c.exports=u},{"./errors":12,"./es5":13,"./util":36}],21:[function(r,c,R){c.exports=function(t){var b=r("./util"),f=t._async,l=b.tryCatch,m=b.errorObj;function p(u,y){var v=this;if(!b.isArray(u))return o.call(v,u,y);var g=l(y).apply(v._boundValue(),[null].concat(u));g===m&&f.throwLater(g.e)}function o(u,y){var v=this,g=v._boundValue(),w=u===void 0?l(y).call(g,null):l(y).call(g,null,u);w===m&&f.throwLater(w.e)}function a(u,y){var v=this;if(!u){var g=new Error(u+"");g.cause=u,u=g}var w=l(y).call(v._boundValue(),u);w===m&&f.throwLater(w.e)}t.prototype.asCallback=t.prototype.nodeify=function(u,y){if(typeof u=="function"){var v=o;y!==void 0&&Object(y).spread&&(v=p),this._then(v,a,void 0,this,u)}return this}}},{"./util":36}],22:[function(r,c,R){c.exports=function(){var t=function(){return new $(`circular promise resolution chain
74
-
75
- See http://goo.gl/MqrFmX
76
- `)},b=function(){return new k.PromiseInspection(this._target())},f=function(h){return k.reject(new $(h))};function l(){}var m={},p=r("./util");p.setReflectHandler(b);var o=function(){var h=process.domain;return h===void 0?null:h},a=function(){return null},u=function(){return{domain:o(),async:null}},y=p.isNode&&p.nodeSupportsAsyncResource?r("async_hooks").AsyncResource:null,v=function(){return{domain:o(),async:new y("Bluebird::Promise")}},g=p.isNode?u:a;p.notEnumerableProp(k,"_getContext",g);var w=function(){g=v,p.notEnumerableProp(k,"_getContext",v)},d=function(){g=u,p.notEnumerableProp(k,"_getContext",u)},_=r("./es5"),x=r("./async"),A=new x;_.defineProperty(k,"_async",{value:A});var T=r("./errors"),$=k.TypeError=T.TypeError;k.RangeError=T.RangeError;var V=k.CancellationError=T.CancellationError;k.TimeoutError=T.TimeoutError,k.OperationalError=T.OperationalError,k.RejectionError=T.OperationalError,k.AggregateError=T.AggregateError;var P=function(){},W={},Z={},G=r("./thenables")(k,P),X=r("./promise_array")(k,P,G,f,l),U=r("./context")(k),z=U.create,M=r("./debuggability")(k,U,w,d);M.CapturedTrace;var q=r("./finally")(k,G,Z),nt=r("./catch_filter")(Z),tt=r("./nodeback"),Y=p.errorObj,J=p.tryCatch;function it(h,i){if(h==null||h.constructor!==k)throw new $(`the promise constructor cannot be invoked directly
77
-
78
- See http://goo.gl/MqrFmX
79
- `);if(typeof i!="function")throw new $("expecting a function but got "+p.classString(i))}function k(h){h!==P&&it(this,h),this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,this._resolveFromExecutor(h),this._promiseCreated(),this._fireEvent("promiseCreated",this)}k.prototype.toString=function(){return"[object Promise]"},k.prototype.caught=k.prototype.catch=function(h){var i=arguments.length;if(i>1){var E=new Array(i-1),O=0,I;for(I=0;I<i-1;++I){var j=arguments[I];if(p.isObject(j))E[O++]=j;else return f("Catch statement predicate: expecting an object but got "+p.classString(j))}if(E.length=O,h=arguments[I],typeof h!="function")throw new $("The last argument to .catch() must be a function, got "+p.toString(h));return this.then(void 0,nt(E,h,this))}return this.then(void 0,h)},k.prototype.reflect=function(){return this._then(b,b,void 0,this,void 0)},k.prototype.then=function(h,i){if(M.warnings()&&arguments.length>0&&typeof h!="function"&&typeof i!="function"){var E=".then() only accepts functions but was passed: "+p.classString(h);arguments.length>1&&(E+=", "+p.classString(i)),this._warn(E)}return this._then(h,i,void 0,void 0,void 0)},k.prototype.done=function(h,i){var E=this._then(h,i,void 0,void 0,void 0);E._setIsFinal()},k.prototype.spread=function(h){return typeof h!="function"?f("expecting a function but got "+p.classString(h)):this.all()._then(h,void 0,void 0,W,void 0)},k.prototype.toJSON=function(){var h={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(h.fulfillmentValue=this.value(),h.isFulfilled=!0):this.isRejected()&&(h.rejectionReason=this.reason(),h.isRejected=!0),h},k.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new X(this).promise()},k.prototype.error=function(h){return this.caught(p.originatesFromRejection,h)},k.getNewLibraryCopy=c.exports,k.is=function(h){return h instanceof k},k.fromNode=k.fromCallback=function(h){var i=new k(P);i._captureStackTrace();var E=arguments.length>1?!!Object(arguments[1]).multiArgs:!1,O=J(h)(tt(i,E));return O===Y&&i._rejectCallback(O.e,!0),i._isFateSealed()||i._setAsyncGuaranteed(),i},k.all=function(h){return new X(h).promise()},k.cast=function(h){var i=G(h);return i instanceof k||(i=new k(P),i._captureStackTrace(),i._setFulfilled(),i._rejectionHandler0=h),i},k.resolve=k.fulfilled=k.cast,k.reject=k.rejected=function(h){var i=new k(P);return i._captureStackTrace(),i._rejectCallback(h,!0),i},k.setScheduler=function(h){if(typeof h!="function")throw new $("expecting a function but got "+p.classString(h));return A.setScheduler(h)},k.prototype._then=function(h,i,E,O,I){var j=I!==void 0,H=j?I:new k(P),Q=this._target(),ft=Q._bitField;j||(H._propagateFrom(this,3),H._captureStackTrace(),O===void 0&&(this._bitField&2097152)!==0&&((ft&50397184)!==0?O=this._boundValue():O=Q===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,H));var lt=g();if((ft&50397184)!==0){var bt,gt,Lt=Q._settlePromiseCtx;(ft&33554432)!==0?(gt=Q._rejectionHandler0,bt=h):(ft&16777216)!==0?(gt=Q._fulfillmentHandler0,bt=i,Q._unsetRejectionIsUnhandled()):(Lt=Q._settlePromiseLateCancellationObserver,gt=new V("late cancellation observer"),Q._attachExtraTrace(gt),bt=i),A.invoke(Lt,Q,{handler:p.contextBind(lt,bt),promise:H,receiver:O,value:gt})}else Q._addCallbacks(h,i,H,O,lt);return H},k.prototype._length=function(){return this._bitField&65535},k.prototype._isFateSealed=function(){return(this._bitField&117506048)!==0},k.prototype._isFollowing=function(){return(this._bitField&67108864)===67108864},k.prototype._setLength=function(h){this._bitField=this._bitField&-65536|h&65535},k.prototype._setFulfilled=function(){this._bitField=this._bitField|33554432,this._fireEvent("promiseFulfilled",this)},k.prototype._setRejected=function(){this._bitField=this._bitField|16777216,this._fireEvent("promiseRejected",this)},k.prototype._setFollowing=function(){this._bitField=this._bitField|67108864,this._fireEvent("promiseResolved",this)},k.prototype._setIsFinal=function(){this._bitField=this._bitField|4194304},k.prototype._isFinal=function(){return(this._bitField&4194304)>0},k.prototype._unsetCancelled=function(){this._bitField=this._bitField&-65537},k.prototype._setCancelled=function(){this._bitField=this._bitField|65536,this._fireEvent("promiseCancelled",this)},k.prototype._setWillBeCancelled=function(){this._bitField=this._bitField|8388608},k.prototype._setAsyncGuaranteed=function(){if(!A.hasCustomScheduler()){var h=this._bitField;this._bitField=h|(h&536870912)>>2^134217728}},k.prototype._setNoAsyncGuarantee=function(){this._bitField=(this._bitField|536870912)&-134217729},k.prototype._receiverAt=function(h){var i=h===0?this._receiver0:this[h*4-4+3];if(i!==m)return i===void 0&&this._isBound()?this._boundValue():i},k.prototype._promiseAt=function(h){return this[h*4-4+2]},k.prototype._fulfillmentHandlerAt=function(h){return this[h*4-4+0]},k.prototype._rejectionHandlerAt=function(h){return this[h*4-4+1]},k.prototype._boundValue=function(){},k.prototype._migrateCallback0=function(h){h._bitField;var i=h._fulfillmentHandler0,E=h._rejectionHandler0,O=h._promise0,I=h._receiverAt(0);I===void 0&&(I=m),this._addCallbacks(i,E,O,I,null)},k.prototype._migrateCallbackAt=function(h,i){var E=h._fulfillmentHandlerAt(i),O=h._rejectionHandlerAt(i),I=h._promiseAt(i),j=h._receiverAt(i);j===void 0&&(j=m),this._addCallbacks(E,O,I,j,null)},k.prototype._addCallbacks=function(h,i,E,O,I){var j=this._length();if(j>=65531&&(j=0,this._setLength(0)),j===0)this._promise0=E,this._receiver0=O,typeof h=="function"&&(this._fulfillmentHandler0=p.contextBind(I,h)),typeof i=="function"&&(this._rejectionHandler0=p.contextBind(I,i));else{var H=j*4-4;this[H+2]=E,this[H+3]=O,typeof h=="function"&&(this[H+0]=p.contextBind(I,h)),typeof i=="function"&&(this[H+1]=p.contextBind(I,i))}return this._setLength(j+1),j},k.prototype._proxy=function(h,i){this._addCallbacks(void 0,void 0,i,h,null)},k.prototype._resolveCallback=function(h,i){if((this._bitField&117506048)===0){if(h===this)return this._rejectCallback(t(),!1);var E=G(h,this);if(!(E instanceof k))return this._fulfill(h);i&&this._propagateFrom(E,2);var O=E._target();if(O===this){this._reject(t());return}var I=O._bitField;if((I&50397184)===0){var j=this._length();j>0&&O._migrateCallback0(this);for(var H=1;H<j;++H)O._migrateCallbackAt(this,H);this._setFollowing(),this._setLength(0),this._setFollowee(E)}else if((I&33554432)!==0)this._fulfill(O._value());else if((I&16777216)!==0)this._reject(O._reason());else{var Q=new V("late cancellation observer");O._attachExtraTrace(Q),this._reject(Q)}}},k.prototype._rejectCallback=function(h,i,E){var O=p.ensureErrorObject(h),I=O===h;if(!I&&!E&&M.warnings()){var j="a promise was rejected with a non-error: "+p.classString(h);this._warn(j,!0)}this._attachExtraTrace(O,i?I:!1),this._reject(h)},k.prototype._resolveFromExecutor=function(h){if(h!==P){var i=this;this._captureStackTrace(),this._pushContext();var E=!0,O=this._execute(h,function(I){i._resolveCallback(I)},function(I){i._rejectCallback(I,E)});E=!1,this._popContext(),O!==void 0&&i._rejectCallback(O,!0)}},k.prototype._settlePromiseFromHandler=function(h,i,E,O){var I=O._bitField;if((I&65536)===0){O._pushContext();var j;i===W?!E||typeof E.length!="number"?(j=Y,j.e=new $("cannot .spread() a non-array: "+p.classString(E))):j=J(h).apply(this._boundValue(),E):j=J(h).call(i,E);var H=O._popContext();I=O._bitField,(I&65536)===0&&(j===Z?O._reject(E):j===Y?O._rejectCallback(j.e,!1):(M.checkForgottenReturns(j,H,"",O,this),O._resolveCallback(j)))}},k.prototype._target=function(){for(var h=this;h._isFollowing();)h=h._followee();return h},k.prototype._followee=function(){return this._rejectionHandler0},k.prototype._setFollowee=function(h){this._rejectionHandler0=h},k.prototype._settlePromise=function(h,i,E,O){var I=h instanceof k,j=this._bitField,H=(j&134217728)!==0;(j&65536)!==0?(I&&h._invokeInternalOnCancel(),E instanceof q&&E.isFinallyHandler()?(E.cancelPromise=h,J(i).call(E,O)===Y&&h._reject(Y.e)):i===b?h._fulfill(b.call(E)):E instanceof l?E._promiseCancelled(h):I||h instanceof X?h._cancel():E.cancel()):typeof i=="function"?I?(H&&h._setAsyncGuaranteed(),this._settlePromiseFromHandler(i,E,O,h)):i.call(E,O,h):E instanceof l?E._isResolved()||((j&33554432)!==0?E._promiseFulfilled(O,h):E._promiseRejected(O,h)):I&&(H&&h._setAsyncGuaranteed(),(j&33554432)!==0?h._fulfill(O):h._reject(O))},k.prototype._settlePromiseLateCancellationObserver=function(h){var i=h.handler,E=h.promise,O=h.receiver,I=h.value;typeof i=="function"?E instanceof k?this._settlePromiseFromHandler(i,O,I,E):i.call(O,I,E):E instanceof k&&E._reject(I)},k.prototype._settlePromiseCtx=function(h){this._settlePromise(h.promise,h.handler,h.receiver,h.value)},k.prototype._settlePromise0=function(h,i,E){var O=this._promise0,I=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(O,h,I,i)},k.prototype._clearCallbackDataAtIndex=function(h){var i=h*4-4;this[i+2]=this[i+3]=this[i+0]=this[i+1]=void 0},k.prototype._fulfill=function(h){var i=this._bitField;if(!((i&117506048)>>>16)){if(h===this){var E=t();return this._attachExtraTrace(E),this._reject(E)}this._setFulfilled(),this._rejectionHandler0=h,(i&65535)>0&&((i&134217728)!==0?this._settlePromises():A.settlePromises(this),this._dereferenceTrace())}},k.prototype._reject=function(h){var i=this._bitField;if(!((i&117506048)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=h,this._isFinal())return A.fatalError(h,p.isNode);(i&65535)>0?A.settlePromises(this):this._ensurePossibleRejectionHandled()}},k.prototype._fulfillPromises=function(h,i){for(var E=1;E<h;E++){var O=this._fulfillmentHandlerAt(E),I=this._promiseAt(E),j=this._receiverAt(E);this._clearCallbackDataAtIndex(E),this._settlePromise(I,O,j,i)}},k.prototype._rejectPromises=function(h,i){for(var E=1;E<h;E++){var O=this._rejectionHandlerAt(E),I=this._promiseAt(E),j=this._receiverAt(E);this._clearCallbackDataAtIndex(E),this._settlePromise(I,O,j,i)}},k.prototype._settlePromises=function(){var h=this._bitField,i=h&65535;if(i>0){if((h&16842752)!==0){var E=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,E,h),this._rejectPromises(i,E)}else{var O=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,O,h),this._fulfillPromises(i,O)}this._setLength(0)}this._clearCancellationData()},k.prototype._settledValue=function(){var h=this._bitField;if((h&33554432)!==0)return this._rejectionHandler0;if((h&16777216)!==0)return this._fulfillmentHandler0},typeof Symbol<"u"&&Symbol.toStringTag&&_.defineProperty(k.prototype,Symbol.toStringTag,{get:function(){return"Object"}});function ut(h){this.promise._resolveCallback(h)}function ht(h){this.promise._rejectCallback(h,!1)}k.defer=k.pending=function(){M.deprecated("Promise.defer","new Promise");var h=new k(P);return{promise:h,resolve:ut,reject:ht}},p.notEnumerableProp(k,"_makeSelfResolutionError",t),r("./method")(k,P,G,f,M),r("./bind")(k,P,G,M),r("./cancel")(k,X,f,M),r("./direct_resolve")(k),r("./synchronous_inspection")(k),r("./join")(k,X,G,P,A),k.Promise=k,k.version="3.7.2",r("./call_get.js")(k),r("./generators.js")(k,f,P,G,l,M),r("./map.js")(k,X,f,G,P,M),r("./nodeify.js")(k),r("./promisify.js")(k,P),r("./props.js")(k,X,G,f),r("./race.js")(k,P,G,f),r("./reduce.js")(k,X,f,G,P,M),r("./settle.js")(k,X,M),r("./some.js")(k,X,f),r("./timers.js")(k,P,M),r("./using.js")(k,f,G,z,P,M),r("./any.js")(k),r("./each.js")(k,P),r("./filter.js")(k,P),p.toFastProperties(k),p.toFastProperties(k.prototype);function F(h){var i=new k(P);i._fulfillmentHandler0=h,i._rejectionHandler0=h,i._promise0=h,i._receiver0=h}return F({a:1}),F({b:2}),F({c:3}),F(1),F(function(){}),F(void 0),F(!1),F(new k(P)),M.setBounds(x.firstLineError,p.lastLineError),k}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36,async_hooks:void 0}],23:[function(r,c,R){c.exports=function(t,b,f,l,m){var p=r("./util");p.isArray;function o(u){switch(u){case-2:return[];case-3:return{};case-6:return new Map}}function a(u){var y=this._promise=new t(b);u instanceof t&&(y._propagateFrom(u,3),u.suppressUnhandledRejections()),y._setOnCancel(this),this._values=u,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return p.inherits(a,m),a.prototype.length=function(){return this._length},a.prototype.promise=function(){return this._promise},a.prototype._init=function u(y,v){var g=f(this._values,this._promise);if(g instanceof t){g=g._target();var w=g._bitField;if(this._values=g,(w&50397184)===0)return this._promise._setAsyncGuaranteed(),g._then(u,this._reject,void 0,this,v);if((w&33554432)!==0)g=g._value();else return(w&16777216)!==0?this._reject(g._reason()):this._cancel()}if(g=p.asArray(g),g===null){var d=l("expecting an array or an iterable object but got "+p.classString(g)).reason();this._promise._rejectCallback(d,!1);return}if(g.length===0){v===-5?this._resolveEmptyArray():this._resolve(o(v));return}this._iterate(g)},a.prototype._iterate=function(u){var y=this.getActualLength(u.length);this._length=y,this._values=this.shouldCopyValues()?new Array(y):this._values;for(var v=this._promise,g=!1,w=null,d=0;d<y;++d){var _=f(u[d],v);_ instanceof t?(_=_._target(),w=_._bitField):w=null,g?w!==null&&_.suppressUnhandledRejections():w!==null?(w&50397184)===0?(_._proxy(this,d),this._values[d]=_):(w&33554432)!==0?g=this._promiseFulfilled(_._value(),d):(w&16777216)!==0?g=this._promiseRejected(_._reason(),d):g=this._promiseCancelled(d):g=this._promiseFulfilled(_,d)}g||v._setAsyncGuaranteed()},a.prototype._isResolved=function(){return this._values===null},a.prototype._resolve=function(u){this._values=null,this._promise._fulfill(u)},a.prototype._cancel=function(){this._isResolved()||!this._promise._isCancellable()||(this._values=null,this._promise._cancel())},a.prototype._reject=function(u){this._values=null,this._promise._rejectCallback(u,!1)},a.prototype._promiseFulfilled=function(u,y){this._values[y]=u;var v=++this._totalResolved;return v>=this._length?(this._resolve(this._values),!0):!1},a.prototype._promiseCancelled=function(){return this._cancel(),!0},a.prototype._promiseRejected=function(u){return this._totalResolved++,this._reject(u),!0},a.prototype._resultCancelled=function(){if(!this._isResolved()){var u=this._values;if(this._cancel(),u instanceof t)u.cancel();else for(var y=0;y<u.length;++y)u[y]instanceof t&&u[y].cancel()}},a.prototype.shouldCopyValues=function(){return!0},a.prototype.getActualLength=function(u){return u},a}},{"./util":36}],24:[function(r,c,R){c.exports=function(t,b){var f={},l=r("./util"),m=r("./nodeback"),p=l.withAppended,o=l.maybeWrapAsError,a=l.canEvaluate,u=r("./errors").TypeError,y="Async",v={__isPromisified__:!0},g=["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"],w=new RegExp("^(?:"+g.join("|")+")$"),d=function(U){return l.isIdentifier(U)&&U.charAt(0)!=="_"&&U!=="constructor"};function _(U){return!w.test(U)}function x(U){try{return U.__isPromisified__===!0}catch{return!1}}function A(U,z,M){var q=l.getDataPropertyOrDefault(U,z+M,v);return q?x(q):!1}function T(U,z,M){for(var q=0;q<U.length;q+=2){var nt=U[q];if(M.test(nt)){for(var tt=nt.replace(M,""),Y=0;Y<U.length;Y+=2)if(U[Y]===tt)throw new u(`Cannot promisify an API that has normal methods with '%s'-suffix
80
-
81
- See http://goo.gl/MqrFmX
82
- `.replace("%s",z))}}}function $(U,z,M,q){for(var nt=l.inheritedDataKeys(U),tt=[],Y=0;Y<nt.length;++Y){var J=nt[Y],it=U[J],k=q===d?!0:d(J);typeof it=="function"&&!x(it)&&!A(U,J,z)&&q(J,it,U,k)&&tt.push(J,it)}return T(tt,z,M),tt}var V=function(U){return U.replace(/([$])/,"\\$")},P;function W(U,z,M,q,nt,tt){var Y=function(){return this}(),J=U;typeof J=="string"&&(U=q);function it(){var k=z;z===f&&(k=this);var ut=new t(b);ut._captureStackTrace();var ht=typeof J=="string"&&this!==Y?this[J]:U,F=m(ut,tt);try{ht.apply(k,p(arguments,F))}catch(h){ut._rejectCallback(o(h),!0,!0)}return ut._isFateSealed()||ut._setAsyncGuaranteed(),ut}return l.notEnumerableProp(it,"__isPromisified__",!0),it}var Z=a?P:W;function G(U,z,M,q,nt){for(var tt=new RegExp(V(z)+"$"),Y=$(U,z,tt,M),J=0,it=Y.length;J<it;J+=2){var k=Y[J],ut=Y[J+1],ht=k+z;if(q===Z)U[ht]=Z(k,f,k,ut,z,nt);else{var F=q(ut,function(){return Z(k,f,k,ut,z,nt)});l.notEnumerableProp(F,"__isPromisified__",!0),U[ht]=F}}return l.toFastProperties(U),U}function X(U,z,M){return Z(U,z,void 0,U,null,M)}t.promisify=function(U,z){if(typeof U!="function")throw new u("expecting a function but got "+l.classString(U));if(x(U))return U;z=Object(z);var M=z.context===void 0?f:z.context,q=!!z.multiArgs,nt=X(U,M,q);return l.copyDescriptors(U,nt,_),nt},t.promisifyAll=function(U,z){if(typeof U!="function"&&typeof U!="object")throw new u(`the target of promisifyAll must be an object or a function
83
-
84
- See http://goo.gl/MqrFmX
85
- `);z=Object(z);var M=!!z.multiArgs,q=z.suffix;typeof q!="string"&&(q=y);var nt=z.filter;typeof nt!="function"&&(nt=d);var tt=z.promisifier;if(typeof tt!="function"&&(tt=Z),!l.isIdentifier(q))throw new RangeError(`suffix must be a valid identifier
86
-
87
- See http://goo.gl/MqrFmX
88
- `);for(var Y=l.inheritedDataKeys(U),J=0;J<Y.length;++J){var it=U[Y[J]];Y[J]!=="constructor"&&l.isClass(it)&&(G(it.prototype,q,nt,tt,M),G(it,q,nt,tt,M))}return G(U,q,nt,tt,M)}}},{"./errors":12,"./nodeback":20,"./util":36}],25:[function(r,c,R){c.exports=function(t,b,f,l){var m=r("./util"),p=m.isObject,o=r("./es5"),a;typeof Map=="function"&&(a=Map);var u=function(){var w=0,d=0;function _(x,A){this[w]=x,this[w+d]=A,w++}return function(A){d=A.size,w=0;var T=new Array(A.size*2);return A.forEach(_,T),T}}(),y=function(w){for(var d=new a,_=w.length/2|0,x=0;x<_;++x){var A=w[_+x],T=w[x];d.set(A,T)}return d};function v(w){var d=!1,_;if(a!==void 0&&w instanceof a)_=u(w),d=!0;else{var x=o.keys(w),A=x.length;_=new Array(A*2);for(var T=0;T<A;++T){var $=x[T];_[T]=w[$],_[T+A]=$}}this.constructor$(_),this._isMap=d,this._init$(void 0,d?-6:-3)}m.inherits(v,b),v.prototype._init=function(){},v.prototype._promiseFulfilled=function(w,d){this._values[d]=w;var _=++this._totalResolved;if(_>=this._length){var x;if(this._isMap)x=y(this._values);else{x={};for(var A=this.length(),T=0,$=this.length();T<$;++T)x[this._values[T+A]]=this._values[T]}return this._resolve(x),!0}return!1},v.prototype.shouldCopyValues=function(){return!1},v.prototype.getActualLength=function(w){return w>>1};function g(w){var d,_=f(w);if(p(_))_ instanceof t?d=_._then(t.props,void 0,void 0,void 0,void 0):d=new v(_).promise();else return l(`cannot await properties of a non-object
89
-
90
- See http://goo.gl/MqrFmX
91
- `);return _ instanceof t&&d._propagateFrom(_,2),d}t.prototype.props=function(){return g(this)},t.props=function(w){return g(w)}}},{"./es5":13,"./util":36}],26:[function(r,c,R){function t(f,l,m,p,o){for(var a=0;a<o;++a)m[a+p]=f[a+l],f[a+l]=void 0}function b(f){this._capacity=f,this._length=0,this._front=0}b.prototype._willBeOverCapacity=function(f){return this._capacity<f},b.prototype._pushOne=function(f){var l=this.length();this._checkCapacity(l+1);var m=this._front+l&this._capacity-1;this[m]=f,this._length=l+1},b.prototype.push=function(f,l,m){var p=this.length()+3;if(this._willBeOverCapacity(p)){this._pushOne(f),this._pushOne(l),this._pushOne(m);return}var o=this._front+p-3;this._checkCapacity(p);var a=this._capacity-1;this[o+0&a]=f,this[o+1&a]=l,this[o+2&a]=m,this._length=p},b.prototype.shift=function(){var f=this._front,l=this[f];return this[f]=void 0,this._front=f+1&this._capacity-1,this._length--,l},b.prototype.length=function(){return this._length},b.prototype._checkCapacity=function(f){this._capacity<f&&this._resizeTo(this._capacity<<1)},b.prototype._resizeTo=function(f){var l=this._capacity;this._capacity=f;var m=this._front,p=this._length,o=m+p&l-1;t(this,0,this,l,o)},c.exports=b},{}],27:[function(r,c,R){c.exports=function(t,b,f,l){var m=r("./util"),p=function(a){return a.then(function(u){return o(u,a)})};function o(a,u){var y=f(a);if(y instanceof t)return p(y);if(a=m.asArray(a),a===null)return l("expecting an array or an iterable object but got "+m.classString(a));var v=new t(b);u!==void 0&&v._propagateFrom(u,3);for(var g=v._fulfill,w=v._reject,d=0,_=a.length;d<_;++d){var x=a[d];x===void 0&&!(d in a)||t.cast(x)._then(g,w,void 0,v,null)}return v}t.race=function(a){return o(a,void 0)},t.prototype.race=function(){return o(this,void 0)}}},{"./util":36}],28:[function(r,c,R){c.exports=function(t,b,f,l,m,p){var o=r("./util"),a=o.tryCatch;function u(d,_,x,A){this.constructor$(d);var T=t._getContext();this._fn=o.contextBind(T,_),x!==void 0&&(x=t.resolve(x),x._attachCancellationCallback(this)),this._initialValue=x,this._currentCancellable=null,A===m?this._eachValues=Array(this._length):A===0?this._eachValues=null:this._eachValues=void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}o.inherits(u,b),u.prototype._gotAccum=function(d){this._eachValues!==void 0&&this._eachValues!==null&&d!==m&&this._eachValues.push(d)},u.prototype._eachComplete=function(d){return this._eachValues!==null&&this._eachValues.push(d),this._eachValues},u.prototype._init=function(){},u.prototype._resolveEmptyArray=function(){this._resolve(this._eachValues!==void 0?this._eachValues:this._initialValue)},u.prototype.shouldCopyValues=function(){return!1},u.prototype._resolve=function(d){this._promise._resolveCallback(d),this._values=null},u.prototype._resultCancelled=function(d){if(d===this._initialValue)return this._cancel();this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof t&&this._currentCancellable.cancel(),this._initialValue instanceof t&&this._initialValue.cancel())},u.prototype._iterate=function(d){this._values=d;var _,x,A=d.length;this._initialValue!==void 0?(_=this._initialValue,x=0):(_=t.resolve(d[0]),x=1),this._currentCancellable=_;for(var T=x;T<A;++T){var $=d[T];$ instanceof t&&$.suppressUnhandledRejections()}if(!_.isRejected())for(;x<A;++x){var V={accum:null,value:d[x],index:x,length:A,array:this};_=_._then(g,void 0,void 0,V,void 0),(x&127)===0&&_._setNoAsyncGuarantee()}this._eachValues!==void 0&&(_=_._then(this._eachComplete,void 0,void 0,this,void 0)),_._then(y,y,void 0,_,this)},t.prototype.reduce=function(d,_){return v(this,d,_,null)},t.reduce=function(d,_,x,A){return v(d,_,x,A)};function y(d,_){this.isFulfilled()?_._resolve(d):_._reject(d)}function v(d,_,x,A){if(typeof _!="function")return f("expecting a function but got "+o.classString(_));var T=new u(d,_,x,A);return T.promise()}function g(d){this.accum=d,this.array._gotAccum(d);var _=l(this.value,this.array._promise);return _ instanceof t?(this.array._currentCancellable=_,_._then(w,void 0,void 0,this,void 0)):w.call(this,_)}function w(d){var _=this.array,x=_._promise,A=a(_._fn);x._pushContext();var T;_._eachValues!==void 0?T=A.call(x._boundValue(),d,this.index,this.length):T=A.call(x._boundValue(),this.accum,d,this.index,this.length),T instanceof t&&(_._currentCancellable=T);var $=x._popContext();return p.checkForgottenReturns(T,$,_._eachValues!==void 0?"Promise.each":"Promise.reduce",x),T}}},{"./util":36}],29:[function(r,c,R){var t=r("./util"),b,f=function(){throw new Error(`No async scheduler available
92
-
93
- See http://goo.gl/MqrFmX
94
- `)},l=t.getNativePromise();if(t.isNode&&typeof MutationObserver>"u"){var m=Nt.setImmediate,p=process.nextTick;b=t.isRecentNode?function(a){m.call(Nt,a)}:function(a){p.call(process,a)}}else if(typeof l=="function"&&typeof l.resolve=="function"){var o=l.resolve();b=function(a){o.then(a)}}else typeof MutationObserver<"u"&&!(typeof window<"u"&&window.navigator&&(window.navigator.standalone||window.cordova))&&"classList"in document.documentElement?b=function(){var a=document.createElement("div"),u={attributes:!0},y=!1,v=document.createElement("div"),g=new MutationObserver(function(){a.classList.toggle("foo"),y=!1});g.observe(v,u);var w=function(){y||(y=!0,v.classList.toggle("foo"))};return function(_){var x=new MutationObserver(function(){x.disconnect(),_()});x.observe(a,u),w()}}():typeof setImmediate<"u"?b=function(a){setImmediate(a)}:typeof setTimeout<"u"?b=function(a){setTimeout(a,0)}:b=f;c.exports=b},{"./util":36}],30:[function(r,c,R){c.exports=function(t,b,f){var l=t.PromiseInspection,m=r("./util");function p(o){this.constructor$(o)}m.inherits(p,b),p.prototype._promiseResolved=function(o,a){this._values[o]=a;var u=++this._totalResolved;return u>=this._length?(this._resolve(this._values),!0):!1},p.prototype._promiseFulfilled=function(o,a){var u=new l;return u._bitField=33554432,u._settledValueField=o,this._promiseResolved(a,u)},p.prototype._promiseRejected=function(o,a){var u=new l;return u._bitField=16777216,u._settledValueField=o,this._promiseResolved(a,u)},t.settle=function(o){return f.deprecated(".settle()",".reflect()"),new p(o).promise()},t.allSettled=function(o){return new p(o).promise()},t.prototype.settle=function(){return t.settle(this)}}},{"./util":36}],31:[function(r,c,R){c.exports=function(t,b,f){var l=r("./util"),m=r("./errors").RangeError,p=r("./errors").AggregateError,o=l.isArray,a={};function u(v){this.constructor$(v),this._howMany=0,this._unwrap=!1,this._initialized=!1}l.inherits(u,b),u.prototype._init=function(){if(this._initialized){if(this._howMany===0){this._resolve([]);return}this._init$(void 0,-5);var v=o(this._values);!this._isResolved()&&v&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}},u.prototype.init=function(){this._initialized=!0,this._init()},u.prototype.setUnwrap=function(){this._unwrap=!0},u.prototype.howMany=function(){return this._howMany},u.prototype.setHowMany=function(v){this._howMany=v},u.prototype._promiseFulfilled=function(v){return this._addFulfilled(v),this._fulfilled()===this.howMany()?(this._values.length=this.howMany(),this.howMany()===1&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0):!1},u.prototype._promiseRejected=function(v){return this._addRejected(v),this._checkOutcome()},u.prototype._promiseCancelled=function(){return this._values instanceof t||this._values==null?this._cancel():(this._addRejected(a),this._checkOutcome())},u.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var v=new p,g=this.length();g<this._values.length;++g)this._values[g]!==a&&v.push(this._values[g]);return v.length>0?this._reject(v):this._cancel(),!0}return!1},u.prototype._fulfilled=function(){return this._totalResolved},u.prototype._rejected=function(){return this._values.length-this.length()},u.prototype._addRejected=function(v){this._values.push(v)},u.prototype._addFulfilled=function(v){this._values[this._totalResolved++]=v},u.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},u.prototype._getRangeError=function(v){var g="Input array must contain at least "+this._howMany+" items but contains only "+v+" items";return new m(g)},u.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))};function y(v,g){if((g|0)!==g||g<0)return f(`expecting a positive integer
95
-
96
- See http://goo.gl/MqrFmX
97
- `);var w=new u(v),d=w.promise();return w.setHowMany(g),w.init(),d}t.some=function(v,g){return y(v,g)},t.prototype.some=function(v){return y(this,v)},t._SomePromiseArray=u}},{"./errors":12,"./util":36}],32:[function(r,c,R){c.exports=function(t){function b(u){u!==void 0?(u=u._target(),this._bitField=u._bitField,this._settledValueField=u._isFateSealed()?u._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}b.prototype._settledValue=function(){return this._settledValueField};var f=b.prototype.value=function(){if(!this.isFulfilled())throw new TypeError(`cannot get fulfillment value of a non-fulfilled promise
98
-
99
- See http://goo.gl/MqrFmX
100
- `);return this._settledValue()},l=b.prototype.error=b.prototype.reason=function(){if(!this.isRejected())throw new TypeError(`cannot get rejection reason of a non-rejected promise
101
-
102
- See http://goo.gl/MqrFmX
103
- `);return this._settledValue()},m=b.prototype.isFulfilled=function(){return(this._bitField&33554432)!==0},p=b.prototype.isRejected=function(){return(this._bitField&16777216)!==0},o=b.prototype.isPending=function(){return(this._bitField&50397184)===0},a=b.prototype.isResolved=function(){return(this._bitField&50331648)!==0};b.prototype.isCancelled=function(){return(this._bitField&8454144)!==0},t.prototype.__isCancelled=function(){return(this._bitField&65536)===65536},t.prototype._isCancelled=function(){return this._target().__isCancelled()},t.prototype.isCancelled=function(){return(this._target()._bitField&8454144)!==0},t.prototype.isPending=function(){return o.call(this._target())},t.prototype.isRejected=function(){return p.call(this._target())},t.prototype.isFulfilled=function(){return m.call(this._target())},t.prototype.isResolved=function(){return a.call(this._target())},t.prototype.value=function(){return f.call(this._target())},t.prototype.reason=function(){var u=this._target();return u._unsetRejectionIsUnhandled(),l.call(u)},t.prototype._value=function(){return this._settledValue()},t.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},t.PromiseInspection=b}},{}],33:[function(r,c,R){c.exports=function(t,b){var f=r("./util"),l=f.errorObj,m=f.isObject;function p(g,w){if(m(g)){if(g instanceof t)return g;var d=a(g);if(d===l){w&&w._pushContext();var _=t.reject(d.e);return w&&w._popContext(),_}else if(typeof d=="function"){if(y(g)){var _=new t(b);return g._then(_._fulfill,_._reject,void 0,_,null),_}return v(g,d,w)}}return g}function o(g){return g.then}function a(g){try{return o(g)}catch(w){return l.e=w,l}}var u={}.hasOwnProperty;function y(g){try{return u.call(g,"_promise0")}catch{return!1}}function v(g,w,d){var _=new t(b),x=_;d&&d._pushContext(),_._captureStackTrace(),d&&d._popContext();var A=!0,T=f.tryCatch(w).call(g,$,V);A=!1,_&&T===l&&(_._rejectCallback(T.e,!0,!0),_=null);function $(P){_&&(_._resolveCallback(P),_=null)}function V(P){_&&(_._rejectCallback(P,A,!0),_=null)}return x}return p}},{"./util":36}],34:[function(r,c,R){c.exports=function(t,b,f){var l=r("./util"),m=t.TimeoutError;function p(g){this.handle=g}p.prototype._resultCancelled=function(){clearTimeout(this.handle)};var o=function(g){return a(+this).thenReturn(g)},a=t.delay=function(g,w){var d,_;return w!==void 0?(d=t.resolve(w)._then(o,null,null,g,void 0),f.cancellation()&&w instanceof t&&d._setOnCancel(w)):(d=new t(b),_=setTimeout(function(){d._fulfill()},+g),f.cancellation()&&d._setOnCancel(new p(_)),d._captureStackTrace()),d._setAsyncGuaranteed(),d};t.prototype.delay=function(g){return a(g,this)};var u=function(g,w,d){var _;typeof w!="string"?w instanceof Error?_=w:_=new m("operation timed out"):_=new m(w),l.markAsOriginatingFromRejection(_),g._attachExtraTrace(_),g._reject(_),d!=null&&d.cancel()};function y(g){return clearTimeout(this.handle),g}function v(g){throw clearTimeout(this.handle),g}t.prototype.timeout=function(g,w){g=+g;var d,_,x=new p(setTimeout(function(){d.isPending()&&u(d,w,_)},g));return f.cancellation()?(_=this.then(),d=_._then(y,v,void 0,x,void 0),d._setOnCancel(x)):d=this._then(y,v,void 0,x,void 0),d}}},{"./util":36}],35:[function(r,c,R){c.exports=function(t,b,f,l,m,p){var o=r("./util"),a=r("./errors").TypeError,u=r("./util").inherits,y=o.errorObj,v=o.tryCatch,g={};function w(V){setTimeout(function(){throw V},0)}function d(V){var P=f(V);return P!==V&&typeof V._isDisposable=="function"&&typeof V._getDisposer=="function"&&V._isDisposable()&&P._setDisposable(V._getDisposer()),P}function _(V,P){var W=0,Z=V.length,G=new t(m);function X(){if(W>=Z)return G._fulfill();var U=d(V[W++]);if(U instanceof t&&U._isDisposable()){try{U=f(U._getDisposer().tryDispose(P),V.promise)}catch(z){return w(z)}if(U instanceof t)return U._then(X,w,null,null,null)}X()}return X(),G}function x(V,P,W){this._data=V,this._promise=P,this._context=W}x.prototype.data=function(){return this._data},x.prototype.promise=function(){return this._promise},x.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():g},x.prototype.tryDispose=function(V){var P=this.resource(),W=this._context;W!==void 0&&W._pushContext();var Z=P!==g?this.doDispose(P,V):null;return W!==void 0&&W._popContext(),this._promise._unsetDisposable(),this._data=null,Z},x.isDisposer=function(V){return V!=null&&typeof V.resource=="function"&&typeof V.tryDispose=="function"};function A(V,P,W){this.constructor$(V,P,W)}u(A,x),A.prototype.doDispose=function(V,P){var W=this.data();return W.call(V,V,P)};function T(V){return x.isDisposer(V)?(this.resources[this.index]._setDisposable(V),V.promise()):V}function $(V){this.length=V,this.promise=null,this[V-1]=null}$.prototype._resultCancelled=function(){for(var V=this.length,P=0;P<V;++P){var W=this[P];W instanceof t&&W.cancel()}},t.using=function(){var V=arguments.length;if(V<2)return b("you must pass at least 2 arguments to Promise.using");var P=arguments[V-1];if(typeof P!="function")return b("expecting a function but got "+o.classString(P));var W,Z=!0;V===2&&Array.isArray(arguments[0])?(W=arguments[0],V=W.length,Z=!1):(W=arguments,V--);for(var G=new $(V),X=0;X<V;++X){var U=W[X];if(x.isDisposer(U)){var z=U;U=U.promise(),U._setDisposable(z)}else{var M=f(U);M instanceof t&&(U=M._then(T,null,null,{resources:G,index:X},void 0))}G[X]=U}for(var q=new Array(G.length),X=0;X<q.length;++X)q[X]=t.resolve(G[X]).reflect();var nt=t.all(q).then(function(Y){for(var J=0;J<Y.length;++J){var it=Y[J];if(it.isRejected())return y.e=it.error(),y;if(!it.isFulfilled()){nt.cancel();return}Y[J]=it.value()}tt._pushContext(),P=v(P);var k=Z?P.apply(void 0,Y):P(Y),ut=tt._popContext();return p.checkForgottenReturns(k,ut,"Promise.using",tt),k}),tt=nt.lastly(function(){var Y=new t.PromiseInspection(nt);return _(G,Y)});return G.promise=tt,tt._setOnCancel(G),tt},t.prototype._setDisposable=function(V){this._bitField=this._bitField|131072,this._disposer=V},t.prototype._isDisposable=function(){return(this._bitField&131072)>0},t.prototype._getDisposer=function(){return this._disposer},t.prototype._unsetDisposable=function(){this._bitField=this._bitField&-131073,this._disposer=void 0},t.prototype.disposer=function(V){if(typeof V=="function")return new A(V,this,l());throw new a}}},{"./errors":12,"./util":36}],36:[function(r,c,R){var t=r("./es5"),b=typeof navigator>"u",f={e:{}},l,m=typeof self<"u"?self:typeof window<"u"?window:typeof Nt<"u"?Nt:this!==void 0?this:null;function p(){try{var i=l;return l=null,i.apply(this,arguments)}catch(E){return f.e=E,f}}function o(i){return l=i,p}var a=function(i,E){var O={}.hasOwnProperty;function I(){this.constructor=i,this.constructor$=E;for(var j in E.prototype)O.call(E.prototype,j)&&j.charAt(j.length-1)!=="$"&&(this[j+"$"]=E.prototype[j])}return I.prototype=E.prototype,i.prototype=new I,i.prototype};function u(i){return i==null||i===!0||i===!1||typeof i=="string"||typeof i=="number"}function y(i){return typeof i=="function"||typeof i=="object"&&i!==null}function v(i){return u(i)?new Error(Z(i)):i}function g(i,E){var O=i.length,I=new Array(O+1),j;for(j=0;j<O;++j)I[j]=i[j];return I[j]=E,I}function w(i,E,O){if(t.isES5){var I=Object.getOwnPropertyDescriptor(i,E);if(I!=null)return I.get==null&&I.set==null?I.value:O}else return{}.hasOwnProperty.call(i,E)?i[E]:void 0}function d(i,E,O){if(u(i))return i;var I={value:O,configurable:!0,enumerable:!1,writable:!0};return t.defineProperty(i,E,I),i}function _(i){throw i}var x=function(){var i=[Array.prototype,Object.prototype,Function.prototype],E=function(j){for(var H=0;H<i.length;++H)if(i[H]===j)return!0;return!1};if(t.isES5){var O=Object.getOwnPropertyNames;return function(j){for(var H=[],Q=Object.create(null);j!=null&&!E(j);){var ft;try{ft=O(j)}catch{return H}for(var lt=0;lt<ft.length;++lt){var bt=ft[lt];if(!Q[bt]){Q[bt]=!0;var gt=Object.getOwnPropertyDescriptor(j,bt);gt!=null&&gt.get==null&&gt.set==null&&H.push(bt)}}j=t.getPrototypeOf(j)}return H}}else{var I={}.hasOwnProperty;return function(j){if(E(j))return[];var H=[];t:for(var Q in j)if(I.call(j,Q))H.push(Q);else{for(var ft=0;ft<i.length;++ft)if(I.call(i[ft],Q))continue t;H.push(Q)}return H}}}(),A=/this\s*\.\s*\S+\s*=/;function T(i){try{if(typeof i=="function"){var E=t.names(i.prototype),O=t.isES5&&E.length>1,I=E.length>0&&!(E.length===1&&E[0]==="constructor"),j=A.test(i+"")&&t.names(i).length>0;if(O||I||j)return!0}return!1}catch{return!1}}function $(i){function E(){}E.prototype=i;var O=new E;function I(){return typeof O.foo}return I(),I(),i}var V=/^[a-z$_][a-z$_0-9]*$/i;function P(i){return V.test(i)}function W(i,E,O){for(var I=new Array(i),j=0;j<i;++j)I[j]=E+j+O;return I}function Z(i){try{return i+""}catch{return"[no string representation]"}}function G(i){return i instanceof Error||i!==null&&typeof i=="object"&&typeof i.message=="string"&&typeof i.name=="string"}function X(i){try{d(i,"isOperational",!0)}catch{}}function U(i){return i==null?!1:i instanceof Error.__BluebirdErrorTypes__.OperationalError||i.isOperational===!0}function z(i){return G(i)&&t.propertyIsWritable(i,"stack")}var M=function(){return"stack"in new Error?function(i){return z(i)?i:new Error(Z(i))}:function(i){if(z(i))return i;try{throw new Error(Z(i))}catch(E){return E}}}();function q(i){return{}.toString.call(i)}function nt(i,E,O){for(var I=t.names(i),j=0;j<I.length;++j){var H=I[j];if(O(H))try{t.defineProperty(E,H,t.getDescriptor(i,H))}catch{}}}var tt=function(i){return t.isArray(i)?i:null};if(typeof Symbol<"u"&&Symbol.iterator){var Y=typeof Array.from=="function"?function(i){return Array.from(i)}:function(i){for(var E=[],O=i[Symbol.iterator](),I;!(I=O.next()).done;)E.push(I.value);return E};tt=function(i){return t.isArray(i)?i:i!=null&&typeof i[Symbol.iterator]=="function"?Y(i):null}}var J=typeof process<"u"&&q(process).toLowerCase()==="[object process]",it=typeof process<"u"&&typeof s<"u";function k(i){return it?s[i]:void 0}function ut(){if(typeof Promise=="function")try{var i=new Promise(function(){});if(q(i)==="[object Promise]")return Promise}catch{}}var ht;function F(i,E){if(i===null||typeof E!="function"||E===ht)return E;i.domain!==null&&(E=i.domain.bind(E));var O=i.async;if(O!==null){var I=E;E=function(){var j=new Array(2).concat([].slice.call(arguments));return j[0]=I,j[1]=this,O.runInAsyncScope.apply(O,j)}}return E}var h={setReflectHandler:function(i){ht=i},isClass:T,isIdentifier:P,inheritedDataKeys:x,getDataPropertyOrDefault:w,thrower:_,isArray:t.isArray,asArray:tt,notEnumerableProp:d,isPrimitive:u,isObject:y,isError:G,canEvaluate:b,errorObj:f,tryCatch:o,inherits:a,withAppended:g,maybeWrapAsError:v,toFastProperties:$,filledRange:W,toString:Z,canAttachTrace:z,ensureErrorObject:M,originatesFromRejection:U,markAsOriginatingFromRejection:X,classString:q,copyDescriptors:nt,isNode:J,hasEnvVariables:it,env:k,global:m,getNativePromise:ut,contextBind:F};h.isRecentNode=h.isNode&&function(){var i;return process.versions&&process.versions.node?i=process.versions.node.split(".").map(Number):process.version&&(i=process.version.split(".").map(Number)),i[0]===0&&i[1]>10||i[0]>0}(),h.nodeSupportsAsyncResource=h.isNode&&function(){var i=!1;try{var E=r("async_hooks").AsyncResource;i=typeof E.prototype.runInAsyncScope=="function"}catch{i=!1}return i}(),h.isNode&&h.toFastProperties(process);try{throw new Error}catch(i){h.lastLineError=i}c.exports=h},{"./es5":13,async_hooks:void 0}]},{},[4])(4)}),typeof window<"u"&&window!==null?window.P=window.Promise:typeof self<"u"&&self!==null&&(self.P=self.Promise)}(se)),se.exports}var Ir=Or();const Dr=Ke(Ir);let Mt;const Lr=new Uint8Array(16);function Vr(){if(!Mt&&(Mt=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Mt))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Mt(Lr)}const _t=[];for(let e=0;e<256;++e)_t.push((e+256).toString(16).slice(1));function Pr(e,n=0){return _t[e[n+0]]+_t[e[n+1]]+_t[e[n+2]]+_t[e[n+3]]+"-"+_t[e[n+4]]+_t[e[n+5]]+"-"+_t[e[n+6]]+_t[e[n+7]]+"-"+_t[e[n+8]]+_t[e[n+9]]+"-"+_t[e[n+10]]+_t[e[n+11]]+_t[e[n+12]]+_t[e[n+13]]+_t[e[n+14]]+_t[e[n+15]]}const Hr=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),$e={randomUUID:Hr};function Ur(e,n,s){if($e.randomUUID&&!e)return $e.randomUUID();e=e||{};const r=e.random||(e.rng||Vr)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Pr(r)}function qt(){this.funcs=[]}qt.prototype.subscribe=function(e){return this.funcs.push(e),{unsubscribe:()=>this.unsubscribe(e)}};qt.prototype.next=function(...e){this.funcs.forEach(n=>n(...e))};qt.prototype.unsubscribe=function(e){this.funcs=[...this.funcs.filter(n=>n!==e)]};const Be=cn();class $r{constructor(){this.notifs=mt([]),this.notifsHistory=mt([]),this.openHistory=new qt,this.mutedNotifications=mt(JSON.parse(localStorage.getItem("muted-notifications")||JSON.stringify({error:{}}))),Qt(()=>this.mutedNotifications.value,()=>{localStorage.setItem("muted-notifications",JSON.stringify(this.mutedNotifications.value))},{deep:!0})}next(n,s,r=void 0,c=null,R=null){var b,f;if((b=this.mutedNotifications.value[n])!=null&&b.MUTED_ALL||R&&((f=this.mutedNotifications.value[n])!=null&&f[R]))return;c||(this.next(n,s,r,this.notifsHistory.value,R),c=this.notifs.value);let t=c.find(l=>l.type===n&&l.serviceLabel===r&&r);if(t){const l=t.msgs.find(p=>p.label===s),m=l||{label:s,nb:0};m.nb+=1,l||t.msgs.unshift(m)}else{const l=c.find(o=>o.type===n&&!o.serviceLabel&&o.msgs.find(a=>a.label===s));t=l||{id:Ur(),type:n,msgs:[],serviceLabel:r,nb:0};const m=t.msgs.find(o=>o.label===s),p=m||{label:s,nb:0};p.nb+=1,m||t.msgs.unshift(p),l||c.unshift(t)}clearTimeout(t.timeout),t.timeout=setTimeout(()=>{t&&this.remove(t)},5e3)}remove(n,s=!1){const r=this.notifs.value.indexOf(n);r>-1&&this.notifs.value.splice(r,1),s&&n.serviceLabel&&Be.push({name:"stack-single",params:{label:n.serviceLabel}})}removeHistory(n,s){const r=this.notifsHistory.value.indexOf(n);r>-1&&this.notifsHistory.value.splice(r,1),s&&n.serviceLabel&&Be.push({name:"stack-single",params:{label:n.serviceLabel}})}}const Br=new $r;var Wt={exports:{}},Ne;function Nr(){if(Ne)return Wt.exports;Ne=1;function e(n,s=100,r={}){if(typeof n!="function")throw new TypeError(`Expected the first parameter to be a function, got \`${typeof n}\`.`);if(s<0)throw new RangeError("`wait` must not be negative.");const{immediate:c}=typeof r=="boolean"?{immediate:r}:r;let R,t,b,f,l;function m(){const a=R,u=t;return R=void 0,t=void 0,l=n.apply(a,u),l}function p(){const a=Date.now()-f;a<s&&a>=0?b=setTimeout(p,s-a):(b=void 0,c||(l=m()))}const o=function(...a){if(R&&this!==R&&Object.getPrototypeOf(this)===Object.getPrototypeOf(R))throw new Error("Debounced method called with different contexts of the same prototype.");R=this,t=a,f=Date.now();const u=c&&!b;return b||(b=setTimeout(p,s)),u&&(l=m()),l};return Object.defineProperty(o,"isPending",{get(){return b!==void 0}}),o.clear=()=>{b&&(clearTimeout(b),b=void 0)},o.flush=()=>{b&&o.trigger()},o.trigger=()=>{l=m(),o.clear()},o}return Wt.exports.debounce=e,Wt.exports=e,Wt.exports}var Mr=Nr();const Wr=Ke(Mr),Gr={key:0,class:"hint"},zr={class:"groups"},Qr={class:"choices"},Kr=["onClick"],Xr={class:"left"},qr={class:"icon"},Yr={class:"title"},Jr={class:"description"},Zr={class:"right"},ti={class:"title"},ei={class:"description"},ni={class:"left"},ri={key:0},ii={class:"title"},oi={class:"description"},ai={__name:"Index",setup(e){const n=cn(),s=async o=>{o.ctrlKey&&o.altKey&&o.code==="KeyP"&&(o.preventDefault(),t.value=!t.value,c.value="",await Qe(),R.value.focus()),o.code==="Escape"&&(o.preventDefault(),t.value=!1)};window.addEventListener("keyup",s),mn(()=>window.removeEventListener("keyup",s));const r=mt({}),c=mt(""),R=mt(),t=mt(!1),b=yt(()=>n.currentRoute.value.path.includes("/Finder"));Qt(()=>t.value,()=>{b.value&&(t.value=!0)},{immediate:!0});const f=yt(()=>Object.keys(r.value).map(o=>{var u,y,v;const a=r.value[o];return{label:a.label,choices:(u=a.choices)==null?void 0:u.slice(0,4),otherChoices:(v=a.choices)==null?void 0:v.slice(4,(y=a.choices)==null?void 0:y.length)}}));async function l(){const{data:o}=await B.get("/finder/search",{params:{q:c.value}}),a={};o[0]&&(o[0].active=!0),o.map(u=>(u.group||(u.group="Others"),a[u.group]||(a[u.group]={label:u.group,choices:[],otherChoices:[]}),a[u.group].choices.push(u),null)),r.value=a}bn(l),Qt(()=>c.value,Wr(l,200));function m(o){o!=null&&o.url&&(n.push(o.url),t.value=!1)}async function p(o){const a=f.value.flatMap(u=>u.choices);if(["ArrowUp","ArrowDown"].includes(o.code))for(let u=0;u<a.length;u+=1){const y=a[u];if(y.active){y.active=!1;const v=o.code==="ArrowUp"?a[a.length-1]:a[0],g=(o.code==="ArrowUp"?a[u-1]:a[u+1])||v;g.active=!0;break}}o.code==="Enter"&&m(a.find(u=>u.active))}return(o,a)=>ye((Tt(),jt("div",{class:re(["finder-root",{isComponent:b.value}]),onClick:a[3]||(a[3]=u=>t.value=!1)},[b.value?(Tt(),jt("div",Gr," Press Ctrl+Alt+P To open it anywhere ")):me("",!0),dt("div",{class:"finder-container",onClick:a[2]||(a[2]=ne(()=>{},["stop"]))},[ye(dt("input",{type:"text",autofocus:"","onUpdate:modelValue":a[0]||(a[0]=u=>c.value=u),placeholder:"Type to find something...",ref_key:"inputRef",ref:R,onKeyup:p},null,544),[[En,c.value]]),dt("div",zr,[(Tt(!0),jt(be,null,we(f.value,u=>(Tt(),Cn(Xe,{class:"group",key:`${u}`},{default:Rn(()=>{var y;return[dt("h2",null,Ft(u.label),1),dt("div",Qr,[(Tt(!0),jt(be,null,we(u.choices,v=>(Tt(),jt("div",{class:re(["choice",{active:v.active}]),key:`${v}`,onClick:ne(g=>m(v),["stop"])},[dt("div",Xr,[dt("div",qr,[dt("i",{class:re(v.icon||"fas fa-cog")},null,2)]),dt("div",null,[dt("div",Yr,Ft(v.title),1),dt("div",Jr,Ft(v.description),1)])]),dt("div",Zr,[dt("div",ti,Ft(v.secondaryTitle),1),dt("div",ei,Ft(v.secondaryDescription),1)])],10,Kr))),128)),dt("div",{class:"choice",onClick:a[1]||(a[1]=ne(()=>{},["stop"]))},[dt("div",ni,[(y=u.otherChoices)!=null&&y.length?(Tt(),jt("div",ri,[dt("div",ii,"And "+Ft(u.otherChoices.length)+" others...",1),dt("div",oi,Ft(u.otherChoices.map(v=>v.title).slice(0,20).map(v=>v.slice(0,40)+"...").join(", "))+" ... ",1)])):me("",!0)])])])]}),_:2},1024))),128))])])],2)),[[wn,t.value]])}},si=xn(ai,[["__scopeId","data-v-de00cded"]]),li=[{name:"OpenApi",component:()=>ot(()=>import("./Index-CCt5RYhV.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]))},{name:"Finder",component:si},{name:"Git-NotUpToDate",component:()=>ot(()=>import("./NotUpToDate-Dv1x5laT.js"),__vite__mapDeps([12,2,3,4,5,6,13,14,1,9,10,15]))},{name:"Help",component:()=>ot(()=>import("./Index-CKyiBy6h.js"),__vite__mapDeps([16,3,4,5]))},{name:"Workflows",component:()=>ot(()=>import("./Index-CvSNWhOl.js"),__vite__mapDeps([17,4,5]))},{name:"Docker",component:()=>ot(()=>import("./Index-CNTmcq3o.js"),__vite__mapDeps([18,19,4,5,2,3,6,1,9,10,20]))},{name:"Toolbox",component:()=>ot(()=>import("./Toolbox-CeYvSlof.js"),__vite__mapDeps([21,4,5,3,1,9,10,2,6,22])),children:[{path:":plugin",component:()=>ot(()=>import("./DynamicComponent-Cd8cbFTY.js"),__vite__mapDeps([23,3,4,5,1,9,10,2,6,24])),props:{context:"toolbox"}}]}],un=[{name:"WorkflowsModals",cmp:()=>ot(()=>import("./Modals-UgnVGGTd.js"),__vite__mapDeps([25,26,4,5,3,27,28,29,30,1,9,10,2,6])),load:!0},{name:"DynamicComponent",cmp:()=>ot(()=>import("./DynamicComponent-Cd8cbFTY.js"),__vite__mapDeps([23,3,4,5,1,9,10,2,6,24]))},...li.map(({name:e,component:n,children:s})=>({name:e,cmp:n,routes:[{path:`/${e}`,name:e,component:n,children:s}]})),{name:"Dynamic",component:()=>ot(()=>import("./DynamicComponent-Cd8cbFTY.js"),__vite__mapDeps([23,3,4,5,1,9,10,2,6,24])),routes:[{path:"/dynamic/:plugin",name:"dynamic",component:()=>ot(()=>import("./DynamicComponent-Cd8cbFTY.js"),__vite__mapDeps([23,3,4,5,1,9,10,2,6,24])),props:{context:"sidebar"}}]},{name:"Logs",cmp:()=>ot(()=>import("./Logs-Dr0aVld6.js"),__vite__mapDeps([31,4,5,19,1,32,2,3,6,26,27,33,13,14,29,28,30,9,10,34]))},{name:"Git",cmp:()=>ot(()=>import("./Git-CWhmBLgo.js"),__vite__mapDeps([35,4,5,26,3,27,2,6,7,8,36,1,9,10,37]))},{name:"Github",cmp:()=>ot(()=>import("./Index-_Myie1IE.js"),__vite__mapDeps([38,4,5,2,3,6,39,1,32,13,14,8,9,10,40]))},{name:"Npm",cmp:()=>ot(()=>import("./Npm-BQOhWPXB.js"),__vite__mapDeps([41,2,3,4,5,6,13,14,28,29,30,1,9,10,42]))},{name:"Bugs",cmp:()=>ot(()=>import("./Bugs-H-Otgxln.js"),__vite__mapDeps([43,2,3,4,5,6,13,14,28,29,30,1,9,10,44]))},{name:"Configuration",cmp:()=>ot(()=>import("./Configs-CS7LQ3j2.js"),__vite__mapDeps([45,46,29,4,5,30,47,48,28,49,50,2,3,6,26,27,51,1,9,10,52]))},{name:"Documentation",cmp:()=>ot(()=>import("./Index-DXLLCB8w.js"),__vite__mapDeps([53,4,5,2,3,6,46,29,30,54,1,50,55,56,47,9,10,57]))}],zt=mt([]);globalThis.toolboxPlugins=mt([]);globalThis.sidebarPlugins=mt([]);function ci(e,n){const s=e.toLowerCase();document.querySelectorAll(s).forEach(c=>n(c));const r=new MutationObserver(c=>{var R,t;for(const b of c)for(const f of b.addedNodes)f.nodeType===Node.ELEMENT_NODE&&(f.tagName.toLowerCase()===s&&n(f),(t=(R=f.querySelectorAll)==null?void 0:R.call(f,s))==null||t.forEach(l=>n(l)))});return r.observe(document.body,{childList:!0,subtree:!0}),r}function Me(e){ui(e),document.querySelectorAll('head > style, head > link[rel="stylesheet"]').forEach(r=>{const c=r.cloneNode(!0);e.prepend(c)}),document.querySelectorAll('head > style[data-primevue-style-id="variables"]').forEach(r=>{const c=r.cloneNode(!0);e.appendChild(c)})}function ui(e){new MutationObserver(s=>{s.forEach(r=>{r.addedNodes.forEach(c=>{if(c instanceof HTMLStyleElement){const R=c.cloneNode(!0);e.appendChild(R)}})})}).observe(document.head,{childList:!0,subtree:!1})}const We=(e,n)=>{ci(e,async s=>{try{Me(s.shadowRoot)}catch{await new Promise(c=>setTimeout(c,1e3)),Me(s.shadowRoot)}}),customElements.define(e,n)},fi=e=>n=>{n.placements.forEach(s=>{const r=s.component;if(s.location==="toolbox"){const c=e+"-toolbox";We(c,r),globalThis.toolboxPlugins.value.push({...s,id:e})}else if(s.location==="sidebar"){const c=e+"-sidebar";We(c,r),globalThis.sidebarPlugins.value.push({...s,id:e})}})},pi=(e,n)=>{fi(e.replaceAll("@","").replaceAll("/","-"))(n)};B.get("/plugins").then(async e=>{zt.value=e.data.sort((n,s)=>s.name.localeCompare(n.name)),console.log("load plugins...",zt.value.map(n=>n.name)),await Dr.map(zt.value,async n=>{var s,r;if((r=(s=n.config.runeya.entries)==null?void 0:s.front)!=null&&r.js){const c=n.name;globalThis[c]=R=>{const t=R({assetsBasePath:`/plugins/${encodeURIComponent(c)}/assets`,components:{Editor:Sn,Section:Xe},callServer:(b,...f)=>B.post(`/plugins/${encodeURIComponent(c)}/call/${encodeURIComponent(b)}`,{args:f}),customCallServer:b=>(f,...l)=>B.post(`/plugins/${encodeURIComponent(c)}/call/${encodeURIComponent(f)}`,{args:l},b),socket:{emit:(b,...f)=>{Gt.emit(encodeURIComponent(c)+"-"+b,...f)},on:(b,f)=>{Gt.on(encodeURIComponent(c)+"-"+b,f)},off:(b,f)=>{Gt.off(encodeURIComponent(c)+"-"+b,f)}},primevueConfig:{theme:{preset:kn,options:{}}},router:he,notification:Br});pi(c,t)};try{await import(`/plugins/${encodeURIComponent(n.name)}/js`)}catch(R){console.error(`❌ Erreur lors du chargement du plugin ${n.name}:`,R)}}})});const Ci=Object.freeze(Object.defineProperty({__proto__:null,default:un,remotePlugins:zt},Symbol.toStringTag,{value:"Module"}));class hi{constructor(n){var s,r,c;this.label=n.label||"",this.commands=n.commands||[],this.rootPath=n.rootPath||((c=(r=(s=this.commands)==null?void 0:s[0])==null?void 0:r.spawnOptions)==null?void 0:c.cwd)||"",this.envs={},this.shortcuts=[],this.updateFields(n)}updateFields(n){var s,r,c;if(!n.label)throw new Error("A service should have a label");this.label=n.label,this.description=n.description||"",this.url=n.url||"",this.openapiURL=n.openapiURL||"",this.spawnCmd=n.spawnCmd||"",this.enabled=n.enabled||!1,this.crashed=n.crashed||!1,this.exited=n.exited||!1,this.groups=n.groups||[],this.parsers=n.parsers||[],this.urls=n.urls||[],this.spawnArgs=n.spawnArgs||[],this.health||(this.health={}),this._updateObjectWithReferences(this.health,n.health||{enabled:!1,url:"",interval:"",method:"GET",returnCode:200,responseText:"",timeout:0,startAfter:0}),this.git||(this.git={}),this._updateObjectWithReferences(this.git,n.git||{home:"",remote:"",branches:[],stash:[],delta:0,currentBranch:"",status:[]}),this.spawnOptions||(this.spawnOptions={}),this._updateObjectWithReferences(this.spawnOptions,n.spawnOptions||{cwd:"",env:""}),this.commands||(this.commands=[]),n.commands?this._updateArrayWithReferences(this.commands,n.commands,"spawnCmd"):this.commands.length=0,this.shortcuts||(this.shortcuts=[]),n.shortcuts?this._updateArrayWithReferences(this.shortcuts,n.shortcuts,"label"):this.shortcuts.length=0,this.envs||(this.envs={}),this._updateObjectWithReferences(this.envs,n.envs||{}),this.rootPath=n.rootPath||((c=(r=(s=this.commands)==null?void 0:s[0])==null?void 0:r.spawnOptions)==null?void 0:c.cwd)||"",n.container?(this.container||(this.container={}),this._updateObjectWithReferences(this.container,n.container),this.container.volumes||(this.container.volumes=[]),this.container.ignoreVolumes||(this.container.ignoreVolumes=[])):this.container=n.container,this.meta||(this.meta={}),this._updateObjectWithReferences(this.meta,n.meta||{})}_updateArrayWithReferences(n,s,r){if(!n||!s)return;const c={};n.forEach(R=>{R&&R[r]&&(c[R[r]]=R)}),n.length=0,s.forEach(R=>{if(R&&R[r]&&c[R[r]]){const t=c[R[r]];this._updateObjectWithReferences(t,R),n.push(t)}else n.push(R)})}_updateObjectWithReferences(n,s){!n||!s||(Object.keys(n).forEach(r=>{r in s||delete n[r]}),Object.keys(s).forEach(r=>{const c=s[r];if(c===void 0)return;if(!(r in n)){n[r]=c;return}const R=n[r];if(c===null)n[r]=null;else if(Array.isArray(c))if(!Array.isArray(R))n[r]=c;else if(c.length>0&&typeof c[0]=="object"&&c[0]!==null){const t=c[0],f=["id","name","label","spawnCmd","key"].find(l=>l in t)||Object.keys(t)[0];this._updateArrayWithReferences(R,c,f)}else R.length=0,c.forEach(t=>R.push(t));else typeof c=="object"?typeof R!="object"||R===null?n[r]=c:this._updateObjectWithReferences(R,c):n[r]=c}))}async updateGit(){var n;if((n=this.git)!=null&&n.remote){this.git.branches=await this.getBranches(),this.git.currentBranch=await this.getCurrentBranch(),this.git.status=await this.getStatus();const s=await this.stashList();this.git.stash=s}}async fetch(){const{data:n}=await B.get(`/stack/${this.label}/`);return this.updateFields(n),this}async getLogs(){const{data:n}=await B.get(`/logs/${this.label}/logs`);return n}async sendTerminalPrompt(n){const{data:s}=await B.post(`/logs/${this.label}/prompt`,{...n,service:this.label});return s}async sendTerminalTerminate(n){const{data:s}=await B.post(`/logs/${this.label}/terminate`,{...n,service:this.label});return s}async clear(){const{data:n}=await B.delete(`/logs/${this.label}/logs`);return n}async autocomplete(n,{force:s}={}){const{data:r}=await B.get(`/logs/${this.label}/autocomplete`,{params:{message:n,force:!!s}});return r}async openInVsCode(n,s){return B.get(`/editors/${this.label}/open-in-vs-code`,{params:{path:n,editor:s}})}async openLinkInVsCode(n,s){return B.get(`/editors/${this.label}/open-link-in-vs-code`,{params:{link:n,editor:s}})}async openFolder(n){return B.get(`/stack/${this.label}/open-folder`,{params:{path:n}})}async restart(){return this.enabled=!0,localStorage.setItem(`automatic-toggle-${this.label}`,this.enabled.toString()),B.get(`/stack/${this.label}/restart`)}async start(){return this.enabled=!0,localStorage.setItem(`automatic-toggle-${this.label}`,this.enabled.toString()),B.get(`/stack/${this.label}/start`)}async stop(){return this.enabled=!1,localStorage.setItem(`automatic-toggle-${this.label}`,this.enabled.toString()),B.get(`/stack/${this.label}/stop`)}async getBranches(){const{data:n}=await B.get(`/git/${this.label}/branches`);return n}async getCurrentBranch(){const{data:n}=await B.get(`/git/${this.label}/current-branch`);return n}async addBranch(n,s){const{data:r}=await B.post(`/git/${this.label}/add-branch`,{shouldPush:s,name:n});return r}async getStatus(){const{data:n}=await B.get(`/git/${this.label}/status`);return n}async getDiff(){const{data:n}=await B.get(`/git/${this.label}/diff`);return n}async changeBranch(n){await B.post(`/git/${this.label}/branch/${encodeURIComponent(n)}/change`)}async deleteBranch(n){await B.delete(`/git/${this.label}/branch/${encodeURIComponent(n)}`)}async gitRemoteDelta(n){this.git&&(this.git.delta=null);const{data:s}=await B.get(`/git/${this.label}/branch/${encodeURIComponent(n)}/remote-delta`);return this.git&&(this.git.delta=s),s}async gitFetch(){await B.post(`/git/${this.label}/fetch`)}async getGraph(n){const{data:s}=await B.get(`/git/${this.label}/graph`,{params:{graphOnAll:n}});return s}async reset(){await B.delete(`/git/${this.label}/reset`)}async stash(){return await B.post(`/git/${this.label}/stash`),this.updateGit()}async stashPop(){await B.post(`/git/${this.label}/stash-pop`)}async pull(){await B.post(`/git/${this.label}/pull`)}async stashList(){const{data:n}=await B.post(`/git/${this.label}/stash-list`);return n}async checkoutFile(n){n=encodeURIComponent(n),await B.delete(`/git/${this.label}/checkout/${n}`)}async isNpm(n){const{data:s}=await B.get(`/npm/${this.label}`,{params:{cwd:n}});return s}async getNpmPaths(){const{data:n}=await B.get(`/npm/${this.label}/paths`);return n}async getPackageJSON(n){const{data:s}=await B.get(`/npm/${this.label}/packagejson`,{params:{cwd:n}});return s}async outdatedNpm(n){const{data:s}=await B.get(`/npm/${this.label}/outdated`,{params:{cwd:n}});return s}async getBugs(n){const{data:s}=await B.get(`/bugs/${this.label}`,{params:{cwd:n}});return s||[]}async save(){return await B.post("/stack/services",this),this}static async getTokens(n){const{data:s}=await B.post("/openai/tokenize",{data:n});return s||[]}static async reviewFromAi(n){const{data:s}=await B.post("/openai/review",{data:n});return s||[]}static async findSolutionFromAi(n){const{data:s}=await B.post("/openai/error",{data:n});return s||[]}static async homedir(){const{data:n}=await B.post("/fs/homedir");return n||""}}function vt(){this.services=mt([]),Gt.on("conf:update",e=>{e.length&&e.forEach(n=>{const s=this.services.value.find(r=>r.label===n);s&&s.fetch()})})}vt.prototype.loadServices=async function(){const{data:e}=await B.get("/stack/services"),n={};this.services.value.forEach(r=>{n[r.label]=r});const s=e.filter(r=>r).map(r=>n[r.label]?(n[r.label].updateFields(r),n[r.label]):new hi(r));return this.services.value=s,this.services.value};vt.prototype.scenarios=async function(e,n){const{data:s}=await B.get("/red/flows");return s.filter(r=>e==="services"&&r.launchType===e?r.services.split(",").includes(n):!1)};vt.prototype.getEnvironment=async function(){const{data:e}=await B.get("/stack/environment");return e};vt.prototype.getAdditionalThemes=async function(){const{data:e}=await B.get("/stack/additional-themes");return e};vt.prototype.getEnvironments=async function(){const{data:e}=await B.get("/stack/environments");return e};vt.prototype.changeEnvironment=async function(e){const{data:n}=await B.post("/stack/environment",{environment:e});return n};vt.prototype.shouldSetup=async function(){const{data:e}=await B.get("/crypto/should-setup");return e};vt.prototype.createEnvironment=async function(e){const{data:n}=await B.post("/stack/environment/create",{environment:e});return n};vt.prototype.getAllConfsPath=async function(){const{data:e}=await B.get("/stack/all-confs-path");return e};vt.prototype.selectConf=async function(e){await B.post("/stack/select-conf/",{path:e})};vt.prototype.deleteConf=async function(e){await B.post("/stack/delete-conf/",{path:e})};vt.prototype.launchServices=async function(e){return await B.post("/stack/choose",e),this.loadServices()};vt.prototype.getService=async function(e){return this.services.value.length||await this.loadServices(),this.services.value.filter(n=>n.label===e).pop()};vt.prototype.restartAllServices=async function(){return await B.get("/stack/restart-all"),this.loadServices()};vt.prototype.restartApplication=async function(){try{await B.get("/system/restart"),console.log("Application restarting...")}catch(e){throw console.error("Error while restarting the application:",e),e}};vt.prototype.getAvailableEditors=async function(){const{data:e}=await B.get("/editors/available-editors");return e};vt.prototype.getEnabledServices=async function(){return this.services.value.length||await this.loadServices(),this.services.value.filter(e=>e.enabled)};const di=new vt,vi=un.map(e=>e.routes).filter(e=>e).flat(),_i=[{path:"/stack-chooser",name:"stack-chooser",component:()=>ot(()=>import("./StackChooser-D4JG1V6p.js"),__vite__mapDeps([58,59,4,5,60,3,61,62,2,6,63,1,9,10,64]))},{path:"/stack-single/:label",name:"stack-single",component:()=>ot(()=>import("./StackSingle-BrA92wNq.js"),__vite__mapDeps([65,59,4,5,3,2,6,66,67,68,36,13,14,69,1,9,10,70]))},{path:"/stack-single",name:"stack-single-no-view",component:()=>ot(()=>import("./StackSingle-BrA92wNq.js"),__vite__mapDeps([65,59,4,5,3,2,6,66,67,68,36,13,14,69,1,9,10,70]))},{path:"/overview",name:"overview",component:()=>ot(()=>import("./Overview-CyhbZrp6.js"),__vite__mapDeps([71,2,3,4,5,6,62,59,60,61,63,13,14,1,9,10,72]))},{path:"/stack-multiple",name:"stack-multiple",component:()=>ot(()=>import("./StackMultiple-CXbZO3gp.js"),__vite__mapDeps([73,2,3,4,5,6,66,67,1,9,10,74]))},{path:"/import-create",name:"import-create",component:()=>ot(()=>import("./ImportCreate-BMYQ7CRt.js"),__vite__mapDeps([75,60,4,5,3,61,2,6,26,27,33,59,1,9,10,76]))},{path:"/settings",name:"settings-no-view",component:()=>ot(()=>import("./Settings-gQ2r_ArG.js"),__vite__mapDeps([77,4,5,2,3,6,30,29,48,28,46,47,49,26,27,50,68,36,13,14,69,56,1,9,10,78])),children:[{path:":setting",name:"settings",component:()=>ot(()=>import("./Settings-gQ2r_ArG.js"),__vite__mapDeps([77,4,5,2,3,6,30,29,48,28,46,47,49,26,27,50,68,36,13,14,69,56,1,9,10,78]))}]},{path:"/init",name:"init",component:()=>ot(()=>import("./Init-ec91xg4K.js"),__vite__mapDeps([79,3,4,5]))},...vi,{name:"not-found",path:"/:pathMatch(.*)*",redirect:{name:"stack-chooser"}}],he=Ar({history:or(),routes:_i});he.beforeEach(async(e,n)=>{if((e.name!=="settings"||e.params.setting!=="crypto")&&await di.shouldSetup())return{name:"settings",params:{setting:"crypto"},query:{wrongKey:"true"}}});const Ri=Object.freeze(Object.defineProperty({__proto__:null,default:he},Symbol.toStringTag,{value:"Module"}));export{qt as C,Dr as P,di as S,hi as a,Ei as b,Ci as c,Wr as d,Br as n,un as p,Ri as r,cn as u,Ur as v};