@firmer/mesh 0.0.5 → 0.0.6

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,4 +1,4 @@
1
- (function(f,q){typeof exports=="object"&&typeof module<"u"?q(exports):typeof define=="function"&&define.amd?define(["exports"],q):(f=typeof globalThis<"u"?globalThis:f||self,q(f.mesh={}))})(this,function(f){"use strict";var jm=Object.defineProperty;var wm=(f,q,at)=>q in f?jm(f,q,{enumerable:!0,configurable:!0,writable:!0,value:at}):f[q]=at;var s=(f,q,at)=>wm(f,typeof q!="symbol"?q+"":q,at);var tl,Qn,Zn,Xr;class q 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 q;return this.forEach((n,o)=>t.computeIfy(e(o,n),i=>[]).push(n)),t}map(e){const t=new at;return this.forEach((n,o)=>t.push(e(o,n))),t}groupKV(e,t){const n=new q;return this.forEach((o,i)=>n.set(e(i),t(i,o))),n}}class at extends Array{groupBy(e){const t=new q;return this.forEach(n=>t.computeIfy(e(n),o=>new at).push(n)),t}groupKV(e,t){const n=new q;this.forEach(i=>n.computeIfy(e(i),c=>[]).push(i));const o=new q;return n.forEach((i,c)=>o.set(c,t(c,i))),o}}const il={},gr=()=>typeof globalThis=="object"?globalThis:typeof window=="object"?window:typeof global=="object"?global:il,we=class we{constructor(e,t){s(this,"name");s(this,"value");this.name=e,this.value=t}cache(){return gr().meshCache||(gr().meshCache=new Map),gr().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)}};s(we,"Name",new we("MESH_NAME",()=>"")),s(we,"Direct",new we("MESH_DIRECT",()=>"")),s(we,"Subset",new we("MESH_SUBSET",()=>"")),s(we,"Mode",new we("MESH_MODE",()=>0)),s(we,"Proxy",new we("MESH_PROXY",()=>"")),s(we,"Address",new we("MESH_ADDRESS",()=>"")),s(we,"Runtime",new we("MESH_RUNTIME",()=>"")),s(we,"MDC",new we("MESH_MDC",()=>"")),s(we,"SPA",new we("MESH_SPA",()=>"")),s(we,"TCP",new we("MESH_TCP",()=>"")),s(we,"Home",new we("MESH_HOME",()=>"")),s(we,"DSN",new we("MESH_DSN",()=>""));let hr=we;const Ce=class Ce{constructor(e){s(this,"v",0);this.v=e}matches(e){return(this.v&e)==this.v}enable(){return this.matches(hr.Mode.get())}value(){return this.v}};s(Ce,"Disable",new Ce(1)),s(Ce,"Failfast",new Ce(2)),s(Ce,"Nolog",new Ce(4)),s(Ce,"JsonLogFormat",new Ce(8)),s(Ce,"PHeader",new Ce(16)),s(Ce,"Metrics",new Ce(32)),s(Ce,"Debug",new Ce(64)),s(Ce,"PermitCirculate",new Ce(128)),s(Ce,"NoStdColor",new Ce(256)),s(Ce,"Isolate",new Ce(512)),s(Ce,"Mock",new Ce(1024));let ki=Ce;function ol(r){hr.Mode.set(hr.Mode.get()|r)}class Un{constructor(e){s(this,"raw");s(this,"parameters");s(this,"prototype");s(this,"length");s(this,"arguments");s(this,"caller",()=>{});s(this,"name");s(this,tl,{});s(this,"apply",(e,t)=>this.raw.apply(e,...t));s(this,"call",(e,...t)=>this.raw.call(e,...t));s(this,"bind",(e,...t)=>this.raw.bind(e,...t));[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 Un(t):t)]:[e,[]]:[Object,[]]}toString(){return this.raw.toString()}[(tl=Symbol.metadata,Symbol.hasInstance)](e){return this.raw[Symbol.hasInstance](e)}}const Yn=class Yn{constructor(e,t,n,o,i,c){s(this,"macro");s(this,"name");s(this,"kind");s(this,"traits");s(this,"metadata");s(this,"modifier");this.macro=e,this.name=t,this.kind=n,this.traits=o,this.metadata=i,this.modifier=c}isfunction(){return(this.modifier&Yn.FUNCTION)==Yn.FUNCTION}isabstract(){return(this.modifier&Yn.ABSTRACT)==Yn.ABSTRACT}};s(Yn,"FUNCTION",1),s(Yn,"ABSTRACT",2);let ei=Yn;class sl{constructor(){s(this,"tinder",new q);s(this,"annotations",new q)}ak(e,t,n){return`${e.name}-${t}-${n.name}`}annotate(e,t,n,o){this.annotations.computeIfy(n,i=>new q).computeIfy(t,i=>new q).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){var c,u,P,R;const o=(u=(c=this.annotations.get(t))==null?void 0:c.get(n))==null?void 0:u.get(e);if(o)return o;const i=this.superclass(t,S=>!0);for(let S of i){const E=(R=(P=this.annotations.get(S))==null?void 0:P.get(n))==null?void 0:R.get(e);if(E)return E}}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){var P;const i=this.superclass(n,R=>this.metadata(e,R.constructor,R.constructor)),c=n.constructor?0:ei.FUNCTION,u=i.length<1?ei.ABSTRACT:0;i.length<1&&i.push(n);for(let R of i){const S=this.ak(e,t,R);(P=this.tinder.get(S))==null||P.forEach(N=>{N.kind==n&&console.log(`Object of ${R.name} named ${t} has been register already.`)});const E=new ei(e,t,n,i,o,c|u),U=this.tinder.computeIfy(S,N=>new at);U.push(E),U.sort((N,w)=>N.isabstract()||N.isfunction()?1:w.isabstract()||N.isfunction()?-1:N.metadata.priority&&w.metadata.priority?N.metadata.priority-w.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 q;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,u=>new q).computeIfy(o.name,u=>new at).push(i)}return t}providers(e,t){return this.export(e).computeIfy(t,n=>new q).map((n,o)=>o).flatMap(n=>n).filter(n=>n!=t)}provider(e,t,n){const o=this.ak(e,n,t),i=new at;return this.tinder.computeIfy(o,c=>new at).forEach(c=>{!c.isfunction()&&!c.isabstract()&&i.push(c.kind)}),i}inspect(e){const t=new q;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 Ee=(()=>{const r=gr();return r.Ark??(r.Ark=new sl),r.Ark})();var ls=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ys={};/*! *****************************************************************************
1
+ (function(f,q){typeof exports=="object"&&typeof module<"u"?q(exports):typeof define=="function"&&define.amd?define(["exports"],q):(f=typeof globalThis<"u"?globalThis:f||self,q(f.mesh={}))})(this,function(f){"use strict";var jm=Object.defineProperty;var wm=(f,q,at)=>q in f?jm(f,q,{enumerable:!0,configurable:!0,writable:!0,value:at}):f[q]=at;var s=(f,q,at)=>wm(f,typeof q!="symbol"?q+"":q,at);var tl,Zn,er,Xr;class q 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 q;return this.forEach((n,o)=>t.computeIfy(e(o,n),i=>[]).push(n)),t}map(e){const t=new at;return this.forEach((n,o)=>t.push(e(o,n))),t}groupKV(e,t){const n=new q;return this.forEach((o,i)=>n.set(e(i),t(i,o))),n}}class at extends Array{groupBy(e){const t=new q;return this.forEach(n=>t.computeIfy(e(n),o=>new at).push(n)),t}groupKV(e,t){const n=new q;this.forEach(i=>n.computeIfy(e(i),c=>[]).push(i));const o=new q;return n.forEach((i,c)=>o.set(c,t(c,i))),o}}const il={},gr=()=>typeof globalThis=="object"?globalThis:typeof window=="object"?window:typeof global=="object"?global:il,we=class we{constructor(e,t){s(this,"name");s(this,"value");this.name=e,this.value=t}cache(){return gr().meshCache||(gr().meshCache=new Map),gr().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)}};s(we,"Name",new we("MESH_NAME",()=>"")),s(we,"Direct",new we("MESH_DIRECT",()=>"")),s(we,"Subset",new we("MESH_SUBSET",()=>"")),s(we,"Mode",new we("MESH_MODE",()=>0)),s(we,"Proxy",new we("MESH_PROXY",()=>"")),s(we,"Address",new we("MESH_ADDRESS",()=>"")),s(we,"Runtime",new we("MESH_RUNTIME",()=>"")),s(we,"MDC",new we("MESH_MDC",()=>"")),s(we,"SPA",new we("MESH_SPA",()=>"")),s(we,"TCP",new we("MESH_TCP",()=>"")),s(we,"Home",new we("MESH_HOME",()=>"")),s(we,"DSN",new we("MESH_DSN",()=>""));let hr=we;const Ce=class Ce{constructor(e){s(this,"v",0);this.v=e}matches(e){return(this.v&e)==this.v}enable(){return this.matches(hr.Mode.get())}value(){return this.v}};s(Ce,"Disable",new Ce(1)),s(Ce,"Failfast",new Ce(2)),s(Ce,"Nolog",new Ce(4)),s(Ce,"JsonLogFormat",new Ce(8)),s(Ce,"PHeader",new Ce(16)),s(Ce,"Metrics",new Ce(32)),s(Ce,"Debug",new Ce(64)),s(Ce,"PermitCirculate",new Ce(128)),s(Ce,"NoStdColor",new Ce(256)),s(Ce,"Isolate",new Ce(512)),s(Ce,"Mock",new Ce(1024));let ki=Ce;function ol(r){hr.Mode.set(hr.Mode.get()|r)}class Un{constructor(e){s(this,"raw");s(this,"parameters");s(this,"prototype");s(this,"length");s(this,"arguments");s(this,"caller",()=>{});s(this,"name");s(this,tl,{});s(this,"apply",(e,t)=>this.raw.apply(e,...t));s(this,"call",(e,...t)=>this.raw.call(e,...t));s(this,"bind",(e,...t)=>this.raw.bind(e,...t));[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 Un(t):t)]:[e,[]]:[Object,[]]}toString(){return this.raw.toString()}[(tl=Symbol.metadata,Symbol.hasInstance)](e){return this.raw[Symbol.hasInstance](e)}}const Qn=class Qn{constructor(e,t,n,o,i,c){s(this,"macro");s(this,"name");s(this,"kind");s(this,"traits");s(this,"metadata");s(this,"modifier");this.macro=e,this.name=t,this.kind=n,this.traits=o,this.metadata=i,this.modifier=c}isfunction(){return(this.modifier&Qn.FUNCTION)==Qn.FUNCTION}isabstract(){return(this.modifier&Qn.ABSTRACT)==Qn.ABSTRACT}};s(Qn,"FUNCTION",1),s(Qn,"ABSTRACT",2);let ei=Qn;class sl{constructor(){s(this,"tinder",new q);s(this,"annotations",new q)}ak(e,t,n){return`${e.name}-${t}-${n.name}`}annotate(e,t,n,o){this.annotations.computeIfy(n,i=>new q).computeIfy(t,i=>new q).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){var c,u,R,P;const o=(u=(c=this.annotations.get(t))==null?void 0:c.get(n))==null?void 0:u.get(e);if(o)return o;const i=this.superclass(t,S=>!0);for(let S of i){const E=(P=(R=this.annotations.get(S))==null?void 0:R.get(n))==null?void 0:P.get(e);if(E)return E}}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){var R;const i=this.superclass(n,P=>this.metadata(e,P.constructor,P.constructor)),c=n.constructor?0:ei.FUNCTION,u=i.length<1?ei.ABSTRACT:0;i.length<1&&i.push(n);for(let P of i){const S=this.ak(e,t,P);(R=this.tinder.get(S))==null||R.forEach(N=>{N.kind==n&&console.log(`Object of ${P.name} named ${t} has been register already.`)});const E=new ei(e,t,n,i,o,c|u),U=this.tinder.computeIfy(S,N=>new at);U.push(E),U.sort((N,w)=>N.isabstract()||N.isfunction()?1:w.isabstract()||N.isfunction()?-1:N.metadata.priority&&w.metadata.priority?N.metadata.priority-w.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 q;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,u=>new q).computeIfy(o.name,u=>new at).push(i)}return t}providers(e,t){return this.export(e).computeIfy(t,n=>new q).map((n,o)=>o).flatMap(n=>n).filter(n=>n!=t)}provider(e,t,n){const o=this.ak(e,n,t),i=new at;return this.tinder.computeIfy(o,c=>new at).forEach(c=>{!c.isfunction()&&!c.isabstract()&&i.push(c.kind)}),i}inspect(e){const t=new q;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 Ee=(()=>{const r=gr();return r.Ark??(r.Ark=new sl),r.Ark})();var ls=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ys={};/*! *****************************************************************************
2
2
  Copyright (C) Microsoft. All rights reserved.
3
3
  Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4
4
  this file except in compliance with the License. You may obtain a copy of the
@@ -11,14 +11,14 @@
11
11
 
12
12
  See the Apache Version 2.0 License for specific language governing permissions
13
13
  and limitations under the License.
14
- ***************************************************************************** */var ms;function cl(){if(ms)return ys;ms=1;var r;return function(e){(function(t){var n=typeof globalThis=="object"?globalThis:typeof ls=="object"?ls:typeof self=="object"?self:typeof this=="object"?this:P(),o=i(e);typeof n.Reflect<"u"&&(o=i(n.Reflect,o)),t(o,n),typeof n.Reflect>"u"&&(n.Reflect=e);function i(R,S){return function(E,U){Object.defineProperty(R,E,{configurable:!0,writable:!0,value:U}),S&&S(E,U)}}function c(){try{return Function("return this;")()}catch{}}function u(){try{return(0,eval)("(function() { return this; })()")}catch{}}function P(){return c()||u()}})(function(t,n){var o=Object.prototype.hasOwnProperty,i=typeof Symbol=="function",c=i&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",u=i&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",P=typeof Object.create=="function",R={__proto__:[]}instanceof Array,S=!P&&!R,E={create:P?function(){return b(Object.create(null))}:R?function(){return b({__proto__:null})}:function(){return b({})},has:S?function(y,g){return o.call(y,g)}:function(y,g){return g in y},get:S?function(y,g){return o.call(y,g)?y[g]:void 0}:function(y,g){return y[g]}},U=Object.getPrototypeOf(Function),N=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:d(),w=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:p(),M=typeof WeakMap=="function"?WeakMap:m(),A=i?Symbol.for("@reflect-metadata:registry"):void 0,W=fs(),V=hn(W);function te(y,g,v,T){if(z(v)){if(!$i(y))throw new TypeError;if(!nr(g))throw new TypeError;return us(y,g)}else{if(!$i(y))throw new TypeError;if(!Fe(g))throw new TypeError;if(!Fe(T)&&!z(T)&&!Cn(T))throw new TypeError;return Cn(T)&&(T=void 0),v=Kt(v),go(y,g,v,T)}}t("decorate",te);function We(y,g){function v(T,I){if(!Fe(T))throw new TypeError;if(!z(I)&&!ds(I))throw new TypeError;_o(y,g,T,I)}return v}t("metadata",We);function re(y,g,v,T){if(!Fe(v))throw new TypeError;return z(T)||(T=Kt(T)),_o(y,g,v,T)}t("defineMetadata",re);function kt(y,g,v){if(!Fe(g))throw new TypeError;return z(v)||(v=Kt(v)),Mi(y,g,v)}t("hasMetadata",kt);function Jt(y,g,v){if(!Fe(g))throw new TypeError;return z(v)||(v=Kt(v)),Ii(y,g,v)}t("hasOwnMetadata",Jt);function er(y,g,v){if(!Fe(g))throw new TypeError;return z(v)||(v=Kt(v)),ho(y,g,v)}t("getMetadata",er);function Yr(y,g,v){if(!Fe(g))throw new TypeError;return z(v)||(v=Kt(v)),bo(y,g,v)}t("getOwnMetadata",Yr);function ss(y,g){if(!Fe(y))throw new TypeError;return z(g)||(g=Kt(g)),Oo(y,g)}t("getMetadataKeys",ss);function cs(y,g){if(!Fe(y))throw new TypeError;return z(g)||(g=Kt(g)),Le(y,g)}t("getOwnMetadataKeys",cs);function as(y,g,v){if(!Fe(g))throw new TypeError;if(z(v)||(v=Kt(v)),!Fe(g))throw new TypeError;z(v)||(v=Kt(v));var T=l(g,v,!1);return z(T)?!1:T.OrdinaryDeleteMetadata(y,g,v)}t("deleteMetadata",as);function us(y,g){for(var v=y.length-1;v>=0;--v){var T=y[v],I=T(g);if(!z(I)&&!Cn(I)){if(!nr(I))throw new TypeError;g=I}}return g}function go(y,g,v,T){for(var I=y.length-1;I>=0;--I){var J=y[I],G=J(g,v,T);if(!z(G)&&!Cn(G)){if(!Fe(G))throw new TypeError;T=G}}return T}function Mi(y,g,v){var T=Ii(y,g,v);if(T)return!0;var I=$t(g);return Cn(I)?!1:Mi(y,I,v)}function Ii(y,g,v){var T=l(g,v,!1);return z(T)?!1:Qr(T.OrdinaryHasOwnMetadata(y,g,v))}function ho(y,g,v){var T=Ii(y,g,v);if(T)return bo(y,g,v);var I=$t(g);if(!Cn(I))return ho(y,I,v)}function bo(y,g,v){var T=l(g,v,!1);if(!z(T))return T.OrdinaryGetOwnMetadata(y,g,v)}function _o(y,g,v,T){var I=l(v,T,!0);I.OrdinaryDefineOwnMetadata(y,g,v,T)}function Oo(y,g){var v=Le(y,g),T=$t(y);if(T===null)return v;var I=Oo(T,g);if(I.length<=0)return v;if(v.length<=0)return I;for(var J=new w,G=[],ie=0,$=v;ie<$.length;ie++){var C=$[ie],F=J.has(C);F||(J.add(C),G.push(C))}for(var D=0,ce=I;D<ce.length;D++){var C=ce[D],F=J.has(C);F||(J.add(C),G.push(C))}return G}function Le(y,g){var v=l(y,g,!1);return v?v.OrdinaryOwnMetadataKeys(y,g):[]}function et(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 z(y){return y===void 0}function Cn(y){return y===null}function So(y){return typeof y=="symbol"}function Fe(y){return typeof y=="object"?y!==null:typeof y=="function"}function vo(y,g){switch(et(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 v="string",T=Zr(y,c);if(T!==void 0){var I=T.call(y,v);if(Fe(I))throw new TypeError;return I}return tr(y)}function tr(y,g){var v,T,I;{var J=y.toString;if(en(J)){var T=J.call(y);if(!Fe(T))return T}var v=y.valueOf;if(en(v)){var T=v.call(y);if(!Fe(T))return T}}throw new TypeError}function Qr(y){return!!y}function Ro(y){return""+y}function Kt(y){var g=vo(y);return So(g)?g:Ro(g)}function $i(y){return Array.isArray?Array.isArray(y):y instanceof Object?y instanceof Array:Object.prototype.toString.call(y)==="[object Array]"}function en(y){return typeof y=="function"}function nr(y){return typeof y=="function"}function ds(y){switch(et(y)){case 3:return!0;case 4:return!0;default:return!1}}function Ci(y,g){return y===g||y!==y&&g!==g}function Zr(y,g){var v=y[g];if(v!=null){if(!en(v))throw new TypeError;return v}}function Po(y){var g=Zr(y,u);if(!en(g))throw new TypeError;var v=g.call(y);if(!Fe(v))throw new TypeError;return v}function jo(y){return y.value}function Ui(y){var g=y.next();return g.done?!1:g}function mr(y){var g=y.return;g&&g.call(y)}function $t(y){var g=Object.getPrototypeOf(y);if(typeof y!="function"||y===U||g!==U)return g;var v=y.prototype,T=v&&Object.getPrototypeOf(v);if(T==null||T===Object.prototype)return g;var I=T.constructor;return typeof I!="function"||I===y?g:I}function Fi(){var y;!z(A)&&typeof n.Reflect<"u"&&!(A in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(y=ps(n.Reflect));var g,v,T,I=new M,J={registerProvider:G,getProvider:$,setProvider:F};return J;function G(D){if(!Object.isExtensible(J))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case y===D:break;case z(g):g=D;break;case g===D:break;case z(v):v=D;break;case v===D:break;default:T===void 0&&(T=new w),T.add(D);break}}function ie(D,ce){if(!z(g)){if(g.isProviderFor(D,ce))return g;if(!z(v)){if(v.isProviderFor(D,ce))return g;if(!z(T))for(var Ae=Po(T);;){var He=Ui(Ae);if(!He)return;var tn=jo(He);if(tn.isProviderFor(D,ce))return mr(Ae),tn}}}if(!z(y)&&y.isProviderFor(D,ce))return y}function $(D,ce){var Ae=I.get(D),He;return z(Ae)||(He=Ae.get(ce)),z(He)&&(He=ie(D,ce),z(He)||(z(Ae)&&(Ae=new N,I.set(D,Ae)),Ae.set(ce,He))),He}function C(D){if(z(D))throw new TypeError;return g===D||v===D||!z(T)&&T.has(D)}function F(D,ce,Ae){if(!C(Ae))throw new Error("Metadata provider not registered.");var He=$(D,ce);if(He!==Ae){if(!z(He))return!1;var tn=I.get(D);z(tn)&&(tn=new N,I.set(D,tn)),tn.set(ce,Ae)}return!0}}function fs(){var y;return!z(A)&&Fe(n.Reflect)&&Object.isExtensible(n.Reflect)&&(y=n.Reflect[A]),z(y)&&(y=Fi()),!z(A)&&Fe(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,A,{enumerable:!1,configurable:!1,writable:!1,value:y}),y}function hn(y){var g=new M,v={isProviderFor:function(C,F){var D=g.get(C);return z(D)?!1:D.has(F)},OrdinaryDefineOwnMetadata:G,OrdinaryHasOwnMetadata:I,OrdinaryGetOwnMetadata:J,OrdinaryOwnMetadataKeys:ie,OrdinaryDeleteMetadata:$};return W.registerProvider(v),v;function T(C,F,D){var ce=g.get(C),Ae=!1;if(z(ce)){if(!D)return;ce=new N,g.set(C,ce),Ae=!0}var He=ce.get(F);if(z(He)){if(!D)return;if(He=new N,ce.set(F,He),!y.setProvider(C,F,v))throw ce.delete(F),Ae&&g.delete(C),new Error("Wrong provider for target.")}return He}function I(C,F,D){var ce=T(F,D,!1);return z(ce)?!1:Qr(ce.has(C))}function J(C,F,D){var ce=T(F,D,!1);if(!z(ce))return ce.get(C)}function G(C,F,D,ce){var Ae=T(D,ce,!0);Ae.set(C,F)}function ie(C,F){var D=[],ce=T(C,F,!1);if(z(ce))return D;for(var Ae=ce.keys(),He=Po(Ae),tn=0;;){var nl=Ui(He);if(!nl)return D.length=tn,D;var Rm=jo(nl);try{D[tn]=Rm}catch(Pm){try{mr(He)}finally{throw Pm}}tn++}}function $(C,F,D){var ce=T(F,D,!1);if(z(ce)||!ce.delete(C))return!1;if(ce.size===0){var Ae=g.get(F);z(Ae)||(Ae.delete(D),Ae.size===0&&g.delete(Ae))}return!0}}function ps(y){var g=y.defineMetadata,v=y.hasOwnMetadata,T=y.getOwnMetadata,I=y.getOwnMetadataKeys,J=y.deleteMetadata,G=new M,ie={isProviderFor:function($,C){var F=G.get($);return!z(F)&&F.has(C)?!0:I($,C).length?(z(F)&&(F=new w,G.set($,F)),F.add(C),!0):!1},OrdinaryDefineOwnMetadata:g,OrdinaryHasOwnMetadata:v,OrdinaryGetOwnMetadata:T,OrdinaryOwnMetadataKeys:I,OrdinaryDeleteMetadata:J};return ie}function l(y,g,v){var T=W.getProvider(y,g);if(!z(T))return T;if(v){if(W.setProvider(y,g,V))return V;throw new Error("Illegal state.")}}function d(){var y={},g=[],v=function(){function ie($,C,F){this._index=0,this._keys=$,this._values=C,this._selector=F}return ie.prototype["@@iterator"]=function(){return this},ie.prototype[u]=function(){return this},ie.prototype.next=function(){var $=this._index;if($>=0&&$<this._keys.length){var C=this._selector(this._keys[$],this._values[$]);return $+1>=this._keys.length?(this._index=-1,this._keys=g,this._values=g):this._index++,{value:C,done:!1}}return{value:void 0,done:!0}},ie.prototype.throw=function($){throw this._index>=0&&(this._index=-1,this._keys=g,this._values=g),$},ie.prototype.return=function($){return this._index>=0&&(this._index=-1,this._keys=g,this._values=g),{value:$,done:!0}},ie}(),T=function(){function ie(){this._keys=[],this._values=[],this._cacheKey=y,this._cacheIndex=-2}return Object.defineProperty(ie.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),ie.prototype.has=function($){return this._find($,!1)>=0},ie.prototype.get=function($){var C=this._find($,!1);return C>=0?this._values[C]:void 0},ie.prototype.set=function($,C){var F=this._find($,!0);return this._values[F]=C,this},ie.prototype.delete=function($){var C=this._find($,!1);if(C>=0){for(var F=this._keys.length,D=C+1;D<F;D++)this._keys[D-1]=this._keys[D],this._values[D-1]=this._values[D];return this._keys.length--,this._values.length--,Ci($,this._cacheKey)&&(this._cacheKey=y,this._cacheIndex=-2),!0}return!1},ie.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=y,this._cacheIndex=-2},ie.prototype.keys=function(){return new v(this._keys,this._values,I)},ie.prototype.values=function(){return new v(this._keys,this._values,J)},ie.prototype.entries=function(){return new v(this._keys,this._values,G)},ie.prototype["@@iterator"]=function(){return this.entries()},ie.prototype[u]=function(){return this.entries()},ie.prototype._find=function($,C){if(!Ci(this._cacheKey,$)){this._cacheIndex=-1;for(var F=0;F<this._keys.length;F++)if(Ci(this._keys[F],$)){this._cacheIndex=F;break}}return this._cacheIndex<0&&C&&(this._cacheIndex=this._keys.length,this._keys.push($),this._values.push(void 0)),this._cacheIndex},ie}();return T;function I(ie,$){return ie}function J(ie,$){return $}function G(ie,$){return[ie,$]}}function p(){var y=function(){function g(){this._map=new N}return Object.defineProperty(g.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),g.prototype.has=function(v){return this._map.has(v)},g.prototype.add=function(v){return this._map.set(v,v),this},g.prototype.delete=function(v){return this._map.delete(v)},g.prototype.clear=function(){this._map.clear()},g.prototype.keys=function(){return this._map.keys()},g.prototype.values=function(){return this._map.keys()},g.prototype.entries=function(){return this._map.entries()},g.prototype["@@iterator"]=function(){return this.keys()},g.prototype[u]=function(){return this.keys()},g}();return y}function m(){var y=16,g=E.create(),v=T();return function(){function $(){this._key=T()}return $.prototype.has=function(C){var F=I(C,!1);return F!==void 0?E.has(F,this._key):!1},$.prototype.get=function(C){var F=I(C,!1);return F!==void 0?E.get(F,this._key):void 0},$.prototype.set=function(C,F){var D=I(C,!0);return D[this._key]=F,this},$.prototype.delete=function(C){var F=I(C,!1);return F!==void 0?delete F[this._key]:!1},$.prototype.clear=function(){this._key=T()},$}();function T(){var $;do $="@@WeakMap@@"+ie();while(E.has(g,$));return g[$]=!0,$}function I($,C){if(!o.call($,v)){if(!C)return;Object.defineProperty($,v,{value:E.create()})}return $[v]}function J($,C){for(var F=0;F<C;++F)$[F]=Math.random()*255|0;return $}function G($){if(typeof Uint8Array=="function"){var C=new Uint8Array($);return typeof crypto<"u"?crypto.getRandomValues(C):typeof msCrypto<"u"?msCrypto.getRandomValues(C):J(C,$),C}return J(new Array($),$)}function ie(){var $=G(y);$[6]=$[6]&79|64,$[8]=$[8]&191|128;for(var C="",F=0;F<y;++F){var D=$[F];(F===4||F===6||F===8)&&(C+="-"),D<16&&(C+="0"),C+=D.toString(16).toLowerCase()}return C}}function b(y){return y.__=void 0,delete y.__,y}})}(r||(r={})),ys}cl();class Di{constructor(e,t,n,o,i,c,u,P){s(this,"topic");s(this,"code");s(this,"version");s(this,"proto");s(this,"codec");s(this,"flags");s(this,"timeout");s(this,"meshable");s(this,"traits");this.topic=e,this.code=t,this.version=n,this.proto=o,this.codec=i,this.flags=c,this.timeout=u,this.meshable=P}decorate(e){this.traits=Object.getPrototypeOf(e.prototype).constructor,Ee.annotate(Di,e,e,this),Ee.register(Di,`${this.topic}.${this.code}`,e,this)}}function al(r="",e="",t="1.0.0",n="http2",o="protobuf",i=0,c=3e3,u=!0){const P=new Di(r,e,t,n,o,i,c,u);return P.decorate.bind(P)}class Fn{constructor(e,t,n,o){s(this,"value");s(this,"name");s(this,"transparent");s(this,"kind");s(this,"clas");s(this,"index",1e3);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 Un(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?Ee.annotate(Fn,`${t}:${n}`,e.constructor,this):Ee.annotate(Fn,t,e.constructor,this)}}function a(r=-1,e="",t=Object,n=!1){const o=new Fn(r,e,n,t);return o.decorate.bind(o)}class Xt{constructor(e,t,n,o){s(this,"name");s(this,"pattern");s(this,"priority");s(this,"prototype");this.name=e,this.pattern=t,this.priority=n,this.prototype=o}decorate(e){Ee.annotate(Xt,e,e,this),Ee.register(Xt,this.name,e,this)}}function H(r="",e="",t=0,n=!1){const o=new Xt(r,e,t,n);return o.decorate.bind(o)}class ke{constructor(e,t,n,o,i,c,u,P,R,S,E,U,N,w){s(this,"name");s(this,"version");s(this,"proto");s(this,"codec");s(this,"flags");s(this,"timeout");s(this,"retries");s(this,"mdc");s(this,"zone");s(this,"cluster");s(this,"cell");s(this,"group");s(this,"address");s(this,"kind");s(this,"retype");s(this,"attributes",new Map);this.name=e,this.version=t,this.proto=n,this.codec=o,this.flags=i,this.timeout=c,this.retries=u,this.mdc=P,this.zone=R,this.cluster=S,this.cell=E,this.group=U,this.address=N,this.retype=w}decorate(e,t,n){if(typeof t=="string"&&this.attributes.set("name",t),!n){this.kind=Reflect.getMetadata("design:type",e,t),Ee.annotate(ke,t,e,this);return}return this.kind=Reflect.getMetadata("design:returntype",e,t),Ee.annotate(ke,n.value,e.constructor,this),n}}function O(r="",e=Object,t=1e4,n="1.0.0",o="grpc",i="json",c=0,u=3,P="",R="",S="",E="",U="",N=""){const w=new ke(r,n,o,i,c,t,u,P,R,S,E,U,N,e);return w.decorate.bind(w)}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 u=r.length-1;u>=0;u--)(c=r[u])&&(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 dl=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,fl=/([^\s,]+)/g;f.MethodProxy=class{},f.MethodProxy=ul([H("mesh")],f.MethodProxy);class gs{constructor(e,t,n){s(this,"index");s(this,"name");s(this,"kind");this.index=e,this.name=t,this.kind=n}}class hs{constructor(e,t,n){s(this,"kind");s(this,"name");s(this,"method");this.kind=e,this.name=t,this.method=n}getAnnotation(e){return Ee.metadata(e,this.kind,this.method)}getName(){var t;const e=Ee.metadata(ke,this.kind,this.method);return((t=e==null?void 0:e.attributes)==null?void 0:t.get("name"))||this.name}getParameters(){const e=this.method.toString().replace(dl,""),t=e.slice(e.indexOf("(")+1,e.indexOf(")")).match(fl)||[],n=[];for(let o=0;o<t.length;o++){const i=Ee.metadata(Fn,this.kind,`${this.getName()}:${o}`);n.push(new gs(o,(i==null?void 0:i.name)||t[o],(i==null?void 0:i.clas)||Object))}return n}getType(){return this.kind}getReturnType(){var e;return new Un((e=Ee.metadata(ke,this.kind,this.method))==null?void 0:e.retype)}getExecutable(){return this.method}getSymbol(){return this.name}invoke(e,t){return this.method(...t)}}class pl{constructor(e,t,n){s(this,"inspector");s(this,"h");s(this,"proxy");this.inspector=e,this.h=t,this.proxy=n}apply(e,t,n){return this.h.invoke(this.proxy,this.inspector,n)}}class ll{constructor(e,t,n){s(this,"inspectors",new q);s(this,"executables",new q);for(let o of t)this.executables.set(o.getSymbol(),new Proxy(o.getExecutable(),new pl(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 ti{static newProxyInstance(e,t){var n,o,i;return this.proxies.get(e)||this.proxies.set(e,new q),(n=this.proxies.get(e))!=null&&n.get(t)||(o=this.proxies.get(e))==null||o.set(t,new Proxy(e,new ll(e,this.getMethods(e),t))),(i=this.proxies.get(e))==null?void 0:i.get(t)}static getMethods(e){return this.inspectors.computeIfy(e,t=>Ee.inspect(t).map((n,o)=>new hs(t,n,o)))}}s(ti,"proxies",new q),s(ti,"inspectors",new q);const lo=class lo{constructor(e,t){s(this,"name");s(this,"kind");s(this,"prototype");s(this,"priority");this.name=e,this.kind=t,this.prototype=!1,this.priority=1}getIfAbsent(){return this.prototype?this.create():lo.value.computeIfy(this.kind,e=>this.create())}create(){return new this.kind}};s(lo,"value",new q);let wo=lo,yl=class{constructor(e,t){s(this,"name","");s(this,"providers",[]);this.name=e,this.providers=t.map(n=>new wo(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()}};const yo=class yo{constructor(e){s(this,"providers",new q);s(this,"spi");s(this,"fist","");var t;this.spi=e,this.fist=((t=Ee.metadata(Xt,e,e))==null?void 0:t.name)||""}static load(e){return this.loaders.computeIfy(e,t=>new yo(e))}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=>Ee.providers(Xt,this.spi).groupBy(t=>{const n=Ee.metadata(Xt,t,t);return n&&n.name||""}).groupKV(t=>t,(t,n)=>new yl(t,n)))}};s(yo,"loaders",new q);let ze=yo;class ni{constructor(e,t,n,o,i,c){s(this,"name");s(this,"version");s(this,"proto");s(this,"codec");s(this,"flags");s(this,"timeout");s(this,"traits");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,Ee.annotate(ni,e,e,this),Ee.register(ni,this.name,e,this)}}function ml(r="",e="",t="grpc",n="json",o=0,i=1e4){const c=new ni(r,e,t,n,o,i);return c.decorate.bind(c)}function bs(r){return"getCode"in r&&"getMessage"in r}class ne extends Error{constructor(t,n){super(n);s(this,"code");s(this,"message");this.code=t,this.message=n}getCode(){return this.code}getMessage(){return this.message}}class h{}s(h,"SUCCESS",new ne("E0000000000","请求成功")),s(h,"NOT_FOUND",new ne("E0000000404","请求资源不存在")),s(h,"SYSTEM_ERROR",new ne("E0000000500","系统异常")),s(h,"SERVICE_UNAVAILABLE",new ne("E0000000503","循环请求服务不可达")),s(h,"VALIDATE",new ne("E0000000400","请求非法")),s(h,"UNAUTHORIZED",new ne("E0000000403","请求资源未被授权")),s(h,"UNKNOWN",new ne("E0000000520","未知异常")),s(h,"COMPATIBLE",new ne("E0000000600","系统不兼容")),s(h,"TIMEOUT",new ne("E0000000601","请求超时")),s(h,"NO_PROVIDER",new ne("E0000000602","无服务实例")),s(h,"CRYPT_ERROR",new ne("E0000000603","数字证书校验异常")),s(h,"TOKEN_EXPIRE",new ne("E0000000604","节点授权码已过期")),s(h,"NET_EXPIRE",new ne("E0000000605","节点组网时间已过期")),s(h,"NET_DISABLE",new ne("E0000000606","对方节点已禁用网络")),s(h,"NET_UNAVAILABLE",new ne("E0000000607","网络不通")),s(h,"LICENSE_FORMAT_ERROR",new ne("E0000000608","License非法")),s(h,"LICENSE_EXPIRED",new ne("E0000000609","License已过期")),s(h,"MAX_REPLICAS_LIMIT",new ne("E0000000610","集群副本已达许可上限")),s(h,"MAX_COOP_LIMIT",new ne("E0000000611","合作方链接数已达许可上限")),s(h,"MAX_TENANT_LIMIT",new ne("E0000000612","租户数已达许可上限")),s(h,"MAX_USER_LIMIT",new ne("E0000000613","用户数已达许可上限")),s(h,"URN_NOT_PERMIT",new ne("E0000000614","接口未被许可调用")),s(h,"SIGNATURE_ERROR",new ne("E0000000615","证书签名非法")),s(h,"CRYPT_CODEC_ERROR",new ne("E0000000616","报文编解码异常")),s(h,"NO_SERVICE",new ne("E0000000617","下游版本不匹配服务不存在")),s(h,"NET_NOT_WEAVE",new ne("E0000000618","节点或机构未组网")),s(h,"ADDRESS_ERROR",new ne("E0000000619","地址非法或无法访问")),s(h,"UNEXPECTED_SYNTAX",new ne("E0000000620","规则语法错误")),s(h,"UNKNOWN_SCRIPT",new ne("E0000000621","规则不存在")),s(h,"DATA_ID_ERROR",new ne("E0000000622","数据身份不存在或非法")),s(h,"START_PENDING",new ne("E0000000623","系统启动中")),s(h,"UNEXPECTED_SQL_SYNTAX",new ne("E0000000624","SQL语法错误")),s(h,"NO_DATABASE",new ne("E0000000625","数据库不存在")),s(h,"NO_TRANSACTION",new ne("E0000000626","事务不存在")),s(h,"SQL_EXECUTE_ERROR",new ne("E0000000627","SQL执行异常")),s(h,"DUPLICATE_KEY",new ne("E0000000628","唯一键冲突"));function ri(r){return console.log(r),h.SYSTEM_ERROR}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 u=r.length-1;u>=0;u--)(c=r[u])&&(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 It=class It{constructor(e){s(this,"v");this.v=e}matches(e){return(this.v&e)==this.v}};s(It,"Routine",new It(1)),s(It,"Perform",new It(2)),s(It,"Defense",new It(4)),s(It,"Debug",new It(8)),s(It,"LoadTest",new It(16)),s(It,"Mock",new It(32));let xi=It;class rr{constructor(e){s(this,"name");this.name=e}}class _s extends Array{peek(){if(!(this.length<1))return this.at(this.length-1)}}class Bi{}const se=class se{constructor(e){s(this,"key");this.key=e}get(e){var o,i,c;const t=(o=e.getAttachments())==null?void 0:o.get(this.key);if(t)return t;const n=(i=e.getAttachments())==null?void 0:i.get(this.key.replace("-","_"));if(n)return n;for(let u of(c=e.getAttachments())==null?void 0:c.entries())if(u[1]&&u[0]&&(u[0].toLowerCase()==this.key||u[0].replace("_","-").toLowerCase()==this.key))return u[1];return""}set(e,t){var n;(n=e.getAttachments())==null||n.set(this.key,t)}};s(se,"MESH_TRACE_ID",new se("mesh-trace-id")),s(se,"MESH_SPAN_ID",new se("mesh-span-id")),s(se,"MESH_TIMESTAMP",new se("mesh-timestamp")),s(se,"MESH_RUN_MODE",new se("mesh-mode")),s(se,"MESH_CONSUMER",new se("mesh-consumer")),s(se,"MESH_PROVIDER",new se("mesh-provider")),s(se,"MESH_URN",new se("mesh-urn")),s(se,"MESH_FROM_INST_ID",new se("mesh-from-inst-id")),s(se,"MESH_FROM_NODE_ID",new se("mesh-from-node-id")),s(se,"MESH_INCOMING_HOST",new se("mesh-incoming-host")),s(se,"MESH_OUTGOING_HOST",new se("mesh-outgoing-host")),s(se,"MESH_INCOMING_PROXY",new se("mesh-incoming-proxy")),s(se,"MESH_OUTGOING_PROXY",new se("mesh-outgoing-proxy")),s(se,"MESH_SUBSET",new se("mesh-subset")),s(se,"MESH_SESSION_ID",new se("mesh-session-id")),s(se,"MESH_VERSION",new se("mesh-version")),s(se,"MESH_TIMEOUT",new se("mesh-timeout"));let Li=se;f.ContextProvider=class{},f.ContextProvider=gl([H("mesh")],f.ContextProvider);function _(){return ze.load(f.ContextProvider).getDefault().context()}var he=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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)},Os,Ss,vs,Rs;class k{constructor(){s(this,"sid","");s(this,"index",0);s(this,"limit",0);s(this,"factor",{});s(this,"order","")}}he([a(0,"sid",String),be("design:type",String)],k.prototype,"sid",void 0),he([a(1,"index",Number),be("design:type",Number)],k.prototype,"index",void 0),he([a(2,"limit",Number),be("design:type",Number)],k.prototype,"limit",void 0),he([a(3,"factor",[Map,String,Object]),be("design:type",typeof(Os=typeof Record<"u"&&Record)=="function"?Os:Object)],k.prototype,"factor",void 0),he([a(4,"order",String),be("design:type",String)],k.prototype,"order",void 0);class Re{constructor(){s(this,"sid","");s(this,"index",0);s(this,"limit",0);s(this,"total",0);s(this,"next",!1);s(this,"data",[])}}he([a(0,"sid",String),be("design:type",String)],Re.prototype,"sid",void 0),he([a(1,"index",Number),be("design:type",Number)],Re.prototype,"index",void 0),he([a(2,"limit",Number),be("design:type",Number)],Re.prototype,"limit",void 0),he([a(3,"total",Number),be("design:type",Number)],Re.prototype,"total",void 0),he([a(4,"next",Boolean),be("design:type",Boolean)],Re.prototype,"next",void 0),he([a(5,"data",[Array,Object]),be("design:type",Array)],Re.prototype,"data",void 0);class ii{constructor(){s(this,"nodeId","");s(this,"nodeName","");s(this,"instId","");s(this,"instName","")}}he([a(0,"node_id",String),be("design:type",String)],ii.prototype,"nodeId",void 0),he([a(1,"node_name",String),be("design:type",String)],ii.prototype,"nodeName",void 0),he([a(2,"inst_id",String),be("design:type",String)],ii.prototype,"instId",void 0),he([a(3,"inst_name",String),be("design:type",String)],ii.prototype,"instName",void 0);class br{constructor(){s(this,"status",0);s(this,"createAt");s(this,"updateAt");s(this,"createBy","");s(this,"updateBy","")}}he([a(0,"status",Number),be("design:type",Number)],br.prototype,"status",void 0),he([a(1,"create_at",Date),be("design:type",typeof(Ss=typeof Date<"u"&&Date)=="function"?Ss:Object)],br.prototype,"createAt",void 0),he([a(2,"update_at",Date),be("design:type",typeof(vs=typeof Date<"u"&&Date)=="function"?vs:Object)],br.prototype,"updateAt",void 0),he([a(3,"create_by",String),be("design:type",String)],br.prototype,"createBy",void 0),he([a(4,"update_by",String),be("design:type",String)],br.prototype,"updateBy",void 0);class vt{constructor(){s(this,"name","");s(this,"pos","");s(this,"text","");s(this,"buff",new Uint8Array)}}he([a(0,"name",String),be("design:type",String)],vt.prototype,"name",void 0),he([a(1,"pos",String),be("design:type",String)],vt.prototype,"pos",void 0),he([a(2,"text",String),be("design:type",String)],vt.prototype,"text",void 0),he([a(3,"buff",Uint8Array),be("design:type",typeof(Rs=typeof Uint8Array<"u"&&Uint8Array)=="function"?Rs:Object)],vt.prototype,"buff",void 0);class Ue{constructor(){s(this,"topic","");s(this,"code","");s(this,"group","");s(this,"sets","")}}he([a(0,"topic",String),be("design:type",String)],Ue.prototype,"topic",void 0),he([a(1,"code",String),be("design:type",String)],Ue.prototype,"code",void 0),he([a(2,"group",String),be("design:type",String)],Ue.prototype,"group",void 0),he([a(3,"sets",String),be("design:type",String)],Ue.prototype,"sets",void 0);var Oe=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},Se=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Ps,js,ws,Es,Ts;class oi{constructor(){s(this,"suite","");s(this,"project","");s(this,"name","");s(this,"version","")}}Oe([a(0,"suite",String),Se("design:type",String)],oi.prototype,"suite",void 0),Oe([a(1,"project",String),Se("design:type",String)],oi.prototype,"project",void 0),Oe([a(2,"name",String),Se("design:type",String)],oi.prototype,"name",void 0),Oe([a(3,"version",String),Se("design:type",String)],oi.prototype,"version",void 0);class ut{constructor(){s(this,"name","");s(this,"proto","");s(this,"algo","");s(this,"parties",[]);s(this,"message","")}}Oe([a(0,"name",String),Se("design:type",String)],ut.prototype,"name",void 0),Oe([a(1,"proto",String),Se("design:type",String)],ut.prototype,"proto",void 0),Oe([a(2,"algo",String),Se("design:type",String)],ut.prototype,"algo",void 0),Oe([a(3,"parties",[Array,String]),Se("design:type",Array)],ut.prototype,"parties",void 0),Oe([a(4,"message",String),Se("design:type",String)],ut.prototype,"message",void 0);class ir{constructor(){s(this,"suite","");s(this,"csr",new Uint8Array)}}Oe([a(0,"suite",String),Se("design:type",String)],ir.prototype,"suite",void 0),Oe([a(1,"csr",Uint8Array),Se("design:type",typeof(Ps=typeof Uint8Array<"u"&&Uint8Array)=="function"?Ps:Object)],ir.prototype,"csr",void 0);class kn{constructor(){s(this,"hello",new ut);s(this,"suite",new ir);s(this,"local","")}}Oe([a(0,"hello",ut),Se("design:type",ut)],kn.prototype,"hello",void 0),Oe([a(1,"suite",ir),Se("design:type",ir)],kn.prototype,"suite",void 0),Oe([a(2,"local",String),Se("design:type",String)],kn.prototype,"local",void 0);class si extends kn{constructor(){super(...arguments);s(this,"keys",{})}}Oe([a(0,"keys",[Map,String,Uint8Array]),Se("design:type",typeof(js=typeof Record<"u"&&Record)=="function"?js:Object)],si.prototype,"keys",void 0);class Hi{constructor(){s(this,"keys",{})}}Oe([a(0,"keys",[Map,String,Uint8Array]),Se("design:type",typeof(ws=typeof Record<"u"&&Record)=="function"?ws:Object)],Hi.prototype,"keys",void 0);class nn{constructor(){s(this,"suite","");s(this,"body",new Uint8Array)}}Oe([a(0,"suite",String),Se("design:type",String)],nn.prototype,"suite",void 0),Oe([a(1,"body",Uint8Array),Se("design:type",typeof(Es=typeof Uint8Array<"u"&&Uint8Array)=="function"?Es:Object)],nn.prototype,"body",void 0);class ci extends nn{constructor(){super(...arguments);s(this,"reKey",new Uint8Array)}}Oe([a(0,"re_key",Uint8Array),Se("design:type",typeof(Ts=typeof Uint8Array<"u"&&Uint8Array)=="function"?Ts:Object)],ci.prototype,"reKey",void 0);class tt{constructor(){s(this,"code","");s(this,"name","");s(this,"memo","");s(this,"uri","");s(this,"level","");s(this,"nodeId","");s(this,"instId","");s(this,"raw","")}}Oe([a(0,"code",String),Se("design:type",String)],tt.prototype,"code",void 0),Oe([a(1,"name",String),Se("design:type",String)],tt.prototype,"name",void 0),Oe([a(2,"memo",String),Se("design:type",String)],tt.prototype,"memo",void 0),Oe([a(3,"uri",String),Se("design:type",String)],tt.prototype,"uri",void 0),Oe([a(4,"level",String),Se("design:type",String)],tt.prototype,"level",void 0),Oe([a(5,"node_id",String),Se("design:type",String)],tt.prototype,"nodeId",void 0),Oe([a(6,"inst_id",String),Se("design:type",String)],tt.prototype,"instId",void 0),Oe([a(7,"raw",String),Se("design:type",String)],tt.prototype,"raw",void 0);var Q=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},Z=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Ns,As;class Rt{constructor(){s(this,"id","");s(this,"name","");s(this,"modal","");s(this,"proto","");s(this,"url","");s(this,"memo","");s(this,"status",0)}}Q([a(0,"id",String),Z("design:type",String)],Rt.prototype,"id",void 0),Q([a(1,"name",String),Z("design:type",String)],Rt.prototype,"name",void 0),Q([a(2,"modal",String),Z("design:type",String)],Rt.prototype,"modal",void 0),Q([a(3,"proto",String),Z("design:type",String)],Rt.prototype,"proto",void 0),Q([a(4,"url",String),Z("design:type",String)],Rt.prototype,"url",void 0),Q([a(5,"memo",String),Z("design:type",String)],Rt.prototype,"memo",void 0),Q([a(6,"status",Number),Z("design:type",Number)],Rt.prototype,"status",void 0);class _r extends Rt{constructor(){super(...arguments);s(this,"role","");s(this,"rw",0);s(this,"ww",0);s(this,"failover",!1)}}Q([a(0,"role",String),Z("design:type",String)],_r.prototype,"role",void 0),Q([a(1,"rw",Number),Z("design:type",Number)],_r.prototype,"rw",void 0),Q([a(2,"ww",Number),Z("design:type",Number)],_r.prototype,"ww",void 0),Q([a(3,"failover",Boolean),Z("design:type",Boolean)],_r.prototype,"failover",void 0);class Ve{constructor(){s(this,"id","");s(this,"name","");s(this,"modal","");s(this,"keepalive",0);s(this,"retries",0);s(this,"rwmode",0);s(this,"failover",!1);s(this,"instances",[]);s(this,"status",0);s(this,"url","");s(this,"proto","");s(this,"gfs","")}}Q([a(0,"id",String),Z("design:type",String)],Ve.prototype,"id",void 0),Q([a(1,"name",String),Z("design:type",String)],Ve.prototype,"name",void 0),Q([a(2,"modal",String),Z("design:type",String)],Ve.prototype,"modal",void 0),Q([a(3,"keepalive",Number),Z("design:type",Number)],Ve.prototype,"keepalive",void 0),Q([a(4,"retries",Number),Z("design:type",Number)],Ve.prototype,"retries",void 0),Q([a(5,"rw_mode",Number),Z("design:type",Number)],Ve.prototype,"rwmode",void 0),Q([a(6,"failover",Boolean),Z("design:type",Boolean)],Ve.prototype,"failover",void 0),Q([a(7,"instances",[Array,_r]),Z("design:type",Array)],Ve.prototype,"instances",void 0),Q([a(8,"status",Number),Z("design:type",Number)],Ve.prototype,"status",void 0),Q([a(9,"url",String),Z("design:type",String)],Ve.prototype,"url",void 0),Q([a(10,"proto",String),Z("design:type",String)],Ve.prototype,"proto",void 0),Q([a(11,"gfs",String),Z("design:type",String)],Ve.prototype,"gfs",void 0);class or{constructor(){s(this,"id","");s(this,"expr","");s(this,"db","")}}Q([a(0,"id",String),Z("design:type",String)],or.prototype,"id",void 0),Q([a(1,"expr",String),Z("design:type",String)],or.prototype,"expr",void 0),Q([a(2,"db",String),Z("design:type",String)],or.prototype,"db",void 0);class Yt{constructor(){s(this,"id","");s(this,"name","");s(this,"memo","");s(this,"nodes",[]);s(this,"sides",{});s(this,"status",0)}}Q([a(0,"id",String),Z("design:type",String)],Yt.prototype,"id",void 0),Q([a(1,"name",String),Z("design:type",String)],Yt.prototype,"name",void 0),Q([a(2,"memo",String),Z("design:type",String)],Yt.prototype,"memo",void 0),Q([a(3,"nodes",[Array,String]),Z("design:type",Array)],Yt.prototype,"nodes",void 0),Q([a(4,"sides",[Map,String,String]),Z("design:type",typeof(Ns=typeof Record<"u"&&Record)=="function"?Ns:Object)],Yt.prototype,"sides",void 0),Q([a(5,"status",Number),Z("design:type",Number)],Yt.prototype,"status",void 0);class bn{constructor(){s(this,"id","");s(this,"name","");s(this,"modal","");s(this,"path","");s(this,"size",0);s(this,"lines",0);s(this,"createAt")}}Q([a(0,"id",String),Z("design:type",String)],bn.prototype,"id",void 0),Q([a(1,"name",String),Z("design:type",String)],bn.prototype,"name",void 0),Q([a(2,"modal",String),Z("design:type",String)],bn.prototype,"modal",void 0),Q([a(3,"path",String),Z("design:type",String)],bn.prototype,"path",void 0),Q([a(4,"size",Number),Z("design:type",Number)],bn.prototype,"size",void 0),Q([a(5,"lines",Number),Z("design:type",Number)],bn.prototype,"lines",void 0),Q([a(6,"create_at",Date),Z("design:type",typeof(As=typeof Date<"u"&&Date)=="function"?As:Object)],bn.prototype,"createAt",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 u=r.length-1;u>=0;u--)(c=r[u])&&(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)},Ms,Is;class Dn{constructor(){s(this,"metadata",{});s(this,"content","");s(this,"timestamp",0)}}rn([a(0,"metadata",[Map,String,String]),on("design:type",typeof(Ms=typeof Record<"u"&&Record)=="function"?Ms:Object)],Dn.prototype,"metadata",void 0),rn([a(1,"content",String),on("design:type",String)],Dn.prototype,"content",void 0),rn([a(2,"timestamp",Number),on("design:type",Number)],Dn.prototype,"timestamp",void 0);class xn{constructor(){s(this,"queries",{});s(this,"start",0);s(this,"end",0);s(this,"limit",0);s(this,"step","");s(this,"direction","");s(this,"routeKey","")}}rn([a(0,"queries",[Map,String,String]),on("design:type",typeof(Is=typeof Record<"u"&&Record)=="function"?Is:Object)],xn.prototype,"queries",void 0),rn([a(1,"start",Number),on("design:type",Number)],xn.prototype,"start",void 0),rn([a(2,"end",Number),on("design:type",Number)],xn.prototype,"end",void 0),rn([a(3,"limit",Number),on("design:type",Number)],xn.prototype,"limit",void 0),rn([a(4,"step",String),on("design:type",String)],xn.prototype,"step",void 0),rn([a(5,"direction",String),on("design:type",String)],xn.prototype,"direction",void 0),rn([a(6,"route_key",String),on("design:type",String)],xn.prototype,"routeKey",void 0);var dt=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},ft=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},$s,Cs,Us;class Me{constructor(){s(this,"codec","");s(this,"schema","");s(this,"buffer",new Uint8Array)}}dt([a(0,"codec",String),ft("design:type",String)],Me.prototype,"codec",void 0),dt([a(1,"schema",String),ft("design:type",String)],Me.prototype,"schema",void 0),dt([a(2,"buffer",Uint8Array),ft("design:type",typeof($s=typeof Uint8Array<"u"&&Uint8Array)=="function"?$s:Object)],Me.prototype,"buffer",void 0);class pt{constructor(){s(this,"version","");s(this,"entity",new Me);s(this,"timestamp",0);s(this,"duration",0);s(this,"key","")}}dt([a(0,"version",String),ft("design:type",String)],pt.prototype,"version",void 0),dt([a(1,"entity",Me),ft("design:type",Me)],pt.prototype,"entity",void 0),dt([a(2,"timestamp",Number),ft("design:type",Number)],pt.prototype,"timestamp",void 0),dt([a(3,"duration",Number),ft("design:type",Number)],pt.prototype,"duration",void 0),dt([a(4,"key",String),ft("design:type",String)],pt.prototype,"key",void 0);class ai{constructor(){s(this,"key","");s(this,"value",new Me);s(this,"updateAt")}}dt([a(0,"key",String),ft("design:type",String)],ai.prototype,"key",void 0),dt([a(1,"value",Me),ft("design:type",Me)],ai.prototype,"value",void 0),dt([a(2,"update_at",Date),ft("design:type",typeof(Cs=typeof Date<"u"&&Date)=="function"?Cs:Object)],ai.prototype,"updateAt",void 0);class Or{constructor(){s(this,"mno","");s(this,"kind","");s(this,"mime",new Uint8Array);s(this,"text","")}}dt([a(0,"mno",String),ft("design:type",String)],Or.prototype,"mno",void 0),dt([a(1,"kind",String),ft("design:type",String)],Or.prototype,"kind",void 0),dt([a(2,"mime",Uint8Array),ft("design:type",typeof(Us=typeof Uint8Array<"u"&&Uint8Array)=="function"?Us:Object)],Or.prototype,"mime",void 0),dt([a(3,"text",String),ft("design:type",String)],Or.prototype,"text",void 0);class hl{}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 u=r.length-1;u>=0;u--)(c=r[u])&&(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)};class _n{constructor(){s(this,"zone","");s(this,"cluster","");s(this,"cell","");s(this,"group","");s(this,"address","")}}Pt([a(0,"zone",String),jt("design:type",String)],_n.prototype,"zone",void 0),Pt([a(1,"cluster",String),jt("design:type",String)],_n.prototype,"cluster",void 0),Pt([a(2,"cell",String),jt("design:type",String)],_n.prototype,"cell",void 0),Pt([a(3,"group",String),jt("design:type",String)],_n.prototype,"group",void 0),Pt([a(4,"address",String),jt("design:type",String)],_n.prototype,"address",void 0);class qe{constructor(){s(this,"mdc","");s(this,"version","");s(this,"name","");s(this,"crt","");s(this,"key","");s(this,"rootCrt","");s(this,"lattice",new _n);s(this,"nodeID","");s(this,"instID","")}}Pt([a(0,"mdc",String),jt("design:type",String)],qe.prototype,"mdc",void 0),Pt([a(1,"version",String),jt("design:type",String)],qe.prototype,"version",void 0),Pt([a(2,"name",String),jt("design:type",String)],qe.prototype,"name",void 0),Pt([a(3,"crt",String),jt("design:type",String)],qe.prototype,"crt",void 0),Pt([a(4,"key",String),jt("design:type",String)],qe.prototype,"key",void 0),Pt([a(5,"root_crt",String),jt("design:type",String)],qe.prototype,"rootCrt",void 0),Pt([a(6,"lattice",_n),jt("design:type",_n)],qe.prototype,"lattice",void 0),Pt([a(7,"node_id",String),jt("design:type",String)],qe.prototype,"nodeID",void 0),Pt([a(8,"inst_id",String),jt("design:type",String)],qe.prototype,"instID",void 0);var Bn=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},Ln=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)};class lt{constructor(){s(this,"id","")}}Bn([a(0,"idc",String),Ln("design:type",String)],lt.prototype,"id",void 0);class Hn extends lt{constructor(){super(...arguments);s(this,"ip","");s(this,"port","");s(this,"host","");s(this,"name","")}}Bn([a(0,"ip",String),Ln("design:type",String)],Hn.prototype,"ip",void 0),Bn([a(1,"port",String),Ln("design:type",String)],Hn.prototype,"port",void 0),Bn([a(2,"host",String),Ln("design:type",String)],Hn.prototype,"host",void 0),Bn([a(3,"name",String),Ln("design:type",String)],Hn.prototype,"name",void 0);class qi{constructor(){s(this,"nodeId","");s(this,"instId","");s(this,"instName","")}}Bn([a(0,"node_id",String),Ln("design:type",String)],qi.prototype,"nodeId",void 0),Bn([a(1,"inst_id",String),Ln("design:type",String)],qi.prototype,"instId",void 0),Bn([a(2,"inst_name",String),Ln("design:type",String)],qi.prototype,"instName",void 0);var nt=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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)},Fs,ks,Ds,xs,Bs,Ls;class it{constructor(){s(this,"version","");s(this,"tid","");s(this,"sid","");s(this,"eid","");s(this,"mid","");s(this,"timestamp","");s(this,"source",new lt);s(this,"target",new lt);s(this,"binding",new Ue);s(this,"entity",new Me)}}nt([a(0,"version",String),rt("design:type",String)],it.prototype,"version",void 0),nt([a(1,"tid",String),rt("design:type",String)],it.prototype,"tid",void 0),nt([a(2,"sid",String),rt("design:type",String)],it.prototype,"sid",void 0),nt([a(3,"eid",String),rt("design:type",String)],it.prototype,"eid",void 0),nt([a(4,"mid",String),rt("design:type",String)],it.prototype,"mid",void 0),nt([a(5,"timestamp",String),rt("design:type",String)],it.prototype,"timestamp",void 0),nt([a(6,"source",lt),rt("design:type",typeof(Fs=typeof lt<"u"&&lt)=="function"?Fs:Object)],it.prototype,"source",void 0),nt([a(7,"target",lt),rt("design:type",typeof(ks=typeof lt<"u"&&lt)=="function"?ks:Object)],it.prototype,"target",void 0),nt([a(8,"binding",Ue),rt("design:type",typeof(Ds=typeof Ue<"u"&&Ue)=="function"?Ds:Object)],it.prototype,"binding",void 0),nt([a(9,"entity",Me),rt("design:type",typeof(xs=typeof Me<"u"&&Me)=="function"?xs:Object)],it.prototype,"entity",void 0);class sn{constructor(){s(this,"taskId","");s(this,"binding",new Ue);s(this,"status",0);s(this,"createAt",0);s(this,"invokeAt",0);s(this,"entity",new Me)}}nt([a(0,"task_id",String),rt("design:type",String)],sn.prototype,"taskId",void 0),nt([a(1,"binding",Ue),rt("design:type",typeof(Bs=typeof Ue<"u"&&Ue)=="function"?Bs:Object)],sn.prototype,"binding",void 0),nt([a(2,"status",Number),rt("design:type",Number)],sn.prototype,"status",void 0),nt([a(3,"create_at",Number),rt("design:type",Number)],sn.prototype,"createAt",void 0),nt([a(4,"invoke_at",Number),rt("design:type",Number)],sn.prototype,"invokeAt",void 0),nt([a(5,"entity",Me),rt("design:type",typeof(Ls=typeof Me<"u"&&Me)=="function"?Ls:Object)],sn.prototype,"entity",void 0);var Te=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},Ne=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Hs,qs,zs,Gs,Ws;class Ge{constructor(){s(this,"algo","");s(this,"domain","");s(this,"subject","");s(this,"length",0);s(this,"activeAt");s(this,"expireAt");s(this,"mail","");s(this,"isCA",!1);s(this,"caAlgo","");s(this,"caCert","");s(this,"caKey","");s(this,"ips",[]);s(this,"name","");s(this,"usage",0)}}Te([a(0,"algo",String),Ne("design:type",String)],Ge.prototype,"algo",void 0),Te([a(1,"domain",String),Ne("design:type",String)],Ge.prototype,"domain",void 0),Te([a(2,"subject",String),Ne("design:type",String)],Ge.prototype,"subject",void 0),Te([a(3,"length",Number),Ne("design:type",Number)],Ge.prototype,"length",void 0),Te([a(4,"active_at",Date),Ne("design:type",typeof(Hs=typeof Date<"u"&&Date)=="function"?Hs:Object)],Ge.prototype,"activeAt",void 0),Te([a(5,"expire_at",Date),Ne("design:type",typeof(qs=typeof Date<"u"&&Date)=="function"?qs:Object)],Ge.prototype,"expireAt",void 0),Te([a(6,"mail",String),Ne("design:type",String)],Ge.prototype,"mail",void 0),Te([a(7,"is_ca",Boolean),Ne("design:type",Boolean)],Ge.prototype,"isCA",void 0),Te([a(8,"ca_algo",String),Ne("design:type",String)],Ge.prototype,"caAlgo",void 0),Te([a(9,"ca_cert",String),Ne("design:type",String)],Ge.prototype,"caCert",void 0),Te([a(10,"ca_key",String),Ne("design:type",String)],Ge.prototype,"caKey",void 0),Te([a(11,"ips",[Array,String]),Ne("design:type",Array)],Ge.prototype,"ips",void 0),Te([a(12,"name",String),Ne("design:type",String)],Ge.prototype,"name",void 0),Te([a(13,"usage",Number),Ne("design:type",Number)],Ge.prototype,"usage",void 0);class Ct extends Ge{constructor(){super(...arguments);s(this,"crt","");s(this,"key","");s(this,"crl","");s(this,"id","")}}Te([a(0,"crt",String),Ne("design:type",String)],Ct.prototype,"crt",void 0),Te([a(1,"key",String),Ne("design:type",String)],Ct.prototype,"key",void 0),Te([a(2,"crl",String),Ne("design:type",String)],Ct.prototype,"crl",void 0),Te([a(3,"id",String),Ne("design:type",String)],Ct.prototype,"id",void 0);class Sr{constructor(){s(this,"id","");s(this,"reason",0)}}Te([a(0,"id",String),Ne("design:type",String)],Sr.prototype,"id",void 0),Te([a(1,"reason",Number),Ne("design:type",Number)],Sr.prototype,"reason",void 0);class sr{constructor(){s(this,"id","");s(this,"algo","");s(this,"expireAt")}}Te([a(0,"id",String),Ne("design:type",String)],sr.prototype,"id",void 0),Te([a(1,"algo",String),Ne("design:type",String)],sr.prototype,"algo",void 0),Te([a(2,"expire_at",Date),Ne("design:type",typeof(zs=typeof Date<"u"&&Date)=="function"?zs:Object)],sr.prototype,"expireAt",void 0);class Eo{constructor(){s(this,"crts",{});s(this,"roots",{})}}Te([a(0,"crts",[Map,String,Ct]),Ne("design:type",typeof(Gs=typeof Record<"u"&&Record)=="function"?Gs:Object)],Eo.prototype,"crts",void 0),Te([a(1,"roots",[Map,String,Ct]),Ne("design:type",typeof(Ws=typeof Record<"u"&&Record)=="function"?Ws:Object)],Eo.prototype,"roots",void 0);var Pe=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},je=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Vs,Js;class _e{constructor(){s(this,"version","");s(this,"level",0);s(this,"name","");s(this,"createBy","");s(this,"createAt",0);s(this,"activeAt",0);s(this,"factor","");s(this,"signature","");s(this,"muid","");s(this,"server","");s(this,"crt","");s(this,"group",[]);s(this,"replicas",0);s(this,"maxCooperators",0);s(this,"maxTenants",0);s(this,"maxUsers",0);s(this,"maxMills",0);s(this,"whiteURN",[]);s(this,"blackURN",[]);s(this,"superURN",[])}}Pe([a(0,"version",String),je("design:type",String)],_e.prototype,"version",void 0),Pe([a(1,"level",Number),je("design:type",Number)],_e.prototype,"level",void 0),Pe([a(2,"name",String),je("design:type",String)],_e.prototype,"name",void 0),Pe([a(3,"create_by",String),je("design:type",String)],_e.prototype,"createBy",void 0),Pe([a(4,"create_at",Number),je("design:type",Number)],_e.prototype,"createAt",void 0),Pe([a(5,"active_at",Number),je("design:type",Number)],_e.prototype,"activeAt",void 0),Pe([a(6,"factor",String),je("design:type",String)],_e.prototype,"factor",void 0),Pe([a(7,"signature",String),je("design:type",String)],_e.prototype,"signature",void 0),Pe([a(8,"muid",String),je("design:type",String)],_e.prototype,"muid",void 0),Pe([a(9,"server",String),je("design:type",String)],_e.prototype,"server",void 0),Pe([a(10,"crt",String),je("design:type",String)],_e.prototype,"crt",void 0),Pe([a(11,"group",[Array,String]),je("design:type",Array)],_e.prototype,"group",void 0),Pe([a(12,"replicas",Number),je("design:type",Number)],_e.prototype,"replicas",void 0),Pe([a(13,"max_cooperators",Number),je("design:type",Number)],_e.prototype,"maxCooperators",void 0),Pe([a(14,"max_tenants",Number),je("design:type",Number)],_e.prototype,"maxTenants",void 0),Pe([a(15,"max_users",Number),je("design:type",Number)],_e.prototype,"maxUsers",void 0),Pe([a(16,"max_mills",Number),je("design:type",Number)],_e.prototype,"maxMills",void 0),Pe([a(17,"white_urns",[Array,String]),je("design:type",Array)],_e.prototype,"whiteURN",void 0),Pe([a(18,"black_urns",[Array,String]),je("design:type",Array)],_e.prototype,"blackURN",void 0),Pe([a(19,"super_urns",[Array,String]),je("design:type",Array)],_e.prototype,"superURN",void 0);class vr{constructor(){s(this,"cipher","");s(this,"explain",new _e);s(this,"createAt")}}Pe([a(0,"cipher",String),je("design:type",String)],vr.prototype,"cipher",void 0),Pe([a(1,"explain",_e),je("design:type",_e)],vr.prototype,"explain",void 0),Pe([a(2,"create_at",Date),je("design:type",typeof(Vs=typeof Date<"u"&&Date)=="function"?Vs:Object)],vr.prototype,"createAt",void 0);class Rr{constructor(){s(this,"cipher","");s(this,"explain",new qe);s(this,"nodeKey","")}}Pe([a(0,"cipher",String),je("design:type",String)],Rr.prototype,"cipher",void 0),Pe([a(1,"explain",qe),je("design:type",typeof(Js=typeof qe<"u"&&qe)=="function"?Js:Object)],Rr.prototype,"explain",void 0),Pe([a(2,"node_key",String),je("design:type",String)],Rr.prototype,"nodeKey",void 0);var le=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},ye=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Ks,Xs;class Pr{constructor(){s(this,"mno","");s(this,"kind","");s(this,"mime",new Uint8Array);s(this,"text","")}}le([a(0,"mno",String),ye("design:type",String)],Pr.prototype,"mno",void 0),le([a(1,"kind",String),ye("design:type",String)],Pr.prototype,"kind",void 0),le([a(2,"mime",Uint8Array),ye("design:type",typeof(Ks=typeof Uint8Array<"u"&&Uint8Array)=="function"?Ks:Object)],Pr.prototype,"mime",void 0),le([a(3,"text",String),ye("design:type",String)],Pr.prototype,"text",void 0);class Dt{constructor(){s(this,"clientId","");s(this,"clientKey","");s(this,"username","");s(this,"password","");s(this,"captcha","")}}le([a(0,"client_id",String),ye("design:type",String)],Dt.prototype,"clientId",void 0),le([a(1,"client_key",String),ye("design:type",String)],Dt.prototype,"clientKey",void 0),le([a(2,"username",String),ye("design:type",String)],Dt.prototype,"username",void 0),le([a(3,"password",String),ye("design:type",String)],Dt.prototype,"password",void 0),le([a(4,"captcha",String),ye("design:type",String)],Dt.prototype,"captcha",void 0);class On{constructor(){s(this,"token","");s(this,"kind","");s(this,"expiresAt",0);s(this,"scope","");s(this,"refreshToken","")}}le([a(0,"token",String),ye("design:type",String)],On.prototype,"token",void 0),le([a(1,"type",String),ye("design:type",String)],On.prototype,"kind",void 0),le([a(2,"expires_at",Number),ye("design:type",Number)],On.prototype,"expiresAt",void 0),le([a(3,"scope",String),ye("design:type",String)],On.prototype,"scope",void 0),le([a(4,"refresh_token",String),ye("design:type",String)],On.prototype,"refreshToken",void 0);class To{constructor(){s(this,"code","")}}le([a(0,"code",String),ye("design:type",String)],To.prototype,"code",void 0);class zi{constructor(){s(this,"code","");s(this,"redirectURI","")}}le([a(0,"code",String),ye("design:type",String)],zi.prototype,"code",void 0),le([a(1,"redirect_uri",String),ye("design:type",String)],zi.prototype,"redirectURI",void 0);class Gi{constructor(){s(this,"clientId","");s(this,"userId","");s(this,"expiresAt",0)}}le([a(0,"client_id",String),ye("design:type",String)],Gi.prototype,"clientId",void 0),le([a(1,"user_id",String),ye("design:type",String)],Gi.prototype,"userId",void 0),le([a(2,"expires_at",Number),ye("design:type",Number)],Gi.prototype,"expiresAt",void 0);class yt{constructor(){s(this,"token","");s(this,"userid","");s(this,"username","");s(this,"nickname","");s(this,"avatar","");s(this,"mobile","");s(this,"mail","");s(this,"deptId","");s(this,"mdc","");s(this,"instIds",[]);s(this,"attrs",[]);s(this,"raw",{})}}le([a(0,"token",String),ye("design:type",String)],yt.prototype,"token",void 0),le([a(1,"userid",String),ye("design:type",String)],yt.prototype,"userid",void 0),le([a(2,"username",String),ye("design:type",String)],yt.prototype,"username",void 0),le([a(3,"nickname",String),ye("design:type",String)],yt.prototype,"nickname",void 0),le([a(4,"avatar",String),ye("design:type",String)],yt.prototype,"avatar",void 0),le([a(5,"mobile",String),ye("design:type",String)],yt.prototype,"mobile",void 0),le([a(6,"mail",String),ye("design:type",String)],yt.prototype,"mail",void 0),le([a(7,"dept_id",String),ye("design:type",String)],yt.prototype,"deptId",void 0),le([a(8,"mdc",String),ye("design:type",String)],yt.prototype,"mdc",void 0),le([a(9,"inst_ids",[Array,String]),ye("design:type",Array)],yt.prototype,"instIds",void 0),le([a(10,"attrs",[Array,String]),ye("design:type",Array)],yt.prototype,"attrs",void 0),le([a(11,"raw",[Map,String,String]),ye("design:type",typeof(Xs=typeof Record<"u"&&Record)=="function"?Xs:Object)],yt.prototype,"raw",void 0);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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},wr=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Ys,Qs;class No{constructor(){s(this,"arguments",[]);s(this,"attachments",{})}}jr([a(0,"arguments",[Array,Object]),wr("design:type",Array)],No.prototype,"arguments",void 0),jr([a(1,"attachments",[Map,String,String]),wr("design:type",typeof(Ys=typeof Record<"u"&&Record)=="function"?Ys:Object)],No.prototype,"attachments",void 0);class ui{constructor(){s(this,"code","");s(this,"message","");s(this,"cause",new vt);s(this,"content")}}jr([a(0,"code",String),wr("design:type",String)],ui.prototype,"code",void 0),jr([a(1,"message",String),wr("design:type",String)],ui.prototype,"message",void 0),jr([a(2,"cause",vt),wr("design:type",typeof(Qs=typeof vt<"u"&&vt)=="function"?Qs:Object)],ui.prototype,"cause",void 0),jr([a(3,"content",Object),wr("design:type",Object)],ui.prototype,"content",void 0);var ae=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},ue=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Zs,ec;class xt{constructor(){s(this,"version","");s(this,"proto","");s(this,"codec","");s(this,"mdc","");s(this,"zone","");s(this,"cluster","");s(this,"cell","");s(this,"group","");s(this,"address","")}}ae([a(0,"version",String),ue("design:type",String)],xt.prototype,"version",void 0),ae([a(1,"proto",String),ue("design:type",String)],xt.prototype,"proto",void 0),ae([a(2,"codec",String),ue("design:type",String)],xt.prototype,"codec",void 0),ae([a(3,"mdc",String),ue("design:type",String)],xt.prototype,"mdc",void 0),ae([a(4,"zone",String),ue("design:type",String)],xt.prototype,"zone",void 0),ae([a(5,"cluster",String),ue("design:type",String)],xt.prototype,"cluster",void 0),ae([a(6,"cell",String),ue("design:type",String)],xt.prototype,"cell",void 0),ae([a(7,"group",String),ue("design:type",String)],xt.prototype,"group",void 0),ae([a(8,"address",String),ue("design:type",String)],xt.prototype,"address",void 0);class cn extends xt{constructor(){super(...arguments);s(this,"urn","");s(this,"namespace","");s(this,"name","");s(this,"flags",0);s(this,"timeout",0);s(this,"retries",0)}}ae([a(0,"urn",String),ue("design:type",String)],cn.prototype,"urn",void 0),ae([a(1,"namespace",String),ue("design:type",String)],cn.prototype,"namespace",void 0),ae([a(2,"name",String),ue("design:type",String)],cn.prototype,"name",void 0),ae([a(3,"flags",Number),ue("design:type",Number)],cn.prototype,"flags",void 0),ae([a(4,"timeout",Number),ue("design:type",Number)],cn.prototype,"timeout",void 0),ae([a(5,"retries",Number),ue("design:type",Number)],cn.prototype,"retries",void 0);class wt extends xt{constructor(){super(...arguments);s(this,"urn","");s(this,"namespace","");s(this,"name","");s(this,"flags",0);s(this,"timeout",0);s(this,"retries",0);s(this,"sets","");s(this,"kind","");s(this,"lang","");s(this,"attrs",{})}}ae([a(0,"urn",String),ue("design:type",String)],wt.prototype,"urn",void 0),ae([a(1,"namespace",String),ue("design:type",String)],wt.prototype,"namespace",void 0),ae([a(2,"name",String),ue("design:type",String)],wt.prototype,"name",void 0),ae([a(3,"flags",Number),ue("design:type",Number)],wt.prototype,"flags",void 0),ae([a(4,"timeout",Number),ue("design:type",Number)],wt.prototype,"timeout",void 0),ae([a(5,"retries",Number),ue("design:type",Number)],wt.prototype,"retries",void 0),ae([a(6,"sets",String),ue("design:type",String)],wt.prototype,"sets",void 0),ae([a(7,"kind",String),ue("design:type",String)],wt.prototype,"kind",void 0),ae([a(8,"lang",String),ue("design:type",String)],wt.prototype,"lang",void 0),ae([a(9,"attrs",[Map,String,String]),ue("design:type",typeof(Zs=typeof Record<"u"&&Record)=="function"?Zs:Object)],wt.prototype,"attrs",void 0);class Ao{constructor(){s(this,"references",[]);s(this,"services",[])}}ae([a(0,"references",[Array,cn]),ue("design:type",Array)],Ao.prototype,"references",void 0),ae([a(1,"services",[Array,wt]),ue("design:type",Array)],Ao.prototype,"services",void 0);class ot{constructor(){s(this,"instanceId","");s(this,"name","");s(this,"kind","");s(this,"address","");s(this,"content");s(this,"timestamp",0);s(this,"attachments",{})}}ae([a(0,"instance_id",String),ue("design:type",String)],ot.prototype,"instanceId",void 0),ae([a(1,"name",String),ue("design:type",String)],ot.prototype,"name",void 0),ae([a(2,"kind",String),ue("design:type",String)],ot.prototype,"kind",void 0),ae([a(3,"address",String),ue("design:type",String)],ot.prototype,"address",void 0),ae([a(4,"content",Object),ue("design:type",Object)],ot.prototype,"content",void 0),ae([a(5,"timestamp",Number),ue("design:type",Number)],ot.prototype,"timestamp",void 0),ae([a(6,"attachments",[Map,String,String]),ue("design:type",typeof(ec=typeof Record<"u"&&Record)=="function"?ec:Object)],ot.prototype,"attachments",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 u=r.length-1;u>=0;u--)(c=r[u])&&(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)},tc,nc,rc;class de{constructor(){s(this,"sid","");s(this,"did","");s(this,"name","");s(this,"kind","");s(this,"pattern","");s(this,"address","");s(this,"memo","");s(this,"rank",0);s(this,"tags","");s(this,"expireAt");s(this,"upstream",0);s(this,"downstream",0);s(this,"requests",0);s(this,"hostRoot","");s(this,"hostCrt","");s(this,"hostKey","");s(this,"guestRoot","");s(this,"sap","");s(this,"skip",!1);s(this,"raw","");s(this,"status",0);s(this,"createAt");s(this,"updateAt");s(this,"createBy","");s(this,"updateBy","")}}x([a(0,"sid",String),B("design:type",String)],de.prototype,"sid",void 0),x([a(1,"did",String),B("design:type",String)],de.prototype,"did",void 0),x([a(2,"name",String),B("design:type",String)],de.prototype,"name",void 0),x([a(3,"kind",String),B("design:type",String)],de.prototype,"kind",void 0),x([a(4,"pattern",String),B("design:type",String)],de.prototype,"pattern",void 0),x([a(5,"address",String),B("design:type",String)],de.prototype,"address",void 0),x([a(6,"memo",String),B("design:type",String)],de.prototype,"memo",void 0),x([a(7,"rank",Number),B("design:type",Number)],de.prototype,"rank",void 0),x([a(8,"tags",String),B("design:type",String)],de.prototype,"tags",void 0),x([a(9,"expire_at",Date),B("design:type",typeof(tc=typeof Date<"u"&&Date)=="function"?tc:Object)],de.prototype,"expireAt",void 0),x([a(10,"upstream",Number),B("design:type",Number)],de.prototype,"upstream",void 0),x([a(11,"downstream",Number),B("design:type",Number)],de.prototype,"downstream",void 0),x([a(12,"requests",Number),B("design:type",Number)],de.prototype,"requests",void 0),x([a(13,"host_root",String),B("design:type",String)],de.prototype,"hostRoot",void 0),x([a(14,"host_crt",String),B("design:type",String)],de.prototype,"hostCrt",void 0),x([a(15,"host_key",String),B("design:type",String)],de.prototype,"hostKey",void 0),x([a(16,"guest_root",String),B("design:type",String)],de.prototype,"guestRoot",void 0),x([a(17,"sap",String),B("design:type",String)],de.prototype,"sap",void 0),x([a(18,"skip",Boolean),B("design:type",Boolean)],de.prototype,"skip",void 0),x([a(19,"raw",String),B("design:type",String)],de.prototype,"raw",void 0),x([a(20,"status",Number),B("design:type",Number)],de.prototype,"status",void 0),x([a(21,"create_at",Date),B("design:type",typeof(nc=typeof Date<"u"&&Date)=="function"?nc:Object)],de.prototype,"createAt",void 0),x([a(22,"update_at",Date),B("design:type",typeof(rc=typeof Date<"u"&&Date)=="function"?rc:Object)],de.prototype,"updateAt",void 0),x([a(23,"create_by",String),B("design:type",String)],de.prototype,"createBy",void 0),x([a(24,"update_by",String),B("design:type",String)],de.prototype,"updateBy",void 0);class Ut{constructor(){s(this,"sap","");s(this,"crt","");s(this,"key","");s(this,"cas",[]);s(this,"sni","");s(this,"skip",!1)}}x([a(0,"sap",String),B("design:type",String)],Ut.prototype,"sap",void 0),x([a(1,"crt",String),B("design:type",String)],Ut.prototype,"crt",void 0),x([a(2,"key",String),B("design:type",String)],Ut.prototype,"key",void 0),x([a(3,"cas",[Array,String]),B("design:type",Array)],Ut.prototype,"cas",void 0),x([a(4,"sni",String),B("design:type",String)],Ut.prototype,"sni",void 0),x([a(5,"skip",Boolean),B("design:type",Boolean)],Ut.prototype,"skip",void 0);class Sn{constructor(){s(this,"name","");s(this,"matcher","");s(this,"priority",0);s(this,"services",[]);s(this,"filters",[]);s(this,"proxy","");s(this,"option",new Ut)}}x([a(0,"name",String),B("design:type",String)],Sn.prototype,"name",void 0),x([a(1,"matcher",String),B("design:type",String)],Sn.prototype,"matcher",void 0),x([a(2,"priority",Number),B("design:type",Number)],Sn.prototype,"priority",void 0),x([a(3,"services",[Array,String]),B("design:type",Array)],Sn.prototype,"services",void 0),x([a(4,"filters",[Array,String]),B("design:type",Array)],Sn.prototype,"filters",void 0),x([a(5,"proxy",String),B("design:type",String)],Sn.prototype,"proxy",void 0),x([a(6,"option",Ut),B("design:type",Ut)],Sn.prototype,"option",void 0);class Er{constructor(){s(this,"name","");s(this,"kind","");s(this,"listen","");s(this,"routes",[]);s(this,"option",new Ut)}}x([a(0,"name",String),B("design:type",String)],Er.prototype,"name",void 0),x([a(1,"kind",String),B("design:type",String)],Er.prototype,"kind",void 0),x([a(2,"listen",String),B("design:type",String)],Er.prototype,"listen",void 0),x([a(3,"routes",[Array,Sn]),B("design:type",Array)],Er.prototype,"routes",void 0),x([a(4,"option",Ut),B("design:type",Ut)],Er.prototype,"option",void 0);class Wi{constructor(){s(this,"expr","");s(this,"value","")}}x([a(0,"expr",String),B("design:type",String)],Wi.prototype,"expr",void 0),x([a(1,"value",String),B("design:type",String)],Wi.prototype,"value",void 0);class qn{constructor(){s(this,"name","");s(this,"kind","");s(this,"layer","");s(this,"priority",0);s(this,"status",0);s(this,"memo","");s(this,"matchers",[])}}x([a(0,"name",String),B("design:type",String)],qn.prototype,"name",void 0),x([a(1,"kind",String),B("design:type",String)],qn.prototype,"kind",void 0),x([a(2,"layer",String),B("design:type",String)],qn.prototype,"layer",void 0),x([a(3,"priority",Number),B("design:type",Number)],qn.prototype,"priority",void 0),x([a(4,"status",Number),B("design:type",Number)],qn.prototype,"status",void 0),x([a(5,"memo",String),B("design:type",String)],qn.prototype,"memo",void 0),x([a(6,"matchers",[Array,Wi]),B("design:type",Array)],qn.prototype,"matchers",void 0);var an=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},un=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},ic;class zn{constructor(){s(this,"xid","");s(this,"timeout",0);s(this,"schema","");s(this,"flags",0)}}an([a(0,"xid",String),un("design:type",String)],zn.prototype,"xid",void 0),an([a(1,"timeout",Number),un("design:type",Number)],zn.prototype,"timeout",void 0),an([a(2,"schema",String),un("design:type",String)],zn.prototype,"schema",void 0),an([a(3,"flags",Number),un("design:type",Number)],zn.prototype,"flags",void 0);class dn{constructor(){s(this,"xid","");s(this,"schema","");s(this,"grammar","");s(this,"expr","");s(this,"args",{});s(this,"flags",0)}}an([a(0,"xid",String),un("design:type",String)],dn.prototype,"xid",void 0),an([a(1,"schema",String),un("design:type",String)],dn.prototype,"schema",void 0),an([a(2,"grammar",String),un("design:type",String)],dn.prototype,"grammar",void 0),an([a(3,"expr",String),un("design:type",String)],dn.prototype,"expr",void 0),an([a(4,"args",[Map,String,Object]),un("design:type",typeof(ic=typeof Record<"u"&&Record)=="function"?ic:Object)],dn.prototype,"args",void 0),an([a(5,"flags",Number),un("design:type",Number)],dn.prototype,"flags",void 0);var Tr=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},Nr=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},oc;class Bt{constructor(){s(this,"code","");s(this,"name","");s(this,"desc","");s(this,"kind","");s(this,"expr","");s(this,"attachment",{})}}Tr([a(0,"code",String),Nr("design:type",String)],Bt.prototype,"code",void 0),Tr([a(1,"name",String),Nr("design:type",String)],Bt.prototype,"name",void 0),Tr([a(2,"desc",String),Nr("design:type",String)],Bt.prototype,"desc",void 0),Tr([a(3,"kind",String),Nr("design:type",String)],Bt.prototype,"kind",void 0),Tr([a(4,"expr",String),Nr("design:type",String)],Bt.prototype,"expr",void 0),Tr([a(5,"attachment",[Map,String,String]),Nr("design:type",typeof(oc=typeof Record<"u"&&Record)=="function"?oc:Object)],Bt.prototype,"attachment",void 0);class sc{constructor(e,t,n){s(this,"code");s(this,"text");s(this,"color");this.code=e,this.text=t,this.color=n}}const Kr=class Kr{constructor(e){s(this,"values");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 sc(-1,"全部","")]]);for(let t=0;t<this.values.length;t++)e.set(this.values[t].text,this.values[t]);return e}};s(Kr,"Route",new Kr([{code:1,text:"已登记",color:"blue"},{code:2,text:"已禁用",color:"orange"},{code:4,text:"已启用",color:"green"}])),s(Kr,"Datasource",new Kr([{code:1,text:"已启用",color:"green"},{code:2,text:"已禁用",color:"orange"}]));let Mo=Kr;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 u=r.length-1;u>=0;u--)(c=r[u])&&(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)},cc;class di{constructor(){s(this,"index",0);s(this,"flag",0);s(this,"body",new Uint8Array)}}vn([a(0,"idx",Number),Rn("design:type",Number)],di.prototype,"index",void 0),vn([a(1,"flag",Number),Rn("design:type",Number)],di.prototype,"flag",void 0),vn([a(2,"body",Uint8Array),Rn("design:type",typeof(cc=typeof Uint8Array<"u"&&Uint8Array)=="function"?cc:Object)],di.prototype,"body",void 0);class Lt extends di{constructor(){super(...arguments);s(this,"bucket","");s(this,"src","");s(this,"rid","");s(this,"dst","");s(this,"sni","");s(this,"addr","")}}vn([a(0,"bucket",String),Rn("design:type",String)],Lt.prototype,"bucket",void 0),vn([a(1,"src",String),Rn("design:type",String)],Lt.prototype,"src",void 0),vn([a(2,"rid",String),Rn("design:type",String)],Lt.prototype,"rid",void 0),vn([a(3,"dst",String),Rn("design:type",String)],Lt.prototype,"dst",void 0),vn([a(4,"sni",String),Rn("design:type",String)],Lt.prototype,"sni",void 0),vn([a(5,"addr",String),Rn("design:type",String)],Lt.prototype,"addr",void 0);var ac=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},uc=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},dc;class fi{constructor(){s(this,"version","");s(this,"infos",{})}}ac([a(0,"version",String),uc("design:type",String)],fi.prototype,"version",void 0),ac([a(1,"infos",[Map,String,String]),uc("design:type",typeof(dc=typeof Record<"u"&&Record)=="function"?dc:Object)],fi.prototype,"infos",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 u=r.length-1;u>=0;u--)(c=r[u])&&(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)},fc,pc,lc,yc,mc;class Je{constructor(){s(this,"no","");s(this,"name","");s(this,"alias","")}}K([a(0,"no",String),X("design:type",String)],Je.prototype,"no",void 0),K([a(1,"name",String),X("design:type",String)],Je.prototype,"name",void 0),K([a(2,"alias",String),X("design:type",String)],Je.prototype,"alias",void 0);class Gn{constructor(){s(this,"bno","");s(this,"cno","");s(this,"context",{});s(this,"applier",new Je)}}K([a(0,"bno",String),X("design:type",String)],Gn.prototype,"bno",void 0),K([a(1,"cno",String),X("design:type",String)],Gn.prototype,"cno",void 0),K([a(2,"context",[Map,String,String]),X("design:type",typeof(fc=typeof Record<"u"&&Record)=="function"?fc:Object)],Gn.prototype,"context",void 0),K([a(3,"applier",Je),X("design:type",Je)],Gn.prototype,"applier",void 0);class Ye{constructor(){s(this,"name","");s(this,"alias","");s(this,"attrs",{});s(this,"kind",0);s(this,"group","")}}K([a(0,"name",String),X("design:type",String)],Ye.prototype,"name",void 0),K([a(1,"alias",String),X("design:type",String)],Ye.prototype,"alias",void 0),K([a(2,"attrs",[Map,String,String]),X("design:type",typeof(pc=typeof Record<"u"&&Record)=="function"?pc:Object)],Ye.prototype,"attrs",void 0),K([a(3,"kind",Number),X("design:type",Number)],Ye.prototype,"kind",void 0),K([a(4,"group",String),X("design:type",String)],Ye.prototype,"group",void 0);class pi{constructor(){s(this,"src","");s(this,"dst","");s(this,"condition","")}}K([a(0,"src",String),X("design:type",String)],pi.prototype,"src",void 0),K([a(1,"dst",String),X("design:type",String)],pi.prototype,"dst",void 0),K([a(2,"condition",String),X("design:type",String)],pi.prototype,"condition",void 0);class Et{constructor(){s(this,"cno","");s(this,"name","");s(this,"vertices",[]);s(this,"sides",[]);s(this,"status",0);s(this,"maintainer",new Je)}}K([a(0,"cno",String),X("design:type",String)],Et.prototype,"cno",void 0),K([a(1,"name",String),X("design:type",String)],Et.prototype,"name",void 0),K([a(2,"vertices",[Array,Ye]),X("design:type",Array)],Et.prototype,"vertices",void 0),K([a(3,"sides",[Array,pi]),X("design:type",Array)],Et.prototype,"sides",void 0),K([a(4,"status",Number),X("design:type",Number)],Et.prototype,"status",void 0),K([a(5,"maintainer",Je),X("design:type",Je)],Et.prototype,"maintainer",void 0);class Pn{constructor(){s(this,"vertex",new Ye);s(this,"reviewers",[]);s(this,"status",0);s(this,"context",{})}}K([a(0,"vertex",Ye),X("design:type",Ye)],Pn.prototype,"vertex",void 0),K([a(1,"reviewers",[Array,Je]),X("design:type",Array)],Pn.prototype,"reviewers",void 0),K([a(2,"status",Number),X("design:type",Number)],Pn.prototype,"status",void 0),K([a(3,"context",[Map,String,String]),X("design:type",typeof(lc=typeof Record<"u"&&Record)=="function"?lc:Object)],Pn.prototype,"context",void 0);class cr{constructor(){s(this,"rno","");s(this,"bno","");s(this,"context",{});s(this,"status",0);s(this,"chart",new Et);s(this,"tasks",[])}}K([a(0,"rno",String),X("design:type",String)],cr.prototype,"rno",void 0),K([a(1,"bno",String),X("design:type",String)],cr.prototype,"bno",void 0),K([a(2,"context",[Map,String,String]),X("design:type",typeof(yc=typeof Record<"u"&&Record)=="function"?yc:Object)],cr.prototype,"context",void 0),K([a(3,"status",Number),X("design:type",Number)],cr.prototype,"status",void 0),K([a(4,"chart",Et),X("design:type",Et)],cr.prototype,"chart",void 0),K([a(5,"tasks",[Array,Pn]),X("design:type",Array)],cr.prototype,"tasks",void 0);class jn{constructor(){s(this,"no","");s(this,"name","");s(this,"status",0);s(this,"workers",[])}}K([a(0,"no",String),X("design:type",String)],jn.prototype,"no",void 0),K([a(1,"name",String),X("design:type",String)],jn.prototype,"name",void 0),K([a(2,"status",Number),X("design:type",Number)],jn.prototype,"status",void 0),K([a(3,"workers",[Array,Je]),X("design:type",Array)],jn.prototype,"workers",void 0);class wn{constructor(){s(this,"rno","");s(this,"bno","");s(this,"cno","");s(this,"context",{});s(this,"vertex",new Ye);s(this,"task",new Pn);s(this,"applier",new Je);s(this,"reviewer",new Je)}}K([a(0,"rno",String),X("design:type",String)],wn.prototype,"rno",void 0),K([a(1,"bno",String),X("design:type",String)],wn.prototype,"bno",void 0),K([a(2,"cno",String),X("design:type",String)],wn.prototype,"cno",void 0),K([a(3,"context",[Map,String,String]),X("design:type",typeof(mc=typeof Record<"u"&&Record)=="function"?mc:Object)],wn.prototype,"context",void 0),K([a(4,"vertex",Ye),X("design:type",Ye)],wn.prototype,"vertex",void 0),K([a(5,"task",Pn),X("design:type",Pn)],wn.prototype,"task",void 0),K([a(6,"applier",Je),X("design:type",Je)],wn.prototype,"applier",void 0),K([a(7,"reviewer",Je),X("design:type",Je)],wn.prototype,"reviewer",void 0);var En=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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)},ar=function(r,e){return function(t,n){e(t,n,r)}},gc,hc,bc,_c,Oc,Sc,vc,Rc,Pc,jc;f.Builtin=class{doc(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}version(e=_()){return Promise.reject(h.URN_NOT_PERMIT)}debug(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}stats(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}fallback(e=_()){return Promise.reject(h.URN_NOT_PERMIT)}dump(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}},En([O("${mesh.name}.builtin.doc",String),ar(0,a(0,"name",String)),ar(1,a(1,"formatter",String)),Ie("design:type",Function),Ie("design:paramtypes",[String,String,Object]),Ie("design:returntype",typeof(gc=typeof Promise<"u"&&Promise)=="function"?gc:Object)],f.Builtin.prototype,"doc",null),En([O("${mesh.name}.builtin.version",fi),Ie("design:type",Function),Ie("design:paramtypes",[Object]),Ie("design:returntype",typeof(hc=typeof Promise<"u"&&Promise)=="function"?hc:Object)],f.Builtin.prototype,"version",null),En([O("${mesh.name}.builtin.debug",Object),ar(0,a(0,"features",[Map,String,String])),Ie("design:type",Function),Ie("design:paramtypes",[typeof(bc=typeof Record<"u"&&Record)=="function"?bc:Object,Object]),Ie("design:returntype",typeof(_c=typeof Promise<"u"&&Promise)=="function"?_c:Object)],f.Builtin.prototype,"debug",null),En([O("${mesh.name}.builtin.stats",[Map,String,String]),ar(0,a(0,"features",[Array,String])),Ie("design:type",Function),Ie("design:paramtypes",[Array,Object]),Ie("design:returntype",typeof(Oc=typeof Promise<"u"&&Promise)=="function"?Oc:Object)],f.Builtin.prototype,"stats",null),En([O("${mesh.name}.builtin.fallback",Object),Ie("design:type",Function),Ie("design:paramtypes",[Object]),Ie("design:returntype",typeof(Sc=typeof Promise<"u"&&Promise)=="function"?Sc:Object)],f.Builtin.prototype,"fallback",null),En([O("${mesh.name}.builtin.dump",[Map,String,String]),ar(0,a(0,"names",[Array,String])),Ie("design:type",Function),Ie("design:paramtypes",[Array,Object]),Ie("design:returntype",typeof(vc=typeof Promise<"u"&&Promise)=="function"?vc:Object)],f.Builtin.prototype,"dump",null),f.Builtin=En([H("mpi")],f.Builtin);class Io{stats(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}debug(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}dump(e=_()){return Promise.reject(h.URN_NOT_PERMIT)}}En([ar(0,a(0,"features",[Array,String])),Ie("design:type",Function),Ie("design:paramtypes",[Array,Object]),Ie("design:returntype",typeof(Rc=typeof Promise<"u"&&Promise)=="function"?Rc:Object)],Io.prototype,"stats",null),En([ar(0,a(0,"features",[Map,String,String])),Ie("design:type",Function),Ie("design:paramtypes",[typeof(Pc=typeof Record<"u"&&Record)=="function"?Pc:Object,Object]),Ie("design:returntype",typeof(jc=typeof Promise<"u"&&Promise)=="function"?jc:Object)],Io.prototype,"debug",null);var Qt=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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)},mt=function(r,e){return function(t,n){e(t,n,r)}},wc,Ec,Tc,Nc,Ac,Mc,Ic,$c,Cc,Uc,Fc,kc;f.Cache=class{get(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}put(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}remove(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}incr(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}decr(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}keys(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}hget(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}hset(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}hdel(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}hkeys(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}},Qt([O("mesh.cache.get",pt),mt(0,a(0,"key",String)),me("design:type",Function),me("design:paramtypes",[String,Object]),me("design:returntype",typeof(wc=typeof Promise<"u"&&Promise)=="function"?wc:Object)],f.Cache.prototype,"get",null),Qt([O("mesh.cache.put",Object),mt(0,a(0,"cell",pt)),me("design:type",Function),me("design:paramtypes",[typeof(Ec=typeof pt<"u"&&pt)=="function"?Ec:Object,Object]),me("design:returntype",typeof(Tc=typeof Promise<"u"&&Promise)=="function"?Tc:Object)],f.Cache.prototype,"put",null),Qt([O("mesh.cache.remove",Object),mt(0,a(0,"key",String)),me("design:type",Function),me("design:paramtypes",[String,Object]),me("design:returntype",typeof(Nc=typeof Promise<"u"&&Promise)=="function"?Nc:Object)],f.Cache.prototype,"remove",null),Qt([O("mesh.cache.incr",Number),mt(0,a(0,"key",String)),mt(1,a(1,"value",Number)),me("design:type",Function),me("design:paramtypes",[String,Number,Object]),me("design:returntype",typeof(Ac=typeof Promise<"u"&&Promise)=="function"?Ac:Object)],f.Cache.prototype,"incr",null),Qt([O("mesh.cache.decr",Number),mt(0,a(0,"key",String)),mt(1,a(1,"value",Number)),me("design:type",Function),me("design:paramtypes",[String,Number,Object]),me("design:returntype",typeof(Mc=typeof Promise<"u"&&Promise)=="function"?Mc:Object)],f.Cache.prototype,"decr",null),Qt([O("mesh.cache.keys",[Array,String]),mt(0,a(0,"pattern",String)),me("design:type",Function),me("design:paramtypes",[String,Object]),me("design:returntype",typeof(Ic=typeof Promise<"u"&&Promise)=="function"?Ic:Object)],f.Cache.prototype,"keys",null),Qt([O("mesh.cache.hget",pt),mt(0,a(0,"key",String)),mt(1,a(1,"name",String)),me("design:type",Function),me("design:paramtypes",[String,String,Object]),me("design:returntype",typeof($c=typeof Promise<"u"&&Promise)=="function"?$c:Object)],f.Cache.prototype,"hget",null),Qt([O("mesh.cache.hset",Object),mt(0,a(0,"key",String)),mt(1,a(1,"cell",pt)),me("design:type",Function),me("design:paramtypes",[String,typeof(Cc=typeof pt<"u"&&pt)=="function"?Cc:Object,Object]),me("design:returntype",typeof(Uc=typeof Promise<"u"&&Promise)=="function"?Uc:Object)],f.Cache.prototype,"hset",null),Qt([O("mesh.cache.hdel",Object),mt(0,a(0,"key",String)),mt(1,a(1,"name",String)),me("design:type",Function),me("design:paramtypes",[String,String,Object]),me("design:returntype",typeof(Fc=typeof Promise<"u"&&Promise)=="function"?Fc:Object)],f.Cache.prototype,"hdel",null),Qt([O("mesh.cache.hkeys",[Array,String]),mt(0,a(0,"key",String)),me("design:type",Function),me("design:paramtypes",[String,Object]),me("design:returntype",typeof(kc=typeof Promise<"u"&&Promise)=="function"?kc:Object)],f.Cache.prototype,"hkeys",null),f.Cache=Qt([H("mesh")],f.Cache);var st=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},ee=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)}},Dc,xc,Bc,Lc,Hc,qc,zc,Gc,Wc,Vc,Jc,Kc,Xc,Yc,Qc,Zc,ea,ta,na,ra,ia,oa,sa,ca,aa;f.CipherEconomy=class{handshake(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}collect(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}serve(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}deposit(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}objects(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}keys(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}invoke(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}},st([O("${mesh.name}.cipher.handshake",String),Ft(0,a(0,"hello",ut)),ee("design:type",Function),ee("design:paramtypes",[typeof(Dc=typeof ut<"u"&&ut)=="function"?Dc:Object,Object]),ee("design:returntype",typeof(xc=typeof Promise<"u"&&Promise)=="function"?xc:Object)],f.CipherEconomy.prototype,"handshake",null),st([O("${mesh.name}.cipher.collect",Number),Ft(0,a(0,"obj",tt)),ee("design:type",Function),ee("design:paramtypes",[typeof(Bc=typeof tt<"u"&&tt)=="function"?Bc:Object,Object]),ee("design:returntype",typeof(Lc=typeof Promise<"u"&&Promise)=="function"?Lc:Object)],f.CipherEconomy.prototype,"collect",null),st([O("${mesh.name}.cipher.encrypt",String),Ft(0,a(0,"suite",String)),ee("design:type",Function),ee("design:paramtypes",[String,Object]),ee("design:returntype",typeof(Hc=typeof Promise<"u"&&Promise)=="function"?Hc:Object)],f.CipherEconomy.prototype,"serve",null),st([O("mesh.rec.deposit",String),Ft(0,a(0,"rco",tt)),ee("design:type",Function),ee("design:paramtypes",[typeof(qc=typeof tt<"u"&&tt)=="function"?qc:Object,Object]),ee("design:returntype",typeof(zc=typeof Promise<"u"&&Promise)=="function"?zc:Object)],f.CipherEconomy.prototype,"deposit",null),st([O("mesh.rec.objects",[Re,tt]),Ft(0,a(0,"index",k)),ee("design:type",Function),ee("design:paramtypes",[typeof(Gc=typeof k<"u"&&k)=="function"?Gc:Object,Object]),ee("design:returntype",typeof(Wc=typeof Promise<"u"&&Promise)=="function"?Wc:Object)],f.CipherEconomy.prototype,"objects",null),st([O("${mesh.name}.cipher.keys",[Re,Ct]),Ft(0,a(0,"idx",k)),ee("design:type",Function),ee("design:paramtypes",[typeof(Vc=typeof k<"u"&&k)=="function"?Vc:Object,Object]),ee("design:returntype",typeof(Jc=typeof Promise<"u"&&Promise)=="function"?Jc:Object)],f.CipherEconomy.prototype,"keys",null),st([O("mesh.rec.invoke",Uint8Array),Ft(0,a(0,"index",k)),ee("design:type",Function),ee("design:paramtypes",[typeof(Kc=typeof k<"u"&&k)=="function"?Kc:Object,Object]),ee("design:returntype",typeof(Xc=typeof Promise<"u"&&Promise)=="function"?Xc:Object)],f.CipherEconomy.prototype,"invoke",null),f.CipherEconomy=st([H("mpi")],f.CipherEconomy),f.CipherProvider=class{suite(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}keygen(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}regen(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}encode(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}decode(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}recode(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}},st([O("${mesh.name}.cipher.suite",ir),Ft(0,a(0,"hello",ut)),ee("design:type",Function),ee("design:paramtypes",[typeof(Yc=typeof ut<"u"&&ut)=="function"?Yc:Object,Object]),ee("design:returntype",typeof(Qc=typeof Promise<"u"&&Promise)=="function"?Qc:Object)],f.CipherProvider.prototype,"suite",null),st([O("${mesh.name}.cipher.keygen",Hi),Ft(0,a(0,"keygen",kn)),ee("design:type",Function),ee("design:paramtypes",[typeof(Zc=typeof kn<"u"&&kn)=="function"?Zc:Object,Object]),ee("design:returntype",typeof(ea=typeof Promise<"u"&&Promise)=="function"?ea:Object)],f.CipherProvider.prototype,"keygen",null),st([O("${mesh.name}.cipher.regen",Hi),Ft(0,a(0,"keygen",si)),ee("design:type",Function),ee("design:paramtypes",[typeof(ta=typeof si<"u"&&si)=="function"?ta:Object,Object]),ee("design:returntype",typeof(na=typeof Promise<"u"&&Promise)=="function"?na:Object)],f.CipherProvider.prototype,"regen",null),st([O("${mesh.name}.cipher.encode",Uint8Array),Ft(0,a(0,"explain",nn)),ee("design:type",Function),ee("design:paramtypes",[typeof(ra=typeof nn<"u"&&nn)=="function"?ra:Object,Object]),ee("design:returntype",typeof(ia=typeof Promise<"u"&&Promise)=="function"?ia:Object)],f.CipherProvider.prototype,"encode",null),st([O("${mesh.name}.cipher.decode",Uint8Array),Ft(0,a(0,"cipher",nn)),ee("design:type",Function),ee("design:paramtypes",[typeof(oa=typeof nn<"u"&&nn)=="function"?oa:Object,Object]),ee("design:returntype",typeof(sa=typeof Promise<"u"&&Promise)=="function"?sa:Object)],f.CipherProvider.prototype,"decode",null),st([O("${mesh.name}.cipher.recode",Uint8Array),Ft(0,a(0,"cipher",ci)),ee("design:type",Function),ee("design:paramtypes",[typeof(ca=typeof ci<"u"&&ci)=="function"?ca:Object,Object]),ee("design:returntype",typeof(aa=typeof Promise<"u"&&Promise)=="function"?aa:Object)],f.CipherProvider.prototype,"recode",null),f.CipherProvider=st([H("mpi")],f.CipherProvider),f.ObjectProvider=class{serve(e=_()){return Promise.reject(h.URN_NOT_PERMIT)}},f.ObjectProvider=st([H("mpi")],f.ObjectProvider);var $o=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},Ar=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},bl=function(r,e){return function(t,n){e(t,n,r)}},ua,da,fa;f.Cluster=class{election(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}isLeader(e=_()){return Promise.reject(h.URN_NOT_PERMIT)}},$o([O("mesh.cluster.election",Uint8Array),bl(0,a(0,"buff",Uint8Array)),Ar("design:type",Function),Ar("design:paramtypes",[typeof(ua=typeof Uint8Array<"u"&&Uint8Array)=="function"?ua:Object,Object]),Ar("design:returntype",typeof(da=typeof Promise<"u"&&Promise)=="function"?da:Object)],f.Cluster.prototype,"election",null),$o([O("mesh.cluster.leader",Boolean),Ar("design:type",Function),Ar("design:paramtypes",[Object]),Ar("design:returntype",typeof(fa=typeof Promise<"u"&&Promise)=="function"?fa:Object)],f.Cluster.prototype,"isLeader",null),f.Cluster=$o([H("mpi")],f.Cluster);var li=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},Ht=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Mr=function(r,e){return function(t,n){e(t,n,r)}},pa,la,ya,ma,ga;f.Commercialize=class{sign(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}history(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}issued(e,t,n,o=_()){return Promise.reject(h.URN_NOT_PERMIT)}dump(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}},li([O("mesh.license.sign",vr),Mr(0,a(0,"lsr",_e)),Ht("design:type",Function),Ht("design:paramtypes",[typeof(pa=typeof _e<"u"&&_e)=="function"?pa:Object,Object]),Ht("design:returntype",typeof(la=typeof Promise<"u"&&Promise)=="function"?la:Object)],f.Commercialize.prototype,"sign",null),li([O("mesh.license.history",[Array,vr]),Mr(0,a(0,"inst_id",String)),Ht("design:type",Function),Ht("design:paramtypes",[String,Object]),Ht("design:returntype",typeof(ya=typeof Promise<"u"&&Promise)=="function"?ya:Object)],f.Commercialize.prototype,"history",null),li([O("mesh.net.issued",Rr),Mr(0,a(0,"name",String)),Mr(1,a(1,"kind",String)),Mr(2,a(2,"cname",String)),Ht("design:type",Function),Ht("design:paramtypes",[String,String,String,Object]),Ht("design:returntype",typeof(ma=typeof Promise<"u"&&Promise)=="function"?ma:Object)],f.Commercialize.prototype,"issued",null),li([O("mesh.net.dump",[Array,Rr]),Mr(0,a(0,"node_id",String)),Ht("design:type",Function),Ht("design:paramtypes",[String,Object]),Ht("design:returntype",typeof(ga=typeof Promise<"u"&&Promise)=="function"?ga:Object)],f.Commercialize.prototype,"dump",null),f.Commercialize=li([H("mpi")],f.Commercialize);var Ir=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},gt=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},fn=function(r,e){return function(t,n){e(t,n,r)}},ha,ba,_a,Oa,Sa,va,Ra,Pa,ja,wa,Ea,Ta,Na,Aa,Ma;f.Cryptor=class{encrypt(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}decrypt(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}hash(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}sign(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}verify(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}},Ir([O("mesh.crypt.encrypt",Uint8Array),fn(0,a(0,"buf",Uint8Array)),fn(1,a(1,"keys",[Map,String,Uint8Array])),gt("design:type",Function),gt("design:paramtypes",[typeof(ha=typeof Uint8Array<"u"&&Uint8Array)=="function"?ha:Object,typeof(ba=typeof Record<"u"&&Record)=="function"?ba:Object,Object]),gt("design:returntype",typeof(_a=typeof Promise<"u"&&Promise)=="function"?_a:Object)],f.Cryptor.prototype,"encrypt",null),Ir([O("mesh.crypt.decrypt",Uint8Array),fn(0,a(0,"buf",Uint8Array)),fn(1,a(1,"keys",[Map,String,Uint8Array])),gt("design:type",Function),gt("design:paramtypes",[typeof(Oa=typeof Uint8Array<"u"&&Uint8Array)=="function"?Oa:Object,typeof(Sa=typeof Record<"u"&&Record)=="function"?Sa:Object,Object]),gt("design:returntype",typeof(va=typeof Promise<"u"&&Promise)=="function"?va:Object)],f.Cryptor.prototype,"decrypt",null),Ir([O("mesh.crypt.hash",Uint8Array),fn(0,a(0,"buf",Uint8Array)),fn(1,a(1,"keys",[Map,String,Uint8Array])),gt("design:type",Function),gt("design:paramtypes",[typeof(Ra=typeof Uint8Array<"u"&&Uint8Array)=="function"?Ra:Object,typeof(Pa=typeof Record<"u"&&Record)=="function"?Pa:Object,Object]),gt("design:returntype",typeof(ja=typeof Promise<"u"&&Promise)=="function"?ja:Object)],f.Cryptor.prototype,"hash",null),Ir([O("mesh.crypt.sign",Uint8Array),fn(0,a(0,"buf",Uint8Array)),fn(1,a(1,"keys",[Map,String,Uint8Array])),gt("design:type",Function),gt("design:paramtypes",[typeof(wa=typeof Uint8Array<"u"&&Uint8Array)=="function"?wa:Object,typeof(Ea=typeof Record<"u"&&Record)=="function"?Ea:Object,Object]),gt("design:returntype",typeof(Ta=typeof Promise<"u"&&Promise)=="function"?Ta:Object)],f.Cryptor.prototype,"sign",null),Ir([O("mesh.crypt.verify",Boolean),fn(0,a(0,"buf",Uint8Array)),fn(1,a(1,"keys",[Map,String,Uint8Array])),gt("design:type",Function),gt("design:paramtypes",[typeof(Na=typeof Uint8Array<"u"&&Uint8Array)=="function"?Na:Object,typeof(Aa=typeof Record<"u"&&Record)=="function"?Aa:Object,Object]),gt("design:returntype",typeof(Ma=typeof Promise<"u"&&Promise)=="function"?Ma:Object)],f.Cryptor.prototype,"verify",null),f.Cryptor=Ir([H("mpi")],f.Cryptor);var Ke=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},L=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Qe=function(r,e){return function(t,n){e(t,n,r)}},Ia,$a,Ca,Ua,Fa,ka,Da,xa,Ba,La,Ha,qa,za,Ga,Wa,Va,Ja,Ka,Xa,Ya,Qa,Za,eu,tu,nu,ru;f.Daler=class{query(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}saveSource(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}indexSource(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}describeSource(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}removeSource(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}saveCluster(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}indexCluster(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}describeCluster(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}removeCluster(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}saveDTS(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}runDTS(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}indexDTS(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}removeDTS(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}toggleDTS(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}indexBinlog(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}tailBinlog(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}redoBinlog(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}},Ke([O("mesh.daler.ds.query",Object),Qe(0,a(0,"test",or)),L("design:type",Function),L("design:paramtypes",[typeof(Ia=typeof or<"u"&&or)=="function"?Ia:Object,Object]),L("design:returntype",typeof($a=typeof Promise<"u"&&Promise)=="function"?$a:Object)],f.Daler.prototype,"query",null),Ke([O("mesh.daler.ds.save",String),Qe(0,a(0,"ds",Rt)),L("design:type",Function),L("design:paramtypes",[typeof(Ca=typeof Rt<"u"&&Rt)=="function"?Ca:Object,Object]),L("design:returntype",typeof(Ua=typeof Promise<"u"&&Promise)=="function"?Ua:Object)],f.Daler.prototype,"saveSource",null),Ke([O("mesh.daler.ds.index",[Re,Rt]),Qe(0,a(0,"idx",k)),L("design:type",Function),L("design:paramtypes",[typeof(Fa=typeof k<"u"&&k)=="function"?Fa:Object,Object]),L("design:returntype",typeof(ka=typeof Promise<"u"&&Promise)=="function"?ka:Object)],f.Daler.prototype,"indexSource",null),Ke([O("mesh.daler.ds.describe",Rt),Qe(0,a(0,"id",String)),L("design:type",Function),L("design:paramtypes",[String,Object]),L("design:returntype",typeof(Da=typeof Promise<"u"&&Promise)=="function"?Da:Object)],f.Daler.prototype,"describeSource",null),Ke([O("mesh.daler.ds.remove",Object),Qe(0,a(0,"id",String)),L("design:type",Function),L("design:paramtypes",[String,Object]),L("design:returntype",typeof(xa=typeof Promise<"u"&&Promise)=="function"?xa:Object)],f.Daler.prototype,"removeSource",null),Ke([O("mesh.daler.cluster.save",String),Qe(0,a(0,"cluster",Ve)),L("design:type",Function),L("design:paramtypes",[typeof(Ba=typeof Ve<"u"&&Ve)=="function"?Ba:Object,Object]),L("design:returntype",typeof(La=typeof Promise<"u"&&Promise)=="function"?La:Object)],f.Daler.prototype,"saveCluster",null),Ke([O("mesh.daler.cluster.index",[Re,Ve]),Qe(0,a(0,"idx",k)),L("design:type",Function),L("design:paramtypes",[typeof(Ha=typeof k<"u"&&k)=="function"?Ha:Object,Object]),L("design:returntype",typeof(qa=typeof Promise<"u"&&Promise)=="function"?qa:Object)],f.Daler.prototype,"indexCluster",null),Ke([O("mesh.daler.cluster.describe",Ve),Qe(0,a(0,"id",String)),L("design:type",Function),L("design:paramtypes",[String,Object]),L("design:returntype",typeof(za=typeof Promise<"u"&&Promise)=="function"?za:Object)],f.Daler.prototype,"describeCluster",null),Ke([O("mesh.daler.cluster.remove",Object),Qe(0,a(0,"id",String)),L("design:type",Function),L("design:paramtypes",[String,Object]),L("design:returntype",typeof(Ga=typeof Promise<"u"&&Promise)=="function"?Ga:Object)],f.Daler.prototype,"removeCluster",null),Ke([O("mesh.daler.dts.save",String),Qe(0,a(0,"dts",Yt)),L("design:type",Function),L("design:paramtypes",[typeof(Wa=typeof Yt<"u"&&Yt)=="function"?Wa:Object,Object]),L("design:returntype",typeof(Va=typeof Promise<"u"&&Promise)=="function"?Va:Object)],f.Daler.prototype,"saveDTS",null),Ke([O("mesh.daler.dts.run",Object),Qe(0,a(0,"id",String)),L("design:type",Function),L("design:paramtypes",[String,Object]),L("design:returntype",typeof(Ja=typeof Promise<"u"&&Promise)=="function"?Ja:Object)],f.Daler.prototype,"runDTS",null),Ke([O("mesh.daler.dts.index",[Re,Yt]),Qe(0,a(0,"idx",k)),L("design:type",Function),L("design:paramtypes",[typeof(Ka=typeof k<"u"&&k)=="function"?Ka:Object,Object]),L("design:returntype",typeof(Xa=typeof Promise<"u"&&Promise)=="function"?Xa:Object)],f.Daler.prototype,"indexDTS",null),Ke([O("mesh.daler.dts.remove",Object),Qe(0,a(0,"id",String)),L("design:type",Function),L("design:paramtypes",[String,Object]),L("design:returntype",typeof(Ya=typeof Promise<"u"&&Promise)=="function"?Ya:Object)],f.Daler.prototype,"removeDTS",null),Ke([O("mesh.daler.dts.toggle",Object),Qe(0,a(0,"id",String)),L("design:type",Function),L("design:paramtypes",[String,Object]),L("design:returntype",typeof(Qa=typeof Promise<"u"&&Promise)=="function"?Qa:Object)],f.Daler.prototype,"toggleDTS",null),Ke([O("mesh.daler.binlog.index",[Re,bn]),Qe(0,a(0,"idx",k)),L("design:type",Function),L("design:paramtypes",[typeof(Za=typeof k<"u"&&k)=="function"?Za:Object,Object]),L("design:returntype",typeof(eu=typeof Promise<"u"&&Promise)=="function"?eu:Object)],f.Daler.prototype,"indexBinlog",null),Ke([O("mesh.daler.binlog.tail",[Re,[Map,String,String]]),Qe(0,a(0,"idx",k)),L("design:type",Function),L("design:paramtypes",[typeof(tu=typeof k<"u"&&k)=="function"?tu:Object,Object]),L("design:returntype",typeof(nu=typeof Promise<"u"&&Promise)=="function"?nu:Object)],f.Daler.prototype,"tailBinlog",null),Ke([O("mesh.daler.binlog.redo",Object),Qe(0,a(0,"id",String)),L("design:type",Function),L("design:paramtypes",[String,Object]),L("design:returntype",typeof(ru=typeof Promise<"u"&&Promise)=="function"?ru:Object)],f.Daler.prototype,"redoBinlog",null),f.Daler=Ke([H("mpi")],f.Daler);var $r=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},ht=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},yi=function(r,e){return function(t,n){e(t,n,r)}},iu,ou,su,cu,au,uu,du,fu,pu;f.DataHouse=class{writes(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}write(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}read(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}indies(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}tables(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}},$r([O("mesh.dh.writes",Object),yi(0,a(0,"docs",[Array,Dn])),ht("design:type",Function),ht("design:paramtypes",[Array,Object]),ht("design:returntype",typeof(iu=typeof Promise<"u"&&Promise)=="function"?iu:Object)],f.DataHouse.prototype,"writes",null),$r([O("mesh.dh.write",Object),yi(0,a(0,"doc",Dn)),ht("design:type",Function),ht("design:paramtypes",[typeof(ou=typeof Dn<"u"&&Dn)=="function"?ou:Object,Object]),ht("design:returntype",typeof(su=typeof Promise<"u"&&Promise)=="function"?su:Object)],f.DataHouse.prototype,"write",null),$r([O("mesh.dh.read",[Re,Object]),yi(0,a(0,"index",k)),ht("design:type",Function),ht("design:paramtypes",[typeof(cu=typeof k<"u"&&k)=="function"?cu:Object,Object]),ht("design:returntype",typeof(au=typeof Promise<"u"&&Promise)=="function"?au:Object)],f.DataHouse.prototype,"read",null),$r([O("mesh.dh.indies",[Re,Object]),yi(0,a(0,"index",k)),ht("design:type",Function),ht("design:paramtypes",[typeof(uu=typeof k<"u"&&k)=="function"?uu:Object,Object]),ht("design:returntype",typeof(du=typeof Promise<"u"&&Promise)=="function"?du:Object)],f.DataHouse.prototype,"indies",null),$r([O("mesh.dh.tables",[Re,Object]),yi(0,a(0,"index",k)),ht("design:type",Function),ht("design:paramtypes",[typeof(fu=typeof k<"u"&&k)=="function"?fu:Object,Object]),ht("design:returntype",typeof(pu=typeof Promise<"u"&&Promise)=="function"?pu:Object)],f.DataHouse.prototype,"tables",null),f.DataHouse=$r([H("mpi")],f.DataHouse);var Co=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},Cr=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Vi=function(r,e){return function(t,n){e(t,n,r)}},lu,yu,mu;f.Dispatcher=class{invoke(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}invoke0(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}},Co([Vi(0,a(0,"urn",String)),Vi(1,a(1,"param",[Map,String,Object])),Cr("design:type",Function),Cr("design:paramtypes",[String,typeof(lu=typeof Record<"u"&&Record)=="function"?lu:Object,Object]),Cr("design:returntype",typeof(yu=typeof Promise<"u"&&Promise)=="function"?yu:Object)],f.Dispatcher.prototype,"invoke",null),Co([Vi(0,a(0,"urn",String)),Vi(1,a(1,"param",Object)),Cr("design:type",Function),Cr("design:paramtypes",[String,Object,Object]),Cr("design:returntype",typeof(mu=typeof Promise<"u"&&Promise)=="function"?mu:Object)],f.Dispatcher.prototype,"invoke0",null),f.Dispatcher=Co([H("spi")],f.Dispatcher);var Uo=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},Ur=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},gu=function(r,e){return function(t,n){e(t,n,r)}},hu,bu,_u;f.Endpoint=class{fuzzy(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}},Uo([O("${mesh.uname}",Uint8Array),gu(0,a(0,"buff",Uint8Array)),Ur("design:type",Function),Ur("design:paramtypes",[typeof(hu=typeof Uint8Array<"u"&&Uint8Array)=="function"?hu:Object,Object]),Ur("design:returntype",typeof(bu=typeof Promise<"u"&&Promise)=="function"?bu:Object)],f.Endpoint.prototype,"fuzzy",null),f.Endpoint=Uo([H("mpi")],f.Endpoint);class Ou{stick(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}}Uo([gu(0,a(0,"varg",Object)),Ur("design:type",Function),Ur("design:paramtypes",[Object,Object]),Ur("design:returntype",typeof(_u=typeof Promise<"u"&&Promise)=="function"?_u:Object)],Ou.prototype,"stick",null);var mi=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},qt=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)}},Su,vu,Ru,Pu,ju,wu,Eu,Tu;f.Evaluator=class{compile(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}exec(e,t,n,o=_()){return Promise.reject(h.URN_NOT_PERMIT)}dump(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}index(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}},mi([O("mesh.eval.compile",String),Fr(0,a(0,"script",Bt)),qt("design:type",Function),qt("design:paramtypes",[typeof(Su=typeof Bt<"u"&&Bt)=="function"?Su:Object,Object]),qt("design:returntype",typeof(vu=typeof Promise<"u"&&Promise)=="function"?vu:Object)],f.Evaluator.prototype,"compile",null),mi([O("mesh.eval.exec",String),Fr(0,a(0,"code",String)),Fr(1,a(1,"args",[Map,String,String])),Fr(2,a(2,"dft",String)),qt("design:type",Function),qt("design:paramtypes",[String,typeof(Ru=typeof Record<"u"&&Record)=="function"?Ru:Object,String,Object]),qt("design:returntype",typeof(Pu=typeof Promise<"u"&&Promise)=="function"?Pu:Object)],f.Evaluator.prototype,"exec",null),mi([O("mesh.eval.dump",[Array,Bt]),Fr(0,a(0,"feature",[Map,String,String])),qt("design:type",Function),qt("design:paramtypes",[typeof(ju=typeof Record<"u"&&Record)=="function"?ju:Object,Object]),qt("design:returntype",typeof(wu=typeof Promise<"u"&&Promise)=="function"?wu:Object)],f.Evaluator.prototype,"dump",null),mi([O("mesh.eval.index",[Re,Bt]),Fr(0,a(0,"index",k)),qt("design:type",Function),qt("design:paramtypes",[typeof(Eu=typeof k<"u"&&k)=="function"?Eu:Object,Object]),qt("design:returntype",typeof(Tu=typeof Promise<"u"&&Promise)=="function"?Tu:Object)],f.Evaluator.prototype,"index",null),f.Evaluator=mi([H("mpi")],f.Evaluator);var Fo=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},kr=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Ji=function(r,e){return function(t,n){e(t,n,r)}},Nu,Au,Mu,Iu;f.Graph=class{query(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}exec(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}},Fo([O("mesh.graph.query",[Array,[Map,String,Object]]),Ji(0,a(0,"expr",String)),Ji(1,a(1,"args",[Map,String,Object])),kr("design:type",Function),kr("design:paramtypes",[String,typeof(Nu=typeof Record<"u"&&Record)=="function"?Nu:Object,Object]),kr("design:returntype",typeof(Au=typeof Promise<"u"&&Promise)=="function"?Au:Object)],f.Graph.prototype,"query",null),Fo([O("mesh.graph.exec",Object),Ji(0,a(0,"expr",String)),Ji(1,a(1,"args",[Map,String,Object])),kr("design:type",Function),kr("design:paramtypes",[String,typeof(Mu=typeof Record<"u"&&Record)=="function"?Mu:Object,Object]),kr("design:returntype",typeof(Iu=typeof Promise<"u"&&Promise)=="function"?Iu:Object)],f.Graph.prototype,"exec",null),f.Graph=Fo([H("mpi")],f.Graph);var pn=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},ve=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Tn=function(r,e){return function(t,n){e(t,n,r)}},$u,Cu,Uu,Fu,ku,Du,xu,Bu,Lu,Hu,qu,zu,Gu,Wu,Vu;f.KMS=class{reset(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}environ(e=_()){return Promise.reject(h.URN_NOT_PERMIT)}issue(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}index(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}revoke(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}rotate(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}remove(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}append(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}explain(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}},pn([O("mesh.kms.reset",Object),Tn(0,a(0,"env",qe)),ve("design:type",Function),ve("design:paramtypes",[typeof($u=typeof qe<"u"&&qe)=="function"?$u:Object,Object]),ve("design:returntype",typeof(Cu=typeof Promise<"u"&&Promise)=="function"?Cu:Object)],f.KMS.prototype,"reset",null),pn([O("mesh.kms.environ",qe),ve("design:type",Function),ve("design:paramtypes",[Object]),ve("design:returntype",typeof(Uu=typeof Promise<"u"&&Promise)=="function"?Uu:Object)],f.KMS.prototype,"environ",null),pn([O("mesh.kms.crt.issue",Ct),Tn(0,a(0,"csr",Ge)),ve("design:type",Function),ve("design:paramtypes",[typeof(Fu=typeof Ge<"u"&&Ge)=="function"?Fu:Object,Object]),ve("design:returntype",typeof(ku=typeof Promise<"u"&&Promise)=="function"?ku:Object)],f.KMS.prototype,"issue",null),pn([O("mesh.kms.crt.index",[Re,Ct]),Tn(0,a(0,"idx",k)),ve("design:type",Function),ve("design:paramtypes",[typeof(Du=typeof k<"u"&&k)=="function"?Du:Object,Object]),ve("design:returntype",typeof(xu=typeof Promise<"u"&&Promise)=="function"?xu:Object)],f.KMS.prototype,"index",null),pn([O("mesh.kms.crt.revoke",Object),Tn(0,a(0,"crr",Sr)),ve("design:type",Function),ve("design:paramtypes",[typeof(Bu=typeof Sr<"u"&&Sr)=="function"?Bu:Object,Object]),ve("design:returntype",typeof(Lu=typeof Promise<"u"&&Promise)=="function"?Lu:Object)],f.KMS.prototype,"revoke",null),pn([O("mesh.kms.crt.rotate",Object),Tn(0,a(0,"crr",sr)),ve("design:type",Function),ve("design:paramtypes",[typeof(Hu=typeof sr<"u"&&sr)=="function"?Hu:Object,Object]),ve("design:returntype",typeof(qu=typeof Promise<"u"&&Promise)=="function"?qu:Object)],f.KMS.prototype,"rotate",null),pn([O("mesh.kms.crt.remove",Object),Tn(0,a(0,"id",String)),ve("design:type",Function),ve("design:paramtypes",[String,Object]),ve("design:returntype",typeof(zu=typeof Promise<"u"&&Promise)=="function"?zu:Object)],f.KMS.prototype,"remove",null),pn([O("mesh.kms.crt.append",Object),Tn(0,a(0,"car",Ct)),ve("design:type",Function),ve("design:paramtypes",[typeof(Gu=typeof Ct<"u"&&Ct)=="function"?Gu:Object,Object]),ve("design:returntype",typeof(Wu=typeof Promise<"u"&&Promise)=="function"?Wu:Object)],f.KMS.prototype,"append",null),pn([O("mesh.kms.crt.explain",String),Tn(0,a(0,"algo",String)),Tn(1,a(1,"keys",String)),ve("design:type",Function),ve("design:paramtypes",[String,String,Object]),ve("design:returntype",typeof(Vu=typeof Promise<"u"&&Promise)=="function"?Vu:Object)],f.KMS.prototype,"explain",null),f.KMS=pn([H("mpi")],f.KMS);var Dr=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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)},xr=function(r,e){return function(t,n){e(t,n,r)}},Ju,Ku,Xu,Yu,Qu,Zu,ed;f.KV=class{get(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}put(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}remove(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}keys(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}index(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}},Dr([O("mesh.kv.get",Me),xr(0,a(0,"key",String)),bt("design:type",Function),bt("design:paramtypes",[String,Object]),bt("design:returntype",typeof(Ju=typeof Promise<"u"&&Promise)=="function"?Ju:Object)],f.KV.prototype,"get",null),Dr([O("mesh.kv.put",Object),xr(0,a(0,"key",String)),xr(1,a(1,"value",Me)),bt("design:type",Function),bt("design:paramtypes",[String,typeof(Ku=typeof Me<"u"&&Me)=="function"?Ku:Object,Object]),bt("design:returntype",typeof(Xu=typeof Promise<"u"&&Promise)=="function"?Xu:Object)],f.KV.prototype,"put",null),Dr([O("mesh.kv.remove",Object),xr(0,a(0,"key",String)),bt("design:type",Function),bt("design:paramtypes",[String,Object]),bt("design:returntype",typeof(Yu=typeof Promise<"u"&&Promise)=="function"?Yu:Object)],f.KV.prototype,"remove",null),Dr([O("mesh.kv.keys",[Array,String]),xr(0,a(0,"pattern",String)),bt("design:type",Function),bt("design:paramtypes",[String,Object]),bt("design:returntype",typeof(Qu=typeof Promise<"u"&&Promise)=="function"?Qu:Object)],f.KV.prototype,"keys",null),Dr([O("mesh.kv.index",[Re,ai]),xr(0,a(0,"index",k)),bt("design:type",Function),bt("design:paramtypes",[typeof(Zu=typeof k<"u"&&k)=="function"?Zu:Object,Object]),bt("design:returntype",typeof(ed=typeof Promise<"u"&&Promise)=="function"?ed:Object)],f.KV.prototype,"index",null),f.KV=Dr([H("mesh")],f.KV);var Br=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},_t=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)}},td,nd,rd,id,od;f.Licenser=class{imports(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}exports(e=_()){return Promise.reject(h.URN_NOT_PERMIT)}explain(e=_()){return Promise.reject(h.URN_NOT_PERMIT)}verify(e=_()){return Promise.reject(h.URN_NOT_PERMIT)}features(e=_()){return Promise.reject(h.URN_NOT_PERMIT)}},Br([O("mesh.license.imports",Object),_l(0,a(0,"license",String)),_t("design:type",Function),_t("design:paramtypes",[String,Object]),_t("design:returntype",typeof(td=typeof Promise<"u"&&Promise)=="function"?td:Object)],f.Licenser.prototype,"imports",null),Br([O("mesh.license.exports",String),_t("design:type",Function),_t("design:paramtypes",[Object]),_t("design:returntype",typeof(nd=typeof Promise<"u"&&Promise)=="function"?nd:Object)],f.Licenser.prototype,"exports",null),Br([O("mesh.license.explain",_e),_t("design:type",Function),_t("design:paramtypes",[Object]),_t("design:returntype",typeof(rd=typeof Promise<"u"&&Promise)=="function"?rd:Object)],f.Licenser.prototype,"explain",null),Br([O("mesh.license.verify",Number),_t("design:type",Function),_t("design:paramtypes",[Object]),_t("design:returntype",typeof(id=typeof Promise<"u"&&Promise)=="function"?id:Object)],f.Licenser.prototype,"verify",null),Br([O("mesh.license.features",[Map,String,String]),_t("design:type",Function),_t("design:paramtypes",[Object]),_t("design:returntype",typeof(od=typeof Promise<"u"&&Promise)=="function"?od:Object)],f.Licenser.prototype,"features",null),f.Licenser=Br([H("mpi")],f.Licenser);var gi=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},zt=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Lr=function(r,e){return function(t,n){e(t,n,r)}},sd,cd,ad,ud;f.Locker=class{lock(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}unlock(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}readLock(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}readUnlock(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}},gi([O("mesh.locker.w.lock",Boolean),Lr(0,a(0,"rid",String)),Lr(1,a(1,"timeout",Number)),zt("design:type",Function),zt("design:paramtypes",[String,Number,Object]),zt("design:returntype",typeof(sd=typeof Promise<"u"&&Promise)=="function"?sd:Object)],f.Locker.prototype,"lock",null),gi([O("mesh.locker.w.unlock",Object),Lr(0,a(0,"rid",String)),zt("design:type",Function),zt("design:paramtypes",[String,Object]),zt("design:returntype",typeof(cd=typeof Promise<"u"&&Promise)=="function"?cd:Object)],f.Locker.prototype,"unlock",null),gi([O("mesh.locker.r.lock",Boolean),Lr(0,a(0,"rid",String)),Lr(1,a(1,"timeout",Number)),zt("design:type",Function),zt("design:paramtypes",[String,Number,Object]),zt("design:returntype",typeof(ad=typeof Promise<"u"&&Promise)=="function"?ad:Object)],f.Locker.prototype,"readLock",null),gi([O("mesh.locker.r.unlock",Object),Lr(0,a(0,"rid",String)),zt("design:type",Function),zt("design:paramtypes",[String,Object]),zt("design:returntype",typeof(ud=typeof Promise<"u"&&Promise)=="function"?ud:Object)],f.Locker.prototype,"readUnlock",null),f.Locker=gi([H("mpi")],f.Locker);var Gt=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},fe=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Nn=function(r,e){return function(t,n){e(t,n,r)}},dd,fd,pd,ld,yd,md,gd,hd,bd,_d,Od,Sd,vd;f.Network=class{environ(e=_()){return Promise.reject(h.URN_NOT_PERMIT)}accessible(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}refresh(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}route(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}routes(e=_()){return Promise.reject(h.URN_NOT_PERMIT)}disable(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}enable(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}index(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}version(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}exports(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}imports(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}},Gt([O("mesh.net.environ",qe),fe("design:type",Function),fe("design:paramtypes",[Object]),fe("design:returntype",typeof(dd=typeof Promise<"u"&&Promise)=="function"?dd:Object)],f.Network.prototype,"environ",null),Gt([O("mesh.net.accessible",Boolean),Nn(0,a(0,"route",de)),fe("design:type",Function),fe("design:paramtypes",[typeof(fd=typeof de<"u"&&de)=="function"?fd:Object,Object]),fe("design:returntype",typeof(pd=typeof Promise<"u"&&Promise)=="function"?pd:Object)],f.Network.prototype,"accessible",null),Gt([O("mesh.net.refresh",Object),Nn(0,a(0,"routes",[Array,de])),fe("design:type",Function),fe("design:paramtypes",[Array,Object]),fe("design:returntype",typeof(ld=typeof Promise<"u"&&Promise)=="function"?ld:Object)],f.Network.prototype,"refresh",null),Gt([O("mesh.net.route",de),Nn(0,a(0,"mdc",String)),fe("design:type",Function),fe("design:paramtypes",[String,Object]),fe("design:returntype",typeof(yd=typeof Promise<"u"&&Promise)=="function"?yd:Object)],f.Network.prototype,"route",null),Gt([O("mesh.net.routes",[Array,de]),fe("design:type",Function),fe("design:paramtypes",[Object]),fe("design:returntype",typeof(md=typeof Promise<"u"&&Promise)=="function"?md:Object)],f.Network.prototype,"routes",null),Gt([O("mesh.net.disable",Object),Nn(0,a(0,"mdc",String)),fe("design:type",Function),fe("design:paramtypes",[String,Object]),fe("design:returntype",typeof(gd=typeof Promise<"u"&&Promise)=="function"?gd:Object)],f.Network.prototype,"disable",null),Gt([O("mesh.net.enable",Object),Nn(0,a(0,"mdc",String)),fe("design:type",Function),fe("design:paramtypes",[String,Object]),fe("design:returntype",typeof(hd=typeof Promise<"u"&&Promise)=="function"?hd:Object)],f.Network.prototype,"enable",null),Gt([O("mesh.net.index",[Re,de]),Nn(0,a(0,"index",k)),fe("design:type",Function),fe("design:paramtypes",[typeof(bd=typeof k<"u"&&k)=="function"?bd:Object,Object]),fe("design:returntype",typeof(_d=typeof Promise<"u"&&Promise)=="function"?_d:Object)],f.Network.prototype,"index",null),Gt([O("mesh.net.version",fi),Nn(0,a(0,"mdc",String)),fe("design:type",Function),fe("design:paramtypes",[String,Object]),fe("design:returntype",typeof(Od=typeof Promise<"u"&&Promise)=="function"?Od:Object)],f.Network.prototype,"version",null),Gt([O("mesh.net.exports",String),Nn(0,a(0,"mdc",String)),fe("design:type",Function),fe("design:paramtypes",[String,Object]),fe("design:returntype",typeof(Sd=typeof Promise<"u"&&Promise)=="function"?Sd:Object)],f.Network.prototype,"exports",null),Gt([O("mesh.net.imports",Object),Nn(0,a(0,"crt",String)),fe("design:type",Function),fe("design:paramtypes",[String,Object]),fe("design:returntype",typeof(vd=typeof Promise<"u"&&Promise)=="function"?vd:Object)],f.Network.prototype,"imports",null),f.Network=Gt([H("mpi")],f.Network);var hi=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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)},Wn=function(r,e){return function(t,n){e(t,n,r)}},Rd,Pd,jd,wd,Ed,Td;f.Pipeline=class{peek(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}pop(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}push(e,t,n,o=_()){return Promise.reject(h.URN_NOT_PERMIT)}release(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}},hi([O("mesh.chan.peek",Uint8Array),Wn(0,a(0,"topic",String)),Wt("design:type",Function),Wt("design:paramtypes",[String,Object]),Wt("design:returntype",typeof(Rd=typeof Promise<"u"&&Promise)=="function"?Rd:Object)],f.Pipeline.prototype,"peek",null),hi([O("mesh.chan.pop",Uint8Array),Wn(0,a(0,"timeout",Number)),Wn(1,a(1,"topic",String)),Wt("design:type",Function),Wt("design:paramtypes",[Number,String,Object]),Wt("design:returntype",typeof(Pd=typeof Promise<"u"&&Promise)=="function"?Pd:Object)],f.Pipeline.prototype,"pop",null),hi([O("mesh.chan.push",Object),Wn(0,a(0,"payload",Uint8Array)),Wn(1,a(1,"metadata",[Map,String,String])),Wn(2,a(2,"topic",String)),Wt("design:type",Function),Wt("design:paramtypes",[typeof(jd=typeof Uint8Array<"u"&&Uint8Array)=="function"?jd:Object,typeof(wd=typeof Record<"u"&&Record)=="function"?wd:Object,String,Object]),Wt("design:returntype",typeof(Ed=typeof Promise<"u"&&Promise)=="function"?Ed:Object)],f.Pipeline.prototype,"push",null),hi([O("mesh.chan.release",Object),Wn(0,a(0,"timeout",Number)),Wn(1,a(1,"topic",String)),Wt("design:type",Function),Wt("design:paramtypes",[Number,String,Object]),Wt("design:returntype",typeof(Td=typeof Promise<"u"&&Promise)=="function"?Td:Object)],f.Pipeline.prototype,"release",null),f.Pipeline=hi([H("mpi")],f.Pipeline);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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},Hr=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Nd=function(r,e){return function(t,n){e(t,n,r)}},Ad,Md;f.Publisher=class{publish(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}broadcast(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}},ko([O("mesh.queue.publish",[Array,String]),Nd(0,a(0,"events",[Array,it])),Hr("design:type",Function),Hr("design:paramtypes",[Array,Object]),Hr("design:returntype",typeof(Ad=typeof Promise<"u"&&Promise)=="function"?Ad:Object)],f.Publisher.prototype,"publish",null),ko([O("mesh.queue.multicast",[Array,String]),Nd(0,a(0,"events",[Array,it])),Hr("design:type",Function),Hr("design:paramtypes",[Array,Object]),Hr("design:returntype",typeof(Md=typeof Promise<"u"&&Promise)=="function"?Md:Object)],f.Publisher.prototype,"broadcast",null),f.Publisher=ko([H("mpi")],f.Publisher);var bi=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},Vt=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)}},Id,$d,Cd,Ud,Fd,kd;f.Registry=class{register(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}registers(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}unregister(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}export(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}},bi([O("mesh.registry.put",Object),Ki(0,a(0,"registration",[ot,Object])),Vt("design:type",Function),Vt("design:paramtypes",[typeof(Id=typeof ot<"u"&&ot)=="function"?Id:Object,Object]),Vt("design:returntype",typeof($d=typeof Promise<"u"&&Promise)=="function"?$d:Object)],f.Registry.prototype,"register",null),bi([O("mesh.registry.puts",Object),Ki(0,a(0,"registrations",[Array,[ot,Object]])),Vt("design:type",Function),Vt("design:paramtypes",[Array,Object]),Vt("design:returntype",typeof(Cd=typeof Promise<"u"&&Promise)=="function"?Cd:Object)],f.Registry.prototype,"registers",null),bi([O("mesh.registry.remove",Object),Ki(0,a(0,"registration",[ot,Object])),Vt("design:type",Function),Vt("design:paramtypes",[typeof(Ud=typeof ot<"u"&&ot)=="function"?Ud:Object,Object]),Vt("design:returntype",typeof(Fd=typeof Promise<"u"&&Promise)=="function"?Fd:Object)],f.Registry.prototype,"unregister",null),bi([O("mesh.registry.export",[Array,[ot,Object]]),Ki(0,a(0,"kind",String)),Vt("design:type",Function),Vt("design:paramtypes",[String,Object]),Vt("design:returntype",typeof(kd=typeof Promise<"u"&&Promise)=="function"?kd:Object)],f.Registry.prototype,"export",null),f.Registry=bi([H("mpi")],f.Registry);var qr=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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)},_i=function(r,e){return function(t,n){e(t,n,r)}},Dd,xd,Bd,Ld,Hd,qd,zd;class Oi{with(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}withMap(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}local(e=_()){return Promise.reject(h.URN_NOT_PERMIT)}any(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}many(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}}qr([_i(0,a(0,"key",String)),_i(1,a(1,"value",String)),Tt("design:type",Function),Tt("design:paramtypes",[String,String,Object]),Tt("design:returntype",typeof(Dd=typeof Promise<"u"&&Promise)=="function"?Dd:Object)],Oi.prototype,"with",null),qr([_i(0,a(0,"attachments",[Map,String,String])),Tt("design:type",Function),Tt("design:paramtypes",[typeof(xd=typeof Record<"u"&&Record)=="function"?xd:Object,Object]),Tt("design:returntype",typeof(Bd=typeof Promise<"u"&&Promise)=="function"?Bd:Object)],Oi.prototype,"withMap",null),qr([_i(0,a(0,"principal",lt)),Tt("design:type",Function),Tt("design:paramtypes",[typeof(Ld=typeof lt<"u"&&lt)=="function"?Ld:Object,Object]),Tt("design:returntype",typeof(Hd=typeof Promise<"u"&&Promise)=="function"?Hd:Object)],Oi.prototype,"any",null),qr([_i(0,a(0,"principals",[Array,lt])),Tt("design:type",Function),Tt("design:paramtypes",[Array,Object]),Tt("design:returntype",typeof(qd=typeof Promise<"u"&&Promise)=="function"?qd:Object)],Oi.prototype,"many",null);class Do{constructor(){s(this,"reference");s(this,"attachments",{})}}qr([a(0,"reference",Object),Tt("design:type",Object)],Do.prototype,"reference",void 0),qr([a(1,"attachments",[Map,String,String]),Tt("design:type",typeof(zd=typeof Record<"u"&&Record)=="function"?zd:Object)],Do.prototype,"attachments",void 0);var zr=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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)},Si=function(r,e){return function(t,n){e(t,n,r)}},Gd,Wd,Vd,Jd,Kd,Xd,Yd,Qd;f.Savepoint=class{begin(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}commit(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}rollback(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}execute(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}redo(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}},zr([O("mesh.savepoint.begin",String),Si(0,a(0,"definition",zn)),Ot("design:type",Function),Ot("design:paramtypes",[typeof(Gd=typeof zn<"u"&&zn)=="function"?Gd:Object,Object]),Ot("design:returntype",typeof(Wd=typeof Promise<"u"&&Promise)=="function"?Wd:Object)],f.Savepoint.prototype,"begin",null),zr([O("mesh.savepoint.commit",Object),Si(0,a(0,"xid",String)),Ot("design:type",Function),Ot("design:paramtypes",[String,Object]),Ot("design:returntype",typeof(Vd=typeof Promise<"u"&&Promise)=="function"?Vd:Object)],f.Savepoint.prototype,"commit",null),zr([O("mesh.savepoint.rollback",Object),Si(0,a(0,"xid",String)),Ot("design:type",Function),Ot("design:paramtypes",[String,Object]),Ot("design:returntype",typeof(Jd=typeof Promise<"u"&&Promise)=="function"?Jd:Object)],f.Savepoint.prototype,"rollback",null),zr([O("mesh.savepoint.execute",Uint8Array),Si(0,a(0,"branch",dn)),Ot("design:type",Function),Ot("design:paramtypes",[typeof(Kd=typeof dn<"u"&&dn)=="function"?Kd:Object,Object]),Ot("design:returntype",typeof(Xd=typeof Promise<"u"&&Promise)=="function"?Xd:Object)],f.Savepoint.prototype,"execute",null),zr([O("mesh.savepoint.redo",Object),Si(0,a(0,"commit",Uint8Array)),Ot("design:type",Function),Ot("design:paramtypes",[typeof(Yd=typeof Uint8Array<"u"&&Uint8Array)=="function"?Yd:Object,Object]),Ot("design:returntype",typeof(Qd=typeof Promise<"u"&&Promise)=="function"?Qd:Object)],f.Savepoint.prototype,"redo",null),f.Savepoint=zr([H("mpi")],f.Savepoint);var An=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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)},ln=function(r,e){return function(t,n){e(t,n,r)}},Zd,ef,tf,nf,rf,of,sf,cf,af,uf,df,ff;f.Scheduler=class{timeout(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}cron(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}period(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}dump(e=_()){return Promise.reject(h.URN_NOT_PERMIT)}cancel(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}stop(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}emit(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}shutdown(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}},An([O("mesh.schedule.timeout",String),ln(0,a(0,"timeout",sn)),ln(1,a(1,"duration",Number)),$e("design:type",Function),$e("design:paramtypes",[typeof(Zd=typeof sn<"u"&&sn)=="function"?Zd:Object,Number,Object]),$e("design:returntype",typeof(ef=typeof Promise<"u"&&Promise)=="function"?ef:Object)],f.Scheduler.prototype,"timeout",null),An([O("mesh.schedule.cron",String),ln(0,a(0,"cron",String)),ln(1,a(1,"topic",Ue)),$e("design:type",Function),$e("design:paramtypes",[String,typeof(tf=typeof Ue<"u"&&Ue)=="function"?tf:Object,Object]),$e("design:returntype",typeof(nf=typeof Promise<"u"&&Promise)=="function"?nf:Object)],f.Scheduler.prototype,"cron",null),An([O("mesh.schedule.period",String),ln(0,a(0,"duration",Number)),ln(1,a(1,"topic",Ue)),$e("design:type",Function),$e("design:paramtypes",[Number,typeof(rf=typeof Ue<"u"&&Ue)=="function"?rf:Object,Object]),$e("design:returntype",typeof(of=typeof Promise<"u"&&Promise)=="function"?of:Object)],f.Scheduler.prototype,"period",null),An([O("mesh.schedule.dump",[Array,String]),$e("design:type",Function),$e("design:paramtypes",[Object]),$e("design:returntype",typeof(sf=typeof Promise<"u"&&Promise)=="function"?sf:Object)],f.Scheduler.prototype,"dump",null),An([O("mesh.schedule.cancel",Boolean),ln(0,a(0,"task_id",String)),$e("design:type",Function),$e("design:paramtypes",[String,Object]),$e("design:returntype",typeof(cf=typeof Promise<"u"&&Promise)=="function"?cf:Object)],f.Scheduler.prototype,"cancel",null),An([O("mesh.schedule.stop",Boolean),ln(0,a(0,"task_id",String)),$e("design:type",Function),$e("design:paramtypes",[String,Object]),$e("design:returntype",typeof(af=typeof Promise<"u"&&Promise)=="function"?af:Object)],f.Scheduler.prototype,"stop",null),An([O("mesh.schedule.emit",Object),ln(0,a(0,"topic",Ue)),$e("design:type",Function),$e("design:paramtypes",[typeof(uf=typeof Ue<"u"&&Ue)=="function"?uf:Object,Object]),$e("design:returntype",typeof(df=typeof Promise<"u"&&Promise)=="function"?df:Object)],f.Scheduler.prototype,"emit",null),An([O("mesh.schedule.shutdown",Object),ln(0,a(0,"duration",Number)),$e("design:type",Function),$e("design:paramtypes",[Number,Object]),$e("design:returntype",typeof(ff=typeof Promise<"u"&&Promise)=="function"?ff:Object)],f.Scheduler.prototype,"shutdown",null),f.Scheduler=An([H("mpi")],f.Scheduler);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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},Gr=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},vi=function(r,e){return function(t,n){e(t,n,r)}},pf,lf;f.Sequence=class{next(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}section(e,t,n,o=_()){return Promise.reject(h.URN_NOT_PERMIT)}},xo([O("mesh.sequence.next",String),vi(0,a(0,"kind",String)),vi(1,a(1,"length",Number)),Gr("design:type",Function),Gr("design:paramtypes",[String,Number,Object]),Gr("design:returntype",typeof(pf=typeof Promise<"u"&&Promise)=="function"?pf:Object)],f.Sequence.prototype,"next",null),xo([O("mesh.sequence.section",[Array,String]),vi(0,a(0,"kind",String)),vi(1,a(1,"size",Number)),vi(2,a(2,"length",Number)),Gr("design:type",Function),Gr("design:paramtypes",[String,Number,Number,Object]),Gr("design:returntype",typeof(lf=typeof Promise<"u"&&Promise)=="function"?lf:Object)],f.Sequence.prototype,"section",null),f.Sequence=xo([H("mpi")],f.Sequence);var yf=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},Bo=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Ol=function(r,e){return function(t,n){e(t,n,r)}},mf,gf;f.Subscriber=class{subscribe(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}},yf([O("mesh.queue.subscribe",Object),Ol(0,a(0,"event",it)),Bo("design:type",Function),Bo("design:paramtypes",[typeof(mf=typeof it<"u"&&it)=="function"?mf:Object,Object]),Bo("design:returntype",typeof(gf=typeof Promise<"u"&&Promise)=="function"?gf:Object)],f.Subscriber.prototype,"subscribe",null),f.Subscriber=yf([H("mpi")],f.Subscriber);var Nt=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},oe=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},St=function(r,e){return function(t,n){e(t,n,r)}},hf,bf,_f,Of,Sf,vf,Rf,Pf,jf,wf,Ef,Tf,Nf,Af,Mf;f.Tokenizer=class{captcha(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}matches(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}apply(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}verify(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}quickauth(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}grant(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}accept(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}reject(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}authorize(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}authenticate(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}refresh(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}},Nt([O("mesh.captcha.apply",Pr),St(0,a(0,"kind",String)),St(1,a(1,"features",[Map,String,String])),oe("design:type",Function),oe("design:paramtypes",[String,typeof(hf=typeof Record<"u"&&Record)=="function"?hf:Object,Object]),oe("design:returntype",typeof(bf=typeof Promise<"u"&&Promise)=="function"?bf:Object)],f.Tokenizer.prototype,"captcha",null),Nt([O("mesh.captcha.match",Boolean),St(0,a(0,"mno",String)),St(1,a(1,"value",String)),oe("design:type",Function),oe("design:paramtypes",[String,String,Object]),oe("design:returntype",typeof(_f=typeof Promise<"u"&&Promise)=="function"?_f:Object)],f.Tokenizer.prototype,"matches",null),Nt([O("mesh.trust.apply",String),St(0,a(0,"kind",String)),St(1,a(1,"duration",Number)),oe("design:type",Function),oe("design:paramtypes",[String,Number,Object]),oe("design:returntype",typeof(Of=typeof Promise<"u"&&Promise)=="function"?Of:Object)],f.Tokenizer.prototype,"apply",null),Nt([O("mesh.trust.verify",Boolean),St(0,a(0,"token",String)),oe("design:type",Function),oe("design:paramtypes",[String,Object]),oe("design:returntype",typeof(Sf=typeof Promise<"u"&&Promise)=="function"?Sf:Object)],f.Tokenizer.prototype,"verify",null),Nt([O("mesh.oauth2.quickauth",On),St(0,a(0,"credential",Dt)),oe("design:type",Function),oe("design:paramtypes",[typeof(vf=typeof Dt<"u"&&Dt)=="function"?vf:Object,Object]),oe("design:returntype",typeof(Rf=typeof Promise<"u"&&Promise)=="function"?Rf:Object)],f.Tokenizer.prototype,"quickauth",null),Nt([O("mesh.oauth2.grant",To),St(0,a(0,"credential",Dt)),oe("design:type",Function),oe("design:paramtypes",[typeof(Pf=typeof Dt<"u"&&Dt)=="function"?Pf:Object,Object]),oe("design:returntype",typeof(jf=typeof Promise<"u"&&Promise)=="function"?jf:Object)],f.Tokenizer.prototype,"grant",null),Nt([O("mesh.oauth2.accept",zi),St(0,a(0,"code",String)),oe("design:type",Function),oe("design:paramtypes",[String,Object]),oe("design:returntype",typeof(wf=typeof Promise<"u"&&Promise)=="function"?wf:Object)],f.Tokenizer.prototype,"accept",null),Nt([O("mesh.oauth2.reject",Object),St(0,a(0,"code",String)),oe("design:type",Function),oe("design:paramtypes",[String,Object]),oe("design:returntype",typeof(Ef=typeof Promise<"u"&&Promise)=="function"?Ef:Object)],f.Tokenizer.prototype,"reject",null),Nt([O("mesh.oauth2.authorize",On),St(0,a(0,"code",String)),oe("design:type",Function),oe("design:paramtypes",[String,Object]),oe("design:returntype",typeof(Tf=typeof Promise<"u"&&Promise)=="function"?Tf:Object)],f.Tokenizer.prototype,"authorize",null),Nt([O("mesh.oauth2.authenticate",yt),St(0,a(0,"token",String)),oe("design:type",Function),oe("design:paramtypes",[String,Object]),oe("design:returntype",typeof(Nf=typeof Promise<"u"&&Promise)=="function"?Nf:Object)],f.Tokenizer.prototype,"authenticate",null),Nt([O("mesh.oauth2.refresh",On),St(0,a(0,"token",String)),oe("design:type",Function),oe("design:paramtypes",[String,Object]),oe("design:returntype",typeof(Af=typeof Promise<"u"&&Promise)=="function"?Af:Object)],f.Tokenizer.prototype,"refresh",null),f.Tokenizer=Nt([H("mpi")],f.Tokenizer),f.TokenProvider=class{provide(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}},Nt([O("${mesh.name}.session.obtain",yt),St(0,a(0,"token",String)),oe("design:type",Function),oe("design:paramtypes",[String,Object]),oe("design:returntype",typeof(Mf=typeof Promise<"u"&&Promise)=="function"?Mf:Object)],f.TokenProvider.prototype,"provide",null),f.TokenProvider=Nt([H("mpi")],f.TokenProvider);var ur=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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)},yn=function(r,e){return function(t,n){e(t,n,r)}},If,$f,Cf,Uf,Ff,kf,Df;f.Transporter=class{attach(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}detach(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}scan(e,t,n,o=_()){return Promise.reject(h.URN_NOT_PERMIT)}write(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}read(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}clean(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}},ur([O("${mesh.name}.tcp.attach",String),yn(0,a(0,"uri",String)),yn(1,a(1,"pdc",String)),Xe("design:type",Function),Xe("design:paramtypes",[String,String,Object]),Xe("design:returntype",typeof(If=typeof Promise<"u"&&Promise)=="function"?If:Object)],f.Transporter.prototype,"attach",null),ur([O("${mesh.name}.tcp.detach",Object),yn(0,a(0,"descriptor",String)),Xe("design:type",Function),Xe("design:paramtypes",[String,Object]),Xe("design:returntype",typeof($f=typeof Promise<"u"&&Promise)=="function"?$f:Object)],f.Transporter.prototype,"detach",null),ur([O("${mesh.name}.tcp.scan",[Array,Lt]),yn(0,a(0,"rid",String)),yn(1,a(1,"h",Number)),yn(2,a(2,"limit",Number)),Xe("design:type",Function),Xe("design:paramtypes",[String,Number,Number,Object]),Xe("design:returntype",typeof(Cf=typeof Promise<"u"&&Promise)=="function"?Cf:Object)],f.Transporter.prototype,"scan",null),ur([O("${mesh.name}.tcp.write",Object),yn(0,a(0,"packet",Lt)),Xe("design:type",Function),Xe("design:paramtypes",[typeof(Uf=typeof Lt<"u"&&Lt)=="function"?Uf:Object,Object]),Xe("design:returntype",typeof(Ff=typeof Promise<"u"&&Promise)=="function"?Ff:Object)],f.Transporter.prototype,"write",null),ur([O("${mesh.name}.tcp.read",[Array,Lt]),yn(0,a(0,"bucket",String)),yn(1,a(1,"limit",Number)),Xe("design:type",Function),Xe("design:paramtypes",[String,Number,Object]),Xe("design:returntype",typeof(kf=typeof Promise<"u"&&Promise)=="function"?kf:Object)],f.Transporter.prototype,"read",null),ur([O("${mesh.name}.tcp.clean",Object),yn(0,a(0,"buckets",[Array,String])),Xe("design:type",Function),Xe("design:paramtypes",[Array,Object]),Xe("design:returntype",typeof(Df=typeof Promise<"u"&&Promise)=="function"?Df:Object)],f.Transporter.prototype,"clean",null),f.Transporter=ur([H("mpi")],f.Transporter);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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},De=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Jn=function(r,e){return function(t,n){e(t,n,r)}},xf,Bf,Lf,Hf,qf,zf,Gf,Wf;f.FileSystem=class{exist(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}mkdir(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}write(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}read(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}remove(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}delete(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}list(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}},Vn([O("mesh.fs.exist",Boolean),Jn(0,a(0,"path",String)),De("design:type",Function),De("design:paramtypes",[String,Object]),De("design:returntype",typeof(xf=typeof Promise<"u"&&Promise)=="function"?xf:Object)],f.FileSystem.prototype,"exist",null),Vn([O("mesh.fs.mkdir",Object),Jn(0,a(0,"path",String)),De("design:type",Function),De("design:paramtypes",[String,Object]),De("design:returntype",typeof(Bf=typeof Promise<"u"&&Promise)=="function"?Bf:Object)],f.FileSystem.prototype,"mkdir",null),Vn([O("mesh.fs.write",Object),Jn(0,a(0,"path",String)),Jn(1,a(1,"buff",Uint8Array)),De("design:type",Function),De("design:paramtypes",[String,typeof(Lf=typeof Uint8Array<"u"&&Uint8Array)=="function"?Lf:Object,Object]),De("design:returntype",typeof(Hf=typeof Promise<"u"&&Promise)=="function"?Hf:Object)],f.FileSystem.prototype,"write",null),Vn([O("mesh.fs.read",Uint8Array),Jn(0,a(0,"path",String)),De("design:type",Function),De("design:paramtypes",[String,Object]),De("design:returntype",typeof(qf=typeof Promise<"u"&&Promise)=="function"?qf:Object)],f.FileSystem.prototype,"read",null),Vn([O("mesh.fs.remove",Object),Jn(0,a(0,"path",String)),De("design:type",Function),De("design:paramtypes",[String,Object]),De("design:returntype",typeof(zf=typeof Promise<"u"&&Promise)=="function"?zf:Object)],f.FileSystem.prototype,"remove",null),Vn([O("mesh.fs.delete",Object),Jn(0,a(0,"paths",[Array,String])),De("design:type",Function),De("design:paramtypes",[Array,Object]),De("design:returntype",typeof(Gf=typeof Promise<"u"&&Promise)=="function"?Gf:Object)],f.FileSystem.prototype,"delete",null),Vn([O("mesh.fs.ls",Or),Jn(0,a(0,"path",String)),De("design:type",Function),De("design:paramtypes",[String,Object]),De("design:returntype",typeof(Wf=typeof Promise<"u"&&Promise)=="function"?Wf:Object)],f.FileSystem.prototype,"list",null),f.FileSystem=Vn([H("mpi")],f.FileSystem);var Kn=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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)},dr=function(r,e){return function(t,n){e(t,n,r)}},Vf,Jf,Kf,Xf,Yf,Qf,Zf,ep,tp,np,rp,ip,op,sp;f.Workflow=class{mass(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}groups(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}compile(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}index(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}submit(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}take(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}routines(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}},Kn([O("mesh.workflow.mass",String),dr(0,a(0,"group",jn)),xe("design:type",Function),xe("design:paramtypes",[typeof(Vf=typeof jn<"u"&&jn)=="function"?Vf:Object,Object]),xe("design:returntype",typeof(Jf=typeof Promise<"u"&&Promise)=="function"?Jf:Object)],f.Workflow.prototype,"mass",null),Kn([O("mesh.workflow.groups",[Re,jn]),dr(0,a(0,"index",k)),xe("design:type",Function),xe("design:paramtypes",[typeof(Kf=typeof k<"u"&&k)=="function"?Kf:Object,Object]),xe("design:returntype",typeof(Xf=typeof Promise<"u"&&Promise)=="function"?Xf:Object)],f.Workflow.prototype,"groups",null),Kn([O("mesh.workflow.compile",String),dr(0,a(0,"chart",Et)),xe("design:type",Function),xe("design:paramtypes",[typeof(Yf=typeof Et<"u"&&Et)=="function"?Yf:Object,Object]),xe("design:returntype",typeof(Qf=typeof Promise<"u"&&Promise)=="function"?Qf:Object)],f.Workflow.prototype,"compile",null),Kn([O("mesh.workflow.index",[Re,Et]),dr(0,a(0,"index",k)),xe("design:type",Function),xe("design:paramtypes",[typeof(Zf=typeof k<"u"&&k)=="function"?Zf:Object,Object]),xe("design:returntype",typeof(ep=typeof Promise<"u"&&Promise)=="function"?ep:Object)],f.Workflow.prototype,"index",null),Kn([O("mesh.workflow.submit",String),dr(0,a(0,"intent",Gn)),xe("design:type",Function),xe("design:paramtypes",[typeof(tp=typeof Gn<"u"&&Gn)=="function"?tp:Object,Object]),xe("design:returntype",typeof(np=typeof Promise<"u"&&Promise)=="function"?np:Object)],f.Workflow.prototype,"submit",null),Kn([O("mesh.workflow.take",Object),dr(0,a(0,"vertex",Ye)),xe("design:type",Function),xe("design:paramtypes",[typeof(rp=typeof Ye<"u"&&Ye)=="function"?rp:Object,Object]),xe("design:returntype",typeof(ip=typeof Promise<"u"&&Promise)=="function"?ip:Object)],f.Workflow.prototype,"take",null),Kn([O("mesh.workflow.routines",[Re,Ye]),dr(0,a(0,"index",k)),xe("design:type",Function),xe("design:paramtypes",[typeof(op=typeof k<"u"&&k)=="function"?op:Object,Object]),xe("design:returntype",typeof(sp=typeof Promise<"u"&&Promise)=="function"?sp:Object)],f.Workflow.prototype,"routines",null),f.Workflow=Kn([H("mpi")],f.Workflow);var Sl=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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.Codec=(Qn=class{encodeString(e){return this.stringify(this.encode(e))}decodeString(e,t){return this.decode(this.uint8ify(e),t)}},s(Qn,"JSON","json"),s(Qn,"PROTOBUF","protobuf"),s(Qn,"XML","xml"),s(Qn,"YAML","yaml"),s(Qn,"THRIFT","thrift"),s(Qn,"MESH","mesh"),Qn),f.Codec=Sl([H(f.Codec.JSON)],f.Codec);var Lo={},Ri={},cp;function vl(){if(cp)return Ri;cp=1,Ri.byteLength=u,Ri.toByteArray=R,Ri.fromByteArray=U;for(var r=[],e=[],t=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,i=n.length;o<i;++o)r[o]=n[o],e[n.charCodeAt(o)]=o;e[45]=62,e[95]=63;function c(N){var w=N.length;if(w%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var M=N.indexOf("=");M===-1&&(M=w);var A=M===w?0:4-M%4;return[M,A]}function u(N){var w=c(N),M=w[0],A=w[1];return(M+A)*3/4-A}function P(N,w,M){return(w+M)*3/4-M}function R(N){var w,M=c(N),A=M[0],W=M[1],V=new t(P(N,A,W)),te=0,We=W>0?A-4:A,re;for(re=0;re<We;re+=4)w=e[N.charCodeAt(re)]<<18|e[N.charCodeAt(re+1)]<<12|e[N.charCodeAt(re+2)]<<6|e[N.charCodeAt(re+3)],V[te++]=w>>16&255,V[te++]=w>>8&255,V[te++]=w&255;return W===2&&(w=e[N.charCodeAt(re)]<<2|e[N.charCodeAt(re+1)]>>4,V[te++]=w&255),W===1&&(w=e[N.charCodeAt(re)]<<10|e[N.charCodeAt(re+1)]<<4|e[N.charCodeAt(re+2)]>>2,V[te++]=w>>8&255,V[te++]=w&255),V}function S(N){return r[N>>18&63]+r[N>>12&63]+r[N>>6&63]+r[N&63]}function E(N,w,M){for(var A,W=[],V=w;V<M;V+=3)A=(N[V]<<16&16711680)+(N[V+1]<<8&65280)+(N[V+2]&255),W.push(S(A));return W.join("")}function U(N){for(var w,M=N.length,A=M%3,W=[],V=16383,te=0,We=M-A;te<We;te+=V)W.push(E(N,te,te+V>We?We:te+V));return A===1?(w=N[M-1],W.push(r[w>>2]+r[w<<4&63]+"==")):A===2&&(w=(N[M-2]<<8)+N[M-1],W.push(r[w>>10]+r[w>>4&63]+r[w<<2&63]+"=")),W.join("")}return Ri}var Xi={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var ap;function Rl(){return ap||(ap=1,Xi.read=function(r,e,t,n,o){var i,c,u=o*8-n-1,P=(1<<u)-1,R=P>>1,S=-7,E=t?o-1:0,U=t?-1:1,N=r[e+E];for(E+=U,i=N&(1<<-S)-1,N>>=-S,S+=u;S>0;i=i*256+r[e+E],E+=U,S-=8);for(c=i&(1<<-S)-1,i>>=-S,S+=n;S>0;c=c*256+r[e+E],E+=U,S-=8);if(i===0)i=1-R;else{if(i===P)return c?NaN:(N?-1:1)*(1/0);c=c+Math.pow(2,n),i=i-R}return(N?-1:1)*c*Math.pow(2,i-n)},Xi.write=function(r,e,t,n,o,i){var c,u,P,R=i*8-o-1,S=(1<<R)-1,E=S>>1,U=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,N=n?0:i-1,w=n?1:-1,M=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(u=isNaN(e)?1:0,c=S):(c=Math.floor(Math.log(e)/Math.LN2),e*(P=Math.pow(2,-c))<1&&(c--,P*=2),c+E>=1?e+=U/P:e+=U*Math.pow(2,1-E),e*P>=2&&(c++,P/=2),c+E>=S?(u=0,c=S):c+E>=1?(u=(e*P-1)*Math.pow(2,o),c=c+E):(u=e*Math.pow(2,E-1)*Math.pow(2,o),c=0));o>=8;r[t+N]=u&255,N+=w,u/=256,o-=8);for(c=c<<o|u,R+=o;R>0;r[t+N]=c&255,N+=w,c/=256,R-=8);r[t+N-w]|=M*128}),Xi}/*!
14
+ ***************************************************************************** */var ms;function cl(){if(ms)return ys;ms=1;var r;return function(e){(function(t){var n=typeof globalThis=="object"?globalThis:typeof ls=="object"?ls:typeof self=="object"?self:typeof this=="object"?this:R(),o=i(e);typeof n.Reflect<"u"&&(o=i(n.Reflect,o)),t(o,n),typeof n.Reflect>"u"&&(n.Reflect=e);function i(P,S){return function(E,U){Object.defineProperty(P,E,{configurable:!0,writable:!0,value:U}),S&&S(E,U)}}function c(){try{return Function("return this;")()}catch{}}function u(){try{return(0,eval)("(function() { return this; })()")}catch{}}function R(){return c()||u()}})(function(t,n){var o=Object.prototype.hasOwnProperty,i=typeof Symbol=="function",c=i&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",u=i&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",R=typeof Object.create=="function",P={__proto__:[]}instanceof Array,S=!R&&!P,E={create:R?function(){return b(Object.create(null))}:P?function(){return b({__proto__:null})}:function(){return b({})},has:S?function(y,g){return o.call(y,g)}:function(y,g){return g in y},get:S?function(y,g){return o.call(y,g)?y[g]:void 0}:function(y,g){return y[g]}},U=Object.getPrototypeOf(Function),N=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:d(),w=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:p(),M=typeof WeakMap=="function"?WeakMap:m(),A=i?Symbol.for("@reflect-metadata:registry"):void 0,W=fs(),V=hn(W);function te(y,g,v,T){if(z(v)){if(!$i(y))throw new TypeError;if(!rr(g))throw new TypeError;return us(y,g)}else{if(!$i(y))throw new TypeError;if(!Fe(g))throw new TypeError;if(!Fe(T)&&!z(T)&&!Cn(T))throw new TypeError;return Cn(T)&&(T=void 0),v=Kt(v),go(y,g,v,T)}}t("decorate",te);function Ve(y,g){function v(T,I){if(!Fe(T))throw new TypeError;if(!z(I)&&!ds(I))throw new TypeError;_o(y,g,T,I)}return v}t("metadata",Ve);function re(y,g,v,T){if(!Fe(v))throw new TypeError;return z(T)||(T=Kt(T)),_o(y,g,v,T)}t("defineMetadata",re);function kt(y,g,v){if(!Fe(g))throw new TypeError;return z(v)||(v=Kt(v)),Mi(y,g,v)}t("hasMetadata",kt);function Jt(y,g,v){if(!Fe(g))throw new TypeError;return z(v)||(v=Kt(v)),Ii(y,g,v)}t("hasOwnMetadata",Jt);function tr(y,g,v){if(!Fe(g))throw new TypeError;return z(v)||(v=Kt(v)),ho(y,g,v)}t("getMetadata",tr);function Yr(y,g,v){if(!Fe(g))throw new TypeError;return z(v)||(v=Kt(v)),bo(y,g,v)}t("getOwnMetadata",Yr);function ss(y,g){if(!Fe(y))throw new TypeError;return z(g)||(g=Kt(g)),Oo(y,g)}t("getMetadataKeys",ss);function cs(y,g){if(!Fe(y))throw new TypeError;return z(g)||(g=Kt(g)),Le(y,g)}t("getOwnMetadataKeys",cs);function as(y,g,v){if(!Fe(g))throw new TypeError;if(z(v)||(v=Kt(v)),!Fe(g))throw new TypeError;z(v)||(v=Kt(v));var T=l(g,v,!1);return z(T)?!1:T.OrdinaryDeleteMetadata(y,g,v)}t("deleteMetadata",as);function us(y,g){for(var v=y.length-1;v>=0;--v){var T=y[v],I=T(g);if(!z(I)&&!Cn(I)){if(!rr(I))throw new TypeError;g=I}}return g}function go(y,g,v,T){for(var I=y.length-1;I>=0;--I){var J=y[I],G=J(g,v,T);if(!z(G)&&!Cn(G)){if(!Fe(G))throw new TypeError;T=G}}return T}function Mi(y,g,v){var T=Ii(y,g,v);if(T)return!0;var I=$t(g);return Cn(I)?!1:Mi(y,I,v)}function Ii(y,g,v){var T=l(g,v,!1);return z(T)?!1:Qr(T.OrdinaryHasOwnMetadata(y,g,v))}function ho(y,g,v){var T=Ii(y,g,v);if(T)return bo(y,g,v);var I=$t(g);if(!Cn(I))return ho(y,I,v)}function bo(y,g,v){var T=l(g,v,!1);if(!z(T))return T.OrdinaryGetOwnMetadata(y,g,v)}function _o(y,g,v,T){var I=l(v,T,!0);I.OrdinaryDefineOwnMetadata(y,g,v,T)}function Oo(y,g){var v=Le(y,g),T=$t(y);if(T===null)return v;var I=Oo(T,g);if(I.length<=0)return v;if(v.length<=0)return I;for(var J=new w,G=[],ie=0,$=v;ie<$.length;ie++){var C=$[ie],F=J.has(C);F||(J.add(C),G.push(C))}for(var D=0,ce=I;D<ce.length;D++){var C=ce[D],F=J.has(C);F||(J.add(C),G.push(C))}return G}function Le(y,g){var v=l(y,g,!1);return v?v.OrdinaryOwnMetadataKeys(y,g):[]}function et(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 z(y){return y===void 0}function Cn(y){return y===null}function So(y){return typeof y=="symbol"}function Fe(y){return typeof y=="object"?y!==null:typeof y=="function"}function vo(y,g){switch(et(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 v="string",T=Zr(y,c);if(T!==void 0){var I=T.call(y,v);if(Fe(I))throw new TypeError;return I}return nr(y)}function nr(y,g){var v,T,I;{var J=y.toString;if(en(J)){var T=J.call(y);if(!Fe(T))return T}var v=y.valueOf;if(en(v)){var T=v.call(y);if(!Fe(T))return T}}throw new TypeError}function Qr(y){return!!y}function Ro(y){return""+y}function Kt(y){var g=vo(y);return So(g)?g:Ro(g)}function $i(y){return Array.isArray?Array.isArray(y):y instanceof Object?y instanceof Array:Object.prototype.toString.call(y)==="[object Array]"}function en(y){return typeof y=="function"}function rr(y){return typeof y=="function"}function ds(y){switch(et(y)){case 3:return!0;case 4:return!0;default:return!1}}function Ci(y,g){return y===g||y!==y&&g!==g}function Zr(y,g){var v=y[g];if(v!=null){if(!en(v))throw new TypeError;return v}}function Po(y){var g=Zr(y,u);if(!en(g))throw new TypeError;var v=g.call(y);if(!Fe(v))throw new TypeError;return v}function jo(y){return y.value}function Ui(y){var g=y.next();return g.done?!1:g}function mr(y){var g=y.return;g&&g.call(y)}function $t(y){var g=Object.getPrototypeOf(y);if(typeof y!="function"||y===U||g!==U)return g;var v=y.prototype,T=v&&Object.getPrototypeOf(v);if(T==null||T===Object.prototype)return g;var I=T.constructor;return typeof I!="function"||I===y?g:I}function Fi(){var y;!z(A)&&typeof n.Reflect<"u"&&!(A in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(y=ps(n.Reflect));var g,v,T,I=new M,J={registerProvider:G,getProvider:$,setProvider:F};return J;function G(D){if(!Object.isExtensible(J))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case y===D:break;case z(g):g=D;break;case g===D:break;case z(v):v=D;break;case v===D:break;default:T===void 0&&(T=new w),T.add(D);break}}function ie(D,ce){if(!z(g)){if(g.isProviderFor(D,ce))return g;if(!z(v)){if(v.isProviderFor(D,ce))return g;if(!z(T))for(var Ae=Po(T);;){var He=Ui(Ae);if(!He)return;var tn=jo(He);if(tn.isProviderFor(D,ce))return mr(Ae),tn}}}if(!z(y)&&y.isProviderFor(D,ce))return y}function $(D,ce){var Ae=I.get(D),He;return z(Ae)||(He=Ae.get(ce)),z(He)&&(He=ie(D,ce),z(He)||(z(Ae)&&(Ae=new N,I.set(D,Ae)),Ae.set(ce,He))),He}function C(D){if(z(D))throw new TypeError;return g===D||v===D||!z(T)&&T.has(D)}function F(D,ce,Ae){if(!C(Ae))throw new Error("Metadata provider not registered.");var He=$(D,ce);if(He!==Ae){if(!z(He))return!1;var tn=I.get(D);z(tn)&&(tn=new N,I.set(D,tn)),tn.set(ce,Ae)}return!0}}function fs(){var y;return!z(A)&&Fe(n.Reflect)&&Object.isExtensible(n.Reflect)&&(y=n.Reflect[A]),z(y)&&(y=Fi()),!z(A)&&Fe(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,A,{enumerable:!1,configurable:!1,writable:!1,value:y}),y}function hn(y){var g=new M,v={isProviderFor:function(C,F){var D=g.get(C);return z(D)?!1:D.has(F)},OrdinaryDefineOwnMetadata:G,OrdinaryHasOwnMetadata:I,OrdinaryGetOwnMetadata:J,OrdinaryOwnMetadataKeys:ie,OrdinaryDeleteMetadata:$};return W.registerProvider(v),v;function T(C,F,D){var ce=g.get(C),Ae=!1;if(z(ce)){if(!D)return;ce=new N,g.set(C,ce),Ae=!0}var He=ce.get(F);if(z(He)){if(!D)return;if(He=new N,ce.set(F,He),!y.setProvider(C,F,v))throw ce.delete(F),Ae&&g.delete(C),new Error("Wrong provider for target.")}return He}function I(C,F,D){var ce=T(F,D,!1);return z(ce)?!1:Qr(ce.has(C))}function J(C,F,D){var ce=T(F,D,!1);if(!z(ce))return ce.get(C)}function G(C,F,D,ce){var Ae=T(D,ce,!0);Ae.set(C,F)}function ie(C,F){var D=[],ce=T(C,F,!1);if(z(ce))return D;for(var Ae=ce.keys(),He=Po(Ae),tn=0;;){var nl=Ui(He);if(!nl)return D.length=tn,D;var Rm=jo(nl);try{D[tn]=Rm}catch(Pm){try{mr(He)}finally{throw Pm}}tn++}}function $(C,F,D){var ce=T(F,D,!1);if(z(ce)||!ce.delete(C))return!1;if(ce.size===0){var Ae=g.get(F);z(Ae)||(Ae.delete(D),Ae.size===0&&g.delete(Ae))}return!0}}function ps(y){var g=y.defineMetadata,v=y.hasOwnMetadata,T=y.getOwnMetadata,I=y.getOwnMetadataKeys,J=y.deleteMetadata,G=new M,ie={isProviderFor:function($,C){var F=G.get($);return!z(F)&&F.has(C)?!0:I($,C).length?(z(F)&&(F=new w,G.set($,F)),F.add(C),!0):!1},OrdinaryDefineOwnMetadata:g,OrdinaryHasOwnMetadata:v,OrdinaryGetOwnMetadata:T,OrdinaryOwnMetadataKeys:I,OrdinaryDeleteMetadata:J};return ie}function l(y,g,v){var T=W.getProvider(y,g);if(!z(T))return T;if(v){if(W.setProvider(y,g,V))return V;throw new Error("Illegal state.")}}function d(){var y={},g=[],v=function(){function ie($,C,F){this._index=0,this._keys=$,this._values=C,this._selector=F}return ie.prototype["@@iterator"]=function(){return this},ie.prototype[u]=function(){return this},ie.prototype.next=function(){var $=this._index;if($>=0&&$<this._keys.length){var C=this._selector(this._keys[$],this._values[$]);return $+1>=this._keys.length?(this._index=-1,this._keys=g,this._values=g):this._index++,{value:C,done:!1}}return{value:void 0,done:!0}},ie.prototype.throw=function($){throw this._index>=0&&(this._index=-1,this._keys=g,this._values=g),$},ie.prototype.return=function($){return this._index>=0&&(this._index=-1,this._keys=g,this._values=g),{value:$,done:!0}},ie}(),T=function(){function ie(){this._keys=[],this._values=[],this._cacheKey=y,this._cacheIndex=-2}return Object.defineProperty(ie.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),ie.prototype.has=function($){return this._find($,!1)>=0},ie.prototype.get=function($){var C=this._find($,!1);return C>=0?this._values[C]:void 0},ie.prototype.set=function($,C){var F=this._find($,!0);return this._values[F]=C,this},ie.prototype.delete=function($){var C=this._find($,!1);if(C>=0){for(var F=this._keys.length,D=C+1;D<F;D++)this._keys[D-1]=this._keys[D],this._values[D-1]=this._values[D];return this._keys.length--,this._values.length--,Ci($,this._cacheKey)&&(this._cacheKey=y,this._cacheIndex=-2),!0}return!1},ie.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=y,this._cacheIndex=-2},ie.prototype.keys=function(){return new v(this._keys,this._values,I)},ie.prototype.values=function(){return new v(this._keys,this._values,J)},ie.prototype.entries=function(){return new v(this._keys,this._values,G)},ie.prototype["@@iterator"]=function(){return this.entries()},ie.prototype[u]=function(){return this.entries()},ie.prototype._find=function($,C){if(!Ci(this._cacheKey,$)){this._cacheIndex=-1;for(var F=0;F<this._keys.length;F++)if(Ci(this._keys[F],$)){this._cacheIndex=F;break}}return this._cacheIndex<0&&C&&(this._cacheIndex=this._keys.length,this._keys.push($),this._values.push(void 0)),this._cacheIndex},ie}();return T;function I(ie,$){return ie}function J(ie,$){return $}function G(ie,$){return[ie,$]}}function p(){var y=function(){function g(){this._map=new N}return Object.defineProperty(g.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),g.prototype.has=function(v){return this._map.has(v)},g.prototype.add=function(v){return this._map.set(v,v),this},g.prototype.delete=function(v){return this._map.delete(v)},g.prototype.clear=function(){this._map.clear()},g.prototype.keys=function(){return this._map.keys()},g.prototype.values=function(){return this._map.keys()},g.prototype.entries=function(){return this._map.entries()},g.prototype["@@iterator"]=function(){return this.keys()},g.prototype[u]=function(){return this.keys()},g}();return y}function m(){var y=16,g=E.create(),v=T();return function(){function $(){this._key=T()}return $.prototype.has=function(C){var F=I(C,!1);return F!==void 0?E.has(F,this._key):!1},$.prototype.get=function(C){var F=I(C,!1);return F!==void 0?E.get(F,this._key):void 0},$.prototype.set=function(C,F){var D=I(C,!0);return D[this._key]=F,this},$.prototype.delete=function(C){var F=I(C,!1);return F!==void 0?delete F[this._key]:!1},$.prototype.clear=function(){this._key=T()},$}();function T(){var $;do $="@@WeakMap@@"+ie();while(E.has(g,$));return g[$]=!0,$}function I($,C){if(!o.call($,v)){if(!C)return;Object.defineProperty($,v,{value:E.create()})}return $[v]}function J($,C){for(var F=0;F<C;++F)$[F]=Math.random()*255|0;return $}function G($){if(typeof Uint8Array=="function"){var C=new Uint8Array($);return typeof crypto<"u"?crypto.getRandomValues(C):typeof msCrypto<"u"?msCrypto.getRandomValues(C):J(C,$),C}return J(new Array($),$)}function ie(){var $=G(y);$[6]=$[6]&79|64,$[8]=$[8]&191|128;for(var C="",F=0;F<y;++F){var D=$[F];(F===4||F===6||F===8)&&(C+="-"),D<16&&(C+="0"),C+=D.toString(16).toLowerCase()}return C}}function b(y){return y.__=void 0,delete y.__,y}})}(r||(r={})),ys}cl();class Di{constructor(e,t,n,o,i,c,u,R){s(this,"topic");s(this,"code");s(this,"version");s(this,"proto");s(this,"codec");s(this,"flags");s(this,"timeout");s(this,"meshable");s(this,"traits");this.topic=e,this.code=t,this.version=n,this.proto=o,this.codec=i,this.flags=c,this.timeout=u,this.meshable=R}decorate(e){this.traits=Object.getPrototypeOf(e.prototype).constructor,Ee.annotate(Di,e,e,this),Ee.register(Di,`${this.topic}.${this.code}`,e,this)}}function al(r="",e="",t="1.0.0",n="http2",o="protobuf",i=0,c=3e3,u=!0){const R=new Di(r,e,t,n,o,i,c,u);return R.decorate.bind(R)}class Fn{constructor(e,t,n,o){s(this,"value");s(this,"name");s(this,"transparent");s(this,"kind");s(this,"clas");s(this,"index",1e3);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 Un(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?Ee.annotate(Fn,`${t}:${n}`,e.constructor,this):Ee.annotate(Fn,t,e.constructor,this)}}function a(r=-1,e="",t=Object,n=!1){const o=new Fn(r,e,n,t);return o.decorate.bind(o)}class Xt{constructor(e,t,n,o){s(this,"name");s(this,"pattern");s(this,"priority");s(this,"prototype");this.name=e,this.pattern=t,this.priority=n,this.prototype=o}decorate(e){Ee.annotate(Xt,e,e,this),Ee.register(Xt,this.name,e,this)}}function H(r="",e="",t=0,n=!1){const o=new Xt(r,e,t,n);return o.decorate.bind(o)}class ke{constructor(e,t,n,o,i,c,u,R,P,S,E,U,N,w){s(this,"name");s(this,"version");s(this,"proto");s(this,"codec");s(this,"flags");s(this,"timeout");s(this,"retries");s(this,"mdc");s(this,"zone");s(this,"cluster");s(this,"cell");s(this,"group");s(this,"address");s(this,"kind");s(this,"retype");s(this,"attributes",new Map);this.name=e,this.version=t,this.proto=n,this.codec=o,this.flags=i,this.timeout=c,this.retries=u,this.mdc=R,this.zone=P,this.cluster=S,this.cell=E,this.group=U,this.address=N,this.retype=w}decorate(e,t,n){if(typeof t=="string"&&this.attributes.set("name",t),!n){this.kind=Reflect.getMetadata("design:type",e,t),Ee.annotate(ke,t,e,this);return}return this.kind=Reflect.getMetadata("design:returntype",e,t),Ee.annotate(ke,n.value,e.constructor,this),n}}function O(r="",e=Object,t=1e4,n="1.0.0",o="grpc",i="json",c=0,u=3,R="",P="",S="",E="",U="",N=""){const w=new ke(r,n,o,i,c,t,u,R,P,S,E,U,N,e);return w.decorate.bind(w)}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 u=r.length-1;u>=0;u--)(c=r[u])&&(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 dl=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,fl=/([^\s,]+)/g;f.MethodProxy=class{},f.MethodProxy=ul([H("mesh")],f.MethodProxy);class gs{constructor(e,t,n){s(this,"index");s(this,"name");s(this,"kind");this.index=e,this.name=t,this.kind=n}}class hs{constructor(e,t,n){s(this,"kind");s(this,"name");s(this,"method");this.kind=e,this.name=t,this.method=n}getAnnotation(e){return Ee.metadata(e,this.kind,this.method)}getName(){var t;const e=Ee.metadata(ke,this.kind,this.method);return((t=e==null?void 0:e.attributes)==null?void 0:t.get("name"))||this.name}getParameters(){const e=this.method.toString().replace(dl,""),t=e.slice(e.indexOf("(")+1,e.indexOf(")")).match(fl)||[],n=[];for(let o=0;o<t.length;o++){const i=Ee.metadata(Fn,this.kind,`${this.getName()}:${o}`);n.push(new gs(o,(i==null?void 0:i.name)||t[o],(i==null?void 0:i.clas)||Object))}return n}getType(){return this.kind}getReturnType(){var e;return new Un((e=Ee.metadata(ke,this.kind,this.method))==null?void 0:e.retype)}getExecutable(){return this.method}getSymbol(){return this.name}invoke(e,t){return this.method(...t)}}class pl{constructor(e,t,n){s(this,"inspector");s(this,"h");s(this,"proxy");this.inspector=e,this.h=t,this.proxy=n}apply(e,t,n){return this.h.invoke(this.proxy,this.inspector,n)}}class ll{constructor(e,t,n){s(this,"inspectors",new q);s(this,"executables",new q);for(let o of t)this.executables.set(o.getSymbol(),new Proxy(o.getExecutable(),new pl(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 ti{static newProxyInstance(e,t){var n,o,i;return this.proxies.get(e)||this.proxies.set(e,new q),(n=this.proxies.get(e))!=null&&n.get(t)||(o=this.proxies.get(e))==null||o.set(t,new Proxy(e,new ll(e,this.getMethods(e),t))),(i=this.proxies.get(e))==null?void 0:i.get(t)}static getMethods(e){return this.inspectors.computeIfy(e,t=>Ee.inspect(t).map((n,o)=>new hs(t,n,o)))}}s(ti,"proxies",new q),s(ti,"inspectors",new q);const lo=class lo{constructor(e,t){s(this,"name");s(this,"kind");s(this,"prototype");s(this,"priority");this.name=e,this.kind=t,this.prototype=!1,this.priority=1}getIfAbsent(){return this.prototype?this.create():lo.value.computeIfy(this.kind,e=>this.create())}create(){return new this.kind}};s(lo,"value",new q);let wo=lo,yl=class{constructor(e,t){s(this,"name","");s(this,"providers",[]);this.name=e,this.providers=t.map(n=>new wo(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()}};const yo=class yo{constructor(e){s(this,"providers",new q);s(this,"spi");s(this,"fist","");var t;this.spi=e,this.fist=((t=Ee.metadata(Xt,e,e))==null?void 0:t.name)||""}static load(e){return this.loaders.computeIfy(e,t=>new yo(e))}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=>Ee.providers(Xt,this.spi).groupBy(t=>{const n=Ee.metadata(Xt,t,t);return n&&n.name||""}).groupKV(t=>t,(t,n)=>new yl(t,n)))}};s(yo,"loaders",new q);let ze=yo;class ni{constructor(e,t,n,o,i,c){s(this,"name");s(this,"version");s(this,"proto");s(this,"codec");s(this,"flags");s(this,"timeout");s(this,"traits");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,Ee.annotate(ni,e,e,this),Ee.register(ni,this.name,e,this)}}function ml(r="",e="",t="grpc",n="json",o=0,i=1e4){const c=new ni(r,e,t,n,o,i);return c.decorate.bind(c)}function bs(r){return"getCode"in r&&"getMessage"in r}class ne extends Error{constructor(t,n){super(n);s(this,"code");s(this,"message");this.code=t,this.message=n}getCode(){return this.code}getMessage(){return this.message}}class h{}s(h,"SUCCESS",new ne("E0000000000","请求成功")),s(h,"NOT_FOUND",new ne("E0000000404","请求资源不存在")),s(h,"SYSTEM_ERROR",new ne("E0000000500","系统异常")),s(h,"SERVICE_UNAVAILABLE",new ne("E0000000503","循环请求服务不可达")),s(h,"VALIDATE",new ne("E0000000400","请求非法")),s(h,"UNAUTHORIZED",new ne("E0000000403","请求资源未被授权")),s(h,"UNKNOWN",new ne("E0000000520","未知异常")),s(h,"COMPATIBLE",new ne("E0000000600","系统不兼容")),s(h,"TIMEOUT",new ne("E0000000601","请求超时")),s(h,"NO_PROVIDER",new ne("E0000000602","无服务实例")),s(h,"CRYPT_ERROR",new ne("E0000000603","数字证书校验异常")),s(h,"TOKEN_EXPIRE",new ne("E0000000604","节点授权码已过期")),s(h,"NET_EXPIRE",new ne("E0000000605","节点组网时间已过期")),s(h,"NET_DISABLE",new ne("E0000000606","对方节点已禁用网络")),s(h,"NET_UNAVAILABLE",new ne("E0000000607","网络不通")),s(h,"LICENSE_FORMAT_ERROR",new ne("E0000000608","License非法")),s(h,"LICENSE_EXPIRED",new ne("E0000000609","License已过期")),s(h,"MAX_REPLICAS_LIMIT",new ne("E0000000610","集群副本已达许可上限")),s(h,"MAX_COOP_LIMIT",new ne("E0000000611","合作方链接数已达许可上限")),s(h,"MAX_TENANT_LIMIT",new ne("E0000000612","租户数已达许可上限")),s(h,"MAX_USER_LIMIT",new ne("E0000000613","用户数已达许可上限")),s(h,"URN_NOT_PERMIT",new ne("E0000000614","接口未被许可调用")),s(h,"SIGNATURE_ERROR",new ne("E0000000615","证书签名非法")),s(h,"CRYPT_CODEC_ERROR",new ne("E0000000616","报文编解码异常")),s(h,"NO_SERVICE",new ne("E0000000617","下游版本不匹配服务不存在")),s(h,"NET_NOT_WEAVE",new ne("E0000000618","节点或机构未组网")),s(h,"ADDRESS_ERROR",new ne("E0000000619","地址非法或无法访问")),s(h,"UNEXPECTED_SYNTAX",new ne("E0000000620","规则语法错误")),s(h,"UNKNOWN_SCRIPT",new ne("E0000000621","规则不存在")),s(h,"DATA_ID_ERROR",new ne("E0000000622","数据身份不存在或非法")),s(h,"START_PENDING",new ne("E0000000623","系统启动中")),s(h,"UNEXPECTED_SQL_SYNTAX",new ne("E0000000624","SQL语法错误")),s(h,"NO_DATABASE",new ne("E0000000625","数据库不存在")),s(h,"NO_TRANSACTION",new ne("E0000000626","事务不存在")),s(h,"SQL_EXECUTE_ERROR",new ne("E0000000627","SQL执行异常")),s(h,"DUPLICATE_KEY",new ne("E0000000628","唯一键冲突"));function ri(r){return console.log(r),h.SYSTEM_ERROR}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 u=r.length-1;u>=0;u--)(c=r[u])&&(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 It=class It{constructor(e){s(this,"v");this.v=e}matches(e){return(this.v&e)==this.v}};s(It,"Routine",new It(1)),s(It,"Perform",new It(2)),s(It,"Defense",new It(4)),s(It,"Debug",new It(8)),s(It,"LoadTest",new It(16)),s(It,"Mock",new It(32));let xi=It;class kn{constructor(e){s(this,"name");this.name=e}}class _s extends Array{peek(){if(!(this.length<1))return this.at(this.length-1)}}class Bi{}const se=class se{constructor(e){s(this,"key");this.key=e}get(e){var o,i,c;const t=(o=e.getAttachments())==null?void 0:o.get(this.key);if(t)return t;const n=(i=e.getAttachments())==null?void 0:i.get(this.key.replace("-","_"));if(n)return n;for(let u of(c=e.getAttachments())==null?void 0:c.entries())if(u[1]&&u[0]&&(u[0].toLowerCase()==this.key||u[0].replace("_","-").toLowerCase()==this.key))return u[1];return""}set(e,t){var n;(n=e.getAttachments())==null||n.set(this.key,t)}};s(se,"MESH_TRACE_ID",new se("mesh-trace-id")),s(se,"MESH_SPAN_ID",new se("mesh-span-id")),s(se,"MESH_TIMESTAMP",new se("mesh-timestamp")),s(se,"MESH_RUN_MODE",new se("mesh-mode")),s(se,"MESH_CONSUMER",new se("mesh-consumer")),s(se,"MESH_PROVIDER",new se("mesh-provider")),s(se,"MESH_URN",new se("mesh-urn")),s(se,"MESH_FROM_INST_ID",new se("mesh-from-inst-id")),s(se,"MESH_FROM_NODE_ID",new se("mesh-from-node-id")),s(se,"MESH_INCOMING_HOST",new se("mesh-incoming-host")),s(se,"MESH_OUTGOING_HOST",new se("mesh-outgoing-host")),s(se,"MESH_INCOMING_PROXY",new se("mesh-incoming-proxy")),s(se,"MESH_OUTGOING_PROXY",new se("mesh-outgoing-proxy")),s(se,"MESH_SUBSET",new se("mesh-subset")),s(se,"MESH_SESSION_ID",new se("mesh-session-id")),s(se,"MESH_VERSION",new se("mesh-version")),s(se,"MESH_TIMEOUT",new se("mesh-timeout"));let Li=se;f.ContextProvider=class{},f.ContextProvider=gl([H("mesh")],f.ContextProvider);function _(){return ze.load(f.ContextProvider).getDefault().context()}var he=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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)},Os,Ss,vs,Rs;class k{constructor(){s(this,"sid","");s(this,"index",0);s(this,"limit",0);s(this,"factor",{});s(this,"order","")}}he([a(0,"sid",String),be("design:type",String)],k.prototype,"sid",void 0),he([a(1,"index",Number),be("design:type",Number)],k.prototype,"index",void 0),he([a(2,"limit",Number),be("design:type",Number)],k.prototype,"limit",void 0),he([a(3,"factor",[Map,String,Object]),be("design:type",typeof(Os=typeof Record<"u"&&Record)=="function"?Os:Object)],k.prototype,"factor",void 0),he([a(4,"order",String),be("design:type",String)],k.prototype,"order",void 0);class Re{constructor(){s(this,"sid","");s(this,"index",0);s(this,"limit",0);s(this,"total",0);s(this,"next",!1);s(this,"data",[])}}he([a(0,"sid",String),be("design:type",String)],Re.prototype,"sid",void 0),he([a(1,"index",Number),be("design:type",Number)],Re.prototype,"index",void 0),he([a(2,"limit",Number),be("design:type",Number)],Re.prototype,"limit",void 0),he([a(3,"total",Number),be("design:type",Number)],Re.prototype,"total",void 0),he([a(4,"next",Boolean),be("design:type",Boolean)],Re.prototype,"next",void 0),he([a(5,"data",[Array,Object]),be("design:type",Array)],Re.prototype,"data",void 0);class ii{constructor(){s(this,"nodeId","");s(this,"nodeName","");s(this,"instId","");s(this,"instName","")}}he([a(0,"node_id",String),be("design:type",String)],ii.prototype,"nodeId",void 0),he([a(1,"node_name",String),be("design:type",String)],ii.prototype,"nodeName",void 0),he([a(2,"inst_id",String),be("design:type",String)],ii.prototype,"instId",void 0),he([a(3,"inst_name",String),be("design:type",String)],ii.prototype,"instName",void 0);class br{constructor(){s(this,"status",0);s(this,"createAt");s(this,"updateAt");s(this,"createBy","");s(this,"updateBy","")}}he([a(0,"status",Number),be("design:type",Number)],br.prototype,"status",void 0),he([a(1,"create_at",Date),be("design:type",typeof(Ss=typeof Date<"u"&&Date)=="function"?Ss:Object)],br.prototype,"createAt",void 0),he([a(2,"update_at",Date),be("design:type",typeof(vs=typeof Date<"u"&&Date)=="function"?vs:Object)],br.prototype,"updateAt",void 0),he([a(3,"create_by",String),be("design:type",String)],br.prototype,"createBy",void 0),he([a(4,"update_by",String),be("design:type",String)],br.prototype,"updateBy",void 0);class vt{constructor(){s(this,"name","");s(this,"pos","");s(this,"text","");s(this,"buff",new Uint8Array)}}he([a(0,"name",String),be("design:type",String)],vt.prototype,"name",void 0),he([a(1,"pos",String),be("design:type",String)],vt.prototype,"pos",void 0),he([a(2,"text",String),be("design:type",String)],vt.prototype,"text",void 0),he([a(3,"buff",Uint8Array),be("design:type",typeof(Rs=typeof Uint8Array<"u"&&Uint8Array)=="function"?Rs:Object)],vt.prototype,"buff",void 0);class Ue{constructor(){s(this,"topic","");s(this,"code","");s(this,"group","");s(this,"sets","")}}he([a(0,"topic",String),be("design:type",String)],Ue.prototype,"topic",void 0),he([a(1,"code",String),be("design:type",String)],Ue.prototype,"code",void 0),he([a(2,"group",String),be("design:type",String)],Ue.prototype,"group",void 0),he([a(3,"sets",String),be("design:type",String)],Ue.prototype,"sets",void 0);var Oe=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},Se=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Ps,js,ws,Es,Ts;class oi{constructor(){s(this,"suite","");s(this,"project","");s(this,"name","");s(this,"version","")}}Oe([a(0,"suite",String),Se("design:type",String)],oi.prototype,"suite",void 0),Oe([a(1,"project",String),Se("design:type",String)],oi.prototype,"project",void 0),Oe([a(2,"name",String),Se("design:type",String)],oi.prototype,"name",void 0),Oe([a(3,"version",String),Se("design:type",String)],oi.prototype,"version",void 0);class ut{constructor(){s(this,"name","");s(this,"proto","");s(this,"algo","");s(this,"parties",[]);s(this,"message","")}}Oe([a(0,"name",String),Se("design:type",String)],ut.prototype,"name",void 0),Oe([a(1,"proto",String),Se("design:type",String)],ut.prototype,"proto",void 0),Oe([a(2,"algo",String),Se("design:type",String)],ut.prototype,"algo",void 0),Oe([a(3,"parties",[Array,String]),Se("design:type",Array)],ut.prototype,"parties",void 0),Oe([a(4,"message",String),Se("design:type",String)],ut.prototype,"message",void 0);class ir{constructor(){s(this,"suite","");s(this,"csr",new Uint8Array)}}Oe([a(0,"suite",String),Se("design:type",String)],ir.prototype,"suite",void 0),Oe([a(1,"csr",Uint8Array),Se("design:type",typeof(Ps=typeof Uint8Array<"u"&&Uint8Array)=="function"?Ps:Object)],ir.prototype,"csr",void 0);class Dn{constructor(){s(this,"hello",new ut);s(this,"suite",new ir);s(this,"local","")}}Oe([a(0,"hello",ut),Se("design:type",ut)],Dn.prototype,"hello",void 0),Oe([a(1,"suite",ir),Se("design:type",ir)],Dn.prototype,"suite",void 0),Oe([a(2,"local",String),Se("design:type",String)],Dn.prototype,"local",void 0);class si extends Dn{constructor(){super(...arguments);s(this,"keys",{})}}Oe([a(0,"keys",[Map,String,Uint8Array]),Se("design:type",typeof(js=typeof Record<"u"&&Record)=="function"?js:Object)],si.prototype,"keys",void 0);class Hi{constructor(){s(this,"keys",{})}}Oe([a(0,"keys",[Map,String,Uint8Array]),Se("design:type",typeof(ws=typeof Record<"u"&&Record)=="function"?ws:Object)],Hi.prototype,"keys",void 0);class nn{constructor(){s(this,"suite","");s(this,"body",new Uint8Array)}}Oe([a(0,"suite",String),Se("design:type",String)],nn.prototype,"suite",void 0),Oe([a(1,"body",Uint8Array),Se("design:type",typeof(Es=typeof Uint8Array<"u"&&Uint8Array)=="function"?Es:Object)],nn.prototype,"body",void 0);class ci extends nn{constructor(){super(...arguments);s(this,"reKey",new Uint8Array)}}Oe([a(0,"re_key",Uint8Array),Se("design:type",typeof(Ts=typeof Uint8Array<"u"&&Uint8Array)=="function"?Ts:Object)],ci.prototype,"reKey",void 0);class tt{constructor(){s(this,"code","");s(this,"name","");s(this,"memo","");s(this,"uri","");s(this,"level","");s(this,"nodeId","");s(this,"instId","");s(this,"raw","")}}Oe([a(0,"code",String),Se("design:type",String)],tt.prototype,"code",void 0),Oe([a(1,"name",String),Se("design:type",String)],tt.prototype,"name",void 0),Oe([a(2,"memo",String),Se("design:type",String)],tt.prototype,"memo",void 0),Oe([a(3,"uri",String),Se("design:type",String)],tt.prototype,"uri",void 0),Oe([a(4,"level",String),Se("design:type",String)],tt.prototype,"level",void 0),Oe([a(5,"node_id",String),Se("design:type",String)],tt.prototype,"nodeId",void 0),Oe([a(6,"inst_id",String),Se("design:type",String)],tt.prototype,"instId",void 0),Oe([a(7,"raw",String),Se("design:type",String)],tt.prototype,"raw",void 0);var Q=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},Z=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Ns,As;class Rt{constructor(){s(this,"id","");s(this,"name","");s(this,"modal","");s(this,"proto","");s(this,"url","");s(this,"memo","");s(this,"status",0)}}Q([a(0,"id",String),Z("design:type",String)],Rt.prototype,"id",void 0),Q([a(1,"name",String),Z("design:type",String)],Rt.prototype,"name",void 0),Q([a(2,"modal",String),Z("design:type",String)],Rt.prototype,"modal",void 0),Q([a(3,"proto",String),Z("design:type",String)],Rt.prototype,"proto",void 0),Q([a(4,"url",String),Z("design:type",String)],Rt.prototype,"url",void 0),Q([a(5,"memo",String),Z("design:type",String)],Rt.prototype,"memo",void 0),Q([a(6,"status",Number),Z("design:type",Number)],Rt.prototype,"status",void 0);class _r extends Rt{constructor(){super(...arguments);s(this,"role","");s(this,"rw",0);s(this,"ww",0);s(this,"failover",!1)}}Q([a(0,"role",String),Z("design:type",String)],_r.prototype,"role",void 0),Q([a(1,"rw",Number),Z("design:type",Number)],_r.prototype,"rw",void 0),Q([a(2,"ww",Number),Z("design:type",Number)],_r.prototype,"ww",void 0),Q([a(3,"failover",Boolean),Z("design:type",Boolean)],_r.prototype,"failover",void 0);class Je{constructor(){s(this,"id","");s(this,"name","");s(this,"modal","");s(this,"keepalive",0);s(this,"retries",0);s(this,"rwmode",0);s(this,"failover",!1);s(this,"instances",[]);s(this,"status",0);s(this,"url","");s(this,"proto","");s(this,"gfs","")}}Q([a(0,"id",String),Z("design:type",String)],Je.prototype,"id",void 0),Q([a(1,"name",String),Z("design:type",String)],Je.prototype,"name",void 0),Q([a(2,"modal",String),Z("design:type",String)],Je.prototype,"modal",void 0),Q([a(3,"keepalive",Number),Z("design:type",Number)],Je.prototype,"keepalive",void 0),Q([a(4,"retries",Number),Z("design:type",Number)],Je.prototype,"retries",void 0),Q([a(5,"rw_mode",Number),Z("design:type",Number)],Je.prototype,"rwmode",void 0),Q([a(6,"failover",Boolean),Z("design:type",Boolean)],Je.prototype,"failover",void 0),Q([a(7,"instances",[Array,_r]),Z("design:type",Array)],Je.prototype,"instances",void 0),Q([a(8,"status",Number),Z("design:type",Number)],Je.prototype,"status",void 0),Q([a(9,"url",String),Z("design:type",String)],Je.prototype,"url",void 0),Q([a(10,"proto",String),Z("design:type",String)],Je.prototype,"proto",void 0),Q([a(11,"gfs",String),Z("design:type",String)],Je.prototype,"gfs",void 0);class or{constructor(){s(this,"id","");s(this,"expr","");s(this,"db","")}}Q([a(0,"id",String),Z("design:type",String)],or.prototype,"id",void 0),Q([a(1,"expr",String),Z("design:type",String)],or.prototype,"expr",void 0),Q([a(2,"db",String),Z("design:type",String)],or.prototype,"db",void 0);class Yt{constructor(){s(this,"id","");s(this,"name","");s(this,"memo","");s(this,"nodes",[]);s(this,"sides",{});s(this,"status",0)}}Q([a(0,"id",String),Z("design:type",String)],Yt.prototype,"id",void 0),Q([a(1,"name",String),Z("design:type",String)],Yt.prototype,"name",void 0),Q([a(2,"memo",String),Z("design:type",String)],Yt.prototype,"memo",void 0),Q([a(3,"nodes",[Array,String]),Z("design:type",Array)],Yt.prototype,"nodes",void 0),Q([a(4,"sides",[Map,String,String]),Z("design:type",typeof(Ns=typeof Record<"u"&&Record)=="function"?Ns:Object)],Yt.prototype,"sides",void 0),Q([a(5,"status",Number),Z("design:type",Number)],Yt.prototype,"status",void 0);class bn{constructor(){s(this,"id","");s(this,"name","");s(this,"modal","");s(this,"path","");s(this,"size",0);s(this,"lines",0);s(this,"createAt")}}Q([a(0,"id",String),Z("design:type",String)],bn.prototype,"id",void 0),Q([a(1,"name",String),Z("design:type",String)],bn.prototype,"name",void 0),Q([a(2,"modal",String),Z("design:type",String)],bn.prototype,"modal",void 0),Q([a(3,"path",String),Z("design:type",String)],bn.prototype,"path",void 0),Q([a(4,"size",Number),Z("design:type",Number)],bn.prototype,"size",void 0),Q([a(5,"lines",Number),Z("design:type",Number)],bn.prototype,"lines",void 0),Q([a(6,"create_at",Date),Z("design:type",typeof(As=typeof Date<"u"&&Date)=="function"?As:Object)],bn.prototype,"createAt",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 u=r.length-1;u>=0;u--)(c=r[u])&&(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)},Ms,Is;class xn{constructor(){s(this,"metadata",{});s(this,"content","");s(this,"timestamp",0)}}rn([a(0,"metadata",[Map,String,String]),on("design:type",typeof(Ms=typeof Record<"u"&&Record)=="function"?Ms:Object)],xn.prototype,"metadata",void 0),rn([a(1,"content",String),on("design:type",String)],xn.prototype,"content",void 0),rn([a(2,"timestamp",Number),on("design:type",Number)],xn.prototype,"timestamp",void 0);class Bn{constructor(){s(this,"queries",{});s(this,"start",0);s(this,"end",0);s(this,"limit",0);s(this,"step","");s(this,"direction","");s(this,"routeKey","")}}rn([a(0,"queries",[Map,String,String]),on("design:type",typeof(Is=typeof Record<"u"&&Record)=="function"?Is:Object)],Bn.prototype,"queries",void 0),rn([a(1,"start",Number),on("design:type",Number)],Bn.prototype,"start",void 0),rn([a(2,"end",Number),on("design:type",Number)],Bn.prototype,"end",void 0),rn([a(3,"limit",Number),on("design:type",Number)],Bn.prototype,"limit",void 0),rn([a(4,"step",String),on("design:type",String)],Bn.prototype,"step",void 0),rn([a(5,"direction",String),on("design:type",String)],Bn.prototype,"direction",void 0),rn([a(6,"route_key",String),on("design:type",String)],Bn.prototype,"routeKey",void 0);var dt=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},ft=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},$s,Cs,Us;class Me{constructor(){s(this,"codec","");s(this,"schema","");s(this,"buffer",new Uint8Array)}}dt([a(0,"codec",String),ft("design:type",String)],Me.prototype,"codec",void 0),dt([a(1,"schema",String),ft("design:type",String)],Me.prototype,"schema",void 0),dt([a(2,"buffer",Uint8Array),ft("design:type",typeof($s=typeof Uint8Array<"u"&&Uint8Array)=="function"?$s:Object)],Me.prototype,"buffer",void 0);class pt{constructor(){s(this,"version","");s(this,"entity",new Me);s(this,"timestamp",0);s(this,"duration",0);s(this,"key","")}}dt([a(0,"version",String),ft("design:type",String)],pt.prototype,"version",void 0),dt([a(1,"entity",Me),ft("design:type",Me)],pt.prototype,"entity",void 0),dt([a(2,"timestamp",Number),ft("design:type",Number)],pt.prototype,"timestamp",void 0),dt([a(3,"duration",Number),ft("design:type",Number)],pt.prototype,"duration",void 0),dt([a(4,"key",String),ft("design:type",String)],pt.prototype,"key",void 0);class ai{constructor(){s(this,"key","");s(this,"value",new Me);s(this,"updateAt")}}dt([a(0,"key",String),ft("design:type",String)],ai.prototype,"key",void 0),dt([a(1,"value",Me),ft("design:type",Me)],ai.prototype,"value",void 0),dt([a(2,"update_at",Date),ft("design:type",typeof(Cs=typeof Date<"u"&&Date)=="function"?Cs:Object)],ai.prototype,"updateAt",void 0);class Or{constructor(){s(this,"mno","");s(this,"kind","");s(this,"mime",new Uint8Array);s(this,"text","")}}dt([a(0,"mno",String),ft("design:type",String)],Or.prototype,"mno",void 0),dt([a(1,"kind",String),ft("design:type",String)],Or.prototype,"kind",void 0),dt([a(2,"mime",Uint8Array),ft("design:type",typeof(Us=typeof Uint8Array<"u"&&Uint8Array)=="function"?Us:Object)],Or.prototype,"mime",void 0),dt([a(3,"text",String),ft("design:type",String)],Or.prototype,"text",void 0);class hl{}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 u=r.length-1;u>=0;u--)(c=r[u])&&(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)};class _n{constructor(){s(this,"zone","");s(this,"cluster","");s(this,"cell","");s(this,"group","");s(this,"address","")}}Pt([a(0,"zone",String),jt("design:type",String)],_n.prototype,"zone",void 0),Pt([a(1,"cluster",String),jt("design:type",String)],_n.prototype,"cluster",void 0),Pt([a(2,"cell",String),jt("design:type",String)],_n.prototype,"cell",void 0),Pt([a(3,"group",String),jt("design:type",String)],_n.prototype,"group",void 0),Pt([a(4,"address",String),jt("design:type",String)],_n.prototype,"address",void 0);class qe{constructor(){s(this,"mdc","");s(this,"version","");s(this,"name","");s(this,"crt","");s(this,"key","");s(this,"rootCrt","");s(this,"lattice",new _n);s(this,"nodeID","");s(this,"instID","")}}Pt([a(0,"mdc",String),jt("design:type",String)],qe.prototype,"mdc",void 0),Pt([a(1,"version",String),jt("design:type",String)],qe.prototype,"version",void 0),Pt([a(2,"name",String),jt("design:type",String)],qe.prototype,"name",void 0),Pt([a(3,"crt",String),jt("design:type",String)],qe.prototype,"crt",void 0),Pt([a(4,"key",String),jt("design:type",String)],qe.prototype,"key",void 0),Pt([a(5,"root_crt",String),jt("design:type",String)],qe.prototype,"rootCrt",void 0),Pt([a(6,"lattice",_n),jt("design:type",_n)],qe.prototype,"lattice",void 0),Pt([a(7,"node_id",String),jt("design:type",String)],qe.prototype,"nodeID",void 0),Pt([a(8,"inst_id",String),jt("design:type",String)],qe.prototype,"instID",void 0);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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},Hn=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)};class lt{constructor(){s(this,"id","")}}Ln([a(0,"idc",String),Hn("design:type",String)],lt.prototype,"id",void 0);class qn extends lt{constructor(){super(...arguments);s(this,"ip","");s(this,"port","");s(this,"host","");s(this,"name","")}}Ln([a(0,"ip",String),Hn("design:type",String)],qn.prototype,"ip",void 0),Ln([a(1,"port",String),Hn("design:type",String)],qn.prototype,"port",void 0),Ln([a(2,"host",String),Hn("design:type",String)],qn.prototype,"host",void 0),Ln([a(3,"name",String),Hn("design:type",String)],qn.prototype,"name",void 0);class qi{constructor(){s(this,"nodeId","");s(this,"instId","");s(this,"instName","")}}Ln([a(0,"node_id",String),Hn("design:type",String)],qi.prototype,"nodeId",void 0),Ln([a(1,"inst_id",String),Hn("design:type",String)],qi.prototype,"instId",void 0),Ln([a(2,"inst_name",String),Hn("design:type",String)],qi.prototype,"instName",void 0);var nt=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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)},Fs,ks,Ds,xs,Bs,Ls;class it{constructor(){s(this,"version","");s(this,"tid","");s(this,"sid","");s(this,"eid","");s(this,"mid","");s(this,"timestamp","");s(this,"source",new lt);s(this,"target",new lt);s(this,"binding",new Ue);s(this,"entity",new Me)}}nt([a(0,"version",String),rt("design:type",String)],it.prototype,"version",void 0),nt([a(1,"tid",String),rt("design:type",String)],it.prototype,"tid",void 0),nt([a(2,"sid",String),rt("design:type",String)],it.prototype,"sid",void 0),nt([a(3,"eid",String),rt("design:type",String)],it.prototype,"eid",void 0),nt([a(4,"mid",String),rt("design:type",String)],it.prototype,"mid",void 0),nt([a(5,"timestamp",String),rt("design:type",String)],it.prototype,"timestamp",void 0),nt([a(6,"source",lt),rt("design:type",typeof(Fs=typeof lt<"u"&&lt)=="function"?Fs:Object)],it.prototype,"source",void 0),nt([a(7,"target",lt),rt("design:type",typeof(ks=typeof lt<"u"&&lt)=="function"?ks:Object)],it.prototype,"target",void 0),nt([a(8,"binding",Ue),rt("design:type",typeof(Ds=typeof Ue<"u"&&Ue)=="function"?Ds:Object)],it.prototype,"binding",void 0),nt([a(9,"entity",Me),rt("design:type",typeof(xs=typeof Me<"u"&&Me)=="function"?xs:Object)],it.prototype,"entity",void 0);class sn{constructor(){s(this,"taskId","");s(this,"binding",new Ue);s(this,"status",0);s(this,"createAt",0);s(this,"invokeAt",0);s(this,"entity",new Me)}}nt([a(0,"task_id",String),rt("design:type",String)],sn.prototype,"taskId",void 0),nt([a(1,"binding",Ue),rt("design:type",typeof(Bs=typeof Ue<"u"&&Ue)=="function"?Bs:Object)],sn.prototype,"binding",void 0),nt([a(2,"status",Number),rt("design:type",Number)],sn.prototype,"status",void 0),nt([a(3,"create_at",Number),rt("design:type",Number)],sn.prototype,"createAt",void 0),nt([a(4,"invoke_at",Number),rt("design:type",Number)],sn.prototype,"invokeAt",void 0),nt([a(5,"entity",Me),rt("design:type",typeof(Ls=typeof Me<"u"&&Me)=="function"?Ls:Object)],sn.prototype,"entity",void 0);var Te=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},Ne=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Hs,qs,zs,Gs,Ws;class Ge{constructor(){s(this,"algo","");s(this,"domain","");s(this,"subject","");s(this,"length",0);s(this,"activeAt");s(this,"expireAt");s(this,"mail","");s(this,"isCA",!1);s(this,"caAlgo","");s(this,"caCert","");s(this,"caKey","");s(this,"ips",[]);s(this,"name","");s(this,"usage",0)}}Te([a(0,"algo",String),Ne("design:type",String)],Ge.prototype,"algo",void 0),Te([a(1,"domain",String),Ne("design:type",String)],Ge.prototype,"domain",void 0),Te([a(2,"subject",String),Ne("design:type",String)],Ge.prototype,"subject",void 0),Te([a(3,"length",Number),Ne("design:type",Number)],Ge.prototype,"length",void 0),Te([a(4,"active_at",Date),Ne("design:type",typeof(Hs=typeof Date<"u"&&Date)=="function"?Hs:Object)],Ge.prototype,"activeAt",void 0),Te([a(5,"expire_at",Date),Ne("design:type",typeof(qs=typeof Date<"u"&&Date)=="function"?qs:Object)],Ge.prototype,"expireAt",void 0),Te([a(6,"mail",String),Ne("design:type",String)],Ge.prototype,"mail",void 0),Te([a(7,"is_ca",Boolean),Ne("design:type",Boolean)],Ge.prototype,"isCA",void 0),Te([a(8,"ca_algo",String),Ne("design:type",String)],Ge.prototype,"caAlgo",void 0),Te([a(9,"ca_cert",String),Ne("design:type",String)],Ge.prototype,"caCert",void 0),Te([a(10,"ca_key",String),Ne("design:type",String)],Ge.prototype,"caKey",void 0),Te([a(11,"ips",[Array,String]),Ne("design:type",Array)],Ge.prototype,"ips",void 0),Te([a(12,"name",String),Ne("design:type",String)],Ge.prototype,"name",void 0),Te([a(13,"usage",Number),Ne("design:type",Number)],Ge.prototype,"usage",void 0);class Ct extends Ge{constructor(){super(...arguments);s(this,"crt","");s(this,"key","");s(this,"crl","");s(this,"id","")}}Te([a(0,"crt",String),Ne("design:type",String)],Ct.prototype,"crt",void 0),Te([a(1,"key",String),Ne("design:type",String)],Ct.prototype,"key",void 0),Te([a(2,"crl",String),Ne("design:type",String)],Ct.prototype,"crl",void 0),Te([a(3,"id",String),Ne("design:type",String)],Ct.prototype,"id",void 0);class Sr{constructor(){s(this,"id","");s(this,"reason",0)}}Te([a(0,"id",String),Ne("design:type",String)],Sr.prototype,"id",void 0),Te([a(1,"reason",Number),Ne("design:type",Number)],Sr.prototype,"reason",void 0);class sr{constructor(){s(this,"id","");s(this,"algo","");s(this,"expireAt")}}Te([a(0,"id",String),Ne("design:type",String)],sr.prototype,"id",void 0),Te([a(1,"algo",String),Ne("design:type",String)],sr.prototype,"algo",void 0),Te([a(2,"expire_at",Date),Ne("design:type",typeof(zs=typeof Date<"u"&&Date)=="function"?zs:Object)],sr.prototype,"expireAt",void 0);class Eo{constructor(){s(this,"crts",{});s(this,"roots",{})}}Te([a(0,"crts",[Map,String,Ct]),Ne("design:type",typeof(Gs=typeof Record<"u"&&Record)=="function"?Gs:Object)],Eo.prototype,"crts",void 0),Te([a(1,"roots",[Map,String,Ct]),Ne("design:type",typeof(Ws=typeof Record<"u"&&Record)=="function"?Ws:Object)],Eo.prototype,"roots",void 0);var Pe=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},je=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Vs,Js;class _e{constructor(){s(this,"version","");s(this,"level",0);s(this,"name","");s(this,"createBy","");s(this,"createAt",0);s(this,"activeAt",0);s(this,"factor","");s(this,"signature","");s(this,"muid","");s(this,"server","");s(this,"crt","");s(this,"group",[]);s(this,"replicas",0);s(this,"maxCooperators",0);s(this,"maxTenants",0);s(this,"maxUsers",0);s(this,"maxMills",0);s(this,"whiteURN",[]);s(this,"blackURN",[]);s(this,"superURN",[])}}Pe([a(0,"version",String),je("design:type",String)],_e.prototype,"version",void 0),Pe([a(1,"level",Number),je("design:type",Number)],_e.prototype,"level",void 0),Pe([a(2,"name",String),je("design:type",String)],_e.prototype,"name",void 0),Pe([a(3,"create_by",String),je("design:type",String)],_e.prototype,"createBy",void 0),Pe([a(4,"create_at",Number),je("design:type",Number)],_e.prototype,"createAt",void 0),Pe([a(5,"active_at",Number),je("design:type",Number)],_e.prototype,"activeAt",void 0),Pe([a(6,"factor",String),je("design:type",String)],_e.prototype,"factor",void 0),Pe([a(7,"signature",String),je("design:type",String)],_e.prototype,"signature",void 0),Pe([a(8,"muid",String),je("design:type",String)],_e.prototype,"muid",void 0),Pe([a(9,"server",String),je("design:type",String)],_e.prototype,"server",void 0),Pe([a(10,"crt",String),je("design:type",String)],_e.prototype,"crt",void 0),Pe([a(11,"group",[Array,String]),je("design:type",Array)],_e.prototype,"group",void 0),Pe([a(12,"replicas",Number),je("design:type",Number)],_e.prototype,"replicas",void 0),Pe([a(13,"max_cooperators",Number),je("design:type",Number)],_e.prototype,"maxCooperators",void 0),Pe([a(14,"max_tenants",Number),je("design:type",Number)],_e.prototype,"maxTenants",void 0),Pe([a(15,"max_users",Number),je("design:type",Number)],_e.prototype,"maxUsers",void 0),Pe([a(16,"max_mills",Number),je("design:type",Number)],_e.prototype,"maxMills",void 0),Pe([a(17,"white_urns",[Array,String]),je("design:type",Array)],_e.prototype,"whiteURN",void 0),Pe([a(18,"black_urns",[Array,String]),je("design:type",Array)],_e.prototype,"blackURN",void 0),Pe([a(19,"super_urns",[Array,String]),je("design:type",Array)],_e.prototype,"superURN",void 0);class vr{constructor(){s(this,"cipher","");s(this,"explain",new _e);s(this,"createAt")}}Pe([a(0,"cipher",String),je("design:type",String)],vr.prototype,"cipher",void 0),Pe([a(1,"explain",_e),je("design:type",_e)],vr.prototype,"explain",void 0),Pe([a(2,"create_at",Date),je("design:type",typeof(Vs=typeof Date<"u"&&Date)=="function"?Vs:Object)],vr.prototype,"createAt",void 0);class Rr{constructor(){s(this,"cipher","");s(this,"explain",new qe);s(this,"nodeKey","")}}Pe([a(0,"cipher",String),je("design:type",String)],Rr.prototype,"cipher",void 0),Pe([a(1,"explain",qe),je("design:type",typeof(Js=typeof qe<"u"&&qe)=="function"?Js:Object)],Rr.prototype,"explain",void 0),Pe([a(2,"node_key",String),je("design:type",String)],Rr.prototype,"nodeKey",void 0);var le=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},ye=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Ks,Xs;class Pr{constructor(){s(this,"mno","");s(this,"kind","");s(this,"mime",new Uint8Array);s(this,"text","")}}le([a(0,"mno",String),ye("design:type",String)],Pr.prototype,"mno",void 0),le([a(1,"kind",String),ye("design:type",String)],Pr.prototype,"kind",void 0),le([a(2,"mime",Uint8Array),ye("design:type",typeof(Ks=typeof Uint8Array<"u"&&Uint8Array)=="function"?Ks:Object)],Pr.prototype,"mime",void 0),le([a(3,"text",String),ye("design:type",String)],Pr.prototype,"text",void 0);class Dt{constructor(){s(this,"clientId","");s(this,"clientKey","");s(this,"username","");s(this,"password","");s(this,"captcha","")}}le([a(0,"client_id",String),ye("design:type",String)],Dt.prototype,"clientId",void 0),le([a(1,"client_key",String),ye("design:type",String)],Dt.prototype,"clientKey",void 0),le([a(2,"username",String),ye("design:type",String)],Dt.prototype,"username",void 0),le([a(3,"password",String),ye("design:type",String)],Dt.prototype,"password",void 0),le([a(4,"captcha",String),ye("design:type",String)],Dt.prototype,"captcha",void 0);class On{constructor(){s(this,"token","");s(this,"kind","");s(this,"expiresAt",0);s(this,"scope","");s(this,"refreshToken","")}}le([a(0,"token",String),ye("design:type",String)],On.prototype,"token",void 0),le([a(1,"type",String),ye("design:type",String)],On.prototype,"kind",void 0),le([a(2,"expires_at",Number),ye("design:type",Number)],On.prototype,"expiresAt",void 0),le([a(3,"scope",String),ye("design:type",String)],On.prototype,"scope",void 0),le([a(4,"refresh_token",String),ye("design:type",String)],On.prototype,"refreshToken",void 0);class To{constructor(){s(this,"code","")}}le([a(0,"code",String),ye("design:type",String)],To.prototype,"code",void 0);class zi{constructor(){s(this,"code","");s(this,"redirectURI","")}}le([a(0,"code",String),ye("design:type",String)],zi.prototype,"code",void 0),le([a(1,"redirect_uri",String),ye("design:type",String)],zi.prototype,"redirectURI",void 0);class Gi{constructor(){s(this,"clientId","");s(this,"userId","");s(this,"expiresAt",0)}}le([a(0,"client_id",String),ye("design:type",String)],Gi.prototype,"clientId",void 0),le([a(1,"user_id",String),ye("design:type",String)],Gi.prototype,"userId",void 0),le([a(2,"expires_at",Number),ye("design:type",Number)],Gi.prototype,"expiresAt",void 0);class yt{constructor(){s(this,"token","");s(this,"userid","");s(this,"username","");s(this,"nickname","");s(this,"avatar","");s(this,"mobile","");s(this,"mail","");s(this,"deptId","");s(this,"mdc","");s(this,"instIds",[]);s(this,"attrs",[]);s(this,"raw",{})}}le([a(0,"token",String),ye("design:type",String)],yt.prototype,"token",void 0),le([a(1,"userid",String),ye("design:type",String)],yt.prototype,"userid",void 0),le([a(2,"username",String),ye("design:type",String)],yt.prototype,"username",void 0),le([a(3,"nickname",String),ye("design:type",String)],yt.prototype,"nickname",void 0),le([a(4,"avatar",String),ye("design:type",String)],yt.prototype,"avatar",void 0),le([a(5,"mobile",String),ye("design:type",String)],yt.prototype,"mobile",void 0),le([a(6,"mail",String),ye("design:type",String)],yt.prototype,"mail",void 0),le([a(7,"dept_id",String),ye("design:type",String)],yt.prototype,"deptId",void 0),le([a(8,"mdc",String),ye("design:type",String)],yt.prototype,"mdc",void 0),le([a(9,"inst_ids",[Array,String]),ye("design:type",Array)],yt.prototype,"instIds",void 0),le([a(10,"attrs",[Array,String]),ye("design:type",Array)],yt.prototype,"attrs",void 0),le([a(11,"raw",[Map,String,String]),ye("design:type",typeof(Xs=typeof Record<"u"&&Record)=="function"?Xs:Object)],yt.prototype,"raw",void 0);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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},wr=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Ys,Qs;class No{constructor(){s(this,"arguments",[]);s(this,"attachments",{})}}jr([a(0,"arguments",[Array,Object]),wr("design:type",Array)],No.prototype,"arguments",void 0),jr([a(1,"attachments",[Map,String,String]),wr("design:type",typeof(Ys=typeof Record<"u"&&Record)=="function"?Ys:Object)],No.prototype,"attachments",void 0);class ui{constructor(){s(this,"code","");s(this,"message","");s(this,"cause",new vt);s(this,"content")}}jr([a(0,"code",String),wr("design:type",String)],ui.prototype,"code",void 0),jr([a(1,"message",String),wr("design:type",String)],ui.prototype,"message",void 0),jr([a(2,"cause",vt),wr("design:type",typeof(Qs=typeof vt<"u"&&vt)=="function"?Qs:Object)],ui.prototype,"cause",void 0),jr([a(3,"content",Object),wr("design:type",Object)],ui.prototype,"content",void 0);var ae=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},ue=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Zs,ec;class xt{constructor(){s(this,"version","");s(this,"proto","");s(this,"codec","");s(this,"mdc","");s(this,"zone","");s(this,"cluster","");s(this,"cell","");s(this,"group","");s(this,"address","")}}ae([a(0,"version",String),ue("design:type",String)],xt.prototype,"version",void 0),ae([a(1,"proto",String),ue("design:type",String)],xt.prototype,"proto",void 0),ae([a(2,"codec",String),ue("design:type",String)],xt.prototype,"codec",void 0),ae([a(3,"mdc",String),ue("design:type",String)],xt.prototype,"mdc",void 0),ae([a(4,"zone",String),ue("design:type",String)],xt.prototype,"zone",void 0),ae([a(5,"cluster",String),ue("design:type",String)],xt.prototype,"cluster",void 0),ae([a(6,"cell",String),ue("design:type",String)],xt.prototype,"cell",void 0),ae([a(7,"group",String),ue("design:type",String)],xt.prototype,"group",void 0),ae([a(8,"address",String),ue("design:type",String)],xt.prototype,"address",void 0);class cn extends xt{constructor(){super(...arguments);s(this,"urn","");s(this,"namespace","");s(this,"name","");s(this,"flags",0);s(this,"timeout",0);s(this,"retries",0)}}ae([a(0,"urn",String),ue("design:type",String)],cn.prototype,"urn",void 0),ae([a(1,"namespace",String),ue("design:type",String)],cn.prototype,"namespace",void 0),ae([a(2,"name",String),ue("design:type",String)],cn.prototype,"name",void 0),ae([a(3,"flags",Number),ue("design:type",Number)],cn.prototype,"flags",void 0),ae([a(4,"timeout",Number),ue("design:type",Number)],cn.prototype,"timeout",void 0),ae([a(5,"retries",Number),ue("design:type",Number)],cn.prototype,"retries",void 0);class wt extends xt{constructor(){super(...arguments);s(this,"urn","");s(this,"namespace","");s(this,"name","");s(this,"flags",0);s(this,"timeout",0);s(this,"retries",0);s(this,"sets","");s(this,"kind","");s(this,"lang","");s(this,"attrs",{})}}ae([a(0,"urn",String),ue("design:type",String)],wt.prototype,"urn",void 0),ae([a(1,"namespace",String),ue("design:type",String)],wt.prototype,"namespace",void 0),ae([a(2,"name",String),ue("design:type",String)],wt.prototype,"name",void 0),ae([a(3,"flags",Number),ue("design:type",Number)],wt.prototype,"flags",void 0),ae([a(4,"timeout",Number),ue("design:type",Number)],wt.prototype,"timeout",void 0),ae([a(5,"retries",Number),ue("design:type",Number)],wt.prototype,"retries",void 0),ae([a(6,"sets",String),ue("design:type",String)],wt.prototype,"sets",void 0),ae([a(7,"kind",String),ue("design:type",String)],wt.prototype,"kind",void 0),ae([a(8,"lang",String),ue("design:type",String)],wt.prototype,"lang",void 0),ae([a(9,"attrs",[Map,String,String]),ue("design:type",typeof(Zs=typeof Record<"u"&&Record)=="function"?Zs:Object)],wt.prototype,"attrs",void 0);class Ao{constructor(){s(this,"references",[]);s(this,"services",[])}}ae([a(0,"references",[Array,cn]),ue("design:type",Array)],Ao.prototype,"references",void 0),ae([a(1,"services",[Array,wt]),ue("design:type",Array)],Ao.prototype,"services",void 0);class ot{constructor(){s(this,"instanceId","");s(this,"name","");s(this,"kind","");s(this,"address","");s(this,"content");s(this,"timestamp",0);s(this,"attachments",{})}}ae([a(0,"instance_id",String),ue("design:type",String)],ot.prototype,"instanceId",void 0),ae([a(1,"name",String),ue("design:type",String)],ot.prototype,"name",void 0),ae([a(2,"kind",String),ue("design:type",String)],ot.prototype,"kind",void 0),ae([a(3,"address",String),ue("design:type",String)],ot.prototype,"address",void 0),ae([a(4,"content",Object),ue("design:type",Object)],ot.prototype,"content",void 0),ae([a(5,"timestamp",Number),ue("design:type",Number)],ot.prototype,"timestamp",void 0),ae([a(6,"attachments",[Map,String,String]),ue("design:type",typeof(ec=typeof Record<"u"&&Record)=="function"?ec:Object)],ot.prototype,"attachments",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 u=r.length-1;u>=0;u--)(c=r[u])&&(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)},tc,nc,rc;class de{constructor(){s(this,"sid","");s(this,"did","");s(this,"name","");s(this,"kind","");s(this,"pattern","");s(this,"address","");s(this,"memo","");s(this,"rank",0);s(this,"tags","");s(this,"expireAt");s(this,"upstream",0);s(this,"downstream",0);s(this,"requests",0);s(this,"hostRoot","");s(this,"hostCrt","");s(this,"hostKey","");s(this,"guestRoot","");s(this,"sap","");s(this,"skip",!1);s(this,"raw","");s(this,"status",0);s(this,"createAt");s(this,"updateAt");s(this,"createBy","");s(this,"updateBy","")}}x([a(0,"sid",String),B("design:type",String)],de.prototype,"sid",void 0),x([a(1,"did",String),B("design:type",String)],de.prototype,"did",void 0),x([a(2,"name",String),B("design:type",String)],de.prototype,"name",void 0),x([a(3,"kind",String),B("design:type",String)],de.prototype,"kind",void 0),x([a(4,"pattern",String),B("design:type",String)],de.prototype,"pattern",void 0),x([a(5,"address",String),B("design:type",String)],de.prototype,"address",void 0),x([a(6,"memo",String),B("design:type",String)],de.prototype,"memo",void 0),x([a(7,"rank",Number),B("design:type",Number)],de.prototype,"rank",void 0),x([a(8,"tags",String),B("design:type",String)],de.prototype,"tags",void 0),x([a(9,"expire_at",Date),B("design:type",typeof(tc=typeof Date<"u"&&Date)=="function"?tc:Object)],de.prototype,"expireAt",void 0),x([a(10,"upstream",Number),B("design:type",Number)],de.prototype,"upstream",void 0),x([a(11,"downstream",Number),B("design:type",Number)],de.prototype,"downstream",void 0),x([a(12,"requests",Number),B("design:type",Number)],de.prototype,"requests",void 0),x([a(13,"host_root",String),B("design:type",String)],de.prototype,"hostRoot",void 0),x([a(14,"host_crt",String),B("design:type",String)],de.prototype,"hostCrt",void 0),x([a(15,"host_key",String),B("design:type",String)],de.prototype,"hostKey",void 0),x([a(16,"guest_root",String),B("design:type",String)],de.prototype,"guestRoot",void 0),x([a(17,"sap",String),B("design:type",String)],de.prototype,"sap",void 0),x([a(18,"skip",Boolean),B("design:type",Boolean)],de.prototype,"skip",void 0),x([a(19,"raw",String),B("design:type",String)],de.prototype,"raw",void 0),x([a(20,"status",Number),B("design:type",Number)],de.prototype,"status",void 0),x([a(21,"create_at",Date),B("design:type",typeof(nc=typeof Date<"u"&&Date)=="function"?nc:Object)],de.prototype,"createAt",void 0),x([a(22,"update_at",Date),B("design:type",typeof(rc=typeof Date<"u"&&Date)=="function"?rc:Object)],de.prototype,"updateAt",void 0),x([a(23,"create_by",String),B("design:type",String)],de.prototype,"createBy",void 0),x([a(24,"update_by",String),B("design:type",String)],de.prototype,"updateBy",void 0);class Ut{constructor(){s(this,"sap","");s(this,"crt","");s(this,"key","");s(this,"cas",[]);s(this,"sni","");s(this,"skip",!1)}}x([a(0,"sap",String),B("design:type",String)],Ut.prototype,"sap",void 0),x([a(1,"crt",String),B("design:type",String)],Ut.prototype,"crt",void 0),x([a(2,"key",String),B("design:type",String)],Ut.prototype,"key",void 0),x([a(3,"cas",[Array,String]),B("design:type",Array)],Ut.prototype,"cas",void 0),x([a(4,"sni",String),B("design:type",String)],Ut.prototype,"sni",void 0),x([a(5,"skip",Boolean),B("design:type",Boolean)],Ut.prototype,"skip",void 0);class Sn{constructor(){s(this,"name","");s(this,"matcher","");s(this,"priority",0);s(this,"services",[]);s(this,"filters",[]);s(this,"proxy","");s(this,"option",new Ut)}}x([a(0,"name",String),B("design:type",String)],Sn.prototype,"name",void 0),x([a(1,"matcher",String),B("design:type",String)],Sn.prototype,"matcher",void 0),x([a(2,"priority",Number),B("design:type",Number)],Sn.prototype,"priority",void 0),x([a(3,"services",[Array,String]),B("design:type",Array)],Sn.prototype,"services",void 0),x([a(4,"filters",[Array,String]),B("design:type",Array)],Sn.prototype,"filters",void 0),x([a(5,"proxy",String),B("design:type",String)],Sn.prototype,"proxy",void 0),x([a(6,"option",Ut),B("design:type",Ut)],Sn.prototype,"option",void 0);class Er{constructor(){s(this,"name","");s(this,"kind","");s(this,"listen","");s(this,"routes",[]);s(this,"option",new Ut)}}x([a(0,"name",String),B("design:type",String)],Er.prototype,"name",void 0),x([a(1,"kind",String),B("design:type",String)],Er.prototype,"kind",void 0),x([a(2,"listen",String),B("design:type",String)],Er.prototype,"listen",void 0),x([a(3,"routes",[Array,Sn]),B("design:type",Array)],Er.prototype,"routes",void 0),x([a(4,"option",Ut),B("design:type",Ut)],Er.prototype,"option",void 0);class Wi{constructor(){s(this,"expr","");s(this,"value","")}}x([a(0,"expr",String),B("design:type",String)],Wi.prototype,"expr",void 0),x([a(1,"value",String),B("design:type",String)],Wi.prototype,"value",void 0);class zn{constructor(){s(this,"name","");s(this,"kind","");s(this,"layer","");s(this,"priority",0);s(this,"status",0);s(this,"memo","");s(this,"matchers",[])}}x([a(0,"name",String),B("design:type",String)],zn.prototype,"name",void 0),x([a(1,"kind",String),B("design:type",String)],zn.prototype,"kind",void 0),x([a(2,"layer",String),B("design:type",String)],zn.prototype,"layer",void 0),x([a(3,"priority",Number),B("design:type",Number)],zn.prototype,"priority",void 0),x([a(4,"status",Number),B("design:type",Number)],zn.prototype,"status",void 0),x([a(5,"memo",String),B("design:type",String)],zn.prototype,"memo",void 0),x([a(6,"matchers",[Array,Wi]),B("design:type",Array)],zn.prototype,"matchers",void 0);var an=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},un=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},ic;class Gn{constructor(){s(this,"xid","");s(this,"timeout",0);s(this,"schema","");s(this,"flags",0)}}an([a(0,"xid",String),un("design:type",String)],Gn.prototype,"xid",void 0),an([a(1,"timeout",Number),un("design:type",Number)],Gn.prototype,"timeout",void 0),an([a(2,"schema",String),un("design:type",String)],Gn.prototype,"schema",void 0),an([a(3,"flags",Number),un("design:type",Number)],Gn.prototype,"flags",void 0);class dn{constructor(){s(this,"xid","");s(this,"schema","");s(this,"grammar","");s(this,"expr","");s(this,"args",{});s(this,"flags",0)}}an([a(0,"xid",String),un("design:type",String)],dn.prototype,"xid",void 0),an([a(1,"schema",String),un("design:type",String)],dn.prototype,"schema",void 0),an([a(2,"grammar",String),un("design:type",String)],dn.prototype,"grammar",void 0),an([a(3,"expr",String),un("design:type",String)],dn.prototype,"expr",void 0),an([a(4,"args",[Map,String,Object]),un("design:type",typeof(ic=typeof Record<"u"&&Record)=="function"?ic:Object)],dn.prototype,"args",void 0),an([a(5,"flags",Number),un("design:type",Number)],dn.prototype,"flags",void 0);var Tr=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},Nr=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},oc;class Bt{constructor(){s(this,"code","");s(this,"name","");s(this,"desc","");s(this,"kind","");s(this,"expr","");s(this,"attachment",{})}}Tr([a(0,"code",String),Nr("design:type",String)],Bt.prototype,"code",void 0),Tr([a(1,"name",String),Nr("design:type",String)],Bt.prototype,"name",void 0),Tr([a(2,"desc",String),Nr("design:type",String)],Bt.prototype,"desc",void 0),Tr([a(3,"kind",String),Nr("design:type",String)],Bt.prototype,"kind",void 0),Tr([a(4,"expr",String),Nr("design:type",String)],Bt.prototype,"expr",void 0),Tr([a(5,"attachment",[Map,String,String]),Nr("design:type",typeof(oc=typeof Record<"u"&&Record)=="function"?oc:Object)],Bt.prototype,"attachment",void 0);class sc{constructor(e,t,n){s(this,"code");s(this,"text");s(this,"color");this.code=e,this.text=t,this.color=n}}const Kr=class Kr{constructor(e){s(this,"values");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 sc(-1,"全部","")]]);for(let t=0;t<this.values.length;t++)e.set(this.values[t].text,this.values[t]);return e}};s(Kr,"Route",new Kr([{code:1,text:"已登记",color:"blue"},{code:2,text:"已禁用",color:"orange"},{code:4,text:"已启用",color:"green"}])),s(Kr,"Datasource",new Kr([{code:1,text:"已启用",color:"green"},{code:2,text:"已禁用",color:"orange"}]));let Mo=Kr;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 u=r.length-1;u>=0;u--)(c=r[u])&&(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)},cc;class di{constructor(){s(this,"index",0);s(this,"flag",0);s(this,"body",new Uint8Array)}}vn([a(0,"idx",Number),Rn("design:type",Number)],di.prototype,"index",void 0),vn([a(1,"flag",Number),Rn("design:type",Number)],di.prototype,"flag",void 0),vn([a(2,"body",Uint8Array),Rn("design:type",typeof(cc=typeof Uint8Array<"u"&&Uint8Array)=="function"?cc:Object)],di.prototype,"body",void 0);class Lt extends di{constructor(){super(...arguments);s(this,"bucket","");s(this,"src","");s(this,"rid","");s(this,"dst","");s(this,"sni","");s(this,"addr","")}}vn([a(0,"bucket",String),Rn("design:type",String)],Lt.prototype,"bucket",void 0),vn([a(1,"src",String),Rn("design:type",String)],Lt.prototype,"src",void 0),vn([a(2,"rid",String),Rn("design:type",String)],Lt.prototype,"rid",void 0),vn([a(3,"dst",String),Rn("design:type",String)],Lt.prototype,"dst",void 0),vn([a(4,"sni",String),Rn("design:type",String)],Lt.prototype,"sni",void 0),vn([a(5,"addr",String),Rn("design:type",String)],Lt.prototype,"addr",void 0);var ac=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},uc=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},dc;class fi{constructor(){s(this,"version","");s(this,"infos",{})}}ac([a(0,"version",String),uc("design:type",String)],fi.prototype,"version",void 0),ac([a(1,"infos",[Map,String,String]),uc("design:type",typeof(dc=typeof Record<"u"&&Record)=="function"?dc:Object)],fi.prototype,"infos",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 u=r.length-1;u>=0;u--)(c=r[u])&&(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)},fc,pc,lc,yc,mc;class Ke{constructor(){s(this,"no","");s(this,"name","");s(this,"alias","")}}K([a(0,"no",String),X("design:type",String)],Ke.prototype,"no",void 0),K([a(1,"name",String),X("design:type",String)],Ke.prototype,"name",void 0),K([a(2,"alias",String),X("design:type",String)],Ke.prototype,"alias",void 0);class Wn{constructor(){s(this,"bno","");s(this,"cno","");s(this,"context",{});s(this,"applier",new Ke)}}K([a(0,"bno",String),X("design:type",String)],Wn.prototype,"bno",void 0),K([a(1,"cno",String),X("design:type",String)],Wn.prototype,"cno",void 0),K([a(2,"context",[Map,String,String]),X("design:type",typeof(fc=typeof Record<"u"&&Record)=="function"?fc:Object)],Wn.prototype,"context",void 0),K([a(3,"applier",Ke),X("design:type",Ke)],Wn.prototype,"applier",void 0);class Qe{constructor(){s(this,"name","");s(this,"alias","");s(this,"attrs",{});s(this,"kind",0);s(this,"group","")}}K([a(0,"name",String),X("design:type",String)],Qe.prototype,"name",void 0),K([a(1,"alias",String),X("design:type",String)],Qe.prototype,"alias",void 0),K([a(2,"attrs",[Map,String,String]),X("design:type",typeof(pc=typeof Record<"u"&&Record)=="function"?pc:Object)],Qe.prototype,"attrs",void 0),K([a(3,"kind",Number),X("design:type",Number)],Qe.prototype,"kind",void 0),K([a(4,"group",String),X("design:type",String)],Qe.prototype,"group",void 0);class pi{constructor(){s(this,"src","");s(this,"dst","");s(this,"condition","")}}K([a(0,"src",String),X("design:type",String)],pi.prototype,"src",void 0),K([a(1,"dst",String),X("design:type",String)],pi.prototype,"dst",void 0),K([a(2,"condition",String),X("design:type",String)],pi.prototype,"condition",void 0);class Et{constructor(){s(this,"cno","");s(this,"name","");s(this,"vertices",[]);s(this,"sides",[]);s(this,"status",0);s(this,"maintainer",new Ke)}}K([a(0,"cno",String),X("design:type",String)],Et.prototype,"cno",void 0),K([a(1,"name",String),X("design:type",String)],Et.prototype,"name",void 0),K([a(2,"vertices",[Array,Qe]),X("design:type",Array)],Et.prototype,"vertices",void 0),K([a(3,"sides",[Array,pi]),X("design:type",Array)],Et.prototype,"sides",void 0),K([a(4,"status",Number),X("design:type",Number)],Et.prototype,"status",void 0),K([a(5,"maintainer",Ke),X("design:type",Ke)],Et.prototype,"maintainer",void 0);class Pn{constructor(){s(this,"vertex",new Qe);s(this,"reviewers",[]);s(this,"status",0);s(this,"context",{})}}K([a(0,"vertex",Qe),X("design:type",Qe)],Pn.prototype,"vertex",void 0),K([a(1,"reviewers",[Array,Ke]),X("design:type",Array)],Pn.prototype,"reviewers",void 0),K([a(2,"status",Number),X("design:type",Number)],Pn.prototype,"status",void 0),K([a(3,"context",[Map,String,String]),X("design:type",typeof(lc=typeof Record<"u"&&Record)=="function"?lc:Object)],Pn.prototype,"context",void 0);class cr{constructor(){s(this,"rno","");s(this,"bno","");s(this,"context",{});s(this,"status",0);s(this,"chart",new Et);s(this,"tasks",[])}}K([a(0,"rno",String),X("design:type",String)],cr.prototype,"rno",void 0),K([a(1,"bno",String),X("design:type",String)],cr.prototype,"bno",void 0),K([a(2,"context",[Map,String,String]),X("design:type",typeof(yc=typeof Record<"u"&&Record)=="function"?yc:Object)],cr.prototype,"context",void 0),K([a(3,"status",Number),X("design:type",Number)],cr.prototype,"status",void 0),K([a(4,"chart",Et),X("design:type",Et)],cr.prototype,"chart",void 0),K([a(5,"tasks",[Array,Pn]),X("design:type",Array)],cr.prototype,"tasks",void 0);class jn{constructor(){s(this,"no","");s(this,"name","");s(this,"status",0);s(this,"workers",[])}}K([a(0,"no",String),X("design:type",String)],jn.prototype,"no",void 0),K([a(1,"name",String),X("design:type",String)],jn.prototype,"name",void 0),K([a(2,"status",Number),X("design:type",Number)],jn.prototype,"status",void 0),K([a(3,"workers",[Array,Ke]),X("design:type",Array)],jn.prototype,"workers",void 0);class wn{constructor(){s(this,"rno","");s(this,"bno","");s(this,"cno","");s(this,"context",{});s(this,"vertex",new Qe);s(this,"task",new Pn);s(this,"applier",new Ke);s(this,"reviewer",new Ke)}}K([a(0,"rno",String),X("design:type",String)],wn.prototype,"rno",void 0),K([a(1,"bno",String),X("design:type",String)],wn.prototype,"bno",void 0),K([a(2,"cno",String),X("design:type",String)],wn.prototype,"cno",void 0),K([a(3,"context",[Map,String,String]),X("design:type",typeof(mc=typeof Record<"u"&&Record)=="function"?mc:Object)],wn.prototype,"context",void 0),K([a(4,"vertex",Qe),X("design:type",Qe)],wn.prototype,"vertex",void 0),K([a(5,"task",Pn),X("design:type",Pn)],wn.prototype,"task",void 0),K([a(6,"applier",Ke),X("design:type",Ke)],wn.prototype,"applier",void 0),K([a(7,"reviewer",Ke),X("design:type",Ke)],wn.prototype,"reviewer",void 0);var En=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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)},ar=function(r,e){return function(t,n){e(t,n,r)}},gc,hc,bc,_c,Oc,Sc,vc,Rc,Pc,jc;f.Builtin=class{doc(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}version(e=_()){return Promise.reject(h.URN_NOT_PERMIT)}debug(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}stats(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}fallback(e=_()){return Promise.reject(h.URN_NOT_PERMIT)}dump(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}},En([O("${mesh.name}.builtin.doc",String),ar(0,a(0,"name",String)),ar(1,a(1,"formatter",String)),Ie("design:type",Function),Ie("design:paramtypes",[String,String,Object]),Ie("design:returntype",typeof(gc=typeof Promise<"u"&&Promise)=="function"?gc:Object)],f.Builtin.prototype,"doc",null),En([O("${mesh.name}.builtin.version",fi),Ie("design:type",Function),Ie("design:paramtypes",[Object]),Ie("design:returntype",typeof(hc=typeof Promise<"u"&&Promise)=="function"?hc:Object)],f.Builtin.prototype,"version",null),En([O("${mesh.name}.builtin.debug",Object),ar(0,a(0,"features",[Map,String,String])),Ie("design:type",Function),Ie("design:paramtypes",[typeof(bc=typeof Record<"u"&&Record)=="function"?bc:Object,Object]),Ie("design:returntype",typeof(_c=typeof Promise<"u"&&Promise)=="function"?_c:Object)],f.Builtin.prototype,"debug",null),En([O("${mesh.name}.builtin.stats",[Map,String,String]),ar(0,a(0,"features",[Array,String])),Ie("design:type",Function),Ie("design:paramtypes",[Array,Object]),Ie("design:returntype",typeof(Oc=typeof Promise<"u"&&Promise)=="function"?Oc:Object)],f.Builtin.prototype,"stats",null),En([O("${mesh.name}.builtin.fallback",Object),Ie("design:type",Function),Ie("design:paramtypes",[Object]),Ie("design:returntype",typeof(Sc=typeof Promise<"u"&&Promise)=="function"?Sc:Object)],f.Builtin.prototype,"fallback",null),En([O("${mesh.name}.builtin.dump",[Map,String,String]),ar(0,a(0,"names",[Array,String])),Ie("design:type",Function),Ie("design:paramtypes",[Array,Object]),Ie("design:returntype",typeof(vc=typeof Promise<"u"&&Promise)=="function"?vc:Object)],f.Builtin.prototype,"dump",null),f.Builtin=En([H("mpi")],f.Builtin);class Io{stats(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}debug(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}dump(e=_()){return Promise.reject(h.URN_NOT_PERMIT)}}En([ar(0,a(0,"features",[Array,String])),Ie("design:type",Function),Ie("design:paramtypes",[Array,Object]),Ie("design:returntype",typeof(Rc=typeof Promise<"u"&&Promise)=="function"?Rc:Object)],Io.prototype,"stats",null),En([ar(0,a(0,"features",[Map,String,String])),Ie("design:type",Function),Ie("design:paramtypes",[typeof(Pc=typeof Record<"u"&&Record)=="function"?Pc:Object,Object]),Ie("design:returntype",typeof(jc=typeof Promise<"u"&&Promise)=="function"?jc:Object)],Io.prototype,"debug",null);var Qt=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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)},mt=function(r,e){return function(t,n){e(t,n,r)}},wc,Ec,Tc,Nc,Ac,Mc,Ic,$c,Cc,Uc,Fc,kc;f.Cache=class{get(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}put(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}remove(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}incr(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}decr(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}keys(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}hget(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}hset(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}hdel(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}hkeys(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}},Qt([O("mesh.cache.get",pt),mt(0,a(0,"key",String)),me("design:type",Function),me("design:paramtypes",[String,Object]),me("design:returntype",typeof(wc=typeof Promise<"u"&&Promise)=="function"?wc:Object)],f.Cache.prototype,"get",null),Qt([O("mesh.cache.put",Object),mt(0,a(0,"cell",pt)),me("design:type",Function),me("design:paramtypes",[typeof(Ec=typeof pt<"u"&&pt)=="function"?Ec:Object,Object]),me("design:returntype",typeof(Tc=typeof Promise<"u"&&Promise)=="function"?Tc:Object)],f.Cache.prototype,"put",null),Qt([O("mesh.cache.remove",Object),mt(0,a(0,"key",String)),me("design:type",Function),me("design:paramtypes",[String,Object]),me("design:returntype",typeof(Nc=typeof Promise<"u"&&Promise)=="function"?Nc:Object)],f.Cache.prototype,"remove",null),Qt([O("mesh.cache.incr",Number),mt(0,a(0,"key",String)),mt(1,a(1,"value",Number)),me("design:type",Function),me("design:paramtypes",[String,Number,Object]),me("design:returntype",typeof(Ac=typeof Promise<"u"&&Promise)=="function"?Ac:Object)],f.Cache.prototype,"incr",null),Qt([O("mesh.cache.decr",Number),mt(0,a(0,"key",String)),mt(1,a(1,"value",Number)),me("design:type",Function),me("design:paramtypes",[String,Number,Object]),me("design:returntype",typeof(Mc=typeof Promise<"u"&&Promise)=="function"?Mc:Object)],f.Cache.prototype,"decr",null),Qt([O("mesh.cache.keys",[Array,String]),mt(0,a(0,"pattern",String)),me("design:type",Function),me("design:paramtypes",[String,Object]),me("design:returntype",typeof(Ic=typeof Promise<"u"&&Promise)=="function"?Ic:Object)],f.Cache.prototype,"keys",null),Qt([O("mesh.cache.hget",pt),mt(0,a(0,"key",String)),mt(1,a(1,"name",String)),me("design:type",Function),me("design:paramtypes",[String,String,Object]),me("design:returntype",typeof($c=typeof Promise<"u"&&Promise)=="function"?$c:Object)],f.Cache.prototype,"hget",null),Qt([O("mesh.cache.hset",Object),mt(0,a(0,"key",String)),mt(1,a(1,"cell",pt)),me("design:type",Function),me("design:paramtypes",[String,typeof(Cc=typeof pt<"u"&&pt)=="function"?Cc:Object,Object]),me("design:returntype",typeof(Uc=typeof Promise<"u"&&Promise)=="function"?Uc:Object)],f.Cache.prototype,"hset",null),Qt([O("mesh.cache.hdel",Object),mt(0,a(0,"key",String)),mt(1,a(1,"name",String)),me("design:type",Function),me("design:paramtypes",[String,String,Object]),me("design:returntype",typeof(Fc=typeof Promise<"u"&&Promise)=="function"?Fc:Object)],f.Cache.prototype,"hdel",null),Qt([O("mesh.cache.hkeys",[Array,String]),mt(0,a(0,"key",String)),me("design:type",Function),me("design:paramtypes",[String,Object]),me("design:returntype",typeof(kc=typeof Promise<"u"&&Promise)=="function"?kc:Object)],f.Cache.prototype,"hkeys",null),f.Cache=Qt([H("mesh")],f.Cache);var st=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},ee=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)}},Dc,xc,Bc,Lc,Hc,qc,zc,Gc,Wc,Vc,Jc,Kc,Xc,Yc,Qc,Zc,ea,ta,na,ra,ia,oa,sa,ca,aa;f.CipherEconomy=class{handshake(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}collect(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}serve(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}deposit(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}objects(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}keys(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}invoke(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}},st([O("${mesh.name}.cipher.handshake",String),Ft(0,a(0,"hello",ut)),ee("design:type",Function),ee("design:paramtypes",[typeof(Dc=typeof ut<"u"&&ut)=="function"?Dc:Object,Object]),ee("design:returntype",typeof(xc=typeof Promise<"u"&&Promise)=="function"?xc:Object)],f.CipherEconomy.prototype,"handshake",null),st([O("${mesh.name}.cipher.collect",Number),Ft(0,a(0,"obj",tt)),ee("design:type",Function),ee("design:paramtypes",[typeof(Bc=typeof tt<"u"&&tt)=="function"?Bc:Object,Object]),ee("design:returntype",typeof(Lc=typeof Promise<"u"&&Promise)=="function"?Lc:Object)],f.CipherEconomy.prototype,"collect",null),st([O("${mesh.name}.cipher.encrypt",String),Ft(0,a(0,"suite",String)),ee("design:type",Function),ee("design:paramtypes",[String,Object]),ee("design:returntype",typeof(Hc=typeof Promise<"u"&&Promise)=="function"?Hc:Object)],f.CipherEconomy.prototype,"serve",null),st([O("mesh.rec.deposit",String),Ft(0,a(0,"rco",tt)),ee("design:type",Function),ee("design:paramtypes",[typeof(qc=typeof tt<"u"&&tt)=="function"?qc:Object,Object]),ee("design:returntype",typeof(zc=typeof Promise<"u"&&Promise)=="function"?zc:Object)],f.CipherEconomy.prototype,"deposit",null),st([O("mesh.rec.objects",[Re,tt]),Ft(0,a(0,"index",k)),ee("design:type",Function),ee("design:paramtypes",[typeof(Gc=typeof k<"u"&&k)=="function"?Gc:Object,Object]),ee("design:returntype",typeof(Wc=typeof Promise<"u"&&Promise)=="function"?Wc:Object)],f.CipherEconomy.prototype,"objects",null),st([O("${mesh.name}.cipher.keys",[Re,Ct]),Ft(0,a(0,"idx",k)),ee("design:type",Function),ee("design:paramtypes",[typeof(Vc=typeof k<"u"&&k)=="function"?Vc:Object,Object]),ee("design:returntype",typeof(Jc=typeof Promise<"u"&&Promise)=="function"?Jc:Object)],f.CipherEconomy.prototype,"keys",null),st([O("mesh.rec.invoke",Uint8Array),Ft(0,a(0,"index",k)),ee("design:type",Function),ee("design:paramtypes",[typeof(Kc=typeof k<"u"&&k)=="function"?Kc:Object,Object]),ee("design:returntype",typeof(Xc=typeof Promise<"u"&&Promise)=="function"?Xc:Object)],f.CipherEconomy.prototype,"invoke",null),f.CipherEconomy=st([H("mpi")],f.CipherEconomy),f.CipherProvider=class{suite(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}keygen(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}regen(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}encode(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}decode(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}recode(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}},st([O("${mesh.name}.cipher.suite",ir),Ft(0,a(0,"hello",ut)),ee("design:type",Function),ee("design:paramtypes",[typeof(Yc=typeof ut<"u"&&ut)=="function"?Yc:Object,Object]),ee("design:returntype",typeof(Qc=typeof Promise<"u"&&Promise)=="function"?Qc:Object)],f.CipherProvider.prototype,"suite",null),st([O("${mesh.name}.cipher.keygen",Hi),Ft(0,a(0,"keygen",Dn)),ee("design:type",Function),ee("design:paramtypes",[typeof(Zc=typeof Dn<"u"&&Dn)=="function"?Zc:Object,Object]),ee("design:returntype",typeof(ea=typeof Promise<"u"&&Promise)=="function"?ea:Object)],f.CipherProvider.prototype,"keygen",null),st([O("${mesh.name}.cipher.regen",Hi),Ft(0,a(0,"keygen",si)),ee("design:type",Function),ee("design:paramtypes",[typeof(ta=typeof si<"u"&&si)=="function"?ta:Object,Object]),ee("design:returntype",typeof(na=typeof Promise<"u"&&Promise)=="function"?na:Object)],f.CipherProvider.prototype,"regen",null),st([O("${mesh.name}.cipher.encode",Uint8Array),Ft(0,a(0,"explain",nn)),ee("design:type",Function),ee("design:paramtypes",[typeof(ra=typeof nn<"u"&&nn)=="function"?ra:Object,Object]),ee("design:returntype",typeof(ia=typeof Promise<"u"&&Promise)=="function"?ia:Object)],f.CipherProvider.prototype,"encode",null),st([O("${mesh.name}.cipher.decode",Uint8Array),Ft(0,a(0,"cipher",nn)),ee("design:type",Function),ee("design:paramtypes",[typeof(oa=typeof nn<"u"&&nn)=="function"?oa:Object,Object]),ee("design:returntype",typeof(sa=typeof Promise<"u"&&Promise)=="function"?sa:Object)],f.CipherProvider.prototype,"decode",null),st([O("${mesh.name}.cipher.recode",Uint8Array),Ft(0,a(0,"cipher",ci)),ee("design:type",Function),ee("design:paramtypes",[typeof(ca=typeof ci<"u"&&ci)=="function"?ca:Object,Object]),ee("design:returntype",typeof(aa=typeof Promise<"u"&&Promise)=="function"?aa:Object)],f.CipherProvider.prototype,"recode",null),f.CipherProvider=st([H("mpi")],f.CipherProvider),f.ObjectProvider=class{serve(e=_()){return Promise.reject(h.URN_NOT_PERMIT)}},f.ObjectProvider=st([H("mpi")],f.ObjectProvider);var $o=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},Ar=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},bl=function(r,e){return function(t,n){e(t,n,r)}},ua,da,fa;f.Cluster=class{election(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}isLeader(e=_()){return Promise.reject(h.URN_NOT_PERMIT)}},$o([O("mesh.cluster.election",Uint8Array),bl(0,a(0,"buff",Uint8Array)),Ar("design:type",Function),Ar("design:paramtypes",[typeof(ua=typeof Uint8Array<"u"&&Uint8Array)=="function"?ua:Object,Object]),Ar("design:returntype",typeof(da=typeof Promise<"u"&&Promise)=="function"?da:Object)],f.Cluster.prototype,"election",null),$o([O("mesh.cluster.leader",Boolean),Ar("design:type",Function),Ar("design:paramtypes",[Object]),Ar("design:returntype",typeof(fa=typeof Promise<"u"&&Promise)=="function"?fa:Object)],f.Cluster.prototype,"isLeader",null),f.Cluster=$o([H("mpi")],f.Cluster);var li=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},Ht=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Mr=function(r,e){return function(t,n){e(t,n,r)}},pa,la,ya,ma,ga;f.Commercialize=class{sign(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}history(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}issued(e,t,n,o=_()){return Promise.reject(h.URN_NOT_PERMIT)}dump(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}},li([O("mesh.license.sign",vr),Mr(0,a(0,"lsr",_e)),Ht("design:type",Function),Ht("design:paramtypes",[typeof(pa=typeof _e<"u"&&_e)=="function"?pa:Object,Object]),Ht("design:returntype",typeof(la=typeof Promise<"u"&&Promise)=="function"?la:Object)],f.Commercialize.prototype,"sign",null),li([O("mesh.license.history",[Array,vr]),Mr(0,a(0,"inst_id",String)),Ht("design:type",Function),Ht("design:paramtypes",[String,Object]),Ht("design:returntype",typeof(ya=typeof Promise<"u"&&Promise)=="function"?ya:Object)],f.Commercialize.prototype,"history",null),li([O("mesh.net.issued",Rr),Mr(0,a(0,"name",String)),Mr(1,a(1,"kind",String)),Mr(2,a(2,"cname",String)),Ht("design:type",Function),Ht("design:paramtypes",[String,String,String,Object]),Ht("design:returntype",typeof(ma=typeof Promise<"u"&&Promise)=="function"?ma:Object)],f.Commercialize.prototype,"issued",null),li([O("mesh.net.dump",[Array,Rr]),Mr(0,a(0,"node_id",String)),Ht("design:type",Function),Ht("design:paramtypes",[String,Object]),Ht("design:returntype",typeof(ga=typeof Promise<"u"&&Promise)=="function"?ga:Object)],f.Commercialize.prototype,"dump",null),f.Commercialize=li([H("mpi")],f.Commercialize);var Ir=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},gt=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},fn=function(r,e){return function(t,n){e(t,n,r)}},ha,ba,_a,Oa,Sa,va,Ra,Pa,ja,wa,Ea,Ta,Na,Aa,Ma;f.Cryptor=class{encrypt(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}decrypt(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}hash(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}sign(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}verify(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}},Ir([O("mesh.crypt.encrypt",Uint8Array),fn(0,a(0,"buf",Uint8Array)),fn(1,a(1,"keys",[Map,String,Uint8Array])),gt("design:type",Function),gt("design:paramtypes",[typeof(ha=typeof Uint8Array<"u"&&Uint8Array)=="function"?ha:Object,typeof(ba=typeof Record<"u"&&Record)=="function"?ba:Object,Object]),gt("design:returntype",typeof(_a=typeof Promise<"u"&&Promise)=="function"?_a:Object)],f.Cryptor.prototype,"encrypt",null),Ir([O("mesh.crypt.decrypt",Uint8Array),fn(0,a(0,"buf",Uint8Array)),fn(1,a(1,"keys",[Map,String,Uint8Array])),gt("design:type",Function),gt("design:paramtypes",[typeof(Oa=typeof Uint8Array<"u"&&Uint8Array)=="function"?Oa:Object,typeof(Sa=typeof Record<"u"&&Record)=="function"?Sa:Object,Object]),gt("design:returntype",typeof(va=typeof Promise<"u"&&Promise)=="function"?va:Object)],f.Cryptor.prototype,"decrypt",null),Ir([O("mesh.crypt.hash",Uint8Array),fn(0,a(0,"buf",Uint8Array)),fn(1,a(1,"keys",[Map,String,Uint8Array])),gt("design:type",Function),gt("design:paramtypes",[typeof(Ra=typeof Uint8Array<"u"&&Uint8Array)=="function"?Ra:Object,typeof(Pa=typeof Record<"u"&&Record)=="function"?Pa:Object,Object]),gt("design:returntype",typeof(ja=typeof Promise<"u"&&Promise)=="function"?ja:Object)],f.Cryptor.prototype,"hash",null),Ir([O("mesh.crypt.sign",Uint8Array),fn(0,a(0,"buf",Uint8Array)),fn(1,a(1,"keys",[Map,String,Uint8Array])),gt("design:type",Function),gt("design:paramtypes",[typeof(wa=typeof Uint8Array<"u"&&Uint8Array)=="function"?wa:Object,typeof(Ea=typeof Record<"u"&&Record)=="function"?Ea:Object,Object]),gt("design:returntype",typeof(Ta=typeof Promise<"u"&&Promise)=="function"?Ta:Object)],f.Cryptor.prototype,"sign",null),Ir([O("mesh.crypt.verify",Boolean),fn(0,a(0,"buf",Uint8Array)),fn(1,a(1,"keys",[Map,String,Uint8Array])),gt("design:type",Function),gt("design:paramtypes",[typeof(Na=typeof Uint8Array<"u"&&Uint8Array)=="function"?Na:Object,typeof(Aa=typeof Record<"u"&&Record)=="function"?Aa:Object,Object]),gt("design:returntype",typeof(Ma=typeof Promise<"u"&&Promise)=="function"?Ma:Object)],f.Cryptor.prototype,"verify",null),f.Cryptor=Ir([H("mpi")],f.Cryptor);var Xe=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},L=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Ze=function(r,e){return function(t,n){e(t,n,r)}},Ia,$a,Ca,Ua,Fa,ka,Da,xa,Ba,La,Ha,qa,za,Ga,Wa,Va,Ja,Ka,Xa,Ya,Qa,Za,eu,tu,nu,ru;f.Daler=class{query(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}saveSource(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}indexSource(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}describeSource(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}removeSource(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}saveCluster(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}indexCluster(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}describeCluster(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}removeCluster(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}saveDTS(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}runDTS(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}indexDTS(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}removeDTS(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}toggleDTS(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}indexBinlog(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}tailBinlog(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}redoBinlog(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}},Xe([O("mesh.daler.ds.query",Object),Ze(0,a(0,"test",or)),L("design:type",Function),L("design:paramtypes",[typeof(Ia=typeof or<"u"&&or)=="function"?Ia:Object,Object]),L("design:returntype",typeof($a=typeof Promise<"u"&&Promise)=="function"?$a:Object)],f.Daler.prototype,"query",null),Xe([O("mesh.daler.ds.save",String),Ze(0,a(0,"ds",Rt)),L("design:type",Function),L("design:paramtypes",[typeof(Ca=typeof Rt<"u"&&Rt)=="function"?Ca:Object,Object]),L("design:returntype",typeof(Ua=typeof Promise<"u"&&Promise)=="function"?Ua:Object)],f.Daler.prototype,"saveSource",null),Xe([O("mesh.daler.ds.index",[Re,Rt]),Ze(0,a(0,"idx",k)),L("design:type",Function),L("design:paramtypes",[typeof(Fa=typeof k<"u"&&k)=="function"?Fa:Object,Object]),L("design:returntype",typeof(ka=typeof Promise<"u"&&Promise)=="function"?ka:Object)],f.Daler.prototype,"indexSource",null),Xe([O("mesh.daler.ds.describe",Rt),Ze(0,a(0,"id",String)),L("design:type",Function),L("design:paramtypes",[String,Object]),L("design:returntype",typeof(Da=typeof Promise<"u"&&Promise)=="function"?Da:Object)],f.Daler.prototype,"describeSource",null),Xe([O("mesh.daler.ds.remove",Object),Ze(0,a(0,"id",String)),L("design:type",Function),L("design:paramtypes",[String,Object]),L("design:returntype",typeof(xa=typeof Promise<"u"&&Promise)=="function"?xa:Object)],f.Daler.prototype,"removeSource",null),Xe([O("mesh.daler.cluster.save",String),Ze(0,a(0,"cluster",Je)),L("design:type",Function),L("design:paramtypes",[typeof(Ba=typeof Je<"u"&&Je)=="function"?Ba:Object,Object]),L("design:returntype",typeof(La=typeof Promise<"u"&&Promise)=="function"?La:Object)],f.Daler.prototype,"saveCluster",null),Xe([O("mesh.daler.cluster.index",[Re,Je]),Ze(0,a(0,"idx",k)),L("design:type",Function),L("design:paramtypes",[typeof(Ha=typeof k<"u"&&k)=="function"?Ha:Object,Object]),L("design:returntype",typeof(qa=typeof Promise<"u"&&Promise)=="function"?qa:Object)],f.Daler.prototype,"indexCluster",null),Xe([O("mesh.daler.cluster.describe",Je),Ze(0,a(0,"id",String)),L("design:type",Function),L("design:paramtypes",[String,Object]),L("design:returntype",typeof(za=typeof Promise<"u"&&Promise)=="function"?za:Object)],f.Daler.prototype,"describeCluster",null),Xe([O("mesh.daler.cluster.remove",Object),Ze(0,a(0,"id",String)),L("design:type",Function),L("design:paramtypes",[String,Object]),L("design:returntype",typeof(Ga=typeof Promise<"u"&&Promise)=="function"?Ga:Object)],f.Daler.prototype,"removeCluster",null),Xe([O("mesh.daler.dts.save",String),Ze(0,a(0,"dts",Yt)),L("design:type",Function),L("design:paramtypes",[typeof(Wa=typeof Yt<"u"&&Yt)=="function"?Wa:Object,Object]),L("design:returntype",typeof(Va=typeof Promise<"u"&&Promise)=="function"?Va:Object)],f.Daler.prototype,"saveDTS",null),Xe([O("mesh.daler.dts.run",Object),Ze(0,a(0,"id",String)),L("design:type",Function),L("design:paramtypes",[String,Object]),L("design:returntype",typeof(Ja=typeof Promise<"u"&&Promise)=="function"?Ja:Object)],f.Daler.prototype,"runDTS",null),Xe([O("mesh.daler.dts.index",[Re,Yt]),Ze(0,a(0,"idx",k)),L("design:type",Function),L("design:paramtypes",[typeof(Ka=typeof k<"u"&&k)=="function"?Ka:Object,Object]),L("design:returntype",typeof(Xa=typeof Promise<"u"&&Promise)=="function"?Xa:Object)],f.Daler.prototype,"indexDTS",null),Xe([O("mesh.daler.dts.remove",Object),Ze(0,a(0,"id",String)),L("design:type",Function),L("design:paramtypes",[String,Object]),L("design:returntype",typeof(Ya=typeof Promise<"u"&&Promise)=="function"?Ya:Object)],f.Daler.prototype,"removeDTS",null),Xe([O("mesh.daler.dts.toggle",Object),Ze(0,a(0,"id",String)),L("design:type",Function),L("design:paramtypes",[String,Object]),L("design:returntype",typeof(Qa=typeof Promise<"u"&&Promise)=="function"?Qa:Object)],f.Daler.prototype,"toggleDTS",null),Xe([O("mesh.daler.binlog.index",[Re,bn]),Ze(0,a(0,"idx",k)),L("design:type",Function),L("design:paramtypes",[typeof(Za=typeof k<"u"&&k)=="function"?Za:Object,Object]),L("design:returntype",typeof(eu=typeof Promise<"u"&&Promise)=="function"?eu:Object)],f.Daler.prototype,"indexBinlog",null),Xe([O("mesh.daler.binlog.tail",[Re,[Map,String,String]]),Ze(0,a(0,"idx",k)),L("design:type",Function),L("design:paramtypes",[typeof(tu=typeof k<"u"&&k)=="function"?tu:Object,Object]),L("design:returntype",typeof(nu=typeof Promise<"u"&&Promise)=="function"?nu:Object)],f.Daler.prototype,"tailBinlog",null),Xe([O("mesh.daler.binlog.redo",Object),Ze(0,a(0,"id",String)),L("design:type",Function),L("design:paramtypes",[String,Object]),L("design:returntype",typeof(ru=typeof Promise<"u"&&Promise)=="function"?ru:Object)],f.Daler.prototype,"redoBinlog",null),f.Daler=Xe([H("mpi")],f.Daler);var $r=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},ht=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},yi=function(r,e){return function(t,n){e(t,n,r)}},iu,ou,su,cu,au,uu,du,fu,pu;f.DataHouse=class{writes(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}write(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}read(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}indies(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}tables(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}},$r([O("mesh.dh.writes",Object),yi(0,a(0,"docs",[Array,xn])),ht("design:type",Function),ht("design:paramtypes",[Array,Object]),ht("design:returntype",typeof(iu=typeof Promise<"u"&&Promise)=="function"?iu:Object)],f.DataHouse.prototype,"writes",null),$r([O("mesh.dh.write",Object),yi(0,a(0,"doc",xn)),ht("design:type",Function),ht("design:paramtypes",[typeof(ou=typeof xn<"u"&&xn)=="function"?ou:Object,Object]),ht("design:returntype",typeof(su=typeof Promise<"u"&&Promise)=="function"?su:Object)],f.DataHouse.prototype,"write",null),$r([O("mesh.dh.read",[Re,Object]),yi(0,a(0,"index",k)),ht("design:type",Function),ht("design:paramtypes",[typeof(cu=typeof k<"u"&&k)=="function"?cu:Object,Object]),ht("design:returntype",typeof(au=typeof Promise<"u"&&Promise)=="function"?au:Object)],f.DataHouse.prototype,"read",null),$r([O("mesh.dh.indies",[Re,Object]),yi(0,a(0,"index",k)),ht("design:type",Function),ht("design:paramtypes",[typeof(uu=typeof k<"u"&&k)=="function"?uu:Object,Object]),ht("design:returntype",typeof(du=typeof Promise<"u"&&Promise)=="function"?du:Object)],f.DataHouse.prototype,"indies",null),$r([O("mesh.dh.tables",[Re,Object]),yi(0,a(0,"index",k)),ht("design:type",Function),ht("design:paramtypes",[typeof(fu=typeof k<"u"&&k)=="function"?fu:Object,Object]),ht("design:returntype",typeof(pu=typeof Promise<"u"&&Promise)=="function"?pu:Object)],f.DataHouse.prototype,"tables",null),f.DataHouse=$r([H("mpi")],f.DataHouse);var Co=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},Cr=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Vi=function(r,e){return function(t,n){e(t,n,r)}},lu,yu,mu;f.Dispatcher=class{invoke(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}invoke0(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}},Co([Vi(0,a(0,"urn",String)),Vi(1,a(1,"param",[Map,String,Object])),Cr("design:type",Function),Cr("design:paramtypes",[String,typeof(lu=typeof Record<"u"&&Record)=="function"?lu:Object,Object]),Cr("design:returntype",typeof(yu=typeof Promise<"u"&&Promise)=="function"?yu:Object)],f.Dispatcher.prototype,"invoke",null),Co([Vi(0,a(0,"urn",String)),Vi(1,a(1,"param",Object)),Cr("design:type",Function),Cr("design:paramtypes",[String,Object,Object]),Cr("design:returntype",typeof(mu=typeof Promise<"u"&&Promise)=="function"?mu:Object)],f.Dispatcher.prototype,"invoke0",null),f.Dispatcher=Co([H("spi")],f.Dispatcher);var Uo=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},Ur=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},gu=function(r,e){return function(t,n){e(t,n,r)}},hu,bu,_u;f.Endpoint=class{fuzzy(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}},Uo([O("${mesh.uname}",Uint8Array),gu(0,a(0,"buff",Uint8Array)),Ur("design:type",Function),Ur("design:paramtypes",[typeof(hu=typeof Uint8Array<"u"&&Uint8Array)=="function"?hu:Object,Object]),Ur("design:returntype",typeof(bu=typeof Promise<"u"&&Promise)=="function"?bu:Object)],f.Endpoint.prototype,"fuzzy",null),f.Endpoint=Uo([H("mpi")],f.Endpoint);class Ou{stick(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}}Uo([gu(0,a(0,"varg",Object)),Ur("design:type",Function),Ur("design:paramtypes",[Object,Object]),Ur("design:returntype",typeof(_u=typeof Promise<"u"&&Promise)=="function"?_u:Object)],Ou.prototype,"stick",null);var mi=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},qt=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)}},Su,vu,Ru,Pu,ju,wu,Eu,Tu;f.Evaluator=class{compile(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}exec(e,t,n,o=_()){return Promise.reject(h.URN_NOT_PERMIT)}dump(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}index(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}},mi([O("mesh.eval.compile",String),Fr(0,a(0,"script",Bt)),qt("design:type",Function),qt("design:paramtypes",[typeof(Su=typeof Bt<"u"&&Bt)=="function"?Su:Object,Object]),qt("design:returntype",typeof(vu=typeof Promise<"u"&&Promise)=="function"?vu:Object)],f.Evaluator.prototype,"compile",null),mi([O("mesh.eval.exec",String),Fr(0,a(0,"code",String)),Fr(1,a(1,"args",[Map,String,String])),Fr(2,a(2,"dft",String)),qt("design:type",Function),qt("design:paramtypes",[String,typeof(Ru=typeof Record<"u"&&Record)=="function"?Ru:Object,String,Object]),qt("design:returntype",typeof(Pu=typeof Promise<"u"&&Promise)=="function"?Pu:Object)],f.Evaluator.prototype,"exec",null),mi([O("mesh.eval.dump",[Array,Bt]),Fr(0,a(0,"feature",[Map,String,String])),qt("design:type",Function),qt("design:paramtypes",[typeof(ju=typeof Record<"u"&&Record)=="function"?ju:Object,Object]),qt("design:returntype",typeof(wu=typeof Promise<"u"&&Promise)=="function"?wu:Object)],f.Evaluator.prototype,"dump",null),mi([O("mesh.eval.index",[Re,Bt]),Fr(0,a(0,"index",k)),qt("design:type",Function),qt("design:paramtypes",[typeof(Eu=typeof k<"u"&&k)=="function"?Eu:Object,Object]),qt("design:returntype",typeof(Tu=typeof Promise<"u"&&Promise)=="function"?Tu:Object)],f.Evaluator.prototype,"index",null),f.Evaluator=mi([H("mpi")],f.Evaluator);var Fo=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},kr=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Ji=function(r,e){return function(t,n){e(t,n,r)}},Nu,Au,Mu,Iu;f.Graph=class{query(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}exec(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}},Fo([O("mesh.graph.query",[Array,[Map,String,Object]]),Ji(0,a(0,"expr",String)),Ji(1,a(1,"args",[Map,String,Object])),kr("design:type",Function),kr("design:paramtypes",[String,typeof(Nu=typeof Record<"u"&&Record)=="function"?Nu:Object,Object]),kr("design:returntype",typeof(Au=typeof Promise<"u"&&Promise)=="function"?Au:Object)],f.Graph.prototype,"query",null),Fo([O("mesh.graph.exec",Object),Ji(0,a(0,"expr",String)),Ji(1,a(1,"args",[Map,String,Object])),kr("design:type",Function),kr("design:paramtypes",[String,typeof(Mu=typeof Record<"u"&&Record)=="function"?Mu:Object,Object]),kr("design:returntype",typeof(Iu=typeof Promise<"u"&&Promise)=="function"?Iu:Object)],f.Graph.prototype,"exec",null),f.Graph=Fo([H("mpi")],f.Graph);var pn=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},ve=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Tn=function(r,e){return function(t,n){e(t,n,r)}},$u,Cu,Uu,Fu,ku,Du,xu,Bu,Lu,Hu,qu,zu,Gu,Wu,Vu;f.KMS=class{reset(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}environ(e=_()){return Promise.reject(h.URN_NOT_PERMIT)}issue(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}index(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}revoke(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}rotate(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}remove(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}append(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}explain(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}},pn([O("mesh.kms.reset",Object),Tn(0,a(0,"env",qe)),ve("design:type",Function),ve("design:paramtypes",[typeof($u=typeof qe<"u"&&qe)=="function"?$u:Object,Object]),ve("design:returntype",typeof(Cu=typeof Promise<"u"&&Promise)=="function"?Cu:Object)],f.KMS.prototype,"reset",null),pn([O("mesh.kms.environ",qe),ve("design:type",Function),ve("design:paramtypes",[Object]),ve("design:returntype",typeof(Uu=typeof Promise<"u"&&Promise)=="function"?Uu:Object)],f.KMS.prototype,"environ",null),pn([O("mesh.kms.crt.issue",Ct),Tn(0,a(0,"csr",Ge)),ve("design:type",Function),ve("design:paramtypes",[typeof(Fu=typeof Ge<"u"&&Ge)=="function"?Fu:Object,Object]),ve("design:returntype",typeof(ku=typeof Promise<"u"&&Promise)=="function"?ku:Object)],f.KMS.prototype,"issue",null),pn([O("mesh.kms.crt.index",[Re,Ct]),Tn(0,a(0,"idx",k)),ve("design:type",Function),ve("design:paramtypes",[typeof(Du=typeof k<"u"&&k)=="function"?Du:Object,Object]),ve("design:returntype",typeof(xu=typeof Promise<"u"&&Promise)=="function"?xu:Object)],f.KMS.prototype,"index",null),pn([O("mesh.kms.crt.revoke",Object),Tn(0,a(0,"crr",Sr)),ve("design:type",Function),ve("design:paramtypes",[typeof(Bu=typeof Sr<"u"&&Sr)=="function"?Bu:Object,Object]),ve("design:returntype",typeof(Lu=typeof Promise<"u"&&Promise)=="function"?Lu:Object)],f.KMS.prototype,"revoke",null),pn([O("mesh.kms.crt.rotate",Object),Tn(0,a(0,"crr",sr)),ve("design:type",Function),ve("design:paramtypes",[typeof(Hu=typeof sr<"u"&&sr)=="function"?Hu:Object,Object]),ve("design:returntype",typeof(qu=typeof Promise<"u"&&Promise)=="function"?qu:Object)],f.KMS.prototype,"rotate",null),pn([O("mesh.kms.crt.remove",Object),Tn(0,a(0,"id",String)),ve("design:type",Function),ve("design:paramtypes",[String,Object]),ve("design:returntype",typeof(zu=typeof Promise<"u"&&Promise)=="function"?zu:Object)],f.KMS.prototype,"remove",null),pn([O("mesh.kms.crt.append",Object),Tn(0,a(0,"car",Ct)),ve("design:type",Function),ve("design:paramtypes",[typeof(Gu=typeof Ct<"u"&&Ct)=="function"?Gu:Object,Object]),ve("design:returntype",typeof(Wu=typeof Promise<"u"&&Promise)=="function"?Wu:Object)],f.KMS.prototype,"append",null),pn([O("mesh.kms.crt.explain",String),Tn(0,a(0,"algo",String)),Tn(1,a(1,"keys",String)),ve("design:type",Function),ve("design:paramtypes",[String,String,Object]),ve("design:returntype",typeof(Vu=typeof Promise<"u"&&Promise)=="function"?Vu:Object)],f.KMS.prototype,"explain",null),f.KMS=pn([H("mpi")],f.KMS);var Dr=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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)},xr=function(r,e){return function(t,n){e(t,n,r)}},Ju,Ku,Xu,Yu,Qu,Zu,ed;f.KV=class{get(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}put(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}remove(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}keys(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}index(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}},Dr([O("mesh.kv.get",Me),xr(0,a(0,"key",String)),bt("design:type",Function),bt("design:paramtypes",[String,Object]),bt("design:returntype",typeof(Ju=typeof Promise<"u"&&Promise)=="function"?Ju:Object)],f.KV.prototype,"get",null),Dr([O("mesh.kv.put",Object),xr(0,a(0,"key",String)),xr(1,a(1,"value",Me)),bt("design:type",Function),bt("design:paramtypes",[String,typeof(Ku=typeof Me<"u"&&Me)=="function"?Ku:Object,Object]),bt("design:returntype",typeof(Xu=typeof Promise<"u"&&Promise)=="function"?Xu:Object)],f.KV.prototype,"put",null),Dr([O("mesh.kv.remove",Object),xr(0,a(0,"key",String)),bt("design:type",Function),bt("design:paramtypes",[String,Object]),bt("design:returntype",typeof(Yu=typeof Promise<"u"&&Promise)=="function"?Yu:Object)],f.KV.prototype,"remove",null),Dr([O("mesh.kv.keys",[Array,String]),xr(0,a(0,"pattern",String)),bt("design:type",Function),bt("design:paramtypes",[String,Object]),bt("design:returntype",typeof(Qu=typeof Promise<"u"&&Promise)=="function"?Qu:Object)],f.KV.prototype,"keys",null),Dr([O("mesh.kv.index",[Re,ai]),xr(0,a(0,"index",k)),bt("design:type",Function),bt("design:paramtypes",[typeof(Zu=typeof k<"u"&&k)=="function"?Zu:Object,Object]),bt("design:returntype",typeof(ed=typeof Promise<"u"&&Promise)=="function"?ed:Object)],f.KV.prototype,"index",null),f.KV=Dr([H("mesh")],f.KV);var Br=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},_t=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)}},td,nd,rd,id,od;f.Licenser=class{imports(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}exports(e=_()){return Promise.reject(h.URN_NOT_PERMIT)}explain(e=_()){return Promise.reject(h.URN_NOT_PERMIT)}verify(e=_()){return Promise.reject(h.URN_NOT_PERMIT)}features(e=_()){return Promise.reject(h.URN_NOT_PERMIT)}},Br([O("mesh.license.imports",Object),_l(0,a(0,"license",String)),_t("design:type",Function),_t("design:paramtypes",[String,Object]),_t("design:returntype",typeof(td=typeof Promise<"u"&&Promise)=="function"?td:Object)],f.Licenser.prototype,"imports",null),Br([O("mesh.license.exports",String),_t("design:type",Function),_t("design:paramtypes",[Object]),_t("design:returntype",typeof(nd=typeof Promise<"u"&&Promise)=="function"?nd:Object)],f.Licenser.prototype,"exports",null),Br([O("mesh.license.explain",_e),_t("design:type",Function),_t("design:paramtypes",[Object]),_t("design:returntype",typeof(rd=typeof Promise<"u"&&Promise)=="function"?rd:Object)],f.Licenser.prototype,"explain",null),Br([O("mesh.license.verify",Number),_t("design:type",Function),_t("design:paramtypes",[Object]),_t("design:returntype",typeof(id=typeof Promise<"u"&&Promise)=="function"?id:Object)],f.Licenser.prototype,"verify",null),Br([O("mesh.license.features",[Map,String,String]),_t("design:type",Function),_t("design:paramtypes",[Object]),_t("design:returntype",typeof(od=typeof Promise<"u"&&Promise)=="function"?od:Object)],f.Licenser.prototype,"features",null),f.Licenser=Br([H("mpi")],f.Licenser);var gi=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},zt=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Lr=function(r,e){return function(t,n){e(t,n,r)}},sd,cd,ad,ud;f.Locker=class{lock(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}unlock(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}readLock(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}readUnlock(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}},gi([O("mesh.locker.w.lock",Boolean),Lr(0,a(0,"rid",String)),Lr(1,a(1,"timeout",Number)),zt("design:type",Function),zt("design:paramtypes",[String,Number,Object]),zt("design:returntype",typeof(sd=typeof Promise<"u"&&Promise)=="function"?sd:Object)],f.Locker.prototype,"lock",null),gi([O("mesh.locker.w.unlock",Object),Lr(0,a(0,"rid",String)),zt("design:type",Function),zt("design:paramtypes",[String,Object]),zt("design:returntype",typeof(cd=typeof Promise<"u"&&Promise)=="function"?cd:Object)],f.Locker.prototype,"unlock",null),gi([O("mesh.locker.r.lock",Boolean),Lr(0,a(0,"rid",String)),Lr(1,a(1,"timeout",Number)),zt("design:type",Function),zt("design:paramtypes",[String,Number,Object]),zt("design:returntype",typeof(ad=typeof Promise<"u"&&Promise)=="function"?ad:Object)],f.Locker.prototype,"readLock",null),gi([O("mesh.locker.r.unlock",Object),Lr(0,a(0,"rid",String)),zt("design:type",Function),zt("design:paramtypes",[String,Object]),zt("design:returntype",typeof(ud=typeof Promise<"u"&&Promise)=="function"?ud:Object)],f.Locker.prototype,"readUnlock",null),f.Locker=gi([H("mpi")],f.Locker);var Gt=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},fe=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Nn=function(r,e){return function(t,n){e(t,n,r)}},dd,fd,pd,ld,yd,md,gd,hd,bd,_d,Od,Sd,vd;f.Network=class{environ(e=_()){return Promise.reject(h.URN_NOT_PERMIT)}accessible(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}refresh(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}route(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}routes(e=_()){return Promise.reject(h.URN_NOT_PERMIT)}disable(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}enable(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}index(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}version(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}exports(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}imports(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}},Gt([O("mesh.net.environ",qe),fe("design:type",Function),fe("design:paramtypes",[Object]),fe("design:returntype",typeof(dd=typeof Promise<"u"&&Promise)=="function"?dd:Object)],f.Network.prototype,"environ",null),Gt([O("mesh.net.accessible",Boolean),Nn(0,a(0,"route",de)),fe("design:type",Function),fe("design:paramtypes",[typeof(fd=typeof de<"u"&&de)=="function"?fd:Object,Object]),fe("design:returntype",typeof(pd=typeof Promise<"u"&&Promise)=="function"?pd:Object)],f.Network.prototype,"accessible",null),Gt([O("mesh.net.refresh",Object),Nn(0,a(0,"routes",[Array,de])),fe("design:type",Function),fe("design:paramtypes",[Array,Object]),fe("design:returntype",typeof(ld=typeof Promise<"u"&&Promise)=="function"?ld:Object)],f.Network.prototype,"refresh",null),Gt([O("mesh.net.route",de),Nn(0,a(0,"mdc",String)),fe("design:type",Function),fe("design:paramtypes",[String,Object]),fe("design:returntype",typeof(yd=typeof Promise<"u"&&Promise)=="function"?yd:Object)],f.Network.prototype,"route",null),Gt([O("mesh.net.routes",[Array,de]),fe("design:type",Function),fe("design:paramtypes",[Object]),fe("design:returntype",typeof(md=typeof Promise<"u"&&Promise)=="function"?md:Object)],f.Network.prototype,"routes",null),Gt([O("mesh.net.disable",Object),Nn(0,a(0,"mdc",String)),fe("design:type",Function),fe("design:paramtypes",[String,Object]),fe("design:returntype",typeof(gd=typeof Promise<"u"&&Promise)=="function"?gd:Object)],f.Network.prototype,"disable",null),Gt([O("mesh.net.enable",Object),Nn(0,a(0,"mdc",String)),fe("design:type",Function),fe("design:paramtypes",[String,Object]),fe("design:returntype",typeof(hd=typeof Promise<"u"&&Promise)=="function"?hd:Object)],f.Network.prototype,"enable",null),Gt([O("mesh.net.index",[Re,de]),Nn(0,a(0,"index",k)),fe("design:type",Function),fe("design:paramtypes",[typeof(bd=typeof k<"u"&&k)=="function"?bd:Object,Object]),fe("design:returntype",typeof(_d=typeof Promise<"u"&&Promise)=="function"?_d:Object)],f.Network.prototype,"index",null),Gt([O("mesh.net.version",fi),Nn(0,a(0,"mdc",String)),fe("design:type",Function),fe("design:paramtypes",[String,Object]),fe("design:returntype",typeof(Od=typeof Promise<"u"&&Promise)=="function"?Od:Object)],f.Network.prototype,"version",null),Gt([O("mesh.net.exports",String),Nn(0,a(0,"mdc",String)),fe("design:type",Function),fe("design:paramtypes",[String,Object]),fe("design:returntype",typeof(Sd=typeof Promise<"u"&&Promise)=="function"?Sd:Object)],f.Network.prototype,"exports",null),Gt([O("mesh.net.imports",Object),Nn(0,a(0,"crt",String)),fe("design:type",Function),fe("design:paramtypes",[String,Object]),fe("design:returntype",typeof(vd=typeof Promise<"u"&&Promise)=="function"?vd:Object)],f.Network.prototype,"imports",null),f.Network=Gt([H("mpi")],f.Network);var hi=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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)},Vn=function(r,e){return function(t,n){e(t,n,r)}},Rd,Pd,jd,wd,Ed,Td;f.Pipeline=class{peek(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}pop(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}push(e,t,n,o=_()){return Promise.reject(h.URN_NOT_PERMIT)}release(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}},hi([O("mesh.chan.peek",Uint8Array),Vn(0,a(0,"topic",String)),Wt("design:type",Function),Wt("design:paramtypes",[String,Object]),Wt("design:returntype",typeof(Rd=typeof Promise<"u"&&Promise)=="function"?Rd:Object)],f.Pipeline.prototype,"peek",null),hi([O("mesh.chan.pop",Uint8Array),Vn(0,a(0,"timeout",Number)),Vn(1,a(1,"topic",String)),Wt("design:type",Function),Wt("design:paramtypes",[Number,String,Object]),Wt("design:returntype",typeof(Pd=typeof Promise<"u"&&Promise)=="function"?Pd:Object)],f.Pipeline.prototype,"pop",null),hi([O("mesh.chan.push",Object),Vn(0,a(0,"payload",Uint8Array)),Vn(1,a(1,"metadata",[Map,String,String])),Vn(2,a(2,"topic",String)),Wt("design:type",Function),Wt("design:paramtypes",[typeof(jd=typeof Uint8Array<"u"&&Uint8Array)=="function"?jd:Object,typeof(wd=typeof Record<"u"&&Record)=="function"?wd:Object,String,Object]),Wt("design:returntype",typeof(Ed=typeof Promise<"u"&&Promise)=="function"?Ed:Object)],f.Pipeline.prototype,"push",null),hi([O("mesh.chan.release",Object),Vn(0,a(0,"timeout",Number)),Vn(1,a(1,"topic",String)),Wt("design:type",Function),Wt("design:paramtypes",[Number,String,Object]),Wt("design:returntype",typeof(Td=typeof Promise<"u"&&Promise)=="function"?Td:Object)],f.Pipeline.prototype,"release",null),f.Pipeline=hi([H("mpi")],f.Pipeline);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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},Hr=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Nd=function(r,e){return function(t,n){e(t,n,r)}},Ad,Md;f.Publisher=class{publish(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}broadcast(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}},ko([O("mesh.queue.publish",[Array,String]),Nd(0,a(0,"events",[Array,it])),Hr("design:type",Function),Hr("design:paramtypes",[Array,Object]),Hr("design:returntype",typeof(Ad=typeof Promise<"u"&&Promise)=="function"?Ad:Object)],f.Publisher.prototype,"publish",null),ko([O("mesh.queue.multicast",[Array,String]),Nd(0,a(0,"events",[Array,it])),Hr("design:type",Function),Hr("design:paramtypes",[Array,Object]),Hr("design:returntype",typeof(Md=typeof Promise<"u"&&Promise)=="function"?Md:Object)],f.Publisher.prototype,"broadcast",null),f.Publisher=ko([H("mpi")],f.Publisher);var bi=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},Vt=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)}},Id,$d,Cd,Ud,Fd,kd;f.Registry=class{register(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}registers(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}unregister(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}export(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}},bi([O("mesh.registry.put",Object),Ki(0,a(0,"registration",[ot,Object])),Vt("design:type",Function),Vt("design:paramtypes",[typeof(Id=typeof ot<"u"&&ot)=="function"?Id:Object,Object]),Vt("design:returntype",typeof($d=typeof Promise<"u"&&Promise)=="function"?$d:Object)],f.Registry.prototype,"register",null),bi([O("mesh.registry.puts",Object),Ki(0,a(0,"registrations",[Array,[ot,Object]])),Vt("design:type",Function),Vt("design:paramtypes",[Array,Object]),Vt("design:returntype",typeof(Cd=typeof Promise<"u"&&Promise)=="function"?Cd:Object)],f.Registry.prototype,"registers",null),bi([O("mesh.registry.remove",Object),Ki(0,a(0,"registration",[ot,Object])),Vt("design:type",Function),Vt("design:paramtypes",[typeof(Ud=typeof ot<"u"&&ot)=="function"?Ud:Object,Object]),Vt("design:returntype",typeof(Fd=typeof Promise<"u"&&Promise)=="function"?Fd:Object)],f.Registry.prototype,"unregister",null),bi([O("mesh.registry.export",[Array,[ot,Object]]),Ki(0,a(0,"kind",String)),Vt("design:type",Function),Vt("design:paramtypes",[String,Object]),Vt("design:returntype",typeof(kd=typeof Promise<"u"&&Promise)=="function"?kd:Object)],f.Registry.prototype,"export",null),f.Registry=bi([H("mpi")],f.Registry);var qr=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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)},_i=function(r,e){return function(t,n){e(t,n,r)}},Dd,xd,Bd,Ld,Hd,qd,zd;class Oi{with(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}withMap(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}local(e=_()){return Promise.reject(h.URN_NOT_PERMIT)}any(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}many(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}}qr([_i(0,a(0,"key",String)),_i(1,a(1,"value",String)),Tt("design:type",Function),Tt("design:paramtypes",[String,String,Object]),Tt("design:returntype",typeof(Dd=typeof Promise<"u"&&Promise)=="function"?Dd:Object)],Oi.prototype,"with",null),qr([_i(0,a(0,"attachments",[Map,String,String])),Tt("design:type",Function),Tt("design:paramtypes",[typeof(xd=typeof Record<"u"&&Record)=="function"?xd:Object,Object]),Tt("design:returntype",typeof(Bd=typeof Promise<"u"&&Promise)=="function"?Bd:Object)],Oi.prototype,"withMap",null),qr([_i(0,a(0,"principal",lt)),Tt("design:type",Function),Tt("design:paramtypes",[typeof(Ld=typeof lt<"u"&&lt)=="function"?Ld:Object,Object]),Tt("design:returntype",typeof(Hd=typeof Promise<"u"&&Promise)=="function"?Hd:Object)],Oi.prototype,"any",null),qr([_i(0,a(0,"principals",[Array,lt])),Tt("design:type",Function),Tt("design:paramtypes",[Array,Object]),Tt("design:returntype",typeof(qd=typeof Promise<"u"&&Promise)=="function"?qd:Object)],Oi.prototype,"many",null);class Do{constructor(){s(this,"reference");s(this,"attachments",{})}}qr([a(0,"reference",Object),Tt("design:type",Object)],Do.prototype,"reference",void 0),qr([a(1,"attachments",[Map,String,String]),Tt("design:type",typeof(zd=typeof Record<"u"&&Record)=="function"?zd:Object)],Do.prototype,"attachments",void 0);var zr=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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)},Si=function(r,e){return function(t,n){e(t,n,r)}},Gd,Wd,Vd,Jd,Kd,Xd,Yd,Qd;f.Savepoint=class{begin(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}commit(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}rollback(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}execute(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}redo(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}},zr([O("mesh.savepoint.begin",String),Si(0,a(0,"definition",Gn)),Ot("design:type",Function),Ot("design:paramtypes",[typeof(Gd=typeof Gn<"u"&&Gn)=="function"?Gd:Object,Object]),Ot("design:returntype",typeof(Wd=typeof Promise<"u"&&Promise)=="function"?Wd:Object)],f.Savepoint.prototype,"begin",null),zr([O("mesh.savepoint.commit",Object),Si(0,a(0,"xid",String)),Ot("design:type",Function),Ot("design:paramtypes",[String,Object]),Ot("design:returntype",typeof(Vd=typeof Promise<"u"&&Promise)=="function"?Vd:Object)],f.Savepoint.prototype,"commit",null),zr([O("mesh.savepoint.rollback",Object),Si(0,a(0,"xid",String)),Ot("design:type",Function),Ot("design:paramtypes",[String,Object]),Ot("design:returntype",typeof(Jd=typeof Promise<"u"&&Promise)=="function"?Jd:Object)],f.Savepoint.prototype,"rollback",null),zr([O("mesh.savepoint.execute",Uint8Array),Si(0,a(0,"branch",dn)),Ot("design:type",Function),Ot("design:paramtypes",[typeof(Kd=typeof dn<"u"&&dn)=="function"?Kd:Object,Object]),Ot("design:returntype",typeof(Xd=typeof Promise<"u"&&Promise)=="function"?Xd:Object)],f.Savepoint.prototype,"execute",null),zr([O("mesh.savepoint.redo",Object),Si(0,a(0,"commit",Uint8Array)),Ot("design:type",Function),Ot("design:paramtypes",[typeof(Yd=typeof Uint8Array<"u"&&Uint8Array)=="function"?Yd:Object,Object]),Ot("design:returntype",typeof(Qd=typeof Promise<"u"&&Promise)=="function"?Qd:Object)],f.Savepoint.prototype,"redo",null),f.Savepoint=zr([H("mpi")],f.Savepoint);var An=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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)},ln=function(r,e){return function(t,n){e(t,n,r)}},Zd,ef,tf,nf,rf,of,sf,cf,af,uf,df,ff;f.Scheduler=class{timeout(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}cron(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}period(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}dump(e=_()){return Promise.reject(h.URN_NOT_PERMIT)}cancel(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}stop(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}emit(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}shutdown(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}},An([O("mesh.schedule.timeout",String),ln(0,a(0,"timeout",sn)),ln(1,a(1,"duration",Number)),$e("design:type",Function),$e("design:paramtypes",[typeof(Zd=typeof sn<"u"&&sn)=="function"?Zd:Object,Number,Object]),$e("design:returntype",typeof(ef=typeof Promise<"u"&&Promise)=="function"?ef:Object)],f.Scheduler.prototype,"timeout",null),An([O("mesh.schedule.cron",String),ln(0,a(0,"cron",String)),ln(1,a(1,"topic",Ue)),$e("design:type",Function),$e("design:paramtypes",[String,typeof(tf=typeof Ue<"u"&&Ue)=="function"?tf:Object,Object]),$e("design:returntype",typeof(nf=typeof Promise<"u"&&Promise)=="function"?nf:Object)],f.Scheduler.prototype,"cron",null),An([O("mesh.schedule.period",String),ln(0,a(0,"duration",Number)),ln(1,a(1,"topic",Ue)),$e("design:type",Function),$e("design:paramtypes",[Number,typeof(rf=typeof Ue<"u"&&Ue)=="function"?rf:Object,Object]),$e("design:returntype",typeof(of=typeof Promise<"u"&&Promise)=="function"?of:Object)],f.Scheduler.prototype,"period",null),An([O("mesh.schedule.dump",[Array,String]),$e("design:type",Function),$e("design:paramtypes",[Object]),$e("design:returntype",typeof(sf=typeof Promise<"u"&&Promise)=="function"?sf:Object)],f.Scheduler.prototype,"dump",null),An([O("mesh.schedule.cancel",Boolean),ln(0,a(0,"task_id",String)),$e("design:type",Function),$e("design:paramtypes",[String,Object]),$e("design:returntype",typeof(cf=typeof Promise<"u"&&Promise)=="function"?cf:Object)],f.Scheduler.prototype,"cancel",null),An([O("mesh.schedule.stop",Boolean),ln(0,a(0,"task_id",String)),$e("design:type",Function),$e("design:paramtypes",[String,Object]),$e("design:returntype",typeof(af=typeof Promise<"u"&&Promise)=="function"?af:Object)],f.Scheduler.prototype,"stop",null),An([O("mesh.schedule.emit",Object),ln(0,a(0,"topic",Ue)),$e("design:type",Function),$e("design:paramtypes",[typeof(uf=typeof Ue<"u"&&Ue)=="function"?uf:Object,Object]),$e("design:returntype",typeof(df=typeof Promise<"u"&&Promise)=="function"?df:Object)],f.Scheduler.prototype,"emit",null),An([O("mesh.schedule.shutdown",Object),ln(0,a(0,"duration",Number)),$e("design:type",Function),$e("design:paramtypes",[Number,Object]),$e("design:returntype",typeof(ff=typeof Promise<"u"&&Promise)=="function"?ff:Object)],f.Scheduler.prototype,"shutdown",null),f.Scheduler=An([H("mpi")],f.Scheduler);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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},Gr=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},vi=function(r,e){return function(t,n){e(t,n,r)}},pf,lf;f.Sequence=class{next(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}section(e,t,n,o=_()){return Promise.reject(h.URN_NOT_PERMIT)}},xo([O("mesh.sequence.next",String),vi(0,a(0,"kind",String)),vi(1,a(1,"length",Number)),Gr("design:type",Function),Gr("design:paramtypes",[String,Number,Object]),Gr("design:returntype",typeof(pf=typeof Promise<"u"&&Promise)=="function"?pf:Object)],f.Sequence.prototype,"next",null),xo([O("mesh.sequence.section",[Array,String]),vi(0,a(0,"kind",String)),vi(1,a(1,"size",Number)),vi(2,a(2,"length",Number)),Gr("design:type",Function),Gr("design:paramtypes",[String,Number,Number,Object]),Gr("design:returntype",typeof(lf=typeof Promise<"u"&&Promise)=="function"?lf:Object)],f.Sequence.prototype,"section",null),f.Sequence=xo([H("mpi")],f.Sequence);var yf=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},Bo=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Ol=function(r,e){return function(t,n){e(t,n,r)}},mf,gf;f.Subscriber=class{subscribe(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}},yf([O("mesh.queue.subscribe",Object),Ol(0,a(0,"event",it)),Bo("design:type",Function),Bo("design:paramtypes",[typeof(mf=typeof it<"u"&&it)=="function"?mf:Object,Object]),Bo("design:returntype",typeof(gf=typeof Promise<"u"&&Promise)=="function"?gf:Object)],f.Subscriber.prototype,"subscribe",null),f.Subscriber=yf([H("mpi")],f.Subscriber);var Nt=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},oe=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},St=function(r,e){return function(t,n){e(t,n,r)}},hf,bf,_f,Of,Sf,vf,Rf,Pf,jf,wf,Ef,Tf,Nf,Af,Mf;f.Tokenizer=class{captcha(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}matches(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}apply(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}verify(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}quickauth(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}grant(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}accept(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}reject(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}authorize(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}authenticate(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}refresh(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}},Nt([O("mesh.captcha.apply",Pr),St(0,a(0,"kind",String)),St(1,a(1,"features",[Map,String,String])),oe("design:type",Function),oe("design:paramtypes",[String,typeof(hf=typeof Record<"u"&&Record)=="function"?hf:Object,Object]),oe("design:returntype",typeof(bf=typeof Promise<"u"&&Promise)=="function"?bf:Object)],f.Tokenizer.prototype,"captcha",null),Nt([O("mesh.captcha.match",Boolean),St(0,a(0,"mno",String)),St(1,a(1,"value",String)),oe("design:type",Function),oe("design:paramtypes",[String,String,Object]),oe("design:returntype",typeof(_f=typeof Promise<"u"&&Promise)=="function"?_f:Object)],f.Tokenizer.prototype,"matches",null),Nt([O("mesh.trust.apply",String),St(0,a(0,"kind",String)),St(1,a(1,"duration",Number)),oe("design:type",Function),oe("design:paramtypes",[String,Number,Object]),oe("design:returntype",typeof(Of=typeof Promise<"u"&&Promise)=="function"?Of:Object)],f.Tokenizer.prototype,"apply",null),Nt([O("mesh.trust.verify",Boolean),St(0,a(0,"token",String)),oe("design:type",Function),oe("design:paramtypes",[String,Object]),oe("design:returntype",typeof(Sf=typeof Promise<"u"&&Promise)=="function"?Sf:Object)],f.Tokenizer.prototype,"verify",null),Nt([O("mesh.oauth2.quickauth",On),St(0,a(0,"credential",Dt)),oe("design:type",Function),oe("design:paramtypes",[typeof(vf=typeof Dt<"u"&&Dt)=="function"?vf:Object,Object]),oe("design:returntype",typeof(Rf=typeof Promise<"u"&&Promise)=="function"?Rf:Object)],f.Tokenizer.prototype,"quickauth",null),Nt([O("mesh.oauth2.grant",To),St(0,a(0,"credential",Dt)),oe("design:type",Function),oe("design:paramtypes",[typeof(Pf=typeof Dt<"u"&&Dt)=="function"?Pf:Object,Object]),oe("design:returntype",typeof(jf=typeof Promise<"u"&&Promise)=="function"?jf:Object)],f.Tokenizer.prototype,"grant",null),Nt([O("mesh.oauth2.accept",zi),St(0,a(0,"code",String)),oe("design:type",Function),oe("design:paramtypes",[String,Object]),oe("design:returntype",typeof(wf=typeof Promise<"u"&&Promise)=="function"?wf:Object)],f.Tokenizer.prototype,"accept",null),Nt([O("mesh.oauth2.reject",Object),St(0,a(0,"code",String)),oe("design:type",Function),oe("design:paramtypes",[String,Object]),oe("design:returntype",typeof(Ef=typeof Promise<"u"&&Promise)=="function"?Ef:Object)],f.Tokenizer.prototype,"reject",null),Nt([O("mesh.oauth2.authorize",On),St(0,a(0,"code",String)),oe("design:type",Function),oe("design:paramtypes",[String,Object]),oe("design:returntype",typeof(Tf=typeof Promise<"u"&&Promise)=="function"?Tf:Object)],f.Tokenizer.prototype,"authorize",null),Nt([O("mesh.oauth2.authenticate",yt),St(0,a(0,"token",String)),oe("design:type",Function),oe("design:paramtypes",[String,Object]),oe("design:returntype",typeof(Nf=typeof Promise<"u"&&Promise)=="function"?Nf:Object)],f.Tokenizer.prototype,"authenticate",null),Nt([O("mesh.oauth2.refresh",On),St(0,a(0,"token",String)),oe("design:type",Function),oe("design:paramtypes",[String,Object]),oe("design:returntype",typeof(Af=typeof Promise<"u"&&Promise)=="function"?Af:Object)],f.Tokenizer.prototype,"refresh",null),f.Tokenizer=Nt([H("mpi")],f.Tokenizer),f.TokenProvider=class{provide(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}},Nt([O("${mesh.name}.session.obtain",yt),St(0,a(0,"token",String)),oe("design:type",Function),oe("design:paramtypes",[String,Object]),oe("design:returntype",typeof(Mf=typeof Promise<"u"&&Promise)=="function"?Mf:Object)],f.TokenProvider.prototype,"provide",null),f.TokenProvider=Nt([H("mpi")],f.TokenProvider);var ur=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},Ye=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},yn=function(r,e){return function(t,n){e(t,n,r)}},If,$f,Cf,Uf,Ff,kf,Df;f.Transporter=class{attach(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}detach(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}scan(e,t,n,o=_()){return Promise.reject(h.URN_NOT_PERMIT)}write(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}read(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}clean(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}},ur([O("${mesh.name}.tcp.attach",String),yn(0,a(0,"uri",String)),yn(1,a(1,"pdc",String)),Ye("design:type",Function),Ye("design:paramtypes",[String,String,Object]),Ye("design:returntype",typeof(If=typeof Promise<"u"&&Promise)=="function"?If:Object)],f.Transporter.prototype,"attach",null),ur([O("${mesh.name}.tcp.detach",Object),yn(0,a(0,"descriptor",String)),Ye("design:type",Function),Ye("design:paramtypes",[String,Object]),Ye("design:returntype",typeof($f=typeof Promise<"u"&&Promise)=="function"?$f:Object)],f.Transporter.prototype,"detach",null),ur([O("${mesh.name}.tcp.scan",[Array,Lt]),yn(0,a(0,"rid",String)),yn(1,a(1,"h",Number)),yn(2,a(2,"limit",Number)),Ye("design:type",Function),Ye("design:paramtypes",[String,Number,Number,Object]),Ye("design:returntype",typeof(Cf=typeof Promise<"u"&&Promise)=="function"?Cf:Object)],f.Transporter.prototype,"scan",null),ur([O("${mesh.name}.tcp.write",Object),yn(0,a(0,"packet",Lt)),Ye("design:type",Function),Ye("design:paramtypes",[typeof(Uf=typeof Lt<"u"&&Lt)=="function"?Uf:Object,Object]),Ye("design:returntype",typeof(Ff=typeof Promise<"u"&&Promise)=="function"?Ff:Object)],f.Transporter.prototype,"write",null),ur([O("${mesh.name}.tcp.read",[Array,Lt]),yn(0,a(0,"bucket",String)),yn(1,a(1,"limit",Number)),Ye("design:type",Function),Ye("design:paramtypes",[String,Number,Object]),Ye("design:returntype",typeof(kf=typeof Promise<"u"&&Promise)=="function"?kf:Object)],f.Transporter.prototype,"read",null),ur([O("${mesh.name}.tcp.clean",Object),yn(0,a(0,"buckets",[Array,String])),Ye("design:type",Function),Ye("design:paramtypes",[Array,Object]),Ye("design:returntype",typeof(Df=typeof Promise<"u"&&Promise)=="function"?Df:Object)],f.Transporter.prototype,"clean",null),f.Transporter=ur([H("mpi")],f.Transporter);var Jn=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},De=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Kn=function(r,e){return function(t,n){e(t,n,r)}},xf,Bf,Lf,Hf,qf,zf,Gf,Wf;f.FileSystem=class{exist(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}mkdir(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}write(e,t,n=_()){return Promise.reject(h.URN_NOT_PERMIT)}read(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}remove(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}delete(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}list(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}},Jn([O("mesh.fs.exist",Boolean),Kn(0,a(0,"path",String)),De("design:type",Function),De("design:paramtypes",[String,Object]),De("design:returntype",typeof(xf=typeof Promise<"u"&&Promise)=="function"?xf:Object)],f.FileSystem.prototype,"exist",null),Jn([O("mesh.fs.mkdir",Object),Kn(0,a(0,"path",String)),De("design:type",Function),De("design:paramtypes",[String,Object]),De("design:returntype",typeof(Bf=typeof Promise<"u"&&Promise)=="function"?Bf:Object)],f.FileSystem.prototype,"mkdir",null),Jn([O("mesh.fs.write",Object),Kn(0,a(0,"path",String)),Kn(1,a(1,"buff",Uint8Array)),De("design:type",Function),De("design:paramtypes",[String,typeof(Lf=typeof Uint8Array<"u"&&Uint8Array)=="function"?Lf:Object,Object]),De("design:returntype",typeof(Hf=typeof Promise<"u"&&Promise)=="function"?Hf:Object)],f.FileSystem.prototype,"write",null),Jn([O("mesh.fs.read",Uint8Array),Kn(0,a(0,"path",String)),De("design:type",Function),De("design:paramtypes",[String,Object]),De("design:returntype",typeof(qf=typeof Promise<"u"&&Promise)=="function"?qf:Object)],f.FileSystem.prototype,"read",null),Jn([O("mesh.fs.remove",Object),Kn(0,a(0,"path",String)),De("design:type",Function),De("design:paramtypes",[String,Object]),De("design:returntype",typeof(zf=typeof Promise<"u"&&Promise)=="function"?zf:Object)],f.FileSystem.prototype,"remove",null),Jn([O("mesh.fs.delete",Object),Kn(0,a(0,"paths",[Array,String])),De("design:type",Function),De("design:paramtypes",[Array,Object]),De("design:returntype",typeof(Gf=typeof Promise<"u"&&Promise)=="function"?Gf:Object)],f.FileSystem.prototype,"delete",null),Jn([O("mesh.fs.ls",Or),Kn(0,a(0,"path",String)),De("design:type",Function),De("design:paramtypes",[String,Object]),De("design:returntype",typeof(Wf=typeof Promise<"u"&&Promise)=="function"?Wf:Object)],f.FileSystem.prototype,"list",null),f.FileSystem=Jn([H("mpi")],f.FileSystem);var Xn=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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)},dr=function(r,e){return function(t,n){e(t,n,r)}},Vf,Jf,Kf,Xf,Yf,Qf,Zf,ep,tp,np,rp,ip,op,sp;f.Workflow=class{mass(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}groups(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}compile(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}index(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}submit(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}take(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}routines(e,t=_()){return Promise.reject(h.URN_NOT_PERMIT)}},Xn([O("mesh.workflow.mass",String),dr(0,a(0,"group",jn)),xe("design:type",Function),xe("design:paramtypes",[typeof(Vf=typeof jn<"u"&&jn)=="function"?Vf:Object,Object]),xe("design:returntype",typeof(Jf=typeof Promise<"u"&&Promise)=="function"?Jf:Object)],f.Workflow.prototype,"mass",null),Xn([O("mesh.workflow.groups",[Re,jn]),dr(0,a(0,"index",k)),xe("design:type",Function),xe("design:paramtypes",[typeof(Kf=typeof k<"u"&&k)=="function"?Kf:Object,Object]),xe("design:returntype",typeof(Xf=typeof Promise<"u"&&Promise)=="function"?Xf:Object)],f.Workflow.prototype,"groups",null),Xn([O("mesh.workflow.compile",String),dr(0,a(0,"chart",Et)),xe("design:type",Function),xe("design:paramtypes",[typeof(Yf=typeof Et<"u"&&Et)=="function"?Yf:Object,Object]),xe("design:returntype",typeof(Qf=typeof Promise<"u"&&Promise)=="function"?Qf:Object)],f.Workflow.prototype,"compile",null),Xn([O("mesh.workflow.index",[Re,Et]),dr(0,a(0,"index",k)),xe("design:type",Function),xe("design:paramtypes",[typeof(Zf=typeof k<"u"&&k)=="function"?Zf:Object,Object]),xe("design:returntype",typeof(ep=typeof Promise<"u"&&Promise)=="function"?ep:Object)],f.Workflow.prototype,"index",null),Xn([O("mesh.workflow.submit",String),dr(0,a(0,"intent",Wn)),xe("design:type",Function),xe("design:paramtypes",[typeof(tp=typeof Wn<"u"&&Wn)=="function"?tp:Object,Object]),xe("design:returntype",typeof(np=typeof Promise<"u"&&Promise)=="function"?np:Object)],f.Workflow.prototype,"submit",null),Xn([O("mesh.workflow.take",Object),dr(0,a(0,"vertex",Qe)),xe("design:type",Function),xe("design:paramtypes",[typeof(rp=typeof Qe<"u"&&Qe)=="function"?rp:Object,Object]),xe("design:returntype",typeof(ip=typeof Promise<"u"&&Promise)=="function"?ip:Object)],f.Workflow.prototype,"take",null),Xn([O("mesh.workflow.routines",[Re,Qe]),dr(0,a(0,"index",k)),xe("design:type",Function),xe("design:paramtypes",[typeof(op=typeof k<"u"&&k)=="function"?op:Object,Object]),xe("design:returntype",typeof(sp=typeof Promise<"u"&&Promise)=="function"?sp:Object)],f.Workflow.prototype,"routines",null),f.Workflow=Xn([H("mpi")],f.Workflow);var Sl=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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.Codec=(Zn=class{encodeString(e){return this.stringify(this.encode(e))}decodeString(e,t){return this.decode(this.uint8ify(e),t)}},s(Zn,"JSON","json"),s(Zn,"PROTOBUF","protobuf"),s(Zn,"XML","xml"),s(Zn,"YAML","yaml"),s(Zn,"THRIFT","thrift"),s(Zn,"MESH","mesh"),Zn),f.Codec=Sl([H(f.Codec.JSON)],f.Codec);var Lo={},Ri={},cp;function vl(){if(cp)return Ri;cp=1,Ri.byteLength=u,Ri.toByteArray=P,Ri.fromByteArray=U;for(var r=[],e=[],t=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,i=n.length;o<i;++o)r[o]=n[o],e[n.charCodeAt(o)]=o;e[45]=62,e[95]=63;function c(N){var w=N.length;if(w%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var M=N.indexOf("=");M===-1&&(M=w);var A=M===w?0:4-M%4;return[M,A]}function u(N){var w=c(N),M=w[0],A=w[1];return(M+A)*3/4-A}function R(N,w,M){return(w+M)*3/4-M}function P(N){var w,M=c(N),A=M[0],W=M[1],V=new t(R(N,A,W)),te=0,Ve=W>0?A-4:A,re;for(re=0;re<Ve;re+=4)w=e[N.charCodeAt(re)]<<18|e[N.charCodeAt(re+1)]<<12|e[N.charCodeAt(re+2)]<<6|e[N.charCodeAt(re+3)],V[te++]=w>>16&255,V[te++]=w>>8&255,V[te++]=w&255;return W===2&&(w=e[N.charCodeAt(re)]<<2|e[N.charCodeAt(re+1)]>>4,V[te++]=w&255),W===1&&(w=e[N.charCodeAt(re)]<<10|e[N.charCodeAt(re+1)]<<4|e[N.charCodeAt(re+2)]>>2,V[te++]=w>>8&255,V[te++]=w&255),V}function S(N){return r[N>>18&63]+r[N>>12&63]+r[N>>6&63]+r[N&63]}function E(N,w,M){for(var A,W=[],V=w;V<M;V+=3)A=(N[V]<<16&16711680)+(N[V+1]<<8&65280)+(N[V+2]&255),W.push(S(A));return W.join("")}function U(N){for(var w,M=N.length,A=M%3,W=[],V=16383,te=0,Ve=M-A;te<Ve;te+=V)W.push(E(N,te,te+V>Ve?Ve:te+V));return A===1?(w=N[M-1],W.push(r[w>>2]+r[w<<4&63]+"==")):A===2&&(w=(N[M-2]<<8)+N[M-1],W.push(r[w>>10]+r[w>>4&63]+r[w<<2&63]+"=")),W.join("")}return Ri}var Xi={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var ap;function Rl(){return ap||(ap=1,Xi.read=function(r,e,t,n,o){var i,c,u=o*8-n-1,R=(1<<u)-1,P=R>>1,S=-7,E=t?o-1:0,U=t?-1:1,N=r[e+E];for(E+=U,i=N&(1<<-S)-1,N>>=-S,S+=u;S>0;i=i*256+r[e+E],E+=U,S-=8);for(c=i&(1<<-S)-1,i>>=-S,S+=n;S>0;c=c*256+r[e+E],E+=U,S-=8);if(i===0)i=1-P;else{if(i===R)return c?NaN:(N?-1:1)*(1/0);c=c+Math.pow(2,n),i=i-P}return(N?-1:1)*c*Math.pow(2,i-n)},Xi.write=function(r,e,t,n,o,i){var c,u,R,P=i*8-o-1,S=(1<<P)-1,E=S>>1,U=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,N=n?0:i-1,w=n?1:-1,M=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(u=isNaN(e)?1:0,c=S):(c=Math.floor(Math.log(e)/Math.LN2),e*(R=Math.pow(2,-c))<1&&(c--,R*=2),c+E>=1?e+=U/R:e+=U*Math.pow(2,1-E),e*R>=2&&(c++,R/=2),c+E>=S?(u=0,c=S):c+E>=1?(u=(e*R-1)*Math.pow(2,o),c=c+E):(u=e*Math.pow(2,E-1)*Math.pow(2,o),c=0));o>=8;r[t+N]=u&255,N+=w,u/=256,o-=8);for(c=c<<o|u,P+=o;P>0;r[t+N]=c&255,N+=w,c/=256,P-=8);r[t+N-w]|=M*128}),Xi}/*!
15
15
  * The buffer module from node.js, for the browser.
16
16
  *
17
17
  * @author Feross Aboukhadijeh <https://feross.org>
18
18
  * @license MIT
19
- */var up;function Pl(){return up||(up=1,function(r){const e=vl(),t=Rl(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;r.Buffer=u,r.SlowBuffer=V,r.INSPECT_MAX_BYTES=50;const o=2147483647;r.kMaxLength=o,u.TYPED_ARRAY_SUPPORT=i(),!u.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{const l=new Uint8Array(1),d={foo:function(){return 42}};return Object.setPrototypeOf(d,Uint8Array.prototype),Object.setPrototypeOf(l,d),l.foo()===42}catch{return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}});function c(l){if(l>o)throw new RangeError('The value "'+l+'" is invalid for option "size"');const d=new Uint8Array(l);return Object.setPrototypeOf(d,u.prototype),d}function u(l,d,p){if(typeof l=="number"){if(typeof d=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return E(l)}return P(l,d,p)}u.poolSize=8192;function P(l,d,p){if(typeof l=="string")return U(l,d);if(ArrayBuffer.isView(l))return w(l);if(l==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof l);if($t(l,ArrayBuffer)||l&&$t(l.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&($t(l,SharedArrayBuffer)||l&&$t(l.buffer,SharedArrayBuffer)))return M(l,d,p);if(typeof l=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const m=l.valueOf&&l.valueOf();if(m!=null&&m!==l)return u.from(m,d,p);const b=A(l);if(b)return b;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof l[Symbol.toPrimitive]=="function")return u.from(l[Symbol.toPrimitive]("string"),d,p);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof l)}u.from=function(l,d,p){return P(l,d,p)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array);function R(l){if(typeof l!="number")throw new TypeError('"size" argument must be of type number');if(l<0)throw new RangeError('The value "'+l+'" is invalid for option "size"')}function S(l,d,p){return R(l),l<=0?c(l):d!==void 0?typeof p=="string"?c(l).fill(d,p):c(l).fill(d):c(l)}u.alloc=function(l,d,p){return S(l,d,p)};function E(l){return R(l),c(l<0?0:W(l)|0)}u.allocUnsafe=function(l){return E(l)},u.allocUnsafeSlow=function(l){return E(l)};function U(l,d){if((typeof d!="string"||d==="")&&(d="utf8"),!u.isEncoding(d))throw new TypeError("Unknown encoding: "+d);const p=te(l,d)|0;let m=c(p);const b=m.write(l,d);return b!==p&&(m=m.slice(0,b)),m}function N(l){const d=l.length<0?0:W(l.length)|0,p=c(d);for(let m=0;m<d;m+=1)p[m]=l[m]&255;return p}function w(l){if($t(l,Uint8Array)){const d=new Uint8Array(l);return M(d.buffer,d.byteOffset,d.byteLength)}return N(l)}function M(l,d,p){if(d<0||l.byteLength<d)throw new RangeError('"offset" is outside of buffer bounds');if(l.byteLength<d+(p||0))throw new RangeError('"length" is outside of buffer bounds');let m;return d===void 0&&p===void 0?m=new Uint8Array(l):p===void 0?m=new Uint8Array(l,d):m=new Uint8Array(l,d,p),Object.setPrototypeOf(m,u.prototype),m}function A(l){if(u.isBuffer(l)){const d=W(l.length)|0,p=c(d);return p.length===0||l.copy(p,0,0,d),p}if(l.length!==void 0)return typeof l.length!="number"||Fi(l.length)?c(0):N(l);if(l.type==="Buffer"&&Array.isArray(l.data))return N(l.data)}function W(l){if(l>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return l|0}function V(l){return+l!=l&&(l=0),u.alloc(+l)}u.isBuffer=function(d){return d!=null&&d._isBuffer===!0&&d!==u.prototype},u.compare=function(d,p){if($t(d,Uint8Array)&&(d=u.from(d,d.offset,d.byteLength)),$t(p,Uint8Array)&&(p=u.from(p,p.offset,p.byteLength)),!u.isBuffer(d)||!u.isBuffer(p))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(d===p)return 0;let m=d.length,b=p.length;for(let y=0,g=Math.min(m,b);y<g;++y)if(d[y]!==p[y]){m=d[y],b=p[y];break}return m<b?-1:b<m?1:0},u.isEncoding=function(d){switch(String(d).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(d,p){if(!Array.isArray(d))throw new TypeError('"list" argument must be an Array of Buffers');if(d.length===0)return u.alloc(0);let m;if(p===void 0)for(p=0,m=0;m<d.length;++m)p+=d[m].length;const b=u.allocUnsafe(p);let y=0;for(m=0;m<d.length;++m){let g=d[m];if($t(g,Uint8Array))y+g.length>b.length?(u.isBuffer(g)||(g=u.from(g)),g.copy(b,y)):Uint8Array.prototype.set.call(b,g,y);else if(u.isBuffer(g))g.copy(b,y);else throw new TypeError('"list" argument must be an Array of Buffers');y+=g.length}return b};function te(l,d){if(u.isBuffer(l))return l.length;if(ArrayBuffer.isView(l)||$t(l,ArrayBuffer))return l.byteLength;if(typeof l!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof l);const p=l.length,m=arguments.length>2&&arguments[2]===!0;if(!m&&p===0)return 0;let b=!1;for(;;)switch(d){case"ascii":case"latin1":case"binary":return p;case"utf8":case"utf-8":return Zr(l).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return p*2;case"hex":return p>>>1;case"base64":return Ui(l).length;default:if(b)return m?-1:Zr(l).length;d=(""+d).toLowerCase(),b=!0}}u.byteLength=te;function We(l,d,p){let m=!1;if((d===void 0||d<0)&&(d=0),d>this.length||((p===void 0||p>this.length)&&(p=this.length),p<=0)||(p>>>=0,d>>>=0,p<=d))return"";for(l||(l="utf8");;)switch(l){case"hex":return _o(this,d,p);case"utf8":case"utf-8":return go(this,d,p);case"ascii":return ho(this,d,p);case"latin1":case"binary":return bo(this,d,p);case"base64":return us(this,d,p);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Oo(this,d,p);default:if(m)throw new TypeError("Unknown encoding: "+l);l=(l+"").toLowerCase(),m=!0}}u.prototype._isBuffer=!0;function re(l,d,p){const m=l[d];l[d]=l[p],l[p]=m}u.prototype.swap16=function(){const d=this.length;if(d%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let p=0;p<d;p+=2)re(this,p,p+1);return this},u.prototype.swap32=function(){const d=this.length;if(d%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let p=0;p<d;p+=4)re(this,p,p+3),re(this,p+1,p+2);return this},u.prototype.swap64=function(){const d=this.length;if(d%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let p=0;p<d;p+=8)re(this,p,p+7),re(this,p+1,p+6),re(this,p+2,p+5),re(this,p+3,p+4);return this},u.prototype.toString=function(){const d=this.length;return d===0?"":arguments.length===0?go(this,0,d):We.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(d){if(!u.isBuffer(d))throw new TypeError("Argument must be a Buffer");return this===d?!0:u.compare(this,d)===0},u.prototype.inspect=function(){let d="";const p=r.INSPECT_MAX_BYTES;return d=this.toString("hex",0,p).replace(/(.{2})/g,"$1 ").trim(),this.length>p&&(d+=" ... "),"<Buffer "+d+">"},n&&(u.prototype[n]=u.prototype.inspect),u.prototype.compare=function(d,p,m,b,y){if($t(d,Uint8Array)&&(d=u.from(d,d.offset,d.byteLength)),!u.isBuffer(d))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof d);if(p===void 0&&(p=0),m===void 0&&(m=d?d.length:0),b===void 0&&(b=0),y===void 0&&(y=this.length),p<0||m>d.length||b<0||y>this.length)throw new RangeError("out of range index");if(b>=y&&p>=m)return 0;if(b>=y)return-1;if(p>=m)return 1;if(p>>>=0,m>>>=0,b>>>=0,y>>>=0,this===d)return 0;let g=y-b,v=m-p;const T=Math.min(g,v),I=this.slice(b,y),J=d.slice(p,m);for(let G=0;G<T;++G)if(I[G]!==J[G]){g=I[G],v=J[G];break}return g<v?-1:v<g?1:0};function kt(l,d,p,m,b){if(l.length===0)return-1;if(typeof p=="string"?(m=p,p=0):p>2147483647?p=2147483647:p<-2147483648&&(p=-2147483648),p=+p,Fi(p)&&(p=b?0:l.length-1),p<0&&(p=l.length+p),p>=l.length){if(b)return-1;p=l.length-1}else if(p<0)if(b)p=0;else return-1;if(typeof d=="string"&&(d=u.from(d,m)),u.isBuffer(d))return d.length===0?-1:Jt(l,d,p,m,b);if(typeof d=="number")return d=d&255,typeof Uint8Array.prototype.indexOf=="function"?b?Uint8Array.prototype.indexOf.call(l,d,p):Uint8Array.prototype.lastIndexOf.call(l,d,p):Jt(l,[d],p,m,b);throw new TypeError("val must be string, number or Buffer")}function Jt(l,d,p,m,b){let y=1,g=l.length,v=d.length;if(m!==void 0&&(m=String(m).toLowerCase(),m==="ucs2"||m==="ucs-2"||m==="utf16le"||m==="utf-16le")){if(l.length<2||d.length<2)return-1;y=2,g/=2,v/=2,p/=2}function T(J,G){return y===1?J[G]:J.readUInt16BE(G*y)}let I;if(b){let J=-1;for(I=p;I<g;I++)if(T(l,I)===T(d,J===-1?0:I-J)){if(J===-1&&(J=I),I-J+1===v)return J*y}else J!==-1&&(I-=I-J),J=-1}else for(p+v>g&&(p=g-v),I=p;I>=0;I--){let J=!0;for(let G=0;G<v;G++)if(T(l,I+G)!==T(d,G)){J=!1;break}if(J)return I}return-1}u.prototype.includes=function(d,p,m){return this.indexOf(d,p,m)!==-1},u.prototype.indexOf=function(d,p,m){return kt(this,d,p,m,!0)},u.prototype.lastIndexOf=function(d,p,m){return kt(this,d,p,m,!1)};function er(l,d,p,m){p=Number(p)||0;const b=l.length-p;m?(m=Number(m),m>b&&(m=b)):m=b;const y=d.length;m>y/2&&(m=y/2);let g;for(g=0;g<m;++g){const v=parseInt(d.substr(g*2,2),16);if(Fi(v))return g;l[p+g]=v}return g}function Yr(l,d,p,m){return mr(Zr(d,l.length-p),l,p,m)}function ss(l,d,p,m){return mr(Po(d),l,p,m)}function cs(l,d,p,m){return mr(Ui(d),l,p,m)}function as(l,d,p,m){return mr(jo(d,l.length-p),l,p,m)}u.prototype.write=function(d,p,m,b){if(p===void 0)b="utf8",m=this.length,p=0;else if(m===void 0&&typeof p=="string")b=p,m=this.length,p=0;else if(isFinite(p))p=p>>>0,isFinite(m)?(m=m>>>0,b===void 0&&(b="utf8")):(b=m,m=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const y=this.length-p;if((m===void 0||m>y)&&(m=y),d.length>0&&(m<0||p<0)||p>this.length)throw new RangeError("Attempt to write outside buffer bounds");b||(b="utf8");let g=!1;for(;;)switch(b){case"hex":return er(this,d,p,m);case"utf8":case"utf-8":return Yr(this,d,p,m);case"ascii":case"latin1":case"binary":return ss(this,d,p,m);case"base64":return cs(this,d,p,m);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return as(this,d,p,m);default:if(g)throw new TypeError("Unknown encoding: "+b);b=(""+b).toLowerCase(),g=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function us(l,d,p){return d===0&&p===l.length?e.fromByteArray(l):e.fromByteArray(l.slice(d,p))}function go(l,d,p){p=Math.min(l.length,p);const m=[];let b=d;for(;b<p;){const y=l[b];let g=null,v=y>239?4:y>223?3:y>191?2:1;if(b+v<=p){let T,I,J,G;switch(v){case 1:y<128&&(g=y);break;case 2:T=l[b+1],(T&192)===128&&(G=(y&31)<<6|T&63,G>127&&(g=G));break;case 3:T=l[b+1],I=l[b+2],(T&192)===128&&(I&192)===128&&(G=(y&15)<<12|(T&63)<<6|I&63,G>2047&&(G<55296||G>57343)&&(g=G));break;case 4:T=l[b+1],I=l[b+2],J=l[b+3],(T&192)===128&&(I&192)===128&&(J&192)===128&&(G=(y&15)<<18|(T&63)<<12|(I&63)<<6|J&63,G>65535&&G<1114112&&(g=G))}}g===null?(g=65533,v=1):g>65535&&(g-=65536,m.push(g>>>10&1023|55296),g=56320|g&1023),m.push(g),b+=v}return Ii(m)}const Mi=4096;function Ii(l){const d=l.length;if(d<=Mi)return String.fromCharCode.apply(String,l);let p="",m=0;for(;m<d;)p+=String.fromCharCode.apply(String,l.slice(m,m+=Mi));return p}function ho(l,d,p){let m="";p=Math.min(l.length,p);for(let b=d;b<p;++b)m+=String.fromCharCode(l[b]&127);return m}function bo(l,d,p){let m="";p=Math.min(l.length,p);for(let b=d;b<p;++b)m+=String.fromCharCode(l[b]);return m}function _o(l,d,p){const m=l.length;(!d||d<0)&&(d=0),(!p||p<0||p>m)&&(p=m);let b="";for(let y=d;y<p;++y)b+=fs[l[y]];return b}function Oo(l,d,p){const m=l.slice(d,p);let b="";for(let y=0;y<m.length-1;y+=2)b+=String.fromCharCode(m[y]+m[y+1]*256);return b}u.prototype.slice=function(d,p){const m=this.length;d=~~d,p=p===void 0?m:~~p,d<0?(d+=m,d<0&&(d=0)):d>m&&(d=m),p<0?(p+=m,p<0&&(p=0)):p>m&&(p=m),p<d&&(p=d);const b=this.subarray(d,p);return Object.setPrototypeOf(b,u.prototype),b};function Le(l,d,p){if(l%1!==0||l<0)throw new RangeError("offset is not uint");if(l+d>p)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(d,p,m){d=d>>>0,p=p>>>0,m||Le(d,p,this.length);let b=this[d],y=1,g=0;for(;++g<p&&(y*=256);)b+=this[d+g]*y;return b},u.prototype.readUintBE=u.prototype.readUIntBE=function(d,p,m){d=d>>>0,p=p>>>0,m||Le(d,p,this.length);let b=this[d+--p],y=1;for(;p>0&&(y*=256);)b+=this[d+--p]*y;return b},u.prototype.readUint8=u.prototype.readUInt8=function(d,p){return d=d>>>0,p||Le(d,1,this.length),this[d]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(d,p){return d=d>>>0,p||Le(d,2,this.length),this[d]|this[d+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(d,p){return d=d>>>0,p||Le(d,2,this.length),this[d]<<8|this[d+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(d,p){return d=d>>>0,p||Le(d,4,this.length),(this[d]|this[d+1]<<8|this[d+2]<<16)+this[d+3]*16777216},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(d,p){return d=d>>>0,p||Le(d,4,this.length),this[d]*16777216+(this[d+1]<<16|this[d+2]<<8|this[d+3])},u.prototype.readBigUInt64LE=hn(function(d){d=d>>>0,en(d,"offset");const p=this[d],m=this[d+7];(p===void 0||m===void 0)&&nr(d,this.length-8);const b=p+this[++d]*2**8+this[++d]*2**16+this[++d]*2**24,y=this[++d]+this[++d]*2**8+this[++d]*2**16+m*2**24;return BigInt(b)+(BigInt(y)<<BigInt(32))}),u.prototype.readBigUInt64BE=hn(function(d){d=d>>>0,en(d,"offset");const p=this[d],m=this[d+7];(p===void 0||m===void 0)&&nr(d,this.length-8);const b=p*2**24+this[++d]*2**16+this[++d]*2**8+this[++d],y=this[++d]*2**24+this[++d]*2**16+this[++d]*2**8+m;return(BigInt(b)<<BigInt(32))+BigInt(y)}),u.prototype.readIntLE=function(d,p,m){d=d>>>0,p=p>>>0,m||Le(d,p,this.length);let b=this[d],y=1,g=0;for(;++g<p&&(y*=256);)b+=this[d+g]*y;return y*=128,b>=y&&(b-=Math.pow(2,8*p)),b},u.prototype.readIntBE=function(d,p,m){d=d>>>0,p=p>>>0,m||Le(d,p,this.length);let b=p,y=1,g=this[d+--b];for(;b>0&&(y*=256);)g+=this[d+--b]*y;return y*=128,g>=y&&(g-=Math.pow(2,8*p)),g},u.prototype.readInt8=function(d,p){return d=d>>>0,p||Le(d,1,this.length),this[d]&128?(255-this[d]+1)*-1:this[d]},u.prototype.readInt16LE=function(d,p){d=d>>>0,p||Le(d,2,this.length);const m=this[d]|this[d+1]<<8;return m&32768?m|4294901760:m},u.prototype.readInt16BE=function(d,p){d=d>>>0,p||Le(d,2,this.length);const m=this[d+1]|this[d]<<8;return m&32768?m|4294901760:m},u.prototype.readInt32LE=function(d,p){return d=d>>>0,p||Le(d,4,this.length),this[d]|this[d+1]<<8|this[d+2]<<16|this[d+3]<<24},u.prototype.readInt32BE=function(d,p){return d=d>>>0,p||Le(d,4,this.length),this[d]<<24|this[d+1]<<16|this[d+2]<<8|this[d+3]},u.prototype.readBigInt64LE=hn(function(d){d=d>>>0,en(d,"offset");const p=this[d],m=this[d+7];(p===void 0||m===void 0)&&nr(d,this.length-8);const b=this[d+4]+this[d+5]*2**8+this[d+6]*2**16+(m<<24);return(BigInt(b)<<BigInt(32))+BigInt(p+this[++d]*2**8+this[++d]*2**16+this[++d]*2**24)}),u.prototype.readBigInt64BE=hn(function(d){d=d>>>0,en(d,"offset");const p=this[d],m=this[d+7];(p===void 0||m===void 0)&&nr(d,this.length-8);const b=(p<<24)+this[++d]*2**16+this[++d]*2**8+this[++d];return(BigInt(b)<<BigInt(32))+BigInt(this[++d]*2**24+this[++d]*2**16+this[++d]*2**8+m)}),u.prototype.readFloatLE=function(d,p){return d=d>>>0,p||Le(d,4,this.length),t.read(this,d,!0,23,4)},u.prototype.readFloatBE=function(d,p){return d=d>>>0,p||Le(d,4,this.length),t.read(this,d,!1,23,4)},u.prototype.readDoubleLE=function(d,p){return d=d>>>0,p||Le(d,8,this.length),t.read(this,d,!0,52,8)},u.prototype.readDoubleBE=function(d,p){return d=d>>>0,p||Le(d,8,this.length),t.read(this,d,!1,52,8)};function et(l,d,p,m,b,y){if(!u.isBuffer(l))throw new TypeError('"buffer" argument must be a Buffer instance');if(d>b||d<y)throw new RangeError('"value" argument is out of bounds');if(p+m>l.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(d,p,m,b){if(d=+d,p=p>>>0,m=m>>>0,!b){const v=Math.pow(2,8*m)-1;et(this,d,p,m,v,0)}let y=1,g=0;for(this[p]=d&255;++g<m&&(y*=256);)this[p+g]=d/y&255;return p+m},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(d,p,m,b){if(d=+d,p=p>>>0,m=m>>>0,!b){const v=Math.pow(2,8*m)-1;et(this,d,p,m,v,0)}let y=m-1,g=1;for(this[p+y]=d&255;--y>=0&&(g*=256);)this[p+y]=d/g&255;return p+m},u.prototype.writeUint8=u.prototype.writeUInt8=function(d,p,m){return d=+d,p=p>>>0,m||et(this,d,p,1,255,0),this[p]=d&255,p+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(d,p,m){return d=+d,p=p>>>0,m||et(this,d,p,2,65535,0),this[p]=d&255,this[p+1]=d>>>8,p+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(d,p,m){return d=+d,p=p>>>0,m||et(this,d,p,2,65535,0),this[p]=d>>>8,this[p+1]=d&255,p+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(d,p,m){return d=+d,p=p>>>0,m||et(this,d,p,4,4294967295,0),this[p+3]=d>>>24,this[p+2]=d>>>16,this[p+1]=d>>>8,this[p]=d&255,p+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(d,p,m){return d=+d,p=p>>>0,m||et(this,d,p,4,4294967295,0),this[p]=d>>>24,this[p+1]=d>>>16,this[p+2]=d>>>8,this[p+3]=d&255,p+4};function z(l,d,p,m,b){$i(d,m,b,l,p,7);let y=Number(d&BigInt(4294967295));l[p++]=y,y=y>>8,l[p++]=y,y=y>>8,l[p++]=y,y=y>>8,l[p++]=y;let g=Number(d>>BigInt(32)&BigInt(4294967295));return l[p++]=g,g=g>>8,l[p++]=g,g=g>>8,l[p++]=g,g=g>>8,l[p++]=g,p}function Cn(l,d,p,m,b){$i(d,m,b,l,p,7);let y=Number(d&BigInt(4294967295));l[p+7]=y,y=y>>8,l[p+6]=y,y=y>>8,l[p+5]=y,y=y>>8,l[p+4]=y;let g=Number(d>>BigInt(32)&BigInt(4294967295));return l[p+3]=g,g=g>>8,l[p+2]=g,g=g>>8,l[p+1]=g,g=g>>8,l[p]=g,p+8}u.prototype.writeBigUInt64LE=hn(function(d,p=0){return z(this,d,p,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=hn(function(d,p=0){return Cn(this,d,p,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(d,p,m,b){if(d=+d,p=p>>>0,!b){const T=Math.pow(2,8*m-1);et(this,d,p,m,T-1,-T)}let y=0,g=1,v=0;for(this[p]=d&255;++y<m&&(g*=256);)d<0&&v===0&&this[p+y-1]!==0&&(v=1),this[p+y]=(d/g>>0)-v&255;return p+m},u.prototype.writeIntBE=function(d,p,m,b){if(d=+d,p=p>>>0,!b){const T=Math.pow(2,8*m-1);et(this,d,p,m,T-1,-T)}let y=m-1,g=1,v=0;for(this[p+y]=d&255;--y>=0&&(g*=256);)d<0&&v===0&&this[p+y+1]!==0&&(v=1),this[p+y]=(d/g>>0)-v&255;return p+m},u.prototype.writeInt8=function(d,p,m){return d=+d,p=p>>>0,m||et(this,d,p,1,127,-128),d<0&&(d=255+d+1),this[p]=d&255,p+1},u.prototype.writeInt16LE=function(d,p,m){return d=+d,p=p>>>0,m||et(this,d,p,2,32767,-32768),this[p]=d&255,this[p+1]=d>>>8,p+2},u.prototype.writeInt16BE=function(d,p,m){return d=+d,p=p>>>0,m||et(this,d,p,2,32767,-32768),this[p]=d>>>8,this[p+1]=d&255,p+2},u.prototype.writeInt32LE=function(d,p,m){return d=+d,p=p>>>0,m||et(this,d,p,4,2147483647,-2147483648),this[p]=d&255,this[p+1]=d>>>8,this[p+2]=d>>>16,this[p+3]=d>>>24,p+4},u.prototype.writeInt32BE=function(d,p,m){return d=+d,p=p>>>0,m||et(this,d,p,4,2147483647,-2147483648),d<0&&(d=4294967295+d+1),this[p]=d>>>24,this[p+1]=d>>>16,this[p+2]=d>>>8,this[p+3]=d&255,p+4},u.prototype.writeBigInt64LE=hn(function(d,p=0){return z(this,d,p,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=hn(function(d,p=0){return Cn(this,d,p,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function So(l,d,p,m,b,y){if(p+m>l.length)throw new RangeError("Index out of range");if(p<0)throw new RangeError("Index out of range")}function Fe(l,d,p,m,b){return d=+d,p=p>>>0,b||So(l,d,p,4),t.write(l,d,p,m,23,4),p+4}u.prototype.writeFloatLE=function(d,p,m){return Fe(this,d,p,!0,m)},u.prototype.writeFloatBE=function(d,p,m){return Fe(this,d,p,!1,m)};function vo(l,d,p,m,b){return d=+d,p=p>>>0,b||So(l,d,p,8),t.write(l,d,p,m,52,8),p+8}u.prototype.writeDoubleLE=function(d,p,m){return vo(this,d,p,!0,m)},u.prototype.writeDoubleBE=function(d,p,m){return vo(this,d,p,!1,m)},u.prototype.copy=function(d,p,m,b){if(!u.isBuffer(d))throw new TypeError("argument should be a Buffer");if(m||(m=0),!b&&b!==0&&(b=this.length),p>=d.length&&(p=d.length),p||(p=0),b>0&&b<m&&(b=m),b===m||d.length===0||this.length===0)return 0;if(p<0)throw new RangeError("targetStart out of bounds");if(m<0||m>=this.length)throw new RangeError("Index out of range");if(b<0)throw new RangeError("sourceEnd out of bounds");b>this.length&&(b=this.length),d.length-p<b-m&&(b=d.length-p+m);const y=b-m;return this===d&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(p,m,b):Uint8Array.prototype.set.call(d,this.subarray(m,b),p),y},u.prototype.fill=function(d,p,m,b){if(typeof d=="string"){if(typeof p=="string"?(b=p,p=0,m=this.length):typeof m=="string"&&(b=m,m=this.length),b!==void 0&&typeof b!="string")throw new TypeError("encoding must be a string");if(typeof b=="string"&&!u.isEncoding(b))throw new TypeError("Unknown encoding: "+b);if(d.length===1){const g=d.charCodeAt(0);(b==="utf8"&&g<128||b==="latin1")&&(d=g)}}else typeof d=="number"?d=d&255:typeof d=="boolean"&&(d=Number(d));if(p<0||this.length<p||this.length<m)throw new RangeError("Out of range index");if(m<=p)return this;p=p>>>0,m=m===void 0?this.length:m>>>0,d||(d=0);let y;if(typeof d=="number")for(y=p;y<m;++y)this[y]=d;else{const g=u.isBuffer(d)?d:u.from(d,b),v=g.length;if(v===0)throw new TypeError('The value "'+d+'" is invalid for argument "value"');for(y=0;y<m-p;++y)this[y+p]=g[y%v]}return this};const tr={};function Qr(l,d,p){tr[l]=class extends p{constructor(){super(),Object.defineProperty(this,"message",{value:d.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${l}]`,this.stack,delete this.name}get code(){return l}set code(b){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:b,writable:!0})}toString(){return`${this.name} [${l}]: ${this.message}`}}}Qr("ERR_BUFFER_OUT_OF_BOUNDS",function(l){return l?`${l} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Qr("ERR_INVALID_ARG_TYPE",function(l,d){return`The "${l}" argument must be of type number. Received type ${typeof d}`},TypeError),Qr("ERR_OUT_OF_RANGE",function(l,d,p){let m=`The value of "${l}" is out of range.`,b=p;return Number.isInteger(p)&&Math.abs(p)>2**32?b=Ro(String(p)):typeof p=="bigint"&&(b=String(p),(p>BigInt(2)**BigInt(32)||p<-(BigInt(2)**BigInt(32)))&&(b=Ro(b)),b+="n"),m+=` It must be ${d}. Received ${b}`,m},RangeError);function Ro(l){let d="",p=l.length;const m=l[0]==="-"?1:0;for(;p>=m+4;p-=3)d=`_${l.slice(p-3,p)}${d}`;return`${l.slice(0,p)}${d}`}function Kt(l,d,p){en(d,"offset"),(l[d]===void 0||l[d+p]===void 0)&&nr(d,l.length-(p+1))}function $i(l,d,p,m,b,y){if(l>p||l<d){const g=typeof d=="bigint"?"n":"";let v;throw d===0||d===BigInt(0)?v=`>= 0${g} and < 2${g} ** ${(y+1)*8}${g}`:v=`>= -(2${g} ** ${(y+1)*8-1}${g}) and < 2 ** ${(y+1)*8-1}${g}`,new tr.ERR_OUT_OF_RANGE("value",v,l)}Kt(m,b,y)}function en(l,d){if(typeof l!="number")throw new tr.ERR_INVALID_ARG_TYPE(d,"number",l)}function nr(l,d,p){throw Math.floor(l)!==l?(en(l,p),new tr.ERR_OUT_OF_RANGE("offset","an integer",l)):d<0?new tr.ERR_BUFFER_OUT_OF_BOUNDS:new tr.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${d}`,l)}const ds=/[^+/0-9A-Za-z-_]/g;function Ci(l){if(l=l.split("=")[0],l=l.trim().replace(ds,""),l.length<2)return"";for(;l.length%4!==0;)l=l+"=";return l}function Zr(l,d){d=d||1/0;let p;const m=l.length;let b=null;const y=[];for(let g=0;g<m;++g){if(p=l.charCodeAt(g),p>55295&&p<57344){if(!b){if(p>56319){(d-=3)>-1&&y.push(239,191,189);continue}else if(g+1===m){(d-=3)>-1&&y.push(239,191,189);continue}b=p;continue}if(p<56320){(d-=3)>-1&&y.push(239,191,189),b=p;continue}p=(b-55296<<10|p-56320)+65536}else b&&(d-=3)>-1&&y.push(239,191,189);if(b=null,p<128){if((d-=1)<0)break;y.push(p)}else if(p<2048){if((d-=2)<0)break;y.push(p>>6|192,p&63|128)}else if(p<65536){if((d-=3)<0)break;y.push(p>>12|224,p>>6&63|128,p&63|128)}else if(p<1114112){if((d-=4)<0)break;y.push(p>>18|240,p>>12&63|128,p>>6&63|128,p&63|128)}else throw new Error("Invalid code point")}return y}function Po(l){const d=[];for(let p=0;p<l.length;++p)d.push(l.charCodeAt(p)&255);return d}function jo(l,d){let p,m,b;const y=[];for(let g=0;g<l.length&&!((d-=2)<0);++g)p=l.charCodeAt(g),m=p>>8,b=p%256,y.push(b),y.push(m);return y}function Ui(l){return e.toByteArray(Ci(l))}function mr(l,d,p,m){let b;for(b=0;b<m&&!(b+p>=d.length||b>=l.length);++b)d[b+p]=l[b];return b}function $t(l,d){return l instanceof d||l!=null&&l.constructor!=null&&l.constructor.name!=null&&l.constructor.name===d.name}function Fi(l){return l!==l}const fs=function(){const l="0123456789abcdef",d=new Array(256);for(let p=0;p<16;++p){const m=p*16;for(let b=0;b<16;++b)d[m+b]=l[p]+l[b]}return d}();function hn(l){return typeof BigInt>"u"?ps:l}function ps(){throw new Error("BigInt not supported")}}(Lo)),Lo}var dp=Pl(),jl=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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.JSONCodec=class extends f.Codec{constructor(){super(...arguments);s(this,"encoder",new TextEncoder);s(this,"decoder",new TextDecoder)}decode(t,n){const o=this.decoder.decode(t);if(!n||!n.constructor)return JSON.parse(o);const i=JSON.parse(o);if(typeof i!="object"&&typeof i!="function"||i==null)return i;switch(n.name){case"Object":return i}return this.decorateAny(n,i)}decorateAny(t,n){const o=t instanceof Un,i=o?t.raw:t;if(!i)return n;switch(i){case Map:if(n==null)return new Map;if(!o||t.parameters.length<1)return new Map(Object.entries(n));const c=new Map;return Object.keys(n).forEach(S=>{c.set(this.decorateAny(t.parameters[0],S),this.decorateAny(t.parameters[1],n[S]))}),c;case Array:return n==null?[]:!o||t.parameters.length<1?n:n.map(S=>this.decorateAny(t.parameters[0],S));case Re:if(n==null)return null;const u=new i;if(!o||t.parameters.length<1)return Object.assign(u,n);Object.assign(u,n);const P=[];for(let S of u.data||[])P.push(this.decorateAny(t.parameters[0],S));return u.data=P,u;case String:case Number:case Boolean:case Object:return n;case Date:return n==null||n<1?null:new Date(n);case Uint8Array:return n==null?null:n instanceof Uint8Array?n:dp.Buffer.from(n,"base64");default:if(n==null)return null;const R=new i;return Object.keys(R).forEach((S,E)=>{const U=Ee.metadata(Fn,i,S);if(!U){Reflect.set(R,S,n[S]);return}const N=n[S]!=null?n[S]:n[U.name];Reflect.set(R,S,this.decorateAny(U.kind,N))}),R}}encode(t){return this.encoder.encode(JSON.stringify(t,(n,o)=>{if(o==null||Array.isArray(o))return o;if(!Ee.annotated(o.constructor))return this.encodeAny(o);const i=new Map;for(let c in o){const u=Ee.metadata(Fn,o.constructor,c);u&&u.name&&u.name.length>0&&u.name!=c&&i.set(c,u.name),((u==null?void 0:u.kind)==Uint8Array||(u==null?void 0:u.kind)==Date||(u==null?void 0:u.kind)==Map)&&Reflect.set(o,c,this.encodeAny(Reflect.get(o,c)))}return i.size<1?this.encodeAny(o):(i.forEach((c,u)=>{const P=Reflect.get(o,u);Reflect.deleteProperty(o,u),Reflect.set(o,c,P)}),this.encodeAny(o))}))}encodeAny(t){return t instanceof Uint8Array?dp.Buffer.from(t).toString("base64"):t instanceof Date?t.getTime():t instanceof Map?Object.fromEntries(t):t}uint8ify(t){return this.encoder.encode(t)}stringify(t){return this.decoder.decode(t)}},f.JSONCodec=jl([H(f.Codec.JSON)],f.JSONCodec);var fr=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},Pi=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Yi;f.Compiler=class{},f.Compiler=fr([H("mesh")],f.Compiler);function wl(r){return{}}f.TSCompiler=(Zn=class extends f.Compiler{compile(e,t){}intype(e){return Yi.parameters.computeIfy(e,t=>{var n;class o{constructor(){s(this,"attachments",new Map)}getAttachments(){return this.attachments}map(){return Object.assign(new Map,this)}setAttachments(c){(c||{}).forEach((u,P)=>this.attachments.set(P,u))}getArguments(){return t.getParameters().map(c=>{var u;return(u=Object.getOwnPropertyDescriptor(this,c.name))==null?void 0:u.value})}setArguments(c){const u=ze.load(f.Codec).getDefault();t.getParameters().forEach((P,R)=>{if(c&&c.length>P.index&&!(c[P.index]instanceof Bi)){const S=c[P.index];if(S==null)return;if(S instanceof P.kind&&!(P.kind instanceof Un)){Reflect.set(this,P.name,S);return}switch(P.kind){case Map:case Array:case String:case Number:case Boolean:case Object:case Date:case Uint8Array:Reflect.set(this,P.name,S);break;default:const E=u.encode(S),U=u.decode(E,P.kind);Reflect.set(this,P.name,U)}}})}}return fr([a(-1,"attachments",Map),Pi("design:type",typeof(n=typeof Map<"u"&&Map)=="function"?n:Object)],o.prototype,"attachments",void 0),o})}retype(e){return Yi.returns.computeIfy(e,t=>{class n{constructor(){s(this,"code","");s(this,"message","");s(this,"content");s(this,"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 fr([a(0),Pi("design:type",String)],n.prototype,"code",void 0),fr([a(5),Pi("design:type",String)],n.prototype,"message",void 0),fr([a(10,"content",t.getReturnType()),Pi("design:type",Object)],n.prototype,"content",void 0),fr([a(15,"cause",vt),Pi("design:type",Object)],n.prototype,"cause",void 0),n})}},Yi=Zn,s(Zn,"parameters",new q),s(Zn,"returns",new q),Zn),f.TSCompiler=Yi=fr([H("mesh")],f.TSCompiler);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 u=r.length-1;u>=0;u--)(c=r[u])&&(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.Consumer=(Xr=class{},s(Xr,"HTTP","http"),s(Xr,"GRPC","grpc"),s(Xr,"TCP","tcp"),s(Xr,"MQTT","mqtt"),Xr),f.Consumer=El([H(f.Consumer.HTTP)],f.Consumer);class Qi{constructor(e){s(this,"servers",new at);s(this,"availableAddrs",new at);for(let t of(e||"").split(","))t&&t.trim().length>0&&!this.availableAddrs.includes(t)&&(this.servers.push(new fp(!0,t)),this.availableAddrs.push(t))}any(){const e=this.availableAddrs;return!e||e.length<1?"":e[Math.floor(Math.random()*e.length)]}}class fp{constructor(e,t){s(this,"available");s(this,"address");this.available=e,this.address=t}}class Tl{constructor(e){s(this,"value");s(this,"fn");this.fn=e}get(){return this.value||(this.value=this.fn()),this.value}}const mo=class mo{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 newEntity(e){if(!e)return new Me;const t=ze.load(f.Codec),n=new Me;return n.codec=t.defaultName(),n.schema="",n.buffer=t.getDefault().encode(e),n}static newCacheEntity(e,t,n){const o=mo.newEntity(t),i=new pt;return i.version="1.0.0",i.entity=o,i.timestamp=new Date().getTime(),i.duration=n,i.key=e,i}static readObject(e){return!e.buffer||e.buffer.length<1?null:ze.load(f.Codec).get(e.codec||f.Codec.JSON).decode(this.buffer)}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 vt}static ofCause(e,t,n){throw new Error}static hexString(e){const t=new TextEncoder().encode(e),n="0123456789abcdef";let o="";for(const i of t){const c=i;o+=n[c>>4],o+=n[c&15]}return o}};s(mo,"MESH_ADDRESS",new Tl(()=>typeof process<"u"&&process.env.MESH_ADDRESS?new Qi(process.env.MESH_ADDRESS):typeof window<"u"?new Qi(window.location.origin):new Qi("https://127.0.0.1")));let pe=mo;var Nl=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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 ji extends Bi{constructor(){super(...arguments);s(this,"traceId","");s(this,"spanId","");s(this,"timestamp",0);s(this,"runMode",0);s(this,"urn","");s(this,"consumer",new Hn);s(this,"calls",0);s(this,"attachments",new Map);s(this,"attributes",new Map);s(this,"principals",new _s)}static create(){const t=new ji;return t.traceId=pe.traceId(),t.spanId=pe.spanId("",0),t.timestamp=new Date().getTime(),t.runMode=0,t.urn="",t.consumer=new Hn,t}getAttachments(){return this.attachments}getAttribute(t){return this.attributes.get(t.name)}getAttributes(){return this.attributes}getConsumer(t){return this.consumer}getPrincipals(){return this.principals}getProvider(t){return new Hn}getRunMode(){return this.runMode}getSpanId(){return this.spanId}getTimestamp(){return this.timestamp}getTraceId(){return this.traceId}getUrn(){return this.urn}setAttribute(t,n){this.attributes.set(t.name,n)}resume(){this.calls++;const t=new ji;return t.traceId=this.getTraceId(),t.spanId=pe.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((n,o)=>t.attachments.set(n,o)),this.getAttributes()&&this.getAttributes().forEach((n,o)=>t.attributes.set(n,o)),this.getPrincipals()&&this.getPrincipals().forEach(n=>t.principals.push(n)),t}rewriteContext(t){t.getTraceId()&&(this.traceId=t.getTraceId()),t.getSpanId()&&(this.spanId=t.getSpanId()),t.getTimestamp()&&t.getTimestamp()>0&&(this.timestamp=t.getTimestamp()),t.getRunMode()&&t.getRunMode()>0&&(this.runMode=t.getRunMode()),t.getUrn()&&(this.urn=t.getUrn()),t.getConsumer(this)&&(this.consumer=t.getConsumer(this)),this.getAttachments()&&this.getAttachments().forEach((n,o)=>this.attachments.set(n,o)),this.getAttributes()&&this.getAttributes().forEach((n,o)=>this.attributes.set(n,o)),this.getPrincipals()&&this.getPrincipals().forEach(n=>this.principals.push(n))}rewriteURN(t){this.urn=t}}f.MeshContextProvider=class extends f.ContextProvider{context(){return ji.create()}},f.MeshContextProvider=Nl([H("mesh")],f.MeshContextProvider);var Al=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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.Eden=class{},f.Eden=Al([H("mesh")],f.Eden);class Ze{}s(Ze,"REMOTE",new rr("mesh.mpc.address")),s(Ze,"REMOTE_NAME",new rr("mesh.mpc.remote.name")),s(Ze,"INVOCATION",new rr("mesh.invocation")),s(Ze,"UNAME",new rr("mesh.mpc.uname")),s(Ze,"CONSUMER",new rr("mesh.mpc.consumer")),s(Ze,"CODEC",new rr("mesh.mpc.codec"));class Mn{constructor(e,t){s(this,"code");s(this,"name");this.code=e,this.name=t}}const ge=class ge{static ofProto(e){for(let t of ge.PROTO)if(t.code==e)return t;return ge.HTTP}static ofCodec(e){for(let t of ge.CODEC)if(t.code==e)return t;return ge.JSON}static ofName(e){for(let t of ge.PROTO)if(t.name==e)return t;for(let t of ge.CODEC)if(t.name==e)return t;return ge.HTTP}};s(ge,"HTTP",new Mn("00",f.Consumer.HTTP)),s(ge,"GRPC",new Mn("01",f.Consumer.GRPC)),s(ge,"MQTT",new Mn("02",f.Consumer.MQTT)),s(ge,"TCP",new Mn("03",f.Consumer.TCP)),s(ge,"JSON",new Mn("00",f.Codec.JSON)),s(ge,"PROTOBUF",new Mn("01",f.Codec.PROTOBUF)),s(ge,"XML",new Mn("02",f.Codec.XML)),s(ge,"THRIFT",new Mn("03",f.Codec.THRIFT)),s(ge,"YAML",new Mn("04",f.Codec.YAML)),s(ge,"PROTO",[ge.HTTP,ge.GRPC,ge.MQTT,ge.TCP]),s(ge,"CODEC",[ge.JSON,ge.PROTOBUF,ge.XML,ge.THRIFT,ge.YAML]);let mn=ge;const Ml=r=>{const e=_();return e.setAttribute(Ze.CONSUMER,ze.load(f.Consumer).get(r)),e},Il=r=>{const e=_();return e.setAttribute(Ze.CODEC,ze.load(f.Codec).get(r)),e};class pp{constructor(e,t){s(this,"inspector");s(this,"reference");s(this,"service");this.reference=new cn,this.reference.urn=t.toString(),this.reference.namespace="",this.reference.name=t.name,this.reference.version=t.flag.version,this.reference.proto=mn.ofProto(t.flag.proto).name,this.reference.codec=mn.ofCodec(t.flag.codec).name,this.reference.flags=0,this.reference.timeout=parseInt(Li.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 wt,this.inspector=new lp(t)}inflect(e){return new Ho}inspect(e){return this.inspector}intype(e){return Ho}reflect(e){return new qo}retype(e){return qo}schema(e){return this.reference}}class lp{constructor(e){s(this,"urn");this.urn=e}getType(){return Object}getAnnotation(e){}getName(){return this.urn.name}getParameters(){return[]}getReturnType(){return new Un(Map)}getExecutable(){return()=>{}}getSymbol(){return this.urn.name}invoke(e,t){}}class Ho extends Map{map(){return this}getArguments(){const e=[];return super.forEach((t,n)=>{n!="attachments"&&e.push(t)}),e}getAttachments(){var o;const e=((o=Object.getOwnPropertyDescriptor(this,"attachments"))==null?void 0:o.value)||new Map;if(e instanceof Map)return e;const t=ze.load(f.Codec).get(f.Codec.JSON),n=t.decode(t.encode(e),Map);return this.setAttachments(n),n}setArguments(e){}setAttachments(e){Object.assign(this,{attachments:vt})}}class qo extends Map{getCause(){var n;const e=(n=Object.getOwnPropertyDescriptor(this,"cause"))==null?void 0:n.value;if(!e||e instanceof vt)return e;const t=ze.load(f.Codec).get(f.Codec.JSON);return t.decode(t.encode(e),vt)}getCode(){var e;return(e=Object.getOwnPropertyDescriptor(this,"code"))==null?void 0:e.value}getContent(){var e;return(e=Object.getOwnPropertyDescriptor(this,"content"))==null?void 0:e.value}getMessage(){var e;return((e=Object.getOwnPropertyDescriptor(this,"message"))==null?void 0:e.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 $l=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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 yp="PROVIDER",Zi="CONSUMER";f.Filter=class{},f.Filter=$l([H("*")],f.Filter);function zo(r,e){const t=ze.load(f.Filter).list().filter(n=>{const o=Ee.metadata(Xt,n==null?void 0:n.constructor,n==null?void 0:n.constructor);return!o||o.pattern==""||(o==null?void 0:o.pattern)==e}).sort((n,o)=>{var u,P;const i=((u=Ee.metadata(Xt,n==null?void 0:n.constructor,n==null?void 0:n.constructor))==null?void 0:u.priority)||0,c=((P=Ee.metadata(Xt,o==null?void 0:o.constructor,o==null?void 0:o.constructor))==null?void 0:P.priority)||0;return i==c?0:i<c?-1:1});return Cl(r,t)}function Cl(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,u){return o.invoke(c,i,u)}}}return t}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 u=r.length-1;u>=0;u--)(c=r[u])&&(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 Fl{constructor(){s(this,"beforeHooks",new q);s(this,"successHooks",new q);s(this,"failureHooks",new q)}}const Wr=()=>{const r=gr();return r.Mesh??(r.Mesh=new Fl),r.Mesh};class kl{onBefore(e,t){Wr().beforeHooks.set(e,t)}onSuccess(e,t){Wr().successHooks.set(e,t)}onFailure(e,t){Wr().failureHooks.set(e,t)}before(){return Wr().beforeHooks}success(){return Wr().successHooks}failure(){return Wr().failureHooks}}const wi=new kl;f.HookFilter=class extends f.Filter{async invoke(e,t,n){try{wi.before().forEach((i,c)=>i(e,n));const o=await t.run(e,n);return wi.success().forEach((i,c)=>i(e,n,o)),o}catch(o){throw bs(o)?wi.failure().forEach((i,c)=>i(e,n,o)):wi.failure().forEach((i,c)=>i(e,n,h.SYSTEM_ERROR)),o}}},f.HookFilter=Ul([H("hook",Zi)],f.HookFilter);class mp{constructor(e,t,n,o){s(this,"proxy");s(this,"inspector");s(this,"parameters");s(this,"execution");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}}const $n=class $n{constructor(){s(this,"domain","");s(this,"mdc","");s(this,"flag",new Xn);s(this,"name","")}static from(e){const t=new $n;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=Xn.from(n.splice(0,1).join("")),t.name=n.join("."),t)}static urn(e){const t=new $n;return t.mdc=this.LocalMDC,t.flag=Xn.from("0001000000000000000000000000000000000"),t.name=e,t.domain=this.MESH_DOMAIN,t.toString()}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(pe.anyone(this.domain,$n.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}};s($n,"CN","firmer"),s($n,"MESH_DOMAIN",$n.CN+".tech"),s($n,"LocalMDC","XX00000000000000");let In=$n;class Xn{constructor(){s(this,"v","00");s(this,"proto","00");s(this,"codec","00");s(this,"version","000000");s(this,"zone","00");s(this,"cluster","00");s(this,"cell","00");s(this,"group","00");s(this,"address","000000000000");s(this,"port","00000")}static from(e){if(!e)return new Xn;const t=new Xn;return t.v=pe.substring(e,0,2),t.proto=pe.substring(e,2,2),t.codec=pe.substring(e,4,2),t.version=this.reduce(pe.substring(e,6,6),2),t.zone=pe.substring(e,12,2),t.cluster=pe.substring(e,14,2),t.cell=pe.substring(e,16,2),t.group=pe.substring(e,18,2),t.address=this.reduce(pe.substring(e,20,12),3),t.port=this.reduce(pe.substring(e,32,5),5),t}toString(){const e=this.padding(pe.anyone(this.v,""),2),t=this.padding(pe.anyone(this.proto,""),2),n=this.padding(pe.anyone(this.codec,""),2),o=this.paddingChain(pe.anyone(this.version,""),2,3),i=this.padding(pe.anyone(this.zone,""),2),c=this.padding(pe.anyone(this.cluster,""),2),u=this.padding(pe.anyone(this.cell,""),2),P=this.padding(pe.anyone(this.group,""),2),R=this.paddingChain(pe.anyone(this.address,""),3,4),S=this.padding(pe.anyone(this.port,""),5);return`${e}${t}${n}${o}${i}${c}${u}${P}${R}${S}`}padding(e,t){const n=e.replace(".","");return n.length==t?n:n.length<t?pe.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 gp{constructor(e){s(this,"macro");s(this,"invoker");this.macro=e,this.invoker=zo(this,Zi)}context(e){if(!e||e.length<1)return _();for(let t of e)if(t instanceof Bi)return t;return _()}invoke(e,t,n){return new Promise(async(o,i)=>{try{const c=this.context(n),u=this.referExecution(c,t),P=this.rewriteURN(c,u);c.rewriteURN(P),c.setAttribute(Ze.REMOTE,this.rewriteAddress(P));const R=u.inflect(c);R.setArguments(n),R.setAttachments(new Map);const S=new mp(this,t,R,u);c.setAttribute(Ze.INVOCATION,S),o(await this.invoker.run(c,S))}catch(c){i(ri(c))}})}async run(e,t){const n=this.referExecution(e,t.getInspector(e)),o=ze.load(f.Consumer),i=e.getAttribute(Ze.CONSUMER)??o.getDefault(),c=pe.anyone(e.getAttribute(Ze.REMOTE),pe.MESH_ADDRESS.get().any()),u=n.schema(e).codec||mn.JSON.name,P=ze.load(f.Codec),R=e.getAttribute(Ze.CODEC)??P.get(u),S=R.encode(t.getParameters(e)),E=mn.ofName(o.defaultName()).code,U=mn.ofName(P.defaultName()).code,N=In.from(e.getUrn()).resetFlag(E,U).toString(),w=await i.consume(e,c,N,n,S);return await this.deserialize(e,n,R,w)}deserialize(e,t,n,o){return new Promise((i,c)=>{try{const u=t.retype(e),P=n.decode(o,u);if(P.getCause()){c(ri(P.getCause()));return}if(h.SUCCESS.getCode()!=P.getCode()){c(P);return}i(P.getContent())}catch(u){c(ri(u))}})}referExecution(e,t){const o=ze.load(f.Eden).getDefault().refer(e,t.getAnnotation(ke),t.getType(),t);if(o)return o;throw new Error(`Method ${t.getName()} cant be compatible`)}rewriteURN(e,t){var u;const n=(u=e.getPrincipals().peek())==null?void 0:u.id,o=e.getAttribute(Ze.UNAME),i=e.getAttribute(Ze.REMOTE_NAME);if(!n&&!o&&!i)return t.schema(e).urn;const c=In.from(t.schema(e).urn);return n&&n!=""&&(c.mdc=n),o&&o!=""&&(c.name=o),i&&i!=""&&(c.name=c.name.replace("${mesh.name}",i)),c.toString()}rewriteAddress(e){return pe.MESH_ADDRESS.get().any()}}var Dl=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},Go;f.ServiceProxy=Go=class extends f.MethodProxy{proxy(e){return Go.proxy(e)}static proxy(e){return this.doProxy(e,O(""))}static doProxy(e,t){return ti.newProxyInstance(e,new gp(t))}},f.ServiceProxy=Go=Dl([H("mesh")],f.ServiceProxy);class xl{constructor(e){s(this,"service");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(u=>n(u)).catch(u=>o(u));return}n(c)}catch(i){o(i)}})}}class hp{constructor(e){s(this,"invoker");this.invoker=zo(new xl(e),yp)}run(e,t){return this.invoker.run(e,t)}}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 u=r.length-1;u>=0;u--)(c=r[u])&&(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 Ll{constructor(e,t,n){s(this,"making");s(this,"kind");s(this,"service");this.making=e,this.kind=t,this.service=n}}class Hl{constructor(e,t){s(this,"metadata");s(this,"reference");s(this,"proxy");this.metadata=e,this.reference=t,this.proxy=f.ServiceProxy.doProxy(t,e)}}class ql{constructor(e,t,n,o,i){s(this,"urn");s(this,"kind");s(this,"method");s(this,"target");s(this,"resource");s(this,"inspector");s(this,"invoker");s(this,"__intype");s(this,"__retype");this.urn=e,this.kind=t,this.method=n,this.target=o,this.resource=i,this.inspector=n,this.invoker=new hp(o),this.__intype=ze.load(f.Compiler).getDefault().intype(n),this.__retype=ze.load(f.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}}f.MeshEden=class extends f.Eden{constructor(){super(...arguments);s(this,"providers",new q);s(this,"consumers",new q);s(this,"indies",new q);s(this,"services",new q);s(this,"references",new q)}define(t,n,o){return this.makeConsumer(t,n,o).proxy}store(t,n,o){this.providers.set(n,new Ll(!1,n,o))}infer(t,n){const o=In.from(n),i=this.makeServiceExecution(this.getEnviron(t)),c=i==null?void 0:i.get(o.name);if(c)return c;for(let u of i.entries())if(o.matchName(u[0]))return u[1];return new pp(t,o)}refer(t,n,o,i){const c=this.makeConsumer(t,n,o),u=this.getEnviron(t),P=this.indies.computeIfy(o,R=>new q).computeIfy(n,R=>{const S=new q;return this.getMethods(t,o).forEach((E,U)=>E.forEach(N=>{const w=this.makeMethodAsReference(u,n,U,N),M=new ql(w.urn,o,N,c.proxy,w);this.references.set(w.urn,M),S.set(N,M)})),S}).get(i);if(P)return P;throw new Error(`Method ${i.getName()} cant be compatible`)}inferTypes(t){const n=[];for(let o of this.providers)n.push(o[1].kind);return n}referTypes(t){const n=[];for(let o of this.consumers.keys())n.push(o);return n}makeConsumer(t,n,o){return this.consumers.computeIfy(o,i=>new q).computeIfy(n,i=>new Hl(n,o))}makeMethodAsReference(t,n,o,i){var u,P,R,S,E,U,N,w,M,A,W,V,te;const c=new cn;return c.namespace=o.name,c.name=i.getName(),c.version=((u=i.getAnnotation(ke))==null?void 0:u.version)||"",c.proto=((P=i.getAnnotation(ke))==null?void 0:P.proto)||"",c.codec=((R=i.getAnnotation(ke))==null?void 0:R.codec)||"",c.flags=((S=i.getAnnotation(ke))==null?void 0:S.flags)||0,c.timeout=((E=i.getAnnotation(ke))==null?void 0:E.timeout)||12e3,c.retries=((U=i.getAnnotation(ke))==null?void 0:U.retries)||0,c.mdc=((N=i.getAnnotation(ke))==null?void 0:N.mdc)||"",c.zone=((w=i.getAnnotation(ke))==null?void 0:w.zone)||"",c.cluster=((M=i.getAnnotation(ke))==null?void 0:M.cluster)||"",c.cell=((A=i.getAnnotation(ke))==null?void 0:A.cell)||"",c.group=((W=i.getAnnotation(ke))==null?void 0:W.group)||"",c.address=((V=i.getAnnotation(ke))==null?void 0:V.address)||"",c.urn=this.getURN(((te=i.getAnnotation(ke))==null?void 0:te.name)||"",wt,t),c}getURN(t,n,o){const i=new In;return i.domain=In.MESH_DOMAIN,i.mdc=pe.anyone(n.mdc,o.mdc),i.name=t,i.flag=this.getURNFlag(n),i.toString()}getURNFlag(t){const n=(t.address||"").split(":"),o=new Xn;return o.v="00",o.proto=mn.ofName(t.proto).code,o.codec=mn.ofName(t.codec).code,o.version=t.version,o.zone=t.zone,o.cluster=t.cluster,o.cell=t.cell,o.group=t.group,o.address=n.length>0?n[0]:"",o.port=n.length>1?n[1]:"",o}getMethods(t,n){const o=ti.getMethods(n),i=new q;return i.set(n,o),i}getEnviron(t){const n=new qe;return n.mdc=In.LocalMDC,n}makeServiceExecution(t){for(let n of this.providers)n[1].making;return this.services}},f.MeshEden=Bl([H("mesh")],f.MeshEden);var zl=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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 Wo="mock";f.MockFilter=class extends f.Filter{async invoke(e,t,n){if(!xi.Mock.matches(e.getRunMode())&&!ki.Mock.enable())return await t.run(e,n);const o=ze.load(n.getInspector(e).getType()).want(Wo);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))}},f.MockFilter=zl([H(Wo,Zi)],f.MockFilter);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 u=r.length-1;u>=0;u--)(c=r[u])&&(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.Provider=class{},f.Provider=Gl([H(f.Consumer.GRPC)],f.Provider);var Wl=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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.GRPCConsumer=class extends f.Consumer{start(){}close(){}consume(e,t,n,o,i){return Promise.reject(h.URN_NOT_PERMIT)}},f.GRPCConsumer=Wl([H(f.Consumer.GRPC)],f.GRPCConsumer);var Vl=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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.GRPCProvider=class extends f.Provider{start(){}close(){}},f.GRPCProvider=Vl([H(f.Consumer.GRPC)],f.GRPCProvider);function bp(r,e){return function(){return r.apply(e,arguments)}}const{toString:Jl}=Object.prototype,{getPrototypeOf:Vo}=Object,{iterator:eo,toStringTag:_p}=Symbol,to=(r=>e=>{const t=Jl.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Zt=r=>(r=r.toLowerCase(),e=>to(e)===r),no=r=>e=>typeof e===r,{isArray:Vr}=Array,Ei=no("undefined");function Kl(r){return r!==null&&!Ei(r)&&r.constructor!==null&&!Ei(r.constructor)&&At(r.constructor.isBuffer)&&r.constructor.isBuffer(r)}const Op=Zt("ArrayBuffer");function Xl(r){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(r):e=r&&r.buffer&&Op(r.buffer),e}const Yl=no("string"),At=no("function"),Sp=no("number"),ro=r=>r!==null&&typeof r=="object",Ql=r=>r===!0||r===!1,io=r=>{if(to(r)!=="object")return!1;const e=Vo(r);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(_p in r)&&!(eo in r)},Zl=Zt("Date"),ey=Zt("File"),ty=Zt("Blob"),ny=Zt("FileList"),ry=r=>ro(r)&&At(r.pipe),iy=r=>{let e;return r&&(typeof FormData=="function"&&r instanceof FormData||At(r.append)&&((e=to(r))==="formdata"||e==="object"&&At(r.toString)&&r.toString()==="[object FormData]"))},oy=Zt("URLSearchParams"),[sy,cy,ay,uy]=["ReadableStream","Request","Response","Headers"].map(Zt),dy=r=>r.trim?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ti(r,e,{allOwnKeys:t=!1}={}){if(r===null||typeof r>"u")return;let n,o;if(typeof r!="object"&&(r=[r]),Vr(r))for(n=0,o=r.length;n<o;n++)e.call(null,r[n],n,r);else{const i=t?Object.getOwnPropertyNames(r):Object.keys(r),c=i.length;let u;for(n=0;n<c;n++)u=i[n],e.call(null,r[u],u,r)}}function vp(r,e){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 pr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Rp=r=>!Ei(r)&&r!==pr;function Jo(){const{caseless:r}=Rp(this)&&this||{},e={},t=(n,o)=>{const i=r&&vp(e,o)||o;io(e[i])&&io(n)?e[i]=Jo(e[i],n):io(n)?e[i]=Jo({},n):Vr(n)?e[i]=n.slice():e[i]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&Ti(arguments[n],t);return e}const fy=(r,e,t,{allOwnKeys:n}={})=>(Ti(e,(o,i)=>{t&&At(o)?r[i]=bp(o,t):r[i]=o},{allOwnKeys:n}),r),py=r=>(r.charCodeAt(0)===65279&&(r=r.slice(1)),r),ly=(r,e,t,n)=>{r.prototype=Object.create(e.prototype,n),r.prototype.constructor=r,Object.defineProperty(r,"super",{value:e.prototype}),t&&Object.assign(r.prototype,t)},yy=(r,e,t,n)=>{let o,i,c;const u={};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))&&!u[c]&&(e[c]=r[c],u[c]=!0);r=t!==!1&&Vo(r)}while(r&&(!t||t(r,e))&&r!==Object.prototype);return e},my=(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},gy=r=>{if(!r)return null;if(Vr(r))return r;let e=r.length;if(!Sp(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=r[e];return t},hy=(r=>e=>r&&e instanceof r)(typeof Uint8Array<"u"&&Vo(Uint8Array)),by=(r,e)=>{const n=(r&&r[eo]).call(r);let o;for(;(o=n.next())&&!o.done;){const i=o.value;e.call(r,i[0],i[1])}},_y=(r,e)=>{let t;const n=[];for(;(t=r.exec(e))!==null;)n.push(t);return n},Oy=Zt("HTMLFormElement"),Sy=r=>r.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,o){return n.toUpperCase()+o}),Pp=(({hasOwnProperty:r})=>(e,t)=>r.call(e,t))(Object.prototype),vy=Zt("RegExp"),jp=(r,e)=>{const t=Object.getOwnPropertyDescriptors(r),n={};Ti(t,(o,i)=>{let c;(c=e(o,i,r))!==!1&&(n[i]=c||o)}),Object.defineProperties(r,n)},Ry=r=>{jp(r,(e,t)=>{if(At(r)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const n=r[t];if(At(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+"'")})}})},Py=(r,e)=>{const t={},n=o=>{o.forEach(i=>{t[i]=!0})};return Vr(r)?n(r):n(String(r).split(e)),t},jy=()=>{},wy=(r,e)=>r!=null&&Number.isFinite(r=+r)?r:e;function Ey(r){return!!(r&&At(r.append)&&r[_p]==="FormData"&&r[eo])}const Ty=r=>{const e=new Array(10),t=(n,o)=>{if(ro(n)){if(e.indexOf(n)>=0)return;if(!("toJSON"in n)){e[o]=n;const i=Vr(n)?[]:{};return Ti(n,(c,u)=>{const P=t(c,o+1);!Ei(P)&&(i[u]=P)}),e[o]=void 0,i}}return n};return t(r,0)},Ny=Zt("AsyncFunction"),Ay=r=>r&&(ro(r)||At(r))&&At(r.then)&&At(r.catch),wp=((r,e)=>r?setImmediate:e?((t,n)=>(pr.addEventListener("message",({source:o,data:i})=>{o===pr&&i===t&&n.length&&n.shift()()},!1),o=>{n.push(o),pr.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",At(pr.postMessage)),My=typeof queueMicrotask<"u"?queueMicrotask.bind(pr):typeof process<"u"&&process.nextTick||wp,j={isArray:Vr,isArrayBuffer:Op,isBuffer:Kl,isFormData:iy,isArrayBufferView:Xl,isString:Yl,isNumber:Sp,isBoolean:Ql,isObject:ro,isPlainObject:io,isReadableStream:sy,isRequest:cy,isResponse:ay,isHeaders:uy,isUndefined:Ei,isDate:Zl,isFile:ey,isBlob:ty,isRegExp:vy,isFunction:At,isStream:ry,isURLSearchParams:oy,isTypedArray:hy,isFileList:ny,forEach:Ti,merge:Jo,extend:fy,trim:dy,stripBOM:py,inherits:ly,toFlatObject:yy,kindOf:to,kindOfTest:Zt,endsWith:my,toArray:gy,forEachEntry:by,matchAll:_y,isHTMLForm:Oy,hasOwnProperty:Pp,hasOwnProp:Pp,reduceDescriptors:jp,freezeMethods:Ry,toObjectSet:Py,toCamelCase:Sy,noop:jy,toFiniteNumber:wy,findKey:vp,global:pr,isContextDefined:Rp,isSpecCompliantForm:Ey,toJSONObject:Ty,isAsyncFn:Ny,isThenable:Ay,setImmediate:wp,asap:My,isIterable:r=>r!=null&&At(r[eo])};function Y(r,e,t,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=r,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}j.inherits(Y,Error,{toJSON:function(){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:j.toJSONObject(this.config),code:this.code,status:this.status}}});const Ep=Y.prototype,Tp={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(r=>{Tp[r]={value:r}}),Object.defineProperties(Y,Tp),Object.defineProperty(Ep,"isAxiosError",{value:!0}),Y.from=(r,e,t,n,o,i)=>{const c=Object.create(Ep);return j.toFlatObject(r,c,function(P){return P!==Error.prototype},u=>u!=="isAxiosError"),Y.call(c,r.message,e,t,n,o),c.cause=r,c.name=r.name,i&&Object.assign(c,i),c};const Iy=null;function Ko(r){return j.isPlainObject(r)||j.isArray(r)}function Np(r){return j.endsWith(r,"[]")?r.slice(0,-2):r}function Ap(r,e,t){return r?r.concat(e).map(function(o,i){return o=Np(o),!t&&i?"["+o+"]":o}).join(t?".":""):e}function $y(r){return j.isArray(r)&&!r.some(Ko)}const Cy=j.toFlatObject(j,{},null,function(e){return/^is[A-Z]/.test(e)});function oo(r,e,t){if(!j.isObject(r))throw new TypeError("target must be an object");e=e||new FormData,t=j.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(M,A){return!j.isUndefined(A[M])});const n=t.metaTokens,o=t.visitor||S,i=t.dots,c=t.indexes,P=(t.Blob||typeof Blob<"u"&&Blob)&&j.isSpecCompliantForm(e);if(!j.isFunction(o))throw new TypeError("visitor must be a function");function R(w){if(w===null)return"";if(j.isDate(w))return w.toISOString();if(!P&&j.isBlob(w))throw new Y("Blob is not supported. Use a Buffer instead.");return j.isArrayBuffer(w)||j.isTypedArray(w)?P&&typeof Blob=="function"?new Blob([w]):Buffer.from(w):w}function S(w,M,A){let W=w;if(w&&!A&&typeof w=="object"){if(j.endsWith(M,"{}"))M=n?M:M.slice(0,-2),w=JSON.stringify(w);else if(j.isArray(w)&&$y(w)||(j.isFileList(w)||j.endsWith(M,"[]"))&&(W=j.toArray(w)))return M=Np(M),W.forEach(function(te,We){!(j.isUndefined(te)||te===null)&&e.append(c===!0?Ap([M],We,i):c===null?M:M+"[]",R(te))}),!1}return Ko(w)?!0:(e.append(Ap(A,M,i),R(w)),!1)}const E=[],U=Object.assign(Cy,{defaultVisitor:S,convertValue:R,isVisitable:Ko});function N(w,M){if(!j.isUndefined(w)){if(E.indexOf(w)!==-1)throw Error("Circular reference detected in "+M.join("."));E.push(w),j.forEach(w,function(W,V){(!(j.isUndefined(W)||W===null)&&o.call(e,W,j.isString(V)?V.trim():V,M,U))===!0&&N(W,M?M.concat(V):[V])}),E.pop()}}if(!j.isObject(r))throw new TypeError("data must be an object");return N(r),e}function Mp(r){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(r).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function Xo(r,e){this._pairs=[],r&&oo(r,this,e)}const Ip=Xo.prototype;Ip.append=function(e,t){this._pairs.push([e,t])},Ip.toString=function(e){const t=e?function(n){return e.call(this,n,Mp)}:Mp;return this._pairs.map(function(o){return t(o[0])+"="+t(o[1])},"").join("&")};function Uy(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function $p(r,e,t){if(!e)return r;const n=t&&t.encode||Uy;j.isFunction(t)&&(t={serialize:t});const o=t&&t.serialize;let i;if(o?i=o(e,t):i=j.isURLSearchParams(e)?e.toString():new Xo(e,t).toString(n),i){const c=r.indexOf("#");c!==-1&&(r=r.slice(0,c)),r+=(r.indexOf("?")===-1?"?":"&")+i}return r}class Cp{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){j.forEach(this.handlers,function(n){n!==null&&e(n)})}}const Up={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Fy={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Xo,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Yo=typeof window<"u"&&typeof document<"u",Qo=typeof navigator=="object"&&navigator||void 0,ky=Yo&&(!Qo||["ReactNative","NativeScript","NS"].indexOf(Qo.product)<0),Dy=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",xy=Yo&&window.location.href||"http://localhost",ct={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Yo,hasStandardBrowserEnv:ky,hasStandardBrowserWebWorkerEnv:Dy,navigator:Qo,origin:xy},Symbol.toStringTag,{value:"Module"})),...Fy};function By(r,e){return oo(r,new ct.classes.URLSearchParams,Object.assign({visitor:function(t,n,o,i){return ct.isNode&&j.isBuffer(t)?(this.append(n,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function Ly(r){return j.matchAll(/\w+|\[(\w*)]/g,r).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Hy(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 Fp(r){function e(t,n,o,i){let c=t[i++];if(c==="__proto__")return!0;const u=Number.isFinite(+c),P=i>=t.length;return c=!c&&j.isArray(o)?o.length:c,P?(j.hasOwnProp(o,c)?o[c]=[o[c],n]:o[c]=n,!u):((!o[c]||!j.isObject(o[c]))&&(o[c]=[]),e(t,n,o[c],i)&&j.isArray(o[c])&&(o[c]=Hy(o[c])),!u)}if(j.isFormData(r)&&j.isFunction(r.entries)){const t={};return j.forEachEntry(r,(n,o)=>{e(Ly(n),o,t,0)}),t}return null}function qy(r,e,t){if(j.isString(r))try{return(e||JSON.parse)(r),j.trim(r)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(r)}const Ni={transitional:Up,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",o=n.indexOf("application/json")>-1,i=j.isObject(e);if(i&&j.isHTMLForm(e)&&(e=new FormData(e)),j.isFormData(e))return o?JSON.stringify(Fp(e)):e;if(j.isArrayBuffer(e)||j.isBuffer(e)||j.isStream(e)||j.isFile(e)||j.isBlob(e)||j.isReadableStream(e))return e;if(j.isArrayBufferView(e))return e.buffer;if(j.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let u;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return By(e,this.formSerializer).toString();if((u=j.isFileList(e))||n.indexOf("multipart/form-data")>-1){const P=this.env&&this.env.FormData;return oo(u?{"files[]":e}:e,P&&new P,this.formSerializer)}}return i||o?(t.setContentType("application/json",!1),qy(e)):e}],transformResponse:[function(e){const t=this.transitional||Ni.transitional,n=t&&t.forcedJSONParsing,o=this.responseType==="json";if(j.isResponse(e)||j.isReadableStream(e))return e;if(e&&j.isString(e)&&(n&&!this.responseType||o)){const c=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(u){if(c)throw u.name==="SyntaxError"?Y.from(u,Y.ERR_BAD_RESPONSE,this,null,this.response):u}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ct.classes.FormData,Blob:ct.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};j.forEach(["delete","get","head","post","put","patch"],r=>{Ni.headers[r]={}});const zy=j.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"]),Gy=r=>{const e={};let t,n,o;return r&&r.split(`
20
- `).forEach(function(c){o=c.indexOf(":"),t=c.substring(0,o).trim().toLowerCase(),n=c.substring(o+1).trim(),!(!t||e[t]&&zy[t])&&(t==="set-cookie"?e[t]?e[t].push(n):e[t]=[n]:e[t]=e[t]?e[t]+", "+n:n)}),e},kp=Symbol("internals");function Ai(r){return r&&String(r).trim().toLowerCase()}function so(r){return r===!1||r==null?r:j.isArray(r)?r.map(so):String(r)}function Wy(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 Vy=r=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim());function Zo(r,e,t,n,o){if(j.isFunction(n))return n.call(this,e,t);if(o&&(e=t),!!j.isString(e)){if(j.isString(n))return e.indexOf(n)!==-1;if(j.isRegExp(n))return n.test(e)}}function Jy(r){return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function Ky(r,e){const t=j.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 Mt=class{constructor(e){e&&this.set(e)}set(e,t,n){const o=this;function i(u,P,R){const S=Ai(P);if(!S)throw new Error("header name must be a non-empty string");const E=j.findKey(o,S);(!E||o[E]===void 0||R===!0||R===void 0&&o[E]!==!1)&&(o[E||P]=so(u))}const c=(u,P)=>j.forEach(u,(R,S)=>i(R,S,P));if(j.isPlainObject(e)||e instanceof this.constructor)c(e,t);else if(j.isString(e)&&(e=e.trim())&&!Vy(e))c(Gy(e),t);else if(j.isObject(e)&&j.isIterable(e)){let u={},P,R;for(const S of e){if(!j.isArray(S))throw TypeError("Object iterator must return a key-value pair");u[R=S[0]]=(P=u[R])?j.isArray(P)?[...P,S[1]]:[P,S[1]]:S[1]}c(u,t)}else e!=null&&i(t,e,n);return this}get(e,t){if(e=Ai(e),e){const n=j.findKey(this,e);if(n){const o=this[n];if(!t)return o;if(t===!0)return Wy(o);if(j.isFunction(t))return t.call(this,o,n);if(j.isRegExp(t))return t.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ai(e),e){const n=j.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||Zo(this,this[n],n,t)))}return!1}delete(e,t){const n=this;let o=!1;function i(c){if(c=Ai(c),c){const u=j.findKey(n,c);u&&(!t||Zo(n,n[u],u,t))&&(delete n[u],o=!0)}}return j.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||Zo(this,this[i],i,e,!0))&&(delete this[i],o=!0)}return o}normalize(e){const t=this,n={};return j.forEach(this,(o,i)=>{const c=j.findKey(n,i);if(c){t[c]=so(o),delete t[i];return}const u=e?Jy(i):String(i).trim();u!==i&&delete t[i],t[u]=so(o),n[u]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return j.forEach(this,(n,o)=>{n!=null&&n!==!1&&(t[o]=e&&j.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(`
21
- `)}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[kp]=this[kp]={accessors:{}}).accessors,o=this.prototype;function i(c){const u=Ai(c);n[u]||(Ky(o,c),n[u]=!0)}return j.isArray(e)?e.forEach(i):i(e),this}};Mt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),j.reduceDescriptors(Mt.prototype,({value:r},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>r,set(n){this[t]=n}}}),j.freezeMethods(Mt);function es(r,e){const t=this||Ni,n=e||t,o=Mt.from(n.headers);let i=n.data;return j.forEach(r,function(u){i=u.call(t,i,o.normalize(),e?e.status:void 0)}),o.normalize(),i}function Dp(r){return!!(r&&r.__CANCEL__)}function Jr(r,e,t){Y.call(this,r??"canceled",Y.ERR_CANCELED,e,t),this.name="CanceledError"}j.inherits(Jr,Y,{__CANCEL__:!0});function xp(r,e,t){const n=t.config.validateStatus;!t.status||!n||n(t.status)?r(t):e(new Y("Request failed with status code "+t.status,[Y.ERR_BAD_REQUEST,Y.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function Xy(r){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r);return e&&e[1]||""}function Yy(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(P){const R=Date.now(),S=n[i];c||(c=R),t[o]=P,n[o]=R;let E=i,U=0;for(;E!==o;)U+=t[E++],E=E%r;if(o=(o+1)%r,o===i&&(i=(i+1)%r),R-c<e)return;const N=S&&R-S;return N?Math.round(U*1e3/N):void 0}}function Qy(r,e){let t=0,n=1e3/e,o,i;const c=(R,S=Date.now())=>{t=S,o=null,i&&(clearTimeout(i),i=null),r.apply(null,R)};return[(...R)=>{const S=Date.now(),E=S-t;E>=n?c(R,S):(o=R,i||(i=setTimeout(()=>{i=null,c(o)},n-E)))},()=>o&&c(o)]}const co=(r,e,t=3)=>{let n=0;const o=Yy(50,250);return Qy(i=>{const c=i.loaded,u=i.lengthComputable?i.total:void 0,P=c-n,R=o(P),S=c<=u;n=c;const E={loaded:c,total:u,progress:u?c/u:void 0,bytes:P,rate:R||void 0,estimated:R&&u&&S?(u-c)/R:void 0,event:i,lengthComputable:u!=null,[e?"download":"upload"]:!0};r(E)},t)},Bp=(r,e)=>{const t=r!=null;return[n=>e[0]({lengthComputable:t,total:r,loaded:n}),e[1]]},Lp=r=>(...e)=>j.asap(()=>r(...e)),Zy=ct.hasStandardBrowserEnv?((r,e)=>t=>(t=new URL(t,ct.origin),r.protocol===t.protocol&&r.host===t.host&&(e||r.port===t.port)))(new URL(ct.origin),ct.navigator&&/(msie|trident)/i.test(ct.navigator.userAgent)):()=>!0,em=ct.hasStandardBrowserEnv?{write(r,e,t,n,o,i){const c=[r+"="+encodeURIComponent(e)];j.isNumber(t)&&c.push("expires="+new Date(t).toGMTString()),j.isString(n)&&c.push("path="+n),j.isString(o)&&c.push("domain="+o),i===!0&&c.push("secure"),document.cookie=c.join("; ")},read(r){const e=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(r){this.write(r,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function tm(r){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)}function nm(r,e){return e?r.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):r}function Hp(r,e,t){let n=!tm(e);return r&&(n||t==!1)?nm(r,e):e}const qp=r=>r instanceof Mt?{...r}:r;function lr(r,e){e=e||{};const t={};function n(R,S,E,U){return j.isPlainObject(R)&&j.isPlainObject(S)?j.merge.call({caseless:U},R,S):j.isPlainObject(S)?j.merge({},S):j.isArray(S)?S.slice():S}function o(R,S,E,U){if(j.isUndefined(S)){if(!j.isUndefined(R))return n(void 0,R,E,U)}else return n(R,S,E,U)}function i(R,S){if(!j.isUndefined(S))return n(void 0,S)}function c(R,S){if(j.isUndefined(S)){if(!j.isUndefined(R))return n(void 0,R)}else return n(void 0,S)}function u(R,S,E){if(E in e)return n(R,S);if(E in r)return n(void 0,R)}const P={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:u,headers:(R,S,E)=>o(qp(R),qp(S),E,!0)};return j.forEach(Object.keys(Object.assign({},r,e)),function(S){const E=P[S]||o,U=E(r[S],e[S],S);j.isUndefined(U)&&E!==u||(t[S]=U)}),t}const zp=r=>{const e=lr({},r);let{data:t,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:c,auth:u}=e;e.headers=c=Mt.from(c),e.url=$p(Hp(e.baseURL,e.url,e.allowAbsoluteUrls),r.params,r.paramsSerializer),u&&c.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")));let P;if(j.isFormData(t)){if(ct.hasStandardBrowserEnv||ct.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if((P=c.getContentType())!==!1){const[R,...S]=P?P.split(";").map(E=>E.trim()).filter(Boolean):[];c.setContentType([R||"multipart/form-data",...S].join("; "))}}if(ct.hasStandardBrowserEnv&&(n&&j.isFunction(n)&&(n=n(e)),n||n!==!1&&Zy(e.url))){const R=o&&i&&em.read(i);R&&c.set(o,R)}return e},rm=typeof XMLHttpRequest<"u"&&function(r){return new Promise(function(t,n){const o=zp(r);let i=o.data;const c=Mt.from(o.headers).normalize();let{responseType:u,onUploadProgress:P,onDownloadProgress:R}=o,S,E,U,N,w;function M(){N&&N(),w&&w(),o.cancelToken&&o.cancelToken.unsubscribe(S),o.signal&&o.signal.removeEventListener("abort",S)}let A=new XMLHttpRequest;A.open(o.method.toUpperCase(),o.url,!0),A.timeout=o.timeout;function W(){if(!A)return;const te=Mt.from("getAllResponseHeaders"in A&&A.getAllResponseHeaders()),re={data:!u||u==="text"||u==="json"?A.responseText:A.response,status:A.status,statusText:A.statusText,headers:te,config:r,request:A};xp(function(Jt){t(Jt),M()},function(Jt){n(Jt),M()},re),A=null}"onloadend"in A?A.onloadend=W:A.onreadystatechange=function(){!A||A.readyState!==4||A.status===0&&!(A.responseURL&&A.responseURL.indexOf("file:")===0)||setTimeout(W)},A.onabort=function(){A&&(n(new Y("Request aborted",Y.ECONNABORTED,r,A)),A=null)},A.onerror=function(){n(new Y("Network Error",Y.ERR_NETWORK,r,A)),A=null},A.ontimeout=function(){let We=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const re=o.transitional||Up;o.timeoutErrorMessage&&(We=o.timeoutErrorMessage),n(new Y(We,re.clarifyTimeoutError?Y.ETIMEDOUT:Y.ECONNABORTED,r,A)),A=null},i===void 0&&c.setContentType(null),"setRequestHeader"in A&&j.forEach(c.toJSON(),function(We,re){A.setRequestHeader(re,We)}),j.isUndefined(o.withCredentials)||(A.withCredentials=!!o.withCredentials),u&&u!=="json"&&(A.responseType=o.responseType),R&&([U,w]=co(R,!0),A.addEventListener("progress",U)),P&&A.upload&&([E,N]=co(P),A.upload.addEventListener("progress",E),A.upload.addEventListener("loadend",N)),(o.cancelToken||o.signal)&&(S=te=>{A&&(n(!te||te.type?new Jr(null,r,A):te),A.abort(),A=null)},o.cancelToken&&o.cancelToken.subscribe(S),o.signal&&(o.signal.aborted?S():o.signal.addEventListener("abort",S)));const V=Xy(o.url);if(V&&ct.protocols.indexOf(V)===-1){n(new Y("Unsupported protocol "+V+":",Y.ERR_BAD_REQUEST,r));return}A.send(i||null)})},im=(r,e)=>{const{length:t}=r=r?r.filter(Boolean):[];if(e||t){let n=new AbortController,o;const i=function(R){if(!o){o=!0,u();const S=R instanceof Error?R:this.reason;n.abort(S instanceof Y?S:new Jr(S instanceof Error?S.message:S))}};let c=e&&setTimeout(()=>{c=null,i(new Y(`timeout ${e} of ms exceeded`,Y.ETIMEDOUT))},e);const u=()=>{r&&(c&&clearTimeout(c),c=null,r.forEach(R=>{R.unsubscribe?R.unsubscribe(i):R.removeEventListener("abort",i)}),r=null)};r.forEach(R=>R.addEventListener("abort",i));const{signal:P}=n;return P.unsubscribe=()=>j.asap(u),P}},om=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},sm=async function*(r,e){for await(const t of cm(r))yield*om(t,e)},cm=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()}},Gp=(r,e,t,n)=>{const o=sm(r,e);let i=0,c,u=P=>{c||(c=!0,n&&n(P))};return new ReadableStream({async pull(P){try{const{done:R,value:S}=await o.next();if(R){u(),P.close();return}let E=S.byteLength;if(t){let U=i+=E;t(U)}P.enqueue(new Uint8Array(S))}catch(R){throw u(R),R}},cancel(P){return u(P),o.return()}},{highWaterMark:2})},ao=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Wp=ao&&typeof ReadableStream=="function",am=ao&&(typeof TextEncoder=="function"?(r=>e=>r.encode(e))(new TextEncoder):async r=>new Uint8Array(await new Response(r).arrayBuffer())),Vp=(r,...e)=>{try{return!!r(...e)}catch{return!1}},um=Wp&&Vp(()=>{let r=!1;const e=new Request(ct.origin,{body:new ReadableStream,method:"POST",get duplex(){return r=!0,"half"}}).headers.has("Content-Type");return r&&!e}),Jp=64*1024,ts=Wp&&Vp(()=>j.isReadableStream(new Response("").body)),uo={stream:ts&&(r=>r.body)};ao&&(r=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!uo[e]&&(uo[e]=j.isFunction(r[e])?t=>t[e]():(t,n)=>{throw new Y(`Response type '${e}' is not supported`,Y.ERR_NOT_SUPPORT,n)})})})(new Response);const dm=async r=>{if(r==null)return 0;if(j.isBlob(r))return r.size;if(j.isSpecCompliantForm(r))return(await new Request(ct.origin,{method:"POST",body:r}).arrayBuffer()).byteLength;if(j.isArrayBufferView(r)||j.isArrayBuffer(r))return r.byteLength;if(j.isURLSearchParams(r)&&(r=r+""),j.isString(r))return(await am(r)).byteLength},fm=async(r,e)=>{const t=j.toFiniteNumber(r.getContentLength());return t??dm(e)},ns={http:Iy,xhr:rm,fetch:ao&&(async r=>{let{url:e,method:t,data:n,signal:o,cancelToken:i,timeout:c,onDownloadProgress:u,onUploadProgress:P,responseType:R,headers:S,withCredentials:E="same-origin",fetchOptions:U}=zp(r);R=R?(R+"").toLowerCase():"text";let N=im([o,i&&i.toAbortSignal()],c),w;const M=N&&N.unsubscribe&&(()=>{N.unsubscribe()});let A;try{if(P&&um&&t!=="get"&&t!=="head"&&(A=await fm(S,n))!==0){let re=new Request(e,{method:"POST",body:n,duplex:"half"}),kt;if(j.isFormData(n)&&(kt=re.headers.get("content-type"))&&S.setContentType(kt),re.body){const[Jt,er]=Bp(A,co(Lp(P)));n=Gp(re.body,Jp,Jt,er)}}j.isString(E)||(E=E?"include":"omit");const W="credentials"in Request.prototype;w=new Request(e,{...U,signal:N,method:t.toUpperCase(),headers:S.normalize().toJSON(),body:n,duplex:"half",credentials:W?E:void 0});let V=await fetch(w);const te=ts&&(R==="stream"||R==="response");if(ts&&(u||te&&M)){const re={};["status","statusText","headers"].forEach(Yr=>{re[Yr]=V[Yr]});const kt=j.toFiniteNumber(V.headers.get("content-length")),[Jt,er]=u&&Bp(kt,co(Lp(u),!0))||[];V=new Response(Gp(V.body,Jp,Jt,()=>{er&&er(),M&&M()}),re)}R=R||"text";let We=await uo[j.findKey(uo,R)||"text"](V,r);return!te&&M&&M(),await new Promise((re,kt)=>{xp(re,kt,{data:We,headers:Mt.from(V.headers),status:V.status,statusText:V.statusText,config:r,request:w})})}catch(W){throw M&&M(),W&&W.name==="TypeError"&&/Load failed|fetch/i.test(W.message)?Object.assign(new Y("Network Error",Y.ERR_NETWORK,r,w),{cause:W.cause||W}):Y.from(W,W&&W.code,r,w)}})};j.forEach(ns,(r,e)=>{if(r){try{Object.defineProperty(r,"name",{value:e})}catch{}Object.defineProperty(r,"adapterName",{value:e})}});const Kp=r=>`- ${r}`,pm=r=>j.isFunction(r)||r===null||r===!1,Xp={getAdapter:r=>{r=j.isArray(r)?r:[r];const{length:e}=r;let t,n;const o={};for(let i=0;i<e;i++){t=r[i];let c;if(n=t,!pm(t)&&(n=ns[(c=String(t)).toLowerCase()],n===void 0))throw new Y(`Unknown adapter '${c}'`);if(n)break;o[c||"#"+i]=n}if(!n){const i=Object.entries(o).map(([u,P])=>`adapter ${u} `+(P===!1?"is not supported by the environment":"is not available in the build"));let c=e?i.length>1?`since :
19
+ */var up;function Pl(){return up||(up=1,function(r){const e=vl(),t=Rl(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;r.Buffer=u,r.SlowBuffer=V,r.INSPECT_MAX_BYTES=50;const o=2147483647;r.kMaxLength=o,u.TYPED_ARRAY_SUPPORT=i(),!u.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{const l=new Uint8Array(1),d={foo:function(){return 42}};return Object.setPrototypeOf(d,Uint8Array.prototype),Object.setPrototypeOf(l,d),l.foo()===42}catch{return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}});function c(l){if(l>o)throw new RangeError('The value "'+l+'" is invalid for option "size"');const d=new Uint8Array(l);return Object.setPrototypeOf(d,u.prototype),d}function u(l,d,p){if(typeof l=="number"){if(typeof d=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return E(l)}return R(l,d,p)}u.poolSize=8192;function R(l,d,p){if(typeof l=="string")return U(l,d);if(ArrayBuffer.isView(l))return w(l);if(l==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof l);if($t(l,ArrayBuffer)||l&&$t(l.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&($t(l,SharedArrayBuffer)||l&&$t(l.buffer,SharedArrayBuffer)))return M(l,d,p);if(typeof l=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const m=l.valueOf&&l.valueOf();if(m!=null&&m!==l)return u.from(m,d,p);const b=A(l);if(b)return b;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof l[Symbol.toPrimitive]=="function")return u.from(l[Symbol.toPrimitive]("string"),d,p);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof l)}u.from=function(l,d,p){return R(l,d,p)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array);function P(l){if(typeof l!="number")throw new TypeError('"size" argument must be of type number');if(l<0)throw new RangeError('The value "'+l+'" is invalid for option "size"')}function S(l,d,p){return P(l),l<=0?c(l):d!==void 0?typeof p=="string"?c(l).fill(d,p):c(l).fill(d):c(l)}u.alloc=function(l,d,p){return S(l,d,p)};function E(l){return P(l),c(l<0?0:W(l)|0)}u.allocUnsafe=function(l){return E(l)},u.allocUnsafeSlow=function(l){return E(l)};function U(l,d){if((typeof d!="string"||d==="")&&(d="utf8"),!u.isEncoding(d))throw new TypeError("Unknown encoding: "+d);const p=te(l,d)|0;let m=c(p);const b=m.write(l,d);return b!==p&&(m=m.slice(0,b)),m}function N(l){const d=l.length<0?0:W(l.length)|0,p=c(d);for(let m=0;m<d;m+=1)p[m]=l[m]&255;return p}function w(l){if($t(l,Uint8Array)){const d=new Uint8Array(l);return M(d.buffer,d.byteOffset,d.byteLength)}return N(l)}function M(l,d,p){if(d<0||l.byteLength<d)throw new RangeError('"offset" is outside of buffer bounds');if(l.byteLength<d+(p||0))throw new RangeError('"length" is outside of buffer bounds');let m;return d===void 0&&p===void 0?m=new Uint8Array(l):p===void 0?m=new Uint8Array(l,d):m=new Uint8Array(l,d,p),Object.setPrototypeOf(m,u.prototype),m}function A(l){if(u.isBuffer(l)){const d=W(l.length)|0,p=c(d);return p.length===0||l.copy(p,0,0,d),p}if(l.length!==void 0)return typeof l.length!="number"||Fi(l.length)?c(0):N(l);if(l.type==="Buffer"&&Array.isArray(l.data))return N(l.data)}function W(l){if(l>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return l|0}function V(l){return+l!=l&&(l=0),u.alloc(+l)}u.isBuffer=function(d){return d!=null&&d._isBuffer===!0&&d!==u.prototype},u.compare=function(d,p){if($t(d,Uint8Array)&&(d=u.from(d,d.offset,d.byteLength)),$t(p,Uint8Array)&&(p=u.from(p,p.offset,p.byteLength)),!u.isBuffer(d)||!u.isBuffer(p))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(d===p)return 0;let m=d.length,b=p.length;for(let y=0,g=Math.min(m,b);y<g;++y)if(d[y]!==p[y]){m=d[y],b=p[y];break}return m<b?-1:b<m?1:0},u.isEncoding=function(d){switch(String(d).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(d,p){if(!Array.isArray(d))throw new TypeError('"list" argument must be an Array of Buffers');if(d.length===0)return u.alloc(0);let m;if(p===void 0)for(p=0,m=0;m<d.length;++m)p+=d[m].length;const b=u.allocUnsafe(p);let y=0;for(m=0;m<d.length;++m){let g=d[m];if($t(g,Uint8Array))y+g.length>b.length?(u.isBuffer(g)||(g=u.from(g)),g.copy(b,y)):Uint8Array.prototype.set.call(b,g,y);else if(u.isBuffer(g))g.copy(b,y);else throw new TypeError('"list" argument must be an Array of Buffers');y+=g.length}return b};function te(l,d){if(u.isBuffer(l))return l.length;if(ArrayBuffer.isView(l)||$t(l,ArrayBuffer))return l.byteLength;if(typeof l!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof l);const p=l.length,m=arguments.length>2&&arguments[2]===!0;if(!m&&p===0)return 0;let b=!1;for(;;)switch(d){case"ascii":case"latin1":case"binary":return p;case"utf8":case"utf-8":return Zr(l).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return p*2;case"hex":return p>>>1;case"base64":return Ui(l).length;default:if(b)return m?-1:Zr(l).length;d=(""+d).toLowerCase(),b=!0}}u.byteLength=te;function Ve(l,d,p){let m=!1;if((d===void 0||d<0)&&(d=0),d>this.length||((p===void 0||p>this.length)&&(p=this.length),p<=0)||(p>>>=0,d>>>=0,p<=d))return"";for(l||(l="utf8");;)switch(l){case"hex":return _o(this,d,p);case"utf8":case"utf-8":return go(this,d,p);case"ascii":return ho(this,d,p);case"latin1":case"binary":return bo(this,d,p);case"base64":return us(this,d,p);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Oo(this,d,p);default:if(m)throw new TypeError("Unknown encoding: "+l);l=(l+"").toLowerCase(),m=!0}}u.prototype._isBuffer=!0;function re(l,d,p){const m=l[d];l[d]=l[p],l[p]=m}u.prototype.swap16=function(){const d=this.length;if(d%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let p=0;p<d;p+=2)re(this,p,p+1);return this},u.prototype.swap32=function(){const d=this.length;if(d%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let p=0;p<d;p+=4)re(this,p,p+3),re(this,p+1,p+2);return this},u.prototype.swap64=function(){const d=this.length;if(d%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let p=0;p<d;p+=8)re(this,p,p+7),re(this,p+1,p+6),re(this,p+2,p+5),re(this,p+3,p+4);return this},u.prototype.toString=function(){const d=this.length;return d===0?"":arguments.length===0?go(this,0,d):Ve.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(d){if(!u.isBuffer(d))throw new TypeError("Argument must be a Buffer");return this===d?!0:u.compare(this,d)===0},u.prototype.inspect=function(){let d="";const p=r.INSPECT_MAX_BYTES;return d=this.toString("hex",0,p).replace(/(.{2})/g,"$1 ").trim(),this.length>p&&(d+=" ... "),"<Buffer "+d+">"},n&&(u.prototype[n]=u.prototype.inspect),u.prototype.compare=function(d,p,m,b,y){if($t(d,Uint8Array)&&(d=u.from(d,d.offset,d.byteLength)),!u.isBuffer(d))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof d);if(p===void 0&&(p=0),m===void 0&&(m=d?d.length:0),b===void 0&&(b=0),y===void 0&&(y=this.length),p<0||m>d.length||b<0||y>this.length)throw new RangeError("out of range index");if(b>=y&&p>=m)return 0;if(b>=y)return-1;if(p>=m)return 1;if(p>>>=0,m>>>=0,b>>>=0,y>>>=0,this===d)return 0;let g=y-b,v=m-p;const T=Math.min(g,v),I=this.slice(b,y),J=d.slice(p,m);for(let G=0;G<T;++G)if(I[G]!==J[G]){g=I[G],v=J[G];break}return g<v?-1:v<g?1:0};function kt(l,d,p,m,b){if(l.length===0)return-1;if(typeof p=="string"?(m=p,p=0):p>2147483647?p=2147483647:p<-2147483648&&(p=-2147483648),p=+p,Fi(p)&&(p=b?0:l.length-1),p<0&&(p=l.length+p),p>=l.length){if(b)return-1;p=l.length-1}else if(p<0)if(b)p=0;else return-1;if(typeof d=="string"&&(d=u.from(d,m)),u.isBuffer(d))return d.length===0?-1:Jt(l,d,p,m,b);if(typeof d=="number")return d=d&255,typeof Uint8Array.prototype.indexOf=="function"?b?Uint8Array.prototype.indexOf.call(l,d,p):Uint8Array.prototype.lastIndexOf.call(l,d,p):Jt(l,[d],p,m,b);throw new TypeError("val must be string, number or Buffer")}function Jt(l,d,p,m,b){let y=1,g=l.length,v=d.length;if(m!==void 0&&(m=String(m).toLowerCase(),m==="ucs2"||m==="ucs-2"||m==="utf16le"||m==="utf-16le")){if(l.length<2||d.length<2)return-1;y=2,g/=2,v/=2,p/=2}function T(J,G){return y===1?J[G]:J.readUInt16BE(G*y)}let I;if(b){let J=-1;for(I=p;I<g;I++)if(T(l,I)===T(d,J===-1?0:I-J)){if(J===-1&&(J=I),I-J+1===v)return J*y}else J!==-1&&(I-=I-J),J=-1}else for(p+v>g&&(p=g-v),I=p;I>=0;I--){let J=!0;for(let G=0;G<v;G++)if(T(l,I+G)!==T(d,G)){J=!1;break}if(J)return I}return-1}u.prototype.includes=function(d,p,m){return this.indexOf(d,p,m)!==-1},u.prototype.indexOf=function(d,p,m){return kt(this,d,p,m,!0)},u.prototype.lastIndexOf=function(d,p,m){return kt(this,d,p,m,!1)};function tr(l,d,p,m){p=Number(p)||0;const b=l.length-p;m?(m=Number(m),m>b&&(m=b)):m=b;const y=d.length;m>y/2&&(m=y/2);let g;for(g=0;g<m;++g){const v=parseInt(d.substr(g*2,2),16);if(Fi(v))return g;l[p+g]=v}return g}function Yr(l,d,p,m){return mr(Zr(d,l.length-p),l,p,m)}function ss(l,d,p,m){return mr(Po(d),l,p,m)}function cs(l,d,p,m){return mr(Ui(d),l,p,m)}function as(l,d,p,m){return mr(jo(d,l.length-p),l,p,m)}u.prototype.write=function(d,p,m,b){if(p===void 0)b="utf8",m=this.length,p=0;else if(m===void 0&&typeof p=="string")b=p,m=this.length,p=0;else if(isFinite(p))p=p>>>0,isFinite(m)?(m=m>>>0,b===void 0&&(b="utf8")):(b=m,m=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const y=this.length-p;if((m===void 0||m>y)&&(m=y),d.length>0&&(m<0||p<0)||p>this.length)throw new RangeError("Attempt to write outside buffer bounds");b||(b="utf8");let g=!1;for(;;)switch(b){case"hex":return tr(this,d,p,m);case"utf8":case"utf-8":return Yr(this,d,p,m);case"ascii":case"latin1":case"binary":return ss(this,d,p,m);case"base64":return cs(this,d,p,m);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return as(this,d,p,m);default:if(g)throw new TypeError("Unknown encoding: "+b);b=(""+b).toLowerCase(),g=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function us(l,d,p){return d===0&&p===l.length?e.fromByteArray(l):e.fromByteArray(l.slice(d,p))}function go(l,d,p){p=Math.min(l.length,p);const m=[];let b=d;for(;b<p;){const y=l[b];let g=null,v=y>239?4:y>223?3:y>191?2:1;if(b+v<=p){let T,I,J,G;switch(v){case 1:y<128&&(g=y);break;case 2:T=l[b+1],(T&192)===128&&(G=(y&31)<<6|T&63,G>127&&(g=G));break;case 3:T=l[b+1],I=l[b+2],(T&192)===128&&(I&192)===128&&(G=(y&15)<<12|(T&63)<<6|I&63,G>2047&&(G<55296||G>57343)&&(g=G));break;case 4:T=l[b+1],I=l[b+2],J=l[b+3],(T&192)===128&&(I&192)===128&&(J&192)===128&&(G=(y&15)<<18|(T&63)<<12|(I&63)<<6|J&63,G>65535&&G<1114112&&(g=G))}}g===null?(g=65533,v=1):g>65535&&(g-=65536,m.push(g>>>10&1023|55296),g=56320|g&1023),m.push(g),b+=v}return Ii(m)}const Mi=4096;function Ii(l){const d=l.length;if(d<=Mi)return String.fromCharCode.apply(String,l);let p="",m=0;for(;m<d;)p+=String.fromCharCode.apply(String,l.slice(m,m+=Mi));return p}function ho(l,d,p){let m="";p=Math.min(l.length,p);for(let b=d;b<p;++b)m+=String.fromCharCode(l[b]&127);return m}function bo(l,d,p){let m="";p=Math.min(l.length,p);for(let b=d;b<p;++b)m+=String.fromCharCode(l[b]);return m}function _o(l,d,p){const m=l.length;(!d||d<0)&&(d=0),(!p||p<0||p>m)&&(p=m);let b="";for(let y=d;y<p;++y)b+=fs[l[y]];return b}function Oo(l,d,p){const m=l.slice(d,p);let b="";for(let y=0;y<m.length-1;y+=2)b+=String.fromCharCode(m[y]+m[y+1]*256);return b}u.prototype.slice=function(d,p){const m=this.length;d=~~d,p=p===void 0?m:~~p,d<0?(d+=m,d<0&&(d=0)):d>m&&(d=m),p<0?(p+=m,p<0&&(p=0)):p>m&&(p=m),p<d&&(p=d);const b=this.subarray(d,p);return Object.setPrototypeOf(b,u.prototype),b};function Le(l,d,p){if(l%1!==0||l<0)throw new RangeError("offset is not uint");if(l+d>p)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(d,p,m){d=d>>>0,p=p>>>0,m||Le(d,p,this.length);let b=this[d],y=1,g=0;for(;++g<p&&(y*=256);)b+=this[d+g]*y;return b},u.prototype.readUintBE=u.prototype.readUIntBE=function(d,p,m){d=d>>>0,p=p>>>0,m||Le(d,p,this.length);let b=this[d+--p],y=1;for(;p>0&&(y*=256);)b+=this[d+--p]*y;return b},u.prototype.readUint8=u.prototype.readUInt8=function(d,p){return d=d>>>0,p||Le(d,1,this.length),this[d]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(d,p){return d=d>>>0,p||Le(d,2,this.length),this[d]|this[d+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(d,p){return d=d>>>0,p||Le(d,2,this.length),this[d]<<8|this[d+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(d,p){return d=d>>>0,p||Le(d,4,this.length),(this[d]|this[d+1]<<8|this[d+2]<<16)+this[d+3]*16777216},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(d,p){return d=d>>>0,p||Le(d,4,this.length),this[d]*16777216+(this[d+1]<<16|this[d+2]<<8|this[d+3])},u.prototype.readBigUInt64LE=hn(function(d){d=d>>>0,en(d,"offset");const p=this[d],m=this[d+7];(p===void 0||m===void 0)&&rr(d,this.length-8);const b=p+this[++d]*2**8+this[++d]*2**16+this[++d]*2**24,y=this[++d]+this[++d]*2**8+this[++d]*2**16+m*2**24;return BigInt(b)+(BigInt(y)<<BigInt(32))}),u.prototype.readBigUInt64BE=hn(function(d){d=d>>>0,en(d,"offset");const p=this[d],m=this[d+7];(p===void 0||m===void 0)&&rr(d,this.length-8);const b=p*2**24+this[++d]*2**16+this[++d]*2**8+this[++d],y=this[++d]*2**24+this[++d]*2**16+this[++d]*2**8+m;return(BigInt(b)<<BigInt(32))+BigInt(y)}),u.prototype.readIntLE=function(d,p,m){d=d>>>0,p=p>>>0,m||Le(d,p,this.length);let b=this[d],y=1,g=0;for(;++g<p&&(y*=256);)b+=this[d+g]*y;return y*=128,b>=y&&(b-=Math.pow(2,8*p)),b},u.prototype.readIntBE=function(d,p,m){d=d>>>0,p=p>>>0,m||Le(d,p,this.length);let b=p,y=1,g=this[d+--b];for(;b>0&&(y*=256);)g+=this[d+--b]*y;return y*=128,g>=y&&(g-=Math.pow(2,8*p)),g},u.prototype.readInt8=function(d,p){return d=d>>>0,p||Le(d,1,this.length),this[d]&128?(255-this[d]+1)*-1:this[d]},u.prototype.readInt16LE=function(d,p){d=d>>>0,p||Le(d,2,this.length);const m=this[d]|this[d+1]<<8;return m&32768?m|4294901760:m},u.prototype.readInt16BE=function(d,p){d=d>>>0,p||Le(d,2,this.length);const m=this[d+1]|this[d]<<8;return m&32768?m|4294901760:m},u.prototype.readInt32LE=function(d,p){return d=d>>>0,p||Le(d,4,this.length),this[d]|this[d+1]<<8|this[d+2]<<16|this[d+3]<<24},u.prototype.readInt32BE=function(d,p){return d=d>>>0,p||Le(d,4,this.length),this[d]<<24|this[d+1]<<16|this[d+2]<<8|this[d+3]},u.prototype.readBigInt64LE=hn(function(d){d=d>>>0,en(d,"offset");const p=this[d],m=this[d+7];(p===void 0||m===void 0)&&rr(d,this.length-8);const b=this[d+4]+this[d+5]*2**8+this[d+6]*2**16+(m<<24);return(BigInt(b)<<BigInt(32))+BigInt(p+this[++d]*2**8+this[++d]*2**16+this[++d]*2**24)}),u.prototype.readBigInt64BE=hn(function(d){d=d>>>0,en(d,"offset");const p=this[d],m=this[d+7];(p===void 0||m===void 0)&&rr(d,this.length-8);const b=(p<<24)+this[++d]*2**16+this[++d]*2**8+this[++d];return(BigInt(b)<<BigInt(32))+BigInt(this[++d]*2**24+this[++d]*2**16+this[++d]*2**8+m)}),u.prototype.readFloatLE=function(d,p){return d=d>>>0,p||Le(d,4,this.length),t.read(this,d,!0,23,4)},u.prototype.readFloatBE=function(d,p){return d=d>>>0,p||Le(d,4,this.length),t.read(this,d,!1,23,4)},u.prototype.readDoubleLE=function(d,p){return d=d>>>0,p||Le(d,8,this.length),t.read(this,d,!0,52,8)},u.prototype.readDoubleBE=function(d,p){return d=d>>>0,p||Le(d,8,this.length),t.read(this,d,!1,52,8)};function et(l,d,p,m,b,y){if(!u.isBuffer(l))throw new TypeError('"buffer" argument must be a Buffer instance');if(d>b||d<y)throw new RangeError('"value" argument is out of bounds');if(p+m>l.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(d,p,m,b){if(d=+d,p=p>>>0,m=m>>>0,!b){const v=Math.pow(2,8*m)-1;et(this,d,p,m,v,0)}let y=1,g=0;for(this[p]=d&255;++g<m&&(y*=256);)this[p+g]=d/y&255;return p+m},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(d,p,m,b){if(d=+d,p=p>>>0,m=m>>>0,!b){const v=Math.pow(2,8*m)-1;et(this,d,p,m,v,0)}let y=m-1,g=1;for(this[p+y]=d&255;--y>=0&&(g*=256);)this[p+y]=d/g&255;return p+m},u.prototype.writeUint8=u.prototype.writeUInt8=function(d,p,m){return d=+d,p=p>>>0,m||et(this,d,p,1,255,0),this[p]=d&255,p+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(d,p,m){return d=+d,p=p>>>0,m||et(this,d,p,2,65535,0),this[p]=d&255,this[p+1]=d>>>8,p+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(d,p,m){return d=+d,p=p>>>0,m||et(this,d,p,2,65535,0),this[p]=d>>>8,this[p+1]=d&255,p+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(d,p,m){return d=+d,p=p>>>0,m||et(this,d,p,4,4294967295,0),this[p+3]=d>>>24,this[p+2]=d>>>16,this[p+1]=d>>>8,this[p]=d&255,p+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(d,p,m){return d=+d,p=p>>>0,m||et(this,d,p,4,4294967295,0),this[p]=d>>>24,this[p+1]=d>>>16,this[p+2]=d>>>8,this[p+3]=d&255,p+4};function z(l,d,p,m,b){$i(d,m,b,l,p,7);let y=Number(d&BigInt(4294967295));l[p++]=y,y=y>>8,l[p++]=y,y=y>>8,l[p++]=y,y=y>>8,l[p++]=y;let g=Number(d>>BigInt(32)&BigInt(4294967295));return l[p++]=g,g=g>>8,l[p++]=g,g=g>>8,l[p++]=g,g=g>>8,l[p++]=g,p}function Cn(l,d,p,m,b){$i(d,m,b,l,p,7);let y=Number(d&BigInt(4294967295));l[p+7]=y,y=y>>8,l[p+6]=y,y=y>>8,l[p+5]=y,y=y>>8,l[p+4]=y;let g=Number(d>>BigInt(32)&BigInt(4294967295));return l[p+3]=g,g=g>>8,l[p+2]=g,g=g>>8,l[p+1]=g,g=g>>8,l[p]=g,p+8}u.prototype.writeBigUInt64LE=hn(function(d,p=0){return z(this,d,p,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=hn(function(d,p=0){return Cn(this,d,p,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(d,p,m,b){if(d=+d,p=p>>>0,!b){const T=Math.pow(2,8*m-1);et(this,d,p,m,T-1,-T)}let y=0,g=1,v=0;for(this[p]=d&255;++y<m&&(g*=256);)d<0&&v===0&&this[p+y-1]!==0&&(v=1),this[p+y]=(d/g>>0)-v&255;return p+m},u.prototype.writeIntBE=function(d,p,m,b){if(d=+d,p=p>>>0,!b){const T=Math.pow(2,8*m-1);et(this,d,p,m,T-1,-T)}let y=m-1,g=1,v=0;for(this[p+y]=d&255;--y>=0&&(g*=256);)d<0&&v===0&&this[p+y+1]!==0&&(v=1),this[p+y]=(d/g>>0)-v&255;return p+m},u.prototype.writeInt8=function(d,p,m){return d=+d,p=p>>>0,m||et(this,d,p,1,127,-128),d<0&&(d=255+d+1),this[p]=d&255,p+1},u.prototype.writeInt16LE=function(d,p,m){return d=+d,p=p>>>0,m||et(this,d,p,2,32767,-32768),this[p]=d&255,this[p+1]=d>>>8,p+2},u.prototype.writeInt16BE=function(d,p,m){return d=+d,p=p>>>0,m||et(this,d,p,2,32767,-32768),this[p]=d>>>8,this[p+1]=d&255,p+2},u.prototype.writeInt32LE=function(d,p,m){return d=+d,p=p>>>0,m||et(this,d,p,4,2147483647,-2147483648),this[p]=d&255,this[p+1]=d>>>8,this[p+2]=d>>>16,this[p+3]=d>>>24,p+4},u.prototype.writeInt32BE=function(d,p,m){return d=+d,p=p>>>0,m||et(this,d,p,4,2147483647,-2147483648),d<0&&(d=4294967295+d+1),this[p]=d>>>24,this[p+1]=d>>>16,this[p+2]=d>>>8,this[p+3]=d&255,p+4},u.prototype.writeBigInt64LE=hn(function(d,p=0){return z(this,d,p,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=hn(function(d,p=0){return Cn(this,d,p,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function So(l,d,p,m,b,y){if(p+m>l.length)throw new RangeError("Index out of range");if(p<0)throw new RangeError("Index out of range")}function Fe(l,d,p,m,b){return d=+d,p=p>>>0,b||So(l,d,p,4),t.write(l,d,p,m,23,4),p+4}u.prototype.writeFloatLE=function(d,p,m){return Fe(this,d,p,!0,m)},u.prototype.writeFloatBE=function(d,p,m){return Fe(this,d,p,!1,m)};function vo(l,d,p,m,b){return d=+d,p=p>>>0,b||So(l,d,p,8),t.write(l,d,p,m,52,8),p+8}u.prototype.writeDoubleLE=function(d,p,m){return vo(this,d,p,!0,m)},u.prototype.writeDoubleBE=function(d,p,m){return vo(this,d,p,!1,m)},u.prototype.copy=function(d,p,m,b){if(!u.isBuffer(d))throw new TypeError("argument should be a Buffer");if(m||(m=0),!b&&b!==0&&(b=this.length),p>=d.length&&(p=d.length),p||(p=0),b>0&&b<m&&(b=m),b===m||d.length===0||this.length===0)return 0;if(p<0)throw new RangeError("targetStart out of bounds");if(m<0||m>=this.length)throw new RangeError("Index out of range");if(b<0)throw new RangeError("sourceEnd out of bounds");b>this.length&&(b=this.length),d.length-p<b-m&&(b=d.length-p+m);const y=b-m;return this===d&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(p,m,b):Uint8Array.prototype.set.call(d,this.subarray(m,b),p),y},u.prototype.fill=function(d,p,m,b){if(typeof d=="string"){if(typeof p=="string"?(b=p,p=0,m=this.length):typeof m=="string"&&(b=m,m=this.length),b!==void 0&&typeof b!="string")throw new TypeError("encoding must be a string");if(typeof b=="string"&&!u.isEncoding(b))throw new TypeError("Unknown encoding: "+b);if(d.length===1){const g=d.charCodeAt(0);(b==="utf8"&&g<128||b==="latin1")&&(d=g)}}else typeof d=="number"?d=d&255:typeof d=="boolean"&&(d=Number(d));if(p<0||this.length<p||this.length<m)throw new RangeError("Out of range index");if(m<=p)return this;p=p>>>0,m=m===void 0?this.length:m>>>0,d||(d=0);let y;if(typeof d=="number")for(y=p;y<m;++y)this[y]=d;else{const g=u.isBuffer(d)?d:u.from(d,b),v=g.length;if(v===0)throw new TypeError('The value "'+d+'" is invalid for argument "value"');for(y=0;y<m-p;++y)this[y+p]=g[y%v]}return this};const nr={};function Qr(l,d,p){nr[l]=class extends p{constructor(){super(),Object.defineProperty(this,"message",{value:d.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${l}]`,this.stack,delete this.name}get code(){return l}set code(b){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:b,writable:!0})}toString(){return`${this.name} [${l}]: ${this.message}`}}}Qr("ERR_BUFFER_OUT_OF_BOUNDS",function(l){return l?`${l} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Qr("ERR_INVALID_ARG_TYPE",function(l,d){return`The "${l}" argument must be of type number. Received type ${typeof d}`},TypeError),Qr("ERR_OUT_OF_RANGE",function(l,d,p){let m=`The value of "${l}" is out of range.`,b=p;return Number.isInteger(p)&&Math.abs(p)>2**32?b=Ro(String(p)):typeof p=="bigint"&&(b=String(p),(p>BigInt(2)**BigInt(32)||p<-(BigInt(2)**BigInt(32)))&&(b=Ro(b)),b+="n"),m+=` It must be ${d}. Received ${b}`,m},RangeError);function Ro(l){let d="",p=l.length;const m=l[0]==="-"?1:0;for(;p>=m+4;p-=3)d=`_${l.slice(p-3,p)}${d}`;return`${l.slice(0,p)}${d}`}function Kt(l,d,p){en(d,"offset"),(l[d]===void 0||l[d+p]===void 0)&&rr(d,l.length-(p+1))}function $i(l,d,p,m,b,y){if(l>p||l<d){const g=typeof d=="bigint"?"n":"";let v;throw d===0||d===BigInt(0)?v=`>= 0${g} and < 2${g} ** ${(y+1)*8}${g}`:v=`>= -(2${g} ** ${(y+1)*8-1}${g}) and < 2 ** ${(y+1)*8-1}${g}`,new nr.ERR_OUT_OF_RANGE("value",v,l)}Kt(m,b,y)}function en(l,d){if(typeof l!="number")throw new nr.ERR_INVALID_ARG_TYPE(d,"number",l)}function rr(l,d,p){throw Math.floor(l)!==l?(en(l,p),new nr.ERR_OUT_OF_RANGE("offset","an integer",l)):d<0?new nr.ERR_BUFFER_OUT_OF_BOUNDS:new nr.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${d}`,l)}const ds=/[^+/0-9A-Za-z-_]/g;function Ci(l){if(l=l.split("=")[0],l=l.trim().replace(ds,""),l.length<2)return"";for(;l.length%4!==0;)l=l+"=";return l}function Zr(l,d){d=d||1/0;let p;const m=l.length;let b=null;const y=[];for(let g=0;g<m;++g){if(p=l.charCodeAt(g),p>55295&&p<57344){if(!b){if(p>56319){(d-=3)>-1&&y.push(239,191,189);continue}else if(g+1===m){(d-=3)>-1&&y.push(239,191,189);continue}b=p;continue}if(p<56320){(d-=3)>-1&&y.push(239,191,189),b=p;continue}p=(b-55296<<10|p-56320)+65536}else b&&(d-=3)>-1&&y.push(239,191,189);if(b=null,p<128){if((d-=1)<0)break;y.push(p)}else if(p<2048){if((d-=2)<0)break;y.push(p>>6|192,p&63|128)}else if(p<65536){if((d-=3)<0)break;y.push(p>>12|224,p>>6&63|128,p&63|128)}else if(p<1114112){if((d-=4)<0)break;y.push(p>>18|240,p>>12&63|128,p>>6&63|128,p&63|128)}else throw new Error("Invalid code point")}return y}function Po(l){const d=[];for(let p=0;p<l.length;++p)d.push(l.charCodeAt(p)&255);return d}function jo(l,d){let p,m,b;const y=[];for(let g=0;g<l.length&&!((d-=2)<0);++g)p=l.charCodeAt(g),m=p>>8,b=p%256,y.push(b),y.push(m);return y}function Ui(l){return e.toByteArray(Ci(l))}function mr(l,d,p,m){let b;for(b=0;b<m&&!(b+p>=d.length||b>=l.length);++b)d[b+p]=l[b];return b}function $t(l,d){return l instanceof d||l!=null&&l.constructor!=null&&l.constructor.name!=null&&l.constructor.name===d.name}function Fi(l){return l!==l}const fs=function(){const l="0123456789abcdef",d=new Array(256);for(let p=0;p<16;++p){const m=p*16;for(let b=0;b<16;++b)d[m+b]=l[p]+l[b]}return d}();function hn(l){return typeof BigInt>"u"?ps:l}function ps(){throw new Error("BigInt not supported")}}(Lo)),Lo}var dp=Pl(),jl=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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.JSONCodec=class extends f.Codec{constructor(){super(...arguments);s(this,"encoder",new TextEncoder);s(this,"decoder",new TextDecoder)}decode(t,n){const o=this.decoder.decode(t);if(!n||!n.constructor)return JSON.parse(o);const i=JSON.parse(o);if(typeof i!="object"&&typeof i!="function"||i==null)return i;switch(n.name){case"Object":return i}return this.decorateAny(n,i)}decorateAny(t,n){const o=t instanceof Un,i=o?t.raw:t;if(!i)return n;switch(i){case Map:if(n==null)return new Map;if(!o||t.parameters.length<1)return new Map(Object.entries(n));const c=new Map;return Object.keys(n).forEach(S=>{c.set(this.decorateAny(t.parameters[0],S),this.decorateAny(t.parameters[1],n[S]))}),c;case Array:return n==null?[]:!o||t.parameters.length<1?n:n.map(S=>this.decorateAny(t.parameters[0],S));case Re:if(n==null)return null;const u=new i;if(!o||t.parameters.length<1)return Object.assign(u,n);Object.assign(u,n);const R=[];for(let S of u.data||[])R.push(this.decorateAny(t.parameters[0],S));return u.data=R,u;case String:case Number:case Boolean:case Object:return n;case Date:return n==null||n<1?null:new Date(n);case Uint8Array:return n==null?null:n instanceof Uint8Array?n:dp.Buffer.from(n,"base64");default:if(n==null)return null;const P=new i;return Object.keys(P).forEach((S,E)=>{const U=Ee.metadata(Fn,i,S);if(!U){Reflect.set(P,S,n[S]);return}const N=n[S]!=null?n[S]:n[U.name];Reflect.set(P,S,this.decorateAny(U.kind,N))}),P}}encode(t){return this.encoder.encode(JSON.stringify(t,(n,o)=>{if(o==null||Array.isArray(o))return o;if(!Ee.annotated(o.constructor))return this.encodeAny(o);const i=new Map;for(let c in o){const u=Ee.metadata(Fn,o.constructor,c);u&&u.name&&u.name.length>0&&u.name!=c&&i.set(c,u.name),((u==null?void 0:u.kind)==Uint8Array||(u==null?void 0:u.kind)==Date||(u==null?void 0:u.kind)==Map)&&Reflect.set(o,c,this.encodeAny(Reflect.get(o,c)))}return i.size<1?this.encodeAny(o):(i.forEach((c,u)=>{const R=Reflect.get(o,u);Reflect.deleteProperty(o,u),Reflect.set(o,c,R)}),this.encodeAny(o))}))}encodeAny(t){return t instanceof Uint8Array?dp.Buffer.from(t).toString("base64"):t instanceof Date?t.getTime():t instanceof Map?Object.fromEntries(t):t}uint8ify(t){return this.encoder.encode(t)}stringify(t){return this.decoder.decode(t)}},f.JSONCodec=jl([H(f.Codec.JSON)],f.JSONCodec);var fr=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},Pi=function(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)},Yi;f.Compiler=class{},f.Compiler=fr([H("mesh")],f.Compiler);function wl(r){return{}}f.TSCompiler=(er=class extends f.Compiler{compile(e,t){}intype(e){return Yi.parameters.computeIfy(e,t=>{var n;class o{constructor(){s(this,"attachments",new Map)}getAttachments(){return this.attachments}map(){return Object.assign(new Map,this)}setAttachments(c){(c||{}).forEach((u,R)=>this.attachments.set(R,u))}getArguments(){return t.getParameters().map(c=>{var u;return(u=Object.getOwnPropertyDescriptor(this,c.name))==null?void 0:u.value})}setArguments(c){const u=ze.load(f.Codec).getDefault();t.getParameters().forEach((R,P)=>{if(c&&c.length>R.index&&!(c[R.index]instanceof Bi)){const S=c[R.index];if(S==null)return;if(S instanceof R.kind&&!(R.kind instanceof Un)){Reflect.set(this,R.name,S);return}switch(R.kind){case Map:case Array:case String:case Number:case Boolean:case Object:case Date:case Uint8Array:Reflect.set(this,R.name,S);break;default:const E=u.encode(S),U=u.decode(E,R.kind);Reflect.set(this,R.name,U)}}})}}return fr([a(-1,"attachments",Map),Pi("design:type",typeof(n=typeof Map<"u"&&Map)=="function"?n:Object)],o.prototype,"attachments",void 0),o})}retype(e){return Yi.returns.computeIfy(e,t=>{class n{constructor(){s(this,"code","");s(this,"message","");s(this,"content");s(this,"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 fr([a(0),Pi("design:type",String)],n.prototype,"code",void 0),fr([a(5),Pi("design:type",String)],n.prototype,"message",void 0),fr([a(10,"content",t.getReturnType()),Pi("design:type",Object)],n.prototype,"content",void 0),fr([a(15,"cause",vt),Pi("design:type",Object)],n.prototype,"cause",void 0),n})}},Yi=er,s(er,"parameters",new q),s(er,"returns",new q),er),f.TSCompiler=Yi=fr([H("mesh")],f.TSCompiler);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 u=r.length-1;u>=0;u--)(c=r[u])&&(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.Consumer=(Xr=class{},s(Xr,"HTTP","http"),s(Xr,"GRPC","grpc"),s(Xr,"TCP","tcp"),s(Xr,"MQTT","mqtt"),Xr),f.Consumer=El([H(f.Consumer.HTTP)],f.Consumer);class Qi{constructor(e){s(this,"servers",new at);s(this,"availableAddrs",new at);for(let t of(e||"").split(","))t&&t.trim().length>0&&!this.availableAddrs.includes(t)&&(this.servers.push(new fp(!0,t)),this.availableAddrs.push(t))}any(){const e=this.availableAddrs;return!e||e.length<1?"":e[Math.floor(Math.random()*e.length)]}}class fp{constructor(e,t){s(this,"available");s(this,"address");this.available=e,this.address=t}}class Tl{constructor(e){s(this,"value");s(this,"fn");this.fn=e}get(){return this.value||(this.value=this.fn()),this.value}}const mo=class mo{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 newEntity(e){if(!e)return new Me;const t=ze.load(f.Codec),n=new Me;return n.codec=t.defaultName(),n.schema="",n.buffer=t.getDefault().encode(e),n}static newCacheEntity(e,t,n){const o=mo.newEntity(t),i=new pt;return i.version="1.0.0",i.entity=o,i.timestamp=new Date().getTime(),i.duration=n,i.key=e,i}static readObject(e){return!e.buffer||e.buffer.length<1?null:ze.load(f.Codec).get(e.codec||f.Codec.JSON).decode(this.buffer)}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 vt}static ofCause(e,t,n){throw new Error}static hexString(e){const t=new TextEncoder().encode(e),n="0123456789abcdef";let o="";for(const i of t){const c=i;o+=n[c>>4],o+=n[c&15]}return o}};s(mo,"MESH_ADDRESS",new Tl(()=>typeof process<"u"&&process.env.MESH_ADDRESS?new Qi(process.env.MESH_ADDRESS):typeof window<"u"?new Qi(window.location.origin):new Qi("https://127.0.0.1")));let pe=mo;var Nl=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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 ji extends Bi{constructor(){super(...arguments);s(this,"traceId","");s(this,"spanId","");s(this,"timestamp",0);s(this,"runMode",0);s(this,"urn","");s(this,"consumer",new qn);s(this,"calls",0);s(this,"attachments",new Map);s(this,"attributes",new Map);s(this,"principals",new _s)}static create(){const t=new ji;return t.traceId=pe.traceId(),t.spanId=pe.spanId("",0),t.timestamp=new Date().getTime(),t.runMode=0,t.urn="",t.consumer=new qn,t}getAttachments(){return this.attachments}getAttribute(t){return this.attributes.get(t.name)}getAttributes(){return this.attributes}getConsumer(t){return this.consumer}getPrincipals(){return this.principals}getProvider(t){return new qn}getRunMode(){return this.runMode}getSpanId(){return this.spanId}getTimestamp(){return this.timestamp}getTraceId(){return this.traceId}getUrn(){return this.urn}setAttribute(t,n){this.attributes.set(t.name,n)}resume(){this.calls++;const t=new ji;return t.traceId=this.getTraceId(),t.spanId=pe.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((n,o)=>t.attachments.set(n,o)),this.getAttributes()&&this.getAttributes().forEach((n,o)=>t.attributes.set(n,o)),this.getPrincipals()&&this.getPrincipals().forEach(n=>t.principals.push(n)),t}rewriteContext(t){t.getTraceId()&&(this.traceId=t.getTraceId()),t.getSpanId()&&(this.spanId=t.getSpanId()),t.getTimestamp()&&t.getTimestamp()>0&&(this.timestamp=t.getTimestamp()),t.getRunMode()&&t.getRunMode()>0&&(this.runMode=t.getRunMode()),t.getUrn()&&(this.urn=t.getUrn()),t.getConsumer(this)&&(this.consumer=t.getConsumer(this)),this.getAttachments()&&this.getAttachments().forEach((n,o)=>this.attachments.set(n,o)),this.getAttributes()&&this.getAttributes().forEach((n,o)=>this.attributes.set(n,o)),this.getPrincipals()&&this.getPrincipals().forEach(n=>this.principals.push(n))}rewriteURN(t){this.urn=t}}f.MeshContextProvider=class extends f.ContextProvider{context(){return ji.create()}},f.MeshContextProvider=Nl([H("mesh")],f.MeshContextProvider);var Al=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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.Eden=class{},f.Eden=Al([H("mesh")],f.Eden);class We{}s(We,"REMOTE",new kn("mesh.mpc.address")),s(We,"REMOTE_NAME",new kn("mesh.mpc.remote.name")),s(We,"INVOCATION",new kn("mesh.invocation")),s(We,"UNAME",new kn("mesh.mpc.uname")),s(We,"CONSUMER",new kn("mesh.mpc.consumer")),s(We,"CODEC",new kn("mesh.mpc.codec")),s(We,"TIMEOUT",new kn("mesh.mpc.timeout"));class Mn{constructor(e,t){s(this,"code");s(this,"name");this.code=e,this.name=t}}const ge=class ge{static ofProto(e){for(let t of ge.PROTO)if(t.code==e)return t;return ge.HTTP}static ofCodec(e){for(let t of ge.CODEC)if(t.code==e)return t;return ge.JSON}static ofName(e){for(let t of ge.PROTO)if(t.name==e)return t;for(let t of ge.CODEC)if(t.name==e)return t;return ge.HTTP}};s(ge,"HTTP",new Mn("00",f.Consumer.HTTP)),s(ge,"GRPC",new Mn("01",f.Consumer.GRPC)),s(ge,"MQTT",new Mn("02",f.Consumer.MQTT)),s(ge,"TCP",new Mn("03",f.Consumer.TCP)),s(ge,"JSON",new Mn("00",f.Codec.JSON)),s(ge,"PROTOBUF",new Mn("01",f.Codec.PROTOBUF)),s(ge,"XML",new Mn("02",f.Codec.XML)),s(ge,"THRIFT",new Mn("03",f.Codec.THRIFT)),s(ge,"YAML",new Mn("04",f.Codec.YAML)),s(ge,"PROTO",[ge.HTTP,ge.GRPC,ge.MQTT,ge.TCP]),s(ge,"CODEC",[ge.JSON,ge.PROTOBUF,ge.XML,ge.THRIFT,ge.YAML]);let mn=ge;const Ml=r=>{const e=_();return e.setAttribute(We.CONSUMER,ze.load(f.Consumer).get(r)),e},Il=r=>{const e=_();return e.setAttribute(We.CODEC,ze.load(f.Codec).get(r)),e};class pp{constructor(e,t){s(this,"inspector");s(this,"reference");s(this,"service");this.reference=new cn,this.reference.urn=t.toString(),this.reference.namespace="",this.reference.name=t.name,this.reference.version=t.flag.version,this.reference.proto=mn.ofProto(t.flag.proto).name,this.reference.codec=mn.ofCodec(t.flag.codec).name,this.reference.flags=0,this.reference.timeout=parseInt(Li.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 wt,this.inspector=new lp(t)}inflect(e){return new Ho}inspect(e){return this.inspector}intype(e){return Ho}reflect(e){return new qo}retype(e){return qo}schema(e){return this.reference}}class lp{constructor(e){s(this,"urn");this.urn=e}getType(){return Object}getAnnotation(e){}getName(){return this.urn.name}getParameters(){return[]}getReturnType(){return new Un(Map)}getExecutable(){return()=>{}}getSymbol(){return this.urn.name}invoke(e,t){}}class Ho extends Map{map(){return this}getArguments(){const e=[];return super.forEach((t,n)=>{n!="attachments"&&e.push(t)}),e}getAttachments(){var o;const e=((o=Object.getOwnPropertyDescriptor(this,"attachments"))==null?void 0:o.value)||new Map;if(e instanceof Map)return e;const t=ze.load(f.Codec).get(f.Codec.JSON),n=t.decode(t.encode(e),Map);return this.setAttachments(n),n}setArguments(e){}setAttachments(e){Object.assign(this,{attachments:vt})}}class qo extends Map{getCause(){var n;const e=(n=Object.getOwnPropertyDescriptor(this,"cause"))==null?void 0:n.value;if(!e||e instanceof vt)return e;const t=ze.load(f.Codec).get(f.Codec.JSON);return t.decode(t.encode(e),vt)}getCode(){var e;return(e=Object.getOwnPropertyDescriptor(this,"code"))==null?void 0:e.value}getContent(){var e;return(e=Object.getOwnPropertyDescriptor(this,"content"))==null?void 0:e.value}getMessage(){var e;return((e=Object.getOwnPropertyDescriptor(this,"message"))==null?void 0:e.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 $l=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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 yp="PROVIDER",Zi="CONSUMER";f.Filter=class{},f.Filter=$l([H("*")],f.Filter);function zo(r,e){const t=ze.load(f.Filter).list().filter(n=>{const o=Ee.metadata(Xt,n==null?void 0:n.constructor,n==null?void 0:n.constructor);return!o||o.pattern==""||(o==null?void 0:o.pattern)==e}).sort((n,o)=>{var u,R;const i=((u=Ee.metadata(Xt,n==null?void 0:n.constructor,n==null?void 0:n.constructor))==null?void 0:u.priority)||0,c=((R=Ee.metadata(Xt,o==null?void 0:o.constructor,o==null?void 0:o.constructor))==null?void 0:R.priority)||0;return i==c?0:i<c?-1:1});return Cl(r,t)}function Cl(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,u){return o.invoke(c,i,u)}}}return t}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 u=r.length-1;u>=0;u--)(c=r[u])&&(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 Fl{constructor(){s(this,"beforeHooks",new q);s(this,"successHooks",new q);s(this,"failureHooks",new q)}}const Wr=()=>{const r=gr();return r.Mesh??(r.Mesh=new Fl),r.Mesh};class kl{onBefore(e,t){Wr().beforeHooks.set(e,t)}onSuccess(e,t){Wr().successHooks.set(e,t)}onFailure(e,t){Wr().failureHooks.set(e,t)}before(){return Wr().beforeHooks}success(){return Wr().successHooks}failure(){return Wr().failureHooks}}const wi=new kl;f.HookFilter=class extends f.Filter{async invoke(e,t,n){try{wi.before().forEach((i,c)=>i(e,n));const o=await t.run(e,n);return wi.success().forEach((i,c)=>i(e,n,o)),o}catch(o){throw bs(o)?wi.failure().forEach((i,c)=>i(e,n,o)):wi.failure().forEach((i,c)=>i(e,n,h.SYSTEM_ERROR)),o}}},f.HookFilter=Ul([H("hook",Zi)],f.HookFilter);class mp{constructor(e,t,n,o){s(this,"proxy");s(this,"inspector");s(this,"parameters");s(this,"execution");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}}const $n=class $n{constructor(){s(this,"domain","");s(this,"mdc","");s(this,"flag",new Yn);s(this,"name","")}static from(e){const t=new $n;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=Yn.from(n.splice(0,1).join("")),t.name=n.join("."),t)}static urn(e){const t=new $n;return t.mdc=this.LocalMDC,t.flag=Yn.from("0001000000000000000000000000000000000"),t.name=e,t.domain=this.MESH_DOMAIN,t.toString()}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(pe.anyone(this.domain,$n.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}};s($n,"CN","firmer"),s($n,"MESH_DOMAIN",$n.CN+".tech"),s($n,"LocalMDC","XX00000000000000");let In=$n;class Yn{constructor(){s(this,"v","00");s(this,"proto","00");s(this,"codec","00");s(this,"version","000000");s(this,"zone","00");s(this,"cluster","00");s(this,"cell","00");s(this,"group","00");s(this,"address","000000000000");s(this,"port","00000")}static from(e){if(!e)return new Yn;const t=new Yn;return t.v=pe.substring(e,0,2),t.proto=pe.substring(e,2,2),t.codec=pe.substring(e,4,2),t.version=this.reduce(pe.substring(e,6,6),2),t.zone=pe.substring(e,12,2),t.cluster=pe.substring(e,14,2),t.cell=pe.substring(e,16,2),t.group=pe.substring(e,18,2),t.address=this.reduce(pe.substring(e,20,12),3),t.port=this.reduce(pe.substring(e,32,5),5),t}toString(){const e=this.padding(pe.anyone(this.v,""),2),t=this.padding(pe.anyone(this.proto,""),2),n=this.padding(pe.anyone(this.codec,""),2),o=this.paddingChain(pe.anyone(this.version,""),2,3),i=this.padding(pe.anyone(this.zone,""),2),c=this.padding(pe.anyone(this.cluster,""),2),u=this.padding(pe.anyone(this.cell,""),2),R=this.padding(pe.anyone(this.group,""),2),P=this.paddingChain(pe.anyone(this.address,""),3,4),S=this.padding(pe.anyone(this.port,""),5);return`${e}${t}${n}${o}${i}${c}${u}${R}${P}${S}`}padding(e,t){const n=e.replace(".","");return n.length==t?n:n.length<t?pe.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 gp{constructor(e){s(this,"macro");s(this,"invoker");this.macro=e,this.invoker=zo(this,Zi)}context(e){if(!e||e.length<1)return _();for(let t of e)if(t instanceof Bi)return t;return _()}invoke(e,t,n){return new Promise(async(o,i)=>{try{const c=this.context(n),u=this.referExecution(c,t),R=this.rewriteURN(c,u);c.rewriteURN(R),c.setAttribute(We.REMOTE,this.rewriteAddress(R));const P=u.inflect(c);P.setArguments(n),P.setAttachments(new Map);const S=new mp(this,t,P,u);c.setAttribute(We.INVOCATION,S),o(await this.invoker.run(c,S))}catch(c){i(ri(c))}})}async run(e,t){const n=this.referExecution(e,t.getInspector(e)),o=ze.load(f.Consumer),i=e.getAttribute(We.CONSUMER)??o.getDefault(),c=pe.anyone(e.getAttribute(We.REMOTE),pe.MESH_ADDRESS.get().any()),u=n.schema(e).codec||mn.JSON.name,R=ze.load(f.Codec),P=e.getAttribute(We.CODEC)??R.get(u),S=P.encode(t.getParameters(e)),E=mn.ofName(o.defaultName()).code,U=mn.ofName(R.defaultName()).code,N=In.from(e.getUrn()).resetFlag(E,U).toString(),w=await i.consume(e,c,N,n,S);return await this.deserialize(e,n,P,w)}deserialize(e,t,n,o){return new Promise((i,c)=>{try{const u=t.retype(e),R=n.decode(o,u);if(R.getCause()){c(ri(R.getCause()));return}if(h.SUCCESS.getCode()!=R.getCode()){c(R);return}i(R.getContent())}catch(u){c(ri(u))}})}referExecution(e,t){const o=ze.load(f.Eden).getDefault().refer(e,t.getAnnotation(ke),t.getType(),t);if(o)return o;throw new Error(`Method ${t.getName()} cant be compatible`)}rewriteURN(e,t){var u;const n=(u=e.getPrincipals().peek())==null?void 0:u.id,o=e.getAttribute(We.UNAME),i=e.getAttribute(We.REMOTE_NAME);if(!n&&!o&&!i)return t.schema(e).urn;const c=In.from(t.schema(e).urn);return n&&n!=""&&(c.mdc=n),o&&o!=""&&(c.name=o),i&&i!=""&&(c.name=c.name.replace("${mesh.name}",i)),c.toString()}rewriteAddress(e){return pe.MESH_ADDRESS.get().any()}}var Dl=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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},Go;f.ServiceProxy=Go=class extends f.MethodProxy{proxy(e){return Go.proxy(e)}static proxy(e){return this.doProxy(e,O(""))}static doProxy(e,t){return ti.newProxyInstance(e,new gp(t))}},f.ServiceProxy=Go=Dl([H("mesh")],f.ServiceProxy);class xl{constructor(e){s(this,"service");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(u=>n(u)).catch(u=>o(u));return}n(c)}catch(i){o(i)}})}}class hp{constructor(e){s(this,"invoker");this.invoker=zo(new xl(e),yp)}run(e,t){return this.invoker.run(e,t)}}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 u=r.length-1;u>=0;u--)(c=r[u])&&(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 Ll{constructor(e,t,n){s(this,"making");s(this,"kind");s(this,"service");this.making=e,this.kind=t,this.service=n}}class Hl{constructor(e,t){s(this,"metadata");s(this,"reference");s(this,"proxy");this.metadata=e,this.reference=t,this.proxy=f.ServiceProxy.doProxy(t,e)}}class ql{constructor(e,t,n,o,i){s(this,"urn");s(this,"kind");s(this,"method");s(this,"target");s(this,"resource");s(this,"inspector");s(this,"invoker");s(this,"__intype");s(this,"__retype");this.urn=e,this.kind=t,this.method=n,this.target=o,this.resource=i,this.inspector=n,this.invoker=new hp(o),this.__intype=ze.load(f.Compiler).getDefault().intype(n),this.__retype=ze.load(f.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}}f.MeshEden=class extends f.Eden{constructor(){super(...arguments);s(this,"providers",new q);s(this,"consumers",new q);s(this,"indies",new q);s(this,"services",new q);s(this,"references",new q)}define(t,n,o){return this.makeConsumer(t,n,o).proxy}store(t,n,o){this.providers.set(n,new Ll(!1,n,o))}infer(t,n){const o=In.from(n),i=this.makeServiceExecution(this.getEnviron(t)),c=i==null?void 0:i.get(o.name);if(c)return c;for(let u of i.entries())if(o.matchName(u[0]))return u[1];return new pp(t,o)}refer(t,n,o,i){const c=this.makeConsumer(t,n,o),u=this.getEnviron(t),R=this.indies.computeIfy(o,P=>new q).computeIfy(n,P=>{const S=new q;return this.getMethods(t,o).forEach((E,U)=>E.forEach(N=>{const w=this.makeMethodAsReference(u,n,U,N),M=new ql(w.urn,o,N,c.proxy,w);this.references.set(w.urn,M),S.set(N,M)})),S}).get(i);if(R)return R;throw new Error(`Method ${i.getName()} cant be compatible`)}inferTypes(t){const n=[];for(let o of this.providers)n.push(o[1].kind);return n}referTypes(t){const n=[];for(let o of this.consumers.keys())n.push(o);return n}makeConsumer(t,n,o){return this.consumers.computeIfy(o,i=>new q).computeIfy(n,i=>new Hl(n,o))}makeMethodAsReference(t,n,o,i){var u,R,P,S,E,U,N,w,M,A,W,V,te;const c=new cn;return c.namespace=o.name,c.name=i.getName(),c.version=((u=i.getAnnotation(ke))==null?void 0:u.version)||"",c.proto=((R=i.getAnnotation(ke))==null?void 0:R.proto)||"",c.codec=((P=i.getAnnotation(ke))==null?void 0:P.codec)||"",c.flags=((S=i.getAnnotation(ke))==null?void 0:S.flags)||0,c.timeout=((E=i.getAnnotation(ke))==null?void 0:E.timeout)||12e3,c.retries=((U=i.getAnnotation(ke))==null?void 0:U.retries)||0,c.mdc=((N=i.getAnnotation(ke))==null?void 0:N.mdc)||"",c.zone=((w=i.getAnnotation(ke))==null?void 0:w.zone)||"",c.cluster=((M=i.getAnnotation(ke))==null?void 0:M.cluster)||"",c.cell=((A=i.getAnnotation(ke))==null?void 0:A.cell)||"",c.group=((W=i.getAnnotation(ke))==null?void 0:W.group)||"",c.address=((V=i.getAnnotation(ke))==null?void 0:V.address)||"",c.urn=this.getURN(((te=i.getAnnotation(ke))==null?void 0:te.name)||"",wt,t),c}getURN(t,n,o){const i=new In;return i.domain=In.MESH_DOMAIN,i.mdc=pe.anyone(n.mdc,o.mdc),i.name=t,i.flag=this.getURNFlag(n),i.toString()}getURNFlag(t){const n=(t.address||"").split(":"),o=new Yn;return o.v="00",o.proto=mn.ofName(t.proto).code,o.codec=mn.ofName(t.codec).code,o.version=t.version,o.zone=t.zone,o.cluster=t.cluster,o.cell=t.cell,o.group=t.group,o.address=n.length>0?n[0]:"",o.port=n.length>1?n[1]:"",o}getMethods(t,n){const o=ti.getMethods(n),i=new q;return i.set(n,o),i}getEnviron(t){const n=new qe;return n.mdc=In.LocalMDC,n}makeServiceExecution(t){for(let n of this.providers)n[1].making;return this.services}},f.MeshEden=Bl([H("mesh")],f.MeshEden);var zl=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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 Wo="mock";f.MockFilter=class extends f.Filter{async invoke(e,t,n){if(!xi.Mock.matches(e.getRunMode())&&!ki.Mock.enable())return await t.run(e,n);const o=ze.load(n.getInspector(e).getType()).want(Wo);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))}},f.MockFilter=zl([H(Wo,Zi)],f.MockFilter);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 u=r.length-1;u>=0;u--)(c=r[u])&&(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.Provider=class{},f.Provider=Gl([H(f.Consumer.GRPC)],f.Provider);var Wl=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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.GRPCConsumer=class extends f.Consumer{start(){}close(){}consume(e,t,n,o,i){return Promise.reject(h.URN_NOT_PERMIT)}},f.GRPCConsumer=Wl([H(f.Consumer.GRPC)],f.GRPCConsumer);var Vl=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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.GRPCProvider=class extends f.Provider{start(){}close(){}},f.GRPCProvider=Vl([H(f.Consumer.GRPC)],f.GRPCProvider);function bp(r,e){return function(){return r.apply(e,arguments)}}const{toString:Jl}=Object.prototype,{getPrototypeOf:Vo}=Object,{iterator:eo,toStringTag:_p}=Symbol,to=(r=>e=>{const t=Jl.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Zt=r=>(r=r.toLowerCase(),e=>to(e)===r),no=r=>e=>typeof e===r,{isArray:Vr}=Array,Ei=no("undefined");function Kl(r){return r!==null&&!Ei(r)&&r.constructor!==null&&!Ei(r.constructor)&&At(r.constructor.isBuffer)&&r.constructor.isBuffer(r)}const Op=Zt("ArrayBuffer");function Xl(r){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(r):e=r&&r.buffer&&Op(r.buffer),e}const Yl=no("string"),At=no("function"),Sp=no("number"),ro=r=>r!==null&&typeof r=="object",Ql=r=>r===!0||r===!1,io=r=>{if(to(r)!=="object")return!1;const e=Vo(r);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(_p in r)&&!(eo in r)},Zl=Zt("Date"),ey=Zt("File"),ty=Zt("Blob"),ny=Zt("FileList"),ry=r=>ro(r)&&At(r.pipe),iy=r=>{let e;return r&&(typeof FormData=="function"&&r instanceof FormData||At(r.append)&&((e=to(r))==="formdata"||e==="object"&&At(r.toString)&&r.toString()==="[object FormData]"))},oy=Zt("URLSearchParams"),[sy,cy,ay,uy]=["ReadableStream","Request","Response","Headers"].map(Zt),dy=r=>r.trim?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ti(r,e,{allOwnKeys:t=!1}={}){if(r===null||typeof r>"u")return;let n,o;if(typeof r!="object"&&(r=[r]),Vr(r))for(n=0,o=r.length;n<o;n++)e.call(null,r[n],n,r);else{const i=t?Object.getOwnPropertyNames(r):Object.keys(r),c=i.length;let u;for(n=0;n<c;n++)u=i[n],e.call(null,r[u],u,r)}}function vp(r,e){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 pr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Rp=r=>!Ei(r)&&r!==pr;function Jo(){const{caseless:r}=Rp(this)&&this||{},e={},t=(n,o)=>{const i=r&&vp(e,o)||o;io(e[i])&&io(n)?e[i]=Jo(e[i],n):io(n)?e[i]=Jo({},n):Vr(n)?e[i]=n.slice():e[i]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&Ti(arguments[n],t);return e}const fy=(r,e,t,{allOwnKeys:n}={})=>(Ti(e,(o,i)=>{t&&At(o)?r[i]=bp(o,t):r[i]=o},{allOwnKeys:n}),r),py=r=>(r.charCodeAt(0)===65279&&(r=r.slice(1)),r),ly=(r,e,t,n)=>{r.prototype=Object.create(e.prototype,n),r.prototype.constructor=r,Object.defineProperty(r,"super",{value:e.prototype}),t&&Object.assign(r.prototype,t)},yy=(r,e,t,n)=>{let o,i,c;const u={};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))&&!u[c]&&(e[c]=r[c],u[c]=!0);r=t!==!1&&Vo(r)}while(r&&(!t||t(r,e))&&r!==Object.prototype);return e},my=(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},gy=r=>{if(!r)return null;if(Vr(r))return r;let e=r.length;if(!Sp(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=r[e];return t},hy=(r=>e=>r&&e instanceof r)(typeof Uint8Array<"u"&&Vo(Uint8Array)),by=(r,e)=>{const n=(r&&r[eo]).call(r);let o;for(;(o=n.next())&&!o.done;){const i=o.value;e.call(r,i[0],i[1])}},_y=(r,e)=>{let t;const n=[];for(;(t=r.exec(e))!==null;)n.push(t);return n},Oy=Zt("HTMLFormElement"),Sy=r=>r.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,o){return n.toUpperCase()+o}),Pp=(({hasOwnProperty:r})=>(e,t)=>r.call(e,t))(Object.prototype),vy=Zt("RegExp"),jp=(r,e)=>{const t=Object.getOwnPropertyDescriptors(r),n={};Ti(t,(o,i)=>{let c;(c=e(o,i,r))!==!1&&(n[i]=c||o)}),Object.defineProperties(r,n)},Ry=r=>{jp(r,(e,t)=>{if(At(r)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const n=r[t];if(At(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+"'")})}})},Py=(r,e)=>{const t={},n=o=>{o.forEach(i=>{t[i]=!0})};return Vr(r)?n(r):n(String(r).split(e)),t},jy=()=>{},wy=(r,e)=>r!=null&&Number.isFinite(r=+r)?r:e;function Ey(r){return!!(r&&At(r.append)&&r[_p]==="FormData"&&r[eo])}const Ty=r=>{const e=new Array(10),t=(n,o)=>{if(ro(n)){if(e.indexOf(n)>=0)return;if(!("toJSON"in n)){e[o]=n;const i=Vr(n)?[]:{};return Ti(n,(c,u)=>{const R=t(c,o+1);!Ei(R)&&(i[u]=R)}),e[o]=void 0,i}}return n};return t(r,0)},Ny=Zt("AsyncFunction"),Ay=r=>r&&(ro(r)||At(r))&&At(r.then)&&At(r.catch),wp=((r,e)=>r?setImmediate:e?((t,n)=>(pr.addEventListener("message",({source:o,data:i})=>{o===pr&&i===t&&n.length&&n.shift()()},!1),o=>{n.push(o),pr.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",At(pr.postMessage)),My=typeof queueMicrotask<"u"?queueMicrotask.bind(pr):typeof process<"u"&&process.nextTick||wp,j={isArray:Vr,isArrayBuffer:Op,isBuffer:Kl,isFormData:iy,isArrayBufferView:Xl,isString:Yl,isNumber:Sp,isBoolean:Ql,isObject:ro,isPlainObject:io,isReadableStream:sy,isRequest:cy,isResponse:ay,isHeaders:uy,isUndefined:Ei,isDate:Zl,isFile:ey,isBlob:ty,isRegExp:vy,isFunction:At,isStream:ry,isURLSearchParams:oy,isTypedArray:hy,isFileList:ny,forEach:Ti,merge:Jo,extend:fy,trim:dy,stripBOM:py,inherits:ly,toFlatObject:yy,kindOf:to,kindOfTest:Zt,endsWith:my,toArray:gy,forEachEntry:by,matchAll:_y,isHTMLForm:Oy,hasOwnProperty:Pp,hasOwnProp:Pp,reduceDescriptors:jp,freezeMethods:Ry,toObjectSet:Py,toCamelCase:Sy,noop:jy,toFiniteNumber:wy,findKey:vp,global:pr,isContextDefined:Rp,isSpecCompliantForm:Ey,toJSONObject:Ty,isAsyncFn:Ny,isThenable:Ay,setImmediate:wp,asap:My,isIterable:r=>r!=null&&At(r[eo])};function Y(r,e,t,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=r,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}j.inherits(Y,Error,{toJSON:function(){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:j.toJSONObject(this.config),code:this.code,status:this.status}}});const Ep=Y.prototype,Tp={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(r=>{Tp[r]={value:r}}),Object.defineProperties(Y,Tp),Object.defineProperty(Ep,"isAxiosError",{value:!0}),Y.from=(r,e,t,n,o,i)=>{const c=Object.create(Ep);return j.toFlatObject(r,c,function(R){return R!==Error.prototype},u=>u!=="isAxiosError"),Y.call(c,r.message,e,t,n,o),c.cause=r,c.name=r.name,i&&Object.assign(c,i),c};const Iy=null;function Ko(r){return j.isPlainObject(r)||j.isArray(r)}function Np(r){return j.endsWith(r,"[]")?r.slice(0,-2):r}function Ap(r,e,t){return r?r.concat(e).map(function(o,i){return o=Np(o),!t&&i?"["+o+"]":o}).join(t?".":""):e}function $y(r){return j.isArray(r)&&!r.some(Ko)}const Cy=j.toFlatObject(j,{},null,function(e){return/^is[A-Z]/.test(e)});function oo(r,e,t){if(!j.isObject(r))throw new TypeError("target must be an object");e=e||new FormData,t=j.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(M,A){return!j.isUndefined(A[M])});const n=t.metaTokens,o=t.visitor||S,i=t.dots,c=t.indexes,R=(t.Blob||typeof Blob<"u"&&Blob)&&j.isSpecCompliantForm(e);if(!j.isFunction(o))throw new TypeError("visitor must be a function");function P(w){if(w===null)return"";if(j.isDate(w))return w.toISOString();if(!R&&j.isBlob(w))throw new Y("Blob is not supported. Use a Buffer instead.");return j.isArrayBuffer(w)||j.isTypedArray(w)?R&&typeof Blob=="function"?new Blob([w]):Buffer.from(w):w}function S(w,M,A){let W=w;if(w&&!A&&typeof w=="object"){if(j.endsWith(M,"{}"))M=n?M:M.slice(0,-2),w=JSON.stringify(w);else if(j.isArray(w)&&$y(w)||(j.isFileList(w)||j.endsWith(M,"[]"))&&(W=j.toArray(w)))return M=Np(M),W.forEach(function(te,Ve){!(j.isUndefined(te)||te===null)&&e.append(c===!0?Ap([M],Ve,i):c===null?M:M+"[]",P(te))}),!1}return Ko(w)?!0:(e.append(Ap(A,M,i),P(w)),!1)}const E=[],U=Object.assign(Cy,{defaultVisitor:S,convertValue:P,isVisitable:Ko});function N(w,M){if(!j.isUndefined(w)){if(E.indexOf(w)!==-1)throw Error("Circular reference detected in "+M.join("."));E.push(w),j.forEach(w,function(W,V){(!(j.isUndefined(W)||W===null)&&o.call(e,W,j.isString(V)?V.trim():V,M,U))===!0&&N(W,M?M.concat(V):[V])}),E.pop()}}if(!j.isObject(r))throw new TypeError("data must be an object");return N(r),e}function Mp(r){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(r).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function Xo(r,e){this._pairs=[],r&&oo(r,this,e)}const Ip=Xo.prototype;Ip.append=function(e,t){this._pairs.push([e,t])},Ip.toString=function(e){const t=e?function(n){return e.call(this,n,Mp)}:Mp;return this._pairs.map(function(o){return t(o[0])+"="+t(o[1])},"").join("&")};function Uy(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function $p(r,e,t){if(!e)return r;const n=t&&t.encode||Uy;j.isFunction(t)&&(t={serialize:t});const o=t&&t.serialize;let i;if(o?i=o(e,t):i=j.isURLSearchParams(e)?e.toString():new Xo(e,t).toString(n),i){const c=r.indexOf("#");c!==-1&&(r=r.slice(0,c)),r+=(r.indexOf("?")===-1?"?":"&")+i}return r}class Cp{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){j.forEach(this.handlers,function(n){n!==null&&e(n)})}}const Up={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Fy={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Xo,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Yo=typeof window<"u"&&typeof document<"u",Qo=typeof navigator=="object"&&navigator||void 0,ky=Yo&&(!Qo||["ReactNative","NativeScript","NS"].indexOf(Qo.product)<0),Dy=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",xy=Yo&&window.location.href||"http://localhost",ct={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Yo,hasStandardBrowserEnv:ky,hasStandardBrowserWebWorkerEnv:Dy,navigator:Qo,origin:xy},Symbol.toStringTag,{value:"Module"})),...Fy};function By(r,e){return oo(r,new ct.classes.URLSearchParams,Object.assign({visitor:function(t,n,o,i){return ct.isNode&&j.isBuffer(t)?(this.append(n,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function Ly(r){return j.matchAll(/\w+|\[(\w*)]/g,r).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Hy(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 Fp(r){function e(t,n,o,i){let c=t[i++];if(c==="__proto__")return!0;const u=Number.isFinite(+c),R=i>=t.length;return c=!c&&j.isArray(o)?o.length:c,R?(j.hasOwnProp(o,c)?o[c]=[o[c],n]:o[c]=n,!u):((!o[c]||!j.isObject(o[c]))&&(o[c]=[]),e(t,n,o[c],i)&&j.isArray(o[c])&&(o[c]=Hy(o[c])),!u)}if(j.isFormData(r)&&j.isFunction(r.entries)){const t={};return j.forEachEntry(r,(n,o)=>{e(Ly(n),o,t,0)}),t}return null}function qy(r,e,t){if(j.isString(r))try{return(e||JSON.parse)(r),j.trim(r)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(r)}const Ni={transitional:Up,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",o=n.indexOf("application/json")>-1,i=j.isObject(e);if(i&&j.isHTMLForm(e)&&(e=new FormData(e)),j.isFormData(e))return o?JSON.stringify(Fp(e)):e;if(j.isArrayBuffer(e)||j.isBuffer(e)||j.isStream(e)||j.isFile(e)||j.isBlob(e)||j.isReadableStream(e))return e;if(j.isArrayBufferView(e))return e.buffer;if(j.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let u;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return By(e,this.formSerializer).toString();if((u=j.isFileList(e))||n.indexOf("multipart/form-data")>-1){const R=this.env&&this.env.FormData;return oo(u?{"files[]":e}:e,R&&new R,this.formSerializer)}}return i||o?(t.setContentType("application/json",!1),qy(e)):e}],transformResponse:[function(e){const t=this.transitional||Ni.transitional,n=t&&t.forcedJSONParsing,o=this.responseType==="json";if(j.isResponse(e)||j.isReadableStream(e))return e;if(e&&j.isString(e)&&(n&&!this.responseType||o)){const c=!(t&&t.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(u){if(c)throw u.name==="SyntaxError"?Y.from(u,Y.ERR_BAD_RESPONSE,this,null,this.response):u}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ct.classes.FormData,Blob:ct.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};j.forEach(["delete","get","head","post","put","patch"],r=>{Ni.headers[r]={}});const zy=j.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"]),Gy=r=>{const e={};let t,n,o;return r&&r.split(`
20
+ `).forEach(function(c){o=c.indexOf(":"),t=c.substring(0,o).trim().toLowerCase(),n=c.substring(o+1).trim(),!(!t||e[t]&&zy[t])&&(t==="set-cookie"?e[t]?e[t].push(n):e[t]=[n]:e[t]=e[t]?e[t]+", "+n:n)}),e},kp=Symbol("internals");function Ai(r){return r&&String(r).trim().toLowerCase()}function so(r){return r===!1||r==null?r:j.isArray(r)?r.map(so):String(r)}function Wy(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 Vy=r=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim());function Zo(r,e,t,n,o){if(j.isFunction(n))return n.call(this,e,t);if(o&&(e=t),!!j.isString(e)){if(j.isString(n))return e.indexOf(n)!==-1;if(j.isRegExp(n))return n.test(e)}}function Jy(r){return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function Ky(r,e){const t=j.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 Mt=class{constructor(e){e&&this.set(e)}set(e,t,n){const o=this;function i(u,R,P){const S=Ai(R);if(!S)throw new Error("header name must be a non-empty string");const E=j.findKey(o,S);(!E||o[E]===void 0||P===!0||P===void 0&&o[E]!==!1)&&(o[E||R]=so(u))}const c=(u,R)=>j.forEach(u,(P,S)=>i(P,S,R));if(j.isPlainObject(e)||e instanceof this.constructor)c(e,t);else if(j.isString(e)&&(e=e.trim())&&!Vy(e))c(Gy(e),t);else if(j.isObject(e)&&j.isIterable(e)){let u={},R,P;for(const S of e){if(!j.isArray(S))throw TypeError("Object iterator must return a key-value pair");u[P=S[0]]=(R=u[P])?j.isArray(R)?[...R,S[1]]:[R,S[1]]:S[1]}c(u,t)}else e!=null&&i(t,e,n);return this}get(e,t){if(e=Ai(e),e){const n=j.findKey(this,e);if(n){const o=this[n];if(!t)return o;if(t===!0)return Wy(o);if(j.isFunction(t))return t.call(this,o,n);if(j.isRegExp(t))return t.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ai(e),e){const n=j.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||Zo(this,this[n],n,t)))}return!1}delete(e,t){const n=this;let o=!1;function i(c){if(c=Ai(c),c){const u=j.findKey(n,c);u&&(!t||Zo(n,n[u],u,t))&&(delete n[u],o=!0)}}return j.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||Zo(this,this[i],i,e,!0))&&(delete this[i],o=!0)}return o}normalize(e){const t=this,n={};return j.forEach(this,(o,i)=>{const c=j.findKey(n,i);if(c){t[c]=so(o),delete t[i];return}const u=e?Jy(i):String(i).trim();u!==i&&delete t[i],t[u]=so(o),n[u]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return j.forEach(this,(n,o)=>{n!=null&&n!==!1&&(t[o]=e&&j.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(`
21
+ `)}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[kp]=this[kp]={accessors:{}}).accessors,o=this.prototype;function i(c){const u=Ai(c);n[u]||(Ky(o,c),n[u]=!0)}return j.isArray(e)?e.forEach(i):i(e),this}};Mt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),j.reduceDescriptors(Mt.prototype,({value:r},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>r,set(n){this[t]=n}}}),j.freezeMethods(Mt);function es(r,e){const t=this||Ni,n=e||t,o=Mt.from(n.headers);let i=n.data;return j.forEach(r,function(u){i=u.call(t,i,o.normalize(),e?e.status:void 0)}),o.normalize(),i}function Dp(r){return!!(r&&r.__CANCEL__)}function Jr(r,e,t){Y.call(this,r??"canceled",Y.ERR_CANCELED,e,t),this.name="CanceledError"}j.inherits(Jr,Y,{__CANCEL__:!0});function xp(r,e,t){const n=t.config.validateStatus;!t.status||!n||n(t.status)?r(t):e(new Y("Request failed with status code "+t.status,[Y.ERR_BAD_REQUEST,Y.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function Xy(r){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r);return e&&e[1]||""}function Yy(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(R){const P=Date.now(),S=n[i];c||(c=P),t[o]=R,n[o]=P;let E=i,U=0;for(;E!==o;)U+=t[E++],E=E%r;if(o=(o+1)%r,o===i&&(i=(i+1)%r),P-c<e)return;const N=S&&P-S;return N?Math.round(U*1e3/N):void 0}}function Qy(r,e){let t=0,n=1e3/e,o,i;const c=(P,S=Date.now())=>{t=S,o=null,i&&(clearTimeout(i),i=null),r.apply(null,P)};return[(...P)=>{const S=Date.now(),E=S-t;E>=n?c(P,S):(o=P,i||(i=setTimeout(()=>{i=null,c(o)},n-E)))},()=>o&&c(o)]}const co=(r,e,t=3)=>{let n=0;const o=Yy(50,250);return Qy(i=>{const c=i.loaded,u=i.lengthComputable?i.total:void 0,R=c-n,P=o(R),S=c<=u;n=c;const E={loaded:c,total:u,progress:u?c/u:void 0,bytes:R,rate:P||void 0,estimated:P&&u&&S?(u-c)/P:void 0,event:i,lengthComputable:u!=null,[e?"download":"upload"]:!0};r(E)},t)},Bp=(r,e)=>{const t=r!=null;return[n=>e[0]({lengthComputable:t,total:r,loaded:n}),e[1]]},Lp=r=>(...e)=>j.asap(()=>r(...e)),Zy=ct.hasStandardBrowserEnv?((r,e)=>t=>(t=new URL(t,ct.origin),r.protocol===t.protocol&&r.host===t.host&&(e||r.port===t.port)))(new URL(ct.origin),ct.navigator&&/(msie|trident)/i.test(ct.navigator.userAgent)):()=>!0,em=ct.hasStandardBrowserEnv?{write(r,e,t,n,o,i){const c=[r+"="+encodeURIComponent(e)];j.isNumber(t)&&c.push("expires="+new Date(t).toGMTString()),j.isString(n)&&c.push("path="+n),j.isString(o)&&c.push("domain="+o),i===!0&&c.push("secure"),document.cookie=c.join("; ")},read(r){const e=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(r){this.write(r,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function tm(r){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)}function nm(r,e){return e?r.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):r}function Hp(r,e,t){let n=!tm(e);return r&&(n||t==!1)?nm(r,e):e}const qp=r=>r instanceof Mt?{...r}:r;function lr(r,e){e=e||{};const t={};function n(P,S,E,U){return j.isPlainObject(P)&&j.isPlainObject(S)?j.merge.call({caseless:U},P,S):j.isPlainObject(S)?j.merge({},S):j.isArray(S)?S.slice():S}function o(P,S,E,U){if(j.isUndefined(S)){if(!j.isUndefined(P))return n(void 0,P,E,U)}else return n(P,S,E,U)}function i(P,S){if(!j.isUndefined(S))return n(void 0,S)}function c(P,S){if(j.isUndefined(S)){if(!j.isUndefined(P))return n(void 0,P)}else return n(void 0,S)}function u(P,S,E){if(E in e)return n(P,S);if(E in r)return n(void 0,P)}const R={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:u,headers:(P,S,E)=>o(qp(P),qp(S),E,!0)};return j.forEach(Object.keys(Object.assign({},r,e)),function(S){const E=R[S]||o,U=E(r[S],e[S],S);j.isUndefined(U)&&E!==u||(t[S]=U)}),t}const zp=r=>{const e=lr({},r);let{data:t,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:c,auth:u}=e;e.headers=c=Mt.from(c),e.url=$p(Hp(e.baseURL,e.url,e.allowAbsoluteUrls),r.params,r.paramsSerializer),u&&c.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):"")));let R;if(j.isFormData(t)){if(ct.hasStandardBrowserEnv||ct.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if((R=c.getContentType())!==!1){const[P,...S]=R?R.split(";").map(E=>E.trim()).filter(Boolean):[];c.setContentType([P||"multipart/form-data",...S].join("; "))}}if(ct.hasStandardBrowserEnv&&(n&&j.isFunction(n)&&(n=n(e)),n||n!==!1&&Zy(e.url))){const P=o&&i&&em.read(i);P&&c.set(o,P)}return e},rm=typeof XMLHttpRequest<"u"&&function(r){return new Promise(function(t,n){const o=zp(r);let i=o.data;const c=Mt.from(o.headers).normalize();let{responseType:u,onUploadProgress:R,onDownloadProgress:P}=o,S,E,U,N,w;function M(){N&&N(),w&&w(),o.cancelToken&&o.cancelToken.unsubscribe(S),o.signal&&o.signal.removeEventListener("abort",S)}let A=new XMLHttpRequest;A.open(o.method.toUpperCase(),o.url,!0),A.timeout=o.timeout;function W(){if(!A)return;const te=Mt.from("getAllResponseHeaders"in A&&A.getAllResponseHeaders()),re={data:!u||u==="text"||u==="json"?A.responseText:A.response,status:A.status,statusText:A.statusText,headers:te,config:r,request:A};xp(function(Jt){t(Jt),M()},function(Jt){n(Jt),M()},re),A=null}"onloadend"in A?A.onloadend=W:A.onreadystatechange=function(){!A||A.readyState!==4||A.status===0&&!(A.responseURL&&A.responseURL.indexOf("file:")===0)||setTimeout(W)},A.onabort=function(){A&&(n(new Y("Request aborted",Y.ECONNABORTED,r,A)),A=null)},A.onerror=function(){n(new Y("Network Error",Y.ERR_NETWORK,r,A)),A=null},A.ontimeout=function(){let Ve=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const re=o.transitional||Up;o.timeoutErrorMessage&&(Ve=o.timeoutErrorMessage),n(new Y(Ve,re.clarifyTimeoutError?Y.ETIMEDOUT:Y.ECONNABORTED,r,A)),A=null},i===void 0&&c.setContentType(null),"setRequestHeader"in A&&j.forEach(c.toJSON(),function(Ve,re){A.setRequestHeader(re,Ve)}),j.isUndefined(o.withCredentials)||(A.withCredentials=!!o.withCredentials),u&&u!=="json"&&(A.responseType=o.responseType),P&&([U,w]=co(P,!0),A.addEventListener("progress",U)),R&&A.upload&&([E,N]=co(R),A.upload.addEventListener("progress",E),A.upload.addEventListener("loadend",N)),(o.cancelToken||o.signal)&&(S=te=>{A&&(n(!te||te.type?new Jr(null,r,A):te),A.abort(),A=null)},o.cancelToken&&o.cancelToken.subscribe(S),o.signal&&(o.signal.aborted?S():o.signal.addEventListener("abort",S)));const V=Xy(o.url);if(V&&ct.protocols.indexOf(V)===-1){n(new Y("Unsupported protocol "+V+":",Y.ERR_BAD_REQUEST,r));return}A.send(i||null)})},im=(r,e)=>{const{length:t}=r=r?r.filter(Boolean):[];if(e||t){let n=new AbortController,o;const i=function(P){if(!o){o=!0,u();const S=P instanceof Error?P:this.reason;n.abort(S instanceof Y?S:new Jr(S instanceof Error?S.message:S))}};let c=e&&setTimeout(()=>{c=null,i(new Y(`timeout ${e} of ms exceeded`,Y.ETIMEDOUT))},e);const u=()=>{r&&(c&&clearTimeout(c),c=null,r.forEach(P=>{P.unsubscribe?P.unsubscribe(i):P.removeEventListener("abort",i)}),r=null)};r.forEach(P=>P.addEventListener("abort",i));const{signal:R}=n;return R.unsubscribe=()=>j.asap(u),R}},om=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},sm=async function*(r,e){for await(const t of cm(r))yield*om(t,e)},cm=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()}},Gp=(r,e,t,n)=>{const o=sm(r,e);let i=0,c,u=R=>{c||(c=!0,n&&n(R))};return new ReadableStream({async pull(R){try{const{done:P,value:S}=await o.next();if(P){u(),R.close();return}let E=S.byteLength;if(t){let U=i+=E;t(U)}R.enqueue(new Uint8Array(S))}catch(P){throw u(P),P}},cancel(R){return u(R),o.return()}},{highWaterMark:2})},ao=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Wp=ao&&typeof ReadableStream=="function",am=ao&&(typeof TextEncoder=="function"?(r=>e=>r.encode(e))(new TextEncoder):async r=>new Uint8Array(await new Response(r).arrayBuffer())),Vp=(r,...e)=>{try{return!!r(...e)}catch{return!1}},um=Wp&&Vp(()=>{let r=!1;const e=new Request(ct.origin,{body:new ReadableStream,method:"POST",get duplex(){return r=!0,"half"}}).headers.has("Content-Type");return r&&!e}),Jp=64*1024,ts=Wp&&Vp(()=>j.isReadableStream(new Response("").body)),uo={stream:ts&&(r=>r.body)};ao&&(r=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!uo[e]&&(uo[e]=j.isFunction(r[e])?t=>t[e]():(t,n)=>{throw new Y(`Response type '${e}' is not supported`,Y.ERR_NOT_SUPPORT,n)})})})(new Response);const dm=async r=>{if(r==null)return 0;if(j.isBlob(r))return r.size;if(j.isSpecCompliantForm(r))return(await new Request(ct.origin,{method:"POST",body:r}).arrayBuffer()).byteLength;if(j.isArrayBufferView(r)||j.isArrayBuffer(r))return r.byteLength;if(j.isURLSearchParams(r)&&(r=r+""),j.isString(r))return(await am(r)).byteLength},fm=async(r,e)=>{const t=j.toFiniteNumber(r.getContentLength());return t??dm(e)},ns={http:Iy,xhr:rm,fetch:ao&&(async r=>{let{url:e,method:t,data:n,signal:o,cancelToken:i,timeout:c,onDownloadProgress:u,onUploadProgress:R,responseType:P,headers:S,withCredentials:E="same-origin",fetchOptions:U}=zp(r);P=P?(P+"").toLowerCase():"text";let N=im([o,i&&i.toAbortSignal()],c),w;const M=N&&N.unsubscribe&&(()=>{N.unsubscribe()});let A;try{if(R&&um&&t!=="get"&&t!=="head"&&(A=await fm(S,n))!==0){let re=new Request(e,{method:"POST",body:n,duplex:"half"}),kt;if(j.isFormData(n)&&(kt=re.headers.get("content-type"))&&S.setContentType(kt),re.body){const[Jt,tr]=Bp(A,co(Lp(R)));n=Gp(re.body,Jp,Jt,tr)}}j.isString(E)||(E=E?"include":"omit");const W="credentials"in Request.prototype;w=new Request(e,{...U,signal:N,method:t.toUpperCase(),headers:S.normalize().toJSON(),body:n,duplex:"half",credentials:W?E:void 0});let V=await fetch(w);const te=ts&&(P==="stream"||P==="response");if(ts&&(u||te&&M)){const re={};["status","statusText","headers"].forEach(Yr=>{re[Yr]=V[Yr]});const kt=j.toFiniteNumber(V.headers.get("content-length")),[Jt,tr]=u&&Bp(kt,co(Lp(u),!0))||[];V=new Response(Gp(V.body,Jp,Jt,()=>{tr&&tr(),M&&M()}),re)}P=P||"text";let Ve=await uo[j.findKey(uo,P)||"text"](V,r);return!te&&M&&M(),await new Promise((re,kt)=>{xp(re,kt,{data:Ve,headers:Mt.from(V.headers),status:V.status,statusText:V.statusText,config:r,request:w})})}catch(W){throw M&&M(),W&&W.name==="TypeError"&&/Load failed|fetch/i.test(W.message)?Object.assign(new Y("Network Error",Y.ERR_NETWORK,r,w),{cause:W.cause||W}):Y.from(W,W&&W.code,r,w)}})};j.forEach(ns,(r,e)=>{if(r){try{Object.defineProperty(r,"name",{value:e})}catch{}Object.defineProperty(r,"adapterName",{value:e})}});const Kp=r=>`- ${r}`,pm=r=>j.isFunction(r)||r===null||r===!1,Xp={getAdapter:r=>{r=j.isArray(r)?r:[r];const{length:e}=r;let t,n;const o={};for(let i=0;i<e;i++){t=r[i];let c;if(n=t,!pm(t)&&(n=ns[(c=String(t)).toLowerCase()],n===void 0))throw new Y(`Unknown adapter '${c}'`);if(n)break;o[c||"#"+i]=n}if(!n){const i=Object.entries(o).map(([u,R])=>`adapter ${u} `+(R===!1?"is not supported by the environment":"is not available in the build"));let c=e?i.length>1?`since :
22
22
  `+i.map(Kp).join(`
23
- `):" "+Kp(i[0]):"as no adapter specified";throw new Y("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return n},adapters:ns};function rs(r){if(r.cancelToken&&r.cancelToken.throwIfRequested(),r.signal&&r.signal.aborted)throw new Jr(null,r)}function Yp(r){return rs(r),r.headers=Mt.from(r.headers),r.data=es.call(r,r.transformRequest),["post","put","patch"].indexOf(r.method)!==-1&&r.headers.setContentType("application/x-www-form-urlencoded",!1),Xp.getAdapter(r.adapter||Ni.adapter)(r).then(function(n){return rs(r),n.data=es.call(r,r.transformResponse,n),n.headers=Mt.from(n.headers),n},function(n){return Dp(n)||(rs(r),n&&n.response&&(n.response.data=es.call(r,r.transformResponse,n.response),n.response.headers=Mt.from(n.response.headers))),Promise.reject(n)})}const Qp="1.9.0",fo={};["object","boolean","number","function","string","symbol"].forEach((r,e)=>{fo[r]=function(n){return typeof n===r||"a"+(e<1?"n ":" ")+r}});const Zp={};fo.transitional=function(e,t,n){function o(i,c){return"[Axios v"+Qp+"] Transitional option '"+i+"'"+c+(n?". "+n:"")}return(i,c,u)=>{if(e===!1)throw new Y(o(c," has been removed"+(t?" in "+t:"")),Y.ERR_DEPRECATED);return t&&!Zp[c]&&(Zp[c]=!0,console.warn(o(c," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,c,u):!0}},fo.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function lm(r,e,t){if(typeof r!="object")throw new Y("options must be an object",Y.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 u=r[i],P=u===void 0||c(u,i,r);if(P!==!0)throw new Y("option "+i+" must be "+P,Y.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new Y("Unknown option "+i,Y.ERR_BAD_OPTION)}}const po={assertOptions:lm,validators:fo},gn=po.validators;let yr=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Cp,response:new Cp}}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+=`
24
- `+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&&po.assertOptions(n,{silentJSONParsing:gn.transitional(gn.boolean),forcedJSONParsing:gn.transitional(gn.boolean),clarifyTimeoutError:gn.transitional(gn.boolean)},!1),o!=null&&(j.isFunction(o)?t.paramsSerializer={serialize:o}:po.assertOptions(o,{encode:gn.function,serialize:gn.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),po.assertOptions(t,{baseUrl:gn.spelling("baseURL"),withXsrfToken:gn.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let c=i&&j.merge(i.common,i[t.method]);i&&j.forEach(["delete","get","head","post","put","patch","common"],w=>{delete i[w]}),t.headers=Mt.concat(c,i);const u=[];let P=!0;this.interceptors.request.forEach(function(M){typeof M.runWhen=="function"&&M.runWhen(t)===!1||(P=P&&M.synchronous,u.unshift(M.fulfilled,M.rejected))});const R=[];this.interceptors.response.forEach(function(M){R.push(M.fulfilled,M.rejected)});let S,E=0,U;if(!P){const w=[Yp.bind(this),void 0];for(w.unshift.apply(w,u),w.push.apply(w,R),U=w.length,S=Promise.resolve(t);E<U;)S=S.then(w[E++],w[E++]);return S}U=u.length;let N=t;for(E=0;E<U;){const w=u[E++],M=u[E++];try{N=w(N)}catch(A){M.call(this,A);break}}try{S=Yp.call(this,N)}catch(w){return Promise.reject(w)}for(E=0,U=R.length;E<U;)S=S.then(R[E++],R[E++]);return S}getUri(e){e=lr(this.defaults,e);const t=Hp(e.baseURL,e.url,e.allowAbsoluteUrls);return $p(t,e.params,e.paramsSerializer)}};j.forEach(["delete","get","head","options"],function(e){yr.prototype[e]=function(t,n){return this.request(lr(n||{},{method:e,url:t,data:(n||{}).data}))}}),j.forEach(["post","put","patch"],function(e){function t(n){return function(i,c,u){return this.request(lr(u||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:c}))}}yr.prototype[e]=t(),yr.prototype[e+"Form"]=t(!0)});let ym=class rl{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(u=>{n.subscribe(u),i=u}).then(o);return c.cancel=function(){n.unsubscribe(i)},c},e(function(i,c,u){n.reason||(n.reason=new Jr(i,c,u),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 rl(function(o){e=o}),cancel:e}}};function mm(r){return function(t){return r.apply(null,t)}}function gm(r){return j.isObject(r)&&r.isAxiosError===!0}const is={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};Object.entries(is).forEach(([r,e])=>{is[e]=r});function el(r){const e=new yr(r),t=bp(yr.prototype.request,e);return j.extend(t,yr.prototype,e,{allOwnKeys:!0}),j.extend(t,e,null,{allOwnKeys:!0}),t.create=function(o){return el(lr(r,o))},t}const Be=el(Ni);Be.Axios=yr,Be.CanceledError=Jr,Be.CancelToken=ym,Be.isCancel=Dp,Be.VERSION=Qp,Be.toFormData=oo,Be.AxiosError=Y,Be.Cancel=Be.CanceledError,Be.all=function(e){return Promise.all(e)},Be.spread=mm,Be.isAxiosError=gm,Be.mergeConfig=lr,Be.AxiosHeaders=Mt,Be.formToJSON=r=>Fp(j.isHTMLForm(r)?new FormData(r):r),Be.getAdapter=Xp.getAdapter,Be.HttpStatusCode=is,Be.default=Be;const{Axios:Um,AxiosError:Fm,CanceledError:km,isCancel:Dm,CancelToken:xm,VERSION:Bm,all:Lm,Cancel:Hm,isAxiosError:qm,spread:zm,toFormData:Gm,AxiosHeaders:Wm,HttpStatusCode:Vm,formToJSON:Jm,getAdapter:Km,mergeConfig:Xm}=Be;var hm=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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.HTTPConsumer=class extends f.Consumer{constructor(){super(...arguments);s(this,"c")}async getClient(t){if(this.c)return this.c;const n={baseURL:pe.anyone(t.getAttribute(Ze.REMOTE),""),timeout:1e4,headers:{"Content-Type":"application/json;charset=UTF-8"}};if(typeof window>"u"){const o=await Promise.resolve().then(()=>vm);n.httpsAgent=new o.Agent({rejectUnauthorized:!1})}return this.c=Be.create(n),this.c.interceptors.request.use(o=>o),this.c}start(){}close(){}async consume(t,n,o,i,c){const u=i.schema(t).timeout,P=ze.load(f.Codec).getDefault(),R=P.decode(c,Object),S=await this.invoke(t,R,Object,o,u);return P.encode(S)}async invoke(t,n,o,i,c){const u={"mesh-urn":i};t.getAttachments().forEach((S,E)=>{u[S]=E});const R=await(await this.getClient(t)).post("mpc/invoke",n,{timeout:Math.max(1e4,c),headers:u});if(R.status!==200)throw ri(R);return R.data}},f.HTTPConsumer=hm([H(f.Consumer.HTTP)],f.HTTPConsumer);class os{constructor(){s(this,"name","");s(this,"icon");s(this,"path","");s(this,"describe");s(this,"disable",!1);s(this,"star",!1);s(this,"route");s(this,"children",[]);s(this,"parent");s(this,"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==null||e.forEach(t=>{var n;(n=t.children)==null||n.forEach(o=>{o.parent=t}),this.preproc((t==null?void 0:t.children)||[])})}static chain(e){return e.parent?[...os.chain(e.parent),e]:[]}}class bm extends f.Network{constructor(){super();s(this,"proxy");this.proxy=f.ServiceProxy.proxy(f.Network)}environ(t){return this.proxy.environ(t)}accessible(t,n){return this.proxy.accessible(t)}refresh(t,n){return this.proxy.refresh(t)}route(t,n){return this.proxy.route(t)}routes(t){return this.proxy.routes(t)}disable(t,n){return this.proxy.disable(t)}enable(t,n){return this.proxy.enable(t)}index(t,n){return this.proxy.index(t)}version(t,n){return this.proxy.version(t)}}class _m{constructor(e,t){s(this,"values",[]);s(this,"filter",(e,t)=>!0);this.values=e||[],this.filter=t}index(e){const t=e.factor||{},n=new Re;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 u=this.values[c];n.data.length<e.limit&&o<=n.total&&n.total<i&&n.data.push(u),(!this.filter||this.filter(u,t))&&n.total++}return n.total>i&&(n.next=!0),n}}class Om{constructor(){s(this,"builtin",f.ServiceProxy.proxy(f.Builtin));s(this,"cache",f.ServiceProxy.proxy(f.Cache));s(this,"cipherEconomy",f.ServiceProxy.proxy(f.CipherEconomy));s(this,"cipherProvider",f.ServiceProxy.proxy(f.CipherProvider));s(this,"cluster",f.ServiceProxy.proxy(f.Cluster));s(this,"commercialize",f.ServiceProxy.proxy(f.Commercialize));s(this,"cryptor",f.ServiceProxy.proxy(f.Cryptor));s(this,"daler",f.ServiceProxy.proxy(f.Daler));s(this,"dataHouse",f.ServiceProxy.proxy(f.DataHouse));s(this,"endpoint",f.ServiceProxy.proxy(f.Endpoint));s(this,"evaluator",f.ServiceProxy.proxy(f.Evaluator));s(this,"graph",f.ServiceProxy.proxy(f.Graph));s(this,"kms",f.ServiceProxy.proxy(f.KMS));s(this,"kv",f.ServiceProxy.proxy(f.KV));s(this,"licenser",f.ServiceProxy.proxy(f.Licenser));s(this,"locker",f.ServiceProxy.proxy(f.Locker));s(this,"network",f.ServiceProxy.proxy(f.Network));s(this,"pipeline",f.ServiceProxy.proxy(f.Pipeline));s(this,"publisher",f.ServiceProxy.proxy(f.Publisher));s(this,"registry",f.ServiceProxy.proxy(f.Registry));s(this,"savepoint",f.ServiceProxy.proxy(f.Savepoint));s(this,"scheduler",f.ServiceProxy.proxy(f.Scheduler));s(this,"sequence",f.ServiceProxy.proxy(f.Sequence));s(this,"subscriber",f.ServiceProxy.proxy(f.Subscriber));s(this,"tokenizer",f.ServiceProxy.proxy(f.Tokenizer));s(this,"tokenProvider",f.ServiceProxy.proxy(f.TokenProvider));s(this,"transporter",f.ServiceProxy.proxy(f.Transporter));s(this,"fileSystem",f.ServiceProxy.proxy(f.FileSystem));s(this,"workflow",f.ServiceProxy.proxy(f.Workflow))}}const Sm=new Om,vm=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));f.AccessCode=zi,f.AccessGrant=To,f.AccessID=Gi,f.AccessToken=On,f.Addrs=Qi,f.Argument=gs,f.Ark=Ee,f.Body=Me,f.CONSUMER=Zi,f.CRL=oi,f.CacheBody=pt,f.Captcha=Pr,f.Cause=vt,f.CipherEntity=nn,f.CipherHello=ut,f.CipherKey=Hi,f.CipherKeygen=kn,f.CipherObject=tt,f.CipherRegen=si,f.CipherSuite=ir,f.CipherTxEntity=ci,f.Citizen=os,f.CommerceEnviron=Rr,f.CommerceLicense=vr,f.Context=Bi,f.Credential=Dt,f.CrtRevokeRequest=Sr,f.CrtRotateRequest=sr,f.DalerBinlog=bn,f.DalerCluster=Ve,f.DalerDTSJob=Yt,f.DalerInstance=_r,f.DalerSource=Rt,f.DalerTest=or,f.DataLord=ii,f.Deque=_s,f.Document=Dn,f.DocumentMetadata=xn,f.DtxBranch=dn,f.DtxDefinition=zn,f.Dynamic=ti,f.DynamicOption=Ut,f.DynamicRoute=Sn,f.DynamicServer=Er,f.EndpointSticker=Ou,f.Entry=ai,f.Env=hr,f.Environ=qe,f.Event=it,f.FileEntry=Or,f.GenericExecution=pp,f.GenericInspector=lp,f.GenericParameters=Ho,f.GenericReturns=qo,f.Header=Li,f.Hodor=Io,f.Hook=wi,f.Idx=Fn,f.Inbound=No,f.Institution=qi,f.Key=rr,f.KeyCsr=Ge,f.Keys=Ct,f.Keyset=Eo,f.Lattice=_n,f.License=_e,f.Location=Hn,f.MPI=ke,f.MPS=ni,f.Mani=br,f.Matcher=Wi,f.Mesh=Ze,f.MeshCode=ne,f.MeshContext=ji,f.MeshFlags=mn,f.MeshNetwork=bm,f.MeshService=Sm,f.Metadata=Ao,f.MethodInspector=hs,f.Mock=Wo,f.Mode=ki,f.MpcStream=Do,f.Netlist=qn,f.Outbound=ui,f.PROVIDER=yp,f.Packet=Lt,f.Page=Re,f.Paging=k,f.Payload=di,f.Principal=lt,f.Reference=cn,f.ReferenceInvokeHandler=gp,f.Registration=ot,f.RegistrationKind=hl,f.Routable=Oi,f.Route=de,f.RunMode=xi,f.SPI=Xt,f.Script=Bt,f.Service=wt,f.ServiceInvocation=mp,f.ServiceInvokeHandler=hp,f.ServiceLoader=ze,f.Session=yt,f.StatefulServer=fp,f.States=Mo,f.Status=h,f.Timeout=sn,f.Tool=pe,f.Topic=Ue,f.Triplet=sc,f.Types=Un,f.URC=xt,f.URN=In,f.URNFlag=Xn,f.VTable=_m,f.Versions=fi,f.WorkChart=Et,f.WorkContext=wn,f.WorkGroup=jn,f.WorkIntent=Gn,f.WorkRoutine=cr,f.WorkSide=pi,f.WorkTask=Pn,f.WorkVertex=Ye,f.Worker=Je,f.binding=al,f.composite=zo,f.context=_,f.dict=q,f.errorf=ri,f.globalPtr=gr,f.index=a,f.instanceOfCodeable=bs,f.list=at,f.mpi=O,f.mps=ml,f.returnType=wl,f.spi=H,f.withCodec=Il,f.withConsumer=Ml,f.withMode=ol,Object.defineProperty(f,Symbol.toStringTag,{value:"Module"})});
23
+ `):" "+Kp(i[0]):"as no adapter specified";throw new Y("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return n},adapters:ns};function rs(r){if(r.cancelToken&&r.cancelToken.throwIfRequested(),r.signal&&r.signal.aborted)throw new Jr(null,r)}function Yp(r){return rs(r),r.headers=Mt.from(r.headers),r.data=es.call(r,r.transformRequest),["post","put","patch"].indexOf(r.method)!==-1&&r.headers.setContentType("application/x-www-form-urlencoded",!1),Xp.getAdapter(r.adapter||Ni.adapter)(r).then(function(n){return rs(r),n.data=es.call(r,r.transformResponse,n),n.headers=Mt.from(n.headers),n},function(n){return Dp(n)||(rs(r),n&&n.response&&(n.response.data=es.call(r,r.transformResponse,n.response),n.response.headers=Mt.from(n.response.headers))),Promise.reject(n)})}const Qp="1.9.0",fo={};["object","boolean","number","function","string","symbol"].forEach((r,e)=>{fo[r]=function(n){return typeof n===r||"a"+(e<1?"n ":" ")+r}});const Zp={};fo.transitional=function(e,t,n){function o(i,c){return"[Axios v"+Qp+"] Transitional option '"+i+"'"+c+(n?". "+n:"")}return(i,c,u)=>{if(e===!1)throw new Y(o(c," has been removed"+(t?" in "+t:"")),Y.ERR_DEPRECATED);return t&&!Zp[c]&&(Zp[c]=!0,console.warn(o(c," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,c,u):!0}},fo.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function lm(r,e,t){if(typeof r!="object")throw new Y("options must be an object",Y.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 u=r[i],R=u===void 0||c(u,i,r);if(R!==!0)throw new Y("option "+i+" must be "+R,Y.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new Y("Unknown option "+i,Y.ERR_BAD_OPTION)}}const po={assertOptions:lm,validators:fo},gn=po.validators;let yr=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Cp,response:new Cp}}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+=`
24
+ `+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&&po.assertOptions(n,{silentJSONParsing:gn.transitional(gn.boolean),forcedJSONParsing:gn.transitional(gn.boolean),clarifyTimeoutError:gn.transitional(gn.boolean)},!1),o!=null&&(j.isFunction(o)?t.paramsSerializer={serialize:o}:po.assertOptions(o,{encode:gn.function,serialize:gn.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),po.assertOptions(t,{baseUrl:gn.spelling("baseURL"),withXsrfToken:gn.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let c=i&&j.merge(i.common,i[t.method]);i&&j.forEach(["delete","get","head","post","put","patch","common"],w=>{delete i[w]}),t.headers=Mt.concat(c,i);const u=[];let R=!0;this.interceptors.request.forEach(function(M){typeof M.runWhen=="function"&&M.runWhen(t)===!1||(R=R&&M.synchronous,u.unshift(M.fulfilled,M.rejected))});const P=[];this.interceptors.response.forEach(function(M){P.push(M.fulfilled,M.rejected)});let S,E=0,U;if(!R){const w=[Yp.bind(this),void 0];for(w.unshift.apply(w,u),w.push.apply(w,P),U=w.length,S=Promise.resolve(t);E<U;)S=S.then(w[E++],w[E++]);return S}U=u.length;let N=t;for(E=0;E<U;){const w=u[E++],M=u[E++];try{N=w(N)}catch(A){M.call(this,A);break}}try{S=Yp.call(this,N)}catch(w){return Promise.reject(w)}for(E=0,U=P.length;E<U;)S=S.then(P[E++],P[E++]);return S}getUri(e){e=lr(this.defaults,e);const t=Hp(e.baseURL,e.url,e.allowAbsoluteUrls);return $p(t,e.params,e.paramsSerializer)}};j.forEach(["delete","get","head","options"],function(e){yr.prototype[e]=function(t,n){return this.request(lr(n||{},{method:e,url:t,data:(n||{}).data}))}}),j.forEach(["post","put","patch"],function(e){function t(n){return function(i,c,u){return this.request(lr(u||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:c}))}}yr.prototype[e]=t(),yr.prototype[e+"Form"]=t(!0)});let ym=class rl{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(u=>{n.subscribe(u),i=u}).then(o);return c.cancel=function(){n.unsubscribe(i)},c},e(function(i,c,u){n.reason||(n.reason=new Jr(i,c,u),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 rl(function(o){e=o}),cancel:e}}};function mm(r){return function(t){return r.apply(null,t)}}function gm(r){return j.isObject(r)&&r.isAxiosError===!0}const is={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};Object.entries(is).forEach(([r,e])=>{is[e]=r});function el(r){const e=new yr(r),t=bp(yr.prototype.request,e);return j.extend(t,yr.prototype,e,{allOwnKeys:!0}),j.extend(t,e,null,{allOwnKeys:!0}),t.create=function(o){return el(lr(r,o))},t}const Be=el(Ni);Be.Axios=yr,Be.CanceledError=Jr,Be.CancelToken=ym,Be.isCancel=Dp,Be.VERSION=Qp,Be.toFormData=oo,Be.AxiosError=Y,Be.Cancel=Be.CanceledError,Be.all=function(e){return Promise.all(e)},Be.spread=mm,Be.isAxiosError=gm,Be.mergeConfig=lr,Be.AxiosHeaders=Mt,Be.formToJSON=r=>Fp(j.isHTMLForm(r)?new FormData(r):r),Be.getAdapter=Xp.getAdapter,Be.HttpStatusCode=is,Be.default=Be;const{Axios:Um,AxiosError:Fm,CanceledError:km,isCancel:Dm,CancelToken:xm,VERSION:Bm,all:Lm,Cancel:Hm,isAxiosError:qm,spread:zm,toFormData:Gm,AxiosHeaders:Wm,HttpStatusCode:Vm,formToJSON:Jm,getAdapter:Km,mergeConfig:Xm}=Be;var hm=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 u=r.length-1;u>=0;u--)(c=r[u])&&(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.HTTPConsumer=class extends f.Consumer{constructor(){super(...arguments);s(this,"timeout",1e4);s(this,"cs",new Map)}async getClient(t){const n=pe.MESH_ADDRESS.get().any(),o=t.getAttribute(We.REMOTE),i=o==n?"":o;if(!this.cs.has(i)){const c={baseURL:i,timeout:this.timeout,headers:{"Content-Type":"application/json;charset=UTF-8"}};if(typeof window>"u"){const R=await Promise.resolve().then(()=>vm);c.httpsAgent=new R.Agent({rejectUnauthorized:!1})}const u=Be.create(c);u.interceptors.request.use(R=>R),this.cs.set(n,u)}return this.cs.get(n)}start(){}close(){}async consume(t,n,o,i,c){const u=i.schema(t).timeout??this.timeout,R=t.getAttribute(We.TIMEOUT)??this.timeout,P=ze.load(f.Codec).getDefault(),S=P.decode(c,Object),E=await this.invoke(t,S,Object,o,Math.max(R,u));return P.encode(E)}async invoke(t,n,o,i,c){const u={"mesh-urn":i};t.getAttachments().forEach((S,E)=>{u[S]=E});const P=await(await this.getClient(t)).post("mpc/invoke",n,{timeout:Math.max(this.timeout,c),headers:u});if(P.status!==200)throw ri(P);return P.data}},f.HTTPConsumer=hm([H(f.Consumer.HTTP)],f.HTTPConsumer);class os{constructor(){s(this,"name","");s(this,"icon");s(this,"path","");s(this,"describe");s(this,"disable",!1);s(this,"star",!1);s(this,"route");s(this,"children",[]);s(this,"parent");s(this,"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==null||e.forEach(t=>{var n;(n=t.children)==null||n.forEach(o=>{o.parent=t}),this.preproc((t==null?void 0:t.children)||[])})}static chain(e){return e.parent?[...os.chain(e.parent),e]:[]}}class bm extends f.Network{constructor(){super();s(this,"proxy");this.proxy=f.ServiceProxy.proxy(f.Network)}environ(t){return this.proxy.environ(t)}accessible(t,n){return this.proxy.accessible(t)}refresh(t,n){return this.proxy.refresh(t)}route(t,n){return this.proxy.route(t)}routes(t){return this.proxy.routes(t)}disable(t,n){return this.proxy.disable(t)}enable(t,n){return this.proxy.enable(t)}index(t,n){return this.proxy.index(t)}version(t,n){return this.proxy.version(t)}}class _m{constructor(e,t){s(this,"values",[]);s(this,"filter",(e,t)=>!0);this.values=e||[],this.filter=t}index(e){const t=e.factor||{},n=new Re;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 u=this.values[c];n.data.length<e.limit&&o<=n.total&&n.total<i&&n.data.push(u),(!this.filter||this.filter(u,t))&&n.total++}return n.total>i&&(n.next=!0),n}}class Om{constructor(){s(this,"builtin",f.ServiceProxy.proxy(f.Builtin));s(this,"cache",f.ServiceProxy.proxy(f.Cache));s(this,"cipherEconomy",f.ServiceProxy.proxy(f.CipherEconomy));s(this,"cipherProvider",f.ServiceProxy.proxy(f.CipherProvider));s(this,"cluster",f.ServiceProxy.proxy(f.Cluster));s(this,"commercialize",f.ServiceProxy.proxy(f.Commercialize));s(this,"cryptor",f.ServiceProxy.proxy(f.Cryptor));s(this,"daler",f.ServiceProxy.proxy(f.Daler));s(this,"dataHouse",f.ServiceProxy.proxy(f.DataHouse));s(this,"endpoint",f.ServiceProxy.proxy(f.Endpoint));s(this,"evaluator",f.ServiceProxy.proxy(f.Evaluator));s(this,"graph",f.ServiceProxy.proxy(f.Graph));s(this,"kms",f.ServiceProxy.proxy(f.KMS));s(this,"kv",f.ServiceProxy.proxy(f.KV));s(this,"licenser",f.ServiceProxy.proxy(f.Licenser));s(this,"locker",f.ServiceProxy.proxy(f.Locker));s(this,"network",f.ServiceProxy.proxy(f.Network));s(this,"pipeline",f.ServiceProxy.proxy(f.Pipeline));s(this,"publisher",f.ServiceProxy.proxy(f.Publisher));s(this,"registry",f.ServiceProxy.proxy(f.Registry));s(this,"savepoint",f.ServiceProxy.proxy(f.Savepoint));s(this,"scheduler",f.ServiceProxy.proxy(f.Scheduler));s(this,"sequence",f.ServiceProxy.proxy(f.Sequence));s(this,"subscriber",f.ServiceProxy.proxy(f.Subscriber));s(this,"tokenizer",f.ServiceProxy.proxy(f.Tokenizer));s(this,"tokenProvider",f.ServiceProxy.proxy(f.TokenProvider));s(this,"transporter",f.ServiceProxy.proxy(f.Transporter));s(this,"fileSystem",f.ServiceProxy.proxy(f.FileSystem));s(this,"workflow",f.ServiceProxy.proxy(f.Workflow))}}const Sm=new Om,vm=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));f.AccessCode=zi,f.AccessGrant=To,f.AccessID=Gi,f.AccessToken=On,f.Addrs=Qi,f.Argument=gs,f.Ark=Ee,f.Body=Me,f.CONSUMER=Zi,f.CRL=oi,f.CacheBody=pt,f.Captcha=Pr,f.Cause=vt,f.CipherEntity=nn,f.CipherHello=ut,f.CipherKey=Hi,f.CipherKeygen=Dn,f.CipherObject=tt,f.CipherRegen=si,f.CipherSuite=ir,f.CipherTxEntity=ci,f.Citizen=os,f.CommerceEnviron=Rr,f.CommerceLicense=vr,f.Context=Bi,f.Credential=Dt,f.CrtRevokeRequest=Sr,f.CrtRotateRequest=sr,f.DalerBinlog=bn,f.DalerCluster=Je,f.DalerDTSJob=Yt,f.DalerInstance=_r,f.DalerSource=Rt,f.DalerTest=or,f.DataLord=ii,f.Deque=_s,f.Document=xn,f.DocumentMetadata=Bn,f.DtxBranch=dn,f.DtxDefinition=Gn,f.Dynamic=ti,f.DynamicOption=Ut,f.DynamicRoute=Sn,f.DynamicServer=Er,f.EndpointSticker=Ou,f.Entry=ai,f.Env=hr,f.Environ=qe,f.Event=it,f.FileEntry=Or,f.GenericExecution=pp,f.GenericInspector=lp,f.GenericParameters=Ho,f.GenericReturns=qo,f.Header=Li,f.Hodor=Io,f.Hook=wi,f.Idx=Fn,f.Inbound=No,f.Institution=qi,f.Key=kn,f.KeyCsr=Ge,f.Keys=Ct,f.Keyset=Eo,f.Lattice=_n,f.License=_e,f.Location=qn,f.MPI=ke,f.MPS=ni,f.Mani=br,f.Matcher=Wi,f.Mesh=We,f.MeshCode=ne,f.MeshContext=ji,f.MeshFlags=mn,f.MeshNetwork=bm,f.MeshService=Sm,f.Metadata=Ao,f.MethodInspector=hs,f.Mock=Wo,f.Mode=ki,f.MpcStream=Do,f.Netlist=zn,f.Outbound=ui,f.PROVIDER=yp,f.Packet=Lt,f.Page=Re,f.Paging=k,f.Payload=di,f.Principal=lt,f.Reference=cn,f.ReferenceInvokeHandler=gp,f.Registration=ot,f.RegistrationKind=hl,f.Routable=Oi,f.Route=de,f.RunMode=xi,f.SPI=Xt,f.Script=Bt,f.Service=wt,f.ServiceInvocation=mp,f.ServiceInvokeHandler=hp,f.ServiceLoader=ze,f.Session=yt,f.StatefulServer=fp,f.States=Mo,f.Status=h,f.Timeout=sn,f.Tool=pe,f.Topic=Ue,f.Triplet=sc,f.Types=Un,f.URC=xt,f.URN=In,f.URNFlag=Yn,f.VTable=_m,f.Versions=fi,f.WorkChart=Et,f.WorkContext=wn,f.WorkGroup=jn,f.WorkIntent=Wn,f.WorkRoutine=cr,f.WorkSide=pi,f.WorkTask=Pn,f.WorkVertex=Qe,f.Worker=Ke,f.binding=al,f.composite=zo,f.context=_,f.dict=q,f.errorf=ri,f.globalPtr=gr,f.index=a,f.instanceOfCodeable=bs,f.list=at,f.mpi=O,f.mps=ml,f.returnType=wl,f.spi=H,f.withCodec=Il,f.withConsumer=Ml,f.withMode=ol,Object.defineProperty(f,Symbol.toStringTag,{value:"Module"})});