@firmer/mesh 0.0.12 → 0.0.14

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.
package/dist/mesh.umd.cjs CHANGED
@@ -1,9 +1,10 @@
1
- (function(a,Mt){typeof exports=="object"&&typeof module<"u"?Mt(exports,require("react/jsx-runtime"),require("react")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react"],Mt):(a=typeof globalThis<"u"?globalThis:a||self,Mt(a.mesh={},a.jsxRuntime,a.react))})(this,(function(a,Mt,$t){"use strict";var nh=Object.defineProperty;var rh=(a,Mt,$t)=>Mt in a?nh(a,Mt,{enumerable:!0,configurable:!0,writable:!0,value:$t}):a[Mt]=$t;var to=(a,Mt,$t)=>rh(a,typeof Mt!="symbol"?Mt+"":Mt,$t);var Q,Er;class ee extends Map{computeIfy(e,t){let n=this.get(e);return n||(n=t(e),this.set(e,n)),n}groupBy(e){const t=new ee;return this.forEach((n,o)=>t.computeIfy(e(o,n),i=>[]).push(n)),t}map(e){const t=new _n;return this.forEach((n,o)=>t.push(e(o,n))),t}groupKV(e,t){const n=new ee;return this.forEach((o,i)=>n.set(e(i),t(i,o))),n}}class _n extends Array{groupBy(e){const t=new ee;return this.forEach(n=>t.computeIfy(e(n),o=>new _n).push(n)),t}groupKV(e,t){const n=new ee;this.forEach(i=>n.computeIfy(e(i),c=>[]).push(i));const o=new ee;return n.forEach((i,c)=>o.set(c,t(c,i))),o}}const hl={},Fn=()=>typeof globalThis=="object"?globalThis:typeof window=="object"?window:typeof global=="object"?global:hl;class it{static Name=new it("MESH_NAME",()=>"");static Direct=new it("MESH_DIRECT",()=>"");static Subset=new it("MESH_SUBSET",()=>"");static Mode=new it("MESH_MODE",()=>0);static Proxy=new it("MESH_PROXY",()=>"");static Address=new it("MESH_ADDRESS",()=>"");static Runtime=new it("MESH_RUNTIME",()=>"");static MDC=new it("MESH_MDC",()=>"");static SPA=new it("MESH_SPA",()=>"");static TCP=new it("MESH_TCP",()=>"");static Home=new it("MESH_HOME",()=>"");static DSN=new it("MESH_DSN",()=>"");name;value;constructor(e,t){this.name=e,this.value=t}cache(){return Fn().meshCache||(Fn().meshCache=new Map),Fn().meshCache}get(){return this.cache().has(this.name)||this.cache().set(this.name,this.value()),this.cache().get(this.name)}set(e){this.cache().set(this.name,e)}}class Ct{static Disable=new Ct(1);static Failfast=new Ct(2);static Nolog=new Ct(4);static JsonLogFormat=new Ct(8);static PHeader=new Ct(16);static Metrics=new Ct(32);static Debug=new Ct(64);static PermitCirculate=new Ct(128);static NoStdColor=new Ct(256);static Isolate=new Ct(512);static Mock=new Ct(1024);v=0;constructor(e){this.v=e}matches(e){return(this.v&e)==this.v}enable(){return this.matches(it.Mode.get())}value(){return this.v}}function bl(r){it.Mode.set(it.Mode.get()|r)}class ir{raw;parameters;prototype;length;arguments;caller=()=>{};name;[Symbol.metadata]={};constructor(e){[this.raw,this.parameters]=this.parse(e),this.prototype=this.raw.prototype,this.length=this.raw.length,this.name=this.raw.name,this[Symbol.metadata]=this.raw[Symbol.metadata]||{}}parse(e){return e?Array.isArray(e)?e.length<2?[e[0],[]]:[e[0],e.slice(1).map(t=>Array.isArray(t)?new ir(t):t)]:[e,[]]:[Object,[]]}apply=(e,t)=>this.raw.apply(e,...t);call=(e,...t)=>this.raw.call(e,...t);bind=(e,...t)=>this.raw.bind(e,...t);toString(){return this.raw.toString()}[Symbol.hasInstance](e){return this.raw[Symbol.hasInstance](e)}}class or{static FUNCTION=1;static ABSTRACT=2;macro;name;kind;traits;metadata;modifier;constructor(e,t,n,o,i,c){this.macro=e,this.name=t,this.kind=n,this.traits=o,this.metadata=i,this.modifier=c}isfunction(){return(this.modifier&or.FUNCTION)==or.FUNCTION}isabstract(){return(this.modifier&or.ABSTRACT)==or.ABSTRACT}}class Sl{tinder=new ee;annotations=new ee;ak(e,t,n){return`${e.name}-${t}-${n.name}`}annotate(e,t,n,o){this.annotations.computeIfy(n,i=>new ee).computeIfy(t,i=>new ee).set(e,o)}annotated(e){if(this.annotations.get(e))return!0;const n=this.superclass(e,o=>!0);for(let o of n)if(this.annotations.get(o))return!0;return!1}metadata(e,t,n){const o=this.annotations.get(t)?.get(n)?.get(e);if(o)return o;const i=this.superclass(t,c=>!0);for(let c of i){const d=this.annotations.get(c)?.get(n)?.get(e);if(d)return d}}superclass(e,t){const n=[];let o=e.prototype;for(;o&&o.constructor;)e!=o.constructor&&t(o)&&n.push(o.constructor),o=Object.getPrototypeOf(o);return n}register(e,t,n,o){const i=this.superclass(n,g=>this.metadata(e,g.constructor,g.constructor)),c=n.constructor?0:or.FUNCTION,d=i.length<1?or.ABSTRACT:0;i.length<1&&i.push(n);for(let g of i){const h=this.ak(e,t,g);this.tinder.get(h)?.forEach(E=>{E.kind==n&&console.log(`Object of ${g.name} named ${t} has been register already.`)});const b=new or(e,t,n,i,o,c|d),v=this.tinder.computeIfy(h,E=>new _n);v.push(b),v.sort((E,Z)=>E.isabstract()||E.isfunction()?1:Z.isabstract()||E.isfunction()?-1:E.metadata.priority&&Z.metadata.priority?E.metadata.priority-Z.metadata.priority:0)}}unregister(e,t){const n=[];this.tinder.forEach((o,i)=>o.forEach(c=>{c.macro==e&&c.kind==t&&n.push(i)}));for(let o of n)this.tinder.delete(o)}export(e){const t=new ee;for(let n of this.tinder.values())for(let o of n){if(o.isfunction()||o.macro!=e)continue;const i=o.kind;for(let c of o.traits)t.computeIfy(c,d=>new ee).computeIfy(o.name,d=>new _n).push(i)}return t}providers(e,t){return this.export(e).computeIfy(t,n=>new ee).map((n,o)=>o).flatMap(n=>n).filter(n=>n!=t)}provider(e,t,n){const o=this.ak(e,n,t),i=new _n;return this.tinder.computeIfy(o,c=>new _n).forEach(c=>{!c.isfunction()&&!c.isabstract()&&i.push(c.kind)}),i}inspect(e){const t=new ee;return Object.entries(Object.getOwnPropertyDescriptors(e.prototype)).filter(n=>n[0]!=="constructor"&&typeof n[1].value=="function").forEach(n=>{t.set(n[0],n[1].value)}),t}}const Oe=(()=>{const r=Fn();return r.Ark??=new Sl,r.Ark})();var hs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},bs={};var Ss;function _l(){if(Ss)return bs;Ss=1;var r;return(function(e){(function(t){var n=typeof globalThis=="object"?globalThis:typeof hs=="object"?hs:typeof self=="object"?self:typeof this=="object"?this:g(),o=i(e);typeof n.Reflect<"u"&&(o=i(n.Reflect,o)),t(o,n),typeof n.Reflect>"u"&&(n.Reflect=e);function i(h,b){return function(v,E){Object.defineProperty(h,v,{configurable:!0,writable:!0,value:E}),b&&b(v,E)}}function c(){try{return Function("return this;")()}catch{}}function d(){try{return(0,eval)("(function() { return this; })()")}catch{}}function g(){return c()||d()}})(function(t,n){var o=Object.prototype.hasOwnProperty,i=typeof Symbol=="function",c=i&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",d=i&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",g=typeof Object.create=="function",h={__proto__:[]}instanceof Array,b=!g&&!h,v={create:g?function(){return gs(Object.create(null))}:h?function(){return gs({__proto__:null})}:function(){return gs({})},has:b?function(y,m){return o.call(y,m)}:function(y,m){return m in y},get:b?function(y,m){return o.call(y,m)?y[m]:void 0}:function(y,m){return y[m]}},E=Object.getPrototypeOf(Function),Z=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Yg(),_=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Qg(),M=typeof WeakMap=="function"?WeakMap:Zg(),P=i?Symbol.for("@reflect-metadata:registry"):void 0,we=Gg(),At=Jg(we);function Ve(y,m,S,O){if(D(S)){if(!cl(y))throw new TypeError;if(!al(m))throw new TypeError;return qr(y,m)}else{if(!cl(y))throw new TypeError;if(!Xe(m))throw new TypeError;if(!Xe(O)&&!D(O)&&!bn(O))throw new TypeError;return bn(O)&&(O=void 0),S=kn(S),nr(y,m,S,O)}}t("decorate",Ve);function lt(y,m){function S(O,I){if(!Xe(O))throw new TypeError;if(!D(I)&&!Vg(I))throw new TypeError;Zi(y,m,O,I)}return S}t("metadata",lt);function Xt(y,m,S,O){if(!Xe(S))throw new TypeError;return D(O)||(O=kn(O)),Zi(y,m,S,O)}t("defineMetadata",Xt);function tr(y,m,S){if(!Xe(m))throw new TypeError;return D(S)||(S=kn(S)),Yi(y,m,S)}t("hasMetadata",tr);function zt(y,m,S){if(!Xe(m))throw new TypeError;return D(S)||(S=kn(S)),nt(y,m,S)}t("hasOwnMetadata",zt);function Xi(y,m,S){if(!Xe(m))throw new TypeError;return D(S)||(S=kn(S)),Qi(y,m,S)}t("getMetadata",Xi);function bi(y,m,S){if(!Xe(m))throw new TypeError;return D(S)||(S=kn(S)),gn(y,m,S)}t("getOwnMetadata",bi);function No(y,m){if(!Xe(y))throw new TypeError;return D(m)||(m=kn(m)),Eo(y,m)}t("getMetadataKeys",No);function To(y,m){if(!Xe(y))throw new TypeError;return D(m)||(m=kn(m)),hn(y,m)}t("getOwnMetadataKeys",To);function Si(y,m,S){if(!Xe(m))throw new TypeError;if(D(S)||(S=kn(S)),!Xe(m))throw new TypeError;D(S)||(S=kn(S));var O=eo(m,S,!1);return D(O)?!1:O.OrdinaryDeleteMetadata(y,m,S)}t("deleteMetadata",Si);function qr(y,m){for(var S=y.length-1;S>=0;--S){var O=y[S],I=O(m);if(!D(I)&&!bn(I)){if(!al(I))throw new TypeError;m=I}}return m}function nr(y,m,S,O){for(var I=y.length-1;I>=0;--I){var rt=y[I],Ye=rt(m,S,O);if(!D(Ye)&&!bn(Ye)){if(!Xe(Ye))throw new TypeError;O=Ye}}return O}function Yi(y,m,S){var O=nt(y,m,S);if(O)return!0;var I=ms(m);return bn(I)?!1:Yi(y,I,S)}function nt(y,m,S){var O=eo(m,S,!1);return D(O)?!1:sl(O.OrdinaryHasOwnMetadata(y,m,S))}function Qi(y,m,S){var O=nt(y,m,S);if(O)return gn(y,m,S);var I=ms(m);if(!bn(I))return Qi(y,I,S)}function gn(y,m,S){var O=eo(m,S,!1);if(!D(O))return O.OrdinaryGetOwnMetadata(y,m,S)}function Zi(y,m,S,O){var I=eo(S,O,!0);I.OrdinaryDefineOwnMetadata(y,m,S,O)}function Eo(y,m){var S=hn(y,m),O=ms(y);if(O===null)return S;var I=Eo(O,m);if(I.length<=0)return S;if(S.length<=0)return I;for(var rt=new _,Ye=[],te=0,R=S;te<R.length;te++){var w=R[te],N=rt.has(w);N||(rt.add(w),Ye.push(w))}for(var T=0,oe=I;T<oe.length;T++){var w=oe[T],N=rt.has(w);N||(rt.add(w),Ye.push(w))}return Ye}function hn(y,m){var S=eo(y,m,!1);return S?S.OrdinaryOwnMetadataKeys(y,m):[]}function rr(y){if(y===null)return 1;switch(typeof y){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return y===null?1:6;default:return 6}}function D(y){return y===void 0}function bn(y){return y===null}function Ao(y){return typeof y=="symbol"}function Xe(y){return typeof y=="object"?y!==null:typeof y=="function"}function qg(y,m){switch(rr(y)){case 0:return y;case 1:return y;case 2:return y;case 3:return y;case 4:return y;case 5:return y}var S="string",O=dl(y,c);if(O!==void 0){var I=O.call(y,S);if(Xe(I))throw new TypeError;return I}return zg(y)}function zg(y,m){var S,O;{var I=y.toString;if(Mo(I)){var O=I.call(y);if(!Xe(O))return O}var S=y.valueOf;if(Mo(S)){var O=S.call(y);if(!Xe(O))return O}}throw new TypeError}function sl(y){return!!y}function Kg(y){return""+y}function kn(y){var m=qg(y);return Ao(m)?m:Kg(m)}function cl(y){return Array.isArray?Array.isArray(y):y instanceof Object?y instanceof Array:Object.prototype.toString.call(y)==="[object Array]"}function Mo(y){return typeof y=="function"}function al(y){return typeof y=="function"}function Vg(y){switch(rr(y)){case 3:return!0;case 4:return!0;default:return!1}}function ls(y,m){return y===m||y!==y&&m!==m}function dl(y,m){var S=y[m];if(S!=null){if(!Mo(S))throw new TypeError;return S}}function ul(y){var m=dl(y,d);if(!Mo(m))throw new TypeError;var S=m.call(y);if(!Xe(S))throw new TypeError;return S}function pl(y){return y.value}function fl(y){var m=y.next();return m.done?!1:m}function yl(y){var m=y.return;m&&m.call(y)}function ms(y){var m=Object.getPrototypeOf(y);if(typeof y!="function"||y===E||m!==E)return m;var S=y.prototype,O=S&&Object.getPrototypeOf(S);if(O==null||O===Object.prototype)return m;var I=O.constructor;return typeof I!="function"||I===y?m:I}function Wg(){var y;!D(P)&&typeof n.Reflect<"u"&&!(P in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(y=Xg(n.Reflect));var m,S,O,I=new M,rt={registerProvider:Ye,getProvider:R,setProvider:N};return rt;function Ye(T){if(!Object.isExtensible(rt))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case y===T:break;case D(m):m=T;break;case m===T:break;case D(S):S=T;break;case S===T:break;default:O===void 0&&(O=new _),O.add(T);break}}function te(T,oe){if(!D(m)){if(m.isProviderFor(T,oe))return m;if(!D(S)){if(S.isProviderFor(T,oe))return m;if(!D(O))for(var Ne=ul(O);;){var qe=fl(Ne);if(!qe)return;var Sn=pl(qe);if(Sn.isProviderFor(T,oe))return yl(Ne),Sn}}}if(!D(y)&&y.isProviderFor(T,oe))return y}function R(T,oe){var Ne=I.get(T),qe;return D(Ne)||(qe=Ne.get(oe)),D(qe)&&(qe=te(T,oe),D(qe)||(D(Ne)&&(Ne=new Z,I.set(T,Ne)),Ne.set(oe,qe))),qe}function w(T){if(D(T))throw new TypeError;return m===T||S===T||!D(O)&&O.has(T)}function N(T,oe,Ne){if(!w(Ne))throw new Error("Metadata provider not registered.");var qe=R(T,oe);if(qe!==Ne){if(!D(qe))return!1;var Sn=I.get(T);D(Sn)&&(Sn=new Z,I.set(T,Sn)),Sn.set(oe,Ne)}return!0}}function Gg(){var y;return!D(P)&&Xe(n.Reflect)&&Object.isExtensible(n.Reflect)&&(y=n.Reflect[P]),D(y)&&(y=Wg()),!D(P)&&Xe(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,P,{enumerable:!1,configurable:!1,writable:!1,value:y}),y}function Jg(y){var m=new M,S={isProviderFor:function(w,N){var T=m.get(w);return D(T)?!1:T.has(N)},OrdinaryDefineOwnMetadata:Ye,OrdinaryHasOwnMetadata:I,OrdinaryGetOwnMetadata:rt,OrdinaryOwnMetadataKeys:te,OrdinaryDeleteMetadata:R};return we.registerProvider(S),S;function O(w,N,T){var oe=m.get(w),Ne=!1;if(D(oe)){if(!T)return;oe=new Z,m.set(w,oe),Ne=!0}var qe=oe.get(N);if(D(qe)){if(!T)return;if(qe=new Z,oe.set(N,qe),!y.setProvider(w,N,S))throw oe.delete(N),Ne&&m.delete(w),new Error("Wrong provider for target.")}return qe}function I(w,N,T){var oe=O(N,T,!1);return D(oe)?!1:sl(oe.has(w))}function rt(w,N,T){var oe=O(N,T,!1);if(!D(oe))return oe.get(w)}function Ye(w,N,T,oe){var Ne=O(T,oe,!0);Ne.set(w,N)}function te(w,N){var T=[],oe=O(w,N,!1);if(D(oe))return T;for(var Ne=oe.keys(),qe=ul(Ne),Sn=0;;){var ll=fl(qe);if(!ll)return T.length=Sn,T;var eh=pl(ll);try{T[Sn]=eh}catch(th){try{yl(qe)}finally{throw th}}Sn++}}function R(w,N,T){var oe=O(N,T,!1);if(D(oe)||!oe.delete(w))return!1;if(oe.size===0){var Ne=m.get(N);D(Ne)||(Ne.delete(T),Ne.size===0&&m.delete(Ne))}return!0}}function Xg(y){var m=y.defineMetadata,S=y.hasOwnMetadata,O=y.getOwnMetadata,I=y.getOwnMetadataKeys,rt=y.deleteMetadata,Ye=new M,te={isProviderFor:function(R,w){var N=Ye.get(R);return!D(N)&&N.has(w)?!0:I(R,w).length?(D(N)&&(N=new _,Ye.set(R,N)),N.add(w),!0):!1},OrdinaryDefineOwnMetadata:m,OrdinaryHasOwnMetadata:S,OrdinaryGetOwnMetadata:O,OrdinaryOwnMetadataKeys:I,OrdinaryDeleteMetadata:rt};return te}function eo(y,m,S){var O=we.getProvider(y,m);if(!D(O))return O;if(S){if(we.setProvider(y,m,At))return At;throw new Error("Illegal state.")}}function Yg(){var y={},m=[],S=(function(){function te(R,w,N){this._index=0,this._keys=R,this._values=w,this._selector=N}return te.prototype["@@iterator"]=function(){return this},te.prototype[d]=function(){return this},te.prototype.next=function(){var R=this._index;if(R>=0&&R<this._keys.length){var w=this._selector(this._keys[R],this._values[R]);return R+1>=this._keys.length?(this._index=-1,this._keys=m,this._values=m):this._index++,{value:w,done:!1}}return{value:void 0,done:!0}},te.prototype.throw=function(R){throw this._index>=0&&(this._index=-1,this._keys=m,this._values=m),R},te.prototype.return=function(R){return this._index>=0&&(this._index=-1,this._keys=m,this._values=m),{value:R,done:!0}},te})(),O=(function(){function te(){this._keys=[],this._values=[],this._cacheKey=y,this._cacheIndex=-2}return Object.defineProperty(te.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),te.prototype.has=function(R){return this._find(R,!1)>=0},te.prototype.get=function(R){var w=this._find(R,!1);return w>=0?this._values[w]:void 0},te.prototype.set=function(R,w){var N=this._find(R,!0);return this._values[N]=w,this},te.prototype.delete=function(R){var w=this._find(R,!1);if(w>=0){for(var N=this._keys.length,T=w+1;T<N;T++)this._keys[T-1]=this._keys[T],this._values[T-1]=this._values[T];return this._keys.length--,this._values.length--,ls(R,this._cacheKey)&&(this._cacheKey=y,this._cacheIndex=-2),!0}return!1},te.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=y,this._cacheIndex=-2},te.prototype.keys=function(){return new S(this._keys,this._values,I)},te.prototype.values=function(){return new S(this._keys,this._values,rt)},te.prototype.entries=function(){return new S(this._keys,this._values,Ye)},te.prototype["@@iterator"]=function(){return this.entries()},te.prototype[d]=function(){return this.entries()},te.prototype._find=function(R,w){if(!ls(this._cacheKey,R)){this._cacheIndex=-1;for(var N=0;N<this._keys.length;N++)if(ls(this._keys[N],R)){this._cacheIndex=N;break}}return this._cacheIndex<0&&w&&(this._cacheIndex=this._keys.length,this._keys.push(R),this._values.push(void 0)),this._cacheIndex},te})();return O;function I(te,R){return te}function rt(te,R){return R}function Ye(te,R){return[te,R]}}function Qg(){var y=(function(){function m(){this._map=new Z}return Object.defineProperty(m.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),m.prototype.has=function(S){return this._map.has(S)},m.prototype.add=function(S){return this._map.set(S,S),this},m.prototype.delete=function(S){return this._map.delete(S)},m.prototype.clear=function(){this._map.clear()},m.prototype.keys=function(){return this._map.keys()},m.prototype.values=function(){return this._map.keys()},m.prototype.entries=function(){return this._map.entries()},m.prototype["@@iterator"]=function(){return this.keys()},m.prototype[d]=function(){return this.keys()},m})();return y}function Zg(){var y=16,m=v.create(),S=O();return(function(){function R(){this._key=O()}return R.prototype.has=function(w){var N=I(w,!1);return N!==void 0?v.has(N,this._key):!1},R.prototype.get=function(w){var N=I(w,!1);return N!==void 0?v.get(N,this._key):void 0},R.prototype.set=function(w,N){var T=I(w,!0);return T[this._key]=N,this},R.prototype.delete=function(w){var N=I(w,!1);return N!==void 0?delete N[this._key]:!1},R.prototype.clear=function(){this._key=O()},R})();function O(){var R;do R="@@WeakMap@@"+te();while(v.has(m,R));return m[R]=!0,R}function I(R,w){if(!o.call(R,S)){if(!w)return;Object.defineProperty(R,S,{value:v.create()})}return R[S]}function rt(R,w){for(var N=0;N<w;++N)R[N]=Math.random()*255|0;return R}function Ye(R){if(typeof Uint8Array=="function"){var w=new Uint8Array(R);return typeof crypto<"u"?crypto.getRandomValues(w):typeof msCrypto<"u"?msCrypto.getRandomValues(w):rt(w,R),w}return rt(new Array(R),R)}function te(){var R=Ye(y);R[6]=R[6]&79|64,R[8]=R[8]&191|128;for(var w="",N=0;N<y;++N){var T=R[N];(N===4||N===6||N===8)&&(w+="-"),T<16&&(w+="0"),w+=T.toString(16).toLowerCase()}return w}}function gs(y){return y.__=void 0,delete y.__,y}})})(r||(r={})),bs}_l();class no{topic;code;version;proto;codec;flags;timeout;meshable;traits;constructor(e,t,n,o,i,c,d,g){this.topic=e,this.code=t,this.version=n,this.proto=o,this.codec=i,this.flags=c,this.timeout=d,this.meshable=g}decorate(e){this.traits=Object.getPrototypeOf(e.prototype).constructor,Oe.annotate(no,e,e,this),Oe.register(no,`${this.topic}.${this.code}`,e,this)}}function vl(r="",e="",t="1.0.0",n="http2",o="protobuf",i=0,c=3e3,d=!0){const g=new no(r,e,t,n,o,i,c,d);return g.decorate.bind(g)}class sr{value;name;transparent;kind;clas;index=1e3;constructor(e,t,n,o){this.value=e,this.name=t,this.transparent=n,this.kind=o,this.clas=Object}decorate(e,t,n){this.kind==Object?this.kind=Reflect.getMetadata("design:type",e,t):this.kind=Array.isArray(this.kind)?new ir(this.kind):this.kind;const o=Reflect.getMetadata("design:paramtypes",e,t);o&&Array.isArray(o)&&n!=null&&o.length>n&&(this.clas=o[n]),this.kind&&(this.clas==Array||this.clas==Map)&&(this.clas=this.kind),this.index=n||1e3,n!=null?Oe.annotate(sr,`${t}:${n}`,e.constructor,this):Oe.annotate(sr,t,e.constructor,this)}}function s(r=-1,e="",t=Object,n=!1){const o=new sr(r,e,n,t);return o.decorate.bind(o)}class un{name;pattern;priority;prototype;constructor(e,t,n,o){this.name=e,this.pattern=t,this.priority=n,this.prototype=o}decorate(e){Oe.annotate(un,e,e,this),Oe.register(un,this.name,e,this)}}function $(r="",e="",t=0,n=!1){const o=new un(r,e,t,n);return o.decorate.bind(o)}class De{name;version;proto;codec;flags;timeout;retries;mdc;zone;cluster;cell;group;address;kind=void 0;retype=void 0;attributes=new Map;constructor(e,t,n,o,i,c,d,g,h,b,v,E,Z,_){this.name=e,this.version=t,this.proto=n,this.codec=o,this.flags=i,this.timeout=c,this.retries=d,this.mdc=g,this.zone=h,this.cluster=b,this.cell=v,this.group=E,this.address=Z,this.retype=_}decorate(e,t,n){if(typeof t=="string"&&this.attributes.set("name",t),!n){this.kind=Reflect.getMetadata("design:type",e,t),Oe.annotate(De,t,e,this);return}return this.kind=Reflect.getMetadata("design:returntype",e,t),Oe.annotate(De,n.value,e.constructor,this),n}}function f(r="",e=Object,t=1e4,n="1.0.0",o="grpc",i="json",c=0,d=3,g="",h="",b="",v="",E="",Z=""){const _=new De(r,n,o,i,c,t,d,g,h,b,v,E,Z,e);return _.decorate.bind(_)}var Ol=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};const Rl=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,Pl=/([^\s,]+)/g;a.MethodProxy=class{},a.MethodProxy=Ol([$("mesh")],a.MethodProxy);class _s{index;name;kind;constructor(e,t,n){this.index=e,this.name=t,this.kind=n}}class vs{kind;name;method;constructor(e,t,n){this.kind=e,this.name=t,this.method=n}getAnnotation(e){return Oe.metadata(e,this.kind,this.method)}getName(){return Oe.metadata(De,this.kind,this.method)?.attributes?.get("name")||this.name}getParameters(){const e=this.method.toString().replace(Rl,""),t=e.slice(e.indexOf("(")+1,e.indexOf(")")).match(Pl)||[],n=[];for(let o=0;o<t.length;o++){const i=Oe.metadata(sr,this.kind,`${this.getName()}:${o}`);n.push(new _s(o,i?.name||t[o],i?.clas||Object))}return n}getType(){return this.kind}getReturnType(){return new ir(Oe.metadata(De,this.kind,this.method)?.retype)}getExecutable(){return this.method}getSymbol(){return this.name}invoke(e,t){return this.method(...t)}}class jl{inspector;h;proxy;constructor(e,t,n){this.inspector=e,this.h=t,this.proxy=n}apply(e,t,n){return this.h.invoke(this.proxy,this.inspector,n)}}class wl{inspectors=new ee;executables=new ee;constructor(e,t,n){for(let o of t)this.executables.set(o.getSymbol(),new Proxy(o.getExecutable(),new jl(o,n,this))),this.inspectors.set(o.getSymbol(),o)}getMethods(){return this.inspectors.map((e,t)=>t)}get(e,t,n){return this.executables.get(t)}}class $o{static proxies=new ee;static inspectors=new ee;static newProxyInstance(e,t){return this.proxies.get(e)||this.proxies.set(e,new ee),this.proxies.get(e)?.get(t)||this.proxies.get(e)?.set(t,new Proxy(e,new wl(e,this.getMethods(e),t))),this.proxies.get(e)?.get(t)}static getMethods(e){return this.inspectors.computeIfy(e,t=>Oe.inspect(t).map((n,o)=>new vs(t,n,o)))}}class Co{static value=new ee;name;kind;prototype;priority;constructor(e,t){this.name=e,this.kind=t,this.prototype=!1,this.priority=1}getIfAbsent(){return this.prototype?this.create():Co.value.computeIfy(this.kind,e=>this.create())}create(){return new this.kind}}let Nl=class{name="";providers=[];constructor(e,t){this.name=e,this.providers=t.map(n=>new Co(e,n)).sort((n,o)=>n.priority-o.priority)}getIfAbsent(){if(this.providers.length<1)throw new Error(`No such provider named ${this.name}`);return this.providers[0].getIfAbsent()}};class ze{static loaders=new ee;static load(e){return this.loaders.computeIfy(e,t=>new ze(e))}providers=new ee;spi;fist="";constructor(e){this.spi=e,this.fist=Oe.metadata(un,e,e)?.name||""}defaultName(){return this.fist}getDefault(){return this.get(this.fist)}get(e){const t=this.getInstances().get(e);if(!t)throw new Error(`SPI ${this.spi.name} named ${e} not exist.`);return t.getIfAbsent()}want(e){const t=this.getInstances().get(e);return t?t.getIfAbsent():null}list(){return this.getInstances().map((e,t)=>t.getIfAbsent())}getInstances(){return this.providers.computeIfy("$",e=>Oe.providers(un,this.spi).groupBy(t=>{const n=Oe.metadata(un,t,t);return n&&n.name||""}).groupKV(t=>t,(t,n)=>new Nl(t,n)))}}class _i{name;version;proto;codec;flags;timeout;traits;constructor(e,t,n,o,i,c){this.name=e,this.version=t,this.proto=n,this.codec=o,this.flags=i,this.timeout=c}decorate(e){this.traits=Object.getPrototypeOf(e.prototype).constructor,Oe.annotate(_i,e,e,this),Oe.register(_i,this.name,e,this)}}function Tl(r="",e="",t="grpc",n="json",o=0,i=1e4){const c=new _i(r,e,t,n,o,i);return c.decorate.bind(c)}function Os(r){return"getCode"in r&&"getMessage"in r}class J extends Error{constructor(e,t){super(t),this.code=e,this.message=t}code;message;getCode(){return this.code}getMessage(){return this.message}}class u{static SUCCESS=new J("E0000000000","请求成功");static NOT_FOUND=new J("E0000000404","请求资源不存在");static SYSTEM_ERROR=new J("E0000000500","系统异常");static SERVICE_UNAVAILABLE=new J("E0000000503","循环请求服务不可达");static VALIDATE=new J("E0000000400","请求非法");static UNAUTHORIZED=new J("E0000000403","请求资源未被授权");static UNKNOWN=new J("E0000000520","未知异常");static COMPATIBLE=new J("E0000000600","系统不兼容");static TIMEOUT=new J("E0000000601","请求超时");static NO_PROVIDER=new J("E0000000602","无服务实例");static CRYPT_ERROR=new J("E0000000603","数字证书校验异常");static TOKEN_EXPIRE=new J("E0000000604","节点授权码已过期");static NET_EXPIRE=new J("E0000000605","节点组网时间已过期");static NET_DISABLE=new J("E0000000606","对方节点已禁用网络");static NET_UNAVAILABLE=new J("E0000000607","网络不通");static LICENSE_FORMAT_ERROR=new J("E0000000608","License非法");static LICENSE_EXPIRED=new J("E0000000609","License已过期");static MAX_REPLICAS_LIMIT=new J("E0000000610","集群副本已达许可上限");static MAX_COOP_LIMIT=new J("E0000000611","合作方链接数已达许可上限");static MAX_TENANT_LIMIT=new J("E0000000612","租户数已达许可上限");static MAX_USER_LIMIT=new J("E0000000613","用户数已达许可上限");static URN_NOT_PERMIT=new J("E0000000614","接口未被许可调用");static SIGNATURE_ERROR=new J("E0000000615","证书签名非法");static CRYPT_CODEC_ERROR=new J("E0000000616","报文编解码异常");static NO_SERVICE=new J("E0000000617","下游版本不匹配服务不存在");static NET_NOT_WEAVE=new J("E0000000618","节点或机构未组网");static ADDRESS_ERROR=new J("E0000000619","地址非法或无法访问");static UNEXPECTED_SYNTAX=new J("E0000000620","规则语法错误");static UNKNOWN_SCRIPT=new J("E0000000621","规则不存在");static DATA_ID_ERROR=new J("E0000000622","数据身份不存在或非法");static START_PENDING=new J("E0000000623","系统启动中");static UNEXPECTED_SQL_SYNTAX=new J("E0000000624","SQL语法错误");static NO_DATABASE=new J("E0000000625","数据库不存在");static NO_TRANSACTION=new J("E0000000626","事务不存在");static SQL_EXECUTE_ERROR=new J("E0000000627","SQL执行异常");static DUPLICATE_KEY=new J("E0000000628","唯一键冲突")}class cr{static inspect(e){return e instanceof J?e:(console.log(e),u.SYSTEM_ERROR)}static errorf(e){return e instanceof J?e:(console.log(e),u.SYSTEM_ERROR)}}var El=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};class xn{static Routine=new xn(1);static Perform=new xn(2);static Defense=new xn(4);static Debug=new xn(8);static LoadTest=new xn(16);static Mock=new xn(32);v;constructor(e){this.v=e}matches(e){return(this.v&e)==this.v}}class ar{name;constructor(e){this.name=e}}class Rs extends Array{peek(){if(!(this.length<1))return this.at(this.length-1)}}class ro{}class Ke{static MESH_TRACE_ID=new Ke("mesh-trace-id");static MESH_SPAN_ID=new Ke("mesh-span-id");static MESH_TIMESTAMP=new Ke("mesh-timestamp");static MESH_RUN_MODE=new Ke("mesh-mode");static MESH_CONSUMER=new Ke("mesh-consumer");static MESH_PROVIDER=new Ke("mesh-provider");static MESH_URN=new Ke("mesh-urn");static MESH_FROM_INST_ID=new Ke("mesh-from-inst-id");static MESH_FROM_NODE_ID=new Ke("mesh-from-node-id");static MESH_INCOMING_HOST=new Ke("mesh-incoming-host");static MESH_OUTGOING_HOST=new Ke("mesh-outgoing-host");static MESH_INCOMING_PROXY=new Ke("mesh-incoming-proxy");static MESH_OUTGOING_PROXY=new Ke("mesh-outgoing-proxy");static MESH_SUBSET=new Ke("mesh-subset");static MESH_SESSION_ID=new Ke("mesh-session-id");static MESH_VERSION=new Ke("mesh-version");static MESH_TIMEOUT=new Ke("mesh-timeout");key;constructor(e){this.key=e}get(e){const t=e.getAttachments()?.get(this.key);if(t)return t;const n=e.getAttachments()?.get(this.key.replace("-","_"));if(n)return n;for(let o of e.getAttachments()?.entries())if(o[1]&&o[0]&&(o[0].toLowerCase()==this.key||o[0].replace("_","-").toLowerCase()==this.key))return o[1];return""}set(e,t){e.getAttachments()?.set(this.key,t)}}a.ContextProvider=class{},a.ContextProvider=El([$("mesh")],a.ContextProvider);function p(){return ze.load(a.ContextProvider).getDefault().context()}var ye=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},le=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Ps,js,ws,Ns;class j{sid="";index=0;limit=0;factor={};order=""}ye([s(0,"sid",String),le("design:type",String)],j.prototype,"sid",void 0),ye([s(1,"index",Number),le("design:type",Number)],j.prototype,"index",void 0),ye([s(2,"limit",Number),le("design:type",Number)],j.prototype,"limit",void 0),ye([s(3,"factor",[Map,String,Object]),le("design:type",typeof(Ps=typeof Record<"u"&&Record)=="function"?Ps:Object)],j.prototype,"factor",void 0),ye([s(4,"order",String),le("design:type",String)],j.prototype,"order",void 0);class fe{sid="";index=0;limit=0;total=0;next=!1;data=[]}ye([s(0,"sid",String),le("design:type",String)],fe.prototype,"sid",void 0),ye([s(1,"index",Number),le("design:type",Number)],fe.prototype,"index",void 0),ye([s(2,"limit",Number),le("design:type",Number)],fe.prototype,"limit",void 0),ye([s(3,"total",Number),le("design:type",Number)],fe.prototype,"total",void 0),ye([s(4,"next",Boolean),le("design:type",Boolean)],fe.prototype,"next",void 0),ye([s(5,"data",[Array,Object]),le("design:type",Array)],fe.prototype,"data",void 0);class vi{nodeId="";nodeName="";instId="";instName=""}ye([s(0,"node_id",String),le("design:type",String)],vi.prototype,"nodeId",void 0),ye([s(1,"node_name",String),le("design:type",String)],vi.prototype,"nodeName",void 0),ye([s(2,"inst_id",String),le("design:type",String)],vi.prototype,"instId",void 0),ye([s(3,"inst_name",String),le("design:type",String)],vi.prototype,"instName",void 0);class Ar{status=0;createAt=void 0;updateAt=void 0;createBy="";updateBy=""}ye([s(0,"status",Number),le("design:type",Number)],Ar.prototype,"status",void 0),ye([s(1,"create_at",Date),le("design:type",typeof(js=typeof Date<"u"&&Date)=="function"?js:Object)],Ar.prototype,"createAt",void 0),ye([s(2,"update_at",Date),le("design:type",typeof(ws=typeof Date<"u"&&Date)=="function"?ws:Object)],Ar.prototype,"updateAt",void 0),ye([s(3,"create_by",String),le("design:type",String)],Ar.prototype,"createBy",void 0),ye([s(4,"update_by",String),le("design:type",String)],Ar.prototype,"updateBy",void 0);class Ut{name="";pos="";text="";buff=new Uint8Array}ye([s(0,"name",String),le("design:type",String)],Ut.prototype,"name",void 0),ye([s(1,"pos",String),le("design:type",String)],Ut.prototype,"pos",void 0),ye([s(2,"text",String),le("design:type",String)],Ut.prototype,"text",void 0),ye([s(3,"buff",Uint8Array),le("design:type",typeof(Ns=typeof Uint8Array<"u"&&Uint8Array)=="function"?Ns:Object)],Ut.prototype,"buff",void 0);class Ce{topic="";code="";group="";sets=""}ye([s(0,"topic",String),le("design:type",String)],Ce.prototype,"topic",void 0),ye([s(1,"code",String),le("design:type",String)],Ce.prototype,"code",void 0),ye([s(2,"group",String),le("design:type",String)],Ce.prototype,"group",void 0),ye([s(3,"sets",String),le("design:type",String)],Ce.prototype,"sets",void 0);var ge=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},he=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Ts,Es,As,Ms,$s;class Oi{suite="";project="";name="";version=""}ge([s(0,"suite",String),he("design:type",String)],Oi.prototype,"suite",void 0),ge([s(1,"project",String),he("design:type",String)],Oi.prototype,"project",void 0),ge([s(2,"name",String),he("design:type",String)],Oi.prototype,"name",void 0),ge([s(3,"version",String),he("design:type",String)],Oi.prototype,"version",void 0);class mt{name="";proto="";algo="";parties=[];message=""}ge([s(0,"name",String),he("design:type",String)],mt.prototype,"name",void 0),ge([s(1,"proto",String),he("design:type",String)],mt.prototype,"proto",void 0),ge([s(2,"algo",String),he("design:type",String)],mt.prototype,"algo",void 0),ge([s(3,"parties",[Array,String]),he("design:type",Array)],mt.prototype,"parties",void 0),ge([s(4,"message",String),he("design:type",String)],mt.prototype,"message",void 0);class Mr{suite="";csr=new Uint8Array}ge([s(0,"suite",String),he("design:type",String)],Mr.prototype,"suite",void 0),ge([s(1,"csr",Uint8Array),he("design:type",typeof(Ts=typeof Uint8Array<"u"&&Uint8Array)=="function"?Ts:Object)],Mr.prototype,"csr",void 0);class dr{hello=new mt;suite=new Mr;local=""}ge([s(0,"hello",mt),he("design:type",mt)],dr.prototype,"hello",void 0),ge([s(1,"suite",Mr),he("design:type",Mr)],dr.prototype,"suite",void 0),ge([s(2,"local",String),he("design:type",String)],dr.prototype,"local",void 0);class Ri extends dr{keys={}}ge([s(0,"keys",[Map,String,Uint8Array]),he("design:type",typeof(Es=typeof Record<"u"&&Record)=="function"?Es:Object)],Ri.prototype,"keys",void 0);class io{keys={}}ge([s(0,"keys",[Map,String,Uint8Array]),he("design:type",typeof(As=typeof Record<"u"&&Record)=="function"?As:Object)],io.prototype,"keys",void 0);class vn{suite="";body=new Uint8Array}ge([s(0,"suite",String),he("design:type",String)],vn.prototype,"suite",void 0),ge([s(1,"body",Uint8Array),he("design:type",typeof(Ms=typeof Uint8Array<"u"&&Uint8Array)=="function"?Ms:Object)],vn.prototype,"body",void 0);class Pi extends vn{reKey=new Uint8Array}ge([s(0,"re_key",Uint8Array),he("design:type",typeof($s=typeof Uint8Array<"u"&&Uint8Array)=="function"?$s:Object)],Pi.prototype,"reKey",void 0);class st{code="";name="";memo="";uri="";level="";nodeId="";instId="";raw=""}ge([s(0,"code",String),he("design:type",String)],st.prototype,"code",void 0),ge([s(1,"name",String),he("design:type",String)],st.prototype,"name",void 0),ge([s(2,"memo",String),he("design:type",String)],st.prototype,"memo",void 0),ge([s(3,"uri",String),he("design:type",String)],st.prototype,"uri",void 0),ge([s(4,"level",String),he("design:type",String)],st.prototype,"level",void 0),ge([s(5,"node_id",String),he("design:type",String)],st.prototype,"nodeId",void 0),ge([s(6,"inst_id",String),he("design:type",String)],st.prototype,"instId",void 0),ge([s(7,"raw",String),he("design:type",String)],st.prototype,"raw",void 0);var k=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},F=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Cs,Us,Is;class It{id="";name="";modal="";proto="";url="";memo="";status=0}k([s(0,"id",String),F("design:type",String)],It.prototype,"id",void 0),k([s(1,"name",String),F("design:type",String)],It.prototype,"name",void 0),k([s(2,"modal",String),F("design:type",String)],It.prototype,"modal",void 0),k([s(3,"proto",String),F("design:type",String)],It.prototype,"proto",void 0),k([s(4,"url",String),F("design:type",String)],It.prototype,"url",void 0),k([s(5,"memo",String),F("design:type",String)],It.prototype,"memo",void 0),k([s(6,"status",Number),F("design:type",Number)],It.prototype,"status",void 0);class zr extends It{role="";rw=0;ww=0;failover=!1}k([s(0,"role",String),F("design:type",String)],zr.prototype,"role",void 0),k([s(1,"rw",Number),F("design:type",Number)],zr.prototype,"rw",void 0),k([s(2,"ww",Number),F("design:type",Number)],zr.prototype,"ww",void 0),k([s(3,"failover",Boolean),F("design:type",Boolean)],zr.prototype,"failover",void 0);class Qe{id="";name="";modal="";keepalive=0;retries=0;rwmode=0;failover=!1;instances=[];status=0;url="";proto="";gfs=""}k([s(0,"id",String),F("design:type",String)],Qe.prototype,"id",void 0),k([s(1,"name",String),F("design:type",String)],Qe.prototype,"name",void 0),k([s(2,"modal",String),F("design:type",String)],Qe.prototype,"modal",void 0),k([s(3,"keepalive",Number),F("design:type",Number)],Qe.prototype,"keepalive",void 0),k([s(4,"retries",Number),F("design:type",Number)],Qe.prototype,"retries",void 0),k([s(5,"rw_mode",Number),F("design:type",Number)],Qe.prototype,"rwmode",void 0),k([s(6,"failover",Boolean),F("design:type",Boolean)],Qe.prototype,"failover",void 0),k([s(7,"instances",[Array,zr]),F("design:type",Array)],Qe.prototype,"instances",void 0),k([s(8,"status",Number),F("design:type",Number)],Qe.prototype,"status",void 0),k([s(9,"url",String),F("design:type",String)],Qe.prototype,"url",void 0),k([s(10,"proto",String),F("design:type",String)],Qe.prototype,"proto",void 0),k([s(11,"gfs",String),F("design:type",String)],Qe.prototype,"gfs",void 0);class $r{id="";expr="";db=""}k([s(0,"id",String),F("design:type",String)],$r.prototype,"id",void 0),k([s(1,"expr",String),F("design:type",String)],$r.prototype,"expr",void 0),k([s(2,"db",String),F("design:type",String)],$r.prototype,"db",void 0);class ke{id="";name="";kind="";modal="";sid="";did="";sname="";dname="";abc="";dag="";raw="";status=0;createAt=void 0;updateAt=void 0;createBy="";updateBy=""}k([s(0,"id",String),F("design:type",String)],ke.prototype,"id",void 0),k([s(1,"name",String),F("design:type",String)],ke.prototype,"name",void 0),k([s(2,"kind",String),F("design:type",String)],ke.prototype,"kind",void 0),k([s(3,"modal",String),F("design:type",String)],ke.prototype,"modal",void 0),k([s(4,"sid",String),F("design:type",String)],ke.prototype,"sid",void 0),k([s(5,"did",String),F("design:type",String)],ke.prototype,"did",void 0),k([s(6,"s_name",String),F("design:type",String)],ke.prototype,"sname",void 0),k([s(7,"d_name",String),F("design:type",String)],ke.prototype,"dname",void 0),k([s(8,"abc",String),F("design:type",String)],ke.prototype,"abc",void 0),k([s(9,"dag",String),F("design:type",String)],ke.prototype,"dag",void 0),k([s(10,"raw",String),F("design:type",String)],ke.prototype,"raw",void 0),k([s(11,"status",Number),F("design:type",Number)],ke.prototype,"status",void 0),k([s(12,"create_at",Date),F("design:type",typeof(Cs=typeof Date<"u"&&Date)=="function"?Cs:Object)],ke.prototype,"createAt",void 0),k([s(13,"update_at",Date),F("design:type",typeof(Us=typeof Date<"u"&&Date)=="function"?Us:Object)],ke.prototype,"updateAt",void 0),k([s(14,"create_by",String),F("design:type",String)],ke.prototype,"createBy",void 0),k([s(15,"update_by",String),F("design:type",String)],ke.prototype,"updateBy",void 0);class Bn{id="";name="";modal="";path="";size=0;lines=0;createAt=void 0}k([s(0,"id",String),F("design:type",String)],Bn.prototype,"id",void 0),k([s(1,"name",String),F("design:type",String)],Bn.prototype,"name",void 0),k([s(2,"modal",String),F("design:type",String)],Bn.prototype,"modal",void 0),k([s(3,"path",String),F("design:type",String)],Bn.prototype,"path",void 0),k([s(4,"size",Number),F("design:type",Number)],Bn.prototype,"size",void 0),k([s(5,"lines",Number),F("design:type",Number)],Bn.prototype,"lines",void 0),k([s(6,"create_at",Date),F("design:type",typeof(Is=typeof Date<"u"&&Date)=="function"?Is:Object)],Bn.prototype,"createAt",void 0);var Ue=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Ie=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Ds,ks,Fs;class On{name="";icon="";version="";memo="";raw={}}Ue([s(0,"name",String),Ie("design:type",String)],On.prototype,"name",void 0),Ue([s(1,"icon",String),Ie("design:type",String)],On.prototype,"icon",void 0),Ue([s(2,"version",String),Ie("design:type",String)],On.prototype,"version",void 0),Ue([s(3,"memo",String),Ie("design:type",String)],On.prototype,"memo",void 0),Ue([s(4,"raw",[Map,String,String]),Ie("design:type",typeof(Ds=typeof Record<"u"&&Record)=="function"?Ds:Object)],On.prototype,"raw",void 0);class We{code="";name="";scene="";mode="";plan="";appset="";memo="";srcUri="";dstUri="";raw="";last="";size=0;status=0;createAt=void 0;updateAt=void 0;createBy="";updateBy=""}Ue([s(0,"code",String),Ie("design:type",String)],We.prototype,"code",void 0),Ue([s(1,"name",String),Ie("design:type",String)],We.prototype,"name",void 0),Ue([s(2,"scene",String),Ie("design:type",String)],We.prototype,"scene",void 0),Ue([s(3,"mode",String),Ie("design:type",String)],We.prototype,"mode",void 0),Ue([s(4,"plan",String),Ie("design:type",String)],We.prototype,"plan",void 0),Ue([s(5,"appset",String),Ie("design:type",String)],We.prototype,"appset",void 0),Ue([s(6,"memo",String),Ie("design:type",String)],We.prototype,"memo",void 0),Ue([s(7,"src_uri",String),Ie("design:type",String)],We.prototype,"srcUri",void 0),Ue([s(8,"dst_uri",String),Ie("design:type",String)],We.prototype,"dstUri",void 0),Ue([s(9,"raw",String),Ie("design:type",String)],We.prototype,"raw",void 0),Ue([s(10,"last",String),Ie("design:type",String)],We.prototype,"last",void 0),Ue([s(11,"size",Number),Ie("design:type",Number)],We.prototype,"size",void 0),Ue([s(12,"status",Number),Ie("design:type",Number)],We.prototype,"status",void 0),Ue([s(13,"create_at",Date),Ie("design:type",typeof(ks=typeof Date<"u"&&Date)=="function"?ks:Object)],We.prototype,"createAt",void 0),Ue([s(14,"update_at",Date),Ie("design:type",typeof(Fs=typeof Date<"u"&&Date)=="function"?Fs:Object)],We.prototype,"updateAt",void 0),Ue([s(15,"create_by",String),Ie("design:type",String)],We.prototype,"createBy",void 0),Ue([s(16,"update_by",String),Ie("design:type",String)],We.prototype,"updateBy",void 0);var Rn=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Pn=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},xs,Bs;class ur{metadata={};content="";timestamp=0}Rn([s(0,"metadata",[Map,String,String]),Pn("design:type",typeof(xs=typeof Record<"u"&&Record)=="function"?xs:Object)],ur.prototype,"metadata",void 0),Rn([s(1,"content",String),Pn("design:type",String)],ur.prototype,"content",void 0),Rn([s(2,"timestamp",Number),Pn("design:type",Number)],ur.prototype,"timestamp",void 0);class pr{queries={};start=0;end=0;limit=0;step="";direction="";routeKey=""}Rn([s(0,"queries",[Map,String,String]),Pn("design:type",typeof(Bs=typeof Record<"u"&&Record)=="function"?Bs:Object)],pr.prototype,"queries",void 0),Rn([s(1,"start",Number),Pn("design:type",Number)],pr.prototype,"start",void 0),Rn([s(2,"end",Number),Pn("design:type",Number)],pr.prototype,"end",void 0),Rn([s(3,"limit",Number),Pn("design:type",Number)],pr.prototype,"limit",void 0),Rn([s(4,"step",String),Pn("design:type",String)],pr.prototype,"step",void 0),Rn([s(5,"direction",String),Pn("design:type",String)],pr.prototype,"direction",void 0),Rn([s(6,"route_key",String),Pn("design:type",String)],pr.prototype,"routeKey",void 0);var V=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},W=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Ls,Hs,qs,zs;class Te{codec="";schema="";buffer=new Uint8Array}V([s(0,"codec",String),W("design:type",String)],Te.prototype,"codec",void 0),V([s(1,"schema",String),W("design:type",String)],Te.prototype,"schema",void 0),V([s(2,"buffer",Uint8Array),W("design:type",typeof(Ls=typeof Uint8Array<"u"&&Uint8Array)=="function"?Ls:Object)],Te.prototype,"buffer",void 0);class gt{version="";entity=new Te;timestamp=0;duration=0;key=""}V([s(0,"version",String),W("design:type",String)],gt.prototype,"version",void 0),V([s(1,"entity",Te),W("design:type",Te)],gt.prototype,"entity",void 0),V([s(2,"timestamp",Number),W("design:type",Number)],gt.prototype,"timestamp",void 0),V([s(3,"duration",Number),W("design:type",Number)],gt.prototype,"duration",void 0),V([s(4,"key",String),W("design:type",String)],gt.prototype,"key",void 0);class ji{key="";value=new Te;updateAt=void 0}V([s(0,"key",String),W("design:type",String)],ji.prototype,"key",void 0),V([s(1,"value",Te),W("design:type",Te)],ji.prototype,"value",void 0),V([s(2,"update_at",Date),W("design:type",typeof(Hs=typeof Date<"u"&&Date)=="function"?Hs:Object)],ji.prototype,"updateAt",void 0);class Kr{mno="";kind="";mime=new Uint8Array;text=""}V([s(0,"mno",String),W("design:type",String)],Kr.prototype,"mno",void 0),V([s(1,"kind",String),W("design:type",String)],Kr.prototype,"kind",void 0),V([s(2,"mime",Uint8Array),W("design:type",typeof(qs=typeof Uint8Array<"u"&&Uint8Array)=="function"?qs:Object)],Kr.prototype,"mime",void 0),V([s(3,"text",String),W("design:type",String)],Kr.prototype,"text",void 0);class Yt{role="";party="";kind="";think="";data="";format="";batch=""}V([s(0,"role",String),W("design:type",String)],Yt.prototype,"role",void 0),V([s(1,"party",String),W("design:type",String)],Yt.prototype,"party",void 0),V([s(2,"kind",String),W("design:type",String)],Yt.prototype,"kind",void 0),V([s(3,"think",String),W("design:type",String)],Yt.prototype,"think",void 0),V([s(4,"data",String),W("design:type",String)],Yt.prototype,"data",void 0),V([s(5,"format",String),W("design:type",String)],Yt.prototype,"format",void 0),V([s(6,"batch",String),W("design:type",String)],Yt.prototype,"batch",void 0);class Dt{searchType="";deepThink=!1;deepResearch=!1;model="";scene="";operateType="";language="";knowledgeID="";proxy="";attaches={}}V([s(0,"search_type",String),W("design:type",String)],Dt.prototype,"searchType",void 0),V([s(1,"deep_think",Boolean),W("design:type",Boolean)],Dt.prototype,"deepThink",void 0),V([s(2,"deep_research",Boolean),W("design:type",Boolean)],Dt.prototype,"deepResearch",void 0),V([s(3,"model",String),W("design:type",String)],Dt.prototype,"model",void 0),V([s(4,"scene",String),W("design:type",String)],Dt.prototype,"scene",void 0),V([s(5,"operate_type",String),W("design:type",String)],Dt.prototype,"operateType",void 0),V([s(6,"language",String),W("design:type",String)],Dt.prototype,"language",void 0),V([s(7,"knowledge_id",String),W("design:type",String)],Dt.prototype,"knowledgeID",void 0),V([s(8,"proxy",String),W("design:type",String)],Dt.prototype,"proxy",void 0),V([s(9,"attaches",[Map,String,String]),W("design:type",typeof(zs=typeof Record<"u"&&Record)=="function"?zs:Object)],Dt.prototype,"attaches",void 0);class fr{method="";mode="";traceId="";token="";conversationId="";contents=[];options=new Dt}V([s(0,"method",String),W("design:type",String)],fr.prototype,"method",void 0),V([s(1,"mode",String),W("design:type",String)],fr.prototype,"mode",void 0),V([s(2,"trace_id",String),W("design:type",String)],fr.prototype,"traceId",void 0),V([s(3,"token",String),W("design:type",String)],fr.prototype,"token",void 0),V([s(4,"conversation_id",String),W("design:type",String)],fr.prototype,"conversationId",void 0),V([s(5,"contents",[Array,Yt]),W("design:type",Array)],fr.prototype,"contents",void 0),V([s(6,"options",Dt),W("design:type",Dt)],fr.prototype,"options",void 0);class wi{code="";message="";content=new Yt}V([s(0,"code",String),W("design:type",String)],wi.prototype,"code",void 0),V([s(1,"message",String),W("design:type",String)],wi.prototype,"message",void 0),V([s(2,"content",Yt),W("design:type",Yt)],wi.prototype,"content",void 0);class Al{}var ht=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},bt=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)};class Ln{zone="";cluster="";cell="";group="";address=""}ht([s(0,"zone",String),bt("design:type",String)],Ln.prototype,"zone",void 0),ht([s(1,"cluster",String),bt("design:type",String)],Ln.prototype,"cluster",void 0),ht([s(2,"cell",String),bt("design:type",String)],Ln.prototype,"cell",void 0),ht([s(3,"group",String),bt("design:type",String)],Ln.prototype,"group",void 0),ht([s(4,"address",String),bt("design:type",String)],Ln.prototype,"address",void 0);class Fe{mdc="";version="";name="";crt="";key="";rootCrt="";lattice=new Ln;nodeID="";instID="";instName=""}ht([s(0,"mdc",String),bt("design:type",String)],Fe.prototype,"mdc",void 0),ht([s(1,"version",String),bt("design:type",String)],Fe.prototype,"version",void 0),ht([s(2,"name",String),bt("design:type",String)],Fe.prototype,"name",void 0),ht([s(3,"crt",String),bt("design:type",String)],Fe.prototype,"crt",void 0),ht([s(4,"key",String),bt("design:type",String)],Fe.prototype,"key",void 0),ht([s(5,"root_crt",String),bt("design:type",String)],Fe.prototype,"rootCrt",void 0),ht([s(6,"lattice",Ln),bt("design:type",Ln)],Fe.prototype,"lattice",void 0),ht([s(7,"node_id",String),bt("design:type",String)],Fe.prototype,"nodeID",void 0),ht([s(8,"inst_id",String),bt("design:type",String)],Fe.prototype,"instID",void 0),ht([s(9,"inst_name",String),bt("design:type",String)],Fe.prototype,"instName",void 0);var yr=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},lr=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)};class St{id=""}yr([s(0,"idc",String),lr("design:type",String)],St.prototype,"id",void 0);class mr extends St{ip="";port="";host="";name=""}yr([s(0,"ip",String),lr("design:type",String)],mr.prototype,"ip",void 0),yr([s(1,"port",String),lr("design:type",String)],mr.prototype,"port",void 0),yr([s(2,"host",String),lr("design:type",String)],mr.prototype,"host",void 0),yr([s(3,"name",String),lr("design:type",String)],mr.prototype,"name",void 0);class oo{nodeId="";instId="";instName=""}yr([s(0,"node_id",String),lr("design:type",String)],oo.prototype,"nodeId",void 0),yr([s(1,"inst_id",String),lr("design:type",String)],oo.prototype,"instId",void 0),yr([s(2,"inst_name",String),lr("design:type",String)],oo.prototype,"instName",void 0);var ct=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},at=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Ks,Vs,Ws,Gs,Js,Xs;class dt{version="";tid="";sid="";eid="";mid="";timestamp="";source=new St;target=new St;binding=new Ce;entity=new Te}ct([s(0,"version",String),at("design:type",String)],dt.prototype,"version",void 0),ct([s(1,"tid",String),at("design:type",String)],dt.prototype,"tid",void 0),ct([s(2,"sid",String),at("design:type",String)],dt.prototype,"sid",void 0),ct([s(3,"eid",String),at("design:type",String)],dt.prototype,"eid",void 0),ct([s(4,"mid",String),at("design:type",String)],dt.prototype,"mid",void 0),ct([s(5,"timestamp",String),at("design:type",String)],dt.prototype,"timestamp",void 0),ct([s(6,"source",St),at("design:type",typeof(Ks=typeof St<"u"&&St)=="function"?Ks:Object)],dt.prototype,"source",void 0),ct([s(7,"target",St),at("design:type",typeof(Vs=typeof St<"u"&&St)=="function"?Vs:Object)],dt.prototype,"target",void 0),ct([s(8,"binding",Ce),at("design:type",typeof(Ws=typeof Ce<"u"&&Ce)=="function"?Ws:Object)],dt.prototype,"binding",void 0),ct([s(9,"entity",Te),at("design:type",typeof(Gs=typeof Te<"u"&&Te)=="function"?Gs:Object)],dt.prototype,"entity",void 0);class jn{taskId="";binding=new Ce;status=0;createAt=0;invokeAt=0;entity=new Te}ct([s(0,"task_id",String),at("design:type",String)],jn.prototype,"taskId",void 0),ct([s(1,"binding",Ce),at("design:type",typeof(Js=typeof Ce<"u"&&Ce)=="function"?Js:Object)],jn.prototype,"binding",void 0),ct([s(2,"status",Number),at("design:type",Number)],jn.prototype,"status",void 0),ct([s(3,"create_at",Number),at("design:type",Number)],jn.prototype,"createAt",void 0),ct([s(4,"invoke_at",Number),at("design:type",Number)],jn.prototype,"invokeAt",void 0),ct([s(5,"entity",Te),at("design:type",typeof(Xs=typeof Te<"u"&&Te)=="function"?Xs:Object)],jn.prototype,"entity",void 0);var Re=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Pe=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Ys,Qs;class ue{code="";name="";listen="";priority=0;kind="";mode="";proto="";filter="";matcher="";flags="";src="";dst="";host="";path="";method="";query="";header="";cookie="";memo="";raw="";status=0;createAt=void 0;updateAt=void 0;createBy="";updateBy=""}Re([s(0,"code",String),Pe("design:type",String)],ue.prototype,"code",void 0),Re([s(1,"name",String),Pe("design:type",String)],ue.prototype,"name",void 0),Re([s(2,"listen",String),Pe("design:type",String)],ue.prototype,"listen",void 0),Re([s(3,"priority",Number),Pe("design:type",Number)],ue.prototype,"priority",void 0),Re([s(4,"kind",String),Pe("design:type",String)],ue.prototype,"kind",void 0),Re([s(5,"mode",String),Pe("design:type",String)],ue.prototype,"mode",void 0),Re([s(6,"proto",String),Pe("design:type",String)],ue.prototype,"proto",void 0),Re([s(7,"filter",String),Pe("design:type",String)],ue.prototype,"filter",void 0),Re([s(8,"matcher",String),Pe("design:type",String)],ue.prototype,"matcher",void 0),Re([s(9,"flags",String),Pe("design:type",String)],ue.prototype,"flags",void 0),Re([s(10,"src",String),Pe("design:type",String)],ue.prototype,"src",void 0),Re([s(11,"dst",String),Pe("design:type",String)],ue.prototype,"dst",void 0),Re([s(12,"host",String),Pe("design:type",String)],ue.prototype,"host",void 0),Re([s(13,"path",String),Pe("design:type",String)],ue.prototype,"path",void 0),Re([s(14,"method",String),Pe("design:type",String)],ue.prototype,"method",void 0),Re([s(15,"query",String),Pe("design:type",String)],ue.prototype,"query",void 0),Re([s(16,"header",String),Pe("design:type",String)],ue.prototype,"header",void 0),Re([s(17,"cookie",String),Pe("design:type",String)],ue.prototype,"cookie",void 0),Re([s(18,"memo",String),Pe("design:type",String)],ue.prototype,"memo",void 0),Re([s(19,"raw",String),Pe("design:type",String)],ue.prototype,"raw",void 0),Re([s(20,"status",Number),Pe("design:type",Number)],ue.prototype,"status",void 0),Re([s(21,"create_at",Date),Pe("design:type",typeof(Ys=typeof Date<"u"&&Date)=="function"?Ys:Object)],ue.prototype,"createAt",void 0),Re([s(22,"update_at",Date),Pe("design:type",typeof(Qs=typeof Date<"u"&&Date)=="function"?Qs:Object)],ue.prototype,"updateAt",void 0),Re([s(23,"create_by",String),Pe("design:type",String)],ue.prototype,"createBy",void 0),Re([s(24,"update_by",String),Pe("design:type",String)],ue.prototype,"updateBy",void 0);var se=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},ce=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Zs,ec,tc,nc,rc,ic,oc;class Ge{algo="";domain="";subject="";length=0;activeAt=void 0;expireAt=void 0;mail="";isCA=!1;caAlgo="";caCert="";caKey="";ips=[];name="";usage=0}se([s(0,"algo",String),ce("design:type",String)],Ge.prototype,"algo",void 0),se([s(1,"domain",String),ce("design:type",String)],Ge.prototype,"domain",void 0),se([s(2,"subject",String),ce("design:type",String)],Ge.prototype,"subject",void 0),se([s(3,"length",Number),ce("design:type",Number)],Ge.prototype,"length",void 0),se([s(4,"active_at",Date),ce("design:type",typeof(Zs=typeof Date<"u"&&Date)=="function"?Zs:Object)],Ge.prototype,"activeAt",void 0),se([s(5,"expire_at",Date),ce("design:type",typeof(ec=typeof Date<"u"&&Date)=="function"?ec:Object)],Ge.prototype,"expireAt",void 0),se([s(6,"mail",String),ce("design:type",String)],Ge.prototype,"mail",void 0),se([s(7,"is_ca",Boolean),ce("design:type",Boolean)],Ge.prototype,"isCA",void 0),se([s(8,"ca_algo",String),ce("design:type",String)],Ge.prototype,"caAlgo",void 0),se([s(9,"ca_cert",String),ce("design:type",String)],Ge.prototype,"caCert",void 0),se([s(10,"ca_key",String),ce("design:type",String)],Ge.prototype,"caKey",void 0),se([s(11,"ips",[Array,String]),ce("design:type",Array)],Ge.prototype,"ips",void 0),se([s(12,"name",String),ce("design:type",String)],Ge.prototype,"name",void 0),se([s(13,"usage",Number),ce("design:type",Number)],Ge.prototype,"usage",void 0);class kt extends Ge{crt="";key="";crl="";id=""}se([s(0,"crt",String),ce("design:type",String)],kt.prototype,"crt",void 0),se([s(1,"key",String),ce("design:type",String)],kt.prototype,"key",void 0),se([s(2,"crl",String),ce("design:type",String)],kt.prototype,"crl",void 0),se([s(3,"id",String),ce("design:type",String)],kt.prototype,"id",void 0);class Vr{id="";reason=0}se([s(0,"id",String),ce("design:type",String)],Vr.prototype,"id",void 0),se([s(1,"reason",Number),ce("design:type",Number)],Vr.prototype,"reason",void 0);class Cr{id="";algo="";expireAt=void 0}se([s(0,"id",String),ce("design:type",String)],Cr.prototype,"id",void 0),se([s(1,"algo",String),ce("design:type",String)],Cr.prototype,"algo",void 0),se([s(2,"expire_at",Date),ce("design:type",typeof(tc=typeof Date<"u"&&Date)=="function"?tc:Object)],Cr.prototype,"expireAt",void 0);class Uo{crts={};roots={}}se([s(0,"crts",[Map,String,kt]),ce("design:type",typeof(nc=typeof Record<"u"&&Record)=="function"?nc:Object)],Uo.prototype,"crts",void 0),se([s(1,"roots",[Map,String,kt]),ce("design:type",typeof(rc=typeof Record<"u"&&Record)=="function"?rc:Object)],Uo.prototype,"roots",void 0);class wn{id="";algo="";length=0;name="";memo=""}se([s(0,"id",String),ce("design:type",String)],wn.prototype,"id",void 0),se([s(1,"algo",String),ce("design:type",String)],wn.prototype,"algo",void 0),se([s(2,"length",Number),ce("design:type",Number)],wn.prototype,"length",void 0),se([s(3,"name",String),ce("design:type",String)],wn.prototype,"name",void 0),se([s(4,"memo",String),ce("design:type",String)],wn.prototype,"memo",void 0);class gr extends wn{status=0;createAt=void 0;updateAt=void 0;createBy="";updateBy=""}se([s(0,"status",Number),ce("design:type",Number)],gr.prototype,"status",void 0),se([s(1,"create_at",Date),ce("design:type",typeof(ic=typeof Date<"u"&&Date)=="function"?ic:Object)],gr.prototype,"createAt",void 0),se([s(2,"update_at",Date),ce("design:type",typeof(oc=typeof Date<"u"&&Date)=="function"?oc:Object)],gr.prototype,"updateAt",void 0),se([s(3,"create_by",String),ce("design:type",String)],gr.prototype,"createBy",void 0),se([s(4,"update_by",String),ce("design:type",String)],gr.prototype,"updateBy",void 0);var Se=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},_e=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},sc,cc;class me{version="";level=0;name="";createBy="";createAt=0;activeAt=0;factor="";signature="";muid="";server="";crt="";group=[];replicas=0;maxCooperators=0;maxTenants=0;maxUsers=0;maxMills=0;whiteURN=[];blackURN=[];superURN=[]}Se([s(0,"version",String),_e("design:type",String)],me.prototype,"version",void 0),Se([s(1,"level",Number),_e("design:type",Number)],me.prototype,"level",void 0),Se([s(2,"name",String),_e("design:type",String)],me.prototype,"name",void 0),Se([s(3,"create_by",String),_e("design:type",String)],me.prototype,"createBy",void 0),Se([s(4,"create_at",Number),_e("design:type",Number)],me.prototype,"createAt",void 0),Se([s(5,"active_at",Number),_e("design:type",Number)],me.prototype,"activeAt",void 0),Se([s(6,"factor",String),_e("design:type",String)],me.prototype,"factor",void 0),Se([s(7,"signature",String),_e("design:type",String)],me.prototype,"signature",void 0),Se([s(8,"muid",String),_e("design:type",String)],me.prototype,"muid",void 0),Se([s(9,"server",String),_e("design:type",String)],me.prototype,"server",void 0),Se([s(10,"crt",String),_e("design:type",String)],me.prototype,"crt",void 0),Se([s(11,"group",[Array,String]),_e("design:type",Array)],me.prototype,"group",void 0),Se([s(12,"replicas",Number),_e("design:type",Number)],me.prototype,"replicas",void 0),Se([s(13,"max_cooperators",Number),_e("design:type",Number)],me.prototype,"maxCooperators",void 0),Se([s(14,"max_tenants",Number),_e("design:type",Number)],me.prototype,"maxTenants",void 0),Se([s(15,"max_users",Number),_e("design:type",Number)],me.prototype,"maxUsers",void 0),Se([s(16,"max_mills",Number),_e("design:type",Number)],me.prototype,"maxMills",void 0),Se([s(17,"white_urns",[Array,String]),_e("design:type",Array)],me.prototype,"whiteURN",void 0),Se([s(18,"black_urns",[Array,String]),_e("design:type",Array)],me.prototype,"blackURN",void 0),Se([s(19,"super_urns",[Array,String]),_e("design:type",Array)],me.prototype,"superURN",void 0);class Wr{cipher="";explain=new me;createAt=void 0}Se([s(0,"cipher",String),_e("design:type",String)],Wr.prototype,"cipher",void 0),Se([s(1,"explain",me),_e("design:type",me)],Wr.prototype,"explain",void 0),Se([s(2,"create_at",Date),_e("design:type",typeof(sc=typeof Date<"u"&&Date)=="function"?sc:Object)],Wr.prototype,"createAt",void 0);class Gr{cipher="";explain=new Fe;nodeKey=""}Se([s(0,"cipher",String),_e("design:type",String)],Gr.prototype,"cipher",void 0),Se([s(1,"explain",Fe),_e("design:type",typeof(cc=typeof Fe<"u"&&Fe)=="function"?cc:Object)],Gr.prototype,"explain",void 0),Se([s(2,"node_key",String),_e("design:type",String)],Gr.prototype,"nodeKey",void 0);var ne=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},re=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},ac,dc,uc;class Jr{mno="";kind="";mime=new Uint8Array;text=""}ne([s(0,"mno",String),re("design:type",String)],Jr.prototype,"mno",void 0),ne([s(1,"kind",String),re("design:type",String)],Jr.prototype,"kind",void 0),ne([s(2,"mime",Uint8Array),re("design:type",typeof(ac=typeof Uint8Array<"u"&&Uint8Array)=="function"?ac:Object)],Jr.prototype,"mime",void 0),ne([s(3,"text",String),re("design:type",String)],Jr.prototype,"text",void 0);class hr{clientId="";scope="";state="";flags=0}ne([s(0,"client_id",String),re("design:type",String)],hr.prototype,"clientId",void 0),ne([s(1,"scope",String),re("design:type",String)],hr.prototype,"scope",void 0),ne([s(2,"state",String),re("design:type",String)],hr.prototype,"state",void 0),ne([s(3,"flags",Number),re("design:type",Number)],hr.prototype,"flags",void 0);class Qt{clientId="";authType="";accessKey="";secretKey="";captcha=""}ne([s(0,"client_id",String),re("design:type",String)],Qt.prototype,"clientId",void 0),ne([s(1,"auth_type",String),re("design:type",String)],Qt.prototype,"authType",void 0),ne([s(2,"access_key",String),re("design:type",String)],Qt.prototype,"accessKey",void 0),ne([s(3,"secret_key",String),re("design:type",String)],Qt.prototype,"secretKey",void 0),ne([s(4,"captcha",String),re("design:type",String)],Qt.prototype,"captcha",void 0);class Hn{token="";kind="";expiresAt=void 0;scope="";refreshToken=""}ne([s(0,"token",String),re("design:type",String)],Hn.prototype,"token",void 0),ne([s(1,"type",String),re("design:type",String)],Hn.prototype,"kind",void 0),ne([s(2,"expires_at",Date),re("design:type",typeof(dc=typeof Date<"u"&&Date)=="function"?dc:Object)],Hn.prototype,"expiresAt",void 0),ne([s(3,"scope",String),re("design:type",String)],Hn.prototype,"scope",void 0),ne([s(4,"refresh_token",String),re("design:type",String)],Hn.prototype,"refreshToken",void 0);class Io{code=""}ne([s(0,"code",String),re("design:type",String)],Io.prototype,"code",void 0);class so{code="";redirectURI=""}ne([s(0,"code",String),re("design:type",String)],so.prototype,"code",void 0),ne([s(1,"redirect_uri",String),re("design:type",String)],so.prototype,"redirectURI",void 0);class co{clientId="";userId="";expiresAt=0}ne([s(0,"client_id",String),re("design:type",String)],co.prototype,"clientId",void 0),ne([s(1,"user_id",String),re("design:type",String)],co.prototype,"userId",void 0),ne([s(2,"expires_at",Number),re("design:type",Number)],co.prototype,"expiresAt",void 0);class _t{token="";userid="";username="";nickname="";avatar="";mobile="";mail="";deptId="";mdc="";instIds=[];attrs=[];raw={}}ne([s(0,"token",String),re("design:type",String)],_t.prototype,"token",void 0),ne([s(1,"userid",String),re("design:type",String)],_t.prototype,"userid",void 0),ne([s(2,"username",String),re("design:type",String)],_t.prototype,"username",void 0),ne([s(3,"nickname",String),re("design:type",String)],_t.prototype,"nickname",void 0),ne([s(4,"avatar",String),re("design:type",String)],_t.prototype,"avatar",void 0),ne([s(5,"mobile",String),re("design:type",String)],_t.prototype,"mobile",void 0),ne([s(6,"mail",String),re("design:type",String)],_t.prototype,"mail",void 0),ne([s(7,"dept_id",String),re("design:type",String)],_t.prototype,"deptId",void 0),ne([s(8,"mdc",String),re("design:type",String)],_t.prototype,"mdc",void 0),ne([s(9,"inst_ids",[Array,String]),re("design:type",Array)],_t.prototype,"instIds",void 0),ne([s(10,"attrs",[Array,String]),re("design:type",Array)],_t.prototype,"attrs",void 0),ne([s(11,"raw",[Map,String,String]),re("design:type",typeof(uc=typeof Record<"u"&&Record)=="function"?uc:Object)],_t.prototype,"raw",void 0);var Xr=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Yr=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},pc,fc;class Do{arguments=[];attachments={}}Xr([s(0,"arguments",[Array,Object]),Yr("design:type",Array)],Do.prototype,"arguments",void 0),Xr([s(1,"attachments",[Map,String,String]),Yr("design:type",typeof(pc=typeof Record<"u"&&Record)=="function"?pc:Object)],Do.prototype,"attachments",void 0);class Ni{code="";message="";cause=new Ut;content=void 0}Xr([s(0,"code",String),Yr("design:type",String)],Ni.prototype,"code",void 0),Xr([s(1,"message",String),Yr("design:type",String)],Ni.prototype,"message",void 0),Xr([s(2,"cause",Ut),Yr("design:type",typeof(fc=typeof Ut<"u"&&Ut)=="function"?fc:Object)],Ni.prototype,"cause",void 0),Xr([s(3,"content",Object),Yr("design:type",Object)],Ni.prototype,"content",void 0);var H=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},q=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},yc,lc,mc;class Zt{version="";proto="";codec="";mdc="";zone="";cluster="";cell="";group="";address=""}H([s(0,"version",String),q("design:type",String)],Zt.prototype,"version",void 0),H([s(1,"proto",String),q("design:type",String)],Zt.prototype,"proto",void 0),H([s(2,"codec",String),q("design:type",String)],Zt.prototype,"codec",void 0),H([s(3,"mdc",String),q("design:type",String)],Zt.prototype,"mdc",void 0),H([s(4,"zone",String),q("design:type",String)],Zt.prototype,"zone",void 0),H([s(5,"cluster",String),q("design:type",String)],Zt.prototype,"cluster",void 0),H([s(6,"cell",String),q("design:type",String)],Zt.prototype,"cell",void 0),H([s(7,"group",String),q("design:type",String)],Zt.prototype,"group",void 0),H([s(8,"address",String),q("design:type",String)],Zt.prototype,"address",void 0);class Nn extends Zt{urn="";namespace="";name="";flags=0;timeout=0;retries=0}H([s(0,"urn",String),q("design:type",String)],Nn.prototype,"urn",void 0),H([s(1,"namespace",String),q("design:type",String)],Nn.prototype,"namespace",void 0),H([s(2,"name",String),q("design:type",String)],Nn.prototype,"name",void 0),H([s(3,"flags",Number),q("design:type",Number)],Nn.prototype,"flags",void 0),H([s(4,"timeout",Number),q("design:type",Number)],Nn.prototype,"timeout",void 0),H([s(5,"retries",Number),q("design:type",Number)],Nn.prototype,"retries",void 0);class Ft extends Zt{urn="";namespace="";name="";flags=0;timeout=0;retries=0;sets="";kind="";lang="";attrs={}}H([s(0,"urn",String),q("design:type",String)],Ft.prototype,"urn",void 0),H([s(1,"namespace",String),q("design:type",String)],Ft.prototype,"namespace",void 0),H([s(2,"name",String),q("design:type",String)],Ft.prototype,"name",void 0),H([s(3,"flags",Number),q("design:type",Number)],Ft.prototype,"flags",void 0),H([s(4,"timeout",Number),q("design:type",Number)],Ft.prototype,"timeout",void 0),H([s(5,"retries",Number),q("design:type",Number)],Ft.prototype,"retries",void 0),H([s(6,"sets",String),q("design:type",String)],Ft.prototype,"sets",void 0),H([s(7,"kind",String),q("design:type",String)],Ft.prototype,"kind",void 0),H([s(8,"lang",String),q("design:type",String)],Ft.prototype,"lang",void 0),H([s(9,"attrs",[Map,String,String]),q("design:type",typeof(yc=typeof Record<"u"&&Record)=="function"?yc:Object)],Ft.prototype,"attrs",void 0);class ko{references=[];services=[]}H([s(0,"references",[Array,Nn]),q("design:type",Array)],ko.prototype,"references",void 0),H([s(1,"services",[Array,Ft]),q("design:type",Array)],ko.prototype,"services",void 0);class ut{instanceId="";name="";kind="";address="";content=void 0;timestamp=0;attachments={}}H([s(0,"instance_id",String),q("design:type",String)],ut.prototype,"instanceId",void 0),H([s(1,"name",String),q("design:type",String)],ut.prototype,"name",void 0),H([s(2,"kind",String),q("design:type",String)],ut.prototype,"kind",void 0),H([s(3,"address",String),q("design:type",String)],ut.prototype,"address",void 0),H([s(4,"content",Object),q("design:type",Object)],ut.prototype,"content",void 0),H([s(5,"timestamp",Number),q("design:type",Number)],ut.prototype,"timestamp",void 0),H([s(6,"attachments",[Map,String,String]),q("design:type",typeof(lc=typeof Record<"u"&&Record)=="function"?lc:Object)],ut.prototype,"attachments",void 0);class en{name="";icon="";memo="";author="";flags=0;lang="";instanceIds=[];kinds=[];addrs=[];attachments={}}H([s(0,"name",String),q("design:type",String)],en.prototype,"name",void 0),H([s(1,"icon",String),q("design:type",String)],en.prototype,"icon",void 0),H([s(2,"memo",String),q("design:type",String)],en.prototype,"memo",void 0),H([s(3,"author",String),q("design:type",String)],en.prototype,"author",void 0),H([s(4,"flags",Number),q("design:type",Number)],en.prototype,"flags",void 0),H([s(5,"lang",String),q("design:type",String)],en.prototype,"lang",void 0),H([s(6,"instance_ids",[Array,String]),q("design:type",Array)],en.prototype,"instanceIds",void 0),H([s(7,"kinds",[Array,String]),q("design:type",Array)],en.prototype,"kinds",void 0),H([s(8,"addrs",[Array,String]),q("design:type",Array)],en.prototype,"addrs",void 0),H([s(9,"attachments",[Map,String,String]),q("design:type",typeof(mc=typeof Record<"u"&&Record)=="function"?mc:Object)],en.prototype,"attachments",void 0);var C=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},U=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},gc,hc,bc;class ae{sid="";did="";name="";kind="";pattern="";address="";memo="";rank=0;tags="";expireAt=void 0;upstream=0;downstream=0;requests=0;hostRoot="";hostCrt="";hostKey="";guestRoot="";sap="";skip=!1;raw="";status=0;createAt=void 0;updateAt=void 0;createBy="";updateBy=""}C([s(0,"sid",String),U("design:type",String)],ae.prototype,"sid",void 0),C([s(1,"did",String),U("design:type",String)],ae.prototype,"did",void 0),C([s(2,"name",String),U("design:type",String)],ae.prototype,"name",void 0),C([s(3,"kind",String),U("design:type",String)],ae.prototype,"kind",void 0),C([s(4,"pattern",String),U("design:type",String)],ae.prototype,"pattern",void 0),C([s(5,"address",String),U("design:type",String)],ae.prototype,"address",void 0),C([s(6,"memo",String),U("design:type",String)],ae.prototype,"memo",void 0),C([s(7,"rank",Number),U("design:type",Number)],ae.prototype,"rank",void 0),C([s(8,"tags",String),U("design:type",String)],ae.prototype,"tags",void 0),C([s(9,"expire_at",Date),U("design:type",typeof(gc=typeof Date<"u"&&Date)=="function"?gc:Object)],ae.prototype,"expireAt",void 0),C([s(10,"upstream",Number),U("design:type",Number)],ae.prototype,"upstream",void 0),C([s(11,"downstream",Number),U("design:type",Number)],ae.prototype,"downstream",void 0),C([s(12,"requests",Number),U("design:type",Number)],ae.prototype,"requests",void 0),C([s(13,"host_root",String),U("design:type",String)],ae.prototype,"hostRoot",void 0),C([s(14,"host_crt",String),U("design:type",String)],ae.prototype,"hostCrt",void 0),C([s(15,"host_key",String),U("design:type",String)],ae.prototype,"hostKey",void 0),C([s(16,"guest_root",String),U("design:type",String)],ae.prototype,"guestRoot",void 0),C([s(17,"sap",String),U("design:type",String)],ae.prototype,"sap",void 0),C([s(18,"skip",Boolean),U("design:type",Boolean)],ae.prototype,"skip",void 0),C([s(19,"raw",String),U("design:type",String)],ae.prototype,"raw",void 0),C([s(20,"status",Number),U("design:type",Number)],ae.prototype,"status",void 0),C([s(21,"create_at",Date),U("design:type",typeof(hc=typeof Date<"u"&&Date)=="function"?hc:Object)],ae.prototype,"createAt",void 0),C([s(22,"update_at",Date),U("design:type",typeof(bc=typeof Date<"u"&&Date)=="function"?bc:Object)],ae.prototype,"updateAt",void 0),C([s(23,"create_by",String),U("design:type",String)],ae.prototype,"createBy",void 0),C([s(24,"update_by",String),U("design:type",String)],ae.prototype,"updateBy",void 0);class Kt{sap="";crt="";key="";cas=[];sni="";skip=!1}C([s(0,"sap",String),U("design:type",String)],Kt.prototype,"sap",void 0),C([s(1,"crt",String),U("design:type",String)],Kt.prototype,"crt",void 0),C([s(2,"key",String),U("design:type",String)],Kt.prototype,"key",void 0),C([s(3,"cas",[Array,String]),U("design:type",Array)],Kt.prototype,"cas",void 0),C([s(4,"sni",String),U("design:type",String)],Kt.prototype,"sni",void 0),C([s(5,"skip",Boolean),U("design:type",Boolean)],Kt.prototype,"skip",void 0);class qn{name="";matcher="";priority=0;services=[];filters=[];proxy="";option=new Kt}C([s(0,"name",String),U("design:type",String)],qn.prototype,"name",void 0),C([s(1,"matcher",String),U("design:type",String)],qn.prototype,"matcher",void 0),C([s(2,"priority",Number),U("design:type",Number)],qn.prototype,"priority",void 0),C([s(3,"services",[Array,String]),U("design:type",Array)],qn.prototype,"services",void 0),C([s(4,"filters",[Array,String]),U("design:type",Array)],qn.prototype,"filters",void 0),C([s(5,"proxy",String),U("design:type",String)],qn.prototype,"proxy",void 0),C([s(6,"option",Kt),U("design:type",Kt)],qn.prototype,"option",void 0);class Qr{name="";kind="";listen="";routes=[];option=new Kt}C([s(0,"name",String),U("design:type",String)],Qr.prototype,"name",void 0),C([s(1,"kind",String),U("design:type",String)],Qr.prototype,"kind",void 0),C([s(2,"listen",String),U("design:type",String)],Qr.prototype,"listen",void 0),C([s(3,"routes",[Array,qn]),U("design:type",Array)],Qr.prototype,"routes",void 0),C([s(4,"option",Kt),U("design:type",Kt)],Qr.prototype,"option",void 0);class ao{expr="";value=""}C([s(0,"expr",String),U("design:type",String)],ao.prototype,"expr",void 0),C([s(1,"value",String),U("design:type",String)],ao.prototype,"value",void 0);class br{name="";kind="";layer="";priority=0;status=0;memo="";matchers=[]}C([s(0,"name",String),U("design:type",String)],br.prototype,"name",void 0),C([s(1,"kind",String),U("design:type",String)],br.prototype,"kind",void 0),C([s(2,"layer",String),U("design:type",String)],br.prototype,"layer",void 0),C([s(3,"priority",Number),U("design:type",Number)],br.prototype,"priority",void 0),C([s(4,"status",Number),U("design:type",Number)],br.prototype,"status",void 0),C([s(5,"memo",String),U("design:type",String)],br.prototype,"memo",void 0),C([s(6,"matchers",[Array,ao]),U("design:type",Array)],br.prototype,"matchers",void 0);var Tn=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},En=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Sc;class Sr{xid="";timeout=0;schema="";flags=0}Tn([s(0,"xid",String),En("design:type",String)],Sr.prototype,"xid",void 0),Tn([s(1,"timeout",Number),En("design:type",Number)],Sr.prototype,"timeout",void 0),Tn([s(2,"schema",String),En("design:type",String)],Sr.prototype,"schema",void 0),Tn([s(3,"flags",Number),En("design:type",Number)],Sr.prototype,"flags",void 0);class An{xid="";schema="";grammar="";expr="";args={};flags=0}Tn([s(0,"xid",String),En("design:type",String)],An.prototype,"xid",void 0),Tn([s(1,"schema",String),En("design:type",String)],An.prototype,"schema",void 0),Tn([s(2,"grammar",String),En("design:type",String)],An.prototype,"grammar",void 0),Tn([s(3,"expr",String),En("design:type",String)],An.prototype,"expr",void 0),Tn([s(4,"args",[Map,String,Object]),En("design:type",typeof(Sc=typeof Record<"u"&&Record)=="function"?Sc:Object)],An.prototype,"args",void 0),Tn([s(5,"flags",Number),En("design:type",Number)],An.prototype,"flags",void 0);var x=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},B=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},_c,vc,Oc,Rc,Pc,jc;class zn{name="";macros={};comments=[];kind="";value="";flags=0;usage=""}x([s(0,"0",String),B("design:type",String)],zn.prototype,"name",void 0),x([s(1,"1",[Map,String,[Map,String,String]]),B("design:type",typeof(_c=typeof Record<"u"&&Record)=="function"?_c:Object)],zn.prototype,"macros",void 0),x([s(2,"2",[Array,String]),B("design:type",Array)],zn.prototype,"comments",void 0),x([s(3,"3",String),B("design:type",String)],zn.prototype,"kind",void 0),x([s(4,"4",String),B("design:type",String)],zn.prototype,"value",void 0),x([s(5,"5",Number),B("design:type",Number)],zn.prototype,"flags",void 0),x([s(6,"6",String),B("design:type",String)],zn.prototype,"usage",void 0);class _r{name="";comments=[];kind="";value="";flags=0;usage=""}x([s(0,"0",String),B("design:type",String)],_r.prototype,"name",void 0),x([s(1,"1",[Array,String]),B("design:type",Array)],_r.prototype,"comments",void 0),x([s(2,"2",String),B("design:type",String)],_r.prototype,"kind",void 0),x([s(3,"3",String),B("design:type",String)],_r.prototype,"value",void 0),x([s(4,"4",Number),B("design:type",Number)],_r.prototype,"flags",void 0),x([s(5,"5",String),B("design:type",String)],_r.prototype,"usage",void 0);class Ti{name="";comments=[];kind=""}x([s(0,"0",String),B("design:type",String)],Ti.prototype,"name",void 0),x([s(1,"1",[Array,String]),B("design:type",Array)],Ti.prototype,"comments",void 0),x([s(2,"2",String),B("design:type",String)],Ti.prototype,"kind",void 0);class pn{name="";macros={};comments=[];modifier=0;kind="";value="";flags=0;usage=""}x([s(0,"0",String),B("design:type",String)],pn.prototype,"name",void 0),x([s(1,"1",[Map,String,[Map,String,String]]),B("design:type",typeof(vc=typeof Record<"u"&&Record)=="function"?vc:Object)],pn.prototype,"macros",void 0),x([s(2,"2",[Array,String]),B("design:type",Array)],pn.prototype,"comments",void 0),x([s(3,"3",Number),B("design:type",Number)],pn.prototype,"modifier",void 0),x([s(4,"4",String),B("design:type",String)],pn.prototype,"kind",void 0),x([s(5,"5",String),B("design:type",String)],pn.prototype,"value",void 0),x([s(6,"7",Number),B("design:type",Number)],pn.prototype,"flags",void 0),x([s(7,"8",String),B("design:type",String)],pn.prototype,"usage",void 0);class Mn{name="";macros={};comments=[];modifier=0;parameters=[];returns=[];causes=[]}x([s(0,"0",String),B("design:type",String)],Mn.prototype,"name",void 0),x([s(1,"1",[Map,String,[Map,String,String]]),B("design:type",typeof(Oc=typeof Record<"u"&&Record)=="function"?Oc:Object)],Mn.prototype,"macros",void 0),x([s(2,"2",[Array,String]),B("design:type",Array)],Mn.prototype,"comments",void 0),x([s(3,"3",Number),B("design:type",Number)],Mn.prototype,"modifier",void 0),x([s(4,"4",[Array,zn]),B("design:type",Array)],Mn.prototype,"parameters",void 0),x([s(5,"5",[Array,_r]),B("design:type",Array)],Mn.prototype,"returns",void 0),x([s(6,"6",[Array,Ti]),B("design:type",Array)],Mn.prototype,"causes",void 0);class fn{name="";macros={};comments=[];modifier=0;variables=[];methods=[];supers=[];traits=[];signature=""}x([s(0,"0",String),B("design:type",String)],fn.prototype,"name",void 0),x([s(1,"1",[Map,String,[Map,String,String]]),B("design:type",typeof(Rc=typeof Record<"u"&&Record)=="function"?Rc:Object)],fn.prototype,"macros",void 0),x([s(2,"2",[Array,String]),B("design:type",Array)],fn.prototype,"comments",void 0),x([s(3,"3",Number),B("design:type",Number)],fn.prototype,"modifier",void 0),x([s(4,"4",[Array,pn]),B("design:type",Array)],fn.prototype,"variables",void 0),x([s(5,"5",[Array,Mn]),B("design:type",Array)],fn.prototype,"methods",void 0),x([s(6,"6",[Array,String]),B("design:type",Array)],fn.prototype,"supers",void 0),x([s(7,"7",[Array,String]),B("design:type",Array)],fn.prototype,"traits",void 0),x([s(8,"8",String),B("design:type",String)],fn.prototype,"signature",void 0);class Kn{name="";pkg="";path="";imports={};kinds=[];variables=[];methods=[];set={}}x([s(0,"0",String),B("design:type",String)],Kn.prototype,"name",void 0),x([s(1,"1",String),B("design:type",String)],Kn.prototype,"pkg",void 0),x([s(2,"2",String),B("design:type",String)],Kn.prototype,"path",void 0),x([s(3,"3",[Map,String,String]),B("design:type",typeof(Pc=typeof Record<"u"&&Record)=="function"?Pc:Object)],Kn.prototype,"imports",void 0),x([s(4,"4",[Array,fn]),B("design:type",Array)],Kn.prototype,"kinds",void 0),x([s(5,"5",[Array,pn]),B("design:type",Array)],Kn.prototype,"variables",void 0),x([s(6,"6",[Array,Mn]),B("design:type",Array)],Kn.prototype,"methods",void 0),x([s(7,"7",[Map,String,String]),B("design:type",typeof(jc=typeof Record<"u"&&Record)=="function"?jc:Object)],Kn.prototype,"set",void 0);var Ee=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Ae=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},wc,Nc,Tc;class ve extends Ar{code="";name="";kind="";lang="";flags=0;author="";version="";runtime="";memo="";icon="";doc="";dev=new Uint8Array;run=new Uint8Array;raw={}}Ee([s(0,"code",String),Ae("design:type",String)],ve.prototype,"code",void 0),Ee([s(1,"name",String),Ae("design:type",String)],ve.prototype,"name",void 0),Ee([s(2,"kind",String),Ae("design:type",String)],ve.prototype,"kind",void 0),Ee([s(3,"lang",String),Ae("design:type",String)],ve.prototype,"lang",void 0),Ee([s(4,"flags",Number),Ae("design:type",Number)],ve.prototype,"flags",void 0),Ee([s(5,"author",String),Ae("design:type",String)],ve.prototype,"author",void 0),Ee([s(6,"version",String),Ae("design:type",String)],ve.prototype,"version",void 0),Ee([s(7,"runtime",String),Ae("design:type",String)],ve.prototype,"runtime",void 0),Ee([s(8,"memo",String),Ae("design:type",String)],ve.prototype,"memo",void 0),Ee([s(9,"icon",String),Ae("design:type",String)],ve.prototype,"icon",void 0),Ee([s(10,"doc",String),Ae("design:type",String)],ve.prototype,"doc",void 0),Ee([s(11,"dev",Uint8Array),Ae("design:type",typeof(wc=typeof Uint8Array<"u"&&Uint8Array)=="function"?wc:Object)],ve.prototype,"dev",void 0),Ee([s(12,"run",Uint8Array),Ae("design:type",typeof(Nc=typeof Uint8Array<"u"&&Uint8Array)=="function"?Nc:Object)],ve.prototype,"run",void 0),Ee([s(13,"raw",[Map,String,String]),Ae("design:type",typeof(Tc=typeof Record<"u"&&Record)=="function"?Tc:Object)],ve.prototype,"raw",void 0);class yn{code="";name="";kind="";lang="";flags=0;author="";version="";runtime="";memo="";icon=""}Ee([s(0,"code",String),Ae("design:type",String)],yn.prototype,"code",void 0),Ee([s(1,"name",String),Ae("design:type",String)],yn.prototype,"name",void 0),Ee([s(2,"kind",String),Ae("design:type",String)],yn.prototype,"kind",void 0),Ee([s(3,"lang",String),Ae("design:type",String)],yn.prototype,"lang",void 0),Ee([s(4,"flags",Number),Ae("design:type",Number)],yn.prototype,"flags",void 0),Ee([s(5,"author",String),Ae("design:type",String)],yn.prototype,"author",void 0),Ee([s(6,"version",String),Ae("design:type",String)],yn.prototype,"version",void 0),Ee([s(7,"runtime",String),Ae("design:type",String)],yn.prototype,"runtime",void 0),Ee([s(8,"memo",String),Ae("design:type",String)],yn.prototype,"memo",void 0),Ee([s(9,"icon",String),Ae("design:type",String)],yn.prototype,"icon",void 0);class Ec{code;text;color;constructor(e,t,n){this.code=e,this.text=t,this.color=n}}class Ur{values;constructor(e){this.values=e}from(e){for(let t of this.values){if(typeof t.code!="number"||typeof e!="number"){if(t.code==e)return t;continue}if(t.code===(t.code&e))return t}return this.values[0]}asMap(){const e=new Map([["",new Ec(0,"全部","")]]);for(const t of this.values)t.code!=0&&e.set(t.text,t);return e}static Route=new Ur([{code:1,text:"已连通",color:"green"},{code:2,text:"已禁用",color:"orange"},{code:4,text:"已删除",color:"red"},{code:8,text:"虚拟化",color:"cyan"}]);static Datasource=new Ur([{code:1,text:"初始化",color:"blue"},{code:2,text:"已禁用",color:"red"},{code:4,text:"已删除",color:"yellow"},{code:8,text:"已发布",color:"green"}]);static DTS=new Ur([{code:1,text:"暂停",color:"blue"},{code:2,text:"执行",color:"yellow"},{code:4,text:"失败",color:"red"},{code:8,text:"成功",color:"green"}]);static Firewalld=new Ur([{code:1,text:"初始化",color:"blue"},{code:2,text:"已禁用",color:"red"},{code:4,text:"已删除",color:"yellow"},{code:8,text:"已发布",color:"green"}]);static VMC=new Ur([{code:1,text:"初始化",color:"blue"},{code:2,text:"已禁用",color:"red"},{code:4,text:"已删除",color:"yellow"},{code:8,text:"已发布",color:"green"}])}var Vn=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Wn=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Ac;class Ei{index=0;flag=0;body=new Uint8Array}Vn([s(0,"idx",Number),Wn("design:type",Number)],Ei.prototype,"index",void 0),Vn([s(1,"flag",Number),Wn("design:type",Number)],Ei.prototype,"flag",void 0),Vn([s(2,"body",Uint8Array),Wn("design:type",typeof(Ac=typeof Uint8Array<"u"&&Uint8Array)=="function"?Ac:Object)],Ei.prototype,"body",void 0);class tn extends Ei{bucket="";src="";rid="";dst="";sni="";addr=""}Vn([s(0,"bucket",String),Wn("design:type",String)],tn.prototype,"bucket",void 0),Vn([s(1,"src",String),Wn("design:type",String)],tn.prototype,"src",void 0),Vn([s(2,"rid",String),Wn("design:type",String)],tn.prototype,"rid",void 0),Vn([s(3,"dst",String),Wn("design:type",String)],tn.prototype,"dst",void 0),Vn([s(4,"sni",String),Wn("design:type",String)],tn.prototype,"sni",void 0),Vn([s(5,"addr",String),Wn("design:type",String)],tn.prototype,"addr",void 0);var Mc=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},$c=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Cc;class Ai{version="";infos={}}Mc([s(0,"version",String),$c("design:type",String)],Ai.prototype,"version",void 0),Mc([s(1,"infos",[Map,String,String]),$c("design:type",typeof(Cc=typeof Record<"u"&&Record)=="function"?Cc:Object)],Ai.prototype,"infos",void 0);var z=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},K=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Uc,Ic,Dc,kc,Fc;class Ze{no="";name="";alias=""}z([s(0,"no",String),K("design:type",String)],Ze.prototype,"no",void 0),z([s(1,"name",String),K("design:type",String)],Ze.prototype,"name",void 0),z([s(2,"alias",String),K("design:type",String)],Ze.prototype,"alias",void 0);class vr{bno="";cno="";context={};applier=new Ze}z([s(0,"bno",String),K("design:type",String)],vr.prototype,"bno",void 0),z([s(1,"cno",String),K("design:type",String)],vr.prototype,"cno",void 0),z([s(2,"context",[Map,String,String]),K("design:type",typeof(Uc=typeof Record<"u"&&Record)=="function"?Uc:Object)],vr.prototype,"context",void 0),z([s(3,"applier",Ze),K("design:type",Ze)],vr.prototype,"applier",void 0);class ot{name="";alias="";attrs={};kind=0;group=""}z([s(0,"name",String),K("design:type",String)],ot.prototype,"name",void 0),z([s(1,"alias",String),K("design:type",String)],ot.prototype,"alias",void 0),z([s(2,"attrs",[Map,String,String]),K("design:type",typeof(Ic=typeof Record<"u"&&Record)=="function"?Ic:Object)],ot.prototype,"attrs",void 0),z([s(3,"kind",Number),K("design:type",Number)],ot.prototype,"kind",void 0),z([s(4,"group",String),K("design:type",String)],ot.prototype,"group",void 0);class Mi{src="";dst="";condition=""}z([s(0,"src",String),K("design:type",String)],Mi.prototype,"src",void 0),z([s(1,"dst",String),K("design:type",String)],Mi.prototype,"dst",void 0),z([s(2,"condition",String),K("design:type",String)],Mi.prototype,"condition",void 0);class xt{cno="";name="";vertices=[];sides=[];status=0;maintainer=new Ze}z([s(0,"cno",String),K("design:type",String)],xt.prototype,"cno",void 0),z([s(1,"name",String),K("design:type",String)],xt.prototype,"name",void 0),z([s(2,"vertices",[Array,ot]),K("design:type",Array)],xt.prototype,"vertices",void 0),z([s(3,"sides",[Array,Mi]),K("design:type",Array)],xt.prototype,"sides",void 0),z([s(4,"status",Number),K("design:type",Number)],xt.prototype,"status",void 0),z([s(5,"maintainer",Ze),K("design:type",Ze)],xt.prototype,"maintainer",void 0);class Gn{vertex=new ot;reviewers=[];status=0;context={}}z([s(0,"vertex",ot),K("design:type",ot)],Gn.prototype,"vertex",void 0),z([s(1,"reviewers",[Array,Ze]),K("design:type",Array)],Gn.prototype,"reviewers",void 0),z([s(2,"status",Number),K("design:type",Number)],Gn.prototype,"status",void 0),z([s(3,"context",[Map,String,String]),K("design:type",typeof(Dc=typeof Record<"u"&&Record)=="function"?Dc:Object)],Gn.prototype,"context",void 0);class Ir{rno="";bno="";context={};status=0;chart=new xt;tasks=[]}z([s(0,"rno",String),K("design:type",String)],Ir.prototype,"rno",void 0),z([s(1,"bno",String),K("design:type",String)],Ir.prototype,"bno",void 0),z([s(2,"context",[Map,String,String]),K("design:type",typeof(kc=typeof Record<"u"&&Record)=="function"?kc:Object)],Ir.prototype,"context",void 0),z([s(3,"status",Number),K("design:type",Number)],Ir.prototype,"status",void 0),z([s(4,"chart",xt),K("design:type",xt)],Ir.prototype,"chart",void 0),z([s(5,"tasks",[Array,Gn]),K("design:type",Array)],Ir.prototype,"tasks",void 0);class Jn{no="";name="";status=0;workers=[]}z([s(0,"no",String),K("design:type",String)],Jn.prototype,"no",void 0),z([s(1,"name",String),K("design:type",String)],Jn.prototype,"name",void 0),z([s(2,"status",Number),K("design:type",Number)],Jn.prototype,"status",void 0),z([s(3,"workers",[Array,Ze]),K("design:type",Array)],Jn.prototype,"workers",void 0);class Xn{rno="";bno="";cno="";context={};vertex=new ot;task=new Gn;applier=new Ze;reviewer=new Ze}z([s(0,"rno",String),K("design:type",String)],Xn.prototype,"rno",void 0),z([s(1,"bno",String),K("design:type",String)],Xn.prototype,"bno",void 0),z([s(2,"cno",String),K("design:type",String)],Xn.prototype,"cno",void 0),z([s(3,"context",[Map,String,String]),K("design:type",typeof(Fc=typeof Record<"u"&&Record)=="function"?Fc:Object)],Xn.prototype,"context",void 0),z([s(4,"vertex",ot),K("design:type",ot)],Xn.prototype,"vertex",void 0),z([s(5,"task",Gn),K("design:type",Gn)],Xn.prototype,"task",void 0),z([s(6,"applier",Ze),K("design:type",Ze)],Xn.prototype,"applier",void 0),z([s(7,"reviewer",Ze),K("design:type",Ze)],Xn.prototype,"reviewer",void 0);var Yn=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Me=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Dr=function(r,e){return function(t,n){e(t,n,r)}},xc,Bc,Lc,Hc,qc,zc,Kc,Vc,Wc,Gc;a.Builtin=class{doc(e,t,n=p()){return Promise.reject(u.URN_NOT_PERMIT)}version(e=p()){return Promise.reject(u.URN_NOT_PERMIT)}debug(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}stats(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}fallback(e=p()){return Promise.reject(u.URN_NOT_PERMIT)}dump(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}},Yn([f("${mesh.name}.builtin.doc",String),Dr(0,s(0,"name",String)),Dr(1,s(1,"formatter",String)),Me("design:type",Function),Me("design:paramtypes",[String,String,Object]),Me("design:returntype",typeof(xc=typeof Promise<"u"&&Promise)=="function"?xc:Object)],a.Builtin.prototype,"doc",null),Yn([f("${mesh.name}.builtin.version",Ai),Me("design:type",Function),Me("design:paramtypes",[Object]),Me("design:returntype",typeof(Bc=typeof Promise<"u"&&Promise)=="function"?Bc:Object)],a.Builtin.prototype,"version",null),Yn([f("${mesh.name}.builtin.debug",Object),Dr(0,s(0,"features",[Map,String,String])),Me("design:type",Function),Me("design:paramtypes",[typeof(Lc=typeof Record<"u"&&Record)=="function"?Lc:Object,Object]),Me("design:returntype",typeof(Hc=typeof Promise<"u"&&Promise)=="function"?Hc:Object)],a.Builtin.prototype,"debug",null),Yn([f("${mesh.name}.builtin.stats",[Map,String,String]),Dr(0,s(0,"features",[Array,String])),Me("design:type",Function),Me("design:paramtypes",[Array,Object]),Me("design:returntype",typeof(qc=typeof Promise<"u"&&Promise)=="function"?qc:Object)],a.Builtin.prototype,"stats",null),Yn([f("${mesh.name}.builtin.fallback",Object),Me("design:type",Function),Me("design:paramtypes",[Object]),Me("design:returntype",typeof(zc=typeof Promise<"u"&&Promise)=="function"?zc:Object)],a.Builtin.prototype,"fallback",null),Yn([f("${mesh.name}.builtin.dump",[Map,String,String]),Dr(0,s(0,"names",[Array,String])),Me("design:type",Function),Me("design:paramtypes",[Array,Object]),Me("design:returntype",typeof(Kc=typeof Promise<"u"&&Promise)=="function"?Kc:Object)],a.Builtin.prototype,"dump",null),a.Builtin=Yn([$("mpi")],a.Builtin);class Fo{stats(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}debug(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}dump(e=p()){return Promise.reject(u.URN_NOT_PERMIT)}}Yn([Dr(0,s(0,"features",[Array,String])),Me("design:type",Function),Me("design:paramtypes",[Array,Object]),Me("design:returntype",typeof(Vc=typeof Promise<"u"&&Promise)=="function"?Vc:Object)],Fo.prototype,"stats",null),Yn([Dr(0,s(0,"features",[Map,String,String])),Me("design:type",Function),Me("design:paramtypes",[typeof(Wc=typeof Record<"u"&&Record)=="function"?Wc:Object,Object]),Me("design:returntype",typeof(Gc=typeof Promise<"u"&&Promise)=="function"?Gc:Object)],Fo.prototype,"debug",null);var ln=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},pe=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},vt=function(r,e){return function(t,n){e(t,n,r)}},Jc,Xc,Yc,Qc,Zc,ea,ta,na,ra,ia,oa,sa;a.Cache=class{get(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}put(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}remove(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}incr(e,t,n=p()){return Promise.reject(u.URN_NOT_PERMIT)}decr(e,t,n=p()){return Promise.reject(u.URN_NOT_PERMIT)}keys(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}hget(e,t,n=p()){return Promise.reject(u.URN_NOT_PERMIT)}hset(e,t,n=p()){return Promise.reject(u.URN_NOT_PERMIT)}hdel(e,t,n=p()){return Promise.reject(u.URN_NOT_PERMIT)}hkeys(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}},ln([f("mesh.cache.get",gt),vt(0,s(0,"key",String)),pe("design:type",Function),pe("design:paramtypes",[String,Object]),pe("design:returntype",typeof(Jc=typeof Promise<"u"&&Promise)=="function"?Jc:Object)],a.Cache.prototype,"get",null),ln([f("mesh.cache.put",Object),vt(0,s(0,"cell",gt)),pe("design:type",Function),pe("design:paramtypes",[typeof(Xc=typeof gt<"u"&&gt)=="function"?Xc:Object,Object]),pe("design:returntype",typeof(Yc=typeof Promise<"u"&&Promise)=="function"?Yc:Object)],a.Cache.prototype,"put",null),ln([f("mesh.cache.remove",Object),vt(0,s(0,"key",String)),pe("design:type",Function),pe("design:paramtypes",[String,Object]),pe("design:returntype",typeof(Qc=typeof Promise<"u"&&Promise)=="function"?Qc:Object)],a.Cache.prototype,"remove",null),ln([f("mesh.cache.incr",Number),vt(0,s(0,"key",String)),vt(1,s(1,"value",Number)),pe("design:type",Function),pe("design:paramtypes",[String,Number,Object]),pe("design:returntype",typeof(Zc=typeof Promise<"u"&&Promise)=="function"?Zc:Object)],a.Cache.prototype,"incr",null),ln([f("mesh.cache.decr",Number),vt(0,s(0,"key",String)),vt(1,s(1,"value",Number)),pe("design:type",Function),pe("design:paramtypes",[String,Number,Object]),pe("design:returntype",typeof(ea=typeof Promise<"u"&&Promise)=="function"?ea:Object)],a.Cache.prototype,"decr",null),ln([f("mesh.cache.keys",[Array,String]),vt(0,s(0,"pattern",String)),pe("design:type",Function),pe("design:paramtypes",[String,Object]),pe("design:returntype",typeof(ta=typeof Promise<"u"&&Promise)=="function"?ta:Object)],a.Cache.prototype,"keys",null),ln([f("mesh.cache.hget",gt),vt(0,s(0,"key",String)),vt(1,s(1,"name",String)),pe("design:type",Function),pe("design:paramtypes",[String,String,Object]),pe("design:returntype",typeof(na=typeof Promise<"u"&&Promise)=="function"?na:Object)],a.Cache.prototype,"hget",null),ln([f("mesh.cache.hset",Object),vt(0,s(0,"key",String)),vt(1,s(1,"cell",gt)),pe("design:type",Function),pe("design:paramtypes",[String,typeof(ra=typeof gt<"u"&&gt)=="function"?ra:Object,Object]),pe("design:returntype",typeof(ia=typeof Promise<"u"&&Promise)=="function"?ia:Object)],a.Cache.prototype,"hset",null),ln([f("mesh.cache.hdel",Object),vt(0,s(0,"key",String)),vt(1,s(1,"name",String)),pe("design:type",Function),pe("design:paramtypes",[String,String,Object]),pe("design:returntype",typeof(oa=typeof Promise<"u"&&Promise)=="function"?oa:Object)],a.Cache.prototype,"hdel",null),ln([f("mesh.cache.hkeys",[Array,String]),vt(0,s(0,"key",String)),pe("design:type",Function),pe("design:paramtypes",[String,Object]),pe("design:returntype",typeof(sa=typeof Promise<"u"&&Promise)=="function"?sa:Object)],a.Cache.prototype,"hkeys",null),a.Cache=ln([$("mpi")],a.Cache);var pt=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},X=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Vt=function(r,e){return function(t,n){e(t,n,r)}},ca,aa,da,ua,pa,fa,ya,la,ma,ga,ha,ba,Sa,_a,va,Oa,Ra,Pa,ja,wa,Na,Ta,Ea,Aa,Ma;a.CipherEconomy=class{handshake(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}collect(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}serve(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}deposit(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}objects(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}keys(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}invoke(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}},pt([f("${mesh.name}.cipher.handshake",String),Vt(0,s(0,"hello",mt)),X("design:type",Function),X("design:paramtypes",[typeof(ca=typeof mt<"u"&&mt)=="function"?ca:Object,Object]),X("design:returntype",typeof(aa=typeof Promise<"u"&&Promise)=="function"?aa:Object)],a.CipherEconomy.prototype,"handshake",null),pt([f("${mesh.name}.cipher.collect",Number),Vt(0,s(0,"obj",st)),X("design:type",Function),X("design:paramtypes",[typeof(da=typeof st<"u"&&st)=="function"?da:Object,Object]),X("design:returntype",typeof(ua=typeof Promise<"u"&&Promise)=="function"?ua:Object)],a.CipherEconomy.prototype,"collect",null),pt([f("${mesh.name}.cipher.serve",String),Vt(0,s(0,"suite",String)),X("design:type",Function),X("design:paramtypes",[String,Object]),X("design:returntype",typeof(pa=typeof Promise<"u"&&Promise)=="function"?pa:Object)],a.CipherEconomy.prototype,"serve",null),pt([f("mesh.cipher.deposit",String),Vt(0,s(0,"rco",st)),X("design:type",Function),X("design:paramtypes",[typeof(fa=typeof st<"u"&&st)=="function"?fa:Object,Object]),X("design:returntype",typeof(ya=typeof Promise<"u"&&Promise)=="function"?ya:Object)],a.CipherEconomy.prototype,"deposit",null),pt([f("mesh.cipher.objects",[fe,st]),Vt(0,s(0,"idx",j)),X("design:type",Function),X("design:paramtypes",[typeof(la=typeof j<"u"&&j)=="function"?la:Object,Object]),X("design:returntype",typeof(ma=typeof Promise<"u"&&Promise)=="function"?ma:Object)],a.CipherEconomy.prototype,"objects",null),pt([f("${mesh.name}.cipher.keys",[fe,kt]),Vt(0,s(0,"idx",j)),X("design:type",Function),X("design:paramtypes",[typeof(ga=typeof j<"u"&&j)=="function"?ga:Object,Object]),X("design:returntype",typeof(ha=typeof Promise<"u"&&Promise)=="function"?ha:Object)],a.CipherEconomy.prototype,"keys",null),pt([f("mesh.cipher.invoke",Uint8Array),Vt(0,s(0,"script",ve)),X("design:type",Function),X("design:paramtypes",[typeof(ba=typeof ve<"u"&&ve)=="function"?ba:Object,Object]),X("design:returntype",typeof(Sa=typeof Promise<"u"&&Promise)=="function"?Sa:Object)],a.CipherEconomy.prototype,"invoke",null),a.CipherEconomy=pt([$("mpi")],a.CipherEconomy),a.CipherProvider=class{suite(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}keygen(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}regen(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}encode(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}decode(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}recode(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}},pt([f("${mesh.name}.cipher.suite",Mr),Vt(0,s(0,"hello",mt)),X("design:type",Function),X("design:paramtypes",[typeof(_a=typeof mt<"u"&&mt)=="function"?_a:Object,Object]),X("design:returntype",typeof(va=typeof Promise<"u"&&Promise)=="function"?va:Object)],a.CipherProvider.prototype,"suite",null),pt([f("${mesh.name}.cipher.keygen",io),Vt(0,s(0,"keygen",dr)),X("design:type",Function),X("design:paramtypes",[typeof(Oa=typeof dr<"u"&&dr)=="function"?Oa:Object,Object]),X("design:returntype",typeof(Ra=typeof Promise<"u"&&Promise)=="function"?Ra:Object)],a.CipherProvider.prototype,"keygen",null),pt([f("${mesh.name}.cipher.regen",io),Vt(0,s(0,"keygen",Ri)),X("design:type",Function),X("design:paramtypes",[typeof(Pa=typeof Ri<"u"&&Ri)=="function"?Pa:Object,Object]),X("design:returntype",typeof(ja=typeof Promise<"u"&&Promise)=="function"?ja:Object)],a.CipherProvider.prototype,"regen",null),pt([f("${mesh.name}.cipher.encode",Uint8Array),Vt(0,s(0,"explain",vn)),X("design:type",Function),X("design:paramtypes",[typeof(wa=typeof vn<"u"&&vn)=="function"?wa:Object,Object]),X("design:returntype",typeof(Na=typeof Promise<"u"&&Promise)=="function"?Na:Object)],a.CipherProvider.prototype,"encode",null),pt([f("${mesh.name}.cipher.decode",Uint8Array),Vt(0,s(0,"cipher",vn)),X("design:type",Function),X("design:paramtypes",[typeof(Ta=typeof vn<"u"&&vn)=="function"?Ta:Object,Object]),X("design:returntype",typeof(Ea=typeof Promise<"u"&&Promise)=="function"?Ea:Object)],a.CipherProvider.prototype,"decode",null),pt([f("${mesh.name}.cipher.recode",Uint8Array),Vt(0,s(0,"cipher",Pi)),X("design:type",Function),X("design:paramtypes",[typeof(Aa=typeof Pi<"u"&&Pi)=="function"?Aa:Object,Object]),X("design:returntype",typeof(Ma=typeof Promise<"u"&&Promise)=="function"?Ma:Object)],a.CipherProvider.prototype,"recode",null),a.CipherProvider=pt([$("mpi")],a.CipherProvider),a.ObjectProvider=class{serve(e=p()){return Promise.reject(u.URN_NOT_PERMIT)}},a.ObjectProvider=pt([$("mpi")],a.ObjectProvider);var xo=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Zr=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Ml=function(r,e){return function(t,n){e(t,n,r)}},$a,Ca,Ua;a.Cluster=class{election(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}isLeader(e=p()){return Promise.reject(u.URN_NOT_PERMIT)}},xo([f("mesh.cluster.election",Uint8Array),Ml(0,s(0,"buff",Uint8Array)),Zr("design:type",Function),Zr("design:paramtypes",[typeof($a=typeof Uint8Array<"u"&&Uint8Array)=="function"?$a:Object,Object]),Zr("design:returntype",typeof(Ca=typeof Promise<"u"&&Promise)=="function"?Ca:Object)],a.Cluster.prototype,"election",null),xo([f("mesh.cluster.leader",Boolean),Zr("design:type",Function),Zr("design:paramtypes",[Object]),Zr("design:returntype",typeof(Ua=typeof Promise<"u"&&Promise)=="function"?Ua:Object)],a.Cluster.prototype,"isLeader",null),a.Cluster=xo([$("mpi")],a.Cluster);var $i=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},nn=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},ei=function(r,e){return function(t,n){e(t,n,r)}},Ia,Da,ka,Fa,xa;a.Commercialize=class{sign(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}history(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}issued(e,t,n,o=p()){return Promise.reject(u.URN_NOT_PERMIT)}dump(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}},$i([f("mesh.license.sign",Wr),ei(0,s(0,"lsr",me)),nn("design:type",Function),nn("design:paramtypes",[typeof(Ia=typeof me<"u"&&me)=="function"?Ia:Object,Object]),nn("design:returntype",typeof(Da=typeof Promise<"u"&&Promise)=="function"?Da:Object)],a.Commercialize.prototype,"sign",null),$i([f("mesh.license.history",[Array,Wr]),ei(0,s(0,"inst_id",String)),nn("design:type",Function),nn("design:paramtypes",[String,Object]),nn("design:returntype",typeof(ka=typeof Promise<"u"&&Promise)=="function"?ka:Object)],a.Commercialize.prototype,"history",null),$i([f("mesh.net.issued",Gr),ei(0,s(0,"name",String)),ei(1,s(1,"kind",String)),ei(2,s(2,"cname",String)),nn("design:type",Function),nn("design:paramtypes",[String,String,String,Object]),nn("design:returntype",typeof(Fa=typeof Promise<"u"&&Promise)=="function"?Fa:Object)],a.Commercialize.prototype,"issued",null),$i([f("mesh.net.dump",[Array,Gr]),ei(0,s(0,"node_id",String)),nn("design:type",Function),nn("design:paramtypes",[String,Object]),nn("design:returntype",typeof(xa=typeof Promise<"u"&&Promise)=="function"?xa:Object)],a.Commercialize.prototype,"dump",null),a.Commercialize=$i([$("mpi")],a.Commercialize);var ti=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Ot=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},$n=function(r,e){return function(t,n){e(t,n,r)}},Ba,La,Ha,qa,za,Ka,Va,Wa,Ga,Ja,Xa,Ya,Qa,Za,ed;a.Cryptor=class{encrypt(e,t,n=p()){return Promise.reject(u.URN_NOT_PERMIT)}decrypt(e,t,n=p()){return Promise.reject(u.URN_NOT_PERMIT)}hash(e,t,n=p()){return Promise.reject(u.URN_NOT_PERMIT)}sign(e,t,n=p()){return Promise.reject(u.URN_NOT_PERMIT)}verify(e,t,n=p()){return Promise.reject(u.URN_NOT_PERMIT)}},ti([f("mesh.crypt.encrypt",Uint8Array),$n(0,s(0,"buf",Uint8Array)),$n(1,s(1,"keys",[Map,String,Uint8Array])),Ot("design:type",Function),Ot("design:paramtypes",[typeof(Ba=typeof Uint8Array<"u"&&Uint8Array)=="function"?Ba:Object,typeof(La=typeof Record<"u"&&Record)=="function"?La:Object,Object]),Ot("design:returntype",typeof(Ha=typeof Promise<"u"&&Promise)=="function"?Ha:Object)],a.Cryptor.prototype,"encrypt",null),ti([f("mesh.crypt.decrypt",Uint8Array),$n(0,s(0,"buf",Uint8Array)),$n(1,s(1,"keys",[Map,String,Uint8Array])),Ot("design:type",Function),Ot("design:paramtypes",[typeof(qa=typeof Uint8Array<"u"&&Uint8Array)=="function"?qa:Object,typeof(za=typeof Record<"u"&&Record)=="function"?za:Object,Object]),Ot("design:returntype",typeof(Ka=typeof Promise<"u"&&Promise)=="function"?Ka:Object)],a.Cryptor.prototype,"decrypt",null),ti([f("mesh.crypt.hash",Uint8Array),$n(0,s(0,"buf",Uint8Array)),$n(1,s(1,"keys",[Map,String,Uint8Array])),Ot("design:type",Function),Ot("design:paramtypes",[typeof(Va=typeof Uint8Array<"u"&&Uint8Array)=="function"?Va:Object,typeof(Wa=typeof Record<"u"&&Record)=="function"?Wa:Object,Object]),Ot("design:returntype",typeof(Ga=typeof Promise<"u"&&Promise)=="function"?Ga:Object)],a.Cryptor.prototype,"hash",null),ti([f("mesh.crypt.sign",Uint8Array),$n(0,s(0,"buf",Uint8Array)),$n(1,s(1,"keys",[Map,String,Uint8Array])),Ot("design:type",Function),Ot("design:paramtypes",[typeof(Ja=typeof Uint8Array<"u"&&Uint8Array)=="function"?Ja:Object,typeof(Xa=typeof Record<"u"&&Record)=="function"?Xa:Object,Object]),Ot("design:returntype",typeof(Ya=typeof Promise<"u"&&Promise)=="function"?Ya:Object)],a.Cryptor.prototype,"sign",null),ti([f("mesh.crypt.verify",Boolean),$n(0,s(0,"buf",Uint8Array)),$n(1,s(1,"keys",[Map,String,Uint8Array])),Ot("design:type",Function),Ot("design:paramtypes",[typeof(Qa=typeof Uint8Array<"u"&&Uint8Array)=="function"?Qa:Object,typeof(Za=typeof Record<"u"&&Record)=="function"?Za:Object,Object]),Ot("design:returntype",typeof(ed=typeof Promise<"u"&&Promise)=="function"?ed:Object)],a.Cryptor.prototype,"verify",null),a.Cryptor=ti([$("mpi")],a.Cryptor);var Je=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},A=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},et=function(r,e){return function(t,n){e(t,n,r)}},td,nd,rd,id,od,sd,cd,ad,dd,ud,pd,fd,yd,ld,md,gd,hd,bd,Sd,_d,vd,Od,Rd,Pd,jd,wd,Nd;a.Daler=class{query(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}saveSource(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}indexSource(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}describeSource(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}removeSource(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}saveCluster(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}indexCluster(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}describeCluster(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}removeCluster(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}deployCluster(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}saveDTS(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}runDTS(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}indexDTS(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}removeDTS(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}indexBinlog(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}tailBinlog(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}redoBinlog(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}removeBinlog(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}},Je([f("mesh.daler.ds.query",Object),et(0,s(0,"test",$r)),A("design:type",Function),A("design:paramtypes",[typeof(td=typeof $r<"u"&&$r)=="function"?td:Object,Object]),A("design:returntype",typeof(nd=typeof Promise<"u"&&Promise)=="function"?nd:Object)],a.Daler.prototype,"query",null),Je([f("mesh.daler.ds.save",String),et(0,s(0,"ds",It)),A("design:type",Function),A("design:paramtypes",[typeof(rd=typeof It<"u"&&It)=="function"?rd:Object,Object]),A("design:returntype",typeof(id=typeof Promise<"u"&&Promise)=="function"?id:Object)],a.Daler.prototype,"saveSource",null),Je([f("mesh.daler.ds.index",[fe,It]),et(0,s(0,"idx",j)),A("design:type",Function),A("design:paramtypes",[typeof(od=typeof j<"u"&&j)=="function"?od:Object,Object]),A("design:returntype",typeof(sd=typeof Promise<"u"&&Promise)=="function"?sd:Object)],a.Daler.prototype,"indexSource",null),Je([f("mesh.daler.ds.describe",It),et(0,s(0,"id",String)),A("design:type",Function),A("design:paramtypes",[String,Object]),A("design:returntype",typeof(cd=typeof Promise<"u"&&Promise)=="function"?cd:Object)],a.Daler.prototype,"describeSource",null),Je([f("mesh.daler.ds.remove",Object),et(0,s(0,"id",String)),A("design:type",Function),A("design:paramtypes",[String,Object]),A("design:returntype",typeof(ad=typeof Promise<"u"&&Promise)=="function"?ad:Object)],a.Daler.prototype,"removeSource",null),Je([f("mesh.daler.cluster.save",String),et(0,s(0,"cluster",Qe)),A("design:type",Function),A("design:paramtypes",[typeof(dd=typeof Qe<"u"&&Qe)=="function"?dd:Object,Object]),A("design:returntype",typeof(ud=typeof Promise<"u"&&Promise)=="function"?ud:Object)],a.Daler.prototype,"saveCluster",null),Je([f("mesh.daler.cluster.index",[fe,Qe]),et(0,s(0,"idx",j)),A("design:type",Function),A("design:paramtypes",[typeof(pd=typeof j<"u"&&j)=="function"?pd:Object,Object]),A("design:returntype",typeof(fd=typeof Promise<"u"&&Promise)=="function"?fd:Object)],a.Daler.prototype,"indexCluster",null),Je([f("mesh.daler.cluster.describe",Qe),et(0,s(0,"id",String)),A("design:type",Function),A("design:paramtypes",[String,Object]),A("design:returntype",typeof(yd=typeof Promise<"u"&&Promise)=="function"?yd:Object)],a.Daler.prototype,"describeCluster",null),Je([f("mesh.daler.cluster.remove",Object),et(0,s(0,"id",String)),A("design:type",Function),A("design:paramtypes",[String,Object]),A("design:returntype",typeof(ld=typeof Promise<"u"&&Promise)=="function"?ld:Object)],a.Daler.prototype,"removeCluster",null),Je([f("mesh.daler.cluster.deploy",Object),et(0,s(0,"id",String)),A("design:type",Function),A("design:paramtypes",[String,Object]),A("design:returntype",typeof(md=typeof Promise<"u"&&Promise)=="function"?md:Object)],a.Daler.prototype,"deployCluster",null),Je([f("mesh.daler.dts.save",String),et(0,s(0,"dts",ke)),A("design:type",Function),A("design:paramtypes",[typeof(gd=typeof ke<"u"&&ke)=="function"?gd:Object,Object]),A("design:returntype",typeof(hd=typeof Promise<"u"&&Promise)=="function"?hd:Object)],a.Daler.prototype,"saveDTS",null),Je([f("mesh.daler.dts.run",Object),et(0,s(0,"id",String)),A("design:type",Function),A("design:paramtypes",[String,Object]),A("design:returntype",typeof(bd=typeof Promise<"u"&&Promise)=="function"?bd:Object)],a.Daler.prototype,"runDTS",null),Je([f("mesh.daler.dts.index",[fe,ke]),et(0,s(0,"idx",j)),A("design:type",Function),A("design:paramtypes",[typeof(Sd=typeof j<"u"&&j)=="function"?Sd:Object,Object]),A("design:returntype",typeof(_d=typeof Promise<"u"&&Promise)=="function"?_d:Object)],a.Daler.prototype,"indexDTS",null),Je([f("mesh.daler.dts.remove",Object),et(0,s(0,"id",String)),A("design:type",Function),A("design:paramtypes",[String,Object]),A("design:returntype",typeof(vd=typeof Promise<"u"&&Promise)=="function"?vd:Object)],a.Daler.prototype,"removeDTS",null),Je([f("mesh.daler.binlog.index",[fe,Bn]),et(0,s(0,"idx",j)),A("design:type",Function),A("design:paramtypes",[typeof(Od=typeof j<"u"&&j)=="function"?Od:Object,Object]),A("design:returntype",typeof(Rd=typeof Promise<"u"&&Promise)=="function"?Rd:Object)],a.Daler.prototype,"indexBinlog",null),Je([f("mesh.daler.binlog.tail",[fe,[Map,String,String]]),et(0,s(0,"idx",j)),A("design:type",Function),A("design:paramtypes",[typeof(Pd=typeof j<"u"&&j)=="function"?Pd:Object,Object]),A("design:returntype",typeof(jd=typeof Promise<"u"&&Promise)=="function"?jd:Object)],a.Daler.prototype,"tailBinlog",null),Je([f("mesh.daler.binlog.redo",Object),et(0,s(0,"id",String)),A("design:type",Function),A("design:paramtypes",[String,Object]),A("design:returntype",typeof(wd=typeof Promise<"u"&&Promise)=="function"?wd:Object)],a.Daler.prototype,"redoBinlog",null),Je([f("mesh.daler.binlog.remove",Object),et(0,s(0,"id",String)),A("design:type",Function),A("design:paramtypes",[String,Object]),A("design:returntype",typeof(Nd=typeof Promise<"u"&&Promise)=="function"?Nd:Object)],a.Daler.prototype,"removeBinlog",null),a.Daler=Je([$("mpi")],a.Daler);var ni=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Rt=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Ci=function(r,e){return function(t,n){e(t,n,r)}},Td,Ed,Ad,Md,$d,Cd,Ud,Id,Dd;a.DataHouse=class{writes(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}write(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}read(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}indies(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}tables(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}},ni([f("mesh.dh.writes",Object),Ci(0,s(0,"docs",[Array,ur])),Rt("design:type",Function),Rt("design:paramtypes",[Array,Object]),Rt("design:returntype",typeof(Td=typeof Promise<"u"&&Promise)=="function"?Td:Object)],a.DataHouse.prototype,"writes",null),ni([f("mesh.dh.write",Object),Ci(0,s(0,"doc",ur)),Rt("design:type",Function),Rt("design:paramtypes",[typeof(Ed=typeof ur<"u"&&ur)=="function"?Ed:Object,Object]),Rt("design:returntype",typeof(Ad=typeof Promise<"u"&&Promise)=="function"?Ad:Object)],a.DataHouse.prototype,"write",null),ni([f("mesh.dh.read",[fe,Object]),Ci(0,s(0,"idx",j)),Rt("design:type",Function),Rt("design:paramtypes",[typeof(Md=typeof j<"u"&&j)=="function"?Md:Object,Object]),Rt("design:returntype",typeof($d=typeof Promise<"u"&&Promise)=="function"?$d:Object)],a.DataHouse.prototype,"read",null),ni([f("mesh.dh.indies",[fe,Object]),Ci(0,s(0,"idx",j)),Rt("design:type",Function),Rt("design:paramtypes",[typeof(Cd=typeof j<"u"&&j)=="function"?Cd:Object,Object]),Rt("design:returntype",typeof(Ud=typeof Promise<"u"&&Promise)=="function"?Ud:Object)],a.DataHouse.prototype,"indies",null),ni([f("mesh.dh.tables",[fe,Object]),Ci(0,s(0,"idx",j)),Rt("design:type",Function),Rt("design:paramtypes",[typeof(Id=typeof j<"u"&&j)=="function"?Id:Object,Object]),Rt("design:returntype",typeof(Dd=typeof Promise<"u"&&Promise)=="function"?Dd:Object)],a.DataHouse.prototype,"tables",null),a.DataHouse=ni([$("mpi")],a.DataHouse);var Cn=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},be=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Qn=function(r,e){return function(t,n){e(t,n,r)}},kd,Fd,xd,Bd,Ld,Hd,qd,zd,Kd,Vd,Wd,Gd;a.Devops=class{init(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}settings(e=p()){return Promise.reject(u.URN_NOT_PERMIT)}setting(e,t,n=p()){return Promise.reject(u.URN_NOT_PERMIT)}indexReplica(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}importReplica(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}removeReplica(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}readReplica(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}replicate(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}recover(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}},Cn([f("${mesh.name}.devops.x.init",Object),Qn(0,s(0,"flags",String)),be("design:type",Function),be("design:paramtypes",[String,Object]),be("design:returntype",typeof(kd=typeof Promise<"u"&&Promise)=="function"?kd:Object)],a.Devops.prototype,"init",null),Cn([f("${mesh.name}.devops.x.settings",[Map,String,On]),be("design:type",Function),be("design:paramtypes",[Object]),be("design:returntype",typeof(Fd=typeof Promise<"u"&&Promise)=="function"?Fd:Object)],a.Devops.prototype,"settings",null),Cn([f("${mesh.name}.devops.x.appset",Object),Qn(0,s(0,"appset",String)),Qn(1,s(1,"setting",On)),be("design:type",Function),be("design:paramtypes",[String,typeof(xd=typeof On<"u"&&On)=="function"?xd:Object,Object]),be("design:returntype",typeof(Bd=typeof Promise<"u"&&Promise)=="function"?Bd:Object)],a.Devops.prototype,"setting",null),Cn([f("${mesh.name}.devops.replica.index",[fe,We]),Qn(0,s(0,"idx",j)),be("design:type",Function),be("design:paramtypes",[typeof(Ld=typeof j<"u"&&j)=="function"?Ld:Object,Object]),be("design:returntype",typeof(Hd=typeof Promise<"u"&&Promise)=="function"?Hd:Object)],a.Devops.prototype,"indexReplica",null),Cn([f("${mesh.name}.devops.replica.import",String),Qn(0,s(0,"raw",Uint8Array)),be("design:type",Function),be("design:paramtypes",[typeof(qd=typeof Uint8Array<"u"&&Uint8Array)=="function"?qd:Object,Object]),be("design:returntype",typeof(zd=typeof Promise<"u"&&Promise)=="function"?zd:Object)],a.Devops.prototype,"importReplica",null),Cn([f("${mesh.name}.devops.replica.remove",Object),Qn(0,s(0,"code",String)),be("design:type",Function),be("design:paramtypes",[String,Object]),be("design:returntype",typeof(Kd=typeof Promise<"u"&&Promise)=="function"?Kd:Object)],a.Devops.prototype,"removeReplica",null),Cn([f("${mesh.name}.devops.replica.read",Uint8Array),Qn(0,s(0,"code",String)),be("design:type",Function),be("design:paramtypes",[String,Object]),be("design:returntype",typeof(Vd=typeof Promise<"u"&&Promise)=="function"?Vd:Object)],a.Devops.prototype,"readReplica",null),Cn([f("${mesh.name}.devops.replica.replicate",String),Qn(0,s(0,"appset",String)),be("design:type",Function),be("design:paramtypes",[String,Object]),be("design:returntype",typeof(Wd=typeof Promise<"u"&&Promise)=="function"?Wd:Object)],a.Devops.prototype,"replicate",null),Cn([f("${mesh.name}.devops.replica.recover",Object),Qn(0,s(0,"id",String)),be("design:type",Function),be("design:paramtypes",[String,Object]),be("design:returntype",typeof(Gd=typeof Promise<"u"&&Promise)=="function"?Gd:Object)],a.Devops.prototype,"recover",null),a.Devops=Cn([$("mpi")],a.Devops);var Bo=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},ri=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},uo=function(r,e){return function(t,n){e(t,n,r)}},Jd,Xd,Yd;a.Dispatcher=class{invoke(e,t,n=p()){return Promise.reject(u.URN_NOT_PERMIT)}invoke0(e,t,n=p()){return Promise.reject(u.URN_NOT_PERMIT)}},Bo([uo(0,s(0,"urn",String)),uo(1,s(1,"param",[Map,String,Object])),ri("design:type",Function),ri("design:paramtypes",[String,typeof(Jd=typeof Record<"u"&&Record)=="function"?Jd:Object,Object]),ri("design:returntype",typeof(Xd=typeof Promise<"u"&&Promise)=="function"?Xd:Object)],a.Dispatcher.prototype,"invoke",null),Bo([uo(0,s(0,"urn",String)),uo(1,s(1,"param",Object)),ri("design:type",Function),ri("design:paramtypes",[String,Object,Object]),ri("design:returntype",typeof(Yd=typeof Promise<"u"&&Promise)=="function"?Yd:Object)],a.Dispatcher.prototype,"invoke0",null),a.Dispatcher=Bo([$("spi")],a.Dispatcher);var Lo=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},ii=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Qd=function(r,e){return function(t,n){e(t,n,r)}},Zd,eu,tu;a.Endpoint=class{fuzzy(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}},Lo([f("${mesh.uname}",Uint8Array),Qd(0,s(0,"buff",Uint8Array)),ii("design:type",Function),ii("design:paramtypes",[typeof(Zd=typeof Uint8Array<"u"&&Uint8Array)=="function"?Zd:Object,Object]),ii("design:returntype",typeof(eu=typeof Promise<"u"&&Promise)=="function"?eu:Object)],a.Endpoint.prototype,"fuzzy",null),a.Endpoint=Lo([$("mpi")],a.Endpoint);class nu{stick(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}}Lo([Qd(0,s(0,"varg",Object)),ii("design:type",Function),ii("design:paramtypes",[Object,Object]),ii("design:returntype",typeof(tu=typeof Promise<"u"&&Promise)=="function"?tu:Object)],nu.prototype,"stick",null);var Ui=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},rn=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},po=function(r,e){return function(t,n){e(t,n,r)}},ru,iu,ou,su,cu,au;a.Firewalld=class{save(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}remove(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}describe(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}index(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}},Ui([f("mesh.firewall.save",String),po(0,s(0,"wall",ue)),rn("design:type",Function),rn("design:paramtypes",[typeof(ru=typeof ue<"u"&&ue)=="function"?ru:Object,Object]),rn("design:returntype",typeof(iu=typeof Promise<"u"&&Promise)=="function"?iu:Object)],a.Firewalld.prototype,"save",null),Ui([f("mesh.firewall.remove",Object),po(0,s(0,"code",String)),rn("design:type",Function),rn("design:paramtypes",[String,Object]),rn("design:returntype",typeof(ou=typeof Promise<"u"&&Promise)=="function"?ou:Object)],a.Firewalld.prototype,"remove",null),Ui([f("mesh.firewall.describe",ue),po(0,s(0,"code",String)),rn("design:type",Function),rn("design:paramtypes",[String,Object]),rn("design:returntype",typeof(su=typeof Promise<"u"&&Promise)=="function"?su:Object)],a.Firewalld.prototype,"describe",null),Ui([f("mesh.firewall.index",[fe,ue]),po(0,s(0,"idx",j)),rn("design:type",Function),rn("design:paramtypes",[typeof(cu=typeof j<"u"&&j)=="function"?cu:Object,Object]),rn("design:returntype",typeof(au=typeof Promise<"u"&&Promise)=="function"?au:Object)],a.Firewalld.prototype,"index",null),a.Firewalld=Ui([$("mpi")],a.Firewalld);var Ho=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},oi=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},fo=function(r,e){return function(t,n){e(t,n,r)}},du,uu,pu,fu;a.Graph=class{query(e,t,n=p()){return Promise.reject(u.URN_NOT_PERMIT)}exec(e,t,n=p()){return Promise.reject(u.URN_NOT_PERMIT)}},Ho([f("mesh.graph.query",[Array,[Map,String,Object]]),fo(0,s(0,"expr",String)),fo(1,s(1,"args",[Map,String,Object])),oi("design:type",Function),oi("design:paramtypes",[String,typeof(du=typeof Record<"u"&&Record)=="function"?du:Object,Object]),oi("design:returntype",typeof(uu=typeof Promise<"u"&&Promise)=="function"?uu:Object)],a.Graph.prototype,"query",null),Ho([f("mesh.graph.exec",Object),fo(0,s(0,"expr",String)),fo(1,s(1,"args",[Map,String,Object])),oi("design:type",Function),oi("design:paramtypes",[String,typeof(pu=typeof Record<"u"&&Record)=="function"?pu:Object,Object]),oi("design:returntype",typeof(fu=typeof Promise<"u"&&Promise)=="function"?fu:Object)],a.Graph.prototype,"exec",null),a.Graph=Ho([$("mpi")],a.Graph);var Pt=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},G=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Bt=function(r,e){return function(t,n){e(t,n,r)}},yu,lu,mu,gu,hu,bu,Su,_u,vu,Ou,Ru,Pu,ju,wu,Nu,Tu,Eu,Au,Mu,$u,Cu,Uu;a.KMS=class{reset(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}environ(e=p()){return Promise.reject(u.URN_NOT_PERMIT)}issue(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}describe(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}index(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}revoke(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}rotate(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}remove(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}append(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}explain(e,t,n=p()){return Promise.reject(u.URN_NOT_PERMIT)}indexSecret(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}removeSecret(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}describeSecret(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}generateSecret(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}},Pt([f("mesh.kms.reset",Object),Bt(0,s(0,"env",Fe)),G("design:type",Function),G("design:paramtypes",[typeof(yu=typeof Fe<"u"&&Fe)=="function"?yu:Object,Object]),G("design:returntype",typeof(lu=typeof Promise<"u"&&Promise)=="function"?lu:Object)],a.KMS.prototype,"reset",null),Pt([f("mesh.kms.environ",Fe),G("design:type",Function),G("design:paramtypes",[Object]),G("design:returntype",typeof(mu=typeof Promise<"u"&&Promise)=="function"?mu:Object)],a.KMS.prototype,"environ",null),Pt([f("mesh.kms.crt.issue",kt),Bt(0,s(0,"csr",Ge)),G("design:type",Function),G("design:paramtypes",[typeof(gu=typeof Ge<"u"&&Ge)=="function"?gu:Object,Object]),G("design:returntype",typeof(hu=typeof Promise<"u"&&Promise)=="function"?hu:Object)],a.KMS.prototype,"issue",null),Pt([f("mesh.kms.crt.describe",kt),Bt(0,s(0,"id",String)),G("design:type",Function),G("design:paramtypes",[String,Object]),G("design:returntype",typeof(bu=typeof Promise<"u"&&Promise)=="function"?bu:Object)],a.KMS.prototype,"describe",null),Pt([f("mesh.kms.crt.index",[fe,kt]),Bt(0,s(0,"idx",j)),G("design:type",Function),G("design:paramtypes",[typeof(Su=typeof j<"u"&&j)=="function"?Su:Object,Object]),G("design:returntype",typeof(_u=typeof Promise<"u"&&Promise)=="function"?_u:Object)],a.KMS.prototype,"index",null),Pt([f("mesh.kms.crt.revoke",Object),Bt(0,s(0,"crr",Vr)),G("design:type",Function),G("design:paramtypes",[typeof(vu=typeof Vr<"u"&&Vr)=="function"?vu:Object,Object]),G("design:returntype",typeof(Ou=typeof Promise<"u"&&Promise)=="function"?Ou:Object)],a.KMS.prototype,"revoke",null),Pt([f("mesh.kms.crt.rotate",Object),Bt(0,s(0,"crr",Cr)),G("design:type",Function),G("design:paramtypes",[typeof(Ru=typeof Cr<"u"&&Cr)=="function"?Ru:Object,Object]),G("design:returntype",typeof(Pu=typeof Promise<"u"&&Promise)=="function"?Pu:Object)],a.KMS.prototype,"rotate",null),Pt([f("mesh.kms.crt.remove",Object),Bt(0,s(0,"id",String)),G("design:type",Function),G("design:paramtypes",[String,Object]),G("design:returntype",typeof(ju=typeof Promise<"u"&&Promise)=="function"?ju:Object)],a.KMS.prototype,"remove",null),Pt([f("mesh.kms.crt.append",Object),Bt(0,s(0,"car",kt)),G("design:type",Function),G("design:paramtypes",[typeof(wu=typeof kt<"u"&&kt)=="function"?wu:Object,Object]),G("design:returntype",typeof(Nu=typeof Promise<"u"&&Promise)=="function"?Nu:Object)],a.KMS.prototype,"append",null),Pt([f("mesh.kms.crt.explain",String),Bt(0,s(0,"algo",String)),Bt(1,s(1,"keys",String)),G("design:type",Function),G("design:paramtypes",[String,String,Object]),G("design:returntype",typeof(Tu=typeof Promise<"u"&&Promise)=="function"?Tu:Object)],a.KMS.prototype,"explain",null),Pt([f("mesh.kms.secret.index",[fe,gr]),Bt(0,s(0,"idx",j)),G("design:type",Function),G("design:paramtypes",[typeof(Eu=typeof j<"u"&&j)=="function"?Eu:Object,Object]),G("design:returntype",typeof(Au=typeof Promise<"u"&&Promise)=="function"?Au:Object)],a.KMS.prototype,"indexSecret",null),Pt([f("mesh.kms.secret.remove",Object),Bt(0,s(0,"id",String)),G("design:type",Function),G("design:paramtypes",[String,Object]),G("design:returntype",typeof(Mu=typeof Promise<"u"&&Promise)=="function"?Mu:Object)],a.KMS.prototype,"removeSecret",null),Pt([f("mesh.kms.secret.describe",gr),Bt(0,s(0,"id",String)),G("design:type",Function),G("design:paramtypes",[String,Object]),G("design:returntype",typeof($u=typeof Promise<"u"&&Promise)=="function"?$u:Object)],a.KMS.prototype,"describeSecret",null),Pt([f("mesh.kms.secret.generate",String),Bt(0,s(0,"csr",wn)),G("design:type",Function),G("design:paramtypes",[typeof(Cu=typeof wn<"u"&&wn)=="function"?Cu:Object,Object]),G("design:returntype",typeof(Uu=typeof Promise<"u"&&Promise)=="function"?Uu:Object)],a.KMS.prototype,"generateSecret",null),a.KMS=Pt([$("mpi")],a.KMS);var si=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},jt=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},ci=function(r,e){return function(t,n){e(t,n,r)}},Iu,Du,ku,Fu,xu,Bu,Lu;a.KV=class{get(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}put(e,t,n=p()){return Promise.reject(u.URN_NOT_PERMIT)}remove(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}keys(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}index(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}},si([f("mesh.kv.get",Te),ci(0,s(0,"key",String)),jt("design:type",Function),jt("design:paramtypes",[String,Object]),jt("design:returntype",typeof(Iu=typeof Promise<"u"&&Promise)=="function"?Iu:Object)],a.KV.prototype,"get",null),si([f("mesh.kv.put",Object),ci(0,s(0,"key",String)),ci(1,s(1,"value",Te)),jt("design:type",Function),jt("design:paramtypes",[String,typeof(Du=typeof Te<"u"&&Te)=="function"?Du:Object,Object]),jt("design:returntype",typeof(ku=typeof Promise<"u"&&Promise)=="function"?ku:Object)],a.KV.prototype,"put",null),si([f("mesh.kv.remove",Object),ci(0,s(0,"key",String)),jt("design:type",Function),jt("design:paramtypes",[String,Object]),jt("design:returntype",typeof(Fu=typeof Promise<"u"&&Promise)=="function"?Fu:Object)],a.KV.prototype,"remove",null),si([f("mesh.kv.keys",[Array,String]),ci(0,s(0,"pattern",String)),jt("design:type",Function),jt("design:paramtypes",[String,Object]),jt("design:returntype",typeof(xu=typeof Promise<"u"&&Promise)=="function"?xu:Object)],a.KV.prototype,"keys",null),si([f("mesh.kv.index",[fe,ji]),ci(0,s(0,"idx",j)),jt("design:type",Function),jt("design:paramtypes",[typeof(Bu=typeof j<"u"&&j)=="function"?Bu:Object,Object]),jt("design:returntype",typeof(Lu=typeof Promise<"u"&&Promise)=="function"?Lu:Object)],a.KV.prototype,"index",null),a.KV=si([$("mpi")],a.KV);var ai=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},wt=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},$l=function(r,e){return function(t,n){e(t,n,r)}},Hu,qu,zu,Ku,Vu;a.Licenser=class{imports(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}exports(e=p()){return Promise.reject(u.URN_NOT_PERMIT)}explain(e=p()){return Promise.reject(u.URN_NOT_PERMIT)}verify(e=p()){return Promise.reject(u.URN_NOT_PERMIT)}features(e=p()){return Promise.reject(u.URN_NOT_PERMIT)}},ai([f("mesh.license.imports",Object),$l(0,s(0,"license",String)),wt("design:type",Function),wt("design:paramtypes",[String,Object]),wt("design:returntype",typeof(Hu=typeof Promise<"u"&&Promise)=="function"?Hu:Object)],a.Licenser.prototype,"imports",null),ai([f("mesh.license.exports",String),wt("design:type",Function),wt("design:paramtypes",[Object]),wt("design:returntype",typeof(qu=typeof Promise<"u"&&Promise)=="function"?qu:Object)],a.Licenser.prototype,"exports",null),ai([f("mesh.license.explain",me),wt("design:type",Function),wt("design:paramtypes",[Object]),wt("design:returntype",typeof(zu=typeof Promise<"u"&&Promise)=="function"?zu:Object)],a.Licenser.prototype,"explain",null),ai([f("mesh.license.verify",Number),wt("design:type",Function),wt("design:paramtypes",[Object]),wt("design:returntype",typeof(Ku=typeof Promise<"u"&&Promise)=="function"?Ku:Object)],a.Licenser.prototype,"verify",null),ai([f("mesh.license.features",[Map,String,String]),wt("design:type",Function),wt("design:paramtypes",[Object]),wt("design:returntype",typeof(Vu=typeof Promise<"u"&&Promise)=="function"?Vu:Object)],a.Licenser.prototype,"features",null),a.Licenser=ai([$("mpi")],a.Licenser);var Ii=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},on=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},di=function(r,e){return function(t,n){e(t,n,r)}},Wu,Gu,Ju,Xu;a.Locker=class{lock(e,t,n=p()){return Promise.reject(u.URN_NOT_PERMIT)}unlock(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}readLock(e,t,n=p()){return Promise.reject(u.URN_NOT_PERMIT)}readUnlock(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}},Ii([f("mesh.locker.w.lock",Boolean),di(0,s(0,"rid",String)),di(1,s(1,"timeout",Number)),on("design:type",Function),on("design:paramtypes",[String,Number,Object]),on("design:returntype",typeof(Wu=typeof Promise<"u"&&Promise)=="function"?Wu:Object)],a.Locker.prototype,"lock",null),Ii([f("mesh.locker.w.unlock",Object),di(0,s(0,"rid",String)),on("design:type",Function),on("design:paramtypes",[String,Object]),on("design:returntype",typeof(Gu=typeof Promise<"u"&&Promise)=="function"?Gu:Object)],a.Locker.prototype,"unlock",null),Ii([f("mesh.locker.r.lock",Boolean),di(0,s(0,"rid",String)),di(1,s(1,"timeout",Number)),on("design:type",Function),on("design:paramtypes",[String,Number,Object]),on("design:returntype",typeof(Ju=typeof Promise<"u"&&Promise)=="function"?Ju:Object)],a.Locker.prototype,"readLock",null),Ii([f("mesh.locker.r.unlock",Object),di(0,s(0,"rid",String)),on("design:type",Function),on("design:paramtypes",[String,Object]),on("design:returntype",typeof(Xu=typeof Promise<"u"&&Promise)=="function"?Xu:Object)],a.Locker.prototype,"readUnlock",null),a.Locker=Ii([$("mpi")],a.Locker);var Wt=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},ie=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},sn=function(r,e){return function(t,n){e(t,n,r)}},Yu,Qu,Zu,ep,tp,np,rp,ip,op,sp,cp,ap,dp,up;a.Network=class{environ(e=p()){return Promise.reject(u.URN_NOT_PERMIT)}accessible(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}refresh(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}route(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}routes(e=p()){return Promise.reject(u.URN_NOT_PERMIT)}disable(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}enable(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}index(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}version(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}exports(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}imports(e,t,n=p()){return Promise.reject(u.URN_NOT_PERMIT)}remove(e,t,n=p()){return Promise.reject(u.URN_NOT_PERMIT)}},Wt([f("mesh.net.environ",Fe),ie("design:type",Function),ie("design:paramtypes",[Object]),ie("design:returntype",typeof(Yu=typeof Promise<"u"&&Promise)=="function"?Yu:Object)],a.Network.prototype,"environ",null),Wt([f("mesh.net.accessible",Boolean),sn(0,s(0,"route",ae)),ie("design:type",Function),ie("design:paramtypes",[typeof(Qu=typeof ae<"u"&&ae)=="function"?Qu:Object,Object]),ie("design:returntype",typeof(Zu=typeof Promise<"u"&&Promise)=="function"?Zu:Object)],a.Network.prototype,"accessible",null),Wt([f("mesh.net.refresh",Object),sn(0,s(0,"routes",[Array,ae])),ie("design:type",Function),ie("design:paramtypes",[Array,Object]),ie("design:returntype",typeof(ep=typeof Promise<"u"&&Promise)=="function"?ep:Object)],a.Network.prototype,"refresh",null),Wt([f("mesh.net.route",ae),sn(0,s(0,"mdc",String)),ie("design:type",Function),ie("design:paramtypes",[String,Object]),ie("design:returntype",typeof(tp=typeof Promise<"u"&&Promise)=="function"?tp:Object)],a.Network.prototype,"route",null),Wt([f("mesh.net.routes",[Array,ae]),ie("design:type",Function),ie("design:paramtypes",[Object]),ie("design:returntype",typeof(np=typeof Promise<"u"&&Promise)=="function"?np:Object)],a.Network.prototype,"routes",null),Wt([f("mesh.net.disable",Object),sn(0,s(0,"mdc",String)),ie("design:type",Function),ie("design:paramtypes",[String,Object]),ie("design:returntype",typeof(rp=typeof Promise<"u"&&Promise)=="function"?rp:Object)],a.Network.prototype,"disable",null),Wt([f("mesh.net.enable",Object),sn(0,s(0,"mdc",String)),ie("design:type",Function),ie("design:paramtypes",[String,Object]),ie("design:returntype",typeof(ip=typeof Promise<"u"&&Promise)=="function"?ip:Object)],a.Network.prototype,"enable",null),Wt([f("mesh.net.index",[fe,ae]),sn(0,s(0,"index",j)),ie("design:type",Function),ie("design:paramtypes",[typeof(op=typeof j<"u"&&j)=="function"?op:Object,Object]),ie("design:returntype",typeof(sp=typeof Promise<"u"&&Promise)=="function"?sp:Object)],a.Network.prototype,"index",null),Wt([f("mesh.net.version",Ai),sn(0,s(0,"mdc",String)),ie("design:type",Function),ie("design:paramtypes",[String,Object]),ie("design:returntype",typeof(cp=typeof Promise<"u"&&Promise)=="function"?cp:Object)],a.Network.prototype,"version",null),Wt([f("mesh.net.exports",String),sn(0,s(0,"mdc",String)),ie("design:type",Function),ie("design:paramtypes",[String,Object]),ie("design:returntype",typeof(ap=typeof Promise<"u"&&Promise)=="function"?ap:Object)],a.Network.prototype,"exports",null),Wt([f("mesh.net.imports",Object),sn(0,s(0,"mdc",String)),sn(1,s(1,"crt",String)),ie("design:type",Function),ie("design:paramtypes",[String,String,Object]),ie("design:returntype",typeof(dp=typeof Promise<"u"&&Promise)=="function"?dp:Object)],a.Network.prototype,"imports",null),Wt([f("mesh.net.remove",Object),sn(0,s(0,"sid",String)),sn(1,s(1,"did",String)),ie("design:type",Function),ie("design:paramtypes",[String,String,Object]),ie("design:returntype",typeof(up=typeof Promise<"u"&&Promise)=="function"?up:Object)],a.Network.prototype,"remove",null),a.Network=Wt([$("mpi")],a.Network);var Di=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},cn=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Or=function(r,e){return function(t,n){e(t,n,r)}},pp,fp,yp,lp,mp,gp;a.Pipeline=class{peek(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}pop(e,t,n=p()){return Promise.reject(u.URN_NOT_PERMIT)}push(e,t,n,o=p()){return Promise.reject(u.URN_NOT_PERMIT)}release(e,t,n=p()){return Promise.reject(u.URN_NOT_PERMIT)}},Di([f("mesh.chan.peek",Uint8Array),Or(0,s(0,"topic",String)),cn("design:type",Function),cn("design:paramtypes",[String,Object]),cn("design:returntype",typeof(pp=typeof Promise<"u"&&Promise)=="function"?pp:Object)],a.Pipeline.prototype,"peek",null),Di([f("mesh.chan.pop",Uint8Array),Or(0,s(0,"timeout",Number)),Or(1,s(1,"topic",String)),cn("design:type",Function),cn("design:paramtypes",[Number,String,Object]),cn("design:returntype",typeof(fp=typeof Promise<"u"&&Promise)=="function"?fp:Object)],a.Pipeline.prototype,"pop",null),Di([f("mesh.chan.push",Object),Or(0,s(0,"payload",Uint8Array)),Or(1,s(1,"metadata",[Map,String,String])),Or(2,s(2,"topic",String)),cn("design:type",Function),cn("design:paramtypes",[typeof(yp=typeof Uint8Array<"u"&&Uint8Array)=="function"?yp:Object,typeof(lp=typeof Record<"u"&&Record)=="function"?lp:Object,String,Object]),cn("design:returntype",typeof(mp=typeof Promise<"u"&&Promise)=="function"?mp:Object)],a.Pipeline.prototype,"push",null),Di([f("mesh.chan.release",Object),Or(0,s(0,"timeout",Number)),Or(1,s(1,"topic",String)),cn("design:type",Function),cn("design:paramtypes",[Number,String,Object]),cn("design:returntype",typeof(gp=typeof Promise<"u"&&Promise)=="function"?gp:Object)],a.Pipeline.prototype,"release",null),a.Pipeline=Di([$("mpi")],a.Pipeline);var qo=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},ui=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},hp=function(r,e){return function(t,n){e(t,n,r)}},bp,Sp;a.Publisher=class{publish(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}broadcast(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}},qo([f("mesh.queue.publish",[Array,String]),hp(0,s(0,"events",[Array,dt])),ui("design:type",Function),ui("design:paramtypes",[Array,Object]),ui("design:returntype",typeof(bp=typeof Promise<"u"&&Promise)=="function"?bp:Object)],a.Publisher.prototype,"publish",null),qo([f("mesh.queue.multicast",[Array,String]),hp(0,s(0,"events",[Array,dt])),ui("design:type",Function),ui("design:paramtypes",[Array,Object]),ui("design:returntype",typeof(Sp=typeof Promise<"u"&&Promise)=="function"?Sp:Object)],a.Publisher.prototype,"broadcast",null),a.Publisher=qo([$("mpi")],a.Publisher);var pi=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Nt=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},ki=function(r,e){return function(t,n){e(t,n,r)}},_p,vp,Op,Rp,Pp,jp,wp;a.Registry=class{register(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}registers(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}unregister(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}export(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}appset(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}},pi([f("mesh.registry.put",Object),ki(0,s(0,"registration",[ut,Object])),Nt("design:type",Function),Nt("design:paramtypes",[typeof(_p=typeof ut<"u"&&ut)=="function"?_p:Object,Object]),Nt("design:returntype",typeof(vp=typeof Promise<"u"&&Promise)=="function"?vp:Object)],a.Registry.prototype,"register",null),pi([f("mesh.registry.puts",Object),ki(0,s(0,"registrations",[Array,[ut,Object]])),Nt("design:type",Function),Nt("design:paramtypes",[Array,Object]),Nt("design:returntype",typeof(Op=typeof Promise<"u"&&Promise)=="function"?Op:Object)],a.Registry.prototype,"registers",null),pi([f("mesh.registry.remove",Object),ki(0,s(0,"registration",[ut,Object])),Nt("design:type",Function),Nt("design:paramtypes",[typeof(Rp=typeof ut<"u"&&ut)=="function"?Rp:Object,Object]),Nt("design:returntype",typeof(Pp=typeof Promise<"u"&&Promise)=="function"?Pp:Object)],a.Registry.prototype,"unregister",null),pi([f("mesh.registry.export",[Array,[ut,Object]]),ki(0,s(0,"kind",String)),Nt("design:type",Function),Nt("design:paramtypes",[String,Object]),Nt("design:returntype",typeof(jp=typeof Promise<"u"&&Promise)=="function"?jp:Object)],a.Registry.prototype,"export",null),pi([f("mesh.registry.appset",[Array,en]),ki(0,s(0,"kind",String)),Nt("design:type",Function),Nt("design:paramtypes",[String,Object]),Nt("design:returntype",typeof(wp=typeof Promise<"u"&&Promise)=="function"?wp:Object)],a.Registry.prototype,"appset",null),a.Registry=pi([$("mpi")],a.Registry);var fi=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Lt=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Fi=function(r,e){return function(t,n){e(t,n,r)}},Np,Tp,Ep,Ap,Mp,$p,Cp;class xi{with(e,t,n=p()){return Promise.reject(u.URN_NOT_PERMIT)}withMap(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}local(e=p()){return Promise.reject(u.URN_NOT_PERMIT)}any(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}many(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}}fi([Fi(0,s(0,"key",String)),Fi(1,s(1,"value",String)),Lt("design:type",Function),Lt("design:paramtypes",[String,String,Object]),Lt("design:returntype",typeof(Np=typeof Promise<"u"&&Promise)=="function"?Np:Object)],xi.prototype,"with",null),fi([Fi(0,s(0,"attachments",[Map,String,String])),Lt("design:type",Function),Lt("design:paramtypes",[typeof(Tp=typeof Record<"u"&&Record)=="function"?Tp:Object,Object]),Lt("design:returntype",typeof(Ep=typeof Promise<"u"&&Promise)=="function"?Ep:Object)],xi.prototype,"withMap",null),fi([Fi(0,s(0,"principal",St)),Lt("design:type",Function),Lt("design:paramtypes",[typeof(Ap=typeof St<"u"&&St)=="function"?Ap:Object,Object]),Lt("design:returntype",typeof(Mp=typeof Promise<"u"&&Promise)=="function"?Mp:Object)],xi.prototype,"any",null),fi([Fi(0,s(0,"principals",[Array,St])),Lt("design:type",Function),Lt("design:paramtypes",[Array,Object]),Lt("design:returntype",typeof($p=typeof Promise<"u"&&Promise)=="function"?$p:Object)],xi.prototype,"many",null);class zo{reference=void 0;attachments={}}fi([s(0,"reference",Object),Lt("design:type",Object)],zo.prototype,"reference",void 0),fi([s(1,"attachments",[Map,String,String]),Lt("design:type",typeof(Cp=typeof Record<"u"&&Record)=="function"?Cp:Object)],zo.prototype,"attachments",void 0);var yi=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Tt=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Bi=function(r,e){return function(t,n){e(t,n,r)}},Up,Ip,Dp,kp,Fp,xp,Bp,Lp;a.Savepoint=class{begin(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}commit(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}rollback(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}execute(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}redo(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}},yi([f("mesh.savepoint.begin",String),Bi(0,s(0,"definition",Sr)),Tt("design:type",Function),Tt("design:paramtypes",[typeof(Up=typeof Sr<"u"&&Sr)=="function"?Up:Object,Object]),Tt("design:returntype",typeof(Ip=typeof Promise<"u"&&Promise)=="function"?Ip:Object)],a.Savepoint.prototype,"begin",null),yi([f("mesh.savepoint.commit",Object),Bi(0,s(0,"xid",String)),Tt("design:type",Function),Tt("design:paramtypes",[String,Object]),Tt("design:returntype",typeof(Dp=typeof Promise<"u"&&Promise)=="function"?Dp:Object)],a.Savepoint.prototype,"commit",null),yi([f("mesh.savepoint.rollback",Object),Bi(0,s(0,"xid",String)),Tt("design:type",Function),Tt("design:paramtypes",[String,Object]),Tt("design:returntype",typeof(kp=typeof Promise<"u"&&Promise)=="function"?kp:Object)],a.Savepoint.prototype,"rollback",null),yi([f("mesh.savepoint.execute",Uint8Array),Bi(0,s(0,"branch",An)),Tt("design:type",Function),Tt("design:paramtypes",[typeof(Fp=typeof An<"u"&&An)=="function"?Fp:Object,Object]),Tt("design:returntype",typeof(xp=typeof Promise<"u"&&Promise)=="function"?xp:Object)],a.Savepoint.prototype,"execute",null),yi([f("mesh.savepoint.redo",Object),Bi(0,s(0,"commit",Uint8Array)),Tt("design:type",Function),Tt("design:paramtypes",[typeof(Bp=typeof Uint8Array<"u"&&Uint8Array)=="function"?Bp:Object,Object]),Tt("design:returntype",typeof(Lp=typeof Promise<"u"&&Promise)=="function"?Lp:Object)],a.Savepoint.prototype,"redo",null),a.Savepoint=yi([$("mpi")],a.Savepoint);var Zn=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},$e=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Un=function(r,e){return function(t,n){e(t,n,r)}},Hp,qp,zp,Kp,Vp,Wp,Gp,Jp,Xp,Yp,Qp,Zp;a.Scheduler=class{timeout(e,t,n=p()){return Promise.reject(u.URN_NOT_PERMIT)}cron(e,t,n=p()){return Promise.reject(u.URN_NOT_PERMIT)}period(e,t,n=p()){return Promise.reject(u.URN_NOT_PERMIT)}dump(e=p()){return Promise.reject(u.URN_NOT_PERMIT)}cancel(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}stop(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}emit(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}shutdown(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}},Zn([f("mesh.schedule.timeout",String),Un(0,s(0,"timeout",jn)),Un(1,s(1,"duration",Number)),$e("design:type",Function),$e("design:paramtypes",[typeof(Hp=typeof jn<"u"&&jn)=="function"?Hp:Object,Number,Object]),$e("design:returntype",typeof(qp=typeof Promise<"u"&&Promise)=="function"?qp:Object)],a.Scheduler.prototype,"timeout",null),Zn([f("mesh.schedule.cron",String),Un(0,s(0,"cron",String)),Un(1,s(1,"topic",Ce)),$e("design:type",Function),$e("design:paramtypes",[String,typeof(zp=typeof Ce<"u"&&Ce)=="function"?zp:Object,Object]),$e("design:returntype",typeof(Kp=typeof Promise<"u"&&Promise)=="function"?Kp:Object)],a.Scheduler.prototype,"cron",null),Zn([f("mesh.schedule.period",String),Un(0,s(0,"duration",Number)),Un(1,s(1,"topic",Ce)),$e("design:type",Function),$e("design:paramtypes",[Number,typeof(Vp=typeof Ce<"u"&&Ce)=="function"?Vp:Object,Object]),$e("design:returntype",typeof(Wp=typeof Promise<"u"&&Promise)=="function"?Wp:Object)],a.Scheduler.prototype,"period",null),Zn([f("mesh.schedule.dump",[Array,String]),$e("design:type",Function),$e("design:paramtypes",[Object]),$e("design:returntype",typeof(Gp=typeof Promise<"u"&&Promise)=="function"?Gp:Object)],a.Scheduler.prototype,"dump",null),Zn([f("mesh.schedule.cancel",Boolean),Un(0,s(0,"task_id",String)),$e("design:type",Function),$e("design:paramtypes",[String,Object]),$e("design:returntype",typeof(Jp=typeof Promise<"u"&&Promise)=="function"?Jp:Object)],a.Scheduler.prototype,"cancel",null),Zn([f("mesh.schedule.stop",Boolean),Un(0,s(0,"task_id",String)),$e("design:type",Function),$e("design:paramtypes",[String,Object]),$e("design:returntype",typeof(Xp=typeof Promise<"u"&&Promise)=="function"?Xp:Object)],a.Scheduler.prototype,"stop",null),Zn([f("mesh.schedule.emit",Object),Un(0,s(0,"topic",Ce)),$e("design:type",Function),$e("design:paramtypes",[typeof(Yp=typeof Ce<"u"&&Ce)=="function"?Yp:Object,Object]),$e("design:returntype",typeof(Qp=typeof Promise<"u"&&Promise)=="function"?Qp:Object)],a.Scheduler.prototype,"emit",null),Zn([f("mesh.schedule.shutdown",Object),Un(0,s(0,"duration",Number)),$e("design:type",Function),$e("design:paramtypes",[Number,Object]),$e("design:returntype",typeof(Zp=typeof Promise<"u"&&Promise)=="function"?Zp:Object)],a.Scheduler.prototype,"shutdown",null),a.Scheduler=Zn([$("mpi")],a.Scheduler);var Ko=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},li=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Li=function(r,e){return function(t,n){e(t,n,r)}},ef,tf;a.Sequence=class{next(e,t,n=p()){return Promise.reject(u.URN_NOT_PERMIT)}section(e,t,n,o=p()){return Promise.reject(u.URN_NOT_PERMIT)}},Ko([f("mesh.sequence.next",String),Li(0,s(0,"kind",String)),Li(1,s(1,"length",Number)),li("design:type",Function),li("design:paramtypes",[String,Number,Object]),li("design:returntype",typeof(ef=typeof Promise<"u"&&Promise)=="function"?ef:Object)],a.Sequence.prototype,"next",null),Ko([f("mesh.sequence.section",[Array,String]),Li(0,s(0,"kind",String)),Li(1,s(1,"size",Number)),Li(2,s(2,"length",Number)),li("design:type",Function),li("design:paramtypes",[String,Number,Number,Object]),li("design:returntype",typeof(tf=typeof Promise<"u"&&Promise)=="function"?tf:Object)],a.Sequence.prototype,"section",null),a.Sequence=Ko([$("mpi")],a.Sequence);var nf=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Vo=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Cl=function(r,e){return function(t,n){e(t,n,r)}},rf,of;a.Subscriber=class{subscribe(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}},nf([f("mesh.queue.subscribe",Object),Cl(0,s(0,"event",dt)),Vo("design:type",Function),Vo("design:paramtypes",[typeof(rf=typeof dt<"u"&&dt)=="function"?rf:Object,Object]),Vo("design:returntype",typeof(of=typeof Promise<"u"&&Promise)=="function"?of:Object)],a.Subscriber.prototype,"subscribe",null),a.Subscriber=nf([$("mpi")],a.Subscriber);var Et=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Y=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},ft=function(r,e){return function(t,n){e(t,n,r)}},sf,cf,af,df,uf,pf,ff,yf,lf,mf,gf,hf,bf,Sf,_f,vf,Of;a.Tokenizer=class{captcha(e,t,n=p()){return Promise.reject(u.URN_NOT_PERMIT)}matches(e,t,n=p()){return Promise.reject(u.URN_NOT_PERMIT)}apply(e,t,n=p()){return Promise.reject(u.URN_NOT_PERMIT)}verify(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}quickauth(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}grant(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}accept(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}reject(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}authorize(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}authenticate(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}refresh(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}destroy(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}},Et([f("mesh.captcha.apply",Jr),ft(0,s(0,"kind",String)),ft(1,s(1,"features",[Map,String,String])),Y("design:type",Function),Y("design:paramtypes",[String,typeof(sf=typeof Record<"u"&&Record)=="function"?sf:Object,Object]),Y("design:returntype",typeof(cf=typeof Promise<"u"&&Promise)=="function"?cf:Object)],a.Tokenizer.prototype,"captcha",null),Et([f("mesh.captcha.match",Boolean),ft(0,s(0,"mno",String)),ft(1,s(1,"value",String)),Y("design:type",Function),Y("design:paramtypes",[String,String,Object]),Y("design:returntype",typeof(af=typeof Promise<"u"&&Promise)=="function"?af:Object)],a.Tokenizer.prototype,"matches",null),Et([f("mesh.trust.apply",String),ft(0,s(0,"kind",String)),ft(1,s(1,"duration",Number)),Y("design:type",Function),Y("design:paramtypes",[String,Number,Object]),Y("design:returntype",typeof(df=typeof Promise<"u"&&Promise)=="function"?df:Object)],a.Tokenizer.prototype,"apply",null),Et([f("mesh.trust.verify",Boolean),ft(0,s(0,"token",String)),Y("design:type",Function),Y("design:paramtypes",[String,Object]),Y("design:returntype",typeof(uf=typeof Promise<"u"&&Promise)=="function"?uf:Object)],a.Tokenizer.prototype,"verify",null),Et([f("mesh.auth.quickauth",Hn),ft(0,s(0,"credential",Qt)),Y("design:type",Function),Y("design:paramtypes",[typeof(pf=typeof Qt<"u"&&Qt)=="function"?pf:Object,Object]),Y("design:returntype",typeof(ff=typeof Promise<"u"&&Promise)=="function"?ff:Object)],a.Tokenizer.prototype,"quickauth",null),Et([f("mesh.oauth.grant",Io),ft(0,s(0,"grant",hr)),Y("design:type",Function),Y("design:paramtypes",[typeof(yf=typeof hr<"u"&&hr)=="function"?yf:Object,Object]),Y("design:returntype",typeof(lf=typeof Promise<"u"&&Promise)=="function"?lf:Object)],a.Tokenizer.prototype,"grant",null),Et([f("mesh.oauth.accept",so),ft(0,s(0,"code",String)),Y("design:type",Function),Y("design:paramtypes",[String,Object]),Y("design:returntype",typeof(mf=typeof Promise<"u"&&Promise)=="function"?mf:Object)],a.Tokenizer.prototype,"accept",null),Et([f("mesh.oauth.reject",Object),ft(0,s(0,"code",String)),Y("design:type",Function),Y("design:paramtypes",[String,Object]),Y("design:returntype",typeof(gf=typeof Promise<"u"&&Promise)=="function"?gf:Object)],a.Tokenizer.prototype,"reject",null),Et([f("mesh.auth.authorize",Hn),ft(0,s(0,"code",String)),Y("design:type",Function),Y("design:paramtypes",[String,Object]),Y("design:returntype",typeof(hf=typeof Promise<"u"&&Promise)=="function"?hf:Object)],a.Tokenizer.prototype,"authorize",null),Et([f("mesh.oauth.authenticate",_t),ft(0,s(0,"token",String)),Y("design:type",Function),Y("design:paramtypes",[String,Object]),Y("design:returntype",typeof(bf=typeof Promise<"u"&&Promise)=="function"?bf:Object)],a.Tokenizer.prototype,"authenticate",null),Et([f("mesh.oauth.refresh",Hn),ft(0,s(0,"token",String)),Y("design:type",Function),Y("design:paramtypes",[String,Object]),Y("design:returntype",typeof(Sf=typeof Promise<"u"&&Promise)=="function"?Sf:Object)],a.Tokenizer.prototype,"refresh",null),Et([f("mesh.oauth.destroy",Object),ft(0,s(0,"token",String)),Y("design:type",Function),Y("design:paramtypes",[String,Object]),Y("design:returntype",typeof(_f=typeof Promise<"u"&&Promise)=="function"?_f:Object)],a.Tokenizer.prototype,"destroy",null),a.Tokenizer=Et([$("mpi")],a.Tokenizer),a.AuthProvider=class{session(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}},Et([f("${mesh.name}.auth.session",_t),ft(0,s(0,"credential",Qt)),Y("design:type",Function),Y("design:paramtypes",[typeof(vf=typeof Qt<"u"&&Qt)=="function"?vf:Object,Object]),Y("design:returntype",typeof(Of=typeof Promise<"u"&&Promise)=="function"?Of:Object)],a.AuthProvider.prototype,"session",null),a.AuthProvider=Et([$("mpi")],a.AuthProvider);var kr=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},tt=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},In=function(r,e){return function(t,n){e(t,n,r)}},Rf,Pf,jf,wf,Nf,Tf,Ef;a.Transporter=class{attach(e,t,n=p()){return Promise.reject(u.URN_NOT_PERMIT)}detach(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}scan(e,t,n,o=p()){return Promise.reject(u.URN_NOT_PERMIT)}write(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}read(e,t,n=p()){return Promise.reject(u.URN_NOT_PERMIT)}clean(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}},kr([f("${mesh.name}.tcp.attach",String),In(0,s(0,"uri",String)),In(1,s(1,"pdc",String)),tt("design:type",Function),tt("design:paramtypes",[String,String,Object]),tt("design:returntype",typeof(Rf=typeof Promise<"u"&&Promise)=="function"?Rf:Object)],a.Transporter.prototype,"attach",null),kr([f("${mesh.name}.tcp.detach",Object),In(0,s(0,"descriptor",String)),tt("design:type",Function),tt("design:paramtypes",[String,Object]),tt("design:returntype",typeof(Pf=typeof Promise<"u"&&Promise)=="function"?Pf:Object)],a.Transporter.prototype,"detach",null),kr([f("${mesh.name}.tcp.scan",[Array,tn]),In(0,s(0,"rid",String)),In(1,s(1,"h",Number)),In(2,s(2,"limit",Number)),tt("design:type",Function),tt("design:paramtypes",[String,Number,Number,Object]),tt("design:returntype",typeof(jf=typeof Promise<"u"&&Promise)=="function"?jf:Object)],a.Transporter.prototype,"scan",null),kr([f("${mesh.name}.tcp.write",Object),In(0,s(0,"packet",tn)),tt("design:type",Function),tt("design:paramtypes",[typeof(wf=typeof tn<"u"&&tn)=="function"?wf:Object,Object]),tt("design:returntype",typeof(Nf=typeof Promise<"u"&&Promise)=="function"?Nf:Object)],a.Transporter.prototype,"write",null),kr([f("${mesh.name}.tcp.read",[Array,tn]),In(0,s(0,"bucket",String)),In(1,s(1,"limit",Number)),tt("design:type",Function),tt("design:paramtypes",[String,Number,Object]),tt("design:returntype",typeof(Tf=typeof Promise<"u"&&Promise)=="function"?Tf:Object)],a.Transporter.prototype,"read",null),kr([f("${mesh.name}.tcp.clean",Object),In(0,s(0,"buckets",[Array,String])),tt("design:type",Function),tt("design:paramtypes",[Array,Object]),tt("design:returntype",typeof(Ef=typeof Promise<"u"&&Promise)=="function"?Ef:Object)],a.Transporter.prototype,"clean",null),a.Transporter=kr([$("mpi")],a.Transporter);var Rr=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},xe=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Pr=function(r,e){return function(t,n){e(t,n,r)}},Af,Mf,$f,Cf,Uf,If,Df,kf;a.FileSystem=class{exist(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}mkdir(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}write(e,t,n=p()){return Promise.reject(u.URN_NOT_PERMIT)}read(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}remove(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}delete(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}list(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}},Rr([f("mesh.fs.exist",Boolean),Pr(0,s(0,"path",String)),xe("design:type",Function),xe("design:paramtypes",[String,Object]),xe("design:returntype",typeof(Af=typeof Promise<"u"&&Promise)=="function"?Af:Object)],a.FileSystem.prototype,"exist",null),Rr([f("mesh.fs.mkdir",Object),Pr(0,s(0,"path",String)),xe("design:type",Function),xe("design:paramtypes",[String,Object]),xe("design:returntype",typeof(Mf=typeof Promise<"u"&&Promise)=="function"?Mf:Object)],a.FileSystem.prototype,"mkdir",null),Rr([f("mesh.fs.write",Object),Pr(0,s(0,"path",String)),Pr(1,s(1,"buff",Uint8Array)),xe("design:type",Function),xe("design:paramtypes",[String,typeof($f=typeof Uint8Array<"u"&&Uint8Array)=="function"?$f:Object,Object]),xe("design:returntype",typeof(Cf=typeof Promise<"u"&&Promise)=="function"?Cf:Object)],a.FileSystem.prototype,"write",null),Rr([f("mesh.fs.read",Uint8Array),Pr(0,s(0,"path",String)),xe("design:type",Function),xe("design:paramtypes",[String,Object]),xe("design:returntype",typeof(Uf=typeof Promise<"u"&&Promise)=="function"?Uf:Object)],a.FileSystem.prototype,"read",null),Rr([f("mesh.fs.remove",Object),Pr(0,s(0,"path",String)),xe("design:type",Function),xe("design:paramtypes",[String,Object]),xe("design:returntype",typeof(If=typeof Promise<"u"&&Promise)=="function"?If:Object)],a.FileSystem.prototype,"remove",null),Rr([f("mesh.fs.delete",Object),Pr(0,s(0,"paths",[Array,String])),xe("design:type",Function),xe("design:paramtypes",[Array,Object]),xe("design:returntype",typeof(Df=typeof Promise<"u"&&Promise)=="function"?Df:Object)],a.FileSystem.prototype,"delete",null),Rr([f("mesh.fs.ls",Kr),Pr(0,s(0,"path",String)),xe("design:type",Function),xe("design:paramtypes",[String,Object]),xe("design:returntype",typeof(kf=typeof Promise<"u"&&Promise)=="function"?kf:Object)],a.FileSystem.prototype,"list",null),a.FileSystem=Rr([$("mpi")],a.FileSystem);var jr=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Be=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Dn=function(r,e){return function(t,n){e(t,n,r)}},Ff,xf,Bf,Lf,Hf,qf,zf,Kf,Vf,Wf,Gf;a.VM=class{render(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}compile(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}setup(e,t,n=p()){return Promise.reject(u.URN_NOT_PERMIT)}remove(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}describe(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}exec(e,t,n,o=p()){return Promise.reject(u.URN_NOT_PERMIT)}index(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}},jr([f("mesh.vmc.render",[Map,String,Uint8Array]),Dn(0,s(0,"script",ve)),Be("design:type",Function),Be("design:paramtypes",[typeof(Ff=typeof ve<"u"&&ve)=="function"?Ff:Object,Object]),Be("design:returntype",typeof(xf=typeof Promise<"u"&&Promise)=="function"?xf:Object)],a.VM.prototype,"render",null),jr([f("mesh.vmc.compile",String),Dn(0,s(0,"script",ve)),Be("design:type",Function),Be("design:paramtypes",[typeof(Bf=typeof ve<"u"&&ve)=="function"?Bf:Object,Object]),Be("design:returntype",typeof(Lf=typeof Promise<"u"&&Promise)=="function"?Lf:Object)],a.VM.prototype,"compile",null),jr([f("mesh.vmc.setup",Object),Dn(0,s(0,"code",String)),Dn(1,s(1,"version",String)),Be("design:type",Function),Be("design:paramtypes",[String,String,Object]),Be("design:returntype",typeof(Hf=typeof Promise<"u"&&Promise)=="function"?Hf:Object)],a.VM.prototype,"setup",null),jr([f("mesh.vmc.remove",Object),Dn(0,s(0,"code",String)),Be("design:type",Function),Be("design:paramtypes",[String,Object]),Be("design:returntype",typeof(qf=typeof Promise<"u"&&Promise)=="function"?qf:Object)],a.VM.prototype,"remove",null),jr([f("mesh.vmc.describe",ve),Dn(0,s(0,"code",String)),Be("design:type",Function),Be("design:paramtypes",[String,Object]),Be("design:returntype",typeof(zf=typeof Promise<"u"&&Promise)=="function"?zf:Object)],a.VM.prototype,"describe",null),jr([f("mesh.vmc.exec",String),Dn(0,s(0,"code",String)),Dn(1,s(1,"args",[Map,String,String])),Dn(2,s(2,"dft",String)),Be("design:type",Function),Be("design:paramtypes",[String,typeof(Kf=typeof Record<"u"&&Record)=="function"?Kf:Object,String,Object]),Be("design:returntype",typeof(Vf=typeof Promise<"u"&&Promise)=="function"?Vf:Object)],a.VM.prototype,"exec",null),jr([f("mesh.vmc.index",[fe,ve]),Dn(0,s(0,"idx",j)),Be("design:type",Function),Be("design:paramtypes",[typeof(Wf=typeof j<"u"&&j)=="function"?Wf:Object,Object]),Be("design:returntype",typeof(Gf=typeof Promise<"u"&&Promise)=="function"?Gf:Object)],a.VM.prototype,"index",null),a.VM=jr([$("mpi")],a.VM);var wr=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Le=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Fr=function(r,e){return function(t,n){e(t,n,r)}},Jf,Xf,Yf,Qf,Zf,ey,ty,ny,ry,iy,oy,sy,cy,ay;a.Workflow=class{mass(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}groups(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}compile(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}index(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}submit(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}take(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}routines(e,t=p()){return Promise.reject(u.URN_NOT_PERMIT)}},wr([f("mesh.workflow.mass",String),Fr(0,s(0,"group",Jn)),Le("design:type",Function),Le("design:paramtypes",[typeof(Jf=typeof Jn<"u"&&Jn)=="function"?Jf:Object,Object]),Le("design:returntype",typeof(Xf=typeof Promise<"u"&&Promise)=="function"?Xf:Object)],a.Workflow.prototype,"mass",null),wr([f("mesh.workflow.groups",[fe,Jn]),Fr(0,s(0,"index",j)),Le("design:type",Function),Le("design:paramtypes",[typeof(Yf=typeof j<"u"&&j)=="function"?Yf:Object,Object]),Le("design:returntype",typeof(Qf=typeof Promise<"u"&&Promise)=="function"?Qf:Object)],a.Workflow.prototype,"groups",null),wr([f("mesh.workflow.compile",String),Fr(0,s(0,"chart",xt)),Le("design:type",Function),Le("design:paramtypes",[typeof(Zf=typeof xt<"u"&&xt)=="function"?Zf:Object,Object]),Le("design:returntype",typeof(ey=typeof Promise<"u"&&Promise)=="function"?ey:Object)],a.Workflow.prototype,"compile",null),wr([f("mesh.workflow.index",[fe,xt]),Fr(0,s(0,"index",j)),Le("design:type",Function),Le("design:paramtypes",[typeof(ty=typeof j<"u"&&j)=="function"?ty:Object,Object]),Le("design:returntype",typeof(ny=typeof Promise<"u"&&Promise)=="function"?ny:Object)],a.Workflow.prototype,"index",null),wr([f("mesh.workflow.submit",String),Fr(0,s(0,"intent",vr)),Le("design:type",Function),Le("design:paramtypes",[typeof(ry=typeof vr<"u"&&vr)=="function"?ry:Object,Object]),Le("design:returntype",typeof(iy=typeof Promise<"u"&&Promise)=="function"?iy:Object)],a.Workflow.prototype,"submit",null),wr([f("mesh.workflow.take",Object),Fr(0,s(0,"vertex",ot)),Le("design:type",Function),Le("design:paramtypes",[typeof(oy=typeof ot<"u"&&ot)=="function"?oy:Object,Object]),Le("design:returntype",typeof(sy=typeof Promise<"u"&&Promise)=="function"?sy:Object)],a.Workflow.prototype,"take",null),wr([f("mesh.workflow.routines",[fe,ot]),Fr(0,s(0,"index",j)),Le("design:type",Function),Le("design:paramtypes",[typeof(cy=typeof j<"u"&&j)=="function"?cy:Object,Object]),Le("design:returntype",typeof(ay=typeof Promise<"u"&&Promise)=="function"?ay:Object)],a.Workflow.prototype,"routines",null),a.Workflow=wr([$("mpi")],a.Workflow);let dy=class{encoding="utf-8";encode(e=""){const t=[];for(let n=0;n<e.length;n++){let o=e.charCodeAt(n);if(o>=55296&&o<=56319&&n+1<e.length){const i=e.charCodeAt(n+1);i>=56320&&i<=57343&&(o=65536+(o-55296<<10)+(i-56320),n++)}o<128?t.push(o):o<2048?(t.push(192|o>>6),t.push(128|o&63)):o<65536?(t.push(224|o>>12),t.push(128|o>>6&63),t.push(128|o&63)):o<1114112&&(t.push(240|o>>18),t.push(128|o>>12&63),t.push(128|o>>6&63),t.push(128|o&63))}return new Uint8Array(t)}encodeInto(e,t){let n=0,o=0;for(let i=0;i<e.length&&o<t.length;i++){let c=e.charCodeAt(i);if(c>=55296&&c<=56319&&i+1<e.length){const d=e.charCodeAt(i+1);d>=56320&&d<=57343&&(c=65536+(c-55296<<10)+(d-56320),i++)}if(c<128){if(o+1>t.length)break;t[o++]=c}else if(c<2048){if(o+2>t.length)break;t[o++]=192|c>>6,t[o++]=128|c&63}else if(c<65536){if(o+3>t.length)break;t[o++]=224|c>>12,t[o++]=128|c>>6&63,t[o++]=128|c&63}else if(c<1114112){if(o+4>t.length)break;t[o++]=240|c>>18,t[o++]=128|c>>12&63,t[o++]=128|c>>6&63,t[o++]=128|c&63}n=i+1}return{read:n,written:o}}},uy=class{encoding;fatal;ignoreBOM;constructor(e="utf-8",t={}){this.encoding=e.toLowerCase(),this.fatal=t.fatal||!1,this.ignoreBOM=t.ignoreBOM||!1}decode(e){if(!e)return"";const t=e instanceof Uint8Array?e:new Uint8Array(e),n=[];let o=0;for(!this.ignoreBOM&&t.length>=3&&t[0]===239&&t[1]===187&&t[2]===191&&(o=3);o<t.length;){const i=t[o++];if(i<128){n.push(String.fromCharCode(i));continue}if((i&224)===192){if(o>=t.length){if(this.fatal)throw new Error("Invalid UTF-8 sequence");n.push("�");break}const c=t[o++];if((c&192)!==128){if(this.fatal)throw new Error("Invalid UTF-8 sequence");n.push("�");continue}const d=(i&31)<<6|c&63;n.push(String.fromCharCode(d));continue}if((i&240)===224){if(o+1>=t.length){if(this.fatal)throw new Error("Invalid UTF-8 sequence");n.push("�");break}const c=t[o++],d=t[o++];if((c&192)!==128||(d&192)!==128){if(this.fatal)throw new Error("Invalid UTF-8 sequence");n.push("�");continue}const g=(i&15)<<12|(c&63)<<6|d&63;n.push(String.fromCharCode(g));continue}if((i&248)===240){if(o+2>=t.length){if(this.fatal)throw new Error("Invalid UTF-8 sequence");n.push("�");break}const c=t[o++],d=t[o++],g=t[o++];if((c&192)!==128||(d&192)!==128||(g&192)!==128){if(this.fatal)throw new Error("Invalid UTF-8 sequence");n.push("�");continue}let h=(i&7)<<18|(c&63)<<12|(d&63)<<6|g&63;h>65535?(h-=65536,n.push(String.fromCharCode(55296+(h>>10))),n.push(String.fromCharCode(56320+(h&1023)))):n.push(String.fromCharCode(h));continue}if(this.fatal)throw new Error("Invalid UTF-8 sequence");n.push("�")}return n.join("")}},py=(Q=class extends Uint8Array{static from(e,t){if(typeof e=="string")return Q.fromString(e,t||"utf8");if(e instanceof Uint8Array){const n=new Uint8Array(e);return Object.setPrototypeOf(n,Q.prototype),n}if(e instanceof ArrayBuffer){const n=new Uint8Array(e);return Object.setPrototypeOf(n,Q.prototype),n}if(Array.isArray(e)||e&&typeof e.length=="number"){const n=new Uint8Array(e);return Object.setPrototypeOf(n,Q.prototype),n}throw new TypeError("Invalid input type for Buffer.from")}static fromString(e,t){let n;switch(t.toLowerCase()){case"base64":n=Q.decodeBase64(e);break;case"hex":n=Q.decodeHex(e);break;default:n=Q.encodeUtf8(e);break}return Object.setPrototypeOf(n,Q.prototype),n}static encodeUtf8(e){const t=[];for(let n=0;n<e.length;n++){let o=e.charCodeAt(n);if(o>=55296&&o<=56319&&n+1<e.length){const i=e.charCodeAt(n+1);i>=56320&&i<=57343&&(o=65536+(o-55296<<10)+(i-56320),n++)}o<128?t.push(o):o<2048?(t.push(192|o>>6),t.push(128|o&63)):o<65536?(t.push(224|o>>12),t.push(128|o>>6&63),t.push(128|o&63)):o<1114112&&(t.push(240|o>>18),t.push(128|o>>12&63),t.push(128|o>>6&63),t.push(128|o&63))}return new Uint8Array(t)}static decodeBase64(e){e=e.replace(/\s/g,"");let t=0;e.endsWith("==")?t=2:e.endsWith("=")&&(t=1);const n=e.length*3/4-t,o=new Uint8Array(n);let i=0,c=0;for(;c<e.length;){const d=e[c]==="="?0:Q.BASE64_LOOKUP[e[c]]??0;c++;const g=e[c]==="="?0:Q.BASE64_LOOKUP[e[c]]??0;c++;const h=e[c]==="="?0:Q.BASE64_LOOKUP[e[c]]??0;c++;const b=e[c]==="="?0:Q.BASE64_LOOKUP[e[c]]??0;c++;const v=d<<2|g>>4,E=(g&15)<<4|h>>2,Z=(h&3)<<6|b;i<n&&(o[i++]=v),i<n&&(o[i++]=E),i<n&&(o[i++]=Z)}return o}static decodeHex(e){if(e=e.replace(/\s/g,""),e.length%2!==0)throw new Error("Invalid hex string length");const t=new Uint8Array(e.length/2);for(let n=0;n<e.length;n+=2)t[n/2]=parseInt(e.substr(n,2),16);return t}static alloc(e,t,n){const o=new Uint8Array(e);if(t!==void 0){if(typeof t=="number")o.fill(t);else if(typeof t=="string"){const i=Q.from(t,n);for(let c=0;c<e;c++)o[c]=i[c%i.length]}}return Object.setPrototypeOf(o,Q.prototype),o}static allocUnsafe(e){const t=new Uint8Array(e);return Object.setPrototypeOf(t,Q.prototype),t}static isBuffer(e){return e instanceof Q||e instanceof Uint8Array}static concat(e,t){if(e.length===0)return Q.alloc(0);t===void 0&&(t=e.reduce((i,c)=>i+c.length,0));const n=Q.alloc(t);let o=0;for(const i of e){const c=Math.min(i.length,t-o);if(n.set(i.subarray(0,c),o),o+=c,o>=t)break}return n}static compare(e,t){const n=Math.min(e.length,t.length);for(let o=0;o<n;o++)if(e[o]!==t[o])return e[o]<t[o]?-1:1;return e.length<t.length?-1:e.length>t.length?1:0}toString(e,t,n){const o=e||"utf8",i=this.subarray(t||0,n);switch(o.toLowerCase()){case"base64":return Q.encodeBase64(i);case"hex":return Q.encodeHex(i);default:return Q.decodeUtf8(i)}}static decodeUtf8(e){const t=[];let n=0;for(;n<e.length;){const o=e[n++];if(o<128){t.push(String.fromCharCode(o));continue}if((o&224)===192){const i=e[n++],c=(o&31)<<6|i&63;t.push(String.fromCharCode(c));continue}if((o&240)===224){const i=e[n++],c=e[n++],d=(o&15)<<12|(i&63)<<6|c&63;t.push(String.fromCharCode(d));continue}if((o&248)===240){const i=e[n++],c=e[n++],d=e[n++];let g=(o&7)<<18|(i&63)<<12|(c&63)<<6|d&63;g>65535?(g-=65536,t.push(String.fromCharCode(55296+(g>>10))),t.push(String.fromCharCode(56320+(g&1023)))):t.push(String.fromCharCode(g));continue}t.push("�")}return t.join("")}static encodeBase64(e){let t="",n=0;for(;n<e.length;){const o=e.length-n,i=e[n++],c=o>1?e[n++]:0,d=o>2?e[n++]:0,g=i>>2,h=(i&3)<<4|c>>4,b=(c&15)<<2|d>>6,v=d&63;t+=Q.BASE64_CHARS[g],t+=Q.BASE64_CHARS[h],o===1?t+="==":o===2?t+=Q.BASE64_CHARS[b]+"=":t+=Q.BASE64_CHARS[b]+Q.BASE64_CHARS[v]}return t}static encodeHex(e){let t="";for(let n=0;n<e.length;n++)t+=e[n].toString(16).padStart(2,"0");return t}compare(e){return Q.compare(this,e)}equals(e){if(this.length!==e.length)return!1;for(let t=0;t<this.length;t++)if(this[t]!==e[t])return!1;return!0}write(e,t,n,o){const i=t||0,c=o||"utf8",d=Q.from(e,c),g=Math.min(d.length,n!==void 0?n:this.length-i,this.length-i);return this.set(d.subarray(0,g),i),g}},to(Q,"BASE64_CHARS","ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),to(Q,"BASE64_LOOKUP",{}),(()=>{for(let e=0;e<Q.BASE64_CHARS.length;e++)Q.BASE64_LOOKUP[Q.BASE64_CHARS[e]]=e})(),Q);var Ul=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};a.Codec=class{static JSON="json";static PROTOBUF="protobuf";static XML="xml";static YAML="yaml";static THRIFT="thrift";static MESH="mesh";encodeString(e){return this.stringify(this.encode(e))}decodeString(e,t){return this.decode(this.uint8ify(e),t)}},a.Codec=Ul([$(a.Codec.JSON)],a.Codec);const yo=Fn()?.TextEncoder?new TextEncoder:new dy,Wo=Fn()?.TextDecoder?new TextDecoder:new uy,Go=Fn()?.Buffer?Buffer:py;var Il=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};a.JSONCodec=class extends a.Codec{decode(e,t){const n=Wo.decode(e);if(!t||!t.constructor)return JSON.parse(n);const o=JSON.parse(n);return typeof o!="object"&&typeof o!="function"||o==null||t.name==="Object"?o:this.decorateAny(t,o)}decorateAny(e,t){const n=e instanceof ir,o=n?e.raw:e;if(!o)return t;switch(o){case Map:{if(t==null)return{};if(!n||e.parameters.length<1)return t;const i={};for(const c of Object.keys(t))i[this.decorateAny(e.parameters[0],c)]=this.decorateAny(e.parameters[1],t[c]);return i}case Array:return t==null?[]:!n||e.parameters.length<1?t:t.map(i=>this.decorateAny(e.parameters[0],i));case fe:{if(t==null)return null;const i=new o;if(!n||e.parameters.length<1)return Object.assign(i,t);Object.assign(i,t);const c=[];for(let d of i.data||[])c.push(this.decorateAny(e.parameters[0],d));return i.data=c,i}case String:case Number:case Boolean:case Object:return t;case Date:return t==null||t<1?null:new Date(t);case Uint8Array:return t==null?null:t instanceof Uint8Array?t:Go.from(t,"base64");default:{if(t==null)return null;const i=new o;for(const c of Object.keys(i)){const d=Oe.metadata(sr,o,c);if(!d){Reflect.set(i,c,t[c]);continue}const g=t[c]??t[d.name];Reflect.set(i,c,this.decorateAny(d.kind,g))}return i}}}encode(e){return yo.encode(JSON.stringify(e,(t,n)=>{if(n==null||Array.isArray(n))return n;if(!Oe.annotated(n.constructor))return this.encodeAny(n);const o=new Map;for(let c in n){const d=Oe.metadata(sr,n.constructor,c);d?.name&&d.name.length>0&&d.name!=c&&o.set(c,d.name),(d?.kind==Uint8Array||d?.kind==Date||d?.kind==Map)&&Reflect.set(n,c,this.encodeAny(Reflect.get(n,c)))}if(o.size<1)return this.encodeAny(n);const i={};for(let c in n)i[o.get(c)??c]=n[c];return this.encodeAny(i)}))}encodeAny(e){return e instanceof Uint8Array?Go.from(e).toString("base64"):e instanceof Date?e.getTime():e instanceof Map?Object.fromEntries(e):e}uint8ify(e){return yo.encode(e)}stringify(e){return Wo.decode(e)}},a.JSONCodec=Il([$(a.Codec.JSON)],a.JSONCodec);var xr=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Hi=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},lo;a.Compiler=class{},a.Compiler=xr([$("mesh")],a.Compiler);function Dl(r){return{}}a.TSCompiler=(Er=class extends a.Compiler{compile(e,t){}intype(e){return lo.parameters.computeIfy(e,t=>{var n;class o{attachments=new Map;getAttachments(){return this.attachments}map(){return Object.assign(new Map,this)}setAttachments(c){(c||{}).forEach((d,g)=>this.attachments.set(g,d))}getArguments(){return t.getParameters().map(c=>Object.getOwnPropertyDescriptor(this,c.name)?.value)}setArguments(c){const d=ze.load(a.Codec).getDefault();t.getParameters().forEach((g,h)=>{if(c&&c.length>g.index&&!(c[g.index]instanceof ro)){const b=c[g.index];if(b==null)return;if(b instanceof g.kind&&!(g.kind instanceof ir)){Reflect.set(this,g.name,b);return}switch(g.kind){case Map:case Array:case String:case Number:case Boolean:case Object:case Date:case Uint8Array:Reflect.set(this,g.name,b);break;default:const v=d.encode(b),E=d.decode(v,g.kind);Reflect.set(this,g.name,E)}}})}}return xr([s(-1,"attachments",Map),Hi("design:type",typeof(n=typeof Map<"u"&&Map)=="function"?n:Object)],o.prototype,"attachments",void 0),o})}retype(e){return lo.returns.computeIfy(e,t=>{class n{code="";message="";content;cause;getCause(){return this.cause}getCode(){return this.code}getContent(){return this.content}getMessage(){return this.message}setCause(i){this.cause=i}setCode(i){this.code=i}setContent(i){this.content=i}setMessage(i){this.message=i}}return xr([s(0),Hi("design:type",String)],n.prototype,"code",void 0),xr([s(5),Hi("design:type",String)],n.prototype,"message",void 0),xr([s(10,"content",t.getReturnType()),Hi("design:type",Object)],n.prototype,"content",void 0),xr([s(15,"cause",Ut),Hi("design:type",Object)],n.prototype,"cause",void 0),n})}},lo=Er,to(Er,"parameters",new ee),to(Er,"returns",new ee),Er),a.TSCompiler=lo=xr([$("mesh")],a.TSCompiler);var kl=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};a.Consumer=class{static HTTP="http";static GRPC="grpc";static TCP="tcp";static MQTT="mqtt"},a.Consumer=kl([$(a.Consumer.HTTP)],a.Consumer);class mo{servers=new _n;availableAddrs=new _n;relativePath=!1;constructor(e){for(const t of(e||"").split(","))t&&t.trim().length>0&&!this.availableAddrs.includes(t)&&(this.servers.push(new fy(!0,t)),this.availableAddrs.push(t))}any(){if(this.relativePath)return"";const e=this.availableAddrs;return!e||e.length<1?"":e[Math.floor(Math.random()*e.length)]}relative(e){this.relativePath=e}}class fy{available;address;constructor(e,t){this.available=e,this.address=t}}class Fl{value;fn;constructor(e){this.fn=e}get(){return this.value??=this.fn(),this.value}reset(e){this.value=e}}class de{static substring(e,t,n){return!e||e.length>t+n?"":e.substring(t,t+n)}static repeat(e,t){const n=[];for(let o=0;o<t;++o)n.push(e);return n.join("")}static anyone(...e){for(let t of e)if(t&&t.length>0)return t;return""}static traceId(){return""}static spanId(e,t){return""}static MESH_ADDRESS=new Fl(()=>typeof process<"u"&&process.env.MESH_ADDRESS?new mo(process.env.MESH_ADDRESS):globalThis.window!==void 0?new mo(`${globalThis.location.origin}/`):new mo("http://127.0.0.1:443/"));static newEntity(e){if(!e)return new Te;const t=ze.load(a.Codec),n=new Te;return n.codec=t.defaultName(),n.schema="",n.buffer=t.getDefault().encode(e),n}static newCacheEntity(e,t,n){const o=de.newEntity(t),i=new gt;return i.version="1.0.0",i.entity=o,i.timestamp=Date.now(),i.duration=n,i.key=e,i}static readObject(e,t){return!e.buffer||e.buffer.length<1?null:ze.load(a.Codec).get(e.codec??a.Codec.JSON).decode(e.buffer,t)}static compareVersion(e,t){if(!e)return-1;if(!t)return 1;const n=e.split("."),o=t.split(".");for(let i=0;i<n.length;i++){if(o.length<=i)return 0;if(o[i]=="*")continue;const c=n[i].localeCompare(o[i]);if(c!=0)return c}return 0}static ofError(e){return new Ut}static ofCause(e,t,n){throw new Error}static hexString(e){const t=yo.encode(e),n="0123456789abcdef";let o="";for(const i of t){const c=i;o+=n[c>>4],o+=n[c&15]}return o}}var xl=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};class qi extends ro{traceId="";spanId="";timestamp=0;runMode=0;urn="";consumer=new mr;calls=0;attachments=new Map;attributes=new Map;principals=new Rs;static create(){const e=new qi;return e.traceId=de.traceId(),e.spanId=de.spanId("",0),e.timestamp=new Date().getTime(),e.runMode=0,e.urn="",e.consumer=new mr,e}getAttachments(){return this.attachments}getAttribute(e){return this.attributes.get(e.name)}getAttributes(){return this.attributes}getConsumer(e){return this.consumer}getPrincipals(){return this.principals}getProvider(e){return new mr}getRunMode(){return this.runMode}getSpanId(){return this.spanId}getTimestamp(){return this.timestamp}getTraceId(){return this.traceId}getUrn(){return this.urn}setAttribute(e,t){this.attributes.set(e.name,t)}resume(){this.calls++;const e=new qi;return e.traceId=this.getTraceId(),e.spanId=de.spanId(this.getSpanId(),this.calls),e.timestamp=this.getTimestamp(),e.runMode=this.getRunMode(),e.urn=this.getUrn(),e.consumer=this.getConsumer(this),this.getAttachments()&&this.getAttachments().forEach((t,n)=>e.attachments.set(t,n)),this.getAttributes()&&this.getAttributes().forEach((t,n)=>e.attributes.set(t,n)),this.getPrincipals()&&this.getPrincipals().forEach(t=>e.principals.push(t)),e}rewriteContext(e){e.getTraceId()&&(this.traceId=e.getTraceId()),e.getSpanId()&&(this.spanId=e.getSpanId()),e.getTimestamp()&&e.getTimestamp()>0&&(this.timestamp=e.getTimestamp()),e.getRunMode()&&e.getRunMode()>0&&(this.runMode=e.getRunMode()),e.getUrn()&&(this.urn=e.getUrn()),e.getConsumer(this)&&(this.consumer=e.getConsumer(this)),this.getAttachments()&&this.getAttachments().forEach((t,n)=>this.attachments.set(t,n)),this.getAttributes()&&this.getAttributes().forEach((t,n)=>this.attributes.set(t,n)),this.getPrincipals()&&this.getPrincipals().forEach(t=>this.principals.push(t))}rewriteURN(e){this.urn=e}}a.MeshContextProvider=class extends a.ContextProvider{context(){return qi.create()}},a.MeshContextProvider=xl([$("mesh")],a.MeshContextProvider);var Bl=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};a.Eden=class{},a.Eden=Bl([$("mesh")],a.Eden);class Gt{static REMOTE=new ar("mesh.mpc.address");static REMOTE_NAME=new ar("mesh.mpc.remote.name");static INVOCATION=new ar("mesh.invocation");static UNAME=new ar("mesh.mpc.uname");static CONSUMER=new ar("mesh.mpc.consumer");static CODEC=new ar("mesh.mpc.codec");static TIMEOUT=new ar("mesh.mpc.timeout")}class er{code;name;constructor(e,t){this.code=e,this.name=t}}class je{static HTTP=new er("00",a.Consumer.HTTP);static GRPC=new er("01",a.Consumer.GRPC);static MQTT=new er("02",a.Consumer.MQTT);static TCP=new er("03",a.Consumer.TCP);static JSON=new er("00",a.Codec.JSON);static PROTOBUF=new er("01",a.Codec.PROTOBUF);static XML=new er("02",a.Codec.XML);static THRIFT=new er("03",a.Codec.THRIFT);static YAML=new er("04",a.Codec.YAML);static PROTO=[je.HTTP,je.GRPC,je.MQTT,je.TCP];static CODEC=[je.JSON,je.PROTOBUF,je.XML,je.THRIFT,je.YAML];static ofProto(e){for(let t of je.PROTO)if(t.code==e)return t;return je.HTTP}static ofCodec(e){for(let t of je.CODEC)if(t.code==e)return t;return je.JSON}static ofName(e){for(let t of je.PROTO)if(t.name==e)return t;for(let t of je.CODEC)if(t.name==e)return t;return je.HTTP}}const Ll=r=>{const e=p();return e.setAttribute(Gt.CONSUMER,ze.load(a.Consumer).get(r)),e},Hl=r=>{const e=p();return e.setAttribute(Gt.CODEC,ze.load(a.Codec).get(r)),e};class yy{inspector;reference;service;constructor(e,t){this.reference=new Nn,this.reference.urn=t.toString(),this.reference.namespace="",this.reference.name=t.name,this.reference.version=t.flag.version,this.reference.proto=je.ofProto(t.flag.proto).name,this.reference.codec=je.ofCodec(t.flag.codec).name,this.reference.flags=0,this.reference.timeout=parseInt(Ke.MESH_TIMEOUT.get(e))||1e4,this.reference.retries=3,this.reference.mdc=t.mdc,this.reference.zone=t.flag.zone,this.reference.cluster=t.flag.cluster,this.reference.cell=t.flag.cell,this.reference.group=t.flag.group,this.reference.address=t.flag.address,this.service=new Ft,this.inspector=new ly(t)}inflect(e){return new Jo}inspect(e){return this.inspector}intype(e){return Jo}reflect(e){return new Xo}retype(e){return Xo}schema(e){return this.reference}}class ly{urn;constructor(e){this.urn=e}getType(){return Object}getAnnotation(e){}getName(){return this.urn.name}getParameters(){return[]}getReturnType(){return new ir(Map)}getExecutable(){return()=>{}}getSymbol(){return this.urn.name}invoke(e,t){}}class Jo extends Map{map(){return this}getArguments(){const e=[];return super.forEach((t,n)=>{n!="attachments"&&e.push(t)}),e}getAttachments(){const e=Object.getOwnPropertyDescriptor(this,"attachments")?.value||new Map;if(e instanceof Map)return e;const t=ze.load(a.Codec).get(a.Codec.JSON),n=t.decode(t.encode(e),Map);return this.setAttachments(n),n}setArguments(e){}setAttachments(e){Object.assign(this,{attachments:Ut})}}class Xo extends Map{getCause(){const e=Object.getOwnPropertyDescriptor(this,"cause")?.value;if(!e||e instanceof Ut)return e;const t=ze.load(a.Codec).get(a.Codec.JSON);return t.decode(t.encode(e),Ut)}getCode(){return Object.getOwnPropertyDescriptor(this,"code")?.value}getContent(){return Object.getOwnPropertyDescriptor(this,"content")?.value}getMessage(){return Object.getOwnPropertyDescriptor(this,"message")?.value||""}setCause(e){Object.assign(this,{cause:e})}setCode(e){Object.assign(this,{code:e})}setContent(e){Object.assign(this,{content:e})}setMessage(e){Object.assign(this,{message:e})}}var ql=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};const my="PROVIDER",go="CONSUMER";a.Filter=class{},a.Filter=ql([$("*")],a.Filter);function Yo(r,e){const t=ze.load(a.Filter).list().filter(n=>{const o=Oe.metadata(un,n?.constructor,n?.constructor);return!o||o.pattern==""||o?.pattern==e}).sort((n,o)=>{const i=Oe.metadata(un,n?.constructor,n?.constructor)?.priority||0,c=Oe.metadata(un,o?.constructor,o?.constructor)?.priority||0;return i==c?0:i<c?-1:1});return zl(r,t)}function zl(r,e){let t=r;for(let n=e.length-1;n>=0;n--){let o=e[n],i=t;t=new class{run(c,d){return o.invoke(c,i,d)}}}return t}var Kl=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};class Vl{beforeHooks=new ee;successHooks=new ee;failureHooks=new ee}const Nr=()=>{const r=Fn();return r.Mesh??=new Vl,r.Mesh};class Wl{onBefore(e,t){Nr().beforeHooks.set(e,t)}onSuccess(e,t){Nr().successHooks.set(e,t)}onFailure(e,t){Nr().failureHooks.set(e,t)}before(){return Nr().beforeHooks}success(){return Nr().successHooks}failure(){return Nr().failureHooks}}const mi=new Wl;a.HookFilter=class extends a.Filter{async invoke(e,t,n){try{for(const[i,c]of mi.before())await c(e,n);const o=await t.run(e,n);for(const[i,c]of mi.success())await c(e,n,o);return o}catch(o){for(const[i,c]of mi.failure())Os(o)?await c(e,n,o):await c(e,n,u.SYSTEM_ERROR);throw o}}},a.HookFilter=Kl([$("hook",go)],a.HookFilter);class gy{proxy;inspector;parameters;execution;constructor(e,t,n,o){this.proxy=e,this.inspector=t,this.parameters=n,this.execution=o}getArguments(e){return this.parameters.getArguments()}getAttachments(e){return this.parameters.getAttachments()}getExecution(e){return this.execution}getInspector(e){return this.inspector}getParameters(e){return this.parameters}getProxy(e){return this.proxy}isAsync(e){return!1}}class an{static CN="firmer";static MESH_DOMAIN=this.CN+".tech";static LocalMDC="XX00000000000000";domain="";mdc="";flag=new Tr;name="";static from(e){const t=new an;if(!e)return console.log(`Unresolved urn ${e}`),t;const n=t.asArray(e);return n.length<5?(console.log(`Unresolved urn ${e}`),t):(n.reverse(),t.domain=`${n.splice(1,1).join("")}.${n.splice(0,1).join("")}`,t.mdc=n.splice(0,1).join(""),t.flag=Tr.from(n.splice(0,1).join("")),t.name=n.join("."),t)}static urn(e){const t=new an;return t.mdc=this.LocalMDC,t.flag=Tr.from("0001000000000000000000000000000000000"),t.name=e,t.domain=this.MESH_DOMAIN,t}proto(e){return this.flag.proto=e,this}codec(e){return this.flag.codec=e,this}toString(){const e=[],t=this.asArray(this.name);return t.reverse(),t.filter(n=>n).forEach(n=>e.push(n)),e.push(this.flag.toString()),e.push(this.mdc),e.push(de.anyone(this.domain,an.MESH_DOMAIN)),e.join(".")}asArray(e){const t=e.split("."),n=[],o=[];for(let i of t){if(i.startsWith("${")){o.push(i),o.push(".");continue}if(i.endsWith("}")){o.push(i),n.push(o.join("")),o.splice(0,o.length);continue}n.push(i)}return n}matchName(e){return e?e.endsWith(".*")&&e.startsWith(e.replace(".*","")):!1}resetFlag(e,t){return this.flag.proto=e,this.flag.codec=t,this}}class Tr{v="00";proto="00";codec="00";version="000000";zone="00";cluster="00";cell="00";group="00";address="000000000000";port="00000";static from(e){if(!e)return new Tr;const t=new Tr;return t.v=de.substring(e,0,2),t.proto=de.substring(e,2,2),t.codec=de.substring(e,4,2),t.version=this.reduce(de.substring(e,6,6),2),t.zone=de.substring(e,12,2),t.cluster=de.substring(e,14,2),t.cell=de.substring(e,16,2),t.group=de.substring(e,18,2),t.address=this.reduce(de.substring(e,20,12),3),t.port=this.reduce(de.substring(e,32,5),5),t}toString(){const e=this.padding(de.anyone(this.v,""),2),t=this.padding(de.anyone(this.proto,""),2),n=this.padding(de.anyone(this.codec,""),2),o=this.paddingChain(de.anyone(this.version,""),2,3),i=this.padding(de.anyone(this.zone,""),2),c=this.padding(de.anyone(this.cluster,""),2),d=this.padding(de.anyone(this.cell,""),2),g=this.padding(de.anyone(this.group,""),2),h=this.paddingChain(de.anyone(this.address,""),3,4),b=this.padding(de.anyone(this.port,""),5);return`${e}${t}${n}${o}${i}${c}${d}${g}${h}${b}`}padding(e,t){const n=e.replace(".","");return n.length==t?n:n.length<t?de.repeat("0",t-e.length)+n:e.substring(0,t)}paddingChain(e,t,n){const o=e.split("[.*]"),i=o.map(c=>parseInt(c)?c:"");if(i.length==n)return i.map(c=>this.padding(c,t)).join("");if(i.length<n){for(let c=0;c<n-o.length;c++)i.push("");return i.map(c=>this.padding(c,t)).join("")}return i.slice(0,n).map(c=>this.padding(c,t)).join("")}static reduce(e,t){if(!e)return e;const n=[];for(let o=0;o<e.length;o+=t){let i=!0;for(let c=o;c<o+t;c++)e.charAt(c)!="0"&&(i=!1),i||n.push(e.charAt(c));i&&n.push("0"),n.push(".")}return n.slice(0,n.length-1).join("")}}class hy{placeholder="${mesh.name}";macro;invoker;constructor(e){this.macro=e,this.invoker=Yo(this,go)}context(e){if(!e||e.length<1)return p();for(let t of e)if(t instanceof ro)return t;return p()}invoke(e,t,n){return new Promise(async(o,i)=>{try{const c=this.context(n),d=this.referExecution(c,t),g=this.rewriteURN(c,d);c.rewriteURN(g),c.setAttribute(Gt.REMOTE,this.rewriteAddress(c,g));const h=d.inflect(c);h.setArguments(n),h.setAttachments(new Map);const b=new gy(this,t,h,d);c.setAttribute(Gt.INVOCATION,b),o(await this.invoker.run(c,b))}catch(c){i(cr.errorf(c))}})}async run(e,t){const n=this.referExecution(e,t.getInspector(e)),o=ze.load(a.Consumer),i=e.getAttribute(Gt.CONSUMER)??o.getDefault(),c=de.anyone(e.getAttribute(Gt.REMOTE),de.MESH_ADDRESS.get().any()),d=n.schema(e).codec||je.JSON.name,g=ze.load(a.Codec),h=e.getAttribute(Gt.CODEC)??g.get(d),b=h.encode(t.getParameters(e)),v=je.ofName(o.defaultName()).code,E=je.ofName(g.defaultName()).code,Z=an.from(e.getUrn()).resetFlag(v,E).toString(),_=await i.consume(e,c,Z,n,b);return await this.deserialize(e,n,h,_)}deserialize(e,t,n,o){return new Promise((i,c)=>{try{const d=t.retype(e),g=n.decode(o,d);if(g.getCause()){c(cr.errorf(g.getCause()));return}if(u.SUCCESS.getCode()!=g.getCode()){c(new J(g.getCode(),g.getMessage()));return}i(g.getContent())}catch(d){c(cr.errorf(d))}})}referExecution(e,t){const o=ze.load(a.Eden).getDefault().refer(e,t.getAnnotation(De),t.getType(),t);if(o)return o;throw new Error(`Method ${t.getName()} cant be compatible`)}rewriteURN(e,t){const n=e.getPrincipals().peek()?.id,o=e.getAttribute(Gt.UNAME),i=e.getAttribute(Gt.REMOTE_NAME);if(!n&&!o&&!i&&!t.schema(e).urn.includes(this.placeholder))return t.schema(e).urn;const c=an.from(t.schema(e).urn);return n&&n!=""&&(c.mdc=n),o&&o!=""&&(c.name=o),i&&i!=""&&(c.name=c.name.replace(this.placeholder,i)),c.name.includes(this.placeholder)&&(c.name=c.name.replace(this.placeholder,"mesh")),c.toString()}rewriteAddress(e,t){const n=e.getAttribute(Gt.REMOTE);return n&&n!=""?n:de.MESH_ADDRESS.get().any()}}var Gl=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Qo;a.ServiceProxy=Qo=class extends a.MethodProxy{proxy(e){return Qo.proxy(e)}static proxy(e){return this.doProxy(e,f(""))}static doProxy(e,t){return $o.newProxyInstance(e,new hy(t))}},a.ServiceProxy=Qo=Gl([$("mesh")],a.ServiceProxy);class Jl{service;constructor(e){this.service=e}run(e,t){return new Promise((n,o)=>{try{const i=[e,...t.getArguments(e)],c=t.getInspector(e).invoke(this.service,i);if(c instanceof Promise){c.then(d=>n(d)).catch(d=>o(d));return}n(c)}catch(i){o(i)}})}}class by{invoker;constructor(e){this.invoker=Yo(new Jl(e),my)}run(e,t){return this.invoker.run(e,t)}}var Xl=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};let Yl=class{constructor(e,t,n){this.making=e,this.kind=t,this.service=n}making;kind;service};class Ql{metadata;reference;proxy;constructor(e,t){this.metadata=e,this.reference=t,this.proxy=a.ServiceProxy.doProxy(t,e)}}class Zl{urn;kind;method;target;resource;inspector;invoker;__intype;__retype;constructor(e,t,n,o,i){this.urn=e,this.kind=t,this.method=n,this.target=o,this.resource=i,this.inspector=n,this.invoker=new by(o),this.__intype=ze.load(a.Compiler).getDefault().intype(n),this.__retype=ze.load(a.Compiler).getDefault().retype(n)}inflect(e){return new this.__intype}inspect(e){return this.inspector}intype(e){return this.__intype}reflect(e){return new this.__retype}retype(e){return this.__retype}schema(e){return this.resource}}a.MeshEden=class extends a.Eden{providers=new ee;consumers=new ee;indies=new ee;services=new ee;references=new ee;define(e,t,n){return this.makeConsumer(e,t,n).proxy}store(e,t,n){this.providers.set(t,new Yl(!1,t,n))}infer(e,t){const n=an.from(t),o=this.makeServiceExecution(this.getEnviron(e)),i=o?.get(n.name);if(i)return i;for(let c of o.entries())if(n.matchName(c[0]))return c[1];return new yy(e,n)}refer(e,t,n,o){const i=this.makeConsumer(e,t,n),c=this.getEnviron(e),d=this.indies.computeIfy(n,g=>new ee).computeIfy(t,g=>{const h=new ee;return this.getMethods(e,n).forEach((b,v)=>b.forEach(E=>{const Z=this.makeMethodAsReference(c,t,v,E),_=new Zl(Z.urn,n,E,i.proxy,Z);this.references.set(Z.urn,_),h.set(E,_)})),h}).get(o);if(d)return d;throw new Error(`Method ${o.getName()} cant be compatible`)}inferTypes(e){const t=[];for(let n of this.providers)t.push(n[1].kind);return t}referTypes(e){const t=[];for(let n of this.consumers.keys())t.push(n);return t}makeConsumer(e,t,n){return this.consumers.computeIfy(n,o=>new ee).computeIfy(t,o=>new Ql(t,n))}makeMethodAsReference(e,t,n,o){const i=new Nn;return i.namespace=n.name,i.name=o.getName(),i.version=o.getAnnotation(De)?.version||"",i.proto=o.getAnnotation(De)?.proto||"",i.codec=o.getAnnotation(De)?.codec||"",i.flags=o.getAnnotation(De)?.flags||0,i.timeout=o.getAnnotation(De)?.timeout||12e3,i.retries=o.getAnnotation(De)?.retries||0,i.mdc=o.getAnnotation(De)?.mdc||"",i.zone=o.getAnnotation(De)?.zone||"",i.cluster=o.getAnnotation(De)?.cluster||"",i.cell=o.getAnnotation(De)?.cell||"",i.group=o.getAnnotation(De)?.group||"",i.address=o.getAnnotation(De)?.address||"",i.urn=this.getURN(o.getAnnotation(De)?.name||"",Ft,e),i}getURN(e,t,n){const o=new an;return o.domain=an.MESH_DOMAIN,o.mdc=de.anyone(t.mdc,n.mdc),o.name=e,o.flag=this.getURNFlag(t),o.toString()}getURNFlag(e){const t=(e.address||"").split(":"),n=new Tr;return n.v="00",n.proto=je.ofName(e.proto).code,n.codec=je.ofName(e.codec).code,n.version=e.version,n.zone=e.zone,n.cluster=e.cluster,n.cell=e.cell,n.group=e.group,n.address=t.length>0?t[0]:"",n.port=t.length>1?t[1]:"",n}getMethods(e,t){const n=$o.getMethods(t),o=new ee;return o.set(t,n),o}getEnviron(e){const t=new Fe;return t.mdc=an.LocalMDC,t}makeServiceExecution(e){for(let t of this.providers)t[1].making;return this.services}},a.MeshEden=Xl([$("mesh")],a.MeshEden);var em=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};const Zo="mock";a.MockFilter=class extends a.Filter{async invoke(e,t,n){if(!xn.Mock.matches(e.getRunMode())&&!Ct.Mock.enable())return await t.run(e,n);const o=ze.load(n.getInspector(e).getType()).want(Zo);if(!o)return await t.run(e,n);const i=o[n.getInspector(e).getName()];return!i||typeof i!="function"?await t.run(e,n):await i(n.getArguments(e))}},a.MockFilter=em([$(Zo,go)],a.MockFilter);var tm=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};a.Provider=class{},a.Provider=tm([$(a.Consumer.GRPC)],a.Provider);var nm=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};a.GRPCConsumer=class extends a.Consumer{start(){}close(){}consume(e,t,n,o,i){return Promise.reject(u.URN_NOT_PERMIT)}},a.GRPCConsumer=nm([$(a.Consumer.GRPC)],a.GRPCConsumer);var rm=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};a.GRPCProvider=class extends a.Provider{start(){}close(){}},a.GRPCProvider=rm([$(a.Consumer.GRPC)],a.GRPCProvider);function Sy(r,e){return function(){return r.apply(e,arguments)}}const{toString:im}=Object.prototype,{getPrototypeOf:es}=Object,{iterator:ho,toStringTag:_y}=Symbol,bo=(r=>e=>{const t=im.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),mn=r=>(r=r.toLowerCase(),e=>bo(e)===r),So=r=>e=>typeof e===r,{isArray:gi}=Array,hi=So("undefined");function zi(r){return r!==null&&!hi(r)&&r.constructor!==null&&!hi(r.constructor)&&Ht(r.constructor.isBuffer)&&r.constructor.isBuffer(r)}const vy=mn("ArrayBuffer");function om(r){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(r):e=r&&r.buffer&&vy(r.buffer),e}const sm=So("string"),Ht=So("function"),Oy=So("number"),Ki=r=>r!==null&&typeof r=="object",cm=r=>r===!0||r===!1,_o=r=>{if(bo(r)!=="object")return!1;const e=es(r);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(_y in r)&&!(ho in r)},am=r=>{if(!Ki(r)||zi(r))return!1;try{return Object.keys(r).length===0&&Object.getPrototypeOf(r)===Object.prototype}catch{return!1}},dm=mn("Date"),um=mn("File"),pm=r=>!!(r&&typeof r.uri<"u"),fm=r=>r&&typeof r.getParts<"u",ym=mn("Blob"),lm=mn("FileList"),mm=r=>Ki(r)&&Ht(r.pipe);function gm(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Ry=gm(),Py=typeof Ry.FormData<"u"?Ry.FormData:void 0,hm=r=>{let e;return r&&(Py&&r instanceof Py||Ht(r.append)&&((e=bo(r))==="formdata"||e==="object"&&Ht(r.toString)&&r.toString()==="[object FormData]"))},bm=mn("URLSearchParams"),[Sm,_m,vm,Om]=["ReadableStream","Request","Response","Headers"].map(mn),Rm=r=>r.trim?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Vi(r,e,{allOwnKeys:t=!1}={}){if(r===null||typeof r>"u")return;let n,o;if(typeof r!="object"&&(r=[r]),gi(r))for(n=0,o=r.length;n<o;n++)e.call(null,r[n],n,r);else{if(zi(r))return;const i=t?Object.getOwnPropertyNames(r):Object.keys(r),c=i.length;let d;for(n=0;n<c;n++)d=i[n],e.call(null,r[d],d,r)}}function jy(r,e){if(zi(r))return null;e=e.toLowerCase();const t=Object.keys(r);let n=t.length,o;for(;n-- >0;)if(o=t[n],e===o.toLowerCase())return o;return null}const Br=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,wy=r=>!hi(r)&&r!==Br;function ts(){const{caseless:r,skipUndefined:e}=wy(this)&&this||{},t={},n=(o,i)=>{if(i==="__proto__"||i==="constructor"||i==="prototype")return;const c=r&&jy(t,i)||i;_o(t[c])&&_o(o)?t[c]=ts(t[c],o):_o(o)?t[c]=ts({},o):gi(o)?t[c]=o.slice():(!e||!hi(o))&&(t[c]=o)};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&Vi(arguments[o],n);return t}const Pm=(r,e,t,{allOwnKeys:n}={})=>(Vi(e,(o,i)=>{t&&Ht(o)?Object.defineProperty(r,i,{value:Sy(o,t),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(r,i,{value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),r),jm=r=>(r.charCodeAt(0)===65279&&(r=r.slice(1)),r),wm=(r,e,t,n)=>{r.prototype=Object.create(e.prototype,n),Object.defineProperty(r.prototype,"constructor",{value:r,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(r,"super",{value:e.prototype}),t&&Object.assign(r.prototype,t)},Nm=(r,e,t,n)=>{let o,i,c;const d={};if(e=e||{},r==null)return e;do{for(o=Object.getOwnPropertyNames(r),i=o.length;i-- >0;)c=o[i],(!n||n(c,r,e))&&!d[c]&&(e[c]=r[c],d[c]=!0);r=t!==!1&&es(r)}while(r&&(!t||t(r,e))&&r!==Object.prototype);return e},Tm=(r,e,t)=>{r=String(r),(t===void 0||t>r.length)&&(t=r.length),t-=e.length;const n=r.indexOf(e,t);return n!==-1&&n===t},Em=r=>{if(!r)return null;if(gi(r))return r;let e=r.length;if(!Oy(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=r[e];return t},Am=(r=>e=>r&&e instanceof r)(typeof Uint8Array<"u"&&es(Uint8Array)),Mm=(r,e)=>{const n=(r&&r[ho]).call(r);let o;for(;(o=n.next())&&!o.done;){const i=o.value;e.call(r,i[0],i[1])}},$m=(r,e)=>{let t;const n=[];for(;(t=r.exec(e))!==null;)n.push(t);return n},Cm=mn("HTMLFormElement"),Um=r=>r.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,o){return n.toUpperCase()+o}),Ny=(({hasOwnProperty:r})=>(e,t)=>r.call(e,t))(Object.prototype),Im=mn("RegExp"),Ty=(r,e)=>{const t=Object.getOwnPropertyDescriptors(r),n={};Vi(t,(o,i)=>{let c;(c=e(o,i,r))!==!1&&(n[i]=c||o)}),Object.defineProperties(r,n)},Dm=r=>{Ty(r,(e,t)=>{if(Ht(r)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const n=r[t];if(Ht(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},km=(r,e)=>{const t={},n=o=>{o.forEach(i=>{t[i]=!0})};return gi(r)?n(r):n(String(r).split(e)),t},Fm=()=>{},xm=(r,e)=>r!=null&&Number.isFinite(r=+r)?r:e;function Bm(r){return!!(r&&Ht(r.append)&&r[_y]==="FormData"&&r[ho])}const Lm=r=>{const e=new Array(10),t=(n,o)=>{if(Ki(n)){if(e.indexOf(n)>=0)return;if(zi(n))return n;if(!("toJSON"in n)){e[o]=n;const i=gi(n)?[]:{};return Vi(n,(c,d)=>{const g=t(c,o+1);!hi(g)&&(i[d]=g)}),e[o]=void 0,i}}return n};return t(r,0)},Hm=mn("AsyncFunction"),qm=r=>r&&(Ki(r)||Ht(r))&&Ht(r.then)&&Ht(r.catch),Ey=((r,e)=>r?setImmediate:e?((t,n)=>(Br.addEventListener("message",({source:o,data:i})=>{o===Br&&i===t&&n.length&&n.shift()()},!1),o=>{n.push(o),Br.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",Ht(Br.postMessage)),zm=typeof queueMicrotask<"u"?queueMicrotask.bind(Br):typeof process<"u"&&process.nextTick||Ey,l={isArray:gi,isArrayBuffer:vy,isBuffer:zi,isFormData:hm,isArrayBufferView:om,isString:sm,isNumber:Oy,isBoolean:cm,isObject:Ki,isPlainObject:_o,isEmptyObject:am,isReadableStream:Sm,isRequest:_m,isResponse:vm,isHeaders:Om,isUndefined:hi,isDate:dm,isFile:um,isReactNativeBlob:pm,isReactNative:fm,isBlob:ym,isRegExp:Im,isFunction:Ht,isStream:mm,isURLSearchParams:bm,isTypedArray:Am,isFileList:lm,forEach:Vi,merge:ts,extend:Pm,trim:Rm,stripBOM:jm,inherits:wm,toFlatObject:Nm,kindOf:bo,kindOfTest:mn,endsWith:Tm,toArray:Em,forEachEntry:Mm,matchAll:$m,isHTMLForm:Cm,hasOwnProperty:Ny,hasOwnProp:Ny,reduceDescriptors:Ty,freezeMethods:Dm,toObjectSet:km,toCamelCase:Um,noop:Fm,toFiniteNumber:xm,findKey:jy,global:Br,isContextDefined:wy,isSpecCompliantForm:Bm,toJSONObject:Lm,isAsyncFn:Hm,isThenable:qm,setImmediate:Ey,asap:zm,isIterable:r=>r!=null&&Ht(r[ho])};let L=class ml extends Error{static from(e,t,n,o,i,c){const d=new ml(e.message,t||e.code,n,o,i);return d.cause=e,d.name=e.name,e.status!=null&&d.status==null&&(d.status=e.status),c&&Object.assign(d,c),d}constructor(e,t,n,o,i){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),i&&(this.response=i,this.status=i.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:l.toJSONObject(this.config),code:this.code,status:this.status}}};L.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",L.ERR_BAD_OPTION="ERR_BAD_OPTION",L.ECONNABORTED="ECONNABORTED",L.ETIMEDOUT="ETIMEDOUT",L.ERR_NETWORK="ERR_NETWORK",L.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",L.ERR_DEPRECATED="ERR_DEPRECATED",L.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",L.ERR_BAD_REQUEST="ERR_BAD_REQUEST",L.ERR_CANCELED="ERR_CANCELED",L.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",L.ERR_INVALID_URL="ERR_INVALID_URL";const Km=null;function ns(r){return l.isPlainObject(r)||l.isArray(r)}function Ay(r){return l.endsWith(r,"[]")?r.slice(0,-2):r}function rs(r,e,t){return r?r.concat(e).map(function(o,i){return o=Ay(o),!t&&i?"["+o+"]":o}).join(t?".":""):e}function Vm(r){return l.isArray(r)&&!r.some(ns)}const Wm=l.toFlatObject(l,{},null,function(e){return/^is[A-Z]/.test(e)});function vo(r,e,t){if(!l.isObject(r))throw new TypeError("target must be an object");e=e||new FormData,t=l.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(M,P){return!l.isUndefined(P[M])});const n=t.metaTokens,o=t.visitor||b,i=t.dots,c=t.indexes,g=(t.Blob||typeof Blob<"u"&&Blob)&&l.isSpecCompliantForm(e);if(!l.isFunction(o))throw new TypeError("visitor must be a function");function h(_){if(_===null)return"";if(l.isDate(_))return _.toISOString();if(l.isBoolean(_))return _.toString();if(!g&&l.isBlob(_))throw new L("Blob is not supported. Use a Buffer instead.");return l.isArrayBuffer(_)||l.isTypedArray(_)?g&&typeof Blob=="function"?new Blob([_]):Buffer.from(_):_}function b(_,M,P){let we=_;if(l.isReactNative(e)&&l.isReactNativeBlob(_))return e.append(rs(P,M,i),h(_)),!1;if(_&&!P&&typeof _=="object"){if(l.endsWith(M,"{}"))M=n?M:M.slice(0,-2),_=JSON.stringify(_);else if(l.isArray(_)&&Vm(_)||(l.isFileList(_)||l.endsWith(M,"[]"))&&(we=l.toArray(_)))return M=Ay(M),we.forEach(function(Ve,lt){!(l.isUndefined(Ve)||Ve===null)&&e.append(c===!0?rs([M],lt,i):c===null?M:M+"[]",h(Ve))}),!1}return ns(_)?!0:(e.append(rs(P,M,i),h(_)),!1)}const v=[],E=Object.assign(Wm,{defaultVisitor:b,convertValue:h,isVisitable:ns});function Z(_,M){if(!l.isUndefined(_)){if(v.indexOf(_)!==-1)throw Error("Circular reference detected in "+M.join("."));v.push(_),l.forEach(_,function(we,At){(!(l.isUndefined(we)||we===null)&&o.call(e,we,l.isString(At)?At.trim():At,M,E))===!0&&Z(we,M?M.concat(At):[At])}),v.pop()}}if(!l.isObject(r))throw new TypeError("data must be an object");return Z(r),e}function My(r){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(r).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function is(r,e){this._pairs=[],r&&vo(r,this,e)}const $y=is.prototype;$y.append=function(e,t){this._pairs.push([e,t])},$y.toString=function(e){const t=e?function(n){return e.call(this,n,My)}:My;return this._pairs.map(function(o){return t(o[0])+"="+t(o[1])},"").join("&")};function Gm(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Cy(r,e,t){if(!e)return r;const n=t&&t.encode||Gm,o=l.isFunction(t)?{serialize:t}:t,i=o&&o.serialize;let c;if(i?c=i(e,o):c=l.isURLSearchParams(e)?e.toString():new is(e,o).toString(n),c){const d=r.indexOf("#");d!==-1&&(r=r.slice(0,d)),r+=(r.indexOf("?")===-1?"?":"&")+c}return r}class Uy{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){l.forEach(this.handlers,function(n){n!==null&&e(n)})}}const os={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Jm={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:is,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},ss=typeof window<"u"&&typeof document<"u",cs=typeof navigator=="object"&&navigator||void 0,Xm=ss&&(!cs||["ReactNative","NativeScript","NS"].indexOf(cs.product)<0),Ym=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Qm=ss&&window.location.href||"http://localhost",yt={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ss,hasStandardBrowserEnv:Xm,hasStandardBrowserWebWorkerEnv:Ym,navigator:cs,origin:Qm},Symbol.toStringTag,{value:"Module"})),...Jm};function Zm(r,e){return vo(r,new yt.classes.URLSearchParams,{visitor:function(t,n,o,i){return yt.isNode&&l.isBuffer(t)?(this.append(n,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...e})}function eg(r){return l.matchAll(/\w+|\[(\w*)]/g,r).map(e=>e[0]==="[]"?"":e[1]||e[0])}function tg(r){const e={},t=Object.keys(r);let n;const o=t.length;let i;for(n=0;n<o;n++)i=t[n],e[i]=r[i];return e}function Iy(r){function e(t,n,o,i){let c=t[i++];if(c==="__proto__")return!0;const d=Number.isFinite(+c),g=i>=t.length;return c=!c&&l.isArray(o)?o.length:c,g?(l.hasOwnProp(o,c)?o[c]=[o[c],n]:o[c]=n,!d):((!o[c]||!l.isObject(o[c]))&&(o[c]=[]),e(t,n,o[c],i)&&l.isArray(o[c])&&(o[c]=tg(o[c])),!d)}if(l.isFormData(r)&&l.isFunction(r.entries)){const t={};return l.forEachEntry(r,(n,o)=>{e(eg(n),o,t,0)}),t}return null}function ng(r,e,t){if(l.isString(r))try{return(e||JSON.parse)(r),l.trim(r)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(r)}const Wi={transitional:os,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",o=n.indexOf("application/json")>-1,i=l.isObject(e);if(i&&l.isHTMLForm(e)&&(e=new FormData(e)),l.isFormData(e))return o?JSON.stringify(Iy(e)):e;if(l.isArrayBuffer(e)||l.isBuffer(e)||l.isStream(e)||l.isFile(e)||l.isBlob(e)||l.isReadableStream(e))return e;if(l.isArrayBufferView(e))return e.buffer;if(l.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let d;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Zm(e,this.formSerializer).toString();if((d=l.isFileList(e))||n.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return vo(d?{"files[]":e}:e,g&&new g,this.formSerializer)}}return i||o?(t.setContentType("application/json",!1),ng(e)):e}],transformResponse:[function(e){const t=this.transitional||Wi.transitional,n=t&&t.forcedJSONParsing,o=this.responseType==="json";if(l.isResponse(e)||l.isReadableStream(e))return e;if(e&&l.isString(e)&&(n&&!this.responseType||o)){const c=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e,this.parseReviver)}catch(d){if(c)throw d.name==="SyntaxError"?L.from(d,L.ERR_BAD_RESPONSE,this,null,this.response):d}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:yt.classes.FormData,Blob:yt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};l.forEach(["delete","get","head","post","put","patch"],r=>{Wi.headers[r]={}});const rg=l.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ig=r=>{const e={};let t,n,o;return r&&r.split(`
2
- `).forEach(function(c){o=c.indexOf(":"),t=c.substring(0,o).trim().toLowerCase(),n=c.substring(o+1).trim(),!(!t||e[t]&&rg[t])&&(t==="set-cookie"?e[t]?e[t].push(n):e[t]=[n]:e[t]=e[t]?e[t]+", "+n:n)}),e},Dy=Symbol("internals");function Gi(r){return r&&String(r).trim().toLowerCase()}function Oo(r){return r===!1||r==null?r:l.isArray(r)?r.map(Oo):String(r)}function og(r){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=t.exec(r);)e[n[1]]=n[2];return e}const sg=r=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim());function as(r,e,t,n,o){if(l.isFunction(n))return n.call(this,e,t);if(o&&(e=t),!!l.isString(e)){if(l.isString(n))return e.indexOf(n)!==-1;if(l.isRegExp(n))return n.test(e)}}function cg(r){return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function ag(r,e){const t=l.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(r,n+t,{value:function(o,i,c){return this[n].call(this,e,o,i,c)},configurable:!0})})}let qt=class{constructor(e){e&&this.set(e)}set(e,t,n){const o=this;function i(d,g,h){const b=Gi(g);if(!b)throw new Error("header name must be a non-empty string");const v=l.findKey(o,b);(!v||o[v]===void 0||h===!0||h===void 0&&o[v]!==!1)&&(o[v||g]=Oo(d))}const c=(d,g)=>l.forEach(d,(h,b)=>i(h,b,g));if(l.isPlainObject(e)||e instanceof this.constructor)c(e,t);else if(l.isString(e)&&(e=e.trim())&&!sg(e))c(ig(e),t);else if(l.isObject(e)&&l.isIterable(e)){let d={},g,h;for(const b of e){if(!l.isArray(b))throw TypeError("Object iterator must return a key-value pair");d[h=b[0]]=(g=d[h])?l.isArray(g)?[...g,b[1]]:[g,b[1]]:b[1]}c(d,t)}else e!=null&&i(t,e,n);return this}get(e,t){if(e=Gi(e),e){const n=l.findKey(this,e);if(n){const o=this[n];if(!t)return o;if(t===!0)return og(o);if(l.isFunction(t))return t.call(this,o,n);if(l.isRegExp(t))return t.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Gi(e),e){const n=l.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||as(this,this[n],n,t)))}return!1}delete(e,t){const n=this;let o=!1;function i(c){if(c=Gi(c),c){const d=l.findKey(n,c);d&&(!t||as(n,n[d],d,t))&&(delete n[d],o=!0)}}return l.isArray(e)?e.forEach(i):i(e),o}clear(e){const t=Object.keys(this);let n=t.length,o=!1;for(;n--;){const i=t[n];(!e||as(this,this[i],i,e,!0))&&(delete this[i],o=!0)}return o}normalize(e){const t=this,n={};return l.forEach(this,(o,i)=>{const c=l.findKey(n,i);if(c){t[c]=Oo(o),delete t[i];return}const d=e?cg(i):String(i).trim();d!==i&&delete t[i],t[d]=Oo(o),n[d]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return l.forEach(this,(n,o)=>{n!=null&&n!==!1&&(t[o]=e&&l.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
3
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(o=>n.set(o)),n}static accessor(e){const n=(this[Dy]=this[Dy]={accessors:{}}).accessors,o=this.prototype;function i(c){const d=Gi(c);n[d]||(ag(o,c),n[d]=!0)}return l.isArray(e)?e.forEach(i):i(e),this}};qt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),l.reduceDescriptors(qt.prototype,({value:r},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>r,set(n){this[t]=n}}}),l.freezeMethods(qt);function ds(r,e){const t=this||Wi,n=e||t,o=qt.from(n.headers);let i=n.data;return l.forEach(r,function(d){i=d.call(t,i,o.normalize(),e?e.status:void 0)}),o.normalize(),i}function ky(r){return!!(r&&r.__CANCEL__)}let Ji=class extends L{constructor(e,t,n){super(e??"canceled",L.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function Fy(r,e,t){const n=t.config.validateStatus;!t.status||!n||n(t.status)?r(t):e(new L("Request failed with status code "+t.status,[L.ERR_BAD_REQUEST,L.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function dg(r){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r);return e&&e[1]||""}function ug(r,e){r=r||10;const t=new Array(r),n=new Array(r);let o=0,i=0,c;return e=e!==void 0?e:1e3,function(g){const h=Date.now(),b=n[i];c||(c=h),t[o]=g,n[o]=h;let v=i,E=0;for(;v!==o;)E+=t[v++],v=v%r;if(o=(o+1)%r,o===i&&(i=(i+1)%r),h-c<e)return;const Z=b&&h-b;return Z?Math.round(E*1e3/Z):void 0}}function pg(r,e){let t=0,n=1e3/e,o,i;const c=(h,b=Date.now())=>{t=b,o=null,i&&(clearTimeout(i),i=null),r(...h)};return[(...h)=>{const b=Date.now(),v=b-t;v>=n?c(h,b):(o=h,i||(i=setTimeout(()=>{i=null,c(o)},n-v)))},()=>o&&c(o)]}const Ro=(r,e,t=3)=>{let n=0;const o=ug(50,250);return pg(i=>{const c=i.loaded,d=i.lengthComputable?i.total:void 0,g=c-n,h=o(g),b=c<=d;n=c;const v={loaded:c,total:d,progress:d?c/d:void 0,bytes:g,rate:h||void 0,estimated:h&&d&&b?(d-c)/h:void 0,event:i,lengthComputable:d!=null,[e?"download":"upload"]:!0};r(v)},t)},xy=(r,e)=>{const t=r!=null;return[n=>e[0]({lengthComputable:t,total:r,loaded:n}),e[1]]},By=r=>(...e)=>l.asap(()=>r(...e)),fg=yt.hasStandardBrowserEnv?((r,e)=>t=>(t=new URL(t,yt.origin),r.protocol===t.protocol&&r.host===t.host&&(e||r.port===t.port)))(new URL(yt.origin),yt.navigator&&/(msie|trident)/i.test(yt.navigator.userAgent)):()=>!0,yg=yt.hasStandardBrowserEnv?{write(r,e,t,n,o,i,c){if(typeof document>"u")return;const d=[`${r}=${encodeURIComponent(e)}`];l.isNumber(t)&&d.push(`expires=${new Date(t).toUTCString()}`),l.isString(n)&&d.push(`path=${n}`),l.isString(o)&&d.push(`domain=${o}`),i===!0&&d.push("secure"),l.isString(c)&&d.push(`SameSite=${c}`),document.cookie=d.join("; ")},read(r){if(typeof document>"u")return null;const e=document.cookie.match(new RegExp("(?:^|; )"+r+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(r){this.write(r,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function lg(r){return typeof r!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)}function mg(r,e){return e?r.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):r}function Ly(r,e,t){let n=!lg(e);return r&&(n||t==!1)?mg(r,e):e}const Hy=r=>r instanceof qt?{...r}:r;function Lr(r,e){e=e||{};const t={};function n(h,b,v,E){return l.isPlainObject(h)&&l.isPlainObject(b)?l.merge.call({caseless:E},h,b):l.isPlainObject(b)?l.merge({},b):l.isArray(b)?b.slice():b}function o(h,b,v,E){if(l.isUndefined(b)){if(!l.isUndefined(h))return n(void 0,h,v,E)}else return n(h,b,v,E)}function i(h,b){if(!l.isUndefined(b))return n(void 0,b)}function c(h,b){if(l.isUndefined(b)){if(!l.isUndefined(h))return n(void 0,h)}else return n(void 0,b)}function d(h,b,v){if(v in e)return n(h,b);if(v in r)return n(void 0,h)}const g={url:i,method:i,data:i,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:d,headers:(h,b,v)=>o(Hy(h),Hy(b),v,!0)};return l.forEach(Object.keys({...r,...e}),function(b){if(b==="__proto__"||b==="constructor"||b==="prototype")return;const v=l.hasOwnProp(g,b)?g[b]:o,E=v(r[b],e[b],b);l.isUndefined(E)&&v!==d||(t[b]=E)}),t}const qy=r=>{const e=Lr({},r);let{data:t,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:c,auth:d}=e;if(e.headers=c=qt.from(c),e.url=Cy(Ly(e.baseURL,e.url,e.allowAbsoluteUrls),r.params,r.paramsSerializer),d&&c.set("Authorization","Basic "+btoa((d.username||"")+":"+(d.password?unescape(encodeURIComponent(d.password)):""))),l.isFormData(t)){if(yt.hasStandardBrowserEnv||yt.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if(l.isFunction(t.getHeaders)){const g=t.getHeaders(),h=["content-type","content-length"];Object.entries(g).forEach(([b,v])=>{h.includes(b.toLowerCase())&&c.set(b,v)})}}if(yt.hasStandardBrowserEnv&&(n&&l.isFunction(n)&&(n=n(e)),n||n!==!1&&fg(e.url))){const g=o&&i&&yg.read(i);g&&c.set(o,g)}return e},gg=typeof XMLHttpRequest<"u"&&function(r){return new Promise(function(t,n){const o=qy(r);let i=o.data;const c=qt.from(o.headers).normalize();let{responseType:d,onUploadProgress:g,onDownloadProgress:h}=o,b,v,E,Z,_;function M(){Z&&Z(),_&&_(),o.cancelToken&&o.cancelToken.unsubscribe(b),o.signal&&o.signal.removeEventListener("abort",b)}let P=new XMLHttpRequest;P.open(o.method.toUpperCase(),o.url,!0),P.timeout=o.timeout;function we(){if(!P)return;const Ve=qt.from("getAllResponseHeaders"in P&&P.getAllResponseHeaders()),Xt={data:!d||d==="text"||d==="json"?P.responseText:P.response,status:P.status,statusText:P.statusText,headers:Ve,config:r,request:P};Fy(function(zt){t(zt),M()},function(zt){n(zt),M()},Xt),P=null}"onloadend"in P?P.onloadend=we:P.onreadystatechange=function(){!P||P.readyState!==4||P.status===0&&!(P.responseURL&&P.responseURL.indexOf("file:")===0)||setTimeout(we)},P.onabort=function(){P&&(n(new L("Request aborted",L.ECONNABORTED,r,P)),P=null)},P.onerror=function(lt){const Xt=lt&&lt.message?lt.message:"Network Error",tr=new L(Xt,L.ERR_NETWORK,r,P);tr.event=lt||null,n(tr),P=null},P.ontimeout=function(){let lt=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const Xt=o.transitional||os;o.timeoutErrorMessage&&(lt=o.timeoutErrorMessage),n(new L(lt,Xt.clarifyTimeoutError?L.ETIMEDOUT:L.ECONNABORTED,r,P)),P=null},i===void 0&&c.setContentType(null),"setRequestHeader"in P&&l.forEach(c.toJSON(),function(lt,Xt){P.setRequestHeader(Xt,lt)}),l.isUndefined(o.withCredentials)||(P.withCredentials=!!o.withCredentials),d&&d!=="json"&&(P.responseType=o.responseType),h&&([E,_]=Ro(h,!0),P.addEventListener("progress",E)),g&&P.upload&&([v,Z]=Ro(g),P.upload.addEventListener("progress",v),P.upload.addEventListener("loadend",Z)),(o.cancelToken||o.signal)&&(b=Ve=>{P&&(n(!Ve||Ve.type?new Ji(null,r,P):Ve),P.abort(),P=null)},o.cancelToken&&o.cancelToken.subscribe(b),o.signal&&(o.signal.aborted?b():o.signal.addEventListener("abort",b)));const At=dg(o.url);if(At&&yt.protocols.indexOf(At)===-1){n(new L("Unsupported protocol "+At+":",L.ERR_BAD_REQUEST,r));return}P.send(i||null)})},hg=(r,e)=>{const{length:t}=r=r?r.filter(Boolean):[];if(e||t){let n=new AbortController,o;const i=function(h){if(!o){o=!0,d();const b=h instanceof Error?h:this.reason;n.abort(b instanceof L?b:new Ji(b instanceof Error?b.message:b))}};let c=e&&setTimeout(()=>{c=null,i(new L(`timeout of ${e}ms exceeded`,L.ETIMEDOUT))},e);const d=()=>{r&&(c&&clearTimeout(c),c=null,r.forEach(h=>{h.unsubscribe?h.unsubscribe(i):h.removeEventListener("abort",i)}),r=null)};r.forEach(h=>h.addEventListener("abort",i));const{signal:g}=n;return g.unsubscribe=()=>l.asap(d),g}},bg=function*(r,e){let t=r.byteLength;if(t<e){yield r;return}let n=0,o;for(;n<t;)o=n+e,yield r.slice(n,o),n=o},Sg=async function*(r,e){for await(const t of _g(r))yield*bg(t,e)},_g=async function*(r){if(r[Symbol.asyncIterator]){yield*r;return}const e=r.getReader();try{for(;;){const{done:t,value:n}=await e.read();if(t)break;yield n}}finally{await e.cancel()}},zy=(r,e,t,n)=>{const o=Sg(r,e);let i=0,c,d=g=>{c||(c=!0,n&&n(g))};return new ReadableStream({async pull(g){try{const{done:h,value:b}=await o.next();if(h){d(),g.close();return}let v=b.byteLength;if(t){let E=i+=v;t(E)}g.enqueue(new Uint8Array(b))}catch(h){throw d(h),h}},cancel(g){return d(g),o.return()}},{highWaterMark:2})},Ky=64*1024,{isFunction:Po}=l,vg=(({Request:r,Response:e})=>({Request:r,Response:e}))(l.global),{ReadableStream:Vy,TextEncoder:Wy}=l.global,Gy=(r,...e)=>{try{return!!r(...e)}catch{return!1}},Og=r=>{r=l.merge.call({skipUndefined:!0},vg,r);const{fetch:e,Request:t,Response:n}=r,o=e?Po(e):typeof fetch=="function",i=Po(t),c=Po(n);if(!o)return!1;const d=o&&Po(Vy),g=o&&(typeof Wy=="function"?(_=>M=>_.encode(M))(new Wy):async _=>new Uint8Array(await new t(_).arrayBuffer())),h=i&&d&&Gy(()=>{let _=!1;const M=new t(yt.origin,{body:new Vy,method:"POST",get duplex(){return _=!0,"half"}}).headers.has("Content-Type");return _&&!M}),b=c&&d&&Gy(()=>l.isReadableStream(new n("").body)),v={stream:b&&(_=>_.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(_=>{!v[_]&&(v[_]=(M,P)=>{let we=M&&M[_];if(we)return we.call(M);throw new L(`Response type '${_}' is not supported`,L.ERR_NOT_SUPPORT,P)})});const E=async _=>{if(_==null)return 0;if(l.isBlob(_))return _.size;if(l.isSpecCompliantForm(_))return(await new t(yt.origin,{method:"POST",body:_}).arrayBuffer()).byteLength;if(l.isArrayBufferView(_)||l.isArrayBuffer(_))return _.byteLength;if(l.isURLSearchParams(_)&&(_=_+""),l.isString(_))return(await g(_)).byteLength},Z=async(_,M)=>{const P=l.toFiniteNumber(_.getContentLength());return P??E(M)};return async _=>{let{url:M,method:P,data:we,signal:At,cancelToken:Ve,timeout:lt,onDownloadProgress:Xt,onUploadProgress:tr,responseType:zt,headers:Xi,withCredentials:bi="same-origin",fetchOptions:No}=qy(_),To=e||fetch;zt=zt?(zt+"").toLowerCase():"text";let Si=hg([At,Ve&&Ve.toAbortSignal()],lt),qr=null;const nr=Si&&Si.unsubscribe&&(()=>{Si.unsubscribe()});let Yi;try{if(tr&&h&&P!=="get"&&P!=="head"&&(Yi=await Z(Xi,we))!==0){let hn=new t(M,{method:"POST",body:we,duplex:"half"}),rr;if(l.isFormData(we)&&(rr=hn.headers.get("content-type"))&&Xi.setContentType(rr),hn.body){const[D,bn]=xy(Yi,Ro(By(tr)));we=zy(hn.body,Ky,D,bn)}}l.isString(bi)||(bi=bi?"include":"omit");const nt=i&&"credentials"in t.prototype,Qi={...No,signal:Si,method:P.toUpperCase(),headers:Xi.normalize().toJSON(),body:we,duplex:"half",credentials:nt?bi:void 0};qr=i&&new t(M,Qi);let gn=await(i?To(qr,No):To(M,Qi));const Zi=b&&(zt==="stream"||zt==="response");if(b&&(Xt||Zi&&nr)){const hn={};["status","statusText","headers"].forEach(Ao=>{hn[Ao]=gn[Ao]});const rr=l.toFiniteNumber(gn.headers.get("content-length")),[D,bn]=Xt&&xy(rr,Ro(By(Xt),!0))||[];gn=new n(zy(gn.body,Ky,D,()=>{bn&&bn(),nr&&nr()}),hn)}zt=zt||"text";let Eo=await v[l.findKey(v,zt)||"text"](gn,_);return!Zi&&nr&&nr(),await new Promise((hn,rr)=>{Fy(hn,rr,{data:Eo,headers:qt.from(gn.headers),status:gn.status,statusText:gn.statusText,config:_,request:qr})})}catch(nt){throw nr&&nr(),nt&&nt.name==="TypeError"&&/Load failed|fetch/i.test(nt.message)?Object.assign(new L("Network Error",L.ERR_NETWORK,_,qr,nt&&nt.response),{cause:nt.cause||nt}):L.from(nt,nt&&nt.code,_,qr,nt&&nt.response)}}},Rg=new Map,Jy=r=>{let e=r&&r.env||{};const{fetch:t,Request:n,Response:o}=e,i=[n,o,t];let c=i.length,d=c,g,h,b=Rg;for(;d--;)g=i[d],h=b.get(g),h===void 0&&b.set(g,h=d?new Map:Og(e)),b=h;return h};Jy();const us={http:Km,xhr:gg,fetch:{get:Jy}};l.forEach(us,(r,e)=>{if(r){try{Object.defineProperty(r,"name",{value:e})}catch{}Object.defineProperty(r,"adapterName",{value:e})}});const Xy=r=>`- ${r}`,Pg=r=>l.isFunction(r)||r===null||r===!1;function jg(r,e){r=l.isArray(r)?r:[r];const{length:t}=r;let n,o;const i={};for(let c=0;c<t;c++){n=r[c];let d;if(o=n,!Pg(n)&&(o=us[(d=String(n)).toLowerCase()],o===void 0))throw new L(`Unknown adapter '${d}'`);if(o&&(l.isFunction(o)||(o=o.get(e))))break;i[d||"#"+c]=o}if(!o){const c=Object.entries(i).map(([g,h])=>`adapter ${g} `+(h===!1?"is not supported by the environment":"is not available in the build"));let d=t?c.length>1?`since :
4
- `+c.map(Xy).join(`
5
- `):" "+Xy(c[0]):"as no adapter specified";throw new L("There is no suitable adapter to dispatch the request "+d,"ERR_NOT_SUPPORT")}return o}const Yy={getAdapter:jg,adapters:us};function ps(r){if(r.cancelToken&&r.cancelToken.throwIfRequested(),r.signal&&r.signal.aborted)throw new Ji(null,r)}function Qy(r){return ps(r),r.headers=qt.from(r.headers),r.data=ds.call(r,r.transformRequest),["post","put","patch"].indexOf(r.method)!==-1&&r.headers.setContentType("application/x-www-form-urlencoded",!1),Yy.getAdapter(r.adapter||Wi.adapter,r)(r).then(function(n){return ps(r),n.data=ds.call(r,r.transformResponse,n),n.headers=qt.from(n.headers),n},function(n){return ky(n)||(ps(r),n&&n.response&&(n.response.data=ds.call(r,r.transformResponse,n.response),n.response.headers=qt.from(n.response.headers))),Promise.reject(n)})}const Zy="1.13.6",jo={};["object","boolean","number","function","string","symbol"].forEach((r,e)=>{jo[r]=function(n){return typeof n===r||"a"+(e<1?"n ":" ")+r}});const el={};jo.transitional=function(e,t,n){function o(i,c){return"[Axios v"+Zy+"] Transitional option '"+i+"'"+c+(n?". "+n:"")}return(i,c,d)=>{if(e===!1)throw new L(o(c," has been removed"+(t?" in "+t:"")),L.ERR_DEPRECATED);return t&&!el[c]&&(el[c]=!0,console.warn(o(c," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,c,d):!0}},jo.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function wg(r,e,t){if(typeof r!="object")throw new L("options must be an object",L.ERR_BAD_OPTION_VALUE);const n=Object.keys(r);let o=n.length;for(;o-- >0;){const i=n[o],c=e[i];if(c){const d=r[i],g=d===void 0||c(d,i,r);if(g!==!0)throw new L("option "+i+" must be "+g,L.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new L("Unknown option "+i,L.ERR_BAD_OPTION)}}const wo={assertOptions:wg,validators:jo},dn=wo.validators;let Hr=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Uy,response:new Uy}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
6
- `+i):n.stack=i}catch{}}throw n}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=Lr(this.defaults,t);const{transitional:n,paramsSerializer:o,headers:i}=t;n!==void 0&&wo.assertOptions(n,{silentJSONParsing:dn.transitional(dn.boolean),forcedJSONParsing:dn.transitional(dn.boolean),clarifyTimeoutError:dn.transitional(dn.boolean),legacyInterceptorReqResOrdering:dn.transitional(dn.boolean)},!1),o!=null&&(l.isFunction(o)?t.paramsSerializer={serialize:o}:wo.assertOptions(o,{encode:dn.function,serialize:dn.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),wo.assertOptions(t,{baseUrl:dn.spelling("baseURL"),withXsrfToken:dn.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let c=i&&l.merge(i.common,i[t.method]);i&&l.forEach(["delete","get","head","post","put","patch","common"],_=>{delete i[_]}),t.headers=qt.concat(c,i);const d=[];let g=!0;this.interceptors.request.forEach(function(M){if(typeof M.runWhen=="function"&&M.runWhen(t)===!1)return;g=g&&M.synchronous;const P=t.transitional||os;P&&P.legacyInterceptorReqResOrdering?d.unshift(M.fulfilled,M.rejected):d.push(M.fulfilled,M.rejected)});const h=[];this.interceptors.response.forEach(function(M){h.push(M.fulfilled,M.rejected)});let b,v=0,E;if(!g){const _=[Qy.bind(this),void 0];for(_.unshift(...d),_.push(...h),E=_.length,b=Promise.resolve(t);v<E;)b=b.then(_[v++],_[v++]);return b}E=d.length;let Z=t;for(;v<E;){const _=d[v++],M=d[v++];try{Z=_(Z)}catch(P){M.call(this,P);break}}try{b=Qy.call(this,Z)}catch(_){return Promise.reject(_)}for(v=0,E=h.length;v<E;)b=b.then(h[v++],h[v++]);return b}getUri(e){e=Lr(this.defaults,e);const t=Ly(e.baseURL,e.url,e.allowAbsoluteUrls);return Cy(t,e.params,e.paramsSerializer)}};l.forEach(["delete","get","head","options"],function(e){Hr.prototype[e]=function(t,n){return this.request(Lr(n||{},{method:e,url:t,data:(n||{}).data}))}}),l.forEach(["post","put","patch"],function(e){function t(n){return function(i,c,d){return this.request(Lr(d||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:c}))}}Hr.prototype[e]=t(),Hr.prototype[e+"Form"]=t(!0)});let Ng=class gl{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(i){t=i});const n=this;this.promise.then(o=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const c=new Promise(d=>{n.subscribe(d),i=d}).then(o);return c.cancel=function(){n.unsubscribe(i)},c},e(function(i,c,d){n.reason||(n.reason=new Ji(i,c,d),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=n=>{e.abort(n)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new gl(function(o){e=o}),cancel:e}}};function Tg(r){return function(t){return r.apply(null,t)}}function Eg(r){return l.isObject(r)&&r.isAxiosError===!0}const fs={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(fs).forEach(([r,e])=>{fs[e]=r});function tl(r){const e=new Hr(r),t=Sy(Hr.prototype.request,e);return l.extend(t,Hr.prototype,e,{allOwnKeys:!0}),l.extend(t,e,null,{allOwnKeys:!0}),t.create=function(o){return tl(Lr(r,o))},t}const He=tl(Wi);He.Axios=Hr,He.CanceledError=Ji,He.CancelToken=Ng,He.isCancel=ky,He.VERSION=Zy,He.toFormData=vo,He.AxiosError=L,He.Cancel=He.CanceledError,He.all=function(e){return Promise.all(e)},He.spread=Tg,He.isAxiosError=Eg,He.mergeConfig=Lr,He.AxiosHeaders=qt,He.formToJSON=r=>Iy(l.isHTMLForm(r)?new FormData(r):r),He.getAdapter=Yy.getAdapter,He.HttpStatusCode=fs,He.default=He;const{Axios:ph,AxiosError:fh,CanceledError:yh,isCancel:lh,CancelToken:mh,VERSION:gh,all:hh,Cancel:bh,isAxiosError:Sh,spread:_h,toFormData:vh,AxiosHeaders:Oh,HttpStatusCode:Rh,formToJSON:Ph,getAdapter:jh,mergeConfig:wh}=He;var Ag=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(i=(o<3?c(i):o>3?c(e,t,i):c(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i};a.HTTPConsumer=class extends a.Consumer{timeout=1e4;cs=new Map;getAddr(e){const t=de.MESH_ADDRESS.get().any();return e.getAttribute(Gt.REMOTE)??t}async getClient(e){if(!this.cs.has(e)){const t={baseURL:e,timeout:this.timeout,headers:{"Content-Type":"application/json;charset=UTF-8"}};if(globalThis.__vitest_environment__=="node"){const o=await Promise.resolve().then(()=>Hg);t.httpsAgent=new o.Agent({rejectUnauthorized:!1})}const n=He.create(t);n.interceptors.request.use(o=>o),this.cs.set(e,n)}return this.cs.get(e)}start(){}close(){}async consume(e,t,n,o,i){const c=o.schema(e).timeout??this.timeout,d=e.getAttribute(Gt.TIMEOUT)??this.timeout,g=ze.load(a.Codec).getDefault(),h=g.decode(i,Object),b=await this.invoke(e,h,Object,n,Math.max(d,c));return g.encode(b)}async invoke(e,t,n,o,i){const c={"mesh-urn":o};e.getAttachments().forEach((g,h)=>{c[g]=h});const d=this.getAddr(e);return await this.doing(e,d,"mpc/invoke",t,c,Math.max(this.timeout,i))}async doing(e,t,n,o,i,c){const d=Nr();if(d?.consumer)return d?.consumer(e,t,n,o,i,c);const h=await(await this.getClient(t)).post(`${t}${n}`,o,{timeout:Math.max(this.timeout,c),headers:i});if(h.status!==200)throw cr.errorf(h);return h.data}},a.HTTPConsumer=Ag([$(a.Consumer.HTTP)],a.HTTPConsumer);class ys{name="";icon;path="";describe;disable=!1;star=!1;route;children=[];parent;attrs;static abs(e,t=""){if(!e.parent)return`${t}${e.path}`;const n=this.abs(e.parent).replaceAll("/*","");return n==""?`${t}${e.path}`:`${t}${n}${e.path.replaceAll("/*","")}`}static preproc(e){e?.forEach(t=>{t.children?.forEach(n=>{n.parent=t}),this.preproc(t?.children||[])})}static chain(e){return e.parent?[...ys.chain(e.parent),e]:[]}}class Mg extends a.Network{proxy;constructor(){super(),this.proxy=a.ServiceProxy.proxy(a.Network)}environ(e){return this.proxy.environ(e)}accessible(e,t){return this.proxy.accessible(e)}refresh(e,t){return this.proxy.refresh(e)}route(e,t){return this.proxy.route(e)}routes(e){return this.proxy.routes(e)}disable(e,t){return this.proxy.disable(e)}enable(e,t){return this.proxy.enable(e)}index(e,t){return this.proxy.index(e)}version(e,t){return this.proxy.version(e)}}class $g{values=[];filter=(e,t)=>!0;constructor(e,t){this.values=e||[],this.filter=t}index(e){const t=e.factor||{},n=new fe;n.index=e.index,n.sid=e.sid||"",n.limit=e.limit,n.total=e.index*e.limit,n.next=!1,n.data=[];const o=n.index*n.limit,i=(n.index+1)*n.limit;for(let c=o;c<this.values.length&&!(o>=this.values.length);c++){const d=this.values[c];n.data.length<e.limit&&o<=n.total&&n.total<i&&n.data.push(d),(!this.filter||this.filter(d,t))&&n.total++}return n.total>i&&(n.next=!0),n}}const Cg=[{label:"微信",value:"wechat"},{label:"抖音",value:"douyin"},{label:"飞书",value:"feishu"},{label:"钉钉",value:"dingtalk"}];class Jt{redirect;session;cacheKey="mesh.token";static tokenizer=a.ServiceProxy.proxy(a.Tokenizer);static instance=new Jt;async authorize(e,t){const n=await Jt.tokenizer.quickauth(t);this.session=await Jt.tokenizer.authenticate(n.token),localStorage.setItem(this.cacheKey,n.token)}authorized(){return(this.session?.token??localStorage.getItem(this.cacheKey)??"")!=""}async authenticate(){if(this.session)return this.session;const e=localStorage.getItem(this.cacheKey);if(!e)throw u.UNAUTHORIZED;return this.session=await Jt.tokenizer.authenticate(e),this.session}async destroy(){const e=this.session?.token??localStorage.getItem(this.cacheKey);e&&e!=""&&await Jt.tokenizer.destroy(e),localStorage.removeItem(this.cacheKey),this.session=void 0}static global(){return Jt.instance}}const nl=$t.createContext(void 0),Ug=({children:r,redirect:e})=>{const t=$t.useMemo(()=>(Jt.global().redirect=e,Jt.global()),[e]);return Mt.jsx(nl.Provider,{value:t,children:r})},rl=()=>{const r=$t.useContext(nl);if(!r)throw new Error("useAuth must be used within a AuthContextProvider");return r},Ig=({next:r})=>{const e=rl();return $t.useEffect(()=>{Jt.global().authenticate().catch(console.log)},[]),r(e.authorized(),e.redirect??"")},Dg=["apply.captcha.mesh","match.captcha.mesh","quickauth.auth.mesh","authorize.oauth.mesh","authenticate.oauth.mesh","settings.x.devops"];mi.onBefore("mesh.authorize",async(r,e)=>{const t=Jt.global().session,n=new URLSearchParams(globalThis.location.search);if(e.getAttachments(r).set("mesh-token",t?.token??n.get("token")??""),e.getAttachments(r).set("mesh-query",globalThis.location.search),!Dg.some(o=>r.getUrn().includes(o))&&!t?.token){const o=await Jt.global().authenticate();e.getAttachments(r).set("mesh-token",o.token)}}),mi.onFailure("mesh.authenticate",async(r,e,t)=>{if(t.getCode()=="E0000000630"||t.getCode()=="E0000000401"){globalThis.location.href=Jt.global().redirect??"";return}console.log(t.getMessage())});class il{async sse(e,t,n){const o=new URLSearchParams(globalThis.location.search),i=`${globalThis.location.origin}${globalThis.location.pathname}/mpc/sse`;await new xg(i,n,t,{"mesh-token":o.get("token")??"","mesh-query":globalThis.location.search,"mesh-proxy":t?.options?.proxy??"","mesh-urn":an.urn(`${e}.builtin.sse`).toString()}).connect()}async fileup(e,t,n,o){const i=new FormData;return i.append("f",e instanceof File?e:new File([e],`mesh_${Date.now()}.${n}`)),new Promise((c,d)=>{const g=`${globalThis.location.origin}${globalThis.location.pathname}/mpc/w`,h=new XMLHttpRequest;h.upload.onprogress=b=>o?.(Math.round(b.loaded/b.total*100)),h.onload=()=>h.status<300?c(h.responseText.substring(1)):d(new Error(`HTTP ${h.status}`)),h.onerror=()=>d(new Error("unknown error")),h.open("POST",g),h.setRequestHeader("mesh-bucket",t??""),h.send(i)})}}const ol=$t.createContext(void 0),kg=()=>{const r=$t.useContext(ol);if(!r)throw new Error("useSSE must be used within a SSEContextProvider");return r},Fg=({children:r})=>{const e=$t.useMemo(()=>new il,[]),t=$t.useCallback(()=>{},[]);return $t.useEffect(()=>(t(),globalThis.addEventListener("online",t),()=>{globalThis.removeEventListener("online",t)}),[t]),Mt.jsx(ol.Provider,{value:e,children:r})};class xg{codec=ze.load(a.Codec).getDefault();ctl=new AbortController;decoder=new TextDecoder;url;body;headers;onmessage;buffer="";reader;constructor(e,t,n={},o={}){this.url=e,this.body=n,this.headers=o,this.onmessage=t}async connect(){const e=await fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8",Accept:"text/event-stream","Cache-Control":"no-cache",...this.headers},body:this.codec.encodeString(this.body),signal:this.ctl.signal});if(!e.ok)throw cr.errorf(e);const t=e.headers.get("content-type");if(!t?.includes("text/event-stream"))throw cr.errorf("unexpected content-type: "+t);if(!e.body)throw await this.close(),cr.errorf("unexpected stream response");for(this.reader=e.body.getReader();;){const{done:n,value:o}=await this.reader.read();if(n){await this.close();break}if(await this.process(this.buffer,o)){await this.close();break}}}async process(e,t){const n=e+this.decoder.decode(t,{stream:!0});if(n.endsWith(`
7
- `))return this.buffer="",await this.consume(n.split(`
8
- `));{const o=n.split(`
9
- `);return this.buffer=o[o.length-1],await this.consume(o.slice(0,o.length-1))}}async consume(e){for(const t of e)if(t!=""){if(t.startsWith("event:"))return!1;if(t.startsWith("data:")){const n=this.codec.decodeString(t.slice(5).trim(),wi);if(u.SUCCESS.getCode()!=n.code)return!0;await this.onmessage(n.content)}if(t.startsWith("id:")||t.startsWith("retry:"))return!1}return!1}state(){return this.reader!==null&&!this.ctl?.signal.aborted}async close(){await this.reader?.cancel(),this.ctl.abort()}}class Bg{builtin=a.ServiceProxy.proxy(a.Builtin);cache=a.ServiceProxy.proxy(a.Cache);cipherEconomy=a.ServiceProxy.proxy(a.CipherEconomy);cipherProvider=a.ServiceProxy.proxy(a.CipherProvider);cluster=a.ServiceProxy.proxy(a.Cluster);commercialize=a.ServiceProxy.proxy(a.Commercialize);cryptor=a.ServiceProxy.proxy(a.Cryptor);daler=a.ServiceProxy.proxy(a.Daler);dataHouse=a.ServiceProxy.proxy(a.DataHouse);devops=a.ServiceProxy.proxy(a.Devops);endpoint=a.ServiceProxy.proxy(a.Endpoint);firewalld=a.ServiceProxy.proxy(a.Firewalld);graph=a.ServiceProxy.proxy(a.Graph);kms=a.ServiceProxy.proxy(a.KMS);kv=a.ServiceProxy.proxy(a.KV);licenser=a.ServiceProxy.proxy(a.Licenser);locker=a.ServiceProxy.proxy(a.Locker);network=a.ServiceProxy.proxy(a.Network);pipeline=a.ServiceProxy.proxy(a.Pipeline);publisher=a.ServiceProxy.proxy(a.Publisher);registry=a.ServiceProxy.proxy(a.Registry);savepoint=a.ServiceProxy.proxy(a.Savepoint);scheduler=a.ServiceProxy.proxy(a.Scheduler);sequence=a.ServiceProxy.proxy(a.Sequence);subscriber=a.ServiceProxy.proxy(a.Subscriber);tokenizer=a.ServiceProxy.proxy(a.Tokenizer);authProvider=a.ServiceProxy.proxy(a.AuthProvider);transporter=a.ServiceProxy.proxy(a.Transporter);fileSystem=a.ServiceProxy.proxy(a.FileSystem);vm=a.ServiceProxy.proxy(a.VM);workflow=a.ServiceProxy.proxy(a.Workflow)}const Lg=new Bg,Hg=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));a.AccessCode=so,a.AccessGrant=hr,a.AccessID=co,a.AccessToken=Hn,a.Addrs=mo,a.Appdata=en,a.Argument=_s,a.Ark=Oe,a.AuthContextProvider=Ug,a.Authenticator=Ig,a.Body=Te,a.Buffer=py,a.CONSUMER=go,a.CRL=Oi,a.CacheBody=gt,a.Captcha=Jr,a.Cause=Ut,a.CipherEntity=vn,a.CipherHello=mt,a.CipherKey=io,a.CipherKeygen=dr,a.CipherObject=st,a.CipherRegen=Ri,a.CipherSuite=Mr,a.CipherTxEntity=Pi,a.Citizen=ys,a.CommerceEnviron=Gr,a.CommerceLicense=Wr,a.Context=ro,a.Credential=Qt,a.CrtRevokeRequest=Vr,a.CrtRotateRequest=Cr,a.DalerBinlog=Bn,a.DalerCluster=Qe,a.DalerDTSJob=ke,a.DalerInstance=zr,a.DalerSource=It,a.DalerTest=$r,a.DataLord=vi,a.Deque=Rs,a.Document=ur,a.DocumentMetadata=pr,a.DtxBranch=An,a.DtxDefinition=Sr,a.Dynamic=$o,a.DynamicOption=Kt,a.DynamicRoute=qn,a.DynamicServer=Qr,a.EndpointSticker=nu,a.Entry=ji,a.Env=it,a.Environ=Fe,a.Errors=cr,a.Event=dt,a.FileEntry=Kr,a.FileMirror=Kn,a.Firewall=ue,a.GenericExecution=yy,a.GenericInspector=ly,a.GenericParameters=Jo,a.GenericReturns=Xo,a.GrantCode=Io,a.Header=Ke,a.Hodor=Fo,a.Hook=mi,a.Idx=sr,a.Inbound=Do,a.Institution=oo,a.Key=ar,a.KeyCsr=Ge,a.Keys=kt,a.Keyset=Uo,a.KindMirror=fn,a.Lattice=Ln,a.License=me,a.Location=mr,a.MPI=De,a.MPS=_i,a.Mani=Ar,a.Manifest=yn,a.Matcher=ao,a.Mesh=Gt,a.MeshCode=J,a.MeshContext=qi,a.MeshFlags=je,a.MeshNetwork=Mg,a.MeshService=Lg,a.Metadata=ko,a.MethodInspector=vs,a.MethodMirror=Mn,a.Mock=Zo,a.Mode=Ct,a.MpcStream=zo,a.Netlist=br,a.Outbound=Ni,a.PROVIDER=my,a.Packet=tn,a.Page=fe,a.Paging=j,a.ParameterMirror=zn,a.Payload=Ei,a.Principal=St,a.QrParties=Cg,a.Reference=Nn,a.ReferenceInvokeHandler=hy,a.Registration=ut,a.RegistrationKind=Al,a.Replica=We,a.ReturnMirror=_r,a.Routable=xi,a.Route=ae,a.RunMode=xn,a.SPI=un,a.Script=ve,a.SecretCsr=wn,a.SecretKey=gr,a.Service=Ft,a.ServiceInvocation=gy,a.ServiceInvokeHandler=by,a.ServiceLoader=ze,a.Session=_t,a.Settings=On,a.StatefulServer=fy,a.States=Ur,a.Status=u,a.StreamContext=il,a.StreamContextProvider=Fg,a.StreamEntity=Yt,a.StreamHello=fr,a.StreamOption=Dt,a.StreamPacket=wi,a.TextDecoder=uy,a.TextEncoder=dy,a.ThrowableMirror=Ti,a.Timeout=jn,a.Tool=de,a.Topic=Ce,a.Triplet=Ec,a.Types=ir,a.URC=Zt,a.URN=an,a.URNFlag=Tr,a.VTable=$g,a.VariableMirror=pn,a.Versions=Ai,a.WorkChart=xt,a.WorkContext=Xn,a.WorkGroup=Jn,a.WorkIntent=vr,a.WorkRoutine=Ir,a.WorkSide=Mi,a.WorkTask=Gn,a.WorkVertex=ot,a.Worker=Ze,a.binding=vl,a.buffer=Go,a.composite=Yo,a.context=p,a.descriptor=Nr,a.dict=ee,a.globalPtr=Fn,a.index=s,a.instanceOfCodeable=Os,a.list=_n,a.mpi=f,a.mps=Tl,a.returnType=Dl,a.spi=$,a.textDecoder=Wo,a.textEncoder=yo,a.useAuth=rl,a.useStream=kg,a.withCodec=Hl,a.withConsumer=Ll,a.withMode=bl,Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})}));
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require(`react`),require(`react/jsx-runtime`)):typeof define==`function`&&define.amd?define([`exports`,`react`,`react/jsx-runtime`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.mesh={},e.react,e.react_jsx_runtime))})(this,function(e,t,n){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var r=Object.create,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,l=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),u=(e,t)=>{let n={};for(var r in e)i(n,r,{get:e[r],enumerable:!0});return t||i(n,Symbol.toStringTag,{value:`Module`}),n},d=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var s=o(t),l=0,u=s.length,d;l<u;l++)d=s[l],!c.call(e,d)&&d!==n&&i(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(r=a(t,d))||r.enumerable});return e},f=(e,t,n)=>(n=e==null?{}:r(s(e)),d(t||!e||!e.__esModule?i(n,`default`,{value:e,enumerable:!0}):n,e)),p=class e extends Map{computeIfy(e,t){let n=this.get(e);return n||(n=t(e),this.set(e,n)),n}groupBy(t){let n=new e;return this.forEach((e,r)=>n.computeIfy(t(r,e),e=>[]).push(e)),n}map(e){let t=new ee;return this.forEach((n,r)=>t.push(e(r,n))),t}groupKV(t,n){let r=new e;return this.forEach((e,i)=>r.set(t(i),n(i,e))),r}},ee=class e extends Array{groupBy(t){let n=new p;return this.forEach(r=>n.computeIfy(t(r),t=>new e).push(r)),n}groupKV(e,t){let n=new p;this.forEach(t=>n.computeIfy(e(t),e=>[]).push(t));let r=new p;return n.forEach((e,n)=>r.set(n,t(n,e))),r}},m={},te=()=>typeof globalThis==`object`?globalThis:typeof window==`object`?window:typeof global==`object`?global:m,ne=class e{static Name=new e(`MESH_NAME`,()=>``);static Direct=new e(`MESH_DIRECT`,()=>``);static Subset=new e(`MESH_SUBSET`,()=>``);static Mode=new e(`MESH_MODE`,()=>0);static Proxy=new e(`MESH_PROXY`,()=>``);static Address=new e(`MESH_ADDRESS`,()=>``);static Runtime=new e(`MESH_RUNTIME`,()=>``);static MDC=new e(`MESH_MDC`,()=>``);static SPA=new e(`MESH_SPA`,()=>``);static TCP=new e(`MESH_TCP`,()=>``);static Home=new e(`MESH_HOME`,()=>``);static DSN=new e(`MESH_DSN`,()=>``);name;value;constructor(e,t){this.name=e,this.value=t}cache(){return te().meshCache||(te().meshCache=new Map),te().meshCache}get(){return this.cache().has(this.name)||this.cache().set(this.name,this.value()),this.cache().get(this.name)}set(e){this.cache().set(this.name,e)}},re=class e{static Disable=new e(1);static Failfast=new e(2);static Nolog=new e(4);static JsonLogFormat=new e(8);static PHeader=new e(16);static Metrics=new e(32);static Debug=new e(64);static PermitCirculate=new e(128);static NoStdColor=new e(256);static Isolate=new e(512);static Mock=new e(1024);v=0;constructor(e){this.v=e}matches(e){return(this.v&e)==this.v}enable(){return this.matches(ne.Mode.get())}value(){return this.v}};function ie(e){ne.Mode.set(ne.Mode.get()|e)}var ae=class e{raw;parameters;prototype;length;arguments;caller=()=>{};name;[Symbol.metadata]={};constructor(e){[this.raw,this.parameters]=this.parse(e),this.prototype=this.raw.prototype,this.length=this.raw.length,this.name=this.raw.name,this[Symbol.metadata]=this.raw[Symbol.metadata]||{}}parse(t){return t?Array.isArray(t)?t.length<2?[t[0],[]]:[t[0],t.slice(1).map(t=>Array.isArray(t)?new e(t):t)]:[t,[]]:[Object,[]]}apply=(e,t)=>this.raw.apply(e,...t);call=(e,...t)=>this.raw.call(e,...t);bind=(e,...t)=>this.raw.bind(e,...t);toString(){return this.raw.toString()}[Symbol.hasInstance](e){return this.raw[Symbol.hasInstance](e)}},oe=class e{static FUNCTION=1;static ABSTRACT=2;macro;name;kind;traits;metadata;modifier;constructor(e,t,n,r,i,a){this.macro=e,this.name=t,this.kind=n,this.traits=r,this.metadata=i,this.modifier=a}isfunction(){return(this.modifier&e.FUNCTION)==e.FUNCTION}isabstract(){return(this.modifier&e.ABSTRACT)==e.ABSTRACT}},se=class{tinder=new p;annotations=new p;ak(e,t,n){return`${e.name}-${t}-${n.name}`}annotate(e,t,n,r){this.annotations.computeIfy(n,e=>new p).computeIfy(t,e=>new p).set(e,r)}annotated(e){if(this.annotations.get(e))return!0;let t=this.superclass(e,e=>!0);for(let e of t)if(this.annotations.get(e))return!0;return!1}metadata(e,t,n){let r=this.annotations.get(t)?.get(n)?.get(e);if(r)return r;let i=this.superclass(t,e=>!0);for(let t of i){let r=this.annotations.get(t)?.get(n)?.get(e);if(r)return r}}superclass(e,t){let n=[],r=e.prototype;for(;r&&r.constructor;)e!=r.constructor&&t(r)&&n.push(r.constructor),r=Object.getPrototypeOf(r);return n}register(e,t,n,r){let i=this.superclass(n,t=>this.metadata(e,t.constructor,t.constructor)),a=n.constructor?0:oe.FUNCTION,o=i.length<1?oe.ABSTRACT:0;i.length<1&&i.push(n);for(let s of i){let c=this.ak(e,t,s);this.tinder.get(c)?.forEach(e=>{e.kind==n&&console.log(`Object of ${s.name} named ${t} has been register already.`)});let l=new oe(e,t,n,i,r,a|o),u=this.tinder.computeIfy(c,e=>new ee);u.push(l),u.sort((e,t)=>e.isabstract()||e.isfunction()?1:t.isabstract()||e.isfunction()?-1:e.metadata.priority&&t.metadata.priority?e.metadata.priority-t.metadata.priority:0)}}unregister(e,t){let n=[];this.tinder.forEach((r,i)=>r.forEach(r=>{r.macro==e&&r.kind==t&&n.push(i)}));for(let e of n)this.tinder.delete(e)}export(e){let t=new p;for(let n of this.tinder.values())for(let r of n){if(r.isfunction()||r.macro!=e)continue;let n=r.kind;for(let e of r.traits)t.computeIfy(e,e=>new p).computeIfy(r.name,e=>new ee).push(n)}return t}providers(e,t){return this.export(e).computeIfy(t,e=>new p).map((e,t)=>t).flatMap(e=>e).filter(e=>e!=t)}provider(e,t,n){let r=this.ak(e,n,t),i=new ee;return this.tinder.computeIfy(r,e=>new ee).forEach(e=>{!e.isfunction()&&!e.isabstract()&&i.push(e.kind)}),i}inspect(e){let t=new p;return Object.entries(Object.getOwnPropertyDescriptors(e.prototype)).filter(e=>e[0]!==`constructor`&&typeof e[1].value==`function`).forEach(e=>{t.set(e[0],e[1].value)}),t}},h=(()=>{let e=te();return e.Ark??=new se,e.Ark})();l((()=>{var e;(function(e){(function(t){var n=typeof globalThis==`object`?globalThis:typeof global==`object`?global:typeof self==`object`?self:typeof this==`object`?this:s(),r=i(e);n.Reflect!==void 0&&(r=i(n.Reflect,r)),t(r,n),n.Reflect===void 0&&(n.Reflect=e);function i(e,t){return function(n,r){Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}function a(){try{return Function(`return this;`)()}catch{}}function o(){try{return(0,eval)(`(function() { return this; })()`)}catch{}}function s(){return a()||o()}})(function(e,t){var n=Object.prototype.hasOwnProperty,r=typeof Symbol==`function`,i=r&&Symbol.toPrimitive!==void 0?Symbol.toPrimitive:`@@toPrimitive`,a=r&&Symbol.iterator!==void 0?Symbol.iterator:`@@iterator`,o=typeof Object.create==`function`,s={__proto__:[]}instanceof Array,c=!o&&!s,l={create:o?function(){return T(Object.create(null))}:s?function(){return T({__proto__:null})}:function(){return T({})},has:c?function(e,t){return n.call(e,t)}:function(e,t){return t in e},get:c?function(e,t){return n.call(e,t)?e[t]:void 0}:function(e,t){return e[t]}},u=Object.getPrototypeOf(Function),d=typeof Map==`function`&&typeof Map.prototype.entries==`function`?Map:Re(),f=typeof Set==`function`&&typeof Set.prototype.entries==`function`?Set:ze(),p=typeof WeakMap==`function`?WeakMap:w(),ee=r?Symbol.for(`@reflect-metadata:registry`):void 0,m=C(),te=Fe(m);function ne(e,t,n,r){if(y(n)){if(!Ee(e)||!x(t))throw TypeError();return g(e,t)}else{if(!Ee(e)||!be(t)||!be(r)&&!y(r)&&!ve(r))throw TypeError();return ve(r)&&(r=void 0),n=Te(n),de(e,t,n,r)}}e(`decorate`,ne);function re(e,t){function n(n,r){if(!be(n)||!y(r)&&!De(r))throw TypeError();me(e,t,n,r)}return n}e(`metadata`,re);function ie(e,t,n,r){if(!be(n))throw TypeError();return y(r)||(r=Te(r)),me(e,t,n,r)}e(`defineMetadata`,ie);function ae(e,t,n){if(!be(t))throw TypeError();return y(n)||(n=Te(n)),_(e,t,n)}e(`hasMetadata`,ae);function oe(e,t,n){if(!be(t))throw TypeError();return y(n)||(n=Te(n)),fe(e,t,n)}e(`hasOwnMetadata`,oe);function se(e,t,n){if(!be(t))throw TypeError();return y(n)||(n=Te(n)),v(e,t,n)}e(`getMetadata`,se);function h(e,t,n){if(!be(t))throw TypeError();return y(n)||(n=Te(n)),pe(e,t,n)}e(`getOwnMetadata`,h);function ce(e,t){if(!be(e))throw TypeError();return y(t)||(t=Te(t)),he(e,t)}e(`getMetadataKeys`,ce);function le(e,t){if(!be(e))throw TypeError();return y(t)||(t=Te(t)),ge(e,t)}e(`getOwnMetadataKeys`,le);function ue(e,t,n){if(!be(t)||(y(n)||(n=Te(n)),!be(t)))throw TypeError();y(n)||(n=Te(n));var r=Le(t,n,!1);return y(r)?!1:r.OrdinaryDeleteMetadata(e,t,n)}e(`deleteMetadata`,ue);function g(e,t){for(var n=e.length-1;n>=0;--n){var r=e[n],i=r(t);if(!y(i)&&!ve(i)){if(!x(i))throw TypeError();t=i}}return t}function de(e,t,n,r){for(var i=e.length-1;i>=0;--i){var a=e[i],o=a(t,n,r);if(!y(o)&&!ve(o)){if(!be(o))throw TypeError();r=o}}return r}function _(e,t,n){if(fe(e,t,n))return!0;var r=Pe(t);return ve(r)?!1:_(e,r,n)}function fe(e,t,n){var r=Le(t,n,!1);return y(r)?!1:Ce(r.OrdinaryHasOwnMetadata(e,t,n))}function v(e,t,n){if(fe(e,t,n))return pe(e,t,n);var r=Pe(t);if(!ve(r))return v(e,r,n)}function pe(e,t,n){var r=Le(t,n,!1);if(!y(r))return r.OrdinaryGetOwnMetadata(e,t,n)}function me(e,t,n,r){Le(n,r,!0).OrdinaryDefineOwnMetadata(e,t,n,r)}function he(e,t){var n=ge(e,t),r=Pe(e);if(r===null)return n;var i=he(r,t);if(i.length<=0)return n;if(n.length<=0)return i;for(var a=new f,o=[],s=0,c=n;s<c.length;s++){var l=c[s],u=a.has(l);u||(a.add(l),o.push(l))}for(var d=0,p=i;d<p.length;d++){var l=p[d],u=a.has(l);u||(a.add(l),o.push(l))}return o}function ge(e,t){var n=Le(e,t,!1);return n?n.OrdinaryOwnMetadataKeys(e,t):[]}function _e(e){if(e===null)return 1;switch(typeof e){case`undefined`:return 0;case`boolean`:return 2;case`string`:return 3;case`symbol`:return 4;case`number`:return 5;case`object`:return e===null?1:6;default:return 6}}function y(e){return e===void 0}function ve(e){return e===null}function ye(e){return typeof e==`symbol`}function be(e){return typeof e==`object`?e!==null:typeof e==`function`}function xe(e,t){switch(_e(e)){case 0:return e;case 1:return e;case 2:return e;case 3:return e;case 4:return e;case 5:return e}var n=t===3?`string`:t===5?`number`:`default`,r=ke(e,i);if(r!==void 0){var a=r.call(e,n);if(be(a))throw TypeError();return a}return Se(e,n===`default`?`number`:n)}function Se(e,t){if(t===`string`){var n=e.toString;if(b(n)){var r=n.call(e);if(!be(r))return r}var i=e.valueOf;if(b(i)){var r=i.call(e);if(!be(r))return r}}else{var i=e.valueOf;if(b(i)){var r=i.call(e);if(!be(r))return r}var a=e.toString;if(b(a)){var r=a.call(e);if(!be(r))return r}}throw TypeError()}function Ce(e){return!!e}function we(e){return``+e}function Te(e){var t=xe(e,3);return ye(t)?t:we(t)}function Ee(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:Object.prototype.toString.call(e)===`[object Array]`}function b(e){return typeof e==`function`}function x(e){return typeof e==`function`}function De(e){switch(_e(e)){case 3:return!0;case 4:return!0;default:return!1}}function Oe(e,t){return e===t||e!==e&&t!==t}function ke(e,t){var n=e[t];if(n!=null){if(!b(n))throw TypeError();return n}}function Ae(e){var t=ke(e,a);if(!b(t))throw TypeError();var n=t.call(e);if(!be(n))throw TypeError();return n}function je(e){return e.value}function Me(e){var t=e.next();return t.done?!1:t}function Ne(e){var t=e.return;t&&t.call(e)}function Pe(e){var t=Object.getPrototypeOf(e);if(typeof e!=`function`||e===u||t!==u)return t;var n=e.prototype,r=n&&Object.getPrototypeOf(n);if(r==null||r===Object.prototype)return t;var i=r.constructor;return typeof i!=`function`||i===e?t:i}function S(){var e;!y(ee)&&t.Reflect!==void 0&&!(ee in t.Reflect)&&typeof t.Reflect.defineMetadata==`function`&&(e=Ie(t.Reflect));var n,r,i,a=new p,o={registerProvider:s,getProvider:l,setProvider:m};return o;function s(t){if(!Object.isExtensible(o))throw Error(`Cannot add provider to a frozen registry.`);switch(!0){case e===t:break;case y(n):n=t;break;case n===t:break;case y(r):r=t;break;case r===t:break;default:i===void 0&&(i=new f),i.add(t);break}}function c(t,a){if(!y(n)){if(n.isProviderFor(t,a))return n;if(!y(r)){if(r.isProviderFor(t,a))return n;if(!y(i))for(var o=Ae(i);;){var s=Me(o);if(!s)return;var c=je(s);if(c.isProviderFor(t,a))return Ne(o),c}}}if(!y(e)&&e.isProviderFor(t,a))return e}function l(e,t){var n=a.get(e),r;return y(n)||(r=n.get(t)),y(r)?(r=c(e,t),y(r)||(y(n)&&(n=new d,a.set(e,n)),n.set(t,r)),r):r}function u(e){if(y(e))throw TypeError();return n===e||r===e||!y(i)&&i.has(e)}function m(e,t,n){if(!u(n))throw Error(`Metadata provider not registered.`);var r=l(e,t);if(r!==n){if(!y(r))return!1;var i=a.get(e);y(i)&&(i=new d,a.set(e,i)),i.set(t,n)}return!0}}function C(){var e;return!y(ee)&&be(t.Reflect)&&Object.isExtensible(t.Reflect)&&(e=t.Reflect[ee]),y(e)&&(e=S()),!y(ee)&&be(t.Reflect)&&Object.isExtensible(t.Reflect)&&Object.defineProperty(t.Reflect,ee,{enumerable:!1,configurable:!1,writable:!1,value:e}),e}function Fe(e){var t=new p,n={isProviderFor:function(e,n){var r=t.get(e);return y(r)?!1:r.has(n)},OrdinaryDefineOwnMetadata:o,OrdinaryHasOwnMetadata:i,OrdinaryGetOwnMetadata:a,OrdinaryOwnMetadataKeys:s,OrdinaryDeleteMetadata:c};return m.registerProvider(n),n;function r(r,i,a){var o=t.get(r),s=!1;if(y(o)){if(!a)return;o=new d,t.set(r,o),s=!0}var c=o.get(i);if(y(c)){if(!a)return;if(c=new d,o.set(i,c),!e.setProvider(r,i,n))throw o.delete(i),s&&t.delete(r),Error(`Wrong provider for target.`)}return c}function i(e,t,n){var i=r(t,n,!1);return y(i)?!1:Ce(i.has(e))}function a(e,t,n){var i=r(t,n,!1);if(!y(i))return i.get(e)}function o(e,t,n,i){r(n,i,!0).set(e,t)}function s(e,t){var n=[],i=r(e,t,!1);if(y(i))return n;for(var a=Ae(i.keys()),o=0;;){var s=Me(a);if(!s)return n.length=o,n;var c=je(s);try{n[o]=c}catch(e){try{Ne(a)}finally{throw e}}o++}}function c(e,n,i){var a=r(n,i,!1);if(y(a)||!a.delete(e))return!1;if(a.size===0){var o=t.get(n);y(o)||(o.delete(i),o.size===0&&t.delete(o))}return!0}}function Ie(e){var t=e.defineMetadata,n=e.hasOwnMetadata,r=e.getOwnMetadata,i=e.getOwnMetadataKeys,a=e.deleteMetadata,o=new p;return{isProviderFor:function(e,t){var n=o.get(e);return!y(n)&&n.has(t)?!0:i(e,t).length?(y(n)&&(n=new f,o.set(e,n)),n.add(t),!0):!1},OrdinaryDefineOwnMetadata:t,OrdinaryHasOwnMetadata:n,OrdinaryGetOwnMetadata:r,OrdinaryOwnMetadataKeys:i,OrdinaryDeleteMetadata:a}}function Le(e,t,n){var r=m.getProvider(e,t);if(!y(r))return r;if(n){if(m.setProvider(e,t,te))return te;throw Error(`Illegal state.`)}}function Re(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype[`@@iterator`]=function(){return this},e.prototype[a]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var n=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,`size`,{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i<r;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,Oe(t,this._cacheKey)&&(this._cacheKey=e,this._cacheIndex=-2),!0}return!1},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},t.prototype.keys=function(){return new n(this._keys,this._values,r)},t.prototype.values=function(){return new n(this._keys,this._values,i)},t.prototype.entries=function(){return new n(this._keys,this._values,o)},t.prototype[`@@iterator`]=function(){return this.entries()},t.prototype[a]=function(){return this.entries()},t.prototype._find=function(e,t){if(!Oe(this._cacheKey,e)){this._cacheIndex=-1;for(var n=0;n<this._keys.length;n++)if(Oe(this._keys[n],e)){this._cacheIndex=n;break}}return this._cacheIndex<0&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},t}();function r(e,t){return e}function i(e,t){return t}function o(e,t){return[e,t]}}function ze(){return function(){function e(){this._map=new d}return Object.defineProperty(e.prototype,`size`,{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.keys()},e.prototype.entries=function(){return this._map.entries()},e.prototype[`@@iterator`]=function(){return this.keys()},e.prototype[a]=function(){return this.keys()},e}()}function w(){var e=16,t=l.create(),r=i();return function(){function e(){this._key=i()}return e.prototype.has=function(e){var t=a(e,!1);return t===void 0?!1:l.has(t,this._key)},e.prototype.get=function(e){var t=a(e,!1);return t===void 0?void 0:l.get(t,this._key)},e.prototype.set=function(e,t){var n=a(e,!0);return n[this._key]=t,this},e.prototype.delete=function(e){var t=a(e,!1);return t===void 0?!1:delete t[this._key]},e.prototype.clear=function(){this._key=i()},e}();function i(){var e;do e=`@@WeakMap@@`+c();while(l.has(t,e));return t[e]=!0,e}function a(e,t){if(!n.call(e,r)){if(!t)return;Object.defineProperty(e,r,{value:l.create()})}return e[r]}function o(e,t){for(var n=0;n<t;++n)e[n]=Math.random()*255|0;return e}function s(e){if(typeof Uint8Array==`function`){var t=new Uint8Array(e);return typeof crypto<`u`?crypto.getRandomValues(t):typeof msCrypto<`u`?msCrypto.getRandomValues(t):o(t,e),t}return o(Array(e),e)}function c(){var t=s(e);t[6]=t[6]&79|64,t[8]=t[8]&191|128;for(var n=``,r=0;r<e;++r){var i=t[r];(r===4||r===6||r===8)&&(n+=`-`),i<16&&(n+=`0`),n+=i.toString(16).toLowerCase()}return n}}function T(e){return e.__=void 0,delete e.__,e}})})(e||={})}))();var ce=class e{topic;code;version;proto;codec;flags;timeout;meshable;traits;constructor(e,t,n,r,i,a,o,s){this.topic=e,this.code=t,this.version=n,this.proto=r,this.codec=i,this.flags=a,this.timeout=o,this.meshable=s}decorate(t){this.traits=Object.getPrototypeOf(t.prototype).constructor,h.annotate(e,t,t,this),h.register(e,`${this.topic}.${this.code}`,t,this)}};function le(e=``,t=``,n=`1.0.0`,r=`http2`,i=`protobuf`,a=0,o=3e3,s=!0){let c=new ce(e,t,n,r,i,a,o,s);return c.decorate.bind(c)}var ue=class e{value;name;transparent;kind;clas;index=1e3;constructor(e,t,n,r){this.value=e,this.name=t,this.transparent=n,this.kind=r,this.clas=Object}decorate(t,n,r){this.kind==Object?this.kind=Reflect.getMetadata(`design:type`,t,n):this.kind=Array.isArray(this.kind)?new ae(this.kind):this.kind;let i=Reflect.getMetadata(`design:paramtypes`,t,n);i&&Array.isArray(i)&&r!=null&&i.length>r&&(this.clas=i[r]),this.kind&&(this.clas==Array||this.clas==Map)&&(this.clas=this.kind),this.index=r||1e3,r==null?h.annotate(e,n,t.constructor,this):h.annotate(e,`${n}:${r}`,t.constructor,this)}};function g(e=-1,t=``,n=Object,r=!1){let i=new ue(e,t,r,n);return i.decorate.bind(i)}var de=class e{name;pattern;priority;prototype;constructor(e,t,n,r){this.name=e,this.pattern=t,this.priority=n,this.prototype=r}decorate(t){h.annotate(e,t,t,this),h.register(e,this.name,t,this)}};function _(e=``,t=``,n=0,r=!1){let i=new de(e,t,n,r);return i.decorate.bind(i)}var fe=class e{name;version;proto;codec;flags;timeout;retries;mdc;zone;cluster;cell;group;address;kind=void 0;retype=void 0;attributes=new Map;constructor(e,t,n,r,i,a,o,s,c,l,u,d,f,p){this.name=e,this.version=t,this.proto=n,this.codec=r,this.flags=i,this.timeout=a,this.retries=o,this.mdc=s,this.zone=c,this.cluster=l,this.cell=u,this.group=d,this.address=f,this.retype=p}decorate(t,n,r){if(typeof n==`string`&&this.attributes.set(`name`,n),!r){this.kind=Reflect.getMetadata(`design:type`,t,n),h.annotate(e,n,t,this);return}return this.kind=Reflect.getMetadata(`design:returntype`,t,n),h.annotate(e,r.value,t.constructor,this),r}};function v(e=``,t=Object,n=1e4,r=0,i=`1.0.0`,a=`grpc`,o=`json`,s=3,c=``,l=``,u=``,d=``,f=``,p=``){let ee=new fe(e,i,a,o,r,n,s,c,l,u,d,f,p,t);return ee.decorate.bind(ee)}var pe=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},me=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,he=/([^\s,]+)/g,ge=class{};ge=pe([_(`mesh`)],ge);var _e=class{index;name;kind;constructor(e,t,n){this.index=e,this.name=t,this.kind=n}},y=class{kind;name;method;constructor(e,t,n){this.kind=e,this.name=t,this.method=n}getAnnotation(e){return h.metadata(e,this.kind,this.method)}getName(){return h.metadata(fe,this.kind,this.method)?.attributes?.get(`name`)||this.name}getParameters(){let e=this.method.toString().replace(me,``),t=e.slice(e.indexOf(`(`)+1,e.indexOf(`)`)).match(he)||[],n=[];for(let e=0;e<t.length;e++){let r=h.metadata(ue,this.kind,`${this.getName()}:${e}`);n.push(new _e(e,r?.name||t[e],r?.clas||Object))}return n}getType(){return this.kind}getReturnType(){return new ae(h.metadata(fe,this.kind,this.method)?.retype)}getExecutable(){return this.method}getSymbol(){return this.name}invoke(e,t){return this.method(...t)}},ve=class{inspector;h;proxy;constructor(e,t,n){this.inspector=e,this.h=t,this.proxy=n}apply(e,t,n){return this.h.invoke(this.proxy,this.inspector,n)}},ye=class{inspectors=new p;executables=new p;constructor(e,t,n){for(let e of t)this.executables.set(e.getSymbol(),new Proxy(e.getExecutable(),new ve(e,n,this))),this.inspectors.set(e.getSymbol(),e)}getMethods(){return this.inspectors.map((e,t)=>t)}get(e,t,n){return this.executables.get(t)}},be=class{static proxies=new p;static inspectors=new p;static newProxyInstance(e,t){return this.proxies.get(e)||this.proxies.set(e,new p),this.proxies.get(e)?.get(t)||this.proxies.get(e)?.set(t,new Proxy(e,new ye(e,this.getMethods(e),t))),this.proxies.get(e)?.get(t)}static getMethods(e){return this.inspectors.computeIfy(e,e=>h.inspect(e).map((t,n)=>new y(e,t,n)))}},xe=class e{static value=new p;name;kind;prototype;priority;constructor(e,t){this.name=e,this.kind=t,this.prototype=!1,this.priority=1}getIfAbsent(){return this.prototype?this.create():e.value.computeIfy(this.kind,e=>this.create())}create(){return new this.kind}},Se=class{name=``;providers=[];constructor(e,t){this.name=e,this.providers=t.map(t=>new xe(e,t)).sort((e,t)=>e.priority-t.priority)}getIfAbsent(){if(this.providers.length<1)throw Error(`No such provider named ${this.name}`);return this.providers[0].getIfAbsent()}},Ce=class e{static loaders=new p;static load(t){return this.loaders.computeIfy(t,n=>new e(t))}providers=new p;spi;fist=``;constructor(e){this.spi=e,this.fist=h.metadata(de,e,e)?.name||``}defaultName(){return this.fist}getDefault(){return this.get(this.fist)}get(e){let t=this.getInstances().get(e);if(!t)throw Error(`SPI ${this.spi.name} named ${e} not exist.`);return t.getIfAbsent()}want(e){let t=this.getInstances().get(e);return t?t.getIfAbsent():null}list(){return this.getInstances().map((e,t)=>t.getIfAbsent())}getInstances(){return this.providers.computeIfy(`$`,e=>h.providers(de,this.spi).groupBy(e=>{let t=h.metadata(de,e,e);return t&&t.name||``}).groupKV(e=>e,(e,t)=>new Se(e,t)))}},we=class e{name;version;proto;codec;flags;timeout;traits;constructor(e,t,n,r,i,a){this.name=e,this.version=t,this.proto=n,this.codec=r,this.flags=i,this.timeout=a}decorate(t){this.traits=Object.getPrototypeOf(t.prototype).constructor,h.annotate(e,t,t,this),h.register(e,this.name,t,this)}};function Te(e=``,t=``,n=`grpc`,r=`json`,i=0,a=1e4){let o=new we(e,t,n,r,i,a);return o.decorate.bind(o)}function Ee(e){return`getCode`in e&&`getMessage`in e}var b=class extends Error{constructor(e,t){super(t),this.code=e,this.message=t}code;message;getCode(){return this.code}getMessage(){return this.message}},x=class{static SUCCESS=new b(`E0000000000`,`请求成功`);static NOT_FOUND=new b(`E0000000404`,`请求资源不存在`);static SYSTEM_ERROR=new b(`E0000000500`,`系统异常`);static SERVICE_UNAVAILABLE=new b(`E0000000503`,`循环请求服务不可达`);static VALIDATE=new b(`E0000000400`,`请求非法`);static UNAUTHORIZED=new b(`E0000000403`,`请求资源未被授权`);static UNKNOWN=new b(`E0000000520`,`未知异常`);static COMPATIBLE=new b(`E0000000600`,`系统不兼容`);static TIMEOUT=new b(`E0000000601`,`请求超时`);static NO_PROVIDER=new b(`E0000000602`,`无服务实例`);static CRYPT_ERROR=new b(`E0000000603`,`数字证书校验异常`);static TOKEN_EXPIRE=new b(`E0000000604`,`节点授权码已过期`);static NET_EXPIRE=new b(`E0000000605`,`节点组网时间已过期`);static NET_DISABLE=new b(`E0000000606`,`对方节点已禁用网络`);static NET_UNAVAILABLE=new b(`E0000000607`,`网络不通`);static LICENSE_FORMAT_ERROR=new b(`E0000000608`,`License非法`);static LICENSE_EXPIRED=new b(`E0000000609`,`License已过期`);static MAX_REPLICAS_LIMIT=new b(`E0000000610`,`集群副本已达许可上限`);static MAX_COOP_LIMIT=new b(`E0000000611`,`合作方链接数已达许可上限`);static MAX_TENANT_LIMIT=new b(`E0000000612`,`租户数已达许可上限`);static MAX_USER_LIMIT=new b(`E0000000613`,`用户数已达许可上限`);static URN_NOT_PERMIT=new b(`E0000000614`,`接口未被许可调用`);static SIGNATURE_ERROR=new b(`E0000000615`,`证书签名非法`);static CRYPT_CODEC_ERROR=new b(`E0000000616`,`报文编解码异常`);static NO_SERVICE=new b(`E0000000617`,`下游版本不匹配服务不存在`);static NET_NOT_WEAVE=new b(`E0000000618`,`节点或机构未组网`);static ADDRESS_ERROR=new b(`E0000000619`,`地址非法或无法访问`);static UNEXPECTED_SYNTAX=new b(`E0000000620`,`规则语法错误`);static UNKNOWN_SCRIPT=new b(`E0000000621`,`规则不存在`);static DATA_ID_ERROR=new b(`E0000000622`,`数据身份不存在或非法`);static START_PENDING=new b(`E0000000623`,`系统启动中`);static UNEXPECTED_SQL_SYNTAX=new b(`E0000000624`,`SQL语法错误`);static NO_DATABASE=new b(`E0000000625`,`数据库不存在`);static NO_TRANSACTION=new b(`E0000000626`,`事务不存在`);static SQL_EXECUTE_ERROR=new b(`E0000000627`,`SQL执行异常`);static DUPLICATE_KEY=new b(`E0000000628`,`唯一键冲突`);static InvalidCredential=new b(`E0000000629`,`账号或密码错误`);static ExpireAuthentication=new b(`E0000000630`,`认证已过期`);static ExpireAuthorizeCode=new b(`E0000000631`,`验证码或授权码已过期`);static WontService=new b(`E0000000632`,`服务不支持`);static AckFin=new b(`E0000000633`,`通信结束`);static DenyOp=new b(`E0000000634`,`操作非法`)},De=class{static inspect(e){return e instanceof b?e:(console.log(e),x.SYSTEM_ERROR)}static errorf(e){return e instanceof b?e:(console.log(e),x.SYSTEM_ERROR)}},Oe=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ke=class e{static Routine=new e(1);static Perform=new e(2);static Defense=new e(4);static Debug=new e(8);static LoadTest=new e(16);static Mock=new e(32);v;constructor(e){this.v=e}matches(e){return(this.v&e)==this.v}},Ae=class{name;constructor(e){this.name=e}},je=class extends Array{peek(){if(!(this.length<1))return this.at(this.length-1)}},Me=class{},Ne=class e{static MESH_TRACE_ID=new e(`mesh-trace-id`);static MESH_SPAN_ID=new e(`mesh-span-id`);static MESH_TIMESTAMP=new e(`mesh-timestamp`);static MESH_RUN_MODE=new e(`mesh-mode`);static MESH_CONSUMER=new e(`mesh-consumer`);static MESH_PROVIDER=new e(`mesh-provider`);static MESH_URN=new e(`mesh-urn`);static MESH_FROM_INST_ID=new e(`mesh-from-inst-id`);static MESH_FROM_NODE_ID=new e(`mesh-from-node-id`);static MESH_INCOMING_HOST=new e(`mesh-incoming-host`);static MESH_OUTGOING_HOST=new e(`mesh-outgoing-host`);static MESH_INCOMING_PROXY=new e(`mesh-incoming-proxy`);static MESH_OUTGOING_PROXY=new e(`mesh-outgoing-proxy`);static MESH_SUBSET=new e(`mesh-subset`);static MESH_SESSION_ID=new e(`mesh-session-id`);static MESH_VERSION=new e(`mesh-version`);static MESH_TIMEOUT=new e(`mesh-timeout`);key;constructor(e){this.key=e}get(e){let t=e.getAttachments()?.get(this.key);if(t)return t;let n=e.getAttachments()?.get(this.key.replace(`-`,`_`));if(n)return n;for(let t of e.getAttachments()?.entries())if(t[1]&&t[0]&&(t[0].toLowerCase()==this.key||t[0].replace(`_`,`-`).toLowerCase()==this.key))return t[1];return``}set(e,t){e.getAttachments()?.set(this.key,t)}},Pe=class{};Pe=Oe([_(`mesh`)],Pe);function S(){return Ce.load(Pe).getDefault().context()}var C=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Fe=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},Ie,Le,Re,ze,w=class{sid=``;index=0;limit=0;factor={};order=``};C([g(0,`sid`,String),Fe(`design:type`,String)],w.prototype,`sid`,void 0),C([g(1,`index`,Number),Fe(`design:type`,Number)],w.prototype,`index`,void 0),C([g(2,`limit`,Number),Fe(`design:type`,Number)],w.prototype,`limit`,void 0),C([g(3,`factor`,[Map,String,Object]),Fe(`design:type`,typeof(Ie=typeof Record<`u`&&Record)==`function`?Ie:Object)],w.prototype,`factor`,void 0),C([g(4,`order`,String),Fe(`design:type`,String)],w.prototype,`order`,void 0);var T=class{sid=``;index=0;limit=0;total=0;next=!1;data=[]};C([g(0,`sid`,String),Fe(`design:type`,String)],T.prototype,`sid`,void 0),C([g(1,`index`,Number),Fe(`design:type`,Number)],T.prototype,`index`,void 0),C([g(2,`limit`,Number),Fe(`design:type`,Number)],T.prototype,`limit`,void 0),C([g(3,`total`,Number),Fe(`design:type`,Number)],T.prototype,`total`,void 0),C([g(4,`next`,Boolean),Fe(`design:type`,Boolean)],T.prototype,`next`,void 0),C([g(5,`data`,[Array,Object]),Fe(`design:type`,Array)],T.prototype,`data`,void 0);var Be=class{nodeId=``;nodeName=``;instId=``;instName=``};C([g(0,`node_id`,String),Fe(`design:type`,String)],Be.prototype,`nodeId`,void 0),C([g(1,`node_name`,String),Fe(`design:type`,String)],Be.prototype,`nodeName`,void 0),C([g(2,`inst_id`,String),Fe(`design:type`,String)],Be.prototype,`instId`,void 0),C([g(3,`inst_name`,String),Fe(`design:type`,String)],Be.prototype,`instName`,void 0);var Ve=class{status=0;createAt=void 0;updateAt=void 0;createBy=``;updateBy=``};C([g(0,`status`,Number),Fe(`design:type`,Number)],Ve.prototype,`status`,void 0),C([g(1,`create_at`,Date),Fe(`design:type`,typeof(Le=typeof Date<`u`&&Date)==`function`?Le:Object)],Ve.prototype,`createAt`,void 0),C([g(2,`update_at`,Date),Fe(`design:type`,typeof(Re=typeof Date<`u`&&Date)==`function`?Re:Object)],Ve.prototype,`updateAt`,void 0),C([g(3,`create_by`,String),Fe(`design:type`,String)],Ve.prototype,`createBy`,void 0),C([g(4,`update_by`,String),Fe(`design:type`,String)],Ve.prototype,`updateBy`,void 0);var He=class{name=``;pos=``;text=``;buff=new Uint8Array};C([g(0,`name`,String),Fe(`design:type`,String)],He.prototype,`name`,void 0),C([g(1,`pos`,String),Fe(`design:type`,String)],He.prototype,`pos`,void 0),C([g(2,`text`,String),Fe(`design:type`,String)],He.prototype,`text`,void 0),C([g(3,`buff`,Uint8Array),Fe(`design:type`,typeof(ze=typeof Uint8Array<`u`&&Uint8Array)==`function`?ze:Object)],He.prototype,`buff`,void 0);var Ue=class{topic=``;code=``;group=``;sets=``};C([g(0,`topic`,String),Fe(`design:type`,String)],Ue.prototype,`topic`,void 0),C([g(1,`code`,String),Fe(`design:type`,String)],Ue.prototype,`code`,void 0),C([g(2,`group`,String),Fe(`design:type`,String)],Ue.prototype,`group`,void 0),C([g(3,`sets`,String),Fe(`design:type`,String)],Ue.prototype,`sets`,void 0);var We=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ge=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},Ke,qe,Je,Ye,Xe,Ze=class{suite=``;project=``;name=``;version=``};We([g(0,`suite`,String),Ge(`design:type`,String)],Ze.prototype,`suite`,void 0),We([g(1,`project`,String),Ge(`design:type`,String)],Ze.prototype,`project`,void 0),We([g(2,`name`,String),Ge(`design:type`,String)],Ze.prototype,`name`,void 0),We([g(3,`version`,String),Ge(`design:type`,String)],Ze.prototype,`version`,void 0);var Qe=class{name=``;proto=``;algo=``;parties=[];message=``};We([g(0,`name`,String),Ge(`design:type`,String)],Qe.prototype,`name`,void 0),We([g(1,`proto`,String),Ge(`design:type`,String)],Qe.prototype,`proto`,void 0),We([g(2,`algo`,String),Ge(`design:type`,String)],Qe.prototype,`algo`,void 0),We([g(3,`parties`,[Array,String]),Ge(`design:type`,Array)],Qe.prototype,`parties`,void 0),We([g(4,`message`,String),Ge(`design:type`,String)],Qe.prototype,`message`,void 0);var $e=class{suite=``;csr=new Uint8Array};We([g(0,`suite`,String),Ge(`design:type`,String)],$e.prototype,`suite`,void 0),We([g(1,`csr`,Uint8Array),Ge(`design:type`,typeof(Ke=typeof Uint8Array<`u`&&Uint8Array)==`function`?Ke:Object)],$e.prototype,`csr`,void 0);var et=class{hello=new Qe;suite=new $e;local=``};We([g(0,`hello`,Qe),Ge(`design:type`,Qe)],et.prototype,`hello`,void 0),We([g(1,`suite`,$e),Ge(`design:type`,$e)],et.prototype,`suite`,void 0),We([g(2,`local`,String),Ge(`design:type`,String)],et.prototype,`local`,void 0);var tt=class extends et{keys={}};We([g(0,`keys`,[Map,String,Uint8Array]),Ge(`design:type`,typeof(qe=typeof Record<`u`&&Record)==`function`?qe:Object)],tt.prototype,`keys`,void 0);var nt=class{keys={}};We([g(0,`keys`,[Map,String,Uint8Array]),Ge(`design:type`,typeof(Je=typeof Record<`u`&&Record)==`function`?Je:Object)],nt.prototype,`keys`,void 0);var rt=class{suite=``;body=new Uint8Array};We([g(0,`suite`,String),Ge(`design:type`,String)],rt.prototype,`suite`,void 0),We([g(1,`body`,Uint8Array),Ge(`design:type`,typeof(Ye=typeof Uint8Array<`u`&&Uint8Array)==`function`?Ye:Object)],rt.prototype,`body`,void 0);var it=class extends rt{reKey=new Uint8Array};We([g(0,`re_key`,Uint8Array),Ge(`design:type`,typeof(Xe=typeof Uint8Array<`u`&&Uint8Array)==`function`?Xe:Object)],it.prototype,`reKey`,void 0);var at=class{code=``;name=``;memo=``;uri=``;level=``;nodeId=``;instId=``;raw=``};We([g(0,`code`,String),Ge(`design:type`,String)],at.prototype,`code`,void 0),We([g(1,`name`,String),Ge(`design:type`,String)],at.prototype,`name`,void 0),We([g(2,`memo`,String),Ge(`design:type`,String)],at.prototype,`memo`,void 0),We([g(3,`uri`,String),Ge(`design:type`,String)],at.prototype,`uri`,void 0),We([g(4,`level`,String),Ge(`design:type`,String)],at.prototype,`level`,void 0),We([g(5,`node_id`,String),Ge(`design:type`,String)],at.prototype,`nodeId`,void 0),We([g(6,`inst_id`,String),Ge(`design:type`,String)],at.prototype,`instId`,void 0),We([g(7,`raw`,String),Ge(`design:type`,String)],at.prototype,`raw`,void 0);var E=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},D=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},ot,st,ct,lt=class{id=``;name=``;modal=``;proto=``;url=``;memo=``;status=0};E([g(0,`id`,String),D(`design:type`,String)],lt.prototype,`id`,void 0),E([g(1,`name`,String),D(`design:type`,String)],lt.prototype,`name`,void 0),E([g(2,`modal`,String),D(`design:type`,String)],lt.prototype,`modal`,void 0),E([g(3,`proto`,String),D(`design:type`,String)],lt.prototype,`proto`,void 0),E([g(4,`url`,String),D(`design:type`,String)],lt.prototype,`url`,void 0),E([g(5,`memo`,String),D(`design:type`,String)],lt.prototype,`memo`,void 0),E([g(6,`status`,Number),D(`design:type`,Number)],lt.prototype,`status`,void 0);var ut=class extends lt{role=``;rw=0;ww=0;failover=!1};E([g(0,`role`,String),D(`design:type`,String)],ut.prototype,`role`,void 0),E([g(1,`rw`,Number),D(`design:type`,Number)],ut.prototype,`rw`,void 0),E([g(2,`ww`,Number),D(`design:type`,Number)],ut.prototype,`ww`,void 0),E([g(3,`failover`,Boolean),D(`design:type`,Boolean)],ut.prototype,`failover`,void 0);var dt=class{id=``;name=``;modal=``;keepalive=0;retries=0;rwmode=0;failover=!1;instances=[];status=0;url=``;proto=``;gfs=``};E([g(0,`id`,String),D(`design:type`,String)],dt.prototype,`id`,void 0),E([g(1,`name`,String),D(`design:type`,String)],dt.prototype,`name`,void 0),E([g(2,`modal`,String),D(`design:type`,String)],dt.prototype,`modal`,void 0),E([g(3,`keepalive`,Number),D(`design:type`,Number)],dt.prototype,`keepalive`,void 0),E([g(4,`retries`,Number),D(`design:type`,Number)],dt.prototype,`retries`,void 0),E([g(5,`rw_mode`,Number),D(`design:type`,Number)],dt.prototype,`rwmode`,void 0),E([g(6,`failover`,Boolean),D(`design:type`,Boolean)],dt.prototype,`failover`,void 0),E([g(7,`instances`,[Array,ut]),D(`design:type`,Array)],dt.prototype,`instances`,void 0),E([g(8,`status`,Number),D(`design:type`,Number)],dt.prototype,`status`,void 0),E([g(9,`url`,String),D(`design:type`,String)],dt.prototype,`url`,void 0),E([g(10,`proto`,String),D(`design:type`,String)],dt.prototype,`proto`,void 0),E([g(11,`gfs`,String),D(`design:type`,String)],dt.prototype,`gfs`,void 0);var ft=class{id=``;expr=``;db=``};E([g(0,`id`,String),D(`design:type`,String)],ft.prototype,`id`,void 0),E([g(1,`expr`,String),D(`design:type`,String)],ft.prototype,`expr`,void 0),E([g(2,`db`,String),D(`design:type`,String)],ft.prototype,`db`,void 0);var pt=class{id=``;name=``;kind=``;modal=``;sid=``;did=``;sname=``;dname=``;abc=``;dag=``;raw=``;status=0;createAt=void 0;updateAt=void 0;createBy=``;updateBy=``};E([g(0,`id`,String),D(`design:type`,String)],pt.prototype,`id`,void 0),E([g(1,`name`,String),D(`design:type`,String)],pt.prototype,`name`,void 0),E([g(2,`kind`,String),D(`design:type`,String)],pt.prototype,`kind`,void 0),E([g(3,`modal`,String),D(`design:type`,String)],pt.prototype,`modal`,void 0),E([g(4,`sid`,String),D(`design:type`,String)],pt.prototype,`sid`,void 0),E([g(5,`did`,String),D(`design:type`,String)],pt.prototype,`did`,void 0),E([g(6,`s_name`,String),D(`design:type`,String)],pt.prototype,`sname`,void 0),E([g(7,`d_name`,String),D(`design:type`,String)],pt.prototype,`dname`,void 0),E([g(8,`abc`,String),D(`design:type`,String)],pt.prototype,`abc`,void 0),E([g(9,`dag`,String),D(`design:type`,String)],pt.prototype,`dag`,void 0),E([g(10,`raw`,String),D(`design:type`,String)],pt.prototype,`raw`,void 0),E([g(11,`status`,Number),D(`design:type`,Number)],pt.prototype,`status`,void 0),E([g(12,`create_at`,Date),D(`design:type`,typeof(ot=typeof Date<`u`&&Date)==`function`?ot:Object)],pt.prototype,`createAt`,void 0),E([g(13,`update_at`,Date),D(`design:type`,typeof(st=typeof Date<`u`&&Date)==`function`?st:Object)],pt.prototype,`updateAt`,void 0),E([g(14,`create_by`,String),D(`design:type`,String)],pt.prototype,`createBy`,void 0),E([g(15,`update_by`,String),D(`design:type`,String)],pt.prototype,`updateBy`,void 0);var mt=class{id=``;name=``;modal=``;path=``;size=0;lines=0;createAt=void 0};E([g(0,`id`,String),D(`design:type`,String)],mt.prototype,`id`,void 0),E([g(1,`name`,String),D(`design:type`,String)],mt.prototype,`name`,void 0),E([g(2,`modal`,String),D(`design:type`,String)],mt.prototype,`modal`,void 0),E([g(3,`path`,String),D(`design:type`,String)],mt.prototype,`path`,void 0),E([g(4,`size`,Number),D(`design:type`,Number)],mt.prototype,`size`,void 0),E([g(5,`lines`,Number),D(`design:type`,Number)],mt.prototype,`lines`,void 0),E([g(6,`create_at`,Date),D(`design:type`,typeof(ct=typeof Date<`u`&&Date)==`function`?ct:Object)],mt.prototype,`createAt`,void 0);var ht=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},gt=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},_t,vt,yt,bt=class{name=``;icon=``;version=``;memo=``;raw={}};ht([g(0,`name`,String),gt(`design:type`,String)],bt.prototype,`name`,void 0),ht([g(1,`icon`,String),gt(`design:type`,String)],bt.prototype,`icon`,void 0),ht([g(2,`version`,String),gt(`design:type`,String)],bt.prototype,`version`,void 0),ht([g(3,`memo`,String),gt(`design:type`,String)],bt.prototype,`memo`,void 0),ht([g(4,`raw`,[Map,String,String]),gt(`design:type`,typeof(_t=typeof Record<`u`&&Record)==`function`?_t:Object)],bt.prototype,`raw`,void 0);var xt=class{code=``;name=``;scene=``;mode=``;plan=``;appset=``;memo=``;srcUri=``;dstUri=``;raw=``;last=``;size=0;status=0;createAt=void 0;updateAt=void 0;createBy=``;updateBy=``};ht([g(0,`code`,String),gt(`design:type`,String)],xt.prototype,`code`,void 0),ht([g(1,`name`,String),gt(`design:type`,String)],xt.prototype,`name`,void 0),ht([g(2,`scene`,String),gt(`design:type`,String)],xt.prototype,`scene`,void 0),ht([g(3,`mode`,String),gt(`design:type`,String)],xt.prototype,`mode`,void 0),ht([g(4,`plan`,String),gt(`design:type`,String)],xt.prototype,`plan`,void 0),ht([g(5,`appset`,String),gt(`design:type`,String)],xt.prototype,`appset`,void 0),ht([g(6,`memo`,String),gt(`design:type`,String)],xt.prototype,`memo`,void 0),ht([g(7,`src_uri`,String),gt(`design:type`,String)],xt.prototype,`srcUri`,void 0),ht([g(8,`dst_uri`,String),gt(`design:type`,String)],xt.prototype,`dstUri`,void 0),ht([g(9,`raw`,String),gt(`design:type`,String)],xt.prototype,`raw`,void 0),ht([g(10,`last`,String),gt(`design:type`,String)],xt.prototype,`last`,void 0),ht([g(11,`size`,Number),gt(`design:type`,Number)],xt.prototype,`size`,void 0),ht([g(12,`status`,Number),gt(`design:type`,Number)],xt.prototype,`status`,void 0),ht([g(13,`create_at`,Date),gt(`design:type`,typeof(vt=typeof Date<`u`&&Date)==`function`?vt:Object)],xt.prototype,`createAt`,void 0),ht([g(14,`update_at`,Date),gt(`design:type`,typeof(yt=typeof Date<`u`&&Date)==`function`?yt:Object)],xt.prototype,`updateAt`,void 0),ht([g(15,`create_by`,String),gt(`design:type`,String)],xt.prototype,`createBy`,void 0),ht([g(16,`update_by`,String),gt(`design:type`,String)],xt.prototype,`updateBy`,void 0);var St=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ct=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},wt,Tt,Et=class{metadata={};content=``;timestamp=0};St([g(0,`metadata`,[Map,String,String]),Ct(`design:type`,typeof(wt=typeof Record<`u`&&Record)==`function`?wt:Object)],Et.prototype,`metadata`,void 0),St([g(1,`content`,String),Ct(`design:type`,String)],Et.prototype,`content`,void 0),St([g(2,`timestamp`,Number),Ct(`design:type`,Number)],Et.prototype,`timestamp`,void 0);var Dt=class{queries={};start=0;end=0;limit=0;step=``;direction=``;routeKey=``};St([g(0,`queries`,[Map,String,String]),Ct(`design:type`,typeof(Tt=typeof Record<`u`&&Record)==`function`?Tt:Object)],Dt.prototype,`queries`,void 0),St([g(1,`start`,Number),Ct(`design:type`,Number)],Dt.prototype,`start`,void 0),St([g(2,`end`,Number),Ct(`design:type`,Number)],Dt.prototype,`end`,void 0),St([g(3,`limit`,Number),Ct(`design:type`,Number)],Dt.prototype,`limit`,void 0),St([g(4,`step`,String),Ct(`design:type`,String)],Dt.prototype,`step`,void 0),St([g(5,`direction`,String),Ct(`design:type`,String)],Dt.prototype,`direction`,void 0),St([g(6,`route_key`,String),Ct(`design:type`,String)],Dt.prototype,`routeKey`,void 0);var O=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},k=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},Ot,kt,At,jt,Mt=class{codec=``;schema=``;buffer=new Uint8Array};O([g(0,`codec`,String),k(`design:type`,String)],Mt.prototype,`codec`,void 0),O([g(1,`schema`,String),k(`design:type`,String)],Mt.prototype,`schema`,void 0),O([g(2,`buffer`,Uint8Array),k(`design:type`,typeof(Ot=typeof Uint8Array<`u`&&Uint8Array)==`function`?Ot:Object)],Mt.prototype,`buffer`,void 0);var Nt=class{version=``;entity=new Mt;timestamp=0;duration=0;key=``};O([g(0,`version`,String),k(`design:type`,String)],Nt.prototype,`version`,void 0),O([g(1,`entity`,Mt),k(`design:type`,Mt)],Nt.prototype,`entity`,void 0),O([g(2,`timestamp`,Number),k(`design:type`,Number)],Nt.prototype,`timestamp`,void 0),O([g(3,`duration`,Number),k(`design:type`,Number)],Nt.prototype,`duration`,void 0),O([g(4,`key`,String),k(`design:type`,String)],Nt.prototype,`key`,void 0);var Pt=class{key=``;value=new Mt;updateAt=void 0};O([g(0,`key`,String),k(`design:type`,String)],Pt.prototype,`key`,void 0),O([g(1,`value`,Mt),k(`design:type`,Mt)],Pt.prototype,`value`,void 0),O([g(2,`update_at`,Date),k(`design:type`,typeof(kt=typeof Date<`u`&&Date)==`function`?kt:Object)],Pt.prototype,`updateAt`,void 0);var Ft=class{mno=``;kind=``;mime=new Uint8Array;text=``};O([g(0,`mno`,String),k(`design:type`,String)],Ft.prototype,`mno`,void 0),O([g(1,`kind`,String),k(`design:type`,String)],Ft.prototype,`kind`,void 0),O([g(2,`mime`,Uint8Array),k(`design:type`,typeof(At=typeof Uint8Array<`u`&&Uint8Array)==`function`?At:Object)],Ft.prototype,`mime`,void 0),O([g(3,`text`,String),k(`design:type`,String)],Ft.prototype,`text`,void 0);var It=class{role=``;party=``;kind=``;think=``;data=``;format=``;batch=``;step=``};O([g(0,`role`,String),k(`design:type`,String)],It.prototype,`role`,void 0),O([g(1,`party`,String),k(`design:type`,String)],It.prototype,`party`,void 0),O([g(2,`kind`,String),k(`design:type`,String)],It.prototype,`kind`,void 0),O([g(3,`think`,String),k(`design:type`,String)],It.prototype,`think`,void 0),O([g(4,`data`,String),k(`design:type`,String)],It.prototype,`data`,void 0),O([g(5,`format`,String),k(`design:type`,String)],It.prototype,`format`,void 0),O([g(6,`batch`,String),k(`design:type`,String)],It.prototype,`batch`,void 0),O([g(7,`step`,String),k(`design:type`,String)],It.prototype,`step`,void 0);var Lt=class{searchType=``;deepThink=!1;deepResearch=!1;model=``;scene=``;operateType=``;language=``;knowledgeID=``;proxy=``;attaches={};agent=``};O([g(0,`search_type`,String),k(`design:type`,String)],Lt.prototype,`searchType`,void 0),O([g(1,`deep_think`,Boolean),k(`design:type`,Boolean)],Lt.prototype,`deepThink`,void 0),O([g(2,`deep_research`,Boolean),k(`design:type`,Boolean)],Lt.prototype,`deepResearch`,void 0),O([g(3,`model`,String),k(`design:type`,String)],Lt.prototype,`model`,void 0),O([g(4,`scene`,String),k(`design:type`,String)],Lt.prototype,`scene`,void 0),O([g(5,`operate_type`,String),k(`design:type`,String)],Lt.prototype,`operateType`,void 0),O([g(6,`language`,String),k(`design:type`,String)],Lt.prototype,`language`,void 0),O([g(7,`knowledge_id`,String),k(`design:type`,String)],Lt.prototype,`knowledgeID`,void 0),O([g(8,`proxy`,String),k(`design:type`,String)],Lt.prototype,`proxy`,void 0),O([g(9,`attaches`,[Map,String,String]),k(`design:type`,typeof(jt=typeof Record<`u`&&Record)==`function`?jt:Object)],Lt.prototype,`attaches`,void 0),O([g(10,`agent`,String),k(`design:type`,String)],Lt.prototype,`agent`,void 0);var Rt=class{method=``;mode=``;traceId=``;token=``;conversationId=``;contents=[];options=new Lt};O([g(0,`method`,String),k(`design:type`,String)],Rt.prototype,`method`,void 0),O([g(1,`mode`,String),k(`design:type`,String)],Rt.prototype,`mode`,void 0),O([g(2,`trace_id`,String),k(`design:type`,String)],Rt.prototype,`traceId`,void 0),O([g(3,`token`,String),k(`design:type`,String)],Rt.prototype,`token`,void 0),O([g(4,`conversation_id`,String),k(`design:type`,String)],Rt.prototype,`conversationId`,void 0),O([g(5,`contents`,[Array,It]),k(`design:type`,Array)],Rt.prototype,`contents`,void 0),O([g(6,`options`,Lt),k(`design:type`,Lt)],Rt.prototype,`options`,void 0);var zt=class{code=``;message=``;content=void 0};O([g(0,`code`,String),k(`design:type`,String)],zt.prototype,`code`,void 0),O([g(1,`message`,String),k(`design:type`,String)],zt.prototype,`message`,void 0),O([g(2,`content`,Object),k(`design:type`,Object)],zt.prototype,`content`,void 0);var Bt=class{},Vt=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ht=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},Ut=class{zone=``;cluster=``;cell=``;group=``;address=``};Vt([g(0,`zone`,String),Ht(`design:type`,String)],Ut.prototype,`zone`,void 0),Vt([g(1,`cluster`,String),Ht(`design:type`,String)],Ut.prototype,`cluster`,void 0),Vt([g(2,`cell`,String),Ht(`design:type`,String)],Ut.prototype,`cell`,void 0),Vt([g(3,`group`,String),Ht(`design:type`,String)],Ut.prototype,`group`,void 0),Vt([g(4,`address`,String),Ht(`design:type`,String)],Ut.prototype,`address`,void 0);var Wt=class{mdc=``;version=``;name=``;crt=``;key=``;rootCrt=``;lattice=new Ut;nodeID=``;instID=``;instName=``};Vt([g(0,`mdc`,String),Ht(`design:type`,String)],Wt.prototype,`mdc`,void 0),Vt([g(1,`version`,String),Ht(`design:type`,String)],Wt.prototype,`version`,void 0),Vt([g(2,`name`,String),Ht(`design:type`,String)],Wt.prototype,`name`,void 0),Vt([g(3,`crt`,String),Ht(`design:type`,String)],Wt.prototype,`crt`,void 0),Vt([g(4,`key`,String),Ht(`design:type`,String)],Wt.prototype,`key`,void 0),Vt([g(5,`root_crt`,String),Ht(`design:type`,String)],Wt.prototype,`rootCrt`,void 0),Vt([g(6,`lattice`,Ut),Ht(`design:type`,Ut)],Wt.prototype,`lattice`,void 0),Vt([g(7,`node_id`,String),Ht(`design:type`,String)],Wt.prototype,`nodeID`,void 0),Vt([g(8,`inst_id`,String),Ht(`design:type`,String)],Wt.prototype,`instID`,void 0),Vt([g(9,`inst_name`,String),Ht(`design:type`,String)],Wt.prototype,`instName`,void 0);var Gt=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Kt=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},qt=class{id=``};Gt([g(0,`idc`,String),Kt(`design:type`,String)],qt.prototype,`id`,void 0);var Jt=class extends qt{ip=``;port=``;host=``;name=``};Gt([g(0,`ip`,String),Kt(`design:type`,String)],Jt.prototype,`ip`,void 0),Gt([g(1,`port`,String),Kt(`design:type`,String)],Jt.prototype,`port`,void 0),Gt([g(2,`host`,String),Kt(`design:type`,String)],Jt.prototype,`host`,void 0),Gt([g(3,`name`,String),Kt(`design:type`,String)],Jt.prototype,`name`,void 0);var Yt=class{nodeId=``;instId=``;instName=``};Gt([g(0,`node_id`,String),Kt(`design:type`,String)],Yt.prototype,`nodeId`,void 0),Gt([g(1,`inst_id`,String),Kt(`design:type`,String)],Yt.prototype,`instId`,void 0),Gt([g(2,`inst_name`,String),Kt(`design:type`,String)],Yt.prototype,`instName`,void 0);var Xt=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Zt=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},Qt,$t,en,tn,nn,rn,an=class{version=``;tid=``;sid=``;eid=``;mid=``;timestamp=``;source=new qt;target=new qt;binding=new Ue;entity=new Mt};Xt([g(0,`version`,String),Zt(`design:type`,String)],an.prototype,`version`,void 0),Xt([g(1,`tid`,String),Zt(`design:type`,String)],an.prototype,`tid`,void 0),Xt([g(2,`sid`,String),Zt(`design:type`,String)],an.prototype,`sid`,void 0),Xt([g(3,`eid`,String),Zt(`design:type`,String)],an.prototype,`eid`,void 0),Xt([g(4,`mid`,String),Zt(`design:type`,String)],an.prototype,`mid`,void 0),Xt([g(5,`timestamp`,String),Zt(`design:type`,String)],an.prototype,`timestamp`,void 0),Xt([g(6,`source`,qt),Zt(`design:type`,typeof(Qt=qt!==void 0&&qt)==`function`?Qt:Object)],an.prototype,`source`,void 0),Xt([g(7,`target`,qt),Zt(`design:type`,typeof($t=qt!==void 0&&qt)==`function`?$t:Object)],an.prototype,`target`,void 0),Xt([g(8,`binding`,Ue),Zt(`design:type`,typeof(en=Ue!==void 0&&Ue)==`function`?en:Object)],an.prototype,`binding`,void 0),Xt([g(9,`entity`,Mt),Zt(`design:type`,typeof(tn=Mt!==void 0&&Mt)==`function`?tn:Object)],an.prototype,`entity`,void 0);var on=class{taskId=``;binding=new Ue;status=0;createAt=0;invokeAt=0;entity=new Mt};Xt([g(0,`task_id`,String),Zt(`design:type`,String)],on.prototype,`taskId`,void 0),Xt([g(1,`binding`,Ue),Zt(`design:type`,typeof(nn=Ue!==void 0&&Ue)==`function`?nn:Object)],on.prototype,`binding`,void 0),Xt([g(2,`status`,Number),Zt(`design:type`,Number)],on.prototype,`status`,void 0),Xt([g(3,`create_at`,Number),Zt(`design:type`,Number)],on.prototype,`createAt`,void 0),Xt([g(4,`invoke_at`,Number),Zt(`design:type`,Number)],on.prototype,`invokeAt`,void 0),Xt([g(5,`entity`,Mt),Zt(`design:type`,typeof(rn=Mt!==void 0&&Mt)==`function`?rn:Object)],on.prototype,`entity`,void 0);var sn=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},cn=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},ln,un,A=class{code=``;name=``;listen=``;priority=0;kind=``;mode=``;proto=``;filter=``;matcher=``;flags=``;src=``;dst=``;host=``;path=``;method=``;query=``;header=``;cookie=``;memo=``;raw=``;status=0;createAt=void 0;updateAt=void 0;createBy=``;updateBy=``};sn([g(0,`code`,String),cn(`design:type`,String)],A.prototype,`code`,void 0),sn([g(1,`name`,String),cn(`design:type`,String)],A.prototype,`name`,void 0),sn([g(2,`listen`,String),cn(`design:type`,String)],A.prototype,`listen`,void 0),sn([g(3,`priority`,Number),cn(`design:type`,Number)],A.prototype,`priority`,void 0),sn([g(4,`kind`,String),cn(`design:type`,String)],A.prototype,`kind`,void 0),sn([g(5,`mode`,String),cn(`design:type`,String)],A.prototype,`mode`,void 0),sn([g(6,`proto`,String),cn(`design:type`,String)],A.prototype,`proto`,void 0),sn([g(7,`filter`,String),cn(`design:type`,String)],A.prototype,`filter`,void 0),sn([g(8,`matcher`,String),cn(`design:type`,String)],A.prototype,`matcher`,void 0),sn([g(9,`flags`,String),cn(`design:type`,String)],A.prototype,`flags`,void 0),sn([g(10,`src`,String),cn(`design:type`,String)],A.prototype,`src`,void 0),sn([g(11,`dst`,String),cn(`design:type`,String)],A.prototype,`dst`,void 0),sn([g(12,`host`,String),cn(`design:type`,String)],A.prototype,`host`,void 0),sn([g(13,`path`,String),cn(`design:type`,String)],A.prototype,`path`,void 0),sn([g(14,`method`,String),cn(`design:type`,String)],A.prototype,`method`,void 0),sn([g(15,`query`,String),cn(`design:type`,String)],A.prototype,`query`,void 0),sn([g(16,`header`,String),cn(`design:type`,String)],A.prototype,`header`,void 0),sn([g(17,`cookie`,String),cn(`design:type`,String)],A.prototype,`cookie`,void 0),sn([g(18,`memo`,String),cn(`design:type`,String)],A.prototype,`memo`,void 0),sn([g(19,`raw`,String),cn(`design:type`,String)],A.prototype,`raw`,void 0),sn([g(20,`status`,Number),cn(`design:type`,Number)],A.prototype,`status`,void 0),sn([g(21,`create_at`,Date),cn(`design:type`,typeof(ln=typeof Date<`u`&&Date)==`function`?ln:Object)],A.prototype,`createAt`,void 0),sn([g(22,`update_at`,Date),cn(`design:type`,typeof(un=typeof Date<`u`&&Date)==`function`?un:Object)],A.prototype,`updateAt`,void 0),sn([g(23,`create_by`,String),cn(`design:type`,String)],A.prototype,`createBy`,void 0),sn([g(24,`update_by`,String),cn(`design:type`,String)],A.prototype,`updateBy`,void 0);var j=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},M=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},dn,fn,pn,mn,hn,gn,_n,vn=class{algo=``;domain=``;subject=``;length=0;activeAt=void 0;expireAt=void 0;mail=``;isCA=!1;caAlgo=``;caCert=``;caKey=``;ips=[];name=``;usage=0};j([g(0,`algo`,String),M(`design:type`,String)],vn.prototype,`algo`,void 0),j([g(1,`domain`,String),M(`design:type`,String)],vn.prototype,`domain`,void 0),j([g(2,`subject`,String),M(`design:type`,String)],vn.prototype,`subject`,void 0),j([g(3,`length`,Number),M(`design:type`,Number)],vn.prototype,`length`,void 0),j([g(4,`active_at`,Date),M(`design:type`,typeof(dn=typeof Date<`u`&&Date)==`function`?dn:Object)],vn.prototype,`activeAt`,void 0),j([g(5,`expire_at`,Date),M(`design:type`,typeof(fn=typeof Date<`u`&&Date)==`function`?fn:Object)],vn.prototype,`expireAt`,void 0),j([g(6,`mail`,String),M(`design:type`,String)],vn.prototype,`mail`,void 0),j([g(7,`is_ca`,Boolean),M(`design:type`,Boolean)],vn.prototype,`isCA`,void 0),j([g(8,`ca_algo`,String),M(`design:type`,String)],vn.prototype,`caAlgo`,void 0),j([g(9,`ca_cert`,String),M(`design:type`,String)],vn.prototype,`caCert`,void 0),j([g(10,`ca_key`,String),M(`design:type`,String)],vn.prototype,`caKey`,void 0),j([g(11,`ips`,[Array,String]),M(`design:type`,Array)],vn.prototype,`ips`,void 0),j([g(12,`name`,String),M(`design:type`,String)],vn.prototype,`name`,void 0),j([g(13,`usage`,Number),M(`design:type`,Number)],vn.prototype,`usage`,void 0);var yn=class extends vn{crt=``;key=``;crl=``;id=``};j([g(0,`crt`,String),M(`design:type`,String)],yn.prototype,`crt`,void 0),j([g(1,`key`,String),M(`design:type`,String)],yn.prototype,`key`,void 0),j([g(2,`crl`,String),M(`design:type`,String)],yn.prototype,`crl`,void 0),j([g(3,`id`,String),M(`design:type`,String)],yn.prototype,`id`,void 0);var bn=class{id=``;reason=0};j([g(0,`id`,String),M(`design:type`,String)],bn.prototype,`id`,void 0),j([g(1,`reason`,Number),M(`design:type`,Number)],bn.prototype,`reason`,void 0);var xn=class{id=``;algo=``;expireAt=void 0};j([g(0,`id`,String),M(`design:type`,String)],xn.prototype,`id`,void 0),j([g(1,`algo`,String),M(`design:type`,String)],xn.prototype,`algo`,void 0),j([g(2,`expire_at`,Date),M(`design:type`,typeof(pn=typeof Date<`u`&&Date)==`function`?pn:Object)],xn.prototype,`expireAt`,void 0);var Sn=class{crts={};roots={}};j([g(0,`crts`,[Map,String,yn]),M(`design:type`,typeof(mn=typeof Record<`u`&&Record)==`function`?mn:Object)],Sn.prototype,`crts`,void 0),j([g(1,`roots`,[Map,String,yn]),M(`design:type`,typeof(hn=typeof Record<`u`&&Record)==`function`?hn:Object)],Sn.prototype,`roots`,void 0);var Cn=class{id=``;algo=``;length=0;name=``;memo=``};j([g(0,`id`,String),M(`design:type`,String)],Cn.prototype,`id`,void 0),j([g(1,`algo`,String),M(`design:type`,String)],Cn.prototype,`algo`,void 0),j([g(2,`length`,Number),M(`design:type`,Number)],Cn.prototype,`length`,void 0),j([g(3,`name`,String),M(`design:type`,String)],Cn.prototype,`name`,void 0),j([g(4,`memo`,String),M(`design:type`,String)],Cn.prototype,`memo`,void 0);var wn=class extends Cn{status=0;createAt=void 0;updateAt=void 0;createBy=``;updateBy=``};j([g(0,`status`,Number),M(`design:type`,Number)],wn.prototype,`status`,void 0),j([g(1,`create_at`,Date),M(`design:type`,typeof(gn=typeof Date<`u`&&Date)==`function`?gn:Object)],wn.prototype,`createAt`,void 0),j([g(2,`update_at`,Date),M(`design:type`,typeof(_n=typeof Date<`u`&&Date)==`function`?_n:Object)],wn.prototype,`updateAt`,void 0),j([g(3,`create_by`,String),M(`design:type`,String)],wn.prototype,`createBy`,void 0),j([g(4,`update_by`,String),M(`design:type`,String)],wn.prototype,`updateBy`,void 0);var Tn=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},En=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},Dn,On,kn=class{version=``;level=0;name=``;createBy=``;createAt=0;activeAt=0;factor=``;signature=``;muid=``;server=``;crt=``;group=[];replicas=0;maxCooperators=0;maxTenants=0;maxUsers=0;maxMills=0;whiteURN=[];blackURN=[];superURN=[]};Tn([g(0,`version`,String),En(`design:type`,String)],kn.prototype,`version`,void 0),Tn([g(1,`level`,Number),En(`design:type`,Number)],kn.prototype,`level`,void 0),Tn([g(2,`name`,String),En(`design:type`,String)],kn.prototype,`name`,void 0),Tn([g(3,`create_by`,String),En(`design:type`,String)],kn.prototype,`createBy`,void 0),Tn([g(4,`create_at`,Number),En(`design:type`,Number)],kn.prototype,`createAt`,void 0),Tn([g(5,`active_at`,Number),En(`design:type`,Number)],kn.prototype,`activeAt`,void 0),Tn([g(6,`factor`,String),En(`design:type`,String)],kn.prototype,`factor`,void 0),Tn([g(7,`signature`,String),En(`design:type`,String)],kn.prototype,`signature`,void 0),Tn([g(8,`muid`,String),En(`design:type`,String)],kn.prototype,`muid`,void 0),Tn([g(9,`server`,String),En(`design:type`,String)],kn.prototype,`server`,void 0),Tn([g(10,`crt`,String),En(`design:type`,String)],kn.prototype,`crt`,void 0),Tn([g(11,`group`,[Array,String]),En(`design:type`,Array)],kn.prototype,`group`,void 0),Tn([g(12,`replicas`,Number),En(`design:type`,Number)],kn.prototype,`replicas`,void 0),Tn([g(13,`max_cooperators`,Number),En(`design:type`,Number)],kn.prototype,`maxCooperators`,void 0),Tn([g(14,`max_tenants`,Number),En(`design:type`,Number)],kn.prototype,`maxTenants`,void 0),Tn([g(15,`max_users`,Number),En(`design:type`,Number)],kn.prototype,`maxUsers`,void 0),Tn([g(16,`max_mills`,Number),En(`design:type`,Number)],kn.prototype,`maxMills`,void 0),Tn([g(17,`white_urns`,[Array,String]),En(`design:type`,Array)],kn.prototype,`whiteURN`,void 0),Tn([g(18,`black_urns`,[Array,String]),En(`design:type`,Array)],kn.prototype,`blackURN`,void 0),Tn([g(19,`super_urns`,[Array,String]),En(`design:type`,Array)],kn.prototype,`superURN`,void 0);var An=class{cipher=``;explain=new kn;createAt=void 0};Tn([g(0,`cipher`,String),En(`design:type`,String)],An.prototype,`cipher`,void 0),Tn([g(1,`explain`,kn),En(`design:type`,kn)],An.prototype,`explain`,void 0),Tn([g(2,`create_at`,Date),En(`design:type`,typeof(Dn=typeof Date<`u`&&Date)==`function`?Dn:Object)],An.prototype,`createAt`,void 0);var jn=class{cipher=``;explain=new Wt;nodeKey=``};Tn([g(0,`cipher`,String),En(`design:type`,String)],jn.prototype,`cipher`,void 0),Tn([g(1,`explain`,Wt),En(`design:type`,typeof(On=Wt!==void 0&&Wt)==`function`?On:Object)],jn.prototype,`explain`,void 0),Tn([g(2,`node_key`,String),En(`design:type`,String)],jn.prototype,`nodeKey`,void 0);var N=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},P=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},Mn,Nn,Pn,Fn=class{mno=``;kind=``;mime=new Uint8Array;text=``};N([g(0,`mno`,String),P(`design:type`,String)],Fn.prototype,`mno`,void 0),N([g(1,`kind`,String),P(`design:type`,String)],Fn.prototype,`kind`,void 0),N([g(2,`mime`,Uint8Array),P(`design:type`,typeof(Mn=typeof Uint8Array<`u`&&Uint8Array)==`function`?Mn:Object)],Fn.prototype,`mime`,void 0),N([g(3,`text`,String),P(`design:type`,String)],Fn.prototype,`text`,void 0);var In=class{clientId=``;scope=``;state=``;flags=0};N([g(0,`client_id`,String),P(`design:type`,String)],In.prototype,`clientId`,void 0),N([g(1,`scope`,String),P(`design:type`,String)],In.prototype,`scope`,void 0),N([g(2,`state`,String),P(`design:type`,String)],In.prototype,`state`,void 0),N([g(3,`flags`,Number),P(`design:type`,Number)],In.prototype,`flags`,void 0);var Ln=class{clientId=``;authType=``;accessKey=``;secretKey=``;captcha=``};N([g(0,`client_id`,String),P(`design:type`,String)],Ln.prototype,`clientId`,void 0),N([g(1,`auth_type`,String),P(`design:type`,String)],Ln.prototype,`authType`,void 0),N([g(2,`access_key`,String),P(`design:type`,String)],Ln.prototype,`accessKey`,void 0),N([g(3,`secret_key`,String),P(`design:type`,String)],Ln.prototype,`secretKey`,void 0),N([g(4,`captcha`,String),P(`design:type`,String)],Ln.prototype,`captcha`,void 0);var Rn=class{token=``;kind=``;expiresAt=void 0;scope=``;refreshToken=``};N([g(0,`token`,String),P(`design:type`,String)],Rn.prototype,`token`,void 0),N([g(1,`type`,String),P(`design:type`,String)],Rn.prototype,`kind`,void 0),N([g(2,`expires_at`,Date),P(`design:type`,typeof(Nn=typeof Date<`u`&&Date)==`function`?Nn:Object)],Rn.prototype,`expiresAt`,void 0),N([g(3,`scope`,String),P(`design:type`,String)],Rn.prototype,`scope`,void 0),N([g(4,`refresh_token`,String),P(`design:type`,String)],Rn.prototype,`refreshToken`,void 0);var zn=class{code=``};N([g(0,`code`,String),P(`design:type`,String)],zn.prototype,`code`,void 0);var Bn=class{code=``;redirectURI=``};N([g(0,`code`,String),P(`design:type`,String)],Bn.prototype,`code`,void 0),N([g(1,`redirect_uri`,String),P(`design:type`,String)],Bn.prototype,`redirectURI`,void 0);var Vn=class{clientId=``;userId=``;expiresAt=0};N([g(0,`client_id`,String),P(`design:type`,String)],Vn.prototype,`clientId`,void 0),N([g(1,`user_id`,String),P(`design:type`,String)],Vn.prototype,`userId`,void 0),N([g(2,`expires_at`,Number),P(`design:type`,Number)],Vn.prototype,`expiresAt`,void 0);var Hn=class{token=``;userid=``;username=``;nickname=``;avatar=``;mobile=``;mail=``;deptId=``;mdc=``;instIds=[];attrs=[];raw={}};N([g(0,`token`,String),P(`design:type`,String)],Hn.prototype,`token`,void 0),N([g(1,`userid`,String),P(`design:type`,String)],Hn.prototype,`userid`,void 0),N([g(2,`username`,String),P(`design:type`,String)],Hn.prototype,`username`,void 0),N([g(3,`nickname`,String),P(`design:type`,String)],Hn.prototype,`nickname`,void 0),N([g(4,`avatar`,String),P(`design:type`,String)],Hn.prototype,`avatar`,void 0),N([g(5,`mobile`,String),P(`design:type`,String)],Hn.prototype,`mobile`,void 0),N([g(6,`mail`,String),P(`design:type`,String)],Hn.prototype,`mail`,void 0),N([g(7,`dept_id`,String),P(`design:type`,String)],Hn.prototype,`deptId`,void 0),N([g(8,`mdc`,String),P(`design:type`,String)],Hn.prototype,`mdc`,void 0),N([g(9,`inst_ids`,[Array,String]),P(`design:type`,Array)],Hn.prototype,`instIds`,void 0),N([g(10,`attrs`,[Array,String]),P(`design:type`,Array)],Hn.prototype,`attrs`,void 0),N([g(11,`raw`,[Map,String,String]),P(`design:type`,typeof(Pn=typeof Record<`u`&&Record)==`function`?Pn:Object)],Hn.prototype,`raw`,void 0);var Un=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Wn=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},Gn,Kn,qn=class{arguments=[];attachments={}};Un([g(0,`arguments`,[Array,Object]),Wn(`design:type`,Array)],qn.prototype,`arguments`,void 0),Un([g(1,`attachments`,[Map,String,String]),Wn(`design:type`,typeof(Gn=typeof Record<`u`&&Record)==`function`?Gn:Object)],qn.prototype,`attachments`,void 0);var Jn=class{code=``;message=``;cause=new He;content=void 0};Un([g(0,`code`,String),Wn(`design:type`,String)],Jn.prototype,`code`,void 0),Un([g(1,`message`,String),Wn(`design:type`,String)],Jn.prototype,`message`,void 0),Un([g(2,`cause`,He),Wn(`design:type`,typeof(Kn=He!==void 0&&He)==`function`?Kn:Object)],Jn.prototype,`cause`,void 0),Un([g(3,`content`,Object),Wn(`design:type`,Object)],Jn.prototype,`content`,void 0);var F=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},I=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},Yn,Xn,Zn,Qn=class{version=``;proto=``;codec=``;mdc=``;zone=``;cluster=``;cell=``;group=``;address=``};F([g(0,`version`,String),I(`design:type`,String)],Qn.prototype,`version`,void 0),F([g(1,`proto`,String),I(`design:type`,String)],Qn.prototype,`proto`,void 0),F([g(2,`codec`,String),I(`design:type`,String)],Qn.prototype,`codec`,void 0),F([g(3,`mdc`,String),I(`design:type`,String)],Qn.prototype,`mdc`,void 0),F([g(4,`zone`,String),I(`design:type`,String)],Qn.prototype,`zone`,void 0),F([g(5,`cluster`,String),I(`design:type`,String)],Qn.prototype,`cluster`,void 0),F([g(6,`cell`,String),I(`design:type`,String)],Qn.prototype,`cell`,void 0),F([g(7,`group`,String),I(`design:type`,String)],Qn.prototype,`group`,void 0),F([g(8,`address`,String),I(`design:type`,String)],Qn.prototype,`address`,void 0);var $n=class extends Qn{urn=``;namespace=``;name=``;flags=0;timeout=0;retries=0};F([g(0,`urn`,String),I(`design:type`,String)],$n.prototype,`urn`,void 0),F([g(1,`namespace`,String),I(`design:type`,String)],$n.prototype,`namespace`,void 0),F([g(2,`name`,String),I(`design:type`,String)],$n.prototype,`name`,void 0),F([g(3,`flags`,Number),I(`design:type`,Number)],$n.prototype,`flags`,void 0),F([g(4,`timeout`,Number),I(`design:type`,Number)],$n.prototype,`timeout`,void 0),F([g(5,`retries`,Number),I(`design:type`,Number)],$n.prototype,`retries`,void 0);var er=class extends Qn{urn=``;namespace=``;name=``;flags=0;timeout=0;retries=0;sets=``;kind=``;lang=``;attrs={}};F([g(0,`urn`,String),I(`design:type`,String)],er.prototype,`urn`,void 0),F([g(1,`namespace`,String),I(`design:type`,String)],er.prototype,`namespace`,void 0),F([g(2,`name`,String),I(`design:type`,String)],er.prototype,`name`,void 0),F([g(3,`flags`,Number),I(`design:type`,Number)],er.prototype,`flags`,void 0),F([g(4,`timeout`,Number),I(`design:type`,Number)],er.prototype,`timeout`,void 0),F([g(5,`retries`,Number),I(`design:type`,Number)],er.prototype,`retries`,void 0),F([g(6,`sets`,String),I(`design:type`,String)],er.prototype,`sets`,void 0),F([g(7,`kind`,String),I(`design:type`,String)],er.prototype,`kind`,void 0),F([g(8,`lang`,String),I(`design:type`,String)],er.prototype,`lang`,void 0),F([g(9,`attrs`,[Map,String,String]),I(`design:type`,typeof(Yn=typeof Record<`u`&&Record)==`function`?Yn:Object)],er.prototype,`attrs`,void 0);var tr=class{references=[];services=[]};F([g(0,`references`,[Array,$n]),I(`design:type`,Array)],tr.prototype,`references`,void 0),F([g(1,`services`,[Array,er]),I(`design:type`,Array)],tr.prototype,`services`,void 0);var nr=class{instanceId=``;name=``;kind=``;address=``;content=void 0;timestamp=0;attachments={}};F([g(0,`instance_id`,String),I(`design:type`,String)],nr.prototype,`instanceId`,void 0),F([g(1,`name`,String),I(`design:type`,String)],nr.prototype,`name`,void 0),F([g(2,`kind`,String),I(`design:type`,String)],nr.prototype,`kind`,void 0),F([g(3,`address`,String),I(`design:type`,String)],nr.prototype,`address`,void 0),F([g(4,`content`,Object),I(`design:type`,Object)],nr.prototype,`content`,void 0),F([g(5,`timestamp`,Number),I(`design:type`,Number)],nr.prototype,`timestamp`,void 0),F([g(6,`attachments`,[Map,String,String]),I(`design:type`,typeof(Xn=typeof Record<`u`&&Record)==`function`?Xn:Object)],nr.prototype,`attachments`,void 0);var rr=class{name=``;icon=``;memo=``;author=``;flags=0;lang=``;instanceIds=[];kinds=[];addrs=[];attachments={}};F([g(0,`name`,String),I(`design:type`,String)],rr.prototype,`name`,void 0),F([g(1,`icon`,String),I(`design:type`,String)],rr.prototype,`icon`,void 0),F([g(2,`memo`,String),I(`design:type`,String)],rr.prototype,`memo`,void 0),F([g(3,`author`,String),I(`design:type`,String)],rr.prototype,`author`,void 0),F([g(4,`flags`,Number),I(`design:type`,Number)],rr.prototype,`flags`,void 0),F([g(5,`lang`,String),I(`design:type`,String)],rr.prototype,`lang`,void 0),F([g(6,`instance_ids`,[Array,String]),I(`design:type`,Array)],rr.prototype,`instanceIds`,void 0),F([g(7,`kinds`,[Array,String]),I(`design:type`,Array)],rr.prototype,`kinds`,void 0),F([g(8,`addrs`,[Array,String]),I(`design:type`,Array)],rr.prototype,`addrs`,void 0),F([g(9,`attachments`,[Map,String,String]),I(`design:type`,typeof(Zn=typeof Record<`u`&&Record)==`function`?Zn:Object)],rr.prototype,`attachments`,void 0);var L=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},R=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},ir,ar,or,z=class{sid=``;did=``;name=``;kind=``;pattern=``;address=``;memo=``;rank=0;tags=``;expireAt=void 0;upstream=0;downstream=0;requests=0;hostRoot=``;hostCrt=``;hostKey=``;guestRoot=``;sap=``;skip=!1;raw=``;status=0;createAt=void 0;updateAt=void 0;createBy=``;updateBy=``};L([g(0,`sid`,String),R(`design:type`,String)],z.prototype,`sid`,void 0),L([g(1,`did`,String),R(`design:type`,String)],z.prototype,`did`,void 0),L([g(2,`name`,String),R(`design:type`,String)],z.prototype,`name`,void 0),L([g(3,`kind`,String),R(`design:type`,String)],z.prototype,`kind`,void 0),L([g(4,`pattern`,String),R(`design:type`,String)],z.prototype,`pattern`,void 0),L([g(5,`address`,String),R(`design:type`,String)],z.prototype,`address`,void 0),L([g(6,`memo`,String),R(`design:type`,String)],z.prototype,`memo`,void 0),L([g(7,`rank`,Number),R(`design:type`,Number)],z.prototype,`rank`,void 0),L([g(8,`tags`,String),R(`design:type`,String)],z.prototype,`tags`,void 0),L([g(9,`expire_at`,Date),R(`design:type`,typeof(ir=typeof Date<`u`&&Date)==`function`?ir:Object)],z.prototype,`expireAt`,void 0),L([g(10,`upstream`,Number),R(`design:type`,Number)],z.prototype,`upstream`,void 0),L([g(11,`downstream`,Number),R(`design:type`,Number)],z.prototype,`downstream`,void 0),L([g(12,`requests`,Number),R(`design:type`,Number)],z.prototype,`requests`,void 0),L([g(13,`host_root`,String),R(`design:type`,String)],z.prototype,`hostRoot`,void 0),L([g(14,`host_crt`,String),R(`design:type`,String)],z.prototype,`hostCrt`,void 0),L([g(15,`host_key`,String),R(`design:type`,String)],z.prototype,`hostKey`,void 0),L([g(16,`guest_root`,String),R(`design:type`,String)],z.prototype,`guestRoot`,void 0),L([g(17,`sap`,String),R(`design:type`,String)],z.prototype,`sap`,void 0),L([g(18,`skip`,Boolean),R(`design:type`,Boolean)],z.prototype,`skip`,void 0),L([g(19,`raw`,String),R(`design:type`,String)],z.prototype,`raw`,void 0),L([g(20,`status`,Number),R(`design:type`,Number)],z.prototype,`status`,void 0),L([g(21,`create_at`,Date),R(`design:type`,typeof(ar=typeof Date<`u`&&Date)==`function`?ar:Object)],z.prototype,`createAt`,void 0),L([g(22,`update_at`,Date),R(`design:type`,typeof(or=typeof Date<`u`&&Date)==`function`?or:Object)],z.prototype,`updateAt`,void 0),L([g(23,`create_by`,String),R(`design:type`,String)],z.prototype,`createBy`,void 0),L([g(24,`update_by`,String),R(`design:type`,String)],z.prototype,`updateBy`,void 0);var sr=class{sap=``;crt=``;key=``;cas=[];sni=``;skip=!1};L([g(0,`sap`,String),R(`design:type`,String)],sr.prototype,`sap`,void 0),L([g(1,`crt`,String),R(`design:type`,String)],sr.prototype,`crt`,void 0),L([g(2,`key`,String),R(`design:type`,String)],sr.prototype,`key`,void 0),L([g(3,`cas`,[Array,String]),R(`design:type`,Array)],sr.prototype,`cas`,void 0),L([g(4,`sni`,String),R(`design:type`,String)],sr.prototype,`sni`,void 0),L([g(5,`skip`,Boolean),R(`design:type`,Boolean)],sr.prototype,`skip`,void 0);var cr=class{name=``;matcher=``;priority=0;services=[];filters=[];proxy=``;option=new sr};L([g(0,`name`,String),R(`design:type`,String)],cr.prototype,`name`,void 0),L([g(1,`matcher`,String),R(`design:type`,String)],cr.prototype,`matcher`,void 0),L([g(2,`priority`,Number),R(`design:type`,Number)],cr.prototype,`priority`,void 0),L([g(3,`services`,[Array,String]),R(`design:type`,Array)],cr.prototype,`services`,void 0),L([g(4,`filters`,[Array,String]),R(`design:type`,Array)],cr.prototype,`filters`,void 0),L([g(5,`proxy`,String),R(`design:type`,String)],cr.prototype,`proxy`,void 0),L([g(6,`option`,sr),R(`design:type`,sr)],cr.prototype,`option`,void 0);var lr=class{name=``;kind=``;listen=``;routes=[];option=new sr};L([g(0,`name`,String),R(`design:type`,String)],lr.prototype,`name`,void 0),L([g(1,`kind`,String),R(`design:type`,String)],lr.prototype,`kind`,void 0),L([g(2,`listen`,String),R(`design:type`,String)],lr.prototype,`listen`,void 0),L([g(3,`routes`,[Array,cr]),R(`design:type`,Array)],lr.prototype,`routes`,void 0),L([g(4,`option`,sr),R(`design:type`,sr)],lr.prototype,`option`,void 0);var ur=class{expr=``;value=``};L([g(0,`expr`,String),R(`design:type`,String)],ur.prototype,`expr`,void 0),L([g(1,`value`,String),R(`design:type`,String)],ur.prototype,`value`,void 0);var dr=class{name=``;kind=``;layer=``;priority=0;status=0;memo=``;matchers=[]};L([g(0,`name`,String),R(`design:type`,String)],dr.prototype,`name`,void 0),L([g(1,`kind`,String),R(`design:type`,String)],dr.prototype,`kind`,void 0),L([g(2,`layer`,String),R(`design:type`,String)],dr.prototype,`layer`,void 0),L([g(3,`priority`,Number),R(`design:type`,Number)],dr.prototype,`priority`,void 0),L([g(4,`status`,Number),R(`design:type`,Number)],dr.prototype,`status`,void 0),L([g(5,`memo`,String),R(`design:type`,String)],dr.prototype,`memo`,void 0),L([g(6,`matchers`,[Array,ur]),R(`design:type`,Array)],dr.prototype,`matchers`,void 0);var fr=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},pr=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},mr,hr=class{xid=``;timeout=0;schema=``;flags=0};fr([g(0,`xid`,String),pr(`design:type`,String)],hr.prototype,`xid`,void 0),fr([g(1,`timeout`,Number),pr(`design:type`,Number)],hr.prototype,`timeout`,void 0),fr([g(2,`schema`,String),pr(`design:type`,String)],hr.prototype,`schema`,void 0),fr([g(3,`flags`,Number),pr(`design:type`,Number)],hr.prototype,`flags`,void 0);var gr=class{xid=``;schema=``;grammar=``;expr=``;args={};flags=0};fr([g(0,`xid`,String),pr(`design:type`,String)],gr.prototype,`xid`,void 0),fr([g(1,`schema`,String),pr(`design:type`,String)],gr.prototype,`schema`,void 0),fr([g(2,`grammar`,String),pr(`design:type`,String)],gr.prototype,`grammar`,void 0),fr([g(3,`expr`,String),pr(`design:type`,String)],gr.prototype,`expr`,void 0),fr([g(4,`args`,[Map,String,Object]),pr(`design:type`,typeof(mr=typeof Record<`u`&&Record)==`function`?mr:Object)],gr.prototype,`args`,void 0),fr([g(5,`flags`,Number),pr(`design:type`,Number)],gr.prototype,`flags`,void 0);var B=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},V=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},_r,vr,yr,br,xr,Sr,Cr=class{name=``;macros={};comments=[];kind=``;value=``;flags=0;usage=``};B([g(0,`0`,String),V(`design:type`,String)],Cr.prototype,`name`,void 0),B([g(1,`1`,[Map,String,[Map,String,String]]),V(`design:type`,typeof(_r=typeof Record<`u`&&Record)==`function`?_r:Object)],Cr.prototype,`macros`,void 0),B([g(2,`2`,[Array,String]),V(`design:type`,Array)],Cr.prototype,`comments`,void 0),B([g(3,`3`,String),V(`design:type`,String)],Cr.prototype,`kind`,void 0),B([g(4,`4`,String),V(`design:type`,String)],Cr.prototype,`value`,void 0),B([g(5,`5`,Number),V(`design:type`,Number)],Cr.prototype,`flags`,void 0),B([g(6,`6`,String),V(`design:type`,String)],Cr.prototype,`usage`,void 0);var wr=class{name=``;comments=[];kind=``;value=``;flags=0;usage=``};B([g(0,`0`,String),V(`design:type`,String)],wr.prototype,`name`,void 0),B([g(1,`1`,[Array,String]),V(`design:type`,Array)],wr.prototype,`comments`,void 0),B([g(2,`2`,String),V(`design:type`,String)],wr.prototype,`kind`,void 0),B([g(3,`3`,String),V(`design:type`,String)],wr.prototype,`value`,void 0),B([g(4,`4`,Number),V(`design:type`,Number)],wr.prototype,`flags`,void 0),B([g(5,`5`,String),V(`design:type`,String)],wr.prototype,`usage`,void 0);var Tr=class{name=``;comments=[];kind=``};B([g(0,`0`,String),V(`design:type`,String)],Tr.prototype,`name`,void 0),B([g(1,`1`,[Array,String]),V(`design:type`,Array)],Tr.prototype,`comments`,void 0),B([g(2,`2`,String),V(`design:type`,String)],Tr.prototype,`kind`,void 0);var Er=class{name=``;macros={};comments=[];modifier=0;kind=``;value=``;flags=0;usage=``};B([g(0,`0`,String),V(`design:type`,String)],Er.prototype,`name`,void 0),B([g(1,`1`,[Map,String,[Map,String,String]]),V(`design:type`,typeof(vr=typeof Record<`u`&&Record)==`function`?vr:Object)],Er.prototype,`macros`,void 0),B([g(2,`2`,[Array,String]),V(`design:type`,Array)],Er.prototype,`comments`,void 0),B([g(3,`3`,Number),V(`design:type`,Number)],Er.prototype,`modifier`,void 0),B([g(4,`4`,String),V(`design:type`,String)],Er.prototype,`kind`,void 0),B([g(5,`5`,String),V(`design:type`,String)],Er.prototype,`value`,void 0),B([g(6,`7`,Number),V(`design:type`,Number)],Er.prototype,`flags`,void 0),B([g(7,`8`,String),V(`design:type`,String)],Er.prototype,`usage`,void 0);var Dr=class{name=``;macros={};comments=[];modifier=0;parameters=[];returns=[];causes=[]};B([g(0,`0`,String),V(`design:type`,String)],Dr.prototype,`name`,void 0),B([g(1,`1`,[Map,String,[Map,String,String]]),V(`design:type`,typeof(yr=typeof Record<`u`&&Record)==`function`?yr:Object)],Dr.prototype,`macros`,void 0),B([g(2,`2`,[Array,String]),V(`design:type`,Array)],Dr.prototype,`comments`,void 0),B([g(3,`3`,Number),V(`design:type`,Number)],Dr.prototype,`modifier`,void 0),B([g(4,`4`,[Array,Cr]),V(`design:type`,Array)],Dr.prototype,`parameters`,void 0),B([g(5,`5`,[Array,wr]),V(`design:type`,Array)],Dr.prototype,`returns`,void 0),B([g(6,`6`,[Array,Tr]),V(`design:type`,Array)],Dr.prototype,`causes`,void 0);var Or=class{name=``;macros={};comments=[];modifier=0;variables=[];methods=[];supers=[];traits=[];signature=``};B([g(0,`0`,String),V(`design:type`,String)],Or.prototype,`name`,void 0),B([g(1,`1`,[Map,String,[Map,String,String]]),V(`design:type`,typeof(br=typeof Record<`u`&&Record)==`function`?br:Object)],Or.prototype,`macros`,void 0),B([g(2,`2`,[Array,String]),V(`design:type`,Array)],Or.prototype,`comments`,void 0),B([g(3,`3`,Number),V(`design:type`,Number)],Or.prototype,`modifier`,void 0),B([g(4,`4`,[Array,Er]),V(`design:type`,Array)],Or.prototype,`variables`,void 0),B([g(5,`5`,[Array,Dr]),V(`design:type`,Array)],Or.prototype,`methods`,void 0),B([g(6,`6`,[Array,String]),V(`design:type`,Array)],Or.prototype,`supers`,void 0),B([g(7,`7`,[Array,String]),V(`design:type`,Array)],Or.prototype,`traits`,void 0),B([g(8,`8`,String),V(`design:type`,String)],Or.prototype,`signature`,void 0);var kr=class{name=``;pkg=``;path=``;imports={};kinds=[];variables=[];methods=[];set={}};B([g(0,`0`,String),V(`design:type`,String)],kr.prototype,`name`,void 0),B([g(1,`1`,String),V(`design:type`,String)],kr.prototype,`pkg`,void 0),B([g(2,`2`,String),V(`design:type`,String)],kr.prototype,`path`,void 0),B([g(3,`3`,[Map,String,String]),V(`design:type`,typeof(xr=typeof Record<`u`&&Record)==`function`?xr:Object)],kr.prototype,`imports`,void 0),B([g(4,`4`,[Array,Or]),V(`design:type`,Array)],kr.prototype,`kinds`,void 0),B([g(5,`5`,[Array,Er]),V(`design:type`,Array)],kr.prototype,`variables`,void 0),B([g(6,`6`,[Array,Dr]),V(`design:type`,Array)],kr.prototype,`methods`,void 0),B([g(7,`7`,[Map,String,String]),V(`design:type`,typeof(Sr=typeof Record<`u`&&Record)==`function`?Sr:Object)],kr.prototype,`set`,void 0);var Ar=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},jr=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},Mr,Nr,Pr,Fr=class extends Ve{code=``;name=``;kind=``;lang=``;flags=0;author=``;version=``;runtime=``;memo=``;icon=``;doc=``;dev=new Uint8Array;run=new Uint8Array;raw={}};Ar([g(0,`code`,String),jr(`design:type`,String)],Fr.prototype,`code`,void 0),Ar([g(1,`name`,String),jr(`design:type`,String)],Fr.prototype,`name`,void 0),Ar([g(2,`kind`,String),jr(`design:type`,String)],Fr.prototype,`kind`,void 0),Ar([g(3,`lang`,String),jr(`design:type`,String)],Fr.prototype,`lang`,void 0),Ar([g(4,`flags`,Number),jr(`design:type`,Number)],Fr.prototype,`flags`,void 0),Ar([g(5,`author`,String),jr(`design:type`,String)],Fr.prototype,`author`,void 0),Ar([g(6,`version`,String),jr(`design:type`,String)],Fr.prototype,`version`,void 0),Ar([g(7,`runtime`,String),jr(`design:type`,String)],Fr.prototype,`runtime`,void 0),Ar([g(8,`memo`,String),jr(`design:type`,String)],Fr.prototype,`memo`,void 0),Ar([g(9,`icon`,String),jr(`design:type`,String)],Fr.prototype,`icon`,void 0),Ar([g(10,`doc`,String),jr(`design:type`,String)],Fr.prototype,`doc`,void 0),Ar([g(11,`dev`,Uint8Array),jr(`design:type`,typeof(Mr=typeof Uint8Array<`u`&&Uint8Array)==`function`?Mr:Object)],Fr.prototype,`dev`,void 0),Ar([g(12,`run`,Uint8Array),jr(`design:type`,typeof(Nr=typeof Uint8Array<`u`&&Uint8Array)==`function`?Nr:Object)],Fr.prototype,`run`,void 0),Ar([g(13,`raw`,[Map,String,String]),jr(`design:type`,typeof(Pr=typeof Record<`u`&&Record)==`function`?Pr:Object)],Fr.prototype,`raw`,void 0);var Ir=class{code=``;name=``;kind=``;lang=``;flags=0;author=``;version=``;runtime=``;memo=``;icon=``};Ar([g(0,`code`,String),jr(`design:type`,String)],Ir.prototype,`code`,void 0),Ar([g(1,`name`,String),jr(`design:type`,String)],Ir.prototype,`name`,void 0),Ar([g(2,`kind`,String),jr(`design:type`,String)],Ir.prototype,`kind`,void 0),Ar([g(3,`lang`,String),jr(`design:type`,String)],Ir.prototype,`lang`,void 0),Ar([g(4,`flags`,Number),jr(`design:type`,Number)],Ir.prototype,`flags`,void 0),Ar([g(5,`author`,String),jr(`design:type`,String)],Ir.prototype,`author`,void 0),Ar([g(6,`version`,String),jr(`design:type`,String)],Ir.prototype,`version`,void 0),Ar([g(7,`runtime`,String),jr(`design:type`,String)],Ir.prototype,`runtime`,void 0),Ar([g(8,`memo`,String),jr(`design:type`,String)],Ir.prototype,`memo`,void 0),Ar([g(9,`icon`,String),jr(`design:type`,String)],Ir.prototype,`icon`,void 0);var Lr=class{code;text;color;constructor(e,t,n){this.code=e,this.text=t,this.color=n}},Rr=class e{values;constructor(e){this.values=e}from(e){for(let t of this.values){if(typeof t.code!=`number`||typeof e!=`number`){if(t.code==e)return t;continue}if(t.code===(t.code&e))return t}return this.values[0]}asMap(){let e=new Map([[``,new Lr(0,`全部`,``)]]);for(let t of this.values)t.code!=0&&e.set(t.text,t);return e}static Route=new e([{code:1,text:`已连通`,color:`green`},{code:2,text:`已禁用`,color:`orange`},{code:4,text:`已删除`,color:`red`},{code:8,text:`虚拟化`,color:`cyan`}]);static Datasource=new e([{code:1,text:`初始化`,color:`blue`},{code:2,text:`已禁用`,color:`red`},{code:4,text:`已删除`,color:`yellow`},{code:8,text:`已发布`,color:`green`}]);static DTS=new e([{code:1,text:`暂停`,color:`blue`},{code:2,text:`执行`,color:`yellow`},{code:4,text:`失败`,color:`red`},{code:8,text:`成功`,color:`green`}]);static Firewalld=new e([{code:1,text:`初始化`,color:`blue`},{code:2,text:`已禁用`,color:`red`},{code:4,text:`已删除`,color:`yellow`},{code:8,text:`已发布`,color:`green`}]);static VMC=new e([{code:1,text:`初始化`,color:`blue`},{code:2,text:`已禁用`,color:`red`},{code:4,text:`已删除`,color:`yellow`},{code:8,text:`已发布`,color:`green`}])},zr=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Br=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},Vr,Hr=class{index=0;flag=0;body=new Uint8Array};zr([g(0,`idx`,Number),Br(`design:type`,Number)],Hr.prototype,`index`,void 0),zr([g(1,`flag`,Number),Br(`design:type`,Number)],Hr.prototype,`flag`,void 0),zr([g(2,`body`,Uint8Array),Br(`design:type`,typeof(Vr=typeof Uint8Array<`u`&&Uint8Array)==`function`?Vr:Object)],Hr.prototype,`body`,void 0);var Ur=class extends Hr{bucket=``;src=``;rid=``;dst=``;sni=``;addr=``};zr([g(0,`bucket`,String),Br(`design:type`,String)],Ur.prototype,`bucket`,void 0),zr([g(1,`src`,String),Br(`design:type`,String)],Ur.prototype,`src`,void 0),zr([g(2,`rid`,String),Br(`design:type`,String)],Ur.prototype,`rid`,void 0),zr([g(3,`dst`,String),Br(`design:type`,String)],Ur.prototype,`dst`,void 0),zr([g(4,`sni`,String),Br(`design:type`,String)],Ur.prototype,`sni`,void 0),zr([g(5,`addr`,String),Br(`design:type`,String)],Ur.prototype,`addr`,void 0);var Wr=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Gr=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},Kr,qr=class{version=``;infos={}};Wr([g(0,`version`,String),Gr(`design:type`,String)],qr.prototype,`version`,void 0),Wr([g(1,`infos`,[Map,String,String]),Gr(`design:type`,typeof(Kr=typeof Record<`u`&&Record)==`function`?Kr:Object)],qr.prototype,`infos`,void 0);var H=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},U=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},Jr,Yr,Xr,Zr,Qr,$r=class{no=``;name=``;alias=``};H([g(0,`no`,String),U(`design:type`,String)],$r.prototype,`no`,void 0),H([g(1,`name`,String),U(`design:type`,String)],$r.prototype,`name`,void 0),H([g(2,`alias`,String),U(`design:type`,String)],$r.prototype,`alias`,void 0);var ei=class{bno=``;cno=``;context={};applier=new $r};H([g(0,`bno`,String),U(`design:type`,String)],ei.prototype,`bno`,void 0),H([g(1,`cno`,String),U(`design:type`,String)],ei.prototype,`cno`,void 0),H([g(2,`context`,[Map,String,String]),U(`design:type`,typeof(Jr=typeof Record<`u`&&Record)==`function`?Jr:Object)],ei.prototype,`context`,void 0),H([g(3,`applier`,$r),U(`design:type`,$r)],ei.prototype,`applier`,void 0);var ti=class{name=``;alias=``;attrs={};kind=0;group=``};H([g(0,`name`,String),U(`design:type`,String)],ti.prototype,`name`,void 0),H([g(1,`alias`,String),U(`design:type`,String)],ti.prototype,`alias`,void 0),H([g(2,`attrs`,[Map,String,String]),U(`design:type`,typeof(Yr=typeof Record<`u`&&Record)==`function`?Yr:Object)],ti.prototype,`attrs`,void 0),H([g(3,`kind`,Number),U(`design:type`,Number)],ti.prototype,`kind`,void 0),H([g(4,`group`,String),U(`design:type`,String)],ti.prototype,`group`,void 0);var ni=class{src=``;dst=``;condition=``};H([g(0,`src`,String),U(`design:type`,String)],ni.prototype,`src`,void 0),H([g(1,`dst`,String),U(`design:type`,String)],ni.prototype,`dst`,void 0),H([g(2,`condition`,String),U(`design:type`,String)],ni.prototype,`condition`,void 0);var ri=class{cno=``;name=``;vertices=[];sides=[];status=0;maintainer=new $r};H([g(0,`cno`,String),U(`design:type`,String)],ri.prototype,`cno`,void 0),H([g(1,`name`,String),U(`design:type`,String)],ri.prototype,`name`,void 0),H([g(2,`vertices`,[Array,ti]),U(`design:type`,Array)],ri.prototype,`vertices`,void 0),H([g(3,`sides`,[Array,ni]),U(`design:type`,Array)],ri.prototype,`sides`,void 0),H([g(4,`status`,Number),U(`design:type`,Number)],ri.prototype,`status`,void 0),H([g(5,`maintainer`,$r),U(`design:type`,$r)],ri.prototype,`maintainer`,void 0);var ii=class{vertex=new ti;reviewers=[];status=0;context={}};H([g(0,`vertex`,ti),U(`design:type`,ti)],ii.prototype,`vertex`,void 0),H([g(1,`reviewers`,[Array,$r]),U(`design:type`,Array)],ii.prototype,`reviewers`,void 0),H([g(2,`status`,Number),U(`design:type`,Number)],ii.prototype,`status`,void 0),H([g(3,`context`,[Map,String,String]),U(`design:type`,typeof(Xr=typeof Record<`u`&&Record)==`function`?Xr:Object)],ii.prototype,`context`,void 0);var ai=class{rno=``;bno=``;context={};status=0;chart=new ri;tasks=[]};H([g(0,`rno`,String),U(`design:type`,String)],ai.prototype,`rno`,void 0),H([g(1,`bno`,String),U(`design:type`,String)],ai.prototype,`bno`,void 0),H([g(2,`context`,[Map,String,String]),U(`design:type`,typeof(Zr=typeof Record<`u`&&Record)==`function`?Zr:Object)],ai.prototype,`context`,void 0),H([g(3,`status`,Number),U(`design:type`,Number)],ai.prototype,`status`,void 0),H([g(4,`chart`,ri),U(`design:type`,ri)],ai.prototype,`chart`,void 0),H([g(5,`tasks`,[Array,ii]),U(`design:type`,Array)],ai.prototype,`tasks`,void 0);var oi=class{no=``;name=``;status=0;workers=[]};H([g(0,`no`,String),U(`design:type`,String)],oi.prototype,`no`,void 0),H([g(1,`name`,String),U(`design:type`,String)],oi.prototype,`name`,void 0),H([g(2,`status`,Number),U(`design:type`,Number)],oi.prototype,`status`,void 0),H([g(3,`workers`,[Array,$r]),U(`design:type`,Array)],oi.prototype,`workers`,void 0);var si=class{rno=``;bno=``;cno=``;context={};vertex=new ti;task=new ii;applier=new $r;reviewer=new $r};H([g(0,`rno`,String),U(`design:type`,String)],si.prototype,`rno`,void 0),H([g(1,`bno`,String),U(`design:type`,String)],si.prototype,`bno`,void 0),H([g(2,`cno`,String),U(`design:type`,String)],si.prototype,`cno`,void 0),H([g(3,`context`,[Map,String,String]),U(`design:type`,typeof(Qr=typeof Record<`u`&&Record)==`function`?Qr:Object)],si.prototype,`context`,void 0),H([g(4,`vertex`,ti),U(`design:type`,ti)],si.prototype,`vertex`,void 0),H([g(5,`task`,ii),U(`design:type`,ii)],si.prototype,`task`,void 0),H([g(6,`applier`,$r),U(`design:type`,$r)],si.prototype,`applier`,void 0),H([g(7,`reviewer`,$r),U(`design:type`,$r)],si.prototype,`reviewer`,void 0);var ci=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},li=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},ui=function(e,t){return function(n,r){t(n,r,e)}},di,fi,pi,mi,hi,gi,_i,vi,yi,bi,xi,Si,Ci=class{doc(e,t,n=S()){return Promise.reject(x.URN_NOT_PERMIT)}version(e=S()){return Promise.reject(x.URN_NOT_PERMIT)}debug(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}stats(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}fallback(e=S()){return Promise.reject(x.URN_NOT_PERMIT)}dump(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}sse(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}};ci([v("${mesh.name}.builtin.doc",String,0,8),ui(0,g(0,`name`,String)),ui(1,g(1,`formatter`,String)),li(`design:type`,Function),li(`design:paramtypes`,[String,String,Object]),li(`design:returntype`,typeof(di=typeof Promise<`u`&&Promise)==`function`?di:Object)],Ci.prototype,`doc`,null),ci([v("${mesh.name}.builtin.version",qr,0,8),li(`design:type`,Function),li(`design:paramtypes`,[Object]),li(`design:returntype`,typeof(fi=typeof Promise<`u`&&Promise)==`function`?fi:Object)],Ci.prototype,`version`,null),ci([v("${mesh.name}.builtin.debug",Object),ui(0,g(0,`features`,[Map,String,String])),li(`design:type`,Function),li(`design:paramtypes`,[typeof(pi=typeof Record<`u`&&Record)==`function`?pi:Object,Object]),li(`design:returntype`,typeof(mi=typeof Promise<`u`&&Promise)==`function`?mi:Object)],Ci.prototype,`debug`,null),ci([v("${mesh.name}.builtin.stats",[Map,String,String]),ui(0,g(0,`features`,[Array,String])),li(`design:type`,Function),li(`design:paramtypes`,[Array,Object]),li(`design:returntype`,typeof(hi=typeof Promise<`u`&&Promise)==`function`?hi:Object)],Ci.prototype,`stats`,null),ci([v("${mesh.name}.builtin.fallback",Object),li(`design:type`,Function),li(`design:paramtypes`,[Object]),li(`design:returntype`,typeof(gi=typeof Promise<`u`&&Promise)==`function`?gi:Object)],Ci.prototype,`fallback`,null),ci([v("${mesh.name}.builtin.dump",[Map,String,String]),ui(0,g(0,`names`,[Array,String])),li(`design:type`,Function),li(`design:paramtypes`,[Array,Object]),li(`design:returntype`,typeof(_i=typeof Promise<`u`&&Promise)==`function`?_i:Object)],Ci.prototype,`dump`,null),ci([v("${mesh.name}.builtin.sse",It,0,16),ui(0,g(0,`hello`,Rt)),li(`design:type`,Function),li(`design:paramtypes`,[typeof(vi=Rt!==void 0&&Rt)==`function`?vi:Object,Object]),li(`design:returntype`,typeof(yi=typeof Promise<`u`&&Promise)==`function`?yi:Object)],Ci.prototype,`sse`,null),Ci=ci([_(`mpi`)],Ci);var wi=class{stats(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}debug(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}dump(e=S()){return Promise.reject(x.URN_NOT_PERMIT)}};ci([ui(0,g(0,`features`,[Array,String])),li(`design:type`,Function),li(`design:paramtypes`,[Array,Object]),li(`design:returntype`,typeof(bi=typeof Promise<`u`&&Promise)==`function`?bi:Object)],wi.prototype,`stats`,null),ci([ui(0,g(0,`features`,[Map,String,String])),li(`design:type`,Function),li(`design:paramtypes`,[typeof(xi=typeof Record<`u`&&Record)==`function`?xi:Object,Object]),li(`design:returntype`,typeof(Si=typeof Promise<`u`&&Promise)==`function`?Si:Object)],wi.prototype,`debug`,null);var Ti=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},W=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},Ei=function(e,t){return function(n,r){t(n,r,e)}},Di,Oi,ki,Ai,ji,Mi,Ni,Pi,Fi,Ii,Li,Ri,zi=class{get(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}put(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}remove(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}incr(e,t,n=S()){return Promise.reject(x.URN_NOT_PERMIT)}decr(e,t,n=S()){return Promise.reject(x.URN_NOT_PERMIT)}keys(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}hget(e,t,n=S()){return Promise.reject(x.URN_NOT_PERMIT)}hset(e,t,n=S()){return Promise.reject(x.URN_NOT_PERMIT)}hdel(e,t,n=S()){return Promise.reject(x.URN_NOT_PERMIT)}hkeys(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}};Ti([v(`mesh.cache.get`,Nt),Ei(0,g(0,`key`,String)),W(`design:type`,Function),W(`design:paramtypes`,[String,Object]),W(`design:returntype`,typeof(Di=typeof Promise<`u`&&Promise)==`function`?Di:Object)],zi.prototype,`get`,null),Ti([v(`mesh.cache.put`,Object),Ei(0,g(0,`cell`,Nt)),W(`design:type`,Function),W(`design:paramtypes`,[typeof(Oi=Nt!==void 0&&Nt)==`function`?Oi:Object,Object]),W(`design:returntype`,typeof(ki=typeof Promise<`u`&&Promise)==`function`?ki:Object)],zi.prototype,`put`,null),Ti([v(`mesh.cache.remove`,Object),Ei(0,g(0,`key`,String)),W(`design:type`,Function),W(`design:paramtypes`,[String,Object]),W(`design:returntype`,typeof(Ai=typeof Promise<`u`&&Promise)==`function`?Ai:Object)],zi.prototype,`remove`,null),Ti([v(`mesh.cache.incr`,Number),Ei(0,g(0,`key`,String)),Ei(1,g(1,`value`,Number)),W(`design:type`,Function),W(`design:paramtypes`,[String,Number,Object]),W(`design:returntype`,typeof(ji=typeof Promise<`u`&&Promise)==`function`?ji:Object)],zi.prototype,`incr`,null),Ti([v(`mesh.cache.decr`,Number),Ei(0,g(0,`key`,String)),Ei(1,g(1,`value`,Number)),W(`design:type`,Function),W(`design:paramtypes`,[String,Number,Object]),W(`design:returntype`,typeof(Mi=typeof Promise<`u`&&Promise)==`function`?Mi:Object)],zi.prototype,`decr`,null),Ti([v(`mesh.cache.keys`,[Array,String]),Ei(0,g(0,`pattern`,String)),W(`design:type`,Function),W(`design:paramtypes`,[String,Object]),W(`design:returntype`,typeof(Ni=typeof Promise<`u`&&Promise)==`function`?Ni:Object)],zi.prototype,`keys`,null),Ti([v(`mesh.cache.hget`,Nt),Ei(0,g(0,`key`,String)),Ei(1,g(1,`name`,String)),W(`design:type`,Function),W(`design:paramtypes`,[String,String,Object]),W(`design:returntype`,typeof(Pi=typeof Promise<`u`&&Promise)==`function`?Pi:Object)],zi.prototype,`hget`,null),Ti([v(`mesh.cache.hset`,Object),Ei(0,g(0,`key`,String)),Ei(1,g(1,`cell`,Nt)),W(`design:type`,Function),W(`design:paramtypes`,[String,typeof(Fi=Nt!==void 0&&Nt)==`function`?Fi:Object,Object]),W(`design:returntype`,typeof(Ii=typeof Promise<`u`&&Promise)==`function`?Ii:Object)],zi.prototype,`hset`,null),Ti([v(`mesh.cache.hdel`,Object),Ei(0,g(0,`key`,String)),Ei(1,g(1,`name`,String)),W(`design:type`,Function),W(`design:paramtypes`,[String,String,Object]),W(`design:returntype`,typeof(Li=typeof Promise<`u`&&Promise)==`function`?Li:Object)],zi.prototype,`hdel`,null),Ti([v(`mesh.cache.hkeys`,[Array,String]),Ei(0,g(0,`key`,String)),W(`design:type`,Function),W(`design:paramtypes`,[String,Object]),W(`design:returntype`,typeof(Ri=typeof Promise<`u`&&Promise)==`function`?Ri:Object)],zi.prototype,`hkeys`,null),zi=Ti([_(`mpi`)],zi);var Bi=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},G=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},Vi=function(e,t){return function(n,r){t(n,r,e)}},Hi,Ui,Wi,Gi,Ki,qi,Ji,Yi,Xi,Zi,Qi,$i,ea,ta,na,ra,ia,aa,oa,sa,ca,la,ua,da,fa,pa=class{handshake(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}collect(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}serve(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}deposit(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}objects(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}keys(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}invoke(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}};Bi([v("${mesh.name}.cipher.handshake",String),Vi(0,g(0,`hello`,Qe)),G(`design:type`,Function),G(`design:paramtypes`,[typeof(Hi=Qe!==void 0&&Qe)==`function`?Hi:Object,Object]),G(`design:returntype`,typeof(Ui=typeof Promise<`u`&&Promise)==`function`?Ui:Object)],pa.prototype,`handshake`,null),Bi([v("${mesh.name}.cipher.collect",Number),Vi(0,g(0,`obj`,at)),G(`design:type`,Function),G(`design:paramtypes`,[typeof(Wi=at!==void 0&&at)==`function`?Wi:Object,Object]),G(`design:returntype`,typeof(Gi=typeof Promise<`u`&&Promise)==`function`?Gi:Object)],pa.prototype,`collect`,null),Bi([v("${mesh.name}.cipher.serve",String),Vi(0,g(0,`suite`,String)),G(`design:type`,Function),G(`design:paramtypes`,[String,Object]),G(`design:returntype`,typeof(Ki=typeof Promise<`u`&&Promise)==`function`?Ki:Object)],pa.prototype,`serve`,null),Bi([v(`mesh.cipher.deposit`,String),Vi(0,g(0,`rco`,at)),G(`design:type`,Function),G(`design:paramtypes`,[typeof(qi=at!==void 0&&at)==`function`?qi:Object,Object]),G(`design:returntype`,typeof(Ji=typeof Promise<`u`&&Promise)==`function`?Ji:Object)],pa.prototype,`deposit`,null),Bi([v(`mesh.cipher.objects`,[T,at]),Vi(0,g(0,`idx`,w)),G(`design:type`,Function),G(`design:paramtypes`,[typeof(Yi=w!==void 0&&w)==`function`?Yi:Object,Object]),G(`design:returntype`,typeof(Xi=typeof Promise<`u`&&Promise)==`function`?Xi:Object)],pa.prototype,`objects`,null),Bi([v("${mesh.name}.cipher.keys",[T,yn]),Vi(0,g(0,`idx`,w)),G(`design:type`,Function),G(`design:paramtypes`,[typeof(Zi=w!==void 0&&w)==`function`?Zi:Object,Object]),G(`design:returntype`,typeof(Qi=typeof Promise<`u`&&Promise)==`function`?Qi:Object)],pa.prototype,`keys`,null),Bi([v(`mesh.cipher.invoke`,Uint8Array),Vi(0,g(0,`script`,Fr)),G(`design:type`,Function),G(`design:paramtypes`,[typeof($i=Fr!==void 0&&Fr)==`function`?$i:Object,Object]),G(`design:returntype`,typeof(ea=typeof Promise<`u`&&Promise)==`function`?ea:Object)],pa.prototype,`invoke`,null),pa=Bi([_(`mpi`)],pa);var ma=class{suite(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}keygen(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}regen(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}encode(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}decode(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}recode(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}};Bi([v("${mesh.name}.cipher.suite",$e),Vi(0,g(0,`hello`,Qe)),G(`design:type`,Function),G(`design:paramtypes`,[typeof(ta=Qe!==void 0&&Qe)==`function`?ta:Object,Object]),G(`design:returntype`,typeof(na=typeof Promise<`u`&&Promise)==`function`?na:Object)],ma.prototype,`suite`,null),Bi([v("${mesh.name}.cipher.keygen",nt),Vi(0,g(0,`keygen`,et)),G(`design:type`,Function),G(`design:paramtypes`,[typeof(ra=et!==void 0&&et)==`function`?ra:Object,Object]),G(`design:returntype`,typeof(ia=typeof Promise<`u`&&Promise)==`function`?ia:Object)],ma.prototype,`keygen`,null),Bi([v("${mesh.name}.cipher.regen",nt),Vi(0,g(0,`keygen`,tt)),G(`design:type`,Function),G(`design:paramtypes`,[typeof(aa=tt!==void 0&&tt)==`function`?aa:Object,Object]),G(`design:returntype`,typeof(oa=typeof Promise<`u`&&Promise)==`function`?oa:Object)],ma.prototype,`regen`,null),Bi([v("${mesh.name}.cipher.encode",Uint8Array),Vi(0,g(0,`explain`,rt)),G(`design:type`,Function),G(`design:paramtypes`,[typeof(sa=rt!==void 0&&rt)==`function`?sa:Object,Object]),G(`design:returntype`,typeof(ca=typeof Promise<`u`&&Promise)==`function`?ca:Object)],ma.prototype,`encode`,null),Bi([v("${mesh.name}.cipher.decode",Uint8Array),Vi(0,g(0,`cipher`,rt)),G(`design:type`,Function),G(`design:paramtypes`,[typeof(la=rt!==void 0&&rt)==`function`?la:Object,Object]),G(`design:returntype`,typeof(ua=typeof Promise<`u`&&Promise)==`function`?ua:Object)],ma.prototype,`decode`,null),Bi([v("${mesh.name}.cipher.recode",Uint8Array),Vi(0,g(0,`cipher`,it)),G(`design:type`,Function),G(`design:paramtypes`,[typeof(da=it!==void 0&&it)==`function`?da:Object,Object]),G(`design:returntype`,typeof(fa=typeof Promise<`u`&&Promise)==`function`?fa:Object)],ma.prototype,`recode`,null),ma=Bi([_(`mpi`)],ma);var ha=class{serve(e=S()){return Promise.reject(x.URN_NOT_PERMIT)}};ha=Bi([_(`mpi`)],ha);var ga=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},_a=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},va=function(e,t){return function(n,r){t(n,r,e)}},ya,ba,xa,Sa=class{election(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}isLeader(e=S()){return Promise.reject(x.URN_NOT_PERMIT)}};ga([v(`mesh.cluster.election`,Uint8Array),va(0,g(0,`buff`,Uint8Array)),_a(`design:type`,Function),_a(`design:paramtypes`,[typeof(ya=typeof Uint8Array<`u`&&Uint8Array)==`function`?ya:Object,Object]),_a(`design:returntype`,typeof(ba=typeof Promise<`u`&&Promise)==`function`?ba:Object)],Sa.prototype,`election`,null),ga([v(`mesh.cluster.leader`,Boolean),_a(`design:type`,Function),_a(`design:paramtypes`,[Object]),_a(`design:returntype`,typeof(xa=typeof Promise<`u`&&Promise)==`function`?xa:Object)],Sa.prototype,`isLeader`,null),Sa=ga([_(`mpi`)],Sa);var Ca=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},wa=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},Ta=function(e,t){return function(n,r){t(n,r,e)}},Ea,Da,Oa,ka,Aa,ja=class{sign(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}history(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}issued(e,t,n,r=S()){return Promise.reject(x.URN_NOT_PERMIT)}dump(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}};Ca([v(`mesh.license.sign`,An),Ta(0,g(0,`lsr`,kn)),wa(`design:type`,Function),wa(`design:paramtypes`,[typeof(Ea=kn!==void 0&&kn)==`function`?Ea:Object,Object]),wa(`design:returntype`,typeof(Da=typeof Promise<`u`&&Promise)==`function`?Da:Object)],ja.prototype,`sign`,null),Ca([v(`mesh.license.history`,[Array,An]),Ta(0,g(0,`inst_id`,String)),wa(`design:type`,Function),wa(`design:paramtypes`,[String,Object]),wa(`design:returntype`,typeof(Oa=typeof Promise<`u`&&Promise)==`function`?Oa:Object)],ja.prototype,`history`,null),Ca([v(`mesh.net.issued`,jn),Ta(0,g(0,`name`,String)),Ta(1,g(1,`kind`,String)),Ta(2,g(2,`cname`,String)),wa(`design:type`,Function),wa(`design:paramtypes`,[String,String,String,Object]),wa(`design:returntype`,typeof(ka=typeof Promise<`u`&&Promise)==`function`?ka:Object)],ja.prototype,`issued`,null),Ca([v(`mesh.net.dump`,[Array,jn]),Ta(0,g(0,`node_id`,String)),wa(`design:type`,Function),wa(`design:paramtypes`,[String,Object]),wa(`design:returntype`,typeof(Aa=typeof Promise<`u`&&Promise)==`function`?Aa:Object)],ja.prototype,`dump`,null),ja=Ca([_(`mpi`)],ja);var Ma=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Na=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},Pa=function(e,t){return function(n,r){t(n,r,e)}},Fa,Ia,La,Ra,za,Ba,Va,Ha,Ua,Wa,Ga,Ka,qa,Ja,Ya,Xa=class{encrypt(e,t,n=S()){return Promise.reject(x.URN_NOT_PERMIT)}decrypt(e,t,n=S()){return Promise.reject(x.URN_NOT_PERMIT)}hash(e,t,n=S()){return Promise.reject(x.URN_NOT_PERMIT)}sign(e,t,n=S()){return Promise.reject(x.URN_NOT_PERMIT)}verify(e,t,n=S()){return Promise.reject(x.URN_NOT_PERMIT)}};Ma([v(`mesh.crypt.encrypt`,Uint8Array),Pa(0,g(0,`buf`,Uint8Array)),Pa(1,g(1,`keys`,[Map,String,Uint8Array])),Na(`design:type`,Function),Na(`design:paramtypes`,[typeof(Fa=typeof Uint8Array<`u`&&Uint8Array)==`function`?Fa:Object,typeof(Ia=typeof Record<`u`&&Record)==`function`?Ia:Object,Object]),Na(`design:returntype`,typeof(La=typeof Promise<`u`&&Promise)==`function`?La:Object)],Xa.prototype,`encrypt`,null),Ma([v(`mesh.crypt.decrypt`,Uint8Array),Pa(0,g(0,`buf`,Uint8Array)),Pa(1,g(1,`keys`,[Map,String,Uint8Array])),Na(`design:type`,Function),Na(`design:paramtypes`,[typeof(Ra=typeof Uint8Array<`u`&&Uint8Array)==`function`?Ra:Object,typeof(za=typeof Record<`u`&&Record)==`function`?za:Object,Object]),Na(`design:returntype`,typeof(Ba=typeof Promise<`u`&&Promise)==`function`?Ba:Object)],Xa.prototype,`decrypt`,null),Ma([v(`mesh.crypt.hash`,Uint8Array),Pa(0,g(0,`buf`,Uint8Array)),Pa(1,g(1,`keys`,[Map,String,Uint8Array])),Na(`design:type`,Function),Na(`design:paramtypes`,[typeof(Va=typeof Uint8Array<`u`&&Uint8Array)==`function`?Va:Object,typeof(Ha=typeof Record<`u`&&Record)==`function`?Ha:Object,Object]),Na(`design:returntype`,typeof(Ua=typeof Promise<`u`&&Promise)==`function`?Ua:Object)],Xa.prototype,`hash`,null),Ma([v(`mesh.crypt.sign`,Uint8Array),Pa(0,g(0,`buf`,Uint8Array)),Pa(1,g(1,`keys`,[Map,String,Uint8Array])),Na(`design:type`,Function),Na(`design:paramtypes`,[typeof(Wa=typeof Uint8Array<`u`&&Uint8Array)==`function`?Wa:Object,typeof(Ga=typeof Record<`u`&&Record)==`function`?Ga:Object,Object]),Na(`design:returntype`,typeof(Ka=typeof Promise<`u`&&Promise)==`function`?Ka:Object)],Xa.prototype,`sign`,null),Ma([v(`mesh.crypt.verify`,Boolean),Pa(0,g(0,`buf`,Uint8Array)),Pa(1,g(1,`keys`,[Map,String,Uint8Array])),Na(`design:type`,Function),Na(`design:paramtypes`,[typeof(qa=typeof Uint8Array<`u`&&Uint8Array)==`function`?qa:Object,typeof(Ja=typeof Record<`u`&&Record)==`function`?Ja:Object,Object]),Na(`design:returntype`,typeof(Ya=typeof Promise<`u`&&Promise)==`function`?Ya:Object)],Xa.prototype,`verify`,null),Xa=Ma([_(`mpi`)],Xa);var Za=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},K=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},Qa=function(e,t){return function(n,r){t(n,r,e)}},$a,eo,to,no,ro,io,ao,oo,so,co,lo,uo,fo,po,mo,ho,go,_o,vo,yo,bo,xo,So,Co,wo,To,Eo,Do=class{query(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}saveSource(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}indexSource(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}describeSource(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}removeSource(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}saveCluster(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}indexCluster(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}describeCluster(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}removeCluster(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}deployCluster(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}saveDTS(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}runDTS(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}indexDTS(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}removeDTS(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}indexBinlog(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}tailBinlog(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}redoBinlog(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}removeBinlog(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}};Za([v(`mesh.daler.ds.query`,Object),Qa(0,g(0,`test`,ft)),K(`design:type`,Function),K(`design:paramtypes`,[typeof($a=ft!==void 0&&ft)==`function`?$a:Object,Object]),K(`design:returntype`,typeof(eo=typeof Promise<`u`&&Promise)==`function`?eo:Object)],Do.prototype,`query`,null),Za([v(`mesh.daler.ds.save`,String),Qa(0,g(0,`ds`,lt)),K(`design:type`,Function),K(`design:paramtypes`,[typeof(to=lt!==void 0&&lt)==`function`?to:Object,Object]),K(`design:returntype`,typeof(no=typeof Promise<`u`&&Promise)==`function`?no:Object)],Do.prototype,`saveSource`,null),Za([v(`mesh.daler.ds.index`,[T,lt]),Qa(0,g(0,`idx`,w)),K(`design:type`,Function),K(`design:paramtypes`,[typeof(ro=w!==void 0&&w)==`function`?ro:Object,Object]),K(`design:returntype`,typeof(io=typeof Promise<`u`&&Promise)==`function`?io:Object)],Do.prototype,`indexSource`,null),Za([v(`mesh.daler.ds.describe`,lt),Qa(0,g(0,`id`,String)),K(`design:type`,Function),K(`design:paramtypes`,[String,Object]),K(`design:returntype`,typeof(ao=typeof Promise<`u`&&Promise)==`function`?ao:Object)],Do.prototype,`describeSource`,null),Za([v(`mesh.daler.ds.remove`,Object),Qa(0,g(0,`id`,String)),K(`design:type`,Function),K(`design:paramtypes`,[String,Object]),K(`design:returntype`,typeof(oo=typeof Promise<`u`&&Promise)==`function`?oo:Object)],Do.prototype,`removeSource`,null),Za([v(`mesh.daler.cluster.save`,String),Qa(0,g(0,`cluster`,dt)),K(`design:type`,Function),K(`design:paramtypes`,[typeof(so=dt!==void 0&&dt)==`function`?so:Object,Object]),K(`design:returntype`,typeof(co=typeof Promise<`u`&&Promise)==`function`?co:Object)],Do.prototype,`saveCluster`,null),Za([v(`mesh.daler.cluster.index`,[T,dt]),Qa(0,g(0,`idx`,w)),K(`design:type`,Function),K(`design:paramtypes`,[typeof(lo=w!==void 0&&w)==`function`?lo:Object,Object]),K(`design:returntype`,typeof(uo=typeof Promise<`u`&&Promise)==`function`?uo:Object)],Do.prototype,`indexCluster`,null),Za([v(`mesh.daler.cluster.describe`,dt),Qa(0,g(0,`id`,String)),K(`design:type`,Function),K(`design:paramtypes`,[String,Object]),K(`design:returntype`,typeof(fo=typeof Promise<`u`&&Promise)==`function`?fo:Object)],Do.prototype,`describeCluster`,null),Za([v(`mesh.daler.cluster.remove`,Object),Qa(0,g(0,`id`,String)),K(`design:type`,Function),K(`design:paramtypes`,[String,Object]),K(`design:returntype`,typeof(po=typeof Promise<`u`&&Promise)==`function`?po:Object)],Do.prototype,`removeCluster`,null),Za([v(`mesh.daler.cluster.deploy`,Object),Qa(0,g(0,`id`,String)),K(`design:type`,Function),K(`design:paramtypes`,[String,Object]),K(`design:returntype`,typeof(mo=typeof Promise<`u`&&Promise)==`function`?mo:Object)],Do.prototype,`deployCluster`,null),Za([v(`mesh.daler.dts.save`,String),Qa(0,g(0,`dts`,pt)),K(`design:type`,Function),K(`design:paramtypes`,[typeof(ho=pt!==void 0&&pt)==`function`?ho:Object,Object]),K(`design:returntype`,typeof(go=typeof Promise<`u`&&Promise)==`function`?go:Object)],Do.prototype,`saveDTS`,null),Za([v(`mesh.daler.dts.run`,Object),Qa(0,g(0,`id`,String)),K(`design:type`,Function),K(`design:paramtypes`,[String,Object]),K(`design:returntype`,typeof(_o=typeof Promise<`u`&&Promise)==`function`?_o:Object)],Do.prototype,`runDTS`,null),Za([v(`mesh.daler.dts.index`,[T,pt]),Qa(0,g(0,`idx`,w)),K(`design:type`,Function),K(`design:paramtypes`,[typeof(vo=w!==void 0&&w)==`function`?vo:Object,Object]),K(`design:returntype`,typeof(yo=typeof Promise<`u`&&Promise)==`function`?yo:Object)],Do.prototype,`indexDTS`,null),Za([v(`mesh.daler.dts.remove`,Object),Qa(0,g(0,`id`,String)),K(`design:type`,Function),K(`design:paramtypes`,[String,Object]),K(`design:returntype`,typeof(bo=typeof Promise<`u`&&Promise)==`function`?bo:Object)],Do.prototype,`removeDTS`,null),Za([v(`mesh.daler.binlog.index`,[T,mt]),Qa(0,g(0,`idx`,w)),K(`design:type`,Function),K(`design:paramtypes`,[typeof(xo=w!==void 0&&w)==`function`?xo:Object,Object]),K(`design:returntype`,typeof(So=typeof Promise<`u`&&Promise)==`function`?So:Object)],Do.prototype,`indexBinlog`,null),Za([v(`mesh.daler.binlog.tail`,[T,[Map,String,String]]),Qa(0,g(0,`idx`,w)),K(`design:type`,Function),K(`design:paramtypes`,[typeof(Co=w!==void 0&&w)==`function`?Co:Object,Object]),K(`design:returntype`,typeof(wo=typeof Promise<`u`&&Promise)==`function`?wo:Object)],Do.prototype,`tailBinlog`,null),Za([v(`mesh.daler.binlog.redo`,Object),Qa(0,g(0,`id`,String)),K(`design:type`,Function),K(`design:paramtypes`,[String,Object]),K(`design:returntype`,typeof(To=typeof Promise<`u`&&Promise)==`function`?To:Object)],Do.prototype,`redoBinlog`,null),Za([v(`mesh.daler.binlog.remove`,Object),Qa(0,g(0,`id`,String)),K(`design:type`,Function),K(`design:paramtypes`,[String,Object]),K(`design:returntype`,typeof(Eo=typeof Promise<`u`&&Promise)==`function`?Eo:Object)],Do.prototype,`removeBinlog`,null),Do=Za([_(`mpi`)],Do);var Oo=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ko=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},Ao=function(e,t){return function(n,r){t(n,r,e)}},jo,Mo,No,Po,Fo,Io,Lo,Ro,zo,Bo=class{writes(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}write(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}read(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}indies(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}tables(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}};Oo([v(`mesh.dh.writes`,Object),Ao(0,g(0,`docs`,[Array,Et])),ko(`design:type`,Function),ko(`design:paramtypes`,[Array,Object]),ko(`design:returntype`,typeof(jo=typeof Promise<`u`&&Promise)==`function`?jo:Object)],Bo.prototype,`writes`,null),Oo([v(`mesh.dh.write`,Object),Ao(0,g(0,`doc`,Et)),ko(`design:type`,Function),ko(`design:paramtypes`,[typeof(Mo=Et!==void 0&&Et)==`function`?Mo:Object,Object]),ko(`design:returntype`,typeof(No=typeof Promise<`u`&&Promise)==`function`?No:Object)],Bo.prototype,`write`,null),Oo([v(`mesh.dh.read`,[T,Object]),Ao(0,g(0,`idx`,w)),ko(`design:type`,Function),ko(`design:paramtypes`,[typeof(Po=w!==void 0&&w)==`function`?Po:Object,Object]),ko(`design:returntype`,typeof(Fo=typeof Promise<`u`&&Promise)==`function`?Fo:Object)],Bo.prototype,`read`,null),Oo([v(`mesh.dh.indies`,[T,Object]),Ao(0,g(0,`idx`,w)),ko(`design:type`,Function),ko(`design:paramtypes`,[typeof(Io=w!==void 0&&w)==`function`?Io:Object,Object]),ko(`design:returntype`,typeof(Lo=typeof Promise<`u`&&Promise)==`function`?Lo:Object)],Bo.prototype,`indies`,null),Oo([v(`mesh.dh.tables`,[T,Object]),Ao(0,g(0,`idx`,w)),ko(`design:type`,Function),ko(`design:paramtypes`,[typeof(Ro=w!==void 0&&w)==`function`?Ro:Object,Object]),ko(`design:returntype`,typeof(zo=typeof Promise<`u`&&Promise)==`function`?zo:Object)],Bo.prototype,`tables`,null),Bo=Oo([_(`mpi`)],Bo);var Vo=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ho=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},Uo=function(e,t){return function(n,r){t(n,r,e)}},Wo,Go,Ko,qo,Jo,Yo,Xo,Zo,Qo,$o,es,ts,ns=class{init(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}settings(e=S()){return Promise.reject(x.URN_NOT_PERMIT)}setting(e,t,n=S()){return Promise.reject(x.URN_NOT_PERMIT)}indexReplica(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}importReplica(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}removeReplica(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}readReplica(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}replicate(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}recover(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}};Vo([v("${mesh.name}.devops.x.init",Object),Uo(0,g(0,`flags`,String)),Ho(`design:type`,Function),Ho(`design:paramtypes`,[String,Object]),Ho(`design:returntype`,typeof(Wo=typeof Promise<`u`&&Promise)==`function`?Wo:Object)],ns.prototype,`init`,null),Vo([v("${mesh.name}.devops.x.settings",[Map,String,bt],0,8),Ho(`design:type`,Function),Ho(`design:paramtypes`,[Object]),Ho(`design:returntype`,typeof(Go=typeof Promise<`u`&&Promise)==`function`?Go:Object)],ns.prototype,`settings`,null),Vo([v("${mesh.name}.devops.x.appset",Object),Uo(0,g(0,`appset`,String)),Uo(1,g(1,`setting`,bt)),Ho(`design:type`,Function),Ho(`design:paramtypes`,[String,typeof(Ko=bt!==void 0&&bt)==`function`?Ko:Object,Object]),Ho(`design:returntype`,typeof(qo=typeof Promise<`u`&&Promise)==`function`?qo:Object)],ns.prototype,`setting`,null),Vo([v("${mesh.name}.devops.replica.index",[T,xt]),Uo(0,g(0,`idx`,w)),Ho(`design:type`,Function),Ho(`design:paramtypes`,[typeof(Jo=w!==void 0&&w)==`function`?Jo:Object,Object]),Ho(`design:returntype`,typeof(Yo=typeof Promise<`u`&&Promise)==`function`?Yo:Object)],ns.prototype,`indexReplica`,null),Vo([v("${mesh.name}.devops.replica.import",String),Uo(0,g(0,`raw`,Uint8Array)),Ho(`design:type`,Function),Ho(`design:paramtypes`,[typeof(Xo=typeof Uint8Array<`u`&&Uint8Array)==`function`?Xo:Object,Object]),Ho(`design:returntype`,typeof(Zo=typeof Promise<`u`&&Promise)==`function`?Zo:Object)],ns.prototype,`importReplica`,null),Vo([v("${mesh.name}.devops.replica.remove",Object),Uo(0,g(0,`code`,String)),Ho(`design:type`,Function),Ho(`design:paramtypes`,[String,Object]),Ho(`design:returntype`,typeof(Qo=typeof Promise<`u`&&Promise)==`function`?Qo:Object)],ns.prototype,`removeReplica`,null),Vo([v("${mesh.name}.devops.replica.read",Uint8Array),Uo(0,g(0,`code`,String)),Ho(`design:type`,Function),Ho(`design:paramtypes`,[String,Object]),Ho(`design:returntype`,typeof($o=typeof Promise<`u`&&Promise)==`function`?$o:Object)],ns.prototype,`readReplica`,null),Vo([v("${mesh.name}.devops.replica.replicate",String),Uo(0,g(0,`appset`,String)),Ho(`design:type`,Function),Ho(`design:paramtypes`,[String,Object]),Ho(`design:returntype`,typeof(es=typeof Promise<`u`&&Promise)==`function`?es:Object)],ns.prototype,`replicate`,null),Vo([v("${mesh.name}.devops.replica.recover",Object),Uo(0,g(0,`id`,String)),Ho(`design:type`,Function),Ho(`design:paramtypes`,[String,Object]),Ho(`design:returntype`,typeof(ts=typeof Promise<`u`&&Promise)==`function`?ts:Object)],ns.prototype,`recover`,null),ns=Vo([_(`mpi`)],ns);var rs=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},is=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},as=function(e,t){return function(n,r){t(n,r,e)}},os,ss,cs,ls=class{invoke(e,t,n=S()){return Promise.reject(x.URN_NOT_PERMIT)}invoke0(e,t,n=S()){return Promise.reject(x.URN_NOT_PERMIT)}};rs([as(0,g(0,`urn`,String)),as(1,g(1,`param`,[Map,String,Object])),is(`design:type`,Function),is(`design:paramtypes`,[String,typeof(os=typeof Record<`u`&&Record)==`function`?os:Object,Object]),is(`design:returntype`,typeof(ss=typeof Promise<`u`&&Promise)==`function`?ss:Object)],ls.prototype,`invoke`,null),rs([as(0,g(0,`urn`,String)),as(1,g(1,`param`,Object)),is(`design:type`,Function),is(`design:paramtypes`,[String,Object,Object]),is(`design:returntype`,typeof(cs=typeof Promise<`u`&&Promise)==`function`?cs:Object)],ls.prototype,`invoke0`,null),ls=rs([_(`spi`)],ls);var us=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ds=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},fs=function(e,t){return function(n,r){t(n,r,e)}},ps,ms,hs,gs=class{fuzzy(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}};us([v("${mesh.uname}",Uint8Array),fs(0,g(0,`buff`,Uint8Array)),ds(`design:type`,Function),ds(`design:paramtypes`,[typeof(ps=typeof Uint8Array<`u`&&Uint8Array)==`function`?ps:Object,Object]),ds(`design:returntype`,typeof(ms=typeof Promise<`u`&&Promise)==`function`?ms:Object)],gs.prototype,`fuzzy`,null),gs=us([_(`mpi`)],gs);var _s=class{stick(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}};us([fs(0,g(0,`varg`,Object)),ds(`design:type`,Function),ds(`design:paramtypes`,[Object,Object]),ds(`design:returntype`,typeof(hs=typeof Promise<`u`&&Promise)==`function`?hs:Object)],_s.prototype,`stick`,null);var vs=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ys=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},bs=function(e,t){return function(n,r){t(n,r,e)}},xs,Ss,Cs,ws,Ts,Es,Ds=class{save(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}remove(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}describe(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}index(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}};vs([v(`mesh.firewall.save`,String),bs(0,g(0,`wall`,A)),ys(`design:type`,Function),ys(`design:paramtypes`,[typeof(xs=A!==void 0&&A)==`function`?xs:Object,Object]),ys(`design:returntype`,typeof(Ss=typeof Promise<`u`&&Promise)==`function`?Ss:Object)],Ds.prototype,`save`,null),vs([v(`mesh.firewall.remove`,Object),bs(0,g(0,`code`,String)),ys(`design:type`,Function),ys(`design:paramtypes`,[String,Object]),ys(`design:returntype`,typeof(Cs=typeof Promise<`u`&&Promise)==`function`?Cs:Object)],Ds.prototype,`remove`,null),vs([v(`mesh.firewall.describe`,A),bs(0,g(0,`code`,String)),ys(`design:type`,Function),ys(`design:paramtypes`,[String,Object]),ys(`design:returntype`,typeof(ws=typeof Promise<`u`&&Promise)==`function`?ws:Object)],Ds.prototype,`describe`,null),vs([v(`mesh.firewall.index`,[T,A]),bs(0,g(0,`idx`,w)),ys(`design:type`,Function),ys(`design:paramtypes`,[typeof(Ts=w!==void 0&&w)==`function`?Ts:Object,Object]),ys(`design:returntype`,typeof(Es=typeof Promise<`u`&&Promise)==`function`?Es:Object)],Ds.prototype,`index`,null),Ds=vs([_(`mpi`)],Ds);var Os=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ks=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},As=function(e,t){return function(n,r){t(n,r,e)}},js,Ms,Ns,Ps,Fs=class{query(e,t,n=S()){return Promise.reject(x.URN_NOT_PERMIT)}exec(e,t,n=S()){return Promise.reject(x.URN_NOT_PERMIT)}};Os([v(`mesh.graph.query`,[Array,[Map,String,Object]]),As(0,g(0,`expr`,String)),As(1,g(1,`args`,[Map,String,Object])),ks(`design:type`,Function),ks(`design:paramtypes`,[String,typeof(js=typeof Record<`u`&&Record)==`function`?js:Object,Object]),ks(`design:returntype`,typeof(Ms=typeof Promise<`u`&&Promise)==`function`?Ms:Object)],Fs.prototype,`query`,null),Os([v(`mesh.graph.exec`,Object),As(0,g(0,`expr`,String)),As(1,g(1,`args`,[Map,String,Object])),ks(`design:type`,Function),ks(`design:paramtypes`,[String,typeof(Ns=typeof Record<`u`&&Record)==`function`?Ns:Object,Object]),ks(`design:returntype`,typeof(Ps=typeof Promise<`u`&&Promise)==`function`?Ps:Object)],Fs.prototype,`exec`,null),Fs=Os([_(`mpi`)],Fs);var Is=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},q=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},Ls=function(e,t){return function(n,r){t(n,r,e)}},Rs,zs,Bs,Vs,Hs,Us,Ws,Gs,Ks,qs,Js,Ys,Xs,Zs,Qs,$s,ec,tc,nc,rc,ic,ac,oc=class{reset(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}environ(e=S()){return Promise.reject(x.URN_NOT_PERMIT)}issue(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}describe(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}index(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}revoke(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}rotate(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}remove(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}append(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}explain(e,t,n=S()){return Promise.reject(x.URN_NOT_PERMIT)}indexSecret(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}removeSecret(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}describeSecret(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}generateSecret(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}};Is([v(`mesh.kms.reset`,Object),Ls(0,g(0,`env`,Wt)),q(`design:type`,Function),q(`design:paramtypes`,[typeof(Rs=Wt!==void 0&&Wt)==`function`?Rs:Object,Object]),q(`design:returntype`,typeof(zs=typeof Promise<`u`&&Promise)==`function`?zs:Object)],oc.prototype,`reset`,null),Is([v(`mesh.kms.environ`,Wt),q(`design:type`,Function),q(`design:paramtypes`,[Object]),q(`design:returntype`,typeof(Bs=typeof Promise<`u`&&Promise)==`function`?Bs:Object)],oc.prototype,`environ`,null),Is([v(`mesh.kms.crt.issue`,yn),Ls(0,g(0,`csr`,vn)),q(`design:type`,Function),q(`design:paramtypes`,[typeof(Vs=vn!==void 0&&vn)==`function`?Vs:Object,Object]),q(`design:returntype`,typeof(Hs=typeof Promise<`u`&&Promise)==`function`?Hs:Object)],oc.prototype,`issue`,null),Is([v(`mesh.kms.crt.describe`,yn),Ls(0,g(0,`id`,String)),q(`design:type`,Function),q(`design:paramtypes`,[String,Object]),q(`design:returntype`,typeof(Us=typeof Promise<`u`&&Promise)==`function`?Us:Object)],oc.prototype,`describe`,null),Is([v(`mesh.kms.crt.index`,[T,yn]),Ls(0,g(0,`idx`,w)),q(`design:type`,Function),q(`design:paramtypes`,[typeof(Ws=w!==void 0&&w)==`function`?Ws:Object,Object]),q(`design:returntype`,typeof(Gs=typeof Promise<`u`&&Promise)==`function`?Gs:Object)],oc.prototype,`index`,null),Is([v(`mesh.kms.crt.revoke`,Object),Ls(0,g(0,`crr`,bn)),q(`design:type`,Function),q(`design:paramtypes`,[typeof(Ks=bn!==void 0&&bn)==`function`?Ks:Object,Object]),q(`design:returntype`,typeof(qs=typeof Promise<`u`&&Promise)==`function`?qs:Object)],oc.prototype,`revoke`,null),Is([v(`mesh.kms.crt.rotate`,Object),Ls(0,g(0,`crr`,xn)),q(`design:type`,Function),q(`design:paramtypes`,[typeof(Js=xn!==void 0&&xn)==`function`?Js:Object,Object]),q(`design:returntype`,typeof(Ys=typeof Promise<`u`&&Promise)==`function`?Ys:Object)],oc.prototype,`rotate`,null),Is([v(`mesh.kms.crt.remove`,Object),Ls(0,g(0,`id`,String)),q(`design:type`,Function),q(`design:paramtypes`,[String,Object]),q(`design:returntype`,typeof(Xs=typeof Promise<`u`&&Promise)==`function`?Xs:Object)],oc.prototype,`remove`,null),Is([v(`mesh.kms.crt.append`,Object),Ls(0,g(0,`car`,yn)),q(`design:type`,Function),q(`design:paramtypes`,[typeof(Zs=yn!==void 0&&yn)==`function`?Zs:Object,Object]),q(`design:returntype`,typeof(Qs=typeof Promise<`u`&&Promise)==`function`?Qs:Object)],oc.prototype,`append`,null),Is([v(`mesh.kms.crt.explain`,String),Ls(0,g(0,`algo`,String)),Ls(1,g(1,`keys`,String)),q(`design:type`,Function),q(`design:paramtypes`,[String,String,Object]),q(`design:returntype`,typeof($s=typeof Promise<`u`&&Promise)==`function`?$s:Object)],oc.prototype,`explain`,null),Is([v(`mesh.kms.secret.index`,[T,wn]),Ls(0,g(0,`idx`,w)),q(`design:type`,Function),q(`design:paramtypes`,[typeof(ec=w!==void 0&&w)==`function`?ec:Object,Object]),q(`design:returntype`,typeof(tc=typeof Promise<`u`&&Promise)==`function`?tc:Object)],oc.prototype,`indexSecret`,null),Is([v(`mesh.kms.secret.remove`,Object),Ls(0,g(0,`id`,String)),q(`design:type`,Function),q(`design:paramtypes`,[String,Object]),q(`design:returntype`,typeof(nc=typeof Promise<`u`&&Promise)==`function`?nc:Object)],oc.prototype,`removeSecret`,null),Is([v(`mesh.kms.secret.describe`,wn),Ls(0,g(0,`id`,String)),q(`design:type`,Function),q(`design:paramtypes`,[String,Object]),q(`design:returntype`,typeof(rc=typeof Promise<`u`&&Promise)==`function`?rc:Object)],oc.prototype,`describeSecret`,null),Is([v(`mesh.kms.secret.generate`,String),Ls(0,g(0,`csr`,Cn)),q(`design:type`,Function),q(`design:paramtypes`,[typeof(ic=Cn!==void 0&&Cn)==`function`?ic:Object,Object]),q(`design:returntype`,typeof(ac=typeof Promise<`u`&&Promise)==`function`?ac:Object)],oc.prototype,`generateSecret`,null),oc=Is([_(`mpi`)],oc);var sc=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},cc=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},lc=function(e,t){return function(n,r){t(n,r,e)}},uc,dc,fc,pc,mc,hc,gc,_c=class{get(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}put(e,t,n=S()){return Promise.reject(x.URN_NOT_PERMIT)}remove(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}keys(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}index(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}};sc([v(`mesh.kv.get`,Mt),lc(0,g(0,`key`,String)),cc(`design:type`,Function),cc(`design:paramtypes`,[String,Object]),cc(`design:returntype`,typeof(uc=typeof Promise<`u`&&Promise)==`function`?uc:Object)],_c.prototype,`get`,null),sc([v(`mesh.kv.put`,Object),lc(0,g(0,`key`,String)),lc(1,g(1,`value`,Mt)),cc(`design:type`,Function),cc(`design:paramtypes`,[String,typeof(dc=Mt!==void 0&&Mt)==`function`?dc:Object,Object]),cc(`design:returntype`,typeof(fc=typeof Promise<`u`&&Promise)==`function`?fc:Object)],_c.prototype,`put`,null),sc([v(`mesh.kv.remove`,Object),lc(0,g(0,`key`,String)),cc(`design:type`,Function),cc(`design:paramtypes`,[String,Object]),cc(`design:returntype`,typeof(pc=typeof Promise<`u`&&Promise)==`function`?pc:Object)],_c.prototype,`remove`,null),sc([v(`mesh.kv.keys`,[Array,String]),lc(0,g(0,`pattern`,String)),cc(`design:type`,Function),cc(`design:paramtypes`,[String,Object]),cc(`design:returntype`,typeof(mc=typeof Promise<`u`&&Promise)==`function`?mc:Object)],_c.prototype,`keys`,null),sc([v(`mesh.kv.index`,[T,Pt]),lc(0,g(0,`idx`,w)),cc(`design:type`,Function),cc(`design:paramtypes`,[typeof(hc=w!==void 0&&w)==`function`?hc:Object,Object]),cc(`design:returntype`,typeof(gc=typeof Promise<`u`&&Promise)==`function`?gc:Object)],_c.prototype,`index`,null),_c=sc([_(`mpi`)],_c);var vc=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},yc=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},bc=function(e,t){return function(n,r){t(n,r,e)}},xc,Sc,Cc,wc,Tc,Ec=class{imports(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}exports(e=S()){return Promise.reject(x.URN_NOT_PERMIT)}explain(e=S()){return Promise.reject(x.URN_NOT_PERMIT)}verify(e=S()){return Promise.reject(x.URN_NOT_PERMIT)}features(e=S()){return Promise.reject(x.URN_NOT_PERMIT)}};vc([v(`mesh.license.imports`,Object,0,2),bc(0,g(0,`license`,String)),yc(`design:type`,Function),yc(`design:paramtypes`,[String,Object]),yc(`design:returntype`,typeof(xc=typeof Promise<`u`&&Promise)==`function`?xc:Object)],Ec.prototype,`imports`,null),vc([v(`mesh.license.exports`,String,0,2),yc(`design:type`,Function),yc(`design:paramtypes`,[Object]),yc(`design:returntype`,typeof(Sc=typeof Promise<`u`&&Promise)==`function`?Sc:Object)],Ec.prototype,`exports`,null),vc([v(`mesh.license.explain`,kn,0,2),yc(`design:type`,Function),yc(`design:paramtypes`,[Object]),yc(`design:returntype`,typeof(Cc=typeof Promise<`u`&&Promise)==`function`?Cc:Object)],Ec.prototype,`explain`,null),vc([v(`mesh.license.verify`,Number,0,2),yc(`design:type`,Function),yc(`design:paramtypes`,[Object]),yc(`design:returntype`,typeof(wc=typeof Promise<`u`&&Promise)==`function`?wc:Object)],Ec.prototype,`verify`,null),vc([v(`mesh.license.features`,[Map,String,String],0,2),yc(`design:type`,Function),yc(`design:paramtypes`,[Object]),yc(`design:returntype`,typeof(Tc=typeof Promise<`u`&&Promise)==`function`?Tc:Object)],Ec.prototype,`features`,null),Ec=vc([_(`mpi`)],Ec);var Dc=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Oc=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},kc=function(e,t){return function(n,r){t(n,r,e)}},Ac,jc,Mc,Nc,Pc=class{lock(e,t,n=S()){return Promise.reject(x.URN_NOT_PERMIT)}unlock(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}readLock(e,t,n=S()){return Promise.reject(x.URN_NOT_PERMIT)}readUnlock(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}};Dc([v(`mesh.locker.w.lock`,Boolean),kc(0,g(0,`rid`,String)),kc(1,g(1,`timeout`,Number)),Oc(`design:type`,Function),Oc(`design:paramtypes`,[String,Number,Object]),Oc(`design:returntype`,typeof(Ac=typeof Promise<`u`&&Promise)==`function`?Ac:Object)],Pc.prototype,`lock`,null),Dc([v(`mesh.locker.w.unlock`,Object),kc(0,g(0,`rid`,String)),Oc(`design:type`,Function),Oc(`design:paramtypes`,[String,Object]),Oc(`design:returntype`,typeof(jc=typeof Promise<`u`&&Promise)==`function`?jc:Object)],Pc.prototype,`unlock`,null),Dc([v(`mesh.locker.r.lock`,Boolean),kc(0,g(0,`rid`,String)),kc(1,g(1,`timeout`,Number)),Oc(`design:type`,Function),Oc(`design:paramtypes`,[String,Number,Object]),Oc(`design:returntype`,typeof(Mc=typeof Promise<`u`&&Promise)==`function`?Mc:Object)],Pc.prototype,`readLock`,null),Dc([v(`mesh.locker.r.unlock`,Object),kc(0,g(0,`rid`,String)),Oc(`design:type`,Function),Oc(`design:paramtypes`,[String,Object]),Oc(`design:returntype`,typeof(Nc=typeof Promise<`u`&&Promise)==`function`?Nc:Object)],Pc.prototype,`readUnlock`,null),Pc=Dc([_(`mpi`)],Pc);var Fc=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},J=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},Ic=function(e,t){return function(n,r){t(n,r,e)}},Lc,Rc,zc,Bc,Vc,Hc,Uc,Wc,Gc,Kc,qc,Jc,Yc,Xc,Zc=class{environ(e=S()){return Promise.reject(x.URN_NOT_PERMIT)}accessible(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}refresh(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}route(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}routes(e=S()){return Promise.reject(x.URN_NOT_PERMIT)}disable(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}enable(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}index(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}version(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}exports(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}imports(e,t,n=S()){return Promise.reject(x.URN_NOT_PERMIT)}remove(e,t,n=S()){return Promise.reject(x.URN_NOT_PERMIT)}};Fc([v(`mesh.net.environ`,Wt),J(`design:type`,Function),J(`design:paramtypes`,[Object]),J(`design:returntype`,typeof(Lc=typeof Promise<`u`&&Promise)==`function`?Lc:Object)],Zc.prototype,`environ`,null),Fc([v(`mesh.net.accessible`,Boolean),Ic(0,g(0,`route`,z)),J(`design:type`,Function),J(`design:paramtypes`,[typeof(Rc=z!==void 0&&z)==`function`?Rc:Object,Object]),J(`design:returntype`,typeof(zc=typeof Promise<`u`&&Promise)==`function`?zc:Object)],Zc.prototype,`accessible`,null),Fc([v(`mesh.net.refresh`,Object),Ic(0,g(0,`routes`,[Array,z])),J(`design:type`,Function),J(`design:paramtypes`,[Array,Object]),J(`design:returntype`,typeof(Bc=typeof Promise<`u`&&Promise)==`function`?Bc:Object)],Zc.prototype,`refresh`,null),Fc([v(`mesh.net.route`,z),Ic(0,g(0,`mdc`,String)),J(`design:type`,Function),J(`design:paramtypes`,[String,Object]),J(`design:returntype`,typeof(Vc=typeof Promise<`u`&&Promise)==`function`?Vc:Object)],Zc.prototype,`route`,null),Fc([v(`mesh.net.routes`,[Array,z]),J(`design:type`,Function),J(`design:paramtypes`,[Object]),J(`design:returntype`,typeof(Hc=typeof Promise<`u`&&Promise)==`function`?Hc:Object)],Zc.prototype,`routes`,null),Fc([v(`mesh.net.disable`,Object),Ic(0,g(0,`mdc`,String)),J(`design:type`,Function),J(`design:paramtypes`,[String,Object]),J(`design:returntype`,typeof(Uc=typeof Promise<`u`&&Promise)==`function`?Uc:Object)],Zc.prototype,`disable`,null),Fc([v(`mesh.net.enable`,Object),Ic(0,g(0,`mdc`,String)),J(`design:type`,Function),J(`design:paramtypes`,[String,Object]),J(`design:returntype`,typeof(Wc=typeof Promise<`u`&&Promise)==`function`?Wc:Object)],Zc.prototype,`enable`,null),Fc([v(`mesh.net.index`,[T,z]),Ic(0,g(0,`index`,w)),J(`design:type`,Function),J(`design:paramtypes`,[typeof(Gc=w!==void 0&&w)==`function`?Gc:Object,Object]),J(`design:returntype`,typeof(Kc=typeof Promise<`u`&&Promise)==`function`?Kc:Object)],Zc.prototype,`index`,null),Fc([v(`mesh.net.version`,qr),Ic(0,g(0,`mdc`,String)),J(`design:type`,Function),J(`design:paramtypes`,[String,Object]),J(`design:returntype`,typeof(qc=typeof Promise<`u`&&Promise)==`function`?qc:Object)],Zc.prototype,`version`,null),Fc([v(`mesh.net.exports`,String),Ic(0,g(0,`mdc`,String)),J(`design:type`,Function),J(`design:paramtypes`,[String,Object]),J(`design:returntype`,typeof(Jc=typeof Promise<`u`&&Promise)==`function`?Jc:Object)],Zc.prototype,`exports`,null),Fc([v(`mesh.net.imports`,Object),Ic(0,g(0,`mdc`,String)),Ic(1,g(1,`crt`,String)),J(`design:type`,Function),J(`design:paramtypes`,[String,String,Object]),J(`design:returntype`,typeof(Yc=typeof Promise<`u`&&Promise)==`function`?Yc:Object)],Zc.prototype,`imports`,null),Fc([v(`mesh.net.remove`,Object),Ic(0,g(0,`sid`,String)),Ic(1,g(1,`did`,String)),J(`design:type`,Function),J(`design:paramtypes`,[String,String,Object]),J(`design:returntype`,typeof(Xc=typeof Promise<`u`&&Promise)==`function`?Xc:Object)],Zc.prototype,`remove`,null),Zc=Fc([_(`mpi`)],Zc);var Qc=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},$c=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},el=function(e,t){return function(n,r){t(n,r,e)}},tl,nl,rl,il,al,ol,sl=class{peek(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}pop(e,t,n=S()){return Promise.reject(x.URN_NOT_PERMIT)}push(e,t,n,r=S()){return Promise.reject(x.URN_NOT_PERMIT)}release(e,t,n=S()){return Promise.reject(x.URN_NOT_PERMIT)}};Qc([v(`mesh.chan.peek`,Uint8Array),el(0,g(0,`topic`,String)),$c(`design:type`,Function),$c(`design:paramtypes`,[String,Object]),$c(`design:returntype`,typeof(tl=typeof Promise<`u`&&Promise)==`function`?tl:Object)],sl.prototype,`peek`,null),Qc([v(`mesh.chan.pop`,Uint8Array),el(0,g(0,`timeout`,Number)),el(1,g(1,`topic`,String)),$c(`design:type`,Function),$c(`design:paramtypes`,[Number,String,Object]),$c(`design:returntype`,typeof(nl=typeof Promise<`u`&&Promise)==`function`?nl:Object)],sl.prototype,`pop`,null),Qc([v(`mesh.chan.push`,Object),el(0,g(0,`payload`,Uint8Array)),el(1,g(1,`metadata`,[Map,String,String])),el(2,g(2,`topic`,String)),$c(`design:type`,Function),$c(`design:paramtypes`,[typeof(rl=typeof Uint8Array<`u`&&Uint8Array)==`function`?rl:Object,typeof(il=typeof Record<`u`&&Record)==`function`?il:Object,String,Object]),$c(`design:returntype`,typeof(al=typeof Promise<`u`&&Promise)==`function`?al:Object)],sl.prototype,`push`,null),Qc([v(`mesh.chan.release`,Object),el(0,g(0,`timeout`,Number)),el(1,g(1,`topic`,String)),$c(`design:type`,Function),$c(`design:paramtypes`,[Number,String,Object]),$c(`design:returntype`,typeof(ol=typeof Promise<`u`&&Promise)==`function`?ol:Object)],sl.prototype,`release`,null),sl=Qc([_(`mpi`)],sl);var cl=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ll=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},ul=function(e,t){return function(n,r){t(n,r,e)}},dl,fl,pl=class{publish(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}broadcast(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}};cl([v(`mesh.queue.publish`,[Array,String],0,8),ul(0,g(0,`events`,[Array,an])),ll(`design:type`,Function),ll(`design:paramtypes`,[Array,Object]),ll(`design:returntype`,typeof(dl=typeof Promise<`u`&&Promise)==`function`?dl:Object)],pl.prototype,`publish`,null),cl([v(`mesh.queue.multicast`,[Array,String],0,8),ul(0,g(0,`events`,[Array,an])),ll(`design:type`,Function),ll(`design:paramtypes`,[Array,Object]),ll(`design:returntype`,typeof(fl=typeof Promise<`u`&&Promise)==`function`?fl:Object)],pl.prototype,`broadcast`,null),pl=cl([_(`mpi`)],pl);var ml=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},hl=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},gl=function(e,t){return function(n,r){t(n,r,e)}},_l,vl,yl,bl,xl,Sl,Cl,wl=class{register(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}registers(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}unregister(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}export(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}appset(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}};ml([v(`mesh.registry.put`,Object),gl(0,g(0,`registration`,[nr,Object])),hl(`design:type`,Function),hl(`design:paramtypes`,[typeof(_l=nr!==void 0&&nr)==`function`?_l:Object,Object]),hl(`design:returntype`,typeof(vl=typeof Promise<`u`&&Promise)==`function`?vl:Object)],wl.prototype,`register`,null),ml([v(`mesh.registry.puts`,Object),gl(0,g(0,`registrations`,[Array,[nr,Object]])),hl(`design:type`,Function),hl(`design:paramtypes`,[Array,Object]),hl(`design:returntype`,typeof(yl=typeof Promise<`u`&&Promise)==`function`?yl:Object)],wl.prototype,`registers`,null),ml([v(`mesh.registry.remove`,Object),gl(0,g(0,`registration`,[nr,Object])),hl(`design:type`,Function),hl(`design:paramtypes`,[typeof(bl=nr!==void 0&&nr)==`function`?bl:Object,Object]),hl(`design:returntype`,typeof(xl=typeof Promise<`u`&&Promise)==`function`?xl:Object)],wl.prototype,`unregister`,null),ml([v(`mesh.registry.export`,[Array,[nr,Object]]),gl(0,g(0,`kind`,String)),hl(`design:type`,Function),hl(`design:paramtypes`,[String,Object]),hl(`design:returntype`,typeof(Sl=typeof Promise<`u`&&Promise)==`function`?Sl:Object)],wl.prototype,`export`,null),ml([v(`mesh.registry.appset`,[Array,rr]),gl(0,g(0,`kind`,String)),hl(`design:type`,Function),hl(`design:paramtypes`,[String,Object]),hl(`design:returntype`,typeof(Cl=typeof Promise<`u`&&Promise)==`function`?Cl:Object)],wl.prototype,`appset`,null),wl=ml([_(`mpi`)],wl);var Tl=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},El=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},Dl=function(e,t){return function(n,r){t(n,r,e)}},Ol,kl,Al,jl,Ml,Nl,Pl,Fl=class{with(e,t,n=S()){return Promise.reject(x.URN_NOT_PERMIT)}withMap(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}local(e=S()){return Promise.reject(x.URN_NOT_PERMIT)}any(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}many(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}};Tl([Dl(0,g(0,`key`,String)),Dl(1,g(1,`value`,String)),El(`design:type`,Function),El(`design:paramtypes`,[String,String,Object]),El(`design:returntype`,typeof(Ol=typeof Promise<`u`&&Promise)==`function`?Ol:Object)],Fl.prototype,`with`,null),Tl([Dl(0,g(0,`attachments`,[Map,String,String])),El(`design:type`,Function),El(`design:paramtypes`,[typeof(kl=typeof Record<`u`&&Record)==`function`?kl:Object,Object]),El(`design:returntype`,typeof(Al=typeof Promise<`u`&&Promise)==`function`?Al:Object)],Fl.prototype,`withMap`,null),Tl([Dl(0,g(0,`principal`,qt)),El(`design:type`,Function),El(`design:paramtypes`,[typeof(jl=qt!==void 0&&qt)==`function`?jl:Object,Object]),El(`design:returntype`,typeof(Ml=typeof Promise<`u`&&Promise)==`function`?Ml:Object)],Fl.prototype,`any`,null),Tl([Dl(0,g(0,`principals`,[Array,qt])),El(`design:type`,Function),El(`design:paramtypes`,[Array,Object]),El(`design:returntype`,typeof(Nl=typeof Promise<`u`&&Promise)==`function`?Nl:Object)],Fl.prototype,`many`,null);var Il=class{reference=void 0;attachments={}};Tl([g(0,`reference`,Object),El(`design:type`,Object)],Il.prototype,`reference`,void 0),Tl([g(1,`attachments`,[Map,String,String]),El(`design:type`,typeof(Pl=typeof Record<`u`&&Record)==`function`?Pl:Object)],Il.prototype,`attachments`,void 0);var Ll=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Rl=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},zl=function(e,t){return function(n,r){t(n,r,e)}},Bl,Vl,Hl,Ul,Wl,Gl,Kl,ql,Jl=class{begin(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}commit(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}rollback(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}execute(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}redo(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}};Ll([v(`mesh.savepoint.begin`,String),zl(0,g(0,`definition`,hr)),Rl(`design:type`,Function),Rl(`design:paramtypes`,[typeof(Bl=hr!==void 0&&hr)==`function`?Bl:Object,Object]),Rl(`design:returntype`,typeof(Vl=typeof Promise<`u`&&Promise)==`function`?Vl:Object)],Jl.prototype,`begin`,null),Ll([v(`mesh.savepoint.commit`,Object),zl(0,g(0,`xid`,String)),Rl(`design:type`,Function),Rl(`design:paramtypes`,[String,Object]),Rl(`design:returntype`,typeof(Hl=typeof Promise<`u`&&Promise)==`function`?Hl:Object)],Jl.prototype,`commit`,null),Ll([v(`mesh.savepoint.rollback`,Object),zl(0,g(0,`xid`,String)),Rl(`design:type`,Function),Rl(`design:paramtypes`,[String,Object]),Rl(`design:returntype`,typeof(Ul=typeof Promise<`u`&&Promise)==`function`?Ul:Object)],Jl.prototype,`rollback`,null),Ll([v(`mesh.savepoint.execute`,Uint8Array),zl(0,g(0,`branch`,gr)),Rl(`design:type`,Function),Rl(`design:paramtypes`,[typeof(Wl=gr!==void 0&&gr)==`function`?Wl:Object,Object]),Rl(`design:returntype`,typeof(Gl=typeof Promise<`u`&&Promise)==`function`?Gl:Object)],Jl.prototype,`execute`,null),Ll([v(`mesh.savepoint.redo`,Object),zl(0,g(0,`commit`,Uint8Array)),Rl(`design:type`,Function),Rl(`design:paramtypes`,[typeof(Kl=typeof Uint8Array<`u`&&Uint8Array)==`function`?Kl:Object,Object]),Rl(`design:returntype`,typeof(ql=typeof Promise<`u`&&Promise)==`function`?ql:Object)],Jl.prototype,`redo`,null),Jl=Ll([_(`mpi`)],Jl);var Yl=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Xl=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},Zl=function(e,t){return function(n,r){t(n,r,e)}},Ql,$l,eu,tu,nu,ru,iu,au,ou,su,cu,lu,uu=class{timeout(e,t,n=S()){return Promise.reject(x.URN_NOT_PERMIT)}cron(e,t,n=S()){return Promise.reject(x.URN_NOT_PERMIT)}period(e,t,n=S()){return Promise.reject(x.URN_NOT_PERMIT)}dump(e=S()){return Promise.reject(x.URN_NOT_PERMIT)}cancel(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}stop(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}emit(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}shutdown(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}};Yl([v(`mesh.schedule.timeout`,String),Zl(0,g(0,`timeout`,on)),Zl(1,g(1,`duration`,Number)),Xl(`design:type`,Function),Xl(`design:paramtypes`,[typeof(Ql=on!==void 0&&on)==`function`?Ql:Object,Number,Object]),Xl(`design:returntype`,typeof($l=typeof Promise<`u`&&Promise)==`function`?$l:Object)],uu.prototype,`timeout`,null),Yl([v(`mesh.schedule.cron`,String),Zl(0,g(0,`cron`,String)),Zl(1,g(1,`topic`,Ue)),Xl(`design:type`,Function),Xl(`design:paramtypes`,[String,typeof(eu=Ue!==void 0&&Ue)==`function`?eu:Object,Object]),Xl(`design:returntype`,typeof(tu=typeof Promise<`u`&&Promise)==`function`?tu:Object)],uu.prototype,`cron`,null),Yl([v(`mesh.schedule.period`,String),Zl(0,g(0,`duration`,Number)),Zl(1,g(1,`topic`,Ue)),Xl(`design:type`,Function),Xl(`design:paramtypes`,[Number,typeof(nu=Ue!==void 0&&Ue)==`function`?nu:Object,Object]),Xl(`design:returntype`,typeof(ru=typeof Promise<`u`&&Promise)==`function`?ru:Object)],uu.prototype,`period`,null),Yl([v(`mesh.schedule.dump`,[Array,String]),Xl(`design:type`,Function),Xl(`design:paramtypes`,[Object]),Xl(`design:returntype`,typeof(iu=typeof Promise<`u`&&Promise)==`function`?iu:Object)],uu.prototype,`dump`,null),Yl([v(`mesh.schedule.cancel`,Boolean),Zl(0,g(0,`task_id`,String)),Xl(`design:type`,Function),Xl(`design:paramtypes`,[String,Object]),Xl(`design:returntype`,typeof(au=typeof Promise<`u`&&Promise)==`function`?au:Object)],uu.prototype,`cancel`,null),Yl([v(`mesh.schedule.stop`,Boolean),Zl(0,g(0,`task_id`,String)),Xl(`design:type`,Function),Xl(`design:paramtypes`,[String,Object]),Xl(`design:returntype`,typeof(ou=typeof Promise<`u`&&Promise)==`function`?ou:Object)],uu.prototype,`stop`,null),Yl([v(`mesh.schedule.emit`,Object),Zl(0,g(0,`topic`,Ue)),Xl(`design:type`,Function),Xl(`design:paramtypes`,[typeof(su=Ue!==void 0&&Ue)==`function`?su:Object,Object]),Xl(`design:returntype`,typeof(cu=typeof Promise<`u`&&Promise)==`function`?cu:Object)],uu.prototype,`emit`,null),Yl([v(`mesh.schedule.shutdown`,Object),Zl(0,g(0,`duration`,Number)),Xl(`design:type`,Function),Xl(`design:paramtypes`,[Number,Object]),Xl(`design:returntype`,typeof(lu=typeof Promise<`u`&&Promise)==`function`?lu:Object)],uu.prototype,`shutdown`,null),uu=Yl([_(`mpi`)],uu);var du=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},fu=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},pu=function(e,t){return function(n,r){t(n,r,e)}},mu,hu,gu=class{next(e,t,n=S()){return Promise.reject(x.URN_NOT_PERMIT)}section(e,t,n,r=S()){return Promise.reject(x.URN_NOT_PERMIT)}};du([v(`mesh.sequence.next`,String),pu(0,g(0,`kind`,String)),pu(1,g(1,`length`,Number)),fu(`design:type`,Function),fu(`design:paramtypes`,[String,Number,Object]),fu(`design:returntype`,typeof(mu=typeof Promise<`u`&&Promise)==`function`?mu:Object)],gu.prototype,`next`,null),du([v(`mesh.sequence.section`,[Array,String]),pu(0,g(0,`kind`,String)),pu(1,g(1,`size`,Number)),pu(2,g(2,`length`,Number)),fu(`design:type`,Function),fu(`design:paramtypes`,[String,Number,Number,Object]),fu(`design:returntype`,typeof(hu=typeof Promise<`u`&&Promise)==`function`?hu:Object)],gu.prototype,`section`,null),gu=du([_(`mpi`)],gu);var _u=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},vu=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},yu=function(e,t){return function(n,r){t(n,r,e)}},bu,xu,Su=class{subscribe(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}};_u([v(`mesh.queue.subscribe`,Object,0,8),yu(0,g(0,`event`,an)),vu(`design:type`,Function),vu(`design:paramtypes`,[typeof(bu=an!==void 0&&an)==`function`?bu:Object,Object]),vu(`design:returntype`,typeof(xu=typeof Promise<`u`&&Promise)==`function`?xu:Object)],Su.prototype,`subscribe`,null),Su=_u([_(`mpi`)],Su);var Cu=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Y=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},wu=function(e,t){return function(n,r){t(n,r,e)}},Tu,Eu,Du,Ou,ku,Au,ju,Mu,Nu,Pu,Fu,Iu,Lu,Ru,zu,Bu,Vu,Hu=class{captcha(e,t,n=S()){return Promise.reject(x.URN_NOT_PERMIT)}matches(e,t,n=S()){return Promise.reject(x.URN_NOT_PERMIT)}apply(e,t,n=S()){return Promise.reject(x.URN_NOT_PERMIT)}verify(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}quickauth(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}grant(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}accept(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}reject(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}authorize(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}authenticate(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}refresh(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}destroy(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}};Cu([v(`mesh.captcha.apply`,Fn,0,8),wu(0,g(0,`kind`,String)),wu(1,g(1,`features`,[Map,String,String])),Y(`design:type`,Function),Y(`design:paramtypes`,[String,typeof(Tu=typeof Record<`u`&&Record)==`function`?Tu:Object,Object]),Y(`design:returntype`,typeof(Eu=typeof Promise<`u`&&Promise)==`function`?Eu:Object)],Hu.prototype,`captcha`,null),Cu([v(`mesh.captcha.match`,Boolean,0,8),wu(0,g(0,`mno`,String)),wu(1,g(1,`value`,String)),Y(`design:type`,Function),Y(`design:paramtypes`,[String,String,Object]),Y(`design:returntype`,typeof(Du=typeof Promise<`u`&&Promise)==`function`?Du:Object)],Hu.prototype,`matches`,null),Cu([v(`mesh.trust.apply`,String),wu(0,g(0,`kind`,String)),wu(1,g(1,`duration`,Number)),Y(`design:type`,Function),Y(`design:paramtypes`,[String,Number,Object]),Y(`design:returntype`,typeof(Ou=typeof Promise<`u`&&Promise)==`function`?Ou:Object)],Hu.prototype,`apply`,null),Cu([v(`mesh.trust.verify`,Boolean,0,8),wu(0,g(0,`token`,String)),Y(`design:type`,Function),Y(`design:paramtypes`,[String,Object]),Y(`design:returntype`,typeof(ku=typeof Promise<`u`&&Promise)==`function`?ku:Object)],Hu.prototype,`verify`,null),Cu([v(`mesh.auth.quickauth`,Rn,0,8),wu(0,g(0,`credential`,Ln)),Y(`design:type`,Function),Y(`design:paramtypes`,[typeof(Au=Ln!==void 0&&Ln)==`function`?Au:Object,Object]),Y(`design:returntype`,typeof(ju=typeof Promise<`u`&&Promise)==`function`?ju:Object)],Hu.prototype,`quickauth`,null),Cu([v(`mesh.oauth.grant`,zn),wu(0,g(0,`grant`,In)),Y(`design:type`,Function),Y(`design:paramtypes`,[typeof(Mu=In!==void 0&&In)==`function`?Mu:Object,Object]),Y(`design:returntype`,typeof(Nu=typeof Promise<`u`&&Promise)==`function`?Nu:Object)],Hu.prototype,`grant`,null),Cu([v(`mesh.oauth.accept`,Bn),wu(0,g(0,`code`,String)),Y(`design:type`,Function),Y(`design:paramtypes`,[String,Object]),Y(`design:returntype`,typeof(Pu=typeof Promise<`u`&&Promise)==`function`?Pu:Object)],Hu.prototype,`accept`,null),Cu([v(`mesh.oauth.reject`,Object),wu(0,g(0,`code`,String)),Y(`design:type`,Function),Y(`design:paramtypes`,[String,Object]),Y(`design:returntype`,typeof(Fu=typeof Promise<`u`&&Promise)==`function`?Fu:Object)],Hu.prototype,`reject`,null),Cu([v(`mesh.auth.authorize`,Rn,0,8),wu(0,g(0,`code`,String)),Y(`design:type`,Function),Y(`design:paramtypes`,[String,Object]),Y(`design:returntype`,typeof(Iu=typeof Promise<`u`&&Promise)==`function`?Iu:Object)],Hu.prototype,`authorize`,null),Cu([v(`mesh.oauth.authenticate`,Hn,0,8),wu(0,g(0,`token`,String)),Y(`design:type`,Function),Y(`design:paramtypes`,[String,Object]),Y(`design:returntype`,typeof(Lu=typeof Promise<`u`&&Promise)==`function`?Lu:Object)],Hu.prototype,`authenticate`,null),Cu([v(`mesh.oauth.refresh`,Rn,0,8),wu(0,g(0,`token`,String)),Y(`design:type`,Function),Y(`design:paramtypes`,[String,Object]),Y(`design:returntype`,typeof(Ru=typeof Promise<`u`&&Promise)==`function`?Ru:Object)],Hu.prototype,`refresh`,null),Cu([v(`mesh.oauth.destroy`,Object,0,8),wu(0,g(0,`token`,String)),Y(`design:type`,Function),Y(`design:paramtypes`,[String,Object]),Y(`design:returntype`,typeof(zu=typeof Promise<`u`&&Promise)==`function`?zu:Object)],Hu.prototype,`destroy`,null),Hu=Cu([_(`mpi`)],Hu);var Uu=class{session(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}};Cu([v("${mesh.name}.auth.session",Hn,0,8),wu(0,g(0,`credential`,Ln)),Y(`design:type`,Function),Y(`design:paramtypes`,[typeof(Bu=Ln!==void 0&&Ln)==`function`?Bu:Object,Object]),Y(`design:returntype`,typeof(Vu=typeof Promise<`u`&&Promise)==`function`?Vu:Object)],Uu.prototype,`session`,null),Uu=Cu([_(`mpi`)],Uu);var Wu=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Gu=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},Ku=function(e,t){return function(n,r){t(n,r,e)}},qu,Ju,Yu,Xu,Zu,Qu,$u,ed=class{attach(e,t,n=S()){return Promise.reject(x.URN_NOT_PERMIT)}detach(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}scan(e,t,n,r=S()){return Promise.reject(x.URN_NOT_PERMIT)}write(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}read(e,t,n=S()){return Promise.reject(x.URN_NOT_PERMIT)}clean(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}};Wu([v("${mesh.name}.tcp.attach",String),Ku(0,g(0,`uri`,String)),Ku(1,g(1,`pdc`,String)),Gu(`design:type`,Function),Gu(`design:paramtypes`,[String,String,Object]),Gu(`design:returntype`,typeof(qu=typeof Promise<`u`&&Promise)==`function`?qu:Object)],ed.prototype,`attach`,null),Wu([v("${mesh.name}.tcp.detach",Object),Ku(0,g(0,`descriptor`,String)),Gu(`design:type`,Function),Gu(`design:paramtypes`,[String,Object]),Gu(`design:returntype`,typeof(Ju=typeof Promise<`u`&&Promise)==`function`?Ju:Object)],ed.prototype,`detach`,null),Wu([v("${mesh.name}.tcp.scan",[Array,Ur]),Ku(0,g(0,`rid`,String)),Ku(1,g(1,`h`,Number)),Ku(2,g(2,`limit`,Number)),Gu(`design:type`,Function),Gu(`design:paramtypes`,[String,Number,Number,Object]),Gu(`design:returntype`,typeof(Yu=typeof Promise<`u`&&Promise)==`function`?Yu:Object)],ed.prototype,`scan`,null),Wu([v("${mesh.name}.tcp.write",Object),Ku(0,g(0,`packet`,Ur)),Gu(`design:type`,Function),Gu(`design:paramtypes`,[typeof(Xu=Ur!==void 0&&Ur)==`function`?Xu:Object,Object]),Gu(`design:returntype`,typeof(Zu=typeof Promise<`u`&&Promise)==`function`?Zu:Object)],ed.prototype,`write`,null),Wu([v("${mesh.name}.tcp.read",[Array,Ur]),Ku(0,g(0,`bucket`,String)),Ku(1,g(1,`limit`,Number)),Gu(`design:type`,Function),Gu(`design:paramtypes`,[String,Number,Object]),Gu(`design:returntype`,typeof(Qu=typeof Promise<`u`&&Promise)==`function`?Qu:Object)],ed.prototype,`read`,null),Wu([v("${mesh.name}.tcp.clean",Object),Ku(0,g(0,`buckets`,[Array,String])),Gu(`design:type`,Function),Gu(`design:paramtypes`,[Array,Object]),Gu(`design:returntype`,typeof($u=typeof Promise<`u`&&Promise)==`function`?$u:Object)],ed.prototype,`clean`,null),ed=Wu([_(`mpi`)],ed);var td=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},nd=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},rd=function(e,t){return function(n,r){t(n,r,e)}},id,ad,od,sd,cd,ld,ud,dd,fd=class{exist(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}mkdir(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}write(e,t,n=S()){return Promise.reject(x.URN_NOT_PERMIT)}read(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}remove(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}delete(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}list(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}};td([v(`mesh.fs.exist`,Boolean),rd(0,g(0,`path`,String)),nd(`design:type`,Function),nd(`design:paramtypes`,[String,Object]),nd(`design:returntype`,typeof(id=typeof Promise<`u`&&Promise)==`function`?id:Object)],fd.prototype,`exist`,null),td([v(`mesh.fs.mkdir`,Object),rd(0,g(0,`path`,String)),nd(`design:type`,Function),nd(`design:paramtypes`,[String,Object]),nd(`design:returntype`,typeof(ad=typeof Promise<`u`&&Promise)==`function`?ad:Object)],fd.prototype,`mkdir`,null),td([v(`mesh.fs.write`,Object),rd(0,g(0,`path`,String)),rd(1,g(1,`buff`,Uint8Array)),nd(`design:type`,Function),nd(`design:paramtypes`,[String,typeof(od=typeof Uint8Array<`u`&&Uint8Array)==`function`?od:Object,Object]),nd(`design:returntype`,typeof(sd=typeof Promise<`u`&&Promise)==`function`?sd:Object)],fd.prototype,`write`,null),td([v(`mesh.fs.read`,Uint8Array),rd(0,g(0,`path`,String)),nd(`design:type`,Function),nd(`design:paramtypes`,[String,Object]),nd(`design:returntype`,typeof(cd=typeof Promise<`u`&&Promise)==`function`?cd:Object)],fd.prototype,`read`,null),td([v(`mesh.fs.remove`,Object),rd(0,g(0,`path`,String)),nd(`design:type`,Function),nd(`design:paramtypes`,[String,Object]),nd(`design:returntype`,typeof(ld=typeof Promise<`u`&&Promise)==`function`?ld:Object)],fd.prototype,`remove`,null),td([v(`mesh.fs.delete`,Object),rd(0,g(0,`paths`,[Array,String])),nd(`design:type`,Function),nd(`design:paramtypes`,[Array,Object]),nd(`design:returntype`,typeof(ud=typeof Promise<`u`&&Promise)==`function`?ud:Object)],fd.prototype,`delete`,null),td([v(`mesh.fs.ls`,Ft),rd(0,g(0,`path`,String)),nd(`design:type`,Function),nd(`design:paramtypes`,[String,Object]),nd(`design:returntype`,typeof(dd=typeof Promise<`u`&&Promise)==`function`?dd:Object)],fd.prototype,`list`,null),fd=td([_(`mpi`)],fd);var pd=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},md=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},hd=function(e,t){return function(n,r){t(n,r,e)}},gd,_d,vd,yd,bd,xd,Sd,Cd,wd,Td,Ed,Dd=class{render(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}compile(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}setup(e,t,n=S()){return Promise.reject(x.URN_NOT_PERMIT)}remove(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}describe(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}exec(e,t,n,r=S()){return Promise.reject(x.URN_NOT_PERMIT)}index(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}};pd([v(`mesh.vmc.render`,[Map,String,Uint8Array]),hd(0,g(0,`script`,Fr)),md(`design:type`,Function),md(`design:paramtypes`,[typeof(gd=Fr!==void 0&&Fr)==`function`?gd:Object,Object]),md(`design:returntype`,typeof(_d=typeof Promise<`u`&&Promise)==`function`?_d:Object)],Dd.prototype,`render`,null),pd([v(`mesh.vmc.compile`,String),hd(0,g(0,`script`,Fr)),md(`design:type`,Function),md(`design:paramtypes`,[typeof(vd=Fr!==void 0&&Fr)==`function`?vd:Object,Object]),md(`design:returntype`,typeof(yd=typeof Promise<`u`&&Promise)==`function`?yd:Object)],Dd.prototype,`compile`,null),pd([v(`mesh.vmc.setup`,Object),hd(0,g(0,`code`,String)),hd(1,g(1,`version`,String)),md(`design:type`,Function),md(`design:paramtypes`,[String,String,Object]),md(`design:returntype`,typeof(bd=typeof Promise<`u`&&Promise)==`function`?bd:Object)],Dd.prototype,`setup`,null),pd([v(`mesh.vmc.remove`,Object),hd(0,g(0,`code`,String)),md(`design:type`,Function),md(`design:paramtypes`,[String,Object]),md(`design:returntype`,typeof(xd=typeof Promise<`u`&&Promise)==`function`?xd:Object)],Dd.prototype,`remove`,null),pd([v(`mesh.vmc.describe`,Fr),hd(0,g(0,`code`,String)),md(`design:type`,Function),md(`design:paramtypes`,[String,Object]),md(`design:returntype`,typeof(Sd=typeof Promise<`u`&&Promise)==`function`?Sd:Object)],Dd.prototype,`describe`,null),pd([v(`mesh.vmc.exec`,String),hd(0,g(0,`code`,String)),hd(1,g(1,`args`,[Map,String,String])),hd(2,g(2,`dft`,String)),md(`design:type`,Function),md(`design:paramtypes`,[String,typeof(Cd=typeof Record<`u`&&Record)==`function`?Cd:Object,String,Object]),md(`design:returntype`,typeof(wd=typeof Promise<`u`&&Promise)==`function`?wd:Object)],Dd.prototype,`exec`,null),pd([v(`mesh.vmc.index`,[T,Fr]),hd(0,g(0,`idx`,w)),md(`design:type`,Function),md(`design:paramtypes`,[typeof(Td=w!==void 0&&w)==`function`?Td:Object,Object]),md(`design:returntype`,typeof(Ed=typeof Promise<`u`&&Promise)==`function`?Ed:Object)],Dd.prototype,`index`,null),Dd=pd([_(`mpi`)],Dd);var Od=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},kd=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},Ad=function(e,t){return function(n,r){t(n,r,e)}},jd,Md,Nd,Pd,Fd,Id,Ld,Rd,zd,Bd,Vd,Hd,Ud,Wd,Gd=class{mass(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}groups(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}compile(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}index(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}submit(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}take(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}routines(e,t=S()){return Promise.reject(x.URN_NOT_PERMIT)}};Od([v(`mesh.workflow.mass`,String),Ad(0,g(0,`group`,oi)),kd(`design:type`,Function),kd(`design:paramtypes`,[typeof(jd=oi!==void 0&&oi)==`function`?jd:Object,Object]),kd(`design:returntype`,typeof(Md=typeof Promise<`u`&&Promise)==`function`?Md:Object)],Gd.prototype,`mass`,null),Od([v(`mesh.workflow.groups`,[T,oi]),Ad(0,g(0,`index`,w)),kd(`design:type`,Function),kd(`design:paramtypes`,[typeof(Nd=w!==void 0&&w)==`function`?Nd:Object,Object]),kd(`design:returntype`,typeof(Pd=typeof Promise<`u`&&Promise)==`function`?Pd:Object)],Gd.prototype,`groups`,null),Od([v(`mesh.workflow.compile`,String),Ad(0,g(0,`chart`,ri)),kd(`design:type`,Function),kd(`design:paramtypes`,[typeof(Fd=ri!==void 0&&ri)==`function`?Fd:Object,Object]),kd(`design:returntype`,typeof(Id=typeof Promise<`u`&&Promise)==`function`?Id:Object)],Gd.prototype,`compile`,null),Od([v(`mesh.workflow.index`,[T,ri]),Ad(0,g(0,`index`,w)),kd(`design:type`,Function),kd(`design:paramtypes`,[typeof(Ld=w!==void 0&&w)==`function`?Ld:Object,Object]),kd(`design:returntype`,typeof(Rd=typeof Promise<`u`&&Promise)==`function`?Rd:Object)],Gd.prototype,`index`,null),Od([v(`mesh.workflow.submit`,String),Ad(0,g(0,`intent`,ei)),kd(`design:type`,Function),kd(`design:paramtypes`,[typeof(zd=ei!==void 0&&ei)==`function`?zd:Object,Object]),kd(`design:returntype`,typeof(Bd=typeof Promise<`u`&&Promise)==`function`?Bd:Object)],Gd.prototype,`submit`,null),Od([v(`mesh.workflow.take`,Object),Ad(0,g(0,`vertex`,ti)),kd(`design:type`,Function),kd(`design:paramtypes`,[typeof(Vd=ti!==void 0&&ti)==`function`?Vd:Object,Object]),kd(`design:returntype`,typeof(Hd=typeof Promise<`u`&&Promise)==`function`?Hd:Object)],Gd.prototype,`take`,null),Od([v(`mesh.workflow.routines`,[T,ti]),Ad(0,g(0,`index`,w)),kd(`design:type`,Function),kd(`design:paramtypes`,[typeof(Ud=w!==void 0&&w)==`function`?Ud:Object,Object]),kd(`design:returntype`,typeof(Wd=typeof Promise<`u`&&Promise)==`function`?Wd:Object)],Gd.prototype,`routines`,null),Gd=Od([_(`mpi`)],Gd);var Kd=class{encoding=`utf-8`;encode(e=``){let t=[];for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(r>=55296&&r<=56319&&n+1<e.length){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(r=65536+(r-55296<<10)+(t-56320),n++)}r<128?t.push(r):r<2048?(t.push(192|r>>6),t.push(128|r&63)):r<65536?(t.push(224|r>>12),t.push(128|r>>6&63),t.push(128|r&63)):r<1114112&&(t.push(240|r>>18),t.push(128|r>>12&63),t.push(128|r>>6&63),t.push(128|r&63))}return new Uint8Array(t)}encodeInto(e,t){let n=0,r=0;for(let i=0;i<e.length&&r<t.length;i++){let a=e.charCodeAt(i);if(a>=55296&&a<=56319&&i+1<e.length){let t=e.charCodeAt(i+1);t>=56320&&t<=57343&&(a=65536+(a-55296<<10)+(t-56320),i++)}if(a<128){if(r+1>t.length)break;t[r++]=a}else if(a<2048){if(r+2>t.length)break;t[r++]=192|a>>6,t[r++]=128|a&63}else if(a<65536){if(r+3>t.length)break;t[r++]=224|a>>12,t[r++]=128|a>>6&63,t[r++]=128|a&63}else if(a<1114112){if(r+4>t.length)break;t[r++]=240|a>>18,t[r++]=128|a>>12&63,t[r++]=128|a>>6&63,t[r++]=128|a&63}n=i+1}return{read:n,written:r}}},qd=class{encoding;fatal;ignoreBOM;constructor(e=`utf-8`,t={}){this.encoding=e.toLowerCase(),this.fatal=t.fatal||!1,this.ignoreBOM=t.ignoreBOM||!1}decode(e){if(!e)return``;let t=e instanceof Uint8Array?e:new Uint8Array(e),n=[],r=0;for(!this.ignoreBOM&&t.length>=3&&t[0]===239&&t[1]===187&&t[2]===191&&(r=3);r<t.length;){let e=t[r++];if(e<128){n.push(String.fromCharCode(e));continue}if((e&224)==192){if(r>=t.length){if(this.fatal)throw Error(`Invalid UTF-8 sequence`);n.push(`�`);break}let i=t[r++];if((i&192)!=128){if(this.fatal)throw Error(`Invalid UTF-8 sequence`);n.push(`�`);continue}let a=(e&31)<<6|i&63;n.push(String.fromCharCode(a));continue}if((e&240)==224){if(r+1>=t.length){if(this.fatal)throw Error(`Invalid UTF-8 sequence`);n.push(`�`);break}let i=t[r++],a=t[r++];if((i&192)!=128||(a&192)!=128){if(this.fatal)throw Error(`Invalid UTF-8 sequence`);n.push(`�`);continue}let o=(e&15)<<12|(i&63)<<6|a&63;n.push(String.fromCharCode(o));continue}if((e&248)==240){if(r+2>=t.length){if(this.fatal)throw Error(`Invalid UTF-8 sequence`);n.push(`�`);break}let i=t[r++],a=t[r++],o=t[r++];if((i&192)!=128||(a&192)!=128||(o&192)!=128){if(this.fatal)throw Error(`Invalid UTF-8 sequence`);n.push(`�`);continue}let s=(e&7)<<18|(i&63)<<12|(a&63)<<6|o&63;s>65535?(s-=65536,n.push(String.fromCharCode(55296+(s>>10))),n.push(String.fromCharCode(56320+(s&1023)))):n.push(String.fromCharCode(s));continue}if(this.fatal)throw Error(`Invalid UTF-8 sequence`);n.push(`�`)}return n.join(``)}},Jd=class e extends Uint8Array{static BASE64_CHARS=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`;static BASE64_LOOKUP={};static{for(let t=0;t<e.BASE64_CHARS.length;t++)e.BASE64_LOOKUP[e.BASE64_CHARS[t]]=t}static from(t,n){if(typeof t==`string`)return e.fromString(t,n||`utf8`);if(t instanceof Uint8Array){let n=new Uint8Array(t);return Object.setPrototypeOf(n,e.prototype),n}if(t instanceof ArrayBuffer){let n=new Uint8Array(t);return Object.setPrototypeOf(n,e.prototype),n}if(Array.isArray(t)||t&&typeof t.length==`number`){let n=new Uint8Array(t);return Object.setPrototypeOf(n,e.prototype),n}throw TypeError(`Invalid input type for Buffer.from`)}static fromString(t,n){let r;switch(n.toLowerCase()){case`base64`:r=e.decodeBase64(t);break;case`hex`:r=e.decodeHex(t);break;default:r=e.encodeUtf8(t);break}return Object.setPrototypeOf(r,e.prototype),r}static encodeUtf8(e){let t=[];for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(r>=55296&&r<=56319&&n+1<e.length){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(r=65536+(r-55296<<10)+(t-56320),n++)}r<128?t.push(r):r<2048?(t.push(192|r>>6),t.push(128|r&63)):r<65536?(t.push(224|r>>12),t.push(128|r>>6&63),t.push(128|r&63)):r<1114112&&(t.push(240|r>>18),t.push(128|r>>12&63),t.push(128|r>>6&63),t.push(128|r&63))}return new Uint8Array(t)}static decodeBase64(t){t=t.replace(/\s/g,``);let n=0;t.endsWith(`==`)?n=2:t.endsWith(`=`)&&(n=1);let r=t.length*3/4-n,i=new Uint8Array(r),a=0,o=0;for(;o<t.length;){let n=t[o]===`=`?0:e.BASE64_LOOKUP[t[o]]??0;o++;let s=t[o]===`=`?0:e.BASE64_LOOKUP[t[o]]??0;o++;let c=t[o]===`=`?0:e.BASE64_LOOKUP[t[o]]??0;o++;let l=t[o]===`=`?0:e.BASE64_LOOKUP[t[o]]??0;o++;let u=n<<2|s>>4,d=(s&15)<<4|c>>2,f=(c&3)<<6|l;a<r&&(i[a++]=u),a<r&&(i[a++]=d),a<r&&(i[a++]=f)}return i}static decodeHex(e){if(e=e.replace(/\s/g,``),e.length%2!=0)throw Error(`Invalid hex string length`);let t=new Uint8Array(e.length/2);for(let n=0;n<e.length;n+=2)t[n/2]=parseInt(e.substr(n,2),16);return t}static alloc(t,n,r){let i=new Uint8Array(t);if(n!==void 0){if(typeof n==`number`)i.fill(n);else if(typeof n==`string`){let a=e.from(n,r);for(let e=0;e<t;e++)i[e]=a[e%a.length]}}return Object.setPrototypeOf(i,e.prototype),i}static allocUnsafe(t){let n=new Uint8Array(t);return Object.setPrototypeOf(n,e.prototype),n}static isBuffer(t){return t instanceof e||t instanceof Uint8Array}static concat(t,n){if(t.length===0)return e.alloc(0);n===void 0&&(n=t.reduce((e,t)=>e+t.length,0));let r=e.alloc(n),i=0;for(let e of t){let t=Math.min(e.length,n-i);if(r.set(e.subarray(0,t),i),i+=t,i>=n)break}return r}static compare(e,t){let n=Math.min(e.length,t.length);for(let r=0;r<n;r++)if(e[r]!==t[r])return e[r]<t[r]?-1:1;return e.length<t.length?-1:e.length>t.length?1:0}toString(t,n,r){let i=t||`utf8`,a=this.subarray(n||0,r);switch(i.toLowerCase()){case`base64`:return e.encodeBase64(a);case`hex`:return e.encodeHex(a);default:return e.decodeUtf8(a)}}static decodeUtf8(e){let t=[],n=0;for(;n<e.length;){let r=e[n++];if(r<128){t.push(String.fromCharCode(r));continue}if((r&224)==192){let i=e[n++],a=(r&31)<<6|i&63;t.push(String.fromCharCode(a));continue}if((r&240)==224){let i=e[n++],a=e[n++],o=(r&15)<<12|(i&63)<<6|a&63;t.push(String.fromCharCode(o));continue}if((r&248)==240){let i=e[n++],a=e[n++],o=e[n++],s=(r&7)<<18|(i&63)<<12|(a&63)<<6|o&63;s>65535?(s-=65536,t.push(String.fromCharCode(55296+(s>>10))),t.push(String.fromCharCode(56320+(s&1023)))):t.push(String.fromCharCode(s));continue}t.push(`�`)}return t.join(``)}static encodeBase64(t){let n=``,r=0;for(;r<t.length;){let i=t.length-r,a=t[r++],o=i>1?t[r++]:0,s=i>2?t[r++]:0,c=a>>2,l=(a&3)<<4|o>>4,u=(o&15)<<2|s>>6,d=s&63;n+=e.BASE64_CHARS[c],n+=e.BASE64_CHARS[l],i===1?n+=`==`:i===2?n+=e.BASE64_CHARS[u]+`=`:n+=e.BASE64_CHARS[u]+e.BASE64_CHARS[d]}return n}static encodeHex(e){let t=``;for(let n=0;n<e.length;n++)t+=e[n].toString(16).padStart(2,`0`);return t}compare(t){return e.compare(this,t)}equals(e){if(this.length!==e.length)return!1;for(let t=0;t<this.length;t++)if(this[t]!==e[t])return!1;return!0}write(t,n,r,i){let a=n||0,o=i||`utf8`,s=e.from(t,o),c=Math.min(s.length,r===void 0?this.length-a:r,this.length-a);return this.set(s.subarray(0,c),a),c}},Yd=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Xd=class{static JSON=`json`;static PROTOBUF=`protobuf`;static XML=`xml`;static YAML=`yaml`;static THRIFT=`thrift`;static MESH=`mesh`;encodeString(e){return this.stringify(this.encode(e))}decodeString(e,t){return this.decode(this.uint8ify(e),t)}};Xd=Yd([_(Xd.JSON)],Xd);var Zd=te()?.TextEncoder?new TextEncoder:new Kd,Qd=te()?.TextDecoder?new TextDecoder:new qd,$d=te()?.Buffer?Buffer:Jd,ef=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},tf=class extends Xd{decode(e,t){let n=Qd.decode(e);if(!t||!t.constructor)return JSON.parse(n);let r=JSON.parse(n);if(typeof r!=`object`&&typeof r!=`function`||r==null)return r;switch(t.name){case`Object`:return r}return this.decorateAny(t,r)}decorateAny(e,t){let n=e instanceof ae,r=n?e.raw:e;if(!r)return t;switch(r){case Map:{if(t==null)return{};if(!n||e.parameters.length<1)return t;let r={};for(let n of Object.keys(t))r[this.decorateAny(e.parameters[0],n)]=this.decorateAny(e.parameters[1],t[n]);return r}case Array:return t==null?[]:!n||e.parameters.length<1?t:t.map(t=>this.decorateAny(e.parameters[0],t));case T:{if(t==null)return null;let i=new r;if(!n||e.parameters.length<1)return Object.assign(i,t);Object.assign(i,t);let a=[];for(let t of i.data||[])a.push(this.decorateAny(e.parameters[0],t));return i.data=a,i}case String:case Number:case Boolean:case Object:return t;case Date:return t==null||t<1?null:new Date(t);case Uint8Array:return t==null?null:t instanceof Uint8Array?t:$d.from(t,`base64`);default:{if(t==null)return null;let e=new r;for(let n of Object.keys(e)){let i=h.metadata(ue,r,n);if(!i){Reflect.set(e,n,t[n]);continue}let a=t[n]??t[i.name];Reflect.set(e,n,this.decorateAny(i.kind,a))}return e}}}encode(e){return Zd.encode(JSON.stringify(e,(e,t)=>{if(t==null||Array.isArray(t))return t;if(!h.annotated(t.constructor))return this.encodeAny(t);let n=new Map;for(let e in t){let r=h.metadata(ue,t.constructor,e);r?.name&&r.name.length>0&&r.name!=e&&n.set(e,r.name),(r?.kind==Uint8Array||r?.kind==Date||r?.kind==Map)&&Reflect.set(t,e,this.encodeAny(Reflect.get(t,e)))}if(n.size<1)return this.encodeAny(t);let r={};for(let e in t)r[n.get(e)??e]=t[e];return this.encodeAny(r)}))}encodeAny(e){return e instanceof Uint8Array?$d.from(e).toString(`base64`):e instanceof Date?e.getTime():e instanceof Map?Object.fromEntries(e):e}uint8ify(e){return Zd.encode(e)}stringify(e){return Qd.decode(e)}};tf=ef([_(Xd.JSON)],tf);var nf=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},rf=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},af,of=class{};of=nf([_(`mesh`)],of);function sf(e){return{}}var cf=class extends of{static{af=this}static parameters=new p;static returns=new p;compile(e,t){}intype(e){return af.parameters.computeIfy(e,e=>{var t;class n{attachments=new Map;getAttachments(){return this.attachments}map(){return Object.assign(new Map,this)}setAttachments(e){(e||{}).forEach((e,t)=>this.attachments.set(t,e))}getArguments(){return e.getParameters().map(e=>Object.getOwnPropertyDescriptor(this,e.name)?.value)}setArguments(t){let n=Ce.load(Xd).getDefault();e.getParameters().forEach((e,r)=>{if(t&&t.length>e.index&&!(t[e.index]instanceof Me)){let r=t[e.index];if(r==null)return;if(r instanceof e.kind&&!(e.kind instanceof ae)){Reflect.set(this,e.name,r);return}switch(e.kind){case Map:case Array:case String:case Number:case Boolean:case Object:case Date:case Uint8Array:Reflect.set(this,e.name,r);break;default:let t=n.encode(r),i=n.decode(t,e.kind);Reflect.set(this,e.name,i)}}})}}return nf([g(-1,`attachments`,Map),rf(`design:type`,typeof(t=typeof Map<`u`&&Map)==`function`?t:Object)],n.prototype,`attachments`,void 0),n})}retype(e){return af.returns.computeIfy(e,e=>{class t{code=``;message=``;content;cause;getCause(){return this.cause}getCode(){return this.code}getContent(){return this.content}getMessage(){return this.message}setCause(e){this.cause=e}setCode(e){this.code=e}setContent(e){this.content=e}setMessage(e){this.message=e}}return nf([g(0),rf(`design:type`,String)],t.prototype,`code`,void 0),nf([g(5),rf(`design:type`,String)],t.prototype,`message`,void 0),nf([g(10,`content`,e.getReturnType()),rf(`design:type`,Object)],t.prototype,`content`,void 0),nf([g(15,`cause`,He),rf(`design:type`,Object)],t.prototype,`cause`,void 0),t})}};cf=af=nf([_(`mesh`)],cf);var lf=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},uf=class{static HTTP=`http`;static GRPC=`grpc`;static TCP=`tcp`;static MQTT=`mqtt`};uf=lf([_(uf.HTTP)],uf);var df=class{servers=new ee;availableAddrs=new ee;relativePath=!1;constructor(e){for(let t of(e||``).split(`,`))t&&t.trim().length>0&&!this.availableAddrs.includes(t)&&(this.servers.push(new ff(!0,t)),this.availableAddrs.push(t))}any(){if(this.relativePath)return``;let e=this.availableAddrs;return!e||e.length<1?``:e[Math.floor(Math.random()*e.length)]}relative(e){this.relativePath=e}},ff=class{available;address;constructor(e,t){this.available=e,this.address=t}},pf=class{value;fn;constructor(e){this.fn=e}get(){return this.value??=this.fn(),this.value}reset(e){this.value=e}},X=class e{static substring(e,t,n){return!e||e.length>t+n?``:e.substring(t,t+n)}static repeat(e,t){let n=[];for(let r=0;r<t;++r)n.push(e);return n.join(``)}static anyone(...e){for(let t of e)if(t&&t.length>0)return t;return``}static traceId(){return``}static spanId(e,t){return``}static MESH_ADDRESS=new pf(()=>typeof process<`u`&&process.env.MESH_ADDRESS?new df(process.env.MESH_ADDRESS):globalThis.window===void 0?new df(`http://127.0.0.1:443/`):new df(`${globalThis.location.origin}/`));static newEntity(e){if(!e)return new Mt;let t=Ce.load(Xd),n=new Mt;return n.codec=t.defaultName(),n.schema=``,n.buffer=t.getDefault().encode(e),n}static newCacheEntity(t,n,r){let i=e.newEntity(n),a=new Nt;return a.version=`1.0.0`,a.entity=i,a.timestamp=Date.now(),a.duration=r,a.key=t,a}static readObject(e,t){return!e.buffer||e.buffer.length<1?null:Ce.load(Xd).get(e.codec??Xd.JSON).decode(e.buffer,t)}static compareVersion(e,t){if(!e)return-1;if(!t)return 1;let n=e.split(`.`),r=t.split(`.`);for(let e=0;e<n.length;e++){if(r.length<=e)return 0;if(r[e]==`*`)continue;let t=n[e].localeCompare(r[e]);if(t!=0)return t}return 0}static ofError(e){return new He}static ofCause(e,t,n){throw Error()}static hexString(e){let t=Zd.encode(e),n=`0123456789abcdef`,r=``;for(let e of t){let t=e;r+=n[t>>4],r+=n[t&15]}return r}},mf=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},hf=class e extends Me{traceId=``;spanId=``;timestamp=0;runMode=0;urn=``;consumer=new Jt;calls=0;attachments=new Map;attributes=new Map;principals=new je;static create(){let t=new e;return t.traceId=X.traceId(),t.spanId=X.spanId(``,0),t.timestamp=new Date().getTime(),t.runMode=0,t.urn=``,t.consumer=new Jt,t}getAttachments(){return this.attachments}getAttribute(e){return this.attributes.get(e.name)}getAttributes(){return this.attributes}getConsumer(e){return this.consumer}getPrincipals(){return this.principals}getProvider(e){return new Jt}getRunMode(){return this.runMode}getSpanId(){return this.spanId}getTimestamp(){return this.timestamp}getTraceId(){return this.traceId}getUrn(){return this.urn}setAttribute(e,t){this.attributes.set(e.name,t)}resume(){this.calls++;let t=new e;return t.traceId=this.getTraceId(),t.spanId=X.spanId(this.getSpanId(),this.calls),t.timestamp=this.getTimestamp(),t.runMode=this.getRunMode(),t.urn=this.getUrn(),t.consumer=this.getConsumer(this),this.getAttachments()&&this.getAttachments().forEach((e,n)=>t.attachments.set(e,n)),this.getAttributes()&&this.getAttributes().forEach((e,n)=>t.attributes.set(e,n)),this.getPrincipals()&&this.getPrincipals().forEach(e=>t.principals.push(e)),t}rewriteContext(e){e.getTraceId()&&(this.traceId=e.getTraceId()),e.getSpanId()&&(this.spanId=e.getSpanId()),e.getTimestamp()&&e.getTimestamp()>0&&(this.timestamp=e.getTimestamp()),e.getRunMode()&&e.getRunMode()>0&&(this.runMode=e.getRunMode()),e.getUrn()&&(this.urn=e.getUrn()),e.getConsumer(this)&&(this.consumer=e.getConsumer(this)),this.getAttachments()&&this.getAttachments().forEach((e,t)=>this.attachments.set(e,t)),this.getAttributes()&&this.getAttributes().forEach((e,t)=>this.attributes.set(e,t)),this.getPrincipals()&&this.getPrincipals().forEach(e=>this.principals.push(e))}rewriteURN(e){this.urn=e}},gf=class extends Pe{context(){return hf.create()}};gf=mf([_(`mesh`)],gf);var _f=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},vf=class{};vf=_f([_(`mesh`)],vf);var yf=class{static REMOTE=new Ae(`mesh.mpc.address`);static REMOTE_NAME=new Ae(`mesh.mpc.remote.name`);static INVOCATION=new Ae(`mesh.invocation`);static UNAME=new Ae(`mesh.mpc.uname`);static CONSUMER=new Ae(`mesh.mpc.consumer`);static CODEC=new Ae(`mesh.mpc.codec`);static TIMEOUT=new Ae(`mesh.mpc.timeout`)},bf=class{code;name;constructor(e,t){this.code=e,this.name=t}},xf=class e{static HTTP=new bf(`00`,uf.HTTP);static GRPC=new bf(`01`,uf.GRPC);static MQTT=new bf(`02`,uf.MQTT);static TCP=new bf(`03`,uf.TCP);static JSON=new bf(`00`,Xd.JSON);static PROTOBUF=new bf(`01`,Xd.PROTOBUF);static XML=new bf(`02`,Xd.XML);static THRIFT=new bf(`03`,Xd.THRIFT);static YAML=new bf(`04`,Xd.YAML);static PROTO=[e.HTTP,e.GRPC,e.MQTT,e.TCP];static CODEC=[e.JSON,e.PROTOBUF,e.XML,e.THRIFT,e.YAML];static ofProto(t){for(let n of e.PROTO)if(n.code==t)return n;return e.HTTP}static ofCodec(t){for(let n of e.CODEC)if(n.code==t)return n;return e.JSON}static ofName(t){for(let n of e.PROTO)if(n.name==t)return n;for(let n of e.CODEC)if(n.name==t)return n;return e.HTTP}},Sf=e=>{let t=S();return t.setAttribute(yf.CONSUMER,Ce.load(uf).get(e)),t},Cf=e=>{let t=S();return t.setAttribute(yf.CODEC,Ce.load(Xd).get(e)),t},wf=class{inspector;reference;service;constructor(e,t){this.reference=new $n,this.reference.urn=t.toString(),this.reference.namespace=``,this.reference.name=t.name,this.reference.version=t.flag.version,this.reference.proto=xf.ofProto(t.flag.proto).name,this.reference.codec=xf.ofCodec(t.flag.codec).name,this.reference.flags=0,this.reference.timeout=parseInt(Ne.MESH_TIMEOUT.get(e))||1e4,this.reference.retries=3,this.reference.mdc=t.mdc,this.reference.zone=t.flag.zone,this.reference.cluster=t.flag.cluster,this.reference.cell=t.flag.cell,this.reference.group=t.flag.group,this.reference.address=t.flag.address,this.service=new er,this.inspector=new Tf(t)}inflect(e){return new Ef}inspect(e){return this.inspector}intype(e){return Ef}reflect(e){return new Df}retype(e){return Df}schema(e){return this.reference}},Tf=class{urn;constructor(e){this.urn=e}getType(){return Object}getAnnotation(e){}getName(){return this.urn.name}getParameters(){return[]}getReturnType(){return new ae(Map)}getExecutable(){return()=>{}}getSymbol(){return this.urn.name}invoke(e,t){}},Ef=class extends Map{map(){return this}getArguments(){let e=[];return super.forEach((t,n)=>{n!=`attachments`&&e.push(t)}),e}getAttachments(){let e=Object.getOwnPropertyDescriptor(this,`attachments`)?.value||new Map;if(e instanceof Map)return e;let t=Ce.load(Xd).get(Xd.JSON),n=t.decode(t.encode(e),Map);return this.setAttachments(n),n}setArguments(e){}setAttachments(e){Object.assign(this,{attachments:He})}},Df=class extends Map{getCause(){let e=Object.getOwnPropertyDescriptor(this,`cause`)?.value;if(!e||e instanceof He)return e;let t=Ce.load(Xd).get(Xd.JSON);return t.decode(t.encode(e),He)}getCode(){return Object.getOwnPropertyDescriptor(this,`code`)?.value}getContent(){return Object.getOwnPropertyDescriptor(this,`content`)?.value}getMessage(){return Object.getOwnPropertyDescriptor(this,`message`)?.value||``}setCause(e){Object.assign(this,{cause:e})}setCode(e){Object.assign(this,{code:e})}setContent(e){Object.assign(this,{content:e})}setMessage(e){Object.assign(this,{message:e})}},Of=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},kf=`PROVIDER`,Af=`CONSUMER`,jf=class{};jf=Of([_(`*`)],jf);function Mf(e,t){return Nf(e,Ce.load(jf).list().filter(e=>{let n=h.metadata(de,e?.constructor,e?.constructor);return!n||n.pattern==``||n?.pattern==t}).sort((e,t)=>{let n=h.metadata(de,e?.constructor,e?.constructor)?.priority||0,r=h.metadata(de,t?.constructor,t?.constructor)?.priority||0;return n==r?0:n<r?-1:1}))}function Nf(e,t){let n=e;for(let e=t.length-1;e>=0;e--){let r=t[e],i=n;n=new class{run(e,t){return r.invoke(e,i,t)}}}return n}var Pf=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Ff=class{beforeHooks=new p;successHooks=new p;failureHooks=new p},If=()=>{let e=te();return e.Mesh??=new Ff,e.Mesh},Lf=new class{onBefore(e,t){If().beforeHooks.set(e,t)}onSuccess(e,t){If().successHooks.set(e,t)}onFailure(e,t){If().failureHooks.set(e,t)}before(){return If().beforeHooks}success(){return If().successHooks}failure(){return If().failureHooks}},Rf=class extends jf{async invoke(e,t,n){try{for(let[t,r]of Lf.before())await r(e,n);let r=await t.run(e,n);for(let[t,i]of Lf.success())await i(e,n,r);return r}catch(t){for(let[r,i]of Lf.failure())Ee(t)?await i(e,n,t):await i(e,n,x.SYSTEM_ERROR);throw t}}};Rf=Pf([_(`hook`,Af)],Rf);var zf=class{proxy;inspector;parameters;execution;constructor(e,t,n,r){this.proxy=e,this.inspector=t,this.parameters=n,this.execution=r}getArguments(e){return this.parameters.getArguments()}getAttachments(e){return this.parameters.getAttachments()}getExecution(e){return this.execution}getInspector(e){return this.inspector}getParameters(e){return this.parameters}getProxy(e){return this.proxy}isAsync(e){return!1}},Bf=class e{static CN=`firmer`;static MESH_DOMAIN=this.CN+`.tech`;static LocalMDC=`XX00000000000000`;domain=``;mdc=``;flag=new Vf;name=``;static from(t){let n=new e;if(!t)return console.log(`Unresolved urn ${t}`),n;let r=n.asArray(t);return r.length<5?(console.log(`Unresolved urn ${t}`),n):(r.reverse(),n.domain=`${r.splice(1,1).join(``)}.${r.splice(0,1).join(``)}`,n.mdc=r.splice(0,1).join(``),n.flag=Vf.from(r.splice(0,1).join(``)),n.name=r.join(`.`),n)}static urn(t){let n=new e;return n.mdc=this.LocalMDC,n.flag=Vf.from(`0001000000000000000000000000000000000`),n.name=t,n.domain=this.MESH_DOMAIN,n}proto(e){return this.flag.proto=e,this}codec(e){return this.flag.codec=e,this}toString(){let t=[],n=this.asArray(this.name);return n.reverse(),n.filter(e=>e).forEach(e=>t.push(e)),t.push(this.flag.toString()),t.push(this.mdc),t.push(X.anyone(this.domain,e.MESH_DOMAIN)),t.join(`.`)}asArray(e){let t=e.split(`.`),n=[],r=[];for(let e of t){if(e.startsWith("${")){r.push(e),r.push(`.`);continue}if(e.endsWith(`}`)){r.push(e),n.push(r.join(``)),r.splice(0,r.length);continue}n.push(e)}return n}matchName(e){return e?e.endsWith(`.*`)&&e.startsWith(e.replace(`.*`,``)):!1}resetFlag(e,t){return this.flag.proto=e,this.flag.codec=t,this}},Vf=class e{v=`00`;proto=`00`;codec=`00`;version=`000000`;zone=`00`;cluster=`00`;cell=`00`;group=`00`;address=`000000000000`;port=`00000`;static from(t){if(!t)return new e;let n=new e;return n.v=X.substring(t,0,2),n.proto=X.substring(t,2,2),n.codec=X.substring(t,4,2),n.version=this.reduce(X.substring(t,6,6),2),n.zone=X.substring(t,12,2),n.cluster=X.substring(t,14,2),n.cell=X.substring(t,16,2),n.group=X.substring(t,18,2),n.address=this.reduce(X.substring(t,20,12),3),n.port=this.reduce(X.substring(t,32,5),5),n}toString(){return`${this.padding(X.anyone(this.v,``),2)}${this.padding(X.anyone(this.proto,``),2)}${this.padding(X.anyone(this.codec,``),2)}${this.paddingChain(X.anyone(this.version,``),2,3)}${this.padding(X.anyone(this.zone,``),2)}${this.padding(X.anyone(this.cluster,``),2)}${this.padding(X.anyone(this.cell,``),2)}${this.padding(X.anyone(this.group,``),2)}${this.paddingChain(X.anyone(this.address,``),3,4)}${this.padding(X.anyone(this.port,``),5)}`}padding(e,t){let n=e.replace(`.`,``);return n.length==t?n:n.length<t?X.repeat(`0`,t-e.length)+n:e.substring(0,t)}paddingChain(e,t,n){let r=e.split(`[.*]`),i=r.map(e=>parseInt(e)?e:``);if(i.length==n)return i.map(e=>this.padding(e,t)).join(``);if(i.length<n){for(let e=0;e<n-r.length;e++)i.push(``);return i.map(e=>this.padding(e,t)).join(``)}return i.slice(0,n).map(e=>this.padding(e,t)).join(``)}static reduce(e,t){if(!e)return e;let n=[];for(let r=0;r<e.length;r+=t){let i=!0;for(let a=r;a<r+t;a++)e.charAt(a)!=`0`&&(i=!1),i||n.push(e.charAt(a));i&&n.push(`0`),n.push(`.`)}return n.slice(0,n.length-1).join(``)}},Hf=class{placeholder="${mesh.name}";macro;invoker;constructor(e){this.macro=e,this.invoker=Mf(this,Af)}context(e){if(!e||e.length<1)return S();for(let t of e)if(t instanceof Me)return t;return S()}invoke(e,t,n){return new Promise(async(e,r)=>{try{let r=this.context(n),i=this.referExecution(r,t),a=this.rewriteURN(r,i);r.rewriteURN(a),r.setAttribute(yf.REMOTE,this.rewriteAddress(r,a));let o=i.inflect(r);o.setArguments(n),o.setAttachments(new Map);let s=new zf(this,t,o,i);r.setAttribute(yf.INVOCATION,s),e(await this.invoker.run(r,s))}catch(e){r(De.errorf(e))}})}async run(e,t){let n=this.referExecution(e,t.getInspector(e)),r=Ce.load(uf),i=e.getAttribute(yf.CONSUMER)??r.getDefault(),a=X.anyone(e.getAttribute(yf.REMOTE),X.MESH_ADDRESS.get().any()),o=n.schema(e).codec||xf.JSON.name,s=Ce.load(Xd),c=e.getAttribute(yf.CODEC)??s.get(o),l=c.encode(t.getParameters(e)),u=xf.ofName(r.defaultName()).code,d=xf.ofName(s.defaultName()).code,f=Bf.from(e.getUrn()).resetFlag(u,d).toString();if(n.schema(e).flags&16)return this.sse(e,n,c,i,a,f,l);let p=await i.consume(e,a,f,n,l);return await this.deserialize(e,n,c,p)}async*sse(e,t,n,r,i,a,o){for await(let s of r.consumes(e,i,a,t,o)){let r=t.retype(e),i=n.decode(s,r);if(i.getCause())throw De.errorf(i.getCause());if(x.AckFin.getCode()==i.getCode())break;if(x.SUCCESS.getCode()!=i.getCode())throw new b(i.getCode(),i.getMessage());yield i.getContent()}}deserialize(e,t,n,r){return new Promise((i,a)=>{try{let o=t.retype(e),s=n.decode(r,o);if(s.getCause()){a(De.errorf(s.getCause()));return}if(x.SUCCESS.getCode()!=s.getCode()){a(new b(s.getCode(),s.getMessage()));return}i(s.getContent())}catch(e){a(De.errorf(e))}})}referExecution(e,t){let n=Ce.load(vf).getDefault().refer(e,t.getAnnotation(fe),t.getType(),t);if(n)return n;throw Error(`Method ${t.getName()} cant be compatible`)}rewriteURN(e,t){let n=e.getPrincipals().peek()?.id,r=e.getAttribute(yf.UNAME),i=e.getAttribute(yf.REMOTE_NAME);if(!n&&!r&&!i&&!t.schema(e).urn.includes(this.placeholder))return t.schema(e).urn;let a=Bf.from(t.schema(e).urn);return n&&n!=``&&(a.mdc=n),r&&r!=``&&(a.name=r),i&&i!=``&&(a.name=a.name.replace(this.placeholder,i)),a.name.includes(this.placeholder)&&(a.name=a.name.replace(this.placeholder,`mesh`)),a.toString()}rewriteAddress(e,t){let n=e.getAttribute(yf.REMOTE);return n&&n!=``?n:X.MESH_ADDRESS.get().any()}},Uf=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Wf,Z=Wf=class extends ge{proxy(e){return Wf.proxy(e)}static proxy(e){return this.doProxy(e,v(``))}static doProxy(e,t){return be.newProxyInstance(e,new Hf(t))}};Z=Wf=Uf([_(`mesh`)],Z);var Gf=class{service;constructor(e){this.service=e}run(e,t){return new Promise((n,r)=>{try{let i=[e,...t.getArguments(e)],a=t.getInspector(e).invoke(this.service,i);if(a instanceof Promise){a.then(e=>n(e)).catch(e=>r(e));return}n(a)}catch(e){r(e)}})}},Kf=class{invoker;constructor(e){this.invoker=Mf(new Gf(e),kf)}run(e,t){return this.invoker.run(e,t)}},qf=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},Jf=class{constructor(e,t,n){this.making=e,this.kind=t,this.service=n}making;kind;service},Yf=class{metadata;reference;proxy;constructor(e,t){this.metadata=e,this.reference=t,this.proxy=Z.doProxy(t,e)}},Xf=class{urn;kind;method;target;resource;inspector;invoker;__intype;__retype;constructor(e,t,n,r,i){this.urn=e,this.kind=t,this.method=n,this.target=r,this.resource=i,this.inspector=n,this.invoker=new Kf(r),this.__intype=Ce.load(of).getDefault().intype(n),this.__retype=Ce.load(of).getDefault().retype(n)}inflect(e){return new this.__intype}inspect(e){return this.inspector}intype(e){return this.__intype}reflect(e){return new this.__retype}retype(e){return this.__retype}schema(e){return this.resource}},Zf=class extends vf{providers=new p;consumers=new p;indies=new p;services=new p;references=new p;define(e,t,n){return this.makeConsumer(e,t,n).proxy}store(e,t,n){this.providers.set(t,new Jf(!1,t,n))}infer(e,t){let n=Bf.from(t),r=this.makeServiceExecution(this.getEnviron(e)),i=r?.get(n.name);if(i)return i;for(let e of r.entries())if(n.matchName(e[0]))return e[1];return new wf(e,n)}refer(e,t,n,r){let i=this.makeConsumer(e,t,n),a=this.getEnviron(e),o=this.indies.computeIfy(n,e=>new p).computeIfy(t,r=>{let o=new p;return this.getMethods(e,n).forEach((e,r)=>e.forEach(e=>{let s=this.makeMethodAsReference(a,t,r,e),c=new Xf(s.urn,n,e,i.proxy,s);this.references.set(s.urn,c),o.set(e,c)})),o}).get(r);if(o)return o;throw Error(`Method ${r.getName()} cant be compatible`)}inferTypes(e){let t=[];for(let e of this.providers)t.push(e[1].kind);return t}referTypes(e){let t=[];for(let e of this.consumers.keys())t.push(e);return t}makeConsumer(e,t,n){return this.consumers.computeIfy(n,e=>new p).computeIfy(t,e=>new Yf(t,n))}makeMethodAsReference(e,t,n,r){let i=new $n;return i.namespace=n.name,i.name=r.getName(),i.version=r.getAnnotation(fe)?.version||``,i.proto=r.getAnnotation(fe)?.proto||``,i.codec=r.getAnnotation(fe)?.codec||``,i.flags=r.getAnnotation(fe)?.flags||0,i.timeout=r.getAnnotation(fe)?.timeout||12e3,i.retries=r.getAnnotation(fe)?.retries||0,i.mdc=r.getAnnotation(fe)?.mdc||``,i.zone=r.getAnnotation(fe)?.zone||``,i.cluster=r.getAnnotation(fe)?.cluster||``,i.cell=r.getAnnotation(fe)?.cell||``,i.group=r.getAnnotation(fe)?.group||``,i.address=r.getAnnotation(fe)?.address||``,i.urn=this.getURN(r.getAnnotation(fe)?.name||``,er,e),i}getURN(e,t,n){let r=new Bf;return r.domain=Bf.MESH_DOMAIN,r.mdc=X.anyone(t.mdc,n.mdc),r.name=e,r.flag=this.getURNFlag(t),r.toString()}getURNFlag(e){let t=(e.address||``).split(`:`),n=new Vf;return n.v=`00`,n.proto=xf.ofName(e.proto).code,n.codec=xf.ofName(e.codec).code,n.version=e.version,n.zone=e.zone,n.cluster=e.cluster,n.cell=e.cell,n.group=e.group,n.address=t.length>0?t[0]:``,n.port=t.length>1?t[1]:``,n}getMethods(e,t){let n=be.getMethods(t),r=new p;return r.set(t,n),r}getEnviron(e){let t=new Wt;return t.mdc=Bf.LocalMDC,t}makeServiceExecution(e){for(let e of this.providers)if(e[1].making)continue;return this.services}};Zf=qf([_(`mesh`)],Zf);var Qf=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},$f=`mock`,ep=class extends jf{async invoke(e,t,n){if(!ke.Mock.matches(e.getRunMode())&&!re.Mock.enable())return await t.run(e,n);let r=Ce.load(n.getInspector(e).getType()).want($f);if(!r)return await t.run(e,n);let i=r[n.getInspector(e).getName()];return!i||typeof i!=`function`?await t.run(e,n):await i(n.getArguments(e))}};ep=Qf([_($f,Af)],ep);var tp=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},np=class{};np=tp([_(uf.GRPC)],np);var rp=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},ip=class extends uf{start(){}close(){}consume(e,t,n,r,i){return Promise.reject(x.URN_NOT_PERMIT)}async*consumes(e,t,n,r,i){throw x.URN_NOT_PERMIT}};ip=rp([_(uf.GRPC)],ip);var ap=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},op=class extends np{start(){}close(){}};op=ap([_(uf.GRPC)],op);function sp(e,t){return function(){return e.apply(t,arguments)}}var{toString:cp}=Object.prototype,{getPrototypeOf:lp}=Object,{iterator:up,toStringTag:dp}=Symbol,fp=(e=>t=>{let n=cp.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),pp=e=>(e=e.toLowerCase(),t=>fp(t)===e),mp=e=>t=>typeof t===e,{isArray:hp}=Array,gp=mp(`undefined`);function _p(e){return e!==null&&!gp(e)&&e.constructor!==null&&!gp(e.constructor)&&xp(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var vp=pp(`ArrayBuffer`);function yp(e){let t;return t=typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&vp(e.buffer),t}var bp=mp(`string`),xp=mp(`function`),Sp=mp(`number`),Cp=e=>typeof e==`object`&&!!e,wp=e=>e===!0||e===!1,Tp=e=>{if(fp(e)!==`object`)return!1;let t=lp(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(dp in e)&&!(up in e)},Ep=e=>{if(!Cp(e)||_p(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Dp=pp(`Date`),Op=pp(`File`),kp=e=>!!(e&&e.uri!==void 0),Ap=e=>e&&e.getParts!==void 0,jp=pp(`Blob`),Mp=pp(`FileList`),Np=e=>Cp(e)&&xp(e.pipe);function Pp(){return typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{}}var Fp=Pp(),Ip=Fp.FormData===void 0?void 0:Fp.FormData,Lp=e=>{let t;return e&&(Ip&&e instanceof Ip||xp(e.append)&&((t=fp(e))===`formdata`||t===`object`&&xp(e.toString)&&e.toString()===`[object FormData]`))},Rp=pp(`URLSearchParams`),[zp,Bp,Vp,Hp]=[`ReadableStream`,`Request`,`Response`,`Headers`].map(pp),Up=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``);function Wp(e,t,{allOwnKeys:n=!1}={}){if(e==null)return;let r,i;if(typeof e!=`object`&&(e=[e]),hp(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(_p(e))return;let i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length,o;for(r=0;r<a;r++)o=i[r],t.call(null,e[o],o,e)}}function Gp(e,t){if(_p(e))return null;t=t.toLowerCase();let n=Object.keys(e),r=n.length,i;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}var Kp=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:global,qp=e=>!gp(e)&&e!==Kp;function Jp(){let{caseless:e,skipUndefined:t}=qp(this)&&this||{},n={},r=(r,i)=>{if(i===`__proto__`||i===`constructor`||i===`prototype`)return;let a=e&&Gp(n,i)||i;Tp(n[a])&&Tp(r)?n[a]=Jp(n[a],r):Tp(r)?n[a]=Jp({},r):hp(r)?n[a]=r.slice():(!t||!gp(r))&&(n[a]=r)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&Wp(arguments[e],r);return n}var Yp=(e,t,n,{allOwnKeys:r}={})=>(Wp(t,(t,r)=>{n&&xp(t)?Object.defineProperty(e,r,{value:sp(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),Xp=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Zp=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,`constructor`,{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,`super`,{value:t.prototype}),n&&Object.assign(e.prototype,n)},Qp=(e,t,n,r)=>{let i,a,o,s={};if(t||={},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&lp(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},$p=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return r!==-1&&r===n},em=e=>{if(!e)return null;if(hp(e))return e;let t=e.length;if(!Sp(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},tm=(e=>t=>e&&t instanceof e)(typeof Uint8Array<`u`&&lp(Uint8Array)),nm=(e,t)=>{let n=(e&&e[up]).call(e),r;for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},rm=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},im=pp(`HTMLFormElement`),am=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),om=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),sm=pp(`RegExp`),cm=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};Wp(n,(n,i)=>{let a;(a=t(n,i,e))!==!1&&(r[i]=a||n)}),Object.defineProperties(e,r)},lm=e=>{cm(e,(t,n)=>{if(xp(e)&&[`arguments`,`caller`,`callee`].indexOf(n)!==-1)return!1;let r=e[n];if(xp(r)){if(t.enumerable=!1,`writable`in t){t.writable=!1;return}t.set||=()=>{throw Error(`Can not rewrite read-only method '`+n+`'`)}}})},um=(e,t)=>{let n={},r=e=>{e.forEach(e=>{n[e]=!0})};return hp(e)?r(e):r(String(e).split(t)),n},dm=()=>{},fm=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function pm(e){return!!(e&&xp(e.append)&&e[dp]===`FormData`&&e[up])}var mm=e=>{let t=Array(10),n=(e,r)=>{if(Cp(e)){if(t.indexOf(e)>=0)return;if(_p(e))return e;if(!(`toJSON`in e)){t[r]=e;let i=hp(e)?[]:{};return Wp(e,(e,t)=>{let a=n(e,r+1);!gp(a)&&(i[t]=a)}),t[r]=void 0,i}}return e};return n(e,0)},hm=pp(`AsyncFunction`),gm=e=>e&&(Cp(e)||xp(e))&&xp(e.then)&&xp(e.catch),_m=((e,t)=>e?setImmediate:t?((e,t)=>(Kp.addEventListener(`message`,({source:n,data:r})=>{n===Kp&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),Kp.postMessage(e,`*`)}))(`axios@${Math.random()}`,[]):e=>setTimeout(e))(typeof setImmediate==`function`,xp(Kp.postMessage)),Q={isArray:hp,isArrayBuffer:vp,isBuffer:_p,isFormData:Lp,isArrayBufferView:yp,isString:bp,isNumber:Sp,isBoolean:wp,isObject:Cp,isPlainObject:Tp,isEmptyObject:Ep,isReadableStream:zp,isRequest:Bp,isResponse:Vp,isHeaders:Hp,isUndefined:gp,isDate:Dp,isFile:Op,isReactNativeBlob:kp,isReactNative:Ap,isBlob:jp,isRegExp:sm,isFunction:xp,isStream:Np,isURLSearchParams:Rp,isTypedArray:tm,isFileList:Mp,forEach:Wp,merge:Jp,extend:Yp,trim:Up,stripBOM:Xp,inherits:Zp,toFlatObject:Qp,kindOf:fp,kindOfTest:pp,endsWith:$p,toArray:em,forEachEntry:nm,matchAll:rm,isHTMLForm:im,hasOwnProperty:om,hasOwnProp:om,reduceDescriptors:cm,freezeMethods:lm,toObjectSet:um,toCamelCase:am,noop:dm,toFiniteNumber:fm,findKey:Gp,global:Kp,isContextDefined:qp,isSpecCompliantForm:pm,toJSONObject:mm,isAsyncFn:hm,isThenable:gm,setImmediate:_m,asap:typeof queueMicrotask<`u`?queueMicrotask.bind(Kp):typeof process<`u`&&process.nextTick||_m,isIterable:e=>e!=null&&xp(e[up])},$=class e extends Error{static from(t,n,r,i,a,o){let s=new e(t.message,n||t.code,r,i,a);return s.cause=t,s.name=t.name,t.status!=null&&s.status==null&&(s.status=t.status),o&&Object.assign(s,o),s}constructor(e,t,n,r,i){super(e),Object.defineProperty(this,`message`,{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name=`AxiosError`,this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Q.toJSONObject(this.config),code:this.code,status:this.status}}};$.ERR_BAD_OPTION_VALUE=`ERR_BAD_OPTION_VALUE`,$.ERR_BAD_OPTION=`ERR_BAD_OPTION`,$.ECONNABORTED=`ECONNABORTED`,$.ETIMEDOUT=`ETIMEDOUT`,$.ERR_NETWORK=`ERR_NETWORK`,$.ERR_FR_TOO_MANY_REDIRECTS=`ERR_FR_TOO_MANY_REDIRECTS`,$.ERR_DEPRECATED=`ERR_DEPRECATED`,$.ERR_BAD_RESPONSE=`ERR_BAD_RESPONSE`,$.ERR_BAD_REQUEST=`ERR_BAD_REQUEST`,$.ERR_CANCELED=`ERR_CANCELED`,$.ERR_NOT_SUPPORT=`ERR_NOT_SUPPORT`,$.ERR_INVALID_URL=`ERR_INVALID_URL`;function vm(e){return Q.isPlainObject(e)||Q.isArray(e)}function ym(e){return Q.endsWith(e,`[]`)?e.slice(0,-2):e}function bm(e,t,n){return e?e.concat(t).map(function(e,t){return e=ym(e),!n&&t?`[`+e+`]`:e}).join(n?`.`:``):t}function xm(e){return Q.isArray(e)&&!e.some(vm)}var Sm=Q.toFlatObject(Q,{},null,function(e){return/^is[A-Z]/.test(e)});function Cm(e,t,n){if(!Q.isObject(e))throw TypeError(`target must be an object`);t||=new FormData,n=Q.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!Q.isUndefined(t[e])});let r=n.metaTokens,i=n.visitor||l,a=n.dots,o=n.indexes,s=(n.Blob||typeof Blob<`u`&&Blob)&&Q.isSpecCompliantForm(t);if(!Q.isFunction(i))throw TypeError(`visitor must be a function`);function c(e){if(e===null)return``;if(Q.isDate(e))return e.toISOString();if(Q.isBoolean(e))return e.toString();if(!s&&Q.isBlob(e))throw new $(`Blob is not supported. Use a Buffer instead.`);return Q.isArrayBuffer(e)||Q.isTypedArray(e)?s&&typeof Blob==`function`?new Blob([e]):Buffer.from(e):e}function l(e,n,i){let s=e;if(Q.isReactNative(t)&&Q.isReactNativeBlob(e))return t.append(bm(i,n,a),c(e)),!1;if(e&&!i&&typeof e==`object`){if(Q.endsWith(n,`{}`))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Q.isArray(e)&&xm(e)||(Q.isFileList(e)||Q.endsWith(n,`[]`))&&(s=Q.toArray(e)))return n=ym(n),s.forEach(function(e,r){!(Q.isUndefined(e)||e===null)&&t.append(o===!0?bm([n],r,a):o===null?n:n+`[]`,c(e))}),!1}return vm(e)?!0:(t.append(bm(i,n,a),c(e)),!1)}let u=[],d=Object.assign(Sm,{defaultVisitor:l,convertValue:c,isVisitable:vm});function f(e,n){if(!Q.isUndefined(e)){if(u.indexOf(e)!==-1)throw Error(`Circular reference detected in `+n.join(`.`));u.push(e),Q.forEach(e,function(e,r){(!(Q.isUndefined(e)||e===null)&&i.call(t,e,Q.isString(r)?r.trim():r,n,d))===!0&&f(e,n?n.concat(r):[r])}),u.pop()}}if(!Q.isObject(e))throw TypeError(`data must be an object`);return f(e),t}function wm(e){let t={"!":`%21`,"'":`%27`,"(":`%28`,")":`%29`,"~":`%7E`,"%20":`+`,"%00":`\0`};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function Tm(e,t){this._pairs=[],e&&Cm(e,this,t)}var Em=Tm.prototype;Em.append=function(e,t){this._pairs.push([e,t])},Em.toString=function(e){let t=e?function(t){return e.call(this,t,wm)}:wm;return this._pairs.map(function(e){return t(e[0])+`=`+t(e[1])},``).join(`&`)};function Dm(e){return encodeURIComponent(e).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`).replace(/%20/g,`+`)}function Om(e,t,n){if(!t)return e;let r=n&&n.encode||Dm,i=Q.isFunction(n)?{serialize:n}:n,a=i&&i.serialize,o;if(o=a?a(t,i):Q.isURLSearchParams(t)?t.toString():new Tm(t,i).toString(r),o){let t=e.indexOf(`#`);t!==-1&&(e=e.slice(0,t)),e+=(e.indexOf(`?`)===-1?`?`:`&`)+o}return e}var km=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&=[]}forEach(e){Q.forEach(this.handlers,function(t){t!==null&&e(t)})}},Am={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},jm={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<`u`?URLSearchParams:Tm,FormData:typeof FormData<`u`?FormData:null,Blob:typeof Blob<`u`?Blob:null},protocols:[`http`,`https`,`file`,`blob`,`url`,`data`]},Mm=u({hasBrowserEnv:()=>Nm,hasStandardBrowserEnv:()=>Fm,hasStandardBrowserWebWorkerEnv:()=>Im,navigator:()=>Pm,origin:()=>Lm}),Nm=typeof window<`u`&&typeof document<`u`,Pm=typeof navigator==`object`&&navigator||void 0,Fm=Nm&&(!Pm||[`ReactNative`,`NativeScript`,`NS`].indexOf(Pm.product)<0),Im=typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope&&typeof self.importScripts==`function`,Lm=Nm&&window.location.href||`http://localhost`,Rm={...Mm,...jm};function zm(e,t){return Cm(e,new Rm.classes.URLSearchParams,{visitor:function(e,t,n,r){return Rm.isNode&&Q.isBuffer(e)?(this.append(t,e.toString(`base64`)),!1):r.defaultVisitor.apply(this,arguments)},...t})}function Bm(e){return Q.matchAll(/\w+|\[(\w*)]/g,e).map(e=>e[0]===`[]`?``:e[1]||e[0])}function Vm(e){let t={},n=Object.keys(e),r,i=n.length,a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}function Hm(e){function t(e,n,r,i){let a=e[i++];if(a===`__proto__`)return!0;let o=Number.isFinite(+a),s=i>=e.length;return a=!a&&Q.isArray(r)?r.length:a,s?(Q.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!o):((!r[a]||!Q.isObject(r[a]))&&(r[a]=[]),t(e,n,r[a],i)&&Q.isArray(r[a])&&(r[a]=Vm(r[a])),!o)}if(Q.isFormData(e)&&Q.isFunction(e.entries)){let n={};return Q.forEachEntry(e,(e,r)=>{t(Bm(e),r,n,0)}),n}return null}function Um(e,t,n){if(Q.isString(e))try{return(t||JSON.parse)(e),Q.trim(e)}catch(e){if(e.name!==`SyntaxError`)throw e}return(n||JSON.stringify)(e)}var Wm={transitional:Am,adapter:[`xhr`,`http`,`fetch`],transformRequest:[function(e,t){let n=t.getContentType()||``,r=n.indexOf(`application/json`)>-1,i=Q.isObject(e);if(i&&Q.isHTMLForm(e)&&(e=new FormData(e)),Q.isFormData(e))return r?JSON.stringify(Hm(e)):e;if(Q.isArrayBuffer(e)||Q.isBuffer(e)||Q.isStream(e)||Q.isFile(e)||Q.isBlob(e)||Q.isReadableStream(e))return e;if(Q.isArrayBufferView(e))return e.buffer;if(Q.isURLSearchParams(e))return t.setContentType(`application/x-www-form-urlencoded;charset=utf-8`,!1),e.toString();let a;if(i){if(n.indexOf(`application/x-www-form-urlencoded`)>-1)return zm(e,this.formSerializer).toString();if((a=Q.isFileList(e))||n.indexOf(`multipart/form-data`)>-1){let t=this.env&&this.env.FormData;return Cm(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||r?(t.setContentType(`application/json`,!1),Um(e)):e}],transformResponse:[function(e){let t=this.transitional||Wm.transitional,n=t&&t.forcedJSONParsing,r=this.responseType===`json`;if(Q.isResponse(e)||Q.isReadableStream(e))return e;if(e&&Q.isString(e)&&(n&&!this.responseType||r)){let n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n)throw e.name===`SyntaxError`?$.from(e,$.ERR_BAD_RESPONSE,this,null,this.response):e}}return e}],timeout:0,xsrfCookieName:`XSRF-TOKEN`,xsrfHeaderName:`X-XSRF-TOKEN`,maxContentLength:-1,maxBodyLength:-1,env:{FormData:Rm.classes.FormData,Blob:Rm.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:`application/json, text/plain, */*`,"Content-Type":void 0}}};Q.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`],e=>{Wm.headers[e]={}});var Gm=Q.toObjectSet([`age`,`authorization`,`content-length`,`content-type`,`etag`,`expires`,`from`,`host`,`if-modified-since`,`if-unmodified-since`,`last-modified`,`location`,`max-forwards`,`proxy-authorization`,`referer`,`retry-after`,`user-agent`]),Km=e=>{let t={},n,r,i;return e&&e.split(`
2
+ `).forEach(function(e){i=e.indexOf(`:`),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!(!n||t[n]&&Gm[n])&&(n===`set-cookie`?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+`, `+r:r)}),t},qm=Symbol(`internals`);function Jm(e){return e&&String(e).trim().toLowerCase()}function Ym(e){return e===!1||e==null?e:Q.isArray(e)?e.map(Ym):String(e)}function Xm(e){let t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}var Zm=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Qm(e,t,n,r,i){if(Q.isFunction(r))return r.call(this,t,n);if(i&&(t=n),Q.isString(t)){if(Q.isString(r))return t.indexOf(r)!==-1;if(Q.isRegExp(r))return r.test(t)}}function $m(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function eh(e,t){let n=Q.toCamelCase(` `+t);[`get`,`set`,`has`].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}var th=class{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function i(e,t,n){let i=Jm(t);if(!i)throw Error(`header name must be a non-empty string`);let a=Q.findKey(r,i);(!a||r[a]===void 0||n===!0||n===void 0&&r[a]!==!1)&&(r[a||t]=Ym(e))}let a=(e,t)=>Q.forEach(e,(e,n)=>i(e,n,t));if(Q.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(Q.isString(e)&&(e=e.trim())&&!Zm(e))a(Km(e),t);else if(Q.isObject(e)&&Q.isIterable(e)){let n={},r,i;for(let t of e){if(!Q.isArray(t))throw TypeError(`Object iterator must return a key-value pair`);n[i=t[0]]=(r=n[i])?Q.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}a(n,t)}else e!=null&&i(t,e,n);return this}get(e,t){if(e=Jm(e),e){let n=Q.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(t===!0)return Xm(e);if(Q.isFunction(t))return t.call(this,e,n);if(Q.isRegExp(t))return t.exec(e);throw TypeError(`parser must be boolean|regexp|function`)}}}has(e,t){if(e=Jm(e),e){let n=Q.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||Qm(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function i(e){if(e=Jm(e),e){let i=Q.findKey(n,e);i&&(!t||Qm(n,n[i],i,t))&&(delete n[i],r=!0)}}return Q.isArray(e)?e.forEach(i):i(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let i=t[n];(!e||Qm(this,this[i],i,e,!0))&&(delete this[i],r=!0)}return r}normalize(e){let t=this,n={};return Q.forEach(this,(r,i)=>{let a=Q.findKey(n,i);if(a){t[a]=Ym(r),delete t[i];return}let o=e?$m(i):String(i).trim();o!==i&&delete t[i],t[o]=Ym(r),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return Q.forEach(this,(n,r)=>{n!=null&&n!==!1&&(t[r]=e&&Q.isArray(n)?n.join(`, `):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+`: `+t).join(`
3
+ `)}getSetCookie(){return this.get(`set-cookie`)||[]}get[Symbol.toStringTag](){return`AxiosHeaders`}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[qm]=this[qm]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=Jm(e);t[r]||(eh(n,e),t[r]=!0)}return Q.isArray(e)?e.forEach(r):r(e),this}};th.accessor([`Content-Type`,`Content-Length`,`Accept`,`Accept-Encoding`,`User-Agent`,`Authorization`]),Q.reduceDescriptors(th.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),Q.freezeMethods(th);function nh(e,t){let n=this||Wm,r=t||n,i=th.from(r.headers),a=r.data;return Q.forEach(e,function(e){a=e.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function rh(e){return!!(e&&e.__CANCEL__)}var ih=class extends ${constructor(e,t,n){super(e??`canceled`,$.ERR_CANCELED,t,n),this.name=`CanceledError`,this.__CANCEL__=!0}};function ah(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new $(`Request failed with status code `+n.status,[$.ERR_BAD_REQUEST,$.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function oh(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||``}function sh(e,t){e||=10;let n=Array(e),r=Array(e),i=0,a=0,o;return t=t===void 0?1e3:t,function(s){let c=Date.now(),l=r[a];o||=c,n[i]=s,r[i]=c;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),c-o<t)return;let f=l&&c-l;return f?Math.round(d*1e3/f):void 0}}function ch(e,t){let n=0,r=1e3/t,i,a,o=(t,r=Date.now())=>{n=r,i=null,a&&=(clearTimeout(a),null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-n;s>=r?o(e,t):(i=e,a||=setTimeout(()=>{a=null,o(i)},r-s))},()=>i&&o(i)]}var lh=(e,t,n=3)=>{let r=0,i=sh(50,250);return ch(n=>{let a=n.loaded,o=n.lengthComputable?n.total:void 0,s=a-r,c=i(s),l=a<=o;r=a,e({loaded:a,total:o,progress:o?a/o:void 0,bytes:s,rate:c||void 0,estimated:c&&o&&l?(o-a)/c:void 0,event:n,lengthComputable:o!=null,[t?`download`:`upload`]:!0})},n)},uh=(e,t)=>{let n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},dh=e=>(...t)=>Q.asap(()=>e(...t)),fh=Rm.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Rm.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Rm.origin),Rm.navigator&&/(msie|trident)/i.test(Rm.navigator.userAgent)):()=>!0,ph=Rm.hasStandardBrowserEnv?{write(e,t,n,r,i,a,o){if(typeof document>`u`)return;let s=[`${e}=${encodeURIComponent(t)}`];Q.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),Q.isString(r)&&s.push(`path=${r}`),Q.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push(`secure`),Q.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join(`; `)},read(e){if(typeof document>`u`)return null;let t=document.cookie.match(RegExp(`(?:^|; )`+e+`=([^;]*)`));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,``,Date.now()-864e5,`/`)}}:{write(){},read(){return null},remove(){}};function mh(e){return typeof e==`string`?/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e):!1}function hh(e,t){return t?e.replace(/\/?\/$/,``)+`/`+t.replace(/^\/+/,``):e}function gh(e,t,n){let r=!mh(t);return e&&(r||n==0)?hh(e,t):t}var _h=e=>e instanceof th?{...e}:e;function vh(e,t){t||={};let n={};function r(e,t,n,r){return Q.isPlainObject(e)&&Q.isPlainObject(t)?Q.merge.call({caseless:r},e,t):Q.isPlainObject(t)?Q.merge({},t):Q.isArray(t)?t.slice():t}function i(e,t,n,i){if(!Q.isUndefined(t))return r(e,t,n,i);if(!Q.isUndefined(e))return r(void 0,e,n,i)}function a(e,t){if(!Q.isUndefined(t))return r(void 0,t)}function o(e,t){if(!Q.isUndefined(t))return r(void 0,t);if(!Q.isUndefined(e))return r(void 0,e)}function s(n,i,a){if(a in t)return r(n,i);if(a in e)return r(void 0,n)}let c={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(e,t,n)=>i(_h(e),_h(t),n,!0)};return Q.forEach(Object.keys({...e,...t}),function(r){if(r===`__proto__`||r===`constructor`||r===`prototype`)return;let a=Q.hasOwnProp(c,r)?c[r]:i,o=a(e[r],t[r],r);Q.isUndefined(o)&&a!==s||(n[r]=o)}),n}var yh=e=>{let t=vh({},e),{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:s}=t;if(t.headers=o=th.from(o),t.url=Om(gh(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&o.set(`Authorization`,`Basic `+btoa((s.username||``)+`:`+(s.password?unescape(encodeURIComponent(s.password)):``))),Q.isFormData(n)){if(Rm.hasStandardBrowserEnv||Rm.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(Q.isFunction(n.getHeaders)){let e=n.getHeaders(),t=[`content-type`,`content-length`];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&o.set(e,n)})}}if(Rm.hasStandardBrowserEnv&&(r&&Q.isFunction(r)&&(r=r(t)),r||r!==!1&&fh(t.url))){let e=i&&a&&ph.read(a);e&&o.set(i,e)}return t},bh=typeof XMLHttpRequest<`u`&&function(e){return new Promise(function(t,n){let r=yh(e),i=r.data,a=th.from(r.headers).normalize(),{responseType:o,onUploadProgress:s,onDownloadProgress:c}=r,l,u,d,f,p;function ee(){f&&f(),p&&p(),r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener(`abort`,l)}let m=new XMLHttpRequest;m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout;function te(){if(!m)return;let r=th.from(`getAllResponseHeaders`in m&&m.getAllResponseHeaders());ah(function(e){t(e),ee()},function(e){n(e),ee()},{data:!o||o===`text`||o===`json`?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}`onloadend`in m?m.onloadend=te:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf(`file:`)===0)||setTimeout(te)},m.onabort=function(){m&&=(n(new $(`Request aborted`,$.ECONNABORTED,e,m)),null)},m.onerror=function(t){let r=new $(t&&t.message?t.message:`Network Error`,$.ERR_NETWORK,e,m);r.event=t||null,n(r),m=null},m.ontimeout=function(){let t=r.timeout?`timeout of `+r.timeout+`ms exceeded`:`timeout exceeded`,i=r.transitional||Am;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new $(t,i.clarifyTimeoutError?$.ETIMEDOUT:$.ECONNABORTED,e,m)),m=null},i===void 0&&a.setContentType(null),`setRequestHeader`in m&&Q.forEach(a.toJSON(),function(e,t){m.setRequestHeader(t,e)}),Q.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),o&&o!==`json`&&(m.responseType=r.responseType),c&&([d,p]=lh(c,!0),m.addEventListener(`progress`,d)),s&&m.upload&&([u,f]=lh(s),m.upload.addEventListener(`progress`,u),m.upload.addEventListener(`loadend`,f)),(r.cancelToken||r.signal)&&(l=t=>{m&&=(n(!t||t.type?new ih(null,e,m):t),m.abort(),null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener(`abort`,l)));let ne=oh(r.url);if(ne&&Rm.protocols.indexOf(ne)===-1){n(new $(`Unsupported protocol `+ne+`:`,$.ERR_BAD_REQUEST,e));return}m.send(i||null)})},xh=(e,t)=>{let{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n=new AbortController,r,i=function(e){if(!r){r=!0,o();let t=e instanceof Error?e:this.reason;n.abort(t instanceof $?t:new ih(t instanceof Error?t.message:t))}},a=t&&setTimeout(()=>{a=null,i(new $(`timeout of ${t}ms exceeded`,$.ETIMEDOUT))},t),o=()=>{e&&=(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener(`abort`,i)}),null)};e.forEach(e=>e.addEventListener(`abort`,i));let{signal:s}=n;return s.unsubscribe=()=>Q.asap(o),s}},Sh=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let r=0,i;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},Ch=async function*(e,t){for await(let n of wh(e))yield*Sh(n,t)},wh=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},Th=(e,t,n,r)=>{let i=Ch(e,t),a=0,o,s=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{let{done:t,value:r}=await i.next();if(t){s(),e.close();return}let o=r.byteLength;n&&n(a+=o),e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel(e){return s(e),i.return()}},{highWaterMark:2})},Eh=64*1024,{isFunction:Dh}=Q,Oh=(({Request:e,Response:t})=>({Request:e,Response:t}))(Q.global),{ReadableStream:kh,TextEncoder:Ah}=Q.global,jh=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Mh=e=>{e=Q.merge.call({skipUndefined:!0},Oh,e);let{fetch:t,Request:n,Response:r}=e,i=t?Dh(t):typeof fetch==`function`,a=Dh(n),o=Dh(r);if(!i)return!1;let s=i&&Dh(kh),c=i&&(typeof Ah==`function`?(e=>t=>e.encode(t))(new Ah):async e=>new Uint8Array(await new n(e).arrayBuffer())),l=a&&s&&jh(()=>{let e=!1,t=new n(Rm.origin,{body:new kh,method:`POST`,get duplex(){return e=!0,`half`}}).headers.has(`Content-Type`);return e&&!t}),u=o&&s&&jh(()=>Q.isReadableStream(new r(``).body)),d={stream:u&&(e=>e.body)};i&&[`text`,`arrayBuffer`,`blob`,`formData`,`stream`].forEach(e=>{!d[e]&&(d[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new $(`Response type '${e}' is not supported`,$.ERR_NOT_SUPPORT,n)})});let f=async e=>{if(e==null)return 0;if(Q.isBlob(e))return e.size;if(Q.isSpecCompliantForm(e))return(await new n(Rm.origin,{method:`POST`,body:e}).arrayBuffer()).byteLength;if(Q.isArrayBufferView(e)||Q.isArrayBuffer(e))return e.byteLength;if(Q.isURLSearchParams(e)&&(e+=``),Q.isString(e))return(await c(e)).byteLength},p=async(e,t)=>Q.toFiniteNumber(e.getContentLength())??f(t);return async e=>{let{url:i,method:o,data:s,signal:c,cancelToken:f,timeout:ee,onDownloadProgress:m,onUploadProgress:te,responseType:ne,headers:re,withCredentials:ie=`same-origin`,fetchOptions:ae}=yh(e),oe=t||fetch;ne=ne?(ne+``).toLowerCase():`text`;let se=xh([c,f&&f.toAbortSignal()],ee),h=null,ce=se&&se.unsubscribe&&(()=>{se.unsubscribe()}),le;try{if(te&&l&&o!==`get`&&o!==`head`&&(le=await p(re,s))!==0){let e=new n(i,{method:`POST`,body:s,duplex:`half`}),t;if(Q.isFormData(s)&&(t=e.headers.get(`content-type`))&&re.setContentType(t),e.body){let[t,n]=uh(le,lh(dh(te)));s=Th(e.body,Eh,t,n)}}Q.isString(ie)||(ie=ie?`include`:`omit`);let t=a&&`credentials`in n.prototype,c={...ae,signal:se,method:o.toUpperCase(),headers:re.normalize().toJSON(),body:s,duplex:`half`,credentials:t?ie:void 0};h=a&&new n(i,c);let f=await(a?oe(h,ae):oe(i,c)),ee=u&&(ne===`stream`||ne===`response`);if(u&&(m||ee&&ce)){let e={};[`status`,`statusText`,`headers`].forEach(t=>{e[t]=f[t]});let t=Q.toFiniteNumber(f.headers.get(`content-length`)),[n,i]=m&&uh(t,lh(dh(m),!0))||[];f=new r(Th(f.body,Eh,n,()=>{i&&i(),ce&&ce()}),e)}ne||=`text`;let ue=await d[Q.findKey(d,ne)||`text`](f,e);return!ee&&ce&&ce(),await new Promise((t,n)=>{ah(t,n,{data:ue,headers:th.from(f.headers),status:f.status,statusText:f.statusText,config:e,request:h})})}catch(t){throw ce&&ce(),t&&t.name===`TypeError`&&/Load failed|fetch/i.test(t.message)?Object.assign(new $(`Network Error`,$.ERR_NETWORK,e,h,t&&t.response),{cause:t.cause||t}):$.from(t,t&&t.code,e,h,t&&t.response)}}},Nh=new Map,Ph=e=>{let t=e&&e.env||{},{fetch:n,Request:r,Response:i}=t,a=[r,i,n],o=a.length,s,c,l=Nh;for(;o--;)s=a[o],c=l.get(s),c===void 0&&l.set(s,c=o?new Map:Mh(t)),l=c;return c};Ph();var Fh={http:null,xhr:bh,fetch:{get:Ph}};Q.forEach(Fh,(e,t)=>{if(e){try{Object.defineProperty(e,`name`,{value:t})}catch{}Object.defineProperty(e,`adapterName`,{value:t})}});var Ih=e=>`- ${e}`,Lh=e=>Q.isFunction(e)||e===null||e===!1;function Rh(e,t){e=Q.isArray(e)?e:[e];let{length:n}=e,r,i,a={};for(let o=0;o<n;o++){r=e[o];let n;if(i=r,!Lh(r)&&(i=Fh[(n=String(r)).toLowerCase()],i===void 0))throw new $(`Unknown adapter '${n}'`);if(i&&(Q.isFunction(i)||(i=i.get(t))))break;a[n||`#`+o]=i}if(!i){let e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(t===!1?`is not supported by the environment`:`is not available in the build`));throw new $(`There is no suitable adapter to dispatch the request `+(n?e.length>1?`since :
4
+ `+e.map(Ih).join(`
5
+ `):` `+Ih(e[0]):`as no adapter specified`),`ERR_NOT_SUPPORT`)}return i}var zh={getAdapter:Rh,adapters:Fh};function Bh(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ih(null,e)}function Vh(e){return Bh(e),e.headers=th.from(e.headers),e.data=nh.call(e,e.transformRequest),[`post`,`put`,`patch`].indexOf(e.method)!==-1&&e.headers.setContentType(`application/x-www-form-urlencoded`,!1),zh.getAdapter(e.adapter||Wm.adapter,e)(e).then(function(t){return Bh(e),t.data=nh.call(e,e.transformResponse,t),t.headers=th.from(t.headers),t},function(t){return rh(t)||(Bh(e),t&&t.response&&(t.response.data=nh.call(e,e.transformResponse,t.response),t.response.headers=th.from(t.response.headers))),Promise.reject(t)})}var Hh=`1.13.6`,Uh={};[`object`,`boolean`,`number`,`function`,`string`,`symbol`].forEach((e,t)=>{Uh[e]=function(n){return typeof n===e||`a`+(t<1?`n `:` `)+e}});var Wh={};Uh.transitional=function(e,t,n){function r(e,t){return`[Axios v`+Hh+`] Transitional option '`+e+`'`+t+(n?`. `+n:``)}return(n,i,a)=>{if(e===!1)throw new $(r(i,` has been removed`+(t?` in `+t:``)),$.ERR_DEPRECATED);return t&&!Wh[i]&&(Wh[i]=!0,console.warn(r(i,` has been deprecated since v`+t+` and will be removed in the near future`))),e?e(n,i,a):!0}},Uh.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function Gh(e,t,n){if(typeof e!=`object`)throw new $(`options must be an object`,$.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),i=r.length;for(;i-- >0;){let a=r[i],o=t[a];if(o){let t=e[a],n=t===void 0||o(t,a,e);if(n!==!0)throw new $(`option `+a+` must be `+n,$.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new $(`Unknown option `+a,$.ERR_BAD_OPTION)}}var Kh={assertOptions:Gh,validators:Uh},qh=Kh.validators,Jh=class{constructor(e){this.defaults=e||{},this.interceptors={request:new km,response:new km}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=t.stack?t.stack.replace(/^.+\n/,``):``;try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,``))&&(e.stack+=`
6
+ `+n):e.stack=n}catch{}}throw e}}_request(e,t){typeof e==`string`?(t||={},t.url=e):t=e||{},t=vh(this.defaults,t);let{transitional:n,paramsSerializer:r,headers:i}=t;n!==void 0&&Kh.assertOptions(n,{silentJSONParsing:qh.transitional(qh.boolean),forcedJSONParsing:qh.transitional(qh.boolean),clarifyTimeoutError:qh.transitional(qh.boolean),legacyInterceptorReqResOrdering:qh.transitional(qh.boolean)},!1),r!=null&&(Q.isFunction(r)?t.paramsSerializer={serialize:r}:Kh.assertOptions(r,{encode:qh.function,serialize:qh.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls===void 0?t.allowAbsoluteUrls=!0:t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls),Kh.assertOptions(t,{baseUrl:qh.spelling(`baseURL`),withXsrfToken:qh.spelling(`withXSRFToken`)},!0),t.method=(t.method||this.defaults.method||`get`).toLowerCase();let a=i&&Q.merge(i.common,i[t.method]);i&&Q.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`common`],e=>{delete i[e]}),t.headers=th.concat(a,i);let o=[],s=!0;this.interceptors.request.forEach(function(e){if(typeof e.runWhen==`function`&&e.runWhen(t)===!1)return;s&&=e.synchronous;let n=t.transitional||Am;n&&n.legacyInterceptorReqResOrdering?o.unshift(e.fulfilled,e.rejected):o.push(e.fulfilled,e.rejected)});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,u=0,d;if(!s){let e=[Vh.bind(this),void 0];for(e.unshift(...o),e.push(...c),d=e.length,l=Promise.resolve(t);u<d;)l=l.then(e[u++],e[u++]);return l}d=o.length;let f=t;for(;u<d;){let e=o[u++],t=o[u++];try{f=e(f)}catch(e){t.call(this,e);break}}try{l=Vh.call(this,f)}catch(e){return Promise.reject(e)}for(u=0,d=c.length;u<d;)l=l.then(c[u++],c[u++]);return l}getUri(e){return e=vh(this.defaults,e),Om(gh(e.baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};Q.forEach([`delete`,`get`,`head`,`options`],function(e){Jh.prototype[e]=function(t,n){return this.request(vh(n||{},{method:e,url:t,data:(n||{}).data}))}}),Q.forEach([`post`,`put`,`patch`],function(e){function t(t){return function(n,r,i){return this.request(vh(i||{},{method:e,headers:t?{"Content-Type":`multipart/form-data`}:{},url:n,data:r}))}}Jh.prototype[e]=t(),Jh.prototype[e+`Form`]=t(!0)});var Yh=class e{constructor(e){if(typeof e!=`function`)throw TypeError(`executor must be a function.`);let t;this.promise=new Promise(function(e){t=e});let n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new ih(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}};function Xh(e){return function(t){return e.apply(null,t)}}function Zh(e){return Q.isObject(e)&&e.isAxiosError===!0}var Qh={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Qh).forEach(([e,t])=>{Qh[t]=e});function $h(e){let t=new Jh(e),n=sp(Jh.prototype.request,t);return Q.extend(n,Jh.prototype,t,{allOwnKeys:!0}),Q.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return $h(vh(e,t))},n}var eg=$h(Wm);eg.Axios=Jh,eg.CanceledError=ih,eg.CancelToken=Yh,eg.isCancel=rh,eg.VERSION=Hh,eg.toFormData=Cm,eg.AxiosError=$,eg.Cancel=eg.CanceledError,eg.all=function(e){return Promise.all(e)},eg.spread=Xh,eg.isAxiosError=Zh,eg.mergeConfig=vh,eg.AxiosHeaders=th,eg.formToJSON=e=>Hm(Q.isHTMLForm(e)?new FormData(e):e),eg.getAdapter=zh.getAdapter,eg.HttpStatusCode=Qh,eg.default=eg;var tg=l(((e,t)=>{t.exports={}})),ng=function(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},rg=class extends uf{timeout=1e4;cs=new Map;getAddr(e){let t=X.MESH_ADDRESS.get().any();return e.getAttribute(yf.REMOTE)??t}async getClient(e){if(!this.cs.has(e)){let t={baseURL:e,timeout:this.timeout,headers:{"Content-Type":`application/json;charset=UTF-8`}};globalThis.__vitest_environment__==`node`&&(t.httpsAgent=new(await(Promise.resolve().then(()=>f(tg(),1)))).Agent({rejectUnauthorized:!1}));let n=eg.create(t);n.interceptors.request.use(e=>e),this.cs.set(e,n)}return this.cs.get(e)}start(){}close(){}async consume(e,t,n,r,i){let a=r.schema(e).timeout??this.timeout,o=e.getAttribute(yf.TIMEOUT)??this.timeout,s=Ce.load(Xd).getDefault(),c=s.decode(i,Object),l=await this.invoke(e,c,Object,n,Math.max(o,a));return s.encode(l)}async*consumes(e,t,n,r,i){let a=Ce.load(Xd).getDefault(),o=a.decode(i,Object),s={"mesh-urn":n,"Content-Type":`application/json; charset=utf-8`,Accept:`text/event-stream`,"Cache-Control":`no-cache`};e.getAttachments().forEach((e,t)=>{s[e]=t});let c=this.getAddr(e),l=new AbortController,u=await fetch(`${c}mpc/invoke`,{method:`POST`,headers:s,body:JSON.stringify(o),signal:l.signal});if(!u.ok||!u.body)throw De.errorf(u);let d=u.body.getReader(),f=new TextDecoder,p=``;try{for(;;){let{done:e,value:t}=await d.read();if(e)break;p+=f.decode(t,{stream:!0});let n=p.split(`
7
+ `);p=n.pop()??``;for(let e of n)if(e.startsWith(`data:`)){let t=e.slice(5).trim();t&&(yield a.encode(JSON.parse(t)))}}}finally{await d.cancel(),l.abort()}}async invoke(e,t,n,r,i){let a={"mesh-urn":r};e.getAttachments().forEach((e,t)=>{a[e]=t});let o=this.getAddr(e);return await this.doing(e,o,`mpc/invoke`,t,a,Math.max(this.timeout,i))}async doing(e,t,n,r,i,a){let o=If();if(o?.consumer)return o?.consumer(e,t,n,r,i,a);let s=await(await this.getClient(t)).post(`${t}${n}`,r,{timeout:Math.max(this.timeout,a),headers:i});if(s.status!==200)throw De.errorf(s);return s.data}};rg=ng([_(uf.HTTP)],rg);var ig=class e{name=``;icon;path=``;describe;disable=!1;star=!1;route;children=[];parent;attrs;static abs(e,t=``){if(!e.parent)return`${t}${e.path}`;let n=this.abs(e.parent).replaceAll(`/*`,``);return n==``?`${t}${e.path}`:`${t}${n}${e.path.replaceAll(`/*`,``)}`}static preproc(e){e?.forEach(e=>{e.children?.forEach(t=>{t.parent=e}),this.preproc(e?.children||[])})}static chain(t){return t.parent?[...e.chain(t.parent),t]:[]}},ag=class extends Zc{proxy;constructor(){super(),this.proxy=Z.proxy(Zc)}environ(e){return this.proxy.environ(e)}accessible(e,t){return this.proxy.accessible(e)}refresh(e,t){return this.proxy.refresh(e)}route(e,t){return this.proxy.route(e)}routes(e){return this.proxy.routes(e)}disable(e,t){return this.proxy.disable(e)}enable(e,t){return this.proxy.enable(e)}index(e,t){return this.proxy.index(e)}version(e,t){return this.proxy.version(e)}},og=class{values=[];filter=(e,t)=>!0;constructor(e,t){this.values=e||[],this.filter=t}index(e){let t=e.factor||{},n=new T;n.index=e.index,n.sid=e.sid||``,n.limit=e.limit,n.total=e.index*e.limit,n.next=!1,n.data=[];let r=n.index*n.limit,i=(n.index+1)*n.limit;for(let a=r;a<this.values.length&&!(r>=this.values.length);a++){let o=this.values[a];n.data.length<e.limit&&r<=n.total&&n.total<i&&n.data.push(o),(!this.filter||this.filter(o,t))&&n.total++}return n.total>i&&(n.next=!0),n}},sg=[{label:`微信`,value:`wechat`},{label:`抖音`,value:`douyin`},{label:`飞书`,value:`feishu`},{label:`钉钉`,value:`dingtalk`}],cg=class e{redirect;session;cacheKey=`mesh.token`;tokenizer=Z.proxy(Hu);static ptr=te();constructor(){}static global(){return e.ptr.acx||(e.ptr.acx=new e),e.ptr.acx}async authorize(e,t){let n=await this.tokenizer.quickauth(t);this.session=await this.tokenizer.authenticate(n.token),localStorage.setItem(this.cacheKey,n.token)}authorized(){return(this.session?.token??localStorage.getItem(this.cacheKey)??``)!=``}async authenticate(){if(this.session)return this.session;let e=localStorage.getItem(this.cacheKey);if(!e)throw x.UNAUTHORIZED;return this.session=await this.tokenizer.authenticate(e),this.session}async destroy(){let e=this.session?.token??localStorage.getItem(this.cacheKey);e&&e!=``&&await this.tokenizer.destroy(e),localStorage.removeItem(this.cacheKey),this.session=void 0}},lg=(0,t.createContext)(void 0),ug=({children:e,redirect:r})=>{let i=(0,t.useMemo)(()=>(cg.global().redirect=r,cg.global()),[r]);return(0,n.jsx)(lg.Provider,{value:i,children:e})},dg=()=>{let e=(0,t.useContext)(lg);if(!e)throw Error(`useAuth must be used within a AuthContextProvider`);return e},fg=({next:e})=>{let n=dg();return(0,t.useEffect)(()=>{cg.global().authenticate().catch(console.log)},[]),e(n.authorized(),n.redirect??``)},pg=[`apply.captcha.mesh`,`match.captcha.mesh`,`quickauth.auth.mesh`,`authorize.oauth.mesh`,`authenticate.oauth.mesh`,`settings.x.devops`];Lf.onBefore(`mesh.authorize`,async(e,t)=>{let n=cg.global().session,r=new URLSearchParams(globalThis.location.search);if(t.getAttachments(e).set(`mesh-token`,n?.token??r.get(`token`)??``),t.getAttachments(e).set(`mesh-query`,globalThis.location.search),!pg.some(t=>e.getUrn().includes(t))&&!n?.token){let n=await cg.global().authenticate();t.getAttachments(e).set(`mesh-token`,n.token)}}),Lf.onFailure(`mesh.authenticate`,async(e,t,n)=>{if(n.getCode()==`E0000000630`||n.getCode()==`E0000000401`){cg.global().destroy().catch(console.log),globalThis.location.href=cg.global().redirect??``;return}console.log(n.getMessage())});var mg=class{async sse(e,t,n){let r=new URLSearchParams(globalThis.location.search);await new vg(`${globalThis.location.origin}${globalThis.location.pathname}/mpc/sse`,n,t,{"mesh-token":r.get(`token`)??``,"mesh-query":globalThis.location.search,"mesh-proxy":t?.options?.proxy??``,"mesh-urn":Bf.urn(`${e}.builtin.sse`).toString()}).connect()}async fileup(e,t,n,r){let i=new FormData;return i.append(`f`,e instanceof File?e:new File([e],`mesh_${Date.now()}.${n}`)),new Promise((e,n)=>{let a=`${globalThis.location.origin}${globalThis.location.pathname}/mpc/w`,o=new XMLHttpRequest;o.upload.onprogress=e=>r?.(Math.round(e.loaded/e.total*100)),o.onload=()=>o.status<300?e(o.responseText.substring(1)):n(Error(`HTTP ${o.status}`)),o.onerror=()=>n(Error(`unknown error`)),o.open(`POST`,a),o.setRequestHeader(`mesh-bucket`,t??``),o.send(i)})}},hg=(0,t.createContext)(void 0),gg=()=>{let e=(0,t.useContext)(hg);if(!e)throw Error(`useSSE must be used within a SSEContextProvider`);return e},_g=({children:e})=>{let r=(0,t.useMemo)(()=>new mg,[]),i=(0,t.useCallback)(()=>{},[]);return(0,t.useEffect)(()=>(i(),globalThis.addEventListener(`online`,i),()=>{globalThis.removeEventListener(`online`,i)}),[i]),(0,n.jsx)(hg.Provider,{value:r,children:e})},vg=class{codec=Ce.load(Xd).getDefault();ctl=new AbortController;decoder=new TextDecoder;url;body;headers;onmessage;buffer=``;reader;constructor(e,t,n={},r={}){this.url=e,this.body=n,this.headers=r,this.onmessage=t}async connect(){let e=await fetch(this.url,{method:`POST`,headers:{"Content-Type":`application/json; charset=utf-8`,Accept:`text/event-stream`,"Cache-Control":`no-cache`,...this.headers},body:this.codec.encodeString(this.body),signal:this.ctl.signal});if(!e.ok)throw De.errorf(e);let t=e.headers.get(`content-type`);if(!t?.includes(`text/event-stream`))throw De.errorf(`unexpected content-type: `+t);if(!e.body)throw await this.close(),De.errorf(`unexpected stream response`);for(this.reader=e.body.getReader();;){let{done:e,value:t}=await this.reader.read();if(e){await this.close();break}if(await this.process(this.buffer,t)){await this.close();break}}}async process(e,t){let n=e+this.decoder.decode(t,{stream:!0});if(n.endsWith(`
8
+ `))return this.buffer=``,await this.consume(n.split(`
9
+ `));{let e=n.split(`
10
+ `);return this.buffer=e[e.length-1],await this.consume(e.slice(0,e.length-1))}}async consume(e){for(let t of e)if(t!=``){if(t.startsWith(`event:`))return!1;if(t.startsWith(`data:`)){let e=this.codec.decodeString(t.slice(5).trim(),zt);if(x.SUCCESS.getCode()!=e.code)return!0;await this.onmessage(e.content)}if(t.startsWith(`id:`)||t.startsWith(`retry:`))return!1}return!1}state(){return this.reader!==null&&!this.ctl?.signal.aborted}async close(){await this.reader?.cancel(),this.ctl.abort()}},yg=new class{builtin=Z.proxy(Ci);cache=Z.proxy(zi);cipherEconomy=Z.proxy(pa);cipherProvider=Z.proxy(ma);cluster=Z.proxy(Sa);commercialize=Z.proxy(ja);cryptor=Z.proxy(Xa);daler=Z.proxy(Do);dataHouse=Z.proxy(Bo);devops=Z.proxy(ns);endpoint=Z.proxy(gs);firewalld=Z.proxy(Ds);graph=Z.proxy(Fs);kms=Z.proxy(oc);kv=Z.proxy(_c);licenser=Z.proxy(Ec);locker=Z.proxy(Pc);network=Z.proxy(Zc);pipeline=Z.proxy(sl);publisher=Z.proxy(pl);registry=Z.proxy(wl);savepoint=Z.proxy(Jl);scheduler=Z.proxy(uu);sequence=Z.proxy(gu);subscriber=Z.proxy(Su);tokenizer=Z.proxy(Hu);authProvider=Z.proxy(Uu);transporter=Z.proxy(ed);fileSystem=Z.proxy(fd);vm=Z.proxy(Dd);workflow=Z.proxy(Gd)};e.AccessCode=Bn,e.AccessGrant=In,e.AccessID=Vn,e.AccessToken=Rn,e.Addrs=df,e.Appdata=rr,e.Argument=_e,e.Ark=h,e.AuthContextProvider=ug,Object.defineProperty(e,`AuthProvider`,{enumerable:!0,get:function(){return Uu}}),e.Authenticator=fg,e.Body=Mt,e.Buffer=Jd,Object.defineProperty(e,`Builtin`,{enumerable:!0,get:function(){return Ci}}),e.CONSUMER=Af,e.CRL=Ze,Object.defineProperty(e,`Cache`,{enumerable:!0,get:function(){return zi}}),e.CacheBody=Nt,e.Captcha=Fn,e.Cause=He,Object.defineProperty(e,`CipherEconomy`,{enumerable:!0,get:function(){return pa}}),e.CipherEntity=rt,e.CipherHello=Qe,e.CipherKey=nt,e.CipherKeygen=et,e.CipherObject=at,Object.defineProperty(e,`CipherProvider`,{enumerable:!0,get:function(){return ma}}),e.CipherRegen=tt,e.CipherSuite=$e,e.CipherTxEntity=it,e.Citizen=ig,Object.defineProperty(e,`Cluster`,{enumerable:!0,get:function(){return Sa}}),Object.defineProperty(e,`Codec`,{enumerable:!0,get:function(){return Xd}}),e.CommerceEnviron=jn,e.CommerceLicense=An,Object.defineProperty(e,`Commercialize`,{enumerable:!0,get:function(){return ja}}),Object.defineProperty(e,`Compiler`,{enumerable:!0,get:function(){return of}}),Object.defineProperty(e,`Consumer`,{enumerable:!0,get:function(){return uf}}),e.Context=Me,Object.defineProperty(e,`ContextProvider`,{enumerable:!0,get:function(){return Pe}}),e.Credential=Ln,e.CrtRevokeRequest=bn,e.CrtRotateRequest=xn,Object.defineProperty(e,`Cryptor`,{enumerable:!0,get:function(){return Xa}}),Object.defineProperty(e,`Daler`,{enumerable:!0,get:function(){return Do}}),e.DalerBinlog=mt,e.DalerCluster=dt,e.DalerDTSJob=pt,e.DalerInstance=ut,e.DalerSource=lt,e.DalerTest=ft,Object.defineProperty(e,`DataHouse`,{enumerable:!0,get:function(){return Bo}}),e.DataLord=Be,e.Deque=je,Object.defineProperty(e,`Devops`,{enumerable:!0,get:function(){return ns}}),Object.defineProperty(e,`Dispatcher`,{enumerable:!0,get:function(){return ls}}),e.Document=Et,e.DocumentMetadata=Dt,e.DtxBranch=gr,e.DtxDefinition=hr,e.Dynamic=be,e.DynamicOption=sr,e.DynamicRoute=cr,e.DynamicServer=lr,Object.defineProperty(e,`Eden`,{enumerable:!0,get:function(){return vf}}),Object.defineProperty(e,`Endpoint`,{enumerable:!0,get:function(){return gs}}),e.EndpointSticker=_s,e.Entry=Pt,e.Env=ne,e.Environ=Wt,e.Errors=De,e.Event=an,e.FileEntry=Ft,e.FileMirror=kr,Object.defineProperty(e,`FileSystem`,{enumerable:!0,get:function(){return fd}}),Object.defineProperty(e,`Filter`,{enumerable:!0,get:function(){return jf}}),e.Firewall=A,Object.defineProperty(e,`Firewalld`,{enumerable:!0,get:function(){return Ds}}),Object.defineProperty(e,`GRPCConsumer`,{enumerable:!0,get:function(){return ip}}),Object.defineProperty(e,`GRPCProvider`,{enumerable:!0,get:function(){return op}}),e.GenericExecution=wf,e.GenericInspector=Tf,e.GenericParameters=Ef,e.GenericReturns=Df,e.GrantCode=zn,Object.defineProperty(e,`Graph`,{enumerable:!0,get:function(){return Fs}}),Object.defineProperty(e,`HTTPConsumer`,{enumerable:!0,get:function(){return rg}}),e.Header=Ne,e.Hodor=wi,e.Hook=Lf,Object.defineProperty(e,`HookFilter`,{enumerable:!0,get:function(){return Rf}}),e.Idx=ue,e.Inbound=qn,e.Institution=Yt,Object.defineProperty(e,`JSONCodec`,{enumerable:!0,get:function(){return tf}}),Object.defineProperty(e,`KMS`,{enumerable:!0,get:function(){return oc}}),Object.defineProperty(e,`KV`,{enumerable:!0,get:function(){return _c}}),e.Key=Ae,e.KeyCsr=vn,e.Keys=yn,e.Keyset=Sn,e.KindMirror=Or,e.Lattice=Ut,e.License=kn,Object.defineProperty(e,`Licenser`,{enumerable:!0,get:function(){return Ec}}),e.Location=Jt,Object.defineProperty(e,`Locker`,{enumerable:!0,get:function(){return Pc}}),e.MPI=fe,e.MPS=we,e.Mani=Ve,e.Manifest=Ir,e.Matcher=ur,e.Mesh=yf,e.MeshCode=b,e.MeshContext=hf,Object.defineProperty(e,`MeshContextProvider`,{enumerable:!0,get:function(){return gf}}),Object.defineProperty(e,`MeshEden`,{enumerable:!0,get:function(){return Zf}}),e.MeshFlags=xf,e.MeshNetwork=ag,e.MeshService=yg,e.Metadata=tr,e.MethodInspector=y,e.MethodMirror=Dr,Object.defineProperty(e,`MethodProxy`,{enumerable:!0,get:function(){return ge}}),e.Mock=$f,Object.defineProperty(e,`MockFilter`,{enumerable:!0,get:function(){return ep}}),e.Mode=re,e.MpcStream=Il,e.Netlist=dr,Object.defineProperty(e,`Network`,{enumerable:!0,get:function(){return Zc}}),Object.defineProperty(e,`ObjectProvider`,{enumerable:!0,get:function(){return ha}}),e.Outbound=Jn,e.PROVIDER=kf,e.Packet=Ur,e.Page=T,e.Paging=w,e.ParameterMirror=Cr,e.Payload=Hr,Object.defineProperty(e,`Pipeline`,{enumerable:!0,get:function(){return sl}}),e.Principal=qt,Object.defineProperty(e,`Provider`,{enumerable:!0,get:function(){return np}}),Object.defineProperty(e,`Publisher`,{enumerable:!0,get:function(){return pl}}),e.QrParties=sg,e.Reference=$n,e.ReferenceInvokeHandler=Hf,e.Registration=nr,e.RegistrationKind=Bt,Object.defineProperty(e,`Registry`,{enumerable:!0,get:function(){return wl}}),e.Replica=xt,e.ReturnMirror=wr,e.Routable=Fl,e.Route=z,e.RunMode=ke,e.SPI=de,Object.defineProperty(e,`Savepoint`,{enumerable:!0,get:function(){return Jl}}),Object.defineProperty(e,`Scheduler`,{enumerable:!0,get:function(){return uu}}),e.Script=Fr,e.SecretCsr=Cn,e.SecretKey=wn,Object.defineProperty(e,`Sequence`,{enumerable:!0,get:function(){return gu}}),e.Service=er,e.ServiceInvocation=zf,e.ServiceInvokeHandler=Kf,e.ServiceLoader=Ce,Object.defineProperty(e,`ServiceProxy`,{enumerable:!0,get:function(){return Z}}),e.Session=Hn,e.Settings=bt,e.StatefulServer=ff,e.States=Rr,e.Status=x,e.StreamContext=mg,e.StreamContextProvider=_g,e.StreamEntity=It,e.StreamHello=Rt,e.StreamOption=Lt,e.StreamPacket=zt,Object.defineProperty(e,`Subscriber`,{enumerable:!0,get:function(){return Su}}),Object.defineProperty(e,`TSCompiler`,{enumerable:!0,get:function(){return cf}}),e.TextDecoder=qd,e.TextEncoder=Kd,e.ThrowableMirror=Tr,e.Timeout=on,Object.defineProperty(e,`Tokenizer`,{enumerable:!0,get:function(){return Hu}}),e.Tool=X,e.Topic=Ue,Object.defineProperty(e,`Transporter`,{enumerable:!0,get:function(){return ed}}),e.Triplet=Lr,e.Types=ae,e.URC=Qn,e.URN=Bf,e.URNFlag=Vf,Object.defineProperty(e,`VM`,{enumerable:!0,get:function(){return Dd}}),e.VTable=og,e.VariableMirror=Er,e.Versions=qr,e.WorkChart=ri,e.WorkContext=si,e.WorkGroup=oi,e.WorkIntent=ei,e.WorkRoutine=ai,e.WorkSide=ni,e.WorkTask=ii,e.WorkVertex=ti,e.Worker=$r,Object.defineProperty(e,`Workflow`,{enumerable:!0,get:function(){return Gd}}),e.binding=le,e.buffer=$d,e.composite=Mf,e.context=S,e.descriptor=If,e.dict=p,e.globalPtr=te,e.index=g,e.instanceOfCodeable=Ee,e.list=ee,e.mpi=v,e.mps=Te,e.returnType=sf,e.spi=_,e.textDecoder=Qd,e.textEncoder=Zd,e.useAuth=dg,e.useStream=gg,e.withCodec=Cf,e.withConsumer=Sf,e.withMode=ie});