@liofly/iobroker-mcp 0.0.0-stage → 1.15.0

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.
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env node
2
+ /*! For license information please see mcp-server.js.LICENSE.txt */
3
+ (()=>{var e={33:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.ZodMiniOptional=t.ZodMiniTransform=t.ZodMiniFile=t.ZodMiniLiteral=t.ZodMiniEnum=t.ZodMiniSet=t.ZodMiniMap=t.ZodMiniRecord=t.ZodMiniTuple=t.ZodMiniIntersection=t.ZodMiniDiscriminatedUnion=t.ZodMiniUnion=t.ZodMiniObject=t.ZodMiniArray=t.ZodMiniDate=t.ZodMiniVoid=t.ZodMiniNever=t.ZodMiniUnknown=t.ZodMiniAny=t.ZodMiniNull=t.ZodMiniUndefined=t.ZodMiniSymbol=t.ZodMiniBigIntFormat=t.ZodMiniBigInt=t.ZodMiniBoolean=t.ZodMiniNumberFormat=t.ZodMiniNumber=t.ZodMiniCustomStringFormat=t.ZodMiniJWT=t.ZodMiniE164=t.ZodMiniBase64URL=t.ZodMiniBase64=t.ZodMiniCIDRv6=t.ZodMiniCIDRv4=t.ZodMiniIPv6=t.ZodMiniIPv4=t.ZodMiniKSUID=t.ZodMiniXID=t.ZodMiniULID=t.ZodMiniCUID2=t.ZodMiniCUID=t.ZodMiniNanoID=t.ZodMiniEmoji=t.ZodMiniURL=t.ZodMiniUUID=t.ZodMiniGUID=t.ZodMiniEmail=t.ZodMiniStringFormat=t.ZodMiniString=t.ZodMiniType=void 0,t.stringbool=t.ZodMiniCustom=t.ZodMiniPromise=t.ZodMiniLazy=t.ZodMiniTemplateLiteral=t.ZodMiniReadonly=t.ZodMiniPipe=t.ZodMiniNaN=t.ZodMiniCatch=t.ZodMiniSuccess=t.ZodMiniNonOptional=t.ZodMiniPrefault=t.ZodMiniDefault=t.ZodMiniNullable=void 0,t.string=u,t.email=function(e){return s._email(t.ZodMiniEmail,e)},t.guid=function(e){return s._guid(t.ZodMiniGUID,e)},t.uuid=function(e){return s._uuid(t.ZodMiniUUID,e)},t.uuidv4=function(e){return s._uuidv4(t.ZodMiniUUID,e)},t.uuidv6=function(e){return s._uuidv6(t.ZodMiniUUID,e)},t.uuidv7=function(e){return s._uuidv7(t.ZodMiniUUID,e)},t.url=function(e){return s._url(t.ZodMiniURL,e)},t.emoji=function(e){return s._emoji(t.ZodMiniEmoji,e)},t.nanoid=function(e){return s._nanoid(t.ZodMiniNanoID,e)},t.cuid=function(e){return s._cuid(t.ZodMiniCUID,e)},t.cuid2=function(e){return s._cuid2(t.ZodMiniCUID2,e)},t.ulid=function(e){return s._ulid(t.ZodMiniULID,e)},t.xid=function(e){return s._xid(t.ZodMiniXID,e)},t.ksuid=function(e){return s._ksuid(t.ZodMiniKSUID,e)},t.ipv4=function(e){return s._ipv4(t.ZodMiniIPv4,e)},t.ipv6=function(e){return s._ipv6(t.ZodMiniIPv6,e)},t.cidrv4=function(e){return s._cidrv4(t.ZodMiniCIDRv4,e)},t.cidrv6=function(e){return s._cidrv6(t.ZodMiniCIDRv6,e)},t.base64=function(e){return s._base64(t.ZodMiniBase64,e)},t.base64url=function(e){return s._base64url(t.ZodMiniBase64URL,e)},t.e164=function(e){return s._e164(t.ZodMiniE164,e)},t.jwt=function(e){return s._jwt(t.ZodMiniJWT,e)},t.stringFormat=function(e,n,r={}){return s._stringFormat(t.ZodMiniCustomStringFormat,e,n,r)},t.number=l,t.int=function(e){return s._int(t.ZodMiniNumberFormat,e)},t.float32=function(e){return s._float32(t.ZodMiniNumberFormat,e)},t.float64=function(e){return s._float64(t.ZodMiniNumberFormat,e)},t.int32=function(e){return s._int32(t.ZodMiniNumberFormat,e)},t.uint32=function(e){return s._uint32(t.ZodMiniNumberFormat,e)},t.boolean=d,t.bigint=function(e){return s._bigint(t.ZodMiniBigInt,e)},t.int64=function(e){return s._int64(t.ZodMiniBigIntFormat,e)},t.uint64=function(e){return s._uint64(t.ZodMiniBigIntFormat,e)},t.symbol=function(e){return s._symbol(t.ZodMiniSymbol,e)},t.undefined=function(e){return s._undefined(t.ZodMiniUndefined,e)},t.null=p,t.any=function(){return s._any(t.ZodMiniAny)},t.unknown=f,t.never=m,t.void=function(e){return s._void(t.ZodMiniVoid,e)},t.date=function(e){return s._date(t.ZodMiniDate,e)},t.array=h,t.keyof=function(e){const t=e._zod.def.shape;return y(Object.keys(t))},t.object=function(e,n){const r={type:"object",get shape(){return a.util.assignProp(this,"shape",{...e}),this.shape},...a.util.normalizeParams(n)};return new t.ZodMiniObject(r)},t.strictObject=function(e,n){return new t.ZodMiniObject({type:"object",get shape(){return a.util.assignProp(this,"shape",{...e}),this.shape},catchall:m(),...a.util.normalizeParams(n)})},t.looseObject=function(e,n){return new t.ZodMiniObject({type:"object",get shape(){return a.util.assignProp(this,"shape",{...e}),this.shape},catchall:f(),...a.util.normalizeParams(n)})},t.extend=function(e,t){return a.util.extend(e,t)},t.merge=function(e,t){return a.util.extend(e,t)},t.pick=function(e,t){return a.util.pick(e,t)},t.omit=function(e,t){return a.util.omit(e,t)},t.partial=function(e,n){return a.util.partial(t.ZodMiniOptional,e,n)},t.required=function(e,n){return a.util.required(t.ZodMiniNonOptional,e,n)},t.catchall=function(e,t){return e.clone({...e._zod.def,catchall:t})},t.union=v,t.discriminatedUnion=function(e,n,r){return new t.ZodMiniDiscriminatedUnion({type:"union",options:n,discriminator:e,...a.util.normalizeParams(r)})},t.intersection=function(e,n){return new t.ZodMiniIntersection({type:"intersection",left:e,right:n})},t.tuple=function(e,n,r){const i=n instanceof s.$ZodType,o=i?r:n,c=i?n:null;return new t.ZodMiniTuple({type:"tuple",items:e,rest:c,...a.util.normalizeParams(o)})},t.record=g,t.partialRecord=function(e,n,r){return new t.ZodMiniRecord({type:"record",keyType:v([e,m()]),valueType:n,...a.util.normalizeParams(r)})},t.map=function(e,n,r){return new t.ZodMiniMap({type:"map",keyType:e,valueType:n,...a.util.normalizeParams(r)})},t.set=function(e,n){return new t.ZodMiniSet({type:"set",valueType:e,...a.util.normalizeParams(n)})},t.enum=function(e,n){const r=Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e;return new t.ZodMiniEnum({type:"enum",entries:r,...a.util.normalizeParams(n)})},t.nativeEnum=function(e,n){return new t.ZodMiniEnum({type:"enum",entries:e,...a.util.normalizeParams(n)})},t.literal=y,t.file=function(e){return s._file(t.ZodMiniFile,e)},t.transform=function(e){return new t.ZodMiniTransform({type:"transform",transform:e})},t.optional=_,t.nullable=b,t.nullish=function(e){return _(b(e))},t._default=function(e,n){return new t.ZodMiniDefault({type:"default",innerType:e,get defaultValue(){return"function"==typeof n?n():n}})},t.prefault=function(e,n){return new t.ZodMiniPrefault({type:"prefault",innerType:e,get defaultValue(){return"function"==typeof n?n():n}})},t.nonoptional=function(e,n){return new t.ZodMiniNonOptional({type:"nonoptional",innerType:e,...a.util.normalizeParams(n)})},t.success=function(e){return new t.ZodMiniSuccess({type:"success",innerType:e})},t.catch=function(e,n){return new t.ZodMiniCatch({type:"catch",innerType:e,catchValue:"function"==typeof n?n:()=>n})},t.nan=function(e){return s._nan(t.ZodMiniNaN,e)},t.pipe=function(e,n){return new t.ZodMiniPipe({type:"pipe",in:e,out:n})},t.readonly=function(e){return new t.ZodMiniReadonly({type:"readonly",innerType:e})},t.templateLiteral=function(e,n){return new t.ZodMiniTemplateLiteral({type:"template_literal",parts:e,...a.util.normalizeParams(n)})},t.lazy=x,t.promise=function(e){return new t.ZodMiniPromise({type:"promise",innerType:e})},t.check=function(e,t){const n=new s.$ZodCheck({check:"custom",...a.util.normalizeParams(t)});return n._zod.check=e,n},t.custom=w,t.refine=function(e,n={}){return s._refine(t.ZodMiniCustom,e,n)},t.instanceof=function(e,t={error:`Input not instance of ${e.name}`}){const n=w(t=>t instanceof e,t);return n._zod.bag.Class=e,n},t.json=function(){const e=x(()=>v([u(),l(),d(),p(),h(e),g(u(),e)]));return e};const s=o(n(76601)),a=n(76601),c=o(n(83168));function u(e){return s._string(t.ZodMiniString,e)}function l(e){return s._number(t.ZodMiniNumber,e)}function d(e){return s._boolean(t.ZodMiniBoolean,e)}function p(e){return s._null(t.ZodMiniNull,e)}function f(){return s._unknown(t.ZodMiniUnknown)}function m(e){return s._never(t.ZodMiniNever,e)}function h(e,n){return new t.ZodMiniArray({type:"array",element:e,...a.util.normalizeParams(n)})}function v(e,n){return new t.ZodMiniUnion({type:"union",options:e,...a.util.normalizeParams(n)})}function g(e,n,r){return new t.ZodMiniRecord({type:"record",keyType:e,valueType:n,...a.util.normalizeParams(r)})}function y(e,n){return new t.ZodMiniLiteral({type:"literal",values:Array.isArray(e)?e:[e],...a.util.normalizeParams(n)})}function _(e){return new t.ZodMiniOptional({type:"optional",innerType:e})}function b(e){return new t.ZodMiniNullable({type:"nullable",innerType:e})}function x(e){return new t.ZodMiniLazy({type:"lazy",getter:e})}function w(e,n){return s._custom(t.ZodMiniCustom,e??(()=>!0),n)}t.ZodMiniType=s.$constructor("ZodMiniType",(e,t)=>{if(!e._zod)throw new Error("Uninitialized schema in ZodMiniType.");s.$ZodType.init(e,t),e.def=t,e.parse=(t,n)=>c.parse(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>c.safeParse(e,t,n),e.parseAsync=async(t,n)=>c.parseAsync(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>c.safeParseAsync(e,t,n),e.check=(...n)=>e.clone({...t,checks:[...t.checks??[],...n.map(e=>"function"==typeof e?{_zod:{check:e,def:{check:"custom"},onattach:[]}}:e)]}),e.clone=(t,n)=>s.clone(e,t,n),e.brand=()=>e,e.register=(t,n)=>(t.add(e,n),e)}),t.ZodMiniString=s.$constructor("ZodMiniString",(e,n)=>{s.$ZodString.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniStringFormat=s.$constructor("ZodMiniStringFormat",(e,n)=>{s.$ZodStringFormat.init(e,n),t.ZodMiniString.init(e,n)}),t.ZodMiniEmail=s.$constructor("ZodMiniEmail",(e,n)=>{s.$ZodEmail.init(e,n),t.ZodMiniStringFormat.init(e,n)}),t.ZodMiniGUID=s.$constructor("ZodMiniGUID",(e,n)=>{s.$ZodGUID.init(e,n),t.ZodMiniStringFormat.init(e,n)}),t.ZodMiniUUID=s.$constructor("ZodMiniUUID",(e,n)=>{s.$ZodUUID.init(e,n),t.ZodMiniStringFormat.init(e,n)}),t.ZodMiniURL=s.$constructor("ZodMiniURL",(e,n)=>{s.$ZodURL.init(e,n),t.ZodMiniStringFormat.init(e,n)}),t.ZodMiniEmoji=s.$constructor("ZodMiniEmoji",(e,n)=>{s.$ZodEmoji.init(e,n),t.ZodMiniStringFormat.init(e,n)}),t.ZodMiniNanoID=s.$constructor("ZodMiniNanoID",(e,n)=>{s.$ZodNanoID.init(e,n),t.ZodMiniStringFormat.init(e,n)}),t.ZodMiniCUID=s.$constructor("ZodMiniCUID",(e,n)=>{s.$ZodCUID.init(e,n),t.ZodMiniStringFormat.init(e,n)}),t.ZodMiniCUID2=s.$constructor("ZodMiniCUID2",(e,n)=>{s.$ZodCUID2.init(e,n),t.ZodMiniStringFormat.init(e,n)}),t.ZodMiniULID=s.$constructor("ZodMiniULID",(e,n)=>{s.$ZodULID.init(e,n),t.ZodMiniStringFormat.init(e,n)}),t.ZodMiniXID=s.$constructor("ZodMiniXID",(e,n)=>{s.$ZodXID.init(e,n),t.ZodMiniStringFormat.init(e,n)}),t.ZodMiniKSUID=s.$constructor("ZodMiniKSUID",(e,n)=>{s.$ZodKSUID.init(e,n),t.ZodMiniStringFormat.init(e,n)}),t.ZodMiniIPv4=s.$constructor("ZodMiniIPv4",(e,n)=>{s.$ZodIPv4.init(e,n),t.ZodMiniStringFormat.init(e,n)}),t.ZodMiniIPv6=s.$constructor("ZodMiniIPv6",(e,n)=>{s.$ZodIPv6.init(e,n),t.ZodMiniStringFormat.init(e,n)}),t.ZodMiniCIDRv4=s.$constructor("ZodMiniCIDRv4",(e,n)=>{s.$ZodCIDRv4.init(e,n),t.ZodMiniStringFormat.init(e,n)}),t.ZodMiniCIDRv6=s.$constructor("ZodMiniCIDRv6",(e,n)=>{s.$ZodCIDRv6.init(e,n),t.ZodMiniStringFormat.init(e,n)}),t.ZodMiniBase64=s.$constructor("ZodMiniBase64",(e,n)=>{s.$ZodBase64.init(e,n),t.ZodMiniStringFormat.init(e,n)}),t.ZodMiniBase64URL=s.$constructor("ZodMiniBase64URL",(e,n)=>{s.$ZodBase64URL.init(e,n),t.ZodMiniStringFormat.init(e,n)}),t.ZodMiniE164=s.$constructor("ZodMiniE164",(e,n)=>{s.$ZodE164.init(e,n),t.ZodMiniStringFormat.init(e,n)}),t.ZodMiniJWT=s.$constructor("ZodMiniJWT",(e,n)=>{s.$ZodJWT.init(e,n),t.ZodMiniStringFormat.init(e,n)}),t.ZodMiniCustomStringFormat=s.$constructor("ZodMiniCustomStringFormat",(e,n)=>{s.$ZodCustomStringFormat.init(e,n),t.ZodMiniStringFormat.init(e,n)}),t.ZodMiniNumber=s.$constructor("ZodMiniNumber",(e,n)=>{s.$ZodNumber.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniNumberFormat=s.$constructor("ZodMiniNumberFormat",(e,n)=>{s.$ZodNumberFormat.init(e,n),t.ZodMiniNumber.init(e,n)}),t.ZodMiniBoolean=s.$constructor("ZodMiniBoolean",(e,n)=>{s.$ZodBoolean.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniBigInt=s.$constructor("ZodMiniBigInt",(e,n)=>{s.$ZodBigInt.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniBigIntFormat=s.$constructor("ZodMiniBigIntFormat",(e,n)=>{s.$ZodBigIntFormat.init(e,n),t.ZodMiniBigInt.init(e,n)}),t.ZodMiniSymbol=s.$constructor("ZodMiniSymbol",(e,n)=>{s.$ZodSymbol.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniUndefined=s.$constructor("ZodMiniUndefined",(e,n)=>{s.$ZodUndefined.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniNull=s.$constructor("ZodMiniNull",(e,n)=>{s.$ZodNull.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniAny=s.$constructor("ZodMiniAny",(e,n)=>{s.$ZodAny.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniUnknown=s.$constructor("ZodMiniUnknown",(e,n)=>{s.$ZodUnknown.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniNever=s.$constructor("ZodMiniNever",(e,n)=>{s.$ZodNever.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniVoid=s.$constructor("ZodMiniVoid",(e,n)=>{s.$ZodVoid.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniDate=s.$constructor("ZodMiniDate",(e,n)=>{s.$ZodDate.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniArray=s.$constructor("ZodMiniArray",(e,n)=>{s.$ZodArray.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniObject=s.$constructor("ZodMiniObject",(e,n)=>{s.$ZodObject.init(e,n),t.ZodMiniType.init(e,n),a.util.defineLazy(e,"shape",()=>n.shape)}),t.ZodMiniUnion=s.$constructor("ZodMiniUnion",(e,n)=>{s.$ZodUnion.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniDiscriminatedUnion=s.$constructor("ZodMiniDiscriminatedUnion",(e,n)=>{s.$ZodDiscriminatedUnion.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniIntersection=s.$constructor("ZodMiniIntersection",(e,n)=>{s.$ZodIntersection.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniTuple=s.$constructor("ZodMiniTuple",(e,n)=>{s.$ZodTuple.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniRecord=s.$constructor("ZodMiniRecord",(e,n)=>{s.$ZodRecord.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniMap=s.$constructor("ZodMiniMap",(e,n)=>{s.$ZodMap.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniSet=s.$constructor("ZodMiniSet",(e,n)=>{s.$ZodSet.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniEnum=s.$constructor("ZodMiniEnum",(e,n)=>{s.$ZodEnum.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniLiteral=s.$constructor("ZodMiniLiteral",(e,n)=>{s.$ZodLiteral.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniFile=s.$constructor("ZodMiniFile",(e,n)=>{s.$ZodFile.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniTransform=s.$constructor("ZodMiniTransform",(e,n)=>{s.$ZodTransform.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniOptional=s.$constructor("ZodMiniOptional",(e,n)=>{s.$ZodOptional.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniNullable=s.$constructor("ZodMiniNullable",(e,n)=>{s.$ZodNullable.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniDefault=s.$constructor("ZodMiniDefault",(e,n)=>{s.$ZodDefault.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniPrefault=s.$constructor("ZodMiniPrefault",(e,n)=>{s.$ZodPrefault.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniNonOptional=s.$constructor("ZodMiniNonOptional",(e,n)=>{s.$ZodNonOptional.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniSuccess=s.$constructor("ZodMiniSuccess",(e,n)=>{s.$ZodSuccess.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniCatch=s.$constructor("ZodMiniCatch",(e,n)=>{s.$ZodCatch.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniNaN=s.$constructor("ZodMiniNaN",(e,n)=>{s.$ZodNaN.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniPipe=s.$constructor("ZodMiniPipe",(e,n)=>{s.$ZodPipe.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniReadonly=s.$constructor("ZodMiniReadonly",(e,n)=>{s.$ZodReadonly.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniTemplateLiteral=s.$constructor("ZodMiniTemplateLiteral",(e,n)=>{s.$ZodTemplateLiteral.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniLazy=s.$constructor("ZodMiniLazy",(e,n)=>{s.$ZodLazy.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniPromise=s.$constructor("ZodMiniPromise",(e,n)=>{s.$ZodPromise.init(e,n),t.ZodMiniType.init(e,n)}),t.ZodMiniCustom=s.$constructor("ZodMiniCustom",(e,n)=>{s.$ZodCustom.init(e,n),t.ZodMiniType.init(e,n)}),t.stringbool=(...e)=>s._stringbool({Pipe:t.ZodMiniPipe,Boolean:t.ZodMiniBoolean,String:t.ZodMiniString,Transform:t.ZodMiniTransform},...e)},92:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{localeError:a()}};const s=o(n(90523)),a=()=>{const e={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"}};function t(t){return e[t]??null}const n={regex:"ទិន្នន័យបញ្ចូល",email:"អាសយដ្ឋានអ៊ីមែល",url:"URL",emoji:"សញ្ញាអារម្មណ៍",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"កាលបរិច្ឆេទ និងម៉ោង ISO",date:"កាលបរិច្ឆេទ ISO",time:"ម៉ោង ISO",duration:"រយៈពេល ISO",ipv4:"អាសយដ្ឋាន IPv4",ipv6:"អាសយដ្ឋាន IPv6",cidrv4:"ដែនអាសយដ្ឋាន IPv4",cidrv6:"ដែនអាសយដ្ឋាន IPv6",base64:"ខ្សែអក្សរអ៊ិកូដ base64",base64url:"ខ្សែអក្សរអ៊ិកូដ base64url",json_string:"ខ្សែអក្សរ JSON",e164:"លេខ E.164",jwt:"JWT",template_literal:"ទិន្នន័យបញ្ចូល"};return e=>{switch(e.code){case"invalid_type":return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${e.expected} ប៉ុន្តែទទួលបាន ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"មិនមែនជាលេខ (NaN)":"លេខ";case"object":if(Array.isArray(e))return"អារេ (Array)";if(null===e)return"គ្មានតម្លៃ (null)";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${s.stringifyPrimitive(e.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${s.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`ធំពេក៖ ត្រូវការ ${e.origin??"តម្លៃ"} ${n} ${e.maximum.toString()} ${r.unit??"ធាតុ"}`:`ធំពេក៖ ត្រូវការ ${e.origin??"តម្លៃ"} ${n} ${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()} ${r.unit}`:`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${t.prefix}"`:"ends_with"===t.format?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${t.suffix}"`:"includes"===t.format?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${t.includes}"`:"regex"===t.format?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${t.pattern}`:`មិនត្រឹមត្រូវ៖ ${n[t.format]??e.format}`}case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${e.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${s.joinValues(e.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`;case"invalid_union":default:return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`}}}},263:function(e,t,n){"use strict";var r,i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),s=0;s<n.length;s++)"default"!==n[s]&&i(t,e,n[s]);return o(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.MetadataReader=void 0;const a=s(n(19466));t.MetadataReader=class{getConstructorMetadata(e){return{compilerGeneratedMetadata:Reflect.getMetadata(a.DESIGN_PARAM_TYPES,e)??[],userGeneratedMetadata:Reflect.getMetadata(a.TAGGED,e)??{}}}getPropertiesMetadata(e){return Reflect.getMetadata(a.TAGGED_PROP,e)??{}}}},343:(e,t,n)=>{"use strict";const{isUUID:r}=n(34834),i=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,o=["http","https","ws","wss","urn","urn:uuid"];function s(e){return!0===e.secure||!1!==e.secure&&!!e.scheme&&!(3!==e.scheme.length||"w"!==e.scheme[0]&&"W"!==e.scheme[0]||"s"!==e.scheme[1]&&"S"!==e.scheme[1]||"s"!==e.scheme[2]&&"S"!==e.scheme[2])}function a(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function c(e){const t="https"===String(e.scheme).toLowerCase();return e.port!==(t?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}const u={scheme:"http",domainHost:!0,parse:a,serialize:c},l={scheme:"ws",domainHost:!0,parse:function(e){return e.secure=s(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e},serialize:function(e){if(e.port!==(s(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){const[t,n]=e.resourceName.split("?");e.path=t&&"/"!==t?t:void 0,e.query=n,e.resourceName=void 0}return e.fragment=void 0,e}},d={http:u,https:{scheme:"https",domainHost:u.domainHost,parse:a,serialize:c},ws:l,wss:{scheme:"wss",domainHost:l.domainHost,parse:l.parse,serialize:l.serialize},urn:{scheme:"urn",parse:function(e,t){if(!e.path)return e.error="URN can not be parsed",e;const n=e.path.match(i);if(n){const r=t.scheme||e.scheme||"urn";e.nid=n[1].toLowerCase(),e.nss=n[2];const i=p(`${r}:${t.nid||e.nid}`);e.path=void 0,i&&(e=i.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e},serialize:function(e,t){if(void 0===e.nid)throw new Error("URN without nid cannot be serialized");const n=t.scheme||e.scheme||"urn",r=e.nid.toLowerCase(),i=p(`${n}:${t.nid||r}`);i&&(e=i.serialize(e,t));const o=e,s=e.nss;return o.path=`${r||t.nid}:${s}`,t.skipEscape=!0,o},skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:function(e,t){const n=e;return n.uuid=n.nss,n.nss=void 0,t.tolerant||n.uuid&&r(n.uuid)||(n.error=n.error||"UUID is not valid."),n},serialize:function(e){const t=e;return t.nss=(e.uuid||"").toLowerCase(),t},skipNormalize:!0}};function p(e){return e&&(d[e]||d[e.toLowerCase()])||void 0}Object.setPrototypeOf(d,null),e.exports={wsIsSecure:s,SCHEMES:d,isValidSchemeName:function(e){return-1!==o.indexOf(e)},getSchemeHandler:p}},513:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{localeError:a()}};const s=o(n(90523)),a=()=>{const e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(t){return e[t]??null}const n={regex:"padrão",email:"endereço de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"duração ISO",ipv4:"endereço IPv4",ipv6:"endereço IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return e=>{switch(e.code){case"invalid_type":return`Tipo inválido: esperado ${e.expected}, recebido ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"número";case"object":if(Array.isArray(e))return"array";if(null===e)return"nulo";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Entrada inválida: esperado ${s.stringifyPrimitive(e.values[0])}`:`Opção inválida: esperada uma das ${s.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`Muito grande: esperado que ${e.origin??"valor"} tivesse ${n}${e.maximum.toString()} ${r.unit??"elementos"}`:`Muito grande: esperado que ${e.origin??"valor"} fosse ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`Muito pequeno: esperado que ${e.origin} tivesse ${n}${e.minimum.toString()} ${r.unit}`:`Muito pequeno: esperado que ${e.origin} fosse ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Texto inválido: deve começar com "${t.prefix}"`:"ends_with"===t.format?`Texto inválido: deve terminar com "${t.suffix}"`:"includes"===t.format?`Texto inválido: deve incluir "${t.includes}"`:"regex"===t.format?`Texto inválido: deve corresponder ao padrão ${t.pattern}`:`${n[t.format]??e.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${e.divisor}`;case"unrecognized_keys":return`Chave${e.keys.length>1?"s":""} desconhecida${e.keys.length>1?"s":""}: ${s.joinValues(e.keys,", ")}`;case"invalid_key":return`Chave inválida em ${e.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido em ${e.origin}`;default:return"Campo inválido"}}}},1294:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.ProgressNotificationParamsSchema=t.ProgressSchema=t.PingRequestSchema=t.isInitializedNotification=t.InitializedNotificationSchema=t.InitializeResultSchema=t.ServerCapabilitiesSchema=t.isInitializeRequest=t.InitializeRequestSchema=t.InitializeRequestParamsSchema=t.ClientCapabilitiesSchema=t.ServerTasksCapabilitySchema=t.ClientTasksCapabilitySchema=t.ImplementationSchema=t.BaseMetadataSchema=t.IconsSchema=t.IconSchema=t.CancelledNotificationSchema=t.CancelledNotificationParamsSchema=t.EmptyResultSchema=t.JSONRPCResponseSchema=t.JSONRPCMessageSchema=t.isJSONRPCError=t.isJSONRPCErrorResponse=t.JSONRPCErrorSchema=t.JSONRPCErrorResponseSchema=t.ErrorCode=t.isJSONRPCResponse=t.isJSONRPCResultResponse=t.JSONRPCResultResponseSchema=t.isJSONRPCNotification=t.JSONRPCNotificationSchema=t.isJSONRPCRequest=t.JSONRPCRequestSchema=t.RequestIdSchema=t.ResultSchema=t.NotificationSchema=t.RequestSchema=t.isTaskAugmentedRequestParams=t.TaskAugmentedRequestParamsSchema=t.RelatedTaskMetadataSchema=t.TaskMetadataSchema=t.TaskCreationParamsSchema=t.CursorSchema=t.ProgressTokenSchema=t.JSONRPC_VERSION=t.RELATED_TASK_META_KEY=t.SUPPORTED_PROTOCOL_VERSIONS=t.DEFAULT_NEGOTIATED_PROTOCOL_VERSION=t.LATEST_PROTOCOL_VERSION=void 0,t.EmbeddedResourceSchema=t.ToolUseContentSchema=t.AudioContentSchema=t.ImageContentSchema=t.TextContentSchema=t.GetPromptRequestSchema=t.GetPromptRequestParamsSchema=t.ListPromptsResultSchema=t.ListPromptsRequestSchema=t.PromptSchema=t.PromptArgumentSchema=t.ResourceUpdatedNotificationSchema=t.ResourceUpdatedNotificationParamsSchema=t.UnsubscribeRequestSchema=t.UnsubscribeRequestParamsSchema=t.SubscribeRequestSchema=t.SubscribeRequestParamsSchema=t.ResourceListChangedNotificationSchema=t.ReadResourceResultSchema=t.ReadResourceRequestSchema=t.ReadResourceRequestParamsSchema=t.ResourceRequestParamsSchema=t.ListResourceTemplatesResultSchema=t.ListResourceTemplatesRequestSchema=t.ListResourcesResultSchema=t.ListResourcesRequestSchema=t.ResourceTemplateSchema=t.ResourceSchema=t.AnnotationsSchema=t.RoleSchema=t.BlobResourceContentsSchema=t.TextResourceContentsSchema=t.ResourceContentsSchema=t.CancelTaskResultSchema=t.CancelTaskRequestSchema=t.ListTasksResultSchema=t.ListTasksRequestSchema=t.GetTaskPayloadResultSchema=t.GetTaskPayloadRequestSchema=t.GetTaskResultSchema=t.GetTaskRequestSchema=t.TaskStatusNotificationSchema=t.TaskStatusNotificationParamsSchema=t.CreateTaskResultSchema=t.TaskSchema=t.TaskStatusSchema=t.PaginatedResultSchema=t.PaginatedRequestSchema=t.PaginatedRequestParamsSchema=t.ProgressNotificationSchema=void 0,t.ElicitationCompleteNotificationSchema=t.ElicitationCompleteNotificationParamsSchema=t.ElicitRequestSchema=t.ElicitRequestParamsSchema=t.ElicitRequestURLParamsSchema=t.ElicitRequestFormParamsSchema=t.PrimitiveSchemaDefinitionSchema=t.EnumSchemaSchema=t.MultiSelectEnumSchemaSchema=t.TitledMultiSelectEnumSchemaSchema=t.UntitledMultiSelectEnumSchemaSchema=t.SingleSelectEnumSchemaSchema=t.LegacyTitledEnumSchemaSchema=t.TitledSingleSelectEnumSchemaSchema=t.UntitledSingleSelectEnumSchemaSchema=t.NumberSchemaSchema=t.StringSchemaSchema=t.BooleanSchemaSchema=t.CreateMessageResultWithToolsSchema=t.CreateMessageResultSchema=t.CreateMessageRequestSchema=t.CreateMessageRequestParamsSchema=t.SamplingMessageSchema=t.SamplingMessageContentBlockSchema=t.SamplingContentSchema=t.ToolResultContentSchema=t.ToolChoiceSchema=t.ModelPreferencesSchema=t.ModelHintSchema=t.LoggingMessageNotificationSchema=t.LoggingMessageNotificationParamsSchema=t.SetLevelRequestSchema=t.SetLevelRequestParamsSchema=t.LoggingLevelSchema=t.ListChangedOptionsBaseSchema=t.ToolListChangedNotificationSchema=t.CallToolRequestSchema=t.CallToolRequestParamsSchema=t.CompatibilityCallToolResultSchema=t.CallToolResultSchema=t.ListToolsResultSchema=t.ListToolsRequestSchema=t.ToolSchema=t.ToolExecutionSchema=t.ToolAnnotationsSchema=t.PromptListChangedNotificationSchema=t.GetPromptResultSchema=t.PromptMessageSchema=t.ContentBlockSchema=t.ResourceLinkSchema=void 0,t.UrlElicitationRequiredError=t.McpError=t.ServerResultSchema=t.ServerNotificationSchema=t.ServerRequestSchema=t.ClientResultSchema=t.ClientNotificationSchema=t.ClientRequestSchema=t.RootsListChangedNotificationSchema=t.ListRootsResultSchema=t.ListRootsRequestSchema=t.RootSchema=t.CompleteResultSchema=t.CompleteRequestSchema=t.CompleteRequestParamsSchema=t.PromptReferenceSchema=t.ResourceReferenceSchema=t.ResourceTemplateReferenceSchema=t.ElicitResultSchema=void 0,t.assertCompleteRequestPrompt=function(e){if("ref/prompt"!==e.params.ref.type)throw new TypeError(`Expected CompleteRequestPrompt, but got ${e.params.ref.type}`)},t.assertCompleteRequestResourceTemplate=function(e){if("ref/resource"!==e.params.ref.type)throw new TypeError(`Expected CompleteRequestResourceTemplate, but got ${e.params.ref.type}`)};const s=o(n(51963));t.LATEST_PROTOCOL_VERSION="2025-11-25",t.DEFAULT_NEGOTIATED_PROTOCOL_VERSION="2025-03-26",t.SUPPORTED_PROTOCOL_VERSIONS=[t.LATEST_PROTOCOL_VERSION,"2025-06-18","2025-03-26","2024-11-05","2024-10-07"],t.RELATED_TASK_META_KEY="io.modelcontextprotocol/related-task",t.JSONRPC_VERSION="2.0";const a=s.custom(e=>null!==e&&("object"==typeof e||"function"==typeof e));t.ProgressTokenSchema=s.union([s.string(),s.number().int()]),t.CursorSchema=s.string(),t.TaskCreationParamsSchema=s.looseObject({ttl:s.number().optional(),pollInterval:s.number().optional()}),t.TaskMetadataSchema=s.object({ttl:s.number().optional()}),t.RelatedTaskMetadataSchema=s.object({taskId:s.string()});const c=s.looseObject({progressToken:t.ProgressTokenSchema.optional(),[t.RELATED_TASK_META_KEY]:t.RelatedTaskMetadataSchema.optional()}),u=s.object({_meta:c.optional()});t.TaskAugmentedRequestParamsSchema=u.extend({task:t.TaskMetadataSchema.optional()}),t.isTaskAugmentedRequestParams=e=>t.TaskAugmentedRequestParamsSchema.safeParse(e).success,t.RequestSchema=s.object({method:s.string(),params:u.loose().optional()});const l=s.object({_meta:c.optional()});var d;t.NotificationSchema=s.object({method:s.string(),params:l.loose().optional()}),t.ResultSchema=s.looseObject({_meta:c.optional()}),t.RequestIdSchema=s.union([s.string(),s.number().int()]),t.JSONRPCRequestSchema=s.object({jsonrpc:s.literal(t.JSONRPC_VERSION),id:t.RequestIdSchema,...t.RequestSchema.shape}).strict(),t.isJSONRPCRequest=e=>t.JSONRPCRequestSchema.safeParse(e).success,t.JSONRPCNotificationSchema=s.object({jsonrpc:s.literal(t.JSONRPC_VERSION),...t.NotificationSchema.shape}).strict(),t.isJSONRPCNotification=e=>t.JSONRPCNotificationSchema.safeParse(e).success,t.JSONRPCResultResponseSchema=s.object({jsonrpc:s.literal(t.JSONRPC_VERSION),id:t.RequestIdSchema,result:t.ResultSchema}).strict(),t.isJSONRPCResultResponse=e=>t.JSONRPCResultResponseSchema.safeParse(e).success,t.isJSONRPCResponse=t.isJSONRPCResultResponse,function(e){e[e.ConnectionClosed=-32e3]="ConnectionClosed",e[e.RequestTimeout=-32001]="RequestTimeout",e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError",e[e.UrlElicitationRequired=-32042]="UrlElicitationRequired"}(d||(t.ErrorCode=d={})),t.JSONRPCErrorResponseSchema=s.object({jsonrpc:s.literal(t.JSONRPC_VERSION),id:t.RequestIdSchema.optional(),error:s.object({code:s.number().int(),message:s.string(),data:s.unknown().optional()})}).strict(),t.JSONRPCErrorSchema=t.JSONRPCErrorResponseSchema,t.isJSONRPCErrorResponse=e=>t.JSONRPCErrorResponseSchema.safeParse(e).success,t.isJSONRPCError=t.isJSONRPCErrorResponse,t.JSONRPCMessageSchema=s.union([t.JSONRPCRequestSchema,t.JSONRPCNotificationSchema,t.JSONRPCResultResponseSchema,t.JSONRPCErrorResponseSchema]),t.JSONRPCResponseSchema=s.union([t.JSONRPCResultResponseSchema,t.JSONRPCErrorResponseSchema]),t.EmptyResultSchema=t.ResultSchema.strict(),t.CancelledNotificationParamsSchema=l.extend({requestId:t.RequestIdSchema.optional(),reason:s.string().optional()}),t.CancelledNotificationSchema=t.NotificationSchema.extend({method:s.literal("notifications/cancelled"),params:t.CancelledNotificationParamsSchema}),t.IconSchema=s.object({src:s.string(),mimeType:s.string().optional(),sizes:s.array(s.string()).optional(),theme:s.enum(["light","dark"]).optional()}),t.IconsSchema=s.object({icons:s.array(t.IconSchema).optional()}),t.BaseMetadataSchema=s.object({name:s.string(),title:s.string().optional()}),t.ImplementationSchema=t.BaseMetadataSchema.extend({...t.BaseMetadataSchema.shape,...t.IconsSchema.shape,version:s.string(),websiteUrl:s.string().optional(),description:s.string().optional()});const p=s.intersection(s.object({applyDefaults:s.boolean().optional()}),s.record(s.string(),s.unknown())),f=s.preprocess(e=>e&&"object"==typeof e&&!Array.isArray(e)&&0===Object.keys(e).length?{form:{}}:e,s.intersection(s.object({form:p.optional(),url:a.optional()}),s.record(s.string(),s.unknown()).optional()));t.ClientTasksCapabilitySchema=s.looseObject({list:a.optional(),cancel:a.optional(),requests:s.looseObject({sampling:s.looseObject({createMessage:a.optional()}).optional(),elicitation:s.looseObject({create:a.optional()}).optional()}).optional()}),t.ServerTasksCapabilitySchema=s.looseObject({list:a.optional(),cancel:a.optional(),requests:s.looseObject({tools:s.looseObject({call:a.optional()}).optional()}).optional()}),t.ClientCapabilitiesSchema=s.object({experimental:s.record(s.string(),a).optional(),sampling:s.object({context:a.optional(),tools:a.optional()}).optional(),elicitation:f.optional(),roots:s.object({listChanged:s.boolean().optional()}).optional(),tasks:t.ClientTasksCapabilitySchema.optional(),extensions:s.record(s.string(),a).optional()}),t.InitializeRequestParamsSchema=u.extend({protocolVersion:s.string(),capabilities:t.ClientCapabilitiesSchema,clientInfo:t.ImplementationSchema}),t.InitializeRequestSchema=t.RequestSchema.extend({method:s.literal("initialize"),params:t.InitializeRequestParamsSchema}),t.isInitializeRequest=e=>t.InitializeRequestSchema.safeParse(e).success,t.ServerCapabilitiesSchema=s.object({experimental:s.record(s.string(),a).optional(),logging:a.optional(),completions:a.optional(),prompts:s.object({listChanged:s.boolean().optional()}).optional(),resources:s.object({subscribe:s.boolean().optional(),listChanged:s.boolean().optional()}).optional(),tools:s.object({listChanged:s.boolean().optional()}).optional(),tasks:t.ServerTasksCapabilitySchema.optional(),extensions:s.record(s.string(),a).optional()}),t.InitializeResultSchema=t.ResultSchema.extend({protocolVersion:s.string(),capabilities:t.ServerCapabilitiesSchema,serverInfo:t.ImplementationSchema,instructions:s.string().optional()}),t.InitializedNotificationSchema=t.NotificationSchema.extend({method:s.literal("notifications/initialized"),params:l.optional()}),t.isInitializedNotification=e=>t.InitializedNotificationSchema.safeParse(e).success,t.PingRequestSchema=t.RequestSchema.extend({method:s.literal("ping"),params:u.optional()}),t.ProgressSchema=s.object({progress:s.number(),total:s.optional(s.number()),message:s.optional(s.string())}),t.ProgressNotificationParamsSchema=s.object({...l.shape,...t.ProgressSchema.shape,progressToken:t.ProgressTokenSchema}),t.ProgressNotificationSchema=t.NotificationSchema.extend({method:s.literal("notifications/progress"),params:t.ProgressNotificationParamsSchema}),t.PaginatedRequestParamsSchema=u.extend({cursor:t.CursorSchema.optional()}),t.PaginatedRequestSchema=t.RequestSchema.extend({params:t.PaginatedRequestParamsSchema.optional()}),t.PaginatedResultSchema=t.ResultSchema.extend({nextCursor:t.CursorSchema.optional()}),t.TaskStatusSchema=s.enum(["working","input_required","completed","failed","cancelled"]),t.TaskSchema=s.object({taskId:s.string(),status:t.TaskStatusSchema,ttl:s.union([s.number(),s.null()]),createdAt:s.string(),lastUpdatedAt:s.string(),pollInterval:s.optional(s.number()),statusMessage:s.optional(s.string())}),t.CreateTaskResultSchema=t.ResultSchema.extend({task:t.TaskSchema}),t.TaskStatusNotificationParamsSchema=l.merge(t.TaskSchema),t.TaskStatusNotificationSchema=t.NotificationSchema.extend({method:s.literal("notifications/tasks/status"),params:t.TaskStatusNotificationParamsSchema}),t.GetTaskRequestSchema=t.RequestSchema.extend({method:s.literal("tasks/get"),params:u.extend({taskId:s.string()})}),t.GetTaskResultSchema=t.ResultSchema.merge(t.TaskSchema),t.GetTaskPayloadRequestSchema=t.RequestSchema.extend({method:s.literal("tasks/result"),params:u.extend({taskId:s.string()})}),t.GetTaskPayloadResultSchema=t.ResultSchema.loose(),t.ListTasksRequestSchema=t.PaginatedRequestSchema.extend({method:s.literal("tasks/list")}),t.ListTasksResultSchema=t.PaginatedResultSchema.extend({tasks:s.array(t.TaskSchema)}),t.CancelTaskRequestSchema=t.RequestSchema.extend({method:s.literal("tasks/cancel"),params:u.extend({taskId:s.string()})}),t.CancelTaskResultSchema=t.ResultSchema.merge(t.TaskSchema),t.ResourceContentsSchema=s.object({uri:s.string(),mimeType:s.optional(s.string()),_meta:s.record(s.string(),s.unknown()).optional()}),t.TextResourceContentsSchema=t.ResourceContentsSchema.extend({text:s.string()});const m=s.string().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:"Invalid Base64 string"});t.BlobResourceContentsSchema=t.ResourceContentsSchema.extend({blob:m}),t.RoleSchema=s.enum(["user","assistant"]),t.AnnotationsSchema=s.object({audience:s.array(t.RoleSchema).optional(),priority:s.number().min(0).max(1).optional(),lastModified:s.iso.datetime({offset:!0}).optional()}),t.ResourceSchema=s.object({...t.BaseMetadataSchema.shape,...t.IconsSchema.shape,uri:s.string(),description:s.optional(s.string()),mimeType:s.optional(s.string()),size:s.optional(s.number()),annotations:t.AnnotationsSchema.optional(),_meta:s.optional(s.looseObject({}))}),t.ResourceTemplateSchema=s.object({...t.BaseMetadataSchema.shape,...t.IconsSchema.shape,uriTemplate:s.string(),description:s.optional(s.string()),mimeType:s.optional(s.string()),annotations:t.AnnotationsSchema.optional(),_meta:s.optional(s.looseObject({}))}),t.ListResourcesRequestSchema=t.PaginatedRequestSchema.extend({method:s.literal("resources/list")}),t.ListResourcesResultSchema=t.PaginatedResultSchema.extend({resources:s.array(t.ResourceSchema)}),t.ListResourceTemplatesRequestSchema=t.PaginatedRequestSchema.extend({method:s.literal("resources/templates/list")}),t.ListResourceTemplatesResultSchema=t.PaginatedResultSchema.extend({resourceTemplates:s.array(t.ResourceTemplateSchema)}),t.ResourceRequestParamsSchema=u.extend({uri:s.string()}),t.ReadResourceRequestParamsSchema=t.ResourceRequestParamsSchema,t.ReadResourceRequestSchema=t.RequestSchema.extend({method:s.literal("resources/read"),params:t.ReadResourceRequestParamsSchema}),t.ReadResourceResultSchema=t.ResultSchema.extend({contents:s.array(s.union([t.TextResourceContentsSchema,t.BlobResourceContentsSchema]))}),t.ResourceListChangedNotificationSchema=t.NotificationSchema.extend({method:s.literal("notifications/resources/list_changed"),params:l.optional()}),t.SubscribeRequestParamsSchema=t.ResourceRequestParamsSchema,t.SubscribeRequestSchema=t.RequestSchema.extend({method:s.literal("resources/subscribe"),params:t.SubscribeRequestParamsSchema}),t.UnsubscribeRequestParamsSchema=t.ResourceRequestParamsSchema,t.UnsubscribeRequestSchema=t.RequestSchema.extend({method:s.literal("resources/unsubscribe"),params:t.UnsubscribeRequestParamsSchema}),t.ResourceUpdatedNotificationParamsSchema=l.extend({uri:s.string()}),t.ResourceUpdatedNotificationSchema=t.NotificationSchema.extend({method:s.literal("notifications/resources/updated"),params:t.ResourceUpdatedNotificationParamsSchema}),t.PromptArgumentSchema=s.object({name:s.string(),description:s.optional(s.string()),required:s.optional(s.boolean())}),t.PromptSchema=s.object({...t.BaseMetadataSchema.shape,...t.IconsSchema.shape,description:s.optional(s.string()),arguments:s.optional(s.array(t.PromptArgumentSchema)),_meta:s.optional(s.looseObject({}))}),t.ListPromptsRequestSchema=t.PaginatedRequestSchema.extend({method:s.literal("prompts/list")}),t.ListPromptsResultSchema=t.PaginatedResultSchema.extend({prompts:s.array(t.PromptSchema)}),t.GetPromptRequestParamsSchema=u.extend({name:s.string(),arguments:s.record(s.string(),s.string()).optional()}),t.GetPromptRequestSchema=t.RequestSchema.extend({method:s.literal("prompts/get"),params:t.GetPromptRequestParamsSchema}),t.TextContentSchema=s.object({type:s.literal("text"),text:s.string(),annotations:t.AnnotationsSchema.optional(),_meta:s.record(s.string(),s.unknown()).optional()}),t.ImageContentSchema=s.object({type:s.literal("image"),data:m,mimeType:s.string(),annotations:t.AnnotationsSchema.optional(),_meta:s.record(s.string(),s.unknown()).optional()}),t.AudioContentSchema=s.object({type:s.literal("audio"),data:m,mimeType:s.string(),annotations:t.AnnotationsSchema.optional(),_meta:s.record(s.string(),s.unknown()).optional()}),t.ToolUseContentSchema=s.object({type:s.literal("tool_use"),name:s.string(),id:s.string(),input:s.record(s.string(),s.unknown()),_meta:s.record(s.string(),s.unknown()).optional()}),t.EmbeddedResourceSchema=s.object({type:s.literal("resource"),resource:s.union([t.TextResourceContentsSchema,t.BlobResourceContentsSchema]),annotations:t.AnnotationsSchema.optional(),_meta:s.record(s.string(),s.unknown()).optional()}),t.ResourceLinkSchema=t.ResourceSchema.extend({type:s.literal("resource_link")}),t.ContentBlockSchema=s.union([t.TextContentSchema,t.ImageContentSchema,t.AudioContentSchema,t.ResourceLinkSchema,t.EmbeddedResourceSchema]),t.PromptMessageSchema=s.object({role:t.RoleSchema,content:t.ContentBlockSchema}),t.GetPromptResultSchema=t.ResultSchema.extend({description:s.string().optional(),messages:s.array(t.PromptMessageSchema)}),t.PromptListChangedNotificationSchema=t.NotificationSchema.extend({method:s.literal("notifications/prompts/list_changed"),params:l.optional()}),t.ToolAnnotationsSchema=s.object({title:s.string().optional(),readOnlyHint:s.boolean().optional(),destructiveHint:s.boolean().optional(),idempotentHint:s.boolean().optional(),openWorldHint:s.boolean().optional()}),t.ToolExecutionSchema=s.object({taskSupport:s.enum(["required","optional","forbidden"]).optional()}),t.ToolSchema=s.object({...t.BaseMetadataSchema.shape,...t.IconsSchema.shape,description:s.string().optional(),inputSchema:s.object({type:s.literal("object"),properties:s.record(s.string(),a).optional(),required:s.array(s.string()).optional()}).catchall(s.unknown()),outputSchema:s.object({type:s.literal("object"),properties:s.record(s.string(),a).optional(),required:s.array(s.string()).optional()}).catchall(s.unknown()).optional(),annotations:t.ToolAnnotationsSchema.optional(),execution:t.ToolExecutionSchema.optional(),_meta:s.record(s.string(),s.unknown()).optional()}),t.ListToolsRequestSchema=t.PaginatedRequestSchema.extend({method:s.literal("tools/list")}),t.ListToolsResultSchema=t.PaginatedResultSchema.extend({tools:s.array(t.ToolSchema)}),t.CallToolResultSchema=t.ResultSchema.extend({content:s.array(t.ContentBlockSchema).default([]),structuredContent:s.record(s.string(),s.unknown()).optional(),isError:s.boolean().optional()}),t.CompatibilityCallToolResultSchema=t.CallToolResultSchema.or(t.ResultSchema.extend({toolResult:s.unknown()})),t.CallToolRequestParamsSchema=t.TaskAugmentedRequestParamsSchema.extend({name:s.string(),arguments:s.record(s.string(),s.unknown()).optional()}),t.CallToolRequestSchema=t.RequestSchema.extend({method:s.literal("tools/call"),params:t.CallToolRequestParamsSchema}),t.ToolListChangedNotificationSchema=t.NotificationSchema.extend({method:s.literal("notifications/tools/list_changed"),params:l.optional()}),t.ListChangedOptionsBaseSchema=s.object({autoRefresh:s.boolean().default(!0),debounceMs:s.number().int().nonnegative().default(300)}),t.LoggingLevelSchema=s.enum(["debug","info","notice","warning","error","critical","alert","emergency"]),t.SetLevelRequestParamsSchema=u.extend({level:t.LoggingLevelSchema}),t.SetLevelRequestSchema=t.RequestSchema.extend({method:s.literal("logging/setLevel"),params:t.SetLevelRequestParamsSchema}),t.LoggingMessageNotificationParamsSchema=l.extend({level:t.LoggingLevelSchema,logger:s.string().optional(),data:s.unknown()}),t.LoggingMessageNotificationSchema=t.NotificationSchema.extend({method:s.literal("notifications/message"),params:t.LoggingMessageNotificationParamsSchema}),t.ModelHintSchema=s.object({name:s.string().optional()}),t.ModelPreferencesSchema=s.object({hints:s.array(t.ModelHintSchema).optional(),costPriority:s.number().min(0).max(1).optional(),speedPriority:s.number().min(0).max(1).optional(),intelligencePriority:s.number().min(0).max(1).optional()}),t.ToolChoiceSchema=s.object({mode:s.enum(["auto","required","none"]).optional()}),t.ToolResultContentSchema=s.object({type:s.literal("tool_result"),toolUseId:s.string().describe("The unique identifier for the corresponding tool call."),content:s.array(t.ContentBlockSchema).default([]),structuredContent:s.object({}).loose().optional(),isError:s.boolean().optional(),_meta:s.record(s.string(),s.unknown()).optional()}),t.SamplingContentSchema=s.discriminatedUnion("type",[t.TextContentSchema,t.ImageContentSchema,t.AudioContentSchema]),t.SamplingMessageContentBlockSchema=s.discriminatedUnion("type",[t.TextContentSchema,t.ImageContentSchema,t.AudioContentSchema,t.ToolUseContentSchema,t.ToolResultContentSchema]),t.SamplingMessageSchema=s.object({role:t.RoleSchema,content:s.union([t.SamplingMessageContentBlockSchema,s.array(t.SamplingMessageContentBlockSchema)]),_meta:s.record(s.string(),s.unknown()).optional()}),t.CreateMessageRequestParamsSchema=t.TaskAugmentedRequestParamsSchema.extend({messages:s.array(t.SamplingMessageSchema),modelPreferences:t.ModelPreferencesSchema.optional(),systemPrompt:s.string().optional(),includeContext:s.enum(["none","thisServer","allServers"]).optional(),temperature:s.number().optional(),maxTokens:s.number().int(),stopSequences:s.array(s.string()).optional(),metadata:a.optional(),tools:s.array(t.ToolSchema).optional(),toolChoice:t.ToolChoiceSchema.optional()}),t.CreateMessageRequestSchema=t.RequestSchema.extend({method:s.literal("sampling/createMessage"),params:t.CreateMessageRequestParamsSchema}),t.CreateMessageResultSchema=t.ResultSchema.extend({model:s.string(),stopReason:s.optional(s.enum(["endTurn","stopSequence","maxTokens"]).or(s.string())),role:t.RoleSchema,content:t.SamplingContentSchema}),t.CreateMessageResultWithToolsSchema=t.ResultSchema.extend({model:s.string(),stopReason:s.optional(s.enum(["endTurn","stopSequence","maxTokens","toolUse"]).or(s.string())),role:t.RoleSchema,content:s.union([t.SamplingMessageContentBlockSchema,s.array(t.SamplingMessageContentBlockSchema)])}),t.BooleanSchemaSchema=s.object({type:s.literal("boolean"),title:s.string().optional(),description:s.string().optional(),default:s.boolean().optional()}),t.StringSchemaSchema=s.object({type:s.literal("string"),title:s.string().optional(),description:s.string().optional(),minLength:s.number().optional(),maxLength:s.number().optional(),format:s.enum(["email","uri","date","date-time"]).optional(),default:s.string().optional()}),t.NumberSchemaSchema=s.object({type:s.enum(["number","integer"]),title:s.string().optional(),description:s.string().optional(),minimum:s.number().optional(),maximum:s.number().optional(),default:s.number().optional()}),t.UntitledSingleSelectEnumSchemaSchema=s.object({type:s.literal("string"),title:s.string().optional(),description:s.string().optional(),enum:s.array(s.string()),default:s.string().optional()}),t.TitledSingleSelectEnumSchemaSchema=s.object({type:s.literal("string"),title:s.string().optional(),description:s.string().optional(),oneOf:s.array(s.object({const:s.string(),title:s.string()})),default:s.string().optional()}),t.LegacyTitledEnumSchemaSchema=s.object({type:s.literal("string"),title:s.string().optional(),description:s.string().optional(),enum:s.array(s.string()),enumNames:s.array(s.string()).optional(),default:s.string().optional()}),t.SingleSelectEnumSchemaSchema=s.union([t.UntitledSingleSelectEnumSchemaSchema,t.TitledSingleSelectEnumSchemaSchema]),t.UntitledMultiSelectEnumSchemaSchema=s.object({type:s.literal("array"),title:s.string().optional(),description:s.string().optional(),minItems:s.number().optional(),maxItems:s.number().optional(),items:s.object({type:s.literal("string"),enum:s.array(s.string())}),default:s.array(s.string()).optional()}),t.TitledMultiSelectEnumSchemaSchema=s.object({type:s.literal("array"),title:s.string().optional(),description:s.string().optional(),minItems:s.number().optional(),maxItems:s.number().optional(),items:s.object({anyOf:s.array(s.object({const:s.string(),title:s.string()}))}),default:s.array(s.string()).optional()}),t.MultiSelectEnumSchemaSchema=s.union([t.UntitledMultiSelectEnumSchemaSchema,t.TitledMultiSelectEnumSchemaSchema]),t.EnumSchemaSchema=s.union([t.LegacyTitledEnumSchemaSchema,t.SingleSelectEnumSchemaSchema,t.MultiSelectEnumSchemaSchema]),t.PrimitiveSchemaDefinitionSchema=s.union([t.EnumSchemaSchema,t.BooleanSchemaSchema,t.StringSchemaSchema,t.NumberSchemaSchema]),t.ElicitRequestFormParamsSchema=t.TaskAugmentedRequestParamsSchema.extend({mode:s.literal("form").optional(),message:s.string(),requestedSchema:s.object({type:s.literal("object"),properties:s.record(s.string(),t.PrimitiveSchemaDefinitionSchema),required:s.array(s.string()).optional()})}),t.ElicitRequestURLParamsSchema=t.TaskAugmentedRequestParamsSchema.extend({mode:s.literal("url"),message:s.string(),elicitationId:s.string(),url:s.string().url()}),t.ElicitRequestParamsSchema=s.union([t.ElicitRequestFormParamsSchema,t.ElicitRequestURLParamsSchema]),t.ElicitRequestSchema=t.RequestSchema.extend({method:s.literal("elicitation/create"),params:t.ElicitRequestParamsSchema}),t.ElicitationCompleteNotificationParamsSchema=l.extend({elicitationId:s.string()}),t.ElicitationCompleteNotificationSchema=t.NotificationSchema.extend({method:s.literal("notifications/elicitation/complete"),params:t.ElicitationCompleteNotificationParamsSchema}),t.ElicitResultSchema=t.ResultSchema.extend({action:s.enum(["accept","decline","cancel"]),content:s.preprocess(e=>null===e?void 0:e,s.record(s.string(),s.union([s.string(),s.number(),s.boolean(),s.array(s.string())])).optional())}),t.ResourceTemplateReferenceSchema=s.object({type:s.literal("ref/resource"),uri:s.string()}),t.ResourceReferenceSchema=t.ResourceTemplateReferenceSchema,t.PromptReferenceSchema=s.object({type:s.literal("ref/prompt"),name:s.string()}),t.CompleteRequestParamsSchema=u.extend({ref:s.union([t.PromptReferenceSchema,t.ResourceTemplateReferenceSchema]),argument:s.object({name:s.string(),value:s.string()}),context:s.object({arguments:s.record(s.string(),s.string()).optional()}).optional()}),t.CompleteRequestSchema=t.RequestSchema.extend({method:s.literal("completion/complete"),params:t.CompleteRequestParamsSchema}),t.CompleteResultSchema=t.ResultSchema.extend({completion:s.looseObject({values:s.array(s.string()).max(100),total:s.optional(s.number().int()),hasMore:s.optional(s.boolean())})}),t.RootSchema=s.object({uri:s.string().startsWith("file://"),name:s.string().optional(),_meta:s.record(s.string(),s.unknown()).optional()}),t.ListRootsRequestSchema=t.RequestSchema.extend({method:s.literal("roots/list"),params:u.optional()}),t.ListRootsResultSchema=t.ResultSchema.extend({roots:s.array(t.RootSchema)}),t.RootsListChangedNotificationSchema=t.NotificationSchema.extend({method:s.literal("notifications/roots/list_changed"),params:l.optional()}),t.ClientRequestSchema=s.union([t.PingRequestSchema,t.InitializeRequestSchema,t.CompleteRequestSchema,t.SetLevelRequestSchema,t.GetPromptRequestSchema,t.ListPromptsRequestSchema,t.ListResourcesRequestSchema,t.ListResourceTemplatesRequestSchema,t.ReadResourceRequestSchema,t.SubscribeRequestSchema,t.UnsubscribeRequestSchema,t.CallToolRequestSchema,t.ListToolsRequestSchema,t.GetTaskRequestSchema,t.GetTaskPayloadRequestSchema,t.ListTasksRequestSchema,t.CancelTaskRequestSchema]),t.ClientNotificationSchema=s.union([t.CancelledNotificationSchema,t.ProgressNotificationSchema,t.InitializedNotificationSchema,t.RootsListChangedNotificationSchema,t.TaskStatusNotificationSchema]),t.ClientResultSchema=s.union([t.EmptyResultSchema,t.CreateMessageResultSchema,t.CreateMessageResultWithToolsSchema,t.ElicitResultSchema,t.ListRootsResultSchema,t.GetTaskResultSchema,t.ListTasksResultSchema,t.CreateTaskResultSchema]),t.ServerRequestSchema=s.union([t.PingRequestSchema,t.CreateMessageRequestSchema,t.ElicitRequestSchema,t.ListRootsRequestSchema,t.GetTaskRequestSchema,t.GetTaskPayloadRequestSchema,t.ListTasksRequestSchema,t.CancelTaskRequestSchema]),t.ServerNotificationSchema=s.union([t.CancelledNotificationSchema,t.ProgressNotificationSchema,t.LoggingMessageNotificationSchema,t.ResourceUpdatedNotificationSchema,t.ResourceListChangedNotificationSchema,t.ToolListChangedNotificationSchema,t.PromptListChangedNotificationSchema,t.TaskStatusNotificationSchema,t.ElicitationCompleteNotificationSchema]),t.ServerResultSchema=s.union([t.EmptyResultSchema,t.InitializeResultSchema,t.CompleteResultSchema,t.GetPromptResultSchema,t.ListPromptsResultSchema,t.ListResourcesResultSchema,t.ListResourceTemplatesResultSchema,t.ReadResourceResultSchema,t.CallToolResultSchema,t.ListToolsResultSchema,t.GetTaskResultSchema,t.ListTasksResultSchema,t.CreateTaskResultSchema]);class h extends Error{constructor(e,t,n){super(`MCP error ${e}: ${t}`),this.code=e,this.data=n,this.name="McpError"}static fromError(e,t,n){if(e===d.UrlElicitationRequired&&n){const e=n;if(e.elicitations)return new v(e.elicitations,t)}return new h(e,t,n)}}t.McpError=h;class v extends h{constructor(e,t=`URL elicitation${e.length>1?"s":""} required`){super(d.UrlElicitationRequired,t,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}}t.UrlElicitationRequiredError=v},1381:(e,t,n)=>{var r=n(79896),i=n(16928),o=n(70857),s=require,a=process.config&&process.config.variables||{},c=!!process.env.PREBUILDS_ONLY,u=process.versions.modules,l=process.versions&&process.versions.electron||process.env.ELECTRON_RUN_AS_NODE||"undefined"!=typeof window&&window.process&&"renderer"===window.process.type?"electron":process.versions&&process.versions.nw?"node-webkit":"node",d=process.env.npm_config_arch||o.arch(),p=process.env.npm_config_platform||o.platform(),f=process.env.LIBC||(function(e){return"linux"===e&&r.existsSync("/etc/alpine-release")}(p)?"musl":"glibc"),m=process.env.ARM_VERSION||("arm64"===d?"8":a.arm_version)||"",h=(process.versions.uv||"").split(".")[0];function v(e){return s(v.resolve(e))}function g(e){try{return r.readdirSync(e)}catch(e){return[]}}function y(e,t){var n=g(e).filter(t);return n[0]&&i.join(e,n[0])}function _(e){return/\.node$/.test(e)}function b(e){var t=e.split("-");if(2===t.length){var n=t[0],r=t[1].split("+");if(n&&r.length&&r.every(Boolean))return{name:e,platform:n,architectures:r}}}function x(e,t){return function(n){return null!=n&&n.platform===e&&n.architectures.includes(t)}}function w(e,t){return e.architectures.length-t.architectures.length}function S(e){var t=e.split("."),n={file:e,specificity:0};if("node"===t.pop()){for(var r=0;r<t.length;r++){var i=t[r];if("node"===i||"electron"===i||"node-webkit"===i)n.runtime=i;else if("napi"===i)n.napi=!0;else if("abi"===i.slice(0,3))n.abi=i.slice(3);else if("uv"===i.slice(0,2))n.uv=i.slice(2);else if("armv"===i.slice(0,4))n.armv=i.slice(4);else{if("glibc"!==i&&"musl"!==i)continue;n.libc=i}n.specificity++}return n}}function O(e,t){return function(n){return!(null==n||n.runtime&&n.runtime!==e&&!function(e){return"node"===e.runtime&&e.napi}(n)||n.abi&&n.abi!==t&&!n.napi||n.uv&&n.uv!==h||n.armv&&n.armv!==m||n.libc&&n.libc!==f)}}function k(e){return function(t,n){return t.runtime!==n.runtime?t.runtime===e?-1:1:t.abi!==n.abi?t.abi?-1:1:t.specificity!==n.specificity?t.specificity>n.specificity?-1:1:0}}e.exports=v,v.resolve=v.path=function(e){e=i.resolve(e||".");try{var t=s(i.join(e,"package.json")).name.toUpperCase().replace(/-/g,"_");process.env[t+"_PREBUILD"]&&(e=process.env[t+"_PREBUILD"])}catch(e){}if(!c){var n=y(i.join(e,"build/Release"),_);if(n)return n;var r=y(i.join(e,"build/Debug"),_);if(r)return r}var o=$(e);if(o)return o;var a=$(i.dirname(process.execPath));if(a)return a;var v=["platform="+p,"arch="+d,"runtime="+l,"abi="+u,"uv="+h,m?"armv="+m:"","libc="+f,"node="+process.versions.node,process.versions.electron?"electron="+process.versions.electron:"","webpack=true"].filter(Boolean).join(" ");throw new Error("No native build was found for "+v+"\n loaded from: "+e+"\n");function $(e){var t=g(i.join(e,"prebuilds")).map(b).filter(x(p,d)).sort(w)[0];if(t){var n=i.join(e,"prebuilds",t.name),r=g(n).map(S).filter(O(l,u)).sort(k(l))[0];return r?i.join(n,r.file):void 0}}},v.parseTags=S,v.matchTags=O,v.compareTags=k,v.parseTuple=b,v.matchTuple=x,v.compareTuples=w},1708:e=>{"use strict";e.exports=require("node:process")},1838:(e,t,n)=>{"use strict";const{Writable:r}=n(2203),i=n(95483),{BINARY_TYPES:o,EMPTY_BUFFER:s,kStatusCode:a,kWebSocket:c}=n(50918),{concat:u,toArrayBuffer:l,unmask:d}=n(62842),{isValidStatusCode:p,isValidUTF8:f}=n(51016);function m(e,t,n,r,i){const o=new e(n?`Invalid WebSocket frame: ${t}`:t);return Error.captureStackTrace(o,m),o.code=i,o[a]=r,o}e.exports=class extends r{constructor(e,t,n,r){super(),this._binaryType=e||o[0],this[c]=void 0,this._extensions=t||{},this._isServer=!!n,this._maxPayload=0|r,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._fragments=[],this._state=0,this._loop=!1}_write(e,t,n){if(8===this._opcode&&0==this._state)return n();this._bufferedBytes+=e.length,this._buffers.push(e),this.startLoop(n)}consume(e){if(this._bufferedBytes-=e,e===this._buffers[0].length)return this._buffers.shift();if(e<this._buffers[0].length){const t=this._buffers[0];return this._buffers[0]=t.slice(e),t.slice(0,e)}const t=Buffer.allocUnsafe(e);do{const n=this._buffers[0],r=t.length-e;e>=n.length?t.set(this._buffers.shift(),r):(t.set(new Uint8Array(n.buffer,n.byteOffset,e),r),this._buffers[0]=n.slice(e)),e-=n.length}while(e>0);return t}startLoop(e){let t;this._loop=!0;do{switch(this._state){case 0:t=this.getInfo();break;case 1:t=this.getPayloadLength16();break;case 2:t=this.getPayloadLength64();break;case 3:this.getMask();break;case 4:t=this.getData(e);break;default:return void(this._loop=!1)}}while(this._loop);e(t)}getInfo(){if(this._bufferedBytes<2)return void(this._loop=!1);const e=this.consume(2);if(48&e[0])return this._loop=!1,m(RangeError,"RSV2 and RSV3 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_2_3");const t=!(64&~e[0]);if(t&&!this._extensions[i.extensionName])return this._loop=!1,m(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");if(this._fin=!(128&~e[0]),this._opcode=15&e[0],this._payloadLength=127&e[1],0===this._opcode){if(t)return this._loop=!1,m(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");if(!this._fragmented)return this._loop=!1,m(RangeError,"invalid opcode 0",!0,1002,"WS_ERR_INVALID_OPCODE");this._opcode=this._fragmented}else if(1===this._opcode||2===this._opcode){if(this._fragmented)return this._loop=!1,m(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");this._compressed=t}else{if(!(this._opcode>7&&this._opcode<11))return this._loop=!1,m(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");if(!this._fin)return this._loop=!1,m(RangeError,"FIN must be set",!0,1002,"WS_ERR_EXPECTED_FIN");if(t)return this._loop=!1,m(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");if(this._payloadLength>125)return this._loop=!1,m(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH")}if(this._fin||this._fragmented||(this._fragmented=this._opcode),this._masked=!(128&~e[1]),this._isServer){if(!this._masked)return this._loop=!1,m(RangeError,"MASK must be set",!0,1002,"WS_ERR_EXPECTED_MASK")}else if(this._masked)return this._loop=!1,m(RangeError,"MASK must be clear",!0,1002,"WS_ERR_UNEXPECTED_MASK");if(126===this._payloadLength)this._state=1;else{if(127!==this._payloadLength)return this.haveLength();this._state=2}}getPayloadLength16(){if(!(this._bufferedBytes<2))return this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength();this._loop=!1}getPayloadLength64(){if(this._bufferedBytes<8)return void(this._loop=!1);const e=this.consume(8),t=e.readUInt32BE(0);return t>Math.pow(2,21)-1?(this._loop=!1,m(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH")):(this._payloadLength=t*Math.pow(2,32)+e.readUInt32BE(4),this.haveLength())}haveLength(){if(this._payloadLength&&this._opcode<8&&(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0))return this._loop=!1,m(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");this._masked?this._state=3:this._state=4}getMask(){this._bufferedBytes<4?this._loop=!1:(this._mask=this.consume(4),this._state=4)}getData(e){let t=s;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength)return void(this._loop=!1);t=this.consume(this._payloadLength),this._masked&&d(t,this._mask)}return this._opcode>7?this.controlMessage(t):this._compressed?(this._state=5,void this.decompress(t,e)):(t.length&&(this._messageLength=this._totalPayloadLength,this._fragments.push(t)),this.dataMessage())}decompress(e,t){this._extensions[i.extensionName].decompress(e,this._fin,(e,n)=>{if(e)return t(e);if(n.length){if(this._messageLength+=n.length,this._messageLength>this._maxPayload&&this._maxPayload>0)return t(m(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH"));this._fragments.push(n)}const r=this.dataMessage();if(r)return t(r);this.startLoop(t)})}dataMessage(){if(this._fin){const e=this._messageLength,t=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],2===this._opcode){let n;n="nodebuffer"===this._binaryType?u(t,e):"arraybuffer"===this._binaryType?l(u(t,e)):t,this.emit("message",n)}else{const n=u(t,e);if(!f(n))return this._loop=!1,m(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");this.emit("message",n.toString())}}this._state=0}controlMessage(e){if(8===this._opcode)if(this._loop=!1,0===e.length)this.emit("conclude",1005,""),this.end();else{if(1===e.length)return m(RangeError,"invalid payload length 1",!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH");{const t=e.readUInt16BE(0);if(!p(t))return m(RangeError,`invalid status code ${t}`,!0,1002,"WS_ERR_INVALID_CLOSE_CODE");const n=e.slice(2);if(!f(n))return m(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");this.emit("conclude",t,n.toString()),this.end()}}else 9===this._opcode?this.emit("ping",e):this.emit("pong",e);this._state=0}}},1897:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toEngineType=function(e){return"typescript"===e||e===r.EngineType.typescript?(0,i.success)(r.EngineType.typescript):"javascript"===e||e===r.EngineType.javascript?(0,i.success)(r.EngineType.javascript):(0,i.failure)("invalid_input","'language' must be either 'javascript' or 'typescript'.")},t.normalizeFileName=function(e){let t=e;for(const e of o)t.toLowerCase().endsWith(e)&&(t=t.substring(0,t.length-e.length));return t.trim()};const r=n(52829),i=n(98297),o=[".js",".ts"]},2163:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.getScriptContent=function(e,t){return r(this,void 0,void 0,function*(){var n;const r=(0,s.toScriptId)(t.scriptId);if(!r.ok)return r;const a=(0,o.ensureRemoteConnected)(e);if(a)return{ok:!1,error:a};const c=r.data,u=e.scripts.getScriptFromId(c);if(!u)return(0,i.failure)("not_found",`The script '${c}' is not known to the ioBroker server.`,"Use iobroker_get_scripts to look up available script ids.");const l=(0,s.toBoundedInteger)(t.maxLength,i.MAX_SCRIPT_CONTENT_LENGTH,1,Number.MAX_SAFE_INTEGER),d=null!==(n=u.common.source)&&void 0!==n?n:"",p=d.length>l;return(0,i.success)({scriptId:(0,o.scriptIdOf)(u),name:(0,o.scriptNameOf)(u),source:p?d.substring(0,l):d,truncated:p})})};const i=n(49402),o=n(33510),s=n(75061)},2203:e=>{"use strict";e.exports=require("stream")},2225:(e,t,n)=>{var r=n(64634),i=n(28247),o=Object.prototype.toString,s="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===o.call(Blob),a="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===o.call(File);function c(e,t){if(!e)return e;if(i(e)){var n={_placeholder:!0,num:t.length};return t.push(e),n}if(r(e)){for(var o=new Array(e.length),s=0;s<e.length;s++)o[s]=c(e[s],t);return o}if("object"==typeof e&&!(e instanceof Date)){for(var a in o={},e)o[a]=c(e[a],t);return o}return e}function u(e,t){if(!e)return e;if(e&&!0===e._placeholder){if("number"==typeof e.num&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}if(r(e))for(var n=0;n<e.length;n++)e[n]=u(e[n],t);else if("object"==typeof e)for(var i in e)e[i]=u(e[i],t);return e}t.deconstructPacket=function(e){var t=[],n=e.data,r=e;return r.data=c(n,t),r.attachments=t.length,{packet:r,buffers:t}},t.reconstructPacket=function(e,t){return e.data=u(e.data,t),e.attachments=void 0,e},t.removeBlobs=function(e,t){var n=0,o=e;!function e(c,u,l){if(!c)return c;if(s&&c instanceof Blob||a&&c instanceof File){n++;var d=new FileReader;d.onload=function(){l?l[u]=this.result:o=this.result,--n||t(o)},d.readAsArrayBuffer(c)}else if(r(c))for(var p=0;p<c.length;p++)e(c[p],p,c);else if("object"==typeof c&&!i(c))for(var f in c)e(c[f],f,c)}(o),n||t(o)}},2327:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(51980),i=n(66596),o=n(26670),s=n(99048),a={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>i._`{additionalProperty: ${e.additionalProperty}}`},code(e){const{gen:t,schema:n,parentSchema:a,data:c,errsCount:u,it:l}=e;if(!u)throw new Error("ajv implementation error");const{allErrors:d,opts:p}=l;if(l.props=!0,"all"!==p.removeAdditional&&(0,s.alwaysValidSchema)(l,n))return;const f=(0,r.allSchemaProperties)(a.properties),m=(0,r.allSchemaProperties)(a.patternProperties);function h(e){t.code(i._`delete ${c}[${e}]`)}function v(r){if("all"===p.removeAdditional||p.removeAdditional&&!1===n)h(r);else{if(!1===n)return e.setParams({additionalProperty:r}),e.error(),void(d||t.break());if("object"==typeof n&&!(0,s.alwaysValidSchema)(l,n)){const n=t.name("valid");"failing"===p.removeAdditional?(g(r,n,!1),t.if((0,i.not)(n),()=>{e.reset(),h(r)})):(g(r,n),d||t.if((0,i.not)(n),()=>t.break()))}}}function g(t,n,r){const i={keyword:"additionalProperties",dataProp:t,dataPropType:s.Type.Str};!1===r&&Object.assign(i,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(i,n)}t.forIn("key",c,n=>{f.length||m.length?t.if(function(n){let o;if(f.length>8){const e=(0,s.schemaRefOrVal)(l,a.properties,"properties");o=(0,r.isOwnProperty)(t,e,n)}else o=f.length?(0,i.or)(...f.map(e=>i._`${n} === ${e}`)):i.nil;return m.length&&(o=(0,i.or)(o,...m.map(t=>i._`${(0,r.usePattern)(e,t)}.test(${n})`))),(0,i.not)(o)}(n),()=>v(n)):v(n)}),e.ok(i._`${u} === ${o.default.errors}`)}};t.default=a},2519:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{localeError:a()}};const s=o(n(90523)),a=()=>{const e={string:{unit:"tekens"},file:{unit:"bytes"},array:{unit:"elementen"},set:{unit:"elementen"}};function t(t){return e[t]??null}const n={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"};return e=>{switch(e.code){case"invalid_type":return`Ongeldige invoer: verwacht ${e.expected}, ontving ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"getal";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Ongeldige invoer: verwacht ${s.stringifyPrimitive(e.values[0])}`:`Ongeldige optie: verwacht één van ${s.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`Te lang: verwacht dat ${e.origin??"waarde"} ${n}${e.maximum.toString()} ${r.unit??"elementen"} bevat`:`Te lang: verwacht dat ${e.origin??"waarde"} ${n}${e.maximum.toString()} is`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`Te kort: verwacht dat ${e.origin} ${n}${e.minimum.toString()} ${r.unit} bevat`:`Te kort: verwacht dat ${e.origin} ${n}${e.minimum.toString()} is`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Ongeldige tekst: moet met "${t.prefix}" beginnen`:"ends_with"===t.format?`Ongeldige tekst: moet op "${t.suffix}" eindigen`:"includes"===t.format?`Ongeldige tekst: moet "${t.includes}" bevatten`:"regex"===t.format?`Ongeldige tekst: moet overeenkomen met patroon ${t.pattern}`:`Ongeldig: ${n[t.format]??e.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${e.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${e.keys.length>1?"s":""}: ${s.joinValues(e.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${e.origin}`;case"invalid_union":default:return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${e.origin}`}}}},2775:e=>{"use strict";var t=e.exports=function(e,t,r){"function"==typeof t&&(r=t,t={}),n(t,"function"==typeof(r=t.cb||r)?r:r.pre||function(){},r.post||function(){},e,"",e)};function n(e,i,o,s,a,c,u,l,d,p){if(s&&"object"==typeof s&&!Array.isArray(s)){for(var f in i(s,a,c,u,l,d,p),s){var m=s[f];if(Array.isArray(m)){if(f in t.arrayKeywords)for(var h=0;h<m.length;h++)n(e,i,o,m[h],a+"/"+f+"/"+h,c,a,f,s,h)}else if(f in t.propsKeywords){if(m&&"object"==typeof m)for(var v in m)n(e,i,o,m[v],a+"/"+f+"/"+r(v),c,a,f,s,v)}else(f in t.keywords||e.allKeys&&!(f in t.skipKeywords))&&n(e,i,o,m,a+"/"+f,c,a,f,s)}o(s,a,c,u,l,d,p)}}function r(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}t.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},t.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},t.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},t.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0}},3097:e=>{var t=1e3,n=60*t,r=60*n,i=24*r;function o(e,t,n){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}e.exports=function(e,s){s=s||{};var a,c=typeof e;if("string"===c&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var o=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(o){var s=parseFloat(o[1]);switch((o[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"days":case"day":case"d":return s*i;case"hours":case"hour":case"hrs":case"hr":case"h":return s*r;case"minutes":case"minute":case"mins":case"min":case"m":return s*n;case"seconds":case"second":case"secs":case"sec":case"s":return s*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}(e);if("number"===c&&!1===isNaN(e))return s.long?o(a=e,i,"day")||o(a,r,"hour")||o(a,n,"minute")||o(a,t,"second")||a+" ms":function(e){return e>=i?Math.round(e/i)+"d":e>=r?Math.round(e/r)+"h":e>=n?Math.round(e/n)+"m":e>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},3357:(e,t,n)=>{e.exports=n(67292),e.exports.parser=n(6809)},3424:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{localeError:a()}};const s=o(n(90523)),a=()=>{const e={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function t(t){return e[t]??null}const n={regex:"உள்ளீடு",email:"மின்னஞ்சல் முகவரி",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO தேதி நேரம்",date:"ISO தேதி",time:"ISO நேரம்",duration:"ISO கால அளவு",ipv4:"IPv4 முகவரி",ipv6:"IPv6 முகவரி",cidrv4:"IPv4 வரம்பு",cidrv6:"IPv6 வரம்பு",base64:"base64-encoded சரம்",base64url:"base64url-encoded சரம்",json_string:"JSON சரம்",e164:"E.164 எண்",jwt:"JWT",template_literal:"input"};return e=>{switch(e.code){case"invalid_type":return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${e.expected}, பெறப்பட்டது ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"எண் அல்லாதது":"எண்";case"object":if(Array.isArray(e))return"அணி";if(null===e)return"வெறுமை";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${s.stringifyPrimitive(e.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${s.joinValues(e.values,"|")} இல் ஒன்று`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??"மதிப்பு"} ${n}${e.maximum.toString()} ${r.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??"மதிப்பு"} ${n}${e.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${n}${e.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":{const t=e;return"starts_with"===t.format?`தவறான சரம்: "${t.prefix}" இல் தொடங்க வேண்டும்`:"ends_with"===t.format?`தவறான சரம்: "${t.suffix}" இல் முடிவடைய வேண்டும்`:"includes"===t.format?`தவறான சரம்: "${t.includes}" ஐ உள்ளடக்க வேண்டும்`:"regex"===t.format?`தவறான சரம்: ${t.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${n[t.format]??e.format}`}case"not_multiple_of":return`தவறான எண்: ${e.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${e.keys.length>1?"கள்":""}: ${s.joinValues(e.keys,", ")}`;case"invalid_key":return`${e.origin} இல் தவறான விசை`;case"invalid_union":default:return"தவறான உள்ளீடு";case"invalid_element":return`${e.origin} இல் தவறான மதிப்பு`}}}},3517:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{localeError:a()}};const s=o(n(90523)),a=()=>{const e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(t){return e[t]??null}const n={regex:"entrada",email:"dirección de correo electrónico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duración ISO",ipv4:"dirección IPv4",ipv6:"dirección IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return e=>{switch(e.code){case"invalid_type":return`Entrada inválida: se esperaba ${e.expected}, recibido ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"número";case"object":if(Array.isArray(e))return"arreglo";if(null===e)return"nulo";if(Object.getPrototypeOf(e)!==Object.prototype)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Entrada inválida: se esperaba ${s.stringifyPrimitive(e.values[0])}`:`Opción inválida: se esperaba una de ${s.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`Demasiado grande: se esperaba que ${e.origin??"valor"} tuviera ${n}${e.maximum.toString()} ${r.unit??"elementos"}`:`Demasiado grande: se esperaba que ${e.origin??"valor"} fuera ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`Demasiado pequeño: se esperaba que ${e.origin} tuviera ${n}${e.minimum.toString()} ${r.unit}`:`Demasiado pequeño: se esperaba que ${e.origin} fuera ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Cadena inválida: debe comenzar con "${t.prefix}"`:"ends_with"===t.format?`Cadena inválida: debe terminar en "${t.suffix}"`:"includes"===t.format?`Cadena inválida: debe incluir "${t.includes}"`:"regex"===t.format?`Cadena inválida: debe coincidir con el patrón ${t.pattern}`:`Inválido ${n[t.format]??e.format}`}case"not_multiple_of":return`Número inválido: debe ser múltiplo de ${e.divisor}`;case"unrecognized_keys":return`Llave${e.keys.length>1?"s":""} desconocida${e.keys.length>1?"s":""}: ${s.joinValues(e.keys,", ")}`;case"invalid_key":return`Llave inválida en ${e.origin}`;case"invalid_union":default:return"Entrada inválida";case"invalid_element":return`Valor inválido en ${e.origin}`}}}},3654:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getReflectMetadata=function(e,t){return Reflect.getMetadata(t,e)}},3719:(e,t,n)=>{"use strict";n(91060);const{Duplex:r}=n(2203);function i(e){e.emit("close")}function o(){!this.destroyed&&this._writableState.finished&&this.destroy()}function s(e){this.removeListener("error",s),this.destroy(),0===this.listenerCount("error")&&this.emit("error",e)}e.exports=function(e,t){let n=!0;const a=new r({...t,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return e.on("message",function(t,n){const r=!n&&a._readableState.objectMode?t.toString():t;a.push(r)||e.pause()}),e.once("error",function(e){a.destroyed||(n=!1,a.destroy(e))}),e.once("close",function(){a.destroyed||a.push(null)}),a._destroy=function(t,r){if(e.readyState===e.CLOSED)return r(t),void process.nextTick(i,a);let o=!1;e.once("error",function(e){o=!0,r(e)}),e.once("close",function(){o||r(t),process.nextTick(i,a)}),n&&e.terminate()},a._final=function(t){e.readyState!==e.CONNECTING?null!==e._socket&&(e._socket._writableState.finished?(t(),a._readableState.endEmitted&&a.destroy()):(e._socket.once("finish",function(){t()}),e.close())):e.once("open",function(){a._final(t)})},a._read=function(){e.isPaused&&e.resume()},a._write=function(t,n,r){e.readyState!==e.CONNECTING?e.send(t,r):e.once("open",function(){a._write(t,n,r)})},a.on("end",o),a.on("error",s),a}},4035:function(e,t,n){"use strict";var r,i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),s=0;s<n.length;s++)"default"!==n[s]&&i(t,e,n[s]);return o(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.multiInject=void 0;const a=s(n(19466)),c=(0,n(8701).injectBase)(a.MULTI_INJECT_TAG);t.multiInject=c},4045:function(e,t,n){"use strict";var r,i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),s=0;s<n.length;s++)"default"!==n[s]&&i(t,e,n[s]);return o(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=void 0;const a=s(n(19466));t.Metadata=class{key;value;constructor(e,t){this.key=e,this.value=t}toString(){return this.key===a.NAMED_TAG?`named: ${String(this.value).toString()} `:`tagged: { key:${this.key.toString()}, value: ${String(this.value)} }`}}},4076:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(66596),i={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>r.str`must be multiple of ${e}`,params:({schemaCode:e})=>r._`{multipleOf: ${e}}`},code(e){const{gen:t,data:n,schemaCode:i,it:o}=e,s=o.opts.multipleOfPrecision,a=t.let("res"),c=s?r._`Math.abs(Math.round(${a}) - ${a}) > 1e-${s}`:r._`${a} !== parseInt(${a})`;e.fail$data(r._`(${i} === 0 || (${a} = ${n}/${i}, ${c}))`)}};t.default=i},4759:e=>{"use strict";const t=Symbol("kDone"),n=Symbol("kRun");e.exports=class{constructor(e){this[t]=()=>{this.pending--,this[n]()},this.concurrency=e||1/0,this.jobs=[],this.pending=0}add(e){this.jobs.push(e),this[n]()}[n](){if(this.pending!==this.concurrency&&this.jobs.length){const e=this.jobs.shift();this.pending++,e(this[t])}}}},4946:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(93697),i=n(51980),o=n(99048),s=n(2327),a={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,parentSchema:a,data:c,it:u}=e;"all"===u.opts.removeAdditional&&void 0===a.additionalProperties&&s.default.code(new r.KeywordCxt(u,s.default,"additionalProperties"));const l=(0,i.allSchemaProperties)(n);for(const e of l)u.definedProperties.add(e);u.opts.unevaluated&&l.length&&!0!==u.props&&(u.props=o.mergeEvaluated.props(t,(0,o.toHash)(l),u.props));const d=l.filter(e=>!(0,o.alwaysValidSchema)(u,n[e]));if(0===d.length)return;const p=t.name("valid");for(const n of d)f(n)?m(n):(t.if((0,i.propertyInData)(t,c,n,u.opts.ownProperties)),m(n),u.allErrors||t.else().var(p,!0),t.endIf()),e.it.definedProperties.add(n),e.ok(p);function f(e){return u.opts.useDefaults&&!u.compositeRule&&void 0!==n[e].default}function m(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},p)}}};t.default=a},5143:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(60323),i=n(6492),o=n(66596),s=new o.Name("fullFormats"),a=new o.Name("fastFormats"),c=(e,t={keywords:!0})=>{if(Array.isArray(t))return u(e,t,r.fullFormats,s),e;const[n,o]="fast"===t.mode?[r.fastFormats,a]:[r.fullFormats,s];return u(e,t.formats||r.formatNames,n,o),t.keywords&&(0,i.default)(e),e};function u(e,t,n,r){var i,s;null!==(i=(s=e.opts.code).formats)&&void 0!==i||(s.formats=o._`require("ajv-formats/dist/formats").${r}`);for(const r of t)e.addFormat(r,n[r])}c.get=(e,t="full")=>{const n=("fast"===t?r.fastFormats:r.fullFormats)[e];if(!n)throw new Error(`Unknown format "${e}"`);return n},e.exports=t=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c},5265:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringifyServiceIdentifier=t.LazyServiceIdentifier=void 0;const r=n(11446);Object.defineProperty(t,"stringifyServiceIdentifier",{enumerable:!0,get:function(){return r.stringifyServiceIdentifier}});const i=n(82151);Object.defineProperty(t,"LazyServiceIdentifier",{enumerable:!0,get:function(){return i.LazyServiceIdentifier}})},5542:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{localeError:a()}};const s=o(n(90523)),a=()=>{const e={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"}};function t(t){return e[t]??null}const n={regex:"入力値",email:"メールアドレス",url:"URL",emoji:"絵文字",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日時",date:"ISO日付",time:"ISO時刻",duration:"ISO期間",ipv4:"IPv4アドレス",ipv6:"IPv6アドレス",cidrv4:"IPv4範囲",cidrv6:"IPv6範囲",base64:"base64エンコード文字列",base64url:"base64urlエンコード文字列",json_string:"JSON文字列",e164:"E.164番号",jwt:"JWT",template_literal:"入力値"};return e=>{switch(e.code){case"invalid_type":return`無効な入力: ${e.expected}が期待されましたが、${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"数値";case"object":if(Array.isArray(e))return"配列";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}が入力されました`;case"invalid_value":return 1===e.values.length?`無効な入力: ${s.stringifyPrimitive(e.values[0])}が期待されました`:`無効な選択: ${s.joinValues(e.values,"、")}のいずれかである必要があります`;case"too_big":{const n=e.inclusive?"以下である":"より小さい",r=t(e.origin);return r?`大きすぎる値: ${e.origin??"値"}は${e.maximum.toString()}${r.unit??"要素"}${n}必要があります`:`大きすぎる値: ${e.origin??"値"}は${e.maximum.toString()}${n}必要があります`}case"too_small":{const n=e.inclusive?"以上である":"より大きい",r=t(e.origin);return r?`小さすぎる値: ${e.origin}は${e.minimum.toString()}${r.unit}${n}必要があります`:`小さすぎる値: ${e.origin}は${e.minimum.toString()}${n}必要があります`}case"invalid_format":{const t=e;return"starts_with"===t.format?`無効な文字列: "${t.prefix}"で始まる必要があります`:"ends_with"===t.format?`無効な文字列: "${t.suffix}"で終わる必要があります`:"includes"===t.format?`無効な文字列: "${t.includes}"を含む必要があります`:"regex"===t.format?`無効な文字列: パターン${t.pattern}に一致する必要があります`:`無効な${n[t.format]??e.format}`}case"not_multiple_of":return`無効な数値: ${e.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${e.keys.length>1?"群":""}: ${s.joinValues(e.keys,"、")}`;case"invalid_key":return`${e.origin}内の無効なキー`;case"invalid_union":default:return"無効な入力";case"invalid_element":return`${e.origin}内の無効な値`}}}},5763:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RemoteScriptIdService=void 0;const r=n(11633);t.RemoteScriptIdService=class{getIoBrokerId(){throw new Error("getIoBrokerId needs a workspace and is not available in the MCP server.")}sanatizeId(e){return r.ScriptId.sanitizeId(e)}}},5971:e=>{function t(e){if(e)return function(e){for(var n in t.prototype)e[n]=t.prototype[n];return e}(e)}e.exports=t,t.prototype.on=t.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},t.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i<r.length;i++)if((n=r[i])===t||n.fn===t){r.splice(i,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},t.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var i=(n=n.slice(0)).length;r<i;++r)n[r].apply(this,t)}return this},t.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},t.prototype.hasListeners=function(e){return!!this.listeners(e).length}},6158:(e,t)=>{"use strict";function n(e){const t=e.length;let n,r=0,i=0;for(;i<t;)r++,n=e.charCodeAt(i++),n>=55296&&n<=56319&&i<t&&(n=e.charCodeAt(i),56320==(64512&n)&&i++);return r}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,n.code='require("ajv/dist/runtime/ucs2length").default'},6166:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.StdioServerTransport=void 0;const i=r(n(1708)),o=n(29560);t.StdioServerTransport=class{constructor(e=i.default.stdin,t=i.default.stdout,n){this._stdin=e,this._stdout=t,this._started=!1,this._ondata=e=>{try{this._readBuffer.append(e),this.processReadBuffer()}catch(e){this.onerror?.(e),this.close().catch(()=>{})}},this._onerror=e=>{this.onerror?.(e)},this._readBuffer=new o.ReadBuffer({maxBufferSize:n?.maxBufferSize})}async start(){if(this._started)throw new Error("StdioServerTransport already started! If using Server class, note that connect() calls start() automatically.");this._started=!0,this._stdin.on("data",this._ondata),this._stdin.on("error",this._onerror)}processReadBuffer(){for(;;)try{const e=this._readBuffer.readMessage();if(null===e)break;this.onmessage?.(e)}catch(e){this.onerror?.(e)}}async close(){this._stdin.off("data",this._ondata),this._stdin.off("error",this._onerror),0===this._stdin.listenerCount("data")&&this._stdin.pause(),this._readBuffer.clear(),this.onclose?.()}send(e){return new Promise(t=>{const n=(0,o.serializeMessage)(e);this._stdout.write(n)?t():this._stdout.once("drain",t)})}}},6188:e=>{"use strict";e.exports=Math.max},6289:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ModuleActivationStore=void 0;const r=n(93382);class i{_map=new Map;remove(e){const t=this._map.get(e);return void 0===t?this._getEmptyHandlersStore():(this._map.delete(e),t)}addDeactivation(e,t,n){this._getModuleActivationHandlers(e).onDeactivations.add(t,n)}addActivation(e,t,n){this._getModuleActivationHandlers(e).onActivations.add(t,n)}clone(){const e=new i;return this._map.forEach((t,n)=>{e._map.set(n,{onActivations:t.onActivations.clone(),onDeactivations:t.onDeactivations.clone()})}),e}_getModuleActivationHandlers(e){let t=this._map.get(e);return void 0===t&&(t=this._getEmptyHandlersStore(),this._map.set(e,t)),t}_getEmptyHandlersStore(){return{onActivations:new r.Lookup,onDeactivations:new r.Lookup}}}t.ModuleActivationStore=i},6492:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatLimitDefinition=void 0;const r=n(20647),i=n(66596),o=i.operators,s={formatMaximum:{okStr:"<=",ok:o.LTE,fail:o.GT},formatMinimum:{okStr:">=",ok:o.GTE,fail:o.LT},formatExclusiveMaximum:{okStr:"<",ok:o.LT,fail:o.GTE},formatExclusiveMinimum:{okStr:">",ok:o.GT,fail:o.LTE}},a={message:({keyword:e,schemaCode:t})=>i.str`should be ${s[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>i._`{comparison: ${s[e].okStr}, limit: ${t}}`};t.formatLimitDefinition={keyword:Object.keys(s),type:"string",schemaType:"string",$data:!0,error:a,code(e){const{gen:t,data:n,schemaCode:o,keyword:a,it:c}=e,{opts:u,self:l}=c;if(!u.validateFormats)return;const d=new r.KeywordCxt(c,l.RULES.all.format.definition,"format");function p(e){return i._`${e}.compare(${n}, ${o}) ${s[a].fail} 0`}d.$data?function(){const n=t.scopeValue("formats",{ref:l.formats,code:u.code.formats}),r=t.const("fmt",i._`${n}[${d.schemaCode}]`);e.fail$data((0,i.or)(i._`typeof ${r} != "object"`,i._`${r} instanceof RegExp`,i._`typeof ${r}.compare != "function"`,p(r)))}():function(){const n=d.schema,r=l.formats[n];if(!r||!0===r)return;if("object"!=typeof r||r instanceof RegExp||"function"!=typeof r.compare)throw new Error(`"${a}": format "${n}" does not define "compare" function`);const o=t.scopeValue("formats",{key:n,ref:r,code:u.code.formats?i._`${u.code.formats}${(0,i.getProperty)(n)}`:void 0});e.fail$data(p(o))}()},dependencies:["format"]},t.default=e=>(e.addKeyword(t.formatLimitDefinition),e)},6549:e=>{"use strict";e.exports=Object.getOwnPropertyDescriptor},6585:e=>{var t=1e3,n=60*t,r=60*n,i=24*r,o=7*i;function s(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,a){a=a||{};var c,u,l=typeof e;if("string"===l&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(s){var a=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"weeks":case"week":case"w":return a*o;case"days":case"day":case"d":return a*i;case"hours":case"hour":case"hrs":case"hr":case"h":return a*r;case"minutes":case"minute":case"mins":case"min":case"m":return a*n;case"seconds":case"second":case"secs":case"sec":case"s":return a*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}(e);if("number"===l&&isFinite(e))return a.long?(c=e,(u=Math.abs(c))>=i?s(c,u,i,"day"):u>=r?s(c,u,r,"hour"):u>=n?s(c,u,n,"minute"):u>=t?s(c,u,t,"second"):c+" ms"):function(e){var o=Math.abs(e);return o>=i?Math.round(e/i)+"d":o>=r?Math.round(e/r)+"h":o>=n?Math.round(e/n)+"m":o>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},6736:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.BindingCount=void 0,function(e){e[e.MultipleBindingsAvailable=2]="MultipleBindingsAvailable",e[e.NoBindingsAvailable=0]="NoBindingsAvailable",e[e.OnlyOneBindingAvailable=1]="OnlyOneBindingAvailable"}(n||(t.BindingCount=n={}))},6809:(e,t,n)=>{var r=n(88758),i=n(8839),o=n(20969),s=n(72505);t.protocol=3;var a=t.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},c=s(a),u={type:"error",data:"parser error"};const l=Buffer.concat([]);function d(e,n,r){if(!n)return t.encodeBase64Packet(e,r);var i=e.data,o=Buffer.allocUnsafe(1);return o[0]=a[e.type],r(Buffer.concat([o,i]))}function p(e,t,n){for(var r=new Array(e.length),i=o(e.length,n),s=0;s<e.length;s++)t(e[s],function(e,t){r[s]=t,i(e,r)})}function f(e){for(var t="",n=0,r=e.length;n<r;n++)t+=String.fromCharCode(e[n]);return t}function m(e){for(var t=Buffer.allocUnsafe(e.length),n=0,r=e.length;n<r;n++)t.writeUInt8(e.charCodeAt(n),n);return t}function h(e){var t=e.byteLength||e.length,n=e.byteOffset||0;return Buffer.from(e.buffer||e,n,t)}function v(e,n){t.encodePacket(e,!0,!0,function(e){var t,r=""+e.length;if("string"==typeof e){(t=Buffer.allocUnsafe(r.length+2))[0]=0;for(var i=0;i<r.length;i++)t[i+1]=parseInt(r[i],10);return t[t.length-1]=255,n(null,Buffer.concat([t,m(e)]))}for((t=Buffer.allocUnsafe(r.length+2))[0]=1,i=0;i<r.length;i++)t[i+1]=parseInt(r[i],10);t[t.length-1]=255,n(null,Buffer.concat([t,e]))})}t.encodePacket=function(e,t,n,i){if("function"==typeof t&&(i=t,t=null),"function"==typeof n&&(i=n,n=null),Buffer.isBuffer(e.data))return d(e,t,i);if(e.data&&(e.data.buffer||e.data)instanceof ArrayBuffer)return d({type:e.type,data:h(e.data)},t,i);var o=a[e.type];return void 0!==e.data&&(o+=n?r.encode(String(e.data),{strict:!1}):String(e.data)),i(""+o)},t.encodeBase64Packet=function(e,t){var n=Buffer.isBuffer(e.data)?e.data:h(e.data),r="b"+a[e.type];return t(r+=n.toString("base64"))},t.decodePacket=function(e,n,i){if(void 0===e)return u;var o;if("string"==typeof e)return"b"===(o=e.charAt(0))?t.decodeBase64Packet(e.substr(1),n):i&&!1===(e=function(e){try{e=r.decode(e,{strict:!1})}catch(e){return!1}return e}(e))?u:Number(o)==o&&c[o]?e.length>1?{type:c[o],data:e.substring(1)}:{type:c[o]}:u;if("arraybuffer"===n){var s=new Uint8Array(e);return o=s[0],{type:c[o],data:s.buffer.slice(1)}}return e instanceof ArrayBuffer&&(e=h(e)),o=e[0],{type:c[o],data:e.slice(1)}},t.decodeBase64Packet=function(e,t){var n=c[e.charAt(0)],r=Buffer.from(e.substr(1),"base64");if("arraybuffer"===t){for(var i=new Uint8Array(r.length),o=0;o<i.length;o++)i[o]=r[o];r=i.buffer}return{type:n,data:r}},t.encodePayload=function(e,n,r){return"function"==typeof n&&(r=n,n=null),n&&i(e)?t.encodePayloadAsBinary(e,r):e.length?void p(e,function(e,r){t.encodePacket(e,n,!1,function(e){r(null,function(e){return e.length+":"+e}(e))})},function(e,t){return r(t.join(""))}):r("0:")},t.decodePayload=function(e,n,r){if("string"!=typeof e)return t.decodePayloadAsBinary(e,n,r);if("function"==typeof n&&(r=n,n=null),""===e)return r(u,0,1);for(var i,o,s,a="",c=0,l=e.length;c<l;c++){var d=e.charAt(c);if(":"===d){if(""===a||a!=(i=Number(a)))return r(u,0,1);if(a!=(o=e.substr(c+1,i)).length)return r(u,0,1);if(o.length){if(s=t.decodePacket(o,n,!1),u.type===s.type&&u.data===s.data)return r(u,0,1);if(!1===r(s,c+i,l))return}c+=i,a=""}else a+=d}return""!==a?r(u,0,1):void 0},t.encodePayloadAsBinary=function(e,t){if(!e.length)return t(l);p(e,v,function(e,n){return t(Buffer.concat(n))})},t.decodePayloadAsBinary=function(e,n,r){"function"==typeof n&&(r=n,n=null);for(var i,o=e,s=[];o.length>0;){var a="",c=0===o[0];for(i=1;255!==o[i];i++){if(a.length>310)return r(u,0,1);a+=""+o[i]}o=o.slice(a.length+1);var l=parseInt(a,10),d=o.slice(1,l+1);c&&(d=f(d)),s.push(d),o=o.slice(l+1)}var p=s.length;for(i=0;i<p;i++){var m=s[i];r(t.decodePacket(m,n,!0),i,p)}}},7176:(e,t,n)=>{"use strict";var r,i=n(73126),o=n(75795);try{r=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var s=!!r&&o&&o(Object.prototype,"__proto__"),a=Object,c=a.getPrototypeOf;e.exports=s&&"function"==typeof s.get?i([s.get]):"function"==typeof c&&function(e){return c(null==e?e:a(e))}},7346:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(90978);class i extends Error{constructor(e,t,n,i){super(i||`can't resolve reference ${n} from id ${t}`),this.missingRef=(0,r.resolveUrl)(e,t,n),this.missingSchema=(0,r.normalizeId)((0,r.getFullPath)(e,this.missingRef))}}t.default=i},7520:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getClassMetadataPropertiesFromMetadataReader=function(e,t){const n=t.getPropertiesMetadata(e),i=new Map;for(const t of Reflect.ownKeys(n)){const o=n[t];i.set(t,(0,r.getPropertyMetadataFromLegacyMetadata)(e,t,o))}return i};const r=n(23498)},7598:(e,t,n)=>{e.exports=n(81813)},7875:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Logger=t.Redactor=void 0;const n={error:0,warn:1,info:2,debug:3,silly:4};class r{constructor(){this.secrets=[]}add(e){!e||e.length<4||this.secrets.includes(e)||(this.secrets.push(e),this.secrets.sort((e,t)=>t.length-e.length))}redact(e){let t=e;for(const e of this.secrets)t=t.split(e).join("***");return t.replace(/(access_token=)[^;\s"']+/gi,"$1***").replace(/(connect\.sid=)[^;\s"']+/gi,"$1***").replace(/([?&]password=)[^&\s"']+/gi,"$1***")}}t.Redactor=r,t.Logger=class{constructor(e,t=new r){this.level=e,this.redactor=t}addSecret(e){this.redactor.add(e)}redact(e){return this.redactor.redact(e)}error(e){this.write("error",e)}warn(e){this.write("warn",e)}info(e){this.write("info",e)}debug(e){this.write("debug",e)}silly(e){this.write("silly",e)}write(e,t){n[e]>n[this.level]||process.stderr.write(`iobroker-mcp [${e}] ${this.redactor.redact(t)}\n`)}}},8359:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8592:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAdditionalItems=void 0;const r=n(66596),i=n(99048),o={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>r.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>r._`{limit: ${e}}`},code(e){const{parentSchema:t,it:n}=e,{items:r}=t;Array.isArray(r)?s(e,r):(0,i.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas')}};function s(e,t){const{gen:n,schema:o,data:s,keyword:a,it:c}=e;c.items=!0;const u=n.const("len",r._`${s}.length`);if(!1===o)e.setParams({len:t.length}),e.pass(r._`${u} <= ${t.length}`);else if("object"==typeof o&&!(0,i.alwaysValidSchema)(c,o)){const o=n.var("valid",r._`${u} <= ${t.length}`);n.if((0,r.not)(o),()=>function(o){n.forRange("i",t.length,u,t=>{e.subschema({keyword:a,dataProp:t,dataPropType:i.Type.Num},o),c.allErrors||n.if((0,r.not)(o),()=>n.break())})}(o)),e.ok(o)}}t.validateAdditionalItems=s,t.default=o},8701:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.injectBase=function(e){return t=>(n,s,a)=>{if(void 0===t){const e="function"==typeof n?n.name:n.constructor.name;throw new Error((0,r.UNDEFINED_INJECT_ANNOTATION)(e))}(0,o.createTaggedDecorator)(new i.Metadata(e,t))(n,s,a)}};const r=n(35007),i=n(4045),o=n(33353)},8761:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.parsedType=void 0,t.default=function(){return{localeError:a()}};const s=o(n(90523));t.parsedType=e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"nombro";case"object":if(Array.isArray(e))return"tabelo";if(null===e)return"senvalora";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t};const a=()=>{const e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function n(t){return e[t]??null}const r={regex:"enigo",email:"retadreso",url:"URL",emoji:"emoĝio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-daŭro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"};return e=>{switch(e.code){case"invalid_type":return`Nevalida enigo: atendiĝis ${e.expected}, riceviĝis ${(0,t.parsedType)(e.input)}`;case"invalid_value":return 1===e.values.length?`Nevalida enigo: atendiĝis ${s.stringifyPrimitive(e.values[0])}`:`Nevalida opcio: atendiĝis unu el ${s.joinValues(e.values,"|")}`;case"too_big":{const t=e.inclusive?"<=":"<",r=n(e.origin);return r?`Tro granda: atendiĝis ke ${e.origin??"valoro"} havu ${t}${e.maximum.toString()} ${r.unit??"elementojn"}`:`Tro granda: atendiĝis ke ${e.origin??"valoro"} havu ${t}${e.maximum.toString()}`}case"too_small":{const t=e.inclusive?">=":">",r=n(e.origin);return r?`Tro malgranda: atendiĝis ke ${e.origin} havu ${t}${e.minimum.toString()} ${r.unit}`:`Tro malgranda: atendiĝis ke ${e.origin} estu ${t}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Nevalida karaktraro: devas komenciĝi per "${t.prefix}"`:"ends_with"===t.format?`Nevalida karaktraro: devas finiĝi per "${t.suffix}"`:"includes"===t.format?`Nevalida karaktraro: devas inkluzivi "${t.includes}"`:"regex"===t.format?`Nevalida karaktraro: devas kongrui kun la modelo ${t.pattern}`:`Nevalida ${r[t.format]??e.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${e.divisor}`;case"unrecognized_keys":return`Nekonata${e.keys.length>1?"j":""} ŝlosilo${e.keys.length>1?"j":""}: ${s.joinValues(e.keys,", ")}`;case"invalid_key":return`Nevalida ŝlosilo en ${e.origin}`;case"invalid_union":default:return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${e.origin}`}}}},8835:function(e,t,n){"use strict";var r,i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),s=0;s<n.length;s++)"default"!==n[s]&&i(t,e,n[s]);return o(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.getFactoryDetails=t.ensureFullyBound=t.multiBindToService=void 0;const a=s(n(35007)),c=n(9117),u=n(56272),l=n(88053);t.multiBindToService=e=>t=>(...n)=>{n.forEach(n=>{e.bind(n).toService(t)})},t.ensureFullyBound=e=>{let t=null;switch(e.type){case c.BindingTypeEnum.ConstantValue:case c.BindingTypeEnum.Function:t=e.cache;break;case c.BindingTypeEnum.Constructor:case c.BindingTypeEnum.Instance:t=e.implementationType;break;case c.BindingTypeEnum.DynamicValue:t=e.dynamicValue;break;case c.BindingTypeEnum.Provider:t=e.provider;break;case c.BindingTypeEnum.Factory:t=e.factory}if(null===t){const t=(0,u.getServiceIdentifierAsString)(e.serviceIdentifier);throw new Error(`${a.INVALID_BINDING_TYPE} ${t}`)}},t.getFactoryDetails=e=>{switch(e.type){case c.BindingTypeEnum.Factory:return{factory:e.factory,factoryType:l.FactoryType.Factory};case c.BindingTypeEnum.Provider:return{factory:e.provider,factoryType:l.FactoryType.Provider};case c.BindingTypeEnum.DynamicValue:return{factory:e.dynamicValue,factoryType:l.FactoryType.DynamicValue};default:throw new Error(`Unexpected factory type ${e.type}`)}}},8839:(e,t,n)=>{var r=n(64634),i=Object.prototype.toString,o="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===i.call(Blob),s="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===i.call(File);e.exports=function e(t){if(!t||"object"!=typeof t)return!1;if(r(t)){for(var n=0,i=t.length;n<i;n++)if(e(t[n]))return!0;return!1}if("function"==typeof Buffer&&Buffer.isBuffer&&Buffer.isBuffer(t)||"function"==typeof ArrayBuffer&&t instanceof ArrayBuffer||o&&t instanceof Blob||s&&t instanceof File)return!0;if(t.toJSON&&"function"==typeof t.toJSON&&1===arguments.length)return e(t.toJSON(),!0);for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)&&e(t[a]))return!0;return!1}},8841:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getClassMetadataFromMetadataReader=function(e,t){const n=(0,r.getReflectMetadata)(e,i.POST_CONSTRUCT),a=(0,r.getReflectMetadata)(e,i.PRE_DESTROY);return{constructorArguments:(0,o.getClassMetadataConstructorArgumentsFromMetadataReader)(e,t),lifecycle:{postConstructMethodName:n?.value,preDestroyMethodName:a?.value},properties:(0,s.getClassMetadataPropertiesFromMetadataReader)(e,t)}};const r=n(59517),i=n(83313),o=n(86249),s=n(7520)},9117:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TargetTypeEnum=t.BindingTypeEnum=t.BindingScopeEnum=void 0,t.BindingScopeEnum={Request:"Request",Singleton:"Singleton",Transient:"Transient"},t.BindingTypeEnum={ConstantValue:"ConstantValue",Constructor:"Constructor",DynamicValue:"DynamicValue",Factory:"Factory",Function:"Function",Instance:"Instance",Invalid:"Invalid",Provider:"Provider"},t.TargetTypeEnum={ClassProperty:"ClassProperty",ConstructorArgument:"ConstructorArgument",Variable:"Variable"}},9364:(e,t,n)=>{"use strict";const r=n(24434),i=n(65692),o=n(58611),s=n(69278),a=n(64756),{randomBytes:c,createHash:u}=n(76982),{Readable:l}=n(2203),{URL:d}=n(87016),p=n(95483),f=n(1838),m=n(65074),{BINARY_TYPES:h,EMPTY_BUFFER:v,GUID:g,kStatusCode:y,kWebSocket:_,NOOP:b}=n(50918),{addEventListener:x,removeEventListener:w}=n(68645),{format:S,parse:O}=n(74230),{toBuffer:k}=n(62842),$=["CONNECTING","OPEN","CLOSING","CLOSED"],P=[8,13];class E extends r{constructor(e,t,n){super(),this._binaryType=h[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage="",this._closeTimer=null,this._extensions={},this._protocol="",this._readyState=E.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,null!==e?(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,Array.isArray(t)?t=t.join(", "):"object"==typeof t&&null!==t&&(n=t,t=void 0),T(this,e,t,n)):this._isServer=!0}get binaryType(){return this._binaryType}set binaryType(e){h.includes(e)&&(this._binaryType=e,this._receiver&&(this._receiver._binaryType=e))}get bufferedAmount(){return this._socket?this._socket._writableState.length+this._sender._bufferedBytes:this._bufferedAmount}get extensions(){return Object.keys(this._extensions).join()}get onclose(){}set onclose(e){}get onerror(){}set onerror(e){}get onopen(){}set onopen(e){}get onmessage(){}set onmessage(e){}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(e,t,n){const r=new f(this.binaryType,this._extensions,this._isServer,n);this._sender=new m(e,this._extensions),this._receiver=r,this._socket=e,r[_]=this,e[_]=this,r.on("conclude",A),r.on("drain",M),r.on("error",D),r.on("message",U),r.on("ping",L),r.on("pong",z),e.setTimeout(0),e.setNoDelay(),t.length>0&&e.unshift(t),e.on("close",B),e.on("data",q),e.on("end",V),e.on("error",G),this._readyState=E.OPEN,this.emit("open")}emitClose(){if(!this._socket)return this._readyState=E.CLOSED,void this.emit("close",this._closeCode,this._closeMessage);this._extensions[p.extensionName]&&this._extensions[p.extensionName].cleanup(),this._receiver.removeAllListeners(),this._readyState=E.CLOSED,this.emit("close",this._closeCode,this._closeMessage)}close(e,t){if(this.readyState!==E.CLOSED){if(this.readyState===E.CONNECTING){const e="WebSocket was closed before the connection was established";return R(this,this._req,e)}this.readyState!==E.CLOSING?(this._readyState=E.CLOSING,this._sender.close(e,t,!this._isServer,e=>{e||(this._closeFrameSent=!0,(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end())}),this._closeTimer=setTimeout(this._socket.destroy.bind(this._socket),3e4)):this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end()}}ping(e,t,n){if(this.readyState===E.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");"function"==typeof e?(n=e,e=t=void 0):"function"==typeof t&&(n=t,t=void 0),"number"==typeof e&&(e=e.toString()),this.readyState===E.OPEN?(void 0===t&&(t=!this._isServer),this._sender.ping(e||v,t,n)):N(this,e,n)}pong(e,t,n){if(this.readyState===E.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");"function"==typeof e?(n=e,e=t=void 0):"function"==typeof t&&(n=t,t=void 0),"number"==typeof e&&(e=e.toString()),this.readyState===E.OPEN?(void 0===t&&(t=!this._isServer),this._sender.pong(e||v,t,n)):N(this,e,n)}send(e,t,n){if(this.readyState===E.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if("function"==typeof t&&(n=t,t={}),"number"==typeof e&&(e=e.toString()),this.readyState!==E.OPEN)return void N(this,e,n);const r={binary:"string"!=typeof e,mask:!this._isServer,compress:!0,fin:!0,...t};this._extensions[p.extensionName]||(r.compress=!1),this._sender.send(e||v,r,n)}terminate(){if(this.readyState!==E.CLOSED){if(this.readyState===E.CONNECTING){const e="WebSocket was closed before the connection was established";return R(this,this._req,e)}this._socket&&(this._readyState=E.CLOSING,this._socket.destroy())}}}function T(e,t,n,r){const s={protocolVersion:P[1],maxPayload:104857600,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...r,createConnection:void 0,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:void 0,host:void 0,path:void 0,port:void 0};if(!P.includes(s.protocolVersion))throw new RangeError(`Unsupported protocol version: ${s.protocolVersion} (supported versions: ${P.join(", ")})`);let a;t instanceof d?(a=t,e._url=t.href):(a=new d(t),e._url=t);const l="ws+unix:"===a.protocol;if(!(a.host||l&&a.pathname)){const t=new Error(`Invalid URL: ${e.url}`);if(0===e._redirects)throw t;return void C(e,t)}const f="wss:"===a.protocol||"https:"===a.protocol,m=f?443:80,h=c(16).toString("base64"),v=f?i.get:o.get;let y;if(s.createConnection=f?j:I,s.defaultPort=s.defaultPort||m,s.port=a.port||m,s.host=a.hostname.startsWith("[")?a.hostname.slice(1,-1):a.hostname,s.headers={"Sec-WebSocket-Version":s.protocolVersion,"Sec-WebSocket-Key":h,Connection:"Upgrade",Upgrade:"websocket",...s.headers},s.path=a.pathname+a.search,s.timeout=s.handshakeTimeout,s.perMessageDeflate&&(y=new p(!0!==s.perMessageDeflate?s.perMessageDeflate:{},!1,s.maxPayload),s.headers["Sec-WebSocket-Extensions"]=S({[p.extensionName]:y.offer()})),n&&(s.headers["Sec-WebSocket-Protocol"]=n),s.origin&&(s.protocolVersion<13?s.headers["Sec-WebSocket-Origin"]=s.origin:s.headers.Origin=s.origin),(a.username||a.password)&&(s.auth=`${a.username}:${a.password}`),l){const e=s.path.split(":");s.socketPath=e[0],s.path=e[1]}if(s.followRedirects){if(0===e._redirects){e._originalUnixSocket=l,e._originalSecure=f,e._originalHostOrSocketPath=l?s.socketPath:a.host;const t=r&&r.headers;if(r={...r,headers:{}},t)for(const[e,n]of Object.entries(t))r.headers[e.toLowerCase()]=n}else{const t=l?!!e._originalUnixSocket&&s.socketPath===e._originalHostOrSocketPath:!e._originalUnixSocket&&a.host===e._originalHostOrSocketPath;(!t||e._originalSecure&&!f)&&(delete s.headers.authorization,delete s.headers.cookie,t||delete s.headers.host,s.auth=void 0)}s.auth&&!r.headers.authorization&&(r.headers.authorization="Basic "+Buffer.from(s.auth).toString("base64"))}let _=e._req=v(s);s.timeout&&_.on("timeout",()=>{R(e,_,"Opening handshake has timed out")}),_.on("error",t=>{null===_||_.aborted||(_=e._req=null,C(e,t))}),_.on("response",i=>{const o=i.headers.location,a=i.statusCode;if(o&&s.followRedirects&&a>=300&&a<400){if(++e._redirects>s.maxRedirects)return void R(e,_,"Maximum redirects exceeded");let i;_.abort();try{i=new d(o,t)}catch(t){return void C(e,t)}T(e,i,n,r)}else e.emit("unexpected-response",_,i)||R(e,_,`Unexpected server response: ${i.statusCode}`)}),_.on("upgrade",(t,r,i)=>{if(e.emit("upgrade",t),e.readyState!==E.CONNECTING)return;_=e._req=null;const o=t.headers.upgrade;if(void 0===o||"websocket"!==o.toLowerCase())return void R(e,r,"Invalid Upgrade header");const a=u("sha1").update(h+g).digest("base64");if(t.headers["sec-websocket-accept"]!==a)return void R(e,r,"Invalid Sec-WebSocket-Accept header");const c=t.headers["sec-websocket-protocol"],l=(n||"").split(/, */);let d;if(!n&&c?d="Server sent a subprotocol but none was requested":n&&!c?d="Server sent no subprotocol":c&&!l.includes(c)&&(d="Server sent an invalid subprotocol"),d)return void R(e,r,d);c&&(e._protocol=c);const f=t.headers["sec-websocket-extensions"];if(void 0!==f){if(!y)return void R(e,r,"Server sent a Sec-WebSocket-Extensions header but no extension was requested");let t;try{t=O(f)}catch(t){return void R(e,r,"Invalid Sec-WebSocket-Extensions header")}const n=Object.keys(t);if(n.length){if(1!==n.length||n[0]!==p.extensionName)return void R(e,r,"Server indicated an extension that was not requested");try{y.accept(t[p.extensionName])}catch(t){return void R(e,r,"Invalid Sec-WebSocket-Extensions header")}e._extensions[p.extensionName]=y}}e.setSocket(r,i,s.maxPayload)})}function C(e,t){e._readyState=E.CLOSING,e.emit("error",t),e.emitClose()}function I(e){return e.path=e.socketPath,s.connect(e)}function j(e){return e.path=void 0,e.servername||""===e.servername||(e.servername=s.isIP(e.host)?"":e.host),a.connect(e)}function R(e,t,n){e._readyState=E.CLOSING;const r=new Error(n);Error.captureStackTrace(r,R),t.setHeader?(t.abort(),t.socket&&!t.socket.destroyed&&t.socket.destroy(),t.once("abort",e.emitClose.bind(e)),e.emit("error",r)):(t.destroy(r),t.once("error",e.emit.bind(e,"error")),t.once("close",e.emitClose.bind(e)))}function N(e,t,n){if(t){const n=k(t).length;e._socket?e._sender._bufferedBytes+=n:e._bufferedAmount+=n}n&&n(new Error(`WebSocket is not open: readyState ${e.readyState} (${$[e.readyState]})`))}function A(e,t){const n=this[_];n._closeFrameReceived=!0,n._closeMessage=t,n._closeCode=e,void 0!==n._socket[_]&&(n._socket.removeListener("data",q),process.nextTick(F,n._socket),1005===e?n.close():n.close(e,t))}function M(){this[_]._socket.resume()}function D(e){const t=this[_];void 0!==t._socket[_]&&(t._socket.removeListener("data",q),process.nextTick(F,t._socket),t.close(e[y])),t.emit("error",e)}function Z(){this[_].emitClose()}function U(e){this[_].emit("message",e)}function L(e){const t=this[_];t.pong(e,!t._isServer,b),t.emit("ping",e)}function z(e){this[_].emit("pong",e)}function F(e){e.resume()}function B(){const e=this[_];let t;this.removeListener("close",B),this.removeListener("data",q),this.removeListener("end",V),e._readyState=E.CLOSING,this._readableState.endEmitted||e._closeFrameReceived||e._receiver._writableState.errorEmitted||null===(t=e._socket.read())||e._receiver.write(t),e._receiver.end(),this[_]=void 0,clearTimeout(e._closeTimer),e._receiver._writableState.finished||e._receiver._writableState.errorEmitted?e.emitClose():(e._receiver.on("error",Z),e._receiver.on("finish",Z))}function q(e){this[_]._receiver.write(e)||this.pause()}function V(){const e=this[_];e._readyState=E.CLOSING,e._receiver.end(),this.end()}function G(){const e=this[_];this.removeListener("error",G),this.on("error",b),e&&(e._readyState=E.CLOSING,this.destroy())}Object.defineProperty(E,"CONNECTING",{enumerable:!0,value:$.indexOf("CONNECTING")}),Object.defineProperty(E.prototype,"CONNECTING",{enumerable:!0,value:$.indexOf("CONNECTING")}),Object.defineProperty(E,"OPEN",{enumerable:!0,value:$.indexOf("OPEN")}),Object.defineProperty(E.prototype,"OPEN",{enumerable:!0,value:$.indexOf("OPEN")}),Object.defineProperty(E,"CLOSING",{enumerable:!0,value:$.indexOf("CLOSING")}),Object.defineProperty(E.prototype,"CLOSING",{enumerable:!0,value:$.indexOf("CLOSING")}),Object.defineProperty(E,"CLOSED",{enumerable:!0,value:$.indexOf("CLOSED")}),Object.defineProperty(E.prototype,"CLOSED",{enumerable:!0,value:$.indexOf("CLOSED")}),["binaryType","bufferedAmount","extensions","protocol","readyState","url"].forEach(e=>{Object.defineProperty(E.prototype,e,{enumerable:!0})}),["open","error","close","message"].forEach(e=>{Object.defineProperty(E.prototype,`on${e}`,{enumerable:!0,get(){const t=this.listeners(e);for(let e=0;e<t.length;e++)if(t[e]._listener)return t[e]._listener},set(t){const n=this.listeners(e);for(let t=0;t<n.length;t++)n[t]._listener&&this.removeListener(e,n[t]);this.addEventListener(e,t)}})}),E.prototype.addEventListener=x,E.prototype.removeEventListener=w,e.exports=E},9587:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{localeError:a()}};const s=o(n(90523)),a=()=>{const e={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"}};function t(t){return e[t]??null}const n={regex:"輸入",email:"郵件地址",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 日期時間",date:"ISO 日期",time:"ISO 時間",duration:"ISO 期間",ipv4:"IPv4 位址",ipv6:"IPv6 位址",cidrv4:"IPv4 範圍",cidrv6:"IPv6 範圍",base64:"base64 編碼字串",base64url:"base64url 編碼字串",json_string:"JSON 字串",e164:"E.164 數值",jwt:"JWT",template_literal:"輸入"};return e=>{switch(e.code){case"invalid_type":return`無效的輸入值:預期為 ${e.expected},但收到 ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`無效的輸入值:預期為 ${s.stringifyPrimitive(e.values[0])}`:`無效的選項:預期為以下其中之一 ${s.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`數值過大:預期 ${e.origin??"值"} 應為 ${n}${e.maximum.toString()} ${r.unit??"個元素"}`:`數值過大:預期 ${e.origin??"值"} 應為 ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`數值過小:預期 ${e.origin} 應為 ${n}${e.minimum.toString()} ${r.unit}`:`數值過小:預期 ${e.origin} 應為 ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`無效的字串:必須以 "${t.prefix}" 開頭`:"ends_with"===t.format?`無效的字串:必須以 "${t.suffix}" 結尾`:"includes"===t.format?`無效的字串:必須包含 "${t.includes}"`:"regex"===t.format?`無效的字串:必須符合格式 ${t.pattern}`:`無效的 ${n[t.format]??e.format}`}case"not_multiple_of":return`無效的數字:必須為 ${e.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${e.keys.length>1?"們":""}:${s.joinValues(e.keys,"、")}`;case"invalid_key":return`${e.origin} 中有無效的鍵值`;case"invalid_union":default:return"無效的輸入值";case"invalid_element":return`${e.origin} 中有無效的值`}}}},9750:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getClassMetadataProperties=function(e){const t=(0,r.getReflectMetadata)(e,i.TAGGED_PROP),n=new Map;if(void 0!==t)for(const r of Reflect.ownKeys(t)){const i=t[r];n.set(r,(0,o.getPropertyMetadataFromLegacyMetadata)(e,r,i))}return n};const r=n(59517),i=n(83313),o=n(23498)},9913:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={statusBarMessageTime:1e4,skriptIds:{global:"script.js.global",common:"script.js.common"},contexts:{aiToolsEnabled:"iobrokerAiToolsEnabled"}}},9957:(e,t,n)=>{"use strict";var r=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=n(66743);e.exports=o.call(r,i)},10076:e=>{"use strict";e.exports=Function.prototype.call},10735:function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.ScriptRemoteService=void 0;const a=n(11633),c=n(52650),u=n(55853),l=n(52829);let d=class{constructor(e,t,n,r,i,o){this.connectionServiceProvider=e,this.scriptIdService=t,this.directoryService=n,this.configRepositoryService=r,this.workspaceService=i,this.secretPlaceholderService=o,this.scriptEventListeners=new Array}init(){this.connectionServiceProvider.getConnectionService().registerConnectionEventListener(this),this.connectionServiceProvider.getConnectionService().isConnected&&this.registerSocketEvents()}registerScriptChangedEventListener(e){this.scriptEventListeners.includes(e)||this.scriptEventListeners.push(e)}downloadAllScripts(){return this.connectionServiceProvider.getConnectionService().getSystemObjectView("script","script.js.","script.js.")}downloadScriptWithUri(e){return s(this,void 0,void 0,function*(){const t=this.scriptIdService.getIoBrokerId(e);return yield this.downloadScriptWithId(t)})}downloadScriptWithId(e){return this.connectionServiceProvider.getConnectionService().getObject(e)}uploadScript(e){return s(this,void 0,void 0,function*(){var t;e.common.engineType=this.getFixedEngineTypeCasing(e.common.engineType),e.common.source=yield this.replaceSecretsFromDotEnvFile(null!==(t=e.common.source)&&void 0!==t?t:""),this.configRepositoryService.config.scriptAutoRun&&(e.common.enabled=!0),yield this.directoryService.createDirectoriesRecursively(e._id),yield this.connectionServiceProvider.getConnectionService().setObject(e._id,e)})}startScript(e){return this.setScriptState(e,!0)}stopScript(e){return this.setScriptState(e,!1)}rename(e,t){return s(this,void 0,void 0,function*(){const n=e.split("."),r=a.ScriptId.sanitizeName(t);n.splice(-1,1),n.push(r);const i=n.join("."),o=yield this.downloadScriptWithId(e);o._id=new a.ScriptId(i),o.common.name=t,yield this.delete(e),yield this.uploadScript(o)})}move(e,t){return s(this,void 0,void 0,function*(){const n=yield this.downloadScriptWithId(e),r=e.substring(e.lastIndexOf(".")+1);yield this.delete(e),n._id=new a.ScriptId(`${t._id}.${r}`),yield this.uploadScript(n)})}update(e,t){return s(this,void 0,void 0,function*(){if(!(yield this.downloadScriptWithId(e)))throw new Error(`Could not update script '${e}', because it is not known to ioBroker`);yield this.connectionServiceProvider.getConnectionService().extendObject(e,t)})}delete(e){return s(this,void 0,void 0,function*(){return yield this.connectionServiceProvider.getConnectionService().deleteObject(e)})}onConnected(){this.registerSocketEvents()}onDisconnected(){this.unregisterSocketEvents(),this.scriptEventListeners.forEach(e=>e.onNoScriptAvailable())}onReAuthenticate(){}registerSocketEvents(){this.connectionServiceProvider.getConnectionService().registerForObjectChange("script.js.*",e=>{this.scriptEventListeners.forEach(t=>t.onScriptChanged(e))})}unregisterSocketEvents(){this.connectionServiceProvider.getConnectionService().unregisterObjectChange("script.js.*")}setScriptState(e,t){return s(this,void 0,void 0,function*(){const n={_id:e,common:{enabled:t}};return yield this.update(e,n)})}getFixedEngineTypeCasing(e){var t,n,r;return null!==(r=null!==(n=null===(t=(0,l.getEngineTypeInfo)(e))||void 0===t?void 0:t.ioBrokerType)&&void 0!==n?n:e)&&void 0!==r?r:""}replaceSecretsFromDotEnvFile(e){return s(this,void 0,void 0,function*(){return yield this.secretPlaceholderService.replaceSecretPlaceholdersFromEnvFile(e)})}};t.ScriptRemoteService=d,t.ScriptRemoteService=d=r([(0,c.injectable)(),o(0,(0,c.inject)(u.default.services.connectionServiceProvider)),o(1,(0,c.inject)(u.default.services.scriptId)),o(2,(0,c.inject)(u.default.services.directory)),o(3,(0,c.inject)(u.default.services.configRepository)),o(4,(0,c.inject)(u.default.services.workspace)),o(5,(0,c.inject)(u.default.services.secretPlaceholder)),i("design:paramtypes",[Object,Object,Object,Object,Object,Object])],d)},10781:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(42365),i=n(65105),o=n(15215),s=n(26545),a=n(86836),c=[r.default,i.default,(0,o.default)(),s.default,a.metadataVocabulary,a.contentVocabulary];t.default=c},11002:e=>{"use strict";e.exports=Function.prototype.apply},11070:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(66596),i=n(99048),o={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?r.str`must contain at least ${e} valid item(s)`:r.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?r._`{minContains: ${e}}`:r._`{minContains: ${e}, maxContains: ${t}}`},code(e){const{gen:t,schema:n,parentSchema:o,data:s,it:a}=e;let c,u;const{minContains:l,maxContains:d}=o;a.opts.next?(c=void 0===l?1:l,u=d):c=1;const p=t.const("len",r._`${s}.length`);if(e.setParams({min:c,max:u}),void 0===u&&0===c)return void(0,i.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==u&&c>u)return(0,i.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,i.alwaysValidSchema)(a,n)){let t=r._`${p} >= ${c}`;return void 0!==u&&(t=r._`${t} && ${p} <= ${u}`),void e.pass(t)}a.items=!0;const f=t.name("valid");function m(){const e=t.name("_valid"),n=t.let("count",0);h(e,()=>t.if(e,()=>function(e){t.code(r._`${e}++`),void 0===u?t.if(r._`${e} >= ${c}`,()=>t.assign(f,!0).break()):(t.if(r._`${e} > ${u}`,()=>t.assign(f,!1).break()),1===c?t.assign(f,!0):t.if(r._`${e} >= ${c}`,()=>t.assign(f,!0)))}(n)))}function h(n,r){t.forRange("i",0,p,t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:i.Type.Num,compositeRule:!0},n),r()})}void 0===u&&1===c?h(f,()=>t.if(f,()=>t.break())):0===c?(t.let(f,!0),void 0!==u&&t.if(r._`${s}.length > 0`,m)):(t.let(f,!1),m()),e.result(f,()=>e.reset())}};t.default=o},11076:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRefs=void 0;const r=n(92626);t.getRefs=e=>{const t=(0,r.getDefaultOptions)(e),n=void 0!==t.name?[...t.basePath,t.definitionPath,t.name]:t.basePath;return{...t,flags:{hasReferencedOpenAiAnyType:!1},currentPath:n,propertyPath:void 0,seen:new Map(Object.entries(t.definitions).map(([e,n])=>[n._def,{def:n._def,path:[...t.basePath,t.definitionPath,e],jsonSchema:void 0}]))}}},11446:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringifyServiceIdentifier=function(e){switch(typeof e){case"string":case"symbol":return e.toString();case"function":return e.name;default:throw new Error(`Unexpected ${typeof e} service id type`)}}},11464:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};t.default=n},11577:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.moveScript=function(e,t){return r(this,void 0,void 0,function*(){const n=(0,c.toScriptId)(t.scriptId);if(!n.ok)return n;const r=(0,c.toDirectoryId)(t.targetDirectoryId,"targetDirectoryId");if(!r.ok)return r;const u=(0,s.ensureRemoteConnected)(e);if(u)return{ok:!1,error:u};const l=n.data,d=e.scripts.getScriptFromId(l);if(!d)return(0,o.failure)("not_found",`The script '${l}' is not known to the ioBroker server.`,"Use iobroker_get_scripts to look up available script ids.");const p=(0,s.findDirectory)(e,r.data);if(!p)return(0,o.failure)("not_found",`The directory '${r.data}' is not known to the ioBroker server.`,"Use iobroker_get_scripts to look up available directory ids.");const f=(0,s.scriptIdOf)(d),m=`${p._id}.${i.ScriptId.lastSegmentOf(f)}`;if(m===f)return(0,o.failure)("invalid_input",`The script '${f}' is already located in '${p._id}'.`);try{return yield e.scriptRemote.move(l,p),yield(0,s.refreshScriptInCache)(e,l),yield(0,s.refreshScriptInCache)(e,new i.ScriptId(m)),(0,o.success)({oldScriptId:f,newScriptId:m})}catch(e){return(0,a.toFailure)(e)}})};const i=n(11633),o=n(49402),s=n(33510),a=n(22797),c=n(75061)},11633:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ScriptId=void 0;class n extends String{static sanitizeId(e){return new n(n.sanitizeName(`${e}`))}static sanitizeName(e){return(null!=e?e:"").replace(/[\\/\][*,;'"`<>?&#\s]/g,"_")}static isValid(e){return e.startsWith(`${n.prefix}.`)&&n.hasOnlyNonEmptySegments(e)}static isDirectoryId(e){return e===n.rootId||n.isValid(e)}static lastSegmentOf(e){return e.substring(e.lastIndexOf(".")+1)}static parentIdOf(e){if(e===n.rootId)return;const t=e.lastIndexOf(".");return t<=0?void 0:e.substring(0,t)}constructor(e){if(!n.isValid(e))throw new Error(`The script id '${e}' does not start with '${n.prefix}.' or contains an empty segment.`);super(e)}static hasOnlyNonEmptySegments(e){return!e.endsWith(".")&&e.split(".").every(e=>e.length>0)}}t.ScriptId=n,n.prefix="script.js",n.rootId=n.prefix},11808:e=>{"use strict";e.exports=JSON.parse('{"$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON AnySchema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},12058:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{localeError:a()}};const s=o(n(90523)),a=()=>{const e={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"}};function t(t){return e[t]??null}const n={regex:"ورودی",email:"آدرس ایمیل",url:"URL",emoji:"ایموجی",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاریخ و زمان ایزو",date:"تاریخ ایزو",time:"زمان ایزو",duration:"مدت زمان ایزو",ipv4:"IPv4 آدرس",ipv6:"IPv6 آدرس",cidrv4:"IPv4 دامنه",cidrv6:"IPv6 دامنه",base64:"base64-encoded رشته",base64url:"base64url-encoded رشته",json_string:"JSON رشته",e164:"E.164 عدد",jwt:"JWT",template_literal:"ورودی"};return e=>{switch(e.code){case"invalid_type":return`ورودی نامعتبر: می‌بایست ${e.expected} می‌بود، ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"عدد";case"object":if(Array.isArray(e))return"آرایه";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)} دریافت شد`;case"invalid_value":return 1===e.values.length?`ورودی نامعتبر: می‌بایست ${s.stringifyPrimitive(e.values[0])} می‌بود`:`گزینه نامعتبر: می‌بایست یکی از ${s.joinValues(e.values,"|")} می‌بود`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`خیلی بزرگ: ${e.origin??"مقدار"} باید ${n}${e.maximum.toString()} ${r.unit??"عنصر"} باشد`:`خیلی بزرگ: ${e.origin??"مقدار"} باید ${n}${e.maximum.toString()} باشد`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`خیلی کوچک: ${e.origin} باید ${n}${e.minimum.toString()} ${r.unit} باشد`:`خیلی کوچک: ${e.origin} باید ${n}${e.minimum.toString()} باشد`}case"invalid_format":{const t=e;return"starts_with"===t.format?`رشته نامعتبر: باید با "${t.prefix}" شروع شود`:"ends_with"===t.format?`رشته نامعتبر: باید با "${t.suffix}" تمام شود`:"includes"===t.format?`رشته نامعتبر: باید شامل "${t.includes}" باشد`:"regex"===t.format?`رشته نامعتبر: باید با الگوی ${t.pattern} مطابقت داشته باشد`:`${n[t.format]??e.format} نامعتبر`}case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${e.divisor} باشد`;case"unrecognized_keys":return`کلید${e.keys.length>1?"های":""} ناشناس: ${s.joinValues(e.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${e.origin}`;case"invalid_union":default:return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${e.origin}`}}}},12297:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{localeError:a()}};const s=o(n(90523)),a=()=>{const e={string:{unit:"znaków",verb:"mieć"},file:{unit:"bajtów",verb:"mieć"},array:{unit:"elementów",verb:"mieć"},set:{unit:"elementów",verb:"mieć"}};function t(t){return e[t]??null}const n={regex:"wyrażenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ciąg znaków zakodowany w formacie base64",base64url:"ciąg znaków zakodowany w formacie base64url",json_string:"ciąg znaków w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wejście"};return e=>{switch(e.code){case"invalid_type":return`Nieprawidłowe dane wejściowe: oczekiwano ${e.expected}, otrzymano ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"liczba";case"object":if(Array.isArray(e))return"tablica";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Nieprawidłowe dane wejściowe: oczekiwano ${s.stringifyPrimitive(e.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${s.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`Za duża wartość: oczekiwano, że ${e.origin??"wartość"} będzie mieć ${n}${e.maximum.toString()} ${r.unit??"elementów"}`:`Zbyt duż(y/a/e): oczekiwano, że ${e.origin??"wartość"} będzie wynosić ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`Za mała wartość: oczekiwano, że ${e.origin??"wartość"} będzie mieć ${n}${e.minimum.toString()} ${r.unit??"elementów"}`:`Zbyt mał(y/a/e): oczekiwano, że ${e.origin??"wartość"} będzie wynosić ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${t.prefix}"`:"ends_with"===t.format?`Nieprawidłowy ciąg znaków: musi kończyć się na "${t.suffix}"`:"includes"===t.format?`Nieprawidłowy ciąg znaków: musi zawierać "${t.includes}"`:"regex"===t.format?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${t.pattern}`:`Nieprawidłow(y/a/e) ${n[t.format]??e.format}`}case"not_multiple_of":return`Nieprawidłowa liczba: musi być wielokrotnością ${e.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${e.keys.length>1?"s":""}: ${s.joinValues(e.keys,", ")}`;case"invalid_key":return`Nieprawidłowy klucz w ${e.origin}`;case"invalid_union":default:return"Nieprawidłowe dane wejściowe";case"invalid_element":return`Nieprawidłowa wartość w ${e.origin}`}}}},12576:(e,t)=>{"use strict";function n(e){return("object"==typeof e&&null!==e||"function"==typeof e)&&"function"==typeof e.then}Object.defineProperty(t,"__esModule",{value:!0}),t.isPromise=n,t.isPromiseOrContainsPromise=function(e){return!!n(e)||Array.isArray(e)&&e.some(n)}},12627:(e,t,n)=>{"use strict";try{e.exports=n(68169)(__dirname)}catch(t){e.exports=n(66489)}},12672:function(e,t,n){"use strict";var r,i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),s=0;s<n.length;s++)"default"!==n[s]&&i(t,e,n[s]);return o(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.tryAndThrowErrorIfStackOverflow=void 0,t.isStackOverflowException=c;const a=s(n(35007));function c(e){return e instanceof RangeError||e.message===a.STACK_OVERFLOW}t.tryAndThrowErrorIfStackOverflow=(e,t)=>{try{return e()}catch(e){if(c(e))throw t();throw e}}},12818:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getConstructorArgumentMetadataFromLegacyMetadata=function(e,t,n){try{return(0,o.getClassElementMetadataFromLegacyMetadata)(n)}catch(n){throw r.InversifyCoreError.isErrorOfKind(n,i.InversifyCoreErrorKind.missingInjectionDecorator)?new r.InversifyCoreError(i.InversifyCoreErrorKind.missingInjectionDecorator,`Expected a single @inject, @multiInject or @unmanaged decorator at type "${e.name}" at constructor arguments at index "${t.toString()}"`,{cause:n}):n}};const r=n(21773),i=n(94931),o=n(44063)},12949:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{localeError:a()}};const s=o(n(90523)),a=()=>{const e={string:{unit:"caràcters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(t){return e[t]??null}const n={regex:"entrada",email:"adreça electrònica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adreça IPv4",ipv6:"adreça IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return e=>{switch(e.code){case"invalid_type":return`Tipus invàlid: s'esperava ${e.expected}, s'ha rebut ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Valor invàlid: s'esperava ${s.stringifyPrimitive(e.values[0])}`:`Opció invàlida: s'esperava una de ${s.joinValues(e.values," o ")}`;case"too_big":{const n=e.inclusive?"com a màxim":"menys de",r=t(e.origin);return r?`Massa gran: s'esperava que ${e.origin??"el valor"} contingués ${n} ${e.maximum.toString()} ${r.unit??"elements"}`:`Massa gran: s'esperava que ${e.origin??"el valor"} fos ${n} ${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?"com a mínim":"més de",r=t(e.origin);return r?`Massa petit: s'esperava que ${e.origin} contingués ${n} ${e.minimum.toString()} ${r.unit}`:`Massa petit: s'esperava que ${e.origin} fos ${n} ${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Format invàlid: ha de començar amb "${t.prefix}"`:"ends_with"===t.format?`Format invàlid: ha d'acabar amb "${t.suffix}"`:"includes"===t.format?`Format invàlid: ha d'incloure "${t.includes}"`:"regex"===t.format?`Format invàlid: ha de coincidir amb el patró ${t.pattern}`:`Format invàlid per a ${n[t.format]??e.format}`}case"not_multiple_of":return`Número invàlid: ha de ser múltiple de ${e.divisor}`;case"unrecognized_keys":return`Clau${e.keys.length>1?"s":""} no reconeguda${e.keys.length>1?"s":""}: ${s.joinValues(e.keys,", ")}`;case"invalid_key":return`Clau invàlida a ${e.origin}`;case"invalid_union":default:return"Entrada invàlida";case"invalid_element":return`Element invàlid a ${e.origin}`}}}},13144:(e,t,n)=>{"use strict";var r=n(66743),i=n(11002),o=n(10076),s=n(47119);e.exports=s||r.call(o,i)},13198:e=>{e.exports=global},13369:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.RemoteConnectionService=t.ConnectionUnavailableError=t.FAILED_COOLDOWN_MS=t.MAX_LOGIN_ATTEMPTS=t.SOCKET_BUDGET_MS=t.LOGIN_BUDGET_MS=t.CONNECT_BUDGET_MS=void 0;const i=n(48945),o=n(62129),s=n(23077);t.CONNECT_BUDGET_MS=1e4,t.LOGIN_BUDGET_MS=1e4,t.SOCKET_BUDGET_MS=1e4,t.MAX_LOGIN_ATTEMPTS=3,t.FAILED_COOLDOWN_MS=3e4;class a extends Error{constructor(e,t){super(e),this.hint=t,this.name="ConnectionUnavailableError"}}function c(e){return Math.max(1,e-Date.now())}function u(e,t,n){return new Promise((r,i)=>{const o=setTimeout(()=>{i(new Error(`${n} did not finish within ${Math.round(t/1e3)} seconds.`))},t);e.then(e=>{clearTimeout(o),r(e)},e=>{clearTimeout(o),i(e)})})}t.ConnectionUnavailableError=a,t.RemoteConnectionService=class{constructor(e,t,n,r,o,s,a){this.configRepository=e,this.adminVersionDetector=t,this.connectionServiceProvider=n,this.loginService=r,this.credentials=o,this.logger=s,this.options=a,this.state="idle",this.failedLoginAttempts=0,this.lastFailureAt=0,this.listenerRegistered=!1,this.baseUri=i.URI.parse(a.url)}onReady(e){this.readyHook=e}getState(){return this.state}isConnected(){return!("ready"!==this.state||!this.connectionServiceProvider.isConnectionServiceAvailable())&&this.connectionServiceProvider.getConnectionService().isConnected}ensureConnected(){return r(this,void 0,void 0,function*(){if(!this.isConnected()){if("needsAttention"===this.state)throw new a("The ioBroker login failed three times.","Update IOBROKER_MCP_PASSWORD and restart the server.");if("reauthenticating"===this.state&&this.reauthPromise){try{yield this.reauthPromise}catch(e){throw this.toUnavailableError(e)}if(this.isConnected())return}if("reconnecting"===this.state){if(yield this.waitForReconnect(),this.isConnected())return;this.markFailed("The ioBroker connection did not come back.")}if("failed"===this.state){const e=t.FAILED_COOLDOWN_MS-(Date.now()-this.lastFailureAt);if(e>0)throw new a("The last connection attempt to ioBroker failed.",`Check IOBROKER_MCP_URL and retry in ${Math.ceil(e/1e3)} seconds.`)}if(!this.connectPromise){const e=this.connect();this.connectPromise=e.then(()=>{this.connectPromise=void 0},e=>{throw this.connectPromise=void 0,e})}try{yield this.connectPromise}catch(e){throw this.toUnavailableError(e)}}})}stop(){return r(this,void 0,void 0,function*(){if(this.refreshTimer&&(clearTimeout(this.refreshTimer),this.refreshTimer=void 0),this.state="idle",this.connectionServiceProvider.isConnectionServiceAvailable())try{yield u(this.connectionServiceProvider.getConnectionService().disconnect(),2e3,"Shutdown")}catch(e){this.logger.debug(`Could not close the ioBroker connection: ${e instanceof Error?e.message:`${e}`}`)}this.notifyReconnectWaiter()})}onConnected(){"connecting"!==this.state&&"reconnecting"!==this.state||this.markReady()}onDisconnected(){"ready"!==this.state&&"reauthenticating"!==this.state&&"connecting"!==this.state||(this.state="reconnecting",this.lastFailureAt=Date.now(),this.logger.warn("The ioBroker connection was closed. Reconnecting."))}onReAuthenticate(){this.reauthenticate().catch(e=>{this.logger.error(`Re-authentication failed: ${e instanceof Error?e.message:`${e}`}`)})}connect(){return r(this,void 0,void 0,function*(){var e;this.state="connecting",this.logger.info(`Connecting to ioBroker on '${this.options.url}'.`);const n=Date.now()+t.CONNECT_BUDGET_MS;try{const t=yield this.ensureAdminVersion(n),r=this.connectionServiceProvider.getConnectionService();if(this.registerListener(r),t===o.AdminVersion.admin4)yield u(r.connect(this.baseUri,!0,this.options.allowSelfSignedCertificate),c(n),"Socket connection");else{const t=yield this.detectLoginType(c(n)),i=t===s.LoginType.noLogin?void 0:yield this.acquireToken(t,c(n));yield u(r.connectWithToken(this.baseUri,!0,this.options.allowSelfSignedCertificate,null!=i?i:"",null!==(e=this.options.username)&&void 0!==e?e:null),c(n),"Socket connection")}this.failedLoginAttempts=0,this.lastFailureAt=0,this.markReady()}catch(e){throw this.markFailed(`Could not connect to ioBroker: ${e instanceof Error?e.message:`${e}`}`),e}})}ensureAdminVersion(e){return r(this,void 0,void 0,function*(){const t=this.configRepository.config.adminVersion;if(t&&t!==o.AdminVersion.unknown)return t;const n=yield u(this.adminVersionDetector.getVersion(this.options.url,this.options.allowSelfSignedCertificate),c(e),"Admin version detection");if(!n||n===o.AdminVersion.unknown)throw new Error("Could not determine the ioBroker Admin version. Check IOBROKER_MCP_URL and whether the admin adapter is reachable.");return this.configRepository.setAdminVersion(n),this.logger.info(`Detected admin version '${n}'.`),n})}detectLoginType(){return r(this,arguments,void 0,function*(e=t.LOGIN_BUDGET_MS){if(void 0!==this.detectedLoginType)return this.detectedLoginType;const n=yield u(this.loginService.getLoginType(this.baseUri,this.options.allowSelfSignedCertificate),e,"Login type detection");return this.detectedLoginType=n,this.logger.info(`Detected login type '${s.LoginType[n]}'.`),n})}acquireToken(e){return r(this,arguments,void 0,function*(e,n=t.LOGIN_BUDGET_MS){var r;if(!(yield this.credentials.getPassword()))throw this.registerLoginFailure(),new Error("The ioBroker login is enabled, but IOBROKER_MCP_PASSWORD is not set.");try{const t=yield u(this.loginService.getAccessToken(this.baseUri,this.options.allowSelfSignedCertificate,null!==(r=this.options.username)&&void 0!==r?r:"",e),n,"Login");if(!t)throw new Error("ioBroker did not return an access token.");this.logger.addSecret(t);const i=t.substring(t.indexOf("=")+1);return this.logger.addSecret(i),t}catch(e){throw this.registerLoginFailure(),e}})}registerLoginFailure(){this.failedLoginAttempts++,this.logger.warn(`Login attempt ${this.failedLoginAttempts} of ${t.MAX_LOGIN_ATTEMPTS} failed.`),this.failedLoginAttempts>=t.MAX_LOGIN_ATTEMPTS&&(this.state="needsAttention",this.logger.error("The ioBroker login failed three times. Update IOBROKER_MCP_PASSWORD and restart the server."))}reauthenticate(){return r(this,void 0,void 0,function*(){if("needsAttention"!==this.state){if(!this.reauthPromise){const e=this.runReauthenticate();this.reauthPromise=e.then(()=>{this.reauthPromise=void 0},e=>{throw this.reauthPromise=void 0,e})}return this.reauthPromise}})}runReauthenticate(){return r(this,void 0,void 0,function*(){var e,n;this.state="reauthenticating",this.logger.info("Re-authenticating with ioBroker.");const r=this.configRepository.config.adminVersion,i=this.connectionServiceProvider.getConnectionService();try{if(r===o.AdminVersion.admin4)yield u(i.connect(this.baseUri,!0,this.options.allowSelfSignedCertificate),t.SOCKET_BUDGET_MS,"Socket reconnect");else{const r=null!==(e=this.detectedLoginType)&&void 0!==e?e:yield this.detectLoginType(),o=r===s.LoginType.noLogin?void 0:yield this.acquireToken(r);yield u(i.connectWithToken(this.baseUri,!0,this.options.allowSelfSignedCertificate,null!=o?o:"",null!==(n=this.options.username)&&void 0!==n?n:null),t.SOCKET_BUDGET_MS,"Socket reconnect")}this.failedLoginAttempts=0,this.markReady()}catch(e){throw this.markFailed(`Re-authentication failed: ${e instanceof Error?e.message:`${e}`}`),e}})}markReady(){if(this.state="ready",this.lastFailureAt=0,this.logger.info("Connected to ioBroker."),this.notifyReconnectWaiter(),this.scheduleRefresh(),this.readyHook)try{this.readyHook()}catch(e){this.logger.warn(`The post-connect hook failed: ${e instanceof Error?e.message:`${e}`}`)}}markFailed(e){"needsAttention"!==this.state&&(this.state="failed"),this.lastFailureAt=Date.now(),this.logger.error(e),this.notifyReconnectWaiter()}waitForReconnect(){return new Promise(e=>{let t;const n=()=>{clearTimeout(t),this.reconnectWaiter===n&&(this.reconnectWaiter=void 0),e()};t=setTimeout(n,1e4),this.reconnectWaiter=n})}notifyReconnectWaiter(){const e=this.reconnectWaiter;this.reconnectWaiter=void 0,null==e||e()}scheduleRefresh(){this.refreshTimer&&(clearTimeout(this.refreshTimer),this.refreshTimer=void 0),this.credentials.getAccessToken().then(e=>{if(!e||!(e.expires instanceof Date)||Number.isNaN(e.expires.getTime()))return;const t=Math.max(5e3,e.expires.getTime()-Date.now()-6e4);this.refreshTimer=setTimeout(()=>{this.refreshTimer=void 0,this.reauthenticate().catch(e=>{this.logger.error(`Proactive re-authentication failed: ${e instanceof Error?e.message:`${e}`}`)})},t),"function"==typeof this.refreshTimer.unref&&this.refreshTimer.unref()}).catch(e=>{this.logger.debug(`Could not read the access token expiry: ${e instanceof Error?e.message:`${e}`}`)})}registerListener(e){this.listenerRegistered||(e.registerConnectionEventListener(this),this.listenerRegistered=!0)}toUnavailableError(e){if(e instanceof a)return e;const t=e instanceof Error?e.message:`${e}`;return"needsAttention"===this.state?new a(t,"Update IOBROKER_MCP_PASSWORD and restart the server."):new a(t,"Check IOBROKER_MCP_URL, IOBROKER_MCP_USERNAME and IOBROKER_MCP_PASSWORD, then retry.")}}},14211:(e,t,n)=>{"use strict";const r=n(9364);r.createWebSocketStream=n(71527),r.Server=n(86714),r.Receiver=n(1838),r.Sender=n(65074),e.exports=r},14258:e=>{var t=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,n=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];e.exports=function(e){var r,i,o=e,s=e.indexOf("["),a=e.indexOf("]");-1!=s&&-1!=a&&(e=e.substring(0,s)+e.substring(s,a).replace(/:/g,";")+e.substring(a,e.length));for(var c,u,l=t.exec(e||""),d={},p=14;p--;)d[n[p]]=l[p]||"";return-1!=s&&-1!=a&&(d.source=o,d.host=d.host.substring(1,d.host.length-1).replace(/;/g,":"),d.authority=d.authority.replace("[","").replace("]","").replace(/;/g,":"),d.ipv6uri=!0),d.pathNames=(r=d.path,i=r.replace(/\/{2,9}/g,"/").split("/"),"/"!=r.substr(0,1)&&0!==r.length||i.splice(0,1),"/"==r.substr(r.length-1,1)&&i.splice(i.length-1,1),i),d.queryKey=(c=d.query,u={},c.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(e,t,n){t&&(u[t]=n)}),u),d}},15215:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(8592),i=n(98171),o=n(16519),s=n(97879),a=n(11070),c=n(64362),u=n(30340),l=n(2327),d=n(4946),p=n(84368),f=n(61526),m=n(76972),h=n(64994),v=n(83501),g=n(34176),y=n(22149);t.default=function(e=!1){const t=[f.default,m.default,h.default,v.default,g.default,y.default,u.default,l.default,c.default,d.default,p.default];return e?t.push(i.default,s.default):t.push(r.default,o.default),t.push(a.default),t}},16260:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseCatchDef=void 0;const r=n(73524);t.parseCatchDef=(e,t)=>(0,r.parseDef)(e.innerType._def,t)},16519:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateTuple=void 0;const r=n(66596),i=n(99048),o=n(51980),s={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:n}=e;if(Array.isArray(t))return a(e,"additionalItems",t);n.items=!0,(0,i.alwaysValidSchema)(n,t)||e.ok((0,o.validateArray)(e))}};function a(e,t,n=e.schema){const{gen:o,parentSchema:s,data:a,keyword:c,it:u}=e;!function(e){const{opts:r,errSchemaPath:o}=u,s=n.length,a=s===e.minItems&&(s===e.maxItems||!1===e[t]);if(r.strictTuples&&!a){const e=`"${c}" is ${s}-tuple, but minItems or maxItems/${t} are not specified or different at path "${o}"`;(0,i.checkStrictMode)(u,e,r.strictTuples)}}(s),u.opts.unevaluated&&n.length&&!0!==u.items&&(u.items=i.mergeEvaluated.items(o,n.length,u.items));const l=o.name("valid"),d=o.const("len",r._`${a}.length`);n.forEach((t,n)=>{(0,i.alwaysValidSchema)(u,t)||(o.if(r._`${d} > ${n}`,()=>e.subschema({keyword:c,schemaProp:n,dataProp:n},l)),e.ok(l))})}t.validateTuple=a,t.default=s},16586:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTargetsFromMetadataProviders=function(e,t){return function(n){const s=e(n);let a=(0,i.getBaseType)(n);for(;void 0!==a&&a!==Object;){const e=t(a);for(const[t,n]of e)s.properties.has(t)||s.properties.set(t,n);a=(0,i.getBaseType)(a)}const c=[];for(const e of s.constructorArguments)if(e.kind!==r.ClassElementMetadataKind.unmanaged){const t=e.targetName??"";c.push(new o.LegacyTargetImpl(t,e,"ConstructorArgument"))}for(const[e,t]of s.properties)if(t.kind!==r.ClassElementMetadataKind.unmanaged){const n=t.targetName??e;c.push(new o.LegacyTargetImpl(n,t,"ClassProperty"))}return c}};const r=n(86277),i=n(55028),o=n(80877)},16928:e=>{"use strict";e.exports=require("path")},17472:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.toJsonSchemaCompat=function(e,t){return(0,a.isZ4Schema)(e)?s.toJSONSchema(e,{target:(n=t?.target,n?"jsonSchema7"===n||"draft-7"===n?"draft-7":"jsonSchema2019-09"===n||"draft-2020-12"===n?"draft-2020-12":"draft-7":"draft-7"),io:t?.pipeStrategy??"input"}):(0,c.zodToJsonSchema)(e,{strictUnions:t?.strictUnions??!0,pipeStrategy:t?.pipeStrategy??"input"});var n},t.getMethodLiteral=function(e){const t=(0,a.getObjectShape)(e),n=t?.method;if(!n)throw new Error("Schema is missing a method literal");const r=(0,a.getLiteralValue)(n);if("string"!=typeof r)throw new Error("Schema method literal must be a string");return r},t.parseWithCompat=function(e,t){const n=(0,a.safeParse)(e,t);if(!n.success)throw n.error;return n.data};const s=o(n(97083)),a=n(49029),c=n(39340)},17699:(e,t,n)=>{"use strict";const r=n(91060);r.createWebSocketStream=n(3719),r.Server=n(61722),r.Receiver=n(46286),r.Sender=n(80914),r.WebSocket=r,r.WebSocketServer=r.Server,e.exports=r},17833:(e,t,n)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(i=r))}),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(40736)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},18144:e=>{var t=[].slice;e.exports=function(e,n){if("string"==typeof n&&(n=e[n]),"function"!=typeof n)throw new Error("bind() requires a function");var r=t.call(arguments,2);return function(){return n.apply(e,r.concat(t.call(arguments)))}}},18352:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AjvJsonSchemaValidator=void 0;const i=r(n(20647)),o=r(n(5143));t.AjvJsonSchemaValidator=class{constructor(e){this._ajv=e??function(){const e=new i.default({strict:!1,validateFormats:!0,validateSchema:!1,allErrors:!0});return(0,o.default)(e),e}()}getValidator(e){const t="$id"in e&&"string"==typeof e.$id?this._ajv.getSchema(e.$id)??this._ajv.compile(e):this._ajv.compile(e);return e=>t(e)?{valid:!0,data:e,errorMessage:void 0}:{valid:!1,data:void 0,errorMessage:this._ajv.errorsText(t.errors)}}}},18721:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Context=void 0;const r=n(37763);t.Context=class{id;container;plan;currentRequest;constructor(e){this.id=(0,r.id)(),this.container=e}addPlan(e){this.plan=e}setCurrentRequest(e){this.currentRequest=e}}},18798:(e,t,n)=>{var r=n(78051),i=n(19500),o=n(26276);e.exports=function(e,t,n){for(var s=i(e);s.index<(s.keyedList||e).length;)r(e,t,s,function(e,t){e?n(e,t):0!==Object.keys(s.jobs).length||n(null,s.results)}),s.index++;return o.bind(s,n)}},19164:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.z=void 0;const a=o(n(79325));t.z=a,s(n(79325),t),t.default=a},19331:(e,t,n)=>{var r=n(14258),i=n(22300)("socket.io-client:url");e.exports=function(e,t){var n=e;t=t||"undefined"!=typeof location&&location,null==e&&(e=t.protocol+"//"+t.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?t.protocol+e:t.host+e),/^(https?|wss?):\/\//.test(e)||(i("protocol-less url %s",e),e=void 0!==t?t.protocol+"//"+e:"https://"+e),i("parse %s",e),n=r(e)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";var o=-1!==n.host.indexOf(":")?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+o+":"+n.port,n.href=n.protocol+"://"+o+(t&&t.port===n.port?"":":"+n.port),n}},19466:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NON_CUSTOM_TAG_KEYS=t.PRE_DESTROY=t.POST_CONSTRUCT=t.DESIGN_PARAM_TYPES=t.PARAM_TYPES=t.TAGGED_PROP=t.TAGGED=t.MULTI_INJECT_TAG=t.INJECT_TAG=t.OPTIONAL_TAG=t.UNMANAGED_TAG=t.NAME_TAG=t.NAMED_TAG=void 0,t.NAMED_TAG="named",t.NAME_TAG="name",t.UNMANAGED_TAG="unmanaged",t.OPTIONAL_TAG="optional",t.INJECT_TAG="inject",t.MULTI_INJECT_TAG="multi_inject",t.TAGGED="inversify:tagged",t.TAGGED_PROP="inversify:tagged_props",t.PARAM_TYPES="inversify:paramtypes",t.DESIGN_PARAM_TYPES="design:paramtypes",t.POST_CONSTRUCT="post_construct",t.PRE_DESTROY="pre_destroy",t.NON_CUSTOM_TAG_KEYS=[t.INJECT_TAG,t.MULTI_INJECT_TAG,t.NAME_TAG,t.UNMANAGED_TAG,t.NAMED_TAG,t.OPTIONAL_TAG]},19500:e=>{e.exports=function(e,t){var n=!Array.isArray(e),r={index:0,keyedList:n||t?Object.keys(e):null,jobs:{},results:n?{}:[],size:n?Object.keys(e).length:e.length};return t&&r.keyedList.sort(n?t:function(n,r){return t(e[n],e[r])}),r}},19779:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.getScripts=function(e,t){return r(this,void 0,void 0,function*(){const n=(0,i.ensureRemoteConnected)(e);if(n)return{ok:!1,error:n};if(0===e.scripts.getAllScripts().length)try{yield e.scripts.updateFromServer()}catch(e){}const r="string"==typeof t.pathPrefix?t.pathPrefix.trim().toLowerCase():"",c=(0,s.toBoundedInteger)(t.limit,o.DEFAULT_SCRIPT_LIMIT,1,o.MAX_SCRIPT_LIMIT),u=(0,i.allDirectories)(e).filter(e=>a(`${e._id}`,r)).map(i.toDirectoryDto),l=e.scripts.getAllScripts().filter(e=>a(`${e._id}`,r)),d=l.slice(0,c).map(i.toScriptSummary);return(0,o.success)({directories:u,scripts:d,truncated:l.length>d.length})})};const i=n(33510),o=n(49402),s=n(75061);function a(e,t){return 0===t.length||e.toLowerCase().startsWith(t)}},20181:e=>{"use strict";e.exports=require("buffer")},20645:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{localeError:a()}};const s=o(n(90523)),a=()=>{const e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(t){return e[t]??null}const n={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"};return e=>{switch(e.code){case"invalid_type":return`Input tidak sah: dijangka ${e.expected}, diterima ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"nombor";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Input tidak sah: dijangka ${s.stringifyPrimitive(e.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${s.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`Terlalu besar: dijangka ${e.origin??"nilai"} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??"elemen"}`:`Terlalu besar: dijangka ${e.origin??"nilai"} adalah ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`Terlalu kecil: dijangka ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Terlalu kecil: dijangka ${e.origin} adalah ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`String tidak sah: mesti bermula dengan "${t.prefix}"`:"ends_with"===t.format?`String tidak sah: mesti berakhir dengan "${t.suffix}"`:"includes"===t.format?`String tidak sah: mesti mengandungi "${t.includes}"`:"regex"===t.format?`String tidak sah: mesti sepadan dengan corak ${t.pattern}`:`${n[t.format]??e.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${e.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${s.joinValues(e.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${e.origin}`;case"invalid_union":default:return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${e.origin}`}}}},20647:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const r=n(79981),i=n(10781),o=n(35870),s=n(82546),a=["/properties"],c="http://json-schema.org/draft-07/schema";class u extends r.default{_addVocabularies(){super._addVocabularies(),i.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(s,a):s;this.addMetaSchema(e,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}t.Ajv=u,e.exports=t=u,e.exports.Ajv=u,Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var l=n(93697);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var d=n(66596);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return d._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return d.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return d.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return d.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return d.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return d.CodeGen}});var p=n(53781);Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return p.default}});var f=n(7346);Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})},20802:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},20874:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertToolsCallTaskCapability=function(e,t,n){if(!e)throw new Error(`${n} does not support task creation (required for ${t})`);if("tools/call"===t&&!e.tools?.call)throw new Error(`${n} does not support task creation for tools/call (required for ${t})`)},t.assertClientRequestTaskCapability=function(e,t,n){if(!e)throw new Error(`${n} does not support task creation (required for ${t})`);switch(t){case"sampling/createMessage":if(!e.sampling?.createMessage)throw new Error(`${n} does not support task creation for sampling/createMessage (required for ${t})`);break;case"elicitation/create":if(!e.elicitation?.create)throw new Error(`${n} does not support task creation for elicitation/create (required for ${t})`)}}},20969:e=>{function t(){}e.exports=function(e,n,r){var i=!1;return r=r||t,o.count=e,0===e?n():o;function o(e,t){if(o.count<=0)throw new Error("after called too many times");--o.count,e?(i=!0,n(e),n=r):0!==o.count||i||n(null,t)}}},21479:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Request=void 0;const r=n(37763);class i{id;serviceIdentifier;parentContext;parentRequest;bindings;childRequests;target;requestScope;constructor(e,t,n,i,o){this.id=(0,r.id)(),this.serviceIdentifier=e,this.parentContext=t,this.parentRequest=n,this.target=o,this.childRequests=[],this.bindings=Array.isArray(i)?i:[i],this.requestScope=null===n?new Map:null}addChildRequest(e,t,n){const r=new i(e,this.parentContext,this,t,n);return this.childRequests.push(r),r}}t.Request=i},21773:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InversifyCoreError=t.isAppErrorSymbol=void 0,t.isAppErrorSymbol=Symbol.for("@inversifyjs/core/InversifyCoreError");class n extends Error{[t.isAppErrorSymbol];kind;constructor(e,n,r){super(n,r),this[t.isAppErrorSymbol]=!0,this.kind=e}static is(e){return"object"==typeof e&&null!==e&&!0===e[t.isAppErrorSymbol]}static isErrorOfKind(e,t){return n.is(e)&&e.kind===t}}t.InversifyCoreError=n},21873:(e,t,n)=>{e.exports={parallel:n(18798),serial:n(52081),serialOrdered:n(90028)}},22010:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(66596),i=n(99048),o=n(6158),s={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxLength"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} characters`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:s,it:a}=e,c="maxLength"===t?r.operators.GT:r.operators.LT,u=!1===a.opts.unicode?r._`${n}.length`:r._`${(0,i.useFunc)(e.gen,o.default)}(${n})`;e.fail$data(r._`${u} ${c} ${s}`)}};t.default=s},22149:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(99048),i={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:n}){void 0===t.if&&(0,r.checkStrictMode)(n,`"${e}" without "if" is ignored`)}};t.default=i},22300:(e,t,n)=>{"undefined"==typeof process||"renderer"===process.type?e.exports=n(59368):e.exports=n(25834)},22370:e=>{e.exports=function(e,t){var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},22671:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateReflectMetadata=function(e,t,n,i){const o=i((0,r.getReflectMetadata)(e,t)??n);Reflect.defineMetadata(t,o,e)};const r=n(3654)},22793:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseTupleDef=void 0;const r=n(73524);t.parseTupleDef=function(e,t){return e.rest?{type:"array",minItems:e.items.length,items:e.items.map((e,n)=>(0,r.parseDef)(e._def,{...t,currentPath:[...t.currentPath,"items",`${n}`]})).reduce((e,t)=>void 0===t?e:[...e,t],[]),additionalItems:(0,r.parseDef)(e.rest._def,{...t,currentPath:[...t.currentPath,"additionalItems"]})}:{type:"array",minItems:e.items.length,maxItems:e.items.length,items:e.items.map((e,n)=>(0,r.parseDef)(e._def,{...t,currentPath:[...t.currentPath,"items",`${n}`]})).reduce((e,t)=>void 0===t?e:[...e,t],[])}}},22797:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.scriptIdOf=c,t.scriptNameOf=u,t.filePathOf=l,t.toScriptSummary=function(e){var t;return{scriptId:c(e),name:u(e),filePath:l(e),engineType:`${null!==(t=e.ioBrokerScript.common.engineType)&&void 0!==t?t:""}`,enabled:!0===e.ioBrokerScript.common.enabled,isDirty:e.isDirty,isRemoteOnly:e.isRemoteOnly}},t.toDirectoryDto=function(e){var t,n;const r=`${e._id}`;return{id:r,name:null!==(n=null===(t=e.common)||void 0===t?void 0:t.name)&&void 0!==n?n:r}},t.findDirectory=function(e,t){return t===o.ScriptId.rootId?e.scripts.getRootDirectory():e.scripts.getAllDirectories().find(e=>`${e._id}`===t)},t.allDirectories=function(e){const t=e.scripts.getAllDirectories().slice(),n=e.scripts.getRootDirectory();return t.some(e=>`${e._id}`==`${n._id}`)||t.unshift(n),t},t.extensionOf=function(e,t){const n=i.extname(e.absoluteUri.fsPath).replace(/^\./,"");return n||t.script.getFileExtension(e.ioBrokerScript.common.engineType)},t.toFailure=function(e){return(0,s.failure)("server_error",(0,a.toMessage)(e),"Check the ioBroker connection and the given script id, then retry.")},t.refreshScriptInCache=function(e,t){return r(this,void 0,void 0,function*(){try{yield e.scripts.updateSingleScriptOrDirectoryFromServer(t)}catch(e){}})};const i=n(16928),o=n(11633),s=n(98297),a=n(75061);function c(e){return`${e._id}`}function u(e){var t;return null!==(t=e.ioBrokerScript.common.name)&&void 0!==t?t:o.ScriptId.lastSegmentOf(c(e))}function l(e){return e.absoluteUri.fsPath}},23077:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.LoginType=void 0,function(e){e[e.noLogin=0]="noLogin",e[e.legacy=1]="legacy",e[e.oAuth2=2]="oAuth2"}(n||(t.LoginType=n={}))},23108:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tagged=function(e,t){return(0,i.createTaggedDecorator)(new r.Metadata(e,t))};const r=n(4045),i=n(33353)},23498:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPropertyMetadataFromLegacyMetadata=function(e,t,n){try{return(0,o.getClassElementMetadataFromLegacyMetadata)(n)}catch(n){throw r.InversifyCoreError.isErrorOfKind(n,i.InversifyCoreErrorKind.missingInjectionDecorator)?new r.InversifyCoreError(i.InversifyCoreErrorKind.missingInjectionDecorator,`Expected a single @inject, @multiInject or @unmanaged decorator at type "${e.name}" at property "${t.toString()}"`,{cause:n}):n}};const r=n(21773),i=n(94931),o=n(44063)},23740:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.callRef=t.getValidate=void 0;const r=n(7346),i=n(51980),o=n(66596),s=n(26670),a=n(81430),c=n(99048),u={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:n,it:i}=e,{baseId:s,schemaEnv:c,validateName:u,opts:p,self:f}=i,{root:m}=c;if(("#"===n||"#/"===n)&&s===m.baseId)return function(){if(c===m)return d(e,u,c,c.$async);const n=t.scopeValue("root",{ref:m});return d(e,o._`${n}.validate`,m,m.$async)}();const h=a.resolveRef.call(f,m,s,n);if(void 0===h)throw new r.default(i.opts.uriResolver,s,n);return h instanceof a.SchemaEnv?function(t){const n=l(e,t);d(e,n,t,t.$async)}(h):function(r){const i=t.scopeValue("schema",!0===p.code.source?{ref:r,code:(0,o.stringify)(r)}:{ref:r}),s=t.name("valid"),a=e.subschema({schema:r,dataTypes:[],schemaPath:o.nil,topSchemaRef:i,errSchemaPath:n},s);e.mergeEvaluated(a),e.ok(s)}(h)}};function l(e,t){const{gen:n}=e;return t.validate?n.scopeValue("validate",{ref:t.validate}):o._`${n.scopeValue("wrapper",{ref:t})}.validate`}function d(e,t,n,r){const{gen:a,it:u}=e,{allErrors:l,schemaEnv:d,opts:p}=u,f=p.passContext?s.default.this:o.nil;function m(e){const t=o._`${e}.errors`;a.assign(s.default.vErrors,o._`${s.default.vErrors} === null ? ${t} : ${s.default.vErrors}.concat(${t})`),a.assign(s.default.errors,o._`${s.default.vErrors}.length`)}function h(e){var t;if(!u.opts.unevaluated)return;const r=null===(t=null==n?void 0:n.validate)||void 0===t?void 0:t.evaluated;if(!0!==u.props)if(r&&!r.dynamicProps)void 0!==r.props&&(u.props=c.mergeEvaluated.props(a,r.props,u.props));else{const t=a.var("props",o._`${e}.evaluated.props`);u.props=c.mergeEvaluated.props(a,t,u.props,o.Name)}if(!0!==u.items)if(r&&!r.dynamicItems)void 0!==r.items&&(u.items=c.mergeEvaluated.items(a,r.items,u.items));else{const t=a.var("items",o._`${e}.evaluated.items`);u.items=c.mergeEvaluated.items(a,t,u.items,o.Name)}}r?function(){if(!d.$async)throw new Error("async schema referenced by sync schema");const n=a.let("valid");a.try(()=>{a.code(o._`await ${(0,i.callValidateCode)(e,t,f)}`),h(t),l||a.assign(n,!0)},e=>{a.if(o._`!(${e} instanceof ${u.ValidationError})`,()=>a.throw(e)),m(e),l||a.assign(n,!1)}),e.ok(n)}():e.result((0,i.callValidateCode)(e,t,f),()=>h(t),()=>m(t))}t.getValidate=l,t.callRef=d,t.default=u},24274:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.getJsInstances=function(e,t){return r(this,void 0,void 0,function*(){var n;const r=(0,o.ensureRemoteConnected)(e);if(r)return{ok:!1,error:r};let c,u=null;if(void 0!==t.scriptId){const r=(0,a.toScriptId)(t.scriptId);if(!r.ok)return r;const o=e.scripts.getScriptFromId(r.data);if(!o)return(0,i.failure)("not_found",`The script '${r.data}' is not known to the ioBroker server.`,"Use iobroker_get_scripts to look up available script ids.");u=null!==(n=o.common.engine)&&void 0!==n?n:null}try{c=yield e.jsInstances.getAvailableInstances()}catch(e){return(0,s.toFailure)(e)}return(0,i.success)({instances:c.map(e=>({id:e._id})),currentInstanceId:u})})};const i=n(49402),o=n(33510),s=n(22797),a=n(75061)},24290:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{localeError:a()}};const s=o(n(90523)),a=()=>{const e={string:{unit:"ký tự",verb:"có"},file:{unit:"byte",verb:"có"},array:{unit:"phần tử",verb:"có"},set:{unit:"phần tử",verb:"có"}};function t(t){return e[t]??null}const n={regex:"đầu vào",email:"địa chỉ email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ngày giờ ISO",date:"ngày ISO",time:"giờ ISO",duration:"khoảng thời gian ISO",ipv4:"địa chỉ IPv4",ipv6:"địa chỉ IPv6",cidrv4:"dải IPv4",cidrv6:"dải IPv6",base64:"chuỗi mã hóa base64",base64url:"chuỗi mã hóa base64url",json_string:"chuỗi JSON",e164:"số E.164",jwt:"JWT",template_literal:"đầu vào"};return e=>{switch(e.code){case"invalid_type":return`Đầu vào không hợp lệ: mong đợi ${e.expected}, nhận được ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"số";case"object":if(Array.isArray(e))return"mảng";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Đầu vào không hợp lệ: mong đợi ${s.stringifyPrimitive(e.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${s.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`Quá lớn: mong đợi ${e.origin??"giá trị"} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??"phần tử"}`:`Quá lớn: mong đợi ${e.origin??"giá trị"} ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`Quá nhỏ: mong đợi ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Quá nhỏ: mong đợi ${e.origin} ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Chuỗi không hợp lệ: phải bắt đầu bằng "${t.prefix}"`:"ends_with"===t.format?`Chuỗi không hợp lệ: phải kết thúc bằng "${t.suffix}"`:"includes"===t.format?`Chuỗi không hợp lệ: phải bao gồm "${t.includes}"`:"regex"===t.format?`Chuỗi không hợp lệ: phải khớp với mẫu ${t.pattern}`:`${n[t.format]??e.format} không hợp lệ`}case"not_multiple_of":return`Số không hợp lệ: phải là bội số của ${e.divisor}`;case"unrecognized_keys":return`Khóa không được nhận dạng: ${s.joinValues(e.keys,", ")}`;case"invalid_key":return`Khóa không hợp lệ trong ${e.origin}`;case"invalid_union":default:return"Đầu vào không hợp lệ";case"invalid_element":return`Giá trị không hợp lệ trong ${e.origin}`}}}},24362:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.$ZodRealError=t.$ZodError=void 0,t.flattenError=function(e,t=e=>e.message){const n={},r=[];for(const i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}},t.formatError=function(e,t){const n=t||function(e){return e.message},r={_errors:[]},i=e=>{for(const t of e.issues)if("invalid_union"===t.code&&t.errors.length)t.errors.map(e=>i({issues:e}));else if("invalid_key"===t.code)i({issues:t.issues});else if("invalid_element"===t.code)i({issues:t.issues});else if(0===t.path.length)r._errors.push(n(t));else{let e=r,i=0;for(;i<t.path.length;){const r=t.path[i];i===t.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(n(t))):e[r]=e[r]||{_errors:[]},e=e[r],i++}}};return i(e),r},t.treeifyError=function(e,t){const n=t||function(e){return e.message},r={errors:[]},i=(e,t=[])=>{var o,s;for(const a of e.issues)if("invalid_union"===a.code&&a.errors.length)a.errors.map(e=>i({issues:e},a.path));else if("invalid_key"===a.code)i({issues:a.issues},a.path);else if("invalid_element"===a.code)i({issues:a.issues},a.path);else{const e=[...t,...a.path];if(0===e.length){r.errors.push(n(a));continue}let i=r,c=0;for(;c<e.length;){const t=e[c],r=c===e.length-1;"string"==typeof t?(i.properties??(i.properties={}),(o=i.properties)[t]??(o[t]={errors:[]}),i=i.properties[t]):(i.items??(i.items=[]),(s=i.items)[t]??(s[t]={errors:[]}),i=i.items[t]),r&&i.errors.push(n(a)),c++}}};return i(e),r},t.toDotPath=u,t.prettifyError=function(e){const t=[],n=[...e.issues].sort((e,t)=>e.path.length-t.path.length);for(const e of n)t.push(`✖ ${e.message}`),e.path?.length&&t.push(` → at ${u(e.path)}`);return t.join("\n")};const s=n(98706),a=o(n(90523)),c=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),Object.defineProperty(e,"message",{get:()=>JSON.stringify(t,a.jsonStringifyReplacer,2),enumerable:!0}),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})};function u(e){const t=[];for(const n of e)"number"==typeof n?t.push(`[${n}]`):"symbol"==typeof n?t.push(`[${JSON.stringify(String(n))}]`):/[^\w$]/.test(n)?t.push(`[${JSON.stringify(n)}]`):(t.length&&t.push("."),t.push(n));return t.join("")}t.$ZodError=(0,s.$constructor)("$ZodError",c),t.$ZodRealError=(0,s.$constructor)("$ZodError",c,{Parent:Error})},24434:e=>{"use strict";e.exports=require("events")},24971:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;const r=n(66596),i=n(99048),o=n(26670);function s(e,t){const n=e.const("err",t);e.if(r._`${o.default.vErrors} === null`,()=>e.assign(o.default.vErrors,r._`[${n}]`),r._`${o.default.vErrors}.push(${n})`),e.code(r._`${o.default.errors}++`)}function a(e,t){const{gen:n,validateName:i,schemaEnv:o}=e;o.$async?n.throw(r._`new ${e.ValidationError}(${t})`):(n.assign(r._`${i}.errors`,t),n.return(!1))}t.keywordError={message:({keyword:e})=>r.str`must pass "${e}" keyword validation`},t.keyword$DataError={message:({keyword:e,schemaType:t})=>t?r.str`"${e}" keyword must be ${t} ($data)`:r.str`"${e}" keyword is invalid ($data)`},t.reportError=function(e,n=t.keywordError,i,o){const{it:c}=e,{gen:l,compositeRule:d,allErrors:p}=c,f=u(e,n,i);(null!=o?o:d||p)?s(l,f):a(c,r._`[${f}]`)},t.reportExtraError=function(e,n=t.keywordError,r){const{it:i}=e,{gen:c,compositeRule:l,allErrors:d}=i;s(c,u(e,n,r)),l||d||a(i,o.default.vErrors)},t.resetErrorsCount=function(e,t){e.assign(o.default.errors,t),e.if(r._`${o.default.vErrors} !== null`,()=>e.if(t,()=>e.assign(r._`${o.default.vErrors}.length`,t),()=>e.assign(o.default.vErrors,null)))},t.extendErrors=function({gen:e,keyword:t,schemaValue:n,data:i,errsCount:s,it:a}){if(void 0===s)throw new Error("ajv implementation error");const c=e.name("err");e.forRange("i",s,o.default.errors,s=>{e.const(c,r._`${o.default.vErrors}[${s}]`),e.if(r._`${c}.instancePath === undefined`,()=>e.assign(r._`${c}.instancePath`,(0,r.strConcat)(o.default.instancePath,a.errorPath))),e.assign(r._`${c}.schemaPath`,r.str`${a.errSchemaPath}/${t}`),a.opts.verbose&&(e.assign(r._`${c}.schema`,n),e.assign(r._`${c}.data`,i))})};const c={keyword:new r.Name("keyword"),schemaPath:new r.Name("schemaPath"),params:new r.Name("params"),propertyName:new r.Name("propertyName"),message:new r.Name("message"),schema:new r.Name("schema"),parentSchema:new r.Name("parentSchema")};function u(e,t,n){const{createErrors:i}=e.it;return!1===i?r._`{}`:function(e,t,n={}){const{gen:i,it:s}=e,a=[l(s,n),d(e,n)];return function(e,{params:t,message:n},i){const{keyword:s,data:a,schemaValue:u,it:l}=e,{opts:d,propertyName:p,topSchemaRef:f,schemaPath:m}=l;i.push([c.keyword,s],[c.params,"function"==typeof t?t(e):t||r._`{}`]),d.messages&&i.push([c.message,"function"==typeof n?n(e):n]),d.verbose&&i.push([c.schema,u],[c.parentSchema,r._`${f}${m}`],[o.default.data,a]),p&&i.push([c.propertyName,p])}(e,t,a),i.object(...a)}(e,t,n)}function l({errorPath:e},{instancePath:t}){const n=t?r.str`${e}${(0,i.getErrorPath)(t,i.Type.Str)}`:e;return[o.default.instancePath,(0,r.strConcat)(o.default.instancePath,n)]}function d({keyword:e,it:{errSchemaPath:t}},{schemaPath:n,parentSchema:o}){let s=o?t:r.str`${t}/${e}`;return n&&(s=r.str`${s}${(0,i.getErrorPath)(n,i.Type.Str)}`),[c.schemaPath,s]}},25441:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.readLogs=function(e,t){return r(this,void 0,void 0,function*(){const n="string"==typeof t.hostId?t.hostId.trim():"";if(void 0!==t.hostId&&(0===n.length||n.length>255||/\s/.test(n)))return(0,i.failure)("invalid_input","'hostId' must be a host id without whitespace.","Use an id such as 'system.host.myHost'.");const r="string"==typeof t.level?t.level.trim().toLowerCase():t.level;if(void 0!==r&&!s.includes(r))return(0,i.failure)("invalid_input",`'level' must be one of ${s.join(", ")}.`);const c=d(t.search,"search");if(!c.ok)return c;const u=d(t.source,"source");if(!u.ok)return u;const p=(0,o.toBoundedInteger)(t.lines,i.DEFAULT_LOG_LIMIT,1,i.MAX_LOG_LIMIT);try{const t=yield e.getHosts();let o;if(n){if(o=t.find(e=>e.id===n),!o)return(0,i.failure)("not_found",`The ioBroker host '${n}' was not found.`,`Available host ids: ${t.map(e=>e.id).join(", ")||"(none)"}.`)}else{if(1!==t.length)return 0===t.length?(0,i.failure)("not_found","No ioBroker hosts were found."):(0,i.failure)("ambiguous","More than one ioBroker host is available. Specify 'hostId' to select the host whose log should be read.",`Available host ids: ${t.map(e=>e.id).join(", ")}.`);o=t[0]}const s=yield e.getLogs(o.id,p),d=function(e){const t=[];for(const n of e){const e=l(n);if(e){t.push({lines:[n],level:e.level,source:e.source});continue}const r=t[t.length-1];r?r.lines.push(n):t.push({lines:[n],source:""})}return t}(s).filter(e=>function(e,t){return!t||!!e.level&&a[e.level]>=a[t]}(e,r)&&function(e,t){return 0===t.length||e.source.includes(t)}(e,u.data)&&function(e,t){return 0===t.length||e.lines.some(e=>e.toLowerCase().includes(t))}(e,c.data)),f=function(e){const t=[];let n=i.MAX_LOG_RESPONSE_CHARACTERS;const r="...[truncated]";for(const i of e){if(!(i.length<=n))return n>=14&&t.push(`${i.substring(0,n-14)}${r}`),{entries:t,truncated:!0};t.push(i),n-=i.length}return{entries:t,truncated:!1}}(function(e){const t=[];return e.forEach(e=>t.push(...e.lines)),t}(d));return(0,i.success)({hostId:o.id,hostName:o.name,scannedLines:s.length,entries:f.entries,truncated:f.truncated})}catch(e){return(0,i.failure)("server_error",e instanceof Error?e.message:`${e}`,"Check the ioBroker connection and the given arguments, then retry.")}})};const i=n(98297),o=n(75061),s=["silly","debug","info","warn","error"],a={silly:0,debug:1,info:2,warn:3,error:4},c=new RegExp(`${String.fromCharCode(27)}\\[[0-?]*[ -/]*[@-~]`,"g"),u=/^(\d{4}-\d{2}-\d{2})\s+(\d{2}:\d{2}:\d{2}(?:\.\d{1,3})?)\s+-\s+(silly|debug|info|warn|error):(?:\s+(\S+).*)?\r?$/i;function l(e){var t;const n=e.replace(c,"").match(u);if(n)return{level:n[3].toLowerCase(),source:(null!==(t=n[4])&&void 0!==t?t:"").toLowerCase()}}function d(e,t){return void 0===e?(0,i.success)(""):"string"!=typeof e||e.length>200?(0,i.failure)("invalid_input",`'${t}' must be a string of at most 200 characters.`):(0,i.success)(e.trim().toLowerCase())}},25570:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{localeError:c()}};const s=o(n(90523));function a(e,t,n,r){const i=Math.abs(e),o=i%10,s=i%100;return s>=11&&s<=19?r:1===o?t:o>=2&&o<=4?n:r}const c=()=>{const e={string:{unit:{one:"символ",few:"символа",many:"символов"},verb:"иметь"},file:{unit:{one:"байт",few:"байта",many:"байт"},verb:"иметь"},array:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},set:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"}};function t(t){return e[t]??null}const n={regex:"ввод",email:"email адрес",url:"URL",emoji:"эмодзи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата и время",date:"ISO дата",time:"ISO время",duration:"ISO длительность",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"строка в формате base64",base64url:"строка в формате base64url",json_string:"JSON строка",e164:"номер E.164",jwt:"JWT",template_literal:"ввод"};return e=>{switch(e.code){case"invalid_type":return`Неверный ввод: ожидалось ${e.expected}, получено ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"число";case"object":if(Array.isArray(e))return"массив";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Неверный ввод: ожидалось ${s.stringifyPrimitive(e.values[0])}`:`Неверный вариант: ожидалось одно из ${s.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);if(r){const t=a(Number(e.maximum),r.unit.one,r.unit.few,r.unit.many);return`Слишком большое значение: ожидалось, что ${e.origin??"значение"} будет иметь ${n}${e.maximum.toString()} ${t}`}return`Слишком большое значение: ожидалось, что ${e.origin??"значение"} будет ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);if(r){const t=a(Number(e.minimum),r.unit.one,r.unit.few,r.unit.many);return`Слишком маленькое значение: ожидалось, что ${e.origin} будет иметь ${n}${e.minimum.toString()} ${t}`}return`Слишком маленькое значение: ожидалось, что ${e.origin} будет ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Неверная строка: должна начинаться с "${t.prefix}"`:"ends_with"===t.format?`Неверная строка: должна заканчиваться на "${t.suffix}"`:"includes"===t.format?`Неверная строка: должна содержать "${t.includes}"`:"regex"===t.format?`Неверная строка: должна соответствовать шаблону ${t.pattern}`:`Неверный ${n[t.format]??e.format}`}case"not_multiple_of":return`Неверное число: должно быть кратным ${e.divisor}`;case"unrecognized_keys":return`Нераспознанн${e.keys.length>1?"ые":"ый"} ключ${e.keys.length>1?"и":""}: ${s.joinValues(e.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${e.origin}`;case"invalid_union":default:return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${e.origin}`}}}},25584:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(66596),i={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxItems"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} items`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:i}=e,o="maxItems"===t?r.operators.GT:r.operators.LT;e.fail$data(r._`${n}.length ${o} ${i}`)}};t.default=i},25834:(e,t,n)=>{var r=n(52018),i=n(39023);(t=e.exports=n(79939)).init=function(e){e.inspectOpts={};for(var n=Object.keys(t.inspectOpts),r=0;r<n.length;r++)e.inspectOpts[n[r]]=t.inspectOpts[n[r]]},t.log=function(){return process.stderr.write(i.format.apply(i,arguments)+"\n")},t.formatArgs=function(e){var n=this.namespace;if(this.useColors){var r=this.color,i="[3"+(r<8?r:"8;5;"+r),o=" "+i+";1m"+n+" ";e[0]=o+e[0].split("\n").join("\n"+o),e.push(i+"m+"+t.humanize(this.diff)+"")}else e[0]=(t.inspectOpts.hideDate?"":(new Date).toISOString()+" ")+n+" "+e[0]},t.save=function(e){null==e?delete process.env.DEBUG:process.env.DEBUG=e},t.load=s,t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):r.isatty(process.stderr.fd)},t.colors=[6,2,3,4,5,1];try{var o=n(27687);o&&o.level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}function s(){return process.env.DEBUG}t.inspectOpts=Object.keys(process.env).filter(function(e){return/^debug_/i.test(e)}).reduce(function(e,t){var n=t.substring(6).toLowerCase().replace(/_([a-z])/g,function(e,t){return t.toUpperCase()}),r=process.env[t];return r=!!/^(yes|on|true|enabled)$/i.test(r)||!/^(no|off|false|disabled)$/i.test(r)&&("null"===r?null:Number(r)),e[n]=r,e},{}),t.formatters.o=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts).split("\n").map(function(e){return e.trim()}).join(" ")},t.formatters.O=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts)},t.enable(s())},25884:e=>{"use strict";e.exports=(e,t=process.argv)=>{const n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),i=t.indexOf("--");return-1!==r&&(-1===i||r<i)}},26182:function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.LoginService=void 0;const a=n(58611),c=n(65692),u=n(79329),l=n(52650),d=n(55853),p=n(23077);let f=class{constructor(e,t){this.loginCredentialService=e,this.debugLogService=t}getLoginType(e,t){return s(this,void 0,void 0,function*(){try{return yield this.getOAuthAccessTokenFromIoBroker(e,t,"",""),p.LoginType.legacy}catch(e){if(e&&"object"==typeof e&&"isLoginUrlAvailable"in e&&e.isLoginUrlAvailable)return p.LoginType.oAuth2}try{return yield this.getLegacyAccessTokenFromIoBroker(e,t,"",""),p.LoginType.legacy}catch(e){if(e&&"object"==typeof e&&"isLoginUrlAvailable"in e&&e.isLoginUrlAvailable)return p.LoginType.legacy}return p.LoginType.noLogin})}getAccessToken(e,t,n,r){return s(this,void 0,void 0,function*(){var i;const o=yield this.loginCredentialService.getAccessToken(),s=yield this.getServerTime(e,t);if(o&&this.loginCredentialService.isValidAccessToken(o,s))return this.logDebug("Found valid access token. Using it"),o.token;const a=yield this.loginCredentialService.getPassword();if(!a)return void this.logDebug("User did not provide password. Cannot get access token");const c=yield this.getAndUpdateToken(e,t,n,a,s,r);if(c)return this.logDebug("Successfuly got new access token. Using it"),c.token;const u=yield this.loginCredentialService.updatePasswordFromUser();if(this.logDebug("Could not get new token with the password. Ask the user to supply a new one"),!u)return void this.logDebug("User did not provide password. Cannot get access token");const l=yield this.getAndUpdateToken(e,t,n,u,s,r);return null!==(i=null==l?void 0:l.token)&&void 0!==i?i:void 0})}getAndUpdateToken(e,t,n,r,i,o){return s(this,void 0,void 0,function*(){let s;if(o===p.LoginType.oAuth2)s=yield this.getOAuthAccessTokenFromIoBroker(e,t,n,r);else{if(o!==p.LoginType.legacy)throw new Error("Login type is not supported: "+o);s=yield this.getLegacyAccessTokenFromIoBroker(e,t,n,r)}if(this.loginCredentialService.isValidAccessToken(s,i))return yield this.loginCredentialService.updateAccessToken(s),s})}getServerTime(e,t){return s(this,void 0,void 0,function*(){const n=this.createHttpsAgent(t),r=(yield u.default.get(e.toString(),{httpsAgent:n})).headers.date;return r?new Date(r):new Date})}getOAuthAccessTokenFromIoBroker(e,t,n,r){this.logDebug("Getting access token from ioBroker with OAuth2");const i=`grant_type=password&username=${encodeURIComponent(n)}&password=${encodeURIComponent(r)}&stayloggedin=true&client_id=ioBroker`;return this.getAccessTokenFromIoBroker(e,p.LoginType.oAuth2,t,i,"/oauth/token")}getLegacyAccessTokenFromIoBroker(e,t,n,r){this.logDebug("Getting access token from ioBroker with legacy method");const i=`username=${encodeURIComponent(n)}&password=${encodeURIComponent(r)}&stayloggedin=on`;return this.getAccessTokenFromIoBroker(e,p.LoginType.legacy,t,i,"/login")}getAccessTokenFromIoBroker(e,t,n,r,i){return new Promise((o,s)=>{const a=this.getLoginPostOptions(e,i,n,r),c=this.createRequest(e,t,a,o,s);c.on("error",e=>{s(e)}),c.write(r),c.end()})}getLoginPostOptions(e,t,n,r){const i=e.authority.indexOf(":"),o=i>0?e.authority.substring(0,i):e.authority,s="http"===e.scheme?80:443;return{hostname:o,port:i>0?e.authority.substring(i+1):s,path:t,method:"POST",rejectUnauthorized:!n,requestCert:!0,agent:!1,headers:{"Content-Type":"application/x-www-form-urlencoded","Content-Length":r.length}}}requestHandler(e,t,n,r){return s(this,void 0,void 0,function*(){var i;if(t.statusCode&&200!==t.statusCode&&302!==t.statusCode){const e={message:`Login failed. Received status code '${t.statusCode}'`,isLoginUrlAvailable:400===t.statusCode};return void r(e)}var o=null!==(i=t.headers["set-cookie"])&&void 0!==i?i:[];if(1!==o.length){const e={message:"Cookie was not set",isLoginUrlAvailable:400===t.statusCode};return void r(e)}const s=o[0];let a;if(e===p.LoginType.oAuth2)a=`access_token=${this.getCookieValue(s,"access_token")}`;else{if(e!==p.LoginType.legacy)throw new Error("Login type is not supported: "+e);a=`connect.sid=${this.getCookieValue(s,"connect.sid")}`}const c=new Date(this.getCookieValue(s,"Expires"));this.logDebug(`Got new access token which expires on ${c}`),n({token:a,expires:c})})}getCookieValue(e,t){const n=e.indexOf(t),r=e.substring(n+t.length+1),i=r.indexOf(";");return r.substring(0,i)}createRequest(e,t,n,r,i){return"http"===e.scheme?a.request(n,e=>this.requestHandler(t,e,r,i)):c.request(n,e=>this.requestHandler(t,e,r,i))}createHttpsAgent(e){return new c.Agent({rejectUnauthorized:!e})}logDebug(e){this.debugLogService.log(e,"LoginService")}};t.LoginService=f,t.LoginService=f=r([(0,l.injectable)(),o(0,(0,l.inject)(d.default.services.loginCredentials)),o(1,(0,l.inject)(d.default.services.debugLogService)),i("design:paramtypes",[Object,Object])],f)},26276:(e,t,n)=>{var r=n(74555),i=n(72313);e.exports=function(e){Object.keys(this.jobs).length&&(this.index=this.size,r(this),i(e)(null,this.results))}},26545:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=[n(64026).default];t.default=r},26670:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(66596),i={data:new r.Name("data"),valCxt:new r.Name("valCxt"),instancePath:new r.Name("instancePath"),parentData:new r.Name("parentData"),parentDataProperty:new r.Name("parentDataProperty"),rootData:new r.Name("rootData"),dynamicAnchors:new r.Name("dynamicAnchors"),vErrors:new r.Name("vErrors"),errors:new r.Name("errors"),this:new r.Name("this"),self:new r.Name("self"),scope:new r.Name("scope"),json:new r.Name("json"),jsonPos:new r.Name("jsonPos"),jsonLen:new r.Name("jsonLen"),jsonPart:new r.Name("jsonPart")};t.default=i},26727:function(e,t,n){"use strict";var r,i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),s=0;s<n.length;s++)"default"!==n[s]&&i(t,e,n[s]);return o(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.typeConstraint=t.namedConstraint=t.taggedConstraint=t.traverseAncerstors=void 0;const a=s(n(19466)),c=n(4045),u=(e,t)=>{const n=e.parentRequest;return null!==n&&(!!t(n)||u(n,t))};t.traverseAncerstors=u;const l=e=>t=>{const n=n=>null!==n&&null!==n.target&&n.target.matchesTag(e)(t);return n.metaData=new c.Metadata(e,t),n};t.taggedConstraint=l;const d=l(a.NAMED_TAG);t.namedConstraint=d,t.typeConstraint=e=>t=>{let n=null;if(null!==t){if(n=t.bindings[0],"string"==typeof e)return n.serviceIdentifier===e;{const n=t.bindings[0].implementationType;return e===n}}return!1}},27161:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BindingInSyntax=void 0;const r=n(9117),i=n(41402);t.BindingInSyntax=class{_binding;constructor(e){this._binding=e}inRequestScope(){return this._binding.scope=r.BindingScopeEnum.Request,new i.BindingWhenOnSyntax(this._binding)}inSingletonScope(){return this._binding.scope=r.BindingScopeEnum.Singleton,new i.BindingWhenOnSyntax(this._binding)}inTransientScope(){return this._binding.scope=r.BindingScopeEnum.Transient,new i.BindingWhenOnSyntax(this._binding)}}},27353:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.saveToScope=t.tryGetFromScope=void 0;const r=n(9117),i=n(12576);t.tryGetFromScope=(e,t)=>t.scope===r.BindingScopeEnum.Singleton&&t.activated?t.cache:t.scope===r.BindingScopeEnum.Request&&e.has(t.id)?e.get(t.id):null,t.saveToScope=(e,t,n)=>{t.scope===r.BindingScopeEnum.Singleton&&s(t,n),t.scope===r.BindingScopeEnum.Request&&o(e,t,n)};const o=(e,t,n)=>{e.has(t.id)||e.set(t.id,n)},s=(e,t)=>{e.cache=t,e.activated=!0,(0,i.isPromise)(t)&&a(e,t)},a=async(e,t)=>{try{const n=await t;e.cache=n}catch(t){throw e.cache=null,e.activated=!1,t}}},27467:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Server=void 0;const r=n(77533),i=n(1294),o=n(18352),s=n(49029),a=n(53200),c=n(20874);class u extends r.Protocol{constructor(e,t){super(t),this._serverInfo=e,this._loggingLevels=new Map,this.LOG_LEVEL_SEVERITY=new Map(i.LoggingLevelSchema.options.map((e,t)=>[e,t])),this.isMessageIgnored=(e,t)=>{const n=this._loggingLevels.get(t);return!!n&&this.LOG_LEVEL_SEVERITY.get(e)<this.LOG_LEVEL_SEVERITY.get(n)},this._capabilities=t?.capabilities??{},this._instructions=t?.instructions,this._jsonSchemaValidator=t?.jsonSchemaValidator??new o.AjvJsonSchemaValidator,this.setRequestHandler(i.InitializeRequestSchema,e=>this._oninitialize(e)),this.setNotificationHandler(i.InitializedNotificationSchema,()=>this.oninitialized?.()),this._capabilities.logging&&this.setRequestHandler(i.SetLevelRequestSchema,async(e,t)=>{const n=t.sessionId||t.requestInfo?.headers["mcp-session-id"]||void 0,{level:r}=e.params,o=i.LoggingLevelSchema.safeParse(r);return o.success&&this._loggingLevels.set(n,o.data),{}})}get experimental(){return this._experimental||(this._experimental={tasks:new a.ExperimentalServerTasks(this)}),this._experimental}registerCapabilities(e){if(this.transport)throw new Error("Cannot register capabilities after connecting to transport");this._capabilities=(0,r.mergeCapabilities)(this._capabilities,e)}setRequestHandler(e,t){const n=(0,s.getObjectShape)(e),r=n?.method;if(!r)throw new Error("Schema is missing a method literal");const o=(0,s.getLiteralValue)(r);if("string"!=typeof o)throw new Error("Schema method literal must be a string");if("tools/call"===o){const n=async(e,n)=>{const r=(0,s.safeParse)(i.CallToolRequestSchema,e);if(!r.success){const e=r.error instanceof Error?r.error.message:String(r.error);throw new i.McpError(i.ErrorCode.InvalidParams,`Invalid tools/call request: ${e}`)}const{params:o}=r.data,a=await Promise.resolve(t(e,n));if(o.task){const e=(0,s.safeParse)(i.CreateTaskResultSchema,a);if(!e.success){const t=e.error instanceof Error?e.error.message:String(e.error);throw new i.McpError(i.ErrorCode.InvalidParams,`Invalid task creation result: ${t}`)}return e.data}const c=(0,s.safeParse)(i.CallToolResultSchema,a);if(!c.success){const e=c.error instanceof Error?c.error.message:String(c.error);throw new i.McpError(i.ErrorCode.InvalidParams,`Invalid tools/call result: ${e}`)}return c.data};return super.setRequestHandler(e,n)}return super.setRequestHandler(e,t)}assertCapabilityForMethod(e){switch(e){case"sampling/createMessage":if(!this._clientCapabilities?.sampling)throw new Error(`Client does not support sampling (required for ${e})`);break;case"elicitation/create":if(!this._clientCapabilities?.elicitation)throw new Error(`Client does not support elicitation (required for ${e})`);break;case"roots/list":if(!this._clientCapabilities?.roots)throw new Error(`Client does not support listing roots (required for ${e})`)}}assertNotificationCapability(e){switch(e){case"notifications/message":if(!this._capabilities.logging)throw new Error(`Server does not support logging (required for ${e})`);break;case"notifications/resources/updated":case"notifications/resources/list_changed":if(!this._capabilities.resources)throw new Error(`Server does not support notifying about resources (required for ${e})`);break;case"notifications/tools/list_changed":if(!this._capabilities.tools)throw new Error(`Server does not support notifying of tool list changes (required for ${e})`);break;case"notifications/prompts/list_changed":if(!this._capabilities.prompts)throw new Error(`Server does not support notifying of prompt list changes (required for ${e})`);break;case"notifications/elicitation/complete":if(!this._clientCapabilities?.elicitation?.url)throw new Error(`Client does not support URL elicitation (required for ${e})`)}}assertRequestHandlerCapability(e){if(this._capabilities)switch(e){case"completion/complete":if(!this._capabilities.completions)throw new Error(`Server does not support completions (required for ${e})`);break;case"logging/setLevel":if(!this._capabilities.logging)throw new Error(`Server does not support logging (required for ${e})`);break;case"prompts/get":case"prompts/list":if(!this._capabilities.prompts)throw new Error(`Server does not support prompts (required for ${e})`);break;case"resources/list":case"resources/templates/list":case"resources/read":if(!this._capabilities.resources)throw new Error(`Server does not support resources (required for ${e})`);break;case"tools/call":case"tools/list":if(!this._capabilities.tools)throw new Error(`Server does not support tools (required for ${e})`);break;case"tasks/get":case"tasks/list":case"tasks/result":case"tasks/cancel":if(!this._capabilities.tasks)throw new Error(`Server does not support tasks capability (required for ${e})`)}}assertTaskCapability(e){(0,c.assertClientRequestTaskCapability)(this._clientCapabilities?.tasks?.requests,e,"Client")}assertTaskHandlerCapability(e){this._capabilities&&(0,c.assertToolsCallTaskCapability)(this._capabilities.tasks?.requests,e,"Server")}async _oninitialize(e){const t=e.params.protocolVersion;return this._clientCapabilities=e.params.capabilities,this._clientVersion=e.params.clientInfo,{protocolVersion:i.SUPPORTED_PROTOCOL_VERSIONS.includes(t)?t:i.LATEST_PROTOCOL_VERSION,capabilities:this.getCapabilities(),serverInfo:this._serverInfo,...this._instructions&&{instructions:this._instructions}}}getClientCapabilities(){return this._clientCapabilities}getClientVersion(){return this._clientVersion}getCapabilities(){return this._capabilities}async ping(){return this.request({method:"ping"},i.EmptyResultSchema)}async createMessage(e,t){if((e.tools||e.toolChoice)&&!this._clientCapabilities?.sampling?.tools)throw new Error("Client does not support sampling tools capability.");if(e.messages.length>0){const t=e.messages[e.messages.length-1],n=Array.isArray(t.content)?t.content:[t.content],r=n.some(e=>"tool_result"===e.type),i=e.messages.length>1?e.messages[e.messages.length-2]:void 0,o=i?Array.isArray(i.content)?i.content:[i.content]:[],s=o.some(e=>"tool_use"===e.type);if(r){if(n.some(e=>"tool_result"!==e.type))throw new Error("The last message must contain only tool_result content if any is present");if(!s)throw new Error("tool_result blocks are not matching any tool_use from the previous message")}if(s){const e=new Set(o.filter(e=>"tool_use"===e.type).map(e=>e.id)),t=new Set(n.filter(e=>"tool_result"===e.type).map(e=>e.toolUseId));if(e.size!==t.size||![...e].every(e=>t.has(e)))throw new Error("ids of tool_result blocks and tool_use blocks from previous message do not match")}}return e.tools?this.request({method:"sampling/createMessage",params:e},i.CreateMessageResultWithToolsSchema,t):this.request({method:"sampling/createMessage",params:e},i.CreateMessageResultSchema,t)}async elicitInput(e,t){switch(e.mode??"form"){case"url":{if(!this._clientCapabilities?.elicitation?.url)throw new Error("Client does not support url elicitation.");const n=e;return this.request({method:"elicitation/create",params:n},i.ElicitResultSchema,t)}case"form":{if(!this._clientCapabilities?.elicitation?.form)throw new Error("Client does not support form elicitation.");const n="form"===e.mode?e:{...e,mode:"form"},r=await this.request({method:"elicitation/create",params:n},i.ElicitResultSchema,t);if("accept"===r.action&&r.content&&n.requestedSchema)try{const e=this._jsonSchemaValidator.getValidator(n.requestedSchema)(r.content);if(!e.valid)throw new i.McpError(i.ErrorCode.InvalidParams,`Elicitation response content does not match requested schema: ${e.errorMessage}`)}catch(e){if(e instanceof i.McpError)throw e;throw new i.McpError(i.ErrorCode.InternalError,`Error validating elicitation response: ${e instanceof Error?e.message:String(e)}`)}return r}}}createElicitationCompletionNotifier(e,t){if(!this._clientCapabilities?.elicitation?.url)throw new Error("Client does not support URL elicitation (required for notifications/elicitation/complete)");return()=>this.notification({method:"notifications/elicitation/complete",params:{elicitationId:e}},t)}async listRoots(e,t){return this.request({method:"roots/list",params:e},i.ListRootsResultSchema,t)}async sendLoggingMessage(e,t){if(this._capabilities.logging&&!this.isMessageIgnored(e.level,t))return this.notification({method:"notifications/message",params:e})}async sendResourceUpdated(e){return this.notification({method:"notifications/resources/updated",params:e})}async sendResourceListChanged(){return this.notification({method:"notifications/resources/list_changed"})}async sendToolListChanged(){return this.notification({method:"notifications/tools/list_changed"})}async sendPromptListChanged(){return this.notification({method:"notifications/prompts/list_changed"})}}t.Server=u},27668:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.string=function(e){return s._coercedString(a.ZodMiniString,e)},t.number=function(e){return s._coercedNumber(a.ZodMiniNumber,e)},t.boolean=function(e){return s._coercedBoolean(a.ZodMiniBoolean,e)},t.bigint=function(e){return s._coercedBigint(a.ZodMiniBigInt,e)},t.date=function(e){return s._coercedDate(a.ZodMiniDate,e)};const s=o(n(76601)),a=o(n(33))},27687:(e,t,n)=>{"use strict";const r=n(70857),i=n(52018),o=n(25884),{env:s}=process;let a;function c(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function u(e,t){if(0===a)return 0;if(o("color=16m")||o("color=full")||o("color=truecolor"))return 3;if(o("color=256"))return 2;if(e&&!t&&void 0===a)return 0;const n=a||0;if("dumb"===s.TERM)return n;if("win32"===process.platform){const e=r.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in s)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(e=>e in s)||"codeship"===s.CI_NAME?1:n;if("TEAMCITY_VERSION"in s)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(s.TEAMCITY_VERSION)?1:0;if("truecolor"===s.COLORTERM)return 3;if("TERM_PROGRAM"in s){const e=parseInt((s.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(s.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(s.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(s.TERM)||"COLORTERM"in s?1:n}o("no-color")||o("no-colors")||o("color=false")||o("color=never")?a=0:(o("color")||o("colors")||o("color=true")||o("color=always"))&&(a=1),"FORCE_COLOR"in s&&(a="true"===s.FORCE_COLOR?1:"false"===s.FORCE_COLOR?0:0===s.FORCE_COLOR.length?1:Math.min(parseInt(s.FORCE_COLOR,10),3)),e.exports={supportsColor:function(e){return c(u(e,e&&e.isTTY))},stdout:c(u(!0,i.isatty(1))),stderr:c(u(!0,i.isatty(2)))}},28147:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseBooleanDef=void 0,t.parseBooleanDef=function(){return{type:"boolean"}}},28195:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{localeError:a()}};const s=o(n(90523)),a=()=>{const e={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"}};function t(t){return e[t]??null}const n={regex:"입력",email:"이메일 주소",url:"URL",emoji:"이모지",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 날짜시간",date:"ISO 날짜",time:"ISO 시간",duration:"ISO 기간",ipv4:"IPv4 주소",ipv6:"IPv6 주소",cidrv4:"IPv4 범위",cidrv6:"IPv6 범위",base64:"base64 인코딩 문자열",base64url:"base64url 인코딩 문자열",json_string:"JSON 문자열",e164:"E.164 번호",jwt:"JWT",template_literal:"입력"};return e=>{switch(e.code){case"invalid_type":return`잘못된 입력: 예상 타입은 ${e.expected}, 받은 타입은 ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}입니다`;case"invalid_value":return 1===e.values.length?`잘못된 입력: 값은 ${s.stringifyPrimitive(e.values[0])} 이어야 합니다`:`잘못된 옵션: ${s.joinValues(e.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{const n=e.inclusive?"이하":"미만",r="미만"===n?"이어야 합니다":"여야 합니다",i=t(e.origin),o=i?.unit??"요소";return i?`${e.origin??"값"}이 너무 큽니다: ${e.maximum.toString()}${o} ${n}${r}`:`${e.origin??"값"}이 너무 큽니다: ${e.maximum.toString()} ${n}${r}`}case"too_small":{const n=e.inclusive?"이상":"초과",r="이상"===n?"이어야 합니다":"여야 합니다",i=t(e.origin),o=i?.unit??"요소";return i?`${e.origin??"값"}이 너무 작습니다: ${e.minimum.toString()}${o} ${n}${r}`:`${e.origin??"값"}이 너무 작습니다: ${e.minimum.toString()} ${n}${r}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`잘못된 문자열: "${t.prefix}"(으)로 시작해야 합니다`:"ends_with"===t.format?`잘못된 문자열: "${t.suffix}"(으)로 끝나야 합니다`:"includes"===t.format?`잘못된 문자열: "${t.includes}"을(를) 포함해야 합니다`:"regex"===t.format?`잘못된 문자열: 정규식 ${t.pattern} 패턴과 일치해야 합니다`:`잘못된 ${n[t.format]??e.format}`}case"not_multiple_of":return`잘못된 숫자: ${e.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${s.joinValues(e.keys,", ")}`;case"invalid_key":return`잘못된 키: ${e.origin}`;case"invalid_union":default:return"잘못된 입력";case"invalid_element":return`잘못된 값: ${e.origin}`}}}},28208:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.parsedType=void 0,t.default=function(){return{localeError:a()}};const s=o(n(90523));t.parsedType=e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t};const a=()=>{const e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"}};function n(t){return e[t]??null}const r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return e=>{switch(e.code){case"invalid_type":return`Invalid input: expected ${e.expected}, received ${(0,t.parsedType)(e.input)}`;case"invalid_value":return 1===e.values.length?`Invalid input: expected ${s.stringifyPrimitive(e.values[0])}`:`Invalid option: expected one of ${s.joinValues(e.values,"|")}`;case"too_big":{const t=e.inclusive?"<=":"<",r=n(e.origin);return r?`Too big: expected ${e.origin??"value"} to have ${t}${e.maximum.toString()} ${r.unit??"elements"}`:`Too big: expected ${e.origin??"value"} to be ${t}${e.maximum.toString()}`}case"too_small":{const t=e.inclusive?">=":">",r=n(e.origin);return r?`Too small: expected ${e.origin} to have ${t}${e.minimum.toString()} ${r.unit}`:`Too small: expected ${e.origin} to be ${t}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Invalid string: must start with "${t.prefix}"`:"ends_with"===t.format?`Invalid string: must end with "${t.suffix}"`:"includes"===t.format?`Invalid string: must include "${t.includes}"`:"regex"===t.format?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${r[t.format]??e.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${e.divisor}`;case"unrecognized_keys":return`Unrecognized key${e.keys.length>1?"s":""}: ${s.joinValues(e.keys,", ")}`;case"invalid_key":return`Invalid key in ${e.origin}`;case"invalid_union":default:return"Invalid input";case"invalid_element":return`Invalid value in ${e.origin}`}}}},28237:(e,t,n)=>{"use strict";const{tokenChars:r}=n(95880);e.exports={parse:function(e){const t=new Set;let n=-1,i=-1,o=0;for(;o<e.length;o++){const s=e.charCodeAt(o);if(-1===i&&1===r[s])-1===n&&(n=o);else if(0===o||32!==s&&9!==s){if(44!==s)throw new SyntaxError(`Unexpected character at index ${o}`);{if(-1===n)throw new SyntaxError(`Unexpected character at index ${o}`);-1===i&&(i=o);const r=e.slice(n,i);if(t.has(r))throw new SyntaxError(`The "${r}" subprotocol is duplicated`);t.add(r),n=i=-1}}else-1===i&&-1!==n&&(i=o)}if(-1===n||-1!==i)throw new SyntaxError("Unexpected end of input");const s=e.slice(n,o);if(t.has(s))throw new SyntaxError(`The "${s}" subprotocol is duplicated`);return t.add(s),t}}},28247:e=>{e.exports=function(e){return t&&Buffer.isBuffer(e)||n&&(e instanceof ArrayBuffer||r(e))};var t="function"==typeof Buffer&&"function"==typeof Buffer.isBuffer,n="function"==typeof ArrayBuffer,r=function(e){return"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer}},28633:function(e,t,n){"use strict";var r,i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),s=0;s<n.length;s++)"default"!==n[s]&&i(t,e,n[s]);return o(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.injectable=function(){return function(e){if(Reflect.hasOwnMetadata(c.PARAM_TYPES,e))throw new Error(a.DUPLICATED_INJECTABLE_DECORATOR);const t=Reflect.getMetadata(c.DESIGN_PARAM_TYPES,e)||[];return Reflect.defineMetadata(c.PARAM_TYPES,t,e),e}};const a=s(n(35007)),c=s(n(19466))},28650:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertConstructorMetadataArrayFilled=function(e,t){const n=[];for(let e=0;e<t.length;++e)void 0===t[e]&&n.push(e);if(n.length>0)throw new r.InversifyCoreError(i.InversifyCoreErrorKind.missingInjectionDecorator,`Found unexpected missing metadata on type "${e.name}" at constructor indexes "${n.join('", "')}".\n\nAre you using @inject, @multiInject or @unmanaged decorators at those indexes?\n\nIf you're using typescript and want to rely on auto injection, set "emitDecoratorMetadata" compiler option to true`)};const r=n(21773),i=n(94931)},28651:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ZodError=t.quotelessJson=t.ZodIssueCode=void 0;const r=n(92034);t.ZodIssueCode=r.util.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),t.quotelessJson=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class i extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){const t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(const i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(r);else if("invalid_return_type"===i.code)r(i.returnTypeError);else if("invalid_arguments"===i.code)r(i.argumentsError);else if(0===i.path.length)n._errors.push(t(i));else{let e=n,r=0;for(;r<i.path.length;){const n=i.path[r];r===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(this),n}static assert(e){if(!(e instanceof i))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,r.util.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){const t={},n=[];for(const r of this.issues)if(r.path.length>0){const n=r.path[0];t[n]=t[n]||[],t[n].push(e(r))}else n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}t.ZodError=i,i.create=e=>new i(e)},29122:function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionServiceProvider=void 0;const s=n(52650),a=n(62129),c=n(55853),u=n(46908),l=n(76379);let d=class{constructor(e,t,n){this.configRepositoryService=e,this.connectionServiceAdmin4=t,this.connectionServiceAdmin5=n}isConnectionServiceAvailable(){return this.configRepositoryService.config&&this.configRepositoryService.config.adminVersion&&this.configRepositoryService.config.adminVersion!==a.AdminVersion.unknown}getConnectionService(){const e=this.configRepositoryService.config.adminVersion;if(e===a.AdminVersion.admin4)return this.connectionServiceAdmin4;if(e===a.AdminVersion.admin5||e===a.AdminVersion.admin6||e===a.AdminVersion.admin7)return this.connectionServiceAdmin5;throw new Error(`Cannot determine which connection service to use. Configured admin version: ${e}`)}};t.ConnectionServiceProvider=d,t.ConnectionServiceProvider=d=r([(0,s.injectable)(),o(0,(0,s.inject)(c.default.services.configRepository)),o(1,(0,s.inject)(c.default.services.connectionAdmin4)),o(2,(0,s.inject)(c.default.services.connectionAdmin5)),i("design:paramtypes",[Object,u.ConnectionServiceAdmin4,l.ConnectionServiceAdmin5])],d)},29140:(e,t)=>{t.encode=function(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t},t.decode=function(e){for(var t={},n=e.split("&"),r=0,i=n.length;r<i;r++){var o=n[r].split("=");t[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return t}},29560:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReadBuffer=t.STDIO_DEFAULT_MAX_BUFFER_SIZE=void 0,t.deserializeMessage=i,t.serializeMessage=function(e){return JSON.stringify(e)+"\n"};const r=n(1294);function i(e){return r.JSONRPCMessageSchema.parse(JSON.parse(e))}t.STDIO_DEFAULT_MAX_BUFFER_SIZE=10485760,t.ReadBuffer=class{constructor(e){this._maxBufferSize=e?.maxBufferSize??t.STDIO_DEFAULT_MAX_BUFFER_SIZE}append(e){if((this._buffer?.length??0)+e.length>this._maxBufferSize)throw this.clear(),new Error(`ReadBuffer exceeded maximum size of ${this._maxBufferSize} bytes`);this._buffer=this._buffer?Buffer.concat([this._buffer,e]):e}readMessage(){if(!this._buffer)return null;const e=this._buffer.indexOf("\n");if(-1===e)return null;const t=this._buffer.toString("utf8",0,e).replace(/\r$/,"");return this._buffer=this._buffer.subarray(e+1),i(t)}clear(){this._buffer=void 0}}},29606:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseDefaultDef=void 0;const r=n(73524);t.parseDefaultDef=function(e,t){return{...(0,r.parseDef)(e.innerType._def,t),default:e.defaultValue()}}},30340:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(66596),i=n(99048),o={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>r._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:n,data:o,it:s}=e;if((0,i.alwaysValidSchema)(s,n))return;const a=t.name("valid");t.forIn("key",o,n=>{e.setParams({propertyName:n}),e.subschema({keyword:"propertyNames",data:n,dataTypes:["string"],propertyName:n,compositeRule:!0},a),t.if((0,r.not)(a),()=>{e.error(!0),s.allErrors||t.break()})}),e.ok(a)}};t.default=o},30442:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_CONNECTION_HINT=void 0,t.ensureConnected=function(e,n=t.DEFAULT_CONNECTION_HINT){if(!e.connection.isConnected())return{code:"not_connected",message:"The ioBroker server is not connected.",hint:n}},t.DEFAULT_CONNECTION_HINT="Ask the user to run the command 'iobroker: Connect to ioBroker' and retry afterwards."},30655:e=>{"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},30737:(e,t,n)=>{"use strict";var r=n(80801),i=n(39023),o=n(16928),s=n(58611),a=n(65692),c=n(87016).parse,u=n(79896),l=n(2203).Stream,d=n(76982),p=n(86049),f=n(21873),m=n(49605),h=n(9957),v=n(41362);function g(e){if(!(this instanceof g))return new g(e);for(var t in this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],r.call(this),e=e||{})this[t]=e[t]}i.inherits(g,r),g.LINE_BREAK="\r\n",g.DEFAULT_CONTENT_TYPE="application/octet-stream",g.prototype.append=function(e,t,n){"string"==typeof(n=n||{})&&(n={filename:n});var i=r.prototype.append.bind(this);if("number"!=typeof t&&null!=t||(t=String(t)),Array.isArray(t))this._error(new Error("Arrays are not supported."));else{var o=this._multiPartHeader(e,t,n),s=this._multiPartFooter();i(o),i(t),i(s),this._trackLength(o,t,n)}},g.prototype._trackLength=function(e,t,n){var r=0;null!=n.knownLength?r+=Number(n.knownLength):Buffer.isBuffer(t)?r=t.length:"string"==typeof t&&(r=Buffer.byteLength(t)),this._valueLength+=r,this._overheadLength+=Buffer.byteLength(e)+g.LINE_BREAK.length,t&&(t.path||t.readable&&h(t,"httpVersion")||t instanceof l)&&(n.knownLength||this._valuesToMeasure.push(t))},g.prototype._lengthRetriever=function(e,t){h(e,"fd")?null!=e.end&&e.end!=1/0&&null!=e.start?t(null,e.end+1-(e.start?e.start:0)):u.stat(e.path,function(n,r){if(n)t(n);else{var i=r.size-(e.start?e.start:0);t(null,i)}}):h(e,"httpVersion")?t(null,Number(e.headers["content-length"])):h(e,"httpModule")?(e.on("response",function(n){e.pause(),t(null,Number(n.headers["content-length"]))}),e.resume()):t("Unknown stream")},g.prototype._multiPartHeader=function(e,t,n){if("string"==typeof n.header)return n.header;var r,i=this._getContentDisposition(t,n),o=this._getContentType(t,n),s="",a={"Content-Disposition":["form-data",'name="'+e+'"'].concat(i||[]),"Content-Type":[].concat(o||[])};for(var c in"object"==typeof n.header&&v(a,n.header),a)if(h(a,c)){if(null==(r=a[c]))continue;Array.isArray(r)||(r=[r]),r.length&&(s+=c+": "+r.join("; ")+g.LINE_BREAK)}return"--"+this.getBoundary()+g.LINE_BREAK+s+g.LINE_BREAK},g.prototype._getContentDisposition=function(e,t){var n;if("string"==typeof t.filepath?n=o.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e&&(e.name||e.path)?n=o.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&h(e,"httpVersion")&&(n=o.basename(e.client._httpMessage.path||"")),n)return'filename="'+n+'"'},g.prototype._getContentType=function(e,t){var n=t.contentType;return!n&&e&&e.name&&(n=p.lookup(e.name)),!n&&e&&e.path&&(n=p.lookup(e.path)),!n&&e&&e.readable&&h(e,"httpVersion")&&(n=e.headers["content-type"]),n||!t.filepath&&!t.filename||(n=p.lookup(t.filepath||t.filename)),!n&&e&&"object"==typeof e&&(n=g.DEFAULT_CONTENT_TYPE),n},g.prototype._multiPartFooter=function(){return function(e){var t=g.LINE_BREAK;0===this._streams.length&&(t+=this._lastBoundary()),e(t)}.bind(this)},g.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+g.LINE_BREAK},g.prototype.getHeaders=function(e){var t,n={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)h(e,t)&&(n[t.toLowerCase()]=e[t]);return n},g.prototype.setBoundary=function(e){if("string"!=typeof e)throw new TypeError("FormData boundary must be a string");this._boundary=e},g.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},g.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),n=0,r=this._streams.length;n<r;n++)"function"!=typeof this._streams[n]&&(e=Buffer.isBuffer(this._streams[n])?Buffer.concat([e,this._streams[n]]):Buffer.concat([e,Buffer.from(this._streams[n])]),"string"==typeof this._streams[n]&&this._streams[n].substring(2,t.length+2)===t||(e=Buffer.concat([e,Buffer.from(g.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])},g.prototype._generateBoundary=function(){this._boundary="--------------------------"+d.randomBytes(12).toString("hex")},g.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),e},g.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e},g.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;this._streams.length&&(t+=this._lastBoundary().length),this._valuesToMeasure.length?f.parallel(this._valuesToMeasure,this._lengthRetriever,function(n,r){n?e(n):(r.forEach(function(e){t+=e}),e(null,t))}):process.nextTick(e.bind(this,null,t))},g.prototype.submit=function(e,t){var n,r,i={method:"post"};return"string"==typeof e?(e=c(e),r=v({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},i)):(r=v(e,i)).port||(r.port="https:"===r.protocol?443:80),r.headers=this.getHeaders(e.headers),n="https:"===r.protocol?a.request(r):s.request(r),this.getLength(function(e,r){if(e&&"Unknown stream"!==e)this._error(e);else if(r&&n.setHeader("Content-Length",r),this.pipe(n),t){var i,o=function(e,r){return n.removeListener("error",o),n.removeListener("response",i),t.call(this,e,r)};i=o.bind(this,null),n.on("error",o),n.on("response",i)}}.bind(this)),n},g.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))},g.prototype.toString=function(){return"[object FormData]"},m(g,"FormData"),e.exports=g},31114:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseNumberDef=void 0;const r=n(98950);t.parseNumberDef=function(e,t){const n={type:"number"};if(!e.checks)return n;for(const i of e.checks)switch(i.kind){case"int":n.type="integer",(0,r.addErrorMessage)(n,"type",i.message,t);break;case"min":"jsonSchema7"===t.target?i.inclusive?(0,r.setResponseValueAndErrors)(n,"minimum",i.value,i.message,t):(0,r.setResponseValueAndErrors)(n,"exclusiveMinimum",i.value,i.message,t):(i.inclusive||(n.exclusiveMinimum=!0),(0,r.setResponseValueAndErrors)(n,"minimum",i.value,i.message,t));break;case"max":"jsonSchema7"===t.target?i.inclusive?(0,r.setResponseValueAndErrors)(n,"maximum",i.value,i.message,t):(0,r.setResponseValueAndErrors)(n,"exclusiveMaximum",i.value,i.message,t):(i.inclusive||(n.exclusiveMaximum=!0),(0,r.setResponseValueAndErrors)(n,"maximum",i.value,i.message,t));break;case"multipleOf":(0,r.setResponseValueAndErrors)(n,"multipleOf",i.value,i.message,t)}return n}},31234:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(66596),i=n(99048),o=n(85311),s={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>r._`{allowedValue: ${e}}`},code(e){const{gen:t,data:n,$data:s,schemaCode:a,schema:c}=e;s||c&&"object"==typeof c?e.fail$data(r._`!${(0,i.useFunc)(t,o.default)}(${n}, ${a})`):e.fail(r._`${c} !== ${n}`)}};t.default=s},31701:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.z=void 0;const a=o(n(54738));t.z=a,s(n(54738),t)},32017:e=>{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!==i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!==i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!==i--;){var s=o[i];if(!e(t[s],n[s]))return!1}return!0}return t!=t&&n!=n}},32465:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.selectParser=void 0;const r=n(19164),i=n(62909),o=n(98598),s=n(87236),a=n(28147),c=n(46163),u=n(16260),l=n(85187),d=n(29606),p=n(68385),f=n(76750),m=n(40686),h=n(34836),v=n(39137),g=n(96773),y=n(63237),_=n(37294),b=n(41854),x=n(31114),w=n(46172),S=n(65867),O=n(79225),k=n(93858),$=n(87054),P=n(34519),E=n(73178),T=n(22793),C=n(97987),I=n(78348),j=n(95973),R=n(89729);t.selectParser=(e,t,n)=>{switch(t){case r.ZodFirstPartyTypeKind.ZodString:return(0,E.parseStringDef)(e,n);case r.ZodFirstPartyTypeKind.ZodNumber:return(0,x.parseNumberDef)(e,n);case r.ZodFirstPartyTypeKind.ZodObject:return(0,w.parseObjectDef)(e,n);case r.ZodFirstPartyTypeKind.ZodBigInt:return(0,s.parseBigintDef)(e,n);case r.ZodFirstPartyTypeKind.ZodBoolean:return(0,a.parseBooleanDef)();case r.ZodFirstPartyTypeKind.ZodDate:return(0,l.parseDateDef)(e,n);case r.ZodFirstPartyTypeKind.ZodUndefined:return(0,C.parseUndefinedDef)(n);case r.ZodFirstPartyTypeKind.ZodNull:return(0,_.parseNullDef)(n);case r.ZodFirstPartyTypeKind.ZodArray:return(0,o.parseArrayDef)(e,n);case r.ZodFirstPartyTypeKind.ZodUnion:case r.ZodFirstPartyTypeKind.ZodDiscriminatedUnion:return(0,I.parseUnionDef)(e,n);case r.ZodFirstPartyTypeKind.ZodIntersection:return(0,m.parseIntersectionDef)(e,n);case r.ZodFirstPartyTypeKind.ZodTuple:return(0,T.parseTupleDef)(e,n);case r.ZodFirstPartyTypeKind.ZodRecord:return(0,$.parseRecordDef)(e,n);case r.ZodFirstPartyTypeKind.ZodLiteral:return(0,h.parseLiteralDef)(e,n);case r.ZodFirstPartyTypeKind.ZodEnum:return(0,f.parseEnumDef)(e);case r.ZodFirstPartyTypeKind.ZodNativeEnum:return(0,g.parseNativeEnumDef)(e);case r.ZodFirstPartyTypeKind.ZodNullable:return(0,b.parseNullableDef)(e,n);case r.ZodFirstPartyTypeKind.ZodOptional:return(0,S.parseOptionalDef)(e,n);case r.ZodFirstPartyTypeKind.ZodMap:return(0,v.parseMapDef)(e,n);case r.ZodFirstPartyTypeKind.ZodSet:return(0,P.parseSetDef)(e,n);case r.ZodFirstPartyTypeKind.ZodLazy:return()=>e.getter()._def;case r.ZodFirstPartyTypeKind.ZodPromise:return(0,k.parsePromiseDef)(e,n);case r.ZodFirstPartyTypeKind.ZodNaN:case r.ZodFirstPartyTypeKind.ZodNever:return(0,y.parseNeverDef)(n);case r.ZodFirstPartyTypeKind.ZodEffects:return(0,p.parseEffectsDef)(e,n);case r.ZodFirstPartyTypeKind.ZodAny:return(0,i.parseAnyDef)(n);case r.ZodFirstPartyTypeKind.ZodUnknown:return(0,j.parseUnknownDef)(n);case r.ZodFirstPartyTypeKind.ZodDefault:return(0,d.parseDefaultDef)(e,n);case r.ZodFirstPartyTypeKind.ZodBranded:return(0,c.parseBrandedDef)(e,n);case r.ZodFirstPartyTypeKind.ZodReadonly:return(0,R.parseReadonlyDef)(e,n);case r.ZodFirstPartyTypeKind.ZodCatch:return(0,u.parseCatchDef)(e,n);case r.ZodFirstPartyTypeKind.ZodPipeline:return(0,O.parsePipelineDef)(e,n);case r.ZodFirstPartyTypeKind.ZodFunction:case r.ZodFirstPartyTypeKind.ZodVoid:case r.ZodFirstPartyTypeKind.ZodSymbol:default:return}}},32564:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.$ZodCheckOverwrite=t.$ZodCheckMimeType=t.$ZodCheckProperty=t.$ZodCheckEndsWith=t.$ZodCheckStartsWith=t.$ZodCheckIncludes=t.$ZodCheckUpperCase=t.$ZodCheckLowerCase=t.$ZodCheckRegex=t.$ZodCheckStringFormat=t.$ZodCheckLengthEquals=t.$ZodCheckMinLength=t.$ZodCheckMaxLength=t.$ZodCheckSizeEquals=t.$ZodCheckMinSize=t.$ZodCheckMaxSize=t.$ZodCheckBigIntFormat=t.$ZodCheckNumberFormat=t.$ZodCheckMultipleOf=t.$ZodCheckGreaterThan=t.$ZodCheckLessThan=t.$ZodCheck=void 0;const s=o(n(98706)),a=o(n(91988)),c=o(n(90523));t.$ZodCheck=s.$constructor("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])});const u={number:"number",bigint:"bigint",object:"date"};function l(e,t,n){e.issues.length&&t.issues.push(...c.prefixIssues(n,e.issues))}t.$ZodCheckLessThan=s.$constructor("$ZodCheckLessThan",(e,n)=>{t.$ZodCheck.init(e,n);const r=u[typeof n.value];e._zod.onattach.push(e=>{const t=e._zod.bag,r=(n.inclusive?t.maximum:t.exclusiveMaximum)??Number.POSITIVE_INFINITY;n.value<r&&(n.inclusive?t.maximum=n.value:t.exclusiveMaximum=n.value)}),e._zod.check=t=>{(n.inclusive?t.value<=n.value:t.value<n.value)||t.issues.push({origin:r,code:"too_big",maximum:n.value,input:t.value,inclusive:n.inclusive,inst:e,continue:!n.abort})}}),t.$ZodCheckGreaterThan=s.$constructor("$ZodCheckGreaterThan",(e,n)=>{t.$ZodCheck.init(e,n);const r=u[typeof n.value];e._zod.onattach.push(e=>{const t=e._zod.bag,r=(n.inclusive?t.minimum:t.exclusiveMinimum)??Number.NEGATIVE_INFINITY;n.value>r&&(n.inclusive?t.minimum=n.value:t.exclusiveMinimum=n.value)}),e._zod.check=t=>{(n.inclusive?t.value>=n.value:t.value>n.value)||t.issues.push({origin:r,code:"too_small",minimum:n.value,input:t.value,inclusive:n.inclusive,inst:e,continue:!n.abort})}}),t.$ZodCheckMultipleOf=s.$constructor("$ZodCheckMultipleOf",(e,n)=>{t.$ZodCheck.init(e,n),e._zod.onattach.push(e=>{var t;(t=e._zod.bag).multipleOf??(t.multipleOf=n.value)}),e._zod.check=t=>{if(typeof t.value!=typeof n.value)throw new Error("Cannot mix number and bigint in multiple_of check.");("bigint"==typeof t.value?t.value%n.value===BigInt(0):0===c.floatSafeRemainder(t.value,n.value))||t.issues.push({origin:typeof t.value,code:"not_multiple_of",divisor:n.value,input:t.value,inst:e,continue:!n.abort})}}),t.$ZodCheckNumberFormat=s.$constructor("$ZodCheckNumberFormat",(e,n)=>{t.$ZodCheck.init(e,n),n.format=n.format||"float64";const r=n.format?.includes("int"),i=r?"int":"number",[o,s]=c.NUMBER_FORMAT_RANGES[n.format];e._zod.onattach.push(e=>{const t=e._zod.bag;t.format=n.format,t.minimum=o,t.maximum=s,r&&(t.pattern=a.integer)}),e._zod.check=t=>{const a=t.value;if(r){if(!Number.isInteger(a))return void t.issues.push({expected:i,format:n.format,code:"invalid_type",input:a,inst:e});if(!Number.isSafeInteger(a))return void(a>0?t.issues.push({input:a,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,continue:!n.abort}):t.issues.push({input:a,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,continue:!n.abort}))}a<o&&t.issues.push({origin:"number",input:a,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!n.abort}),a>s&&t.issues.push({origin:"number",input:a,code:"too_big",maximum:s,inst:e})}}),t.$ZodCheckBigIntFormat=s.$constructor("$ZodCheckBigIntFormat",(e,n)=>{t.$ZodCheck.init(e,n);const[r,i]=c.BIGINT_FORMAT_RANGES[n.format];e._zod.onattach.push(e=>{const t=e._zod.bag;t.format=n.format,t.minimum=r,t.maximum=i}),e._zod.check=t=>{const o=t.value;o<r&&t.issues.push({origin:"bigint",input:o,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!n.abort}),o>i&&t.issues.push({origin:"bigint",input:o,code:"too_big",maximum:i,inst:e})}}),t.$ZodCheckMaxSize=s.$constructor("$ZodCheckMaxSize",(e,n)=>{var r;t.$ZodCheck.init(e,n),(r=e._zod.def).when??(r.when=e=>{const t=e.value;return!c.nullish(t)&&void 0!==t.size}),e._zod.onattach.push(e=>{const t=e._zod.bag.maximum??Number.POSITIVE_INFINITY;n.maximum<t&&(e._zod.bag.maximum=n.maximum)}),e._zod.check=t=>{const r=t.value;r.size<=n.maximum||t.issues.push({origin:c.getSizableOrigin(r),code:"too_big",maximum:n.maximum,input:r,inst:e,continue:!n.abort})}}),t.$ZodCheckMinSize=s.$constructor("$ZodCheckMinSize",(e,n)=>{var r;t.$ZodCheck.init(e,n),(r=e._zod.def).when??(r.when=e=>{const t=e.value;return!c.nullish(t)&&void 0!==t.size}),e._zod.onattach.push(e=>{const t=e._zod.bag.minimum??Number.NEGATIVE_INFINITY;n.minimum>t&&(e._zod.bag.minimum=n.minimum)}),e._zod.check=t=>{const r=t.value;r.size>=n.minimum||t.issues.push({origin:c.getSizableOrigin(r),code:"too_small",minimum:n.minimum,input:r,inst:e,continue:!n.abort})}}),t.$ZodCheckSizeEquals=s.$constructor("$ZodCheckSizeEquals",(e,n)=>{var r;t.$ZodCheck.init(e,n),(r=e._zod.def).when??(r.when=e=>{const t=e.value;return!c.nullish(t)&&void 0!==t.size}),e._zod.onattach.push(e=>{const t=e._zod.bag;t.minimum=n.size,t.maximum=n.size,t.size=n.size}),e._zod.check=t=>{const r=t.value,i=r.size;if(i===n.size)return;const o=i>n.size;t.issues.push({origin:c.getSizableOrigin(r),...o?{code:"too_big",maximum:n.size}:{code:"too_small",minimum:n.size},inclusive:!0,exact:!0,input:t.value,inst:e,continue:!n.abort})}}),t.$ZodCheckMaxLength=s.$constructor("$ZodCheckMaxLength",(e,n)=>{var r;t.$ZodCheck.init(e,n),(r=e._zod.def).when??(r.when=e=>{const t=e.value;return!c.nullish(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{const t=e._zod.bag.maximum??Number.POSITIVE_INFINITY;n.maximum<t&&(e._zod.bag.maximum=n.maximum)}),e._zod.check=t=>{const r=t.value;if(r.length<=n.maximum)return;const i=c.getLengthableOrigin(r);t.issues.push({origin:i,code:"too_big",maximum:n.maximum,inclusive:!0,input:r,inst:e,continue:!n.abort})}}),t.$ZodCheckMinLength=s.$constructor("$ZodCheckMinLength",(e,n)=>{var r;t.$ZodCheck.init(e,n),(r=e._zod.def).when??(r.when=e=>{const t=e.value;return!c.nullish(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{const t=e._zod.bag.minimum??Number.NEGATIVE_INFINITY;n.minimum>t&&(e._zod.bag.minimum=n.minimum)}),e._zod.check=t=>{const r=t.value;if(r.length>=n.minimum)return;const i=c.getLengthableOrigin(r);t.issues.push({origin:i,code:"too_small",minimum:n.minimum,inclusive:!0,input:r,inst:e,continue:!n.abort})}}),t.$ZodCheckLengthEquals=s.$constructor("$ZodCheckLengthEquals",(e,n)=>{var r;t.$ZodCheck.init(e,n),(r=e._zod.def).when??(r.when=e=>{const t=e.value;return!c.nullish(t)&&void 0!==t.length}),e._zod.onattach.push(e=>{const t=e._zod.bag;t.minimum=n.length,t.maximum=n.length,t.length=n.length}),e._zod.check=t=>{const r=t.value,i=r.length;if(i===n.length)return;const o=c.getLengthableOrigin(r),s=i>n.length;t.issues.push({origin:o,...s?{code:"too_big",maximum:n.length}:{code:"too_small",minimum:n.length},inclusive:!0,exact:!0,input:t.value,inst:e,continue:!n.abort})}}),t.$ZodCheckStringFormat=s.$constructor("$ZodCheckStringFormat",(e,n)=>{var r,i;t.$ZodCheck.init(e,n),e._zod.onattach.push(e=>{const t=e._zod.bag;t.format=n.format,n.pattern&&(t.patterns??(t.patterns=new Set),t.patterns.add(n.pattern))}),n.pattern?(r=e._zod).check??(r.check=t=>{n.pattern.lastIndex=0,n.pattern.test(t.value)||t.issues.push({origin:"string",code:"invalid_format",format:n.format,input:t.value,...n.pattern?{pattern:n.pattern.toString()}:{},inst:e,continue:!n.abort})}):(i=e._zod).check??(i.check=()=>{})}),t.$ZodCheckRegex=s.$constructor("$ZodCheckRegex",(e,n)=>{t.$ZodCheckStringFormat.init(e,n),e._zod.check=t=>{n.pattern.lastIndex=0,n.pattern.test(t.value)||t.issues.push({origin:"string",code:"invalid_format",format:"regex",input:t.value,pattern:n.pattern.toString(),inst:e,continue:!n.abort})}}),t.$ZodCheckLowerCase=s.$constructor("$ZodCheckLowerCase",(e,n)=>{n.pattern??(n.pattern=a.lowercase),t.$ZodCheckStringFormat.init(e,n)}),t.$ZodCheckUpperCase=s.$constructor("$ZodCheckUpperCase",(e,n)=>{n.pattern??(n.pattern=a.uppercase),t.$ZodCheckStringFormat.init(e,n)}),t.$ZodCheckIncludes=s.$constructor("$ZodCheckIncludes",(e,n)=>{t.$ZodCheck.init(e,n);const r=c.escapeRegex(n.includes),i=new RegExp("number"==typeof n.position?`^.{${n.position}}${r}`:r);n.pattern=i,e._zod.onattach.push(e=>{const t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(i)}),e._zod.check=t=>{t.value.includes(n.includes,n.position)||t.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:n.includes,input:t.value,inst:e,continue:!n.abort})}}),t.$ZodCheckStartsWith=s.$constructor("$ZodCheckStartsWith",(e,n)=>{t.$ZodCheck.init(e,n);const r=new RegExp(`^${c.escapeRegex(n.prefix)}.*`);n.pattern??(n.pattern=r),e._zod.onattach.push(e=>{const t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=t=>{t.value.startsWith(n.prefix)||t.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:n.prefix,input:t.value,inst:e,continue:!n.abort})}}),t.$ZodCheckEndsWith=s.$constructor("$ZodCheckEndsWith",(e,n)=>{t.$ZodCheck.init(e,n);const r=new RegExp(`.*${c.escapeRegex(n.suffix)}$`);n.pattern??(n.pattern=r),e._zod.onattach.push(e=>{const t=e._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=t=>{t.value.endsWith(n.suffix)||t.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:n.suffix,input:t.value,inst:e,continue:!n.abort})}}),t.$ZodCheckProperty=s.$constructor("$ZodCheckProperty",(e,n)=>{t.$ZodCheck.init(e,n),e._zod.check=e=>{const t=n.schema._zod.run({value:e.value[n.property],issues:[]},{});if(t instanceof Promise)return t.then(t=>l(t,e,n.property));l(t,e,n.property)}}),t.$ZodCheckMimeType=s.$constructor("$ZodCheckMimeType",(e,n)=>{t.$ZodCheck.init(e,n);const r=new Set(n.mime);e._zod.onattach.push(e=>{e._zod.bag.mime=n.mime}),e._zod.check=t=>{r.has(t.value.type)||t.issues.push({code:"invalid_value",values:n.mime,input:t.value.type,inst:e})}}),t.$ZodCheckOverwrite=s.$constructor("$ZodCheckOverwrite",(e,n)=>{t.$ZodCheck.init(e,n),e._zod.check=e=>{e.value=n.tx(e.value)}})},32614:e=>{"use strict";const t=["nodebuffer","arraybuffer","fragments"],n="undefined"!=typeof Blob;n&&t.push("blob"),e.exports={BINARY_TYPES:t,EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",hasBlob:n,kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:()=>{}}},33279:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.coerce=t.iso=t.ZodISODuration=t.ZodISOTime=t.ZodISODate=t.ZodISODateTime=t.locales=t.NEVER=t.TimePrecision=t.toJSONSchema=t.flattenError=t.formatError=t.prettifyError=t.treeifyError=t.regexes=t.clone=t.$brand=t.$input=t.$output=t.function=t.config=t.registry=t.globalRegistry=t.core=void 0,t.core=o(n(76601)),s(n(99874),t),s(n(56549),t),s(n(79299),t),s(n(48035),t),s(n(72392),t);const c=n(76601),u=a(n(28208));(0,c.config)((0,u.default)());var l=n(76601);Object.defineProperty(t,"globalRegistry",{enumerable:!0,get:function(){return l.globalRegistry}}),Object.defineProperty(t,"registry",{enumerable:!0,get:function(){return l.registry}}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return l.config}}),Object.defineProperty(t,"function",{enumerable:!0,get:function(){return l.function}}),Object.defineProperty(t,"$output",{enumerable:!0,get:function(){return l.$output}}),Object.defineProperty(t,"$input",{enumerable:!0,get:function(){return l.$input}}),Object.defineProperty(t,"$brand",{enumerable:!0,get:function(){return l.$brand}}),Object.defineProperty(t,"clone",{enumerable:!0,get:function(){return l.clone}}),Object.defineProperty(t,"regexes",{enumerable:!0,get:function(){return l.regexes}}),Object.defineProperty(t,"treeifyError",{enumerable:!0,get:function(){return l.treeifyError}}),Object.defineProperty(t,"prettifyError",{enumerable:!0,get:function(){return l.prettifyError}}),Object.defineProperty(t,"formatError",{enumerable:!0,get:function(){return l.formatError}}),Object.defineProperty(t,"flattenError",{enumerable:!0,get:function(){return l.flattenError}}),Object.defineProperty(t,"toJSONSchema",{enumerable:!0,get:function(){return l.toJSONSchema}}),Object.defineProperty(t,"TimePrecision",{enumerable:!0,get:function(){return l.TimePrecision}}),Object.defineProperty(t,"NEVER",{enumerable:!0,get:function(){return l.NEVER}}),t.locales=o(n(45167));var d=n(44725);Object.defineProperty(t,"ZodISODateTime",{enumerable:!0,get:function(){return d.ZodISODateTime}}),Object.defineProperty(t,"ZodISODate",{enumerable:!0,get:function(){return d.ZodISODate}}),Object.defineProperty(t,"ZodISOTime",{enumerable:!0,get:function(){return d.ZodISOTime}}),Object.defineProperty(t,"ZodISODuration",{enumerable:!0,get:function(){return d.ZodISODuration}}),t.iso=o(n(44725)),t.coerce=o(n(39633))},33353:function(e,t,n){"use strict";var r,i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),s=0;s<n.length;s++)"default"!==n[s]&&i(t,e,n[s]);return o(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.decorate=function(e,t,n){"number"==typeof n?f([m(n,e)],t):"string"==typeof n?Reflect.decorate([e],t,n):f([e],t)},t.tagParameter=l,t.tagProperty=d,t.createTaggedDecorator=function(e){return(t,n,r)=>{"number"==typeof r?l(t,n,r,e):d(t,n,e)}};const a=s(n(35007)),c=s(n(19466)),u=n(48833);function l(e,t,n,r){!function(e){if(void 0!==e)throw new Error(a.INVALID_DECORATOR_OPERATION)}(t),p(c.TAGGED,e,n.toString(),r)}function d(e,t,n){if(void 0!==e.prototype)throw new Error(a.INVALID_DECORATOR_OPERATION);p(c.TAGGED_PROP,e.constructor,t,n)}function p(e,t,n,r){const i=function(e){let t=[];if(Array.isArray(e)){t=e;const n=(0,u.getFirstArrayDuplicate)(t.map(e=>e.key));if(void 0!==n)throw new Error(`${a.DUPLICATED_METADATA} ${n.toString()}`)}else t=[e];return t}(r);let o={};Reflect.hasOwnMetadata(e,t)&&(o=Reflect.getMetadata(e,t));let s=o[n];if(void 0===s)s=[];else for(const e of s)if(i.some(t=>t.key===e.key))throw new Error(`${a.DUPLICATED_METADATA} ${e.key.toString()}`);s.push(...i),o[n]=s,Reflect.defineMetadata(e,o,t)}function f(e,t){Reflect.decorate(e,t)}function m(e,t){return function(n,r){t(n,r,e)}}},33510:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.REMOTE_CONNECTION_HINT=void 0,t.ensureRemoteConnected=function(e){return(0,s.ensureConnected)(e,t.REMOTE_CONNECTION_HINT)},t.scriptIdOf=c,t.scriptNameOf=u,t.toScriptSummary=function(e){var t;return{scriptId:c(e),name:u(e),engineType:`${null!==(t=e.common.engineType)&&void 0!==t?t:""}`,enabled:!0===e.common.enabled}},t.toDirectoryDto=function(e){var t,n;const r=`${e._id}`;return{id:r,name:null!==(n=null===(t=e.common)||void 0===t?void 0:t.name)&&void 0!==n?n:r}},t.findDirectory=function(e,t){return t===o.ScriptId.rootId?e.scripts.getRootDirectory():e.scripts.getAllDirectories().find(e=>`${e._id}`===t)},t.allDirectories=function(e){const t=e.scripts.getAllDirectories().slice(),n=e.scripts.getRootDirectory();return t.some(e=>`${e._id}`==`${n._id}`)||t.unshift(n),t},t.fileExtensionOf=function(e){var t,n;return null!==(n=null===(t=(0,i.getEngineTypeInfo)(e))||void 0===t?void 0:t.fileExtension)&&void 0!==n?n:"txt"},t.defaultScript=function(e,t,n){const r=o.ScriptId.sanitizeId(e);return{_id:r,common:{engine:null!=n?n:a,engineType:t,name:o.ScriptId.lastSegmentOf(`${r}`),source:"",debug:!1,verbose:!1,enabled:!1,expert:!0},type:"script"}},t.firstJsInstanceId=function(e){return r(this,void 0,void 0,function*(){var t;try{return null===(t=(yield e.jsInstances.getAvailableInstances())[0])||void 0===t?void 0:t._id}catch(e){return}})},t.refreshScriptInCache=function(e,t){return r(this,void 0,void 0,function*(){try{yield e.scripts.updateSingleScriptOrDirectoryFromServer(t)}catch(e){}})};const i=n(52829),o=n(11633),s=n(30442);t.REMOTE_CONNECTION_HINT="Check IOBROKER_MCP_URL, IOBROKER_MCP_USERNAME and IOBROKER_MCP_PASSWORD, then retry.";const a="system.adapter.javascript.0";function c(e){return`${e._id}`}function u(e){var t;return null!==(t=e.common.name)&&void 0!==t?t:o.ScriptId.lastSegmentOf(c(e))}},33648:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Binding=void 0;const r=n(9117),i=n(37763);class o{id;moduleId;activated;serviceIdentifier;implementationType;cache;dynamicValue;scope;type;factory;provider;constraint;onActivation;onDeactivation;constructor(e,t){this.id=(0,i.id)(),this.activated=!1,this.serviceIdentifier=e,this.scope=t,this.type=r.BindingTypeEnum.Invalid,this.constraint=e=>!0,this.implementationType=null,this.cache=null,this.factory=null,this.provider=null,this.onActivation=null,this.onDeactivation=null,this.dynamicValue=null}clone(){const e=new o(this.serviceIdentifier,this.scope);return e.activated=e.scope===r.BindingScopeEnum.Singleton&&this.activated,e.implementationType=this.implementationType,e.dynamicValue=this.dynamicValue,e.scope=this.scope,e.type=this.type,e.factory=this.factory,e.provider=this.provider,e.constraint=this.constraint,e.onActivation=this.onActivation,e.onDeactivation=this.onDeactivation,e.cache=this.cache,e}}t.Binding=o},34176:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(66596),i=n(99048),o={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>r.str`must match "${e.ifClause}" schema`,params:({params:e})=>r._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:n,it:o}=e;void 0===n.then&&void 0===n.else&&(0,i.checkStrictMode)(o,'"if" without "then" and "else" is ignored');const a=s(o,"then"),c=s(o,"else");if(!a&&!c)return;const u=t.let("valid",!0),l=t.name("_valid");if(function(){const t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},l);e.mergeEvaluated(t)}(),e.reset(),a&&c){const n=t.let("ifClause");e.setParams({ifClause:n}),t.if(l,d("then",n),d("else",n))}else a?t.if(l,d("then")):t.if((0,r.not)(l),d("else"));function d(n,i){return()=>{const o=e.subschema({keyword:n},l);t.assign(u,l),e.mergeValidEvaluated(o,u),i?t.assign(i,r._`${n}`):e.setParams({ifClause:n})}}e.pass(u,()=>e.error(!0))}};function s(e,t){const n=e.schema[t];return void 0!==n&&!(0,i.alwaysValidSchema)(e,n)}t.default=o},34395:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HOST_COMMAND_TIMEOUT_MS=void 0,t.readLogLinesAnswer=function(e){if("permissionError"===e)return{error:n};if("object"==typeof e&&null!==e&&"error"in e){const t=e.error;return{error:"permissionError"===t?n:`the host reported an error: ${String(t)}.`}}return!Array.isArray(e)||e.some(e=>"string"!=typeof e)?{error:"the host returned an invalid response."}:{lines:e.slice(0,-1)}},t.HOST_COMMAND_TIMEOUT_MS=1e4;const n="the logged in user is not allowed to read logs. Ask the user to grant the 'sendToHost' permission."},34519:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseSetDef=void 0;const r=n(98950),i=n(73524);t.parseSetDef=function(e,t){const n={type:"array",uniqueItems:!0,items:(0,i.parseDef)(e.valueType._def,{...t,currentPath:[...t.currentPath,"items"]})};return e.minSize&&(0,r.setResponseValueAndErrors)(n,"minItems",e.minSize.value,e.minSize.message,t),e.maxSize&&(0,r.setResponseValueAndErrors)(n,"maxItems",e.maxSize.value,e.maxSize.message,t),n}},34633:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zodToJsonSchema=void 0;const r=n(73524),i=n(11076),o=n(62909);t.zodToJsonSchema=(e,t)=>{const n=(0,i.getRefs)(t);let s="object"==typeof t&&t.definitions?Object.entries(t.definitions).reduce((e,[t,i])=>({...e,[t]:(0,r.parseDef)(i._def,{...n,currentPath:[...n.basePath,n.definitionPath,t]},!0)??(0,o.parseAnyDef)(n)}),{}):void 0;const a="string"==typeof t?t:"title"===t?.nameStrategy?void 0:t?.name,c=(0,r.parseDef)(e._def,void 0===a?n:{...n,currentPath:[...n.basePath,n.definitionPath,a]},!1)??(0,o.parseAnyDef)(n),u="object"==typeof t&&void 0!==t.name&&"title"===t.nameStrategy?t.name:void 0;void 0!==u&&(c.title=u),n.flags.hasReferencedOpenAiAnyType&&(s||(s={}),s[n.openAiAnyTypeName]||(s[n.openAiAnyTypeName]={type:["string","number","integer","boolean","array","null"],items:{$ref:"relative"===n.$refStrategy?"1":[...n.basePath,n.definitionPath,n.openAiAnyTypeName].join("/")}}));const l=void 0===a?s?{...c,[n.definitionPath]:s}:c:{$ref:[..."relative"===n.$refStrategy?[]:n.basePath,n.definitionPath,a].join("/"),[n.definitionPath]:{...s,[a]:c}};return"jsonSchema7"===n.target?l.$schema="http://json-schema.org/draft-07/schema#":"jsonSchema2019-09"!==n.target&&"openAi"!==n.target||(l.$schema="https://json-schema.org/draft/2019-09/schema#"),"openAi"===n.target&&("anyOf"in l||"oneOf"in l||"allOf"in l||"type"in l&&Array.isArray(l.type))&&console.warn("Warning: OpenAI may not support schemas with unions as roots! Try wrapping it in an object property."),l}},34834:e=>{"use strict";const t=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),n=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);function r(e){let t="",n=0,r=0;for(r=0;r<e.length;r++)if(n=e[r].charCodeAt(0),48!==n){if(!(n>=48&&n<=57||n>=65&&n<=70||n>=97&&n<=102))return"";t+=e[r];break}for(r+=1;r<e.length;r++){if(n=e[r].charCodeAt(0),!(n>=48&&n<=57||n>=65&&n<=70||n>=97&&n<=102))return"";t+=e[r]}return t}const i=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function o(e){return e.length=0,!0}function s(e,t,n){if(e.length){const i=r(e);if(""===i)return n.error=!0,!1;t.push(i),e.length=0}return!0}function a(e){if(function(e){let t=0;for(let n=0;n<e.length;n++)":"===e[n]&&t++;return t}(e)<2)return{host:e,isIPV6:!1};const t=function(e){let t=0;const n={error:!1,address:"",zone:""},i=[],a=[];let c=!1,u=!1,l=s;for(let r=0;r<e.length;r++){const s=e[r];if("["!==s&&"]"!==s)if(":"!==s)if("%"===s){if(!l(a,i,n))break;l=o}else a.push(s);else{if(!0===c&&(u=!0),!l(a,i,n))break;if(++t>7){n.error=!0;break}r>0&&":"===e[r-1]&&(c=!0),i.push(":")}}return a.length&&(l===o?n.zone=a.join(""):u?i.push(a.join("")):i.push(r(a))),n.address=i.join(""),n}(e);if(t.error)return{host:e,isIPV6:!1};{let e=t.address,n=t.address;return t.zone&&(e+="%"+t.zone,n+="%25"+t.zone),{host:e,isIPV6:!0,escapedHost:n}}}e.exports={nonSimpleDomain:i,recomposeAuthority:function(e){const t=[];if(void 0!==e.userinfo&&(t.push(e.userinfo),t.push("@")),void 0!==e.host){let r=unescape(e.host);if(!n(r)){const t=a(r);r=!0===t.isIPV6?`[${t.escapedHost}]`:e.host}t.push(r)}return"number"!=typeof e.port&&"string"!=typeof e.port||(t.push(":"),t.push(String(e.port))),t.length?t.join(""):void 0},normalizeComponentEncoding:function(e,t){const n=!0!==t?escape:unescape;return void 0!==e.scheme&&(e.scheme=n(e.scheme)),void 0!==e.userinfo&&(e.userinfo=n(e.userinfo)),void 0!==e.host&&(e.host=n(e.host)),void 0!==e.path&&(e.path=n(e.path)),void 0!==e.query&&(e.query=n(e.query)),void 0!==e.fragment&&(e.fragment=n(e.fragment)),e},removeDotSegments:function(e){let t=e;const n=[];let r=-1,i=0;for(;i=t.length;){if(1===i){if("."===t)break;if("/"===t){n.push("/");break}n.push(t);break}if(2===i){if("."===t[0]){if("."===t[1])break;if("/"===t[1]){t=t.slice(2);continue}}else if("/"===t[0]&&("."===t[1]||"/"===t[1])){n.push("/");break}}else if(3===i&&"/.."===t){0!==n.length&&n.pop(),n.push("/");break}if("."===t[0]){if("."===t[1]){if("/"===t[2]){t=t.slice(3);continue}}else if("/"===t[1]){t=t.slice(2);continue}}else if("/"===t[0]&&"."===t[1]){if("/"===t[2]){t=t.slice(2);continue}if("."===t[2]&&"/"===t[3]){t=t.slice(3),0!==n.length&&n.pop();continue}}if(-1===(r=t.indexOf("/",1))){n.push(t);break}n.push(t.slice(0,r)),t=t.slice(r)}return n.join("")},isIPv4:n,isUUID:t,normalizeIPv6:a,stringArrayToHexStripped:r}},34836:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseLiteralDef=void 0,t.parseLiteralDef=function(e,t){const n=typeof e.value;return"bigint"!==n&&"number"!==n&&"boolean"!==n&&"string"!==n?{type:Array.isArray(e.value)?"array":"object"}:"openApi3"===t.target?{type:"bigint"===n?"integer":n,enum:[e.value]}:{type:"bigint"===n?"integer":n,const:e.value}}},35007:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.STACK_OVERFLOW=t.CIRCULAR_DEPENDENCY_IN_FACTORY=t.ON_DEACTIVATION_ERROR=t.PRE_DESTROY_ERROR=t.POST_CONSTRUCT_ERROR=t.ASYNC_UNBIND_REQUIRED=t.MULTIPLE_POST_CONSTRUCT_METHODS=t.MULTIPLE_PRE_DESTROY_METHODS=t.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK=t.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE=t.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE=t.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT=t.ARGUMENTS_LENGTH_MISMATCH=t.INVALID_DECORATOR_OPERATION=t.INVALID_TO_SELF_VALUE=t.LAZY_IN_SYNC=t.INVALID_FUNCTION_BINDING=t.INVALID_MIDDLEWARE_RETURN=t.NO_MORE_SNAPSHOTS_AVAILABLE=t.INVALID_BINDING_TYPE=t.CIRCULAR_DEPENDENCY=t.UNDEFINED_INJECT_ANNOTATION=t.TRYING_TO_RESOLVE_BINDINGS=t.NOT_REGISTERED=t.CANNOT_UNBIND=t.AMBIGUOUS_MATCH=t.KEY_NOT_FOUND=t.NULL_ARGUMENT=t.DUPLICATED_METADATA=t.DUPLICATED_INJECTABLE_DECORATOR=void 0,t.DUPLICATED_INJECTABLE_DECORATOR="Cannot apply @injectable decorator multiple times.",t.DUPLICATED_METADATA="Metadata key was used more than once in a parameter:",t.NULL_ARGUMENT="NULL argument",t.KEY_NOT_FOUND="Key Not Found",t.AMBIGUOUS_MATCH="Ambiguous match found for serviceIdentifier:",t.CANNOT_UNBIND="Could not unbind serviceIdentifier:",t.NOT_REGISTERED="No matching bindings found for serviceIdentifier:",t.TRYING_TO_RESOLVE_BINDINGS=e=>`Trying to resolve bindings for "${e}"`,t.UNDEFINED_INJECT_ANNOTATION=e=>`@inject called with undefined this could mean that the class ${e} has a circular dependency problem. You can use a LazyServiceIdentifer to overcome this limitation.`,t.CIRCULAR_DEPENDENCY="Circular dependency found:",t.INVALID_BINDING_TYPE="Invalid binding type:",t.NO_MORE_SNAPSHOTS_AVAILABLE="No snapshot available to restore.",t.INVALID_MIDDLEWARE_RETURN="Invalid return type in middleware. Middleware must return!",t.INVALID_FUNCTION_BINDING="Value provided to function binding must be a function!",t.LAZY_IN_SYNC=e=>`You are attempting to construct ${function(e){return"function"==typeof e?`[function/class ${e.name||"<anonymous>"}]`:"symbol"==typeof e?e.toString():`'${e}'`}(e)} in a synchronous way but it has asynchronous dependencies.`,t.INVALID_TO_SELF_VALUE="The toSelf function can only be applied when a constructor is used as service identifier",t.INVALID_DECORATOR_OPERATION="The @inject @multiInject @tagged and @named decorators must be applied to the parameters of a class constructor or a class property.",t.ARGUMENTS_LENGTH_MISMATCH=e=>`The number of constructor arguments in the derived class ${e} must be >= than the number of constructor arguments of its base class.`,t.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT="Invalid Container constructor argument. Container options must be an object.",t.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE='Invalid Container option. Default scope must be a string ("singleton" or "transient").',t.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE="Invalid Container option. Auto bind injectable must be a boolean",t.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK="Invalid Container option. Skip base check must be a boolean",t.MULTIPLE_PRE_DESTROY_METHODS="Cannot apply @preDestroy decorator multiple times in the same class",t.MULTIPLE_POST_CONSTRUCT_METHODS="Cannot apply @postConstruct decorator multiple times in the same class",t.ASYNC_UNBIND_REQUIRED="Attempting to unbind dependency with asynchronous destruction (@preDestroy or onDeactivation)",t.POST_CONSTRUCT_ERROR=(e,t)=>`@postConstruct error in class ${e}: ${t}`,t.PRE_DESTROY_ERROR=(e,t)=>`@preDestroy error in class ${e}: ${t}`,t.ON_DEACTIVATION_ERROR=(e,t)=>`onDeactivation() error in class ${e}: ${t}`,t.CIRCULAR_DEPENDENCY_IN_FACTORY=(e,t)=>`It looks like there is a circular dependency in one of the '${e}' bindings. Please investigate bindings with service identifier '${t}'.`,t.STACK_OVERFLOW="Maximum call stack size exceeded"},35317:e=>{"use strict";e.exports=require("child_process")},35345:e=>{"use strict";e.exports=URIError},35423:function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.StateAndObjectRemoteService=void 0;const s=n(52650),a=n(55853);let c=class{constructor(e){this.connectionServiceProvider=e,this.objectEventListeners=[]}registerObjectChangedEventListener(e){this.objectEventListeners.includes(e)||this.objectEventListeners.push(e)}init(){this.connectionServiceProvider.getConnectionService().registerConnectionEventListener(this),this.connectionServiceProvider.getConnectionService().isConnected&&this.registerSocketEvents()}getAllObjects(){return this.connectionServiceProvider.getConnectionService().getAllObjects()}getState(e){return this.connectionServiceProvider.getConnectionService().getState(e)}onConnected(){this.registerSocketEvents()}onDisconnected(){this.unregisterSocketEvents()}onReAuthenticate(){}registerSocketEvents(){this.connectionServiceProvider.getConnectionService().registerForObjectChange("*",(e,t)=>{this.objectEventListeners.forEach(n=>n.onObjectChanged(e,t))})}unregisterSocketEvents(){this.connectionServiceProvider.getConnectionService().unregisterObjectChange("*")}};t.StateAndObjectRemoteService=c,t.StateAndObjectRemoteService=c=r([(0,s.injectable)(),o(0,(0,s.inject)(a.default.services.connectionServiceProvider)),i("design:paramtypes",[Object])],c)},35870:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(66596),i=n(38451),o=n(81430),s=n(7346),a=n(99048),c={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===i.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:n}})=>r._`{error: ${e}, tag: ${n}, tagValue: ${t}}`},code(e){const{gen:t,data:n,schema:c,parentSchema:u,it:l}=e,{oneOf:d}=u;if(!l.opts.discriminator)throw new Error("discriminator: requires discriminator option");const p=c.propertyName;if("string"!=typeof p)throw new Error("discriminator: requires propertyName");if(c.mapping)throw new Error("discriminator: mapping is not supported");if(!d)throw new Error("discriminator: requires oneOf keyword");const f=t.let("valid",!1),m=t.const("tag",r._`${n}${(0,r.getProperty)(p)}`);function h(n){const i=t.name("valid"),o=e.subschema({keyword:"oneOf",schemaProp:n},i);return e.mergeEvaluated(o,r.Name),i}t.if(r._`typeof ${m} == "string"`,()=>function(){const n=function(){var e;const t={},n=i(u);let r=!0;for(let t=0;t<d.length;t++){let u=d[t];if((null==u?void 0:u.$ref)&&!(0,a.schemaHasRulesButRef)(u,l.self.RULES)){const e=u.$ref;if(u=o.resolveRef.call(l.self,l.schemaEnv.root,l.baseId,e),u instanceof o.SchemaEnv&&(u=u.schema),void 0===u)throw new s.default(l.opts.uriResolver,l.baseId,e)}const f=null===(e=null==u?void 0:u.properties)||void 0===e?void 0:e[p];if("object"!=typeof f)throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${p}"`);r=r&&(n||i(u)),c(f,t)}if(!r)throw new Error(`discriminator: "${p}" must be required`);return t;function i({required:e}){return Array.isArray(e)&&e.includes(p)}function c(e,t){if(e.const)f(e.const,t);else{if(!e.enum)throw new Error(`discriminator: "properties/${p}" must have "const" or "enum"`);for(const n of e.enum)f(n,t)}}function f(e,n){if("string"!=typeof e||e in t)throw new Error(`discriminator: "${p}" values must be unique strings`);t[e]=n}}();t.if(!1);for(const e in n)t.elseIf(r._`${m} === ${e}`),t.assign(f,h(n[e]));t.else(),e.error(!1,{discrError:i.DiscrError.Mapping,tag:m,tagName:p}),t.endIf()}(),()=>e.error(!1,{discrError:i.DiscrError.Tag,tag:m,tagName:p})),e.ok(f)}};t.default=c},36338:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LegacyQueryableStringImpl=void 0,t.LegacyQueryableStringImpl=class{#e;constructor(e){this.#e=e}startsWith(e){return this.#e.startsWith(e)}endsWith(e){return this.#e.endsWith(e)}contains(e){return this.#e.includes(e)}equals(e){return this.#e===e}value(){return this.#e}}},37005:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{localeError:a()}};const s=o(n(90523)),a=()=>{const e={string:{unit:"harf",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"unsur",verb:"olmalıdır"},set:{unit:"unsur",verb:"olmalıdır"}};function t(t){return e[t]??null}const n={regex:"giren",email:"epostagâh",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO hengâmı",date:"ISO tarihi",time:"ISO zamanı",duration:"ISO müddeti",ipv4:"IPv4 nişânı",ipv6:"IPv6 nişânı",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-şifreli metin",base64url:"base64url-şifreli metin",json_string:"JSON metin",e164:"E.164 sayısı",jwt:"JWT",template_literal:"giren"};return e=>{switch(e.code){case"invalid_type":return`Fâsit giren: umulan ${e.expected}, alınan ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"numara";case"object":if(Array.isArray(e))return"saf";if(null===e)return"gayb";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Fâsit giren: umulan ${s.stringifyPrimitive(e.values[0])}`:`Fâsit tercih: mûteberler ${s.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`Fazla büyük: ${e.origin??"value"}, ${n}${e.maximum.toString()} ${r.unit??"elements"} sahip olmalıydı.`:`Fazla büyük: ${e.origin??"value"}, ${n}${e.maximum.toString()} olmalıydı.`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`Fazla küçük: ${e.origin}, ${n}${e.minimum.toString()} ${r.unit} sahip olmalıydı.`:`Fazla küçük: ${e.origin}, ${n}${e.minimum.toString()} olmalıydı.`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Fâsit metin: "${t.prefix}" ile başlamalı.`:"ends_with"===t.format?`Fâsit metin: "${t.suffix}" ile bitmeli.`:"includes"===t.format?`Fâsit metin: "${t.includes}" ihtivâ etmeli.`:"regex"===t.format?`Fâsit metin: ${t.pattern} nakşına uymalı.`:`Fâsit ${n[t.format]??e.format}`}case"not_multiple_of":return`Fâsit sayı: ${e.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${e.keys.length>1?"s":""}: ${s.joinValues(e.keys,", ")}`;case"invalid_key":return`${e.origin} için tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${e.origin} için tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}}}},37294:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseNullDef=void 0,t.parseNullDef=function(e){return"openApi3"===e.target?{enum:["null"],nullable:!0}:{type:"null"}}},37390:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.ZodMiniISODuration=t.ZodMiniISOTime=t.ZodMiniISODate=t.ZodMiniISODateTime=void 0,t.datetime=function(e){return s._isoDateTime(t.ZodMiniISODateTime,e)},t.date=function(e){return s._isoDate(t.ZodMiniISODate,e)},t.time=function(e){return s._isoTime(t.ZodMiniISOTime,e)},t.duration=function(e){return s._isoDuration(t.ZodMiniISODuration,e)};const s=o(n(76601)),a=o(n(33));t.ZodMiniISODateTime=s.$constructor("$ZodISODateTime",(e,t)=>{s.$ZodISODateTime.init(e,t),a.ZodMiniStringFormat.init(e,t)}),t.ZodMiniISODate=s.$constructor("$ZodISODate",(e,t)=>{s.$ZodISODate.init(e,t),a.ZodMiniStringFormat.init(e,t)}),t.ZodMiniISOTime=s.$constructor("$ZodISOTime",(e,t)=>{s.$ZodISOTime.init(e,t),a.ZodMiniStringFormat.init(e,t)}),t.ZodMiniISODuration=s.$constructor("$ZodISODuration",(e,t)=>{s.$ZodISODuration.init(e,t),a.ZodMiniStringFormat.init(e,t)})},37763:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.id=function(){return n++};let n=0},37893:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBaseType=function(e){const t=Object.getPrototypeOf(e.prototype),n=t?.constructor;return n}},38451:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DiscrError=void 0,function(e){e.Tag="tag",e.Mapping="mapping"}(n||(t.DiscrError=n={}))},38630:()=>{var e;!function(e){!function(){var t="object"==typeof globalThis?globalThis:"object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(e){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(e){}}(),n=r(e);function r(e,t){return function(n,r){Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0!==t.Reflect&&(n=r(t.Reflect,n)),function(e,t){var n=Object.prototype.hasOwnProperty,r="function"==typeof Symbol,i=r&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",o=r&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",s="function"==typeof Object.create,a={__proto__:[]}instanceof Array,c=!s&&!a,u={create:s?function(){return F(Object.create(null))}:a?function(){return F({__proto__:null})}:function(){return F({})},has:c?function(e,t){return n.call(e,t)}:function(e,t){return t in e},get:c?function(e,t){return n.call(e,t)?e[t]:void 0}:function(e,t){return e[t]}},l=Object.getPrototypeOf(Function),d="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[o]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var n=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i<r;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,N(t,this._cacheKey)&&(this._cacheKey=e,this._cacheIndex=-2),!0}return!1},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},t.prototype.keys=function(){return new n(this._keys,this._values,r)},t.prototype.values=function(){return new n(this._keys,this._values,i)},t.prototype.entries=function(){return new n(this._keys,this._values,s)},t.prototype["@@iterator"]=function(){return this.entries()},t.prototype[o]=function(){return this.entries()},t.prototype._find=function(e,t){if(!N(this._cacheKey,e)){this._cacheIndex=-1;for(var n=0;n<this._keys.length;n++)if(N(this._keys[n],e)){this._cacheIndex=n;break}}return this._cacheIndex<0&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},t}();function r(e,t){return e}function i(e,t){return t}function s(e,t){return[e,t]}}(),p="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function e(){this._map=new d}return Object.defineProperty(e.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.keys()},e.prototype.entries=function(){return this._map.entries()},e.prototype["@@iterator"]=function(){return this.keys()},e.prototype[o]=function(){return this.keys()},e}(),f="function"==typeof WeakMap?WeakMap:function(){var e=u.create(),t=r();return function(){function e(){this._key=r()}return e.prototype.has=function(e){var t=i(e,!1);return void 0!==t&&u.has(t,this._key)},e.prototype.get=function(e){var t=i(e,!1);return void 0!==t?u.get(t,this._key):void 0},e.prototype.set=function(e,t){return i(e,!0)[this._key]=t,this},e.prototype.delete=function(e){var t=i(e,!1);return void 0!==t&&delete t[this._key]},e.prototype.clear=function(){this._key=r()},e}();function r(){var t;do{t="@@WeakMap@@"+s()}while(u.has(e,t));return e[t]=!0,t}function i(e,r){if(!n.call(e,t)){if(!r)return;Object.defineProperty(e,t,{value:u.create()})}return e[t]}function o(e,t){for(var n=0;n<t;++n)e[n]=255*Math.random()|0;return e}function s(){var e=function(e){if("function"==typeof Uint8Array){var t=new Uint8Array(e);return"undefined"!=typeof crypto?crypto.getRandomValues(t):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(t):o(t,e),t}return o(new Array(e),e)}(16);e[6]=79&e[6]|64,e[8]=191&e[8]|128;for(var t="",n=0;n<16;++n){var r=e[n];4!==n&&6!==n&&8!==n||(t+="-"),r<16&&(t+="0"),t+=r.toString(16).toLowerCase()}return t}}(),m=r?Symbol.for("@reflect-metadata:registry"):void 0,h=function(){var e;return!k(m)&&P(t.Reflect)&&Object.isExtensible(t.Reflect)&&(e=t.Reflect[m]),k(e)&&(e=function(){var e,n,r,i;k(m)||void 0===t.Reflect||m in t.Reflect||"function"!=typeof t.Reflect.defineMetadata||(e=function(e){var t=e.defineMetadata,n=e.hasOwnMetadata,r=e.getOwnMetadata,i=e.getOwnMetadataKeys,o=e.deleteMetadata,s=new f;return{isProviderFor:function(e,t){var n=s.get(e);return!(k(n)||!n.has(t))||!!i(e,t).length&&(k(n)&&(n=new p,s.set(e,n)),n.add(t),!0)},OrdinaryDefineOwnMetadata:t,OrdinaryHasOwnMetadata:n,OrdinaryGetOwnMetadata:r,OrdinaryOwnMetadataKeys:i,OrdinaryDeleteMetadata:o}}(t.Reflect));var o=new f,s={registerProvider:a,getProvider:u,setProvider:h};return s;function a(t){if(!Object.isExtensible(s))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case e===t:break;case k(n):n=t;break;case n===t:break;case k(r):r=t;break;case r===t:break;default:void 0===i&&(i=new p),i.add(t)}}function c(t,o){if(!k(n)){if(n.isProviderFor(t,o))return n;if(!k(r)){if(r.isProviderFor(t,o))return n;if(!k(i))for(var s=M(i);;){var a=Z(s);if(!a)return;var c=D(a);if(c.isProviderFor(t,o))return U(s),c}}}if(!k(e)&&e.isProviderFor(t,o))return e}function u(e,t){var n,r=o.get(e);return k(r)||(n=r.get(t)),k(n)?(k(n=c(e,t))||(k(r)&&(r=new d,o.set(e,r)),r.set(t,n)),n):n}function l(e){if(k(e))throw new TypeError;return n===e||r===e||!k(i)&&i.has(e)}function h(e,t,n){if(!l(n))throw new Error("Metadata provider not registered.");var r=u(e,t);if(r!==n){if(!k(r))return!1;var i=o.get(e);k(i)&&(i=new d,o.set(e,i)),i.set(t,n)}return!0}}()),!k(m)&&P(t.Reflect)&&Object.isExtensible(t.Reflect)&&Object.defineProperty(t.Reflect,m,{enumerable:!1,configurable:!1,writable:!1,value:e}),e}(),v=function(e){var t=new f,n={isProviderFor:function(e,n){var r=t.get(e);return!k(r)&&r.has(n)},OrdinaryDefineOwnMetadata:function(e,t,n,i){r(n,i,!0).set(e,t)},OrdinaryHasOwnMetadata:function(e,t,n){var i=r(t,n,!1);return!k(i)&&T(i.has(e))},OrdinaryGetOwnMetadata:function(e,t,n){var i=r(t,n,!1);if(!k(i))return i.get(e)},OrdinaryOwnMetadataKeys:function(e,t){var n=[],i=r(e,t,!1);if(k(i))return n;for(var o=M(i.keys()),s=0;;){var a=Z(o);if(!a)return n.length=s,n;var c=D(a);try{n[s]=c}catch(e){try{U(o)}finally{throw e}}s++}},OrdinaryDeleteMetadata:function(e,n,i){var o=r(n,i,!1);if(k(o))return!1;if(!o.delete(e))return!1;if(0===o.size){var s=t.get(n);k(s)||(s.delete(i),0===s.size&&t.delete(s))}return!0}};return h.registerProvider(n),n;function r(r,i,o){var s=t.get(r),a=!1;if(k(s)){if(!o)return;s=new d,t.set(r,s),a=!0}var c=s.get(i);if(k(c)){if(!o)return;if(c=new d,s.set(i,c),!e.setProvider(r,i,n))throw s.delete(i),a&&t.delete(r),new Error("Wrong provider for target.")}return c}}(h);function g(e,t,n){if(y(e,t,n))return!0;var r=L(t);return!$(r)&&g(e,r,n)}function y(e,t,n){var r=z(t,n,!1);return!k(r)&&T(r.OrdinaryHasOwnMetadata(e,t,n))}function _(e,t,n){if(y(e,t,n))return b(e,t,n);var r=L(t);return $(r)?void 0:_(e,r,n)}function b(e,t,n){var r=z(t,n,!1);if(!k(r))return r.OrdinaryGetOwnMetadata(e,t,n)}function x(e,t,n,r){z(n,r,!0).OrdinaryDefineOwnMetadata(e,t,n,r)}function w(e,t){var n=S(e,t),r=L(e);if(null===r)return n;var i=w(r,t);if(i.length<=0)return n;if(n.length<=0)return i;for(var o=new p,s=[],a=0,c=n;a<c.length;a++){var u=c[a];o.has(u)||(o.add(u),s.push(u))}for(var l=0,d=i;l<d.length;l++)u=d[l],o.has(u)||(o.add(u),s.push(u));return s}function S(e,t){var n=z(e,t,!1);return n?n.OrdinaryOwnMetadataKeys(e,t):[]}function O(e){if(null===e)return 1;switch(typeof e){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===e?1:6;default:return 6}}function k(e){return void 0===e}function $(e){return null===e}function P(e){return"object"==typeof e?null!==e:"function"==typeof e}function E(e,t){switch(O(e)){case 0:case 1:case 2:case 3:case 4:case 5:return e}var n=3===t?"string":5===t?"number":"default",r=A(e,i);if(void 0!==r){var o=r.call(e,n);if(P(o))throw new TypeError;return o}return function(e,t){if("string"===t){var n=e.toString;if(j(n)&&!P(i=n.call(e)))return i;if(j(r=e.valueOf)&&!P(i=r.call(e)))return i}else{var r;if(j(r=e.valueOf)&&!P(i=r.call(e)))return i;var i,o=e.toString;if(j(o)&&!P(i=o.call(e)))return i}throw new TypeError}(e,"default"===n?"number":n)}function T(e){return!!e}function C(e){var t=E(e,3);return"symbol"==typeof t?t:function(e){return""+e}(t)}function I(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:"[object Array]"===Object.prototype.toString.call(e)}function j(e){return"function"==typeof e}function R(e){return"function"==typeof e}function N(e,t){return e===t||e!=e&&t!=t}function A(e,t){var n=e[t];if(null!=n){if(!j(n))throw new TypeError;return n}}function M(e){var t=A(e,o);if(!j(t))throw new TypeError;var n=t.call(e);if(!P(n))throw new TypeError;return n}function D(e){return e.value}function Z(e){var t=e.next();return!t.done&&t}function U(e){var t=e.return;t&&t.call(e)}function L(e){var t=Object.getPrototypeOf(e);if("function"!=typeof e||e===l)return t;if(t!==l)return t;var n=e.prototype,r=n&&Object.getPrototypeOf(n);if(null==r||r===Object.prototype)return t;var i=r.constructor;return"function"!=typeof i||i===e?t:i}function z(e,t,n){var r=h.getProvider(e,t);if(!k(r))return r;if(n){if(h.setProvider(e,t,v))return v;throw new Error("Illegal state.")}}function F(e){return e.__=void 0,delete e.__,e}e("decorate",function(e,t,n,r){if(k(n)){if(!I(e))throw new TypeError;if(!R(t))throw new TypeError;return function(e,t){for(var n=e.length-1;n>=0;--n){var r=(0,e[n])(t);if(!k(r)&&!$(r)){if(!R(r))throw new TypeError;t=r}}return t}(e,t)}if(!I(e))throw new TypeError;if(!P(t))throw new TypeError;if(!P(r)&&!k(r)&&!$(r))throw new TypeError;return $(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var o=(0,e[i])(t,n,r);if(!k(o)&&!$(o)){if(!P(o))throw new TypeError;r=o}}return r}(e,t,n=C(n),r)}),e("metadata",function(e,t){return function(n,r){if(!P(n))throw new TypeError;if(!k(r)&&!function(e){switch(O(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;x(e,t,n,r)}}),e("defineMetadata",function(e,t,n,r){if(!P(n))throw new TypeError;return k(r)||(r=C(r)),x(e,t,n,r)}),e("hasMetadata",function(e,t,n){if(!P(t))throw new TypeError;return k(n)||(n=C(n)),g(e,t,n)}),e("hasOwnMetadata",function(e,t,n){if(!P(t))throw new TypeError;return k(n)||(n=C(n)),y(e,t,n)}),e("getMetadata",function(e,t,n){if(!P(t))throw new TypeError;return k(n)||(n=C(n)),_(e,t,n)}),e("getOwnMetadata",function(e,t,n){if(!P(t))throw new TypeError;return k(n)||(n=C(n)),b(e,t,n)}),e("getMetadataKeys",function(e,t){if(!P(e))throw new TypeError;return k(t)||(t=C(t)),w(e,t)}),e("getOwnMetadataKeys",function(e,t){if(!P(e))throw new TypeError;return k(t)||(t=C(t)),S(e,t)}),e("deleteMetadata",function(e,t,n){if(!P(t))throw new TypeError;if(k(n)||(n=C(n)),!P(t))throw new TypeError;k(n)||(n=C(n));var r=z(t,n,!1);return!k(r)&&r.OrdinaryDeleteMetadata(e,t,n)})}(n,t),void 0===t.Reflect&&(t.Reflect=e)}()}(e||(e={}))},39023:e=>{"use strict";e.exports=require("util")},39137:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseMapDef=void 0;const r=n(73524),i=n(87054),o=n(62909);t.parseMapDef=function(e,t){return"record"===t.mapStrategy?(0,i.parseRecordDef)(e,t):{type:"array",maxItems:125,items:{type:"array",items:[(0,r.parseDef)(e.keyType._def,{...t,currentPath:[...t.currentPath,"items","items","0"]})||(0,o.parseAnyDef)(t),(0,r.parseDef)(e.valueType._def,{...t,currentPath:[...t.currentPath,"items","items","1"]})||(0,o.parseAnyDef)(t)],minItems:2,maxItems:2}}}},39340:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(92626),t),i(n(11076),t),i(n(98950),t),i(n(86379),t),i(n(73524),t),i(n(20802),t),i(n(62909),t),i(n(98598),t),i(n(87236),t),i(n(28147),t),i(n(46163),t),i(n(16260),t),i(n(85187),t),i(n(29606),t),i(n(68385),t),i(n(76750),t),i(n(40686),t),i(n(34836),t),i(n(39137),t),i(n(96773),t),i(n(63237),t),i(n(37294),t),i(n(41854),t),i(n(31114),t),i(n(46172),t),i(n(65867),t),i(n(79225),t),i(n(93858),t),i(n(89729),t),i(n(87054),t),i(n(34519),t),i(n(73178),t),i(n(22793),t),i(n(97987),t),i(n(78348),t),i(n(95973),t),i(n(32465),t),i(n(34633),t);const o=n(34633);t.default=o.zodToJsonSchema},39633:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.string=function(e){return s._coercedString(a.ZodString,e)},t.number=function(e){return s._coercedNumber(a.ZodNumber,e)},t.boolean=function(e){return s._coercedBoolean(a.ZodBoolean,e)},t.bigint=function(e){return s._coercedBigint(a.ZodBigInt,e)},t.date=function(e){return s._coercedDate(a.ZodDate,e)};const s=o(n(76601)),a=o(n(99874))},40218:e=>{var t=1e3,n=60*t,r=60*n,i=24*r;function o(e,t,n){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}e.exports=function(e,s){s=s||{};var a,c=typeof e;if("string"===c&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var o=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(o){var s=parseFloat(o[1]);switch((o[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"days":case"day":case"d":return s*i;case"hours":case"hour":case"hrs":case"hr":case"h":return s*r;case"minutes":case"minute":case"mins":case"min":case"m":return s*n;case"seconds":case"second":case"secs":case"sec":case"s":return s*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}(e);if("number"===c&&!1===isNaN(e))return s.long?o(a=e,i,"day")||o(a,r,"hour")||o(a,n,"minute")||o(a,t,"second")||a+" ms":function(e){return e>=i?Math.round(e/i)+"d":e>=r?Math.round(e/r)+"h":e>=n?Math.round(e/n)+"m":e>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},40686:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseIntersectionDef=void 0;const r=n(73524);t.parseIntersectionDef=function(e,t){const n=[(0,r.parseDef)(e.left._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),(0,r.parseDef)(e.right._def,{...t,currentPath:[...t.currentPath,"allOf","1"]})].filter(e=>!!e);let i="jsonSchema2019-09"===t.target?{unevaluatedProperties:!1}:void 0;const o=[];return n.forEach(e=>{if("type"in(t=e)&&"string"===t.type||!("allOf"in t)){let t=e;if("additionalProperties"in e&&!1===e.additionalProperties){const{additionalProperties:n,...r}=e;t=r}else i=void 0;o.push(t)}else o.push(...e.allOf),void 0===e.unevaluatedProperties&&(i=void 0);var t}),o.length?{allOf:o,...i}:void 0}},40736:(e,t,n)=>{e.exports=function(e){function t(e){let n,i,o,s=null;function a(...e){if(!a.enabled)return;const r=a,i=Number(new Date),o=i-(n||i);r.diff=o,r.prev=n,r.curr=i,n=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,i)=>{if("%%"===n)return"%";s++;const o=t.formatters[i];if("function"==typeof o){const t=e[s];n=o.call(r,t),e.splice(s,1),s--}return n}),t.formatArgs.call(r,e),(r.log||t.log).apply(r,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=r,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{s=e}}),"function"==typeof t.init&&t.init(a),a}function r(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function i(e,t){let n=0,r=0,i=-1,o=0;for(;n<e.length;)if(r<t.length&&(t[r]===e[n]||"*"===t[r]))"*"===t[r]?(i=r,o=n,r++):(n++,r++);else{if(-1===i)return!1;r=i+1,o++,n=o}for(;r<t.length&&"*"===t[r];)r++;return r===t.length}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of n)"-"===e[0]?t.skips.push(e.slice(1)):t.names.push(e)},t.enabled=function(e){for(const n of t.skips)if(i(e,n))return!1;for(const n of t.names)if(i(e,n))return!0;return!1},t.humanize=n(6585),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},40999:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{localeError:a()}};const s=o(n(90523)),a=()=>{const e={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"}};function t(t){return e[t]??null}const n={regex:"输入",email:"电子邮件",url:"URL",emoji:"表情符号",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日期时间",date:"ISO日期",time:"ISO时间",duration:"ISO时长",ipv4:"IPv4地址",ipv6:"IPv6地址",cidrv4:"IPv4网段",cidrv6:"IPv6网段",base64:"base64编码字符串",base64url:"base64url编码字符串",json_string:"JSON字符串",e164:"E.164号码",jwt:"JWT",template_literal:"输入"};return e=>{switch(e.code){case"invalid_type":return`无效输入:期望 ${e.expected},实际接收 ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"非数字(NaN)":"数字";case"object":if(Array.isArray(e))return"数组";if(null===e)return"空值(null)";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`无效输入:期望 ${s.stringifyPrimitive(e.values[0])}`:`无效选项:期望以下之一 ${s.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`数值过大:期望 ${e.origin??"值"} ${n}${e.maximum.toString()} ${r.unit??"个元素"}`:`数值过大:期望 ${e.origin??"值"} ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`数值过小:期望 ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`数值过小:期望 ${e.origin} ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`无效字符串:必须以 "${t.prefix}" 开头`:"ends_with"===t.format?`无效字符串:必须以 "${t.suffix}" 结尾`:"includes"===t.format?`无效字符串:必须包含 "${t.includes}"`:"regex"===t.format?`无效字符串:必须满足正则表达式 ${t.pattern}`:`无效${n[t.format]??e.format}`}case"not_multiple_of":return`无效数字:必须是 ${e.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${s.joinValues(e.keys,", ")}`;case"invalid_key":return`${e.origin} 中的键(key)无效`;case"invalid_union":default:return"无效输入";case"invalid_element":return`${e.origin} 中包含无效值(value)`}}}},41129:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDescription=function(e){return e.toString().slice(n,r)};const n=7,r=-1},41168:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{localeError:a()}};const s=o(n(90523)),a=()=>{const e={string:{unit:"simvol",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"element",verb:"olmalıdır"},set:{unit:"element",verb:"olmalıdır"}};function t(t){return e[t]??null}const n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return e=>{switch(e.code){case"invalid_type":return`Yanlış dəyər: gözlənilən ${e.expected}, daxil olan ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Yanlış dəyər: gözlənilən ${s.stringifyPrimitive(e.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${s.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`Çox böyük: gözlənilən ${e.origin??"dəyər"} ${n}${e.maximum.toString()} ${r.unit??"element"}`:`Çox böyük: gözlənilən ${e.origin??"dəyər"} ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`Çox kiçik: gözlənilən ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`Çox kiçik: gözlənilən ${e.origin} ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Yanlış mətn: "${t.prefix}" ilə başlamalıdır`:"ends_with"===t.format?`Yanlış mətn: "${t.suffix}" ilə bitməlidir`:"includes"===t.format?`Yanlış mətn: "${t.includes}" daxil olmalıdır`:"regex"===t.format?`Yanlış mətn: ${t.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${n[t.format]??e.format}`}case"not_multiple_of":return`Yanlış ədəd: ${e.divisor} ilə bölünə bilən olmalıdır`;case"unrecognized_keys":return`Tanınmayan açar${e.keys.length>1?"lar":""}: ${s.joinValues(e.keys,", ")}`;case"invalid_key":return`${e.origin} daxilində yanlış açar`;case"invalid_union":default:return"Yanlış dəyər";case"invalid_element":return`${e.origin} daxilində yanlış dəyər`}}}},41237:e=>{"use strict";e.exports=EvalError},41333:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var r in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},41362:e=>{"use strict";e.exports=function(e,t){return Object.keys(t).forEach(function(n){e[n]=e[n]||t[n]}),e}},41402:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BindingWhenOnSyntax=void 0;const r=n(87059),i=n(90732);t.BindingWhenOnSyntax=class{_bindingWhenSyntax;_bindingOnSyntax;_binding;constructor(e){this._binding=e,this._bindingWhenSyntax=new i.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new r.BindingOnSyntax(this._binding)}when(e){return this._bindingWhenSyntax.when(e)}whenTargetNamed(e){return this._bindingWhenSyntax.whenTargetNamed(e)}whenTargetIsDefault(){return this._bindingWhenSyntax.whenTargetIsDefault()}whenTargetTagged(e,t){return this._bindingWhenSyntax.whenTargetTagged(e,t)}whenInjectedInto(e){return this._bindingWhenSyntax.whenInjectedInto(e)}whenParentNamed(e){return this._bindingWhenSyntax.whenParentNamed(e)}whenParentTagged(e,t){return this._bindingWhenSyntax.whenParentTagged(e,t)}whenAnyAncestorIs(e){return this._bindingWhenSyntax.whenAnyAncestorIs(e)}whenNoAncestorIs(e){return this._bindingWhenSyntax.whenNoAncestorIs(e)}whenAnyAncestorNamed(e){return this._bindingWhenSyntax.whenAnyAncestorNamed(e)}whenAnyAncestorTagged(e,t){return this._bindingWhenSyntax.whenAnyAncestorTagged(e,t)}whenNoAncestorNamed(e){return this._bindingWhenSyntax.whenNoAncestorNamed(e)}whenNoAncestorTagged(e,t){return this._bindingWhenSyntax.whenNoAncestorTagged(e,t)}whenAnyAncestorMatches(e){return this._bindingWhenSyntax.whenAnyAncestorMatches(e)}whenNoAncestorMatches(e){return this._bindingWhenSyntax.whenNoAncestorMatches(e)}onActivation(e){return this._bindingOnSyntax.onActivation(e)}onDeactivation(e){return this._bindingOnSyntax.onDeactivation(e)}}},41828:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(79877),i=n(66596),o=n(99048),s=n(85311),a={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:e,j:t}})=>i.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>i._`{i: ${e}, j: ${t}}`},code(e){const{gen:t,data:n,$data:a,schema:c,parentSchema:u,schemaCode:l,it:d}=e;if(!a&&!c)return;const p=t.let("valid"),f=u.items?(0,r.getSchemaTypes)(u.items):[];function m(o,s){const a=t.name("item"),c=(0,r.checkDataTypes)(f,a,d.opts.strictNumbers,r.DataType.Wrong),u=t.const("indices",i._`{}`);t.for(i._`;${o}--;`,()=>{t.let(a,i._`${n}[${o}]`),t.if(c,i._`continue`),f.length>1&&t.if(i._`typeof ${a} == "string"`,i._`${a} += "_"`),t.if(i._`typeof ${u}[${a}] == "number"`,()=>{t.assign(s,i._`${u}[${a}]`),e.error(),t.assign(p,!1).break()}).code(i._`${u}[${a}] = ${o}`)})}function h(r,a){const c=(0,o.useFunc)(t,s.default),u=t.name("outer");t.label(u).for(i._`;${r}--;`,()=>t.for(i._`${a} = ${r}; ${a}--;`,()=>t.if(i._`${c}(${n}[${r}], ${n}[${a}])`,()=>{e.error(),t.assign(p,!1).break(u)})))}e.block$data(p,function(){const r=t.let("i",i._`${n}.length`),o=t.let("j");e.setParams({i:r,j:o}),t.assign(p,!0),t.if(i._`${r} > 1`,()=>(f.length>0&&!f.some(e=>"object"===e||"array"===e)?m:h)(r,o))},i._`${l} === false`),e.ok(p)}};t.default=a},41854:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseNullableDef=void 0;const r=n(73524),i=n(78348);t.parseNullableDef=function(e,t){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(e.innerType._def.typeName)&&(!e.innerType._def.checks||!e.innerType._def.checks.length))return"openApi3"===t.target?{type:i.primitiveMappings[e.innerType._def.typeName],nullable:!0}:{type:[i.primitiveMappings[e.innerType._def.typeName],"null"]};if("openApi3"===t.target){const n=(0,r.parseDef)(e.innerType._def,{...t,currentPath:[...t.currentPath]});return n&&"$ref"in n?{allOf:[n],nullable:!0}:n&&{...n,nullable:!0}}const n=(0,r.parseDef)(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","0"]});return n&&{anyOf:[n,{type:"null"}]}}},42121:e=>{"use strict";var t,n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),r={},i=0,o=0;function s(e){var t="";do{t=n[e%64]+t,e=Math.floor(e/64)}while(e>0);return t}function a(){var e=s(+new Date);return e!==t?(i=0,t=e):e+"."+s(i++)}for(;o<64;o++)r[n[o]]=o;a.encode=s,a.decode=function(e){var t=0;for(o=0;o<e.length;o++)t=64*t+r[e.charAt(o)];return t},e.exports=a},42365:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(11464),i=n(23740),o=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",r.default,i.default];t.default=o},42613:e=>{"use strict";e.exports=require("assert")},42971:(e,t,n)=>{"use strict";const r=n(43106),i=n(93338),o=n(4759),{kStatusCode:s}=n(32614),a=Buffer[Symbol.species],c=Buffer.from([0,0,255,255]),u=Symbol("permessage-deflate"),l=Symbol("total-length"),d=Symbol("callback"),p=Symbol("buffers"),f=Symbol("error");let m;function h(e){this[p].push(e),this[l]+=e.length}function v(e){this[l]+=e.length,this[u]._maxPayload<1||this[l]<=this[u]._maxPayload?this[p].push(e):(this[f]=new RangeError("Max payload size exceeded"),this[f].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[f][s]=1009,this.removeListener("data",v),this.reset())}function g(e){this[u]._inflate=null,this[f]?this[d](this[f]):(e[s]=1007,this[d](e))}e.exports=class{constructor(e,t,n){if(this._maxPayload=0|n,this._options=e||{},this._threshold=void 0!==this._options.threshold?this._options.threshold:1024,this._isServer=!!t,this._deflate=null,this._inflate=null,this.params=null,!m){const e=void 0!==this._options.concurrencyLimit?this._options.concurrencyLimit:10;m=new o(e)}}static get extensionName(){return"permessage-deflate"}offer(){const e={};return this._options.serverNoContextTakeover&&(e.server_no_context_takeover=!0),this._options.clientNoContextTakeover&&(e.client_no_context_takeover=!0),this._options.serverMaxWindowBits&&(e.server_max_window_bits=this._options.serverMaxWindowBits),this._options.clientMaxWindowBits?e.client_max_window_bits=this._options.clientMaxWindowBits:null==this._options.clientMaxWindowBits&&(e.client_max_window_bits=!0),e}accept(e){return e=this.normalizeParams(e),this.params=this._isServer?this.acceptAsServer(e):this.acceptAsClient(e),this.params}cleanup(){if(this._inflate&&(this._inflate.close(),this._inflate=null),this._deflate){const e=this._deflate[d];this._deflate.close(),this._deflate=null,e&&e(new Error("The deflate stream was closed while data was being processed"))}}acceptAsServer(e){const t=this._options,n=e.find(e=>!(!1===t.serverNoContextTakeover&&e.server_no_context_takeover||e.server_max_window_bits&&(!1===t.serverMaxWindowBits||"number"==typeof t.serverMaxWindowBits&&t.serverMaxWindowBits>e.server_max_window_bits)||"number"==typeof t.clientMaxWindowBits&&!e.client_max_window_bits));if(!n)throw new Error("None of the extension offers can be accepted");return t.serverNoContextTakeover&&(n.server_no_context_takeover=!0),t.clientNoContextTakeover&&(n.client_no_context_takeover=!0),"number"==typeof t.serverMaxWindowBits&&(n.server_max_window_bits=t.serverMaxWindowBits),"number"==typeof t.clientMaxWindowBits?n.client_max_window_bits=t.clientMaxWindowBits:!0!==n.client_max_window_bits&&!1!==t.clientMaxWindowBits||delete n.client_max_window_bits,n}acceptAsClient(e){const t=e[0];if(!1===this._options.clientNoContextTakeover&&t.client_no_context_takeover)throw new Error('Unexpected parameter "client_no_context_takeover"');if(t.client_max_window_bits){if(!1===this._options.clientMaxWindowBits||"number"==typeof this._options.clientMaxWindowBits&&t.client_max_window_bits>this._options.clientMaxWindowBits)throw new Error('Unexpected or invalid parameter "client_max_window_bits"')}else"number"==typeof this._options.clientMaxWindowBits&&(t.client_max_window_bits=this._options.clientMaxWindowBits);return t}normalizeParams(e){return e.forEach(e=>{Object.keys(e).forEach(t=>{let n=e[t];if(n.length>1)throw new Error(`Parameter "${t}" must have only a single value`);if(n=n[0],"client_max_window_bits"===t){if(!0!==n){const e=+n;if(!Number.isInteger(e)||e<8||e>15)throw new TypeError(`Invalid value for parameter "${t}": ${n}`);n=e}else if(!this._isServer)throw new TypeError(`Invalid value for parameter "${t}": ${n}`)}else if("server_max_window_bits"===t){const e=+n;if(!Number.isInteger(e)||e<8||e>15)throw new TypeError(`Invalid value for parameter "${t}": ${n}`);n=e}else{if("client_no_context_takeover"!==t&&"server_no_context_takeover"!==t)throw new Error(`Unknown parameter "${t}"`);if(!0!==n)throw new TypeError(`Invalid value for parameter "${t}": ${n}`)}e[t]=n})}),e}decompress(e,t,n){m.add(r=>{this._decompress(e,t,(e,t)=>{r(),n(e,t)})})}compress(e,t,n){m.add(r=>{this._compress(e,t,(e,t)=>{r(),n(e,t)})})}_decompress(e,t,n){const o=this._isServer?"client":"server";if(!this._inflate){const e=`${o}_max_window_bits`,t="number"!=typeof this.params[e]?r.Z_DEFAULT_WINDOWBITS:this.params[e];this._inflate=r.createInflateRaw({...this._options.zlibInflateOptions,windowBits:t}),this._inflate[u]=this,this._inflate[l]=0,this._inflate[p]=[],this._inflate.on("error",g),this._inflate.on("data",v)}this._inflate[d]=n,this._inflate.write(e),t&&this._inflate.write(c),this._inflate.flush(()=>{const e=this._inflate[f];if(e)return this._inflate.close(),this._inflate=null,void n(e);const r=i.concat(this._inflate[p],this._inflate[l]);this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[l]=0,this._inflate[p]=[],t&&this.params[`${o}_no_context_takeover`]&&this._inflate.reset()),n(null,r)})}_compress(e,t,n){const o=this._isServer?"server":"client";if(!this._deflate){const e=`${o}_max_window_bits`,t="number"!=typeof this.params[e]?r.Z_DEFAULT_WINDOWBITS:this.params[e];this._deflate=r.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:t}),this._deflate[l]=0,this._deflate[p]=[],this._deflate.on("data",h)}this._deflate[d]=n,this._deflate.write(e),this._deflate.flush(r.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let e=i.concat(this._deflate[p],this._deflate[l]);t&&(e=new a(e.buffer,e.byteOffset,e.length-4)),this._deflate[d]=null,this._deflate[l]=0,this._deflate[p]=[],t&&this.params[`${o}_no_context_takeover`]&&this._deflate.reset(),n(null,e)})}}},43106:e=>{"use strict";e.exports=require("zlib")},43164:(e,t,n)=>{var r,i,o,s=n(87016),a=s.URL,c=n(58611),u=n(65692),l=n(2203).Writable,d=n(42613),p=n(77507);r="undefined"!=typeof process,i="undefined"!=typeof window&&"undefined"!=typeof document,o=R(Error.captureStackTrace),r||!i&&o||console.warn("The follow-redirects package should be excluded from browser builds.");var f=!1;try{d(new a(""))}catch(e){f="ERR_INVALID_URL"===e.code}var m=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],h=["abort","aborted","connect","error","socket","timeout"],v=Object.create(null);h.forEach(function(e){v[e]=function(t,n,r){this._redirectable.emit(e,t,n,r)}});var g=C("ERR_INVALID_URL","Invalid URL",TypeError),y=C("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),_=C("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",y),b=C("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),x=C("ERR_STREAM_WRITE_AFTER_END","write after end"),w=l.prototype.destroy||k;function S(e,t){l.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var n=this;this._onNativeResponse=function(e){try{n._processResponse(e)}catch(e){n.emit("error",e instanceof y?e:new y({cause:e}))}},this._performRequest()}function O(e){var t={maxRedirects:21,maxBodyLength:10485760},n={};return Object.keys(e).forEach(function(r){var i=r+":",o=n[i]=e[r],s=t[r]=Object.create(o);Object.defineProperties(s,{request:{value:function(e,r,o){return a&&e instanceof a?e=E(e):j(e)?e=E($(e)):(o=r,r=P(e),e={protocol:i}),R(r)&&(o=r,r=null),(r=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,r)).nativeProtocols=n,j(r.host)||j(r.hostname)||(r.hostname="::1"),d.equal(r.protocol,i,"protocol mismatch"),p("options",r),new S(r,o)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,n){var r=s.request(e,t,n);return r.end(),r},configurable:!0,enumerable:!0,writable:!0}})}),t}function k(){}function $(e){var t;if(f)t=new a(e);else if(!j((t=P(s.parse(e))).protocol))throw new g({input:e});return t}function P(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new g({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new g({input:e.href||e});return e}function E(e,t){var n=t||{};for(var r of m)n[r]=e[r];return n.hostname.startsWith("[")&&(n.hostname=n.hostname.slice(1,-1)),""!==n.port&&(n.port=Number(n.port)),n.path=n.search?n.pathname+n.search:n.pathname,n}function T(e,t){var n;for(var r in t)e.test(r)&&(n=t[r],delete t[r]);return null==n?void 0:String(n).trim()}function C(e,t,n){function r(n){R(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,n||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return r.prototype=new(n||Error),Object.defineProperties(r.prototype,{constructor:{value:r,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),r}function I(e,t){for(var n of h)e.removeListener(n,v[n]);e.on("error",k),e.destroy(t)}function j(e){return"string"==typeof e||e instanceof String}function R(e){return"function"==typeof e}S.prototype=Object.create(l.prototype),S.prototype.abort=function(){I(this._currentRequest),this._currentRequest.abort(),this.emit("abort")},S.prototype.destroy=function(e){return I(this._currentRequest,e),w.call(this,e),this},S.prototype.write=function(e,t,n){if(this._ending)throw new x;if(!(j(e)||"object"==typeof(r=e)&&"length"in r))throw new TypeError("data should be a string, Buffer or Uint8Array");var r;R(t)&&(n=t,t=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,n)):(this.emit("error",new b),this.abort()):n&&n()},S.prototype.end=function(e,t,n){if(R(e)?(n=e,e=t=null):R(t)&&(n=t,t=null),e){var r=this,i=this._currentRequest;this.write(e,t,function(){r._ended=!0,i.end(null,null,n)}),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,n)},S.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},S.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},S.prototype.setTimeout=function(e,t){var n=this;function r(t){t.setTimeout(e),t.removeListener("timeout",t.destroy),t.addListener("timeout",t.destroy)}function i(t){n._timeout&&clearTimeout(n._timeout),n._timeout=setTimeout(function(){n.emit("timeout"),o()},e),r(t)}function o(){n._timeout&&(clearTimeout(n._timeout),n._timeout=null),n.removeListener("abort",o),n.removeListener("error",o),n.removeListener("response",o),n.removeListener("close",o),t&&n.removeListener("timeout",t),n.socket||n._currentRequest.removeListener("socket",i)}return t&&this.on("timeout",t),this.socket?i(this.socket):this._currentRequest.once("socket",i),this.on("socket",r),this.on("abort",o),this.on("error",o),this.on("response",o),this.on("close",o),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){S.prototype[e]=function(t,n){return this._currentRequest[e](t,n)}}),["aborted","connection","socket"].forEach(function(e){Object.defineProperty(S.prototype,e,{get:function(){return this._currentRequest[e]}})}),S.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}},S.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t)throw new TypeError("Unsupported protocol "+e);if(this._options.agents){var n=e.slice(0,-1);this._options.agent=this._options.agents[n]}var r=this._currentRequest=t.request(this._options,this._onNativeResponse);for(var i of(r._redirectable=this,h))r.on(i,v[i]);if(this._currentUrl=/^\//.test(this._options.path)?s.format(this._options):this._options.path,this._isRedirect){var o=0,a=this,c=this._requestBodyBuffers;!function e(t){if(r===a._currentRequest)if(t)a.emit("error",t);else if(o<c.length){var n=c[o++];r.finished||r.write(n.data,n.encoding,e)}else a._ended&&r.end()}()}},S.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var n,r=e.headers.location;if(!r||!1===this._options.followRedirects||t<300||t>=400)return e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),void(this._requestBodyBuffers=[]);if(I(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new _;var i=this._options.beforeRedirect;i&&(n=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var o=this._options.method;((301===t||302===t)&&"POST"===this._options.method||303===t&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],T(/^content-/i,this._options.headers));var c,u,l=T(/^host$/i,this._options.headers),m=$(this._currentUrl),h=l||m.host,v=/^\w+:/.test(r)?this._currentUrl:s.format(Object.assign(m,{host:h})),g=(c=r,u=v,f?new a(c,u):$(s.resolve(u,c)));if(p("redirecting to",g.href),this._isRedirect=!0,E(g,this._options),(g.protocol!==m.protocol&&"https:"!==g.protocol||g.host!==h&&!function(e,t){d(j(e)&&j(t));var n=e.length-t.length-1;return n>0&&"."===e[n]&&e.endsWith(t)}(g.host,h))&&T(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),R(i)){var y={headers:e.headers,statusCode:t},b={url:v,method:o,headers:n};i(this._options,y,b),this._sanitizeOptions(this._options)}this._performRequest()},e.exports=O({http:c,https:u}),e.exports.wrap=O},43368:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.errorUtil=void 0,function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:e?.message}(n||(t.errorUtil=n={}))},43413:function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.DirectoryService=void 0;const a=n(52650),c=n(55853),u=n(9913);let l=class{constructor(e){this.connectionServiceProvider=e}downloadDirectory(e){return s(this,void 0,void 0,function*(){const t=yield this.connectionServiceProvider.getConnectionService().getObject(e);return this.fixDirectoryName(t,u.default.skriptIds.common,"common"),this.fixDirectoryName(t,u.default.skriptIds.global,"global"),t})}downloadAllDirectories(){return s(this,void 0,void 0,function*(){const e=yield this.connectionServiceProvider.getConnectionService().getSystemObjectView("channel","script.js.","script.js.");return this.fixDirectoriesName(e,u.default.skriptIds.common,"common"),this.fixDirectoriesName(e,u.default.skriptIds.global,"global"),e})}createDirectory(e,t){return this.connectionServiceProvider.getConnectionService().setObject(e,{common:{name:t,expert:!0},type:"channel",from:"system.adapter.admin.0",user:"system.user.admin",_id:e,acl:{object:1636,owner:"system.user.admin",ownerGroup:"system.group.administrator"},native:{}})}createDirectoriesRecursively(e){return s(this,void 0,void 0,function*(){const t=e.split(".");for(let e=3;e<=t.length;e++){const n=t.slice(0,e).join(".");(yield this.downloadDirectory(n))||(yield this.createDirectory(n,t[e-1]))}})}deleteDirectory(e){return this.connectionServiceProvider.getConnectionService().deleteObject(e)}fixDirectoriesName(e,t,n){const r=e.find(e=>e._id===t);this.fixDirectoryName(r,t,n)}fixDirectoryName(e,t,n){var r;(null==e?void 0:e._id)===t&&(null===(r=null==e?void 0:e.common)||void 0===r?void 0:r.name)&&(e.common.name=n)}};t.DirectoryService=l,t.DirectoryService=l=r([(0,a.injectable)(),o(0,(0,a.inject)(c.default.services.connectionServiceProvider)),i("design:paramtypes",[Object])],l)},44063:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getClassElementMetadataFromLegacyMetadata=function(e){const t=e.find(e=>e.key===o.INJECT_TAG),n=e.find(e=>e.key===o.MULTI_INJECT_TAG);if(void 0!==e.find(e=>e.key===o.UNMANAGED_TAG))return function(e,t){if(void 0!==t||void 0!==e)throw new r.InversifyCoreError(i.InversifyCoreErrorKind.missingInjectionDecorator,"Expected a single @inject, @multiInject or @unmanaged metadata");return{kind:s.ClassElementMetadataKind.unmanaged}}(t,n);if(void 0===n&&void 0===t)throw new r.InversifyCoreError(i.InversifyCoreErrorKind.missingInjectionDecorator,"Expected @inject, @multiInject or @unmanaged metadata");const a=e.find(e=>e.key===o.NAMED_TAG),c=e.find(e=>e.key===o.OPTIONAL_TAG),u=e.find(e=>e.key===o.NAME_TAG);return{kind:void 0===t?s.ClassElementMetadataKind.multipleInjection:s.ClassElementMetadataKind.singleInjection,name:a?.value,optional:void 0!==c,tags:new Map(e.filter(e=>o.NON_CUSTOM_TAG_KEYS.every(t=>e.key!==t)).map(e=>[e.key,e.value])),targetName:u?.value,value:void 0===t?n?.value:t.value}};const r=n(21773),i=n(94931),o=n(83313),s=n(86277)},44370:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{localeError:a()}};const s=o(n(90523)),a=()=>{const e={string:{unit:"merkkiä",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"päivämäärän"}};function t(t){return e[t]??null}const n={regex:"säännöllinen lauseke",email:"sähköpostiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-päivämäärä",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"};return e=>{switch(e.code){case"invalid_type":return`Virheellinen tyyppi: odotettiin ${e.expected}, oli ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Virheellinen syöte: täytyy olla ${s.stringifyPrimitive(e.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${s.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`Liian suuri: ${r.subject} täytyy olla ${n}${e.maximum.toString()} ${r.unit}`.trim():`Liian suuri: arvon täytyy olla ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`Liian pieni: ${r.subject} täytyy olla ${n}${e.minimum.toString()} ${r.unit}`.trim():`Liian pieni: arvon täytyy olla ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Virheellinen syöte: täytyy alkaa "${t.prefix}"`:"ends_with"===t.format?`Virheellinen syöte: täytyy loppua "${t.suffix}"`:"includes"===t.format?`Virheellinen syöte: täytyy sisältää "${t.includes}"`:"regex"===t.format?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${t.pattern}`:`Virheellinen ${n[t.format]??e.format}`}case"not_multiple_of":return`Virheellinen luku: täytyy olla luvun ${e.divisor} monikerta`;case"unrecognized_keys":return`${e.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${s.joinValues(e.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen syöte"}}}},44725:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.ZodISODuration=t.ZodISOTime=t.ZodISODate=t.ZodISODateTime=void 0,t.datetime=function(e){return s._isoDateTime(t.ZodISODateTime,e)},t.date=function(e){return s._isoDate(t.ZodISODate,e)},t.time=function(e){return s._isoTime(t.ZodISOTime,e)},t.duration=function(e){return s._isoDuration(t.ZodISODuration,e)};const s=o(n(76601)),a=o(n(99874));t.ZodISODateTime=s.$constructor("ZodISODateTime",(e,t)=>{s.$ZodISODateTime.init(e,t),a.ZodStringFormat.init(e,t)}),t.ZodISODate=s.$constructor("ZodISODate",(e,t)=>{s.$ZodISODate.init(e,t),a.ZodStringFormat.init(e,t)}),t.ZodISOTime=s.$constructor("ZodISOTime",(e,t)=>{s.$ZodISOTime.init(e,t),a.ZodStringFormat.init(e,t)}),t.ZodISODuration=s.$constructor("ZodISODuration",(e,t)=>{s.$ZodISODuration.init(e,t),a.ZodStringFormat.init(e,t)})},45039:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{localeError:a()}};const s=o(n(90523)),a=()=>{const e={string:{unit:"znaků",verb:"mít"},file:{unit:"bajtů",verb:"mít"},array:{unit:"prvků",verb:"mít"},set:{unit:"prvků",verb:"mít"}};function t(t){return e[t]??null}const n={regex:"regulární výraz",email:"e-mailová adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a čas ve formátu ISO",date:"datum ve formátu ISO",time:"čas ve formátu ISO",duration:"doba trvání ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"řetězec zakódovaný ve formátu base64",base64url:"řetězec zakódovaný ve formátu base64url",json_string:"řetězec ve formátu JSON",e164:"číslo E.164",jwt:"JWT",template_literal:"vstup"};return e=>{switch(e.code){case"invalid_type":return`Neplatný vstup: očekáváno ${e.expected}, obdrženo ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"číslo";case"string":return"řetězec";case"boolean":return"boolean";case"bigint":return"bigint";case"function":return"funkce";case"symbol":return"symbol";case"undefined":return"undefined";case"object":if(Array.isArray(e))return"pole";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Neplatný vstup: očekáváno ${s.stringifyPrimitive(e.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${s.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`Hodnota je příliš velká: ${e.origin??"hodnota"} musí mít ${n}${e.maximum.toString()} ${r.unit??"prvků"}`:`Hodnota je příliš velká: ${e.origin??"hodnota"} musí být ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`Hodnota je příliš malá: ${e.origin??"hodnota"} musí mít ${n}${e.minimum.toString()} ${r.unit??"prvků"}`:`Hodnota je příliš malá: ${e.origin??"hodnota"} musí být ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Neplatný řetězec: musí začínat na "${t.prefix}"`:"ends_with"===t.format?`Neplatný řetězec: musí končit na "${t.suffix}"`:"includes"===t.format?`Neplatný řetězec: musí obsahovat "${t.includes}"`:"regex"===t.format?`Neplatný řetězec: musí odpovídat vzoru ${t.pattern}`:`Neplatný formát ${n[t.format]??e.format}`}case"not_multiple_of":return`Neplatné číslo: musí být násobkem ${e.divisor}`;case"unrecognized_keys":return`Neznámé klíče: ${s.joinValues(e.keys,", ")}`;case"invalid_key":return`Neplatný klíč v ${e.origin}`;case"invalid_union":default:return"Neplatný vstup";case"invalid_element":return`Neplatná hodnota v ${e.origin}`}}}},45058:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{localeError:a()}};const s=o(n(90523)),a=()=>{const e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function t(t){return e[t]??null}const n={regex:"entrée",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"};return e=>{switch(e.code){case"invalid_type":return`Entrée invalide : attendu ${e.expected}, reçu ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Entrée invalide : attendu ${s.stringifyPrimitive(e.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${s.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"≤":"<",r=t(e.origin);return r?`Trop grand : attendu que ${e.origin??"la valeur"} ait ${n}${e.maximum.toString()} ${r.unit}`:`Trop grand : attendu que ${e.origin??"la valeur"} soit ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?"≥":">",r=t(e.origin);return r?`Trop petit : attendu que ${e.origin} ait ${n}${e.minimum.toString()} ${r.unit}`:`Trop petit : attendu que ${e.origin} soit ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Chaîne invalide : doit commencer par "${t.prefix}"`:"ends_with"===t.format?`Chaîne invalide : doit se terminer par "${t.suffix}"`:"includes"===t.format?`Chaîne invalide : doit inclure "${t.includes}"`:"regex"===t.format?`Chaîne invalide : doit correspondre au motif ${t.pattern}`:`${n[t.format]??e.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${e.divisor}`;case"unrecognized_keys":return`Clé${e.keys.length>1?"s":""} non reconnue${e.keys.length>1?"s":""} : ${s.joinValues(e.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${e.origin}`;case"invalid_union":default:return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${e.origin}`}}}},45167:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.zhTW=t.zhCN=t.vi=t.ur=t.ua=t.tr=t.th=t.ta=t.sv=t.sl=t.ru=t.pt=t.pl=t.ps=t.ota=t.no=t.nl=t.ms=t.mk=t.ko=t.kh=t.ja=t.it=t.id=t.hu=t.he=t.frCA=t.fr=t.fi=t.fa=t.es=t.eo=t.en=t.de=t.cs=t.ca=t.be=t.az=t.ar=void 0;var i=n(95832);Object.defineProperty(t,"ar",{enumerable:!0,get:function(){return r(i).default}});var o=n(41168);Object.defineProperty(t,"az",{enumerable:!0,get:function(){return r(o).default}});var s=n(47714);Object.defineProperty(t,"be",{enumerable:!0,get:function(){return r(s).default}});var a=n(12949);Object.defineProperty(t,"ca",{enumerable:!0,get:function(){return r(a).default}});var c=n(45039);Object.defineProperty(t,"cs",{enumerable:!0,get:function(){return r(c).default}});var u=n(45292);Object.defineProperty(t,"de",{enumerable:!0,get:function(){return r(u).default}});var l=n(28208);Object.defineProperty(t,"en",{enumerable:!0,get:function(){return r(l).default}});var d=n(8761);Object.defineProperty(t,"eo",{enumerable:!0,get:function(){return r(d).default}});var p=n(3517);Object.defineProperty(t,"es",{enumerable:!0,get:function(){return r(p).default}});var f=n(12058);Object.defineProperty(t,"fa",{enumerable:!0,get:function(){return r(f).default}});var m=n(44370);Object.defineProperty(t,"fi",{enumerable:!0,get:function(){return r(m).default}});var h=n(87073);Object.defineProperty(t,"fr",{enumerable:!0,get:function(){return r(h).default}});var v=n(45058);Object.defineProperty(t,"frCA",{enumerable:!0,get:function(){return r(v).default}});var g=n(82848);Object.defineProperty(t,"he",{enumerable:!0,get:function(){return r(g).default}});var y=n(50832);Object.defineProperty(t,"hu",{enumerable:!0,get:function(){return r(y).default}});var _=n(50974);Object.defineProperty(t,"id",{enumerable:!0,get:function(){return r(_).default}});var b=n(55662);Object.defineProperty(t,"it",{enumerable:!0,get:function(){return r(b).default}});var x=n(5542);Object.defineProperty(t,"ja",{enumerable:!0,get:function(){return r(x).default}});var w=n(92);Object.defineProperty(t,"kh",{enumerable:!0,get:function(){return r(w).default}});var S=n(28195);Object.defineProperty(t,"ko",{enumerable:!0,get:function(){return r(S).default}});var O=n(89917);Object.defineProperty(t,"mk",{enumerable:!0,get:function(){return r(O).default}});var k=n(20645);Object.defineProperty(t,"ms",{enumerable:!0,get:function(){return r(k).default}});var $=n(2519);Object.defineProperty(t,"nl",{enumerable:!0,get:function(){return r($).default}});var P=n(66068);Object.defineProperty(t,"no",{enumerable:!0,get:function(){return r(P).default}});var E=n(37005);Object.defineProperty(t,"ota",{enumerable:!0,get:function(){return r(E).default}});var T=n(62790);Object.defineProperty(t,"ps",{enumerable:!0,get:function(){return r(T).default}});var C=n(12297);Object.defineProperty(t,"pl",{enumerable:!0,get:function(){return r(C).default}});var I=n(513);Object.defineProperty(t,"pt",{enumerable:!0,get:function(){return r(I).default}});var j=n(25570);Object.defineProperty(t,"ru",{enumerable:!0,get:function(){return r(j).default}});var R=n(78520);Object.defineProperty(t,"sl",{enumerable:!0,get:function(){return r(R).default}});var N=n(52338);Object.defineProperty(t,"sv",{enumerable:!0,get:function(){return r(N).default}});var A=n(3424);Object.defineProperty(t,"ta",{enumerable:!0,get:function(){return r(A).default}});var M=n(57041);Object.defineProperty(t,"th",{enumerable:!0,get:function(){return r(M).default}});var D=n(54003);Object.defineProperty(t,"tr",{enumerable:!0,get:function(){return r(D).default}});var Z=n(75911);Object.defineProperty(t,"ua",{enumerable:!0,get:function(){return r(Z).default}});var U=n(67316);Object.defineProperty(t,"ur",{enumerable:!0,get:function(){return r(U).default}});var L=n(24290);Object.defineProperty(t,"vi",{enumerable:!0,get:function(){return r(L).default}});var z=n(40999);Object.defineProperty(t,"zhCN",{enumerable:!0,get:function(){return r(z).default}});var F=n(9587);Object.defineProperty(t,"zhTW",{enumerable:!0,get:function(){return r(F).default}})},45292:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{localeError:a()}};const s=o(n(90523)),a=()=>{const e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function t(t){return e[t]??null}const n={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"};return e=>{switch(e.code){case"invalid_type":return`Ungültige Eingabe: erwartet ${e.expected}, erhalten ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"Zahl";case"object":if(Array.isArray(e))return"Array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Ungültige Eingabe: erwartet ${s.stringifyPrimitive(e.values[0])}`:`Ungültige Option: erwartet eine von ${s.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`Zu groß: erwartet, dass ${e.origin??"Wert"} ${n}${e.maximum.toString()} ${r.unit??"Elemente"} hat`:`Zu groß: erwartet, dass ${e.origin??"Wert"} ${n}${e.maximum.toString()} ist`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`Zu klein: erwartet, dass ${e.origin} ${n}${e.minimum.toString()} ${r.unit} hat`:`Zu klein: erwartet, dass ${e.origin} ${n}${e.minimum.toString()} ist`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Ungültiger String: muss mit "${t.prefix}" beginnen`:"ends_with"===t.format?`Ungültiger String: muss mit "${t.suffix}" enden`:"includes"===t.format?`Ungültiger String: muss "${t.includes}" enthalten`:"regex"===t.format?`Ungültiger String: muss dem Muster ${t.pattern} entsprechen`:`Ungültig: ${n[t.format]??e.format}`}case"not_multiple_of":return`Ungültige Zahl: muss ein Vielfaches von ${e.divisor} sein`;case"unrecognized_keys":return`${e.keys.length>1?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: ${s.joinValues(e.keys,", ")}`;case"invalid_key":return`Ungültiger Schlüssel in ${e.origin}`;case"invalid_union":default:return"Ungültige Eingabe";case"invalid_element":return`Ungültiger Wert in ${e.origin}`}}}},45753:(e,t,n)=>{"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?e.exports=n(17833):e.exports=n(76033)},45866:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ServerConfig=t.ConfigError=void 0;class n extends Error{constructor(e,t){super(t),this.variable=e,this.name="ConfigError"}}t.ConfigError=n;const r=["error","warn","info","debug","silly"];class i{constructor(e,t,n,r,i,o,s,a){this.url=e,this.socketIoPort=t,this.username=n,this.password=r,this.allowSelfSignedCertificate=i,this.readOnly=o,this.scriptAutoRun=s,this.logLevel=a}static fromEnvironment(e){const t=function(e,t){const r=o(e,t);if(!r)throw new n(t,"is required.");return r}(e,"IOBROKER_MCP_URL"),a=function(e){let t;try{t=new URL(e)}catch(e){throw new n("IOBROKER_MCP_URL","must be a valid URL like 'http://host:8081'.")}if("http:"!==t.protocol&&"https:"!==t.protocol)throw new n("IOBROKER_MCP_URL","must use the http or https scheme.");if(!t.hostname)throw new n("IOBROKER_MCP_URL","must contain a host name.");if(t.username||t.password)throw new n("IOBROKER_MCP_URL","must not contain a username or password; use IOBROKER_MCP_USERNAME and IOBROKER_MCP_PASSWORD.");return t}(t),c=function(e){if(!e.port)return"https:"===e.protocol?443:80;const t=Number(e.port);if(!Number.isInteger(t)||t<1||t>65535)throw new n("IOBROKER_MCP_URL","must contain a valid port.");return t}(a),u=o(e,"IOBROKER_MCP_USERNAME"),l=o(e,"IOBROKER_MCP_PASSWORD");if(void 0!==l&&void 0===u)throw new n("IOBROKER_MCP_USERNAME","is required when IOBROKER_MCP_PASSWORD is set.");if(void 0!==u&&void 0===l)throw new n("IOBROKER_MCP_PASSWORD","is required when IOBROKER_MCP_USERNAME is set.");return new i(t.replace(/\/+$/,""),c,u,l,s(e,"IOBROKER_MCP_ALLOW_SELF_SIGNED",!1),s(e,"IOBROKER_MCP_READ_ONLY",!1),s(e,"IOBROKER_MCP_SCRIPT_AUTO_RUN",!1),function(e){var t;const i=null===(t=o(e,"IOBROKER_MCP_LOG_LEVEL"))||void 0===t?void 0:t.toLowerCase();if(void 0===i)return"info";if(!r.includes(i))throw new n("IOBROKER_MCP_LOG_LEVEL",`must be one of ${r.join(", ")}.`);return i}(e))}toJSON(){return{url:this.url,username:this.username,password:void 0===this.password?void 0:"***",allowSelfSignedCertificate:this.allowSelfSignedCertificate,readOnly:this.readOnly,scriptAutoRun:this.scriptAutoRun,logLevel:this.logLevel}}toLogString(){var e;return[`url=${this.url}`,`username=${null!==(e=this.username)&&void 0!==e?e:"(none)"}`,`password="${void 0===this.password?"(none)":"***"}"`,`readOnly=${this.readOnly}`,`allowSelfSigned=${this.allowSelfSignedCertificate}`,`scriptAutoRun=${this.scriptAutoRun}`,`logLevel=${this.logLevel}`].join(" ")}}function o(e,t){var n;return(null===(n=e[t])||void 0===n?void 0:n.trim())||void 0}function s(e,t,r){var i;const s=null===(i=o(e,t))||void 0===i?void 0:i.toLowerCase();if(void 0===s)return r;if("true"===s||"1"===s||"yes"===s||"on"===s)return!0;if("false"===s||"0"===s||"no"===s||"off"===s)return!1;throw new n(t,"must be one of true/false, 1/0, yes/no or on/off.")}t.ServerConfig=i},46163:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseBrandedDef=void 0;const r=n(73524);t.parseBrandedDef=function(e,t){return(0,r.parseDef)(e.type._def,t)}},46172:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseObjectDef=void 0;const r=n(73524);function i(e){try{return e.isOptional()}catch{return!0}}t.parseObjectDef=function(e,t){const n="openAi"===t.target,o={type:"object",properties:{}},s=[],a=e.shape();for(const e in a){let c=a[e];if(void 0===c||void 0===c._def)continue;let u=i(c);u&&n&&("ZodOptional"===c._def.typeName&&(c=c._def.innerType),c.isNullable()||(c=c.nullable()),u=!1);const l=(0,r.parseDef)(c._def,{...t,currentPath:[...t.currentPath,"properties",e],propertyPath:[...t.currentPath,"properties",e]});void 0!==l&&(o.properties[e]=l,u||s.push(e))}s.length&&(o.required=s);const c=function(e,t){if("ZodNever"!==e.catchall._def.typeName)return(0,r.parseDef)(e.catchall._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]});switch(e.unknownKeys){case"passthrough":return t.allowedAdditionalProperties;case"strict":return t.rejectedAdditionalProperties;case"strip":return"strict"===t.removeAdditionalStrategy?t.allowedAdditionalProperties:t.rejectedAdditionalProperties}}(e,t);return void 0!==c&&(o.additionalProperties=c),o}},46286:(e,t,n)=>{"use strict";const{Writable:r}=n(2203),i=n(42971),{BINARY_TYPES:o,EMPTY_BUFFER:s,kStatusCode:a,kWebSocket:c}=n(32614),{concat:u,toArrayBuffer:l,unmask:d}=n(93338),{isValidStatusCode:p,isValidUTF8:f}=n(95880),m=Buffer[Symbol.species];e.exports=class extends r{constructor(e={}){super(),this._allowSynchronousEvents=void 0===e.allowSynchronousEvents||e.allowSynchronousEvents,this._binaryType=e.binaryType||o[0],this._extensions=e.extensions||{},this._isServer=!!e.isServer,this._maxPayload=0|e.maxPayload,this._skipUTF8Validation=!!e.skipUTF8Validation,this[c]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=0}_write(e,t,n){if(8===this._opcode&&0==this._state)return n();this._bufferedBytes+=e.length,this._buffers.push(e),this.startLoop(n)}consume(e){if(this._bufferedBytes-=e,e===this._buffers[0].length)return this._buffers.shift();if(e<this._buffers[0].length){const t=this._buffers[0];return this._buffers[0]=new m(t.buffer,t.byteOffset+e,t.length-e),new m(t.buffer,t.byteOffset,e)}const t=Buffer.allocUnsafe(e);do{const n=this._buffers[0],r=t.length-e;e>=n.length?t.set(this._buffers.shift(),r):(t.set(new Uint8Array(n.buffer,n.byteOffset,e),r),this._buffers[0]=new m(n.buffer,n.byteOffset+e,n.length-e)),e-=n.length}while(e>0);return t}startLoop(e){this._loop=!0;do{switch(this._state){case 0:this.getInfo(e);break;case 1:this.getPayloadLength16(e);break;case 2:this.getPayloadLength64(e);break;case 3:this.getMask();break;case 4:this.getData(e);break;case 5:case 6:return void(this._loop=!1)}}while(this._loop);this._errored||e()}getInfo(e){if(this._bufferedBytes<2)return void(this._loop=!1);const t=this.consume(2);if(48&t[0])return void e(this.createError(RangeError,"RSV2 and RSV3 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_2_3"));const n=!(64&~t[0]);if(!n||this._extensions[i.extensionName]){if(this._fin=!(128&~t[0]),this._opcode=15&t[0],this._payloadLength=127&t[1],0===this._opcode){if(n)return void e(this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1"));if(!this._fragmented)return void e(this.createError(RangeError,"invalid opcode 0",!0,1002,"WS_ERR_INVALID_OPCODE"));this._opcode=this._fragmented}else if(1===this._opcode||2===this._opcode){if(this._fragmented)return void e(this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE"));this._compressed=n}else{if(!(this._opcode>7&&this._opcode<11))return void e(this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE"));if(!this._fin)return void e(this.createError(RangeError,"FIN must be set",!0,1002,"WS_ERR_EXPECTED_FIN"));if(n)return void e(this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1"));if(this._payloadLength>125||8===this._opcode&&1===this._payloadLength)return void e(this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH"))}if(this._fin||this._fragmented||(this._fragmented=this._opcode),this._masked=!(128&~t[1]),this._isServer){if(!this._masked)return void e(this.createError(RangeError,"MASK must be set",!0,1002,"WS_ERR_EXPECTED_MASK"))}else if(this._masked)return void e(this.createError(RangeError,"MASK must be clear",!0,1002,"WS_ERR_UNEXPECTED_MASK"));126===this._payloadLength?this._state=1:127===this._payloadLength?this._state=2:this.haveLength(e)}else e(this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1"))}getPayloadLength16(e){this._bufferedBytes<2?this._loop=!1:(this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength(e))}getPayloadLength64(e){if(this._bufferedBytes<8)return void(this._loop=!1);const t=this.consume(8),n=t.readUInt32BE(0);n>Math.pow(2,21)-1?e(this.createError(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH")):(this._payloadLength=n*Math.pow(2,32)+t.readUInt32BE(4),this.haveLength(e))}haveLength(e){this._payloadLength&&this._opcode<8&&(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0)?e(this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH")):this._masked?this._state=3:this._state=4}getMask(){this._bufferedBytes<4?this._loop=!1:(this._mask=this.consume(4),this._state=4)}getData(e){let t=s;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength)return void(this._loop=!1);t=this.consume(this._payloadLength),this._masked&&0!==(this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3])&&d(t,this._mask)}if(this._opcode>7)this.controlMessage(t,e);else{if(this._compressed)return this._state=5,void this.decompress(t,e);t.length&&(this._messageLength=this._totalPayloadLength,this._fragments.push(t)),this.dataMessage(e)}}decompress(e,t){this._extensions[i.extensionName].decompress(e,this._fin,(e,n)=>{if(e)return t(e);if(n.length){if(this._messageLength+=n.length,this._messageLength>this._maxPayload&&this._maxPayload>0){const e=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");return void t(e)}this._fragments.push(n)}this.dataMessage(t),0===this._state&&this.startLoop(t)})}dataMessage(e){if(!this._fin)return void(this._state=0);const t=this._messageLength,n=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],2===this._opcode){let r;r="nodebuffer"===this._binaryType?u(n,t):"arraybuffer"===this._binaryType?l(u(n,t)):"blob"===this._binaryType?new Blob(n):n,this._allowSynchronousEvents?(this.emit("message",r,!0),this._state=0):(this._state=6,setImmediate(()=>{this.emit("message",r,!0),this._state=0,this.startLoop(e)}))}else{const r=u(n,t);if(!this._skipUTF8Validation&&!f(r)){const t=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");return void e(t)}5===this._state||this._allowSynchronousEvents?(this.emit("message",r,!1),this._state=0):(this._state=6,setImmediate(()=>{this.emit("message",r,!1),this._state=0,this.startLoop(e)}))}}controlMessage(e,t){if(8!==this._opcode)this._allowSynchronousEvents?(this.emit(9===this._opcode?"ping":"pong",e),this._state=0):(this._state=6,setImmediate(()=>{this.emit(9===this._opcode?"ping":"pong",e),this._state=0,this.startLoop(t)}));else{if(0===e.length)this._loop=!1,this.emit("conclude",1005,s),this.end();else{const n=e.readUInt16BE(0);if(!p(n)){const e=this.createError(RangeError,`invalid status code ${n}`,!0,1002,"WS_ERR_INVALID_CLOSE_CODE");return void t(e)}const r=new m(e.buffer,e.byteOffset+2,e.length-2);if(!this._skipUTF8Validation&&!f(r)){const e=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");return void t(e)}this._loop=!1,this.emit("conclude",n,r),this.end()}this._state=0}}createError(e,t,n,r,i){this._loop=!1,this._errored=!0;const o=new e(n?`Invalid WebSocket frame: ${t}`:t);return Error.captureStackTrace(o,this.createError),o.code=i,o[a]=r,o}}},46486:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TOOL_DESCRIPTIONS=t.TOOL_TITLES=t.TOOL_NAMES=t.TOOL_SCHEMAS=void 0,t.isToolName=function(e){return Object.prototype.hasOwnProperty.call(t.TOOL_SCHEMAS,e)},t.TOOL_SCHEMAS={iobroker_get_scripts:{type:"object",properties:{pathPrefix:{type:"string",description:"Only return directories and scripts whose ioBroker id starts with this prefix, e.g. 'script.js.common.Licht'. Omit to get everything."},limit:{type:"number",description:"Maximum number of scripts to return (1-500, default 200). Directories are always returned completely."}},required:[],additionalProperties:!1},iobroker_get_script_content:{type:"object",properties:{scriptId:{type:"string",description:"Full ioBroker script id, e.g. 'script.js.common.MyScript'. Use iobroker_get_scripts to look it up."},maxLength:{type:"number",description:"Maximum number of characters to return (default 50000). The result is marked as truncated when the source is longer."}},required:["scriptId"],additionalProperties:!1},iobroker_get_changed_scripts:{type:"object",properties:{refresh:{type:"boolean",description:"Re-evaluate every script against the ioBroker server before answering. Slower but accurate. Default false."}},required:[],additionalProperties:!1},iobroker_get_js_instances:{type:"object",properties:{scriptId:{type:"string",description:"Optional script id. When given, the result contains the javascript instance the script runs on."}},required:[],additionalProperties:!1},iobroker_get_state:{type:"object",properties:{stateId:{type:"string",description:"Full ioBroker state id, e.g. 'javascript.0.myState' or '0_userdata.0.temperature'."}},required:["stateId"],additionalProperties:!1},iobroker_get_logs:{type:"object",properties:{hostId:{type:"string",description:"Optional full ioBroker host id, e.g. 'system.host.myHost'. Omit only when exactly one host is configured."},lines:{type:"number",description:"Maximum number of recent log lines to read before filtering (1-500, default 100)."},level:{type:"string",enum:["silly","debug","info","warn","error"],description:"Minimum severity to include. For example, 'warn' returns warnings and errors."},source:{type:"string",description:"Optional case-insensitive substring filter for the source of an entry, e.g. 'javascript.0'. The message text is not searched."},search:{type:"string",description:"Optional case-insensitive substring to find in an entry, including its continuation lines such as a stack trace. A matching entry is returned completely."}},required:[],additionalProperties:!1},iobroker_upload_script:{type:"object",properties:{scriptId:{type:"string",description:"Full ioBroker script id of the script that should be uploaded from disk to the ioBroker server."}},required:["scriptId"],additionalProperties:!1},iobroker_upload_all_changed_scripts:{type:"object",properties:{},required:[],additionalProperties:!1},iobroker_download_script:{type:"object",properties:{scriptId:{type:"string",description:"Full ioBroker script id of the script that should be downloaded from the ioBroker server to disk. Fails when the file has unsaved editor changes."}},required:["scriptId"],additionalProperties:!1},iobroker_start_script:{type:"object",properties:{scriptId:{type:"string",description:"Full ioBroker script id of the script that should be started (enabled) on the ioBroker server."}},required:["scriptId"],additionalProperties:!1},iobroker_stop_script:{type:"object",properties:{scriptId:{type:"string",description:"Full ioBroker script id of the script that should be stopped (disabled) on the ioBroker server."}},required:["scriptId"],additionalProperties:!1},iobroker_create_script:{type:"object",properties:{directoryId:{type:"string",description:"ioBroker id of the target directory, e.g. 'script.js.common'. Omit to create the script in the root directory. Use iobroker_get_scripts to look up available directories."},fileName:{type:"string",description:"File name without extension, e.g. 'MyScript'. Must not contain path separators."},language:{type:"string",enum:["javascript","typescript"],description:"Language of the new script."},source:{type:"string",description:"Initial source code. Written to the ioBroker server and to the local file. Defaults to an empty string."}},required:["fileName","language"],additionalProperties:!1},iobroker_create_directory:{type:"object",properties:{directoryId:{type:"string",description:"ioBroker id of the new directory, e.g. 'script.js.common.NewFolder'. When 'name' is given this is the parent directory id (e.g. 'script.js.common', or 'script.js' for the root) and it has to exist already. When the full id is passed without 'name', missing intermediate directories are created as well."},name:{type:"string",description:"Optional directory name. When omitted, the last segment of 'directoryId' is used. Must not contain dots or path separators."}},required:["directoryId"],additionalProperties:!1},iobroker_rename_script:{type:"object",properties:{scriptId:{type:"string",description:"Full ioBroker script id of the script to rename."},newName:{type:"string",description:"New script name without path separators. The directory does not change."}},required:["scriptId","newName"],additionalProperties:!1},iobroker_move_script:{type:"object",properties:{scriptId:{type:"string",description:"Full ioBroker script id of the script to move."},targetDirectoryId:{type:"string",description:"ioBroker id of the target directory, e.g. 'script.js.common'. Use iobroker_get_scripts to look up available directories."}},required:["scriptId","targetDirectoryId"],additionalProperties:!1},iobroker_delete_script:{type:"object",properties:{scriptId:{type:"string",description:"Full ioBroker script id of the script that should be deleted on the ioBroker server and on disk."}},required:["scriptId"],additionalProperties:!1},iobroker_delete_directory:{type:"object",properties:{directoryId:{type:"string",description:"ioBroker id of the empty directory that should be deleted, e.g. 'script.js.common.OldFolder'. Use iobroker_get_scripts to look up available directories."}},required:["directoryId"],additionalProperties:!1}},t.TOOL_NAMES=Object.keys(t.TOOL_SCHEMAS),t.TOOL_TITLES={iobroker_get_scripts:"Get ioBroker scripts",iobroker_get_script_content:"Get ioBroker script content",iobroker_get_changed_scripts:"Get changed ioBroker scripts",iobroker_get_js_instances:"Get ioBroker javascript instances",iobroker_get_state:"Get ioBroker state",iobroker_get_logs:"Get ioBroker logs",iobroker_upload_script:"Upload ioBroker script",iobroker_upload_all_changed_scripts:"Upload all changed ioBroker scripts",iobroker_download_script:"Download ioBroker script",iobroker_start_script:"Start ioBroker script",iobroker_stop_script:"Stop ioBroker script",iobroker_create_script:"Create ioBroker script",iobroker_create_directory:"Create ioBroker directory",iobroker_rename_script:"Rename ioBroker script",iobroker_move_script:"Move ioBroker script",iobroker_delete_script:"Delete ioBroker script",iobroker_delete_directory:"Delete ioBroker directory"},t.TOOL_DESCRIPTIONS={iobroker_get_scripts:"Lists the ioBroker.javascript directories and scripts that the extension knows about. Returns directory ids (use them as directoryId for creating or moving scripts) and script ids (use them as scriptId for all other tools) together with the local file path, engine type, enabled state and whether the script is dirty or remote only. Use it before any tool that needs a script or directory id. Does not read the script source code, use iobroker_get_script_content for that.",iobroker_get_script_content:"Returns the source code of one ioBroker script. The local file is preferred; when the file does not exist the source stored on the ioBroker server is returned and 'fromDisk' is false. The result is marked as truncated when it exceeds maxLength. Only works for script ids, not for directories.",iobroker_get_changed_scripts:"Lists the ioBroker scripts whose local file differs from the version on the ioBroker server. Set 'refresh' to true to re-evaluate every script against the server first; that requires an active connection and is slower. Use iobroker_upload_all_changed_scripts to push the changes to the server.",iobroker_get_js_instances:"Lists the installed javascript adapter instances of ioBroker. When a scriptId is given, the result also contains the instance the script currently runs on. Read-only and requires an active ioBroker connection.",iobroker_get_state:"Reads the current value of an ioBroker state, including the acknowledge flag and the timestamps. Use it to inspect what an ioBroker script produced or to debug state based logic. Requires an active ioBroker connection.",iobroker_get_logs:"Reads the tail of an ioBroker host log. Requests up to 500 recent log lines (100 by default) and then filters whole entries by minimum severity, source substring and text substring, keeping continuation lines such as stack traces with their entry. Specify hostId when more than one host is configured. The response is capped at 30,000 characters. Requires an active ioBroker connection; log contents may contain sensitive information.",iobroker_upload_script:"Uploads the local content of one script to the ioBroker server and overwrites the server version. Unsaved editor content is not included, the file has to be saved first. Use iobroker_upload_all_changed_scripts to upload every changed script at once.",iobroker_upload_all_changed_scripts:"Uploads every script whose local file differs from the ioBroker server. Returns the uploaded ids and the ids that failed with a reason. Use it after editing several scripts. Unsaved editor content is not included.",iobroker_download_script:"Downloads one script from the ioBroker server and overwrites the local file. Fails with the code 'unsaved_changes' when the file has unsaved editor changes; the user has to save or revert it first. Use it before reading a script that might have been changed on the server.",iobroker_start_script:"Enables a script on the ioBroker server so the javascript adapter starts it. This does not upload anything, the server version is used. Requires an active ioBroker connection.",iobroker_stop_script:"Disables a script on the ioBroker server so the javascript adapter stops running it. The script itself stays on the server. Requires an active ioBroker connection.",iobroker_create_script:"Creates a new script on the ioBroker server and the matching local file. The same source is written to both places. Fails when a script or file with that name already exists in the directory. Pass a directoryId to place the script in a subdirectory; omit it to use the root directory.",iobroker_create_directory:"Creates a directory on the ioBroker server and the matching local folder. Pass the full directory id to create missing intermediate directories in one step, or an existing parent id together with a name. Fails when the directory or folder already exists.",iobroker_rename_script:"Renames a script on the ioBroker server and renames the local file. The directory does not change; use iobroker_move_script for that. Returns the old and the new script id.",iobroker_move_script:"Moves a script into another directory on the ioBroker server and moves the local file into the matching folder. The directory has to exist already. Returns the old and the new script id.",iobroker_delete_script:"Deletes a script on the ioBroker server and deletes the local file. This cannot be undone. Confirm the exact script id with the user before using this tool.",iobroker_delete_directory:"Deletes an empty directory on the ioBroker server and the matching local folder. The directory has to be empty: move or delete its scripts and subdirectories first. This cannot be undone; the root directory, 'script.js.common' and 'script.js.global' cannot be deleted. Confirm the exact directory id with the user before using this tool."}},46504:(e,t,n)=>{"use strict";var r=n(87016).parse,i={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},o=String.prototype.endsWith||function(e){return e.length<=this.length&&-1!==this.indexOf(e,this.length-e.length)};function s(e){return process.env[e.toLowerCase()]||process.env[e.toUpperCase()]||""}t.getProxyForUrl=function(e){var t="string"==typeof e?r(e):e||{},n=t.protocol,a=t.host,c=t.port;if("string"!=typeof a||!a||"string"!=typeof n)return"";if(n=n.split(":",1)[0],!function(e,t){var n=(s("npm_config_no_proxy")||s("no_proxy")).toLowerCase();return!n||"*"!==n&&n.split(/[,\s]/).every(function(n){if(!n)return!0;var r=n.match(/^(.+):(\d+)$/),i=r?r[1]:n,s=r?parseInt(r[2]):0;return!(!s||s===t)||(/^[.*]/.test(i)?("*"===i.charAt(0)&&(i=i.slice(1)),!o.call(e,i)):e!==i)})}(a=a.replace(/:\d*$/,""),c=parseInt(c)||i[n]||0))return"";var u=s("npm_config_"+n+"_proxy")||s(n+"_proxy")||s("npm_config_proxy")||s("all_proxy");return u&&-1===u.indexOf("://")&&(u=n+"://"+u),u}},46855:(e,t,n)=>{var r,i,o=n(90291),s=n(6809),a=n(29140),c=n(22370),u=n(42121),l=n(84953)("engine.io-client:websocket");if("undefined"!=typeof WebSocket?r=WebSocket:"undefined"!=typeof self&&(r=self.WebSocket||self.MozWebSocket),"undefined"==typeof window)try{i=n(14211)}catch(e){}var d=r||i;function p(e){e&&e.forceBase64&&(this.supportsBinary=!1),this.perMessageDeflate=e.perMessageDeflate,this.usingBrowserWebSocket=r&&!e.forceNode,this.protocols=e.protocols,this.usingBrowserWebSocket||(d=i),o.call(this,e)}e.exports=p,c(p,o),p.prototype.name="websocket",p.prototype.supportsBinary=!0,p.prototype.doOpen=function(){if(this.check()){var e=this.uri(),t=this.protocols,n={};this.isReactNative||(n.agent=this.agent,n.perMessageDeflate=this.perMessageDeflate,n.pfx=this.pfx,n.key=this.key,n.passphrase=this.passphrase,n.cert=this.cert,n.ca=this.ca,n.ciphers=this.ciphers,n.rejectUnauthorized=this.rejectUnauthorized),this.extraHeaders&&(n.headers=this.extraHeaders),this.localAddress&&(n.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket&&!this.isReactNative?t?new d(e,t):new d(e):new d(e,t,n)}catch(e){return this.emit("error",e)}void 0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},p.prototype.addEventListeners=function(){var e=this;this.ws.onopen=function(){e.onOpen()},this.ws.onclose=function(){e.onClose()},this.ws.onmessage=function(t){e.onData(t.data)},this.ws.onerror=function(t){e.onError("websocket error",t)}},p.prototype.write=function(e){var t=this;this.writable=!1;for(var n=e.length,r=0,i=n;r<i;r++)(function(e){s.encodePacket(e,t.supportsBinary,function(r){if(!t.usingBrowserWebSocket){var i={};e.options&&(i.compress=e.options.compress),t.perMessageDeflate&&("string"==typeof r?Buffer.byteLength(r):r.length)<t.perMessageDeflate.threshold&&(i.compress=!1)}try{t.usingBrowserWebSocket?t.ws.send(r):t.ws.send(r,i)}catch(e){l("websocket closed before onclose event")}--n||(t.emit("flush"),setTimeout(function(){t.writable=!0,t.emit("drain")},0))})})(e[r])},p.prototype.onClose=function(){o.prototype.onClose.call(this)},p.prototype.doClose=function(){void 0!==this.ws&&this.ws.close()},p.prototype.uri=function(){var e=this.query||{},t=this.secure?"wss":"ws",n="";return this.port&&("wss"===t&&443!==Number(this.port)||"ws"===t&&80!==Number(this.port))&&(n=":"+this.port),this.timestampRequests&&(e[this.timestampParam]=u()),this.supportsBinary||(e.b64=1),(e=a.encode(e)).length&&(e="?"+e),t+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+e},p.prototype.check=function(){return!(!d||"__initialize"in d&&this.name===p.prototype.name)}},46908:function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionServiceAdmin4=void 0;const a=n(57698),c=n(52650),u=n(55853),l=n(34395),d=n(65532);let p=class{constructor(e){this.statusBarService=e,this.isConnected=!1,this.connectionTimeout=1e4,this.reconnectionTimeout=2e3,this.connectionEventListeners=new Array,this.client=void 0}registerConnectionEventListener(e){this.connectionEventListeners.includes(e)||this.connectionEventListeners.push(e)}connect(e,t,n){return s(this,void 0,void 0,function*(){const r=this.statusBarService.setStatusBarMessage(`$(sync~spin) Connecting to ioBroker on '${e}'`);return this.client&&this.client.connected&&this.client.disconnect(),new Promise((i,o)=>{this.client=a(e.toString()),this.registerSocketEvents();const s=setTimeout(()=>{this.isConnected||(r.dispose(),o(new Error(`Could not connect to '${e}' after ${this.connectionTimeout/1e3} seconds. Allow self signed certificate ${n}`)))},this.connectionTimeout);this.client.on("connect",()=>{clearTimeout(s),this.isConnected=!0,r.dispose(),i()}),this.client.on("connect_timeout",t=>{clearTimeout(s),r.dispose(),o(new Error(`Could not connect to '${e}'. Reason: ${t}.`))}),this.client.on("connect_error",t=>{clearTimeout(s),r.dispose(),o(new Error(`Could not connect to '${e}'. Reason: ${t}.`))}),this.client.on("reconnect_attempt",()=>{var e,n;null===(e=this.client)||void 0===e||e.disconnect(),null===(n=this.client)||void 0===n||n.removeAllListeners(),t&&(this.registerSocketEvents(),this.startReconnectTimeout())})})})}connectWithToken(){return s(this,void 0,void 0,function*(){throw new Error("Password protected ioBroker installations are not supported for Admin 4. Use Admin 5 or higher.")})}disconnect(){return new Promise(e=>{var t,n;null===(t=this.client)||void 0===t||t.disconnect(),null===(n=this.client)||void 0===n||n.on("disconnect",()=>{e()})})}registerForLogs(e){return new Promise((t,n)=>{this.client&&this.isConnected&&(this.client.on("log",t=>{e(t)}),this.client.emit("requireLog",!0,e=>{e?n(new Error(`Could not register for logs: ${e}`)):t()}))})}unregisterForLogs(e){return new Promise((t,n)=>{this.client&&this.isConnected&&(this.client.off("log",e),this.client.emit("requireLog",!1,e=>{e?n(new Error(`Could not unregister for logs: ${e}`)):t()}))})}registerForObjectChange(e,t){return new Promise((n,r)=>{this.client&&this.isConnected?(this.client.on("objectChange",(e,n)=>{t(e,n)}),this.client.emit("subscribeObjects",e,t=>{t?r(new Error(`Could not subscribe for pattern '${e}': ${t}`)):n()})):r(new Error(`Could not subscribe for pattern '${e}': Client is not connect`))})}unregisterObjectChange(e){return new Promise((t,n)=>{this.client&&this.isConnected?this.client.emit("unsubscribeObjects",e,r=>{r?n(new Error(`Could not unsubscribe for pattern '${e}': ${r}`)):t()}):t()})}getAllObjects(){throw new Error("Not implemented")}getObject(e){return(0,d.withAckTimeout)(new Promise((t,n)=>{this.client&&this.isConnected?this.client.emit("getObject",e,(r,i)=>{r?n(new Error(`Could not get object with args '${e}': ${r}`)):t(i)}):n(new Error(`Could not get object with id '${e}': Client is not connect`))}),`getObject '${e}'`)}setObject(e,t){return(0,d.withAckTimeout)(new Promise((n,r)=>{this.client&&this.isConnected?this.client.emit("setObject",e,t,t=>{t?r(new Error(`Could not upload script with id '${e}': ${t}`)):n()}):r(new Error(`Cannot get object with id '${e}': Client is not connect`))}),`setObject '${e}'`)}deleteObject(e){return(0,d.withAckTimeout)(new Promise((t,n)=>{this.client&&this.isConnected?this.client.emit("delObject",e,r=>{r?n(new Error(`Could not delete object '${e}': ${r}`)):t()}):n(new Error(`Could not delete object '${e}': Client is not connected`))}),`delObject '${e}'`)}extendObject(e,t){return(0,d.withAckTimeout)(new Promise((n,r)=>{this.client&&this.isConnected?this.client.emit("extendObject",e,t,i=>{i?r(new Error(`Could not extend object '${e}' with '${JSON.stringify(t)}'`)):n()}):r(new Error(`Could not extend object '${e}': Client is not connected`))}),`extendObject '${e}'`)}getSystemObjectView(e,t,n){return(0,d.withAckTimeout)(new Promise((r,i)=>{this.client&&this.isConnected?this.client.emit("getObjectView","system",e,{startkey:t,endkey:`${n}香`},(o,s)=>{o&&i(new Error(`Error while retreiving object view: Type: ${e} | startKey: ${t} | endKey: ${n}`)),r(s.rows.map(e=>e.value))}):i(new Error(`Error while retreiving object view: Type: ${e} | startKey: ${t} | endKey: ${n}`))}),`getObjectView '${e}'`)}getState(){throw new Error("Not implemented")}getLogs(e,t){return new Promise((n,r)=>{const i=this.client;if(!i||!this.isConnected)return void r(new Error("Could not get logs: Client is not connected."));let o=!1;const s=setTimeout(()=>{o||(o=!0,r(new Error(`Could not get logs from host '${e}': The host did not answer within ${l.HOST_COMMAND_TIMEOUT_MS/1e3} seconds.`)))},l.HOST_COMMAND_TIMEOUT_MS),a=t=>{if(o)return;o=!0,clearTimeout(s);const i=(0,l.readLogLinesAnswer)(t);"error"in i?r(new Error(`Could not get logs from host '${e}': ${i.error}`)):n(i.lines)};try{i.emit("sendToHost",e.replace(/^system\.host\./,""),"getLogs",t,a)}catch(t){o=!0,clearTimeout(s),r(t instanceof Error?t:new Error(`Could not get logs from host '${e}': ${t}`))}})}registerSocketEvents(){this.client&&(this.client.on("connect",()=>{this.isConnected=!0,this.connectionEventListeners.forEach(e=>e.onConnected())}),this.client.on("disconnect",()=>{this.isConnected=!1,this.connectionEventListeners.forEach(e=>e.onDisconnected())}))}startReconnectTimeout(){setTimeout(()=>s(this,void 0,void 0,function*(){var e;try{yield null===(e=this.client)||void 0===e?void 0:e.connect()}catch(e){this.startReconnectTimeout()}}),this.reconnectionTimeout)}};t.ConnectionServiceAdmin4=p,t.ConnectionServiceAdmin4=p=r([(0,c.injectable)(),o(0,(0,c.inject)(u.default.services.statusBarService)),i("design:paramtypes",[Object])],p)},47119:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},47714:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{localeError:c()}};const s=o(n(90523));function a(e,t,n,r){const i=Math.abs(e),o=i%10,s=i%100;return s>=11&&s<=19?r:1===o?t:o>=2&&o<=4?n:r}const c=()=>{const e={string:{unit:{one:"сімвал",few:"сімвалы",many:"сімвалаў"},verb:"мець"},array:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},set:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},file:{unit:{one:"байт",few:"байты",many:"байтаў"},verb:"мець"}};function t(t){return e[t]??null}const n={regex:"увод",email:"email адрас",url:"URL",emoji:"эмодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата і час",date:"ISO дата",time:"ISO час",duration:"ISO працягласць",ipv4:"IPv4 адрас",ipv6:"IPv6 адрас",cidrv4:"IPv4 дыяпазон",cidrv6:"IPv6 дыяпазон",base64:"радок у фармаце base64",base64url:"радок у фармаце base64url",json_string:"JSON радок",e164:"нумар E.164",jwt:"JWT",template_literal:"увод"};return e=>{switch(e.code){case"invalid_type":return`Няправільны ўвод: чакаўся ${e.expected}, атрымана ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"лік";case"object":if(Array.isArray(e))return"масіў";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Няправільны ўвод: чакалася ${s.stringifyPrimitive(e.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${s.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);if(r){const t=a(Number(e.maximum),r.unit.one,r.unit.few,r.unit.many);return`Занадта вялікі: чакалася, што ${e.origin??"значэнне"} павінна ${r.verb} ${n}${e.maximum.toString()} ${t}`}return`Занадта вялікі: чакалася, што ${e.origin??"значэнне"} павінна быць ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);if(r){const t=a(Number(e.minimum),r.unit.one,r.unit.few,r.unit.many);return`Занадта малы: чакалася, што ${e.origin} павінна ${r.verb} ${n}${e.minimum.toString()} ${t}`}return`Занадта малы: чакалася, што ${e.origin} павінна быць ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Няправільны радок: павінен пачынацца з "${t.prefix}"`:"ends_with"===t.format?`Няправільны радок: павінен заканчвацца на "${t.suffix}"`:"includes"===t.format?`Няправільны радок: павінен змяшчаць "${t.includes}"`:"regex"===t.format?`Няправільны радок: павінен адпавядаць шаблону ${t.pattern}`:`Няправільны ${n[t.format]??e.format}`}case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${e.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${e.keys.length>1?"ключы":"ключ"}: ${s.joinValues(e.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${e.origin}`;case"invalid_union":default:return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${e.origin}`}}}},48035:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.safeParseAsync=t.safeParse=t.parseAsync=t.parse=void 0;const s=o(n(76601)),a=n(79299);t.parse=s._parse(a.ZodRealError),t.parseAsync=s._parseAsync(a.ZodRealError),t.safeParse=s._safeParse(a.ZodRealError),t.safeParseAsync=s._safeParseAsync(a.ZodRealError)},48343:(e,t,n)=>{"use strict";const{normalizeIPv6:r,removeDotSegments:i,recomposeAuthority:o,normalizeComponentEncoding:s,isIPv4:a,nonSimpleDomain:c}=n(34834),{SCHEMES:u,getSchemeHandler:l}=n(343);function d(e,t,n,r){const o={};return r||(e=m(p(e,n),n),t=m(p(t,n),n)),!(n=n||{}).tolerant&&t.scheme?(o.scheme=t.scheme,o.userinfo=t.userinfo,o.host=t.host,o.port=t.port,o.path=i(t.path||""),o.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(o.userinfo=t.userinfo,o.host=t.host,o.port=t.port,o.path=i(t.path||""),o.query=t.query):(t.path?("/"===t.path[0]?o.path=i(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?o.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:o.path=t.path:o.path="/"+t.path,o.path=i(o.path)),o.query=t.query):(o.path=e.path,void 0!==t.query?o.query=t.query:o.query=e.query),o.userinfo=e.userinfo,o.host=e.host,o.port=e.port),o.scheme=e.scheme),o.fragment=t.fragment,o}function p(e,t){const n={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},r=Object.assign({},t),s=[],a=l(r.scheme||n.scheme);a&&a.serialize&&a.serialize(n,r),void 0!==n.path&&(r.skipEscape?n.path=unescape(n.path):(n.path=escape(n.path),void 0!==n.scheme&&(n.path=n.path.split("%3A").join(":")))),"suffix"!==r.reference&&n.scheme&&s.push(n.scheme,":");const c=o(n);if(void 0!==c&&("suffix"!==r.reference&&s.push("//"),s.push(c),n.path&&"/"!==n.path[0]&&s.push("/")),void 0!==n.path){let e=n.path;r.absolutePath||a&&a.absolutePath||(e=i(e)),void 0===c&&"/"===e[0]&&"/"===e[1]&&(e="/%2F"+e.slice(2)),s.push(e)}return void 0!==n.query&&s.push("?",n.query),void 0!==n.fragment&&s.push("#",n.fragment),s.join("")}const f=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function m(e,t){const n=Object.assign({},t),i={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let o=!1;"suffix"===n.reference&&(e=n.scheme?n.scheme+":"+e:"//"+e);const s=e.match(f);if(s){if(i.scheme=s[1],i.userinfo=s[3],i.host=s[4],i.port=parseInt(s[5],10),i.path=s[6]||"",i.query=s[7],i.fragment=s[8],isNaN(i.port)&&(i.port=s[5]),i.host)if(!1===a(i.host)){const e=r(i.host);i.host=e.host.toLowerCase(),o=e.isIPV6}else o=!0;void 0!==i.scheme||void 0!==i.userinfo||void 0!==i.host||void 0!==i.port||void 0!==i.query||i.path?void 0===i.scheme?i.reference="relative":void 0===i.fragment?i.reference="absolute":i.reference="uri":i.reference="same-document",n.reference&&"suffix"!==n.reference&&n.reference!==i.reference&&(i.error=i.error||"URI is not a "+n.reference+" reference.");const t=l(n.scheme||i.scheme);if(!(n.unicodeSupport||t&&t.unicodeSupport)&&i.host&&(n.domainHost||t&&t.domainHost)&&!1===o&&c(i.host))try{i.host=URL.domainToASCII(i.host.toLowerCase())}catch(e){i.error=i.error||"Host's domain name can not be converted to ASCII: "+e}(!t||t&&!t.skipNormalize)&&(-1!==e.indexOf("%")&&(void 0!==i.scheme&&(i.scheme=unescape(i.scheme)),void 0!==i.host&&(i.host=unescape(i.host))),i.path&&(i.path=escape(unescape(i.path))),i.fragment&&(i.fragment=encodeURI(decodeURIComponent(i.fragment)))),t&&t.parse&&t.parse(i,n)}else i.error=i.error||"URI can not be parsed.";return i}const h={SCHEMES:u,normalize:function(e,t){return"string"==typeof e?e=p(m(e,t),t):"object"==typeof e&&(e=m(p(e,t),t)),e},resolve:function(e,t,n){const r=n?Object.assign({scheme:"null"},n):{scheme:"null"},i=d(m(e,r),m(t,r),r,!0);return r.skipEscape=!0,p(i,r)},resolveComponent:d,equal:function(e,t,n){return"string"==typeof e?(e=unescape(e),e=p(s(m(e,n),!0),{...n,skipEscape:!0})):"object"==typeof e&&(e=p(s(e,!0),{...n,skipEscape:!0})),"string"==typeof t?(t=unescape(t),t=p(s(m(t,n),!0),{...n,skipEscape:!0})):"object"==typeof t&&(t=p(s(t,!0),{...n,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()},serialize:p,parse:m};e.exports=h,e.exports.default=h,e.exports.fastUri=h},48648:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},48833:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFirstArrayDuplicate=function(e){const t=new Set;for(const n of e){if(t.has(n))return n;t.add(n)}}},48945:function(e){var t;t=()=>(()=>{"use strict";var e={70(e,t){if(Object.defineProperty(t,"__esModule",{value:!0}),t.isWindows=void 0,"object"==typeof process)t.isWindows="win32"===process.platform;else if("object"==typeof navigator){let e=navigator.userAgent;t.isWindows=e.indexOf("Windows")>=0}},231(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.uriToFsPath=t.URI=void 0;const r=n(70),i=/^\w[\w\d+.-]*$/,o=/^\//,s=/^\/\//;function a(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!i.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!o.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(s.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}const c="",u="/",l=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class d{static isUri(e){return e instanceof d||!!e&&"string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"string"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString}scheme;authority;path;query;fragment;constructor(e,t,n,r,i,o=!1){"object"==typeof e?(this.scheme=e.scheme||c,this.authority=e.authority||c,this.path=e.path||c,this.query=e.query||c,this.fragment=e.fragment||c):(this.scheme=function(e,t){return e||t?e:"file"}(e,o),this.authority=t||c,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==u&&(t=u+t):t=u}return t}(this.scheme,n||c),this.query=r||c,this.fragment=i||c,a(this,o))}get fsPath(){return g(this,!1)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:i,fragment:o}=e;return void 0===t?t=this.scheme:null===t&&(t=c),void 0===n?n=this.authority:null===n&&(n=c),void 0===r?r=this.path:null===r&&(r=c),void 0===i?i=this.query:null===i&&(i=c),void 0===o?o=this.fragment:null===o&&(o=c),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&o===this.fragment?this:new f(t,n,r,i,o)}static parse(e,t=!1){const n=l.exec(e);return n?new f(n[2]||c,x(n[4]||c),x(n[5]||c),x(n[7]||c),x(n[9]||c),t):new f(c,c,c,c,c)}static file(e){let t=c;if(r.isWindows&&(e=e.replace(/\\/g,u)),e[0]===u&&e[1]===u){const n=e.indexOf(u,2);-1===n?(t=e.substring(2),e=u):(t=e.substring(2,n),e=e.substring(n)||u)}return new f("file",t,e,c,c)}static from(e){const t=new f(e.scheme,e.authority,e.path,e.query,e.fragment);return a(t,!0),t}toString(e=!1){return y(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof d)return e;{const t=new f(e);return t._formatted=e.external,t._fsPath=e._sep===p?e.fsPath:null,t}}return e}}t.URI=d;const p=r.isWindows?1:void 0;class f extends d{_formatted=null;_fsPath=null;get fsPath(){return this._fsPath||(this._fsPath=g(this,!1)),this._fsPath}toString(e=!1){return e?y(this,!0):(this._formatted||(this._formatted=y(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=p),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}}const m={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function h(e,t,n){let r,i=-1;for(let o=0;o<e.length;o++){const s=e.charCodeAt(o);if(s>=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||45===s||46===s||95===s||126===s||t&&47===s||n&&91===s||n&&93===s||n&&58===s)-1!==i&&(r+=encodeURIComponent(e.substring(i,o)),i=-1),void 0!==r&&(r+=e.charAt(o));else{void 0===r&&(r=e.substr(0,o));const t=m[s];void 0!==t?(-1!==i&&(r+=encodeURIComponent(e.substring(i,o)),i=-1),r+=t):-1===i&&(i=o)}}return-1!==i&&(r+=encodeURIComponent(e.substring(i))),void 0!==r?r:e}function v(e){let t;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);35===r||63===r?(void 0===t&&(t=e.substr(0,n)),t+=m[r]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function g(e,t){let n;return n=e.authority&&e.path.length>1&&"file"===e.scheme?`//${e.authority}${e.path}`:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?t?e.path.substr(1):e.path[1].toLowerCase()+e.path.substr(2):e.path,r.isWindows&&(n=n.replace(/\//g,"\\")),n}function y(e,t){const n=t?v:h;let r="",{scheme:i,authority:o,path:s,query:a,fragment:c}=e;if(i&&(r+=i,r+=":"),(o||"file"===i)&&(r+=u,r+=u),o){let e=o.indexOf("@");if(-1!==e){const t=o.substr(0,e);o=o.substr(e+1),e=t.lastIndexOf(":"),-1===e?r+=n(t,!1,!1):(r+=n(t.substr(0,e),!1,!1),r+=":",r+=n(t.substr(e+1),!1,!0)),r+="@"}o=o.toLowerCase(),e=o.lastIndexOf(":"),-1===e?r+=n(o,!1,!0):(r+=n(o.substr(0,e),!1,!0),r+=o.substr(e))}if(s){if(s.length>=3&&47===s.charCodeAt(0)&&58===s.charCodeAt(2)){const e=s.charCodeAt(1);e>=65&&e<=90&&(s=`/${String.fromCharCode(e+32)}:${s.substr(3)}`)}else if(s.length>=2&&58===s.charCodeAt(1)){const e=s.charCodeAt(0);e>=65&&e<=90&&(s=`${String.fromCharCode(e+32)}:${s.substr(2)}`)}r+=n(s,!0,!1)}return a&&(r+="?",r+=n(a,!1,!1)),c&&(r+="#",r+=t?c:h(c,!1,!1)),r}function _(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+_(e.substr(3)):e}}t.uriToFsPath=g;const b=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function x(e){return e.match(b)?e.replace(b,e=>_(e)):e}},552(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Utils=void 0;const s=o(n(975)),a=s.posix||s,c="/";var u;!function(e){e.joinPath=function(e,...t){return e.with({path:a.join(e.path,...t)})},e.resolvePath=function(e,...t){let n=e.path,r=!1;n[0]!==c&&(n=c+n,r=!0);let i=a.resolve(n,...t);return r&&i[0]===c&&!e.authority&&(i=i.substring(1)),e.with({path:i})},e.dirname=function(e){if(0===e.path.length||e.path===c)return e;let t=a.dirname(e.path);return 1===t.length&&46===t.charCodeAt(0)&&(t=""),e.with({path:t})},e.basename=function(e){return a.basename(e.path)},e.extname=function(e){return a.extname(e.path)}}(u||(t.Utils=u={}))},975(e){function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",i=0,o=-1,s=0,a=0;a<=e.length;++a){if(a<e.length)n=e.charCodeAt(a);else{if(47===n)break;n=47}if(47===n){if(o===a-1||1===s);else if(o!==a-1&&2===s){if(r.length<2||2!==i||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(r.length>2){var c=r.lastIndexOf("/");if(c!==r.length-1){-1===c?(r="",i=0):i=(r=r.slice(0,c)).length-1-r.lastIndexOf("/"),o=a,s=0;continue}}else if(2===r.length||1===r.length){r="",i=0,o=a,s=0;continue}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(o+1,a):r=e.slice(o+1,a),i=a-o-1;o=a,s=0}else 46===n&&-1!==s?++s:s=-1}return r}var r={resolve:function(){for(var e,r="",i=!1,o=arguments.length-1;o>=-1&&!i;o--){var s;o>=0?s=arguments[o]:(void 0===e&&(e=process.cwd()),s=e),t(s),0!==s.length&&(r=s+"/"+r,i=47===s.charCodeAt(0))}return r=n(r,!i),i?r.length>0?"/"+r:"/":r.length>0?r:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),i=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!r)).length||r||(e="."),e.length>0&&i&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n<arguments.length;++n){var i=arguments[n];t(i),i.length>0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n)return"";if((e=r.resolve(e))===(n=r.resolve(n)))return"";for(var i=1;i<e.length&&47===e.charCodeAt(i);++i);for(var o=e.length,s=o-i,a=1;a<n.length&&47===n.charCodeAt(a);++a);for(var c=n.length-a,u=s<c?s:c,l=-1,d=0;d<=u;++d){if(d===u){if(c>u){if(47===n.charCodeAt(a+d))return n.slice(a+d+1);if(0===d)return n.slice(a+d)}else s>u&&(47===e.charCodeAt(i+d)?l=d:0===d&&(l=0));break}var p=e.charCodeAt(i+d);if(p!==n.charCodeAt(a+d))break;47===p&&(l=d)}var f="";for(d=i+l+1;d<=o;++d)d!==o&&47!==e.charCodeAt(d)||(0===f.length?f+="..":f+="/..");return f.length>0?f+n.slice(a+l):(a+=l,47===n.charCodeAt(a)&&++a,n.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,i=-1,o=!0,s=e.length-1;s>=1;--s)if(47===(n=e.charCodeAt(s))){if(!o){i=s;break}}else o=!1;return-1===i?r?"/":".":r&&1===i?"//":e.slice(0,i)},basename:function(e,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');t(e);var r,i=0,o=-1,s=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var a=n.length-1,c=-1;for(r=e.length-1;r>=0;--r){var u=e.charCodeAt(r);if(47===u){if(!s){i=r+1;break}}else-1===c&&(s=!1,c=r+1),a>=0&&(u===n.charCodeAt(a)?-1===--a&&(o=r):(a=-1,o=c))}return i===o?o=c:-1===o&&(o=e.length),e.slice(i,o)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!s){i=r+1;break}}else-1===o&&(s=!1,o=r+1);return-1===o?"":e.slice(i,o)},extname:function(e){t(e);for(var n=-1,r=0,i=-1,o=!0,s=0,a=e.length-1;a>=0;--a){var c=e.charCodeAt(a);if(47!==c)-1===i&&(o=!1,i=a+1),46===c?-1===n?n=a:1!==s&&(s=1):-1!==n&&(s=-1);else if(!o){r=a+1;break}}return-1===n||-1===i||0===s||1===s&&n===i-1&&n===r+1?"":e.slice(n,i)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+"/"+r:r}(0,e)},parse:function(e){t(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var r,i=e.charCodeAt(0),o=47===i;o?(n.root="/",r=1):r=0;for(var s=-1,a=0,c=-1,u=!0,l=e.length-1,d=0;l>=r;--l)if(47!==(i=e.charCodeAt(l)))-1===c&&(u=!1,c=l+1),46===i?-1===s?s=l:1!==d&&(d=1):-1!==s&&(d=-1);else if(!u){a=l+1;break}return-1===s||-1===c||0===d||1===d&&s===c-1&&s===a+1?-1!==c&&(n.base=n.name=0===a&&o?e.slice(1,c):e.slice(a,c)):(0===a&&o?(n.name=e.slice(1,s),n.base=e.slice(1,c)):(n.name=e.slice(a,s),n.base=e.slice(a,c)),n.ext=e.slice(s,c)),a>0?n.dir=e.slice(0,a-1):o&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,e.exports=r}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}var r={};return(()=>{var e=r;Object.defineProperty(e,"__esModule",{value:!0}),e.Utils=e.URI=void 0;const t=n(231);Object.defineProperty(e,"URI",{enumerable:!0,get:function(){return t.URI}});const i=n(552);Object.defineProperty(e,"Utils",{enumerable:!0,get:function(){return i.Utils}}),e.default={URI:t.URI,Utils:i.Utils}})(),r})(),e.exports=t()},49029:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.isZ4Schema=c,t.objectFromShape=u,t.safeParse=function(e,t){return c(e)?a.safeParse(e,t):e.safeParse(t)},t.safeParseAsync=async function(e,t){if(c(e))return await a.safeParseAsync(e,t);const n=e;return await n.safeParseAsync(t)},t.getObjectShape=function(e){if(!e)return;let t;if(c(e)){const n=e;t=n._zod?.def?.shape}else t=e.shape;if(t){if("function"==typeof t)try{return t()}catch{return}return t}},t.normalizeObjectSchema=function(e){if(e){if("object"==typeof e){const t=e;if(!e._def&&!t._zod){const t=Object.values(e);if(t.length>0&&t.every(e=>"object"==typeof e&&null!==e&&(void 0!==e._def||void 0!==e._zod||"function"==typeof e.parse)))return u(e)}}if(c(e)){const t=e,n=t._zod?.def;if(n&&("object"===n.type||void 0!==n.shape))return e}else if(void 0!==e.shape)return e}},t.getParseErrorMessage=function(e){if(e&&"object"==typeof e){if("issues"in e&&Array.isArray(e.issues)&&e.issues.length>0)return e.issues.map(e=>{return e.path?.length?`${e.message} at ${t=e.path,0===t.length?"object root":t.reduce((e,t,n)=>0===n?String(t):"number"==typeof t?`${e}[${t}]`:`${e}.${t}`,"")}`:e.message;var t}).join("\n");if("message"in e&&"string"==typeof e.message)return e.message;try{return JSON.stringify(e)}catch{return String(e)}}return String(e)},t.getSchemaDescription=function(e){return e.description},t.isSchemaOptional=function(e){if(c(e)){const t=e;return"optional"===t._zod?.def?.type}const t=e;return"function"==typeof e.isOptional?e.isOptional():"ZodOptional"===t._def?.typeName},t.getLiteralValue=function(e){if(c(e)){const t=e,n=t._zod?.def;if(n){if(void 0!==n.value)return n.value;if(Array.isArray(n.values)&&n.values.length>0)return n.values[0]}}const t=e._def;if(t){if(void 0!==t.value)return t.value;if(Array.isArray(t.values)&&t.values.length>0)return t.values[0]}const n=e.value;return void 0!==n?n:void 0};const s=o(n(19164)),a=o(n(97083));function c(e){return!!e._zod}function u(e){const t=Object.values(e);if(0===t.length)return a.object({});const n=t.every(c),r=t.every(e=>!c(e));if(n)return a.object(e);if(r)return s.object(e);throw new Error("Mixed Zod versions detected in object shape.")}},49092:(e,t,n)=>{"use strict";var r=n(41333);e.exports=function(){return r()&&!!Symbol.toStringTag}},49195:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTargets=void 0;const r=n(49343),i=n(8841),o=n(9750),s=n(7520),a=n(16586);t.getTargets=e=>{const t=void 0===e?r.getClassMetadata:t=>(0,i.getClassMetadataFromMetadataReader)(t,e),n=void 0===e?o.getClassMetadataProperties:t=>(0,s.getClassMetadataPropertiesFromMetadataReader)(t,e);return(0,a.getTargetsFromMetadataProviders)(t,n)}},49319:function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.SecretPlaceholderService=t.SECRET_PLACEHOLDER_PATTERN=void 0;const a=n(79896),c=n(16928),u=n(52650),l=n(55853),d="__IOBROKER_SECRET_([A-Za-z0-9_]+)__";t.SECRET_PLACEHOLDER_PATTERN=new RegExp(d,"g");const p=new RegExp(d);let f=class{constructor(e){this.workspaceService=e}replaceSecretPlaceholders(e,n){const r=this.parseEnvContent(n);return e.replace(t.SECRET_PLACEHOLDER_PATTERN,(e,t)=>r.has(t)?r.get(t):e)}replaceSecretPlaceholdersFromEnvFile(e){return s(this,void 0,void 0,function*(){var t,n;const r=null===(n=null===(t=this.workspaceService.workspaceToUse)||void 0===t?void 0:t.uri)||void 0===n?void 0:n.fsPath;if(!p.test(e)||!r)return e;const i=c.join(r,".env");try{return this.replaceSecretPlaceholders(e,yield a.promises.readFile(i,"utf8"))}catch(t){return e}})}parseEnvContent(e){const t=new Map;return e.split(/\r?\n/).forEach(e=>{const n=e.trim();if(!n||n.startsWith("#"))return;const r=n.indexOf("=");if(r<=0)return;const i=n.substring(0,r).trim(),o=n.substring(r+1).trim(),s=this.removeWrappingQuotes(o);t.set(i,s)}),t}removeWrappingQuotes(e){return e.length>=2&&(e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"))?e.substring(1,e.length-1):e}};t.SecretPlaceholderService=f,t.SecretPlaceholderService=f=r([(0,u.injectable)(),o(0,(0,u.inject)(l.default.services.workspace)),i("design:paramtypes",[Object])],f)},49343:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getClassMetadata=function(e){const t=(0,r.getReflectMetadata)(e,i.POST_CONSTRUCT),n=(0,r.getReflectMetadata)(e,i.PRE_DESTROY);return{constructorArguments:(0,o.getClassMetadataConstructorArguments)(e),lifecycle:{postConstructMethodName:t?.value,preDestroyMethodName:n?.value},properties:(0,s.getClassMetadataProperties)(e)}};const r=n(59517),i=n(83313),o=n(62719),s=n(9750)},49402:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MAX_SCRIPT_SOURCE_LENGTH=t.success=t.MAX_SCRIPT_LIMIT=t.MAX_SCRIPT_CONTENT_LENGTH=t.MAX_LOG_RESPONSE_CHARACTERS=t.MAX_LOG_LIMIT=t.failure=t.DEFAULT_SCRIPT_LIMIT=t.DEFAULT_LOG_LIMIT=void 0;var r=n(98297);Object.defineProperty(t,"DEFAULT_LOG_LIMIT",{enumerable:!0,get:function(){return r.DEFAULT_LOG_LIMIT}}),Object.defineProperty(t,"DEFAULT_SCRIPT_LIMIT",{enumerable:!0,get:function(){return r.DEFAULT_SCRIPT_LIMIT}}),Object.defineProperty(t,"failure",{enumerable:!0,get:function(){return r.failure}}),Object.defineProperty(t,"MAX_LOG_LIMIT",{enumerable:!0,get:function(){return r.MAX_LOG_LIMIT}}),Object.defineProperty(t,"MAX_LOG_RESPONSE_CHARACTERS",{enumerable:!0,get:function(){return r.MAX_LOG_RESPONSE_CHARACTERS}}),Object.defineProperty(t,"MAX_SCRIPT_CONTENT_LENGTH",{enumerable:!0,get:function(){return r.MAX_SCRIPT_CONTENT_LENGTH}}),Object.defineProperty(t,"MAX_SCRIPT_LIMIT",{enumerable:!0,get:function(){return r.MAX_SCRIPT_LIMIT}}),Object.defineProperty(t,"success",{enumerable:!0,get:function(){return r.success}}),t.MAX_SCRIPT_SOURCE_LENGTH=1048576},49605:(e,t,n)=>{"use strict";var r=n(70453)("%Object.defineProperty%",!0),i=n(49092)(),o=n(9957),s=n(69675),a=i?Symbol.toStringTag:null;e.exports=function(e,t){var n=arguments.length>2&&!!arguments[2]&&arguments[2].force,i=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(void 0!==n&&"boolean"!=typeof n||void 0!==i&&"boolean"!=typeof i)throw new s("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");!a||!n&&o(e,a)||(r?r(e,a,{configurable:!i,enumerable:!1,value:t,writable:!1}):e[a]=t)}},49742:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.renameScript=function(e,t){return r(this,void 0,void 0,function*(){const n=(0,c.toScriptId)(t.scriptId);if(!n.ok)return n;const r=(0,c.validateName)(t.newName,"newName");if(!r.ok)return r;const u=(0,s.ensureRemoteConnected)(e);if(u)return{ok:!1,error:u};const l=n.data,d=r.data,p=e.scripts.getScriptFromId(l);if(!p)return(0,o.failure)("not_found",`The script '${l}' is not known to the ioBroker server.`,"Use iobroker_get_scripts to look up available script ids.");const f=(0,s.scriptIdOf)(p),m=`${i.ScriptId.parentIdOf(f)}.${i.ScriptId.sanitizeName(d)}`;if(m===f)return(0,o.failure)("invalid_input",`The script is already called '${d}'.`);try{return yield e.scriptRemote.rename(l,d),yield(0,s.refreshScriptInCache)(e,l),yield(0,s.refreshScriptInCache)(e,new i.ScriptId(m)),(0,o.success)({oldScriptId:f,newScriptId:m})}catch(e){return(0,a.toFailure)(e)}})};const i=n(11633),o=n(49402),s=n(33510),a=n(22797),c=n(75061)},50075:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.$ZodFunction=void 0,t.function=function(e){return new l({type:"function",input:Array.isArray(e?.input)?(0,s._tuple)(c.$ZodTuple,e?.input):e?.input??(0,s._array)(c.$ZodArray,(0,s._unknown)(c.$ZodUnknown)),output:e?.output??(0,s._unknown)(c.$ZodUnknown)})};const s=n(52405),a=n(64084),c=o(n(95341)),u=n(95341);class l{constructor(e){this._def=e,this.def=e}implement(e){if("function"!=typeof e)throw new Error("implement() must be called with a function");const t=(...n)=>{const r=this._def.input?(0,a.parse)(this._def.input,n,void 0,{callee:t}):n;if(!Array.isArray(r))throw new Error("Invalid arguments schema: not an array or tuple schema.");const i=e(...r);return this._def.output?(0,a.parse)(this._def.output,i,void 0,{callee:t}):i};return t}implementAsync(e){if("function"!=typeof e)throw new Error("implement() must be called with a function");const t=async(...n)=>{const r=this._def.input?await(0,a.parseAsync)(this._def.input,n,void 0,{callee:t}):n;if(!Array.isArray(r))throw new Error("Invalid arguments schema: not an array or tuple schema.");const i=await e(...r);return this._def.output?(0,a.parseAsync)(this._def.output,i,void 0,{callee:t}):i};return t}input(...e){const t=this.constructor;return Array.isArray(e[0])?new t({type:"function",input:new u.$ZodTuple({type:"tuple",items:e[0],rest:e[1]}),output:this._def.output}):new t({type:"function",input:e[0],output:this._def.output})}output(e){return new(0,this.constructor)({type:"function",input:this._def.input,output:e})}}t.$ZodFunction=l},50832:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{localeError:a()}};const s=o(n(90523)),a=()=>{const e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(t){return e[t]??null}const n={regex:"bemenet",email:"email cím",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO időbélyeg",date:"ISO dátum",time:"ISO idő",duration:"ISO időintervallum",ipv4:"IPv4 cím",ipv6:"IPv6 cím",cidrv4:"IPv4 tartomány",cidrv6:"IPv6 tartomány",base64:"base64-kódolt string",base64url:"base64url-kódolt string",json_string:"JSON string",e164:"E.164 szám",jwt:"JWT",template_literal:"bemenet"};return e=>{switch(e.code){case"invalid_type":return`Érvénytelen bemenet: a várt érték ${e.expected}, a kapott érték ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"szám";case"object":if(Array.isArray(e))return"tömb";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Érvénytelen bemenet: a várt érték ${s.stringifyPrimitive(e.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${s.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`Túl nagy: ${e.origin??"érték"} mérete túl nagy ${n}${e.maximum.toString()} ${r.unit??"elem"}`:`Túl nagy: a bemeneti érték ${e.origin??"érték"} túl nagy: ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`Túl kicsi: a bemeneti érték ${e.origin} mérete túl kicsi ${n}${e.minimum.toString()} ${r.unit}`:`Túl kicsi: a bemeneti érték ${e.origin} túl kicsi ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Érvénytelen string: "${t.prefix}" értékkel kell kezdődnie`:"ends_with"===t.format?`Érvénytelen string: "${t.suffix}" értékkel kell végződnie`:"includes"===t.format?`Érvénytelen string: "${t.includes}" értéket kell tartalmaznia`:"regex"===t.format?`Érvénytelen string: ${t.pattern} mintának kell megfelelnie`:`Érvénytelen ${n[t.format]??e.format}`}case"not_multiple_of":return`Érvénytelen szám: ${e.divisor} többszörösének kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${e.keys.length>1?"s":""}: ${s.joinValues(e.keys,", ")}`;case"invalid_key":return`Érvénytelen kulcs ${e.origin}`;case"invalid_union":default:return"Érvénytelen bemenet";case"invalid_element":return`Érvénytelen érték: ${e.origin}`}}}},50918:e=>{"use strict";e.exports={BINARY_TYPES:["nodebuffer","arraybuffer","fragments"],GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),EMPTY_BUFFER:Buffer.alloc(0),NOOP:()=>{}}},50974:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{localeError:a()}};const s=o(n(90523)),a=()=>{const e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(t){return e[t]??null}const n={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"};return e=>{switch(e.code){case"invalid_type":return`Input tidak valid: diharapkan ${e.expected}, diterima ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Input tidak valid: diharapkan ${s.stringifyPrimitive(e.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${s.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`Terlalu besar: diharapkan ${e.origin??"value"} memiliki ${n}${e.maximum.toString()} ${r.unit??"elemen"}`:`Terlalu besar: diharapkan ${e.origin??"value"} menjadi ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`Terlalu kecil: diharapkan ${e.origin} memiliki ${n}${e.minimum.toString()} ${r.unit}`:`Terlalu kecil: diharapkan ${e.origin} menjadi ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`String tidak valid: harus dimulai dengan "${t.prefix}"`:"ends_with"===t.format?`String tidak valid: harus berakhir dengan "${t.suffix}"`:"includes"===t.format?`String tidak valid: harus menyertakan "${t.includes}"`:"regex"===t.format?`String tidak valid: harus sesuai pola ${t.pattern}`:`${n[t.format]??e.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${e.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${e.keys.length>1?"s":""}: ${s.joinValues(e.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${e.origin}`;case"invalid_union":default:return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${e.origin}`}}}},51016:(e,t,n)=>{"use strict";function r(e){return e>=1e3&&e<=1014&&1004!==e&&1005!==e&&1006!==e||e>=3e3&&e<=4999}function i(e){const t=e.length;let n=0;for(;n<t;)if(128&e[n])if(192==(224&e[n])){if(n+1===t||128!=(192&e[n+1])||192==(254&e[n]))return!1;n+=2}else if(224==(240&e[n])){if(n+2>=t||128!=(192&e[n+1])||128!=(192&e[n+2])||224===e[n]&&128==(224&e[n+1])||237===e[n]&&160==(224&e[n+1]))return!1;n+=3}else{if(240!=(248&e[n]))return!1;if(n+3>=t||128!=(192&e[n+1])||128!=(192&e[n+2])||128!=(192&e[n+3])||240===e[n]&&128==(240&e[n+1])||244===e[n]&&e[n+1]>143||e[n]>244)return!1;n+=4}else n++;return!0}try{let t=n(53148);"object"==typeof t&&(t=t.Validation.isValidUTF8),e.exports={isValidStatusCode:r,isValidUTF8:e=>e.length<150?i(e):t(e)}}catch(t){e.exports={isValidStatusCode:r,isValidUTF8:i}}},51175:(e,t,n)=>{function r(e){var n;function r(){if(r.enabled){var e=r,i=+new Date,o=i-(n||i);e.diff=o,e.prev=n,e.curr=i,n=i;for(var s=new Array(arguments.length),a=0;a<s.length;a++)s[a]=arguments[a];s[0]=t.coerce(s[0]),"string"!=typeof s[0]&&s.unshift("%O");var c=0;s[0]=s[0].replace(/%([a-zA-Z%])/g,function(n,r){if("%%"===n)return n;c++;var i=t.formatters[r];if("function"==typeof i){var o=s[c];n=i.call(e,o),s.splice(c,1),c--}return n}),t.formatArgs.call(e,s),(r.log||t.log||console.log.bind(console)).apply(e,s)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=function(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}(e),r.destroy=i,"function"==typeof t.init&&t.init(r),t.instances.push(r),r}function i(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}(t=e.exports=r.debug=r.default=r).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var o=t.instances[n];o.enabled=t.enabled(o.namespace)}},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(40218),t.instances=[],t.names=[],t.skips=[],t.formatters={}},51301:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ToolResultMapper=void 0,t.ToolResultMapper=class{constructor(e){this.logger=e}toResult(e){return e.ok?{content:[{type:"text",text:JSON.stringify(e.data)}],isError:!1}:this.toErrorResult(e.error.code,e.error.message,e.error.hint)}toErrorResult(e,t,n){const r=n?`${e}: ${t}\nHint: ${n}`:`${e}: ${t}`;return{content:[{type:"text",text:this.logger.redact(r)}],isError:!0}}}},51963:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=o(n(70134));i(n(70134),t),t.default=s.default},51980:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateUnion=t.validateArray=t.usePattern=t.callValidateCode=t.schemaProperties=t.allSchemaProperties=t.noPropertyInData=t.propertyInData=t.isOwnProperty=t.hasPropFunc=t.reportMissingProp=t.checkMissingProp=t.checkReportMissingProp=void 0;const r=n(66596),i=n(99048),o=n(26670),s=n(99048);function a(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:r._`Object.prototype.hasOwnProperty`})}function c(e,t,n){return r._`${a(e)}.call(${t}, ${n})`}function u(e,t,n,i){const o=r._`${t}${(0,r.getProperty)(n)} === undefined`;return i?(0,r.or)(o,(0,r.not)(c(e,t,n))):o}function l(e){return e?Object.keys(e).filter(e=>"__proto__"!==e):[]}t.checkReportMissingProp=function(e,t){const{gen:n,data:i,it:o}=e;n.if(u(n,i,t,o.opts.ownProperties),()=>{e.setParams({missingProperty:r._`${t}`},!0),e.error()})},t.checkMissingProp=function({gen:e,data:t,it:{opts:n}},i,o){return(0,r.or)(...i.map(i=>(0,r.and)(u(e,t,i,n.ownProperties),r._`${o} = ${i}`)))},t.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},t.hasPropFunc=a,t.isOwnProperty=c,t.propertyInData=function(e,t,n,i){const o=r._`${t}${(0,r.getProperty)(n)} !== undefined`;return i?r._`${o} && ${c(e,t,n)}`:o},t.noPropertyInData=u,t.allSchemaProperties=l,t.schemaProperties=function(e,t){return l(t).filter(n=>!(0,i.alwaysValidSchema)(e,t[n]))},t.callValidateCode=function({schemaCode:e,data:t,it:{gen:n,topSchemaRef:i,schemaPath:s,errorPath:a},it:c},u,l,d){const p=d?r._`${e}, ${t}, ${i}${s}`:t,f=[[o.default.instancePath,(0,r.strConcat)(o.default.instancePath,a)],[o.default.parentData,c.parentData],[o.default.parentDataProperty,c.parentDataProperty],[o.default.rootData,o.default.rootData]];c.opts.dynamicRef&&f.push([o.default.dynamicAnchors,o.default.dynamicAnchors]);const m=r._`${p}, ${n.object(...f)}`;return l!==r.nil?r._`${u}.call(${l}, ${m})`:r._`${u}(${m})`};const d=r._`new RegExp`;t.usePattern=function({gen:e,it:{opts:t}},n){const i=t.unicodeRegExp?"u":"",{regExp:o}=t.code,a=o(n,i);return e.scopeValue("pattern",{key:a.toString(),ref:a,code:r._`${"new RegExp"===o.code?d:(0,s.useFunc)(e,o)}(${n}, ${i})`})},t.validateArray=function(e){const{gen:t,data:n,keyword:o,it:s}=e,a=t.name("valid");if(s.allErrors){const e=t.let("valid",!0);return c(()=>t.assign(e,!1)),e}return t.var(a,!0),c(()=>t.break()),a;function c(s){const c=t.const("len",r._`${n}.length`);t.forRange("i",0,c,n=>{e.subschema({keyword:o,dataProp:n,dataPropType:i.Type.Num},a),t.if((0,r.not)(a),s)})}},t.validateUnion=function(e){const{gen:t,schema:n,keyword:o,it:s}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(n.some(e=>(0,i.alwaysValidSchema)(s,e))&&!s.opts.unevaluated)return;const a=t.let("valid",!1),c=t.name("_valid");t.block(()=>n.forEach((n,i)=>{const s=e.subschema({keyword:o,schemaProp:i,compositeRule:!0},c);t.assign(a,r._`${a} || ${c}`),e.mergeValidEvaluated(s,c)||t.if((0,r.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}},52018:e=>{"use strict";e.exports=require("tty")},52081:(e,t,n)=>{var r=n(90028);e.exports=function(e,t,n){return r(e,t,null,n)}},52338:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{localeError:a()}};const s=o(n(90523)),a=()=>{const e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att innehålla"},set:{unit:"objekt",verb:"att innehålla"}};function t(t){return e[t]??null}const n={regex:"reguljärt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad sträng",base64url:"base64url-kodad sträng",json_string:"JSON-sträng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"};return e=>{switch(e.code){case"invalid_type":return`Ogiltig inmatning: förväntat ${e.expected}, fick ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"antal";case"object":if(Array.isArray(e))return"lista";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Ogiltig inmatning: förväntat ${s.stringifyPrimitive(e.values[0])}`:`Ogiltigt val: förväntade en av ${s.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`För stor(t): förväntade ${e.origin??"värdet"} att ha ${n}${e.maximum.toString()} ${r.unit??"element"}`:`För stor(t): förväntat ${e.origin??"värdet"} att ha ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`För lite(t): förväntade ${e.origin??"värdet"} att ha ${n}${e.minimum.toString()} ${r.unit}`:`För lite(t): förväntade ${e.origin??"värdet"} att ha ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Ogiltig sträng: måste börja med "${t.prefix}"`:"ends_with"===t.format?`Ogiltig sträng: måste sluta med "${t.suffix}"`:"includes"===t.format?`Ogiltig sträng: måste innehålla "${t.includes}"`:"regex"===t.format?`Ogiltig sträng: måste matcha mönstret "${t.pattern}"`:`Ogiltig(t) ${n[t.format]??e.format}`}case"not_multiple_of":return`Ogiltigt tal: måste vara en multipel av ${e.divisor}`;case"unrecognized_keys":return`${e.keys.length>1?"Okända nycklar":"Okänd nyckel"}: ${s.joinValues(e.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${e.origin??"värdet"}`;case"invalid_union":default:return"Ogiltig input";case"invalid_element":return`Ogiltigt värde i ${e.origin??"värdet"}`}}}},52405:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.TimePrecision=void 0,t._string=function(e,t){return new e({type:"string",...c.normalizeParams(t)})},t._coercedString=function(e,t){return new e({type:"string",coerce:!0,...c.normalizeParams(t)})},t._email=function(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...c.normalizeParams(t)})},t._guid=function(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...c.normalizeParams(t)})},t._uuid=function(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...c.normalizeParams(t)})},t._uuidv4=function(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...c.normalizeParams(t)})},t._uuidv6=function(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...c.normalizeParams(t)})},t._uuidv7=function(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...c.normalizeParams(t)})},t._url=function(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...c.normalizeParams(t)})},t._emoji=function(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...c.normalizeParams(t)})},t._nanoid=function(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...c.normalizeParams(t)})},t._cuid=function(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...c.normalizeParams(t)})},t._cuid2=function(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...c.normalizeParams(t)})},t._ulid=function(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...c.normalizeParams(t)})},t._xid=function(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...c.normalizeParams(t)})},t._ksuid=function(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...c.normalizeParams(t)})},t._ipv4=function(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...c.normalizeParams(t)})},t._ipv6=function(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...c.normalizeParams(t)})},t._cidrv4=function(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...c.normalizeParams(t)})},t._cidrv6=function(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...c.normalizeParams(t)})},t._base64=function(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...c.normalizeParams(t)})},t._base64url=function(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...c.normalizeParams(t)})},t._e164=function(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...c.normalizeParams(t)})},t._jwt=function(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...c.normalizeParams(t)})},t._isoDateTime=function(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...c.normalizeParams(t)})},t._isoDate=function(e,t){return new e({type:"string",format:"date",check:"string_format",...c.normalizeParams(t)})},t._isoTime=function(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...c.normalizeParams(t)})},t._isoDuration=function(e,t){return new e({type:"string",format:"duration",check:"string_format",...c.normalizeParams(t)})},t._number=function(e,t){return new e({type:"number",checks:[],...c.normalizeParams(t)})},t._coercedNumber=function(e,t){return new e({type:"number",coerce:!0,checks:[],...c.normalizeParams(t)})},t._int=function(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...c.normalizeParams(t)})},t._float32=function(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...c.normalizeParams(t)})},t._float64=function(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...c.normalizeParams(t)})},t._int32=function(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...c.normalizeParams(t)})},t._uint32=function(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...c.normalizeParams(t)})},t._boolean=function(e,t){return new e({type:"boolean",...c.normalizeParams(t)})},t._coercedBoolean=function(e,t){return new e({type:"boolean",coerce:!0,...c.normalizeParams(t)})},t._bigint=function(e,t){return new e({type:"bigint",...c.normalizeParams(t)})},t._coercedBigint=function(e,t){return new e({type:"bigint",coerce:!0,...c.normalizeParams(t)})},t._int64=function(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...c.normalizeParams(t)})},t._uint64=function(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...c.normalizeParams(t)})},t._symbol=function(e,t){return new e({type:"symbol",...c.normalizeParams(t)})},t._undefined=function(e,t){return new e({type:"undefined",...c.normalizeParams(t)})},t._null=function(e,t){return new e({type:"null",...c.normalizeParams(t)})},t._any=function(e){return new e({type:"any"})},t._unknown=function(e){return new e({type:"unknown"})},t._never=function(e,t){return new e({type:"never",...c.normalizeParams(t)})},t._void=function(e,t){return new e({type:"void",...c.normalizeParams(t)})},t._date=function(e,t){return new e({type:"date",...c.normalizeParams(t)})},t._coercedDate=function(e,t){return new e({type:"date",coerce:!0,...c.normalizeParams(t)})},t._nan=function(e,t){return new e({type:"nan",...c.normalizeParams(t)})},t._lt=u,t._lte=l,t._max=l,t._lte=l,t._max=l,t._gt=d,t._gte=p,t._min=p,t._gte=p,t._min=p,t._positive=function(e){return d(0,e)},t._negative=function(e){return u(0,e)},t._nonpositive=function(e){return l(0,e)},t._nonnegative=function(e){return p(0,e)},t._multipleOf=function(e,t){return new s.$ZodCheckMultipleOf({check:"multiple_of",...c.normalizeParams(t),value:e})},t._maxSize=function(e,t){return new s.$ZodCheckMaxSize({check:"max_size",...c.normalizeParams(t),maximum:e})},t._minSize=function(e,t){return new s.$ZodCheckMinSize({check:"min_size",...c.normalizeParams(t),minimum:e})},t._size=function(e,t){return new s.$ZodCheckSizeEquals({check:"size_equals",...c.normalizeParams(t),size:e})},t._maxLength=function(e,t){return new s.$ZodCheckMaxLength({check:"max_length",...c.normalizeParams(t),maximum:e})},t._minLength=function(e,t){return new s.$ZodCheckMinLength({check:"min_length",...c.normalizeParams(t),minimum:e})},t._length=function(e,t){return new s.$ZodCheckLengthEquals({check:"length_equals",...c.normalizeParams(t),length:e})},t._regex=function(e,t){return new s.$ZodCheckRegex({check:"string_format",format:"regex",...c.normalizeParams(t),pattern:e})},t._lowercase=function(e){return new s.$ZodCheckLowerCase({check:"string_format",format:"lowercase",...c.normalizeParams(e)})},t._uppercase=function(e){return new s.$ZodCheckUpperCase({check:"string_format",format:"uppercase",...c.normalizeParams(e)})},t._includes=function(e,t){return new s.$ZodCheckIncludes({check:"string_format",format:"includes",...c.normalizeParams(t),includes:e})},t._startsWith=function(e,t){return new s.$ZodCheckStartsWith({check:"string_format",format:"starts_with",...c.normalizeParams(t),prefix:e})},t._endsWith=function(e,t){return new s.$ZodCheckEndsWith({check:"string_format",format:"ends_with",...c.normalizeParams(t),suffix:e})},t._property=function(e,t,n){return new s.$ZodCheckProperty({check:"property",property:e,schema:t,...c.normalizeParams(n)})},t._mime=function(e,t){return new s.$ZodCheckMimeType({check:"mime_type",mime:e,...c.normalizeParams(t)})},t._overwrite=f,t._normalize=function(e){return f(t=>t.normalize(e))},t._trim=function(){return f(e=>e.trim())},t._toLowerCase=function(){return f(e=>e.toLowerCase())},t._toUpperCase=function(){return f(e=>e.toUpperCase())},t._array=function(e,t,n){return new e({type:"array",element:t,...c.normalizeParams(n)})},t._union=function(e,t,n){return new e({type:"union",options:t,...c.normalizeParams(n)})},t._discriminatedUnion=function(e,t,n,r){return new e({type:"union",options:n,discriminator:t,...c.normalizeParams(r)})},t._intersection=function(e,t,n){return new e({type:"intersection",left:t,right:n})},t._tuple=function(e,t,n,r){const i=n instanceof a.$ZodType,o=i?r:n;return new e({type:"tuple",items:t,rest:i?n:null,...c.normalizeParams(o)})},t._record=function(e,t,n,r){return new e({type:"record",keyType:t,valueType:n,...c.normalizeParams(r)})},t._map=function(e,t,n,r){return new e({type:"map",keyType:t,valueType:n,...c.normalizeParams(r)})},t._set=function(e,t,n){return new e({type:"set",valueType:t,...c.normalizeParams(n)})},t._enum=function(e,t,n){return new e({type:"enum",entries:Array.isArray(t)?Object.fromEntries(t.map(e=>[e,e])):t,...c.normalizeParams(n)})},t._nativeEnum=function(e,t,n){return new e({type:"enum",entries:t,...c.normalizeParams(n)})},t._literal=function(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],...c.normalizeParams(n)})},t._file=function(e,t){return new e({type:"file",...c.normalizeParams(t)})},t._transform=function(e,t){return new e({type:"transform",transform:t})},t._optional=function(e,t){return new e({type:"optional",innerType:t})},t._nullable=function(e,t){return new e({type:"nullable",innerType:t})},t._default=function(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return"function"==typeof n?n():n}})},t._nonoptional=function(e,t,n){return new e({type:"nonoptional",innerType:t,...c.normalizeParams(n)})},t._success=function(e,t){return new e({type:"success",innerType:t})},t._catch=function(e,t,n){return new e({type:"catch",innerType:t,catchValue:"function"==typeof n?n:()=>n})},t._pipe=function(e,t,n){return new e({type:"pipe",in:t,out:n})},t._readonly=function(e,t){return new e({type:"readonly",innerType:t})},t._templateLiteral=function(e,t,n){return new e({type:"template_literal",parts:t,...c.normalizeParams(n)})},t._lazy=function(e,t){return new e({type:"lazy",getter:t})},t._promise=function(e,t){return new e({type:"promise",innerType:t})},t._custom=function(e,t,n){const r=c.normalizeParams(n);return r.abort??(r.abort=!0),new e({type:"custom",check:"custom",fn:t,...r})},t._refine=function(e,t,n){return new e({type:"custom",check:"custom",fn:t,...c.normalizeParams(n)})},t._stringbool=function(e,t){const n=c.normalizeParams(t);let r=n.truthy??["true","1","yes","on","y","enabled"],i=n.falsy??["false","0","no","off","n","disabled"];"sensitive"!==n.case&&(r=r.map(e=>"string"==typeof e?e.toLowerCase():e),i=i.map(e=>"string"==typeof e?e.toLowerCase():e));const o=new Set(r),s=new Set(i),u=e.Pipe??a.$ZodPipe,l=e.Boolean??a.$ZodBoolean,d=e.String??a.$ZodString,p=new(e.Transform??a.$ZodTransform)({type:"transform",transform:(e,t)=>{let r=e;return"sensitive"!==n.case&&(r=r.toLowerCase()),!!o.has(r)||!s.has(r)&&(t.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...s],input:t.value,inst:p}),{})},error:n.error}),f=new u({type:"pipe",in:new d({type:"string",error:n.error}),out:p,error:n.error});return new u({type:"pipe",in:f,out:new l({type:"boolean",error:n.error}),error:n.error})},t._stringFormat=function(e,t,n,r={}){const i=c.normalizeParams(r),o={...c.normalizeParams(r),check:"string_format",type:"string",format:t,fn:"function"==typeof n?n:e=>n.test(e),...i};return n instanceof RegExp&&(o.pattern=n),new e(o)};const s=o(n(32564)),a=o(n(95341)),c=o(n(90523));function u(e,t){return new s.$ZodCheckLessThan({check:"less_than",...c.normalizeParams(t),value:e,inclusive:!1})}function l(e,t){return new s.$ZodCheckLessThan({check:"less_than",...c.normalizeParams(t),value:e,inclusive:!0})}function d(e,t){return new s.$ZodCheckGreaterThan({check:"greater_than",...c.normalizeParams(t),value:e,inclusive:!1})}function p(e,t){return new s.$ZodCheckGreaterThan({check:"greater_than",...c.normalizeParams(t),value:e,inclusive:!0})}function f(e){return new s.$ZodCheckOverwrite({check:"overwrite",tx:e})}t.TimePrecision={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6}},52650:function(e,t,n){"use strict";var r,i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),s=0;s<n.length;s++)"default"!==n[s]&&i(t,e,n[s]);return o(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.multiBindToService=t.getServiceIdentifierAsString=t.typeConstraint=t.namedConstraint=t.taggedConstraint=t.traverseAncerstors=t.decorate=t.id=t.MetadataReader=t.preDestroy=t.postConstruct=t.targetName=t.multiInject=t.unmanaged=t.optional=t.inject=t.named=t.tagged=t.injectable=t.createTaggedDecorator=t.ContainerModule=t.AsyncContainerModule=t.TargetTypeEnum=t.BindingTypeEnum=t.BindingScopeEnum=t.Container=t.METADATA_KEY=t.LazyServiceIdentifer=t.LazyServiceIdentifier=void 0,n(38630);const a=n(5265),c=s(n(19466));var u=n(5265);Object.defineProperty(t,"LazyServiceIdentifier",{enumerable:!0,get:function(){return u.LazyServiceIdentifier}}),t.LazyServiceIdentifer=a.LazyServiceIdentifier,t.METADATA_KEY=c;var l=n(71697);Object.defineProperty(t,"Container",{enumerable:!0,get:function(){return l.Container}});var d=n(9117);Object.defineProperty(t,"BindingScopeEnum",{enumerable:!0,get:function(){return d.BindingScopeEnum}}),Object.defineProperty(t,"BindingTypeEnum",{enumerable:!0,get:function(){return d.BindingTypeEnum}}),Object.defineProperty(t,"TargetTypeEnum",{enumerable:!0,get:function(){return d.TargetTypeEnum}});var p=n(60548);Object.defineProperty(t,"AsyncContainerModule",{enumerable:!0,get:function(){return p.AsyncContainerModule}}),Object.defineProperty(t,"ContainerModule",{enumerable:!0,get:function(){return p.ContainerModule}});var f=n(33353);Object.defineProperty(t,"createTaggedDecorator",{enumerable:!0,get:function(){return f.createTaggedDecorator}});var m=n(28633);Object.defineProperty(t,"injectable",{enumerable:!0,get:function(){return m.injectable}});var h=n(23108);Object.defineProperty(t,"tagged",{enumerable:!0,get:function(){return h.tagged}});var v=n(53719);Object.defineProperty(t,"named",{enumerable:!0,get:function(){return v.named}});var g=n(94269);Object.defineProperty(t,"inject",{enumerable:!0,get:function(){return g.inject}});var y=n(66004);Object.defineProperty(t,"optional",{enumerable:!0,get:function(){return y.optional}});var _=n(98986);Object.defineProperty(t,"unmanaged",{enumerable:!0,get:function(){return _.unmanaged}});var b=n(4035);Object.defineProperty(t,"multiInject",{enumerable:!0,get:function(){return b.multiInject}});var x=n(86331);Object.defineProperty(t,"targetName",{enumerable:!0,get:function(){return x.targetName}});var w=n(68480);Object.defineProperty(t,"postConstruct",{enumerable:!0,get:function(){return w.postConstruct}});var S=n(56294);Object.defineProperty(t,"preDestroy",{enumerable:!0,get:function(){return S.preDestroy}});var O=n(263);Object.defineProperty(t,"MetadataReader",{enumerable:!0,get:function(){return O.MetadataReader}});var k=n(37763);Object.defineProperty(t,"id",{enumerable:!0,get:function(){return k.id}});var $=n(33353);Object.defineProperty(t,"decorate",{enumerable:!0,get:function(){return $.decorate}});var P=n(26727);Object.defineProperty(t,"traverseAncerstors",{enumerable:!0,get:function(){return P.traverseAncerstors}}),Object.defineProperty(t,"taggedConstraint",{enumerable:!0,get:function(){return P.taggedConstraint}}),Object.defineProperty(t,"namedConstraint",{enumerable:!0,get:function(){return P.namedConstraint}}),Object.defineProperty(t,"typeConstraint",{enumerable:!0,get:function(){return P.typeConstraint}});var E=n(56272);Object.defineProperty(t,"getServiceIdentifierAsString",{enumerable:!0,get:function(){return E.getServiceIdentifierAsString}});var T=n(8835);Object.defineProperty(t,"multiBindToService",{enumerable:!0,get:function(){return T.multiBindToService}})},52727:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getClassElementMetadataFromNewable=function(e){return{kind:r.ClassElementMetadataKind.singleInjection,name:void 0,optional:!1,tags:new Map,targetName:void 0,value:e}};const r=n(86277)},52760:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BindingInWhenOnSyntax=void 0;const r=n(27161),i=n(87059),o=n(90732);t.BindingInWhenOnSyntax=class{_bindingInSyntax;_bindingWhenSyntax;_bindingOnSyntax;_binding;constructor(e){this._binding=e,this._bindingWhenSyntax=new o.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new i.BindingOnSyntax(this._binding),this._bindingInSyntax=new r.BindingInSyntax(e)}inRequestScope(){return this._bindingInSyntax.inRequestScope()}inSingletonScope(){return this._bindingInSyntax.inSingletonScope()}inTransientScope(){return this._bindingInSyntax.inTransientScope()}when(e){return this._bindingWhenSyntax.when(e)}whenTargetNamed(e){return this._bindingWhenSyntax.whenTargetNamed(e)}whenTargetIsDefault(){return this._bindingWhenSyntax.whenTargetIsDefault()}whenTargetTagged(e,t){return this._bindingWhenSyntax.whenTargetTagged(e,t)}whenInjectedInto(e){return this._bindingWhenSyntax.whenInjectedInto(e)}whenParentNamed(e){return this._bindingWhenSyntax.whenParentNamed(e)}whenParentTagged(e,t){return this._bindingWhenSyntax.whenParentTagged(e,t)}whenAnyAncestorIs(e){return this._bindingWhenSyntax.whenAnyAncestorIs(e)}whenNoAncestorIs(e){return this._bindingWhenSyntax.whenNoAncestorIs(e)}whenAnyAncestorNamed(e){return this._bindingWhenSyntax.whenAnyAncestorNamed(e)}whenAnyAncestorTagged(e,t){return this._bindingWhenSyntax.whenAnyAncestorTagged(e,t)}whenNoAncestorNamed(e){return this._bindingWhenSyntax.whenNoAncestorNamed(e)}whenNoAncestorTagged(e,t){return this._bindingWhenSyntax.whenNoAncestorTagged(e,t)}whenAnyAncestorMatches(e){return this._bindingWhenSyntax.whenAnyAncestorMatches(e)}whenNoAncestorMatches(e){return this._bindingWhenSyntax.whenNoAncestorMatches(e)}onActivation(e){return this._bindingOnSyntax.onActivation(e)}onDeactivation(e){return this._bindingOnSyntax.onDeactivation(e)}}},52829:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.EngineType=void 0,t.normalizeEngineType=i,t.getEngineTypeInfo=function(e){return r[i(e)]},t.getEngineTypeFromFileExtension=function(e){var t;return null!==(t=s[e.toLowerCase()])&&void 0!==t?t:n.unkown},function(e){e.unkown="",e.javascript="javascript/js",e.typescript="typescript/ts",e.blockly="blockly",e.rules="rules"}(n||(t.EngineType=n={}));const r={[n.javascript]:{ioBrokerType:"Javascript/js",fileExtension:"js",languageId:"javascript",icon:"javascript.svg"},[n.typescript]:{ioBrokerType:"TypeScript/ts",fileExtension:"ts",languageId:"typescript",icon:"typescript.svg"},[n.blockly]:{ioBrokerType:"Blockly",fileExtension:"block",languageId:"blockly",icon:"blockly.svg"},[n.rules]:{ioBrokerType:"Rules",fileExtension:"rules",languageId:"rules",icon:"rules.svg"}};function i(e){var t,r;const i=null!==(t=null==e?void 0:e.toLowerCase().split("/")[0].trim())&&void 0!==t?t:"";return null!==(r=o[i])&&void 0!==r?r:n.unkown}const o=function(){const e={},t=n;for(const r of Object.keys(t)){const i=t[r];if(i!==n.unkown)for(const t of i.split("/"))e[t]=i}return e}(),s=function(){const e={};for(const t of Object.keys(r))e[r[t].fileExtension]=t;return e}()},52902:e=>{var t=1e3,n=60*t,r=60*n,i=24*r;function o(e,t,n){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}e.exports=function(e,s){s=s||{};var a,c=typeof e;if("string"===c&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var o=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(o){var s=parseFloat(o[1]);switch((o[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"days":case"day":case"d":return s*i;case"hours":case"hour":case"hrs":case"hr":case"h":return s*r;case"minutes":case"minute":case"mins":case"min":case"m":return s*n;case"seconds":case"second":case"secs":case"sec":case"s":return s*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}(e);if("number"===c&&!1===isNaN(e))return s.long?o(a=e,i,"day")||o(a,r,"hour")||o(a,n,"minute")||o(a,t,"second")||a+" ms":function(e){return e>=i?Math.round(e/i)+"d":e>=r?Math.round(e/r)+"h":e>=n?Math.round(e/n)+"m":e>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},53128:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toUpperCase=t.toLowerCase=t.trim=t.normalize=t.overwrite=t.mime=t.property=t.endsWith=t.startsWith=t.includes=t.uppercase=t.lowercase=t.regex=t.length=t.minLength=t.maxLength=t.size=t.minSize=t.maxSize=t.multipleOf=t.nonnegative=t.nonpositive=t.negative=t.positive=t.minimum=t.gte=t.gt=t.maximum=t.lte=t.lt=void 0;var r=n(76601);Object.defineProperty(t,"lt",{enumerable:!0,get:function(){return r._lt}}),Object.defineProperty(t,"lte",{enumerable:!0,get:function(){return r._lte}}),Object.defineProperty(t,"maximum",{enumerable:!0,get:function(){return r._lte}}),Object.defineProperty(t,"gt",{enumerable:!0,get:function(){return r._gt}}),Object.defineProperty(t,"gte",{enumerable:!0,get:function(){return r._gte}}),Object.defineProperty(t,"minimum",{enumerable:!0,get:function(){return r._gte}}),Object.defineProperty(t,"positive",{enumerable:!0,get:function(){return r._positive}}),Object.defineProperty(t,"negative",{enumerable:!0,get:function(){return r._negative}}),Object.defineProperty(t,"nonpositive",{enumerable:!0,get:function(){return r._nonpositive}}),Object.defineProperty(t,"nonnegative",{enumerable:!0,get:function(){return r._nonnegative}}),Object.defineProperty(t,"multipleOf",{enumerable:!0,get:function(){return r._multipleOf}}),Object.defineProperty(t,"maxSize",{enumerable:!0,get:function(){return r._maxSize}}),Object.defineProperty(t,"minSize",{enumerable:!0,get:function(){return r._minSize}}),Object.defineProperty(t,"size",{enumerable:!0,get:function(){return r._size}}),Object.defineProperty(t,"maxLength",{enumerable:!0,get:function(){return r._maxLength}}),Object.defineProperty(t,"minLength",{enumerable:!0,get:function(){return r._minLength}}),Object.defineProperty(t,"length",{enumerable:!0,get:function(){return r._length}}),Object.defineProperty(t,"regex",{enumerable:!0,get:function(){return r._regex}}),Object.defineProperty(t,"lowercase",{enumerable:!0,get:function(){return r._lowercase}}),Object.defineProperty(t,"uppercase",{enumerable:!0,get:function(){return r._uppercase}}),Object.defineProperty(t,"includes",{enumerable:!0,get:function(){return r._includes}}),Object.defineProperty(t,"startsWith",{enumerable:!0,get:function(){return r._startsWith}}),Object.defineProperty(t,"endsWith",{enumerable:!0,get:function(){return r._endsWith}}),Object.defineProperty(t,"property",{enumerable:!0,get:function(){return r._property}}),Object.defineProperty(t,"mime",{enumerable:!0,get:function(){return r._mime}}),Object.defineProperty(t,"overwrite",{enumerable:!0,get:function(){return r._overwrite}}),Object.defineProperty(t,"normalize",{enumerable:!0,get:function(){return r._normalize}}),Object.defineProperty(t,"trim",{enumerable:!0,get:function(){return r._trim}}),Object.defineProperty(t,"toLowerCase",{enumerable:!0,get:function(){return r._toLowerCase}}),Object.defineProperty(t,"toUpperCase",{enumerable:!0,get:function(){return r._toUpperCase}})},53144:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(66596),i=n(99048),o=n(85311),s={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>r._`{allowedValues: ${e}}`},code(e){const{gen:t,data:n,$data:s,schema:a,schemaCode:c,it:u}=e;if(!s&&0===a.length)throw new Error("enum must have non-empty array");const l=a.length>=u.opts.loopEnum;let d;const p=()=>null!=d?d:d=(0,i.useFunc)(t,o.default);let f;if(l||s)f=t.let("valid"),e.block$data(f,function(){t.assign(f,!1),t.forOf("v",c,e=>t.if(r._`${p()}(${n}, ${e})`,()=>t.assign(f,!0).break()))});else{if(!Array.isArray(a))throw new Error("ajv implementation error");const e=t.const("vSchema",c);f=(0,r.or)(...a.map((t,i)=>function(e,t){const i=a[t];return"object"==typeof i&&null!==i?r._`${p()}(${n}, ${e}[${t}])`:r._`${n} === ${i}`}(e,i)))}e.pass(f)}};t.default=s},53148:(e,t,n)=>{"use strict";try{e.exports=n(68169)(__dirname)}catch(t){e.exports=n(96556)}},53200:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExperimentalServerTasks=void 0;const r=n(1294);t.ExperimentalServerTasks=class{constructor(e){this._server=e}requestStream(e,t,n){return this._server.requestStream(e,t,n)}createMessageStream(e,t){const n=this._server.getClientCapabilities();if((e.tools||e.toolChoice)&&!n?.sampling?.tools)throw new Error("Client does not support sampling tools capability.");if(e.messages.length>0){const t=e.messages[e.messages.length-1],n=Array.isArray(t.content)?t.content:[t.content],r=n.some(e=>"tool_result"===e.type),i=e.messages.length>1?e.messages[e.messages.length-2]:void 0,o=i?Array.isArray(i.content)?i.content:[i.content]:[],s=o.some(e=>"tool_use"===e.type);if(r){if(n.some(e=>"tool_result"!==e.type))throw new Error("The last message must contain only tool_result content if any is present");if(!s)throw new Error("tool_result blocks are not matching any tool_use from the previous message")}if(s){const e=new Set(o.filter(e=>"tool_use"===e.type).map(e=>e.id)),t=new Set(n.filter(e=>"tool_result"===e.type).map(e=>e.toolUseId));if(e.size!==t.size||![...e].every(e=>t.has(e)))throw new Error("ids of tool_result blocks and tool_use blocks from previous message do not match")}}return this.requestStream({method:"sampling/createMessage",params:e},r.CreateMessageResultSchema,t)}elicitInputStream(e,t){const n=this._server.getClientCapabilities(),i=e.mode??"form";switch(i){case"url":if(!n?.elicitation?.url)throw new Error("Client does not support url elicitation.");break;case"form":if(!n?.elicitation?.form)throw new Error("Client does not support form elicitation.")}const o="form"===i&&void 0===e.mode?{...e,mode:"form"}:e;return this.requestStream({method:"elicitation/create",params:o},r.ElicitResultSchema,t)}async getTask(e,t){return this._server.getTask({taskId:e},t)}async getTaskResult(e,t,n){return this._server.getTaskResult({taskId:e},t,n)}async listTasks(e,t){return this._server.listTasks(e?{cursor:e}:void 0,t)}async cancelTask(e,t){return this._server.cancelTask({taskId:e},t)}}},53231:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class n{}t._CodeOrName=n,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends n{constructor(e){if(super(),!t.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=r;class i extends n{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce((e,t)=>`${e}${t}`,"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce((e,t)=>(t instanceof r&&(e[t.str]=(e[t.str]||0)+1),e),{})}}function o(e,...t){const n=[e[0]];let r=0;for(;r<t.length;)c(n,t[r]),n.push(e[++r]);return new i(n)}t._Code=i,t.nil=new i(""),t._=o;const s=new i("+");function a(e,...t){const n=[l(e[0])];let r=0;for(;r<t.length;)n.push(s),c(n,t[r]),n.push(s,l(e[++r]));return function(e){let t=1;for(;t<e.length-1;){if(e[t]===s){const n=u(e[t-1],e[t+1]);if(void 0!==n){e.splice(t-1,3,n);continue}e[t++]="+"}t++}}(n),new i(n)}function c(e,t){var n;t instanceof i?e.push(...t._items):t instanceof r?e.push(t):e.push("number"==typeof(n=t)||"boolean"==typeof n||null===n?n:l(Array.isArray(n)?n.join(","):n))}function u(e,t){if('""'===t)return e;if('""'===e)return t;if("string"==typeof e){if(t instanceof r||'"'!==e[e.length-1])return;return"string"!=typeof t?`${e.slice(0,-1)}${t}"`:'"'===t[0]?e.slice(0,-1)+t.slice(1):void 0}return"string"!=typeof t||'"'!==t[0]||e instanceof r?void 0:`"${e}${t.slice(1)}`}function l(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}t.str=a,t.addCodeArg=c,t.strConcat=function(e,t){return t.emptyStr()?e:e.emptyStr()?t:a`${e}${t}`},t.stringify=function(e){return new i(l(e))},t.safeStringify=l,t.getProperty=function(e){return"string"==typeof e&&t.IDENTIFIER.test(e)?new i(`.${e}`):o`[${e}]`},t.getEsmExportName=function(e){if("string"==typeof e&&t.IDENTIFIER.test(e))return new i(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)},t.regexpCode=function(e){return new i(e.toString())}},53663:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(51980),i=n(99048),o=n(66596),s={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>o.str`must match pattern "${e}"`,params:({schemaCode:e})=>o._`{pattern: ${e}}`},code(e){const{gen:t,data:n,$data:s,schema:a,schemaCode:c,it:u}=e,l=u.opts.unicodeRegExp?"u":"";if(s){const{regExp:r}=u.opts.code,s="new RegExp"===r.code?o._`new RegExp`:(0,i.useFunc)(t,r),a=t.let("valid");t.try(()=>t.assign(a,o._`${s}(${c}, ${l}).test(${n})`),()=>t.assign(a,!1)),e.fail$data(o._`!${a}`)}else{const t=(0,r.usePattern)(e,a);e.fail$data(o._`!${t}.test(${n})`)}}};t.default=s},53719:function(e,t,n){"use strict";var r,i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),s=0;s<n.length;s++)"default"!==n[s]&&i(t,e,n[s]);return o(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.named=function(e){return(0,u.createTaggedDecorator)(new c.Metadata(a.NAMED_TAG,e))};const a=s(n(19466)),c=n(4045),u=n(33353)},53781:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}t.default=n},54003:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.parsedType=void 0,t.default=function(){return{localeError:a()}};const s=o(n(90523));t.parsedType=e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t};const a=()=>{const e={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"}};function n(t){return e[t]??null}const r={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO süre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aralığı",cidrv6:"IPv6 aralığı",base64:"base64 ile şifrelenmiş metin",base64url:"base64url ile şifrelenmiş metin",json_string:"JSON dizesi",e164:"E.164 sayısı",jwt:"JWT",template_literal:"Şablon dizesi"};return e=>{switch(e.code){case"invalid_type":return`Geçersiz değer: beklenen ${e.expected}, alınan ${(0,t.parsedType)(e.input)}`;case"invalid_value":return 1===e.values.length?`Geçersiz değer: beklenen ${s.stringifyPrimitive(e.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${s.joinValues(e.values,"|")}`;case"too_big":{const t=e.inclusive?"<=":"<",r=n(e.origin);return r?`Çok büyük: beklenen ${e.origin??"değer"} ${t}${e.maximum.toString()} ${r.unit??"öğe"}`:`Çok büyük: beklenen ${e.origin??"değer"} ${t}${e.maximum.toString()}`}case"too_small":{const t=e.inclusive?">=":">",r=n(e.origin);return r?`Çok küçük: beklenen ${e.origin} ${t}${e.minimum.toString()} ${r.unit}`:`Çok küçük: beklenen ${e.origin} ${t}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Geçersiz metin: "${t.prefix}" ile başlamalı`:"ends_with"===t.format?`Geçersiz metin: "${t.suffix}" ile bitmeli`:"includes"===t.format?`Geçersiz metin: "${t.includes}" içermeli`:"regex"===t.format?`Geçersiz metin: ${t.pattern} desenine uymalı`:`Geçersiz ${r[t.format]??e.format}`}case"not_multiple_of":return`Geçersiz sayı: ${e.divisor} ile tam bölünebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${e.keys.length>1?"lar":""}: ${s.joinValues(e.keys,", ")}`;case"invalid_key":return`${e.origin} içinde geçersiz anahtar`;case"invalid_union":default:return"Geçersiz değer";case"invalid_element":return`${e.origin} içinde geçersiz değer`}}}},54560:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(51980),i=n(66596),o=n(99048),s={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>i.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>i._`{missingProperty: ${e}}`},code(e){const{gen:t,schema:n,schemaCode:s,data:a,$data:c,it:u}=e,{opts:l}=u;if(!c&&0===n.length)return;const d=n.length>=l.loopRequired;if(u.allErrors?function(){if(d||c)e.block$data(i.nil,p);else for(const t of n)(0,r.checkReportMissingProp)(e,t)}():function(){const o=t.let("missing");if(d||c){const n=t.let("valid",!0);e.block$data(n,()=>function(n,o){e.setParams({missingProperty:n}),t.forOf(n,s,()=>{t.assign(o,(0,r.propertyInData)(t,a,n,l.ownProperties)),t.if((0,i.not)(o),()=>{e.error(),t.break()})},i.nil)}(o,n)),e.ok(n)}else t.if((0,r.checkMissingProp)(e,n,o)),(0,r.reportMissingProp)(e,o),t.else()}(),l.strictRequired){const t=e.parentSchema.properties,{definedProperties:r}=e.it;for(const e of n)if(void 0===(null==t?void 0:t[e])&&!r.has(e)){const t=`required property "${e}" is not defined at "${u.schemaEnv.baseId+u.errSchemaPath}" (strictRequired)`;(0,o.checkStrictMode)(u,t,u.opts.strictRequired)}}function p(){t.forOf("prop",s,n=>{e.setParams({missingProperty:n}),t.if((0,r.noPropertyInData)(t,a,n,l.ownProperties),()=>e.error())})}}};t.default=s},54738:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.coerce=t.ZodMiniISODuration=t.ZodMiniISOTime=t.ZodMiniISODate=t.ZodMiniISODateTime=t.iso=t.locales=t.NEVER=t.TimePrecision=t.toJSONSchema=t.flattenError=t.formatError=t.prettifyError=t.treeifyError=t.regexes=t.clone=t.function=t.$brand=t.$input=t.$output=t.config=t.registry=t.globalRegistry=t.core=void 0,t.core=o(n(76601)),s(n(83168),t),s(n(33),t),s(n(53128),t);var a=n(76601);Object.defineProperty(t,"globalRegistry",{enumerable:!0,get:function(){return a.globalRegistry}}),Object.defineProperty(t,"registry",{enumerable:!0,get:function(){return a.registry}}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return a.config}}),Object.defineProperty(t,"$output",{enumerable:!0,get:function(){return a.$output}}),Object.defineProperty(t,"$input",{enumerable:!0,get:function(){return a.$input}}),Object.defineProperty(t,"$brand",{enumerable:!0,get:function(){return a.$brand}}),Object.defineProperty(t,"function",{enumerable:!0,get:function(){return a.function}}),Object.defineProperty(t,"clone",{enumerable:!0,get:function(){return a.clone}}),Object.defineProperty(t,"regexes",{enumerable:!0,get:function(){return a.regexes}}),Object.defineProperty(t,"treeifyError",{enumerable:!0,get:function(){return a.treeifyError}}),Object.defineProperty(t,"prettifyError",{enumerable:!0,get:function(){return a.prettifyError}}),Object.defineProperty(t,"formatError",{enumerable:!0,get:function(){return a.formatError}}),Object.defineProperty(t,"flattenError",{enumerable:!0,get:function(){return a.flattenError}}),Object.defineProperty(t,"toJSONSchema",{enumerable:!0,get:function(){return a.toJSONSchema}}),Object.defineProperty(t,"TimePrecision",{enumerable:!0,get:function(){return a.TimePrecision}}),Object.defineProperty(t,"NEVER",{enumerable:!0,get:function(){return a.NEVER}}),t.locales=o(n(45167)),t.iso=o(n(37390));var c=n(37390);Object.defineProperty(t,"ZodMiniISODateTime",{enumerable:!0,get:function(){return c.ZodMiniISODateTime}}),Object.defineProperty(t,"ZodMiniISODate",{enumerable:!0,get:function(){return c.ZodMiniISODate}}),Object.defineProperty(t,"ZodMiniISOTime",{enumerable:!0,get:function(){return c.ZodMiniISOTime}}),Object.defineProperty(t,"ZodMiniISODuration",{enumerable:!0,get:function(){return c.ZodMiniISODuration}}),t.coerce=o(n(27668))},55028:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBaseType=function(e){const t=Object.getPrototypeOf(e.prototype),n=t?.constructor;return n}},55662:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{localeError:a()}};const s=o(n(90523)),a=()=>{const e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(t){return e[t]??null}const n={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"};return e=>{switch(e.code){case"invalid_type":return`Input non valido: atteso ${e.expected}, ricevuto ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"numero";case"object":if(Array.isArray(e))return"vettore";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Input non valido: atteso ${s.stringifyPrimitive(e.values[0])}`:`Opzione non valida: atteso uno tra ${s.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`Troppo grande: ${e.origin??"valore"} deve avere ${n}${e.maximum.toString()} ${r.unit??"elementi"}`:`Troppo grande: ${e.origin??"valore"} deve essere ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`Troppo piccolo: ${e.origin} deve avere ${n}${e.minimum.toString()} ${r.unit}`:`Troppo piccolo: ${e.origin} deve essere ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Stringa non valida: deve iniziare con "${t.prefix}"`:"ends_with"===t.format?`Stringa non valida: deve terminare con "${t.suffix}"`:"includes"===t.format?`Stringa non valida: deve includere "${t.includes}"`:"regex"===t.format?`Stringa non valida: deve corrispondere al pattern ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${e.divisor}`;case"unrecognized_keys":return`Chiav${e.keys.length>1?"i":"e"} non riconosciut${e.keys.length>1?"e":"a"}: ${s.joinValues(e.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${e.origin}`;case"invalid_union":default:return"Input non valido";case"invalid_element":return`Valore non valido in ${e.origin}`}}}},55853:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n={services:{configCreation:Symbol.for("ConfigCreationService"),configRepository:Symbol.for("ConfigRepositoryService"),file:Symbol.for("FileService"),command:Symbol.for("CommandService"),workspace:Symbol.for("WorkspaceService"),script:Symbol.for("ScriptService"),scriptId:Symbol.for("ScriptIdService"),scriptRemote:Symbol.for("ScriptRemoteService"),scriptRepository:Symbol.for("ScriptRepositoryService"),localOnlyScriptRepository:Symbol.for("LocalOnlyScriptRepositoryService"),directory:Symbol.for("DirectoryService"),log:Symbol.for("LogService"),typeDefinition:Symbol.for("TypeDefinitionService"),login:Symbol.for("LoginService"),loginCredentials:Symbol.for("LoginServiceCredentials"),iobrokerConnection:Symbol.for("IobrokerConnection"),jsInstance:Symbol.for("JsInstanceService"),socketIoClient:Symbol.for("SocketIoClient"),adminVersionDetector:Symbol.for("AdminVersionDetector"),debugLogService:Symbol.for("DebugLogService"),statusBarService:Symbol.for("StatusBarService"),windowMessageService:Symbol.for("WindowMessageService'"),stateAndObjectRemoteService:Symbol.for("StateAndObjectRemoteService'"),objectRepositoryService:Symbol.for("ObjectRepositoryService'"),autoUploadService:Symbol.for("AutoUploadService'"),scriptCreationService:Symbol.for("ScriptCreationService'"),secretPlaceholder:Symbol.for("SecretPlaceholderService"),connectionServiceProvider:Symbol.for("ConnectionServiceProvider"),connectionAdmin4:Symbol.for("ConnectionServiceAdmin4"),connectionAdmin5:Symbol.for("ConnectionServiceAdmin5"),scriptFile:Symbol.for("ScriptFileService"),aiToolService:Symbol.for("AiToolService")},views:{scriptExplorer:Symbol.for("ScriptExplorerView"),changedScripts:Symbol.for("ChangedScriptView")},providers:{iobrokerHoverProvider:Symbol.for("IobrokerHoverProvider"),iobrokerCompletionItemProvider:Symbol.for("IobrokerCompletionItemProvider"),iobrokerCodeActionsItemProvider:Symbol.for("IobrokerCodeActionsProvider")},command:Symbol.for("Command"),startup:Symbol.for("Startup"),extensionContext:Symbol.for("ExtensionContext")};t.default=n},55911:(e,t,n)=>{var r=n(90291),i=n(29140),o=n(6809),s=n(22370),a=n(42121),c=n(84953)("engine.io-client:polling");e.exports=l;var u=null!=new(n(83376))({xdomain:!1}).responseType;function l(e){var t=e&&e.forceBase64;u&&!t||(this.supportsBinary=!1),r.call(this,e)}s(l,r),l.prototype.name="polling",l.prototype.doOpen=function(){this.poll()},l.prototype.pause=function(e){var t=this;function n(){c("paused"),t.readyState="paused",e()}if(this.readyState="pausing",this.polling||!this.writable){var r=0;this.polling&&(c("we are currently polling - waiting to pause"),r++,this.once("pollComplete",function(){c("pre-pause polling complete"),--r||n()})),this.writable||(c("we are currently writing - waiting to pause"),r++,this.once("drain",function(){c("pre-pause writing complete"),--r||n()}))}else n()},l.prototype.poll=function(){c("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},l.prototype.onData=function(e){var t=this;c("polling got data %s",e),o.decodePayload(e,this.socket.binaryType,function(e,n,r){if("opening"===t.readyState&&"open"===e.type&&t.onOpen(),"close"===e.type)return t.onClose(),!1;t.onPacket(e)}),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState?this.poll():c('ignoring poll - transport state "%s"',this.readyState))},l.prototype.doClose=function(){var e=this;function t(){c("writing close packet"),e.write([{type:"close"}])}"open"===this.readyState?(c("transport open - closing"),t()):(c("transport not open - deferring close"),this.once("open",t))},l.prototype.write=function(e){var t=this;this.writable=!1;var n=function(){t.writable=!0,t.emit("drain")};o.encodePayload(e,this.supportsBinary,function(e){t.doWrite(e,n)})},l.prototype.uri=function(){var e=this.query||{},t=this.secure?"https":"http",n="";return!1!==this.timestampRequests&&(e[this.timestampParam]=a()),this.supportsBinary||e.sid||(e.b64=1),e=i.encode(e),this.port&&("https"===t&&443!==Number(this.port)||"http"===t&&80!==Number(this.port))&&(n=":"+this.port),e.length&&(e="?"+e),t+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+e}},55926:(e,t,n)=>{"use strict";const{tokenChars:r}=n(95880);function i(e,t,n){void 0===e[t]?e[t]=[n]:e[t].push(n)}e.exports={format:function(e){return Object.keys(e).map(t=>{let n=e[t];return Array.isArray(n)||(n=[n]),n.map(e=>[t].concat(Object.keys(e).map(t=>{let n=e[t];return Array.isArray(n)||(n=[n]),n.map(e=>!0===e?t:`${t}=${e}`).join("; ")})).join("; ")).join(", ")}).join(", ")},parse:function(e){const t=Object.create(null);let n,o,s=Object.create(null),a=!1,c=!1,u=!1,l=-1,d=-1,p=-1,f=0;for(;f<e.length;f++)if(d=e.charCodeAt(f),void 0===n)if(-1===p&&1===r[d])-1===l&&(l=f);else if(0===f||32!==d&&9!==d){if(59!==d&&44!==d)throw new SyntaxError(`Unexpected character at index ${f}`);{if(-1===l)throw new SyntaxError(`Unexpected character at index ${f}`);-1===p&&(p=f);const r=e.slice(l,p);44===d?(i(t,r,s),s=Object.create(null)):n=r,l=p=-1}}else-1===p&&-1!==l&&(p=f);else if(void 0===o)if(-1===p&&1===r[d])-1===l&&(l=f);else if(32===d||9===d)-1===p&&-1!==l&&(p=f);else if(59===d||44===d){if(-1===l)throw new SyntaxError(`Unexpected character at index ${f}`);-1===p&&(p=f),i(s,e.slice(l,p),!0),44===d&&(i(t,n,s),s=Object.create(null),n=void 0),l=p=-1}else{if(61!==d||-1===l||-1!==p)throw new SyntaxError(`Unexpected character at index ${f}`);o=e.slice(l,f),l=p=-1}else if(c){if(1!==r[d])throw new SyntaxError(`Unexpected character at index ${f}`);-1===l?l=f:a||(a=!0),c=!1}else if(u)if(1===r[d])-1===l&&(l=f);else if(34===d&&-1!==l)u=!1,p=f;else{if(92!==d)throw new SyntaxError(`Unexpected character at index ${f}`);c=!0}else if(34===d&&61===e.charCodeAt(f-1))u=!0;else if(-1===p&&1===r[d])-1===l&&(l=f);else if(-1===l||32!==d&&9!==d){if(59!==d&&44!==d)throw new SyntaxError(`Unexpected character at index ${f}`);{if(-1===l)throw new SyntaxError(`Unexpected character at index ${f}`);-1===p&&(p=f);let r=e.slice(l,p);a&&(r=r.replace(/\\/g,""),a=!1),i(s,o,r),44===d&&(i(t,n,s),s=Object.create(null),n=void 0),o=void 0,l=p=-1}}else-1===p&&(p=f);if(-1===l||u||32===d||9===d)throw new SyntaxError("Unexpected end of input");-1===p&&(p=f);const m=e.slice(l,p);return void 0===n?i(t,m,s):(void 0===o?i(s,m,!0):i(s,o,a?m.replace(/\\/g,""):m),i(t,n,s)),t}}},56139:(e,t,n)=>{var r=n(83376),i=n(79332),o=n(82252),s=n(46855);t.polling=function(e){var t=!1,n=!1,s=!1!==e.jsonp;if("undefined"!=typeof location){var a="https:"===location.protocol,c=location.port;c||(c=a?443:80),t=e.hostname!==location.hostname||c!==e.port,n=e.secure!==a}if(e.xdomain=t,e.xscheme=n,"open"in new r(e)&&!e.forceJSONP)return new i(e);if(!s)throw new Error("JSONP disabled");return new o(e)},t.websocket=s},56272:function(e,t,n){"use strict";var r,i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),s=0;s<n.length;s++)"default"!==n[s]&&i(t,e,n[s]);return o(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.getFunctionName=l,t.getServiceIdentifierAsString=c,t.listRegisteredBindingsForServiceIdentifier=function(e,t,n){let r="";const i=n(e,t);return 0!==i.length&&(r="\nRegistered bindings:",i.forEach(e=>{let t="Object";null!==e.implementationType&&(t=l(e.implementationType)),r=`${r}\n ${t}`,e.constraint.metaData&&(r=`${r} - ${e.constraint.metaData}`)})),r},t.listMetadataForTarget=function(e,t){if(t.isTagged()||t.isNamed()){let n="";const r=t.getNamedTag(),i=t.getCustomTags();return null!==r&&(n+=d(r)+"\n"),null!==i&&i.forEach(e=>{n+=d(e)+"\n"}),` ${e}\n ${e} - ${n}`}return` ${e}`},t.circularDependencyToException=function e(t){t.childRequests.forEach(n=>{if(u(t,n.serviceIdentifier)){const e=function(e){const t=function e(t,n=[]){const r=c(t.serviceIdentifier);return n.push(r),null!==t.parentRequest?e(t.parentRequest,n):n}(e);return t.reverse().join(" --\x3e ")}(n);throw new Error(`${a.CIRCULAR_DEPENDENCY} ${e}`)}e(n)})},t.getSymbolDescription=function(e){return e.toString().slice(7,-1)};const a=s(n(35007));function c(e){return"function"==typeof e?e.name:"symbol"==typeof e?e.toString():e}function u(e,t){return null!==e.parentRequest&&(e.parentRequest.serviceIdentifier===t||u(e.parentRequest,t))}function l(e){if(null!=e.name&&""!==e.name)return e.name;{const t=e.toString(),n=t.match(/^function\s*([^\s(]+)/);return null===n?`Anonymous function: ${t}`:n[1]}}function d(e){return`{"key":"${e.key.toString()}","value":"${e.value.toString()}"}`}},56294:function(e,t,n){"use strict";var r,i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),s=0;s<n.length;s++)"default"!==n[s]&&i(t,e,n[s]);return o(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.preDestroy=void 0;const a=s(n(35007)),c=s(n(19466)),u=(0,n(89260).propertyEventDecorator)(c.PRE_DESTROY,a.MULTIPLE_PRE_DESTROY_METHODS);t.preDestroy=u},56549:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toUpperCase=t.toLowerCase=t.trim=t.normalize=t.overwrite=t.mime=t.property=t.endsWith=t.startsWith=t.includes=t.uppercase=t.lowercase=t.regex=t.length=t.minLength=t.maxLength=t.size=t.minSize=t.maxSize=t.multipleOf=t.nonnegative=t.nonpositive=t.negative=t.positive=t.gte=t.gt=t.lte=t.lt=void 0;var r=n(76601);Object.defineProperty(t,"lt",{enumerable:!0,get:function(){return r._lt}}),Object.defineProperty(t,"lte",{enumerable:!0,get:function(){return r._lte}}),Object.defineProperty(t,"gt",{enumerable:!0,get:function(){return r._gt}}),Object.defineProperty(t,"gte",{enumerable:!0,get:function(){return r._gte}}),Object.defineProperty(t,"positive",{enumerable:!0,get:function(){return r._positive}}),Object.defineProperty(t,"negative",{enumerable:!0,get:function(){return r._negative}}),Object.defineProperty(t,"nonpositive",{enumerable:!0,get:function(){return r._nonpositive}}),Object.defineProperty(t,"nonnegative",{enumerable:!0,get:function(){return r._nonnegative}}),Object.defineProperty(t,"multipleOf",{enumerable:!0,get:function(){return r._multipleOf}}),Object.defineProperty(t,"maxSize",{enumerable:!0,get:function(){return r._maxSize}}),Object.defineProperty(t,"minSize",{enumerable:!0,get:function(){return r._minSize}}),Object.defineProperty(t,"size",{enumerable:!0,get:function(){return r._size}}),Object.defineProperty(t,"maxLength",{enumerable:!0,get:function(){return r._maxLength}}),Object.defineProperty(t,"minLength",{enumerable:!0,get:function(){return r._minLength}}),Object.defineProperty(t,"length",{enumerable:!0,get:function(){return r._length}}),Object.defineProperty(t,"regex",{enumerable:!0,get:function(){return r._regex}}),Object.defineProperty(t,"lowercase",{enumerable:!0,get:function(){return r._lowercase}}),Object.defineProperty(t,"uppercase",{enumerable:!0,get:function(){return r._uppercase}}),Object.defineProperty(t,"includes",{enumerable:!0,get:function(){return r._includes}}),Object.defineProperty(t,"startsWith",{enumerable:!0,get:function(){return r._startsWith}}),Object.defineProperty(t,"endsWith",{enumerable:!0,get:function(){return r._endsWith}}),Object.defineProperty(t,"property",{enumerable:!0,get:function(){return r._property}}),Object.defineProperty(t,"mime",{enumerable:!0,get:function(){return r._mime}}),Object.defineProperty(t,"overwrite",{enumerable:!0,get:function(){return r._overwrite}}),Object.defineProperty(t,"normalize",{enumerable:!0,get:function(){return r._normalize}}),Object.defineProperty(t,"trim",{enumerable:!0,get:function(){return r._trim}}),Object.defineProperty(t,"toLowerCase",{enumerable:!0,get:function(){return r._toLowerCase}}),Object.defineProperty(t,"toUpperCase",{enumerable:!0,get:function(){return r._toUpperCase}})},56617:(e,t,n)=>{function r(){var e;try{e=t.storage.debug}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e}(t=e.exports=n(79110)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),n){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var i=0,o=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(i++,"%c"===e&&(o=i))}),e.splice(o,0,r)}},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=r,t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(r())},57041:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{localeError:a()}};const s=o(n(90523)),a=()=>{const e={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"}};function t(t){return e[t]??null}const n={regex:"ข้อมูลที่ป้อน",email:"ที่อยู่อีเมล",url:"URL",emoji:"อิโมจิ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"วันที่เวลาแบบ ISO",date:"วันที่แบบ ISO",time:"เวลาแบบ ISO",duration:"ช่วงเวลาแบบ ISO",ipv4:"ที่อยู่ IPv4",ipv6:"ที่อยู่ IPv6",cidrv4:"ช่วง IP แบบ IPv4",cidrv6:"ช่วง IP แบบ IPv6",base64:"ข้อความแบบ Base64",base64url:"ข้อความแบบ Base64 สำหรับ URL",json_string:"ข้อความแบบ JSON",e164:"เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",jwt:"โทเคน JWT",template_literal:"ข้อมูลที่ป้อน"};return e=>{switch(e.code){case"invalid_type":return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${e.expected} แต่ได้รับ ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"ไม่ใช่ตัวเลข (NaN)":"ตัวเลข";case"object":if(Array.isArray(e))return"อาร์เรย์ (Array)";if(null===e)return"ไม่มีค่า (null)";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`ค่าไม่ถูกต้อง: ควรเป็น ${s.stringifyPrimitive(e.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${s.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"ไม่เกิน":"น้อยกว่า",r=t(e.origin);return r?`เกินกำหนด: ${e.origin??"ค่า"} ควรมี${n} ${e.maximum.toString()} ${r.unit??"รายการ"}`:`เกินกำหนด: ${e.origin??"ค่า"} ควรมี${n} ${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?"อย่างน้อย":"มากกว่า",r=t(e.origin);return r?`น้อยกว่ากำหนด: ${e.origin} ควรมี${n} ${e.minimum.toString()} ${r.unit}`:`น้อยกว่ากำหนด: ${e.origin} ควรมี${n} ${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${t.prefix}"`:"ends_with"===t.format?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${t.suffix}"`:"includes"===t.format?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${t.includes}" อยู่ในข้อความ`:"regex"===t.format?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${t.pattern}`:`รูปแบบไม่ถูกต้อง: ${n[t.format]??e.format}`}case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${e.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${s.joinValues(e.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${e.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${e.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}}}},57194:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.StderrDebugLogService=void 0;const i=n(79149);t.StderrDebugLogService=class{constructor(e){this.logger=e}startCollecting(){return r(this,void 0,void 0,function*(){})}stopCollecting(){}isCollecting(){return!1}log(e,t,n){this.logger.debug(`${null!=n?n:i.default.info} ${null!=t?t:""} ${e}`.trim())}logWarning(e,t){this.logger.warn(`${null!=t?t:""} ${e}`.trim())}logError(e,t){this.logger.error(`${null!=t?t:""} ${e}`.trim())}}},57698:(e,t,n)=>{var r=n(19331),i=n(95074),o=n(89725),s=n(22300)("socket.io-client");e.exports=t=c;var a=t.managers={};function c(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,i=r(e),c=i.source,u=i.id,l=i.path,d=a[u]&&l in a[u].nsps;return t.forceNew||t["force new connection"]||!1===t.multiplex||d?(s("ignoring socket cache for %s",c),n=o(c,t)):(a[u]||(s("new io instance for %s",c),a[u]=o(c,t)),n=a[u]),i.query&&!t.query&&(t.query=i.query),n.socket(i.path,t)}t.protocol=i.protocol,t.connect=c,t.Manager=n(89725),t.Socket=n(87773)},58068:e=>{"use strict";e.exports=SyntaxError},58427:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.deleteScript=function(e,t){return r(this,void 0,void 0,function*(){const n=(0,a.toScriptId)(t.scriptId);if(!n.ok)return n;const r=(0,o.ensureRemoteConnected)(e);if(r)return{ok:!1,error:r};const c=n.data,u=e.scripts.getScriptFromId(c);if(!u)return(0,i.failure)("not_found",`The script '${c}' is not known to the ioBroker server.`,"Use iobroker_get_scripts to look up available script ids.");try{return yield e.scriptRemote.delete(c),yield(0,o.refreshScriptInCache)(e,c),(0,i.success)({scriptId:(0,o.scriptIdOf)(u)})}catch(e){return(0,s.toFailure)(e)}})};const i=n(49402),o=n(33510),s=n(22797),a=n(75061)},58611:e=>{"use strict";e.exports=require("http")},58847:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isTerminal=function(e){return"completed"===e||"failed"===e||"cancelled"===e}},58968:e=>{"use strict";e.exports=Math.floor},59368:(e,t,n)=>{function r(){var e;try{e=t.storage.debug}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e}(t=e.exports=n(79939)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),n){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var i=0,o=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(i++,"%c"===e&&(o=i))}),e.splice(o,0,r)}},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=r,t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(r())},59517:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateReflectMetadata=t.getReflectMetadata=void 0;const r=n(3654);Object.defineProperty(t,"getReflectMetadata",{enumerable:!0,get:function(){return r.getReflectMetadata}});const i=n(22671);Object.defineProperty(t,"updateReflectMetadata",{enumerable:!0,get:function(){return i.updateReflectMetadata}})},60323:(e,t)=>{"use strict";function n(e,t){return{validate:e,compare:t}}Object.defineProperty(t,"__esModule",{value:!0}),t.formatNames=t.fastFormats=t.fullFormats=void 0,t.fullFormats={date:n(o,s),time:n(c(!0),u),"date-time":n(p(!0),f),"iso-time":n(c(),l),"iso-date-time":n(p(),m),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:function(e){return h.test(e)&&v.test(e)},"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:function(e){if(x.test(e))return!1;try{return new RegExp(e),!0}catch(e){return!1}},uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:function(e){return g.lastIndex=0,g.test(e)},int32:{type:"number",validate:function(e){return Number.isInteger(e)&&e<=_&&e>=y}},int64:{type:"number",validate:function(e){return Number.isInteger(e)}},float:{type:"number",validate:b},double:{type:"number",validate:b},password:!0,binary:!0},t.fastFormats={...t.fullFormats,date:n(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,s),time:n(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,u),"date-time":n(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,f),"iso-time":n(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,l),"iso-date-time":n(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,m),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},t.formatNames=Object.keys(t.fullFormats);const r=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31];function o(e){const t=r.exec(e);if(!t)return!1;const n=+t[1],o=+t[2],s=+t[3];return o>=1&&o<=12&&s>=1&&s<=(2===o&&function(e){return e%4==0&&(e%100!=0||e%400==0)}(n)?29:i[o])}function s(e,t){if(e&&t)return e>t?1:e<t?-1:0}const a=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function c(e){return function(t){const n=a.exec(t);if(!n)return!1;const r=+n[1],i=+n[2],o=+n[3],s=n[4],c="-"===n[5]?-1:1,u=+(n[6]||0),l=+(n[7]||0);if(u>23||l>59||e&&!s)return!1;if(r<=23&&i<=59&&o<60)return!0;const d=i-l*c,p=r-u*c-(d<0?1:0);return(23===p||-1===p)&&(59===d||-1===d)&&o<61}}function u(e,t){if(!e||!t)return;const n=new Date("2020-01-01T"+e).valueOf(),r=new Date("2020-01-01T"+t).valueOf();return n&&r?n-r:void 0}function l(e,t){if(!e||!t)return;const n=a.exec(e),r=a.exec(t);return n&&r?(e=n[1]+n[2]+n[3])>(t=r[1]+r[2]+r[3])?1:e<t?-1:0:void 0}const d=/t|\s/i;function p(e){const t=c(e);return function(e){const n=e.split(d);return 2===n.length&&o(n[0])&&t(n[1])}}function f(e,t){if(!e||!t)return;const n=new Date(e).valueOf(),r=new Date(t).valueOf();return n&&r?n-r:void 0}function m(e,t){if(!e||!t)return;const[n,r]=e.split(d),[i,o]=t.split(d),a=s(n,i);return void 0!==a?a||u(r,o):void 0}const h=/\/|:/,v=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,g=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm,y=-(2**31),_=2**31-1;function b(){return!0}const x=/[^\\]\\Z/},60548:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncContainerModule=t.ContainerModule=void 0;const r=n(37763);t.ContainerModule=class{id;registry;constructor(e){this.id=(0,r.id)(),this.registry=e}},t.AsyncContainerModule=class{id;registry;constructor(e){this.id=(0,r.id)(),this.registry=e}}},61382:(e,t,n)=>{var r=n(52018),i=n(39023);(t=e.exports=n(51175)).init=function(e){e.inspectOpts={};for(var n=Object.keys(t.inspectOpts),r=0;r<n.length;r++)e.inspectOpts[n[r]]=t.inspectOpts[n[r]]},t.log=function(){return process.stderr.write(i.format.apply(i,arguments)+"\n")},t.formatArgs=function(e){var n=this.namespace;if(this.useColors){var r=this.color,i="[3"+(r<8?r:"8;5;"+r),o=" "+i+";1m"+n+" ";e[0]=o+e[0].split("\n").join("\n"+o),e.push(i+"m+"+t.humanize(this.diff)+"")}else e[0]=(t.inspectOpts.hideDate?"":(new Date).toISOString()+" ")+n+" "+e[0]},t.save=function(e){null==e?delete process.env.DEBUG:process.env.DEBUG=e},t.load=s,t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):r.isatty(process.stderr.fd)},t.colors=[6,2,3,4,5,1];try{var o=n(27687);o&&o.level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}function s(){return process.env.DEBUG}t.inspectOpts=Object.keys(process.env).filter(function(e){return/^debug_/i.test(e)}).reduce(function(e,t){var n=t.substring(6).toLowerCase().replace(/_([a-z])/g,function(e,t){return t.toUpperCase()}),r=process.env[t];return r=!!/^(yes|on|true|enabled)$/i.test(r)||!/^(no|off|false|disabled)$/i.test(r)&&("null"===r?null:Number(r)),e[n]=r,e},{}),t.formatters.o=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts).split("\n").map(function(e){return e.trim()}).join(" ")},t.formatters.O=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts)},t.enable(s())},61388:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.createScript=function(e,t){return r(this,void 0,void 0,function*(){var n,r;const l=(0,c.validateName)(t.fileName,"fileName");if(!l.ok)return l;const d=(0,u.toEngineType)(t.language);if(!d.ok)return d;const p=d.data,f=(0,u.normalizeFileName)(l.data);if(0===f.length)return(0,o.failure)("invalid_input","'fileName' must contain more than the file extension.");let m=i.ScriptId.rootId;if(void 0!==t.directoryId){const e=(0,c.toDirectoryId)(t.directoryId);if(!e.ok)return e;m=e.data}const h=(0,s.ensureRemoteConnected)(e);if(h)return{ok:!1,error:h};const v=(0,s.findDirectory)(e,m);if(!v)return(0,o.failure)("not_found",`The directory '${m}' is not known to the ioBroker server.`,"Use iobroker_get_scripts to look up available directory ids.");const g="string"==typeof t.source?t.source:"",y=(0,s.defaultScript)(new i.ScriptId(`${v._id}.${f}`),p,yield(0,s.firstJsInstanceId)(e));let _;try{_=yield e.scriptRemote.downloadScriptWithId(y._id)}catch(e){return(0,a.toFailure)(e)}if(_)return(0,o.failure)("already_exists",`The id '${y._id}' does already exist on the ioBroker server.`,"Choose a different 'fileName' or delete the existing script first.");y.common.source=g;try{return yield e.scriptRemote.uploadScript(y),yield(0,s.refreshScriptInCache)(e,y._id),(0,o.success)({scriptId:`${y._id}`,name:null!==(n=y.common.name)&&void 0!==n?n:f,engineType:`${null!==(r=y.common.engineType)&&void 0!==r?r:p}`})}catch(e){return(0,a.toFailure)(e)}})};const i=n(11633),o=n(49402),s=n(33510),a=n(22797),c=n(75061),u=n(1897)},61526:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(99048),i={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:n,it:i}=e;if((0,r.alwaysValidSchema)(i,n))return void e.fail();const o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};t.default=i},61722:(e,t,n)=>{"use strict";const r=n(24434),i=n(58611),{Duplex:o}=n(2203),{createHash:s}=n(76982),a=n(55926),c=n(42971),u=n(28237),l=n(91060),{GUID:d,kWebSocket:p}=n(32614),f=/^[+/0-9A-Za-z]{22}==$/;function m(e){e._state=2,e.emit("close")}function h(){this.destroy()}function v(e,t,n,r){n=n||i.STATUS_CODES[t],r={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(n),...r},e.once("finish",e.destroy),e.end(`HTTP/1.1 ${t} ${i.STATUS_CODES[t]}\r\n`+Object.keys(r).map(e=>`${e}: ${r[e]}`).join("\r\n")+"\r\n\r\n"+n)}function g(e,t,n,r,i,o){if(e.listenerCount("wsClientError")){const r=new Error(i);Error.captureStackTrace(r,g),e.emit("wsClientError",r,n,t)}else v(n,r,i,o)}e.exports=class extends r{constructor(e,t){if(super(),null==(e={allowSynchronousEvents:!0,autoPong:!0,maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,WebSocket:l,...e}).port&&!e.server&&!e.noServer||null!=e.port&&(e.server||e.noServer)||e.server&&e.noServer)throw new TypeError('One and only one of the "port", "server", or "noServer" options must be specified');if(null!=e.port?(this._server=i.createServer((e,t)=>{const n=i.STATUS_CODES[426];t.writeHead(426,{"Content-Length":n.length,"Content-Type":"text/plain"}),t.end(n)}),this._server.listen(e.port,e.host,e.backlog,t)):e.server&&(this._server=e.server),this._server){const e=this.emit.bind(this,"connection");this._removeListeners=function(e,t){for(const n of Object.keys(t))e.on(n,t[n]);return function(){for(const n of Object.keys(t))e.removeListener(n,t[n])}}(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(t,n,r)=>{this.handleUpgrade(t,n,r,e)}})}!0===e.perMessageDeflate&&(e.perMessageDeflate={}),e.clientTracking&&(this.clients=new Set,this._shouldEmitClose=!1),this.options=e,this._state=0}address(){if(this.options.noServer)throw new Error('The server is operating in "noServer" mode');return this._server?this._server.address():null}close(e){if(2===this._state)return e&&this.once("close",()=>{e(new Error("The server is not running"))}),void process.nextTick(m,this);if(e&&this.once("close",e),1!==this._state)if(this._state=1,this.options.noServer||this.options.server)this._server&&(this._removeListeners(),this._removeListeners=this._server=null),this.clients&&this.clients.size?this._shouldEmitClose=!0:process.nextTick(m,this);else{const e=this._server;this._removeListeners(),this._removeListeners=this._server=null,e.close(()=>{m(this)})}}shouldHandle(e){if(this.options.path){const t=e.url.indexOf("?");if((-1!==t?e.url.slice(0,t):e.url)!==this.options.path)return!1}return!0}handleUpgrade(e,t,n,r){t.on("error",h);const i=e.headers["sec-websocket-key"],o=e.headers.upgrade,s=+e.headers["sec-websocket-version"];if("GET"!==e.method)return void g(this,e,t,405,"Invalid HTTP method");if(void 0===o||"websocket"!==o.toLowerCase())return void g(this,e,t,400,"Invalid Upgrade header");if(void 0===i||!f.test(i))return void g(this,e,t,400,"Missing or invalid Sec-WebSocket-Key header");if(13!==s&&8!==s)return void g(this,e,t,400,"Missing or invalid Sec-WebSocket-Version header",{"Sec-WebSocket-Version":"13, 8"});if(!this.shouldHandle(e))return void v(t,400);const l=e.headers["sec-websocket-protocol"];let d=new Set;if(void 0!==l)try{d=u.parse(l)}catch(n){return void g(this,e,t,400,"Invalid Sec-WebSocket-Protocol header")}const p=e.headers["sec-websocket-extensions"],m={};if(this.options.perMessageDeflate&&void 0!==p){const n=new c(this.options.perMessageDeflate,!0,this.options.maxPayload);try{const e=a.parse(p);e[c.extensionName]&&(n.accept(e[c.extensionName]),m[c.extensionName]=n)}catch(n){return void g(this,e,t,400,"Invalid or unacceptable Sec-WebSocket-Extensions header")}}if(this.options.verifyClient){const o={origin:e.headers[8===s?"sec-websocket-origin":"origin"],secure:!(!e.socket.authorized&&!e.socket.encrypted),req:e};if(2===this.options.verifyClient.length)return void this.options.verifyClient(o,(o,s,a,c)=>{if(!o)return v(t,s||401,a,c);this.completeUpgrade(m,i,d,e,t,n,r)});if(!this.options.verifyClient(o))return v(t,401)}this.completeUpgrade(m,i,d,e,t,n,r)}completeUpgrade(e,t,n,r,i,o,u){if(!i.readable||!i.writable)return i.destroy();if(i[p])throw new Error("server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration");if(this._state>0)return v(i,503);const l=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${s("sha1").update(t+d).digest("base64")}`],f=new this.options.WebSocket(null,void 0,this.options);if(n.size){const e=this.options.handleProtocols?this.options.handleProtocols(n,r):n.values().next().value;e&&(l.push(`Sec-WebSocket-Protocol: ${e}`),f._protocol=e)}if(e[c.extensionName]){const t=e[c.extensionName].params,n=a.format({[c.extensionName]:[t]});l.push(`Sec-WebSocket-Extensions: ${n}`),f._extensions=e}this.emit("headers",l,r),i.write(l.concat("\r\n").join("\r\n")),i.removeListener("error",h),f.setSocket(i,o,{allowSynchronousEvents:this.options.allowSynchronousEvents,maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation}),this.clients&&(this.clients.add(f),f.on("close",()=>{this.clients.delete(f),this._shouldEmitClose&&!this.clients.size&&process.nextTick(m,this)})),u(f,r)}}},61823:function(e,t,n){"use strict";var r,i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),s=0;s<n.length;s++)"default"!==n[s]&&i(t,e,n[s]);return o(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.getFunctionName=void 0,t.getDependencies=function(e,t){return(0,a.getTargets)(e)(t)},t.getBaseClassDependencyCount=function e(t,n){const r=(0,u.getBaseType)(n);if(void 0===r||r===Object)return 0;const i=(0,a.getTargets)(t)(r),o=i.map(e=>e.metadata.filter(e=>e.key===c.UNMANAGED_TAG)),s=[].concat.apply([],o).length,l=i.length-s;return l>0?l:e(t,r)};const a=n(69687),c=s(n(19466)),u=n(37893),l=n(56272);Object.defineProperty(t,"getFunctionName",{enumerable:!0,get:function(){return l.getFunctionName}})},62129:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AdminVersion=t.NoConfig=t.ScriptExplorerConfig=t.Config=void 0;class n{constructor(e,t,n,r,i,o,s,a,c,u,l,d,p,f){this.ioBrokerUrl=e,this.socketIoPort=t,this.scriptRoot=n,this.adminVersion=r,this.autoReconnect=i,this.scriptExplorer=o,this.allowSelfSignedCertificate=s,this.username=a,this.collectDebugLog=c,this.autoUpload=u,this.scriptAutoRun=l,this.forceLogin=d,this.iobrokerNodeTypesVersion=p,this.aiTools=f}}var r;t.Config=n,t.ScriptExplorerConfig=class{constructor(e,t){this.collapseDirectoriesOnStartup=e,this.revealCurrentScript=t}},t.NoConfig=class extends n{constructor(){super("invalid",-1,"/",r.unknown)}},function(e){e.unknown="unknown",e.admin4="admin4",e.admin5="admin5",e.admin6="admin6",e.admin7="admin7"}(r||(t.AdminVersion=r={}))},62719:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getClassMetadataConstructorArguments=function(e){const t=(0,r.getReflectMetadata)(e,i.DESIGN_PARAM_TYPES),n=(0,r.getReflectMetadata)(e,i.TAGGED),c=[];if(void 0!==n)for(const[t,r]of Object.entries(n)){const n=parseInt(t);c[n]=(0,a.getConstructorArgumentMetadataFromLegacyMetadata)(e,n,r)}if(void 0!==t)for(let e=0;e<t.length;++e)if(void 0===c[e]){const n=t[e];c[e]=(0,s.getClassElementMetadataFromNewable)(n)}return(0,o.assertConstructorMetadataArrayFilled)(e,c),c};const r=n(59517),i=n(83313),o=n(28650),s=n(52727),a=n(12818)},62790:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{localeError:a()}};const s=o(n(90523)),a=()=>{const e={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"}};function t(t){return e[t]??null}const n={regex:"ورودي",email:"بریښنالیک",url:"یو آر ال",emoji:"ایموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"نیټه او وخت",date:"نېټه",time:"وخت",duration:"موده",ipv4:"د IPv4 پته",ipv6:"د IPv6 پته",cidrv4:"د IPv4 ساحه",cidrv6:"د IPv6 ساحه",base64:"base64-encoded متن",base64url:"base64url-encoded متن",json_string:"JSON متن",e164:"د E.164 شمېره",jwt:"JWT",template_literal:"ورودي"};return e=>{switch(e.code){case"invalid_type":return`ناسم ورودي: باید ${e.expected} وای, مګر ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"عدد";case"object":if(Array.isArray(e))return"ارې";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)} ترلاسه شو`;case"invalid_value":return 1===e.values.length?`ناسم ورودي: باید ${s.stringifyPrimitive(e.values[0])} وای`:`ناسم انتخاب: باید یو له ${s.joinValues(e.values,"|")} څخه وای`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`ډیر لوی: ${e.origin??"ارزښت"} باید ${n}${e.maximum.toString()} ${r.unit??"عنصرونه"} ولري`:`ډیر لوی: ${e.origin??"ارزښت"} باید ${n}${e.maximum.toString()} وي`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`ډیر کوچنی: ${e.origin} باید ${n}${e.minimum.toString()} ${r.unit} ولري`:`ډیر کوچنی: ${e.origin} باید ${n}${e.minimum.toString()} وي`}case"invalid_format":{const t=e;return"starts_with"===t.format?`ناسم متن: باید د "${t.prefix}" سره پیل شي`:"ends_with"===t.format?`ناسم متن: باید د "${t.suffix}" سره پای ته ورسيږي`:"includes"===t.format?`ناسم متن: باید "${t.includes}" ولري`:"regex"===t.format?`ناسم متن: باید د ${t.pattern} سره مطابقت ولري`:`${n[t.format]??e.format} ناسم دی`}case"not_multiple_of":return`ناسم عدد: باید د ${e.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${e.keys.length>1?"کلیډونه":"کلیډ"}: ${s.joinValues(e.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${e.origin} کې`;case"invalid_union":default:return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${e.origin} کې`}}}},62842:(e,t,n)=>{"use strict";const{EMPTY_BUFFER:r}=n(50918);function i(e,t){if(0===e.length)return r;if(1===e.length)return e[0];const n=Buffer.allocUnsafe(t);let i=0;for(let t=0;t<e.length;t++){const r=e[t];n.set(r,i),i+=r.length}return i<t?n.slice(0,i):n}function o(e,t,n,r,i){for(let o=0;o<i;o++)n[r+o]=e[o]^t[3&o]}function s(e,t){const n=e.length;for(let r=0;r<n;r++)e[r]^=t[3&r]}function a(e){return e.byteLength===e.buffer.byteLength?e.buffer:e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}function c(e){if(c.readOnly=!0,Buffer.isBuffer(e))return e;let t;return e instanceof ArrayBuffer?t=Buffer.from(e):ArrayBuffer.isView(e)?t=Buffer.from(e.buffer,e.byteOffset,e.byteLength):(t=Buffer.from(e),c.readOnly=!1),t}try{const t=n(12627),r=t.BufferUtil||t;e.exports={concat:i,mask(e,t,n,i,s){s<48?o(e,t,n,i,s):r.mask(e,t,n,i,s)},toArrayBuffer:a,toBuffer:c,unmask(e,t){e.length<32?s(e,t):r.unmask(e,t)}}}catch(t){e.exports={concat:i,mask:o,toArrayBuffer:a,toBuffer:c,unmask:s}}},62909:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseAnyDef=void 0;const r=n(86379);t.parseAnyDef=function(e){if("openAi"!==e.target)return{};const t=[...e.basePath,e.definitionPath,e.openAiAnyTypeName];return e.flags.hasReferencedOpenAiAnyType=!0,{$ref:"relative"===e.$refStrategy?(0,r.getRelativePath)(t,e.currentPath):t.join("/")}}},63059:e=>{function t(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}e.exports=t,t.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=1&Math.floor(10*t)?e+n:e-n}return 0|Math.min(e,this.max)},t.prototype.reset=function(){this.attempts=0},t.prototype.setMin=function(e){this.ms=e},t.prototype.setMax=function(e){this.max=e},t.prototype.setJitter=function(e){this.jitter=e}},63237:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseNeverDef=void 0;const r=n(62909);t.parseNeverDef=function(e){return"openAi"===e.target?void 0:{not:(0,r.parseAnyDef)({...e,currentPath:[...e.currentPath,"not"]})}}},64026:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(66596),i={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>r.str`must match format "${e}"`,params:({schemaCode:e})=>r._`{format: ${e}}`},code(e,t){const{gen:n,data:i,$data:o,schema:s,schemaCode:a,it:c}=e,{opts:u,errSchemaPath:l,schemaEnv:d,self:p}=c;u.validateFormats&&(o?function(){const o=n.scopeValue("formats",{ref:p.formats,code:u.code.formats}),s=n.const("fDef",r._`${o}[${a}]`),c=n.let("fType"),l=n.let("format");n.if(r._`typeof ${s} == "object" && !(${s} instanceof RegExp)`,()=>n.assign(c,r._`${s}.type || "string"`).assign(l,r._`${s}.validate`),()=>n.assign(c,r._`"string"`).assign(l,s)),e.fail$data((0,r.or)(!1===u.strictSchema?r.nil:r._`${a} && !${l}`,function(){const e=d.$async?r._`(${s}.async ? await ${l}(${i}) : ${l}(${i}))`:r._`${l}(${i})`,n=r._`(typeof ${l} == "function" ? ${e} : ${l}.test(${i}))`;return r._`${l} && ${l} !== true && ${c} === ${t} && !${n}`}()))}():function(){const o=p.formats[s];if(!o)return void function(){if(!1!==u.strictSchema)throw new Error(e());function e(){return`unknown format "${s}" ignored in schema at path "${l}"`}p.logger.warn(e())}();if(!0===o)return;const[a,c,f]=function(e){const t=e instanceof RegExp?(0,r.regexpCode)(e):u.code.formats?r._`${u.code.formats}${(0,r.getProperty)(s)}`:void 0,i=n.scopeValue("formats",{key:s,ref:e,code:t});return"object"!=typeof e||e instanceof RegExp?["string",e,i]:[e.type||"string",e.validate,r._`${i}.validate`]}(o);a===t&&e.pass(function(){if("object"==typeof o&&!(o instanceof RegExp)&&o.async){if(!d.$async)throw new Error("async format in sync schema");return r._`await ${f}(${i})`}return"function"==typeof c?r._`${f}(${i})`:r._`${f}.test(${i})`}())}())}};t.default=i},64039:(e,t,n)=>{"use strict";var r="undefined"!=typeof Symbol&&Symbol,i=n(41333);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&i()}},64084:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.safeParseAsync=t._safeParseAsync=t.safeParse=t._safeParse=t.parseAsync=t._parseAsync=t.parse=t._parse=void 0;const s=o(n(98706)),a=o(n(24362)),c=o(n(90523));t._parse=e=>(t,n,r,i)=>{const o=r?Object.assign(r,{async:!1}):{async:!1},a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise)throw new s.$ZodAsyncError;if(a.issues.length){const t=new(i?.Err??e)(a.issues.map(e=>c.finalizeIssue(e,o,s.config())));throw c.captureStackTrace(t,i?.callee),t}return a.value},t.parse=(0,t._parse)(a.$ZodRealError),t._parseAsync=e=>async(t,n,r,i)=>{const o=r?Object.assign(r,{async:!0}):{async:!0};let a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise&&(a=await a),a.issues.length){const t=new(i?.Err??e)(a.issues.map(e=>c.finalizeIssue(e,o,s.config())));throw c.captureStackTrace(t,i?.callee),t}return a.value},t.parseAsync=(0,t._parseAsync)(a.$ZodRealError),t._safeParse=e=>(t,n,r)=>{const i=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},i);if(o instanceof Promise)throw new s.$ZodAsyncError;return o.issues.length?{success:!1,error:new(e??a.$ZodError)(o.issues.map(e=>c.finalizeIssue(e,i,s.config())))}:{success:!0,data:o.value}},t.safeParse=(0,t._safeParse)(a.$ZodRealError),t._safeParseAsync=e=>async(t,n,r)=>{const i=r?Object.assign(r,{async:!0}):{async:!0};let o=t._zod.run({value:n,issues:[]},i);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(e=>c.finalizeIssue(e,i,s.config())))}:{success:!0,data:o.value}},t.safeParseAsync=(0,t._safeParseAsync)(a.$ZodRealError)},64362:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const r=n(66596),i=n(99048),o=n(51980);t.error={message:({params:{property:e,depsCount:t,deps:n}})=>{const i=1===t?"property":"properties";return r.str`must have ${i} ${n} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:n,missingProperty:i}})=>r._`{property: ${e},
4
+ missingProperty: ${i},
5
+ depsCount: ${t},
6
+ deps: ${n}}`};const s={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(e){const[t,n]=function({schema:e}){const t={},n={};for(const r in e)"__proto__"!==r&&((Array.isArray(e[r])?t:n)[r]=e[r]);return[t,n]}(e);a(e,t),c(e,n)}};function a(e,t=e.schema){const{gen:n,data:i,it:s}=e;if(0===Object.keys(t).length)return;const a=n.let("missing");for(const c in t){const u=t[c];if(0===u.length)continue;const l=(0,o.propertyInData)(n,i,c,s.opts.ownProperties);e.setParams({property:c,depsCount:u.length,deps:u.join(", ")}),s.allErrors?n.if(l,()=>{for(const t of u)(0,o.checkReportMissingProp)(e,t)}):(n.if(r._`${l} && (${(0,o.checkMissingProp)(e,u,a)})`),(0,o.reportMissingProp)(e,a),n.else())}}function c(e,t=e.schema){const{gen:n,data:r,keyword:s,it:a}=e,c=n.name("valid");for(const u in t)(0,i.alwaysValidSchema)(a,t[u])||(n.if((0,o.propertyInData)(n,r,u,a.opts.ownProperties),()=>{const t=e.subschema({keyword:s,schemaProp:u},c);e.mergeValidEvaluated(t,c)},()=>n.var(c,!0)),e.ok(c))}t.validatePropertyDeps=a,t.validateSchemaDeps=c,t.default=s},64483:function(e,t,n){"use strict";var r,i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),s=0;s<n.length;s++)"default"!==n[s]&&i(t,e,n[s]);return o(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.BindingToSyntax=void 0;const a=s(n(35007)),c=n(9117),u=n(52760),l=n(41402);t.BindingToSyntax=class{_binding;constructor(e){this._binding=e}to(e){return this._binding.type=c.BindingTypeEnum.Instance,this._binding.implementationType=e,new u.BindingInWhenOnSyntax(this._binding)}toSelf(){if("function"!=typeof this._binding.serviceIdentifier)throw new Error(a.INVALID_TO_SELF_VALUE);const e=this._binding.serviceIdentifier;return this.to(e)}toConstantValue(e){return this._binding.type=c.BindingTypeEnum.ConstantValue,this._binding.cache=e,this._binding.dynamicValue=null,this._binding.implementationType=null,this._binding.scope=c.BindingScopeEnum.Singleton,new l.BindingWhenOnSyntax(this._binding)}toDynamicValue(e){return this._binding.type=c.BindingTypeEnum.DynamicValue,this._binding.cache=null,this._binding.dynamicValue=e,this._binding.implementationType=null,new u.BindingInWhenOnSyntax(this._binding)}toConstructor(e){return this._binding.type=c.BindingTypeEnum.Constructor,this._binding.implementationType=e,this._binding.scope=c.BindingScopeEnum.Singleton,new l.BindingWhenOnSyntax(this._binding)}toFactory(e){return this._binding.type=c.BindingTypeEnum.Factory,this._binding.factory=e,this._binding.scope=c.BindingScopeEnum.Singleton,new l.BindingWhenOnSyntax(this._binding)}toFunction(e){if("function"!=typeof e)throw new Error(a.INVALID_FUNCTION_BINDING);const t=this.toConstantValue(e);return this._binding.type=c.BindingTypeEnum.Function,this._binding.scope=c.BindingScopeEnum.Singleton,t}toAutoFactory(e){return this._binding.type=c.BindingTypeEnum.Factory,this._binding.factory=t=>()=>t.container.get(e),this._binding.scope=c.BindingScopeEnum.Singleton,new l.BindingWhenOnSyntax(this._binding)}toAutoNamedFactory(e){return this._binding.type=c.BindingTypeEnum.Factory,this._binding.factory=t=>n=>t.container.getNamed(e,n),new l.BindingWhenOnSyntax(this._binding)}toProvider(e){return this._binding.type=c.BindingTypeEnum.Provider,this._binding.provider=e,this._binding.scope=c.BindingScopeEnum.Singleton,new l.BindingWhenOnSyntax(this._binding)}toService(e){this._binding.type=c.BindingTypeEnum.DynamicValue,Object.defineProperty(this._binding,"cache",{configurable:!0,enumerable:!0,get:()=>null,set(e){}}),this._binding.dynamicValue=t=>{try{return t.container.get(e)}catch(n){return t.container.getAsync(e)}},this._binding.implementationType=null}}},64634:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},64756:e=>{"use strict";e.exports=require("tls")},64950:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),n(38630);const i=n(7875),o=n(66930),s=n(45866),a=n(85379),c=`ioBroker MCP server ${a.BUILD_VERSION}\n\nUsage: iobroker-mcp [--version] [--check] [--help]\n\nThe server is configured completely through environment variables:\n IOBROKER_MCP_URL required, http://host:8081 or https://host:8081\n IOBROKER_MCP_USERNAME required when the ioBroker login is enabled\n IOBROKER_MCP_PASSWORD required when the ioBroker login is enabled\n IOBROKER_MCP_ALLOW_SELF_SIGNED optional, default false\n IOBROKER_MCP_READ_ONLY optional, default false; hides every write tool\n IOBROKER_MCP_SCRIPT_AUTO_RUN optional, default false\n IOBROKER_MCP_LOG_LEVEL optional, one of error, warn, info, debug, silly\n\nFlags:\n --version print the version\n --check validate the environment, print a redacted summary to stderr and exit\n --help print this help\n\nAll diagnostics go to stderr; stdout carries the JSON-RPC protocol.\n`;let u;(function(){return r(this,void 0,void 0,function*(){const e=process.argv.slice(2);if(e.includes("--help"))return process.stdout.write(c),0;if(e.includes("--version"))return process.stdout.write(`${a.BUILD_VERSION}\n`),0;let t;try{t=s.ServerConfig.fromEnvironment(process.env)}catch(e){const t=e instanceof s.ConfigError?`${e.variable}: ${e.message}`:`${e instanceof Error?e.message:e}`;return process.stderr.write(`iobroker-mcp [error] ${t}\n`),2}const n=new i.Logger(t.logLevel);if(n.addSecret(t.password),u=n,e.includes("--check"))return process.stderr.write(`iobroker-mcp [info] ${t.toLogString()}\n`),0;process.on("uncaughtException",e=>{var t;n.error(`Uncaught exception: ${n.redact(null!==(t=e.stack)&&void 0!==t?t:e.message)}`),process.exit(1)}),process.on("unhandledRejection",e=>{var t;n.error(`Unhandled rejection: ${e instanceof Error?n.redact(null!==(t=e.stack)&&void 0!==t?t:e.message):`${e}`}`)});const r=o.McpServerRunner.create(t,n);return yield r.run(),0})})().then(e=>{process.exitCode=e}).catch(e=>{var t;const n=e instanceof Error?null!==(t=e.stack)&&void 0!==t?t:e.message:`${e}`;process.stderr.write(`iobroker-mcp [error] ${u?u.redact(n):n}\n`),process.exit(1)})},64994:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(66596),i=n(99048),o={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>r._`{passingSchemas: ${e.passing}}`},code(e){const{gen:t,schema:n,parentSchema:o,it:s}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(s.opts.discriminator&&o.discriminator)return;const a=n,c=t.let("valid",!1),u=t.let("passing",null),l=t.name("_valid");e.setParams({passing:u}),t.block(function(){a.forEach((n,o)=>{let a;(0,i.alwaysValidSchema)(s,n)?t.var(l,!0):a=e.subschema({keyword:"oneOf",schemaProp:o,compositeRule:!0},l),o>0&&t.if(r._`${l} && ${c}`).assign(c,!1).assign(u,r._`[${u}, ${o}]`).else(),t.if(l,()=>{t.assign(c,!0),t.assign(u,o),a&&e.mergeEvaluated(a,r.Name)})})}),e.result(c,()=>e.reset(),()=>e.error(!0))}};t.default=o},65074:(e,t,n)=>{"use strict";n(69278),n(64756);const{randomFillSync:r}=n(76982),i=n(95483),{EMPTY_BUFFER:o}=n(50918),{isValidStatusCode:s}=n(51016),{mask:a,toBuffer:c}=n(62842),u=Buffer.alloc(4);class l{constructor(e,t){this._extensions=t||{},this._socket=e,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._deflating=!1,this._queue=[]}static frame(e,t){const n=t.mask&&t.readOnly;let i=t.mask?6:2,o=e.length;e.length>=65536?(i+=8,o=127):e.length>125&&(i+=2,o=126);const s=Buffer.allocUnsafe(n?e.length+i:i);return s[0]=t.fin?128|t.opcode:t.opcode,t.rsv1&&(s[0]|=64),s[1]=o,126===o?s.writeUInt16BE(e.length,2):127===o&&(s.writeUInt32BE(0,2),s.writeUInt32BE(e.length,6)),t.mask?(r(u,0,4),s[1]|=128,s[i-4]=u[0],s[i-3]=u[1],s[i-2]=u[2],s[i-1]=u[3],n?(a(e,u,s,i,e.length),[s]):(a(e,u,e,0,e.length),[s,e])):[s,e]}close(e,t,n,r){let i;if(void 0===e)i=o;else{if("number"!=typeof e||!s(e))throw new TypeError("First argument must be a valid error code number");if(void 0===t||""===t)i=Buffer.allocUnsafe(2),i.writeUInt16BE(e,0);else{const n=Buffer.byteLength(t);if(n>123)throw new RangeError("The message must not be greater than 123 bytes");i=Buffer.allocUnsafe(2+n),i.writeUInt16BE(e,0),i.write(t,2)}}this._deflating?this.enqueue([this.doClose,i,n,r]):this.doClose(i,n,r)}doClose(e,t,n){this.sendFrame(l.frame(e,{fin:!0,rsv1:!1,opcode:8,mask:t,readOnly:!1}),n)}ping(e,t,n){const r=c(e);if(r.length>125)throw new RangeError("The data size must not be greater than 125 bytes");this._deflating?this.enqueue([this.doPing,r,t,c.readOnly,n]):this.doPing(r,t,c.readOnly,n)}doPing(e,t,n,r){this.sendFrame(l.frame(e,{fin:!0,rsv1:!1,opcode:9,mask:t,readOnly:n}),r)}pong(e,t,n){const r=c(e);if(r.length>125)throw new RangeError("The data size must not be greater than 125 bytes");this._deflating?this.enqueue([this.doPong,r,t,c.readOnly,n]):this.doPong(r,t,c.readOnly,n)}doPong(e,t,n,r){this.sendFrame(l.frame(e,{fin:!0,rsv1:!1,opcode:10,mask:t,readOnly:n}),r)}send(e,t,n){const r=c(e),o=this._extensions[i.extensionName];let s=t.binary?2:1,a=t.compress;if(this._firstFragment?(this._firstFragment=!1,a&&o&&(a=r.length>=o._threshold),this._compress=a):(a=!1,s=0),t.fin&&(this._firstFragment=!0),o){const e={fin:t.fin,rsv1:a,opcode:s,mask:t.mask,readOnly:c.readOnly};this._deflating?this.enqueue([this.dispatch,r,this._compress,e,n]):this.dispatch(r,this._compress,e,n)}else this.sendFrame(l.frame(r,{fin:t.fin,rsv1:!1,opcode:s,mask:t.mask,readOnly:c.readOnly}),n)}dispatch(e,t,n,r){if(!t)return void this.sendFrame(l.frame(e,n),r);const o=this._extensions[i.extensionName];this._bufferedBytes+=e.length,this._deflating=!0,o.compress(e,n.fin,(t,i)=>{if(this._socket.destroyed){const e=new Error("The socket was closed while data was being compressed");"function"==typeof r&&r(e);for(let t=0;t<this._queue.length;t++){const n=this._queue[t][4];"function"==typeof n&&n(e)}return}this._bufferedBytes-=e.length,this._deflating=!1,n.readOnly=!1,this.sendFrame(l.frame(i,n),r),this.dequeue()})}dequeue(){for(;!this._deflating&&this._queue.length;){const e=this._queue.shift();this._bufferedBytes-=e[1].length,Reflect.apply(e[0],this,e.slice(1))}}enqueue(e){this._bufferedBytes+=e[1].length,this._queue.push(e)}sendFrame(e,t){2===e.length?(this._socket.cork(),this._socket.write(e[0]),this._socket.write(e[1],t),this._socket.uncork()):this._socket.write(e[0],t)}}e.exports=l},65105:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(78851),i=n(4076),o=n(22010),s=n(53663),a=n(66359),c=n(54560),u=n(25584),l=n(41828),d=n(31234),p=n(53144),f=[r.default,i.default,o.default,s.default,a.default,c.default,u.default,l.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},d.default,p.default];t.default=f},65532:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SOCKET_ACK_TIMEOUT_MS=void 0,t.withAckTimeout=function(e,n,r=t.SOCKET_ACK_TIMEOUT_MS){return new Promise((t,i)=>{const o=setTimeout(()=>{i(new Error(`${n} was not acknowledged by ioBroker within ${Math.round(r/1e3)} seconds.`))},r);e.then(e=>{clearTimeout(o),t(e)},e=>{clearTimeout(o),i(e)})})},t.SOCKET_ACK_TIMEOUT_MS=1e4},65692:e=>{"use strict";e.exports=require("https")},65867:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseOptionalDef=void 0;const r=n(73524),i=n(62909);t.parseOptionalDef=(e,t)=>{if(t.currentPath.toString()===t.propertyPath?.toString())return(0,r.parseDef)(e.innerType._def,t);const n=(0,r.parseDef)(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","1"]});return n?{anyOf:[{not:(0,i.parseAnyDef)(t)},n]}:(0,i.parseAnyDef)(t)}},65986:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.EnvConfigRepositoryService=void 0;const i=n(62129);t.EnvConfigRepositoryService=class{constructor(e){this.source=e,this.config=this.toConfig(i.AdminVersion.unknown)}setAdminVersion(e){this.config=this.toConfig(e)}read(){return r(this,void 0,void 0,function*(){return this.config})}write(){return r(this,void 0,void 0,function*(){throw new Error("The MCP server does not write a configuration file. Use the environment variables instead.")})}toConfig(e){return new i.Config(this.source.ioBrokerUrl,this.source.socketIoPort,"",e,!0,void 0,this.source.allowSelfSignedCertificate,this.source.username,!1,!1,this.source.scriptAutoRun,!0,void 0,!0)}}},66004:function(e,t,n){"use strict";var r,i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),s=0;s<n.length;s++)"default"!==n[s]&&i(t,e,n[s]);return o(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.optional=function(){return(0,u.createTaggedDecorator)(new c.Metadata(a.OPTIONAL_TAG,!0))};const a=s(n(19466)),c=n(4045),u=n(33353)},66068:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{localeError:a()}};const s=o(n(90523)),a=()=>{const e={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"}};function t(t){return e[t]??null}const n={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"};return e=>{switch(e.code){case"invalid_type":return`Ugyldig input: forventet ${e.expected}, fikk ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"tall";case"object":if(Array.isArray(e))return"liste";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Ugyldig verdi: forventet ${s.stringifyPrimitive(e.values[0])}`:`Ugyldig valg: forventet en av ${s.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`For stor(t): forventet ${e.origin??"value"} til å ha ${n}${e.maximum.toString()} ${r.unit??"elementer"}`:`For stor(t): forventet ${e.origin??"value"} til å ha ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`For lite(n): forventet ${e.origin} til å ha ${n}${e.minimum.toString()} ${r.unit}`:`For lite(n): forventet ${e.origin} til å ha ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Ugyldig streng: må starte med "${t.prefix}"`:"ends_with"===t.format?`Ugyldig streng: må ende med "${t.suffix}"`:"includes"===t.format?`Ugyldig streng: må inneholde "${t.includes}"`:"regex"===t.format?`Ugyldig streng: må matche mønsteret ${t.pattern}`:`Ugyldig ${n[t.format]??e.format}`}case"not_multiple_of":return`Ugyldig tall: må være et multiplum av ${e.divisor}`;case"unrecognized_keys":return`${e.keys.length>1?"Ukjente nøkler":"Ukjent nøkkel"}: ${s.joinValues(e.keys,", ")}`;case"invalid_key":return`Ugyldig nøkkel i ${e.origin}`;case"invalid_union":default:return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${e.origin}`}}}},66359:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(66596),i={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxProperties"===e?"more":"fewer";return r.str`must NOT have ${n} than ${t} properties`},params:({schemaCode:e})=>r._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:i}=e,o="maxProperties"===t?r.operators.GT:r.operators.LT;e.fail$data(r._`Object.keys(${n}).length ${o} ${i}`)}};t.default=i},66489:e=>{"use strict";e.exports={mask:(e,t,n,r,i)=>{for(var o=0;o<i;o++)n[r+o]=e[o]^t[3&o]},unmask:(e,t)=>{const n=e.length;for(var r=0;r<n;r++)e[r]^=t[3&r]}}},66596:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const r=n(53231),i=n(66692);var o=n(53231);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return o._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return o.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return o.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return o.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return o.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return o.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return o.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return o.Name}});var s=n(66692);Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return s.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return s.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return s.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return s.varKinds}}),t.operators={GT:new r._Code(">"),GTE:new r._Code(">="),LT:new r._Code("<"),LTE:new r._Code("<="),EQ:new r._Code("==="),NEQ:new r._Code("!=="),NOT:new r._Code("!"),OR:new r._Code("||"),AND:new r._Code("&&"),ADD:new r._Code("+")};class a{optimizeNodes(){return this}optimizeNames(e,t){return this}}class c extends a{constructor(e,t,n){super(),this.varKind=e,this.name=t,this.rhs=n}render({es5:e,_n:t}){const n=e?i.varKinds.var:this.varKind,r=void 0===this.rhs?"":` = ${this.rhs}`;return`${n} ${this.name}${r};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=I(this.rhs,e,t)),this}get names(){return this.rhs instanceof r._CodeOrName?this.rhs.names:{}}}class u extends a{constructor(e,t,n){super(),this.lhs=e,this.rhs=t,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,t){if(!(this.lhs instanceof r.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=I(this.rhs,e,t),this}get names(){return C(this.lhs instanceof r.Name?{}:{...this.lhs.names},this.rhs)}}class l extends u{constructor(e,t,n,r){super(e,n,r),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class d extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class p extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class f extends a{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class m extends a{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=I(this.code,e,t),this}get names(){return this.code instanceof r._CodeOrName?this.code.names:{}}}class h extends a{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((t,n)=>t+n.render(e),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const n=e[t].optimizeNodes();Array.isArray(n)?e.splice(t,1,...n):n?e[t]=n:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:n}=this;let r=n.length;for(;r--;){const i=n[r];i.optimizeNames(e,t)||(j(e,i.names),n.splice(r,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((e,t)=>T(e,t.names),{})}}class v extends h{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class g extends h{}class y extends v{}y.kind="else";class _ extends v{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new y(e):e}return t?!1===e?t instanceof _?t:t.nodes:this.nodes.length?this:new _(R(e),t instanceof _?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var n;if(this.else=null===(n=this.else)||void 0===n?void 0:n.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=I(this.condition,e,t),this}get names(){const e=super.names;return C(e,this.condition),this.else&&T(e,this.else.names),e}}_.kind="if";class b extends v{}b.kind="for";class x extends b{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=I(this.iteration,e,t),this}get names(){return T(super.names,this.iteration.names)}}class w extends b{constructor(e,t,n,r){super(),this.varKind=e,this.name=t,this.from=n,this.to=r}render(e){const t=e.es5?i.varKinds.var:this.varKind,{name:n,from:r,to:o}=this;return`for(${t} ${n}=${r}; ${n}<${o}; ${n}++)`+super.render(e)}get names(){const e=C(super.names,this.from);return C(e,this.to)}}class S extends b{constructor(e,t,n,r){super(),this.loop=e,this.varKind=t,this.name=n,this.iterable=r}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=I(this.iterable,e,t),this}get names(){return T(super.names,this.iterable.names)}}class O extends v{constructor(e,t,n){super(),this.name=e,this.args=t,this.async=n}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}O.kind="func";class k extends h{render(e){return"return "+super.render(e)}}k.kind="return";class $ extends v{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var n,r;return super.optimizeNames(e,t),null===(n=this.catch)||void 0===n||n.optimizeNames(e,t),null===(r=this.finally)||void 0===r||r.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&T(e,this.catch.names),this.finally&&T(e,this.finally.names),e}}class P extends v{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}P.kind="catch";class E extends v{render(e){return"finally"+super.render(e)}}function T(e,t){for(const n in t)e[n]=(e[n]||0)+(t[n]||0);return e}function C(e,t){return t instanceof r._CodeOrName?T(e,t.names):e}function I(e,t,n){return e instanceof r.Name?o(e):(i=e)instanceof r._Code&&i._items.some(e=>e instanceof r.Name&&1===t[e.str]&&void 0!==n[e.str])?new r._Code(e._items.reduce((e,t)=>(t instanceof r.Name&&(t=o(t)),t instanceof r._Code?e.push(...t._items):e.push(t),e),[])):e;var i;function o(e){const r=n[e.str];return void 0===r||1!==t[e.str]?e:(delete t[e.str],r)}}function j(e,t){for(const n in t)e[n]=(e[n]||0)-(t[n]||0)}function R(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:r._`!${D(e)}`}E.kind="finally",t.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new i.Scope({parent:e}),this._nodes=[new g]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const n=this._extScope.value(e,t);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,n,r){const i=this._scope.toName(t);return void 0!==n&&r&&(this._constants[i.str]=n),this._leafNode(new c(e,i,n)),i}const(e,t,n){return this._def(i.varKinds.const,e,t,n)}let(e,t,n){return this._def(i.varKinds.let,e,t,n)}var(e,t,n){return this._def(i.varKinds.var,e,t,n)}assign(e,t,n){return this._leafNode(new u(e,t,n))}add(e,n){return this._leafNode(new l(e,t.operators.ADD,n))}code(e){return"function"==typeof e?e():e!==r.nil&&this._leafNode(new m(e)),this}object(...e){const t=["{"];for(const[n,i]of e)t.length>1&&t.push(","),t.push(n),(n!==i||this.opts.es5)&&(t.push(":"),(0,r.addCodeArg)(t,i));return t.push("}"),new r._Code(t)}if(e,t,n){if(this._blockNode(new _(e)),t&&n)this.code(t).else().code(n).endIf();else if(t)this.code(t).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new _(e))}else(){return this._elseNode(new y)}endIf(){return this._endBlockNode(_,y)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new x(e),t)}forRange(e,t,n,r,o=(this.opts.es5?i.varKinds.var:i.varKinds.let)){const s=this._scope.toName(e);return this._for(new w(o,s,t,n),()=>r(s))}forOf(e,t,n,o=i.varKinds.const){const s=this._scope.toName(e);if(this.opts.es5){const e=t instanceof r.Name?t:this.var("_arr",t);return this.forRange("_i",0,r._`${e}.length`,t=>{this.var(s,r._`${e}[${t}]`),n(s)})}return this._for(new S("of",o,s,t),()=>n(s))}forIn(e,t,n,o=(this.opts.es5?i.varKinds.var:i.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,r._`Object.keys(${t})`,n);const s=this._scope.toName(e);return this._for(new S("in",o,s,t),()=>n(s))}endFor(){return this._endBlockNode(b)}label(e){return this._leafNode(new d(e))}break(e){return this._leafNode(new p(e))}return(e){const t=new k;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(k)}try(e,t,n){if(!t&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');const r=new $;if(this._blockNode(r),this.code(e),t){const e=this.name("e");this._currNode=r.catch=new P(e),t(e)}return n&&(this._currNode=r.finally=new E,this.code(n)),this._endBlockNode(P,E)}throw(e){return this._leafNode(new f(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const n=this._nodes.length-t;if(n<0||void 0!==e&&n!==e)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=t,this}func(e,t=r.nil,n,i){return this._blockNode(new O(e,t,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(O)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const n=this._currNode;if(n instanceof e||t&&n instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof _))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},t.not=R;const N=M(t.operators.AND);t.and=function(...e){return e.reduce(N)};const A=M(t.operators.OR);function M(e){return(t,n)=>t===r.nil?n:n===r.nil?t:r._`${D(t)} ${e} ${D(n)}`}function D(e){return e instanceof r.Name?e:r._`(${e})`}t.or=function(...e){return e.reduce(A)}},66692:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const r=n(53231);class i extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var o;!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(o||(t.UsedValueState=o={})),t.varKinds={const:new r.Name("const"),let:new r.Name("let"),var:new r.Name("var")};class s{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof r.Name?e:this.name(e)}name(e){return new r.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var t,n;if((null===(n=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===n?void 0:n.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}t.Scope=s;class a extends r.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:t,itemIndex:n}){this.value=e,this.scopePath=r._`.${new r.Name(t)}[${n}]`}}t.ValueScopeName=a;const c=r._`\n`;t.ValueScope=class extends s{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?c:r.nil}}get(){return this._scope}name(e){return new a(e,this._newName(e))}value(e,t){var n;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const r=this.toName(e),{prefix:i}=r,o=null!==(n=t.key)&&void 0!==n?n:t.ref;let s=this._values[i];if(s){const e=s.get(o);if(e)return e}else s=this._values[i]=new Map;s.set(o,r);const a=this._scope[i]||(this._scope[i]=[]),c=a.length;return a[c]=t.ref,r.setValue(t,{property:i,itemIndex:c}),r}getValue(e,t){const n=this._values[e];if(n)return n.get(t)}scopeRefs(e,t=this._values){return this._reduceValues(t,t=>{if(void 0===t.scopePath)throw new Error(`CodeGen: name "${t}" has no value`);return r._`${e}${t.scopePath}`})}scopeCode(e=this._values,t,n){return this._reduceValues(e,e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code},t,n)}_reduceValues(e,n,s={},a){let c=r.nil;for(const u in e){const l=e[u];if(!l)continue;const d=s[u]=s[u]||new Map;l.forEach(e=>{if(d.has(e))return;d.set(e,o.Started);let s=n(e);if(s){const n=this.opts.es5?t.varKinds.var:t.varKinds.const;c=r._`${c}${n} ${e} = ${s};${this.opts._n}`}else{if(!(s=null==a?void 0:a(e)))throw new i(e);c=r._`${c}${s}${this.opts._n}`}d.set(e,o.Completed)})}return c}}},66743:(e,t,n)=>{"use strict";var r=n(89353);e.exports=Function.prototype.bind||r},66757:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTargetId=function(){const e=(0,r.getReflectMetadata)(Object,i)??0;return e===Number.MAX_SAFE_INTEGER?(0,r.updateReflectMetadata)(Object,i,e,()=>Number.MIN_SAFE_INTEGER):(0,r.updateReflectMetadata)(Object,i,e,e=>e+1),e};const r=n(59517),i="@inversifyjs/core/targetId"},66930:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.McpServerRunner=t.MAX_CONCURRENT_CALLS=t.TOOL_CALL_BUDGET_MS=void 0;const i=n(52650),o=n(27467),s=n(6166),a=n(1294),c=n(55853),u=n(89706),l=n(46908),d=n(76379),p=n(29122),f=n(43413),m=n(68282),h=n(26182),v=n(49319),g=n(10735),y=n(92204),_=n(35423),b=n(65986),x=n(76475),w=n(83307),S=n(68473),O=n(13369),k=n(78113),$=n(5763),P=n(93859),E=n(57194),T=n(51301),C=n(85379),I=n(87451);t.TOOL_CALL_BUDGET_MS=3e4,t.MAX_CONCURRENT_CALLS=8;class j extends Error{constructor(){super(`The tool call did not finish within ${t.TOOL_CALL_BUDGET_MS/1e3} seconds.`),this.name="ToolCallTimeoutError"}}class R{constructor(e,t,n,r,i,o){this.config=e,this.logger=t,this.connection=n,this.repository=r,this.deps=i,this.server=o,this.activeCalls=0,this.shuttingDown=!1,this.resultMapper=new T.ToolResultMapper(t),this.closed=new Promise(e=>{this.resolveClosed=e})}static create(e,t){const n=function(e,t){const n=new i.Container;n.bind(c.default.services.debugLogService).toConstantValue(new E.StderrDebugLogService(t)),n.bind(c.default.services.statusBarService).toConstantValue(new w.NoStatusBarService),n.bind(c.default.services.workspace).toConstantValue(new S.NoWorkspaceService),n.bind(c.default.services.scriptId).toConstantValue(new $.RemoteScriptIdService),n.bind(c.default.services.loginCredentials).toConstantValue(new x.EnvLoginCredentialsService(e.password));const r=new b.EnvConfigRepositoryService({ioBrokerUrl:e.url,socketIoPort:e.socketIoPort,username:e.username,allowSelfSignedCertificate:e.allowSelfSignedCertificate,scriptAutoRun:e.scriptAutoRun});return n.bind(c.default.services.configRepository).toConstantValue(r),n.bind(c.default.services.socketIoClient).to(y.SocketIoClient).inSingletonScope(),n.bind(c.default.services.connectionAdmin4).to(l.ConnectionServiceAdmin4).inSingletonScope(),n.bind(c.default.services.connectionAdmin5).to(d.ConnectionServiceAdmin5).inSingletonScope(),n.bind(c.default.services.connectionServiceProvider).to(p.ConnectionServiceProvider).inSingletonScope(),n.bind(c.default.services.adminVersionDetector).to(u.AdminVersionDetector).inSingletonScope(),n.bind(c.default.services.login).to(h.LoginService).inSingletonScope(),n.bind(c.default.services.directory).to(f.DirectoryService).inSingletonScope(),n.bind(c.default.services.secretPlaceholder).to(v.SecretPlaceholderService).inSingletonScope(),n.bind(c.default.services.scriptRemote).to(g.ScriptRemoteService).inSingletonScope(),n.bind(c.default.services.stateAndObjectRemoteService).to(_.StateAndObjectRemoteService).inSingletonScope(),n.bind(c.default.services.jsInstance).to(m.JsInstanceService).inSingletonScope(),n}(e,t),r=n.get(c.default.services.configRepository),s=n.get(c.default.services.connectionServiceProvider),a=n.get(c.default.services.login),T=n.get(c.default.services.loginCredentials),I=n.get(c.default.services.adminVersionDetector),j=n.get(c.default.services.scriptRemote),N=n.get(c.default.services.directory),A=n.get(c.default.services.jsInstance),M=n.get(c.default.services.stateAndObjectRemoteService),D=new P.RemoteScriptRepository({scriptRemote:j,directories:N});D.init();const Z=new O.RemoteConnectionService(r,I,s,a,T,t,{url:e.url,username:e.username,allowSelfSignedCertificate:e.allowSelfSignedCertificate});let U=!1;Z.onReady(()=>{U||(U=!0,j.init())});const L={connection:Z,scripts:D,scriptRemote:j,directories:N,jsInstances:A,states:M,logs:new k.HostLogService(s)},z=new o.Server({name:"iobroker-mcp",version:C.BUILD_VERSION},{capabilities:{tools:{}},instructions:"ioBroker script ids look like 'script.js.common.MyScript'. Use iobroker_get_scripts first to look up script and directory ids. Read a script with iobroker_get_script_content before editing it, then write the complete source with iobroker_update_script_source."}),F=new R(e,t,Z,D,L,z);return F.registerHandlers(),F}run(){return r(this,void 0,void 0,function*(){const e=new s.StdioServerTransport;process.stdin.on("end",()=>{this.shutdown(0)}),process.stdin.on("close",()=>{this.shutdown(0)}),process.on("SIGINT",()=>{this.shutdown(0)}),process.on("SIGTERM",()=>{this.shutdown(0)}),process.stdout.on("error",e=>{"EPIPE"!==e.code?this.logger.error(`stdout error: ${e.message}`):this.shutdown(0)}),this.logger.info(`iobroker-mcp ${C.BUILD_VERSION} started. ${this.config.toLogString()}`),this.config.allowSelfSignedCertificate&&this.config.url.startsWith("http://")&&this.logger.warn("IOBROKER_MCP_ALLOW_SELF_SIGNED is ignored for an http:// URL."),yield this.server.connect(e),yield this.closed})}registerHandlers(){this.server.setRequestHandler(a.ListToolsRequestSchema,()=>r(this,void 0,void 0,function*(){return{tools:(0,I.listRemoteTools)(this.config.readOnly)}})),this.server.setRequestHandler(a.CallToolRequestSchema,e=>r(this,void 0,void 0,function*(){var t;return this.callTool(e.params.name,null!==(t=e.params.arguments)&&void 0!==t?t:{})}))}callTool(e,n){return r(this,void 0,void 0,function*(){var r;if(!(0,I.isRemoteToolName)(e))throw new a.McpError(a.ErrorCode.InvalidParams,`Unknown tool '${e}'.`);if(this.config.readOnly&&!(0,I.isReadOnlyTool)(e))throw new a.McpError(a.ErrorCode.InvalidParams,`The tool '${e}' is not available in read-only mode.`);if(this.activeCalls>=t.MAX_CONCURRENT_CALLS)return this.resultMapper.toErrorResult("server_error",`Too many concurrent calls, the limit is ${t.MAX_CONCURRENT_CALLS}. Retry when a running call has finished.`);this.activeCalls++;const i=Date.now();try{const t=(0,I.getRemoteToolHandler)(e);this.connection.isConnected()&&(yield A(this.repository.ensureLoaded()));let o=yield A(t(this.deps,n));if(!o.ok&&"not_connected"===o.error.code){try{yield this.connection.ensureConnected()}catch(e){const t=e instanceof Error&&"hint"in e?`${null!==(r=e.hint)&&void 0!==r?r:""}`:void 0;return this.resultMapper.toErrorResult("not_connected",N(e),t||void 0)}yield A(this.repository.ensureLoaded()),o=yield A(t(this.deps,n))}return this.logger.debug(`${e} finished in ${Date.now()-i} ms.`),this.resultMapper.toResult(o)}catch(t){return this.logger.error(`${e} failed: ${N(t)}`),t instanceof j?this.resultMapper.toErrorResult("server_error",t.message,"Narrow the request, for example by using a smaller limit or a shorter time range."):this.resultMapper.toErrorResult("server_error",N(t),"Check the ioBroker connection and the given arguments, then retry.")}finally{this.activeCalls--}})}shutdown(e){return r(this,void 0,void 0,function*(){var t;if(!this.shuttingDown){this.shuttingDown=!0,this.logger.info("Shutting down."),setTimeout(()=>{process.exit(e)},5e3).unref();try{yield this.connection.stop(),yield this.server.close()}catch(e){this.logger.debug(`Shutdown error: ${N(e)}`)}null===(t=this.resolveClosed)||void 0===t||t.call(this)}})}}function N(e){return e instanceof Error?e.message:`${e}`}function A(e){return new Promise((n,r)=>{const i=setTimeout(()=>r(new j),t.TOOL_CALL_BUDGET_MS);e.then(e=>{clearTimeout(i),n(e)},e=>{clearTimeout(i),r(e)})})}t.McpServerRunner=R},67292:(e,t,n)=>{var r=n(56139),i=n(5971),o=n(84953)("engine.io-client:socket"),s=n(96938),a=n(6809),c=n(14258),u=n(29140);function l(e,t){if(!(this instanceof l))return new l(e,t);t=t||{},e&&"object"==typeof e&&(t=e,e=null),e?(e=c(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=c(t.host).host),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.agent=t.agent||!1,this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?443:80),this.query=t.query||{},"string"==typeof this.query&&(this.query=u.decode(this.query)),this.upgrade=!1!==t.upgrade,this.path=(t.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!t.forceJSONP,this.jsonp=!1!==t.jsonp,this.forceBase64=!!t.forceBase64,this.enablesXDR=!!t.enablesXDR,this.withCredentials=!1!==t.withCredentials,this.timestampParam=t.timestampParam||"t",this.timestampRequests=t.timestampRequests,this.transports=t.transports||["polling","websocket"],this.transportOptions=t.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=t.policyPort||843,this.rememberUpgrade=t.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=t.onlyBinaryUpgrades,this.perMessageDeflate=!1!==t.perMessageDeflate&&(t.perMessageDeflate||{}),!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=t.pfx||void 0,this.key=t.key||void 0,this.passphrase=t.passphrase||void 0,this.cert=t.cert||void 0,this.ca=t.ca||void 0,this.ciphers=t.ciphers||void 0,this.rejectUnauthorized=void 0===t.rejectUnauthorized||t.rejectUnauthorized,this.forceNode=!!t.forceNode,this.isReactNative="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),("undefined"==typeof self||this.isReactNative)&&(t.extraHeaders&&Object.keys(t.extraHeaders).length>0&&(this.extraHeaders=t.extraHeaders),t.localAddress&&(this.localAddress=t.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}e.exports=l,l.priorWebsocketSuccess=!1,i(l.prototype),l.protocol=a.protocol,l.Socket=l,l.Transport=n(90291),l.transports=n(56139),l.parser=n(6809),l.prototype.createTransport=function(e){o('creating transport "%s"',e);var t=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}(this.query);t.EIO=a.protocol,t.transport=e;var n=this.transportOptions[e]||{};return this.id&&(t.sid=this.id),new r[e]({query:t,socket:this,agent:n.agent||this.agent,hostname:n.hostname||this.hostname,port:n.port||this.port,secure:n.secure||this.secure,path:n.path||this.path,forceJSONP:n.forceJSONP||this.forceJSONP,jsonp:n.jsonp||this.jsonp,forceBase64:n.forceBase64||this.forceBase64,enablesXDR:n.enablesXDR||this.enablesXDR,withCredentials:n.withCredentials||this.withCredentials,timestampRequests:n.timestampRequests||this.timestampRequests,timestampParam:n.timestampParam||this.timestampParam,policyPort:n.policyPort||this.policyPort,pfx:n.pfx||this.pfx,key:n.key||this.key,passphrase:n.passphrase||this.passphrase,cert:n.cert||this.cert,ca:n.ca||this.ca,ciphers:n.ciphers||this.ciphers,rejectUnauthorized:n.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:n.perMessageDeflate||this.perMessageDeflate,extraHeaders:n.extraHeaders||this.extraHeaders,forceNode:n.forceNode||this.forceNode,localAddress:n.localAddress||this.localAddress,requestTimeout:n.requestTimeout||this.requestTimeout,protocols:n.protocols||void 0,isReactNative:this.isReactNative})},l.prototype.open=function(){var e;if(this.rememberUpgrade&&l.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length){var t=this;return void setTimeout(function(){t.emit("error","No transports available")},0)}e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(e){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)},l.prototype.setTransport=function(e){o("setting transport %s",e.name);var t=this;this.transport&&(o("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=e,e.on("drain",function(){t.onDrain()}).on("packet",function(e){t.onPacket(e)}).on("error",function(e){t.onError(e)}).on("close",function(){t.onClose("transport close")})},l.prototype.probe=function(e){o('probing transport "%s"',e);var t=this.createTransport(e,{probe:1}),n=!1,r=this;function i(){if(r.onlyBinaryUpgrades){var i=!this.supportsBinary&&r.transport.supportsBinary;n=n||i}n||(o('probe transport "%s" opened',e),t.send([{type:"ping",data:"probe"}]),t.once("packet",function(i){if(!n)if("pong"===i.type&&"probe"===i.data){if(o('probe transport "%s" pong',e),r.upgrading=!0,r.emit("upgrading",t),!t)return;l.priorWebsocketSuccess="websocket"===t.name,o('pausing current transport "%s"',r.transport.name),r.transport.pause(function(){n||"closed"!==r.readyState&&(o("changing transport and sending upgrade packet"),p(),r.setTransport(t),t.send([{type:"upgrade"}]),r.emit("upgrade",t),t=null,r.upgrading=!1,r.flush())})}else{o('probe transport "%s" failed',e);var s=new Error("probe error");s.transport=t.name,r.emit("upgradeError",s)}}))}function s(){n||(n=!0,p(),t.close(),t=null)}function a(n){var i=new Error("probe error: "+n);i.transport=t.name,s(),o('probe transport "%s" failed because of error: %s',e,n),r.emit("upgradeError",i)}function c(){a("transport closed")}function u(){a("socket closed")}function d(e){t&&e.name!==t.name&&(o('"%s" works - aborting "%s"',e.name,t.name),s())}function p(){t.removeListener("open",i),t.removeListener("error",a),t.removeListener("close",c),r.removeListener("close",u),r.removeListener("upgrading",d)}l.priorWebsocketSuccess=!1,t.once("open",i),t.once("error",a),t.once("close",c),this.once("close",u),this.once("upgrading",d),t.open()},l.prototype.onOpen=function(){if(o("socket open"),this.readyState="open",l.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.upgrade&&this.transport.pause){o("starting upgrade probes");for(var e=0,t=this.upgrades.length;e<t;e++)this.probe(this.upgrades[e])}},l.prototype.onPacket=function(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(o('socket receive: type "%s", data "%s"',e.type,e.data),this.emit("packet",e),this.emit("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emit("data",e.data),this.emit("message",e.data)}else o('packet received with socket readyState "%s"',this.readyState)},l.prototype.onHandshake=function(e){this.emit("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.onOpen(),"closed"!==this.readyState&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},l.prototype.onHeartbeat=function(e){clearTimeout(this.pingTimeoutTimer);var t=this;t.pingTimeoutTimer=setTimeout(function(){"closed"!==t.readyState&&t.onClose("ping timeout")},e||t.pingInterval+t.pingTimeout)},l.prototype.setPing=function(){var e=this;clearTimeout(e.pingIntervalTimer),e.pingIntervalTimer=setTimeout(function(){o("writing ping packet - expecting pong within %sms",e.pingTimeout),e.ping(),e.onHeartbeat(e.pingTimeout)},e.pingInterval)},l.prototype.ping=function(){var e=this;this.sendPacket("ping",function(){e.emit("ping")})},l.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emit("drain"):this.flush()},l.prototype.flush=function(){"closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(o("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},l.prototype.write=l.prototype.send=function(e,t,n){return this.sendPacket("message",e,t,n),this},l.prototype.sendPacket=function(e,t,n,r){if("function"==typeof t&&(r=t,t=void 0),"function"==typeof n&&(r=n,n=null),"closing"!==this.readyState&&"closed"!==this.readyState){(n=n||{}).compress=!1!==n.compress;var i={type:e,data:t,options:n};this.emit("packetCreate",i),this.writeBuffer.push(i),r&&this.once("flush",r),this.flush()}},l.prototype.close=function(){if("opening"===this.readyState||"open"===this.readyState){this.readyState="closing";var e=this;this.writeBuffer.length?this.once("drain",function(){this.upgrading?r():t()}):this.upgrading?r():t()}function t(){e.onClose("forced close"),o("socket closing - telling transport to close"),e.transport.close()}function n(){e.removeListener("upgrade",n),e.removeListener("upgradeError",n),t()}function r(){e.once("upgrade",n),e.once("upgradeError",n)}return this},l.prototype.onError=function(e){o("socket error %j",e),l.priorWebsocketSuccess=!1,this.emit("error",e),this.onClose("transport error",e)},l.prototype.onClose=function(e,t){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(o('socket close with reason: "%s"',e),clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)},l.prototype.filterUpgrades=function(e){for(var t=[],n=0,r=e.length;n<r;n++)~s(this.transports,e[n])&&t.push(e[n]);return t}},67316:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{localeError:a()}};const s=o(n(90523)),a=()=>{const e={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"}};function t(t){return e[t]??null}const n={regex:"ان پٹ",email:"ای میل ایڈریس",url:"یو آر ایل",emoji:"ایموجی",uuid:"یو یو آئی ڈی",uuidv4:"یو یو آئی ڈی وی 4",uuidv6:"یو یو آئی ڈی وی 6",nanoid:"نینو آئی ڈی",guid:"جی یو آئی ڈی",cuid:"سی یو آئی ڈی",cuid2:"سی یو آئی ڈی 2",ulid:"یو ایل آئی ڈی",xid:"ایکس آئی ڈی",ksuid:"کے ایس یو آئی ڈی",datetime:"آئی ایس او ڈیٹ ٹائم",date:"آئی ایس او تاریخ",time:"آئی ایس او وقت",duration:"آئی ایس او مدت",ipv4:"آئی پی وی 4 ایڈریس",ipv6:"آئی پی وی 6 ایڈریس",cidrv4:"آئی پی وی 4 رینج",cidrv6:"آئی پی وی 6 رینج",base64:"بیس 64 ان کوڈڈ سٹرنگ",base64url:"بیس 64 یو آر ایل ان کوڈڈ سٹرنگ",json_string:"جے ایس او این سٹرنگ",e164:"ای 164 نمبر",jwt:"جے ڈبلیو ٹی",template_literal:"ان پٹ"};return e=>{switch(e.code){case"invalid_type":return`غلط ان پٹ: ${e.expected} متوقع تھا، ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"نمبر";case"object":if(Array.isArray(e))return"آرے";if(null===e)return"نل";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)} موصول ہوا`;case"invalid_value":return 1===e.values.length?`غلط ان پٹ: ${s.stringifyPrimitive(e.values[0])} متوقع تھا`:`غلط آپشن: ${s.joinValues(e.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`بہت بڑا: ${e.origin??"ویلیو"} کے ${n}${e.maximum.toString()} ${r.unit??"عناصر"} ہونے متوقع تھے`:`بہت بڑا: ${e.origin??"ویلیو"} کا ${n}${e.maximum.toString()} ہونا متوقع تھا`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`بہت چھوٹا: ${e.origin} کے ${n}${e.minimum.toString()} ${r.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${e.origin} کا ${n}${e.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":{const t=e;return"starts_with"===t.format?`غلط سٹرنگ: "${t.prefix}" سے شروع ہونا چاہیے`:"ends_with"===t.format?`غلط سٹرنگ: "${t.suffix}" پر ختم ہونا چاہیے`:"includes"===t.format?`غلط سٹرنگ: "${t.includes}" شامل ہونا چاہیے`:"regex"===t.format?`غلط سٹرنگ: پیٹرن ${t.pattern} سے میچ ہونا چاہیے`:`غلط ${n[t.format]??e.format}`}case"not_multiple_of":return`غلط نمبر: ${e.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${e.keys.length>1?"ز":""}: ${s.joinValues(e.keys,"، ")}`;case"invalid_key":return`${e.origin} میں غلط کی`;case"invalid_union":default:return"غلط ان پٹ";case"invalid_element":return`${e.origin} میں غلط ویلیو`}}}},68001:(e,t,n)=>{var r=n(52018),i=n(39023);(t=e.exports=n(79110)).init=function(e){e.inspectOpts={};for(var n=Object.keys(t.inspectOpts),r=0;r<n.length;r++)e.inspectOpts[n[r]]=t.inspectOpts[n[r]]},t.log=function(){return process.stderr.write(i.format.apply(i,arguments)+"\n")},t.formatArgs=function(e){var n=this.namespace;if(this.useColors){var r=this.color,i="[3"+(r<8?r:"8;5;"+r),o=" "+i+";1m"+n+" ";e[0]=o+e[0].split("\n").join("\n"+o),e.push(i+"m+"+t.humanize(this.diff)+"")}else e[0]=(t.inspectOpts.hideDate?"":(new Date).toISOString()+" ")+n+" "+e[0]},t.save=function(e){null==e?delete process.env.DEBUG:process.env.DEBUG=e},t.load=s,t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):r.isatty(process.stderr.fd)},t.colors=[6,2,3,4,5,1];try{var o=n(27687);o&&o.level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}function s(){return process.env.DEBUG}t.inspectOpts=Object.keys(process.env).filter(function(e){return/^debug_/i.test(e)}).reduce(function(e,t){var n=t.substring(6).toLowerCase().replace(/_([a-z])/g,function(e,t){return t.toUpperCase()}),r=process.env[t];return r=!!/^(yes|on|true|enabled)$/i.test(r)||!/^(no|off|false|disabled)$/i.test(r)&&("null"===r?null:Number(r)),e[n]=r,e},{}),t.formatters.o=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts).split("\n").map(function(e){return e.trim()}).join(" ")},t.formatters.O=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts)},t.enable(s())},68002:e=>{"use strict";e.exports=Math.min},68169:(e,t,n)=>{const r=require;"function"==typeof r.addon?e.exports=r.addon.bind(r):e.exports=n(1381)},68282:function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.JsInstanceService=void 0;const s=n(52650),a=n(55853);let c=class{constructor(e){this.connectionServiceProvider=e}getAvailableInstances(){return this.connectionServiceProvider.getConnectionService().getSystemObjectView("instance","system.adapter.javascript","system.adapter.javascript.")}changeInstance(e,t){const n={_id:e,common:{engine:t._id}};return this.connectionServiceProvider.getConnectionService().extendObject(e,n)}};t.JsInstanceService=c,t.JsInstanceService=c=r([(0,s.injectable)(),o(0,(0,s.inject)(a.default.services.connectionServiceProvider)),i("design:paramtypes",[Object])],c)},68385:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseEffectsDef=void 0;const r=n(73524),i=n(62909);t.parseEffectsDef=function(e,t){return"input"===t.effectStrategy?(0,r.parseDef)(e.schema._def,t):(0,i.parseAnyDef)(t)}},68428:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.getLogs=function(e,t){return r(this,void 0,void 0,function*(){const n=(0,o.ensureRemoteConnected)(e);return n?{ok:!1,error:n}:(0,i.readLogs)(e.logs,t)})};const i=n(25441),o=n(33510)},68473:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.NoWorkspaceService=void 0;const r={uri:{fsPath:""},name:"INVALID",index:0};t.NoWorkspaceService=class{constructor(){this.workspaceToUse=r}getWorkspaceToUse(){return n(this,void 0,void 0,function*(){return this.workspaceToUse})}getWorkspacesWithConfig(){return n(this,void 0,void 0,function*(){return[]})}}},68480:function(e,t,n){"use strict";var r,i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),s=0;s<n.length;s++)"default"!==n[s]&&i(t,e,n[s]);return o(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.postConstruct=void 0;const a=s(n(35007)),c=s(n(19466)),u=(0,n(89260).propertyEventDecorator)(c.POST_CONSTRUCT,a.MULTIPLE_POST_CONSTRUCT_METHODS);t.postConstruct=u},68645:e=>{"use strict";class t{constructor(e,t){this.target=t,this.type=e}}class n extends t{constructor(e,t){super("message",t),this.data=e}}class r extends t{constructor(e,t,n){super("close",n),this.wasClean=n._closeFrameReceived&&n._closeFrameSent,this.reason=t,this.code=e}}class i extends t{constructor(e){super("open",e)}}class o extends t{constructor(e,t){super("error",t),this.message=e.message,this.error=e}}const s={addEventListener(e,t,s){if("function"!=typeof t)return;function a(e){t.call(this,new n(e,this))}function c(e,n){t.call(this,new r(e,n,this))}function u(e){t.call(this,new o(e,this))}function l(){t.call(this,new i(this))}const d=s&&s.once?"once":"on";"message"===e?(a._listener=t,this[d](e,a)):"close"===e?(c._listener=t,this[d](e,c)):"error"===e?(u._listener=t,this[d](e,u)):"open"===e?(l._listener=t,this[d](e,l)):this[d](e,t)},removeEventListener(e,t){const n=this.listeners(e);for(let r=0;r<n.length;r++)n[r]!==t&&n[r]._listener!==t||this.removeListener(e,n[r])}};e.exports=s},69278:e=>{"use strict";e.exports=require("net")},69383:e=>{"use strict";e.exports=Error},69675:e=>{"use strict";e.exports=TypeError},69687:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LegacyTargetImpl=t.getTargets=t.getClassMetadataFromMetadataReader=t.getClassMetadata=t.getClassElementMetadataFromLegacyMetadata=t.ClassElementMetadataKind=void 0;const r=n(49195);Object.defineProperty(t,"getTargets",{enumerable:!0,get:function(){return r.getTargets}});const i=n(80877);Object.defineProperty(t,"LegacyTargetImpl",{enumerable:!0,get:function(){return i.LegacyTargetImpl}});const o=n(44063);Object.defineProperty(t,"getClassElementMetadataFromLegacyMetadata",{enumerable:!0,get:function(){return o.getClassElementMetadataFromLegacyMetadata}});const s=n(49343);Object.defineProperty(t,"getClassMetadata",{enumerable:!0,get:function(){return s.getClassMetadata}});const a=n(8841);Object.defineProperty(t,"getClassMetadataFromMetadataReader",{enumerable:!0,get:function(){return a.getClassMetadataFromMetadataReader}});const c=n(86277);Object.defineProperty(t,"ClassElementMetadataKind",{enumerable:!0,get:function(){return c.ClassElementMetadataKind}})},70134:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.z=void 0;const a=o(n(33279));t.z=a,s(n(33279),t),t.default=a},70405:e=>{e.exports=function(e){var t="function"==typeof setImmediate?setImmediate:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:null;t?t(e):setTimeout(e,0)}},70414:e=>{"use strict";e.exports=Math.round},70453:(e,t,n)=>{"use strict";var r,i=n(79612),o=n(69383),s=n(41237),a=n(79290),c=n(79538),u=n(58068),l=n(69675),d=n(35345),p=n(71514),f=n(58968),m=n(6188),h=n(68002),v=n(75880),g=n(70414),y=n(73093),_=Function,b=function(e){try{return _('"use strict"; return ('+e+").constructor;")()}catch(e){}},x=n(75795),w=n(30655),S=function(){throw new l},O=x?function(){try{return S}catch(e){try{return x(arguments,"callee").get}catch(e){return S}}}():S,k=n(64039)(),$=n(93628),P=n(71064),E=n(48648),T=n(11002),C=n(10076),I={},j="undefined"!=typeof Uint8Array&&$?$(Uint8Array):r,R={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":k&&$?$([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":I,"%AsyncGenerator%":I,"%AsyncGeneratorFunction%":I,"%AsyncIteratorPrototype%":I,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":s,"%Float16Array%":"undefined"==typeof Float16Array?r:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":_,"%GeneratorFunction%":I,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":k&&$?$($([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&k&&$?$((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":x,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":a,"%ReferenceError%":c,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&k&&$?$((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":k&&$?$(""[Symbol.iterator]()):r,"%Symbol%":k?Symbol:r,"%SyntaxError%":u,"%ThrowTypeError%":O,"%TypedArray%":j,"%TypeError%":l,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":d,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet,"%Function.prototype.call%":C,"%Function.prototype.apply%":T,"%Object.defineProperty%":w,"%Object.getPrototypeOf%":P,"%Math.abs%":p,"%Math.floor%":f,"%Math.max%":m,"%Math.min%":h,"%Math.pow%":v,"%Math.round%":g,"%Math.sign%":y,"%Reflect.getPrototypeOf%":E};if($)try{null.error}catch(e){var N=$($(e));R["%Error.prototype%"]=N}var A=function e(t){var n;if("%AsyncFunction%"===t)n=b("async function () {}");else if("%GeneratorFunction%"===t)n=b("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=b("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&$&&(n=$(i.prototype))}return R[t]=n,n},M={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},D=n(66743),Z=n(9957),U=D.call(C,Array.prototype.concat),L=D.call(T,Array.prototype.splice),z=D.call(C,String.prototype.replace),F=D.call(C,String.prototype.slice),B=D.call(C,RegExp.prototype.exec),q=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,V=/\\(\\)?/g,G=function(e,t){var n,r=e;if(Z(M,r)&&(r="%"+(n=M[r])[0]+"%"),Z(R,r)){var i=R[r];if(i===I&&(i=A(r)),void 0===i&&!t)throw new l("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new u("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new l('"allowMissing" argument must be a boolean');if(null===B(/^%?[^%]*%?$/,e))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=F(e,0,1),n=F(e,-1);if("%"===t&&"%"!==n)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new u("invalid intrinsic syntax, expected opening `%`");var r=[];return z(e,q,function(e,t,n,i){r[r.length]=n?z(i,V,"$1"):t||e}),r}(e),r=n.length>0?n[0]:"",i=G("%"+r+"%",t),o=i.name,s=i.value,a=!1,c=i.alias;c&&(r=c[0],L(n,U([0,1],c)));for(var d=1,p=!0;d<n.length;d+=1){var f=n[d],m=F(f,0,1),h=F(f,-1);if(('"'===m||"'"===m||"`"===m||'"'===h||"'"===h||"`"===h)&&m!==h)throw new u("property names with quotes must have matching quotes");if("constructor"!==f&&p||(a=!0),Z(R,o="%"+(r+="."+f)+"%"))s=R[o];else if(null!=s){if(!(f in s)){if(!t)throw new l("base intrinsic for "+e+" exists, but the property is not available.");return}if(x&&d+1>=n.length){var v=x(s,f);s=(p=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:s[f]}else p=Z(s,f),s=s[f];p&&!a&&(R[o]=s)}}return s}},70485:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JSONSchemaGenerator=void 0,t.toJSONSchema=function(e,t){if(e instanceof r.$ZodRegistry){const n=new o(t),r={};for(const t of e._idmap.entries()){const[e,r]=t;n.process(r)}const i={},s={registry:e,uri:t?.uri,defs:r};for(const r of e._idmap.entries()){const[e,o]=r;i[e]=n.emit(o,{...t,external:s})}if(Object.keys(r).length>0){const e="draft-2020-12"===n.target?"$defs":"definitions";i.__shared={[e]:r}}return{schemas:i}}const n=new o(t);return n.process(e),n.emit(e,t)};const r=n(91114),i=n(90523);class o{constructor(e){this.counter=0,this.metadataRegistry=e?.metadata??r.globalRegistry,this.target=e?.target??"draft-2020-12",this.unrepresentable=e?.unrepresentable??"throw",this.override=e?.override??(()=>{}),this.io=e?.io??"output",this.seen=new Map}process(e,t={path:[],schemaPath:[]}){var n;const r=e._zod.def,o={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},a=this.seen.get(e);if(a)return a.count++,t.schemaPath.includes(e)&&(a.cycle=t.path),a.schema;const c={schema:{},count:1,cycle:void 0,path:t.path};this.seen.set(e,c);const u=e._zod.toJSONSchema?.();if(u)c.schema=u;else{const n={...t,schemaPath:[...t.schemaPath,e],path:t.path},s=e._zod.parent;if(s)c.ref=s,this.process(s,n),this.seen.get(s).isParent=!0;else{const t=c.schema;switch(r.type){case"string":{const n=t;n.type="string";const{minimum:r,maximum:i,format:s,patterns:a,contentEncoding:u}=e._zod.bag;if("number"==typeof r&&(n.minLength=r),"number"==typeof i&&(n.maxLength=i),s&&(n.format=o[s]??s,""===n.format&&delete n.format),u&&(n.contentEncoding=u),a&&a.size>0){const e=[...a];1===e.length?n.pattern=e[0].source:e.length>1&&(c.schema.allOf=[...e.map(e=>({..."draft-7"===this.target?{type:"string"}:{},pattern:e.source}))])}break}case"number":{const n=t,{minimum:r,maximum:i,format:o,multipleOf:s,exclusiveMaximum:a,exclusiveMinimum:c}=e._zod.bag;"string"==typeof o&&o.includes("int")?n.type="integer":n.type="number","number"==typeof c&&(n.exclusiveMinimum=c),"number"==typeof r&&(n.minimum=r,"number"==typeof c&&(c>=r?delete n.minimum:delete n.exclusiveMinimum)),"number"==typeof a&&(n.exclusiveMaximum=a),"number"==typeof i&&(n.maximum=i,"number"==typeof a&&(a<=i?delete n.maximum:delete n.exclusiveMaximum)),"number"==typeof s&&(n.multipleOf=s);break}case"boolean":case"success":t.type="boolean";break;case"bigint":if("throw"===this.unrepresentable)throw new Error("BigInt cannot be represented in JSON Schema");break;case"symbol":if("throw"===this.unrepresentable)throw new Error("Symbols cannot be represented in JSON Schema");break;case"null":t.type="null";break;case"any":case"unknown":break;case"undefined":if("throw"===this.unrepresentable)throw new Error("Undefined cannot be represented in JSON Schema");break;case"void":if("throw"===this.unrepresentable)throw new Error("Void cannot be represented in JSON Schema");break;case"never":t.not={};break;case"date":if("throw"===this.unrepresentable)throw new Error("Date cannot be represented in JSON Schema");break;case"array":{const i=t,{minimum:o,maximum:s}=e._zod.bag;"number"==typeof o&&(i.minItems=o),"number"==typeof s&&(i.maxItems=s),i.type="array",i.items=this.process(r.element,{...n,path:[...n.path,"items"]});break}case"object":{const e=t;e.type="object",e.properties={};const i=r.shape;for(const t in i)e.properties[t]=this.process(i[t],{...n,path:[...n.path,"properties",t]});const o=new Set(Object.keys(i)),s=new Set([...o].filter(e=>{const t=r.shape[e]._zod;return"input"===this.io?void 0===t.optin:void 0===t.optout}));s.size>0&&(e.required=Array.from(s)),"never"===r.catchall?._zod.def.type?e.additionalProperties=!1:r.catchall?r.catchall&&(e.additionalProperties=this.process(r.catchall,{...n,path:[...n.path,"additionalProperties"]})):"output"===this.io&&(e.additionalProperties=!1);break}case"union":t.anyOf=r.options.map((e,t)=>this.process(e,{...n,path:[...n.path,"anyOf",t]}));break;case"intersection":{const e=t,i=this.process(r.left,{...n,path:[...n.path,"allOf",0]}),o=this.process(r.right,{...n,path:[...n.path,"allOf",1]}),s=e=>"allOf"in e&&1===Object.keys(e).length,a=[...s(i)?i.allOf:[i],...s(o)?o.allOf:[o]];e.allOf=a;break}case"tuple":{const i=t;i.type="array";const o=r.items.map((e,t)=>this.process(e,{...n,path:[...n.path,"prefixItems",t]}));if("draft-2020-12"===this.target?i.prefixItems=o:i.items=o,r.rest){const e=this.process(r.rest,{...n,path:[...n.path,"items"]});"draft-2020-12"===this.target?i.items=e:i.additionalItems=e}r.rest&&(i.items=this.process(r.rest,{...n,path:[...n.path,"items"]}));const{minimum:s,maximum:a}=e._zod.bag;"number"==typeof s&&(i.minItems=s),"number"==typeof a&&(i.maxItems=a);break}case"record":{const e=t;e.type="object",e.propertyNames=this.process(r.keyType,{...n,path:[...n.path,"propertyNames"]}),e.additionalProperties=this.process(r.valueType,{...n,path:[...n.path,"additionalProperties"]});break}case"map":if("throw"===this.unrepresentable)throw new Error("Map cannot be represented in JSON Schema");break;case"set":if("throw"===this.unrepresentable)throw new Error("Set cannot be represented in JSON Schema");break;case"enum":{const e=t,n=(0,i.getEnumValues)(r.entries);n.every(e=>"number"==typeof e)&&(e.type="number"),n.every(e=>"string"==typeof e)&&(e.type="string"),e.enum=n;break}case"literal":{const e=t,n=[];for(const e of r.values)if(void 0===e){if("throw"===this.unrepresentable)throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if("bigint"==typeof e){if("throw"===this.unrepresentable)throw new Error("BigInt literals cannot be represented in JSON Schema");n.push(Number(e))}else n.push(e);if(0===n.length);else if(1===n.length){const t=n[0];e.type=null===t?"null":typeof t,e.const=t}else n.every(e=>"number"==typeof e)&&(e.type="number"),n.every(e=>"string"==typeof e)&&(e.type="string"),n.every(e=>"boolean"==typeof e)&&(e.type="string"),n.every(e=>null===e)&&(e.type="null"),e.enum=n;break}case"file":{const n=t,r={type:"string",format:"binary",contentEncoding:"binary"},{minimum:i,maximum:o,mime:s}=e._zod.bag;void 0!==i&&(r.minLength=i),void 0!==o&&(r.maxLength=o),s?1===s.length?(r.contentMediaType=s[0],Object.assign(n,r)):n.anyOf=s.map(e=>({...r,contentMediaType:e})):Object.assign(n,r);break}case"transform":if("throw"===this.unrepresentable)throw new Error("Transforms cannot be represented in JSON Schema");break;case"nullable":{const e=this.process(r.innerType,n);t.anyOf=[e,{type:"null"}];break}case"nonoptional":case"promise":case"optional":this.process(r.innerType,n),c.ref=r.innerType;break;case"default":this.process(r.innerType,n),c.ref=r.innerType,t.default=JSON.parse(JSON.stringify(r.defaultValue));break;case"prefault":this.process(r.innerType,n),c.ref=r.innerType,"input"===this.io&&(t._prefault=JSON.parse(JSON.stringify(r.defaultValue)));break;case"catch":{let e;this.process(r.innerType,n),c.ref=r.innerType;try{e=r.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}t.default=e;break}case"nan":if("throw"===this.unrepresentable)throw new Error("NaN cannot be represented in JSON Schema");break;case"template_literal":{const n=t,r=e._zod.pattern;if(!r)throw new Error("Pattern not found in template literal");n.type="string",n.pattern=r.source;break}case"pipe":{const e="input"===this.io?"transform"===r.in._zod.def.type?r.out:r.in:r.out;this.process(e,n),c.ref=e;break}case"readonly":this.process(r.innerType,n),c.ref=r.innerType,t.readOnly=!0;break;case"lazy":{const t=e._zod.innerType;this.process(t,n),c.ref=t;break}case"custom":if("throw"===this.unrepresentable)throw new Error("Custom types cannot be represented in JSON Schema")}}}const l=this.metadataRegistry.get(e);return l&&Object.assign(c.schema,l),"input"===this.io&&s(e)&&(delete c.schema.examples,delete c.schema.default),"input"===this.io&&c.schema._prefault&&((n=c.schema).default??(n.default=c.schema._prefault)),delete c.schema._prefault,this.seen.get(e).schema}emit(e,t){const n={cycles:t?.cycles??"ref",reused:t?.reused??"inline",external:t?.external??void 0},r=this.seen.get(e);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=e=>{const t="draft-2020-12"===this.target?"$defs":"definitions";if(n.external){const r=n.external.registry.get(e[0])?.id,i=n.external.uri??(e=>e);if(r)return{ref:i(r)};const o=e[1].defId??e[1].schema.id??"schema"+this.counter++;return e[1].defId=o,{defId:o,ref:`${i("__shared")}#/${t}/${o}`}}if(e[1]===r)return{ref:"#"};const i=`#/${t}/`,o=e[1].schema.id??"__schema"+this.counter++;return{defId:o,ref:i+o}},o=e=>{if(e[1].schema.$ref)return;const t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);const o=t.schema;for(const e in o)delete o[e];o.$ref=n};if("throw"===n.cycles)for(const e of this.seen.entries()){const t=e[1];if(t.cycle)throw new Error(`Cycle detected: #/${t.cycle?.join("/")}/<root>\n\nSet the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const t of this.seen.entries()){const r=t[1];if(e===t[0]){o(t);continue}if(n.external){const r=n.external.registry.get(t[0])?.id;if(e!==t[0]&&r){o(t);continue}}const i=this.metadataRegistry.get(t[0])?.id;(i||r.cycle||r.count>1&&"ref"===n.reused)&&o(t)}const s=(e,t)=>{const n=this.seen.get(e),r=n.def??n.schema,i={...r};if(null===n.ref)return;const o=n.ref;if(n.ref=null,o){s(o,t);const e=this.seen.get(o).schema;e.$ref&&"draft-7"===t.target?(r.allOf=r.allOf??[],r.allOf.push(e)):(Object.assign(r,e),Object.assign(r,i))}n.isParent||this.override({zodSchema:e,jsonSchema:r,path:n.path??[]})};for(const e of[...this.seen.entries()].reverse())s(e[0],{target:this.target});const a={};if("draft-2020-12"===this.target?a.$schema="https://json-schema.org/draft/2020-12/schema":"draft-7"===this.target?a.$schema="http://json-schema.org/draft-07/schema#":console.warn(`Invalid target: ${this.target}`),n.external?.uri){const t=n.external.registry.get(e)?.id;if(!t)throw new Error("Schema is missing an `id` property");a.$id=n.external.uri(t)}Object.assign(a,r.def);const c=n.external?.defs??{};for(const e of this.seen.entries()){const t=e[1];t.def&&t.defId&&(c[t.defId]=t.def)}n.external||Object.keys(c).length>0&&("draft-2020-12"===this.target?a.$defs=c:a.definitions=c);try{return JSON.parse(JSON.stringify(a))}catch(e){throw new Error("Error converting schema to JSON.")}}}function s(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;switch(r.type){case"string":case"number":case"bigint":case"boolean":case"date":case"symbol":case"undefined":case"null":case"any":case"unknown":case"never":case"void":case"literal":case"enum":case"nan":case"file":case"template_literal":case"custom":case"success":case"catch":return!1;case"array":return s(r.element,n);case"object":for(const e in r.shape)if(s(r.shape[e],n))return!0;return!1;case"union":for(const e of r.options)if(s(e,n))return!0;return!1;case"intersection":return s(r.left,n)||s(r.right,n);case"tuple":for(const e of r.items)if(s(e,n))return!0;return!(!r.rest||!s(r.rest,n));case"record":case"map":return s(r.keyType,n)||s(r.valueType,n);case"set":return s(r.valueType,n);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":case"default":case"prefault":return s(r.innerType,n);case"lazy":return s(r.getter(),n);case"transform":return!0;case"pipe":return s(r.in,n)||s(r.out,n)}throw new Error(`Unknown schema type: ${r.type}`)}t.JSONSchemaGenerator=o},70513:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRules=t.isJSONType=void 0;const n=new Set(["string","number","integer","boolean","null","object","array"]);t.isJSONType=function(e){return"string"==typeof e&&n.has(e)},t.getRules=function(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}},70857:e=>{"use strict";e.exports=require("os")},71064:(e,t,n)=>{"use strict";var r=n(79612);e.exports=r.getPrototypeOf||null},71514:e=>{"use strict";e.exports=Math.abs},71527:(e,t,n)=>{"use strict";const{Duplex:r}=n(2203);function i(e){e.emit("close")}function o(){!this.destroyed&&this._writableState.finished&&this.destroy()}function s(e){this.removeListener("error",s),this.destroy(),0===this.listenerCount("error")&&this.emit("error",e)}e.exports=function(e,t){let n=!0,a=!0;function c(){n&&e._socket.resume()}e.readyState===e.CONNECTING?e.once("open",function(){e._receiver.removeAllListeners("drain"),e._receiver.on("drain",c)}):(e._receiver.removeAllListeners("drain"),e._receiver.on("drain",c));const u=new r({...t,autoDestroy:!1,emitClose:!1,objectMode:!1,writableObjectMode:!1});return e.on("message",function(t){u.push(t)||(n=!1,e._socket.pause())}),e.once("error",function(e){u.destroyed||(a=!1,u.destroy(e))}),e.once("close",function(){u.destroyed||u.push(null)}),u._destroy=function(t,n){if(e.readyState===e.CLOSED)return n(t),void process.nextTick(i,u);let r=!1;e.once("error",function(e){r=!0,n(e)}),e.once("close",function(){r||n(t),process.nextTick(i,u)}),a&&e.terminate()},u._final=function(t){e.readyState!==e.CONNECTING?null!==e._socket&&(e._socket._writableState.finished?(t(),u._readableState.endEmitted&&u.destroy()):(e._socket.once("finish",function(){t()}),e.close())):e.once("open",function(){u._final(t)})},u._read=function(){e.readyState!==e.OPEN&&e.readyState!==e.CLOSING||n||(n=!0,e._receiver._writableState.needDrain||e._socket.resume())},u._write=function(t,n,r){e.readyState!==e.CONNECTING?e.send(t,r):e.once("open",function(){u._write(t,n,r)})},u.on("end",o),u.on("error",s),u}},71697:function(e,t,n){"use strict";var r,i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),s=0;s<n.length;s++)"default"!==n[s]&&i(t,e,n[s]);return o(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.Container=void 0;const a=n(33648),c=s(n(35007)),u=n(9117),l=s(n(19466)),d=n(263),p=n(73934),f=n(96871),m=n(64483),h=n(12576),v=n(37763),g=n(56272),y=n(75528),_=n(93382),b=n(6289);class x{id;parent;options;_middleware;_bindingDictionary;_activations;_deactivations;_snapshots;_metadataReader;_moduleActivationStore;constructor(e){const t=e||{};if("object"!=typeof t)throw new Error(c.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT);if(void 0===t.defaultScope)t.defaultScope=u.BindingScopeEnum.Transient;else if(t.defaultScope!==u.BindingScopeEnum.Singleton&&t.defaultScope!==u.BindingScopeEnum.Transient&&t.defaultScope!==u.BindingScopeEnum.Request)throw new Error(c.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE);if(void 0===t.autoBindInjectable)t.autoBindInjectable=!1;else if("boolean"!=typeof t.autoBindInjectable)throw new Error(c.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE);if(void 0===t.skipBaseClassChecks)t.skipBaseClassChecks=!1;else if("boolean"!=typeof t.skipBaseClassChecks)throw new Error(c.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK);this.options={autoBindInjectable:t.autoBindInjectable,defaultScope:t.defaultScope,skipBaseClassChecks:t.skipBaseClassChecks},this.id=(0,v.id)(),this._bindingDictionary=new _.Lookup,this._snapshots=[],this._middleware=null,this._activations=new _.Lookup,this._deactivations=new _.Lookup,this.parent=null,this._metadataReader=new d.MetadataReader,this._moduleActivationStore=new b.ModuleActivationStore}static merge(e,t,...n){const r=new x,i=[e,t,...n].map(e=>(0,p.getBindingDictionary)(e)),o=(0,p.getBindingDictionary)(r);return i.forEach(e=>{var t;t=o,e.traverse((e,n)=>{n.forEach(e=>{t.add(e.serviceIdentifier,e.clone())})})}),r}load(...e){const t=this._getContainerModuleHelpersFactory();for(const n of e){const e=t(n.id);n.registry(e.bindFunction,e.unbindFunction,e.isboundFunction,e.rebindFunction,e.unbindAsyncFunction,e.onActivationFunction,e.onDeactivationFunction)}}async loadAsync(...e){const t=this._getContainerModuleHelpersFactory();for(const n of e){const e=t(n.id);await n.registry(e.bindFunction,e.unbindFunction,e.isboundFunction,e.rebindFunction,e.unbindAsyncFunction,e.onActivationFunction,e.onDeactivationFunction)}}unload(...e){e.forEach(e=>{const t=this._removeModuleBindings(e.id);this._deactivateSingletons(t),this._removeModuleHandlers(e.id)})}async unloadAsync(...e){for(const t of e){const e=this._removeModuleBindings(t.id);await this._deactivateSingletonsAsync(e),this._removeModuleHandlers(t.id)}}bind(e){return this._bind(this._buildBinding(e))}rebind(e){return this.unbind(e),this.bind(e)}async rebindAsync(e){return await this.unbindAsync(e),this.bind(e)}unbind(e){if(this._bindingDictionary.hasKey(e)){const t=this._bindingDictionary.get(e);this._deactivateSingletons(t)}this._removeServiceFromDictionary(e)}async unbindAsync(e){if(this._bindingDictionary.hasKey(e)){const t=this._bindingDictionary.get(e);await this._deactivateSingletonsAsync(t)}this._removeServiceFromDictionary(e)}unbindAll(){this._bindingDictionary.traverse((e,t)=>{this._deactivateSingletons(t)}),this._bindingDictionary=new _.Lookup}async unbindAllAsync(){const e=[];this._bindingDictionary.traverse((t,n)=>{e.push(this._deactivateSingletonsAsync(n))}),await Promise.all(e),this._bindingDictionary=new _.Lookup}onActivation(e,t){this._activations.add(e,t)}onDeactivation(e,t){this._deactivations.add(e,t)}isBound(e){let t=this._bindingDictionary.hasKey(e);return!t&&this.parent&&(t=this.parent.isBound(e)),t}isCurrentBound(e){return this._bindingDictionary.hasKey(e)}isBoundNamed(e,t){return this.isBoundTagged(e,l.NAMED_TAG,t)}isBoundTagged(e,t,n){let r=!1;if(this._bindingDictionary.hasKey(e)){const i=this._bindingDictionary.get(e),o=(0,p.createMockRequest)(this,e,{customTag:{key:t,value:n},isMultiInject:!1});r=i.some(e=>e.constraint(o))}return!r&&this.parent&&(r=this.parent.isBoundTagged(e,t,n)),r}snapshot(){this._snapshots.push(y.ContainerSnapshot.of(this._bindingDictionary.clone(),this._middleware,this._activations.clone(),this._deactivations.clone(),this._moduleActivationStore.clone()))}restore(){const e=this._snapshots.pop();if(void 0===e)throw new Error(c.NO_MORE_SNAPSHOTS_AVAILABLE);this._bindingDictionary=e.bindings,this._activations=e.activations,this._deactivations=e.deactivations,this._middleware=e.middleware,this._moduleActivationStore=e.moduleActivationStore}createChild(e){const t=new x(e||this.options);return t.parent=this,t}applyMiddleware(...e){const t=this._middleware?this._middleware:this._planAndResolve();this._middleware=e.reduce((e,t)=>t(e),t)}applyCustomMetadataReader(e){this._metadataReader=e}get(e){const t=this._getNotAllArgs(e,!1,!1);return this._getButThrowIfAsync(t)}async getAsync(e){const t=this._getNotAllArgs(e,!1,!1);return this._get(t)}getTagged(e,t,n){const r=this._getNotAllArgs(e,!1,!1,t,n);return this._getButThrowIfAsync(r)}async getTaggedAsync(e,t,n){const r=this._getNotAllArgs(e,!1,!1,t,n);return this._get(r)}getNamed(e,t){return this.getTagged(e,l.NAMED_TAG,t)}async getNamedAsync(e,t){return this.getTaggedAsync(e,l.NAMED_TAG,t)}getAll(e,t){const n=this._getAllArgs(e,t,!1);return this._getButThrowIfAsync(n)}async getAllAsync(e,t){const n=this._getAllArgs(e,t,!1);return this._getAll(n)}getAllTagged(e,t,n){const r=this._getNotAllArgs(e,!0,!1,t,n);return this._getButThrowIfAsync(r)}async getAllTaggedAsync(e,t,n){const r=this._getNotAllArgs(e,!0,!1,t,n);return this._getAll(r)}getAllNamed(e,t){return this.getAllTagged(e,l.NAMED_TAG,t)}async getAllNamedAsync(e,t){return this.getAllTaggedAsync(e,l.NAMED_TAG,t)}resolve(e){const t=this.isBound(e);t||this.bind(e).toSelf();const n=this.get(e);return t||this.unbind(e),n}tryGet(e){const t=this._getNotAllArgs(e,!1,!0);return this._getButThrowIfAsync(t)}async tryGetAsync(e){const t=this._getNotAllArgs(e,!1,!0);return this._get(t)}tryGetTagged(e,t,n){const r=this._getNotAllArgs(e,!1,!0,t,n);return this._getButThrowIfAsync(r)}async tryGetTaggedAsync(e,t,n){const r=this._getNotAllArgs(e,!1,!0,t,n);return this._get(r)}tryGetNamed(e,t){return this.tryGetTagged(e,l.NAMED_TAG,t)}async tryGetNamedAsync(e,t){return this.tryGetTaggedAsync(e,l.NAMED_TAG,t)}tryGetAll(e,t){const n=this._getAllArgs(e,t,!0);return this._getButThrowIfAsync(n)}async tryGetAllAsync(e,t){const n=this._getAllArgs(e,t,!0);return this._getAll(n)}tryGetAllTagged(e,t,n){const r=this._getNotAllArgs(e,!0,!0,t,n);return this._getButThrowIfAsync(r)}async tryGetAllTaggedAsync(e,t,n){const r=this._getNotAllArgs(e,!0,!0,t,n);return this._getAll(r)}tryGetAllNamed(e,t){return this.tryGetAllTagged(e,l.NAMED_TAG,t)}async tryGetAllNamedAsync(e,t){return this.tryGetAllTaggedAsync(e,l.NAMED_TAG,t)}_preDestroy(e,t){if(void 0!==e&&Reflect.hasMetadata(l.PRE_DESTROY,e)){const n=Reflect.getMetadata(l.PRE_DESTROY,e);return t[n.value]?.()}}_removeModuleHandlers(e){const t=this._moduleActivationStore.remove(e);this._activations.removeIntersection(t.onActivations),this._deactivations.removeIntersection(t.onDeactivations)}_removeModuleBindings(e){return this._bindingDictionary.removeByCondition(t=>t.moduleId===e)}_deactivate(e,t){const n=null==t?void 0:Object.getPrototypeOf(t).constructor;try{if(this._deactivations.hasKey(e.serviceIdentifier)){const r=this._deactivateContainer(t,this._deactivations.get(e.serviceIdentifier).values());if((0,h.isPromise)(r))return this._handleDeactivationError(r.then(async()=>this._propagateContainerDeactivationThenBindingAndPreDestroyAsync(e,t,n)),e.serviceIdentifier)}const r=this._propagateContainerDeactivationThenBindingAndPreDestroy(e,t,n);if((0,h.isPromise)(r))return this._handleDeactivationError(r,e.serviceIdentifier)}catch(t){if(t instanceof Error)throw new Error(c.ON_DEACTIVATION_ERROR((0,g.getServiceIdentifierAsString)(e.serviceIdentifier),t.message))}}async _handleDeactivationError(e,t){try{await e}catch(e){if(e instanceof Error)throw new Error(c.ON_DEACTIVATION_ERROR((0,g.getServiceIdentifierAsString)(t),e.message))}}_deactivateContainer(e,t){let n=t.next();for(;"function"==typeof n.value;){const r=n.value(e);if((0,h.isPromise)(r))return r.then(async()=>this._deactivateContainerAsync(e,t));n=t.next()}}async _deactivateContainerAsync(e,t){let n=t.next();for(;"function"==typeof n.value;)await n.value(e),n=t.next()}_getContainerModuleHelpersFactory(){const e=e=>t=>{const n=this._buildBinding(t);return n.moduleId=e,this._bind(n)},t=()=>e=>{this.unbind(e)},n=()=>async e=>this.unbindAsync(e),r=()=>e=>this.isBound(e),i=t=>{const n=e(t);return e=>(this.unbind(e),n(e))},o=e=>(t,n)=>{this._moduleActivationStore.addActivation(e,t,n),this.onActivation(t,n)},s=e=>(t,n)=>{this._moduleActivationStore.addDeactivation(e,t,n),this.onDeactivation(t,n)};return a=>({bindFunction:e(a),isboundFunction:r(),onActivationFunction:o(a),onDeactivationFunction:s(a),rebindFunction:i(a),unbindAsyncFunction:n(),unbindFunction:t()})}_bind(e){return this._bindingDictionary.add(e.serviceIdentifier,e),new m.BindingToSyntax(e)}_buildBinding(e){const t=this.options.defaultScope||u.BindingScopeEnum.Transient;return new a.Binding(e,t)}async _getAll(e){return Promise.all(this._get(e))}_get(e){const t={...e,contextInterceptor:e=>e,targetType:u.TargetTypeEnum.Variable};if(this._middleware){const e=this._middleware(t);if(null==e)throw new Error(c.INVALID_MIDDLEWARE_RETURN);return e}return this._planAndResolve()(t)}_getButThrowIfAsync(e){const t=this._get(e);if((0,h.isPromiseOrContainsPromise)(t))throw new Error(c.LAZY_IN_SYNC(e.serviceIdentifier));return t}_getAllArgs(e,t,n){return{avoidConstraints:!t?.enforceBindingConstraints,isMultiInject:!0,isOptional:n,serviceIdentifier:e}}_getNotAllArgs(e,t,n,r,i){return{avoidConstraints:!1,isMultiInject:t,isOptional:n,key:r,serviceIdentifier:e,value:i}}_getPlanMetadataFromNextArgs(e){const t={isMultiInject:e.isMultiInject};return void 0!==e.key&&(t.customTag={key:e.key,value:e.value}),!0===e.isOptional&&(t.isOptional=!0),t}_planAndResolve(){return e=>{let t=(0,p.plan)(this._metadataReader,this,e.targetType,e.serviceIdentifier,this._getPlanMetadataFromNextArgs(e),e.avoidConstraints);return t=e.contextInterceptor(t),(0,f.resolve)(t)}}_deactivateIfSingleton(e){if(e.activated)return(0,h.isPromise)(e.cache)?e.cache.then(t=>this._deactivate(e,t)):this._deactivate(e,e.cache)}_deactivateSingletons(e){for(const t of e){const e=this._deactivateIfSingleton(t);if((0,h.isPromise)(e))throw new Error(c.ASYNC_UNBIND_REQUIRED)}}async _deactivateSingletonsAsync(e){await Promise.all(e.map(async e=>this._deactivateIfSingleton(e)))}_propagateContainerDeactivationThenBindingAndPreDestroy(e,t,n){return this.parent?this._deactivate.bind(this.parent)(e,t):this._bindingDeactivationAndPreDestroy(e,t,n)}async _propagateContainerDeactivationThenBindingAndPreDestroyAsync(e,t,n){this.parent?await this._deactivate.bind(this.parent)(e,t):await this._bindingDeactivationAndPreDestroyAsync(e,t,n)}_removeServiceFromDictionary(e){try{this._bindingDictionary.remove(e)}catch(t){throw new Error(`${c.CANNOT_UNBIND} ${(0,g.getServiceIdentifierAsString)(e)}`)}}_bindingDeactivationAndPreDestroy(e,t,n){if("function"==typeof e.onDeactivation){const r=e.onDeactivation(t);if((0,h.isPromise)(r))return r.then(()=>this._preDestroy(n,t))}return this._preDestroy(n,t)}async _bindingDeactivationAndPreDestroyAsync(e,t,n){"function"==typeof e.onDeactivation&&await e.onDeactivation(t),await this._preDestroy(n,t)}}t.Container=x},72313:(e,t,n)=>{var r=n(70405);e.exports=function(e){var t=!1;return r(function(){t=!0}),function(n,i){t?e(n,i):r(function(){e(n,i)})}}},72392:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.config=t.$brand=t.ZodIssueCode=void 0,t.setErrorMap=function(e){s.config({customError:e})},t.getErrorMap=function(){return s.config().customError};const s=o(n(76601));t.ZodIssueCode={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};var a=n(76601);Object.defineProperty(t,"$brand",{enumerable:!0,get:function(){return a.$brand}}),Object.defineProperty(t,"config",{enumerable:!0,get:function(){return a.config}})},72505:e=>{e.exports=Object.keys||function(e){var t=[],n=Object.prototype.hasOwnProperty;for(var r in e)n.call(e,r)&&t.push(r);return t}},73093:(e,t,n)=>{"use strict";var r=n(94459);e.exports=function(e){return r(e)||0===e?e:e<0?-1:1}},73126:(e,t,n)=>{"use strict";var r=n(66743),i=n(69675),o=n(10076),s=n(13144);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new i("a function is required");return s(r,o,e)}},73178:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseStringDef=t.zodPatterns=void 0;const r=n(98950);let i;function o(e,t){return"escape"===t.patternStrategy?function(e){let t="";for(let n=0;n<e.length;n++)s.has(e[n])||(t+="\\"),t+=e[n];return t}(e):e}t.zodPatterns={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>(void 0===i&&(i=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),i),uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/},t.parseStringDef=function(e,n){const i={type:"string"};if(e.checks)for(const s of e.checks)switch(s.kind){case"min":(0,r.setResponseValueAndErrors)(i,"minLength","number"==typeof i.minLength?Math.max(i.minLength,s.value):s.value,s.message,n);break;case"max":(0,r.setResponseValueAndErrors)(i,"maxLength","number"==typeof i.maxLength?Math.min(i.maxLength,s.value):s.value,s.message,n);break;case"email":switch(n.emailStrategy){case"format:email":a(i,"email",s.message,n);break;case"format:idn-email":a(i,"idn-email",s.message,n);break;case"pattern:zod":c(i,t.zodPatterns.email,s.message,n)}break;case"url":a(i,"uri",s.message,n);break;case"uuid":a(i,"uuid",s.message,n);break;case"regex":c(i,s.regex,s.message,n);break;case"cuid":c(i,t.zodPatterns.cuid,s.message,n);break;case"cuid2":c(i,t.zodPatterns.cuid2,s.message,n);break;case"startsWith":c(i,RegExp(`^${o(s.value,n)}`),s.message,n);break;case"endsWith":c(i,RegExp(`${o(s.value,n)}$`),s.message,n);break;case"datetime":a(i,"date-time",s.message,n);break;case"date":a(i,"date",s.message,n);break;case"time":a(i,"time",s.message,n);break;case"duration":a(i,"duration",s.message,n);break;case"length":(0,r.setResponseValueAndErrors)(i,"minLength","number"==typeof i.minLength?Math.max(i.minLength,s.value):s.value,s.message,n),(0,r.setResponseValueAndErrors)(i,"maxLength","number"==typeof i.maxLength?Math.min(i.maxLength,s.value):s.value,s.message,n);break;case"includes":c(i,RegExp(o(s.value,n)),s.message,n);break;case"ip":"v6"!==s.version&&a(i,"ipv4",s.message,n),"v4"!==s.version&&a(i,"ipv6",s.message,n);break;case"base64url":c(i,t.zodPatterns.base64url,s.message,n);break;case"jwt":c(i,t.zodPatterns.jwt,s.message,n);break;case"cidr":"v6"!==s.version&&c(i,t.zodPatterns.ipv4Cidr,s.message,n),"v4"!==s.version&&c(i,t.zodPatterns.ipv6Cidr,s.message,n);break;case"emoji":c(i,t.zodPatterns.emoji(),s.message,n);break;case"ulid":c(i,t.zodPatterns.ulid,s.message,n);break;case"base64":switch(n.base64Strategy){case"format:binary":a(i,"binary",s.message,n);break;case"contentEncoding:base64":(0,r.setResponseValueAndErrors)(i,"contentEncoding","base64",s.message,n);break;case"pattern:zod":c(i,t.zodPatterns.base64,s.message,n)}break;case"nanoid":c(i,t.zodPatterns.nanoid,s.message,n);case"toLowerCase":case"toUpperCase":case"trim":break;default:(()=>{})()}return i};const s=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function a(e,t,n,i){e.format||e.anyOf?.some(e=>e.format)?(e.anyOf||(e.anyOf=[]),e.format&&(e.anyOf.push({format:e.format,...e.errorMessage&&i.errorMessages&&{errorMessage:{format:e.errorMessage.format}}}),delete e.format,e.errorMessage&&(delete e.errorMessage.format,0===Object.keys(e.errorMessage).length&&delete e.errorMessage)),e.anyOf.push({format:t,...n&&i.errorMessages&&{errorMessage:{format:n}}})):(0,r.setResponseValueAndErrors)(e,"format",t,n,i)}function c(e,t,n,i){e.pattern||e.allOf?.some(e=>e.pattern)?(e.allOf||(e.allOf=[]),e.pattern&&(e.allOf.push({pattern:e.pattern,...e.errorMessage&&i.errorMessages&&{errorMessage:{pattern:e.errorMessage.pattern}}}),delete e.pattern,e.errorMessage&&(delete e.errorMessage.pattern,0===Object.keys(e.errorMessage).length&&delete e.errorMessage)),e.allOf.push({pattern:u(t,i),...n&&i.errorMessages&&{errorMessage:{pattern:n}}})):(0,r.setResponseValueAndErrors)(e,"pattern",u(t,i),n,i)}function u(e,t){if(!t.applyRegexFlags||!e.flags)return e.source;const n=e.flags.includes("i"),r=e.flags.includes("m"),i=e.flags.includes("s"),o=n?e.source.toLowerCase():e.source;let s="",a=!1,c=!1,u=!1;for(let e=0;e<o.length;e++)if(a)s+=o[e],a=!1;else{if(n)if(c){if(o[e].match(/[a-z]/)){u?(s+=o[e],s+=`${o[e-2]}-${o[e]}`.toUpperCase(),u=!1):"-"===o[e+1]&&o[e+2]?.match(/[a-z]/)?(s+=o[e],u=!0):s+=`${o[e]}${o[e].toUpperCase()}`;continue}}else if(o[e].match(/[a-z]/)){s+=`[${o[e]}${o[e].toUpperCase()}]`;continue}if(r){if("^"===o[e]){s+="(^|(?<=[\r\n]))";continue}if("$"===o[e]){s+="($|(?=[\r\n]))";continue}}i&&"."===o[e]?s+=c?`${o[e]}\r\n`:`[${o[e]}\r\n]`:(s+=o[e],"\\"===o[e]?a=!0:c&&"]"===o[e]?c=!1:c||"["!==o[e]||(c=!0))}try{new RegExp(s)}catch{return console.warn(`Could not convert regex pattern at ${t.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),e.source}return s}},73524:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseDef=void 0;const r=n(92626),i=n(32465),o=n(86379),s=n(62909);t.parseDef=function e(t,n,o=!1){const s=n.seen.get(t);if(n.override){const e=n.override?.(t,n,s,o);if(e!==r.ignoreOverride)return e}if(s&&!o){const e=a(s,n);if(void 0!==e)return e}const u={def:t,path:n.currentPath,jsonSchema:void 0};n.seen.set(t,u);const l=(0,i.selectParser)(t,t.typeName,n),d="function"==typeof l?e(l(),n):l;if(d&&c(t,n,d),n.postProcess){const e=n.postProcess(d,t,n);return u.jsonSchema=d,e}return u.jsonSchema=d,d};const a=(e,t)=>{switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:(0,o.getRelativePath)(t.currentPath,e.path)};case"none":case"seen":return e.path.length<t.currentPath.length&&e.path.every((e,n)=>t.currentPath[n]===e)?(console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`),(0,s.parseAnyDef)(t)):"seen"===t.$refStrategy?(0,s.parseAnyDef)(t):void 0}},c=(e,t,n)=>(e.description&&(n.description=e.description,t.markdownDescription&&(n.markdownDescription=e.description)),n)},73934:function(e,t,n){"use strict";var r,i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),s=0;s<n.length;s++)"default"!==n[s]&&i(t,e,n[s]);return o(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.getBindingDictionary=_,t.plan=function(e,t,n,r,i,o=!1){const s=new m.Context(t),c=function(e,t,n){const r=x(t,n),i=(0,a.getClassElementMetadataFromLegacyMetadata)(r);if(i.kind===a.ClassElementMetadataKind.unmanaged)throw new Error("Unexpected metadata when creating target");return new a.LegacyTargetImpl("",i,e)}(n,r,i);try{return w(e,o,r,s,null,c),s}catch(e){throw(0,p.isStackOverflowException)(e)&&(0,f.circularDependencyToException)(s.plan.rootRequest),e}},t.createMockRequest=function(e,t,n){const r=x(t,n),i=(0,a.getClassElementMetadataFromLegacyMetadata)(r);if(i.kind===a.ClassElementMetadataKind.unmanaged)throw new Error("Unexpected metadata when creating target");const o=new a.LegacyTargetImpl("",i,"Variable"),s=new m.Context(e);return new y.Request(t,s,null,[],o)};const a=n(69687),c=n(6736),u=s(n(35007)),l=n(9117),d=s(n(19466)),p=n(12672),f=n(56272),m=n(18721),h=n(4045),v=n(91799),g=n(61823),y=n(21479);function _(e){return e._bindingDictionary}function b(e,t,n,r,i){let o=S(n.container,i.serviceIdentifier),s=[];return o.length===c.BindingCount.NoBindingsAvailable&&!0===n.container.options.autoBindInjectable&&"function"==typeof i.serviceIdentifier&&e.getConstructorMetadata(i.serviceIdentifier).compilerGeneratedMetadata&&(n.container.bind(i.serviceIdentifier).toSelf(),o=S(n.container,i.serviceIdentifier)),s=t?o:o.filter(e=>{const t=new y.Request(e.serviceIdentifier,n,r,e,i);return e.constraint(t)}),function(e,t,n,r,i){switch(t.length){case c.BindingCount.NoBindingsAvailable:if(r.isOptional())return t;{const t=(0,f.getServiceIdentifierAsString)(e);let o=u.NOT_REGISTERED;throw o+=(0,f.listMetadataForTarget)(t,r),o+=(0,f.listRegisteredBindingsForServiceIdentifier)(i,t,S),null!==n&&(o+=`\n${u.TRYING_TO_RESOLVE_BINDINGS((0,f.getServiceIdentifierAsString)(n.serviceIdentifier))}`),new Error(o)}case c.BindingCount.OnlyOneBindingAvailable:return t;case c.BindingCount.MultipleBindingsAvailable:default:if(r.isArray())return t;{const t=(0,f.getServiceIdentifierAsString)(e);let n=`${u.AMBIGUOUS_MATCH} ${t}`;throw n+=(0,f.listRegisteredBindingsForServiceIdentifier)(i,t,S),new Error(n)}}}(i.serviceIdentifier,s,r,i,n.container),s}function x(e,t){const n=t.isMultiInject?d.MULTI_INJECT_TAG:d.INJECT_TAG,r=[new h.Metadata(n,e)];return void 0!==t.customTag&&r.push(new h.Metadata(t.customTag.key,t.customTag.value)),!0===t.isOptional&&r.push(new h.Metadata(d.OPTIONAL_TAG,!0)),r}function w(e,t,n,r,i,o){let s,a;if(null===i){s=b(e,t,r,null,o),a=new y.Request(n,r,null,s,o);const i=new v.Plan(r,a);r.addPlan(i)}else s=b(e,t,r,i,o),a=i.addChildRequest(o.serviceIdentifier,s,o);s.forEach(t=>{let n=null;if(o.isArray())n=a.addChildRequest(t.serviceIdentifier,t,o);else{if(null!==t.cache)return;n=a}if(t.type===l.BindingTypeEnum.Instance&&null!==t.implementationType){const i=(0,g.getDependencies)(e,t.implementationType);if(!0!==r.container.options.skipBaseClassChecks){const n=(0,g.getBaseClassDependencyCount)(e,t.implementationType);if(i.length<n){const e=u.ARGUMENTS_LENGTH_MISMATCH((0,g.getFunctionName)(t.implementationType));throw new Error(e)}}i.forEach(t=>{w(e,!1,t.serviceIdentifier,r,n,t)})}})}function S(e,t){let n=[];const r=_(e);return r.hasKey(t)?n=r.get(t):null!==e.parent&&(n=S(e.parent,t)),n}},74230:e=>{"use strict";const t=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];function n(e,t,n){void 0===e[t]?e[t]=[n]:e[t].push(n)}e.exports={format:function(e){return Object.keys(e).map(t=>{let n=e[t];return Array.isArray(n)||(n=[n]),n.map(e=>[t].concat(Object.keys(e).map(t=>{let n=e[t];return Array.isArray(n)||(n=[n]),n.map(e=>!0===e?t:`${t}=${e}`).join("; ")})).join("; ")).join(", ")}).join(", ")},parse:function(e){const r=Object.create(null);if(void 0===e||""===e)return r;let i,o,s=Object.create(null),a=!1,c=!1,u=!1,l=-1,d=-1,p=0;for(;p<e.length;p++){const f=e.charCodeAt(p);if(void 0===i)if(-1===d&&1===t[f])-1===l&&(l=p);else if(32===f||9===f)-1===d&&-1!==l&&(d=p);else{if(59!==f&&44!==f)throw new SyntaxError(`Unexpected character at index ${p}`);{if(-1===l)throw new SyntaxError(`Unexpected character at index ${p}`);-1===d&&(d=p);const t=e.slice(l,d);44===f?(n(r,t,s),s=Object.create(null)):i=t,l=d=-1}}else if(void 0===o)if(-1===d&&1===t[f])-1===l&&(l=p);else if(32===f||9===f)-1===d&&-1!==l&&(d=p);else if(59===f||44===f){if(-1===l)throw new SyntaxError(`Unexpected character at index ${p}`);-1===d&&(d=p),n(s,e.slice(l,d),!0),44===f&&(n(r,i,s),s=Object.create(null),i=void 0),l=d=-1}else{if(61!==f||-1===l||-1!==d)throw new SyntaxError(`Unexpected character at index ${p}`);o=e.slice(l,p),l=d=-1}else if(c){if(1!==t[f])throw new SyntaxError(`Unexpected character at index ${p}`);-1===l?l=p:a||(a=!0),c=!1}else if(u)if(1===t[f])-1===l&&(l=p);else if(34===f&&-1!==l)u=!1,d=p;else{if(92!==f)throw new SyntaxError(`Unexpected character at index ${p}`);c=!0}else if(34===f&&61===e.charCodeAt(p-1))u=!0;else if(-1===d&&1===t[f])-1===l&&(l=p);else if(-1===l||32!==f&&9!==f){if(59!==f&&44!==f)throw new SyntaxError(`Unexpected character at index ${p}`);{if(-1===l)throw new SyntaxError(`Unexpected character at index ${p}`);-1===d&&(d=p);let t=e.slice(l,d);a&&(t=t.replace(/\\/g,""),a=!1),n(s,o,t),44===f&&(n(r,i,s),s=Object.create(null),i=void 0),o=void 0,l=d=-1}}else-1===d&&(d=p)}if(-1===l||u)throw new SyntaxError("Unexpected end of input");-1===d&&(d=p);const f=e.slice(l,d);return void 0===i?n(r,f,s):(void 0===o?n(s,f,!0):n(s,o,a?f.replace(/\\/g,""):f),n(r,i,s)),r}}},74555:e=>{function t(e){"function"==typeof this.jobs[e]&&this.jobs[e]()}e.exports=function(e){Object.keys(e.jobs).forEach(t.bind(e)),e.jobs={}}},74745:e=>{e.exports=function(e,t,n){return e.on(t,n),{destroy:function(){e.removeListener(t,n)}}}},75061:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateName=function(e,t){if("string"!=typeof e||0===e.trim().length)return(0,i.failure)("invalid_input",`'${t}' must be a non empty string.`);const n=e.trim();return n.length>s?(0,i.failure)("invalid_input",`'${t}' must not be longer than ${s} characters.`):o.test(n)||n.includes("..")?(0,i.failure)("invalid_input",`'${t}' must not contain path separators or any of \\ / : * ? " < > |.`,"Use a plain file name like 'MyScript'."):n.startsWith(".")||n.endsWith(".")||n.endsWith(" ")?(0,i.failure)("invalid_input",`'${t}' must not start with a dot and must not end with a dot or a space.`):(0,i.success)(n)},t.toScriptId=function(e,t="scriptId"){if("string"!=typeof e||0===e.trim().length)return(0,i.failure)("invalid_input",`'${t}' must be a non empty string.`,"Use iobroker_get_scripts to look up script ids.");const n=e.trim();if(!r.ScriptId.isValid(n))return(0,i.failure)("invalid_input",`'${t}' must be a full ioBroker script id starting with '${r.ScriptId.prefix}.', but was '${n}'.`,"Use iobroker_get_scripts to look up script ids.");try{return(0,i.success)(new r.ScriptId(n))}catch(e){return(0,i.failure)("invalid_input",`'${t}' is not a valid script id: ${a(e)}`)}},t.toDirectoryId=function(e,t="directoryId"){if("string"!=typeof e||0===e.trim().length)return(0,i.failure)("invalid_input",`'${t}' must be a non empty string.`,"Use iobroker_get_scripts to look up directory ids.");const n=e.trim();return r.ScriptId.isDirectoryId(n)?(0,i.success)(n):(0,i.failure)("invalid_input",`'${t}' must be a directory id like '${r.ScriptId.rootId}' or '${r.ScriptId.rootId}.common', but was '${n}'.`,"Use iobroker_get_scripts to look up directory ids.")},t.toBoundedInteger=function(e,t,n,r){return"number"==typeof e&&Number.isFinite(e)?Math.min(r,Math.max(n,Math.floor(e))):t},t.toMessage=a;const r=n(11633),i=n(98297),o=/[\\/:*?"<>|]/,s=120;function a(e){return e instanceof Error?e.message:`${e}`}},75528:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContainerSnapshot=void 0;class n{bindings;activations;deactivations;middleware;moduleActivationStore;static of(e,t,r,i,o){const s=new n;return s.bindings=e,s.middleware=t,s.deactivations=i,s.activations=r,s.moduleActivationStore=o,s}}t.ContainerSnapshot=n},75649:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.deleteDirectory=function(e,t){return r(this,void 0,void 0,function*(){const n=(0,c.toDirectoryId)(t.directoryId);if(!n.ok)return n;const r=n.data;if(r===s.ScriptId.rootId)return(0,i.failure)("invalid_input","The root directory cannot be deleted.","Delete or move the scripts and directories inside it instead.");if(r===a.default.skriptIds.common||r===a.default.skriptIds.global)return(0,i.failure)("invalid_input",`The directory '${r}' is needed by ioBroker and cannot be deleted.`,"Delete or move the scripts and directories inside it instead.");const u=(0,o.ensureRemoteConnected)(e);if(u)return{ok:!1,error:u};if(!(0,o.findDirectory)(e,r))return(0,i.failure)("not_found",`The directory '${r}' is not known to the ioBroker server.`,"Use iobroker_get_scripts to look up available directory ids.");const l=function(e,t){const n=`${t}.`.toLowerCase(),r=e.scripts.getAllScripts().filter(e=>(0,o.scriptIdOf)(e).toLowerCase().startsWith(n));if(r.length>0){const e=r.slice(0,5).map(o.scriptIdOf).join(", ");return(0,i.failure)("invalid_input",`The directory '${t}' is not empty, it still contains the scripts ${e}.`,"Delete or move the scripts first, then retry. Use iobroker_get_scripts to list them.")}const s=e.scripts.getAllDirectories().filter(e=>`${e._id}`.toLowerCase().startsWith(n));if(s.length>0){const e=s.slice(0,5).map(e=>`${e._id}`).join(", ");return(0,i.failure)("invalid_input",`The directory '${t}' is not empty, it still contains the directories ${e}.`,"Delete or move the subdirectories first, then retry. Use iobroker_get_scripts to list them.")}}(e,r);if(l)return l;try{yield e.directories.deleteDirectory(new s.ScriptId(r))}catch(e){return{ok:!1,error:{code:"server_error",message:`Could not remove the directory '${r}' from the ioBroker server: ${(0,c.toMessage)(e)}`,hint:"Check the ioBroker connection and the permissions of the configured user, then retry."}}}return yield(0,o.refreshScriptInCache)(e,new s.ScriptId(r)),(0,i.success)({directoryId:r})})};const i=n(49402),o=n(33510),s=n(11633),a=n(9913),c=n(75061)},75653:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(28651),i=n(92034);t.default=(e,t)=>{let n;switch(e.code){case r.ZodIssueCode.invalid_type:n=e.received===i.ZodParsedType.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case r.ZodIssueCode.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,i.util.jsonStringifyReplacer)}`;break;case r.ZodIssueCode.unrecognized_keys:n=`Unrecognized key(s) in object: ${i.util.joinValues(e.keys,", ")}`;break;case r.ZodIssueCode.invalid_union:n="Invalid input";break;case r.ZodIssueCode.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${i.util.joinValues(e.options)}`;break;case r.ZodIssueCode.invalid_enum_value:n=`Invalid enum value. Expected ${i.util.joinValues(e.options)}, received '${e.received}'`;break;case r.ZodIssueCode.invalid_arguments:n="Invalid function arguments";break;case r.ZodIssueCode.invalid_return_type:n="Invalid function return type";break;case r.ZodIssueCode.invalid_date:n="Invalid date";break;case r.ZodIssueCode.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:i.util.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case r.ZodIssueCode.too_small:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type||"bigint"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case r.ZodIssueCode.too_big:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case r.ZodIssueCode.custom:n="Invalid input";break;case r.ZodIssueCode.invalid_intersection_types:n="Intersection results could not be merged";break;case r.ZodIssueCode.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case r.ZodIssueCode.not_finite:n="Number must be finite";break;default:n=t.defaultError,i.util.assertNever(e)}return{message:n}}},75795:(e,t,n)=>{"use strict";var r=n(6549);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},75880:e=>{"use strict";e.exports=Math.pow},75911:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{localeError:a()}};const s=o(n(90523)),a=()=>{const e={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"}};function t(t){return e[t]??null}const n={regex:"вхідні дані",email:"адреса електронної пошти",url:"URL",emoji:"емодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"дата та час ISO",date:"дата ISO",time:"час ISO",duration:"тривалість ISO",ipv4:"адреса IPv4",ipv6:"адреса IPv6",cidrv4:"діапазон IPv4",cidrv6:"діапазон IPv6",base64:"рядок у кодуванні base64",base64url:"рядок у кодуванні base64url",json_string:"рядок JSON",e164:"номер E.164",jwt:"JWT",template_literal:"вхідні дані"};return e=>{switch(e.code){case"invalid_type":return`Неправильні вхідні дані: очікується ${e.expected}, отримано ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"число";case"object":if(Array.isArray(e))return"масив";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Неправильні вхідні дані: очікується ${s.stringifyPrimitive(e.values[0])}`:`Неправильна опція: очікується одне з ${s.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`Занадто велике: очікується, що ${e.origin??"значення"} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??"елементів"}`:`Занадто велике: очікується, що ${e.origin??"значення"} буде ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`Занадто мале: очікується, що ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Занадто мале: очікується, що ${e.origin} буде ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Неправильний рядок: повинен починатися з "${t.prefix}"`:"ends_with"===t.format?`Неправильний рядок: повинен закінчуватися на "${t.suffix}"`:"includes"===t.format?`Неправильний рядок: повинен містити "${t.includes}"`:"regex"===t.format?`Неправильний рядок: повинен відповідати шаблону ${t.pattern}`:`Неправильний ${n[t.format]??e.format}`}case"not_multiple_of":return`Неправильне число: повинно бути кратним ${e.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${e.keys.length>1?"і":""}: ${s.joinValues(e.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${e.origin}`;case"invalid_union":default:return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${e.origin}`}}}},76020:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version={major:4,minor:0,patch:0}},76033:(e,t,n)=>{const r=n(52018),i=n(39023);t.init=function(e){e.inspectOpts={};const n=Object.keys(t.inspectOpts);for(let r=0;r<n.length;r++)e.inspectOpts[n[r]]=t.inspectOpts[n[r]]},t.log=function(...e){return process.stderr.write(i.formatWithOptions(t.inspectOpts,...e)+"\n")},t.formatArgs=function(n){const{namespace:r,useColors:i}=this;if(i){const t=this.color,i="[3"+(t<8?t:"8;5;"+t),o=` ${i};1m${r} `;n[0]=o+n[0].split("\n").join("\n"+o),n.push(i+"m+"+e.exports.humanize(this.diff)+"")}else n[0]=(t.inspectOpts.hideDate?"":(new Date).toISOString()+" ")+r+" "+n[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):r.isatty(process.stderr.fd)},t.destroy=i.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const e=n(27687);e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{const n=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase());let r=process.env[t];return r=!!/^(yes|on|true|enabled)$/i.test(r)||!/^(no|off|false|disabled)$/i.test(r)&&("null"===r?null:Number(r)),e[n]=r,e},{}),e.exports=n(40736)(t);const{formatters:o}=e.exports;o.o=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts).split("\n").map(e=>e.trim()).join(" ")},o.O=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts)}},76379:function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionServiceAdmin5=void 0;const a=n(52650),c=n(55853),u=n(34395),l=n(65532);let d=class{constructor(e,t){this.socketIoClient=e,this.statusBarService=t,this.isConnected=!1,this.connectionTimeout=1e4,this.connectionEventListeners=new Array,this.client=void 0,this.eventsRegisteredFor=void 0}registerConnectionEventListener(e){this.connectionEventListeners.includes(e)||this.connectionEventListeners.push(e)}connect(e,t,n){return s(this,void 0,void 0,function*(){yield this.connectInternal(e,t,n,{})})}connectWithToken(e,t,n,r,i){return s(this,void 0,void 0,function*(){const o={cookie:r,name:i};yield this.connectInternal(e,t,n,o)})}disconnect(){return s(this,void 0,void 0,function*(){var e;this.isConnected=!1,yield null===(e=this.client)||void 0===e?void 0:e.close()})}registerForLogs(e){return new Promise((t,n)=>{this.client&&this.isConnected&&(this.client.on("log",t=>{e(t)}),this.client.emit("requireLog",!0,e=>{e?n(new Error(`Could not register for logs: ${e}`)):t()}))})}unregisterForLogs(e){return new Promise((t,n)=>{this.client&&this.isConnected&&(this.client.off("log",e),this.client.emit("requireLog",!1,e=>{e?n(new Error(`Could not unregister for logs: ${e}`)):t()}))})}registerForObjectChange(e,t){return new Promise((n,r)=>{this.client&&this.isConnected?(this.client.on("objectChange",(n,r)=>{const i="^"+e.replace(".","\\.").replace(/\*/g,".*")+"$";new RegExp(i).test(n)&&t(n,r)}),this.client.emit("subscribeObjects",e,t=>{t?r(new Error(`Could not subscribe for pattern '${e}': ${t}`)):n()})):r(new Error(`Could not subscribe for pattern '${e}': Client is not connect`))})}unregisterObjectChange(e){return new Promise((t,n)=>{this.client&&this.isConnected?this.client.emit("unsubscribeObjects",e,r=>{r?n(new Error(`Could not unsubscribe for pattern '${e}': ${r}`)):t()}):t()})}getAllObjects(){return new Promise((e,t)=>{this.client&&this.isConnected?this.client.emit("getAllObjects",(n,r)=>{n?t(new Error(`Could not get all object: ${n}`)):e(r)}):t(new Error("Could not get all objects: Client is not connect"))})}getObject(e){return(0,l.withAckTimeout)(new Promise((t,n)=>{this.client&&this.isConnected?this.client.emit("getObject",e,(r,i)=>{r?n(new Error(`Could not get object with args '${e}': ${r}`)):t(i)}):n(new Error(`Could not get object with id '${e}': Client is not connect`))}),`getObject '${e}'`)}setObject(e,t){return(0,l.withAckTimeout)(new Promise((n,r)=>{this.client&&this.isConnected?this.client.emit("setObject",e,t,t=>{t?r(new Error(`Could not upload script with id '${e}': ${t}`)):n()}):r(new Error(`Cannot get object with id '${e}': Client is not connect`))}),`setObject '${e}'`)}deleteObject(e){return(0,l.withAckTimeout)(new Promise((t,n)=>{this.client&&this.isConnected?this.client.emit("delObject",e,r=>{r?n(new Error(`Could not delete object '${e}': ${r}`)):t()}):n(new Error(`Could not delete object '${e}': Client is not connected`))}),`delObject '${e}'`)}extendObject(e,t){return(0,l.withAckTimeout)(new Promise((n,r)=>{this.client&&this.isConnected?this.client.emit("extendObject",e,t,i=>{i?r(new Error(`Could not extend object '${e}' with '${JSON.stringify(t)}'`)):n()}):r(new Error(`Could not extend object '${e}': Client is not connected`))}),`extendObject '${e}'`)}getSystemObjectView(e,t,n){return(0,l.withAckTimeout)(new Promise((r,i)=>{this.client&&this.isConnected?this.client.emit("getObjectView","system",e,{startkey:t,endkey:`${n}香`},(o,s)=>{o&&i(new Error(`Error while retreiving object view: Type: ${e} | startKey: ${t} | endKey: ${n}`)),r(s.rows.map(e=>e.value))}):i(new Error(`Error while retreiving object view: Type: ${e} | startKey: ${t} | endKey: ${n}`))}),`getObjectView '${e}'`)}getState(e){return new Promise((t,n)=>{this.client&&this.isConnected?this.client.emit("getState",e,(r,i)=>{r?n(new Error(`Could not get state with id '${e}': ${r}`)):t(i)}):n(new Error(`Could not get state with id '${e}': Client is not connect`))})}getLogs(e,t){return new Promise((n,r)=>{const i=this.client;if(!i||!this.isConnected)return void r(new Error("Could not get logs: Client is not connected."));let o=!1;const s=setTimeout(()=>{o||(o=!0,r(new Error(`Could not get logs from host '${e}': The host did not answer within ${u.HOST_COMMAND_TIMEOUT_MS/1e3} seconds.`)))},u.HOST_COMMAND_TIMEOUT_MS),a=t=>{if(o)return;o=!0,clearTimeout(s);const i=(0,u.readLogLinesAnswer)(t);"error"in i?r(new Error(`Could not get logs from host '${e}': ${i.error}`)):n(i.lines)};try{i.emit("sendToHost",e.replace(/^system\.host\./,""),"getLogs",t,a)}catch(t){o=!0,clearTimeout(s),r(t instanceof Error?t:new Error(`Could not get logs from host '${e}': ${t}`))}})}registerSocketEvents(){this.client&&this.eventsRegisteredFor!==this.client&&(this.eventsRegisteredFor=this.client,this.client.on("connect",()=>{this.isConnected=!0,this.connectionEventListeners.forEach(e=>e.onConnected())}),this.client.on("reconnect",()=>{this.isConnected=!0,this.connectionEventListeners.forEach(e=>e.onConnected())}),this.client.on("disconnect",()=>{this.isConnected=!1,this.connectionEventListeners.forEach(e=>e.onDisconnected())}),this.client.on("reauthenticate",()=>{this.isConnected=!1,this.connectionEventListeners.forEach(e=>e.onReAuthenticate())}))}connectInternal(e,t,n,r){return s(this,void 0,void 0,function*(){const i=this.statusBarService.setStatusBarMessage(`$(sync~spin) Connecting to ioBroker on '${e}'`);this.client&&this.client.connected&&(yield this.client.close(),this.isConnected=!1),this.socketIoClient.autoReconnect=t,this.client=yield this.socketIoClient.connect(e.toString(),r,n);const o=this.client;return new Promise((t,n)=>{this.registerSocketEvents();const r=e=>{clearTimeout(u),o.off("connect",s),o.off("reconnect",a),o.off("error",c),e()},s=()=>r(()=>{this.isConnected=!0,i.dispose(),t()}),a=s,c=e=>r(()=>{i.dispose(),n(new Error(`The connection to ioBroker was not possible. Reason: ${e}`))}),u=setTimeout(()=>{this.isConnected||r(()=>{i.dispose(),n(new Error(`Could not connect to '${e}' after ${this.connectionTimeout/1e3} seconds.`))})},this.connectionTimeout);o.on("connect",s),o.on("reconnect",a),o.on("error",c)})})}};t.ConnectionServiceAdmin5=d,t.ConnectionServiceAdmin5=d=r([(0,a.injectable)(),o(0,(0,a.inject)(c.default.services.socketIoClient)),o(1,(0,a.inject)(c.default.services.statusBarService)),i("design:paramtypes",[Object,Object])],d)},76475:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.EnvLoginCredentialsService=void 0,t.EnvLoginCredentialsService=class{constructor(e){this.password=e}getPassword(){return n(this,void 0,void 0,function*(){return this.password})}updatePasswordFromUser(){return n(this,void 0,void 0,function*(){})}getAccessToken(){return n(this,void 0,void 0,function*(){return this.accessToken})}updateAccessToken(e){return n(this,void 0,void 0,function*(){this.accessToken=e})}isValidAccessToken(e,t){return!!(e&&e.token&&e.expires instanceof Date)&&!Number.isNaN(e.expires.getTime())&&t<e.expires}deleteCredentials(){return n(this,void 0,void 0,function*(){this.accessToken=void 0})}}},76601:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)},s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.JSONSchema=t.locales=t.regexes=t.util=void 0,o(n(98706),t),o(n(64084),t),o(n(24362),t),o(n(95341),t),o(n(32564),t),o(n(76020),t),t.util=s(n(90523)),t.regexes=s(n(91988)),t.locales=s(n(45167)),o(n(91114),t),o(n(87319),t),o(n(50075),t),o(n(52405),t),o(n(70485),t),t.JSONSchema=s(n(8359))},76750:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseEnumDef=void 0,t.parseEnumDef=function(e){return{type:"string",enum:Array.from(e.values)}}},76972:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:n(51980).validateUnion,error:{message:"must match a schema in anyOf"}};t.default=r},76982:e=>{"use strict";e.exports=require("crypto")},77344:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendSubschemaMode=t.extendSubschemaData=t.getSubschema=void 0;const r=n(66596),i=n(99048);t.getSubschema=function(e,{keyword:t,schemaProp:n,schema:o,schemaPath:s,errSchemaPath:a,topSchemaRef:c}){if(void 0!==t&&void 0!==o)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==t){const o=e.schema[t];return void 0===n?{schema:o,schemaPath:r._`${e.schemaPath}${(0,r.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:o[n],schemaPath:r._`${e.schemaPath}${(0,r.getProperty)(t)}${(0,r.getProperty)(n)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,i.escapeFragment)(n)}`}}if(void 0!==o){if(void 0===s||void 0===a||void 0===c)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:o,schemaPath:s,topSchemaRef:c,errSchemaPath:a}}throw new Error('either "keyword" or "schema" must be passed')},t.extendSubschemaData=function(e,t,{dataProp:n,dataPropType:o,data:s,dataTypes:a,propertyName:c}){if(void 0!==s&&void 0!==n)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:u}=t;if(void 0!==n){const{errorPath:s,dataPathArr:a,opts:c}=t;l(u.let("data",r._`${t.data}${(0,r.getProperty)(n)}`,!0)),e.errorPath=r.str`${s}${(0,i.getErrorPath)(n,o,c.jsPropertySyntax)}`,e.parentDataProperty=r._`${n}`,e.dataPathArr=[...a,e.parentDataProperty]}function l(n){e.data=n,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,n]}void 0!==s&&(l(s instanceof r.Name?s:u.let("data",s,!0)),void 0!==c&&(e.propertyName=c)),a&&(e.dataTypes=a)},t.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:n,compositeRule:r,createErrors:i,allErrors:o}){void 0!==r&&(e.compositeRule=r),void 0!==i&&(e.createErrors=i),void 0!==o&&(e.allErrors=o),e.jtdDiscriminator=t,e.jtdMetadata=n}},77426:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLegacyMetadata=function(e){return e.kind===i.ClassElementMetadataKind.unmanaged?[{key:r.UNMANAGED_TAG,value:!0}]:function(e){const t=[o(e)];void 0!==e.name&&t.push({key:r.NAMED_TAG,value:e.name}),e.optional&&t.push({key:r.OPTIONAL_TAG,value:!0});for(const[n,r]of e.tags)t.push({key:n,value:r});return void 0!==e.targetName&&t.push({key:r.NAME_TAG,value:e.targetName}),t}(e)};const r=n(83313),i=n(86277);function o(e){let t;switch(e.kind){case i.ClassElementMetadataKind.multipleInjection:t={key:r.MULTI_INJECT_TAG,value:e.value};break;case i.ClassElementMetadataKind.singleInjection:t={key:r.INJECT_TAG,value:e.value}}return t}},77507:(e,t,n)=>{var r;e.exports=function(){if(!r){try{r=n(45753)("follow-redirects")}catch(e){}"function"!=typeof r&&(r=function(){})}r.apply(null,arguments)}},77533:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Protocol=t.DEFAULT_REQUEST_TIMEOUT_MSEC=void 0,t.mergeCapabilities=function(e,t){const n={...e};for(const e in t){const r=e,i=t[r];if(void 0===i)continue;const o=n[r];a(o)&&a(i)?n[r]={...o,...i}:n[r]=i}return n};const r=n(49029),i=n(1294),o=n(58847),s=n(17472);function a(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)}t.DEFAULT_REQUEST_TIMEOUT_MSEC=6e4,t.Protocol=class{constructor(e){this._options=e,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(i.CancelledNotificationSchema,e=>{this._oncancel(e)}),this.setNotificationHandler(i.ProgressNotificationSchema,e=>{this._onprogress(e)}),this.setRequestHandler(i.PingRequestSchema,e=>({})),this._taskStore=e?.taskStore,this._taskMessageQueue=e?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(i.GetTaskRequestSchema,async(e,t)=>{const n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new i.McpError(i.ErrorCode.InvalidParams,"Failed to retrieve task: Task not found");return{...n}}),this.setRequestHandler(i.GetTaskPayloadRequestSchema,async(e,t)=>{const n=async()=>{const r=e.params.taskId;if(!await this._taskStore.getTask(r,t.sessionId))throw new i.McpError(i.ErrorCode.InvalidParams,`Task not found: ${r}`);if(this._taskMessageQueue){let e;for(;e=await this._taskMessageQueue.dequeue(r,t.sessionId);){if("response"===e.type||"error"===e.type){const t=e.message,n=t.id,r=this._requestResolvers.get(n);if(r)if(this._requestResolvers.delete(n),"response"===e.type)r(t);else{const e=t;r(new i.McpError(e.error.code,e.error.message,e.error.data))}else{const t="response"===e.type?"Response":"Error";this._onerror(new Error(`${t} handler missing for request ${n}`))}continue}await(this._transport?.send(e.message,{relatedRequestId:t.requestId}))}}const s=await this._taskStore.getTask(r,t.sessionId);if(!s)throw new i.McpError(i.ErrorCode.InvalidParams,`Task not found: ${r}`);if(!(0,o.isTerminal)(s.status))return await this._waitForTaskUpdate(r,t.signal,t.sessionId),await n();if((0,o.isTerminal)(s.status)){const e=await this._taskStore.getTaskResult(r,t.sessionId);return this._clearTaskQueue(r,t.sessionId),{...e,_meta:{...e._meta,[i.RELATED_TASK_META_KEY]:{taskId:r}}}}return await n()};return await n()}),this.setRequestHandler(i.ListTasksRequestSchema,async(e,t)=>{try{const{tasks:n,nextCursor:r}=await this._taskStore.listTasks(e.params?.cursor,t.sessionId);return{tasks:n,nextCursor:r,_meta:{}}}catch(e){throw new i.McpError(i.ErrorCode.InvalidParams,`Failed to list tasks: ${e instanceof Error?e.message:String(e)}`)}}),this.setRequestHandler(i.CancelTaskRequestSchema,async(e,t)=>{try{const n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new i.McpError(i.ErrorCode.InvalidParams,`Task not found: ${e.params.taskId}`);if((0,o.isTerminal)(n.status))throw new i.McpError(i.ErrorCode.InvalidParams,`Cannot cancel task in terminal status: ${n.status}`);await this._taskStore.updateTaskStatus(e.params.taskId,"cancelled","Client cancelled task execution.",t.sessionId),this._clearTaskQueue(e.params.taskId,t.sessionId);const r=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!r)throw new i.McpError(i.ErrorCode.InvalidParams,`Task not found after cancellation: ${e.params.taskId}`);return{_meta:{},...r}}catch(e){if(e instanceof i.McpError)throw e;throw new i.McpError(i.ErrorCode.InvalidRequest,`Failed to cancel task: ${e instanceof Error?e.message:String(e)}`)}}))}async _oncancel(e){if(!e.params.requestId)return;const t=this._requestHandlerAbortControllers.get(e.params.requestId);t?.abort(e.params.reason)}_setupTimeout(e,t,n,r,i=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(r,t),startTime:Date.now(),timeout:t,maxTotalTimeout:n,resetTimeoutOnProgress:i,onTimeout:r})}_resetTimeout(e){const t=this._timeoutInfo.get(e);if(!t)return!1;const n=Date.now()-t.startTime;if(t.maxTotalTimeout&&n>=t.maxTotalTimeout)throw this._timeoutInfo.delete(e),i.McpError.fromError(i.ErrorCode.RequestTimeout,"Maximum total timeout exceeded",{maxTotalTimeout:t.maxTotalTimeout,totalElapsed:n});return clearTimeout(t.timeoutId),t.timeoutId=setTimeout(t.onTimeout,t.timeout),!0}_cleanupTimeout(e){const t=this._timeoutInfo.get(e);t&&(clearTimeout(t.timeoutId),this._timeoutInfo.delete(e))}async connect(e){if(this._transport)throw new Error("Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.");this._transport=e;const t=this.transport?.onclose;this._transport.onclose=()=>{t?.(),this._onclose()};const n=this.transport?.onerror;this._transport.onerror=e=>{n?.(e),this._onerror(e)};const r=this._transport?.onmessage;this._transport.onmessage=(e,t)=>{r?.(e,t),(0,i.isJSONRPCResultResponse)(e)||(0,i.isJSONRPCErrorResponse)(e)?this._onresponse(e):(0,i.isJSONRPCRequest)(e)?this._onrequest(e,t):(0,i.isJSONRPCNotification)(e)?this._onnotification(e):this._onerror(new Error(`Unknown message type: ${JSON.stringify(e)}`))},await this._transport.start()}_onclose(){const e=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(const e of this._timeoutInfo.values())clearTimeout(e.timeoutId);this._timeoutInfo.clear();for(const e of this._requestHandlerAbortControllers.values())e.abort();this._requestHandlerAbortControllers.clear();const t=i.McpError.fromError(i.ErrorCode.ConnectionClosed,"Connection closed");this._transport=void 0,this.onclose?.();for(const n of e.values())n(t)}_onerror(e){this.onerror?.(e)}_onnotification(e){const t=this._notificationHandlers.get(e.method)??this.fallbackNotificationHandler;void 0!==t&&Promise.resolve().then(()=>t(e)).catch(e=>this._onerror(new Error(`Uncaught error in notification handler: ${e}`)))}_onrequest(e,t){const n=this._requestHandlers.get(e.method)??this.fallbackRequestHandler,r=this._transport,o=e.params?._meta?.[i.RELATED_TASK_META_KEY]?.taskId,s=r?.sessionId,a=this._taskStore;let c,u=!0;if(o&&a&&this._taskMessageQueue&&void 0!==s&&(u=!1,c=(async()=>{if(!await a.getTask(o,s))throw new i.McpError(i.ErrorCode.InvalidParams,`Task not found: ${o}`);u=!0})()),void 0===n){const t={jsonrpc:"2.0",id:e.id,error:{code:i.ErrorCode.MethodNotFound,message:"Method not found"}};if(o&&c){const e={type:"error",message:t,timestamp:Date.now()};c.then(()=>this._enqueueTaskMessage(o,e,s),()=>r?.send(t)).catch(e=>this._onerror(new Error(`Failed to send an error response: ${e}`)))}else o&&this._taskMessageQueue?this._enqueueTaskMessage(o,{type:"error",message:t,timestamp:Date.now()},r?.sessionId).catch(e=>this._onerror(new Error(`Failed to enqueue error response: ${e}`))):r?.send(t).catch(e=>this._onerror(new Error(`Failed to send an error response: ${e}`)));return}const l=new AbortController;this._requestHandlerAbortControllers.set(e.id,l);const d=(0,i.isTaskAugmentedRequestParams)(e.params)?e.params.task:void 0,p=this._taskStore?this.requestTaskStore(e,r?.sessionId):void 0,f={signal:l.signal,sessionId:r?.sessionId,_meta:e.params?._meta,sendNotification:async t=>{if(l.signal.aborted)return;const n={relatedRequestId:e.id};o&&(n.relatedTask={taskId:o}),await this.notification(t,n)},sendRequest:async(t,n,r)=>{if(l.signal.aborted)throw new i.McpError(i.ErrorCode.ConnectionClosed,"Request was cancelled");const s={...r,relatedRequestId:e.id};o&&!s.relatedTask&&(s.relatedTask={taskId:o});const a=s.relatedTask?.taskId??o;return a&&p&&await p.updateTaskStatus(a,"input_required"),await this.request(t,n,s)},authInfo:t?.authInfo,requestId:e.id,requestInfo:t?.requestInfo,taskId:o,taskStore:p,taskRequestedTtl:d?.ttl,closeSSEStream:t?.closeSSEStream,closeStandaloneSSEStream:t?.closeStandaloneSSEStream};(c??Promise.resolve()).then(()=>{if(c&&l.signal.aborted)throw new i.McpError(i.ErrorCode.ConnectionClosed,"Request was cancelled");d&&this.assertTaskHandlerCapability(e.method)}).then(()=>n(e,f)).then(async t=>{if(l.signal.aborted)return;const n={result:t,jsonrpc:"2.0",id:e.id};o&&this._taskMessageQueue?await this._enqueueTaskMessage(o,{type:"response",message:n,timestamp:Date.now()},r?.sessionId):await(r?.send(n))},async t=>{if(l.signal.aborted)return;const n={jsonrpc:"2.0",id:e.id,error:{code:Number.isSafeInteger(t.code)?t.code:i.ErrorCode.InternalError,message:t.message??"Internal error",...void 0!==t.data&&{data:t.data}}};o&&this._taskMessageQueue&&u?await this._enqueueTaskMessage(o,{type:"error",message:n,timestamp:Date.now()},r?.sessionId):await(r?.send(n))}).catch(e=>this._onerror(new Error(`Failed to send response: ${e}`))).finally(()=>{this._requestHandlerAbortControllers.get(e.id)===l&&this._requestHandlerAbortControllers.delete(e.id)})}_onprogress(e){const{progressToken:t,...n}=e.params,r=Number(t),i=this._progressHandlers.get(r);if(!i)return void this._onerror(new Error(`Received a progress notification for an unknown token: ${JSON.stringify(e)}`));const o=this._responseHandlers.get(r),s=this._timeoutInfo.get(r);if(s&&o&&s.resetTimeoutOnProgress)try{this._resetTimeout(r)}catch(e){return this._responseHandlers.delete(r),this._progressHandlers.delete(r),this._cleanupTimeout(r),void o(e)}i(n)}_onresponse(e){const t=Number(e.id),n=this._requestResolvers.get(t);if(n)return this._requestResolvers.delete(t),void((0,i.isJSONRPCResultResponse)(e)?n(e):n(new i.McpError(e.error.code,e.error.message,e.error.data)));const r=this._responseHandlers.get(t);if(void 0===r)return void this._onerror(new Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));this._responseHandlers.delete(t),this._cleanupTimeout(t);let o=!1;if((0,i.isJSONRPCResultResponse)(e)&&e.result&&"object"==typeof e.result){const n=e.result;if(n.task&&"object"==typeof n.task){const e=n.task;"string"==typeof e.taskId&&(o=!0,this._taskProgressTokens.set(e.taskId,t))}}o||this._progressHandlers.delete(t),(0,i.isJSONRPCResultResponse)(e)?r(e):r(i.McpError.fromError(e.error.code,e.error.message,e.error.data))}get transport(){return this._transport}async close(){await(this._transport?.close())}async*requestStream(e,t,n){const{task:r}=n??{};if(!r){try{const r=await this.request(e,t,n);yield{type:"result",result:r}}catch(e){yield{type:"error",error:e instanceof i.McpError?e:new i.McpError(i.ErrorCode.InternalError,String(e))}}return}let s;try{const r=await this.request(e,i.CreateTaskResultSchema,n);if(!r.task)throw new i.McpError(i.ErrorCode.InternalError,"Task creation did not return a task");for(s=r.task.taskId,yield{type:"taskCreated",task:r.task};;){const e=await this.getTask({taskId:s},n);if(yield{type:"taskStatus",task:e},(0,o.isTerminal)(e.status)){if("completed"===e.status){const e=await this.getTaskResult({taskId:s},t,n);yield{type:"result",result:e}}else"failed"===e.status?yield{type:"error",error:new i.McpError(i.ErrorCode.InternalError,`Task ${s} failed`)}:"cancelled"===e.status&&(yield{type:"error",error:new i.McpError(i.ErrorCode.InternalError,`Task ${s} was cancelled`)});return}if("input_required"===e.status){const e=await this.getTaskResult({taskId:s},t,n);return void(yield{type:"result",result:e})}const r=e.pollInterval??this._options?.defaultTaskPollInterval??1e3;await new Promise(e=>setTimeout(e,r)),n?.signal?.throwIfAborted()}}catch(e){yield{type:"error",error:e instanceof i.McpError?e:new i.McpError(i.ErrorCode.InternalError,String(e))}}}request(e,n,o){const{relatedRequestId:s,resumptionToken:a,onresumptiontoken:c,task:u,relatedTask:l}=o??{};return new Promise((d,p)=>{const f=e=>{p(e)};if(!this._transport)return void f(new Error("Not connected"));if(!0===this._options?.enforceStrictCapabilities)try{this.assertCapabilityForMethod(e.method),u&&this.assertTaskCapability(e.method)}catch(e){return void f(e)}o?.signal?.throwIfAborted();const m=this._requestMessageId++,h={...e,jsonrpc:"2.0",id:m};o?.onprogress&&(this._progressHandlers.set(m,o.onprogress),h.params={...e.params,_meta:{...e.params?._meta||{},progressToken:m}}),u&&(h.params={...h.params,task:u}),l&&(h.params={...h.params,_meta:{...h.params?._meta||{},[i.RELATED_TASK_META_KEY]:l}});const v=e=>{this._responseHandlers.delete(m),this._progressHandlers.delete(m),this._cleanupTimeout(m),this._transport?.send({jsonrpc:"2.0",method:"notifications/cancelled",params:{requestId:m,reason:String(e)}},{relatedRequestId:s,resumptionToken:a,onresumptiontoken:c}).catch(e=>this._onerror(new Error(`Failed to send cancellation: ${e}`)));const t=e instanceof i.McpError?e:new i.McpError(i.ErrorCode.RequestTimeout,String(e));p(t)};this._responseHandlers.set(m,e=>{if(!o?.signal?.aborted){if(e instanceof Error)return p(e);try{const t=(0,r.safeParse)(n,e.result);t.success?d(t.data):p(t.error)}catch(e){p(e)}}}),o?.signal?.addEventListener("abort",()=>{v(o?.signal?.reason)});const g=o?.timeout??t.DEFAULT_REQUEST_TIMEOUT_MSEC;this._setupTimeout(m,g,o?.maxTotalTimeout,()=>v(i.McpError.fromError(i.ErrorCode.RequestTimeout,"Request timed out",{timeout:g})),o?.resetTimeoutOnProgress??!1);const y=l?.taskId;if(y){const e=e=>{const t=this._responseHandlers.get(m);t?t(e):this._onerror(new Error(`Response handler missing for side-channeled request ${m}`))};this._requestResolvers.set(m,e),this._enqueueTaskMessage(y,{type:"request",message:h,timestamp:Date.now()}).catch(e=>{this._cleanupTimeout(m),p(e)})}else this._transport.send(h,{relatedRequestId:s,resumptionToken:a,onresumptiontoken:c}).catch(e=>{this._cleanupTimeout(m),p(e)})})}async getTask(e,t){return this.request({method:"tasks/get",params:e},i.GetTaskResultSchema,t)}async getTaskResult(e,t,n){return this.request({method:"tasks/result",params:e},t,n)}async listTasks(e,t){return this.request({method:"tasks/list",params:e},i.ListTasksResultSchema,t)}async cancelTask(e,t){return this.request({method:"tasks/cancel",params:e},i.CancelTaskResultSchema,t)}async notification(e,t){if(!this._transport)throw new Error("Not connected");this.assertNotificationCapability(e.method);const n=t?.relatedTask?.taskId;if(n){const r={...e,jsonrpc:"2.0",params:{...e.params,_meta:{...e.params?._meta||{},[i.RELATED_TASK_META_KEY]:t.relatedTask}}};return void await this._enqueueTaskMessage(n,{type:"notification",message:r,timestamp:Date.now()})}if((this._options?.debouncedNotificationMethods??[]).includes(e.method)&&!e.params&&!t?.relatedRequestId&&!t?.relatedTask){if(this._pendingDebouncedNotifications.has(e.method))return;return this._pendingDebouncedNotifications.add(e.method),void Promise.resolve().then(()=>{if(this._pendingDebouncedNotifications.delete(e.method),!this._transport)return;let n={...e,jsonrpc:"2.0"};t?.relatedTask&&(n={...n,params:{...n.params,_meta:{...n.params?._meta||{},[i.RELATED_TASK_META_KEY]:t.relatedTask}}}),this._transport?.send(n,t).catch(e=>this._onerror(e))})}let r={...e,jsonrpc:"2.0"};t?.relatedTask&&(r={...r,params:{...r.params,_meta:{...r.params?._meta||{},[i.RELATED_TASK_META_KEY]:t.relatedTask}}}),await this._transport.send(r,t)}setRequestHandler(e,t){const n=(0,s.getMethodLiteral)(e);this.assertRequestHandlerCapability(n),this._requestHandlers.set(n,(n,r)=>{const i=(0,s.parseWithCompat)(e,n);return Promise.resolve(t(i,r))})}removeRequestHandler(e){this._requestHandlers.delete(e)}assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw new Error(`A request handler for ${e} already exists, which would be overridden`)}setNotificationHandler(e,t){const n=(0,s.getMethodLiteral)(e);this._notificationHandlers.set(n,n=>{const r=(0,s.parseWithCompat)(e,n);return Promise.resolve(t(r))})}removeNotificationHandler(e){this._notificationHandlers.delete(e)}_cleanupTaskProgressHandler(e){const t=this._taskProgressTokens.get(e);void 0!==t&&(this._progressHandlers.delete(t),this._taskProgressTokens.delete(e))}async _enqueueTaskMessage(e,t,n){if(!this._taskStore||!this._taskMessageQueue)throw new Error("Cannot enqueue task message: taskStore and taskMessageQueue are not configured");const r=this._options?.maxTaskQueueSize;await this._taskMessageQueue.enqueue(e,t,n??this._transport?.sessionId,r)}async _clearTaskQueue(e,t){if(this._taskMessageQueue){const n=await this._taskMessageQueue.dequeueAll(e,t);for(const t of n)if("request"===t.type&&(0,i.isJSONRPCRequest)(t.message)){const n=t.message.id,r=this._requestResolvers.get(n);r?(r(new i.McpError(i.ErrorCode.InternalError,"Task cancelled or completed")),this._requestResolvers.delete(n)):this._onerror(new Error(`Resolver missing for request ${n} during task ${e} cleanup`))}}}async _waitForTaskUpdate(e,t,n){let r=this._options?.defaultTaskPollInterval??1e3;try{const t=await(this._taskStore?.getTask(e,n));t?.pollInterval&&(r=t.pollInterval)}catch{}return new Promise((e,n)=>{if(t.aborted)return void n(new i.McpError(i.ErrorCode.InvalidRequest,"Request cancelled"));const o=setTimeout(e,r);t.addEventListener("abort",()=>{clearTimeout(o),n(new i.McpError(i.ErrorCode.InvalidRequest,"Request cancelled"))},{once:!0})})}requestTaskStore(e,t){const n=this._taskStore;if(!n)throw new Error("No task store configured");return{createTask:async r=>{if(!e)throw new Error("No request provided");return await n.createTask(r,e.id,{method:e.method,params:e.params},t)},getTask:async e=>{const r=await n.getTask(e,t);if(!r)throw new i.McpError(i.ErrorCode.InvalidParams,"Failed to retrieve task: Task not found");return r},storeTaskResult:async(e,r,s)=>{await n.storeTaskResult(e,r,s,t);const a=await n.getTask(e,t);if(a){const t=i.TaskStatusNotificationSchema.parse({method:"notifications/tasks/status",params:a});await this.notification(t),(0,o.isTerminal)(a.status)&&this._cleanupTaskProgressHandler(e)}},getTaskResult:e=>n.getTaskResult(e,t),updateTaskStatus:async(e,r,s)=>{const a=await n.getTask(e,t);if(!a)throw new i.McpError(i.ErrorCode.InvalidParams,`Task "${e}" not found - it may have been cleaned up`);if((0,o.isTerminal)(a.status))throw new i.McpError(i.ErrorCode.InvalidParams,`Cannot update task "${e}" from terminal status "${a.status}" to "${r}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await n.updateTaskStatus(e,r,s,t);const c=await n.getTask(e,t);if(c){const t=i.TaskStatusNotificationSchema.parse({method:"notifications/tasks/status",params:c});await this.notification(t),(0,o.isTerminal)(c.status)&&this._cleanupTaskProgressHandler(e)}},listTasks:e=>n.listTasks(e,t)}}}},78051:(e,t,n)=>{var r=n(72313),i=n(74555);e.exports=function(e,t,n,o){var s=n.keyedList?n.keyedList[n.index]:n.index;n.jobs[s]=function(e,t,n,i){return 2==e.length?e(n,r(i)):e(n,t,r(i))}(t,s,e[s],function(e,t){s in n.jobs&&(delete n.jobs[s],e?i(n):n.results[s]=t,o(e,n.results))})}},78069:(e,t,n)=>{var r=n(2203).Stream,i=n(39023);function o(){this.source=null,this.dataSize=0,this.maxDataSize=1048576,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}e.exports=o,i.inherits(o,r),o.create=function(e,t){var n=new this;for(var r in t=t||{})n[r]=t[r];n.source=e;var i=e.emit;return e.emit=function(){return n._handleEmit(arguments),i.apply(e,arguments)},e.on("error",function(){}),n.pauseStream&&e.pause(),n},Object.defineProperty(o.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}}),o.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)},o.prototype.resume=function(){this._released||this.release(),this.source.resume()},o.prototype.pause=function(){this.source.pause()},o.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]},o.prototype.pipe=function(){var e=r.prototype.pipe.apply(this,arguments);return this.resume(),e},o.prototype._handleEmit=function(e){this._released?this.emit.apply(this,e):("data"===e[0]&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e))},o.prototype._checkIfMaxDataSizeExceeded=function(){if(!(this._maxDataSizeExceeded||this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(e))}}},78104:e=>{e.exports=function(e,t){for(var n=[],r=(t=t||0)||0;r<e.length;r++)n[r-t]=e[r];return n}},78113:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.HostLogService=void 0,t.HostLogService=class{constructor(e){this.connectionServiceProvider=e}getHosts(){return n(this,void 0,void 0,function*(){return(yield this.connectionServiceProvider.getConnectionService().getSystemObjectView("host","system.host","system.host.")).map(e=>{var t,n;return{id:e._id,name:null!==(n=null===(t=e.common)||void 0===t?void 0:t.name)&&void 0!==n?n:e._id.replace(/^system\.host\./,"")}})})}getLogs(e,t){return this.connectionServiceProvider.getConnectionService().getLogs(e,t)}}},78348:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseUnionDef=t.primitiveMappings=void 0;const r=n(73524);t.primitiveMappings={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"},t.parseUnionDef=function(e,n){if("openApi3"===n.target)return i(e,n);const r=e.options instanceof Map?Array.from(e.options.values()):e.options;if(r.every(e=>e._def.typeName in t.primitiveMappings&&(!e._def.checks||!e._def.checks.length))){const e=r.reduce((e,n)=>{const r=t.primitiveMappings[n._def.typeName];return r&&!e.includes(r)?[...e,r]:e},[]);return{type:e.length>1?e:e[0]}}if(r.every(e=>"ZodLiteral"===e._def.typeName&&!e.description)){const e=r.reduce((e,t)=>{const n=typeof t._def.value;switch(n){case"string":case"number":case"boolean":return[...e,n];case"bigint":return[...e,"integer"];case"object":if(null===t._def.value)return[...e,"null"];default:return e}},[]);if(e.length===r.length){const t=e.filter((e,t,n)=>n.indexOf(e)===t);return{type:t.length>1?t:t[0],enum:r.reduce((e,t)=>e.includes(t._def.value)?e:[...e,t._def.value],[])}}}else if(r.every(e=>"ZodEnum"===e._def.typeName))return{type:"string",enum:r.reduce((e,t)=>[...e,...t._def.values.filter(t=>!e.includes(t))],[])};return i(e,n)};const i=(e,t)=>{const n=(e.options instanceof Map?Array.from(e.options.values()):e.options).map((e,n)=>(0,r.parseDef)(e._def,{...t,currentPath:[...t.currentPath,"anyOf",`${n}`]})).filter(e=>!!e&&(!t.strictUnions||"object"==typeof e&&Object.keys(e).length>0));return n.length?{anyOf:n}:void 0}},78520:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{localeError:a()}};const s=o(n(90523)),a=()=>{const e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(t){return e[t]??null}const n={regex:"vnos",email:"e-poštni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in čas",date:"ISO datum",time:"ISO čas",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 številka",jwt:"JWT",template_literal:"vnos"};return e=>{switch(e.code){case"invalid_type":return`Neveljaven vnos: pričakovano ${e.expected}, prejeto ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"število";case"object":if(Array.isArray(e))return"tabela";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Neveljaven vnos: pričakovano ${s.stringifyPrimitive(e.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${s.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`Preveliko: pričakovano, da bo ${e.origin??"vrednost"} imelo ${n}${e.maximum.toString()} ${r.unit??"elementov"}`:`Preveliko: pričakovano, da bo ${e.origin??"vrednost"} ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`Premajhno: pričakovano, da bo ${e.origin} imelo ${n}${e.minimum.toString()} ${r.unit}`:`Premajhno: pričakovano, da bo ${e.origin} ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Neveljaven niz: mora se začeti z "${t.prefix}"`:"ends_with"===t.format?`Neveljaven niz: mora se končati z "${t.suffix}"`:"includes"===t.format?`Neveljaven niz: mora vsebovati "${t.includes}"`:"regex"===t.format?`Neveljaven niz: mora ustrezati vzorcu ${t.pattern}`:`Neveljaven ${n[t.format]??e.format}`}case"not_multiple_of":return`Neveljavno število: mora biti večkratnik ${e.divisor}`;case"unrecognized_keys":return`Neprepoznan${e.keys.length>1?"i ključi":" ključ"}: ${s.joinValues(e.keys,", ")}`;case"invalid_key":return`Neveljaven ključ v ${e.origin}`;case"invalid_union":default:return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${e.origin}`}}}},78851:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(66596),i=r.operators,o={maximum:{okStr:"<=",ok:i.LTE,fail:i.GT},minimum:{okStr:">=",ok:i.GTE,fail:i.LT},exclusiveMaximum:{okStr:"<",ok:i.LT,fail:i.GTE},exclusiveMinimum:{okStr:">",ok:i.GT,fail:i.LTE}},s={message:({keyword:e,schemaCode:t})=>r.str`must be ${o[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>r._`{comparison: ${o[e].okStr}, limit: ${t}}`},a={keyword:Object.keys(o),type:"number",schemaType:"number",$data:!0,error:s,code(e){const{keyword:t,data:n,schemaCode:i}=e;e.fail$data(r._`${n} ${o[t].fail} ${i} || isNaN(${n})`)}};t.default=a},79110:(e,t,n)=>{function r(e){var n;function r(){if(r.enabled){var e=r,i=+new Date,o=i-(n||i);e.diff=o,e.prev=n,e.curr=i,n=i;for(var s=new Array(arguments.length),a=0;a<s.length;a++)s[a]=arguments[a];s[0]=t.coerce(s[0]),"string"!=typeof s[0]&&s.unshift("%O");var c=0;s[0]=s[0].replace(/%([a-zA-Z%])/g,function(n,r){if("%%"===n)return n;c++;var i=t.formatters[r];if("function"==typeof i){var o=s[c];n=i.call(e,o),s.splice(c,1),c--}return n}),t.formatArgs.call(e,s),(r.log||t.log||console.log.bind(console)).apply(e,s)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=function(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}(e),r.destroy=i,"function"==typeof t.init&&t.init(r),t.instances.push(r),r}function i(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}(t=e.exports=r.debug=r.default=r).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var o=t.instances[n];o.enabled=t.enabled(o.namespace)}},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(3097),t.instances=[],t.names=[],t.skips=[],t.formatters={}},79149:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={info:"INFO",warning:"WARN",error:"ERROR"}},79225:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parsePipelineDef=void 0;const r=n(73524);t.parsePipelineDef=(e,t)=>{if("input"===t.pipeStrategy)return(0,r.parseDef)(e.in._def,t);if("output"===t.pipeStrategy)return(0,r.parseDef)(e.out._def,t);const n=(0,r.parseDef)(e.in._def,{...t,currentPath:[...t.currentPath,"allOf","0"]});return{allOf:[n,(0,r.parseDef)(e.out._def,{...t,currentPath:[...t.currentPath,"allOf",n?"1":"0"]})].filter(e=>void 0!==e)}}},79290:e=>{"use strict";e.exports=RangeError},79299:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.ZodRealError=t.ZodError=void 0;const s=o(n(76601)),a=n(76601),c=(e,t)=>{a.$ZodError.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:t=>s.formatError(e,t)},flatten:{value:t=>s.flattenError(e,t)},addIssue:{value:t=>e.issues.push(t)},addIssues:{value:t=>e.issues.push(...t)},isEmpty:{get:()=>0===e.issues.length}})};t.ZodError=s.$constructor("ZodError",c),t.ZodRealError=s.$constructor("ZodError",c,{Parent:Error})},79325:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(99317),t),i(n(90819),t),i(n(96370),t),i(n(92034),t),i(n(80491),t),i(n(28651),t)},79329:(e,t,n)=>{"use strict";const r=n(30737),i=n(76982),o=n(87016),s=n(46504),a=n(58611),c=n(65692),u=n(39023),l=n(43164),d=n(43106),p=n(2203),f=n(24434);function m(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}const h=m(r),v=m(i),g=m(o),y=m(s),_=m(a),b=m(c),x=m(u),w=m(l),S=m(d),O=m(p);function k(e,t){return function(){return e.apply(t,arguments)}}const{toString:$}=Object.prototype,{getPrototypeOf:P}=Object,{iterator:E,toStringTag:T}=Symbol,C=(I=Object.create(null),e=>{const t=$.call(e);return I[t]||(I[t]=t.slice(8,-1).toLowerCase())});var I;const j=e=>(e=e.toLowerCase(),t=>C(t)===e),R=e=>t=>typeof t===e,{isArray:N}=Array,A=R("undefined");function M(e){return null!==e&&!A(e)&&null!==e.constructor&&!A(e.constructor)&&U(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const D=j("ArrayBuffer"),Z=R("string"),U=R("function"),L=R("number"),z=e=>null!==e&&"object"==typeof e,F=e=>{if("object"!==C(e))return!1;const t=P(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||T in e||E in e)},B=j("Date"),q=j("File"),V=j("Blob"),G=j("FileList"),W=j("URLSearchParams"),[K,H,J,Y]=["ReadableStream","Request","Response","Headers"].map(j);function X(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,i;if("object"!=typeof e&&(e=[e]),N(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(M(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let s;for(r=0;r<o;r++)s=i[r],t.call(null,e[s],s,e)}}function Q(e,t){if(M(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,i=n.length;for(;i-- >0;)if(r=n[i],t===r.toLowerCase())return r;return null}const ee="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,te=e=>!A(e)&&e!==ee,ne=(re="undefined"!=typeof Uint8Array&&P(Uint8Array),e=>re&&e instanceof re);var re;const ie=j("HTMLFormElement"),oe=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),se=j("RegExp"),ae=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};X(n,(n,i)=>{let o;!1!==(o=t(n,i,e))&&(r[i]=o||n)}),Object.defineProperties(e,r)},ce=j("AsyncFunction"),ue=(le="function"==typeof setImmediate,de=U(ee.postMessage),le?setImmediate:de?(pe=`axios@${Math.random()}`,fe=[],ee.addEventListener("message",({source:e,data:t})=>{e===ee&&t===pe&&fe.length&&fe.shift()()},!1),e=>{fe.push(e),ee.postMessage(pe,"*")}):e=>setTimeout(e));var le,de,pe,fe;const me="undefined"!=typeof queueMicrotask?queueMicrotask.bind(ee):"undefined"!=typeof process&&process.nextTick||ue,he={isArray:N,isArrayBuffer:D,isBuffer:M,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||U(e.append)&&("formdata"===(t=C(e))||"object"===t&&U(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&D(e.buffer),t},isString:Z,isNumber:L,isBoolean:e=>!0===e||!1===e,isObject:z,isPlainObject:F,isEmptyObject:e=>{if(!z(e)||M(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:K,isRequest:H,isResponse:J,isHeaders:Y,isUndefined:A,isDate:B,isFile:q,isBlob:V,isRegExp:se,isFunction:U,isStream:e=>z(e)&&U(e.pipe),isURLSearchParams:W,isTypedArray:ne,isFileList:G,forEach:X,merge:function e(){const{caseless:t,skipUndefined:n}=te(this)&&this||{},r={},i=(i,o)=>{const s=t&&Q(r,o)||o;F(r[s])&&F(i)?r[s]=e(r[s],i):F(i)?r[s]=e({},i):N(i)?r[s]=i.slice():n&&A(i)||(r[s]=i)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&X(arguments[e],i);return r},extend:(e,t,n,{allOwnKeys:r}={})=>(X(t,(t,r)=>{n&&U(t)?e[r]=k(t,n):e[r]=t},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,o,s;const a={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],r&&!r(s,e,t)||a[s]||(t[s]=e[s],a[s]=!0);e=!1!==n&&P(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:C,kindOfTest:j,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(N(e))return e;let t=e.length;if(!L(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[E]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:ie,hasOwnProperty:oe,hasOwnProp:oe,reduceDescriptors:ae,freezeMethods:e=>{ae(e,(t,n)=>{if(U(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];U(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return N(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:Q,global:ee,isContextDefined:te,isSpecCompliantForm:function(e){return!!(e&&U(e.append)&&"FormData"===e[T]&&e[E])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(z(e)){if(t.indexOf(e)>=0)return;if(M(e))return e;if(!("toJSON"in e)){t[r]=e;const i=N(e)?[]:{};return X(e,(e,t)=>{const o=n(e,r+1);!A(o)&&(i[t]=o)}),t[r]=void 0,i}}return e};return n(e,0)},isAsyncFn:ce,isThenable:e=>e&&(z(e)||U(e))&&U(e.then)&&U(e.catch),setImmediate:ue,asap:me,isIterable:e=>null!=e&&U(e[E])};function ve(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}he.inherits(ve,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:he.toJSONObject(this.config),code:this.code,status:this.status}}});const ge=ve.prototype,ye={};function _e(e){return he.isPlainObject(e)||he.isArray(e)}function be(e){return he.endsWith(e,"[]")?e.slice(0,-2):e}function xe(e,t,n){return e?e.concat(t).map(function(e,t){return e=be(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}["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(e=>{ye[e]={value:e}}),Object.defineProperties(ve,ye),Object.defineProperty(ge,"isAxiosError",{value:!0}),ve.from=(e,t,n,r,i,o)=>{const s=Object.create(ge);he.toFlatObject(e,s,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e);const a=e&&e.message?e.message:"Error",c=null==t&&e?e.code:t;return ve.call(s,a,c,n,r,i),e&&null==s.cause&&Object.defineProperty(s,"cause",{value:e,configurable:!0}),s.name=e&&e.name||"Error",o&&Object.assign(s,o),s};const we=he.toFlatObject(he,{},null,function(e){return/^is[A-Z]/.test(e)});function Se(e,t,n){if(!he.isObject(e))throw new TypeError("target must be an object");t=t||new(h.default||FormData);const r=(n=he.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!he.isUndefined(t[e])})).metaTokens,i=n.visitor||u,o=n.dots,s=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&he.isSpecCompliantForm(t);if(!he.isFunction(i))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(he.isDate(e))return e.toISOString();if(he.isBoolean(e))return e.toString();if(!a&&he.isBlob(e))throw new ve("Blob is not supported. Use a Buffer instead.");return he.isArrayBuffer(e)||he.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,i){let a=e;if(e&&!i&&"object"==typeof e)if(he.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(he.isArray(e)&&function(e){return he.isArray(e)&&!e.some(_e)}(e)||(he.isFileList(e)||he.endsWith(n,"[]"))&&(a=he.toArray(e)))return n=be(n),a.forEach(function(e,r){!he.isUndefined(e)&&null!==e&&t.append(!0===s?xe([n],r,o):null===s?n:n+"[]",c(e))}),!1;return!!_e(e)||(t.append(xe(i,n,o),c(e)),!1)}const l=[],d=Object.assign(we,{defaultVisitor:u,convertValue:c,isVisitable:_e});if(!he.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!he.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+r.join("."));l.push(n),he.forEach(n,function(n,o){!0===(!(he.isUndefined(n)||null===n)&&i.call(t,n,he.isString(o)?o.trim():o,r,d))&&e(n,r?r.concat(o):[o])}),l.pop()}}(e),t}function Oe(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function ke(e,t){this._pairs=[],e&&Se(e,this,t)}const $e=ke.prototype;function Pe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Ee(e,t,n){if(!t)return e;const r=n&&n.encode||Pe;he.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let o;if(o=i?i(t,n):he.isURLSearchParams(t)?t.toString():new ke(t,n).toString(r),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}$e.append=function(e,t){this._pairs.push([e,t])},$e.toString=function(e){const t=e?function(t){return e.call(this,t,Oe)}:Oe;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const Te=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,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){he.forEach(this.handlers,function(t){null!==t&&e(t)})}},Ce={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ie=g.default.URLSearchParams,je="abcdefghijklmnopqrstuvwxyz",Re="0123456789",Ne={DIGIT:Re,ALPHA:je,ALPHA_DIGIT:je+je.toUpperCase()+Re},Ae={isNode:!0,classes:{URLSearchParams:Ie,FormData:h.default,Blob:"undefined"!=typeof Blob&&Blob||null},ALPHABET:Ne,generateString:(e=16,t=Ne.ALPHA_DIGIT)=>{let n="";const{length:r}=t,i=new Uint32Array(e);v.default.randomFillSync(i);for(let o=0;o<e;o++)n+=t[i[o]%r];return n},protocols:["http","https","file","data"]},Me="undefined"!=typeof window&&"undefined"!=typeof document,De="object"==typeof navigator&&navigator||void 0,Ze=Me&&(!De||["ReactNative","NativeScript","NS"].indexOf(De.product)<0),Ue="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Le=Me&&window.location.href||"http://localhost",ze={...Object.freeze({__proto__:null,hasBrowserEnv:Me,hasStandardBrowserWebWorkerEnv:Ue,hasStandardBrowserEnv:Ze,navigator:De,origin:Le}),...Ae};function Fe(e){function t(e,n,r,i){let o=e[i++];if("__proto__"===o)return!0;const s=Number.isFinite(+o),a=i>=e.length;return o=!o&&he.isArray(r)?r.length:o,a?(he.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!s):(r[o]&&he.isObject(r[o])||(r[o]=[]),t(e,n,r[o],i)&&he.isArray(r[o])&&(r[o]=function(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}(r[o])),!s)}if(he.isFormData(e)&&he.isFunction(e.entries)){const n={};return he.forEachEntry(e,(e,r)=>{t(function(e){return he.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null}const Be={transitional:Ce,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=he.isObject(e);if(i&&he.isHTMLForm(e)&&(e=new FormData(e)),he.isFormData(e))return r?JSON.stringify(Fe(e)):e;if(he.isArrayBuffer(e)||he.isBuffer(e)||he.isStream(e)||he.isFile(e)||he.isBlob(e)||he.isReadableStream(e))return e;if(he.isArrayBufferView(e))return e.buffer;if(he.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Se(e,new ze.classes.URLSearchParams,{visitor:function(e,t,n,r){return ze.isNode&&he.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((o=he.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Se(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||r?(t.setContentType("application/json",!1),function(e){if(he.isString(e))try{return(0,JSON.parse)(e),he.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Be.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(he.isResponse(e)||he.isReadableStream(e))return e;if(e&&he.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n){if("SyntaxError"===e.name)throw ve.from(e,ve.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ze.classes.FormData,Blob:ze.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};he.forEach(["delete","get","head","post","put","patch"],e=>{Be.headers[e]={}});const qe=Be,Ve=he.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"]),Ge=Symbol("internals");function We(e){return e&&String(e).trim().toLowerCase()}function Ke(e){return!1===e||null==e?e:he.isArray(e)?e.map(Ke):String(e)}function He(e,t,n,r,i){return he.isFunction(r)?r.call(this,t,n):(i&&(t=n),he.isString(t)?he.isString(r)?-1!==t.indexOf(r):he.isRegExp(r)?r.test(t):void 0:void 0)}class Je{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function i(e,t,n){const i=We(t);if(!i)throw new Error("header name must be a non-empty string");const o=he.findKey(r,i);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||t]=Ke(e))}const o=(e,t)=>he.forEach(e,(e,n)=>i(e,n,t));if(he.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(he.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))o((e=>{const t={};let n,r,i;return e&&e.split("\n").forEach(function(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!n||t[n]&&Ve[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if(he.isObject(e)&&he.isIterable(e)){let n,r,i={};for(const t of e){if(!he.isArray(t))throw TypeError("Object iterator must return a key-value pair");i[r=t[0]]=(n=i[r])?he.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}o(i,t)}else null!=e&&i(t,e,n);return this}get(e,t){if(e=We(e)){const n=he.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(he.isFunction(t))return t.call(this,e,n);if(he.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=We(e)){const n=he.findKey(this,e);return!(!n||void 0===this[n]||t&&!He(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function i(e){if(e=We(e)){const i=he.findKey(n,e);!i||t&&!He(0,n[i],i,t)||(delete n[i],r=!0)}}return he.isArray(e)?e.forEach(i):i(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const i=t[n];e&&!He(0,this[i],i,e,!0)||(delete this[i],r=!0)}return r}normalize(e){const t=this,n={};return he.forEach(this,(r,i)=>{const o=he.findKey(n,i);if(o)return t[o]=Ke(r),void delete t[i];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(i):String(i).trim();s!==i&&delete t[i],t[s]=Ke(r),n[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return he.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&he.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("\n")}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(e=>n.set(e)),n}static accessor(e){const t=(this[Ge]=this[Ge]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=We(e);t[r]||(function(e,t){const n=he.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})})}(n,e),t[r]=!0)}return he.isArray(e)?e.forEach(r):r(e),this}}Je.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),he.reduceDescriptors(Je.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),he.freezeMethods(Je);const Ye=Je;function Xe(e,t){const n=this||qe,r=t||n,i=Ye.from(r.headers);let o=r.data;return he.forEach(e,function(e){o=e.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function Qe(e){return!(!e||!e.__CANCEL__)}function et(e,t,n){ve.call(this,null==e?"canceled":e,ve.ERR_CANCELED,t,n),this.name="CanceledError"}function tt(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new ve("Request failed with status code "+n.status,[ve.ERR_BAD_REQUEST,ve.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}function nt(e,t,n){let r=!function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}he.inherits(et,ve,{__CANCEL__:!0});const rt="1.12.2";function it(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}const ot=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/,st=Symbol("internals");class at extends O.default.Transform{constructor(e){super({readableHighWaterMark:(e=he.toFlatObject(e,{maxRate:0,chunkSize:65536,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(e,t)=>!he.isUndefined(t[e]))).chunkSize});const t=this[st]={timeWindow:e.timeWindow,chunkSize:e.chunkSize,maxRate:e.maxRate,minChunkSize:e.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",e=>{"progress"===e&&(t.isCaptured||(t.isCaptured=!0))})}_read(e){const t=this[st];return t.onReadCallback&&t.onReadCallback(),super._read(e)}_transform(e,t,n){const r=this[st],i=r.maxRate,o=this.readableHighWaterMark,s=r.timeWindow,a=i/(1e3/s),c=!1!==r.minChunkSize?Math.max(r.minChunkSize,.01*a):0,u=(e,t)=>{const n=Buffer.byteLength(e);r.bytesSeen+=n,r.bytes+=n,r.isCaptured&&this.emit("progress",r.bytesSeen),this.push(e)?process.nextTick(t):r.onReadCallback=()=>{r.onReadCallback=null,process.nextTick(t)}},l=(e,t)=>{const n=Buffer.byteLength(e);let l,d=null,p=o,f=0;if(i){const e=Date.now();(!r.ts||(f=e-r.ts)>=s)&&(r.ts=e,l=a-r.bytes,r.bytes=l<0?-l:0,f=0),l=a-r.bytes}if(i){if(l<=0)return setTimeout(()=>{t(null,e)},s-f);l<p&&(p=l)}p&&n>p&&n-p>c&&(d=e.subarray(p),e=e.subarray(0,p)),u(e,d?()=>{process.nextTick(t,null,d)}:t)};l(e,function e(t,r){if(t)return n(t);r?l(r,e):n(null)})}}const ct=at,{asyncIterator:ut}=Symbol,lt=async function*(e){e.stream?yield*e.stream():e.arrayBuffer?yield await e.arrayBuffer():e[ut]?yield*e[ut]():yield e},dt=ze.ALPHABET.ALPHA_DIGIT+"-_",pt="function"==typeof TextEncoder?new TextEncoder:new x.default.TextEncoder,ft="\r\n",mt=pt.encode(ft);class ht{constructor(e,t){const{escapeName:n}=this.constructor,r=he.isString(t);let i=`Content-Disposition: form-data; name="${n(e)}"${!r&&t.name?`; filename="${n(t.name)}"`:""}${ft}`;r?t=pt.encode(String(t).replace(/\r?\n|\r\n?/g,ft)):i+=`Content-Type: ${t.type||"application/octet-stream"}${ft}`,this.headers=pt.encode(i+ft),this.contentLength=r?t.byteLength:t.size,this.size=this.headers.byteLength+this.contentLength+2,this.name=e,this.value=t}async*encode(){yield this.headers;const{value:e}=this;he.isTypedArray(e)?yield e:yield*lt(e),yield mt}static escapeName(e){return String(e).replace(/[\r\n"]/g,e=>({"\r":"%0D","\n":"%0A",'"':"%22"}[e]))}}class vt extends O.default.Transform{__transform(e,t,n){this.push(e),n()}_transform(e,t,n){if(0!==e.length&&(this._transform=this.__transform,120!==e[0])){const e=Buffer.alloc(2);e[0]=120,e[1]=156,this.push(e,t)}this.__transform(e,t,n)}}const gt=vt,yt=(e,t)=>he.isAsyncFn(e)?function(...n){const r=n.pop();e.apply(this,n).then(e=>{try{t?r(null,...t(e)):r(null,e)}catch(e){r(e)}},r)}:e,_t=(e,t,n=3)=>{let r=0;const i=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i,o=0,s=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),u=r[s];i||(i=c),n[o]=a,r[o]=c;let l=s,d=0;for(;l!==o;)d+=n[l++],l%=e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),c-i<t)return;const p=u&&c-u;return p?Math.round(1e3*d/p):void 0}}(50,250);return function(n,o){let s,a,c=0,u=1e3/o;const l=(n,o=Date.now())=>{c=o,s=null,a&&(clearTimeout(a),a=null),(n=>{const o=n.loaded,s=n.lengthComputable?n.total:void 0,a=o-r,c=i(a);r=o,e({loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&o<=s?(s-o)/c:void 0,event:n,lengthComputable:null!=s,[t?"download":"upload"]:!0})})(...n)};return[(...e)=>{const t=Date.now(),n=t-c;n>=u?l(e,t):(s=e,a||(a=setTimeout(()=>{a=null,l(s)},u-n)))},()=>s&&l(s)]}(0,n)},bt=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},xt=e=>(...t)=>he.asap(()=>e(...t)),wt={flush:S.default.constants.Z_SYNC_FLUSH,finishFlush:S.default.constants.Z_SYNC_FLUSH},St={flush:S.default.constants.BROTLI_OPERATION_FLUSH,finishFlush:S.default.constants.BROTLI_OPERATION_FLUSH},Ot=he.isFunction(S.default.createBrotliDecompress),{http:kt,https:$t}=w.default,Pt=/https:?/,Et=ze.protocols.map(e=>e+":"),Tt=(e,[t,n])=>(e.on("end",n).on("error",n),t);function Ct(e,t){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.config&&e.beforeRedirects.config(e,t)}function It(e,t,n){let r=t;if(!r&&!1!==r){const e=y.default.getProxyForUrl(n);e&&(r=new URL(e))}if(r){if(r.username&&(r.auth=(r.username||"")+":"+(r.password||"")),r.auth){(r.auth.username||r.auth.password)&&(r.auth=(r.auth.username||"")+":"+(r.auth.password||""));const t=Buffer.from(r.auth,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+t}e.headers.host=e.hostname+(e.port?":"+e.port:"");const t=r.hostname||r.host;e.hostname=t,e.host=t,e.port=r.port,e.path=n,r.protocol&&(e.protocol=r.protocol.includes(":")?r.protocol:`${r.protocol}:`)}e.beforeRedirects.proxy=function(e){It(e,t,e.href)}}const jt="undefined"!=typeof process&&"process"===he.kindOf(process),Rt=(e,t)=>(({address:e,family:t})=>{if(!he.isString(e))throw TypeError("address must be a string");return{address:e,family:t||(e.indexOf(".")<0?6:4)}})(he.isObject(e)?e:{address:e,family:t}),Nt=jt&&function(e){return t=async function(t,n,r){let{data:i,lookup:o,family:s}=e;const{responseType:a,responseEncoding:c}=e,u=e.method.toUpperCase();let l,d,m=!1;if(o){const e=yt(o,e=>he.isArray(e)?e:[e]);o=(t,n,r)=>{e(t,n,(e,t,i)=>{if(e)return r(e);const o=he.isArray(t)?t.map(e=>Rt(e)):[Rt(t,i)];n.all?r(e,o):r(e,o[0].address,o[0].family)})}}const h=new f.EventEmitter,v=()=>{e.cancelToken&&e.cancelToken.unsubscribe(g),e.signal&&e.signal.removeEventListener("abort",g),h.removeAllListeners()};function g(t){h.emit("abort",!t||t.type?new et(null,e,d):t)}r((e,t)=>{l=!0,t&&(m=!0,v())}),h.once("abort",n),(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(g),e.signal&&(e.signal.aborted?g():e.signal.addEventListener("abort",g)));const y=nt(e.baseURL,e.url,e.allowAbsoluteUrls),w=new URL(y,ze.hasBrowserEnv?ze.origin:void 0),k=w.protocol||Et[0];if("data:"===k){if(e.maxContentLength>-1){const t=function(e){if(!e||"string"!=typeof e)return 0;if(!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let e=r.length;const t=r.length;for(let n=0;n<t;n++)if(37===r.charCodeAt(n)&&n+2<t){const t=r.charCodeAt(n+1),i=r.charCodeAt(n+2);(t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102)&&(i>=48&&i<=57||i>=65&&i<=70||i>=97&&i<=102)&&(e-=2,n+=2)}let n=0,i=t-1;const o=e=>e>=2&&37===r.charCodeAt(e-2)&&51===r.charCodeAt(e-1)&&(68===r.charCodeAt(e)||100===r.charCodeAt(e));i>=0&&(61===r.charCodeAt(i)?(n++,i--):o(i)&&(n++,i-=3)),1===n&&i>=0&&(61===r.charCodeAt(i)||o(i))&&n++;const s=3*Math.floor(e/4)-(n||0);return s>0?s:0}return Buffer.byteLength(r,"utf8")}(String(e.url||y||""));if(t>e.maxContentLength)return n(new ve("maxContentLength size of "+e.maxContentLength+" exceeded",ve.ERR_BAD_RESPONSE,e))}let r;if("GET"!==u)return tt(t,n,{status:405,statusText:"method not allowed",headers:{},config:e});try{r=function(e,t,n){const r=n&&n.Blob||ze.classes.Blob,i=it(e);if(void 0===t&&r&&(t=!0),"data"===i){e=i.length?e.slice(i.length+1):e;const n=ot.exec(e);if(!n)throw new ve("Invalid URL",ve.ERR_INVALID_URL);const o=n[1],s=n[2],a=n[3],c=Buffer.from(decodeURIComponent(a),s?"base64":"utf8");if(t){if(!r)throw new ve("Blob is not supported",ve.ERR_NOT_SUPPORT);return new r([c],{type:o})}return c}throw new ve("Unsupported protocol "+i,ve.ERR_NOT_SUPPORT)}(e.url,"blob"===a,{Blob:e.env&&e.env.Blob})}catch(t){throw ve.from(t,ve.ERR_BAD_REQUEST,e)}return"text"===a?(r=r.toString(c),c&&"utf8"!==c||(r=he.stripBOM(r))):"stream"===a&&(r=O.default.Readable.from(r)),tt(t,n,{data:r,status:200,statusText:"OK",headers:new Ye,config:e})}if(-1===Et.indexOf(k))return n(new ve("Unsupported protocol "+k,ve.ERR_BAD_REQUEST,e));const $=Ye.from(e.headers).normalize();$.set("User-Agent","axios/"+rt,!1);const{onUploadProgress:P,onDownloadProgress:E}=e,T=e.maxRate;let C,I;if(he.isSpecCompliantForm(i)){const e=$.getContentType(/boundary=([-_\w\d]{10,70})/i);i=((e,t,n)=>{const{tag:r="form-data-boundary",size:i=25,boundary:o=r+"-"+ze.generateString(i,dt)}=n||{};if(!he.isFormData(e))throw TypeError("FormData instance required");if(o.length<1||o.length>70)throw Error("boundary must be 10-70 characters long");const s=pt.encode("--"+o+ft),a=pt.encode("--"+o+"--"+ft);let c=a.byteLength;const u=Array.from(e.entries()).map(([e,t])=>{const n=new ht(e,t);return c+=n.size,n});c+=s.byteLength*u.length,c=he.toFiniteNumber(c);const l={"Content-Type":`multipart/form-data; boundary=${o}`};return Number.isFinite(c)&&(l["Content-Length"]=c),t&&t(l),p.Readable.from(async function*(){for(const e of u)yield s,yield*e.encode();yield a}())})(i,e=>{$.set(e)},{tag:`axios-${rt}-boundary`,boundary:e&&e[1]||void 0})}else if(he.isFormData(i)&&he.isFunction(i.getHeaders)){if($.set(i.getHeaders()),!$.hasContentLength())try{const e=await x.default.promisify(i.getLength).call(i);Number.isFinite(e)&&e>=0&&$.setContentLength(e)}catch(e){}}else if(he.isBlob(i)||he.isFile(i))i.size&&$.setContentType(i.type||"application/octet-stream"),$.setContentLength(i.size||0),i=O.default.Readable.from(lt(i));else if(i&&!he.isStream(i)){if(Buffer.isBuffer(i));else if(he.isArrayBuffer(i))i=Buffer.from(new Uint8Array(i));else{if(!he.isString(i))return n(new ve("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",ve.ERR_BAD_REQUEST,e));i=Buffer.from(i,"utf-8")}if($.setContentLength(i.length,!1),e.maxBodyLength>-1&&i.length>e.maxBodyLength)return n(new ve("Request body larger than maxBodyLength limit",ve.ERR_BAD_REQUEST,e))}const j=he.toFiniteNumber($.getContentLength());let R,N;he.isArray(T)?(C=T[0],I=T[1]):C=I=T,i&&(P||C)&&(he.isStream(i)||(i=O.default.Readable.from(i,{objectMode:!1})),i=O.default.pipeline([i,new ct({maxRate:he.toFiniteNumber(C)})],he.noop),P&&i.on("progress",Tt(i,bt(j,_t(xt(P),!1,3))))),e.auth&&(R=(e.auth.username||"")+":"+(e.auth.password||"")),!R&&w.username&&(R=w.username+":"+w.password),R&&$.delete("authorization");try{N=Ee(w.pathname+w.search,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(t){const r=new Error(t.message);return r.config=e,r.url=e.url,r.exists=!0,n(r)}$.set("Accept-Encoding","gzip, compress, deflate"+(Ot?", br":""),!1);const A={path:N,method:u,headers:$.toJSON(),agents:{http:e.httpAgent,https:e.httpsAgent},auth:R,protocol:k,family:s,beforeRedirect:Ct,beforeRedirects:{}};let M;!he.isUndefined(o)&&(A.lookup=o),e.socketPath?A.socketPath=e.socketPath:(A.hostname=w.hostname.startsWith("[")?w.hostname.slice(1,-1):w.hostname,A.port=w.port,It(A,e.proxy,k+"//"+w.hostname+(w.port?":"+w.port:"")+A.path));const D=Pt.test(A.protocol);if(A.agent=D?e.httpsAgent:e.httpAgent,e.transport?M=e.transport:0===e.maxRedirects?M=D?b.default:_.default:(e.maxRedirects&&(A.maxRedirects=e.maxRedirects),e.beforeRedirect&&(A.beforeRedirects.config=e.beforeRedirect),M=D?$t:kt),e.maxBodyLength>-1?A.maxBodyLength=e.maxBodyLength:A.maxBodyLength=1/0,e.insecureHTTPParser&&(A.insecureHTTPParser=e.insecureHTTPParser),d=M.request(A,function(r){if(d.destroyed)return;const i=[r],o=+r.headers["content-length"];if(E||I){const e=new ct({maxRate:he.toFiniteNumber(I)});E&&e.on("progress",Tt(e,bt(o,_t(xt(E),!0,3)))),i.push(e)}let s=r;const l=r.req||d;if(!1!==e.decompress&&r.headers["content-encoding"])switch("HEAD"!==u&&204!==r.statusCode||delete r.headers["content-encoding"],(r.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":i.push(S.default.createUnzip(wt)),delete r.headers["content-encoding"];break;case"deflate":i.push(new gt),i.push(S.default.createUnzip(wt)),delete r.headers["content-encoding"];break;case"br":Ot&&(i.push(S.default.createBrotliDecompress(St)),delete r.headers["content-encoding"])}s=i.length>1?O.default.pipeline(i,he.noop):i[0];const p=O.default.finished(s,()=>{p(),v()}),f={status:r.statusCode,statusText:r.statusMessage,headers:new Ye(r.headers),config:e,request:l};if("stream"===a)f.data=s,tt(t,n,f);else{const r=[];let i=0;s.on("data",function(t){r.push(t),i+=t.length,e.maxContentLength>-1&&i>e.maxContentLength&&(m=!0,s.destroy(),n(new ve("maxContentLength size of "+e.maxContentLength+" exceeded",ve.ERR_BAD_RESPONSE,e,l)))}),s.on("aborted",function(){if(m)return;const t=new ve("stream has been aborted",ve.ERR_BAD_RESPONSE,e,l);s.destroy(t),n(t)}),s.on("error",function(t){d.destroyed||n(ve.from(t,null,e,l))}),s.on("end",function(){try{let e=1===r.length?r[0]:Buffer.concat(r);"arraybuffer"!==a&&(e=e.toString(c),c&&"utf8"!==c||(e=he.stripBOM(e))),f.data=e}catch(t){return n(ve.from(t,null,e,f.request,f))}tt(t,n,f)})}h.once("abort",e=>{s.destroyed||(s.emit("error",e),s.destroy())})}),h.once("abort",e=>{n(e),d.destroy(e)}),d.on("error",function(t){n(ve.from(t,null,e,d))}),d.on("socket",function(e){e.setKeepAlive(!0,6e4)}),e.timeout){const t=parseInt(e.timeout,10);if(Number.isNaN(t))return void n(new ve("error trying to parse `config.timeout` to int",ve.ERR_BAD_OPTION_VALUE,e,d));d.setTimeout(t,function(){if(l)return;let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||Ce;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new ve(t,r.clarifyTimeoutError?ve.ETIMEDOUT:ve.ECONNABORTED,e,d)),g()})}if(he.isStream(i)){let t=!1,n=!1;i.on("end",()=>{t=!0}),i.once("error",e=>{n=!0,d.destroy(e)}),i.on("close",()=>{t||n||g(new et("Request stream has been aborted",e,d))}),i.pipe(d)}else d.end(i)},new Promise((e,n)=>{let r,i;const o=(e,t)=>{i||(i=!0,r&&r(e,t))},s=e=>{o(e,!0),n(e)};t(t=>{o(t),e(t)},s,e=>r=e).catch(s)});var t},At=ze.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ze.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ze.origin),ze.navigator&&/(msie|trident)/i.test(ze.navigator.userAgent)):()=>!0,Mt=ze.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const s=[e+"="+encodeURIComponent(t)];he.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),he.isString(r)&&s.push("path="+r),he.isString(i)&&s.push("domain="+i),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}},Dt=e=>e instanceof Ye?{...e}:e;function Zt(e,t){t=t||{};const n={};function r(e,t,n,r){return he.isPlainObject(e)&&he.isPlainObject(t)?he.merge.call({caseless:r},e,t):he.isPlainObject(t)?he.merge({},t):he.isArray(t)?t.slice():t}function i(e,t,n,i){return he.isUndefined(t)?he.isUndefined(e)?void 0:r(void 0,e,0,i):r(e,t,0,i)}function o(e,t){if(!he.isUndefined(t))return r(void 0,t)}function s(e,t){return he.isUndefined(t)?he.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,i,o){return o in t?r(n,i):o in e?r(void 0,n):void 0}const c={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t,n)=>i(Dt(e),Dt(t),0,!0)};return he.forEach(Object.keys({...e,...t}),function(r){const o=c[r]||i,s=o(e[r],t[r],r);he.isUndefined(s)&&o!==a||(n[r]=s)}),n}const Ut=e=>{const t=Zt({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:s,auth:a}=t;if(t.headers=s=Ye.from(s),t.url=Ee(nt(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),he.isFormData(n))if(ze.hasStandardBrowserEnv||ze.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(he.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&s.set(e,n)})}if(ze.hasStandardBrowserEnv&&(r&&he.isFunction(r)&&(r=r(t)),r||!1!==r&&At(t.url))){const e=i&&o&&Mt.read(o);e&&s.set(i,e)}return t},Lt="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=Ut(e);let i=r.data;const o=Ye.from(r.headers).normalize();let s,a,c,u,l,{responseType:d,onUploadProgress:p,onDownloadProgress:f}=r;function m(){u&&u(),l&&l(),r.cancelToken&&r.cancelToken.unsubscribe(s),r.signal&&r.signal.removeEventListener("abort",s)}let h=new XMLHttpRequest;function v(){if(!h)return;const r=Ye.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());tt(function(e){t(e),m()},function(e){n(e),m()},{data:d&&"text"!==d&&"json"!==d?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:e,request:h}),h=null}h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout,"onloadend"in h?h.onloadend=v:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(v)},h.onabort=function(){h&&(n(new ve("Request aborted",ve.ECONNABORTED,e,h)),h=null)},h.onerror=function(t){const r=new ve(t&&t.message?t.message:"Network Error",ve.ERR_NETWORK,e,h);r.event=t||null,n(r),h=null},h.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const i=r.transitional||Ce;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new ve(t,i.clarifyTimeoutError?ve.ETIMEDOUT:ve.ECONNABORTED,e,h)),h=null},void 0===i&&o.setContentType(null),"setRequestHeader"in h&&he.forEach(o.toJSON(),function(e,t){h.setRequestHeader(t,e)}),he.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),d&&"json"!==d&&(h.responseType=r.responseType),f&&([c,l]=_t(f,!0),h.addEventListener("progress",c)),p&&h.upload&&([a,u]=_t(p),h.upload.addEventListener("progress",a),h.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(s=t=>{h&&(n(!t||t.type?new et(null,e,h):t),h.abort(),h=null)},r.cancelToken&&r.cancelToken.subscribe(s),r.signal&&(r.signal.aborted?s():r.signal.addEventListener("abort",s)));const g=it(r.url);g&&-1===ze.protocols.indexOf(g)?n(new ve("Unsupported protocol "+g+":",ve.ERR_BAD_REQUEST,e)):h.send(i||null)})},zt=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const i=function(e){if(!n){n=!0,s();const t=e instanceof Error?e:this.reason;r.abort(t instanceof ve?t:new et(t instanceof Error?t.message:t))}};let o=t&&setTimeout(()=>{o=null,i(new ve(`timeout ${t} of ms exceeded`,ve.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}),e=null)};e.forEach(e=>e.addEventListener("abort",i));const{signal:a}=r;return a.unsubscribe=()=>he.asap(s),a}},Ft=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,i=0;for(;i<n;)r=i+t,yield e.slice(i,r),i=r},Bt=(e,t,n,r)=>{const i=async function*(e,t){for await(const n of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}}(e))yield*Ft(n,t)}(e,t);let o,s=0,a=e=>{o||(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await i.next();if(t)return a(),void e.close();let o=r.byteLength;if(n){let e=s+=o;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw a(e),e}},cancel:e=>(a(e),i.return())},{highWaterMark:2})},{isFunction:qt}=he,Vt=(({Request:e,Response:t})=>({Request:e,Response:t}))(he.global),{ReadableStream:Gt,TextEncoder:Wt}=he.global,Kt=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Ht=e=>{e=he.merge.call({skipUndefined:!0},Vt,e);const{fetch:t,Request:n,Response:r}=e,i=t?qt(t):"function"==typeof fetch,o=qt(n),s=qt(r);if(!i)return!1;const a=i&&qt(Gt),c=i&&("function"==typeof Wt?(u=new Wt,e=>u.encode(e)):async e=>new Uint8Array(await new n(e).arrayBuffer()));var u;const l=o&&a&&Kt(()=>{let e=!1;const t=new n(ze.origin,{body:new Gt,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),d=s&&a&&Kt(()=>he.isReadableStream(new r("").body)),p={stream:d&&(e=>e.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!p[e]&&(p[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new ve(`Response type '${e}' is not supported`,ve.ERR_NOT_SUPPORT,n)})});return async e=>{let{url:i,method:s,data:a,signal:u,cancelToken:f,timeout:m,onDownloadProgress:h,onUploadProgress:v,responseType:g,headers:y,withCredentials:_="same-origin",fetchOptions:b}=Ut(e),x=t||fetch;g=g?(g+"").toLowerCase():"text";let w=zt([u,f&&f.toAbortSignal()],m),S=null;const O=w&&w.unsubscribe&&(()=>{w.unsubscribe()});let k;try{if(v&&l&&"get"!==s&&"head"!==s&&0!==(k=await(async(e,t)=>{const r=he.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(he.isBlob(e))return e.size;if(he.isSpecCompliantForm(e)){const t=new n(ze.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return he.isArrayBufferView(e)||he.isArrayBuffer(e)?e.byteLength:(he.isURLSearchParams(e)&&(e+=""),he.isString(e)?(await c(e)).byteLength:void 0)})(t):r})(y,a))){let e,t=new n(i,{method:"POST",body:a,duplex:"half"});if(he.isFormData(a)&&(e=t.headers.get("content-type"))&&y.setContentType(e),t.body){const[e,n]=bt(k,_t(xt(v)));a=Bt(t.body,65536,e,n)}}he.isString(_)||(_=_?"include":"omit");const t=o&&"credentials"in n.prototype,u={...b,signal:w,method:s.toUpperCase(),headers:y.normalize().toJSON(),body:a,duplex:"half",credentials:t?_:void 0};S=o&&new n(i,u);let f=await(o?x(S,b):x(i,u));const m=d&&("stream"===g||"response"===g);if(d&&(h||m&&O)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=f[t]});const t=he.toFiniteNumber(f.headers.get("content-length")),[n,i]=h&&bt(t,_t(xt(h),!0))||[];f=new r(Bt(f.body,65536,n,()=>{i&&i(),O&&O()}),e)}g=g||"text";let $=await p[he.findKey(p,g)||"text"](f,e);return!m&&O&&O(),await new Promise((t,n)=>{tt(t,n,{data:$,headers:Ye.from(f.headers),status:f.status,statusText:f.statusText,config:e,request:S})})}catch(t){if(O&&O(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new ve("Network Error",ve.ERR_NETWORK,e,S),{cause:t.cause||t});throw ve.from(t,t&&t.code,e,S)}}},Jt=new Map,Yt=e=>{let t=e?e.env:{};const{fetch:n,Request:r,Response:i}=t,o=[r,i,n];let s,a,c=o.length,u=Jt;for(;c--;)s=o[c],a=u.get(s),void 0===a&&u.set(s,a=c?new Map:Ht(t)),u=a;return a};Yt();const Xt={http:Nt,xhr:Lt,fetch:{get:Yt}};he.forEach(Xt,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const Qt=e=>`- ${e}`,en=e=>he.isFunction(e)||null===e||!1===e,tn=(e,t)=>{e=he.isArray(e)?e:[e];const{length:n}=e;let r,i;const o={};for(let s=0;s<n;s++){let n;if(r=e[s],i=r,!en(r)&&(i=Xt[(n=String(r)).toLowerCase()],void 0===i))throw new ve(`Unknown adapter '${n}'`);if(i&&(he.isFunction(i)||(i=i.get(t))))break;o[n||"#"+s]=i}if(!i){const e=Object.entries(o).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new ve("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(Qt).join("\n"):" "+Qt(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return i};function nn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new et(null,e)}function rn(e){return nn(e),e.headers=Ye.from(e.headers),e.data=Xe.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),tn(e.adapter||qe.adapter,e)(e).then(function(t){return nn(e),t.data=Xe.call(e,e.transformResponse,t),t.headers=Ye.from(t.headers),t},function(t){return Qe(t)||(nn(e),t&&t.response&&(t.response.data=Xe.call(e,e.transformResponse,t.response),t.response.headers=Ye.from(t.response.headers))),Promise.reject(t)})}const on={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{on[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const sn={};on.transitional=function(e,t,n){function r(e,t){return"[Axios v"+rt+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,o)=>{if(!1===e)throw new ve(r(i," has been removed"+(t?" in "+t:"")),ve.ERR_DEPRECATED);return t&&!sn[i]&&(sn[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}},on.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const an={assertOptions:function(e,t,n){if("object"!=typeof e)throw new ve("options must be an object",ve.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],s=t[o];if(s){const t=e[o],n=void 0===t||s(t,o,e);if(!0!==n)throw new ve("option "+o+" must be "+n,ve.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new ve("Unknown option "+o,ve.ERR_BAD_OPTION)}},validators:on},cn=an.validators;class un{constructor(e){this.defaults=e||{},this.interceptors={request:new Te,response:new Te}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Zt(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;void 0!==n&&an.assertOptions(n,{silentJSONParsing:cn.transitional(cn.boolean),forcedJSONParsing:cn.transitional(cn.boolean),clarifyTimeoutError:cn.transitional(cn.boolean)},!1),null!=r&&(he.isFunction(r)?t.paramsSerializer={serialize:r}:an.assertOptions(r,{encode:cn.function,serialize:cn.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),an.assertOptions(t,{baseUrl:cn.spelling("baseURL"),withXsrfToken:cn.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=i&&he.merge(i.common,i[t.method]);i&&he.forEach(["delete","get","head","post","put","patch","common"],e=>{delete i[e]}),t.headers=Ye.concat(o,i);const s=[];let a=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,s.unshift(e.fulfilled,e.rejected))});const c=[];let u;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let l,d=0;if(!a){const e=[rn.bind(this),void 0];for(e.unshift(...s),e.push(...c),l=e.length,u=Promise.resolve(t);d<l;)u=u.then(e[d++],e[d++]);return u}l=s.length;let p=t;for(;d<l;){const e=s[d++],t=s[d++];try{p=e(p)}catch(e){t.call(this,e);break}}try{u=rn.call(this,p)}catch(e){return Promise.reject(e)}for(d=0,l=c.length;d<l;)u=u.then(c[d++],c[d++]);return u}getUri(e){return Ee(nt((e=Zt(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}he.forEach(["delete","get","head","options"],function(e){un.prototype[e]=function(t,n){return this.request(Zt(n||{},{method:e,url:t,data:(n||{}).data}))}}),he.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,i){return this.request(Zt(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}un.prototype[e]=t(),un.prototype[e+"Form"]=t(!0)});const ln=un;class dn{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,i){n.reason||(n.reason=new et(e,r,i),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new dn(function(t){e=t}),cancel:e}}}const pn=dn,fn={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(fn).forEach(([e,t])=>{fn[t]=e});const mn=fn,hn=function e(t){const n=new ln(t),r=k(ln.prototype.request,n);return he.extend(r,ln.prototype,n,{allOwnKeys:!0}),he.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Zt(t,n))},r}(qe);hn.Axios=ln,hn.CanceledError=et,hn.CancelToken=pn,hn.isCancel=Qe,hn.VERSION=rt,hn.toFormData=Se,hn.AxiosError=ve,hn.Cancel=hn.CanceledError,hn.all=function(e){return Promise.all(e)},hn.spread=function(e){return function(t){return e.apply(null,t)}},hn.isAxiosError=function(e){return he.isObject(e)&&!0===e.isAxiosError},hn.mergeConfig=Zt,hn.AxiosHeaders=Ye,hn.formToJSON=e=>Fe(he.isHTMLForm(e)?new FormData(e):e),hn.getAdapter=tn,hn.HttpStatusCode=mn,hn.default=hn,e.exports=hn},79332:(e,t,n)=>{var r=n(83376),i=n(55911),o=n(5971),s=n(22370),a=n(84953)("engine.io-client:polling-xhr"),c=n(13198);function u(){}function l(e){if(i.call(this,e),this.requestTimeout=e.requestTimeout,this.extraHeaders=e.extraHeaders,"undefined"!=typeof location){var t="https:"===location.protocol,n=location.port;n||(n=t?443:80),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||n!==e.port,this.xs=e.secure!==t}}function d(e){this.method=e.method||"GET",this.uri=e.uri,this.xd=!!e.xd,this.xs=!!e.xs,this.async=!1!==e.async,this.data=void 0!==e.data?e.data:null,this.agent=e.agent,this.isBinary=e.isBinary,this.supportsBinary=e.supportsBinary,this.enablesXDR=e.enablesXDR,this.withCredentials=e.withCredentials,this.requestTimeout=e.requestTimeout,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.extraHeaders=e.extraHeaders,this.create()}function p(){for(var e in d.requests)d.requests.hasOwnProperty(e)&&d.requests[e].abort()}e.exports=l,e.exports.Request=d,s(l,i),l.prototype.supportsBinary=!0,l.prototype.request=function(e){return(e=e||{}).uri=this.uri(),e.xd=this.xd,e.xs=this.xs,e.agent=this.agent||!1,e.supportsBinary=this.supportsBinary,e.enablesXDR=this.enablesXDR,e.withCredentials=this.withCredentials,e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized,e.requestTimeout=this.requestTimeout,e.extraHeaders=this.extraHeaders,new d(e)},l.prototype.doWrite=function(e,t){var n="string"!=typeof e&&void 0!==e,r=this.request({method:"POST",data:e,isBinary:n}),i=this;r.on("success",t),r.on("error",function(e){i.onError("xhr post error",e)}),this.sendXhr=r},l.prototype.doPoll=function(){a("xhr poll");var e=this.request(),t=this;e.on("data",function(e){t.onData(e)}),e.on("error",function(e){t.onError("xhr poll error",e)}),this.pollXhr=e},o(d.prototype),d.prototype.create=function(){var e={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized;var t=this.xhr=new r(e),n=this;try{a("xhr open %s: %s",this.method,this.uri),t.open(this.method,this.uri,this.async);try{if(this.extraHeaders)for(var i in t.setDisableHeaderCheck&&t.setDisableHeaderCheck(!0),this.extraHeaders)this.extraHeaders.hasOwnProperty(i)&&t.setRequestHeader(i,this.extraHeaders[i])}catch(e){}if("POST"===this.method)try{this.isBinary?t.setRequestHeader("Content-type","application/octet-stream"):t.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{t.setRequestHeader("Accept","*/*")}catch(e){}"withCredentials"in t&&(t.withCredentials=this.withCredentials),this.requestTimeout&&(t.timeout=this.requestTimeout),this.hasXDR()?(t.onload=function(){n.onLoad()},t.onerror=function(){n.onError(t.responseText)}):t.onreadystatechange=function(){if(2===t.readyState)try{var e=t.getResponseHeader("Content-Type");(n.supportsBinary&&"application/octet-stream"===e||"application/octet-stream; charset=UTF-8"===e)&&(t.responseType="arraybuffer")}catch(e){}4===t.readyState&&(200===t.status||1223===t.status?n.onLoad():setTimeout(function(){n.onError("number"==typeof t.status?t.status:0)},0))},a("xhr data %s",this.data),t.send(this.data)}catch(e){return void setTimeout(function(){n.onError(e)},0)}"undefined"!=typeof document&&(this.index=d.requestsCount++,d.requests[this.index]=this)},d.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},d.prototype.onData=function(e){this.emit("data",e),this.onSuccess()},d.prototype.onError=function(e){this.emit("error",e),this.cleanup(!0)},d.prototype.cleanup=function(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=u:this.xhr.onreadystatechange=u,e)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete d.requests[this.index],this.xhr=null}},d.prototype.onLoad=function(){var e;try{var t;try{t=this.xhr.getResponseHeader("Content-Type")}catch(e){}e=("application/octet-stream"===t||"application/octet-stream; charset=UTF-8"===t)&&this.xhr.response||this.xhr.responseText}catch(e){this.onError(e)}null!=e&&this.onData(e)},d.prototype.hasXDR=function(){return"undefined"!=typeof XDomainRequest&&!this.xs&&this.enablesXDR},d.prototype.abort=function(){this.cleanup()},d.requestsCount=0,d.requests={},"undefined"!=typeof document&&("function"==typeof attachEvent?attachEvent("onunload",p):"function"==typeof addEventListener&&addEventListener("onpagehide"in c?"pagehide":"unload",p,!1))},79538:e=>{"use strict";e.exports=ReferenceError},79612:e=>{"use strict";e.exports=Object},79877:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;const r=n(70513),i=n(91140),o=n(24971),s=n(66596),a=n(99048);var c;function u(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every(r.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(c||(t.DataType=c={})),t.getSchemaTypes=function(e){const t=u(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},t.getJSONTypes=u,t.coerceAndCheckDataType=function(e,t){const{gen:n,data:r,opts:o}=e,a=function(e,t){return t?e.filter(e=>l.has(e)||"array"===t&&"array"===e):[]}(t,o.coerceTypes),u=t.length>0&&!(0===a.length&&1===t.length&&(0,i.schemaHasRulesForType)(e,t[0]));if(u){const i=p(t,r,o.strictNumbers,c.Wrong);n.if(i,()=>{a.length?function(e,t,n){const{gen:r,data:i,opts:o}=e,a=r.let("dataType",s._`typeof ${i}`),c=r.let("coerced",s._`undefined`);"array"===o.coerceTypes&&r.if(s._`${a} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>r.assign(i,s._`${i}[0]`).assign(a,s._`typeof ${i}`).if(p(t,i,o.strictNumbers),()=>r.assign(c,i))),r.if(s._`${c} !== undefined`);for(const e of n)(l.has(e)||"array"===e&&"array"===o.coerceTypes)&&u(e);function u(e){switch(e){case"string":return void r.elseIf(s._`${a} == "number" || ${a} == "boolean"`).assign(c,s._`"" + ${i}`).elseIf(s._`${i} === null`).assign(c,s._`""`);case"number":return void r.elseIf(s._`${a} == "boolean" || ${i} === null
7
+ || (${a} == "string" && ${i} && ${i} == +${i})`).assign(c,s._`+${i}`);case"integer":return void r.elseIf(s._`${a} === "boolean" || ${i} === null
8
+ || (${a} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(c,s._`+${i}`);case"boolean":return void r.elseIf(s._`${i} === "false" || ${i} === 0 || ${i} === null`).assign(c,!1).elseIf(s._`${i} === "true" || ${i} === 1`).assign(c,!0);case"null":return r.elseIf(s._`${i} === "" || ${i} === 0 || ${i} === false`),void r.assign(c,null);case"array":r.elseIf(s._`${a} === "string" || ${a} === "number"
9
+ || ${a} === "boolean" || ${i} === null`).assign(c,s._`[${i}]`)}}r.else(),m(e),r.endIf(),r.if(s._`${c} !== undefined`,()=>{r.assign(i,c),function({gen:e,parentData:t,parentDataProperty:n},r){e.if(s._`${t} !== undefined`,()=>e.assign(s._`${t}[${n}]`,r))}(e,c)})}(e,t,a):m(e)})}return u};const l=new Set(["string","number","integer","boolean","null"]);function d(e,t,n,r=c.Correct){const i=r===c.Correct?s.operators.EQ:s.operators.NEQ;let o;switch(e){case"null":return s._`${t} ${i} null`;case"array":o=s._`Array.isArray(${t})`;break;case"object":o=s._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":o=a(s._`!(${t} % 1) && !isNaN(${t})`);break;case"number":o=a();break;default:return s._`typeof ${t} ${i} ${e}`}return r===c.Correct?o:(0,s.not)(o);function a(e=s.nil){return(0,s.and)(s._`typeof ${t} == "number"`,e,n?s._`isFinite(${t})`:s.nil)}}function p(e,t,n,r){if(1===e.length)return d(e[0],t,n,r);let i;const o=(0,a.toHash)(e);if(o.array&&o.object){const e=s._`typeof ${t} != "object"`;i=o.null?e:s._`!${t} || ${e}`,delete o.null,delete o.array,delete o.object}else i=s.nil;o.number&&delete o.integer;for(const e in o)i=(0,s.and)(i,d(e,t,n,r));return i}t.checkDataType=d,t.checkDataTypes=p;const f={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?s._`{type: ${e}}`:s._`{type: ${t}}`};function m(e){const t=function(e){const{gen:t,data:n,schema:r}=e,i=(0,a.schemaRefOrVal)(e,r,"type");return{gen:t,keyword:"type",data:n,schema:r.type,schemaCode:i,schemaValue:i,parentSchema:r,params:{},it:e}}(e);(0,o.reportError)(t,f)}t.reportTypeError=m},79896:e=>{"use strict";e.exports=require("fs")},79939:(e,t,n)=>{function r(e){var n;function r(){if(r.enabled){var e=r,i=+new Date,o=i-(n||i);e.diff=o,e.prev=n,e.curr=i,n=i;for(var s=new Array(arguments.length),a=0;a<s.length;a++)s[a]=arguments[a];s[0]=t.coerce(s[0]),"string"!=typeof s[0]&&s.unshift("%O");var c=0;s[0]=s[0].replace(/%([a-zA-Z%])/g,function(n,r){if("%%"===n)return n;c++;var i=t.formatters[r];if("function"==typeof i){var o=s[c];n=i.call(e,o),s.splice(c,1),c--}return n}),t.formatArgs.call(e,s),(r.log||t.log||console.log.bind(console)).apply(e,s)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=function(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}(e),r.destroy=i,"function"==typeof t.init&&t.init(r),t.instances.push(r),r}function i(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}(t=e.exports=r.debug=r.default=r).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var o=t.instances[n];o.enabled=t.enabled(o.namespace)}},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(52902),t.instances=[],t.names=[],t.skips=[],t.formatters={}},79981:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var r=n(93697);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return r.KeywordCxt}});var i=n(66596);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return i._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return i.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return i.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return i.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return i.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return i.CodeGen}});const o=n(53781),s=n(7346),a=n(70513),c=n(81430),u=n(66596),l=n(90978),d=n(79877),p=n(99048),f=n(11808),m=n(86501),h=(e,t)=>new RegExp(e,t);h.code="new RegExp";const v=["removeAdditional","useDefaults","coerceTypes"],g=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),y={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},_={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function b(e){var t,n,r,i,o,s,a,c,u,l,d,p,f,v,g,y,_,b,x,w,S,O,k,$,P;const E=e.strict,T=null===(t=e.code)||void 0===t?void 0:t.optimize,C=!0===T||void 0===T?1:T||0,I=null!==(r=null===(n=e.code)||void 0===n?void 0:n.regExp)&&void 0!==r?r:h,j=null!==(i=e.uriResolver)&&void 0!==i?i:m.default;return{strictSchema:null===(s=null!==(o=e.strictSchema)&&void 0!==o?o:E)||void 0===s||s,strictNumbers:null===(c=null!==(a=e.strictNumbers)&&void 0!==a?a:E)||void 0===c||c,strictTypes:null!==(l=null!==(u=e.strictTypes)&&void 0!==u?u:E)&&void 0!==l?l:"log",strictTuples:null!==(p=null!==(d=e.strictTuples)&&void 0!==d?d:E)&&void 0!==p?p:"log",strictRequired:null!==(v=null!==(f=e.strictRequired)&&void 0!==f?f:E)&&void 0!==v&&v,code:e.code?{...e.code,optimize:C,regExp:I}:{optimize:C,regExp:I},loopRequired:null!==(g=e.loopRequired)&&void 0!==g?g:200,loopEnum:null!==(y=e.loopEnum)&&void 0!==y?y:200,meta:null===(_=e.meta)||void 0===_||_,messages:null===(b=e.messages)||void 0===b||b,inlineRefs:null===(x=e.inlineRefs)||void 0===x||x,schemaId:null!==(w=e.schemaId)&&void 0!==w?w:"$id",addUsedSchema:null===(S=e.addUsedSchema)||void 0===S||S,validateSchema:null===(O=e.validateSchema)||void 0===O||O,validateFormats:null===(k=e.validateFormats)||void 0===k||k,unicodeRegExp:null===($=e.unicodeRegExp)||void 0===$||$,int32range:null===(P=e.int32range)||void 0===P||P,uriResolver:j}}class x{constructor(e={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...b(e)};const{es5:t,lines:n}=this.opts.code;this.scope=new u.ValueScope({scope:{},prefixes:g,es5:t,lines:n}),this.logger=function(e){if(!1===e)return E;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const r=e.validateFormats;e.validateFormats=!1,this.RULES=(0,a.getRules)(),w.call(this,y,e,"NOT SUPPORTED"),w.call(this,_,e,"DEPRECATED","warn"),this._metaOpts=P.call(this),e.formats&&k.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&$.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),O.call(this),e.validateFormats=r}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:n}=this.opts;let r=f;"id"===n&&(r={...f},r.id=r.$id,delete r.$id),t&&e&&this.addMetaSchema(r,r[n],!1)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let n;if("string"==typeof e){if(n=this.getSchema(e),!n)throw new Error(`no schema with key or ref "${e}"`)}else n=this.compile(e);const r=n(t);return"$async"in n||(this.errors=n.errors),r}compile(e,t){const n=this._addSchema(e,t);return n.validate||this._compileSchemaEnv(n)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:n}=this.opts;return r.call(this,e,t);async function r(e,t){await i.call(this,e.$schema);const n=this._addSchema(e,t);return n.validate||o.call(this,n)}async function i(e){e&&!this.getSchema(e)&&await r.call(this,{$ref:e},!0)}async function o(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof s.default))throw t;return a.call(this,t),await c.call(this,t.missingSchema),o.call(this,e)}}function a({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function c(e){const n=await u.call(this,e);this.refs[e]||await i.call(this,n.$schema),this.refs[e]||this.addSchema(n,e,t)}async function u(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=n(e))}finally{delete this._loading[e]}}}addSchema(e,t,n,r=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,n,r);return this}let i;if("object"==typeof e){const{schemaId:t}=this.opts;if(i=e[t],void 0!==i&&"string"!=typeof i)throw new Error(`schema ${t} must be string`)}return t=(0,l.normalizeId)(t||i),this._checkUnique(t),this.schemas[t]=this._addSchema(e,n,t,r,!0),this}addMetaSchema(e,t,n=this.opts.validateSchema){return this.addSchema(e,t,!0,n),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let n;if(n=e.$schema,void 0!==n&&"string"!=typeof n)throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const r=this.validate(n,e);if(!r&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return r}getSchema(e){let t;for(;"string"==typeof(t=S.call(this,e));)e=t;if(void 0===t){const{schemaId:n}=this.opts,r=new c.SchemaEnv({schema:{},schemaId:n});if(t=c.resolveSchema.call(this,r,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=S.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{const t=e;this._cache.delete(t);let n=e[this.opts.schemaId];return n&&(n=(0,l.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let n;if("string"==typeof e)n=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=n);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(n=(t=e).keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(C.call(this,n,t),!t)return(0,p.eachItem)(n,e=>I.call(this,e)),this;R.call(this,t);const r={...t,type:(0,d.getJSONTypes)(t.type),schemaType:(0,d.getJSONTypes)(t.schemaType)};return(0,p.eachItem)(n,0===r.type.length?e=>I.call(this,e,r):e=>r.type.forEach(t=>I.call(this,e,r,t))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const n of t.rules){const t=n.rules.findIndex(t=>t.keyword===e);t>=0&&n.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:n="data"}={}){return e&&0!==e.length?e.map(e=>`${n}${e.instancePath} ${e.message}`).reduce((e,n)=>e+t+n):"No errors"}$dataMetaSchema(e,t){const n=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const r of t){const t=r.split("/").slice(1);let i=e;for(const e of t)i=i[e];for(const e in n){const t=n[e];if("object"!=typeof t)continue;const{$data:r}=t.definition,o=i[e];r&&o&&(i[e]=A(o))}}return e}_removeAllSchemas(e,t){for(const n in e){const r=e[n];t&&!t.test(n)||("string"==typeof r?delete e[n]:r&&!r.meta&&(this._cache.delete(r.schema),delete e[n]))}}_addSchema(e,t,n,r=this.opts.validateSchema,i=this.opts.addUsedSchema){let o;const{schemaId:s}=this.opts;if("object"==typeof e)o=e[s];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let a=this._cache.get(e);if(void 0!==a)return a;n=(0,l.normalizeId)(o||n);const u=l.getSchemaRefs.call(this,e,n);return a=new c.SchemaEnv({schema:e,schemaId:s,meta:t,baseId:n,localRefs:u}),this._cache.set(a.schema,a),i&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=a),r&&this.validateSchema(e,!0),a}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):c.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{c.compileSchema.call(this,e)}finally{this.opts=t}}}function w(e,t,n,r="error"){for(const i in e){const o=i;o in t&&this.logger[r](`${n}: option ${i}. ${e[o]}`)}}function S(e){return e=(0,l.normalizeId)(e),this.schemas[e]||this.refs[e]}function O(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function k(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function $(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const n=e[t];n.keyword||(n.keyword=t),this.addKeyword(n)}}}function P(){const e={...this.opts};for(const t of v)delete e[t];return e}x.ValidationError=o.default,x.MissingRefError=s.default,t.default=x;const E={log(){},warn(){},error(){}},T=/^[a-z_$][a-z0-9_$:-]*$/i;function C(e,t){const{RULES:n}=this;if((0,p.eachItem)(e,e=>{if(n.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!T.test(e))throw new Error(`Keyword ${e} has invalid name`)}),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function I(e,t,n){var r;const i=null==t?void 0:t.post;if(n&&i)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:o}=this;let s=i?o.post:o.rules.find(({type:e})=>e===n);if(s||(s={type:n,rules:[]},o.rules.push(s)),o.keywords[e]=!0,!t)return;const a={keyword:e,definition:{...t,type:(0,d.getJSONTypes)(t.type),schemaType:(0,d.getJSONTypes)(t.schemaType)}};t.before?j.call(this,s,a,t.before):s.rules.push(a),o.all[e]=a,null===(r=t.implements)||void 0===r||r.forEach(e=>this.addKeyword(e))}function j(e,t,n){const r=e.rules.findIndex(e=>e.keyword===n);r>=0?e.rules.splice(r,0,t):(e.rules.push(t),this.logger.warn(`rule ${n} is not defined`))}function R(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=A(t)),e.validateSchema=this.compile(t,!0))}const N={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function A(e){return{anyOf:[e,N]}}},80491:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.discriminatedUnion=t.date=t.boolean=t.bigint=t.array=t.any=t.coerce=t.ZodFirstPartyTypeKind=t.late=t.ZodSchema=t.Schema=t.ZodReadonly=t.ZodPipeline=t.ZodBranded=t.BRAND=t.ZodNaN=t.ZodCatch=t.ZodDefault=t.ZodNullable=t.ZodOptional=t.ZodTransformer=t.ZodEffects=t.ZodPromise=t.ZodNativeEnum=t.ZodEnum=t.ZodLiteral=t.ZodLazy=t.ZodFunction=t.ZodSet=t.ZodMap=t.ZodRecord=t.ZodTuple=t.ZodIntersection=t.ZodDiscriminatedUnion=t.ZodUnion=t.ZodObject=t.ZodArray=t.ZodVoid=t.ZodNever=t.ZodUnknown=t.ZodAny=t.ZodNull=t.ZodUndefined=t.ZodSymbol=t.ZodDate=t.ZodBoolean=t.ZodBigInt=t.ZodNumber=t.ZodString=t.ZodType=void 0,t.NEVER=t.void=t.unknown=t.union=t.undefined=t.tuple=t.transformer=t.symbol=t.string=t.strictObject=t.set=t.record=t.promise=t.preprocess=t.pipeline=t.ostring=t.optional=t.onumber=t.oboolean=t.object=t.number=t.nullable=t.null=t.never=t.nativeEnum=t.nan=t.map=t.literal=t.lazy=t.intersection=t.instanceof=t.function=t.enum=t.effect=void 0,t.datetimeRegex=I,t.custom=Se;const r=n(28651),i=n(99317),o=n(43368),s=n(90819),a=n(92034);class c{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const u=(e,t)=>{if((0,s.isValid)(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new r.ZodError(e.common.issues);return this._error=t,this._error}}};function l(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{const{message:o}=e;return"invalid_enum_value"===t.code?{message:o??i.defaultError}:void 0===i.data?{message:o??r??i.defaultError}:"invalid_type"!==t.code?{message:i.defaultError}:{message:o??n??i.defaultError}},description:i}}class d{get description(){return this._def.description}_getType(e){return(0,a.getParsedType)(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:(0,a.getParsedType)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new s.ParseStatus,ctx:{common:e.parent.common,data:e.data,parsedType:(0,a.getParsedType)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if((0,s.isAsync)(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){const n={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,a.getParsedType)(e)},r=this._parseSync({data:e,path:n.path,parent:n});return u(n,r)}"~validate"(e){const t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,a.getParsedType)(e)};if(!this["~standard"].async)try{const n=this._parseSync({data:e,path:[],parent:t});return(0,s.isValid)(n)?{value:n.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>(0,s.isValid)(e)?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){const n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){const n={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,a.getParsedType)(e)},r=this._parse({data:e,path:n.path,parent:n}),i=await((0,s.isAsync)(r)?r:Promise.resolve(r));return u(n,i)}refine(e,t){const n=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,i)=>{const o=e(t),s=()=>i.addIssue({code:r.ZodIssueCode.custom,...n(t)});return"undefined"!=typeof Promise&&o instanceof Promise?o.then(e=>!!e||(s(),!1)):!!o||(s(),!1)})}refinement(e,t){return this._refinement((n,r)=>!!e(n)||(r.addIssue("function"==typeof t?t(n,r):t),!1))}_refinement(e){return new fe({schema:this,typeName:Oe.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return me.create(this,this._def)}nullable(){return he.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return K.create(this)}promise(){return pe.create(this,this._def)}or(e){return Y.create([this,e],this._def)}and(e){return te.create(this,e,this._def)}transform(e){return new fe({...l(this._def),schema:this,typeName:Oe.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"==typeof e?e:()=>e;return new ve({...l(this._def),innerType:this,defaultValue:t,typeName:Oe.ZodDefault})}brand(){return new _e({typeName:Oe.ZodBranded,type:this,...l(this._def)})}catch(e){const t="function"==typeof e?e:()=>e;return new ge({...l(this._def),innerType:this,catchValue:t,typeName:Oe.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return be.create(this,e)}readonly(){return xe.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}t.ZodType=d,t.Schema=d,t.ZodSchema=d;const p=/^c[^\s-]{8,}$/i,f=/^[0-9a-z]+$/,m=/^[0-9A-HJKMNP-TV-Z]{26}$/i,h=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,v=/^[a-z0-9_-]{21}$/i,g=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,y=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,_=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;let b;const x=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,w=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,S=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,O=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,k=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,$=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,P="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",E=new RegExp(`^${P}$`);function T(e){let t="[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`),`([01]\\d|2[0-3]):[0-5]\\d(:${t})${e.precision?"+":"?"}`}function C(e){return new RegExp(`^${T(e)}$`)}function I(e){let t=`${P}T${T(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function j(e,t){return!("v4"!==t&&t||!x.test(e))||!("v6"!==t&&t||!S.test(e))}function R(e,t){if(!g.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),i=JSON.parse(atob(r));return!("object"!=typeof i||null===i||"typ"in i&&"JWT"!==i?.typ||!i.alg||t&&i.alg!==t)}catch{return!1}}function N(e,t){return!("v4"!==t&&t||!w.test(e))||!("v6"!==t&&t||!O.test(e))}class A extends d{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==a.ZodParsedType.string){const t=this._getOrReturnCtx(e);return(0,s.addIssueToContext)(t,{code:r.ZodIssueCode.invalid_type,expected:a.ZodParsedType.string,received:t.parsedType}),s.INVALID}const t=new s.ParseStatus;let n;for(const i of this._def.checks)if("min"===i.kind)e.data.length<i.value&&(n=this._getOrReturnCtx(e,n),(0,s.addIssueToContext)(n,{code:r.ZodIssueCode.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),t.dirty());else if("max"===i.kind)e.data.length>i.value&&(n=this._getOrReturnCtx(e,n),(0,s.addIssueToContext)(n,{code:r.ZodIssueCode.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),t.dirty());else if("length"===i.kind){const o=e.data.length>i.value,a=e.data.length<i.value;(o||a)&&(n=this._getOrReturnCtx(e,n),o?(0,s.addIssueToContext)(n,{code:r.ZodIssueCode.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):a&&(0,s.addIssueToContext)(n,{code:r.ZodIssueCode.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),t.dirty())}else if("email"===i.kind)_.test(e.data)||(n=this._getOrReturnCtx(e,n),(0,s.addIssueToContext)(n,{validation:"email",code:r.ZodIssueCode.invalid_string,message:i.message}),t.dirty());else if("emoji"===i.kind)b||(b=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),b.test(e.data)||(n=this._getOrReturnCtx(e,n),(0,s.addIssueToContext)(n,{validation:"emoji",code:r.ZodIssueCode.invalid_string,message:i.message}),t.dirty());else if("uuid"===i.kind)h.test(e.data)||(n=this._getOrReturnCtx(e,n),(0,s.addIssueToContext)(n,{validation:"uuid",code:r.ZodIssueCode.invalid_string,message:i.message}),t.dirty());else if("nanoid"===i.kind)v.test(e.data)||(n=this._getOrReturnCtx(e,n),(0,s.addIssueToContext)(n,{validation:"nanoid",code:r.ZodIssueCode.invalid_string,message:i.message}),t.dirty());else if("cuid"===i.kind)p.test(e.data)||(n=this._getOrReturnCtx(e,n),(0,s.addIssueToContext)(n,{validation:"cuid",code:r.ZodIssueCode.invalid_string,message:i.message}),t.dirty());else if("cuid2"===i.kind)f.test(e.data)||(n=this._getOrReturnCtx(e,n),(0,s.addIssueToContext)(n,{validation:"cuid2",code:r.ZodIssueCode.invalid_string,message:i.message}),t.dirty());else if("ulid"===i.kind)m.test(e.data)||(n=this._getOrReturnCtx(e,n),(0,s.addIssueToContext)(n,{validation:"ulid",code:r.ZodIssueCode.invalid_string,message:i.message}),t.dirty());else if("url"===i.kind)try{new URL(e.data)}catch{n=this._getOrReturnCtx(e,n),(0,s.addIssueToContext)(n,{validation:"url",code:r.ZodIssueCode.invalid_string,message:i.message}),t.dirty()}else"regex"===i.kind?(i.regex.lastIndex=0,i.regex.test(e.data)||(n=this._getOrReturnCtx(e,n),(0,s.addIssueToContext)(n,{validation:"regex",code:r.ZodIssueCode.invalid_string,message:i.message}),t.dirty())):"trim"===i.kind?e.data=e.data.trim():"includes"===i.kind?e.data.includes(i.value,i.position)||(n=this._getOrReturnCtx(e,n),(0,s.addIssueToContext)(n,{code:r.ZodIssueCode.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),t.dirty()):"toLowerCase"===i.kind?e.data=e.data.toLowerCase():"toUpperCase"===i.kind?e.data=e.data.toUpperCase():"startsWith"===i.kind?e.data.startsWith(i.value)||(n=this._getOrReturnCtx(e,n),(0,s.addIssueToContext)(n,{code:r.ZodIssueCode.invalid_string,validation:{startsWith:i.value},message:i.message}),t.dirty()):"endsWith"===i.kind?e.data.endsWith(i.value)||(n=this._getOrReturnCtx(e,n),(0,s.addIssueToContext)(n,{code:r.ZodIssueCode.invalid_string,validation:{endsWith:i.value},message:i.message}),t.dirty()):"datetime"===i.kind?I(i).test(e.data)||(n=this._getOrReturnCtx(e,n),(0,s.addIssueToContext)(n,{code:r.ZodIssueCode.invalid_string,validation:"datetime",message:i.message}),t.dirty()):"date"===i.kind?E.test(e.data)||(n=this._getOrReturnCtx(e,n),(0,s.addIssueToContext)(n,{code:r.ZodIssueCode.invalid_string,validation:"date",message:i.message}),t.dirty()):"time"===i.kind?C(i).test(e.data)||(n=this._getOrReturnCtx(e,n),(0,s.addIssueToContext)(n,{code:r.ZodIssueCode.invalid_string,validation:"time",message:i.message}),t.dirty()):"duration"===i.kind?y.test(e.data)||(n=this._getOrReturnCtx(e,n),(0,s.addIssueToContext)(n,{validation:"duration",code:r.ZodIssueCode.invalid_string,message:i.message}),t.dirty()):"ip"===i.kind?j(e.data,i.version)||(n=this._getOrReturnCtx(e,n),(0,s.addIssueToContext)(n,{validation:"ip",code:r.ZodIssueCode.invalid_string,message:i.message}),t.dirty()):"jwt"===i.kind?R(e.data,i.alg)||(n=this._getOrReturnCtx(e,n),(0,s.addIssueToContext)(n,{validation:"jwt",code:r.ZodIssueCode.invalid_string,message:i.message}),t.dirty()):"cidr"===i.kind?N(e.data,i.version)||(n=this._getOrReturnCtx(e,n),(0,s.addIssueToContext)(n,{validation:"cidr",code:r.ZodIssueCode.invalid_string,message:i.message}),t.dirty()):"base64"===i.kind?k.test(e.data)||(n=this._getOrReturnCtx(e,n),(0,s.addIssueToContext)(n,{validation:"base64",code:r.ZodIssueCode.invalid_string,message:i.message}),t.dirty()):"base64url"===i.kind?$.test(e.data)||(n=this._getOrReturnCtx(e,n),(0,s.addIssueToContext)(n,{validation:"base64url",code:r.ZodIssueCode.invalid_string,message:i.message}),t.dirty()):a.util.assertNever(i);return{status:t.value,value:e.data}}_regex(e,t,n){return this.refinement(t=>e.test(t),{validation:t,code:r.ZodIssueCode.invalid_string,...o.errorUtil.errToObj(n)})}_addCheck(e){return new A({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...o.errorUtil.errToObj(e)})}url(e){return this._addCheck({kind:"url",...o.errorUtil.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...o.errorUtil.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...o.errorUtil.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...o.errorUtil.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...o.errorUtil.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...o.errorUtil.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...o.errorUtil.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...o.errorUtil.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...o.errorUtil.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...o.errorUtil.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...o.errorUtil.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...o.errorUtil.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...o.errorUtil.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===e?.precision?null:e?.precision,...o.errorUtil.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...o.errorUtil.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...o.errorUtil.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...o.errorUtil.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...o.errorUtil.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...o.errorUtil.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...o.errorUtil.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...o.errorUtil.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...o.errorUtil.errToObj(t)})}nonempty(e){return this.min(1,o.errorUtil.errToObj(e))}trim(){return new A({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new A({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new A({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function M(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r;return Number.parseInt(e.toFixed(i).replace(".",""))%Number.parseInt(t.toFixed(i).replace(".",""))/10**i}t.ZodString=A,A.create=e=>new A({checks:[],typeName:Oe.ZodString,coerce:e?.coerce??!1,...l(e)});class D extends d{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==a.ZodParsedType.number){const t=this._getOrReturnCtx(e);return(0,s.addIssueToContext)(t,{code:r.ZodIssueCode.invalid_type,expected:a.ZodParsedType.number,received:t.parsedType}),s.INVALID}let t;const n=new s.ParseStatus;for(const i of this._def.checks)"int"===i.kind?a.util.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),(0,s.addIssueToContext)(t,{code:r.ZodIssueCode.invalid_type,expected:"integer",received:"float",message:i.message}),n.dirty()):"min"===i.kind?(i.inclusive?e.data<i.value:e.data<=i.value)&&(t=this._getOrReturnCtx(e,t),(0,s.addIssueToContext)(t,{code:r.ZodIssueCode.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),n.dirty()):"max"===i.kind?(i.inclusive?e.data>i.value:e.data>=i.value)&&(t=this._getOrReturnCtx(e,t),(0,s.addIssueToContext)(t,{code:r.ZodIssueCode.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),n.dirty()):"multipleOf"===i.kind?0!==M(e.data,i.value)&&(t=this._getOrReturnCtx(e,t),(0,s.addIssueToContext)(t,{code:r.ZodIssueCode.not_multiple_of,multipleOf:i.value,message:i.message}),n.dirty()):"finite"===i.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),(0,s.addIssueToContext)(t,{code:r.ZodIssueCode.not_finite,message:i.message}),n.dirty()):a.util.assertNever(i);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,o.errorUtil.toString(t))}gt(e,t){return this.setLimit("min",e,!1,o.errorUtil.toString(t))}lte(e,t){return this.setLimit("max",e,!0,o.errorUtil.toString(t))}lt(e,t){return this.setLimit("max",e,!1,o.errorUtil.toString(t))}setLimit(e,t,n,r){return new D({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:o.errorUtil.toString(r)}]})}_addCheck(e){return new D({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:o.errorUtil.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:o.errorUtil.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:o.errorUtil.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:o.errorUtil.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:o.errorUtil.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:o.errorUtil.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:o.errorUtil.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:o.errorUtil.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:o.errorUtil.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&a.util.isInteger(e.value))}get isFinite(){let e=null,t=null;for(const n of this._def.checks){if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.value<e)&&(e=n.value)}return Number.isFinite(t)&&Number.isFinite(e)}}t.ZodNumber=D,D.create=e=>new D({checks:[],typeName:Oe.ZodNumber,coerce:e?.coerce||!1,...l(e)});class Z extends d{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==a.ZodParsedType.bigint)return this._getInvalidInput(e);let t;const n=new s.ParseStatus;for(const i of this._def.checks)"min"===i.kind?(i.inclusive?e.data<i.value:e.data<=i.value)&&(t=this._getOrReturnCtx(e,t),(0,s.addIssueToContext)(t,{code:r.ZodIssueCode.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),n.dirty()):"max"===i.kind?(i.inclusive?e.data>i.value:e.data>=i.value)&&(t=this._getOrReturnCtx(e,t),(0,s.addIssueToContext)(t,{code:r.ZodIssueCode.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),n.dirty()):"multipleOf"===i.kind?e.data%i.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),(0,s.addIssueToContext)(t,{code:r.ZodIssueCode.not_multiple_of,multipleOf:i.value,message:i.message}),n.dirty()):a.util.assertNever(i);return{status:n.value,value:e.data}}_getInvalidInput(e){const t=this._getOrReturnCtx(e);return(0,s.addIssueToContext)(t,{code:r.ZodIssueCode.invalid_type,expected:a.ZodParsedType.bigint,received:t.parsedType}),s.INVALID}gte(e,t){return this.setLimit("min",e,!0,o.errorUtil.toString(t))}gt(e,t){return this.setLimit("min",e,!1,o.errorUtil.toString(t))}lte(e,t){return this.setLimit("max",e,!0,o.errorUtil.toString(t))}lt(e,t){return this.setLimit("max",e,!1,o.errorUtil.toString(t))}setLimit(e,t,n,r){return new Z({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:o.errorUtil.toString(r)}]})}_addCheck(e){return new Z({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:o.errorUtil.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:o.errorUtil.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:o.errorUtil.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:o.errorUtil.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:o.errorUtil.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}t.ZodBigInt=Z,Z.create=e=>new Z({checks:[],typeName:Oe.ZodBigInt,coerce:e?.coerce??!1,...l(e)});class U extends d{_parse(e){if(this._def.coerce&&(e.data=Boolean(e.data)),this._getType(e)!==a.ZodParsedType.boolean){const t=this._getOrReturnCtx(e);return(0,s.addIssueToContext)(t,{code:r.ZodIssueCode.invalid_type,expected:a.ZodParsedType.boolean,received:t.parsedType}),s.INVALID}return(0,s.OK)(e.data)}}t.ZodBoolean=U,U.create=e=>new U({typeName:Oe.ZodBoolean,coerce:e?.coerce||!1,...l(e)});class L extends d{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==a.ZodParsedType.date){const t=this._getOrReturnCtx(e);return(0,s.addIssueToContext)(t,{code:r.ZodIssueCode.invalid_type,expected:a.ZodParsedType.date,received:t.parsedType}),s.INVALID}if(Number.isNaN(e.data.getTime())){const t=this._getOrReturnCtx(e);return(0,s.addIssueToContext)(t,{code:r.ZodIssueCode.invalid_date}),s.INVALID}const t=new s.ParseStatus;let n;for(const i of this._def.checks)"min"===i.kind?e.data.getTime()<i.value&&(n=this._getOrReturnCtx(e,n),(0,s.addIssueToContext)(n,{code:r.ZodIssueCode.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),t.dirty()):"max"===i.kind?e.data.getTime()>i.value&&(n=this._getOrReturnCtx(e,n),(0,s.addIssueToContext)(n,{code:r.ZodIssueCode.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),t.dirty()):a.util.assertNever(i);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new L({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:o.errorUtil.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:o.errorUtil.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}t.ZodDate=L,L.create=e=>new L({checks:[],coerce:e?.coerce||!1,typeName:Oe.ZodDate,...l(e)});class z extends d{_parse(e){if(this._getType(e)!==a.ZodParsedType.symbol){const t=this._getOrReturnCtx(e);return(0,s.addIssueToContext)(t,{code:r.ZodIssueCode.invalid_type,expected:a.ZodParsedType.symbol,received:t.parsedType}),s.INVALID}return(0,s.OK)(e.data)}}t.ZodSymbol=z,z.create=e=>new z({typeName:Oe.ZodSymbol,...l(e)});class F extends d{_parse(e){if(this._getType(e)!==a.ZodParsedType.undefined){const t=this._getOrReturnCtx(e);return(0,s.addIssueToContext)(t,{code:r.ZodIssueCode.invalid_type,expected:a.ZodParsedType.undefined,received:t.parsedType}),s.INVALID}return(0,s.OK)(e.data)}}t.ZodUndefined=F,F.create=e=>new F({typeName:Oe.ZodUndefined,...l(e)});class B extends d{_parse(e){if(this._getType(e)!==a.ZodParsedType.null){const t=this._getOrReturnCtx(e);return(0,s.addIssueToContext)(t,{code:r.ZodIssueCode.invalid_type,expected:a.ZodParsedType.null,received:t.parsedType}),s.INVALID}return(0,s.OK)(e.data)}}t.ZodNull=B,B.create=e=>new B({typeName:Oe.ZodNull,...l(e)});class q extends d{constructor(){super(...arguments),this._any=!0}_parse(e){return(0,s.OK)(e.data)}}t.ZodAny=q,q.create=e=>new q({typeName:Oe.ZodAny,...l(e)});class V extends d{constructor(){super(...arguments),this._unknown=!0}_parse(e){return(0,s.OK)(e.data)}}t.ZodUnknown=V,V.create=e=>new V({typeName:Oe.ZodUnknown,...l(e)});class G extends d{_parse(e){const t=this._getOrReturnCtx(e);return(0,s.addIssueToContext)(t,{code:r.ZodIssueCode.invalid_type,expected:a.ZodParsedType.never,received:t.parsedType}),s.INVALID}}t.ZodNever=G,G.create=e=>new G({typeName:Oe.ZodNever,...l(e)});class W extends d{_parse(e){if(this._getType(e)!==a.ZodParsedType.undefined){const t=this._getOrReturnCtx(e);return(0,s.addIssueToContext)(t,{code:r.ZodIssueCode.invalid_type,expected:a.ZodParsedType.void,received:t.parsedType}),s.INVALID}return(0,s.OK)(e.data)}}t.ZodVoid=W,W.create=e=>new W({typeName:Oe.ZodVoid,...l(e)});class K extends d{_parse(e){const{ctx:t,status:n}=this._processInputParams(e),i=this._def;if(t.parsedType!==a.ZodParsedType.array)return(0,s.addIssueToContext)(t,{code:r.ZodIssueCode.invalid_type,expected:a.ZodParsedType.array,received:t.parsedType}),s.INVALID;if(null!==i.exactLength){const e=t.data.length>i.exactLength.value,o=t.data.length<i.exactLength.value;(e||o)&&((0,s.addIssueToContext)(t,{code:e?r.ZodIssueCode.too_big:r.ZodIssueCode.too_small,minimum:o?i.exactLength.value:void 0,maximum:e?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),n.dirty())}if(null!==i.minLength&&t.data.length<i.minLength.value&&((0,s.addIssueToContext)(t,{code:r.ZodIssueCode.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),n.dirty()),null!==i.maxLength&&t.data.length>i.maxLength.value&&((0,s.addIssueToContext)(t,{code:r.ZodIssueCode.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((e,n)=>i.type._parseAsync(new c(t,e,t.path,n)))).then(e=>s.ParseStatus.mergeArray(n,e));const o=[...t.data].map((e,n)=>i.type._parseSync(new c(t,e,t.path,n)));return s.ParseStatus.mergeArray(n,o)}get element(){return this._def.type}min(e,t){return new K({...this._def,minLength:{value:e,message:o.errorUtil.toString(t)}})}max(e,t){return new K({...this._def,maxLength:{value:e,message:o.errorUtil.toString(t)}})}length(e,t){return new K({...this._def,exactLength:{value:e,message:o.errorUtil.toString(t)}})}nonempty(e){return this.min(1,e)}}function H(e){if(e instanceof J){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=me.create(H(r))}return new J({...e._def,shape:()=>t})}return e instanceof K?new K({...e._def,type:H(e.element)}):e instanceof me?me.create(H(e.unwrap())):e instanceof he?he.create(H(e.unwrap())):e instanceof ne?ne.create(e.items.map(e=>H(e))):e}t.ZodArray=K,K.create=(e,t)=>new K({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Oe.ZodArray,...l(t)});class J extends d{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const e=this._def.shape(),t=a.util.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==a.ZodParsedType.object){const t=this._getOrReturnCtx(e);return(0,s.addIssueToContext)(t,{code:r.ZodIssueCode.invalid_type,expected:a.ZodParsedType.object,received:t.parsedType}),s.INVALID}const{status:t,ctx:n}=this._processInputParams(e),{shape:i,keys:o}=this._getCached(),u=[];if(!(this._def.catchall instanceof G&&"strip"===this._def.unknownKeys))for(const e in n.data)o.includes(e)||u.push(e);const l=[];for(const e of o){const t=i[e],r=n.data[e];l.push({key:{status:"valid",value:e},value:t._parse(new c(n,r,n.path,e)),alwaysSet:e in n.data})}if(this._def.catchall instanceof G){const e=this._def.unknownKeys;if("passthrough"===e)for(const e of u)l.push({key:{status:"valid",value:e},value:{status:"valid",value:n.data[e]}});else if("strict"===e)u.length>0&&((0,s.addIssueToContext)(n,{code:r.ZodIssueCode.unrecognized_keys,keys:u}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const e=this._def.catchall;for(const t of u){const r=n.data[t];l.push({key:{status:"valid",value:t},value:e._parse(new c(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then(async()=>{const e=[];for(const t of l){const n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet})}return e}).then(e=>s.ParseStatus.mergeObjectSync(t,e)):s.ParseStatus.mergeObjectSync(t,l)}get shape(){return this._def.shape()}strict(e){return o.errorUtil.errToObj,new J({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{const r=this._def.errorMap?.(t,n).message??n.defaultError;return"unrecognized_keys"===t.code?{message:o.errorUtil.errToObj(e).message??r}:{message:r}}}:{}})}strip(){return new J({...this._def,unknownKeys:"strip"})}passthrough(){return new J({...this._def,unknownKeys:"passthrough"})}extend(e){return new J({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new J({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:Oe.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new J({...this._def,catchall:e})}pick(e){const t={};for(const n of a.util.objectKeys(e))e[n]&&this.shape[n]&&(t[n]=this.shape[n]);return new J({...this._def,shape:()=>t})}omit(e){const t={};for(const n of a.util.objectKeys(this.shape))e[n]||(t[n]=this.shape[n]);return new J({...this._def,shape:()=>t})}deepPartial(){return H(this)}partial(e){const t={};for(const n of a.util.objectKeys(this.shape)){const r=this.shape[n];e&&!e[n]?t[n]=r:t[n]=r.optional()}return new J({...this._def,shape:()=>t})}required(e){const t={};for(const n of a.util.objectKeys(this.shape))if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n];for(;e instanceof me;)e=e._def.innerType;t[n]=e}return new J({...this._def,shape:()=>t})}keyof(){return ue(a.util.objectKeys(this.shape))}}t.ZodObject=J,J.create=(e,t)=>new J({shape:()=>e,unknownKeys:"strip",catchall:G.create(),typeName:Oe.ZodObject,...l(t)}),J.strictCreate=(e,t)=>new J({shape:()=>e,unknownKeys:"strict",catchall:G.create(),typeName:Oe.ZodObject,...l(t)}),J.lazycreate=(e,t)=>new J({shape:e,unknownKeys:"strip",catchall:G.create(),typeName:Oe.ZodObject,...l(t)});class Y extends d{_parse(e){const{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map(async e=>{const n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then(function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const n of e)if("dirty"===n.result.status)return t.common.issues.push(...n.ctx.common.issues),n.result;const n=e.map(e=>new r.ZodError(e.ctx.common.issues));return(0,s.addIssueToContext)(t,{code:r.ZodIssueCode.invalid_union,unionErrors:n}),s.INVALID});{let e;const i=[];for(const r of n){const n={...t,common:{...t.common,issues:[]},parent:null},o=r._parseSync({data:t.data,path:t.path,parent:n});if("valid"===o.status)return o;"dirty"!==o.status||e||(e={result:o,ctx:n}),n.common.issues.length&&i.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const o=i.map(e=>new r.ZodError(e));return(0,s.addIssueToContext)(t,{code:r.ZodIssueCode.invalid_union,unionErrors:o}),s.INVALID}}get options(){return this._def.options}}t.ZodUnion=Y,Y.create=(e,t)=>new Y({options:e,typeName:Oe.ZodUnion,...l(t)});const X=e=>e instanceof ae?X(e.schema):e instanceof fe?X(e.innerType()):e instanceof ce?[e.value]:e instanceof le?e.options:e instanceof de?a.util.objectValues(e.enum):e instanceof ve?X(e._def.innerType):e instanceof F?[void 0]:e instanceof B?[null]:e instanceof me?[void 0,...X(e.unwrap())]:e instanceof he?[null,...X(e.unwrap())]:e instanceof _e||e instanceof xe?X(e.unwrap()):e instanceof ge?X(e._def.innerType):[];class Q extends d{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==a.ZodParsedType.object)return(0,s.addIssueToContext)(t,{code:r.ZodIssueCode.invalid_type,expected:a.ZodParsedType.object,received:t.parsedType}),s.INVALID;const n=this.discriminator,i=t.data[n],o=this.optionsMap.get(i);return o?t.common.async?o._parseAsync({data:t.data,path:t.path,parent:t}):o._parseSync({data:t.data,path:t.path,parent:t}):((0,s.addIssueToContext)(t,{code:r.ZodIssueCode.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),s.INVALID)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){const r=new Map;for(const n of t){const t=X(n.shape[e]);if(!t.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const i of t){if(r.has(i))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(i)}`);r.set(i,n)}}return new Q({typeName:Oe.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...l(n)})}}function ee(e,t){const n=(0,a.getParsedType)(e),r=(0,a.getParsedType)(t);if(e===t)return{valid:!0,data:e};if(n===a.ZodParsedType.object&&r===a.ZodParsedType.object){const n=a.util.objectKeys(t),r=a.util.objectKeys(e).filter(e=>-1!==n.indexOf(e)),i={...e,...t};for(const n of r){const r=ee(e[n],t[n]);if(!r.valid)return{valid:!1};i[n]=r.data}return{valid:!0,data:i}}if(n===a.ZodParsedType.array&&r===a.ZodParsedType.array){if(e.length!==t.length)return{valid:!1};const n=[];for(let r=0;r<e.length;r++){const i=ee(e[r],t[r]);if(!i.valid)return{valid:!1};n.push(i.data)}return{valid:!0,data:n}}return n===a.ZodParsedType.date&&r===a.ZodParsedType.date&&+e===+t?{valid:!0,data:e}:{valid:!1}}t.ZodDiscriminatedUnion=Q;class te extends d{_parse(e){const{status:t,ctx:n}=this._processInputParams(e),i=(e,i)=>{if((0,s.isAborted)(e)||(0,s.isAborted)(i))return s.INVALID;const o=ee(e.value,i.value);return o.valid?(((0,s.isDirty)(e)||(0,s.isDirty)(i))&&t.dirty(),{status:t.value,value:o.data}):((0,s.addIssueToContext)(n,{code:r.ZodIssueCode.invalid_intersection_types}),s.INVALID)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([e,t])=>i(e,t)):i(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}t.ZodIntersection=te,te.create=(e,t,n)=>new te({left:e,right:t,typeName:Oe.ZodIntersection,...l(n)});class ne extends d{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==a.ZodParsedType.array)return(0,s.addIssueToContext)(n,{code:r.ZodIssueCode.invalid_type,expected:a.ZodParsedType.array,received:n.parsedType}),s.INVALID;if(n.data.length<this._def.items.length)return(0,s.addIssueToContext)(n,{code:r.ZodIssueCode.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),s.INVALID;!this._def.rest&&n.data.length>this._def.items.length&&((0,s.addIssueToContext)(n,{code:r.ZodIssueCode.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const i=[...n.data].map((e,t)=>{const r=this._def.items[t]||this._def.rest;return r?r._parse(new c(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(i).then(e=>s.ParseStatus.mergeArray(t,e)):s.ParseStatus.mergeArray(t,i)}get items(){return this._def.items}rest(e){return new ne({...this._def,rest:e})}}t.ZodTuple=ne,ne.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ne({items:e,typeName:Oe.ZodTuple,rest:null,...l(t)})};class re extends d{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==a.ZodParsedType.object)return(0,s.addIssueToContext)(n,{code:r.ZodIssueCode.invalid_type,expected:a.ZodParsedType.object,received:n.parsedType}),s.INVALID;const i=[],o=this._def.keyType,u=this._def.valueType;for(const e in n.data)i.push({key:o._parse(new c(n,e,n.path,e)),value:u._parse(new c(n,n.data[e],n.path,e)),alwaysSet:e in n.data});return n.common.async?s.ParseStatus.mergeObjectAsync(t,i):s.ParseStatus.mergeObjectSync(t,i)}get element(){return this._def.valueType}static create(e,t,n){return new re(t instanceof d?{keyType:e,valueType:t,typeName:Oe.ZodRecord,...l(n)}:{keyType:A.create(),valueType:e,typeName:Oe.ZodRecord,...l(t)})}}t.ZodRecord=re;class ie extends d{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==a.ZodParsedType.map)return(0,s.addIssueToContext)(n,{code:r.ZodIssueCode.invalid_type,expected:a.ZodParsedType.map,received:n.parsedType}),s.INVALID;const i=this._def.keyType,o=this._def.valueType,u=[...n.data.entries()].map(([e,t],r)=>({key:i._parse(new c(n,e,n.path,[r,"key"])),value:o._parse(new c(n,t,n.path,[r,"value"]))}));if(n.common.async){const e=new Map;return Promise.resolve().then(async()=>{for(const n of u){const r=await n.key,i=await n.value;if("aborted"===r.status||"aborted"===i.status)return s.INVALID;"dirty"!==r.status&&"dirty"!==i.status||t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}})}{const e=new Map;for(const n of u){const r=n.key,i=n.value;if("aborted"===r.status||"aborted"===i.status)return s.INVALID;"dirty"!==r.status&&"dirty"!==i.status||t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}}}t.ZodMap=ie,ie.create=(e,t,n)=>new ie({valueType:t,keyType:e,typeName:Oe.ZodMap,...l(n)});class oe extends d{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==a.ZodParsedType.set)return(0,s.addIssueToContext)(n,{code:r.ZodIssueCode.invalid_type,expected:a.ZodParsedType.set,received:n.parsedType}),s.INVALID;const i=this._def;null!==i.minSize&&n.data.size<i.minSize.value&&((0,s.addIssueToContext)(n,{code:r.ZodIssueCode.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),t.dirty()),null!==i.maxSize&&n.data.size>i.maxSize.value&&((0,s.addIssueToContext)(n,{code:r.ZodIssueCode.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),t.dirty());const o=this._def.valueType;function u(e){const n=new Set;for(const r of e){if("aborted"===r.status)return s.INVALID;"dirty"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}const l=[...n.data.values()].map((e,t)=>o._parse(new c(n,e,n.path,t)));return n.common.async?Promise.all(l).then(e=>u(e)):u(l)}min(e,t){return new oe({...this._def,minSize:{value:e,message:o.errorUtil.toString(t)}})}max(e,t){return new oe({...this._def,maxSize:{value:e,message:o.errorUtil.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}t.ZodSet=oe,oe.create=(e,t)=>new oe({valueType:e,minSize:null,maxSize:null,typeName:Oe.ZodSet,...l(t)});class se extends d{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==a.ZodParsedType.function)return(0,s.addIssueToContext)(t,{code:r.ZodIssueCode.invalid_type,expected:a.ZodParsedType.function,received:t.parsedType}),s.INVALID;function n(e,n){return(0,s.makeIssue)({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,(0,i.getErrorMap)(),i.defaultErrorMap].filter(e=>!!e),issueData:{code:r.ZodIssueCode.invalid_arguments,argumentsError:n}})}function o(e,n){return(0,s.makeIssue)({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,(0,i.getErrorMap)(),i.defaultErrorMap].filter(e=>!!e),issueData:{code:r.ZodIssueCode.invalid_return_type,returnTypeError:n}})}const c={errorMap:t.common.contextualErrorMap},u=t.data;if(this._def.returns instanceof pe){const e=this;return(0,s.OK)(async function(...t){const i=new r.ZodError([]),s=await e._def.args.parseAsync(t,c).catch(e=>{throw i.addIssue(n(t,e)),i}),a=await Reflect.apply(u,this,s);return await e._def.returns._def.type.parseAsync(a,c).catch(e=>{throw i.addIssue(o(a,e)),i})})}{const e=this;return(0,s.OK)(function(...t){const i=e._def.args.safeParse(t,c);if(!i.success)throw new r.ZodError([n(t,i.error)]);const s=Reflect.apply(u,this,i.data),a=e._def.returns.safeParse(s,c);if(!a.success)throw new r.ZodError([o(s,a.error)]);return a.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new se({...this._def,args:ne.create(e).rest(V.create())})}returns(e){return new se({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new se({args:e||ne.create([]).rest(V.create()),returns:t||V.create(),typeName:Oe.ZodFunction,...l(n)})}}t.ZodFunction=se;class ae extends d{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}t.ZodLazy=ae,ae.create=(e,t)=>new ae({getter:e,typeName:Oe.ZodLazy,...l(t)});class ce extends d{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return(0,s.addIssueToContext)(t,{received:t.data,code:r.ZodIssueCode.invalid_literal,expected:this._def.value}),s.INVALID}return{status:"valid",value:e.data}}get value(){return this._def.value}}function ue(e,t){return new le({values:e,typeName:Oe.ZodEnum,...l(t)})}t.ZodLiteral=ce,ce.create=(e,t)=>new ce({value:e,typeName:Oe.ZodLiteral,...l(t)});class le extends d{_parse(e){if("string"!=typeof e.data){const t=this._getOrReturnCtx(e),n=this._def.values;return(0,s.addIssueToContext)(t,{expected:a.util.joinValues(n),received:t.parsedType,code:r.ZodIssueCode.invalid_type}),s.INVALID}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){const t=this._getOrReturnCtx(e),n=this._def.values;return(0,s.addIssueToContext)(t,{received:t.data,code:r.ZodIssueCode.invalid_enum_value,options:n}),s.INVALID}return(0,s.OK)(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return le.create(e,{...this._def,...t})}exclude(e,t=this._def){return le.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}t.ZodEnum=le,le.create=ue;class de extends d{_parse(e){const t=a.util.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==a.ZodParsedType.string&&n.parsedType!==a.ZodParsedType.number){const e=a.util.objectValues(t);return(0,s.addIssueToContext)(n,{expected:a.util.joinValues(e),received:n.parsedType,code:r.ZodIssueCode.invalid_type}),s.INVALID}if(this._cache||(this._cache=new Set(a.util.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const e=a.util.objectValues(t);return(0,s.addIssueToContext)(n,{received:n.data,code:r.ZodIssueCode.invalid_enum_value,options:e}),s.INVALID}return(0,s.OK)(e.data)}get enum(){return this._def.values}}t.ZodNativeEnum=de,de.create=(e,t)=>new de({values:e,typeName:Oe.ZodNativeEnum,...l(t)});class pe extends d{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==a.ZodParsedType.promise&&!1===t.common.async)return(0,s.addIssueToContext)(t,{code:r.ZodIssueCode.invalid_type,expected:a.ZodParsedType.promise,received:t.parsedType}),s.INVALID;const n=t.parsedType===a.ZodParsedType.promise?t.data:Promise.resolve(t.data);return(0,s.OK)(n.then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}t.ZodPromise=pe,pe.create=(e,t)=>new pe({type:e,typeName:Oe.ZodPromise,...l(t)});class fe extends d{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Oe.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,i={addIssue:e=>{(0,s.addIssueToContext)(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===r.type){const e=r.transform(n.data,i);if(n.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return s.INVALID;const r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return"aborted"===r.status?s.INVALID:"dirty"===r.status||"dirty"===t.value?(0,s.DIRTY)(r.value):r});{if("aborted"===t.value)return s.INVALID;const r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return"aborted"===r.status?s.INVALID:"dirty"===r.status||"dirty"===t.value?(0,s.DIRTY)(r.value):r}}if("refinement"===r.type){const e=e=>{const t=r.refinement(e,i);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===n.common.async){const r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===r.status?s.INVALID:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(n=>"aborted"===n.status?s.INVALID:("dirty"===n.status&&t.dirty(),e(n.value).then(()=>({status:t.value,value:n.value}))))}if("transform"===r.type){if(!1===n.common.async){const e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!(0,s.isValid)(e))return s.INVALID;const o=r.transform(e.value,i);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:o}}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>(0,s.isValid)(e)?Promise.resolve(r.transform(e.value,i)).then(e=>({status:t.value,value:e})):s.INVALID)}a.util.assertNever(r)}}t.ZodEffects=fe,t.ZodTransformer=fe,fe.create=(e,t,n)=>new fe({schema:e,typeName:Oe.ZodEffects,effect:t,...l(n)}),fe.createWithPreprocess=(e,t,n)=>new fe({schema:t,effect:{type:"preprocess",transform:e},typeName:Oe.ZodEffects,...l(n)});class me extends d{_parse(e){return this._getType(e)===a.ZodParsedType.undefined?(0,s.OK)(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}t.ZodOptional=me,me.create=(e,t)=>new me({innerType:e,typeName:Oe.ZodOptional,...l(t)});class he extends d{_parse(e){return this._getType(e)===a.ZodParsedType.null?(0,s.OK)(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}t.ZodNullable=he,he.create=(e,t)=>new he({innerType:e,typeName:Oe.ZodNullable,...l(t)});class ve extends d{_parse(e){const{ctx:t}=this._processInputParams(e);let n=t.data;return t.parsedType===a.ZodParsedType.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}t.ZodDefault=ve,ve.create=(e,t)=>new ve({innerType:e,typeName:Oe.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...l(t)});class ge extends d{_parse(e){const{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},i=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return(0,s.isAsync)(i)?i.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new r.ZodError(n.common.issues)},input:n.data})})):{status:"valid",value:"valid"===i.status?i.value:this._def.catchValue({get error(){return new r.ZodError(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}t.ZodCatch=ge,ge.create=(e,t)=>new ge({innerType:e,typeName:Oe.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...l(t)});class ye extends d{_parse(e){if(this._getType(e)!==a.ZodParsedType.nan){const t=this._getOrReturnCtx(e);return(0,s.addIssueToContext)(t,{code:r.ZodIssueCode.invalid_type,expected:a.ZodParsedType.nan,received:t.parsedType}),s.INVALID}return{status:"valid",value:e.data}}}t.ZodNaN=ye,ye.create=e=>new ye({typeName:Oe.ZodNaN,...l(e)}),t.BRAND=Symbol("zod_brand");class _e extends d{_parse(e){const{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}t.ZodBranded=_e;class be extends d{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{const e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?s.INVALID:"dirty"===e.status?(t.dirty(),(0,s.DIRTY)(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{const e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?s.INVALID:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new be({in:e,out:t,typeName:Oe.ZodPipeline})}}t.ZodPipeline=be;class xe extends d{_parse(e){const t=this._def.innerType._parse(e),n=e=>((0,s.isValid)(e)&&(e.value=Object.freeze(e.value)),e);return(0,s.isAsync)(t)?t.then(e=>n(e)):n(t)}unwrap(){return this._def.innerType}}function we(e,t){const n="function"==typeof e?e(t):"string"==typeof e?{message:e}:e;return"string"==typeof n?{message:n}:n}function Se(e,t={},n){return e?q.create().superRefine((r,i)=>{const o=e(r);if(o instanceof Promise)return o.then(e=>{if(!e){const e=we(t,r),o=e.fatal??n??!0;i.addIssue({code:"custom",...e,fatal:o})}});if(!o){const e=we(t,r),o=e.fatal??n??!0;i.addIssue({code:"custom",...e,fatal:o})}}):q.create()}var Oe;t.ZodReadonly=xe,xe.create=(e,t)=>new xe({innerType:e,typeName:Oe.ZodReadonly,...l(t)}),t.late={object:J.lazycreate},function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(Oe||(t.ZodFirstPartyTypeKind=Oe={})),t.instanceof=(e,t={message:`Input not instance of ${e.name}`})=>Se(t=>t instanceof e,t);const ke=A.create;t.string=ke;const $e=D.create;t.number=$e;const Pe=ye.create;t.nan=Pe;const Ee=Z.create;t.bigint=Ee;const Te=U.create;t.boolean=Te;const Ce=L.create;t.date=Ce;const Ie=z.create;t.symbol=Ie;const je=F.create;t.undefined=je;const Re=B.create;t.null=Re;const Ne=q.create;t.any=Ne;const Ae=V.create;t.unknown=Ae;const Me=G.create;t.never=Me;const De=W.create;t.void=De;const Ze=K.create;t.array=Ze;const Ue=J.create;t.object=Ue;const Le=J.strictCreate;t.strictObject=Le;const ze=Y.create;t.union=ze;const Fe=Q.create;t.discriminatedUnion=Fe;const Be=te.create;t.intersection=Be;const qe=ne.create;t.tuple=qe;const Ve=re.create;t.record=Ve;const Ge=ie.create;t.map=Ge;const We=oe.create;t.set=We;const Ke=se.create;t.function=Ke;const He=ae.create;t.lazy=He;const Je=ce.create;t.literal=Je;const Ye=le.create;t.enum=Ye;const Xe=de.create;t.nativeEnum=Xe;const Qe=pe.create;t.promise=Qe;const et=fe.create;t.effect=et,t.transformer=et;const tt=me.create;t.optional=tt;const nt=he.create;t.nullable=nt;const rt=fe.createWithPreprocess;t.preprocess=rt;const it=be.create;t.pipeline=it,t.ostring=()=>ke().optional(),t.onumber=()=>$e().optional(),t.oboolean=()=>Te().optional(),t.coerce={string:e=>A.create({...e,coerce:!0}),number:e=>D.create({...e,coerce:!0}),boolean:e=>U.create({...e,coerce:!0}),bigint:e=>Z.create({...e,coerce:!0}),date:e=>L.create({...e,coerce:!0})},t.NEVER=s.INVALID},80801:(e,t,n)=>{var r=n(39023),i=n(2203).Stream,o=n(78069);function s(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2097152,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}e.exports=s,r.inherits(s,i),s.create=function(e){var t=new this;for(var n in e=e||{})t[n]=e[n];return t},s.isStreamLike=function(e){return"function"!=typeof e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e&&!Buffer.isBuffer(e)},s.prototype.append=function(e){if(s.isStreamLike(e)){if(!(e instanceof o)){var t=o.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=t}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this},s.prototype.pipe=function(e,t){return i.prototype.pipe.call(this,e,t),this.resume(),e},s.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop)this._pendingNext=!0;else{this._insideLoop=!0;try{do{this._pendingNext=!1,this._realGetNext()}while(this._pendingNext)}finally{this._insideLoop=!1}}},s.prototype._realGetNext=function(){var e=this._streams.shift();void 0!==e?"function"==typeof e?e(function(e){s.isStreamLike(e)&&(e.on("data",this._checkDataSize.bind(this)),this._handleErrors(e)),this._pipeNext(e)}.bind(this)):this._pipeNext(e):this.end()},s.prototype._pipeNext=function(e){if(this._currentStream=e,s.isStreamLike(e))return e.on("end",this._getNext.bind(this)),void e.pipe(this,{end:!1});var t=e;this.write(t),this._getNext()},s.prototype._handleErrors=function(e){var t=this;e.on("error",function(e){t._emitError(e)})},s.prototype.write=function(e){this.emit("data",e)},s.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.pause&&this._currentStream.pause(),this.emit("pause"))},s.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.resume&&this._currentStream.resume(),this.emit("resume")},s.prototype.end=function(){this._reset(),this.emit("end")},s.prototype.destroy=function(){this._reset(),this.emit("close")},s.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null},s.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}},s.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach(function(t){t.dataSize&&(e.dataSize+=t.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)},s.prototype._emitError=function(e){this._reset(),this.emit("error",e)}},80852:(e,t,n)=>{function r(){var e;try{e=t.storage.debug}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e}(t=e.exports=n(51175)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),n){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var i=0,o=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(i++,"%c"===e&&(o=i))}),e.splice(o,0,r)}},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=r,t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(r())},80877:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LegacyTargetImpl=void 0;const r=n(5265),i=n(77426),o=n(86277),s=n(83313),a=n(36338),c=n(41129),u=n(66757);t.LegacyTargetImpl=class{#t;#n;#r;#i;#o;#s;constructor(e,t,n){this.#n=(0,u.getTargetId)(),this.#r=e,this.#i=void 0,this.#t=t,this.#o=new a.LegacyQueryableStringImpl("string"==typeof e?e:(0,c.getDescription)(e)),this.#s=n}get id(){return this.#n}get identifier(){return this.#r}get metadata(){return void 0===this.#i&&(this.#i=(0,i.getLegacyMetadata)(this.#t)),this.#i}get name(){return this.#o}get type(){return this.#s}get serviceIdentifier(){return r.LazyServiceIdentifier.is(this.#t.value)?this.#t.value.unwrap():this.#t.value}getCustomTags(){return[...this.#t.tags.entries()].map(([e,t])=>({key:e,value:t}))}getNamedTag(){return void 0===this.#t.name?null:{key:s.NAMED_TAG,value:this.#t.name}}hasTag(e){return this.metadata.some(t=>t.key===e)}isArray(){return this.#t.kind===o.ClassElementMetadataKind.multipleInjection}isNamed(){return void 0!==this.#t.name}isOptional(){return this.#t.optional}isTagged(){return this.#t.tags.size>0}matchesArray(e){return this.isArray()&&this.#t.value===e}matchesNamedTag(e){return this.#t.name===e}matchesTag(e){return t=>this.metadata.some(n=>n.key===e&&n.value===t)}}},80914:(e,t,n)=>{"use strict";const{Duplex:r}=n(2203),{randomFillSync:i}=n(76982),o=n(42971),{EMPTY_BUFFER:s,kWebSocket:a,NOOP:c}=n(32614),{isBlob:u,isValidStatusCode:l}=n(95880),{mask:d,toBuffer:p}=n(93338),f=Symbol("kByteLength"),m=Buffer.alloc(4),h=8192;let v,g=h;class y{constructor(e,t,n){this._extensions=t||{},n&&(this._generateMask=n,this._maskBuffer=Buffer.alloc(4)),this._socket=e,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._queue=[],this._state=0,this.onerror=c,this[a]=void 0}static frame(e,t){let n,r,o=!1,s=2,a=!1;t.mask&&(n=t.maskBuffer||m,t.generateMask?t.generateMask(n):(g===h&&(void 0===v&&(v=Buffer.alloc(h)),i(v,0,h),g=0),n[0]=v[g++],n[1]=v[g++],n[2]=v[g++],n[3]=v[g++]),a=0===(n[0]|n[1]|n[2]|n[3]),s=6),"string"==typeof e?r=t.mask&&!a||void 0===t[f]?(e=Buffer.from(e)).length:t[f]:(r=e.length,o=t.mask&&t.readOnly&&!a);let c=r;r>=65536?(s+=8,c=127):r>125&&(s+=2,c=126);const u=Buffer.allocUnsafe(o?r+s:s);return u[0]=t.fin?128|t.opcode:t.opcode,t.rsv1&&(u[0]|=64),u[1]=c,126===c?u.writeUInt16BE(r,2):127===c&&(u[2]=u[3]=0,u.writeUIntBE(r,4,6)),t.mask?(u[1]|=128,u[s-4]=n[0],u[s-3]=n[1],u[s-2]=n[2],u[s-1]=n[3],a?[u,e]:o?(d(e,n,u,s,r),[u]):(d(e,n,e,0,r),[u,e])):[u,e]}close(e,t,n,r){let i;if(void 0===e)i=s;else{if("number"!=typeof e||!l(e))throw new TypeError("First argument must be a valid error code number");if(void 0!==t&&t.length){const n=Buffer.byteLength(t);if(n>123)throw new RangeError("The message must not be greater than 123 bytes");i=Buffer.allocUnsafe(2+n),i.writeUInt16BE(e,0),"string"==typeof t?i.write(t,2):i.set(t,2)}else i=Buffer.allocUnsafe(2),i.writeUInt16BE(e,0)}const o={[f]:i.length,fin:!0,generateMask:this._generateMask,mask:n,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};0!==this._state?this.enqueue([this.dispatch,i,!1,o,r]):this.sendFrame(y.frame(i,o),r)}ping(e,t,n){let r,i;if("string"==typeof e?(r=Buffer.byteLength(e),i=!1):u(e)?(r=e.size,i=!1):(r=(e=p(e)).length,i=p.readOnly),r>125)throw new RangeError("The data size must not be greater than 125 bytes");const o={[f]:r,fin:!0,generateMask:this._generateMask,mask:t,maskBuffer:this._maskBuffer,opcode:9,readOnly:i,rsv1:!1};u(e)?0!==this._state?this.enqueue([this.getBlobData,e,!1,o,n]):this.getBlobData(e,!1,o,n):0!==this._state?this.enqueue([this.dispatch,e,!1,o,n]):this.sendFrame(y.frame(e,o),n)}pong(e,t,n){let r,i;if("string"==typeof e?(r=Buffer.byteLength(e),i=!1):u(e)?(r=e.size,i=!1):(r=(e=p(e)).length,i=p.readOnly),r>125)throw new RangeError("The data size must not be greater than 125 bytes");const o={[f]:r,fin:!0,generateMask:this._generateMask,mask:t,maskBuffer:this._maskBuffer,opcode:10,readOnly:i,rsv1:!1};u(e)?0!==this._state?this.enqueue([this.getBlobData,e,!1,o,n]):this.getBlobData(e,!1,o,n):0!==this._state?this.enqueue([this.dispatch,e,!1,o,n]):this.sendFrame(y.frame(e,o),n)}send(e,t,n){const r=this._extensions[o.extensionName];let i,s,a=t.binary?2:1,c=t.compress;"string"==typeof e?(i=Buffer.byteLength(e),s=!1):u(e)?(i=e.size,s=!1):(i=(e=p(e)).length,s=p.readOnly),this._firstFragment?(this._firstFragment=!1,c&&r&&r.params[r._isServer?"server_no_context_takeover":"client_no_context_takeover"]&&(c=i>=r._threshold),this._compress=c):(c=!1,a=0),t.fin&&(this._firstFragment=!0);const l={[f]:i,fin:t.fin,generateMask:this._generateMask,mask:t.mask,maskBuffer:this._maskBuffer,opcode:a,readOnly:s,rsv1:c};u(e)?0!==this._state?this.enqueue([this.getBlobData,e,this._compress,l,n]):this.getBlobData(e,this._compress,l,n):0!==this._state?this.enqueue([this.dispatch,e,this._compress,l,n]):this.dispatch(e,this._compress,l,n)}getBlobData(e,t,n,r){this._bufferedBytes+=n[f],this._state=2,e.arrayBuffer().then(e=>{if(this._socket.destroyed){const e=new Error("The socket was closed while the blob was being read");return void process.nextTick(_,this,e,r)}this._bufferedBytes-=n[f];const i=p(e);t?this.dispatch(i,t,n,r):(this._state=0,this.sendFrame(y.frame(i,n),r),this.dequeue())}).catch(e=>{process.nextTick(b,this,e,r)})}dispatch(e,t,n,r){if(!t)return void this.sendFrame(y.frame(e,n),r);const i=this._extensions[o.extensionName];this._bufferedBytes+=n[f],this._state=1,i.compress(e,n.fin,(e,t)=>{this._socket.destroyed?_(this,new Error("The socket was closed while data was being compressed"),r):(this._bufferedBytes-=n[f],this._state=0,n.readOnly=!1,this.sendFrame(y.frame(t,n),r),this.dequeue())})}dequeue(){for(;0===this._state&&this._queue.length;){const e=this._queue.shift();this._bufferedBytes-=e[3][f],Reflect.apply(e[0],this,e.slice(1))}}enqueue(e){this._bufferedBytes+=e[3][f],this._queue.push(e)}sendFrame(e,t){2===e.length?(this._socket.cork(),this._socket.write(e[0]),this._socket.write(e[1],t),this._socket.uncork()):this._socket.write(e[0],t)}}function _(e,t,n){"function"==typeof n&&n(t);for(let n=0;n<e._queue.length;n++){const r=e._queue[n],i=r[r.length-1];"function"==typeof i&&i(t)}}function b(e,t,n){_(e,t,n),e.onerror(t)}e.exports=y},81050:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.getState=function(e,t){return r(this,void 0,void 0,function*(){const n="string"==typeof t.stateId?t.stateId.trim():"";if(0===n.length||/\s/.test(n))return(0,i.failure)("invalid_input","'stateId' must be a non empty ioBroker state id without whitespace.","Use a full id like '0_userdata.0.temperature'.");const r=(0,o.ensureRemoteConnected)(e);if(r)return{ok:!1,error:r};try{const t=yield e.states.getState(n);return t?(0,i.success)({id:n,value:t.val,acknowledged:t.ack,timestamp:t.ts,lastChanged:t.lc,from:t.from}):(0,i.failure)("not_found",`The ioBroker state '${n}' does not exist.`,"Use an existing state id such as '0_userdata.0.temperature'.")}catch(e){return(0,s.toFailure)(e)}})};const i=n(49402),o=n(33510),s=n(22797)},81430:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveSchema=t.getCompilingSchema=t.resolveRef=t.compileSchema=t.SchemaEnv=void 0;const r=n(66596),i=n(53781),o=n(26670),s=n(90978),a=n(99048),c=n(93697);class u{constructor(e){var t;let n;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(n=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:(0,s.normalizeId)(null==n?void 0:n[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==n?void 0:n.$async,this.refs={}}}function l(e){const t=p.call(this,e);if(t)return t;const n=(0,s.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:a,lines:u}=this.opts.code,{ownProperties:l}=this.opts,d=new r.CodeGen(this.scope,{es5:a,lines:u,ownProperties:l});let f;e.$async&&(f=d.scopeValue("Error",{ref:i.default,code:r._`require("ajv/dist/runtime/validation_error").default`}));const m=d.scopeName("validate");e.validateName=m;const h={gen:d,allErrors:this.opts.allErrors,data:o.default.data,parentData:o.default.parentData,parentDataProperty:o.default.parentDataProperty,dataNames:[o.default.data],dataPathArr:[r.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:d.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,r.stringify)(e.schema)}:{ref:e.schema}),validateName:m,ValidationError:f,schema:e.schema,schemaEnv:e,rootId:n,baseId:e.baseId||n,schemaPath:r.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:r._`""`,opts:this.opts,self:this};let v;try{this._compilations.add(e),(0,c.validateFunctionCode)(h),d.optimize(this.opts.code.optimize);const t=d.toString();v=`${d.scopeRefs(o.default.scope)}return ${t}`,this.opts.code.process&&(v=this.opts.code.process(v,e));const n=new Function(`${o.default.self}`,`${o.default.scope}`,v)(this,this.scope.get());if(this.scope.value(m,{ref:n}),n.errors=null,n.schema=e.schema,n.schemaEnv=e,e.$async&&(n.$async=!0),!0===this.opts.code.source&&(n.source={validateName:m,validateCode:t,scopeValues:d._values}),this.opts.unevaluated){const{props:e,items:t}=h;n.evaluated={props:e instanceof r.Name?void 0:e,items:t instanceof r.Name?void 0:t,dynamicProps:e instanceof r.Name,dynamicItems:t instanceof r.Name},n.source&&(n.source.evaluated=(0,r.stringify)(n.evaluated))}return e.validate=n,e}catch(t){throw delete e.validate,delete e.validateName,v&&this.logger.error("Error compiling schema, function code:",v),t}finally{this._compilations.delete(e)}}function d(e){return(0,s.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:l.call(this,e)}function p(e){for(const t of this._compilations)if(f(t,e))return t}function f(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function m(e,t){let n;for(;"string"==typeof(n=this.refs[t]);)t=n;return n||this.schemas[t]||h.call(this,e,t)}function h(e,t){const n=this.opts.uriResolver.parse(t),r=(0,s._getFullPath)(this.opts.uriResolver,n);let i=(0,s.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&r===i)return g.call(this,n,e);const o=(0,s.normalizeId)(r),a=this.refs[o]||this.schemas[o];if("string"==typeof a){const t=h.call(this,e,a);if("object"!=typeof(null==t?void 0:t.schema))return;return g.call(this,n,t)}if("object"==typeof(null==a?void 0:a.schema)){if(a.validate||l.call(this,a),o===(0,s.normalizeId)(t)){const{schema:t}=a,{schemaId:n}=this.opts,r=t[n];return r&&(i=(0,s.resolveUrl)(this.opts.uriResolver,i,r)),new u({schema:t,schemaId:n,root:e,baseId:i})}return g.call(this,n,a)}}t.SchemaEnv=u,t.compileSchema=l,t.resolveRef=function(e,t,n){var r;n=(0,s.resolveUrl)(this.opts.uriResolver,t,n);const i=e.refs[n];if(i)return i;let o=m.call(this,e,n);if(void 0===o){const i=null===(r=e.localRefs)||void 0===r?void 0:r[n],{schemaId:s}=this.opts;i&&(o=new u({schema:i,schemaId:s,root:e,baseId:t}))}return void 0!==o?e.refs[n]=d.call(this,o):void 0},t.getCompilingSchema=p,t.resolveSchema=h;const v=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function g(e,{baseId:t,schema:n,root:r}){var i;if("/"!==(null===(i=e.fragment)||void 0===i?void 0:i[0]))return;for(const r of e.fragment.slice(1).split("/")){if("boolean"==typeof n)return;const e=n[(0,a.unescapeFragment)(r)];if(void 0===e)return;const i="object"==typeof(n=e)&&n[this.opts.schemaId];!v.has(r)&&i&&(t=(0,s.resolveUrl)(this.opts.uriResolver,t,i))}let o;if("boolean"!=typeof n&&n.$ref&&!(0,a.schemaHasRulesButRef)(n,this.RULES)){const e=(0,s.resolveUrl)(this.opts.uriResolver,t,n.$ref);o=h.call(this,r,e)}const{schemaId:c}=this.opts;return o=o||new u({schema:n,schemaId:c,root:r,baseId:t}),o.schema!==o.root.schema?o:void 0}},81813:e=>{"use strict";e.exports=JSON.parse('{"application/1d-interleaved-parityfec":{"source":"iana"},"application/3gpdash-qoe-report+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/3gpp-ims+xml":{"source":"iana","compressible":true},"application/3gpphal+json":{"source":"iana","compressible":true},"application/3gpphalforms+json":{"source":"iana","compressible":true},"application/a2l":{"source":"iana"},"application/ace+cbor":{"source":"iana"},"application/activemessage":{"source":"iana"},"application/activity+json":{"source":"iana","compressible":true},"application/alto-costmap+json":{"source":"iana","compressible":true},"application/alto-costmapfilter+json":{"source":"iana","compressible":true},"application/alto-directory+json":{"source":"iana","compressible":true},"application/alto-endpointcost+json":{"source":"iana","compressible":true},"application/alto-endpointcostparams+json":{"source":"iana","compressible":true},"application/alto-endpointprop+json":{"source":"iana","compressible":true},"application/alto-endpointpropparams+json":{"source":"iana","compressible":true},"application/alto-error+json":{"source":"iana","compressible":true},"application/alto-networkmap+json":{"source":"iana","compressible":true},"application/alto-networkmapfilter+json":{"source":"iana","compressible":true},"application/alto-updatestreamcontrol+json":{"source":"iana","compressible":true},"application/alto-updatestreamparams+json":{"source":"iana","compressible":true},"application/aml":{"source":"iana"},"application/andrew-inset":{"source":"iana","extensions":["ez"]},"application/applefile":{"source":"iana"},"application/applixware":{"source":"apache","extensions":["aw"]},"application/at+jwt":{"source":"iana"},"application/atf":{"source":"iana"},"application/atfx":{"source":"iana"},"application/atom+xml":{"source":"iana","compressible":true,"extensions":["atom"]},"application/atomcat+xml":{"source":"iana","compressible":true,"extensions":["atomcat"]},"application/atomdeleted+xml":{"source":"iana","compressible":true,"extensions":["atomdeleted"]},"application/atomicmail":{"source":"iana"},"application/atomsvc+xml":{"source":"iana","compressible":true,"extensions":["atomsvc"]},"application/atsc-dwd+xml":{"source":"iana","compressible":true,"extensions":["dwd"]},"application/atsc-dynamic-event-message":{"source":"iana"},"application/atsc-held+xml":{"source":"iana","compressible":true,"extensions":["held"]},"application/atsc-rdt+json":{"source":"iana","compressible":true},"application/atsc-rsat+xml":{"source":"iana","compressible":true,"extensions":["rsat"]},"application/atxml":{"source":"iana"},"application/auth-policy+xml":{"source":"iana","compressible":true},"application/bacnet-xdd+zip":{"source":"iana","compressible":false},"application/batch-smtp":{"source":"iana"},"application/bdoc":{"compressible":false,"extensions":["bdoc"]},"application/beep+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/calendar+json":{"source":"iana","compressible":true},"application/calendar+xml":{"source":"iana","compressible":true,"extensions":["xcs"]},"application/call-completion":{"source":"iana"},"application/cals-1840":{"source":"iana"},"application/captive+json":{"source":"iana","compressible":true},"application/cbor":{"source":"iana"},"application/cbor-seq":{"source":"iana"},"application/cccex":{"source":"iana"},"application/ccmp+xml":{"source":"iana","compressible":true},"application/ccxml+xml":{"source":"iana","compressible":true,"extensions":["ccxml"]},"application/cdfx+xml":{"source":"iana","compressible":true,"extensions":["cdfx"]},"application/cdmi-capability":{"source":"iana","extensions":["cdmia"]},"application/cdmi-container":{"source":"iana","extensions":["cdmic"]},"application/cdmi-domain":{"source":"iana","extensions":["cdmid"]},"application/cdmi-object":{"source":"iana","extensions":["cdmio"]},"application/cdmi-queue":{"source":"iana","extensions":["cdmiq"]},"application/cdni":{"source":"iana"},"application/cea":{"source":"iana"},"application/cea-2018+xml":{"source":"iana","compressible":true},"application/cellml+xml":{"source":"iana","compressible":true},"application/cfw":{"source":"iana"},"application/city+json":{"source":"iana","compressible":true},"application/clr":{"source":"iana"},"application/clue+xml":{"source":"iana","compressible":true},"application/clue_info+xml":{"source":"iana","compressible":true},"application/cms":{"source":"iana"},"application/cnrp+xml":{"source":"iana","compressible":true},"application/coap-group+json":{"source":"iana","compressible":true},"application/coap-payload":{"source":"iana"},"application/commonground":{"source":"iana"},"application/conference-info+xml":{"source":"iana","compressible":true},"application/cose":{"source":"iana"},"application/cose-key":{"source":"iana"},"application/cose-key-set":{"source":"iana"},"application/cpl+xml":{"source":"iana","compressible":true,"extensions":["cpl"]},"application/csrattrs":{"source":"iana"},"application/csta+xml":{"source":"iana","compressible":true},"application/cstadata+xml":{"source":"iana","compressible":true},"application/csvm+json":{"source":"iana","compressible":true},"application/cu-seeme":{"source":"apache","extensions":["cu"]},"application/cwt":{"source":"iana"},"application/cybercash":{"source":"iana"},"application/dart":{"compressible":true},"application/dash+xml":{"source":"iana","compressible":true,"extensions":["mpd"]},"application/dash-patch+xml":{"source":"iana","compressible":true,"extensions":["mpp"]},"application/dashdelta":{"source":"iana"},"application/davmount+xml":{"source":"iana","compressible":true,"extensions":["davmount"]},"application/dca-rft":{"source":"iana"},"application/dcd":{"source":"iana"},"application/dec-dx":{"source":"iana"},"application/dialog-info+xml":{"source":"iana","compressible":true},"application/dicom":{"source":"iana"},"application/dicom+json":{"source":"iana","compressible":true},"application/dicom+xml":{"source":"iana","compressible":true},"application/dii":{"source":"iana"},"application/dit":{"source":"iana"},"application/dns":{"source":"iana"},"application/dns+json":{"source":"iana","compressible":true},"application/dns-message":{"source":"iana"},"application/docbook+xml":{"source":"apache","compressible":true,"extensions":["dbk"]},"application/dots+cbor":{"source":"iana"},"application/dskpp+xml":{"source":"iana","compressible":true},"application/dssc+der":{"source":"iana","extensions":["dssc"]},"application/dssc+xml":{"source":"iana","compressible":true,"extensions":["xdssc"]},"application/dvcs":{"source":"iana"},"application/ecmascript":{"source":"iana","compressible":true,"extensions":["es","ecma"]},"application/edi-consent":{"source":"iana"},"application/edi-x12":{"source":"iana","compressible":false},"application/edifact":{"source":"iana","compressible":false},"application/efi":{"source":"iana"},"application/elm+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/elm+xml":{"source":"iana","compressible":true},"application/emergencycalldata.cap+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/emergencycalldata.comment+xml":{"source":"iana","compressible":true},"application/emergencycalldata.control+xml":{"source":"iana","compressible":true},"application/emergencycalldata.deviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.ecall.msd":{"source":"iana"},"application/emergencycalldata.providerinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.serviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.subscriberinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.veds+xml":{"source":"iana","compressible":true},"application/emma+xml":{"source":"iana","compressible":true,"extensions":["emma"]},"application/emotionml+xml":{"source":"iana","compressible":true,"extensions":["emotionml"]},"application/encaprtp":{"source":"iana"},"application/epp+xml":{"source":"iana","compressible":true},"application/epub+zip":{"source":"iana","compressible":false,"extensions":["epub"]},"application/eshop":{"source":"iana"},"application/exi":{"source":"iana","extensions":["exi"]},"application/expect-ct-report+json":{"source":"iana","compressible":true},"application/express":{"source":"iana","extensions":["exp"]},"application/fastinfoset":{"source":"iana"},"application/fastsoap":{"source":"iana"},"application/fdt+xml":{"source":"iana","compressible":true,"extensions":["fdt"]},"application/fhir+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/fhir+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/fido.trusted-apps+json":{"compressible":true},"application/fits":{"source":"iana"},"application/flexfec":{"source":"iana"},"application/font-sfnt":{"source":"iana"},"application/font-tdpfr":{"source":"iana","extensions":["pfr"]},"application/font-woff":{"source":"iana","compressible":false},"application/framework-attributes+xml":{"source":"iana","compressible":true},"application/geo+json":{"source":"iana","compressible":true,"extensions":["geojson"]},"application/geo+json-seq":{"source":"iana"},"application/geopackage+sqlite3":{"source":"iana"},"application/geoxacml+xml":{"source":"iana","compressible":true},"application/gltf-buffer":{"source":"iana"},"application/gml+xml":{"source":"iana","compressible":true,"extensions":["gml"]},"application/gpx+xml":{"source":"apache","compressible":true,"extensions":["gpx"]},"application/gxf":{"source":"apache","extensions":["gxf"]},"application/gzip":{"source":"iana","compressible":false,"extensions":["gz"]},"application/h224":{"source":"iana"},"application/held+xml":{"source":"iana","compressible":true},"application/hjson":{"extensions":["hjson"]},"application/http":{"source":"iana"},"application/hyperstudio":{"source":"iana","extensions":["stk"]},"application/ibe-key-request+xml":{"source":"iana","compressible":true},"application/ibe-pkg-reply+xml":{"source":"iana","compressible":true},"application/ibe-pp-data":{"source":"iana"},"application/iges":{"source":"iana"},"application/im-iscomposing+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/index":{"source":"iana"},"application/index.cmd":{"source":"iana"},"application/index.obj":{"source":"iana"},"application/index.response":{"source":"iana"},"application/index.vnd":{"source":"iana"},"application/inkml+xml":{"source":"iana","compressible":true,"extensions":["ink","inkml"]},"application/iotp":{"source":"iana"},"application/ipfix":{"source":"iana","extensions":["ipfix"]},"application/ipp":{"source":"iana"},"application/isup":{"source":"iana"},"application/its+xml":{"source":"iana","compressible":true,"extensions":["its"]},"application/java-archive":{"source":"apache","compressible":false,"extensions":["jar","war","ear"]},"application/java-serialized-object":{"source":"apache","compressible":false,"extensions":["ser"]},"application/java-vm":{"source":"apache","compressible":false,"extensions":["class"]},"application/javascript":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["js","mjs"]},"application/jf2feed+json":{"source":"iana","compressible":true},"application/jose":{"source":"iana"},"application/jose+json":{"source":"iana","compressible":true},"application/jrd+json":{"source":"iana","compressible":true},"application/jscalendar+json":{"source":"iana","compressible":true},"application/json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["json","map"]},"application/json-patch+json":{"source":"iana","compressible":true},"application/json-seq":{"source":"iana"},"application/json5":{"extensions":["json5"]},"application/jsonml+json":{"source":"apache","compressible":true,"extensions":["jsonml"]},"application/jwk+json":{"source":"iana","compressible":true},"application/jwk-set+json":{"source":"iana","compressible":true},"application/jwt":{"source":"iana"},"application/kpml-request+xml":{"source":"iana","compressible":true},"application/kpml-response+xml":{"source":"iana","compressible":true},"application/ld+json":{"source":"iana","compressible":true,"extensions":["jsonld"]},"application/lgr+xml":{"source":"iana","compressible":true,"extensions":["lgr"]},"application/link-format":{"source":"iana"},"application/load-control+xml":{"source":"iana","compressible":true},"application/lost+xml":{"source":"iana","compressible":true,"extensions":["lostxml"]},"application/lostsync+xml":{"source":"iana","compressible":true},"application/lpf+zip":{"source":"iana","compressible":false},"application/lxf":{"source":"iana"},"application/mac-binhex40":{"source":"iana","extensions":["hqx"]},"application/mac-compactpro":{"source":"apache","extensions":["cpt"]},"application/macwriteii":{"source":"iana"},"application/mads+xml":{"source":"iana","compressible":true,"extensions":["mads"]},"application/manifest+json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["webmanifest"]},"application/marc":{"source":"iana","extensions":["mrc"]},"application/marcxml+xml":{"source":"iana","compressible":true,"extensions":["mrcx"]},"application/mathematica":{"source":"iana","extensions":["ma","nb","mb"]},"application/mathml+xml":{"source":"iana","compressible":true,"extensions":["mathml"]},"application/mathml-content+xml":{"source":"iana","compressible":true},"application/mathml-presentation+xml":{"source":"iana","compressible":true},"application/mbms-associated-procedure-description+xml":{"source":"iana","compressible":true},"application/mbms-deregister+xml":{"source":"iana","compressible":true},"application/mbms-envelope+xml":{"source":"iana","compressible":true},"application/mbms-msk+xml":{"source":"iana","compressible":true},"application/mbms-msk-response+xml":{"source":"iana","compressible":true},"application/mbms-protection-description+xml":{"source":"iana","compressible":true},"application/mbms-reception-report+xml":{"source":"iana","compressible":true},"application/mbms-register+xml":{"source":"iana","compressible":true},"application/mbms-register-response+xml":{"source":"iana","compressible":true},"application/mbms-schedule+xml":{"source":"iana","compressible":true},"application/mbms-user-service-description+xml":{"source":"iana","compressible":true},"application/mbox":{"source":"iana","extensions":["mbox"]},"application/media-policy-dataset+xml":{"source":"iana","compressible":true,"extensions":["mpf"]},"application/media_control+xml":{"source":"iana","compressible":true},"application/mediaservercontrol+xml":{"source":"iana","compressible":true,"extensions":["mscml"]},"application/merge-patch+json":{"source":"iana","compressible":true},"application/metalink+xml":{"source":"apache","compressible":true,"extensions":["metalink"]},"application/metalink4+xml":{"source":"iana","compressible":true,"extensions":["meta4"]},"application/mets+xml":{"source":"iana","compressible":true,"extensions":["mets"]},"application/mf4":{"source":"iana"},"application/mikey":{"source":"iana"},"application/mipc":{"source":"iana"},"application/missing-blocks+cbor-seq":{"source":"iana"},"application/mmt-aei+xml":{"source":"iana","compressible":true,"extensions":["maei"]},"application/mmt-usd+xml":{"source":"iana","compressible":true,"extensions":["musd"]},"application/mods+xml":{"source":"iana","compressible":true,"extensions":["mods"]},"application/moss-keys":{"source":"iana"},"application/moss-signature":{"source":"iana"},"application/mosskey-data":{"source":"iana"},"application/mosskey-request":{"source":"iana"},"application/mp21":{"source":"iana","extensions":["m21","mp21"]},"application/mp4":{"source":"iana","extensions":["mp4s","m4p"]},"application/mpeg4-generic":{"source":"iana"},"application/mpeg4-iod":{"source":"iana"},"application/mpeg4-iod-xmt":{"source":"iana"},"application/mrb-consumer+xml":{"source":"iana","compressible":true},"application/mrb-publish+xml":{"source":"iana","compressible":true},"application/msc-ivr+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msc-mixer+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msword":{"source":"iana","compressible":false,"extensions":["doc","dot"]},"application/mud+json":{"source":"iana","compressible":true},"application/multipart-core":{"source":"iana"},"application/mxf":{"source":"iana","extensions":["mxf"]},"application/n-quads":{"source":"iana","extensions":["nq"]},"application/n-triples":{"source":"iana","extensions":["nt"]},"application/nasdata":{"source":"iana"},"application/news-checkgroups":{"source":"iana","charset":"US-ASCII"},"application/news-groupinfo":{"source":"iana","charset":"US-ASCII"},"application/news-transmission":{"source":"iana"},"application/nlsml+xml":{"source":"iana","compressible":true},"application/node":{"source":"iana","extensions":["cjs"]},"application/nss":{"source":"iana"},"application/oauth-authz-req+jwt":{"source":"iana"},"application/oblivious-dns-message":{"source":"iana"},"application/ocsp-request":{"source":"iana"},"application/ocsp-response":{"source":"iana"},"application/octet-stream":{"source":"iana","compressible":false,"extensions":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{"source":"iana","extensions":["oda"]},"application/odm+xml":{"source":"iana","compressible":true},"application/odx":{"source":"iana"},"application/oebps-package+xml":{"source":"iana","compressible":true,"extensions":["opf"]},"application/ogg":{"source":"iana","compressible":false,"extensions":["ogx"]},"application/omdoc+xml":{"source":"apache","compressible":true,"extensions":["omdoc"]},"application/onenote":{"source":"apache","extensions":["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{"source":"iana","compressible":true},"application/oscore":{"source":"iana"},"application/oxps":{"source":"iana","extensions":["oxps"]},"application/p21":{"source":"iana"},"application/p21+zip":{"source":"iana","compressible":false},"application/p2p-overlay+xml":{"source":"iana","compressible":true,"extensions":["relo"]},"application/parityfec":{"source":"iana"},"application/passport":{"source":"iana"},"application/patch-ops-error+xml":{"source":"iana","compressible":true,"extensions":["xer"]},"application/pdf":{"source":"iana","compressible":false,"extensions":["pdf"]},"application/pdx":{"source":"iana"},"application/pem-certificate-chain":{"source":"iana"},"application/pgp-encrypted":{"source":"iana","compressible":false,"extensions":["pgp"]},"application/pgp-keys":{"source":"iana","extensions":["asc"]},"application/pgp-signature":{"source":"iana","extensions":["asc","sig"]},"application/pics-rules":{"source":"apache","extensions":["prf"]},"application/pidf+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pidf-diff+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pkcs10":{"source":"iana","extensions":["p10"]},"application/pkcs12":{"source":"iana"},"application/pkcs7-mime":{"source":"iana","extensions":["p7m","p7c"]},"application/pkcs7-signature":{"source":"iana","extensions":["p7s"]},"application/pkcs8":{"source":"iana","extensions":["p8"]},"application/pkcs8-encrypted":{"source":"iana"},"application/pkix-attr-cert":{"source":"iana","extensions":["ac"]},"application/pkix-cert":{"source":"iana","extensions":["cer"]},"application/pkix-crl":{"source":"iana","extensions":["crl"]},"application/pkix-pkipath":{"source":"iana","extensions":["pkipath"]},"application/pkixcmp":{"source":"iana","extensions":["pki"]},"application/pls+xml":{"source":"iana","compressible":true,"extensions":["pls"]},"application/poc-settings+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/postscript":{"source":"iana","compressible":true,"extensions":["ai","eps","ps"]},"application/ppsp-tracker+json":{"source":"iana","compressible":true},"application/problem+json":{"source":"iana","compressible":true},"application/problem+xml":{"source":"iana","compressible":true},"application/provenance+xml":{"source":"iana","compressible":true,"extensions":["provx"]},"application/prs.alvestrand.titrax-sheet":{"source":"iana"},"application/prs.cww":{"source":"iana","extensions":["cww"]},"application/prs.cyn":{"source":"iana","charset":"7-BIT"},"application/prs.hpub+zip":{"source":"iana","compressible":false},"application/prs.nprend":{"source":"iana"},"application/prs.plucker":{"source":"iana"},"application/prs.rdf-xml-crypt":{"source":"iana"},"application/prs.xsf+xml":{"source":"iana","compressible":true},"application/pskc+xml":{"source":"iana","compressible":true,"extensions":["pskcxml"]},"application/pvd+json":{"source":"iana","compressible":true},"application/qsig":{"source":"iana"},"application/raml+yaml":{"compressible":true,"extensions":["raml"]},"application/raptorfec":{"source":"iana"},"application/rdap+json":{"source":"iana","compressible":true},"application/rdf+xml":{"source":"iana","compressible":true,"extensions":["rdf","owl"]},"application/reginfo+xml":{"source":"iana","compressible":true,"extensions":["rif"]},"application/relax-ng-compact-syntax":{"source":"iana","extensions":["rnc"]},"application/remote-printing":{"source":"iana"},"application/reputon+json":{"source":"iana","compressible":true},"application/resource-lists+xml":{"source":"iana","compressible":true,"extensions":["rl"]},"application/resource-lists-diff+xml":{"source":"iana","compressible":true,"extensions":["rld"]},"application/rfc+xml":{"source":"iana","compressible":true},"application/riscos":{"source":"iana"},"application/rlmi+xml":{"source":"iana","compressible":true},"application/rls-services+xml":{"source":"iana","compressible":true,"extensions":["rs"]},"application/route-apd+xml":{"source":"iana","compressible":true,"extensions":["rapd"]},"application/route-s-tsid+xml":{"source":"iana","compressible":true,"extensions":["sls"]},"application/route-usd+xml":{"source":"iana","compressible":true,"extensions":["rusd"]},"application/rpki-ghostbusters":{"source":"iana","extensions":["gbr"]},"application/rpki-manifest":{"source":"iana","extensions":["mft"]},"application/rpki-publication":{"source":"iana"},"application/rpki-roa":{"source":"iana","extensions":["roa"]},"application/rpki-updown":{"source":"iana"},"application/rsd+xml":{"source":"apache","compressible":true,"extensions":["rsd"]},"application/rss+xml":{"source":"apache","compressible":true,"extensions":["rss"]},"application/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"application/rtploopback":{"source":"iana"},"application/rtx":{"source":"iana"},"application/samlassertion+xml":{"source":"iana","compressible":true},"application/samlmetadata+xml":{"source":"iana","compressible":true},"application/sarif+json":{"source":"iana","compressible":true},"application/sarif-external-properties+json":{"source":"iana","compressible":true},"application/sbe":{"source":"iana"},"application/sbml+xml":{"source":"iana","compressible":true,"extensions":["sbml"]},"application/scaip+xml":{"source":"iana","compressible":true},"application/scim+json":{"source":"iana","compressible":true},"application/scvp-cv-request":{"source":"iana","extensions":["scq"]},"application/scvp-cv-response":{"source":"iana","extensions":["scs"]},"application/scvp-vp-request":{"source":"iana","extensions":["spq"]},"application/scvp-vp-response":{"source":"iana","extensions":["spp"]},"application/sdp":{"source":"iana","extensions":["sdp"]},"application/secevent+jwt":{"source":"iana"},"application/senml+cbor":{"source":"iana"},"application/senml+json":{"source":"iana","compressible":true},"application/senml+xml":{"source":"iana","compressible":true,"extensions":["senmlx"]},"application/senml-etch+cbor":{"source":"iana"},"application/senml-etch+json":{"source":"iana","compressible":true},"application/senml-exi":{"source":"iana"},"application/sensml+cbor":{"source":"iana"},"application/sensml+json":{"source":"iana","compressible":true},"application/sensml+xml":{"source":"iana","compressible":true,"extensions":["sensmlx"]},"application/sensml-exi":{"source":"iana"},"application/sep+xml":{"source":"iana","compressible":true},"application/sep-exi":{"source":"iana"},"application/session-info":{"source":"iana"},"application/set-payment":{"source":"iana"},"application/set-payment-initiation":{"source":"iana","extensions":["setpay"]},"application/set-registration":{"source":"iana"},"application/set-registration-initiation":{"source":"iana","extensions":["setreg"]},"application/sgml":{"source":"iana"},"application/sgml-open-catalog":{"source":"iana"},"application/shf+xml":{"source":"iana","compressible":true,"extensions":["shf"]},"application/sieve":{"source":"iana","extensions":["siv","sieve"]},"application/simple-filter+xml":{"source":"iana","compressible":true},"application/simple-message-summary":{"source":"iana"},"application/simplesymbolcontainer":{"source":"iana"},"application/sipc":{"source":"iana"},"application/slate":{"source":"iana"},"application/smil":{"source":"iana"},"application/smil+xml":{"source":"iana","compressible":true,"extensions":["smi","smil"]},"application/smpte336m":{"source":"iana"},"application/soap+fastinfoset":{"source":"iana"},"application/soap+xml":{"source":"iana","compressible":true},"application/sparql-query":{"source":"iana","extensions":["rq"]},"application/sparql-results+xml":{"source":"iana","compressible":true,"extensions":["srx"]},"application/spdx+json":{"source":"iana","compressible":true},"application/spirits-event+xml":{"source":"iana","compressible":true},"application/sql":{"source":"iana"},"application/srgs":{"source":"iana","extensions":["gram"]},"application/srgs+xml":{"source":"iana","compressible":true,"extensions":["grxml"]},"application/sru+xml":{"source":"iana","compressible":true,"extensions":["sru"]},"application/ssdl+xml":{"source":"apache","compressible":true,"extensions":["ssdl"]},"application/ssml+xml":{"source":"iana","compressible":true,"extensions":["ssml"]},"application/stix+json":{"source":"iana","compressible":true},"application/swid+xml":{"source":"iana","compressible":true,"extensions":["swidtag"]},"application/tamp-apex-update":{"source":"iana"},"application/tamp-apex-update-confirm":{"source":"iana"},"application/tamp-community-update":{"source":"iana"},"application/tamp-community-update-confirm":{"source":"iana"},"application/tamp-error":{"source":"iana"},"application/tamp-sequence-adjust":{"source":"iana"},"application/tamp-sequence-adjust-confirm":{"source":"iana"},"application/tamp-status-query":{"source":"iana"},"application/tamp-status-response":{"source":"iana"},"application/tamp-update":{"source":"iana"},"application/tamp-update-confirm":{"source":"iana"},"application/tar":{"compressible":true},"application/taxii+json":{"source":"iana","compressible":true},"application/td+json":{"source":"iana","compressible":true},"application/tei+xml":{"source":"iana","compressible":true,"extensions":["tei","teicorpus"]},"application/tetra_isi":{"source":"iana"},"application/thraud+xml":{"source":"iana","compressible":true,"extensions":["tfi"]},"application/timestamp-query":{"source":"iana"},"application/timestamp-reply":{"source":"iana"},"application/timestamped-data":{"source":"iana","extensions":["tsd"]},"application/tlsrpt+gzip":{"source":"iana"},"application/tlsrpt+json":{"source":"iana","compressible":true},"application/tnauthlist":{"source":"iana"},"application/token-introspection+jwt":{"source":"iana"},"application/toml":{"compressible":true,"extensions":["toml"]},"application/trickle-ice-sdpfrag":{"source":"iana"},"application/trig":{"source":"iana","extensions":["trig"]},"application/ttml+xml":{"source":"iana","compressible":true,"extensions":["ttml"]},"application/tve-trigger":{"source":"iana"},"application/tzif":{"source":"iana"},"application/tzif-leap":{"source":"iana"},"application/ubjson":{"compressible":false,"extensions":["ubj"]},"application/ulpfec":{"source":"iana"},"application/urc-grpsheet+xml":{"source":"iana","compressible":true},"application/urc-ressheet+xml":{"source":"iana","compressible":true,"extensions":["rsheet"]},"application/urc-targetdesc+xml":{"source":"iana","compressible":true,"extensions":["td"]},"application/urc-uisocketdesc+xml":{"source":"iana","compressible":true},"application/vcard+json":{"source":"iana","compressible":true},"application/vcard+xml":{"source":"iana","compressible":true},"application/vemmi":{"source":"iana"},"application/vividence.scriptfile":{"source":"apache"},"application/vnd.1000minds.decision-model+xml":{"source":"iana","compressible":true,"extensions":["1km"]},"application/vnd.3gpp-prose+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc3ch+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-v2x-local-service-information":{"source":"iana"},"application/vnd.3gpp.5gnas":{"source":"iana"},"application/vnd.3gpp.access-transfer-events+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.bsf+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gmop+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gtpc":{"source":"iana"},"application/vnd.3gpp.interworking-data":{"source":"iana"},"application/vnd.3gpp.lpp":{"source":"iana"},"application/vnd.3gpp.mc-signalling-ear":{"source":"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-payload":{"source":"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-signalling":{"source":"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-floor-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-signed+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-init-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-transmission-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mid-call+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ngap":{"source":"iana"},"application/vnd.3gpp.pfcp":{"source":"iana"},"application/vnd.3gpp.pic-bw-large":{"source":"iana","extensions":["plb"]},"application/vnd.3gpp.pic-bw-small":{"source":"iana","extensions":["psb"]},"application/vnd.3gpp.pic-bw-var":{"source":"iana","extensions":["pvb"]},"application/vnd.3gpp.s1ap":{"source":"iana"},"application/vnd.3gpp.sms":{"source":"iana"},"application/vnd.3gpp.sms+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-ext+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.state-and-event-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ussd+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.bcmcsinfo+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.sms":{"source":"iana"},"application/vnd.3gpp2.tcap":{"source":"iana","extensions":["tcap"]},"application/vnd.3lightssoftware.imagescal":{"source":"iana"},"application/vnd.3m.post-it-notes":{"source":"iana","extensions":["pwn"]},"application/vnd.accpac.simply.aso":{"source":"iana","extensions":["aso"]},"application/vnd.accpac.simply.imp":{"source":"iana","extensions":["imp"]},"application/vnd.acucobol":{"source":"iana","extensions":["acu"]},"application/vnd.acucorp":{"source":"iana","extensions":["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{"source":"apache","compressible":false,"extensions":["air"]},"application/vnd.adobe.flash.movie":{"source":"iana"},"application/vnd.adobe.formscentral.fcdt":{"source":"iana","extensions":["fcdt"]},"application/vnd.adobe.fxp":{"source":"iana","extensions":["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{"source":"iana"},"application/vnd.adobe.xdp+xml":{"source":"iana","compressible":true,"extensions":["xdp"]},"application/vnd.adobe.xfdf":{"source":"iana","extensions":["xfdf"]},"application/vnd.aether.imp":{"source":"iana"},"application/vnd.afpc.afplinedata":{"source":"iana"},"application/vnd.afpc.afplinedata-pagedef":{"source":"iana"},"application/vnd.afpc.cmoca-cmresource":{"source":"iana"},"application/vnd.afpc.foca-charset":{"source":"iana"},"application/vnd.afpc.foca-codedfont":{"source":"iana"},"application/vnd.afpc.foca-codepage":{"source":"iana"},"application/vnd.afpc.modca":{"source":"iana"},"application/vnd.afpc.modca-cmtable":{"source":"iana"},"application/vnd.afpc.modca-formdef":{"source":"iana"},"application/vnd.afpc.modca-mediummap":{"source":"iana"},"application/vnd.afpc.modca-objectcontainer":{"source":"iana"},"application/vnd.afpc.modca-overlay":{"source":"iana"},"application/vnd.afpc.modca-pagesegment":{"source":"iana"},"application/vnd.age":{"source":"iana","extensions":["age"]},"application/vnd.ah-barcode":{"source":"iana"},"application/vnd.ahead.space":{"source":"iana","extensions":["ahead"]},"application/vnd.airzip.filesecure.azf":{"source":"iana","extensions":["azf"]},"application/vnd.airzip.filesecure.azs":{"source":"iana","extensions":["azs"]},"application/vnd.amadeus+json":{"source":"iana","compressible":true},"application/vnd.amazon.ebook":{"source":"apache","extensions":["azw"]},"application/vnd.amazon.mobi8-ebook":{"source":"iana"},"application/vnd.americandynamics.acc":{"source":"iana","extensions":["acc"]},"application/vnd.amiga.ami":{"source":"iana","extensions":["ami"]},"application/vnd.amundsen.maze+xml":{"source":"iana","compressible":true},"application/vnd.android.ota":{"source":"iana"},"application/vnd.android.package-archive":{"source":"apache","compressible":false,"extensions":["apk"]},"application/vnd.anki":{"source":"iana"},"application/vnd.anser-web-certificate-issue-initiation":{"source":"iana","extensions":["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{"source":"apache","extensions":["fti"]},"application/vnd.antix.game-component":{"source":"iana","extensions":["atx"]},"application/vnd.apache.arrow.file":{"source":"iana"},"application/vnd.apache.arrow.stream":{"source":"iana"},"application/vnd.apache.thrift.binary":{"source":"iana"},"application/vnd.apache.thrift.compact":{"source":"iana"},"application/vnd.apache.thrift.json":{"source":"iana"},"application/vnd.api+json":{"source":"iana","compressible":true},"application/vnd.aplextor.warrp+json":{"source":"iana","compressible":true},"application/vnd.apothekende.reservation+json":{"source":"iana","compressible":true},"application/vnd.apple.installer+xml":{"source":"iana","compressible":true,"extensions":["mpkg"]},"application/vnd.apple.keynote":{"source":"iana","extensions":["key"]},"application/vnd.apple.mpegurl":{"source":"iana","extensions":["m3u8"]},"application/vnd.apple.numbers":{"source":"iana","extensions":["numbers"]},"application/vnd.apple.pages":{"source":"iana","extensions":["pages"]},"application/vnd.apple.pkpass":{"compressible":false,"extensions":["pkpass"]},"application/vnd.arastra.swi":{"source":"iana"},"application/vnd.aristanetworks.swi":{"source":"iana","extensions":["swi"]},"application/vnd.artisan+json":{"source":"iana","compressible":true},"application/vnd.artsquare":{"source":"iana"},"application/vnd.astraea-software.iota":{"source":"iana","extensions":["iota"]},"application/vnd.audiograph":{"source":"iana","extensions":["aep"]},"application/vnd.autopackage":{"source":"iana"},"application/vnd.avalon+json":{"source":"iana","compressible":true},"application/vnd.avistar+xml":{"source":"iana","compressible":true},"application/vnd.balsamiq.bmml+xml":{"source":"iana","compressible":true,"extensions":["bmml"]},"application/vnd.balsamiq.bmpr":{"source":"iana"},"application/vnd.banana-accounting":{"source":"iana"},"application/vnd.bbf.usp.error":{"source":"iana"},"application/vnd.bbf.usp.msg":{"source":"iana"},"application/vnd.bbf.usp.msg+json":{"source":"iana","compressible":true},"application/vnd.bekitzur-stech+json":{"source":"iana","compressible":true},"application/vnd.bint.med-content":{"source":"iana"},"application/vnd.biopax.rdf+xml":{"source":"iana","compressible":true},"application/vnd.blink-idb-value-wrapper":{"source":"iana"},"application/vnd.blueice.multipass":{"source":"iana","extensions":["mpm"]},"application/vnd.bluetooth.ep.oob":{"source":"iana"},"application/vnd.bluetooth.le.oob":{"source":"iana"},"application/vnd.bmi":{"source":"iana","extensions":["bmi"]},"application/vnd.bpf":{"source":"iana"},"application/vnd.bpf3":{"source":"iana"},"application/vnd.businessobjects":{"source":"iana","extensions":["rep"]},"application/vnd.byu.uapi+json":{"source":"iana","compressible":true},"application/vnd.cab-jscript":{"source":"iana"},"application/vnd.canon-cpdl":{"source":"iana"},"application/vnd.canon-lips":{"source":"iana"},"application/vnd.capasystems-pg+json":{"source":"iana","compressible":true},"application/vnd.cendio.thinlinc.clientconf":{"source":"iana"},"application/vnd.century-systems.tcp_stream":{"source":"iana"},"application/vnd.chemdraw+xml":{"source":"iana","compressible":true,"extensions":["cdxml"]},"application/vnd.chess-pgn":{"source":"iana"},"application/vnd.chipnuts.karaoke-mmd":{"source":"iana","extensions":["mmd"]},"application/vnd.ciedi":{"source":"iana"},"application/vnd.cinderella":{"source":"iana","extensions":["cdy"]},"application/vnd.cirpack.isdn-ext":{"source":"iana"},"application/vnd.citationstyles.style+xml":{"source":"iana","compressible":true,"extensions":["csl"]},"application/vnd.claymore":{"source":"iana","extensions":["cla"]},"application/vnd.cloanto.rp9":{"source":"iana","extensions":["rp9"]},"application/vnd.clonk.c4group":{"source":"iana","extensions":["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{"source":"iana","extensions":["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{"source":"iana","extensions":["c11amz"]},"application/vnd.coffeescript":{"source":"iana"},"application/vnd.collabio.xodocuments.document":{"source":"iana"},"application/vnd.collabio.xodocuments.document-template":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation-template":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{"source":"iana"},"application/vnd.collection+json":{"source":"iana","compressible":true},"application/vnd.collection.doc+json":{"source":"iana","compressible":true},"application/vnd.collection.next+json":{"source":"iana","compressible":true},"application/vnd.comicbook+zip":{"source":"iana","compressible":false},"application/vnd.comicbook-rar":{"source":"iana"},"application/vnd.commerce-battelle":{"source":"iana"},"application/vnd.commonspace":{"source":"iana","extensions":["csp"]},"application/vnd.contact.cmsg":{"source":"iana","extensions":["cdbcmsg"]},"application/vnd.coreos.ignition+json":{"source":"iana","compressible":true},"application/vnd.cosmocaller":{"source":"iana","extensions":["cmc"]},"application/vnd.crick.clicker":{"source":"iana","extensions":["clkx"]},"application/vnd.crick.clicker.keyboard":{"source":"iana","extensions":["clkk"]},"application/vnd.crick.clicker.palette":{"source":"iana","extensions":["clkp"]},"application/vnd.crick.clicker.template":{"source":"iana","extensions":["clkt"]},"application/vnd.crick.clicker.wordbank":{"source":"iana","extensions":["clkw"]},"application/vnd.criticaltools.wbs+xml":{"source":"iana","compressible":true,"extensions":["wbs"]},"application/vnd.cryptii.pipe+json":{"source":"iana","compressible":true},"application/vnd.crypto-shade-file":{"source":"iana"},"application/vnd.cryptomator.encrypted":{"source":"iana"},"application/vnd.cryptomator.vault":{"source":"iana"},"application/vnd.ctc-posml":{"source":"iana","extensions":["pml"]},"application/vnd.ctct.ws+xml":{"source":"iana","compressible":true},"application/vnd.cups-pdf":{"source":"iana"},"application/vnd.cups-postscript":{"source":"iana"},"application/vnd.cups-ppd":{"source":"iana","extensions":["ppd"]},"application/vnd.cups-raster":{"source":"iana"},"application/vnd.cups-raw":{"source":"iana"},"application/vnd.curl":{"source":"iana"},"application/vnd.curl.car":{"source":"apache","extensions":["car"]},"application/vnd.curl.pcurl":{"source":"apache","extensions":["pcurl"]},"application/vnd.cyan.dean.root+xml":{"source":"iana","compressible":true},"application/vnd.cybank":{"source":"iana"},"application/vnd.cyclonedx+json":{"source":"iana","compressible":true},"application/vnd.cyclonedx+xml":{"source":"iana","compressible":true},"application/vnd.d2l.coursepackage1p0+zip":{"source":"iana","compressible":false},"application/vnd.d3m-dataset":{"source":"iana"},"application/vnd.d3m-problem":{"source":"iana"},"application/vnd.dart":{"source":"iana","compressible":true,"extensions":["dart"]},"application/vnd.data-vision.rdz":{"source":"iana","extensions":["rdz"]},"application/vnd.datapackage+json":{"source":"iana","compressible":true},"application/vnd.dataresource+json":{"source":"iana","compressible":true},"application/vnd.dbf":{"source":"iana","extensions":["dbf"]},"application/vnd.debian.binary-package":{"source":"iana"},"application/vnd.dece.data":{"source":"iana","extensions":["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{"source":"iana","compressible":true,"extensions":["uvt","uvvt"]},"application/vnd.dece.unspecified":{"source":"iana","extensions":["uvx","uvvx"]},"application/vnd.dece.zip":{"source":"iana","extensions":["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{"source":"iana","extensions":["fe_launch"]},"application/vnd.desmume.movie":{"source":"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{"source":"iana"},"application/vnd.dm.delegation+xml":{"source":"iana","compressible":true},"application/vnd.dna":{"source":"iana","extensions":["dna"]},"application/vnd.document+json":{"source":"iana","compressible":true},"application/vnd.dolby.mlp":{"source":"apache","extensions":["mlp"]},"application/vnd.dolby.mobile.1":{"source":"iana"},"application/vnd.dolby.mobile.2":{"source":"iana"},"application/vnd.doremir.scorecloud-binary-document":{"source":"iana"},"application/vnd.dpgraph":{"source":"iana","extensions":["dpg"]},"application/vnd.dreamfactory":{"source":"iana","extensions":["dfac"]},"application/vnd.drive+json":{"source":"iana","compressible":true},"application/vnd.ds-keypoint":{"source":"apache","extensions":["kpxx"]},"application/vnd.dtg.local":{"source":"iana"},"application/vnd.dtg.local.flash":{"source":"iana"},"application/vnd.dtg.local.html":{"source":"iana"},"application/vnd.dvb.ait":{"source":"iana","extensions":["ait"]},"application/vnd.dvb.dvbisl+xml":{"source":"iana","compressible":true},"application/vnd.dvb.dvbj":{"source":"iana"},"application/vnd.dvb.esgcontainer":{"source":"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess2":{"source":"iana"},"application/vnd.dvb.ipdcesgpdd":{"source":"iana"},"application/vnd.dvb.ipdcroaming":{"source":"iana"},"application/vnd.dvb.iptv.alfec-base":{"source":"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{"source":"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-container+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-generic+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-msglist+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-request+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-response+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-init+xml":{"source":"iana","compressible":true},"application/vnd.dvb.pfr":{"source":"iana"},"application/vnd.dvb.service":{"source":"iana","extensions":["svc"]},"application/vnd.dxr":{"source":"iana"},"application/vnd.dynageo":{"source":"iana","extensions":["geo"]},"application/vnd.dzr":{"source":"iana"},"application/vnd.easykaraoke.cdgdownload":{"source":"iana"},"application/vnd.ecdis-update":{"source":"iana"},"application/vnd.ecip.rlp":{"source":"iana"},"application/vnd.eclipse.ditto+json":{"source":"iana","compressible":true},"application/vnd.ecowin.chart":{"source":"iana","extensions":["mag"]},"application/vnd.ecowin.filerequest":{"source":"iana"},"application/vnd.ecowin.fileupdate":{"source":"iana"},"application/vnd.ecowin.series":{"source":"iana"},"application/vnd.ecowin.seriesrequest":{"source":"iana"},"application/vnd.ecowin.seriesupdate":{"source":"iana"},"application/vnd.efi.img":{"source":"iana"},"application/vnd.efi.iso":{"source":"iana"},"application/vnd.emclient.accessrequest+xml":{"source":"iana","compressible":true},"application/vnd.enliven":{"source":"iana","extensions":["nml"]},"application/vnd.enphase.envoy":{"source":"iana"},"application/vnd.eprints.data+xml":{"source":"iana","compressible":true},"application/vnd.epson.esf":{"source":"iana","extensions":["esf"]},"application/vnd.epson.msf":{"source":"iana","extensions":["msf"]},"application/vnd.epson.quickanime":{"source":"iana","extensions":["qam"]},"application/vnd.epson.salt":{"source":"iana","extensions":["slt"]},"application/vnd.epson.ssf":{"source":"iana","extensions":["ssf"]},"application/vnd.ericsson.quickcall":{"source":"iana"},"application/vnd.espass-espass+zip":{"source":"iana","compressible":false},"application/vnd.eszigno3+xml":{"source":"iana","compressible":true,"extensions":["es3","et3"]},"application/vnd.etsi.aoc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.asic-e+zip":{"source":"iana","compressible":false},"application/vnd.etsi.asic-s+zip":{"source":"iana","compressible":false},"application/vnd.etsi.cug+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvcommand+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-bc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-cod+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-npvr+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvservice+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsync+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvueprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mcid+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mheg5":{"source":"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{"source":"iana","compressible":true},"application/vnd.etsi.pstn+xml":{"source":"iana","compressible":true},"application/vnd.etsi.sci+xml":{"source":"iana","compressible":true},"application/vnd.etsi.simservs+xml":{"source":"iana","compressible":true},"application/vnd.etsi.timestamp-token":{"source":"iana"},"application/vnd.etsi.tsl+xml":{"source":"iana","compressible":true},"application/vnd.etsi.tsl.der":{"source":"iana"},"application/vnd.eu.kasparian.car+json":{"source":"iana","compressible":true},"application/vnd.eudora.data":{"source":"iana"},"application/vnd.evolv.ecig.profile":{"source":"iana"},"application/vnd.evolv.ecig.settings":{"source":"iana"},"application/vnd.evolv.ecig.theme":{"source":"iana"},"application/vnd.exstream-empower+zip":{"source":"iana","compressible":false},"application/vnd.exstream-package":{"source":"iana"},"application/vnd.ezpix-album":{"source":"iana","extensions":["ez2"]},"application/vnd.ezpix-package":{"source":"iana","extensions":["ez3"]},"application/vnd.f-secure.mobile":{"source":"iana"},"application/vnd.familysearch.gedcom+zip":{"source":"iana","compressible":false},"application/vnd.fastcopy-disk-image":{"source":"iana"},"application/vnd.fdf":{"source":"iana","extensions":["fdf"]},"application/vnd.fdsn.mseed":{"source":"iana","extensions":["mseed"]},"application/vnd.fdsn.seed":{"source":"iana","extensions":["seed","dataless"]},"application/vnd.ffsns":{"source":"iana"},"application/vnd.ficlab.flb+zip":{"source":"iana","compressible":false},"application/vnd.filmit.zfc":{"source":"iana"},"application/vnd.fints":{"source":"iana"},"application/vnd.firemonkeys.cloudcell":{"source":"iana"},"application/vnd.flographit":{"source":"iana","extensions":["gph"]},"application/vnd.fluxtime.clip":{"source":"iana","extensions":["ftc"]},"application/vnd.font-fontforge-sfd":{"source":"iana"},"application/vnd.framemaker":{"source":"iana","extensions":["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{"source":"iana","extensions":["fnc"]},"application/vnd.frogans.ltf":{"source":"iana","extensions":["ltf"]},"application/vnd.fsc.weblaunch":{"source":"iana","extensions":["fsc"]},"application/vnd.fujifilm.fb.docuworks":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.container":{"source":"iana"},"application/vnd.fujifilm.fb.jfi+xml":{"source":"iana","compressible":true},"application/vnd.fujitsu.oasys":{"source":"iana","extensions":["oas"]},"application/vnd.fujitsu.oasys2":{"source":"iana","extensions":["oa2"]},"application/vnd.fujitsu.oasys3":{"source":"iana","extensions":["oa3"]},"application/vnd.fujitsu.oasysgp":{"source":"iana","extensions":["fg5"]},"application/vnd.fujitsu.oasysprs":{"source":"iana","extensions":["bh2"]},"application/vnd.fujixerox.art-ex":{"source":"iana"},"application/vnd.fujixerox.art4":{"source":"iana"},"application/vnd.fujixerox.ddd":{"source":"iana","extensions":["ddd"]},"application/vnd.fujixerox.docuworks":{"source":"iana","extensions":["xdw"]},"application/vnd.fujixerox.docuworks.binder":{"source":"iana","extensions":["xbd"]},"application/vnd.fujixerox.docuworks.container":{"source":"iana"},"application/vnd.fujixerox.hbpl":{"source":"iana"},"application/vnd.fut-misnet":{"source":"iana"},"application/vnd.futoin+cbor":{"source":"iana"},"application/vnd.futoin+json":{"source":"iana","compressible":true},"application/vnd.fuzzysheet":{"source":"iana","extensions":["fzs"]},"application/vnd.genomatix.tuxedo":{"source":"iana","extensions":["txd"]},"application/vnd.gentics.grd+json":{"source":"iana","compressible":true},"application/vnd.geo+json":{"source":"iana","compressible":true},"application/vnd.geocube+xml":{"source":"iana","compressible":true},"application/vnd.geogebra.file":{"source":"iana","extensions":["ggb"]},"application/vnd.geogebra.slides":{"source":"iana"},"application/vnd.geogebra.tool":{"source":"iana","extensions":["ggt"]},"application/vnd.geometry-explorer":{"source":"iana","extensions":["gex","gre"]},"application/vnd.geonext":{"source":"iana","extensions":["gxt"]},"application/vnd.geoplan":{"source":"iana","extensions":["g2w"]},"application/vnd.geospace":{"source":"iana","extensions":["g3w"]},"application/vnd.gerber":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt-response":{"source":"iana"},"application/vnd.gmx":{"source":"iana","extensions":["gmx"]},"application/vnd.google-apps.document":{"compressible":false,"extensions":["gdoc"]},"application/vnd.google-apps.presentation":{"compressible":false,"extensions":["gslides"]},"application/vnd.google-apps.spreadsheet":{"compressible":false,"extensions":["gsheet"]},"application/vnd.google-earth.kml+xml":{"source":"iana","compressible":true,"extensions":["kml"]},"application/vnd.google-earth.kmz":{"source":"iana","compressible":false,"extensions":["kmz"]},"application/vnd.gov.sk.e-form+xml":{"source":"iana","compressible":true},"application/vnd.gov.sk.e-form+zip":{"source":"iana","compressible":false},"application/vnd.gov.sk.xmldatacontainer+xml":{"source":"iana","compressible":true},"application/vnd.grafeq":{"source":"iana","extensions":["gqf","gqs"]},"application/vnd.gridmp":{"source":"iana"},"application/vnd.groove-account":{"source":"iana","extensions":["gac"]},"application/vnd.groove-help":{"source":"iana","extensions":["ghf"]},"application/vnd.groove-identity-message":{"source":"iana","extensions":["gim"]},"application/vnd.groove-injector":{"source":"iana","extensions":["grv"]},"application/vnd.groove-tool-message":{"source":"iana","extensions":["gtm"]},"application/vnd.groove-tool-template":{"source":"iana","extensions":["tpl"]},"application/vnd.groove-vcard":{"source":"iana","extensions":["vcg"]},"application/vnd.hal+json":{"source":"iana","compressible":true},"application/vnd.hal+xml":{"source":"iana","compressible":true,"extensions":["hal"]},"application/vnd.handheld-entertainment+xml":{"source":"iana","compressible":true,"extensions":["zmm"]},"application/vnd.hbci":{"source":"iana","extensions":["hbci"]},"application/vnd.hc+json":{"source":"iana","compressible":true},"application/vnd.hcl-bireports":{"source":"iana"},"application/vnd.hdt":{"source":"iana"},"application/vnd.heroku+json":{"source":"iana","compressible":true},"application/vnd.hhe.lesson-player":{"source":"iana","extensions":["les"]},"application/vnd.hl7cda+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.hl7v2+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.hp-hpgl":{"source":"iana","extensions":["hpgl"]},"application/vnd.hp-hpid":{"source":"iana","extensions":["hpid"]},"application/vnd.hp-hps":{"source":"iana","extensions":["hps"]},"application/vnd.hp-jlyt":{"source":"iana","extensions":["jlt"]},"application/vnd.hp-pcl":{"source":"iana","extensions":["pcl"]},"application/vnd.hp-pclxl":{"source":"iana","extensions":["pclxl"]},"application/vnd.httphone":{"source":"iana"},"application/vnd.hydrostatix.sof-data":{"source":"iana","extensions":["sfd-hdstx"]},"application/vnd.hyper+json":{"source":"iana","compressible":true},"application/vnd.hyper-item+json":{"source":"iana","compressible":true},"application/vnd.hyperdrive+json":{"source":"iana","compressible":true},"application/vnd.hzn-3d-crossword":{"source":"iana"},"application/vnd.ibm.afplinedata":{"source":"iana"},"application/vnd.ibm.electronic-media":{"source":"iana"},"application/vnd.ibm.minipay":{"source":"iana","extensions":["mpy"]},"application/vnd.ibm.modcap":{"source":"iana","extensions":["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{"source":"iana","extensions":["irm"]},"application/vnd.ibm.secure-container":{"source":"iana","extensions":["sc"]},"application/vnd.iccprofile":{"source":"iana","extensions":["icc","icm"]},"application/vnd.ieee.1905":{"source":"iana"},"application/vnd.igloader":{"source":"iana","extensions":["igl"]},"application/vnd.imagemeter.folder+zip":{"source":"iana","compressible":false},"application/vnd.imagemeter.image+zip":{"source":"iana","compressible":false},"application/vnd.immervision-ivp":{"source":"iana","extensions":["ivp"]},"application/vnd.immervision-ivu":{"source":"iana","extensions":["ivu"]},"application/vnd.ims.imsccv1p1":{"source":"iana"},"application/vnd.ims.imsccv1p2":{"source":"iana"},"application/vnd.ims.imsccv1p3":{"source":"iana"},"application/vnd.ims.lis.v2.result+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy.id+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings.simple+json":{"source":"iana","compressible":true},"application/vnd.informedcontrol.rms+xml":{"source":"iana","compressible":true},"application/vnd.informix-visionary":{"source":"iana"},"application/vnd.infotech.project":{"source":"iana"},"application/vnd.infotech.project+xml":{"source":"iana","compressible":true},"application/vnd.innopath.wamp.notification":{"source":"iana"},"application/vnd.insors.igm":{"source":"iana","extensions":["igm"]},"application/vnd.intercon.formnet":{"source":"iana","extensions":["xpw","xpx"]},"application/vnd.intergeo":{"source":"iana","extensions":["i2g"]},"application/vnd.intertrust.digibox":{"source":"iana"},"application/vnd.intertrust.nncp":{"source":"iana"},"application/vnd.intu.qbo":{"source":"iana","extensions":["qbo"]},"application/vnd.intu.qfx":{"source":"iana","extensions":["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.conceptitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.knowledgeitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsmessage+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.packageitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.planningitem+xml":{"source":"iana","compressible":true},"application/vnd.ipunplugged.rcprofile":{"source":"iana","extensions":["rcprofile"]},"application/vnd.irepository.package+xml":{"source":"iana","compressible":true,"extensions":["irp"]},"application/vnd.is-xpr":{"source":"iana","extensions":["xpr"]},"application/vnd.isac.fcs":{"source":"iana","extensions":["fcs"]},"application/vnd.iso11783-10+zip":{"source":"iana","compressible":false},"application/vnd.jam":{"source":"iana","extensions":["jam"]},"application/vnd.japannet-directory-service":{"source":"iana"},"application/vnd.japannet-jpnstore-wakeup":{"source":"iana"},"application/vnd.japannet-payment-wakeup":{"source":"iana"},"application/vnd.japannet-registration":{"source":"iana"},"application/vnd.japannet-registration-wakeup":{"source":"iana"},"application/vnd.japannet-setstore-wakeup":{"source":"iana"},"application/vnd.japannet-verification":{"source":"iana"},"application/vnd.japannet-verification-wakeup":{"source":"iana"},"application/vnd.jcp.javame.midlet-rms":{"source":"iana","extensions":["rms"]},"application/vnd.jisp":{"source":"iana","extensions":["jisp"]},"application/vnd.joost.joda-archive":{"source":"iana","extensions":["joda"]},"application/vnd.jsk.isdn-ngn":{"source":"iana"},"application/vnd.kahootz":{"source":"iana","extensions":["ktz","ktr"]},"application/vnd.kde.karbon":{"source":"iana","extensions":["karbon"]},"application/vnd.kde.kchart":{"source":"iana","extensions":["chrt"]},"application/vnd.kde.kformula":{"source":"iana","extensions":["kfo"]},"application/vnd.kde.kivio":{"source":"iana","extensions":["flw"]},"application/vnd.kde.kontour":{"source":"iana","extensions":["kon"]},"application/vnd.kde.kpresenter":{"source":"iana","extensions":["kpr","kpt"]},"application/vnd.kde.kspread":{"source":"iana","extensions":["ksp"]},"application/vnd.kde.kword":{"source":"iana","extensions":["kwd","kwt"]},"application/vnd.kenameaapp":{"source":"iana","extensions":["htke"]},"application/vnd.kidspiration":{"source":"iana","extensions":["kia"]},"application/vnd.kinar":{"source":"iana","extensions":["kne","knp"]},"application/vnd.koan":{"source":"iana","extensions":["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{"source":"iana","extensions":["sse"]},"application/vnd.las":{"source":"iana"},"application/vnd.las.las+json":{"source":"iana","compressible":true},"application/vnd.las.las+xml":{"source":"iana","compressible":true,"extensions":["lasxml"]},"application/vnd.laszip":{"source":"iana"},"application/vnd.leap+json":{"source":"iana","compressible":true},"application/vnd.liberty-request+xml":{"source":"iana","compressible":true},"application/vnd.llamagraphics.life-balance.desktop":{"source":"iana","extensions":["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{"source":"iana","compressible":true,"extensions":["lbe"]},"application/vnd.logipipe.circuit+zip":{"source":"iana","compressible":false},"application/vnd.loom":{"source":"iana"},"application/vnd.lotus-1-2-3":{"source":"iana","extensions":["123"]},"application/vnd.lotus-approach":{"source":"iana","extensions":["apr"]},"application/vnd.lotus-freelance":{"source":"iana","extensions":["pre"]},"application/vnd.lotus-notes":{"source":"iana","extensions":["nsf"]},"application/vnd.lotus-organizer":{"source":"iana","extensions":["org"]},"application/vnd.lotus-screencam":{"source":"iana","extensions":["scm"]},"application/vnd.lotus-wordpro":{"source":"iana","extensions":["lwp"]},"application/vnd.macports.portpkg":{"source":"iana","extensions":["portpkg"]},"application/vnd.mapbox-vector-tile":{"source":"iana","extensions":["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.conftoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.license+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.mdcf":{"source":"iana"},"application/vnd.mason+json":{"source":"iana","compressible":true},"application/vnd.maxar.archive.3tz+zip":{"source":"iana","compressible":false},"application/vnd.maxmind.maxmind-db":{"source":"iana"},"application/vnd.mcd":{"source":"iana","extensions":["mcd"]},"application/vnd.medcalcdata":{"source":"iana","extensions":["mc1"]},"application/vnd.mediastation.cdkey":{"source":"iana","extensions":["cdkey"]},"application/vnd.meridian-slingshot":{"source":"iana"},"application/vnd.mfer":{"source":"iana","extensions":["mwf"]},"application/vnd.mfmp":{"source":"iana","extensions":["mfm"]},"application/vnd.micro+json":{"source":"iana","compressible":true},"application/vnd.micrografx.flo":{"source":"iana","extensions":["flo"]},"application/vnd.micrografx.igx":{"source":"iana","extensions":["igx"]},"application/vnd.microsoft.portable-executable":{"source":"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{"source":"iana"},"application/vnd.miele+json":{"source":"iana","compressible":true},"application/vnd.mif":{"source":"iana","extensions":["mif"]},"application/vnd.minisoft-hp3000-save":{"source":"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{"source":"iana"},"application/vnd.mobius.daf":{"source":"iana","extensions":["daf"]},"application/vnd.mobius.dis":{"source":"iana","extensions":["dis"]},"application/vnd.mobius.mbk":{"source":"iana","extensions":["mbk"]},"application/vnd.mobius.mqy":{"source":"iana","extensions":["mqy"]},"application/vnd.mobius.msl":{"source":"iana","extensions":["msl"]},"application/vnd.mobius.plc":{"source":"iana","extensions":["plc"]},"application/vnd.mobius.txf":{"source":"iana","extensions":["txf"]},"application/vnd.mophun.application":{"source":"iana","extensions":["mpn"]},"application/vnd.mophun.certificate":{"source":"iana","extensions":["mpc"]},"application/vnd.motorola.flexsuite":{"source":"iana"},"application/vnd.motorola.flexsuite.adsi":{"source":"iana"},"application/vnd.motorola.flexsuite.fis":{"source":"iana"},"application/vnd.motorola.flexsuite.gotap":{"source":"iana"},"application/vnd.motorola.flexsuite.kmr":{"source":"iana"},"application/vnd.motorola.flexsuite.ttc":{"source":"iana"},"application/vnd.motorola.flexsuite.wem":{"source":"iana"},"application/vnd.motorola.iprm":{"source":"iana"},"application/vnd.mozilla.xul+xml":{"source":"iana","compressible":true,"extensions":["xul"]},"application/vnd.ms-3mfdocument":{"source":"iana"},"application/vnd.ms-artgalry":{"source":"iana","extensions":["cil"]},"application/vnd.ms-asf":{"source":"iana"},"application/vnd.ms-cab-compressed":{"source":"iana","extensions":["cab"]},"application/vnd.ms-color.iccprofile":{"source":"apache"},"application/vnd.ms-excel":{"source":"iana","compressible":false,"extensions":["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{"source":"iana","extensions":["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{"source":"iana","extensions":["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{"source":"iana","extensions":["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{"source":"iana","extensions":["xltm"]},"application/vnd.ms-fontobject":{"source":"iana","compressible":true,"extensions":["eot"]},"application/vnd.ms-htmlhelp":{"source":"iana","extensions":["chm"]},"application/vnd.ms-ims":{"source":"iana","extensions":["ims"]},"application/vnd.ms-lrm":{"source":"iana","extensions":["lrm"]},"application/vnd.ms-office.activex+xml":{"source":"iana","compressible":true},"application/vnd.ms-officetheme":{"source":"iana","extensions":["thmx"]},"application/vnd.ms-opentype":{"source":"apache","compressible":true},"application/vnd.ms-outlook":{"compressible":false,"extensions":["msg"]},"application/vnd.ms-package.obfuscated-opentype":{"source":"apache"},"application/vnd.ms-pki.seccat":{"source":"apache","extensions":["cat"]},"application/vnd.ms-pki.stl":{"source":"apache","extensions":["stl"]},"application/vnd.ms-playready.initiator+xml":{"source":"iana","compressible":true},"application/vnd.ms-powerpoint":{"source":"iana","compressible":false,"extensions":["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{"source":"iana","extensions":["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{"source":"iana","extensions":["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{"source":"iana","extensions":["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{"source":"iana","extensions":["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{"source":"iana","extensions":["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{"source":"iana","compressible":true},"application/vnd.ms-printing.printticket+xml":{"source":"apache","compressible":true},"application/vnd.ms-printschematicket+xml":{"source":"iana","compressible":true},"application/vnd.ms-project":{"source":"iana","extensions":["mpp","mpt"]},"application/vnd.ms-tnef":{"source":"iana"},"application/vnd.ms-windows.devicepairing":{"source":"iana"},"application/vnd.ms-windows.nwprinting.oob":{"source":"iana"},"application/vnd.ms-windows.printerpairing":{"source":"iana"},"application/vnd.ms-windows.wsd.oob":{"source":"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.lic-resp":{"source":"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.meter-resp":{"source":"iana"},"application/vnd.ms-word.document.macroenabled.12":{"source":"iana","extensions":["docm"]},"application/vnd.ms-word.template.macroenabled.12":{"source":"iana","extensions":["dotm"]},"application/vnd.ms-works":{"source":"iana","extensions":["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{"source":"iana","extensions":["wpl"]},"application/vnd.ms-xpsdocument":{"source":"iana","compressible":false,"extensions":["xps"]},"application/vnd.msa-disk-image":{"source":"iana"},"application/vnd.mseq":{"source":"iana","extensions":["mseq"]},"application/vnd.msign":{"source":"iana"},"application/vnd.multiad.creator":{"source":"iana"},"application/vnd.multiad.creator.cif":{"source":"iana"},"application/vnd.music-niff":{"source":"iana"},"application/vnd.musician":{"source":"iana","extensions":["mus"]},"application/vnd.muvee.style":{"source":"iana","extensions":["msty"]},"application/vnd.mynfc":{"source":"iana","extensions":["taglet"]},"application/vnd.nacamar.ybrid+json":{"source":"iana","compressible":true},"application/vnd.ncd.control":{"source":"iana"},"application/vnd.ncd.reference":{"source":"iana"},"application/vnd.nearst.inv+json":{"source":"iana","compressible":true},"application/vnd.nebumind.line":{"source":"iana"},"application/vnd.nervana":{"source":"iana"},"application/vnd.netfpx":{"source":"iana"},"application/vnd.neurolanguage.nlu":{"source":"iana","extensions":["nlu"]},"application/vnd.nimn":{"source":"iana"},"application/vnd.nintendo.nitro.rom":{"source":"iana"},"application/vnd.nintendo.snes.rom":{"source":"iana"},"application/vnd.nitf":{"source":"iana","extensions":["ntf","nitf"]},"application/vnd.noblenet-directory":{"source":"iana","extensions":["nnd"]},"application/vnd.noblenet-sealer":{"source":"iana","extensions":["nns"]},"application/vnd.noblenet-web":{"source":"iana","extensions":["nnw"]},"application/vnd.nokia.catalogs":{"source":"iana"},"application/vnd.nokia.conml+wbxml":{"source":"iana"},"application/vnd.nokia.conml+xml":{"source":"iana","compressible":true},"application/vnd.nokia.iptv.config+xml":{"source":"iana","compressible":true},"application/vnd.nokia.isds-radio-presets":{"source":"iana"},"application/vnd.nokia.landmark+wbxml":{"source":"iana"},"application/vnd.nokia.landmark+xml":{"source":"iana","compressible":true},"application/vnd.nokia.landmarkcollection+xml":{"source":"iana","compressible":true},"application/vnd.nokia.n-gage.ac+xml":{"source":"iana","compressible":true,"extensions":["ac"]},"application/vnd.nokia.n-gage.data":{"source":"iana","extensions":["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{"source":"iana","extensions":["n-gage"]},"application/vnd.nokia.ncd":{"source":"iana"},"application/vnd.nokia.pcd+wbxml":{"source":"iana"},"application/vnd.nokia.pcd+xml":{"source":"iana","compressible":true},"application/vnd.nokia.radio-preset":{"source":"iana","extensions":["rpst"]},"application/vnd.nokia.radio-presets":{"source":"iana","extensions":["rpss"]},"application/vnd.novadigm.edm":{"source":"iana","extensions":["edm"]},"application/vnd.novadigm.edx":{"source":"iana","extensions":["edx"]},"application/vnd.novadigm.ext":{"source":"iana","extensions":["ext"]},"application/vnd.ntt-local.content-share":{"source":"iana"},"application/vnd.ntt-local.file-transfer":{"source":"iana"},"application/vnd.ntt-local.ogw_remote-access":{"source":"iana"},"application/vnd.ntt-local.sip-ta_remote":{"source":"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{"source":"iana"},"application/vnd.oasis.opendocument.chart":{"source":"iana","extensions":["odc"]},"application/vnd.oasis.opendocument.chart-template":{"source":"iana","extensions":["otc"]},"application/vnd.oasis.opendocument.database":{"source":"iana","extensions":["odb"]},"application/vnd.oasis.opendocument.formula":{"source":"iana","extensions":["odf"]},"application/vnd.oasis.opendocument.formula-template":{"source":"iana","extensions":["odft"]},"application/vnd.oasis.opendocument.graphics":{"source":"iana","compressible":false,"extensions":["odg"]},"application/vnd.oasis.opendocument.graphics-template":{"source":"iana","extensions":["otg"]},"application/vnd.oasis.opendocument.image":{"source":"iana","extensions":["odi"]},"application/vnd.oasis.opendocument.image-template":{"source":"iana","extensions":["oti"]},"application/vnd.oasis.opendocument.presentation":{"source":"iana","compressible":false,"extensions":["odp"]},"application/vnd.oasis.opendocument.presentation-template":{"source":"iana","extensions":["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{"source":"iana","compressible":false,"extensions":["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{"source":"iana","extensions":["ots"]},"application/vnd.oasis.opendocument.text":{"source":"iana","compressible":false,"extensions":["odt"]},"application/vnd.oasis.opendocument.text-master":{"source":"iana","extensions":["odm"]},"application/vnd.oasis.opendocument.text-template":{"source":"iana","extensions":["ott"]},"application/vnd.oasis.opendocument.text-web":{"source":"iana","extensions":["oth"]},"application/vnd.obn":{"source":"iana"},"application/vnd.ocf+cbor":{"source":"iana"},"application/vnd.oci.image.manifest.v1+json":{"source":"iana","compressible":true},"application/vnd.oftn.l10n+json":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessdownload+xml":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessstreaming+xml":{"source":"iana","compressible":true},"application/vnd.oipf.cspg-hexbinary":{"source":"iana"},"application/vnd.oipf.dae.svg+xml":{"source":"iana","compressible":true},"application/vnd.oipf.dae.xhtml+xml":{"source":"iana","compressible":true},"application/vnd.oipf.mippvcontrolmessage+xml":{"source":"iana","compressible":true},"application/vnd.oipf.pae.gem":{"source":"iana"},"application/vnd.oipf.spdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.oipf.spdlist+xml":{"source":"iana","compressible":true},"application/vnd.oipf.ueprofile+xml":{"source":"iana","compressible":true},"application/vnd.oipf.userprofile+xml":{"source":"iana","compressible":true},"application/vnd.olpc-sugar":{"source":"iana","extensions":["xo"]},"application/vnd.oma-scws-config":{"source":"iana"},"application/vnd.oma-scws-http-request":{"source":"iana"},"application/vnd.oma-scws-http-response":{"source":"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.drm-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.imd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.ltkm":{"source":"iana"},"application/vnd.oma.bcast.notification+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.provisioningtrigger":{"source":"iana"},"application/vnd.oma.bcast.sgboot":{"source":"iana"},"application/vnd.oma.bcast.sgdd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sgdu":{"source":"iana"},"application/vnd.oma.bcast.simple-symbol-container":{"source":"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sprov+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.stkm":{"source":"iana"},"application/vnd.oma.cab-address-book+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-feature-handler+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-pcc+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-subs-invite+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-user-prefs+xml":{"source":"iana","compressible":true},"application/vnd.oma.dcd":{"source":"iana"},"application/vnd.oma.dcdc":{"source":"iana"},"application/vnd.oma.dd2+xml":{"source":"iana","compressible":true,"extensions":["dd2"]},"application/vnd.oma.drm.risd+xml":{"source":"iana","compressible":true},"application/vnd.oma.group-usage-list+xml":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+cbor":{"source":"iana"},"application/vnd.oma.lwm2m+json":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+tlv":{"source":"iana"},"application/vnd.oma.pal+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.detailed-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.final-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.groups+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.invocation-descriptor+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.optimized-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.push":{"source":"iana"},"application/vnd.oma.scidm.messages+xml":{"source":"iana","compressible":true},"application/vnd.oma.xcap-directory+xml":{"source":"iana","compressible":true},"application/vnd.omads-email+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-file+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-folder+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omaloc-supl-init":{"source":"iana"},"application/vnd.onepager":{"source":"iana"},"application/vnd.onepagertamp":{"source":"iana"},"application/vnd.onepagertamx":{"source":"iana"},"application/vnd.onepagertat":{"source":"iana"},"application/vnd.onepagertatp":{"source":"iana"},"application/vnd.onepagertatx":{"source":"iana"},"application/vnd.openblox.game+xml":{"source":"iana","compressible":true,"extensions":["obgx"]},"application/vnd.openblox.game-binary":{"source":"iana"},"application/vnd.openeye.oeb":{"source":"iana"},"application/vnd.openofficeorg.extension":{"source":"apache","extensions":["oxt"]},"application/vnd.openstreetmap.data+xml":{"source":"iana","compressible":true,"extensions":["osm"]},"application/vnd.opentimestamps.ots":{"source":"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawing+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{"source":"iana","compressible":false,"extensions":["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slide":{"source":"iana","extensions":["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{"source":"iana","extensions":["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.template":{"source":"iana","extensions":["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"source":"iana","compressible":false,"extensions":["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{"source":"iana","extensions":["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.theme+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.vmldrawing":{"source":"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"source":"iana","compressible":false,"extensions":["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{"source":"iana","extensions":["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.core-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.relationships+xml":{"source":"iana","compressible":true},"application/vnd.oracle.resource+json":{"source":"iana","compressible":true},"application/vnd.orange.indata":{"source":"iana"},"application/vnd.osa.netdeploy":{"source":"iana"},"application/vnd.osgeo.mapguide.package":{"source":"iana","extensions":["mgp"]},"application/vnd.osgi.bundle":{"source":"iana"},"application/vnd.osgi.dp":{"source":"iana","extensions":["dp"]},"application/vnd.osgi.subsystem":{"source":"iana","extensions":["esa"]},"application/vnd.otps.ct-kip+xml":{"source":"iana","compressible":true},"application/vnd.oxli.countgraph":{"source":"iana"},"application/vnd.pagerduty+json":{"source":"iana","compressible":true},"application/vnd.palm":{"source":"iana","extensions":["pdb","pqa","oprc"]},"application/vnd.panoply":{"source":"iana"},"application/vnd.paos.xml":{"source":"iana"},"application/vnd.patentdive":{"source":"iana"},"application/vnd.patientecommsdoc":{"source":"iana"},"application/vnd.pawaafile":{"source":"iana","extensions":["paw"]},"application/vnd.pcos":{"source":"iana"},"application/vnd.pg.format":{"source":"iana","extensions":["str"]},"application/vnd.pg.osasli":{"source":"iana","extensions":["ei6"]},"application/vnd.piaccess.application-licence":{"source":"iana"},"application/vnd.picsel":{"source":"iana","extensions":["efif"]},"application/vnd.pmi.widget":{"source":"iana","extensions":["wg"]},"application/vnd.poc.group-advertisement+xml":{"source":"iana","compressible":true},"application/vnd.pocketlearn":{"source":"iana","extensions":["plf"]},"application/vnd.powerbuilder6":{"source":"iana","extensions":["pbd"]},"application/vnd.powerbuilder6-s":{"source":"iana"},"application/vnd.powerbuilder7":{"source":"iana"},"application/vnd.powerbuilder7-s":{"source":"iana"},"application/vnd.powerbuilder75":{"source":"iana"},"application/vnd.powerbuilder75-s":{"source":"iana"},"application/vnd.preminet":{"source":"iana"},"application/vnd.previewsystems.box":{"source":"iana","extensions":["box"]},"application/vnd.proteus.magazine":{"source":"iana","extensions":["mgz"]},"application/vnd.psfs":{"source":"iana"},"application/vnd.publishare-delta-tree":{"source":"iana","extensions":["qps"]},"application/vnd.pvi.ptid1":{"source":"iana","extensions":["ptid"]},"application/vnd.pwg-multiplexed":{"source":"iana"},"application/vnd.pwg-xhtml-print+xml":{"source":"iana","compressible":true},"application/vnd.qualcomm.brew-app-res":{"source":"iana"},"application/vnd.quarantainenet":{"source":"iana"},"application/vnd.quark.quarkxpress":{"source":"iana","extensions":["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{"source":"iana"},"application/vnd.radisys.moml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conn+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-stream+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-base+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-detect+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-group+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-speech+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-transform+xml":{"source":"iana","compressible":true},"application/vnd.rainstor.data":{"source":"iana"},"application/vnd.rapid":{"source":"iana"},"application/vnd.rar":{"source":"iana","extensions":["rar"]},"application/vnd.realvnc.bed":{"source":"iana","extensions":["bed"]},"application/vnd.recordare.musicxml":{"source":"iana","extensions":["mxl"]},"application/vnd.recordare.musicxml+xml":{"source":"iana","compressible":true,"extensions":["musicxml"]},"application/vnd.renlearn.rlprint":{"source":"iana"},"application/vnd.resilient.logic":{"source":"iana"},"application/vnd.restful+json":{"source":"iana","compressible":true},"application/vnd.rig.cryptonote":{"source":"iana","extensions":["cryptonote"]},"application/vnd.rim.cod":{"source":"apache","extensions":["cod"]},"application/vnd.rn-realmedia":{"source":"apache","extensions":["rm"]},"application/vnd.rn-realmedia-vbr":{"source":"apache","extensions":["rmvb"]},"application/vnd.route66.link66+xml":{"source":"iana","compressible":true,"extensions":["link66"]},"application/vnd.rs-274x":{"source":"iana"},"application/vnd.ruckus.download":{"source":"iana"},"application/vnd.s3sms":{"source":"iana"},"application/vnd.sailingtracker.track":{"source":"iana","extensions":["st"]},"application/vnd.sar":{"source":"iana"},"application/vnd.sbm.cid":{"source":"iana"},"application/vnd.sbm.mid2":{"source":"iana"},"application/vnd.scribus":{"source":"iana"},"application/vnd.sealed.3df":{"source":"iana"},"application/vnd.sealed.csf":{"source":"iana"},"application/vnd.sealed.doc":{"source":"iana"},"application/vnd.sealed.eml":{"source":"iana"},"application/vnd.sealed.mht":{"source":"iana"},"application/vnd.sealed.net":{"source":"iana"},"application/vnd.sealed.ppt":{"source":"iana"},"application/vnd.sealed.tiff":{"source":"iana"},"application/vnd.sealed.xls":{"source":"iana"},"application/vnd.sealedmedia.softseal.html":{"source":"iana"},"application/vnd.sealedmedia.softseal.pdf":{"source":"iana"},"application/vnd.seemail":{"source":"iana","extensions":["see"]},"application/vnd.seis+json":{"source":"iana","compressible":true},"application/vnd.sema":{"source":"iana","extensions":["sema"]},"application/vnd.semd":{"source":"iana","extensions":["semd"]},"application/vnd.semf":{"source":"iana","extensions":["semf"]},"application/vnd.shade-save-file":{"source":"iana"},"application/vnd.shana.informed.formdata":{"source":"iana","extensions":["ifm"]},"application/vnd.shana.informed.formtemplate":{"source":"iana","extensions":["itp"]},"application/vnd.shana.informed.interchange":{"source":"iana","extensions":["iif"]},"application/vnd.shana.informed.package":{"source":"iana","extensions":["ipk"]},"application/vnd.shootproof+json":{"source":"iana","compressible":true},"application/vnd.shopkick+json":{"source":"iana","compressible":true},"application/vnd.shp":{"source":"iana"},"application/vnd.shx":{"source":"iana"},"application/vnd.sigrok.session":{"source":"iana"},"application/vnd.simtech-mindmapper":{"source":"iana","extensions":["twd","twds"]},"application/vnd.siren+json":{"source":"iana","compressible":true},"application/vnd.smaf":{"source":"iana","extensions":["mmf"]},"application/vnd.smart.notebook":{"source":"iana"},"application/vnd.smart.teacher":{"source":"iana","extensions":["teacher"]},"application/vnd.snesdev-page-table":{"source":"iana"},"application/vnd.software602.filler.form+xml":{"source":"iana","compressible":true,"extensions":["fo"]},"application/vnd.software602.filler.form-xml-zip":{"source":"iana"},"application/vnd.solent.sdkm+xml":{"source":"iana","compressible":true,"extensions":["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{"source":"iana","extensions":["dxp"]},"application/vnd.spotfire.sfs":{"source":"iana","extensions":["sfs"]},"application/vnd.sqlite3":{"source":"iana"},"application/vnd.sss-cod":{"source":"iana"},"application/vnd.sss-dtf":{"source":"iana"},"application/vnd.sss-ntf":{"source":"iana"},"application/vnd.stardivision.calc":{"source":"apache","extensions":["sdc"]},"application/vnd.stardivision.draw":{"source":"apache","extensions":["sda"]},"application/vnd.stardivision.impress":{"source":"apache","extensions":["sdd"]},"application/vnd.stardivision.math":{"source":"apache","extensions":["smf"]},"application/vnd.stardivision.writer":{"source":"apache","extensions":["sdw","vor"]},"application/vnd.stardivision.writer-global":{"source":"apache","extensions":["sgl"]},"application/vnd.stepmania.package":{"source":"iana","extensions":["smzip"]},"application/vnd.stepmania.stepchart":{"source":"iana","extensions":["sm"]},"application/vnd.street-stream":{"source":"iana"},"application/vnd.sun.wadl+xml":{"source":"iana","compressible":true,"extensions":["wadl"]},"application/vnd.sun.xml.calc":{"source":"apache","extensions":["sxc"]},"application/vnd.sun.xml.calc.template":{"source":"apache","extensions":["stc"]},"application/vnd.sun.xml.draw":{"source":"apache","extensions":["sxd"]},"application/vnd.sun.xml.draw.template":{"source":"apache","extensions":["std"]},"application/vnd.sun.xml.impress":{"source":"apache","extensions":["sxi"]},"application/vnd.sun.xml.impress.template":{"source":"apache","extensions":["sti"]},"application/vnd.sun.xml.math":{"source":"apache","extensions":["sxm"]},"application/vnd.sun.xml.writer":{"source":"apache","extensions":["sxw"]},"application/vnd.sun.xml.writer.global":{"source":"apache","extensions":["sxg"]},"application/vnd.sun.xml.writer.template":{"source":"apache","extensions":["stw"]},"application/vnd.sus-calendar":{"source":"iana","extensions":["sus","susp"]},"application/vnd.svd":{"source":"iana","extensions":["svd"]},"application/vnd.swiftview-ics":{"source":"iana"},"application/vnd.sycle+xml":{"source":"iana","compressible":true},"application/vnd.syft+json":{"source":"iana","compressible":true},"application/vnd.symbian.install":{"source":"apache","extensions":["sis","sisx"]},"application/vnd.syncml+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xsm"]},"application/vnd.syncml.dm+wbxml":{"source":"iana","charset":"UTF-8","extensions":["bdm"]},"application/vnd.syncml.dm+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xdm"]},"application/vnd.syncml.dm.notification":{"source":"iana"},"application/vnd.syncml.dmddf+wbxml":{"source":"iana"},"application/vnd.syncml.dmddf+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{"source":"iana"},"application/vnd.syncml.dmtnds+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.syncml.ds.notification":{"source":"iana"},"application/vnd.tableschema+json":{"source":"iana","compressible":true},"application/vnd.tao.intent-module-archive":{"source":"iana","extensions":["tao"]},"application/vnd.tcpdump.pcap":{"source":"iana","extensions":["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{"source":"iana","compressible":true},"application/vnd.tmd.mediaflex.api+xml":{"source":"iana","compressible":true},"application/vnd.tml":{"source":"iana"},"application/vnd.tmobile-livetv":{"source":"iana","extensions":["tmo"]},"application/vnd.tri.onesource":{"source":"iana"},"application/vnd.trid.tpt":{"source":"iana","extensions":["tpt"]},"application/vnd.triscape.mxs":{"source":"iana","extensions":["mxs"]},"application/vnd.trueapp":{"source":"iana","extensions":["tra"]},"application/vnd.truedoc":{"source":"iana"},"application/vnd.ubisoft.webplayer":{"source":"iana"},"application/vnd.ufdl":{"source":"iana","extensions":["ufd","ufdl"]},"application/vnd.uiq.theme":{"source":"iana","extensions":["utz"]},"application/vnd.umajin":{"source":"iana","extensions":["umj"]},"application/vnd.unity":{"source":"iana","extensions":["unityweb"]},"application/vnd.uoml+xml":{"source":"iana","compressible":true,"extensions":["uoml"]},"application/vnd.uplanet.alert":{"source":"iana"},"application/vnd.uplanet.alert-wbxml":{"source":"iana"},"application/vnd.uplanet.bearer-choice":{"source":"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{"source":"iana"},"application/vnd.uplanet.cacheop":{"source":"iana"},"application/vnd.uplanet.cacheop-wbxml":{"source":"iana"},"application/vnd.uplanet.channel":{"source":"iana"},"application/vnd.uplanet.channel-wbxml":{"source":"iana"},"application/vnd.uplanet.list":{"source":"iana"},"application/vnd.uplanet.list-wbxml":{"source":"iana"},"application/vnd.uplanet.listcmd":{"source":"iana"},"application/vnd.uplanet.listcmd-wbxml":{"source":"iana"},"application/vnd.uplanet.signal":{"source":"iana"},"application/vnd.uri-map":{"source":"iana"},"application/vnd.valve.source.material":{"source":"iana"},"application/vnd.vcx":{"source":"iana","extensions":["vcx"]},"application/vnd.vd-study":{"source":"iana"},"application/vnd.vectorworks":{"source":"iana"},"application/vnd.vel+json":{"source":"iana","compressible":true},"application/vnd.verimatrix.vcas":{"source":"iana"},"application/vnd.veritone.aion+json":{"source":"iana","compressible":true},"application/vnd.veryant.thin":{"source":"iana"},"application/vnd.ves.encrypted":{"source":"iana"},"application/vnd.vidsoft.vidconference":{"source":"iana"},"application/vnd.visio":{"source":"iana","extensions":["vsd","vst","vss","vsw"]},"application/vnd.visionary":{"source":"iana","extensions":["vis"]},"application/vnd.vividence.scriptfile":{"source":"iana"},"application/vnd.vsf":{"source":"iana","extensions":["vsf"]},"application/vnd.wap.sic":{"source":"iana"},"application/vnd.wap.slc":{"source":"iana"},"application/vnd.wap.wbxml":{"source":"iana","charset":"UTF-8","extensions":["wbxml"]},"application/vnd.wap.wmlc":{"source":"iana","extensions":["wmlc"]},"application/vnd.wap.wmlscriptc":{"source":"iana","extensions":["wmlsc"]},"application/vnd.webturbo":{"source":"iana","extensions":["wtb"]},"application/vnd.wfa.dpp":{"source":"iana"},"application/vnd.wfa.p2p":{"source":"iana"},"application/vnd.wfa.wsc":{"source":"iana"},"application/vnd.windows.devicepairing":{"source":"iana"},"application/vnd.wmc":{"source":"iana"},"application/vnd.wmf.bootstrap":{"source":"iana"},"application/vnd.wolfram.mathematica":{"source":"iana"},"application/vnd.wolfram.mathematica.package":{"source":"iana"},"application/vnd.wolfram.player":{"source":"iana","extensions":["nbp"]},"application/vnd.wordperfect":{"source":"iana","extensions":["wpd"]},"application/vnd.wqd":{"source":"iana","extensions":["wqd"]},"application/vnd.wrq-hp3000-labelled":{"source":"iana"},"application/vnd.wt.stf":{"source":"iana","extensions":["stf"]},"application/vnd.wv.csp+wbxml":{"source":"iana"},"application/vnd.wv.csp+xml":{"source":"iana","compressible":true},"application/vnd.wv.ssp+xml":{"source":"iana","compressible":true},"application/vnd.xacml+json":{"source":"iana","compressible":true},"application/vnd.xara":{"source":"iana","extensions":["xar"]},"application/vnd.xfdl":{"source":"iana","extensions":["xfdl"]},"application/vnd.xfdl.webform":{"source":"iana"},"application/vnd.xmi+xml":{"source":"iana","compressible":true},"application/vnd.xmpie.cpkg":{"source":"iana"},"application/vnd.xmpie.dpkg":{"source":"iana"},"application/vnd.xmpie.plan":{"source":"iana"},"application/vnd.xmpie.ppkg":{"source":"iana"},"application/vnd.xmpie.xlim":{"source":"iana"},"application/vnd.yamaha.hv-dic":{"source":"iana","extensions":["hvd"]},"application/vnd.yamaha.hv-script":{"source":"iana","extensions":["hvs"]},"application/vnd.yamaha.hv-voice":{"source":"iana","extensions":["hvp"]},"application/vnd.yamaha.openscoreformat":{"source":"iana","extensions":["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{"source":"iana","compressible":true,"extensions":["osfpvg"]},"application/vnd.yamaha.remote-setup":{"source":"iana"},"application/vnd.yamaha.smaf-audio":{"source":"iana","extensions":["saf"]},"application/vnd.yamaha.smaf-phrase":{"source":"iana","extensions":["spf"]},"application/vnd.yamaha.through-ngn":{"source":"iana"},"application/vnd.yamaha.tunnel-udpencap":{"source":"iana"},"application/vnd.yaoweme":{"source":"iana"},"application/vnd.yellowriver-custom-menu":{"source":"iana","extensions":["cmp"]},"application/vnd.youtube.yt":{"source":"iana"},"application/vnd.zul":{"source":"iana","extensions":["zir","zirz"]},"application/vnd.zzazz.deck+xml":{"source":"iana","compressible":true,"extensions":["zaz"]},"application/voicexml+xml":{"source":"iana","compressible":true,"extensions":["vxml"]},"application/voucher-cms+json":{"source":"iana","compressible":true},"application/vq-rtcpxr":{"source":"iana"},"application/wasm":{"source":"iana","compressible":true,"extensions":["wasm"]},"application/watcherinfo+xml":{"source":"iana","compressible":true,"extensions":["wif"]},"application/webpush-options+json":{"source":"iana","compressible":true},"application/whoispp-query":{"source":"iana"},"application/whoispp-response":{"source":"iana"},"application/widget":{"source":"iana","extensions":["wgt"]},"application/winhlp":{"source":"apache","extensions":["hlp"]},"application/wita":{"source":"iana"},"application/wordperfect5.1":{"source":"iana"},"application/wsdl+xml":{"source":"iana","compressible":true,"extensions":["wsdl"]},"application/wspolicy+xml":{"source":"iana","compressible":true,"extensions":["wspolicy"]},"application/x-7z-compressed":{"source":"apache","compressible":false,"extensions":["7z"]},"application/x-abiword":{"source":"apache","extensions":["abw"]},"application/x-ace-compressed":{"source":"apache","extensions":["ace"]},"application/x-amf":{"source":"apache"},"application/x-apple-diskimage":{"source":"apache","extensions":["dmg"]},"application/x-arj":{"compressible":false,"extensions":["arj"]},"application/x-authorware-bin":{"source":"apache","extensions":["aab","x32","u32","vox"]},"application/x-authorware-map":{"source":"apache","extensions":["aam"]},"application/x-authorware-seg":{"source":"apache","extensions":["aas"]},"application/x-bcpio":{"source":"apache","extensions":["bcpio"]},"application/x-bdoc":{"compressible":false,"extensions":["bdoc"]},"application/x-bittorrent":{"source":"apache","extensions":["torrent"]},"application/x-blorb":{"source":"apache","extensions":["blb","blorb"]},"application/x-bzip":{"source":"apache","compressible":false,"extensions":["bz"]},"application/x-bzip2":{"source":"apache","compressible":false,"extensions":["bz2","boz"]},"application/x-cbr":{"source":"apache","extensions":["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{"source":"apache","extensions":["vcd"]},"application/x-cfs-compressed":{"source":"apache","extensions":["cfs"]},"application/x-chat":{"source":"apache","extensions":["chat"]},"application/x-chess-pgn":{"source":"apache","extensions":["pgn"]},"application/x-chrome-extension":{"extensions":["crx"]},"application/x-cocoa":{"source":"nginx","extensions":["cco"]},"application/x-compress":{"source":"apache"},"application/x-conference":{"source":"apache","extensions":["nsc"]},"application/x-cpio":{"source":"apache","extensions":["cpio"]},"application/x-csh":{"source":"apache","extensions":["csh"]},"application/x-deb":{"compressible":false},"application/x-debian-package":{"source":"apache","extensions":["deb","udeb"]},"application/x-dgc-compressed":{"source":"apache","extensions":["dgc"]},"application/x-director":{"source":"apache","extensions":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{"source":"apache","extensions":["wad"]},"application/x-dtbncx+xml":{"source":"apache","compressible":true,"extensions":["ncx"]},"application/x-dtbook+xml":{"source":"apache","compressible":true,"extensions":["dtb"]},"application/x-dtbresource+xml":{"source":"apache","compressible":true,"extensions":["res"]},"application/x-dvi":{"source":"apache","compressible":false,"extensions":["dvi"]},"application/x-envoy":{"source":"apache","extensions":["evy"]},"application/x-eva":{"source":"apache","extensions":["eva"]},"application/x-font-bdf":{"source":"apache","extensions":["bdf"]},"application/x-font-dos":{"source":"apache"},"application/x-font-framemaker":{"source":"apache"},"application/x-font-ghostscript":{"source":"apache","extensions":["gsf"]},"application/x-font-libgrx":{"source":"apache"},"application/x-font-linux-psf":{"source":"apache","extensions":["psf"]},"application/x-font-pcf":{"source":"apache","extensions":["pcf"]},"application/x-font-snf":{"source":"apache","extensions":["snf"]},"application/x-font-speedo":{"source":"apache"},"application/x-font-sunos-news":{"source":"apache"},"application/x-font-type1":{"source":"apache","extensions":["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{"source":"apache"},"application/x-freearc":{"source":"apache","extensions":["arc"]},"application/x-futuresplash":{"source":"apache","extensions":["spl"]},"application/x-gca-compressed":{"source":"apache","extensions":["gca"]},"application/x-glulx":{"source":"apache","extensions":["ulx"]},"application/x-gnumeric":{"source":"apache","extensions":["gnumeric"]},"application/x-gramps-xml":{"source":"apache","extensions":["gramps"]},"application/x-gtar":{"source":"apache","extensions":["gtar"]},"application/x-gzip":{"source":"apache"},"application/x-hdf":{"source":"apache","extensions":["hdf"]},"application/x-httpd-php":{"compressible":true,"extensions":["php"]},"application/x-install-instructions":{"source":"apache","extensions":["install"]},"application/x-iso9660-image":{"source":"apache","extensions":["iso"]},"application/x-iwork-keynote-sffkey":{"extensions":["key"]},"application/x-iwork-numbers-sffnumbers":{"extensions":["numbers"]},"application/x-iwork-pages-sffpages":{"extensions":["pages"]},"application/x-java-archive-diff":{"source":"nginx","extensions":["jardiff"]},"application/x-java-jnlp-file":{"source":"apache","compressible":false,"extensions":["jnlp"]},"application/x-javascript":{"compressible":true},"application/x-keepass2":{"extensions":["kdbx"]},"application/x-latex":{"source":"apache","compressible":false,"extensions":["latex"]},"application/x-lua-bytecode":{"extensions":["luac"]},"application/x-lzh-compressed":{"source":"apache","extensions":["lzh","lha"]},"application/x-makeself":{"source":"nginx","extensions":["run"]},"application/x-mie":{"source":"apache","extensions":["mie"]},"application/x-mobipocket-ebook":{"source":"apache","extensions":["prc","mobi"]},"application/x-mpegurl":{"compressible":false},"application/x-ms-application":{"source":"apache","extensions":["application"]},"application/x-ms-shortcut":{"source":"apache","extensions":["lnk"]},"application/x-ms-wmd":{"source":"apache","extensions":["wmd"]},"application/x-ms-wmz":{"source":"apache","extensions":["wmz"]},"application/x-ms-xbap":{"source":"apache","extensions":["xbap"]},"application/x-msaccess":{"source":"apache","extensions":["mdb"]},"application/x-msbinder":{"source":"apache","extensions":["obd"]},"application/x-mscardfile":{"source":"apache","extensions":["crd"]},"application/x-msclip":{"source":"apache","extensions":["clp"]},"application/x-msdos-program":{"extensions":["exe"]},"application/x-msdownload":{"source":"apache","extensions":["exe","dll","com","bat","msi"]},"application/x-msmediaview":{"source":"apache","extensions":["mvb","m13","m14"]},"application/x-msmetafile":{"source":"apache","extensions":["wmf","wmz","emf","emz"]},"application/x-msmoney":{"source":"apache","extensions":["mny"]},"application/x-mspublisher":{"source":"apache","extensions":["pub"]},"application/x-msschedule":{"source":"apache","extensions":["scd"]},"application/x-msterminal":{"source":"apache","extensions":["trm"]},"application/x-mswrite":{"source":"apache","extensions":["wri"]},"application/x-netcdf":{"source":"apache","extensions":["nc","cdf"]},"application/x-ns-proxy-autoconfig":{"compressible":true,"extensions":["pac"]},"application/x-nzb":{"source":"apache","extensions":["nzb"]},"application/x-perl":{"source":"nginx","extensions":["pl","pm"]},"application/x-pilot":{"source":"nginx","extensions":["prc","pdb"]},"application/x-pkcs12":{"source":"apache","compressible":false,"extensions":["p12","pfx"]},"application/x-pkcs7-certificates":{"source":"apache","extensions":["p7b","spc"]},"application/x-pkcs7-certreqresp":{"source":"apache","extensions":["p7r"]},"application/x-pki-message":{"source":"iana"},"application/x-rar-compressed":{"source":"apache","compressible":false,"extensions":["rar"]},"application/x-redhat-package-manager":{"source":"nginx","extensions":["rpm"]},"application/x-research-info-systems":{"source":"apache","extensions":["ris"]},"application/x-sea":{"source":"nginx","extensions":["sea"]},"application/x-sh":{"source":"apache","compressible":true,"extensions":["sh"]},"application/x-shar":{"source":"apache","extensions":["shar"]},"application/x-shockwave-flash":{"source":"apache","compressible":false,"extensions":["swf"]},"application/x-silverlight-app":{"source":"apache","extensions":["xap"]},"application/x-sql":{"source":"apache","extensions":["sql"]},"application/x-stuffit":{"source":"apache","compressible":false,"extensions":["sit"]},"application/x-stuffitx":{"source":"apache","extensions":["sitx"]},"application/x-subrip":{"source":"apache","extensions":["srt"]},"application/x-sv4cpio":{"source":"apache","extensions":["sv4cpio"]},"application/x-sv4crc":{"source":"apache","extensions":["sv4crc"]},"application/x-t3vm-image":{"source":"apache","extensions":["t3"]},"application/x-tads":{"source":"apache","extensions":["gam"]},"application/x-tar":{"source":"apache","compressible":true,"extensions":["tar"]},"application/x-tcl":{"source":"apache","extensions":["tcl","tk"]},"application/x-tex":{"source":"apache","extensions":["tex"]},"application/x-tex-tfm":{"source":"apache","extensions":["tfm"]},"application/x-texinfo":{"source":"apache","extensions":["texinfo","texi"]},"application/x-tgif":{"source":"apache","extensions":["obj"]},"application/x-ustar":{"source":"apache","extensions":["ustar"]},"application/x-virtualbox-hdd":{"compressible":true,"extensions":["hdd"]},"application/x-virtualbox-ova":{"compressible":true,"extensions":["ova"]},"application/x-virtualbox-ovf":{"compressible":true,"extensions":["ovf"]},"application/x-virtualbox-vbox":{"compressible":true,"extensions":["vbox"]},"application/x-virtualbox-vbox-extpack":{"compressible":false,"extensions":["vbox-extpack"]},"application/x-virtualbox-vdi":{"compressible":true,"extensions":["vdi"]},"application/x-virtualbox-vhd":{"compressible":true,"extensions":["vhd"]},"application/x-virtualbox-vmdk":{"compressible":true,"extensions":["vmdk"]},"application/x-wais-source":{"source":"apache","extensions":["src"]},"application/x-web-app-manifest+json":{"compressible":true,"extensions":["webapp"]},"application/x-www-form-urlencoded":{"source":"iana","compressible":true},"application/x-x509-ca-cert":{"source":"iana","extensions":["der","crt","pem"]},"application/x-x509-ca-ra-cert":{"source":"iana"},"application/x-x509-next-ca-cert":{"source":"iana"},"application/x-xfig":{"source":"apache","extensions":["fig"]},"application/x-xliff+xml":{"source":"apache","compressible":true,"extensions":["xlf"]},"application/x-xpinstall":{"source":"apache","compressible":false,"extensions":["xpi"]},"application/x-xz":{"source":"apache","extensions":["xz"]},"application/x-zmachine":{"source":"apache","extensions":["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{"source":"iana"},"application/xacml+xml":{"source":"iana","compressible":true},"application/xaml+xml":{"source":"apache","compressible":true,"extensions":["xaml"]},"application/xcap-att+xml":{"source":"iana","compressible":true,"extensions":["xav"]},"application/xcap-caps+xml":{"source":"iana","compressible":true,"extensions":["xca"]},"application/xcap-diff+xml":{"source":"iana","compressible":true,"extensions":["xdf"]},"application/xcap-el+xml":{"source":"iana","compressible":true,"extensions":["xel"]},"application/xcap-error+xml":{"source":"iana","compressible":true},"application/xcap-ns+xml":{"source":"iana","compressible":true,"extensions":["xns"]},"application/xcon-conference-info+xml":{"source":"iana","compressible":true},"application/xcon-conference-info-diff+xml":{"source":"iana","compressible":true},"application/xenc+xml":{"source":"iana","compressible":true,"extensions":["xenc"]},"application/xhtml+xml":{"source":"iana","compressible":true,"extensions":["xhtml","xht"]},"application/xhtml-voice+xml":{"source":"apache","compressible":true},"application/xliff+xml":{"source":"iana","compressible":true,"extensions":["xlf"]},"application/xml":{"source":"iana","compressible":true,"extensions":["xml","xsl","xsd","rng"]},"application/xml-dtd":{"source":"iana","compressible":true,"extensions":["dtd"]},"application/xml-external-parsed-entity":{"source":"iana"},"application/xml-patch+xml":{"source":"iana","compressible":true},"application/xmpp+xml":{"source":"iana","compressible":true},"application/xop+xml":{"source":"iana","compressible":true,"extensions":["xop"]},"application/xproc+xml":{"source":"apache","compressible":true,"extensions":["xpl"]},"application/xslt+xml":{"source":"iana","compressible":true,"extensions":["xsl","xslt"]},"application/xspf+xml":{"source":"apache","compressible":true,"extensions":["xspf"]},"application/xv+xml":{"source":"iana","compressible":true,"extensions":["mxml","xhvml","xvml","xvm"]},"application/yang":{"source":"iana","extensions":["yang"]},"application/yang-data+json":{"source":"iana","compressible":true},"application/yang-data+xml":{"source":"iana","compressible":true},"application/yang-patch+json":{"source":"iana","compressible":true},"application/yang-patch+xml":{"source":"iana","compressible":true},"application/yin+xml":{"source":"iana","compressible":true,"extensions":["yin"]},"application/zip":{"source":"iana","compressible":false,"extensions":["zip"]},"application/zlib":{"source":"iana"},"application/zstd":{"source":"iana"},"audio/1d-interleaved-parityfec":{"source":"iana"},"audio/32kadpcm":{"source":"iana"},"audio/3gpp":{"source":"iana","compressible":false,"extensions":["3gpp"]},"audio/3gpp2":{"source":"iana"},"audio/aac":{"source":"iana"},"audio/ac3":{"source":"iana"},"audio/adpcm":{"source":"apache","extensions":["adp"]},"audio/amr":{"source":"iana","extensions":["amr"]},"audio/amr-wb":{"source":"iana"},"audio/amr-wb+":{"source":"iana"},"audio/aptx":{"source":"iana"},"audio/asc":{"source":"iana"},"audio/atrac-advanced-lossless":{"source":"iana"},"audio/atrac-x":{"source":"iana"},"audio/atrac3":{"source":"iana"},"audio/basic":{"source":"iana","compressible":false,"extensions":["au","snd"]},"audio/bv16":{"source":"iana"},"audio/bv32":{"source":"iana"},"audio/clearmode":{"source":"iana"},"audio/cn":{"source":"iana"},"audio/dat12":{"source":"iana"},"audio/dls":{"source":"iana"},"audio/dsr-es201108":{"source":"iana"},"audio/dsr-es202050":{"source":"iana"},"audio/dsr-es202211":{"source":"iana"},"audio/dsr-es202212":{"source":"iana"},"audio/dv":{"source":"iana"},"audio/dvi4":{"source":"iana"},"audio/eac3":{"source":"iana"},"audio/encaprtp":{"source":"iana"},"audio/evrc":{"source":"iana"},"audio/evrc-qcp":{"source":"iana"},"audio/evrc0":{"source":"iana"},"audio/evrc1":{"source":"iana"},"audio/evrcb":{"source":"iana"},"audio/evrcb0":{"source":"iana"},"audio/evrcb1":{"source":"iana"},"audio/evrcnw":{"source":"iana"},"audio/evrcnw0":{"source":"iana"},"audio/evrcnw1":{"source":"iana"},"audio/evrcwb":{"source":"iana"},"audio/evrcwb0":{"source":"iana"},"audio/evrcwb1":{"source":"iana"},"audio/evs":{"source":"iana"},"audio/flexfec":{"source":"iana"},"audio/fwdred":{"source":"iana"},"audio/g711-0":{"source":"iana"},"audio/g719":{"source":"iana"},"audio/g722":{"source":"iana"},"audio/g7221":{"source":"iana"},"audio/g723":{"source":"iana"},"audio/g726-16":{"source":"iana"},"audio/g726-24":{"source":"iana"},"audio/g726-32":{"source":"iana"},"audio/g726-40":{"source":"iana"},"audio/g728":{"source":"iana"},"audio/g729":{"source":"iana"},"audio/g7291":{"source":"iana"},"audio/g729d":{"source":"iana"},"audio/g729e":{"source":"iana"},"audio/gsm":{"source":"iana"},"audio/gsm-efr":{"source":"iana"},"audio/gsm-hr-08":{"source":"iana"},"audio/ilbc":{"source":"iana"},"audio/ip-mr_v2.5":{"source":"iana"},"audio/isac":{"source":"apache"},"audio/l16":{"source":"iana"},"audio/l20":{"source":"iana"},"audio/l24":{"source":"iana","compressible":false},"audio/l8":{"source":"iana"},"audio/lpc":{"source":"iana"},"audio/melp":{"source":"iana"},"audio/melp1200":{"source":"iana"},"audio/melp2400":{"source":"iana"},"audio/melp600":{"source":"iana"},"audio/mhas":{"source":"iana"},"audio/midi":{"source":"apache","extensions":["mid","midi","kar","rmi"]},"audio/mobile-xmf":{"source":"iana","extensions":["mxmf"]},"audio/mp3":{"compressible":false,"extensions":["mp3"]},"audio/mp4":{"source":"iana","compressible":false,"extensions":["m4a","mp4a"]},"audio/mp4a-latm":{"source":"iana"},"audio/mpa":{"source":"iana"},"audio/mpa-robust":{"source":"iana"},"audio/mpeg":{"source":"iana","compressible":false,"extensions":["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{"source":"iana"},"audio/musepack":{"source":"apache"},"audio/ogg":{"source":"iana","compressible":false,"extensions":["oga","ogg","spx","opus"]},"audio/opus":{"source":"iana"},"audio/parityfec":{"source":"iana"},"audio/pcma":{"source":"iana"},"audio/pcma-wb":{"source":"iana"},"audio/pcmu":{"source":"iana"},"audio/pcmu-wb":{"source":"iana"},"audio/prs.sid":{"source":"iana"},"audio/qcelp":{"source":"iana"},"audio/raptorfec":{"source":"iana"},"audio/red":{"source":"iana"},"audio/rtp-enc-aescm128":{"source":"iana"},"audio/rtp-midi":{"source":"iana"},"audio/rtploopback":{"source":"iana"},"audio/rtx":{"source":"iana"},"audio/s3m":{"source":"apache","extensions":["s3m"]},"audio/scip":{"source":"iana"},"audio/silk":{"source":"apache","extensions":["sil"]},"audio/smv":{"source":"iana"},"audio/smv-qcp":{"source":"iana"},"audio/smv0":{"source":"iana"},"audio/sofa":{"source":"iana"},"audio/sp-midi":{"source":"iana"},"audio/speex":{"source":"iana"},"audio/t140c":{"source":"iana"},"audio/t38":{"source":"iana"},"audio/telephone-event":{"source":"iana"},"audio/tetra_acelp":{"source":"iana"},"audio/tetra_acelp_bb":{"source":"iana"},"audio/tone":{"source":"iana"},"audio/tsvcis":{"source":"iana"},"audio/uemclip":{"source":"iana"},"audio/ulpfec":{"source":"iana"},"audio/usac":{"source":"iana"},"audio/vdvi":{"source":"iana"},"audio/vmr-wb":{"source":"iana"},"audio/vnd.3gpp.iufp":{"source":"iana"},"audio/vnd.4sb":{"source":"iana"},"audio/vnd.audiokoz":{"source":"iana"},"audio/vnd.celp":{"source":"iana"},"audio/vnd.cisco.nse":{"source":"iana"},"audio/vnd.cmles.radio-events":{"source":"iana"},"audio/vnd.cns.anp1":{"source":"iana"},"audio/vnd.cns.inf1":{"source":"iana"},"audio/vnd.dece.audio":{"source":"iana","extensions":["uva","uvva"]},"audio/vnd.digital-winds":{"source":"iana","extensions":["eol"]},"audio/vnd.dlna.adts":{"source":"iana"},"audio/vnd.dolby.heaac.1":{"source":"iana"},"audio/vnd.dolby.heaac.2":{"source":"iana"},"audio/vnd.dolby.mlp":{"source":"iana"},"audio/vnd.dolby.mps":{"source":"iana"},"audio/vnd.dolby.pl2":{"source":"iana"},"audio/vnd.dolby.pl2x":{"source":"iana"},"audio/vnd.dolby.pl2z":{"source":"iana"},"audio/vnd.dolby.pulse.1":{"source":"iana"},"audio/vnd.dra":{"source":"iana","extensions":["dra"]},"audio/vnd.dts":{"source":"iana","extensions":["dts"]},"audio/vnd.dts.hd":{"source":"iana","extensions":["dtshd"]},"audio/vnd.dts.uhd":{"source":"iana"},"audio/vnd.dvb.file":{"source":"iana"},"audio/vnd.everad.plj":{"source":"iana"},"audio/vnd.hns.audio":{"source":"iana"},"audio/vnd.lucent.voice":{"source":"iana","extensions":["lvp"]},"audio/vnd.ms-playready.media.pya":{"source":"iana","extensions":["pya"]},"audio/vnd.nokia.mobile-xmf":{"source":"iana"},"audio/vnd.nortel.vbk":{"source":"iana"},"audio/vnd.nuera.ecelp4800":{"source":"iana","extensions":["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{"source":"iana","extensions":["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{"source":"iana","extensions":["ecelp9600"]},"audio/vnd.octel.sbc":{"source":"iana"},"audio/vnd.presonus.multitrack":{"source":"iana"},"audio/vnd.qcelp":{"source":"iana"},"audio/vnd.rhetorex.32kadpcm":{"source":"iana"},"audio/vnd.rip":{"source":"iana","extensions":["rip"]},"audio/vnd.rn-realaudio":{"compressible":false},"audio/vnd.sealedmedia.softseal.mpeg":{"source":"iana"},"audio/vnd.vmx.cvsd":{"source":"iana"},"audio/vnd.wave":{"compressible":false},"audio/vorbis":{"source":"iana","compressible":false},"audio/vorbis-config":{"source":"iana"},"audio/wav":{"compressible":false,"extensions":["wav"]},"audio/wave":{"compressible":false,"extensions":["wav"]},"audio/webm":{"source":"apache","compressible":false,"extensions":["weba"]},"audio/x-aac":{"source":"apache","compressible":false,"extensions":["aac"]},"audio/x-aiff":{"source":"apache","extensions":["aif","aiff","aifc"]},"audio/x-caf":{"source":"apache","compressible":false,"extensions":["caf"]},"audio/x-flac":{"source":"apache","extensions":["flac"]},"audio/x-m4a":{"source":"nginx","extensions":["m4a"]},"audio/x-matroska":{"source":"apache","extensions":["mka"]},"audio/x-mpegurl":{"source":"apache","extensions":["m3u"]},"audio/x-ms-wax":{"source":"apache","extensions":["wax"]},"audio/x-ms-wma":{"source":"apache","extensions":["wma"]},"audio/x-pn-realaudio":{"source":"apache","extensions":["ram","ra"]},"audio/x-pn-realaudio-plugin":{"source":"apache","extensions":["rmp"]},"audio/x-realaudio":{"source":"nginx","extensions":["ra"]},"audio/x-tta":{"source":"apache"},"audio/x-wav":{"source":"apache","extensions":["wav"]},"audio/xm":{"source":"apache","extensions":["xm"]},"chemical/x-cdx":{"source":"apache","extensions":["cdx"]},"chemical/x-cif":{"source":"apache","extensions":["cif"]},"chemical/x-cmdf":{"source":"apache","extensions":["cmdf"]},"chemical/x-cml":{"source":"apache","extensions":["cml"]},"chemical/x-csml":{"source":"apache","extensions":["csml"]},"chemical/x-pdb":{"source":"apache"},"chemical/x-xyz":{"source":"apache","extensions":["xyz"]},"font/collection":{"source":"iana","extensions":["ttc"]},"font/otf":{"source":"iana","compressible":true,"extensions":["otf"]},"font/sfnt":{"source":"iana"},"font/ttf":{"source":"iana","compressible":true,"extensions":["ttf"]},"font/woff":{"source":"iana","extensions":["woff"]},"font/woff2":{"source":"iana","extensions":["woff2"]},"image/aces":{"source":"iana","extensions":["exr"]},"image/apng":{"compressible":false,"extensions":["apng"]},"image/avci":{"source":"iana","extensions":["avci"]},"image/avcs":{"source":"iana","extensions":["avcs"]},"image/avif":{"source":"iana","compressible":false,"extensions":["avif"]},"image/bmp":{"source":"iana","compressible":true,"extensions":["bmp"]},"image/cgm":{"source":"iana","extensions":["cgm"]},"image/dicom-rle":{"source":"iana","extensions":["drle"]},"image/emf":{"source":"iana","extensions":["emf"]},"image/fits":{"source":"iana","extensions":["fits"]},"image/g3fax":{"source":"iana","extensions":["g3"]},"image/gif":{"source":"iana","compressible":false,"extensions":["gif"]},"image/heic":{"source":"iana","extensions":["heic"]},"image/heic-sequence":{"source":"iana","extensions":["heics"]},"image/heif":{"source":"iana","extensions":["heif"]},"image/heif-sequence":{"source":"iana","extensions":["heifs"]},"image/hej2k":{"source":"iana","extensions":["hej2"]},"image/hsj2":{"source":"iana","extensions":["hsj2"]},"image/ief":{"source":"iana","extensions":["ief"]},"image/jls":{"source":"iana","extensions":["jls"]},"image/jp2":{"source":"iana","compressible":false,"extensions":["jp2","jpg2"]},"image/jpeg":{"source":"iana","compressible":false,"extensions":["jpeg","jpg","jpe"]},"image/jph":{"source":"iana","extensions":["jph"]},"image/jphc":{"source":"iana","extensions":["jhc"]},"image/jpm":{"source":"iana","compressible":false,"extensions":["jpm"]},"image/jpx":{"source":"iana","compressible":false,"extensions":["jpx","jpf"]},"image/jxr":{"source":"iana","extensions":["jxr"]},"image/jxra":{"source":"iana","extensions":["jxra"]},"image/jxrs":{"source":"iana","extensions":["jxrs"]},"image/jxs":{"source":"iana","extensions":["jxs"]},"image/jxsc":{"source":"iana","extensions":["jxsc"]},"image/jxsi":{"source":"iana","extensions":["jxsi"]},"image/jxss":{"source":"iana","extensions":["jxss"]},"image/ktx":{"source":"iana","extensions":["ktx"]},"image/ktx2":{"source":"iana","extensions":["ktx2"]},"image/naplps":{"source":"iana"},"image/pjpeg":{"compressible":false},"image/png":{"source":"iana","compressible":false,"extensions":["png"]},"image/prs.btif":{"source":"iana","extensions":["btif"]},"image/prs.pti":{"source":"iana","extensions":["pti"]},"image/pwg-raster":{"source":"iana"},"image/sgi":{"source":"apache","extensions":["sgi"]},"image/svg+xml":{"source":"iana","compressible":true,"extensions":["svg","svgz"]},"image/t38":{"source":"iana","extensions":["t38"]},"image/tiff":{"source":"iana","compressible":false,"extensions":["tif","tiff"]},"image/tiff-fx":{"source":"iana","extensions":["tfx"]},"image/vnd.adobe.photoshop":{"source":"iana","compressible":true,"extensions":["psd"]},"image/vnd.airzip.accelerator.azv":{"source":"iana","extensions":["azv"]},"image/vnd.cns.inf2":{"source":"iana"},"image/vnd.dece.graphic":{"source":"iana","extensions":["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{"source":"iana","extensions":["djvu","djv"]},"image/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"image/vnd.dwg":{"source":"iana","extensions":["dwg"]},"image/vnd.dxf":{"source":"iana","extensions":["dxf"]},"image/vnd.fastbidsheet":{"source":"iana","extensions":["fbs"]},"image/vnd.fpx":{"source":"iana","extensions":["fpx"]},"image/vnd.fst":{"source":"iana","extensions":["fst"]},"image/vnd.fujixerox.edmics-mmr":{"source":"iana","extensions":["mmr"]},"image/vnd.fujixerox.edmics-rlc":{"source":"iana","extensions":["rlc"]},"image/vnd.globalgraphics.pgb":{"source":"iana"},"image/vnd.microsoft.icon":{"source":"iana","compressible":true,"extensions":["ico"]},"image/vnd.mix":{"source":"iana"},"image/vnd.mozilla.apng":{"source":"iana"},"image/vnd.ms-dds":{"compressible":true,"extensions":["dds"]},"image/vnd.ms-modi":{"source":"iana","extensions":["mdi"]},"image/vnd.ms-photo":{"source":"apache","extensions":["wdp"]},"image/vnd.net-fpx":{"source":"iana","extensions":["npx"]},"image/vnd.pco.b16":{"source":"iana","extensions":["b16"]},"image/vnd.radiance":{"source":"iana"},"image/vnd.sealed.png":{"source":"iana"},"image/vnd.sealedmedia.softseal.gif":{"source":"iana"},"image/vnd.sealedmedia.softseal.jpg":{"source":"iana"},"image/vnd.svf":{"source":"iana"},"image/vnd.tencent.tap":{"source":"iana","extensions":["tap"]},"image/vnd.valve.source.texture":{"source":"iana","extensions":["vtf"]},"image/vnd.wap.wbmp":{"source":"iana","extensions":["wbmp"]},"image/vnd.xiff":{"source":"iana","extensions":["xif"]},"image/vnd.zbrush.pcx":{"source":"iana","extensions":["pcx"]},"image/webp":{"source":"apache","extensions":["webp"]},"image/wmf":{"source":"iana","extensions":["wmf"]},"image/x-3ds":{"source":"apache","extensions":["3ds"]},"image/x-cmu-raster":{"source":"apache","extensions":["ras"]},"image/x-cmx":{"source":"apache","extensions":["cmx"]},"image/x-freehand":{"source":"apache","extensions":["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{"source":"apache","compressible":true,"extensions":["ico"]},"image/x-jng":{"source":"nginx","extensions":["jng"]},"image/x-mrsid-image":{"source":"apache","extensions":["sid"]},"image/x-ms-bmp":{"source":"nginx","compressible":true,"extensions":["bmp"]},"image/x-pcx":{"source":"apache","extensions":["pcx"]},"image/x-pict":{"source":"apache","extensions":["pic","pct"]},"image/x-portable-anymap":{"source":"apache","extensions":["pnm"]},"image/x-portable-bitmap":{"source":"apache","extensions":["pbm"]},"image/x-portable-graymap":{"source":"apache","extensions":["pgm"]},"image/x-portable-pixmap":{"source":"apache","extensions":["ppm"]},"image/x-rgb":{"source":"apache","extensions":["rgb"]},"image/x-tga":{"source":"apache","extensions":["tga"]},"image/x-xbitmap":{"source":"apache","extensions":["xbm"]},"image/x-xcf":{"compressible":false},"image/x-xpixmap":{"source":"apache","extensions":["xpm"]},"image/x-xwindowdump":{"source":"apache","extensions":["xwd"]},"message/cpim":{"source":"iana"},"message/delivery-status":{"source":"iana"},"message/disposition-notification":{"source":"iana","extensions":["disposition-notification"]},"message/external-body":{"source":"iana"},"message/feedback-report":{"source":"iana"},"message/global":{"source":"iana","extensions":["u8msg"]},"message/global-delivery-status":{"source":"iana","extensions":["u8dsn"]},"message/global-disposition-notification":{"source":"iana","extensions":["u8mdn"]},"message/global-headers":{"source":"iana","extensions":["u8hdr"]},"message/http":{"source":"iana","compressible":false},"message/imdn+xml":{"source":"iana","compressible":true},"message/news":{"source":"iana"},"message/partial":{"source":"iana","compressible":false},"message/rfc822":{"source":"iana","compressible":true,"extensions":["eml","mime"]},"message/s-http":{"source":"iana"},"message/sip":{"source":"iana"},"message/sipfrag":{"source":"iana"},"message/tracking-status":{"source":"iana"},"message/vnd.si.simp":{"source":"iana"},"message/vnd.wfa.wsc":{"source":"iana","extensions":["wsc"]},"model/3mf":{"source":"iana","extensions":["3mf"]},"model/e57":{"source":"iana"},"model/gltf+json":{"source":"iana","compressible":true,"extensions":["gltf"]},"model/gltf-binary":{"source":"iana","compressible":true,"extensions":["glb"]},"model/iges":{"source":"iana","compressible":false,"extensions":["igs","iges"]},"model/mesh":{"source":"iana","compressible":false,"extensions":["msh","mesh","silo"]},"model/mtl":{"source":"iana","extensions":["mtl"]},"model/obj":{"source":"iana","extensions":["obj"]},"model/step":{"source":"iana"},"model/step+xml":{"source":"iana","compressible":true,"extensions":["stpx"]},"model/step+zip":{"source":"iana","compressible":false,"extensions":["stpz"]},"model/step-xml+zip":{"source":"iana","compressible":false,"extensions":["stpxz"]},"model/stl":{"source":"iana","extensions":["stl"]},"model/vnd.collada+xml":{"source":"iana","compressible":true,"extensions":["dae"]},"model/vnd.dwf":{"source":"iana","extensions":["dwf"]},"model/vnd.flatland.3dml":{"source":"iana"},"model/vnd.gdl":{"source":"iana","extensions":["gdl"]},"model/vnd.gs-gdl":{"source":"apache"},"model/vnd.gs.gdl":{"source":"iana"},"model/vnd.gtw":{"source":"iana","extensions":["gtw"]},"model/vnd.moml+xml":{"source":"iana","compressible":true},"model/vnd.mts":{"source":"iana","extensions":["mts"]},"model/vnd.opengex":{"source":"iana","extensions":["ogex"]},"model/vnd.parasolid.transmit.binary":{"source":"iana","extensions":["x_b"]},"model/vnd.parasolid.transmit.text":{"source":"iana","extensions":["x_t"]},"model/vnd.pytha.pyox":{"source":"iana"},"model/vnd.rosette.annotated-data-model":{"source":"iana"},"model/vnd.sap.vds":{"source":"iana","extensions":["vds"]},"model/vnd.usdz+zip":{"source":"iana","compressible":false,"extensions":["usdz"]},"model/vnd.valve.source.compiled-map":{"source":"iana","extensions":["bsp"]},"model/vnd.vtu":{"source":"iana","extensions":["vtu"]},"model/vrml":{"source":"iana","compressible":false,"extensions":["wrl","vrml"]},"model/x3d+binary":{"source":"apache","compressible":false,"extensions":["x3db","x3dbz"]},"model/x3d+fastinfoset":{"source":"iana","extensions":["x3db"]},"model/x3d+vrml":{"source":"apache","compressible":false,"extensions":["x3dv","x3dvz"]},"model/x3d+xml":{"source":"iana","compressible":true,"extensions":["x3d","x3dz"]},"model/x3d-vrml":{"source":"iana","extensions":["x3dv"]},"multipart/alternative":{"source":"iana","compressible":false},"multipart/appledouble":{"source":"iana"},"multipart/byteranges":{"source":"iana"},"multipart/digest":{"source":"iana"},"multipart/encrypted":{"source":"iana","compressible":false},"multipart/form-data":{"source":"iana","compressible":false},"multipart/header-set":{"source":"iana"},"multipart/mixed":{"source":"iana"},"multipart/multilingual":{"source":"iana"},"multipart/parallel":{"source":"iana"},"multipart/related":{"source":"iana","compressible":false},"multipart/report":{"source":"iana"},"multipart/signed":{"source":"iana","compressible":false},"multipart/vnd.bint.med-plus":{"source":"iana"},"multipart/voice-message":{"source":"iana"},"multipart/x-mixed-replace":{"source":"iana"},"text/1d-interleaved-parityfec":{"source":"iana"},"text/cache-manifest":{"source":"iana","compressible":true,"extensions":["appcache","manifest"]},"text/calendar":{"source":"iana","extensions":["ics","ifb"]},"text/calender":{"compressible":true},"text/cmd":{"compressible":true},"text/coffeescript":{"extensions":["coffee","litcoffee"]},"text/cql":{"source":"iana"},"text/cql-expression":{"source":"iana"},"text/cql-identifier":{"source":"iana"},"text/css":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["css"]},"text/csv":{"source":"iana","compressible":true,"extensions":["csv"]},"text/csv-schema":{"source":"iana"},"text/directory":{"source":"iana"},"text/dns":{"source":"iana"},"text/ecmascript":{"source":"iana"},"text/encaprtp":{"source":"iana"},"text/enriched":{"source":"iana"},"text/fhirpath":{"source":"iana"},"text/flexfec":{"source":"iana"},"text/fwdred":{"source":"iana"},"text/gff3":{"source":"iana"},"text/grammar-ref-list":{"source":"iana"},"text/html":{"source":"iana","compressible":true,"extensions":["html","htm","shtml"]},"text/jade":{"extensions":["jade"]},"text/javascript":{"source":"iana","compressible":true},"text/jcr-cnd":{"source":"iana"},"text/jsx":{"compressible":true,"extensions":["jsx"]},"text/less":{"compressible":true,"extensions":["less"]},"text/markdown":{"source":"iana","compressible":true,"extensions":["markdown","md"]},"text/mathml":{"source":"nginx","extensions":["mml"]},"text/mdx":{"compressible":true,"extensions":["mdx"]},"text/mizar":{"source":"iana"},"text/n3":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["n3"]},"text/parameters":{"source":"iana","charset":"UTF-8"},"text/parityfec":{"source":"iana"},"text/plain":{"source":"iana","compressible":true,"extensions":["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{"source":"iana","charset":"UTF-8"},"text/prs.fallenstein.rst":{"source":"iana"},"text/prs.lines.tag":{"source":"iana","extensions":["dsc"]},"text/prs.prop.logic":{"source":"iana"},"text/raptorfec":{"source":"iana"},"text/red":{"source":"iana"},"text/rfc822-headers":{"source":"iana"},"text/richtext":{"source":"iana","compressible":true,"extensions":["rtx"]},"text/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"text/rtp-enc-aescm128":{"source":"iana"},"text/rtploopback":{"source":"iana"},"text/rtx":{"source":"iana"},"text/sgml":{"source":"iana","extensions":["sgml","sgm"]},"text/shaclc":{"source":"iana"},"text/shex":{"source":"iana","extensions":["shex"]},"text/slim":{"extensions":["slim","slm"]},"text/spdx":{"source":"iana","extensions":["spdx"]},"text/strings":{"source":"iana"},"text/stylus":{"extensions":["stylus","styl"]},"text/t140":{"source":"iana"},"text/tab-separated-values":{"source":"iana","compressible":true,"extensions":["tsv"]},"text/troff":{"source":"iana","extensions":["t","tr","roff","man","me","ms"]},"text/turtle":{"source":"iana","charset":"UTF-8","extensions":["ttl"]},"text/ulpfec":{"source":"iana"},"text/uri-list":{"source":"iana","compressible":true,"extensions":["uri","uris","urls"]},"text/vcard":{"source":"iana","compressible":true,"extensions":["vcard"]},"text/vnd.a":{"source":"iana"},"text/vnd.abc":{"source":"iana"},"text/vnd.ascii-art":{"source":"iana"},"text/vnd.curl":{"source":"iana","extensions":["curl"]},"text/vnd.curl.dcurl":{"source":"apache","extensions":["dcurl"]},"text/vnd.curl.mcurl":{"source":"apache","extensions":["mcurl"]},"text/vnd.curl.scurl":{"source":"apache","extensions":["scurl"]},"text/vnd.debian.copyright":{"source":"iana","charset":"UTF-8"},"text/vnd.dmclientscript":{"source":"iana"},"text/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"text/vnd.esmertec.theme-descriptor":{"source":"iana","charset":"UTF-8"},"text/vnd.familysearch.gedcom":{"source":"iana","extensions":["ged"]},"text/vnd.ficlab.flt":{"source":"iana"},"text/vnd.fly":{"source":"iana","extensions":["fly"]},"text/vnd.fmi.flexstor":{"source":"iana","extensions":["flx"]},"text/vnd.gml":{"source":"iana"},"text/vnd.graphviz":{"source":"iana","extensions":["gv"]},"text/vnd.hans":{"source":"iana"},"text/vnd.hgl":{"source":"iana"},"text/vnd.in3d.3dml":{"source":"iana","extensions":["3dml"]},"text/vnd.in3d.spot":{"source":"iana","extensions":["spot"]},"text/vnd.iptc.newsml":{"source":"iana"},"text/vnd.iptc.nitf":{"source":"iana"},"text/vnd.latex-z":{"source":"iana"},"text/vnd.motorola.reflex":{"source":"iana"},"text/vnd.ms-mediapackage":{"source":"iana"},"text/vnd.net2phone.commcenter.command":{"source":"iana"},"text/vnd.radisys.msml-basic-layout":{"source":"iana"},"text/vnd.senx.warpscript":{"source":"iana"},"text/vnd.si.uricatalogue":{"source":"iana"},"text/vnd.sosi":{"source":"iana"},"text/vnd.sun.j2me.app-descriptor":{"source":"iana","charset":"UTF-8","extensions":["jad"]},"text/vnd.trolltech.linguist":{"source":"iana","charset":"UTF-8"},"text/vnd.wap.si":{"source":"iana"},"text/vnd.wap.sl":{"source":"iana"},"text/vnd.wap.wml":{"source":"iana","extensions":["wml"]},"text/vnd.wap.wmlscript":{"source":"iana","extensions":["wmls"]},"text/vtt":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["vtt"]},"text/x-asm":{"source":"apache","extensions":["s","asm"]},"text/x-c":{"source":"apache","extensions":["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{"source":"nginx","extensions":["htc"]},"text/x-fortran":{"source":"apache","extensions":["f","for","f77","f90"]},"text/x-gwt-rpc":{"compressible":true},"text/x-handlebars-template":{"extensions":["hbs"]},"text/x-java-source":{"source":"apache","extensions":["java"]},"text/x-jquery-tmpl":{"compressible":true},"text/x-lua":{"extensions":["lua"]},"text/x-markdown":{"compressible":true,"extensions":["mkd"]},"text/x-nfo":{"source":"apache","extensions":["nfo"]},"text/x-opml":{"source":"apache","extensions":["opml"]},"text/x-org":{"compressible":true,"extensions":["org"]},"text/x-pascal":{"source":"apache","extensions":["p","pas"]},"text/x-processing":{"compressible":true,"extensions":["pde"]},"text/x-sass":{"extensions":["sass"]},"text/x-scss":{"extensions":["scss"]},"text/x-setext":{"source":"apache","extensions":["etx"]},"text/x-sfv":{"source":"apache","extensions":["sfv"]},"text/x-suse-ymp":{"compressible":true,"extensions":["ymp"]},"text/x-uuencode":{"source":"apache","extensions":["uu"]},"text/x-vcalendar":{"source":"apache","extensions":["vcs"]},"text/x-vcard":{"source":"apache","extensions":["vcf"]},"text/xml":{"source":"iana","compressible":true,"extensions":["xml"]},"text/xml-external-parsed-entity":{"source":"iana"},"text/yaml":{"compressible":true,"extensions":["yaml","yml"]},"video/1d-interleaved-parityfec":{"source":"iana"},"video/3gpp":{"source":"iana","extensions":["3gp","3gpp"]},"video/3gpp-tt":{"source":"iana"},"video/3gpp2":{"source":"iana","extensions":["3g2"]},"video/av1":{"source":"iana"},"video/bmpeg":{"source":"iana"},"video/bt656":{"source":"iana"},"video/celb":{"source":"iana"},"video/dv":{"source":"iana"},"video/encaprtp":{"source":"iana"},"video/ffv1":{"source":"iana"},"video/flexfec":{"source":"iana"},"video/h261":{"source":"iana","extensions":["h261"]},"video/h263":{"source":"iana","extensions":["h263"]},"video/h263-1998":{"source":"iana"},"video/h263-2000":{"source":"iana"},"video/h264":{"source":"iana","extensions":["h264"]},"video/h264-rcdo":{"source":"iana"},"video/h264-svc":{"source":"iana"},"video/h265":{"source":"iana"},"video/iso.segment":{"source":"iana","extensions":["m4s"]},"video/jpeg":{"source":"iana","extensions":["jpgv"]},"video/jpeg2000":{"source":"iana"},"video/jpm":{"source":"apache","extensions":["jpm","jpgm"]},"video/jxsv":{"source":"iana"},"video/mj2":{"source":"iana","extensions":["mj2","mjp2"]},"video/mp1s":{"source":"iana"},"video/mp2p":{"source":"iana"},"video/mp2t":{"source":"iana","extensions":["ts"]},"video/mp4":{"source":"iana","compressible":false,"extensions":["mp4","mp4v","mpg4"]},"video/mp4v-es":{"source":"iana"},"video/mpeg":{"source":"iana","compressible":false,"extensions":["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{"source":"iana"},"video/mpv":{"source":"iana"},"video/nv":{"source":"iana"},"video/ogg":{"source":"iana","compressible":false,"extensions":["ogv"]},"video/parityfec":{"source":"iana"},"video/pointer":{"source":"iana"},"video/quicktime":{"source":"iana","compressible":false,"extensions":["qt","mov"]},"video/raptorfec":{"source":"iana"},"video/raw":{"source":"iana"},"video/rtp-enc-aescm128":{"source":"iana"},"video/rtploopback":{"source":"iana"},"video/rtx":{"source":"iana"},"video/scip":{"source":"iana"},"video/smpte291":{"source":"iana"},"video/smpte292m":{"source":"iana"},"video/ulpfec":{"source":"iana"},"video/vc1":{"source":"iana"},"video/vc2":{"source":"iana"},"video/vnd.cctv":{"source":"iana"},"video/vnd.dece.hd":{"source":"iana","extensions":["uvh","uvvh"]},"video/vnd.dece.mobile":{"source":"iana","extensions":["uvm","uvvm"]},"video/vnd.dece.mp4":{"source":"iana"},"video/vnd.dece.pd":{"source":"iana","extensions":["uvp","uvvp"]},"video/vnd.dece.sd":{"source":"iana","extensions":["uvs","uvvs"]},"video/vnd.dece.video":{"source":"iana","extensions":["uvv","uvvv"]},"video/vnd.directv.mpeg":{"source":"iana"},"video/vnd.directv.mpeg-tts":{"source":"iana"},"video/vnd.dlna.mpeg-tts":{"source":"iana"},"video/vnd.dvb.file":{"source":"iana","extensions":["dvb"]},"video/vnd.fvt":{"source":"iana","extensions":["fvt"]},"video/vnd.hns.video":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.ttsavc":{"source":"iana"},"video/vnd.iptvforum.ttsmpeg2":{"source":"iana"},"video/vnd.motorola.video":{"source":"iana"},"video/vnd.motorola.videop":{"source":"iana"},"video/vnd.mpegurl":{"source":"iana","extensions":["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{"source":"iana","extensions":["pyv"]},"video/vnd.nokia.interleaved-multimedia":{"source":"iana"},"video/vnd.nokia.mp4vr":{"source":"iana"},"video/vnd.nokia.videovoip":{"source":"iana"},"video/vnd.objectvideo":{"source":"iana"},"video/vnd.radgamettools.bink":{"source":"iana"},"video/vnd.radgamettools.smacker":{"source":"iana"},"video/vnd.sealed.mpeg1":{"source":"iana"},"video/vnd.sealed.mpeg4":{"source":"iana"},"video/vnd.sealed.swf":{"source":"iana"},"video/vnd.sealedmedia.softseal.mov":{"source":"iana"},"video/vnd.uvvu.mp4":{"source":"iana","extensions":["uvu","uvvu"]},"video/vnd.vivo":{"source":"iana","extensions":["viv"]},"video/vnd.youtube.yt":{"source":"iana"},"video/vp8":{"source":"iana"},"video/vp9":{"source":"iana"},"video/webm":{"source":"apache","compressible":false,"extensions":["webm"]},"video/x-f4v":{"source":"apache","extensions":["f4v"]},"video/x-fli":{"source":"apache","extensions":["fli"]},"video/x-flv":{"source":"apache","compressible":false,"extensions":["flv"]},"video/x-m4v":{"source":"apache","extensions":["m4v"]},"video/x-matroska":{"source":"apache","compressible":false,"extensions":["mkv","mk3d","mks"]},"video/x-mng":{"source":"apache","extensions":["mng"]},"video/x-ms-asf":{"source":"apache","extensions":["asf","asx"]},"video/x-ms-vob":{"source":"apache","extensions":["vob"]},"video/x-ms-wm":{"source":"apache","extensions":["wm"]},"video/x-ms-wmv":{"source":"apache","compressible":false,"extensions":["wmv"]},"video/x-ms-wmx":{"source":"apache","extensions":["wmx"]},"video/x-ms-wvx":{"source":"apache","extensions":["wvx"]},"video/x-msvideo":{"source":"apache","extensions":["avi"]},"video/x-sgi-movie":{"source":"apache","extensions":["movie"]},"video/x-smv":{"source":"apache","extensions":["smv"]},"x-conference/x-cooltalk":{"source":"apache","extensions":["ice"]},"x-shader/x-fragment":{"compressible":true},"x-shader/x-vertex":{"compressible":true}}')},82151:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LazyServiceIdentifier=t.islazyServiceIdentifierSymbol=void 0,t.islazyServiceIdentifierSymbol=Symbol.for("@inversifyjs/common/islazyServiceIdentifier");class n{[t.islazyServiceIdentifierSymbol];#a;constructor(e){this.#a=e,this[t.islazyServiceIdentifierSymbol]=!0}static is(e){return"object"==typeof e&&null!==e&&!0===e[t.islazyServiceIdentifierSymbol]}unwrap(){return this.#a()}}t.LazyServiceIdentifier=n},82252:(e,t,n)=>{var r=n(55911),i=n(22370),o=n(13198);e.exports=l;var s,a=/\n/g,c=/\\n/g;function u(){}function l(e){r.call(this,e),this.query=this.query||{},s||(s=o.___eio=o.___eio||[]),this.index=s.length;var t=this;s.push(function(e){t.onData(e)}),this.query.j=this.index,"function"==typeof addEventListener&&addEventListener("beforeunload",function(){t.script&&(t.script.onerror=u)},!1)}i(l,r),l.prototype.supportsBinary=!1,l.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),r.prototype.doClose.call(this)},l.prototype.doPoll=function(){var e=this,t=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),t.async=!0,t.src=this.uri(),t.onerror=function(t){e.onError("jsonp poll error",t)};var n=document.getElementsByTagName("script")[0];n?n.parentNode.insertBefore(t,n):(document.head||document.body).appendChild(t),this.script=t,"undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent)&&setTimeout(function(){var e=document.createElement("iframe");document.body.appendChild(e),document.body.removeChild(e)},100)},l.prototype.doWrite=function(e,t){var n=this;if(!this.form){var r,i=document.createElement("form"),o=document.createElement("textarea"),s=this.iframeId="eio_iframe_"+this.index;i.className="socketio",i.style.position="absolute",i.style.top="-1000px",i.style.left="-1000px",i.target=s,i.method="POST",i.setAttribute("accept-charset","utf-8"),o.name="d",i.appendChild(o),document.body.appendChild(i),this.form=i,this.area=o}function u(){l(),t()}function l(){if(n.iframe)try{n.form.removeChild(n.iframe)}catch(e){n.onError("jsonp polling iframe removal error",e)}try{var e='<iframe src="javascript:0" name="'+n.iframeId+'">';r=document.createElement(e)}catch(e){(r=document.createElement("iframe")).name=n.iframeId,r.src="javascript:0"}r.id=n.iframeId,n.form.appendChild(r),n.iframe=r}this.form.action=this.uri(),l(),e=e.replace(c,"\\\n"),this.area.value=e.replace(a,"\\n");try{this.form.submit()}catch(e){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"===n.iframe.readyState&&u()}:this.iframe.onload=u}},82363:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assignDefaults=void 0;const r=n(66596),i=n(99048);function o(e,t,n){const{gen:o,compositeRule:s,data:a,opts:c}=e;if(void 0===n)return;const u=r._`${a}${(0,r.getProperty)(t)}`;if(s)return void(0,i.checkStrictMode)(e,`default is ignored for: ${u}`);let l=r._`${u} === undefined`;"empty"===c.useDefaults&&(l=r._`${l} || ${u} === null || ${u} === ""`),o.if(l,r._`${u} = ${(0,r.stringify)(n)}`)}t.assignDefaults=function(e,t){const{properties:n,items:r}=e.schema;if("object"===t&&n)for(const t in n)o(e,t,n[t].default);else"array"===t&&Array.isArray(r)&&r.forEach((t,n)=>o(e,n,t.default))}},82546:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')},82848:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{localeError:a()}};const s=o(n(90523)),a=()=>{const e={string:{unit:"אותיות",verb:"לכלול"},file:{unit:"בייטים",verb:"לכלול"},array:{unit:"פריטים",verb:"לכלול"},set:{unit:"פריטים",verb:"לכלול"}};function t(t){return e[t]??null}const n={regex:"קלט",email:"כתובת אימייל",url:"כתובת רשת",emoji:"אימוג'י",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"תאריך וזמן ISO",date:"תאריך ISO",time:"זמן ISO",duration:"משך זמן ISO",ipv4:"כתובת IPv4",ipv6:"כתובת IPv6",cidrv4:"טווח IPv4",cidrv6:"טווח IPv6",base64:"מחרוזת בבסיס 64",base64url:"מחרוזת בבסיס 64 לכתובות רשת",json_string:"מחרוזת JSON",e164:"מספר E.164",jwt:"JWT",template_literal:"קלט"};return e=>{switch(e.code){case"invalid_type":return`קלט לא תקין: צריך ${e.expected}, התקבל ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`קלט לא תקין: צריך ${s.stringifyPrimitive(e.values[0])}`:`קלט לא תקין: צריך אחת מהאפשרויות ${s.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`גדול מדי: ${e.origin??"value"} צריך להיות ${n}${e.maximum.toString()} ${r.unit??"elements"}`:`גדול מדי: ${e.origin??"value"} צריך להיות ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`קטן מדי: ${e.origin} צריך להיות ${n}${e.minimum.toString()} ${r.unit}`:`קטן מדי: ${e.origin} צריך להיות ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`מחרוזת לא תקינה: חייבת להתחיל ב"${t.prefix}"`:"ends_with"===t.format?`מחרוזת לא תקינה: חייבת להסתיים ב "${t.suffix}"`:"includes"===t.format?`מחרוזת לא תקינה: חייבת לכלול "${t.includes}"`:"regex"===t.format?`מחרוזת לא תקינה: חייבת להתאים לתבנית ${t.pattern}`:`${n[t.format]??e.format} לא תקין`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${e.divisor}`;case"unrecognized_keys":return`מפתח${e.keys.length>1?"ות":""} לא מזוה${e.keys.length>1?"ים":"ה"}: ${s.joinValues(e.keys,", ")}`;case"invalid_key":return`מפתח לא תקין ב${e.origin}`;case"invalid_union":default:return"קלט לא תקין";case"invalid_element":return`ערך לא תקין ב${e.origin}`}}}},83168:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.safeParseAsync=t.parseAsync=t.safeParse=t.parse=void 0;var r=n(76601);Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return r.parse}}),Object.defineProperty(t,"safeParse",{enumerable:!0,get:function(){return r.safeParse}}),Object.defineProperty(t,"parseAsync",{enumerable:!0,get:function(){return r.parseAsync}}),Object.defineProperty(t,"safeParseAsync",{enumerable:!0,get:function(){return r.safeParseAsync}})},83307:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoStatusBarService=void 0,t.NoStatusBarService=class{init(){}setText(){}setStatusBarMessage(){return{dispose:()=>{}}}}},83313:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NON_CUSTOM_TAG_KEYS=t.PRE_DESTROY=t.POST_CONSTRUCT=t.DESIGN_PARAM_TYPES=t.PARAM_TYPES=t.TAGGED_PROP=t.TAGGED=t.MULTI_INJECT_TAG=t.INJECT_TAG=t.OPTIONAL_TAG=t.UNMANAGED_TAG=t.NAME_TAG=t.NAMED_TAG=void 0,t.NAMED_TAG="named",t.NAME_TAG="name",t.UNMANAGED_TAG="unmanaged",t.OPTIONAL_TAG="optional",t.INJECT_TAG="inject",t.MULTI_INJECT_TAG="multi_inject",t.TAGGED="inversify:tagged",t.TAGGED_PROP="inversify:tagged_props",t.PARAM_TYPES="inversify:paramtypes",t.DESIGN_PARAM_TYPES="design:paramtypes",t.POST_CONSTRUCT="post_construct",t.PRE_DESTROY="pre_destroy",t.NON_CUSTOM_TAG_KEYS=[t.INJECT_TAG,t.MULTI_INJECT_TAG,t.NAME_TAG,t.UNMANAGED_TAG,t.NAMED_TAG,t.OPTIONAL_TAG]},83376:(e,t,n)=>{e.exports=n(85480)},83501:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(99048),i={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:n,it:i}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");const o=t.name("valid");n.forEach((t,n)=>{if((0,r.alwaysValidSchema)(i,t))return;const s=e.subschema({keyword:"allOf",schemaProp:n},o);e.ok(o),e.mergeEvaluated(s)})}};t.default=i},84368:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(51980),i=n(66596),o=n(99048),s=n(99048),a={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,data:a,parentSchema:c,it:u}=e,{opts:l}=u,d=(0,r.allSchemaProperties)(n),p=d.filter(e=>(0,o.alwaysValidSchema)(u,n[e]));if(0===d.length||p.length===d.length&&(!u.opts.unevaluated||!0===u.props))return;const f=l.strictSchema&&!l.allowMatchingProperties&&c.properties,m=t.name("valid");!0===u.props||u.props instanceof i.Name||(u.props=(0,s.evaluatedPropsToName)(t,u.props));const{props:h}=u;function v(e){for(const t in f)new RegExp(e).test(t)&&(0,o.checkStrictMode)(u,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function g(n){t.forIn("key",a,o=>{t.if(i._`${(0,r.usePattern)(e,n)}.test(${o})`,()=>{const r=p.includes(n);r||e.subschema({keyword:"patternProperties",schemaProp:n,dataProp:o,dataPropType:s.Type.Str},m),u.opts.unevaluated&&!0!==h?t.assign(i._`${h}[${o}]`,!0):r||u.allErrors||t.if((0,i.not)(m),()=>t.break())})})}!function(){for(const e of d)f&&v(e),u.allErrors?g(e):(t.var(m,!0),g(e),t.if(m))}()}};t.default=a},84953:(e,t,n)=>{"undefined"==typeof process||"renderer"===process.type?e.exports=n(56617):e.exports=n(68001)},85187:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseDateDef=void 0;const r=n(98950);t.parseDateDef=function e(t,n,r){const o=r??n.dateStrategy;if(Array.isArray(o))return{anyOf:o.map((r,i)=>e(t,n,r))};switch(o){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return i(t,n)}};const i=(e,t)=>{const n={type:"integer",format:"unix-time"};if("openApi3"===t.target)return n;for(const i of e.checks)switch(i.kind){case"min":(0,r.setResponseValueAndErrors)(n,"minimum",i.value,i.message,t);break;case"max":(0,r.setResponseValueAndErrors)(n,"maximum",i.value,i.message,t)}return n}},85311:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(32017);r.code='require("ajv/dist/runtime/equal").default',t.default=r},85379:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BUILD_VERSION=void 0,t.BUILD_VERSION="1.15.0"},85480:(e,t,n)=>{var r=n(79896),i=n(87016),o=n(35317).spawn;function s(e){"use strict";e=e||{};var t,s,a=this,c=n(58611),u=n(65692),l={},d=!1,p={"User-Agent":"node-XMLHttpRequest",Accept:"*/*"},f=Object.assign({},p),m=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","content-transfer-encoding","cookie","cookie2","date","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"],h=["TRACE","TRACK","CONNECT"],v=!1,g=!1,y=!1,_={};this.UNSENT=0,this.OPENED=1,this.HEADERS_RECEIVED=2,this.LOADING=3,this.DONE=4,this.readyState=this.UNSENT,this.onreadystatechange=null,this.responseText="",this.responseXML="",this.status=null,this.statusText=null,this.open=function(e,t,n,r,i){if(this.abort(),g=!1,y=!1,!function(e){return e&&-1===h.indexOf(e)}(e))throw new Error("SecurityError: Request method not allowed");l={method:e,url:t.toString(),async:"boolean"!=typeof n||n,user:r||null,password:i||null},b(this.OPENED)},this.setDisableHeaderCheck=function(e){d=e},this.setRequestHeader=function(e,t){if(this.readyState!=this.OPENED)throw new Error("INVALID_STATE_ERR: setRequestHeader can only be called when state is OPEN");if(!function(e){return d||e&&-1===m.indexOf(e.toLowerCase())}(e))return console.warn('Refused to set unsafe header "'+e+'"'),!1;if(v)throw new Error("INVALID_STATE_ERR: send flag is true");return f[e]=t,!0},this.getResponseHeader=function(e){return"string"==typeof e&&this.readyState>this.OPENED&&s.headers[e.toLowerCase()]&&!g?s.headers[e.toLowerCase()]:null},this.getAllResponseHeaders=function(){if(this.readyState<this.HEADERS_RECEIVED||g)return"";var e="";for(var t in s.headers)"set-cookie"!==t&&"set-cookie2"!==t&&(e+=t+": "+s.headers[t]+"\r\n");return e.substr(0,e.length-2)},this.getRequestHeader=function(e){return"string"==typeof e&&f[e]?f[e]:""},this.send=function(n){if(this.readyState!=this.OPENED)throw new Error("INVALID_STATE_ERR: connection must be opened before send() is called");if(v)throw new Error("INVALID_STATE_ERR: send has already been called");var d,p=!1,m=!1,h=i.parse(l.url);switch(h.protocol){case"https:":p=!0;case"http:":d=h.hostname;break;case"file:":m=!0;break;case void 0:case"":d="localhost";break;default:throw new Error("Protocol not supported.")}if(m){if("GET"!==l.method)throw new Error("XMLHttpRequest: Only GET method is supported");if(l.async)r.readFile(unescape(h.pathname),"utf8",function(e,t){e?a.handleError(e):(a.status=200,a.responseText=t,b(a.DONE))});else try{this.responseText=r.readFileSync(unescape(h.pathname),"utf8"),this.status=200,b(a.DONE)}catch(e){this.handleError(e)}}else{var y=h.port||(p?443:80),_=h.pathname+(h.search?h.search:"");if(f.Host=d,p&&443===y||80===y||(f.Host+=":"+h.port),l.user){void 0===l.password&&(l.password="");var x=new Buffer(l.user+":"+l.password);f.Authorization="Basic "+x.toString("base64")}"GET"===l.method||"HEAD"===l.method?n=null:n?(f["Content-Length"]=Buffer.isBuffer(n)?n.length:Buffer.byteLength(n),f["Content-Type"]||(f["Content-Type"]="text/plain;charset=UTF-8")):"POST"===l.method&&(f["Content-Length"]=0);var w=e.agent||!1,S={host:d,port:y,path:_,method:l.method,headers:f,agent:w};if(p&&(S.pfx=e.pfx,S.key=e.key,S.passphrase=e.passphrase,S.cert=e.cert,S.ca=e.ca,S.ciphers=e.ciphers,S.rejectUnauthorized=!1!==e.rejectUnauthorized),g=!1,l.async){var O=p?u.request:c.request;v=!0,a.dispatchEvent("readystatechange");var k=function(n){if(302===(s=n).statusCode||303===s.statusCode||307===s.statusCode){l.url=s.headers.location;var r=i.parse(l.url);d=r.hostname;var o={hostname:r.hostname,port:r.port,path:r.path,method:303===s.statusCode?"GET":l.method,headers:f};return p&&(o.pfx=e.pfx,o.key=e.key,o.passphrase=e.passphrase,o.cert=e.cert,o.ca=e.ca,o.ciphers=e.ciphers,o.rejectUnauthorized=!1!==e.rejectUnauthorized),void(t=O(o,k).on("error",$)).end()}s&&s.setEncoding&&s.setEncoding("utf8"),b(a.HEADERS_RECEIVED),a.status=s.statusCode,s.on("data",function(e){e&&(a.responseText+=e),v&&b(a.LOADING)}),s.on("end",function(){v&&(v=!1,b(a.DONE))}),s.on("error",function(e){a.handleError(e)})},$=function(e){a.handleError(e)};t=O(S,k).on("error",$),n&&t.write(n),t.end(),a.dispatchEvent("loadstart")}else{var P=".node-xmlhttprequest-content-"+process.pid,E=".node-xmlhttprequest-sync-"+process.pid;r.writeFileSync(E,"","utf8");for(var T="var http = require('http'), https = require('https'), fs = require('fs');var doRequest = http"+(p?"s":"")+".request;var options = "+JSON.stringify(S)+";var responseText = '';var req = doRequest(options, function(response) {response.setEncoding('utf8');response.on('data', function(chunk) { responseText += chunk;});response.on('end', function() {fs.writeFileSync('"+P+"', 'NODE-XMLHTTPREQUEST-STATUS:' + response.statusCode + ',' + responseText, 'utf8');fs.unlinkSync('"+E+"');});response.on('error', function(error) {fs.writeFileSync('"+P+"', 'NODE-XMLHTTPREQUEST-ERROR:' + JSON.stringify(error), 'utf8');fs.unlinkSync('"+E+"');});}).on('error', function(error) {fs.writeFileSync('"+P+"', 'NODE-XMLHTTPREQUEST-ERROR:' + JSON.stringify(error), 'utf8');fs.unlinkSync('"+E+"');});"+(n?"req.write('"+JSON.stringify(n).slice(1,-1).replace(/'/g,"\\'")+"');":"")+"req.end();",C=o(process.argv[0],["-e",T]);r.existsSync(E););if(a.responseText=r.readFileSync(P,"utf8"),C.stdin.end(),r.unlinkSync(P),a.responseText.match(/^NODE-XMLHTTPREQUEST-ERROR:/)){var I=a.responseText.replace(/^NODE-XMLHTTPREQUEST-ERROR:/,"");a.handleError(I,503)}else a.status=a.responseText.replace(/^NODE-XMLHTTPREQUEST-STATUS:([0-9]*),.*/,"$1"),a.responseText=a.responseText.replace(/^NODE-XMLHTTPREQUEST-STATUS:[0-9]*,(.*)/,"$1"),b(a.DONE)}}},this.handleError=function(e,t){this.status=t||0,this.statusText=e,this.responseText=e.stack,g=!0,b(this.DONE)},this.abort=function(){t&&(t.abort(),t=null),f=Object.assign({},p),this.responseText="",this.responseXML="",g=y=!0,this.readyState===this.UNSENT||this.readyState===this.OPENED&&!v||this.readyState===this.DONE||(v=!1,b(this.DONE)),this.readyState=this.UNSENT},this.addEventListener=function(e,t){e in _||(_[e]=[]),_[e].push(t)},this.removeEventListener=function(e,t){e in _&&(_[e]=_[e].filter(function(e){return e!==t}))},this.dispatchEvent=function(e){if("function"==typeof a["on"+e]&&(this.readyState===this.DONE?setImmediate(function(){a["on"+e]()}):a["on"+e]()),e in _)for(let t=0,n=_[e].length;t<n;t++)this.readyState===this.DONE?setImmediate(function(){_[e][t].call(a)}):_[e][t].call(a)};var b=function(e){if(!(a.readyState===e||a.readyState===a.UNSENT&&y)&&(a.readyState=e,(l.async||a.readyState<a.OPENED||a.readyState===a.DONE)&&a.dispatchEvent("readystatechange"),a.readyState===a.DONE)){let e;e=y?"abort":g?"error":"load",a.dispatchEvent(e),a.dispatchEvent("loadend")}}}e.exports=s,s.XMLHttpRequest=s},86049:(e,t,n)=>{"use strict";var r,i,o,s=n(7598),a=n(16928).extname,c=/^\s*([^;\s]*)(?:;|\s|$)/,u=/^text\//i;function l(e){if(!e||"string"!=typeof e)return!1;var t=c.exec(e),n=t&&s[t[1].toLowerCase()];return n&&n.charset?n.charset:!(!t||!u.test(t[1]))&&"UTF-8"}t.charset=l,t.charsets={lookup:l},t.contentType=function(e){if(!e||"string"!=typeof e)return!1;var n=-1===e.indexOf("/")?t.lookup(e):e;if(!n)return!1;if(-1===n.indexOf("charset")){var r=t.charset(n);r&&(n+="; charset="+r.toLowerCase())}return n},t.extension=function(e){if(!e||"string"!=typeof e)return!1;var n=c.exec(e),r=n&&t.extensions[n[1].toLowerCase()];return!(!r||!r.length)&&r[0]},t.extensions=Object.create(null),t.lookup=function(e){if(!e||"string"!=typeof e)return!1;var n=a("x."+e).toLowerCase().substr(1);return n&&t.types[n]||!1},t.types=Object.create(null),r=t.extensions,i=t.types,o=["nginx","apache",void 0,"iana"],Object.keys(s).forEach(function(e){var t=s[e],n=t.extensions;if(n&&n.length){r[e]=n;for(var a=0;a<n.length;a++){var c=n[a];if(i[c]){var u=o.indexOf(s[i[c]].source),l=o.indexOf(t.source);if("application/octet-stream"!==i[c]&&(u>l||u===l&&"application/"===i[c].substr(0,12)))continue}i[c]=e}}})},86249:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getClassMetadataConstructorArgumentsFromMetadataReader=function(e,t){const n=t.getConstructorMetadata(e),s=[];for(const[t,r]of Object.entries(n.userGeneratedMetadata)){const n=parseInt(t);s[n]=(0,o.getConstructorArgumentMetadataFromLegacyMetadata)(e,n,r)}if(void 0!==n.compilerGeneratedMetadata)for(let e=0;e<n.compilerGeneratedMetadata.length;++e)if(void 0===s[e]){const t=n.compilerGeneratedMetadata[e];s[e]=(0,i.getClassElementMetadataFromNewable)(t)}return(0,r.assertConstructorMetadataArrayFilled)(e,s),s};const r=n(28650),i=n(52727),o=n(12818)},86277:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ClassElementMetadataKind=void 0,function(e){e[e.multipleInjection=0]="multipleInjection",e[e.singleInjection=1]="singleInjection",e[e.unmanaged=2]="unmanaged"}(n||(t.ClassElementMetadataKind=n={}))},86331:function(e,t,n){"use strict";var r,i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),s=0;s<n.length;s++)"default"!==n[s]&&i(t,e,n[s]);return o(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.targetName=function(e){return function(t,n,r){const i=new c.Metadata(a.NAME_TAG,e);(0,u.tagParameter)(t,n,r,i)}};const a=s(n(19466)),c=n(4045),u=n(33353)},86379:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRelativePath=void 0,t.getRelativePath=(e,t)=>{let n=0;for(;n<e.length&&n<t.length&&e[n]===t[n];n++);return[(e.length-n).toString(),...t.slice(n)].join("/")}},86501:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(48343);r.code='require("ajv/dist/runtime/uri").default',t.default=r},86714:(e,t,n)=>{"use strict";const r=n(24434),i=n(58611),{createHash:o}=(n(65692),n(69278),n(64756),n(76982)),s=n(95483),a=n(9364),{format:c,parse:u}=n(74230),{GUID:l,kWebSocket:d}=n(50918),p=/^[+/0-9A-Za-z]{22}==$/;function f(e){e._state=2,e.emit("close")}function m(){this.destroy()}function h(e,t,n,r){e.writable&&(n=n||i.STATUS_CODES[t],r={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(n),...r},e.write(`HTTP/1.1 ${t} ${i.STATUS_CODES[t]}\r\n`+Object.keys(r).map(e=>`${e}: ${r[e]}`).join("\r\n")+"\r\n\r\n"+n)),e.removeListener("error",m),e.destroy()}function v(e){return e.trim()}e.exports=class extends r{constructor(e,t){if(super(),null==(e={maxPayload:104857600,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,...e}).port&&!e.server&&!e.noServer||null!=e.port&&(e.server||e.noServer)||e.server&&e.noServer)throw new TypeError('One and only one of the "port", "server", or "noServer" options must be specified');if(null!=e.port?(this._server=i.createServer((e,t)=>{const n=i.STATUS_CODES[426];t.writeHead(426,{"Content-Length":n.length,"Content-Type":"text/plain"}),t.end(n)}),this._server.listen(e.port,e.host,e.backlog,t)):e.server&&(this._server=e.server),this._server){const e=this.emit.bind(this,"connection");this._removeListeners=function(e,t){for(const n of Object.keys(t))e.on(n,t[n]);return function(){for(const n of Object.keys(t))e.removeListener(n,t[n])}}(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(t,n,r)=>{this.handleUpgrade(t,n,r,e)}})}!0===e.perMessageDeflate&&(e.perMessageDeflate={}),e.clientTracking&&(this.clients=new Set),this.options=e,this._state=0}address(){if(this.options.noServer)throw new Error('The server is operating in "noServer" mode');return this._server?this._server.address():null}close(e){if(e&&this.once("close",e),2===this._state)return void process.nextTick(f,this);if(1===this._state)return;if(this._state=1,this.clients)for(const e of this.clients)e.terminate();const t=this._server;t&&(this._removeListeners(),this._removeListeners=this._server=null,null!=this.options.port)?t.close(f.bind(void 0,this)):process.nextTick(f,this)}shouldHandle(e){if(this.options.path){const t=e.url.indexOf("?");if((-1!==t?e.url.slice(0,t):e.url)!==this.options.path)return!1}return!0}handleUpgrade(e,t,n,r){t.on("error",m);const i=void 0!==e.headers["sec-websocket-key"]&&e.headers["sec-websocket-key"].trim(),o=e.headers.upgrade,a=+e.headers["sec-websocket-version"],c={};if("GET"!==e.method||void 0===o||"websocket"!==o.toLowerCase()||!i||!p.test(i)||8!==a&&13!==a||!this.shouldHandle(e))return h(t,400);if(this.options.perMessageDeflate){const n=new s(this.options.perMessageDeflate,!0,this.options.maxPayload);try{const t=u(e.headers["sec-websocket-extensions"]);t[s.extensionName]&&(n.accept(t[s.extensionName]),c[s.extensionName]=n)}catch(e){return h(t,400)}}if(this.options.verifyClient){const o={origin:e.headers[8===a?"sec-websocket-origin":"origin"],secure:!(!e.socket.authorized&&!e.socket.encrypted),req:e};if(2===this.options.verifyClient.length)return void this.options.verifyClient(o,(o,s,a,u)=>{if(!o)return h(t,s||401,a,u);this.completeUpgrade(i,c,e,t,n,r)});if(!this.options.verifyClient(o))return h(t,401)}this.completeUpgrade(i,c,e,t,n,r)}completeUpgrade(e,t,n,r,i,u){if(!r.readable||!r.writable)return r.destroy();if(r[d])throw new Error("server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration");if(this._state>0)return h(r,503);const p=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${o("sha1").update(e+l).digest("base64")}`],f=new a(null);let g=n.headers["sec-websocket-protocol"];if(g&&(g=g.split(",").map(v),g=this.options.handleProtocols?this.options.handleProtocols(g,n):g[0],g&&(p.push(`Sec-WebSocket-Protocol: ${g}`),f._protocol=g)),t[s.extensionName]){const e=t[s.extensionName].params,n=c({[s.extensionName]:[e]});p.push(`Sec-WebSocket-Extensions: ${n}`),f._extensions=t}this.emit("headers",p,n),r.write(p.concat("\r\n").join("\r\n")),r.removeListener("error",m),f.setSocket(r,i,this.options.maxPayload),this.clients&&(this.clients.add(f),f.on("close",()=>this.clients.delete(f))),u(f,n)}}},86836:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.contentVocabulary=t.metadataVocabulary=void 0,t.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],t.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},87016:e=>{"use strict";e.exports=require("url")},87054:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseRecordDef=void 0;const r=n(19164),i=n(73524),o=n(73178),s=n(46163),a=n(62909);t.parseRecordDef=function(e,t){if("openAi"===t.target&&console.warn("Warning: OpenAI may not support records in schemas! Try an array of key-value pairs instead."),"openApi3"===t.target&&e.keyType?._def.typeName===r.ZodFirstPartyTypeKind.ZodEnum)return{type:"object",required:e.keyType._def.values,properties:e.keyType._def.values.reduce((n,r)=>({...n,[r]:(0,i.parseDef)(e.valueType._def,{...t,currentPath:[...t.currentPath,"properties",r]})??(0,a.parseAnyDef)(t)}),{}),additionalProperties:t.rejectedAdditionalProperties};const n={type:"object",additionalProperties:(0,i.parseDef)(e.valueType._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]})??t.allowedAdditionalProperties};if("openApi3"===t.target)return n;if(e.keyType?._def.typeName===r.ZodFirstPartyTypeKind.ZodString&&e.keyType._def.checks?.length){const{type:r,...i}=(0,o.parseStringDef)(e.keyType._def,t);return{...n,propertyNames:i}}if(e.keyType?._def.typeName===r.ZodFirstPartyTypeKind.ZodEnum)return{...n,propertyNames:{enum:e.keyType._def.values}};if(e.keyType?._def.typeName===r.ZodFirstPartyTypeKind.ZodBranded&&e.keyType._def.type._def.typeName===r.ZodFirstPartyTypeKind.ZodString&&e.keyType._def.type._def.checks?.length){const{type:r,...i}=(0,s.parseBrandedDef)(e.keyType._def,t);return{...n,propertyNames:i}}return n}},87059:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BindingOnSyntax=void 0;const r=n(90732);t.BindingOnSyntax=class{_binding;constructor(e){this._binding=e}onActivation(e){return this._binding.onActivation=e,new r.BindingWhenSyntax(this._binding)}onDeactivation(e){return this._binding.onDeactivation=e,new r.BindingWhenSyntax(this._binding)}}},87073:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{localeError:a()}};const s=o(n(90523)),a=()=>{const e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function t(t){return e[t]??null}const n={regex:"entrée",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"};return e=>{switch(e.code){case"invalid_type":return`Entrée invalide : ${e.expected} attendu, ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"nombre";case"object":if(Array.isArray(e))return"tableau";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)} reçu`;case"invalid_value":return 1===e.values.length?`Entrée invalide : ${s.stringifyPrimitive(e.values[0])} attendu`:`Option invalide : une valeur parmi ${s.joinValues(e.values,"|")} attendue`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`Trop grand : ${e.origin??"valeur"} doit ${r.verb} ${n}${e.maximum.toString()} ${r.unit??"élément(s)"}`:`Trop grand : ${e.origin??"valeur"} doit être ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`Trop petit : ${e.origin} doit ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Trop petit : ${e.origin} doit être ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Chaîne invalide : doit commencer par "${t.prefix}"`:"ends_with"===t.format?`Chaîne invalide : doit se terminer par "${t.suffix}"`:"includes"===t.format?`Chaîne invalide : doit inclure "${t.includes}"`:"regex"===t.format?`Chaîne invalide : doit correspondre au modèle ${t.pattern}`:`${n[t.format]??e.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${e.divisor}`;case"unrecognized_keys":return`Clé${e.keys.length>1?"s":""} non reconnue${e.keys.length>1?"s":""} : ${s.joinValues(e.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${e.origin}`;case"invalid_union":default:return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${e.origin}`}}}},87236:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseBigintDef=void 0;const r=n(98950);t.parseBigintDef=function(e,t){const n={type:"integer",format:"int64"};if(!e.checks)return n;for(const i of e.checks)switch(i.kind){case"min":"jsonSchema7"===t.target?i.inclusive?(0,r.setResponseValueAndErrors)(n,"minimum",i.value,i.message,t):(0,r.setResponseValueAndErrors)(n,"exclusiveMinimum",i.value,i.message,t):(i.inclusive||(n.exclusiveMinimum=!0),(0,r.setResponseValueAndErrors)(n,"minimum",i.value,i.message,t));break;case"max":"jsonSchema7"===t.target?i.inclusive?(0,r.setResponseValueAndErrors)(n,"maximum",i.value,i.message,t):(0,r.setResponseValueAndErrors)(n,"exclusiveMaximum",i.value,i.message,t):(i.inclusive||(n.exclusiveMaximum=!0),(0,r.setResponseValueAndErrors)(n,"maximum",i.value,i.message,t));break;case"multipleOf":(0,r.setResponseValueAndErrors)(n,"multipleOf",i.value,i.message,t)}return n}},87319:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Doc=void 0,t.Doc=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if("function"==typeof e)return e(this,{execution:"sync"}),void e(this,{execution:"async"});const t=e.split("\n").filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>" ".repeat(2*this.indent)+e);for(const e of r)this.content.push(e)}compile(){const e=Function,t=this?.args;return new e(...t,[...(this?.content??[""]).map(e=>` ${e}`)].join("\n"))}}},87451:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.REMOTE_TOOL_SCHEMAS=t.REMOTE_TOOL_NAMES=t.UPDATE_SCRIPT_SOURCE_TOOL=void 0,t.isRemoteToolName=function(e){return Object.prototype.hasOwnProperty.call(S,e)},t.isReadOnlyTool=O,t.getRemoteToolHandler=function(e){return S[e]},t.listRemoteTools=function(e){return t.REMOTE_TOOL_NAMES.filter(t=>!e||O(t)).map(e=>({name:e,title:k(e),description:$(e),inputSchema:P(e),annotations:E(e)}))};const r=n(46486),i=n(24274),o=n(68428),s=n(2163),a=n(19779),c=n(81050),u=n(92100),l=n(61388),d=n(75649),p=n(58427),f=n(11577),m=n(49742),h=n(92064),v=n(89232);t.UPDATE_SCRIPT_SOURCE_TOOL="iobroker_update_script_source",t.REMOTE_TOOL_NAMES=["iobroker_get_scripts","iobroker_get_script_content","iobroker_get_js_instances","iobroker_get_state","iobroker_get_logs","iobroker_start_script","iobroker_stop_script","iobroker_create_script","iobroker_create_directory","iobroker_rename_script","iobroker_move_script","iobroker_delete_script","iobroker_delete_directory",t.UPDATE_SCRIPT_SOURCE_TOOL],t.REMOTE_TOOL_SCHEMAS={[t.UPDATE_SCRIPT_SOURCE_TOOL]:{type:"object",properties:{scriptId:{type:"string",description:"Full ioBroker script id, e.g. 'script.js.common.MyScript'. Use iobroker_get_scripts to look it up."},source:{type:"string",description:"The complete new source code of the script. It replaces the server version and is capped at 1 MB."}},required:["scriptId","source"],additionalProperties:!1}};const g="Update ioBroker script source",y="Replaces the source code of an existing script on the ioBroker server. Use iobroker_get_script_content before editing so the rest of the script is preserved, and send the complete new source. Returns the script id and the number of written characters. This cannot be undone; confirm the exact script id with the user before using this tool.",_={iobroker_get_scripts:"Lists the ioBroker.javascript directories and scripts on the ioBroker server. Returns directory ids (use them as directoryId for creating or moving scripts) and script ids (use them as scriptId for all other tools) together with the engine type and the enabled state. Use it before any tool that needs a script or directory id. Does not read the script source code, use iobroker_get_script_content for that.",iobroker_get_script_content:"Returns the source code of one ioBroker script as stored on the ioBroker server. The result is marked as truncated when it exceeds maxLength. Only works for script ids, not for directories.",iobroker_create_script:"Creates a new script on the ioBroker server. The source is written to the ioBroker object. Fails when the id already exists in the directory. Pass a directoryId to place the script in a subdirectory; omit it to use the root directory.",iobroker_create_directory:"Creates a directory on the ioBroker server. Pass the full directory id to create missing intermediate directories in one step, or an existing parent id together with a name. Fails when the directory already exists.",iobroker_rename_script:"Renames a script on the ioBroker server. The directory does not change; use iobroker_move_script for that. Returns the old and the new script id.",iobroker_move_script:"Moves a script into another directory on the ioBroker server. The directory has to exist already. Returns the old and the new script id.",iobroker_delete_script:"Deletes a script on the ioBroker server. This cannot be undone. Confirm the exact script id with the user before using this tool.",iobroker_delete_directory:"Deletes an empty directory on the ioBroker server. The directory has to be empty: move or delete its scripts and subdirectories first. This cannot be undone; the root directory, 'script.js.common' and 'script.js.global' cannot be deleted. Confirm the exact directory id with the user before using this tool."},b=["iobroker_get_scripts","iobroker_get_script_content","iobroker_get_js_instances","iobroker_get_state","iobroker_get_logs"],x=["iobroker_start_script","iobroker_stop_script"],w=["iobroker_create_script","iobroker_create_directory"],S={iobroker_get_scripts:(e,t)=>(0,a.getScripts)(e,t),iobroker_get_script_content:(e,t)=>(0,s.getScriptContent)(e,t),iobroker_get_js_instances:(e,t)=>(0,i.getJsInstances)(e,t),iobroker_get_state:(e,t)=>(0,c.getState)(e,t),iobroker_get_logs:(e,t)=>(0,o.getLogs)(e,t),iobroker_start_script:(e,t)=>(0,h.startScript)(e,t),iobroker_stop_script:(e,t)=>(0,h.stopScript)(e,t),iobroker_create_script:(e,t)=>(0,l.createScript)(e,t),iobroker_create_directory:(e,t)=>(0,u.createDirectory)(e,t),iobroker_rename_script:(e,t)=>(0,m.renameScript)(e,t),iobroker_move_script:(e,t)=>(0,f.moveScript)(e,t),iobroker_delete_script:(e,t)=>(0,p.deleteScript)(e,t),iobroker_delete_directory:(e,t)=>(0,d.deleteDirectory)(e,t),[t.UPDATE_SCRIPT_SOURCE_TOOL]:(e,t)=>(0,v.updateScriptSource)(e,t)};function O(e){return b.includes(e)}function k(e){return e===t.UPDATE_SCRIPT_SOURCE_TOOL?g:r.TOOL_TITLES[e]}function $(e){if(e===t.UPDATE_SCRIPT_SOURCE_TOOL)return y;const n=_[e];return null!=n?n:r.TOOL_DESCRIPTIONS[e]}function P(e){const n=e===t.UPDATE_SCRIPT_SOURCE_TOOL?t.REMOTE_TOOL_SCHEMAS[t.UPDATE_SCRIPT_SOURCE_TOOL]:r.TOOL_SCHEMAS[e];return Object.assign(Object.assign({},n),{required:[...n.required]})}function E(e){return O(e)?{readOnlyHint:!0,idempotentHint:!0,openWorldHint:!1}:x.includes(e)?{readOnlyHint:!1,destructiveHint:!1,idempotentHint:!0,openWorldHint:!1}:w.includes(e)?{readOnlyHint:!1,destructiveHint:!1,idempotentHint:!1,openWorldHint:!1}:{readOnlyHint:!1,destructiveHint:!0,idempotentHint:!1,openWorldHint:!1}}},87773:(e,t,n)=>{var r=n(95074),i=n(5971),o=n(78104),s=n(74745),a=n(18144),c=n(22300)("socket.io-client:socket"),u=n(29140),l=n(8839);e.exports=f;var d={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},p=i.prototype.emit;function f(e,t,n){this.io=e,this.nsp=t,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.flags={},n&&n.query&&(this.query=n.query),this.io.autoConnect&&this.open()}i(f.prototype),f.prototype.subEvents=function(){if(!this.subs){var e=this.io;this.subs=[s(e,"open",a(this,"onopen")),s(e,"packet",a(this,"onpacket")),s(e,"close",a(this,"onclose"))]}},f.prototype.open=f.prototype.connect=function(){return this.connected||(this.subEvents(),this.io.reconnecting||this.io.open(),"open"===this.io.readyState&&this.onopen(),this.emit("connecting")),this},f.prototype.send=function(){var e=o(arguments);return e.unshift("message"),this.emit.apply(this,e),this},f.prototype.emit=function(e){if(d.hasOwnProperty(e))return p.apply(this,arguments),this;var t=o(arguments),n={type:(void 0!==this.flags.binary?this.flags.binary:l(t))?r.BINARY_EVENT:r.EVENT,data:t,options:{}};return n.options.compress=!this.flags||!1!==this.flags.compress,"function"==typeof t[t.length-1]&&(c("emitting packet with ack id %d",this.ids),this.acks[this.ids]=t.pop(),n.id=this.ids++),this.connected?this.packet(n):this.sendBuffer.push(n),this.flags={},this},f.prototype.packet=function(e){e.nsp=this.nsp,this.io.packet(e)},f.prototype.onopen=function(){if(c("transport is open - connecting"),"/"!==this.nsp)if(this.query){var e="object"==typeof this.query?u.encode(this.query):this.query;c("sending connect packet with query %s",e),this.packet({type:r.CONNECT,query:e})}else this.packet({type:r.CONNECT})},f.prototype.onclose=function(e){c("close (%s)",e),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",e)},f.prototype.onpacket=function(e){var t=e.nsp===this.nsp,n=e.type===r.ERROR&&"/"===e.nsp;if(t||n)switch(e.type){case r.CONNECT:this.onconnect();break;case r.EVENT:case r.BINARY_EVENT:this.onevent(e);break;case r.ACK:case r.BINARY_ACK:this.onack(e);break;case r.DISCONNECT:this.ondisconnect();break;case r.ERROR:this.emit("error",e.data)}},f.prototype.onevent=function(e){var t=e.data||[];c("emitting event %j",t),null!=e.id&&(c("attaching ack callback to event"),t.push(this.ack(e.id))),this.connected?p.apply(this,t):this.receiveBuffer.push(t)},f.prototype.ack=function(e){var t=this,n=!1;return function(){if(!n){n=!0;var i=o(arguments);c("sending ack %j",i),t.packet({type:l(i)?r.BINARY_ACK:r.ACK,id:e,data:i})}}},f.prototype.onack=function(e){var t=this.acks[e.id];"function"==typeof t?(c("calling ack %s with %j",e.id,e.data),t.apply(this,e.data),delete this.acks[e.id]):c("bad ack %s",e.id)},f.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emitBuffered(),this.emit("connect")},f.prototype.emitBuffered=function(){var e;for(e=0;e<this.receiveBuffer.length;e++)p.apply(this,this.receiveBuffer[e]);for(this.receiveBuffer=[],e=0;e<this.sendBuffer.length;e++)this.packet(this.sendBuffer[e]);this.sendBuffer=[]},f.prototype.ondisconnect=function(){c("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},f.prototype.destroy=function(){if(this.subs){for(var e=0;e<this.subs.length;e++)this.subs[e].destroy();this.subs=null}this.io.destroy(this)},f.prototype.close=f.prototype.disconnect=function(){return this.connected&&(c("performing disconnect (%s)",this.nsp),this.packet({type:r.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},f.prototype.compress=function(e){return this.flags.compress=e,this},f.prototype.binary=function(e){return this.flags.binary=e,this}},88053:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.FactoryType=void 0,function(e){e.DynamicValue="toDynamicValue",e.Factory="toFactory",e.Provider="toProvider"}(n||(t.FactoryType=n={}))},88758:e=>{var t,n,r,i=String.fromCharCode;function o(e){for(var t,n,r=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(n=e.charCodeAt(i++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--):r.push(t);return r}function s(e,t){if(e>=55296&&e<=57343){if(t)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function a(e,t){return i(e>>t&63|128)}function c(e,t){if(!(4294967168&e))return i(e);var n="";return 4294965248&e?4294901760&e?4292870144&e||(n=i(e>>18&7|240),n+=a(e,12),n+=a(e,6)):(s(e,t)||(e=65533),n=i(e>>12&15|224),n+=a(e,6)):n=i(e>>6&31|192),n+i(63&e|128)}function u(){if(r>=n)throw Error("Invalid byte index");var e=255&t[r];if(r++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function l(e){var i,o;if(r>n)throw Error("Invalid byte index");if(r==n)return!1;if(i=255&t[r],r++,!(128&i))return i;if(192==(224&i)){if((o=(31&i)<<6|u())>=128)return o;throw Error("Invalid continuation byte")}if(224==(240&i)){if((o=(15&i)<<12|u()<<6|u())>=2048)return s(o,e)?o:65533;throw Error("Invalid continuation byte")}if(240==(248&i)&&(o=(7&i)<<18|u()<<12|u()<<6|u())>=65536&&o<=1114111)return o;throw Error("Invalid UTF-8 detected")}e.exports={version:"2.1.2",encode:function(e,t){for(var n=!1!==(t=t||{}).strict,r=o(e),i=r.length,s=-1,a="";++s<i;)a+=c(r[s],n);return a},decode:function(e,s){var a=!1!==(s=s||{}).strict;t=o(e),n=t.length,r=0;for(var c,u=[];!1!==(c=l(a));)u.push(c);return function(e){for(var t,n=e.length,r=-1,o="";++r<n;)(t=e[r])>65535&&(o+=i((t-=65536)>>>10&1023|55296),t=56320|1023&t),o+=i(t);return o}(u)}}},89232:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.updateScriptSource=function(e,t){return r(this,void 0,void 0,function*(){const n=(0,a.toScriptId)(t.scriptId);if(!n.ok)return n;if("string"!=typeof t.source)return(0,i.failure)("invalid_input","'source' must be a string.");if(t.source.length>c.MAX_SCRIPT_SOURCE_LENGTH)return(0,i.failure)("invalid_input",`'source' must not be longer than ${c.MAX_SCRIPT_SOURCE_LENGTH} characters, but was ${t.source.length}.`,"Split the script into smaller scripts or shorten it before retrying.");const r=(0,o.ensureRemoteConnected)(e);if(r)return{ok:!1,error:r};const u=n.data,l=e.scripts.getScriptFromId(u);if(!l)return(0,i.failure)("not_found",`The script '${u}' is not known to the ioBroker server.`,"Use iobroker_get_scripts to look up available script ids.");const d={_id:u,common:{source:t.source}};try{return yield e.scriptRemote.update(u,d),yield(0,o.refreshScriptInCache)(e,u),(0,i.success)({scriptId:(0,o.scriptIdOf)(l),characters:t.source.length})}catch(e){return(0,s.toFailure)(e)}})};const i=n(49402),o=n(33510),s=n(22797),a=n(75061),c=n(49402)},89260:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.propertyEventDecorator=function(e,t){return()=>(n,i)=>{const o=new r.Metadata(e,i);if(Reflect.hasOwnMetadata(e,n.constructor))throw new Error(t);Reflect.defineMetadata(e,o,n.constructor)}};const r=n(4045)},89353:e=>{"use strict";var t=Object.prototype.toString,n=Math.max,r=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n};e.exports=function(e){var i=this;if("function"!=typeof i||"[object Function]"!==t.apply(i))throw new TypeError("Function.prototype.bind called on incompatible "+i);for(var o,s=function(e){for(var t=[],n=1,r=0;n<e.length;n+=1,r+=1)t[r]=e[n];return t}(arguments),a=n(0,i.length-s.length),c=[],u=0;u<a;u++)c[u]="$"+u;if(o=Function("binder","return function ("+function(e){for(var t="",n=0;n<e.length;n+=1)t+=e[n],n+1<e.length&&(t+=",");return t}(c)+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof o){var t=i.apply(this,r(s,arguments));return Object(t)===t?t:this}return i.apply(e,r(s,arguments))}),i.prototype){var l=function(){};l.prototype=i.prototype,o.prototype=new l,l.prototype=null}return o}},89706:function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.AdminVersionDetector=void 0;const a=n(62129),c=n(52650),u=n(55853),l=n(57698);let d=class{constructor(e){this.socketIoClient=e}getVersion(e,t,n){return s(this,void 0,void 0,function*(){return(yield this.isAdmin4Reachable(e))?a.AdminVersion.admin4:yield this.determineAdminVersion(e,t,n)})}isAdmin4Reachable(e){return new Promise(t=>{const n=l(e),r=setTimeout(()=>{this.socketIoClient.connected||t(!1)},5e3),i=()=>{clearTimeout(r),n.disconnect()};n.on("connect",()=>{i(),t(!0)}),n.on("connect_error",()=>{i(),t(!1)}),n.on("connect_timeout",()=>{i(),t(!1)})})}determineAdminVersion(e,t,n){return new Promise(r=>{const i=e=>{clearTimeout(c),this.socketIoClient.off("connect",o),this.socketIoClient.off("error",s),r(e)},o=()=>{this.socketIoClient.emit("getObject","system.adapter.admin",(e,t)=>{var n,r,o,s;(null===(r=null===(n=null==t?void 0:t.common)||void 0===n?void 0:n.version)||void 0===r?void 0:r.startsWith("6"))?i(a.AdminVersion.admin6):(null===(s=null===(o=null==t?void 0:t.common)||void 0===o?void 0:o.version)||void 0===s?void 0:s.startsWith("7"))?i(a.AdminVersion.admin7):i(a.AdminVersion.admin5)})},s=()=>i(a.AdminVersion.unknown),c=setTimeout(()=>i(a.AdminVersion.unknown),5e3);this.socketIoClient.on("connect",o),this.socketIoClient.on("error",s),n?this.socketIoClient.connect(e,{cookie:n},t):this.socketIoClient.connect(e,"",t)})}};t.AdminVersionDetector=d,t.AdminVersionDetector=d=r([(0,c.injectable)(),o(0,(0,c.inject)(u.default.services.socketIoClient)),i("design:paramtypes",[Object])],d)},89725:(e,t,n)=>{var r=n(3357),i=n(87773),o=n(5971),s=n(95074),a=n(74745),c=n(18144),u=n(22300)("socket.io-client:manager"),l=n(96938),d=n(63059),p=Object.prototype.hasOwnProperty;function f(e,t){if(!(this instanceof f))return new f(e,t);e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.nsps={},this.subs=[],this.opts=t,this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(t.randomizationFactor||.5),this.backoff=new d({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this.readyState="closed",this.uri=e,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[];var n=t.parser||s;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this.autoConnect=!1!==t.autoConnect,this.autoConnect&&this.open()}e.exports=f,f.prototype.emitAll=function(){for(var e in this.emit.apply(this,arguments),this.nsps)p.call(this.nsps,e)&&this.nsps[e].emit.apply(this.nsps[e],arguments)},f.prototype.updateSocketIds=function(){for(var e in this.nsps)p.call(this.nsps,e)&&(this.nsps[e].id=this.generateId(e))},f.prototype.generateId=function(e){return("/"===e?"":e+"#")+this.engine.id},o(f.prototype),f.prototype.reconnection=function(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection},f.prototype.reconnectionAttempts=function(e){return arguments.length?(this._reconnectionAttempts=e,this):this._reconnectionAttempts},f.prototype.reconnectionDelay=function(e){return arguments.length?(this._reconnectionDelay=e,this.backoff&&this.backoff.setMin(e),this):this._reconnectionDelay},f.prototype.randomizationFactor=function(e){return arguments.length?(this._randomizationFactor=e,this.backoff&&this.backoff.setJitter(e),this):this._randomizationFactor},f.prototype.reconnectionDelayMax=function(e){return arguments.length?(this._reconnectionDelayMax=e,this.backoff&&this.backoff.setMax(e),this):this._reconnectionDelayMax},f.prototype.timeout=function(e){return arguments.length?(this._timeout=e,this):this._timeout},f.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()},f.prototype.open=f.prototype.connect=function(e,t){if(u("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;u("opening %s",this.uri),this.engine=r(this.uri,this.opts);var n=this.engine,i=this;this.readyState="opening",this.skipReconnect=!1;var o=a(n,"open",function(){i.onopen(),e&&e()}),s=a(n,"error",function(t){if(u("connect_error"),i.cleanup(),i.readyState="closed",i.emitAll("connect_error",t),e){var n=new Error("Connection error");n.data=t,e(n)}else i.maybeReconnectOnOpen()});if(!1!==this._timeout){var c=this._timeout;u("connect attempt will timeout after %d",c),0===c&&o.destroy();var l=setTimeout(function(){u("connect attempt timed out after %d",c),o.destroy(),n.close(),n.emit("error","timeout"),i.emitAll("connect_timeout",c)},c);this.subs.push({destroy:function(){clearTimeout(l)}})}return this.subs.push(o),this.subs.push(s),this},f.prototype.onopen=function(){u("open"),this.cleanup(),this.readyState="open",this.emit("open");var e=this.engine;this.subs.push(a(e,"data",c(this,"ondata"))),this.subs.push(a(e,"ping",c(this,"onping"))),this.subs.push(a(e,"pong",c(this,"onpong"))),this.subs.push(a(e,"error",c(this,"onerror"))),this.subs.push(a(e,"close",c(this,"onclose"))),this.subs.push(a(this.decoder,"decoded",c(this,"ondecoded")))},f.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")},f.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)},f.prototype.ondata=function(e){this.decoder.add(e)},f.prototype.ondecoded=function(e){this.emit("packet",e)},f.prototype.onerror=function(e){u("error",e),this.emitAll("error",e)},f.prototype.socket=function(e,t){var n=this.nsps[e];if(!n){n=new i(this,e,t),this.nsps[e]=n;var r=this;n.on("connecting",o),n.on("connect",function(){n.id=r.generateId(e)}),this.autoConnect&&o()}function o(){~l(r.connecting,n)||r.connecting.push(n)}return n},f.prototype.destroy=function(e){var t=l(this.connecting,e);~t&&this.connecting.splice(t,1),this.connecting.length||this.close()},f.prototype.packet=function(e){u("writing packet %j",e);var t=this;e.query&&0===e.type&&(e.nsp+="?"+e.query),t.encoding?t.packetBuffer.push(e):(t.encoding=!0,this.encoder.encode(e,function(n){for(var r=0;r<n.length;r++)t.engine.write(n[r],e.options);t.encoding=!1,t.processPacketQueue()}))},f.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var e=this.packetBuffer.shift();this.packet(e)}},f.prototype.cleanup=function(){u("cleanup");for(var e=this.subs.length,t=0;t<e;t++)this.subs.shift().destroy();this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()},f.prototype.close=f.prototype.disconnect=function(){u("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,"opening"===this.readyState&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},f.prototype.onclose=function(e){u("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",e),this._reconnection&&!this.skipReconnect&&this.reconnect()},f.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var e=this;if(this.backoff.attempts>=this._reconnectionAttempts)u("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var t=this.backoff.duration();u("will wait %dms before reconnect attempt",t),this.reconnecting=!0;var n=setTimeout(function(){e.skipReconnect||(u("attempting reconnect"),e.emitAll("reconnect_attempt",e.backoff.attempts),e.emitAll("reconnecting",e.backoff.attempts),e.skipReconnect||e.open(function(t){t?(u("reconnect attempt error"),e.reconnecting=!1,e.reconnect(),e.emitAll("reconnect_error",t.data)):(u("reconnect success"),e.onreconnect())}))},t);this.subs.push({destroy:function(){clearTimeout(n)}})}},f.prototype.onreconnect=function(){var e=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",e)}},89729:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseReadonlyDef=void 0;const r=n(73524);t.parseReadonlyDef=(e,t)=>(0,r.parseDef)(e.innerType._def,t)},89917:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{localeError:a()}};const s=o(n(90523)),a=()=>{const e={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"}};function t(t){return e[t]??null}const n={regex:"внес",email:"адреса на е-пошта",url:"URL",emoji:"емоџи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO датум и време",date:"ISO датум",time:"ISO време",duration:"ISO времетраење",ipv4:"IPv4 адреса",ipv6:"IPv6 адреса",cidrv4:"IPv4 опсег",cidrv6:"IPv6 опсег",base64:"base64-енкодирана низа",base64url:"base64url-енкодирана низа",json_string:"JSON низа",e164:"E.164 број",jwt:"JWT",template_literal:"внес"};return e=>{switch(e.code){case"invalid_type":return`Грешен внес: се очекува ${e.expected}, примено ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"број";case"object":if(Array.isArray(e))return"низа";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`Invalid input: expected ${s.stringifyPrimitive(e.values[0])}`:`Грешана опција: се очекува една ${s.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?`Премногу голем: се очекува ${e.origin??"вредноста"} да има ${n}${e.maximum.toString()} ${r.unit??"елементи"}`:`Премногу голем: се очекува ${e.origin??"вредноста"} да биде ${n}${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`Премногу мал: се очекува ${e.origin} да има ${n}${e.minimum.toString()} ${r.unit}`:`Премногу мал: се очекува ${e.origin} да биде ${n}${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`Неважечка низа: мора да започнува со "${t.prefix}"`:"ends_with"===t.format?`Неважечка низа: мора да завршува со "${t.suffix}"`:"includes"===t.format?`Неважечка низа: мора да вклучува "${t.includes}"`:"regex"===t.format?`Неважечка низа: мора да одгоара на патернот ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case"not_multiple_of":return`Грешен број: мора да биде делив со ${e.divisor}`;case"unrecognized_keys":return`${e.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${s.joinValues(e.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${e.origin}`;case"invalid_union":default:return"Грешен внес";case"invalid_element":return`Грешна вредност во ${e.origin}`}}}},90028:(e,t,n)=>{var r=n(78051),i=n(19500),o=n(26276);function s(e,t){return e<t?-1:e>t?1:0}e.exports=function(e,t,n,s){var a=i(e,n);return r(e,t,a,function n(i,o){i?s(i,o):(a.index++,a.index<(a.keyedList||e).length?r(e,t,a,n):s(null,a.results))}),o.bind(a,s)},e.exports.ascending=s,e.exports.descending=function(e,t){return-1*s(e,t)}},90256:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isClonable=function(e){return"object"==typeof e&&null!==e&&"clone"in e&&"function"==typeof e.clone}},90291:(e,t,n)=>{var r=n(6809),i=n(5971);function o(e){this.path=e.path,this.hostname=e.hostname,this.port=e.port,this.secure=e.secure,this.query=e.query,this.timestampParam=e.timestampParam,this.timestampRequests=e.timestampRequests,this.readyState="",this.agent=e.agent||!1,this.socket=e.socket,this.enablesXDR=e.enablesXDR,this.withCredentials=e.withCredentials,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.forceNode=e.forceNode,this.isReactNative=e.isReactNative,this.extraHeaders=e.extraHeaders,this.localAddress=e.localAddress}e.exports=o,i(o.prototype),o.prototype.onError=function(e,t){var n=new Error(e);return n.type="TransportError",n.description=t,this.emit("error",n),this},o.prototype.open=function(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this},o.prototype.close=function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this},o.prototype.send=function(e){if("open"!==this.readyState)throw new Error("Transport not open");this.write(e)},o.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},o.prototype.onData=function(e){var t=r.decodePacket(e,this.socket.binaryType);this.onPacket(t)},o.prototype.onPacket=function(e){this.emit("packet",e)},o.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},90523:(e,t)=>{"use strict";function n(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function r(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function i(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function o(e){if(!1===i(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!1!==i(n)&&!1!==Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")}function s(e,t,n){const r=new e._zod.constr(t??e._zod.def);return t&&!n?.parent||(r._zod.parent=e),r}function a(e){return"bigint"==typeof e?e.toString()+"n":"string"==typeof e?`"${e}"`:`${e}`}function c(e){return"string"==typeof e?e:e?.message}Object.defineProperty(t,"__esModule",{value:!0}),t.Class=t.BIGINT_FORMAT_RANGES=t.NUMBER_FORMAT_RANGES=t.primitiveTypes=t.propertyKeyTypes=t.getParsedType=t.allowsEval=t.captureStackTrace=void 0,t.assertEqual=function(e){return e},t.assertNotEqual=function(e){return e},t.assertIs=function(e){},t.assertNever=function(e){throw new Error},t.assert=function(e){},t.getEnumValues=function(e){const t=Object.values(e).filter(e=>"number"==typeof e);return Object.entries(e).filter(([e,n])=>-1===t.indexOf(+e)).map(([e,t])=>t)},t.joinValues=function(e,t="|"){return e.map(e=>a(e)).join(t)},t.jsonStringifyReplacer=function(e,t){return"bigint"==typeof t?t.toString():t},t.cached=n,t.nullish=function(e){return null==e},t.cleanRegex=function(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)},t.floatSafeRemainder=function(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r;return Number.parseInt(e.toFixed(i).replace(".",""))%Number.parseInt(t.toFixed(i).replace(".",""))/10**i},t.defineLazy=function(e,t,n){Object.defineProperty(e,t,{get(){{const r=n();return e[t]=r,r}},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})},t.assignProp=r,t.getElementAtPath=function(e,t){return t?t.reduce((e,t)=>e?.[t],e):e},t.promiseAllObject=function(e){const t=Object.keys(e),n=t.map(t=>e[t]);return Promise.all(n).then(e=>{const n={};for(let r=0;r<t.length;r++)n[t[r]]=e[r];return n})},t.randomString=function(e=10){let t="";for(let n=0;n<e;n++)t+="abcdefghijklmnopqrstuvwxyz"[Math.floor(26*Math.random())];return t},t.esc=function(e){return JSON.stringify(e)},t.isObject=i,t.isPlainObject=o,t.numKeys=function(e){let t=0;for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t},t.escapeRegex=function(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},t.clone=s,t.normalizeParams=function(e){const t=e;if(!t)return{};if("string"==typeof t)return{error:()=>t};if(void 0!==t?.message){if(void 0!==t?.error)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,"string"==typeof t.error?{...t,error:()=>t.error}:t},t.createTransparentProxy=function(e){let t;return new Proxy({},{get:(n,r,i)=>(t??(t=e()),Reflect.get(t,r,i)),set:(n,r,i,o)=>(t??(t=e()),Reflect.set(t,r,i,o)),has:(n,r)=>(t??(t=e()),Reflect.has(t,r)),deleteProperty:(n,r)=>(t??(t=e()),Reflect.deleteProperty(t,r)),ownKeys:n=>(t??(t=e()),Reflect.ownKeys(t)),getOwnPropertyDescriptor:(n,r)=>(t??(t=e()),Reflect.getOwnPropertyDescriptor(t,r)),defineProperty:(n,r,i)=>(t??(t=e()),Reflect.defineProperty(t,r,i))})},t.stringifyPrimitive=a,t.optionalKeys=function(e){return Object.keys(e).filter(t=>"optional"===e[t]._zod.optin&&"optional"===e[t]._zod.optout)},t.pick=function(e,t){const n={},r=e._zod.def;for(const e in t){if(!(e in r.shape))throw new Error(`Unrecognized key: "${e}"`);t[e]&&(n[e]=r.shape[e])}return s(e,{...e._zod.def,shape:n,checks:[]})},t.omit=function(e,t){const n={...e._zod.def.shape},r=e._zod.def;for(const e in t){if(!(e in r.shape))throw new Error(`Unrecognized key: "${e}"`);t[e]&&delete n[e]}return s(e,{...e._zod.def,shape:n,checks:[]})},t.extend=function(e,t){if(!o(t))throw new Error("Invalid input to extend: expected a plain object");const n={...e._zod.def,get shape(){const n={...e._zod.def.shape,...t};return r(this,"shape",n),n},checks:[]};return s(e,n)},t.merge=function(e,t){return s(e,{...e._zod.def,get shape(){const n={...e._zod.def.shape,...t._zod.def.shape};return r(this,"shape",n),n},catchall:t._zod.def.catchall,checks:[]})},t.partial=function(e,t,n){const r=t._zod.def.shape,i={...r};if(n)for(const t in n){if(!(t in r))throw new Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:"optional",innerType:r[t]}):r[t])}else for(const t in r)i[t]=e?new e({type:"optional",innerType:r[t]}):r[t];return s(t,{...t._zod.def,shape:i,checks:[]})},t.required=function(e,t,n){const r=t._zod.def.shape,i={...r};if(n)for(const t in n){if(!(t in i))throw new Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:"nonoptional",innerType:r[t]}))}else for(const t in r)i[t]=new e({type:"nonoptional",innerType:r[t]});return s(t,{...t._zod.def,shape:i,checks:[]})},t.aborted=function(e,t=0){for(let n=t;n<e.issues.length;n++)if(!0!==e.issues[n]?.continue)return!0;return!1},t.prefixIssues=function(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})},t.unwrapMessage=c,t.finalizeIssue=function(e,t,n){const r={...e,path:e.path??[]};if(!e.message){const i=c(e.inst?._zod.def?.error?.(e))??c(t?.error?.(e))??c(n.customError?.(e))??c(n.localeError?.(e))??"Invalid input";r.message=i}return delete r.inst,delete r.continue,t?.reportInput||delete r.input,r},t.getSizableOrigin=function(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"},t.getLengthableOrigin=function(e){return Array.isArray(e)?"array":"string"==typeof e?"string":"unknown"},t.issue=function(...e){const[t,n,r]=e;return"string"==typeof t?{message:t,code:"custom",input:n,inst:r}:{...t}},t.cleanEnum=function(e){return Object.entries(e).filter(([e,t])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])},t.captureStackTrace=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{},t.allowsEval=n(()=>{if("undefined"!=typeof navigator&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch(e){return!1}}),t.getParsedType=e=>{const t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":null===e?"null":e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?"promise":"undefined"!=typeof Map&&e instanceof Map?"map":"undefined"!=typeof Set&&e instanceof Set?"set":"undefined"!=typeof Date&&e instanceof Date?"date":"undefined"!=typeof File&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},t.propertyKeyTypes=new Set(["string","number","symbol"]),t.primitiveTypes=new Set(["string","number","bigint","boolean","symbol","undefined"]),t.NUMBER_FORMAT_RANGES={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},t.BIGINT_FORMAT_RANGES={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]},t.Class=class{constructor(...e){}}},90597:(e,t,n)=>{"use strict";const{kForOnEventAttribute:r,kListener:i}=n(32614),o=Symbol("kCode"),s=Symbol("kData"),a=Symbol("kError"),c=Symbol("kMessage"),u=Symbol("kReason"),l=Symbol("kTarget"),d=Symbol("kType"),p=Symbol("kWasClean");class f{constructor(e){this[l]=null,this[d]=e}get target(){return this[l]}get type(){return this[d]}}Object.defineProperty(f.prototype,"target",{enumerable:!0}),Object.defineProperty(f.prototype,"type",{enumerable:!0});class m extends f{constructor(e,t={}){super(e),this[o]=void 0===t.code?0:t.code,this[u]=void 0===t.reason?"":t.reason,this[p]=void 0!==t.wasClean&&t.wasClean}get code(){return this[o]}get reason(){return this[u]}get wasClean(){return this[p]}}Object.defineProperty(m.prototype,"code",{enumerable:!0}),Object.defineProperty(m.prototype,"reason",{enumerable:!0}),Object.defineProperty(m.prototype,"wasClean",{enumerable:!0});class h extends f{constructor(e,t={}){super(e),this[a]=void 0===t.error?null:t.error,this[c]=void 0===t.message?"":t.message}get error(){return this[a]}get message(){return this[c]}}Object.defineProperty(h.prototype,"error",{enumerable:!0}),Object.defineProperty(h.prototype,"message",{enumerable:!0});class v extends f{constructor(e,t={}){super(e),this[s]=void 0===t.data?null:t.data}get data(){return this[s]}}Object.defineProperty(v.prototype,"data",{enumerable:!0});const g={addEventListener(e,t,n={}){for(const o of this.listeners(e))if(!n[r]&&o[i]===t&&!o[r])return;let o;if("message"===e)o=function(e,n){const r=new v("message",{data:n?e:e.toString()});r[l]=this,y(t,this,r)};else if("close"===e)o=function(e,n){const r=new m("close",{code:e,reason:n.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});r[l]=this,y(t,this,r)};else if("error"===e)o=function(e){const n=new h("error",{error:e,message:e.message});n[l]=this,y(t,this,n)};else{if("open"!==e)return;o=function(){const e=new f("open");e[l]=this,y(t,this,e)}}o[r]=!!n[r],o[i]=t,n.once?this.once(e,o):this.on(e,o)},removeEventListener(e,t){for(const n of this.listeners(e))if(n[i]===t&&!n[r]){this.removeListener(e,n);break}}};function y(e,t,n){"object"==typeof e&&e.handleEvent?e.handleEvent.call(e,n):e.call(t,n)}e.exports={CloseEvent:m,ErrorEvent:h,Event:f,EventTarget:g,MessageEvent:v}},90732:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BindingWhenSyntax=void 0;const r=n(87059),i=n(26727);t.BindingWhenSyntax=class{_binding;constructor(e){this._binding=e}when(e){return this._binding.constraint=e,new r.BindingOnSyntax(this._binding)}whenTargetNamed(e){return this._binding.constraint=(0,i.namedConstraint)(e),new r.BindingOnSyntax(this._binding)}whenTargetIsDefault(){return this._binding.constraint=e=>null!==e&&(null!==e.target&&!e.target.isNamed()&&!e.target.isTagged()),new r.BindingOnSyntax(this._binding)}whenTargetTagged(e,t){return this._binding.constraint=(0,i.taggedConstraint)(e)(t),new r.BindingOnSyntax(this._binding)}whenInjectedInto(e){return this._binding.constraint=t=>null!==t&&(0,i.typeConstraint)(e)(t.parentRequest),new r.BindingOnSyntax(this._binding)}whenParentNamed(e){return this._binding.constraint=t=>null!==t&&(0,i.namedConstraint)(e)(t.parentRequest),new r.BindingOnSyntax(this._binding)}whenParentTagged(e,t){return this._binding.constraint=n=>null!==n&&(0,i.taggedConstraint)(e)(t)(n.parentRequest),new r.BindingOnSyntax(this._binding)}whenAnyAncestorIs(e){return this._binding.constraint=t=>null!==t&&(0,i.traverseAncerstors)(t,(0,i.typeConstraint)(e)),new r.BindingOnSyntax(this._binding)}whenNoAncestorIs(e){return this._binding.constraint=t=>null!==t&&!(0,i.traverseAncerstors)(t,(0,i.typeConstraint)(e)),new r.BindingOnSyntax(this._binding)}whenAnyAncestorNamed(e){return this._binding.constraint=t=>null!==t&&(0,i.traverseAncerstors)(t,(0,i.namedConstraint)(e)),new r.BindingOnSyntax(this._binding)}whenNoAncestorNamed(e){return this._binding.constraint=t=>null!==t&&!(0,i.traverseAncerstors)(t,(0,i.namedConstraint)(e)),new r.BindingOnSyntax(this._binding)}whenAnyAncestorTagged(e,t){return this._binding.constraint=n=>null!==n&&(0,i.traverseAncerstors)(n,(0,i.taggedConstraint)(e)(t)),new r.BindingOnSyntax(this._binding)}whenNoAncestorTagged(e,t){return this._binding.constraint=n=>null!==n&&!(0,i.traverseAncerstors)(n,(0,i.taggedConstraint)(e)(t)),new r.BindingOnSyntax(this._binding)}whenAnyAncestorMatches(e){return this._binding.constraint=t=>null!==t&&(0,i.traverseAncerstors)(t,e),new r.BindingOnSyntax(this._binding)}whenNoAncestorMatches(e){return this._binding.constraint=t=>null!==t&&!(0,i.traverseAncerstors)(t,e),new r.BindingOnSyntax(this._binding)}}},90819:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isAsync=t.isValid=t.isDirty=t.isAborted=t.OK=t.DIRTY=t.INVALID=t.ParseStatus=t.EMPTY_PATH=t.makeIssue=void 0,t.addIssueToContext=function(e,n){const r=(0,i.getErrorMap)(),s=(0,t.makeIssue)({issueData:n,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===o.default?void 0:o.default].filter(e=>!!e)});e.common.issues.push(s)};const i=n(99317),o=r(n(75653));t.makeIssue=e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,o=[...n,...i.path||[]],s={...i,path:o};if(void 0!==i.message)return{...i,path:o,message:i.message};let a="";const c=r.filter(e=>!!e).slice().reverse();for(const e of c)a=e(s,{data:t,defaultError:a}).message;return{...i,path:o,message:a}},t.EMPTY_PATH=[];class s{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,n){const r=[];for(const i of n){if("aborted"===i.status)return t.INVALID;"dirty"===i.status&&e.dirty(),r.push(i.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){const n=[];for(const e of t){const t=await e.key,r=await e.value;n.push({key:t,value:r})}return s.mergeObjectSync(e,n)}static mergeObjectSync(e,n){const r={};for(const i of n){const{key:n,value:o}=i;if("aborted"===n.status)return t.INVALID;if("aborted"===o.status)return t.INVALID;"dirty"===n.status&&e.dirty(),"dirty"===o.status&&e.dirty(),"__proto__"===n.value||void 0===o.value&&!i.alwaysSet||(r[n.value]=o.value)}return{status:e.value,value:r}}}t.ParseStatus=s,t.INVALID=Object.freeze({status:"aborted"}),t.DIRTY=e=>({status:"dirty",value:e}),t.OK=e=>({status:"valid",value:e}),t.isAborted=e=>"aborted"===e.status,t.isDirty=e=>"dirty"===e.status,t.isValid=e=>"valid"===e.status,t.isAsync=e=>"undefined"!=typeof Promise&&e instanceof Promise},90978:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSchemaRefs=t.resolveUrl=t.normalizeId=t._getFullPath=t.getFullPath=t.inlineRef=void 0;const r=n(99048),i=n(32017),o=n(2775),s=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);t.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!c(e):!!t&&u(e)<=t)};const a=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function c(e){for(const t in e){if(a.has(t))return!0;const n=e[t];if(Array.isArray(n)&&n.some(c))return!0;if("object"==typeof n&&c(n))return!0}return!1}function u(e){let t=0;for(const n in e){if("$ref"===n)return 1/0;if(t++,!s.has(n)&&("object"==typeof e[n]&&(0,r.eachItem)(e[n],e=>t+=u(e)),t===1/0))return 1/0}return t}function l(e,t="",n){!1!==n&&(t=f(t));const r=e.parse(t);return d(e,r)}function d(e,t){return e.serialize(t).split("#")[0]+"#"}t.getFullPath=l,t._getFullPath=d;const p=/#\/?$/;function f(e){return e?e.replace(p,""):""}t.normalizeId=f,t.resolveUrl=function(e,t,n){return n=f(n),e.resolve(t,n)};const m=/^[a-z_][-a-z0-9._]*$/i;t.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};const{schemaId:n,uriResolver:r}=this.opts,s=f(e[n]||t),a={"":s},c=l(r,s,!1),u={},d=new Set;return o(e,{allKeys:!0},(e,t,r,i)=>{if(void 0===i)return;const o=c+t;let s=a[i];function l(t){const n=this.opts.uriResolver.resolve;if(t=f(s?n(s,t):t),d.has(t))throw h(t);d.add(t);let r=this.refs[t];return"string"==typeof r&&(r=this.refs[r]),"object"==typeof r?p(e,r.schema,t):t!==f(o)&&("#"===t[0]?(p(e,u[t],t),u[t]=e):this.refs[t]=o),t}function v(e){if("string"==typeof e){if(!m.test(e))throw new Error(`invalid anchor "${e}"`);l.call(this,`#${e}`)}}"string"==typeof e[n]&&(s=l.call(this,e[n])),v.call(this,e.$anchor),v.call(this,e.$dynamicAnchor),a[t]=s}),u;function p(e,t,n){if(void 0!==t&&!i(e,t))throw h(n)}function h(e){return new Error(`reference "${e}" resolves to more than one schema`)}}},91060:(e,t,n)=>{"use strict";const r=n(24434),i=n(65692),o=n(58611),s=n(69278),a=n(64756),{randomBytes:c,createHash:u}=n(76982),{Duplex:l,Readable:d}=n(2203),{URL:p}=n(87016),f=n(42971),m=n(46286),h=n(80914),{isBlob:v}=n(95880),{BINARY_TYPES:g,EMPTY_BUFFER:y,GUID:_,kForOnEventAttribute:b,kListener:x,kStatusCode:w,kWebSocket:S,NOOP:O}=n(32614),{EventTarget:{addEventListener:k,removeEventListener:$}}=n(90597),{format:P,parse:E}=n(55926),{toBuffer:T}=n(93338),C=Symbol("kAborted"),I=[8,13],j=["CONNECTING","OPEN","CLOSING","CLOSED"],R=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;class N extends r{constructor(e,t,n){super(),this._binaryType=g[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=y,this._closeTimer=null,this._errorEmitted=!1,this._extensions={},this._paused=!1,this._protocol="",this._readyState=N.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,null!==e?(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,void 0===t?t=[]:Array.isArray(t)||("object"==typeof t&&null!==t?(n=t,t=[]):t=[t]),A(this,e,t,n)):(this._autoPong=n.autoPong,this._isServer=!0)}get binaryType(){return this._binaryType}set binaryType(e){g.includes(e)&&(this._binaryType=e,this._receiver&&(this._receiver._binaryType=e))}get bufferedAmount(){return this._socket?this._socket._writableState.length+this._sender._bufferedBytes:this._bufferedAmount}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(e,t,n){const r=new m({allowSynchronousEvents:n.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxPayload:n.maxPayload,skipUTF8Validation:n.skipUTF8Validation}),i=new h(e,this._extensions,n.generateMask);this._receiver=r,this._sender=i,this._socket=e,r[S]=this,i[S]=this,e[S]=this,r.on("conclude",z),r.on("drain",F),r.on("error",B),r.on("message",V),r.on("ping",G),r.on("pong",W),i.onerror=H,e.setTimeout&&e.setTimeout(0),e.setNoDelay&&e.setNoDelay(),t.length>0&&e.unshift(t),e.on("close",Y),e.on("data",X),e.on("end",Q),e.on("error",ee),this._readyState=N.OPEN,this.emit("open")}emitClose(){if(!this._socket)return this._readyState=N.CLOSED,void this.emit("close",this._closeCode,this._closeMessage);this._extensions[f.extensionName]&&this._extensions[f.extensionName].cleanup(),this._receiver.removeAllListeners(),this._readyState=N.CLOSED,this.emit("close",this._closeCode,this._closeMessage)}close(e,t){if(this.readyState!==N.CLOSED){if(this.readyState===N.CONNECTING){const e="WebSocket was closed before the connection was established";return void U(this,this._req,e)}this.readyState!==N.CLOSING?(this._readyState=N.CLOSING,this._sender.close(e,t,!this._isServer,e=>{e||(this._closeFrameSent=!0,(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end())}),J(this)):this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end()}}pause(){this.readyState!==N.CONNECTING&&this.readyState!==N.CLOSED&&(this._paused=!0,this._socket.pause())}ping(e,t,n){if(this.readyState===N.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");"function"==typeof e?(n=e,e=t=void 0):"function"==typeof t&&(n=t,t=void 0),"number"==typeof e&&(e=e.toString()),this.readyState===N.OPEN?(void 0===t&&(t=!this._isServer),this._sender.ping(e||y,t,n)):L(this,e,n)}pong(e,t,n){if(this.readyState===N.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");"function"==typeof e?(n=e,e=t=void 0):"function"==typeof t&&(n=t,t=void 0),"number"==typeof e&&(e=e.toString()),this.readyState===N.OPEN?(void 0===t&&(t=!this._isServer),this._sender.pong(e||y,t,n)):L(this,e,n)}resume(){this.readyState!==N.CONNECTING&&this.readyState!==N.CLOSED&&(this._paused=!1,this._receiver._writableState.needDrain||this._socket.resume())}send(e,t,n){if(this.readyState===N.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if("function"==typeof t&&(n=t,t={}),"number"==typeof e&&(e=e.toString()),this.readyState!==N.OPEN)return void L(this,e,n);const r={binary:"string"!=typeof e,mask:!this._isServer,compress:!0,fin:!0,...t};this._extensions[f.extensionName]||(r.compress=!1),this._sender.send(e||y,r,n)}terminate(){if(this.readyState!==N.CLOSED){if(this.readyState===N.CONNECTING){const e="WebSocket was closed before the connection was established";return void U(this,this._req,e)}this._socket&&(this._readyState=N.CLOSING,this._socket.destroy())}}}function A(e,t,n,r){const s={allowSynchronousEvents:!0,autoPong:!0,protocolVersion:I[1],maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...r,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:"GET",host:void 0,path:void 0,port:void 0};if(e._autoPong=s.autoPong,!I.includes(s.protocolVersion))throw new RangeError(`Unsupported protocol version: ${s.protocolVersion} (supported versions: ${I.join(", ")})`);let a;if(t instanceof p)a=t;else try{a=new p(t)}catch(e){throw new SyntaxError(`Invalid URL: ${t}`)}"http:"===a.protocol?a.protocol="ws:":"https:"===a.protocol&&(a.protocol="wss:"),e._url=a.href;const l="wss:"===a.protocol,d="ws+unix:"===a.protocol;let m;if("ws:"===a.protocol||l||d?d&&!a.pathname?m="The URL's pathname is empty":a.hash&&(m="The URL contains a fragment identifier"):m='The URL\'s protocol must be one of "ws:", "wss:", "http:", "https:", or "ws+unix:"',m){const t=new SyntaxError(m);if(0===e._redirects)throw t;return void M(e,t)}const h=l?443:80,v=c(16).toString("base64"),g=l?i.request:o.request,y=new Set;let b,x;if(s.createConnection=s.createConnection||(l?Z:D),s.defaultPort=s.defaultPort||h,s.port=a.port||h,s.host=a.hostname.startsWith("[")?a.hostname.slice(1,-1):a.hostname,s.headers={...s.headers,"Sec-WebSocket-Version":s.protocolVersion,"Sec-WebSocket-Key":v,Connection:"Upgrade",Upgrade:"websocket"},s.path=a.pathname+a.search,s.timeout=s.handshakeTimeout,s.perMessageDeflate&&(b=new f(!0!==s.perMessageDeflate?s.perMessageDeflate:{},!1,s.maxPayload),s.headers["Sec-WebSocket-Extensions"]=P({[f.extensionName]:b.offer()})),n.length){for(const e of n){if("string"!=typeof e||!R.test(e)||y.has(e))throw new SyntaxError("An invalid or duplicated subprotocol was specified");y.add(e)}s.headers["Sec-WebSocket-Protocol"]=n.join(",")}if(s.origin&&(s.protocolVersion<13?s.headers["Sec-WebSocket-Origin"]=s.origin:s.headers.Origin=s.origin),(a.username||a.password)&&(s.auth=`${a.username}:${a.password}`),d){const e=s.path.split(":");s.socketPath=e[0],s.path=e[1]}if(s.followRedirects){if(0===e._redirects){e._originalIpc=d,e._originalSecure=l,e._originalHostOrSocketPath=d?s.socketPath:a.host;const t=r&&r.headers;if(r={...r,headers:{}},t)for(const[e,n]of Object.entries(t))r.headers[e.toLowerCase()]=n}else if(0===e.listenerCount("redirect")){const t=d?!!e._originalIpc&&s.socketPath===e._originalHostOrSocketPath:!e._originalIpc&&a.host===e._originalHostOrSocketPath;(!t||e._originalSecure&&!l)&&(delete s.headers.authorization,delete s.headers.cookie,t||delete s.headers.host,s.auth=void 0)}s.auth&&!r.headers.authorization&&(r.headers.authorization="Basic "+Buffer.from(s.auth).toString("base64")),x=e._req=g(s),e._redirects&&e.emit("redirect",e.url,x)}else x=e._req=g(s);s.timeout&&x.on("timeout",()=>{U(e,x,"Opening handshake has timed out")}),x.on("error",t=>{null===x||x[C]||(x=e._req=null,M(e,t))}),x.on("response",i=>{const o=i.headers.location,a=i.statusCode;if(o&&s.followRedirects&&a>=300&&a<400){if(++e._redirects>s.maxRedirects)return void U(e,x,"Maximum redirects exceeded");let i;x.abort();try{i=new p(o,t)}catch(t){const n=new SyntaxError(`Invalid URL: ${o}`);return void M(e,n)}A(e,i,n,r)}else e.emit("unexpected-response",x,i)||U(e,x,`Unexpected server response: ${i.statusCode}`)}),x.on("upgrade",(t,n,r)=>{if(e.emit("upgrade",t),e.readyState!==N.CONNECTING)return;x=e._req=null;const i=t.headers.upgrade;if(void 0===i||"websocket"!==i.toLowerCase())return void U(e,n,"Invalid Upgrade header");const o=u("sha1").update(v+_).digest("base64");if(t.headers["sec-websocket-accept"]!==o)return void U(e,n,"Invalid Sec-WebSocket-Accept header");const a=t.headers["sec-websocket-protocol"];let c;if(void 0!==a?y.size?y.has(a)||(c="Server sent an invalid subprotocol"):c="Server sent a subprotocol but none was requested":y.size&&(c="Server sent no subprotocol"),c)return void U(e,n,c);a&&(e._protocol=a);const l=t.headers["sec-websocket-extensions"];if(void 0!==l){if(!b)return void U(e,n,"Server sent a Sec-WebSocket-Extensions header but no extension was requested");let t;try{t=E(l)}catch(t){return void U(e,n,"Invalid Sec-WebSocket-Extensions header")}const r=Object.keys(t);if(1!==r.length||r[0]!==f.extensionName)return void U(e,n,"Server indicated an extension that was not requested");try{b.accept(t[f.extensionName])}catch(t){return void U(e,n,"Invalid Sec-WebSocket-Extensions header")}e._extensions[f.extensionName]=b}e.setSocket(n,r,{allowSynchronousEvents:s.allowSynchronousEvents,generateMask:s.generateMask,maxPayload:s.maxPayload,skipUTF8Validation:s.skipUTF8Validation})}),s.finishRequest?s.finishRequest(x,e):x.end()}function M(e,t){e._readyState=N.CLOSING,e._errorEmitted=!0,e.emit("error",t),e.emitClose()}function D(e){return e.path=e.socketPath,s.connect(e)}function Z(e){return e.path=void 0,e.servername||""===e.servername||(e.servername=s.isIP(e.host)?"":e.host),a.connect(e)}function U(e,t,n){e._readyState=N.CLOSING;const r=new Error(n);Error.captureStackTrace(r,U),t.setHeader?(t[C]=!0,t.abort(),t.socket&&!t.socket.destroyed&&t.socket.destroy(),process.nextTick(M,e,r)):(t.destroy(r),t.once("error",e.emit.bind(e,"error")),t.once("close",e.emitClose.bind(e)))}function L(e,t,n){if(t){const n=v(t)?t.size:T(t).length;e._socket?e._sender._bufferedBytes+=n:e._bufferedAmount+=n}if(n){const t=new Error(`WebSocket is not open: readyState ${e.readyState} (${j[e.readyState]})`);process.nextTick(n,t)}}function z(e,t){const n=this[S];n._closeFrameReceived=!0,n._closeMessage=t,n._closeCode=e,void 0!==n._socket[S]&&(n._socket.removeListener("data",X),process.nextTick(K,n._socket),1005===e?n.close():n.close(e,t))}function F(){const e=this[S];e.isPaused||e._socket.resume()}function B(e){const t=this[S];void 0!==t._socket[S]&&(t._socket.removeListener("data",X),process.nextTick(K,t._socket),t.close(e[w])),t._errorEmitted||(t._errorEmitted=!0,t.emit("error",e))}function q(){this[S].emitClose()}function V(e,t){this[S].emit("message",e,t)}function G(e){const t=this[S];t._autoPong&&t.pong(e,!this._isServer,O),t.emit("ping",e)}function W(e){this[S].emit("pong",e)}function K(e){e.resume()}function H(e){const t=this[S];t.readyState!==N.CLOSED&&(t.readyState===N.OPEN&&(t._readyState=N.CLOSING,J(t)),this._socket.end(),t._errorEmitted||(t._errorEmitted=!0,t.emit("error",e)))}function J(e){e._closeTimer=setTimeout(e._socket.destroy.bind(e._socket),3e4)}function Y(){const e=this[S];let t;this.removeListener("close",Y),this.removeListener("data",X),this.removeListener("end",Q),e._readyState=N.CLOSING,this._readableState.endEmitted||e._closeFrameReceived||e._receiver._writableState.errorEmitted||null===(t=e._socket.read())||e._receiver.write(t),e._receiver.end(),this[S]=void 0,clearTimeout(e._closeTimer),e._receiver._writableState.finished||e._receiver._writableState.errorEmitted?e.emitClose():(e._receiver.on("error",q),e._receiver.on("finish",q))}function X(e){this[S]._receiver.write(e)||this.pause()}function Q(){const e=this[S];e._readyState=N.CLOSING,e._receiver.end(),this.end()}function ee(){const e=this[S];this.removeListener("error",ee),this.on("error",O),e&&(e._readyState=N.CLOSING,this.destroy())}Object.defineProperty(N,"CONNECTING",{enumerable:!0,value:j.indexOf("CONNECTING")}),Object.defineProperty(N.prototype,"CONNECTING",{enumerable:!0,value:j.indexOf("CONNECTING")}),Object.defineProperty(N,"OPEN",{enumerable:!0,value:j.indexOf("OPEN")}),Object.defineProperty(N.prototype,"OPEN",{enumerable:!0,value:j.indexOf("OPEN")}),Object.defineProperty(N,"CLOSING",{enumerable:!0,value:j.indexOf("CLOSING")}),Object.defineProperty(N.prototype,"CLOSING",{enumerable:!0,value:j.indexOf("CLOSING")}),Object.defineProperty(N,"CLOSED",{enumerable:!0,value:j.indexOf("CLOSED")}),Object.defineProperty(N.prototype,"CLOSED",{enumerable:!0,value:j.indexOf("CLOSED")}),["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach(e=>{Object.defineProperty(N.prototype,e,{enumerable:!0})}),["open","error","close","message"].forEach(e=>{Object.defineProperty(N.prototype,`on${e}`,{enumerable:!0,get(){for(const t of this.listeners(e))if(t[b])return t[x];return null},set(t){for(const t of this.listeners(e))if(t[b]){this.removeListener(e,t);break}"function"==typeof t&&this.addEventListener(e,t,{[b]:!0})}})}),N.prototype.addEventListener=k,N.prototype.removeEventListener=$,e.exports=N},91114:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.globalRegistry=t.$ZodRegistry=t.$input=t.$output=void 0,t.registry=r,t.$output=Symbol("ZodOutput"),t.$input=Symbol("ZodInput");class n{constructor(){this._map=new Map,this._idmap=new Map}add(e,...t){const n=t[0];if(this._map.set(e,n),n&&"object"==typeof n&&"id"in n){if(this._idmap.has(n.id))throw new Error(`ID ${n.id} already exists in the registry`);this._idmap.set(n.id,e)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(e){const t=this._map.get(e);return t&&"object"==typeof t&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){const t=e._zod.parent;if(t){const n={...this.get(t)??{}};return delete n.id,{...n,...this._map.get(e)}}return this._map.get(e)}has(e){return this._map.has(e)}}function r(){return new n}t.$ZodRegistry=n,t.globalRegistry=r()},91140:(e,t)=>{"use strict";function n(e,t){return t.rules.some(t=>r(e,t))}function r(e,t){var n;return void 0!==e[t.keyword]||(null===(n=t.definition.implements)||void 0===n?void 0:n.some(t=>void 0!==e[t]))}Object.defineProperty(t,"__esModule",{value:!0}),t.shouldUseRule=t.shouldUseGroup=t.schemaHasRulesForType=void 0,t.schemaHasRulesForType=function({schema:e,self:t},r){const i=t.RULES.types[r];return i&&!0!==i&&n(e,i)},t.shouldUseGroup=n,t.shouldUseRule=r},91799:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Plan=void 0,t.Plan=class{parentContext;rootRequest;constructor(e,t){this.parentContext=e,this.rootRequest=t}}},91988:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uppercase=t.lowercase=t.undefined=t.null=t.boolean=t.number=t.integer=t.bigint=t.string=t.date=t.e164=t.domain=t.hostname=t.base64url=t.base64=t.cidrv6=t.cidrv4=t.ipv6=t.ipv4=t._emoji=t.browserEmail=t.unicodeEmail=t.rfc5322Email=t.html5Email=t.email=t.uuid7=t.uuid6=t.uuid4=t.uuid=t.guid=t.extendedDuration=t.duration=t.nanoid=t.ksuid=t.xid=t.ulid=t.cuid2=t.cuid=void 0,t.emoji=function(){return new RegExp(t._emoji,"u")},t.time=function(e){return new RegExp(`^${r(e)}$`)},t.datetime=function(e){const t=r({precision:e.precision}),i=["Z"];e.local&&i.push(""),e.offset&&i.push("([+-]\\d{2}:\\d{2})");const o=`${t}(?:${i.join("|")})`;return new RegExp(`^${n}T(?:${o})$`)},t.cuid=/^[cC][^\s-]{8,}$/,t.cuid2=/^[0-9a-z]+$/,t.ulid=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,t.xid=/^[0-9a-vA-V]{20}$/,t.ksuid=/^[A-Za-z0-9]{27}$/,t.nanoid=/^[a-zA-Z0-9_-]{21}$/,t.duration=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,t.extendedDuration=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,t.guid=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,t.uuid=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/,t.uuid4=(0,t.uuid)(4),t.uuid6=(0,t.uuid)(6),t.uuid7=(0,t.uuid)(7),t.email=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,t.html5Email=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,t.rfc5322Email=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,t.unicodeEmail=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,t.browserEmail=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,t._emoji="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",t.ipv4=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,t.ipv6=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,t.cidrv4=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,t.cidrv6=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,t.base64=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,t.base64url=/^[A-Za-z0-9_-]*$/,t.hostname=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,t.domain=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,t.e164=/^\+(?:[0-9]){6,14}[0-9]$/;const n="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))";function r(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return"number"==typeof e.precision?-1===e.precision?`${t}`:0===e.precision?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}t.date=new RegExp(`^${n}$`),t.string=e=>new RegExp(`^${e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*"}$`),t.bigint=/^\d+n?$/,t.integer=/^\d+$/,t.number=/^-?\d+(?:\.\d+)?/i,t.boolean=/true|false/i,t.null=/null/i,t.undefined=/undefined/i,t.lowercase=/^[^A-Z]*$/,t.uppercase=/^[^a-z]*$/},92034:(e,t)=>{"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.getParsedType=t.ZodParsedType=t.objectUtil=t.util=void 0,function(e){e.assertEqual=e=>{},e.assertIs=function(e){},e.assertNever=function(e){throw new Error},e.arrayToEnum=e=>{const t={};for(const n of e)t[n]=n;return t},e.getValidEnumValues=t=>{const n=e.objectKeys(t).filter(e=>"number"!=typeof t[t[e]]),r={};for(const e of n)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(const n of e)if(t(n))return n},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(n||(t.util=n={})),function(e){e.mergeShapes=(e,t)=>({...e,...t})}(r||(t.objectUtil=r={})),t.ZodParsedType=n.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),t.getParsedType=e=>{switch(typeof e){case"undefined":return t.ZodParsedType.undefined;case"string":return t.ZodParsedType.string;case"number":return Number.isNaN(e)?t.ZodParsedType.nan:t.ZodParsedType.number;case"boolean":return t.ZodParsedType.boolean;case"function":return t.ZodParsedType.function;case"bigint":return t.ZodParsedType.bigint;case"symbol":return t.ZodParsedType.symbol;case"object":return Array.isArray(e)?t.ZodParsedType.array:null===e?t.ZodParsedType.null:e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?t.ZodParsedType.promise:"undefined"!=typeof Map&&e instanceof Map?t.ZodParsedType.map:"undefined"!=typeof Set&&e instanceof Set?t.ZodParsedType.set:"undefined"!=typeof Date&&e instanceof Date?t.ZodParsedType.date:t.ZodParsedType.object;default:return t.ZodParsedType.unknown}}},92064:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.startScript=function(e,t){return r(this,void 0,void 0,function*(){return c(e,t.scriptId,!0)})},t.stopScript=function(e,t){return r(this,void 0,void 0,function*(){return c(e,t.scriptId,!1)})};const i=n(49402),o=n(33510),s=n(22797),a=n(75061);function c(e,t,n){return r(this,void 0,void 0,function*(){const r=(0,a.toScriptId)(t);if(!r.ok)return r;const c=(0,o.ensureRemoteConnected)(e);if(c)return{ok:!1,error:c};const u=r.data;if(!e.scripts.getScriptFromId(u))return(0,i.failure)("not_found",`The script '${u}' is not known to the ioBroker server.`,"Use iobroker_get_scripts to look up available script ids.");try{return n?yield e.scriptRemote.startScript(u):yield e.scriptRemote.stopScript(u),yield(0,o.refreshScriptInCache)(e,u),(0,i.success)({scriptId:`${u}`,enabled:n})}catch(e){return(0,s.toFailure)(e)}})}},92100:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.createDirectory=function(e,t){return r(this,void 0,void 0,function*(){const n=(0,o.resolveDirectoryTarget)(t);if(!n.ok)return n;const l=(0,a.ensureRemoteConnected)(e);if(l)return{ok:!1,error:l};const d=n.data;if(d.requireKnownParent&&!(0,a.findDirectory)(e,d.parentId))return(0,s.failure)("not_found",`The parent directory '${d.parentId}' is not known to the ioBroker server.`,"Use iobroker_get_scripts to look up available directory ids, or pass the full id of the new directory as 'directoryId' without 'name' to create missing parents.");if((0,a.findDirectory)(e,d.targetId))return(0,s.failure)("invalid_input",`The directory '${d.targetId}' does already exist on the ioBroker server.`,"Choose a different name or use iobroker_move_script to move an existing script.");if(i.ScriptId.isValid(d.targetId)&&e.scripts.getScriptFromId(new i.ScriptId(d.targetId)))return(0,s.failure)("invalid_input",`'${d.targetId}' does already exist on the ioBroker server but is not a directory.`,"Choose a different name or move the existing script first.");const p=function(e,t){const n=[];let r=t;for(;void 0!==r&&!(0,a.findDirectory)(e,r);)n.push(r),r=i.ScriptId.parentIdOf(r);return n.reverse()}(e,d.targetId);try{yield e.directories.createDirectoriesRecursively(new i.ScriptId(d.targetId))}catch(t){return yield function(e,t){return r(this,void 0,void 0,function*(){for(const n of t.slice().reverse())try{if(u(e,n))return;if(!(yield e.directories.downloadDirectory(new i.ScriptId(n))))continue;yield e.directories.deleteDirectory(new i.ScriptId(n))}catch(e){return}})}(e,p),{ok:!1,error:{code:"server_error",message:`Could not create the directory '${d.targetId}': ${(0,c.toMessage)(t)}`,hint:"Check the ioBroker connection and the permissions of the configured user, then retry."}}}return yield(0,a.refreshScriptInCache)(e,new i.ScriptId(d.targetId)),(0,s.success)({directoryId:d.targetId,name:d.name})})};const i=n(11633),o=n(95322),s=n(49402),a=n(33510),c=n(75061);function u(e,t){const n=`${t}.`.toLowerCase();return e.scripts.getAllScripts().some(e=>`${e._id}`.toLowerCase().startsWith(n))||e.scripts.getAllDirectories().some(e=>`${e._id}`.toLowerCase().startsWith(n))}},92120:(e,t,n)=>{"undefined"==typeof process||"renderer"===process.type?e.exports=n(80852):e.exports=n(61382)},92204:function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.SocketIoClient=void 0;const a=n(52650),c=n(17699),u=n(55853);let l=class{constructor(e){this.debugLogService=e,this.handlers={},this.socket=null,this.wasConnected=!1,this.connectTimer=null,this.connectingTimer=null,this.callbacks=[],this.pending=[],this.url="",this.allowSelfSignedCertificate=!1,this.id=0,this.authTimeout=null,this.connected=!1,this.autoReconnect=!0,this.log={debug:e=>this.debugLogService.log(e,"SocketIoClient"),warn:e=>this.debugLogService.logWarning(e,"SocketIoClient"),error:e=>this.debugLogService.logError(e,"SocketIoClient")},this.connected=!1}connect(e,t,n){return s(this,void 0,void 0,function*(){let r;this.log.debug(`Try to connect to ${e}`),this.id=0,this.connectTimer&&clearInterval(this.connectTimer),this.connectTimer=null,this.url=e||this.url,this.options=t||this.options,this.allowSelfSignedCertificate=n||this.allowSelfSignedCertificate,this.sessionID=Date.now(),yield this.closeSocket(this.detachSocket());try{let e=this.url.replace(/^http/,"ws").split("?")[0]+"?sid="+this.sessionID;t&&t.name&&(e+="&name="+encodeURIComponent(t.name)),t.cookie?(this.debugLogService.log(`Created websocket with authorization. AllowSelfSignedCertificate: ${this.allowSelfSignedCertificate}. Cooke set: ${t.cookie?"yes":"no"}`,"SocketIoClient"),r=new c(e,{rejectUnauthorized:!n,headers:{cookie:t.cookie}})):(this.debugLogService.log(`Created websocket without authorization. AllowSelfSignedCertificate: ${this.allowSelfSignedCertificate}. Cooke set: ${t.cookie?"yes":"no"}`,"SocketIoClient"),r=new c(e,{rejectUnauthorized:!n}))}catch(e){return this.debugLogService.logError(`Exception while creating websocket: ${e}`,"SocketIoClient"),this.handlers.error&&this.handlers.error.forEach(t=>t.call(this,e)),yield this.closeAndReconnect()}this.socket=r;const i=()=>r===this.socket;return this.connectingTimer=setTimeout(()=>s(this,void 0,void 0,function*(){this.connectingTimer=null,i()&&(this.log.warn("No READY flag received in 3 seconds. Re-init"),yield this.closeAndReconnect())}),3e3),r.onopen=()=>{i()&&(this.lastReceived=Date.now(),this.lastSent=Date.now(),this.pingInterval=setInterval(()=>this.checkHeartbeat(),5e3))},r.onclose=e=>s(this,void 0,void 0,function*(){i()&&(3001===e.code?this.log.warn("ws closed"):this.log.error("ws connection error: "+e.code),this.autoReconnect?yield this.closeAndReconnect():yield this.close())}),r.onerror=e=>s(this,void 0,void 0,function*(){i()&&(this.connected&&1===r.readyState&&this.log.error("ws normal error: "+e.message),this.handlers.error&&this.handlers.error.forEach(t=>t.call(this,`Error Code: ${e.code||"UNKNOWN"}; Message: ${e.message}`)),this.autoReconnect?yield this.closeAndReconnect():yield this.close())}),r.onmessage=e=>{if(!i())return;if(this.log.debug(`type: ${null==e?void 0:e.type}, data: ${null==e?void 0:e.data}`),this.lastReceived=Date.now(),!e||!e.data||"string"!=typeof e.data)return this.log.error("Received invalid message: "+JSON.stringify(e));let t;try{t=JSON.parse(e.data)}catch(t){return this.log.error("Received invalid message: "+JSON.stringify(e.data))}const[n,r,o,s]=t;this.authTimeout&&(clearTimeout(this.authTimeout),this.authTimeout=null),3===n?this.findAnswer(r,s):0===n?"___ready___"===o?(this.connected=!0,this.wasConnected?this.handlers.reconnect&&this.handlers.reconnect.forEach(e=>e.call(this,!0)):(this.handlers.connect&&this.handlers.connect.forEach(e=>e.call(this,!0)),this.wasConnected=!0),this.connectingTimer&&clearTimeout(this.connectingTimer),this.connectingTimer=null,this.pending.length&&(this.pending.forEach(e=>this.emit(e.name,e.arg1,e.arg2,e.arg3,e.arg4,e.arg5)),this.pending=[])):s?this.handlers[o]&&this.handlers[o].forEach(e=>e.call(this,s[0],s[1],s[2],s[3],s[4])):this.handlers[o]&&this.handlers[o].forEach(e=>e.call(this)):1===n?this.socket&&this.send([2]):2===n||this.log.warn("Received unknown message type: "+n)},this})}checkHeartbeat(){const e=Date.now();if(e-this.lastReceived>15e3)return this.log.warn("No message from ioBroker for 15 seconds. Re-init"),void this.closeAndReconnect();if(e-this.lastSent>=5e3)try{this.send([1])}catch(e){return this.log.warn("Cannot send ping. Close connection: "+e),void this.closeAndReconnect()}this._garbageCollect()}send(e){if(!this.socket)throw new Error("There is no open websocket.");this.socket.send(JSON.stringify(e)),this.lastSent=Date.now()}_garbageCollect(){Date.now();if(0>this.callbacks.length/2){const e=[];for(let t=0;t<this.callbacks.length;t++)this.callbacks[t]&&e.push(this.callbacks[t]);this.callbacks=e}}withCallback(e,t,n,r){"authenticate"===e&&(this.authTimeout=setTimeout(()=>{this.authTimeout=null,this.connected&&(this.log.debug("Authenticate timeout"),this.handlers.error&&this.handlers.error.forEach(e=>e.call(this,"Authenticate timeout"))),this.closeAndReconnect()},2e3)),this.callbacks.push({id:t,cb:r,ts:0}),this.socket&&this.send([3,t,e,n])}findAnswer(e,t){for(let n=0;n<this.callbacks.length;n++)this.callbacks[n]&&this.callbacks[n].id===e&&(this.callbacks[n].cb.apply(null,t),this.callbacks[n]=null)}emit(e,t,n,r,i,o){if(this.socket&&this.connected){if(this.id++,"writeFile"===e&&"string"!=typeof r)throw Error("Not implemented yet");try{"function"==typeof o?this.withCallback(e,this.id,[t,n,r,i],o):"function"==typeof i?this.withCallback(e,this.id,[t,n,r],i):"function"==typeof r?this.withCallback(e,this.id,[t,n],r):"function"==typeof n?this.withCallback(e,this.id,[t],n):"function"==typeof t?this.withCallback(e,this.id,[],t):void 0===t&&void 0===n&&void 0===r&&void 0===i&&void 0===o?this.send([0,this.id,e]):void 0===n&&void 0===r&&void 0===i&&void 0===o?this.send([0,this.id,e,[t]]):void 0===r&&void 0===i&&void 0===o?this.send([0,this.id,e,[t,n]]):void 0===i&&void 0===o?this.send([0,this.id,e,[t,n,r]]):void 0===o?this.send([0,this.id,e,[t,n,r,i]]):this.send([0,this.id,e,[t,n,r,i,o]])}catch(e){this.log.error("Cannot send: "+e),this.closeAndReconnect()}}else this.wasConnected?this.log.warn("Not connected"):this.pending.push([e,t,n,r,i,o])}on(e,t){if(t){if(this.handlers[e]=this.handlers[e]||[],this.handlers[e].includes(t))return;this.handlers[e].push(t)}}off(e,t){if(this.handlers[e]){const n=this.handlers[e].indexOf(t);-1!==n&&(this.handlers[e].splice(n,1),this.handlers[e].length||delete this.handlers[e])}}close(){const e=this.connected,t=this.detachSocket();return e&&this.handlers.disconnect&&this.handlers.disconnect.forEach(e=>e.call(this)),this.closeSocket(t)}detachSocket(){this.pingInterval&&clearTimeout(this.pingInterval),this.pingInterval=null,this.authTimeout&&clearTimeout(this.authTimeout),this.authTimeout=null,this.connectingTimer&&clearTimeout(this.connectingTimer),this.connectingTimer=null,this.connectTimer&&clearTimeout(this.connectTimer),this.connectTimer=null;const e=this.socket;return this.socket=null,this.connected=!1,this.failPendingRequests("The connection to ioBroker was closed."),e}closeSocket(e){return e&&3!==e.readyState?new Promise(t=>{const n=()=>{clearTimeout(r),t(this)},r=setTimeout(()=>{try{e.terminate()}catch(e){this.log.debug("Terminating the websocket threw a exception: "+e)}n()},2e3);e.onmessage=()=>{},e.onerror=()=>{},e.onclose=n;try{e.close()}catch(e){this.log.debug("Closing the websocket threw a exception: "+e),n()}}):Promise.resolve(this)}failPendingRequests(e){var t;const n=this.callbacks;this.callbacks=[];for(const r of n)null===(t=null==r?void 0:r.cb)||void 0===t||t.call(r,e)}_reconnect(){this.connectTimer?this.log.debug("Reconnect is already running"):(this.log.debug("Start reconnect"),this.connectTimer=setTimeout(()=>{this.connectTimer=null,this.connect(this.url,this.options,this.allowSelfSignedCertificate)},3e3))}closeAndReconnect(){return s(this,void 0,void 0,function*(){return yield this.close(),this._reconnect(),this})}};t.SocketIoClient=l,t.SocketIoClient=l=r([(0,a.injectable)(),o(0,(0,a.inject)(u.default.services.debugLogService)),i("design:paramtypes",[Object])],l)},92626:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDefaultOptions=t.defaultOptions=t.jsonDescription=t.ignoreOverride=void 0,t.ignoreOverride=Symbol("Let zodToJsonSchema decide on which parser to use"),t.jsonDescription=(e,t)=>{if(t.description)try{return{...e,...JSON.parse(t.description)}}catch{}return e},t.defaultOptions={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",target:"jsonSchema7",strictUnions:!1,definitions:{},errorMessages:!1,markdownDescription:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref",openAiAnyTypeName:"OpenAiAnyType"},t.getDefaultOptions=e=>"string"==typeof e?{...t.defaultOptions,name:e}:{...t.defaultOptions,...e}},92986:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateKeywordUsage=t.validSchemaType=t.funcKeywordCode=t.macroKeywordCode=void 0;const r=n(66596),i=n(26670),o=n(51980),s=n(24971);function a(e){const{gen:t,data:n,it:i}=e;t.if(i.parentData,()=>t.assign(n,r._`${i.parentData}[${i.parentDataProperty}]`))}function c(e,t,n){if(void 0===n)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword","function"==typeof n?{ref:n}:{ref:n,code:(0,r.stringify)(n)})}t.macroKeywordCode=function(e,t){const{gen:n,keyword:i,schema:o,parentSchema:s,it:a}=e,u=t.macro.call(a.self,o,s,a),l=c(n,i,u);!1!==a.opts.validateSchema&&a.self.validateSchema(u,!0);const d=n.name("valid");e.subschema({schema:u,schemaPath:r.nil,errSchemaPath:`${a.errSchemaPath}/${i}`,topSchemaRef:l,compositeRule:!0},d),e.pass(d,()=>e.error(!0))},t.funcKeywordCode=function(e,t){var n;const{gen:u,keyword:l,schema:d,parentSchema:p,$data:f,it:m}=e;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(m,t);const h=!f&&t.compile?t.compile.call(m.self,d,p,m):t.validate,v=c(u,l,h),g=u.let("valid");function y(n=(t.async?r._`await `:r.nil)){const s=m.opts.passContext?i.default.this:i.default.self,a=!("compile"in t&&!f||!1===t.schema);u.assign(g,r._`${n}${(0,o.callValidateCode)(e,v,s,a)}`,t.modifying)}function _(e){var n;u.if((0,r.not)(null!==(n=t.valid)&&void 0!==n?n:g),e)}e.block$data(g,function(){if(!1===t.errors)y(),t.modifying&&a(e),_(()=>e.error());else{const n=t.async?function(){const e=u.let("ruleErrs",null);return u.try(()=>y(r._`await `),t=>u.assign(g,!1).if(r._`${t} instanceof ${m.ValidationError}`,()=>u.assign(e,r._`${t}.errors`),()=>u.throw(t))),e}():function(){const e=r._`${v}.errors`;return u.assign(e,null),y(r.nil),e}();t.modifying&&a(e),_(()=>function(e,t){const{gen:n}=e;n.if(r._`Array.isArray(${t})`,()=>{n.assign(i.default.vErrors,r._`${i.default.vErrors} === null ? ${t} : ${i.default.vErrors}.concat(${t})`).assign(i.default.errors,r._`${i.default.vErrors}.length`),(0,s.extendErrors)(e)},()=>e.error())}(e,n))}}),e.ok(null!==(n=t.valid)&&void 0!==n?n:g)},t.validSchemaType=function(e,t,n=!1){return!t.length||t.some(t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||n&&void 0===e)},t.validateKeywordUsage=function({schema:e,opts:t,self:n,errSchemaPath:r},i,o){if(Array.isArray(i.keyword)?!i.keyword.includes(o):i.keyword!==o)throw new Error("ajv implementation error");const s=i.dependencies;if(null==s?void 0:s.some(t=>!Object.prototype.hasOwnProperty.call(e,t)))throw new Error(`parent schema must have dependencies of ${o}: ${s.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[o])){const e=`keyword "${o}" value is invalid at path "${r}": `+n.errorsText(i.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);n.logger.error(e)}}},93338:(e,t,n)=>{"use strict";const{EMPTY_BUFFER:r}=n(32614),i=Buffer[Symbol.species];function o(e,t,n,r,i){for(let o=0;o<i;o++)n[r+o]=e[o]^t[3&o]}function s(e,t){for(let n=0;n<e.length;n++)e[n]^=t[3&n]}if(e.exports={concat:function(e,t){if(0===e.length)return r;if(1===e.length)return e[0];const n=Buffer.allocUnsafe(t);let o=0;for(let t=0;t<e.length;t++){const r=e[t];n.set(r,o),o+=r.length}return o<t?new i(n.buffer,n.byteOffset,o):n},mask:o,toArrayBuffer:function(e){return e.length===e.buffer.byteLength?e.buffer:e.buffer.slice(e.byteOffset,e.byteOffset+e.length)},toBuffer:function e(t){if(e.readOnly=!0,Buffer.isBuffer(t))return t;let n;return t instanceof ArrayBuffer?n=new i(t):ArrayBuffer.isView(t)?n=new i(t.buffer,t.byteOffset,t.byteLength):(n=Buffer.from(t),e.readOnly=!1),n},unmask:s},!process.env.WS_NO_BUFFER_UTIL)try{const t=n(12627);e.exports.mask=function(e,n,r,i,s){s<48?o(e,n,r,i,s):t.mask(e,n,r,i,s)},e.exports.unmask=function(e,n){e.length<32?s(e,n):t.unmask(e,n)}}catch(e){}},93382:function(e,t,n){"use strict";var r,i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),s=0;s<n.length;s++)"default"!==n[s]&&i(t,e,n[s]);return o(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.Lookup=void 0;const a=s(n(35007)),c=n(90256);class u{_map;constructor(){this._map=new Map}getMap(){return this._map}add(e,t){if(this._checkNonNulish(e),null==t)throw new Error(a.NULL_ARGUMENT);const n=this._map.get(e);void 0!==n?n.push(t):this._map.set(e,[t])}get(e){this._checkNonNulish(e);const t=this._map.get(e);if(void 0!==t)return t;throw new Error(a.KEY_NOT_FOUND)}remove(e){if(this._checkNonNulish(e),!this._map.delete(e))throw new Error(a.KEY_NOT_FOUND)}removeIntersection(e){this.traverse((t,n)=>{const r=e.hasKey(t)?e.get(t):void 0;if(void 0!==r){const e=n.filter(e=>!r.some(t=>e===t));this._setValue(t,e)}})}removeByCondition(e){const t=[];return this._map.forEach((n,r)=>{const i=[];for(const r of n)e(r)?t.push(r):i.push(r);this._setValue(r,i)}),t}hasKey(e){return this._checkNonNulish(e),this._map.has(e)}clone(){const e=new u;return this._map.forEach((t,n)=>{t.forEach(t=>{e.add(n,(0,c.isClonable)(t)?t.clone():t)})}),e}traverse(e){this._map.forEach((t,n)=>{e(n,t)})}_checkNonNulish(e){if(null==e)throw new Error(a.NULL_ARGUMENT)}_setValue(e,t){t.length>0?this._map.set(e,t):this._map.delete(e)}}t.Lookup=u},93628:(e,t,n)=>{"use strict";var r=n(48648),i=n(71064),o=n(7176);e.exports=r?function(e){return r(e)}:i?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return i(e)}:o?function(e){return o(e)}:null},93697:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getData=t.KeywordCxt=t.validateFunctionCode=void 0;const r=n(95962),i=n(79877),o=n(91140),s=n(79877),a=n(82363),c=n(92986),u=n(77344),l=n(66596),d=n(26670),p=n(90978),f=n(99048),m=n(24971);function h({gen:e,validateName:t,schema:n,schemaEnv:r,opts:i},o){i.code.es5?e.func(t,l._`${d.default.data}, ${d.default.valCxt}`,r.$async,()=>{e.code(l._`"use strict"; ${v(n,i)}`),function(e,t){e.if(d.default.valCxt,()=>{e.var(d.default.instancePath,l._`${d.default.valCxt}.${d.default.instancePath}`),e.var(d.default.parentData,l._`${d.default.valCxt}.${d.default.parentData}`),e.var(d.default.parentDataProperty,l._`${d.default.valCxt}.${d.default.parentDataProperty}`),e.var(d.default.rootData,l._`${d.default.valCxt}.${d.default.rootData}`),t.dynamicRef&&e.var(d.default.dynamicAnchors,l._`${d.default.valCxt}.${d.default.dynamicAnchors}`)},()=>{e.var(d.default.instancePath,l._`""`),e.var(d.default.parentData,l._`undefined`),e.var(d.default.parentDataProperty,l._`undefined`),e.var(d.default.rootData,d.default.data),t.dynamicRef&&e.var(d.default.dynamicAnchors,l._`{}`)})}(e,i),e.code(o)}):e.func(t,l._`${d.default.data}, ${function(e){return l._`{${d.default.instancePath}="", ${d.default.parentData}, ${d.default.parentDataProperty}, ${d.default.rootData}=${d.default.data}${e.dynamicRef?l._`, ${d.default.dynamicAnchors}={}`:l.nil}}={}`}(i)}`,r.$async,()=>e.code(v(n,i)).code(o))}function v(e,t){const n="object"==typeof e&&e[t.schemaId];return n&&(t.code.source||t.code.process)?l._`/*# sourceURL=${n} */`:l.nil}function g({schema:e,self:t}){if("boolean"==typeof e)return!e;for(const n in e)if(t.RULES.all[n])return!0;return!1}function y(e){return"boolean"!=typeof e.schema}function _(e){(0,f.checkUnknownRules)(e),function(e){const{schema:t,errSchemaPath:n,opts:r,self:i}=e;t.$ref&&r.ignoreKeywordsWithRef&&(0,f.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}(e)}function b(e,t){if(e.opts.jtd)return w(e,[],!1,t);const n=(0,i.getSchemaTypes)(e.schema);w(e,n,!(0,i.coerceAndCheckDataType)(e,n),t)}function x({gen:e,schemaEnv:t,schema:n,errSchemaPath:r,opts:i}){const o=n.$comment;if(!0===i.$comment)e.code(l._`${d.default.self}.logger.log(${o})`);else if("function"==typeof i.$comment){const n=l.str`${r}/$comment`,i=e.scopeValue("root",{ref:t.root});e.code(l._`${d.default.self}.opts.$comment(${o}, ${n}, ${i}.schema)`)}}function w(e,t,n,r){const{gen:i,schema:a,data:c,allErrors:u,opts:p,self:m}=e,{RULES:h}=m;function v(f){(0,o.shouldUseGroup)(a,f)&&(f.type?(i.if((0,s.checkDataType)(f.type,c,p.strictNumbers)),S(e,f),1===t.length&&t[0]===f.type&&n&&(i.else(),(0,s.reportTypeError)(e)),i.endIf()):S(e,f),u||i.if(l._`${d.default.errors} === ${r||0}`))}!a.$ref||!p.ignoreKeywordsWithRef&&(0,f.schemaHasRulesButRef)(a,h)?(p.jtd||function(e,t){!e.schemaEnv.meta&&e.opts.strictTypes&&(function(e,t){t.length&&(e.dataTypes.length?(t.forEach(t=>{O(e.dataTypes,t)||k(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)}),function(e,t){const n=[];for(const r of e.dataTypes)O(t,r)?n.push(r):t.includes("integer")&&"number"===r&&n.push("integer");e.dataTypes=n}(e,t)):e.dataTypes=t)}(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&k(e,"use allowUnionTypes to allow union type keyword")}(e,t),function(e,t){const n=e.self.RULES.all;for(const r in n){const i=n[r];if("object"==typeof i&&(0,o.shouldUseRule)(e.schema,i)){const{type:n}=i.definition;n.length&&!n.some(e=>{return r=e,(n=t).includes(r)||"number"===r&&n.includes("integer");var n,r})&&k(e,`missing type "${n.join(",")}" for keyword "${r}"`)}}}(e,e.dataTypes))}(e,t),i.block(()=>{for(const e of h.rules)v(e);v(h.post)})):i.block(()=>P(e,"$ref",h.all.$ref.definition))}function S(e,t){const{gen:n,schema:r,opts:{useDefaults:i}}=e;i&&(0,a.assignDefaults)(e,t.type),n.block(()=>{for(const n of t.rules)(0,o.shouldUseRule)(r,n)&&P(e,n.keyword,n.definition,t.type)})}function O(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function k(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,f.checkStrictMode)(e,t,e.opts.strictTypes)}t.validateFunctionCode=function(e){y(e)&&(_(e),g(e))?function(e){const{schema:t,opts:n,gen:r}=e;h(e,()=>{n.$comment&&t.$comment&&x(e),function(e){const{schema:t,opts:n}=e;void 0!==t.default&&n.useDefaults&&n.strictSchema&&(0,f.checkStrictMode)(e,"default is ignored in the schema root")}(e),r.let(d.default.vErrors,null),r.let(d.default.errors,0),n.unevaluated&&function(e){const{gen:t,validateName:n}=e;e.evaluated=t.const("evaluated",l._`${n}.evaluated`),t.if(l._`${e.evaluated}.dynamicProps`,()=>t.assign(l._`${e.evaluated}.props`,l._`undefined`)),t.if(l._`${e.evaluated}.dynamicItems`,()=>t.assign(l._`${e.evaluated}.items`,l._`undefined`))}(e),b(e),function(e){const{gen:t,schemaEnv:n,validateName:r,ValidationError:i,opts:o}=e;n.$async?t.if(l._`${d.default.errors} === 0`,()=>t.return(d.default.data),()=>t.throw(l._`new ${i}(${d.default.vErrors})`)):(t.assign(l._`${r}.errors`,d.default.vErrors),o.unevaluated&&function({gen:e,evaluated:t,props:n,items:r}){n instanceof l.Name&&e.assign(l._`${t}.props`,n),r instanceof l.Name&&e.assign(l._`${t}.items`,r)}(e),t.return(l._`${d.default.errors} === 0`))}(e)})}(e):h(e,()=>(0,r.topBoolOrEmptySchema)(e))};class ${constructor(e,t,n){if((0,c.validateKeywordUsage)(e,t,n),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=n,this.data=e.data,this.schema=e.schema[n],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,f.schemaRefOrVal)(e,this.schema,n,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",C(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,c.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",d.default.errors))}result(e,t,n){this.failResult((0,l.not)(e),t,n)}failResult(e,t,n){this.gen.if(e),n?n():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,l.not)(e),void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail(l._`${t} !== undefined && (${(0,l.or)(this.invalid$data(),e)})`)}error(e,t,n){if(t)return this.setParams(t),this._error(e,n),void this.setParams({});this._error(e,n)}_error(e,t){(e?m.reportExtraError:m.reportError)(this,this.def.error,t)}$dataError(){(0,m.reportError)(this,this.def.$dataError||m.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,m.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,n=l.nil){this.gen.block(()=>{this.check$data(e,n),t()})}check$data(e=l.nil,t=l.nil){if(!this.$data)return;const{gen:n,schemaCode:r,schemaType:i,def:o}=this;n.if((0,l.or)(l._`${r} === undefined`,t)),e!==l.nil&&n.assign(e,!0),(i.length||o.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==l.nil&&n.assign(e,!1)),n.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:n,def:r,it:i}=this;return(0,l.or)(function(){if(n.length){if(!(t instanceof l.Name))throw new Error("ajv implementation error");const e=Array.isArray(n)?n:[n];return l._`${(0,s.checkDataTypes)(e,t,i.opts.strictNumbers,s.DataType.Wrong)}`}return l.nil}(),function(){if(r.validateSchema){const n=e.scopeValue("validate$data",{ref:r.validateSchema});return l._`!${n}(${t})`}return l.nil}())}subschema(e,t){const n=(0,u.getSubschema)(this.it,e);(0,u.extendSubschemaData)(n,this.it,e),(0,u.extendSubschemaMode)(n,e);const i={...this.it,...n,items:void 0,props:void 0};return function(e,t){y(e)&&(_(e),g(e))?function(e,t){const{schema:n,gen:r,opts:i}=e;i.$comment&&n.$comment&&x(e),function(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,p.resolveUrl)(e.opts.uriResolver,e.baseId,t))}(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const o=r.const("_errs",d.default.errors);b(e,o),r.var(t,l._`${o} === ${d.default.errors}`)}(e,t):(0,r.boolOrEmptySchema)(e,t)}(i,t),i}mergeEvaluated(e,t){const{it:n,gen:r}=this;n.opts.unevaluated&&(!0!==n.props&&void 0!==e.props&&(n.props=f.mergeEvaluated.props(r,e.props,n.props,t)),!0!==n.items&&void 0!==e.items&&(n.items=f.mergeEvaluated.items(r,e.items,n.items,t)))}mergeValidEvaluated(e,t){const{it:n,gen:r}=this;if(n.opts.unevaluated&&(!0!==n.props||!0!==n.items))return r.if(t,()=>this.mergeEvaluated(e,l.Name)),!0}}function P(e,t,n,r){const i=new $(e,n,t);"code"in n?n.code(i,r):i.$data&&n.validate?(0,c.funcKeywordCode)(i,n):"macro"in n?(0,c.macroKeywordCode)(i,n):(n.compile||n.validate)&&(0,c.funcKeywordCode)(i,n)}t.KeywordCxt=$;const E=/^\/(?:[^~]|~0|~1)*$/,T=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function C(e,{dataLevel:t,dataNames:n,dataPathArr:r}){let i,o;if(""===e)return d.default.rootData;if("/"===e[0]){if(!E.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=d.default.rootData}else{const s=T.exec(e);if(!s)throw new Error(`Invalid JSON-pointer: ${e}`);const a=+s[1];if(i=s[2],"#"===i){if(a>=t)throw new Error(c("property/index",a));return r[t-a]}if(a>t)throw new Error(c("data",a));if(o=n[t-a],!i)return o}let s=o;const a=i.split("/");for(const e of a)e&&(o=l._`${o}${(0,l.getProperty)((0,f.unescapeJsonPointer)(e))}`,s=l._`${s} && ${o}`);return s;function c(e,n){return`Cannot access ${e} ${n} levels up, current level is ${t}`}}t.getData=C},93858:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parsePromiseDef=void 0;const r=n(73524);t.parsePromiseDef=function(e,t){return(0,r.parseDef)(e.type._def,t)}},93859:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.RemoteScriptRepository=void 0;const i=n(11633);t.RemoteScriptRepository=class{constructor(e){this.deps=e,this.scripts=[],this.directories=[],this.loaded=!1,this.root={_id:i.ScriptId.rootId,common:{}}}init(){this.deps.scriptRemote.registerScriptChangedEventListener(this)}ensureLoaded(){return r(this,void 0,void 0,function*(){if(!this.loaded){if(!this.loadPromise){const e=this.updateFromServer();this.loadPromise=e.then(()=>{this.loadPromise=void 0},e=>{throw this.loadPromise=void 0,e})}return this.loadPromise}})}updateFromServer(){return r(this,void 0,void 0,function*(){const[e,t]=yield Promise.all([this.deps.directories.downloadAllDirectories(),this.deps.scriptRemote.downloadAllScripts()]);this.directories=e.filter(e=>`${e._id}`!==i.ScriptId.rootId).map(e=>({_id:e._id,common:e.common})),this.scripts=t,this.loaded=!0})}getAllScripts(){return this.scripts}getAllDirectories(){return this.directories}getRootDirectory(){return this.root}getScriptFromId(e){const t=`${e}`.toLowerCase();return this.scripts.find(e=>`${e._id}`.toLowerCase()===t)}updateSingleScriptOrDirectoryFromServer(e){return r(this,void 0,void 0,function*(){const t=`${e}`.toLowerCase(),n=yield this.deps.scriptRemote.downloadScriptWithId(e),r=n?"channel"===(o=n).type?"directory":void 0===o.type||"script"===o.type?"script":"other":void 0;var o;if(n&&"script"===r)return this.scripts=this.scripts.filter(e=>`${e._id}`.toLowerCase()!==t),void this.scripts.push(Object.assign(Object.assign({},n),{_id:new i.ScriptId(`${e}`)}));if(n&&"directory"===r)return this.directories=this.directories.filter(e=>`${e._id}`.toLowerCase()!==t),void(`${e}`!==i.ScriptId.rootId&&this.directories.push({_id:new i.ScriptId(`${e}`),common:n.common}));if(!n){const n=yield this.deps.directories.downloadDirectory(e);if(n)return this.directories=this.directories.filter(e=>`${e._id}`.toLowerCase()!==t),void(`${e}`!==i.ScriptId.rootId&&this.directories.push({_id:new i.ScriptId(`${e}`),common:n.common}))}this.scripts=this.scripts.filter(e=>`${e._id}`.toLowerCase()!==t),this.directories=this.directories.filter(e=>`${e._id}`.toLowerCase()!==t)})}onScriptChanged(e){e&&i.ScriptId.isDirectoryId(e)&&this.updateSingleScriptOrDirectoryFromServer(new i.ScriptId(e)).catch(()=>{})}onNoScriptAvailable(){this.scripts=[],this.directories=[],this.loaded=!1}isLoaded(){return this.loaded}}},94269:function(e,t,n){"use strict";var r,i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),s=0;s<n.length;s++)"default"!==n[s]&&i(t,e,n[s]);return o(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.inject=void 0;const a=s(n(19466)),c=(0,n(8701).injectBase)(a.INJECT_TAG);t.inject=c},94459:e=>{"use strict";e.exports=Number.isNaN||function(e){return e!=e}},94931:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.InversifyCoreErrorKind=void 0,function(e){e[e.injectionDecoratorConflict=0]="injectionDecoratorConflict",e[e.missingInjectionDecorator=1]="missingInjectionDecorator",e[e.planning=2]="planning",e[e.unknown=3]="unknown"}(n||(t.InversifyCoreErrorKind=n={}))},95074:(e,t,n)=>{var r=n(92120)("socket.io-parser"),i=n(5971),o=n(2225),s=n(64634),a=n(28247);function c(){}t.protocol=4,t.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],t.CONNECT=0,t.DISCONNECT=1,t.EVENT=2,t.ACK=3,t.ERROR=4,t.BINARY_EVENT=5,t.BINARY_ACK=6,t.Encoder=c,t.Decoder=d;var u=t.ERROR+'"encode error"';function l(e){var n=""+e.type;if(t.BINARY_EVENT!==e.type&&t.BINARY_ACK!==e.type||(n+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(n+=e.nsp+","),null!=e.id&&(n+=e.id),null!=e.data){var i=function(e){try{return JSON.stringify(e)}catch(e){return!1}}(e.data);if(!1===i)return u;n+=i}return r("encoded %j as %s",e,n),n}function d(){this.reconstructor=null}function p(e){this.reconPack=e,this.buffers=[]}c.prototype.encode=function(e,n){r("encoding packet %j",e),t.BINARY_EVENT===e.type||t.BINARY_ACK===e.type?function(e,t){o.removeBlobs(e,function(e){var n=o.deconstructPacket(e),r=l(n.packet),i=n.buffers;i.unshift(r),t(i)})}(e,n):n([l(e)])},i(d.prototype),d.prototype.add=function(e){var n;if("string"==typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=function(e){var n,i=0,o={type:Number(e.charAt(0))};if(null==t.types[o.type])return n="unknown packet type "+o.type,{type:t.ERROR,data:"parser error: "+n};if(t.BINARY_EVENT===o.type||t.BINARY_ACK===o.type){for(var a=i+1;"-"!==e.charAt(++i)&&i!=e.length;);var c=e.substring(a,i);if(c!=Number(c)||"-"!==e.charAt(i))throw new Error("Illegal attachments");o.attachments=Number(c)}if("/"===e.charAt(i+1)){for(a=i+1;++i&&","!==(l=e.charAt(i))&&i!==e.length;);o.nsp=e.substring(a,i)}else o.nsp="/";var u=e.charAt(i+1);if(""!==u&&Number(u)==u){for(a=i+1;++i;){var l;if(null==(l=e.charAt(i))||Number(l)!=l){--i;break}if(i===e.length)break}o.id=Number(e.substring(a,i+1))}if(e.charAt(++i)){var d=function(e){try{return JSON.parse(e)}catch(e){return!1}}(e.substr(i));if(!function(e,t){switch(e){case 0:return"object"==typeof t;case 1:return void 0===t;case 4:return"string"==typeof t||"object"==typeof t;case 2:case 5:return s(t)&&("string"==typeof t[0]||"number"==typeof t[0]);case 3:case 6:return s(t)}}(o.type,d))throw new Error("invalid payload");o.data=d}return r("decoded %s as %j",e,o),o}(e),t.BINARY_EVENT===n.type||t.BINARY_ACK===n.type?(this.reconstructor=new p(n),0===this.reconstructor.reconPack.attachments&&this.emit("decoded",n)):this.emit("decoded",n)}else{if(!a(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");(n=this.reconstructor.takeBinaryData(e))&&(this.reconstructor=null,this.emit("decoded",n))}},d.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},p.prototype.takeBinaryData=function(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){var t=o.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null},p.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},95322:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveDirectoryTarget=function(e){const t=(0,o.toDirectoryId)(e.directoryId);if(!t.ok)return t;const n=t.data,s=void 0!==e.name;let a,c;if(s){const t=(0,o.validateName)(e.name,"name");if(!t.ok)return t;a=n,c=t.data}else{if(n===r.ScriptId.rootId)return(0,i.failure)("invalid_input","'directoryId' must be a directory below 'script.js' when 'name' is omitted.","Pass the parent directory id as 'directoryId' and the new name as 'name'.");const e=r.ScriptId.parentIdOf(n);if(void 0===e)return(0,i.failure)("invalid_input",`'${n}' has no parent directory.`);a=e,c=r.ScriptId.lastSegmentOf(n);const t=(0,o.validateName)(c,"name");if(!t.ok)return t}if(!r.ScriptId.isDirectoryId(a))return(0,i.failure)("invalid_input",`'${a}' is not a valid parent directory id.`,"Use 'script.js' for the root directory or a full id like 'script.js.common'.");if(c.includes("."))return(0,i.failure)("invalid_input","'name' must not contain dots, because dots separate ioBroker ids.","Use a plain directory name like 'MyFolder'.");const u=`${a}.${c}`;return r.ScriptId.isDirectoryId(u)?(0,i.success)({parentId:a,targetId:u,name:c,requireKnownParent:s}):(0,i.failure)("invalid_input",`'${u}' is not a valid directory id.`)};const r=n(11633),i=n(98297),o=n(75061)},95341:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.$ZodSet=t.$ZodMap=t.$ZodRecord=t.$ZodTuple=t.$ZodIntersection=t.$ZodDiscriminatedUnion=t.$ZodUnion=t.$ZodObject=t.$ZodArray=t.$ZodDate=t.$ZodVoid=t.$ZodNever=t.$ZodUnknown=t.$ZodAny=t.$ZodNull=t.$ZodUndefined=t.$ZodSymbol=t.$ZodBigIntFormat=t.$ZodBigInt=t.$ZodBoolean=t.$ZodNumberFormat=t.$ZodNumber=t.$ZodCustomStringFormat=t.$ZodJWT=t.$ZodE164=t.$ZodBase64URL=t.$ZodBase64=t.$ZodCIDRv6=t.$ZodCIDRv4=t.$ZodIPv6=t.$ZodIPv4=t.$ZodISODuration=t.$ZodISOTime=t.$ZodISODate=t.$ZodISODateTime=t.$ZodKSUID=t.$ZodXID=t.$ZodULID=t.$ZodCUID2=t.$ZodCUID=t.$ZodNanoID=t.$ZodEmoji=t.$ZodURL=t.$ZodEmail=t.$ZodUUID=t.$ZodGUID=t.$ZodStringFormat=t.$ZodString=t.clone=t.$ZodType=void 0,t.$ZodCustom=t.$ZodLazy=t.$ZodPromise=t.$ZodTemplateLiteral=t.$ZodReadonly=t.$ZodPipe=t.$ZodNaN=t.$ZodCatch=t.$ZodSuccess=t.$ZodNonOptional=t.$ZodPrefault=t.$ZodDefault=t.$ZodNullable=t.$ZodOptional=t.$ZodTransform=t.$ZodFile=t.$ZodLiteral=t.$ZodEnum=void 0,t.isValidBase64=m,t.isValidBase64URL=h,t.isValidJWT=v;const s=o(n(32564)),a=o(n(98706)),c=n(87319),u=n(64084),l=o(n(91988)),d=o(n(90523)),p=n(76020);t.$ZodType=a.$constructor("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=p.version;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const t of r)for(const n of t._zod.onattach)n(e);if(0===r.length)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const t=(e,t,n)=>{let r,i=d.aborted(e);for(const o of t){if(o._zod.def.when){if(!o._zod.def.when(e))continue}else if(i)continue;const t=e.issues.length,s=o._zod.check(e);if(s instanceof Promise&&!1===n?.async)throw new a.$ZodAsyncError;if(r||s instanceof Promise)r=(r??Promise.resolve()).then(async()=>{await s,e.issues.length!==t&&(i||(i=d.aborted(e,t)))});else{if(e.issues.length===t)continue;i||(i=d.aborted(e,t))}}return r?r.then(()=>e):e};e._zod.run=(n,i)=>{const o=e._zod.parse(n,i);if(o instanceof Promise){if(!1===i.async)throw new a.$ZodAsyncError;return o.then(e=>t(e,r,i))}return t(o,r,i)}}e["~standard"]={validate:t=>{try{const n=(0,u.safeParse)(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch(n){return(0,u.safeParseAsync)(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:"zod",version:1}});var f=n(90523);function m(e){if(""===e)return!0;if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}function h(e){if(!l.base64url.test(e))return!1;const t=e.replace(/[-_]/g,e=>"-"===e?"+":"/");return m(t.padEnd(4*Math.ceil(t.length/4),"="))}function v(e,t=null){try{const n=e.split(".");if(3!==n.length)return!1;const[r]=n;if(!r)return!1;const i=JSON.parse(atob(r));return!("typ"in i&&"JWT"!==i?.typ||!i.alg||t&&(!("alg"in i)||i.alg!==t))}catch{return!1}}function g(e,t,n){e.issues.length&&t.issues.push(...d.prefixIssues(n,e.issues)),t.value[n]=e.value}function y(e,t,n){e.issues.length&&t.issues.push(...d.prefixIssues(n,e.issues)),t.value[n]=e.value}function _(e,t,n,r){e.issues.length?void 0===r[n]?t.value[n]=n in r?void 0:e.value:t.issues.push(...d.prefixIssues(n,e.issues)):void 0===e.value?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function b(e,t,n,r){for(const n of e)if(0===n.issues.length)return t.value=n.value,t;return t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>d.finalizeIssue(e,r,a.config())))}),t}function x(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e===+t)return{valid:!0,data:e};if(d.isPlainObject(e)&&d.isPlainObject(t)){const n=Object.keys(t),r=Object.keys(e).filter(e=>-1!==n.indexOf(e)),i={...e,...t};for(const n of r){const r=x(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const i=x(e[r],t[r]);if(!i.valid)return{valid:!1,mergeErrorPath:[r,...i.mergeErrorPath]};n.push(i.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function w(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),d.aborted(e))return e;const r=x(t.value,n.value);if(!r.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return e.value=r.data,e}function S(e,t,n){e.issues.length&&t.issues.push(...d.prefixIssues(n,e.issues)),t.value[n]=e.value}function O(e,t,n,r,i,o,s){e.issues.length&&(d.propertyKeyTypes.has(typeof r)?n.issues.push(...d.prefixIssues(r,e.issues)):n.issues.push({origin:"map",code:"invalid_key",input:i,inst:o,issues:e.issues.map(e=>d.finalizeIssue(e,s,a.config()))})),t.issues.length&&(d.propertyKeyTypes.has(typeof r)?n.issues.push(...d.prefixIssues(r,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:i,inst:o,key:r,issues:t.issues.map(e=>d.finalizeIssue(e,s,a.config()))})),n.value.set(e.value,t.value)}function k(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}function $(e,t){return void 0===e.value&&(e.value=t.defaultValue),e}function P(e,t){return e.issues.length||void 0!==e.value||e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}function E(e,t,n){return d.aborted(e)?e:t.out._zod.run({value:e.value,issues:e.issues},n)}function T(e){return e.value=Object.freeze(e.value),e}function C(e,t,n,r){if(!e){const e={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(d.issue(e))}}Object.defineProperty(t,"clone",{enumerable:!0,get:function(){return f.clone}}),t.$ZodString=a.$constructor("$ZodString",(e,n)=>{t.$ZodType.init(e,n),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??l.string(e._zod.bag),e._zod.parse=(t,r)=>{if(n.coerce)try{t.value=String(t.value)}catch(r){}return"string"==typeof t.value||t.issues.push({expected:"string",code:"invalid_type",input:t.value,inst:e}),t}}),t.$ZodStringFormat=a.$constructor("$ZodStringFormat",(e,n)=>{s.$ZodCheckStringFormat.init(e,n),t.$ZodString.init(e,n)}),t.$ZodGUID=a.$constructor("$ZodGUID",(e,n)=>{n.pattern??(n.pattern=l.guid),t.$ZodStringFormat.init(e,n)}),t.$ZodUUID=a.$constructor("$ZodUUID",(e,n)=>{if(n.version){const e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[n.version];if(void 0===e)throw new Error(`Invalid UUID version: "${n.version}"`);n.pattern??(n.pattern=l.uuid(e))}else n.pattern??(n.pattern=l.uuid());t.$ZodStringFormat.init(e,n)}),t.$ZodEmail=a.$constructor("$ZodEmail",(e,n)=>{n.pattern??(n.pattern=l.email),t.$ZodStringFormat.init(e,n)}),t.$ZodURL=a.$constructor("$ZodURL",(e,n)=>{t.$ZodStringFormat.init(e,n),e._zod.check=t=>{try{const r=t.value,i=new URL(r),o=i.href;return n.hostname&&(n.hostname.lastIndex=0,n.hostname.test(i.hostname)||t.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:l.hostname.source,input:t.value,inst:e,continue:!n.abort})),n.protocol&&(n.protocol.lastIndex=0,n.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||t.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:n.protocol.source,input:t.value,inst:e,continue:!n.abort})),void(!r.endsWith("/")&&o.endsWith("/")?t.value=o.slice(0,-1):t.value=o)}catch(r){t.issues.push({code:"invalid_format",format:"url",input:t.value,inst:e,continue:!n.abort})}}}),t.$ZodEmoji=a.$constructor("$ZodEmoji",(e,n)=>{n.pattern??(n.pattern=l.emoji()),t.$ZodStringFormat.init(e,n)}),t.$ZodNanoID=a.$constructor("$ZodNanoID",(e,n)=>{n.pattern??(n.pattern=l.nanoid),t.$ZodStringFormat.init(e,n)}),t.$ZodCUID=a.$constructor("$ZodCUID",(e,n)=>{n.pattern??(n.pattern=l.cuid),t.$ZodStringFormat.init(e,n)}),t.$ZodCUID2=a.$constructor("$ZodCUID2",(e,n)=>{n.pattern??(n.pattern=l.cuid2),t.$ZodStringFormat.init(e,n)}),t.$ZodULID=a.$constructor("$ZodULID",(e,n)=>{n.pattern??(n.pattern=l.ulid),t.$ZodStringFormat.init(e,n)}),t.$ZodXID=a.$constructor("$ZodXID",(e,n)=>{n.pattern??(n.pattern=l.xid),t.$ZodStringFormat.init(e,n)}),t.$ZodKSUID=a.$constructor("$ZodKSUID",(e,n)=>{n.pattern??(n.pattern=l.ksuid),t.$ZodStringFormat.init(e,n)}),t.$ZodISODateTime=a.$constructor("$ZodISODateTime",(e,n)=>{n.pattern??(n.pattern=l.datetime(n)),t.$ZodStringFormat.init(e,n)}),t.$ZodISODate=a.$constructor("$ZodISODate",(e,n)=>{n.pattern??(n.pattern=l.date),t.$ZodStringFormat.init(e,n)}),t.$ZodISOTime=a.$constructor("$ZodISOTime",(e,n)=>{n.pattern??(n.pattern=l.time(n)),t.$ZodStringFormat.init(e,n)}),t.$ZodISODuration=a.$constructor("$ZodISODuration",(e,n)=>{n.pattern??(n.pattern=l.duration),t.$ZodStringFormat.init(e,n)}),t.$ZodIPv4=a.$constructor("$ZodIPv4",(e,n)=>{n.pattern??(n.pattern=l.ipv4),t.$ZodStringFormat.init(e,n),e._zod.onattach.push(e=>{e._zod.bag.format="ipv4"})}),t.$ZodIPv6=a.$constructor("$ZodIPv6",(e,n)=>{n.pattern??(n.pattern=l.ipv6),t.$ZodStringFormat.init(e,n),e._zod.onattach.push(e=>{e._zod.bag.format="ipv6"}),e._zod.check=t=>{try{new URL(`http://[${t.value}]`)}catch{t.issues.push({code:"invalid_format",format:"ipv6",input:t.value,inst:e,continue:!n.abort})}}}),t.$ZodCIDRv4=a.$constructor("$ZodCIDRv4",(e,n)=>{n.pattern??(n.pattern=l.cidrv4),t.$ZodStringFormat.init(e,n)}),t.$ZodCIDRv6=a.$constructor("$ZodCIDRv6",(e,n)=>{n.pattern??(n.pattern=l.cidrv6),t.$ZodStringFormat.init(e,n),e._zod.check=t=>{const[r,i]=t.value.split("/");try{if(!i)throw new Error;const e=Number(i);if(`${e}`!==i)throw new Error;if(e<0||e>128)throw new Error;new URL(`http://[${r}]`)}catch{t.issues.push({code:"invalid_format",format:"cidrv6",input:t.value,inst:e,continue:!n.abort})}}}),t.$ZodBase64=a.$constructor("$ZodBase64",(e,n)=>{n.pattern??(n.pattern=l.base64),t.$ZodStringFormat.init(e,n),e._zod.onattach.push(e=>{e._zod.bag.contentEncoding="base64"}),e._zod.check=t=>{m(t.value)||t.issues.push({code:"invalid_format",format:"base64",input:t.value,inst:e,continue:!n.abort})}}),t.$ZodBase64URL=a.$constructor("$ZodBase64URL",(e,n)=>{n.pattern??(n.pattern=l.base64url),t.$ZodStringFormat.init(e,n),e._zod.onattach.push(e=>{e._zod.bag.contentEncoding="base64url"}),e._zod.check=t=>{h(t.value)||t.issues.push({code:"invalid_format",format:"base64url",input:t.value,inst:e,continue:!n.abort})}}),t.$ZodE164=a.$constructor("$ZodE164",(e,n)=>{n.pattern??(n.pattern=l.e164),t.$ZodStringFormat.init(e,n)}),t.$ZodJWT=a.$constructor("$ZodJWT",(e,n)=>{t.$ZodStringFormat.init(e,n),e._zod.check=t=>{v(t.value,n.alg)||t.issues.push({code:"invalid_format",format:"jwt",input:t.value,inst:e,continue:!n.abort})}}),t.$ZodCustomStringFormat=a.$constructor("$ZodCustomStringFormat",(e,n)=>{t.$ZodStringFormat.init(e,n),e._zod.check=t=>{n.fn(t.value)||t.issues.push({code:"invalid_format",format:n.format,input:t.value,inst:e,continue:!n.abort})}}),t.$ZodNumber=a.$constructor("$ZodNumber",(e,n)=>{t.$ZodType.init(e,n),e._zod.pattern=e._zod.bag.pattern??l.number,e._zod.parse=(t,r)=>{if(n.coerce)try{t.value=Number(t.value)}catch(e){}const i=t.value;if("number"==typeof i&&!Number.isNaN(i)&&Number.isFinite(i))return t;const o="number"==typeof i?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return t.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...o?{received:o}:{}}),t}}),t.$ZodNumberFormat=a.$constructor("$ZodNumber",(e,n)=>{s.$ZodCheckNumberFormat.init(e,n),t.$ZodNumber.init(e,n)}),t.$ZodBoolean=a.$constructor("$ZodBoolean",(e,n)=>{t.$ZodType.init(e,n),e._zod.pattern=l.boolean,e._zod.parse=(t,r)=>{if(n.coerce)try{t.value=Boolean(t.value)}catch(e){}const i=t.value;return"boolean"==typeof i||t.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),t}}),t.$ZodBigInt=a.$constructor("$ZodBigInt",(e,n)=>{t.$ZodType.init(e,n),e._zod.pattern=l.bigint,e._zod.parse=(t,r)=>{if(n.coerce)try{t.value=BigInt(t.value)}catch(e){}return"bigint"==typeof t.value||t.issues.push({expected:"bigint",code:"invalid_type",input:t.value,inst:e}),t}}),t.$ZodBigIntFormat=a.$constructor("$ZodBigInt",(e,n)=>{s.$ZodCheckBigIntFormat.init(e,n),t.$ZodBigInt.init(e,n)}),t.$ZodSymbol=a.$constructor("$ZodSymbol",(e,n)=>{t.$ZodType.init(e,n),e._zod.parse=(t,n)=>{const r=t.value;return"symbol"==typeof r||t.issues.push({expected:"symbol",code:"invalid_type",input:r,inst:e}),t}}),t.$ZodUndefined=a.$constructor("$ZodUndefined",(e,n)=>{t.$ZodType.init(e,n),e._zod.pattern=l.undefined,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(t,n)=>{const r=t.value;return void 0===r||t.issues.push({expected:"undefined",code:"invalid_type",input:r,inst:e}),t}}),t.$ZodNull=a.$constructor("$ZodNull",(e,n)=>{t.$ZodType.init(e,n),e._zod.pattern=l.null,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{const r=t.value;return null===r||t.issues.push({expected:"null",code:"invalid_type",input:r,inst:e}),t}}),t.$ZodAny=a.$constructor("$ZodAny",(e,n)=>{t.$ZodType.init(e,n),e._zod.parse=e=>e}),t.$ZodUnknown=a.$constructor("$ZodUnknown",(e,n)=>{t.$ZodType.init(e,n),e._zod.parse=e=>e}),t.$ZodNever=a.$constructor("$ZodNever",(e,n)=>{t.$ZodType.init(e,n),e._zod.parse=(t,n)=>(t.issues.push({expected:"never",code:"invalid_type",input:t.value,inst:e}),t)}),t.$ZodVoid=a.$constructor("$ZodVoid",(e,n)=>{t.$ZodType.init(e,n),e._zod.parse=(t,n)=>{const r=t.value;return void 0===r||t.issues.push({expected:"void",code:"invalid_type",input:r,inst:e}),t}}),t.$ZodDate=a.$constructor("$ZodDate",(e,n)=>{t.$ZodType.init(e,n),e._zod.parse=(t,r)=>{if(n.coerce)try{t.value=new Date(t.value)}catch(e){}const i=t.value,o=i instanceof Date;return o&&!Number.isNaN(i.getTime())||t.issues.push({expected:"date",code:"invalid_type",input:i,...o?{received:"Invalid Date"}:{},inst:e}),t}}),t.$ZodArray=a.$constructor("$ZodArray",(e,n)=>{t.$ZodType.init(e,n),e._zod.parse=(t,r)=>{const i=t.value;if(!Array.isArray(i))return t.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),t;t.value=Array(i.length);const o=[];for(let e=0;e<i.length;e++){const s=i[e],a=n.element._zod.run({value:s,issues:[]},r);a instanceof Promise?o.push(a.then(n=>g(n,t,e))):g(a,t,e)}return o.length?Promise.all(o).then(()=>t):t}}),t.$ZodObject=a.$constructor("$ZodObject",(e,n)=>{t.$ZodType.init(e,n);const r=d.cached(()=>{const e=Object.keys(n.shape);for(const r of e)if(!(n.shape[r]instanceof t.$ZodType))throw new Error(`Invalid element at key "${r}": expected a Zod schema`);const r=d.optionalKeys(n.shape);return{shape:n.shape,keys:e,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(r)}});let i;d.defineLazy(e._zod,"propValues",()=>{const e=n.shape,t={};for(const n in e){const r=e[n]._zod;if(r.values){t[n]??(t[n]=new Set);for(const e of r.values)t[n].add(e)}}return t});const o=d.isObject,s=!a.globalConfig.jitless,u=d.allowsEval,l=s&&u.value,p=n.catchall;let f;e._zod.parse=(t,a)=>{f??(f=r.value);const u=t.value;if(!o(u))return t.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),t;const m=[];if(s&&l&&!1===a?.async&&!0!==a.jitless)i||(i=(e=>{const t=new c.Doc(["shape","payload","ctx"]),n=r.value,i=e=>{const t=d.esc(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write("const input = payload.value;");const o=Object.create(null);let s=0;for(const e of n.keys)o[e]="key_"+s++;t.write("const newResult = {}");for(const e of n.keys)if(n.optionalKeys.has(e)){const n=o[e];t.write(`const ${n} = ${i(e)};`);const r=d.esc(e);t.write(`\n if (${n}.issues.length) {\n if (input[${r}] === undefined) {\n if (${r} in input) {\n newResult[${r}] = undefined;\n }\n } else {\n payload.issues = payload.issues.concat(\n ${n}.issues.map((iss) => ({\n ...iss,\n path: iss.path ? [${r}, ...iss.path] : [${r}],\n }))\n );\n }\n } else if (${n}.value === undefined) {\n if (${r} in input) newResult[${r}] = undefined;\n } else {\n newResult[${r}] = ${n}.value;\n }\n `)}else{const n=o[e];t.write(`const ${n} = ${i(e)};`),t.write(`\n if (${n}.issues.length) payload.issues = payload.issues.concat(${n}.issues.map(iss => ({\n ...iss,\n path: iss.path ? [${d.esc(e)}, ...iss.path] : [${d.esc(e)}]\n })));`),t.write(`newResult[${d.esc(e)}] = ${n}.value`)}t.write("payload.value = newResult;"),t.write("return payload;");const a=t.compile();return(t,n)=>a(e,t,n)})(n.shape)),t=i(t,a);else{t.value={};const e=f.shape;for(const n of f.keys){const r=e[n],i=r._zod.run({value:u[n],issues:[]},a),o="optional"===r._zod.optin&&"optional"===r._zod.optout;i instanceof Promise?m.push(i.then(e=>o?_(e,t,n,u):y(e,t,n))):o?_(i,t,n,u):y(i,t,n)}}if(!p)return m.length?Promise.all(m).then(()=>t):t;const h=[],v=f.keySet,g=p._zod,b=g.def.type;for(const e of Object.keys(u)){if(v.has(e))continue;if("never"===b){h.push(e);continue}const n=g.run({value:u[e],issues:[]},a);n instanceof Promise?m.push(n.then(n=>y(n,t,e))):y(n,t,e)}return h.length&&t.issues.push({code:"unrecognized_keys",keys:h,input:u,inst:e}),m.length?Promise.all(m).then(()=>t):t}}),t.$ZodUnion=a.$constructor("$ZodUnion",(e,n)=>{t.$ZodType.init(e,n),d.defineLazy(e._zod,"optin",()=>n.options.some(e=>"optional"===e._zod.optin)?"optional":void 0),d.defineLazy(e._zod,"optout",()=>n.options.some(e=>"optional"===e._zod.optout)?"optional":void 0),d.defineLazy(e._zod,"values",()=>{if(n.options.every(e=>e._zod.values))return new Set(n.options.flatMap(e=>Array.from(e._zod.values)))}),d.defineLazy(e._zod,"pattern",()=>{if(n.options.every(e=>e._zod.pattern)){const e=n.options.map(e=>e._zod.pattern);return new RegExp(`^(${e.map(e=>d.cleanRegex(e.source)).join("|")})$`)}}),e._zod.parse=(t,r)=>{let i=!1;const o=[];for(const e of n.options){const n=e._zod.run({value:t.value,issues:[]},r);if(n instanceof Promise)o.push(n),i=!0;else{if(0===n.issues.length)return n;o.push(n)}}return i?Promise.all(o).then(n=>b(n,t,e,r)):b(o,t,e,r)}}),t.$ZodDiscriminatedUnion=a.$constructor("$ZodDiscriminatedUnion",(e,n)=>{t.$ZodUnion.init(e,n);const r=e._zod.parse;d.defineLazy(e._zod,"propValues",()=>{const e={};for(const t of n.options){const r=t._zod.propValues;if(!r||0===Object.keys(r).length)throw new Error(`Invalid discriminated union option at index "${n.options.indexOf(t)}"`);for(const[t,n]of Object.entries(r)){e[t]||(e[t]=new Set);for(const r of n)e[t].add(r)}}return e});const i=d.cached(()=>{const e=n.options,t=new Map;for(const r of e){const e=r._zod.propValues[n.discriminator];if(!e||0===e.size)throw new Error(`Invalid discriminated union option at index "${n.options.indexOf(r)}"`);for(const n of e){if(t.has(n))throw new Error(`Duplicate discriminator value "${String(n)}"`);t.set(n,r)}}return t});e._zod.parse=(t,o)=>{const s=t.value;if(!d.isObject(s))return t.issues.push({code:"invalid_type",expected:"object",input:s,inst:e}),t;const a=i.value.get(s?.[n.discriminator]);return a?a._zod.run(t,o):n.unionFallback?r(t,o):(t.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",input:s,path:[n.discriminator],inst:e}),t)}}),t.$ZodIntersection=a.$constructor("$ZodIntersection",(e,n)=>{t.$ZodType.init(e,n),e._zod.parse=(e,t)=>{const r=e.value,i=n.left._zod.run({value:r,issues:[]},t),o=n.right._zod.run({value:r,issues:[]},t);return i instanceof Promise||o instanceof Promise?Promise.all([i,o]).then(([t,n])=>w(e,t,n)):w(e,i,o)}}),t.$ZodTuple=a.$constructor("$ZodTuple",(e,n)=>{t.$ZodType.init(e,n);const r=n.items,i=r.length-[...r].reverse().findIndex(e=>"optional"!==e._zod.optin);e._zod.parse=(t,o)=>{const s=t.value;if(!Array.isArray(s))return t.issues.push({input:s,inst:e,expected:"tuple",code:"invalid_type"}),t;t.value=[];const a=[];if(!n.rest){const n=s.length>r.length,o=s.length<i-1;if(n||o)return t.issues.push({input:s,inst:e,origin:"array",...n?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length}}),t}let c=-1;for(const e of r){if(c++,c>=s.length&&c>=i)continue;const n=e._zod.run({value:s[c],issues:[]},o);n instanceof Promise?a.push(n.then(e=>S(e,t,c))):S(n,t,c)}if(n.rest){const e=s.slice(r.length);for(const r of e){c++;const e=n.rest._zod.run({value:r,issues:[]},o);e instanceof Promise?a.push(e.then(e=>S(e,t,c))):S(e,t,c)}}return a.length?Promise.all(a).then(()=>t):t}}),t.$ZodRecord=a.$constructor("$ZodRecord",(e,n)=>{t.$ZodType.init(e,n),e._zod.parse=(t,r)=>{const i=t.value;if(!d.isPlainObject(i))return t.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),t;const o=[];if(n.keyType._zod.values){const s=n.keyType._zod.values;t.value={};for(const e of s)if("string"==typeof e||"number"==typeof e||"symbol"==typeof e){const s=n.valueType._zod.run({value:i[e],issues:[]},r);s instanceof Promise?o.push(s.then(n=>{n.issues.length&&t.issues.push(...d.prefixIssues(e,n.issues)),t.value[e]=n.value})):(s.issues.length&&t.issues.push(...d.prefixIssues(e,s.issues)),t.value[e]=s.value)}let a;for(const e in i)s.has(e)||(a=a??[],a.push(e));a&&a.length>0&&t.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:a})}else{t.value={};for(const s of Reflect.ownKeys(i)){if("__proto__"===s)continue;const c=n.keyType._zod.run({value:s,issues:[]},r);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(c.issues.length){t.issues.push({origin:"record",code:"invalid_key",issues:c.issues.map(e=>d.finalizeIssue(e,r,a.config())),input:s,path:[s],inst:e}),t.value[c.value]=c.value;continue}const u=n.valueType._zod.run({value:i[s],issues:[]},r);u instanceof Promise?o.push(u.then(e=>{e.issues.length&&t.issues.push(...d.prefixIssues(s,e.issues)),t.value[c.value]=e.value})):(u.issues.length&&t.issues.push(...d.prefixIssues(s,u.issues)),t.value[c.value]=u.value)}}return o.length?Promise.all(o).then(()=>t):t}}),t.$ZodMap=a.$constructor("$ZodMap",(e,n)=>{t.$ZodType.init(e,n),e._zod.parse=(t,r)=>{const i=t.value;if(!(i instanceof Map))return t.issues.push({expected:"map",code:"invalid_type",input:i,inst:e}),t;const o=[];t.value=new Map;for(const[s,a]of i){const c=n.keyType._zod.run({value:s,issues:[]},r),u=n.valueType._zod.run({value:a,issues:[]},r);c instanceof Promise||u instanceof Promise?o.push(Promise.all([c,u]).then(([n,o])=>{O(n,o,t,s,i,e,r)})):O(c,u,t,s,i,e,r)}return o.length?Promise.all(o).then(()=>t):t}}),t.$ZodSet=a.$constructor("$ZodSet",(e,n)=>{t.$ZodType.init(e,n),e._zod.parse=(t,r)=>{const i=t.value;if(!(i instanceof Set))return t.issues.push({input:i,inst:e,expected:"set",code:"invalid_type"}),t;const o=[];t.value=new Set;for(const e of i){const i=n.valueType._zod.run({value:e,issues:[]},r);i instanceof Promise?o.push(i.then(e=>k(e,t))):k(i,t)}return o.length?Promise.all(o).then(()=>t):t}}),t.$ZodEnum=a.$constructor("$ZodEnum",(e,n)=>{t.$ZodType.init(e,n);const r=d.getEnumValues(n.entries);e._zod.values=new Set(r),e._zod.pattern=new RegExp(`^(${r.filter(e=>d.propertyKeyTypes.has(typeof e)).map(e=>"string"==typeof e?d.escapeRegex(e):e.toString()).join("|")})$`),e._zod.parse=(t,n)=>{const i=t.value;return e._zod.values.has(i)||t.issues.push({code:"invalid_value",values:r,input:i,inst:e}),t}}),t.$ZodLiteral=a.$constructor("$ZodLiteral",(e,n)=>{t.$ZodType.init(e,n),e._zod.values=new Set(n.values),e._zod.pattern=new RegExp(`^(${n.values.map(e=>"string"==typeof e?d.escapeRegex(e):e?e.toString():String(e)).join("|")})$`),e._zod.parse=(t,r)=>{const i=t.value;return e._zod.values.has(i)||t.issues.push({code:"invalid_value",values:n.values,input:i,inst:e}),t}}),t.$ZodFile=a.$constructor("$ZodFile",(e,n)=>{t.$ZodType.init(e,n),e._zod.parse=(t,n)=>{const r=t.value;return r instanceof File||t.issues.push({expected:"file",code:"invalid_type",input:r,inst:e}),t}}),t.$ZodTransform=a.$constructor("$ZodTransform",(e,n)=>{t.$ZodType.init(e,n),e._zod.parse=(e,t)=>{const r=n.transform(e.value,e);if(t.async)return(r instanceof Promise?r:Promise.resolve(r)).then(t=>(e.value=t,e));if(r instanceof Promise)throw new a.$ZodAsyncError;return e.value=r,e}}),t.$ZodOptional=a.$constructor("$ZodOptional",(e,n)=>{t.$ZodType.init(e,n),e._zod.optin="optional",e._zod.optout="optional",d.defineLazy(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,void 0]):void 0),d.defineLazy(e._zod,"pattern",()=>{const e=n.innerType._zod.pattern;return e?new RegExp(`^(${d.cleanRegex(e.source)})?$`):void 0}),e._zod.parse=(e,t)=>"optional"===n.innerType._zod.optin?n.innerType._zod.run(e,t):void 0===e.value?e:n.innerType._zod.run(e,t)}),t.$ZodNullable=a.$constructor("$ZodNullable",(e,n)=>{t.$ZodType.init(e,n),d.defineLazy(e._zod,"optin",()=>n.innerType._zod.optin),d.defineLazy(e._zod,"optout",()=>n.innerType._zod.optout),d.defineLazy(e._zod,"pattern",()=>{const e=n.innerType._zod.pattern;return e?new RegExp(`^(${d.cleanRegex(e.source)}|null)$`):void 0}),d.defineLazy(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,null]):void 0),e._zod.parse=(e,t)=>null===e.value?e:n.innerType._zod.run(e,t)}),t.$ZodDefault=a.$constructor("$ZodDefault",(e,n)=>{t.$ZodType.init(e,n),e._zod.optin="optional",d.defineLazy(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(e,t)=>{if(void 0===e.value)return e.value=n.defaultValue,e;const r=n.innerType._zod.run(e,t);return r instanceof Promise?r.then(e=>$(e,n)):$(r,n)}}),t.$ZodPrefault=a.$constructor("$ZodPrefault",(e,n)=>{t.$ZodType.init(e,n),e._zod.optin="optional",d.defineLazy(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(e,t)=>(void 0===e.value&&(e.value=n.defaultValue),n.innerType._zod.run(e,t))}),t.$ZodNonOptional=a.$constructor("$ZodNonOptional",(e,n)=>{t.$ZodType.init(e,n),d.defineLazy(e._zod,"values",()=>{const e=n.innerType._zod.values;return e?new Set([...e].filter(e=>void 0!==e)):void 0}),e._zod.parse=(t,r)=>{const i=n.innerType._zod.run(t,r);return i instanceof Promise?i.then(t=>P(t,e)):P(i,e)}}),t.$ZodSuccess=a.$constructor("$ZodSuccess",(e,n)=>{t.$ZodType.init(e,n),e._zod.parse=(e,t)=>{const r=n.innerType._zod.run(e,t);return r instanceof Promise?r.then(t=>(e.value=0===t.issues.length,e)):(e.value=0===r.issues.length,e)}}),t.$ZodCatch=a.$constructor("$ZodCatch",(e,n)=>{t.$ZodType.init(e,n),e._zod.optin="optional",d.defineLazy(e._zod,"optout",()=>n.innerType._zod.optout),d.defineLazy(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(e,t)=>{const r=n.innerType._zod.run(e,t);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=n.catchValue({...e,error:{issues:r.issues.map(e=>d.finalizeIssue(e,t,a.config()))},input:e.value}),e.issues=[]),e)):(e.value=r.value,r.issues.length&&(e.value=n.catchValue({...e,error:{issues:r.issues.map(e=>d.finalizeIssue(e,t,a.config()))},input:e.value}),e.issues=[]),e)}}),t.$ZodNaN=a.$constructor("$ZodNaN",(e,n)=>{t.$ZodType.init(e,n),e._zod.parse=(t,n)=>("number"==typeof t.value&&Number.isNaN(t.value)||t.issues.push({input:t.value,inst:e,expected:"nan",code:"invalid_type"}),t)}),t.$ZodPipe=a.$constructor("$ZodPipe",(e,n)=>{t.$ZodType.init(e,n),d.defineLazy(e._zod,"values",()=>n.in._zod.values),d.defineLazy(e._zod,"optin",()=>n.in._zod.optin),d.defineLazy(e._zod,"optout",()=>n.out._zod.optout),e._zod.parse=(e,t)=>{const r=n.in._zod.run(e,t);return r instanceof Promise?r.then(e=>E(e,n,t)):E(r,n,t)}}),t.$ZodReadonly=a.$constructor("$ZodReadonly",(e,n)=>{t.$ZodType.init(e,n),d.defineLazy(e._zod,"propValues",()=>n.innerType._zod.propValues),d.defineLazy(e._zod,"values",()=>n.innerType._zod.values),d.defineLazy(e._zod,"optin",()=>n.innerType._zod.optin),d.defineLazy(e._zod,"optout",()=>n.innerType._zod.optout),e._zod.parse=(e,t)=>{const r=n.innerType._zod.run(e,t);return r instanceof Promise?r.then(T):T(r)}}),t.$ZodTemplateLiteral=a.$constructor("$ZodTemplateLiteral",(e,n)=>{t.$ZodType.init(e,n);const r=[];for(const e of n.parts)if(e instanceof t.$ZodType){if(!e._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...e._zod.traits].shift()}`);const t=e._zod.pattern instanceof RegExp?e._zod.pattern.source:e._zod.pattern;if(!t)throw new Error(`Invalid template literal part: ${e._zod.traits}`);const n=t.startsWith("^")?1:0,i=t.endsWith("$")?t.length-1:t.length;r.push(t.slice(n,i))}else{if(null!==e&&!d.primitiveTypes.has(typeof e))throw new Error(`Invalid template literal part: ${e}`);r.push(d.escapeRegex(`${e}`))}e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(t,n)=>"string"!=typeof t.value?(t.issues.push({input:t.value,inst:e,expected:"template_literal",code:"invalid_type"}),t):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(t.value)||t.issues.push({input:t.value,inst:e,code:"invalid_format",format:"template_literal",pattern:e._zod.pattern.source}),t)}),t.$ZodPromise=a.$constructor("$ZodPromise",(e,n)=>{t.$ZodType.init(e,n),e._zod.parse=(e,t)=>Promise.resolve(e.value).then(e=>n.innerType._zod.run({value:e,issues:[]},t))}),t.$ZodLazy=a.$constructor("$ZodLazy",(e,n)=>{t.$ZodType.init(e,n),d.defineLazy(e._zod,"innerType",()=>n.getter()),d.defineLazy(e._zod,"pattern",()=>e._zod.innerType._zod.pattern),d.defineLazy(e._zod,"propValues",()=>e._zod.innerType._zod.propValues),d.defineLazy(e._zod,"optin",()=>e._zod.innerType._zod.optin),d.defineLazy(e._zod,"optout",()=>e._zod.innerType._zod.optout),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),t.$ZodCustom=a.$constructor("$ZodCustom",(e,n)=>{s.$ZodCheck.init(e,n),t.$ZodType.init(e,n),e._zod.parse=(e,t)=>e,e._zod.check=t=>{const r=t.value,i=n.fn(r);if(i instanceof Promise)return i.then(n=>C(n,t,r,e));C(i,t,r,e)}})},95483:(e,t,n)=>{"use strict";const r=n(43106),i=n(62842),o=n(96727),{kStatusCode:s,NOOP:a}=n(50918),c=Buffer.from([0,0,255,255]),u=Symbol("permessage-deflate"),l=Symbol("total-length"),d=Symbol("callback"),p=Symbol("buffers"),f=Symbol("error");let m;function h(e){this[p].push(e),this[l]+=e.length}function v(e){this[l]+=e.length,this[u]._maxPayload<1||this[l]<=this[u]._maxPayload?this[p].push(e):(this[f]=new RangeError("Max payload size exceeded"),this[f].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[f][s]=1009,this.removeListener("data",v),this.reset())}function g(e){this[u]._inflate=null,e[s]=1007,this[d](e)}e.exports=class{constructor(e,t,n){if(this._maxPayload=0|n,this._options=e||{},this._threshold=void 0!==this._options.threshold?this._options.threshold:1024,this._isServer=!!t,this._deflate=null,this._inflate=null,this.params=null,!m){const e=void 0!==this._options.concurrencyLimit?this._options.concurrencyLimit:10;m=new o(e)}}static get extensionName(){return"permessage-deflate"}offer(){const e={};return this._options.serverNoContextTakeover&&(e.server_no_context_takeover=!0),this._options.clientNoContextTakeover&&(e.client_no_context_takeover=!0),this._options.serverMaxWindowBits&&(e.server_max_window_bits=this._options.serverMaxWindowBits),this._options.clientMaxWindowBits?e.client_max_window_bits=this._options.clientMaxWindowBits:null==this._options.clientMaxWindowBits&&(e.client_max_window_bits=!0),e}accept(e){return e=this.normalizeParams(e),this.params=this._isServer?this.acceptAsServer(e):this.acceptAsClient(e),this.params}cleanup(){if(this._inflate&&(this._inflate.close(),this._inflate=null),this._deflate){const e=this._deflate[d];this._deflate.close(),this._deflate=null,e&&e(new Error("The deflate stream was closed while data was being processed"))}}acceptAsServer(e){const t=this._options,n=e.find(e=>!(!1===t.serverNoContextTakeover&&e.server_no_context_takeover||e.server_max_window_bits&&(!1===t.serverMaxWindowBits||"number"==typeof t.serverMaxWindowBits&&t.serverMaxWindowBits>e.server_max_window_bits)||"number"==typeof t.clientMaxWindowBits&&!e.client_max_window_bits));if(!n)throw new Error("None of the extension offers can be accepted");return t.serverNoContextTakeover&&(n.server_no_context_takeover=!0),t.clientNoContextTakeover&&(n.client_no_context_takeover=!0),"number"==typeof t.serverMaxWindowBits&&(n.server_max_window_bits=t.serverMaxWindowBits),"number"==typeof t.clientMaxWindowBits?n.client_max_window_bits=t.clientMaxWindowBits:!0!==n.client_max_window_bits&&!1!==t.clientMaxWindowBits||delete n.client_max_window_bits,n}acceptAsClient(e){const t=e[0];if(!1===this._options.clientNoContextTakeover&&t.client_no_context_takeover)throw new Error('Unexpected parameter "client_no_context_takeover"');if(t.client_max_window_bits){if(!1===this._options.clientMaxWindowBits||"number"==typeof this._options.clientMaxWindowBits&&t.client_max_window_bits>this._options.clientMaxWindowBits)throw new Error('Unexpected or invalid parameter "client_max_window_bits"')}else"number"==typeof this._options.clientMaxWindowBits&&(t.client_max_window_bits=this._options.clientMaxWindowBits);return t}normalizeParams(e){return e.forEach(e=>{Object.keys(e).forEach(t=>{let n=e[t];if(n.length>1)throw new Error(`Parameter "${t}" must have only a single value`);if(n=n[0],"client_max_window_bits"===t){if(!0!==n){const e=+n;if(!Number.isInteger(e)||e<8||e>15)throw new TypeError(`Invalid value for parameter "${t}": ${n}`);n=e}else if(!this._isServer)throw new TypeError(`Invalid value for parameter "${t}": ${n}`)}else if("server_max_window_bits"===t){const e=+n;if(!Number.isInteger(e)||e<8||e>15)throw new TypeError(`Invalid value for parameter "${t}": ${n}`);n=e}else{if("client_no_context_takeover"!==t&&"server_no_context_takeover"!==t)throw new Error(`Unknown parameter "${t}"`);if(!0!==n)throw new TypeError(`Invalid value for parameter "${t}": ${n}`)}e[t]=n})}),e}decompress(e,t,n){m.add(r=>{this._decompress(e,t,(e,t)=>{r(),n(e,t)})})}compress(e,t,n){m.add(r=>{this._compress(e,t,(e,t)=>{r(),n(e,t)})})}_decompress(e,t,n){const o=this._isServer?"client":"server";if(!this._inflate){const e=`${o}_max_window_bits`,t="number"!=typeof this.params[e]?r.Z_DEFAULT_WINDOWBITS:this.params[e];this._inflate=r.createInflateRaw({...this._options.zlibInflateOptions,windowBits:t}),this._inflate[u]=this,this._inflate[l]=0,this._inflate[p]=[],this._inflate.on("error",g),this._inflate.on("data",v)}this._inflate[d]=n,this._inflate.write(e),t&&this._inflate.write(c),this._inflate.flush(()=>{const e=this._inflate[f];if(e)return this._inflate.close(),this._inflate=null,void n(e);const r=i.concat(this._inflate[p],this._inflate[l]);this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[l]=0,this._inflate[p]=[],t&&this.params[`${o}_no_context_takeover`]&&this._inflate.reset()),n(null,r)})}_compress(e,t,n){const o=this._isServer?"server":"client";if(!this._deflate){const e=`${o}_max_window_bits`,t="number"!=typeof this.params[e]?r.Z_DEFAULT_WINDOWBITS:this.params[e];this._deflate=r.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:t}),this._deflate[l]=0,this._deflate[p]=[],this._deflate.on("error",a),this._deflate.on("data",h)}this._deflate[d]=n,this._deflate.write(e),this._deflate.flush(r.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let e=i.concat(this._deflate[p],this._deflate[l]);t&&(e=e.slice(0,e.length-4)),this._deflate[d]=null,this._deflate[l]=0,this._deflate[p]=[],t&&this.params[`${o}_no_context_takeover`]&&this._deflate.reset(),n(null,e)})}}},95832:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{localeError:a()}};const s=o(n(90523)),a=()=>{const e={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"}};function t(t){return e[t]??null}const n={regex:"مدخل",email:"بريد إلكتروني",url:"رابط",emoji:"إيموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاريخ ووقت بمعيار ISO",date:"تاريخ بمعيار ISO",time:"وقت بمعيار ISO",duration:"مدة بمعيار ISO",ipv4:"عنوان IPv4",ipv6:"عنوان IPv6",cidrv4:"مدى عناوين بصيغة IPv4",cidrv6:"مدى عناوين بصيغة IPv6",base64:"نَص بترميز base64-encoded",base64url:"نَص بترميز base64url-encoded",json_string:"نَص على هيئة JSON",e164:"رقم هاتف بمعيار E.164",jwt:"JWT",template_literal:"مدخل"};return e=>{switch(e.code){case"invalid_type":return`مدخلات غير مقبولة: يفترض إدخال ${e.expected}، ولكن تم إدخال ${(e=>{const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":if(Array.isArray(e))return"array";if(null===e)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}return t})(e.input)}`;case"invalid_value":return 1===e.values.length?`مدخلات غير مقبولة: يفترض إدخال ${s.stringifyPrimitive(e.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${s.joinValues(e.values,"|")}`;case"too_big":{const n=e.inclusive?"<=":"<",r=t(e.origin);return r?` أكبر من اللازم: يفترض أن تكون ${e.origin??"القيمة"} ${n} ${e.maximum.toString()} ${r.unit??"عنصر"}`:`أكبر من اللازم: يفترض أن تكون ${e.origin??"القيمة"} ${n} ${e.maximum.toString()}`}case"too_small":{const n=e.inclusive?">=":">",r=t(e.origin);return r?`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${n} ${e.minimum.toString()} ${r.unit}`:`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${n} ${e.minimum.toString()}`}case"invalid_format":{const t=e;return"starts_with"===t.format?`نَص غير مقبول: يجب أن يبدأ بـ "${e.prefix}"`:"ends_with"===t.format?`نَص غير مقبول: يجب أن ينتهي بـ "${t.suffix}"`:"includes"===t.format?`نَص غير مقبول: يجب أن يتضمَّن "${t.includes}"`:"regex"===t.format?`نَص غير مقبول: يجب أن يطابق النمط ${t.pattern}`:`${n[t.format]??e.format} غير مقبول`}case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${e.divisor}`;case"unrecognized_keys":return`معرف${e.keys.length>1?"ات":""} غريب${e.keys.length>1?"ة":""}: ${s.joinValues(e.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${e.origin}`;case"invalid_union":default:return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${e.origin}`}}}},95880:(e,t,n)=>{"use strict";const{isUtf8:r}=n(20181),{hasBlob:i}=n(32614);function o(e){const t=e.length;let n=0;for(;n<t;)if(128&e[n])if(192==(224&e[n])){if(n+1===t||128!=(192&e[n+1])||192==(254&e[n]))return!1;n+=2}else if(224==(240&e[n])){if(n+2>=t||128!=(192&e[n+1])||128!=(192&e[n+2])||224===e[n]&&128==(224&e[n+1])||237===e[n]&&160==(224&e[n+1]))return!1;n+=3}else{if(240!=(248&e[n]))return!1;if(n+3>=t||128!=(192&e[n+1])||128!=(192&e[n+2])||128!=(192&e[n+3])||240===e[n]&&128==(240&e[n+1])||244===e[n]&&e[n+1]>143||e[n]>244)return!1;n+=4}else n++;return!0}if(e.exports={isBlob:function(e){return i&&"object"==typeof e&&"function"==typeof e.arrayBuffer&&"string"==typeof e.type&&"function"==typeof e.stream&&("Blob"===e[Symbol.toStringTag]||"File"===e[Symbol.toStringTag])},isValidStatusCode:function(e){return e>=1e3&&e<=1014&&1004!==e&&1005!==e&&1006!==e||e>=3e3&&e<=4999},isValidUTF8:o,tokenChars:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0]},r)e.exports.isValidUTF8=function(e){return e.length<24?o(e):r(e)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{const t=n(53148);e.exports.isValidUTF8=function(e){return e.length<32?o(e):t(e)}}catch(e){}},95962:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.boolOrEmptySchema=t.topBoolOrEmptySchema=void 0;const r=n(24971),i=n(66596),o=n(26670),s={message:"boolean schema is false"};function a(e,t){const{gen:n,data:i}=e,o={gen:n,keyword:"false schema",data:i,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,r.reportError)(o,s,void 0,t)}t.topBoolOrEmptySchema=function(e){const{gen:t,schema:n,validateName:r}=e;!1===n?a(e,!1):"object"==typeof n&&!0===n.$async?t.return(o.default.data):(t.assign(i._`${r}.errors`,null),t.return(!0))},t.boolOrEmptySchema=function(e,t){const{gen:n,schema:r}=e;!1===r?(n.var(t,!1),a(e)):n.var(t,!0)}},95973:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseUnknownDef=void 0;const r=n(62909);t.parseUnknownDef=function(e){return(0,r.parseAnyDef)(e)}},96370:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},96556:e=>{"use strict";e.exports=function(e){const t=e.length;let n=0;for(;n<t;)if(128&e[n])if(192==(224&e[n])){if(n+1===t||128!=(192&e[n+1])||192==(254&e[n]))return!1;n+=2}else if(224==(240&e[n])){if(n+2>=t||128!=(192&e[n+1])||128!=(192&e[n+2])||224===e[n]&&128==(224&e[n+1])||237===e[n]&&160==(224&e[n+1]))return!1;n+=3}else{if(240!=(248&e[n]))return!1;if(n+3>=t||128!=(192&e[n+1])||128!=(192&e[n+2])||128!=(192&e[n+3])||240===e[n]&&128==(240&e[n+1])||244===e[n]&&e[n+1]>143||e[n]>244)return!1;n+=4}else n++;return!0}},96727:e=>{"use strict";const t=Symbol("kDone"),n=Symbol("kRun");e.exports=class{constructor(e){this[t]=()=>{this.pending--,this[n]()},this.concurrency=e||1/0,this.jobs=[],this.pending=0}add(e){this.jobs.push(e),this[n]()}[n](){if(this.pending!==this.concurrency&&this.jobs.length){const e=this.jobs.shift();this.pending++,e(this[t])}}}},96773:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseNativeEnumDef=void 0,t.parseNativeEnumDef=function(e){const t=e.values,n=Object.keys(e.values).filter(e=>"number"!=typeof t[t[e]]).map(e=>t[e]),r=Array.from(new Set(n.map(e=>typeof e)));return{type:1===r.length?"string"===r[0]?"string":"number":["string","number"],enum:n}}},96871:function(e,t,n){"use strict";var r,i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),s=0;s<n.length;s++)"default"!==n[s]&&i(t,e,n[s]);return o(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.resolve=function(e){return h(e.plan.rootRequest.requestScope)(e.plan.rootRequest)};const a=s(n(35007)),c=n(9117),u=n(73934),l=n(27353),d=n(12576),p=n(8835),f=n(12672),m=n(97508),h=e=>t=>{t.parentContext.setCurrentRequest(t);const n=t.bindings,r=t.childRequests,i=t.target&&t.target.isArray(),o=!(t.parentRequest&&t.parentRequest.target&&t.target&&t.parentRequest.target.matchesArray(t.target.serviceIdentifier));if(i&&o)return r.map(t=>h(e)(t));{if(t.target.isOptional()&&0===n.length)return;const r=n[0];return v(e,t,r)}},v=(e,t,n)=>((e,t,n)=>{let r=(0,l.tryGetFromScope)(e,t);return null!==r||(r=n(),(0,l.saveToScope)(e,t,r)),r})(e,n,()=>{let r=((e,t,n)=>{let r;const i=t.childRequests;switch((0,p.ensureFullyBound)(n),n.type){case c.BindingTypeEnum.ConstantValue:case c.BindingTypeEnum.Function:r=n.cache;break;case c.BindingTypeEnum.Constructor:r=n.implementationType;break;case c.BindingTypeEnum.Instance:r=(0,m.resolveInstance)(n,n.implementationType,i,h(e));break;default:r=((e,t)=>{const n=(0,p.getFactoryDetails)(e);return(0,f.tryAndThrowErrorIfStackOverflow)(()=>n.factory.bind(e)(t),()=>new Error(a.CIRCULAR_DEPENDENCY_IN_FACTORY(n.factoryType,t.currentRequest.serviceIdentifier.toString())))})(n,t.parentContext)}return r})(e,t,n);return r=(0,d.isPromise)(r)?r.then(e=>g(t,n,e)):g(t,n,r),r});function g(e,t,n){let r=y(e.parentContext,t,n);const i=w(e.parentContext.container);let o,s=i.next();do{o=s.value;const t=e.parentContext,n=e.serviceIdentifier,a=x(o,n);r=(0,d.isPromise)(r)?b(a,t,r):_(a,t,r),s=i.next()}while(!0!==s.done&&!(0,u.getBindingDictionary)(o).hasKey(e.serviceIdentifier));return r}const y=(e,t,n)=>{let r;return r="function"==typeof t.onActivation?t.onActivation(e,n):n,r},_=(e,t,n)=>{let r=e.next();for(;!0!==r.done;){if(n=r.value(t,n),(0,d.isPromise)(n))return b(e,t,n);r=e.next()}return n},b=async(e,t,n)=>{let r=await n,i=e.next();for(;!0!==i.done;)r=await i.value(t,r),i=e.next();return r},x=(e,t)=>{const n=e._activations;return n.hasKey(t)?n.get(t).values():[].values()},w=e=>{const t=[e];let n=e.parent;for(;null!==n;)t.push(n),n=n.parent;return{next:()=>{const e=t.pop();return void 0!==e?{done:!1,value:e}:{done:!0,value:void 0}}}}},96938:e=>{var t=[].indexOf;e.exports=function(e,n){if(t)return e.indexOf(n);for(var r=0;r<e.length;++r)if(e[r]===n)return r;return-1}},97083:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(31701),t)},97508:function(e,t,n){"use strict";var r,i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),s=0;s<n.length;s++)"default"!==n[s]&&i(t,e,n[s]);return o(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.resolveInstance=function(e,t,n,r){!function(e,t){e.scope!==c.BindingScopeEnum.Singleton&&function(e,t){const n=`Class cannot be instantiated in ${e.scope===c.BindingScopeEnum.Request?"request":"transient"} scope.`;if("function"==typeof e.onDeactivation)throw new Error((0,a.ON_DEACTIVATION_ERROR)(t.name,n));if(Reflect.hasMetadata(u.PRE_DESTROY,t))throw new Error((0,a.PRE_DESTROY_ERROR)(t.name,n))}(e,t)}(e,t);const i=function(e,t,n){let r;if(t.length>0){const i=function(e,t){return e.reduce((e,n)=>{const r=t(n);return n.target.type===c.TargetTypeEnum.ConstructorArgument?e.constructorInjections.push(r):(e.propertyRequests.push(n),e.propertyInjections.push(r)),e.isAsync||(e.isAsync=(0,l.isPromiseOrContainsPromise)(r)),e},{constructorInjections:[],isAsync:!1,propertyInjections:[],propertyRequests:[]})}(t,n),o={...i,constr:e};r=i.isAsync?async function(e){const t=await p(e.constructorInjections),n=await p(e.propertyInjections);return d({...e,constructorInjections:t,propertyInjections:n})}(o):d(o)}else r=new e;return r}(t,n,r);return(0,l.isPromise)(i)?i.then(e=>f(t,e)):f(t,i)};const a=n(35007),c=n(9117),u=s(n(19466)),l=n(12576);function d(e){const t=new e.constr(...e.constructorInjections);return e.propertyRequests.forEach((n,r)=>{const i=n.target.identifier,o=e.propertyInjections[r];n.target.isOptional()&&void 0===o||(t[i]=o)}),t}async function p(e){const t=[];for(const n of e)Array.isArray(n)?t.push(Promise.all(n)):t.push(n);return Promise.all(t)}function f(e,t){const n=function(e,t){if(Reflect.hasMetadata(u.POST_CONSTRUCT,e)){const n=Reflect.getMetadata(u.POST_CONSTRUCT,e);try{return t[n.value]?.()}catch(t){if(t instanceof Error)throw new Error((0,a.POST_CONSTRUCT_ERROR)(e.name,t.message))}}}(e,t);return(0,l.isPromise)(n)?n.then(()=>t):t}},97879:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(66596),i=n(99048),o=n(51980),s=n(8592),a={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>r.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>r._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:n,it:r}=e,{prefixItems:a}=n;r.items=!0,(0,i.alwaysValidSchema)(r,t)||(a?(0,s.validateAdditionalItems)(e,a):e.ok((0,o.validateArray)(e)))}};t.default=a},97987:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseUndefinedDef=void 0;const r=n(62909);t.parseUndefinedDef=function(e){return{not:(0,r.parseAnyDef)(e)}}},98171:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(16519),i={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,r.validateTuple)(e,"items")};t.default=i},98297:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MAX_LOG_RESPONSE_CHARACTERS=t.MAX_LOG_LIMIT=t.DEFAULT_LOG_LIMIT=t.MAX_SCRIPT_LIMIT=t.DEFAULT_SCRIPT_LIMIT=t.MAX_SCRIPT_CONTENT_LENGTH=void 0,t.success=function(e){return{ok:!0,data:e}},t.failure=function(e,t,n){return{ok:!1,error:{code:e,message:t,hint:n}}},t.MAX_SCRIPT_CONTENT_LENGTH=5e4,t.DEFAULT_SCRIPT_LIMIT=200,t.MAX_SCRIPT_LIMIT=500,t.DEFAULT_LOG_LIMIT=100,t.MAX_LOG_LIMIT=500,t.MAX_LOG_RESPONSE_CHARACTERS=3e4},98598:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseArrayDef=void 0;const r=n(19164),i=n(98950),o=n(73524);t.parseArrayDef=function(e,t){const n={type:"array"};return e.type?._def&&e.type?._def?.typeName!==r.ZodFirstPartyTypeKind.ZodAny&&(n.items=(0,o.parseDef)(e.type._def,{...t,currentPath:[...t.currentPath,"items"]})),e.minLength&&(0,i.setResponseValueAndErrors)(n,"minItems",e.minLength.value,e.minLength.message,t),e.maxLength&&(0,i.setResponseValueAndErrors)(n,"maxItems",e.maxLength.value,e.maxLength.message,t),e.exactLength&&((0,i.setResponseValueAndErrors)(n,"minItems",e.exactLength.value,e.exactLength.message,t),(0,i.setResponseValueAndErrors)(n,"maxItems",e.exactLength.value,e.exactLength.message,t)),n}},98706:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.globalConfig=t.$ZodAsyncError=t.$brand=t.NEVER=void 0,t.$constructor=function(e,t,n){function r(n,r){var i;Object.defineProperty(n,"_zod",{value:n._zod??{},enumerable:!1}),(i=n._zod).traits??(i.traits=new Set),n._zod.traits.add(e),t(n,r);for(const e in s.prototype)e in n||Object.defineProperty(n,e,{value:s.prototype[e].bind(n)});n._zod.constr=s,n._zod.def=r}const i=n?.Parent??Object;class o extends i{}function s(e){var t;const i=n?.Parent?new o:this;r(i,e),(t=i._zod).deferred??(t.deferred=[]);for(const e of i._zod.deferred)e();return i}return Object.defineProperty(o,"name",{value:e}),Object.defineProperty(s,"init",{value:r}),Object.defineProperty(s,Symbol.hasInstance,{value:t=>!!(n?.Parent&&t instanceof n.Parent)||t?._zod?.traits?.has(e)}),Object.defineProperty(s,"name",{value:e}),s},t.config=function(e){return e&&Object.assign(t.globalConfig,e),t.globalConfig},t.NEVER=Object.freeze({status:"aborted"}),t.$brand=Symbol("zod_brand");class n extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}t.$ZodAsyncError=n,t.globalConfig={}},98950:(e,t)=>{"use strict";function n(e,t,n,r){r?.errorMessages&&n&&(e.errorMessage={...e.errorMessage,[t]:n})}Object.defineProperty(t,"__esModule",{value:!0}),t.setResponseValueAndErrors=t.addErrorMessage=void 0,t.addErrorMessage=n,t.setResponseValueAndErrors=function(e,t,r,i,o){e[t]=r,n(e,t,i,o)}},98986:function(e,t,n){"use strict";var r,i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||(r=function(e){return r=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},r(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=r(e),s=0;s<n.length;s++)"default"!==n[s]&&i(t,e,n[s]);return o(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.unmanaged=function(){return function(e,t,n){const r=new c.Metadata(a.UNMANAGED_TAG,!0);(0,u.tagParameter)(e,t,n,r)}};const a=s(n(19466)),c=n(4045),u=n(33353)},99048:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkStrictMode=t.getErrorPath=t.Type=t.useFunc=t.setEvaluated=t.evaluatedPropsToName=t.mergeEvaluated=t.eachItem=t.unescapeJsonPointer=t.escapeJsonPointer=t.escapeFragment=t.unescapeFragment=t.schemaRefOrVal=t.schemaHasRulesButRef=t.schemaHasRules=t.checkUnknownRules=t.alwaysValidSchema=t.toHash=void 0;const r=n(66596),i=n(53231);function o(e,t=e.schema){const{opts:n,self:r}=e;if(!n.strictSchema)return;if("boolean"==typeof t)return;const i=r.RULES.keywords;for(const n in t)i[n]||m(e,`unknown keyword: "${n}"`)}function s(e,t){if("boolean"==typeof e)return!e;for(const n in e)if(t[n])return!0;return!1}function a(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function c(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function u({mergeNames:e,mergeToName:t,mergeValues:n,resultToName:i}){return(o,s,a,c)=>{const u=void 0===a?s:a instanceof r.Name?(s instanceof r.Name?e(o,s,a):t(o,s,a),a):s instanceof r.Name?(t(o,a,s),s):n(s,a);return c!==r.Name||u instanceof r.Name?u:i(o,u)}}function l(e,t){if(!0===t)return e.var("props",!0);const n=e.var("props",r._`{}`);return void 0!==t&&d(e,n,t),n}function d(e,t,n){Object.keys(n).forEach(n=>e.assign(r._`${t}${(0,r.getProperty)(n)}`,!0))}t.toHash=function(e){const t={};for(const n of e)t[n]=!0;return t},t.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(o(e,t),!s(t,e.self.RULES.all))},t.checkUnknownRules=o,t.schemaHasRules=s,t.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const n in e)if("$ref"!==n&&t.all[n])return!0;return!1},t.schemaRefOrVal=function({topSchemaRef:e,schemaPath:t},n,i,o){if(!o){if("number"==typeof n||"boolean"==typeof n)return n;if("string"==typeof n)return r._`${n}`}return r._`${e}${t}${(0,r.getProperty)(i)}`},t.unescapeFragment=function(e){return c(decodeURIComponent(e))},t.escapeFragment=function(e){return encodeURIComponent(a(e))},t.escapeJsonPointer=a,t.unescapeJsonPointer=c,t.eachItem=function(e,t){if(Array.isArray(e))for(const n of e)t(n);else t(e)},t.mergeEvaluated={props:u({mergeNames:(e,t,n)=>e.if(r._`${n} !== true && ${t} !== undefined`,()=>{e.if(r._`${t} === true`,()=>e.assign(n,!0),()=>e.assign(n,r._`${n} || {}`).code(r._`Object.assign(${n}, ${t})`))}),mergeToName:(e,t,n)=>e.if(r._`${n} !== true`,()=>{!0===t?e.assign(n,!0):(e.assign(n,r._`${n} || {}`),d(e,n,t))}),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:l}),items:u({mergeNames:(e,t,n)=>e.if(r._`${n} !== true && ${t} !== undefined`,()=>e.assign(n,r._`${t} === true ? true : ${n} > ${t} ? ${n} : ${t}`)),mergeToName:(e,t,n)=>e.if(r._`${n} !== true`,()=>e.assign(n,!0===t||r._`${n} > ${t} ? ${n} : ${t}`)),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},t.evaluatedPropsToName=l,t.setEvaluated=d;const p={};var f;function m(e,t,n=e.opts.strictSchema){if(n){if(t=`strict mode: ${t}`,!0===n)throw new Error(t);e.self.logger.warn(t)}}t.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:p[t.code]||(p[t.code]=new i._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(f||(t.Type=f={})),t.getErrorPath=function(e,t,n){if(e instanceof r.Name){const i=t===f.Num;return n?i?r._`"[" + ${e} + "]"`:r._`"['" + ${e} + "']"`:i?r._`"/" + ${e}`:r._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,r.getProperty)(e).toString():"/"+a(e)},t.checkStrictMode=m},99317:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultErrorMap=void 0,t.setErrorMap=function(e){o=e},t.getErrorMap=function(){return o};const i=r(n(75653));t.defaultErrorMap=i.default;let o=i.default},99874:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.ZodTransform=t.ZodFile=t.ZodLiteral=t.ZodEnum=t.ZodSet=t.ZodMap=t.ZodRecord=t.ZodTuple=t.ZodIntersection=t.ZodDiscriminatedUnion=t.ZodUnion=t.ZodObject=t.ZodArray=t.ZodDate=t.ZodVoid=t.ZodNever=t.ZodUnknown=t.ZodAny=t.ZodNull=t.ZodUndefined=t.ZodSymbol=t.ZodBigIntFormat=t.ZodBigInt=t.ZodBoolean=t.ZodNumberFormat=t.ZodNumber=t.ZodCustomStringFormat=t.ZodJWT=t.ZodE164=t.ZodBase64URL=t.ZodBase64=t.ZodCIDRv6=t.ZodCIDRv4=t.ZodIPv6=t.ZodIPv4=t.ZodKSUID=t.ZodXID=t.ZodULID=t.ZodCUID2=t.ZodCUID=t.ZodNanoID=t.ZodEmoji=t.ZodURL=t.ZodUUID=t.ZodGUID=t.ZodEmail=t.ZodStringFormat=t.ZodString=t._ZodString=t.ZodType=void 0,t.stringbool=t.ZodCustom=t.ZodPromise=t.ZodLazy=t.ZodTemplateLiteral=t.ZodReadonly=t.ZodPipe=t.ZodNaN=t.ZodCatch=t.ZodSuccess=t.ZodNonOptional=t.ZodPrefault=t.ZodDefault=t.ZodNullable=t.ZodOptional=void 0,t.string=d,t.email=function(e){return s._email(t.ZodEmail,e)},t.guid=function(e){return s._guid(t.ZodGUID,e)},t.uuid=function(e){return s._uuid(t.ZodUUID,e)},t.uuidv4=function(e){return s._uuidv4(t.ZodUUID,e)},t.uuidv6=function(e){return s._uuidv6(t.ZodUUID,e)},t.uuidv7=function(e){return s._uuidv7(t.ZodUUID,e)},t.url=function(e){return s._url(t.ZodURL,e)},t.emoji=function(e){return s._emoji(t.ZodEmoji,e)},t.nanoid=function(e){return s._nanoid(t.ZodNanoID,e)},t.cuid=function(e){return s._cuid(t.ZodCUID,e)},t.cuid2=function(e){return s._cuid2(t.ZodCUID2,e)},t.ulid=function(e){return s._ulid(t.ZodULID,e)},t.xid=function(e){return s._xid(t.ZodXID,e)},t.ksuid=function(e){return s._ksuid(t.ZodKSUID,e)},t.ipv4=function(e){return s._ipv4(t.ZodIPv4,e)},t.ipv6=function(e){return s._ipv6(t.ZodIPv6,e)},t.cidrv4=function(e){return s._cidrv4(t.ZodCIDRv4,e)},t.cidrv6=function(e){return s._cidrv6(t.ZodCIDRv6,e)},t.base64=function(e){return s._base64(t.ZodBase64,e)},t.base64url=function(e){return s._base64url(t.ZodBase64URL,e)},t.e164=function(e){return s._e164(t.ZodE164,e)},t.jwt=function(e){return s._jwt(t.ZodJWT,e)},t.stringFormat=function(e,n,r={}){return s._stringFormat(t.ZodCustomStringFormat,e,n,r)},t.number=p,t.int=f,t.float32=function(e){return s._float32(t.ZodNumberFormat,e)},t.float64=function(e){return s._float64(t.ZodNumberFormat,e)},t.int32=function(e){return s._int32(t.ZodNumberFormat,e)},t.uint32=function(e){return s._uint32(t.ZodNumberFormat,e)},t.boolean=m,t.bigint=function(e){return s._bigint(t.ZodBigInt,e)},t.int64=function(e){return s._int64(t.ZodBigIntFormat,e)},t.uint64=function(e){return s._uint64(t.ZodBigIntFormat,e)},t.symbol=function(e){return s._symbol(t.ZodSymbol,e)},t.undefined=function(e){return s._undefined(t.ZodUndefined,e)},t.null=h,t.any=function(){return s._any(t.ZodAny)},t.unknown=v,t.never=g,t.void=function(e){return s._void(t.ZodVoid,e)},t.date=function(e){return s._date(t.ZodDate,e)},t.array=y,t.keyof=function(e){const t=e._zod.def.shape;return S(Object.keys(t))},t.object=function(e,n){const r={type:"object",get shape(){return a.util.assignProp(this,"shape",{...e}),this.shape},...a.util.normalizeParams(n)};return new t.ZodObject(r)},t.strictObject=function(e,n){return new t.ZodObject({type:"object",get shape(){return a.util.assignProp(this,"shape",{...e}),this.shape},catchall:g(),...a.util.normalizeParams(n)})},t.looseObject=function(e,n){return new t.ZodObject({type:"object",get shape(){return a.util.assignProp(this,"shape",{...e}),this.shape},catchall:v(),...a.util.normalizeParams(n)})},t.union=_,t.discriminatedUnion=function(e,n,r){return new t.ZodDiscriminatedUnion({type:"union",options:n,discriminator:e,...a.util.normalizeParams(r)})},t.intersection=b,t.tuple=function(e,n,r){const i=n instanceof s.$ZodType,o=i?r:n,c=i?n:null;return new t.ZodTuple({type:"tuple",items:e,rest:c,...a.util.normalizeParams(o)})},t.record=x,t.partialRecord=function(e,n,r){return new t.ZodRecord({type:"record",keyType:_([e,g()]),valueType:n,...a.util.normalizeParams(r)})},t.map=function(e,n,r){return new t.ZodMap({type:"map",keyType:e,valueType:n,...a.util.normalizeParams(r)})},t.set=function(e,n){return new t.ZodSet({type:"set",valueType:e,...a.util.normalizeParams(n)})},t.enum=w,t.nativeEnum=function(e,n){return new t.ZodEnum({type:"enum",entries:e,...a.util.normalizeParams(n)})},t.literal=S,t.file=function(e){return s._file(t.ZodFile,e)},t.transform=O,t.optional=k,t.nullable=$,t.nullish=function(e){return k($(e))},t._default=P,t.prefault=E,t.nonoptional=T,t.success=function(e){return new t.ZodSuccess({type:"success",innerType:e})},t.catch=C,t.nan=function(e){return s._nan(t.ZodNaN,e)},t.pipe=I,t.readonly=j,t.templateLiteral=function(e,n){return new t.ZodTemplateLiteral({type:"template_literal",parts:e,...a.util.normalizeParams(n)})},t.lazy=R,t.promise=function(e){return new t.ZodPromise({type:"promise",innerType:e})},t.check=N,t.custom=function(e,n){return s._custom(t.ZodCustom,e??(()=>!0),n)},t.refine=A,t.superRefine=M,t.instanceof=function(e,n={error:`Input not instance of ${e.name}`}){const r=new t.ZodCustom({type:"custom",check:"custom",fn:t=>t instanceof e,abort:!0,...a.util.normalizeParams(n)});return r._zod.bag.Class=e,r},t.json=function(e){const t=R(()=>_([d(e),p(),m(),h(),y(t),x(d(),t)]));return t},t.preprocess=function(e,t){return I(O(e),t)};const s=o(n(76601)),a=n(76601),c=o(n(56549)),u=o(n(44725)),l=o(n(48035));function d(e){return s._string(t.ZodString,e)}function p(e){return s._number(t.ZodNumber,e)}function f(e){return s._int(t.ZodNumberFormat,e)}function m(e){return s._boolean(t.ZodBoolean,e)}function h(e){return s._null(t.ZodNull,e)}function v(){return s._unknown(t.ZodUnknown)}function g(e){return s._never(t.ZodNever,e)}function y(e,n){return s._array(t.ZodArray,e,n)}function _(e,n){return new t.ZodUnion({type:"union",options:e,...a.util.normalizeParams(n)})}function b(e,n){return new t.ZodIntersection({type:"intersection",left:e,right:n})}function x(e,n,r){return new t.ZodRecord({type:"record",keyType:e,valueType:n,...a.util.normalizeParams(r)})}function w(e,n){const r=Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e;return new t.ZodEnum({type:"enum",entries:r,...a.util.normalizeParams(n)})}function S(e,n){return new t.ZodLiteral({type:"literal",values:Array.isArray(e)?e:[e],...a.util.normalizeParams(n)})}function O(e){return new t.ZodTransform({type:"transform",transform:e})}function k(e){return new t.ZodOptional({type:"optional",innerType:e})}function $(e){return new t.ZodNullable({type:"nullable",innerType:e})}function P(e,n){return new t.ZodDefault({type:"default",innerType:e,get defaultValue(){return"function"==typeof n?n():n}})}function E(e,n){return new t.ZodPrefault({type:"prefault",innerType:e,get defaultValue(){return"function"==typeof n?n():n}})}function T(e,n){return new t.ZodNonOptional({type:"nonoptional",innerType:e,...a.util.normalizeParams(n)})}function C(e,n){return new t.ZodCatch({type:"catch",innerType:e,catchValue:"function"==typeof n?n:()=>n})}function I(e,n){return new t.ZodPipe({type:"pipe",in:e,out:n})}function j(e){return new t.ZodReadonly({type:"readonly",innerType:e})}function R(e){return new t.ZodLazy({type:"lazy",getter:e})}function N(e){const t=new s.$ZodCheck({check:"custom"});return t._zod.check=e,t}function A(e,n={}){return s._refine(t.ZodCustom,e,n)}function M(e){const t=N(n=>(n.addIssue=e=>{if("string"==typeof e)n.issues.push(a.util.issue(e,n.value,t._zod.def));else{const r=e;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=n.value),r.inst??(r.inst=t),r.continue??(r.continue=!t._zod.def.abort),n.issues.push(a.util.issue(r))}},e(n.value,n)));return t}t.ZodType=s.$constructor("ZodType",(e,t)=>(s.$ZodType.init(e,t),e.def=t,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone({...t,checks:[...t.checks??[],...n.map(e=>"function"==typeof e?{_zod:{check:e,def:{check:"custom"},onattach:[]}}:e)]}),e.clone=(t,n)=>s.clone(e,t,n),e.brand=()=>e,e.register=(t,n)=>(t.add(e,n),e),e.parse=(t,n)=>l.parse(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>l.safeParse(e,t,n),e.parseAsync=async(t,n)=>l.parseAsync(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>l.safeParseAsync(e,t,n),e.spa=e.safeParseAsync,e.refine=(t,n)=>e.check(A(t,n)),e.superRefine=t=>e.check(M(t)),e.overwrite=t=>e.check(c.overwrite(t)),e.optional=()=>k(e),e.nullable=()=>$(e),e.nullish=()=>k($(e)),e.nonoptional=t=>T(e,t),e.array=()=>y(e),e.or=t=>_([e,t]),e.and=t=>b(e,t),e.transform=t=>I(e,O(t)),e.default=t=>P(e,t),e.prefault=t=>E(e,t),e.catch=t=>C(e,t),e.pipe=t=>I(e,t),e.readonly=()=>j(e),e.describe=t=>{const n=e.clone();return s.globalRegistry.add(n,{description:t}),n},Object.defineProperty(e,"description",{get:()=>s.globalRegistry.get(e)?.description,configurable:!0}),e.meta=(...t)=>{if(0===t.length)return s.globalRegistry.get(e);const n=e.clone();return s.globalRegistry.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),t._ZodString=s.$constructor("_ZodString",(e,n)=>{s.$ZodString.init(e,n),t.ZodType.init(e,n);const r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...t)=>e.check(c.regex(...t)),e.includes=(...t)=>e.check(c.includes(...t)),e.startsWith=(...t)=>e.check(c.startsWith(...t)),e.endsWith=(...t)=>e.check(c.endsWith(...t)),e.min=(...t)=>e.check(c.minLength(...t)),e.max=(...t)=>e.check(c.maxLength(...t)),e.length=(...t)=>e.check(c.length(...t)),e.nonempty=(...t)=>e.check(c.minLength(1,...t)),e.lowercase=t=>e.check(c.lowercase(t)),e.uppercase=t=>e.check(c.uppercase(t)),e.trim=()=>e.check(c.trim()),e.normalize=(...t)=>e.check(c.normalize(...t)),e.toLowerCase=()=>e.check(c.toLowerCase()),e.toUpperCase=()=>e.check(c.toUpperCase())}),t.ZodString=s.$constructor("ZodString",(e,n)=>{s.$ZodString.init(e,n),t._ZodString.init(e,n),e.email=n=>e.check(s._email(t.ZodEmail,n)),e.url=n=>e.check(s._url(t.ZodURL,n)),e.jwt=n=>e.check(s._jwt(t.ZodJWT,n)),e.emoji=n=>e.check(s._emoji(t.ZodEmoji,n)),e.guid=n=>e.check(s._guid(t.ZodGUID,n)),e.uuid=n=>e.check(s._uuid(t.ZodUUID,n)),e.uuidv4=n=>e.check(s._uuidv4(t.ZodUUID,n)),e.uuidv6=n=>e.check(s._uuidv6(t.ZodUUID,n)),e.uuidv7=n=>e.check(s._uuidv7(t.ZodUUID,n)),e.nanoid=n=>e.check(s._nanoid(t.ZodNanoID,n)),e.guid=n=>e.check(s._guid(t.ZodGUID,n)),e.cuid=n=>e.check(s._cuid(t.ZodCUID,n)),e.cuid2=n=>e.check(s._cuid2(t.ZodCUID2,n)),e.ulid=n=>e.check(s._ulid(t.ZodULID,n)),e.base64=n=>e.check(s._base64(t.ZodBase64,n)),e.base64url=n=>e.check(s._base64url(t.ZodBase64URL,n)),e.xid=n=>e.check(s._xid(t.ZodXID,n)),e.ksuid=n=>e.check(s._ksuid(t.ZodKSUID,n)),e.ipv4=n=>e.check(s._ipv4(t.ZodIPv4,n)),e.ipv6=n=>e.check(s._ipv6(t.ZodIPv6,n)),e.cidrv4=n=>e.check(s._cidrv4(t.ZodCIDRv4,n)),e.cidrv6=n=>e.check(s._cidrv6(t.ZodCIDRv6,n)),e.e164=n=>e.check(s._e164(t.ZodE164,n)),e.datetime=t=>e.check(u.datetime(t)),e.date=t=>e.check(u.date(t)),e.time=t=>e.check(u.time(t)),e.duration=t=>e.check(u.duration(t))}),t.ZodStringFormat=s.$constructor("ZodStringFormat",(e,n)=>{s.$ZodStringFormat.init(e,n),t._ZodString.init(e,n)}),t.ZodEmail=s.$constructor("ZodEmail",(e,n)=>{s.$ZodEmail.init(e,n),t.ZodStringFormat.init(e,n)}),t.ZodGUID=s.$constructor("ZodGUID",(e,n)=>{s.$ZodGUID.init(e,n),t.ZodStringFormat.init(e,n)}),t.ZodUUID=s.$constructor("ZodUUID",(e,n)=>{s.$ZodUUID.init(e,n),t.ZodStringFormat.init(e,n)}),t.ZodURL=s.$constructor("ZodURL",(e,n)=>{s.$ZodURL.init(e,n),t.ZodStringFormat.init(e,n)}),t.ZodEmoji=s.$constructor("ZodEmoji",(e,n)=>{s.$ZodEmoji.init(e,n),t.ZodStringFormat.init(e,n)}),t.ZodNanoID=s.$constructor("ZodNanoID",(e,n)=>{s.$ZodNanoID.init(e,n),t.ZodStringFormat.init(e,n)}),t.ZodCUID=s.$constructor("ZodCUID",(e,n)=>{s.$ZodCUID.init(e,n),t.ZodStringFormat.init(e,n)}),t.ZodCUID2=s.$constructor("ZodCUID2",(e,n)=>{s.$ZodCUID2.init(e,n),t.ZodStringFormat.init(e,n)}),t.ZodULID=s.$constructor("ZodULID",(e,n)=>{s.$ZodULID.init(e,n),t.ZodStringFormat.init(e,n)}),t.ZodXID=s.$constructor("ZodXID",(e,n)=>{s.$ZodXID.init(e,n),t.ZodStringFormat.init(e,n)}),t.ZodKSUID=s.$constructor("ZodKSUID",(e,n)=>{s.$ZodKSUID.init(e,n),t.ZodStringFormat.init(e,n)}),t.ZodIPv4=s.$constructor("ZodIPv4",(e,n)=>{s.$ZodIPv4.init(e,n),t.ZodStringFormat.init(e,n)}),t.ZodIPv6=s.$constructor("ZodIPv6",(e,n)=>{s.$ZodIPv6.init(e,n),t.ZodStringFormat.init(e,n)}),t.ZodCIDRv4=s.$constructor("ZodCIDRv4",(e,n)=>{s.$ZodCIDRv4.init(e,n),t.ZodStringFormat.init(e,n)}),t.ZodCIDRv6=s.$constructor("ZodCIDRv6",(e,n)=>{s.$ZodCIDRv6.init(e,n),t.ZodStringFormat.init(e,n)}),t.ZodBase64=s.$constructor("ZodBase64",(e,n)=>{s.$ZodBase64.init(e,n),t.ZodStringFormat.init(e,n)}),t.ZodBase64URL=s.$constructor("ZodBase64URL",(e,n)=>{s.$ZodBase64URL.init(e,n),t.ZodStringFormat.init(e,n)}),t.ZodE164=s.$constructor("ZodE164",(e,n)=>{s.$ZodE164.init(e,n),t.ZodStringFormat.init(e,n)}),t.ZodJWT=s.$constructor("ZodJWT",(e,n)=>{s.$ZodJWT.init(e,n),t.ZodStringFormat.init(e,n)}),t.ZodCustomStringFormat=s.$constructor("ZodCustomStringFormat",(e,n)=>{s.$ZodCustomStringFormat.init(e,n),t.ZodStringFormat.init(e,n)}),t.ZodNumber=s.$constructor("ZodNumber",(e,n)=>{s.$ZodNumber.init(e,n),t.ZodType.init(e,n),e.gt=(t,n)=>e.check(c.gt(t,n)),e.gte=(t,n)=>e.check(c.gte(t,n)),e.min=(t,n)=>e.check(c.gte(t,n)),e.lt=(t,n)=>e.check(c.lt(t,n)),e.lte=(t,n)=>e.check(c.lte(t,n)),e.max=(t,n)=>e.check(c.lte(t,n)),e.int=t=>e.check(f(t)),e.safe=t=>e.check(f(t)),e.positive=t=>e.check(c.gt(0,t)),e.nonnegative=t=>e.check(c.gte(0,t)),e.negative=t=>e.check(c.lt(0,t)),e.nonpositive=t=>e.check(c.lte(0,t)),e.multipleOf=(t,n)=>e.check(c.multipleOf(t,n)),e.step=(t,n)=>e.check(c.multipleOf(t,n)),e.finite=()=>e;const r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null}),t.ZodNumberFormat=s.$constructor("ZodNumberFormat",(e,n)=>{s.$ZodNumberFormat.init(e,n),t.ZodNumber.init(e,n)}),t.ZodBoolean=s.$constructor("ZodBoolean",(e,n)=>{s.$ZodBoolean.init(e,n),t.ZodType.init(e,n)}),t.ZodBigInt=s.$constructor("ZodBigInt",(e,n)=>{s.$ZodBigInt.init(e,n),t.ZodType.init(e,n),e.gte=(t,n)=>e.check(c.gte(t,n)),e.min=(t,n)=>e.check(c.gte(t,n)),e.gt=(t,n)=>e.check(c.gt(t,n)),e.gte=(t,n)=>e.check(c.gte(t,n)),e.min=(t,n)=>e.check(c.gte(t,n)),e.lt=(t,n)=>e.check(c.lt(t,n)),e.lte=(t,n)=>e.check(c.lte(t,n)),e.max=(t,n)=>e.check(c.lte(t,n)),e.positive=t=>e.check(c.gt(BigInt(0),t)),e.negative=t=>e.check(c.lt(BigInt(0),t)),e.nonpositive=t=>e.check(c.lte(BigInt(0),t)),e.nonnegative=t=>e.check(c.gte(BigInt(0),t)),e.multipleOf=(t,n)=>e.check(c.multipleOf(t,n));const r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null}),t.ZodBigIntFormat=s.$constructor("ZodBigIntFormat",(e,n)=>{s.$ZodBigIntFormat.init(e,n),t.ZodBigInt.init(e,n)}),t.ZodSymbol=s.$constructor("ZodSymbol",(e,n)=>{s.$ZodSymbol.init(e,n),t.ZodType.init(e,n)}),t.ZodUndefined=s.$constructor("ZodUndefined",(e,n)=>{s.$ZodUndefined.init(e,n),t.ZodType.init(e,n)}),t.ZodNull=s.$constructor("ZodNull",(e,n)=>{s.$ZodNull.init(e,n),t.ZodType.init(e,n)}),t.ZodAny=s.$constructor("ZodAny",(e,n)=>{s.$ZodAny.init(e,n),t.ZodType.init(e,n)}),t.ZodUnknown=s.$constructor("ZodUnknown",(e,n)=>{s.$ZodUnknown.init(e,n),t.ZodType.init(e,n)}),t.ZodNever=s.$constructor("ZodNever",(e,n)=>{s.$ZodNever.init(e,n),t.ZodType.init(e,n)}),t.ZodVoid=s.$constructor("ZodVoid",(e,n)=>{s.$ZodVoid.init(e,n),t.ZodType.init(e,n)}),t.ZodDate=s.$constructor("ZodDate",(e,n)=>{s.$ZodDate.init(e,n),t.ZodType.init(e,n),e.min=(t,n)=>e.check(c.gte(t,n)),e.max=(t,n)=>e.check(c.lte(t,n));const r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null}),t.ZodArray=s.$constructor("ZodArray",(e,n)=>{s.$ZodArray.init(e,n),t.ZodType.init(e,n),e.element=n.element,e.min=(t,n)=>e.check(c.minLength(t,n)),e.nonempty=t=>e.check(c.minLength(1,t)),e.max=(t,n)=>e.check(c.maxLength(t,n)),e.length=(t,n)=>e.check(c.length(t,n)),e.unwrap=()=>e.element}),t.ZodObject=s.$constructor("ZodObject",(e,n)=>{s.$ZodObject.init(e,n),t.ZodType.init(e,n),a.util.defineLazy(e,"shape",()=>n.shape),e.keyof=()=>w(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:v()}),e.loose=()=>e.clone({...e._zod.def,catchall:v()}),e.strict=()=>e.clone({...e._zod.def,catchall:g()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>a.util.extend(e,t),e.merge=t=>a.util.merge(e,t),e.pick=t=>a.util.pick(e,t),e.omit=t=>a.util.omit(e,t),e.partial=(...n)=>a.util.partial(t.ZodOptional,e,n[0]),e.required=(...n)=>a.util.required(t.ZodNonOptional,e,n[0])}),t.ZodUnion=s.$constructor("ZodUnion",(e,n)=>{s.$ZodUnion.init(e,n),t.ZodType.init(e,n),e.options=n.options}),t.ZodDiscriminatedUnion=s.$constructor("ZodDiscriminatedUnion",(e,n)=>{t.ZodUnion.init(e,n),s.$ZodDiscriminatedUnion.init(e,n)}),t.ZodIntersection=s.$constructor("ZodIntersection",(e,n)=>{s.$ZodIntersection.init(e,n),t.ZodType.init(e,n)}),t.ZodTuple=s.$constructor("ZodTuple",(e,n)=>{s.$ZodTuple.init(e,n),t.ZodType.init(e,n),e.rest=t=>e.clone({...e._zod.def,rest:t})}),t.ZodRecord=s.$constructor("ZodRecord",(e,n)=>{s.$ZodRecord.init(e,n),t.ZodType.init(e,n),e.keyType=n.keyType,e.valueType=n.valueType}),t.ZodMap=s.$constructor("ZodMap",(e,n)=>{s.$ZodMap.init(e,n),t.ZodType.init(e,n),e.keyType=n.keyType,e.valueType=n.valueType}),t.ZodSet=s.$constructor("ZodSet",(e,n)=>{s.$ZodSet.init(e,n),t.ZodType.init(e,n),e.min=(...t)=>e.check(s._minSize(...t)),e.nonempty=t=>e.check(s._minSize(1,t)),e.max=(...t)=>e.check(s._maxSize(...t)),e.size=(...t)=>e.check(s._size(...t))}),t.ZodEnum=s.$constructor("ZodEnum",(e,n)=>{s.$ZodEnum.init(e,n),t.ZodType.init(e,n),e.enum=n.entries,e.options=Object.values(n.entries);const r=new Set(Object.keys(n.entries));e.extract=(e,i)=>{const o={};for(const t of e){if(!r.has(t))throw new Error(`Key ${t} not found in enum`);o[t]=n.entries[t]}return new t.ZodEnum({...n,checks:[],...a.util.normalizeParams(i),entries:o})},e.exclude=(e,i)=>{const o={...n.entries};for(const t of e){if(!r.has(t))throw new Error(`Key ${t} not found in enum`);delete o[t]}return new t.ZodEnum({...n,checks:[],...a.util.normalizeParams(i),entries:o})}}),t.ZodLiteral=s.$constructor("ZodLiteral",(e,n)=>{s.$ZodLiteral.init(e,n),t.ZodType.init(e,n),e.values=new Set(n.values),Object.defineProperty(e,"value",{get(){if(n.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return n.values[0]}})}),t.ZodFile=s.$constructor("ZodFile",(e,n)=>{s.$ZodFile.init(e,n),t.ZodType.init(e,n),e.min=(t,n)=>e.check(s._minSize(t,n)),e.max=(t,n)=>e.check(s._maxSize(t,n)),e.mime=(t,n)=>e.check(s._mime(Array.isArray(t)?t:[t],n))}),t.ZodTransform=s.$constructor("ZodTransform",(e,n)=>{s.$ZodTransform.init(e,n),t.ZodType.init(e,n),e._zod.parse=(t,r)=>{t.addIssue=r=>{if("string"==typeof r)t.issues.push(a.util.issue(r,t.value,n));else{const n=r;n.fatal&&(n.continue=!1),n.code??(n.code="custom"),n.input??(n.input=t.value),n.inst??(n.inst=e),n.continue??(n.continue=!0),t.issues.push(a.util.issue(n))}};const i=n.transform(t.value,t);return i instanceof Promise?i.then(e=>(t.value=e,t)):(t.value=i,t)}}),t.ZodOptional=s.$constructor("ZodOptional",(e,n)=>{s.$ZodOptional.init(e,n),t.ZodType.init(e,n),e.unwrap=()=>e._zod.def.innerType}),t.ZodNullable=s.$constructor("ZodNullable",(e,n)=>{s.$ZodNullable.init(e,n),t.ZodType.init(e,n),e.unwrap=()=>e._zod.def.innerType}),t.ZodDefault=s.$constructor("ZodDefault",(e,n)=>{s.$ZodDefault.init(e,n),t.ZodType.init(e,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),t.ZodPrefault=s.$constructor("ZodPrefault",(e,n)=>{s.$ZodPrefault.init(e,n),t.ZodType.init(e,n),e.unwrap=()=>e._zod.def.innerType}),t.ZodNonOptional=s.$constructor("ZodNonOptional",(e,n)=>{s.$ZodNonOptional.init(e,n),t.ZodType.init(e,n),e.unwrap=()=>e._zod.def.innerType}),t.ZodSuccess=s.$constructor("ZodSuccess",(e,n)=>{s.$ZodSuccess.init(e,n),t.ZodType.init(e,n),e.unwrap=()=>e._zod.def.innerType}),t.ZodCatch=s.$constructor("ZodCatch",(e,n)=>{s.$ZodCatch.init(e,n),t.ZodType.init(e,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),t.ZodNaN=s.$constructor("ZodNaN",(e,n)=>{s.$ZodNaN.init(e,n),t.ZodType.init(e,n)}),t.ZodPipe=s.$constructor("ZodPipe",(e,n)=>{s.$ZodPipe.init(e,n),t.ZodType.init(e,n),e.in=n.in,e.out=n.out}),t.ZodReadonly=s.$constructor("ZodReadonly",(e,n)=>{s.$ZodReadonly.init(e,n),t.ZodType.init(e,n)}),t.ZodTemplateLiteral=s.$constructor("ZodTemplateLiteral",(e,n)=>{s.$ZodTemplateLiteral.init(e,n),t.ZodType.init(e,n)}),t.ZodLazy=s.$constructor("ZodLazy",(e,n)=>{s.$ZodLazy.init(e,n),t.ZodType.init(e,n),e.unwrap=()=>e._zod.def.getter()}),t.ZodPromise=s.$constructor("ZodPromise",(e,n)=>{s.$ZodPromise.init(e,n),t.ZodType.init(e,n),e.unwrap=()=>e._zod.def.innerType}),t.ZodCustom=s.$constructor("ZodCustom",(e,n)=>{s.$ZodCustom.init(e,n),t.ZodType.init(e,n)}),t.stringbool=(...e)=>s._stringbool({Pipe:t.ZodPipe,Boolean:t.ZodBoolean,String:t.ZodString,Transform:t.ZodTransform},...e)}},t={},n=function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}(64950);module.exports=n})();