多维表格
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

3 lines
1.3 MiB

#! /usr/bin/env node
/*! For license information please see cli.js.LICENSE.txt */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.libs=t():e.libs=t()}("undefined"!=typeof self?self:this,(()=>(()=>{var __webpack_modules__={41723:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ENTRY_PROVIDER_WATERMARK=t.CATCH_WATERMARK=t.CONTROLLER_WATERMARK=t.INJECTABLE_WATERMARK=t.VERSION_METADATA=t.SSE_METADATA=t.RESPONSE_PASSTHROUGH_METADATA=t.REDIRECT_METADATA=t.HEADERS_METADATA=t.MODULE_PATH=t.HTTP_CODE_METADATA=t.RENDER_METADATA=t.ENHANCER_KEY_TO_SUBTYPE_MAP=t.EXCEPTION_FILTERS_METADATA=t.INTERCEPTORS_METADATA=t.GUARDS_METADATA=t.PIPES_METADATA=t.FILTER_CATCH_EXCEPTIONS=t.CUSTOM_ROUTE_ARGS_METADATA=t.ROUTE_ARGS_METADATA=t.METHOD_METADATA=t.SCOPE_OPTIONS_METADATA=t.OPTIONAL_PROPERTY_DEPS_METADATA=t.PROPERTY_DEPS_METADATA=t.OPTIONAL_DEPS_METADATA=t.SELF_DECLARED_DEPS_METADATA=t.PARAMTYPES_METADATA=t.PATH_METADATA=t.HOST_METADATA=t.GLOBAL_MODULE_METADATA=t.MODULE_METADATA=void 0,t.MODULE_METADATA={IMPORTS:"imports",PROVIDERS:"providers",CONTROLLERS:"controllers",EXPORTS:"exports"},t.GLOBAL_MODULE_METADATA="__module:global__",t.HOST_METADATA="host",t.PATH_METADATA="path",t.PARAMTYPES_METADATA="design:paramtypes",t.SELF_DECLARED_DEPS_METADATA="self:paramtypes",t.OPTIONAL_DEPS_METADATA="optional:paramtypes",t.PROPERTY_DEPS_METADATA="self:properties_metadata",t.OPTIONAL_PROPERTY_DEPS_METADATA="optional:properties_metadata",t.SCOPE_OPTIONS_METADATA="scope:options",t.METHOD_METADATA="method",t.ROUTE_ARGS_METADATA="__routeArguments__",t.CUSTOM_ROUTE_ARGS_METADATA="__customRouteArgs__",t.FILTER_CATCH_EXCEPTIONS="__filterCatchExceptions__",t.PIPES_METADATA="__pipes__",t.GUARDS_METADATA="__guards__",t.INTERCEPTORS_METADATA="__interceptors__",t.EXCEPTION_FILTERS_METADATA="__exceptionFilters__",t.ENHANCER_KEY_TO_SUBTYPE_MAP={[t.GUARDS_METADATA]:"guard",[t.INTERCEPTORS_METADATA]:"interceptor",[t.PIPES_METADATA]:"pipe",[t.EXCEPTION_FILTERS_METADATA]:"filter"},t.RENDER_METADATA="__renderTemplate__",t.HTTP_CODE_METADATA="__httpCode__",t.MODULE_PATH="__module_path__",t.HEADERS_METADATA="__headers__",t.REDIRECT_METADATA="__redirect__",t.RESPONSE_PASSTHROUGH_METADATA="__responsePassthrough__",t.SSE_METADATA="__sse__",t.VERSION_METADATA="__version__",t.INJECTABLE_WATERMARK="__injectable__",t.CONTROLLER_WATERMARK="__controller__",t.CATCH_WATERMARK="__catch__",t.ENTRY_PROVIDER_WATERMARK="__entryProvider__"},47396:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.applyDecorators=void 0,t.applyDecorators=function(...e){return(t,n,a)=>{for(const r of e)t instanceof Function&&!a?r(t):r(t,n,a)}}},35305:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Bind=void 0,t.Bind=function(...e){return(t,n,a)=>(e.forEach(((e,a)=>e(t,n,a))),a)}},96245:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Catch=void 0;const a=n(41723);t.Catch=function(...e){return t=>{Reflect.defineMetadata(a.CATCH_WATERMARK,!0,t),Reflect.defineMetadata(a.FILTER_CATCH_EXCEPTIONS,e,t)}}},12106:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Controller=void 0;const a=n(41723),r=n(132);t.Controller=function(e){const[t,n,i,s]=(0,r.isUndefined)(e)?["/",void 0,void 0,void 0]:(0,r.isString)(e)||Array.isArray(e)?[e,void 0,void 0,void 0]:[e.path||"/",e.host,{scope:e.scope,durable:e.durable},Array.isArray(e.version)?Array.from(new Set(e.version)):e.version];return e=>{Reflect.defineMetadata(a.CONTROLLER_WATERMARK,!0,e),Reflect.defineMetadata(a.PATH_METADATA,t,e),Reflect.defineMetadata(a.HOST_METADATA,n,e),Reflect.defineMetadata(a.SCOPE_OPTIONS_METADATA,i,e),Reflect.defineMetadata(a.VERSION_METADATA,s,e)}}},68883:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Dependencies=t.flatten=void 0;const a=n(41723);function r(e){const t=[].concat(...e);return t.some(Array.isArray)?r(t):t}t.flatten=r;t.Dependencies=(...e)=>{const t=r(e);return e=>{Reflect.defineMetadata(a.PARAMTYPES_METADATA,t,e)}}},62149:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UseFilters=void 0;const a=n(41723),r=n(38134),i=n(132),s=n(57688);t.UseFilters=(...e)=>function(...e){return(t,n,o)=>{const c=e=>e&&((0,i.isFunction)(e)||(0,i.isFunction)(e.catch));return o?((0,s.validateEach)(t.constructor,e,c,"@UseFilters","filter"),(0,r.extendArrayMetadata)(a.EXCEPTION_FILTERS_METADATA,e,o.value),o):((0,s.validateEach)(t,e,c,"@UseFilters","filter"),(0,r.extendArrayMetadata)(a.EXCEPTION_FILTERS_METADATA,e,t),t)}}(...e)},13033:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(92443);a.__exportStar(n(35305),t),a.__exportStar(n(96245),t),a.__exportStar(n(12106),t),a.__exportStar(n(68883),t),a.__exportStar(n(62149),t),a.__exportStar(n(13651),t),a.__exportStar(n(80071),t),a.__exportStar(n(21130),t),a.__exportStar(n(71916),t),a.__exportStar(n(44226),t),a.__exportStar(n(80148),t),a.__exportStar(n(84717),t),a.__exportStar(n(47396),t),a.__exportStar(n(73542),t)},13651:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Inject=void 0;const a=n(41723),r=n(132);t.Inject=function(e){const t=arguments.length>0;return(n,i,s)=>{let o=e||Reflect.getMetadata("design:type",n,i);if(o||t||(o=Reflect.getMetadata(a.PARAMTYPES_METADATA,n,i)?.[s]),!(0,r.isUndefined)(s)){let e=Reflect.getMetadata(a.SELF_DECLARED_DEPS_METADATA,n)||[];return e=[...e,{index:s,param:o}],void Reflect.defineMetadata(a.SELF_DECLARED_DEPS_METADATA,e,n)}let c=Reflect.getMetadata(a.PROPERTY_DEPS_METADATA,n.constructor)||[];c=[...c,{key:i,type:o}],Reflect.defineMetadata(a.PROPERTY_DEPS_METADATA,c,n.constructor)}}},80071:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mixin=t.Injectable=void 0;const a=n(17063),r=n(41723);function i(e){return t=>{Reflect.defineMetadata(r.INJECTABLE_WATERMARK,!0,t),Reflect.defineMetadata(r.SCOPE_OPTIONS_METADATA,e,t)}}t.Injectable=i,t.mixin=function(e){return Object.defineProperty(e,"name",{value:(0,a.uid)(21)}),i()(e),e}},21130:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Optional=void 0;const a=n(41723),r=n(132);t.Optional=function(){return(e,t,n)=>{if(!(0,r.isUndefined)(n)){const t=Reflect.getMetadata(a.OPTIONAL_DEPS_METADATA,e)||[];return void Reflect.defineMetadata(a.OPTIONAL_DEPS_METADATA,[...t,n],e)}const i=Reflect.getMetadata(a.OPTIONAL_PROPERTY_DEPS_METADATA,e.constructor)||[];Reflect.defineMetadata(a.OPTIONAL_PROPERTY_DEPS_METADATA,[...i,t],e.constructor)}}},71916:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SetMetadata=void 0;t.SetMetadata=(e,t)=>{const n=(n,a,r)=>r?(Reflect.defineMetadata(e,t,r.value),r):(Reflect.defineMetadata(e,t,n),n);return n.KEY=e,n}},44226:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UseGuards=void 0;const a=n(41723),r=n(38134),i=n(132),s=n(57688);t.UseGuards=function(...e){return(t,n,o)=>{const c=e=>e&&((0,i.isFunction)(e)||(0,i.isFunction)(e.canActivate));return o?((0,s.validateEach)(t.constructor,e,c,"@UseGuards","guard"),(0,r.extendArrayMetadata)(a.GUARDS_METADATA,e,o.value),o):((0,s.validateEach)(t,e,c,"@UseGuards","guard"),(0,r.extendArrayMetadata)(a.GUARDS_METADATA,e,t),t)}}},80148:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UseInterceptors=void 0;const a=n(41723),r=n(38134),i=n(132),s=n(57688);t.UseInterceptors=function(...e){return(t,n,o)=>{const c=e=>e&&((0,i.isFunction)(e)||(0,i.isFunction)(e.intercept));return o?((0,s.validateEach)(t.constructor,e,c,"@UseInterceptors","interceptor"),(0,r.extendArrayMetadata)(a.INTERCEPTORS_METADATA,e,o.value),o):((0,s.validateEach)(t,e,c,"@UseInterceptors","interceptor"),(0,r.extendArrayMetadata)(a.INTERCEPTORS_METADATA,e,t),t)}}},84717:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UsePipes=void 0;const a=n(41723),r=n(38134),i=n(132),s=n(57688);t.UsePipes=function(...e){return(t,n,o)=>o?((0,r.extendArrayMetadata)(a.PIPES_METADATA,e,o.value),o):((0,s.validateEach)(t,e,(e=>e&&((0,i.isFunction)(e)||(0,i.isFunction)(e.transform))),"@UsePipes","pipe"),(0,r.extendArrayMetadata)(a.PIPES_METADATA,e,t),t)}},73542:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Version=void 0;const a=n(41723);t.Version=function(e){return Array.isArray(e)&&(e=Array.from(new Set(e))),(t,n,r)=>(Reflect.defineMetadata(a.VERSION_METADATA,e,r.value),r)}},50203:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createParamDecorator=void 0;const a=n(17063),r=n(41723),i=n(56467),s=n(132);t.createParamDecorator=function(e,t=[]){const n=(0,a.uid)(21);return(a,...o)=>(c,u,l)=>{const d=Reflect.getMetadata(r.ROUTE_ARGS_METADATA,c.constructor,u)||{},p=(0,s.isNil)(a)||!((f=a)&&((0,s.isFunction)(f)&&f.prototype&&(0,s.isFunction)(f.prototype.transform)||(0,s.isFunction)(f.transform)));var f;const m=p?a:void 0,h=p?o:[a,...o];Reflect.defineMetadata(r.ROUTE_ARGS_METADATA,(0,i.assignCustomParameterMetadata)(d,n,l,e,m,...h),c.constructor,u),t.forEach((e=>e(c,u,l)))}}},26178:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Header=void 0;const a=n(41723),r=n(38134);t.Header=function(e,t){return(n,i,s)=>((0,r.extendArrayMetadata)(a.HEADERS_METADATA,[{name:e,value:t}],s.value),s)}},37395:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HttpCode=void 0;const a=n(41723);t.HttpCode=function(e){return(t,n,r)=>(Reflect.defineMetadata(a.HTTP_CODE_METADATA,e,r.value),r)}},17402:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(92443);a.__exportStar(n(18051),t),a.__exportStar(n(15205),t),a.__exportStar(n(37395),t),a.__exportStar(n(50203),t),a.__exportStar(n(69227),t),a.__exportStar(n(26178),t),a.__exportStar(n(33439),t),a.__exportStar(n(96816),t)},33439:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Redirect=void 0;const a=n(41723);t.Redirect=function(e="",t){return(n,r,i)=>(Reflect.defineMetadata(a.REDIRECT_METADATA,{statusCode:t,url:e},i.value),i)}},69227:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Render=void 0;const a=n(41723);t.Render=function(e){return(t,n,r)=>(Reflect.defineMetadata(a.RENDER_METADATA,e,r.value),r)}},18051:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Search=t.All=t.Head=t.Options=t.Patch=t.Put=t.Delete=t.Get=t.Post=t.RequestMapping=void 0;const a=n(41723),r=n(56319),i={[a.PATH_METADATA]:"/",[a.METHOD_METADATA]:r.RequestMethod.GET};t.RequestMapping=(e=i)=>{const t=e[a.PATH_METADATA],n=t&&t.length?t:"/",s=e[a.METHOD_METADATA]||r.RequestMethod.GET;return(e,t,r)=>(Reflect.defineMetadata(a.PATH_METADATA,n,r.value),Reflect.defineMetadata(a.METHOD_METADATA,s,r.value),r)};const s=e=>n=>(0,t.RequestMapping)({[a.PATH_METADATA]:n,[a.METHOD_METADATA]:e});t.Post=s(r.RequestMethod.POST),t.Get=s(r.RequestMethod.GET),t.Delete=s(r.RequestMethod.DELETE),t.Put=s(r.RequestMethod.PUT),t.Patch=s(r.RequestMethod.PATCH),t.Options=s(r.RequestMethod.OPTIONS),t.Head=s(r.RequestMethod.HEAD),t.All=s(r.RequestMethod.ALL),t.Search=s(r.RequestMethod.SEARCH)},15205:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Res=t.Req=t.HostParam=t.Param=t.RawBody=t.Body=t.Query=t.Headers=t.UploadedFiles=t.UploadedFile=t.Session=t.Ip=t.Next=t.Response=t.Request=t.assignMetadata=void 0;const a=n(41723),r=n(76066),i=n(132);function s(e,t,n,a,...r){return{...e,[`${t}:${n}`]:{index:n,data:a,pipes:r}}}function o(e){return t=>(n,r,i)=>{const o=Reflect.getMetadata(a.ROUTE_ARGS_METADATA,n.constructor,r)||{};Reflect.defineMetadata(a.ROUTE_ARGS_METADATA,s(o,e,i,t),n.constructor,r)}}t.assignMetadata=s;const c=e=>(t,...n)=>(r,o,c)=>{const u=Reflect.getMetadata(a.ROUTE_ARGS_METADATA,r.constructor,o)||{},l=(0,i.isNil)(t)||(0,i.isString)(t),d=l?t:void 0,p=l?n:[t,...n];Reflect.defineMetadata(a.ROUTE_ARGS_METADATA,s(u,e,c,d,...p),r.constructor,o)};t.Request=o(r.RouteParamtypes.REQUEST);t.Response=e=>(t,n,i)=>(e?.passthrough&&Reflect.defineMetadata(a.RESPONSE_PASSTHROUGH_METADATA,e?.passthrough,t.constructor,n),o(r.RouteParamtypes.RESPONSE)()(t,n,i)),t.Next=o(r.RouteParamtypes.NEXT),t.Ip=o(r.RouteParamtypes.IP),t.Session=o(r.RouteParamtypes.SESSION),t.UploadedFile=function(e,...t){return c(r.RouteParamtypes.FILE)(e,...t)},t.UploadedFiles=function(...e){return c(r.RouteParamtypes.FILES)(void 0,...e)},t.Headers=o(r.RouteParamtypes.HEADERS),t.Query=function(e,...t){return c(r.RouteParamtypes.QUERY)(e,...t)},t.Body=function(e,...t){return c(r.RouteParamtypes.BODY)(e,...t)},t.RawBody=function(...e){return c(r.RouteParamtypes.RAW_BODY)(void 0,...e)},t.Param=function(e,...t){return c(r.RouteParamtypes.PARAM)(e,...t)},t.HostParam=function(e){return o(r.RouteParamtypes.HOST)(e)},t.Req=t.Request,t.Res=t.Response},96816:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sse=void 0;const a=n(41723),r=n(56319);t.Sse=function(e){return(t,n,i)=>(e=e&&e.length?e:"/",Reflect.defineMetadata(a.PATH_METADATA,e,i.value),Reflect.defineMetadata(a.METHOD_METADATA,r.RequestMethod.GET,i.value),Reflect.defineMetadata(a.SSE_METADATA,!0,i.value),i)}},90789:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(92443);a.__exportStar(n(13033),t),a.__exportStar(n(97007),t),a.__exportStar(n(17402),t)},87807:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Global=void 0;const a=n(41723);t.Global=function(){return e=>{Reflect.defineMetadata(a.GLOBAL_MODULE_METADATA,!0,e)}}},97007:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(92443);a.__exportStar(n(87807),t),a.__exportStar(n(90512),t)},90512:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Module=void 0;const a=n(68070);t.Module=function(e){const t=Object.keys(e);return(0,a.validateModuleKeys)(t),t=>{for(const n in e)e.hasOwnProperty(n)&&Reflect.defineMetadata(n,e[n],t)}}},48747:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.HttpStatus=void 0,function(e){e[e.CONTINUE=100]="CONTINUE",e[e.SWITCHING_PROTOCOLS=101]="SWITCHING_PROTOCOLS",e[e.PROCESSING=102]="PROCESSING",e[e.EARLYHINTS=103]="EARLYHINTS",e[e.OK=200]="OK",e[e.CREATED=201]="CREATED",e[e.ACCEPTED=202]="ACCEPTED",e[e.NON_AUTHORITATIVE_INFORMATION=203]="NON_AUTHORITATIVE_INFORMATION",e[e.NO_CONTENT=204]="NO_CONTENT",e[e.RESET_CONTENT=205]="RESET_CONTENT",e[e.PARTIAL_CONTENT=206]="PARTIAL_CONTENT",e[e.AMBIGUOUS=300]="AMBIGUOUS",e[e.MOVED_PERMANENTLY=301]="MOVED_PERMANENTLY",e[e.FOUND=302]="FOUND",e[e.SEE_OTHER=303]="SEE_OTHER",e[e.NOT_MODIFIED=304]="NOT_MODIFIED",e[e.TEMPORARY_REDIRECT=307]="TEMPORARY_REDIRECT",e[e.PERMANENT_REDIRECT=308]="PERMANENT_REDIRECT",e[e.BAD_REQUEST=400]="BAD_REQUEST",e[e.UNAUTHORIZED=401]="UNAUTHORIZED",e[e.PAYMENT_REQUIRED=402]="PAYMENT_REQUIRED",e[e.FORBIDDEN=403]="FORBIDDEN",e[e.NOT_FOUND=404]="NOT_FOUND",e[e.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",e[e.NOT_ACCEPTABLE=406]="NOT_ACCEPTABLE",e[e.PROXY_AUTHENTICATION_REQUIRED=407]="PROXY_AUTHENTICATION_REQUIRED",e[e.REQUEST_TIMEOUT=408]="REQUEST_TIMEOUT",e[e.CONFLICT=409]="CONFLICT",e[e.GONE=410]="GONE",e[e.LENGTH_REQUIRED=411]="LENGTH_REQUIRED",e[e.PRECONDITION_FAILED=412]="PRECONDITION_FAILED",e[e.PAYLOAD_TOO_LARGE=413]="PAYLOAD_TOO_LARGE",e[e.URI_TOO_LONG=414]="URI_TOO_LONG",e[e.UNSUPPORTED_MEDIA_TYPE=415]="UNSUPPORTED_MEDIA_TYPE",e[e.REQUESTED_RANGE_NOT_SATISFIABLE=416]="REQUESTED_RANGE_NOT_SATISFIABLE",e[e.EXPECTATION_FAILED=417]="EXPECTATION_FAILED",e[e.I_AM_A_TEAPOT=418]="I_AM_A_TEAPOT",e[e.MISDIRECTED=421]="MISDIRECTED",e[e.UNPROCESSABLE_ENTITY=422]="UNPROCESSABLE_ENTITY",e[e.FAILED_DEPENDENCY=424]="FAILED_DEPENDENCY",e[e.PRECONDITION_REQUIRED=428]="PRECONDITION_REQUIRED",e[e.TOO_MANY_REQUESTS=429]="TOO_MANY_REQUESTS",e[e.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",e[e.NOT_IMPLEMENTED=501]="NOT_IMPLEMENTED",e[e.BAD_GATEWAY=502]="BAD_GATEWAY",e[e.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",e[e.GATEWAY_TIMEOUT=504]="GATEWAY_TIMEOUT",e[e.HTTP_VERSION_NOT_SUPPORTED=505]="HTTP_VERSION_NOT_SUPPORTED"}(n||(t.HttpStatus=n={}))},41751:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(92443);a.__exportStar(n(56319),t),a.__exportStar(n(48747),t),a.__exportStar(n(75043),t),a.__exportStar(n(46901),t)},56319:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.RequestMethod=void 0,function(e){e[e.GET=0]="GET",e[e.POST=1]="POST",e[e.PUT=2]="PUT",e[e.DELETE=3]="DELETE",e[e.PATCH=4]="PATCH",e[e.ALL=5]="ALL",e[e.OPTIONS=6]="OPTIONS",e[e.HEAD=7]="HEAD",e[e.SEARCH=8]="SEARCH"}(n||(t.RequestMethod=n={}))},76066:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.RouteParamtypes=void 0,function(e){e[e.REQUEST=0]="REQUEST",e[e.RESPONSE=1]="RESPONSE",e[e.NEXT=2]="NEXT",e[e.BODY=3]="BODY",e[e.QUERY=4]="QUERY",e[e.PARAM=5]="PARAM",e[e.HEADERS=6]="HEADERS",e[e.SESSION=7]="SESSION",e[e.FILE=8]="FILE",e[e.FILES=9]="FILES",e[e.HOST=10]="HOST",e[e.IP=11]="IP",e[e.RAW_BODY=12]="RAW_BODY"}(n||(t.RouteParamtypes=n={}))},75043:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ShutdownSignal=void 0,function(e){e.SIGHUP="SIGHUP",e.SIGINT="SIGINT",e.SIGQUIT="SIGQUIT",e.SIGILL="SIGILL",e.SIGTRAP="SIGTRAP",e.SIGABRT="SIGABRT",e.SIGBUS="SIGBUS",e.SIGFPE="SIGFPE",e.SIGSEGV="SIGSEGV",e.SIGUSR2="SIGUSR2",e.SIGTERM="SIGTERM"}(n||(t.ShutdownSignal=n={}))},46901:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.VersioningType=void 0,function(e){e[e.URI=0]="URI",e[e.HEADER=1]="HEADER",e[e.MEDIA_TYPE=2]="MEDIA_TYPE",e[e.CUSTOM=3]="CUSTOM"}(n||(t.VersioningType=n={}))},14974:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BadGatewayException=void 0;const a=n(48747),r=n(52554);class i extends r.HttpException{constructor(e,t="Bad Gateway"){const{description:n,httpExceptionOptions:i}=r.HttpException.extractDescriptionAndOptionsFrom(t);super(r.HttpException.createBody(e,n,a.HttpStatus.BAD_GATEWAY),a.HttpStatus.BAD_GATEWAY,i)}}t.BadGatewayException=i},78205:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BadRequestException=void 0;const a=n(48747),r=n(52554);class i extends r.HttpException{constructor(e,t="Bad Request"){const{description:n,httpExceptionOptions:i}=r.HttpException.extractDescriptionAndOptionsFrom(t);super(r.HttpException.createBody(e,n,a.HttpStatus.BAD_REQUEST),a.HttpStatus.BAD_REQUEST,i)}}t.BadRequestException=i},68980:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConflictException=void 0;const a=n(48747),r=n(52554);class i extends r.HttpException{constructor(e,t="Conflict"){const{description:n,httpExceptionOptions:i}=r.HttpException.extractDescriptionAndOptionsFrom(t);super(r.HttpException.createBody(e,n,a.HttpStatus.CONFLICT),a.HttpStatus.CONFLICT,i)}}t.ConflictException=i},99587:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ForbiddenException=void 0;const a=n(48747),r=n(52554);class i extends r.HttpException{constructor(e,t="Forbidden"){const{description:n,httpExceptionOptions:i}=r.HttpException.extractDescriptionAndOptionsFrom(t);super(r.HttpException.createBody(e,n,a.HttpStatus.FORBIDDEN),a.HttpStatus.FORBIDDEN,i)}}t.ForbiddenException=i},82614:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GatewayTimeoutException=void 0;const a=n(48747),r=n(52554);class i extends r.HttpException{constructor(e,t="Gateway Timeout"){const{description:n,httpExceptionOptions:i}=r.HttpException.extractDescriptionAndOptionsFrom(t);super(r.HttpException.createBody(e,n,a.HttpStatus.GATEWAY_TIMEOUT),a.HttpStatus.GATEWAY_TIMEOUT,i)}}t.GatewayTimeoutException=i},40073:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GoneException=void 0;const a=n(48747),r=n(52554);class i extends r.HttpException{constructor(e,t="Gone"){const{description:n,httpExceptionOptions:i}=r.HttpException.extractDescriptionAndOptionsFrom(t);super(r.HttpException.createBody(e,n,a.HttpStatus.GONE),a.HttpStatus.GONE,i)}}t.GoneException=i},32348:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HttpVersionNotSupportedException=void 0;const a=n(48747),r=n(52554);class i extends r.HttpException{constructor(e,t="HTTP Version Not Supported"){const{description:n,httpExceptionOptions:i}=r.HttpException.extractDescriptionAndOptionsFrom(t);super(r.HttpException.createBody(e,n,a.HttpStatus.HTTP_VERSION_NOT_SUPPORTED),a.HttpStatus.HTTP_VERSION_NOT_SUPPORTED,i)}}t.HttpVersionNotSupportedException=i},52554:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HttpException=void 0;const a=n(132);class r extends Error{constructor(e,t,n){super(),this.response=e,this.status=t,this.options=n,this.initMessage(),this.initName(),this.initCause()}initCause(){this.options?.cause&&(this.cause=this.options.cause)}initMessage(){(0,a.isString)(this.response)?this.message=this.response:(0,a.isObject)(this.response)&&(0,a.isString)(this.response.message)?this.message=this.response.message:this.constructor&&(this.message=this.constructor.name.match(/[A-Z][a-z]+|[0-9]+/g)?.join(" ")??"Error")}initName(){this.name=this.constructor.name}getResponse(){return this.response}getStatus(){return this.status}static createBody(e,t,n){return e?(0,a.isString)(e)||Array.isArray(e)?{message:e,error:t,statusCode:n}:e:{message:t,statusCode:n}}static getDescriptionFrom(e){return(0,a.isString)(e)?e:e?.description}static getHttpExceptionOptionsFrom(e){return(0,a.isString)(e)?{}:e}static extractDescriptionAndOptionsFrom(e){return{description:(0,a.isString)(e)?e:e?.description,httpExceptionOptions:(0,a.isString)(e)?{}:e}}}t.HttpException=r},82904:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ImATeapotException=void 0;const a=n(48747),r=n(52554);class i extends r.HttpException{constructor(e,t="I'm a teapot"){const{description:n,httpExceptionOptions:i}=r.HttpException.extractDescriptionAndOptionsFrom(t);super(r.HttpException.createBody(e,n,a.HttpStatus.I_AM_A_TEAPOT),a.HttpStatus.I_AM_A_TEAPOT,i)}}t.ImATeapotException=i},59661:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(92443);a.__exportStar(n(78205),t),a.__exportStar(n(52554),t),a.__exportStar(n(99972),t),a.__exportStar(n(14702),t),a.__exportStar(n(41874),t),a.__exportStar(n(99587),t),a.__exportStar(n(39850),t),a.__exportStar(n(83813),t),a.__exportStar(n(68980),t),a.__exportStar(n(40073),t),a.__exportStar(n(64885),t),a.__exportStar(n(57891),t),a.__exportStar(n(22866),t),a.__exportStar(n(78434),t),a.__exportStar(n(48190),t),a.__exportStar(n(32348),t),a.__exportStar(n(14974),t),a.__exportStar(n(61766),t),a.__exportStar(n(82614),t),a.__exportStar(n(82904),t),a.__exportStar(n(27462),t),a.__exportStar(n(99777),t)},78434:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InternalServerErrorException=void 0;const a=n(48747),r=n(52554);class i extends r.HttpException{constructor(e,t="Internal Server Error"){const{description:n,httpExceptionOptions:i}=r.HttpException.extractDescriptionAndOptionsFrom(t);super(r.HttpException.createBody(e,n,a.HttpStatus.INTERNAL_SERVER_ERROR),a.HttpStatus.INTERNAL_SERVER_ERROR,i)}}t.InternalServerErrorException=i},14702:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MethodNotAllowedException=void 0;const a=n(48747),r=n(52554);class i extends r.HttpException{constructor(e,t="Method Not Allowed"){const{description:n,httpExceptionOptions:i}=r.HttpException.extractDescriptionAndOptionsFrom(t);super(r.HttpException.createBody(e,n,a.HttpStatus.METHOD_NOT_ALLOWED),a.HttpStatus.METHOD_NOT_ALLOWED,i)}}t.MethodNotAllowedException=i},99777:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MisdirectedException=void 0;const a=n(48747),r=n(52554);class i extends r.HttpException{constructor(e,t="Misdirected"){const{description:n,httpExceptionOptions:i}=r.HttpException.extractDescriptionAndOptionsFrom(t);super(r.HttpException.createBody(e,n,a.HttpStatus.MISDIRECTED),a.HttpStatus.MISDIRECTED,i)}}t.MisdirectedException=i},39850:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NotAcceptableException=void 0;const a=n(48747),r=n(52554);class i extends r.HttpException{constructor(e,t="Not Acceptable"){const{description:n,httpExceptionOptions:i}=r.HttpException.extractDescriptionAndOptionsFrom(t);super(r.HttpException.createBody(e,n,a.HttpStatus.NOT_ACCEPTABLE),a.HttpStatus.NOT_ACCEPTABLE,i)}}t.NotAcceptableException=i},41874:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NotFoundException=void 0;const a=n(48747),r=n(52554);class i extends r.HttpException{constructor(e,t="Not Found"){const{description:n,httpExceptionOptions:i}=r.HttpException.extractDescriptionAndOptionsFrom(t);super(r.HttpException.createBody(e,n,a.HttpStatus.NOT_FOUND),a.HttpStatus.NOT_FOUND,i)}}t.NotFoundException=i},48190:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NotImplementedException=void 0;const a=n(48747),r=n(52554);class i extends r.HttpException{constructor(e,t="Not Implemented"){const{description:n,httpExceptionOptions:i}=r.HttpException.extractDescriptionAndOptionsFrom(t);super(r.HttpException.createBody(e,n,a.HttpStatus.NOT_IMPLEMENTED),a.HttpStatus.NOT_IMPLEMENTED,i)}}t.NotImplementedException=i},64885:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PayloadTooLargeException=void 0;const a=n(48747),r=n(52554);class i extends r.HttpException{constructor(e,t="Payload Too Large"){const{description:n,httpExceptionOptions:i}=r.HttpException.extractDescriptionAndOptionsFrom(t);super(r.HttpException.createBody(e,n,a.HttpStatus.PAYLOAD_TOO_LARGE),a.HttpStatus.PAYLOAD_TOO_LARGE,i)}}t.PayloadTooLargeException=i},27462:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PreconditionFailedException=void 0;const a=n(48747),r=n(52554);class i extends r.HttpException{constructor(e,t="Precondition Failed"){const{description:n,httpExceptionOptions:i}=r.HttpException.extractDescriptionAndOptionsFrom(t);super(r.HttpException.createBody(e,n,a.HttpStatus.PRECONDITION_FAILED),a.HttpStatus.PRECONDITION_FAILED,i)}}t.PreconditionFailedException=i},83813:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RequestTimeoutException=void 0;const a=n(48747),r=n(52554);class i extends r.HttpException{constructor(e,t="Request Timeout"){const{description:n,httpExceptionOptions:i}=r.HttpException.extractDescriptionAndOptionsFrom(t);super(r.HttpException.createBody(e,n,a.HttpStatus.REQUEST_TIMEOUT),a.HttpStatus.REQUEST_TIMEOUT,i)}}t.RequestTimeoutException=i},61766:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ServiceUnavailableException=void 0;const a=n(48747),r=n(52554);class i extends r.HttpException{constructor(e,t="Service Unavailable"){const{description:n,httpExceptionOptions:i}=r.HttpException.extractDescriptionAndOptionsFrom(t);super(r.HttpException.createBody(e,n,a.HttpStatus.SERVICE_UNAVAILABLE),a.HttpStatus.SERVICE_UNAVAILABLE,i)}}t.ServiceUnavailableException=i},99972:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnauthorizedException=void 0;const a=n(48747),r=n(52554);class i extends r.HttpException{constructor(e,t="Unauthorized"){const{description:n,httpExceptionOptions:i}=r.HttpException.extractDescriptionAndOptionsFrom(t);super(r.HttpException.createBody(e,n,a.HttpStatus.UNAUTHORIZED),a.HttpStatus.UNAUTHORIZED,i)}}t.UnauthorizedException=i},22866:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnprocessableEntityException=void 0;const a=n(48747),r=n(52554);class i extends r.HttpException{constructor(e,t="Unprocessable Entity"){const{description:n,httpExceptionOptions:i}=r.HttpException.extractDescriptionAndOptionsFrom(t);super(r.HttpException.createBody(e,n,a.HttpStatus.UNPROCESSABLE_ENTITY),a.HttpStatus.UNPROCESSABLE_ENTITY,i)}}t.UnprocessableEntityException=i},57891:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnsupportedMediaTypeException=void 0;const a=n(48747),r=n(52554);class i extends r.HttpException{constructor(e,t="Unsupported Media Type"){const{description:n,httpExceptionOptions:i}=r.HttpException.extractDescriptionAndOptionsFrom(t);super(r.HttpException.createBody(e,n,a.HttpStatus.UNSUPPORTED_MEDIA_TYPE),a.HttpStatus.UNSUPPORTED_MEDIA_TYPE,i)}}t.UnsupportedMediaTypeException=i},30272:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});n(92443).__exportStar(n(36009),t)},36009:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StreamableFile=void 0;const a=n(2203),r=n(39023),i=n(41751),s=n(132),o=n(84707);t.StreamableFile=class{constructor(e,t={}){this.options=t,this.logger=new o.Logger("StreamableFile"),this.handleError=(e,t)=>{t.destroyed||(t.headersSent?t.end():(t.statusCode=i.HttpStatus.BAD_REQUEST,t.send(e.message)))},this.logError=e=>{this.logger.error(e.message,e.stack)},r.types.isUint8Array(e)?(this.stream=new a.Readable,this.stream.push(e),this.stream.push(null),this.options.length??=e.length):e.pipe&&(0,s.isFunction)(e.pipe)&&(this.stream=e)}getStream(){return this.stream}getHeaders(){const{type:e="application/octet-stream",disposition:t,length:n}=this.options;return{type:e,disposition:t,length:n}}get errorHandler(){return this.handleError}setErrorHandler(e){return this.handleError=e,this}get errorLogger(){return this.logError}setErrorLogger(e){return this.logError=e,this}}},58602:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VERSION_NEUTRAL=t.Scope=void 0;const a=n(92443);n(9753),a.__exportStar(n(90789),t),a.__exportStar(n(41751),t),a.__exportStar(n(59661),t),a.__exportStar(n(30272),t);var r=n(22639);Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return r.Scope}}),Object.defineProperty(t,"VERSION_NEUTRAL",{enumerable:!0,get:function(){return r.VERSION_NEUTRAL}}),a.__exportStar(n(29079),t),a.__exportStar(n(1148),t),a.__exportStar(n(62219),t),a.__exportStar(n(84707),t),a.__exportStar(n(78180),t)},95612:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},65790:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},91792:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},31855:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},61185:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},64052:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},26274:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},66599:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},20294:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},10346:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},38438:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},32474:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},34995:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},69335:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},42935:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},82272:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},54064:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(92443);a.__exportStar(n(82272),t),a.__exportStar(n(67910),t),a.__exportStar(n(8282),t),a.__exportStar(n(80837),t),a.__exportStar(n(11895),t)},67910:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8282:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},80837:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},11895:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},29286:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},75674:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},66069:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},36452:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(92443);a.__exportStar(n(29286),t),a.__exportStar(n(75674),t),a.__exportStar(n(66069),t),a.__exportStar(n(30307),t),a.__exportStar(n(35718),t)},30307:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},35718:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},22639:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(92443);a.__exportStar(n(95612),t),a.__exportStar(n(65790),t),a.__exportStar(n(91792),t),a.__exportStar(n(31855),t),a.__exportStar(n(61185),t),a.__exportStar(n(64052),t),a.__exportStar(n(26274),t),a.__exportStar(n(66599),t),a.__exportStar(n(20294),t),a.__exportStar(n(10346),t),a.__exportStar(n(38438),t),a.__exportStar(n(32474),t),a.__exportStar(n(34995),t),a.__exportStar(n(69335),t),a.__exportStar(n(42935),t),a.__exportStar(n(54064),t),a.__exportStar(n(36452),t),a.__exportStar(n(69115),t),a.__exportStar(n(65490),t),a.__exportStar(n(49540),t),a.__exportStar(n(87029),t),a.__exportStar(n(5797),t),a.__exportStar(n(20028),t),a.__exportStar(n(31327),t),a.__exportStar(n(83460),t),a.__exportStar(n(56113),t),a.__exportStar(n(48238),t),a.__exportStar(n(62585),t),a.__exportStar(n(2733),t)},69115:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},65490:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},49540:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(92443);a.__exportStar(n(2689),t),a.__exportStar(n(92800),t),a.__exportStar(n(12554),t),a.__exportStar(n(50760),t)},2689:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},92800:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},12554:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},50760:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},44856:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},24597:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},87029:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(92443);a.__exportStar(n(44856),t),a.__exportStar(n(24597),t),a.__exportStar(n(86681),t),a.__exportStar(n(30623),t),a.__exportStar(n(27122),t),a.__exportStar(n(94921),t),a.__exportStar(n(59355),t),a.__exportStar(n(25657),t)},86681:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},30623:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},27122:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},94921:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},59355:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},25657:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5797:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},20028:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},31327:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},83460:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},56113:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Scope=void 0,function(e){e[e.DEFAULT=0]="DEFAULT",e[e.TRANSIENT=1]="TRANSIENT",e[e.REQUEST=2]="REQUEST"}(n||(t.Scope=n={}))},48238:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},62585:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VERSION_NEUTRAL=void 0,t.VERSION_NEUTRAL=Symbol("VERSION_NEUTRAL")},2733:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},32526:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigurableModuleBuilder=void 0;const a=n(8702),r=n(80049),i=n(41786),s=n(80257);class o{constructor(e={},t){this.options=e,this.logger=new a.Logger(o.name),t&&(this.staticMethodKey=t.staticMethodKey,this.factoryClassMethodKey=t.factoryClassMethodKey,this.transformModuleDefinition=t.transformModuleDefinition,this.extras=t.extras)}setExtras(e,t=(e=>e)){const n=new o(this.options,this);return n.extras=e,n.transformModuleDefinition=t,n}setClassMethodName(e){const t=new o(this.options,this);return t.staticMethodKey=e,t}setFactoryMethodName(e){const t=new o(this.options,this);return t.factoryClassMethodKey=e,t}build(){return this.staticMethodKey??=i.DEFAULT_METHOD_KEY,this.factoryClassMethodKey??=i.DEFAULT_FACTORY_CLASS_METHOD_KEY,this.options.optionsInjectionToken??=this.options.moduleName?this.constructInjectionTokenString():(0,s.generateOptionsInjectionToken)(),this.transformModuleDefinition??=e=>e,{ConfigurableModuleClass:this.createConfigurableModuleCls(),MODULE_OPTIONS_TOKEN:this.options.optionsInjectionToken,ASYNC_OPTIONS_TYPE:this.createTypeProxy("ASYNC_OPTIONS_TYPE"),OPTIONS_TYPE:this.createTypeProxy("OPTIONS_TYPE")}}constructInjectionTokenString(){return`${this.options.moduleName.trim().split(/(?=[A-Z])/).join("_").toUpperCase()}_MODULE_OPTIONS`}createConfigurableModuleCls(){const e=this,t=this.staticMethodKey+i.ASYNC_METHOD_SUFFIX;class n{static[e.staticMethodKey](t){const n=[{provide:e.options.optionsInjectionToken,useValue:this.omitExtras(t,e.extras)}];return e.options.alwaysTransient&&n.push({provide:i.CONFIGURABLE_MODULE_ID,useValue:(0,r.randomStringGenerator)()}),e.transformModuleDefinition({module:this,providers:n},{...e.extras,...t})}static[t](t){const n=this.createAsyncProviders(t);return e.options.alwaysTransient&&n.push({provide:i.CONFIGURABLE_MODULE_ID,useValue:(0,r.randomStringGenerator)()}),e.transformModuleDefinition({module:this,imports:t.imports||[],providers:n},{...e.extras,...t})}static omitExtras(e,t){if(!t)return e;const n={},a=Object.keys(t);return Object.keys(e).filter((e=>!a.includes(e))).forEach((t=>{n[t]=e[t]})),n}static createAsyncProviders(e){return e.useExisting||e.useFactory?e.inject&&e.provideInjectionTokensFrom?[this.createAsyncOptionsProvider(e),...(0,s.getInjectionProviders)(e.provideInjectionTokensFrom,e.inject)]:[this.createAsyncOptionsProvider(e)]:[this.createAsyncOptionsProvider(e),{provide:e.useClass,useClass:e.useClass}]}static createAsyncOptionsProvider(t){return t.useFactory?{provide:e.options.optionsInjectionToken,useFactory:t.useFactory,inject:t.inject||[]}:{provide:e.options.optionsInjectionToken,useFactory:async t=>await t[e.factoryClassMethodKey](),inject:[t.useExisting||t.useClass]}}}return n}createTypeProxy(e){return new Proxy({},{get:()=>{throw new Error(`"${e}" is not supposed to be used as a value.`)}})}}t.ConfigurableModuleBuilder=o},41786:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CONFIGURABLE_MODULE_ID=t.ASYNC_METHOD_SUFFIX=t.DEFAULT_FACTORY_CLASS_METHOD_KEY=t.DEFAULT_METHOD_KEY=void 0,t.DEFAULT_METHOD_KEY="register",t.DEFAULT_FACTORY_CLASS_METHOD_KEY="create",t.ASYNC_METHOD_SUFFIX="Async",t.CONFIGURABLE_MODULE_ID="CONFIGURABLE_MODULE_ID"},29079:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(92443);a.__exportStar(n(32526),t),a.__exportStar(n(35836),t)},50055:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},98892:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8494:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},35836:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(92443);a.__exportStar(n(50055),t),a.__exportStar(n(98892),t),a.__exportStar(n(8494),t)},94699:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateOptionsInjectionToken=void 0;const a=n(80049);t.generateOptionsInjectionToken=function(){return`CONFIGURABLE_MODULE_OPTIONS[${(0,a.randomStringGenerator)()}]`}},42570:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getInjectionProviders=void 0;const n=e=>{return t=e,t?.token&&!t?.prototype?e.token:e;var t};t.getInjectionProviders=function(e,t){const a=[];let r=t.map(n);for(;r.length>0;){const t=(e??[]).filter((e=>!a.includes(e)&&(r.includes(e)||r.includes(e?.provide))));a.push(...t),r=t.filter((e=>e?.inject)).flatMap((e=>e.inject)).map(n)}return a}},80257:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(92443);a.__exportStar(n(94699),t),a.__exportStar(n(42570),t)},88919:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultValuePipe=void 0;const a=n(92443),r=n(80071),i=n(132);let s=class{constructor(e){this.defaultValue=e}transform(e,t){return(0,i.isNil)(e)||(0,i.isNumber)(e)&&isNaN(e)?this.defaultValue:e}};t.DefaultValuePipe=s,t.DefaultValuePipe=s=a.__decorate([(0,r.Injectable)(),a.__metadata("design:paramtypes",[Object])],s)},48570:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileTypeValidator=void 0;const a=n(98251);class r extends a.FileValidator{buildErrorMessage(){return`Validation failed (expected type is ${this.validationOptions.fileType})`}isValid(e){return!this.validationOptions||!!e&&"mimetype"in e&&!!e.mimetype.match(this.validationOptions.fileType)}}t.FileTypeValidator=r},98251:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileValidator=void 0;t.FileValidator=class{constructor(e){this.validationOptions=e}}},50635:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(92443);a.__exportStar(n(48570),t),a.__exportStar(n(98251),t),a.__exportStar(n(74660),t),a.__exportStar(n(44841),t),a.__exportStar(n(88673),t),a.__exportStar(n(96289),t)},74660:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MaxFileSizeValidator=void 0;const a=n(98251);class r extends a.FileValidator{buildErrorMessage(){return"message"in this.validationOptions?"function"==typeof this.validationOptions.message?this.validationOptions.message(this.validationOptions.maxSize):this.validationOptions.message:`Validation failed (expected size is less than ${this.validationOptions.maxSize})`}isValid(e){return!this.validationOptions||!e||"size"in e&&e.size<this.validationOptions.maxSize}}t.MaxFileSizeValidator=r},44841:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},96289:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ParseFilePipeBuilder=void 0;const a=n(48570),r=n(74660),i=n(88673);t.ParseFilePipeBuilder=class{constructor(){this.validators=[]}addMaxSizeValidator(e){return this.addValidator(new r.MaxFileSizeValidator(e))}addFileTypeValidator(e){return this.addValidator(new a.FileTypeValidator(e))}addValidator(e){return this.validators.push(e),this}build(e){const t=new i.ParseFilePipe({...e,validators:this.validators});return this.validators=[],t}}},88673:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ParseFilePipe=void 0;const a=n(92443),r=n(13033),i=n(41751),s=n(40807),o=n(132);let c=class{constructor(e={}){const{exceptionFactory:t,errorHttpStatusCode:n=i.HttpStatus.BAD_REQUEST,validators:a=[],fileIsRequired:r}=e;this.exceptionFactory=t||(e=>new s.HttpErrorByCode[n](e)),this.validators=a,this.fileIsRequired=r??!0}async transform(e){const t=this.thereAreNoFilesIn(e);if(t&&this.fileIsRequired)throw this.exceptionFactory("File is required");return!t&&this.validators.length&&await this.validateFilesOrFile(e),e}async validateFilesOrFile(e){Array.isArray(e)?await Promise.all(e.map((e=>this.validate(e)))):await this.validate(e)}thereAreNoFilesIn(e){const t=Array.isArray(e)&&(0,o.isEmpty)(e),n=(0,o.isObject)(e)&&(0,o.isEmpty)(Object.keys(e));return(0,o.isUndefined)(e)||t||n}async validate(e){for(const t of this.validators)await this.validateOrThrow(e,t);return e}async validateOrThrow(e,t){if(!await t.isValid(e)){const n=t.buildErrorMessage(e);throw this.exceptionFactory(n)}}getValidators(){return this.validators}};t.ParseFilePipe=c,t.ParseFilePipe=c=a.__decorate([(0,r.Injectable)(),a.__param(0,(0,r.Optional)()),a.__metadata("design:paramtypes",[Object])],c)},1148:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(92443);a.__exportStar(n(88919),t),a.__exportStar(n(5725),t),a.__exportStar(n(71712),t),a.__exportStar(n(10417),t),a.__exportStar(n(4464),t),a.__exportStar(n(97083),t),a.__exportStar(n(2981),t),a.__exportStar(n(85995),t),a.__exportStar(n(50635),t)},5725:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ParseArrayPipe=void 0;const a=n(92443),r=n(80071),i=n(21130),s=n(48747),o=n(40807),c=n(132),u=n(85995),l="Validation failed (parsable array expected)";let d=class{constructor(e={}){this.options=e,this.validationPipe=new u.ValidationPipe({transform:!0,validateCustomDecorators:!0,...e});const{exceptionFactory:t,errorHttpStatusCode:n=s.HttpStatus.BAD_REQUEST}=e;this.exceptionFactory=t||(e=>new o.HttpErrorByCode[n](e))}async transform(e,t){if(!e&&!this.options.optional)throw this.exceptionFactory(l);if((0,c.isNil)(e)&&this.options.optional)return e;if(!Array.isArray(e)){if(!(0,c.isString)(e))throw this.exceptionFactory(l);try{e=e.trim().split(this.options.separator||",")}catch{throw this.exceptionFactory(l)}}if(this.options.items){const t={metatype:this.options.items,type:"query"},n=this.isExpectedTypePrimitive(),a=(e,a)=>{if(this.options.items!==String)try{e=JSON.parse(e)}catch{}return n?this.validatePrimitive(e,a):this.validationPipe.transform(e,t)};if(!1===this.options.stopAtFirstError){let t=[];const n=e;for(let e=0;e<n.length;e++)try{n[e]=await a(n[e])}catch(n){let a;if(n.getResponse){const t=n.getResponse();a=Array.isArray(t.message)?t.message.map((t=>`[${e}] ${t}`)):`[${e}] ${t.message}`}else a=n;t=t.concat(a)}if(t.length>0)throw this.exceptionFactory(t);return n}e=await Promise.all(e.map(a))}return e}isExpectedTypePrimitive(){return[Boolean,Number,String].includes(this.options.items)}validatePrimitive(e,t){if(this.options.items===Number){const n=null!==e&&""!==e?+e:NaN;if(isNaN(n))throw this.exceptionFactory(((0,c.isUndefined)(t)?"":`[${t}] `)+"item must be a number");return n}if(this.options.items===String){if(!(0,c.isString)(e))return`${e}`}else if(this.options.items===Boolean&&"boolean"!=typeof e)throw this.exceptionFactory(((0,c.isUndefined)(t)?"":`[${t}] `)+"item must be a boolean value");return e}};t.ParseArrayPipe=d,t.ParseArrayPipe=d=a.__decorate([(0,r.Injectable)(),a.__param(0,(0,i.Optional)()),a.__metadata("design:paramtypes",[Object])],d)},71712:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ParseBoolPipe=void 0;const a=n(92443),r=n(80071),i=n(21130),s=n(48747),o=n(40807),c=n(132);let u=class{constructor(e){this.options=e,e=e||{};const{exceptionFactory:t,errorHttpStatusCode:n=s.HttpStatus.BAD_REQUEST}=e;this.exceptionFactory=t||(e=>new o.HttpErrorByCode[n](e))}async transform(e,t){if((0,c.isNil)(e)&&this.options?.optional)return e;if(this.isTrue(e))return!0;if(this.isFalse(e))return!1;throw this.exceptionFactory("Validation failed (boolean string is expected)")}isTrue(e){return!0===e||"true"===e}isFalse(e){return!1===e||"false"===e}};t.ParseBoolPipe=u,t.ParseBoolPipe=u=a.__decorate([(0,r.Injectable)(),a.__param(0,(0,i.Optional)()),a.__metadata("design:paramtypes",[Object])],u)},97083:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ParseEnumPipe=void 0;const a=n(92443),r=n(13033),i=n(58602),s=n(40807),o=n(132);let c=class{constructor(e,t){if(this.enumType=e,this.options=t,!e)throw new Error('"ParseEnumPipe" requires "enumType" argument specified (to validate input values).');t=t||{};const{exceptionFactory:n,errorHttpStatusCode:a=i.HttpStatus.BAD_REQUEST}=t;this.exceptionFactory=n||(e=>new s.HttpErrorByCode[a](e))}async transform(e,t){if((0,o.isNil)(e)&&this.options?.optional)return e;if(!this.isEnum(e))throw this.exceptionFactory("Validation failed (enum string is expected)");return e}isEnum(e){return Object.keys(this.enumType).map((e=>this.enumType[e])).includes(e)}};t.ParseEnumPipe=c,t.ParseEnumPipe=c=a.__decorate([(0,r.Injectable)(),a.__param(1,(0,r.Optional)()),a.__metadata("design:paramtypes",[Object,Object])],c)},4464:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ParseFloatPipe=void 0;const a=n(92443),r=n(13033),i=n(58602),s=n(40807),o=n(132);let c=class{constructor(e){this.options=e,e=e||{};const{exceptionFactory:t,errorHttpStatusCode:n=i.HttpStatus.BAD_REQUEST}=e;this.exceptionFactory=t||(e=>new s.HttpErrorByCode[n](e))}async transform(e,t){if((0,o.isNil)(e)&&this.options?.optional)return e;if(!this.isNumeric(e))throw this.exceptionFactory("Validation failed (numeric string is expected)");return parseFloat(e)}isNumeric(e){return["string","number"].includes(typeof e)&&!isNaN(parseFloat(e))&&isFinite(e)}};t.ParseFloatPipe=c,t.ParseFloatPipe=c=a.__decorate([(0,r.Injectable)(),a.__param(0,(0,r.Optional)()),a.__metadata("design:paramtypes",[Object])],c)},10417:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ParseIntPipe=void 0;const a=n(92443),r=n(80071),i=n(21130),s=n(48747),o=n(40807),c=n(132);let u=class{constructor(e){this.options=e,e=e||{};const{exceptionFactory:t,errorHttpStatusCode:n=s.HttpStatus.BAD_REQUEST}=e;this.exceptionFactory=t||(e=>new o.HttpErrorByCode[n](e))}async transform(e,t){if((0,c.isNil)(e)&&this.options?.optional)return e;if(!this.isNumeric(e))throw this.exceptionFactory("Validation failed (numeric string is expected)");return parseInt(e,10)}isNumeric(e){return["string","number"].includes(typeof e)&&/^-?\d+$/.test(e)&&isFinite(e)}};t.ParseIntPipe=u,t.ParseIntPipe=u=a.__decorate([(0,r.Injectable)(),a.__param(0,(0,i.Optional)()),a.__metadata("design:paramtypes",[Object])],u)},2981:(e,t,n)=>{"use strict";var a;Object.defineProperty(t,"__esModule",{value:!0}),t.ParseUUIDPipe=void 0;const r=n(92443),i=n(80071),s=n(21130),o=n(48747),c=n(40807),u=n(132);let l=a=class{constructor(e){this.options=e,e=e||{};const{exceptionFactory:t,errorHttpStatusCode:n=o.HttpStatus.BAD_REQUEST,version:a}=e;this.version=a,this.exceptionFactory=t||(e=>new c.HttpErrorByCode[n](e))}async transform(e,t){if((0,u.isNil)(e)&&this.options?.optional)return e;if(!this.isUUID(e,this.version))throw this.exceptionFactory(`Validation failed (uuid${this.version?` v ${this.version}`:""} is expected)`);return e}isUUID(e,t="all"){if(!(0,u.isString)(e))throw this.exceptionFactory("The value passed as UUID is not a string");const n=a.uuidRegExps[t];return n?.test(e)}};t.ParseUUIDPipe=l,l.uuidRegExps={3:/^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,4:/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,5:/^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,all:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i},t.ParseUUIDPipe=l=a=r.__decorate([(0,i.Injectable)(),r.__param(0,(0,s.Optional)()),r.__metadata("design:paramtypes",[Object])],l)},85995:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValidationPipe=void 0;const a=n(92443),r=n(95392),i=n(39023),s=n(90789),o=n(13033),c=n(48747),u=n(40807),l=n(28497),d=n(132);let p={},f={},m=class{constructor(e){e=e||{};const{transform:t,disableErrorMessages:n,errorHttpStatusCode:a,expectedType:r,transformOptions:i,validateCustomDecorators:s,...o}=e;this.validatorOptions={forbidUnknownValues:!1,...o},this.isTransformEnabled=!!t,this.transformOptions=i,this.isDetailedOutputDisabled=n,this.validateCustomDecorators=s||!1,this.errorHttpStatusCode=a||c.HttpStatus.BAD_REQUEST,this.expectedType=r,this.exceptionFactory=e.exceptionFactory||this.createExceptionFactory(),p=this.loadValidator(e.validatorPackage),f=this.loadTransformer(e.transformerPackage)}loadValidator(e){return e??(0,l.loadPackage)("class-validator","ValidationPipe",(()=>n(76588)))}loadTransformer(e){return e??(0,l.loadPackage)("class-transformer","ValidationPipe",(()=>n(44922)))}async transform(e,t){this.expectedType&&(t={...t,metatype:this.expectedType});const n=t.metatype;if(!n||!this.toValidate(t))return this.isTransformEnabled?this.transformPrimitive(e,t):e;const a=e,r=(e=this.toEmptyIfNil(e))!==a,i=this.isPrimitive(e);this.stripProtoKeys(e);let s=f.plainToClass(n,e,this.transformOptions);const o=s,c=s.constructor!==n;c&&!i?s.constructor=n:c&&(s={constructor:n});const u=await this.validate(s,this.validatorOptions);if(u.length>0)throw await this.exceptionFactory(u);if(i&&(s=o),this.isTransformEnabled)return s;if(r)return a;return Object.keys(this.validatorOptions).length>1?f.classToPlain(s,this.transformOptions):e}createExceptionFactory(){return(e=[])=>{if(this.isDetailedOutputDisabled)return new u.HttpErrorByCode[this.errorHttpStatusCode];const t=this.flattenValidationErrors(e);return new u.HttpErrorByCode[this.errorHttpStatusCode](t)}}toValidate(e){const{metatype:t,type:n}=e;if("custom"===n&&!this.validateCustomDecorators)return!1;return![String,Boolean,Number,Array,Object,Buffer,Date].some((e=>t===e))&&!(0,d.isNil)(t)}transformPrimitive(e,t){if(!t.data)return e;const{type:n,metatype:a}=t;if("param"!==n&&"query"!==n)return e;if(a===Boolean){if((0,d.isUndefined)(e))return;return!0===e||"true"===e}return a===Number?+e:e}toEmptyIfNil(e){return(0,d.isNil)(e)?{}:e}stripProtoKeys(e){if(null!=e&&"object"==typeof e&&!i.types.isTypedArray(e))if(Array.isArray(e))for(const t of e)this.stripProtoKeys(t);else{delete e.__proto__;for(const t in e)this.stripProtoKeys(e[t])}}isPrimitive(e){return["number","boolean","string"].includes(typeof e)}validate(e,t){return p.validate(e,t)}flattenValidationErrors(e){return(0,r.iterate)(e).map((e=>this.mapChildrenToValidationErrors(e))).flatten().filter((e=>!!e.constraints)).map((e=>Object.values(e.constraints))).flatten().toArray()}mapChildrenToValidationErrors(e,t){if(!e.children||!e.children.length)return[e];const n=[];t=t?`${t}.${e.property}`:e.property;for(const a of e.children)a.children&&a.children.length&&n.push(...this.mapChildrenToValidationErrors(a,t)),n.push(this.prependConstraintsWithParentProp(t,a));return n}prependConstraintsWithParentProp(e,t){const n={};for(const a in t.constraints)n[a]=`${e}.${t.constraints[a]}`;return{...t,constraints:n}}};t.ValidationPipe=m,t.ValidationPipe=m=a.__decorate([(0,o.Injectable)(),a.__param(0,(0,s.Optional)()),a.__metadata("design:paramtypes",[Object])],m)},65047:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CLASS_SERIALIZER_OPTIONS=void 0,t.CLASS_SERIALIZER_OPTIONS="class_serializer:options"},20281:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClassSerializerInterceptor=void 0;const a=n(92443),r=n(1390),i=n(13033),s=n(30272),o=n(28497),c=n(132),u=n(65047);let l={};let d=class{constructor(e,t={}){this.reflector=e,this.defaultOptions=t,l=t?.transformerPackage??(0,o.loadPackage)("class-transformer","ClassSerializerInterceptor",(()=>n(44922))),t?.transformerPackage||n(44922)}intercept(e,t){const n=this.getContextOptions(e),a={...this.defaultOptions,...n};return t.handle().pipe((0,r.map)((e=>this.serialize(e,a))))}serialize(e,t){return!(0,c.isObject)(e)||e instanceof s.StreamableFile?e:Array.isArray(e)?e.map((e=>this.transformToPlain(e,t))):this.transformToPlain(e,t)}transformToPlain(e,t){if(!e)return e;if(!t.type)return l.classToPlain(e,t);if(e instanceof t.type)return l.classToPlain(e,t);const n=l.plainToClass(t.type,e);return l.classToPlain(n,t)}getContextOptions(e){return this.reflector.getAllAndOverride(u.CLASS_SERIALIZER_OPTIONS,[e.getHandler(),e.getClass()])}};t.ClassSerializerInterceptor=d,t.ClassSerializerInterceptor=d=a.__decorate([(0,i.Injectable)(),a.__param(0,(0,i.Inject)("Reflector")),a.__param(1,(0,i.Optional)()),a.__metadata("design:paramtypes",[Object,Object])],d)},3932:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},65134:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});n(92443).__exportStar(n(9344),t)},9344:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SerializeOptions=void 0;const a=n(90789),r=n(65047);t.SerializeOptions=e=>(0,a.SetMetadata)(r.CLASS_SERIALIZER_OPTIONS,e)},62219:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(92443);a.__exportStar(n(20281),t),a.__exportStar(n(65134),t),a.__exportStar(n(3932),t)},1242:(e,t,n)=>{"use strict";var a;Object.defineProperty(t,"__esModule",{value:!0}),t.ConsoleLogger=void 0;const r=n(92443),i=n(13033),s=n(31677),o=n(132),c=n(22445),u=["log","error","warn","debug","verbose","fatal"],l=new Intl.DateTimeFormat(void 0,{year:"numeric",hour:"numeric",minute:"numeric",second:"numeric",day:"2-digit",month:"2-digit"});let d=a=class{constructor(e,t={}){this.context=e,this.options=t,t.logLevels||(t.logLevels=u),e&&(this.originalContext=e)}log(e,...t){if(!this.isLevelEnabled("log"))return;const{messages:n,context:a}=this.getContextAndMessagesToPrint([e,...t]);this.printMessages(n,a,"log")}error(e,...t){if(!this.isLevelEnabled("error"))return;const{messages:n,context:a,stack:r}=this.getContextAndStackAndMessagesToPrint([e,...t]);this.printMessages(n,a,"error","stderr"),this.printStackTrace(r)}warn(e,...t){if(!this.isLevelEnabled("warn"))return;const{messages:n,context:a}=this.getContextAndMessagesToPrint([e,...t]);this.printMessages(n,a,"warn")}debug(e,...t){if(!this.isLevelEnabled("debug"))return;const{messages:n,context:a}=this.getContextAndMessagesToPrint([e,...t]);this.printMessages(n,a,"debug")}verbose(e,...t){if(!this.isLevelEnabled("verbose"))return;const{messages:n,context:a}=this.getContextAndMessagesToPrint([e,...t]);this.printMessages(n,a,"verbose")}fatal(e,...t){if(!this.isLevelEnabled("fatal"))return;const{messages:n,context:a}=this.getContextAndMessagesToPrint([e,...t]);this.printMessages(n,a,"fatal")}setLogLevels(e){this.options||(this.options={}),this.options.logLevels=e}setContext(e){this.context=e}resetContext(){this.context=this.originalContext}isLevelEnabled(e){const t=this.options?.logLevels;return(0,c.isLogLevelEnabled)(e,t)}getTimestamp(){return l.format(Date.now())}printMessages(e,t="",n="log",a){e.forEach((e=>{const r=this.formatPid(process.pid),i=this.formatContext(t),s=this.updateAndGetTimestampDiff(),o=n.toUpperCase().padStart(7," "),c=this.formatMessage(n,e,r,o,i,s);process[a??"stdout"].write(c)}))}formatPid(e){return`[Nest] ${e} - `}formatContext(e){return e?(0,s.yellow)(`[${e}] `):""}formatMessage(e,t,n,a,r,i){const s=this.stringifyMessage(t,e);return n=this.colorize(n,e),a=this.colorize(a,e),`${n}${this.getTimestamp()} ${a} ${r}${s}${i}\n`}stringifyMessage(e,t){if((0,o.isFunction)(e)){return Function.prototype.toString.call(e).startsWith("class ")?this.stringifyMessage(e.name,t):this.stringifyMessage(e(),t)}return(0,o.isPlainObject)(e)||Array.isArray(e)?`${this.colorize("Object:",t)}\n${JSON.stringify(e,((e,t)=>"bigint"==typeof t?t.toString():t),2)}\n`:this.colorize(e,t)}colorize(e,t){return this.getColorByLogLevel(t)(e)}printStackTrace(e){e&&process.stderr.write(`${e}\n`)}updateAndGetTimestampDiff(){const e=a.lastTimestampAt&&this.options?.timestamp?this.formatTimestampDiff(Date.now()-a.lastTimestampAt):"";return a.lastTimestampAt=Date.now(),e}formatTimestampDiff(e){return(0,s.yellow)(` +${e}ms`)}getContextAndMessagesToPrint(e){if(e?.length<=1)return{messages:e,context:this.context};const t=e[e.length-1];return(0,o.isString)(t)?{context:t,messages:e.slice(0,e.length-1)}:{messages:e,context:this.context}}getContextAndStackAndMessagesToPrint(e){if(2===e.length)return this.isStackFormat(e[1])?{messages:[e[0]],stack:e[1],context:this.context}:{messages:[e[0]],context:e[1]};const{messages:t,context:n}=this.getContextAndMessagesToPrint(e);if(t?.length<=1)return{messages:t,context:n};const a=t[t.length-1];return(0,o.isString)(a)||(0,o.isUndefined)(a)?{stack:a,messages:t.slice(0,t.length-1),context:n}:{messages:t,context:n}}isStackFormat(e){return!(!(0,o.isString)(e)&&!(0,o.isUndefined)(e))&&/^(.)+\n\s+at .+:\d+:\d+/.test(e)}getColorByLogLevel(e){switch(e){case"debug":return s.clc.magentaBright;case"warn":return s.clc.yellow;case"error":return s.clc.red;case"verbose":return s.clc.cyanBright;case"fatal":return s.clc.bold;default:return s.clc.green}}};t.ConsoleLogger=d,t.ConsoleLogger=d=a=r.__decorate([(0,i.Injectable)(),r.__param(0,(0,i.Optional)()),r.__param(1,(0,i.Optional)()),r.__metadata("design:paramtypes",[String,Object])],d)},84707:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(92443);a.__exportStar(n(1242),t),a.__exportStar(n(8702),t)},8702:(e,t,n)=>{"use strict";var a;Object.defineProperty(t,"__esModule",{value:!0}),t.Logger=void 0;const r=n(92443),i=n(13033),s=n(132),o=n(1242),c=n(22445),u=new o.ConsoleLogger,l=new Intl.DateTimeFormat(void 0,{year:"numeric",hour:"numeric",minute:"numeric",second:"numeric",day:"2-digit",month:"2-digit"});let d=a=class{constructor(e,t={}){this.context=e,this.options=t}get localInstance(){if(a.staticInstanceRef===u)return this.registerLocalInstanceRef();if(a.staticInstanceRef instanceof a){if(Object.getPrototypeOf(a.staticInstanceRef).constructor===a)return this.registerLocalInstanceRef()}return a.staticInstanceRef}error(e,...t){t=this.context?(t.length?t:[void 0]).concat(this.context):t,this.localInstance?.error(e,...t)}log(e,...t){t=this.context?t.concat(this.context):t,this.localInstance?.log(e,...t)}warn(e,...t){t=this.context?t.concat(this.context):t,this.localInstance?.warn(e,...t)}debug(e,...t){t=this.context?t.concat(this.context):t,this.localInstance?.debug?.(e,...t)}verbose(e,...t){t=this.context?t.concat(this.context):t,this.localInstance?.verbose?.(e,...t)}fatal(e,...t){t=this.context?t.concat(this.context):t,this.localInstance?.fatal?.(e,...t)}static error(e,...t){this.staticInstanceRef?.error(e,...t)}static log(e,...t){this.staticInstanceRef?.log(e,...t)}static warn(e,...t){this.staticInstanceRef?.warn(e,...t)}static debug(e,...t){this.staticInstanceRef?.debug?.(e,...t)}static verbose(e,...t){this.staticInstanceRef?.verbose?.(e,...t)}static fatal(e,...t){this.staticInstanceRef?.fatal?.(e,...t)}static flush(){this.isBufferAttached=!1,this.logBuffer.forEach((e=>e.methodRef(...e.arguments))),this.logBuffer=[]}static attachBuffer(){this.isBufferAttached=!0}static detachBuffer(){this.isBufferAttached=!1}static getTimestamp(){return l.format(Date.now())}static overrideLogger(e){if(Array.isArray(e))return a.logLevels=e,this.staticInstanceRef?.setLogLevels(e);if((0,s.isObject)(e)){if(e instanceof a&&e.constructor!==a){const e='Using the "extends Logger" instruction is not allowed in Nest v9. Please, use "extends ConsoleLogger" instead.';throw this.staticInstanceRef.error(e),new Error(e)}this.staticInstanceRef=e}else this.staticInstanceRef=void 0}static isLevelEnabled(e){const t=a.logLevels;return(0,c.isLogLevelEnabled)(e,t)}registerLocalInstanceRef(){return this.localInstanceRef||(this.localInstanceRef=new o.ConsoleLogger(this.context,{timestamp:this.options?.timestamp,logLevels:a.logLevels})),this.localInstanceRef}};t.Logger=d,d.logBuffer=new Array,d.staticInstanceRef=u,d.WrapBuffer=(e,t,n)=>{const r=n.value;n.value=function(...e){if(!a.isBufferAttached)return r.call(this,...e);a.logBuffer.push({methodRef:r.bind(this),arguments:e})}},r.__decorate([d.WrapBuffer,r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[Object,Object]),r.__metadata("design:returntype",void 0)],d.prototype,"error",null),r.__decorate([d.WrapBuffer,r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[Object,Object]),r.__metadata("design:returntype",void 0)],d.prototype,"log",null),r.__decorate([d.WrapBuffer,r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[Object,Object]),r.__metadata("design:returntype",void 0)],d.prototype,"warn",null),r.__decorate([d.WrapBuffer,r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[Object,Object]),r.__metadata("design:returntype",void 0)],d.prototype,"debug",null),r.__decorate([d.WrapBuffer,r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[Object,Object]),r.__metadata("design:returntype",void 0)],d.prototype,"verbose",null),r.__decorate([d.WrapBuffer,r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[Object,Object]),r.__metadata("design:returntype",void 0)],d.prototype,"fatal",null),r.__decorate([d.WrapBuffer,r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[Object,Object]),r.__metadata("design:returntype",void 0)],d,"error",null),r.__decorate([d.WrapBuffer,r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[Object,Object]),r.__metadata("design:returntype",void 0)],d,"log",null),r.__decorate([d.WrapBuffer,r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[Object,Object]),r.__metadata("design:returntype",void 0)],d,"warn",null),r.__decorate([d.WrapBuffer,r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[Object,Object]),r.__metadata("design:returntype",void 0)],d,"debug",null),r.__decorate([d.WrapBuffer,r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[Object,Object]),r.__metadata("design:returntype",void 0)],d,"verbose",null),r.__decorate([d.WrapBuffer,r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[Object,Object]),r.__metadata("design:returntype",void 0)],d,"fatal",null),t.Logger=d=a=r.__decorate([(0,i.Injectable)(),r.__param(0,(0,i.Optional)()),r.__param(1,(0,i.Optional)()),r.__metadata("design:paramtypes",[String,Object])],d)},22445:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});n(92443).__exportStar(n(22011),t)},22011:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isLogLevelEnabled=void 0;const n={verbose:0,debug:1,log:2,warn:3,error:4,fatal:5};t.isLogLevelEnabled=function(e,t){if(!t||Array.isArray(t)&&0===t?.length)return!1;if(t.includes(e))return!0;const a=t.map((e=>n[e])).sort(((e,t)=>t-e))?.[0];return n[e]>=a}},56467:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assignCustomParameterMetadata=void 0;const a=n(41723);t.assignCustomParameterMetadata=function(e,t,n,r,i,...s){return{...e,[`${t}${a.CUSTOM_ROUTE_ARGS_METADATA}:${n}`]:{index:n,factory:r,data:i,pipes:s}}}},31677:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.yellow=t.clc=void 0;const n=e=>t=>process.env.NO_COLOR?t:e(t);t.clc={bold:n((e=>`${e}`)),green:n((e=>`${e}`)),yellow:n((e=>`${e}`)),red:n((e=>`${e}`)),magentaBright:n((e=>`${e}`)),cyanBright:n((e=>`${e}`))},t.yellow=n((e=>`${e}`))},38134:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendArrayMetadata=void 0,t.extendArrayMetadata=function(e,t,n){const a=[...Reflect.getMetadata(e,n)||[],...t];Reflect.defineMetadata(e,a,n)}},44091:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.forwardRef=void 0;t.forwardRef=e=>({forwardRef:e})},40807:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HttpErrorByCode=void 0;const a=n(41751),r=n(59661);t.HttpErrorByCode={[a.HttpStatus.BAD_GATEWAY]:r.BadGatewayException,[a.HttpStatus.BAD_REQUEST]:r.BadRequestException,[a.HttpStatus.CONFLICT]:r.ConflictException,[a.HttpStatus.FORBIDDEN]:r.ForbiddenException,[a.HttpStatus.GATEWAY_TIMEOUT]:r.GatewayTimeoutException,[a.HttpStatus.GONE]:r.GoneException,[a.HttpStatus.I_AM_A_TEAPOT]:r.ImATeapotException,[a.HttpStatus.INTERNAL_SERVER_ERROR]:r.InternalServerErrorException,[a.HttpStatus.METHOD_NOT_ALLOWED]:r.MethodNotAllowedException,[a.HttpStatus.NOT_ACCEPTABLE]:r.NotAcceptableException,[a.HttpStatus.NOT_FOUND]:r.NotFoundException,[a.HttpStatus.NOT_IMPLEMENTED]:r.NotImplementedException,[a.HttpStatus.PAYLOAD_TOO_LARGE]:r.PayloadTooLargeException,[a.HttpStatus.PRECONDITION_FAILED]:r.PreconditionFailedException,[a.HttpStatus.REQUEST_TIMEOUT]:r.RequestTimeoutException,[a.HttpStatus.SERVICE_UNAVAILABLE]:r.ServiceUnavailableException,[a.HttpStatus.UNAUTHORIZED]:r.UnauthorizedException,[a.HttpStatus.UNPROCESSABLE_ENTITY]:r.UnprocessableEntityException,[a.HttpStatus.UNSUPPORTED_MEDIA_TYPE]:r.UnsupportedMediaTypeException}},78180:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});n(92443).__exportStar(n(44091),t)},28497:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadPackage=void 0;const a=n(8702),r=new a.Logger("PackageLoader");t.loadPackage=function(e,t,i){try{return i?i():n(22405)(e)}catch(n){r.error(`The "${s=e}" package is missing. Please, make sure to install this library ($ npm install ${s}) to take advantage of ${t}.`),a.Logger.flush(),process.exit(1)}var s}},80049:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomStringGenerator=void 0;const a=n(17063);t.randomStringGenerator=()=>(0,a.uid)(21)},132:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSymbol=t.isEmpty=t.isNil=t.isConstructor=t.isNumber=t.isString=t.isFunction=t.stripEndSlash=t.normalizePath=t.addLeadingSlash=t.isPlainObject=t.isObject=t.isUndefined=void 0;t.isUndefined=e=>void 0===e;t.isObject=e=>!(0,t.isNil)(e)&&"object"==typeof e;t.isPlainObject=e=>{if(!(0,t.isObject)(e))return!1;const n=Object.getPrototypeOf(e);if(null===n)return!0;const a=Object.prototype.hasOwnProperty.call(n,"constructor")&&n.constructor;return"function"==typeof a&&a instanceof a&&Function.prototype.toString.call(a)===Function.prototype.toString.call(Object)};t.addLeadingSlash=e=>e&&"string"==typeof e?"/"!==e.charAt(0)?"/"+e:e:"";t.normalizePath=e=>e?e.startsWith("/")?("/"+e.replace(/\/+$/,"")).replace(/\/+/g,"/"):"/"+e.replace(/\/+$/,""):"/";t.stripEndSlash=e=>"/"===e[e.length-1]?e.slice(0,e.length-1):e;t.isFunction=e=>"function"==typeof e;t.isString=e=>"string"==typeof e;t.isNumber=e=>"number"==typeof e;t.isConstructor=e=>"constructor"===e;t.isNil=e=>(0,t.isUndefined)(e)||null===e;t.isEmpty=e=>!(e&&e.length>0);t.isSymbol=e=>"symbol"==typeof e},57688:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateEach=t.InvalidDecoratorItemException=void 0;class n extends Error{constructor(e,t,n){const a=`Invalid ${t} passed to ${e}() decorator (${n}).`;super(a),this.msg=a}what(){return this.msg}}t.InvalidDecoratorItemException=n,t.validateEach=function(e,t,a,r,i){if(!e||!e.name)return!0;if(t.some((e=>!a(e))))throw new n(r,i,e.name);return!0}},68070:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateModuleKeys=t.INVALID_MODULE_CONFIG_MESSAGE=void 0;const a=n(41723);t.INVALID_MODULE_CONFIG_MESSAGE=(e,t)=>`Invalid property '${t}' passed into the @Module() decorator.`;const r=[a.MODULE_METADATA.IMPORTS,a.MODULE_METADATA.EXPORTS,a.MODULE_METADATA.CONTROLLERS,a.MODULE_METADATA.PROVIDERS];t.validateModuleKeys=function(e){e.forEach((e=>{if(!r.includes(e))throw new Error(t.INVALID_MODULE_CONFIG_MESSAGE`${e}`)}))}},22405:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=22405,e.exports=t},90216:(e,t,n)=>{"use strict";const a=n(53273);function r(e,t){if(!e)return e;const n=(t=t||{}).align||"center";if("left"===n)return e;const r=t.split||"\n",o=t.pad||" ",c="right"!==n?i:s;let u,l=!1;Array.isArray(e)||(l=!0,e=String(e).split(r));let d=0;return e=e.map((function(e){return e=String(e),u=a(e),d=Math.max(u,d),{str:e,width:u}})).map((function(e){return new Array(c(d,e.width)+1).join(o)+e.str})),l?e.join(r):e}function i(e,t){return Math.floor((e-t)/2)}function s(e,t){return e-t}r.left=function(e){return r(e,{align:"left"})},r.center=function(e){return r(e,{align:"center"})},r.right=function(e){return r(e,{align:"right"})},e.exports=r},56954:e=>{"use strict";e.exports=({onlyFirst:e=!1}={})=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}},12701:(e,t,n)=>{"use strict";e=n.nmd(e);const a=(e,t)=>(...n)=>`[${e(...n)+t}m`,r=(e,t)=>(...n)=>{const a=e(...n);return`[${38+t};5;${a}m`},i=(e,t)=>(...n)=>{const a=e(...n);return`[${38+t};2;${a[0]};${a[1]};${a[2]}m`},s=e=>e,o=(e,t,n)=>[e,t,n],c=(e,t,n)=>{Object.defineProperty(e,t,{get:()=>{const a=n();return Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0}),a},enumerable:!0,configurable:!0})};let u;const l=(e,t,a,r)=>{void 0===u&&(u=n(79307));const i=r?10:0,s={};for(const[n,r]of Object.entries(u)){const o="ansi16"===n?"ansi":n;n===t?s[o]=e(a,i):"object"==typeof r&&(s[o]=e(r[t],i))}return s};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(const[n,a]of Object.entries(t)){for(const[n,r]of Object.entries(a))t[n]={open:`[${r[0]}m`,close:`[${r[1]}m`},a[n]=t[n],e.set(r[0],r[1]);Object.defineProperty(t,n,{value:a,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="",t.bgColor.close="",c(t.color,"ansi",(()=>l(a,"ansi16",s,!1))),c(t.color,"ansi256",(()=>l(r,"ansi256",s,!1))),c(t.color,"ansi16m",(()=>l(i,"rgb",o,!1))),c(t.bgColor,"ansi",(()=>l(a,"ansi16",s,!0))),c(t.bgColor,"ansi256",(()=>l(r,"ansi256",s,!0))),c(t.bgColor,"ansi16m",(()=>l(i,"rgb",o,!0))),t}})},58146:(e,t,n)=>{e.exports={parallel:n(94691),serial:n(65332),serialOrdered:n(91407)}},37440: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={}}},7578:(e,t,n)=>{var a=n(7962);e.exports=function(e){var t=!1;return a((function(){t=!0})),function(n,r){t?e(n,r):a((function(){e(n,r)}))}}},7962: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)}},15276:(e,t,n)=>{var a=n(7578),r=n(37440);e.exports=function(e,t,n,i){var s=n.keyedList?n.keyedList[n.index]:n.index;n.jobs[s]=function(e,t,n,r){var i;i=2==e.length?e(n,a(r)):e(n,t,a(r));return i}(t,s,e[s],(function(e,t){s in n.jobs&&(delete n.jobs[s],e?r(n):n.results[s]=t,i(e,n.results))}))}},54287:e=>{e.exports=function(e,t){var n=!Array.isArray(e),a={index:0,keyedList:n||t?Object.keys(e):null,jobs:{},results:n?{}:[],size:n?Object.keys(e).length:e.length};t&&a.keyedList.sort(n?t:function(n,a){return t(e[n],e[a])});return a}},25965:(e,t,n)=>{var a=n(37440),r=n(7578);e.exports=function(e){if(!Object.keys(this.jobs).length)return;this.index=this.size,a(this),r(e)(null,this.results)}},94691:(e,t,n)=>{var a=n(15276),r=n(54287),i=n(25965);e.exports=function(e,t,n){var s=r(e);for(;s.index<(s.keyedList||e).length;)a(e,t,s,(function(e,t){e?n(e,t):0!==Object.keys(s.jobs).length||n(null,s.results)})),s.index++;return i.bind(s,n)}},65332:(e,t,n)=>{var a=n(91407);e.exports=function(e,t,n){return a(e,t,null,n)}},91407:(e,t,n)=>{var a=n(15276),r=n(54287),i=n(25965);function s(e,t){return e<t?-1:e>t?1:0}e.exports=function(e,t,n,s){var o=r(e,n);return a(e,t,o,(function n(r,i){r?s(r,i):(o.index++,o.index<(o.keyedList||e).length?a(e,t,o,n):s(null,o.results))})),i.bind(o,s)},e.exports.ascending=s,e.exports.descending=function(e,t){return-1*s(e,t)}},48844:(e,t,n)=>{"use strict";const a=n(53273),r=n(86181),i=n(13610),s=n(99547),o=n(53019),c=n(90216),u=n(18785),l="\n",d=" ",p=e=>"number"==typeof e?{top:e,right:3*e,bottom:e,left:3*e}:{top:0,right:0,bottom:0,left:0,...e},f=e=>e.match(/^#(?:[0-f]{3}){1,2}$/i),m=e=>"string"==typeof e&&(r[e]||f(e));e.exports=(e,t)=>{(t={padding:0,borderStyle:"single",dimBorder:!1,textAlignment:"left",float:"left",titleAlignment:"left",...t}).align&&(t.textAlignment=t.align);if(t.borderColor&&!m(t.borderColor))throw new Error(`${t.borderColor} is not a valid borderColor`);if(t.backgroundColor&&!m(t.backgroundColor))throw new Error(`${t.backgroundColor} is not a valid backgroundColor`);const n=(e=>{const t=["topLeft","topRight","bottomRight","bottomLeft","vertical","horizontal"];let n;if("string"==typeof e){if(n=s[e],!n)throw new TypeError(`Invalid border style: ${e}`)}else{for(const n of t)if(!e[n]||"string"!=typeof e[n])throw new TypeError(`Invalid border style: ${n}`);n=e}return n})(t.borderStyle),h=p(t.padding),b=p(t.margin),g=e=>{const n=t.borderColor?(a=t.borderColor,f(a)?r.hex(a):r[a])(e):e;var a;return t.dimBorder?r.dim(n):n},v=e=>{return t.backgroundColor?(n=t.backgroundColor,f(n)?r.bgHex(n):r[o(["bg",n])])(e):e;var n},y=(()=>{const{env:e,stdout:t,stderr:n}=process;return t&&t.columns?t.columns:n&&n.columns?n.columns:e.COLUMNS?Number.parseInt(e.COLUMNS,10):80})();let _=i(u(e,y-2,{hard:!0,trim:!1}))+h.left+h.right,E=t.title&&t.title.slice(0,y-4-b.left-b.right);if(E&&(E=` ${E} `,a(E)>_&&(_=a(E))),b.left&&b.right&&_+2+b.left+b.right>y){const e=(y-_-2)/(b.left+b.right);b.left=Math.max(0,Math.floor(b.left*e)),b.right=Math.max(0,Math.floor(b.right*e))}_=Math.min(_,y-2-b.left-b.right),e=((e,t,n,r)=>{let s=(e=c(e,{align:r})).split(l);const o=i(e),p=n-t.left-t.right;if(o>p){const e=[];for(const t of s){const n=u(t,p,{hard:!0}),i=c(n,{align:r}).split("\n"),s=Math.max(...i.map((e=>a(e))));for(const t of i){let n;switch(r){case"center":n=d.repeat((p-s)/2)+t;break;case"right":n=d.repeat(p-s)+t;break;default:n=t}e.push(n)}}s=e}"center"===r&&o<p?s=s.map((e=>d.repeat((p-o)/2)+e)):"right"===r&&o<p&&(s=s.map((e=>d.repeat(p-o)+e)));const f=d.repeat(t.left),m=d.repeat(t.right);return s=s.map((e=>f+e+m)),s=s.map((e=>n-a(e)>0?e+d.repeat(n-a(e)):e)),t.top>0&&(s=new Array(t.top).fill(d.repeat(n)).concat(s)),t.bottom>0&&(s=s.concat(new Array(t.bottom).fill(d.repeat(n)))),s.join(l)})(e,h,_,t.textAlignment);let x=d.repeat(b.left);if("center"===t.float){const e=Math.max((y-_-2)/2,0);x=d.repeat(e)}else if("right"===t.float){const e=Math.max(y-_-b.right-2,0);x=d.repeat(e)}const T=n.horizontal.repeat(_),O=g(l.repeat(b.top)+x+n.topLeft+(E?((e,t,n)=>{let r="";const i=a(e);switch(n){case"left":r=e+t.slice(i);break;case"right":r=t.slice(i)+e;break;default:r=(t=t.slice(i)).length%2==1?(t=t.slice(Math.floor(t.length/2))).slice(1)+e+t:(t=t.slice(t.length/2))+e+t}return r})(E,T,t.titleAlignment):T)+n.topRight),$=g(x+n.bottomLeft+T+n.bottomRight+l.repeat(b.bottom)),A=g(n.vertical),S=_+2+b.left>=y?"":l;return O+S+e.split(l).map((e=>x+A+v(e)+A)).join(S)+S+$},e.exports._borderStyles=s},53019:e=>{"use strict";const t=/[\p{Lu}]/u,n=/[\p{Ll}]/u,a=/^[\p{Lu}](?![\p{Lu}])/gu,r=/([\p{Alpha}\p{N}_]|$)/u,i=/[_.\- ]+/,s=new RegExp("^"+i.source),o=new RegExp(i.source+r.source,"gu"),c=new RegExp("\\d+"+r.source,"gu"),u=(e,r)=>{if("string"!=typeof e&&!Array.isArray(e))throw new TypeError("Expected the input to be `string | string[]`");if(r={pascalCase:!1,preserveConsecutiveUppercase:!1,...r},0===(e=Array.isArray(e)?e.map((e=>e.trim())).filter((e=>e.length)).join("-"):e.trim()).length)return"";const i=!1===r.locale?e=>e.toLowerCase():e=>e.toLocaleLowerCase(r.locale),u=!1===r.locale?e=>e.toUpperCase():e=>e.toLocaleUpperCase(r.locale);if(1===e.length)return r.pascalCase?u(e):i(e);return e!==i(e)&&(e=((e,a,r)=>{let i=!1,s=!1,o=!1;for(let c=0;c<e.length;c++){const u=e[c];i&&t.test(u)?(e=e.slice(0,c)+"-"+e.slice(c),i=!1,o=s,s=!0,c++):s&&o&&n.test(u)?(e=e.slice(0,c-1)+"-"+e.slice(c-1),o=s,s=!1,i=!0):(i=a(u)===u&&r(u)!==u,o=s,s=r(u)===u&&a(u)!==u)}return e})(e,i,u)),e=e.replace(s,""),e=r.preserveConsecutiveUppercase?((e,t)=>(a.lastIndex=0,e.replace(a,(e=>t(e)))))(e,i):i(e),r.pascalCase&&(e=u(e.charAt(0))+e.slice(1)),((e,t)=>(o.lastIndex=0,c.lastIndex=0,e.replace(o,((e,n)=>t(n))).replace(c,(e=>t(e)))))(e,u)};e.exports=u,e.exports.default=u},86181:(e,t,n)=>{"use strict";const a=n(12701),{stdout:r,stderr:i}=n(65421),{stringReplaceAll:s,stringEncaseCRLFWithFirstIndex:o}=n(52597),{isArray:c}=Array,u=["ansi","ansi","ansi256","ansi16m"],l=Object.create(null);class d{constructor(e){return p(e)}}const p=e=>{const t={};return((e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const n=r?r.level:0;e.level=void 0===t.level?n:t.level})(t,e),t.template=(...e)=>_(t.template,...e),Object.setPrototypeOf(t,f.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=d,t.template};function f(e){return p(e)}for(const[e,t]of Object.entries(a))l[e]={get(){const n=g(this,b(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:n}),n}};l.visible={get(){const e=g(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};const m=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const e of m)l[e]={get(){const{level:t}=this;return function(...n){const r=b(a.color[u[t]][e](...n),a.color.close,this._styler);return g(this,r,this._isEmpty)}}};for(const e of m){l["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const{level:t}=this;return function(...n){const r=b(a.bgColor[u[t]][e](...n),a.bgColor.close,this._styler);return g(this,r,this._isEmpty)}}}}const h=Object.defineProperties((()=>{}),{...l,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),b=(e,t,n)=>{let a,r;return void 0===n?(a=e,r=t):(a=n.openAll+e,r=t+n.closeAll),{open:e,close:t,openAll:a,closeAll:r,parent:n}},g=(e,t,n)=>{const a=(...e)=>c(e[0])&&c(e[0].raw)?v(a,_(a,...e)):v(a,1===e.length?""+e[0]:e.join(" "));return Object.setPrototypeOf(a,h),a._generator=e,a._styler=t,a._isEmpty=n,a},v=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let n=e._styler;if(void 0===n)return t;const{openAll:a,closeAll:r}=n;if(-1!==t.indexOf(""))for(;void 0!==n;)t=s(t,n.close,n.open),n=n.parent;const i=t.indexOf("\n");return-1!==i&&(t=o(t,r,a,i)),a+t+r};let y;const _=(e,...t)=>{const[a]=t;if(!c(a)||!c(a.raw))return t.join(" ");const r=t.slice(1),i=[a.raw[0]];for(let e=1;e<a.length;e++)i.push(String(r[e-1]).replace(/[{}\\]/g,"\\$&"),String(a.raw[e]));return void 0===y&&(y=n(50826)),y(e,i.join(""))};Object.defineProperties(f.prototype,l);const E=f();E.supportsColor=r,E.stderr=f({level:i?i.level:0}),E.stderr.supportsColor=i,e.exports=E},50826:e=>{"use strict";const t=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,a=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,r=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,i=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function s(e){const t="u"===e[0],n="{"===e[1];return t&&!n&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):t&&n?String.fromCodePoint(parseInt(e.slice(2,-1),16)):i.get(e)||e}function o(e,t){const n=[],i=t.trim().split(/\s*,\s*/g);let o;for(const t of i){const i=Number(t);if(Number.isNaN(i)){if(!(o=t.match(a)))throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`);n.push(o[2].replace(r,((e,t,n)=>t?s(t):n)))}else n.push(i)}return n}function c(e){n.lastIndex=0;const t=[];let a;for(;null!==(a=n.exec(e));){const e=a[1];if(a[2]){const n=o(e,a[2]);t.push([e].concat(n))}else t.push([e])}return t}function u(e,t){const n={};for(const e of t)for(const t of e.styles)n[t[0]]=e.inverse?null:t.slice(1);let a=e;for(const[e,t]of Object.entries(n))if(Array.isArray(t)){if(!(e in a))throw new Error(`Unknown Chalk style: ${e}`);a=t.length>0?a[e](...t):a[e]}return a}e.exports=(e,n)=>{const a=[],r=[];let i=[];if(n.replace(t,((t,n,o,l,d,p)=>{if(n)i.push(s(n));else if(l){const t=i.join("");i=[],r.push(0===a.length?t:u(e,a)(t)),a.push({inverse:o,styles:c(l)})}else if(d){if(0===a.length)throw new Error("Found extraneous } in Chalk template literal");r.push(u(e,a)(i.join(""))),i=[],a.pop()}else i.push(p)})),r.push(i.join("")),a.length>0){const e=`Chalk template literal is missing ${a.length} closing bracket${1===a.length?"":"s"} (\`}\`)`;throw new Error(e)}return r.join("")}},52597:e=>{"use strict";e.exports={stringReplaceAll:(e,t,n)=>{let a=e.indexOf(t);if(-1===a)return e;const r=t.length;let i=0,s="";do{s+=e.substr(i,a-i)+t+n,i=a+r,a=e.indexOf(t,i)}while(-1!==a);return s+=e.substr(i),s},stringEncaseCRLFWithFirstIndex:(e,t,n,a)=>{let r=0,i="";do{const s="\r"===e[a-1];i+=e.substr(r,(s?a-1:a)-r)+t+(s?"\r\n":"\n")+n,r=a+1,a=e.indexOf("\n",r)}while(-1!==a);return i+=e.substr(r),i}}},76588:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ARRAY_CONTAINS:()=>Tu,ARRAY_MAX_SIZE:()=>Pu,ARRAY_MIN_SIZE:()=>Nu,ARRAY_NOT_CONTAINS:()=>Au,ARRAY_NOT_EMPTY:()=>wu,ARRAY_UNIQUE:()=>ku,Allow:()=>$,ArrayContains:()=>$u,ArrayMaxSize:()=>ju,ArrayMinSize:()=>Mu,ArrayNotContains:()=>Du,ArrayNotEmpty:()=>Ru,ArrayUnique:()=>Uu,CONTAINS:()=>Ue,Contains:()=>Be,EQUALS:()=>J,Equals:()=>X,IS_ALPHA:()=>Ye,IS_ALPHANUMERIC:()=>Je,IS_ARRAY:()=>gu,IS_ASCII:()=>ot,IS_BASE32:()=>Ws,IS_BASE58:()=>Fc,IS_BASE64:()=>pt,IS_BIC:()=>Zs,IS_BOOLEAN:()=>Jc,IS_BOOLEAN_STRING:()=>Ps,IS_BTC_ADDRESS:()=>to,IS_BYTE_LENGTH:()=>gt,IS_CREDIT_CARD:()=>xt,IS_CURRENCY:()=>St,IS_DATA_URI:()=>so,IS_DATE:()=>eu,IS_DATE_STRING:()=>Cs,IS_DECIMAL:()=>nt,IS_DEFINED:()=>C,IS_DIVISIBLE_BY:()=>ge,IS_EAN:()=>po,IS_EMAIL:()=>Nt,IS_EMPTY:()=>ae,IS_ENUM:()=>ou,IS_ETHEREUM_ADDRESS:()=>go,IS_FIREBASE_PUSH_ID:()=>Ua,IS_FQDN:()=>jt,IS_FULL_WIDTH:()=>qt,IS_HALF_WIDTH:()=>Wt,IS_HASH:()=>xs,IS_HEXADECIMAL:()=>on,IS_HEX_COLOR:()=>tn,IS_HSL:()=>xo,IS_IBAN:()=>Ao,IS_IDENTITY_CARD:()=>Ro,IS_IN:()=>ue,IS_INSTANCE:()=>Gu,IS_INT:()=>du,IS_IP:()=>vn,IS_ISBN:()=>Dn,IS_ISIN:()=>In,IS_ISO31661_ALPHA_2:()=>oa,IS_ISO31661_ALPHA_3:()=>pa,IS_ISO4217_CURRENCY_CODE:()=>zc,IS_ISO8601:()=>kn,IS_ISRC:()=>Lo,IS_ISSN:()=>Ss,IS_JSON:()=>Hn,IS_JWT:()=>zn,IS_LATITUDE:()=>W,IS_LATLONG:()=>B,IS_LENGTH:()=>Za,IS_LOCALE:()=>qo,IS_LONGITUDE:()=>z,IS_LOWERCASE:()=>Xn,IS_MAC_ADDRESS:()=>fn,IS_MAGNET_URI:()=>Vo,IS_MILITARY_TIME:()=>gs,IS_MIME_TYPE:()=>Jo,IS_MOBILE_PHONE:()=>aa,IS_MONGO_ID:()=>ga,IS_MULTIBYTE:()=>xa,IS_NEGATIVE:()=>Te,IS_NOT_EMPTY:()=>se,IS_NOT_EMPTY_OBJECT:()=>qu,IS_NOT_IN:()=>pe,IS_NUMBER:()=>au,IS_NUMBER_STRING:()=>Us,IS_OBJECT:()=>_u,IS_OCTAL:()=>nc,IS_PASSPORT_NUMBER:()=>oc,IS_PHONE_NUMBER:()=>ms,IS_PORT:()=>Tn,IS_POSITIVE:()=>_e,IS_POSTAL_CODE:()=>dc,IS_RFC_3339:()=>bc,IS_RGB_COLOR:()=>Ec,IS_SEM_VER:()=>Ac,IS_STRING:()=>mu,IS_STRONG_PASSWORD:()=>Rc,IS_SURROGATE_PAIR:()=>Sa,IS_TAX_ID:()=>Gc,IS_TIMEZONE:()=>Mc,IS_UPPERCASE:()=>Wa,IS_URL:()=>Na,IS_UUID:()=>ja,IS_VARIABLE_WIDTH:()=>Zt,IsAlpha:()=>Ke,IsAlphanumeric:()=>Xe,IsArray:()=>yu,IsAscii:()=>ut,IsBIC:()=>Qs,IsBase32:()=>Ys,IsBase58:()=>qc,IsBase64:()=>mt,IsBoolean:()=>Xc,IsBooleanString:()=>js,IsBtcAddress:()=>ao,IsByteLength:()=>yt,IsCreditCard:()=>Ot,IsCurrency:()=>wt,IsDataURI:()=>co,IsDate:()=>nu,IsDateString:()=>Ns,IsDecimal:()=>rt,IsDefined:()=>N,IsDivisibleBy:()=>ye,IsEAN:()=>mo,IsEmail:()=>Mt,IsEmpty:()=>ie,IsEnum:()=>lu,IsEthereumAddress:()=>yo,IsFQDN:()=>Ft,IsFirebasePushId:()=>Ba,IsFullWidth:()=>Ht,IsHSL:()=>Oo,IsHalfWidth:()=>Yt,IsHash:()=>Os,IsHexColor:()=>an,IsHexadecimal:()=>un,IsIBAN:()=>Do,IsIP:()=>_n,IsISBN:()=>Cn,IsISIN:()=>Pn,IsISO31661Alpha2:()=>ua,IsISO31661Alpha3:()=>ma,IsISO4217CurrencyCode:()=>Zc,IsISO8601:()=>Un,IsISRC:()=>ko,IsISSN:()=>ws,IsIdentityCard:()=>Io,IsIn:()=>de,IsInstance:()=>Vu,IsInt:()=>fu,IsJSON:()=>Wn,IsJWT:()=>Zn,IsLatLong:()=>G,IsLatitude:()=>Y,IsLocale:()=>Ho,IsLongitude:()=>Z,IsLowercase:()=>ta,IsMACAddress:()=>hn,IsMagnetURI:()=>zo,IsMilitaryTime:()=>ys,IsMimeType:()=>Xo,IsMobilePhone:()=>ia,IsMongoId:()=>ya,IsMultibyte:()=>Oa,IsNegative:()=>$e,IsNotEmpty:()=>ce,IsNotEmptyObject:()=>Hu,IsNotIn:()=>me,IsNumber:()=>iu,IsNumberString:()=>Bs,IsObject:()=>xu,IsOctal:()=>rc,IsOptional:()=>I,IsPassportNumber:()=>uc,IsPhoneNumber:()=>bs,IsPort:()=>$n,IsPositive:()=>xe,IsPostalCode:()=>fc,IsRFC3339:()=>vc,IsRgbColor:()=>Tc,IsSemVer:()=>Dc,IsString:()=>bu,IsStrongPassword:()=>Ic,IsSurrogatePair:()=>wa,IsTaxId:()=>Vc,IsTimeZone:()=>Lc,IsUUID:()=>Fa,IsUppercase:()=>Ya,IsUrl:()=>Ma,IsVariableWidth:()=>Qt,Length:()=>Qa,MATCHES:()=>or,MAX:()=>Ae,MAX_DATE:()=>Pe,MAX_LENGTH:()=>Xa,MIN:()=>we,MIN_DATE:()=>Ne,MIN_LENGTH:()=>nr,Matches:()=>ur,Max:()=>De,MaxDate:()=>je,MaxLength:()=>tr,MetadataStorage:()=>u,Min:()=>Re,MinDate:()=>Me,MinLength:()=>rr,NOT_CONTAINS:()=>He,NOT_EQUALS:()=>ee,NotContains:()=>We,NotEquals:()=>ne,Validate:()=>P,ValidateBy:()=>w,ValidateIf:()=>L,ValidateNested:()=>k,ValidatePromise:()=>F,ValidationError:()=>d,ValidationTypes:()=>p,Validator:()=>E,ValidatorConstraint:()=>M,arrayContains:()=>Ou,arrayMaxSize:()=>Lu,arrayMinSize:()=>Iu,arrayNotContains:()=>Su,arrayNotEmpty:()=>Cu,arrayUnique:()=>Fu,buildMessage:()=>D,contains:()=>qe,equals:()=>Q,getFromContainer:()=>O,getMetadataStorage:()=>l,isAlpha:()=>ze,isAlphanumeric:()=>Qe,isArray:()=>vu,isAscii:()=>ct,isBIC:()=>Js,isBase32:()=>Vs,isBase58:()=>Uc,isBase64:()=>ft,isBoolean:()=>Qc,isBooleanString:()=>Ls,isBtcAddress:()=>no,isByteLength:()=>vt,isCreditCard:()=>Tt,isCurrency:()=>Dt,isDataURI:()=>oo,isDate:()=>tu,isDateString:()=>Rs,isDecimal:()=>at,isDefined:()=>R,isDivisibleBy:()=>ve,isEAN:()=>fo,isEmail:()=>It,isEmpty:()=>re,isEnum:()=>cu,isEthereumAddress:()=>vo,isFQDN:()=>kt,isFirebasePushId:()=>qa,isFullWidth:()=>Bt,isHSL:()=>To,isHalfWidth:()=>Vt,isHash:()=>Ts,isHexColor:()=>nn,isHexadecimal:()=>cn,isIBAN:()=>So,isIP:()=>yn,isISBN:()=>wn,isISIN:()=>Mn,isISO31661Alpha2:()=>ca,isISO31661Alpha3:()=>fa,isISO4217CurrencyCode:()=>Kc,isISO8601:()=>Fn,isISRC:()=>jo,isISSN:()=>Ds,isIdentityCard:()=>No,isIn:()=>le,isInstance:()=>Wu,isInt:()=>pu,isJSON:()=>Gn,isJWT:()=>Kn,isLatLong:()=>H,isLatitude:()=>V,isLocale:()=>Bo,isLongitude:()=>K,isLowercase:()=>ea,isMACAddress:()=>mn,isMagnetURI:()=>Yo,isMilitaryTime:()=>vs,isMimeType:()=>Qo,isMobilePhone:()=>ra,isMongoId:()=>va,isMultibyte:()=>Ta,isNegative:()=>Oe,isNotEmpty:()=>oe,isNotEmptyObject:()=>Bu,isNotIn:()=>fe,isNumber:()=>ru,isNumberString:()=>qs,isObject:()=>Eu,isOctal:()=>ac,isPassportNumber:()=>cc,isPhoneNumber:()=>hs,isPort:()=>On,isPositive:()=>Ee,isPostalCode:()=>pc,isRFC3339:()=>gc,isRgbColor:()=>xc,isSemVer:()=>Sc,isString:()=>hu,isStrongPassword:()=>Nc,isSurrogatePair:()=>Da,isTaxId:()=>Wc,isTimeZone:()=>Pc,isURL:()=>Ia,isUUID:()=>ka,isUppercase:()=>Va,isValidationOptions:()=>ln,isVariableWidth:()=>Jt,length:()=>Ja,matches:()=>cr,max:()=>Se,maxDate:()=>Le,maxLength:()=>er,min:()=>Ce,minDate:()=>Ie,minLength:()=>ar,notContains:()=>Ge,notEquals:()=>te,registerDecorator:()=>S,registerSchema:()=>Zu,useContainer:()=>T,validate:()=>Yu,validateOrReject:()=>zu,validateSync:()=>Ku});var a=function(e){this.groups=[],this.each=!1,this.context=void 0,this.type=e.type,this.name=e.name,this.target=e.target,this.propertyName=e.propertyName,this.constraints=null==e?void 0:e.constraints,this.constraintCls=e.constraintCls,this.validationTypeOptions=e.validationTypeOptions,e.validationOptions&&(this.message=e.validationOptions.message,this.groups=e.validationOptions.groups,this.always=e.validationOptions.always,this.each=e.validationOptions.each,this.context=e.validationOptions.context)},r=function(){function e(){}return e.prototype.transform=function(e){var t=[];return Object.keys(e.properties).forEach((function(n){e.properties[n].forEach((function(r){var i={message:r.message,groups:r.groups,always:r.always,each:r.each},s={type:r.type,name:r.name,target:e.name,propertyName:n,constraints:r.constraints,validationTypeOptions:r.options,validationOptions:i};t.push(new a(s))}))})),t},e}();function i(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0}var s=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],a=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},o=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},c=function(e,t,n){if(n||2===arguments.length)for(var a,r=0,i=t.length;r<i;r++)!a&&r in t||(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},u=function(){function e(){this.validationMetadatas=new Map,this.constraintMetadatas=new Map}return Object.defineProperty(e.prototype,"hasValidationMetaData",{get:function(){return!!this.validationMetadatas.size},enumerable:!1,configurable:!0}),e.prototype.addValidationSchema=function(e){var t=this;(new r).transform(e).forEach((function(e){return t.addValidationMetadata(e)}))},e.prototype.addValidationMetadata=function(e){var t=this.validationMetadatas.get(e.target);t?t.push(e):this.validationMetadatas.set(e.target,[e])},e.prototype.addConstraintMetadata=function(e){var t=this.constraintMetadatas.get(e.target);t?t.push(e):this.constraintMetadatas.set(e.target,[e])},e.prototype.groupByPropertyName=function(e){var t={};return e.forEach((function(e){t[e.propertyName]||(t[e.propertyName]=[]),t[e.propertyName].push(e)})),t},e.prototype.getTargetValidationMetadatas=function(e,t,n,a,r){var i,u,l=function(e){return void 0!==e.always?e.always:(!e.groups||!e.groups.length)&&n},d=function(e){return!(!a||r&&r.length||!e.groups||!e.groups.length)},p=(this.validationMetadatas.get(e)||[]).filter((function(n){return(n.target===e||n.target===t)&&(!!l(n)||!d(n)&&(!(r&&r.length>0)||n.groups&&!!n.groups.find((function(e){return-1!==r.indexOf(e)}))))})),f=[];try{for(var m=s(this.validationMetadatas.entries()),h=m.next();!h.done;h=m.next()){var b=o(h.value,2),g=b[0],v=b[1];e.prototype instanceof g&&f.push.apply(f,c([],o(v),!1))}}catch(e){i={error:e}}finally{try{h&&!h.done&&(u=m.return)&&u.call(m)}finally{if(i)throw i.error}}var y=f.filter((function(t){return"string"!=typeof t.target&&(t.target!==e&&((!(t.target instanceof Function)||e.prototype instanceof t.target)&&(!!l(t)||!d(t)&&(!(r&&r.length>0)||t.groups&&!!t.groups.find((function(e){return-1!==r.indexOf(e)}))))))})).filter((function(e){return!p.find((function(t){return t.propertyName===e.propertyName&&t.type===e.type}))}));return p.concat(y)},e.prototype.getTargetValidatorConstraints=function(e){return this.constraintMetadatas.get(e)||[]},e}();function l(){var e=i();return e.classValidatorMetadataStorage||(e.classValidatorMetadataStorage=new u),e.classValidatorMetadataStorage}var d=function(){function e(){}return e.prototype.toString=function(e,t,n,a){var r=this;void 0===e&&(e=!1),void 0===t&&(t=!1),void 0===n&&(n=""),void 0===a&&(a=!1);var i=e?"":"",s=e?"":"",o=function(e){return" - property ".concat(i).concat(n).concat(e).concat(s," has failed the following constraints: ").concat(i).concat((a?Object.values:Object.keys)(null!==(t=r.constraints)&&void 0!==t?t:{}).join(", ")).concat(s," \n");var t};if(t){var c=Number.isInteger(+this.property)?"[".concat(this.property,"]"):"".concat(n?".":"").concat(this.property);return this.constraints?o(c):this.children?this.children.map((function(t){return t.toString(e,!0,"".concat(n).concat(c),a)})).join(""):""}return"An instance of ".concat(i).concat(this.target?this.target.constructor.name:"an object").concat(s," has failed the validation:\n")+(this.constraints?o(this.property):"")+(this.children?this.children.map((function(t){return t.toString(e,!0,r.property,a)})).join(""):"")},e}(),p=function(){function e(){}return e.isValid=function(e){var t=this;return"isValid"!==e&&"getMessage"!==e&&-1!==Object.keys(this).map((function(e){return t[e]})).indexOf(e)},e.CUSTOM_VALIDATION="customValidation",e.NESTED_VALIDATION="nestedValidation",e.PROMISE_VALIDATION="promiseValidation",e.CONDITIONAL_VALIDATION="conditionalValidation",e.WHITELIST="whitelistValidation",e.IS_DEFINED="isDefined",e}();var f=function(){function e(){}return e.replaceMessageSpecialTokens=function(e,t){var n;return e instanceof Function?n=e(t):"string"==typeof e&&(n=e),n&&Array.isArray(t.constraints)&&t.constraints.forEach((function(e,t){n=n.replace(new RegExp("\\$constraint".concat(t+1),"g"),function(e){return Array.isArray(e)?e.join(", "):("symbol"==typeof e&&(e=e.description),"".concat(e))}(e))})),n&&void 0!==t.value&&null!==t.value&&"string"==typeof t.value&&(n=n.replace(/\$value/g,t.value)),n&&(n=n.replace(/\$property/g,t.property)),n&&(n=n.replace(/\$target/g,t.targetName)),n},e}();function m(e){return null!==e&&"object"==typeof e&&"function"==typeof e.then}var h,b,g=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},v=function(){function e(e,t){this.validator=e,this.validatorOptions=t,this.awaitingPromises=[],this.ignoreAsyncValidations=!1,this.metadataStorage=l()}return e.prototype.execute=function(e,t,n){var a,r,i=this;this.metadataStorage.hasValidationMetaData||!0!==(null===(a=this.validatorOptions)||void 0===a?void 0:a.enableDebugMessages)||console.warn("No validation metadata found. No validation will be performed. There are multiple possible reasons:\n - There may be multiple class-validator versions installed. You will need to flatten your dependencies to fix the issue.\n - This validation runs before any file with validation decorator was parsed by NodeJS.");var s=this.validatorOptions?this.validatorOptions.groups:void 0,o=this.validatorOptions&&this.validatorOptions.strictGroups||!1,c=this.validatorOptions&&this.validatorOptions.always||!1,u=void 0===(null===(r=this.validatorOptions)||void 0===r?void 0:r.forbidUnknownValues)||!1!==this.validatorOptions.forbidUnknownValues,l=this.metadataStorage.getTargetValidationMetadatas(e.constructor,t,c,o,s),f=this.metadataStorage.groupByPropertyName(l);if(this.validatorOptions&&u&&!l.length){var m=new d;return this.validatorOptions&&this.validatorOptions.validationError&&void 0!==this.validatorOptions.validationError.target&&!0!==this.validatorOptions.validationError.target||(m.target=e),m.value=void 0,m.property=void 0,m.children=[],m.constraints={unknownValue:"an unknown value was passed to the validate function"},void n.push(m)}this.validatorOptions&&this.validatorOptions.whitelist&&this.whitelist(e,f,n),Object.keys(f).forEach((function(t){var a=e[t],r=f[t].filter((function(e){return e.type===p.IS_DEFINED})),s=f[t].filter((function(e){return e.type!==p.IS_DEFINED&&e.type!==p.WHITELIST}));a instanceof Promise&&s.find((function(e){return e.type===p.PROMISE_VALIDATION}))?i.awaitingPromises.push(a.then((function(a){i.performValidations(e,a,t,r,s,n)}))):i.performValidations(e,a,t,r,s,n)}))},e.prototype.whitelist=function(e,t,n){var a=this,r=[];Object.keys(e).forEach((function(e){t[e]&&0!==t[e].length||r.push(e)})),r.length>0&&(this.validatorOptions&&this.validatorOptions.forbidNonWhitelisted?r.forEach((function(t){var r,i=a.generateValidationError(e,e[t],t);i.constraints=((r={})[p.WHITELIST]="property ".concat(t," should not exist"),r),i.children=void 0,n.push(i)})):r.forEach((function(t){return delete e[t]})))},e.prototype.stripEmptyErrors=function(e){var t=this;return e.filter((function(e){if(e.children&&(e.children=t.stripEmptyErrors(e.children)),0===Object.keys(e.constraints).length){if(0===e.children.length)return!1;delete e.constraints}return!0}))},e.prototype.performValidations=function(e,t,n,a,r,i){var s=r.filter((function(e){return e.type===p.CUSTOM_VALIDATION})),o=r.filter((function(e){return e.type===p.NESTED_VALIDATION})),c=r.filter((function(e){return e.type===p.CONDITIONAL_VALIDATION})),u=this.generateValidationError(e,t,n);i.push(u),this.conditionalValidations(e,t,c)&&(this.customValidations(e,t,a,u),this.mapContexts(e,t,a,u),void 0===t&&this.validatorOptions&&!0===this.validatorOptions.skipUndefinedProperties||null===t&&this.validatorOptions&&!0===this.validatorOptions.skipNullProperties||null==t&&this.validatorOptions&&!0===this.validatorOptions.skipMissingProperties||(this.customValidations(e,t,s,u),this.nestedValidations(t,o,u),this.mapContexts(e,t,r,u),this.mapContexts(e,t,s,u)))},e.prototype.generateValidationError=function(e,t,n){var a=new d;return this.validatorOptions&&this.validatorOptions.validationError&&void 0!==this.validatorOptions.validationError.target&&!0!==this.validatorOptions.validationError.target||(a.target=e),this.validatorOptions&&this.validatorOptions.validationError&&void 0!==this.validatorOptions.validationError.value&&!0!==this.validatorOptions.validationError.value||(a.value=t),a.property=n,a.children=[],a.constraints={},a},e.prototype.conditionalValidations=function(e,t,n){return n.map((function(n){return n.constraints[0](e,t)})).reduce((function(e,t){return e&&t}),!0)},e.prototype.customValidations=function(e,t,n,a){var r=this;n.forEach((function(n){r.metadataStorage.getTargetValidatorConstraints(n.constraintCls).forEach((function(i){if(!(i.async&&r.ignoreAsyncValidations||r.validatorOptions&&r.validatorOptions.stopAtFirstError&&Object.keys(a.constraints||{}).length>0)){var s={targetName:e.constructor?e.constructor.name:void 0,property:n.propertyName,object:e,value:t,constraints:n.constraints};if(n.each&&(Array.isArray(t)||t instanceof Set||t instanceof Map)){var o,c=((o=t)instanceof Map?Array.from(o.values()):Array.isArray(o)?o:Array.from(o)).map((function(e){return i.instance.validate(e,s)}));if(c.some((function(e){return m(e)}))){var u=c.map((function(e){return m(e)?e:Promise.resolve(e)})),l=Promise.all(u).then((function(s){if(!s.every((function(e){return e}))){var o=g(r.createValidationError(e,t,n,i),2),c=o[0],u=o[1];a.constraints[c]=u,n.context&&(a.contexts||(a.contexts={}),a.contexts[c]=Object.assign(a.contexts[c]||{},n.context))}}));r.awaitingPromises.push(l)}else{if(!c.every((function(e){return e}))){var d=g(r.createValidationError(e,t,n,i),2);b=d[0],v=d[1];a.constraints[b]=v}}}else{var p=i.instance.validate(t,s);if(m(p)){var f=p.then((function(s){if(!s){var o=g(r.createValidationError(e,t,n,i),2),c=o[0],u=o[1];a.constraints[c]=u,n.context&&(a.contexts||(a.contexts={}),a.contexts[c]=Object.assign(a.contexts[c]||{},n.context))}}));r.awaitingPromises.push(f)}else if(!p){var h=g(r.createValidationError(e,t,n,i),2),b=h[0],v=h[1];a.constraints[b]=v}}}}))}))},e.prototype.nestedValidations=function(e,t,n){var a=this;void 0!==e&&t.forEach((function(r){if((r.type===p.NESTED_VALIDATION||r.type===p.PROMISE_VALIDATION)&&!(a.validatorOptions&&a.validatorOptions.stopAtFirstError&&Object.keys(n.constraints||{}).length>0))if(Array.isArray(e)||e instanceof Set||e instanceof Map)(e instanceof Set?Array.from(e):e).forEach((function(r,i){a.performValidations(e,r,i.toString(),[],t,n.children)}));else if(e instanceof Object){var i="string"==typeof r.target?r.target:r.target.name;a.execute(e,i,n.children)}else{var s=g(a.createValidationError(r.target,e,r),2),o=s[0],c=s[1];n.constraints[o]=c}}))},e.prototype.mapContexts=function(e,t,n,a){var r=this;return n.forEach((function(e){if(e.context){var t=void 0;if(e.type===p.CUSTOM_VALIDATION)t=r.metadataStorage.getTargetValidatorConstraints(e.constraintCls)[0];var n=r.getConstraintType(e,t);a.constraints[n]&&(a.contexts||(a.contexts={}),a.contexts[n]=Object.assign(a.contexts[n]||{},e.context))}}))},e.prototype.createValidationError=function(e,t,n,a){var r=e.constructor?e.constructor.name:void 0,i=this.getConstraintType(n,a),s={targetName:r,property:n.propertyName,object:e,value:t,constraints:n.constraints},o=n.message||"";return n.message||this.validatorOptions&&(!this.validatorOptions||this.validatorOptions.dismissDefaultMessages)||a&&a.instance.defaultMessage instanceof Function&&(o=a.instance.defaultMessage(s)),[i,f.replaceMessageSpecialTokens(o,s)]},e.prototype.getConstraintType=function(e,t){return t&&t.name?t.name:e.type},e}(),y=function(e,t,n,a){return new(n||(n=Promise))((function(r,i){function s(e){try{c(a.next(e))}catch(e){i(e)}}function o(e){try{c(a.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}c((a=a.apply(e,t||[])).next())}))},_=function(e,t){var n,a,r,i,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function o(o){return function(c){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,o[0]&&(s=0)),s;)try{if(n=1,a&&(r=2&o[0]?a.return:o[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,o[1])).done)return r;switch(a=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,a=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=s.trys,(r=r.length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],a=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,c])}}},E=function(){function e(){}return e.prototype.validate=function(e,t,n){return this.coreValidate(e,t,n)},e.prototype.validateOrReject=function(e,t,n){return y(this,void 0,void 0,(function(){var a;return _(this,(function(r){switch(r.label){case 0:return[4,this.coreValidate(e,t,n)];case 1:return(a=r.sent()).length?[2,Promise.reject(a)]:[2]}}))}))},e.prototype.validateSync=function(e,t,n){var a="string"==typeof e?t:e,r="string"==typeof e?e:void 0,i=new v(this,"string"==typeof e?n:t);i.ignoreAsyncValidations=!0;var s=[];return i.execute(a,r,s),i.stripEmptyErrors(s)},e.prototype.coreValidate=function(e,t,n){var a="string"==typeof e?t:e,r="string"==typeof e?e:void 0,i=new v(this,"string"==typeof e?n:t),s=[];return i.execute(a,r,s),Promise.all(i.awaitingPromises).then((function(){return i.stripEmptyErrors(s)}))},e}(),x=new(function(){function e(){this.instances=[]}return e.prototype.get=function(e){var t=this.instances.find((function(t){return t.type===e}));return t||(t={type:e,object:new e},this.instances.push(t)),t.object},e}());function T(e,t){h=e,b=t}function O(e){if(h)try{var t=h.get(e);if(t)return t;if(!b||!b.fallback)return t}catch(e){if(!b||!b.fallbackOnErrors)throw e}return x.get(e)}function $(e){return function(t,n){var r={type:p.WHITELIST,target:t.constructor,propertyName:n,validationOptions:e};l().addValidationMetadata(new a(r))}}var A=function(){function e(e,t,n){void 0===n&&(n=!1),this.target=e,this.name=t,this.async=n}return Object.defineProperty(e.prototype,"instance",{get:function(){return O(this.target)},enumerable:!1,configurable:!0}),e}();function S(e){var t;if(e.validator instanceof Function){if(t=e.validator,O(u).getTargetValidatorConstraints(e.validator).length>1)throw"More than one implementation of ValidatorConstraintInterface found for validator on: ".concat(e.target.name,":").concat(e.propertyName)}else{var n=e.validator;t=function(){function e(){}return e.prototype.validate=function(e,t){return n.validate(e,t)},e.prototype.defaultMessage=function(e){return n.defaultMessage?n.defaultMessage(e):""},e}(),l().addConstraintMetadata(new A(t,e.name,e.async))}var r={type:e.name&&p.isValid(e.name)?e.name:p.CUSTOM_VALIDATION,name:e.name,target:e.target,propertyName:e.propertyName,validationOptions:e.options,constraintCls:t,constraints:e.constraints};l().addValidationMetadata(new a(r))}function D(e,t){return function(n){var a=t&&t.each?"each value in ":"";return e(a,n)}}function w(e,t){return function(n,a){S({name:e.name,target:n.constructor,propertyName:a,options:t,constraints:e.constraints,validator:e.validator})}}var C=p.IS_DEFINED;function R(e){return null!=e}function N(e){return w({name:C,validator:{validate:function(e){return R(e)},defaultMessage:D((function(e){return e+"$property should not be null or undefined"}),e)}},e)}function I(e){return function(t,n){var r={type:p.CONDITIONAL_VALIDATION,target:t.constructor,propertyName:n,constraints:[function(e,t){return null!==e[n]&&void 0!==e[n]}],validationOptions:e};l().addValidationMetadata(new a(r))}}function M(e){return function(t){var n=e&&e.async,a=e&&e.name?e.name:"";a||(a=t.name)||(a=a.replace(/\.?([A-Z]+)/g,(function(e,t){return"_"+t.toLowerCase()})).replace(/^_/,""));var r=new A(t,a,n);l().addConstraintMetadata(r)}}function P(e,t,n){return function(r,i){var s={type:p.CUSTOM_VALIDATION,target:r.constructor,propertyName:i,constraintCls:e,constraints:Array.isArray(t)?t:void 0,validationOptions:Array.isArray(t)?n:t};l().addValidationMetadata(new a(s))}}function L(e,t){return function(n,r){var i={type:p.CONDITIONAL_VALIDATION,target:n.constructor,propertyName:r,constraints:[e],validationOptions:t};l().addValidationMetadata(new a(i))}}var j=function(){return j=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},j.apply(this,arguments)};function k(e){var t=j({},e),n=t.each?"each value in ":"";return t.message=t.message||n+"nested property $property must be either object or array",function(e,n){var r={type:p.NESTED_VALIDATION,target:e.constructor,propertyName:n,validationOptions:t};l().addValidationMetadata(new a(r))}}function F(e){return function(t,n){var r={type:p.PROMISE_VALIDATION,target:t.constructor,propertyName:n,validationOptions:e};l().addValidationMetadata(new a(r))}}var U=n(89263),q=n.n(U),B="isLatLong";function H(e){return"string"==typeof e&&q()(e)}function G(e){return w({name:B,validator:{validate:function(e,t){return H(e)},defaultMessage:D((function(e){return e+"$property must be a latitude,longitude string"}),e)}},e)}var W="isLatitude";function V(e){return("number"==typeof e||"string"==typeof e)&&H("".concat(e,",0"))}function Y(e){return w({name:W,validator:{validate:function(e,t){return V(e)},defaultMessage:D((function(e){return e+"$property must be a latitude string or number"}),e)}},e)}var z="isLongitude";function K(e){return("number"==typeof e||"string"==typeof e)&&H("0,".concat(e))}function Z(e){return w({name:z,validator:{validate:function(e,t){return K(e)},defaultMessage:D((function(e){return e+"$property must be a longitude string or number"}),e)}},e)}var J="equals";function Q(e,t){return e===t}function X(e,t){return w({name:J,constraints:[e],validator:{validate:function(e,t){return Q(e,null==t?void 0:t.constraints[0])},defaultMessage:D((function(e){return e+"$property must be equal to $constraint1"}),t)}},t)}var ee="notEquals";function te(e,t){return e!==t}function ne(e,t){return w({name:ee,constraints:[e],validator:{validate:function(e,t){return te(e,null==t?void 0:t.constraints[0])},defaultMessage:D((function(e){return e+"$property should not be equal to $constraint1"}),t)}},t)}var ae="isEmpty";function re(e){return""===e||null==e}function ie(e){return w({name:ae,validator:{validate:function(e,t){return re(e)},defaultMessage:D((function(e){return e+"$property must be empty"}),e)}},e)}var se="isNotEmpty";function oe(e){return""!==e&&null!=e}function ce(e){return w({name:se,validator:{validate:function(e,t){return oe(e)},defaultMessage:D((function(e){return e+"$property should not be empty"}),e)}},e)}var ue="isIn";function le(e,t){return!Array.isArray(t)||t.some((function(t){return t===e}))}function de(e,t){return w({name:ue,constraints:[e],validator:{validate:function(e,t){return le(e,null==t?void 0:t.constraints[0])},defaultMessage:D((function(e){return e+"$property must be one of the following values: $constraint1"}),t)}},t)}var pe="isNotIn";function fe(e,t){return!Array.isArray(t)||!t.some((function(t){return t===e}))}function me(e,t){return w({name:pe,constraints:[e],validator:{validate:function(e,t){return fe(e,null==t?void 0:t.constraints[0])},defaultMessage:D((function(e){return e+"$property should not be one of the following values: $constraint1"}),t)}},t)}var he=n(89510),be=n.n(he),ge="isDivisibleBy";function ve(e,t){return"number"==typeof e&&"number"==typeof t&&be()(String(e),t)}function ye(e,t){return w({name:ge,constraints:[e],validator:{validate:function(e,t){return ve(e,null==t?void 0:t.constraints[0])},defaultMessage:D((function(e){return e+"$property must be divisible by $constraint1"}),t)}},t)}var _e="isPositive";function Ee(e){return"number"==typeof e&&e>0}function xe(e){return w({name:_e,validator:{validate:function(e,t){return Ee(e)},defaultMessage:D((function(e){return e+"$property must be a positive number"}),e)}},e)}var Te="isNegative";function Oe(e){return"number"==typeof e&&e<0}function $e(e){return w({name:Te,validator:{validate:function(e,t){return Oe(e)},defaultMessage:D((function(e){return e+"$property must be a negative number"}),e)}},e)}var Ae="max";function Se(e,t){return"number"==typeof e&&"number"==typeof t&&e<=t}function De(e,t){return w({name:Ae,constraints:[e],validator:{validate:function(e,t){return Se(e,null==t?void 0:t.constraints[0])},defaultMessage:D((function(e){return e+"$property must not be greater than $constraint1"}),t)}},t)}var we="min";function Ce(e,t){return"number"==typeof e&&"number"==typeof t&&e>=t}function Re(e,t){return w({name:we,constraints:[e],validator:{validate:function(e,t){return Ce(e,null==t?void 0:t.constraints[0])},defaultMessage:D((function(e){return e+"$property must not be less than $constraint1"}),t)}},t)}var Ne="minDate";function Ie(e,t){return e instanceof Date&&e.getTime()>=(t instanceof Date?t:t()).getTime()}function Me(e,t){return w({name:Ne,constraints:[e],validator:{validate:function(e,t){return Ie(e,null==t?void 0:t.constraints[0])},defaultMessage:D((function(e){return"minimal allowed date for "+e+"$property is $constraint1"}),t)}},t)}var Pe="maxDate";function Le(e,t){return e instanceof Date&&e.getTime()<=(t instanceof Date?t:t()).getTime()}function je(e,t){return w({name:Pe,constraints:[e],validator:{validate:function(e,t){return Le(e,null==t?void 0:t.constraints[0])},defaultMessage:D((function(e){return"maximal allowed date for "+e+"$property is $constraint1"}),t)}},t)}var ke=n(6151),Fe=n.n(ke),Ue="contains";function qe(e,t){return"string"==typeof e&&Fe()(e,t)}function Be(e,t){return w({name:Ue,constraints:[e],validator:{validate:function(e,t){return qe(e,null==t?void 0:t.constraints[0])},defaultMessage:D((function(e){return e+"$property must contain a $constraint1 string"}),t)}},t)}var He="notContains";function Ge(e,t){return"string"==typeof e&&!Fe()(e,t)}function We(e,t){return w({name:He,constraints:[e],validator:{validate:function(e,t){return Ge(e,null==t?void 0:t.constraints[0])},defaultMessage:D((function(e){return e+"$property should not contain a $constraint1 string"}),t)}},t)}var Ve=n(86048),Ye="isAlpha";function ze(e,t){return"string"==typeof e&&(0,Ve.default)(e,t)}function Ke(e,t){return w({name:Ye,constraints:[e],validator:{validate:function(e,t){return ze(e,null==t?void 0:t.constraints[0])},defaultMessage:D((function(e){return e+"$property must contain only letters (a-zA-Z)"}),t)}},t)}var Ze=n(78201),Je="isAlphanumeric";function Qe(e,t){return"string"==typeof e&&(0,Ze.default)(e,t)}function Xe(e,t){return w({name:Je,constraints:[e],validator:{validate:function(e,t){return Qe(e,null==t?void 0:t.constraints[0])},defaultMessage:D((function(e){return e+"$property must contain only letters and numbers"}),t)}},t)}var et=n(70235),tt=n.n(et),nt="isDecimal";function at(e,t){return"string"==typeof e&&tt()(e,t)}function rt(e,t){return w({name:nt,constraints:[e],validator:{validate:function(e,t){return at(e,null==t?void 0:t.constraints[0])},defaultMessage:D((function(e){return e+"$property is not a valid decimal number."}),t)}},t)}var it=n(7671),st=n.n(it),ot="isAscii";function ct(e){return"string"==typeof e&&st()(e)}function ut(e){return w({name:ot,validator:{validate:function(e,t){return ct(e)},defaultMessage:D((function(e){return e+"$property must contain only ASCII characters"}),e)}},e)}var lt=n(11765),dt=n.n(lt),pt="isBase64";function ft(e){return"string"==typeof e&&dt()(e)}function mt(e){return w({name:pt,validator:{validate:function(e,t){return ft(e)},defaultMessage:D((function(e){return e+"$property must be base64 encoded"}),e)}},e)}var ht=n(50628),bt=n.n(ht),gt="isByteLength";function vt(e,t,n){return"string"==typeof e&&bt()(e,{min:t,max:n})}function yt(e,t,n){return w({name:gt,constraints:[e,t],validator:{validate:function(e,t){return vt(e,null==t?void 0:t.constraints[0],null==t?void 0:t.constraints[1])},defaultMessage:D((function(e){return e+"$property's byte length must fall into ($constraint1, $constraint2) range"}),n)}},n)}var _t=n(73389),Et=n.n(_t),xt="isCreditCard";function Tt(e){return"string"==typeof e&&Et()(e)}function Ot(e){return w({name:xt,validator:{validate:function(e,t){return Tt(e)},defaultMessage:D((function(e){return e+"$property must be a credit card"}),e)}},e)}var $t=n(38553),At=n.n($t),St="isCurrency";function Dt(e,t){return"string"==typeof e&&At()(e,t)}function wt(e,t){return w({name:St,constraints:[e],validator:{validate:function(e,t){return Dt(e,null==t?void 0:t.constraints[0])},defaultMessage:D((function(e){return e+"$property must be a currency"}),t)}},t)}var Ct=n(80708),Rt=n.n(Ct),Nt="isEmail";function It(e,t){return"string"==typeof e&&Rt()(e,t)}function Mt(e,t){return w({name:Nt,constraints:[e],validator:{validate:function(e,t){return It(e,null==t?void 0:t.constraints[0])},defaultMessage:D((function(e){return e+"$property must be an email"}),t)}},t)}var Pt=n(1425),Lt=n.n(Pt),jt="isFqdn";function kt(e,t){return"string"==typeof e&&Lt()(e,t)}function Ft(e,t){return w({name:jt,constraints:[e],validator:{validate:function(e,t){return kt(e,null==t?void 0:t.constraints[0])},defaultMessage:D((function(e){return e+"$property must be a valid domain name"}),t)}},t)}var Ut=n(35463),qt="isFullWidth";function Bt(e){return"string"==typeof e&&(0,Ut.default)(e)}function Ht(e){return w({name:qt,validator:{validate:function(e,t){return Bt(e)},defaultMessage:D((function(e){return e+"$property must contain a full-width characters"}),e)}},e)}var Gt=n(57983),Wt="isHalfWidth";function Vt(e){return"string"==typeof e&&(0,Gt.default)(e)}function Yt(e){return w({name:Wt,validator:{validate:function(e,t){return Vt(e)},defaultMessage:D((function(e){return e+"$property must contain a half-width characters"}),e)}},e)}var zt=n(61236),Kt=n.n(zt),Zt="isVariableWidth";function Jt(e){return"string"==typeof e&&Kt()(e)}function Qt(e){return w({name:Zt,validator:{validate:function(e,t){return Jt(e)},defaultMessage:D((function(e){return e+"$property must contain a full-width and half-width characters"}),e)}},e)}var Xt=n(93518),en=n.n(Xt),tn="isHexColor";function nn(e){return"string"==typeof e&&en()(e)}function an(e){return w({name:tn,validator:{validate:function(e,t){return nn(e)},defaultMessage:D((function(e){return e+"$property must be a hexadecimal color"}),e)}},e)}var rn=n(89791),sn=n.n(rn),on="isHexadecimal";function cn(e){return"string"==typeof e&&sn()(e)}function un(e){return w({name:on,validator:{validate:function(e,t){return cn(e)},defaultMessage:D((function(e){return e+"$property must be a hexadecimal number"}),e)}},e)}function ln(e){return!!e&&("each"in e||"message"in e||"groups"in e||"always"in e||"context"in e)}var dn=n(29943),pn=n.n(dn),fn="isMacAddress";function mn(e,t){return"string"==typeof e&&pn()(e,t)}function hn(e,t){var n=ln(e)?void 0:e,a=ln(e)?e:t;return w({name:fn,constraints:[n],validator:{validate:function(e,t){return mn(e,n)},defaultMessage:D((function(e){return e+"$property must be a MAC Address"}),a)}},a)}var bn=n(86659),gn=n.n(bn),vn="isIp";function yn(e,t){var n=t?"".concat(t):void 0;return"string"==typeof e&&gn()(e,n)}function _n(e,t){return w({name:vn,constraints:[e],validator:{validate:function(e,t){return yn(e,null==t?void 0:t.constraints[0])},defaultMessage:D((function(e){return e+"$property must be an ip address"}),t)}},t)}var En=n(52289),xn=n.n(En),Tn="isPort";function On(e){return"string"==typeof e&&xn()(e)}function $n(e){return w({name:Tn,validator:{validate:function(e,t){return On(e)},defaultMessage:D((function(e){return e+"$property must be a port"}),e)}},e)}var An=n(53378),Sn=n.n(An),Dn="isIsbn";function wn(e,t){var n=t?"".concat(t):void 0;return"string"==typeof e&&Sn()(e,n)}function Cn(e,t){return w({name:Dn,constraints:[e],validator:{validate:function(e,t){return wn(e,null==t?void 0:t.constraints[0])},defaultMessage:D((function(e){return e+"$property must be an ISBN"}),t)}},t)}var Rn=n(94769),Nn=n.n(Rn),In="isIsin";function Mn(e){return"string"==typeof e&&Nn()(e)}function Pn(e){return w({name:In,validator:{validate:function(e,t){return Mn(e)},defaultMessage:D((function(e){return e+"$property must be an ISIN (stock/security identifier)"}),e)}},e)}var Ln=n(8404),jn=n.n(Ln),kn="isIso8601";function Fn(e,t){return"string"==typeof e&&jn()(e,t)}function Un(e,t){return w({name:kn,constraints:[e],validator:{validate:function(e,t){return Fn(e,null==t?void 0:t.constraints[0])},defaultMessage:D((function(e){return e+"$property must be a valid ISO 8601 date string"}),t)}},t)}var qn=n(5272),Bn=n.n(qn),Hn="isJson";function Gn(e){return"string"==typeof e&&Bn()(e)}function Wn(e){return w({name:Hn,validator:{validate:function(e,t){return Gn(e)},defaultMessage:D((function(e){return e+"$property must be a json string"}),e)}},e)}var Vn=n(1233),Yn=n.n(Vn),zn="isJwt";function Kn(e){return"string"==typeof e&&Yn()(e)}function Zn(e){return w({name:zn,validator:{validate:function(e,t){return Kn(e)},defaultMessage:D((function(e){return e+"$property must be a jwt string"}),e)}},e)}var Jn=n(26081),Qn=n.n(Jn),Xn="isLowercase";function ea(e){return"string"==typeof e&&Qn()(e)}function ta(e){return w({name:Xn,validator:{validate:function(e,t){return ea(e)},defaultMessage:D((function(e){return e+"$property must be a lowercase string"}),e)}},e)}var na=n(8982),aa="isMobilePhone";function ra(e,t,n){return"string"==typeof e&&(0,na.default)(e,t,n)}function ia(e,t,n){return w({name:aa,constraints:[e,t],validator:{validate:function(e,t){return ra(e,null==t?void 0:t.constraints[0],null==t?void 0:t.constraints[1])},defaultMessage:D((function(e){return e+"$property must be a phone number"}),n)}},n)}var sa=n(62456),oa="isISO31661Alpha2";function ca(e){return"string"==typeof e&&(0,sa.default)(e)}function ua(e){return w({name:oa,validator:{validate:function(e,t){return ca(e)},defaultMessage:D((function(e){return e+"$property must be a valid ISO31661 Alpha2 code"}),e)}},e)}var la=n(6383),da=n.n(la),pa="isISO31661Alpha3";function fa(e){return"string"==typeof e&&da()(e)}function ma(e){return w({name:pa,validator:{validate:function(e,t){return fa(e)},defaultMessage:D((function(e){return e+"$property must be a valid ISO31661 Alpha3 code"}),e)}},e)}var ha=n(43125),ba=n.n(ha),ga="isMongoId";function va(e){return"string"==typeof e&&ba()(e)}function ya(e){return w({name:ga,validator:{validate:function(e,t){return va(e)},defaultMessage:D((function(e){return e+"$property must be a mongodb id"}),e)}},e)}var _a=n(77839),Ea=n.n(_a),xa="isMultibyte";function Ta(e){return"string"==typeof e&&Ea()(e)}function Oa(e){return w({name:xa,validator:{validate:function(e,t){return Ta(e)},defaultMessage:D((function(e){return e+"$property must contain one or more multibyte chars"}),e)}},e)}var $a=n(67182),Aa=n.n($a),Sa="isSurrogatePair";function Da(e){return"string"==typeof e&&Aa()(e)}function wa(e){return w({name:Sa,validator:{validate:function(e,t){return Da(e)},defaultMessage:D((function(e){return e+"$property must contain any surrogate pairs chars"}),e)}},e)}var Ca=n(71537),Ra=n.n(Ca),Na="isUrl";function Ia(e,t){return"string"==typeof e&&Ra()(e,t)}function Ma(e,t){return w({name:Na,constraints:[e],validator:{validate:function(e,t){return Ia(e,null==t?void 0:t.constraints[0])},defaultMessage:D((function(e){return e+"$property must be a URL address"}),t)}},t)}var Pa=n(11245),La=n.n(Pa),ja="isUuid";function ka(e,t){return"string"==typeof e&&La()(e,t)}function Fa(e,t){return w({name:ja,constraints:[e],validator:{validate:function(e,t){return ka(e,null==t?void 0:t.constraints[0])},defaultMessage:D((function(e){return e+"$property must be a UUID"}),t)}},t)}var Ua="IsFirebasePushId";function qa(e){return"string"==typeof e&&20===e.length&&/^[a-zA-Z0-9_-]*$/.test(e)}function Ba(e){return w({name:Ua,validator:{validate:function(e,t){return qa(e)},defaultMessage:D((function(e){return e+"$property must be a Firebase Push Id"}),e)}},e)}var Ha=n(75840),Ga=n.n(Ha),Wa="isUppercase";function Va(e){return"string"==typeof e&&Ga()(e)}function Ya(e){return w({name:Wa,validator:{validate:function(e,t){return Va(e)},defaultMessage:D((function(e){return e+"$property must be uppercase"}),e)}},e)}var za=n(89806),Ka=n.n(za),Za="isLength";function Ja(e,t,n){return"string"==typeof e&&Ka()(e,{min:t,max:n})}function Qa(e,t,n){return w({name:Za,constraints:[e,t],validator:{validate:function(e,t){return Ja(e,null==t?void 0:t.constraints[0],null==t?void 0:t.constraints[1])},defaultMessage:D((function(e,t){var n=null!==(null==t?void 0:t.constraints[0])&&void 0!==(null==t?void 0:t.constraints[0]),a=null!==(null==t?void 0:t.constraints[1])&&void 0!==(null==t?void 0:t.constraints[1]);return n&&(!t.value||t.value.length<(null==t?void 0:t.constraints[0]))?e+"$property must be longer than or equal to $constraint1 characters":a&&t.value.length>(null==t?void 0:t.constraints[1])?e+"$property must be shorter than or equal to $constraint2 characters":e+"$property must be longer than or equal to $constraint1 and shorter than or equal to $constraint2 characters"}),n)}},n)}var Xa="maxLength";function er(e,t){return"string"==typeof e&&Ka()(e,{min:0,max:t})}function tr(e,t){return w({name:Xa,constraints:[e],validator:{validate:function(e,t){return er(e,null==t?void 0:t.constraints[0])},defaultMessage:D((function(e){return e+"$property must be shorter than or equal to $constraint1 characters"}),t)}},t)}var nr="minLength";function ar(e,t){return"string"==typeof e&&Ka()(e,{min:t})}function rr(e,t){return w({name:nr,constraints:[e],validator:{validate:function(e,t){return ar(e,null==t?void 0:t.constraints[0])},defaultMessage:D((function(e){return e+"$property must be longer than or equal to $constraint1 characters"}),t)}},t)}var ir=n(91561),sr=n.n(ir),or="matches";function cr(e,t,n){return"string"==typeof e&&sr()(e,t,n)}function ur(e,t,n){var a;return t&&t instanceof Object&&!n?n=t:a=t,w({name:or,constraints:[e,a],validator:{validate:function(e,t){return cr(e,null==t?void 0:t.constraints[0],null==t?void 0:t.constraints[1])},defaultMessage:D((function(e,t){return e+"$property must match $constraint1 regular expression"}),n)}},n)}const lr={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|7(?:[013-57-9]\\d|2[0-8]))\\d|3(?:(?:[0-3589]\\d|6[1-9]|7[0-35-9])\\d|4(?:[0-578]\\d|90)))\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|3\\d\\d)|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}",[9]],["4(?:(?:79|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[0-36-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|22"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[025-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[025-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","[24-689]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-689]"]]]],BL:["590","00","590\\d{6}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-5])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","(?:[2-467]\\d\\d|8001)\\d{5}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[23]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-46-9]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[17]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|7"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","(?:[2-8]\\d|90)\\d{8}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|73)|90[25])[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:00|2[125-9]|33|44|66|77|88)|622)[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:(?:79|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[0-36-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","[189]\\d{8}|[1-68]\\d{6}",[7,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"]],"0"],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9[2-9]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","1[127]\\d{8,9}|2\\d{9}(?:\\d{2})?|[12]\\d{6,7}|86\\d{6}|(?:1[03-689]\\d|6)\\d{7,9}|(?:[3-579]\\d|8[0-57-9])\\d{6,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]","(?:10|2[0-57-9])(?:10|9[56])","10(?:10|9[56])|2[0-57-9](?:100|9[56])"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:60\\d\\d|9101)\\d{6}|(?:1\\d|3)\\d{9}",[10,11],[["(\\d{3})(\\d{7})","$1 $2",["6"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|91"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","[27]\\d{6,7}|[34]\\d{5,7}|63\\d{6}|(?:5|8\\d\\d)\\d{7}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:(?:79|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[0-36-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|31)"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]"],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:1[3-79]|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0235])|4(?:[0-5]\\d\\d|69[7-9]|70[0-79])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|50))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-2]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","[56]94\\d{6}|(?:80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[56]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","590\\d{6}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-5])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}",[6,7,8,9],[["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","(?:[2-489]\\d|55)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","(?:(?:00[1-9]|8\\d)\\d{4}|[1-36])\\d{6}|00\\d{10}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["3"]]],0,0,0,0,0,0,[["0669[0-79]\\d{1,6}|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],0,0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["[36]|4(?:2[09]|7[01])","[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[257-9]"],"0$1"]],"0",0,"(000[259]\\d{6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33|7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["30[013-9]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[245]\\d|33|77|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(8-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"8 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(8-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(8-$1)",1]],"8",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:2[2-46-9]|3[3-9]|9)|8(?:0[89]|92)"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5(?:2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[0167]\\d|2[0-4]|5[01]|8[0-3]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],MC:["377","00","(?:[3489]|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","590\\d{6}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-5])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["[45]|6(?:0[23]|[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-6]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","596\\d{6}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","1(?:(?:22|44|7[27]|87|99)[1-9]|65[0-689])\\d{7}|(?:1(?:[01]\\d|2[13-9]|[35][1-9]|4[0-35-9]|6[0-46-9]|7[013-689]|8[1-69]|9[1-8])|[2-9]\\d)\\d{8}",[10,11],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"],0,1],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 $3 $4",["1(?:33|5[56]|81)"],0,1],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 $3 $4",["1"],0,1]],"01",0,"0(?:[12]|4[45])|1",0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[047]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","2[0-24-9]\\d{8}|[78]\\d{10,13}|[7-9]\\d{9}|[1-9]\\d{7}|[124-7]\\d{6}",[7,8,10,11,12,13,14],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["78"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|9(?:0[3-9]|[1-9])"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[3-6]|7(?:0[0-689]|[1-79])|8[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:444|(?:55|8\\d)\\d|666)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[4-68]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[45]\\d{5}|(?:708|80\\d)\\d{6}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[16]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2689]"],"0$1"]],"0",0,0,0,0,0,[["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"],["69(?:2\\d\\d|3(?:[06][0-6]|1[013]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-5]|76(?:2[27]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"3[04-689]|[489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","92\\d{7}|(?:[15]|8\\d)\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["81"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","(?:[1-6]|[7-9]\\d\\d)\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","800\\d{4}|(?:[249]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["(?:2|90)4|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[348]|64|79|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[0-35-9]|77|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|68|[78]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-8]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[267]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[267]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-39]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-5]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|[69]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2679]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","[0-57-9]\\d{8}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3[1-5]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[0-57-9]"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","[1-6]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["6"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|61[06])","5(?:[0-59]|61[06]1)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:5056(?:[0-35-9]\\d|4[468])|7302[0-3]\\d)\\d{4}|(?:472[24]|505[2-57-9]|7306|983[237-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[149]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013569]|3[0-24679]|4[167]|5[0-2]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}",[6,7,8,9,10,11,12,13],[["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","810","(?:20|33|[5-79]\\d|88)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72)\\d{4}|8\\d{5}(?:\\d{3})?",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[478]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","[23]\\d{7,8}|(?:4\\d\\d|[89]00)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[23]"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,0,[["269(?:0[0-467]|15|5[0-4]|6\\d|[78]0)\\d{4}"],["639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|63|[79]\\d)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[79]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[35-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[35-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|51"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}",[7,8,9,10,12]],0,0,0,0,0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};var dr={}.constructor;function pr(e){return null!=e&&e.constructor===dr}function fr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function mr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var a,r,i=[],s=!0,o=!1;try{for(n=n.call(e);!(s=(a=n.next()).done)&&(i.push(a.value),!t||i.length!==t);s=!0);}catch(e){o=!0,r=e}finally{try{s||null==n.return||n.return()}finally{if(o)throw r}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return br(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return br(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function br(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function gr(e){var t,n,a,r=hr(Array.prototype.slice.call(e),4),i=r[0],s=r[1],o=r[2],c=r[3];if("string"!=typeof i)throw new TypeError("A text for parsing must be a string.");if(t=i,s&&"string"!=typeof s){if(!pr(s))throw new Error("Invalid second argument: ".concat(s));o?(n=s,a=o):a=s}else c?(n=o,a=c):(n=void 0,a=o),s&&(n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fr(Object(n),!0).forEach((function(t){mr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({defaultCountry:s},n));return{text:t,options:n,metadata:a}}var vr=2,yr=17,_r=3,Er="0-90-9٠-٩۰-۹",xr="".concat("-‐-―−ー-").concat("//").concat("..").concat("  ­ ").concat("()()[]\\[\\]").concat("~⁓∼~");function Tr(e){return Tr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tr(e)}function Or(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function $r(e){var t=wr();return function(){var n,a=Rr(e);if(t){var r=Rr(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return function(e,t){if(t&&("object"===Tr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ar(e)}(this,n)}}function Ar(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Sr(e){var t="function"==typeof Map?new Map:void 0;return Sr=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,a)}function a(){return Dr(e,arguments,Rr(this).constructor)}return a.prototype=Object.create(e.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Cr(a,e)},Sr(e)}function Dr(e,t,n){return Dr=wr()?Reflect.construct:function(e,t,n){var a=[null];a.push.apply(a,t);var r=new(Function.bind.apply(e,a));return n&&Cr(r,n.prototype),r},Dr.apply(null,arguments)}function wr(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function Cr(e,t){return Cr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Cr(e,t)}function Rr(e){return Rr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Rr(e)}var Nr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cr(e,t)}(i,e);var t,n,a,r=$r(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),t=r.call(this,e),Object.setPrototypeOf(Ar(t),i.prototype),t.name=t.constructor.name,t}return t=i,n&&Or(t.prototype,n),a&&Or(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t}(Sr(Error));function Ir(e,t){e=e.split("-"),t=t.split("-");for(var n=e[0].split("."),a=t[0].split("."),r=0;r<3;r++){var i=Number(n[r]),s=Number(a[r]);if(i>s)return 1;if(s>i)return-1;if(!isNaN(i)&&isNaN(s))return 1;if(isNaN(i)&&!isNaN(s))return-1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0}function Mr(e){return Mr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mr(e)}function Pr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lr(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function jr(e,t,n){return t&&Lr(e.prototype,t),n&&Lr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var kr=" ext. ",Fr=/^\d+$/,Ur=function(){function e(t){Pr(this,e),function(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!pr(e)||!pr(e.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(pr(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+Vr(e)+": "+e,"."))}(t),this.metadata=t,zr.call(this,t)}return jr(e,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter((function(e){return"001"!==e}))}},{key:"getCountryMetadata",value:function(e){return this.metadata.countries[e]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(e){return void 0!==this.getCountryMetadata(e)}},{key:"hasCallingCode",value:function(e){if(this.getCountryCodesForCallingCode(e))return!0;if(this.nonGeographic()){if(this.nonGeographic()[e])return!0}else{var t=this.countryCallingCodes()[e];if(t&&1===t.length&&"001"===t[0])return!0}}},{key:"isNonGeographicCallingCode",value:function(e){return this.nonGeographic()?!!this.nonGeographic()[e]:!this.getCountryCodesForCallingCode(e)}},{key:"country",value:function(e){return this.selectNumberingPlan(e)}},{key:"selectNumberingPlan",value:function(e,t){if(e&&Fr.test(e)&&(t=e,e=null),e&&"001"!==e){if(!this.hasCountry(e))throw new Error("Unknown country: ".concat(e));this.numberingPlan=new qr(this.getCountryMetadata(e),this)}else if(t){if(!this.hasCallingCode(t))throw new Error("Unknown calling code: ".concat(t));this.numberingPlan=new qr(this.getNumberingPlanMetadata(t),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(e){var t=this.countryCallingCodes()[e];if(t){if(1===t.length&&3===t[0].length)return;return t}}},{key:"getCountryCodeForCallingCode",value:function(e){var t=this.getCountryCodesForCallingCode(e);if(t)return t[0]}},{key:"getNumberingPlanMetadata",value:function(e){var t=this.getCountryCodeForCallingCode(e);if(t)return this.getCountryMetadata(t);if(this.nonGeographic()){var n=this.nonGeographic()[e];if(n)return n}else{var a=this.countryCallingCodes()[e];if(a&&1===a.length&&"001"===a[0])return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(e){return this.numberingPlan.type(e)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(e){return this.selectNumberingPlan(e)}},{key:"hasSelectedNumberingPlan",value:function(){return void 0!==this.numberingPlan}}]),e}(),qr=function(){function e(t,n){Pr(this,e),this.globalMetadataObject=n,this.metadata=t,zr.call(this,n.metadata)}return jr(e,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"IDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(e){return e[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var e=this,t=this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[];return t.map((function(t){return new Br(t,e)}))}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(e){return e[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return(!this.types()||0!==this.types().length)&&!!this.types()}},{key:"type",value:function(e){if(this.hasTypes()&&Wr(this.types(),e))return new Gr(Wr(this.types(),e),this)}},{key:"ext",value:function(){return this.v1||this.v2?kr:this.metadata[13]||kr}}]),e}(),Br=function(){function e(t,n){Pr(this,e),this._format=t,this.metadata=n}return jr(e,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!(!this.nationalPrefixFormattingRule()||Hr.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}]),e}(),Hr=/^\(?\$1\)?$/,Gr=function(){function e(t,n){Pr(this,e),this.type=t,this.metadata=n}return jr(e,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}]),e}();function Wr(e,t){switch(t){case"FIXED_LINE":return e[0];case"MOBILE":return e[1];case"TOLL_FREE":return e[2];case"PREMIUM_RATE":return e[3];case"PERSONAL_NUMBER":return e[4];case"VOICEMAIL":return e[5];case"UAN":return e[6];case"PAGER":return e[7];case"VOIP":return e[8];case"SHARED_COST":return e[9]}}var Vr=function(e){return Mr(e)};function Yr(e,t){if((t=new Ur(t)).hasCountry(e))return t.country(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function zr(e){var t=e.version;"number"==typeof t?(this.v1=1===t,this.v2=2===t,this.v3=3===t,this.v4=4===t):t?-1===Ir(t,"1.2.0")?this.v2=!0:-1===Ir(t,"1.7.35")?this.v3=!0:this.v4=!0:this.v1=!0}var Kr=function(e){return"([".concat(Er,"]{1,").concat(e,"})")};function Zr(e){var t="[  \\t,]*",n="[:\\..]?[  \\t,-]*",a="#?",r="[  \\t]*";return";ext="+Kr("20")+"|"+(t+"(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)"+n+Kr("20")+a)+"|"+(t+"(?:[xx##~~]|int|int)"+n+Kr("9")+a)+"|"+("[- ]+"+Kr("6")+"#")+"|"+(r+"(?:,{2}|;)"+n+Kr("15")+a)+"|"+(r+"(?:,)+"+n+Kr("9")+a)}var Jr="["+Er+"]{"+vr+"}",Qr="[++]{0,1}(?:["+xr+"]*["+Er+"]){3,}["+xr+Er+"]*",Xr=new RegExp("^[++]{0,1}(?:["+xr+"]*["+Er+"]){1,2}$","i"),ei=Qr+"(?:"+Zr()+")?",ti=new RegExp("^"+Jr+"$|^"+ei+"$","i");var ni=new RegExp("(?:"+Zr()+")$","i");var ai={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"};function ri(e){return ai[e]}function ii(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return si(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return si(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0;return function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function si(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function oi(e){for(var t,n="",a=ii(e.split(""));!(t=a()).done;){n+=ci(t.value,n)||""}return n}function ci(e,t,n){return"+"===e?t?void("function"==typeof n&&n("end")):"+":ri(e)}function ui(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return li(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return li(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0;return function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function li(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function di(e,t){return pi(e,void 0,t)}function pi(e,t,n){var a=n.type(t),r=a&&a.possibleLengths()||n.possibleLengths();if(!r)return"IS_POSSIBLE";if("FIXED_LINE_OR_MOBILE"===t){if(!n.type("FIXED_LINE"))return pi(e,"MOBILE",n);var i=n.type("MOBILE");i&&(r=function(e,t){for(var n,a=e.slice(),r=ui(t);!(n=r()).done;){var i=n.value;e.indexOf(i)<0&&a.push(i)}return a.sort((function(e,t){return e-t}))}(r,i.possibleLengths()))}else if(t&&!a)return"INVALID_LENGTH";var s=e.length,o=r[0];return o===s?"IS_POSSIBLE":o>s?"TOO_SHORT":r[r.length-1]<s?"TOO_LONG":r.indexOf(s,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function fi(e,t){return"IS_POSSIBLE"===di(e,t)}function mi(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}function hi(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return bi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bi(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0;return function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function bi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var gi=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function vi(e,t,n){if(t=t||{},e.country||e.countryCallingCode){(n=new Ur(n)).selectNumberingPlan(e.country,e.countryCallingCode);var a=t.v2?e.nationalNumber:e.phone;if(mi(a,n.nationalNumberPattern())){if(yi(a,"FIXED_LINE",n))return n.type("MOBILE")&&""===n.type("MOBILE").pattern()?"FIXED_LINE_OR_MOBILE":n.type("MOBILE")?yi(a,"MOBILE",n)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE":"FIXED_LINE_OR_MOBILE";for(var r,i=hi(gi);!(r=i()).done;){var s=r.value;if(yi(a,s,n))return s}}}}function yi(e,t,n){return!(!(t=n.type(t))||!t.pattern())&&(!(t.possibleLengths()&&t.possibleLengths().indexOf(e.length)<0)&&mi(e,t.pattern()))}function _i(e,t,n){var a=new Ur(n).getCountryCodesForCallingCode(e);return a?a.filter((function(e){return function(e,t,n){var a=new Ur(n);if(a.selectNumberingPlan(t),a.numberingPlan.possibleLengths().indexOf(e.length)>=0)return!0;return!1}(t,e,n)})):[]}var Ei=/(\$\d)/;function xi(e,t,n){var a=n.useInternationalFormat,r=n.withNationalPrefix,i=(n.carrierCode,n.metadata,e.replace(new RegExp(t.pattern()),a?t.internationalFormat():r&&t.nationalPrefixFormattingRule()?t.format().replace(Ei,t.nationalPrefixFormattingRule()):t.format()));return a?function(e){return e.replace(new RegExp("[".concat(xr,"]+"),"g")," ").trim()}(i):i}var Ti=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function Oi(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return $i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $i(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0;return function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function $i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function Ai(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Si(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ai(Object(n),!0).forEach((function(t){Di(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ai(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Di(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wi={formatExtension:function(e,t,n){return"".concat(e).concat(n.ext()).concat(t)}};function Ci(e,t,n,a){if(n=n?Si(Si({},wi),n):wi,a=new Ur(a),e.country&&"001"!==e.country){if(!a.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));a.country(e.country)}else{if(!e.countryCallingCode)return e.phone||"";a.selectNumberingPlan(e.countryCallingCode)}var r,i=a.countryCallingCode(),s=n.v2?e.nationalNumber:e.phone;switch(t){case"NATIONAL":return s?Ni(r=Ri(s,e.carrierCode,"NATIONAL",a,n),e.ext,a,n.formatExtension):"";case"INTERNATIONAL":return s?(r=Ri(s,null,"INTERNATIONAL",a,n),Ni(r="+".concat(i," ").concat(r),e.ext,a,n.formatExtension)):"+".concat(i);case"E.164":return"+".concat(i).concat(s);case"RFC3966":return function(e){var t=e.number,n=e.ext;if(!t)return"";if("+"!==t[0])throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(t).concat(n?";ext="+n:"")}({number:"+".concat(i).concat(s),ext:e.ext});case"IDD":if(!n.fromCountry)return;var o=function(e,t,n,a,r){var i=Yr(a,r.metadata);if(i===n){var s=Ri(e,t,"NATIONAL",r);return"1"===n?n+" "+s:s}var o=function(e,t,n){var a=new Ur(n);return a.selectNumberingPlan(e,t),a.defaultIDDPrefix()?a.defaultIDDPrefix():Ti.test(a.IDDPrefix())?a.IDDPrefix():void 0}(a,void 0,r.metadata);if(o)return"".concat(o," ").concat(n," ").concat(Ri(e,null,"INTERNATIONAL",r))}(s,e.carrierCode,i,n.fromCountry,a);return Ni(o,e.ext,a,n.formatExtension);default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}function Ri(e,t,n,a,r){var i=function(e,t){for(var n,a=Oi(e);!(n=a()).done;){var r=n.value;if(r.leadingDigitsPatterns().length>0){var i=r.leadingDigitsPatterns()[r.leadingDigitsPatterns().length-1];if(0!==t.search(i))continue}if(mi(t,r.pattern()))return r}}(a.formats(),e);return i?xi(e,i,{useInternationalFormat:"INTERNATIONAL"===n,withNationalPrefix:!i.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!r||!1!==r.nationalPrefix,carrierCode:t,metadata:a}):e}function Ni(e,t,n,a){return t?a(e,t,n):e}function Ii(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function Mi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ii(Object(n),!0).forEach((function(t){Pi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ii(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Li(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var ji=function(){function e(t,n,a){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)throw new TypeError("`country` or `countryCallingCode` not passed");if(!n)throw new TypeError("`nationalNumber` not passed");if(!a)throw new TypeError("`metadata` not passed");var r=function(e,t){var n,a,r=new Ur(t);ki(e)?(n=e,r.selectNumberingPlan(n),a=r.countryCallingCode()):a=e;return{country:n,countryCallingCode:a}}(t,a),i=r.country,s=r.countryCallingCode;this.country=i,this.countryCallingCode=s,this.nationalNumber=n,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return a}}var t,n,a;return t=e,(n=[{key:"setExt",value:function(e){this.ext=e}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:_i(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return function(e,t,n){if(void 0===t&&(t={}),n=new Ur(n),t.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!n.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));n.country(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}}if(n.possibleLengths())return fi(e.phone||e.nationalNumber,n);if(e.countryCallingCode&&n.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return e=this,t={v2:!0},n=this.getMetadata(),t=t||{},(n=new Ur(n)).selectNumberingPlan(e.country,e.countryCallingCode),n.hasTypes()?void 0!==vi(e,t,n.metadata):mi(t.v2?e.nationalNumber:e.phone,n.nationalNumberPattern());var e,t,n}},{key:"isNonGeographic",value:function(){return new Ur(this.getMetadata()).isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(e){return this.number===e.number&&this.ext===e.ext}},{key:"getType",value:function(){return vi(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(e,t){return Ci(this,e,t?Mi(Mi({},t),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(e){return this.format("NATIONAL",e)}},{key:"formatInternational",value:function(e){return this.format("INTERNATIONAL",e)}},{key:"getURI",value:function(e){return this.format("RFC3966",e)}}])&&Li(t.prototype,n),a&&Li(t,a),Object.defineProperty(t,"prototype",{writable:!1}),e}(),ki=function(e){return/^[A-Z]{2}$/.test(e)};var Fi=new RegExp("(["+Er+"])");function Ui(e,t){var n=function(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var n=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),a=n.exec(e);if(a){var r,i,s,o=a.length-1,c=o>0&&a[o];if(t.nationalPrefixTransformRule()&&c)r=e.replace(n,t.nationalPrefixTransformRule()),o>1&&(i=a[1]);else{var u=a[0];r=e.slice(u.length),c&&(i=a[1])}if(c){var l=e.indexOf(a[1]);e.slice(0,l)===t.numberingPlan.nationalPrefix()&&(s=t.numberingPlan.nationalPrefix())}else s=a[0];return{nationalNumber:r,nationalPrefix:s,carrierCode:i}}}return{nationalNumber:e}}(e,t),a=n.carrierCode,r=n.nationalNumber;if(r!==e){if(!function(e,t,n){if(mi(e,n.nationalNumberPattern())&&!mi(t,n.nationalNumberPattern()))return!1;return!0}(e,r,t))return{nationalNumber:e};if(t.possibleLengths()&&!function(e,t){switch(di(e,t)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}(r,t))return{nationalNumber:e}}return{nationalNumber:r,carrierCode:a}}function qi(e,t,n,a){if(!e)return{};var r;if("+"!==e[0]){var i=function(e,t,n,a){if(t){var r=new Ur(a);r.selectNumberingPlan(t,n);var i=new RegExp(r.IDDPrefix());if(0===e.search(i)){var s=(e=e.slice(e.match(i)[0].length)).match(Fi);if(!(s&&null!=s[1]&&s[1].length>0&&"0"===s[1]))return e}}}(e,t,n,a);if(!i||i===e){if(t||n){var s=function(e,t,n,a){var r=t?Yr(t,a):n;if(0===e.indexOf(r)){(a=new Ur(a)).selectNumberingPlan(t,n);var i=e.slice(r.length),s=Ui(i,a).nationalNumber,o=Ui(e,a).nationalNumber;if(!mi(o,a.nationalNumberPattern())&&mi(s,a.nationalNumberPattern())||"TOO_LONG"===di(o,a))return{countryCallingCode:r,number:i}}return{number:e}}(e,t,n,a),o=s.countryCallingCode,c=s.number;if(o)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:o,number:c}}return{number:e}}r=!0,e="+"+i}if("0"===e[1])return{};a=new Ur(a);for(var u=2;u-1<=_r&&u<=e.length;){var l=e.slice(1,u);if(a.hasCallingCode(l))return a.selectNumberingPlan(l),{countryCallingCodeSource:r?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:l,number:e.slice(u)};u++}return{}}function Bi(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Hi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Hi(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0;return function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Hi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var Gi=!1;function Wi(e,t){var n=t.nationalNumber,a=t.defaultCountry,r=t.metadata;if(Gi&&r.isNonGeographicCallingCode(e))return"001";var i=r.getCountryCodesForCallingCode(e);return i?1===i.length?i[0]:function(e,t){var n=t.countries,a=t.defaultCountry,r=t.metadata;r=new Ur(r);for(var i,s=[],o=Bi(n);!(i=o()).done;){var c=i.value;if(r.country(c),r.leadingDigits()){if(e&&0===e.search(r.leadingDigits()))return c}else if(vi({phone:e,country:c},void 0,r.metadata)){if(!a)return c;if(c===a)return c;s.push(c)}}if(s.length>0)return s[0]}(n,{countries:i,defaultCountry:a,metadata:r.metadata}):void 0}var Vi="+",Yi="(["+Er+"]|[\\-\\.\\(\\)]?)",zi=new RegExp("^\\"+Vi+Yi+"*["+Er+"]"+Yi+"*$","g"),Ki=new RegExp("^("+("["+Er+"]+((\\-)*["+Er+"])*")+"\\.)*"+("[a-zA-Z]+((\\-)*["+Er+"])*")+"\\.?$","g"),Zi="tel:",Ji=";phone-context=",Qi=";isub=";function Xi(e,t){var n,a=t.extractFormattedPhoneNumber,r=function(e){var t=e.indexOf(Ji);if(t<0)return null;var n=t+Ji.length;if(n>=e.length)return"";var a=e.indexOf(";",n);return a>=0?e.substring(n,a):e.substring(n)}(e);if(!function(e){return null===e||0!==e.length&&(zi.test(e)||Ki.test(e))}(r))throw new Nr("NOT_A_NUMBER");if(null===r)n=a(e)||"";else{n="",r.charAt(0)===Vi&&(n+=r);var i,s=e.indexOf(Zi);i=s>=0?s+Zi.length:0;var o=e.indexOf(Ji);n+=e.substring(i,o)}var c=n.indexOf(Qi);if(c>0&&(n=n.substring(0,c)),""!==n)return n}var es=250,ts=new RegExp("[++"+Er+"]"),ns=new RegExp("[^"+Er+"#]+$"),as=!1;function rs(e,t,n){if(t=t||{},n=new Ur(n),t.defaultCountry&&!n.hasCountry(t.defaultCountry)){if(t.v2)throw new Nr("INVALID_COUNTRY");throw new Error("Unknown country: ".concat(t.defaultCountry))}var a=function(e,t,n){var a=Xi(e,{extractFormattedPhoneNumber:function(e){return function(e,t,n){if(!e)return;if(e.length>es){if(n)throw new Nr("TOO_LONG");return}if(!1===t)return e;var a=e.search(ts);if(a<0)return;return e.slice(a).replace(ns,"")}(e,n,t)}});if(!a)return{};if(!function(e){return e.length>=vr&&ti.test(e)}(a))return function(e){return Xr.test(e)}(a)?{error:"TOO_SHORT"}:{};var r=function(e){var t=e.search(ni);if(t<0)return{};for(var n=e.slice(0,t),a=e.match(ni),r=1;r<a.length;){if(a[r])return{number:n,ext:a[r]};r++}}(a);if(r.ext)return r;return{number:a}}(e,t.v2,t.extract),r=a.number,i=a.ext,s=a.error;if(!r){if(t.v2){if("TOO_SHORT"===s)throw new Nr("TOO_SHORT");throw new Nr("NOT_A_NUMBER")}return{}}var o=function(e,t,n,a){var r,i=qi(oi(e),t,n,a.metadata),s=i.countryCallingCodeSource,o=i.countryCallingCode,c=i.number;if(o)a.selectNumberingPlan(o);else{if(!c||!t&&!n)return{};a.selectNumberingPlan(t,n),t?r=t:as&&a.isNonGeographicCallingCode(n)&&(r="001"),o=n||Yr(t,a.metadata)}if(!c)return{countryCallingCodeSource:s,countryCallingCode:o};var u=Ui(oi(c),a),l=u.nationalNumber,d=u.carrierCode,p=Wi(o,{nationalNumber:l,defaultCountry:t,metadata:a});p&&(r=p,"001"===p||a.country(r));return{country:r,countryCallingCode:o,countryCallingCodeSource:s,nationalNumber:l,carrierCode:d}}(r,t.defaultCountry,t.defaultCallingCode,n),c=o.country,u=o.nationalNumber,l=o.countryCallingCode,d=o.countryCallingCodeSource,p=o.carrierCode;if(!n.hasSelectedNumberingPlan()){if(t.v2)throw new Nr("INVALID_COUNTRY");return{}}if(!u||u.length<vr){if(t.v2)throw new Nr("TOO_SHORT");return{}}if(u.length>yr){if(t.v2)throw new Nr("TOO_LONG");return{}}if(t.v2){var f=new ji(l,u,n.metadata);return c&&(f.country=c),p&&(f.carrierCode=p),i&&(f.ext=i),f.__countryCallingCodeSource=d,f}var m=!!(t.extended?n.hasSelectedNumberingPlan():c)&&mi(u,n.nationalNumberPattern());return t.extended?{country:c,countryCallingCode:l,carrierCode:p,valid:m,possible:!!m||!(!0!==t.extended||!n.possibleLengths()||!fi(u,n)),phone:u,ext:i}:m?function(e,t,n){var a={country:e,phone:t};n&&(a.ext=n);return a}(c,u,i):{}}function is(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function ss(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?is(Object(n),!0).forEach((function(t){os(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):is(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function os(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function us(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cs(Object(n),!0).forEach((function(t){ls(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ls(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ds(e,t,n){t&&t.defaultCountry&&!function(e,t){return t.countries.hasOwnProperty(e)}(t.defaultCountry,n)&&(t=us(us({},t),{},{defaultCountry:void 0}));try{return function(e,t,n){return rs(e,ss(ss({},t),{},{v2:!0}),n)}(e,t,n)}catch(e){if(!(e instanceof Nr))throw e}}function ps(){var e=gr(arguments);return ds(e.text,e.options,e.metadata)}function fs(){return function(e,t){var n=Array.prototype.slice.call(t);return n.push(lr),e.apply(this,n)}(ps,arguments)}var ms="isPhoneNumber";function hs(e,t){try{var n=fs(e,t);return!!(null==n?void 0:n.isValid())}catch(e){return!1}}function bs(e,t){return w({name:ms,constraints:[e],validator:{validate:function(e,t){return hs(e,null==t?void 0:t.constraints[0])},defaultMessage:D((function(e){return e+"$property must be a valid phone number"}),t)}},t)}var gs="isMilitaryTime";function vs(e){return"string"==typeof e&&sr()(e,/^([01]\d|2[0-3]):?([0-5]\d)$/)}function ys(e){return w({name:gs,validator:{validate:function(e,t){return vs(e)},defaultMessage:D((function(e){return e+"$property must be a valid representation of military time in the format HH:MM"}),e)}},e)}var _s=n(31114),Es=n.n(_s),xs="isHash";function Ts(e,t){return"string"==typeof e&&Es()(e,t)}function Os(e,t){return w({name:xs,constraints:[e],validator:{validate:function(e,t){return Ts(e,null==t?void 0:t.constraints[0])},defaultMessage:D((function(e){return e+"$property must be a hash of type $constraint1"}),t)}},t)}var $s=n(65411),As=n.n($s),Ss="isISSN";function Ds(e,t){return"string"==typeof e&&As()(e,t)}function ws(e,t){return w({name:Ss,constraints:[e],validator:{validate:function(e,t){return Ds(e,null==t?void 0:t.constraints[0])},defaultMessage:D((function(e){return e+"$property must be a ISSN"}),t)}},t)}var Cs="isDateString";function Rs(e,t){return Fn(e,t)}function Ns(e,t){return w({name:Cs,constraints:[e],validator:{validate:function(t){return Rs(t,e)},defaultMessage:D((function(e){return e+"$property must be a valid ISO 8601 date string"}),t)}},t)}var Is=n(61132),Ms=n.n(Is),Ps="isBooleanString";function Ls(e){return"string"==typeof e&&Ms()(e)}function js(e){return w({name:Ps,validator:{validate:function(e,t){return Ls(e)},defaultMessage:D((function(e){return e+"$property must be a boolean string"}),e)}},e)}var ks=n(41663),Fs=n.n(ks),Us="isNumberString";function qs(e,t){return"string"==typeof e&&Fs()(e,t)}function Bs(e,t){return w({name:Us,constraints:[e],validator:{validate:function(e,t){return qs(e,null==t?void 0:t.constraints[0])},defaultMessage:D((function(e){return e+"$property must be a number string"}),t)}},t)}var Hs=n(57162),Gs=n.n(Hs),Ws="isBase32";function Vs(e){return"string"==typeof e&&Gs()(e)}function Ys(e){return w({name:Ws,validator:{validate:function(e,t){return Vs(e)},defaultMessage:D((function(e){return e+"$property must be base32 encoded"}),e)}},e)}var zs=n(10430),Ks=n.n(zs),Zs="isBIC";function Js(e){return"string"==typeof e&&Ks()(e)}function Qs(e){return w({name:Zs,validator:{validate:function(e,t){return Js(e)},defaultMessage:D((function(e){return e+"$property must be a BIC or SWIFT code"}),e)}},e)}var Xs=n(21583),eo=n.n(Xs),to="isBtcAddress";function no(e){return"string"==typeof e&&eo()(e)}function ao(e){return w({name:to,validator:{validate:function(e,t){return no(e)},defaultMessage:D((function(e){return e+"$property must be a BTC address"}),e)}},e)}var ro=n(92478),io=n.n(ro),so="isDataURI";function oo(e){return"string"==typeof e&&io()(e)}function co(e){return w({name:so,validator:{validate:function(e,t){return oo(e)},defaultMessage:D((function(e){return e+"$property must be a data uri format"}),e)}},e)}var uo=n(75628),lo=n.n(uo),po="isEAN";function fo(e){return"string"==typeof e&&lo()(e)}function mo(e){return w({name:po,validator:{validate:function(e,t){return fo(e)},defaultMessage:D((function(e){return e+"$property must be an EAN (European Article Number)"}),e)}},e)}var ho=n(24655),bo=n.n(ho),go="isEthereumAddress";function vo(e){return"string"==typeof e&&bo()(e)}function yo(e){return w({name:go,validator:{validate:function(e,t){return vo(e)},defaultMessage:D((function(e){return e+"$property must be an Ethereum address"}),e)}},e)}var _o=n(91695),Eo=n.n(_o),xo="isHSL";function To(e){return"string"==typeof e&&Eo()(e)}function Oo(e){return w({name:xo,validator:{validate:function(e,t){return To(e)},defaultMessage:D((function(e){return e+"$property must be a HSL color"}),e)}},e)}var $o=n(18046),Ao="isIBAN";function So(e){return"string"==typeof e&&(0,$o.default)(e)}function Do(e){return w({name:Ao,validator:{validate:function(e,t){return So(e)},defaultMessage:D((function(e){return e+"$property must be an IBAN"}),e)}},e)}var wo=n(83646),Co=n.n(wo),Ro="isIdentityCard";function No(e,t){return"string"==typeof e&&Co()(e,t)}function Io(e,t){return w({name:Ro,constraints:[e],validator:{validate:function(e,t){return No(e,null==t?void 0:t.constraints[0])},defaultMessage:D((function(e){return e+"$property must be a identity card number"}),t)}},t)}var Mo=n(64277),Po=n.n(Mo),Lo="isISRC";function jo(e){return"string"==typeof e&&Po()(e)}function ko(e){return w({name:Lo,validator:{validate:function(e,t){return jo(e)},defaultMessage:D((function(e){return e+"$property must be an ISRC"}),e)}},e)}var Fo=n(64084),Uo=n.n(Fo),qo="isLocale";function Bo(e){return"string"==typeof e&&Uo()(e)}function Ho(e){return w({name:qo,validator:{validate:function(e,t){return Bo(e)},defaultMessage:D((function(e){return e+"$property must be locale"}),e)}},e)}var Go=n(51260),Wo=n.n(Go),Vo="isMagnetURI";function Yo(e){return"string"==typeof e&&Wo()(e)}function zo(e){return w({name:Vo,validator:{validate:function(e,t){return Yo(e)},defaultMessage:D((function(e){return e+"$property must be magnet uri format"}),e)}},e)}var Ko=n(20942),Zo=n.n(Ko),Jo="isMimeType";function Qo(e){return"string"==typeof e&&Zo()(e)}function Xo(e){return w({name:Jo,validator:{validate:function(e,t){return Qo(e)},defaultMessage:D((function(e){return e+"$property must be MIME type format"}),e)}},e)}var ec=n(23651),tc=n.n(ec),nc="isOctal";function ac(e){return"string"==typeof e&&tc()(e)}function rc(e){return w({name:nc,validator:{validate:function(e,t){return ac(e)},defaultMessage:D((function(e){return e+"$property must be valid octal number"}),e)}},e)}var ic=n(22021),sc=n.n(ic),oc="isPassportNumber";function cc(e,t){return"string"==typeof e&&sc()(e,t)}function uc(e,t){return w({name:oc,constraints:[e],validator:{validate:function(e,t){return cc(e,null==t?void 0:t.constraints[0])},defaultMessage:D((function(e){return e+"$property must be valid passport number"}),t)}},t)}var lc=n(96996),dc="isPostalCode";function pc(e,t){return"string"==typeof e&&(0,lc.default)(e,t)}function fc(e,t){return w({name:dc,constraints:[e],validator:{validate:function(e,t){return pc(e,null==t?void 0:t.constraints[0])},defaultMessage:D((function(e){return e+"$property must be a postal code"}),t)}},t)}var mc=n(72947),hc=n.n(mc),bc="isRFC3339";function gc(e){return"string"==typeof e&&hc()(e)}function vc(e){return w({name:bc,validator:{validate:function(e,t){return gc(e)},defaultMessage:D((function(e){return e+"$property must be RFC 3339 date"}),e)}},e)}var yc=n(63144),_c=n.n(yc),Ec="isRgbColor";function xc(e,t){return"string"==typeof e&&_c()(e,t)}function Tc(e,t){return w({name:Ec,constraints:[e],validator:{validate:function(e,t){return xc(e,null==t?void 0:t.constraints[0])},defaultMessage:D((function(e){return e+"$property must be RGB color"}),t)}},t)}var Oc=n(91342),$c=n.n(Oc),Ac="isSemVer";function Sc(e){return"string"==typeof e&&$c()(e)}function Dc(e){return w({name:Ac,validator:{validate:function(e,t){return Sc(e)},defaultMessage:D((function(e){return e+"$property must be a Semantic Versioning Specification"}),e)}},e)}var wc=n(43652),Cc=n.n(wc),Rc="isStrongPassword";function Nc(e,t){return"string"==typeof e&&Cc().isStrongPassword(e,t)}function Ic(e,t){return w({name:Rc,constraints:[e],validator:{validate:function(e,t){return Nc(e,t.constraints[0])},defaultMessage:D((function(e){return e+"$property is not strong enough"}),t)}},t)}var Mc="isTimeZone";function Pc(e){try{return"string"==typeof e&&(Intl.DateTimeFormat(void 0,{timeZone:e}),!0)}catch(e){return!1}}function Lc(e){return w({name:Mc,validator:{validate:function(e,t){return Pc(e)},defaultMessage:D((function(e){return e+"$property must be a valid IANA time-zone"}),e)}},e)}var jc=n(45422),kc=n.n(jc),Fc="isBase58";function Uc(e){return"string"==typeof e&&kc()(e)}function qc(e){return w({name:Fc,validator:{validate:function(e,t){return Uc(e)},defaultMessage:D((function(e){return e+"$property must be base58 encoded"}),e)}},e)}var Bc=n(57628),Hc=n.n(Bc),Gc="isTaxId";function Wc(e,t){return"string"==typeof e&&Hc()(e,t||"en-US")}function Vc(e,t){return w({name:Gc,constraints:[e],validator:{validate:function(e,t){return Wc(e,null==t?void 0:t.constraints[0])},defaultMessage:D((function(e){return e+"$property must be a Tax Identification Number"}),t)}},t)}var Yc=n(94215),zc="isISO4217CurrencyCode";function Kc(e){return"string"==typeof e&&(0,Yc.default)(e)}function Zc(e){return w({name:zc,validator:{validate:function(e,t){return Kc(e)},defaultMessage:D((function(e){return e+"$property must be a valid ISO4217 currency code"}),e)}},e)}var Jc="isBoolean";function Qc(e){return e instanceof Boolean||"boolean"==typeof e}function Xc(e){return w({name:Jc,validator:{validate:function(e,t){return Qc(e)},defaultMessage:D((function(e){return e+"$property must be a boolean value"}),e)}},e)}var eu="isDate";function tu(e){return e instanceof Date&&!isNaN(e.getTime())}function nu(e){return w({name:eu,validator:{validate:function(e,t){return tu(e)},defaultMessage:D((function(e){return e+"$property must be a Date instance"}),e)}},e)}var au="isNumber";function ru(e,t){if(void 0===t&&(t={}),"number"!=typeof e)return!1;if(e===1/0||e===-1/0)return!!t.allowInfinity;if(Number.isNaN(e))return!!t.allowNaN;if(void 0!==t.maxDecimalPlaces){var n=0;if(e%1!=0&&(n=e.toString().split(".")[1].length),n>t.maxDecimalPlaces)return!1}return Number.isFinite(e)}function iu(e,t){return void 0===e&&(e={}),w({name:au,constraints:[e],validator:{validate:function(e,t){return ru(e,null==t?void 0:t.constraints[0])},defaultMessage:D((function(e){return e+"$property must be a number conforming to the specified constraints"}),t)}},t)}var su=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},ou="isEnum";function cu(e,t){return Object.keys(t).map((function(e){return t[e]})).includes(e)}function uu(e){return Object.entries(e).filter((function(e){var t=su(e,2),n=t[0];t[1];return isNaN(parseInt(n))})).map((function(e){var t=su(e,2);t[0];return t[1]}))}function lu(e,t){return w({name:ou,constraints:[e,uu(e)],validator:{validate:function(e,t){return cu(e,null==t?void 0:t.constraints[0])},defaultMessage:D((function(e){return e+"$property must be one of the following values: $constraint2"}),t)}},t)}var du="isInt";function pu(e){return"number"==typeof e&&Number.isInteger(e)}function fu(e){return w({name:du,validator:{validate:function(e,t){return pu(e)},defaultMessage:D((function(e){return e+"$property must be an integer number"}),e)}},e)}var mu="isString";function hu(e){return e instanceof String||"string"==typeof e}function bu(e){return w({name:mu,validator:{validate:function(e,t){return hu(e)},defaultMessage:D((function(e){return e+"$property must be a string"}),e)}},e)}var gu="isArray";function vu(e){return Array.isArray(e)}function yu(e){return w({name:gu,validator:{validate:function(e,t){return vu(e)},defaultMessage:D((function(e){return e+"$property must be an array"}),e)}},e)}var _u="isObject";function Eu(e){return null!=e&&("object"==typeof e||"function"==typeof e)&&!Array.isArray(e)}function xu(e){return w({name:_u,validator:{validate:function(e,t){return Eu(e)},defaultMessage:D((function(e){return e+"$property must be an object"}),e)}},e)}var Tu="arrayContains";function Ou(e,t){return!!Array.isArray(e)&&t.every((function(t){return-1!==e.indexOf(t)}))}function $u(e,t){return w({name:Tu,constraints:[e],validator:{validate:function(e,t){return Ou(e,null==t?void 0:t.constraints[0])},defaultMessage:D((function(e){return e+"$property must contain $constraint1 values"}),t)}},t)}var Au="arrayNotContains";function Su(e,t){return!!Array.isArray(e)&&t.every((function(t){return-1===e.indexOf(t)}))}function Du(e,t){return w({name:Au,constraints:[e],validator:{validate:function(e,t){return Su(e,null==t?void 0:t.constraints[0])},defaultMessage:D((function(e){return e+"$property should not contain $constraint1 values"}),t)}},t)}var wu="arrayNotEmpty";function Cu(e){return Array.isArray(e)&&e.length>0}function Ru(e){return w({name:wu,validator:{validate:function(e,t){return Cu(e)},defaultMessage:D((function(e){return e+"$property should not be empty"}),e)}},e)}var Nu="arrayMinSize";function Iu(e,t){return Array.isArray(e)&&e.length>=t}function Mu(e,t){return w({name:Nu,constraints:[e],validator:{validate:function(e,t){return Iu(e,null==t?void 0:t.constraints[0])},defaultMessage:D((function(e){return e+"$property must contain at least $constraint1 elements"}),t)}},t)}var Pu="arrayMaxSize";function Lu(e,t){return Array.isArray(e)&&e.length<=t}function ju(e,t){return w({name:Pu,constraints:[e],validator:{validate:function(e,t){return Lu(e,null==t?void 0:t.constraints[0])},defaultMessage:D((function(e){return e+"$property must contain no more than $constraint1 elements"}),t)}},t)}var ku="arrayUnique";function Fu(e,t){if(!Array.isArray(e))return!1;t&&(e=e.map((function(e){return null!=e?t(e):e})));var n=e.filter((function(e,t,n){return n.indexOf(e)===t}));return e.length===n.length}function Uu(e,t){var n="function"==typeof e?e:void 0,a="function"!=typeof e?e:t;return w({name:ku,validator:{validate:function(e,t){return Fu(e,n)},defaultMessage:D((function(e){return e+"All $property's elements must be unique"}),a)}},a)}var qu="isNotEmptyObject";function Bu(e,t){if(!Eu(e))return!1;if(!0===(null==t?void 0:t.nullable))return!Object.values(e).every((function(e){return null==e}));for(var n in e)if(e.hasOwnProperty(n))return!0;return!1}function Hu(e,t){return w({name:qu,constraints:[e],validator:{validate:function(e,t){return Bu(e,null==t?void 0:t.constraints[0])},defaultMessage:D((function(e){return e+"$property must be a non-empty object"}),t)}},t)}var Gu="isInstance";function Wu(e,t){return t&&"function"==typeof t&&e instanceof t}function Vu(e,t){return w({name:Gu,constraints:[e],validator:{validate:function(e,t){return Wu(e,null==t?void 0:t.constraints[0])},defaultMessage:D((function(e,t){return(null==t?void 0:t.constraints[0])?e+"$property must be an instance of ".concat(null==t?void 0:t.constraints[0].name):e+"".concat(Gu," decorator expects and object as value, but got falsy value.")}),t)}},t)}function Yu(e,t,n){return"string"==typeof e?O(E).validate(e,t,n):O(E).validate(e,t)}function zu(e,t,n){return"string"==typeof e?O(E).validateOrReject(e,t,n):O(E).validateOrReject(e,t)}function Ku(e,t,n){return"string"==typeof e?O(E).validateSync(e,t,n):O(E).validateSync(e,t)}function Zu(e){l().addValidationSchema(e)}},99547:(e,t,n)=>{"use strict";const a=n(88809);e.exports=a,e.exports.default=a},18138:(e,t,n)=>{const a=n(9878),r={};for(const e of Object.keys(a))r[a[e]]=e;const i={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};e.exports=i;for(const e of Object.keys(i)){if(!("channels"in i[e]))throw new Error("missing channels property: "+e);if(!("labels"in i[e]))throw new Error("missing channel labels property: "+e);if(i[e].labels.length!==i[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=i[e];delete i[e].channels,delete i[e].labels,Object.defineProperty(i[e],"channels",{value:t}),Object.defineProperty(i[e],"labels",{value:n})}i.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,a=e[2]/255,r=Math.min(t,n,a),i=Math.max(t,n,a),s=i-r;let o,c;i===r?o=0:t===i?o=(n-a)/s:n===i?o=2+(a-t)/s:a===i&&(o=4+(t-n)/s),o=Math.min(60*o,360),o<0&&(o+=360);const u=(r+i)/2;return c=i===r?0:u<=.5?s/(i+r):s/(2-i-r),[o,100*c,100*u]},i.rgb.hsv=function(e){let t,n,a,r,i;const s=e[0]/255,o=e[1]/255,c=e[2]/255,u=Math.max(s,o,c),l=u-Math.min(s,o,c),d=function(e){return(u-e)/6/l+.5};return 0===l?(r=0,i=0):(i=l/u,t=d(s),n=d(o),a=d(c),s===u?r=a-n:o===u?r=1/3+t-a:c===u&&(r=2/3+n-t),r<0?r+=1:r>1&&(r-=1)),[360*r,100*i,100*u]},i.rgb.hwb=function(e){const t=e[0],n=e[1];let a=e[2];const r=i.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(n,a));return a=1-1/255*Math.max(t,Math.max(n,a)),[r,100*s,100*a]},i.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,a=e[2]/255,r=Math.min(1-t,1-n,1-a);return[100*((1-t-r)/(1-r)||0),100*((1-n-r)/(1-r)||0),100*((1-a-r)/(1-r)||0),100*r]},i.rgb.keyword=function(e){const t=r[e];if(t)return t;let n,i=1/0;for(const t of Object.keys(a)){const r=a[t],c=(o=r,((s=e)[0]-o[0])**2+(s[1]-o[1])**2+(s[2]-o[2])**2);c<i&&(i=c,n=t)}var s,o;return n},i.keyword.rgb=function(e){return a[e]},i.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,a=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,a=a>.04045?((a+.055)/1.055)**2.4:a/12.92;return[100*(.4124*t+.3576*n+.1805*a),100*(.2126*t+.7152*n+.0722*a),100*(.0193*t+.1192*n+.9505*a)]},i.rgb.lab=function(e){const t=i.rgb.xyz(e);let n=t[0],a=t[1],r=t[2];n/=95.047,a/=100,r/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,a=a>.008856?a**(1/3):7.787*a+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;return[116*a-16,500*(n-a),200*(a-r)]},i.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,a=e[2]/100;let r,i,s;if(0===n)return s=255*a,[s,s,s];r=a<.5?a*(1+n):a+n-a*n;const o=2*a-r,c=[0,0,0];for(let e=0;e<3;e++)i=t+1/3*-(e-1),i<0&&i++,i>1&&i--,s=6*i<1?o+6*(r-o)*i:2*i<1?r:3*i<2?o+(r-o)*(2/3-i)*6:o,c[e]=255*s;return c},i.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,a=e[2]/100,r=n;const i=Math.max(a,.01);a*=2,n*=a<=1?a:2-a,r*=i<=1?i:2-i;return[t,100*(0===a?2*r/(i+r):2*n/(a+n)),100*((a+n)/2)]},i.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let a=e[2]/100;const r=Math.floor(t)%6,i=t-Math.floor(t),s=255*a*(1-n),o=255*a*(1-n*i),c=255*a*(1-n*(1-i));switch(a*=255,r){case 0:return[a,c,s];case 1:return[o,a,s];case 2:return[s,a,c];case 3:return[s,o,a];case 4:return[c,s,a];case 5:return[a,s,o]}},i.hsv.hsl=function(e){const t=e[0],n=e[1]/100,a=e[2]/100,r=Math.max(a,.01);let i,s;s=(2-n)*a;const o=(2-n)*r;return i=n*r,i/=o<=1?o:2-o,i=i||0,s/=2,[t,100*i,100*s]},i.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,a=e[2]/100;const r=n+a;let i;r>1&&(n/=r,a/=r);const s=Math.floor(6*t),o=1-a;i=6*t-s,0!=(1&s)&&(i=1-i);const c=n+i*(o-n);let u,l,d;switch(s){default:case 6:case 0:u=o,l=c,d=n;break;case 1:u=c,l=o,d=n;break;case 2:u=n,l=o,d=c;break;case 3:u=n,l=c,d=o;break;case 4:u=c,l=n,d=o;break;case 5:u=o,l=n,d=c}return[255*u,255*l,255*d]},i.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,a=e[2]/100,r=e[3]/100;return[255*(1-Math.min(1,t*(1-r)+r)),255*(1-Math.min(1,n*(1-r)+r)),255*(1-Math.min(1,a*(1-r)+r))]},i.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,a=e[2]/100;let r,i,s;return r=3.2406*t+-1.5372*n+-.4986*a,i=-.9689*t+1.8758*n+.0415*a,s=.0557*t+-.204*n+1.057*a,r=r>.0031308?1.055*r**(1/2.4)-.055:12.92*r,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,r=Math.min(Math.max(0,r),1),i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),[255*r,255*i,255*s]},i.xyz.lab=function(e){let t=e[0],n=e[1],a=e[2];t/=95.047,n/=100,a/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,a=a>.008856?a**(1/3):7.787*a+16/116;return[116*n-16,500*(t-n),200*(n-a)]},i.lab.xyz=function(e){let t,n,a;n=(e[0]+16)/116,t=e[1]/500+n,a=n-e[2]/200;const r=n**3,i=t**3,s=a**3;return n=r>.008856?r:(n-16/116)/7.787,t=i>.008856?i:(t-16/116)/7.787,a=s>.008856?s:(a-16/116)/7.787,t*=95.047,n*=100,a*=108.883,[t,n,a]},i.lab.lch=function(e){const t=e[0],n=e[1],a=e[2];let r;r=360*Math.atan2(a,n)/2/Math.PI,r<0&&(r+=360);return[t,Math.sqrt(n*n+a*a),r]},i.lch.lab=function(e){const t=e[0],n=e[1],a=e[2]/360*2*Math.PI;return[t,n*Math.cos(a),n*Math.sin(a)]},i.rgb.ansi16=function(e,t=null){const[n,a,r]=e;let s=null===t?i.rgb.hsv(e)[2]:t;if(s=Math.round(s/50),0===s)return 30;let o=30+(Math.round(r/255)<<2|Math.round(a/255)<<1|Math.round(n/255));return 2===s&&(o+=60),o},i.hsv.ansi16=function(e){return i.rgb.ansi16(i.hsv.rgb(e),e[2])},i.rgb.ansi256=function(e){const t=e[0],n=e[1],a=e[2];if(t===n&&n===a)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;return 16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(a/255*5)},i.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},i.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;e-=16;return[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},i.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},i.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];3===t[0].length&&(n=n.split("").map((e=>e+e)).join(""));const a=parseInt(n,16);return[a>>16&255,a>>8&255,255&a]},i.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,a=e[2]/255,r=Math.max(Math.max(t,n),a),i=Math.min(Math.min(t,n),a),s=r-i;let o,c;return o=s<1?i/(1-s):0,c=s<=0?0:r===t?(n-a)/s%6:r===n?2+(a-t)/s:4+(t-n)/s,c/=6,c%=1,[360*c,100*s,100*o]},i.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,a=n<.5?2*t*n:2*t*(1-n);let r=0;return a<1&&(r=(n-.5*a)/(1-a)),[e[0],100*a,100*r]},i.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,a=t*n;let r=0;return a<1&&(r=(n-a)/(1-a)),[e[0],100*a,100*r]},i.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,a=e[2]/100;if(0===n)return[255*a,255*a,255*a];const r=[0,0,0],i=t%1*6,s=i%1,o=1-s;let c=0;switch(Math.floor(i)){case 0:r[0]=1,r[1]=s,r[2]=0;break;case 1:r[0]=o,r[1]=1,r[2]=0;break;case 2:r[0]=0,r[1]=1,r[2]=s;break;case 3:r[0]=0,r[1]=o,r[2]=1;break;case 4:r[0]=s,r[1]=0,r[2]=1;break;default:r[0]=1,r[1]=0,r[2]=o}return c=(1-n)*a,[255*(n*r[0]+c),255*(n*r[1]+c),255*(n*r[2]+c)]},i.hcg.hsv=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);let a=0;return n>0&&(a=t/n),[e[0],100*a,100*n]},i.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let a=0;return n>0&&n<.5?a=t/(2*n):n>=.5&&n<1&&(a=t/(2*(1-n))),[e[0],100*a,100*n]},i.hcg.hwb=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},i.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,a=n-t;let r=0;return a<1&&(r=(n-a)/(1-a)),[e[0],100*a,100*r]},i.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},i.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},i.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},i.gray.hsl=function(e){return[0,0,e[0]]},i.gray.hsv=i.gray.hsl,i.gray.hwb=function(e){return[0,100,e[0]]},i.gray.cmyk=function(e){return[0,0,0,e[0]]},i.gray.lab=function(e){return[e[0],0,0]},i.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},i.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},79307:(e,t,n)=>{const a=n(18138),r=n(2833),i={};Object.keys(a).forEach((e=>{i[e]={},Object.defineProperty(i[e],"channels",{value:a[e].channels}),Object.defineProperty(i[e],"labels",{value:a[e].labels});const t=r(e);Object.keys(t).forEach((n=>{const a=t[n];i[e][n]=function(e){const t=function(...t){const n=t[0];if(null==n)return n;n.length>1&&(t=n);const a=e(t);if("object"==typeof a)for(let e=a.length,t=0;t<e;t++)a[t]=Math.round(a[t]);return a};return"conversion"in e&&(t.conversion=e.conversion),t}(a),i[e][n].raw=function(e){const t=function(...t){const n=t[0];return null==n?n:(n.length>1&&(t=n),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(a)}))})),e.exports=i},2833:(e,t,n)=>{const a=n(18138);function r(e){const t=function(){const e={},t=Object.keys(a);for(let n=t.length,a=0;a<n;a++)e[t[a]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;){const e=n.pop(),r=Object.keys(a[e]);for(let a=r.length,i=0;i<a;i++){const a=r[i],s=t[a];-1===s.distance&&(s.distance=t[e].distance+1,s.parent=e,n.unshift(a))}}return t}function i(e,t){return function(n){return t(e(n))}}function s(e,t){const n=[t[e].parent,e];let r=a[t[e].parent][e],s=t[e].parent;for(;t[s].parent;)n.unshift(t[s].parent),r=i(a[t[s].parent][s],r),s=t[s].parent;return r.conversion=n,r}e.exports=function(e){const t=r(e),n={},a=Object.keys(t);for(let e=a.length,r=0;r<e;r++){const e=a[r];null!==t[e].parent&&(n[e]=s(e,t))}return n}},9878:e=>{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},2473:(e,t,n)=>{var a={};e.exports=a,a.themes={};var r=n(39023),i=a.styles=n(90311),s=Object.defineProperties,o=new RegExp(/[\r\n]+/g);a.supportsColor=n(32144).supportsColor,void 0===a.enabled&&(a.enabled=!1!==a.supportsColor()),a.enable=function(){a.enabled=!0},a.disable=function(){a.enabled=!1},a.stripColors=a.strip=function(e){return(""+e).replace(/\x1B\[\d+m/g,"")};a.stylize=function(e,t){if(!a.enabled)return e+"";var n=i[t];return!n&&t in a?a[t](e):n.open+e+n.close};var c=/[|\\{}()[\]^$+*?.]/g;function u(e){var t=function e(){return f.apply(e,arguments)};return t._styles=e,t.__proto__=p,t}var l,d=(l={},i.grey=i.gray,Object.keys(i).forEach((function(e){i[e].closeRe=new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(c,"\\$&")}(i[e].close),"g"),l[e]={get:function(){return u(this._styles.concat(e))}}})),l),p=s((function(){}),d);function f(){var e=Array.prototype.slice.call(arguments).map((function(e){return null!=e&&e.constructor===String?e:r.inspect(e)})).join(" ");if(!a.enabled||!e)return e;for(var t=-1!=e.indexOf("\n"),n=this._styles,s=n.length;s--;){var c=i[n[s]];e=c.open+e.replace(c.closeRe,c.open)+c.close,t&&(e=e.replace(o,(function(e){return c.close+e+c.open})))}return e}a.setTheme=function(e){if("string"!=typeof e)for(var t in e)!function(t){a[t]=function(n){if("object"==typeof e[t]){var r=n;for(var i in e[t])r=a[e[t][i]](r);return r}return a[e[t]](n)}}(t);else console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));")};var m=function(e,t){var n=t.split("");return(n=n.map(e)).join("")};for(var h in a.trap=n(3254),a.zalgo=n(35380),a.maps={},a.maps.america=n(55349)(a),a.maps.zebra=n(85909)(a),a.maps.rainbow=n(26203)(a),a.maps.random=n(54174)(a),a.maps)!function(e){a[e]=function(t){return m(a.maps[e],t)}}(h);s(a,function(){var e={};return Object.keys(d).forEach((function(t){e[t]={get:function(){return u([t])}}})),e}())},3254:e=>{e.exports=function(e,t){var n="";e=(e=e||"Run the trap, drop the bass").split("");var a={a:["@","Ą","Ⱥ","Ʌ","Δ","Λ","Д"],b:["ß","Ɓ","Ƀ","ɮ","β","฿"],c:["©","Ȼ","Ͼ"],d:["Ð","Ɗ","Ԁ","ԁ","Ԃ","ԃ"],e:["Ë","ĕ","Ǝ","ɘ","Σ","ξ","Ҽ","੬"],f:["Ӻ"],g:["ɢ"],h:["Ħ","ƕ","Ң","Һ","Ӈ","Ԋ"],i:["༏"],j:["Ĵ"],k:["ĸ","Ҡ","Ӄ","Ԟ"],l:["Ĺ"],m:["ʍ","Ӎ","ӎ","Ԡ","ԡ","൩"],n:["Ñ","ŋ","Ɲ","Ͷ","Π","Ҋ"],o:["Ø","õ","ø","Ǿ","ʘ","Ѻ","ם","۝","๏"],p:["Ƿ","Ҏ"],q:[""],r:["®","Ʀ","Ȑ","Ɍ","ʀ","Я"],s:["§","Ϟ","ϟ","Ϩ"],t:["Ł","Ŧ","ͳ"],u:["Ʊ","Ս"],v:["ט"],w:["Ш","Ѡ","Ѽ","൰"],x:["Ҳ","Ӿ","Ӽ","ӽ"],y:["¥","Ұ","Ӌ"],z:["Ƶ","ɀ"]};return e.forEach((function(e){e=e.toLowerCase();var t=a[e]||[" "],r=Math.floor(Math.random()*t.length);n+=void 0!==a[e]?a[e][r]:e})),n}},35380:e=>{e.exports=function(e,t){e=e||" he is here ";var n={up:["̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚"],down:["̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣"],mid:["̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͜","͝","͞","͟","͠","͢","̸","̷","͡"," ҉"]},a=[].concat(n.up,n.down,n.mid);function r(e){return Math.floor(Math.random()*e)}function i(e){var t=!1;return a.filter((function(n){t=n===e})),t}return function(e,t){var a,s,o="";for(s in(t=t||{}).up=void 0===t.up||t.up,t.mid=void 0===t.mid||t.mid,t.down=void 0===t.down||t.down,t.size=void 0!==t.size?t.size:"maxi",e=e.split(""))if(!i(s)){switch(o+=e[s],a={up:0,down:0,mid:0},t.size){case"mini":a.up=r(8),a.mid=r(2),a.down=r(8);break;case"maxi":a.up=r(16)+3,a.mid=r(4)+1,a.down=r(64)+3;break;default:a.up=r(8)+1,a.mid=r(6)/2,a.down=r(8)+1}var c=["up","mid","down"];for(var u in c)for(var l=c[u],d=0;d<=a[l];d++)t[l]&&(o+=n[l][r(n[l].length)])}return o}(e,t)}},89612:(e,t,n)=>{var a=n(2473);e.exports=function(){var e=function(e,t){String.prototype.__defineGetter__(e,t)};e("strip",(function(){return a.strip(this)})),e("stripColors",(function(){return a.strip(this)})),e("trap",(function(){return a.trap(this)})),e("zalgo",(function(){return a.zalgo(this)})),e("zebra",(function(){return a.zebra(this)})),e("rainbow",(function(){return a.rainbow(this)})),e("random",(function(){return a.random(this)})),e("america",(function(){return a.america(this)})),Object.keys(a.styles).forEach((function(t){e(t,(function(){return a.stylize(this,t)}))})),a.setTheme=function(t){"string"!=typeof t?function(t){var n=["__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__","charAt","constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf","charCodeAt","indexOf","lastIndexOf","length","localeCompare","match","repeat","replace","search","slice","split","substring","toLocaleLowerCase","toLocaleUpperCase","toLowerCase","toUpperCase","trim","trimLeft","trimRight"];Object.keys(t).forEach((function(r){if(-1!==n.indexOf(r))console.log("warn: ".red+("String.prototype"+r).magenta+" is probably something you don't want to override. Ignoring style name");else if("string"==typeof t[r])a[r]=a[t[r]],e(r,(function(){return a[r](this)}));else{var i=function(e){for(var n=e||this,i=0;i<t[r].length;i++)n=a[t[r][i]](n);return n};e(r,i),a[r]=function(e){return i(e)}}}))}(t):console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));")}}},5157:(e,t,n)=>{var a=n(2473);e.exports=a,n(89612)()},55349:e=>{e.exports=function(e){return function(t,n,a){if(" "===t)return t;switch(n%3){case 0:return e.red(t);case 1:return e.white(t);case 2:return e.blue(t)}}}},26203:e=>{e.exports=function(e){var t=["red","yellow","green","blue","magenta"];return function(n,a,r){return" "===n?n:e[t[a++%t.length]](n)}}},54174:e=>{e.exports=function(e){var t=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(n,a,r){return" "===n?n:e[t[Math.round(Math.random()*(t.length-2))]](n)}}},85909:e=>{e.exports=function(e){return function(t,n,a){return n%2==0?t:e.inverse(t)}}},90311:e=>{var t={};e.exports=t;var n={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(n).forEach((function(e){var a=n[e],r=t[e]=[];r.open="["+a[0]+"m",r.close="["+a[1]+"m"}))},80434:e=>{"use strict";e.exports=function(e,t){var n=(t=t||process.argv).indexOf("--"),a=/^-{1,2}/.test(e)?"":"--",r=t.indexOf(a+e);return-1!==r&&(-1===n||r<n)}},32144:(e,t,n)=>{"use strict";var a=n(70857),r=n(80434),i=process.env,s=void 0;function o(e){var t=function(e){if(!1===s)return 0;if(r("color=16m")||r("color=full")||r("color=truecolor"))return 3;if(r("color=256"))return 2;if(e&&!e.isTTY&&!0!==s)return 0;var t=s?1:0;if("win32"===process.platform){var n=a.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in i)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((function(e){return e in i}))||"codeship"===i.CI_NAME?1:t;if("TEAMCITY_VERSION"in i)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in i){var o=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(i.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)||"COLORTERM"in i?1:(i.TERM,t)}(e);return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(t)}r("no-color")||r("no-colors")||r("color=false")?s=!1:(r("color")||r("colors")||r("color=true")||r("color=always"))&&(s=!0),"FORCE_COLOR"in i&&(s=0===i.FORCE_COLOR.length||0!==parseInt(i.FORCE_COLOR,10)),e.exports={supportsColor:o,stdout:o(process.stdout),stderr:o(process.stderr)}},50135:(e,t,n)=>{var a=n(39023),r=n(2203).Stream,i=n(59366);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,a.inherits(s,r),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 i)){var t=i.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 r.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)}},70129:function(e,t,n){var a;e.exports=(a=n(60095),n(81716),n(35478),n(35516),n(59947),function(){var e=a,t=e.lib.BlockCipher,n=e.algo,r=[],i=[],s=[],o=[],c=[],u=[],l=[],d=[],p=[],f=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,a=0;for(t=0;t<256;t++){var m=a^a<<1^a<<2^a<<3^a<<4;m=m>>>8^255&m^99,r[n]=m,i[m]=n;var h=e[n],b=e[h],g=e[b],v=257*e[m]^16843008*m;s[n]=v<<24|v>>>8,o[n]=v<<16|v>>>16,c[n]=v<<8|v>>>24,u[n]=v,v=16843009*g^65537*b^257*h^16843008*n,l[m]=v<<24|v>>>8,d[m]=v<<16|v>>>16,p[m]=v<<8|v>>>24,f[m]=v,n?(n=h^e[e[e[g^h]]],a^=e[e[a]]):n=a=1}}();var m=[0,1,2,4,8,16,32,64,128,27,54],h=n.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,a=4*((this._nRounds=n+6)+1),i=this._keySchedule=[],s=0;s<a;s++)s<n?i[s]=t[s]:(u=i[s-1],s%n?n>6&&s%n==4&&(u=r[u>>>24]<<24|r[u>>>16&255]<<16|r[u>>>8&255]<<8|r[255&u]):(u=r[(u=u<<8|u>>>24)>>>24]<<24|r[u>>>16&255]<<16|r[u>>>8&255]<<8|r[255&u],u^=m[s/n|0]<<24),i[s]=i[s-n]^u);for(var o=this._invKeySchedule=[],c=0;c<a;c++){if(s=a-c,c%4)var u=i[s];else u=i[s-4];o[c]=c<4||s<=4?u:l[r[u>>>24]]^d[r[u>>>16&255]]^p[r[u>>>8&255]]^f[r[255&u]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,s,o,c,u,r)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,l,d,p,f,i),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,a,r,i,s,o){for(var c=this._nRounds,u=e[t]^n[0],l=e[t+1]^n[1],d=e[t+2]^n[2],p=e[t+3]^n[3],f=4,m=1;m<c;m++){var h=a[u>>>24]^r[l>>>16&255]^i[d>>>8&255]^s[255&p]^n[f++],b=a[l>>>24]^r[d>>>16&255]^i[p>>>8&255]^s[255&u]^n[f++],g=a[d>>>24]^r[p>>>16&255]^i[u>>>8&255]^s[255&l]^n[f++],v=a[p>>>24]^r[u>>>16&255]^i[l>>>8&255]^s[255&d]^n[f++];u=h,l=b,d=g,p=v}h=(o[u>>>24]<<24|o[l>>>16&255]<<16|o[d>>>8&255]<<8|o[255&p])^n[f++],b=(o[l>>>24]<<24|o[d>>>16&255]<<16|o[p>>>8&255]<<8|o[255&u])^n[f++],g=(o[d>>>24]<<24|o[p>>>16&255]<<16|o[u>>>8&255]<<8|o[255&l])^n[f++],v=(o[p>>>24]<<24|o[u>>>16&255]<<16|o[l>>>8&255]<<8|o[255&d])^n[f++],e[t]=h,e[t+1]=b,e[t+2]=g,e[t+3]=v},keySize:8});e.AES=t._createHelper(h)}(),a.AES)},42770:function(e,t,n){var a;e.exports=(a=n(60095),n(81716),n(35478),n(35516),n(59947),function(){var e=a,t=e.lib.BlockCipher,n=e.algo;const r=16,i=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],s=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var o={pbox:[],sbox:[]};function c(e,t){let n=t>>24&255,a=t>>16&255,r=t>>8&255,i=255&t,s=e.sbox[0][n]+e.sbox[1][a];return s^=e.sbox[2][r],s+=e.sbox[3][i],s}function u(e,t,n){let a,i=t,s=n;for(let t=0;t<r;++t)i^=e.pbox[t],s=c(e,i)^s,a=i,i=s,s=a;return a=i,i=s,s=a,s^=e.pbox[r],i^=e.pbox[r+1],{left:i,right:s}}function l(e,t,n){let a,i=t,s=n;for(let t=r+1;t>1;--t)i^=e.pbox[t],s=c(e,i)^s,a=i,i=s,s=a;return a=i,i=s,s=a,s^=e.pbox[1],i^=e.pbox[0],{left:i,right:s}}function d(e,t,n){for(let t=0;t<4;t++){e.sbox[t]=[];for(let n=0;n<256;n++)e.sbox[t][n]=s[t][n]}let a=0;for(let s=0;s<r+2;s++)e.pbox[s]=i[s]^t[a],a++,a>=n&&(a=0);let o=0,c=0,l=0;for(let t=0;t<r+2;t+=2)l=u(e,o,c),o=l.left,c=l.right,e.pbox[t]=o,e.pbox[t+1]=c;for(let t=0;t<4;t++)for(let n=0;n<256;n+=2)l=u(e,o,c),o=l.left,c=l.right,e.sbox[t][n]=o,e.sbox[t][n+1]=c;return!0}var p=n.Blowfish=t.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4;d(o,t,n)}},encryptBlock:function(e,t){var n=u(o,e[t],e[t+1]);e[t]=n.left,e[t+1]=n.right},decryptBlock:function(e,t){var n=l(o,e[t],e[t+1]);e[t]=n.left,e[t+1]=n.right},blockSize:2,keySize:4,ivSize:2});e.Blowfish=t._createHelper(p)}(),a.Blowfish)},59947:function(e,t,n){var a;e.exports=(a=n(60095),n(35516),void(a.lib.Cipher||function(e){var t=a,n=t.lib,r=n.Base,i=n.WordArray,s=n.BufferedBlockAlgorithm,o=t.enc,c=(o.Utf8,o.Base64),u=t.algo.EvpKDF,l=n.Cipher=s.extend({cfg:r.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){s.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?y:g}return function(t){return{encrypt:function(n,a,r){return e(a).encrypt(t,n,a,r)},decrypt:function(n,a,r){return e(a).decrypt(t,n,a,r)}}}}()}),d=(n.StreamCipher=l.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),t.mode={}),p=n.BlockCipherMode=r.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),f=d.CBC=function(){var t=p.extend();function n(t,n,a){var r,i=this._iv;i?(r=i,this._iv=e):r=this._prevBlock;for(var s=0;s<a;s++)t[n+s]^=r[s]}return t.Encryptor=t.extend({processBlock:function(e,t){var a=this._cipher,r=a.blockSize;n.call(this,e,t,r),a.encryptBlock(e,t),this._prevBlock=e.slice(t,t+r)}}),t.Decryptor=t.extend({processBlock:function(e,t){var a=this._cipher,r=a.blockSize,i=e.slice(t,t+r);a.decryptBlock(e,t),n.call(this,e,t,r),this._prevBlock=i}}),t}(),m=(t.pad={}).Pkcs7={pad:function(e,t){for(var n=4*t,a=n-e.sigBytes%n,r=a<<24|a<<16|a<<8|a,s=[],o=0;o<a;o+=4)s.push(r);var c=i.create(s,a);e.concat(c)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},h=(n.BlockCipher=l.extend({cfg:l.cfg.extend({mode:f,padding:m}),reset:function(){var e;l.reset.call(this);var t=this.cfg,n=t.iv,a=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=a.createEncryptor:(e=a.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(a,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4}),n.CipherParams=r.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),b=(t.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;return(n?i.create([1398893684,1701076831]).concat(n).concat(t):t).toString(c)},parse:function(e){var t,n=c.parse(e),a=n.words;return 1398893684==a[0]&&1701076831==a[1]&&(t=i.create(a.slice(2,4)),a.splice(0,4),n.sigBytes-=16),h.create({ciphertext:n,salt:t})}},g=n.SerializableCipher=r.extend({cfg:r.extend({format:b}),encrypt:function(e,t,n,a){a=this.cfg.extend(a);var r=e.createEncryptor(n,a),i=r.finalize(t),s=r.cfg;return h.create({ciphertext:i,key:n,iv:s.iv,algorithm:e,mode:s.mode,padding:s.padding,blockSize:e.blockSize,formatter:a.format})},decrypt:function(e,t,n,a){return a=this.cfg.extend(a),t=this._parse(t,a.format),e.createDecryptor(n,a).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),v=(t.kdf={}).OpenSSL={execute:function(e,t,n,a,r){if(a||(a=i.random(8)),r)s=u.create({keySize:t+n,hasher:r}).compute(e,a);else var s=u.create({keySize:t+n}).compute(e,a);var o=i.create(s.words.slice(t),4*n);return s.sigBytes=4*t,h.create({key:s,iv:o,salt:a})}},y=n.PasswordBasedCipher=g.extend({cfg:g.cfg.extend({kdf:v}),encrypt:function(e,t,n,a){var r=(a=this.cfg.extend(a)).kdf.execute(n,e.keySize,e.ivSize,a.salt,a.hasher);a.iv=r.iv;var i=g.encrypt.call(this,e,t,r.key,a);return i.mixIn(r),i},decrypt:function(e,t,n,a){a=this.cfg.extend(a),t=this._parse(t,a.format);var r=a.kdf.execute(n,e.keySize,e.ivSize,t.salt,a.hasher);return a.iv=r.iv,g.decrypt.call(this,e,t,r.key,a)}})}()))},60095:function(e,t,n){var a;e.exports=(a=a||function(e,t){var a;if("undefined"!=typeof window&&window.crypto&&(a=window.crypto),"undefined"!=typeof self&&self.crypto&&(a=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(a=globalThis.crypto),!a&&"undefined"!=typeof window&&window.msCrypto&&(a=window.msCrypto),!a&&"undefined"!=typeof global&&global.crypto&&(a=global.crypto),!a)try{a=n(76982)}catch(e){}var r=function(){if(a){if("function"==typeof a.getRandomValues)try{return a.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof a.randomBytes)try{return a.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),s={},o=s.lib={},c=o.Base={extend:function(e){var t=i(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},u=o.WordArray=c.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||d).stringify(this)},concat:function(e){var t=this.words,n=e.words,a=this.sigBytes,r=e.sigBytes;if(this.clamp(),a%4)for(var i=0;i<r;i++){var s=n[i>>>2]>>>24-i%4*8&255;t[a+i>>>2]|=s<<24-(a+i)%4*8}else for(var o=0;o<r;o+=4)t[a+o>>>2]=n[o>>>2];return this.sigBytes+=r,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=c.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(r());return new u.init(t,e)}}),l=s.enc={},d=l.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,a=[],r=0;r<n;r++){var i=t[r>>>2]>>>24-r%4*8&255;a.push((i>>>4).toString(16)),a.push((15&i).toString(16))}return a.join("")},parse:function(e){for(var t=e.length,n=[],a=0;a<t;a+=2)n[a>>>3]|=parseInt(e.substr(a,2),16)<<24-a%8*4;return new u.init(n,t/2)}},p=l.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,a=[],r=0;r<n;r++){var i=t[r>>>2]>>>24-r%4*8&255;a.push(String.fromCharCode(i))}return a.join("")},parse:function(e){for(var t=e.length,n=[],a=0;a<t;a++)n[a>>>2]|=(255&e.charCodeAt(a))<<24-a%4*8;return new u.init(n,t)}},f=l.Utf8={stringify:function(e){try{return decodeURIComponent(escape(p.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return p.parse(unescape(encodeURIComponent(e)))}},m=o.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=f.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,a=this._data,r=a.words,i=a.sigBytes,s=this.blockSize,o=i/(4*s),c=(o=t?e.ceil(o):e.max((0|o)-this._minBufferSize,0))*s,l=e.min(4*c,i);if(c){for(var d=0;d<c;d+=s)this._doProcessBlock(r,d);n=r.splice(0,c),a.sigBytes-=l}return new u.init(n,l)},clone:function(){var e=c.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),h=(o.Hasher=m.extend({cfg:c.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){m.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new h.HMAC.init(e,n).finalize(t)}}}),s.algo={});return s}(Math),a)},81716:function(e,t,n){var a;e.exports=(a=n(60095),function(){var e=a,t=e.lib.WordArray;function n(e,n,a){for(var r=[],i=0,s=0;s<n;s++)if(s%4){var o=a[e.charCodeAt(s-1)]<<s%4*2|a[e.charCodeAt(s)]>>>6-s%4*2;r[i>>>2]|=o<<24-i%4*8,i++}return t.create(r,i)}e.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,a=this._map;e.clamp();for(var r=[],i=0;i<n;i+=3)for(var s=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,o=0;o<4&&i+.75*o<n;o++)r.push(a.charAt(s>>>6*(3-o)&63));var c=a.charAt(64);if(c)for(;r.length%4;)r.push(c);return r.join("")},parse:function(e){var t=e.length,a=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var i=0;i<a.length;i++)r[a.charCodeAt(i)]=i}var s=a.charAt(64);if(s){var o=e.indexOf(s);-1!==o&&(t=o)}return n(e,t,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),a.enc.Base64)},17687:function(e,t,n){var a;e.exports=(a=n(60095),function(){var e=a,t=e.lib.WordArray;function n(e,n,a){for(var r=[],i=0,s=0;s<n;s++)if(s%4){var o=a[e.charCodeAt(s-1)]<<s%4*2|a[e.charCodeAt(s)]>>>6-s%4*2;r[i>>>2]|=o<<24-i%4*8,i++}return t.create(r,i)}e.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var n=e.words,a=e.sigBytes,r=t?this._safe_map:this._map;e.clamp();for(var i=[],s=0;s<a;s+=3)for(var o=(n[s>>>2]>>>24-s%4*8&255)<<16|(n[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|n[s+2>>>2]>>>24-(s+2)%4*8&255,c=0;c<4&&s+.75*c<a;c++)i.push(r.charAt(o>>>6*(3-c)&63));var u=r.charAt(64);if(u)for(;i.length%4;)i.push(u);return i.join("")},parse:function(e,t){void 0===t&&(t=!0);var a=e.length,r=t?this._safe_map:this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var s=0;s<r.length;s++)i[r.charCodeAt(s)]=s}var o=r.charAt(64);if(o){var c=e.indexOf(o);-1!==c&&(a=c)}return n(e,a,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}}(),a.enc.Base64url)},76729:function(e,t,n){var a;e.exports=(a=n(60095),function(){var e=a,t=e.lib.WordArray,n=e.enc;function r(e){return e<<8&4278255360|e>>>8&16711935}n.Utf16=n.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,a=[],r=0;r<n;r+=2){var i=t[r>>>2]>>>16-r%4*8&65535;a.push(String.fromCharCode(i))}return a.join("")},parse:function(e){for(var n=e.length,a=[],r=0;r<n;r++)a[r>>>1]|=e.charCodeAt(r)<<16-r%2*16;return t.create(a,2*n)}},n.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,a=[],i=0;i<n;i+=2){var s=r(t[i>>>2]>>>16-i%4*8&65535);a.push(String.fromCharCode(s))}return a.join("")},parse:function(e){for(var n=e.length,a=[],i=0;i<n;i++)a[i>>>1]|=r(e.charCodeAt(i)<<16-i%2*16);return t.create(a,2*n)}}}(),a.enc.Utf16)},35516:function(e,t,n){var a,r,i,s,o,c,u,l;e.exports=(l=n(60095),n(1825),n(55979),r=(a=l).lib,i=r.Base,s=r.WordArray,o=a.algo,c=o.MD5,u=o.EvpKDF=i.extend({cfg:i.extend({keySize:4,hasher:c,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n,a=this.cfg,r=a.hasher.create(),i=s.create(),o=i.words,c=a.keySize,u=a.iterations;o.length<c;){n&&r.update(n),n=r.update(e).finalize(t),r.reset();for(var l=1;l<u;l++)n=r.finalize(n),r.reset();i.concat(n)}return i.sigBytes=4*c,i}}),a.EvpKDF=function(e,t,n){return u.create(n).compute(e,t)},l.EvpKDF)},635:function(e,t,n){var a,r,i,s;e.exports=(s=n(60095),n(59947),r=(a=s).lib.CipherParams,i=a.enc.Hex,a.format.Hex={stringify:function(e){return e.ciphertext.toString(i)},parse:function(e){var t=i.parse(e);return r.create({ciphertext:t})}},s.format.Hex)},55979:function(e,t,n){var a,r,i,s;e.exports=(a=n(60095),i=(r=a).lib.Base,s=r.enc.Utf8,void(r.algo.HMAC=i.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=s.parse(t));var n=e.blockSize,a=4*n;t.sigBytes>a&&(t=e.finalize(t)),t.clamp();for(var r=this._oKey=t.clone(),i=this._iKey=t.clone(),o=r.words,c=i.words,u=0;u<n;u++)o[u]^=1549556828,c[u]^=909522486;r.sigBytes=i.sigBytes=a,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})))},27594:function(e,t,n){var a;e.exports=(a=n(60095),n(2478),n(74842),n(76729),n(81716),n(17687),n(35478),n(1825),n(9331),n(74174),n(96018),n(82963),n(6303),n(97442),n(55979),n(94673),n(35516),n(59947),n(62375),n(19141),n(6014),n(64867),n(55760),n(24223),n(71855),n(16600),n(34537),n(17894),n(635),n(70129),n(84902),n(56123),n(54324),n(27126),n(42770),a)},74842:function(e,t,n){var a;e.exports=(a=n(60095),function(){if("function"==typeof ArrayBuffer){var e=a.lib.WordArray,t=e.init,n=e.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var n=e.byteLength,a=[],r=0;r<n;r++)a[r>>>2]|=e[r]<<24-r%4*8;t.call(this,a,n)}else t.apply(this,arguments)};n.prototype=e}}(),a.lib.WordArray)},35478:function(e,t,n){var a;e.exports=(a=n(60095),function(e){var t=a,n=t.lib,r=n.WordArray,i=n.Hasher,s=t.algo,o=[];!function(){for(var t=0;t<64;t++)o[t]=4294967296*e.abs(e.sin(t+1))|0}();var c=s.MD5=i.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var a=t+n,r=e[a];e[a]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var i=this._hash.words,s=e[t+0],c=e[t+1],f=e[t+2],m=e[t+3],h=e[t+4],b=e[t+5],g=e[t+6],v=e[t+7],y=e[t+8],_=e[t+9],E=e[t+10],x=e[t+11],T=e[t+12],O=e[t+13],$=e[t+14],A=e[t+15],S=i[0],D=i[1],w=i[2],C=i[3];S=u(S,D,w,C,s,7,o[0]),C=u(C,S,D,w,c,12,o[1]),w=u(w,C,S,D,f,17,o[2]),D=u(D,w,C,S,m,22,o[3]),S=u(S,D,w,C,h,7,o[4]),C=u(C,S,D,w,b,12,o[5]),w=u(w,C,S,D,g,17,o[6]),D=u(D,w,C,S,v,22,o[7]),S=u(S,D,w,C,y,7,o[8]),C=u(C,S,D,w,_,12,o[9]),w=u(w,C,S,D,E,17,o[10]),D=u(D,w,C,S,x,22,o[11]),S=u(S,D,w,C,T,7,o[12]),C=u(C,S,D,w,O,12,o[13]),w=u(w,C,S,D,$,17,o[14]),S=l(S,D=u(D,w,C,S,A,22,o[15]),w,C,c,5,o[16]),C=l(C,S,D,w,g,9,o[17]),w=l(w,C,S,D,x,14,o[18]),D=l(D,w,C,S,s,20,o[19]),S=l(S,D,w,C,b,5,o[20]),C=l(C,S,D,w,E,9,o[21]),w=l(w,C,S,D,A,14,o[22]),D=l(D,w,C,S,h,20,o[23]),S=l(S,D,w,C,_,5,o[24]),C=l(C,S,D,w,$,9,o[25]),w=l(w,C,S,D,m,14,o[26]),D=l(D,w,C,S,y,20,o[27]),S=l(S,D,w,C,O,5,o[28]),C=l(C,S,D,w,f,9,o[29]),w=l(w,C,S,D,v,14,o[30]),S=d(S,D=l(D,w,C,S,T,20,o[31]),w,C,b,4,o[32]),C=d(C,S,D,w,y,11,o[33]),w=d(w,C,S,D,x,16,o[34]),D=d(D,w,C,S,$,23,o[35]),S=d(S,D,w,C,c,4,o[36]),C=d(C,S,D,w,h,11,o[37]),w=d(w,C,S,D,v,16,o[38]),D=d(D,w,C,S,E,23,o[39]),S=d(S,D,w,C,O,4,o[40]),C=d(C,S,D,w,s,11,o[41]),w=d(w,C,S,D,m,16,o[42]),D=d(D,w,C,S,g,23,o[43]),S=d(S,D,w,C,_,4,o[44]),C=d(C,S,D,w,T,11,o[45]),w=d(w,C,S,D,A,16,o[46]),S=p(S,D=d(D,w,C,S,f,23,o[47]),w,C,s,6,o[48]),C=p(C,S,D,w,v,10,o[49]),w=p(w,C,S,D,$,15,o[50]),D=p(D,w,C,S,b,21,o[51]),S=p(S,D,w,C,T,6,o[52]),C=p(C,S,D,w,m,10,o[53]),w=p(w,C,S,D,E,15,o[54]),D=p(D,w,C,S,c,21,o[55]),S=p(S,D,w,C,y,6,o[56]),C=p(C,S,D,w,A,10,o[57]),w=p(w,C,S,D,g,15,o[58]),D=p(D,w,C,S,O,21,o[59]),S=p(S,D,w,C,h,6,o[60]),C=p(C,S,D,w,x,10,o[61]),w=p(w,C,S,D,f,15,o[62]),D=p(D,w,C,S,_,21,o[63]),i[0]=i[0]+S|0,i[1]=i[1]+D|0,i[2]=i[2]+w|0,i[3]=i[3]+C|0},_doFinalize:function(){var t=this._data,n=t.words,a=8*this._nDataBytes,r=8*t.sigBytes;n[r>>>5]|=128<<24-r%32;var i=e.floor(a/4294967296),s=a;n[15+(r+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),n[14+(r+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),t.sigBytes=4*(n.length+1),this._process();for(var o=this._hash,c=o.words,u=0;u<4;u++){var l=c[u];c[u]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return o},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,n,a,r,i,s){var o=e+(t&n|~t&a)+r+s;return(o<<i|o>>>32-i)+t}function l(e,t,n,a,r,i,s){var o=e+(t&a|n&~a)+r+s;return(o<<i|o>>>32-i)+t}function d(e,t,n,a,r,i,s){var o=e+(t^n^a)+r+s;return(o<<i|o>>>32-i)+t}function p(e,t,n,a,r,i,s){var o=e+(n^(t|~a))+r+s;return(o<<i|o>>>32-i)+t}t.MD5=i._createHelper(c),t.HmacMD5=i._createHmacHelper(c)}(Math),a.MD5)},62375:function(e,t,n){var a;e.exports=(a=n(60095),n(59947),a.mode.CFB=function(){var e=a.lib.BlockCipherMode.extend();function t(e,t,n,a){var r,i=this._iv;i?(r=i.slice(0),this._iv=void 0):r=this._prevBlock,a.encryptBlock(r,0);for(var s=0;s<n;s++)e[t+s]^=r[s]}return e.Encryptor=e.extend({processBlock:function(e,n){var a=this._cipher,r=a.blockSize;t.call(this,e,n,r,a),this._prevBlock=e.slice(n,n+r)}}),e.Decryptor=e.extend({processBlock:function(e,n){var a=this._cipher,r=a.blockSize,i=e.slice(n,n+r);t.call(this,e,n,r,a),this._prevBlock=i}}),e}(),a.mode.CFB)},6014:function(e,t,n){var a;e.exports=(a=n(60095),n(59947),a.mode.CTRGladman=function(){var e=a.lib.BlockCipherMode.extend();function t(e){if(255==(e>>24&255)){var t=e>>16&255,n=e>>8&255,a=255&e;255===t?(t=0,255===n?(n=0,255===a?a=0:++a):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=a}else e+=1<<24;return e}function n(e){return 0===(e[0]=t(e[0]))&&(e[1]=t(e[1])),e}var r=e.Encryptor=e.extend({processBlock:function(e,t){var a=this._cipher,r=a.blockSize,i=this._iv,s=this._counter;i&&(s=this._counter=i.slice(0),this._iv=void 0),n(s);var o=s.slice(0);a.encryptBlock(o,0);for(var c=0;c<r;c++)e[t+c]^=o[c]}});return e.Decryptor=r,e}(),a.mode.CTRGladman)},19141:function(e,t,n){var a,r,i;e.exports=(i=n(60095),n(59947),i.mode.CTR=(a=i.lib.BlockCipherMode.extend(),r=a.Encryptor=a.extend({processBlock:function(e,t){var n=this._cipher,a=n.blockSize,r=this._iv,i=this._counter;r&&(i=this._counter=r.slice(0),this._iv=void 0);var s=i.slice(0);n.encryptBlock(s,0),i[a-1]=i[a-1]+1|0;for(var o=0;o<a;o++)e[t+o]^=s[o]}}),a.Decryptor=r,a),i.mode.CTR)},55760:function(e,t,n){var a,r;e.exports=(r=n(60095),n(59947),r.mode.ECB=((a=r.lib.BlockCipherMode.extend()).Encryptor=a.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),a.Decryptor=a.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),a),r.mode.ECB)},64867:function(e,t,n){var a,r,i;e.exports=(i=n(60095),n(59947),i.mode.OFB=(a=i.lib.BlockCipherMode.extend(),r=a.Encryptor=a.extend({processBlock:function(e,t){var n=this._cipher,a=n.blockSize,r=this._iv,i=this._keystream;r&&(i=this._keystream=r.slice(0),this._iv=void 0),n.encryptBlock(i,0);for(var s=0;s<a;s++)e[t+s]^=i[s]}}),a.Decryptor=r,a),i.mode.OFB)},24223:function(e,t,n){var a;e.exports=(a=n(60095),n(59947),a.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,a=4*t,r=a-n%a,i=n+r-1;e.clamp(),e.words[i>>>2]|=r<<24-i%4*8,e.sigBytes+=r},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},a.pad.Ansix923)},71855:function(e,t,n){var a;e.exports=(a=n(60095),n(59947),a.pad.Iso10126={pad:function(e,t){var n=4*t,r=n-e.sigBytes%n;e.concat(a.lib.WordArray.random(r-1)).concat(a.lib.WordArray.create([r<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},a.pad.Iso10126)},16600:function(e,t,n){var a;e.exports=(a=n(60095),n(59947),a.pad.Iso97971={pad:function(e,t){e.concat(a.lib.WordArray.create([2147483648],1)),a.pad.ZeroPadding.pad(e,t)},unpad:function(e){a.pad.ZeroPadding.unpad(e),e.sigBytes--}},a.pad.Iso97971)},17894:function(e,t,n){var a;e.exports=(a=n(60095),n(59947),a.pad.NoPadding={pad:function(){},unpad:function(){}},a.pad.NoPadding)},34537:function(e,t,n){var a;e.exports=(a=n(60095),n(59947),a.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){var t=e.words,n=e.sigBytes-1;for(n=e.sigBytes-1;n>=0;n--)if(t[n>>>2]>>>24-n%4*8&255){e.sigBytes=n+1;break}}},a.pad.ZeroPadding)},94673:function(e,t,n){var a,r,i,s,o,c,u,l,d;e.exports=(d=n(60095),n(9331),n(55979),r=(a=d).lib,i=r.Base,s=r.WordArray,o=a.algo,c=o.SHA256,u=o.HMAC,l=o.PBKDF2=i.extend({cfg:i.extend({keySize:4,hasher:c,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,a=u.create(n.hasher,e),r=s.create(),i=s.create([1]),o=r.words,c=i.words,l=n.keySize,d=n.iterations;o.length<l;){var p=a.update(t).finalize(i);a.reset();for(var f=p.words,m=f.length,h=p,b=1;b<d;b++){h=a.finalize(h),a.reset();for(var g=h.words,v=0;v<m;v++)f[v]^=g[v]}r.concat(p),c[0]++}return r.sigBytes=4*l,r}}),a.PBKDF2=function(e,t,n){return l.create(n).compute(e,t)},d.PBKDF2)},27126:function(e,t,n){var a;e.exports=(a=n(60095),n(81716),n(35478),n(35516),n(59947),function(){var e=a,t=e.lib.StreamCipher,n=e.algo,r=[],i=[],s=[],o=n.RabbitLegacy=t.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],a=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)a[r]^=n[r+4&7];if(t){var i=t.words,s=i[0],o=i[1],u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),l=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),d=u>>>16|4294901760&l,p=l<<16|65535&u;for(a[0]^=u,a[1]^=d,a[2]^=l,a[3]^=p,a[4]^=u,a[5]^=d,a[6]^=l,a[7]^=p,r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(e,t){var n=this._X;c.call(this),r[0]=n[0]^n[5]>>>16^n[3]<<16,r[1]=n[2]^n[7]>>>16^n[5]<<16,r[2]=n[4]^n[1]>>>16^n[7]<<16,r[3]=n[6]^n[3]>>>16^n[1]<<16;for(var a=0;a<4;a++)r[a]=16711935&(r[a]<<8|r[a]>>>24)|4278255360&(r[a]<<24|r[a]>>>8),e[t+a]^=r[a]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,n=0;n<8;n++)i[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,n=0;n<8;n++){var a=e[n]+t[n],r=65535&a,o=a>>>16,c=((r*r>>>17)+r*o>>>15)+o*o,u=((4294901760&a)*a|0)+((65535&a)*a|0);s[n]=c^u}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}e.RabbitLegacy=t._createHelper(o)}(),a.RabbitLegacy)},54324:function(e,t,n){var a;e.exports=(a=n(60095),n(81716),n(35478),n(35516),n(59947),function(){var e=a,t=e.lib.StreamCipher,n=e.algo,r=[],i=[],s=[],o=n.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var a=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],r=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,n=0;n<4;n++)c.call(this);for(n=0;n<8;n++)r[n]^=a[n+4&7];if(t){var i=t.words,s=i[0],o=i[1],u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),l=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),d=u>>>16|4294901760&l,p=l<<16|65535&u;for(r[0]^=u,r[1]^=d,r[2]^=l,r[3]^=p,r[4]^=u,r[5]^=d,r[6]^=l,r[7]^=p,n=0;n<4;n++)c.call(this)}},_doProcessBlock:function(e,t){var n=this._X;c.call(this),r[0]=n[0]^n[5]>>>16^n[3]<<16,r[1]=n[2]^n[7]>>>16^n[5]<<16,r[2]=n[4]^n[1]>>>16^n[7]<<16,r[3]=n[6]^n[3]>>>16^n[1]<<16;for(var a=0;a<4;a++)r[a]=16711935&(r[a]<<8|r[a]>>>24)|4278255360&(r[a]<<24|r[a]>>>8),e[t+a]^=r[a]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,n=0;n<8;n++)i[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,n=0;n<8;n++){var a=e[n]+t[n],r=65535&a,o=a>>>16,c=((r*r>>>17)+r*o>>>15)+o*o,u=((4294901760&a)*a|0)+((65535&a)*a|0);s[n]=c^u}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}e.Rabbit=t._createHelper(o)}(),a.Rabbit)},56123:function(e,t,n){var a;e.exports=(a=n(60095),n(81716),n(35478),n(35516),n(59947),function(){var e=a,t=e.lib.StreamCipher,n=e.algo,r=n.RC4=t.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,a=this._S=[],r=0;r<256;r++)a[r]=r;r=0;for(var i=0;r<256;r++){var s=r%n,o=t[s>>>2]>>>24-s%4*8&255;i=(i+a[r]+o)%256;var c=a[r];a[r]=a[i],a[i]=c}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=i.call(this)},keySize:8,ivSize:0});function i(){for(var e=this._S,t=this._i,n=this._j,a=0,r=0;r<4;r++){n=(n+e[t=(t+1)%256])%256;var i=e[t];e[t]=e[n],e[n]=i,a|=e[(e[t]+e[n])%256]<<24-8*r}return this._i=t,this._j=n,a}e.RC4=t._createHelper(r);var s=n.RC4Drop=r.extend({cfg:r.cfg.extend({drop:192}),_doReset:function(){r._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)i.call(this)}});e.RC4Drop=t._createHelper(s)}(),a.RC4)},97442:function(e,t,n){var a;e.exports=(a=n(60095),function(e){var t=a,n=t.lib,r=n.WordArray,i=n.Hasher,s=t.algo,o=r.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),c=r.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),u=r.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),l=r.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),d=r.create([0,1518500249,1859775393,2400959708,2840853838]),p=r.create([1352829926,1548603684,1836072691,2053994217,0]),f=s.RIPEMD160=i.extend({_doReset:function(){this._hash=r.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var a=t+n,r=e[a];e[a]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var i,s,f,_,E,x,T,O,$,A,S,D=this._hash.words,w=d.words,C=p.words,R=o.words,N=c.words,I=u.words,M=l.words;for(x=i=D[0],T=s=D[1],O=f=D[2],$=_=D[3],A=E=D[4],n=0;n<80;n+=1)S=i+e[t+R[n]]|0,S+=n<16?m(s,f,_)+w[0]:n<32?h(s,f,_)+w[1]:n<48?b(s,f,_)+w[2]:n<64?g(s,f,_)+w[3]:v(s,f,_)+w[4],S=(S=y(S|=0,I[n]))+E|0,i=E,E=_,_=y(f,10),f=s,s=S,S=x+e[t+N[n]]|0,S+=n<16?v(T,O,$)+C[0]:n<32?g(T,O,$)+C[1]:n<48?b(T,O,$)+C[2]:n<64?h(T,O,$)+C[3]:m(T,O,$)+C[4],S=(S=y(S|=0,M[n]))+A|0,x=A,A=$,$=y(O,10),O=T,T=S;S=D[1]+f+$|0,D[1]=D[2]+_+A|0,D[2]=D[3]+E+x|0,D[3]=D[4]+i+T|0,D[4]=D[0]+s+O|0,D[0]=S},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,a=8*e.sigBytes;t[a>>>5]|=128<<24-a%32,t[14+(a+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var r=this._hash,i=r.words,s=0;s<5;s++){var o=i[s];i[s]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}return r},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function m(e,t,n){return e^t^n}function h(e,t,n){return e&t|~e&n}function b(e,t,n){return(e|~t)^n}function g(e,t,n){return e&n|t&~n}function v(e,t,n){return e^(t|~n)}function y(e,t){return e<<t|e>>>32-t}t.RIPEMD160=i._createHelper(f),t.HmacRIPEMD160=i._createHmacHelper(f)}(Math),a.RIPEMD160)},1825:function(e,t,n){var a,r,i,s,o,c,u,l;e.exports=(l=n(60095),r=(a=l).lib,i=r.WordArray,s=r.Hasher,o=a.algo,c=[],u=o.SHA1=s.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,a=n[0],r=n[1],i=n[2],s=n[3],o=n[4],u=0;u<80;u++){if(u<16)c[u]=0|e[t+u];else{var l=c[u-3]^c[u-8]^c[u-14]^c[u-16];c[u]=l<<1|l>>>31}var d=(a<<5|a>>>27)+o+c[u];d+=u<20?1518500249+(r&i|~r&s):u<40?1859775393+(r^i^s):u<60?(r&i|r&s|i&s)-1894007588:(r^i^s)-899497514,o=s,s=i,i=r<<30|r>>>2,r=a,a=d}n[0]=n[0]+a|0,n[1]=n[1]+r|0,n[2]=n[2]+i|0,n[3]=n[3]+s|0,n[4]=n[4]+o|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,a=8*e.sigBytes;return t[a>>>5]|=128<<24-a%32,t[14+(a+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(a+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}}),a.SHA1=s._createHelper(u),a.HmacSHA1=s._createHmacHelper(u),l.SHA1)},74174:function(e,t,n){var a,r,i,s,o,c;e.exports=(c=n(60095),n(9331),r=(a=c).lib.WordArray,i=a.algo,s=i.SHA256,o=i.SHA224=s.extend({_doReset:function(){this._hash=new r.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=s._doFinalize.call(this);return e.sigBytes-=4,e}}),a.SHA224=s._createHelper(o),a.HmacSHA224=s._createHmacHelper(o),c.SHA224)},9331:function(e,t,n){var a;e.exports=(a=n(60095),function(e){var t=a,n=t.lib,r=n.WordArray,i=n.Hasher,s=t.algo,o=[],c=[];!function(){function t(t){for(var n=e.sqrt(t),a=2;a<=n;a++)if(!(t%a))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var a=2,r=0;r<64;)t(a)&&(r<8&&(o[r]=n(e.pow(a,.5))),c[r]=n(e.pow(a,1/3)),r++),a++}();var u=[],l=s.SHA256=i.extend({_doReset:function(){this._hash=new r.init(o.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,a=n[0],r=n[1],i=n[2],s=n[3],o=n[4],l=n[5],d=n[6],p=n[7],f=0;f<64;f++){if(f<16)u[f]=0|e[t+f];else{var m=u[f-15],h=(m<<25|m>>>7)^(m<<14|m>>>18)^m>>>3,b=u[f-2],g=(b<<15|b>>>17)^(b<<13|b>>>19)^b>>>10;u[f]=h+u[f-7]+g+u[f-16]}var v=a&r^a&i^r&i,y=(a<<30|a>>>2)^(a<<19|a>>>13)^(a<<10|a>>>22),_=p+((o<<26|o>>>6)^(o<<21|o>>>11)^(o<<7|o>>>25))+(o&l^~o&d)+c[f]+u[f];p=d,d=l,l=o,o=s+_|0,s=i,i=r,r=a,a=_+(y+v)|0}n[0]=n[0]+a|0,n[1]=n[1]+r|0,n[2]=n[2]+i|0,n[3]=n[3]+s|0,n[4]=n[4]+o|0,n[5]=n[5]+l|0,n[6]=n[6]+d|0,n[7]=n[7]+p|0},_doFinalize:function(){var t=this._data,n=t.words,a=8*this._nDataBytes,r=8*t.sigBytes;return n[r>>>5]|=128<<24-r%32,n[14+(r+64>>>9<<4)]=e.floor(a/4294967296),n[15+(r+64>>>9<<4)]=a,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=i._createHelper(l),t.HmacSHA256=i._createHmacHelper(l)}(Math),a.SHA256)},6303:function(e,t,n){var a;e.exports=(a=n(60095),n(2478),function(e){var t=a,n=t.lib,r=n.WordArray,i=n.Hasher,s=t.x64.Word,o=t.algo,c=[],u=[],l=[];!function(){for(var e=1,t=0,n=0;n<24;n++){c[e+5*t]=(n+1)*(n+2)/2%64;var a=(2*e+3*t)%5;e=t%5,t=a}for(e=0;e<5;e++)for(t=0;t<5;t++)u[e+5*t]=t+(2*e+3*t)%5*5;for(var r=1,i=0;i<24;i++){for(var o=0,d=0,p=0;p<7;p++){if(1&r){var f=(1<<p)-1;f<32?d^=1<<f:o^=1<<f-32}128&r?r=r<<1^113:r<<=1}l[i]=s.create(o,d)}}();var d=[];!function(){for(var e=0;e<25;e++)d[e]=s.create()}();var p=o.SHA3=i.extend({cfg:i.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new s.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var n=this._state,a=this.blockSize/2,r=0;r<a;r++){var i=e[t+2*r],s=e[t+2*r+1];i=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),(D=n[r]).high^=s,D.low^=i}for(var o=0;o<24;o++){for(var p=0;p<5;p++){for(var f=0,m=0,h=0;h<5;h++)f^=(D=n[p+5*h]).high,m^=D.low;var b=d[p];b.high=f,b.low=m}for(p=0;p<5;p++){var g=d[(p+4)%5],v=d[(p+1)%5],y=v.high,_=v.low;for(f=g.high^(y<<1|_>>>31),m=g.low^(_<<1|y>>>31),h=0;h<5;h++)(D=n[p+5*h]).high^=f,D.low^=m}for(var E=1;E<25;E++){var x=(D=n[E]).high,T=D.low,O=c[E];O<32?(f=x<<O|T>>>32-O,m=T<<O|x>>>32-O):(f=T<<O-32|x>>>64-O,m=x<<O-32|T>>>64-O);var $=d[u[E]];$.high=f,$.low=m}var A=d[0],S=n[0];for(A.high=S.high,A.low=S.low,p=0;p<5;p++)for(h=0;h<5;h++){var D=n[E=p+5*h],w=d[E],C=d[(p+1)%5+5*h],R=d[(p+2)%5+5*h];D.high=w.high^~C.high&R.high,D.low=w.low^~C.low&R.low}D=n[0];var N=l[o];D.high^=N.high,D.low^=N.low}},_doFinalize:function(){var t=this._data,n=t.words,a=(this._nDataBytes,8*t.sigBytes),i=32*this.blockSize;n[a>>>5]|=1<<24-a%32,n[(e.ceil((a+1)/i)*i>>>5)-1]|=128,t.sigBytes=4*n.length,this._process();for(var s=this._state,o=this.cfg.outputLength/8,c=o/8,u=[],l=0;l<c;l++){var d=s[l],p=d.high,f=d.low;p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),f=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),u.push(f),u.push(p)}return new r.init(u,o)},clone:function(){for(var e=i.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});t.SHA3=i._createHelper(p),t.HmacSHA3=i._createHmacHelper(p)}(Math),a.SHA3)},82963:function(e,t,n){var a,r,i,s,o,c,u,l;e.exports=(l=n(60095),n(2478),n(96018),r=(a=l).x64,i=r.Word,s=r.WordArray,o=a.algo,c=o.SHA512,u=o.SHA384=c.extend({_doReset:function(){this._hash=new s.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var e=c._doFinalize.call(this);return e.sigBytes-=16,e}}),a.SHA384=c._createHelper(u),a.HmacSHA384=c._createHmacHelper(u),l.SHA384)},96018:function(e,t,n){var a;e.exports=(a=n(60095),n(2478),function(){var e=a,t=e.lib.Hasher,n=e.x64,r=n.Word,i=n.WordArray,s=e.algo;function o(){return r.create.apply(r,arguments)}var c=[o(1116352408,3609767458),o(1899447441,602891725),o(3049323471,3964484399),o(3921009573,2173295548),o(961987163,4081628472),o(1508970993,3053834265),o(2453635748,2937671579),o(2870763221,3664609560),o(3624381080,2734883394),o(310598401,1164996542),o(607225278,1323610764),o(1426881987,3590304994),o(1925078388,4068182383),o(2162078206,991336113),o(2614888103,633803317),o(3248222580,3479774868),o(3835390401,2666613458),o(4022224774,944711139),o(264347078,2341262773),o(604807628,2007800933),o(770255983,1495990901),o(1249150122,1856431235),o(1555081692,3175218132),o(1996064986,2198950837),o(2554220882,3999719339),o(2821834349,766784016),o(2952996808,2566594879),o(3210313671,3203337956),o(3336571891,1034457026),o(3584528711,2466948901),o(113926993,3758326383),o(338241895,168717936),o(666307205,1188179964),o(773529912,1546045734),o(1294757372,1522805485),o(1396182291,2643833823),o(1695183700,2343527390),o(1986661051,1014477480),o(2177026350,1206759142),o(2456956037,344077627),o(2730485921,1290863460),o(2820302411,3158454273),o(3259730800,3505952657),o(3345764771,106217008),o(3516065817,3606008344),o(3600352804,1432725776),o(4094571909,1467031594),o(275423344,851169720),o(430227734,3100823752),o(506948616,1363258195),o(659060556,3750685593),o(883997877,3785050280),o(958139571,3318307427),o(1322822218,3812723403),o(1537002063,2003034995),o(1747873779,3602036899),o(1955562222,1575990012),o(2024104815,1125592928),o(2227730452,2716904306),o(2361852424,442776044),o(2428436474,593698344),o(2756734187,3733110249),o(3204031479,2999351573),o(3329325298,3815920427),o(3391569614,3928383900),o(3515267271,566280711),o(3940187606,3454069534),o(4118630271,4000239992),o(116418474,1914138554),o(174292421,2731055270),o(289380356,3203993006),o(460393269,320620315),o(685471733,587496836),o(852142971,1086792851),o(1017036298,365543100),o(1126000580,2618297676),o(1288033470,3409855158),o(1501505948,4234509866),o(1607167915,987167468),o(1816402316,1246189591)],u=[];!function(){for(var e=0;e<80;e++)u[e]=o()}();var l=s.SHA512=t.extend({_doReset:function(){this._hash=new i.init([new r.init(1779033703,4089235720),new r.init(3144134277,2227873595),new r.init(1013904242,4271175723),new r.init(2773480762,1595750129),new r.init(1359893119,2917565137),new r.init(2600822924,725511199),new r.init(528734635,4215389547),new r.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,a=n[0],r=n[1],i=n[2],s=n[3],o=n[4],l=n[5],d=n[6],p=n[7],f=a.high,m=a.low,h=r.high,b=r.low,g=i.high,v=i.low,y=s.high,_=s.low,E=o.high,x=o.low,T=l.high,O=l.low,$=d.high,A=d.low,S=p.high,D=p.low,w=f,C=m,R=h,N=b,I=g,M=v,P=y,L=_,j=E,k=x,F=T,U=O,q=$,B=A,H=S,G=D,W=0;W<80;W++){var V,Y,z=u[W];if(W<16)Y=z.high=0|e[t+2*W],V=z.low=0|e[t+2*W+1];else{var K=u[W-15],Z=K.high,J=K.low,Q=(Z>>>1|J<<31)^(Z>>>8|J<<24)^Z>>>7,X=(J>>>1|Z<<31)^(J>>>8|Z<<24)^(J>>>7|Z<<25),ee=u[W-2],te=ee.high,ne=ee.low,ae=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,re=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),ie=u[W-7],se=ie.high,oe=ie.low,ce=u[W-16],ue=ce.high,le=ce.low;Y=(Y=(Y=Q+se+((V=X+oe)>>>0<X>>>0?1:0))+ae+((V+=re)>>>0<re>>>0?1:0))+ue+((V+=le)>>>0<le>>>0?1:0),z.high=Y,z.low=V}var de,pe=j&F^~j&q,fe=k&U^~k&B,me=w&R^w&I^R&I,he=C&N^C&M^N&M,be=(w>>>28|C<<4)^(w<<30|C>>>2)^(w<<25|C>>>7),ge=(C>>>28|w<<4)^(C<<30|w>>>2)^(C<<25|w>>>7),ve=(j>>>14|k<<18)^(j>>>18|k<<14)^(j<<23|k>>>9),ye=(k>>>14|j<<18)^(k>>>18|j<<14)^(k<<23|j>>>9),_e=c[W],Ee=_e.high,xe=_e.low,Te=H+ve+((de=G+ye)>>>0<G>>>0?1:0),Oe=ge+he;H=q,G=B,q=F,B=U,F=j,U=k,j=P+(Te=(Te=(Te=Te+pe+((de+=fe)>>>0<fe>>>0?1:0))+Ee+((de+=xe)>>>0<xe>>>0?1:0))+Y+((de+=V)>>>0<V>>>0?1:0))+((k=L+de|0)>>>0<L>>>0?1:0)|0,P=I,L=M,I=R,M=N,R=w,N=C,w=Te+(be+me+(Oe>>>0<ge>>>0?1:0))+((C=de+Oe|0)>>>0<de>>>0?1:0)|0}m=a.low=m+C,a.high=f+w+(m>>>0<C>>>0?1:0),b=r.low=b+N,r.high=h+R+(b>>>0<N>>>0?1:0),v=i.low=v+M,i.high=g+I+(v>>>0<M>>>0?1:0),_=s.low=_+L,s.high=y+P+(_>>>0<L>>>0?1:0),x=o.low=x+k,o.high=E+j+(x>>>0<k>>>0?1:0),O=l.low=O+U,l.high=T+F+(O>>>0<U>>>0?1:0),A=d.low=A+B,d.high=$+q+(A>>>0<B>>>0?1:0),D=p.low=D+G,p.high=S+H+(D>>>0<G>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,a=8*e.sigBytes;return t[a>>>5]|=128<<24-a%32,t[30+(a+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(a+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(l),e.HmacSHA512=t._createHmacHelper(l)}(),a.SHA512)},84902:function(e,t,n){var a;e.exports=(a=n(60095),n(81716),n(35478),n(35516),n(59947),function(){var e=a,t=e.lib,n=t.WordArray,r=t.BlockCipher,i=e.algo,s=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],o=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],l=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=i.DES=r.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;n<56;n++){var a=s[n]-1;t[n]=e[a>>>5]>>>31-a%32&1}for(var r=this._subKeys=[],i=0;i<16;i++){var u=r[i]=[],l=c[i];for(n=0;n<24;n++)u[n/6|0]|=t[(o[n]-1+l)%28]<<31-n%6,u[4+(n/6|0)]|=t[28+(o[n+24]-1+l)%28]<<31-n%6;for(u[0]=u[0]<<1|u[0]>>>31,n=1;n<7;n++)u[n]=u[n]>>>4*(n-1)+3;u[7]=u[7]<<5|u[7]>>>27}var d=this._invSubKeys=[];for(n=0;n<16;n++)d[n]=r[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],p.call(this,4,252645135),p.call(this,16,65535),f.call(this,2,858993459),f.call(this,8,16711935),p.call(this,1,1431655765);for(var a=0;a<16;a++){for(var r=n[a],i=this._lBlock,s=this._rBlock,o=0,c=0;c<8;c++)o|=u[c][((s^r[c])&l[c])>>>0];this._lBlock=s,this._rBlock=i^o}var d=this._lBlock;this._lBlock=this._rBlock,this._rBlock=d,p.call(this,1,1431655765),f.call(this,8,16711935),f.call(this,2,858993459),p.call(this,16,65535),p.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function p(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<<e}function f(e,t){var n=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<<e}e.DES=r._createHelper(d);var m=i.TripleDES=r.extend({_doReset:function(){var e=this._key.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var t=e.slice(0,2),a=e.length<4?e.slice(0,2):e.slice(2,4),r=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=d.createEncryptor(n.create(t)),this._des2=d.createEncryptor(n.create(a)),this._des3=d.createEncryptor(n.create(r))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=r._createHelper(m)}(),a.TripleDES)},2478:function(e,t,n){var a;e.exports=(a=n(60095),function(e){var t=a,n=t.lib,r=n.Base,i=n.WordArray,s=t.x64={};s.Word=r.extend({init:function(e,t){this.high=e,this.low=t}}),s.WordArray=r.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:8*t.length},toX32:function(){for(var e=this.words,t=e.length,n=[],a=0;a<t;a++){var r=e[a];n.push(r.high),n.push(r.low)}return i.create(n,this.sigBytes)},clone:function(){for(var e=r.clone.call(this),t=e.words=this.words.slice(0),n=t.length,a=0;a<n;a++)t[a]=t[a].clone();return e}})}(),a)},88057:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,n=36e5,a="millisecond",r="second",i="minute",s="hour",o="day",c="week",u="month",l="quarter",d="year",p="date",f="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},g=function(e,t,n){var a=String(e);return!a||a.length>=t?e:""+Array(t+1-a.length).join(n)+e},v={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),a=Math.floor(n/60),r=n%60;return(t<=0?"+":"-")+g(a,2,"0")+":"+g(r,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var a=12*(n.year()-t.year())+(n.month()-t.month()),r=t.clone().add(a,u),i=n-r<0,s=t.clone().add(a+(i?-1:1),u);return+(-(a+(n-r)/(i?r-s:s-r))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:u,y:d,w:c,d:o,D:p,h:s,m:i,s:r,ms:a,Q:l}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",_={};_[y]=b;var E="$isDayjsObject",x=function(e){return e instanceof A||!(!e||!e[E])},T=function e(t,n,a){var r;if(!t)return y;if("string"==typeof t){var i=t.toLowerCase();_[i]&&(r=i),n&&(_[i]=n,r=i);var s=t.split("-");if(!r&&s.length>1)return e(s[0])}else{var o=t.name;_[o]=t,r=o}return!a&&r&&(y=r),r||!a&&y},O=function(e,t){if(x(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new A(n)},$=v;$.l=T,$.i=x,$.w=function(e,t){return O(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var A=function(){function b(e){this.$L=T(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[E]=!0}var g=b.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if($.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var a=t.match(m);if(a){var r=a[2]-1||0,i=(a[7]||"0").substring(0,3);return n?new Date(Date.UTC(a[1],r,a[3]||1,a[4]||0,a[5]||0,a[6]||0,i)):new Date(a[1],r,a[3]||1,a[4]||0,a[5]||0,a[6]||0,i)}}return new Date(t)}(e),this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return $},g.isValid=function(){return!(this.$d.toString()===f)},g.isSame=function(e,t){var n=O(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return O(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<O(e)},g.$g=function(e,t,n){return $.u(e)?this[t]:this.set(n,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var n=this,a=!!$.u(t)||t,l=$.p(e),f=function(e,t){var r=$.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return a?r:r.endOf(o)},m=function(e,t){return $.w(n.toDate()[e].apply(n.toDate("s"),(a?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,b=this.$M,g=this.$D,v="set"+(this.$u?"UTC":"");switch(l){case d:return a?f(1,0):f(31,11);case u:return a?f(1,b):f(0,b+1);case c:var y=this.$locale().weekStart||0,_=(h<y?h+7:h)-y;return f(a?g-_:g+(6-_),b);case o:case p:return m(v+"Hours",0);case s:return m(v+"Minutes",1);case i:return m(v+"Seconds",2);case r:return m(v+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var n,c=$.p(e),l="set"+(this.$u?"UTC":""),f=(n={},n[o]=l+"Date",n[p]=l+"Date",n[u]=l+"Month",n[d]=l+"FullYear",n[s]=l+"Hours",n[i]=l+"Minutes",n[r]=l+"Seconds",n[a]=l+"Milliseconds",n)[c],m=c===o?this.$D+(t-this.$W):t;if(c===u||c===d){var h=this.clone().set(p,1);h.$d[f](m),h.init(),this.$d=h.set(p,Math.min(this.$D,h.daysInMonth())).$d}else f&&this.$d[f](m);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[$.p(e)]()},g.add=function(a,l){var p,f=this;a=Number(a);var m=$.p(l),h=function(e){var t=O(f);return $.w(t.date(t.date()+Math.round(e*a)),f)};if(m===u)return this.set(u,this.$M+a);if(m===d)return this.set(d,this.$y+a);if(m===o)return h(1);if(m===c)return h(7);var b=(p={},p[i]=t,p[s]=n,p[r]=e,p)[m]||1,g=this.$d.getTime()+a*b;return $.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||f;var a=e||"YYYY-MM-DDTHH:mm:ssZ",r=$.z(this),i=this.$H,s=this.$m,o=this.$M,c=n.weekdays,u=n.months,l=n.meridiem,d=function(e,n,r,i){return e&&(e[n]||e(t,a))||r[n].slice(0,i)},p=function(e){return $.s(i%12||12,e,"0")},m=l||function(e,t,n){var a=e<12?"AM":"PM";return n?a.toLowerCase():a};return a.replace(h,(function(e,a){return a||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return $.s(t.$y,4,"0");case"M":return o+1;case"MM":return $.s(o+1,2,"0");case"MMM":return d(n.monthsShort,o,u,3);case"MMMM":return d(u,o);case"D":return t.$D;case"DD":return $.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,c,2);case"ddd":return d(n.weekdaysShort,t.$W,c,3);case"dddd":return c[t.$W];case"H":return String(i);case"HH":return $.s(i,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return m(i,s,!0);case"A":return m(i,s,!1);case"m":return String(s);case"mm":return $.s(s,2,"0");case"s":return String(t.$s);case"ss":return $.s(t.$s,2,"0");case"SSS":return $.s(t.$ms,3,"0");case"Z":return r}return null}(e)||r.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(a,p,f){var m,h=this,b=$.p(p),g=O(a),v=(g.utcOffset()-this.utcOffset())*t,y=this-g,_=function(){return $.m(h,g)};switch(b){case d:m=_()/12;break;case u:m=_();break;case l:m=_()/3;break;case c:m=(y-v)/6048e5;break;case o:m=(y-v)/864e5;break;case s:m=y/n;break;case i:m=y/t;break;case r:m=y/e;break;default:m=y}return f?m:$.a(m)},g.daysInMonth=function(){return this.endOf(u).$D},g.$locale=function(){return _[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),a=T(e,t,!0);return a&&(n.$L=a),n},g.clone=function(){return $.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},b}(),S=A.prototype;return O.prototype=S,[["$ms",a],["$s",r],["$m",i],["$H",s],["$W",o],["$M",u],["$y",d],["$D",p]].forEach((function(e){S[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),O.extend=function(e,t){return e.$i||(e(t,A,O),e.$i=!0),O},O.locale=T,O.isDayjs=x,O.unix=function(e){return O(1e3*e)},O.en=_[y],O.Ls=_,O.p={},O}()},17829:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,a=/\d\d?/,r=/\d*[^-_:/,()\s\d]+/,i={},s=function(e){return(e=+e)+(e>68?1900:2e3)},o=function(e){return function(t){this[e]=+t}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],u=function(e){var t=i[e];return t&&(t.indexOf?t:t.s.concat(t.f))},l=function(e,t){var n,a=i.meridiem;if(a){for(var r=1;r<=24;r+=1)if(e.indexOf(a(r,0,t))>-1){n=r>12;break}}else n=e===(t?"pm":"PM");return n},d={A:[r,function(e){this.afternoon=l(e,!1)}],a:[r,function(e){this.afternoon=l(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[a,o("seconds")],ss:[a,o("seconds")],m:[a,o("minutes")],mm:[a,o("minutes")],H:[a,o("hours")],h:[a,o("hours")],HH:[a,o("hours")],hh:[a,o("hours")],D:[a,o("day")],DD:[n,o("day")],Do:[r,function(e){var t=i.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var a=1;a<=31;a+=1)t(a).replace(/\[|\]/g,"")===e&&(this.day=a)}],M:[a,o("month")],MM:[n,o("month")],MMM:[r,function(e){var t=u("months"),n=(u("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[r,function(e){var t=u("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,o("year")],YY:[n,function(e){this.year=s(e)}],YYYY:[/\d{4}/,o("year")],Z:c,ZZ:c};function p(n){var a,r;a=n,r=i&&i.formats;for(var s=(n=a.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,a){var i=a&&a.toUpperCase();return n||r[a]||e[a]||r[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),o=s.length,c=0;c<o;c+=1){var u=s[c],l=d[u],p=l&&l[0],f=l&&l[1];s[c]=f?{regex:p,parser:f}:u.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,a=0;n<o;n+=1){var r=s[n];if("string"==typeof r)a+=r.length;else{var i=r.regex,c=r.parser,u=e.slice(a),l=i.exec(u)[0];c.call(t,l),e=e.replace(l,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var a=t.prototype,r=a.parse;a.parse=function(e){var t=e.date,a=e.utc,s=e.args;this.$u=a;var o=s[1];if("string"==typeof o){var c=!0===s[2],u=!0===s[3],l=c||u,d=s[2];u&&(d=s[2]),i=this.$locale(),!c&&d&&(i=n.Ls[d]),this.$d=function(e,t,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var a=p(t)(e),r=a.year,i=a.month,s=a.day,o=a.hours,c=a.minutes,u=a.seconds,l=a.milliseconds,d=a.zone,f=new Date,m=s||(r||i?1:f.getDate()),h=r||f.getFullYear(),b=0;r&&!i||(b=i>0?i-1:f.getMonth());var g=o||0,v=c||0,y=u||0,_=l||0;return d?new Date(Date.UTC(h,b,m,g,v,y,_+60*d.offset*1e3)):n?new Date(Date.UTC(h,b,m,g,v,y,_)):new Date(h,b,m,g,v,y,_)}catch(e){return new Date("")}}(t,o,a),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),l&&t!=this.format(o)&&(this.$d=new Date("")),i={}}else if(o instanceof Array)for(var f=o.length,m=1;m<=f;m+=1){s[1]=o[m-1];var h=n.apply(this,s);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}m===f&&(this.$d=new Date(""))}else r.call(this,e)}}}()},35642:function(e){e.exports=function(){"use strict";var e,t,n=1e3,a=6e4,r=36e5,i=864e5,s=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,o=31536e6,c=2628e6,u=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,l={years:o,months:c,days:i,hours:r,minutes:a,seconds:n,milliseconds:1,weeks:6048e5},d=function(e){return e instanceof v},p=function(e,t,n){return new v(e,n,t.$l)},f=function(e){return t.p(e)+"s"},m=function(e){return e<0},h=function(e){return m(e)?Math.ceil(e):Math.floor(e)},b=function(e){return Math.abs(e)},g=function(e,t){return e?m(e)?{negative:!0,format:""+b(e)+t}:{negative:!1,format:""+e+t}:{negative:!1,format:""}},v=function(){function m(e,t,n){var a=this;if(this.$d={},this.$l=n,void 0===e&&(this.$ms=0,this.parseFromMilliseconds()),t)return p(e*l[f(t)],this);if("number"==typeof e)return this.$ms=e,this.parseFromMilliseconds(),this;if("object"==typeof e)return Object.keys(e).forEach((function(t){a.$d[f(t)]=e[t]})),this.calMilliseconds(),this;if("string"==typeof e){var r=e.match(u);if(r){var i=r.slice(2).map((function(e){return null!=e?Number(e):0}));return this.$d.years=i[0],this.$d.months=i[1],this.$d.weeks=i[2],this.$d.days=i[3],this.$d.hours=i[4],this.$d.minutes=i[5],this.$d.seconds=i[6],this.calMilliseconds(),this}}return this}var b=m.prototype;return b.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce((function(t,n){return t+(e.$d[n]||0)*l[n]}),0)},b.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=h(e/o),e%=o,this.$d.months=h(e/c),e%=c,this.$d.days=h(e/i),e%=i,this.$d.hours=h(e/r),e%=r,this.$d.minutes=h(e/a),e%=a,this.$d.seconds=h(e/n),e%=n,this.$d.milliseconds=e},b.toISOString=function(){var e=g(this.$d.years,"Y"),t=g(this.$d.months,"M"),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var a=g(n,"D"),r=g(this.$d.hours,"H"),i=g(this.$d.minutes,"M"),s=this.$d.seconds||0;this.$d.milliseconds&&(s+=this.$d.milliseconds/1e3,s=Math.round(1e3*s)/1e3);var o=g(s,"S"),c=e.negative||t.negative||a.negative||r.negative||i.negative||o.negative,u=r.format||i.format||o.format?"T":"",l=(c?"-":"")+"P"+e.format+t.format+a.format+u+r.format+i.format+o.format;return"P"===l||"-P"===l?"P0D":l},b.toJSON=function(){return this.toISOString()},b.format=function(e){var n=e||"YYYY-MM-DDTHH:mm:ss",a={Y:this.$d.years,YY:t.s(this.$d.years,2,"0"),YYYY:t.s(this.$d.years,4,"0"),M:this.$d.months,MM:t.s(this.$d.months,2,"0"),D:this.$d.days,DD:t.s(this.$d.days,2,"0"),H:this.$d.hours,HH:t.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,"0"),SSS:t.s(this.$d.milliseconds,3,"0")};return n.replace(s,(function(e,t){return t||String(a[e])}))},b.as=function(e){return this.$ms/l[f(e)]},b.get=function(e){var t=this.$ms,n=f(e);return"milliseconds"===n?t%=1e3:t="weeks"===n?h(t/l[n]):this.$d[n],t||0},b.add=function(e,t,n){var a;return a=t?e*l[f(t)]:d(e)?e.$ms:p(e,this).$ms,p(this.$ms+a*(n?-1:1),this)},b.subtract=function(e,t){return this.add(e,t,!0)},b.locale=function(e){var t=this.clone();return t.$l=e,t},b.clone=function(){return p(this.$ms,this)},b.humanize=function(t){return e().add(this.$ms,"ms").locale(this.$l).fromNow(!t)},b.valueOf=function(){return this.asMilliseconds()},b.milliseconds=function(){return this.get("milliseconds")},b.asMilliseconds=function(){return this.as("milliseconds")},b.seconds=function(){return this.get("seconds")},b.asSeconds=function(){return this.as("seconds")},b.minutes=function(){return this.get("minutes")},b.asMinutes=function(){return this.as("minutes")},b.hours=function(){return this.get("hours")},b.asHours=function(){return this.as("hours")},b.days=function(){return this.get("days")},b.asDays=function(){return this.as("days")},b.weeks=function(){return this.get("weeks")},b.asWeeks=function(){return this.as("weeks")},b.months=function(){return this.get("months")},b.asMonths=function(){return this.as("months")},b.years=function(){return this.get("years")},b.asYears=function(){return this.as("years")},m}(),y=function(e,t,n){return e.add(t.years()*n,"y").add(t.months()*n,"M").add(t.days()*n,"d").add(t.hours()*n,"h").add(t.minutes()*n,"m").add(t.seconds()*n,"s").add(t.milliseconds()*n,"ms")};return function(n,a,r){e=r,t=r().$utils(),r.duration=function(e,t){var n=r.locale();return p(e,{$l:n},t)},r.isDuration=d;var i=a.prototype.add,s=a.prototype.subtract;a.prototype.add=function(e,t){return d(e)?y(this,e,1):i.bind(this)(e,t)},a.prototype.subtract=function(e,t){return d(e)?y(this,e,-1):s.bind(this)(e,t)}}}()},79791:function(e){e.exports=function(){"use strict";return function(e,t,n){e=e||{};var a=t.prototype,r={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function i(e,t,n,r){return a.fromToBase(e,t,n,r)}n.en.relativeTime=r,a.fromToBase=function(t,a,i,s,o){for(var c,u,l,d=i.$locale().relativeTime||r,p=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],f=p.length,m=0;m<f;m+=1){var h=p[m];h.d&&(c=s?n(t).diff(i,h.d,!0):i.diff(t,h.d,!0));var b=(e.rounding||Math.round)(Math.abs(c));if(l=c>0,b<=h.r||!h.r){b<=1&&m>0&&(h=p[m-1]);var g=d[h.l];o&&(b=o(""+b)),u="string"==typeof g?g.replace("%d",b):g(b,a,h.l,l);break}}if(a)return u;var v=l?d.future:d.past;return"function"==typeof v?v(u):v.replace("%s",u)},a.to=function(e,t){return i(e,t,this,!0)},a.from=function(e,t){return i(e,t,this)};var s=function(e){return e.$u?n.utc():n()};a.toNow=function(e){return this.to(s(this),e)},a.fromNow=function(e){return this.from(s(this),e)}}}()},9841:function(e){e.exports=function(){"use strict";var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(n,a,r){var i,s=function(e,n,a){void 0===a&&(a={});var r=new Date(e),i=function(e,n){void 0===n&&(n={});var a=n.timeZoneName||"short",r=e+"|"+a,i=t[r];return i||(i=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:a}),t[r]=i),i}(n,a);return i.formatToParts(r)},o=function(t,n){for(var a=s(t,n),i=[],o=0;o<a.length;o+=1){var c=a[o],u=c.type,l=c.value,d=e[u];d>=0&&(i[d]=parseInt(l,10))}var p=i[3],f=24===p?0:p,m=i[0]+"-"+i[1]+"-"+i[2]+" "+f+":"+i[4]+":"+i[5]+":000",h=+t;return(r.utc(m).valueOf()-(h-=h%1e3))/6e4},c=a.prototype;c.tz=function(e,t){void 0===e&&(e=i);var n,a=this.utcOffset(),s=this.toDate(),o=s.toLocaleString("en-US",{timeZone:e}),c=Math.round((s-new Date(o))/1e3/60),u=15*-Math.round(s.getTimezoneOffset()/15)-c;if(Number(u)){if(n=r(o,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(u,!0),t){var l=n.utcOffset();n=n.add(a-l,"minute")}}else n=this.utcOffset(0,t);return n.$x.$timezone=e,n},c.offsetName=function(e){var t=this.$x.$timezone||r.tz.guess(),n=s(this.valueOf(),t,{timeZoneName:e}).find((function(e){return"timezonename"===e.type.toLowerCase()}));return n&&n.value};var u=c.startOf;c.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return u.call(this,e,t);var n=r(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return u.call(n,e,t).tz(this.$x.$timezone,!0)},r.tz=function(e,t,n){var a=n&&t,s=n||t||i,c=o(+r(),s);if("string"!=typeof e)return r(e).tz(s);var u=function(e,t,n){var a=e-60*t*1e3,r=o(a,n);if(t===r)return[a,t];var i=o(a-=60*(r-t)*1e3,n);return r===i?[a,r]:[e-60*Math.min(r,i)*1e3,Math.max(r,i)]}(r.utc(e,a).valueOf(),c,s),l=u[0],d=u[1],p=r(l).utcOffset(d);return p.$x.$timezone=s,p},r.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},r.tz.setDefault=function(e){i=e}}}()},97642:function(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(a,r,i){var s=r.prototype;i.utc=function(e){return new r({date:e,utc:!0,args:arguments})},s.utc=function(t){var n=i(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},s.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var o=s.parse;s.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),o.call(this,e)};var c=s.init;s.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else c.call(this)};var u=s.utcOffset;s.utcOffset=function(a,r){var i=this.$utils().u;if(i(a))return this.$u?0:i(this.$offset)?u.call(this):this.$offset;if("string"==typeof a&&(a=function(e){void 0===e&&(e="");var a=e.match(t);if(!a)return null;var r=(""+a[0]).match(n)||["-",0,0],i=r[0],s=60*+r[1]+ +r[2];return 0===s?0:"+"===i?s:-s}(a),null===a))return this;var s=Math.abs(a)<=16?60*a:a,o=this;if(r)return o.$offset=s,o.$u=0===a,o;if(0!==a){var c=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(o=this.local().add(s+c,e)).$offset=s,o.$x.$localOffset=c}else o=this.utc();return o};var l=s.format;s.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return l.call(this,t)},s.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},s.isUTC=function(){return!!this.$u},s.toISOString=function(){return this.toDate().toISOString()},s.toString=function(){return this.toDate().toUTCString()};var d=s.toDate;s.toDate=function(e){return"s"===e&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var p=s.diff;s.diff=function(e,t,n){if(e&&this.$u===e.$u)return p.call(this,e,t,n);var a=this.local(),r=i(e).local();return p.call(a,r,t,n)}}}()},83970:function(e){e.exports=function(){"use strict";return function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,n=this.$W,a=(n<t?n+7:n)-t;return this.$utils().u(e)?a:this.subtract(a,"day").add(e,"day")}}}()},44923:(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 a=0,r=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(a++,"%c"===e&&(r=a))})),t.splice(r,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")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return 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;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&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$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(18950)(t);const{formatters:a}=e.exports;a.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},18950:(e,t,n)=>{e.exports=function(e){function t(e){let n,r,i,s=null;function o(...e){if(!o.enabled)return;const a=o,r=Number(new Date),i=r-(n||r);a.diff=i,a.prev=n,a.curr=r,n=r,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,r)=>{if("%%"===n)return"%";s++;const i=t.formatters[r];if("function"==typeof i){const t=e[s];n=i.call(a,t),e.splice(s,1),s--}return n})),t.formatArgs.call(a,e);(a.log||t.log).apply(a,e)}return o.namespace=e,o.useColors=t.useColors(),o.color=t.selectColor(e),o.extend=a,o.destroy=t.destroy,Object.defineProperty(o,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(r!==t.namespaces&&(r=t.namespaces,i=t.enabled(e)),i),set:e=>{s=e}}),"function"==typeof t.init&&t.init(o),o}function a(e,n){const a=t(this.namespace+(void 0===n?":":n)+e);return a.log=this.log,a}function r(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(r),...t.skips.map(r).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const a=("string"==typeof e?e:"").split(/[\s,]+/),r=a.length;for(n=0;n<r;n++)a[n]&&("-"===(e=a[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,a;for(n=0,a=t.skips.length;n<a;n++)if(t.skips[n].test(e))return!1;for(n=0,a=t.names.length;n<a;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(97821),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}},64935:(e,t,n)=>{"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?e.exports=n(44923):e.exports=n(28471)},28471:(e,t,n)=>{const a=n(52018),r=n(39023);t.init=function(e){e.inspectOpts={};const n=Object.keys(t.inspectOpts);for(let a=0;a<n.length;a++)e.inspectOpts[n[a]]=t.inspectOpts[n[a]]},t.log=function(...e){return process.stderr.write(r.format(...e)+"\n")},t.formatArgs=function(n){const{namespace:a,useColors:r}=this;if(r){const t=this.color,r="[3"+(t<8?t:"8;5;"+t),i=` ${r};1m${a} `;n[0]=i+n[0].split("\n").join("\n"+i),n.push(r+"m+"+e.exports.humanize(this.diff)+"")}else n[0]=function(){if(t.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+a+" "+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):a.isatty(process.stderr.fd)},t.destroy=r.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(11754);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 a=process.env[t];return a=!!/^(yes|on|true|enabled)$/i.test(a)||!/^(no|off|false|disabled)$/i.test(a)&&("null"===a?null:Number(a)),e[n]=a,e}),{}),e.exports=n(18950)(t);const{formatters:i}=e.exports;i.o=function(e){return this.inspectOpts.colors=this.useColors,r.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")},i.O=function(e){return this.inspectOpts.colors=this.useColors,r.inspect(e,this.inspectOpts)}},59366:(e,t,n)=>{var a=n(2203).Stream,r=n(39023);function i(){this.source=null,this.dataSize=0,this.maxDataSize=1048576,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}e.exports=i,r.inherits(i,a),i.create=function(e,t){var n=new this;for(var a in t=t||{})n[a]=t[a];n.source=e;var r=e.emit;return e.emit=function(){return n._handleEmit(arguments),r.apply(e,arguments)},e.on("error",(function(){})),n.pauseStream&&e.pause(),n},Object.defineProperty(i.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}}),i.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)},i.prototype.resume=function(){this._released||this.release(),this.source.resume()},i.prototype.pause=function(){this.source.pause()},i.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]},i.prototype.pipe=function(){var e=a.prototype.pipe.apply(this,arguments);return this.resume(),e},i.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))},i.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))}}},44511:(e,t,n)=>{"use strict";const{anyMap:a,producersMap:r,eventsMap:i}=n(68792),s=Symbol("anyProducer"),o=Promise.resolve(),c=Symbol("listenerAdded"),u=Symbol("listenerRemoved");let l=!1,d=!1;function p(e){if("string"!=typeof e&&"symbol"!=typeof e&&"number"!=typeof e)throw new TypeError("`eventName` must be a string, symbol, or number")}function f(e){if("function"!=typeof e)throw new TypeError("listener must be a function")}function m(e,t){const n=i.get(e);if(n.has(t))return n.get(t)}function h(e,t){const n="string"==typeof t||"symbol"==typeof t||"number"==typeof t?t:s,a=r.get(e);if(a.has(n))return a.get(n)}function b(e,t){t=Array.isArray(t)?t:[t];let n=!1,a=()=>{},i=[];const s={enqueue(e){i.push(e),a()},finish(){n=!0,a()}};for(const n of t){let t=h(e,n);if(!t){t=new Set;r.get(e).set(n,t)}t.add(s)}return{async next(){return i?0===i.length?n?(i=void 0,this.next()):(await new Promise((e=>{a=e})),this.next()):{done:!1,value:await i.shift()}:{done:!0}},async return(n){i=void 0;for(const n of t){const t=h(e,n);if(t&&(t.delete(s),0===t.size)){r.get(e).delete(n)}}return a(),arguments.length>0?{done:!0,value:await n}:{done:!0}},[Symbol.asyncIterator](){return this}}}function g(e){if(void 0===e)return E;if(!Array.isArray(e))throw new TypeError("`methodNames` must be an array of strings");for(const t of e)if(!E.includes(t)){if("string"!=typeof t)throw new TypeError("`methodNames` element must be a string");throw new Error(`${t} is not Emittery method`)}return e}const v=e=>e===c||e===u;function y(e,t,n){if(v(t))try{l=!0,e.emit(t,n)}finally{l=!1}}class _{static mixin(e,t){return t=g(t),n=>{if("function"!=typeof n)throw new TypeError("`target` must be function");for(const e of t)if(void 0!==n.prototype[e])throw new Error(`The property \`${e}\` already exists on \`target\``);Object.defineProperty(n.prototype,e,{enumerable:!1,get:function(){return Object.defineProperty(this,e,{enumerable:!1,value:new _}),this[e]}});const a=t=>function(...n){return this[e][t](...n)};for(const e of t)Object.defineProperty(n.prototype,e,{enumerable:!1,value:a(e)});return n}}static get isDebugEnabled(){if("object"!=typeof process)return d;const{env:e}=process||{env:{}};return"emittery"===e.DEBUG||"*"===e.DEBUG||d}static set isDebugEnabled(e){d=e}constructor(e={}){a.set(this,new Set),i.set(this,new Map),r.set(this,new Map),r.get(this).set(s,new Set),this.debug=e.debug||{},void 0===this.debug.enabled&&(this.debug.enabled=!1),this.debug.logger||(this.debug.logger=(e,t,n,a)=>{try{a=JSON.stringify(a)}catch{a=`Object with the following keys failed to stringify: ${Object.keys(a).join(",")}`}"symbol"!=typeof n&&"number"!=typeof n||(n=n.toString());const r=new Date,i=`${r.getHours()}:${r.getMinutes()}:${r.getSeconds()}.${r.getMilliseconds()}`;console.log(`[${i}][emittery:${e}][${t}] Event Name: ${n}\n\tdata: ${a}`)})}logIfDebugEnabled(e,t,n){(_.isDebugEnabled||this.debug.enabled)&&this.debug.logger(e,this.debug.name,t,n)}on(e,t){f(t),e=Array.isArray(e)?e:[e];for(const n of e){p(n);let e=m(this,n);if(!e){e=new Set;i.get(this).set(n,e)}e.add(t),this.logIfDebugEnabled("subscribe",n,void 0),v(n)||y(this,c,{eventName:n,listener:t})}return this.off.bind(this,e,t)}off(e,t){f(t),e=Array.isArray(e)?e:[e];for(const n of e){p(n);const e=m(this,n);if(e&&(e.delete(t),0===e.size)){i.get(this).delete(n)}this.logIfDebugEnabled("unsubscribe",n,void 0),v(n)||y(this,u,{eventName:n,listener:t})}}once(e){let t;const n=new Promise((n=>{t=this.on(e,(e=>{t(),n(e)}))}));return n.off=t,n}events(e){e=Array.isArray(e)?e:[e];for(const t of e)p(t);return b(this,e)}async emit(e,t){if(p(e),v(e)&&!l)throw new TypeError("`eventName` cannot be meta event `listenerAdded` or `listenerRemoved`");this.logIfDebugEnabled("emit",e,t),function(e,t,n){const a=r.get(e);if(a.has(t))for(const e of a.get(t))e.enqueue(n);if(a.has(s)){const e=Promise.all([t,n]);for(const t of a.get(s))t.enqueue(e)}}(this,e,t);const n=m(this,e)||new Set,i=a.get(this),c=[...n],u=v(e)?[]:[...i];await o,await Promise.all([...c.map((async e=>{if(n.has(e))return e(t)})),...u.map((async n=>{if(i.has(n))return n(e,t)}))])}async emitSerial(e,t){if(p(e),v(e)&&!l)throw new TypeError("`eventName` cannot be meta event `listenerAdded` or `listenerRemoved`");this.logIfDebugEnabled("emitSerial",e,t);const n=m(this,e)||new Set,r=a.get(this),i=[...n],s=[...r];await o;for(const e of i)n.has(e)&&await e(t);for(const n of s)r.has(n)&&await n(e,t)}onAny(e){return f(e),this.logIfDebugEnabled("subscribeAny",void 0,void 0),a.get(this).add(e),y(this,c,{listener:e}),this.offAny.bind(this,e)}anyEvent(){return b(this)}offAny(e){f(e),this.logIfDebugEnabled("unsubscribeAny",void 0,void 0),y(this,u,{listener:e}),a.get(this).delete(e)}clearListeners(e){e=Array.isArray(e)?e:[e];for(const t of e)if(this.logIfDebugEnabled("clear",t,void 0),"string"==typeof t||"symbol"==typeof t||"number"==typeof t){const e=m(this,t);e&&e.clear();const n=h(this,t);if(n){for(const e of n)e.finish();n.clear()}}else{a.get(this).clear();for(const[e,t]of i.get(this).entries())t.clear(),i.get(this).delete(e);for(const[e,t]of r.get(this).entries()){for(const e of t)e.finish();t.clear(),r.get(this).delete(e)}}}listenerCount(e){e=Array.isArray(e)?e:[e];let t=0;for(const n of e)if("string"!=typeof n){void 0!==n&&p(n),t+=a.get(this).size;for(const e of i.get(this).values())t+=e.size;for(const e of r.get(this).values())t+=e.size}else t+=a.get(this).size+(m(this,n)||new Set).size+(h(this,n)||new Set).size+(h(this)||new Set).size;return t}bindMethods(e,t){if("object"!=typeof e||null===e)throw new TypeError("`target` must be an object");t=g(t);for(const n of t){if(void 0!==e[n])throw new Error(`The property \`${n}\` already exists on \`target\``);Object.defineProperty(e,n,{enumerable:!1,value:this[n].bind(this)})}}}const E=Object.getOwnPropertyNames(_.prototype).filter((e=>"constructor"!==e));Object.defineProperty(_,"listenerAdded",{value:c,writable:!1,enumerable:!0,configurable:!1}),Object.defineProperty(_,"listenerRemoved",{value:u,writable:!1,enumerable:!0,configurable:!1}),e.exports=_},68792:e=>{const t=new WeakMap,n=new WeakMap,a=new WeakMap;e.exports={anyMap:t,eventsMap:n,producersMap:a}},86102:e=>{"use strict";e.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}},12097:(e,t,n)=>{var a;e=n.nmd(e),function(){"use strict";var r;try{r="undefined"!=typeof Intl&&void 0!==Intl.Collator?Intl.Collator("generic",{sensitivity:"base"}):null}catch(e){console.log("Collator could not be initialized and wouldn't be used")}var i=[],s=[],o={get:function(e,t,n){var a,o,c,u,l,d,p=n&&r&&n.useCollator,f=e.length,m=t.length;if(0===f)return m;if(0===m)return f;for(c=0;c<m;++c)i[c]=c,s[c]=t.charCodeAt(c);if(i[m]=m,p)for(c=0;c<f;++c){for(o=c+1,u=0;u<m;++u)a=o,d=0===r.compare(e.charAt(c),String.fromCharCode(s[u])),(o=i[u]+(d?0:1))>(l=a+1)&&(o=l),o>(l=i[u+1]+1)&&(o=l),i[u]=a;i[u]=o}else for(c=0;c<f;++c){for(o=c+1,u=0;u<m;++u)a=o,d=e.charCodeAt(c)===s[u],(o=i[u]+(d?0:1))>(l=a+1)&&(o=l),o>(l=i[u+1]+1)&&(o=l),i[u]=a;i[u]=o}return o}};null!==n.amdD&&n.amdO?void 0===(a=function(){return o}.call(t,n,t,e))||(e.exports=a):null!==e&&void 0!==t&&e.exports===t?e.exports=o:"undefined"!=typeof self&&"function"==typeof self.postMessage&&"function"==typeof self.importScripts?self.Levenshtein=o:"undefined"!=typeof window&&null!==window&&(window.Levenshtein=o)}()},2499:(e,t,n)=>{var a;e.exports=function(){if(!a){try{a=n(64935)("follow-redirects")}catch(e){}"function"!=typeof a&&(a=function(){})}a.apply(null,arguments)}},1404:(e,t,n)=>{var a=n(87016),r=a.URL,i=n(58611),s=n(65692),o=n(2203).Writable,c=n(42613),u=n(2499),l=!1;try{c(new r)}catch(e){l="ERR_INVALID_URL"===e.code}var d=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],p=["abort","aborted","connect","error","socket","timeout"],f=Object.create(null);p.forEach((function(e){f[e]=function(t,n,a){this._redirectable.emit(e,t,n,a)}}));var m=S("ERR_INVALID_URL","Invalid URL",TypeError),h=S("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),b=S("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",h),g=S("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),v=S("ERR_STREAM_WRITE_AFTER_END","write after end"),y=o.prototype.destroy||x;function _(e,t){o.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 h?e:new h({cause:e}))}},this._performRequest()}function E(e){var t={maxRedirects:21,maxBodyLength:10485760},n={};return Object.keys(e).forEach((function(a){var i=a+":",s=n[i]=e[a],o=t[a]=Object.create(s);Object.defineProperties(o,{request:{value:function(e,a,s){var o;return o=e,r&&o instanceof r?e=$(e):w(e)?e=$(T(e)):(s=a,a=O(e),e={protocol:i}),C(a)&&(s=a,a=null),(a=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,a)).nativeProtocols=n,w(a.host)||w(a.hostname)||(a.hostname="::1"),c.equal(a.protocol,i,"protocol mismatch"),u("options",a),new _(a,s)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,n){var a=o.request(e,t,n);return a.end(),a},configurable:!0,enumerable:!0,writable:!0}})})),t}function x(){}function T(e){var t;if(l)t=new r(e);else if(!w((t=O(a.parse(e))).protocol))throw new m({input:e});return t}function O(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new m({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new m({input:e.href||e});return e}function $(e,t){var n=t||{};for(var a of d)n[a]=e[a];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 A(e,t){var n;for(var a in t)e.test(a)&&(n=t[a],delete t[a]);return null==n?void 0:String(n).trim()}function S(e,t,n){function a(n){Error.captureStackTrace(this,this.constructor),Object.assign(this,n||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return a.prototype=new(n||Error),Object.defineProperties(a.prototype,{constructor:{value:a,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),a}function D(e,t){for(var n of p)e.removeListener(n,f[n]);e.on("error",x),e.destroy(t)}function w(e){return"string"==typeof e||e instanceof String}function C(e){return"function"==typeof e}_.prototype=Object.create(o.prototype),_.prototype.abort=function(){D(this._currentRequest),this._currentRequest.abort(),this.emit("abort")},_.prototype.destroy=function(e){return D(this._currentRequest,e),y.call(this,e),this},_.prototype.write=function(e,t,n){if(this._ending)throw new v;if(!w(e)&&("object"!=typeof(a=e)||!("length"in a)))throw new TypeError("data should be a string, Buffer or Uint8Array");var a;C(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 g),this.abort()):n&&n()},_.prototype.end=function(e,t,n){if(C(e)?(n=e,e=t=null):C(t)&&(n=t,t=null),e){var a=this,r=this._currentRequest;this.write(e,t,(function(){a._ended=!0,r.end(null,null,n)})),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,n)},_.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},_.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},_.prototype.setTimeout=function(e,t){var n=this;function a(t){t.setTimeout(e),t.removeListener("timeout",t.destroy),t.addListener("timeout",t.destroy)}function r(t){n._timeout&&clearTimeout(n._timeout),n._timeout=setTimeout((function(){n.emit("timeout"),i()}),e),a(t)}function i(){n._timeout&&(clearTimeout(n._timeout),n._timeout=null),n.removeListener("abort",i),n.removeListener("error",i),n.removeListener("response",i),n.removeListener("close",i),t&&n.removeListener("timeout",t),n.socket||n._currentRequest.removeListener("socket",r)}return t&&this.on("timeout",t),this.socket?r(this.socket):this._currentRequest.once("socket",r),this.on("socket",a),this.on("abort",i),this.on("error",i),this.on("response",i),this.on("close",i),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){_.prototype[e]=function(t,n){return this._currentRequest[e](t,n)}})),["aborted","connection","socket"].forEach((function(e){Object.defineProperty(_.prototype,e,{get:function(){return this._currentRequest[e]}})})),_.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))}},_.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,p))r.on(i,f[i]);if(this._currentUrl=/^\//.test(this._options.path)?a.format(this._options):this._options.path,this._isRedirect){var s=0,o=this,c=this._requestBodyBuffers;!function e(t){if(r===o._currentRequest)if(t)o.emit("error",t);else if(s<c.length){var n=c[s++];r.finished||r.write(n.data,n.encoding,e)}else o._ended&&r.end()}()}},_.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var n,i=e.headers.location;if(!i||!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(D(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new b;var s=this._options.beforeRedirect;s&&(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=[],A(/^content-/i,this._options.headers));var d,p,f=A(/^host$/i,this._options.headers),m=T(this._currentUrl),h=f||m.host,g=/^\w+:/.test(i)?this._currentUrl:a.format(Object.assign(m,{host:h})),v=(d=i,p=g,l?new r(d,p):T(a.resolve(p,d)));if(u("redirecting to",v.href),this._isRedirect=!0,$(v,this._options),(v.protocol!==m.protocol&&"https:"!==v.protocol||v.host!==h&&!function(e,t){c(w(e)&&w(t));var n=e.length-t.length-1;return n>0&&"."===e[n]&&e.endsWith(t)}(v.host,h))&&A(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),C(s)){var y={headers:e.headers,statusCode:t},_={url:g,method:o,headers:n};s(this._options,y,_),this._sanitizeOptions(this._options)}this._performRequest()},e.exports=E({http:i,https:s}),e.exports.wrap=E},78455:(e,t,n)=>{var a=n(50135),r=n(39023),i=n(16928),s=n(58611),o=n(65692),c=n(87016).parse,u=n(79896),l=n(2203).Stream,d=n(82829),p=n(58146),f=n(59872);function m(e){if(!(this instanceof m))return new m(e);for(var t in this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],a.call(this),e=e||{})this[t]=e[t]}e.exports=m,r.inherits(m,a),m.LINE_BREAK="\r\n",m.DEFAULT_CONTENT_TYPE="application/octet-stream",m.prototype.append=function(e,t,n){"string"==typeof(n=n||{})&&(n={filename:n});var i=a.prototype.append.bind(this);if("number"==typeof t&&(t=""+t),r.isArray(t))this._error(new Error("Arrays are not supported."));else{var s=this._multiPartHeader(e,t,n),o=this._multiPartFooter();i(s),i(t),i(o),this._trackLength(s,t,n)}},m.prototype._trackLength=function(e,t,n){var a=0;null!=n.knownLength?a+=+n.knownLength:Buffer.isBuffer(t)?a=t.length:"string"==typeof t&&(a=Buffer.byteLength(t)),this._valueLength+=a,this._overheadLength+=Buffer.byteLength(e)+m.LINE_BREAK.length,t&&(t.path||t.readable&&t.hasOwnProperty("httpVersion")||t instanceof l)&&(n.knownLength||this._valuesToMeasure.push(t))},m.prototype._lengthRetriever=function(e,t){e.hasOwnProperty("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,a){var r;n?t(n):(r=a.size-(e.start?e.start:0),t(null,r))})):e.hasOwnProperty("httpVersion")?t(null,+e.headers["content-length"]):e.hasOwnProperty("httpModule")?(e.on("response",(function(n){e.pause(),t(null,+n.headers["content-length"])})),e.resume()):t("Unknown stream")},m.prototype._multiPartHeader=function(e,t,n){if("string"==typeof n.header)return n.header;var a,r=this._getContentDisposition(t,n),i=this._getContentType(t,n),s="",o={"Content-Disposition":["form-data",'name="'+e+'"'].concat(r||[]),"Content-Type":[].concat(i||[])};for(var c in"object"==typeof n.header&&f(o,n.header),o)o.hasOwnProperty(c)&&null!=(a=o[c])&&(Array.isArray(a)||(a=[a]),a.length&&(s+=c+": "+a.join("; ")+m.LINE_BREAK));return"--"+this.getBoundary()+m.LINE_BREAK+s+m.LINE_BREAK},m.prototype._getContentDisposition=function(e,t){var n,a;return"string"==typeof t.filepath?n=i.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e.name||e.path?n=i.basename(t.filename||e.name||e.path):e.readable&&e.hasOwnProperty("httpVersion")&&(n=i.basename(e.client._httpMessage.path||"")),n&&(a='filename="'+n+'"'),a},m.prototype._getContentType=function(e,t){var n=t.contentType;return!n&&e.name&&(n=d.lookup(e.name)),!n&&e.path&&(n=d.lookup(e.path)),!n&&e.readable&&e.hasOwnProperty("httpVersion")&&(n=e.headers["content-type"]),n||!t.filepath&&!t.filename||(n=d.lookup(t.filepath||t.filename)),n||"object"!=typeof e||(n=m.DEFAULT_CONTENT_TYPE),n},m.prototype._multiPartFooter=function(){return function(e){var t=m.LINE_BREAK;0===this._streams.length&&(t+=this._lastBoundary()),e(t)}.bind(this)},m.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+m.LINE_BREAK},m.prototype.getHeaders=function(e){var t,n={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)e.hasOwnProperty(t)&&(n[t.toLowerCase()]=e[t]);return n},m.prototype.setBoundary=function(e){this._boundary=e},m.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},m.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),n=0,a=this._streams.length;n<a;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(m.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])},m.prototype._generateBoundary=function(){for(var e="--------------------------",t=0;t<24;t++)e+=Math.floor(10*Math.random()).toString(16);this._boundary=e},m.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},m.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e},m.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;this._streams.length&&(t+=this._lastBoundary().length),this._valuesToMeasure.length?p.parallel(this._valuesToMeasure,this._lengthRetriever,(function(n,a){n?e(n):(a.forEach((function(e){t+=e})),e(null,t))})):process.nextTick(e.bind(this,null,t))},m.prototype.submit=function(e,t){var n,a,r={method:"post"};return"string"==typeof e?(e=c(e),a=f({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},r)):(a=f(e,r)).port||(a.port="https:"==a.protocol?443:80),a.headers=this.getHeaders(e.headers),n="https:"==a.protocol?o.request(a):s.request(a),this.getLength(function(e,a){if(e&&"Unknown stream"!==e)this._error(e);else if(a&&n.setHeader("Content-Length",a),this.pipe(n),t){var r,i=function(e,a){return n.removeListener("error",i),n.removeListener("response",r),t.call(this,e,a)};r=i.bind(this,null),n.on("error",i),n.on("response",r)}}.bind(this)),n},m.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))},m.prototype.toString=function(){return"[object FormData]"}},59872:e=>{e.exports=function(e,t){return Object.keys(t).forEach((function(n){e[n]=e[n]||t[n]})),e}},58359:e=>{"use strict";e.exports=function(e){if(null===e||"object"!=typeof e)return e;if(e instanceof Object)var n={__proto__:t(e)};else n=Object.create(null);return Object.getOwnPropertyNames(e).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})),n};var t=Object.getPrototypeOf||function(e){return e.__proto__}},70627:(e,t,n)=>{var a,r,i=n(79896),s=n(58254),o=n(60111),c=n(58359),u=n(39023);function l(e,t){Object.defineProperty(e,a,{get:function(){return t}})}"function"==typeof Symbol&&"function"==typeof Symbol.for?(a=Symbol.for("graceful-fs.queue"),r=Symbol.for("graceful-fs.previous")):(a="___graceful-fs.queue",r="___graceful-fs.previous");var d,p=function(){};if(u.debuglog?p=u.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(p=function(){var e=u.format.apply(u,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: "),console.error(e)}),!i[a]){var f=global[a]||[];l(i,f),i.close=function(e){function t(t,n){return e.call(i,t,(function(e){e||b(),"function"==typeof n&&n.apply(this,arguments)}))}return Object.defineProperty(t,r,{value:e}),t}(i.close),i.closeSync=function(e){function t(t){e.apply(i,arguments),b()}return Object.defineProperty(t,r,{value:e}),t}(i.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",(function(){p(i[a]),n(42613).equal(i[a].length,0)}))}function m(e){s(e),e.gracefulify=m,e.createReadStream=function(t,n){return new e.ReadStream(t,n)},e.createWriteStream=function(t,n){return new e.WriteStream(t,n)};var t=e.readFile;e.readFile=function(e,n,a){"function"==typeof n&&(a=n,n=null);return function e(n,a,r,i){return t(n,a,(function(t){!t||"EMFILE"!==t.code&&"ENFILE"!==t.code?"function"==typeof r&&r.apply(this,arguments):h([e,[n,a,r],t,i||Date.now(),Date.now()])}))}(e,n,a)};var n=e.writeFile;e.writeFile=function(e,t,a,r){"function"==typeof a&&(r=a,a=null);return function e(t,a,r,i,s){return n(t,a,r,(function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?"function"==typeof i&&i.apply(this,arguments):h([e,[t,a,r,i],n,s||Date.now(),Date.now()])}))}(e,t,a,r)};var a=e.appendFile;a&&(e.appendFile=function(e,t,n,r){"function"==typeof n&&(r=n,n=null);return function e(t,n,r,i,s){return a(t,n,r,(function(a){!a||"EMFILE"!==a.code&&"ENFILE"!==a.code?"function"==typeof i&&i.apply(this,arguments):h([e,[t,n,r,i],a,s||Date.now(),Date.now()])}))}(e,t,n,r)});var r=e.copyFile;r&&(e.copyFile=function(e,t,n,a){"function"==typeof n&&(a=n,n=0);return function e(t,n,a,i,s){return r(t,n,a,(function(r){!r||"EMFILE"!==r.code&&"ENFILE"!==r.code?"function"==typeof i&&i.apply(this,arguments):h([e,[t,n,a,i],r,s||Date.now(),Date.now()])}))}(e,t,n,a)});var i=e.readdir;e.readdir=function(e,t,n){"function"==typeof t&&(n=t,t=null);var a=c.test(process.version)?function(e,t,n,a){return i(e,r(e,t,n,a))}:function(e,t,n,a){return i(e,t,r(e,t,n,a))};return a(e,t,n);function r(e,t,n,r){return function(i,s){!i||"EMFILE"!==i.code&&"ENFILE"!==i.code?(s&&s.sort&&s.sort(),"function"==typeof n&&n.call(this,i,s)):h([a,[e,t,n],i,r||Date.now(),Date.now()])}}};var c=/^v[0-5]\./;if("v0.8"===process.version.substr(0,4)){var u=o(e);b=u.ReadStream,g=u.WriteStream}var l=e.ReadStream;l&&(b.prototype=Object.create(l.prototype),b.prototype.open=function(){var e=this;y(e.path,e.flags,e.mode,(function(t,n){t?(e.autoClose&&e.destroy(),e.emit("error",t)):(e.fd=n,e.emit("open",n),e.read())}))});var d=e.WriteStream;d&&(g.prototype=Object.create(d.prototype),g.prototype.open=function(){var e=this;y(e.path,e.flags,e.mode,(function(t,n){t?(e.destroy(),e.emit("error",t)):(e.fd=n,e.emit("open",n))}))}),Object.defineProperty(e,"ReadStream",{get:function(){return b},set:function(e){b=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return g},set:function(e){g=e},enumerable:!0,configurable:!0});var p=b;Object.defineProperty(e,"FileReadStream",{get:function(){return p},set:function(e){p=e},enumerable:!0,configurable:!0});var f=g;function b(e,t){return this instanceof b?(l.apply(this,arguments),this):b.apply(Object.create(b.prototype),arguments)}function g(e,t){return this instanceof g?(d.apply(this,arguments),this):g.apply(Object.create(g.prototype),arguments)}Object.defineProperty(e,"FileWriteStream",{get:function(){return f},set:function(e){f=e},enumerable:!0,configurable:!0});var v=e.open;function y(e,t,n,a){return"function"==typeof n&&(a=n,n=null),function e(t,n,a,r,i){return v(t,n,a,(function(s,o){!s||"EMFILE"!==s.code&&"ENFILE"!==s.code?"function"==typeof r&&r.apply(this,arguments):h([e,[t,n,a,r],s,i||Date.now(),Date.now()])}))}(e,t,n,a)}return e.open=y,e}function h(e){p("ENQUEUE",e[0].name,e[1]),i[a].push(e),g()}function b(){for(var e=Date.now(),t=0;t<i[a].length;++t)i[a][t].length>2&&(i[a][t][3]=e,i[a][t][4]=e);g()}function g(){if(clearTimeout(d),d=void 0,0!==i[a].length){var e=i[a].shift(),t=e[0],n=e[1],r=e[2],s=e[3],o=e[4];if(void 0===s)p("RETRY",t.name,n),t.apply(null,n);else if(Date.now()-s>=6e4){p("TIMEOUT",t.name,n);var c=n.pop();"function"==typeof c&&c.call(null,r)}else{var u=Date.now()-o,l=Math.max(o-s,1);u>=Math.min(1.2*l,100)?(p("RETRY",t.name,n),t.apply(null,n.concat([s]))):i[a].push(e)}void 0===d&&(d=setTimeout(g,0))}}global[a]||l(global,i[a]),e.exports=m(c(i)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!i.__patched&&(e.exports=m(i),i.__patched=!0)},60111:(e,t,n)=>{var a=n(2203).Stream;e.exports=function(e){return{ReadStream:function t(n,r){if(!(this instanceof t))return new t(n,r);a.call(this);var i=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,r=r||{};for(var s=Object.keys(r),o=0,c=s.length;o<c;o++){var u=s[o];this[u]=r[u]}this.encoding&&this.setEncoding(this.encoding);if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(void 0===this.end)this.end=1/0;else if("number"!=typeof this.end)throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(null!==this.fd)return void process.nextTick((function(){i._read()}));e.open(this.path,this.flags,this.mode,(function(e,t){if(e)return i.emit("error",e),void(i.readable=!1);i.fd=t,i.emit("open",t),i._read()}))},WriteStream:function t(n,r){if(!(this instanceof t))return new t(n,r);a.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,r=r||{};for(var i=Object.keys(r),s=0,o=i.length;s<o;s++){var c=i[s];this[c]=r[c]}if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],null===this.fd&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}},58254:(e,t,n)=>{var a=n(49140),r=process.cwd,i=null,s=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return i||(i=r.call(process)),i};try{process.cwd()}catch(e){}if("function"==typeof process.chdir){var o=process.chdir;process.chdir=function(e){i=null,o.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,o)}e.exports=function(e){a.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(e){e.lchmod=function(t,n,r){e.open(t,a.O_WRONLY|a.O_SYMLINK,n,(function(t,a){t?r&&r(t):e.fchmod(a,n,(function(t){e.close(a,(function(e){r&&r(t||e)}))}))}))},e.lchmodSync=function(t,n){var r,i=e.openSync(t,a.O_WRONLY|a.O_SYMLINK,n),s=!0;try{r=e.fchmodSync(i,n),s=!1}finally{if(s)try{e.closeSync(i)}catch(e){}else e.closeSync(i)}return r}}(e);e.lutimes||function(e){a.hasOwnProperty("O_SYMLINK")&&e.futimes?(e.lutimes=function(t,n,r,i){e.open(t,a.O_SYMLINK,(function(t,a){t?i&&i(t):e.futimes(a,n,r,(function(t){e.close(a,(function(e){i&&i(t||e)}))}))}))},e.lutimesSync=function(t,n,r){var i,s=e.openSync(t,a.O_SYMLINK),o=!0;try{i=e.futimesSync(s,n,r),o=!1}finally{if(o)try{e.closeSync(s)}catch(e){}else e.closeSync(s)}return i}):e.futimes&&(e.lutimes=function(e,t,n,a){a&&process.nextTick(a)},e.lutimesSync=function(){})}(e);e.chown=r(e.chown),e.fchown=r(e.fchown),e.lchown=r(e.lchown),e.chmod=t(e.chmod),e.fchmod=t(e.fchmod),e.lchmod=t(e.lchmod),e.chownSync=i(e.chownSync),e.fchownSync=i(e.fchownSync),e.lchownSync=i(e.lchownSync),e.chmodSync=n(e.chmodSync),e.fchmodSync=n(e.fchmodSync),e.lchmodSync=n(e.lchmodSync),e.stat=o(e.stat),e.fstat=o(e.fstat),e.lstat=o(e.lstat),e.statSync=c(e.statSync),e.fstatSync=c(e.fstatSync),e.lstatSync=c(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(e,t,n){n&&process.nextTick(n)},e.lchmodSync=function(){});e.chown&&!e.lchown&&(e.lchown=function(e,t,n,a){a&&process.nextTick(a)},e.lchownSync=function(){});"win32"===s&&(e.rename="function"!=typeof e.rename?e.rename:function(t){function n(n,a,r){var i=Date.now(),s=0;t(n,a,(function o(c){if(c&&("EACCES"===c.code||"EPERM"===c.code||"EBUSY"===c.code)&&Date.now()-i<6e4)return setTimeout((function(){e.stat(a,(function(e,i){e&&"ENOENT"===e.code?t(n,a,o):r(c)}))}),s),void(s<100&&(s+=10));r&&r(c)}))}return Object.setPrototypeOf&&Object.setPrototypeOf(n,t),n}(e.rename));function t(t){return t?function(n,a,r){return t.call(e,n,a,(function(e){u(e)&&(e=null),r&&r.apply(this,arguments)}))}:t}function n(t){return t?function(n,a){try{return t.call(e,n,a)}catch(e){if(!u(e))throw e}}:t}function r(t){return t?function(n,a,r,i){return t.call(e,n,a,r,(function(e){u(e)&&(e=null),i&&i.apply(this,arguments)}))}:t}function i(t){return t?function(n,a,r){try{return t.call(e,n,a,r)}catch(e){if(!u(e))throw e}}:t}function o(t){return t?function(n,a,r){function i(e,t){t&&(t.uid<0&&(t.uid+=4294967296),t.gid<0&&(t.gid+=4294967296)),r&&r.apply(this,arguments)}return"function"==typeof a&&(r=a,a=null),a?t.call(e,n,a,i):t.call(e,n,i)}:t}function c(t){return t?function(n,a){var r=a?t.call(e,n,a):t.call(e,n);return r&&(r.uid<0&&(r.uid+=4294967296),r.gid<0&&(r.gid+=4294967296)),r}:t}function u(e){return!e||("ENOSYS"===e.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code))}e.read="function"!=typeof e.read?e.read:function(t){function n(n,a,r,i,s,o){var c;if(o&&"function"==typeof o){var u=0;c=function(l,d,p){if(l&&"EAGAIN"===l.code&&u<10)return u++,t.call(e,n,a,r,i,s,c);o.apply(this,arguments)}}return t.call(e,n,a,r,i,s,c)}return Object.setPrototypeOf&&Object.setPrototypeOf(n,t),n}(e.read),e.readSync="function"!=typeof e.readSync?e.readSync:(l=e.readSync,function(t,n,a,r,i){for(var s=0;;)try{return l.call(e,t,n,a,r,i)}catch(e){if("EAGAIN"===e.code&&s<10){s++;continue}throw e}});var l}},54891:e=>{"use strict";e.exports=(e,t)=>{t=t||process.argv;const n=e.startsWith("-")?"":1===e.length?"-":"--",a=t.indexOf(n+e),r=t.indexOf("--");return-1!==a&&(-1===r||a<r)}},50910:e=>{"use strict";e.exports=(e,t=process.argv)=>{const n=e.startsWith("-")?"":1===e.length?"-":"--",a=t.indexOf(n+e),r=t.indexOf("--");return-1!==a&&(-1===r||a<r)}},54181:(e,t,n)=>{"use strict";const a=n(79896);let r;e.exports=()=>(void 0===r&&(r=function(){try{return a.statSync("/.dockerenv"),!0}catch(e){return!1}}()||function(){try{return a.readFileSync("/proc/self/cgroup","utf8").includes("docker")}catch(e){return!1}}()),r)},29807:e=>{"use strict";const t=e=>!Number.isNaN(e)&&(e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141));e.exports=t,e.exports.default=t},29766:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.ConcatIterator=class{constructor(e){this.toConcat=e}next(){if(0===this.toConcat.length)return{done:!0};const e=this.toConcat[0].next();return e.done?(this.toConcat.shift(),this.next()):e}}},5204:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.FilterIterator=class{constructor(e,t){this.source=e,this.predicate=t}next(){let e;do{e=this.source.next()}while(!e.done&&!this.predicate(e.value));return e}}},52522:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(93849);t.FlattenIterator=class{constructor(e){this.outer=e}next(){if(this.inner){const e=this.inner.next();if(!e.done)return e;this.inner=void 0}const{value:e,done:t}=this.outer.next();return a.isIterable(e)?(this.inner=e[Symbol.iterator](),this.next()):{value:e,done:t}}}},95392:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(34878);t.iterate=a.iterate,t.zip=a.zip,t.default=a.iterate},34878:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(29766),r=n(5204),i=n(52522),s=n(94090),o=n(8674),c=n(93849),u=n(7027);class l{constructor(e){this.source=e}next(){return this.source.next()}[Symbol.iterator](){return this}map(e){return new l(new s.MapIterator(this.source,e))}filter(e){return new l(new r.FilterIterator(this.source,e))}concat(e){return new l(new a.ConcatIterator([this.source,c.toIterator(e)]))}take(e){return new l(new o.SliceIterator(this.source,0,e+1))}drop(e){return new l(new o.SliceIterator(this.source,e,1/0))}slice(e,t=1/0){return new l(new o.SliceIterator(this.source,e,t))}flatten(){return new l(new i.FlattenIterator(this.source))}reduce(e,t){let n;if(void 0===t){if(n=this.source.next(),n.done)throw new TypeError("Reduce of empty Iterator with no initial value");t=n.value}for(;n=this.source.next(),!n.done;)t=e(t,n.value);return t}find(e){let t;for(;;){if(t=this.source.next(),t.done)return;if(e(t.value))return t.value}}includes(e){let t;do{if(t=this.source.next(),!t.done&&t.value===e)return!0}while(!t.done);return!1}some(e){let t;do{if(t=this.source.next(),!t.done&&e(t.value))return!0}while(!t.done);return!1}every(e){let t;do{if(t=this.source.next(),!t.done&&!e(t.value))return!1}while(!t.done);return!0}forEach(e){let t;for(;t=this.source.next(),!t.done;)e(t.value)}join(e=","){let t,n="";for(;t=this.source.next(),!t.done;)n+=e+t.value;return n.substr(e.length)}toArray(){return Array.from(this)}toSet(){const e=new Set;for(;;){const{value:t,done:n}=this.next();if(n)return e;e.add(t)}}toMap(){return new Map(this)}}function d(e){return new l(c.toIterator(e))}t.IteratorWithOperators=l,t.iterate=d,t.zip=function(e,t){return new l(new u.ZipIterator(c.toIterator(e),c.toIterator(t)))},t.default=d},94090:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.MapIterator=class{constructor(e,t){this.source=e,this.iteratee=t}next(){const{value:e,done:t}=this.source.next();return{value:!t&&this.iteratee(e),done:t}}}},8674:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.SliceIterator=class{constructor(e,t,n=1/0){this.source=e,this.start=t,this.end=n,this.i=0}next(){for(;this.i<this.start;){const e=this.source.next();if(e.done)return e;this.i++}return this.i++,this.i>=this.end?{done:!0}:this.source.next()}}},93849:(e,t)=>{"use strict";function n(e){return"object"==typeof e&&null!==e&&"function"==typeof e.next}function a(e){return"object"==typeof e&&null!==e&&"function"==typeof e[Symbol.iterator]}Object.defineProperty(t,"__esModule",{value:!0}),t.isIterator=n,t.isIterable=a,t.toIterator=function(e){if(n(e))return e;if(a(e))return e[Symbol.iterator]();throw new Error("Passed collection is neither an Iterator nor an Iterable")}},7027:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.ZipIterator=class{constructor(e,t){this.a=e,this.b=t}next(){const e=this.a.next();if(e.done)return{done:!0};const t=this.b.next();return t.done?{done:!0}:{value:[e.value,t.value],done:!1}}}},98843:(e,t,n)=>{let a;try{a=n(70627)}catch(e){a=n(79896)}const r=n(19964),{stringify:i,stripBom:s}=n(90374);const o={readFile:r.fromPromise((async function(e,t={}){"string"==typeof t&&(t={encoding:t});const n=t.fs||a,i=!("throws"in t)||t.throws;let o,c=await r.fromCallback(n.readFile)(e,t);c=s(c);try{o=JSON.parse(c,t?t.reviver:null)}catch(t){if(i)throw t.message=`${e}: ${t.message}`,t;return null}return o})),readFileSync:function(e,t={}){"string"==typeof t&&(t={encoding:t});const n=t.fs||a,r=!("throws"in t)||t.throws;try{let a=n.readFileSync(e,t);return a=s(a),JSON.parse(a,t.reviver)}catch(t){if(r)throw t.message=`${e}: ${t.message}`,t;return null}},writeFile:r.fromPromise((async function(e,t,n={}){const s=n.fs||a,o=i(t,n);await r.fromCallback(s.writeFile)(e,o,n)})),writeFileSync:function(e,t,n={}){const r=n.fs||a,s=i(t,n);return r.writeFileSync(e,s,n)}};e.exports=o},90374:e=>{e.exports={stringify:function(e,{EOL:t="\n",finalEOL:n=!0,replacer:a=null,spaces:r}={}){const i=n?t:"";return JSON.stringify(e,a,r).replace(/\n/g,t)+i},stripBom:function(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}}},16171:(e,t,n)=>{var a=n(34671)(n(30714),"DataView");e.exports=a},36766:(e,t,n)=>{var a=n(62405),r=n(68341),i=n(39644),s=n(53784),o=n(46264);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}c.prototype.clear=a,c.prototype.delete=r,c.prototype.get=i,c.prototype.has=s,c.prototype.set=o,e.exports=c},21022:(e,t,n)=>{var a=n(6821),r=n(7221),i=n(21596),s=n(91992),o=n(10552);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}c.prototype.clear=a,c.prototype.delete=r,c.prototype.get=i,c.prototype.has=s,c.prototype.set=o,e.exports=c},75870:(e,t,n)=>{var a=n(34671)(n(30714),"Map");e.exports=a},68910:(e,t,n)=>{var a=n(54069),r=n(97477),i=n(50476),s=n(30984),o=n(4136);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}c.prototype.clear=a,c.prototype.delete=r,c.prototype.get=i,c.prototype.has=s,c.prototype.set=o,e.exports=c},84665:(e,t,n)=>{var a=n(34671)(n(30714),"Promise");e.exports=a},39612:(e,t,n)=>{var a=n(34671)(n(30714),"Set");e.exports=a},32312:(e,t,n)=>{var a=n(68910),r=n(61945),i=n(34874);function s(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new a;++t<n;)this.add(e[t])}s.prototype.add=s.prototype.push=r,s.prototype.has=i,e.exports=s},47216:(e,t,n)=>{var a=n(21022),r=n(45331),i=n(57063),s=n(90134),o=n(9842),c=n(17469);function u(e){var t=this.__data__=new a(e);this.size=t.size}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=s,u.prototype.has=o,u.prototype.set=c,e.exports=u},59006:(e,t,n)=>{var a=n(30714).Symbol;e.exports=a},88851:(e,t,n)=>{var a=n(30714).Uint8Array;e.exports=a},98154:(e,t,n)=>{var a=n(34671)(n(30714),"WeakMap");e.exports=a},52995:e=>{e.exports=function(e,t){for(var n=-1,a=null==e?0:e.length,r=0,i=[];++n<a;){var s=e[n];t(s,n,e)&&(i[r++]=s)}return i}},89754:(e,t,n)=>{var a=n(59605),r=n(50079),i=n(25874),s=n(83601),o=n(61908),c=n(39046),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),l=!n&&r(e),d=!n&&!l&&s(e),p=!n&&!l&&!d&&c(e),f=n||l||d||p,m=f?a(e.length,String):[],h=m.length;for(var b in e)!t&&!u.call(e,b)||f&&("length"==b||d&&("offset"==b||"parent"==b)||p&&("buffer"==b||"byteLength"==b||"byteOffset"==b)||o(b,h))||m.push(b);return m}},2275:e=>{e.exports=function(e,t){for(var n=-1,a=null==e?0:e.length,r=Array(a);++n<a;)r[n]=t(e[n],n,e);return r}},82525:e=>{e.exports=function(e,t){for(var n=-1,a=t.length,r=e.length;++n<a;)e[r+n]=t[n];return e}},73525:e=>{e.exports=function(e,t){for(var n=-1,a=null==e?0:e.length;++n<a;)if(t(e[n],n,e))return!0;return!1}},9438:(e,t,n)=>{var a=n(55097);e.exports=function(e,t){for(var n=e.length;n--;)if(a(e[n][0],t))return n;return-1}},93077:(e,t,n)=>{var a=n(24856);e.exports=function(e,t,n){"__proto__"==t&&a?a(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},70166:e=>{e.exports=function(e,t,n,a){for(var r=e.length,i=n+(a?1:-1);a?i--:++i<r;)if(t(e[i],i,e))return i;return-1}},19128:(e,t,n)=>{var a=n(23600)();e.exports=a},57702:(e,t,n)=>{var a=n(19128),r=n(3511);e.exports=function(e,t){return e&&a(e,t,r)}},51855:(e,t,n)=>{var a=n(20330),r=n(39628);e.exports=function(e,t){for(var n=0,i=(t=a(t,e)).length;null!=e&&n<i;)e=e[r(t[n++])];return n&&n==i?e:void 0}},25920:(e,t,n)=>{var a=n(82525),r=n(25874);e.exports=function(e,t,n){var i=t(e);return r(e)?i:a(i,n(e))}},95271:(e,t,n)=>{var a=n(59006),r=n(99650),i=n(56881),s=a?a.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?r(e):i(e)}},85088:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},94047:(e,t,n)=>{var a=n(95271),r=n(77583);e.exports=function(e){return r(e)&&"[object Arguments]"==a(e)}},3899:(e,t,n)=>{var a=n(38309),r=n(77583);e.exports=function e(t,n,i,s,o){return t===n||(null==t||null==n||!r(t)&&!r(n)?t!=t&&n!=n:a(t,n,i,s,e,o))}},38309:(e,t,n)=>{var a=n(47216),r=n(93522),i=n(49481),s=n(28370),o=n(29778),c=n(25874),u=n(83601),l=n(39046),d="[object Arguments]",p="[object Array]",f="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,h,b,g){var v=c(e),y=c(t),_=v?p:o(e),E=y?p:o(t),x=(_=_==d?f:_)==f,T=(E=E==d?f:E)==f,O=_==E;if(O&&u(e)){if(!u(t))return!1;v=!0,x=!1}if(O&&!x)return g||(g=new a),v||l(e)?r(e,t,n,h,b,g):i(e,t,_,n,h,b,g);if(!(1&n)){var $=x&&m.call(e,"__wrapped__"),A=T&&m.call(t,"__wrapped__");if($||A){var S=$?e.value():e,D=A?t.value():t;return g||(g=new a),b(S,D,n,h,g)}}return!!O&&(g||(g=new a),s(e,t,n,h,b,g))}},14014:(e,t,n)=>{var a=n(47216),r=n(3899);e.exports=function(e,t,n,i){var s=n.length,o=s,c=!i;if(null==e)return!o;for(e=Object(e);s--;){var u=n[s];if(c&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++s<o;){var l=(u=n[s])[0],d=e[l],p=u[1];if(c&&u[2]){if(void 0===d&&!(l in e))return!1}else{var f=new a;if(i)var m=i(d,p,l,e,t,f);if(!(void 0===m?r(p,d,3,i,f):m))return!1}}return!0}},24228:(e,t,n)=>{var a=n(27787),r=n(97827),i=n(99400),s=n(40462),o=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,d=u.hasOwnProperty,p=RegExp("^"+l.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||r(e))&&(a(e)?p:o).test(s(e))}},40550:(e,t,n)=>{var a=n(95271),r=n(44583),i=n(77583),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&r(e.length)&&!!s[a(e)]}},4506:(e,t,n)=>{var a=n(86330),r=n(52363),i=n(9169),s=n(25874),o=n(86830);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?s(e)?r(e[0],e[1]):a(e):o(e)}},35351:(e,t,n)=>{var a=n(37894),r=n(82325),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!a(e))return r(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},86330:(e,t,n)=>{var a=n(14014),r=n(96539),i=n(37316);e.exports=function(e){var t=r(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||a(n,e,t)}}},52363:(e,t,n)=>{var a=n(3899),r=n(75887),i=n(74016),s=n(80759),o=n(7223),c=n(37316),u=n(39628);e.exports=function(e,t){return s(e)&&o(t)?c(u(e),t):function(n){var s=r(n,e);return void 0===s&&s===t?i(n,e):a(t,s,3)}}},88494:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},3644:(e,t,n)=>{var a=n(51855);e.exports=function(e){return function(t){return a(t,e)}}},59605:e=>{e.exports=function(e,t){for(var n=-1,a=Array(e);++n<e;)a[n]=t(n);return a}},38071:(e,t,n)=>{var a=n(59006),r=n(2275),i=n(25874),s=n(40975),o=a?a.prototype:void 0,c=o?o.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return r(t,e)+"";if(s(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n}},85103:(e,t,n)=>{var a=n(74997),r=/^\s+/;e.exports=function(e){return e?e.slice(0,a(e)+1).replace(r,""):e}},98232:e=>{e.exports=function(e){return function(t){return e(t)}}},65420:e=>{e.exports=function(e,t){return e.has(t)}},20330:(e,t,n)=>{var a=n(25874),r=n(80759),i=n(69505),s=n(60983);e.exports=function(e,t){return a(e)?e:r(e,t)?[e]:i(s(e))}},46450:(e,t,n)=>{var a=n(30714)["__core-js_shared__"];e.exports=a},23600:e=>{e.exports=function(e){return function(t,n,a){for(var r=-1,i=Object(t),s=a(t),o=s.length;o--;){var c=s[e?o:++r];if(!1===n(i[c],c,i))break}return t}}},66057:(e,t,n)=>{var a=n(4506),r=n(73069),i=n(3511);e.exports=function(e){return function(t,n,s){var o=Object(t);if(!r(t)){var c=a(n,3);t=i(t),n=function(e){return c(o[e],e,o)}}var u=e(t,n,s);return u>-1?o[c?t[u]:u]:void 0}}},24856:(e,t,n)=>{var a=n(34671),r=function(){try{var e=a(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=r},93522:(e,t,n)=>{var a=n(32312),r=n(73525),i=n(65420);e.exports=function(e,t,n,s,o,c){var u=1&n,l=e.length,d=t.length;if(l!=d&&!(u&&d>l))return!1;var p=c.get(e),f=c.get(t);if(p&&f)return p==t&&f==e;var m=-1,h=!0,b=2&n?new a:void 0;for(c.set(e,t),c.set(t,e);++m<l;){var g=e[m],v=t[m];if(s)var y=u?s(v,g,m,t,e,c):s(g,v,m,e,t,c);if(void 0!==y){if(y)continue;h=!1;break}if(b){if(!r(t,(function(e,t){if(!i(b,t)&&(g===e||o(g,e,n,s,c)))return b.push(t)}))){h=!1;break}}else if(g!==v&&!o(g,v,n,s,c)){h=!1;break}}return c.delete(e),c.delete(t),h}},49481:(e,t,n)=>{var a=n(59006),r=n(88851),i=n(55097),s=n(93522),o=n(38866),c=n(36968),u=a?a.prototype:void 0,l=u?u.valueOf:void 0;e.exports=function(e,t,n,a,u,d,p){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new r(e),new r(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var f=o;case"[object Set]":var m=1&a;if(f||(f=c),e.size!=t.size&&!m)return!1;var h=p.get(e);if(h)return h==t;a|=2,p.set(e,t);var b=s(f(e),f(t),a,u,d,p);return p.delete(e),b;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},28370:(e,t,n)=>{var a=n(92573),r=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,s,o){var c=1&n,u=a(e),l=u.length;if(l!=a(t).length&&!c)return!1;for(var d=l;d--;){var p=u[d];if(!(c?p in t:r.call(t,p)))return!1}var f=o.get(e),m=o.get(t);if(f&&m)return f==t&&m==e;var h=!0;o.set(e,t),o.set(t,e);for(var b=c;++d<l;){var g=e[p=u[d]],v=t[p];if(i)var y=c?i(v,g,p,t,e,o):i(g,v,p,e,t,o);if(!(void 0===y?g===v||s(g,v,n,i,o):y)){h=!1;break}b||(b="constructor"==p)}if(h&&!b){var _=e.constructor,E=t.constructor;_==E||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof E&&E instanceof E||(h=!1)}return o.delete(e),o.delete(t),h}},11603:e=>{var t="object"==typeof global&&global&&global.Object===Object&&global;e.exports=t},92573:(e,t,n)=>{var a=n(25920),r=n(19183),i=n(3511);e.exports=function(e){return a(e,i,r)}},31200:(e,t,n)=>{var a=n(50095);e.exports=function(e,t){var n=e.__data__;return a(t)?n["string"==typeof t?"string":"hash"]:n.map}},96539:(e,t,n)=>{var a=n(7223),r=n(3511);e.exports=function(e){for(var t=r(e),n=t.length;n--;){var i=t[n],s=e[i];t[n]=[i,s,a(s)]}return t}},34671:(e,t,n)=>{var a=n(24228),r=n(97559);e.exports=function(e,t){var n=r(e,t);return a(n)?n:void 0}},99650:(e,t,n)=>{var a=n(59006),r=Object.prototype,i=r.hasOwnProperty,s=r.toString,o=a?a.toStringTag:void 0;e.exports=function(e){var t=i.call(e,o),n=e[o];try{e[o]=void 0;var a=!0}catch(e){}var r=s.call(e);return a&&(t?e[o]=n:delete e[o]),r}},19183:(e,t,n)=>{var a=n(52995),r=n(92982),i=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,o=s?function(e){return null==e?[]:(e=Object(e),a(s(e),(function(t){return i.call(e,t)})))}:r;e.exports=o},29778:(e,t,n)=>{var a=n(16171),r=n(75870),i=n(84665),s=n(39612),o=n(98154),c=n(95271),u=n(40462),l="[object Map]",d="[object Promise]",p="[object Set]",f="[object WeakMap]",m="[object DataView]",h=u(a),b=u(r),g=u(i),v=u(s),y=u(o),_=c;(a&&_(new a(new ArrayBuffer(1)))!=m||r&&_(new r)!=l||i&&_(i.resolve())!=d||s&&_(new s)!=p||o&&_(new o)!=f)&&(_=function(e){var t=c(e),n="[object Object]"==t?e.constructor:void 0,a=n?u(n):"";if(a)switch(a){case h:return m;case b:return l;case g:return d;case v:return p;case y:return f}return t}),e.exports=_},97559:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},99663:(e,t,n)=>{var a=n(20330),r=n(50079),i=n(25874),s=n(61908),o=n(44583),c=n(39628);e.exports=function(e,t,n){for(var u=-1,l=(t=a(t,e)).length,d=!1;++u<l;){var p=c(t[u]);if(!(d=null!=e&&n(e,p)))break;e=e[p]}return d||++u!=l?d:!!(l=null==e?0:e.length)&&o(l)&&s(p,l)&&(i(e)||r(e))}},62405:(e,t,n)=>{var a=n(68637);e.exports=function(){this.__data__=a?a(null):{},this.size=0}},68341:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},39644:(e,t,n)=>{var a=n(68637),r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(a){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return r.call(t,e)?t[e]:void 0}},53784:(e,t,n)=>{var a=n(68637),r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return a?void 0!==t[e]:r.call(t,e)}},46264:(e,t,n)=>{var a=n(68637);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=a&&void 0===t?"__lodash_hash_undefined__":t,this}},61908:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var a=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==a||"symbol"!=a&&t.test(e))&&e>-1&&e%1==0&&e<n}},80759:(e,t,n)=>{var a=n(25874),r=n(40975),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=function(e,t){if(a(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!r(e))||(s.test(e)||!i.test(e)||null!=t&&e in Object(t))}},50095:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},97827:(e,t,n)=>{var a,r=n(46450),i=(a=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+a:"";e.exports=function(e){return!!i&&i in e}},37894:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},7223:(e,t,n)=>{var a=n(99400);e.exports=function(e){return e==e&&!a(e)}},6821:e=>{e.exports=function(){this.__data__=[],this.size=0}},7221:(e,t,n)=>{var a=n(9438),r=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=a(t,e);return!(n<0)&&(n==t.length-1?t.pop():r.call(t,n,1),--this.size,!0)}},21596:(e,t,n)=>{var a=n(9438);e.exports=function(e){var t=this.__data__,n=a(t,e);return n<0?void 0:t[n][1]}},91992:(e,t,n)=>{var a=n(9438);e.exports=function(e){return a(this.__data__,e)>-1}},10552:(e,t,n)=>{var a=n(9438);e.exports=function(e,t){var n=this.__data__,r=a(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}},54069:(e,t,n)=>{var a=n(36766),r=n(21022),i=n(75870);e.exports=function(){this.size=0,this.__data__={hash:new a,map:new(i||r),string:new a}}},97477:(e,t,n)=>{var a=n(31200);e.exports=function(e){var t=a(this,e).delete(e);return this.size-=t?1:0,t}},50476:(e,t,n)=>{var a=n(31200);e.exports=function(e){return a(this,e).get(e)}},30984:(e,t,n)=>{var a=n(31200);e.exports=function(e){return a(this,e).has(e)}},4136:(e,t,n)=>{var a=n(31200);e.exports=function(e,t){var n=a(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}},38866:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,a){n[++t]=[a,e]})),n}},37316:e=>{e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},82121:(e,t,n)=>{var a=n(68487);e.exports=function(e){var t=a(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},68637:(e,t,n)=>{var a=n(34671)(Object,"create");e.exports=a},82325:(e,t,n)=>{var a=n(78546)(Object.keys,Object);e.exports=a},96574:(e,t,n)=>{e=n.nmd(e);var a=n(11603),r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,s=i&&i.exports===r&&a.process,o=function(){try{var e=i&&i.require&&i.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=o},56881:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},78546:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},30714:(e,t,n)=>{var a=n(11603),r="object"==typeof self&&self&&self.Object===Object&&self,i=a||r||Function("return this")();e.exports=i},61945:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},34874:e=>{e.exports=function(e){return this.__data__.has(e)}},36968:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},45331:(e,t,n)=>{var a=n(21022);e.exports=function(){this.__data__=new a,this.size=0}},57063:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},90134:e=>{e.exports=function(e){return this.__data__.get(e)}},9842:e=>{e.exports=function(e){return this.__data__.has(e)}},17469:(e,t,n)=>{var a=n(21022),r=n(75870),i=n(68910);e.exports=function(e,t){var n=this.__data__;if(n instanceof a){var s=n.__data__;if(!r||s.length<199)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(s)}return n.set(e,t),this.size=n.size,this}},69505:(e,t,n)=>{var a=n(82121),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,s=a((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(r,(function(e,n,a,r){t.push(a?r.replace(i,"$1"):n||e)})),t}));e.exports=s},39628:(e,t,n)=>{var a=n(40975);e.exports=function(e){if("string"==typeof e||a(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}},40462:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},74997:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},55097:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},828:(e,t,n)=>{var a=n(66057)(n(18550));e.exports=a},18550:(e,t,n)=>{var a=n(70166),r=n(4506),i=n(83758),s=Math.max;e.exports=function(e,t,n){var o=null==e?0:e.length;if(!o)return-1;var c=null==n?0:i(n);return c<0&&(c=s(o+c,0)),a(e,r(t,3),c)}},75887:(e,t,n)=>{var a=n(51855);e.exports=function(e,t,n){var r=null==e?void 0:a(e,t);return void 0===r?n:r}},74016:(e,t,n)=>{var a=n(85088),r=n(99663);e.exports=function(e,t){return null!=e&&r(e,t,a)}},9169:e=>{e.exports=function(e){return e}},50079:(e,t,n)=>{var a=n(94047),r=n(77583),i=Object.prototype,s=i.hasOwnProperty,o=i.propertyIsEnumerable,c=a(function(){return arguments}())?a:function(e){return r(e)&&s.call(e,"callee")&&!o.call(e,"callee")};e.exports=c},25874:e=>{var t=Array.isArray;e.exports=t},73069:(e,t,n)=>{var a=n(27787),r=n(44583);e.exports=function(e){return null!=e&&r(e.length)&&!a(e)}},83601:(e,t,n)=>{e=n.nmd(e);var a=n(30714),r=n(36408),i=t&&!t.nodeType&&t,s=i&&e&&!e.nodeType&&e,o=s&&s.exports===i?a.Buffer:void 0,c=(o?o.isBuffer:void 0)||r;e.exports=c},12046:(e,t,n)=>{var a=n(35351),r=n(29778),i=n(50079),s=n(25874),o=n(73069),c=n(83601),u=n(37894),l=n(39046),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(o(e)&&(s(e)||"string"==typeof e||"function"==typeof e.splice||c(e)||l(e)||i(e)))return!e.length;var t=r(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(u(e))return!a(e).length;for(var n in e)if(d.call(e,n))return!1;return!0}},27787:(e,t,n)=>{var a=n(95271),r=n(99400);e.exports=function(e){if(!r(e))return!1;var t=a(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},44583:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},99400:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},77583:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},40975:(e,t,n)=>{var a=n(95271),r=n(77583);e.exports=function(e){return"symbol"==typeof e||r(e)&&"[object Symbol]"==a(e)}},39046:(e,t,n)=>{var a=n(40550),r=n(98232),i=n(96574),s=i&&i.isTypedArray,o=s?r(s):a;e.exports=o},3511:(e,t,n)=>{var a=n(89754),r=n(35351),i=n(73069);e.exports=function(e){return i(e)?a(e):r(e)}},95977:(e,t,n)=>{var a=n(93077),r=n(57702),i=n(4506);e.exports=function(e,t){var n={};return t=i(t,3),r(e,(function(e,r,i){a(n,t(e,r,i),e)})),n}},68487:(e,t,n)=>{var a=n(68910);function r(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var a=arguments,r=t?t.apply(this,a):a[0],i=n.cache;if(i.has(r))return i.get(r);var s=e.apply(this,a);return n.cache=i.set(r,s)||i,s};return n.cache=new(r.Cache||a),n}r.Cache=a,e.exports=r},86830:(e,t,n)=>{var a=n(88494),r=n(3644),i=n(80759),s=n(39628);e.exports=function(e){return i(e)?a(s(e)):r(e)}},92982:e=>{e.exports=function(){return[]}},36408:e=>{e.exports=function(){return!1}},68265:(e,t,n)=>{var a=n(57639),r=1/0;e.exports=function(e){return e?(e=a(e))===r||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},83758:(e,t,n)=>{var a=n(68265);e.exports=function(e){var t=a(e),n=t%1;return t==t?n?t-n:t:0}},57639:(e,t,n)=>{var a=n(85103),r=n(99400),i=n(40975),s=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=a(e);var n=o.test(e);return n||c.test(e)?u(e.slice(2),n?2:8):s.test(e)?NaN:+e}},60983:(e,t,n)=>{var a=n(38071);e.exports=function(e){return null==e?"":a(e)}},57004:(e,t,n)=>{e.exports=n(22087)},82829:(e,t,n)=>{"use strict";var a,r,i,s=n(57004),o=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 a=t.charset(n);a&&(n+="; charset="+a.toLowerCase())}return n},t.extension=function(e){if(!e||"string"!=typeof e)return!1;var n=c.exec(e),a=n&&t.extensions[n[1].toLowerCase()];if(!a||!a.length)return!1;return a[0]},t.extensions=Object.create(null),t.lookup=function(e){if(!e||"string"!=typeof e)return!1;var n=o("x."+e).toLowerCase().substr(1);if(!n)return!1;return t.types[n]||!1},t.types=Object.create(null),a=t.extensions,r=t.types,i=["nginx","apache",void 0,"iana"],Object.keys(s).forEach((function(e){var t=s[e],n=t.extensions;if(n&&n.length){a[e]=n;for(var o=0;o<n.length;o++){var c=n[o];if(r[c]){var u=i.indexOf(s[r[c]].source),l=i.indexOf(t.source);if("application/octet-stream"!==r[c]&&(u>l||u===l&&"application/"===r[c].substr(0,12)))continue}r[c]=e}}}))},39433:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findMadeSync=t.findMade=void 0;const a=n(16928);t.findMade=async(e,n,r)=>{if(r!==n)return e.statAsync(n).then((e=>e.isDirectory()?r:void 0),(r=>r&&"ENOENT"===r.code?(0,t.findMade)(e,(0,a.dirname)(n),n):void 0))};t.findMadeSync=(e,n,r)=>{if(r!==n)try{return e.statSync(n).isDirectory()?r:void 0}catch(r){return r&&"ENOENT"===r.code?(0,t.findMadeSync)(e,(0,a.dirname)(n),n):void 0}}},81809:function(e,t,n){"use strict";const a=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(81950));e.exports=Object.assign(a.default,{default:a.default,mkdirp:a.default})},81950:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mkdirp=t.mkdirpSync=t.useNativeSync=t.useNative=t.mkdirpNativeSync=t.mkdirpNative=t.mkdirpManualSync=t.mkdirpManual=void 0;const a=n(31368),r=n(72013),i=n(22971),s=n(77182),o=n(44417);var c=n(31368);Object.defineProperty(t,"mkdirpManual",{enumerable:!0,get:function(){return c.mkdirpManual}}),Object.defineProperty(t,"mkdirpManualSync",{enumerable:!0,get:function(){return c.mkdirpManualSync}});var u=n(72013);Object.defineProperty(t,"mkdirpNative",{enumerable:!0,get:function(){return u.mkdirpNative}}),Object.defineProperty(t,"mkdirpNativeSync",{enumerable:!0,get:function(){return u.mkdirpNativeSync}});var l=n(44417);Object.defineProperty(t,"useNative",{enumerable:!0,get:function(){return l.useNative}}),Object.defineProperty(t,"useNativeSync",{enumerable:!0,get:function(){return l.useNativeSync}});t.mkdirpSync=(e,t)=>{e=(0,s.pathArg)(e);const n=(0,i.optsArg)(t);return(0,o.useNativeSync)(n)?(0,r.mkdirpNativeSync)(e,n):(0,a.mkdirpManualSync)(e,n)},t.mkdirp=Object.assign((async(e,t)=>{e=(0,s.pathArg)(e);const n=(0,i.optsArg)(t);return(0,o.useNative)(n)?(0,r.mkdirpNative)(e,n):(0,a.mkdirpManual)(e,n)}),{mkdirpSync:t.mkdirpSync,mkdirpNative:r.mkdirpNative,mkdirpNativeSync:r.mkdirpNativeSync,mkdirpManual:a.mkdirpManual,mkdirpManualSync:a.mkdirpManualSync,sync:t.mkdirpSync,native:r.mkdirpNative,nativeSync:r.mkdirpNativeSync,manual:a.mkdirpManual,manualSync:a.mkdirpManualSync,useNative:o.useNative,useNativeSync:o.useNativeSync}),t.default=t.mkdirp},31368:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mkdirpManual=t.mkdirpManualSync=void 0;const a=n(16928),r=n(22971);t.mkdirpManualSync=(e,n,i)=>{const s=(0,a.dirname)(e),o={...(0,r.optsArg)(n),recursive:!1};if(s===e)try{return o.mkdirSync(e,o)}catch(e){if(e&&"EISDIR"!==e.code)throw e;return}try{return o.mkdirSync(e,o),i||e}catch(n){const a=n;if(a&&"ENOENT"===a.code)return(0,t.mkdirpManualSync)(e,o,(0,t.mkdirpManualSync)(s,o,i));if(a&&"EEXIST"!==a.code&&a&&"EROFS"!==a.code)throw n;try{if(!o.statSync(e).isDirectory())throw n}catch(e){throw n}}},t.mkdirpManual=Object.assign((async(e,n,i)=>{const s=(0,r.optsArg)(n);s.recursive=!1;const o=(0,a.dirname)(e);return o===e?s.mkdirAsync(e,s).catch((e=>{if(e&&"EISDIR"!==e.code)throw e})):s.mkdirAsync(e,s).then((()=>i||e),(async n=>{const a=n;if(a&&"ENOENT"===a.code)return(0,t.mkdirpManual)(o,s).then((n=>(0,t.mkdirpManual)(e,s,n)));if(a&&"EEXIST"!==a.code&&"EROFS"!==a.code)throw n;return s.statAsync(e).then((e=>{if(e.isDirectory())return i;throw n}),(()=>{throw n}))}))}),{sync:t.mkdirpManualSync})},72013:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mkdirpNative=t.mkdirpNativeSync=void 0;const a=n(16928),r=n(39433),i=n(31368),s=n(22971);t.mkdirpNativeSync=(e,t)=>{const n=(0,s.optsArg)(t);n.recursive=!0;if((0,a.dirname)(e)===e)return n.mkdirSync(e,n);const o=(0,r.findMadeSync)(n,e);try{return n.mkdirSync(e,n),o}catch(t){if(t&&"ENOENT"===t.code)return(0,i.mkdirpManualSync)(e,n);throw t}},t.mkdirpNative=Object.assign((async(e,t)=>{const n={...(0,s.optsArg)(t),recursive:!0};return(0,a.dirname)(e)===e?await n.mkdirAsync(e,n):(0,r.findMade)(n,e).then((t=>n.mkdirAsync(e,n).then((e=>t||e)).catch((t=>{if(t&&"ENOENT"===t.code)return(0,i.mkdirpManual)(e,n);throw t}))))}),{sync:t.mkdirpNativeSync})},22971:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.optsArg=void 0;const a=n(79896);t.optsArg=e=>{if(e)if("object"==typeof e)e={mode:511,...e};else if("number"==typeof e)e={mode:e};else{if("string"!=typeof e)throw new TypeError("invalid options argument");e={mode:parseInt(e,8)}}else e={mode:511};const t=e,n=e.fs||{};return e.mkdir=e.mkdir||n.mkdir||a.mkdir,e.mkdirAsync=e.mkdirAsync?e.mkdirAsync:async(e,n)=>new Promise(((a,r)=>t.mkdir(e,n,((e,t)=>e?r(e):a(t))))),e.stat=e.stat||n.stat||a.stat,e.statAsync=e.statAsync?e.statAsync:async e=>new Promise(((n,a)=>t.stat(e,((e,t)=>e?a(e):n(t))))),e.statSync=e.statSync||n.statSync||a.statSync,e.mkdirSync=e.mkdirSync||n.mkdirSync||a.mkdirSync,t}},77182:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pathArg=void 0;const a=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,r=n(16928);t.pathArg=e=>{if(/\0/.test(e))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:e,code:"ERR_INVALID_ARG_VALUE"});if(e=(0,r.resolve)(e),"win32"===a){const t=/[*|"<>?:]/,{root:n}=(0,r.parse)(e);if(t.test(e.substring(n.length)))throw Object.assign(new Error("Illegal characters in path."),{path:e,code:"EINVAL"})}return e}},44417:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useNative=t.useNativeSync=void 0;const a=n(79896),r=n(22971),i=(process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version).replace(/^v/,"").split("."),s=+i[0]>10||10==+i[0]&&+i[1]>=12;t.useNativeSync=s?e=>(0,r.optsArg)(e).mkdirSync===a.mkdirSync:()=>!1,t.useNative=Object.assign(s?e=>(0,r.optsArg)(e).mkdir===a.mkdir:()=>!1,{sync:t.useNativeSync})},97821:e=>{var t=1e3,n=60*t,a=60*n,r=24*a,i=7*r,s=365.25*r;function o(e,t,n,a){var r=t>=1.5*n;return Math.round(e/n)+" "+a+(r?"s":"")}e.exports=function(e,c){c=c||{};var u=typeof e;if("string"===u&&e.length>0)return function(e){if((e=String(e)).length>100)return;var o=/^(-?(?:\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(!o)return;var c=parseFloat(o[1]);switch((o[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*s;case"weeks":case"week":case"w":return c*i;case"days":case"day":case"d":return c*r;case"hours":case"hour":case"hrs":case"hr":case"h":return c*a;case"minutes":case"minute":case"mins":case"min":case"m":return c*n;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(e);if("number"===u&&isFinite(e))return c.long?function(e){var i=Math.abs(e);if(i>=r)return o(e,i,r,"day");if(i>=a)return o(e,i,a,"hour");if(i>=n)return o(e,i,n,"minute");if(i>=t)return o(e,i,t,"second");return e+" ms"}(e):function(e){var i=Math.abs(e);if(i>=r)return Math.round(e/r)+"d";if(i>=a)return Math.round(e/a)+"h";if(i>=n)return Math.round(e/n)+"m";if(i>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},96350:(e,t,n)=>{"use strict";var a=n(87016).parse,r={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},i=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?a(e):e||{},n=t.protocol,o=t.host,c=t.port;if("string"!=typeof o||!o||"string"!=typeof n)return"";if(n=n.split(":",1)[0],!function(e,t){var n=(s("npm_config_no_proxy")||s("no_proxy")).toLowerCase();if(!n)return!0;if("*"===n)return!1;return n.split(/[,\s]/).every((function(n){if(!n)return!0;var a=n.match(/^(.+):(\d+)$/),r=a?a[1]:n,s=a?parseInt(a[2]):0;return!(!s||s===t)||(/^[.*]/.test(r)?("*"===r.charAt(0)&&(r=r.slice(1)),!i.call(e,r)):e!==r)}))}(o=o.replace(/:\d*$/,""),c=parseInt(c)||r[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}},86478:function(e,t,n){"use strict";var a,r=this&&this.__extends||(a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},a(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncSubject=void 0;var i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._value=null,t._hasValue=!1,t._isComplete=!1,t}return r(t,e),t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,a=t._hasValue,r=t._value,i=t.thrownError,s=t.isStopped,o=t._isComplete;n?e.error(i):(s||o)&&(a&&e.next(r),e.complete())},t.prototype.next=function(e){this.isStopped||(this._value=e,this._hasValue=!0)},t.prototype.complete=function(){var t=this,n=t._hasValue,a=t._value;t._isComplete||(this._isComplete=!0,n&&e.prototype.next.call(this,a),e.prototype.complete.call(this))},t}(n(22764).Subject);t.AsyncSubject=i},34046:function(e,t,n){"use strict";var a,r=this&&this.__extends||(a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},a(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.BehaviorSubject=void 0;var i=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return r(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){var e=this,t=e.hasError,n=e.thrownError,a=e._value;if(t)throw n;return this._throwIfClosed(),a},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(n(22764).Subject);t.BehaviorSubject=i},84841:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.observeNotification=t.Notification=t.NotificationKind=void 0;var a=n(44305),r=n(29519),i=n(53980),s=n(13813);!function(e){e.NEXT="N",e.ERROR="E",e.COMPLETE="C"}(t.NotificationKind||(t.NotificationKind={}));var o=function(){function e(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}return e.prototype.observe=function(e){return c(this,e)},e.prototype.do=function(e,t,n){var a=this,r=a.kind,i=a.value,s=a.error;return"N"===r?null==e?void 0:e(i):"E"===r?null==t?void 0:t(s):null==n?void 0:n()},e.prototype.accept=function(e,t,n){var a;return s.isFunction(null===(a=e)||void 0===a?void 0:a.next)?this.observe(e):this.do(e,t,n)},e.prototype.toObservable=function(){var e=this,t=e.kind,n=e.value,s=e.error,o="N"===t?r.of(n):"E"===t?i.throwError((function(){return s})):"C"===t?a.EMPTY:0;if(!o)throw new TypeError("Unexpected notification kind "+t);return o},e.createNext=function(t){return new e("N",t)},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e}();function c(e,t){var n,a,r,i=e,s=i.kind,o=i.value,c=i.error;if("string"!=typeof s)throw new TypeError('Invalid notification, missing "kind"');"N"===s?null===(n=t.next)||void 0===n||n.call(t,o):"E"===s?null===(a=t.error)||void 0===a||a.call(t,c):null===(r=t.complete)||void 0===r||r.call(t)}t.Notification=o,t.observeNotification=c},77987:(e,t)=>{"use strict";function n(e,t,n){return{kind:e,value:t,error:n}}Object.defineProperty(t,"__esModule",{value:!0}),t.createNotification=t.nextNotification=t.errorNotification=t.COMPLETE_NOTIFICATION=void 0,t.COMPLETE_NOTIFICATION=n("C",void 0,void 0),t.errorNotification=function(e){return n("E",void 0,e)},t.nextNotification=function(e){return n("N",e,void 0)},t.createNotification=n},39311:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Observable=void 0;var a=n(9e3),r=n(59099),i=n(70776),s=n(18257),o=n(80020),c=n(13813),u=n(23236),l=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var i,s=this,o=(i=e)&&i instanceof a.Subscriber||function(e){return e&&c.isFunction(e.next)&&c.isFunction(e.error)&&c.isFunction(e.complete)}(i)&&r.isSubscription(i)?e:new a.SafeSubscriber(e,t,n);return u.errorContext((function(){var e=s,t=e.operator,n=e.source;o.add(t?t.call(o,n):n?s._subscribe(o):s._trySubscribe(o))})),o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=d(t))((function(t,r){var i=new a.SafeSubscriber({next:function(t){try{e(t)}catch(e){r(e),i.unsubscribe()}},error:r,complete:t});n.subscribe(i)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[i.observable]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s.pipeFromArray(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=d(e))((function(e,n){var a;t.subscribe((function(e){return a=e}),(function(e){return n(e)}),(function(){return e(a)}))}))},e.create=function(t){return new e(t)},e}();function d(e){var t;return null!==(t=null!=e?e:o.config.Promise)&&void 0!==t?t:Promise}t.Observable=l},92785:function(e,t,n){"use strict";var a,r=this&&this.__extends||(a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},a(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ReplaySubject=void 0;var i=n(22764),s=n(95783),o=function(e){function t(t,n,a){void 0===t&&(t=1/0),void 0===n&&(n=1/0),void 0===a&&(a=s.dateTimestampProvider);var r=e.call(this)||this;return r._bufferSize=t,r._windowTime=n,r._timestampProvider=a,r._buffer=[],r._infiniteTimeWindow=!0,r._infiniteTimeWindow=n===1/0,r._bufferSize=Math.max(1,t),r._windowTime=Math.max(1,n),r}return r(t,e),t.prototype.next=function(t){var n=this,a=n.isStopped,r=n._buffer,i=n._infiniteTimeWindow,s=n._timestampProvider,o=n._windowTime;a||(r.push(t),!i&&r.push(s.now()+o)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this._infiniteTimeWindow,a=this._buffer.slice(),r=0;r<a.length&&!e.closed;r+=n?1:2)e.next(a[r]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,n=e._timestampProvider,a=e._buffer,r=e._infiniteTimeWindow,i=(r?1:2)*t;if(t<1/0&&i<a.length&&a.splice(0,a.length-i),!r){for(var s=n.now(),o=0,c=1;c<a.length&&a[c]<=s;c+=2)o=c;o&&a.splice(0,o+1)}},t}(i.Subject);t.ReplaySubject=o},53357:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Scheduler=void 0;var a=n(95783),r=function(){function e(t,n){void 0===n&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(n,t)},e.now=a.dateTimestampProvider.now,e}();t.Scheduler=r},22764:function(e,t,n){"use strict";var a,r=this&&this.__extends||(a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},a(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],a=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.AnonymousSubject=t.Subject=void 0;var s=n(39311),o=n(59099),c=n(68955),u=n(83370),l=n(23236),d=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return r(t,e),t.prototype.lift=function(e){var t=new p(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new c.ObjectUnsubscribedError},t.prototype.next=function(e){var t=this;l.errorContext((function(){var n,a;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var r=i(t.currentObservers),s=r.next();!s.done;s=r.next()){s.value.next(e)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(a=r.return)&&a.call(r)}finally{if(n)throw n.error}}}}))},t.prototype.error=function(e){var t=this;l.errorContext((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}}))},t.prototype.complete=function(){var e=this;l.errorContext((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=this,a=n.hasError,r=n.isStopped,i=n.observers;return a||r?o.EMPTY_SUBSCRIPTION:(this.currentObservers=null,i.push(e),new o.Subscription((function(){t.currentObservers=null,u.arrRemove(i,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,a=t.thrownError,r=t.isStopped;n?e.error(a):r&&e.complete()},t.prototype.asObservable=function(){var e=new s.Observable;return e.source=this,e},t.create=function(e,t){return new p(e,t)},t}(s.Observable);t.Subject=d;var p=function(e){function t(t,n){var a=e.call(this)||this;return a.destination=t,a.source=n,a}return r(t,e),t.prototype.next=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},t.prototype.error=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:o.EMPTY_SUBSCRIPTION},t}(d);t.AnonymousSubject=p},9e3:function(e,t,n){"use strict";var a,r=this&&this.__extends||(a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},a(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.EMPTY_OBSERVER=t.SafeSubscriber=t.Subscriber=void 0;var i=n(13813),s=n(59099),o=n(80020),c=n(91072),u=n(78121),l=n(77987),d=n(82596),p=n(23236),f=function(e){function n(n){var a=e.call(this)||this;return a.isStopped=!1,n?(a.destination=n,s.isSubscription(n)&&n.add(a)):a.destination=t.EMPTY_OBSERVER,a}return r(n,e),n.create=function(e,t,n){return new g(e,t,n)},n.prototype.next=function(e){this.isStopped?y(l.nextNotification(e),this):this._next(e)},n.prototype.error=function(e){this.isStopped?y(l.errorNotification(e),this):(this.isStopped=!0,this._error(e))},n.prototype.complete=function(){this.isStopped?y(l.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},n.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},n.prototype._next=function(e){this.destination.next(e)},n.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},n.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},n}(s.Subscription);t.Subscriber=f;var m=Function.prototype.bind;function h(e,t){return m.call(e,t)}var b=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){v(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){v(e)}else v(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){v(e)}},e}(),g=function(e){function t(t,n,a){var r,s,c=e.call(this)||this;i.isFunction(t)||!t?r={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=a?a:void 0}:c&&o.config.useDeprecatedNextContext?((s=Object.create(t)).unsubscribe=function(){return c.unsubscribe()},r={next:t.next&&h(t.next,s),error:t.error&&h(t.error,s),complete:t.complete&&h(t.complete,s)}):r=t;return c.destination=new b(r),c}return r(t,e),t}(f);function v(e){o.config.useDeprecatedSynchronousErrorHandling?p.captureError(e):c.reportUnhandledError(e)}function y(e,t){var n=o.config.onStoppedNotification;n&&d.timeoutProvider.setTimeout((function(){return n(e,t)}))}t.SafeSubscriber=g,t.EMPTY_OBSERVER={closed:!0,next:u.noop,error:function(e){throw e},complete:u.noop}},59099:function(e,t,n){"use strict";var a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],a=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var n=0,a=t.length,r=e.length;n<a;n++,r++)e[r]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.isSubscription=t.EMPTY_SUBSCRIPTION=t.Subscription=void 0;var s=n(13813),o=n(69905),c=n(83370),u=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}var t;return e.prototype.unsubscribe=function(){var e,t,n,c,u;if(!this.closed){this.closed=!0;var d=this._parentage;if(d)if(this._parentage=null,Array.isArray(d))try{for(var p=a(d),f=p.next();!f.done;f=p.next()){f.value.remove(this)}}catch(t){e={error:t}}finally{try{f&&!f.done&&(t=p.return)&&t.call(p)}finally{if(e)throw e.error}}else d.remove(this);var m=this.initialTeardown;if(s.isFunction(m))try{m()}catch(e){u=e instanceof o.UnsubscriptionError?e.errors:[e]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var b=a(h),g=b.next();!g.done;g=b.next()){var v=g.value;try{l(v)}catch(e){u=null!=u?u:[],e instanceof o.UnsubscriptionError?u=i(i([],r(u)),r(e.errors)):u.push(e)}}}catch(e){n={error:e}}finally{try{g&&!g.done&&(c=b.return)&&c.call(b)}finally{if(n)throw n.error}}}if(u)throw new o.UnsubscriptionError(u)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)l(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&c.arrRemove(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&c.arrRemove(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}();function l(e){s.isFunction(e)?e():e.unsubscribe()}t.Subscription=u,t.EMPTY_SUBSCRIPTION=u.EMPTY,t.isSubscription=function(e){return e instanceof u||e&&"closed"in e&&s.isFunction(e.remove)&&s.isFunction(e.add)&&s.isFunction(e.unsubscribe)}},80020:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.config=void 0,t.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},13915:function(e,t,n){"use strict";var a,r=this&&this.__extends||(a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},a(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectableObservable=void 0;var i=n(39311),s=n(59099),o=n(73220),c=n(26122),u=n(96144),l=function(e){function t(t,n){var a=e.call(this)||this;return a.source=t,a.subjectFactory=n,a._subject=null,a._refCount=0,a._connection=null,u.hasLift(t)&&(a.lift=t.lift),a}return r(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype._teardown=function(){this._refCount=0;var e=this._connection;this._subject=this._connection=null,null==e||e.unsubscribe()},t.prototype.connect=function(){var e=this,t=this._connection;if(!t){t=this._connection=new s.Subscription;var n=this.getSubject();t.add(this.source.subscribe(c.createOperatorSubscriber(n,void 0,(function(){e._teardown(),n.complete()}),(function(t){e._teardown(),n.error(t)}),(function(){return e._teardown()})))),t.closed&&(this._connection=null,t=s.Subscription.EMPTY)}return t},t.prototype.refCount=function(){return o.refCount()(this)},t}(i.Observable);t.ConnectableObservable=l},41738:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.combineLatestInit=t.combineLatest=void 0;var a=n(39311),r=n(27267),i=n(89990),s=n(70423),o=n(8824),c=n(31688),u=n(30206),l=n(26122),d=n(31471);function p(e,t,n){return void 0===n&&(n=s.identity),function(a){f(t,(function(){for(var r=e.length,s=new Array(r),o=r,c=r,u=function(r){f(t,(function(){var u=i.from(e[r],t),d=!1;u.subscribe(l.createOperatorSubscriber(a,(function(e){s[r]=e,d||(d=!0,c--),c||a.next(n(s.slice()))}),(function(){--o||a.complete()})))}),a)},d=0;d<r;d++)u(d)}),a)}}function f(e,t,n){e?d.executeSchedule(n,e,t):t()}t.combineLatest=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=c.popScheduler(e),l=c.popResultSelector(e),d=r.argsArgArrayOrObject(e),f=d.args,m=d.keys;if(0===f.length)return i.from([],n);var h=new a.Observable(p(f,n,m?function(e){return u.createObject(m,e)}:s.identity));return l?h.pipe(o.mapOneOrManyArgs(l)):h},t.combineLatestInit=p},64718:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concat=void 0;var a=n(47445),r=n(31688),i=n(89990);t.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a.concatAll()(i.from(e,r.popScheduler(e)))}},44305:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.empty=t.EMPTY=void 0;var a=n(39311);t.EMPTY=new a.Observable((function(e){return e.complete()})),t.empty=function(e){return e?function(e){return new a.Observable((function(t){return e.schedule((function(){return t.complete()}))}))}(e):t.EMPTY}},89990:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.from=void 0;var a=n(17047),r=n(8128);t.from=function(e,t){return t?a.scheduled(e,t):r.innerFrom(e)}},55499:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromSubscribable=void 0;var a=n(39311);t.fromSubscribable=function(e){return new a.Observable((function(t){return e.subscribe(t)}))}},8128:function(e,t,n){"use strict";var a=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(r,i){function s(e){try{c(a.next(e))}catch(e){i(e)}}function o(e){try{c(a.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}c((a=a.apply(e,t||[])).next())}))},r=this&&this.__generator||function(e,t){var n,a,r,i,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function o(i){return function(o){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,a&&(r=2&i[0]?a.return:i[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,i[1])).done)return r;switch(a=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,a=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(r=s.trys,(r=r.length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){s.label=i[1];break}if(6===i[0]&&s.label<r[1]){s.label=r[1],r=i;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(i);break}r[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],a=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,o])}}},i=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof s?s(e):e[Symbol.iterator](),t={},a("next"),a("throw"),a("return"),t[Symbol.asyncIterator]=function(){return this},t);function a(n){t[n]=e[n]&&function(t){return new Promise((function(a,r){(function(e,t,n,a){Promise.resolve(a).then((function(t){e({value:t,done:n})}),t)})(a,r,(t=e[n](t)).done,t.value)}))}}},s=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],a=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.fromReadableStreamLike=t.fromAsyncIterable=t.fromIterable=t.fromPromise=t.fromArrayLike=t.fromInteropObservable=t.innerFrom=void 0;var o=n(81123),c=n(98700),u=n(39311),l=n(73793),d=n(8995),p=n(49797),f=n(3975),m=n(80106),h=n(13813),b=n(91072),g=n(70776);function v(e){return new u.Observable((function(t){var n=e[g.observable]();if(h.isFunction(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")}))}function y(e){return new u.Observable((function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()}))}function _(e){return new u.Observable((function(t){e.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,b.reportUnhandledError)}))}function E(e){return new u.Observable((function(t){var n,a;try{for(var r=s(e),i=r.next();!i.done;i=r.next()){var o=i.value;if(t.next(o),t.closed)return}}catch(e){n={error:e}}finally{try{i&&!i.done&&(a=r.return)&&a.call(r)}finally{if(n)throw n.error}}t.complete()}))}function x(e){return new u.Observable((function(t){(function(e,t){var n,s,o,c;return a(this,void 0,void 0,(function(){var a,u;return r(this,(function(r){switch(r.label){case 0:r.trys.push([0,5,6,11]),n=i(e),r.label=1;case 1:return[4,n.next()];case 2:if((s=r.sent()).done)return[3,4];if(a=s.value,t.next(a),t.closed)return[2];r.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return u=r.sent(),o={error:u},[3,11];case 6:return r.trys.push([6,,9,10]),s&&!s.done&&(c=n.return)?[4,c.call(n)]:[3,8];case 7:r.sent(),r.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}}))}))})(e,t).catch((function(e){return t.error(e)}))}))}function T(e){return x(m.readableStreamLikeToAsyncGenerator(e))}t.innerFrom=function(e){if(e instanceof u.Observable)return e;if(null!=e){if(l.isInteropObservable(e))return v(e);if(o.isArrayLike(e))return y(e);if(c.isPromise(e))return _(e);if(d.isAsyncIterable(e))return x(e);if(f.isIterable(e))return E(e);if(m.isReadableStreamLike(e))return T(e)}throw p.createInvalidObservableTypeError(e)},t.fromInteropObservable=v,t.fromArrayLike=y,t.fromPromise=_,t.fromIterable=E,t.fromAsyncIterable=x,t.fromReadableStreamLike=T},93879:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.interval=void 0;var a=n(14426),r=n(39021);t.interval=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=a.asyncScheduler),e<0&&(e=0),r.timer(e,e,t)}},29519:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.of=void 0;var a=n(31688),r=n(89990);t.of=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=a.popScheduler(e);return r.from(e,n)}},31083:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onErrorResumeNext=void 0;var a=n(39311),r=n(27976),i=n(26122),s=n(78121),o=n(8128);t.onErrorResumeNext=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=r.argsOrArgArray(e);return new a.Observable((function(e){var t=0,a=function(){if(t<n.length){var r=void 0;try{r=o.innerFrom(n[t++])}catch(e){return void a()}var c=new i.OperatorSubscriber(e,void 0,s.noop,s.noop);r.subscribe(c),c.add(a)}else e.complete()};a()}))}},33223:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.raceInit=t.race=void 0;var a=n(39311),r=n(8128),i=n(27976),s=n(26122);function o(e){return function(t){for(var n=[],a=function(a){n.push(r.innerFrom(e[a]).subscribe(s.createOperatorSubscriber(t,(function(e){if(n){for(var r=0;r<n.length;r++)r!==a&&n[r].unsubscribe();n=null}t.next(e)}))))},i=0;n&&!t.closed&&i<e.length;i++)a(i)}}t.race=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===(e=i.argsOrArgArray(e)).length?r.innerFrom(e[0]):new a.Observable(o(e))},t.raceInit=o},53980:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throwError=void 0;var a=n(39311),r=n(13813);t.throwError=function(e,t){var n=r.isFunction(e)?e:function(){return e},i=function(e){return e.error(n())};return new a.Observable(t?function(e){return t.schedule(i,0,e)}:i)}},39021:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timer=void 0;var a=n(39311),r=n(14426),i=n(9520),s=n(81509);t.timer=function(e,t,n){void 0===e&&(e=0),void 0===n&&(n=r.async);var o=-1;return null!=t&&(i.isScheduler(t)?n=t:o=t),new a.Observable((function(t){var a=s.isValidDate(e)?+e-n.now():e;a<0&&(a=0);var r=0;return n.schedule((function(){t.closed||(t.next(r++),0<=o?this.schedule(void 0,o):t.complete())}),a)}))}},78539:function(e,t,n){"use strict";var a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},r=this&&this.__spreadArray||function(e,t){for(var n=0,a=t.length,r=e.length;n<a;n++,r++)e[r]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.zip=void 0;var i=n(39311),s=n(8128),o=n(27976),c=n(44305),u=n(26122),l=n(31688);t.zip=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=l.popResultSelector(e),d=o.argsOrArgArray(e);return d.length?new i.Observable((function(e){var t=d.map((function(){return[]})),i=d.map((function(){return!1}));e.add((function(){t=i=null}));for(var o=function(o){s.innerFrom(d[o]).subscribe(u.createOperatorSubscriber(e,(function(s){if(t[o].push(s),t.every((function(e){return e.length}))){var c=t.map((function(e){return e.shift()}));e.next(n?n.apply(void 0,r([],a(c))):c),t.some((function(e,t){return!e.length&&i[t]}))&&e.complete()}}),(function(){i[o]=!0,!t[o].length&&e.complete()})))},c=0;!e.closed&&c<d.length;c++)o(c);return function(){t=i=null}})):c.EMPTY}},26122:function(e,t,n){"use strict";var a,r=this&&this.__extends||(a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},a(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.OperatorSubscriber=t.createOperatorSubscriber=void 0;var i=n(9e3);t.createOperatorSubscriber=function(e,t,n,a,r){return new s(e,t,n,a,r)};var s=function(e){function t(t,n,a,r,i,s){var o=e.call(this,t)||this;return o.onFinalize=i,o.shouldUnsubscribe=s,o._next=n?function(e){try{n(e)}catch(e){t.error(e)}}:e.prototype._next,o._error=r?function(e){try{r(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,o._complete=a?function(){try{a()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,o}return r(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}},t}(i.Subscriber);t.OperatorSubscriber=s},32134:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.audit=void 0;var a=n(96144),r=n(8128),i=n(26122);t.audit=function(e){return a.operate((function(t,n){var a=!1,s=null,o=null,c=!1,u=function(){if(null==o||o.unsubscribe(),o=null,a){a=!1;var e=s;s=null,n.next(e)}c&&n.complete()},l=function(){o=null,c&&n.complete()};t.subscribe(i.createOperatorSubscriber(n,(function(t){a=!0,s=t,o||r.innerFrom(e(t)).subscribe(o=i.createOperatorSubscriber(n,u,l))}),(function(){c=!0,(!a||!o||o.closed)&&n.complete()})))}))}},27276:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.auditTime=void 0;var a=n(14426),r=n(32134),i=n(39021);t.auditTime=function(e,t){return void 0===t&&(t=a.asyncScheduler),r.audit((function(){return i.timer(e,t)}))}},32158:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buffer=void 0;var a=n(96144),r=n(78121),i=n(26122),s=n(8128);t.buffer=function(e){return a.operate((function(t,n){var a=[];return t.subscribe(i.createOperatorSubscriber(n,(function(e){return a.push(e)}),(function(){n.next(a),n.complete()}))),s.innerFrom(e).subscribe(i.createOperatorSubscriber(n,(function(){var e=a;a=[],n.next(e)}),r.noop)),function(){a=null}}))}},48411:function(e,t,n){"use strict";var a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],a=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.bufferCount=void 0;var r=n(96144),i=n(26122),s=n(83370);t.bufferCount=function(e,t){return void 0===t&&(t=null),t=null!=t?t:e,r.operate((function(n,r){var o=[],c=0;n.subscribe(i.createOperatorSubscriber(r,(function(n){var i,u,l,d,p=null;c++%t==0&&o.push([]);try{for(var f=a(o),m=f.next();!m.done;m=f.next()){(g=m.value).push(n),e<=g.length&&(p=null!=p?p:[]).push(g)}}catch(e){i={error:e}}finally{try{m&&!m.done&&(u=f.return)&&u.call(f)}finally{if(i)throw i.error}}if(p)try{for(var h=a(p),b=h.next();!b.done;b=h.next()){var g=b.value;s.arrRemove(o,g),r.next(g)}}catch(e){l={error:e}}finally{try{b&&!b.done&&(d=h.return)&&d.call(h)}finally{if(l)throw l.error}}}),(function(){var e,t;try{for(var n=a(o),i=n.next();!i.done;i=n.next()){var s=i.value;r.next(s)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}r.complete()}),void 0,(function(){o=null})))}))}},49451:function(e,t,n){"use strict";var a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],a=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.bufferTime=void 0;var r=n(59099),i=n(96144),s=n(26122),o=n(83370),c=n(14426),u=n(31688),l=n(31471);t.bufferTime=function(e){for(var t,n,d=[],p=1;p<arguments.length;p++)d[p-1]=arguments[p];var f=null!==(t=u.popScheduler(d))&&void 0!==t?t:c.asyncScheduler,m=null!==(n=d[0])&&void 0!==n?n:null,h=d[1]||1/0;return i.operate((function(t,n){var i=[],c=!1,u=function(e){var t=e.buffer;e.subs.unsubscribe(),o.arrRemove(i,e),n.next(t),c&&d()},d=function(){if(i){var t=new r.Subscription;n.add(t);var a={buffer:[],subs:t};i.push(a),l.executeSchedule(t,f,(function(){return u(a)}),e)}};null!==m&&m>=0?l.executeSchedule(n,f,d,m,!0):c=!0,d();var p=s.createOperatorSubscriber(n,(function(e){var t,n,r=i.slice();try{for(var s=a(r),o=s.next();!o.done;o=s.next()){var c=o.value,l=c.buffer;l.push(e),h<=l.length&&u(c)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}}),(function(){for(;null==i?void 0:i.length;)n.next(i.shift().buffer);null==p||p.unsubscribe(),n.complete(),n.unsubscribe()}),void 0,(function(){return i=null}));t.subscribe(p)}))}},25214:function(e,t,n){"use strict";var a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],a=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.bufferToggle=void 0;var r=n(59099),i=n(96144),s=n(8128),o=n(26122),c=n(78121),u=n(83370);t.bufferToggle=function(e,t){return i.operate((function(n,i){var l=[];s.innerFrom(e).subscribe(o.createOperatorSubscriber(i,(function(e){var n=[];l.push(n);var a=new r.Subscription;a.add(s.innerFrom(t(e)).subscribe(o.createOperatorSubscriber(i,(function(){u.arrRemove(l,n),i.next(n),a.unsubscribe()}),c.noop)))}),c.noop)),n.subscribe(o.createOperatorSubscriber(i,(function(e){var t,n;try{for(var r=a(l),i=r.next();!i.done;i=r.next()){i.value.push(e)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}}),(function(){for(;l.length>0;)i.next(l.shift());i.complete()})))}))}},74722:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bufferWhen=void 0;var a=n(96144),r=n(78121),i=n(26122),s=n(8128);t.bufferWhen=function(e){return a.operate((function(t,n){var a=null,o=null,c=function(){null==o||o.unsubscribe();var t=a;a=[],t&&n.next(t),s.innerFrom(e()).subscribe(o=i.createOperatorSubscriber(n,c,r.noop))};c(),t.subscribe(i.createOperatorSubscriber(n,(function(e){return null==a?void 0:a.push(e)}),(function(){a&&n.next(a),n.complete()}),void 0,(function(){return a=o=null})))}))}},44755:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.catchError=void 0;var a=n(8128),r=n(26122),i=n(96144);t.catchError=function e(t){return i.operate((function(n,i){var s,o=null,c=!1;o=n.subscribe(r.createOperatorSubscriber(i,void 0,void 0,(function(r){s=a.innerFrom(t(r,e(t)(n))),o?(o.unsubscribe(),o=null,s.subscribe(i)):c=!0}))),c&&(o.unsubscribe(),o=null,s.subscribe(i))}))}},11928:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.combineAll=void 0;var a=n(89337);t.combineAll=a.combineLatestAll},91336:function(e,t,n){"use strict";var a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},r=this&&this.__spreadArray||function(e,t){for(var n=0,a=t.length,r=e.length;n<a;n++,r++)e[r]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.combineLatest=void 0;var i=n(41738),s=n(96144),o=n(27976),c=n(8824),u=n(18257),l=n(31688);t.combineLatest=function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var d=l.popResultSelector(t);return d?u.pipe(e.apply(void 0,r([],a(t))),c.mapOneOrManyArgs(d)):s.operate((function(e,n){i.combineLatestInit(r([e],a(o.argsOrArgArray(t))))(n)}))}},89337:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.combineLatestAll=void 0;var a=n(41738),r=n(75235);t.combineLatestAll=function(e){return r.joinAllInternals(a.combineLatest,e)}},44720:function(e,t,n){"use strict";var a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},r=this&&this.__spreadArray||function(e,t){for(var n=0,a=t.length,r=e.length;n<a;n++,r++)e[r]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.combineLatestWith=void 0;var i=n(91336);t.combineLatestWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.combineLatest.apply(void 0,r([],a(e)))}},13244:function(e,t,n){"use strict";var a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},r=this&&this.__spreadArray||function(e,t){for(var n=0,a=t.length,r=e.length;n<a;n++,r++)e[r]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.concat=void 0;var i=n(96144),s=n(47445),o=n(31688),c=n(89990);t.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=o.popScheduler(e);return i.operate((function(t,i){s.concatAll()(c.from(r([t],a(e)),n)).subscribe(i)}))}},47445:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatAll=void 0;var a=n(28931);t.concatAll=function(){return a.mergeAll(1)}},41292:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatMap=void 0;var a=n(17562),r=n(13813);t.concatMap=function(e,t){return r.isFunction(t)?a.mergeMap(e,t,1):a.mergeMap(e,1)}},41565:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatMapTo=void 0;var a=n(41292),r=n(13813);t.concatMapTo=function(e,t){return r.isFunction(t)?a.concatMap((function(){return e}),t):a.concatMap((function(){return e}))}},24804:function(e,t,n){"use strict";var a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},r=this&&this.__spreadArray||function(e,t){for(var n=0,a=t.length,r=e.length;n<a;n++,r++)e[r]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.concatWith=void 0;var i=n(13244);t.concatWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.concat.apply(void 0,r([],a(e)))}},30624:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.connect=void 0;var a=n(22764),r=n(8128),i=n(96144),s=n(55499),o={connector:function(){return new a.Subject}};t.connect=function(e,t){void 0===t&&(t=o);var n=t.connector;return i.operate((function(t,a){var i=n();r.innerFrom(e(s.fromSubscribable(i))).subscribe(a),a.add(t.subscribe(i))}))}},32785:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.count=void 0;var a=n(45970);t.count=function(e){return a.reduce((function(t,n,a){return!e||e(n,a)?t+1:t}),0)}},2483:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debounce=void 0;var a=n(96144),r=n(78121),i=n(26122),s=n(8128);t.debounce=function(e){return a.operate((function(t,n){var a=!1,o=null,c=null,u=function(){if(null==c||c.unsubscribe(),c=null,a){a=!1;var e=o;o=null,n.next(e)}};t.subscribe(i.createOperatorSubscriber(n,(function(t){null==c||c.unsubscribe(),a=!0,o=t,c=i.createOperatorSubscriber(n,u,r.noop),s.innerFrom(e(t)).subscribe(c)}),(function(){u(),n.complete()}),void 0,(function(){o=c=null})))}))}},42134:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debounceTime=void 0;var a=n(14426),r=n(96144),i=n(26122);t.debounceTime=function(e,t){return void 0===t&&(t=a.asyncScheduler),r.operate((function(n,a){var r=null,s=null,o=null,c=function(){if(r){r.unsubscribe(),r=null;var e=s;s=null,a.next(e)}};function u(){var n=o+e,i=t.now();if(i<n)return r=this.schedule(void 0,n-i),void a.add(r);c()}n.subscribe(i.createOperatorSubscriber(a,(function(n){s=n,o=t.now(),r||(r=t.schedule(u,e),a.add(r))}),(function(){c(),a.complete()}),void 0,(function(){s=r=null})))}))}},18907:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultIfEmpty=void 0;var a=n(96144),r=n(26122);t.defaultIfEmpty=function(e){return a.operate((function(t,n){var a=!1;t.subscribe(r.createOperatorSubscriber(n,(function(e){a=!0,n.next(e)}),(function(){a||n.next(e),n.complete()})))}))}},89025:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.delay=void 0;var a=n(14426),r=n(30281),i=n(39021);t.delay=function(e,t){void 0===t&&(t=a.asyncScheduler);var n=i.timer(e,t);return r.delayWhen((function(){return n}))}},30281:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.delayWhen=void 0;var a=n(64718),r=n(79019),i=n(96835),s=n(29685),o=n(17562),c=n(8128);t.delayWhen=function e(t,n){return n?function(s){return a.concat(n.pipe(r.take(1),i.ignoreElements()),s.pipe(e(t)))}:o.mergeMap((function(e,n){return c.innerFrom(t(e,n)).pipe(r.take(1),s.mapTo(e))}))}},14150:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dematerialize=void 0;var a=n(84841),r=n(96144),i=n(26122);t.dematerialize=function(){return r.operate((function(e,t){e.subscribe(i.createOperatorSubscriber(t,(function(e){return a.observeNotification(e,t)})))}))}},28064:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.distinct=void 0;var a=n(96144),r=n(26122),i=n(78121),s=n(8128);t.distinct=function(e,t){return a.operate((function(n,a){var o=new Set;n.subscribe(r.createOperatorSubscriber(a,(function(t){var n=e?e(t):t;o.has(n)||(o.add(n),a.next(t))}))),t&&s.innerFrom(t).subscribe(r.createOperatorSubscriber(a,(function(){return o.clear()}),i.noop))}))}},92776:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.distinctUntilChanged=void 0;var a=n(70423),r=n(96144),i=n(26122);function s(e,t){return e===t}t.distinctUntilChanged=function(e,t){return void 0===t&&(t=a.identity),e=null!=e?e:s,r.operate((function(n,a){var r,s=!0;n.subscribe(i.createOperatorSubscriber(a,(function(n){var i=t(n);!s&&e(r,i)||(s=!1,r=i,a.next(n))})))}))}},35135:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.distinctUntilKeyChanged=void 0;var a=n(92776);t.distinctUntilKeyChanged=function(e,t){return a.distinctUntilChanged((function(n,a){return t?t(n[e],a[e]):n[e]===a[e]}))}},59635:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.elementAt=void 0;var a=n(89732),r=n(49978),i=n(91036),s=n(18907),o=n(79019);t.elementAt=function(e,t){if(e<0)throw new a.ArgumentOutOfRangeError;var n=arguments.length>=2;return function(c){return c.pipe(r.filter((function(t,n){return n===e})),o.take(1),n?s.defaultIfEmpty(t):i.throwIfEmpty((function(){return new a.ArgumentOutOfRangeError})))}}},9859:function(e,t,n){"use strict";var a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},r=this&&this.__spreadArray||function(e,t){for(var n=0,a=t.length,r=e.length;n<a;n++,r++)e[r]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.endWith=void 0;var i=n(64718),s=n(29519);t.endWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return i.concat(t,s.of.apply(void 0,r([],a(e))))}}},95165:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.every=void 0;var a=n(96144),r=n(26122);t.every=function(e,t){return a.operate((function(n,a){var i=0;n.subscribe(r.createOperatorSubscriber(a,(function(r){e.call(t,r,i++,n)||(a.next(!1),a.complete())}),(function(){a.next(!0),a.complete()})))}))}},30900:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exhaust=void 0;var a=n(73245);t.exhaust=a.exhaustAll},73245:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exhaustAll=void 0;var a=n(70948),r=n(70423);t.exhaustAll=function(){return a.exhaustMap(r.identity)}},70948:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exhaustMap=void 0;var a=n(77108),r=n(8128),i=n(96144),s=n(26122);t.exhaustMap=function e(t,n){return n?function(i){return i.pipe(e((function(e,i){return r.innerFrom(t(e,i)).pipe(a.map((function(t,a){return n(e,t,i,a)})))})))}:i.operate((function(e,n){var a=0,i=null,o=!1;e.subscribe(s.createOperatorSubscriber(n,(function(e){i||(i=s.createOperatorSubscriber(n,void 0,(function(){i=null,o&&n.complete()})),r.innerFrom(t(e,a++)).subscribe(i))}),(function(){o=!0,!i&&n.complete()})))}))}},652:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.expand=void 0;var a=n(96144),r=n(41362);t.expand=function(e,t,n){return void 0===t&&(t=1/0),t=(t||0)<1?1/0:t,a.operate((function(a,i){return r.mergeInternals(a,i,e,t,void 0,!0,n)}))}},49978:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.filter=void 0;var a=n(96144),r=n(26122);t.filter=function(e,t){return a.operate((function(n,a){var i=0;n.subscribe(r.createOperatorSubscriber(a,(function(n){return e.call(t,n,i++)&&a.next(n)})))}))}},28342:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.finalize=void 0;var a=n(96144);t.finalize=function(e){return a.operate((function(t,n){try{t.subscribe(n)}finally{n.add(e)}}))}},12475:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createFind=t.find=void 0;var a=n(96144),r=n(26122);function i(e,t,n){var a="index"===n;return function(n,i){var s=0;n.subscribe(r.createOperatorSubscriber(i,(function(r){var o=s++;e.call(t,r,o,n)&&(i.next(a?o:r),i.complete())}),(function(){i.next(a?-1:void 0),i.complete()})))}}t.find=function(e,t){return a.operate(i(e,t,"value"))},t.createFind=i},95023:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findIndex=void 0;var a=n(96144),r=n(12475);t.findIndex=function(e,t){return a.operate(r.createFind(e,t,"index"))}},2816:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.first=void 0;var a=n(76276),r=n(49978),i=n(79019),s=n(18907),o=n(91036),c=n(70423);t.first=function(e,t){var n=arguments.length>=2;return function(u){return u.pipe(e?r.filter((function(t,n){return e(t,n,u)})):c.identity,i.take(1),n?s.defaultIfEmpty(t):o.throwIfEmpty((function(){return new a.EmptyError})))}}},56249:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flatMap=void 0;var a=n(17562);t.flatMap=a.mergeMap},58628:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.groupBy=void 0;var a=n(39311),r=n(8128),i=n(22764),s=n(96144),o=n(26122);t.groupBy=function(e,t,n,c){return s.operate((function(s,u){var l;t&&"function"!=typeof t?(n=t.duration,l=t.element,c=t.connector):l=t;var d=new Map,p=function(e){d.forEach(e),e(u)},f=function(e){return p((function(t){return t.error(e)}))},m=0,h=!1,b=new o.OperatorSubscriber(u,(function(t){try{var s=e(t),p=d.get(s);if(!p){d.set(s,p=c?c():new i.Subject);var g=(y=s,_=p,(E=new a.Observable((function(e){m++;var t=_.subscribe(e);return function(){t.unsubscribe(),0==--m&&h&&b.unsubscribe()}}))).key=y,E);if(u.next(g),n){var v=o.createOperatorSubscriber(p,(function(){p.complete(),null==v||v.unsubscribe()}),void 0,void 0,(function(){return d.delete(s)}));b.add(r.innerFrom(n(g)).subscribe(v))}}p.next(l?l(t):t)}catch(e){f(e)}var y,_,E}),(function(){return p((function(e){return e.complete()}))}),f,(function(){return d.clear()}),(function(){return h=!0,0===m}));s.subscribe(b)}))}},96835:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ignoreElements=void 0;var a=n(96144),r=n(26122),i=n(78121);t.ignoreElements=function(){return a.operate((function(e,t){e.subscribe(r.createOperatorSubscriber(t,i.noop))}))}},30711:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmpty=void 0;var a=n(96144),r=n(26122);t.isEmpty=function(){return a.operate((function(e,t){e.subscribe(r.createOperatorSubscriber(t,(function(){t.next(!1),t.complete()}),(function(){t.next(!0),t.complete()})))}))}},75235:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.joinAllInternals=void 0;var a=n(70423),r=n(8824),i=n(18257),s=n(17562),o=n(23680);t.joinAllInternals=function(e,t){return i.pipe(o.toArray(),s.mergeMap((function(t){return e(t)})),t?r.mapOneOrManyArgs(t):a.identity)}},67972:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.last=void 0;var a=n(76276),r=n(49978),i=n(49275),s=n(91036),o=n(18907),c=n(70423);t.last=function(e,t){var n=arguments.length>=2;return function(u){return u.pipe(e?r.filter((function(t,n){return e(t,n,u)})):c.identity,i.takeLast(1),n?o.defaultIfEmpty(t):s.throwIfEmpty((function(){return new a.EmptyError})))}}},77108:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.map=void 0;var a=n(96144),r=n(26122);t.map=function(e,t){return a.operate((function(n,a){var i=0;n.subscribe(r.createOperatorSubscriber(a,(function(n){a.next(e.call(t,n,i++))})))}))}},29685:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapTo=void 0;var a=n(77108);t.mapTo=function(e){return a.map((function(){return e}))}},37399:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.materialize=void 0;var a=n(84841),r=n(96144),i=n(26122);t.materialize=function(){return r.operate((function(e,t){e.subscribe(i.createOperatorSubscriber(t,(function(e){t.next(a.Notification.createNext(e))}),(function(){t.next(a.Notification.createComplete()),t.complete()}),(function(e){t.next(a.Notification.createError(e)),t.complete()})))}))}},76780:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.max=void 0;var a=n(45970),r=n(13813);t.max=function(e){return a.reduce(r.isFunction(e)?function(t,n){return e(t,n)>0?t:n}:function(e,t){return e>t?e:t})}},55958:function(e,t,n){"use strict";var a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},r=this&&this.__spreadArray||function(e,t){for(var n=0,a=t.length,r=e.length;n<a;n++,r++)e[r]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.merge=void 0;var i=n(96144),s=n(27976),o=n(28931),c=n(31688),u=n(89990);t.merge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=c.popScheduler(e),l=c.popNumber(e,1/0);return e=s.argsOrArgArray(e),i.operate((function(t,i){o.mergeAll(l)(u.from(r([t],a(e)),n)).subscribe(i)}))}},28931:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeAll=void 0;var a=n(17562),r=n(70423);t.mergeAll=function(e){return void 0===e&&(e=1/0),a.mergeMap(r.identity,e)}},41362:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeInternals=void 0;var a=n(8128),r=n(31471),i=n(26122);t.mergeInternals=function(e,t,n,s,o,c,u,l){var d=[],p=0,f=0,m=!1,h=function(){!m||d.length||p||t.complete()},b=function(e){return p<s?g(e):d.push(e)},g=function(e){c&&t.next(e),p++;var l=!1;a.innerFrom(n(e,f++)).subscribe(i.createOperatorSubscriber(t,(function(e){null==o||o(e),c?b(e):t.next(e)}),(function(){l=!0}),void 0,(function(){if(l)try{p--;for(var e=function(){var e=d.shift();u?r.executeSchedule(t,u,(function(){return g(e)})):g(e)};d.length&&p<s;)e();h()}catch(e){t.error(e)}})))};return e.subscribe(i.createOperatorSubscriber(t,b,(function(){m=!0,h()}))),function(){null==l||l()}}},17562:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeMap=void 0;var a=n(77108),r=n(8128),i=n(96144),s=n(41362),o=n(13813);t.mergeMap=function e(t,n,c){return void 0===c&&(c=1/0),o.isFunction(n)?e((function(e,i){return a.map((function(t,a){return n(e,t,i,a)}))(r.innerFrom(t(e,i)))}),c):("number"==typeof n&&(c=n),i.operate((function(e,n){return s.mergeInternals(e,n,t,c)})))}},36399:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeMapTo=void 0;var a=n(17562),r=n(13813);t.mergeMapTo=function(e,t,n){return void 0===n&&(n=1/0),r.isFunction(t)?a.mergeMap((function(){return e}),t,n):("number"==typeof t&&(n=t),a.mergeMap((function(){return e}),n))}},89071:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeScan=void 0;var a=n(96144),r=n(41362);t.mergeScan=function(e,t,n){return void 0===n&&(n=1/0),a.operate((function(a,i){var s=t;return r.mergeInternals(a,i,(function(t,n){return e(s,t,n)}),n,(function(e){s=e}),!1,void 0,(function(){return s=null}))}))}},71794:function(e,t,n){"use strict";var a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},r=this&&this.__spreadArray||function(e,t){for(var n=0,a=t.length,r=e.length;n<a;n++,r++)e[r]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.mergeWith=void 0;var i=n(55958);t.mergeWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.merge.apply(void 0,r([],a(e)))}},3906:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.min=void 0;var a=n(45970),r=n(13813);t.min=function(e){return a.reduce(r.isFunction(e)?function(t,n){return e(t,n)<0?t:n}:function(e,t){return e<t?e:t})}},30044:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.multicast=void 0;var a=n(13915),r=n(13813),i=n(30624);t.multicast=function(e,t){var n=r.isFunction(e)?e:function(){return e};return r.isFunction(t)?i.connect(t,{connector:n}):function(e){return new a.ConnectableObservable(e,n)}}},84475:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.observeOn=void 0;var a=n(31471),r=n(96144),i=n(26122);t.observeOn=function(e,t){return void 0===t&&(t=0),r.operate((function(n,r){n.subscribe(i.createOperatorSubscriber(r,(function(n){return a.executeSchedule(r,e,(function(){return r.next(n)}),t)}),(function(){return a.executeSchedule(r,e,(function(){return r.complete()}),t)}),(function(n){return a.executeSchedule(r,e,(function(){return r.error(n)}),t)})))}))}},21701:function(e,t,n){"use strict";var a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},r=this&&this.__spreadArray||function(e,t){for(var n=0,a=t.length,r=e.length;n<a;n++,r++)e[r]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.onErrorResumeNext=t.onErrorResumeNextWith=void 0;var i=n(27976),s=n(31083);function o(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=i.argsOrArgArray(e);return function(e){return s.onErrorResumeNext.apply(void 0,r([e],a(n)))}}t.onErrorResumeNextWith=o,t.onErrorResumeNext=o},49156:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pairwise=void 0;var a=n(96144),r=n(26122);t.pairwise=function(){return a.operate((function(e,t){var n,a=!1;e.subscribe(r.createOperatorSubscriber(t,(function(e){var r=n;n=e,a&&t.next([r,e]),a=!0})))}))}},22544:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.partition=void 0;var a=n(97684),r=n(49978);t.partition=function(e,t){return function(n){return[r.filter(e,t)(n),r.filter(a.not(e,t))(n)]}}},51671:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pluck=void 0;var a=n(77108);t.pluck=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.length;if(0===n)throw new Error("list of properties cannot be empty.");return a.map((function(t){for(var a=t,r=0;r<n;r++){var i=null==a?void 0:a[e[r]];if(void 0===i)return;a=i}return a}))}},34513:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publish=void 0;var a=n(22764),r=n(30044),i=n(30624);t.publish=function(e){return e?function(t){return i.connect(e)(t)}:function(e){return r.multicast(new a.Subject)(e)}}},18247:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publishBehavior=void 0;var a=n(34046),r=n(13915);t.publishBehavior=function(e){return function(t){var n=new a.BehaviorSubject(e);return new r.ConnectableObservable(t,(function(){return n}))}}},10413:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publishLast=void 0;var a=n(86478),r=n(13915);t.publishLast=function(){return function(e){var t=new a.AsyncSubject;return new r.ConnectableObservable(e,(function(){return t}))}}},71274:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publishReplay=void 0;var a=n(92785),r=n(30044),i=n(13813);t.publishReplay=function(e,t,n,s){n&&!i.isFunction(n)&&(s=n);var o=i.isFunction(n)?n:void 0;return function(n){return r.multicast(new a.ReplaySubject(e,t,s),o)(n)}}},66085:function(e,t,n){"use strict";var a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},r=this&&this.__spreadArray||function(e,t){for(var n=0,a=t.length,r=e.length;n<a;n++,r++)e[r]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.race=void 0;var i=n(27976),s=n(38585);t.race=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s.raceWith.apply(void 0,r([],a(i.argsOrArgArray(e))))}},38585:function(e,t,n){"use strict";var a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},r=this&&this.__spreadArray||function(e,t){for(var n=0,a=t.length,r=e.length;n<a;n++,r++)e[r]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.raceWith=void 0;var i=n(33223),s=n(96144),o=n(70423);t.raceWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length?s.operate((function(t,n){i.raceInit(r([t],a(e)))(n)})):o.identity}},45970:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reduce=void 0;var a=n(61479),r=n(96144);t.reduce=function(e,t){return r.operate(a.scanInternals(e,t,arguments.length>=2,!1,!0))}},73220:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.refCount=void 0;var a=n(96144),r=n(26122);t.refCount=function(){return a.operate((function(e,t){var n=null;e._refCount++;var a=r.createOperatorSubscriber(t,void 0,void 0,void 0,(function(){if(!e||e._refCount<=0||0<--e._refCount)n=null;else{var a=e._connection,r=n;n=null,!a||r&&a!==r||a.unsubscribe(),t.unsubscribe()}}));e.subscribe(a),a.closed||(n=e.connect())}))}},60423:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.repeat=void 0;var a=n(44305),r=n(96144),i=n(26122),s=n(8128),o=n(39021);t.repeat=function(e){var t,n,c=1/0;return null!=e&&("object"==typeof e?(t=e.count,c=void 0===t?1/0:t,n=e.delay):c=e),c<=0?function(){return a.EMPTY}:r.operate((function(e,t){var a,r=0,u=function(){if(null==a||a.unsubscribe(),a=null,null!=n){var e="number"==typeof n?o.timer(n):s.innerFrom(n(r)),c=i.createOperatorSubscriber(t,(function(){c.unsubscribe(),l()}));e.subscribe(c)}else l()},l=function(){var n=!1;a=e.subscribe(i.createOperatorSubscriber(t,void 0,(function(){++r<c?a?u():n=!0:t.complete()}))),n&&u()};l()}))}},36999:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.repeatWhen=void 0;var a=n(8128),r=n(22764),i=n(96144),s=n(26122);t.repeatWhen=function(e){return i.operate((function(t,n){var i,o,c=!1,u=!1,l=!1,d=function(){return l&&u&&(n.complete(),!0)},p=function(){l=!1,i=t.subscribe(s.createOperatorSubscriber(n,void 0,(function(){l=!0,!d()&&(o||(o=new r.Subject,a.innerFrom(e(o)).subscribe(s.createOperatorSubscriber(n,(function(){i?p():c=!0}),(function(){u=!0,d()})))),o).next()}))),c&&(i.unsubscribe(),i=null,c=!1,p())};p()}))}},12284:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.retry=void 0;var a=n(96144),r=n(26122),i=n(70423),s=n(39021),o=n(8128);t.retry=function(e){var t;void 0===e&&(e=1/0);var n=(t=e&&"object"==typeof e?e:{count:e}).count,c=void 0===n?1/0:n,u=t.delay,l=t.resetOnSuccess,d=void 0!==l&&l;return c<=0?i.identity:a.operate((function(e,t){var n,a=0,i=function(){var l=!1;n=e.subscribe(r.createOperatorSubscriber(t,(function(e){d&&(a=0),t.next(e)}),void 0,(function(e){if(a++<c){var d=function(){n?(n.unsubscribe(),n=null,i()):l=!0};if(null!=u){var p="number"==typeof u?s.timer(u):o.innerFrom(u(e,a)),f=r.createOperatorSubscriber(t,(function(){f.unsubscribe(),d()}),(function(){t.complete()}));p.subscribe(f)}else d()}else t.error(e)}))),l&&(n.unsubscribe(),n=null,i())};i()}))}},19856:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.retryWhen=void 0;var a=n(8128),r=n(22764),i=n(96144),s=n(26122);t.retryWhen=function(e){return i.operate((function(t,n){var i,o,c=!1,u=function(){i=t.subscribe(s.createOperatorSubscriber(n,void 0,void 0,(function(t){o||(o=new r.Subject,a.innerFrom(e(o)).subscribe(s.createOperatorSubscriber(n,(function(){return i?u():c=!0})))),o&&o.next(t)}))),c&&(i.unsubscribe(),i=null,c=!1,u())};u()}))}},26110:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sample=void 0;var a=n(8128),r=n(96144),i=n(78121),s=n(26122);t.sample=function(e){return r.operate((function(t,n){var r=!1,o=null;t.subscribe(s.createOperatorSubscriber(n,(function(e){r=!0,o=e}))),a.innerFrom(e).subscribe(s.createOperatorSubscriber(n,(function(){if(r){r=!1;var e=o;o=null,n.next(e)}}),i.noop))}))}},37547:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sampleTime=void 0;var a=n(14426),r=n(26110),i=n(93879);t.sampleTime=function(e,t){return void 0===t&&(t=a.asyncScheduler),r.sample(i.interval(e,t))}},32529:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scan=void 0;var a=n(96144),r=n(61479);t.scan=function(e,t){return a.operate(r.scanInternals(e,t,arguments.length>=2,!0))}},61479:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scanInternals=void 0;var a=n(26122);t.scanInternals=function(e,t,n,r,i){return function(s,o){var c=n,u=t,l=0;s.subscribe(a.createOperatorSubscriber(o,(function(t){var n=l++;u=c?e(u,t,n):(c=!0,t),r&&o.next(u)}),i&&function(){c&&o.next(u),o.complete()}))}}},10045:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sequenceEqual=void 0;var a=n(96144),r=n(26122),i=n(8128);t.sequenceEqual=function(e,t){return void 0===t&&(t=function(e,t){return e===t}),a.operate((function(n,a){var s={buffer:[],complete:!1},o={buffer:[],complete:!1},c=function(e){a.next(e),a.complete()},u=function(e,n){var i=r.createOperatorSubscriber(a,(function(a){var r=n.buffer,i=n.complete;0===r.length?i?c(!1):e.buffer.push(a):!t(a,r.shift())&&c(!1)}),(function(){e.complete=!0;var t=n.complete,a=n.buffer;t&&c(0===a.length),null==i||i.unsubscribe()}));return i};n.subscribe(u(s,o)),i.innerFrom(e).subscribe(u(o,s))}))}},59657:function(e,t,n){"use strict";var a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},r=this&&this.__spreadArray||function(e,t){for(var n=0,a=t.length,r=e.length;n<a;n++,r++)e[r]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.share=void 0;var i=n(8128),s=n(22764),o=n(9e3),c=n(96144);function u(e,t){for(var n=[],s=2;s<arguments.length;s++)n[s-2]=arguments[s];if(!0!==t){if(!1!==t){var c=new o.SafeSubscriber({next:function(){c.unsubscribe(),e()}});return i.innerFrom(t.apply(void 0,r([],a(n)))).subscribe(c)}}else e()}t.share=function(e){void 0===e&&(e={});var t=e.connector,n=void 0===t?function(){return new s.Subject}:t,a=e.resetOnError,r=void 0===a||a,l=e.resetOnComplete,d=void 0===l||l,p=e.resetOnRefCountZero,f=void 0===p||p;return function(e){var t,a,s,l=0,p=!1,m=!1,h=function(){null==a||a.unsubscribe(),a=void 0},b=function(){h(),t=s=void 0,p=m=!1},g=function(){var e=t;b(),null==e||e.unsubscribe()};return c.operate((function(e,c){l++,m||p||h();var v=s=null!=s?s:n();c.add((function(){0!==--l||m||p||(a=u(g,f))})),v.subscribe(c),!t&&l>0&&(t=new o.SafeSubscriber({next:function(e){return v.next(e)},error:function(e){m=!0,h(),a=u(b,r,e),v.error(e)},complete:function(){p=!0,h(),a=u(b,d),v.complete()}}),i.innerFrom(e).subscribe(t))}))(e)}}},59426:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shareReplay=void 0;var a=n(92785),r=n(59657);t.shareReplay=function(e,t,n){var i,s,o,c,u=!1;return e&&"object"==typeof e?(i=e.bufferSize,c=void 0===i?1/0:i,s=e.windowTime,t=void 0===s?1/0:s,u=void 0!==(o=e.refCount)&&o,n=e.scheduler):c=null!=e?e:1/0,r.share({connector:function(){return new a.ReplaySubject(c,t,n)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:u})}},68156:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.single=void 0;var a=n(76276),r=n(51168),i=n(48230),s=n(96144),o=n(26122);t.single=function(e){return s.operate((function(t,n){var s,c=!1,u=!1,l=0;t.subscribe(o.createOperatorSubscriber(n,(function(a){u=!0,e&&!e(a,l++,t)||(c&&n.error(new r.SequenceError("Too many matching values")),c=!0,s=a)}),(function(){c?(n.next(s),n.complete()):n.error(u?new i.NotFoundError("No matching values"):new a.EmptyError)})))}))}},94995:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skip=void 0;var a=n(49978);t.skip=function(e){return a.filter((function(t,n){return e<=n}))}},4083:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skipLast=void 0;var a=n(70423),r=n(96144),i=n(26122);t.skipLast=function(e){return e<=0?a.identity:r.operate((function(t,n){var a=new Array(e),r=0;return t.subscribe(i.createOperatorSubscriber(n,(function(t){var i=r++;if(i<e)a[i]=t;else{var s=i%e,o=a[s];a[s]=t,n.next(o)}}))),function(){a=null}}))}},41931:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skipUntil=void 0;var a=n(96144),r=n(26122),i=n(8128),s=n(78121);t.skipUntil=function(e){return a.operate((function(t,n){var a=!1,o=r.createOperatorSubscriber(n,(function(){null==o||o.unsubscribe(),a=!0}),s.noop);i.innerFrom(e).subscribe(o),t.subscribe(r.createOperatorSubscriber(n,(function(e){return a&&n.next(e)})))}))}},13658:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skipWhile=void 0;var a=n(96144),r=n(26122);t.skipWhile=function(e){return a.operate((function(t,n){var a=!1,i=0;t.subscribe(r.createOperatorSubscriber(n,(function(t){return(a||(a=!e(t,i++)))&&n.next(t)})))}))}},17938:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.startWith=void 0;var a=n(64718),r=n(31688),i=n(96144);t.startWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=r.popScheduler(e);return i.operate((function(t,r){(n?a.concat(e,t,n):a.concat(e,t)).subscribe(r)}))}},78403:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.subscribeOn=void 0;var a=n(96144);t.subscribeOn=function(e,t){return void 0===t&&(t=0),a.operate((function(n,a){a.add(e.schedule((function(){return n.subscribe(a)}),t))}))}},1437:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchAll=void 0;var a=n(48100),r=n(70423);t.switchAll=function(){return a.switchMap(r.identity)}},48100:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchMap=void 0;var a=n(8128),r=n(96144),i=n(26122);t.switchMap=function(e,t){return r.operate((function(n,r){var s=null,o=0,c=!1,u=function(){return c&&!s&&r.complete()};n.subscribe(i.createOperatorSubscriber(r,(function(n){null==s||s.unsubscribe();var c=0,l=o++;a.innerFrom(e(n,l)).subscribe(s=i.createOperatorSubscriber(r,(function(e){return r.next(t?t(n,e,l,c++):e)}),(function(){s=null,u()})))}),(function(){c=!0,u()})))}))}},71269:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchMapTo=void 0;var a=n(48100),r=n(13813);t.switchMapTo=function(e,t){return r.isFunction(t)?a.switchMap((function(){return e}),t):a.switchMap((function(){return e}))}},93377:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchScan=void 0;var a=n(48100),r=n(96144);t.switchScan=function(e,t){return r.operate((function(n,r){var i=t;return a.switchMap((function(t,n){return e(i,t,n)}),(function(e,t){return i=t,t}))(n).subscribe(r),function(){i=null}}))}},79019:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.take=void 0;var a=n(44305),r=n(96144),i=n(26122);t.take=function(e){return e<=0?function(){return a.EMPTY}:r.operate((function(t,n){var a=0;t.subscribe(i.createOperatorSubscriber(n,(function(t){++a<=e&&(n.next(t),e<=a&&n.complete())})))}))}},49275:function(e,t,n){"use strict";var a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],a=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.takeLast=void 0;var r=n(44305),i=n(96144),s=n(26122);t.takeLast=function(e){return e<=0?function(){return r.EMPTY}:i.operate((function(t,n){var r=[];t.subscribe(s.createOperatorSubscriber(n,(function(t){r.push(t),e<r.length&&r.shift()}),(function(){var e,t;try{for(var i=a(r),s=i.next();!s.done;s=i.next()){var o=s.value;n.next(o)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}n.complete()}),void 0,(function(){r=null})))}))}},29987:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.takeUntil=void 0;var a=n(96144),r=n(26122),i=n(8128),s=n(78121);t.takeUntil=function(e){return a.operate((function(t,n){i.innerFrom(e).subscribe(r.createOperatorSubscriber(n,(function(){return n.complete()}),s.noop)),!n.closed&&t.subscribe(n)}))}},76882:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.takeWhile=void 0;var a=n(96144),r=n(26122);t.takeWhile=function(e,t){return void 0===t&&(t=!1),a.operate((function(n,a){var i=0;n.subscribe(r.createOperatorSubscriber(a,(function(n){var r=e(n,i++);(r||t)&&a.next(n),!r&&a.complete()})))}))}},33399:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tap=void 0;var a=n(13813),r=n(96144),i=n(26122),s=n(70423);t.tap=function(e,t,n){var o=a.isFunction(e)||t||n?{next:e,error:t,complete:n}:e;return o?r.operate((function(e,t){var n;null===(n=o.subscribe)||void 0===n||n.call(o);var a=!0;e.subscribe(i.createOperatorSubscriber(t,(function(e){var n;null===(n=o.next)||void 0===n||n.call(o,e),t.next(e)}),(function(){var e;a=!1,null===(e=o.complete)||void 0===e||e.call(o),t.complete()}),(function(e){var n;a=!1,null===(n=o.error)||void 0===n||n.call(o,e),t.error(e)}),(function(){var e,t;a&&(null===(e=o.unsubscribe)||void 0===e||e.call(o)),null===(t=o.finalize)||void 0===t||t.call(o)})))})):s.identity}},63932:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throttle=void 0;var a=n(96144),r=n(26122),i=n(8128);t.throttle=function(e,t){return a.operate((function(n,a){var s=null!=t?t:{},o=s.leading,c=void 0===o||o,u=s.trailing,l=void 0!==u&&u,d=!1,p=null,f=null,m=!1,h=function(){null==f||f.unsubscribe(),f=null,l&&(v(),m&&a.complete())},b=function(){f=null,m&&a.complete()},g=function(t){return f=i.innerFrom(e(t)).subscribe(r.createOperatorSubscriber(a,h,b))},v=function(){if(d){d=!1;var e=p;p=null,a.next(e),!m&&g(e)}};n.subscribe(r.createOperatorSubscriber(a,(function(e){d=!0,p=e,(!f||f.closed)&&(c?v():g(e))}),(function(){m=!0,(!(l&&d&&f)||f.closed)&&a.complete()})))}))}},81793:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throttleTime=void 0;var a=n(14426),r=n(63932),i=n(39021);t.throttleTime=function(e,t,n){void 0===t&&(t=a.asyncScheduler);var s=i.timer(e,t);return r.throttle((function(){return s}),n)}},91036:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throwIfEmpty=void 0;var a=n(76276),r=n(96144),i=n(26122);function s(){return new a.EmptyError}t.throwIfEmpty=function(e){return void 0===e&&(e=s),r.operate((function(t,n){var a=!1;t.subscribe(i.createOperatorSubscriber(n,(function(e){a=!0,n.next(e)}),(function(){return a?n.complete():n.error(e())})))}))}},1368:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TimeInterval=t.timeInterval=void 0;var a=n(14426),r=n(96144),i=n(26122);t.timeInterval=function(e){return void 0===e&&(e=a.asyncScheduler),r.operate((function(t,n){var a=e.now();t.subscribe(i.createOperatorSubscriber(n,(function(t){var r=e.now(),i=r-a;a=r,n.next(new s(t,i))})))}))};var s=function(e,t){this.value=e,this.interval=t};t.TimeInterval=s},64229:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timeout=t.TimeoutError=void 0;var a=n(14426),r=n(81509),i=n(96144),s=n(8128),o=n(54367),c=n(26122),u=n(31471);function l(e){throw new t.TimeoutError(e)}t.TimeoutError=o.createErrorClass((function(e){return function(t){void 0===t&&(t=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}})),t.timeout=function(e,t){var n=r.isValidDate(e)?{first:e}:"number"==typeof e?{each:e}:e,o=n.first,d=n.each,p=n.with,f=void 0===p?l:p,m=n.scheduler,h=void 0===m?null!=t?t:a.asyncScheduler:m,b=n.meta,g=void 0===b?null:b;if(null==o&&null==d)throw new TypeError("No timeout provided.");return i.operate((function(e,t){var n,a,r=null,i=0,l=function(e){a=u.executeSchedule(t,h,(function(){try{n.unsubscribe(),s.innerFrom(f({meta:g,lastValue:r,seen:i})).subscribe(t)}catch(e){t.error(e)}}),e)};n=e.subscribe(c.createOperatorSubscriber(t,(function(e){null==a||a.unsubscribe(),i++,t.next(r=e),d>0&&l(d)}),void 0,void 0,(function(){(null==a?void 0:a.closed)||null==a||a.unsubscribe(),r=null}))),!i&&l(null!=o?"number"==typeof o?o:+o-h.now():d)}))}},20441:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timeoutWith=void 0;var a=n(14426),r=n(81509),i=n(64229);t.timeoutWith=function(e,t,n){var s,o,c;if(n=null!=n?n:a.async,r.isValidDate(e)?s=e:"number"==typeof e&&(o=e),!t)throw new TypeError("No observable provided to switch to");if(c=function(){return t},null==s&&null==o)throw new TypeError("No timeout provided.");return i.timeout({first:s,each:o,scheduler:n,with:c})}},29414:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timestamp=void 0;var a=n(95783),r=n(77108);t.timestamp=function(e){return void 0===e&&(e=a.dateTimestampProvider),r.map((function(t){return{value:t,timestamp:e.now()}}))}},23680:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toArray=void 0;var a=n(45970),r=n(96144),i=function(e,t){return e.push(t),e};t.toArray=function(){return r.operate((function(e,t){a.reduce(i,[])(e).subscribe(t)}))}},52860:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.window=void 0;var a=n(22764),r=n(96144),i=n(26122),s=n(78121),o=n(8128);t.window=function(e){return r.operate((function(t,n){var r=new a.Subject;n.next(r.asObservable());var c=function(e){r.error(e),n.error(e)};return t.subscribe(i.createOperatorSubscriber(n,(function(e){return null==r?void 0:r.next(e)}),(function(){r.complete(),n.complete()}),c)),o.innerFrom(e).subscribe(i.createOperatorSubscriber(n,(function(){r.complete(),n.next(r=new a.Subject)}),s.noop,c)),function(){null==r||r.unsubscribe(),r=null}}))}},91641:function(e,t,n){"use strict";var a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],a=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.windowCount=void 0;var r=n(22764),i=n(96144),s=n(26122);t.windowCount=function(e,t){void 0===t&&(t=0);var n=t>0?t:e;return i.operate((function(t,i){var o=[new r.Subject],c=0;i.next(o[0].asObservable()),t.subscribe(s.createOperatorSubscriber(i,(function(t){var s,u;try{for(var l=a(o),d=l.next();!d.done;d=l.next()){d.value.next(t)}}catch(e){s={error:e}}finally{try{d&&!d.done&&(u=l.return)&&u.call(l)}finally{if(s)throw s.error}}var p=c-e+1;if(p>=0&&p%n==0&&o.shift().complete(),++c%n==0){var f=new r.Subject;o.push(f),i.next(f.asObservable())}}),(function(){for(;o.length>0;)o.shift().complete();i.complete()}),(function(e){for(;o.length>0;)o.shift().error(e);i.error(e)}),(function(){null,o=null})))}))}},4129:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.windowTime=void 0;var a=n(22764),r=n(14426),i=n(59099),s=n(96144),o=n(26122),c=n(83370),u=n(31688),l=n(31471);t.windowTime=function(e){for(var t,n,d=[],p=1;p<arguments.length;p++)d[p-1]=arguments[p];var f=null!==(t=u.popScheduler(d))&&void 0!==t?t:r.asyncScheduler,m=null!==(n=d[0])&&void 0!==n?n:null,h=d[1]||1/0;return s.operate((function(t,n){var r=[],s=!1,u=function(e){var t=e.window,n=e.subs;t.complete(),n.unsubscribe(),c.arrRemove(r,e),s&&d()},d=function(){if(r){var t=new i.Subscription;n.add(t);var s=new a.Subject,o={window:s,subs:t,seen:0};r.push(o),n.next(s.asObservable()),l.executeSchedule(t,f,(function(){return u(o)}),e)}};null!==m&&m>=0?l.executeSchedule(n,f,d,m,!0):s=!0,d();var p=function(e){return r.slice().forEach(e)},b=function(e){p((function(t){var n=t.window;return e(n)})),e(n),n.unsubscribe()};return t.subscribe(o.createOperatorSubscriber(n,(function(e){p((function(t){t.window.next(e),h<=++t.seen&&u(t)}))}),(function(){return b((function(e){return e.complete()}))}),(function(e){return b((function(t){return t.error(e)}))}))),function(){r=null}}))}},23560:function(e,t,n){"use strict";var a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],a=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.windowToggle=void 0;var r=n(22764),i=n(59099),s=n(96144),o=n(8128),c=n(26122),u=n(78121),l=n(83370);t.windowToggle=function(e,t){return s.operate((function(n,s){var d=[],p=function(e){for(;0<d.length;)d.shift().error(e);s.error(e)};o.innerFrom(e).subscribe(c.createOperatorSubscriber(s,(function(e){var n=new r.Subject;d.push(n);var a,f=new i.Subscription;try{a=o.innerFrom(t(e))}catch(e){return void p(e)}s.next(n.asObservable()),f.add(a.subscribe(c.createOperatorSubscriber(s,(function(){l.arrRemove(d,n),n.complete(),f.unsubscribe()}),u.noop,p)))}),u.noop)),n.subscribe(c.createOperatorSubscriber(s,(function(e){var t,n,r=d.slice();try{for(var i=a(r),s=i.next();!s.done;s=i.next()){s.value.next(e)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}}),(function(){for(;0<d.length;)d.shift().complete();s.complete()}),p,(function(){for(;0<d.length;)d.shift().unsubscribe()})))}))}},72368:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.windowWhen=void 0;var a=n(22764),r=n(96144),i=n(26122),s=n(8128);t.windowWhen=function(e){return r.operate((function(t,n){var r,o,c=function(e){r.error(e),n.error(e)},u=function(){var t;null==o||o.unsubscribe(),null==r||r.complete(),r=new a.Subject,n.next(r.asObservable());try{t=s.innerFrom(e())}catch(e){return void c(e)}t.subscribe(o=i.createOperatorSubscriber(n,u,u,c))};u(),t.subscribe(i.createOperatorSubscriber(n,(function(e){return r.next(e)}),(function(){r.complete(),n.complete()}),c,(function(){null==o||o.unsubscribe(),r=null})))}))}},50483:function(e,t,n){"use strict";var a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},r=this&&this.__spreadArray||function(e,t){for(var n=0,a=t.length,r=e.length;n<a;n++,r++)e[r]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.withLatestFrom=void 0;var i=n(96144),s=n(26122),o=n(8128),c=n(70423),u=n(78121),l=n(31688);t.withLatestFrom=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=l.popResultSelector(e);return i.operate((function(t,i){for(var l=e.length,d=new Array(l),p=e.map((function(){return!1})),f=!1,m=function(t){o.innerFrom(e[t]).subscribe(s.createOperatorSubscriber(i,(function(e){d[t]=e,f||p[t]||(p[t]=!0,(f=p.every(c.identity))&&(p=null))}),u.noop))},h=0;h<l;h++)m(h);t.subscribe(s.createOperatorSubscriber(i,(function(e){if(f){var t=r([e],a(d));i.next(n?n.apply(void 0,r([],a(t))):t)}})))}))}},62753:function(e,t,n){"use strict";var a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},r=this&&this.__spreadArray||function(e,t){for(var n=0,a=t.length,r=e.length;n<a;n++,r++)e[r]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.zip=void 0;var i=n(78539),s=n(96144);t.zip=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s.operate((function(t,n){i.zip.apply(void 0,r([t],a(e))).subscribe(n)}))}},86990:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zipAll=void 0;var a=n(78539),r=n(75235);t.zipAll=function(e){return r.joinAllInternals(a.zip,e)}},90293:function(e,t,n){"use strict";var a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},r=this&&this.__spreadArray||function(e,t){for(var n=0,a=t.length,r=e.length;n<a;n++,r++)e[r]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.zipWith=void 0;var i=n(62753);t.zipWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.zip.apply(void 0,r([],a(e)))}},2450:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleArray=void 0;var a=n(39311);t.scheduleArray=function(e,t){return new a.Observable((function(n){var a=0;return t.schedule((function(){a===e.length?n.complete():(n.next(e[a++]),n.closed||this.schedule())}))}))}},49301:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleAsyncIterable=void 0;var a=n(39311),r=n(31471);t.scheduleAsyncIterable=function(e,t){if(!e)throw new Error("Iterable cannot be null");return new a.Observable((function(n){r.executeSchedule(n,t,(function(){var a=e[Symbol.asyncIterator]();r.executeSchedule(n,t,(function(){a.next().then((function(e){e.done?n.complete():n.next(e.value)}))}),0,!0)}))}))}},33225:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleIterable=void 0;var a=n(39311),r=n(88999),i=n(13813),s=n(31471);t.scheduleIterable=function(e,t){return new a.Observable((function(n){var a;return s.executeSchedule(n,t,(function(){a=e[r.iterator](),s.executeSchedule(n,t,(function(){var e,t,r;try{t=(e=a.next()).value,r=e.done}catch(e){return void n.error(e)}r?n.complete():n.next(t)}),0,!0)})),function(){return i.isFunction(null==a?void 0:a.return)&&a.return()}}))}},25934:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleObservable=void 0;var a=n(8128),r=n(84475),i=n(78403);t.scheduleObservable=function(e,t){return a.innerFrom(e).pipe(i.subscribeOn(t),r.observeOn(t))}},41910:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.schedulePromise=void 0;var a=n(8128),r=n(84475),i=n(78403);t.schedulePromise=function(e,t){return a.innerFrom(e).pipe(i.subscribeOn(t),r.observeOn(t))}},7224:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleReadableStreamLike=void 0;var a=n(49301),r=n(80106);t.scheduleReadableStreamLike=function(e,t){return a.scheduleAsyncIterable(r.readableStreamLikeToAsyncGenerator(e),t)}},17047:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduled=void 0;var a=n(25934),r=n(41910),i=n(2450),s=n(33225),o=n(49301),c=n(73793),u=n(98700),l=n(81123),d=n(3975),p=n(8995),f=n(49797),m=n(80106),h=n(7224);t.scheduled=function(e,t){if(null!=e){if(c.isInteropObservable(e))return a.scheduleObservable(e,t);if(l.isArrayLike(e))return i.scheduleArray(e,t);if(u.isPromise(e))return r.schedulePromise(e,t);if(p.isAsyncIterable(e))return o.scheduleAsyncIterable(e,t);if(d.isIterable(e))return s.scheduleIterable(e,t);if(m.isReadableStreamLike(e))return h.scheduleReadableStreamLike(e,t)}throw f.createInvalidObservableTypeError(e)}},92094:function(e,t,n){"use strict";var a,r=this&&this.__extends||(a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},a(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Action=void 0;var i=function(e){function t(t,n){return e.call(this)||this}return r(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(n(59099).Subscription);t.Action=i},36192:function(e,t,n){"use strict";var a,r=this&&this.__extends||(a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},a(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncAction=void 0;var i=n(92094),s=n(17240),o=n(83370),c=function(e){function t(t,n){var a=e.call(this,t,n)||this;return a.scheduler=t,a.work=n,a.pending=!1,a}return r(t,e),t.prototype.schedule=function(e,t){var n;if(void 0===t&&(t=0),this.closed)return this;this.state=e;var a=this.id,r=this.scheduler;return null!=a&&(this.id=this.recycleAsyncId(r,a,t)),this.pending=!0,this.delay=t,this.id=null!==(n=this.id)&&void 0!==n?n:this.requestAsyncId(r,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),s.intervalProvider.setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!=n&&this.delay===n&&!1===this.pending)return t;null!=t&&s.intervalProvider.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n,a=!1;try{this.work(e)}catch(e){a=!0,n=e||new Error("Scheduled action threw falsy error")}if(a)return this.unsubscribe(),n},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,n=this.scheduler,a=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,o.arrRemove(a,this),null!=t&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(i.Action);t.AsyncAction=c},47777:function(e,t,n){"use strict";var a,r=this&&this.__extends||(a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},a(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncScheduler=void 0;var i=n(53357),s=function(e){function t(t,n){void 0===n&&(n=i.Scheduler.now);var a=e.call(this,t,n)||this;return a.actions=[],a._active=!1,a}return r(t,e),t.prototype.flush=function(e){var t=this.actions;if(this._active)t.push(e);else{var n;this._active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(i.Scheduler);t.AsyncScheduler=s},14426:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.async=t.asyncScheduler=void 0;var a=n(36192),r=n(47777);t.asyncScheduler=new r.AsyncScheduler(a.AsyncAction),t.async=t.asyncScheduler},95783:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dateTimestampProvider=void 0,t.dateTimestampProvider={now:function(){return(t.dateTimestampProvider.delegate||Date).now()},delegate:void 0}},17240:function(e,t){"use strict";var n=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},a=this&&this.__spreadArray||function(e,t){for(var n=0,a=t.length,r=e.length;n<a;n++,r++)e[r]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.intervalProvider=void 0,t.intervalProvider={setInterval:function(e,r){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var o=t.intervalProvider.delegate;return(null==o?void 0:o.setInterval)?o.setInterval.apply(o,a([e,r],n(i))):setInterval.apply(void 0,a([e,r],n(i)))},clearInterval:function(e){var n=t.intervalProvider.delegate;return((null==n?void 0:n.clearInterval)||clearInterval)(e)},delegate:void 0}},82596:function(e,t){"use strict";var n=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},a=this&&this.__spreadArray||function(e,t){for(var n=0,a=t.length,r=e.length;n<a;n++,r++)e[r]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.timeoutProvider=void 0,t.timeoutProvider={setTimeout:function(e,r){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var o=t.timeoutProvider.delegate;return(null==o?void 0:o.setTimeout)?o.setTimeout.apply(o,a([e,r],n(i))):setTimeout.apply(void 0,a([e,r],n(i)))},clearTimeout:function(e){var n=t.timeoutProvider.delegate;return((null==n?void 0:n.clearTimeout)||clearTimeout)(e)},delegate:void 0}},88999:(e,t)=>{"use strict";function n(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}Object.defineProperty(t,"__esModule",{value:!0}),t.iterator=t.getSymbolIterator=void 0,t.getSymbolIterator=n,t.iterator=n()},70776:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.observable=void 0,t.observable="function"==typeof Symbol&&Symbol.observable||"@@observable"},89732:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArgumentOutOfRangeError=void 0;var a=n(54367);t.ArgumentOutOfRangeError=a.createErrorClass((function(e){return function(){e(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}}))},76276:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyError=void 0;var a=n(54367);t.EmptyError=a.createErrorClass((function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}}))},48230:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NotFoundError=void 0;var a=n(54367);t.NotFoundError=a.createErrorClass((function(e){return function(t){e(this),this.name="NotFoundError",this.message=t}}))},68955:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectUnsubscribedError=void 0;var a=n(54367);t.ObjectUnsubscribedError=a.createErrorClass((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}))},51168:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SequenceError=void 0;var a=n(54367);t.SequenceError=a.createErrorClass((function(e){return function(t){e(this),this.name="SequenceError",this.message=t}}))},69905:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnsubscriptionError=void 0;var a=n(54367);t.UnsubscriptionError=a.createErrorClass((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}))},31688:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.popNumber=t.popScheduler=t.popResultSelector=void 0;var a=n(13813),r=n(9520);function i(e){return e[e.length-1]}t.popResultSelector=function(e){return a.isFunction(i(e))?e.pop():void 0},t.popScheduler=function(e){return r.isScheduler(i(e))?e.pop():void 0},t.popNumber=function(e,t){return"number"==typeof i(e)?e.pop():t}},27267:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.argsArgArrayOrObject=void 0;var n=Array.isArray,a=Object.getPrototypeOf,r=Object.prototype,i=Object.keys;t.argsArgArrayOrObject=function(e){if(1===e.length){var t=e[0];if(n(t))return{args:t,keys:null};if((o=t)&&"object"==typeof o&&a(o)===r){var s=i(t);return{args:s.map((function(e){return t[e]})),keys:s}}}var o;return{args:e,keys:null}}},27976:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.argsOrArgArray=void 0;var n=Array.isArray;t.argsOrArgArray=function(e){return 1===e.length&&n(e[0])?e[0]:e}},83370:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrRemove=void 0,t.arrRemove=function(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}},54367:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createErrorClass=void 0,t.createErrorClass=function(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}},30206:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createObject=void 0,t.createObject=function(e,t){return e.reduce((function(e,n,a){return e[n]=t[a],e}),{})}},23236:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.captureError=t.errorContext=void 0;var a=n(80020),r=null;t.errorContext=function(e){if(a.config.useDeprecatedSynchronousErrorHandling){var t=!r;if(t&&(r={errorThrown:!1,error:null}),e(),t){var n=r,i=n.errorThrown,s=n.error;if(r=null,i)throw s}}else e()},t.captureError=function(e){a.config.useDeprecatedSynchronousErrorHandling&&r&&(r.errorThrown=!0,r.error=e)}},31471:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.executeSchedule=void 0,t.executeSchedule=function(e,t,n,a,r){void 0===a&&(a=0),void 0===r&&(r=!1);var i=t.schedule((function(){n(),r?e.add(this.schedule(null,a)):this.unsubscribe()}),a);if(e.add(i),!r)return i}},70423:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.identity=void 0,t.identity=function(e){return e}},81123:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isArrayLike=void 0,t.isArrayLike=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},8995:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAsyncIterable=void 0;var a=n(13813);t.isAsyncIterable=function(e){return Symbol.asyncIterator&&a.isFunction(null==e?void 0:e[Symbol.asyncIterator])}},81509:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidDate=void 0,t.isValidDate=function(e){return e instanceof Date&&!isNaN(e)}},13813:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFunction=void 0,t.isFunction=function(e){return"function"==typeof e}},73793:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isInteropObservable=void 0;var a=n(70776),r=n(13813);t.isInteropObservable=function(e){return r.isFunction(e[a.observable])}},3975:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isIterable=void 0;var a=n(88999),r=n(13813);t.isIterable=function(e){return r.isFunction(null==e?void 0:e[a.iterator])}},98700:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPromise=void 0;var a=n(13813);t.isPromise=function(e){return a.isFunction(null==e?void 0:e.then)}},80106:function(e,t,n){"use strict";var a=this&&this.__generator||function(e,t){var n,a,r,i,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function o(i){return function(o){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,a&&(r=2&i[0]?a.return:i[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,i[1])).done)return r;switch(a=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,a=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(r=s.trys,(r=r.length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){s.label=i[1];break}if(6===i[0]&&s.label<r[1]){s.label=r[1],r=i;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(i);break}r[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],a=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,o])}}},r=this&&this.__await||function(e){return this instanceof r?(this.v=e,this):new r(e)},i=this&&this.__asyncGenerator||function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a,i=n.apply(e,t||[]),s=[];return a={},o("next"),o("throw"),o("return"),a[Symbol.asyncIterator]=function(){return this},a;function o(e){i[e]&&(a[e]=function(t){return new Promise((function(n,a){s.push([e,t,n,a])>1||c(e,t)}))})}function c(e,t){try{(n=i[e](t)).value instanceof r?Promise.resolve(n.value.v).then(u,l):d(s[0][2],n)}catch(e){d(s[0][3],e)}var n}function u(e){c("next",e)}function l(e){c("throw",e)}function d(e,t){e(t),s.shift(),s.length&&c(s[0][0],s[0][1])}};Object.defineProperty(t,"__esModule",{value:!0}),t.isReadableStreamLike=t.readableStreamLikeToAsyncGenerator=void 0;var s=n(13813);t.readableStreamLikeToAsyncGenerator=function(e){return i(this,arguments,(function(){var t,n,i;return a(this,(function(a){switch(a.label){case 0:t=e.getReader(),a.label=1;case 1:a.trys.push([1,,9,10]),a.label=2;case 2:return[4,r(t.read())];case 3:return n=a.sent(),i=n.value,n.done?[4,r(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,r(i)];case 6:return[4,a.sent()];case 7:return a.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}}))}))},t.isReadableStreamLike=function(e){return s.isFunction(null==e?void 0:e.getReader)}},9520:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isScheduler=void 0;var a=n(13813);t.isScheduler=function(e){return e&&a.isFunction(e.schedule)}},96144:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.operate=t.hasLift=void 0;var a=n(13813);function r(e){return a.isFunction(null==e?void 0:e.lift)}t.hasLift=r,t.operate=function(e){return function(t){if(r(t))return t.lift((function(t){try{return e(t,this)}catch(e){this.error(e)}}));throw new TypeError("Unable to lift unknown Observable type")}}},8824:function(e,t,n){"use strict";var a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},r=this&&this.__spreadArray||function(e,t){for(var n=0,a=t.length,r=e.length;n<a;n++,r++)e[r]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.mapOneOrManyArgs=void 0;var i=n(77108),s=Array.isArray;t.mapOneOrManyArgs=function(e){return i.map((function(t){return function(e,t){return s(t)?e.apply(void 0,r([],a(t))):e(t)}(e,t)}))}},78121:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.noop=void 0,t.noop=function(){}},97684:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.not=void 0,t.not=function(e,t){return function(n,a){return!e.call(t,n,a)}}},18257:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pipeFromArray=t.pipe=void 0;var a=n(70423);function r(e){return 0===e.length?a.identity:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}t.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r(e)},t.pipeFromArray=r},91072:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reportUnhandledError=void 0;var a=n(80020),r=n(82596);t.reportUnhandledError=function(e){r.timeoutProvider.setTimeout((function(){var t=a.config.onUnhandledError;if(!t)throw e;t(e)}))}},49797:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createInvalidObservableTypeError=void 0,t.createInvalidObservableTypeError=function(e){return new TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}},1390:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeAll=t.merge=t.max=t.materialize=t.mapTo=t.map=t.last=t.isEmpty=t.ignoreElements=t.groupBy=t.first=t.findIndex=t.find=t.finalize=t.filter=t.expand=t.exhaustMap=t.exhaustAll=t.exhaust=t.every=t.endWith=t.elementAt=t.distinctUntilKeyChanged=t.distinctUntilChanged=t.distinct=t.dematerialize=t.delayWhen=t.delay=t.defaultIfEmpty=t.debounceTime=t.debounce=t.count=t.connect=t.concatWith=t.concatMapTo=t.concatMap=t.concatAll=t.concat=t.combineLatestWith=t.combineLatest=t.combineLatestAll=t.combineAll=t.catchError=t.bufferWhen=t.bufferToggle=t.bufferTime=t.bufferCount=t.buffer=t.auditTime=t.audit=void 0,t.timeInterval=t.throwIfEmpty=t.throttleTime=t.throttle=t.tap=t.takeWhile=t.takeUntil=t.takeLast=t.take=t.switchScan=t.switchMapTo=t.switchMap=t.switchAll=t.subscribeOn=t.startWith=t.skipWhile=t.skipUntil=t.skipLast=t.skip=t.single=t.shareReplay=t.share=t.sequenceEqual=t.scan=t.sampleTime=t.sample=t.refCount=t.retryWhen=t.retry=t.repeatWhen=t.repeat=t.reduce=t.raceWith=t.race=t.publishReplay=t.publishLast=t.publishBehavior=t.publish=t.pluck=t.partition=t.pairwise=t.onErrorResumeNext=t.observeOn=t.multicast=t.min=t.mergeWith=t.mergeScan=t.mergeMapTo=t.mergeMap=t.flatMap=void 0,t.zipWith=t.zipAll=t.zip=t.withLatestFrom=t.windowWhen=t.windowToggle=t.windowTime=t.windowCount=t.window=t.toArray=t.timestamp=t.timeoutWith=t.timeout=void 0;var a=n(32134);Object.defineProperty(t,"audit",{enumerable:!0,get:function(){return a.audit}});var r=n(27276);Object.defineProperty(t,"auditTime",{enumerable:!0,get:function(){return r.auditTime}});var i=n(32158);Object.defineProperty(t,"buffer",{enumerable:!0,get:function(){return i.buffer}});var s=n(48411);Object.defineProperty(t,"bufferCount",{enumerable:!0,get:function(){return s.bufferCount}});var o=n(49451);Object.defineProperty(t,"bufferTime",{enumerable:!0,get:function(){return o.bufferTime}});var c=n(25214);Object.defineProperty(t,"bufferToggle",{enumerable:!0,get:function(){return c.bufferToggle}});var u=n(74722);Object.defineProperty(t,"bufferWhen",{enumerable:!0,get:function(){return u.bufferWhen}});var l=n(44755);Object.defineProperty(t,"catchError",{enumerable:!0,get:function(){return l.catchError}});var d=n(11928);Object.defineProperty(t,"combineAll",{enumerable:!0,get:function(){return d.combineAll}});var p=n(89337);Object.defineProperty(t,"combineLatestAll",{enumerable:!0,get:function(){return p.combineLatestAll}});var f=n(91336);Object.defineProperty(t,"combineLatest",{enumerable:!0,get:function(){return f.combineLatest}});var m=n(44720);Object.defineProperty(t,"combineLatestWith",{enumerable:!0,get:function(){return m.combineLatestWith}});var h=n(13244);Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return h.concat}});var b=n(47445);Object.defineProperty(t,"concatAll",{enumerable:!0,get:function(){return b.concatAll}});var g=n(41292);Object.defineProperty(t,"concatMap",{enumerable:!0,get:function(){return g.concatMap}});var v=n(41565);Object.defineProperty(t,"concatMapTo",{enumerable:!0,get:function(){return v.concatMapTo}});var y=n(24804);Object.defineProperty(t,"concatWith",{enumerable:!0,get:function(){return y.concatWith}});var _=n(30624);Object.defineProperty(t,"connect",{enumerable:!0,get:function(){return _.connect}});var E=n(32785);Object.defineProperty(t,"count",{enumerable:!0,get:function(){return E.count}});var x=n(2483);Object.defineProperty(t,"debounce",{enumerable:!0,get:function(){return x.debounce}});var T=n(42134);Object.defineProperty(t,"debounceTime",{enumerable:!0,get:function(){return T.debounceTime}});var O=n(18907);Object.defineProperty(t,"defaultIfEmpty",{enumerable:!0,get:function(){return O.defaultIfEmpty}});var $=n(89025);Object.defineProperty(t,"delay",{enumerable:!0,get:function(){return $.delay}});var A=n(30281);Object.defineProperty(t,"delayWhen",{enumerable:!0,get:function(){return A.delayWhen}});var S=n(14150);Object.defineProperty(t,"dematerialize",{enumerable:!0,get:function(){return S.dematerialize}});var D=n(28064);Object.defineProperty(t,"distinct",{enumerable:!0,get:function(){return D.distinct}});var w=n(92776);Object.defineProperty(t,"distinctUntilChanged",{enumerable:!0,get:function(){return w.distinctUntilChanged}});var C=n(35135);Object.defineProperty(t,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return C.distinctUntilKeyChanged}});var R=n(59635);Object.defineProperty(t,"elementAt",{enumerable:!0,get:function(){return R.elementAt}});var N=n(9859);Object.defineProperty(t,"endWith",{enumerable:!0,get:function(){return N.endWith}});var I=n(95165);Object.defineProperty(t,"every",{enumerable:!0,get:function(){return I.every}});var M=n(30900);Object.defineProperty(t,"exhaust",{enumerable:!0,get:function(){return M.exhaust}});var P=n(73245);Object.defineProperty(t,"exhaustAll",{enumerable:!0,get:function(){return P.exhaustAll}});var L=n(70948);Object.defineProperty(t,"exhaustMap",{enumerable:!0,get:function(){return L.exhaustMap}});var j=n(652);Object.defineProperty(t,"expand",{enumerable:!0,get:function(){return j.expand}});var k=n(49978);Object.defineProperty(t,"filter",{enumerable:!0,get:function(){return k.filter}});var F=n(28342);Object.defineProperty(t,"finalize",{enumerable:!0,get:function(){return F.finalize}});var U=n(12475);Object.defineProperty(t,"find",{enumerable:!0,get:function(){return U.find}});var q=n(95023);Object.defineProperty(t,"findIndex",{enumerable:!0,get:function(){return q.findIndex}});var B=n(2816);Object.defineProperty(t,"first",{enumerable:!0,get:function(){return B.first}});var H=n(58628);Object.defineProperty(t,"groupBy",{enumerable:!0,get:function(){return H.groupBy}});var G=n(96835);Object.defineProperty(t,"ignoreElements",{enumerable:!0,get:function(){return G.ignoreElements}});var W=n(30711);Object.defineProperty(t,"isEmpty",{enumerable:!0,get:function(){return W.isEmpty}});var V=n(67972);Object.defineProperty(t,"last",{enumerable:!0,get:function(){return V.last}});var Y=n(77108);Object.defineProperty(t,"map",{enumerable:!0,get:function(){return Y.map}});var z=n(29685);Object.defineProperty(t,"mapTo",{enumerable:!0,get:function(){return z.mapTo}});var K=n(37399);Object.defineProperty(t,"materialize",{enumerable:!0,get:function(){return K.materialize}});var Z=n(76780);Object.defineProperty(t,"max",{enumerable:!0,get:function(){return Z.max}});var J=n(55958);Object.defineProperty(t,"merge",{enumerable:!0,get:function(){return J.merge}});var Q=n(28931);Object.defineProperty(t,"mergeAll",{enumerable:!0,get:function(){return Q.mergeAll}});var X=n(56249);Object.defineProperty(t,"flatMap",{enumerable:!0,get:function(){return X.flatMap}});var ee=n(17562);Object.defineProperty(t,"mergeMap",{enumerable:!0,get:function(){return ee.mergeMap}});var te=n(36399);Object.defineProperty(t,"mergeMapTo",{enumerable:!0,get:function(){return te.mergeMapTo}});var ne=n(89071);Object.defineProperty(t,"mergeScan",{enumerable:!0,get:function(){return ne.mergeScan}});var ae=n(71794);Object.defineProperty(t,"mergeWith",{enumerable:!0,get:function(){return ae.mergeWith}});var re=n(3906);Object.defineProperty(t,"min",{enumerable:!0,get:function(){return re.min}});var ie=n(30044);Object.defineProperty(t,"multicast",{enumerable:!0,get:function(){return ie.multicast}});var se=n(84475);Object.defineProperty(t,"observeOn",{enumerable:!0,get:function(){return se.observeOn}});var oe=n(21701);Object.defineProperty(t,"onErrorResumeNext",{enumerable:!0,get:function(){return oe.onErrorResumeNext}});var ce=n(49156);Object.defineProperty(t,"pairwise",{enumerable:!0,get:function(){return ce.pairwise}});var ue=n(22544);Object.defineProperty(t,"partition",{enumerable:!0,get:function(){return ue.partition}});var le=n(51671);Object.defineProperty(t,"pluck",{enumerable:!0,get:function(){return le.pluck}});var de=n(34513);Object.defineProperty(t,"publish",{enumerable:!0,get:function(){return de.publish}});var pe=n(18247);Object.defineProperty(t,"publishBehavior",{enumerable:!0,get:function(){return pe.publishBehavior}});var fe=n(10413);Object.defineProperty(t,"publishLast",{enumerable:!0,get:function(){return fe.publishLast}});var me=n(71274);Object.defineProperty(t,"publishReplay",{enumerable:!0,get:function(){return me.publishReplay}});var he=n(66085);Object.defineProperty(t,"race",{enumerable:!0,get:function(){return he.race}});var be=n(38585);Object.defineProperty(t,"raceWith",{enumerable:!0,get:function(){return be.raceWith}});var ge=n(45970);Object.defineProperty(t,"reduce",{enumerable:!0,get:function(){return ge.reduce}});var ve=n(60423);Object.defineProperty(t,"repeat",{enumerable:!0,get:function(){return ve.repeat}});var ye=n(36999);Object.defineProperty(t,"repeatWhen",{enumerable:!0,get:function(){return ye.repeatWhen}});var _e=n(12284);Object.defineProperty(t,"retry",{enumerable:!0,get:function(){return _e.retry}});var Ee=n(19856);Object.defineProperty(t,"retryWhen",{enumerable:!0,get:function(){return Ee.retryWhen}});var xe=n(73220);Object.defineProperty(t,"refCount",{enumerable:!0,get:function(){return xe.refCount}});var Te=n(26110);Object.defineProperty(t,"sample",{enumerable:!0,get:function(){return Te.sample}});var Oe=n(37547);Object.defineProperty(t,"sampleTime",{enumerable:!0,get:function(){return Oe.sampleTime}});var $e=n(32529);Object.defineProperty(t,"scan",{enumerable:!0,get:function(){return $e.scan}});var Ae=n(10045);Object.defineProperty(t,"sequenceEqual",{enumerable:!0,get:function(){return Ae.sequenceEqual}});var Se=n(59657);Object.defineProperty(t,"share",{enumerable:!0,get:function(){return Se.share}});var De=n(59426);Object.defineProperty(t,"shareReplay",{enumerable:!0,get:function(){return De.shareReplay}});var we=n(68156);Object.defineProperty(t,"single",{enumerable:!0,get:function(){return we.single}});var Ce=n(94995);Object.defineProperty(t,"skip",{enumerable:!0,get:function(){return Ce.skip}});var Re=n(4083);Object.defineProperty(t,"skipLast",{enumerable:!0,get:function(){return Re.skipLast}});var Ne=n(41931);Object.defineProperty(t,"skipUntil",{enumerable:!0,get:function(){return Ne.skipUntil}});var Ie=n(13658);Object.defineProperty(t,"skipWhile",{enumerable:!0,get:function(){return Ie.skipWhile}});var Me=n(17938);Object.defineProperty(t,"startWith",{enumerable:!0,get:function(){return Me.startWith}});var Pe=n(78403);Object.defineProperty(t,"subscribeOn",{enumerable:!0,get:function(){return Pe.subscribeOn}});var Le=n(1437);Object.defineProperty(t,"switchAll",{enumerable:!0,get:function(){return Le.switchAll}});var je=n(48100);Object.defineProperty(t,"switchMap",{enumerable:!0,get:function(){return je.switchMap}});var ke=n(71269);Object.defineProperty(t,"switchMapTo",{enumerable:!0,get:function(){return ke.switchMapTo}});var Fe=n(93377);Object.defineProperty(t,"switchScan",{enumerable:!0,get:function(){return Fe.switchScan}});var Ue=n(79019);Object.defineProperty(t,"take",{enumerable:!0,get:function(){return Ue.take}});var qe=n(49275);Object.defineProperty(t,"takeLast",{enumerable:!0,get:function(){return qe.takeLast}});var Be=n(29987);Object.defineProperty(t,"takeUntil",{enumerable:!0,get:function(){return Be.takeUntil}});var He=n(76882);Object.defineProperty(t,"takeWhile",{enumerable:!0,get:function(){return He.takeWhile}});var Ge=n(33399);Object.defineProperty(t,"tap",{enumerable:!0,get:function(){return Ge.tap}});var We=n(63932);Object.defineProperty(t,"throttle",{enumerable:!0,get:function(){return We.throttle}});var Ve=n(81793);Object.defineProperty(t,"throttleTime",{enumerable:!0,get:function(){return Ve.throttleTime}});var Ye=n(91036);Object.defineProperty(t,"throwIfEmpty",{enumerable:!0,get:function(){return Ye.throwIfEmpty}});var ze=n(1368);Object.defineProperty(t,"timeInterval",{enumerable:!0,get:function(){return ze.timeInterval}});var Ke=n(64229);Object.defineProperty(t,"timeout",{enumerable:!0,get:function(){return Ke.timeout}});var Ze=n(20441);Object.defineProperty(t,"timeoutWith",{enumerable:!0,get:function(){return Ze.timeoutWith}});var Je=n(29414);Object.defineProperty(t,"timestamp",{enumerable:!0,get:function(){return Je.timestamp}});var Qe=n(23680);Object.defineProperty(t,"toArray",{enumerable:!0,get:function(){return Qe.toArray}});var Xe=n(52860);Object.defineProperty(t,"window",{enumerable:!0,get:function(){return Xe.window}});var et=n(91641);Object.defineProperty(t,"windowCount",{enumerable:!0,get:function(){return et.windowCount}});var tt=n(4129);Object.defineProperty(t,"windowTime",{enumerable:!0,get:function(){return tt.windowTime}});var nt=n(23560);Object.defineProperty(t,"windowToggle",{enumerable:!0,get:function(){return nt.windowToggle}});var at=n(72368);Object.defineProperty(t,"windowWhen",{enumerable:!0,get:function(){return at.windowWhen}});var rt=n(50483);Object.defineProperty(t,"withLatestFrom",{enumerable:!0,get:function(){return rt.withLatestFrom}});var it=n(62753);Object.defineProperty(t,"zip",{enumerable:!0,get:function(){return it.zip}});var st=n(86990);Object.defineProperty(t,"zipAll",{enumerable:!0,get:function(){return st.zipAll}});var ot=n(90293);Object.defineProperty(t,"zipWith",{enumerable:!0,get:function(){return ot.zipWith}})},53273:(e,t,n)=>{"use strict";const a=n(36663),r=n(29807),i=n(86102),s=e=>{if("string"!=typeof e||0===e.length)return 0;if(0===(e=a(e)).length)return 0;e=e.replace(i()," ");let t=0;for(let n=0;n<e.length;n++){const a=e.codePointAt(n);a<=31||a>=127&&a<=159||(a>=768&&a<=879||(a>65535&&n++,t+=r(a)?2:1))}return t};e.exports=s,e.exports.default=s},36663:(e,t,n)=>{"use strict";const a=n(56954);e.exports=e=>"string"==typeof e?e.replace(a(),""):e},11754:(e,t,n)=>{"use strict";const a=n(70857),r=n(54891),i=process.env;let s;function o(e){const t=function(e){if(!1===s)return 0;if(r("color=16m")||r("color=full")||r("color=truecolor"))return 3;if(r("color=256"))return 2;if(e&&!e.isTTY&&!0!==s)return 0;const t=s?1:0;if("win32"===process.platform){const e=a.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in i)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in i))||"codeship"===i.CI_NAME?1:t;if("TEAMCITY_VERSION"in i)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0;if("truecolor"===i.COLORTERM)return 3;if("TERM_PROGRAM"in i){const e=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(i.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)||"COLORTERM"in i?1:(i.TERM,t)}(e);return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(t)}r("no-color")||r("no-colors")||r("color=false")?s=!1:(r("color")||r("colors")||r("color=true")||r("color=always"))&&(s=!0),"FORCE_COLOR"in i&&(s=0===i.FORCE_COLOR.length||0!==parseInt(i.FORCE_COLOR,10)),e.exports={supportsColor:o,stdout:o(process.stdout),stderr:o(process.stderr)}},65421:(e,t,n)=>{"use strict";const a=n(70857),r=n(52018),i=n(50910),{env:s}=process;let o;function c(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function u(e,t){if(0===o)return 0;if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2;if(e&&!t&&void 0===o)return 0;const n=o||0;if("dumb"===s.TERM)return n;if("win32"===process.platform){const e=a.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}i("no-color")||i("no-colors")||i("color=false")||i("color=never")?o=0:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(o=1),"FORCE_COLOR"in s&&(o="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,r.isatty(1))),stderr:c(u(!0,r.isatty(2)))}},68345:function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=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)&&a(t,e,n);return r(t,e),t},s=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(r,i){function s(e){try{c(a.next(e))}catch(e){i(e)}}function o(e){try{c(a.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}c((a=a.apply(e,t||[])).next())}))},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getNocoConfig=t.NcConfig=void 0;const c=i(n(16928)),u=o(n(79896)),l=n(39023),{DriverClient:d,getToolDir:p,metaUrlToDbConfig:f}=n(34688);class m{constructor(){this.meta={db:{client:d.SQLITE,connection:{filename:"noco.db"}}},this.toolDir=p()}static create(e){var t,n,a;return s(this,void 0,void 0,(function*(){const{meta:r,secret:i}=e,s=new m;if(s.credentialSecret=e.credentialSecret,(null===(a=null===(n=null===(t=s.meta)||void 0===t?void 0:t.db)||void 0===n?void 0:n.connection)||void 0===a?void 0:a.filename)&&(s.meta.db.connection.filename=c.join(s.toolDir,s.meta.db.connection.filename)),null==r?void 0:r.metaUrl)s.meta.db=yield f(r.metaUrl);else if(null==r?void 0:r.metaJson)s.meta.db=JSON.parse(r.metaJson);else if(null==r?void 0:r.metaJsonFile){if(!(yield(0,l.promisify)(u.default.exists)(r.metaJsonFile)))throw new Error(`NC_DB_JSON_FILE not found: ${r.metaJsonFile}`);const e=yield(0,l.promisify)(u.default.readFile)(r.metaJsonFile,{encoding:"utf8"});s.meta.db=JSON.parse(e)}return s}))}static createByEnv(){return s(this,void 0,void 0,(function*(){return m.create({meta:{metaUrl:process.env.NC_DB,metaJson:process.env.NC_DB_JSON,metaJsonFile:process.env.NC_DB_JSON_FILE},secret:process.env.NC_AUTH_JWT_SECRET,credentialSecret:process.env.NC_CONNECTION_ENCRYPT_KEY})}))}}t.NcConfig=m;t.getNocoConfig=(e={})=>m.create({meta:{metaUrl:process.env.NC_DB||e.ncDb,metaJson:process.env.NC_DB_JSON||e.ncDbJson,metaJsonFile:process.env.NC_DB_JSON_FILE||e.ncDbJsonFile}})},51321:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NcError=void 0;class n extends Error{}t.NcError=n},13451:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NcLogger=void 0;t.NcLogger=class{static log(e){console.log(e)}static error(e){console.error("%s","Error: "+e)}static warn(e){console.warn("%s","Warning: "+e)}static info(e){console.info("%s","Info: "+e)}static success(e){console.log("%s","Success: "+e)}static debug(e){console.debug("%s","Debug: "+e)}}},14201:function(e,t,n){"use strict";var a=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(r,i){function s(e){try{c(a.next(e))}catch(e){i(e)}}function o(e){try{c(a.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}c((a=a.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.SecretManager=void 0;const r=n(51321),{SqlClientFactory:i,MetaTable:s,decryptPropIfRequired:o,encryptPropIfRequired:c}=n(34688);t.SecretManager=class{constructor(e,t,n){this.oldSecret=e,this.newSecret=t,this.config=n,this.sqlClient=i.create(this.config.meta.db)}validateConfig(){return a(this,void 0,void 0,(function*(){if(!(yield this.sqlClient.testConnection()))throw new r.NcError("Invalid database configuration")}))}validateAndExtract(){return a(this,void 0,void 0,(function*(){if(!(yield this.sqlClient.knex.schema.hasTable(s.SOURCES)))throw new r.NcError("Sources table not found");if(!(yield this.sqlClient.knex.schema.hasTable(s.INTEGRATIONS)))throw new r.NcError("Integrations table not found");if(!(yield this.sqlClient.knex.schema.hasColumn(s.SOURCES,"is_encrypted"))||!(yield this.sqlClient.knex.schema.hasColumn(s.INTEGRATIONS,"is_encrypted")))throw new r.NcError("Looks like you are using an older version of NocoDB. Please upgrade to the latest version and try again.");const e=yield this.sqlClient.knex(s.SOURCES).where((e=>{e.where("is_meta",!1).orWhere("is_meta",null)})),t=yield this.sqlClient.knex(s.INTEGRATIONS),n=[],a=[];let i=!1;for(const t of e)try{const e=o({data:t,secret:this.oldSecret,prop:"config"});i=!0,n.push(Object.assign(Object.assign({},t),{config:e}))}catch(e){console.log(e)}for(const e of t)try{const t=o({data:e,secret:this.oldSecret,prop:"config"});i=!0,a.push(Object.assign(Object.assign({},e),{config:t}))}catch(e){console.log(e)}if(!i)throw new r.NcError("Invalid old secret or no sources/integrations found");return{sourcesToUpdate:n,integrationsToUpdate:a}}))}updateSecret(e,t){return a(this,void 0,void 0,(function*(){const n=yield this.sqlClient.transaction();try{for(const t of e)yield n(s.SOURCES).update({config:c({data:t,secret:this.newSecret,prop:"config"})}).where("id",t.id);for(const e of t)yield n(s.INTEGRATIONS).update({config:c({data:e,secret:this.newSecret,prop:"config"})}).where("id",e.id);yield n.commit()}catch(e){throw console.log(e),yield n.rollback(),e}}))}}},65960:function(e,t,n){"use strict";var a=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(r,i){function s(e){try{c(a.next(e))}catch(e){i(e)}}function o(e){try{c(a.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}c((a=a.apply(e,t||[])).next())}))},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(77679)),s=n(6858),o=n(68345),c=n(14201),u=n(51321),l=n(13451);console.log(i.default.textSync("NocoDB Secret CLI"));const d=new s.Command;d.version("1.0.0").description("NocoDB Secret CLI").arguments("<oldSecret> <newSecret>").option("--nc-db <char>","NocoDB connection database url, equivalent to NC_DB env variable").option("--nc-db-json <char>","NocoDB connection database json, equivalent to NC_DB_JSON env variable").option("--nc-db-json-file <char>","NocoDB connection database json file path, equivalent to NC_DB_JSON_FILE env variable").option("--database-url <char>","JDBC database url, equivalent to DATABASE_URL env variable").option("--database-url-file <char>","JDBC database url file path, equivalent to DATABASE_URL_FILE env variable").option("-o, --old-secret <char>","old secret string to decrypt sources and integrations").option("-n, --new-secret <char>","new secret string to encrypt sources and integrations").action(((e,t)=>a(void 0,void 0,void 0,(function*(){try{const n=d.opts(),a=yield(0,o.getNocoConfig)(n);if(e&&t){const n=new c.SecretManager(e,t,a);yield n.validateConfig();const{sourcesToUpdate:r,integrationsToUpdate:i}=yield n.validateAndExtract();yield n.updateSecret(r,i)}else console.error("Error: Both key and value are required."),d.help()}catch(e){e instanceof u.NcError&&(l.NcLogger.error(e.message),process.exit(1)),console.error(e)}})))),d.exitOverride(),d.parse(process.argv)},17063:(e,t)=>{for(var n,a=256,r=[];a--;)r[a]=(a+256).toString(16).substring(1);t.uid=function(e){var t=0,i=e||11;if(!n||a+i>512)for(n="",a=0;t<256;t++)n+=r[256*Math.random()|0];return n.substring(a,a+++i)}},19964:(e,t)=>{"use strict";t.fromCallback=function(e){return Object.defineProperty((function(...t){if("function"!=typeof t[t.length-1])return new Promise(((n,a)=>{e.call(this,...t,((e,t)=>null!=e?a(e):n(t)))}));e.apply(this,t)}),"name",{value:e.name})},t.fromPromise=function(e){return Object.defineProperty((function(...t){const n=t[t.length-1];if("function"!=typeof n)return e.apply(this,t);e.apply(this,t.slice(0,-1)).then((e=>n(null,e)),n)}),"name",{value:e.name})}},43652:(e,t,n)=>{"use strict";function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=Ze(n(80199)),i=Ze(n(55465)),s=Ze(n(54550)),o=Ze(n(82095)),c=Ze(n(70803)),u=Ze(n(6151)),l=Ze(n(91561)),d=Ze(n(80708)),p=Ze(n(71537)),f=Ze(n(29943)),m=Ze(n(86659)),h=Ze(n(6026)),b=Ze(n(1425)),g=Ze(n(99002)),v=Ze(n(53347)),y=Ze(n(61132)),_=Ze(n(64084)),E=Ke(n(86048)),x=Ke(n(78201)),T=Ze(n(41663)),O=Ze(n(22021)),$=Ze(n(52289)),A=Ze(n(26081)),S=Ze(n(75840)),D=Ze(n(7890)),w=Ze(n(7671)),C=Ze(n(35463)),R=Ze(n(57983)),N=Ze(n(61236)),I=Ze(n(77839)),M=Ze(n(91342)),P=Ze(n(67182)),L=Ze(n(45921)),j=Ke(n(31374)),k=Ze(n(70235)),F=Ze(n(89791)),U=Ze(n(23651)),q=Ze(n(89510)),B=Ze(n(93518)),H=Ze(n(63144)),G=Ze(n(91695)),W=Ze(n(64277)),V=Ke(n(18046)),Y=Ze(n(10430)),z=Ze(n(55080)),K=Ze(n(31114)),Z=Ze(n(1233)),J=Ze(n(5272)),Q=Ze(n(80937)),X=Ze(n(89806)),ee=Ze(n(50628)),te=Ze(n(11245)),ne=Ze(n(43125)),ae=Ze(n(85890)),re=Ze(n(45129)),ie=Ze(n(84257)),se=Ze(n(27514)),oe=Ze(n(73389)),ce=Ze(n(83646)),ue=Ze(n(75628)),le=Ze(n(94769)),de=Ze(n(53378)),pe=Ze(n(65411)),fe=Ze(n(57628)),me=Ke(n(8982)),he=Ze(n(24655)),be=Ze(n(38553)),ge=Ze(n(21583)),ve=n(62296),ye=Ze(n(67176)),_e=Ze(n(8404)),Ee=Ze(n(72947)),xe=Ze(n(62456)),Te=Ze(n(6383)),Oe=Ze(n(94215)),$e=Ze(n(57162)),Ae=Ze(n(45422)),Se=Ze(n(11765)),De=Ze(n(92478)),we=Ze(n(51260)),Ce=Ze(n(62432)),Re=Ze(n(20942)),Ne=Ze(n(89263)),Ie=Ke(n(96996)),Me=Ze(n(26728)),Pe=Ze(n(51738)),Le=Ze(n(47506)),je=Ze(n(30865)),ke=Ze(n(14542)),Fe=Ze(n(85726)),Ue=Ze(n(43445)),qe=Ze(n(73539)),Be=Ze(n(12472)),He=Ze(n(2427)),Ge=Ze(n(4945)),We=Ze(n(86615)),Ve=Ze(n(33836)),Ye=Ze(n(15907));function ze(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return ze=function(){return e},e}function Ke(e){if(e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};var t=ze();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var s=r?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function Ze(e){return e&&e.__esModule?e:{default:e}}var Je={version:"13.11.0",toDate:r.default,toFloat:i.default,toInt:s.default,toBoolean:o.default,equals:c.default,contains:u.default,matches:l.default,isEmail:d.default,isURL:p.default,isMACAddress:f.default,isIP:m.default,isIPRange:h.default,isFQDN:b.default,isBoolean:y.default,isIBAN:V.default,isBIC:Y.default,isAlpha:E.default,isAlphaLocales:E.locales,isAlphanumeric:x.default,isAlphanumericLocales:x.locales,isNumeric:T.default,isPassportNumber:O.default,isPort:$.default,isLowercase:A.default,isUppercase:S.default,isAscii:w.default,isFullWidth:C.default,isHalfWidth:R.default,isVariableWidth:N.default,isMultibyte:I.default,isSemVer:M.default,isSurrogatePair:P.default,isInt:L.default,isIMEI:D.default,isFloat:j.default,isFloatLocales:j.locales,isDecimal:k.default,isHexadecimal:F.default,isOctal:U.default,isDivisibleBy:q.default,isHexColor:B.default,isRgbColor:H.default,isHSL:G.default,isISRC:W.default,isMD5:z.default,isHash:K.default,isJWT:Z.default,isJSON:J.default,isEmpty:Q.default,isLength:X.default,isLocale:_.default,isByteLength:ee.default,isUUID:te.default,isMongoId:ne.default,isAfter:ae.default,isBefore:re.default,isIn:ie.default,isLuhnNumber:se.default,isCreditCard:oe.default,isIdentityCard:ce.default,isEAN:ue.default,isISIN:le.default,isISBN:de.default,isISSN:pe.default,isMobilePhone:me.default,isMobilePhoneLocales:me.locales,isPostalCode:Ie.default,isPostalCodeLocales:Ie.locales,isEthereumAddress:he.default,isCurrency:be.default,isBtcAddress:ge.default,isISO6346:ve.isISO6346,isFreightContainerID:ve.isFreightContainerID,isISO6391:ye.default,isISO8601:_e.default,isRFC3339:Ee.default,isISO31661Alpha2:xe.default,isISO31661Alpha3:Te.default,isISO4217:Oe.default,isBase32:$e.default,isBase58:Ae.default,isBase64:Se.default,isDataURI:De.default,isMagnetURI:we.default,isMailtoURI:Ce.default,isMimeType:Re.default,isLatLong:Ne.default,ltrim:Me.default,rtrim:Pe.default,trim:Le.default,escape:je.default,unescape:ke.default,stripLow:Fe.default,whitelist:Ue.default,blacklist:qe.default,isWhitelisted:Be.default,normalizeEmail:He.default,toString,isSlug:Ge.default,isStrongPassword:Ve.default,isTaxID:fe.default,isDate:g.default,isTime:v.default,isLicensePlate:We.default,isVAT:Ye.default,ibanLocales:V.locales};t.default=Je,e.exports=t.default,e.exports.default=t.default},56688:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.commaDecimal=t.dotDecimal=t.bengaliLocales=t.farsiLocales=t.arabicLocales=t.englishLocales=t.decimal=t.alphanumeric=t.alpha=void 0;var n={"en-US":/^[A-Z]+$/i,"az-AZ":/^[A-VXYZÇƏĞİıÖŞÜ]+$/i,"bg-BG":/^[А-Я]+$/i,"cs-CZ":/^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[A-ZÆØÅ]+$/i,"de-DE":/^[A-ZÄÖÜß]+$/i,"el-GR":/^[Α-ώ]+$/i,"es-ES":/^[A-ZÁÉÍÑÓÚÜ]+$/i,"fa-IR":/^[ابپتثجچحخدذرزژسشصضطظعغفقکگلمنوهی]+$/i,"fi-FI":/^[A-ZÅÄÖ]+$/i,"fr-FR":/^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[A-ZÀÉÈÌÎÓÒÙ]+$/i,"ja-JP":/^[ぁ-んァ-ヶヲ-゚一-龠ー・。、]+$/i,"nb-NO":/^[A-ZÆØÅ]+$/i,"nl-NL":/^[A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[A-ZÆØÅ]+$/i,"hu-HU":/^[A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"pl-PL":/^[A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,"ru-RU":/^[А-ЯЁ]+$/i,"kk-KZ":/^[А-ЯЁ\u04D8\u04B0\u0406\u04A2\u0492\u04AE\u049A\u04E8\u04BA]+$/i,"sl-SI":/^[A-ZČĆĐŠŽ]+$/i,"sk-SK":/^[A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[A-ZÅÄÖ]+$/i,"th-TH":/^[ก-๐\s]+$/i,"tr-TR":/^[A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[А-ЩЬЮЯЄIЇҐі]+$/i,"vi-VN":/^[A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,"ko-KR":/^[ㄱ-ㅎㅏ-ㅣ가-힣]*$/,"ku-IQ":/^[ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,ar:/^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,he:/^[א-ת]+$/,fa:/^['آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی']+$/i,bn:/^['ঀঅআইঈউঊঋঌএঐওঔকখগঘঙচছজঝঞটঠডঢণতথদধনপফবভমযরলশষসহিড়ঢ়য়ৠৡৰৱ৲৳৴৵৶৷৸৹৺৻']+$/,"hi-IN":/^[\u0900-\u0961]+[\u0972-\u097F]*$/i,"si-LK":/^[\u0D80-\u0DFF]+$/};t.alpha=n;var a={"en-US":/^[0-9A-Z]+$/i,"az-AZ":/^[0-9A-VXYZÇƏĞİıÖŞÜ]+$/i,"bg-BG":/^[0-9А-Я]+$/i,"cs-CZ":/^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[0-9A-ZÆØÅ]+$/i,"de-DE":/^[0-9A-ZÄÖÜß]+$/i,"el-GR":/^[0-9Α-ω]+$/i,"es-ES":/^[0-9A-ZÁÉÍÑÓÚÜ]+$/i,"fi-FI":/^[0-9A-ZÅÄÖ]+$/i,"fr-FR":/^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[0-9A-ZÀÉÈÌÎÓÒÙ]+$/i,"ja-JP":/^[0-90-9ぁ-んァ-ヶヲ-゚一-龠ー・。、]+$/i,"hu-HU":/^[0-9A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"nb-NO":/^[0-9A-ZÆØÅ]+$/i,"nl-NL":/^[0-9A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[0-9A-ZÆØÅ]+$/i,"pl-PL":/^[0-9A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[0-9A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,"ru-RU":/^[0-9А-ЯЁ]+$/i,"kk-KZ":/^[0-9А-ЯЁ\u04D8\u04B0\u0406\u04A2\u0492\u04AE\u049A\u04E8\u04BA]+$/i,"sl-SI":/^[0-9A-ZČĆĐŠŽ]+$/i,"sk-SK":/^[0-9A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[0-9A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[0-9А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[0-9A-ZÅÄÖ]+$/i,"th-TH":/^[ก-๙\s]+$/i,"tr-TR":/^[0-9A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[0-9А-ЩЬЮЯЄIЇҐі]+$/i,"ko-KR":/^[0-9ㄱ-ㅎㅏ-ㅣ가-힣]*$/,"ku-IQ":/^[٠١٢٣٤٥٦٧٨٩0-9ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,"vi-VN":/^[0-9A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,ar:/^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,he:/^[0-9א-ת]+$/,fa:/^['0-9آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی۱۲۳۴۵۶۷۸۹۰']+$/i,bn:/^['ঀঅআইঈউঊঋঌএঐওঔকখগঘঙচছজঝঞটঠডঢণতথদধনপফবভমযরলশষসহিড়ঢ়য়ৠৡ০১২৩৪৫৬৭৮৯ৰৱ৲৳৴৵৶৷৸৹৺৻']+$/,"hi-IN":/^[\u0900-\u0963]+[\u0966-\u097F]*$/i,"si-LK":/^[0-9\u0D80-\u0DFF]+$/};t.alphanumeric=a;var r={"en-US":".",ar:"٫"};t.decimal=r;var i=["AU","GB","HK","IN","NZ","ZA","ZM"];t.englishLocales=i;for(var s,o=0;o<i.length;o++)n[s="en-".concat(i[o])]=n["en-US"],a[s]=a["en-US"],r[s]=r["en-US"];var c=["AE","BH","DZ","EG","IQ","JO","KW","LB","LY","MA","QM","QA","SA","SD","SY","TN","YE"];t.arabicLocales=c;for(var u,l=0;l<c.length;l++)n[u="ar-".concat(c[l])]=n.ar,a[u]=a.ar,r[u]=r.ar;var d=["IR","AF"];t.farsiLocales=d;for(var p,f=0;f<d.length;f++)a[p="fa-".concat(d[f])]=a.fa,r[p]=r.ar;var m=["BD","IN"];t.bengaliLocales=m;for(var h,b=0;b<m.length;b++)n[h="bn-".concat(m[b])]=n.bn,a[h]=a.bn,r[h]=r["en-US"];var g=["ar-EG","ar-LB","ar-LY"];t.dotDecimal=g;var v=["bg-BG","cs-CZ","da-DK","de-DE","el-GR","en-ZM","es-ES","fr-CA","fr-FR","id-ID","it-IT","ku-IQ","hi-IN","hu-HU","nb-NO","nn-NO","nl-NL","pl-PL","pt-PT","ru-RU","kk-KZ","si-LK","sl-SI","sr-RS@latin","sr-RS","sv-SE","tr-TR","uk-UA","vi-VN"];t.commaDecimal=v;for(var y=0;y<g.length;y++)r[g[y]]=r["en-US"];for(var _=0;_<v.length;_++)r[v[_]]=",";n["fr-CA"]=n["fr-FR"],a["fr-CA"]=a["fr-FR"],n["pt-BR"]=n["pt-PT"],a["pt-BR"]=a["pt-PT"],r["pt-BR"]=r["pt-PT"],n["pl-Pl"]=n["pl-PL"],a["pl-Pl"]=a["pl-PL"],r["pl-Pl"]=r["pl-PL"],n["fa-AF"]=n.fa},73539:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e),e.replace(new RegExp("[".concat(t,"]+"),"g"),"")};var a,r=(a=n(57818))&&a.__esModule?a:{default:a};e.exports=t.default,e.exports.default=t.default},6151:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if((0,a.default)(e),(n=(0,i.default)(n,o)).ignoreCase)return e.toLowerCase().split((0,r.default)(t).toLowerCase()).length>n.minOccurrences;return e.split((0,r.default)(t)).length>n.minOccurrences};var a=s(n(57818)),r=s(n(70053)),i=s(n(94749));function s(e){return e&&e.__esModule?e:{default:e}}var o={ignoreCase:!1,minOccurrences:1};e.exports=t.default,e.exports.default=t.default},70803:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e),e===t};var a,r=(a=n(57818))&&a.__esModule?a:{default:a};e.exports=t.default,e.exports.default=t.default},30865:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),e.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\//g,"&#x2F;").replace(/\\/g,"&#x5C;").replace(/`/g,"&#96;")};var a,r=(a=n(57818))&&a.__esModule?a:{default:a};e.exports=t.default,e.exports.default=t.default},85890:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(null==t?void 0:t.comparisonDate)||t||Date().toString(),a=(0,r.default)(n),i=(0,r.default)(e);return!!(i&&a&&i>a)};var a,r=(a=n(80199))&&a.__esModule?a:{default:a};e.exports=t.default,e.exports.default=t.default},86048:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,r.default)(e);var a=e,s=n.ignore;if(s)if(s instanceof RegExp)a=a.replace(s,"");else{if("string"!=typeof s)throw new Error("ignore should be instance of a String or RegExp");a=a.replace(new RegExp("[".concat(s.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"")}if(t in i.alpha)return i.alpha[t].test(a);throw new Error("Invalid locale '".concat(t,"'"))},t.locales=void 0;var a,r=(a=n(57818))&&a.__esModule?a:{default:a},i=n(56688);var s=Object.keys(i.alpha);t.locales=s},78201:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,r.default)(e);var a=e,s=n.ignore;if(s)if(s instanceof RegExp)a=a.replace(s,"");else{if("string"!=typeof s)throw new Error("ignore should be instance of a String or RegExp");a=a.replace(new RegExp("[".concat(s.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"")}if(t in i.alphanumeric)return i.alphanumeric[t].test(a);throw new Error("Invalid locale '".concat(t,"'"))},t.locales=void 0;var a,r=(a=n(57818))&&a.__esModule?a:{default:a},i=n(56688);var s=Object.keys(i.alphanumeric);t.locales=s},7671:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),i.test(e)};var a,r=(a=n(57818))&&a.__esModule?a:{default:a};var i=/^[\x00-\x7F]+$/;e.exports=t.default,e.exports.default=t.default},10430:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,r.default)(e);var t=e.slice(4,6).toUpperCase();if(!i.CountryCodes.has(t)&&"XK"!==t)return!1;return s.test(e)};var a,r=(a=n(57818))&&a.__esModule?a:{default:a},i=n(62456);var s=/^[A-Za-z]{6}[A-Za-z0-9]{2}([A-Za-z0-9]{3})?$/;e.exports=t.default,e.exports.default=t.default},57162:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,a.default)(e),(t=(0,r.default)(t,c)).crockford)return o.test(e);if(e.length%8==0&&s.test(e))return!0;return!1};var a=i(n(57818)),r=i(n(94749));function i(e){return e&&e.__esModule?e:{default:e}}var s=/^[A-Z2-7]+=*$/,o=/^[A-HJKMNP-TV-Z0-9]+$/,c={crockford:!1};e.exports=t.default,e.exports.default=t.default},45422:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,r.default)(e),i.test(e))return!0;return!1};var a,r=(a=n(57818))&&a.__esModule?a:{default:a};var i=/^[A-HJ-NP-Za-km-z1-9]*$/;e.exports=t.default,e.exports.default=t.default},11765:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,a.default)(e),t=(0,r.default)(t,c);var n=e.length;if(t.urlSafe)return o.test(e);if(n%4!=0||s.test(e))return!1;var i=e.indexOf("=");return-1===i||i===n-1||i===n-2&&"="===e[n-1]};var a=i(n(57818)),r=i(n(94749));function i(e){return e&&e.__esModule?e:{default:e}}var s=/[^A-Z0-9+\/=]/i,o=/^[A-Z0-9_\-]*$/i,c={urlSafe:!1};e.exports=t.default,e.exports.default=t.default},45129:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:String(new Date);(0,a.default)(e);var n=(0,r.default)(t),i=(0,r.default)(e);return!!(i&&n&&i<n)};var a=i(n(57818)),r=i(n(80199));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},61132:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;if((0,r.default)(e),t.loose)return o.includes(e.toLowerCase());return s.includes(e)};var a,r=(a=n(57818))&&a.__esModule?a:{default:a};var i={loose:!1},s=["true","false","1","0"],o=[].concat(s,["yes","no"]);e.exports=t.default,e.exports.default=t.default},21583:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),i.test(e)||s.test(e)};var a,r=(a=n(57818))&&a.__esModule?a:{default:a};var i=/^(bc1)[a-z0-9]{25,39}$/,s=/^(1|3)[A-HJ-NP-Za-km-z1-9]{25,39}$/;e.exports=t.default,e.exports.default=t.default},50628:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,a;(0,r.default)(e),"object"===i(t)?(n=t.min||0,a=t.max):(n=arguments[1],a=arguments[2]);var s=encodeURI(e).split(/%..|./).length-1;return s>=n&&(void 0===a||s<=a)};var a,r=(a=n(57818))&&a.__esModule?a:{default:a};function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}e.exports=t.default,e.exports.default=t.default},73389:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,a.default)(e);var n=t.provider,i=e.replace(/[- ]+/g,"");if(n&&n.toLowerCase()in s){if(!s[n.toLowerCase()].test(i))return!1}else{if(n&&!(n.toLowerCase()in s))throw new Error("".concat(n," is not a valid credit card provider."));if(!o.some((function(e){return e.test(i)})))return!1}return(0,r.default)(e)};var a=i(n(57818)),r=i(n(27514));function i(e){return e&&e.__esModule?e:{default:e}}var s={amex:/^3[47][0-9]{13}$/,dinersclub:/^3(?:0[0-5]|[68][0-9])[0-9]{11}$/,discover:/^6(?:011|5[0-9][0-9])[0-9]{12,15}$/,jcb:/^(?:2131|1800|35\d{3})\d{11}$/,mastercard:/^5[1-5][0-9]{2}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}$/,unionpay:/^(6[27][0-9]{14}|^(81[0-9]{14,17}))$/,visa:/^(?:4[0-9]{12})(?:[0-9]{3,6})?$/},o=function(){var e=[];for(var t in s)s.hasOwnProperty(t)&&e.push(s[t]);return e}();e.exports=t.default,e.exports.default=t.default},38553:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e),function(e){var t="\\d{".concat(e.digits_after_decimal[0],"}");e.digits_after_decimal.forEach((function(e,n){0!==n&&(t="".concat(t,"|\\d{").concat(e,"}"))}));var n="(".concat(e.symbol.replace(/\W/,(function(e){return"\\".concat(e)})),")").concat(e.require_symbol?"":"?"),a="-?",r="[1-9]\\d{0,2}(\\".concat(e.thousands_separator,"\\d{3})*"),i="(".concat(["0","[1-9]\\d*",r].join("|"),")?"),s="(\\".concat(e.decimal_separator,"(").concat(t,"))").concat(e.require_decimal?"":"?"),o=i+(e.allow_decimal||e.require_decimal?s:"");e.allow_negatives&&!e.parens_for_negatives&&(e.negative_sign_after_digits?o+=a:e.negative_sign_before_digits&&(o=a+o));e.allow_negative_sign_placeholder?o="( (?!\\-))?".concat(o):e.allow_space_after_symbol?o=" ?".concat(o):e.allow_space_after_digits&&(o+="( (?!$))?");e.symbol_after_digits?o+=n:o=n+o;e.allow_negatives&&(e.parens_for_negatives?o="(\\(".concat(o,"\\)|").concat(o,")"):e.negative_sign_before_digits||e.negative_sign_after_digits||(o=a+o));return new RegExp("^(?!-? )(?=.*\\d)".concat(o,"$"))}(t=(0,a.default)(t,s)).test(e)};var a=i(n(94749)),r=i(n(57818));function i(e){return e&&e.__esModule?e:{default:e}}var s={symbol:"$",require_symbol:!1,allow_space_after_symbol:!1,symbol_after_digits:!1,allow_negatives:!0,parens_for_negatives:!1,negative_sign_before_digits:!1,negative_sign_after_digits:!1,allow_negative_sign_placeholder:!1,thousands_separator:",",decimal_separator:".",allow_decimal:!0,require_decimal:!1,digits_after_decimal:[2],allow_space_after_digits:!1};e.exports=t.default,e.exports.default=t.default},92478:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,r.default)(e);var t=e.split(",");if(t.length<2)return!1;var n=t.shift().trim().split(";"),a=n.shift();if("data:"!==a.slice(0,5))return!1;var c=a.slice(5);if(""!==c&&!i.test(c))return!1;for(var u=0;u<n.length;u++)if((u!==n.length-1||"base64"!==n[u].toLowerCase())&&!s.test(n[u]))return!1;for(var l=0;l<t.length;l++)if(!o.test(t[l]))return!1;return!0};var a,r=(a=n(57818))&&a.__esModule?a:{default:a};var i=/^[a-z]+\/[a-z0-9\-\+\._]+$/i,s=/^[a-z\-]+=[a-z0-9\-]+$/i,o=/^[a-z0-9!\$&'\(\)\*\+,;=\-\._~:@\/\?%\s]*$/i;e.exports=t.default,e.exports.default=t.default},99002:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){t="string"==typeof t?(0,r.default)({format:t},o):(0,r.default)(t,o);if("string"==typeof e&&(v=t.format,/(^(y{4}|y{2})[.\/-](m{1,2})[.\/-](d{1,2})$)|(^(m{1,2})[.\/-](d{1,2})[.\/-]((y{4}|y{2})$))|(^(d{1,2})[.\/-](m{1,2})[.\/-]((y{4}|y{2})$))/gi.test(v))){var n,a=t.delimiters.find((function(e){return-1!==t.format.indexOf(e)})),s=t.strictMode?a:t.delimiters.find((function(t){return-1!==e.indexOf(t)})),c=function(e,t){for(var n=[],a=Math.min(e.length,t.length),r=0;r<a;r++)n.push([e[r],t[r]]);return n}(e.split(s),t.format.toLowerCase().split(a)),u={},l=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=i(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,r=function(){};return{s:r,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,o=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,s=e},f:function(){try{o||null==n.return||n.return()}finally{if(c)throw s}}}}(c);try{for(l.s();!(n=l.n()).done;){var d=(b=n.value,g=2,function(e){if(Array.isArray(e))return e}(b)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,r=!1,i=void 0;try{for(var s,o=e[Symbol.iterator]();!(a=(s=o.next()).done)&&(n.push(s.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{a||null==o.return||o.return()}finally{if(r)throw i}}return n}(b,g)||i(b,g)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=d[0],f=d[1];if(p.length!==f.length)return!1;u[f.charAt(0)]=p}}catch(e){l.e(e)}finally{l.f()}var m=u.y;if(2===u.y.length){var h=parseInt(u.y,10);if(isNaN(h))return!1;m=h<(new Date).getFullYear()%100?"20".concat(u.y):"19".concat(u.y)}return new Date("".concat(m,"-").concat(u.m,"-").concat(u.d)).getDate()===+u.d}var b,g;var v;if(!t.strictMode)return"[object Date]"===Object.prototype.toString.call(e)&&isFinite(e);return!1};var a,r=(a=n(94749))&&a.__esModule?a:{default:a};function i(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var o={format:"YYYY/MM/DD",delimiters:["/","-"],strictMode:!1};e.exports=t.default,e.exports.default=t.default},70235:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),(t=(0,a.default)(t,c)).locale in s.decimal)return!(0,i.default)(u,e.replace(/ /g,""))&&function(e){var t=new RegExp("^[-+]?([0-9]+)?(\\".concat(s.decimal[e.locale],"[0-9]{").concat(e.decimal_digits,"})").concat(e.force_decimal?"":"?","$"));return t}(t).test(e);throw new Error("Invalid locale '".concat(t.locale,"'"))};var a=o(n(94749)),r=o(n(57818)),i=o(n(38984)),s=n(56688);function o(e){return e&&e.__esModule?e:{default:e}}var c={force_decimal:!1,decimal_digits:"1,",locale:"en-US"},u=["","-","+"];e.exports=t.default,e.exports.default=t.default},89510:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,a.default)(e),(0,r.default)(e)%parseInt(t,10)==0};var a=i(n(57818)),r=i(n(55465));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},75628:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,r.default)(e);var t=Number(e.slice(-1));return o.test(e)&&t===(n=e,a=10-n.slice(0,-1).split("").map((function(e,t){return Number(e)*function(e,t){return e===i||e===s?t%2==0?3:1:t%2==0?1:3}(n.length,t)})).reduce((function(e,t){return e+t}),0)%10,a<10?a:0);var n,a};var a,r=(a=n(57818))&&a.__esModule?a:{default:a};var i=8,s=14,o=/^(\d{8}|\d{13}|\d{14})$/;e.exports=t.default,e.exports.default=t.default},80708:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,a.default)(e),(t=(0,o.default)(t,u)).require_display_name||t.allow_display_name){var n=e.match(l);if(n){var c=n[1];if(e=e.replace(c,"").replace(/(^<|>$)/g,""),c.endsWith(" ")&&(c=c.slice(0,-1)),!function(e){var t=e.replace(/^"(.+)"$/,"$1");if(!t.trim())return!1;if(/[\.";<>]/.test(t)){if(t===e)return!1;if(!(t.split('"').length===t.split('\\"').length))return!1}return!0}(c))return!1}else if(t.require_display_name)return!1}if(!t.ignore_max_length&&e.length>b)return!1;var g=e.split("@"),v=g.pop(),y=v.toLowerCase();if(t.host_blacklist.includes(y))return!1;if(t.host_whitelist.length>0&&!t.host_whitelist.includes(y))return!1;var _=g.join("@");if(t.domain_specific_validation&&("gmail.com"===y||"googlemail.com"===y)){var E=(_=_.toLowerCase()).split("+")[0];if(!(0,r.default)(E.replace(/\./g,""),{min:6,max:30}))return!1;for(var x=E.split("."),T=0;T<x.length;T++)if(!p.test(x[T]))return!1}if(!(!1!==t.ignore_max_length||(0,r.default)(_,{max:64})&&(0,r.default)(v,{max:254})))return!1;if(!(0,i.default)(v,{require_tld:t.require_tld,ignore_max_length:t.ignore_max_length,allow_underscores:t.allow_underscores})){if(!t.allow_ip_domain)return!1;if(!(0,s.default)(v)){if(!v.startsWith("[")||!v.endsWith("]"))return!1;var O=v.slice(1,-1);if(0===O.length||!(0,s.default)(O))return!1}}if('"'===_[0])return _=_.slice(1,_.length-1),t.allow_utf8_local_part?h.test(_):f.test(_);for(var $=t.allow_utf8_local_part?m:d,A=_.split("."),S=0;S<A.length;S++)if(!$.test(A[S]))return!1;if(t.blacklisted_chars&&-1!==_.search(new RegExp("[".concat(t.blacklisted_chars,"]+"),"g")))return!1;return!0};var a=c(n(57818)),r=c(n(50628)),i=c(n(1425)),s=c(n(86659)),o=c(n(94749));function c(e){return e&&e.__esModule?e:{default:e}}var u={allow_display_name:!1,allow_underscores:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[],host_whitelist:[]},l=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,d=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,p=/^[a-z\d]+$/,f=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,m=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A1-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,h=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i,b=254;e.exports=t.default,e.exports.default=t.default},80937:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,a.default)(e),0===((t=(0,r.default)(t,s)).ignore_whitespace?e.trim().length:e.length)};var a=i(n(57818)),r=i(n(94749));function i(e){return e&&e.__esModule?e:{default:e}}var s={ignore_whitespace:!1};e.exports=t.default,e.exports.default=t.default},24655:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),i.test(e)};var a,r=(a=n(57818))&&a.__esModule?a:{default:a};var i=/^(0x)[0-9a-f]{40}$/i;e.exports=t.default,e.exports.default=t.default},1425:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,a.default)(e),(t=(0,r.default)(t,s)).allow_trailing_dot&&"."===e[e.length-1]&&(e=e.substring(0,e.length-1));!0===t.allow_wildcard&&0===e.indexOf("*.")&&(e=e.substring(2));var n=e.split("."),i=n[n.length-1];if(t.require_tld){if(n.length<2)return!1;if(!t.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(i))return!1;if(/\s/.test(i))return!1}if(!t.allow_numeric_tld&&/^\d+$/.test(i))return!1;return n.every((function(e){return!(e.length>63&&!t.ignore_max_length)&&(!!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(e)&&(!/[\uff01-\uff5e]/.test(e)&&(!/^-|-$/.test(e)&&!(!t.allow_underscores&&/_/.test(e)))))}))};var a=i(n(57818)),r=i(n(94749));function i(e){return e&&e.__esModule?e:{default:e}}var s={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};e.exports=t.default,e.exports.default=t.default},31374:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e),t=t||{};var n=new RegExp("^(?:[-+])?(?:[0-9]+)?(?:\\".concat(t.locale?i.decimal[t.locale]:".","[0-9]*)?(?:[eE][\\+\\-]?(?:[0-9]+))?$"));if(""===e||"."===e||","===e||"-"===e||"+"===e)return!1;var a=parseFloat(e.replace(",","."));return n.test(e)&&(!t.hasOwnProperty("min")||a>=t.min)&&(!t.hasOwnProperty("max")||a<=t.max)&&(!t.hasOwnProperty("lt")||a<t.lt)&&(!t.hasOwnProperty("gt")||a>t.gt)},t.locales=void 0;var a,r=(a=n(57818))&&a.__esModule?a:{default:a},i=n(56688);var s=Object.keys(i.decimal);t.locales=s},35463:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),i.test(e)},t.fullWidth=void 0;var a,r=(a=n(57818))&&a.__esModule?a:{default:a};var i=/[^\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;t.fullWidth=i},91695:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,r.default)(e);var t=e.replace(/\s+/g," ").replace(/\s?(hsla?\(|\)|,)\s?/gi,"$1");if(-1!==t.indexOf(","))return i.test(t);return s.test(t)};var a,r=(a=n(57818))&&a.__esModule?a:{default:a};var i=/^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(,(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}(,((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?))?\)$/i,s=/^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(\s(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}\s?(\/\s((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?)\s?)?\)$/i;e.exports=t.default,e.exports.default=t.default},57983:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),i.test(e)},t.halfWidth=void 0;var a,r=(a=n(57818))&&a.__esModule?a:{default:a};var i=/[\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;t.halfWidth=i},31114:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e),new RegExp("^[a-fA-F0-9]{".concat(i[t],"}$")).test(e)};var a,r=(a=n(57818))&&a.__esModule?a:{default:a};var i={md5:32,md4:32,sha1:40,sha256:64,sha384:96,sha512:128,ripemd128:32,ripemd160:40,tiger128:32,tiger160:40,tiger192:48,crc32:8,crc32b:8};e.exports=t.default,e.exports.default=t.default},93518:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),i.test(e)};var a,r=(a=n(57818))&&a.__esModule?a:{default:a};var i=/^#?([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i;e.exports=t.default,e.exports.default=t.default},89791:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),i.test(e)};var a,r=(a=n(57818))&&a.__esModule?a:{default:a};var i=/^(0x|0h)?[0-9A-F]+$/i;e.exports=t.default,e.exports.default=t.default},18046:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,r.default)(e),function(e,t){var n=e.replace(/[\s\-]+/gi,"").toUpperCase(),a=n.slice(0,2).toUpperCase(),r=a in i;if(t.whitelist){if(!function(e){if(e.filter((function(e){return!(e in i)})).length>0)return!1;return!0}(t.whitelist))return!1;if(!t.whitelist.includes(a))return!1}if(t.blacklist){if(t.blacklist.includes(a))return!1}return r&&i[a].test(n)}(e,t)&&function(e){var t=e.replace(/[^A-Z0-9]+/gi,"").toUpperCase();return 1===(t.slice(4)+t.slice(0,4)).replace(/[A-Z]/g,(function(e){return e.charCodeAt(0)-55})).match(/\d{1,7}/g).reduce((function(e,t){return Number(e+t)%97}),"")}(e)},t.locales=void 0;var a,r=(a=n(57818))&&a.__esModule?a:{default:a};var i={AD:/^(AD[0-9]{2})\d{8}[A-Z0-9]{12}$/,AE:/^(AE[0-9]{2})\d{3}\d{16}$/,AL:/^(AL[0-9]{2})\d{8}[A-Z0-9]{16}$/,AT:/^(AT[0-9]{2})\d{16}$/,AZ:/^(AZ[0-9]{2})[A-Z0-9]{4}\d{20}$/,BA:/^(BA[0-9]{2})\d{16}$/,BE:/^(BE[0-9]{2})\d{12}$/,BG:/^(BG[0-9]{2})[A-Z]{4}\d{6}[A-Z0-9]{8}$/,BH:/^(BH[0-9]{2})[A-Z]{4}[A-Z0-9]{14}$/,BR:/^(BR[0-9]{2})\d{23}[A-Z]{1}[A-Z0-9]{1}$/,BY:/^(BY[0-9]{2})[A-Z0-9]{4}\d{20}$/,CH:/^(CH[0-9]{2})\d{5}[A-Z0-9]{12}$/,CR:/^(CR[0-9]{2})\d{18}$/,CY:/^(CY[0-9]{2})\d{8}[A-Z0-9]{16}$/,CZ:/^(CZ[0-9]{2})\d{20}$/,DE:/^(DE[0-9]{2})\d{18}$/,DK:/^(DK[0-9]{2})\d{14}$/,DO:/^(DO[0-9]{2})[A-Z]{4}\d{20}$/,EE:/^(EE[0-9]{2})\d{16}$/,EG:/^(EG[0-9]{2})\d{25}$/,ES:/^(ES[0-9]{2})\d{20}$/,FI:/^(FI[0-9]{2})\d{14}$/,FO:/^(FO[0-9]{2})\d{14}$/,FR:/^(FR[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,GB:/^(GB[0-9]{2})[A-Z]{4}\d{14}$/,GE:/^(GE[0-9]{2})[A-Z0-9]{2}\d{16}$/,GI:/^(GI[0-9]{2})[A-Z]{4}[A-Z0-9]{15}$/,GL:/^(GL[0-9]{2})\d{14}$/,GR:/^(GR[0-9]{2})\d{7}[A-Z0-9]{16}$/,GT:/^(GT[0-9]{2})[A-Z0-9]{4}[A-Z0-9]{20}$/,HR:/^(HR[0-9]{2})\d{17}$/,HU:/^(HU[0-9]{2})\d{24}$/,IE:/^(IE[0-9]{2})[A-Z0-9]{4}\d{14}$/,IL:/^(IL[0-9]{2})\d{19}$/,IQ:/^(IQ[0-9]{2})[A-Z]{4}\d{15}$/,IR:/^(IR[0-9]{2})0\d{2}0\d{18}$/,IS:/^(IS[0-9]{2})\d{22}$/,IT:/^(IT[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,JO:/^(JO[0-9]{2})[A-Z]{4}\d{22}$/,KW:/^(KW[0-9]{2})[A-Z]{4}[A-Z0-9]{22}$/,KZ:/^(KZ[0-9]{2})\d{3}[A-Z0-9]{13}$/,LB:/^(LB[0-9]{2})\d{4}[A-Z0-9]{20}$/,LC:/^(LC[0-9]{2})[A-Z]{4}[A-Z0-9]{24}$/,LI:/^(LI[0-9]{2})\d{5}[A-Z0-9]{12}$/,LT:/^(LT[0-9]{2})\d{16}$/,LU:/^(LU[0-9]{2})\d{3}[A-Z0-9]{13}$/,LV:/^(LV[0-9]{2})[A-Z]{4}[A-Z0-9]{13}$/,MA:/^(MA[0-9]{26})$/,MC:/^(MC[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,MD:/^(MD[0-9]{2})[A-Z0-9]{20}$/,ME:/^(ME[0-9]{2})\d{18}$/,MK:/^(MK[0-9]{2})\d{3}[A-Z0-9]{10}\d{2}$/,MR:/^(MR[0-9]{2})\d{23}$/,MT:/^(MT[0-9]{2})[A-Z]{4}\d{5}[A-Z0-9]{18}$/,MU:/^(MU[0-9]{2})[A-Z]{4}\d{19}[A-Z]{3}$/,MZ:/^(MZ[0-9]{2})\d{21}$/,NL:/^(NL[0-9]{2})[A-Z]{4}\d{10}$/,NO:/^(NO[0-9]{2})\d{11}$/,PK:/^(PK[0-9]{2})[A-Z0-9]{4}\d{16}$/,PL:/^(PL[0-9]{2})\d{24}$/,PS:/^(PS[0-9]{2})[A-Z0-9]{4}\d{21}$/,PT:/^(PT[0-9]{2})\d{21}$/,QA:/^(QA[0-9]{2})[A-Z]{4}[A-Z0-9]{21}$/,RO:/^(RO[0-9]{2})[A-Z]{4}[A-Z0-9]{16}$/,RS:/^(RS[0-9]{2})\d{18}$/,SA:/^(SA[0-9]{2})\d{2}[A-Z0-9]{18}$/,SC:/^(SC[0-9]{2})[A-Z]{4}\d{20}[A-Z]{3}$/,SE:/^(SE[0-9]{2})\d{20}$/,SI:/^(SI[0-9]{2})\d{15}$/,SK:/^(SK[0-9]{2})\d{20}$/,SM:/^(SM[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,SV:/^(SV[0-9]{2})[A-Z0-9]{4}\d{20}$/,TL:/^(TL[0-9]{2})\d{19}$/,TN:/^(TN[0-9]{2})\d{20}$/,TR:/^(TR[0-9]{2})\d{5}[A-Z0-9]{17}$/,UA:/^(UA[0-9]{2})\d{6}[A-Z0-9]{19}$/,VA:/^(VA[0-9]{2})\d{18}$/,VG:/^(VG[0-9]{2})[A-Z0-9]{4}\d{16}$/,XK:/^(XK[0-9]{2})\d{16}$/};var s=Object.keys(i);t.locales=s},7890:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e);var n=i;(t=t||{}).allow_hyphens&&(n=s);if(!n.test(e))return!1;e=e.replace(/-/g,"");for(var a=0,o=2,c=0;c<14;c++){var u=e.substring(14-c-1,14-c),l=parseInt(u,10)*o;a+=l>=10?l%10+1:l,1===o?o+=1:o-=1}if((10-a%10)%10!==parseInt(e.substring(14,15),10))return!1;return!0};var a,r=(a=n(57818))&&a.__esModule?a:{default:a};var i=/^[0-9]{15}$/,s=/^\d{2}-\d{6}-\d{6}-\d{1}$/;e.exports=t.default,e.exports.default=t.default},86659:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if((0,r.default)(t),!(n=String(n)))return e(t,4)||e(t,6);if("4"===n)return o.test(t);if("6"===n)return u.test(t);return!1};var a,r=(a=n(57818))&&a.__esModule?a:{default:a};var i="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",s="(".concat(i,"[.]){3}").concat(i),o=new RegExp("^".concat(s,"$")),c="(?:[0-9a-fA-F]{1,4})",u=new RegExp("^("+"(?:".concat(c,":){7}(?:").concat(c,"|:)|")+"(?:".concat(c,":){6}(?:").concat(s,"|:").concat(c,"|:)|")+"(?:".concat(c,":){5}(?::").concat(s,"|(:").concat(c,"){1,2}|:)|")+"(?:".concat(c,":){4}(?:(:").concat(c,"){0,1}:").concat(s,"|(:").concat(c,"){1,3}|:)|")+"(?:".concat(c,":){3}(?:(:").concat(c,"){0,2}:").concat(s,"|(:").concat(c,"){1,4}|:)|")+"(?:".concat(c,":){2}(?:(:").concat(c,"){0,3}:").concat(s,"|(:").concat(c,"){1,5}|:)|")+"(?:".concat(c,":){1}(?:(:").concat(c,"){0,4}:").concat(s,"|(:").concat(c,"){1,6}|:)|")+"(?::((?::".concat(c,"){0,5}:").concat(s,"|(?::").concat(c,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");e.exports=t.default,e.exports.default=t.default},6026:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";(0,a.default)(e);var n=e.split("/");if(2!==n.length)return!1;if(!s.test(n[1]))return!1;if(n[1].length>1&&n[1].startsWith("0"))return!1;if(!(0,r.default)(n[0],t))return!1;var i=null;switch(String(t)){case"4":i=o;break;case"6":i=c;break;default:i=(0,r.default)(n[0],"6")?c:o}return n[1]<=i&&n[1]>=0};var a=i(n(57818)),r=i(n(86659));function i(e){return e&&e.__esModule?e:{default:e}}var s=/^\d{1,3}$/,o=32,c=128;e.exports=t.default,e.exports.default=t.default},53378:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n){(0,r.default)(t);var a=String((null==n?void 0:n.version)||n);if(!(null!=n&&n.version||n))return e(t,{version:10})||e(t,{version:13});var c=t.replace(/[\s-]+/g,""),u=0;if("10"===a){if(!i.test(c))return!1;for(var l=0;l<a-1;l++)u+=(l+1)*c.charAt(l);if("X"===c.charAt(9)?u+=100:u+=10*c.charAt(9),u%11==0)return!0}else if("13"===a){if(!s.test(c))return!1;for(var d=0;d<12;d++)u+=o[d%2]*c.charAt(d);if(c.charAt(12)-(10-u%10)%10==0)return!0}return!1};var a,r=(a=n(57818))&&a.__esModule?a:{default:a};var i=/^(?:[0-9]{9}X|[0-9]{10})$/,s=/^(?:[0-9]{13})$/,o=[1,3];e.exports=t.default,e.exports.default=t.default},94769:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,r.default)(e),!i.test(e))return!1;for(var t=!0,n=0,a=e.length-2;a>=0;a--)if(e[a]>="A"&&e[a]<="Z")for(var s=e[a].charCodeAt(0)-55,o=0,c=[s%10,Math.trunc(s/10)];o<c.length;o++){var u=c[o];n+=t?u>=5?1+2*(u-5):2*u:u,t=!t}else{var l=e[a].charCodeAt(0)-"0".charCodeAt(0);n+=t?l>=5?1+2*(l-5):2*l:l,t=!t}var d=10*Math.trunc((n+9)/10)-n;return+e[e.length-1]===d};var a,r=(a=n(57818))&&a.__esModule?a:{default:a};var i=/^[A-Z]{2}[0-9A-Z]{9}[0-9]$/;e.exports=t.default,e.exports.default=t.default},62456:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),i.has(e.toUpperCase())},t.CountryCodes=void 0;var a,r=(a=n(57818))&&a.__esModule?a:{default:a};var i=new Set(["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]);var s=i;t.CountryCodes=s},6383:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),i.has(e.toUpperCase())};var a,r=(a=n(57818))&&a.__esModule?a:{default:a};var i=new Set(["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","VAT","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWZ","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","URY","UZB","VUT","VEN","VNM","VGB","VIR","WLF","ESH","YEM","ZMB","ZWE"]);e.exports=t.default,e.exports.default=t.default},94215:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),i.has(e.toUpperCase())},t.CurrencyCodes=void 0;var a,r=(a=n(57818))&&a.__esModule?a:{default:a};var i=new Set(["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRU","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STN","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UYW","UZS","VES","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"]);var s=i;t.CurrencyCodes=s},62296:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isISO6346=o,t.isFreightContainerID=void 0;var a,r=(a=n(57818))&&a.__esModule?a:{default:a};var i=/^[A-Z]{3}(U[0-9]{7})|([J,Z][0-9]{6,7})$/,s=/^[0-9]$/;function o(e){if((0,r.default)(e),e=e.toUpperCase(),!i.test(e))return!1;if(11===e.length){for(var t=0,n=0;n<e.length-1;n++)if(s.test(e[n]))t+=e[n]*Math.pow(2,n);else{var a=e.charCodeAt(n)-55;t+=(a<11?a:a>=11&&a<=20?12+a%11:a>=21&&a<=30?23+a%21:34+a%31)*Math.pow(2,n)}var o=t%11;return Number(e[e.length-1])===o}return!0}var c=o;t.isFreightContainerID=c},67176:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),i.has(e)};var a,r=(a=n(57818))&&a.__esModule?a:{default:a};var i=new Set(["aa","ab","ae","af","ak","am","an","ar","as","av","ay","az","az","ba","be","bg","bh","bi","bm","bn","bo","br","bs","ca","ce","ch","co","cr","cs","cu","cv","cy","da","de","dv","dz","ee","el","en","eo","es","et","eu","fa","ff","fi","fj","fo","fr","fy","ga","gd","gl","gn","gu","gv","ha","he","hi","ho","hr","ht","hu","hy","hz","ia","id","ie","ig","ii","ik","io","is","it","iu","ja","jv","ka","kg","ki","kj","kk","kl","km","kn","ko","kr","ks","ku","kv","kw","ky","la","lb","lg","li","ln","lo","lt","lu","lv","mg","mh","mi","mk","ml","mn","mr","ms","mt","my","na","nb","nd","ne","ng","nl","nn","no","nr","nv","ny","oc","oj","om","or","os","pa","pi","pl","ps","pt","qu","rm","rn","ro","ru","rw","sa","sc","sd","se","sg","si","sk","sl","sm","sn","so","sq","sr","ss","st","su","sv","sw","ta","te","tg","th","ti","tk","tl","tn","to","tr","ts","tt","tw","ty","ug","uk","ur","uz","ve","vi","vo","wa","wo","xh","yi","yo","za","zh","zu"]);e.exports=t.default,e.exports.default=t.default},8404:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,r.default)(e);var n=t.strictSeparator?s.test(e):i.test(e);return n&&t.strict?o(e):n};var a,r=(a=n(57818))&&a.__esModule?a:{default:a};var i=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,s=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,o=function(e){var t=e.match(/^(\d{4})-?(\d{3})([ T]{1}\.*|$)/);if(t){var n=Number(t[1]),a=Number(t[2]);return n%4==0&&n%100!=0||n%400==0?a<=366:a<=365}var r=e.match(/(\d{4})-?(\d{0,2})-?(\d*)/).map(Number),i=r[1],s=r[2],o=r[3],c=s?"0".concat(s).slice(-2):s,u=o?"0".concat(o).slice(-2):o,l=new Date("".concat(i,"-").concat(c||"01","-").concat(u||"01"));return!s||!o||l.getUTCFullYear()===i&&l.getUTCMonth()+1===s&&l.getUTCDate()===o};e.exports=t.default,e.exports.default=t.default},64277:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),i.test(e)};var a,r=(a=n(57818))&&a.__esModule?a:{default:a};var i=/^[A-Z]{2}[0-9A-Z]{3}\d{2}\d{5}$/;e.exports=t.default,e.exports.default=t.default},65411:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,r.default)(e);var n=i;if(n=t.require_hyphen?n.replace("?",""):n,!(n=t.case_sensitive?new RegExp(n):new RegExp(n,"i")).test(e))return!1;for(var a=e.replace("-","").toUpperCase(),s=0,o=0;o<a.length;o++){var c=a[o];s+=("X"===c?10:+c)*(8-o)}return s%11==0};var a,r=(a=n(57818))&&a.__esModule?a:{default:a};var i="^\\d{4}-?\\d{3}[\\dX]$";e.exports=t.default,e.exports.default=t.default},83646:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,a.default)(e),t in s)return s[t](e);if("any"===t){for(var n in s){if(s.hasOwnProperty(n))if((0,s[n])(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))};var a=i(n(57818)),r=i(n(45921));function i(e){return e&&e.__esModule?e:{default:e}}var s={PL:function(e){(0,a.default)(e);var t={1:1,2:3,3:7,4:9,5:1,6:3,7:7,8:9,9:1,10:3,11:0};if(null!=e&&11===e.length&&(0,r.default)(e,{allow_leading_zeroes:!0})){var n=e.split("").slice(0,-1).reduce((function(e,n,a){return e+Number(n)*t[a+1]}),0)%10,i=Number(e.charAt(e.length-1));if(0===n&&0===i||i===10-n)return!0}return!1},ES:function(e){(0,a.default)(e);var t={X:0,Y:1,Z:2},n=e.trim().toUpperCase();if(!/^[0-9X-Z][0-9]{7}[TRWAGMYFPDXBNJZSQVHLCKE]$/.test(n))return!1;var r=n.slice(0,-1).replace(/[X,Y,Z]/g,(function(e){return t[e]}));return n.endsWith(["T","R","W","A","G","M","Y","F","P","D","X","B","N","J","Z","S","Q","V","H","L","C","K","E"][r%23])},FI:function(e){if((0,a.default)(e),11!==e.length)return!1;if(!e.match(/^\d{6}[\-A\+]\d{3}[0-9ABCDEFHJKLMNPRSTUVWXY]{1}$/))return!1;return"0123456789ABCDEFHJKLMNPRSTUVWXY"[(1e3*parseInt(e.slice(0,6),10)+parseInt(e.slice(7,10),10))%31]===e.slice(10,11)},IN:function(e){var t=[[0,1,2,3,4,5,6,7,8,9],[1,2,3,4,0,6,7,8,9,5],[2,3,4,0,1,7,8,9,5,6],[3,4,0,1,2,8,9,5,6,7],[4,0,1,2,3,9,5,6,7,8],[5,9,8,7,6,0,4,3,2,1],[6,5,9,8,7,1,0,4,3,2],[7,6,5,9,8,2,1,0,4,3],[8,7,6,5,9,3,2,1,0,4],[9,8,7,6,5,4,3,2,1,0]],n=[[0,1,2,3,4,5,6,7,8,9],[1,5,7,6,2,8,3,0,9,4],[5,8,0,3,7,9,6,1,4,2],[8,9,1,6,0,4,3,5,2,7],[9,4,5,3,1,2,6,8,7,0],[4,2,8,6,5,7,3,9,0,1],[2,7,9,3,8,0,6,4,1,5],[7,0,4,6,9,1,3,2,5,8]],a=e.trim();if(!/^[1-9]\d{3}\s?\d{4}\s?\d{4}$/.test(a))return!1;var r=0;return a.replace(/\s/g,"").split("").map(Number).reverse().forEach((function(e,a){r=t[r][n[a%8][e]]})),0===r},IR:function(e){if(!e.match(/^\d{10}$/))return!1;if(e="0000".concat(e).slice(e.length-6),0===parseInt(e.slice(3,9),10))return!1;for(var t=parseInt(e.slice(9,10),10),n=0,a=0;a<9;a++)n+=parseInt(e.slice(a,a+1),10)*(10-a);return(n%=11)<2&&t===n||n>=2&&t===11-n},IT:function(e){return 9===e.length&&("CA00000AA"!==e&&e.search(/C[A-Z][0-9]{5}[A-Z]{2}/i)>-1)},NO:function(e){var t=e.trim();if(isNaN(Number(t)))return!1;if(11!==t.length)return!1;if("00000000000"===t)return!1;var n=t.split("").map(Number),a=(11-(3*n[0]+7*n[1]+6*n[2]+1*n[3]+8*n[4]+9*n[5]+4*n[6]+5*n[7]+2*n[8])%11)%11,r=(11-(5*n[0]+4*n[1]+3*n[2]+2*n[3]+7*n[4]+6*n[5]+5*n[6]+4*n[7]+3*n[8]+2*a)%11)%11;return a===n[9]&&r===n[10]},TH:function(e){if(!e.match(/^[1-8]\d{12}$/))return!1;for(var t=0,n=0;n<12;n++)t+=parseInt(e[n],10)*(13-n);return e[12]===((11-t%11)%10).toString()},LK:function(e){return!(10!==e.length||!/^[1-9]\d{8}[vx]$/i.test(e))||!(12!==e.length||!/^[1-9]\d{11}$/i.test(e))},"he-IL":function(e){var t=e.trim();if(!/^\d{9}$/.test(t))return!1;for(var n,a=t,r=0,i=0;i<a.length;i++)r+=(n=Number(a[i])*(i%2+1))>9?n-9:n;return r%10==0},"ar-LY":function(e){var t=e.trim();return!!/^(1|2)\d{11}$/.test(t)},"ar-TN":function(e){var t=e.trim();return!!/^\d{8}$/.test(t)},"zh-CN":function(e){var t,n=["11","12","13","14","15","21","22","23","31","32","33","34","35","36","37","41","42","43","44","45","46","50","51","52","53","54","61","62","63","64","65","71","81","82","91"],a=["7","9","10","5","8","4","2","1","6","3","7","9","10","5","8","4","2"],r=["1","0","X","9","8","7","6","5","4","3","2"],i=function(e){return n.includes(e)},s=function(e){var t=parseInt(e.substring(0,4),10),n=parseInt(e.substring(4,6),10),a=parseInt(e.substring(6),10),r=new Date(t,n-1,a);return!(r>new Date)&&(r.getFullYear()===t&&r.getMonth()===n-1&&r.getDate()===a)},o=function(e){return function(e){for(var t=e.substring(0,17),n=0,i=0;i<17;i++)n+=parseInt(t.charAt(i),10)*parseInt(a[i],10);return r[n%11]}(e)===e.charAt(17).toUpperCase()};return!!/^\d{15}|(\d{17}(\d|x|X))$/.test(t=e)&&(15===t.length?function(e){var t=/^[1-9]\d{7}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}$/.test(e);if(!t)return!1;var n=e.substring(0,2);if(!(t=i(n)))return!1;var a="19".concat(e.substring(6,12));return!!(t=s(a))}(t):function(e){var t=/^[1-9]\d{5}[1-9]\d{3}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}(\d|x|X)$/.test(e);if(!t)return!1;var n=e.substring(0,2);if(!(t=i(n)))return!1;var a=e.substring(6,14);return!!(t=s(a))&&o(e)}(t))},"zh-HK":function(e){var t=/^[0-9]$/;if(e=(e=e.trim()).toUpperCase(),!/^[A-Z]{1,2}[0-9]{6}((\([0-9A]\))|(\[[0-9A]\])|([0-9A]))$/.test(e))return!1;8===(e=e.replace(/\[|\]|\(|\)/g,"")).length&&(e="3".concat(e));for(var n=0,a=0;a<=7;a++){n+=(t.test(e[a])?e[a]:(e[a].charCodeAt(0)-55)%11)*(9-a)}return(0===(n%=11)?"0":1===n?"A":String(11-n))===e[e.length-1]},"zh-TW":function(e){var t={A:10,B:11,C:12,D:13,E:14,F:15,G:16,H:17,I:34,J:18,K:19,L:20,M:21,N:22,O:35,P:23,Q:24,R:25,S:26,T:27,U:28,V:29,W:32,X:30,Y:31,Z:33},n=e.trim().toUpperCase();return!!/^[A-Z][0-9]{9}$/.test(n)&&Array.from(n).reduce((function(e,n,a){if(0===a){var r=t[n];return r%10*9+Math.floor(r/10)}return 9===a?(10-e%10-Number(n))%10==0:e+Number(n)*(9-a)}),0)}};e.exports=t.default,e.exports.default=t.default},84257:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n;if((0,a.default)(e),"[object Array]"===Object.prototype.toString.call(t)){var i=[];for(n in t)({}).hasOwnProperty.call(t,n)&&(i[n]=(0,r.default)(t[n]));return i.indexOf(e)>=0}if("object"===s(t))return t.hasOwnProperty(e);if(t&&"function"==typeof t.indexOf)return t.indexOf(e)>=0;return!1};var a=i(n(57818)),r=i(n(70053));function i(e){return e&&e.__esModule?e:{default:e}}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}e.exports=t.default,e.exports.default=t.default},45921:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e);var n=(t=t||{}).hasOwnProperty("allow_leading_zeroes")&&!t.allow_leading_zeroes?i:s,a=!t.hasOwnProperty("min")||e>=t.min,o=!t.hasOwnProperty("max")||e<=t.max,c=!t.hasOwnProperty("lt")||e<t.lt,u=!t.hasOwnProperty("gt")||e>t.gt;return n.test(e)&&a&&o&&c&&u};var a,r=(a=n(57818))&&a.__esModule?a:{default:a};var i=/^(?:[-+]?(?:0|[1-9][0-9]*))$/,s=/^[-+]?[0-9]+$/;e.exports=t.default,e.exports.default=t.default},5272:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,a.default)(e);try{t=(0,r.default)(t,o);var n=[];t.allow_primitives&&(n=[null,!1,!0]);var i=JSON.parse(e);return n.includes(i)||!!i&&"object"===s(i)}catch(e){}return!1};var a=i(n(57818)),r=i(n(94749));function i(e){return e&&e.__esModule?e:{default:e}}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}var o={allow_primitives:!1};e.exports=t.default,e.exports.default=t.default},1233:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,a.default)(e);var t=e.split(".");if(3!==t.length)return!1;return t.reduce((function(e,t){return e&&(0,r.default)(t,{urlSafe:!0})}),!0)};var a=i(n(57818)),r=i(n(11765));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},89263:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,a.default)(e),t=(0,r.default)(t,l),!e.includes(","))return!1;var n=e.split(",");if(n[0].startsWith("(")&&!n[1].endsWith(")")||n[1].endsWith(")")&&!n[0].startsWith("("))return!1;if(t.checkDMS)return c.test(n[0])&&u.test(n[1]);return s.test(n[0])&&o.test(n[1])};var a=i(n(57818)),r=i(n(94749));function i(e){return e&&e.__esModule?e:{default:e}}var s=/^\(?[+-]?(90(\.0+)?|[1-8]?\d(\.\d+)?)$/,o=/^\s?[+-]?(180(\.0+)?|1[0-7]\d(\.\d+)?|\d{1,2}(\.\d+)?)\)?$/,c=/^(([1-8]?\d)\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|90\D+0\D+0)\D+[NSns]?$/i,u=/^\s*([1-7]?\d{1,2}\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|180\D+0\D+0)\D+[EWew]?$/i,l={checkDMS:!1};e.exports=t.default,e.exports.default=t.default},89806:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,a;(0,r.default)(e),"object"===i(t)?(n=t.min||0,a=t.max):(n=arguments[1]||0,a=arguments[2]);var s=e.match(/(\uFE0F|\uFE0E)/g)||[],o=e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g)||[],c=e.length-s.length-o.length;return c>=n&&(void 0===a||c<=a)};var a,r=(a=n(57818))&&a.__esModule?a:{default:a};function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}e.exports=t.default,e.exports.default=t.default},86615:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),t in i)return i[t](e);if("any"===t){for(var n in i){if((0,i[n])(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))};var a,r=(a=n(57818))&&a.__esModule?a:{default:a};var i={"cs-CZ":function(e){return/^(([ABCDEFHIJKLMNPRSTUVXYZ]|[0-9])-?){5,8}$/.test(e)},"de-DE":function(e){return/^((A|AA|AB|AC|AE|AH|AK|AM|AN|AÖ|AP|AS|AT|AU|AW|AZ|B|BA|BB|BC|BE|BF|BH|BI|BK|BL|BM|BN|BO|BÖ|BS|BT|BZ|C|CA|CB|CE|CO|CR|CW|D|DA|DD|DE|DH|DI|DL|DM|DN|DO|DU|DW|DZ|E|EA|EB|ED|EE|EF|EG|EH|EI|EL|EM|EN|ER|ES|EU|EW|F|FB|FD|FF|FG|FI|FL|FN|FO|FR|FS|FT|FÜ|FW|FZ|G|GA|GC|GD|GE|GF|GG|GI|GK|GL|GM|GN|GÖ|GP|GR|GS|GT|GÜ|GV|GW|GZ|H|HA|HB|HC|HD|HE|HF|HG|HH|HI|HK|HL|HM|HN|HO|HP|HR|HS|HU|HV|HX|HY|HZ|IK|IL|IN|IZ|J|JE|JL|K|KA|KB|KC|KE|KF|KG|KH|KI|KK|KL|KM|KN|KO|KR|KS|KT|KU|KW|KY|L|LA|LB|LC|LD|LF|LG|LH|LI|LL|LM|LN|LÖ|LP|LR|LU|M|MA|MB|MC|MD|ME|MG|MH|MI|MK|ML|MM|MN|MO|MQ|MR|MS|MÜ|MW|MY|MZ|N|NB|ND|NE|NF|NH|NI|NK|NM|NÖ|NP|NR|NT|NU|NW|NY|NZ|OA|OB|OC|OD|OE|OF|OG|OH|OK|OL|OP|OS|OZ|P|PA|PB|PE|PF|PI|PL|PM|PN|PR|PS|PW|PZ|R|RA|RC|RD|RE|RG|RH|RI|RL|RM|RN|RO|RP|RS|RT|RU|RV|RW|RZ|S|SB|SC|SE|SG|SI|SK|SL|SM|SN|SO|SP|SR|ST|SU|SW|SY|SZ|TE|TF|TG|TO|TP|TR|TS|TT|TÜ|ÜB|UE|UH|UL|UM|UN|V|VB|VG|VK|VR|VS|W|WA|WB|WE|WF|WI|WK|WL|WM|WN|WO|WR|WS|WT|WÜ|WW|WZ|Z|ZE|ZI|ZP|ZR|ZW|ZZ)[- ]?[A-Z]{1,2}[- ]?\d{1,4}|(ABG|ABI|AIB|AIC|ALF|ALZ|ANA|ANG|ANK|APD|ARN|ART|ASL|ASZ|AUR|AZE|BAD|BAR|BBG|BCH|BED|BER|BGD|BGL|BID|BIN|BIR|BIT|BIW|BKS|BLB|BLK|BNA|BOG|BOH|BOR|BOT|BRA|BRB|BRG|BRK|BRL|BRV|BSB|BSK|BTF|BÜD|BUL|BÜR|BÜS|BÜZ|CAS|CHA|CLP|CLZ|COC|COE|CUX|DAH|DAN|DAU|DBR|DEG|DEL|DGF|DIL|DIN|DIZ|DKB|DLG|DON|DUD|DÜW|EBE|EBN|EBS|ECK|EIC|EIL|EIN|EIS|EMD|EMS|ERB|ERH|ERK|ERZ|ESB|ESW|FDB|FDS|FEU|FFB|FKB|FLÖ|FOR|FRG|FRI|FRW|FTL|FÜS|GAN|GAP|GDB|GEL|GEO|GER|GHA|GHC|GLA|GMN|GNT|GOA|GOH|GRA|GRH|GRI|GRM|GRZ|GTH|GUB|GUN|GVM|HAB|HAL|HAM|HAS|HBN|HBS|HCH|HDH|HDL|HEB|HEF|HEI|HER|HET|HGN|HGW|HHM|HIG|HIP|HMÜ|HOG|HOH|HOL|HOM|HOR|HÖS|HOT|HRO|HSK|HST|HVL|HWI|IGB|ILL|JÜL|KEH|KEL|KEM|KIB|KLE|KLZ|KÖN|KÖT|KÖZ|KRU|KÜN|KUS|KYF|LAN|LAU|LBS|LBZ|LDK|LDS|LEO|LER|LEV|LIB|LIF|LIP|LÖB|LOS|LRO|LSZ|LÜN|LUP|LWL|MAB|MAI|MAK|MAL|MED|MEG|MEI|MEK|MEL|MER|MET|MGH|MGN|MHL|MIL|MKK|MOD|MOL|MON|MOS|MSE|MSH|MSP|MST|MTK|MTL|MÜB|MÜR|MYK|MZG|NAB|NAI|NAU|NDH|NEA|NEB|NEC|NEN|NES|NEW|NMB|NMS|NOH|NOL|NOM|NOR|NVP|NWM|OAL|OBB|OBG|OCH|OHA|ÖHR|OHV|OHZ|OPR|OSL|OVI|OVL|OVP|PAF|PAN|PAR|PCH|PEG|PIR|PLÖ|PRÜ|QFT|QLB|RDG|REG|REH|REI|RID|RIE|ROD|ROF|ROK|ROL|ROS|ROT|ROW|RSL|RÜD|RÜG|SAB|SAD|SAN|SAW|SBG|SBK|SCZ|SDH|SDL|SDT|SEB|SEE|SEF|SEL|SFB|SFT|SGH|SHA|SHG|SHK|SHL|SIG|SIM|SLE|SLF|SLK|SLN|SLS|SLÜ|SLZ|SMÜ|SOB|SOG|SOK|SÖM|SON|SPB|SPN|SRB|SRO|STA|STB|STD|STE|STL|SUL|SÜW|SWA|SZB|TBB|TDO|TET|TIR|TÖL|TUT|UEM|UER|UFF|USI|VAI|VEC|VER|VIB|VIE|VIT|VOH|WAF|WAK|WAN|WAR|WAT|WBS|WDA|WEL|WEN|WER|WES|WHV|WIL|WIS|WIT|WIZ|WLG|WMS|WND|WOB|WOH|WOL|WOR|WOS|WRN|WSF|WST|WSW|WTL|WTM|WUG|WÜM|WUN|WUR|WZL|ZEL|ZIG)[- ]?(([A-Z][- ]?\d{1,4})|([A-Z]{2}[- ]?\d{1,3})))[- ]?(E|H)?$/.test(e)},"de-LI":function(e){return/^FL[- ]?\d{1,5}[UZ]?$/.test(e)},"en-IN":function(e){return/^[A-Z]{2}[ -]?[0-9]{1,2}(?:[ -]?[A-Z])(?:[ -]?[A-Z]*)?[ -]?[0-9]{4}$/.test(e)},"es-AR":function(e){return/^(([A-Z]{2} ?[0-9]{3} ?[A-Z]{2})|([A-Z]{3} ?[0-9]{3}))$/.test(e)},"fi-FI":function(e){return/^(?=.{4,7})(([A-Z]{1,3}|[0-9]{1,3})[\s-]?([A-Z]{1,3}|[0-9]{1,5}))$/.test(e)},"hu-HU":function(e){return/^((((?!AAA)(([A-NPRSTVZWXY]{1})([A-PR-Z]{1})([A-HJ-NPR-Z]))|(A[ABC]I)|A[ABC]O|A[A-W]Q|BPI|BPO|UCO|UDO|XAO)-(?!000)\d{3})|(M\d{6})|((CK|DT|CD|HC|H[ABEFIKLMNPRSTVX]|MA|OT|R[A-Z]) \d{2}-\d{2})|(CD \d{3}-\d{3})|(C-(C|X) \d{4})|(X-(A|B|C) \d{4})|(([EPVZ]-\d{5}))|(S A[A-Z]{2} \d{2})|(SP \d{2}-\d{2}))$/.test(e)},"pt-BR":function(e){return/^[A-Z]{3}[ -]?[0-9][A-Z][0-9]{2}|[A-Z]{3}[ -]?[0-9]{4}$/.test(e)},"pt-PT":function(e){return/^([A-Z]{2}|[0-9]{2})[ -·]?([A-Z]{2}|[0-9]{2})[ -·]?([A-Z]{2}|[0-9]{2})$/.test(e)},"sq-AL":function(e){return/^[A-Z]{2}[- ]?((\d{3}[- ]?(([A-Z]{2})|T))|(R[- ]?\d{3}))$/.test(e)},"sv-SE":function(e){return/^[A-HJ-PR-UW-Z]{3} ?[\d]{2}[A-HJ-PR-UW-Z1-9]$|(^[A-ZÅÄÖ ]{2,7}$)/.test(e.trim())}};e.exports=t.default,e.exports.default=t.default},64084:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),d.test(e)};var a,r=(a=n(57818))&&a.__esModule?a:{default:a};var i="(([a-zA-Z]{2,3}(-".concat("([A-Za-z]{3}(-[A-Za-z]{3}){0,2})",")?)|([a-zA-Z]{5,8}))"),s="(".concat("(\\d|[A-W]|[Y-Z]|[a-w]|[y-z])","(-[A-Za-z0-9]{2,8})+)"),o="(x(-[A-Za-z0-9]{1,8})+)",c="(".concat("((en-GB-oed)|(i-ami)|(i-bnn)|(i-default)|(i-enochian)|(i-hak)|(i-klingon)|(i-lux)|(i-mingo)|(i-navajo)|(i-pwn)|(i-tao)|(i-tay)|(i-tsu)|(sgn-BE-FR)|(sgn-BE-NL)|(sgn-CH-DE))","|").concat("((art-lojban)|(cel-gaulish)|(no-bok)|(no-nyn)|(zh-guoyu)|(zh-hakka)|(zh-min)|(zh-min-nan)|(zh-xiang))",")"),u="(-|_)",l="".concat(i,"(").concat(u).concat("([A-Za-z]{4})",")?(").concat(u).concat("([A-Za-z]{2}|\\d{3})",")?(").concat(u).concat("([A-Za-z0-9]{5,8}|(\\d[A-Z-a-z0-9]{3}))",")*(").concat(u).concat(s,")*(").concat(u).concat(o,")?"),d=new RegExp("(^".concat(o,"$)|(^").concat(c,"$)|(^").concat(l,"$)"));e.exports=t.default,e.exports.default=t.default},26081:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),e===e.toLowerCase()};var a,r=(a=n(57818))&&a.__esModule?a:{default:a};e.exports=t.default,e.exports.default=t.default},27514:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,r.default)(e);for(var t,n,a,i=e.replace(/[- ]+/g,""),s=0,o=i.length-1;o>=0;o--)t=i.substring(o,o+1),n=parseInt(t,10),s+=a&&(n*=2)>=10?n%10+1:n,a=!a;return!(s%10!=0||!i)};var a,r=(a=n(57818))&&a.__esModule?a:{default:a};e.exports=t.default,e.exports.default=t.default},29943:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n){(0,r.default)(t),null!=n&&n.eui&&(n.eui=String(n.eui));if(null!=n&&n.no_colons||null!=n&&n.no_separators)return"48"===n.eui?s.test(t):"64"===n.eui?u.test(t):s.test(t)||u.test(t);if("48"===(null==n?void 0:n.eui))return i.test(t)||o.test(t);if("64"===(null==n?void 0:n.eui))return c.test(t)||l.test(t);return e(t,{eui:"48"})||e(t,{eui:"64"})};var a,r=(a=n(57818))&&a.__esModule?a:{default:a};var i=/^(?:[0-9a-fA-F]{2}([-:\s]))([0-9a-fA-F]{2}\1){4}([0-9a-fA-F]{2})$/,s=/^([0-9a-fA-F]){12}$/,o=/^([0-9a-fA-F]{4}\.){2}([0-9a-fA-F]{4})$/,c=/^(?:[0-9a-fA-F]{2}([-:\s]))([0-9a-fA-F]{2}\1){6}([0-9a-fA-F]{2})$/,u=/^([0-9a-fA-F]){16}$/,l=/^([0-9a-fA-F]{4}\.){3}([0-9a-fA-F]{4})$/;e.exports=t.default,e.exports.default=t.default},55080:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),i.test(e)};var a,r=(a=n(57818))&&a.__esModule?a:{default:a};var i=/^[a-f0-9]{32}$/;e.exports=t.default,e.exports.default=t.default},51260:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,r.default)(e),0!==e.indexOf("magnet:?"))return!1;return i.test(e)};var a,r=(a=n(57818))&&a.__esModule?a:{default:a};var i=/(?:^magnet:\?|[^?&]&)xt(?:\.1)?=urn:(?:(?:aich|bitprint|btih|ed2k|ed2khash|kzhash|md5|sha1|tree:tiger):[a-z0-9]{32}(?:[a-z0-9]{8})?|btmh:1220[a-z0-9]{64})(?:$|&)/i;e.exports=t.default,e.exports.default=t.default},62432:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,i.default)(e),0!==e.indexOf("mailto:"))return!1;var n=o(e.replace("mailto:","").split("?"),2),s=n[0],u=void 0===s?"":s,l=n[1],d=void 0===l?"":l;if(!u&&!d)return!0;var p=function(e){var t=new Set(["subject","body","cc","bcc"]),n={cc:"",bcc:""},a=!1,r=e.split("&");if(r.length>4)return!1;var i,s=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,r=function(){};return{s:r,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,o=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){o=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(o)throw i}}}}(r);try{for(s.s();!(i=s.n()).done;){var u=o(i.value.split("="),2),l=u[0],d=u[1];if(l&&!t.has(l)){a=!0;break}!d||"cc"!==l&&"bcc"!==l||(n[l]=d),l&&t.delete(l)}}catch(e){s.e(e)}finally{s.f()}return!a&&n}(d);if(!p)return!1;return"".concat(u,",").concat(p.cc,",").concat(p.bcc).split(",").every((function(e){return!(e=(0,a.default)(e," "))||(0,r.default)(e,t)}))};var a=s(n(47506)),r=s(n(80708)),i=s(n(57818));function s(e){return e&&e.__esModule?e:{default:e}}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],a=!0,r=!1,i=void 0;try{for(var s,o=e[Symbol.iterator]();!(a=(s=o.next()).done)&&(n.push(s.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{a||null==o.return||o.return()}finally{if(r)throw i}}return n}(e,t)||c(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}e.exports=t.default,e.exports.default=t.default},20942:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),i.test(e)||s.test(e)||o.test(e)};var a,r=(a=n(57818))&&a.__esModule?a:{default:a};var i=/^(application|audio|font|image|message|model|multipart|text|video)\/[a-zA-Z0-9\.\-\+_]{1,100}$/i,s=/^text\/[a-zA-Z0-9\.\-\+]{1,100};\s?charset=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?$/i,o=/^multipart\/[a-zA-Z0-9\.\-\+]{1,100}(;\s?(boundary|charset)=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?){0,2}$/i;e.exports=t.default,e.exports.default=t.default},8982:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if((0,r.default)(e),n&&n.strictMode&&!e.startsWith("+"))return!1;if(Array.isArray(t))return t.some((function(t){if(i.hasOwnProperty(t)&&i[t].test(e))return!0;return!1}));if(t in i)return i[t].test(e);if(!t||"any"===t){for(var a in i){if(i.hasOwnProperty(a))if(i[a].test(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))},t.locales=void 0;var a,r=(a=n(57818))&&a.__esModule?a:{default:a};var i={"am-AM":/^(\+?374|0)((10|[9|7][0-9])\d{6}$|[2-4]\d{7}$)/,"ar-AE":/^((\+?971)|0)?5[024568]\d{7}$/,"ar-BH":/^(\+?973)?(3|6)\d{7}$/,"ar-DZ":/^(\+?213|0)(5|6|7)\d{8}$/,"ar-LB":/^(\+?961)?((3|81)\d{6}|7\d{7})$/,"ar-EG":/^((\+?20)|0)?1[0125]\d{8}$/,"ar-IQ":/^(\+?964|0)?7[0-9]\d{8}$/,"ar-JO":/^(\+?962|0)?7[789]\d{7}$/,"ar-KW":/^(\+?965)([569]\d{7}|41\d{6})$/,"ar-LY":/^((\+?218)|0)?(9[1-6]\d{7}|[1-8]\d{7,9})$/,"ar-MA":/^(?:(?:\+|00)212|0)[5-7]\d{8}$/,"ar-OM":/^((\+|00)968)?(9[1-9])\d{6}$/,"ar-PS":/^(\+?970|0)5[6|9](\d{7})$/,"ar-SA":/^(!?(\+?966)|0)?5\d{8}$/,"ar-SD":/^((\+?249)|0)?(9[012369]|1[012])\d{7}$/,"ar-SY":/^(!?(\+?963)|0)?9\d{8}$/,"ar-TN":/^(\+?216)?[2459]\d{7}$/,"az-AZ":/^(\+994|0)(10|5[015]|7[07]|99)\d{7}$/,"bs-BA":/^((((\+|00)3876)|06))((([0-3]|[5-6])\d{6})|(4\d{7}))$/,"be-BY":/^(\+?375)?(24|25|29|33|44)\d{7}$/,"bg-BG":/^(\+?359|0)?8[789]\d{7}$/,"bn-BD":/^(\+?880|0)1[13456789][0-9]{8}$/,"ca-AD":/^(\+376)?[346]\d{5}$/,"cs-CZ":/^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"da-DK":/^(\+?45)?\s?\d{2}\s?\d{2}\s?\d{2}\s?\d{2}$/,"de-DE":/^((\+49|0)1)(5[0-25-9]\d|6([23]|0\d?)|7([0-57-9]|6\d))\d{7,9}$/,"de-AT":/^(\+43|0)\d{1,4}\d{3,12}$/,"de-CH":/^(\+41|0)([1-9])\d{1,9}$/,"de-LU":/^(\+352)?((6\d1)\d{6})$/,"dv-MV":/^(\+?960)?(7[2-9]|9[1-9])\d{5}$/,"el-GR":/^(\+?30|0)?6(8[5-9]|9(?![26])[0-9])\d{7}$/,"el-CY":/^(\+?357?)?(9(9|6)\d{6})$/,"en-AI":/^(\+?1|0)264(?:2(35|92)|4(?:6[1-2]|76|97)|5(?:3[6-9]|8[1-4])|7(?:2(4|9)|72))\d{4}$/,"en-AU":/^(\+?61|0)4\d{8}$/,"en-AG":/^(?:\+1|1)268(?:464|7(?:1[3-9]|[28]\d|3[0246]|64|7[0-689]))\d{4}$/,"en-BM":/^(\+?1)?441(((3|7)\d{6}$)|(5[0-3][0-9]\d{4}$)|(59\d{5}$))/,"en-BS":/^(\+?1[-\s]?|0)?\(?242\)?[-\s]?\d{3}[-\s]?\d{4}$/,"en-GB":/^(\+?44|0)7\d{9}$/,"en-GG":/^(\+?44|0)1481\d{6}$/,"en-GH":/^(\+233|0)(20|50|24|54|27|57|26|56|23|28|55|59)\d{7}$/,"en-GY":/^(\+592|0)6\d{6}$/,"en-HK":/^(\+?852[-\s]?)?[456789]\d{3}[-\s]?\d{4}$/,"en-MO":/^(\+?853[-\s]?)?[6]\d{3}[-\s]?\d{4}$/,"en-IE":/^(\+?353|0)8[356789]\d{7}$/,"en-IN":/^(\+?91|0)?[6789]\d{9}$/,"en-JM":/^(\+?876)?\d{7}$/,"en-KE":/^(\+?254|0)(7|1)\d{8}$/,"fr-CF":/^(\+?236| ?)(70|75|77|72|21|22)\d{6}$/,"en-SS":/^(\+?211|0)(9[1257])\d{7}$/,"en-KI":/^((\+686|686)?)?( )?((6|7)(2|3|8)[0-9]{6})$/,"en-KN":/^(?:\+1|1)869(?:46\d|48[89]|55[6-8]|66\d|76[02-7])\d{4}$/,"en-LS":/^(\+?266)(22|28|57|58|59|27|52)\d{6}$/,"en-MT":/^(\+?356|0)?(99|79|77|21|27|22|25)[0-9]{6}$/,"en-MU":/^(\+?230|0)?\d{8}$/,"en-NA":/^(\+?264|0)(6|8)\d{7}$/,"en-NG":/^(\+?234|0)?[789]\d{9}$/,"en-NZ":/^(\+?64|0)[28]\d{7,9}$/,"en-PG":/^(\+?675|0)?(7\d|8[18])\d{6}$/,"en-PK":/^((00|\+)?92|0)3[0-6]\d{8}$/,"en-PH":/^(09|\+639)\d{9}$/,"en-RW":/^(\+?250|0)?[7]\d{8}$/,"en-SG":/^(\+65)?[3689]\d{7}$/,"en-SL":/^(\+?232|0)\d{8}$/,"en-TZ":/^(\+?255|0)?[67]\d{8}$/,"en-UG":/^(\+?256|0)?[7]\d{8}$/,"en-US":/^((\+1|1)?( |-)?)?(\([2-9][0-9]{2}\)|[2-9][0-9]{2})( |-)?([2-9][0-9]{2}( |-)?[0-9]{4})$/,"en-ZA":/^(\+?27|0)\d{9}$/,"en-ZM":/^(\+?26)?09[567]\d{7}$/,"en-ZW":/^(\+263)[0-9]{9}$/,"en-BW":/^(\+?267)?(7[1-8]{1})\d{6}$/,"es-AR":/^\+?549(11|[2368]\d)\d{8}$/,"es-BO":/^(\+?591)?(6|7)\d{7}$/,"es-CO":/^(\+?57)?3(0(0|1|2|4|5)|1\d|2[0-4]|5(0|1))\d{7}$/,"es-CL":/^(\+?56|0)[2-9]\d{1}\d{7}$/,"es-CR":/^(\+506)?[2-8]\d{7}$/,"es-CU":/^(\+53|0053)?5\d{7}$/,"es-DO":/^(\+?1)?8[024]9\d{7}$/,"es-HN":/^(\+?504)?[9|8|3|2]\d{7}$/,"es-EC":/^(\+?593|0)([2-7]|9[2-9])\d{7}$/,"es-ES":/^(\+?34)?[6|7]\d{8}$/,"es-PE":/^(\+?51)?9\d{8}$/,"es-MX":/^(\+?52)?(1|01)?\d{10,11}$/,"es-NI":/^(\+?505)\d{7,8}$/,"es-PA":/^(\+?507)\d{7,8}$/,"es-PY":/^(\+?595|0)9[9876]\d{7}$/,"es-SV":/^(\+?503)?[67]\d{7}$/,"es-UY":/^(\+598|0)9[1-9][\d]{6}$/,"es-VE":/^(\+?58)?(2|4)\d{9}$/,"et-EE":/^(\+?372)?\s?(5|8[1-4])\s?([0-9]\s?){6,7}$/,"fa-IR":/^(\+?98[\-\s]?|0)9[0-39]\d[\-\s]?\d{3}[\-\s]?\d{4}$/,"fi-FI":/^(\+?358|0)\s?(4[0-6]|50)\s?(\d\s?){4,8}$/,"fj-FJ":/^(\+?679)?\s?\d{3}\s?\d{4}$/,"fo-FO":/^(\+?298)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"fr-BF":/^(\+226|0)[67]\d{7}$/,"fr-BJ":/^(\+229)\d{8}$/,"fr-CD":/^(\+?243|0)?(8|9)\d{8}$/,"fr-CM":/^(\+?237)6[0-9]{8}$/,"fr-FR":/^(\+?33|0)[67]\d{8}$/,"fr-GF":/^(\+?594|0|00594)[67]\d{8}$/,"fr-GP":/^(\+?590|0|00590)[67]\d{8}$/,"fr-MQ":/^(\+?596|0|00596)[67]\d{8}$/,"fr-PF":/^(\+?689)?8[789]\d{6}$/,"fr-RE":/^(\+?262|0|00262)[67]\d{8}$/,"fr-WF":/^(\+681)?\d{6}$/,"he-IL":/^(\+972|0)([23489]|5[012345689]|77)[1-9]\d{6}$/,"hu-HU":/^(\+?36|06)(20|30|31|50|70)\d{7}$/,"id-ID":/^(\+?62|0)8(1[123456789]|2[1238]|3[1238]|5[12356789]|7[78]|9[56789]|8[123456789])([\s?|\d]{5,11})$/,"ir-IR":/^(\+98|0)?9\d{9}$/,"it-IT":/^(\+?39)?\s?3\d{2} ?\d{6,7}$/,"it-SM":/^((\+378)|(0549)|(\+390549)|(\+3780549))?6\d{5,9}$/,"ja-JP":/^(\+81[ \-]?(\(0\))?|0)[6789]0[ \-]?\d{4}[ \-]?\d{4}$/,"ka-GE":/^(\+?995)?(79\d{7}|5\d{8})$/,"kk-KZ":/^(\+?7|8)?7\d{9}$/,"kl-GL":/^(\+?299)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"ko-KR":/^((\+?82)[ \-]?)?0?1([0|1|6|7|8|9]{1})[ \-]?\d{3,4}[ \-]?\d{4}$/,"ky-KG":/^(\+?7\s?\+?7|0)\s?\d{2}\s?\d{3}\s?\d{4}$/,"lt-LT":/^(\+370|8)\d{8}$/,"lv-LV":/^(\+?371)2\d{7}$/,"mg-MG":/^((\+?261|0)(2|3)\d)?\d{7}$/,"mn-MN":/^(\+|00|011)?976(77|81|88|91|94|95|96|99)\d{6}$/,"my-MM":/^(\+?959|09|9)(2[5-7]|3[1-2]|4[0-5]|6[6-9]|7[5-9]|9[6-9])[0-9]{7}$/,"ms-MY":/^(\+?60|0)1(([0145](-|\s)?\d{7,8})|([236-9](-|\s)?\d{7}))$/,"mz-MZ":/^(\+?258)?8[234567]\d{7}$/,"nb-NO":/^(\+?47)?[49]\d{7}$/,"ne-NP":/^(\+?977)?9[78]\d{8}$/,"nl-BE":/^(\+?32|0)4\d{8}$/,"nl-NL":/^(((\+|00)?31\(0\))|((\+|00)?31)|0)6{1}\d{8}$/,"nl-AW":/^(\+)?297(56|59|64|73|74|99)\d{5}$/,"nn-NO":/^(\+?47)?[49]\d{7}$/,"pl-PL":/^(\+?48)? ?([5-8]\d|45) ?\d{3} ?\d{2} ?\d{2}$/,"pt-BR":/^((\+?55\ ?[1-9]{2}\ ?)|(\+?55\ ?\([1-9]{2}\)\ ?)|(0[1-9]{2}\ ?)|(\([1-9]{2}\)\ ?)|([1-9]{2}\ ?))((\d{4}\-?\d{4})|(9[1-9]{1}\d{3}\-?\d{4}))$/,"pt-PT":/^(\+?351)?9[1236]\d{7}$/,"pt-AO":/^(\+244)\d{9}$/,"ro-MD":/^(\+?373|0)((6(0|1|2|6|7|8|9))|(7(6|7|8|9)))\d{6}$/,"ro-RO":/^(\+?40|0)\s?7\d{2}(\/|\s|\.|-)?\d{3}(\s|\.|-)?\d{3}$/,"ru-RU":/^(\+?7|8)?9\d{9}$/,"si-LK":/^(?:0|94|\+94)?(7(0|1|2|4|5|6|7|8)( |-)?)\d{7}$/,"sl-SI":/^(\+386\s?|0)(\d{1}\s?\d{3}\s?\d{2}\s?\d{2}|\d{2}\s?\d{3}\s?\d{3})$/,"sk-SK":/^(\+?421)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"so-SO":/^(\+?252|0)((6[0-9])\d{7}|(7[1-9])\d{7})$/,"sq-AL":/^(\+355|0)6[789]\d{6}$/,"sr-RS":/^(\+3816|06)[- \d]{5,9}$/,"sv-SE":/^(\+?46|0)[\s\-]?7[\s\-]?[02369]([\s\-]?\d){7}$/,"tg-TJ":/^(\+?992)?[5][5]\d{7}$/,"th-TH":/^(\+66|66|0)\d{9}$/,"tr-TR":/^(\+?90|0)?5\d{9}$/,"tk-TM":/^(\+993|993|8)\d{8}$/,"uk-UA":/^(\+?38|8)?0\d{9}$/,"uz-UZ":/^(\+?998)?(6[125-79]|7[1-69]|88|9\d)\d{7}$/,"vi-VN":/^((\+?84)|0)((3([2-9]))|(5([25689]))|(7([0|6-9]))|(8([1-9]))|(9([0-9])))([0-9]{7})$/,"zh-CN":/^((\+|00)86)?(1[3-9]|9[28])\d{9}$/,"zh-TW":/^(\+?886\-?|0)?9\d{8}$/,"dz-BT":/^(\+?975|0)?(17|16|77|02)\d{6}$/,"ar-YE":/^(((\+|00)9677|0?7)[0137]\d{7}|((\+|00)967|0)[1-7]\d{6})$/,"ar-EH":/^(\+?212|0)[\s\-]?(5288|5289)[\s\-]?\d{5}$/,"fa-AF":/^(\+93|0)?(2{1}[0-8]{1}|[3-5]{1}[0-4]{1})(\d{7})$/};i["en-CA"]=i["en-US"],i["fr-CA"]=i["en-CA"],i["fr-BE"]=i["nl-BE"],i["zh-HK"]=i["en-HK"],i["zh-MO"]=i["en-MO"],i["ga-IE"]=i["en-IE"],i["fr-CH"]=i["de-CH"],i["it-CH"]=i["fr-CH"];var s=Object.keys(i);t.locales=s},43125:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),(0,r.default)(e)&&24===e.length};var a=i(n(57818)),r=i(n(89791));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},77839:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),i.test(e)};var a,r=(a=n(57818))&&a.__esModule?a:{default:a};var i=/[^\x00-\x7F]/;e.exports=t.default,e.exports.default=t.default},41663:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),t&&t.no_symbols)return s.test(e);return new RegExp("^[+-]?([0-9]*[".concat((t||{}).locale?i.decimal[t.locale]:".","])?[0-9]+$")).test(e)};var a,r=(a=n(57818))&&a.__esModule?a:{default:a},i=n(56688);var s=/^[0-9]+$/;e.exports=t.default,e.exports.default=t.default},23651:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),i.test(e)};var a,r=(a=n(57818))&&a.__esModule?a:{default:a};var i=/^(0o)?[0-7]+$/i;e.exports=t.default,e.exports.default=t.default},22021:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e);var n=e.replace(/\s/g,"").toUpperCase();return t.toUpperCase()in i&&i[t].test(n)};var a,r=(a=n(57818))&&a.__esModule?a:{default:a};var i={AM:/^[A-Z]{2}\d{7}$/,AR:/^[A-Z]{3}\d{6}$/,AT:/^[A-Z]\d{7}$/,AU:/^[A-Z]\d{7}$/,AZ:/^[A-Z]{2,3}\d{7,8}$/,BE:/^[A-Z]{2}\d{6}$/,BG:/^\d{9}$/,BR:/^[A-Z]{2}\d{6}$/,BY:/^[A-Z]{2}\d{7}$/,CA:/^[A-Z]{2}\d{6}$/,CH:/^[A-Z]\d{7}$/,CN:/^G\d{8}$|^E(?![IO])[A-Z0-9]\d{7}$/,CY:/^[A-Z](\d{6}|\d{8})$/,CZ:/^\d{8}$/,DE:/^[CFGHJKLMNPRTVWXYZ0-9]{9}$/,DK:/^\d{9}$/,DZ:/^\d{9}$/,EE:/^([A-Z]\d{7}|[A-Z]{2}\d{7})$/,ES:/^[A-Z0-9]{2}([A-Z0-9]?)\d{6}$/,FI:/^[A-Z]{2}\d{7}$/,FR:/^\d{2}[A-Z]{2}\d{5}$/,GB:/^\d{9}$/,GR:/^[A-Z]{2}\d{7}$/,HR:/^\d{9}$/,HU:/^[A-Z]{2}(\d{6}|\d{7})$/,IE:/^[A-Z0-9]{2}\d{7}$/,IN:/^[A-Z]{1}-?\d{7}$/,ID:/^[A-C]\d{7}$/,IR:/^[A-Z]\d{8}$/,IS:/^(A)\d{7}$/,IT:/^[A-Z0-9]{2}\d{7}$/,JM:/^[Aa]\d{7}$/,JP:/^[A-Z]{2}\d{7}$/,KR:/^[MS]\d{8}$/,KZ:/^[a-zA-Z]\d{7}$/,LI:/^[a-zA-Z]\d{5}$/,LT:/^[A-Z0-9]{8}$/,LU:/^[A-Z0-9]{8}$/,LV:/^[A-Z0-9]{2}\d{7}$/,LY:/^[A-Z0-9]{8}$/,MT:/^\d{7}$/,MZ:/^([A-Z]{2}\d{7})|(\d{2}[A-Z]{2}\d{5})$/,MY:/^[AHK]\d{8}$/,MX:/^\d{10,11}$/,NL:/^[A-Z]{2}[A-Z0-9]{6}\d$/,NZ:/^([Ll]([Aa]|[Dd]|[Ff]|[Hh])|[Ee]([Aa]|[Pp])|[Nn])\d{6}$/,PH:/^([A-Z](\d{6}|\d{7}[A-Z]))|([A-Z]{2}(\d{6}|\d{7}))$/,PK:/^[A-Z]{2}\d{7}$/,PL:/^[A-Z]{2}\d{7}$/,PT:/^[A-Z]\d{6}$/,RO:/^\d{8,9}$/,RU:/^\d{9}$/,SE:/^\d{8}$/,SL:/^(P)[A-Z]\d{7}$/,SK:/^[0-9A-Z]\d{7}$/,TH:/^[A-Z]{1,2}\d{6,7}$/,TR:/^[A-Z]\d{8}$/,UA:/^[A-Z]{2}\d{6}$/,US:/^\d{9}$/};e.exports=t.default,e.exports.default=t.default},52289:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e,{min:0,max:65535})};var a,r=(a=n(45921))&&a.__esModule?a:{default:a};e.exports=t.default,e.exports.default=t.default},96996:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),t in u)return u[t].test(e);if("any"===t){for(var n in u){if(u.hasOwnProperty(n))if(u[n].test(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))},t.locales=void 0;var a,r=(a=n(57818))&&a.__esModule?a:{default:a};var i=/^\d{3}$/,s=/^\d{4}$/,o=/^\d{5}$/,c=/^\d{6}$/,u={AD:/^AD\d{3}$/,AT:s,AU:s,AZ:/^AZ\d{4}$/,BA:/^([7-8]\d{4}$)/,BE:s,BG:s,BR:/^\d{5}-\d{3}$/,BY:/^2[1-4]\d{4}$/,CA:/^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJ-NPRSTV-Z][\s\-]?\d[ABCEGHJ-NPRSTV-Z]\d$/i,CH:s,CN:/^(0[1-7]|1[012356]|2[0-7]|3[0-6]|4[0-7]|5[1-7]|6[1-7]|7[1-5]|8[1345]|9[09])\d{4}$/,CZ:/^\d{3}\s?\d{2}$/,DE:o,DK:s,DO:o,DZ:o,EE:o,ES:/^(5[0-2]{1}|[0-4]{1}\d{1})\d{3}$/,FI:o,FR:/^\d{2}\s?\d{3}$/,GB:/^(gir\s?0aa|[a-z]{1,2}\d[\da-z]?\s?(\d[a-z]{2})?)$/i,GR:/^\d{3}\s?\d{2}$/,HR:/^([1-5]\d{4}$)/,HT:/^HT\d{4}$/,HU:s,ID:o,IE:/^(?!.*(?:o))[A-Za-z]\d[\dw]\s\w{4}$/i,IL:/^(\d{5}|\d{7})$/,IN:/^((?!10|29|35|54|55|65|66|86|87|88|89)[1-9][0-9]{5})$/,IR:/^(?!(\d)\1{3})[13-9]{4}[1346-9][013-9]{5}$/,IS:i,IT:o,JP:/^\d{3}\-\d{4}$/,KE:o,KR:/^(\d{5}|\d{6})$/,LI:/^(948[5-9]|949[0-7])$/,LT:/^LT\-\d{5}$/,LU:s,LV:/^LV\-\d{4}$/,LK:o,MG:i,MX:o,MT:/^[A-Za-z]{3}\s{0,1}\d{4}$/,MY:o,NL:/^\d{4}\s?[a-z]{2}$/i,NO:s,NP:/^(10|21|22|32|33|34|44|45|56|57)\d{3}$|^(977)$/i,NZ:s,PL:/^\d{2}\-\d{3}$/,PR:/^00[679]\d{2}([ -]\d{4})?$/,PT:/^\d{4}\-\d{3}?$/,RO:c,RU:c,SA:o,SE:/^[1-9]\d{2}\s?\d{2}$/,SG:c,SI:s,SK:/^\d{3}\s?\d{2}$/,TH:o,TN:s,TW:/^\d{3}(\d{2})?$/,UA:o,US:/^\d{5}(-\d{4})?$/,ZA:s,ZM:o},l=Object.keys(u);t.locales=l},72947:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),p.test(e)};var a,r=(a=n(57818))&&a.__esModule?a:{default:a};var i=/([01][0-9]|2[0-3])/,s=/[0-5][0-9]/,o=new RegExp("[-+]".concat(i.source,":").concat(s.source)),c=new RegExp("([zZ]|".concat(o.source,")")),u=new RegExp("".concat(i.source,":").concat(s.source,":").concat(/([0-5][0-9]|60)/.source).concat(/(\.[0-9]+)?/.source)),l=new RegExp("".concat(/[0-9]{4}/.source,"-").concat(/(0[1-9]|1[0-2])/.source,"-").concat(/([12]\d|0[1-9]|3[01])/.source)),d=new RegExp("".concat(u.source).concat(c.source)),p=new RegExp("^".concat(l.source,"[ tT]").concat(d.source,"$"));e.exports=t.default,e.exports.default=t.default},63144:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if((0,r.default)(e),!t)return i.test(e)||s.test(e);return i.test(e)||s.test(e)||o.test(e)||c.test(e)};var a,r=(a=n(57818))&&a.__esModule?a:{default:a};var i=/^rgb\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){2}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\)$/,s=/^rgba\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)$/,o=/^rgb\((([0-9]%|[1-9][0-9]%|100%),){2}([0-9]%|[1-9][0-9]%|100%)\)$/,c=/^rgba\((([0-9]%|[1-9][0-9]%|100%),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)$/;e.exports=t.default,e.exports.default=t.default},91342:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,a.default)(e),i.test(e)};var a=r(n(57818));function r(e){return e&&e.__esModule?e:{default:e}}var i=(0,r(n(80107)).default)(["^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)","(?:-((?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*))*))","?(?:\\+([0-9a-z-]+(?:\\.[0-9a-z-]+)*))?$"],"i");e.exports=t.default,e.exports.default=t.default},4945:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),i.test(e)};var a,r=(a=n(57818))&&a.__esModule?a:{default:a};var i=/^[^\s-_](?!.*?[-_]{2,})[a-z0-9-\\][^\s]*[^-_\s]$/;e.exports=t.default,e.exports.default=t.default},33836:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;(0,r.default)(e);var n=function(e){var t=function(e){var t={};return Array.from(e).forEach((function(e){t[e]?t[e]+=1:t[e]=1})),t}(e),n={length:e.length,uniqueChars:Object.keys(t).length,uppercaseCount:0,lowercaseCount:0,numberCount:0,symbolCount:0};return Object.keys(t).forEach((function(e){s.test(e)?n.uppercaseCount+=t[e]:o.test(e)?n.lowercaseCount+=t[e]:c.test(e)?n.numberCount+=t[e]:u.test(e)&&(n.symbolCount+=t[e])})),n}(e);if((t=(0,a.default)(t||{},l)).returnScore)return function(e,t){var n=0;n+=e.uniqueChars*t.pointsPerUnique,n+=(e.length-e.uniqueChars)*t.pointsPerRepeat,e.lowercaseCount>0&&(n+=t.pointsForContainingLower);e.uppercaseCount>0&&(n+=t.pointsForContainingUpper);e.numberCount>0&&(n+=t.pointsForContainingNumber);e.symbolCount>0&&(n+=t.pointsForContainingSymbol);return n}(n,t);return n.length>=t.minLength&&n.lowercaseCount>=t.minLowercase&&n.uppercaseCount>=t.minUppercase&&n.numberCount>=t.minNumbers&&n.symbolCount>=t.minSymbols};var a=i(n(94749)),r=i(n(57818));function i(e){return e&&e.__esModule?e:{default:e}}var s=/^[A-Z]$/,o=/^[a-z]$/,c=/^[0-9]$/,u=/^[-#!$@£%^&*()_+|~=`{}\[\]:";'<>?,.\/ ]$/,l={minLength:8,minLowercase:1,minUppercase:1,minNumbers:1,minSymbols:1,returnScore:!1,pointsPerUnique:1,pointsPerRepeat:.5,pointsForContainingLower:10,pointsForContainingUpper:10,pointsForContainingNumber:10,pointsForContainingSymbol:10};e.exports=t.default,e.exports.default=t.default},67182:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),i.test(e)};var a,r=(a=n(57818))&&a.__esModule?a:{default:a};var i=/[\uD800-\uDBFF][\uDC00-\uDFFF]/;e.exports=t.default,e.exports.default=t.default},57628:(e,t,n)=>{"use strict";function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US";(0,r.default)(e);var n=e.slice(0);if(t in f)return t in b&&(n=n.replace(b[t],"")),!!f[t].test(n)&&(!(t in m)||m[t](n));throw new Error("Invalid locale '".concat(t,"'"))};var r=c(n(57818)),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var s=r?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(57387)),s=c(n(99002));function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}function c(e){return e&&e.__esModule?e:{default:e}}function u(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var d={andover:["10","12"],atlanta:["60","67"],austin:["50","53"],brookhaven:["01","02","03","04","05","06","11","13","14","16","21","22","23","25","34","51","52","54","55","56","57","58","59","65"],cincinnati:["30","32","35","36","37","38","61"],fresno:["15","24"],internet:["20","26","27","45","46","47"],kansas:["40","44"],memphis:["94","95"],ogden:["80","90"],philadelphia:["33","39","41","42","43","46","48","62","63","64","66","68","71","72","73","74","75","76","77","81","82","83","84","85","86","87","88","91","92","93","98","99"],sba:["31"]};function p(e){for(var t=!1,n=!1,a=0;a<3;a++)if(!t&&/[AEIOU]/.test(e[a]))t=!0;else if(!n&&t&&"X"===e[a])n=!0;else if(a>0){if(t&&!n&&!/[AEIOU]/.test(e[a]))return!1;if(n&&!/X/.test(e[a]))return!1}return!0}var f={"bg-BG":/^\d{10}$/,"cs-CZ":/^\d{6}\/{0,1}\d{3,4}$/,"de-AT":/^\d{9}$/,"de-DE":/^[1-9]\d{10}$/,"dk-DK":/^\d{6}-{0,1}\d{4}$/,"el-CY":/^[09]\d{7}[A-Z]$/,"el-GR":/^([0-4]|[7-9])\d{8}$/,"en-CA":/^\d{9}$/,"en-GB":/^\d{10}$|^(?!GB|NK|TN|ZZ)(?![DFIQUV])[A-Z](?![DFIQUVO])[A-Z]\d{6}[ABCD ]$/i,"en-IE":/^\d{7}[A-W][A-IW]{0,1}$/i,"en-US":/^\d{2}[- ]{0,1}\d{7}$/,"es-ES":/^(\d{0,8}|[XYZKLM]\d{7})[A-HJ-NP-TV-Z]$/i,"et-EE":/^[1-6]\d{6}(00[1-9]|0[1-9][0-9]|[1-6][0-9]{2}|70[0-9]|710)\d$/,"fi-FI":/^\d{6}[-+A]\d{3}[0-9A-FHJ-NPR-Y]$/i,"fr-BE":/^\d{11}$/,"fr-FR":/^[0-3]\d{12}$|^[0-3]\d\s\d{2}(\s\d{3}){3}$/,"fr-LU":/^\d{13}$/,"hr-HR":/^\d{11}$/,"hu-HU":/^8\d{9}$/,"it-IT":/^[A-Z]{6}[L-NP-V0-9]{2}[A-EHLMPRST][L-NP-V0-9]{2}[A-ILMZ][L-NP-V0-9]{3}[A-Z]$/i,"lv-LV":/^\d{6}-{0,1}\d{5}$/,"mt-MT":/^\d{3,7}[APMGLHBZ]$|^([1-8])\1\d{7}$/i,"nl-NL":/^\d{9}$/,"pl-PL":/^\d{10,11}$/,"pt-BR":/(?:^\d{11}$)|(?:^\d{14}$)/,"pt-PT":/^\d{9}$/,"ro-RO":/^\d{13}$/,"sk-SK":/^\d{6}\/{0,1}\d{3,4}$/,"sl-SI":/^[1-9]\d{7}$/,"sv-SE":/^(\d{6}[-+]{0,1}\d{4}|(18|19|20)\d{6}[-+]{0,1}\d{4})$/};f["lb-LU"]=f["fr-LU"],f["lt-LT"]=f["et-EE"],f["nl-BE"]=f["fr-BE"],f["fr-CA"]=f["en-CA"];var m={"bg-BG":function(e){var t=e.slice(0,2),n=parseInt(e.slice(2,4),10);n>40?(n-=40,t="20".concat(t)):n>20?(n-=20,t="18".concat(t)):t="19".concat(t),n<10&&(n="0".concat(n));var a="".concat(t,"/").concat(n,"/").concat(e.slice(4,6));if(!(0,s.default)(a,"YYYY/MM/DD"))return!1;for(var r=e.split("").map((function(e){return parseInt(e,10)})),i=[2,4,8,5,10,9,7,3,6],o=0,c=0;c<i.length;c++)o+=r[c]*i[c];return(o=o%11==10?0:o%11)===r[9]},"cs-CZ":function(e){e=e.replace(/\W/,"");var t=parseInt(e.slice(0,2),10);if(10===e.length)t=t<54?"20".concat(t):"19".concat(t);else{if("000"===e.slice(6))return!1;if(!(t<54))return!1;t="19".concat(t)}3===t.length&&(t=[t.slice(0,2),"0",t.slice(2)].join(""));var n=parseInt(e.slice(2,4),10);if(n>50&&(n-=50),n>20){if(parseInt(t,10)<2004)return!1;n-=20}n<10&&(n="0".concat(n));var a="".concat(t,"/").concat(n,"/").concat(e.slice(4,6));if(!(0,s.default)(a,"YYYY/MM/DD"))return!1;if(10===e.length&&parseInt(e,10)%11!=0){var r=parseInt(e.slice(0,9),10)%11;if(!(parseInt(t,10)<1986&&10===r))return!1;if(0!==parseInt(e.slice(9),10))return!1}return!0},"de-AT":function(e){return i.luhnCheck(e)},"de-DE":function(e){for(var t=e.split("").map((function(e){return parseInt(e,10)})),n=[],a=0;a<t.length-1;a++){n.push("");for(var r=0;r<t.length-1;r++)t[a]===t[r]&&(n[a]+=r)}if(2!==(n=n.filter((function(e){return e.length>1}))).length&&3!==n.length)return!1;if(3===n[0].length){for(var s=n[0].split("").map((function(e){return parseInt(e,10)})),o=0,c=0;c<s.length-1;c++)s[c]+1===s[c+1]&&(o+=1);if(2===o)return!1}return i.iso7064Check(e)},"dk-DK":function(e){e=e.replace(/\W/,"");var t=parseInt(e.slice(4,6),10);switch(e.slice(6,7)){case"0":case"1":case"2":case"3":t="19".concat(t);break;case"4":case"9":t=t<37?"20".concat(t):"19".concat(t);break;default:if(t<37)t="20".concat(t);else{if(!(t>58))return!1;t="18".concat(t)}}3===t.length&&(t=[t.slice(0,2),"0",t.slice(2)].join(""));var n="".concat(t,"/").concat(e.slice(2,4),"/").concat(e.slice(0,2));if(!(0,s.default)(n,"YYYY/MM/DD"))return!1;for(var a=e.split("").map((function(e){return parseInt(e,10)})),r=0,i=4,o=0;o<9;o++)r+=a[o]*i,1===(i-=1)&&(i=7);return 1!==(r%=11)&&(0===r?0===a[9]:a[9]===11-r)},"el-CY":function(e){for(var t=e.slice(0,8).split("").map((function(e){return parseInt(e,10)})),n=0,a=1;a<t.length;a+=2)n+=t[a];for(var r=0;r<t.length;r+=2)t[r]<2?n+=1-t[r]:(n+=2*(t[r]-2)+5,t[r]>4&&(n+=2));return String.fromCharCode(n%26+65)===e.charAt(8)},"el-GR":function(e){for(var t=e.split("").map((function(e){return parseInt(e,10)})),n=0,a=0;a<8;a++)n+=t[a]*Math.pow(2,8-a);return n%11%10===t[8]},"en-CA":function(e){var t=e.split(""),n=t.filter((function(e,t){return t%2})).map((function(e){return 2*Number(e)})).join("").split("");return t.filter((function(e,t){return!(t%2)})).concat(n).map((function(e){return Number(e)})).reduce((function(e,t){return e+t}))%10==0},"en-IE":function(e){var t=i.reverseMultiplyAndSum(e.split("").slice(0,7).map((function(e){return parseInt(e,10)})),8);return 9===e.length&&"W"!==e[8]&&(t+=9*(e[8].charCodeAt(0)-64)),0===(t%=23)?"W"===e[7].toUpperCase():e[7].toUpperCase()===String.fromCharCode(64+t)},"en-US":function(e){return-1!==function(){var e=[];for(var t in d)d.hasOwnProperty(t)&&e.push.apply(e,u(d[t]));return e}().indexOf(e.slice(0,2))},"es-ES":function(e){var t=e.toUpperCase().split("");if(isNaN(parseInt(t[0],10))&&t.length>1){var n=0;switch(t[0]){case"Y":n=1;break;case"Z":n=2}t.splice(0,1,n)}else for(;t.length<9;)t.unshift(0);t=t.join("");var a=parseInt(t.slice(0,8),10)%23;return t[8]===["T","R","W","A","G","M","Y","F","P","D","X","B","N","J","Z","S","Q","V","H","L","C","K","E"][a]},"et-EE":function(e){var t=e.slice(1,3);switch(e.slice(0,1)){case"1":case"2":t="18".concat(t);break;case"3":case"4":t="19".concat(t);break;default:t="20".concat(t)}var n="".concat(t,"/").concat(e.slice(3,5),"/").concat(e.slice(5,7));if(!(0,s.default)(n,"YYYY/MM/DD"))return!1;for(var a=e.split("").map((function(e){return parseInt(e,10)})),r=0,i=1,o=0;o<10;o++)r+=a[o]*i,10===(i+=1)&&(i=1);if(r%11==10){r=0,i=3;for(var c=0;c<10;c++)r+=a[c]*i,10===(i+=1)&&(i=1);if(r%11==10)return 0===a[10]}return r%11===a[10]},"fi-FI":function(e){var t=e.slice(4,6);switch(e.slice(6,7)){case"+":t="18".concat(t);break;case"-":t="19".concat(t);break;default:t="20".concat(t)}var n="".concat(t,"/").concat(e.slice(2,4),"/").concat(e.slice(0,2));if(!(0,s.default)(n,"YYYY/MM/DD"))return!1;var a=parseInt(e.slice(0,6)+e.slice(7,10),10)%31;return a<10?a===parseInt(e.slice(10),10):["A","B","C","D","E","F","H","J","K","L","M","N","P","R","S","T","U","V","W","X","Y"][a-=10]===e.slice(10)},"fr-BE":function(e){if("00"!==e.slice(2,4)||"00"!==e.slice(4,6)){var t="".concat(e.slice(0,2),"/").concat(e.slice(2,4),"/").concat(e.slice(4,6));if(!(0,s.default)(t,"YY/MM/DD"))return!1}var n=97-parseInt(e.slice(0,9),10)%97,a=parseInt(e.slice(9,11),10);return n===a||(n=97-parseInt("2".concat(e.slice(0,9)),10)%97)===a},"fr-FR":function(e){return e=e.replace(/\s/g,""),parseInt(e.slice(0,10),10)%511===parseInt(e.slice(10,13),10)},"fr-LU":function(e){var t="".concat(e.slice(0,4),"/").concat(e.slice(4,6),"/").concat(e.slice(6,8));return!!(0,s.default)(t,"YYYY/MM/DD")&&(!!i.luhnCheck(e.slice(0,12))&&i.verhoeffCheck("".concat(e.slice(0,11)).concat(e[12])))},"hr-HR":function(e){return i.iso7064Check(e)},"hu-HU":function(e){for(var t=e.split("").map((function(e){return parseInt(e,10)})),n=8,a=1;a<9;a++)n+=t[a]*(a+1);return n%11===t[9]},"it-IT":function(e){var t=e.toUpperCase().split("");if(!p(t.slice(0,3)))return!1;if(!p(t.slice(3,6)))return!1;for(var n={L:"0",M:"1",N:"2",P:"3",Q:"4",R:"5",S:"6",T:"7",U:"8",V:"9"},a=0,r=[6,7,9,10,12,13,14];a<r.length;a++){var i=r[a];t[i]in n&&t.splice(i,1,n[t[i]])}var o={A:"01",B:"02",C:"03",D:"04",E:"05",H:"06",L:"07",M:"08",P:"09",R:"10",S:"11",T:"12"}[t[8]],c=parseInt(t[9]+t[10],10);c>40&&(c-=40),c<10&&(c="0".concat(c));var u="".concat(t[6]).concat(t[7],"/").concat(o,"/").concat(c);if(!(0,s.default)(u,"YY/MM/DD"))return!1;for(var l=0,d=1;d<t.length-1;d+=2){var f=parseInt(t[d],10);isNaN(f)&&(f=t[d].charCodeAt(0)-65),l+=f}for(var m={A:1,B:0,C:5,D:7,E:9,F:13,G:15,H:17,I:19,J:21,K:2,L:4,M:18,N:20,O:11,P:3,Q:6,R:8,S:12,T:14,U:16,V:10,W:22,X:25,Y:24,Z:23,0:1,1:0},h=0;h<t.length-1;h+=2){var b=0;if(t[h]in m)b=m[t[h]];else{var g=parseInt(t[h],10);b=2*g+1,g>4&&(b+=2)}l+=b}return String.fromCharCode(65+l%26)===t[15]},"lv-LV":function(e){var t=(e=e.replace(/\W/,"")).slice(0,2);if("32"!==t){if("00"!==e.slice(2,4)){var n=e.slice(4,6);switch(e[6]){case"0":n="18".concat(n);break;case"1":n="19".concat(n);break;default:n="20".concat(n)}var a="".concat(n,"/").concat(e.slice(2,4),"/").concat(t);if(!(0,s.default)(a,"YYYY/MM/DD"))return!1}for(var r=1101,i=[1,6,3,7,9,10,5,8,4,2],o=0;o<e.length-1;o++)r-=parseInt(e[o],10)*i[o];return parseInt(e[10],10)===r%11}return!0},"mt-MT":function(e){if(9!==e.length){for(var t=e.toUpperCase().split("");t.length<8;)t.unshift(0);switch(e[7]){case"A":case"P":if(0===parseInt(t[6],10))return!1;break;default:var n=parseInt(t.join("").slice(0,5),10);if(n>32e3)return!1;if(n===parseInt(t.join("").slice(5,7),10))return!1}}return!0},"nl-NL":function(e){return i.reverseMultiplyAndSum(e.split("").slice(0,8).map((function(e){return parseInt(e,10)})),9)%11===parseInt(e[8],10)},"pl-PL":function(e){if(10===e.length){for(var t=[6,5,7,2,3,4,5,6,7],n=0,a=0;a<t.length;a++)n+=parseInt(e[a],10)*t[a];return 10!==(n%=11)&&n===parseInt(e[9],10)}var r=e.slice(0,2),i=parseInt(e.slice(2,4),10);i>80?(r="18".concat(r),i-=80):i>60?(r="22".concat(r),i-=60):i>40?(r="21".concat(r),i-=40):i>20?(r="20".concat(r),i-=20):r="19".concat(r),i<10&&(i="0".concat(i));var o="".concat(r,"/").concat(i,"/").concat(e.slice(4,6));if(!(0,s.default)(o,"YYYY/MM/DD"))return!1;for(var c=0,u=1,l=0;l<e.length-1;l++)c+=parseInt(e[l],10)*u%10,(u+=2)>10?u=1:5===u&&(u+=2);return(c=10-c%10)===parseInt(e[10],10)},"pt-BR":function(e){if(11===e.length){var t,n;if(t=0,"11111111111"===e||"22222222222"===e||"33333333333"===e||"44444444444"===e||"55555555555"===e||"66666666666"===e||"77777777777"===e||"88888888888"===e||"99999999999"===e||"00000000000"===e)return!1;for(var a=1;a<=9;a++)t+=parseInt(e.substring(a-1,a),10)*(11-a);if(10===(n=10*t%11)&&(n=0),n!==parseInt(e.substring(9,10),10))return!1;t=0;for(var r=1;r<=10;r++)t+=parseInt(e.substring(r-1,r),10)*(12-r);return 10===(n=10*t%11)&&(n=0),n===parseInt(e.substring(10,11),10)}if("00000000000000"===e||"11111111111111"===e||"22222222222222"===e||"33333333333333"===e||"44444444444444"===e||"55555555555555"===e||"66666666666666"===e||"77777777777777"===e||"88888888888888"===e||"99999999999999"===e)return!1;for(var i=e.length-2,s=e.substring(0,i),o=e.substring(i),c=0,u=i-7,l=i;l>=1;l--)c+=s.charAt(i-l)*u,(u-=1)<2&&(u=9);var d=c%11<2?0:11-c%11;if(d!==parseInt(o.charAt(0),10))return!1;i+=1,s=e.substring(0,i),c=0,u=i-7;for(var p=i;p>=1;p--)c+=s.charAt(i-p)*u,(u-=1)<2&&(u=9);return(d=c%11<2?0:11-c%11)===parseInt(o.charAt(1),10)},"pt-PT":function(e){var t=11-i.reverseMultiplyAndSum(e.split("").slice(0,8).map((function(e){return parseInt(e,10)})),9)%11;return t>9?0===parseInt(e[8],10):t===parseInt(e[8],10)},"ro-RO":function(e){if("9000"!==e.slice(0,4)){var t=e.slice(1,3);switch(e[0]){case"1":case"2":t="19".concat(t);break;case"3":case"4":t="18".concat(t);break;case"5":case"6":t="20".concat(t)}var n="".concat(t,"/").concat(e.slice(3,5),"/").concat(e.slice(5,7));if(8===n.length){if(!(0,s.default)(n,"YY/MM/DD"))return!1}else if(!(0,s.default)(n,"YYYY/MM/DD"))return!1;for(var a=e.split("").map((function(e){return parseInt(e,10)})),r=[2,7,9,1,4,6,3,5,8,2,7,9],i=0,o=0;o<r.length;o++)i+=a[o]*r[o];return i%11==10?1===a[12]:a[12]===i%11}return!0},"sk-SK":function(e){if(9===e.length){if("000"===(e=e.replace(/\W/,"")).slice(6))return!1;var t=parseInt(e.slice(0,2),10);if(t>53)return!1;t=t<10?"190".concat(t):"19".concat(t);var n=parseInt(e.slice(2,4),10);n>50&&(n-=50),n<10&&(n="0".concat(n));var a="".concat(t,"/").concat(n,"/").concat(e.slice(4,6));if(!(0,s.default)(a,"YYYY/MM/DD"))return!1}return!0},"sl-SI":function(e){var t=11-i.reverseMultiplyAndSum(e.split("").slice(0,7).map((function(e){return parseInt(e,10)})),8)%11;return 10===t?0===parseInt(e[7],10):t===parseInt(e[7],10)},"sv-SE":function(e){var t=e.slice(0);e.length>11&&(t=t.slice(2));var n="",a=t.slice(2,4),r=parseInt(t.slice(4,6),10);if(e.length>11)n=e.slice(0,4);else if(n=e.slice(0,2),11===e.length&&r<60){var o=(new Date).getFullYear().toString(),c=parseInt(o.slice(0,2),10);if(o=parseInt(o,10),"-"===e[6])n=parseInt("".concat(c).concat(n),10)>o?"".concat(c-1).concat(n):"".concat(c).concat(n);else if(n="".concat(c-1).concat(n),o-parseInt(n,10)<100)return!1}r>60&&(r-=60),r<10&&(r="0".concat(r));var u="".concat(n,"/").concat(a,"/").concat(r);if(8===u.length){if(!(0,s.default)(u,"YY/MM/DD"))return!1}else if(!(0,s.default)(u,"YYYY/MM/DD"))return!1;return i.luhnCheck(e.replace(/\W/,""))}};m["lb-LU"]=m["fr-LU"],m["lt-LT"]=m["et-EE"],m["nl-BE"]=m["fr-BE"],m["fr-CA"]=m["en-CA"];var h=/[-\\\/!@#$%\^&\*\(\)\+\=\[\]]+/g,b={"de-AT":h,"de-DE":/[\/\\]/g,"fr-BE":h};b["nl-BE"]=b["fr-BE"],e.exports=t.default,e.exports.default=t.default},53347:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return t=(0,r.default)(t,i),"string"==typeof e&&s[t.hourFormat][t.mode].test(e)};var a,r=(a=n(94749))&&a.__esModule?a:{default:a};var i={hourFormat:"hour24",mode:"default"},s={hour24:{default:/^([01]?[0-9]|2[0-3]):([0-5][0-9])$/,withSeconds:/^([01]?[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/},hour12:{default:/^(0?[1-9]|1[0-2]):([0-5][0-9]) (A|P)M$/,withSeconds:/^(0?[1-9]|1[0-2]):([0-5][0-9]):([0-5][0-9]) (A|P)M$/}};e.exports=t.default,e.exports.default=t.default},71537:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,a.default)(e),!e||/[\s<>]/.test(e))return!1;if(0===e.indexOf("mailto:"))return!1;if((t=(0,s.default)(t,u)).validate_length&&e.length>=2083)return!1;if(!t.allow_fragments&&e.includes("#"))return!1;if(!t.allow_query_components&&(e.includes("?")||e.includes("&")))return!1;var n,o,p,f,m,h,b,g;if(b=e.split("#"),e=b.shift(),b=e.split("?"),e=b.shift(),(b=e.split("://")).length>1){if(n=b.shift().toLowerCase(),t.require_valid_protocol&&-1===t.protocols.indexOf(n))return!1}else{if(t.require_protocol)return!1;if("//"===e.slice(0,2)){if(!t.allow_protocol_relative_urls)return!1;b[0]=e.slice(2)}}if(""===(e=b.join("://")))return!1;if(b=e.split("/"),""===(e=b.shift())&&!t.require_host)return!0;if((b=e.split("@")).length>1){if(t.disallow_auth)return!1;if(""===b[0])return!1;if((o=b.shift()).indexOf(":")>=0&&o.split(":").length>2)return!1;var v=o.split(":"),y=(T=2,function(e){if(Array.isArray(e))return e}(x=v)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],a=!0,r=!1,i=void 0;try{for(var s,o=e[Symbol.iterator]();!(a=(s=o.next()).done)&&(n.push(s.value),!t||n.length!==t);a=!0);}catch(e){r=!0,i=e}finally{try{a||null==o.return||o.return()}finally{if(r)throw i}}return n}}(x,T)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(x,T)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),_=y[0],E=y[1];if(""===_&&""===E)return!1}var x,T;f=b.join("@"),h=null,g=null;var O=f.match(l);O?(p="",g=O[1],h=O[2]||null):(p=(b=f.split(":")).shift(),b.length&&(h=b.join(":")));if(null!==h&&h.length>0){if(m=parseInt(h,10),!/^[0-9]+$/.test(h)||m<=0||m>65535)return!1}else if(t.require_port)return!1;if(t.host_whitelist)return d(p,t.host_whitelist);if(""===p&&!t.require_host)return!0;if(!((0,i.default)(p)||(0,r.default)(p,t)||g&&(0,i.default)(g,6)))return!1;if(p=p||g,t.host_blacklist&&d(p,t.host_blacklist))return!1;return!0};var a=o(n(57818)),r=o(n(1425)),i=o(n(86659)),s=o(n(94749));function o(e){return e&&e.__esModule?e:{default:e}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var u={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0},l=/^\[([^\]]+)\](?::([0-9]+))?$/;function d(e,t){for(var n=0;n<t.length;n++){var a=t[n];if(e===a||(r=a,"[object RegExp]"===Object.prototype.toString.call(r)&&a.test(e)))return!0}var r;return!1}e.exports=t.default,e.exports.default=t.default},11245:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e);var n=i[[void 0,null].includes(t)?"all":t];return!!n&&n.test(e)};var a,r=(a=n(57818))&&a.__esModule?a:{default:a};var i={1:/^[0-9A-F]{8}-[0-9A-F]{4}-1[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,2:/^[0-9A-F]{8}-[0-9A-F]{4}-2[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,3:/^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,4:/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,5:/^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,all:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i};e.exports=t.default,e.exports.default=t.default},75840:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),e===e.toUpperCase()};var a,r=(a=n(57818))&&a.__esModule?a:{default:a};e.exports=t.default,e.exports.default=t.default},15907:(e,t,n)=>{"use strict";function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,i.default)(e),(0,i.default)(t),t in c)return c[t](e);throw new Error("Invalid country code: '".concat(t,"'"))},t.vatMatchers=void 0;var r,i=(r=n(57818))&&r.__esModule?r:{default:r},s=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var s=r?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(57387));function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}var c={AT:function(e){return/^(AT)?U\d{8}$/.test(e)},BE:function(e){return/^(BE)?\d{10}$/.test(e)},BG:function(e){return/^(BG)?\d{9,10}$/.test(e)},HR:function(e){return/^(HR)?\d{11}$/.test(e)},CY:function(e){return/^(CY)?\w{9}$/.test(e)},CZ:function(e){return/^(CZ)?\d{8,10}$/.test(e)},DK:function(e){return/^(DK)?\d{8}$/.test(e)},EE:function(e){return/^(EE)?\d{9}$/.test(e)},FI:function(e){return/^(FI)?\d{8}$/.test(e)},FR:function(e){return/^(FR)?\w{2}\d{9}$/.test(e)},DE:function(e){return/^(DE)?\d{9}$/.test(e)},EL:function(e){return/^(EL)?\d{9}$/.test(e)},HU:function(e){return/^(HU)?\d{8}$/.test(e)},IE:function(e){return/^(IE)?\d{7}\w{1}(W)?$/.test(e)},IT:function(e){return/^(IT)?\d{11}$/.test(e)},LV:function(e){return/^(LV)?\d{11}$/.test(e)},LT:function(e){return/^(LT)?\d{9,12}$/.test(e)},LU:function(e){return/^(LU)?\d{8}$/.test(e)},MT:function(e){return/^(MT)?\d{8}$/.test(e)},NL:function(e){return/^(NL)?\d{9}B\d{2}$/.test(e)},PL:function(e){return/^(PL)?(\d{10}|(\d{3}-\d{3}-\d{2}-\d{2})|(\d{3}-\d{2}-\d{2}-\d{3}))$/.test(e)},PT:function(e){var t=e.match(/^(PT)?(\d{9})$/);if(!t)return!1;var n=t[2],a=11-s.reverseMultiplyAndSum(n.split("").slice(0,8).map((function(e){return parseInt(e,10)})),9)%11;return a>9?0===parseInt(n[8],10):a===parseInt(n[8],10)},RO:function(e){return/^(RO)?\d{2,10}$/.test(e)},SK:function(e){return/^(SK)?\d{10}$/.test(e)},SI:function(e){return/^(SI)?\d{8}$/.test(e)},ES:function(e){return/^(ES)?\w\d{7}[A-Z]$/.test(e)},SE:function(e){return/^(SE)?\d{12}$/.test(e)},AL:function(e){return/^(AL)?\w{9}[A-Z]$/.test(e)},MK:function(e){return/^(MK)?\d{13}$/.test(e)},AU:function(e){return/^(AU)?\d{11}$/.test(e)},BY:function(e){return/^(УНП )?\d{9}$/.test(e)},CA:function(e){return/^(CA)?\d{9}$/.test(e)},IS:function(e){return/^(IS)?\d{5,6}$/.test(e)},IN:function(e){return/^(IN)?\d{15}$/.test(e)},ID:function(e){return/^(ID)?(\d{15}|(\d{2}.\d{3}.\d{3}.\d{1}-\d{3}.\d{3}))$/.test(e)},IL:function(e){return/^(IL)?\d{9}$/.test(e)},KZ:function(e){return/^(KZ)?\d{9}$/.test(e)},NZ:function(e){return/^(NZ)?\d{9}$/.test(e)},NG:function(e){return/^(NG)?(\d{12}|(\d{8}-\d{4}))$/.test(e)},NO:function(e){return/^(NO)?\d{9}MVA$/.test(e)},PH:function(e){return/^(PH)?(\d{12}|\d{3} \d{3} \d{3} \d{3})$/.test(e)},RU:function(e){return/^(RU)?(\d{10}|\d{12})$/.test(e)},SM:function(e){return/^(SM)?\d{5}$/.test(e)},SA:function(e){return/^(SA)?\d{15}$/.test(e)},RS:function(e){return/^(RS)?\d{9}$/.test(e)},CH:function(e){var t,n,a;return/^(CHE[- ]?)?(\d{9}|(\d{3}\.\d{3}\.\d{3})|(\d{3} \d{3} \d{3})) ?(TVA|MWST|IVA)?$/.test(e)&&(t=e.match(/\d/g).map((function(e){return+e})),n=t.pop(),a=[5,4,3,2,7,6,5,4],n===(11-t.reduce((function(e,t,n){return e+t*a[n]}),0)%11)%11)},TR:function(e){return/^(TR)?\d{10}$/.test(e)},UA:function(e){return/^(UA)?\d{12}$/.test(e)},GB:function(e){return/^GB((\d{3} \d{4} ([0-8][0-9]|9[0-6]))|(\d{9} \d{3})|(((GD[0-4])|(HA[5-9]))[0-9]{2}))$/.test(e)},UZ:function(e){return/^(UZ)?\d{9}$/.test(e)},AR:function(e){return/^(AR)?\d{11}$/.test(e)},BO:function(e){return/^(BO)?\d{7}$/.test(e)},BR:function(e){return/^(BR)?((\d{2}.\d{3}.\d{3}\/\d{4}-\d{2})|(\d{3}.\d{3}.\d{3}-\d{2}))$/.test(e)},CL:function(e){return/^(CL)?\d{8}-\d{1}$/.test(e)},CO:function(e){return/^(CO)?\d{10}$/.test(e)},CR:function(e){return/^(CR)?\d{9,12}$/.test(e)},EC:function(e){return/^(EC)?\d{13}$/.test(e)},SV:function(e){return/^(SV)?\d{4}-\d{6}-\d{3}-\d{1}$/.test(e)},GT:function(e){return/^(GT)?\d{7}-\d{1}$/.test(e)},HN:function(e){return/^(HN)?$/.test(e)},MX:function(e){return/^(MX)?\w{3,4}\d{6}\w{3}$/.test(e)},NI:function(e){return/^(NI)?\d{3}-\d{6}-\d{4}\w{1}$/.test(e)},PA:function(e){return/^(PA)?$/.test(e)},PY:function(e){return/^(PY)?\d{6,8}-\d{1}$/.test(e)},PE:function(e){return/^(PE)?\d{11}$/.test(e)},DO:function(e){return/^(DO)?(\d{11}|(\d{3}-\d{7}-\d{1})|[1,4,5]{1}\d{8}|([1,4,5]{1})-\d{2}-\d{5}-\d{1})$/.test(e)},UY:function(e){return/^(UY)?\d{12}$/.test(e)},VE:function(e){return/^(VE)?[J,G,V,E]{1}-(\d{9}|(\d{8}-\d{1}))$/.test(e)}};t.vatMatchers=c},61236:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),i.fullWidth.test(e)&&s.halfWidth.test(e)};var a,r=(a=n(57818))&&a.__esModule?a:{default:a},i=n(35463),s=n(57983);e.exports=t.default,e.exports.default=t.default},12472:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e);for(var n=e.length-1;n>=0;n--)if(-1===t.indexOf(e[n]))return!1;return!0};var a,r=(a=n(57818))&&a.__esModule?a:{default:a};e.exports=t.default,e.exports.default=t.default},26728:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e);var n=t?new RegExp("^[".concat(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"]+"),"g"):/^\s+/g;return e.replace(n,"")};var a,r=(a=n(57818))&&a.__esModule?a:{default:a};e.exports=t.default,e.exports.default=t.default},91561:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){(0,r.default)(e),"[object RegExp]"!==Object.prototype.toString.call(t)&&(t=new RegExp(t,n));return!!e.match(t)};var a,r=(a=n(57818))&&a.__esModule?a:{default:a};e.exports=t.default,e.exports.default=t.default},2427:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){t=(0,r.default)(t,i);var n=e.split("@"),a=n.pop(),d=[n.join("@"),a];if(d[1]=d[1].toLowerCase(),"gmail.com"===d[1]||"googlemail.com"===d[1]){if(t.gmail_remove_subaddress&&(d[0]=d[0].split("+")[0]),t.gmail_remove_dots&&(d[0]=d[0].replace(/\.+/g,l)),!d[0].length)return!1;(t.all_lowercase||t.gmail_lowercase)&&(d[0]=d[0].toLowerCase()),d[1]=t.gmail_convert_googlemaildotcom?"gmail.com":d[1]}else if(s.indexOf(d[1])>=0){if(t.icloud_remove_subaddress&&(d[0]=d[0].split("+")[0]),!d[0].length)return!1;(t.all_lowercase||t.icloud_lowercase)&&(d[0]=d[0].toLowerCase())}else if(o.indexOf(d[1])>=0){if(t.outlookdotcom_remove_subaddress&&(d[0]=d[0].split("+")[0]),!d[0].length)return!1;(t.all_lowercase||t.outlookdotcom_lowercase)&&(d[0]=d[0].toLowerCase())}else if(c.indexOf(d[1])>=0){if(t.yahoo_remove_subaddress){var p=d[0].split("-");d[0]=p.length>1?p.slice(0,-1).join("-"):p[0]}if(!d[0].length)return!1;(t.all_lowercase||t.yahoo_lowercase)&&(d[0]=d[0].toLowerCase())}else u.indexOf(d[1])>=0?((t.all_lowercase||t.yandex_lowercase)&&(d[0]=d[0].toLowerCase()),d[1]="yandex.ru"):t.all_lowercase&&(d[0]=d[0].toLowerCase());return d.join("@")};var a,r=(a=n(94749))&&a.__esModule?a:{default:a};var i={all_lowercase:!0,gmail_lowercase:!0,gmail_remove_dots:!0,gmail_remove_subaddress:!0,gmail_convert_googlemaildotcom:!0,outlookdotcom_lowercase:!0,outlookdotcom_remove_subaddress:!0,yahoo_lowercase:!0,yahoo_remove_subaddress:!0,yandex_lowercase:!0,icloud_lowercase:!0,icloud_remove_subaddress:!0},s=["icloud.com","me.com"],o=["hotmail.at","hotmail.be","hotmail.ca","hotmail.cl","hotmail.co.il","hotmail.co.nz","hotmail.co.th","hotmail.co.uk","hotmail.com","hotmail.com.ar","hotmail.com.au","hotmail.com.br","hotmail.com.gr","hotmail.com.mx","hotmail.com.pe","hotmail.com.tr","hotmail.com.vn","hotmail.cz","hotmail.de","hotmail.dk","hotmail.es","hotmail.fr","hotmail.hu","hotmail.id","hotmail.ie","hotmail.in","hotmail.it","hotmail.jp","hotmail.kr","hotmail.lv","hotmail.my","hotmail.ph","hotmail.pt","hotmail.sa","hotmail.sg","hotmail.sk","live.be","live.co.uk","live.com","live.com.ar","live.com.mx","live.de","live.es","live.eu","live.fr","live.it","live.nl","msn.com","outlook.at","outlook.be","outlook.cl","outlook.co.il","outlook.co.nz","outlook.co.th","outlook.com","outlook.com.ar","outlook.com.au","outlook.com.br","outlook.com.gr","outlook.com.pe","outlook.com.tr","outlook.com.vn","outlook.cz","outlook.de","outlook.dk","outlook.es","outlook.fr","outlook.hu","outlook.id","outlook.ie","outlook.in","outlook.it","outlook.jp","outlook.kr","outlook.lv","outlook.my","outlook.ph","outlook.pt","outlook.sa","outlook.sg","outlook.sk","passport.com"],c=["rocketmail.com","yahoo.ca","yahoo.co.uk","yahoo.com","yahoo.de","yahoo.fr","yahoo.in","yahoo.it","ymail.com"],u=["yandex.ru","yandex.ua","yandex.kz","yandex.com","yandex.by","ya.ru"];function l(e){return e.length>1?e:""}e.exports=t.default,e.exports.default=t.default},51738:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),t){var n=new RegExp("[".concat(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"]+$"),"g");return e.replace(n,"")}var a=e.length-1;for(;/\s/.test(e.charAt(a));)a-=1;return e.slice(0,a+1)};var a,r=(a=n(57818))&&a.__esModule?a:{default:a};e.exports=t.default,e.exports.default=t.default},85726:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,a.default)(e);var n=t?"\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F":"\\x00-\\x1F\\x7F";return(0,r.default)(e,n)};var a=i(n(57818)),r=i(n(73539));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},82095:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),t)return"1"===e||/^true$/i.test(e);return"0"!==e&&!/^false$/i.test(e)&&""!==e};var a,r=(a=n(57818))&&a.__esModule?a:{default:a};e.exports=t.default,e.exports.default=t.default},80199:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),e=Date.parse(e),isNaN(e)?null:new Date(e)};var a,r=(a=n(57818))&&a.__esModule?a:{default:a};e.exports=t.default,e.exports.default=t.default},55465:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e)?parseFloat(e):NaN};var a,r=(a=n(31374))&&a.__esModule?a:{default:a};e.exports=t.default,e.exports.default=t.default},54550:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e),parseInt(e,t||10)};var a,r=(a=n(57818))&&a.__esModule?a:{default:a};e.exports=t.default,e.exports.default=t.default},47506:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,a.default)((0,r.default)(e,t),t)};var a=i(n(51738)),r=i(n(26728));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},14542:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),e.replace(/&quot;/g,'"').replace(/&#x27;/g,"'").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&#x2F;/g,"/").replace(/&#x5C;/g,"\\").replace(/&#96;/g,"`").replace(/&amp;/g,"&")};var a,r=(a=n(57818))&&a.__esModule?a:{default:a};e.exports=t.default,e.exports.default=t.default},57387:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.iso7064Check=function(e){for(var t=10,n=0;n<e.length-1;n++)t=(parseInt(e[n],10)+t)%10==0?9:(parseInt(e[n],10)+t)%10*2%11;return(t=1===t?0:11-t)===parseInt(e[10],10)},t.luhnCheck=function(e){for(var t=0,n=!1,a=e.length-1;a>=0;a--){if(n){var r=2*parseInt(e[a],10);t+=r>9?r.toString().split("").map((function(e){return parseInt(e,10)})).reduce((function(e,t){return e+t}),0):r}else t+=parseInt(e[a],10);n=!n}return t%10==0},t.reverseMultiplyAndSum=function(e,t){for(var n=0,a=0;a<e.length;a++)n+=e[a]*(t-a);return n},t.verhoeffCheck=function(e){for(var t=[[0,1,2,3,4,5,6,7,8,9],[1,2,3,4,0,6,7,8,9,5],[2,3,4,0,1,7,8,9,5,6],[3,4,0,1,2,8,9,5,6,7],[4,0,1,2,3,9,5,6,7,8],[5,9,8,7,6,0,4,3,2,1],[6,5,9,8,7,1,0,4,3,2],[7,6,5,9,8,2,1,0,4,3],[8,7,6,5,9,3,2,1,0,4],[9,8,7,6,5,4,3,2,1,0]],n=[[0,1,2,3,4,5,6,7,8,9],[1,5,7,6,2,8,3,0,9,4],[5,8,0,3,7,9,6,1,4,2],[8,9,1,6,0,4,3,5,2,7],[9,4,5,3,1,2,6,8,7,0],[4,2,8,6,5,7,3,9,0,1],[2,7,9,3,8,0,6,4,1,5],[7,0,4,6,9,1,3,2,5,8]],a=e.split("").reverse().join(""),r=0,i=0;i<a.length;i++)r=t[r][n[i%8][parseInt(a[i],10)]];return 0===r}},57818:(e,t)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!("string"==typeof e||e instanceof String)){var t=n(e);throw null===e?t="null":"object"===t&&(t=e.constructor.name),new TypeError("Expected a string but received a ".concat(t))}},e.exports=t.default,e.exports.default=t.default},38984:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e,t){return e.some((function(e){return t===e}))};t.default=n,e.exports=t.default,e.exports.default=t.default},94749:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var n in t)void 0===e[n]&&(e[n]=t[n]);return e},e.exports=t.default,e.exports.default=t.default},80107:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e.join("");return new RegExp(n,t)},e.exports=t.default,e.exports.default=t.default},70053:(e,t)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){"object"===n(e)&&null!==e?e="function"==typeof e.toString?e.toString():"[object Object]":(null==e||isNaN(e)&&!e.length)&&(e="");return String(e)},e.exports=t.default,e.exports.default=t.default},43445:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e),e.replace(new RegExp("[^".concat(t,"]+"),"g"),"")};var a,r=(a=n(57818))&&a.__esModule?a:{default:a};e.exports=t.default,e.exports.default=t.default},13610:(e,t,n)=>{"use strict";const a=n(53273),r=e=>{let t=0;for(const n of e.split("\n"))t=Math.max(t,a(n));return t};e.exports=r,e.exports.default=r},18785:(e,t,n)=>{"use strict";const a=n(53273),r=n(36663),i=n(12701),s=new Set(["","›"]),o="]8;;",c=e=>`${s.values().next().value}[${e}m`,u=e=>`${s.values().next().value}${o}${e}`,l=(e,t,n)=>{const i=[...t];let c=!1,u=!1,l=a(r(e[e.length-1]));for(const[t,r]of i.entries()){const d=a(r);l+d<=n?e[e.length-1]+=r:(e.push(r),l=0),s.has(r)&&(c=!0,u=i.slice(t+1).join("").startsWith(o)),c?u?""===r&&(c=!1,u=!1):"m"===r&&(c=!1):(l+=d,l===n&&t<i.length-1&&(e.push(""),l=0))}!l&&e[e.length-1].length>0&&e.length>1&&(e[e.length-2]+=e.pop())},d=e=>{const t=e.split(" ");let n=t.length;for(;n>0&&!(a(t[n-1])>0);)n--;return n===t.length?e:t.slice(0,n).join(" ")+t.slice(n).join("")},p=(e,t,n={})=>{if(!1!==n.trim&&""===e.trim())return"";let r,p,f="";const m=(e=>e.split(" ").map((e=>a(e))))(e);let h=[""];for(const[r,i]of e.split(" ").entries()){!1!==n.trim&&(h[h.length-1]=h[h.length-1].trimStart());let e=a(h[h.length-1]);if(0!==r&&(e>=t&&(!1===n.wordWrap||!1===n.trim)&&(h.push(""),e=0),(e>0||!1===n.trim)&&(h[h.length-1]+=" ",e++)),n.hard&&m[r]>t){const n=t-e,a=1+Math.floor((m[r]-n-1)/t);Math.floor((m[r]-1)/t)<a&&h.push(""),l(h,i,t)}else{if(e+m[r]>t&&e>0&&m[r]>0){if(!1===n.wordWrap&&e<t){l(h,i,t);continue}h.push("")}e+m[r]>t&&!1===n.wordWrap?l(h,i,t):h[h.length-1]+=i}}!1!==n.trim&&(h=h.map(d));const b=[...h.join("\n")];for(const[e,t]of b.entries()){if(f+=t,s.has(t)){const{groups:t}=new RegExp(`(?:\\[(?<code>\\d+)m|\\${o}(?<uri>.*))`).exec(b.slice(e).join(""))||{groups:{}};if(void 0!==t.code){const e=Number.parseFloat(t.code);r=39===e?void 0:e}else void 0!==t.uri&&(p=0===t.uri.length?void 0:t.uri)}const n=i.codes.get(Number(r));"\n"===b[e+1]?(p&&(f+=u("")),r&&n&&(f+=c(n))):"\n"===t&&(r&&n&&(f+=c(r)),p&&(f+=u(p)))}return f};e.exports=(e,t,n)=>String(e).normalize().replace(/\r\n/g,"\n").split("\n").map((e=>p(e,t,n))).join("\n")},34688:function(module,__unused_webpack_exports,__webpack_require__){var t;"undefined"!=typeof self&&self,t=()=>(()=>{var __webpack_modules__={1072:function(e,t,n){e.exports=(n(5317),n(6982),function(e){function t(a){if(n[a])return n[a].exports;var r=n[a]={exports:{},id:a,loaded:!1};return e[a].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(34)},function(e,t,n){var a=n(29)("wks"),r=n(33),i=n(2).Symbol,s="function"==typeof i;(e.exports=function(e){return a[e]||(a[e]=s&&i[e]||(s?i:r)("Symbol."+e))}).store=a},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){var a=n(9);e.exports=function(e){if(!a(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){e.exports=!n(24)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,n){var a=n(12),r=n(17);e.exports=n(4)?function(e,t,n){return a.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){var n=e.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(e,t,n){var a=n(14);e.exports=function(e,t,n){if(a(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,a){return e.call(t,n,a)};case 3:return function(n,a,r){return e.call(t,n,a,r)}}return function(){return e.apply(t,arguments)}}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){e.exports={}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var a=n(3),r=n(26),i=n(32),s=Object.defineProperty;t.f=n(4)?Object.defineProperty:function(e,t,n){if(a(e),t=i(t,!0),a(n),r)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var a=n(42),r=n(15);e.exports=function(e){return a(r(e))}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var a=n(9),r=n(2).document,i=a(r)&&a(r.createElement);e.exports=function(e){return i?r.createElement(e):{}}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var a=n(12).f,r=n(8),i=n(1)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,i)&&a(e,i,{configurable:!0,value:t})}},function(e,t,n){var a=n(29)("keys"),r=n(33);e.exports=function(e){return a[e]||(a[e]=r(e))}},function(e,t){var n=Math.ceil,a=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?a:n)(e)}},function(e,t,n){var a=n(11),r=n(1)("toStringTag"),i="Arguments"==a(function(){return arguments}());e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),r))?n:i?a(t):"Object"==(s=a(t))&&"function"==typeof t.callee?"Arguments":s}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var a=n(2),r=n(6),i=n(7),s=n(5),o="prototype",c=function(e,t,n){var u,l,d,p=e&c.F,f=e&c.G,m=e&c.S,h=e&c.P,b=e&c.B,g=e&c.W,v=f?r:r[t]||(r[t]={}),y=v[o],_=f?a:m?a[t]:(a[t]||{})[o];for(u in f&&(n=t),n)(l=!p&&_&&void 0!==_[u])&&u in v||(d=l?_[u]:n[u],v[u]=f&&"function"!=typeof _[u]?n[u]:b&&l?i(d,a):g&&_[u]==d?function(e){var t=function(t,n,a){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,a)}return e.apply(this,arguments)};return t[o]=e[o],t}(d):h&&"function"==typeof d?i(Function.call,d):d,h&&((v.virtual||(v.virtual={}))[u]=d,e&c.R&&y&&!y[u]&&s(y,u,d)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){e.exports=n(2).document&&document.documentElement},function(e,t,n){e.exports=!n(4)&&!n(24)((function(){return 7!=Object.defineProperty(n(16)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){"use strict";var a=n(28),r=n(23),i=n(57),s=n(5),o=n(8),c=n(10),u=n(45),l=n(18),d=n(52),p=n(1)("iterator"),f=!([].keys&&"next"in[].keys()),m="keys",h="values",b=function(){return this};e.exports=function(e,t,n,g,v,y,_){u(n,t,g);var E,x,T,O=function(e){if(!f&&e in D)return D[e];switch(e){case m:case h:return function(){return new n(this,e)}}return function(){return new n(this,e)}},$=t+" Iterator",A=v==h,S=!1,D=e.prototype,w=D[p]||D["@@iterator"]||v&&D[v],C=w||O(v),R=v?A?O("entries"):C:void 0,N="Array"==t&&D.entries||w;if(N&&(T=d(N.call(new e)))!==Object.prototype&&(l(T,$,!0),a||o(T,p)||s(T,p,b)),A&&w&&w.name!==h&&(S=!0,C=function(){return w.call(this)}),a&&!_||!f&&!S&&D[p]||s(D,p,C),c[t]=C,c[$]=b,v)if(E={values:A?C:O(h),keys:y?C:O(m),entries:R},_)for(x in E)x in D||i(D,x,E[x]);else r(r.P+r.F*(f||S),t,E);return E}},function(e,t){e.exports=!0},function(e,t,n){var a=n(2),r="__core-js_shared__",i=a[r]||(a[r]={});e.exports=function(e){return i[e]||(i[e]={})}},function(e,t,n){var a,r,i,s=n(7),o=n(41),c=n(25),u=n(16),l=n(2),d=l.process,p=l.setImmediate,f=l.clearImmediate,m=l.MessageChannel,h=0,b={},g="onreadystatechange",v=function(){var e=+this;if(b.hasOwnProperty(e)){var t=b[e];delete b[e],t()}},y=function(e){v.call(e.data)};p&&f||(p=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return b[++h]=function(){o("function"==typeof e?e:Function(e),t)},a(h),h},f=function(e){delete b[e]},"process"==n(11)(d)?a=function(e){d.nextTick(s(v,e,1))}:m?(i=(r=new m).port2,r.port1.onmessage=y,a=s(i.postMessage,i,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(a=function(e){l.postMessage(e+"","*")},l.addEventListener("message",y,!1)):a=g in u("script")?function(e){c.appendChild(u("script"))[g]=function(){c.removeChild(this),v.call(e)}}:function(e){setTimeout(s(v,e,1),0)}),e.exports={set:p,clear:f}},function(e,t,n){var a=n(20),r=Math.min;e.exports=function(e){return e>0?r(a(e),9007199254740991):0}},function(e,t,n){var a=n(9);e.exports=function(e,t){if(!a(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!a(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!a(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!a(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t){var n=0,a=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+a).toString(36))}},function(e,t,n){"use strict";function a(e){return(0,o.createHash)("sha256").update(e).digest("hex")}function r(e){switch(c){case"darwin":return e.split("IOPlatformUUID")[1].split("\n")[0].replace(/\=|\s+|\"/gi,"").toLowerCase();case"win32":return e.toString().split("REG_SZ")[1].replace(/\r+|\n+|\s+/gi,"").toLowerCase();case"linux":case"freebsd":return e.toString().replace(/\r+|\n+|\s+/gi,"").toLowerCase();default:throw new Error("Unsupported platform: "+process.platform)}}Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){return e&&e.__esModule?e:{default:e}}(n(35));t.machineIdSync=function(e){var t=r((0,s.execSync)(u[c]).toString());return e?t:a(t)},t.machineId=function(e){return new i.default((function(t,n){return(0,s.exec)(u[c],{},(function(i,s,o){if(i)return n(new Error("Error while obtaining machine id: "+i.stack));var c=r(s.toString());return t(e?c:a(c))}))}))};var s=n(70),o=n(71),c=process.platform,u={darwin:"ioreg -rd1 -c IOPlatformExpertDevice",win32:{native:"%windir%\\System32",mixed:"%windir%\\sysnative\\cmd.exe /c %windir%\\System32"}["win32"!==process.platform?"":"ia32"===process.arch&&process.env.hasOwnProperty("PROCESSOR_ARCHITEW6432")?"mixed":"native"]+"\\REG.exe QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid",linux:"( cat /var/lib/dbus/machine-id /etc/machine-id 2> /dev/null || hostname ) | head -n 1 || :",freebsd:"kenv -q smbios.system.uuid || sysctl -n kern.hostuuid"}},function(e,t,n){e.exports={default:n(36),__esModule:!0}},function(e,t,n){n(66),n(68),n(69),n(67),e.exports=n(6).Promise},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t,n,a){if(!(e instanceof t)||void 0!==a&&a in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var a=n(13),r=n(31),i=n(62);e.exports=function(e){return function(t,n,s){var o,c=a(t),u=r(c.length),l=i(s,u);if(e&&n!=n){for(;u>l;)if((o=c[l++])!=o)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}}},function(e,t,n){var a=n(7),r=n(44),i=n(43),s=n(3),o=n(31),c=n(64),u={},l={};t=e.exports=function(e,t,n,d,p){var f,m,h,b,g=p?function(){return e}:c(e),v=a(n,d,t?2:1),y=0;if("function"!=typeof g)throw TypeError(e+" is not iterable!");if(i(g)){for(f=o(e.length);f>y;y++)if((b=t?v(s(m=e[y])[0],m[1]):v(e[y]))===u||b===l)return b}else for(h=g.call(e);!(m=h.next()).done;)if((b=r(h,v,m.value,t))===u||b===l)return b},t.BREAK=u,t.RETURN=l},function(e,t){e.exports=function(e,t,n){var a=void 0===n;switch(t.length){case 0:return a?e():e.call(n);case 1:return a?e(t[0]):e.call(n,t[0]);case 2:return a?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return a?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return a?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){var a=n(11);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==a(e)?e.split(""):Object(e)}},function(e,t,n){var a=n(10),r=n(1)("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(a.Array===e||i[r]===e)}},function(e,t,n){var a=n(3);e.exports=function(e,t,n,r){try{return r?t(a(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&a(i.call(e)),t}}},function(e,t,n){"use strict";var a=n(49),r=n(17),i=n(18),s={};n(5)(s,n(1)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=a(s,{next:r(1,n)}),i(e,t+" Iterator")}},function(e,t,n){var a=n(1)("iterator"),r=!1;try{var i=[7][a]();i.return=function(){r=!0},Array.from(i,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!r)return!1;var n=!1;try{var i=[7],s=i[a]();s.next=function(){return{done:n=!0}},i[a]=function(){return s},e(i)}catch(e){}return n}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var a=n(2),r=n(30).set,i=a.MutationObserver||a.WebKitMutationObserver,s=a.process,o=a.Promise,c="process"==n(11)(s);e.exports=function(){var e,t,n,u=function(){var a,r;for(c&&(a=s.domain)&&a.exit();e;){r=e.fn,e=e.next;try{r()}catch(a){throw e?n():t=void 0,a}}t=void 0,a&&a.enter()};if(c)n=function(){s.nextTick(u)};else if(i){var l=!0,d=document.createTextNode("");new i(u).observe(d,{characterData:!0}),n=function(){d.data=l=!l}}else if(o&&o.resolve){var p=o.resolve();n=function(){p.then(u)}}else n=function(){r.call(a,u)};return function(a){var r={fn:a,next:void 0};t&&(t.next=r),e||(e=r,n()),t=r}}},function(e,t,n){var a=n(3),r=n(50),i=n(22),s=n(19)("IE_PROTO"),o=function(){},c="prototype",u=function(){var e,t=n(16)("iframe"),a=i.length;for(t.style.display="none",n(25).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;a--;)delete u[c][i[a]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(o[c]=a(e),n=new o,o[c]=null,n[s]=e):n=u(),void 0===t?n:r(n,t)}},function(e,t,n){var a=n(12),r=n(3),i=n(54);e.exports=n(4)?Object.defineProperties:function(e,t){r(e);for(var n,s=i(t),o=s.length,c=0;o>c;)a.f(e,n=s[c++],t[n]);return e}},function(e,t,n){var a=n(55),r=n(17),i=n(13),s=n(32),o=n(8),c=n(26),u=Object.getOwnPropertyDescriptor;t.f=n(4)?u:function(e,t){if(e=i(e),t=s(t,!0),c)try{return u(e,t)}catch(e){}if(o(e,t))return r(!a.f.call(e,t),e[t])}},function(e,t,n){var a=n(8),r=n(63),i=n(19)("IE_PROTO"),s=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),a(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},function(e,t,n){var a=n(8),r=n(13),i=n(39)(!1),s=n(19)("IE_PROTO");e.exports=function(e,t){var n,o=r(e),c=0,u=[];for(n in o)n!=s&&a(o,n)&&u.push(n);for(;t.length>c;)a(o,n=t[c++])&&(~i(u,n)||u.push(n));return u}},function(e,t,n){var a=n(53),r=n(22);e.exports=Object.keys||function(e){return a(e,r)}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var a=n(5);e.exports=function(e,t,n){for(var r in t)n&&e[r]?e[r]=t[r]:a(e,r,t[r]);return e}},function(e,t,n){e.exports=n(5)},function(e,t,n){var a=n(9),r=n(3),i=function(e,t){if(r(e),!a(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,a){try{(a=n(7)(Function.call,n(51).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:a(e,n),e}}({},!1):void 0),check:i}},function(e,t,n){"use strict";var a=n(2),r=n(6),i=n(12),s=n(4),o=n(1)("species");e.exports=function(e){var t="function"==typeof r[e]?r[e]:a[e];s&&t&&!t[o]&&i.f(t,o,{configurable:!0,get:function(){return this}})}},function(e,t,n){var a=n(3),r=n(14),i=n(1)("species");e.exports=function(e,t){var n,s=a(e).constructor;return void 0===s||null==(n=a(s)[i])?t:r(n)}},function(e,t,n){var a=n(20),r=n(15);e.exports=function(e){return function(t,n){var i,s,o=String(r(t)),c=a(n),u=o.length;return c<0||c>=u?e?"":void 0:(i=o.charCodeAt(c))<55296||i>56319||c+1===u||(s=o.charCodeAt(c+1))<56320||s>57343?e?o.charAt(c):i:e?o.slice(c,c+2):s-56320+(i-55296<<10)+65536}}},function(e,t,n){var a=n(20),r=Math.max,i=Math.min;e.exports=function(e,t){return(e=a(e))<0?r(e+t,0):i(e,t)}},function(e,t,n){var a=n(15);e.exports=function(e){return Object(a(e))}},function(e,t,n){var a=n(21),r=n(1)("iterator"),i=n(10);e.exports=n(6).getIteratorMethod=function(e){if(null!=e)return e[r]||e["@@iterator"]||i[a(e)]}},function(e,t,n){"use strict";var a=n(37),r=n(47),i=n(10),s=n(13);e.exports=n(27)(Array,"Array",(function(e,t){this._t=s(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):r(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),i.Arguments=i.Array,a("keys"),a("values"),a("entries")},function(e,t){},function(e,t,n){"use strict";var a,r,i,s=n(28),o=n(2),c=n(7),u=n(21),l=n(23),d=n(9),p=(n(3),n(14)),f=n(38),m=n(40),h=(n(58).set,n(60)),b=n(30).set,g=n(48)(),v="Promise",y=o.TypeError,_=o.process,E=o[v],x="process"==u(_=o.process),T=function(){},O=!!function(){try{var e=E.resolve(1),t=(e.constructor={})[n(1)("species")]=function(e){e(T,T)};return(x||"function"==typeof PromiseRejectionEvent)&&e.then(T)instanceof t}catch(e){}}(),$=function(e,t){return e===t||e===E&&t===i},A=function(e){var t;return!(!d(e)||"function"!=typeof(t=e.then))&&t},S=function(e){return $(E,e)?new D(e):new r(e)},D=r=function(e){var t,n;this.promise=new e((function(e,a){if(void 0!==t||void 0!==n)throw y("Bad Promise constructor");t=e,n=a})),this.resolve=p(t),this.reject=p(n)},w=function(e){try{e()}catch(e){return{error:e}}},C=function(e,t){if(!e._n){e._n=!0;var n=e._c;g((function(){for(var a=e._v,r=1==e._s,i=0,s=function(t){var n,i,s=r?t.ok:t.fail,o=t.resolve,c=t.reject,u=t.domain;try{s?(r||(2==e._h&&I(e),e._h=1),!0===s?n=a:(u&&u.enter(),n=s(a),u&&u.exit()),n===t.promise?c(y("Promise-chain cycle")):(i=A(n))?i.call(n,o,c):o(n)):c(a)}catch(e){c(e)}};n.length>i;)s(n[i++]);e._c=[],e._n=!1,t&&!e._h&&R(e)}))}},R=function(e){b.call(o,(function(){var t,n,a,r=e._v;if(N(e)&&(t=w((function(){x?_.emit("unhandledRejection",r,e):(n=o.onunhandledrejection)?n({promise:e,reason:r}):(a=o.console)&&a.error&&a.error("Unhandled promise rejection",r)})),e._h=x||N(e)?2:1),e._a=void 0,t)throw t.error}))},N=function(e){if(1==e._h)return!1;for(var t,n=e._a||e._c,a=0;n.length>a;)if((t=n[a++]).fail||!N(t.promise))return!1;return!0},I=function(e){b.call(o,(function(){var t;x?_.emit("rejectionHandled",e):(t=o.onrejectionhandled)&&t({promise:e,reason:e._v})}))},M=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),C(t,!0))},P=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw y("Promise can't be resolved itself");(t=A(e))?g((function(){var a={_w:n,_d:!1};try{t.call(e,c(P,a,1),c(M,a,1))}catch(e){M.call(a,e)}})):(n._v=e,n._s=1,C(n,!1))}catch(e){M.call({_w:n,_d:!1},e)}}};O||(E=function(e){f(this,E,v,"_h"),p(e),a.call(this);try{e(c(P,this,1),c(M,this,1))}catch(e){M.call(this,e)}},(a=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(56)(E.prototype,{then:function(e,t){var n=S(h(this,E));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=x?_.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&C(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),D=function(){var e=new a;this.promise=e,this.resolve=c(P,e,1),this.reject=c(M,e,1)}),l(l.G+l.W+l.F*!O,{Promise:E}),n(18)(E,v),n(59)(v),i=n(6)[v],l(l.S+l.F*!O,v,{reject:function(e){var t=S(this);return(0,t.reject)(e),t.promise}}),l(l.S+l.F*(s||!O),v,{resolve:function(e){if(e instanceof E&&$(e.constructor,this))return e;var t=S(this);return(0,t.resolve)(e),t.promise}}),l(l.S+l.F*!(O&&n(46)((function(e){E.all(e).catch(T)}))),v,{all:function(e){var t=this,n=S(t),a=n.resolve,r=n.reject,i=w((function(){var n=[],i=0,s=1;m(e,!1,(function(e){var o=i++,c=!1;n.push(void 0),s++,t.resolve(e).then((function(e){c||(c=!0,n[o]=e,--s||a(n))}),r)})),--s||a(n)}));return i&&r(i.error),n.promise},race:function(e){var t=this,n=S(t),a=n.reject,r=w((function(){m(e,!1,(function(e){t.resolve(e).then(n.resolve,a)}))}));return r&&a(r.error),n.promise}})},function(e,t,n){"use strict";var a=n(61)(!0);n(27)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=a(t,n),this._i+=e.length,{value:e,done:!1})}))},function(e,t,n){n(65);for(var a=n(2),r=n(5),i=n(10),s=n(1)("toStringTag"),o=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],c=0;c<5;c++){var u=o[c],l=a[u],d=l&&l.prototype;d&&!d[s]&&r(d,s,u),i[u]=i.Array}},function(e,t){e.exports=n(5317)},function(e,t){e.exports=n(6982)}]))},1990:function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||a(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DriverClient=t.metaUrlToDbConfig=t.getToolDir=t.MetaTable=t.SqlClientFactory=void 0;var i=n(6333);Object.defineProperty(t,"SqlClientFactory",{enumerable:!0,get:function(){return i.SqlClientFactory}});var s=n(6818);Object.defineProperty(t,"MetaTable",{enumerable:!0,get:function(){return s.MetaTable}}),r(n(1762),t);var o=n(3784);Object.defineProperty(t,"getToolDir",{enumerable:!0,get:function(){return o.getToolDir}}),Object.defineProperty(t,"metaUrlToDbConfig",{enumerable:!0,get:function(){return o.metaUrlToDbConfig}});var c=n(4740);Object.defineProperty(t,"DriverClient",{enumerable:!0,get:function(){return c.DriverClient}})},6685:function(__unused_webpack_module,exports,__nested_webpack_require_19902__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),__importStar=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)&&__createBinding(t,e,n);return __setModuleDefault(t,e),t},__importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0});const fs_1=__importDefault(__nested_webpack_require_19902__(9896)),util_1=__nested_webpack_require_19902__(9023),path_1=__importDefault(__nested_webpack_require_19902__(6928)),knex_1=__nested_webpack_require_19902__(1832),findIndex_1=__importDefault(__nested_webpack_require_19902__(5119)),find_1=__importDefault(__nested_webpack_require_19902__(133)),jsonfile_1=__importDefault(__nested_webpack_require_19902__(4688)),mkdirp_1=__importDefault(__nested_webpack_require_19902__(2745)),Result_1=__importDefault(__nested_webpack_require_19902__(3815)),emit_1=__importDefault(__nested_webpack_require_19902__(757)),Debug_1=__importDefault(__nested_webpack_require_19902__(2911)),dataHelp=__importStar(__nested_webpack_require_19902__(8590)),SqlClient_1=__importDefault(__nested_webpack_require_19902__(947)),utils_1=__nested_webpack_require_19902__(1278),evt=new emit_1.default,log=new Debug_1.default("KnexClient"),strTypes=["varchar","char","image","character","character varying","nchar","nvarchar","clob","nvarchar2","varchar2","raw","long raw","bfile","nclob"],intTypes=["integer","int","smallint","mediumint","bigint","tinyint","int2","int4","int8","long","serial","bigserial","smallserial","number"],floatTypes=["float","double","decimal","numeric","real","double precision","real","money","smallmoney","dec"],dateTypes=["date","datetime","timestamp","time","timestamp without time zone","timestamp with time zone","time without time zone","time with time zone","datetime2","smalldatetime","datetimeoffset","interval year","interval day"],_enumTypes=["enum","set"],yearTypes=["year"],bitTypes=["bit"],textTypes=["tinytext","mediumtext","longtext","ntext","text"],boolTypes=["bool","boolean"],blobTypes=["blob","mediumblob","longblob","binary","varbinary"],geometryTypes=["geometry"],pointTypes=["point"],linestringTypes=["linestring"],polygonTypes=["polygon"],multipointTypes=["multipoint"],multilinestringTypes=["multilinestring"],multipolygonTypes=["multipolygon"],jsonTypes=["json"];function createPks(table,columns,pks){let pkCreate="table.primary([";for(let e=0;e<pks.length;++e)pkCreate+=e?`"${columns[pks[e]].cn}"`:`"${columns[pks[e]].cn}",`;pkCreate+="])",eval(`var inMemoryFunc = function(table) {\n ${pkCreate}\n }`),console.log(pkCreate),inMemoryFunc(table)}function columnCreate(e,t,n){let a,r=!1;if("varchar"===n.dt||"char"===n.dt||"text"===n.dt?n.cdf=n.cdf?JSON.stringify(n.cdf):null:n.cdf=""===n.cdf?null:n.cdf,n.ai&&("bigInteger"===n.dtx?(a=t.bigIncrements(n.cn),r=!0):(a=t.increments(n.cn),r=!0)),"specificType"!==n.dtx||r)"integer"!==n.dtx||r?"bigInteger"!==n.dtx||r?"text"!==n.dtx||r?"string"!==n.dtx||r?"float"!==n.dtx||r?"decimal"!==n.dtx||r?"boolean"!==n.dtx||r?"date"!==n.dtx||r?"dateTime"!==n.dtx||r?"time"!==n.dtx||r?"timestamp"!==n.dtx||r?"enu"!==n.dtx||r?"json"!==n.dtx||r?"uuid"!==n.dtx||r||(a=t.uuid(n.cn)):a=t.json(n.cn):a=t.enu(n.cn,JSON.stringify(n.enuValue||[])):a=t.timestamp(n.cn):a=t.time(n.cn):a=t.dateTime(n.cn):a=t.date(n.cn):a=t.boolean(n.cn):a=t.decimal(n.cn):a=t.float(n.cn):a=t.string(n.cn):a=t.text(n.cn):a=t.bigInteger(n.cn):a=t.integer(n.cn);else{const e=n.dtxp&&" "!==n.dtxp?n.dtxp:null,r=n.dtxs&&" "!==n.dtxs?n.dtxs:null;a=e&&r?t.specificType(n.cn,`${n.dt}(${e},${r})`):e?t.specificType(n.cn,`${n.dt}(${e})`):t.specificType(n.cn,n.dt)}n.pk&&a.primary(),n.rqd?a.notNullable():a.nullable(),n.ck&&a.unique(),n.un&&a.unsigned(),n.cdf&&a.defaultTo(e.raw(n.cdf))}function removeColumn(table,_n,_o){const colCreate="table.dropColumn(n.cn)";eval(`var inMemoryFunc = function(table) {\n ${colCreate}\n }`),inMemoryFunc(table)}function renameColumn(e,t,n,a,r){let i="",s="";if("mysql"===t.client){const e=r.ct,t=r.rqd?"NOT NULL":"",n=r.ai?"AUTO_INCREMENT":"",o=r.cdf?`DEFAULT '${r.cdf}'`:"";return i=`ALTER TABLE \`${r.tn}\` CHANGE COLUMN\n \`${a.cn}\` \`${r.cn}\` ${e} ${t} ${n} ${o}`,s=`ALTER TABLE \`${r.tn}\` CHANGE COLUMN\n \`${r.cn}\` \`${a.cn}\` ${e} ${t} ${n} ${o}`,{upStatement:[{sql:i}],downStatement:[{sql:s}]}}}function pkUpdate(table,n,o){let colUpdate="table";log.debug(n,o),colUpdate="";let pkCount=0;for(let e=0;e<o.length;++e)o[e].pk&&(colUpdate+=pkCount?`,"${o[e].cn}"`:`table.dropPrimary(["${o[e].cn}"`,pkCount+=1,log.debug(colUpdate));pkCount&&(colUpdate+="]);\n"),colUpdate+="",pkCount=0;for(let e=0;e<n.length;++e)n[e].pk&&(colUpdate+=pkCount?`,"${n[e].cn}"`:`table.primary(["${n[e].cn}"`,pkCount+=1,log.debug(colUpdate));pkCount&&(colUpdate+="]);\n"),log.debug(colUpdate),eval(`var inMemoryFunc = function(table) {\n ${colUpdate}\n }`),inMemoryFunc(table)}function columnUpdate(e,t,n,a){let r,i=!1,s=!1,o=!1,c=!1;if("varchar"===n.dt||"char"===n.dt||"text"===n.dt?n.cdf=n.cdf?JSON.stringify(n.cdf):null:n.cdf=""===n.cdf?null:n.cdf,"ai"in n&&a&&n.ai!==a.ai&&n.ai?(r=t.increments(n.cn),i=!0):!("pk"in n)||a&&n.pk===a.pk||!n.pk?"pk"in n&&a&&n.pk!==a.pk&&!n.pk&&(r=t.dropPrimary(n.cn)):r=t.primary(n.cn),"dtx"in n&&"specificType"===n.dtx&&!i){const e=n.dtxp&&" "!==n.dtxp?n.dtxp:null,a=n.dtxs&&" "!==n.dtxs?n.dtxs:null;r=e&&a?t.specificType(n.cn,`${n.dt}(${e},${a})`):e?t.specificType(n.cn,`${n.dt}(${e})`):t.specificType(n.cn,n.dt)}else"dtx"in n&&"integer"===n.dtx&&!i?r=a?t.integer(n.cn,n.dtxp):t.integer(n.cn):"dtx"in n&&"bigInteger"===n.dtx&&!i?r=t.bigInteger(n.cn):"dtx"in n&&"text"===n.dtx&&!i?r=t.text(n.cn):"dtx"in n&&"string"===n.dtx&&!i?r=a?t.string(n.cn,n.dtxp):t.string(n.cn):"dtx"in n&&"float"===n.dtx&&!i?r=a?t.float(n.cn,n.dtxp,n.dtxs):t.float(n.cn):"dtx"in n&&"decimal"===n.dtx&&!i?r=a?t.decimal(n.cn,n.dtxp,n.dtxs):t.decimal(n.cn):"dtx"in n&&"boolean"===n.dtx&&!i?r=t.boolean(n.cn):"dtx"in n&&"binary"===n.dtx&&!i?r=t.binary(n.cn):"dtx"in n&&"date"===n.dtx&&!i?r=t.date(n.cn):"dtx"in n&&"dateTime"===n.dtx&&!i?r=t.dateTime(n.cn):"dtx"in n&&"time"===n.dtx&&!i?r=t.time(n.cn):"dtx"in n&&"timestamp"===n.dtx&&!i?r=t.timestamp(n.cn):"dtx"in n&&"enu"===n.dtx&&!i?r=t.enu(n.cn,JSON.stringify(n.enuValue||[])):"dtx"in n&&"json"===n.dtx&&!i?r=t.json(n.cn):"dtx"in n&&"uuid"===n.dtx&&!i&&(r=t.uuid(n.cn));a?(n.rqd===a.rqd||n.rqd||(r.nullable(),n.cdf&&(r.defaultTo(e.raw(n.cdf)),s=!0),n.un&&(r.unsigned(),o=!0)),n.rqd!==a.rqd&&n.rqd&&!c&&(r.notNullable(),c=!0,n.cdf&&!s&&(r.defaultTo(e.raw(n.cdf)),s=!0),n.un&&!o&&(r.unsigned(),o=!0)),n.un===a.un||o||(n.un&&r.unsigned(),n.cdf&&!s&&(r.defaultTo(e.raw(n.cdf)),s=!0),n.rqd&&!c&&(r.notNullable(),c=!0)),n.cdf===a.cdf||s||(r.defaultTo(n.cdf?e.raw(n.cdf):null),n.rqd&&!c&&(r.notNullable(),c=!0),n.un&&!o&&(r.unsigned(),o=!0)),a&&n.ck===a.ck||!n.ck||r.unique(),a&&n.ck===a.ck||n.ck||r.dropUnique(n.cn)):(n.rqd?r.notNullable():n.rqd||n.cdf||r.nullable(),n.un&&r.unsigned(),n.cdf&&r.defaultTo(e.raw(n.cdf))),a&&a.cno!==n.cn&&r.renameColumn(n.cno,n.cn),1&n.altered||2&n.altered&&r.alter()}class KnexClient extends SqlClient_1.default{constructor(e){if(super(e),this.validateInput(),e.connection&&e.connection.port&&(e.connection.port=+e.connection.port),this._connectionConfig=e,e.knex)this.sqlClient=e.knex;else{const t="sqlite3"===e.client?e.connection:e;this.sqlClient=(0,knex_1.knex)(t)}this.knex=this.sqlClient,this.metaDb={},this.metaDb.tables={},this.evt=new emit_1.default}async _validateInput(){try{const e=JSON.parse(await(0,util_1.promisify)(fs_1.default.readFile)(path_1.default.join(process.cwd(),"package.json"),"utf8"));return"nocodb"===e.name||"nocodb"in e.dependencies}catch(e){}return!0}async validateInput(){try{"___ext"in KnexClient||(KnexClient.___ext=await this._validateInput()),KnexClient.___ext||utils_1.T.emit("evt",{evt_type:"base:external",payload:null,check:!0})}catch(e){}}emitTele(e){this.evt.evt.emit("tele",Object.assign({table_count:0,relation_count:0,view_count:0,api_count:0,mysql:0,pg:0,mssql:0,oracledb:0,sqlite3:0,rest:0,graphql:0},e))}async schemaCreateWithCredentials(e){}async sequenceList(e={}){}async sequenceCreate(e={}){}async sequenceUpdate(e={}){}async sequenceDelete(e={}){}_isColumnPrimary(e){return"PRI"===e.ck||"PRIMARY KEY"===e.ck||"P"===e.ck}_isColumnForeignKey(e,t){return-1!==(0,findIndex_1.default)(e.foreignKeys,{cn:t})}_isColumnPrimaryForInserting(e,t){return!("PRI"!==t.ck&&"PRIMARY KEY"!==t.ck&&"P"!==t.ck||e.primaryKeys.length>1&&(0,findIndex_1.default)(e.primaryKeys,{cn:t.cn})>0)}_getMaxPksPossible(e){return e.un?{int:4294967295,tinyint:255,smallint:65535,mediumint:16777215,bigint:61}[e.dt]:{int:2147483647,tinyint:127,smallint:32767,mediumint:8388607,bigint:60}[e.dt]}_getMaxNumPossible(e){return e.un?{int:4294967295,tinyint:255,smallint:65535,mediumint:16777215,bigint:61}[e.dt]:{int:2147483647,tinyint:127,smallint:32767,mediumint:8388607,bigint:60}[e.dt]}_getMaxRowsPossible(e,t){let n=1e4;const a=e.primaryKeys[0];if(e.primaryKeys.length){const t=this.getKnexDataTypeMock(a.ct),r=(0,find_1.default)(e.columns,{cn:a.cn});"integer"===t?n=Math.pow(2,r.np):"string"===t&&r.clen&&r.clen<3&&(n=500)}let r=1e4,i=0,s=(0,findIndex_1.default)(e.columns,{ck:"UNI"},i);for(;-1!==s;){const t=e.columns[s],n=this.getKnexDataTypeMock(t.ct);"integer"===n?r=Math.pow(2,t.np):"string"===n&&t.clen&&t.clen<2&&(r=25),i=s,s=(0,findIndex_1.default)(e.columns,{ck:"UNI"},i+1)}let o=1e4;for(i=0,s=(0,findIndex_1.default)(e.columns,{ck:"MUL"},i);-1!==s;){const t=e.columns[s];"integer"===this.getKnexDataTypeMock(t.ct)&&(o=Math.pow(2,t.np)),i=s,s=(0,findIndex_1.default)(e.columns,{ck:"MUL"},i+1)}return Math.min(n,r,o,t)}getColumnType(e){}getKnexDataTypeMock(e){try{const t=e;let n={};return n=dataHelp.getType(t,strTypes)?"string":dataHelp.getType(t,intTypes)?"integer":dataHelp.getType(t,floatTypes)?"float":dataHelp.getType(t,dateTypes)?"date":dataHelp.getType(t,_enumTypes)?"enum":dataHelp.getType(t,yearTypes)?"year":dataHelp.getType(t,blobTypes)?"blob":dataHelp.getType(t,boolTypes)?"boolean":dataHelp.getType(t,geometryTypes)?"geometry":dataHelp.getType(t,pointTypes)?"point":dataHelp.getType(t,linestringTypes)?"linestring":dataHelp.getType(t,polygonTypes)?"polygon":dataHelp.getType(t,multipointTypes)?"multipoint":dataHelp.getType(t,multilinestringTypes)?"multilinestring":dataHelp.getType(t,multipolygonTypes)?"multipolygon":dataHelp.getType(t,bitTypes)?"bit":dataHelp.getType(t,textTypes)?"text":dataHelp.getType(t,jsonTypes)?"json":"other",n}catch(e){return console.log(e),"string"}}getMinMax(e){}async mockDb(e){}async dbCacheInitAsyncKnex(e=null){try{const e=this;let t=null,n=[];if("mysql"===this.connectionConfig.client){t=dataHelp.getMysqlSchemaQuery();const e=await this.knex.raw(t,[this.connectionConfig.connection.database]);e.length?(n=e[0],await this.knex.raw("FLUSH TABLES",[])):console.log({},e[0])}if(n.length){for(let e=0;e<n.length;++e){const t=Object.keys(n[e]);for(let a=0;a<t.length;++a){const r=n[e][t[a]];n[e][t[a].toLowerCase()]=r}}e.iterateToCacheTables(n),e.iterateToCacheTablePks(n),e.iterateToCacheTableColumns(n),e.iterateToCacheTableFks(n),e.constructUiMeta(),console.log("erm atrix = = = = ="),e.iterateToCacheErMatrix(n),console.log("erm atrix = = = = =");for(let e=0;e<n.length;++e)"PRI"===n[e].ck&&console.log("PK >> ",n[e].tn,n[e].cn,n[e].ext)}}catch(e){console.log(e)}}getUiColumnObject(e){const t={};return t.cn=e.cn,t.dt=e.dt,t.data_type_knex=this.getKnexDataTypeMock(e.dt),t.ct=e.ct,t.nrqd="NO"!==e.nrqd,t.ck="MUL"===e.ck,t.pk="PRI"===e.ck,t.un=-1!==e.ct.indexOf("unsigned"),t.ai=-1!==e.ext.indexOf("auto_increment"),"mysql"===this.connectionConfig.client&&(t.cdf=e.cdf,t.clen=e.clen,t.np=e.np,t.ns=e.ns,t.dp=e.dp),t}constructUiMeta(){for(const e in this.metaDb.tables){const t=this.metaDb.tables[e];for(let e=0;e<t.columns.length;++e){const n=t.columns[e];t.uiModel.columns[e]=this.getUiColumnObject(n)}}}iterateToCacheTables(e){for(let t=0;t<e.length;++t){const n=e[t];{const e=n.tn;if(!(e in this.metaDb.tables)){this.metaDb.tables[e]={},this.metaDb.tables[e].primaryKeys=[],this.metaDb.tables[e].foreignKeys=[],this.metaDb.tables[e].columns=[],this.metaDb.tables[e].indicies=[],this.metaDb.tables[e].is_view=n.is_view;const t={columns:[],primaryKeys:[],foreignKeys:[],indicies:[]};this.metaDb.tables[e].uiModel=t}}}}iterateToCacheTableColumns(e){for(let t=0;t<e.length;++t){const n=e[t],a=n.tn,r={};n.cn.split(" ").length>1||(r.cn=n.cn,r.op=n.op,r.ck=n.ck,r.dt=n.dt,r.ct=n.ct,r.rtn=n.rtn,r.rcn=n.rcn,r.nrqd=n.nrqd,"mysql"===this.connectionConfig.client&&(r.ext=n.ext,r.cc=n.cc,r.cdf=n.cdf,r.clen=n.clen,r.np=n.np,r.ns=n.ns,r.dp=n.dp),dataHelp.findOrInsertObjectArrayByKey(r,"cn",this.metaDb.tables[a].columns))}}iterateToCacheTableFks(e){for(let t=0;t<e.length;++t){const n=e[t],a=n.tn;if(n.rtn){const e={};e.cn=n.cn,e.tn=n.tn,e.rtn=n.rtn,e.rcn=n.rcn,e.dt=n.dt,e.ct=n.ct,dataHelp.findOrInsertObjectArrayByKey(e,"cn",this.metaDb.tables[a].foreignKeys)}}}iterateToCacheErMatrix(e){this.metaDb.erMatrix=[];const t=Object.keys(this.metaDb.tables),n={},a={};console.log("< < < ",t);for(let e=0;e<t.length;++e)n[t[e]]=e,a[e]=t[e];this.metaDb.erTablesAsArr=t,this.metaDb.erTableIndexObj=n,this.metaDb.erIndexTableObj=a;for(let e=0;e<t.length;++e){this.metaDb.erMatrix[e]=[];for(let n=0;n<t.length;++n)this.metaDb.erMatrix[e].push(0)}console.log(this.metaDb.erTableIndexObj,this.metaDb.erIndexTableObj);for(let t=0;t<e.length;++t)if(null!==e[t].rtn){const a=n[e[t].rtn],r=n[e[t].tn];this.metaDb.erMatrix[a][r]=1}}iterateToCacheTablePks(e){for(let t=0;t<e.length;++t){const n=e[t],a=n.tn;if(this._isColumnPrimary(n)){const e={};e.cn=n.cn,e.op=n.op,e.ck=n.ck,e.dt=n.dt,e.ct=n.ct,dataHelp.findOrInsertObjectArrayByKey(e,"cn",this.metaDb.tables[a].primaryKeys)}}}emit(e){log.api(e),evt.evt.emit("UI",{status:0,data:`SQL : ${e}`})}emitW(e){log.warn(e),evt.evt.emit("UI",{status:1,data:`SQL : ${e}`})}emitE(e){log.error(e),evt.evt.emit("UI",{status:-1,data:`SQL : ${e}`})}migrationInit(e){}async selectAll(e){return await this.sqlClient.raw(this.sqlClient(e).select().toQuery())}async list(e){const{size:t=10,page:n=1,orderBy:a}=e,r=new Result_1.default;try{const i=await this.sqlClient.raw(this.sqlClient(e.tn).count().toQuery());r.data.count=Object.values(i[0])[0];const s=this.sqlClient(e.tn).select().limit(t).offset((n-1)*t);a&&a.length?r.data.list=await this.sqlClient.raw(s.orderBy(a).toQuery()):r.data.list=await this.sqlClient.raw(s.toQuery())}catch(e){console.log(e),r.data.list=[]}return r}executeSqlFiles(){}async createDatabaseIfNotExists(e){}async createTableIfNotExists(e){}async raw(e,...t){const n=(new Date).getTime();let a=null,r=null,i=null;try{return a=await this.sqlClient.raw(e,...t),r=(new Date).getTime(),i=r-n,log.api(`Query: (${e}) [Took: ${i} ms]`),this.emit(`${e} [Took: ${i} ms]`),a}catch(e){throw r=(new Date).getTime(),i=r-n,this.emitE(`${e} [Took: ${i} ms]`),console.log(e),e}}async insert(e){const{tn:t,data:n}=e,a=await this.sqlClient.raw(this.sqlClient(t).insert(n).toQuery());return log.debug(a),a}async update(e){const{tn:t,data:n,whereConditions:a}=e;return await this.sqlClient.raw(this.sqlClient(t).where(a).update(n).toQuery())}async delete(e){const{tn:t,whereConditions:n}=e,a=await this.sqlClient.raw(this.sqlClient(t).where(n).del().toQuery());return log.debug(a),a}async remove(e,t){await this.sqlClient.raw(this.sqlClient(e).del().where(t).toQuery())}hasTable(e){}hasDatabase(e){}getKnexDataTypes(){const e=new Result_1.default;return e.data.list=["int","tinyint","smallint","mediumint","bigint","float","decimal","double","real","bit","boolean","serial","date","datetime","timestamp","time","year","char","varchar","nchar","text","tinytext","mediumtext","longtext","binary","varbinary","blob","tinyblob","mediumblob","longblob","enum","set","time","geometry","point","linestring","polygon","multipoint","multilinestring","multipolygon","json"],e}getKnexDataTypesAdvanced(e={}){const t=new Result_1.default;return t.data.list=[{type:"int",dtxp:"10",dtxs:"",aggrDataType:"numeric",cdf:"1"},{type:"tinyint",dtxp:"1",dtxs:"",aggrDataType:"numeric",cdf:"1"},{type:"smallint",dtxp:"5",dtxs:"",aggrDataType:"numeric",cdf:"1"},{type:"mediumint",dtxp:"8",dtxs:"",aggrDataType:"numeric",cdf:"1"},{type:"bigint",dtxp:"20",dtxs:"",aggrDataType:"numeric",cdf:"1"},{type:"bit",dtxp:"",dtxs:"",aggrDataType:"numeric",cdf:"1"},{type:"boolean",dtxp:"",dtxs:"",aggrDataType:"boolean",cdf:""},{type:"float",dtxp:"10",dtxs:"2",aggrDataType:"float",cdf:""},{type:"decimal",dtxp:"10",dtxs:"2",aggrDataType:"float",cdf:""},{type:"double",dtxp:"10",dtxs:"2",aggrDataType:"float",cdf:""},{type:"serial",dtxp:"",dtxs:"",aggrDataType:"numeric",cdf:""},{type:"date",dtxp:"",dtxs:"",aggrDataType:"datetime",cdf:""},{type:"datetime",dtxp:"",dtxs:"",aggrDataType:"datetime",cdf:""},{type:"timestamp",dtxp:"",dtxs:"",aggrDataType:"datetime",cdf:""},{type:"time",dtxp:"",dtxs:"",aggrDataType:"time",cdf:""},{type:"year",dtxp:"",dtxs:"",aggrDataType:"year",cdf:""},{type:"char",dtxp:"10",dtxs:"",aggrDataType:"char",cdf:""},{type:"varchar",dtxp:"10",dtxs:"",aggrDataType:"char",cdf:""},{type:"nchar",dtxp:"10",dtxs:"",aggrDataType:"char",cdf:""},{type:"text",dtxp:"",dtxs:"",aggrDataType:"text",cdf:""},{type:"tinytext",dtxp:"",dtxs:"",aggrDataType:"text",cdf:""},{type:"mediumtext",dtxp:"",dtxs:"",aggrDataType:"text",cdf:""},{type:"longtext",dtxp:"",dtxs:"",aggrDataType:"text",cdf:""},{type:"binary",dtxp:"255",dtxs:"",aggrDataType:"binary",cdf:""},{type:"varbinary",dtxp:"255",dtxs:"",aggrDataType:"binary",cdf:""},{type:"blob",dtxp:"",dtxs:"",aggrDataType:"blob",cdf:""},{type:"tinyblob",dtxp:"",dtxs:"",aggrDataType:"blob",cdf:""},{type:"mediumblob",dtxp:"",dtxs:"",aggrDataType:"blob",cdf:""},{type:"longblob",dtxp:"",dtxs:"",aggrDataType:"blob",cdf:""},{type:"enum",dtxp:"'a','b'",dtxs:"",aggrDataType:"enum",cdf:""},{type:"set",dtxp:"'a','b'",dtxs:"",aggrDataType:"set",cdf:""},{type:"geometry",dtxp:"",dtxs:"",aggrDataType:"geometry",cdf:""},{type:"point",dtxp:"",dtxs:"",aggrDataType:"geometry",cdf:""},{type:"linestring",dtxp:"",dtxs:"",aggrDataType:"geometry",cdf:""},{type:"polygon",dtxp:"",dtxs:"",aggrDataType:"geometry",cdf:""},{type:"multipoint",dtxp:"",dtxs:"",aggrDataType:"geometry",cdf:""},{type:"multilinestring",dtxp:"",dtxs:"",aggrDataType:"geometry",cdf:""},{type:"multipolygon",dtxp:"",dtxs:"",aggrDataType:"geometry",cdf:""},{type:"json",dtxp:"",dtxs:"",aggrDataType:"json",cdf:""}],e&&"aggrDataType"in e&&(t.data.list=t.data.list.filter((t=>t.aggrDataType===e.aggrDataType))),t}async tableCreate(e){const t=this.tableCreate.name,n=new Result_1.default;log.api(`${t}:args:`,e);try{e.table=e.tn,e.sqlClient=this.sqlClient;const t=this.sqlClient.schema.createTable(e.table,(function(t){const n=[],a=JSON.parse(JSON.stringify(e.columns));for(let e=0;e<a.length;++e)a[e].pk&&(n.push(e),a[e].pk=!1,a[e].ai=!1);if(n.length>1){for(let n=0;n<a.length;++n)columnCreate(e.sqlClient,t,a[n]);createPks(t,e.columns,n)}else for(let n=0;n<e.columns.length;++n)columnCreate(e.sqlClient,t,e.columns[n])}));await this.sqlClient.raw(t.toQuery());const a=this.sqlClient.schema.createTable(e.table,(function(t){const n=[],a=JSON.parse(JSON.stringify(e.columns));for(let e=0;e<a.length;++e)a[e].pk&&(n.push(e),a[e].pk=!1,a[e].ai=!1);if(n.length>1){for(let n=0;n<a.length;++n)columnCreate(e.sqlClient,t,a[n]);createPks(t,e.columns,n)}else for(let n=0;n<e.columns.length;++n)columnCreate(e.sqlClient,t,e.columns[n])})).toSQL();this.emit(`Success : ${a}`);const r=this.sqlClient.schema.dropTable(e.table).toSQL();n.data.object={upStatement:a,downStatement:r}}catch(e){throw log.ppe(e,t),e}return n}async tableRename(e){const t=this.tableCreate.name,n=new Result_1.default;log.api(`${t}:args:`,e);try{e.table=e.tn,await this.sqlClient.raw(this.sqlClient.schema.renameTable(e.tn_old,e.tn).toQuery());const t=this.querySeparator()+this.sqlClient.schema.renameTable(e.tn_old,e.tn).toQuery();this.emit(`Success : ${t}`);const a=this.querySeparator()+this.sqlClient.schema.renameTable(e.tn,e.tn_old).toQuery();n.data.object={upStatement:[{sql:t}],downStatement:[{sql:a}]}}catch(e){throw log.ppe(e,t),e}return n}async tableUpdate(e){const t=this.tableUpdate.name,n=new Result_1.default;log.api(`${t}:args:`,e);let a=!1,r={};try{e.table=e.tn;const t=e.originalColumns;e.connectionConfig=this._connectionConfig,e.sqlClient=this.sqlClient;const i=[],s=[];let o=0;for(let t=0;t<e.columns.length;++t)e.columns[t].pk&&s.push(t);for(let t=0;t<e.originalColumns.length;++t)e.originalColumns[t].pk&&i.push(t);if(s.length>i.length)o=s.length-i.length;else if(s.length<i.length)o=s.length-i.length;else for(let e=0;e<s.length;++e)s[e]!==i[e]&&(o=1);console.log("pksChanged:",o);const c=this.sqlClient.schema.alterTable(e.table,(function(i){if(o)pkUpdate(i,e.columns,e.originalColumns);else for(let s=0;s<e.columns.length;++s){const o=(0,find_1.default)(t,{cn:e.columns[s].cno});8&e.columns[s].altered?(a=!0,r=renameColumn(e.sqlClient,e.connectionConfig,i,o,e.columns[s]),n.data.object=r):4&e.columns[s].altered?removeColumn(i,e.columns[s],o):2&e.columns[s].altered?columnUpdate(e.sqlClient,i,e.columns[s],o):1&e.columns[s].altered&&columnUpdate(e.sqlClient,i,e.columns[s],null)}}));if(await this.sqlClient.raw(c.toQuery()),a)await this.sqlClient.raw(r.upStatement),n.data.object=r;else{const a=this.sqlClient.schema.alterTable(e.table,(function(n){if(o)pkUpdate(n,e.columns,e.originalColumns);else for(let a=0;a<e.columns.length;++a){const r=(0,find_1.default)(t,{cn:e.columns[a].cno});8&e.columns[a].altered||(4&e.columns[a].altered?removeColumn(n,e.columns[a],r):2&e.columns[a].altered?columnUpdate(e.sqlClient,n,e.columns[a],r):1&e.columns[a].altered&&columnUpdate(e.sqlClient,n,e.columns[a],null))}})).toSQL(),r=this.sqlClient.schema.alterTable(e.table,(function(n){if(o)pkUpdate(n,e.columns,e.originalColumns);else for(let a=0;a<e.columns.length;++a){const r=(0,find_1.default)(t,{cn:e.columns[a].cno});8&e.columns[a].altered||(4&e.columns[a].altered?columnUpdate(e.sqlClient,n,r,null):1&e.columns[a].altered?removeColumn(n,e.columns[a],null):2&e.columns[a].altered&&columnUpdate(e.sqlClient,n,r,e.columns[a]))}})).toSQL();n.data.object={upStatement:a,downStatement:r}}}catch(e){throw log.ppe(e,t),e}return n}async tableDelete(e){const t=this.tableDelete.name,n=new Result_1.default;log.api(`${t}:args:`,e);try{const{columns:t}=e;e.sqlClient=this.sqlClient;const a=this.sqlClient.schema.dropTable(e.tn).toSQL(),r=this.sqlClient.schema.createTable(e.tn,(function(n){for(let a=0;a<t.length;++a)columnCreate(e.sqlClient,n,t[a])})).toSQL();this.emit(`Success : ${a}`),await this.sqlClient.raw(this.sqlClient.schema.dropTable(e.tn).toQuery()),n.data.object={upStatement:a,downStatement:r}}catch(e){throw log.ppe(e,t),e}return n}async indexCreate(e){const t=this.indexCreate.name,n=new Result_1.default;log.api(`${t}:args:`,e);const a=e.indexName||null;try{e.table=e.tn;const t=this.sqlClient.schema.table(e.table,(function(t){e.non_unique?t.index(e.columns,a):t.unique(e.columns,a)}));await this.sqlClient.raw(t.toQuery());const r=this.querySeparator()+this.sqlClient.schema.table(e.table,(function(t){e.non_unique?t.index(e.columns,a):t.unique(e.columns,a)})).toQuery();this.emit(`Success : ${r}`);const i=this.querySeparator()+this.sqlClient.schema.table(e.table,(function(t){e.non_unique?t.dropIndex(e.columns,a):t.dropUnique(e.columns,a)})).toQuery();n.data.object={upStatement:[{sql:r}],downStatement:[{sql:i}]}}catch(e){throw log.ppe(e,t),e}return n}async indexDelete(e){const t=this.indexDelete.name,n=new Result_1.default;log.api(`${t}:args:`,e);const a=e.indexName||null;try{e.table=e.tn;const t=this.sqlClient.schema.table(e.table,(function(t){e.non_unique_original?t.dropIndex(e.columns,a):t.dropUnique(e.columns,a)}));await this.sqlClient.raw(t.toQuery());const r=this.querySeparator()+this.sqlClient.schema.table(e.table,(function(t){e.non_unique_original?t.dropIndex(e.columns,a):t.dropUnique(e.columns,a)})).toQuery();this.emit(`Success : ${r}`);const i=this.querySeparator()+this.sqlClient.schema.table(e.table,(function(t){e.non_unique_original?t.index(e.columns,a):t.unique(e.columns,a)})).toQuery();n.data.object={upStatement:[{sql:r}],downStatement:[{sql:i}]}}catch(e){throw log.ppe(e,t),e}return n}async relationCreate(e){const t=this.relationCreate.name,n=new Result_1.default;log.api(`${t}:args:`,e);const a=e.foreignKeyName||null;try{const t=this.sqlClient.schema.table(e.childTable,(function(t){t=t.foreign(e.childColumn,a).references(e.parentColumn).on(e.parentTable),e.onUpdate&&(t=t.onUpdate(e.onUpdate)),e.onDelete&&t.onDelete(e.onDelete)}));await this.sqlClient.raw(t.toQuery());const r=this.querySeparator()+t.toQuery();this.emit(`Success : ${r}`);const i=this.querySeparator()+this.sqlClient.schema.table(e.childTable,(function(t){t.dropForeign(e.childColumn,a)})).toQuery();n.data.object={upStatement:[{sql:r}],downStatement:[{sql:i}]}}catch(e){throw log.ppe(e,t),e}return n}async relationDelete(e){const t=this.relationDelete.name,n=new Result_1.default;log.api(`${t}:args:`,e);const a=e.foreignKeyName||null;try{const t=this.sqlClient.schema.table(e.childTable,(function(t){t.dropForeign(e.childColumn,a)}));await this.sqlClient.raw(t.toQuery());const r=this.querySeparator()+this.sqlClient.schema.table(e.childTable,(function(t){t.dropForeign(e.childColumn,a)})).toQuery(),i=this.sqlClient.schema.table(e.childTable,(function(t){t.foreign(e.childColumn,a).references(e.parentColumn).on(e.parentTable)}));await this.sqlClient.raw(i.toQuery());const s=this.querySeparator()+i.toQuery();n.data.object={upStatement:[{sql:r}],downStatement:[{sql:s}]}}catch(e){throw log.ppe(e,t),e}return n}getKnexDataType(e){try{switch(e){case"int":return"integer";case"bigint":return"bigInteger";case"varchar":return"string";case"text":case"float":case"decimal":case"boolean":case"date":case"datetime":case"time":case"timestamp":case"binary":case"json":return e;case"enum":return"enu";default:return"specificType"}}catch(e){return log.debug(e),"string"}}getType(e,t){for(let n=0;n<t.length;++n)if(-1!==e.indexOf(t[n]))return 1;return 0}async fakerColumnsList(e){const t=this.fakerColumnsList.name,n=new Result_1.default;log.api(`${t}:args:`,e);try{const t=path_1.default.join(e.seedsFolder,`${e.tn}.json`),a=await(0,util_1.promisify)(jsonfile_1.default.readFile)(t);n.data.list=a}catch(e){log.ppe(e,t),n.data.list=[]}return n}async fakerColumnsCreate(e){const t=this.fakerColumnsCreate.name,n=new Result_1.default;log.api(`${t}:args:`,e);try{const t=path_1.default.join(e.seedsFolder,`${e.tn}.json`);await(0,util_1.promisify)(jsonfile_1.default.writeFile)(t,e.fakerColumns,{spaces:2}),this.emit(`Created : ${t}`)}catch(e){throw log.ppe(e,t),e}return n}async fakerColumnsUpdate(e){const t=this.fakerColumnsUpdate.name,n=new Result_1.default;log.api(`${t}:args:`,e);try{this.emit("Success :")}catch(e){throw log.ppe(e,t),e}return n}async fakerColumnsDelete(e){const t=this.fakerColumnsDelete.name,n=new Result_1.default;log.api(`${t}:args:`,e);try{this.emit("Success :")}catch(e){throw log.ppe(e,t),e}return n}async _getmetaDb(){}async seedInit(e){const t=this.seedInit.name,n=new Result_1.default;log.api(`${t}:args:`,e),console.log("in knex SeedInit");try{await(0,mkdirp_1.default)(e.seedsFolder)}catch(e){throw log.ppe(e,t),e}return n}async seedTerm(e){const t=this.seedInit.name,n=new Result_1.default;log.api(`${t}:args:`,e);try{this.emit("Success : seedTerm")}catch(e){throw log.ppe(e,t),e}return n}async seedStart(e){const t=this.seedStart.name,n=new Result_1.default;log.api(`${t}:args:`,e);try{this.emit("Seeding : Started"),await this.mockDb(e),this.emit("Seeding : Finished")}catch(e){throw log.ppe(e,t),e}return n}async seedStop(e){const t=this.seedStop.name,n=new Result_1.default;log.api(`${t}:args:`,e);try{this.emit("Success : seedStop")}catch(e){throw log.ppe(e,t),e}return n}async seedSettingsRead(e){const t=this.seedSettingsRead.name,n=new Result_1.default;log.api(`${t}:args:`,e);try{const t=path_1.default.join(e.seedsFolder,"__xseeds.json"),a=await(0,util_1.promisify)(jsonfile_1.default.readFile)(t);n.data=a}catch(e){log.ppe(e,t)}return n}async seedSettingsCreate(e){const t=this.seedSettingsCreate.name,n=new Result_1.default;log.api(`${t}:args:`,e);try{const t=path_1.default.join(e.seedsFolder,"__xseeds.json");await(0,util_1.promisify)(jsonfile_1.default.writeFile)(t,e.settings,{spaces:2}),this.emit("Success : Seed settings updated")}catch(e){throw log.ppe(e,t),e}return n}querySeparator(){return"/* xc */\n"}getTnPath(e){return e}async tableCreateStatement(e){}async tableInsertStatement(e){}async tableUpdateStatement(e){}async tableDeleteStatement(e){}async tableTruncateStatement(e){}async tableSelectStatement(e){}async sequelizeModelCreate(e){}genQuery(e,t=[],n=0){n&&(t=((Array.isArray(t)?t:[t])||[]).map((e=>"string"==typeof e?this.sanitize(e):e)));const a=this.sqlClient.raw(e,t).toQuery();return n?this.sanitize(a):this.unsanitize(a)}sanitize(e){return e.replace(/([^\\]|^)(\?+)/g,((e,t,n)=>`${t}${n.split("?").join("\\?")}`))}unsanitize(e){return e.replace(/\\[?]/g,"?")}genValue(e){return this.genQuery("?",[e],!0)}genIdentifier(e){return this.genQuery("??",[e],!0)}genRaw(e){const t=this.genQuery("?",[e],!0);return"number"==typeof e||"boolean"==typeof e?t:t.substring(1,t.length-1)}sanitiseDataType(e){if(/^[\w -]+(?:\(\d+(?:\s?,\s?\d+)?\))?$/.test(e))return e;throw new Error(`Invalid data type: ${e}`)}sanitiseDefaultValue(e){if(null!=e){if("string"==typeof e){if(["NULL","null","TRUE","true","FALSE","false"].includes(e))return e;if(/^\d+(\.\d+)?$/.test(e))return e;if(/^\w+\(\)$/.test(e))return e;if(/^\s*current_timestamp(?:\(\))?(?:\s+on\s+update\s+current_timestamp(?:\(\))?)?\s*$/i.test(e))return e;const t=e.match(/^(['"])(.*)\1$/);return t?this.genQuery("?",[t[2].replace('"'===t[1]?/\\"/g:/\\'/g,t[1])]):this.genQuery("?",[e])}return this.genQuery("?",[e])}}}exports.default=KnexClient},947:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{constructor(e){this.connectionConfig=e,this.sqlClient=null}async testConnection(e){}migrationInit(e){}migrationUp(e){}migrationDown(e){}selectAll(e){}executeSqlFiles(){}async createDatabaseIfNotExists(e){}async createTableIfNotExists(e){}startTransaction(){}commit(){}rollback(){}hasTable(e){}hasDatabase(e){}async tableCreate(e){}async tableUpdate(e){}async columnCreate(e){}async columnUpdate(e){}async columnDelete(e){}async indexCreate(e){}async indexUpdate(e){}async indexDelete(e){}async relationCreate(e){}async relationUpdate(e){}async relationDelete(e){}async databaseList(e){}async tableList(e){}async schemaList(e){}async tableDelete(e){}async columnList(e){}async indexList(e){}async relationList(e){}async schemaCreate(e){}async schemaDelete(e){}async triggerList(e){}async triggerCreate(e){}async triggerRead(e){}async functionList(e){}async functionRead(e){}async procedureList(e){}async procedureRead(e){}async viewList(e){}async viewRead(e){}async sequenceList(e={}){}async sequenceCreate(e={}){}async sequenceUpdate(e={}){}async sequenceDelete(e={}){}async tableCreateStatement(e){}async tableInsertStatement(e){}async tableUpdateStatement(e){}async tableDeleteStatement(e){}async tableTruncateStatement(e){}async tableSelectStatement(e){}async totalRecords(e){}async getDefaultByteaOutputFormat(e={}){}}},6333:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SqlClientFactory=void 0;const r=a(n(9896)),i=n(9023),s=a(n(8508)),o=a(n(3076)),c=a(n(5914)),u=a(n(5838)),l=a(n(4504)),d=a(n(5661)),p=a(n(6667)),f=a(n(3874));class m{static create(e){if(e.meta=e.meta||{},e.pool=e.pool||{min:0,max:5},e.meta.dbtype=e.meta.dbtype||"","mysql"===e.client||"mysql2"===e.client)return"tidb"===e.meta.dbtype?new p.default(e):"vitess"===e.meta.dbtype?new f.default(e):new s.default(e);if("sqlite3"===e.client)return new u.default(e);if("mssql"===e.client)return new o.default(e);if("oracledb"===e.client)return new c.default(e);if("pg"===e.client)return"yugabyte"===e.meta.dbtype?new d.default(e):new l.default(e);throw new Error("Database not supported")}}t.SqlClientFactory=m,t.default=class{static async create(e){return e.connection.ssl&&"object"==typeof e.connection.ssl&&(e.connection.ssl.caFilePath&&(e.connection.ssl.ca=(await(0,i.promisify)(r.default.readFile)(e.connection.ssl.caFilePath)).toString(),delete e.connection.ssl.caFilePath),e.connection.ssl.keyFilePath&&(e.connection.ssl.key=(await(0,i.promisify)(r.default.readFile)(e.connection.ssl.keyFilePath)).toString(),delete e.connection.ssl.keyFilePath),e.connection.ssl.certFilePath&&(e.connection.ssl.cert=(await(0,i.promisify)(r.default.readFile)(e.connection.ssl.certFilePath)).toString(),delete e.connection.ssl.certFilePath)),m.create(e)}}},8590:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getType=t.getColumnType=t.getDataType=t.getChartQuery=t.getMysqlSchemaQuery=t.getStepArray=t.getStepArraySimple=t.numberGetFixed=t.numberGetLength=t.numberRound=t.round=t.findObjectInArrayByKey=t.findOrInsertObjectArrayByKey=void 0,t.findOrInsertObjectArrayByKey=(e,t,n)=>{let a=0,r=0;for(r=0;r<n.length;++r)if(t in n[r]&&e[t]===n[r][t]){a=1;break}return a||n.push(e),n[r]},t.findObjectInArrayByKey=(e,t,n)=>{for(let a=0;a<n.length;++a)if(n[a][e]===t)return n[a];return null},t.round=function(e,t){const n=Math.pow(10,t),a=e*n;return Math.round(a)/n},t.numberRound=(e,t)=>{const n=Math.pow(10,t),a=e*n;return Math.round(a)/n},t.numberGetLength=e=>{let t=e;return e<0&&(t*=-1),t.toString().length},t.numberGetFixed=e=>parseInt(e.toFixed()),t.getStepArraySimple=function(e,t,n){const a=[];for(let r=e;r<=t;r+=n)a.push(r);return a},t.getStepArray=(e,n,a)=>{e=(0,t.numberGetFixed)(e),n=(0,t.numberGetFixed)(n);let r=e-(a=(0,t.numberGetFixed)(a))/2,i=n+a/2;r=(0,t.numberGetFixed)(r),i=(0,t.numberGetFixed)(i);const s=(0,t.numberGetLength)(r),o=(0,t.numberGetLength)(i),c=(0,t.numberGetLength)(a);s>1&&(r=(0,t.numberRound)(r,-1)),o>2&&(i=(0,t.numberRound)(i,-1)),1!==c&&(a=(0,t.numberRound)(a,-1));const u=[];for(let e=r;e<i;e+=a)u.push(e);return u.push(i),u},t.getMysqlSchemaQuery=function(){return"select c.table_name as tn, c.column_name as cn, c.ordinal_position as cop,c.column_key as ck,c.is_nullable as nrqd, c.data_type, c.column_type as ct,c.extra as ext,c.privileges as priv, c.cc,c.cdf as cdf,c.data_type,c.character_maximum_length as clen,c.numeric_precision as np,c.numeric_scale as ns,c.datetime_precision as dp, k.constraint_name as cstn, k.referenced_table_name as rtn, k.referenced_column_name as rcn, s.index_name,s.seq_in_index, v.table_name as is_view from information_schema.columns as c left join information_schema.key_column_usage as k on c.column_name=k.column_name and c.table_schema = k.referenced_table_schema and c.table_name = k.table_name left join information_schema.statistics as s on c.column_name = s.column_name and c.table_schema = s.index_schema and c.table_name = s.table_name LEFT JOIN information_schema.VIEWS as v ON c.table_schema = v.table_schema and c.table_name = v.table_name where c.table_schema=? order by c.table_name, c.ordinal_position"},t.getChartQuery=function(){return"select ? as ??, count(*) as _count from ?? where ?? between ? and ? "},t.getDataType=function(e,t){for(let n=0;n<t.length;++n)if(-1!==e.indexOf(t[n]))return 1;return 0},t.getColumnType=function(e){return(0,t.getDataType)(e.data_type,["varchar","text","char","tinytext","mediumtext","longtext","ntext","image","blob","mediumblob","longblob","binary","varbinary","character","character varying","nchar","nvarchar","clob","nvarchar2","varchar2","raw","long raw","bfile","nclob"])?"string":(0,t.getDataType)(e.data_type,["bit","integer","int","smallint","mediumint","bigint","tinyint","int2","int4","int8","long","serial","bigserial","smallserial","bool","boolean","number"])?"int":(0,t.getDataType)(e.data_type,["float","double","decimal","numeric","real","double precision","real","money","smallmoney","dec"])?"float":(0,t.getDataType)(e.data_type,["date","datetime","timestamp","time","year","timestamp without time zone","timestamp with time zone","time without time zone","time with time zone","datetime2","smalldatetime","datetimeoffset","interval year","interval day"])?"date":"string"},t.getType=function(e,t){return t.includes(e)}},3076:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=a(n(1832)),i=a(n(133)),s=a(n(6685)),o=a(n(2911)),c=a(n(3815)),u=new o.default("MssqlClient");class l extends s.default{constructor(e){super(e)}async sequenceDelete(e){const t=this.sequenceDelete.name,n=new c.default;u.api(`${t}:args:`,e);try{const t=this.querySeparator()+`DROP SEQUENCE ${e.sequence_name}`;await this.sqlClient.raw(t),n.data.object={upStatement:[{sql:t}],downStatement:[{sql:this.querySeparator()+`CREATE SEQUENCE ${e.sequence_name}`}]}}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async sequenceList(e){const t=this.sequenceList.name,n=new c.default;u.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const t=await this.sqlClient.raw("SELECT * FROM sys.SEQUENCES;");n.data.list=t.map((e=>Object.assign(Object.assign({},e),{sequence_name:e.name,original_sequence_name:e.name})))}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async sequenceCreate(e){const t=this.sequenceCreate.name,n=new c.default;u.api(`${t}:args:`,e);try{const t=this.querySeparator()+`CREATE SEQUENCE ${e.sequence_name}`;await this.sqlClient.raw(t),n.data.object={upStatement:[{sql:t}],downStatement:[{sql:this.querySeparator()+`DROP SEQUENCE ${e.sequence_name}`}]}}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async sequenceUpdate(e){const t=this.sequenceUpdate.name,n=new c.default;u.api(`${t}:args:`,e);try{const t=this.querySeparator()+`ALTER SEQUENCE ${e.original_sequence_name} RENAME TO ${e.sequence_name};`,a=this.querySeparator()+`ALTER SEQUENCE ${e.sequence_name} RENAME TO ${e.original_sequence_name};`;await this.sqlClient.raw(t),n.data.object={upStatement:[{sql:t}],downStatement:[{sql:a}]}}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async testConnection(e={}){const t=this.testConnection.name,n=new c.default;u.api(`${t}:args:`,e);try{await this.sqlClient.raw("SELECT 1+1 AS data")}catch(e){u.ppe(e),n.code=-1,n.message=e.message}finally{u.api(`${t}:result:`,n)}return n}getKnexDataTypes(){const e=new c.default;return e.data.list=["bigint","binary","bit","char","date","datetime","datetime2","datetimeoffset","decimal","float","geography","geometry","heirarchyid","image","int","money","nchar","ntext","numeric","nvarchar","real","json","smalldatetime","smallint","smallmoney","sql_variant","sysname","text","time","timestamp","tinyint","uniqueidentifier","varbinary","xml","varchar"],e}async version(e={}){const t=this.version.name,n=new c.default;u.api(`${t}:args:`,e);try{const e=await this.sqlClient.raw("SELECT SERVERPROPERTY('productversion') AS version, SERVERPROPERTY ('productlevel') AS level, SERVERPROPERTY ('edition') AS edition, @@version AS versionD");n.data.object={};const t=e[0],a=t.version.split(".");n.data.object.version=t.version,n.data.object.primary=a[0],n.data.object.major=a[1],n.data.object.minor=a[2]}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async createDatabaseIfNotExists(e){const t=this.createDatabaseIfNotExists.name,n=new c.default;u.api(`${t}:args:`,e);try{const t=JSON.parse(JSON.stringify(this.connectionConfig));delete t.connection.database;const n=(0,r.default)(t);0===(await n.raw(`SELECT name from sys.databases WHERE name = '${e.database}'`)).length&&await n.raw(`CREATE DATABASE ${e.database}`),this.sqlClient=(0,r.default)(this.connectionConfig),await n.destroy(),this.connectionConfig.searchPath&&this.connectionConfig.searchPath[0]&&await this.sqlClient.raw(" IF NOT EXISTS ( SELECT *\n FROM sys.schemas\n WHERE name = ? )\n EXEC('CREATE SCHEMA ??')",[this.connectionConfig.searchPath[0],this.connectionConfig.searchPath[0]])}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async dropDatabase(e){const t=this.dropDatabase.name,n=new c.default;u.api(`${t}:args:`,e);try{const t=JSON.parse(JSON.stringify(this.connectionConfig));delete t.connection.database;const n=(0,r.default)(t);await this.sqlClient.destroy(),this.sqlClient=n,u.debug("dropping database:",e),await n.raw(`ALTER DATABASE ${e.database} SET SINGLE_USER WITH ROLLBACK IMMEDIATE;\n DROP DATABASE ${e.database};`)}catch(e){u.ppe(e,t)}return u.api(`${t}: result`,n),n}async createTableIfNotExists(e){const t=this.createTableIfNotExists.name,n=new c.default;u.api(`${t}:args:`,e);try{await this.sqlClient.schema.withSchema(this.schema).hasTable(e.tn)?u.debug(`${this.getTnPath(e.tn)} tables exists`):(await this.sqlClient.schema.withSchema(this.schema).createTable(e.tn,(function(e){e.increments(),e.string("title").notNullable(),e.string("titleDown").nullable(),e.string("description").nullable(),e.integer("batch").nullable(),e.string("checksum").nullable(),e.integer("status").nullable(),e.dateTime("created"),e.timestamps()})),u.debug("Table created:",`${this.getTnPath(e.tn)}`))}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async hasTable(e){const t=this.hasTable.name,n=new c.default;u.api(`${t}:args:`,e);try{n.data.value=await this.sqlClient.schema.withSchema(this.schema).hasTable(e.tn)}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async hasDatabase(e){const t=this.hasDatabase.name,n=new c.default;u.api(`${t}:args:`,e);try{const t=await this.sqlClient.raw(`SELECT name FROM sys.databases WHERE name = '${e.databaseName}'`);n.data.value=t.length>0}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async databaseList(e={}){const t=this.databaseList.name,n=new c.default;u.api(`${t}:args:`,e);try{n.data.list=await this.sqlClient.raw("SELECT name AS database_name, database_id, create_date FROM sys.databases ORDER BY name")}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async tableList(e={}){const t=this.tableList.name,n=new c.default;u.api(`${t}:args:`,e);try{n.data.list=await this.sqlClient.raw("SELECT schema_name(t.schema_id) AS schema_name,\n t.name AS tn, t.create_date, t.modify_date FROM sys.tables t WHERE schema_name(t.schema_id) = ? ORDER BY schema_name,tn ",[this.schema||"dbo"])}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async schemaList(e={}){const t=this.schemaList.name,n=new c.default;u.api(`${t}:args:`,e);try{n.data.list=await this.sqlClient.raw(`SELECT name AS schema_name FROM master.${this.schema}.sysdatabases WHERE name not in ('master', 'tempdb', 'model', 'msdb');`)}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async columnList(e){const t=this.columnList.name,n=new c.default;u.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const t=await this.sqlClient.raw(`SELECT\n c.table_name AS tn,\n CASE WHEN trg1.trigger_name IS NULL THEN CAST(0 AS BIT) ELSE CAST(1 AS BIT) END AS au,\n c.column_name AS cn,\n c.ordinal_position AS cop,\n pk.constraint_type AS ck,\n CASE WHEN COLUMNPROPERTY(object_id(CONCAT('${this.schema}.', c.TABLE_NAME)), c.COLUMN_NAME, 'IsIdentity') = 1\n THEN\n 1\n ELSE\n 0\n END AS ai,\n c.is_nullable AS nrqd,\n c.data_type AS dt,\n c.column_default AS cdf,c.character_maximum_length AS clen,\n c.character_octet_length,c.numeric_precision AS np,c.numeric_scale AS ns,c.datetime_precision AS dp,c.character_set_name AS csn,\n c.collation_name AS clnn,\n pk.constraint_type AS cst, pk.ordinal_position AS op, pk.constraint_name AS pk_constraint_name,\n fk.parent_table AS rtn, fk.parent_column AS rcn,\n v.table_name AS is_view,\n df.default_constraint_name\n FROM INFORMATION_SCHEMA.COLUMNS c\n left join\n ( SELECT kc.constraint_name, kc.table_name,kc.column_name, kc.ordinal_position,tc.constraint_type\n FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE kc\n INNER JOIN INFORMATION_SCHEMA.TABLE_CONSTRAINTS AS tc\n ON kc.constraint_name = tc.constraint_name AND tc.constraint_type in ('primary key')\n WHERE kc.table_catalog='${e.databaseName}' AND kc.table_schema='${this.schema}'\n ) pk\n ON \n pk.table_name = c.table_name AND pk.column_name=c.column_name\n left join\n ( SELECT\n ccu.table_name AS child_table\n ,ccu.column_name AS child_column\n ,kcu.table_name AS parent_table\n ,kcu.column_name AS parent_column\n ,ccu.constraint_name\n FROM INFORMATION_SCHEMA.CONSTRAINT_COLUMN_USAGE ccu\n INNER JOIN INFORMATION_SCHEMA.REFERENTIAL_CONSTRAINTS rc\n ON ccu.constraint_name = rc.constraint_name\n INNER JOIN INFORMATION_SCHEMA.KEY_COLUMN_USAGE kcu\n ON kcu.constraint_name = rc.unique_constraint_name ) fk\n ON\n fk.child_table = c.table_name AND fk.child_column=c.column_name\n left join INFORMATION_SCHEMA.VIEWS v\n ON v.table_name=c.table_name\n left join (\n SELECT\n default_constraints.name default_constraint_name, all_columns.name name\n FROM\n sys.all_columns\n INNER JOIN\n sys.tables\n ON all_columns.object_id = tables.object_id\n INNER JOIN\n sys.schemas\n ON tables.schema_id = schemas.schema_id\n INNER JOIN\n sys.default_constraints\n ON all_columns.default_object_id = default_constraints.object_id\n WHERE\n schemas.name = '${this.schema}'\n AND tables.name = '${e.tn}') df ON df.name = c.column_name\n\n left join ( SELECT trg.name AS trigger_name,\n tab.name AS [table1]\n FROM sys.triggers trg\n left join sys.objects tab\n ON trg.parent_id = tab.object_id\n WHERE tab.name = '${e.tn}') trg1 ON trg1.trigger_name = CONCAT('xc_trigger_${e.tn}_' , c.column_name)\n\n WHERE c.table_catalog='${e.databaseName}' AND c.table_schema='${this.schema}' AND c.table_name = '${e.tn}'\n ORDER BY c.table_name, c.ordinal_position`);for(let e=0;e<t.length;e++){const n=t[e];n.pk="PRIMARY KEY"===n.ck,n.not_nullable="NO"===n.nrqd,n.rqd="NO"===n.nrqd,n.ai=1===n.ai,n.nrqd="YES"===n.nrqd,n.cno=n.cn,n.dtxp=n.clen||n.np||n.dp,n.dtxs=n.ns,n.au=!!n.au}n.data.list=t}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async indexList(e={}){const t=this.indexList.name,n=new c.default;u.api(`${t}:args:`,e);try{const t=await this.sqlClient.raw(`SELECT t.[name] AS table_view,\n CASE WHEN t.[type] = 'U' THEN 'Table'\n WHEN t.[type] = 'V' THEN 'View'\n END AS [object_type],\n i.index_id,\n CASE WHEN i.is_primary_key = 1 THEN 'Primary key'\n WHEN i.is_unique = 1 THEN 'Unique'\n else 'Not Unique' END AS [type],\n i.[name] AS index_name,\n substring(column_names, 1, len(column_names)-1) AS [columns],\n CASE WHEN i.[type] = 1 THEN 'Clustered index'\n WHEN i.[type] = 2 THEN 'Nonclustered unique index'\n WHEN i.[type] = 3 THEN 'XML index'\n WHEN i.[type] = 4 THEN 'Spatial index'\n WHEN i.[type] = 5 THEN 'Clustered columnstore index'\n WHEN i.[type] = 6 THEN 'Nonclustered columnstore index'\n WHEN i.[type] = 7 THEN 'Nonclustered hash index'\n END AS index_type\n FROM sys.objects t\n INNER JOIN sys.indexes i\n ON t.object_id = i.object_id\n cross apply (SELECT col.[name] + ',' + CAST(ic.key_ordinal AS varchar) + ','\n FROM sys.index_columns ic\n INNER JOIN sys.columns col\n ON ic.object_id = col.object_id\n AND ic.column_id = col.column_id\n WHERE ic.object_id = t.object_id\n AND ic.index_id = i.index_id\n ORDER BY col.column_id\n for xml path ('') ) D (column_names)\n WHERE t.is_ms_shipped <> 1\n AND index_id > 0 AND t.name = '${this.getTnPath(e.tn)}'\n ORDER BY schema_name(t.schema_id) + '.' + t.[name], i.index_id`),a=[];for(let e=0,n=0;e<t.length;++e,++n)if(t[e].key_name=t[e].index_name,t[e].non_unique="Not Unique"===t[e].type?1:0,t[e].non_unique_original="Not Unique"===t[e].type?1:0,t[e].pk="Primary key"===t[e].type,t[e].columns=t[e].columns.split(","),2===t[e].columns.length)a[n]=t[e],a[n].cn=t[e].columns[0],a[n].seq_in_index=1;else{const r=t[e].columns.slice();for(let i=0;i<r.length;i+=2,++n)a[n]=JSON.parse(JSON.stringify(t[e])),a[n].cn=r[i].trim(),a[n].seq_in_index=parseInt(r[i+1]);n--}n.data.list=a}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async constraintList(e={}){const t=this.constraintList.name,n=new c.default;u.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const t=await this.sqlClient.raw(`SELECT t.[name] AS table_view,\n CASE WHEN t.[type] = 'U' THEN 'Table'\n WHEN t.[type] = 'V' THEN 'View'\n END AS [object_type],\n i.index_id,\n CASE WHEN i.is_primary_key = 1 THEN 'Primary key'\n WHEN i.is_unique = 1 THEN 'Unique'\n else 'Not Unique' END AS [type],\n i.[name] AS index_name,\n substring(column_names, 1, len(column_names)-1) AS [columns],\n CASE WHEN i.[type] = 1 THEN 'Clustered index'\n WHEN i.[type] = 2 THEN 'Nonclustered unique index'\n WHEN i.[type] = 3 THEN 'XML index'\n WHEN i.[type] = 4 THEN 'Spatial index'\n WHEN i.[type] = 5 THEN 'Clustered columnstore index'\n WHEN i.[type] = 6 THEN 'Nonclustered columnstore index'\n WHEN i.[type] = 7 THEN 'Nonclustered hash index'\n END AS index_type\n FROM sys.objects t\n INNER JOIN sys.indexes i\n ON t.object_id = i.object_id\n cross apply (SELECT col.[name] + ', ' + CAST(ic.key_ordinal AS varchar) + ', '\n FROM sys.index_columns ic\n INNER JOIN sys.columns col\n ON ic.object_id = col.object_id\n AND ic.column_id = col.column_id\n WHERE ic.object_id = t.object_id\n AND ic.index_id = i.index_id\n ORDER BY col.column_id\n for xml path ('') ) D (column_names)\n WHERE t.is_ms_shipped <> 1\n AND index_id > 0 AND t.name = '${this.getTnPath(e.tn)}'\n ORDER BY schema_name(t.schema_id) + '.' + t.[name], i.index_id`),a=[];for(let e=0,n=0;e<t.length;++e,++n)if(t[e].cstn=t[e].index_name,t[e].cst=t[e].type,t[e].columns=t[e].columns.split(","),2===t[e].columns.length)a[n]=t[e],a[n].cn=t[e].columns[0],a[n].op=1;else{const r=t[e].columns.slice();for(let i=0;i<r.length;i+=2,++n)a[n]=JSON.parse(JSON.stringify(t[e])),a[n].cn=r[i],a[n].op=parseInt(r[i+1]);n--}n.data.list=a}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async relationList(e={}){const t=this.relationList.name,n=new c.default;u.api(`${t}:args:`,e);try{const t=await this.sqlClient.raw(`SELECT fk_tab.name AS tn, '>-' AS rel, pk_tab.name AS rtn,\n fk_cols.constraint_column_id AS no, fk_col.name AS cn, ' = ' AS [join],\n pk_col.name AS rcn, fk.name AS cstn,\n fk.update_referential_action_desc AS ur, fk.delete_referential_action_desc AS dr\n FROM sys.foreign_keys fk\n INNER JOIN sys.tables fk_tab\n ON fk_tab.object_id = fk.parent_object_id\n INNER JOIN sys.tables pk_tab\n ON pk_tab.object_id = fk.referenced_object_id\n INNER JOIN sys.foreign_key_columns fk_cols\n ON fk_cols.constraint_object_id = fk.object_id\n INNER JOIN sys.columns fk_col\n ON fk_col.column_id = fk_cols.parent_column_id\n AND fk_col.object_id = fk_tab.object_id\n INNER JOIN sys.columns pk_col\n ON pk_col.column_id = fk_cols.referenced_column_id\n AND pk_col.object_id = pk_tab.object_id\n WHERE fk_tab.name = '${this.getTnPath(e.tn)}'\n ORDER BY fk_tab.name, pk_tab.name, fk_cols.constraint_column_id`),a={NO_ACTION:"NO ACTION",CASCADE:"CASCADE",RESTRICT:"RESTRICT",SET_NULL:"SET NULL",SET_DEFAULT:"SET DEFAULT"};for(const e of t)e.ur=a[e.ur],e.dr=a[e.dr];n.data.list=t}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async relationListAll(e={}){const t=this.relationList.name,n=new c.default;u.api(`${t}:args:`,e);try{const e=await this.raw("SELECT fk_tab.name AS tn, '>-' AS rel, pk_tab.name AS rtn,\n fk_cols.constraint_column_id AS no, fk_col.name AS cn, ' = ' AS [join],\n pk_col.name AS rcn, fk.name AS cstn,\n fk.update_referential_action_desc AS ur, fk.delete_referential_action_desc AS dr\n FROM sys.foreign_keys fk\n INNER JOIN sys.tables fk_tab\n ON fk_tab.object_id = fk.parent_object_id\n INNER JOIN sys.tables pk_tab\n ON pk_tab.object_id = fk.referenced_object_id\n INNER JOIN sys.foreign_key_columns fk_cols\n ON fk_cols.constraint_object_id = fk.object_id\n INNER JOIN sys.columns fk_col\n ON fk_col.column_id = fk_cols.parent_column_id\n AND fk_col.object_id = fk_tab.object_id\n INNER JOIN sys.columns pk_col\n ON pk_col.column_id = fk_cols.referenced_column_id\n AND pk_col.object_id = pk_tab.object_id\n ORDER BY fk_tab.name, pk_tab.name, fk_cols.constraint_column_id"),t={NO_ACTION:"NO ACTION",CASCADE:"CASCADE",RESTRICT:"RESTRICT",SET_NULL:"SET NULL",SET_DEFAULT:"SET DEFAULT"};for(const n of e)n.ur=t[n.ur],n.dr=t[n.dr];n.data.list=e}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async triggerList(e={}){const t=this.triggerList.name,n=new c.default;u.api(`${t}:args:`,e);try{const t=`SELECT trg.name AS trigger_name,\n tab.name AS [table],\n CASE WHEN is_instead_of_trigger = 1 THEN 'Instead of'\n else 'After' END AS [activation],\n (CASE WHEN objectproperty(trg.object_id, 'ExecIsUpdateTrigger') = 1\n THEN 'Update' else '' end\n + CASE WHEN objectproperty(trg.object_id, 'ExecIsDeleteTrigger') = 1\n THEN 'Delete' else '' end\n + CASE WHEN objectproperty(trg.object_id, 'ExecIsInsertTrigger') = 1\n THEN 'Insert' else '' end\n ) AS [event],\n CASE WHEN trg.parent_class = 1 THEN 'Table trigger'\n WHEN trg.parent_class = 0 THEN 'Database trigger'\n END [class],\n CASE WHEN trg.[type] = 'TA' THEN 'Assembly (CLR) trigger'\n WHEN trg.[type] = 'TR' THEN 'SQL trigger'\n else '' END AS [type],\n CASE WHEN is_disabled = 1 THEN 'Disabled'\n else 'Active' END AS [status],\n object_definition(trg.object_id) AS [definition]\n FROM sys.triggers trg\n left join sys.objects tab\n ON trg.parent_id = tab.object_id\n WHERE tab.name = '${this.getTnPath(e.tn)}'\n ORDER BY trg.name;`,a=await this.sqlClient.raw(t);for(let e=0;e<a.length;e++){const t=a[e];t.statement=t.definition,t.trigger=t.trigger_name,t.event=t.event.toUpperCase(),t.timing=t.activation.toUpperCase()}n.data.list=a}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async functionList(e={}){const t=this.functionList.name,n=new c.default;u.api(`${t}:args:`,e);try{const e=await this.sqlClient.raw("SELECT o.name AS function_name,definition, o.create_date AS created, o.modify_date AS modified,o.*\n FROM sys.sql_modules AS m\n JOIN sys.objects AS o ON m.object_id = o.object_id\n AND type IN ('FN', 'IF', 'TF')");for(let t=0;t<e.length;t++){const n=e[t];"FN"===n.type&&(n.type="FUNCTION")}n.data.list=e}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async procedureList(e={}){const t=this.procedureList.name,n=new c.default;u.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const t=await this.sqlClient.raw(`SELECT SPECIFIC_NAME AS procedure_name, ROUTINE_TYPE AS [type],LAST_ALTERED AS modified, CREATED AS created,ROUTINE_DEFINITION AS definition ,pc.*\n FROM ${e.databaseName}.INFORMATION_SCHEMA.ROUTINES AS pc WHERE routine_type = 'PROCEDURE'`);n.data.list=t}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async viewList(e={}){const t=this.viewList.name,n=new c.default;u.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const t=await this.sqlClient.raw("SELECT v.name AS view_name,v.*,m.* FROM sys.views v INNER JOIN sys.schemas s ON s.schema_id = v.schema_id AND schema_name(v.schema_id) = ?\n INNER JOIN sys.sql_modules AS m ON m.object_id = v.object_id",[this.schema||"dbo"]);n.data.list=t}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async functionRead(e={}){const t=this.functionRead.name,n=new c.default;u.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const t=await this.sqlClient.raw(`SELECT o.name AS function_name,definition AS create_function, o.create_date AS created, o.modify_date AS modified,o.*\n FROM sys.sql_modules AS m\n JOIN sys.objects AS o ON m.object_id = o.object_id\n AND type IN ('FN', 'IF', 'TF') AND o.name = '${e.function_name}'`);for(let e=0;e<t.length;e++){const n=t[e];"FN"===n.type&&(n.type="FUNCTION")}n.data.list=t}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async procedureRead(e={}){const t=this.procedureRead.name,n=new c.default;u.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const t=await this.sqlClient.raw(`SELECT SPECIFIC_NAME AS procedure_name, ROUTINE_TYPE AS [type],LAST_ALTERED AS modified, CREATED AS created,ROUTINE_DEFINITION AS create_procedure ,pc.*\n FROM ${e.databaseName}.INFORMATION_SCHEMA.ROUTINES AS pc WHERE routine_type = 'PROCEDURE' AND SPECIFIC_NAME='${e.procedure_name}'`);n.data.list=t}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async viewRead(e={}){const t=this.viewRead.name,n=new c.default;u.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const t=await this.sqlClient.raw(`SELECT v.name AS view_name,v.*,m.*, m.definition AS view_definition FROM sys.views v INNER JOIN sys.schemas s ON s.schema_id = v.schema_id\n INNER JOIN sys.sql_modules AS m ON m.object_id = v.object_id WHERE v.name = '${e.view_name}'`);n.data.list=t}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async triggerRead(e={}){const t=this.triggerRead.name,n=new c.default;u.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const t=await this.sqlClient.raw(`SELECT [so].[name] AS [trigger_name], [so].[crdate] AS [created],\n USER_NAME([so].[uid]) AS [trigger_owner], USER_NAME([so2].[uid]) AS [ts],\n OBJECT_NAME([so].[parent_obj]) AS [tn],\n OBJECTPROPERTY( [so].[id], 'ExecIsUpdateTrigger') AS [isupdate],\n OBJECTPROPERTY( [so].[id], 'ExecIsDeleteTrigger') AS [isdelete],\n OBJECTPROPERTY( [so].[id], 'ExecIsInsertTrigger') AS [isinsert],\n OBJECTPROPERTY( [so].[id], 'ExecIsAfterTrigger') AS [isafter],\n OBJECTPROPERTY( [so].[id], 'ExecIsInsteadOfTrigger') AS [isinsteadof],\n OBJECTPROPERTY([so].[id], 'ExecIsTriggerDisabled') AS [disabled],df.definition\n FROM sysobjects AS [so]\n INNER JOIN sys.sql_modules AS df ON object_id = so.id\n INNER JOIN sysobjects AS so2 ON so.parent_obj = so2.Id\n WHERE [so].[type] = 'TR' AND so2.name = '${this.getTnPath(e.tn)}' AND [so].[name] = '${e.trigger_name}'`);for(let e=0;e<t.length;e++){const n=t[e];n.table=n.tn,n.statement=n.definition,n.trigger=n.trigger_name,n.event=[],n.timing=[]}n.data.list=t}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async schemaCreate(e={}){const t=this.schemaCreate.name,n=new c.default;u.api(`${t}:args:`,e);try{0===(await this.sqlClient.raw(`SELECT name FROM sys.databases WHERE name = '${e.database_name}'`)).length&&await this.sqlClient.raw(`CREATE DATABASE ${e.database_name}`)}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async schemaDelete(e={}){const t=this.schemaDelete.name,n=new c.default;u.api(`${t}:args:`,e);try{const t=JSON.parse(JSON.stringify(this.connectionConfig));if(t.connection.database===e.database_name){delete t.connection.database;const e=(0,r.default)(t);await this.sqlClient.destroy(),this.sqlClient=e}await this.sqlClient.raw(`ALTER DATABASE ${e.database_name} SET SINGLE_USER WITH ROLLBACK IMMEDIATE;\n DROP DATABASE ${e.database_name};`)}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async triggerDelete(e={}){const t=this.triggerDelete.name,n=new c.default;u.api(`${t}:args:`,e);try{const t=`${this.querySeparator()}DROP TRIGGER IF EXISTS ${e.trigger_name}`;await this.sqlClient.raw(t),n.data.object={upStatement:[{sql:t}],downStatement:[{sql:`${this.querySeparator()}${e.oldStatement}`}]}}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async functionDelete(e={}){const t=this.functionDelete.name,n=new c.default;u.api(`${t}:args:`,e);const a=this.querySeparator()+`DROP FUNCTION IF EXISTS ${e.function_name}`,r=this.querySeparator()+e.create_function;try{await this.sqlClient.raw(a),n.data.object={upStatement:[{sql:a}],downStatement:[{sql:r}]}}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async procedureDelete(e={}){const t=this.procedureDelete.name,n=new c.default;u.api(`${t}:args:`,e);try{await this.sqlClient.raw(`DROP PROCEDURE IF EXISTS ${e.procedure_name}`),n.data.object={upStatement:[{sql:this.querySeparator()+`DROP PROCEDURE IF EXISTS ${e.procedure_name}`}],downStatement:[{sql:this.querySeparator()+`${e.create_procedure}`}]}}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async functionCreate(e={}){const t=this.functionCreate.name,n=new c.default;u.api(`${t}:args:`,e);try{await this.sqlClient.raw(`${e.create_function}`),n.data.object={upStatement:[{sql:this.querySeparator()+`${e.create_function}`}],downStatement:[{sql:this.querySeparator()+`DROP FUNCTION IF EXISTS ${e.function_name}`}]}}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async functionUpdate(e={}){const t=this.functionUpdate.name,n=new c.default;u.api(`${t}:args:`,e);try{await this.sqlClient.raw(`DROP FUNCTION IF EXISTS ${e.function_name}`),await this.sqlClient.raw(`${e.create_function}`),n.data.object={upStatement:[{sql:this.querySeparator()+`DROP FUNCTION IF EXISTS ${e.function_name};${this.querySeparator()}\n${e.create_function}`}],downStatement:[{sql:this.querySeparator()+`DROP FUNCTION IF EXISTS ${e.function_name};${this.querySeparator()} ${e.oldCreateFunction}`}]}}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async procedureCreate(e={}){const t=this.procedureCreate.name,n=new c.default;u.api(`${t}:args:`,e);try{await this.sqlClient.raw(`${e.create_procedure}`),n.data.object={upStatement:[{sql:this.querySeparator()+`${e.create_procedure}`}],downStatement:[{sql:this.querySeparator()+`DROP PROCEDURE ${e.procedure_name}`}]}}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async procedureUpdate(e={}){const t=this.procedureUpdate.name,n=new c.default;u.api(`${t}:args:`,e);try{await this.sqlClient.raw(`DROP PROCEDURE IF EXISTS ${e.procedure_name}`),await this.sqlClient.raw(`${e.create_procedure}`),n.data.object={upStatement:[{sql:this.querySeparator()+`DROP PROCEDURE IF EXISTS ${e.procedure_name};${this.querySeparator()}\n${e.create_procedure}`}],downStatement:[{sql:this.querySeparator()+`DROP PROCEDURE IF EXISTS ${e.procedure_name};${this.querySeparator()}${e.oldCreateProcedure}`}]}}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async triggerCreate(e={}){const t=this.triggerCreate.name,n=new c.default;u.api(`${t}:args:`,e);try{const t=this.genQuery(`CREATE TRIGGER ?? ON ?? \n${e.timing} ${e.event}\n as\n${e.statement}`,[e.trigger_name,this.getTnPath(e.tn)]);await this.sqlClient.raw(t),n.data.object={upStatement:[{sql:this.querySeparator()+t}],downStatement:[{sql:this.querySeparator()+`DROP TRIGGER ${e.trigger_name}`}]}}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async triggerUpdate(e={}){const t=this.triggerUpdate.name,n=new c.default;u.api(`${t}:args:`,e);try{await this.sqlClient.raw(`ALTER TRIGGER ${e.trigger_name} ON ${this.getTnPath(e.tn)} \n${e.timing} ${e.event}\n AS\n${e.statement}`),n.data.object={upStatement:[{sql:this.querySeparator()+`ALTER TRIGGER ${e.trigger_name} ON ${this.getTnPath(e.tn)} \n${e.timing} ${e.event}\n AS\n${e.statement}`}],downStatement:[{sql:this.querySeparator()+`ALTER TRIGGER ${e.trigger_name} ON ${this.getTnPath(e.tn)} \n${e.timing} ${e.event}\n AS\n${e.statement}`}]}}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async viewCreate(e={}){const t=this.viewCreate.name,n=new c.default;u.api(`${t}:args:`,e);try{const t=e.view_definition;await this.sqlClient.raw(t),n.data.object={upStatement:[{sql:this.querySeparator()+t}],downStatement:[{sql:this.querySeparator()+`DROP VIEW ${e.view_name}`}]}}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async viewUpdate(e={}){const t=this.viewUpdate.name,n=new c.default;u.api(`${t}:args:`,e);try{const t=e.view_definition;await this.sqlClient.raw(t),n.data.object={upStatement:[{sql:this.querySeparator()+t}],downStatement:[{sql:this.querySeparator()+`DROP VIEW ${e.view_name} ; ${this.querySeparator()}${e.oldViewDefination};`}]}}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async viewDelete(e={}){const t=this.viewDelete.name,n=new c.default;u.api(`${t}:args:`,e);try{const t=`DROP VIEW ${e.view_name}`;await this.sqlClient.raw(t),n.data.object={upStatement:[{sql:this.querySeparator()+t}],downStatement:[{sql:this.querySeparator()+e.oldViewDefination}]}}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async tableCreate(e){const t=this.tableCreate.name,n=new c.default;u.api(`${t}:args:`,e);try{e.table=e.tn,e.sqlClient=this.sqlClient;const t=this.querySeparator()+this.createTable(e.tn,e);await this.sqlClient.raw(t);const a=this.querySeparator()+this.sqlClient.schema.withSchema(this.schema).dropTable(e.table).toString();this.emit(`Success : ${t}`);const r=await this.afterTableCreate(e);n.data.object={upStatement:[{sql:t},...r.upStatement],downStatement:[...r.downStatement,{sql:a}]}}catch(e){throw u.ppe(e,t),e}return n}async afterTableCreate(e){const t={upStatement:[],downStatement:[]};let n="",a="";const r=e.columns.find((e=>e.pk));if(!r)return t;for(let t=0;t<e.columns.length;t++){const i=e.columns[t];if(i.au){const t=`[${this.schema}].[xc_trigger_${e.table_name}_${i.column_name}]`,s=this.querySeparator()+this.genQuery("CREATE TRIGGER ?? ON ?? AFTER UPDATE\n AS\n BEGIN\n SET NOCOUNT ON;\n UPDATE ?? Set ?? = GetDate() WHERE ?? in (SELECT ?? FROM Inserted)\n END;",[t,this.getTnPath(e.table_name),this.getTnPath(e.table_name),i.column_name,r.column_name,r.column_name]);n+=s,await this.sqlClient.raw(s),a+=this.querySeparator()+`DROP TRIGGER IF EXISTS ${this.schema}.${t};`}}return t.upStatement[0]={sql:n},t.downStatement[0]={sql:a},t}async afterTableUpdate(e){const t={upStatement:[],downStatement:[]};let n="",a="";const r=e.columns.find((e=>e.pk));if(!r)return t;for(let t=0;t<e.columns.length;t++){const i=e.columns[t];if(i.au&&1===i.altered){const t=`xc_trigger_${e.table_name}_${i.column_name}`,s=this.querySeparator()+`CREATE TRIGGER [${this.schema}].[${t}] ON [${this.schema}].[${e.table_name}] AFTER UPDATE\n AS\n BEGIN\n SET NOCOUNT ON;\n UPDATE [${this.schema}].[${e.table_name}] Set [${i.column_name}] = GetDate() WHERE [${r.column_name}] in (SELECT [${r.column_name}] FROM Inserted)\n END;`;n+=s,await this.sqlClient.raw(s),a+=this.querySeparator()+`DROP TRIGGER IF EXISTS [${this.schema}].[${t}];`}}return t.upStatement[0]={sql:n},t.downStatement[0]={sql:a},t}async tableUpdate(e){const t=this.tableUpdate.name,n=new c.default;u.api(`${t}:args:`,e);try{e.table=e.tn;const t=e.originalColumns;e.connectionConfig=this._connectionConfig,e.sqlClient=this.sqlClient;let a="",r="";for(let n=0;n<e.columns.length;++n){const s=(0,i.default)(t,{cn:e.columns[n].cno});4&e.columns[n].altered?(a+=this.alterTableRemoveColumn(e.table,e.columns[n],s,a),r+=this.alterTableAddColumn(e.table,s,e.columns[n],r)):2&e.columns[n].altered||8&e.columns[n].altered?(a+=this.alterTableChangeColumn(e.table,e.columns[n],s,a),r+=this.alterTableChangeColumn(e.table,s,e.columns[n],r)):1&e.columns[n].altered&&(a+=this.alterTableAddColumn(e.table,e.columns[n],s,a),r+=this.alterTableRemoveColumn(e.table,e.columns[n],s,r))}a+=this.alterTablePK(e.table,e.columns,e.originalColumns,a),r+=this.alterTablePK(e.table,e.originalColumns,e.columns,r),await this.sqlClient.raw(a),console.log(a);const s=await this.afterTableUpdate(e);n.data.object={upStatement:[{sql:this.querySeparator()+a},...s.upStatement],downStatement:[...s.downStatement,{sql:this.querySeparator()+r}]}}catch(e){throw u.ppe(e,t),e}return n}async tableDelete(e){const t=this.tableDelete.name,n=new c.default;u.api(`${t}:args:`,e);try{e.sqlClient=this.sqlClient;const t=this.querySeparator()+this.sqlClient.schema.withSchema(this.schema).dropTable(e.tn).toString();let a=this.querySeparator()+this.createTable(e.tn,e);this.emit(`Success : ${t}`);let r=await this.relationList({tn:e.tn});r=r.data.list;for(const e of r)a+=this.querySeparator()+await this.sqlClient.withSchema(this.schema).schema.table(e.tn,(t=>{t=t.foreign(e.cn,null).references(e.rcn).on(this.getTnPath(e.rtn)),e.ur&&(t=t.onUpdate(e.ur)),e.dr&&t.onDelete(e.dr)})).toQuery();let i=await this.indexList(e);i=i.data.list.filter((({type:e,key_name:t})=>"Primary key"!==e&&-1===t.indexOf("fk_")));const s={};for(const{key_name:t,non_unique:n,cn:a}of i)t in s||(s[t]={tn:this.getTnPath(e.tn),indexName:t,non_unique:n,columns:[]}),s[t].columns.push(a);for(const{non_unique:e,tn:t,columns:n,key_name:r}of Object.values(s))a+=this.querySeparator()+this.sqlClient.schema.withSchema(this.schema).table(t,(function(t){e?t.index(n,r):t.unique(n,r)})).toQuery();await this.sqlClient.schema.withSchema(this.schema).dropTable(e.tn),n.data.object={upStatement:[{sql:t}],downStatement:[{sql:a}]}}catch(e){throw u.ppe(e,t),e}return n}async relationCreate(e){const t=this.relationCreate.name,n=new c.default;u.api(`${t}:args:`,e);const a=e.foreignKeyName||null;try{const t=this;await this.sqlClient.schema.table(this.getTnPath(e.childTable),(function(n){n=n.foreign(e.childColumn,a).references(e.parentColumn).on(t.getTnPath(e.parentTable)),e.onUpdate&&(n=n.onUpdate(e.onUpdate)),e.onDelete&&n.onDelete(e.onDelete)}));const r=this.sqlClient.schema.table(this.getTnPath(e.childTable),(function(n){n=n.foreign(e.childColumn,a).references(e.parentColumn).on(t.getTnPath(e.parentTable)),e.onUpdate&&(n=n.onUpdate(e.onUpdate)),e.onDelete&&n.onDelete(e.onDelete)}));await r;const i=this.querySeparator()+r.toQuery();this.emit(`Success : ${i}`);const s=this.querySeparator()+this.sqlClient.schema.table(this.getTnPath(e.childTable),(function(t){t.dropForeign(e.childColumn,a)})).toQuery();n.data.object={upStatement:[{sql:i}],downStatement:[{sql:s}]}}catch(e){throw u.ppe(e,t),e}return n}async relationDelete(e){const t=this.relationDelete.name,n=new c.default;u.api(`${t}:args:`,e);const a=e.foreignKeyName||null;try{const t=this;await this.sqlClient.schema.table(this.getTnPath(e.childTable),(function(t){t.dropForeign(e.childColumn,a)}));const r=this.querySeparator()+this.sqlClient.schema.table(this.getTnPath(e.childTable),(function(t){t.dropForeign(e.childColumn,a)})).toQuery(),i=this.querySeparator()+await this.sqlClient.schema.table(this.getTnPath(e.childTable),(function(n){n.foreign(e.childColumn,a).references(e.parentColumn).on(t.getTnPath(e.parentTable))})).toQuery();n.data.object={upStatement:[{sql:r}],downStatement:[{sql:i}]}}catch(e){throw u.ppe(e,t),e}return n}async tableCreateStatement(e){const t=this.tableCreateStatement.name;let n=new c.default;u.api(`${t}:args:`,e);try{n=await this.columnList(e);const t=this.createTable(e.tn,{tn:e.tn,columns:n.data.list});n.data=t}catch(e){throw u.ppe(e,t),e}return n}async tableInsertStatement(e){const t=this.tableCreateStatement.name,n=new c.default;u.api(`${t}:args:`,e);try{n.data=`INSERT INTO \`${this.getTnPath(e.tn)}\` (`;let t=" VALUES (";const a=await this.columnList(e);if(a.data&&a.data.list)for(let e=0;e<a.data.list.length;++e)e?(n.data+=`, \`${a.data.list[e].cn}\`\n\t`,t+=`, <${a.data.list[e].cn}>\n\t`):(n.data+=`\n${a.data.list[e].cn}\n\t`,t+=`\n<${a.data.list[e].cn}>\n\t`);n.data+=")",t+=");",n.data+=t}catch(e){throw u.ppe(e,t),e}return n}async tableUpdateStatement(e){const t=this.tableUpdateStatement.name,n=new c.default;u.api(`${t}:args:`,e);try{n.data=`UPDATE ${this.getTnPath(e.tn)} \nSET\n`;const t=await this.columnList(e);if(t.data&&t.data.list)for(let e=0;e<t.data.list.length;++e)n.data+=e?`,${t.data.list[e].cn} = <\`${t.data.list[e].cn}\`>\n\t`:`${t.data.list[e].cn} = <\`${t.data.list[e].cn}\`>\n\t`;n.data+=";"}catch(e){throw u.ppe(e,t),e}return n}async tableDeleteStatement(e){const t=this.tableDeleteStatement.name,n=new c.default;u.api(`${t}:args:`,e);try{n.data=`DELETE FROM ${this.getTnPath(e.tn)} WHERE ;`}catch(e){throw u.ppe(e,t),e}return n}async tableTruncateStatement(e){const t=this.tableTruncateStatement.name,n=new c.default;u.api(`${t}:args:`,e);try{n.data=`TRUNCATE TABLE ${this.getTnPath(e.tn)};`}catch(e){throw u.ppe(e,t),e}return n}async tableSelectStatement(e){const t=this.tableSelectStatement.name,n=new c.default;u.api(`${t}:args:`,e);try{n.data="SELECT ";const t=await this.columnList(e);if(t.data&&t.data.list)for(let e=0;e<t.data.list.length;++e)n.data+=e?`, ${t.data.list[e].cn}\n\t`:`${t.data.list[e].cn}\n\t`;n.data+=` FROM ${e.tn};`}catch(e){throw u.ppe(e,t),e}return n}alterTablePK(e,t,n,a,r=!1){const i=[],s=[];let o=0;for(let e=0;e<t.length;++e)t[e].pk&&4!==t[e].altered&&s.push(t[e].cn);for(let e=0;e<n.length;++e)n[e].pk&&i.push(n[e].cn);if(s.length===i.length){for(let e=0;e<s.length;++e)if(i[e]!==s[e]){o=1;break}}else o=s.length-i.length;let c="";return(s.length||i.length)&&o&&(c+=i.length?",DROP PRIMARY KEY":"",s.length&&(c+=r?this.genQuery(", PRIMARY KEY(??)",[s],!0):this.genQuery("ALTER TABLE ?? ADD PRIMARY KEY(??)",[this.getTnPath(e),s],!0))),c}getTnPath(e){return this.schema?`${this.schema}.${e}`:e}alterTableRemoveColumn(e,t,n,a){let r=a?";":"";return t.cdf&&(r+=this.genQuery("\nALTER TABLE ?? DROP CONSTRAINT ??;",[this.getTnPath(e),t.default_constraint_name||`DF_${e}_${t.cn}`],!0)),r+=this.genQuery("\nALTER TABLE ?? DROP COLUMN ??",[this.getTnPath(e),t.cn],!0),r}createTableColumn(e,t,n,a){return this.alterTableColumn(e,t,n,a,0)}alterTableAddColumn(e,t,n,a){return this.alterTableColumn(e,t,n,a,1)}alterTableChangeColumn(e,t,n,a){return this.alterTableColumn(e,t,n,a,2)}createTable(e,t){let n="";for(let a=0;a<t.columns.length;++a)n+=this.createTableColumn(e,t.columns[a],null,n);return n+=this.alterTablePK(e,t.columns,[],n,!0),n=this.genQuery(`CREATE TABLE ?? (${n});`,[this.getTnPath(t.tn)],!0),n}alterTableColumn(e,t,n,a,r=2){let i="";const s=this.sanitiseDefaultValue(t.cdf),o=!0,c=!function(e){switch(e){case"datetimeoffset":case"geography":case"geometry":case"heirarchyid":case"image":case"money":case"real":case"json":case"smalldatetime":case"smallmoney":case"text":case"time":case"timestamp":case"int":case"tinyint":case"bigint":case"bit":case"smallint":case"float":case"uniqueidentifier":case"xml":return!0;default:return!1}}(t.dt)&&t.dtxp?`(${t.dtxp}${t.dtxs?`,${t.dtxs}`:""})`:"";return 0===r?(i=a?",":"",i+=this.genQuery(`?? ${this.sanitiseDataType(t.dt)}`,[t.cn],o),i+=c,i+=t.rqd?" NOT NULL":" NULL",i+=t.ai?" IDENTITY(1,1)":" ",i+=s?this.genQuery(` CONSTRAINT ?? DEFAULT ${s}`,[`DF_${e}_${t.cn}`],o):"",s&&(t.default_constraint_name=`DF_${e}_${t.cn}`)):1===r?(i+=this.genQuery(` ADD ?? ${this.sanitiseDataType(t.dt)}`,[t.cn],o),i+=c,i+=t.rqd?" NOT NULL":" NULL",i+=t.ai?" IDENTITY(1,1)":" ",i+=s?this.genQuery(` CONSTRAINT ?? DEFAULT ${s}`,[`DF_${e}_${t.cn}`],o):" ",i=this.genQuery(`ALTER TABLE ?? ${i};`,[this.getTnPath(e)],o),s&&(t.default_constraint_name=`DF_${e}_${t.cn}`)):(t.cn!==n.cn&&(i+=this.genQuery("\nEXEC sp_rename ?, ?, 'COLUMN';\n",[`${this.getTnPath(e)}.${t.cno}`,`${t.cn}`],o)),t.dtxp===n.dtxp&&t.dtxs===n.dtxs&&t.dt===n.dt&&t.rqd===n.rqd||(i+=this.genQuery(`\nALTER TABLE ?? ALTER COLUMN ?? ${this.sanitiseDataType(t.dt)}${c}`,[this.getTnPath(e),t.cn],o),i+=t.rqd?" NOT NULL;\n":" NULL;\n"),t.cdf===n.cdf&&t.cn===n.cn||(n.default_constraint_name&&(i+=this.genQuery("\nALTER TABLE ?? DROP CONSTRAINT ??;",[this.getTnPath(e),n.default_constraint_name],o)),t.cdf&&(i+=this.genQuery(`\nALTER TABLE ?? ADD CONSTRAINT ?? DEFAULT ${this.sanitiseDefaultValue(t.cdf)} FOR ??;`,[this.getTnPath(e),`DF_${t.tn}_${t.cn}`,t.cn],o),t.default_constraint_name=`DF_${t.tn}_${t.cn}`))),i}get schema(){return this.connectionConfig&&this.connectionConfig.searchPath&&this.connectionConfig.searchPath[0]||"dbo"}async totalRecords(e={}){const t=this.totalRecords.name,n=new c.default;u.api(`${t}:args:`,e);try{const e=await this.sqlClient.raw("SELECT SUM(RecordCount) AS TotalRecords FROM\n (SELECT (SCHEMA_NAME(A.schema_id) + '.' + A.Name) AS TableName, AVG(B.rows) AS RecordCount\n FROM sys.objects A\n INNER JOIN sys.partitions B ON A.object_id = B.object_id\n WHERE A.type = 'U'\n GROUP BY A.schema_id,A.Name) src");n.data=e[0]}catch(e){n.code=-1,n.message=e.message,n.object=e}finally{u.api(`${t} :result: ${n}`)}return n}}t.default=l},8508:function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=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)&&a(t,e,n);return r(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=s(n(6928)),c=n(9023),u=s(n(1832)),l=s(n(943)),d=s(n(9020)),p=s(n(133)),f=s(n(4688)),m=s(n(2745)),h=n(6331),b=s(n(8872)),g=s(n(2911)),v=s(n(757)),y=s(n(3815)),_=s(n(6685)),E=s(n(8761)),x=s(n(6888)),T=i(n(9302)),O=new g.default("MysqlClient"),$=new v.default;class A extends _.default{constructor(e){super(e),this.queries=E.default,this._version={}}emit(e){O.api(e),$.evt.emit("UI",{status:0,data:`SQL : ${e}`})}emitW(e){O.warn(e),$.evt.emit("UI",{status:1,data:`SQL : ${e}`})}emitE(e){O.error(e),$.evt.emit("UI",{status:-1,data:`SQL : ${e}`})}async schemaCreateWithCredentials(e){const t=this.schemaCreateWithCredentials.name,n=new y.default;O.api(`${t}:args:`,e);try{e.schema||(e.schema=`nc${(0,h.nanoid)(8)}`),e.user||(e.user=`nc${(0,h.nanoid)(8)}`),e.password||(e.password=(0,h.nanoid)(16));const t=await this.sqlClient.raw("create database if not exists ??",[e.schema]);await this.sqlClient.raw("CREATE USER ?@'localhost' IDENTIFIED WITH mysql_native_password BY ?",[e.user,e.password]),await this.sqlClient.raw("GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, INDEX, DROP, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES PRIVILEGES ON ??.* TO ?@'localhost'",[e.schema,e.user]),await this.sqlClient.raw("FLUSH PRIVILEGES"),O.debug("Create database if not exists",t),n.object=e}catch(e){n.code=-1,n.message=e.message,n.object=e}return n}async testConnection(e={}){const t=this.testConnection.name,n=new y.default;O.api(`${t}:args:`,e);try{await this.sqlClient.raw("SELECT 1+1 as data")}catch(e){n.code=-1,n.message=e.message,n.object=e}finally{n.code?this.emitE(`TestConnection result: ${n.message}`):this.emit(`TestConnection result: ${n.code}`)}return n}getKnexDataTypes(){const e=new y.default;return e.data.list=["int","tinyint","smallint","mediumint","bigint","float","decimal","double","real","bit","boolean","serial","date","datetime","timestamp","time","year","char","varchar","nchar","text","tinytext","mediumtext","longtext","binary","varbinary","blob","tinyblob","mediumblob","longblob","enum","set","time","geometry","point","linestring","polygon","multipoint","multilinestring","multipolygon","json"],e}async version(e){const t=this.version.name,n=new y.default;O.api(`${t}:args:`,e);try{n.data.object={};const e=await this.sqlClient.raw("select version() as version");O.debug(e[0][0]),n.data.object.version=e[0][0].version;const t=e[0][0].version.split(".");t.length&&3===t.length?(n.data.object.primary=t[0],n.data.object.major=t[1],n.data.object.minor=t[2],n.data.object.key=t[0]+t[1]):(n.code=-1,n.message=`Invalid version : ${e[0][0].version}`)}catch(e){O.ppe(e),n.code=-1,n.message=e.message}finally{O.api(`${t} :result: %o`,n)}return n}async getDataTypes(e={}){const t=this.getDataTypes.name,n=new y.default;O.api(`${t}:args:`,e);try{await this.version(),this._version.key in this.types?n.data.list=this.types[this._version.key]:n.data.list=this.types.default}catch(e){O.ppe(e),n.code=-1,n.message=e.message}finally{O.api(`${t} :result: ${n}`)}return n}async createDatabaseIfNotExists(e={}){const t=this.createDatabaseIfNotExists.name,n=new y.default;O.api(`${t}:args:`,e,this.connectionConfig);try{const n=JSON.parse(JSON.stringify(this.connectionConfig));delete n.connection.database;const a=(0,u.default)(n),r=await a.raw(this.queries[t].default.sql,[e.database]);O.debug("Create database if not exists",r),await a.destroy()}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n),n}async dropDatabase(e={}){const t=this.dropDatabase.name,n=new y.default;O.api(`${t}:args:`,e);try{O.api("dropping database:",e),await this.sqlClient.raw(this.queries[t].default.sql,[e.database])}catch(e){e&&O.ppe(e.message,t)}return O.api(`${t}: result`,n),n}async createTableIfNotExists(e={}){const t=this.createTableIfNotExists.name,n=new y.default;O.api(`${t}:args:`,e);try{await this.sqlClient.raw(this.sqlClient.schema.hasTable(e.tn).toQuery())?O.debug(`${e.tn} tables exists`):(await this.sqlClient.raw(this.sqlClient.schema.createTable(e.tn,(function(e){e.increments(),e.string("title").notNullable(),e.string("titleDown").nullable(),e.string("description").nullable(),e.integer("batch").nullable(),e.string("checksum").nullable(),e.integer("status").nullable(),e.dateTime("created"),e.timestamps()})).toQuery()),O.debug("Table created:",`${e.tn}`))}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n),n}async hasTable(e){const t=this.hasTable.name,n=new y.default;O.api(`${t}:args:`,e);try{const t=await this.sqlClient.raw(this.sqlClient.schema.hasTable(e.tn).toQuery());n.data.value=t}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n),n}async hasDatabase(e){const t=this.hasDatabase.name,n=new y.default;O.api(`${t}:args:`,e);try{const a=await this.sqlClient.raw(this.queries[t].default.sql,[`${e.databaseName}`]);n.data.value=a.length>0}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n),n}async databaseList(e={}){const t=this.databaseList.name,n=new y.default;O.api(`${t}:args:`,e);try{const e=await this.sqlClient.raw("SHOW databases");if(O.debug(e.length),2===e.length){for(let t=0;t<e[0].length;++t)e[0][t].database_name=e[0][t].Database;n.data.list=e[0]}else O.debug("Unknown response for databaseList:",n.data.list.length),n.data.list=[]}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n.data.list.length),n}async tableList(e){const t=this.tableList.name,n=new y.default;O.api(`${t}:args:`,e);try{const e=await this.sqlClient.raw("SHOW FULL TABLES WHERE TABLE_TYPE NOT LIKE 'VIEW'");let t;if(2===e.length){for(let n=0;n<e[0].length;++n)t||(t=Object.keys(e[0][n]).find((e=>/^Tables_in_/i.test(e)))),e[0][n].tn=e[0][n][t];n.data.list=e[0]}else O.debug("Unknown response for databaseList:",n.data.list.length),n.data.list=[];this.emitTele({mysql:1,table_count:n.data.list.length,api_count:10*n.data.list.length})}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n.data.list),n}async schemaList(e){const t=this.schemaList.name,n=new y.default;O.api(`${t}:args:`,e);try{const e=await this.sqlClient.raw("select schema_name \n from \n information_schema.schemata \n where \n schema_name not in ('information_schema','performance_schema','sys','mysql') \n order by schema_name;");2===e.length?n.data.list=e[0].map((e=>(0,d.default)(e,((e,t)=>t.toLowerCase())))):(O.debug("Unknown response for schemaList:",n.data.list.length),n.data.list=[])}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n.data.list),n}async columnList(e={}){var t;const n=this.columnList.name,a=new y.default;O.api(`${n}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const r=await this.sqlClient.raw(await this._getQuery({func:n}),[e.databaseName,e.tn,e.databaseName,e.tn]);if(2===r.length){const e=[];r[0].length||(a.code=-1,a.message="Table not found or Invalid table name");for(let n=0;n<r[0].length;++n){const a={};if(r[0][n]=(0,d.default)(r[0][n],((e,t)=>t.toLowerCase())),"57"!==this._version.key&&"80"!==this._version.key||(a.dp=r[0][n].dp,a.generated_expression=r[0][n].generated_expression),a.tn=r[0][n].tn,a.cn=r[0][n].cn,a.cno=r[0][n].cn,a.dt=r[0][n].dt,a.np=r[0][n].np,a.ns=r[0][n].ns,a.clen=r[0][n].clen,a.cop=r[0][n].cop,a.pk="PRI"===r[0][n].ck,a.nrqd="NO"!==r[0][n].nrqd,a.rqd=!a.nrqd,r[0][n].ct=r[0][n].ct||"",a.un=-1!==r[0][n].ct.indexOf("unsigned"),a.ct=r[0][n].ct||"",r[0][n].ext=r[0][n].ext||"",a.ai=-1!==r[0][n].ext.indexOf("auto_increment"),r[0][n].cst=r[0][n].cst||" ",a.unique=-1!==r[0][n].cst.indexOf("UNIQUE"),"timestamp"===a.dt||"datetime"===a.dt)if(r[0][n].cdf&&r[0][n].ext){const e=r[0][n].ext;e.includes("DEFAULT_GENERATED")?a.cdf=r[0][n].cdf+e.substring(e.lastIndexOf("DEFAULT_GENERATED")+17):a.cdf=`${r[0][n].cdf} ${e}`}else a.cdf=r[0][n].cdf;else a.cdf=r[0][n].cdf;(null===(t=this._version)||void 0===t?void 0:t.version)&&this._version.version.includes("Maria")&&"NULL"===a.cdf&&(a.cdf=null),a.cc=r[0][n].cc,a.csn=r[0][n].csn,a.dtx="specificType","int"===a.dt||"tinyint"===a.dt||"mediumint"===a.dt||"bigint"===a.dt||"enum"===a.dt||"set"===a.dt?(a.dtxp=a.ct.substring(a.ct.lastIndexOf("(")+1,a.ct.lastIndexOf(")")),a.dtxs=r[0][n].ns):(a.dtxp=r[0][n].clen||r[0][n].np||r[0][n].dp,a.dtxs=r[0][n].ns),a.au=!1,e.push(a)}a.data.list=e}else O.debug("Unknown response for databaseList:",r),a.data.list=[]}catch(e){throw O.ppe(e,n),e}return O.api(`${n}: result list length = `,a.data.list.length),a}async indexList(e={}){const t=this.indexList.name,n=new y.default;O.api(`${t}:args:`,e);try{const a=await this.sqlClient.raw(this.queries[t].default.sql,[e.tn]);if(2===a.length){const e=[];for(let t=0;t<a[0].length;++t){let n=a[0][t];n=(0,d.default)(n,(function(e,t){return t.toLowerCase()})),n.cn=n.column_name,delete n.column_name,n.tn=n.table,delete n.table,n.non_unique_original=n.non_unique,e.push(n)}n.data.list=e}else O.debug("Unknown response for databaseList:",n.data.list.length),n.data.list=[];O.api(`${t}: result %O`,n.data.list)}catch(e){throw O.ppe(e,t),e}return n}async constraintList(e={}){const t=this.constraintList.name,n=new y.default;O.api(`${t}:args:`,e);try{const a=await this.sqlClient.raw(await this._getQuery({func:t}),[this.connectionConfig.connection.database,e.tn]);if(2===a.length){const e=[];for(let t=0;t<a[0].length;++t){let n=a[0][t];n=(0,d.default)(n,(function(e,t){return t.toLowerCase()})),e.push(n)}n.data.list=e}else O.debug("Unknown response for databaseList:",n.data.list.length),n.data.list=[]}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n),n}async relationList(e={}){const t=this.relationList.name,n=new y.default;O.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const a=await this.sqlClient.raw(this.queries[t].default.sql,[e.databaseName,e.tn]);if(2===a.length){const e=[];for(let t=0;t<a[0].length;++t){let n=a[0][t];n=(0,d.default)(n,(function(e,t){return t.toLowerCase()})),e.push(n)}n.data.list=e}else O.debug("Unknown response for databaseList:",a),n.data.list=[]}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n),n}async relationListAll(e={}){const t=this.relationListAll.name,n=new y.default;O.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const a=await this.sqlClient.raw(this.queries[t].default.sql,{databaseName:e.databaseName});if(2===a.length){const e=[];for(let t=0;t<a[0].length;++t){let n=a[0][t];n=(0,d.default)(n,(function(e,t){return t.toLowerCase()})),e.push(n)}n.data.list=e,this.emitTele({mysql:1,relation_count:n.data.list.length,api_count:10*n.data.list.length})}else O.debug("Unknown response for databaseList:",a),n.data.list=[]}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n),n}async triggerList(e={}){const t=this.triggerList.name,n=new y.default;O.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const a=await this.sqlClient.raw(this.queries[t].default.sql,[`%${e.tn}%`]);if(2===a.length){const e=[];for(let t=0;t<a[0].length;++t){let n=a[0][t];n=(0,d.default)(n,(function(e,t){return t.toLowerCase()})),n.trigger_name=n.trigger,e.push(n)}n.data.list=e}else O.debug("Unknown response for databaseList:",a),n.data.list=[]}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n),n}async functionList(e={}){const t=this.functionList.name,n=new y.default;O.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const a=await this.sqlClient.raw(this.queries[t].default.sql,[e.databaseName]);if(2===a.length){const e=[];for(let t=0;t<a[0].length;++t){let n=a[0][t];n=(0,d.default)(n,(function(e,t){return t.toLowerCase()})),n.function_name=n.name,e.push(n)}n.data.list=e}else O.debug("Unknown response for databaseList:",n.data.list.length),n.data.list=[]}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n),n}async procedureList(e={}){const t=this.procedureList.name,n=new y.default;O.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const a=await this.sqlClient.raw(this.queries[t].default.sql,[e.databaseName]);if(2===a.length){const e=[];for(let t=0;t<a[0].length;++t){let n=a[0][t];n=(0,d.default)(n,(function(e,t){return t.toLowerCase()})),n.procedure_name=n.name,e.push(n)}n.data.list=e}else O.debug("Unknown response for databaseList:",a),n.data.list=[]}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n),n}async viewList(e={}){const t=this.viewList.name,n=new y.default;O.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const a=await this.sqlClient.raw(this.queries[t].default.sql,[]);let r;if(2===a.length){const e=[];for(let t=0;t<a[0].length;++t){r||(r=Object.keys(a[0][t]).find((e=>/^Tables_in_/i.test(e))));const n=a[0][t];n.view_name=n[r],e.push(n)}n.data.list=e}else O.debug("Unknown response for databaseList:",a),n.data.list=[]}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n.data.list.length),n}async functionRead(e={}){const t=this.functionRead.name,n=new y.default;O.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const a=await this.sqlClient.raw(this.queries[t].default.sql,[e.function_name]);if(2===a.length){const e=[];for(let t=0;t<a[0].length;++t){let n=a[0][t];n=(0,d.default)(n,(function(e,t){return t.toLowerCase()})),n.create_function=n["create function"],e.push(n)}n.data.list=e}else O.debug("Unknown response for databaseList:",a),n.data.list=[]}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n),n}async procedureRead(e={}){const t=this.procedureRead.name,n=new y.default;O.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const a=await this.sqlClient.raw(this.queries[t].default.sql,[e.procedure_name]);if(2===a.length){const e=[];for(let t=0;t<a[0].length;++t){let n=a[0][t];n=(0,d.default)(n,(function(e,t){return t.toLowerCase()})),n.create_procedure=n["create procedure"],e.push(n)}n.data.list=e}else O.debug("Unknown response for databaseList:",a),n.data.list=[]}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n),n}async viewRead(e={}){const t=this.viewRead.name,n=new y.default;O.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const a=await this.sqlClient.raw(this.queries[t].default.sql,[e.databaseName,e.view_name]);if(2===a.length){const e=[];for(let t=0;t<a[0].length;++t){let n=a[0][t];n=(0,d.default)(n,(function(e,t){return t.toLowerCase()})),e.push(n)}n.data.list=e}else O.debug("Unknown response for databaseList:",a),n.data.list=[]}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n),n}async triggerRead(e={}){const t=this.triggerRead.name,n=new y.default;O.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const a=await this.sqlClient.raw(this.queries[t].default.sql,[e.databaseName]);if(2===a.length){const t=[];for(let n=0;n<a[0].length;++n){const r=a[0][n];r.view_name=r[`Tables_in_${e.databaseName}`],t.push(r)}n.data.list=t}else O.debug("Unknown response for databaseList:",a),n.data.list=[]}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n),n}async schemaCreate(e={}){const t=this.triggerList.name;return O.api(`${t}:args:`,e),await this.sqlClient.raw(this.queries[t].default.sql,[e.database_name])}async schemaDelete(e={}){const t=this.schemaDelete.name;return O.api(`${t}:args:`,e),await this.sqlClient.raw(this.queries[t].default.sql,[e.database_name])}async triggerCreate(e={}){const t=this.triggerCreate.name,n=new y.default;O.api(`${t}:args:`,e);try{const t=this.querySeparator()+`CREATE TRIGGER \`${e.trigger_name}\` \n${e.timing} ${e.event}\nON ${e.tn} FOR EACH ROW\n${e.statement}`;await this.sqlClient.raw(t),n.data.object={upStatement:[{sql:t}],downStatement:[{sql:this.querySeparator()+`DROP TRIGGER ${e.trigger_name}`}]}}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n),n}async triggerUpdate(e={}){const t=this.triggerUpdate.name,n=new y.default;O.api(`${t}:args:`,e);try{await this.sqlClient.raw("DROP TRIGGER ??",[e.trigger_name]),await this.sqlClient.raw(`CREATE TRIGGER \`${e.trigger_name}\` \n${e.timing} ${e.event}\nON ${e.tn} FOR EACH ROW\n${e.statement}`),n.data.object={upStatement:[{sql:`${this.querySeparator()}DROP TRIGGER ${e.trigger_name};\n${this.querySeparator()}CREATE TRIGGER \`${e.trigger_name}\` \n${e.timing} ${e.event}\nON ${e.tn} FOR EACH ROW\n${e.statement}`}],downStatement:[{sql:`${this.querySeparator()}CREATE TRIGGER \`${e.trigger_name}\` \n${e.timing} ${e.event}\nON ${e.tn} FOR EACH ROW\n${e.oldStatement}`}]}}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n),n}async triggerDelete(e={}){const t=this.triggerDelete.name,n=new y.default;O.api(`${t}:args:`,e);try{const t=`${this.querySeparator()}DROP TRIGGER ${e.trigger_name}`;await this.sqlClient.raw(t),n.data.object={upStatement:[{sql:t}],downStatement:[{sql:`${this.querySeparator()}CREATE TRIGGER \`${e.trigger_name}\` \n${e.timing} ${e.event}\nON ${e.tn} FOR EACH ROW\n${e.oldStatement}`}]}}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n),n}async viewCreate(e={}){const t=this.viewCreate.name,n=new y.default;O.api(`${t}:args:`,e);try{const t=this.querySeparator()+`CREATE VIEW ${e.view_name} AS \n${e.view_definition}`;await this.sqlClient.raw(t),n.data.object={upStatement:[{sql:t}],downStatement:[{sql:this.querySeparator()+`DROP VIEW ${e.view_name}`}]}}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n),n}async viewUpdate(e={}){const t=this.viewUpdate.name,n=new y.default;O.api(`${t}:args:`,e);try{const t=this.querySeparator()+`CREATE OR REPLACE VIEW ${e.view_name} AS \n${e.view_definition}`;await this.sqlClient.raw(t),n.data.object={upStatement:[{sql:t}],downStatement:[{sql:this.querySeparator()+`CREATE VIEW ${e.view_name} AS \n${e.oldViewDefination}`}]}}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n),n}async viewDelete(e={}){const t=this.viewDelete.name,n=new y.default;O.api(`${t}:args:`,e);try{const t=this.querySeparator()+`DROP VIEW ${e.view_name}`;await this.sqlClient.raw(t),n.data.object={upStatement:[{sql:t}],downStatement:[{sql:this.querySeparator()+`CREATE VIEW ${e.view_name} AS \n${e.oldViewDefination}`}]}}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n),n}async functionCreate(e={}){const t=this.functionCreate.name,n=new y.default;O.api(`${t}:args:`,e);try{await this.sqlClient.raw(`${e.create_function}`),n.data.object={upStatement:[{sql:this.querySeparator()+`${e.create_function}`}],downStatement:[{sql:this.querySeparator()+`DROP FUNCTION ${e.function_name}`}]}}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n),n}async functionUpdate(e={}){const t=this.functionUpdate.name,n=new y.default;O.api(`${t}:args:`,e);try{await this.sqlClient.raw(`DROP FUNCTION IF EXISTS ${e.function_name}`),await this.sqlClient.raw(`${e.create_function}`),n.data.object={upStatement:[{sql:this.querySeparator()+`DROP FUNCTION IF EXISTS ${e.function_name};${this.querySeparator()}\n${e.create_function}`}],downStatement:[{sql:this.querySeparator()+`DROP FUNCTION IF EXISTS ${e.function_name};${this.querySeparator()}${e.oldCreateFunction}`}]}}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n),n}async functionDelete(e={}){const t=this.functionDelete.name,n=new y.default;O.api(`${t}:args:`,e);try{await this.sqlClient.raw(`DROP FUNCTION IF EXISTS ${e.function_name}`),n.data.object={upStatement:[{sql:this.querySeparator()+`DROP FUNCTION IF EXISTS ${e.function_name}`}],downStatement:[{sql:this.querySeparator()+`${e.create_function}`}]}}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n),n}async procedureCreate(e={}){const t=this.procedureCreate.name,n=new y.default;O.api(`${t}:args:`,e);try{await this.sqlClient.raw(`${e.create_procedure}`),n.data.object={upStatement:[{sql:this.querySeparator()+`${e.create_procedure}`}],downStatement:[{sql:this.querySeparator()+`DROP PROCEDURE ${e.procedure_name}`}]}}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n),n}async procedureUpdate(e={}){const t=this.procedureUpdate.name,n=new y.default;O.api(`${t}:args:`,e);try{await this.sqlClient.raw("DROP PROCEDURE IF EXISTS ??",[e.procedure_name]),await this.sqlClient.raw(`${e.create_procedure}`),n.data.object={upStatement:[{sql:this.querySeparator()+`DROP PROCEDURE IF EXISTS ${e.procedure_name}; ${this.querySeparator()} \n${e.create_procedure}`}],downStatement:[{sql:this.querySeparator()+`DROP PROCEDURE IF EXISTS ${e.procedure_name}; ${this.querySeparator()} ${e.oldCreateProcedure}`}]}}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n),n}async procedureDelete(e={}){const t=this.procedureDelete.name,n=new y.default;O.api(`${t}:args:`,e);try{await this.sqlClient.raw("DROP PROCEDURE IF EXISTS ??",[e.procedure_name]),n.data.object={upStatement:[{sql:this.querySeparator()+`DROP PROCEDURE IF EXISTS ${e.procedure_name}`}],downStatement:[{sql:this.querySeparator()+`${e.create_procedure}`}]}}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n),n}async _getQuery(e){try{if((0,l.default)(this._version)){const t=await this.version();this._version=t.data.object,O.debug(`Version was empty for ${e.func}: population version for database as`,this._version)}return this._version.key in this.queries[e.func]?this.queries[e.func][this._version.key].sql:this.queries[e.func].default.sql}catch(e){throw O.ppe(e,this._getQuery.name),e}}mapFieldWithSuggestedFakerFn(e){return e.map((e=>{let t=null,n=1/0;const a=T.mapDataType(e.dt);return x.default.forEach(((r,i)=>{if("string"===a||a===r.type)if(i){const a=b.default.get(e.cn.toLowerCase(),r.name.toLowerCase());n>a&&(n=a,t=r)}else t=r,n=b.default.get(e.cn.toLowerCase(),r.name.toLowerCase())})),n<3?Object.assign(Object.assign({},e),{fakerFunction:t.value}):e}))}async seedInit(e){const t=this.seedInit.name,n=new y.default;O.api(`${t}:args:`,e),console.log("in mysql SeedInit");try{await(0,m.default)(e.seedsFolder);const t=o.default.join(e.seedsFolder,"__xseeds.json");await(0,c.promisify)(f.default.writeFile)(t,{rows:{value:8,description:"Maximum number of records"},foreign_key_rows:{value:2,description:"1:n - Total number foreign key per relation"}},{spaces:2});let a=await this.tableList();a=a.data.list;for(const t of a){let n=await this.columnList({tn:t.tn});n=n.data.list;for(let e=0;e<n.length;++e)n[e].fakerFunction=null;n=this.mapFieldWithSuggestedFakerFn(n);let a=await this.relationList({tn:t.tn});a=a.data.list;for(let e=0;e<a.length;e++){const t=a[e];for(let e=0;e<n.length;e++){const a=n[e];a.cn===t.cn&&(n[e]=Object.assign(Object.assign({},a),t))}}await this.fakerColumnsCreate({seedsFolder:e.seedsFolder,tn:t.tn,fakerColumns:n})}n.data=await(0,c.promisify)(f.default.readFile)(t)}catch(e){throw O.ppe(e,t),e}return n}async tableCreate(e){const t=this.tableCreate.name,n=new y.default;O.api(`${t}:args:`,e);try{e.table=e.tn,e.sqlClient=this.sqlClient;const t=this.querySeparator()+this.createTable(e);await this.sqlClient.raw(t);const a=this.querySeparator()+this.sqlClient.schema.dropTable(e.table).toString();this.emit(`Success : ${t}`),n.data.object={upStatement:[{sql:t}],downStatement:[{sql:a}]}}catch(e){throw O.ppe(e,t),e}return n}async tableUpdate(e){const t=this.tableUpdate.name,n=new y.default;O.api(`${t}:args:`,e);try{e.table=e.tn;const t=e.originalColumns;e.connectionConfig=this._connectionConfig,e.sqlClient=this.sqlClient;let a="",r="";for(let n=0;n<e.columns.length;++n){const i=(0,p.default)(t,{cn:e.columns[n].cno});4&e.columns[n].altered?(a+=this.alterTableRemoveColumn(e.columns[n],i,a),r+=this.alterTableAddColumn(i,e.columns[n],r)):2&e.columns[n].altered||8&e.columns[n].altered?(a+=this.alterTableChangeColumn(e.columns[n],i,a),r+=this.alterTableChangeColumn(i,e.columns[n],r)):1&e.columns[n].altered&&(a+=this.alterTableAddColumn(e.columns[n],i,a),r+=this.alterTableRemoveColumn(e.columns[n],i,r))}a+=this.alterTablePK(e.columns,e.originalColumns,a),r+=this.alterTablePK(e.originalColumns,e.columns,r),a&&(a=this.genQuery(`ALTER TABLE ?? ${this.sanitize(a)};`,[e.tn]),r=this.genQuery(`ALTER TABLE ?? ${this.sanitize(r)};`,[e.tn])),await this.sqlClient.raw(a),console.log(a),n.data.object={upStatement:[{sql:this.querySeparator()+a}],downStatement:[{sql:this.querySeparator()+r}]}}catch(e){throw O.ppe(e,t),e}return n}async tableDelete(e){const t=this.tableDelete.name,n=new y.default;O.api(`${t}:args:`,e);try{e.sqlClient=this.sqlClient;const t=this.querySeparator()+this.sqlClient.schema.dropTable(e.table_name).toString();let a=await this.sqlClient.raw("show create table ??",[e.table_name]);a=Object.entries(a[0][0]).find((([e])=>"create table"===e.toLowerCase()))[1];const r=this.querySeparator()+a;this.emit(`Success : ${t}`),await this.sqlClient.raw(this.sqlClient.schema.dropTable(e.table_name).toQuery()),n.data.object={upStatement:[{sql:t}],downStatement:[{sql:r}]}}catch(e){throw O.ppe(e,t),e}return n}async tableCreateStatement(e){const t=this.tableCreateStatement.name,n=new y.default;O.api(`${t}:args:`,e);try{n.data=";";const t=await this.sqlClient.raw("show create table ??;",[e.tn]);2===t.length&&(n.data=t[0][0]["Create Table"])}catch(e){throw O.ppe(e,t),e}return n}async tableInsertStatement(e){const t=this.tableCreateStatement.name,n=new y.default;O.api(`${t}:args:`,e);try{let t=" VALUES (";n.data=`INSERT INTO \`${e.tn}\` (`;const a=await this.columnList(e);if(a.data&&a.data.list)for(let e=0;e<a.data.list.length;++e)e?(n.data+=`, \`${a.data.list[e].cn}\`\n\t`,t+=`, <${a.data.list[e].cn}>\n\t`):(n.data+=`\n\`${a.data.list[e].cn}\`\n\t`,t+=`\n<${a.data.list[e].cn}>\n\t`);n.data+=")",t+=");",n.data+=t}catch(e){throw O.ppe(e,t),e}return n}async tableUpdateStatement(e){const t=this.tableUpdateStatement.name,n=new y.default;O.api(`${t}:args:`,e);try{n.data=`UPDATE \`${e.tn}\` \nSET\n`;const t=await this.columnList(e);if(t.data&&t.data.list)for(let e=0;e<t.data.list.length;++e)n.data+=e?`,\`${t.data.list[e].cn}\` = <\`${t.data.list[e].cn}\`>\n\t`:`\`${t.data.list[e].cn}\` = <\`${t.data.list[e].cn}\`>\n\t`;n.data+=";"}catch(e){throw O.ppe(e,t),e}return n}async tableDeleteStatement(e){const t=this.tableDeleteStatement.name,n=new y.default;O.api(`${t}:args:`,e);try{n.data=`DELETE FROM ${e.tn};`}catch(e){throw O.ppe(e,t),e}return n}async tableTruncateStatement(e){const t=this.tableTruncateStatement.name,n=new y.default;O.api(`${t}:args:`,e);try{n.data=`TRUNCATE TABLE ${e.tn};`}catch(e){throw O.ppe(e,t),e}return n}async tableSelectStatement(e){const t=this.tableSelectStatement.name,n=new y.default;O.api(`${t}:args:`,e);try{n.data="SELECT ";const t=await this.columnList(e);if(t.data&&t.data.list)for(let e=0;e<t.data.list.length;++e)n.data+=e?`, ${t.data.list[e].cn}\n\t`:`${t.data.list[e].cn}\n\t`;n.data+=` FROM ${e.tn};`}catch(e){throw O.ppe(e,t),e}return n}async sequenceList(e={}){const t=this.sequenceList.name,n=new y.default;O.api(`${t}:args:`,e);try{n.data.list=[]}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n),n}alterTableRemoveColumn(e,t,n){let a=n?",":"";return a+=this.genQuery(" DROP COLUMN ??",[e.cn]),a}createTableColumn(e,t,n){return this.alterTableColumn(e,t,n,0)}alterTableAddColumn(e,t,n){return this.alterTableColumn(e,t,n,1)}alterTableChangeColumn(e,t,n){return this.alterTableColumn(e,t,n,2)}createTable(e){let t="";for(let n=0;n<e.columns.length;++n)t+=this.createTableColumn(e.columns[n],null,t);return t+=this.alterTablePK(e.columns,[],t,!0),t=this.genQuery(`CREATE TABLE ?? (${this.sanitize(t)});`,[e.tn]),t}alterTableColumn(e,t,n,a=2){let r=n?",":"";const i=parseInt(e.dtxs)?parseInt(e.dtxs):null;r+=2===a?this.genQuery(`\n CHANGE\n COLUMN ?? ?? ${this.sanitiseDataType(e.dt)}`,[t.cn,e.cn]):1===a?this.genQuery(`\n ADD\n COLUMN ?? ${this.sanitiseDataType(e.dt)}`,[e.cn]):this.genQuery(` ?? ${this.sanitiseDataType(e.dt)}`,[e.cn]),e.dt.endsWith("text")||(r+=e.dtxp&&" "!==e.dtxp?`(${e.dtxp}`:"",r+=i?`,${i}`:"",r+=e.dtxp&&" "!==e.dtxp?")":""),r+=e.un?" UNSIGNED":"",r+=e.rqd?" NOT NULL":" NULL",r+=e.ai?" auto_increment":"",r+=e.unique?" UNIQUE":"";const s=this.sanitiseDefaultValue(e.cdf);return r+=s?`\n DEFAULT ${s}`:"",r}alterTablePK(e,t,n,a=!1){const r=[],i=[];let s=0;for(let t=0;t<e.length;++t)e[t].pk&&4!==e[t].altered&&i.push(e[t].cn);for(let e=0;e<t.length;++e)t[e].pk&&r.push(t[e].cn);if(i.length===r.length){for(let e=0;e<i.length;++e)if(r[e]!==i[e]){s=1;break}}else s=i.length-r.length;let o="";return(i.length||r.length)&&s&&(o+=r.length?",DROP PRIMARY KEY":"",i.length&&(o+=a?this.genQuery(", PRIMARY\n KEY(??)",[i]):this.genQuery(", ADD\n PRIMARY\n KEY(??)",[i]))),o}async totalRecords(e={}){const t=this.totalRecords.name,n=new y.default;O.api(`${t}:args:`,e);try{const e=await this.sqlClient.raw("SELECT SUM(table_rows) as TotalRecords FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = ?;",[this.connectionConfig.connection.database]);n.data=e[0][0]}catch(e){n.code=-1,n.message=e.message,n.object=e}finally{O.api(`${t} :result: ${n}`)}return n}}t.default=A},6667:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=a(n(9020)),i=a(n(2911)),s=a(n(3815)),o=a(n(8508)),c=new i.default("TidbClient");class u extends o.default{async constraintList(e={}){const t=this.constraintList.name,n=new s.default;c.api(`${t}:args:`,e);try{const t=await this.sqlClient.raw("select *, TABLE_NAME as tn from INFORMATION_SCHEMA.KEY_COLUMN_USAGE where CONSTRAINT_SCHEMA=? and TABLE_NAME=?",[this.connectionConfig.connection.database,e.tn]);if(2===t.length){const e=[];for(let n=0;n<t[0].length;++n){let a=t[0][n];a=(0,r.default)(a,(function(e,t){return t.toLowerCase()})),e.push(a)}n.data.list=e}else c.debug("Unknown response for databaseList:",n.data.list.length),n.data.list=[]}catch(e){throw c.ppe(e,t),e}return c.api(`${t}: result`,n),n}}t.default=u},3874:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=a(n(9020)),i=a(n(2911)),s=a(n(3815)),o=a(n(8508)),c=new i.default("VitessClient");class u extends o.default{constructor(e){super(e)}async relationList(e={}){const t=new s.default;return t.data.list=[],t}async relationListAll(e={}){const t=new s.default;return t.data.list=[],t}async databaseList(e={}){const t=this.databaseList.name,n=new s.default;c.api(`${t}:args:`,e);try{const e=await this.sqlClient.raw("SHOW databases");if(c.debug(e.length),2===e.length){for(let t=0;t<e[0].length;++t)e[0][t].database_name=e[0][t].Databases;n.data.list=e[0]}else c.debug("Unknown response for databaseList:",n.data.list.length),n.data.list=[]}catch(e){throw c.ppe(e,t),e}return c.api(`${t}: result`,n.data.list.length),n}async tableList(e={}){const t=this.tableList.name,n=new s.default;c.api(`${t}:args:`,e);try{const e=await this.sqlClient.raw("SHOW TABLES"),t=`Tables_in_vt_${this.connectionConfig.connection.database}`;if(2===e.length){for(let n=0;n<e[0].length;++n)e[0][n].tn=e[0][n][t];n.data.list=e[0]}else c.debug("Unknown response for databaseList:",n.data.list.length),n.data.list=[]}catch(e){throw c.ppe(e,t),e}return c.api(`${t}: result`,n.data.list.length),n}async columnList(e={}){const t=this.columnList.name,n=new s.default;c.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const t=await this.sqlClient.raw("select *, table_name as tn from information_schema.columns where table_name = ? ORDER by ordinal_position",[e.tn]);if(2===t.length){const a=[];for(let n=0;n<t[0].length;++n){const i={};t[0][n]=(0,r.default)(t[0][n],((e,t)=>t.toLowerCase())),i.tn=e.tn,i.cn=t[0][n].cn,i.dt=t[0][n].dt,i.np=t[0][n].np,i.ns=t[0][n].ns,i.clen=t[0][n].clen,i.cop=t[0][n].op,i.dtx=this.getKnexDataType(i.dt),i.pk="PRI"===t[0][n].ck,i.nrqd="NO"!==t[0][n].nrqd,i.not_nullable=!i.nrqd,t[0][n].ct=t[0][n].ct||"",i.un=-1!==t[0][n].ct.indexOf("unsigned"),i.ct=t[0][n].ct||"",t[0][n].ext=t[0][n].ext||"",i.ai=-1!==t[0][n].ext.indexOf("auto_increment"),t[0][n].cst=t[0][n].cst||" ",i.unique=-1!==t[0][n].cst.indexOf("UNIQUE"),i.cdf=t[0][n].cdf,i.cc=t[0][n].cc,i.csn=t[0][n].csn,a.push(i)}n.data.list=a}else c.debug("Unknown response for databaseList:",t),n.data.list=[]}catch(e){throw c.ppe(e,t),e}return c.api(`${t}: result list length = `,n.data.list.length),n}async constraintList(e={}){const t=this.constraintList.name,n=new s.default;c.api(`${t}:args:`,e);try{const t=await this.sqlClient.raw("select *, TABLE_NAME as tn from INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = ? ORDER by ordinal_position;",[e.tn]);if(2===t.length){const e=[];for(let n=0;n<t[0].length;++n){let a=t[0][n];a=(0,r.default)(a,(function(e,t){return t.toLowerCase()})),e.push(a)}n.data.list=e}else c.debug("Unknown response for databaseList:",n.data.list.length),n.data.list=[]}catch(e){throw c.ppe(e,t),e}return c.api(`${t}: result`,n),n}}t.default=u},6888:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{name:"zipCode",group:"address",value:"address.zipCode",type:"string"},{name:"city",group:"address",value:"address.city",type:"string"},{name:"cityPrefix",group:"address",value:"address.cityPrefix",type:"string"},{name:"citySuffix",group:"address",value:"address.citySuffix",type:"string"},{name:"streetName",group:"address",value:"address.streetName",type:"string"},{name:"streetAddress",group:"address",value:"address.streetAddress",type:"string"},{name:"streetSuffix",group:"address",value:"address.streetSuffix",type:"string"},{name:"streetPrefix",group:"address",value:"address.streetPrefix",type:"string"},{name:"secondaryAddress",group:"address",value:"address.secondaryAddress",type:"string"},{name:"county",group:"address",value:"address.county",type:"string"},{name:"country",group:"address",value:"address.country",type:"string"},{name:"countryCode",group:"address",value:"address.countryCode",type:"string"},{name:"state",group:"address",value:"address.state",type:"string"},{name:"stateAbbr",group:"address",value:"address.stateAbbr",type:"string"},{name:"latitude",group:"address",value:"address.latitude",type:"number"},{name:"longitude",group:"address",value:"address.longitude",type:"number"},{name:"color",group:"commerce",value:"commerce.color",type:"string"},{name:"department",group:"commerce",value:"commerce.department",type:"string"},{name:"productName",group:"commerce",value:"commerce.productName",type:"string"},{name:"price",group:"commerce",value:"commerce.price",type:"number"},{name:"productAdjective",group:"commerce",value:"commerce.productAdjective",type:"string"},{name:"productMaterial",group:"commerce",value:"commerce.productMaterial",type:"string"},{name:"product",group:"commerce",value:"commerce.product",type:"string"},{name:"suffixes",group:"company",value:"company.suffixes",type:"string"},{name:"companyName",group:"company",value:"company.companyName",type:"string"},{name:"companySuffix",group:"company",value:"company.companySuffix",type:"string"},{name:"catchPhrase",group:"company",value:"company.catchPhrase",type:"string"},{name:"bs",group:"company",value:"company.bs",type:"string"},{name:"catchPhraseAdjective",group:"company",value:"company.catchPhraseAdjective",type:"string"},{name:"catchPhraseDescriptor",group:"company",value:"company.catchPhraseDescriptor",type:"string"},{name:"catchPhraseNoun",group:"company",value:"company.catchPhraseNoun",type:"string"},{name:"bsAdjective",group:"company",value:"company.bsAdjective",type:"string"},{name:"bsBuzz",group:"company",value:"company.bsBuzz",type:"string"},{name:"bsNoun",group:"company",value:"company.bsNoun",type:"string"},{name:"column",group:"database",value:"database.column",type:"string"},{name:"type",group:"database",value:"database.type",type:"string"},{name:"collation",group:"database",value:"database.collation",type:"string"},{name:"engine",group:"database",value:"database.engine",type:"string"},{name:"past",group:"date",value:"date.past",type:"date"},{name:"future",group:"date",value:"date.future",type:"date"},{name:"recent",group:"date",value:"date.recent",type:"date"},{name:"soon",group:"date",value:"date.soon",type:"date"},{name:"month",group:"date",value:"date.month",type:"string"},{name:"weekday",group:"date",value:"date.weekday",type:"string"},{name:"account",group:"finance",value:"finance.account",type:"string"},{name:"accountName",group:"finance",value:"finance.accountName",type:"string"},{name:"mask",group:"finance",value:"finance.mask",type:"string"},{name:"amount",group:"finance",value:"finance.amount",type:"number"},{name:"transactionType",group:"finance",value:"finance.transactionType",type:"string"},{name:"currencyCode",group:"finance",value:"finance.currencyCode",type:"string"},{name:"currencyName",group:"finance",value:"finance.currencyName",type:"string"},{name:"currencySymbol",group:"finance",value:"finance.currencySymbol",type:"string"},{name:"bitcoinAddress",group:"finance",value:"finance.bitcoinAddress",type:"string"},{name:"ethereumAddress",group:"finance",value:"finance.ethereumAddress",type:"string"},{name:"iban",group:"finance",value:"finance.iban",type:"string"},{name:"bic",group:"finance",value:"finance.bic",type:"string"},{name:"abbreviation",group:"hacker",value:"hacker.abbreviation",type:"string"},{name:"adjective",group:"hacker",value:"hacker.adjective",type:"string"},{name:"noun",group:"hacker",value:"hacker.noun",type:"string"},{name:"verb",group:"hacker",value:"hacker.verb",type:"string"},{name:"ingverb",group:"hacker",value:"hacker.ingverb",type:"string"},{name:"phrase",group:"hacker",value:"hacker.phrase",type:"string"},{name:"createCard",group:"helpers",value:"helpers.createCard",type:"string"},{name:"contextualCard",group:"helpers",value:"helpers.contextualCard",type:"string"},{name:"userCard",group:"helpers",value:"helpers.userCard",type:"string"},{name:"createTransaction",group:"helpers",value:"helpers.createTransaction",type:"string"},{name:"image",group:"image",value:"image.image",type:"string"},{name:"avatar",group:"image",value:"image.avatar",type:"string"},{name:"imageUrl",group:"image",value:"image.imageUrl",type:"string"},{name:"abstract",group:"image",value:"image.abstract",type:"string"},{name:"animals",group:"image",value:"image.animals",type:"string"},{name:"business",group:"image",value:"image.business",type:"string"},{name:"cats",group:"image",value:"image.cats",type:"string"},{name:"city",group:"image",value:"image.city",type:"string"},{name:"food",group:"image",value:"image.food",type:"string"},{name:"nightlife",group:"image",value:"image.nightlife",type:"string"},{name:"fashion",group:"image",value:"image.fashion",type:"string"},{name:"people",group:"image",value:"image.people",type:"string"},{name:"nature",group:"image",value:"image.nature",type:"string"},{name:"sports",group:"image",value:"image.sports",type:"string"},{name:"technics",group:"image",value:"image.technics",type:"string"},{name:"transport",group:"image",value:"image.transport",type:"string"},{name:"dataUri",group:"image",value:"image.dataUri",type:"string"},{name:"avatar",group:"internet",value:"internet.avatar",type:"string"},{name:"email",group:"internet",value:"internet.email",type:"string"},{name:"exampleEmail",group:"internet",value:"internet.exampleEmail",type:"string"},{name:"userName",group:"internet",value:"internet.userName",type:"string"},{name:"protocol",group:"internet",value:"internet.protocol",type:"string"},{name:"url",group:"internet",value:"internet.url",type:"string"},{name:"domainName",group:"internet",value:"internet.domainName",type:"string"},{name:"domainSuffix",group:"internet",value:"internet.domainSuffix",type:"string"},{name:"domainWord",group:"internet",value:"internet.domainWord",type:"string"},{name:"ip",group:"internet",value:"internet.ip",type:"string"},{name:"ipv6",group:"internet",value:"internet.ipv6",type:"string"},{name:"userAgent",group:"internet",value:"internet.userAgent",type:"string"},{name:"color",group:"internet",value:"internet.color",type:"string"},{name:"mac",group:"internet",value:"internet.mac",type:"string"},{name:"password",group:"internet",value:"internet.password",type:"string"},{name:"word",group:"lorem",value:"lorem.word",type:"string"},{name:"words",group:"lorem",value:"lorem.words",type:"string"},{name:"sentence",group:"lorem",value:"lorem.sentence",type:"string"},{name:"slug",group:"lorem",value:"lorem.slug",type:"string"},{name:"sentences",group:"lorem",value:"lorem.sentences",type:"string"},{name:"paragraph",group:"lorem",value:"lorem.paragraph",type:"string"},{name:"paragraphs",group:"lorem",value:"lorem.paragraphs",type:"string"},{name:"text",group:"lorem",value:"lorem.text",type:"string"},{name:"lines",group:"lorem",value:"lorem.lines",type:"string"},{name:"firstName",group:"name",value:"name.firstName",type:"string"},{name:"lastName",group:"name",value:"name.lastName",type:"string"},{name:"findName",group:"name",value:"name.findName",type:"string"},{name:"jobTitle",group:"name",value:"name.jobTitle",type:"string"},{name:"prefix",group:"name",value:"name.prefix",type:"string"},{name:"suffix",group:"name",value:"name.suffix",type:"string"},{name:"title",group:"name",value:"name.title",type:"string"},{name:"jobDescriptor",group:"name",value:"name.jobDescriptor",type:"string"},{name:"jobArea",group:"name",value:"name.jobArea",type:"string"},{name:"jobType",group:"name",value:"name.jobType",type:"string"},{name:"phoneNumber",group:"phone",value:"phone.phoneNumber",type:"string"},{name:"phoneNumberFormat",group:"phone",value:"phone.phoneNumberFormat",type:"string"},{name:"phoneFormats",group:"phone",value:"phone.phoneFormats",type:"string"},{name:"number",group:"random",value:"random.number",type:"number"},{name:"float",group:"random",value:"random.float",type:"number"},{name:"uuid",group:"random",value:"random.uuid",type:"string"},{name:"boolean",group:"random",value:"random.boolean",type:"boolean"},{name:"word",group:"random",value:"random.word",type:"string"},{name:"words",group:"random",value:"random.words",type:"string"},{name:"image",group:"random",value:"random.image",type:"string"},{name:"locale",group:"random",value:"random.locale",type:"string"},{name:"alphaNumeric",group:"random",value:"random.alphaNumeric",type:"string"},{name:"hexaDecimal",group:"random",value:"random.hexaDecimal",type:"string"},{name:"fileName",group:"system",value:"system.fileName",type:"string"},{name:"commonFileName",group:"system",value:"system.commonFileName",type:"string"},{name:"mimeType",group:"system",value:"system.mimeType",type:"string"},{name:"commonFileType",group:"system",value:"system.commonFileType",type:"string"},{name:"commonFileExt",group:"system",value:"system.commonFileExt",type:"string"},{name:"fileType",group:"system",value:"system.fileType",type:"string"},{name:"fileExt",group:"system",value:"system.fileExt",type:"string"},{name:"directoryPath",group:"system",value:"system.directoryPath",type:"string"},{name:"filePath",group:"system",value:"system.filePath",type:"string"},{name:"semver",group:"system",value:"system.semver",type:"string"}]},9302:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapDataType=void 0,t.mapDataType=function(e){switch(e){case"int":case"tinyint":case"smallint":case"mediumint":case"bigint":case"bit":case"boolean":case"float":case"decimal":case"double":case"serial":return"number";case"date":case"datetime":case"timestamp":case"time":case"year":return"date";case"char":case"varchar":case"nchar":case"text":case"tinytext":case"mediumtext":case"longtext":case"enum":case"set":case"json":return"string"}return"string"}},8761:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n="SELECT\nc.table_name as tn,\nc.column_name as cn,\nc.data_type as dt,\nc.column_type as ct,\nc.character_maximum_length as clen,\nc.numeric_precision as np,\nc.numeric_scale as ns,\n-- c.datetime_precision as dp,\nc.ordinal_position as cop,\nc.column_key as ck,\nc.extra as ext, -- gives ai\nc.column_default as cdf,\nc.is_nullable as nrqd,\nc.privileges as priv,\nc.column_comment as cc,\n-- c.generation_expression,\nc.character_set_name as csn,\nc.collation_name as clnn,\nct.CONSTRAINT_TYPE as cst\nFROM\ninformation_schema.COLUMNS as c\nLeft join(\n select\n tc.CONSTRAINT_NAME,\n tc.TABLE_NAME,\n tc.CONSTRAINT_SCHEMA,\n tc.CONSTRAINT_TYPE,\n s.COLUMN_NAME\n from\n information_schema.TABLE_CONSTRAINTS as tc\n LEFT JOIN information_schema.STATISTICS as s ON\n s.table_schema = tc.CONSTRAINT_SCHEMA\n and s.TABLE_NAME = tc.TABLE_NAME\n and s.INDEX_NAME = tc.CONSTRAINT_NAME\n where\n tc.CONSTRAINT_SCHEMA = ?\n and s.TABLE_NAME = ?\n) ct on\nc.TABLE_SCHEMA = ct.CONSTRAINT_SCHEMA\nAND c.TABLE_NAME = ct.TABLE_NAME\nAND c.COLUMN_NAME = ct.COLUMN_NAME\nWHERE\nc.table_schema = ?\nand c.TABLE_NAME = ?\nORDER BY\nc.table_name,\nc.ordinal_position";t.default={columnList:{55:{sql:n,paramsHints:["databaseName","tn","databaseName","tn"]},56:{sql:n,paramsHints:["databaseName","tn","databaseName","tn"]},default:{sql:"SELECT\n c.table_name as tn,\n c.column_name as cn,\n c.data_type as dt,\n c.column_type as ct,\n c.character_maximum_length as clen,\n c.numeric_precision as np,\n c.numeric_scale as ns,\n c.datetime_precision as dp,\n c.ordinal_position as cop,\n c.column_key as ck,\n c.extra as ext, -- gives ai\n c.column_default as cdf,\n c.is_nullable as nrqd,\n c.privileges as priv,\n c.column_comment as cc,\n-- c.generation_expression,\n c.character_set_name as csn,\n c.collation_name as clnn,\n ct.CONSTRAINT_TYPE as cst\n FROM\n information_schema.COLUMNS as c\n Left join(\n select\n tc.CONSTRAINT_NAME,\n tc.TABLE_NAME,\n tc.CONSTRAINT_SCHEMA,\n tc.CONSTRAINT_TYPE,\n s.COLUMN_NAME\n from\n information_schema.TABLE_CONSTRAINTS as tc\n LEFT JOIN information_schema.STATISTICS as s ON\n s.table_schema = tc.CONSTRAINT_SCHEMA\n and s.TABLE_NAME = tc.TABLE_NAME\n and s.INDEX_NAME = tc.CONSTRAINT_NAME\n and tc.CONSTRAINT_TYPE != 'UNIQUE'\n and tc.CONSTRAINT_TYPE != 'FOREIGN KEY'\n where\n tc.CONSTRAINT_SCHEMA = ?\n and s.TABLE_NAME = ?\n ) ct on\n c.TABLE_SCHEMA = ct.CONSTRAINT_SCHEMA\n AND c.TABLE_NAME = ct.TABLE_NAME\n AND c.COLUMN_NAME = ct.COLUMN_NAME\n WHERE\n c.table_schema = ?\n and c.TABLE_NAME = ?\n ORDER BY\n c.table_name,\n c.ordinal_position",paramsHints:["databaseName","tn","databaseName","tn"]}},constraintList:{default:{sql:"SELECT\n k.constraint_name as cstn,\n k.column_name as cn,\n k.ordinal_position as op,\n k.position_in_unique_constraint as puc,\n t.constraint_type as cst\nFROM information_schema.table_constraints t\nLEFT JOIN information_schema.key_column_usage k\nUSING(constraint_name,table_schema,table_name)\nWHERE\nt.table_schema=?\nAND t.table_name=?;",paramsHints:["database","tn"]}},createDatabaseIfNotExists:{default:{sql:"create database if not exists ?? CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci",paramsHints:["database"]}},createTableIfNotExists:{default:{sql:"",paramsHints:[]}},dropDatabase:{default:{sql:"drop database ??",paramsHints:["database"]}},databaseList:{default:{sql:"SHOW databases",paramsHints:[]}},hasDatabase:{default:{sql:"SHOW DATABASES LIKE ?",paramsHints:["databaseName"]}},indexList:{default:{sql:"show index from ??",paramsHints:["tn"]}},functionList:{default:{sql:"show function status where db=?",paramsHints:["databaseName"]}},functionRead:{default:{sql:"SHOW CREATE FUNCTION ??",paramsHints:["function_name"]}},functionDelete:{default:{sql:"DROP FUNCTION IF EXISTS ??",paramsHints:["function_name"]}},procedureList:{default:{sql:"show procedure status where db=?",paramsHints:["databaseName"]}},procedureRead:{default:{sql:"show create procedure ??",paramsHints:["procedure_name"]}},procedureDelete:{default:{sql:"DROP PROCEDURE IF EXISTS ??",paramsHints:["procedure_name"]}},relationList:{default:{sql:"SELECT\n kcu.CONSTRAINT_NAME as cstn,\n kcu.TABLE_NAME as tn,\n kcu.COLUMN_NAME as cn,\n kcu.POSITION_IN_UNIQUE_CONSTRAINT as puc,\n kcu.REFERENCED_TABLE_NAME as rtn,\n kcu.REFERENCED_COLUMN_NAME as rcn,\n rc.MATCH_OPTION as mo,\n rc.UPDATE_RULE as ur,\n rc.DELETE_RULE as dr,\n kcu.table_schema as ts\n FROM\n information_schema.KEY_COLUMN_USAGE AS kcu\n INNER JOIN information_schema.REFERENTIAL_CONSTRAINTS AS rc ON\n kcu.CONSTRAINT_NAME = rc.CONSTRAINT_NAME\n Group by\n kcu.CONSTRAINT_NAME,\n kcu.TABLE_NAME,\n kcu.COLUMN_NAME,\n kcu.POSITION_IN_UNIQUE_CONSTRAINT,\n kcu.REFERENCED_TABLE_NAME,\n kcu.REFERENCED_COLUMN_NAME,\n rc.MATCH_OPTION,\n rc.UPDATE_RULE,\n rc.DELETE_RULE ,\n kcu.table_schema\n Having\n kcu.table_schema = ?\n AND kcu.referenced_column_name IS NOT NULL\n AND kcu.table_name =?",paramsHints:["database","tn"]}},relationListAll:{default:{sql:"SELECT\n kcu.constraint_name AS cstn,\n kcu.table_name AS tn,\n kcu.column_name AS cn,\n kcu.position_in_unique_constraint AS puc,\n kcu.referenced_table_name AS rtn,\n kcu.referenced_column_name AS rcn,\n rc.match_option AS mo,\n rc.update_rule AS ur,\n rc.delete_rule AS dr,\n kcu.table_schema AS ts\n FROM\n (\n SELECT\n table_schema,\n constraint_name,\n table_name,\n column_name,\n position_in_unique_constraint,\n referenced_table_name,\n referenced_column_name\n FROM\n information_schema.KEY_COLUMN_USAGE\n WHERE\n table_schema = :databaseName) AS kcu\n INNER JOIN\n (\n SELECT\n constraint_schema,\n match_option,\n update_rule,\n delete_rule,\n constraint_name\n FROM\n information_schema.REFERENTIAL_CONSTRAINTS\n WHERE\n constraint_schema = :databaseName) AS rc ON\n kcu.constraint_name = rc.constraint_name\n AND kcu.table_schema = rc.constraint_schema\n INNER JOIN\n (\n SELECT\n table_schema,\n table_name,\n column_name\n FROM\n information_schema.COLUMNS\n WHERE\n table_schema = :databaseName\n AND table_name IN (\n SELECT\n table_name\n FROM\n information_schema.TABLES\n WHERE\n table_schema = :databaseName\n AND Lower(table_type) = 'base table')) AS col ON\n col.table_schema = kcu.table_schema\n AND col.table_name = kcu.table_name\n AND kcu.referenced_column_name IS NOT NULL\n GROUP BY\n cstn ,\n tn ,\n rcn ,\n cn ,\n puc ,\n rtn ,\n cn,\n mo ,\n ur ,\n dr ,\n ts",paramsHints:["database"]}},schemaCreate:{default:{sql:"create database ??",paramsHints:["database_name"]}},schemaDelete:{default:{sql:"drop database ??",paramsHints:["database_name"]}},triggerList:{default:{sql:"SHOW TRIGGERS like ?",paramsHints:["tn"]}},tableList:{default:{sql:"",paramsHints:[]}},testConnection:{default:{sql:"",paramsHints:[]}},triggerRead:{default:{sql:"SHOW FULL TABLES IN ?? WHERE TABLE_TYPE LIKE 'VIEW';",paramsHints:["databaseName"]}},triggerDelete:{default:{sql:"DROP TRIGGER ??",paramsHints:["trigger_name"]}},version:{default:{sql:"",paramsHints:[]}},viewRead:{default:{sql:"select * FROM INFORMATION_SCHEMA.VIEWS WHERE\n TABLE_SCHEMA = ? AND TABLE_NAME = ?",paramsHints:["databaseName","view_name"]}},viewList:{default:{sql:"SHOW FULL TABLES WHERE TABLE_TYPE LIKE 'VIEW'",paramsHints:[]}}}},5914:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=a(n(1832)),i=a(n(9020)),s=a(n(133)),o=a(n(6685)),c=a(n(2911)),u=a(n(3815)),l=new c.default("OracleClient");class d extends o.default{constructor(e){super(e)}getKnexDataTypes(){const e=new u.default;return e.data.list=["bfile","binary rowid","binary double","binary_float","blob","canoical","cfile","char","clob","content pointer","contigous array","date","decimal","double precision","float","integer","interval day to second","interval year to month","lob pointer","long","long raw","named collection","named object","nchar","nclob","number","nvarchar2","octet","oid","pointer","raw","real","ref","ref cursor","rowid","signed binary integer","smallint","table","time","time with tz","timestamp","timestamp with local time zone","timestamp with local tz","timestamp with timezone","timestamp with tz","unsigned binary integer","urowid","varchar","varchar2","varray","varying array"],e}async testConnection(e={}){const t=this.testConnection.name,n=new u.default;l.api(`${t}:args:`,e);try{await this.raw('SELECT 1+1 AS "data" FROM DUAL')}catch(e){l.ppe(e),n.code=-1,n.message=e.message}finally{l.api(`${t}:result:`,n)}return n}async version(e={}){const t=this.version.name,n=new u.default;l.api(`${t}:args:`,e);try{const e=await this.raw("SELECT * FROM PRODUCT_COMPONENT_VERSION WHERE product LIKE 'Oracle%'");n.data.object={};let t=e[0];t=(0,i.default)(t,((e,t)=>t.toLowerCase()));const a=t.version.split(".");n.data.object.version=t.version,n.data.object.primary=a[0],n.data.object.major=a[1],n.data.object.minor=a[2]}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async createDatabaseIfNotExists(e={}){const t=this.createDatabaseIfNotExists.name,n=new u.default;l.api(`${t}:args:`,e);try{const t=JSON.parse(JSON.stringify(this.connectionConfig));t.connection.database="xe",t.connection.user="system",t.connection.password="oracle";const n=(0,r.default)(t);l.debug("checking if db exists"),0===(await n.raw(`select USERNAME from SYS.ALL_USERS WHERE USERNAME = '${this.connectionConfig.connection.user}'`)).length&&(l.debug("creating database:",e),await n.raw(`CREATE USER ${this.connectionConfig.connection.user} IDENTIFIED BY ${this.connectionConfig.connection.user}`),await n.raw(`GRANT ALL PRIVILEGES TO ${this.connectionConfig.connection.user}`),await n.raw(`GRANT EXECUTE ON DBMS_AQ TO ${this.connectionConfig.connection.user}`),await n.raw(`GRANT EXECUTE ON DBMS_AQADM TO ${this.connectionConfig.connection.user}`)),await n.destroy(),this.sqlClient=(0,r.default)(this.connectionConfig)}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async dropDatabase(e){const t=this.dropDatabase.name,n=new u.default;l.api(`${t}:args:`,e);try{const e=JSON.parse(JSON.stringify(this.connectionConfig));e.connection.database="xe",e.connection.user="system",e.connection.password="oracle";const t=(0,r.default)(e);await this.sqlClient.destroy(),l.debug("dropping database:",this.connectionConfig.connection.user);const n=await t.raw(`select SID,SERIAL# from v$session where username = '${this.connectionConfig.connection.user}'\n `);l.debug(`Active Sessions for ${this.connectionConfig.connection.user}: `,n);for(let e=0;e<n.length;e++){const a=n[e];await t.raw(`alter system kill session '${a.SID},${a["SERIAL#"]}' immediate`)}await t.raw(`drop user ${this.connectionConfig.connection.user} cascade`),l.debug("dropped database:",this.connectionConfig.connection.user)}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async createTableIfNotExists(e){const t=this.createTableIfNotExists.name,n=new u.default;l.api(`${t}:args:`,e);try{(await this.hasTable({tn:e.tn})).data.value?l.debug(`${e.tn} tables exists`):(await this.sqlClient.schema.createTable(e.tn,(function(e){e.string("title").notNullable(),e.string("titleDown").nullable(),e.string("description").nullable(),e.integer("batch").nullable(),e.string("checksum").nullable(),e.integer("status").nullable(),e.dateTime("created"),e.timestamps()})),l.debug("Table created:",`${e.tn}`))}catch(e){if(l.ppe(e,t),!(JSON.stringify(e.message).indexOf("exact fetch returns more than requested number of rows")>-1))throw e;l.warn("safely ignored Exception:exact fetch returns more than requested number of rows knex create table issue")}return l.api(`${t}: result`,n),n}async hasTable(e={}){const t=this.hasTable.name,n=new u.default;l.api(`${t}:args:`,e);try{const t=await this.raw(`select TABLE_NAME as tn FROM all_tables WHERE OWNER = '${this.connectionConfig.connection.user}' AND tn = '${e.tn}'`);n.data.value=t.length>0}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async hasDatabase(e={}){const t=this.hasDatabase.name,n=new u.default;l.api(`${t}:args:`,e);try{const t=await this.raw(`select USERNAME from SYS.ALL_USERS WHERE USERNAME = '${e.databaseName}'`);n.data.value=t.length>0}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async databaseList(e={}){const t=this.databaseList.name,n=new u.default;l.api(`${t}:args:`,e);try{const e=await this.raw('select USERNAME as "database_name" from SYS.ALL_USERS order by USERNAME');n.data.list=e}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async tableList(e={}){const t=this.tableList.name,n=new u.default;l.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.user;const t=await this.raw(`select table_name FROM all_tables WHERE owner='${e.databaseName}'`);for(let e=0;e<t.length;e++){let n=t[e];n=(0,i.default)(n,((e,t)=>t.toLowerCase())),t[e]=n}n.data.list=t}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async schemaList(e={}){const t=this.schemaList.name,n=new u.default;l.api(`${t}:args:`,e);try{const e=await this.raw("SELECT username AS schema_name\n FROM dba_users u\n WHERE ACCOUNT_STATUS = 'OPEN' AND EXISTS (\n SELECT 1\n FROM dba_objects o\n WHERE o.owner = u.username )\n AND default_tablespace not in ('SYSTEM','SYSAUX') ");for(let t=0;t<e.length;t++){let n=e[t];n=(0,i.default)(n,((e,t)=>t.toLowerCase())),e[t]=n}n.data.list=e}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async columnList(e={}){const t=this.columnList.name,n=new u.default;l.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.user;const t=await this.raw(`SELECT\n seq.sequence_name,\n CASE\n WHEN seq.sequence_name IS NOT NULL\n AND p.constraint_type = 'P' THEN 1\n ELSE 0\n END as ai,\n c.table_name as tn,\n c.column_name AS cn,\n c.column_id AS cop,\n p.constraint_type AS ck,\n c.NULLABLE AS nrqd,\n c.DATA_TYPE AS dt,\n c.DATA_LENGTH,\n c.DATA_PRECISION,\n c.DEFAULT_LENGTH,\n c.DATA_DEFAULT AS cdf,\n c.character_set_name as csn,\n c.CHAR_LENGTH AS clen,\n -- c.DEFAULT_ON_NULL,\n c.LOW_VALUE,\n c.HIGH_VALUE,\n c.DATA_SCALE AS ns,\n p.constraint_name AS pk_constraint_name,\n p.POSITION AS p_con_ordinal_position\n FROM\n SYS.ALL_TAB_COLS c\n LEFT JOIN(\n SELECT\n a.table_name,\n a.column_name,\n a.constraint_name,\n c.constraint_type,\n a.position,\n c_pk.table_name r_table_name,\n c_pk.constraint_name r_pk,\n cc_pk.column_name r_column_name\n FROM\n all_cons_columns a\n JOIN all_constraints c ON\n (\n a.owner = c.owner\n AND a.constraint_name = c.constraint_name\n )\n LEFT JOIN all_constraints c_pk ON\n (\n c.r_owner = c_pk.owner\n AND c.r_constraint_name = c_pk.constraint_name\n )\n LEFT JOIN all_cons_columns cc_pk ON\n (\n cc_pk.owner = c_pk.owner\n AND cc_pk.constraint_name = c_pk.constraint_name\n )\n WHERE\n a.owner = '${e.databaseName}'\n AND c.constraint_type = 'P'\n ) p ON\n c.table_name = p.table_name\n AND c.column_name = p.column_name\n LEFT OUTER JOIN(\n SELECT\n t.table_name,\n d.referenced_name AS sequence_name,\n d.REFERENCED_OWNER AS OWNER,\n c.COLUMN_NAME\n FROM\n user_trigger_cols t,\n user_dependencies d,\n user_tab_cols c\n WHERE\n d.name = t.trigger_name\n AND t.TABLE_NAME = c.TABLE_NAME\n AND t.COLUMN_NAME = c.COLUMN_NAME\n AND d.referenced_type = 'SEQUENCE'\n AND d.type = 'TRIGGER'\n ) seq ON\n c.table_name = seq.table_name\n AND c.column_name = seq.column_name\n WHERE\n c.owner = '${e.databaseName}' AND c.table_name = '${e.tn}'\n ORDER BY\n c.table_name,\n c.column_id,\n c.column_name`);for(let e=0;e<t.length;e++){let n=t[e];n=(0,i.default)(n,((e,t)=>t.toLowerCase())),n.np=n.data_precision,n.pk="P"===n.ck,n.nrqd="Y"===n.nrqd,n.not_nullable="N"===n.nrqd,n.ai=1===n.ai,n.cno=n.cn,n.dtxp=n.clen||n.np,n.dtxs=n.ns,n.au=!1,t[e]=n}n.data.list=t}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async indexList(e={}){const t=this.indexList.name,n=new u.default;l.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.user;const t=await this.raw(`select ind_col.COLUMN_POSITION AS postion, ind.index_name as key_name,\n ind_col.column_name as cn,\n ind.index_type,\n ind.uniqueness,\n ind.table_owner as schema_name,\n ind.table_name as tn,\n ind.table_type as table_type\n from sys.all_indexes ind\n inner join sys.all_ind_columns ind_col on ind.owner = ind_col.index_owner\n and ind.index_name = ind_col.index_name\n where ind.owner = '${e.databaseName}' AND ind.table_name = '${e.tn}'\n order by ind.table_owner, ind.table_name, ind.index_name, ind_col.column_position`);for(let e=0;e<t.length;e++){let n=t[e];n=(0,i.default)(n,((e,t)=>t.toLowerCase())),n.table=n.tn,n.non_unique="NONUNIQUE"===n.uniqueness?1:0,n.non_unique_original="NONUNIQUE"===n.uniqueness?1:0,n.seq_in_index=n.postion,t[e]=n}n.data.list=t}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async constraintList(e={}){const t=this.constraintList.name,n=new u.default;l.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.user;const t=await this.raw(`SELECT cols.table_name as tn, cols.column_name as cn, cols.position, cons.*\n FROM all_constraints cons, all_cons_columns cols\n WHERE cols.table_name = '${e.tn}' AND cols.owner = '${e.databaseName}'\n AND cons.constraint_type in ('P','R','U') AND cons.constraint_name = cols.constraint_name\n AND cons.owner = cols.owner ORDER BY cons.constraint_name, cols.position`);for(let e=0;e<t.length;e++){let n=t[e];n=(0,i.default)(n,((e,t)=>t.toLowerCase())),n.table=n.tn,"P"===n.cst&&(n.cst="Primary Key"),"U"===n.cst&&(n.cst="Unique"),"R"===n.cst&&(n.cst="Foreign Key"),n.op=n.position,t[e]=n}n.data.list=t}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async relationList(e={}){const t=this.relationList.name,n=new u.default;l.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.user;const t=await this.raw(`SELECT\n a.table_name as tn,\n a.column_name as cn,\n a.constraint_name cstn,\n c.constraint_type cst,\n a.position,\n c_pk.table_name r_table_name,\n c_pk.constraint_name r_pk,\n cc_pk.column_name r_column_name,\n c.delete_rule dr\n FROM\n all_cons_columns a\n JOIN all_constraints c ON\n (\ta.owner = c.owner\n AND a.constraint_name = c.constraint_name )\n LEFT JOIN all_constraints c_pk ON\n (\tc.r_owner = c_pk.owner\n AND c.r_constraint_name = c_pk.constraint_name )\n LEFT JOIN all_cons_columns cc_pk ON\n (\tcc_pk.owner = c_pk.owner\n AND cc_pk.constraint_name = c_pk.constraint_name )\n WHERE a.owner = '${e.databaseName}'\n AND c.constraint_type = 'R'\n\n `);for(let e=0;e<t.length;e++){let n=t[e];n=(0,i.default)(n,((e,t)=>t.toLowerCase())),n.rtn=n.r_table_name,n.rcn=n.r_column_name,n.non_unique="NONUNIQUE"===n.uniqueness,n.puc=n.position,t[e]=n}n.data.list=t}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async relationListAll(e={}){const t=this.relationList.name,n=new u.default;l.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.user;const t=await this.raw(`SELECT\n a.table_name as tn,\n a.column_name as cn,\n a.constraint_name cstn,\n c.constraint_type cst,\n a.position puc,\n c_pk.table_name r_table_name,\n c_pk.constraint_name r_pk,\n cc_pk.column_name r_column_name,\n c.delete_rule dr\n FROM\n all_cons_columns a\n JOIN all_constraints c ON\n (\ta.owner = c.owner\n AND a.constraint_name = c.constraint_name )\n LEFT JOIN all_constraints c_pk ON\n (\tc.r_owner = c_pk.owner\n AND c.r_constraint_name = c_pk.constraint_name )\n LEFT JOIN all_cons_columns cc_pk ON\n (\tcc_pk.owner = c_pk.owner\n AND cc_pk.constraint_name = c_pk.constraint_name )\n WHERE a.owner = '${e.databaseName}'\n AND c.constraint_type = 'R'\n\n `);for(let e=0;e<t.length;e++){let n=t[e];n=(0,i.default)(n,((e,t)=>t.toLowerCase())),n.rtn=n.r_table_name,n.rcn=n.r_column_name,n.non_unique="NONUNIQUE"===n.uniqueness,t[e]=n}n.data.list=t}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async triggerList(e={}){const t=this.triggerList.name,n=new u.default;l.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.user;const t=await this.sqlClient.raw(`select owner as trigger_schema_name, trigger_name, trigger_type,\n triggering_event, table_owner as schema_name, table_name as object_name, base_object_type as object_type,\n status, trigger_body as script from sys.all_triggers\n -- excluding some Oracle maintained schemas\n where owner = '${e.databaseName}' order by trigger_name, table_owner, table_name, base_object_type`);for(let e=0;e<t.length;e++){let n=t[e];n=(0,i.default)(n,((e,t)=>t.toLowerCase())),n.trigger=n.trigger_name,n.table=n.object_name,n.event=n.triggering_event,n.timing=n.trigger_type,n.statement=n.script,t[e]=n}n.data.list=t}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async functionList(e={}){const t=this.functionList.name,n=new u.default;l.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.user;const t=await this.raw(`SELECT * FROM ALL_OBJECTS WHERE owner = '${e.databaseName}' and OBJECT_TYPE IN ('FUNCTION','PROCEDURE','PACKAGE')`);for(let e=0;e<t.length;e++){let n=t[e];n=(0,i.default)(n,((e,t)=>t.toLowerCase())),n.function_name=n.object_name,n.type=n.object_type,t[e]=n}n.data.list=t}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async procedureList(e={}){const t=this.procedureList.name,n=new u.default;l.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.user;const t=await this.raw(`SELECT * FROM ALL_OBJECTS WHERE owner = '${e.databaseName}' and OBJECT_TYPE IN ('FUNCTION','PROCEDURE','PACKAGE')`);for(let e=0;e<t.length;e++){let n=t[e];n=(0,i.default)(n,((e,t)=>t.toLowerCase())),n.procedure_name=n.object_name,n.type=n.object_type,t[e]=n}n.data.list=t}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async viewList(e={}){const t=this.viewList.name,n=new u.default;l.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.user;const t=await this.raw(`SELECT * FROM all_views WHERE owner='${e.databaseName}'`);for(let e=0;e<t.length;e++){let n=t[e];n=(0,i.default)(n,((e,t)=>t.toLowerCase())),n.view_name=n.object_name,t[e]=n}n.data.list=t}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async functionRead(e={}){const t=this.functionRead.name,n=new u.default;l.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.user;const t=await this.raw(`SELECT * FROM all_source WHERE TYPE = 'FUNCTION' AND OWNER = '${e.databaseName}' AND NAME = '${e.function_name}' ORDER BY line`),a=[];if(t.length>0){let e="";for(let n=0;n<t.length;n++){let a=t[n];a=(0,i.default)(a,((e,t)=>t.toLowerCase())),a.function_name=a.name,t[n]=a,e+=a.text}t[0].create_function=e,a.push(t[0])}n.data.list=a}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async procedureRead(e={}){const t=this.procedureRead.name,n=new u.default;l.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.user;const t=await this.raw(`SELECT * FROM all_source WHERE TYPE = 'PROCEDURE' AND OWNER = '${e.databaseName}' AND NAME = '${e.procedure_name}' ORDER BY line`),a=[];if(t.length>0){let e="";for(let n=0;n<t.length;n++){let a=t[n];a=(0,i.default)(a,((e,t)=>t.toLowerCase())),a.procedure_name=a.name,t[n]=a,e+=a.text}t[0].create_procedure=e,a.push(t[0])}n.data.list=a}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async viewRead(e={}){const t=this.viewRead.name,n=new u.default;l.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.user;const t=await this.raw(`SELECT * FROM all_views WHERE owner='${e.databaseName}' and view_name='${e.view_name}'`);for(let e=0;e<t.length;e++){let n=t[e];n=(0,i.default)(n,((e,t)=>t.toLowerCase())),n.view_name=n.object_name,n.view_definition=n.text,t[e]=n}n.data.list=t}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async triggerRead(e={}){const t=this.triggerRead.name,n=new u.default;l.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.user;const t=await this.sqlClient.raw(`select owner as trigger_schema_name, trigger_name, trigger_type,\n triggering_event, table_owner as schema_name, table_name as object_name,\n base_object_type as object_type, status, trigger_body as script from sys.all_triggers\n -- excluding some Oracle maintained schemas\n where owner = '${e.databaseName}' and trigger_name = '${e.trigger_name}' order by trigger_name, table_owner, table_name, base_object_type`);if(!t[0])return[];for(let e=0;e<t.length;e++){let n=t[e];n=(0,i.default)(n,((e,t)=>t.toLowerCase())),n.trigger=n.trigger_name,n.table=n.object_name,n.event=n.triggering_event,n.timing=n.trigger_type,n.trigger_definition=n.script,t[e]=n}n.data.list=t}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async schemaCreate(e={}){const t=this.schemaCreate.name,n=new u.default;l.api(`${t}:args:`,e);try{await this.raw(`create database ${e.database_name}`)}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async schemaDelete(e={}){const t=this.schemaDelete.name,n=new u.default;l.api(`${t}:args:`,e);try{await this.raw(`drop database ${e.database_name}`)}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async triggerDelete(e={}){const t=this.triggerDelete.name,n=new u.default;l.api(`${t}:args:`,e);try{await this.raw(`DROP TRIGGER IF EXISTS ${e.trigger_name}`)}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async functionDelete(e={}){const t=this.functionDelete.name,n=new u.default;l.api(`${t}:args:`,e);try{await this.raw(`DROP FUNCTION IF EXISTS ${e.function_name}`)}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async procedureDelete(e={}){const t=this.procedureDelete.name,n=new u.default;l.api(`${t}:args:`,e);try{await this.raw(`DROP PROCEDURE IF EXISTS ${e.procedure_name}`)}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async functionCreate(e={}){const t=this.functionCreate.name,n=new u.default;l.api(`${t}:args:`,e);try{const t=await this.sqlClient.raw(`CREATE TRIGGER \`${e.function_name}\` \n${e.timing} ${e.event}\nON ${e.tn} FOR EACH ROW\n${e.statement}`);n.data.list=t}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async functionUpdate(e={}){const t=this.functionUpdate.name,n=new u.default;l.api(`${t}:args:`,e);try{await this.sqlClient.raw(`DROP TRIGGER ${e.function_name}`);const t=await this.sqlClient.raw(`CREATE TRIGGER \`${e.function_name}\` \n${e.timing} ${e.event}\nON ${e.tn} FOR EACH ROW\n${e.statement}`);n.data.list=t}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async procedureCreate(e={}){const t=this.procedureCreate.name,n=new u.default;l.api(`${t}:args:`,e);try{const t=await this.sqlClient.raw(`CREATE TRIGGER \`${e.procedure_name}\` \n${e.timing} ${e.event}\nON ${e.tn} FOR EACH ROW\n${e.statement}`);n.data.list=t}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async procedureUpdate(e={}){const t=this.procedureUpdate.name,n=new u.default;l.api(`${t}:args:`,e);try{await this.sqlClient.raw(`DROP TRIGGER ${e.procedure_name}`);const t=await this.sqlClient.raw(`CREATE TRIGGER \`${e.procedure_name}\` \n${e.timing} ${e.event}\nON ${e.tn} FOR EACH ROW\n${e.statement}`);n.data.list=t}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async triggerCreate(e={}){const t=this.triggerCreate.name,n=new u.default;l.api(`${t}:args:`,e);try{const t=`CREATE TRIGGER \`${e.trigger_name}\` \n${e.timing} ${e.event}\nON ${e.tn} FOR EACH ROW\n${e.statement}`;await this.sqlClient.raw(t),n.data.object={upStatement:t,downStatement:`DROP TRIGGER ${e.trigger_name}`}}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async triggerUpdate(e={}){const t=this.triggerUpdate.name,n=new u.default;l.api(`${t}:args:`,e);try{await this.sqlClient.raw(`DROP TRIGGER ${e.trigger_name}`),await this.sqlClient.raw(`CREATE TRIGGER \`${e.trigger_name}\` \n${e.timing} ${e.event}\nON ${e.tn} FOR EACH ROW\n${e.statement}`),n.data.object={upStatement:`DROP TRIGGER ${e.trigger_name};\nCREATE TRIGGER \`${e.trigger_name}\` \n${e.timing} ${e.event}\nON ${e.tn} FOR EACH ROW\n${e.statement}`,downStatement:`CREATE TRIGGER \`${e.trigger_name}\` \n${e.timing} ${e.event}\nON ${e.tn} FOR EACH ROW\n${e.oldStatement}`}}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async viewCreate(e={}){const t=this.viewCreate.name,n=new u.default;l.api(`${t}:args:`,e);try{const t=`CREATE VIEW ${e.view_name} AS \n${e.view_definition}`;await this.sqlClient.raw(t),n.data.object={upStatement:t,downStatement:`DROP VIEW ${e.view_name}`}}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async viewUpdate(e={}){const t=this.viewUpdate.name,n=new u.default;l.api(`${t}:args:`,e);try{const t=`CREATE OR REPLACE VIEW ${e.view_name} AS \n${e.view_definition}`;await this.sqlClient.raw(t),n.data.object={upStatement:t,downStatement:`CREATE VIEW ${e.view_name} AS \n${e.oldViewDefination}`}}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async viewDelete(e={}){const t=this.viewDelete.name,n=new u.default;l.api(`${t}:args:`,e);try{const t=`DROP VIEW ${e.view_name}`;await this.sqlClient.raw(t),n.data.object={upStatement:t,downStatement:`CREATE VIEW ${e.view_name} AS \n${e.oldViewDefination}`}}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async tableCreate(e){const t=this.tableCreate.name,n=new u.default;l.api(`${t}:args:`,e);try{e.table=e.tn,e.sqlClient=this.sqlClient;const t=h(e.tn,e);await this.sqlClient.raw(t);const a=this.sqlClient.schema.dropTable(e.table).toSQL();this.emit(`Success : ${t}`),n.data.object={upStatement:[{sql:t}],downStatement:a}}catch(e){throw l.ppe(e,t),e}return n}async tableUpdate(e){const t=this.tableUpdate.name,n=new u.default;l.api(`${t}:args:`,e);try{e.table=e.tn;const t=e.originalColumns;e.connectionConfig=this._connectionConfig,e.sqlClient=this.sqlClient;let a="",r="";for(let n=0;n<e.columns.length;++n){const i=(0,s.default)(t,{cn:e.columns[n].cno});4&e.columns[n].altered?(a+=p(e.table,e.columns[n],i),r+=f(e.table,i,e.columns[n],r)):2&e.columns[n].altered||8&e.columns[n].altered?(a+=m(e.table,e.columns[n],i,a),r+=m(e.table,i,e.columns[n],r)):1&e.columns[n].altered&&(a+=f(e.table,e.columns[n],i,a),r+=p(e.table,e.columns[n],i))}await this.sqlClient.raw(a),console.log(a),n.data.object={upStatement:[{sql:a}],downStatement:[{sql:r}]}}catch(e){throw l.ppe(e,t),e}return n}async tableDelete(e){const t=this.tableDelete.name,n=new u.default;l.api(`${t}:args:`,e);try{e.sqlClient=this.sqlClient;const t=this.sqlClient.schema.dropTable(e.tn).toSQL(),a=h(e.tn,e);this.emit(`Success : ${t}`),await this.sqlClient.schema.dropTable(e.tn),n.data.object={upStatement:t,downStatement:[{sql:a}]}}catch(e){throw l.ppe(e,t),e}return n}async tableCreateStatement(e){const t=this.tableCreateStatement.name,n=new u.default;l.api(`${t}:args:`,e);try{n.data=";";const t=await this.sqlClient.raw(`show create table ${e.tn};`);2===t.length&&(n.data=t[0][0]["Create Table"])}catch(e){throw l.ppe(e,t),e}return n}async tableInsertStatement(e){const t=this.tableCreateStatement.name,n=new u.default;l.api(`${t}:args:`,e);try{let t=" VALUES (";n.data=`INSERT INTO \`${e.tn}\` (`;const a=await this.columnList(e);if(a.data&&a.data.list)for(let e=0;e<a.data.list.length;++e)e?(n.data+=`, \`${a.data.list[e].cn}\`\n\t`,t+=`, <${a.data.list[e].cn}>\n\t`):(n.data+=`\n\`${a.data.list[e].cn}\`\n\t`,t+=`\n<${a.data.list[e].cn}>\n\t`);n.data+=")",t+=");",n.data+=t}catch(e){throw l.ppe(e,t),e}return n}async tableUpdateStatement(e){const t=this.tableUpdateStatement.name,n=new u.default;l.api(`${t}:args:`,e);try{n.data=`UPDATE \`${e.tn}\` \nSET\n`;const t=await this.columnList(e);if(t.data&&t.data.list)for(let e=0;e<t.data.list.length;++e)n.data+=e?`,\`${t.data.list[e].cn}\` = <\`${t.data.list[e].cn}\`>\n\t`:`\`${t.data.list[e].cn}\` = <\`${t.data.list[e].cn}\`>\n\t`;n.data+=";"}catch(e){throw l.ppe(e,t),e}return n}async tableDeleteStatement(e){const t=this.tableDeleteStatement.name,n=new u.default;l.api(`${t}:args:`,e);try{n.data=`DELETE FROM ${e.tn};`}catch(e){throw l.ppe(e,t),e}return n}async tableTruncateStatement(e){const t=this.tableTruncateStatement.name,n=new u.default;l.api(`${t}:args:`,e);try{n.data=`TRUNCATE TABLE ${e.tn};`}catch(e){throw l.ppe(e,t),e}return n}async tableSelectStatement(e){const t=this.tableSelectStatement.name,n=new u.default;l.api(`${t}:args:`,e);try{n.data="SELECT ";const t=await this.columnList(e);if(t.data&&t.data.list)for(let e=0;e<t.data.list.length;++e)n.data+=e?`, ${t.data.list[e].cn}\n\t`:`${t.data.list[e].cn}\n\t`;n.data+=` FROM ${e.tn};`}catch(e){throw l.ppe(e,t),e}return n}async totalRecords(e={}){throw this.totalRecords.name,new Error("Function not supported for oracle yet")}}function p(e,t,n){let a=n?",":"";return a+=` DROP COLUMN \`${e.cn}\``,a}function f(e,t,n,a){return b(e,t,n,a,1)}function m(e,t,n,a){return b(e,t,n,a,2)}function h(e,t){let n="";for(let a=0;a<t.columns.length;++a)n+=b(e,t.columns[a],null,n,0);return n+=function(e,t,n,a=!1){const r=[],i=[];let s=0;for(let t=0;t<e.length;++t)e[t].pk&&4!==e[t].altered&&i.push(e[t].cn);for(let e=0;e<t.length;++e)t[e].pk&&r.push(t[e].cn);if(i.length===r.length){for(let e=0;e<i.length;++e)if(r[e]!==i[e]){s=1;break}}else s=i.length-r.length;let o="";return(i.length||r.length)&&s&&(o+=r.length?",DROP PRIMARY KEY":"",i.length&&(o+=a?`, PRIMARY KEY(${i.join(",")})`:`, ADD PRIMARY KEY(${i.join(",")})`)),o}(t.columns,[],0,!0),n=`CREATE TABLE ${t.tn} (`+n+")",n}function b(e,t,n,a,r=2){const i=parseInt(t.dtxs)?parseInt(t.dtxs):null;let s=a?",":"";const o=function(e){if(void 0===e.cdf||null===e.cdf)return e.cdf;switch(e.dt){case"bfile":case"binary rowid":case"binary double":case"binary_float":case"blob":case"canoical":case"cfile":case"char":case"clob":case"content pointer":case"contigous array":case"date":case"decimal":case"double precision":case"float":case"integer":case"interval day to second":case"interval year to month":case"lob pointer":case"long":case"long raw":case"named collection":case"named object":case"nchar":case"nclob":case"number":case"nvarchar2":case"octet":case"oid":case"pointer":case"raw":case"real":case"ref":case"ref cursor":case"rowid":case"signed binary integer":case"smallint":case"table":case"time":case"time with tz":case"timestamp":case"timestamp with local time zone":case"timestamp with local tz":case"timestamp with timezone":case"timestamp with tz":case"unsigned binary integer":case"urowid":case"varchar":case"varchar2":case"varray":case"varying array":return e.cdf}}(t);return 0===r?(t.ai?(t.dt,s+=` ${t.cn} serial`):s+=` ${t.cn} ${t.dt}`,s+=t.dtxp&&" "!==t.dtxp?`(${t.dtxp}`:"",s+=i?`,${i}`:"",s+=t.dtxp&&" "!==t.dtxp?")":"",s+=t.rqd?" NOT NULL":" NULL",s+=o?` DEFAULT ${o}`:""):1===r?(s+=` ADD ${t.cn} ${t.dt}`,s+=t.rqd?" NOT NULL":" NULL",s+=o?` DEFAULT ${o}`:" ",s=`ALTER TABLE ${e} ${s};`):(t.cn!==n.cno&&(s+=`\nALTER TABLE ${e} RENAME COLUMN ${t.cno} TO ${t.cn};\n`),t.dt!==n.dt&&(s+=`\nALTER TABLE ${e} ALTER COLUMN ${t.cn} TYPE ${t.dt};\n`),t.rqd!==n.rqd&&(s+=`\nALTER TABLE ${e} ALTER COLUMN ${t.cn} `,s+=t.rqd?" SET NOT NULL;\n":" DROP NOT NULL;\n"),t.cdf!==n.cdf&&(s+=`\nALTER TABLE ${e} ALTER COLUMN ${t.cn} `,s+=t.cdf?` SET DEFAULT ${t.cdf};\n`:" DROP DEFAULT;\n")),s}t.default=d},4504:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(6331),i=a(n(1832)),s=a(n(943)),o=a(n(9020)),c=a(n(133)),u=n(5064),l=a(n(6685)),d=a(n(2911)),p=a(n(3815)),f=a(n(2389)),m=n(7661),h=a(n(2389)),b=new d.default("PGClient");class g extends l.default{constructor(e){super(e),this.queries=f.default,this._version={}}async schemaCreateWithCredentials(e){const t=this.schemaCreateWithCredentials.name,n=new p.default;b.api(`${t}:args:`,e);try{e.schema||(e.schema=`nc${(0,r.nanoid)(8)}`),e.user||(e.user=`nc${(0,r.nanoid)(8)}`),e.password||(e.password=(0,r.nanoid)(16));const t=await this.sqlClient.raw("create database ?",[e.schema]);await this.sqlClient.raw("create user ? with encrypted password ?",[e.user,e.password]),await this.sqlClient.raw("grant all privileges on database ?? to ?",[e.schema,e.user]),b.debug("Create database if not exists",t),n.object=e}catch(e){n.code=-1,n.message=e.message,n.object=e}return n}async sequenceDelete(e={}){const t=this.sequenceDelete.name,n=new p.default;b.api(`${t}:args:`,e);try{const t=`${this.querySeparator()}DROP SEQUENCE ${this.genIdentifier(e.sequence_name)}`;await this.sqlClient.raw(t),n.data.object={upStatement:[{sql:t}],downStatement:[{sql:`${this.querySeparator()}CREATE SEQUENCE ${this.genIdentifier(e.sequence_name)}`}]}}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async sequenceList(e={}){const t=this.sequenceList.name,n=new p.default;b.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const{rows:t}=await this.raw("select *\n from INFORMATION_SCHEMA.sequences;");n.data.list=t.map((e=>Object.assign(Object.assign({},e),{original_sequence_name:e.sequence_name})))}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async sequenceCreate(e={}){const t=this.sequenceCreate.name,n=new p.default;b.api(`${t}:args:`,e);try{const t=this.querySeparator()+`CREATE SEQUENCE ${this.genIdentifier(e.sequence_name)}`;await this.sqlClient.raw(t),n.data.object={upStatement:[{sql:t}],downStatement:[{sql:this.querySeparator()+`DROP SEQUENCE ${this.genIdentifier(e.sequence_name)}`}]}}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async sequenceUpdate(e={}){const t=this.sequenceUpdate.name,n=new p.default;b.api(`${t}:args:`,e);try{const t=this.querySeparator()+`ALTER SEQUENCE ${this.genIdentifier(e.original_sequence_name)} RENAME TO ${this.genIdentifier(e.sequence_name)};`,a=this.querySeparator()+`ALTER SEQUENCE ${this.genIdentifier(e.sequence_name)} RENAME TO ${this.genIdentifier(e.original_sequence_name)};`;await this.sqlClient.raw(t),n.data.object={upStatement:[{sql:t}],downStatement:[{sql:a}]}}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async testConnection(e={}){const t=this.testConnection.name,n=new p.default;b.api(`${t}:args:`,e);try{await this.raw("SELECT 1+1 as data")}catch(e){const a=JSON.parse(JSON.stringify(this.connectionConfig));a.connection.database="postgres";const r=(0,i.default)(Object.assign(Object.assign({},a),{pool:{min:0,max:1}}));try{await r.raw("SELECT 1+1 as data"),await r.destroy()}catch(t){/^database "[\w\d_]+" does not exist$/.test(t.message)||(b.ppe(t),n.code=-1,n.message=e.message)}}finally{b.api(`${t}:result:`,n)}return n}getKnexDataTypes(){const e=new p.default;return e.data.list=["int","integer","bigint","bigserial","char","int2","int4","int8","int4range","int8range","serial","serial2","serial8","character","bit","bool","boolean","date","double precision","event_trigger","fdw_handler","float4","float8","uuid","smallint","smallserial","character varying","text","real","time","time without time zone","timestamp","timestamp without time zone","timestamptz","timestamp with time zone","timetz","time with time zone","daterange","json","jsonb","gtsvector","index_am_handler","anyenum","anynonarray","anyrange","box","bpchar","bytea","cid","cidr","circle","cstring","inet","internal","interval","language_handler","line","lsec","macaddr","money","name","numeric","numrange","oid","opaque","path","pg_ddl_command","pg_lsn","pg_node_tree","point","polygon","record","refcursor","regclass","regconfig","regdictionary","regnamespace","regoper","regoperator","regproc","regpreocedure","regrole","regtype","reltime","smgr","tid","tinterval","trigger","tsm_handler","tsquery","tsrange","tstzrange","tsvector","txid_snapshot","unknown","void","xid","xml"],e}async version(e={}){const t=this.version.name,n=new p.default;b.api(`${t}:args:`,e);try{n.data.object={};const e=await this.sqlClient.raw("SHOW server_version");b.debug(e.rows[0]),n.data.object.version=e.rows[0].server_version;const t=e.rows[0].server_version.split(".");!t.length||3!==t.length&&2!==t.length?(n.code=-1,n.message=`Invalid version : ${e.rows[0].server_version}`):(n.data.object.primary=t[0],n.data.object.major=t[1],n.data.object.minor=t.length>2?t[2]:t[1],n.data.object.key=t[0]+t[1])}catch(e){b.ppe(e),n.code=-1,n.message=e.message}finally{b.api(`${t} :result: %o`,n)}return n}async createDatabaseIfNotExists(e={}){var t,n;const a=this.createDatabaseIfNotExists.name,r=new p.default;let s;b.api(`${a}:args:`,e);try{const a=JSON.parse(JSON.stringify(this.connectionConfig));let r=[];try{a.connection.database="postgres",s=(0,i.default)(Object.assign(Object.assign({},a),{pool:{min:0,max:1}})),b.debug("checking if db exists"),r=(await s.raw("SELECT datname as database FROM pg_database WHERE datistemplate = false and datname = ?",[e.database])).rows}catch(t){b.debug("checking if db exists"),r=(await this.sqlClient.raw("SELECT datname as database FROM pg_database WHERE datistemplate = false and datname = ?",[e.database])).rows}0===r.length&&(b.debug("creating database:",e),await s.raw("CREATE DATABASE ?? ENCODING 'UTF8'",[e.database]));const o=(null===(t=this.connectionConfig.searchPath)||void 0===t?void 0:t[0])||"public";(null===(n=(await this.sqlClient.raw("SELECT schema_name FROM information_schema.schemata WHERE schema_name = ?",[o])).rows)||void 0===n?void 0:n[0])||await this.sqlClient.raw("CREATE SCHEMA IF NOT EXISTS ?? AUTHORIZATION ?? ",[o,this.connectionConfig.connection.user])}catch(e){throw b.ppe(e,a),e}finally{s&&await s.destroy()}return b.api(`${a}: result`,r),r}async dropDatabase(e){const t=this.dropDatabase.name,n=new p.default;b.api(`${t}:args:`,e);try{const t=JSON.parse(JSON.stringify(this.connectionConfig));t.connection.database="postgres";const n=(0,i.default)(Object.assign(Object.assign({},t),{pool:{min:0,max:1}}));await this.sqlClient.destroy(),this.sqlClient=n,await n.raw("ALTER DATABASE ?? WITH CONNECTION LIMIT 0;\n SELECT pg_terminate_backend(sa.pid) FROM pg_stat_activity sa WHERE\n sa.pid <> pg_backend_pid() AND sa.datname = ?;",[e.database,e.database]),b.debug("dropping database:",e),await n.raw("DROP DATABASE ??;",[e.database]),await n.destroy()}catch(e){b.ppe(e,t)}return b.api(`${t}: result`,n),n}async createTableIfNotExists(e){const t=this.createTableIfNotExists.name,n=new p.default;b.api(`${t}:args:`,e);try{if(0===(await this.sqlClient.raw("SELECT table_schema,table_name as tn, table_catalog FROM information_schema.tables where table_schema=? and\n table_name = ? and table_catalog = ?",[this.schema,e.tn,this.connectionConfig.connection.database])).rows.length){const t=await this.sqlClient.raw(this.sqlClient.schema.createTable(e.tn,(function(e){e.increments(),e.string("title").notNullable(),e.string("titleDown").nullable(),e.string("description").nullable(),e.integer("batch").nullable(),e.string("checksum").nullable(),e.integer("status").nullable(),e.dateTime("created"),e.timestamps()})).toQuery());b.debug("Table created:",`${e.tn}`,t)}else b.debug(`${e.tn} tables exists`)}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async hasTable(e={}){const t=this.hasTable.name,n=new p.default;b.api(`${t}:args:`,e);try{const{rows:t}=await this.sqlClient.raw("SELECT table_schema,table_name as tn, table_catalog FROM information_schema.tables where table_schema=? and table_name = ? and table_catalog = ?'",[this.schema,e.tn,this.connectionConfig.connection.database]);n.data.value=t.length>0}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async hasDatabase(e={}){const t=this.hasDatabase.name,n=new p.default;b.api(`${t}:args:`,e);try{const{rows:t}=await this.sqlClient.raw("SELECT datname as database FROM pg_database WHERE datistemplate = false and datname = ?",[e.database]);n.data.value=t.length>0}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async databaseList(e={}){const t=this.databaseList.name,n=new p.default;b.api(`${t}:args:`,e);try{const{rows:e}=await this.sqlClient.raw("SELECT datname as database_name\n FROM pg_database\n WHERE datistemplate = false;");n.data.list=e}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async tableList(e={}){const t=this.tableList.name,n=new p.default;b.api(`${t}:args:`,e);try{const{rows:e}=await this.raw("SELECT table_schema as ts, table_name as tn,table_type\n FROM information_schema.tables\n where table_schema = ?\n ORDER BY table_schema, table_name",[this.schema]);n.data.list=e.filter((({table_type:e})=>"base table"===e.toLowerCase()))}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async schemaList(e={}){const t=this.schemaList.name,n=new p.default;b.api(`${t}:args:`,e);try{const{rows:e}=await this.raw("SELECT datname as schema_name FROM pg_database\n WHERE \n datistemplate = false \n order by schema_name;");n.data.list=e}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async columnList(e={}){var t,n,a,r,i;const s=this.columnList.name,o=new p.default;b.api(`${s}:args:`,e);try{const s=null===(i=null===(r=null===(a=null===(n=null===(t=(await this.sqlClient.raw("SELECT version()")).rows[0])||void 0===t?void 0:t.version)||void 0===n?void 0:n.split(" "))||void 0===a?void 0:a[1])||void 0===r?void 0:r.split("."))||void 0===i?void 0:i[0],c=+s>=10?"c.is_identity as ii,":"";e.databaseName=this.connectionConfig.connection.database;const u=await this.sqlClient.raw(`select\n c.table_name as tn, c.column_name as cn, c.data_type as dt,\n (CASE WHEN trg.trigger_name is NULL THEN false else true end) as au,\n pk.constraint_type as ck,\n c.character_maximum_length as clen,\n c.numeric_precision as np,\n c.numeric_scale as ns,\n c.datetime_precision as dp,\n c.ordinal_position as cop,\n c.is_nullable as nrqd,\n c.column_default as cdf,\n c.generation_expression,\n c.character_octet_length,\n c.character_set_name as csn,\n -- c.collation_name as clnn,\n pk.ordinal_position as pk_ordinal_position, pk.constraint_name as pk_constraint_name,\n c.udt_name,\n ${c}\n\n (SELECT count(*)\n FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS tc1\n inner join INFORMATION_SCHEMA.CONSTRAINT_COLUMN_USAGE cu\n on cu.CONSTRAINT_NAME = tc1.CONSTRAINT_NAME\n where\n tc1.CONSTRAINT_TYPE = 'UNIQUE'\n and tc1.TABLE_NAME = c.TABLE_NAME\n and cu.COLUMN_NAME = c.COLUMN_NAME\n and tc1.TABLE_SCHEMA=c.TABLE_SCHEMA) IsUnique,\n (SELECT\n string_agg(enumlabel, ',')\n FROM "pg_enum" "e"\n INNER JOIN "pg_type" "t" ON "t"."oid" = "e"."enumtypid"\n INNER JOIN "pg_namespace" "n" ON "n"."oid" = "t"."typnamespace"\n WHERE "n"."nspname" = table_schema AND "t"."typname"=udt_name\n ) enum_values\n\n\n from information_schema.columns c\n left join\n ( select kc.constraint_name, kc.table_name,kc.column_name, kc.ordinal_position,tc.constraint_type\n from information_schema.key_column_usage kc\n inner join information_schema.table_constraints as tc\n on kc.constraint_name = tc.constraint_name \n and kc.constraint_schema = tc.constraint_schema and tc.constraint_type in ('PRIMARY KEY')\n where kc.table_catalog = :database and kc.table_schema= :schema\n order by table_name,ordinal_position ) pk\n on\n pk.table_name = c.table_name and pk.column_name=c.column_name\n left join information_schema.triggers trg on trg.event_object_table = c.table_name and trg.trigger_name = CONCAT('xc_trigger_' , :table::text , '_' , c.column_name)\n where c.table_catalog=:database and c.table_schema=:schema and c.table_name=:table\n order by c.table_name, c.ordinal_position`,{schema:this.schema,database:e.databaseName,table:e.tn}),l=[];for(let e=0;e<u.rows.length;++e){const t={};t.tn=u.rows[e].tn,t.cn=u.rows[e].cn,t.cno=u.rows[e].cn,t.dt=u.rows[e].dt,t.np=u.rows[e].np,t.ns=u.rows[e].ns,t.clen=u.rows[e].clen,t.dp=u.rows[e].dp,t.cop=u.rows[e].cop,t.dtx=u.rows[e].dt,t.pk=null!==u.rows[e].pk_constraint_name,t.nrqd="NO"!==u.rows[e].nrqd,t.not_nullable=!t.nrqd,t.rqd=!t.nrqd,u.rows[e].ct=u.rows[e].dt||"",t.un=-1!==u.rows[e].ct.indexOf("unsigned"),t.ai=!1,u.rows[e].cdf&&(t.ai=-1!==u.rows[e].cdf.indexOf("nextval")),t.cdf=u.rows[e].cdf?u.rows[e].cdf.replace(/::[\w (),]+$/,"").replace(/^'|'$/g,""):u.rows[e].cdf,t.cc=u.rows[e].cc,t.csn=u.rows[e].csn,t.dtxp=u.rows[e].clen||u.rows[e].np||u.rows[e].dp,t.dtxs=u.rows[e].ns,t.au=u.rows[e].au,t.data_type_custom=u.rows[e].udt_name,"USER-DEFINED"===t.dt&&(t.dtxp=u.rows[e].enum_values),+s>=10&&"YES"===u.rows[e].ii&&(t.ai=!0),l.push(t)}o.data.list=l}catch(e){throw b.ppe(e,s),e}return b.api(`${s}: result`,o),o}async indexList(e={}){const t=this.indexList.name,n=new p.default;b.api(`${t}:args:`,e);try{const{rows:t}=await this.sqlClient.raw("SELECT\n f.attname AS cn,\n i.relname as key_name,\n ix.indnatts, ix.indkey, f.attnum as seq_in_index,\n pg_catalog.format_type(f.atttypid,f.atttypmod) AS type,\n f.attnotnull as rqd,\n p.contype as cst,\n p.conname as cstn,\n ix.indisprimary as primarykey,\n not ix.indisunique as non_unique_original,\n not ix.indisunique as non_unique,\n CASE\n WHEN i.oid<>0 THEN true\n ELSE false\n END AS is_index,\n CASE\n WHEN f.atthasdef = 't' THEN pg_get_expr(d.adbin, d.adrelid)\n END AS default FROM pg_attribute f\n JOIN pg_class c ON c.oid = f.attrelid\n JOIN pg_type t ON t.oid = f.atttypid\n LEFT JOIN pg_attrdef d ON d.adrelid = c.oid AND d.adnum = f.attnum\n LEFT JOIN pg_namespace n ON n.oid = c.relnamespace\n LEFT JOIN pg_constraint p ON p.conrelid = c.oid AND f.attnum = ANY (p.conkey)\n LEFT JOIN pg_class AS g ON p.confrelid = g.oid\n LEFT JOIN pg_index AS ix ON f.attnum = ANY(ix.indkey) and c.oid = f.attrelid and c.oid = ix.indrelid\n LEFT JOIN pg_class AS i ON ix.indexrelid = i.oid\n WHERE\n c.relkind = 'r'::char\n AND n.nspname = ?\n AND c.relname = ?\n and i.oid<>0\n AND f.attnum > 0\n ORDER BY i.relname, f.attnum;",[this.schema,e.tn]);n.data.list=t}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async relationDelete(e){const t=this.relationDelete.name,n=new p.default;b.api(`${t}:args:`,e);const a=e.foreignKeyName||null;e.childTableWithSchema=e.childTable,e.parentTableWithSchema=e.parentTable;try{await this.sqlClient.raw(this.sqlClient.schema.table(e.childTableWithSchema,(function(t){t.dropForeign(e.childColumn,a)})).toQuery());const t=this.querySeparator()+this.sqlClient.schema.table(e.childTableWithSchema,(function(t){t.dropForeign(e.childColumn,a)})).toQuery(),r=this.querySeparator()+this.sqlClient.schema.table(e.childTableWithSchema,(function(t){t.foreign(e.childColumn,a).references(e.parentColumn).on(e.parentTableWithSchema)})).toQuery();n.data.object={upStatement:[{sql:t}],downStatement:[{sql:r}]}}catch(e){throw b.ppe(e,t),e}return n}async constraintList(e={}){const t=this.constraintList.name,n=new p.default;b.api(`${t}:args:`,e);try{const t=await this.sqlClient.raw('\n SELECT c.conname AS cstn,\n CASE\n WHEN c.contype = \'u\' THEN \'UNIQUE\'\n WHEN c.contype = \'p\' THEN \'PRIMARY KEY\'\n ELSE \'FOREIGN KEY\'\n END AS cst,\n col.attnum,\n sch.nspname AS "schema",\n tbl.relname AS "table",\n ARRAY_AGG(col.attname ORDER BY u.attposition) AS columns,\n pg_get_constraintdef(c.oid) AS definition\n FROM pg_constraint c\n JOIN LATERAL UNNEST(c.conkey) WITH ORDINALITY AS u(attnum, attposition) ON TRUE\n JOIN pg_class tbl ON tbl.oid = c.conrelid\n JOIN pg_namespace sch ON sch.oid = tbl.relnamespace\n JOIN pg_attribute col ON (col.attrelid = tbl.oid AND col.attnum = u.attnum)\n where tbl.relname=?\n GROUP BY constraint_name, col.attnum, constraint_type, "schema", "table", definition\n ORDER BY "schema", "table"; ',[e.tn]),a=[];for(let e=0,n=0;e<t.rows.length;++e,++n)if(t.rows[e].columns=t.rows[e].columns.replace("{",""),t.rows[e].columns=t.rows[e].columns.replace("}",""),t.rows[e].columns=t.rows[e].columns.split(","),1===t.rows[e].columns.length)a[n]=t.rows[e],a[n].columns=t.rows[e].columns[0],a[n].seq_in_index=1;else{const r=t.rows[e].columns.slice();for(let i=0;i<r.length;++i,++n)a[n]=JSON.parse(JSON.stringify(t.rows[e])),a[n].columns=r[i],a[n].seq_in_index=i;n--}n.data.list=a}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async relationList(e={}){const t=this.relationList.name,n=new p.default;b.api(`${t}:args:`,e);try{const{rows:t}=await this.sqlClient.raw("SELECT distinct\n tc.table_schema as ts,\n tc.constraint_name as cstn,\n tc.table_name as tn,\n kcu.column_name as cn,\n ccu.table_schema AS foreign_table_schema,\n ccu.table_name AS rtn,\n ccu.column_name AS rcn,\n pc.confupdtype as ur, pc.confdeltype as dr\n FROM\n information_schema.table_constraints AS tc\n JOIN information_schema.key_column_usage AS kcu\n ON tc.constraint_name = kcu.constraint_name\n AND tc.table_schema = kcu.table_schema\n JOIN information_schema.constraint_column_usage AS ccu\n ON ccu.constraint_name = tc.constraint_name\n AND ccu.table_schema = tc.table_schema\n join (select conname,confupdtype,confdeltype from pg_catalog.pg_constraint) pc\n on pc.conname = tc.constraint_name\n WHERE tc.constraint_type = 'FOREIGN KEY' AND tc.table_schema=:schema and tc.table_name=:table\n order by tc.table_name;",{schema:this.schema,table:e.tn}),a={a:"NO ACTION",c:"CASCADE",r:"RESTRICT",n:"SET NULL",d:"SET DEFAULT"};for(const e of t)e.ur=a[e.ur],e.dr=a[e.dr];n.data.list=t}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async relationListAll(e={}){const t=this.relationList.name,n=new p.default;b.api(`${t}:args:`,e);try{const{rows:e}=await this.sqlClient.raw("SELECT DISTINCT tc.table_schema as ts,\n tc.constraint_name as cstn,\n tc.table_name as tn,\n kcu.column_name as cn,\n ccu.table_schema AS foreign_table_schema,\n ccu.table_name AS rtn,\n ccu.column_name AS rcn,\n pc.confupdtype as ur,\n pc.confdeltype as dr\n FROM information_schema.table_constraints AS tc\n JOIN information_schema.key_column_usage AS kcu\n ON tc.constraint_name = kcu.constraint_name\n AND tc.table_schema = kcu.table_schema\n JOIN information_schema.constraint_column_usage AS ccu\n ON ccu.constraint_name = tc.constraint_name\n AND ccu.table_schema = tc.table_schema\n join (select conname, confupdtype, confdeltype\n from pg_catalog.pg_constraint) pc\n on pc.conname = tc.constraint_name\n WHERE tc.constraint_type = 'FOREIGN KEY'\n AND tc.table_schema = ?\n order by tc.table_name;",[this.schema]),t={a:"NO ACTION",c:"CASCADE",r:"RESTRICT",n:"SET NULL",d:"SET DEFAULT"};for(const n of e)n.ur=t[n.ur],n.dr=t[n.dr];n.data.list=e}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async triggerList(e={}){const t=this.triggerList.name,n=new p.default;b.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const{rows:t}=await this.sqlClient.raw("select * from information_schema.triggers where trigger_schema=? and event_object_table=?",[this.schema,e.tn]);for(let e=0;e<t.length;++e)t[e].statement=t[e].action_statement,t[e].table=t[e].event_object_table,t[e].trigger=t[e].trigger_name,t[e].event=t[e].event_manipulation,t[e].timing=t[e].action_timing;n.data.list=t}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async functionList(e={}){const t=this.functionList.name,n=new p.default;b.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const{rows:t}=await this.raw("SELECT *\n FROM pg_catalog.pg_namespace n\n JOIN pg_catalog.pg_proc p\n ON pronamespace = n.oid\n WHERE nspname = ?;",[this.schema]),a=[];for(let e=0;e<t.length;++e)"prokind"in t[e]&&"p"===t[e].prokind||a.push({create_function:t[e].prosrc,function_name:t[e].proname});n.data.list=a}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async procedureList(e={}){const t=this.procedureList.name,n=new p.default;n.data.list=[],b.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const{rows:t}=await this.raw("SELECT *\n FROM pg_catalog.pg_namespace n\n JOIN pg_catalog.pg_proc p\n ON pronamespace = n.oid\n WHERE nspname = ?;",[this.schema]),a=[];for(let e=0;e<t.length;++e)"prokind"in t[e]&&"p"===t[e].prokind&&a.push({create_procedure:t[e].prosrc,procedure_name:t[e].proname});n.data.list=a}catch(e){}return b.api(`${t}: result`,n),n}async viewList(e={}){const t=this.viewList.name,n=new p.default;b.api(`${t}:args:`,e);try{const{rows:e}=await this.sqlClient.raw("select *\n from INFORMATION_SCHEMA.views\n WHERE table_schema = ?;",[this.schema]);for(let t=0;t<e.length;++t)e[t].view_name=e[t].tn||e[t].table_name;n.data.list=e}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async functionRead(e={}){const t=this.functionRead.name,n=new p.default;b.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const{rows:t}=await this.sqlClient.raw("SELECT format('%I.%I(%s)', ns.nspname, p.proname, oidvectortypes(p.proargtypes)) as function_declaration, pg_get_functiondef(p.oid) as create_function\n FROM pg_proc p INNER JOIN pg_namespace ns ON (p.pronamespace = ns.oid)\n WHERE ns.nspname = ? and p.proname = ?;",[this.schema,e.function_name]);for(let n=0;n<t.length;++n)t[n].function_name=e.function_name;n.data.list=t}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async procedureRead(e={}){const t=this.procedureRead.name,n=new p.default;b.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const t=await this.sqlClient.raw("show create procedure ?;",[e.procedure_name]),a=[];if(2===t.length)for(let e=0;e<t[0].length;++e){let n=t[0][e];n=(0,o.default)(n,((e,t)=>t.toLowerCase())),n.create_procedure=n["create procedure"],a.push(n)}else b.debug("Unknown response for tableList:",t);n.data.list=a}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async viewRead(e={}){const t=this.viewRead.name,n=new p.default;b.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const{rows:t}=await this.sqlClient.raw("select * from INFORMATION_SCHEMA.views WHERE table_name=? and table_schema = ANY (current_schemas(false));",[e.view_name]);for(let e=0;e<t.length;++e)t[e].view_name=t[e].tn;n.data.list=t}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async triggerRead(e={}){const t=this.triggerRead.name,n=new p.default;b.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const t=await this.sqlClient.raw("SHOW FULL TABLES IN ?? WHERE TABLE_TYPE LIKE 'VIEW';",[e.databaseName]);let a=[];if(2===t.length){const n=[];for(let a=0;a<t[0].length;++a){const r=t[0][a];r.view_name=r[`Tables_in_${e.databaseName}`],n.push(r)}a=n}else b.debug("Unknown response for tableList:",t);n.data.list=a}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async schemaCreate(e={}){const t=this.schemaCreate.name,n=new p.default;b.api(`${t}:args:`,e);try{await this.sqlClient.raw("create database ??",[e.database_name])}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async schemaDelete(e={}){const t=this.schemaDelete.name,n=new p.default;b.api(`${t}:args:`,e);try{await this.sqlClient.raw("drop database ??",[e.database_name])}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async triggerDelete(e={}){const t=this.triggerDelete.name,n=new p.default;b.api(`${t}:args:`,e);try{const t=this.genQuery("DROP TRIGGER IF EXISTS ?? ON ??",[e.trigger_name,e.tn]);await this.sqlClient.raw(t),n.data.object={upStatement:[{sql:this.querySeparator()+t}],downStatement:[{sql:this.querySeparator()+this.genQuery(`CREATE TRIGGER ?? \n${e.timing} ${e.event}\nON ?? FOR EACH ROW\n${e.statement}`,[e.trigger_name,e.tn])}]}}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async functionDelete(e={}){const t=this.functionDelete.name,n=new p.default;b.api(`${t}:args:`,e);const a=this.querySeparator()+`DROP FUNCTION IF EXISTS ${this.genIdentifier(e.function_declaration)}`,r=this.querySeparator()+e.create_function;try{await this.sqlClient.raw(a),n.data.object={upStatement:[{sql:a}],downStatement:[{sql:r}]}}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async procedureDelete(e={}){const t=this.procedureDelete.name,n=new p.default;b.api(`${t}:args:`,e);try{await this.sqlClient.raw(`DROP PROCEDURE IF EXISTS ${this.genIdentifier(e.procedure_name)}`)}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async _getQuery(e){try{if((0,s.default)(this._version)){const t=await this.version();this._version=t.data.object,b.debug(`Version was empty for ${e.func}: population version for database as`,this._version)}return this._version.key in this.queries[e.func]?this.queries[e.func][this._version.key].sql:this.queries[e.func].default.sql}catch(e){throw b.ppe(e,this._getQuery.name),e}}async functionCreate(e={}){const t=this.functionCreate.name,n=new p.default;b.api(`${t}:args:`,e);try{const t=this.querySeparator()+e.create_function;await this.sqlClient.raw(t);const a=await this.functionRead({function_name:e.function_name}),r=this.querySeparator()+`DROP FUNCTION IF EXISTS ${this.genIdentifier(a.data.list[0].function_declaration)}`;n.data.object={upStatement:[{sql:t}],downStatement:[{sql:r}]}}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async functionUpdate(e={}){const t=this.functionUpdate.name,n=new p.default;b.api(`${t}:args:`,e);try{const t=this.querySeparator()+e.create_function;let a=this.querySeparator()+e.oldCreateFunction;await this.sqlClient.raw(`DROP FUNCTION IF EXISTS ${this.genIdentifier(e.function_declaration)};`),await this.sqlClient.raw(t);const r=await this.functionRead({function_name:e.function_name});a=`DROP FUNCTION IF EXISTS ${this.genIdentifier(r.data.list[0].function_declaration)};`+a,n.data.object={upStatement:[{sql:t}],downStatement:[{sql:a}]}}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async procedureCreate(e={}){const t=this.procedureCreate.name,n=new p.default;b.api(`${t}:args:`,e);try{const t=this.querySeparator()+`CREATE TRIGGER ${this.genIdentifier(e.procedure_name)} \n${e.timing} ${e.event}\nON ${this.genIdentifier(e.tn)} FOR EACH ROW\n${e.statement}`;await this.sqlClient.raw(t);const a=this.querySeparator()+`DROP PROCEDURE IF EXISTS ${this.genIdentifier(e.procedure_name)}`;n.data.object={upStatement:[{sql:t}],downStatement:[{sql:a}]}}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async procedureUpdate(e={}){const t=this.procedureUpdate.name,n=new p.default;b.api(`${t}:args:`,e);try{const t=this.querySeparator()+`DROP TRIGGER ${e.procedure_name}`,a=this.querySeparator()+`CREATE TRIGGER ${this.genIdentifier(e.procedure_name)} \n${e.timing} ${e.event}\nON ${this.genIdentifier(e.tn)} FOR EACH ROW\n${e.statement}`;await this.sqlClient.raw(t),await this.sqlClient.raw(a),n.data.object={upStatement:[{sql:a}],downStatement:[{sql:";"}]}}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async triggerCreate(e={}){const t=this.triggerCreate.name,n=new p.default;b.api(`${t}:args:`,e);try{const t=this.querySeparator()+`CREATE TRIGGER ${this.genIdentifier(e.trigger_name)} \n${e.timing} ${e.event}\nON ${this.genIdentifier(e.tn)} FOR EACH ROW\n${e.statement}`;await this.sqlClient.raw(t),n.data.object={upStatement:[{sql:t}],downStatement:[{sql:this.querySeparator()+`DROP TRIGGER ${this.genIdentifier(e.trigger_name)}`}]}}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async triggerUpdate(e={}){const t=this.triggerUpdate.name,n=new p.default;b.api(`${t}:args:`,e);try{await this.sqlClient.raw(`DROP TRIGGER ${this.genIdentifier(e.trigger_name)} ON ${this.genIdentifier(e.tn)}`),await this.sqlClient.raw(`CREATE TRIGGER ${this.genIdentifier(e.trigger_name)} \n${e.timing} ${e.event}\nON ${this.genIdentifier(e.tn)} FOR EACH ROW\n${e.statement}`),n.data.object={upStatement:this.querySeparator()+`DROP TRIGGER ${this.genIdentifier(e.trigger_name)} ON ${this.genIdentifier(e.tn)};${this.querySeparator()}CREATE TRIGGER ${this.genIdentifier(e.trigger_name)} \n${e.timing} ${e.event}\nON ${this.genIdentifier(e.tn)} FOR EACH ROW\n${e.statement}`,downStatement:this.querySeparator()+`CREATE TRIGGER ${this.genIdentifier(e.trigger_name)} \n${e.timing} ${e.event}\nON ${this.genIdentifier(e.tn)} FOR EACH ROW\n${e.oldStatement}`}}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async viewCreate(e={}){const t=this.viewCreate.name,n=new p.default;b.api(`${t}:args:`,e);try{const t=e.view_definition;await this.sqlClient.raw(t),n.data.object={upStatement:[{sql:this.querySeparator()+t}],downStatement:[{sql:this.querySeparator()+`DROP VIEW ${this.genIdentifier(e.view_name)}`}]}}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async viewUpdate(e={}){const t=this.viewUpdate.name,n=new p.default;b.api(`${t}:args:`,e);try{const t=`CREATE OR REPLACE VIEW ${this.genIdentifier(e.view_name)} AS \n${e.view_definition}`;await this.sqlClient.raw(t),n.data.object={upStatement:this.querySeparator()+t,downStatement:this.querySeparator()+`CREATE VIEW ${this.genIdentifier(e.view_name)} AS \n${e.oldViewDefination}`}}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async viewDelete(e={}){const t=this.viewDelete.name,n=new p.default;b.api(`${t}:args:`,e);try{const t=`DROP VIEW ${this.genIdentifier(e.view_name)}`;await this.sqlClient.raw(t),n.data.object={upStatement:[{sql:this.querySeparator()+t}],downStatement:[{sql:this.querySeparator()+`CREATE VIEW ${this.genIdentifier(e.view_name)} AS \n${e.oldViewDefination}`}]}}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async tableCreate(e){const t=this.tableCreate.name,n=new p.default;b.api(`${t}:args:`,e);try{e.table=e.tn,e.sqlClient=this.sqlClient;const t=this.querySeparator()+this.createTable(e.tn,e);await this.sqlClient.raw(t);const a=this.querySeparator()+this.sqlClient.schema.dropTable(e.table).toString();this.emit(`Success : ${t}`);const r=await this.afterTableCreate(e);n.data.object={upStatement:[{sql:t},...r.upStatement],downStatement:[...r.downStatement,{sql:a}]}}catch(e){throw b.ppe(e,t),e}return n}async afterTableCreate(e){const t={upStatement:[],downStatement:[]};let n="",a="";for(let t=0;t<e.columns.length;t++){const r=e.columns[t];if(r.au){const t=`xc_au_${e.tn}_${r.cn}`,i=`xc_trigger_${e.tn}_${r.cn}`,s=this.genQuery("CREATE OR REPLACE FUNCTION ??()\n RETURNS TRIGGER AS $$\n BEGIN\n NEW.?? = NOW();\n RETURN NEW;\n END;\n $$ LANGUAGE plpgsql;",[t,r.cn]);n+=this.querySeparator()+s+this.querySeparator()+this.genQuery("CREATE TRIGGER ??\n BEFORE UPDATE ON ??\n FOR EACH ROW\n EXECUTE PROCEDURE ??();",[i,e.tn,t]),a+=this.querySeparator()+this.genQuery("DROP TRIGGER IF EXISTS ?? ON ??;",[i,e.tn])+this.querySeparator()+this.genQuery("DROP FUNCTION IF EXISTS ??()",[t])}}return""!==n&&await this.sqlClient.raw(n),t.upStatement[0]={sql:n},t.downStatement[0]={sql:a},t}async afterTableUpdate(e){const t={upStatement:[],downStatement:[]};let n="",a="";for(let t=0;t<e.columns.length;t++){const r=e.columns[t];if(r.au&&1===r.altered){const t=`xc_au_${e.tn}_${r.cn}`,i=`xc_trigger_${e.tn}_${r.cn}`,s=this.genQuery("CREATE OR REPLACE FUNCTION ??()\n RETURNS TRIGGER AS $$\n BEGIN\n NEW.?? = NOW();\n RETURN NEW;\n END;\n $$ LANGUAGE plpgsql;",[t,r.cn]);n+=this.querySeparator()+s+this.querySeparator()+this.genQuery("CREATE TRIGGER ??\n BEFORE UPDATE ON ??\n FOR EACH ROW\n EXECUTE PROCEDURE ??();",[i,e.tn,t]),a+=this.querySeparator()+this.genQuery("DROP TRIGGER IF EXISTS ?? ON ??;",[i,e.tn])+this.querySeparator()+this.genQuery("DROP FUNCTION IF EXISTS ??()",[t])}}return""!==n&&await this.sqlClient.raw(n),t.upStatement[0]={sql:n},t.downStatement[0]={sql:a},t}async tableUpdate(e){const t=this.tableUpdate.name,n=new p.default;b.api(`${t}:args:`,e);try{e.table=e.tn;const t=e.originalColumns;e.connectionConfig=this._connectionConfig,e.sqlClient=this.sqlClient;let a="",r="";for(let n=0;n<e.columns.length;++n){const i=(0,c.default)(t,{cn:e.columns[n].cno});4&e.columns[n].altered?(a+=this.alterTableRemoveColumn(e.table,e.columns[n],i,a),r+=this.alterTableAddColumn(e.table,i,e.columns[n],r)):2&e.columns[n].altered||8&e.columns[n].altered?(a+=this.alterTableChangeColumn(e.table,e.columns[n],i,a),r+=this.alterTableChangeColumn(e.table,i,e.columns[n],r)):1&e.columns[n].altered&&(a+=this.alterTableAddColumn(e.table,e.columns[n],i,a),r+=this.alterTableRemoveColumn(e.table,e.columns[n],i,r))}a+=(a?";":"")+this.alterTablePK(e.table,e.columns,e.originalColumns,a),r+=(r?";":"")+this.alterTablePK(e.table,e.originalColumns,e.columns,r),""!==a&&await this.sqlClient.raw(a);const i=await this.afterTableUpdate(e);n.data.object={upStatement:[{sql:this.querySeparator()+a},...i.upStatement],downStatement:[...i.downStatement,{sql:this.querySeparator()+r}]}}catch(e){throw b.ppe(e,t),e}return n}async tableDelete(e){const t=this.tableDelete.name,n=new p.default;b.api(`${t}:args:`,e);try{e.sqlClient=this.sqlClient;const t=this.querySeparator()+this.sqlClient.schema.dropTable(e.tn).toString();let a=this.createTable(e.tn,e),r=await this.relationList(e);r=r.data.list;for(const e of r){const t=this.sqlClient.raw(this.sqlClient.schema.table(e.tn,(function(t){t=t.foreign(e.cn,null).references(e.rcn).on(e.rtn),e.ur&&(t=t.onUpdate(e.ur)),e.dr&&t.onDelete(e.dr)})).toQuery());a+=this.querySeparator()+t,await t}let i=await this.indexList(e);i=i.data.list.filter((({cst:e})=>"p"!==e&&"f"!==e));const s={};for(const{key_name:t,non_unique:n,cn:a}of i)t in s||(s[t]={tn:e.tn,indexName:t,non_unique:n,columns:[]}),s[t].columns.push(a);for(const{non_unique:e,tn:t,columns:n,indexName:r}of Object.values(s))a+=this.querySeparator()+this.sqlClient.schema.table(t,(function(t){e?t.index(n,r):t.unique(n,r)})).toQuery();this.emit(`Success : ${t}`),await this.sqlClient.raw(this.sqlClient.schema.dropTable(e.tn).toQuery()),n.data.object={upStatement:[{sql:t}],downStatement:[{sql:this.querySeparator()+a}]}}catch(e){throw b.ppe(e,t),e}return n}async tableCreateStatement(e){const t=this.tableCreateStatement.name;let n=new p.default;b.api(`${t}:args:`,e);try{n=await this.columnList(e);const t=this.createTable(e.tn,{tn:e.tn,columns:n.data.list});n.data=t}catch(e){throw b.ppe(e,t),e}return n}async tableInsertStatement(e){const t=this.tableCreateStatement.name,n=new p.default;b.api(`${t}:args:`,e);try{n.data=`INSERT INTO \`${e.tn}\` (`;let t=" VALUES (";const a=await this.columnList(e);if(a.data&&a.data.list)for(let e=0;e<a.data.list.length;++e)e?(n.data+=`, \`"${a.data.list[e].cn}"\`\n\t`,t+=`, <${a.data.list[e].cn}>\n\t`):(n.data+=`\n"${a.data.list[e].cn}"\n\t`,t+=`\n<${a.data.list[e].cn}>\n\t`);n.data+=")",t+=");",n.data+=t}catch(e){throw b.ppe(e,t),e}return n}async tableUpdateStatement(e){const t=this.tableUpdateStatement.name,n=new p.default;b.api(`${t}:args:`,e);try{n.data=`UPDATE "${e.tn}" \nSET\n`;const t=await this.columnList(e);if(t.data&&t.data.list)for(let e=0;e<t.data.list.length;++e)n.data+=e?`,"${t.data.list[e].cn}" = <\`${t.data.list[e].cn}\`>\n\t`:`"${t.data.list[e].cn}" = <\`${t.data.list[e].cn}\`>\n\t`;n.data+=";"}catch(e){throw b.ppe(e,t),e}return n}async tableDeleteStatement(e){const t=this.tableDeleteStatement.name,n=new p.default;b.api(`${t}:args:`,e);try{n.data=`DELETE FROM "${e.tn}" where ;`}catch(e){throw b.ppe(e,t),e}return n}async tableTruncateStatement(e){const t=this.tableTruncateStatement.name,n=new p.default;b.api(`${t}:args:`,e);try{n.data=`TRUNCATE TABLE "${e.tn}";`}catch(e){throw b.ppe(e,t),e}return n}async tableSelectStatement(e){const t=this.tableSelectStatement.name,n=new p.default;b.api(`${t}:args:`,e);try{n.data="SELECT ";const t=await this.columnList(e);if(t.data&&t.data.list)for(let e=0;e<t.data.list.length;++e)n.data+=e?`, "${t.data.list[e].cn}"\n\t`:`"${t.data.list[e].cn}"\n\t`;n.data+=` FROM "${e.tn}";`}catch(e){throw b.ppe(e,t),e}return n}alterTablePK(e,t,n,a,r=!1){const i=[],s=[];let o=0;for(let e=0;e<t.length;++e)t[e].pk&&4!==t[e].altered&&s.push(t[e].cn);for(let e=0;e<n.length;++e)n[e].pk&&i.push(n[e].cn);if(s.length===i.length){for(let e=0;e<s.length;++e)if(i[e]!==s[e]){o=1;break}}else o=s.length-i.length;let c="";return(s.length||i.length)&&o&&(c+=i.length?this.genQuery("alter TABLE ?? drop constraint IF EXISTS ??;",[e,`${e}_pkey`]):"",s.length&&(c+=r?this.genQuery(", PRIMARY KEY(??)",[s]):this.genQuery("alter TABLE ?? add constraint ?? PRIMARY KEY(??);",[e,`${e}_pkey`,s]))),c}alterTableRemoveColumn(e,t,n,a){let r=a?",":"";return r+=this.genQuery("ALTER TABLE ?? DROP COLUMN ??",[e,t.cn],!0),r}createTableColumn(e,t,n,a){return this.alterTableColumn(e,t,n,a,0)}alterTableAddColumn(e,t,n,a){return this.alterTableColumn(e,t,n,a,1)}alterTableChangeColumn(e,t,n,a){return this.alterTableColumn(e,t,n,a,2)}createTable(e,t){let n="";for(let a=0;a<t.columns.length;++a)n+=this.createTableColumn(e,t.columns[a],null,n);return n+=this.alterTablePK(e,t.columns,[],n,!0),n=this.genQuery(`CREATE TABLE ?? (${n});`,[t.tn]),n}alterTableColumn(e,t,n,a,r=2){let i="";const s=this.sanitiseDefaultValue(t.cdf),o=!0;if(0===r)i=a?",":"",t.ai?"int8"===t.dt||t.dt.indexOf("bigint")>-1?i+=this.genQuery(" ?? bigserial",[t.cn],o):"int2"===t.dt||t.dt.indexOf("smallint")>-1?i+=this.genQuery(" ?? smallserial",[t.cn],o):i+=this.genQuery(" ?? serial",[t.cn],o):(i+=this.genQuery(` ?? ${this.sanitiseDataType(t.dt)}`,[t.cn],o),i+=t.rqd?" NOT NULL":" NULL",i+=s?` DEFAULT ${s}`:"",i+=t.unique?" UNIQUE":"");else if(1===r)i+=this.genQuery(` ADD ?? ${this.sanitiseDataType(t.dt)}`,[t.cn],o),i+=t.rqd?" NOT NULL":" NULL",i+=s?` DEFAULT ${s}`:"",i+=t.unique?" UNIQUE":"",i=this.genQuery(`ALTER TABLE ?? ${i};`,[e],o);else{if(t.cn!==n.cn&&(i+=this.genQuery("\nALTER TABLE ?? RENAME COLUMN ?? TO ?? ;\n",[e,n.cn,t.cn],o)),t.dt!==n.dt){i+=this.genQuery("\nALTER TABLE ?? ALTER COLUMN ?? DROP DEFAULT;\n",[e,t.cn],o),[u.UITypes.Date,u.UITypes.DateTime,u.UITypes.Time,u.UITypes.Duration].includes(t.uidt)&&(i+=h.default.dateConversionFunction.default.sql),i+=this.genQuery(`\nALTER TABLE ?? ALTER COLUMN ?? TYPE ${this.sanitiseDataType(t.dt)} USING `,[e,t.cn],o);const a=(0,m.formatColumn)(this.genQuery("??",[t.cn],o),n.uidt),r="number"==typeof t.dtxp?t.dtxp:null,s=(0,m.generateCastQuery)(t.uidt,t.dt,a,r,t.meta.date_format||"YYYY-MM-DD");i+=this.genQuery(s,[],o)}t.rqd!==n.rqd&&(i+=this.genQuery("\nALTER TABLE ?? ALTER COLUMN ?? ",[e,t.cn],o),i+=t.rqd?" SET NOT NULL;\n":" DROP NOT NULL;\n"),t.cdf!==n.cdf&&(i+=this.genQuery("\nALTER TABLE ?? ALTER COLUMN ?? ",[e,t.cn],o),i+=t.cdf?` SET DEFAULT ${this.sanitiseDefaultValue(t.cdf)};\n`:" DROP DEFAULT;\n")}return i}get schema(){return this.connectionConfig&&this.connectionConfig.searchPath&&this.connectionConfig.searchPath[0]||"public"}async totalRecords(e={}){const t=this.totalRecords.name,n=new p.default;b.api(`${t}:args:`,e);try{const e=await this.sqlClient.raw("SELECT SUM(n_live_tup) as TotalRecords FROM pg_stat_user_tables;");n.data=e.rows[0]}catch(e){n.code=-1,n.message=e.message,n.object=e}finally{b.api(`${t} :result: ${n}`)}return n}async getDefaultByteaOutputFormat(){var e,t;const n=this.getDefaultByteaOutputFormat.name,a=new p.default;b.api(`${n}:args:`,{});try{const n=await this.sqlClient.raw("SHOW bytea_output;");a.data=null===(t=null===(e=n.rows)||void 0===e?void 0:e[0])||void 0===t?void 0:t.bytea_output}catch(e){a.data="escape"}finally{b.api(`${n} :result: ${a}`)}return a}async tableRename(e){const t=this.tableCreate.name,n=new p.default;b.api(`${t}:args:`,e);try{e.table=e.tn,await this.sqlClient.raw(this.sqlClient.schema.renameTable(this.sqlClient.raw("??.??",[this.schema,e.tn_old]),e.tn).toQuery());const t=this.querySeparator()+this.sqlClient.schema.renameTable(this.sqlClient.raw("??.??",[this.schema,e.tn]),e.tn_old).toQuery();this.emit(`Success : ${t}`);const a=this.querySeparator()+this.sqlClient.schema.renameTable(this.sqlClient.raw("??.??",[this.schema,e.tn_old]),e.tn).toQuery();n.data.object={upStatement:[{sql:t}],downStatement:[{sql:a}]}}catch(e){throw b.ppe(e,t),e}return n}}t.default=g},5661:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=a(n(4504)),i=a(n(3815)),s=new(a(n(2911)).default)("YBClient");class o extends r.default{constructor(e){super(e)}async tableList(e={}){const t=this.tableList.name,n=new i.default;s.api(`${t}:args:`,e);try{const{rows:e}=await this.raw("select tablename as tn, * from pg_catalog.pg_tables where schemaname != 'information_schema' and schemaname != 'pg_catalog'");n.data.list=e}catch(e){throw s.ppe(e,t),e}return s.api(`${t}: result`,n),n}async columnList(e={}){const t=this.columnList.name,n=new i.default;s.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const t=await this.raw('\n select c.relname as tn, a.attname as cn, pg_catalog.format_type(a.atttypid, a.atttypmod) as "dt",a.attnotnull as "not_nullable",\n pg_catalog.pg_get_expr(ad.adbin, ad.adrelid, true) as cdf, dsc.description as comment,a.attnum as cop,\n coalesce(i.indisprimary,false) as pk,\n a.*,ad.oid as attr_id\n FROM pg_catalog.pg_attribute a\n INNER JOIN pg_catalog.pg_class c ON (a.attrelid=c.oid)\n LEFT OUTER JOIN pg_catalog.pg_attrdef ad ON (a.attrelid=ad.adrelid AND a.attnum = ad.adnum)\n LEFT OUTER JOIN pg_catalog.pg_description dsc ON (c.oid=dsc.objoid AND a.attnum = dsc.objsubid)\n LEFT JOIN pg_index i ON (a.attnum = any(i.indkey) and a.attrelid = i.indrelid and i.indrelid = :table::regclass AND i.indisprimary)\n WHERE NOT a.attisdropped AND c.relname = :table and a.attnum > 0 ORDER BY a.attnum',{table:e.tn}),a=[];for(let n=0;n<t.rows.length;++n){const r={};r.tn=e.tn,r.cn=t.rows[n].cn,r.dt=t.rows[n].dt,r.np=t.rows[n].np,r.ns=t.rows[n].ns,r.clen=t.rows[n].clen,r.dp=t.rows[n].dp,r.cop=t.rows[n].cop,r.dtx=this.getKnexDataType(r.dt),r.pk=null!==t.rows[n].pk_constraint_name,r.not_nullable=t.rows[n].not_nullable,r.nrqd=!r.not_nullable,t.rows[n].ct=t.rows[n].dt||"",r.un=-1!==t.rows[n].ct.indexOf("unsigned"),r.ai=!1,t.rows[n].cdf&&(r.ai=-1!==t.rows[n].cdf.indexOf("nextval")),r.cdf=t.rows[n].cdf?t.rows[n].cdf.replace(/::[\w (),]+$/,"").replace(/^'|'$/g,""):t.rows[n].cdf,r.cc=t.rows[n].comment,r.csn=t.rows[n].csn,a.push(r)}n.data.list=a}catch(e){throw s.ppe(e,t),e}return s.api(`${t}: result`,n),n}}t.default=o},5733:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TIME_FORMATS=t.DATE_FORMATS=void 0;const n={MM:"[0-9]{1,2}"};t.DATE_FORMATS={ymd:Object.keys(n).map((e=>[`Y-${e}-DD`,`^\\d{1,4}[:\\- /]+${n[e]}[:\\- /]+\\d{1,2}$`])),dmy:Object.keys(n).map((e=>[`DD-${e}-Y`,`^\\d{1,2}[:\\- /]+${n[e]}[:\\- /]+\\d{1,4}$`])),mdy:Object.keys(n).map((e=>[`${e}-DD-Y`,`^${n[e]}[:\\- /]+\\d{1,2}[:\\- /]+\\d{1,4}$`])),empty:[["","^.*$"]]},t.TIME_FORMATS=[["HH24:MI:SS:MS:US","^\\d{1,2}[:\\- /]+\\d{1,2}[:\\- /]+\\d{1,2}[:\\- /]+\\d{1,3}[:\\- /]+\\d*$"],["HH24:MI:SS:MS","^\\d{1,2}[:\\- /]+\\d{1,2}[:\\- /]+\\d{1,2}[:\\- /]+\\d{1,3}$"],["HH24:MI:SS","^\\d{1,2}[:\\- /]+\\d{1,2}[:\\- /]+\\d{1,2}$"],["HH24:MI","^\\d{1,2}[:\\- /]+\\d{1,2}$"],["HH24","^\\d{1,2}$"],["HH12:MI:SS:MS:US (AM|PM)","^\\d{1,2}[:\\- /]+\\d{1,2}[:\\- /]+\\d{1,2}[:\\- /]+\\d{1,3}[:\\- /]+\\d* (AM|PM)$"],["HH12:MI:SS:MS (AM|PM)","^\\d{1,2}[:\\- /]+\\d{1,2}[:\\- /]+\\d{1,2}[:\\- /]+\\d{1,3} (AM|PM)$"],["HH12:MI:SS (AM|PM)","^\\d{1,2}[:\\- /]+\\d{1,2}[:\\- /]+\\d{1,2} (AM|PM)$"],["HH12:MI (AM|PM)","^\\d{1,2}[:\\- /]+\\d{1,2} (AM|PM)$"],["HH12 (AM|PM)","^\\d{1,2} (AM|PM)$"]]},2389:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={columnList:{default:{sql:"SELECT\n c.table_name as tn,\n c.column_name as cn,\n c.data_type as dt,\n c.column_type as ct,\n c.character_maximum_length as clen,\n c.numeric_precision as np,\n c.numeric_scale as ns,\n c.datetime_precision as dp,\n c.ordinal_position as cop,\n c.column_key as ck,\n c.extra as ext, -- gives ai\n c.column_default as cdf,\n c.is_nullable as nrqd,\n c.privileges as priv,\n c.column_comment as cc,\n c.generation_expression,\n c.character_set_name as csn,\n c.collation_name as clnn,\n ct.CONSTRAINT_TYPE as cst\n FROM\n information_schema.COLUMNS as c\n Left join(\n select\n tc.CONSTRAINT_NAME,\n tc.TABLE_NAME,\n tc.CONSTRAINT_SCHEMA,\n tc.CONSTRAINT_TYPE,\n s.COLUMN_NAME\n from\n information_schema.TABLE_CONSTRAINTS as tc\n LEFT JOIN information_schema.STATISTICS as s ON\n s.table_schema = tc.CONSTRAINT_SCHEMA\n and s.TABLE_NAME = tc.TABLE_NAME\n and s.INDEX_NAME = tc.CONSTRAINT_NAME\n where\n tc.CONSTRAINT_SCHEMA = ?\n and s.TABLE_NAME = ? \n ) ct on\n c.TABLE_SCHEMA = ct.CONSTRAINT_SCHEMA\n AND c.TABLE_NAME = ct.TABLE_NAME\n AND c.COLUMN_NAME = ct.COLUMN_NAME\n WHERE\n c.table_schema = ?\n and c.TABLE_NAME = ?\n ORDER BY\n c.table_name,\n c.ordinal_position",paramsHints:["databaseName","tn","databaseName","tn"]}},constraintList:{default:{sql:"SELECT \n k.constraint_name as cstn, \n k.column_name as cn, \n k.ordinal_position as op, \n k.position_in_unique_constraint as puc, \n t.constraint_type as cst\nFROM information_schema.table_constraints t\nLEFT JOIN information_schema.key_column_usage k\nUSING(constraint_name,table_schema,table_name)\nWHERE\nt.table_schema=?\nAND t.table_name=?;",paramsHints:["database","tn"]}},createDatabaseIfNotExists:{default:{sql:"create database if not exists ??",paramsHints:["database"]}},createTableIfNotExists:{default:{sql:"",paramsHints:[]}},dropDatabase:{default:{sql:"drop database ??",paramsHints:["database"]}},databaseList:{default:{sql:"SHOW databases",paramsHints:[]}},hasDatabase:{default:{sql:"SHOW DATABASES LIKE ??",paramsHints:["databaseName"]}},indexList:{default:{sql:"show index from ??",paramsHints:["tn"]}},functionList:{default:{sql:"show function status where db=?",paramsHints:["databaseName"]}},functionRead:{default:{sql:"SHOW CREATE FUNCTION ??",paramsHints:["function_name"]}},functionDelete:{default:{sql:"DROP FUNCTION IF EXISTS ??",paramsHints:["function_name"]}},procedureList:{default:{sql:"show procedure status where db=?",paramsHints:["databaseName"]}},procedureRead:{default:{sql:"show create procedure ??",paramsHints:["procedure_name"]}},procedureDelete:{default:{sql:"DROP PROCEDURE IF EXISTS ??",paramsHints:["procedure_name"]}},relationList:{default:{sql:"SELECT\n kcu.CONSTRAINT_NAME as cstn,\n kcu.TABLE_NAME as tn,\n kcu.COLUMN_NAME as cn,\n kcu.POSITION_IN_UNIQUE_CONSTRAINT as puc,\n kcu.REFERENCED_TABLE_NAME as rtn,\n kcu.REFERENCED_COLUMN_NAME as rcn,\n rc.MATCH_OPTION as mo,\n rc.UPDATE_RULE as ur,\n rc.DELETE_RULE as dr\n FROM\n information_schema.`KEY_COLUMN_USAGE` AS kcu\n INNER JOIN information_schema.REFERENTIAL_CONSTRAINTS AS rc ON\n kcu.CONSTRAINT_NAME = rc.CONSTRAINT_NAME\n WHERE\n kcu.table_schema = ?\n AND kcu.referenced_column_name IS NOT NULL\n AND kcu.table_name=?",paramsHints:["database","tn"]}},schemaCreate:{default:{sql:"create database ??",paramsHints:["database_name"]}},schemaDelete:{default:{sql:"drop database ??",paramsHints:["database_name"]}},triggerList:{default:{sql:"SHOW TRIGGERS like ?",paramsHints:["tn"]}},tableList:{default:{sql:"",paramsHints:[]}},testConnection:{default:{sql:"",paramsHints:[]}},triggerRead:{default:{sql:"SHOW FULL TABLES IN ?? WHERE TABLE_TYPE LIKE 'VIEW';",paramsHints:["databaseName"]}},triggerDelete:{default:{sql:"DROP TRIGGER ??",paramsHints:["trigger_name"]}},version:{default:{sql:"",paramsHints:[]}},viewRead:{default:{sql:"select * FROM INFORMATION_SCHEMA.VIEWS WHERE\n TABLE_SCHEMA = ? AND TABLE_NAME = ?",paramsHints:["databaseName","view_name"]}},viewList:{default:{sql:"SHOW FULL TABLES IN ?? WHERE TABLE_TYPE LIKE 'VIEW'",paramsHints:["databaseName"]}},dateConversionFunction:{default:{sql:"CREATE OR REPLACE FUNCTION to_date_time_safe(value text, format text) RETURNS TIMESTAMP AS $$\n BEGIN\n RETURN to_timestamp(value, format);\n EXCEPTION\n WHEN others THEN RETURN NULL; \n END;\n $$ LANGUAGE plpgsql;",paramsHints:[]}}}},7661:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatColumn=t.generateCastQuery=void 0;const a=n(5064),r=n(5733);function i(e){return`\n CAST(\n NULLIF(\n REPLACE(\n REPLACE(\n REGEXP_REPLACE(\n REGEXP_REPLACE(${e}, '[^0-9.]', '', 'g'), \n '(\\d)\\.', '\\1-'\n ), \n '.', ''\n ), \n '-', '.'\n ), ''\n ) AS DECIMAL\n )\n `}function s(e,t){if(!(t in r.DATE_FORMATS))throw new Error(`Invalid date format: ${t}`);const n="empty"===t?r.TIME_FORMATS:[...r.TIME_FORMATS,["","^$"]];return`CASE \n ${r.DATE_FORMATS[t].map((([t,a])=>n.map((([n,r])=>`WHEN ${e} ~ '${a.slice(0,-1)}\\s*${r.slice(1)}' THEN to_date_time_safe(${e}, '${t} ${n}')`)).join("\n"))).join("\n")}\n ELSE NULL\n END;`}function o(e){const t=e.indexOf("Y"),n=e.indexOf("M"),a=e.indexOf("D");return t<n?n<a?"ymd":t<a?"ydm":"dym":t<a?"myd":n<a?"mdy":"dmy"}t.generateCastQuery=function(e,t,n,r,c){switch(e){case a.UITypes.SingleLineText:case a.UITypes.MultiSelect:case a.UITypes.SingleSelect:case a.UITypes.Email:case a.UITypes.PhoneNumber:case a.UITypes.URL:return`${n}::VARCHAR(${r||255});`;case a.UITypes.LongText:return`${n}::TEXT;`;case a.UITypes.Number:return`CAST(${i(n)} AS BIGINT);`;case a.UITypes.Year:return function(e,t,n){return`\n NULLIF(\n NULLIF(\n LEAST(\n 10000, GREATEST(999, ${e})\n ), 999\n ), 10000\n );\n`}(i(n));case a.UITypes.Decimal:case a.UITypes.Currency:return`${i(n)};`;case a.UITypes.Percent:return`LEAST(100, GREATEST(0, ${i(n)}));`;case a.UITypes.Rating:return`LEAST(${r||5}, GREATEST(0, ${i(n)}));`;case a.UITypes.Checkbox:return`\n CASE\n WHEN LOWER(${u=n}) IN ('checked', 'x', 'yes', 'y', '1', '[x]', '☑', '✅', '✓', '✔', 'enabled', 'on', 'done', 'true') THEN true\n WHEN LOWER(${u}) IN ('unchecked', '', 'no', 'n', '0', '[]', '[ ]', 'disabled', 'off', 'false') THEN false\n ELSE null\n END;\n `;case a.UITypes.Date:return`CAST(${s(n,o(c)).slice(0,-1)} AS DATE);`;case a.UITypes.DateTime:return s(n,o(c));case a.UITypes.Time:return s(n,"empty");case a.UITypes.Duration:return function(e){return`\n CASE\n WHEN ${e} ~ '^\\d+:\\d{1,2}$' THEN 60 * CAST(SPLIT_PART(${e}, ':', 1) AS INT) + CAST(SPLIT_PART(${e}, ':', 2) AS INT)\n ELSE ${i(e)}\n END;\n `}(n);default:return`null::${t};`}var u},t.formatColumn=function(e,t){switch(t){case a.UITypes.LongText:case a.UITypes.SingleLineText:case a.UITypes.MultiSelect:case a.UITypes.Email:case a.UITypes.URL:case a.UITypes.SingleSelect:case a.UITypes.PhoneNumber:return e;case a.UITypes.Number:case a.UITypes.Decimal:case a.UITypes.Currency:case a.UITypes.Percent:case a.UITypes.Rating:case a.UITypes.Duration:case a.UITypes.Year:return`CAST(${e} AS VARCHAR(255))`;case a.UITypes.Checkbox:return`CAST(CASE WHEN ${e} THEN '1' ELSE '0' END AS TEXT)`;default:return`CAST(${e} AS TEXT)`}}},5838:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(9023),i=a(n(9896)),s=a(n(1832)),o=a(n(943)),c=a(n(9020)),u=a(n(133)),l=n(6331),d=a(n(6685)),p=a(n(2911)),f=a(n(3815)),m=a(n(9535)),h=(0,l.customAlphabet)("1234567890abcdefghijklmnopqrstuvwxyz_",6),b=new p.default("SqliteClient");class g extends d.default{constructor(e){e.connection.useNullAsDefault=!0,super(e),this.sqlClient=(null==e?void 0:e.knex)||(0,s.default)(e.connection),this.queries=m.default,this._version={}}getKnexDataTypes(){const e=new f.default;return e.data.list=["int","integer","tinyint","smallint","mediumint","bigint","int2","int8","character","blob sub_type text","numeric","blob","real","double","double precision","float","numeric","boolean","date","datetime","text","varchar","timestamp"],e}async testConnection(e={}){const t=this.testConnection.name,n=new f.default;b.api(`${t}:args:`,e);try{await this.raw("SELECT 1+1 as data")}catch(e){b.ppe(e),n.code=-1,n.message=e.message}finally{b.api(`${t} :result: ${n}`)}return n}async version(e){const t=this.version.name,n=new f.default;b.api(`${t}:args:`,e);try{n.data.object={};const e=await this.raw("select sqlite_version() as version");b.debug(e[0]),n.data.object.version=e[0].version;const t=e[0].version.split(".");t.length&&3===t.length?(n.data.object.primary=t[0],n.data.object.major=t[1],n.data.object.minor=t[2],n.data.object.key=t[0]+t[1]):(n.code=-1,n.message=`Invalid version : ${e[0].version}`)}catch(e){b.ppe(e),n.code=-1,n.message=e.message}finally{b.api(`${t} :result: %o`,n)}return n}async createDatabaseIfNotExists(e){const t=this.createDatabaseIfNotExists.name,n=new f.default;b.api(`${t}:args:`,e);try{if(await(0,r.promisify)(i.default.exists)(e.database))this.sqlClient=(0,s.default)(this.connectionConfig.connection);else{b.debug("sqlite file do no exists - create one");const t=await(0,r.promisify)(i.default.open)(e.database,"w"),n=await(0,r.promisify)(i.default.close)(t);b.debug("sqlite file is created",t,n),this.sqlClient=(0,s.default)(this.connectionConfig.connection),await this.sqlClient.raw('PRAGMA encoding = "UTF-8"')}}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async dropDatabase(e){const t=this.dropDatabase.name,n=new f.default;b.api(`${t}:args:`,e);try{b.debug("dropping database:",e),await(0,r.promisify)(i.default.unlink)(e.database),b.debug("dropped database:")}catch(e){b.ppe(e,t)}return b.api(`${t}: result`,n),n}async createTableIfNotExists(e={}){const t=this.createTableIfNotExists.name,n=new f.default;b.api(`${t}:args:`,e);try{if((await this.hasTable({tn:e.tn})).data.value)b.debug(`${e.tn} tables exists`);else{const t=await this.sqlClient.schema.createTable(e.tn,(function(e){e.increments(),e.string("title").notNullable(),e.string("titleDown").nullable(),e.string("description").nullable(),e.integer("batch").nullable(),e.string("checksum").nullable(),e.integer("status").nullable(),e.dateTime("created"),e.timestamps()}));b.debug("Table created:",`${e.tn}`,t)}}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async hasTable(e){const t=this.hasTable.name,n=new f.default;b.api(`${t}:args:`,e);try{await this.sqlClient.raw("select * from ??",[e.tn]),n.data.value=!0}catch(e){n.data.value=!1}return b.api(`${t}: result`,n),n}async hasDatabase(e={}){const t=this.hasDatabase.name,n=new f.default;b.api(`${t}:args:`,e);let a=!1;return b.debug("sqlite databaseName:",e.databaseName),a=await(0,r.promisify)(i.default.exists)(e.databaseName),n.data.value=a,n}async databaseList(e){return[]}async tableList(e={}){const t=this.tableList.name,n=new f.default;b.api(`${t}:args:`,e);try{const e=await this.sqlClient.raw("SELECT name as tn FROM sqlite_master where type = 'table'");n.data.list=[];for(let t=0;t<e.length;++t)"sqlite_sequence"!==e[t].tn.toLocaleLowerCase()&&n.data.list.push(e[t])}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async schemaList(e={}){const t=this.schemaList.name;throw new f.default,b.api(`${t}:args:`,e),new Error("SchemaList : Not supported for sqlite")}async columnList(e={}){const t=this.columnList.name,n=new f.default;b.api(`${t}:args:`,e);try{const t=await this.sqlClient.raw("PRAGMA table_info(??)",[e.tn]),a=(await this.triggerList(e)).data.list;for(let n=0;n<t.length;++n){switch(t[n].cn=t[n].name,t[n].cno=t[n].cn,t[n].dt=t[n].type.toLocaleLowerCase(),t[n].dt){case"integer":case"int":case"text":case"varchar":case"numeric":case"blob":case"blob sub_type text":case"real":case"timestamp":case"tinyint":case"smallint":case"mediumint":case"bigint":case"int2":case"int8":case"character":case"double":case"double precision":case"float":case"boolean":case"date":case"datetime":case"time":break;default:if("t"===t[n].dt[0]||"i"===t[n].dt[0]){const e=/(\w+)\(([^)]+)\)/.exec(t[n].dt);e&&e.length&&e.length>1&&(t[n].dtxp=e[2],t[n].dt=e[1])}}t[n].nrqd=1!==t[n].notnull,t[n].not_nullable=1===t[n].notnull,t[n].rqd=1===t[n].notnull,t[n].cdf=t[n].dflt_value,t[n].pk=t[n].pk>0,t[n].cop=t[n].cid,t[n].ai=t[n].pk&&"integer"===t[n].dt,t[n].dtx=this.getKnexDataType(t[n].dt),t[n].dtxp="",t[n].dtxs="",t[n].au=!!a.find((({trigger:a})=>a===`xc_trigger_${e.tn}_${t[n].cn}`))}n.data.list=t}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async indexList(e={}){const t=this.indexList.name,n=new f.default;b.api(`${t}:args:`,e);try{const t=await this.sqlClient.raw("PRAGMA index_list(??)",[e.tn]),a=[];for(let e=0,n=0;e<t.length;++e,++n){t[e].key_name=t[e].name,t[e].non_unique=0===t[e].unique?1:0,t[e].non_unique_original=0===t[e].unique?1:0,t[e].unique=1===t[e].unique?1:0;const r=await this.sqlClient.raw("PRAGMA index_info(??)",[t[e].key_name]);if(1===r.length)a[n]=t[e],a[n].cn=r[0].name,a[n].seq_in_index=1;else{for(let i=0;i<r.length;++i,++n)a[n]=JSON.parse(JSON.stringify(t[e])),a[n].cn=r[i].name,a[n].seq_in_index=i;n--}}n.data.list=a}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async relationList(e={}){const t=this.relationList.name,n=new f.default;b.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const t=await this.sqlClient.raw("PRAGMA foreign_key_list(??)",[e.tn]);for(let n=0;n<t.length;++n)t[n].tn=e.tn,t[n].cn=t[n].from,t[n].rtn=t[n].table,t[n].rcn=t[n].to,t[n].ur=t[n].on_update,t[n].dr=t[n].on_delete,t[n].mo=t[n].match;n.data.list=t}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async relationListAll(e={}){const t=this.relationList.name,n=new f.default;b.api(`${t}:args:`,e);try{let e=await this.tableList();e=e.data.list;const t=[];for(let n=0;n<e.length;++n){const a=await this.sqlClient.raw("PRAGMA foreign_key_list(??)",[e[n].tn]);for(let r=0;r<a.length;++r)a[r].tn=e[n].tn,a[r].cn=a[r].from,a[r].rtn=a[r].table,a[r].rcn=a[r].to,a[r].ur=a[r].on_update,a[r].dr=a[r].on_delete,a[r].mo=a[r].match,t.push(a[r])}n.data.list=t}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async triggerList(e={}){const t=this.triggerList.name,n=new f.default;b.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const t=await this.sqlClient.raw("select *, name as trigger_name from sqlite_master where type = 'trigger' and tbl_name=?;",[e.tn]);for(let e=0;e<t.length;++e)t[e].trigger=t[e].name,t[e].table=t[e].tbl_name,t[e].statement=t[e].sql;n.data.list=t}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async functionList(e={}){const t=this.functionList.name,n=new f.default;b.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const t=await this.sqlClient.raw("show function status where db=?",[e.databaseName]);if(2===t.length){const e=[];for(let n=0;n<t[0].length;++n){let a=t[0][n];a=(0,c.default)(a,(function(e,t){return t.toLowerCase()})),a.function_name=a.name,e.push(a)}n.data.list=e}else b.debug("Unknown response for databaseList:",t),n.data.list=[]}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async procedureList(e={}){const t=this.procedureList.name,n=new f.default;b.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const t=await this.sqlClient.raw("show procedure status where db=?",[e.databaseName]);if(2===t.length){const e=[];for(let n=0;n<t[0].length;++n){let a=t[0][n];a=(0,c.default)(a,(function(e,t){return t.toLowerCase()})),a.procedure_name=a.name,e.push(a)}n.data.list=e}else b.debug("Unknown response for databaseList:",t),n.data.list=[]}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async viewList(e={}){const t=this.viewList.name,n=new f.default;b.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const t=await this.sqlClient.raw("SELECT * FROM sqlite_master WHERE type = 'view'");for(let e=0;e<t.length;++e)t[e].view_name=t[e].name,t[e].view_definition=t[e].sql;n.data.list=t}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async functionRead(e={}){const t=this.functionRead.name,n=new f.default;b.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const t=await this.sqlClient.raw("SHOW CREATE FUNCTION ??;",[e.function_name]);if(2===t.length){const e=[];for(let n=0;n<t[0].length;++n){let a=t[0][n];a=(0,c.default)(a,(function(e,t){return t.toLowerCase()})),a.create_function=a["create function"],e.push(a)}n.data.list=e}else b.debug("Unknown response for databaseList:",t),n.data.list=[]}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async procedureRead(e={}){const t=this.procedureRead.name,n=new f.default;b.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const t=await this.sqlClient.raw("show create procedure ??;",[e.procedure_name]);if(2===t.length){const e=[];for(let n=0;n<t[0].length;++n){let a=t[0][n];a=(0,c.default)(a,(function(e,t){return t.toLowerCase()})),a.create_procedure=a["create procedure"],e.push(a)}n.data.list=e}else b.debug("Unknown response for databaseList:",t),n.data.list=[]}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async viewRead(e={}){const t=this.viewRead.name,n=new f.default;b.api(`${t}:args:`,e);try{const t=await this.sqlClient.raw("SELECT * FROM sqlite_master WHERE type = 'view' AND name = ?",[e.view_name]);for(let e=0;e<t.length;++e)t[e].view_name=t[e].name,t[e].view_definition=t[e].sql;n.data.list=t}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async triggerRead(e={}){const t=this.triggerRead.name,n=new f.default;b.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const t=await this.sqlClient.raw("SHOW FULL TABLES IN ?? WHERE TABLE_TYPE LIKE 'VIEW';",[e.databaseName]);if(2===t.length){const a=[];for(let n=0;n<t[0].length;++n){const r=t[0][n];r.view_name=r[`Tables_in_${e.databaseName}`],a.push(r)}n.data.list=a}else b.debug("Unknown response for databaseList:",t),n.data.list=[]}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async schemaCreate(e={}){const t=this.schemaCreate.name;return b.api(`${t}:args:`,e),await this.sqlClient.raw("create database ??",[e.database_name])}async schemaDelete(e={}){const t=this.schemaDelete.name;return b.api(`${t}:args:`,e),await this.sqlClient.raw("drop database ??",[e.database_name])}async triggerDelete(e={}){const t=this.triggerDelete.name,n=new f.default;b.api(`${t}:args:`,e);try{const t=this.querySeparator()+"DROP TRIGGER ??";await this.sqlClient.raw(t,[e.trigger_name]),n.data.object={upStatement:[{sql:t}],downStatement:[{sql:";"}]}}catch(e){throw b.ppe(e,t),e}return n}async functionDelete(e={}){const t=this.functionDelete.name;return b.api(`${t}:args:`,e),await this.sqlClient.raw("DROP FUNCTION IF EXISTS ??",[e.function_name])}async procedureDelete(e={}){const t=this.procedureDelete.name;return b.api(`${t}:args:`,e),await this.sqlClient.raw("DROP PROCEDURE IF EXISTS ??",[e.procedure_name])}async _getQuery(e){try{if((0,o.default)(this._version)){const t=await this.version();this._version=t.data.object,b.debug(`Version was empty for ${e.func}: population version for database as`,this._version)}return this._version.key in this.queries[e.func]?this.queries[e.func][this._version.key].sql:this.queries[e.func].default.sql}catch(e){throw b.ppe(e,this._getQuery.name),e}}async functionCreate(e={}){const t=this.functionCreate.name,n=new f.default;b.api(`${t}:args:`,e);try{const t=await this.sqlClient.raw(`CREATE TRIGGER ${this.genIdentifier(e.function_name)} \n${e.timing} ${e.event}\nON ${this.genIdentifier(e.tn)} FOR EACH ROW\n${e.statement}`);n.data.list=t}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async functionUpdate(e={}){const t=this.functionUpdate.name,n=new f.default;b.api(`${t}:args:`,e);try{await this.sqlClient.raw(`DROP TRIGGER ${this.genIdentifier(e.function_name)}`);const t=await this.sqlClient.raw(`CREATE TRIGGER ${this.genIdentifier(e.function_name)}\` \n${e.timing} ${e.event}\nON ${this.genIdentifier(e.tn)} FOR EACH ROW\n${e.statement}`);n.data.list=t}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async procedureCreate(e={}){const t=this.procedureCreate.name,n=new f.default;b.api(`${t}:args:`,e);try{const t=await this.sqlClient.raw(`CREATE TRIGGER ${this.genIdentifier(e.procedure_name)} \n${e.timing} ${e.event}\nON ${this.genIdentifier(e.tn)} FOR EACH ROW\n${e.statement}`);n.data.list=t}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async procedureUpdate(e={}){const t=this.procedureUpdate.name,n=new f.default;b.api(`${t}:args:`,e);try{await this.sqlClient.raw(`DROP TRIGGER ${e.procedure_name}`);const t=await this.sqlClient.raw(`CREATE TRIGGER ${this.genIdentifier(e.procedure_name)} \n${e.timing} ${e.event}\nON ${this.genIdentifier(e.tn)} FOR EACH ROW\n${e.statement}`);n.data.list=t}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async triggerCreate(e={}){const t=this.triggerCreate.name,n=new f.default;b.api(`${t}:args:`,e);try{const t=this.querySeparator()+`CREATE TRIGGER ${this.genIdentifier(e.trigger_name)} \n${e.timing} ${e.event}\nON ${this.genIdentifier(e.tn)} FOR EACH ROW\n${e.statement}`;await this.sqlClient.raw(t),n.data.object={upStatement:[{sql:t}],downStatement:[{sql:";"}]}}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async triggerUpdate(e={}){const t=this.triggerUpdate.name,n=new f.default;b.api(`${t}:args:`,e);try{await this.sqlClient.raw("DROP TRIGGER ??",[e.trigger_name]),await this.sqlClient.raw(`CREATE TRIGGER ${this.genIdentifier(e.trigger_name)} \n${e.timing} ${e.event}\nON ${this.genIdentifier(e.tn)} FOR EACH ROW\n${e.statement}`);const t=`DROP TRIGGER ${this.genIdentifier(e.trigger_name)};\nCREATE TRIGGER ${this.genIdentifier(e.trigger_name)} \n${e.timing} ${e.event}\nON ${this.genIdentifier(e.tn)} FOR EACH ROW\n${e.statement}`;n.data.object={upStatement:[{sql:t}],downStatement:[{sql:";"}]}}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async viewCreate(e={}){const t=this.viewCreate.name,n=new f.default;b.api(`${t}:args:`,e);try{const t=e.view_definition+";";await this.sqlClient.raw(t),n.data.object={upStatement:[{sql:this.querySeparator()+t}],downStatement:[{sql:";"}]}}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async viewUpdate(e={}){const t=this.viewUpdate.name,n=new f.default;b.api(`${t}:args:`,e);try{const t=e.view_definition;await this.sqlClient.raw(t),n.data.object={upStatement:[{sql:this.querySeparator()+t}],downStatement:[{sql:";"}]}}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async viewDelete(e={}){const t=this.viewDelete.name,n=new f.default;b.api(`${t}:args:`,e);try{await this.sqlClient.raw("DROP VIEW ??;",[e.view_name]),n.data.object={upStatement:[{sql:this.querySeparator()+`DROP VIEW ${e.view_name};`}],downStatement:[{sql:";"}]}}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async tableCreate(e){const t=this.tableCreate.name,n=new f.default;b.api(`${t}:args:`,e);try{e.table=e.tn,e.sqlClient=this.sqlClient;const t=this.querySeparator()+this.createTable(e.tn,e);await this.sqlClient.raw(t);const a=[{sql:";"}];this.emit(`Success : ${t}`);const r=await this.afterTableCreate(e);n.data.object={upStatement:[{sql:t},...r.upStatement],downStatement:a}}catch(e){throw b.ppe(e,t),e}return n}async afterTableCreate(e){const t={upStatement:[],downStatement:[]};let n="";const a=e.columns.find((e=>e.pk));if(!a)return t;const r=this.genIdentifier(e.tn);for(let t=0;t<e.columns.length;t++){const i=e.columns[t];if(i.au){const e=this.genIdentifier(`xc_trigger_${r}_${i.cn}`),t=`${this.querySeparator()}CREATE TRIGGER ${e}\n AFTER UPDATE\n ON "${r}" FOR EACH ROW\n BEGIN\n UPDATE "${r}" SET ${this.genIdentifier(i.cn)} = current_timestamp\n WHERE ${this.genIdentifier(a.cn)} = old.${this.genIdentifier(a.cn)};\n END;`;n+=t,await this.sqlClient.raw(t)}}return t.upStatement[0]={sql:n},t.downStatement[0]={sql:""},t}async afterTableUpdate(e){const t={upStatement:[],downStatement:[]};let n="";const a=e.columns.find((e=>e.pk));if(!a)return t;const r=this.genIdentifier(e.tn);for(let t=0;t<e.columns.length;t++){const i=e.columns[t];if(i.au&&1===i.altered){const t=this.genIdentifier(`xc_trigger_${e.tn}_${i.cn}`),s=`${this.querySeparator()}CREATE TRIGGER ${t}\n AFTER UPDATE\n ON "${r}" FOR EACH ROW\n BEGIN\n UPDATE "${r}" SET ${this.genIdentifier(i.cn)} = current_timestamp\n WHERE ${this.genIdentifier(a.cn)} = old.${this.genIdentifier(a.cn)};\n END;`;n+=s,await this.sqlClient.raw(s)}}return t.upStatement[0]={sql:n},t.downStatement[0]={sql:""},t}async tableUpdate(e){var t,n;const a=this.tableUpdate.name,r=new f.default;b.api(`${a}:args:`,e);try{e.table=e.tn;const a=e.originalColumns;e.connectionConfig=this._connectionConfig,e.sqlClient=this.sqlClient;let i="",s="";for(let t=0;t<e.columns.length;++t){const n=(0,u.default)(a,{cn:e.columns[t].cno});!e.columns[t].pk&&4&e.columns[t].altered?(i+=this.alterTableRemoveColumn(e.table,e.columns[t],n,i),s+=this.alterTableAddColumn(e.table,n,e.columns[t],s)):2&e.columns[t].altered||8&e.columns[t].altered?(i+=this.alterTableChangeColumn(e.table,e.columns[t],n,i),s+=";"):1&e.columns[t].altered&&(i+=this.alterTableAddColumn(e.table,e.columns[t],n,i),s+=";")}const o=this.alterTablePK(e.columns,e.originalColumns,i),c=null===(n=null===(t=await this.sqlClient.raw("PRAGMA foreign_keys;"))||void 0===t?void 0:t[0])||void 0===n?void 0:n.foreign_keys;c&&await this.sqlClient.raw("PRAGMA foreign_keys = OFF;"),await this.sqlClient.raw("PRAGMA legacy_alter_table = ON;"),await this.sqlClient.raw("SELECT * FROM ?? LIMIT 1",[e.table]);const l=await this.sqlClient.transaction(),d=e=>{const t=[];let n,a=0,r="";for(let i=0;i<e.length;i++)n||'"'!==e[i]&&"'"!==e[i]||(n='"'===e[i]?"double":"single"),("double"===n&&'"'===e[i]||"single"===n&&"'"===e[i])&&i>0&&"\\"!==e[i-1]&&a++,";"===e[i]&&a%2==0?(t.push(r),r="",n=void 0):r+=e[i];return""!==r.trim()&&t.push(r),t};try{const t=d(i);for(let e=0;e<t.length;e++)""!==t[e].trim()&&await l.raw(t[e]);o&&await l.schema.alterTable(e.table,(e=>{for(const t of o.oldPks.filter((e=>!o.newPks.includes(e))))e.dropPrimary(t);for(const t of o.dropPks)e.dropColumn(t);o.newPks.length&&e.primary(o.newPks)})),await l.commit()}catch(e){throw await l.rollback(),e}finally{c&&await this.sqlClient.raw("PRAGMA foreign_keys = ON;"),await this.sqlClient.raw("PRAGMA legacy_alter_table = OFF;")}console.log(i);const p=await this.afterTableUpdate(e);r.data.object={upStatement:[{sql:this.querySeparator()+i},...p.upStatement],downStatement:[{sql:";"}]}}catch(e){throw b.ppe(e,a),e}return r}async tableDelete(e){const t=this.tableDelete.name,n=new f.default;b.api(`${t}:args:`,e);try{e.sqlClient=this.sqlClient;const t=this.querySeparator()+this.sqlClient.schema.dropTable(e.tn).toString(),a=[{sql:";"}];this.emit(`Success : ${t}`),await this.sqlClient.schema.dropTable(e.tn),n.data.object={upStatement:[{sql:t}],downStatement:a}}catch(e){throw b.ppe(e,t),e}return n}async tableCreateStatement(e){const t=this.tableCreateStatement.name;let n=new f.default;b.api(`${t}:args:`,e);try{n=await this.columnList(e);const t=this.createTable(e.tn,{tn:e.tn,columns:n.data.list});n.data=t}catch(e){throw b.ppe(e,t),e}return n}async tableInsertStatement(e){const t=this.tableCreateStatement.name,n=new f.default;b.api(`${t}:args:`,e);try{n.data=`INSERT INTO "${e.tn}" (`;let t=" VALUES (";const a=await this.columnList(e);if(a.data&&a.data.list)for(let e=0;e<a.data.list.length;++e)e?(n.data+=`, \`${a.data.list[e].cn}\`\n\t`,t+=`, <${a.data.list[e].cn}>\n\t`):(n.data+=`\n${a.data.list[e].cn}\n\t`,t+=`\n<${a.data.list[e].cn}>\n\t`);n.data+=")",t+=");",n.data+=t}catch(e){throw b.ppe(e,t),e}return n}async tableUpdateStatement(e){const t=this.tableUpdateStatement.name,n=new f.default;b.api(`${t}:args:`,e);try{n.data=`UPDATE "${e.tn}" \nSET\n`;const t=await this.columnList(e);if(t.data&&t.data.list)for(let e=0;e<t.data.list.length;++e)n.data+=e?`,${t.data.list[e].cn} = <\`${t.data.list[e].cn}\`>\n\t`:`${t.data.list[e].cn} = <\`${t.data.list[e].cn}\`>\n\t`;n.data+=";"}catch(e){throw b.ppe(e,t),e}return n}async tableDeleteStatement(e){const t=this.tableDeleteStatement.name,n=new f.default;b.api(`${t}:args:`,e);try{n.data=`DELETE FROM "${e.tn}" where ;`}catch(e){throw b.ppe(e,t),e}return n}async tableTruncateStatement(e){const t=this.tableTruncateStatement.name,n=new f.default;b.api(`${t}:args:`,e);try{n.data=`TRUNCATE TABLE "${e.tn}";`}catch(e){throw b.ppe(e,t),e}return n}async tableSelectStatement(e){const t=this.tableSelectStatement.name,n=new f.default;b.api(`${t}:args:`,e);try{n.data="SELECT ";const t=await this.columnList(e);if(t.data&&t.data.list)for(let e=0;e<t.data.list.length;++e)n.data+=e?`, ${t.data.list[e].cn}\n\t`:`${t.data.list[e].cn}\n\t`;n.data+=` FROM "${e.tn}";`}catch(e){throw b.ppe(e,t),e}return n}async sequelizeModelCreate(e){const t=this.sequelizeModelCreate.name,n=new f.default;b.api(`${t}:args:`,e);try{console.time(t);let n=[];e.tn?n.push({tn:e.tn}):(n=await this.tableList(e),n=n.data.list);let a=await this.relationList(e);a=a.data.list,e.tn&&(a=a.filter((t=>t.tn===e.tn||t.rtn===e.tn)));for(let e=0;e<n.length;++e){let t=await this.columnList({tn:n[e].tn});t=t.data.list,console.log(`Sequelize model created: ${n[e].tn}(${t.length})\n`),console.log("\n\n- - - - - - - - - - - - - ")}console.timeEnd(t)}catch(e){throw b.ppe(e,t),e}return n}createTablePK(e,t){const n=[];for(let t=0;t<e.length;++t)e[t].pk&&4!==e[t].altered&&n.push(e[t].cn);let a="";return n.length&&(a+=this.genQuery(", PRIMARY KEY(??)",[n])),a}alterTablePK(e,t,n){const a=[],r=[],i=[];let s=!1;for(let t=0;t<e.length;++t)e[t].pk&&(4!==e[t].altered?a.push(e[t].cn):i.push(e[t].cn),s=!0);for(let e=0;e<t.length;++e)t[e].pk&&r.push(t[e].cn);return a.length===r.length&&a.every((e=>r.includes(e)))&&0===i.length&&(s=!1),!!s&&{newPks:a,oldPks:r,dropPks:i}}alterTableRemoveColumn(e,t,n,a){let r=a?";":"";return r+=this.genQuery("ALTER TABLE ?? DROP COLUMN ??",[e,t.cn],!0),r}createTableColumn(e,t,n,a){return this.alterTableColumn(e,t,n,a,0)}alterTableAddColumn(e,t,n,a){return this.alterTableColumn(e,t,n,a,1)}alterTableChangeColumn(e,t,n,a){return this.alterTableColumn(e,t,n,a,2)}createTable(e,t){let n="";for(let a=0;a<t.columns.length;++a)n+=this.createTableColumn(e,t.columns[a],null,n);return n+=this.createTablePK(t.columns,n),n=this.genQuery(`CREATE TABLE ?? (${n});`,[t.tn]),n}alterTableColumn(e,t,n,a,r=2){let i="",s=!0;if(2===r){const a=h(),r=this.genQuery("ALTER TABLE ?? RENAME COLUMN ?? TO ??;",[e,n.cn,`${n.cno}_nc_${a}`],s);let o="";o+=this.genQuery(` ADD ?? ${this.sanitiseDataType(t.dt)}`,[t.cn],s),o+=t.dtxp&&"text"!==t.dt?`(${this.genRaw(t.dtxp)})`:"",o+=t.cdf?` DEFAULT ${this.genValue(t.cdf)}`:t.rqd?" DEFAULT ''":" ",o+=t.rqd?" NOT NULL":" ",i+=t.unique?" UNIQUE":"",o=this.genQuery(`ALTER TABLE ?? ${o};`,[e],s),i=`${r}${o}${this.genQuery("UPDATE ?? SET ?? = ??;",[e,t.cn,`${n.cno}_nc_${a}`],s)}${this.genQuery("ALTER TABLE ?? DROP COLUMN ??;",[e,`${n.cno}_nc_${a}`],s)}`}else 0===r?(i=a?",":"",i+=this.genQuery(`?? ${this.sanitiseDataType(t.dt)}`,[t.cn],s),i+=t.dtxp&&"text"!==t.dt?`(${this.genRaw(t.dtxp)})`:"",i+=t.cdf?` DEFAULT ${this.genValue(t.cdf)}`:" ",i+=t.rqd?" NOT NULL":" "):1===r&&(s=!0,i+=this.genQuery(` ADD ?? ${this.sanitiseDataType(t.dt)}`,[t.cn],s),i+=t.dtxp&&"text"!==t.dt?`(${this.genRaw(t.dtxp)})`:"",i+=t.cdf?` DEFAULT ${this.genValue(t.cdf)}`:t.rqd?" DEFAULT ''":" ",i+=t.rqd?" NOT NULL":" ",i=this.genQuery(`ALTER TABLE ?? ${i};`,[e],s));return i}async totalRecords(e={}){const t=this.totalRecords.name,n=new f.default;b.api(`${t}:args:`,e);try{const e=await this.sqlClient.raw("SELECT name FROM sqlite_master WHERE type='table';");let t=0;for(const n of e){const e=await this.sqlClient.raw("SELECT COUNT(*) as ct FROM ??;",[n.name]);e&&e.length&&(t+=e[0].ct)}n.data.TotalRecords=t}catch(e){n.code=-1,n.message=e.message,n.object=e}finally{b.api(`${t} :result: ${n}`)}return n}genValue(e){return"CURRENT_TIMESTAMP"===e?e:super.genValue(e)}}t.default=g},9535:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={int:{},integer:{},tinyint:{},smallint:{},mediumint:{},bigint:{},"unsigned big int":{},int2:{},int4:{},character:{},varchar:{},nchar:{},text:{},clob:{},"varying character":{},"native character":{},blob:{},real:{},double:{},"double precision":{},float:{},numeric:{},decimal:{},boolean:{},date:{},datetime:{}}},2911:function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=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)&&a(t,e,n);return r(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=s(n(6986)),c=s(n(263));Promise.resolve().then((()=>i(n(3672))));const u=s(n(8897));t.default=class{constructor(e){this.namespace=e,this.api=(0,c.default)(`${e}_A`),this.warn=(0,c.default)(`${e}_W`),this.info=(0,c.default)(`${e}_I`),this.error=(0,c.default)(`${e}_E`),this.debug=(0,c.default)(`${e}_D`),u.default.createNamespace(e)}ppException(e,t=null){let n="";return n+=` EXCEPTION OCCURED!! in ${this.namespace.red.bold} @ ${t}`,n+="\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n".red.bold,n+="MESSAGE:\n".yellow.bold,n+=`${e.message}\n`.yellow.bold,n+="\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n".red.bold,n+="CODE:\n".yellow.bold,n+=`${e.code}\n`.yellow.bold,n+="\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n".red.bold,n+="STACK:\n".yellow.bold,n+=`${e.stack}\n`.yellow.bold,n+="\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n".red.bold,console.log((0,o.default)(n,{padding:1,borderStyle:"double"})),console.log(e),n}ppe(e,t){return this.ppException(e,t)}}},8897:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=a(n(263)),i={},s={api:"A",info:"I",error:"E",warn:"W",debug:"D"};t.default=class{static _create(e){i[e]?(i[e][`${e}_A`].enabled=r.default.enabled(`${e}_A`),i[e][`${e}_D`].enabled=r.default.enabled(`${e}_D`),i[e][`${e}_I`].enabled=r.default.enabled(`${e}_I`),i[e][`${e}_W`].enabled=r.default.enabled(`${e}_W`),i[e][`${e}_E`].enabled=r.default.enabled(`${e}_E`)):(i[e]={},i[e][`${e}_A`]={level:"api",enabled:r.default.enabled(`${e}_A`)},i[e][`${e}_W`]={level:"warn",enabled:r.default.enabled(`${e}_W`)},i[e][`${e}_I`]={level:"info",enabled:r.default.enabled(`${e}_I`)},i[e][`${e}_E`]={level:"error",enabled:r.default.enabled(`${e}_E`)},i[e][`${e}_D`]={level:"debug",enabled:r.default.enabled(`${e}_D`)})}static createNamespace(e){e in i||this._create(e)}static getNamespaces(){return i}static refreshNamespace(e){this._create(e)}static enable(e,t){const n=`${e}_${s[t]},${r.default.disable()}`;r.default.enable(`${n}`),this.refreshNamespace(e)}static disable(e,t){const n=`${e}_${s[t]}`;let a=`${r.default.disable()}`;a=a.replace(n,""),r.default.enable(a),this.refreshNamespace(e)}static enableAll(e){for(const t in s)r.default.enable(`${e}_${s[t]}`),this.refreshNamespace(e)}static disableAll(){r.default.disable()}}},3815:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{constructor(e=0,t="",n={}){this.code=e,this.message=t,this.data=n}}},757:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=a(n(5833));let i=null;t.default=class{constructor(){if(i)return i;this.evt=new r.default,i=this}}},9816:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=a(n(8938));t.default=class{constructor({flushAt:e=100,flushInterval:t=1e4}={}){this.batch=[],this.flushAt=e,this.flushInterval=t}capture(e){this.batch.push(e),this.batch.length>=this.flushAt&&this.flushBackground(),this.flushInterval&&(this.timeoutRef=setTimeout((()=>{this.flushBackground()}),this.flushInterval))}flushBackground(){this.timeoutRef&&(clearTimeout(this.timeoutRef),this.timeoutRef=null),this.flush().catch((()=>{}))}async flush(){const e=this.batch.splice(0,this.batch.length);e.length&&await r.default.post("https://nocodb.com/api/v1/telemetry",e)}}},4891:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCircularReplacer=void 0,t.getCircularReplacer=()=>{const e=new WeakSet;return(t,n)=>{if("object"==typeof n&&null!==n){if(e.has(n))return;e.add(n)}return n}}},6707:(e,t)=>{"use strict";function n(e,t,n){let a,r,i=void 0===n?2166136261:n;for(a=0,r=e.length;a<r;a++)i^=e.charCodeAt(a),i+=(i<<1)+(i<<4)+(i<<7)+(i<<8)+(i<<24);return t?("0000000"+(i>>>0).toString(16)).substr(-8):i>>>0}function a(e){const t=n(e,!0);return t+n(t+e)}Object.defineProperty(t,"__esModule",{value:!0}),t.partialExtract=t.deepMerge=t.getParamsHash=t.hash64=t.ROOT_ALIAS=t.getAliasGenerator=void 0,t.getAliasGenerator=function(e="__nc_"){let t=0;return()=>`${e}${t++}`},t.ROOT_ALIAS="__nc_root",t.hash64=a,t.getParamsHash=e=>{let t="";for(const[n,a]of Object.entries(e).sort())["limit","offset"].includes(n)||(t+=`${n}:${a}`);return a(t)};const r=e=>e&&"object"==typeof e&&"[object RegExp]"!==Object.prototype.toString.call(e)&&"[object Date]"!==Object.prototype.toString.call(e);t.deepMerge=(e,...n)=>{if(!n.length)return e;const a=n.shift();return void 0===a?e:(r(e)&&r(a)&&Object.keys(a).forEach((n=>{r(a[n])?(e[n]||(e[n]={}),(0,t.deepMerge)(e[n],a[n])):e[n]=a[n]})),(0,t.deepMerge)(e,...n))},t.partialExtract=(e,n)=>{if("object"!=typeof e||null===e)return e;const a={};for(const r of n)if(Array.isArray(r)){const[n,...i]=r;i.length?a[n]=Object.assign(a[n]||{},(0,t.partialExtract)(e[n],i)):a[n]=e[n]}else a[r]=e[r];return a}},7293:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sanitiseEmailContent=void 0;const n=e=>null==e?void 0:e.split("").map((e=>`&#${e.charCodeAt(0)};`)).join("");t.sanitiseEmailContent=e=>{var t;return null===(t=null==e?void 0:e.replace(/[<>&;?#,'"$]+/g,n))||void 0===t?void 0:t.replace(/\.|\/\/:/g,"<span>$&</span>")}},1762:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.decryptPropIfRequired=t.encryptPropIfRequired=t.credentialEncryptSecret=void 0;const r=a(n(2103));t.credentialEncryptSecret=process.env.NC_CONNECTION_ENCRYPT_KEY,t.encryptPropIfRequired=({data:e,prop:n="config",secret:a=t.credentialEncryptSecret})=>{if(e&&null!==e[n]&&void 0!==e[n])return a?r.default.AES.encrypt(JSON.stringify(e[n]),a).toString():e[n]},t.decryptPropIfRequired=({data:e,prop:n="config",secret:a=t.credentialEncryptSecret})=>{if(e&&null!==e[n]&&void 0!==e[n]){if(!a)return e[n];try{return JSON.parse(r.default.AES.decrypt(e[n],a).toString(r.default.enc.Utf8))}catch(t){return e[n]}}}},6818:(e,t)=>{"use strict";var n,a,r,i,s,o;Object.defineProperty(t,"__esModule",{value:!0}),t.RootScopeTables=t.RootScopes=t.DB_TYPES=t.COMPARISON_SUB_OPS=t.IS_WITHIN_COMPARISON_SUB_OPS=t.COMPARISON_OPS=t.GROUPBY_COMPARISON_OPS=t.CacheDelDirection=t.CacheGetType=t.CacheScope=t.sakilaTableNames=t.orderedMetaTables=t.MetaTableOldV2=t.MetaTable=void 0,function(e){e.PROJECT="nc_bases_v2",e.SOURCES="nc_source_v2",e.MODELS="nc_models_v2",e.COLUMNS="nc_columns_v2",e.COLUMN_VALIDATIONS="nc_columns_validations_v2",e.COL_PROPS="nc_col_props_v2",e.COL_RELATIONS="nc_col_relations_v2",e.COL_SELECT_OPTIONS="nc_col_select_options_v2",e.COL_LOOKUP="nc_col_lookup_v2",e.COL_ROLLUP="nc_col_rollup_v2",e.COL_FORMULA="nc_col_formula_v2",e.COL_QRCODE="nc_col_qrcode_v2",e.COL_BARCODE="nc_col_barcode_v2",e.FILTER_EXP="nc_filter_exp_v2",e.SORT="nc_sort_v2",e.SHARED_VIEWS="nc_shared_views_v2",e.ACL="nc_acl_v2",e.FORM_VIEW="nc_form_view_v2",e.FORM_VIEW_COLUMNS="nc_form_view_columns_v2",e.GALLERY_VIEW="nc_gallery_view_v2",e.GALLERY_VIEW_COLUMNS="nc_gallery_view_columns_v2",e.CALENDAR_VIEW="nc_calendar_view_v2",e.CALENDAR_VIEW_COLUMNS="nc_calendar_view_columns_v2",e.CALENDAR_VIEW_RANGE="nc_calendar_view_range_v2",e.GRID_VIEW="nc_grid_view_v2",e.GRID_VIEW_COLUMNS="nc_grid_view_columns_v2",e.KANBAN_VIEW="nc_kanban_view_v2",e.KANBAN_VIEW_COLUMNS="nc_kanban_view_columns_v2",e.USERS="nc_users_v2",e.ORGS_OLD="nc_orgs_v2",e.TEAMS="nc_teams_v2",e.TEAM_USERS="nc_team_users_v2",e.VIEWS="nc_views_v2",e.AUDIT="nc_audit_v2",e.HOOKS="nc_hooks_v2",e.HOOK_LOGS="nc_hook_logs_v2",e.PLUGIN="nc_plugins_v2",e.PROJECT_USERS="nc_base_users_v2",e.MODEL_ROLE_VISIBILITY="nc_disabled_models_for_role_v2",e.API_TOKENS="nc_api_tokens",e.SYNC_SOURCE="nc_sync_source_v2",e.SYNC_LOGS="nc_sync_logs_v2",e.MAP_VIEW="nc_map_view_v2",e.MAP_VIEW_COLUMNS="nc_map_view_columns_v2",e.STORE="nc_store",e.NOTIFICATION="notification",e.USER_REFRESH_TOKENS="nc_user_refresh_tokens",e.EXTENSIONS="nc_extensions",e.COMMENTS="nc_comments",e.USER_COMMENTS_NOTIFICATIONS_PREFERENCE="nc_user_comment_notifications_preference",e.COMMENTS_REACTIONS="nc_comment_reactions",e.JOBS="nc_jobs",e.INTEGRATIONS="nc_integrations_v2",e.INTEGRATIONS_STORE="nc_integrations_store_v2",e.FILE_REFERENCES="nc_file_references",e.COL_BUTTON="nc_col_button_v2"}(n||(t.MetaTable=n={})),function(e){e.PROJECT="nc_projects_v2",e.PROJECT_USERS="nc_project_users_v2",e.BASES="nc_bases_v2"}(a||(t.MetaTableOldV2=a={})),t.orderedMetaTables=[n.MODEL_ROLE_VISIBILITY,n.PLUGIN,n.AUDIT,n.TEAM_USERS,n.TEAMS,n.ORGS_OLD,n.PROJECT_USERS,n.USERS,n.MAP_VIEW,n.MAP_VIEW_COLUMNS,n.KANBAN_VIEW_COLUMNS,n.KANBAN_VIEW,n.CALENDAR_VIEW,n.CALENDAR_VIEW_COLUMNS,n.CALENDAR_VIEW_RANGE,n.GRID_VIEW_COLUMNS,n.GRID_VIEW,n.GALLERY_VIEW_COLUMNS,n.GALLERY_VIEW,n.FORM_VIEW_COLUMNS,n.FORM_VIEW,n.SHARED_VIEWS,n.SORT,n.FILTER_EXP,n.HOOK_LOGS,n.HOOKS,n.VIEWS,n.COL_FORMULA,n.COL_ROLLUP,n.COL_LOOKUP,n.COL_SELECT_OPTIONS,n.COL_RELATIONS,n.COLUMN_VALIDATIONS,n.COLUMNS,n.MODELS,n.SOURCES,n.PROJECT],t.sakilaTableNames=["actor","address","category","city","country","customer","film","film_actor","film_category","film_text","inventory","language","payment","rental","staff","store","actor_info","customer_list","film_list","nicer_but_slower_film_list","sales_by_film_category","sales_by_store","staff_list"],function(e){e.PROJECT="base",e.SOURCE="source",e.MODEL="model",e.COLUMN="column",e.COL_PROP="colProp",e.COL_RELATION="colRelation",e.COL_SELECT_OPTION="colSelectOption",e.COL_LOOKUP="colLookup",e.COL_ROLLUP="colRollup",e.COL_FORMULA="colFormula",e.COL_QRCODE="colQRCode",e.COL_BARCODE="colBarcode",e.FILTER_EXP="filterExp",e.SORT="sort",e.SHARED_VIEW="sharedView",e.ACL="acl",e.FORM_VIEW="formView",e.FORM_VIEW_COLUMN="formViewColumn",e.GALLERY_VIEW="galleryView",e.GALLERY_VIEW_COLUMN="galleryViewColumn",e.GRID_VIEW="gridView",e.GRID_VIEW_COLUMN="gridViewColumn",e.KANBAN_VIEW="kanbanView",e.CALENDAR_VIEW="calendarView",e.CALENDAR_VIEW_COLUMN="calendarViewColumn",e.CALENDAR_VIEW_RANGE="calendarViewRange",e.MAP_VIEW="mapView",e.MAP_VIEW_COLUMN="mapViewColumn",e.KANBAN_VIEW_COLUMN="kanbanViewColumn",e.USER="user",e.ORGS_OLD="orgs",e.TEAM="team",e.TEAM_USER="teamUser",e.VIEW="view",e.AUDIT="audit",e.HOOK="hook",e.PLUGIN="plugin",e.BASE_USER="baseUser",e.MODEL_ROLE_VISIBILITY="modelRoleVisibility",e.API_TOKEN="apiToken",e.INSTANCE_META="instanceMeta",e.USER_BASE="userBase",e.DASHBOARD_PROJECT_DB_PROJECT_LINKING="dashboardProjectDBProjectLinking",e.SINGLE_QUERY="singleQuery",e.JOBS="nc_jobs",e.JOBS_POLLING="nc_jobs_polling",e.PRESIGNED_URL="presignedUrl",e.STORE="store",e.PROJECT_ALIAS="baseAlias",e.MODEL_ALIAS="modelAlias",e.VIEW_ALIAS="viewAlias",e.SSO_CLIENT="ssoClient",e.EXTENSION="uiExtension",e.INTEGRATION="integration",e.COL_BUTTON="colButton"}(r||(t.CacheScope=r={})),function(e){e.TYPE_ARRAY="TYPE_ARRAY",e.TYPE_OBJECT="TYPE_OBJECT",e.TYPE_STRING="TYPE_STRING"}(i||(t.CacheGetType=i={})),function(e){e.PARENT_TO_CHILD="PARENT_TO_CHILD",e.CHILD_TO_PARENT="CHILD_TO_PARENT"}(s||(t.CacheDelDirection=s={})),t.GROUPBY_COMPARISON_OPS=["gb_eq","gb_null"],t.COMPARISON_OPS=["eq","neq","not","like","nlike","empty","notempty","null","notnull","checked","notchecked","blank","notblank","allof","anyof","nallof","nanyof","gt","lt","gte","lte","ge","le","in","isnot","is","isWithin","btw","nbtw"],t.IS_WITHIN_COMPARISON_SUB_OPS=["pastWeek","pastMonth","pastYear","nextWeek","nextMonth","nextYear","pastNumberOfDays","nextNumberOfDays"],t.COMPARISON_SUB_OPS=["today","tomorrow","yesterday","oneWeekAgo","oneWeekFromNow","oneMonthAgo","oneMonthFromNow","daysAgo","daysFromNow","exactDate",...t.IS_WITHIN_COMPARISON_SUB_OPS],t.DB_TYPES=["mysql2","sqlite3","mysql","mssql","snowflake","oracledb","pg","databricks"],function(e){e.ROOT="root",e.ORG="org",e.WORKSPACE="workspace",e.BASE="base",e.BYPASS="bypass"}(o||(t.RootScopes=o={})),t.RootScopeTables={[o.ROOT]:[n.USERS,n.USER_REFRESH_TOKENS,n.API_TOKENS,n.PLUGIN,n.STORE,n.NOTIFICATION,n.JOBS,n.FILE_REFERENCES,n.AUDIT],[o.BASE]:[n.PROJECT],[o.WORKSPACE]:[n.INTEGRATIONS]}},1278:function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||a(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.isEE=t.T=void 0,r(n(6707),t),r(n(7348),t),r(n(7293),t),r(n(4891),t),r(n(1766),t);var i=n(8720);Object.defineProperty(t,"T",{enumerable:!0,get:function(){return i.Tele}}),r(n(5864),t),r(n(1762),t),t.isEE=!1},4740:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DriverClient=t.knownQueryParams=t.avoidSSL=t.defaultConnectionOptions=t.defaultConnectionConfig=t.defaultClientPortMapping=t.driverClientMapping=void 0,t.driverClientMapping={mysql:"mysql2",mariadb:"mysql2",postgres:"pg",postgresql:"pg",sqlite:"sqlite3",mssql:"mssql"},t.defaultClientPortMapping={mysql:3306,mysql2:3306,postgres:5432,pg:5432,mssql:1433},t.defaultConnectionConfig={dateStrings:!0},t.defaultConnectionOptions={pool:{min:0,max:10}},t.avoidSSL=["localhost","127.0.0.1","host.docker.internal","172.17.0.1"],t.knownQueryParams=[{parameter:"database",aliases:["d","db"]},{parameter:"password",aliases:["p"]},{parameter:"user",aliases:["u"]},{parameter:"title",aliases:["t"]},{parameter:"keyFilePath",aliases:[]},{parameter:"certFilePath",aliases:[]},{parameter:"caFilePath",aliases:[]},{parameter:"ssl",aliases:[]},{parameter:"options",aliases:["opt","opts"]}],function(e){e.MYSQL="mysql2",e.MYSQL_LEGACY="mysql",e.MSSQL="mssql",e.PG="pg",e.SQLITE="sqlite3",e.SNOWFLAKE="snowflake",e.DATABRICKS="databricks"}(n||(t.DriverClient=n={}))},3784:function(e,t,n){"use strict";var a=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.metaUrlToDbConfig=t.xcUrlToDbConfig=t.jdbcToXcUrl=t.jdbcToXcConfig=t.getToolDir=t.prepareEnv=void 0;const i=r(n(9896)),s=n(7016),o=n(9023),c=r(n(4587)),u=n(4740),l=n(7865);function d(e){e.replace(/^jdbc:/,"");const t=(0,c.default)(e),n={};for(const[e,a]of Object.entries(t)){const t=u.knownQueryParams.find((t=>t.parameter===e||t.aliases.includes(e)));t?n[t.parameter]=a:n[e]=a}(null==n?void 0:n.port)||(n.port=u.defaultClientPortMapping[u.driverClientMapping[n.driver]||n.driver]);const{driver:r,host:i,port:s,database:o,user:l,password:d}=n,p=a(n,["driver","host","port","database","user","password"]),f=[];for(const[e,t]of Object.entries(p))f.push(`${e}=${encodeURIComponent(t+"")}`);return`${u.driverClientMapping[r]||r}://${i}${s?`:${s}`:""}?${l?`u=${encodeURIComponent(l)}&`:""}${d?`p=${encodeURIComponent(d)}&`:""}${o?`d=${encodeURIComponent(o)}&`:""}${f.join("&")}`}t.prepareEnv=async function(){if(process.env.NC_DATABASE_URL_FILE||process.env.DATABASE_URL_FILE){const e=await(0,o.promisify)(i.default.readFile)(process.env.NC_DATABASE_URL_FILE||process.env.DATABASE_URL_FILE,"utf-8");process.env.NC_DB=d(e)}else(process.env.NC_DATABASE_URL||process.env.DATABASE_URL)&&(process.env.NC_DB=d(process.env.NC_DATABASE_URL||process.env.DATABASE_URL))},t.getToolDir=function(){return process.env.NC_TOOL_DIR||process.cwd()},t.jdbcToXcConfig=function(e){e.replace(/^jdbc:/,"");const t=(0,c.default)(e),n={};for(const[e,a]of Object.entries(t)){const t=u.knownQueryParams.find((t=>t.parameter===e||t.aliases.includes(e)));t?n[t.parameter]=a:n[e]=a}(null==n?void 0:n.port)||(n.port=u.defaultClientPortMapping[u.driverClientMapping[n.driver]||n.driver]);const{driver:r}=n,i=a(n,["driver"]),s=u.driverClientMapping[r]||r;return"pg"!==s||(null==i?void 0:i.ssl)||u.avoidSSL.includes(i.host)||(i.ssl=!0),{client:s,connection:Object.assign({},i)}},t.jdbcToXcUrl=d,t.xcUrlToDbConfig=function(e,t="",n){const a=new s.URL(e);let r;if(a.protocol.startsWith("sqlite3"))r={client:"sqlite3",connection:{client:"sqlite3",connection:{filename:a.searchParams.get("d")||a.searchParams.get("database")},database:a.searchParams.get("d")||a.searchParams.get("database")}};else{const e={};for(const[t,n]of a.searchParams.entries()){const a=u.knownQueryParams.find((e=>e.parameter===t||e.aliases.includes(t)));a?e[a.parameter]=n:e[t]=n}r={client:a.protocol.replace(":",""),connection:Object.assign(Object.assign({},e),{host:a.hostname,port:+a.port}),acquireConnectionTimeout:6e5},process.env.NODE_TLS_REJECT_UNAUTHORIZED&&(r.connection.ssl=!0),a.searchParams.get("keyFilePath")&&a.searchParams.get("certFilePath")&&a.searchParams.get("caFilePath")&&(r.connection.ssl={keyFilePath:a.searchParams.get("keyFilePath"),certFilePath:a.searchParams.get("certFilePath"),caFilePath:a.searchParams.get("caFilePath")})}return Object.assign(r,{meta:{tn:"nc_evolutions",allSchemas:!!a.searchParams.get("allSchemas")||!(a.searchParams.get("d")||a.searchParams.get("database")),api:{prefix:a.searchParams.get("apiPrefix")||"",swagger:!0,type:n||a.searchParams.get("api")||a.searchParams.get("a")||"rest"},dbAlias:a.searchParams.get("dbAlias")||`db${t}`,metaTables:"db",migrations:{disabled:!1,name:"nc_evolutions"}}}),r},t.metaUrlToDbConfig=async function(e){var t,n;const a=new s.URL(e);let r;if(a.protocol.startsWith("sqlite3")){const e=a.searchParams.get("d")||a.searchParams.get("database");r=Object.assign({client:l.DriverClient.SQLITE,connection:{filename:e}},":memory:"===e?{pool:{min:1,max:1,idleTimeoutMillis:36e7}}:{})}else{const e={};for(const[t,n]of a.searchParams.entries()){const a=u.knownQueryParams.find((e=>e.parameter===t||e.aliases.includes(t)));a?e[a.parameter]=n:e[t]=n}r=Object.assign(Object.assign({client:a.protocol.replace(":",""),connection:Object.assign(Object.assign(Object.assign({},u.defaultConnectionConfig),e),{host:a.hostname,port:+a.port}),acquireConnectionTimeout:6e5},u.defaultConnectionOptions),a.searchParams.has("search_path")?{searchPath:a.searchParams.get("search_path").split(",")}:{}),process.env.NODE_TLS_REJECT_UNAUTHORIZED&&(r.connection.ssl=!0)}return a.searchParams.forEach(((e,t)=>{let n=e;"true"===n?n=!0:"false"===n?n=!1:/^\d+$/.test(n)&&(n=+n),["password","p","database","d","user","u","search_path"].includes(t)||t.split(".").reduce(((e,t,a,r)=>e[t]=a===r.length-1?n:e[t]||{}),r)})),(null===(t=null==r?void 0:r.connection)||void 0===t?void 0:t.ssl)&&"object"==typeof(null===(n=null==r?void 0:r.connection)||void 0===n?void 0:n.ssl)&&(r.connection.ssl.caFilePath&&!r.connection.ssl.ca&&(r.connection.ssl.ca=(await(0,o.promisify)(i.default.readFile)(r.connection.ssl.caFilePath)).toString(),delete r.connection.ssl.caFilePath),r.connection.ssl.keyFilePath&&!r.connection.ssl.key&&(r.connection.ssl.key=(await(0,o.promisify)(i.default.readFile)(r.connection.ssl.keyFilePath)).toString(),delete r.connection.ssl.keyFilePath),r.connection.ssl.certFilePath&&!r.connection.ssl.cert&&(r.connection.ssl.cert=(await(0,o.promisify)(i.default.readFile)(r.connection.ssl.certFilePath)).toString(),delete r.connection.ssl.certFilePath)),r}},7865:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DriverClient=void 0;const a=n(4740);Object.defineProperty(t,"DriverClient",{enumerable:!0,get:function(){return a.DriverClient}})},1766:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nocoExecute=void 0;const a=new(n(3563).Logger)("nocoExecute"),r=e=>Array.isArray(e)?e.flatMap((e=>r(e))):e,i=async(e,t,n={},s=null)=>{var o;if(Array.isArray(t))return Promise.all(t.map(((t,a)=>i(e,t,n[a]=n[a]||{},s))));const c={},u=(e,t,n={},a={})=>{var r,i,s,o,c;if(e.length){const l=e[0];return void 0===t[l]||null===t[l]?"function"==typeof n[l]?t[e[0]]=n[l](a):"object"==typeof n[l]?t[e[0]]=Promise.resolve(n[l]):(null===(i=null===(r=null==t?void 0:t.__proto__)||void 0===r?void 0:r.__columnAliases)||void 0===i?void 0:i[e[0]])?t[e[0]]=u(null===(c=null===(o=null===(s=null==t?void 0:t.__proto__)||void 0===s?void 0:s.__columnAliases)||void 0===o?void 0:o[e[0]])||void 0===c?void 0:c.path,t,{},a):"object"==typeof t&&(t[e[0]]=Promise.resolve(n[l])):"function"==typeof t[l]&&(t.__proto__=Object.assign(Object.assign({},t.__proto__),{[l]:t[l](a)})),(t[e[0]]instanceof Promise?t[e[0]]:Promise.resolve(t[e[0]])).then((t=>Array.isArray(t)?Promise.all(t.map((t=>u(e.slice(1),t,{},a)))):null!=t?u(e.slice(1),t,{},a):Promise.resolve(null)))}return Promise.resolve(t)};function l(e,i){var s,o,l,d,p,f;if(null===(o=null===(s=null==t?void 0:t.__proto__)||void 0===s?void 0:s.__columnAliases)||void 0===o?void 0:o[e])c[e]=u(null===(p=null===(d=null===(l=null==t?void 0:t.__proto__)||void 0===l?void 0:l.__columnAliases)||void 0===d?void 0:d[e])||void 0===p?void 0:p.path,n,t,null===(f=null==i?void 0:i.nested)||void 0===f?void 0:f[e]).then((e=>Promise.resolve(Array.isArray(e)?r(e):e)));else{if(t)if("function"==typeof t[e])c[e]=t[e](i);else if("object"==typeof t[e])c[e]=Promise.resolve(t[e]);else try{c[e]=Promise.resolve(t[e])}catch(e){a.error(e)}n[e]=c[e]}}const d=e&&"object"==typeof e?Object.keys(e).filter((t=>e[t])):Object.keys(t),p={},f=[];for(const t of d)l(t,null===(o=null==s?void 0:s.nested)||void 0===o?void 0:o[t]),e[t]&&"object"==typeof e[t]&&(c[t]=c[t].then((a=>{var r;return Array.isArray(a)?n[t]=Promise.all(a.map(((a,r)=>{var o,c;return i(e[t],a,null===(o=null==n?void 0:n[t])||void 0===o?void 0:o[r],null===(c=null==s?void 0:s.nested)||void 0===c?void 0:c[t])}))):a?n[t]=i(e[t],a,n[t],null===(r=null==s?void 0:s.nested)||void 0===r?void 0:r[t]):a}))),c[t]&&f.push((async()=>{p[t]=await c[t]})());return await Promise.all(f),p};t.nocoExecute=i},5864:function(e,t,n){"use strict";var a,r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=t.packageVersion=void 0;const i=r(n(9896)),s=r(n(6928));let o={};t.packageInfo=o;try{t.packageInfo=o=JSON.parse(i.default.readFileSync(s.default.join(process.cwd(),"node_modules","nocodb","package.json"),"utf8"))}catch(e){try{t.packageInfo=o=JSON.parse(i.default.readFileSync(s.default.join(s.default.dirname(null===(a=process.pkg)||void 0===a?void 0:a.defaultEntrypoint),"node_modules","nocodb","package.json"),"utf8"))}catch(e){try{t.packageInfo=o=JSON.parse(i.default.readFileSync(s.default.join(process.cwd(),"package.json"),"utf8"))}catch(e){}}}const c=null==o?void 0:o.version;t.packageVersion=c},7348:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sanitiseUserObj=void 0;const n=new Set(["password","salt","invite_token","invite_token_expires","reset_password_expires","reset_password_token","email_verification_token","created_at","updated_at"]);t.sanitiseUserObj=function(e){return Object.entries(e).reduce(((e,[t,a])=>(n.has(t)||(e[t]=a),e)),{})}},8720:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Tele=void 0;const r=a(n(857)),i=a(n(5833)),s=n(1072),o=a(n(8938)),c=a(n(9731)),u=n(5864),l=a(n(9816)),d=!!process.env.NC_DISABLE_TELE,p=!!process.env.NC_REDIS_URL,f=!!process.env.NC_BINARY_BUILD,m=!!(process.env.LITESTREAM_S3_BUCKET&&process.env.LITESTREAM_S3_SECRET_ACCESS_KEY&&process.env.LITESTREAM_S3_ACCESS_KEY_ID),h=()=>{try{const e=Math.round(process.uptime()/3600);b.emit("evt",{evt_type:"alive",count:global.NC_COUNT,upTime:e,cache:p,litestream:m,executable:f})}catch(e){}};setInterval(h,288e5);class b{static emit(e,t){try{this._init(),b.emitter.emit(e,t)}catch(e){}}static init(e){b.config=e,b._init()}static page(e){this.emit("page",e)}static event(e){this.emit("ph_event",e)}static _init(){try{if(!b.emitter){b.emitter=new i.default,b.machineId=(0,s.machineIdSync)();let e="",t="";t=process.env.NC_SERVER_UUID,e=u.packageVersion;const n={package_id:e,os_type:r.default.type(),os_platform:r.default.platform(),os_release:r.default.release(),node_version:process.version,docker:(0,c.default)(),xc_version:t,env:process.env.NODE_ENV||"production",oneClick:!!process.env.NC_ONE_CLICK};n.machine_id=`${(0,s.machineIdSync)()},,`,b.emitter.on("evt_app_started",(async e=>{try{if(await g(n),d)return;e&&void 0!==e.count&&(global.NC_COUNT=e.count),await o.default.post("https://telemetry.nocodb.com/api/v1/telemetry",Object.assign(Object.assign({},n),{evt_type:"started",payload:{count:global.NC_COUNT}}))}catch(e){}finally{h()}})),b.emitter.on("evt",(async e=>{try{const t=await b.getInstanceMeta()||{};if(await g(n),e.check&&(n.machine_id=`${(0,s.machineIdSync)()},,`),d&&(!e.evt_type||!e.evt_type.startsWith("a:sync-request:")))return;"project:invite"===e.evt_type&&(global.NC_COUNT=e.count||global.NC_COUNT),"user:first_signup"===e.evt_type&&(global.NC_COUNT=+global.NC_COUNT||1),await o.default.post("https://telemetry.nocodb.com/api/v1/telemetry",Object.assign(Object.assign({},n),{evt_type:e.evt_type,payload:Object.assign(Object.assign({},t),e||{})}))}catch(e){}})),b.emitter.on("evt_api_created",(async e=>{try{await g(n);const t=Object.assign(Object.assign({},n),{table_count:e.tablesCount||0,relation_count:e.relationsCount||0,view_count:e.viewsCount||0,api_count:e.apiCount||0,function_count:e.functionsCount||0,procedure_count:e.proceduresCount||0,mysql:"mysql2"===e.dbType?1:0,pg:"pg"===e.dbType?1:0,mssql:"mssql"===e.dbType?1:0,sqlite3:"sqlite3"===e.dbType?1:0,oracledb:"oracledb"===e.dbType?1:0,rest:"rest"===e.type?1:0,graphql:"graphql"===e.type?1:0,grpc:"grpc"===e.type?1:0,time_taken:e.timeTaken});if(d)return;await o.default.post("https://telemetry.nocodb.com/api/v1/telemetry/apis_created",t)}catch(e){}})),b.emitter.on("evt_subscribe",(async e=>{try{if(d)return;await o.default.post("https://telemetry.nocodb.com/api/v1/newsletter/sdhjh34u3yuy34bj343jhj4iwolaAdsdj3434uiut4nn",{email:e})}catch(e){}})),b.emitter.on("page",(async e=>{try{if(d)return;const t=await b.getInstanceMeta();await this.client.capture({distinctId:e.id||`${this.machineId}:public`,event:"$pageview",properties:Object.assign(Object.assign(Object.assign({},n),t),{$current_url:e.path})})}catch(e){}})),b.emitter.on("ph_event",(async e=>{try{if(d&&(!e.evt_type||!e.evt_type.startsWith("a:sync-request:")))return;const t=await this.getInstanceMeta();let a=e.id;a||(a=e.event&&e.event.startsWith("a:api:")?this.machineId:`${this.machineId}:public`),await this.client.capture({distinctId:a,event:e.event,properties:Object.assign(Object.assign(Object.assign({},n),t),e.data||{})})}catch(e){}}))}}catch(e){}try{this.client||(this.client=new l.default)}catch(e){}}static async getInstanceMeta(){try{return b.config&&b.config.instance&&await b.config.instance()||{}}catch(e){return{}}}static get id(){return this.machineId||(0,s.machineIdSync)()}}async function g(e){let t=5;for(;t--&&!e.machine_id;)await new Promise((e=>setTimeout((()=>e(null)),500)))}if(t.Tele=b,process.env.NC_PUBLIC_URL&&setInterval((()=>{(0,o.default)({method:"get",url:process.env.NC_PUBLIC_URL}).then((()=>{})).catch((()=>{}))}),72e5),process.env.NC_ONE_CLICK)try{b.emit("evt",{evt_type:"ONE_CLICK"})}catch(e){}},5064:(e,t,n)=>{"use strict";var a,r,i;n.r(t),n.d(t,{APIContext:()=>pt,AggregateFnType:()=>Xt,AllAggregations:()=>Zt,AllowedColumnTypesForQrAndBarcodes:()=>ze,Api:()=>f,AppEvents:()=>Xe,AttachmentAggregations:()=>Yt,AttachmentValidationType:()=>Ht,AuditOperationSubTypes:()=>Te,AuditOperationTypes:()=>Ee,BooleanAggregations:()=>zt,ButtonActionType:()=>tn,ClickhouseTables:()=>et,ClientType:()=>mt,CloudOrgUserRoles:()=>Ze,CommonAggregations:()=>Vt,ContentType:()=>c,CustomAPI:()=>Nt,DataSourceType:()=>en,DateAggregations:()=>Kt,DateValidationType:()=>Ft,ExportTypes:()=>_e,FieldNameFromUITypes:()=>Me,FontType:()=>nn,FormulaDataTypes:()=>ue,FormulaError:()=>me,FormulaErrorType:()=>ce,GenericValidationType:()=>Lt,HttpClient:()=>p,InputType:()=>sn,IntegrationCategoryType:()=>gt,IntegrationsType:()=>s,JSEPNode:()=>le,ModelTypes:()=>Ae,MssqlUi:()=>T,MysqlUi:()=>y,NcDataErrorCodes:()=>Ce,NcErrorType:()=>Re,NumberValidationType:()=>kt,NumericalAggregations:()=>Wt,OracleUi:()=>O,OrderedOrgRoles:()=>ut,OrderedProjectRoles:()=>lt,OrderedWorkspaceRoles:()=>ct,OrgUserRoles:()=>Ke,PgUi:()=>E,PlanLimitTypes:()=>dt,PluginCategory:()=>$e,ProjectRoles:()=>Je,ProjectStatus:()=>Se,ProjectTypes:()=>ve,RelationTypes:()=>ye,RoleColors:()=>rt,RoleDescriptions:()=>it,RoleIcons:()=>st,RoleLabels:()=>at,SSLUsage:()=>ht,SelectValidationType:()=>Bt,SnowflakeUi:()=>D,SourceRestriction:()=>ft,SqlUiFactory:()=>R,SqliteUi:()=>A,StringValidationType:()=>jt,SyncDataType:()=>bt,TemplateGenerator:()=>It,TimeValidationType:()=>Ut,TiptapMarksTypes:()=>we,TiptapNodesTypes:()=>De,UITypes:()=>Ge,UITypesName:()=>Ie,ValidationTypeLabel:()=>rn,ViewTypes:()=>ge,WidgetTypeType:()=>o,WorkspacePlan:()=>nt,WorkspaceRolesToProjectRoles:()=>ot,WorkspaceStatus:()=>tt,WorkspaceUserRoles:()=>Qe,XcActionType:()=>r,XcNotificationType:()=>i,XcType:()=>a,YearValidationType:()=>qt,auditOperationSubTypeLabels:()=>Oe,auditOperationTypeLabels:()=>xe,chartTypes:()=>an,convertToTargetFormat:()=>X,dateFormats:()=>V,dateMonthFormats:()=>G,extractRolesObj:()=>Tt,filterOutSystemColumns:()=>vt,formulas:()=>fe,getAvailableAggregations:()=>Jt,getAvailableRollupForUiType:()=>$t,getDateFormat:()=>K,getDateTimeFormat:()=>Z,getEquivalentUIType:()=>Be,getRenderAsTextFunForUiType:()=>At,getSystemColumns:()=>_t,getSystemColumnsIds:()=>yt,getTestDatabaseName:()=>Rt,getUITypesForFormulaDataType:()=>Ye,handleTZ:()=>ee,isCreatedOrLastModifiedByCol:()=>Fe,isCreatedOrLastModifiedTimeCol:()=>ke,isDateMonthFormat:()=>Y,isHiddenCol:()=>Ue,isLinksOrLTAR:()=>qe,isNumericCol:()=>Le,isSelectTypeCol:()=>He,isSelfReferencingTableColumn:()=>xt,isSystemColumn:()=>Et,isValidTimeFormat:()=>ae,isVirtualCol:()=>je,jsepCurlyHook:()=>ie,jsepTreeToFormula:()=>pe,mergeSwaggerSchema:()=>Pt,numericUITypes:()=>Pe,oppositeValidationTypeMap:()=>Gt,parseStringDate:()=>J,parseStringDateTime:()=>Q,partialUpdateAllowedTypes:()=>Ve,populateUniqueFileName:()=>Dt,readonlyMetaAllowedTypes:()=>We,roundUpToPrecision:()=>wt,stringifyRolesObj:()=>Ot,substituteColumnAliasWithIdInFormula:()=>oe,substituteColumnIdWithAliasInFormula:()=>de,timeAgo:()=>ne,timeFormats:()=>W,validateAndExtractSSLProp:()=>Qt,validateDateFormat:()=>te,validateDateWithUnknownFormat:()=>z,validateFormulaAndExtractTreeWithType:()=>be,validatePassword:()=>Mt}),function(e){e.ID="ID",e.ForeignKey="ForeignKey",e.SingleLineText="SingleLineText",e.LongText="LongText",e.Attachment="Attachment",e.Checkbox="Checkbox",e.MultiSelect="MultiSelect",e.SingleSelect="SingleSelect",e.Collaborator="Collaborator",e.Date="Date",e.Year="Year",e.Time="Time",e.PhoneNumber="PhoneNumber",e.Email="Email",e.URL="URL",e.Number="Number",e.Decimal="Decimal",e.Currency="Currency",e.Percent="Percent",e.Duration="Duration",e.Rating="Rating",e.Formula="Formula",e.Rollup="Rollup",e.Count="Count",e.Lookup="Lookup",e.DateTime="DateTime",e.CreateTime="CreateTime",e.LastModifiedTime="LastModifiedTime",e.AutoNumber="AutoNumber",e.Barcode="Barcode",e.Button="Button",e.Password="Password"}(a||(a={})),function(e){e.SUBMIT="SUBMIT",e.TEST="TEST",e.CLEAR="CLEAR",e.CANCEL="CANCEL"}(r||(r={})),function(e){e.EMAIL="Email",e.URL="URL",e.DISCORD="Discord",e.TELEGRAM="Telegram",e.SLACK="Slack",e.WHATSAPP="Whatsapp",e.TWILIO="Twilio"}(i||(i={}));var s,o,c,u=n(8938),l=n.n(u),d=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n};!function(e){e.Database="database"}(s||(s={})),function(e){e.Number="number",e.StaticText="static_text",e.LineChart="line_chart",e.BarChart="bar_chart",e.PieChart="pie_chart",e.ScatterPlot="scatter_plot",e.Button="button",e.Image="image",e.Divider="divider"}(o||(o={})),function(e){e.Json="application/json",e.FormData="multipart/form-data",e.UrlEncoded="application/x-www-form-urlencoded",e.Text="text/plain"}(c||(c={}));class p{constructor(e={}){var{securityWorker:t,secure:n,format:a}=e,r=d(e,["securityWorker","secure","format"]);this.securityData=null,this.setSecurityData=e=>{this.securityData=e},this.request=e=>function(e,t,n,a){return new(n||(n=Promise))((function(r,i){function s(e){try{c(a.next(e))}catch(e){i(e)}}function o(e){try{c(a.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}c((a=a.apply(e,t||[])).next())}))}(this,void 0,void 0,(function*(){var{secure:t,path:n,type:a,query:r,format:i,wrapped:s,body:o}=e,u=d(e,["secure","path","type","query","format","wrapped","body"]);const l=("boolean"==typeof t?t:this.secure)&&this.securityWorker&&(yield this.securityWorker(this.securityData))||{},p=this.mergeRequestParams(u,l),f=i||this.format||void 0;return a===c.FormData&&o&&null!==o&&"object"==typeof o&&(o=this.createFormData(o)),a===c.Text&&o&&null!==o&&"string"!=typeof o&&(o=JSON.stringify(o)),this.instance.request(Object.assign(Object.assign({},p),{headers:Object.assign(Object.assign({},p.headers||{}),a&&a!==c.FormData?{"Content-Type":a}:{}),params:r,responseType:f,data:o,url:n})).then((e=>s?e:e.data))})),this.instance=l().create(Object.assign(Object.assign({},r),{baseURL:r.baseURL||"http://localhost:8080"})),this.secure=n,this.format=a,this.securityWorker=t}mergeRequestParams(e,t){const n=e.method||t&&t.method;return Object.assign(Object.assign(Object.assign(Object.assign({},this.instance.defaults),e),t||{}),{headers:Object.assign(Object.assign(Object.assign({},n&&this.instance.defaults.headers[n.toLowerCase()]||{}),e.headers||{}),t&&t.headers||{})})}stringifyFormItem(e){return"object"==typeof e&&null!==e?JSON.stringify(e):`${e}`}createFormData(e){return Object.keys(e||{}).reduce(((t,n)=>{const a=e[n],r=a instanceof Array?a:[a];for(const e of r){const a=e instanceof Blob||e instanceof File;t.append(n,a?e:this.stringifyFormItem(e))}return t}),new FormData)}}class f extends p{constructor(){super(...arguments),this.userProfile={update:(e,t={})=>this.request(Object.assign({path:"/api/v1/user/profile",method:"PATCH",body:e,type:c.Json},t))},this.auth={signup:(e,t={})=>this.request(Object.assign({path:"/api/v1/auth/user/signup",method:"POST",body:e,type:c.Json,format:"json"},t)),signout:(e={})=>this.request(Object.assign({path:"/api/v1/auth/user/signout",method:"POST",format:"json"},e)),signin:(e,t={})=>this.request(Object.assign({path:"/api/v1/auth/user/signin",method:"POST",body:e,type:c.Json,format:"json"},t)),me:(e,t={})=>this.request(Object.assign({path:"/api/v1/auth/user/me",method:"GET",query:e,format:"json"},t)),passwordForgot:(e,t={})=>this.request(Object.assign({path:"/api/v1/auth/password/forgot",method:"POST",body:e,type:c.Json,format:"json"},t)),passwordChange:(e,t={})=>this.request(Object.assign({path:"/api/v1/auth/password/change",method:"POST",body:e,type:c.Json,format:"json"},t)),passwordResetTokenValidate:(e,t={})=>this.request(Object.assign({path:`/api/v1/auth/token/validate/${e}`,method:"POST",format:"json"},t)),emailValidate:(e,t={})=>this.request(Object.assign({path:`/api/v1/auth/email/validate/${e}`,method:"POST",format:"json"},t)),passwordReset:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/auth/password/reset/${e}`,method:"POST",body:t,type:c.Json,format:"json"},n)),tokenRefresh:(e={})=>this.request(Object.assign({path:"/api/v1/auth/token/refresh",method:"POST",format:"json"},e)),baseUserList:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/users`,method:"GET",format:"json"},t)),baseUserAdd:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/users`,method:"POST",body:t,type:c.Json,format:"json"},n)),baseUserUpdate:(e,t,n,a={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/users/${t}`,method:"PATCH",body:n,type:c.Json,format:"json"},a)),baseUserRemove:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/users/${t}`,method:"DELETE",format:"json"},n)),baseUserResendInvite:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/users/${t}/resend-invite`,method:"POST",format:"json"},n))},this.orgTokens={list:(e={})=>this.request(Object.assign({path:"/api/v1/tokens",method:"GET",format:"json"},e)),create:(e,t={})=>this.request(Object.assign({path:"/api/v1/tokens",method:"POST",body:e,type:c.Json,format:"json"},t)),delete:(e,t={})=>this.request(Object.assign({path:`/api/v1/tokens/${e}`,method:"DELETE",format:"json"},t))},this.orgLicense={get:(e={})=>this.request(Object.assign({path:"/api/v1/license",method:"GET",format:"json"},e)),set:(e,t={})=>this.request(Object.assign({path:"/api/v1/license",method:"POST",body:e,type:c.Json,format:"json"},t))},this.orgAppSettings={get:(e={})=>this.request(Object.assign({path:"/api/v1/app-settings",method:"GET",format:"json"},e)),set:(e,t={})=>this.request(Object.assign({path:"/api/v1/app-settings",method:"POST",body:e,type:c.Json,format:"json"},t))},this.orgUsers={list:(e={})=>this.request(Object.assign({path:"/api/v1/users",method:"GET",format:"json"},e)),add:(e,t={})=>this.request(Object.assign({path:"/api/v1/users",method:"POST",body:e,type:c.Json,format:"json"},t)),update:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/users/${e}`,method:"PATCH",body:t,type:c.Json,format:"json"},n)),delete:(e,t={})=>this.request(Object.assign({path:`/api/v1/users/${e}`,method:"DELETE",format:"json"},t)),getByUsername:(e,t={})=>this.request(Object.assign({path:`/api/v1/users/${e}`,method:"GET",format:"json"},t)),resendInvite:(e,t={})=>this.request(Object.assign({path:`/api/v1/users/${e}/resend-invite`,method:"POST",format:"json"},t)),profileCreate:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/users/${e}/profile`,method:"POST",body:t,type:c.Json},n)),profileGet:(e,t={})=>this.request(Object.assign({path:`/api/v1/users/${e}/profile`,method:"GET"},t)),profileUpdate:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/users/${e}/profile`,method:"PATCH",body:t,type:c.Json},n)),followerCreate:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/users/${e}/follower`,method:"POST",body:t,type:c.Json},n)),followerList:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/users/${e}/follower`,method:"GET",body:t,type:c.Json},n)),followerDelete:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/users/${e}/follower`,method:"DELETE",body:t,type:c.Json},n)),followingList:(e,t={})=>this.request(Object.assign({path:`/api/v1/users/${e}/following`,method:"GET"},t)),isFollowing:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/users/${e}/isFollowing/${t}`,method:"GET"},n)),generatePasswordResetToken:(e,t={})=>this.request(Object.assign({path:`/api/v1/users/${e}/generate-reset-url`,method:"POST",format:"json"},t))},this.base={metaGet:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/info`,method:"GET",format:"json"},t)),modelVisibilityList:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/visibility-rules`,method:"GET",query:t,format:"json"},n)),modelVisibilitySet:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/visibility-rules`,method:"POST",body:t,type:c.Json,format:"json"},n)),list:(e={})=>this.request(Object.assign({path:"/api/v1/db/meta/projects/",method:"GET",format:"json"},e)),create:(e,t={})=>this.request(Object.assign({path:"/api/v1/db/meta/projects/",method:"POST",body:e,type:c.Json,format:"json"},t)),sourceDuplicate:(e,t,n,a={})=>this.request(Object.assign({path:`/api/v1/db/meta/duplicate/${e}/${n}`,method:"POST",body:t,type:c.Json,format:"json"},a)),duplicate:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/duplicate/${e}`,method:"POST",body:t,type:c.Json,format:"json"},n)),read:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}`,method:"GET",format:"json"},t)),delete:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}`,method:"DELETE",format:"json"},t)),update:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}`,method:"PATCH",body:t,type:c.Json,format:"json"},n)),userMetaUpdate:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/user`,method:"PATCH",body:t,type:c.Json},n)),sharedBaseGet:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/shared`,method:"GET",format:"json"},t)),sharedBaseDisable:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/shared`,method:"DELETE",format:"json"},t)),sharedBaseCreate:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/shared`,method:"POST",body:t,type:c.Json,format:"json"},n)),sharedBaseUpdate:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/shared`,method:"PATCH",body:t,type:c.Json,format:"json"},n)),cost:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/cost`,method:"GET",format:"json"},t)),metaDiffSync:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/meta-diff`,method:"POST",format:"json"},t)),metaDiffGet:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/meta-diff`,method:"GET",format:"json"},t)),hasEmptyOrNullFilters:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/has-empty-or-null-filters`,method:"GET",format:"json"},t)),auditList:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/audits`,method:"GET",query:t,format:"json"},n)),duplicateShared:(e,t,n,a={})=>this.request(Object.assign({path:`/api/v2/meta/duplicate/${e}/shared/${t}`,method:"POST",body:n,type:c.Json,format:"json"},a)),auditList2:(e,t,n={})=>this.request(Object.assign({path:`/api/v2/meta/bases/${e}/audits`,method:"GET",query:t,format:"json"},n))},this.source={read:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/bases/${t}`,method:"GET",format:"json"},n)),delete:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/bases/${t}`,method:"DELETE",format:"json"},n)),update:(e,t,n,a={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/bases/${t}`,method:"PATCH",body:n,type:c.Json,format:"json"},a)),list:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/bases/`,method:"GET",format:"json"},t)),create:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/bases/`,method:"POST",body:t,type:c.Json,format:"json"},n)),shareErd:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/bases/${t}/share/erd`,method:"POST",format:"json"},n)),disableShareErd:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/bases/${t}/share/erd`,method:"DELETE"},n)),tableList:(e,t,n,a={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/${t}/tables`,method:"GET",query:n},a)),tableCreate:(e,t,n,a={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/${t}/tables`,method:"POST",body:n,type:c.Json,format:"json"},a)),metaDiffSync:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/meta-diff/${t}`,method:"POST",format:"json"},n)),metaDiffGet:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/meta-diff/${t}`,method:"GET",format:"json"},n)),tableMagic:(e,t,n,a={})=>this.request(Object.assign({path:`/api/v2/meta/bases/${e}/${t}/tables/magic`,method:"POST",body:n,type:c.Json,format:"json"},a)),schemaMagic:(e,t,n,a={})=>this.request(Object.assign({path:`/api/v2/meta/bases/${e}/${t}/schema/magic`,method:"POST",body:n,type:c.Json,format:"json"},a))},this.dbTable={create:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/tables`,method:"POST",body:t,type:c.Json,format:"json"},n)),list:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/tables`,method:"GET",query:t},n)),read:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/tables/${e}`,method:"GET",format:"json"},t)),update:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/tables/${e}`,method:"PATCH",body:t,type:c.Json,format:"json"},n)),delete:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/tables/${e}`,method:"DELETE",format:"json"},t)),duplicate:(e,t,n,a={})=>this.request(Object.assign({path:`/api/v1/db/meta/duplicate/${e}/table/${t}`,method:"POST",body:n,type:c.Json,format:"json"},a)),duplicateColumn:(e,t,n,a={})=>this.request(Object.assign({path:`/api/v1/db/meta/duplicate/${e}/column/${t}`,method:"POST",body:n,type:c.Json,format:"json"},a)),reorder:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/tables/${e}/reorder`,method:"POST",body:t,type:c.Json,format:"json"},n))},this.dbTableColumn={create:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/tables/${e}/columns`,method:"POST",body:t,type:c.Json},n)),update:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/columns/${e}`,method:"PATCH",body:t,type:c.Json,format:"json"},n)),delete:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/columns/${e}`,method:"DELETE"},t)),get:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/columns/${e}`,method:"GET"},t)),primaryColumnSet:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/columns/${e}/primary`,method:"POST",format:"json"},t)),hash:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/tables/${e}/columns/hash`,method:"GET",format:"json"},t)),bulk:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/tables/${e}/columns/bulk`,method:"POST",body:t,type:c.Json,format:"json"},n))},this.dbView={list:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/tables/${e}/views`,method:"GET",format:"json"},t)),update:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/views/${e}`,method:"PATCH",body:t,type:c.Json,format:"json"},n)),delete:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/views/${e}`,method:"DELETE",format:"json"},t)),showAllColumn:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/views/${e}/show-all`,method:"POST",query:t,format:"json"},n)),hideAllColumn:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/views/${e}/hide-all`,method:"POST",query:t,format:"json"},n)),gridCreate:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/tables/${e}/grids`,method:"POST",body:t,type:c.Json,format:"json"},n)),formCreate:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/tables/${e}/forms`,method:"POST",body:t,type:c.Json,format:"json"},n)),formUpdate:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/forms/${e}`,method:"PATCH",body:t,type:c.Json,format:"json"},n)),formRead:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/forms/${e}`,method:"GET",format:"json"},t)),formColumnUpdate:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/form-columns/${e}`,method:"PATCH",body:t,type:c.Json,format:"json"},n)),gridUpdate:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/grids/${e}`,method:"PATCH",body:t,type:c.Json,format:"json"},n)),gridColumnsList:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/grids/${e}/grid-columns`,method:"GET",format:"json"},t)),gridColumnUpdate:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/grid-columns/${e}`,method:"PATCH",body:t,type:c.Json,format:"json"},n)),galleryCreate:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/tables/${e}/galleries`,method:"POST",body:t,type:c.Json,format:"json"},n)),galleryUpdate:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/galleries/${e}`,method:"PATCH",body:t,type:c.Json,format:"json"},n)),galleryRead:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/galleries/${e}`,method:"GET",format:"json"},t)),kanbanCreate:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/tables/${e}/kanbans`,method:"POST",body:t,type:c.Json,format:"json"},n)),kanbanUpdate:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/kanbans/${e}`,method:"PATCH",body:t,type:c.Json,format:"json"},n)),kanbanRead:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/kanbans/${e}`,method:"GET",format:"json"},t)),mapCreate:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/tables/${e}/maps`,method:"POST",body:t,type:c.Json,format:"json"},n)),mapUpdate:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/maps/${e}`,method:"PATCH",body:t,type:c.Json,format:"json"},n)),mapRead:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/maps/${e}`,method:"GET",format:"json"},t)),calendarCreate:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/tables/${e}/calendars`,method:"POST",body:t,type:c.Json,format:"json"},n)),calendarUpdate:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/calendars/${e}`,method:"PATCH",body:t,type:c.Json,format:"json"},n)),calendarRead:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/calendars/${e}`,method:"GET",format:"json"},t))},this.dbViewShare={list:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/tables/${e}/share`,method:"GET",format:"json"},t)),create:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/views/${e}/share`,method:"POST",format:"json"},t)),update:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/views/${e}/share`,method:"PATCH",body:t,type:c.Json,format:"json"},n)),delete:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/views/${e}/share`,method:"DELETE",format:"json"},t))},this.dbViewColumn={list:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/views/${e}/columns`,method:"GET",format:"json"},t)),create:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/views/${e}/columns`,method:"POST",body:t,type:c.Json,format:"json"},n)),update:(e,t,n,a={})=>this.request(Object.assign({path:`/api/v1/db/meta/views/${e}/columns/${t}`,method:"PATCH",body:n,type:c.Json,format:"json"},a))},this.dbTableSort={list:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/views/${e}/sorts`,method:"GET",format:"json"},t)),create:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/views/${e}/sorts`,method:"POST",body:t,type:c.Json,format:"json"},n)),get:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/sorts/${e}`,method:"GET",format:"json"},t)),update:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/sorts/${e}`,method:"PATCH",body:t,type:c.Json,format:"json"},n)),delete:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/sorts/${e}`,method:"DELETE",format:"json"},t))},this.dbTableFilter={read:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/views/${e}/filters`,method:"GET",format:"json"},t)),create:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/views/${e}/filters`,method:"POST",body:t,type:c.Json,format:"json"},n)),get:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/filters/${e}`,method:"GET",format:"json"},t)),update:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/filters/${e}`,method:"PATCH",body:t,type:c.Json,format:"json"},n)),delete:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/filters/${e}`,method:"DELETE",format:"json"},t)),childrenRead:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/filters/${e}/children`,method:"GET",format:"json"},t)),get2:(e,t={})=>this.request(Object.assign({path:`/api/v2/meta/filters/${e}`,method:"GET",format:"json"},t)),update2:(e,t,n={})=>this.request(Object.assign({path:`/api/v2/meta/filters/${e}`,method:"PATCH",body:t,type:c.Json,format:"json"},n)),delete2:(e,t={})=>this.request(Object.assign({path:`/api/v2/meta/filters/${e}`,method:"DELETE",format:"json"},t)),childrenRead2:(e,t={})=>this.request(Object.assign({path:`/api/v2/meta/filters/${e}/children`,method:"GET",format:"json"},t))},this.dbTableWebhookFilter={read:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/hooks/${e}/filters`,method:"GET",format:"json"},t)),create:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/hooks/${e}/filters`,method:"POST",body:t,type:c.Json,format:"json"},n))},this.dbTableWebhookLogs={list:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/hooks/${e}/logs`,method:"GET",query:t,format:"json"},n))},this.dbTableRow={list:(e,t,n,a,r={})=>this.request(Object.assign({path:`/api/v1/db/data/${e}/${t}/${n}`,method:"GET",query:a,format:"json"},r)),create:(e,t,n,a,r={})=>this.request(Object.assign({path:`/api/v1/db/data/${e}/${t}/${n}`,method:"POST",body:a,type:c.Json,format:"json"},r)),findOne:(e,t,n,a,r={})=>this.request(Object.assign({path:`/api/v1/db/data/${e}/${t}/${n}/find-one`,method:"GET",query:a,format:"json"},r)),groupBy:(e,t,n,a,r={})=>this.request(Object.assign({path:`/api/v1/db/data/${e}/${t}/${n}/groupby`,method:"GET",query:a,format:"json"},r)),groupedDataList:(e,t,n,a,r,i={})=>this.request(Object.assign({path:`/api/v1/db/data/${e}/${t}/${n}/group/${a}`,method:"GET",query:r,format:"json"},i)),read:(e,t,n,a,r,i={})=>this.request(Object.assign({path:`/api/v1/db/data/${e}/${t}/${n}/${a}`,method:"GET",query:r,format:"json"},i)),update:(e,t,n,a,r,i,s={})=>this.request(Object.assign({path:`/api/v1/db/data/${e}/${t}/${n}/${a}`,method:"PATCH",query:i,body:r,type:c.Json,format:"json"},s)),delete:(e,t,n,a,r,i={})=>this.request(Object.assign({path:`/api/v1/db/data/${e}/${t}/${n}/${a}`,method:"DELETE",query:r,format:"json"},i)),exist:(e,t,n,a,r={})=>this.request(Object.assign({path:`/api/v1/db/data/${e}/${t}/${n}/${a}/exist`,method:"GET",format:"json"},r)),bulkCreate:(e,t,n,a,r={})=>this.request(Object.assign({path:`/api/v1/db/data/bulk/${e}/${t}/${n}`,method:"POST",body:a,type:c.Json,format:"json"},r)),bulkUpdate:(e,t,n,a,r={})=>this.request(Object.assign({path:`/api/v1/db/data/bulk/${e}/${t}/${n}`,method:"PATCH",body:a,type:c.Json,format:"json"},r)),bulkDelete:(e,t,n,a,r={})=>this.request(Object.assign({path:`/api/v1/db/data/bulk/${e}/${t}/${n}`,method:"DELETE",body:a,type:c.Json,format:"json"},r)),bulkUpdateAll:(e,t,n,a,r,i={})=>this.request(Object.assign({path:`/api/v1/db/data/bulk/${e}/${t}/${n}/all`,method:"PATCH",query:r,body:a,type:c.Json,format:"json"},i)),bulkDeleteAll:(e,t,n,a,r,i={})=>this.request(Object.assign({path:`/api/v1/db/data/bulk/${e}/${t}/${n}/all`,method:"DELETE",query:r,body:a,type:c.Json,format:"json"},i)),csvExport:(e,t,n,a,r={})=>this.request(Object.assign({path:`/api/v1/db/data/${e}/${t}/${n}/export/${a}`,method:"GET",wrapped:!0},r)),nestedList:(e,t,n,a,r,i,s,o={})=>this.request(Object.assign({path:`/api/v1/db/data/${e}/${t}/${n}/${a}/${r}/${i}`,method:"GET",query:s,format:"json"},o)),nestedAdd:(e,t,n,a,r,i,s,o,c={})=>this.request(Object.assign({path:`/api/v1/db/data/${e}/${t}/${n}/${a}/${r}/${i}/${s}`,method:"POST",query:o,format:"json"},c)),nestedRemove:(e,t,n,a,r,i,s,o={})=>this.request(Object.assign({path:`/api/v1/db/data/${e}/${t}/${n}/${a}/${r}/${i}/${s}`,method:"DELETE",format:"json"},o)),nestedChildrenExcludedList:(e,t,n,a,r,i,s,o={})=>this.request(Object.assign({path:`/api/v1/db/data/${e}/${t}/${n}/${a}/${r}/${i}/exclude`,method:"GET",query:s,format:"json"},o))},this.dbViewRow={groupedDataList:(e,t,n,a,r,i,s={})=>this.request(Object.assign({path:`/api/v1/db/data/${e}/${t}/${n}/views/${a}/group/${r}`,method:"GET",query:i,format:"json"},s)),list:(e,t,n,a,r,i={})=>this.request(Object.assign({path:`/api/v1/db/data/${e}/${t}/${n}/views/${a}`,method:"GET",query:r,format:"json"},i)),create:(e,t,n,a,r,i={})=>this.request(Object.assign({path:`/api/v1/db/data/${e}/${t}/${n}/views/${a}`,method:"POST",body:r,type:c.Json,format:"json"},i)),findOne:(e,t,n,a,r,i={})=>this.request(Object.assign({path:`/api/v1/db/data/${e}/${t}/${n}/views/${a}/find-one`,method:"GET",query:r,format:"json"},i)),groupBy:(e,t,n,a,r,i={})=>this.request(Object.assign({path:`/api/v1/db/data/${e}/${t}/${n}/views/${a}/groupby`,method:"GET",query:r,format:"json"},i)),count:(e,t,n,a,r,i={})=>this.request(Object.assign({path:`/api/v1/db/data/${e}/${t}/${n}/views/${a}/count`,method:"GET",query:r,format:"json"},i)),read:(e,t,n,a,r,i={})=>this.request(Object.assign({path:`/api/v1/db/data/${e}/${t}/${n}/views/${a}/${r}`,method:"GET",format:"json"},i)),update:(e,t,n,a,r,i,s={})=>this.request(Object.assign({path:`/api/v1/db/data/${e}/${t}/${n}/views/${a}/${r}`,method:"PATCH",body:i,type:c.Json,format:"json"},s)),delete:(e,t,n,a,r,i={})=>this.request(Object.assign({path:`/api/v1/db/data/${e}/${t}/${n}/views/${a}/${r}`,method:"DELETE",format:"json"},i)),exist:(e,t,n,a,r,i={})=>this.request(Object.assign({path:`/api/v1/db/data/${e}/${t}/${n}/views/${a}/${r}/exist`,method:"GET",format:"json"},i)),export:(e,t,n,a,r,i={})=>this.request(Object.assign({path:`/api/v1/db/data/${e}/${t}/${n}/views/${a}/export/${r}`,method:"GET",wrapped:!0},i))},this.dbCalendarViewRow={list:(e,t,n,a,r,i={})=>this.request(Object.assign({path:`/api/v1/db/calendar-data/${e}/${t}/${n}/views/${a}`,method:"GET",query:r},i)),publicDataCalendarRowList:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/public/calendar-view/${e}`,method:"GET",query:t},n))},this.api={responsesApi:(e,t,n,a,r={})=>this.request(Object.assign({path:`/api/v1/db/calendar-data/${e}/${t}/${n}/views/${a}`,method:"RESPONSES"},r)),responsesApi2:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/public/calendar-view/${e}`,method:"RESPONSES"},t))},this.dbCalendarViewRowCount={dbCalendarViewRowCount:(e,t,n,a,r,i={})=>this.request(Object.assign({path:`/api/v1/db/calendar-data/${e}/${t}/${n}/views/${a}/countByDate/`,method:"GET",query:r,format:"json"},i))},this.public={dataCalendarRowCount:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/public/calendar-view/${e}/countByDate`,method:"GET",query:t,format:"json"},n)),dataTableBulkDataList:(e,t,n,a={})=>this.request(Object.assign({path:`/api/v2/public/shared-view/${e}/bulk/dataList`,method:"POST",query:n,body:t,type:c.Json,format:"json"},a)),dataTableBulkGroup:(e,t,n,a={})=>this.request(Object.assign({path:`/api/v2/public/shared-view/${e}/bulk/group`,method:"POST",query:n,body:t,type:c.Json,format:"json"},a)),dataTableAggregate:(e,t,n={})=>this.request(Object.assign({path:`/api/v2/public/shared-view/${e}/aggregate`,method:"GET",query:t,format:"json"},n)),dataAttachmentDownload:(e,t,n,a,r={})=>this.request(Object.assign({path:`/api/v2/public/shared-view/${e}/downloadAttachment/${t}/${n}`,method:"GET",query:a,format:"json"},r)),groupedDataList:(e,t,n,a={})=>this.request(Object.assign({path:`/api/v1/db/public/shared-view/${e}/group/${t}`,method:"GET",query:n,format:"json"},a)),dataList:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/public/shared-view/${e}/rows`,method:"GET",query:t,format:"json"},n)),dataCreate:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/public/shared-view/${e}/rows`,method:"POST",body:t,type:c.FormData,format:"json"},n)),dataGroupBy:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/public/shared-view/${e}/groupby`,method:"GET",query:t,format:"json"},n)),dataNestedList:(e,t,n,a,r,i={})=>this.request(Object.assign({path:`/api/v1/db/public/shared-view/${e}/rows/${t}/${n}/${a}`,method:"GET",query:r,format:"json"},i)),csvExport:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/public/shared-view/${e}/rows/export/${t}`,method:"GET",wrapped:!0},n)),dataRelationList:(e,t,n,a={})=>this.request(Object.assign({path:`/api/v1/db/public/shared-view/${e}/nested/${t}`,method:"GET",query:n,format:"json"},a)),sharedBaseGet:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/public/shared-base/${e}/meta`,method:"GET",format:"json"},t)),sharedViewMetaGet:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/public/shared-view/${e}/meta`,method:"GET",format:"json"},t)),sharedErdMetaGet:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/public/shared-erd/${e}/meta`,method:"GET"},t)),dataTableBulkAggregate:(e,t,n,a={})=>this.request(Object.assign({path:`/api/v2/public/shared-view/${e}/bulk/aggregate`,method:"POST",query:n,body:t,type:c.Json,format:"json"},a))},this.dbDataTableBulkList={dbDataTableBulkList:(e,t,n,a={})=>this.request(Object.assign({path:`/api/v2/tables/${e}/bulk/dataList`,method:"POST",query:t,body:n,type:c.Json,format:"json"},a))},this.dbDataTableBulkGroupList={dbDataTableBulkGroupList:(e,t,n,a={})=>this.request(Object.assign({path:`/api/v2/tables/${e}/bulk/group`,method:"POST",query:t,body:n,type:c.Json,format:"json"},a))},this.utils={auditList:(e,t={})=>this.request(Object.assign({path:"/api/v1/db/meta/audits",method:"GET",query:e,format:"json"},t)),commentList:(e,t={})=>this.request(Object.assign({path:"/api/v1/db/meta/comments",method:"GET",query:e,format:"json"},t)),commentRow:(e,t={})=>this.request(Object.assign({path:"/api/v1/db/meta/comments",method:"POST",body:e,type:c.Json,format:"json"},t)),commentUpdate:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/comment/${e}/`,method:"PATCH",body:t,type:c.Json,format:"json"},n)),commentDelete:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/comment/${e}/`,method:"DELETE",body:t,format:"json"},n)),commentCount:(e,t={})=>this.request(Object.assign({path:"/api/v1/db/meta/comments/count",method:"GET",query:e,format:"json"},t)),projectAuditList:(e,t={})=>this.request(Object.assign({path:"/api/v1/db/meta/projects/audits",method:"GET",query:e,format:"json"},t)),auditRowUpdate:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/audits/rows/${e}/update`,method:"POST",body:t,type:c.Json,format:"json"},n)),testConnection:(e,t={})=>this.request(Object.assign({path:"/api/v1/db/meta/connection/test",method:"POST",body:e,type:c.Json,format:"json"},t)),urlToConfig:(e,t={})=>this.request(Object.assign({path:"/api/v1/url_to_config",method:"POST",body:e,type:c.Json,format:"json"},t)),appInfo:(e={})=>this.request(Object.assign({path:"/api/v1/db/meta/nocodb/info",method:"GET",format:"json"},e)),axiosRequestMake:(e,t={})=>this.request(Object.assign({path:"/api/v1/db/meta/axiosRequestMake",method:"POST",body:e,type:c.Json,format:"json"},t)),appVersion:(e={})=>this.request(Object.assign({path:"/api/v1/version",method:"GET",format:"json"},e)),appHealth:(e={})=>this.request(Object.assign({path:"/api/v1/health",method:"GET",format:"json"},e)),aggregatedMetaInfo:(e={})=>this.request(Object.assign({path:"/api/v1/aggregated-meta-info",method:"GET",format:"json"},e)),cacheGet:(e={})=>this.request(Object.assign({path:"/api/v1/db/meta/cache",method:"GET"},e)),cacheDelete:(e={})=>this.request(Object.assign({path:"/api/v1/db/meta/cache",method:"DELETE",format:"json"},e)),commandPalette:(e,t={})=>this.request(Object.assign({path:"/api/v1/command_palette",method:"POST",body:e,type:c.Json,format:"json"},t)),commentResolve:(e,t,n={})=>this.request(Object.assign({path:`/api/v2/meta/comment/${e}/resolve`,method:"POST",body:t,type:c.Json,format:"json"},n)),magic:(e,t={})=>this.request(Object.assign({path:"/api/v2/meta/magic",method:"POST",body:e,type:c.Json,format:"json"},t)),projectAuditList2:(e,t={})=>this.request(Object.assign({path:"/api/v2/meta/projects/audits",method:"GET",query:e,format:"json"},t))},this.dbTableWebhook={list:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/tables/${e}/hooks`,method:"GET",format:"json"},t)),create:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/tables/${e}/hooks`,method:"POST",body:t,type:c.Json,format:"json"},n)),test:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/tables/${e}/hooks/test`,method:"POST",body:t,type:c.Json,format:"json"},n)),samplePayloadGet:(e,t,n,a={})=>this.request(Object.assign({path:`/api/v1/db/meta/tables/${e}/hooks/samplePayload/${t}/${n}`,method:"GET",format:"json"},a)),update:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/hooks/${e}`,method:"PATCH",body:t,type:c.Json,format:"json"},n)),delete:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/hooks/${e}`,method:"DELETE",format:"json"},t)),trigger:(e,t,n={})=>this.request(Object.assign({path:`/api/v2/meta/hooks/${e}/trigger/${t}`,method:"POST"},n))},this.plugin={list:(e={})=>this.request(Object.assign({path:"/api/v1/db/meta/plugins",method:"GET",format:"json"},e)),webhookList:(e={})=>this.request(Object.assign({path:"/api/v1/db/meta/plugins/webhook",method:"GET",format:"json"},e)),status:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/plugins/${e}/status`,method:"GET",format:"json"},t)),test:(e,t={})=>this.request(Object.assign({path:"/api/v1/db/meta/plugins/test",method:"POST",body:e,type:c.Json,format:"json"},t)),update:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/plugins/${e}`,method:"PATCH",body:t,type:c.Json,format:"json"},n)),read:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/plugins/${e}`,method:"GET",format:"json"},t))},this.apiToken={list:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/api-tokens`,method:"GET",format:"json"},t)),create:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/api-tokens`,method:"POST",body:t,type:c.Json,format:"json"},n)),delete:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/api-tokens/${t}`,method:"DELETE",format:"json"},n))},this.storage={upload:(e,t,n={})=>this.request(Object.assign({path:"/api/v1/db/storage/upload",method:"POST",query:e,body:t,type:c.FormData},n)),uploadByUrl:(e,t,n={})=>this.request(Object.assign({path:"/api/v1/db/storage/upload-by-url",method:"POST",query:e,body:t,type:c.Json},n))},this.notification={poll:(e={})=>this.request(Object.assign({path:"/api/v1/notifications/poll",method:"GET",format:"json"},e)),list:(e,t={})=>this.request(Object.assign({path:"/api/v1/notifications",method:"GET",query:e,format:"json"},t)),update:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/notifications/${e}`,method:"PATCH",body:t,type:c.Json},n)),delete:(e,t={})=>this.request(Object.assign({path:`/api/v1/notifications/${e}`,method:"DELETE"},t)),markAllAsRead:(e={})=>this.request(Object.assign({path:"/api/v1/notifications/mark-all-read",method:"POST"},e))},this.dbDataTableAggregate={dbDataTableAggregate:(e,t,n={})=>this.request(Object.assign({path:`/api/v2/tables/${e}/aggregate`,method:"GET",query:t,format:"json"},n))},this.dbDataTableRow={list:(e,t,n={})=>this.request(Object.assign({path:`/api/v2/tables/${e}/records`,method:"GET",query:t,format:"json"},n)),create:(e,t,n,a={})=>this.request(Object.assign({path:`/api/v2/tables/${e}/records`,method:"POST",query:n,body:t,type:c.Json,format:"json"},a)),update:(e,t,n,a={})=>this.request(Object.assign({path:`/api/v2/tables/${e}/records`,method:"PATCH",query:n,body:t,type:c.Json,format:"json"},a)),delete:(e,t,n,a={})=>this.request(Object.assign({path:`/api/v2/tables/${e}/records`,method:"DELETE",query:n,body:t,type:c.Json,format:"json"},a)),read:(e,t,n,a={})=>this.request(Object.assign({path:`/api/v2/tables/${e}/records/${t}`,method:"GET",query:n,format:"json"},a)),count:(e,t,n={})=>this.request(Object.assign({path:`/api/v2/tables/${e}/records/count`,method:"GET",query:t,format:"json"},n)),nestedList:(e,t,n,a,r={})=>this.request(Object.assign({path:`/api/v2/tables/${e}/links/${t}/records/${n}`,method:"GET",query:a,format:"json"},r)),nestedLink:(e,t,n,a,r,i={})=>this.request(Object.assign({path:`/api/v2/tables/${e}/links/${t}/records/${n}`,method:"POST",query:r,body:a,type:c.Json,format:"json"},i)),nestedUnlink:(e,t,n,a,r,i={})=>this.request(Object.assign({path:`/api/v2/tables/${e}/links/${t}/records/${n}`,method:"DELETE",query:r,body:a,type:c.Json,format:"json"},i)),attachmentDownload:(e,t,n,a,r={})=>this.request(Object.assign({path:`/api/v2/downloadAttachment/${e}/${t}/${n}`,method:"GET",query:a,format:"json"},r)),nestedListCopyPasteOrDeleteAll:(e,t,n,a,r={})=>this.request(Object.assign({path:`/api/v2/tables/${e}/links/${t}/records`,method:"POST",query:a,body:n,type:c.Json,format:"json"},r))},this.extensions={list:(e,t={})=>this.request(Object.assign({path:`/api/v2/extensions/${e}`,method:"GET",format:"json"},t)),create:(e,t,n={})=>this.request(Object.assign({path:`/api/v2/extensions/${e}`,method:"POST",body:t,type:c.Json,format:"json"},n)),read:(e,t={})=>this.request(Object.assign({path:`/api/v2/extensions/${e}`,method:"GET",format:"json"},t)),update:(e,t,n={})=>this.request(Object.assign({path:`/api/v2/extensions/${e}`,method:"PATCH",body:t,type:c.Json,format:"json"},n)),delete:(e,t={})=>this.request(Object.assign({path:`/api/v2/extensions/${e}`,method:"DELETE",format:"json"},t))},this.jobs={listen:(e,t={})=>this.request(Object.assign({path:"/jobs/listen",method:"POST",body:e,type:c.Json},t)),list:(e,t,n={})=>this.request(Object.assign({path:`/api/v2/jobs/${e}`,method:"POST",body:t,type:c.Json},n))},this.export={data:(e,t,n,a={})=>this.request(Object.assign({path:`/api/v2/export/${e}/${t}`,method:"POST",body:n,type:c.Json},a))},this.integration={read:(e,t,n={})=>this.request(Object.assign({path:`/api/v2/meta/integrations/${e}`,method:"GET",query:t,format:"json"},n)),update:(e,t,n={})=>this.request(Object.assign({path:`/api/v2/meta/integrations/${e}`,method:"PATCH",body:t,type:c.Json},n)),delete:(e,t={})=>this.request(Object.assign({path:`/api/v2/meta/integrations/${e}`,method:"DELETE"},t)),list:(e,t,n={})=>this.request(Object.assign({path:`/api/v2/meta/workspaces/${e}/integrations`,method:"GET",query:t,format:"json"},n)),create:(e,t,n={})=>this.request(Object.assign({path:`/api/v2/meta/workspaces/${e}/integrations`,method:"POST",body:t,type:c.Json,format:"json"},n))},this.dashboard={layoutCreate:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/dashboards/${e}/layouts`,method:"POST",body:t,type:c.Json,format:"json"},n)),layoutList:(e,t={})=>this.request(Object.assign({path:`/api/v1/dashboards/${e}/layouts`,method:"GET"},t)),layoutGet:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/dashboards/${e}/layouts/${t}`,method:"GET",format:"json"},n)),layoutDelete:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/dashboards/${e}/layouts/${t}`,method:"DELETE",format:"json"},n)),layoutUpdate:(e,t,n,a={})=>this.request(Object.assign({path:`/api/v1/dashboards/${e}/layouts/${t}`,method:"PATCH",body:n,type:c.Json,format:"json"},a)),widgetList:(e,t={})=>this.request(Object.assign({path:`/api/v1/layouts/${e}/widgets`,method:"GET",format:"json"},t)),widgetCreate:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/layouts/${e}/widgets`,method:"POST",body:t,type:c.Json,format:"json"},n)),widgetGet:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/layouts/${e}/widgets/${t}`,method:"GET",format:"json"},n)),widgetDelete:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/layouts/${e}/widgets/${t}`,method:"DELETE",format:"json"},n)),widgetUpdate:(e,t,n,a={})=>this.request(Object.assign({path:`/api/v1/layouts/${e}/widgets/${t}`,method:"PATCH",body:n,type:c.Json,format:"json"},a)),widgetFilterRead:(e,t,n,a={})=>this.request(Object.assign({path:`/api/v1/dashboards/${e}/layouts/${t}/widgets/${n}/filters`,method:"GET",format:"json"},a)),widgetFilterCreate:(e,t,n,a,r={})=>this.request(Object.assign({path:`/api/v1/dashboards/${e}/layouts/${t}/widgets/${n}/filters`,method:"POST",body:a,type:c.Json,format:"json"},r))},this.nocoDocs={listPublicPages:(e,t,n={})=>this.request(Object.assign({path:`api/v1/public/docs/${e}/pages/${t}/nested`,method:"GET",format:"json"},n)),getPublicPageAndBase:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/public/docs/${e}/pages/${t}`,method:"GET",format:"json"},n)),listPages:(e,t={})=>this.request(Object.assign({path:`/api/v1/docs/${e}/pages`,method:"GET",format:"json"},t)),createPage:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/docs/${e}/pages`,method:"POST",body:t,type:c.Json,format:"json"},n)),getPage:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/docs/${e}/pages/${t}`,method:"GET",format:"json"},n)),deletePage:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/docs/${e}/pages/${t}`,method:"DELETE"},n)),updatePage:(e,t,n,a={})=>this.request(Object.assign({path:`/api/v1/docs/${e}/pages/${t}`,method:"PUT",body:n,type:c.Json,format:"json"},a)),docsPageGpt:(e,t,n,a,r={})=>this.request(Object.assign({path:`/api/v1/docs/${e}/pages/${t}/gpt`,method:"POST",query:n,body:a,type:c.Json,format:"json"},r)),docsGpt:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/docs/${e}/pages/gpt`,method:"POST",body:t,type:c.Json},n)),importPages:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/docs/${e}/pages/import`,method:"POST",body:t,type:c.Json},n)),syncPageHistory:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/docs/${e}/pages/${t}/history/sync`,method:"POST",format:"json"},n)),listPageHistory:(e,t,n,a={})=>this.request(Object.assign({path:`/api/v1/docs/${e}/pages/${t}/history`,method:"GET",query:n,format:"json"},a)),restorePageHistory:(e,t,n,a={})=>this.request(Object.assign({path:`/api/v1/docs/${e}/pages/${t}/history/${n}/restore`,method:"POST"},a))},this.dbDataTableBulkAggregate={dbDataTableBulkAggregate:(e,t,n,a={})=>this.request(Object.assign({path:`/api/v2/tables/${e}/bulk/aggregate`,method:"POST",query:t,body:n,type:c.Json,format:"json"},a))},this.workspace={list:(e={})=>this.request(Object.assign({path:"/api/v1/workspaces",method:"GET",format:"json"},e)),create:(e,t={})=>this.request(Object.assign({path:"/api/v1/workspaces",method:"POST",body:e,type:c.Json,format:"json"},t)),read:(e,t={})=>this.request(Object.assign({path:`/api/v1/workspaces/${e}`,method:"GET",format:"json"},t)),update:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/workspaces/${e}`,method:"PATCH",body:t,type:c.Json},n)),delete:(e,t={})=>this.request(Object.assign({path:`/api/v1/workspaces/${e}`,method:"DELETE"},t)),upgrade:(e,t={})=>this.request(Object.assign({path:`/api/v1/workspaces/${e}/upgrade`,method:"POST",format:"json"},t)),auditList:(e,t,n={})=>this.request(Object.assign({path:`/api/v2/meta/workspace/${e}/audits`,method:"GET",query:t,format:"json"},n))},this.workspaceUser={list:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/workspaces/${e}/users`,method:"GET",query:t,format:"json"},n)),invite:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/workspaces/${e}/invitations`,method:"POST",body:t,type:c.Json,format:"json"},n)),read:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/workspaces/${e}/users/${t}`,method:"GET",format:"json"},n)),update:(e,t,n,a={})=>this.request(Object.assign({path:`/api/v1/workspaces/${e}/users/${t}`,method:"PATCH",body:n,type:c.Json},a)),delete:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/workspaces/${e}/users/${t}`,method:"DELETE"},n))},this.workspaceBase={list:(e,t={})=>this.request(Object.assign({path:`/api/v1/workspaces/${e}/bases`,method:"GET",format:"json"},t)),move:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/workspaces/${e}/bases/${t}/move`,method:"POST",format:"json"},n))},this.cowriterTable={create:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/cowriter/meta/tables/${e}`,method:"POST",body:t,type:c.Json,format:"json"},n)),list:(e,t={})=>this.request(Object.assign({path:`/api/v1/cowriter/meta/tables/${e}`,method:"GET",format:"json"},t)),get:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/cowriter/meta/tables/${e}/${t}`,method:"GET",format:"json"},n)),patch:(e,t,n,a={})=>this.request(Object.assign({path:`/api/v1/cowriter/meta/tables/${e}/${t}`,method:"PATCH",body:n,type:c.Json},a)),generateColumns:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/cowriter/meta/tables/${e}/generate-columns`,method:"POST",body:t,type:c.Json},n)),createBulk:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/cowriter/meta/tables/${e}/bulk`,method:"POST",body:t,type:c.Json},n))},this.ssoClient={list:(e={})=>this.request(Object.assign({path:"/api/v2/sso-clients",method:"GET",format:"json"},e)),create:(e,t={})=>this.request(Object.assign({path:"/api/v2/sso-clients",method:"POST",body:e,type:c.Json,format:"json"},t)),update:(e,t,n={})=>this.request(Object.assign({path:`/api/v2/sso-clients/${e}`,method:"PATCH",body:t,type:c.Json,format:"json"},n)),delete:(e,t={})=>this.request(Object.assign({path:`/api/v2/sso-clients/${e}`,method:"DELETE",format:"json"},t))},this.orgBases={orgBaseList:(e,t={})=>this.request(Object.assign({path:`/api/v2/orgs/${e}/bases`,method:"GET",format:"json"},t))},this.orgUser={list:(e,t={})=>this.request(Object.assign({path:`/api/v2/orgs/${e}/users`,method:"GET",format:"json"},t))},this.orgWorkspace={list:(e,t={})=>this.request(Object.assign({path:`/api/v2/orgs/${e}/workspaces`,method:"GET",format:"json"},t)),add:(e,t,n={})=>this.request(Object.assign({path:`/api/v2/orgs/${e}/workspaces/${t}`,method:"POST"},n)),upgrade:(e,t={})=>this.request(Object.assign({path:`/api/v2/orgs/workspaces/${e}/upgrade`,method:"POST",format:"json"},t))},this.orgSsoClient={list:(e,t={})=>this.request(Object.assign({path:`/api/v2/orgs/${e}/sso-clients`,method:"GET",format:"json"},t)),create:(e,t,n={})=>this.request(Object.assign({path:`/api/v2/orgs/${e}/sso-clients`,method:"POST",body:t,type:c.Json,format:"json"},n)),update:(e,t,n,a={})=>this.request(Object.assign({path:`/api/v2/orgs/${e}/sso-clients/${t}`,method:"PATCH",body:n,type:c.Json,format:"json"},a)),delete:(e,t,n={})=>this.request(Object.assign({path:`/api/v2/orgs/${e}/sso-clients/${t}`,method:"DELETE",format:"json"},n)),getByEmail:(e,t={})=>this.request(Object.assign({path:"/api/v2/sso",method:"POST",body:e,type:c.Json,format:"json"},t))},this.orgDomain={list:(e,t={})=>this.request(Object.assign({path:`/api/v2/orgs/${e}/domains`,method:"GET",format:"json"},t)),create:(e,t,n={})=>this.request(Object.assign({path:`/api/v2/orgs/${e}/domains`,method:"POST",body:t,type:c.Json,format:"json"},n)),update:(e,t,n={})=>this.request(Object.assign({path:`/api/v2/domains/${e}`,method:"PATCH",body:t,type:c.Json,format:"json"},n)),delete:(e,t={})=>this.request(Object.assign({path:`/api/v2/domains/${e}`,method:"DELETE",format:"json"},t)),verify:(e,t={})=>this.request(Object.assign({path:`/api/v2/domains/${e}/verify`,method:"POST",format:"json"},t))},this.org={read:(e,t={})=>this.request(Object.assign({path:`/api/v2/orgs/${e}`,method:"GET",format:"json"},t)),update:(e,t,n={})=>this.request(Object.assign({path:`/api/v2/orgs/${e}`,method:"PATCH",body:t,type:c.Json,format:"json"},n))},this.dbTableLinkFilter={read:(e,t={})=>this.request(Object.assign({path:`/api/v2/meta/links/${e}/filters`,method:"GET",format:"json"},t)),create:(e,t,n={})=>this.request(Object.assign({path:`/api/v2/meta/links/${e}/filters`,method:"POST",body:t,type:c.Json,format:"json"},n))}}}const m=__webpack_require__(88295);var h=n.n(m);const b=__webpack_require__(88057);var g=n.n(b);const v=["int","smallint","mediumint","bigint","bit","boolean","float","decimal","double","serial","tinyint","date","datetime","timestamp","time","year","char","varchar","nchar","text","tinytext","mediumtext","longtext","binary","varbinary","blob","tinyblob","mediumblob","longblob","enum","set","geometry","point","linestring","polygon","multipoint","multilinestring","multipolygon","json"];class y{static getNewTableColumns(){return[{column_name:"id",title:"Id",dt:"int",dtx:"integer",ct:"int(11)",nrqd:!1,rqd:!0,ck:!1,pk:!0,un:!0,ai:!0,cdf:null,clen:null,np:11,ns:0,dtxp:"11",dtxs:"",altered:1,uidt:"ID",uip:"",uicn:""},{column_name:"title",title:"Title",dt:"TEXT",dtx:"specificType",ct:null,nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,cdf:null,clen:null,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:"SingleLineText",uip:"",uicn:""},{column_name:"created_at",title:"CreatedAt",dt:"timestamp",dtx:"specificType",ct:"timestamp",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,cdf:null,clen:45,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:Ge.CreatedTime,uip:"",uicn:"",system:!0},{column_name:"updated_at",title:"UpdatedAt",dt:"timestamp",dtx:"specificType",ct:"timestamp",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,clen:45,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:Ge.LastModifiedTime,uip:"",uicn:"",system:!0},{column_name:"created_by",title:"nc_created_by",dt:"varchar",dtx:"specificType",ct:"varchar(45)",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,clen:45,np:null,ns:null,dtxp:"45",dtxs:"",altered:1,uidt:Ge.CreatedBy,uip:"",uicn:"",system:!0},{column_name:"updated_by",title:"nc_updated_by",dt:"varchar",dtx:"specificType",ct:"varchar(45)",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,clen:45,np:null,ns:null,dtxp:"45",dtxs:"",altered:1,uidt:Ge.LastModifiedBy,uip:"",uicn:"",system:!0}]}static getNewColumn(e){return{column_name:"title"+e,dt:"TEXT",dtx:"specificType",ct:null,nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,cdf:null,clen:null,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:"SingleLineText",uip:"",uicn:""}}static getDefaultLengthForDatatype(e){switch(e){case"int":return 11;case"tinyint":return 1;case"smallint":return 5;case"mediumint":return 9;case"bigint":case"serial":return 20;case"bit":return 64;case"boolean":case"date":case"datetime":case"timestamp":case"time":case"year":case"text":case"tinytext":case"mediumtext":case"longtext":case"blob":case"tinyblob":case"mediumblob":case"longblob":case"enum":case"set":case"geometry":case"point":case"linestring":case"polygon":case"multipoint":case"multilinestring":case"multipolygon":case"json":return"";case"float":return 12;case"decimal":return 10;case"double":return 22;case"char":case"varchar":case"nchar":case"binary":return 255;case"varbinary":return 65500}}static getDefaultLengthIsDisabled(e){switch(e){case"int":case"tinyint":case"smallint":case"mediumint":case"bigint":case"float":case"decimal":case"double":case"serial":case"datetime":case"timestamp":case"char":case"varchar":case"nchar":case"binary":case"varbinary":case"enum":case"set":case"geometry":case"point":case"linestring":case"polygon":case"multipoint":case"multilinestring":case"multipolygon":case"json":case"bit":return!1;case"boolean":case"date":case"time":case"year":case"text":case"tinytext":case"mediumtext":case"longtext":case"blob":case"tinyblob":case"mediumblob":case"longblob":return!0}}static getDefaultValueForDatatype(e){switch(e){case"int":case"smallint":case"mediumint":case"float":case"decimal":case"double":return"eg : 10";case"tinyint":case"bit":case"boolean":case"binary":return"eg : 1";case"bigint":case"serial":return"eg : 100";case"date":return"eg : 2020-09-09";case"datetime":case"timestamp":return"eg : now()\n\nCURRENT_TIMESTAMP\n\nCURRENT_TIMESTAMP on update CURRENT_TIMESTAMP\n\n1992-10-12 00:00:00";case"time":return"eg : 00:00:00";case"year":return"eg : 2020";case"char":case"enum":case"set":return"eg : a";case"varchar":case"nchar":case"text":case"tinytext":case"mediumtext":case"longtext":case"varbinary":case"blob":case"tinyblob":case"mediumblob":case"longblob":return"eg : hey";case"geometry":return"geometry can't have default value";case"point":return"point can't have default value";case"linestring":return"linestring can't have default value";case"polygon":return"polygon can't have default value";case"multipoint":return"multipoint can't have default value";case"multilinestring":return"multilinestring can't have default value";case"multipolygon":return"multipolygon can't have default value";case"json":return"JSON can't have default value"}}static getDefaultScaleForDatatype(e){switch(e){case"int":case"tinyint":case"smallint":case"mediumint":case"bigint":case"bit":case"boolean":case"serial":case"date":case"datetime":case"timestamp":case"time":case"year":case"char":case"varchar":case"nchar":case"text":case"tinytext":case"mediumtext":case"longtext":case"binary":case"varbinary":case"blob":case"tinyblob":case"mediumblob":case"longblob":case"enum":case"set":case"geometry":case"point":case"linestring":case"polygon":case"multipoint":case"multilinestring":case"multipolygon":case"json":return" ";case"float":case"decimal":case"double":return"2"}}static colPropAIDisabled(e,t){if("int"===e.dt||"tinyint"===e.dt||"bigint"===e.dt||"smallint"===e.dt){for(let n=0;n<t.length;++n)if(t[n].cn!==e.cn&&t[n].ai)return!0;return!1}return!0}static colPropUNDisabled(e){return!("int"===e.dt||"tinyint"===e.dt||"smallint"===e.dt||"mediumint"===e.dt||"bigint"===e.dt)}static onCheckboxChangeAI(e){"int"!==e.dt&&"bigint"!==e.dt&&"smallint"!==e.dt&&"tinyint"!==e.dt||(e.altered=e.altered||2)}static onCheckboxChangeAU(e){console.log(e),e.altered=e.altered||2}static showScale(e){return"float"===e.dt||"decimal"===e.dt||"double"===e.dt||"real"===e.dt}static removeUnsigned(e){for(let t=0;t<e.length;++t)1===e[t].altered&&"int"!==e[t].dt&&"bigint"!==e[t].dt&&"tinyint"!==e[t].dt&&"smallint"!==e[t].dt&&"mediumint"!==e[t].dt&&(e[t].un=!1,console.log(">> resetting unsigned value",e[t].cn)),console.log(e[t].cn)}static columnEditable(e){return"_evolutions"!==e.tn||"nc_evolutions"!==e.tn}static colPropAuDisabled(e){return!0}static getUIType(e){switch(this.getAbstractType(e)){case"integer":return"Number";case"boolean":return"Checkbox";case"float":return"Decimal";case"date":return"Date";case"datetime":return"DateTime";case"time":return"Time";case"year":return"Year";case"string":return"SingleLineText";case"text":case"json":return"LongText";case"blob":return"Attachment";case"enum":return"SingleSelect";case"set":return"MultiSelect"}}static getAbstractType(e){var t;switch(null===(t=e.dt)||void 0===t?void 0:t.toLowerCase()){case"int":case"smallint":case"mediumint":case"bigint":case"bit":return"integer";case"boolean":return"boolean";case"float":case"decimal":case"double":case"serial":return"float";case"tinyint":return"1"==e.dtxp?"boolean":"integer";case"date":return"date";case"datetime":case"timestamp":return"datetime";case"time":return"time";case"year":return"year";case"char":case"varchar":case"nchar":case"binary":case"geometry":case"point":case"linestring":case"polygon":case"multipoint":case"multilinestring":case"multipolygon":return"string";case"text":case"tinytext":case"mediumtext":case"longtext":case"varbinary":return"text";case"blob":case"tinyblob":case"mediumblob":case"longblob":return"blob";case"enum":return"enum";case"set":return"set";case"json":return"json"}}static getDataTypeForUiType(e,t){var n,a,r,i;const s={};switch(e.uidt){case"ID":{const e="AI"===t,n="AG"===t;s.dt=n?"varchar":"int",s.pk=!0,s.un=e,s.ai=e,s.rqd=!0,s.meta=n?{ag:"nc"}:void 0}break;case"ForeignKey":case"Collaborator":case"Formula":case"Rollup":case"Lookup":case"Barcode":case"Button":default:s.dt="varchar";break;case"SingleLineText":case"LongText":case"Attachment":case"GeoData":s.dt="text";break;case"Checkbox":s.dt="tinyint",s.dtxp=1,s.cdf="0";break;case"MultiSelect":s.dt="set",((null===(n=e.colOptions)||void 0===n?void 0:n.options.length)>64||(null===(i=null===(r=null===(a=e.dtxp)||void 0===a?void 0:a.toString)||void 0===r?void 0:r.call(a))||void 0===i?void 0:i.split(",").length)>64)&&(s.dt="text");break;case"SingleSelect":s.dt="enum";break;case"Date":s.dt="date";break;case"Year":s.dt="year";break;case"Time":s.dt="time";break;case"PhoneNumber":s.dt="varchar",s.validate={func:["isMobilePhone"],args:[""],msg:["Validation failed : isMobilePhone ({cn})"]};break;case"Email":s.dt="varchar",s.validate={func:["isEmail"],args:[""],msg:["Validation failed : isEmail ({cn})"]};break;case"URL":s.dt="text",s.validate={func:["isURL"],args:[""],msg:["Validation failed : isURL ({cn})"]};break;case"Number":s.dt="bigint";break;case"Decimal":case"Duration":s.dt="decimal";break;case"Currency":s.dt="decimal",s.validate={func:["isCurrency"],args:[""],msg:["Validation failed : isCurrency"]};break;case"Percent":s.dt="double";break;case"Rating":s.dt="int",s.cdf="0";break;case"Count":case"AutoNumber":s.dt="int";break;case"DateTime":s.dt="datetime";break;case"CreatedTime":case"LastModifiedTime":s.dt="timestamp";break;case"JSON":s.dt="json"}return s}static getDataTypeListForUiType(e,t){switch(e.uidt){case"ID":return"AG"===t?["varchar","char","nchar"]:"AI"===t?["int","smallint","mediumint","bigint","bit","serial"]:v;case"ForeignKey":default:return v;case"SingleLineText":case"LongText":case"Collaborator":case"GeoData":return["text","mediumtext","longtext","varchar","char","nchar","tinytext"];case"Attachment":return["json","char","varchar","nchar","text","tinytext","mediumtext","longtext"];case"JSON":return["json","text","tinytext","mediumtext","longtext"];case"Checkbox":return["int","smallint","mediumint","bigint","bit","boolean","serial","tinyint"];case"MultiSelect":return["set","text","tinytext","mediumtext","longtext"];case"SingleSelect":return["enum","text","tinytext","mediumtext","longtext"];case"Year":return["year"];case"Time":return["time"];case"PhoneNumber":case"Email":case"Rollup":case"Lookup":case"Barcode":return["varchar"];case"URL":return["text","tinytext","mediumtext","longtext","varchar"];case"Number":return["int","smallint","mediumint","bigint","bit","float","decimal","double","serial"];case"Decimal":return["float","decimal","double","serial"];case"Currency":case"Percent":case"Duration":case"Rating":return["decimal","float","double","serial","int","smallint","mediumint","bigint","bit"];case"Formula":case"Button":return["char","varchar","nchar","text","tinytext","mediumtext","longtext"];case"Count":return["int","smallint","mediumint","bigint","serial"];case"Date":return["date","datetime","timestamp","varchar"];case"DateTime":case"CreatedTime":case"LastModifiedTime":return["datetime","timestamp","varchar"];case"AutoNumber":return["int","smallint","mediumint","bigint"];case"Geometry":return["geometry","point","linestring","polygon","multipoint","multilinestring","multipolygon"]}}static getUnsupportedFnList(){return["COUNTA","COUNT","DATESTR"]}static getCurrentDateDefault(e){return e.dt&&("timestamp"===e.dt.toLowerCase()||"datetime"===e.dt.toLowerCase())||!e.dt&&e.uidt===Ge.DateTime?"CURRENT_TIMESTAMP":null}static isEqual(e,t){if(e===t)return!0;const n=this.getAbstractType({dt:e}),a=this.getAbstractType({dt:t});return!(!n||n!==a||!["integer","float"].includes(n))}}const _=["int","integer","bigint","bigserial","char","int2","int4","int8","int4range","int8range","serial","serial2","serial8","character","bit","bool","boolean","date","double precision","event_trigger","fdw_handler","float4","float8","uuid","smallint","smallserial","character varying","text","real","time","time without time zone","timestamp","timestamp without time zone","timestamptz","timestamp with time zone","timetz","time with time zone","daterange","json","jsonb","gtsvector","index_am_handler","anyenum","anynonarray","anyrange","box","bpchar","bytea","cid","cidr","circle","cstring","inet","internal","interval","language_handler","line","lsec","macaddr","money","name","numeric","numrange","oid","opaque","path","pg_ddl_command","pg_lsn","pg_node_tree","point","polygon","record","refcursor","regclass","regconfig","regdictionary","regnamespace","regoper","regoperator","regproc","regpreocedure","regrole","regtype","reltime","smgr","tid","tinterval","trigger","tsm_handler","tsquery","tsrange","tstzrange","tsvector","txid_snapshot","unknown","void","xid","xml"];class E{static getNewTableColumns(){return[{column_name:"id",title:"Id",dt:"int4",dtx:"integer",ct:"int(11)",nrqd:!1,rqd:!0,ck:!1,pk:!0,un:!1,ai:!0,cdf:null,clen:null,np:11,ns:0,dtxp:"11",dtxs:"",altered:1,uidt:"ID",uip:"",uicn:""},{column_name:"title",title:"Title",dt:"TEXT",dtx:"specificType",ct:null,nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,cdf:null,clen:null,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:"SingleLineText",uip:"",uicn:""},{column_name:"created_at",title:"CreatedAt",dt:"timestamp",dtx:"specificType",ct:"timestamp",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,clen:45,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:Ge.CreatedTime,uip:"",uicn:"",system:!0},{column_name:"updated_at",title:"UpdatedAt",dt:"timestamp",dtx:"specificType",ct:"timestamp",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,clen:45,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:Ge.LastModifiedTime,uip:"",uicn:"",system:!0},{column_name:"created_by",title:"nc_created_by",dt:"varchar",dtx:"specificType",ct:"varchar(45)",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,clen:45,np:null,ns:null,dtxp:"45",dtxs:"",altered:1,uidt:Ge.CreatedBy,uip:"",uicn:"",system:!0},{column_name:"updated_by",title:"nc_updated_by",dt:"varchar",dtx:"specificType",ct:"varchar(45)",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,clen:45,np:null,ns:null,dtxp:"45",dtxs:"",altered:1,uidt:Ge.LastModifiedBy,uip:"",uicn:"",system:!0}]}static getNewColumn(e){return{column_name:"title"+e,dt:"TEXT",dtx:"specificType",ct:null,nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,cdf:null,clen:null,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:"SingleLineText",uip:"",uicn:""}}static getDefaultLengthForDatatype(e){switch(e){case"int":case"tinyint":case"smallint":case"mediumint":case"bigint":case"bit":case"boolean":case"float":case"decimal":case"double":case"serial":case"date":case"datetime":case"timestamp":case"time":case"year":case"char":case"varchar":case"nchar":case"text":case"tinytext":case"mediumtext":case"longtext":case"binary":case"varbinary":case"blob":case"tinyblob":case"mediumblob":case"longblob":case"enum":case"set":case"geometry":case"point":case"linestring":case"polygon":case"multipoint":case"multilinestring":case"multipolygon":case"json":return""}}static getDefaultLengthIsDisabled(e){switch(e){case"anyenum":case"anynonarray":case"anyrange":case"bigint":case"bigserial":case"bit":case"bool":case"box":case"bpchar":case"bytea":case"char":case"character":case"cid":case"cidr":case"circle":case"cstring":case"date":case"daterange":case"double precision":case"event_trigger":case"fdw_handler":case"float4":case"float8":case"gtsvector":case"index_am_handler":case"inet":case"int":case"int2":case"int4":case"int8":case"int4range":case"int8range":case"integer":case"internal":case"interval":case"jsonb":case"language_handler":case"line":case"lsec":case"macaddr":case"money":case"name":case"numeric":case"numrange":case"oid":case"opaque":case"path":case"pg_ddl_command":case"pg_lsn":case"pg_node_tree":case"real":case"record":case"refcursor":case"regclass":case"regconfig":case"regdictionary":case"regnamespace":case"regoper":case"regoperator":case"regproc":case"regpreocedure":case"regrole":case"regtype":case"reltime":case"serial":case"serial2":case"serial8":case"smallint":case"smallserial":case"smgr":case"text":case"tid":case"time":case"time without time zone":case"timestamp":case"timestamp without time zone":case"timestamptz":case"timestamp with time zone":case"timetz":case"time with time zone":case"tinterval":case"trigger":case"tsm_handler":case"tsquery":case"tsrange":case"tstzrange":case"tsvector":case"txid_snapshot":case"unknown":case"void":case"xid":case"xml":case"character varying":case"tinyint":case"mediumint":case"float":case"decimal":case"double":case"boolean":case"datetime":case"uuid":case"year":case"varchar":case"nchar":case"tinytext":case"mediumtext":case"longtext":case"binary":case"varbinary":case"blob":case"tinyblob":case"mediumblob":case"longblob":case"enum":case"set":case"geometry":case"point":case"linestring":case"polygon":case"multipoint":case"multilinestring":case"multipolygon":case"json":return!0}}static getDefaultValueForDatatype(e){switch(e){case"anyenum":case"anynonarray":case"anyrange":case"bigint":case"bigserial":case"bit":case"bool":case"box":case"bpchar":case"bytea":case"char":case"cid":case"cidr":case"circle":case"cstring":case"daterange":case"event_trigger":case"fdw_handler":case"gtsvector":case"index_am_handler":case"inet":case"int":case"int2":case"int4":case"int8":case"int4range":case"int8range":case"integer":case"internal":case"interval":case"json":case"jsonb":case"language_handler":case"line":case"lsec":case"macaddr":case"money":case"name":case"numeric":case"numrange":case"oid":case"opaque":case"path":case"pg_ddl_command":case"pg_lsn":case"pg_node_tree":case"point":case"polygon":case"record":case"refcursor":case"regclass":case"regconfig":case"regdictionary":case"regnamespace":case"regoper":case"regoperator":case"regproc":case"regpreocedure":case"regrole":case"regtype":case"reltime":case"serial":case"serial2":case"serial8":case"smallint":case"smallserial":case"smgr":case"tid":case"tinterval":case"trigger":case"tsm_handler":case"tsquery":case"tsrange":case"tstzrange":case"tsvector":case"txid_snapshot":case"unknown":case"void":case"xid":case"xml":case"tinyint":case"mediumint":case"float":case"decimal":case"datetime":case"uuid":case"year":case"varchar":case"nchar":case"tinytext":case"mediumtext":case"longtext":case"binary":case"varbinary":case"blob":case"tinyblob":case"mediumblob":case"longblob":case"enum":case"set":case"geometry":case"linestring":case"multipoint":case"multilinestring":case"multipolygon":return"eg: ";case"character":return"eg: 'sample'";case"date":return"eg: '2020-09-09'";case"double precision":case"float4":case"float8":case"real":case"double":return"eg: 1.2";case"text":case"character varying":return"eg: 'sample text'";case"time":case"time without time zone":return"eg: now()\n\n'04:05:06.789'";case"timestamp":case"timestamp without time zone":case"timestamp with time zone":return"eg: now()\n\n'2016-06-22 19:10:25-07'";case"timestamptz":return"eg: timezone('America/New_York','2016-06-01 00:00')\n\nnow()\n\n'2016-06-22 19:10:25-07'";case"timetz":case"time with time zone":return"eg: now()";case"boolean":return"eg: true\n\nfalse"}}static getDefaultScaleForDatatype(e){switch(e){case"int":case"tinyint":case"smallint":case"mediumint":case"bigint":case"bit":case"boolean":case"serial":case"date":case"datetime":case"timestamp":case"time":case"year":case"char":case"varchar":case"nchar":case"text":case"tinytext":case"mediumtext":case"longtext":case"binary":case"varbinary":case"blob":case"tinyblob":case"mediumblob":case"longblob":case"enum":case"set":case"geometry":case"point":case"linestring":case"polygon":case"multipoint":case"multilinestring":case"multipolygon":case"json":return" ";case"float":case"decimal":case"double":return"2"}}static colPropAIDisabled(e,t){if("int4"===e.dt||"integer"===e.dt||"bigint"===e.dt||"smallint"===e.dt){for(let n=0;n<t.length;++n)if(t[n].cn!==e.cn&&t[n].ai)return!0;return!1}return!0}static colPropUNDisabled(e){return!0}static onCheckboxChangeAI(e){console.log(e),"int"!==e.dt&&"bigint"!==e.dt&&"smallint"!==e.dt&&"tinyint"!==e.dt||(e.altered=e.altered||2)}static onCheckboxChangeAU(e){console.log(e),e.altered=e.altered||2,e.au&&(e.cdf="now()")}static showScale(e){return!1}static removeUnsigned(e){for(let t=0;t<e.length;++t)1===e[t].altered&&"int"!==e[t].dt&&"bigint"!==e[t].dt&&"tinyint"!==e[t].dt&&"smallint"!==e[t].dt&&"mediumint"!==e[t].dt&&(e[t].un=!1,console.log(">> resetting unsigned value",e[t].cn)),console.log(e[t].cn)}static columnEditable(e){return"_evolutions"!==e.tn||"nc_evolutions"!==e.tn}static colPropAuDisabled(e){if(1!==e.altered)return!0;switch(e.dt){case"time":case"time without time zone":case"timestamp":case"timestamp without time zone":case"timestamptz":case"timestamp with time zone":case"timetz":case"time with time zone":return!1;default:return!0}}static getAbstractType(e){var t;switch(null===(t=e.dt)||void 0===t?void 0:t.toLowerCase()){case"anyenum":case"enum":return"enum";case"anynonarray":case"anyrange":case"box":case"bpchar":case"bytea":case"char":case"character":case"cid":case"cidr":case"circle":case"cstring":case"daterange":case"event_trigger":case"fdw_handler":case"gtsvector":case"index_am_handler":case"inet":case"int4range":case"int8range":case"internal":case"interval":case"language_handler":case"line":case"lsec":case"macaddr":case"money":case"name":case"numeric":case"numrange":case"oid":case"opaque":case"path":case"pg_ddl_command":case"pg_lsn":case"pg_node_tree":case"point":case"polygon":case"record":case"refcursor":case"regclass":case"regconfig":case"regdictionary":case"regnamespace":case"regoper":case"regoperator":case"regproc":case"regpreocedure":case"regrole":case"regtype":case"reltime":case"smgr":case"tid":case"tinterval":case"trigger":case"tsm_handler":case"tsquery":case"tsrange":case"tstzrange":case"tsvector":case"txid_snapshot":case"unknown":case"void":case"xid":case"character varying":case"xml":case"uuid":case"year":case"varchar":case"nchar":case"binary":case"varbinary":case"geometry":case"linestring":case"multipoint":case"multilinestring":case"multipolygon":return"string";case"bit":case"int":case"int2":case"int4":case"int8":case"integer":case"bigint":case"bigserial":case"serial":case"serial2":case"serial8":case"smallint":case"smallserial":case"tinyint":case"mediumint":return"integer";case"bool":case"boolean":return"boolean";case"date":return"date";case"double precision":case"float4":case"float8":case"real":case"float":case"decimal":case"double":return"float";case"text":case"tinytext":case"mediumtext":case"longtext":return"text";case"time":case"time without time zone":case"timetz":case"time with time zone":return"time";case"timestamp":case"timestamp without time zone":case"timestamptz":case"timestamp with time zone":case"datetime":return"datetime";case"blob":case"tinyblob":case"mediumblob":case"longblob":return"blob";case"set":return"set";case"json":case"jsonb":return"json"}}static getUIType(e){switch(this.getAbstractType(e)){case"integer":return"Number";case"boolean":return"Checkbox";case"float":return"Decimal";case"date":return"Date";case"datetime":return"CreatedTime";case"time":return"Time";case"year":return"Year";case"string":return"SingleLineText";case"text":case"json":return"LongText";case"blob":return"Attachment";case"enum":return"SingleSelect";case"set":return"MultiSelect"}}static getDataTypeForUiType(e,t){const n={};switch(e.uidt){case"ID":{const e="AI"===t,a="AG"===t;n.dt=a?"character varying":"int4",n.pk=!0,n.un=e,n.ai=e,n.rqd=!0,n.meta=a?{ag:"nc"}:void 0}break;case"ForeignKey":case"Collaborator":case"Formula":case"Rollup":case"Lookup":case"Barcode":case"Button":default:n.dt="character varying";break;case"SingleLineText":case"LongText":case"Attachment":case"GeoData":case"MultiSelect":case"SingleSelect":n.dt="text";break;case"Checkbox":n.dt="bool",n.cdf="false";break;case"Date":n.dt="date";break;case"Year":case"AutoNumber":n.dt="int";break;case"Time":n.dt="time";break;case"PhoneNumber":n.dt="character varying",n.validate={func:["isMobilePhone"],args:[""],msg:["Validation failed : isMobilePhone"]};break;case"Email":n.dt="character varying",n.validate={func:["isEmail"],args:[""],msg:["Validation failed : isEmail"]};break;case"URL":n.dt="text",n.validate={func:["isURL"],args:[""],msg:["Validation failed : isURL"]};break;case"Number":n.dt="bigint";break;case"Decimal":case"Duration":n.dt="decimal";break;case"Currency":n.dt="decimal",n.validate={func:["isCurrency"],args:[""],msg:["Validation failed : isCurrency"]};break;case"Percent":n.dt="double precision";break;case"Rating":n.dt="smallint",n.cdf="0";break;case"Count":n.dt="int8";break;case"DateTime":case"CreatedTime":case"LastModifiedTime":n.dt="timestamp";break;case"JSON":n.dt="json"}return n}static getDataTypeListForUiType(e,t){switch(e.uidt){case"ID":return"AG"===t?["char","character","character varying"]:"AI"===t?["int","integer","bigint","bigserial","int2","int4","int8","serial","serial2","serial8","smallint","smallserial"]:_;case"ForeignKey":default:return _;case"SingleLineText":case"LongText":case"Collaborator":case"GeoData":return["text","character varying","char","character"];case"Attachment":return["json","text","char","character","character varying"];case"JSON":return["json","jsonb","text"];case"Checkbox":return["bit","bool","int2","int4","int8","boolean","smallint","int","integer","bigint","bigserial","char","int4range","int8range","serial","serial2","serial8"];case"MultiSelect":case"SingleSelect":return["text"];case"Year":return["int"];case"Time":return["time","time without time zone","timestamp","timestamp without time zone","timestamptz","timestamp with time zone","timetz","time with time zone"];case"PhoneNumber":case"Email":case"Rollup":case"Lookup":case"User":case"CreatedBy":case"LastModifiedBy":case"Barcode":return["character varying"];case"URL":case"Formula":case"Button":return["text","character varying"];case"Number":case"Percent":case"Duration":case"Rating":return["int","integer","bigint","bigserial","int2","int4","int8","serial","serial2","serial8","double precision","float4","float8","smallint","smallserial","numeric"];case"Decimal":return["double precision","float4","float8","numeric"];case"Currency":return["int","integer","bigint","bigserial","int2","int4","int8","serial","serial2","serial8","double precision","money","float4","float8","numeric"];case"Count":case"AutoNumber":return["int","integer","bigint","bigserial","int2","int4","int8","serial","serial2","serial8","smallint","smallserial"];case"Date":return["date","timestamp","timestamp without time zone","timestamptz","timestamp with time zone"];case"DateTime":case"CreatedTime":case"LastModifiedTime":return["timestamp","timestamp without time zone","timestamptz","timestamp with time zone"];case"Geometry":return["polygon","point","circle","box","line","lseg","path","circle"]}}static getUnsupportedFnList(){return[]}static getCurrentDateDefault(e){return e.uidt===Ge.DateTime||e.uidt===Ge.Date?"NOW()":null}static isEqual(e,t){if((null==e?void 0:e.toLowerCase())===(null==t?void 0:t.toLowerCase()))return!0;const n=this.getAbstractType({dt:e}),a=this.getAbstractType({dt:t});return!(!n||n!==a||!["integer","float"].includes(n))}}const x=["bigint","binary","bit","char","date","datetime","datetime2","datetimeoffset","decimal","float","geography","geometry","heirarchyid","image","int","money","nchar","ntext","numeric","nvarchar","real","json","smalldatetime","smallint","smallmoney","sql_variant","sysname","text","time","timestamp","tinyint","uniqueidentifier","varbinary","xml","varchar"];class T{static getNewTableColumns(){return[{column_name:"id",title:"Id",dt:"int",dtx:"integer",ct:"int(11)",nrqd:!1,rqd:!0,ck:!1,pk:!0,un:!1,ai:!0,cdf:null,clen:null,np:null,ns:0,dtxp:"",dtxs:"",altered:1,uidt:"ID",uip:"",uicn:""},{column_name:"title",title:"Title",dt:"TEXT",dtx:"specificType",ct:null,nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,cdf:null,clen:null,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:"SingleLineText",uip:"",uicn:""},{column_name:"created_at",title:"CreatedAt",dt:"datetime",dtx:"specificType",ct:"datetime",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,clen:45,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:Ge.CreatedTime,uip:"",uicn:"",system:!0},{column_name:"updated_at",title:"UpdatedAt",dt:"datetime",dtx:"specificType",ct:"datetime",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,au:!0,clen:45,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:Ge.LastModifiedTime,uip:"",uicn:"",system:!0},{column_name:"created_by",title:"nc_created_by",dt:"varchar",dtx:"specificType",ct:"varchar(45)",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,clen:45,np:null,ns:null,dtxp:"45",dtxs:"",altered:1,uidt:Ge.CreatedBy,uip:"",uicn:"",system:!0},{column_name:"updated_by",title:"nc_updated_by",dt:"varchar",dtx:"specificType",ct:"varchar(45)",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,clen:45,np:null,ns:null,dtxp:"45",dtxs:"",altered:1,uidt:Ge.LastModifiedBy,uip:"",uicn:"",system:!0}]}static getNewColumn(e){return{column_name:"title"+e,dt:"TEXT",dtx:"specificType",ct:null,nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,cdf:null,clen:null,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:"SingleLineText",uip:"",uicn:""}}static getDefaultLengthForDatatype(e){switch(e){case"decimal":return 10;case"varchar":return 255;default:return""}}static getDefaultLengthIsDisabled(e){switch(e){case"nvarchar":case"numeric":case"decimal":case"varchar":return!1;default:return!0}}static getDefaultValueForDatatype(e){switch(e){case"bigint":case"binary":case"bit":case"char":case"date":case"datetime":case"datetime2":case"datetimeoffset":case"decimal":case"float":case"geography":case"geometry":case"heirarchyid":case"image":case"int":case"money":case"nchar":case"ntext":case"numeric":case"nvarchar":case"real":case"json":case"smalldatetime":case"smallint":case"smallmoney":case"sql_variant":case"sysname":case"text":case"time":case"timestamp":case"tinyint":case"uniqueidentifier":case"varbinary":case"xml":case"varchar":return"eg: ";default:return""}}static getDefaultScaleForDatatype(e){switch(e){case"decimal":case"numeric":return"2";default:return""}}static colPropAIDisabled(e,t){if("int4"===e.dt||"integer"===e.dt||"bigint"===e.dt||"smallint"===e.dt){for(let n=0;n<t.length;++n)if(t[n].cn!==e.cn&&t[n].ai)return!0;return!1}return!0}static colPropUNDisabled(e){return!0}static onCheckboxChangeAI(e){console.log(e),"int"!==e.dt&&"bigint"!==e.dt&&"smallint"!==e.dt&&"tinyint"!==e.dt||(e.altered=e.altered||2)}static showScale(e){return"decimal"===e.dt||"numeric"===e.dt}static removeUnsigned(e){for(let t=0;t<e.length;++t)1===e[t].altered&&"int"!==e[t].dt&&"bigint"!==e[t].dt&&"tinyint"!==e[t].dt&&"smallint"!==e[t].dt&&"mediumint"!==e[t].dt&&(e[t].un=!1,console.log(">> resetting unsigned value",e[t].cn)),console.log(e[t].cn)}static columnEditable(e){return"_evolutions"!==e.tn||"nc_evolutions"!==e.tn}static onCheckboxChangeAU(e){console.log(e),e.altered=e.altered||2,e.au&&(e.cdf="GETDATE()")}static colPropAuDisabled(e){if(1!==e.altered)return!0;switch(e.dt){case"date":case"datetime":case"datetime2":case"datetimeoffset":case"time":case"timestamp":return!1;default:return!0}}static getAbstractType(e){var t;switch(null===(t=e.dt)||void 0===t?void 0:t.toLowerCase()){case"bigint":case"smallint":case"bit":case"tinyint":case"int":return"integer";case"binary":case"char":case"geography":case"geometry":case"heirarchyid":case"image":case"money":case"nchar":case"nvarchar":case"smallmoney":case"sql_variant":case"sysname":case"uniqueidentifier":case"varbinary":case"xml":case"varchar":return"string";case"date":return"date";case"datetime":case"datetime2":case"smalldatetime":case"datetimeoffset":return"datetime";case"decimal":case"float":case"numeric":case"real":return"float";case"ntext":case"text":return"text";case"json":return"json";case"time":return"time";case"timestamp":return"timestamp"}return"string"}static getUIType(e){switch(this.getAbstractType(e)){case"integer":return"Number";case"boolean":return"Checkbox";case"float":return"Decimal";case"date":return"Date";case"datetime":return"CreatedTime";case"time":return"Time";case"year":return"Year";case"string":return"SingleLineText";case"text":case"json":return"LongText";case"blob":return"Attachment";case"enum":return"SingleSelect";case"set":return"MultiSelect"}}static getDataTypeForUiType(e,t){const n={};switch(e.uidt){case"ID":{const e="AI"===t,a="AG"===t;n.dt=a?"varchar":"int",n.pk=!0,n.un=e,n.ai=e,n.rqd=!0,n.meta=a?{ag:"nc"}:void 0}break;case"ForeignKey":case"Collaborator":case"GeoData":case"Formula":case"Rollup":case"Lookup":case"Barcode":case"Button":default:n.dt="varchar";break;case"SingleLineText":case"LongText":case"Attachment":case"MultiSelect":case"SingleSelect":n.dt="text";break;case"Checkbox":n.dt="tinyint",n.dtxp=1,n.cdf="0";break;case"Date":n.dt="date";break;case"Year":case"Number":case"Count":case"AutoNumber":n.dt="int";break;case"Time":n.dt="time";break;case"PhoneNumber":n.dt="varchar",n.validate={func:["isMobilePhone"],args:[""],msg:["Validation failed : isMobilePhone"]};break;case"Email":n.dt="varchar",n.validate={func:["isEmail"],args:[""],msg:["Validation failed : isEmail"]};break;case"URL":n.dt="text",n.validate={func:["isURL"],args:[""],msg:["Validation failed : isURL"]};break;case"Decimal":case"Duration":n.dt="decimal";break;case"Currency":n.dt="decimal",n.validate={func:["isCurrency"],args:[""],msg:["Validation failed : isCurrency"]};break;case"Percent":n.dt="double";break;case"Rating":n.dt="int",n.cdf="0";break;case"DateTime":n.dt="datetimeoffset";break;case"CreatedTime":case"LastModifiedTime":n.dt="datetime"}return n}static getDataTypeListForUiType(e,t){switch(e.uidt){case"ID":return"AG"===t?["char","ntext","text","varchar","nvarchar"]:"AI"===t?["int","bigint","bit","smallint","tinyint"]:x;case"ForeignKey":default:return x;case"SingleLineText":case"LongText":case"Attachment":case"Collaborator":case"GeoData":return["text","varchar","nvarchar","char","ntext"];case"JSON":case"MultiSelect":case"SingleSelect":return["text","ntext"];case"Checkbox":return["bigint","bit","int","tinyint"];case"Year":return["int"];case"Time":return["time"];case"PhoneNumber":case"Email":case"Rollup":case"Lookup":case"Barcode":return["varchar"];case"URL":return["text","varchar"];case"Number":case"Percent":case"Duration":case"Rating":return["int","bigint","bit","decimal","float","numeric","real","smallint","tinyint"];case"Decimal":return["decimal","float"];case"Currency":return["int","bigint","bit","decimal","float","numeric","real","smallint","tinyint","money"];case"Formula":case"Button":return["text","ntext","varchar","nvarchar"];case"Count":case"AutoNumber":return["int","bigint","smallint","tinyint"];case"Date":return["date"];case"DateTime":case"CreatedTime":case"LastModifiedTime":return["datetimeoffset","datetime2"];case"Geometry":return["geometry"]}}static getUnsupportedFnList(){return["XOR","REGEX_MATCH","REGEX_EXTRACT","REGEX_REPLACE","VALUE","COUNTA","COUNT","ROUNDDOWN","ROUNDUP","DATESTR"]}static getCurrentDateDefault(e){return null}static isEqual(e,t){if(e===t)return!0;const n=this.getAbstractType({dt:e}),a=this.getAbstractType({dt:t});return!(!n||n!==a||!["integer","float"].includes(n))}}class O{static getNewTableColumns(){return[{column_name:"id",title:"Id",dt:"integer",dtx:"integer",ct:"int(11)",nrqd:!1,rqd:!0,ck:!1,pk:!0,un:!1,ai:!1,cdf:null,clen:null,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:"ID",uip:"",uicn:""},{column_name:"title",title:"Title",dt:"TEXT",dtx:"specificType",ct:null,nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,cdf:null,clen:null,np:null,ns:null,dtxp:"45",dtxs:"",altered:1,uidt:"SingleLineText",uip:"",uicn:""}]}static getNewColumn(e){return{column_name:"title"+e,dt:"varchar",dtx:"specificType",ct:"varchar(45)",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,cdf:null,clen:45,np:null,ns:null,dtxp:"45",dtxs:"",altered:1,uidt:"SingleLineText",uip:"",uicn:""}}static getDefaultLengthForDatatype(e){return""}static getDefaultLengthIsDisabled(e){switch(e){case"integer":return!0;case"bfile":case"binary rowid":case"binary double":case"binary_float":case"blob":case"canoical":case"cfile":case"char":case"clob":case"content pointer":case"contigous array":case"date":case"decimal":case"double precision":case"float":case"interval day to second":case"interval year to month":case"lob pointer":case"long":case"long raw":case"named collection":case"named object":case"nchar":case"nclob":case"number":case"nvarchar2":case"octet":case"oid":case"pointer":case"raw":case"real":case"ref":case"ref cursor":case"rowid":case"signed binary integer":case"smallint":case"table":case"time":case"time with tz":case"timestamp":case"timestamp with local time zone":case"timestamp with local tz":case"timestamp with timezone":case"timestamp with tz":case"unsigned binary integer":case"urowid":case"varchar":case"varchar2":case"varray":case"varying array":return!1}}static getDefaultValueForDatatype(e){return""}static getDefaultScaleForDatatype(e){switch(e){case"integer":case"bfile":case"binary rowid":case"binary double":case"binary_float":case"blob":case"canoical":case"cfile":case"char":case"clob":case"content pointer":case"contigous array":case"date":case"decimal":case"double precision":case"float":case"interval day to second":case"interval year to month":case"lob pointer":case"long":case"long raw":case"named collection":case"named object":case"nchar":case"nclob":case"number":case"nvarchar2":case"octet":case"oid":case"pointer":case"raw":case"real":case"ref":case"ref cursor":case"rowid":case"signed binary integer":case"smallint":case"table":case"time":case"time with tz":case"timestamp":case"timestamp with local time zone":case"timestamp with local tz":case"timestamp with timezone":case"timestamp with tz":case"unsigned binary integer":case"urowid":case"varchar":case"varchar2":case"varray":case"varying array":return" "}}static colPropAIDisabled(e,t){if("int4"===e.dt||"integer"===e.dt||"bigint"===e.dt||"smallint"===e.dt){for(let n=0;n<t.length;++n)if(t[n].cn!==e.cn&&t[n].ai)return!0;return!1}return!0}static colPropUNDisabled(e){return!0}static onCheckboxChangeAI(e){console.log(e),"int"!==e.dt&&"bigint"!==e.dt&&"smallint"!==e.dt&&"tinyint"!==e.dt||(e.altered=e.altered||2)}static showScale(e){return!1}static removeUnsigned(e){for(let t=0;t<e.length;++t)1===e[t].altered&&"int"!==e[t].dt&&"bigint"!==e[t].dt&&"tinyint"!==e[t].dt&&"smallint"!==e[t].dt&&"mediumint"!==e[t].dt&&(e[t].un=!1,console.log(">> resetting unsigned value",e[t].cn)),console.log(e[t].cn)}static columnEditable(e){return"_evolutions"!==e.tn||"nc_evolutions"!==e.tn}static extractFunctionName(e){const t=e.match(/^\s*CREATE\s+(?:OR\s+REPLACE\s*)?\s*FUNCTION\s+(?:[\w\d_]+\.)?([\w_\d]+)/i);return t&&t[1]}static extractProcedureName(e){const t=e.match(/^\s*CREATE\s+(?:OR\s+REPLACE\s*)?\s*PROCEDURE\s+(?:[\w\d_]+\.)?([\w_\d]+)/i);return t&&t[1]}static splitQueries(e){return e.match(/\b("[^"]*;[^"]*"|'[^']*;[^']*'|[^;])*;/g)}static onCheckboxChangeAU(e){console.log(e),e.altered=e.altered||2}sanitiseQuery(e){let t=e.query.trim().split(";");if(t[0].startsWith("Select"))t=t[0]+` LIMIT 0,${e.limit?e.limit:100};`;else if(t[0].startsWith("select"))t=t[0]+` LIMIT 0,${e.limit?e.limit:100};`;else{if(!t[0].startsWith("SELECT"))return e.query;t=t[0]+` LIMIT 0,${e.limit?e.limit:100};`}return t}getColumnsFromJson(e,t){const n=[];try{if("object"==typeof e&&!Array.isArray(e)){const a=Object.keys(e);for(let r=0;r<a.length;++r)switch(typeof e[a[r]]){case"number":Number.isInteger(e[a[r]])?n.push({dp:null,tn:t,column_name:a[r],cno:a[r],dt:"int",np:10,ns:0,clen:null,cop:1,pk:!1,nrqd:!1,rqd:!1,un:!1,ct:"int(11) unsigned",ai:!1,unique:!1,cdf:null,cc:"",csn:null,dtx:"specificType",dtxp:"11",dtxs:0,altered:1}):n.push({dp:null,tn:t,column_name:a[r],cno:a[r],dt:"float",np:10,ns:2,clen:null,cop:1,pk:!1,nrqd:!1,rqd:!1,un:!1,ct:"int(11) unsigned",ai:!1,unique:!1,cdf:null,cc:"",csn:null,dtx:"specificType",dtxp:"11",dtxs:2,altered:1});break;case"string":e[a[r]].length<=255?n.push({dp:null,tn:t,column_name:a[r],cno:a[r],dt:"varchar",np:45,ns:0,clen:null,cop:1,pk:!1,nrqd:!1,rqd:!1,un:!1,ct:"int(11) unsigned",ai:!1,unique:!1,cdf:null,cc:"",csn:null,dtx:"specificType",dtxp:"45",dtxs:0,altered:1}):n.push({dp:null,tn:t,column_name:a[r],cno:a[r],dt:"text",np:null,ns:0,clen:null,cop:1,pk:!1,nrqd:!1,rqd:!1,un:!1,ct:"int(11) unsigned",ai:!1,unique:!1,cdf:null,cc:"",csn:null,dtx:"specificType",dtxp:null,dtxs:0,altered:1});break;case"boolean":n.push({dp:null,tn:t,column_name:a[r],cno:a[r],dt:"boolean",np:3,ns:0,clen:null,cop:1,pk:!1,nrqd:!1,rqd:!1,un:!1,ct:"int(11) unsigned",ai:!1,unique:!1,cdf:null,cc:"",csn:null,dtx:"specificType",dtxp:"1",dtxs:0,altered:1});break;case"object":n.push({dp:null,tn:t,column_name:a[r],cno:a[r],dt:"json",np:3,ns:0,clen:null,cop:1,pk:!1,nrqd:!1,rqd:!1,un:!1,ct:"int(11) unsigned",ai:!1,unique:!1,cdf:null,cc:"",csn:null,dtx:"specificType",dtxp:null,dtxs:0,altered:1})}}}catch(e){console.log("Error in getColumnsFromJson",e)}return n}static colPropAuDisabled(e){return!0}static getAbstractType(e){var t;switch(null===(t=e.dt)||void 0===t?void 0:t.toLowerCase()){case"integer":case"long":case"smallint":return"integer";case"bfile":case"binary rowid":case"binary double":case"binary_float":case"canoical":case"cfile":case"char":case"clob":case"content pointer":case"contigous array":case"interval day to second":case"interval year to month":case"lob pointer":case"long raw":case"named collection":case"named object":case"nchar":case"nclob":case"nvarchar2":case"octet":case"oid":case"pointer":case"raw":case"ref":case"ref cursor":case"rowid":case"signed binary integer":case"table":case"unsigned binary integer":case"urowid":case"varchar":case"varchar2":case"varray":case"varying array":return"string";case"blob":return"blob";case"date":return"date";case"decimal":case"double precision":case"float":case"real":case"number":return"float";case"time":case"time with tz":return"time";case"timestamp":case"timestamp with local time zone":case"timestamp with local tz":case"timestamp with timezone":case"timestamp with tz":return"datetime"}}static getUIType(e){switch(this.getAbstractType(e)){case"integer":return"Number";case"boolean":return"Checkbox";case"float":return"Decimal";case"date":return"Date";case"datetime":return"CreatedTime";case"time":return"Time";case"year":return"Year";case"string":return"SingleLineText";case"text":case"json":return"LongText";case"blob":return"Attachment";case"enum":return"SingleSelect";case"set":return"MultiSelect"}}static getDataTypeForUiType(e,t){const n={};switch(e.uidt){case"ID":{const e="AI"===t,a="AG"===t;n.dt=a?"varchar":"integer",n.pk=!0,n.un=e,n.ai=e,n.rqd=!0,n.meta=a?{ag:"nc"}:void 0}break;case"ForeignKey":case"GeoData":case"Collaborator":case"Date":case"Formula":case"Rollup":case"Lookup":case"Barcode":case"Button":default:n.dt="varchar";break;case"SingleLineText":case"LongText":case"Attachment":n.dt="clob";break;case"Checkbox":n.dt="tinyint",n.dtxp=1,n.cdf="0";break;case"MultiSelect":case"SingleSelect":n.dt="varchar2";break;case"Year":n.dt="year";break;case"Time":n.dt="time";break;case"PhoneNumber":n.dt="varchar",n.validate={func:["isMobilePhone"],args:[""],msg:["Validation failed : isMobilePhone"]};break;case"Email":n.dt="varchar",n.validate={func:["isEmail"],args:[""],msg:["Validation failed : isEmail"]};break;case"URL":n.dt="clob",n.validate={func:["isURL"],args:[""],msg:["Validation failed : isURL"]};break;case"Number":case"Duration":case"Count":case"AutoNumber":n.dt="integer";break;case"Decimal":n.dt="decimal";break;case"Currency":n.dt="decimal",n.validate={func:["isCurrency"],args:[""],msg:["Validation failed : isCurrency"]};break;case"Percent":n.dt="double";break;case"Rating":n.dt="integer",n.cdf="0";break;case"DateTime":case"CreatedTime":case"LastModifiedTime":n.dt="timestamp"}return n}static getUnsupportedFnList(){return["XOR","REGEX_MATCH","REGEX_EXTRACT","REGEX_REPLACE","VALUE","COUNTA","COUNT","ROUNDDOWN","ROUNDUP","DATESTR"]}static getCurrentDateDefault(e){return null}static isEqual(e,t){if(e===t)return!0;const n=this.getAbstractType({dt:e}),a=this.getAbstractType({dt:t});return!(!n||n!==a||!["integer","float"].includes(n))}}const $=["int","integer","tinyint","smallint","mediumint","bigint","int2","int8","character","blob sub_type text","blob","real","double","double precision","float","numeric","boolean","date","datetime","text","varchar","timestamp"];class A{static getNewTableColumns(){return[{column_name:"id",title:"Id",dt:"integer",dtx:"integer",ct:"int(11)",nrqd:!1,rqd:!0,ck:!1,pk:!0,un:!1,ai:!0,cdf:null,clen:null,np:null,ns:0,dtxp:"",dtxs:"",altered:1,uidt:"ID",uip:"",uicn:""},{column_name:"title",title:"Title",dt:"varchar",dtx:"specificType",ct:"varchar",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,cdf:null,clen:45,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:"SingleLineText",uip:"",uicn:""},{column_name:"created_at",title:"CreatedAt",dt:"datetime",dtx:"specificType",ct:"datetime",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,clen:45,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:Ge.CreatedTime,uip:"",uicn:"",system:!0},{column_name:"updated_at",title:"UpdatedAt",dt:"datetime",dtx:"specificType",ct:"datetime",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,clen:45,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:Ge.LastModifiedTime,uip:"",uicn:"",system:!0},{column_name:"created_by",title:"nc_created_by",dt:"varchar",dtx:"specificType",ct:"varchar",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,clen:45,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:Ge.CreatedBy,uip:"",uicn:"",system:!0},{column_name:"updated_by",title:"nc_updated_by",dt:"varchar",dtx:"specificType",ct:"varchar",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,clen:45,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:Ge.LastModifiedBy,uip:"",uicn:"",system:!0}]}static getNewColumn(e){return{column_name:"title"+e,dt:"varchar",dtx:"specificType",ct:"varchar",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,cdf:null,clen:45,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:"SingleLineText",uip:"",uicn:""}}static getDefaultLengthForDatatype(e){return""}static getDefaultLengthIsDisabled(e){switch(e){case"integer":case"blob":case"real":case"numeric":return!0;case"text":return!1}}static getDefaultValueForDatatype(e){switch(e){case"integer":case"numeric":case"real":return"eg : 10";case"text":return"eg : hey";case"blob":return"eg : 100"}}static getDefaultScaleForDatatype(e){switch(e){case"integer":case"text":case"numeric":case"real":case"blob":return" "}}static colPropAIDisabled(e,t){if("integer"===e.dt){for(let n=0;n<t.length;++n)if(t[n].cn!==e.cn&&t[n].ai)return!0;return!1}return!0}static colPropUNDisabled(e){return!0}static onCheckboxChangeAI(e){console.log(e),"int"!==e.dt&&"bigint"!==e.dt&&"smallint"!==e.dt&&"tinyint"!==e.dt||(e.altered=e.altered||2)}static showScale(e){return!1}static removeUnsigned(e){for(let t=0;t<e.length;++t)1===e[t].altered&&"int"!==e[t].dt&&"bigint"!==e[t].dt&&"tinyint"!==e[t].dt&&"smallint"!==e[t].dt&&"mediumint"!==e[t].dt&&(e[t].un=!1,console.log(">> resetting unsigned value",e[t].cn)),console.log(e[t].cn)}static columnEditable(e){return!0}static onCheckboxChangeAU(e){console.log(e),e.altered=e.altered||2}static colPropAuDisabled(e){if(1!==e.altered)return!0;switch(e.dt){case"date":case"datetime":case"timestamp":case"time":return!1;default:return!0}}static getAbstractType(e){var t;switch(null===(t=e.dt)||void 0===t?void 0:t.replace(/\(\d+\)$/).toLowerCase()){case"date":return"date";case"datetime":case"timestamp":return"datetime";case"integer":case"int":case"tinyint":case"smallint":case"mediumint":case"bigint":case"int2":case"int8":return"integer";case"text":return"text";case"boolean":return"boolean";case"real":case"double":case"double precision":case"float":case"decimal":case"numeric":return"float";case"blob sub_type text":case"blob":return"blob";case"character":case"varchar":return"string"}return"string"}static getUIType(e){switch(this.getAbstractType(e)){case"integer":return"Number";case"boolean":return"Checkbox";case"float":return"Decimal";case"date":return"Date";case"datetime":return"CreatedTime";case"time":return"Time";case"year":return"Year";case"string":return"SingleLineText";case"text":case"json":return"LongText";case"blob":return"Attachment";case"enum":return"SingleSelect";case"set":return"MultiSelect"}}static getDataTypeForUiType(e,t){const n={};switch(e.uidt){case"ID":{const e="AI"===t,a="AG"===t;n.dt=a?"varchar":"integer",n.pk=!0,n.un=e,n.ai=e,n.rqd=!0,n.meta=a?{ag:"nc"}:void 0}break;case"ForeignKey":case"SingleLineText":case"Collaborator":case"Formula":case"Rollup":case"Lookup":case"Barcode":case"Button":default:n.dt="varchar";break;case"LongText":case"Attachment":case"GeoData":case"MultiSelect":case"SingleSelect":case"JSON":n.dt="text";break;case"Checkbox":n.dt="boolean",n.cdf="0";break;case"Date":n.dt="date";break;case"Year":n.dt="year";break;case"Time":n.dt="time";break;case"PhoneNumber":n.dt="varchar",n.validate={func:["isMobilePhone"],args:[""],msg:["Validation failed : isMobilePhone"]};break;case"Email":n.dt="varchar",n.validate={func:["isEmail"],args:[""],msg:["Validation failed : isEmail"]};break;case"URL":n.dt="varchar",n.validate={func:["isURL"],args:[""],msg:["Validation failed : isURL"]};break;case"Number":case"Count":case"AutoNumber":n.dt="integer";break;case"Decimal":case"Duration":n.dt="decimal";break;case"Currency":n.dt="double precision",n.validate={func:["isCurrency"],args:[""],msg:["Validation failed : isCurrency"]};break;case"Percent":n.dt="double";break;case"Rating":n.dt="integer",n.cdf="0";break;case"DateTime":case"CreatedTime":case"LastModifiedTime":n.dt="datetime"}return n}static getDataTypeListForUiType(e,t){switch(e.uidt){case"ID":return"AG"===t?["character","text","varchar"]:"AI"===t?["int","integer","tinyint","smallint","mediumint","bigint","int2","int8"]:$;case"ForeignKey":case"Button":default:return $;case"SingleLineText":case"LongText":case"Attachment":case"Collaborator":case"GeoData":return["character","text","varchar"];case"Checkbox":return["int","integer","tinyint","smallint","mediumint","bigint","int2","int8","boolean"];case"MultiSelect":case"SingleSelect":case"Formula":case"Button":return["text","varchar"];case"Year":case"Time":case"Duration":case"Count":case"AutoNumber":return["int","integer","tinyint","smallint","mediumint","bigint","int2","int8"];case"PhoneNumber":case"Email":case"URL":return["varchar","text"];case"Number":case"Rating":return["int","integer","tinyint","smallint","mediumint","bigint","int2","int8","numeric","real","double","double precision","float"];case"Decimal":return["real","double","double precision","float","numeric"];case"Currency":case"Percent":return["real","double","double precision","float","int","integer","tinyint","smallint","mediumint","bigint","int2","int8","numeric"];case"Rollup":case"Lookup":case"Barcode":return["varchar"];case"Date":return["date","varchar"];case"DateTime":case"CreatedTime":case"LastModifiedTime":return["datetime","timestamp"];case"Geometry":case"JSON":return["text"]}}static getUnsupportedFnList(){return["XOR","REGEX_MATCH","REGEX_EXTRACT","REGEX_REPLACE","VALUE","COUNTA","COUNT","DATESTR","DAY","MONTH","HOUR"]}static getCurrentDateDefault(e){return null}static isEqual(e,t){if(e===t)return!0;const n=this.getAbstractType({dt:e}),a=this.getAbstractType({dt:t});return!(!n||n!==a||!["integer","float"].includes(n))}}const S=["NUMBER","DECIMAL","NUMERIC","INT","INTEGER","BIGINT","SMALLINT","TINYINT","BYTEINT","FLOAT","FLOAT4","FLOAT8","DOUBLE","DOUBLE PRECISION","REAL","VARCHAR","CHAR","CHARACTER","STRING","TEXT","BINARY","VARBINARY","BOOLEAN","DATE","DATETIME","TIME","TIMESTAMP","TIMESTAMP_LTZ","TIMESTAMP_NTZ","TIMESTAMP_TZ","VARIANT","OBJECT","ARRAY","GEOGRAPHY"];class D{static getNewTableColumns(){return[{column_name:"id",title:"Id",dt:"int",dtx:"integer",ct:"int(11)",nrqd:!1,rqd:!0,ck:!1,pk:!0,un:!1,ai:!0,cdf:null,clen:null,np:11,ns:0,dtxp:"11",dtxs:"",altered:1,uidt:"ID",uip:"",uicn:""},{column_name:"title",title:"Title",dt:"TEXT",dtx:"specificType",ct:null,nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,cdf:null,clen:null,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:"SingleLineText",uip:"",uicn:""},{column_name:"created_at",title:"CreatedAt",dt:"timestamp",dtx:"specificType",ct:"timestamp",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,clen:45,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:Ge.CreatedTime,uip:"",uicn:"",system:!0},{column_name:"updated_at",title:"UpdatedAt",dt:"timestamp",dtx:"specificType",ct:"timestamp",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,clen:45,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:Ge.LastModifiedTime,uip:"",uicn:"",system:!0},{column_name:"created_by",title:"nc_created_by",dt:"varchar",dtx:"specificType",ct:"varchar(45)",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,clen:45,np:null,ns:null,dtxp:"45",dtxs:"",altered:1,uidt:Ge.CreatedBy,uip:"",uicn:"",system:!0},{column_name:"updated_by",title:"nc_updated_by",dt:"varchar",dtx:"specificType",ct:"varchar(45)",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,clen:45,np:null,ns:null,dtxp:"45",dtxs:"",altered:1,uidt:Ge.LastModifiedBy,uip:"",uicn:"",system:!0}]}static getNewColumn(e){return{column_name:"title"+e,dt:"TEXT",dtx:"specificType",ct:null,nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,cdf:null,clen:null,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:"SingleLineText",uip:"",uicn:""}}static getDefaultLengthForDatatype(e){switch(e){case"VARCHAR":case"CHAR":case"CHARACTER":case"STRING":return 255;case"NUMBER":case"DECIMAL":case"NUMERIC":case"INT":case"INTEGER":case"BIGINT":case"SMALLINT":case"TINYINT":case"BYTEINT":case"FLOAT":case"FLOAT4":case"FLOAT8":case"DOUBLE":case"DOUBLE PRECISION":case"REAL":return 38}}static getDefaultLengthIsDisabled(e){switch(e){case"VARCHAR":case"CHAR":case"CHARACTER":case"STRING":case"NUMBER":case"DECIMAL":case"NUMERIC":case"INT":case"INTEGER":case"BIGINT":case"SMALLINT":case"TINYINT":case"BYTEINT":case"FLOAT":case"FLOAT4":case"FLOAT8":case"DOUBLE":case"DOUBLE PRECISION":case"REAL":return!1;case"TEXT":case"BINARY":case"VARBINARY":case"BOOLEAN":case"DATE":case"DATETIME":case"TIME":case"TIMESTAMP":case"TIMESTAMP_LTZ":case"TIMESTAMP_NTZ":case"TIMESTAMP_TZ":case"VARIANT":case"OBJECT":case"ARRAY":case"GEOGRAPHY":return!0}}static getDefaultValueForDatatype(e){return"eg: "}static getDefaultScaleForDatatype(e){switch(e){case"NUMBER":case"DECIMAL":case"NUMERIC":case"INT":case"INTEGER":case"BIGINT":case"SMALLINT":case"TINYINT":case"BYTEINT":case"FLOAT":case"FLOAT4":case"FLOAT8":case"DOUBLE":case"DOUBLE PRECISION":case"REAL":case"VARCHAR":case"CHAR":case"CHARACTER":case"STRING":case"TEXT":case"BINARY":case"VARBINARY":case"BOOLEAN":case"DATE":case"DATETIME":case"TIME":case"TIMESTAMP":case"TIMESTAMP_LTZ":case"TIMESTAMP_NTZ":case"TIMESTAMP_TZ":case"VARIANT":case"OBJECT":case"ARRAY":case"GEOGRAPHY":return" "}}static colPropAIDisabled(e,t){if("NUMBER"===e.dt||"DECIMAL"===e.dt||"NUMERIC"===e.dt||"INT"===e.dt||"INTEGER"===e.dt||"BIGINT"===e.dt||"SMALLINT"===e.dt){for(let n=0;n<t.length;++n)if(t[n].cn!==e.cn&&t[n].ai)return!0;return!1}return!0}static colPropUNDisabled(e){return!0}static onCheckboxChangeAI(e){console.log(e),"NUMBER"!==e.dt&&"DECIMAL"!==e.dt&&"NUMERIC"!==e.dt&&"INT"!==e.dt&&"INTEGER"!==e.dt&&"BIGINT"!==e.dt&&"SMALLINT"!==e.dt||(e.altered=e.altered||2)}static onCheckboxChangeAU(e){console.log(e),e.altered=e.altered||2,e.au&&(e.cdf="current_timestamp()")}static showScale(e){return!1}static removeUnsigned(e){for(let t=0;t<e.length;++t)1===e[t].altered&&"INT"!==e[t].dt&&"BIGINT"!==e[t].dt&&"SMALLINT"!==e[t].dt&&"TINYINT"!==e[t].dt&&(e[t].un=!1,console.log(">> resetting unsigned value",e[t].cn)),console.log(e[t].cn)}static columnEditable(e){return"_evolutions"!==e.tn||"nc_evolutions"!==e.tn}static colPropAuDisabled(e){if(1!==e.altered)return!0;switch(e.dt.toUpperCase()){case"DATE":case"DATETIME":case"TIME":case"TIMESTAMP":case"TIMESTAMP_LTZ":case"TIMESTAMP_NTZ":case"TIMESTAMP_TZ":return!1;default:return!0}}static getAbstractType(e){var t;switch(null===(t=e.dt)||void 0===t?void 0:t.toUpperCase()){case"NUMBER":case"DECIMAL":case"NUMERIC":case"INT":case"INTEGER":case"BIGINT":case"SMALLINT":case"TINYINT":case"BYTEINT":return"integer";case"FLOAT":case"FLOAT4":case"FLOAT8":case"DOUBLE":case"DOUBLE PRECISION":case"REAL":return"float";case"VARCHAR":case"CHAR":case"CHARACTER":case"STRING":case"BINARY":case"VARBINARY":case"DATETIME":case"TIME":case"TIMESTAMP":case"TIMESTAMP_LTZ":case"TIMESTAMP_NTZ":case"TIMESTAMP_TZ":case"VARIANT":case"GEOGRAPHY":default:return"string";case"TEXT":return e.dtxp<1024?"string":"text";case"BOOLEAN":return"boolean";case"DATE":return"date";case"OBJECT":return"json";case"ARRAY":return"enum"}}static getUIType(e){switch(this.getAbstractType(e)){case"NUMBER":case"DECIMAL":case"NUMERIC":case"INT":case"INTEGER":case"BIGINT":case"SMALLINT":case"TINYINT":case"BYTEINT":return"Number";case"FLOAT":case"FLOAT4":case"FLOAT8":case"DOUBLE":case"DOUBLE PRECISION":case"REAL":return"Decimal";case"VARCHAR":case"CHAR":case"CHARACTER":case"STRING":return"SingleLineText";case"TEXT":return"LongText";case"BOOLEAN":return"Checkbox";case"DATE":return"Date";case"DATETIME":return"DateTime"}}static getDataTypeForUiType(e,t){const n={};switch(e.uidt){case"ID":{const e="AI"===t,a="AG"===t;n.dt=a?"VARCHAR":"int4",n.pk=!0,n.un=e,n.ai=e,n.rqd=!0,n.meta=a?{ag:"nc"}:void 0}break;case"ForeignKey":case"Collaborator":case"Time":case"Formula":case"Rollup":case"Lookup":case"Barcode":case"Button":default:n.dt="VARCHAR";break;case"SingleLineText":case"LongText":case"Attachment":case"GeoData":case"MultiSelect":case"SingleSelect":case"JSON":n.dt="TEXT";break;case"Checkbox":n.dt="BOOLEAN",n.cdf="0";break;case"Date":n.dt="DATE";break;case"Year":case"Count":case"AutoNumber":n.dt="INT";break;case"PhoneNumber":n.dt="VARCHAR",n.validate={func:["isMobilePhone"],args:[""],msg:["Validation failed : isMobilePhone"]};break;case"Email":n.dt="VARCHAR",n.validate={func:["isEmail"],args:[""],msg:["Validation failed : isEmail"]};break;case"URL":n.dt="TEXT",n.validate={func:["isURL"],args:[""],msg:["Validation failed : isURL"]};break;case"Number":n.dt="BIGINT";break;case"Decimal":case"Duration":n.dt="DECIMAL";break;case"Currency":n.dt="DECIMAL",n.validate={func:["isCurrency"],args:[""],msg:["Validation failed : isCurrency"]};break;case"Percent":n.dt="DOUBLE PRECISION";break;case"Rating":n.dt="SMALLINT",n.cdf="0";break;case"DateTime":case"CreatedTime":case"LastModifiedTime":n.dt="TIMESTAMP"}return n}static getDataTypeListForUiType(e,t){switch(e.uidt){case"ID":return"AG"===t?["VARCHAR"]:"AI"===t?["NUMBER"]:S;case"ForeignKey":default:return S;case"SingleLineText":case"LongText":case"Collaborator":case"GeoData":return["TEXT","VARCHAR","CHARACTER","CHAR"];case"Attachment":return["TEXT","CHAR","CHARACTER","VARCHAR"];case"JSON":case"MultiSelect":case"SingleSelect":case"Geometry":return["TEXT"];case"Checkbox":return["BIT","BOOLEAN","TINYINT","INT","BIGINT"];case"Year":return["INT"];case"Time":return["TIMESTAMP","VARCHAR"];case"PhoneNumber":case"Email":case"Rollup":case"Lookup":case"User":case"CreatedBy":case"LastModifiedBy":case"Barcode":return["VARCHAR"];case"URL":case"Formula":case"Button":return["TEXT","VARCHAR"];case"Number":return["NUMBER","DECIMAL","NUMERIC","INT","INTEGER","BIGINT","SMALLINT","TINYINT","BYTEINT","FLOAT","FLOAT4","FLOAT8","DOUBLE","DOUBLE PRECISION","REAL"];case"Decimal":return["DOUBLE","DOUBLE PRECISION","FLOAT","FLOAT4","FLOAT8","NUMERIC"];case"Currency":case"Percent":case"Duration":case"Rating":return["NUMBER","DECIMAL","NUMERIC","INT","INTEGER","BIGINT","FLOAT","FLOAT4","FLOAT8","DOUBLE","DOUBLE PRECISION"];case"Count":case"AutoNumber":return["NUMBER","INT","INTEGER","BIGINT"];case"Date":return["DATE","TIMESTAMP"];case"DateTime":case"CreatedTime":case"LastModifiedTime":return["TIMESTAMP"]}}static getUnsupportedFnList(){return["XOR","REGEX_MATCH","REGEX_EXTRACT","REGEX_REPLACE","VALUE","COUNTA","COUNT","DATESTR"]}static getCurrentDateDefault(e){return null}static isEqual(e,t){if(e===t)return!0;const n=this.getAbstractType({dt:e}),a=this.getAbstractType({dt:t});return!(!n||n!==a||!["integer","float"].includes(n))}}const w=["BIGINT","BINARY","BOOLEAN","DATE","DECIMAL","DOUBLE","FLOAT","INT","INTERVAL","VOID","SMALLINT","STRING","TIMESTAMP","TIMESTAMP_NTZ","TINYINT"];class C{static getNewTableColumns(){return[{column_name:"id",title:"Id",dt:"int",dtx:"int",ct:"int",nrqd:!1,rqd:!0,ck:!1,pk:!0,un:!1,ai:!0,cdf:null,clen:null,np:null,ns:0,dtxp:"",dtxs:"",altered:1,uidt:"ID",uip:"",uicn:""},{column_name:"title",title:"Title",dt:"string",dtx:"specificType",ct:"string",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,cdf:null,clen:null,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:"SingleLineText",uip:"",uicn:""},{column_name:"created_at",title:"CreatedAt",dt:"TIMESTAMP",dtx:"specificType",ct:"TIMESTAMP",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,clen:45,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:Ge.CreatedTime,uip:"",uicn:"",system:!0},{column_name:"updated_at",title:"UpdatedAt",dt:"TIMESTAMP",dtx:"specificType",ct:"TIMESTAMP",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,clen:45,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:Ge.LastModifiedTime,uip:"",uicn:"",system:!0},{column_name:"created_by",title:"nc_created_by",dt:"string",dtx:"specificType",ct:"string",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,clen:45,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:Ge.CreatedBy,uip:"",uicn:"",system:!0},{column_name:"updated_by",title:"nc_updated_by",dt:"string",dtx:"specificType",ct:"string",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,clen:45,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:Ge.LastModifiedBy,uip:"",uicn:"",system:!0}]}static getNewColumn(e){return{column_name:"title"+e,dt:"string",dtx:"specificType",ct:"string",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,cdf:null,clen:null,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:"SingleLineText",uip:"",uicn:""}}static getDefaultLengthForDatatype(e){return""}static getDefaultLengthIsDisabled(e){switch(e){case"decimal":return!0;case"text":return!1}}static getDefaultValueForDatatype(e){switch(e){case"integer":case"numeric":case"real":return"eg : 10";case"text":return"eg : hey";case"blob":return"eg : 100"}}static getDefaultScaleForDatatype(e){switch(e){case"integer":case"text":case"numeric":case"real":case"blob":return" "}}static colPropAIDisabled(e,t){if("integer"===e.dt){for(let n=0;n<t.length;++n)if(t[n].cn!==e.cn&&t[n].ai)return!0;return!1}return!0}static colPropUNDisabled(e){return!0}static onCheckboxChangeAI(e){console.log(e),"int"!==e.dt&&"bigint"!==e.dt&&"smallint"!==e.dt&&"tinyint"!==e.dt||(e.altered=e.altered||2)}static showScale(e){return!1}static removeUnsigned(e){for(let t=0;t<e.length;++t)1===e[t].altered&&"int"!==e[t].dt&&"bigint"!==e[t].dt&&"tinyint"!==e[t].dt&&"smallint"!==e[t].dt&&"mediumint"!==e[t].dt&&(e[t].un=!1,console.log(">> resetting unsigned value",e[t].cn)),console.log(e[t].cn)}static columnEditable(e){return!0}static onCheckboxChangeAU(e){console.log(e),e.altered=e.altered||2}static colPropAuDisabled(e){if(1!==e.altered)return!0;switch(e.dt){case"date":case"datetime":case"timestamp":case"time":return!1;default:return!0}}static getAbstractType(e){var t;switch(null===(t=e.dt)||void 0===t?void 0:t.replace(/\(\d+\)$/).toLowerCase()){case"bigint":case"tinyint":case"int":case"smallint":return"integer";case"decimal":case"double":case"float":return"float";case"boolean":return"boolean";case"timestamp":case"timestamp_ntz":return"datetime";case"date":return"date";case"string":return"string"}return"string"}static getUIType(e){switch(this.getAbstractType(e)){case"integer":return"Number";case"boolean":return"Checkbox";case"float":return"Decimal";case"date":return"Date";case"datetime":return"CreatedTime";case"time":return"Time";case"year":return"Year";case"string":return"SingleLineText";case"text":case"json":return"LongText";case"blob":return"Attachment";case"enum":return"SingleSelect";case"set":return"MultiSelect"}}static getDataTypeForUiType(e){const t={};switch(e.uidt){case"ID":t.dt="string",t.pk=!0,t.rqd=!0,t.meta={ag:"nc"};break;case"ForeignKey":case"SingleLineText":case"LongText":case"Attachment":case"GeoData":case"MultiSelect":case"SingleSelect":case"Collaborator":case"Time":case"Formula":case"Rollup":case"Lookup":case"Barcode":case"Button":case"JSON":default:t.dt="string";break;case"Checkbox":t.dt="boolean";break;case"Date":t.dt="date";break;case"Year":t.dt="number";break;case"PhoneNumber":t.dt="string",t.validate={func:["isMobilePhone"],args:[""],msg:["Validation failed : isMobilePhone"]};break;case"Email":t.dt="string",t.validate={func:["isEmail"],args:[""],msg:["Validation failed : isEmail"]};break;case"URL":t.dt="string",t.validate={func:["isURL"],args:[""],msg:["Validation failed : isURL"]};break;case"Number":case"Count":case"AutoNumber":t.dt="int";break;case"Decimal":case"Duration":t.dt="decimal";break;case"Currency":t.dt="double",t.validate={func:["isCurrency"],args:[""],msg:["Validation failed : isCurrency"]};break;case"Percent":t.dt="double";break;case"Rating":t.dt="int",t.cdf="0";break;case"DateTime":case"CreatedTime":case"LastModifiedTime":t.dt="datetime"}return t}static getDataTypeListForUiType(e,t){switch(e.uidt){case"ID":return"AG"===t?["character","text","varchar"]:"AI"===t?["int","integer","tinyint","smallint","mediumint","bigint","int2","int8"]:w;case"ForeignKey":default:return w;case"SingleLineText":case"LongText":case"Attachment":case"Collaborator":case"GeoData":case"MultiSelect":case"SingleSelect":case"Time":case"PhoneNumber":case"Email":case"URL":case"Formula":case"Button":case"Rollup":case"Lookup":case"Barcode":case"Geometry":case"JSON":return["string"];case"Checkbox":return["boolean"];case"Year":case"Number":case"Rating":case"Count":case"AutoNumber":return["int"];case"Decimal":return["decimal","float","double"];case"Currency":case"Percent":case"Duration":return["decimal"];case"Date":return["date"];case"DateTime":case"CreatedTime":case"LastModifiedTime":return["datetime"]}}static getUnsupportedFnList(){return["LOG","EXP","POWER","SQRT","XOR","REGEX_MATCH","REGEX_EXTRACT","REGEX_REPLACE","VALUE","COUNTA","COUNT","ROUNDDOWN","ROUNDUP","DATESTR","DAY","MONTH","HOUR"]}static getCurrentDateDefault(e){return null}static isEqual(e,t){if(e===t)return!0;const n=this.getAbstractType({dt:e}),a=this.getAbstractType({dt:t});return!(!n||n!==a||!["integer","float"].includes(n))}}class R{static create(e){if("mysql"===e.client||"mysql2"===e.client)return y;if("sqlite3"===e.client)return A;if("mssql"===e.client)return T;if("oracledb"===e.client)return O;if("pg"===e.client)return E;if("snowflake"===e.client)return D;if("databricks"===e.client)return C;throw new Error("Database not supported")}}const N=__webpack_require__(79791);var I=n.n(N);const M=__webpack_require__(17829);var P=n.n(M);const L=__webpack_require__(35642);var j=n.n(L);const k=__webpack_require__(97642);var F=n.n(k);const U=__webpack_require__(83970);var q=n.n(U);const B=__webpack_require__(9841);var H=n.n(B);g().extend(F()),g().extend(I()),g().extend(P()),g().extend(j()),g().extend(q()),g().extend(H());const G=["YYYY-MM","YYYY MM"],W=["HH:mm","HH:mm:ss","HH:mm:ss.SSS"],V=["YYYY-MM-DD","YYYY/MM/DD","DD-MM-YYYY","MM-DD-YYYY","DD/MM/YYYY","MM/DD/YYYY","DD MM YYYY","MM DD YYYY","YYYY MM DD"],Y=e=>G.includes(e);function z(e){for(const t of V){if(g()(e,t,!0).isValid())return!0;for(const n of W)if(g()(e,`${t} ${n}`,!0).isValid())return!0}return!1}function K(e){for(const t of V)if(g()(e,t,!0).isValid())return t;return"YYYY/MM/DD"}function Z(e){for(const t of V)for(const n of W){const a=`${t} ${n}`;if(g()(e,a,!0).isValid())return a}return"YYYY/MM/DD HH:mm"}function J(e,t){const n=g()(e);return n.isValid()?n.format("YYYY-MM-DD"):g()(e,t).format("YYYY-MM-DD")}function Q(e,t=`${V[0]} ${W[0]}`,n=!0){const a=n?g()(e).local():g()(e);return a.isValid()?a.format(t):n?g()(e,t).local().format(t):g()(e,t).format(t)}function X(e,t,n){return V.includes(t)&&V.includes(n)?g()(e,t).format(n):e}const ee=e=>{if(null!=e)return"string"!=typeof e?e:e.replace(/((?:-?(?:[1-9][0-9]*)?[0-9]{4})-(?:1[0-2]|0[1-9])-(?:3[01]|0[1-9]|[12][0-9])T(?:2[0-3]|[01][0-9]):(?:[0-5][0-9]):(?:[0-5][0-9])(?:\.[0-9]+)?(?:Z|[+-](?:2[0-3]|[01][0-9]):[0-5][0-9]))/g,((e,t)=>g()(t).format("YYYY-MM-DD HH:mm")))};function te(e){return V.includes(e)}const ne=e=>(/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/.test(e)&&(e+="+00:00"),g()(e).fromNow()),ae=(e,t)=>{const n={[W[0]]:/^([01]\d|2[0-3]):[0-5]\d$/,[W[1]]:/^([01]\d|2[0-3]):[0-5]\d:[0-5]\d$/,[W[2]]:/^([01]\d|2[0-3]):[0-5]\d:[0-5]\d\.\d{3}$/};return!!n[t]&&n[t].test(e)};var re=function(e,t,n,a){return new(n||(n=Promise))((function(r,i){function s(e){try{c(a.next(e))}catch(e){i(e)}}function o(e){try{c(a.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}c((a=a.apply(e,t||[])).next())}))};const ie={name:"curly",init(e){e.hooks.add("gobble-token",(function(t){if(123===this.code){const n=this.index;for(;this.index<this.expr.length;)if(++this.index,125===this.code){let a=this.expr.slice(n,++this.index);return a.startsWith("{{")&&this.expr.slice(n,this.index+1).endsWith("}")&&(a=this.expr.slice(n,++this.index)),t.node={type:e.IDENTIFIER,name:/^{{.*}}$/.test(a)?a.slice(2,-2):a.slice(1,-1),raw:a},t.node}this.throwError("Unclosed }")}}))}};function se(e){for(const t of V){if(g()(e,t,!0).isValid())return!0;for(const n of["HH:mm","HH:mm:ss","HH:mm:ss.SSS"])if(g()(e,`${t} ${n}`,!0).isValid())return!0}return!1}function oe(e,t){return re(this,void 0,void 0,(function*(){const n=e=>re(this,void 0,void 0,(function*(){if("CallExpression"===e.type)for(const t of e.arguments||[])yield n(t);else{if("Literal"===e.type)return;if("Identifier"===e.type){const n=e.name,a=t.find((e=>e.id===n||e.column_name===n||e.title===n));e.name="{"+a.id+"}"}else"BinaryExpression"===e.type&&(yield n(e.left),yield n(e.right))}}));h().plugins.register(ie);const a=h()(e);return yield n(a),pe(a)}))}var ce,ue,le;function de(e,t,n){const a=(e,n)=>{var r;if("CallExpression"===e.type){let t=0;for(const i of e.arguments||[])a(i,null===(r=null==n?void 0:n.arguments)||void 0===r?void 0:r[t++])}else{if("Literal"===e.type)return;if("Identifier"===e.type){const a=null==e?void 0:e.name,r=t.find((e=>e.id===a||e.column_name===a||e.title===a));e.name=(null==r?void 0:r.title)||(null==n?void 0:n.name)||(null==e?void 0:e.name)}else"BinaryExpression"===e.type&&(a(e.left,null==n?void 0:n.left),a(e.right,null==n?void 0:n.right))}};h().plugins.register(ie);const r=h()(e),i=n&&h()(n);return a(r,i),pe(r)}function pe(e,t=!1){return"BinaryExpression"===e.type||"LogicalExpression"===e.type?"("+pe(e.left)+" "+e.operator+" "+pe(e.right)+")":"UnaryExpression"===e.type?e.operator+pe(e.argument):"MemberExpression"===e.type?pe(e.object)+"["+pe(e.property)+"]":"Identifier"===e.type?t?e.name:"{"+e.name+"}":"Literal"===e.type?"string"==typeof e.value?String.raw`"${n=e.raw.slice(1,-1),n.replace(/([^\\]|^)\\(?!\\)/g,"$1\\\\").replace(/([^\\]|^)"/g,'$1\\"').replace(/([^\\]|^)'/g,"$1\\'")}"`:""+e.value:"CallExpression"===e.type?pe(e.callee,!0)+"("+e.arguments.map((e=>pe(e))).join(", ")+")":"ArrayExpression"===e.type?"["+e.elements.map((e=>pe(e))).join(", ")+"]":"Compound"===e.type?e.body.map((e=>pe(e))).join(" "):"ConditionalExpression"===e.type?pe(e.test)+" ? "+pe(e.consequent)+" : "+pe(e.alternate):"";var n}!function(e){e.NOT_AVAILABLE="NOT_AVAILABLE",e.NOT_SUPPORTED="NOT_SUPPORTED",e.MIN_ARG="MIN_ARG",e.MAX_ARG="MAX_ARG",e.TYPE_MISMATCH="TYPE_MISMATCH",e.INVALID_ARG="INVALID_ARG",e.INVALID_ARG_TYPE="INVALID_ARG_TYPE",e.INVALID_ARG_VALUE="INVALID_ARG_VALUE",e.INVALID_ARG_COUNT="INVALID_ARG_COUNT",e.CIRCULAR_REFERENCE="CIRCULAR_REFERENCE",e.INVALID_FUNCTION_NAME="INVALID_FUNCTION_NAME",e.INVALID_COLUMN="INVALID_COLUMN"}(ce||(ce={})),function(e){e.NUMERIC="numeric",e.STRING="string",e.DATE="date",e.LOGICAL="logical",e.COND_EXP="conditional_expression",e.NULL="null",e.BOOLEAN="boolean",e.UNKNOWN="unknown"}(ue||(ue={})),function(e){e.COMPOUND="Compound",e.IDENTIFIER="Identifier",e.MEMBER_EXP="MemberExpression",e.LITERAL="Literal",e.THIS_EXP="ThisExpression",e.CALL_EXP="CallExpression",e.UNARY_EXP="UnaryExpression",e.BINARY_EXP="BinaryExpression",e.ARRAY_EXP="ArrayExpression"}(le||(le={}));const fe={AVG:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/numeric-functions#avg",validation:{args:{min:1,type:ue.NUMERIC}},description:"Average of input parameters",syntax:"AVG(value1, [value2, ...])",examples:["AVG(10, 5) => 7.5","AVG({column1}, {column2})","AVG({column1}, {column2}, {column3})"],returnType:ue.NUMERIC},ADD:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/numeric-functions#add",validation:{args:{min:1,type:ue.NUMERIC}},description:"Sum of input parameters",syntax:"ADD(value1, [value2, ...])",examples:["ADD(5, 5) => 10","ADD({column1}, {column2})","ADD({column1}, {column2}, {column3})"],returnType:ue.NUMERIC},DATEADD:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/date-functions#dateadd",validation:{args:{rqd:3,type:ue.DATE},custom:(e,t)=>{if(t.arguments[0].type===le.LITERAL&&!se(t.arguments[0].value))throw new me(ce.TYPE_MISMATCH,{key:"msg.formula.firstParamDateAddHaveDate"},"First parameter of DATEADD should be a date");if(t.arguments[1].type===le.LITERAL&&"number"!=typeof t.arguments[1].value)throw new me(ce.TYPE_MISMATCH,{key:"msg.formula.secondParamDateAddHaveNumber"},"Second parameter of DATEADD should be a number");if(t.arguments[2].type===le.LITERAL&&!["day","week","month","year"].includes(t.arguments[2].value))throw new me(ce.TYPE_MISMATCH,{key:"msg.formula.thirdParamDateAddHaveDate"},"Third parameter of DATEADD should be one of 'day', 'week', 'month', 'year'")}},description:'Adds "count" units to Datetime.',syntax:'DATEADD(date | datetime, count, ["day" | "week" | "month" | "year"])',examples:['DATEADD({column1}, 2, "day")','DATEADD({column1}, -2, "day")','DATEADD({column1}, 2, "week")','DATEADD({column1}, -2, "week")','DATEADD({column1}, 2, "month")','DATEADD({column1}, -2, "month")','DATEADD({column1}, 2, "year")','DATEADD({column1}, -2, "year")'],returnType:ue.DATE},DATESTR:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/date-functions#datestr",validation:{args:{rqd:1}},syntax:"DATESTR(date | datetime)",description:'Formats input field into a string in "YYYY-MM-DD" format',examples:["DATESTR({column1})"],returnType:ue.STRING},DAY:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/date-functions#day",validation:{args:{rqd:1}},syntax:"DAY(date | datetime)",description:"Extract day from a date field (1-31)",examples:["DAY({column1})"],returnType:ue.STRING},MONTH:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/date-functions#month",validation:{args:{rqd:1}},syntax:"MONTH(date | datetime)",description:"Extract month from a date field (1-12)",examples:["MONTH({column1})"],returnType:ue.STRING},HOUR:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/date-functions#hour",validation:{args:{rqd:1}},syntax:"DAY(time | datetime)",description:"Extract hour from a time field (0-23)",examples:["HOUR({column1})"],returnType:ue.STRING},DATETIME_DIFF:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/date-functions#datetime_diff",validation:{args:{min:2,max:3,type:ue.DATE},custom:(e,t)=>{if(t.arguments[0].type===le.LITERAL&&!se(t.arguments[0].value))throw new me(ce.TYPE_MISMATCH,{key:"msg.formula.firstParamDateDiffHaveDate"},"First parameter of DATETIME_DIFF should be a date");if(t.arguments[1].type===le.LITERAL&&!se(t.arguments[1].value))throw new me(ce.TYPE_MISMATCH,{key:"msg.formula.secondParamDateDiffHaveDate"},"Second parameter of DATETIME_DIFF should be a date");if(t.arguments[2]&&t.arguments[2].type===le.LITERAL&&!["milliseconds","ms","seconds","s","minutes","m","hours","h","days","d","weeks","w","months","M","quarters","Q","years","y"].includes(t.arguments[2].value))throw new me(ce.TYPE_MISMATCH,{key:"msg.formula.thirdParamDateDiffHaveDate"},"Third parameter of DATETIME_DIFF should be one of 'milliseconds', 'ms', 'seconds', 's', 'minutes', 'm', 'hours', 'h', 'days', 'd', 'weeks', 'w', 'months', 'M', 'quarters', 'Q', 'years', 'y'")}},description:"Calculate the difference of two given date / datetime fields in specified units.",syntax:'DATETIME_DIFF(date | datetime, date | datetime, ["milliseconds" | "ms" | "seconds" | "s" | "minutes" | "m" | "hours" | "h" | "days" | "d" | "weeks" | "w" | "months" | "M" | "quarters" | "Q" | "years" | "y"])',examples:["DATEDIFF({column1}, {column2})",'DATEDIFF({column1}, {column2}, "seconds")','DATEDIFF({column1}, {column2}, "s")','DATEDIFF({column1}, {column2}, "years")','DATEDIFF({column1}, {column2}, "y")','DATEDIFF({column1}, {column2}, "minutes")','DATEDIFF({column1}, {column2}, "m")','DATEDIFF({column1}, {column2}, "days")','DATEDIFF({column1}, {column2}, "d")'],returnType:ue.NUMERIC},AND:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/conditional-expressions#and",validation:{args:{min:1}},description:"Result is TRUE if all conditions are met",syntax:"AND(expr1, [expr2, ...])",examples:["AND(5 > 2, 5 < 10) => 1","AND({column1} > 2, {column2} < 10)"],returnType:ue.COND_EXP},OR:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/conditional-expressions#or",validation:{args:{min:1}},description:"Result is TRUE if at least one condition is met",syntax:"OR(expr1, [expr2, ...])",examples:["OR(5 > 2, 5 < 10) => 1","OR({column1} > 2, {column2} < 10)"],returnType:ue.COND_EXP},CONCAT:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/string-functions#concat",validation:{args:{min:1}},description:"Concatenate input parameters into a single string",syntax:"CONCAT(str1, [str2, ...])",examples:['CONCAT("AA", "BB", "CC") => "AABBCC"',"CONCAT({column1}, {column2}, {column3})"],returnType:ue.STRING},TRIM:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/string-functions#trim",validation:{args:{rqd:1,type:ue.STRING}},description:"Remove trailing and leading whitespaces from input parameter",syntax:"TRIM(str)",examples:['TRIM(" HELLO WORLD ") => "HELLO WORLD"',"TRIM({column1})"],returnType:ue.STRING},UPPER:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/string-functions#upper",validation:{args:{rqd:1,type:ue.STRING}},description:"Converts the input parameter to an upper-case string.",syntax:"UPPER(str)",examples:['UPPER("nocodb") => "NOCODB"',"UPPER({column1})"],returnType:ue.STRING},LOWER:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/string-functions#lower",validation:{args:{rqd:1,type:ue.STRING}},description:"Converts the input parameter to an lower-case string.",syntax:"LOWER(str)",examples:['LOWER("NOCODB") => "nocodb"',"LOWER({column1})"],returnType:ue.STRING},LEN:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/string-functions#len",validation:{args:{rqd:1,type:ue.STRING}},description:"Calculate the character length of the input parameter.",syntax:"LEN(value)",examples:['LEN("NocoDB") => 6',"LEN({column1})"],returnType:ue.NUMERIC},MIN:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/numeric-functions#min",validation:{args:{min:1,type:ue.NUMERIC}},description:"Find the minimum value among the input parameters.",syntax:"MIN(value1, [value2, ...])",examples:["MIN(1000, 2000) => 1000","MIN({column1}, {column2})"],returnType:ue.NUMERIC},MAX:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/numeric-functions#max",validation:{args:{min:1,type:ue.NUMERIC}},description:"Find the maximum value among the input parameters.",syntax:"MAX(value1, [value2, ...])",examples:["MAX(1000, 2000) => 2000","MAX({column1}, {column2})"],returnType:ue.NUMERIC},CEILING:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/numeric-functions#ceiling",validation:{args:{rqd:1,type:ue.NUMERIC}},description:"Rounds the input parameter to the next largest integer value.",syntax:"CEILING(value)",examples:["CEILING(1.01) => 2","CEILING({column1})"],returnType:ue.NUMERIC},FLOOR:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/numeric-functions#floor",validation:{args:{rqd:1,type:ue.NUMERIC}},description:"Round down the input parameter to the nearest integer.",syntax:"FLOOR(value)",examples:["FLOOR(3.1415) => 3","FLOOR({column1})"],returnType:ue.NUMERIC},ROUND:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/numeric-functions#round",validation:{args:{min:1,max:2,type:ue.NUMERIC}},description:"Rounds the number to a specified decimal places or the nearest integer if precision is not specified",syntax:"ROUND(value, precision), ROUND(value)",examples:["ROUND(3.1415) => 3","ROUND(3.1415, 2) => 3.14","ROUND({column1}, 3)"],returnType:ue.NUMERIC},MOD:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/numeric-functions#mod",validation:{args:{rqd:2,type:ue.NUMERIC}},description:"Calculate the remainder resulting from integer division of input parameters.",syntax:"MOD(value1, value2)",examples:["MOD(1024, 1000) => 24","MOD({column}, 2)"],returnType:ue.NUMERIC},REPEAT:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/string-functions#repeat",validation:{args:{rqd:2},custom(e,t){var n,a;if(e[1]!==ue.NUMERIC)throw new me(ce.INVALID_ARG,{key:"msg.formula.typeIsExpected",type:"Numeric",calleeName:null===(a=null===(n=t.callee)||void 0===n?void 0:n.name)||void 0===a?void 0:a.toUpperCase(),position:2},"The REPEAT function requires a numeric as the parameter at position 2")}},description:"Concatenate the specified number of copies of the input parameter string.",syntax:"REPEAT(str, count)",examples:['REPEAT("A", 5) => "AAAAA"',"REPEAT({column}, 5)"],returnType:ue.STRING},LOG:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/numeric-functions#log",validation:{args:{type:ue.NUMERIC}},description:"Compute the logarithm of the input parameter to the specified base (default = e).",syntax:"LOG([base], value)",examples:["LOG(2, 1024) => 10","LOG(2, {column1})"],returnType:ue.NUMERIC},EXP:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/numeric-functions#exp",validation:{args:{type:ue.NUMERIC}},description:"Compute the exponential value of the input parameter (e raised to the power specified)",syntax:"EXP(power)",examples:["EXP(1) => 2.718281828459045","EXP({column1})"],returnType:ue.NUMERIC},POWER:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/numeric-functions#power",validation:{args:{rqd:2,type:ue.NUMERIC}},description:"Compute base raised to the exponent power.",syntax:"POWER(base, exponent)",examples:["POWER(2, 10) => 1024","POWER({column1}, 10)"],returnType:ue.NUMERIC},SQRT:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/numeric-functions#sqrt",validation:{args:{rqd:1,type:ue.NUMERIC}},description:"Calculate the square root of the input parameter.",syntax:"SQRT(value)",examples:["SQRT(100) => 10","SQRT({column1})"],returnType:ue.NUMERIC},ABS:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/numeric-functions#abs",validation:{args:{rqd:1,type:ue.NUMERIC}},description:"Obtain the absolute value of the input parameter.",syntax:"ABS(value)",examples:["ABS({column1})"],returnType:ue.NUMERIC},NOW:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/date-functions#now",validation:{args:{rqd:0,type:ue.DATE}},description:"Retrieve the current time and day.",syntax:"NOW()",examples:["NOW() => 2022-05-19 17:20:43"],returnType:ue.DATE},REPLACE:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/string-functions#replace",validation:{args:{rqd:3,type:ue.STRING}},description:'Replace all occurrences of "searchStr" with "replaceStr" in the given string.',syntax:"REPLACE(str, searchStr, replaceStr)",examples:['REPLACE("AABBCC", "AA", "BB") => "BBBBCC"',"REPLACE({column1}, {column2}, {column3})"],returnType:ue.STRING},SEARCH:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/string-functions#search",validation:{args:{rqd:2,type:ue.STRING}},description:'Retrieve the index of the specified "searchStr" if found; otherwise, returns 0.',syntax:"SEARCH(str, searchStr)",examples:['SEARCH("HELLO WORLD", "WORLD") => 7','SEARCH({column1}, "abc")'],returnType:ue.NUMERIC},INT:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/numeric-functions#int",validation:{args:{rqd:1,type:ue.NUMERIC}},description:"Obtain the integer value of the input parameter",syntax:"INT(value)",examples:["INT(3.1415) => 3","INT({column1})"],returnType:ue.NUMERIC},RIGHT:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/string-functions#right",validation:{args:{rqd:2,type:[ue.STRING,ue.NUMERIC]}},description:"Retrieve the last n characters from the input string.",syntax:"RIGHT(str, n)",examples:['RIGHT("HELLO WORLD", 5) => WORLD',"RIGHT({column1}, 3)"],returnType:ue.STRING},LEFT:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/string-functions#left",validation:{args:{rqd:2,type:[ue.STRING,ue.NUMERIC]}},description:"Retrieve the first n characters from the input string.",syntax:"LEFT(str, n)",examples:["LEFT({column1}, 2)",'LEFT("ABCD", 2) => "AB"'],returnType:ue.STRING},SUBSTR:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/string-functions#substr",validation:{args:{min:2,max:3,type:[ue.STRING,ue.NUMERIC,ue.NUMERIC]}},description:'Extracts a substring of length "n" from the input string, starting from the specified position.',syntax:"\tSUBTR(str, position, [n])",examples:['SUBSTR("HELLO WORLD", 7) => WORLD','SUBSTR("HELLO WORLD", 7, 3) => WOR',"SUBSTR({column1}, 7, 5)"],returnType:ue.STRING},MID:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/string-functions#mid",validation:{args:{rqd:3,type:[ue.STRING,ue.NUMERIC,ue.NUMERIC]}},description:"Extracts a substring; an alias for SUBSTR.",syntax:"MID(str, position, [count])",examples:['MID("NocoDB", 3, 2) => "co"',"MID({column1}, 3, 2)"],returnType:ue.STRING},IF:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/conditional-expressions#if",validation:{args:{min:2,max:3}},description:"Evaluate successCase if the expression is TRUE, else the failureCase.",syntax:"IF(expr, successCase, failureCase)",examples:['IF(5 > 1, "YES", "NO") => "YES"','IF({column} > 1, "YES", "NO")'],returnType:e=>{const t=new Set(e.slice(1).filter((e=>e!==ue.NULL)));return t.size>1||t.has(ue.STRING)?ue.STRING:t.has(ue.NUMERIC)?ue.NUMERIC:t.has(ue.BOOLEAN)?ue.BOOLEAN:t.has(ue.DATE)?ue.DATE:e[1]}},SWITCH:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/conditional-expressions#switch",validation:{args:{min:3},custom:(e,t)=>{}},description:"Evaluate case value based on expression output; if no match is found, evaluate default case.",syntax:"SWITCH(expr, [pattern, value, ..., default])",examples:['SWITCH(1, 1, "One", 2, "Two", "N/A") => "One""','SWITCH(2, 1, "One", 2, "Two", "N/A") => "Two"','SWITCH(3, 1, "One", 2, "Two", "N/A") => "N/A"','SWITCH({column1}, 1, "One", 2, "Two", "N/A")'],returnType:e=>{const t=new Set(e.slice(2).filter(((e,t)=>t%2==0)));return t.size>1||t.has(ue.STRING)?ue.STRING:t.has(ue.NUMERIC)?ue.NUMERIC:t.has(ue.BOOLEAN)?ue.BOOLEAN:t.has(ue.DATE)?ue.DATE:e[1]}},URL:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/string-functions#url",validation:{args:{min:1,max:2,type:[ue.STRING,ue.STRING]}},description:"Verify and convert to a hyperlink if the input is a valid URL.",syntax:"URL(string, [label])",examples:['URL("https://github.com/nocodb/nocodb")',"URL({column1})",'URL("https://github.com/nocodb/nocodb", "NocoDB")',"URL({column1}, {column1})"],returnType:ue.STRING},URLENCODE:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/string-functions#urlencode",validation:{args:{rqd:1,type:ue.STRING}},description:"Percent-encode the input parameter for use in URLs",syntax:"URLENCODE(str)",examples:['URLENCODE("Hello, world") => "Hello%2C%20world"',"URLENCODE({column1})"],returnType:ue.STRING},WEEKDAY:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/date-functions#weekday",validation:{args:{min:1,max:2,type:ue.NUMERIC},custom(e,t){if(t.arguments[0].type===le.LITERAL&&!se(t.arguments[0].value))throw new me(ce.TYPE_MISMATCH,{key:"msg.formula.firstParamWeekDayHaveDate"},"First parameter of WEEKDAY should be a date");if(t.arguments[1]&&t.arguments[1].type===le.LITERAL){const e=t.arguments[1].value;if("string"!=typeof e||!["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].includes(e.toLowerCase()))throw new me(ce.TYPE_MISMATCH,{key:"msg.formula.secondParamWeekDayHaveDate"},"Second parameter of WEEKDAY should be day of week string")}}},description:"Retrieve the day of the week as an integer (0-6), starting from Monday by default.",syntax:"WEEKDAY(date, [startDayOfWeek])",examples:['WEEKDAY("2021-06-09")','WEEKDAY(NOW(), "sunday")'],returnType:ue.NUMERIC},TRUE:{validation:{args:{max:0}},description:"Returns 1",syntax:"TRUE()",examples:["TRUE()"],returnType:ue.NUMERIC,docsUrl:"https://docs.nocodb.com/fields/field-types/formula/logical-functions#true"},FALSE:{validation:{args:{max:0}},description:"Returns 0",syntax:"FALSE()",examples:["FALSE()"],returnType:ue.NUMERIC,docsUrl:"https://docs.nocodb.com/fields/field-types/formula/logical-functions#false"},REGEX_MATCH:{validation:{args:{rqd:2,type:ue.STRING}},description:"Verifies whether the input text matches a regular expression, returning 1 for a match and 0 otherwise.",syntax:"REGEX_MATCH(string, regex)",examples:['REGEX_MATCH({title}, "abc.*")'],returnType:ue.NUMERIC,docsUrl:"https://docs.nocodb.com/fields/field-types/formula/string-functions#regex_match"},REGEX_EXTRACT:{validation:{args:{rqd:2,type:ue.STRING}},description:"Retrieve the first match of a regular expression in a string.",syntax:"REGEX_EXTRACT(string, regex)",examples:['REGEX_EXTRACT({title}, "abc.*")'],returnType:ue.STRING,docsUrl:"https://docs.nocodb.com/fields/field-types/formula/string-functions#regex_extract"},REGEX_REPLACE:{validation:{args:{rqd:3,type:ue.STRING}},description:"Replace all occurrences of a regular expression in a string with a specified replacement string.",syntax:"REGEX_MATCH(string, regex, replacement)",examples:['REGEX_EXTRACT({title}, "abc.*", "abcd")'],returnType:ue.STRING,docsUrl:"https://docs.nocodb.com/fields/field-types/formula/string-functions#regex_replace"},BLANK:{validation:{args:{rqd:0}},description:"Yields a null value.",syntax:"BLANK()",examples:["BLANK()"],returnType:ue.NULL,docsUrl:"https://docs.nocodb.com/fields/field-types/formula/logical-functions#blank"},XOR:{validation:{args:{min:1}},description:"Verifies whether an odd number of arguments are true, returning true if so, and false otherwise.",syntax:"XOR(expression, [exp2, ...])",examples:["XOR(TRUE(), FALSE(), TRUE())"],returnType:ue.BOOLEAN,docsUrl:"https://docs.nocodb.com/fields/field-types/formula/logical-functions#xor"},EVEN:{validation:{args:{rqd:1,type:ue.NUMERIC}},description:"Rounds up the specified value to the nearest even integer that is greater than or equal to the specified value",syntax:"EVEN(value)",examples:["EVEN({column})"],returnType:ue.NUMERIC,docsUrl:"https://docs.nocodb.com/fields/field-types/formula/numeric-functions#even"},ODD:{validation:{args:{rqd:1,type:ue.NUMERIC}},description:"Rounds up the specified value to the nearest odd integer that is greater than or equal to the specified value",syntax:"ODD(value)",examples:["ODD({column})"],returnType:ue.NUMERIC,docsUrl:"https://docs.nocodb.com/fields/field-types/formula/numeric-functions#odd"},RECORD_ID:{validation:{args:{rqd:0}},description:"Retrieve the record ID of the current record.",syntax:"RECORD_ID()",examples:["RECORD_ID()"],returnType:()=>ue.STRING},COUNTA:{validation:{args:{min:1}},description:"Counts non-empty arguments",syntax:"COUNTA(value1, [value2, ...])",examples:["COUNTA({field1}, {field2})"],returnType:ue.NUMERIC,docsUrl:"https://docs.nocodb.com/fields/field-types/formula/numeric-functions#counta"},COUNT:{validation:{args:{min:1}},description:"Counts numerical arguments",syntax:"COUNT(value1, [value2, ...])",examples:["COUNT({field1}, {field2})"],returnType:ue.NUMERIC,docsUrl:"https://docs.nocodb.com/fields/field-types/formula/numeric-functions#count"},COUNTALL:{validation:{args:{min:1}},description:"Counts the number of arguments",syntax:"COUNTALL(value1, [value2, ...])",examples:["COUNTALL({field1}, {field2})"],returnType:ue.NUMERIC,docsUrl:"https://docs.nocodb.com/fields/field-types/formula/numeric-functions#countall"},ROUNDDOWN:{validation:{args:{min:1,max:2,type:ue.NUMERIC}},description:'Rounds down the value after the decimal point to the specified number of decimal places given by "precision" (default is 0).',syntax:"ROUNDDOWN(value, [precision])",examples:["ROUNDDOWN({field1})","ROUNDDOWN({field1}, 2)"],returnType:ue.NUMERIC,docsUrl:"https://docs.nocodb.com/fields/field-types/formula/numeric-functions#rounddown"},ROUNDUP:{validation:{args:{min:1,max:2,type:ue.NUMERIC}},description:'Rounds up the value after the decimal point to the specified number of decimal places given by "precision" (default is 0).',syntax:"ROUNDUP(value, [precision])",examples:["ROUNDUP({field1})","ROUNDUP({field1}, 2)"],returnType:ue.NUMERIC,docsUrl:"https://docs.nocodb.com/fields/field-types/formula/numeric-functions#roundup"},VALUE:{validation:{args:{rqd:1}},description:"Extracts the numeric value from a string, handling % or - appropriately, and returns the resulting numeric value.",syntax:"VALUE(value)",examples:["VALUE({field})",'VALUE("abc10000%")','VALUE("$10000")'],returnType:ue.NUMERIC,docsUrl:"https://docs.nocodb.com/fields/field-types/formula/numeric-functions#value"}};class me extends Error{constructor(e,t,n="Formula Error"){super(n),this.type=e,this.extra=t}}function he({col:e,columns:t,getMeta:n,clientOrSqlUi:a}){return re(this,void 0,void 0,(function*(){const r={},i="string"==typeof a?R.create({client:a}):a;switch(null==e?void 0:e.uidt){case Ge.SingleLineText:case Ge.LongText:case Ge.MultiSelect:case Ge.SingleSelect:case Ge.PhoneNumber:case Ge.Email:case Ge.URL:case Ge.User:case Ge.CreatedBy:case Ge.LastModifiedBy:r.dataType=ue.STRING;break;case Ge.Year:case Ge.Number:case Ge.Decimal:case Ge.Rating:case Ge.Count:case Ge.AutoNumber:r.dataType=ue.NUMERIC;break;case Ge.Date:case Ge.DateTime:case Ge.CreatedTime:case Ge.LastModifiedTime:r.dataType=ue.DATE;break;case Ge.Currency:case Ge.Percent:case Ge.Duration:case Ge.Links:r.dataType=ue.NUMERIC;break;case Ge.Rollup:{const i=e.colOptions.rollup_function;if(["count","avg","sum","countDistinct","sumDistinct","avgDistinct"].includes(i))r.dataType=ue.NUMERIC;else{const i=t.find((t=>t.id===e.colOptions.fk_relation_column_id)),s=(yield n(i.colOptions.fk_related_model_id)).columns,o=s.find((t=>t.id===e.colOptions.fk_rollup_column_id));Object.assign(r,yield he({col:o,columns:s,getMeta:n,clientOrSqlUi:a}))}}break;case Ge.Attachment:r.dataType=ue.STRING;break;case Ge.Checkbox:"boolean"===e.dt||"bool"===e.dt?r.dataType=ue.BOOLEAN:r.dataType=ue.NUMERIC;break;case Ge.ID:case Ge.ForeignKey:case Ge.SpecificDBType:if(i){const t=i.getAbstractType(e);["integer","float","decimal"].includes(t)?r.dataType=ue.NUMERIC:["boolean"].includes(t)?r.dataType=ue.BOOLEAN:["date","datetime","time","year"].includes(t)?r.dataType=ue.DATE:r.dataType=ue.STRING}else r.dataType=ue.UNKNOWN;break;case Ge.Time:case Ge.Lookup:case Ge.Barcode:case Ge.Button:case Ge.Collaborator:case Ge.QrCode:default:r.dataType=ue.UNKNOWN}return r}))}function be({formula:e,column:t,columns:n,clientOrSqlUi:a,getMeta:r}){return re(this,void 0,void 0,(function*(){const i="string"==typeof a?R.create({client:a}):a,s={},o={};for(const e of n)s[e.title]=e,o[e.id]=e;const c=e=>re(this,void 0,void 0,(function*(){var u,l,d,p,f,m,h,b;const g=Object.assign({},e);if(e.type===le.CALL_EXP){const t=e.callee.name.toUpperCase();if(!fe[t])throw new me(ce.INVALID_FUNCTION_NAME,{},`Function ${t} is not available`);if(null==i?void 0:i.getUnsupportedFnList().includes(t))throw new me(ce.INVALID_FUNCTION_NAME,{},`Function ${t} is unavailable for your database`);const a=fe[t]&&fe[t].validation;if(a&&a.args){if(void 0!==a.args.rqd&&a.args.rqd!==e.arguments.length)throw new me(ce.INVALID_ARG,{key:"msg.formula.requiredArgumentsFormula",requiredArguments:a.args.rqd,calleeName:t},"Required arguments missing");if(void 0!==a.args.min&&a.args.min>e.arguments.length)throw new me(ce.MIN_ARG,{key:"msg.formula.minRequiredArgumentsFormula",minRequiredArguments:a.args.min,calleeName:t},"Minimum arguments required");if(void 0!==a.args.max&&a.args.max<e.arguments.length)throw new me(ce.INVALID_ARG,{key:"msg.formula.maxRequiredArgumentsFormula",maxRequiredArguments:a.args.max,calleeName:t},"Maximum arguments missing")}const r=g.arguments=yield Promise.all(e.arguments.map((e=>c(e)))),s=r.map((e=>e.dataType));if(null===(u=fe[t].validation)||void 0===u?void 0:u.custom)null===(l=fe[t].validation)||void 0===l||l.custom(s,e);else if(null===(p=null===(d=fe[t].validation)||void 0===d?void 0:d.args)||void 0===p?void 0:p.type)for(let e=0;e<r.length;e++){const a=r[e],i=Array.isArray(fe[t].validation.args.type)?fe[t].validation.args.type[e]:fe[t].validation.args.type;if(a.dataType!==i&&a.dataType!==ue.NULL&&a.dataType!==ue.UNKNOWN&&i!==ue.STRING){if(a.type===le.IDENTIFIER){const e=(null===(f=null==n?void 0:n.find((e=>e.id===a.name||e.title===a.name)))||void 0===f?void 0:f.title)||a.name;throw new me(ce.INVALID_ARG,{key:"msg.formula.columnWithTypeFoundButExpected",columnName:e,columnType:a.dataType,expectedType:i},`Field ${e} with ${a.dataType} type is found but ${i} type is expected`)}{let n="";const a=e+1;let r="";throw i===ue.NUMERIC?(n="msg.formula.typeIsExpected",r="numeric"):i===ue.BOOLEAN?(n="msg.formula.typeIsExpected",r="boolean"):i===ue.DATE&&(n="msg.formula.typeIsExpected",r="date"),new me(ce.INVALID_ARG,{type:r,key:n,position:a,calleeName:t},`${null==t?void 0:t.toUpperCase()} requires a ${r||i} at position ${a}`)}}i===ue.STRING&&i!==a.dataType&&(a.cast=ue.STRING)}"function"==typeof fe[t].returnType?g.dataType=null===(h=(m=fe[t]).returnType)||void 0===h?void 0:h.call(m,s):fe[t].returnType&&(g.dataType=fe[t].returnType)}else if(e.type===le.IDENTIFIER){const i=o[e.name]||s[e.name];if(!i)throw new me(ce.INVALID_COLUMN,{key:"msg.formula.columnNotAvailable",columnName:e.name},`Invalid column name/id ${JSON.stringify(e.name)} in formula`);if(g.name=i.id,(null==i?void 0:i.uidt)===Ge.Formula){t&&function(e,t,n){const a=n.filter((t=>t.id!==(null==e?void 0:e.id)&&t.uidt===Ge.Formula)).reduce(((e,t)=>{const a=[...new Set((t.colOptions.formula.match(/c_?\w{14,15}/g)||[]).filter((e=>n.filter((t=>t.id===e&&t.uidt===Ge.Formula)).length)))];return a.length>0&&e.push({[t.id]:a}),e}),[]),r=n.find((e=>e.title===t.name&&e.uidt===Ge.Formula));r&&(null==e?void 0:e.id)&&a.push({[null==e?void 0:e.id]:[r.id]});const i=a.length;if(i>0){const e=new Map,t=new Map;for(const[n,r]of Object.entries(a)){const n=Object.keys(r)[0],a=r[n];t.set(n,t.get(n)||0);for(const r of a)e.set(n,(e.get(n)||new Set).add(r)),t.set(r,(t.get(r)||0)+1)}const n=[];t.forEach(((e,t)=>{0===e&&n.push(t)}));let r=0;for(;0!==n.length;){const a=n.shift(),i=e.get(a)||new Set;i.size>0&&(r+=1),i.forEach((e=>{t.set(e,t.get(e)-1),0===t.get(e)&&n.push(e)}))}if(i!==r)throw new me(ce.CIRCULAR_REFERENCE,{key:"msg.formula.cantSaveCircularReference"},"Circular reference detected")}}(t,e,n);const s=(null===(b=i.colOptions)||void 0===b?void 0:b.parsed_tree)||(yield be({formula:i.colOptions.formula.replaceAll("{{","{").replaceAll("}}","}"),columns:n,clientOrSqlUi:a,getMeta:r}));g.dataType=null==s?void 0:s.dataType}else Object.assign(g,yield he({col:i,columns:n,getMeta:r,clientOrSqlUi:a}))}else if(e.type===le.LITERAL)"number"==typeof e.value?g.dataType=ue.NUMERIC:"string"==typeof e.value?g.dataType=ue.STRING:"boolean"==typeof e.value?g.dataType=ue.BOOLEAN:g.dataType=ue.STRING;else if(e.type===le.UNARY_EXP){if(!["-"].includes(e.operator)||e.argument.type!==le.LITERAL||"number"!=typeof e.argument.value)throw new me(ce.NOT_SUPPORTED,{},`Unary expression '${e.operator}' is not supported`);g.dataType=ue.NUMERIC}else if(e.type===le.BINARY_EXP)g.left=yield c(e.left),g.right=yield c(e.right),["==","<",">","<=",">=","!="].includes(e.operator)?g.dataType=ue.COND_EXP:"+"===e.operator?(g.dataType=ue.NUMERIC,[g.left,g.right].some((e=>![ue.NUMERIC,ue.BOOLEAN,ue.NULL,ue.UNKNOWN].includes(e.dataType)))&&(g.dataType=ue.STRING)):g.dataType=ue.NUMERIC;else{if(e.type===le.MEMBER_EXP)throw new me(ce.NOT_SUPPORTED,{},"Bracket notation is not supported");if(e.type===le.ARRAY_EXP)throw new me(ce.NOT_SUPPORTED,{},"Array is not supported");if(e.type===le.COMPOUND)throw new me(ce.NOT_SUPPORTED,{},"Compound statement is not supported")}return g}));h().plugins.register(ie);const u=h()(e);return yield c(u)}))}var ge,ve,ye,_e,Ee;!function(e){e[e.FORM=1]="FORM",e[e.GALLERY=2]="GALLERY",e[e.GRID=3]="GRID",e[e.KANBAN=4]="KANBAN",e[e.MAP=5]="MAP",e[e.CALENDAR=6]="CALENDAR"}(ge||(ge={})),function(e){e.DATABASE="database",e.DOCUMENTATION="documentation",e.COWRITER="cowriter",e.DASHBOARD="dashboard"}(ve||(ve={})),function(e){e.HAS_MANY="hm",e.BELONGS_TO="bt",e.MANY_TO_MANY="mm",e.ONE_TO_ONE="oo"}(ye||(ye={})),function(e){e.EXCEL="excel",e.CSV="csv"}(_e||(_e={})),function(e){e.COMMENT="COMMENT",e.DATA="DATA",e.PROJECT="PROJECT",e.VIRTUAL_RELATION="VIRTUAL_RELATION",e.RELATION="RELATION",e.TABLE_VIEW="TABLE_VIEW",e.TABLE="TABLE",e.VIEW="VIEW",e.META="META",e.TABLE_COLUMN="TABLE_COLUMN",e.WEBHOOKS="WEBHOOKS",e.AUTHENTICATION="AUTHENTICATION",e.ORG_USER="ORG_USER"}(Ee||(Ee={}));const xe={[Ee.COMMENT]:"Comment",[Ee.DATA]:"Data",[Ee.PROJECT]:"Project",[Ee.VIRTUAL_RELATION]:"Virtual Relation",[Ee.RELATION]:"Relation",[Ee.TABLE_VIEW]:"Table View",[Ee.TABLE]:"Table",[Ee.VIEW]:"View",[Ee.META]:"Meta",[Ee.WEBHOOKS]:"Webhooks",[Ee.AUTHENTICATION]:"Authentication",[Ee.TABLE_COLUMN]:"Table Column",[Ee.ORG_USER]:"Org User"};var Te;!function(e){e.INSERT="INSERT",e.CREATE="CREATE",e.UPDATE="UPDATE",e.DELETE="DELETE",e.BULK_INSERT="BULK_INSERT",e.BULK_UPDATE="BULK_UPDATE",e.BULK_DELETE="BULK_DELETE",e.LINK_RECORD="LINK_RECORD",e.UNLINK_RECORD="UNLINK_RECORD",e.RENAME="RENAME",e.IMPORT_FROM_ZIP="IMPORT_FROM_ZIP",e.EXPORT_TO_FS="EXPORT_TO_FS",e.EXPORT_TO_ZIP="EXPORT_TO_ZIP",e.SIGNIN="SIGNIN",e.SIGNUP="SIGNUP",e.PASSWORD_RESET="PASSWORD_RESET",e.PASSWORD_FORGOT="PASSWORD_FORGOT",e.PASSWORD_CHANGE="PASSWORD_CHANGE",e.EMAIL_VERIFICATION="EMAIL_VERIFICATION",e.ROLES_MANAGEMENT="ROLES_MANAGEMENT",e.INVITE="INVITE",e.RESEND_INVITE="RESEND_INVITE"}(Te||(Te={}));const Oe={[Te.UPDATE]:"Update",[Te.INSERT]:"Insert",[Te.DELETE]:"Delete",[Te.BULK_INSERT]:"Bulk Insert",[Te.BULK_UPDATE]:"Bulk Update",[Te.BULK_DELETE]:"Bulk Delete",[Te.LINK_RECORD]:"Link Record",[Te.UNLINK_RECORD]:"Unlink Record",[Te.CREATE]:"Create",[Te.RENAME]:"Rename",[Te.IMPORT_FROM_ZIP]:"Import From Zip",[Te.EXPORT_TO_FS]:"Export To FS",[Te.EXPORT_TO_ZIP]:"Export To Zip",[Te.SIGNIN]:"Signin",[Te.SIGNUP]:"Signup",[Te.PASSWORD_RESET]:"Password Reset",[Te.PASSWORD_FORGOT]:"Password Forgot",[Te.PASSWORD_CHANGE]:"Password Change",[Te.EMAIL_VERIFICATION]:"Email Verification",[Te.ROLES_MANAGEMENT]:"Roles Management",[Te.INVITE]:"Invite",[Te.RESEND_INVITE]:"Resend Invite"};var $e,Ae,Se,De,we,Ce,Re,Ne;!function(e){e.STORAGE="Storage",e.EMAIL="Email"}($e||($e={})),function(e){e.TABLE="table",e.VIEW="view"}(Ae||(Ae={})),function(e){e.JOB="job"}(Se||(Se={})),function(e){e.doc="doc",e.sec="sec",e.paragraph="paragraph",e.text="text",e.heading="heading",e.bullet="bullet",e.ordered="ordered",e.task="task",e.quote="quote",e.divider="divider",e.codeBlock="codeBlock",e.image="image",e.callout="callout",e.tipCallout="tipCallout",e.table="table",e.tableRow="tableRow",e.tableCell="tableCell",e.embed="embed",e.collapsable="collapsable",e.collapsableContent="collapsable_content",e.collapsableHeader="collapsable_header",e.column="column",e.columnContent="columnContent",e.linkToPage="linkToPage",e.attachment="attachment"}(De||(De={})),function(e){e.strike="strike",e.bold="bold",e.italic="italic",e.link="link",e.code="code",e.underline="underline"}(we||(we={})),function(e){e.NC_ERR_MM_MODEL_NOT_FOUND="NC_ERR_MM_MODEL_NOT_FOUND"}(Ce||(Ce={})),function(e){e.AUTHENTICATION_REQUIRED="AUTHENTICATION_REQUIRED",e.API_TOKEN_NOT_ALLOWED="API_TOKEN_NOT_ALLOWED",e.WORKSPACE_NOT_FOUND="WORKSPACE_NOT_FOUND",e.BASE_NOT_FOUND="BASE_NOT_FOUND",e.SOURCE_NOT_FOUND="SOURCE_NOT_FOUND",e.TABLE_NOT_FOUND="TABLE_NOT_FOUND",e.VIEW_NOT_FOUND="VIEW_NOT_FOUND",e.FIELD_NOT_FOUND="FIELD_NOT_FOUND",e.RECORD_NOT_FOUND="RECORD_NOT_FOUND",e.GENERIC_NOT_FOUND="GENERIC_NOT_FOUND",e.HOOK_NOT_FOUND="HOOK_NOT_FOUND",e.REQUIRED_FIELD_MISSING="REQUIRED_FIELD_MISSING",e.ERROR_DUPLICATE_RECORD="ERROR_DUPLICATE_RECORD",e.USER_NOT_FOUND="USER_NOT_FOUND",e.INVALID_OFFSET_VALUE="INVALID_OFFSET_VALUE",e.INVALID_LIMIT_VALUE="INVALID_LIMIT_VALUE",e.INVALID_FILTER="INVALID_FILTER",e.INVALID_SHARED_VIEW_PASSWORD="INVALID_SHARED_VIEW_PASSWORD",e.INVALID_ATTACHMENT_JSON="INVALID_ATTACHMENT_JSON",e.NOT_IMPLEMENTED="NOT_IMPLEMENTED",e.INTERNAL_SERVER_ERROR="INTERNAL_SERVER_ERROR",e.DATABASE_ERROR="DATABASE_ERROR",e.UNKNOWN_ERROR="UNKNOWN_ERROR",e.BAD_JSON="BAD_JSON",e.INVALID_PK_VALUE="INVALID_PK_VALUE",e.COLUMN_ASSOCIATED_WITH_LINK="COLUMN_ASSOCIATED_WITH_LINK",e.TABLE_ASSOCIATED_WITH_LINK="TABLE_ASSOCIATED_WITH_LINK",e.INTEGRATION_NOT_FOUND="INTEGRATION_NOT_FOUND",e.INTEGRATION_LINKED_WITH_BASES="INTEGRATION_LINKED_WITH_BASES",e.FORMULA_ERROR="FORMULA_ERROR",e.PERMISSION_DENIED="PERMISSION_DENIED"}(Re||(Re={})),function(e){e.ID="ID",e.LinkToAnotherRecord="LinkToAnotherRecord",e.ForeignKey="ForeignKey",e.Lookup="Lookup",e.SingleLineText="SingleLineText",e.LongText="LongText",e.Attachment="Attachment",e.Checkbox="Checkbox",e.MultiSelect="MultiSelect",e.SingleSelect="SingleSelect",e.Collaborator="Collaborator",e.Date="Date",e.Year="Year",e.Time="Time",e.PhoneNumber="PhoneNumber",e.GeoData="GeoData",e.Email="Email",e.URL="URL",e.Number="Number",e.Decimal="Decimal",e.Currency="Currency",e.Percent="Percent",e.Duration="Duration",e.Rating="Rating",e.Formula="Formula",e.Rollup="Rollup",e.Count="Count",e.DateTime="DateTime",e.CreatedTime="CreatedTime",e.LastModifiedTime="LastModifiedTime",e.AutoNumber="AutoNumber",e.Geometry="Geometry",e.JSON="JSON",e.SpecificDBType="SpecificDBType",e.Barcode="Barcode",e.QrCode="QrCode",e.Button="Button",e.Links="Links",e.User="User",e.CreatedBy="CreatedBy",e.LastModifiedBy="LastModifiedBy"}(Ne||(Ne={}));const Ie={[Ne.ID]:"ID",[Ne.LinkToAnotherRecord]:"Link to another record",[Ne.ForeignKey]:"Foreign key",[Ne.Lookup]:"Lookup",[Ne.SingleLineText]:"Single line text",[Ne.LongText]:"Long text",RichText:"Rich text",[Ne.Attachment]:"Attachment",[Ne.Checkbox]:"Checkbox",[Ne.MultiSelect]:"Multi select",[Ne.SingleSelect]:"Single select",[Ne.Collaborator]:"Collaborator",[Ne.Date]:"Date",[Ne.Year]:"Year",[Ne.Time]:"Time",[Ne.PhoneNumber]:"Phone number",[Ne.GeoData]:"Geo data",[Ne.Email]:"Email",[Ne.URL]:"URL",[Ne.Number]:"Number",[Ne.Decimal]:"Decimal",[Ne.Currency]:"Currency",[Ne.Percent]:"Percent",[Ne.Duration]:"Duration",[Ne.Rating]:"Rating",[Ne.Formula]:"Formula",[Ne.Rollup]:"Rollup",[Ne.Count]:"Count",[Ne.DateTime]:"Date time",[Ne.CreatedTime]:"Created time",[Ne.LastModifiedTime]:"Last modified time",[Ne.AutoNumber]:"Auto number",[Ne.Geometry]:"Geometry",[Ne.JSON]:"JSON",[Ne.SpecificDBType]:"Specific DB type",[Ne.Barcode]:"Barcode",[Ne.QrCode]:"Qr code",[Ne.Button]:"Button",[Ne.Links]:"Links",[Ne.User]:"User",[Ne.CreatedBy]:"Created by",[Ne.LastModifiedBy]:"Last modified by"},Me={[Ne.ID]:"ID",[Ne.LinkToAnotherRecord]:"{TableName}",[Ne.ForeignKey]:"Foreign key",[Ne.Lookup]:"{FieldName} (from {TableName})",[Ne.SingleLineText]:"Text",[Ne.LongText]:"Notes",[Ne.Attachment]:"Attachment",[Ne.Checkbox]:"Done",[Ne.MultiSelect]:"Tags",[Ne.SingleSelect]:"Status",[Ne.Collaborator]:"User",[Ne.Date]:"Date",[Ne.Year]:"Year",[Ne.Time]:"Time",[Ne.PhoneNumber]:"Phone",[Ne.GeoData]:"Geo data",[Ne.Email]:"Email",[Ne.URL]:"URL",[Ne.Number]:"Number",[Ne.Decimal]:"Decimal",[Ne.Currency]:"Currency",[Ne.Percent]:"Percent",[Ne.Duration]:"Duration",[Ne.Rating]:"Rating",[Ne.Formula]:"Formula",[Ne.Rollup]:"{RollupFunction}({FieldName}) from {TableName}",[Ne.Count]:"Count",[Ne.DateTime]:"Date time",[Ne.CreatedTime]:"Created time",[Ne.LastModifiedTime]:"Last modified time",[Ne.AutoNumber]:"Auto number",[Ne.Geometry]:"Geometry",[Ne.JSON]:"JSON",[Ne.SpecificDBType]:"Specific DB type",[Ne.Barcode]:"Barcode",[Ne.QrCode]:"Qr code",[Ne.Button]:"Button",[Ne.Links]:"{TableName}",[Ne.User]:"User",[Ne.CreatedBy]:"Created by",[Ne.LastModifiedBy]:"Last modified by"},Pe=[Ne.Duration,Ne.Currency,Ne.Percent,Ne.Number,Ne.Decimal,Ne.Rating,Ne.Rollup,Ne.Year,Ne.Links];function Le(e){return Pe.includes("object"==typeof e?null==e?void 0:e.uidt:e)}function je(e){return[Ne.LinkToAnotherRecord,Ne.Formula,Ne.QrCode,Ne.Barcode,Ne.Rollup,Ne.Lookup,Ne.Links,Ne.CreatedTime,Ne.LastModifiedTime,Ne.CreatedBy,Ne.LastModifiedBy,Ne.Button].includes("object"==typeof e?null==e?void 0:e.uidt:e)}function ke(e){return[Ne.CreatedTime,Ne.LastModifiedTime].includes("object"==typeof e?null==e?void 0:e.uidt:e)}function Fe(e){return[Ne.CreatedBy,Ne.LastModifiedBy].includes("object"==typeof e?null==e?void 0:e.uidt:e)}function Ue(e,t){var n,a;return!!e.system&&(e.uidt===Ne.LinkToAnotherRecord?!((null===(n=e.colOptions)||void 0===n?void 0:n.type)!==ye.BELONGS_TO||!(null==t?void 0:t.mm))||(null===(a=e.colOptions)||void 0===a?void 0:a.type)===ye.HAS_MANY:[Ne.CreatedBy,Ne.LastModifiedBy].includes(e.uidt))}function qe(e){return[Ne.LinkToAnotherRecord,Ne.Links].includes("object"==typeof e?null==e?void 0:e.uidt:e)}const Be=({formulaColumn:e})=>{var t,n;switch(null===(n=null===(t=null==e?void 0:e.colOptions)||void 0===t?void 0:t.parsed_tree)||void 0===n?void 0:n.dataType){case ue.NUMERIC:return Ne.Number;case ue.DATE:return Ne.DateTime;case ue.LOGICAL:case ue.COND_EXP:case ue.BOOLEAN:return Ne.Checkbox}},He=e=>[Ne.SingleSelect,Ne.MultiSelect,Ne.User].includes("object"==typeof e?null==e?void 0:e.uidt:e),Ge=Ne,We=[Ne.Lookup,Ne.Rollup,Ne.Formula,Ne.Button,Ne.Barcode,Ne.QrCode],Ve=[Ne.Checkbox,Ne.Number,Ne.Decimal,Ne.Currency,Ne.Percent,Ne.Duration,Ne.Rating,Ne.DateTime,Ne.Date,Ne.Time,Ne.CreatedTime,Ne.LastModifiedTime,Ne.LinkToAnotherRecord,Ne.Links,Ne.PhoneNumber,Ne.Email,Ne.URL],Ye=e=>{switch(e){case ue.NUMERIC:return[Ne.Decimal,Ne.Currency,Ne.Percent,Ne.Rating];case ue.DATE:return[Ne.DateTime,Ne.Date,Ne.Time];case ue.BOOLEAN:case ue.COND_EXP:return[Ne.Checkbox];case ue.STRING:return[Ne.Email,Ne.URL,Ne.PhoneNumber];default:return[]}},ze=[Ge.Formula,Ge.SingleLineText,Ge.LongText,Ge.PhoneNumber,Ge.URL,Ge.Email,Ge.Decimal,Ge.Number,Ge.AutoNumber,Ge.ID];var Ke,Ze,Je,Qe,Xe,et,tt,nt;!function(e){e.SUPER_ADMIN="super",e.CREATOR="org-level-creator",e.VIEWER="org-level-viewer"}(Ke||(Ke={})),function(e){e.CREATOR="cloud-org-level-creator",e.VIEWER="cloud-org-level-viewer",e.OWNER="cloud-org-level-owner"}(Ze||(Ze={})),function(e){e.OWNER="owner",e.CREATOR="creator",e.EDITOR="editor",e.COMMENTER="commenter",e.VIEWER="viewer",e.NO_ACCESS="no-access"}(Je||(Je={})),function(e){e.OWNER="workspace-level-owner",e.CREATOR="workspace-level-creator",e.EDITOR="workspace-level-editor",e.COMMENTER="workspace-level-commenter",e.VIEWER="workspace-level-viewer",e.NO_ACCESS="workspace-level-no-access"}(Qe||(Qe={})),function(e){e.PROJECT_CREATE="base.create",e.PROJECT_INVITE="base.invite",e.PROJECT_USER_UPDATE="base.user.update",e.PROJECT_USER_RESEND_INVITE="base.user.resend.invite",e.PROJECT_DELETE="base.delete",e.PROJECT_UPDATE="base.update",e.PROJECT_CLONE="base.clone",e.WELCOME="app.welcome",e.WORKSPACE_CREATE="workspace.create",e.WORKSPACE_INVITE="workspace.invite",e.WORKSPACE_DELETE="workspace.delete",e.WORKSPACE_UPDATE="workspace.update",e.USER_SIGNUP="user.signup",e.USER_SIGNIN="user.signin",e.USER_UPDATE="user.update",e.USER_PASSWORD_RESET="user.password.reset",e.USER_PASSWORD_CHANGE="user.password.change",e.USER_PASSWORD_FORGOT="user.password.forgot",e.USER_DELETE="user.delete",e.USER_EMAIL_VERIFICATION="user.email.verification",e.TABLE_CREATE="table.create",e.TABLE_DELETE="table.delete",e.TABLE_UPDATE="table.update",e.VIEW_CREATE="view.create",e.VIEW_DELETE="view.delete",e.VIEW_UPDATE="view.update",e.SHARED_VIEW_CREATE="shared.view.create",e.SHARED_VIEW_DELETE="shared.view.delete",e.SHARED_VIEW_UPDATE="shared.view.update",e.FILTER_CREATE="filter.create",e.FILTER_DELETE="filter.delete",e.FILTER_UPDATE="filter.update",e.SORT_CREATE="sort.create",e.SORT_DELETE="sort.delete",e.SORT_UPDATE="sort.update",e.COLUMN_CREATE="column.create",e.COLUMN_DELETE="column.delete",e.COLUMN_UPDATE="column.update",e.DATA_CREATE="data.create",e.DATA_DELETE="data.delete",e.DATA_UPDATE="data.update",e.ORG_USER_INVITE="org.user.invite",e.ORG_USER_RESEND_INVITE="org.user.resend.invite",e.VIEW_COLUMN_CREATE="view.column.create",e.VIEW_COLUMN_UPDATE="view.column.update",e.API_TOKEN_CREATE="api.token.create",e.API_TOKEN_DELETE="api.token.delete",e.IMAGE_UPLOAD="image.upload",e.BASE_CREATE="source.create",e.BASE_DELETE="source.delete",e.BASE_UPDATE="source.update",e.FORM_COLUMN_UPDATE="form.column.update",e.FORM_CREATE="form.create",e.FORM_UPDATE="form.update",e.GALLERY_CREATE="gallery.create",e.GALLERY_UPDATE="gallery.update",e.KANBAN_CREATE="kanban.create",e.KANBAN_UPDATE="kanban.update",e.MAP_CREATE="map.create",e.MAP_UPDATE="map.update",e.META_DIFF_SYNC="meta.diff.sync",e.GRID_CREATE="grid.create",e.GRID_UPDATE="grid.update",e.GRID_COLUMN_UPDATE="grid.column.update",e.WEBHOOK_CREATE="webhook.create",e.WEBHOOK_UPDATE="webhook.update",e.WEBHOOK_DELETE="webhook.delete",e.WEBHOOK_TEST="webhook.test",e.WEBHOOK_TRIGGER="webhook.trigger",e.UI_ACL_UPDATE="ui.acl.update",e.ORG_API_TOKEN_CREATE="org.api.token.create",e.ORG_API_TOKEN_DELETE="org.api.token.delete",e.PLUGIN_TEST="plugin.test",e.PLUGIN_INSTALL="plugin.install",e.PLUGIN_UNINSTALL="plugin.uninstall",e.SYNC_SOURCE_CREATE="sync.source.create",e.SYNC_SOURCE_UPDATE="sync.source.update",e.SYNC_SOURCE_DELETE="sync.source.delete",e.RELATION_DELETE="relation.delete",e.RELATION_CREATE="relation.create",e.SHARED_BASE_GENERATE_LINK="shared.base.generate.link",e.SHARED_BASE_DELETE_LINK="shared.base.delete.link",e.ATTACHMENT_UPLOAD="attachment.upload",e.APIS_CREATED="apis.created",e.EXTENSION_CREATE="extension.create",e.EXTENSION_UPDATE="extension.update",e.EXTENSION_DELETE="extension.delete",e.COMMENT_CREATE="comment.create",e.COMMENT_DELETE="comment.delete",e.COMMENT_UPDATE="comment.update",e.INTEGRATION_DELETE="integration.delete",e.INTEGRATION_CREATE="integration.create",e.INTEGRATION_UPDATE="integration.update"}(Xe||(Xe={})),function(e){e.API_CALLS="usage_api_calls",e.API_COUNT="usage_api_count",e.NOTIFICATION="nc_notification",e.PAGE_SNAPSHOT="docs_page_snapshot",e.TELEMETRY="usage_telemetry",e.AUDIT="nc_audit"}(et||(et={})),function(e){e[e.CREATING=0]="CREATING",e[e.CREATED=1]="CREATED",e[e.DELETING=2]="DELETING",e[e.DELETED=3]="DELETED",e[e.FAILED=4]="FAILED"}(tt||(tt={})),function(e){e.FREE="free",e.TEAM="team",e.BUSINESS="business"}(nt||(nt={}));const at={[Qe.OWNER]:"owner",[Qe.CREATOR]:"creator",[Qe.EDITOR]:"editor",[Qe.COMMENTER]:"commenter",[Qe.VIEWER]:"viewer",[Qe.NO_ACCESS]:"noaccess",[Je.OWNER]:"owner",[Je.CREATOR]:"creator",[Je.EDITOR]:"editor",[Je.COMMENTER]:"commenter",[Je.VIEWER]:"viewer",[Je.NO_ACCESS]:"noaccess",[Ke.SUPER_ADMIN]:"superAdmin",[Ke.CREATOR]:"creator",[Ke.VIEWER]:"viewer",[Ze.OWNER]:"owner",[Ze.CREATOR]:"creator",[Ze.VIEWER]:"viewer"},rt={[Qe.OWNER]:"purple",[Qe.CREATOR]:"blue",[Qe.EDITOR]:"green",[Qe.COMMENTER]:"orange",[Qe.VIEWER]:"yellow",[Qe.NO_ACCESS]:"red",[Je.OWNER]:"purple",[Je.CREATOR]:"blue",[Je.EDITOR]:"green",[Je.COMMENTER]:"orange",[Je.VIEWER]:"yellow",[Ke.SUPER_ADMIN]:"maroon",[Je.NO_ACCESS]:"red",[Ke.CREATOR]:"blue",[Ke.VIEWER]:"yellow",[Ze.OWNER]:"purple",[Ze.CREATOR]:"blue",[Ze.VIEWER]:"yellow"},it={[Qe.OWNER]:"Full access to workspace",[Qe.CREATOR]:"Can create bases, sync tables, views, setup web-hooks and more",[Qe.EDITOR]:"Can edit data in workspace bases",[Qe.COMMENTER]:"Can view and comment data in workspace bases",[Qe.VIEWER]:"Can view data in workspace bases",[Qe.NO_ACCESS]:"Cannot access this workspace",[Je.OWNER]:"Full access to base",[Je.CREATOR]:"Can create tables, views, setup webhook, invite collaborators and more",[Je.EDITOR]:"Can view, add & modify records, add comments on them",[Je.COMMENTER]:"Can view records and add comment on them",[Je.VIEWER]:"Can only view records",[Je.NO_ACCESS]:"Cannot access this base",[Ke.SUPER_ADMIN]:"Full access to all",[Ke.CREATOR]:"Can create bases, sync tables, views, setup web-hooks and more",[Ke.VIEWER]:"Can only view bases"},st={[Qe.OWNER]:"role_owner",[Qe.CREATOR]:"role_creator",[Qe.EDITOR]:"role_editor",[Qe.COMMENTER]:"role_commenter",[Qe.VIEWER]:"role_viewer",[Qe.NO_ACCESS]:"role_no_access",[Je.OWNER]:"role_owner",[Je.CREATOR]:"role_creator",[Je.EDITOR]:"role_editor",[Je.COMMENTER]:"role_commenter",[Je.VIEWER]:"role_viewer",[Je.NO_ACCESS]:"role_no_access",[Ke.SUPER_ADMIN]:"role_super",[Ke.CREATOR]:"role_creator",[Ke.VIEWER]:"role_viewer",[Ze.OWNER]:"role_owner",[Ze.CREATOR]:"role_creator",[Ze.VIEWER]:"role_viewer"},ot={[Qe.OWNER]:Je.OWNER,[Qe.CREATOR]:Je.CREATOR,[Qe.EDITOR]:Je.EDITOR,[Qe.COMMENTER]:Je.COMMENTER,[Qe.VIEWER]:Je.VIEWER,[Qe.NO_ACCESS]:Je.NO_ACCESS},ct=[Qe.OWNER,Qe.CREATOR,Qe.EDITOR,Qe.COMMENTER,Qe.VIEWER,Qe.NO_ACCESS],ut=[Ke.SUPER_ADMIN,Ke.CREATOR,Ke.VIEWER],lt=[Je.OWNER,Je.CREATOR,Je.EDITOR,Je.COMMENTER,Je.VIEWER,Je.NO_ACCESS];var dt,pt,ft,mt,ht,bt,gt;!function(e){e.FREE_WORKSPACE_LIMIT="FREE_WORKSPACE_LIMIT",e.WORKSPACE_USER_LIMIT="WORKSPACE_USER_LIMIT",e.WORKSPACE_ROW_LIMIT="WORKSPACE_ROW_LIMIT",e.BASE_LIMIT="BASE_LIMIT",e.SOURCE_LIMIT="SOURCE_LIMIT",e.TABLE_LIMIT="TABLE_LIMIT",e.COLUMN_LIMIT="COLUMN_LIMIT",e.TABLE_ROW_LIMIT="TABLE_ROW_LIMIT",e.WEBHOOK_LIMIT="WEBHOOK_LIMIT",e.VIEW_LIMIT="VIEW_LIMIT",e.FILTER_LIMIT="FILTER_LIMIT",e.SORT_LIMIT="SORT_LIMIT"}(dt||(dt={})),function(e){e.VIEW_COLUMNS="fields",e.FILTERS="filters",e.SORTS="sorts"}(pt||(pt={})),function(e){e.SCHEMA_READONLY="is_schema_readonly",e.DATA_READONLY="is_data_readonly"}(ft||(ft={})),function(e){e.MYSQL="mysql2",e.MSSQL="mssql",e.PG="pg",e.SQLITE="sqlite3",e.VITESS="vitess",e.SNOWFLAKE="snowflake",e.DATABRICKS="databricks"}(mt||(mt={})),function(e){e.No="No",e.Allowed="Allowed",e.Preferred="Preferred",e.Required="Required",e.RequiredWithCa="Required-CA",e.RequiredWithIdentity="Required-Identity"}(ht||(ht={})),function(e){e.MICROSOFT_ACCESS="microsoft-access",e.TABLEAU="tableau",e.ORACLE="oracle",e.OPENAI="openai",e.CLAUDE="claude",e.OLLAMA="ollama",e.GROQ="groq",e.SLACK="slack",e.DISCORD="discord",e.TWILLO="twillo",e.MICROSOFT_OUTLOOK="microsoft-outlook",e.MICROSOFT_TEAMS="microsoft-teams",e.TELEGRAM="telegram",e.GMAIL="gmail",e.WHATSAPP="whatsapp",e.ASANA="asana",e.JIRA="jira",e.MIRO="miro",e.TRELLO="trello",e.SALESFORCE="salesforce",e.PIPEDRIVE="pipedrive",e.MICROSOFT_DYNAMICS_365="microsoft-dynamics-365",e.ZOHO_CRM="zoho-crm",e.HUBSPOT="hubspot",e.MAILCHIMP="mailchimp",e.SURVEYMONKEY="surveymonkey",e.TYPEFORM="typeform",e.WORKDAY="workday",e.GREENHOUSE="greenhouse",e.LEVER="lever",e.GITHUB="github",e.GITLAB="gitlab",e.BITBUCKET="bitbucket",e.STRIPE="stripe",e.QUICKBOOKS="quickbooks",e.FRESHDESK="freshdesk",e.INTERCOM="intercom",e.ZENDESK="zendesk",e.HUBSPOT_SERVICE_HUB="hubspot-service-hub",e.SALESFORCE_SERVICE_CLOUD="salesforce-service-cloud",e.BOX="box",e.GOOGLE_DRIVE="google-drive",e.DROPBOX="dropbox",e.APPLE_NUMBERS="apple-numbers",e.GOOGLE_CALENDAR="google-calendar",e.MICROSOFT_EXCEL="microsoft-excel",e.GOOGLE_SHEETS="google-sheets"}(bt||(bt={})),function(e){e.DATABASE="database",e.AI="ai",e.COMMUNICATION="communication",e.SPREAD_SHEET="spread-sheet",e.PROJECT_MANAGEMENT="project-management",e.CRM="crm",e.MARKETING="marketing",e.ATS="ats",e.DEVELOPMENT="development",e.FINANCE="finance",e.TICKETING="ticketing",e.STORAGE="storage",e.OTHERS="others"}(gt||(gt={}));const vt=e=>e&&e.filter((e=>!Et(e)))||[],yt=e=>(e&&e.filter(Et)||[]).map((e=>e.id)),_t=e=>e.filter(Et)||[],Et=e=>!(!e||!(e.uidt===Ge.ForeignKey||("created_at"===e.column_name||"updated_at"===e.column_name)&&e.uidt===Ge.DateTime||e.pk&&(e.ai||e.cdf)||e.pk&&e.meta&&e.meta.ag||e.system)),xt=e=>{var t,n,a;return e&&(e.uidt===Ge.Links||e.uidt===Ge.LinkToAnotherRecord)&&((null==e?void 0:e.fk_model_id)||(null===(t=null==e?void 0:e.colOptions)||void 0===t?void 0:t.fk_model_id))&&(null===(n=null==e?void 0:e.colOptions)||void 0===n?void 0:n.fk_related_model_id)&&((null==e?void 0:e.fk_model_id)||(null===(a=null==e?void 0:e.colOptions)||void 0===a?void 0:a.fk_model_id))===e.colOptions.fk_related_model_id},Tt=e=>e?"object"!=typeof e||Array.isArray(e)?("string"==typeof e&&(e=e.split(",")),0===e.length?null:e.reduce(((e,t)=>(e[t]=!0,e)),{})):e:null,Ot=e=>e?Object.keys(e).filter((t=>e[t])).join(","):"",$t=e=>[Ge.Year,Ge.Time,Ge.Date,Ge.DateTime,Ge.CreatedTime,Ge.LastModifiedTime].includes(e)?["count","min","max","countDistinct"]:Le(e)?["sum","count","min","max","avg","countDistinct","sumDistinct","avgDistinct"]:[Ge.SingleLineText,Ge.LongText,Ge.User,Ge.Email,Ge.PhoneNumber,Ge.URL,Ge.JSON].includes(e)?["count","countDistinct"]:[Ge.Checkbox].includes(e)?["count","sum"]:[Ge.Attachment].includes(e)?[]:[Ge.SingleSelect,Ge.MultiSelect].includes(e)?["count","countDistinct"]:["sum","count","min","max","avg","countDistinct","sumDistinct","avgDistinct"],At=e=>[Ge.Year,Ge.Time,Ge.Date,Ge.DateTime,Ge.CreatedTime,Ge.LastModifiedTime,Ge.Decimal,Ge.Currency,Ge.Duration].includes(e)?["count","countDistinct"]:["sum","count","avg","min","max","countDistinct","sumDistinct","avgDistinct"],St=({name:e,count:t,ext:n})=>`${e}${t?`(${t})`:""}${n?`${n}`:""}`;function Dt(e,t){return e.replace(/^(.+?)(?:\((\d+)\))?(\.(?:tar|min)\.(?:\w{2,4})|\.\w+)$/,((e,n,a,r)=>{let i=e,s=a||1;for(;t.some((e=>e===i));)i=St({name:n,ext:r,count:s++});return i}))}function wt(e,t=0){if(t=null==t?0:t>=0?Math.min(t,292):Math.max(t,-292)){let n=`${e}e`.split("e");return n=`${Math.round(Number(`${n[0]}e${+n[1]+t}`))}e`.split("e"),(+`${n[0]}e${+n[1]-t}`).toFixed(t)}return Math.round(e).toFixed(t)}const Ct={[mt.MYSQL]:null,mysql:null,[mt.PG]:"postgres",oracledb:"xe",[mt.MSSQL]:void 0,[mt.SQLITE]:"a.sqlite"},Rt=e=>{var t;return e.client===mt.PG||e.client===mt.SNOWFLAKE?null===(t=e.connection)||void 0===t?void 0:t.database:Ct[e.client]},Nt=class extends f{};class It{}function Mt(e){let t="",n=!0;return e?e.length>=8||(t+="At least 8 letters. ",n=!1):(t="At least 8 letters",n=!1),{error:t,valid:n,hint:null}}function Pt(e,t){return Object.assign(Object.assign(Object.assign({},e),t),{paths:Object.assign(Object.assign({},e.paths),t.paths),components:Object.assign(Object.assign(Object.assign({},e.components),t.components),{schemas:Object.assign(Object.assign({},e.components.schemas),t.components.schemas),responses:Object.assign(Object.assign({},e.components.responses),t.components.responses)})})}var Lt,jt,kt,Ft,Ut,qt,Bt,Ht;!function(e){e.Required="required"}(Lt||(Lt={})),function(e){e.MinLength="minLength",e.MaxLength="maxLength",e.StartsWith="startsWith",e.EndsWith="endsWith",e.Includes="includes",e.NotIncludes="notIncludes",e.Regex="regex",e.Email="email",e.BusinessEmail="businessEmail",e.PhoneNumber="phoneNumber",e.Url="url"}(jt||(jt={})),function(e){e.Min="min",e.Max="max"}(kt||(kt={})),function(e){e.MinDate="minDate",e.MaxDate="maxDate"}(Ft||(Ft={})),function(e){e.MinTime="minTime",e.MaxTime="maxTime"}(Ut||(Ut={})),function(e){e.MinYear="minYear",e.MaxYear="maxYear"}(qt||(qt={})),function(e){e.MinSelected="minSelected",e.MaxSelected="maxSelected",e.LimitOptions="limitOptions"}(Bt||(Bt={})),function(e){e.FileTypes="fileTypes",e.FileSize="fileSize",e.FileCount="fileCount"}(Ht||(Ht={}));const Gt={[jt.MaxLength]:jt.MinLength,[jt.NotIncludes]:jt.Includes,[kt.Max]:kt.Min,[qt.MaxYear]:qt.MinYear,[Ft.MaxDate]:Ft.MinDate,[Ut.MaxTime]:Ut.MinTime,[Bt.MaxSelected]:Bt.MinSelected};var Wt,Vt,Yt,zt,Kt;!function(e){e.Sum="sum",e.Min="min",e.Max="max",e.Avg="avg",e.Median="median",e.StandardDeviation="std_dev",e.Range="range"}(Wt||(Wt={})),function(e){e.Count="count",e.CountEmpty="count_empty",e.CountFilled="count_filled",e.CountUnique="count_unique",e.PercentEmpty="percent_empty",e.PercentFilled="percent_filled",e.PercentUnique="percent_unique",e.None="none"}(Vt||(Vt={})),function(e){e.AttachmentSize="attachment_size"}(Yt||(Yt={})),function(e){e.Checked="checked",e.Unchecked="unchecked",e.PercentChecked="percent_checked",e.PercentUnchecked="percent_unchecked"}(zt||(zt={})),function(e){e.EarliestDate="earliest_date",e.LatestDate="latest_date",e.DateRange="date_range",e.MonthRange="month_range"}(Kt||(Kt={}));const Zt=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Vt),Wt),Yt),zt),Kt),Jt=(e,t)=>{let n=[];if(e===Ge.Formula&&(null==t?void 0:t.dataType))switch(t.dataType){case ue.BOOLEAN:n=[...Object.values(zt),Vt.None];break;case ue.DATE:n=[...Object.values(Kt),...Object.values(Vt)];break;case ue.NUMERIC:n=[...Object.values(Wt),...Object.values(Vt)];break;default:n=[...Object.values(Vt)]}switch(e){case Ge.Number:case Ge.Decimal:case Ge.Currency:case Ge.Percent:case Ge.Duration:case Ge.Rating:case Ge.Rollup:case Ge.Links:n=[...Object.values(Wt),...Object.values(Vt)];break;case Ge.Attachment:n=[...Object.values(Yt),...Object.values(Vt)];break;case Ge.Checkbox:n=[...Object.values(zt),Vt.None];break;case Ge.Date:case Ge.DateTime:case Ge.LastModifiedTime:case Ge.CreatedTime:n=[...Object.values(Kt),...Object.values(Vt)];break;case Ge.SpecificDBType:case Ge.ForeignKey:n=[Vt.None]}return n.length||(n=[...Object.values(Vt)]),n.filter((e=>e!==Vt.Count))},Qt=(e,t,n)=>{if("ssl"in e&&e.ssl){if(t===ht.No||"object"==typeof e.ssl&&Object.values(e.ssl).every((e=>null==e)))return;if("pg"===n&&["true","false"].includes(e.ssl))return"true"===e.ssl;if("pg"===n&&!["boolean","object"].includes(typeof e.ssl))return;return e.ssl}};var Xt,en,tn,nn;!function(e){e.Avg="avg",e.Max="max",e.Min="min",e.Count="count",e.Sum="sum"}(Xt||(Xt={})),function(e){e.INTERNAL="internal",e.EXTERNAL="external",e.SQL="sql",e.STATIC_CONTENT="static_content"}(en||(en={})),function(e){e.OPEN_EXTERNAL_URL="open_external_url",e.DELETE_RECORD="delete_record",e.UPDATE_RECORD="update_record",e.OPEN_LAYOUT="open_layout"}(tn||(tn={})),function(e){e.HEADING1="heading1",e.HEADING2="heading2",e.HEADING3="heading3",e.SUB_HEADING_1="subHeading1",e.SUB_HEADING_2="subHeading2",e.BODY="body",e.CAPTION="caption"}(nn||(nn={}));const an=[o.LineChart,o.BarChart,o.PieChart,o.ScatterPlot],rn={[jt.MinLength]:"Minimum characters",[jt.MaxLength]:"Maximum characters",[jt.StartsWith]:"Starts with",[jt.EndsWith]:"Ends with",[jt.Includes]:"Contains string",[jt.NotIncludes]:"Doesn't contain string",[jt.Regex]:"Regular expression",[jt.Email]:"Email"},sn={[Bt.MinSelected]:"number",[Bt.MaxSelected]:"number",[Ht.FileSize]:"number",[Ht.FileCount]:"number",[jt.MinLength]:"number",[jt.MaxLength]:"number",[jt.StartsWith]:"text",[jt.EndsWith]:"text",[jt.Includes]:"text",[jt.NotIncludes]:"text",[jt.Regex]:"text",[Ht.FileTypes]:"text",[jt.Email]:"email",[kt.Min]:"number",[kt.Max]:"number",[Ft.MinDate]:"date",[Ft.MaxDate]:"date",[Ut.MinTime]:"time",[Ut.MaxTime]:"time",[qt.MinYear]:"year",[qt.MaxYear]:"year"}},3563:e=>{"use strict";e.exports=__webpack_require__(58602)},8938:e=>{"use strict";e.exports=__webpack_require__(9426)},6986:e=>{"use strict";e.exports=__webpack_require__(48844)},3672:e=>{"use strict";e.exports=__webpack_require__(5157)},2103:e=>{"use strict";e.exports=__webpack_require__(27594)},263:e=>{"use strict";e.exports=__webpack_require__(64935)},5833:e=>{"use strict";e.exports=__webpack_require__(44511)},8872:e=>{"use strict";e.exports=__webpack_require__(12097)},9731:e=>{"use strict";e.exports=__webpack_require__(54181)},4688:e=>{"use strict";e.exports=__webpack_require__(98843)},1832:e=>{"use strict";e.exports=__webpack_require__(31832)},133:e=>{"use strict";e.exports=__webpack_require__(828)},5119:e=>{"use strict";e.exports=__webpack_require__(18550)},943:e=>{"use strict";e.exports=__webpack_require__(12046)},9020:e=>{"use strict";e.exports=__webpack_require__(95977)},2745:e=>{"use strict";e.exports=__webpack_require__(81809)},6331:e=>{"use strict";e.exports=__webpack_require__(39001)},4587:e=>{"use strict";e.exports=__webpack_require__(54587)},5317:e=>{"use strict";e.exports=__webpack_require__(35317)},6982:e=>{"use strict";e.exports=__webpack_require__(76982)},9896:e=>{"use strict";e.exports=__webpack_require__(79896)},857:e=>{"use strict";e.exports=__webpack_require__(70857)},6928:e=>{"use strict";e.exports=__webpack_require__(16928)},7016:e=>{"use strict";e.exports=__webpack_require__(87016)},9023:e=>{"use strict";e.exports=__webpack_require__(39023)}},__webpack_module_cache__={};function __nested_webpack_require_468742__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__nested_webpack_require_468742__),n.exports}__nested_webpack_require_468742__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __nested_webpack_require_468742__.d(t,{a:t}),t},__nested_webpack_require_468742__.d=(e,t)=>{for(var n in t)__nested_webpack_require_468742__.o(t,n)&&!__nested_webpack_require_468742__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__nested_webpack_require_468742__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__nested_webpack_require_468742__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __nested_webpack_exports__=__nested_webpack_require_468742__(1990);return __nested_webpack_exports__})(),module.exports=t()},44922:e=>{"use strict";e.exports=require("class-transformer")},6858:e=>{"use strict";e.exports=require("commander")},77679:e=>{"use strict";e.exports=require("figlet")},31832:e=>{"use strict";e.exports=require("knex")},54587:e=>{"use strict";e.exports=require("parse-database-url")},42613:e=>{"use strict";e.exports=require("assert")},35317:e=>{"use strict";e.exports=require("child_process")},49140:e=>{"use strict";e.exports=require("constants")},76982:e=>{"use strict";e.exports=require("crypto")},24434:e=>{"use strict";e.exports=require("events")},79896:e=>{"use strict";e.exports=require("fs")},58611:e=>{"use strict";e.exports=require("http")},65692:e=>{"use strict";e.exports=require("https")},70857:e=>{"use strict";e.exports=require("os")},16928:e=>{"use strict";e.exports=require("path")},2203:e=>{"use strict";e.exports=require("stream")},52018:e=>{"use strict";e.exports=require("tty")},87016:e=>{"use strict";e.exports=require("url")},39023:e=>{"use strict";e.exports=require("util")},43106:e=>{"use strict";e.exports=require("zlib")},9426:(e,t,n)=>{"use strict";const a=n(78455),r=n(87016),i=n(96350),s=n(58611),o=n(65692),c=n(39023),u=n(1404),l=n(43106),d=n(2203),p=n(24434);function f(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}const m=f(a),h=f(r),b=f(s),g=f(o),v=f(c),y=f(u),_=f(l),E=f(d);function x(e,t){return function(){return e.apply(t,arguments)}}const{toString:T}=Object.prototype,{getPrototypeOf:O}=Object,$=(A=Object.create(null),e=>{const t=T.call(e);return A[t]||(A[t]=t.slice(8,-1).toLowerCase())});var A;const S=e=>(e=e.toLowerCase(),t=>$(t)===e),D=e=>t=>typeof t===e,{isArray:w}=Array,C=D("undefined");const R=S("ArrayBuffer");const N=D("string"),I=D("function"),M=D("number"),P=e=>null!==e&&"object"==typeof e,L=e=>{if("object"!==$(e))return!1;const t=O(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},j=S("Date"),k=S("File"),F=S("Blob"),U=S("FileList"),q=S("URLSearchParams");function B(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let a,r;if("object"!=typeof e&&(e=[e]),w(e))for(a=0,r=e.length;a<r;a++)t.call(null,e[a],a,e);else{const r=n?Object.getOwnPropertyNames(e):Object.keys(e),i=r.length;let s;for(a=0;a<i;a++)s=r[a],t.call(null,e[s],s,e)}}function H(e,t){t=t.toLowerCase();const n=Object.keys(e);let a,r=n.length;for(;r-- >0;)if(a=n[r],t===a.toLowerCase())return a;return null}const G="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,W=e=>!C(e)&&e!==G;const V=(Y="undefined"!=typeof Uint8Array&&O(Uint8Array),e=>Y&&e instanceof Y);var Y;const z=S("HTMLFormElement"),K=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Z=S("RegExp"),J=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),a={};B(n,((n,r)=>{let i;!1!==(i=t(n,r,e))&&(a[r]=i||n)})),Object.defineProperties(e,a)},Q="abcdefghijklmnopqrstuvwxyz",X="0123456789",ee={DIGIT:X,ALPHA:Q,ALPHA_DIGIT:Q+Q.toUpperCase()+X};const te=S("AsyncFunction"),ne={isArray:w,isArrayBuffer:R,isBuffer:function(e){return null!==e&&!C(e)&&null!==e.constructor&&!C(e.constructor)&&I(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||I(e.append)&&("formdata"===(t=$(e))||"object"===t&&I(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&R(e.buffer),t},isString:N,isNumber:M,isBoolean:e=>!0===e||!1===e,isObject:P,isPlainObject:L,isUndefined:C,isDate:j,isFile:k,isBlob:F,isRegExp:Z,isFunction:I,isStream:e=>P(e)&&I(e.pipe),isURLSearchParams:q,isTypedArray:V,isFileList:U,forEach:B,merge:function e(){const{caseless:t}=W(this)&&this||{},n={},a=(a,r)=>{const i=t&&H(n,r)||r;L(n[i])&&L(a)?n[i]=e(n[i],a):L(a)?n[i]=e({},a):w(a)?n[i]=a.slice():n[i]=a};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&B(arguments[e],a);return n},extend:(e,t,n,{allOwnKeys:a}={})=>(B(t,((t,a)=>{n&&I(t)?e[a]=x(t,n):e[a]=t}),{allOwnKeys:a}),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,a)=>{e.prototype=Object.create(t.prototype,a),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,a)=>{let r,i,s;const o={};if(t=t||{},null==e)return t;do{for(r=Object.getOwnPropertyNames(e),i=r.length;i-- >0;)s=r[i],a&&!a(s,e,t)||o[s]||(t[s]=e[s],o[s]=!0);e=!1!==n&&O(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:$,kindOfTest:S,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const a=e.indexOf(t,n);return-1!==a&&a===n},toArray:e=>{if(!e)return null;if(w(e))return e;let t=e.length;if(!M(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=n.next())&&!a.done;){const n=a.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const a=[];for(;null!==(n=e.exec(t));)a.push(n);return a},isHTMLForm:z,hasOwnProperty:K,hasOwnProp:K,reduceDescriptors:J,freezeMethods:e=>{J(e,((t,n)=>{if(I(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const a=e[n];I(a)&&(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={},a=e=>{e.forEach((e=>{n[e]=!0}))};return w(e)?a(e):a(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)=>(e=+e,Number.isFinite(e)?e:t),findKey:H,global:G,isContextDefined:W,ALPHABET:ee,generateString:(e=16,t=ee.ALPHA_DIGIT)=>{let n="";const{length:a}=t;for(;e--;)n+=t[Math.random()*a|0];return n},isSpecCompliantForm:function(e){return!!(e&&I(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,a)=>{if(P(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[a]=e;const r=w(e)?[]:{};return B(e,((e,t)=>{const i=n(e,a+1);!C(i)&&(r[t]=i)})),t[a]=void 0,r}}return e};return n(e,0)},isAsyncFn:te,isThenable:e=>e&&(P(e)||I(e))&&I(e.then)&&I(e.catch)};function ae(e,t,n,a,r){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),a&&(this.request=a),r&&(this.response=r)}ne.inherits(ae,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:ne.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const re=ae.prototype,ie={};function se(e){return ne.isPlainObject(e)||ne.isArray(e)}function oe(e){return ne.endsWith(e,"[]")?e.slice(0,-2):e}function ce(e,t,n){return e?e.concat(t).map((function(e,t){return e=oe(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=>{ie[e]={value:e}})),Object.defineProperties(ae,ie),Object.defineProperty(re,"isAxiosError",{value:!0}),ae.from=(e,t,n,a,r,i)=>{const s=Object.create(re);return ne.toFlatObject(e,s,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),ae.call(s,e.message,t,n,a,r),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const ue=ne.toFlatObject(ne,{},null,(function(e){return/^is[A-Z]/.test(e)}));function le(e,t,n){if(!ne.isObject(e))throw new TypeError("target must be an object");t=t||new(m.default||FormData);const a=(n=ne.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!ne.isUndefined(t[e])}))).metaTokens,r=n.visitor||u,i=n.dots,s=n.indexes,o=(n.Blob||"undefined"!=typeof Blob&&Blob)&&ne.isSpecCompliantForm(t);if(!ne.isFunction(r))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(ne.isDate(e))return e.toISOString();if(!o&&ne.isBlob(e))throw new ae("Blob is not supported. Use a Buffer instead.");return ne.isArrayBuffer(e)||ne.isTypedArray(e)?o&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,r){let o=e;if(e&&!r&&"object"==typeof e)if(ne.endsWith(n,"{}"))n=a?n:n.slice(0,-2),e=JSON.stringify(e);else if(ne.isArray(e)&&function(e){return ne.isArray(e)&&!e.some(se)}(e)||(ne.isFileList(e)||ne.endsWith(n,"[]"))&&(o=ne.toArray(e)))return n=oe(n),o.forEach((function(e,a){!ne.isUndefined(e)&&null!==e&&t.append(!0===s?ce([n],a,i):null===s?n:n+"[]",c(e))})),!1;return!!se(e)||(t.append(ce(r,n,i),c(e)),!1)}const l=[],d=Object.assign(ue,{defaultVisitor:u,convertValue:c,isVisitable:se});if(!ne.isObject(e))throw new TypeError("data must be an object");return function e(n,a){if(!ne.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+a.join("."));l.push(n),ne.forEach(n,(function(n,i){!0===(!(ne.isUndefined(n)||null===n)&&r.call(t,n,ne.isString(i)?i.trim():i,a,d))&&e(n,a?a.concat(i):[i])})),l.pop()}}(e),t}function de(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function pe(e,t){this._pairs=[],e&&le(e,this,t)}const fe=pe.prototype;function me(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function he(e,t,n){if(!t)return e;const a=n&&n.encode||me,r=n&&n.serialize;let i;if(i=r?r(t,n):ne.isURLSearchParams(t)?t.toString():new pe(t,n).toString(a),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}fe.append=function(e,t){this._pairs.push([e,t])},fe.toString=function(e){const t=e?function(t){return e.call(this,t,de)}:de;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const be=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){ne.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},ge={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ve={isNode:!0,classes:{URLSearchParams:h.default.URLSearchParams,FormData:m.default,Blob:"undefined"!=typeof Blob&&Blob||null},protocols:["http","https","file","data"]},ye="undefined"!=typeof window&&"undefined"!=typeof document,_e=(Ee="undefined"!=typeof navigator&&navigator.product,ye&&["ReactNative","NativeScript","NS"].indexOf(Ee)<0);var Ee;const xe="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Te={...Object.freeze({__proto__:null,hasBrowserEnv:ye,hasStandardBrowserWebWorkerEnv:xe,hasStandardBrowserEnv:_e}),...ve};function Oe(e){function t(e,n,a,r){let i=e[r++];if("__proto__"===i)return!0;const s=Number.isFinite(+i),o=r>=e.length;if(i=!i&&ne.isArray(a)?a.length:i,o)return ne.hasOwnProp(a,i)?a[i]=[a[i],n]:a[i]=n,!s;a[i]&&ne.isObject(a[i])||(a[i]=[]);return t(e,n,a[i],r)&&ne.isArray(a[i])&&(a[i]=function(e){const t={},n=Object.keys(e);let a;const r=n.length;let i;for(a=0;a<r;a++)i=n[a],t[i]=e[i];return t}(a[i])),!s}if(ne.isFormData(e)&&ne.isFunction(e.entries)){const n={};return ne.forEachEntry(e,((e,a)=>{t(function(e){return ne.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),a,n,0)})),n}return null}const $e={transitional:ge,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",a=n.indexOf("application/json")>-1,r=ne.isObject(e);r&&ne.isHTMLForm(e)&&(e=new FormData(e));if(ne.isFormData(e))return a?JSON.stringify(Oe(e)):e;if(ne.isArrayBuffer(e)||ne.isBuffer(e)||ne.isStream(e)||ne.isFile(e)||ne.isBlob(e))return e;if(ne.isArrayBufferView(e))return e.buffer;if(ne.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return le(e,new Te.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,a){return Te.isNode&&ne.isBuffer(e)?(this.append(t,e.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=ne.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return le(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return r||a?(t.setContentType("application/json",!1),function(e,t,n){if(ne.isString(e))try{return(t||JSON.parse)(e),ne.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||$e.transitional,n=t&&t.forcedJSONParsing,a="json"===this.responseType;if(e&&ne.isString(e)&&(n&&!this.responseType||a)){const n=!(t&&t.silentJSONParsing)&&a;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw ae.from(e,ae.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:Te.classes.FormData,Blob:Te.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ne.forEach(["delete","get","head","post","put","patch"],(e=>{$e.headers[e]={}}));const Ae=$e,Se=ne.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"]),De=Symbol("internals");function we(e){return e&&String(e).trim().toLowerCase()}function Ce(e){return!1===e||null==e?e:ne.isArray(e)?e.map(Ce):String(e)}function Re(e,t,n,a,r){return ne.isFunction(a)?a.call(this,t,n):(r&&(t=n),ne.isString(t)?ne.isString(a)?-1!==t.indexOf(a):ne.isRegExp(a)?a.test(t):void 0:void 0)}class Ne{constructor(e){e&&this.set(e)}set(e,t,n){const a=this;function r(e,t,n){const r=we(t);if(!r)throw new Error("header name must be a non-empty string");const i=ne.findKey(a,r);(!i||void 0===a[i]||!0===n||void 0===n&&!1!==a[i])&&(a[i||t]=Ce(e))}const i=(e,t)=>ne.forEach(e,((e,n)=>r(e,n,t)));return ne.isPlainObject(e)||e instanceof this.constructor?i(e,t):ne.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?i((e=>{const t={};let n,a,r;return e&&e.split("\n").forEach((function(e){r=e.indexOf(":"),n=e.substring(0,r).trim().toLowerCase(),a=e.substring(r+1).trim(),!n||t[n]&&Se[n]||("set-cookie"===n?t[n]?t[n].push(a):t[n]=[a]:t[n]=t[n]?t[n]+", "+a:a)})),t})(e),t):null!=e&&r(t,e,n),this}get(e,t){if(e=we(e)){const n=ne.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 a;for(;a=n.exec(e);)t[a[1]]=a[2];return t}(e);if(ne.isFunction(t))return t.call(this,e,n);if(ne.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=we(e)){const n=ne.findKey(this,e);return!(!n||void 0===this[n]||t&&!Re(0,this[n],n,t))}return!1}delete(e,t){const n=this;let a=!1;function r(e){if(e=we(e)){const r=ne.findKey(n,e);!r||t&&!Re(0,n[r],r,t)||(delete n[r],a=!0)}}return ne.isArray(e)?e.forEach(r):r(e),a}clear(e){const t=Object.keys(this);let n=t.length,a=!1;for(;n--;){const r=t[n];e&&!Re(0,this[r],r,e,!0)||(delete this[r],a=!0)}return a}normalize(e){const t=this,n={};return ne.forEach(this,((a,r)=>{const i=ne.findKey(n,r);if(i)return t[i]=Ce(a),void delete t[r];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(r):String(r).trim();s!==r&&delete t[r],t[s]=Ce(a),n[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return ne.forEach(this,((n,a)=>{null!=n&&!1!==n&&(t[a]=e&&ne.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")}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[De]=this[De]={accessors:{}}).accessors,n=this.prototype;function a(e){const a=we(e);t[a]||(!function(e,t){const n=ne.toCamelCase(" "+t);["get","set","has"].forEach((a=>{Object.defineProperty(e,a+n,{value:function(e,n,r){return this[a].call(this,t,e,n,r)},configurable:!0})}))}(n,e),t[a]=!0)}return ne.isArray(e)?e.forEach(a):a(e),this}}Ne.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ne.reduceDescriptors(Ne.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),ne.freezeMethods(Ne);const Ie=Ne;function Me(e,t){const n=this||Ae,a=t||n,r=Ie.from(a.headers);let i=a.data;return ne.forEach(e,(function(e){i=e.call(n,i,r.normalize(),t?t.status:void 0)})),r.normalize(),i}function Pe(e){return!(!e||!e.__CANCEL__)}function Le(e,t,n){ae.call(this,null==e?"canceled":e,ae.ERR_CANCELED,t,n),this.name="CanceledError"}function je(e,t,n){const a=n.config.validateStatus;n.status&&a&&!a(n.status)?t(new ae("Request failed with status code "+n.status,[ae.ERR_BAD_REQUEST,ae.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}function ke(e,t){return e&&!function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}ne.inherits(Le,ae,{__CANCEL__:!0});const Fe="1.6.8";function Ue(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}const qe=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;function Be(e,t){e=e||10;const n=new Array(e),a=new Array(e);let r,i=0,s=0;return t=void 0!==t?t:1e3,function(o){const c=Date.now(),u=a[s];r||(r=c),n[i]=o,a[i]=c;let l=s,d=0;for(;l!==i;)d+=n[l++],l%=e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),c-r<t)return;const p=u&&c-u;return p?Math.round(1e3*d/p):void 0}}const He=Symbol("internals");class Ge extends E.default.Transform{constructor(e){super({readableHighWaterMark:(e=ne.toFlatObject(e,{maxRate:0,chunkSize:65536,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,((e,t)=>!ne.isUndefined(t[e])))).chunkSize});const t=this,n=this[He]={length:e.length,timeWindow:e.timeWindow,ticksRate:e.ticksRate,chunkSize:e.chunkSize,maxRate:e.maxRate,minChunkSize:e.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null},a=Be(n.ticksRate*e.samplesCount,n.timeWindow);this.on("newListener",(e=>{"progress"===e&&(n.isCaptured||(n.isCaptured=!0))}));let r=0;n.updateProgress=function(e,t){let n=0;const a=1e3/t;let r=null;return function(t,i){const s=Date.now();if(t||s-n>a)return r&&(clearTimeout(r),r=null),n=s,e.apply(null,i);r||(r=setTimeout((()=>(r=null,n=Date.now(),e.apply(null,i))),a-(s-n)))}}((function(){const e=n.length,i=n.bytesSeen,s=i-r;if(!s||t.destroyed)return;const o=a(s);r=i,process.nextTick((()=>{t.emit("progress",{loaded:i,total:e,progress:e?i/e:void 0,bytes:s,rate:o||void 0,estimated:o&&e&&i<=e?(e-i)/o:void 0})}))}),n.ticksRate);const i=()=>{n.updateProgress(!0)};this.once("end",i),this.once("error",i)}_read(e){const t=this[He];return t.onReadCallback&&t.onReadCallback(),super._read(e)}_transform(e,t,n){const a=this,r=this[He],i=r.maxRate,s=this.readableHighWaterMark,o=r.timeWindow,c=i/(1e3/o),u=!1!==r.minChunkSize?Math.max(r.minChunkSize,.01*c):0;const l=(e,t)=>{const n=Buffer.byteLength(e);let l,d=null,p=s,f=0;if(i){const e=Date.now();(!r.ts||(f=e-r.ts)>=o)&&(r.ts=e,l=c-r.bytes,r.bytes=l<0?-l:0,f=0),l=c-r.bytes}if(i){if(l<=0)return setTimeout((()=>{t(null,e)}),o-f);l<p&&(p=l)}p&&n>p&&n-p>u&&(d=e.subarray(p),e=e.subarray(0,p)),function(e,t){const n=Buffer.byteLength(e);r.bytesSeen+=n,r.bytes+=n,r.isCaptured&&r.updateProgress(),a.push(e)?process.nextTick(t):r.onReadCallback=()=>{r.onReadCallback=null,process.nextTick(t)}}(e,d?()=>{process.nextTick(t,null,d)}:t)};l(e,(function e(t,a){if(t)return n(t);a?l(a,e):n(null)}))}setLength(e){return this[He].length=+e,this}}const We=Ge,{asyncIterator:Ve}=Symbol,Ye=async function*(e){e.stream?yield*e.stream():e.arrayBuffer?yield await e.arrayBuffer():e[Ve]?yield*e[Ve]():yield e},ze=ne.ALPHABET.ALPHA_DIGIT+"-_",Ke=new c.TextEncoder,Ze="\r\n",Je=Ke.encode(Ze);class Qe{constructor(e,t){const{escapeName:n}=this.constructor,a=ne.isString(t);let r=`Content-Disposition: form-data; name="${n(e)}"${!a&&t.name?`; filename="${n(t.name)}"`:""}${Ze}`;a?t=Ke.encode(String(t).replace(/\r?\n|\r\n?/g,Ze)):r+=`Content-Type: ${t.type||"application/octet-stream"}${Ze}`,this.headers=Ke.encode(r+Ze),this.contentLength=a?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;ne.isTypedArray(e)?yield e:yield*Ye(e),yield Je}static escapeName(e){return String(e).replace(/[\r\n"]/g,(e=>({"\r":"%0D","\n":"%0A",'"':"%22"}[e])))}}const Xe=(e,t,n)=>{const{tag:a="form-data-boundary",size:r=25,boundary:i=a+"-"+ne.generateString(r,ze)}=n||{};if(!ne.isFormData(e))throw TypeError("FormData instance required");if(i.length<1||i.length>70)throw Error("boundary must be 10-70 characters long");const s=Ke.encode("--"+i+Ze),o=Ke.encode("--"+i+"--"+Ze+Ze);let c=o.byteLength;const u=Array.from(e.entries()).map((([e,t])=>{const n=new Qe(e,t);return c+=n.size,n}));c+=s.byteLength*u.length,c=ne.toFiniteNumber(c);const l={"Content-Type":`multipart/form-data; boundary=${i}`};return Number.isFinite(c)&&(l["Content-Length"]=c),t&&t(l),d.Readable.from(async function*(){for(const e of u)yield s,yield*e.encode();yield o}())};class et extends E.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 tt=et,nt=(e,t)=>ne.isAsyncFn(e)?function(...n){const a=n.pop();e.apply(this,n).then((e=>{try{t?a(null,...t(e)):a(null,e)}catch(e){a(e)}}),a)}:e,at={flush:_.default.constants.Z_SYNC_FLUSH,finishFlush:_.default.constants.Z_SYNC_FLUSH},rt={flush:_.default.constants.BROTLI_OPERATION_FLUSH,finishFlush:_.default.constants.BROTLI_OPERATION_FLUSH},it=ne.isFunction(_.default.createBrotliDecompress),{http:st,https:ot}=y.default,ct=/https:?/,ut=Te.protocols.map((e=>e+":"));function lt(e,t){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.config&&e.beforeRedirects.config(e,t)}function dt(e,t,n){let a=t;if(!a&&!1!==a){const e=i.getProxyForUrl(n);e&&(a=new URL(e))}if(a){if(a.username&&(a.auth=(a.username||"")+":"+(a.password||"")),a.auth){(a.auth.username||a.auth.password)&&(a.auth=(a.auth.username||"")+":"+(a.auth.password||""));const t=Buffer.from(a.auth,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+t}e.headers.host=e.hostname+(e.port?":"+e.port:"");const t=a.hostname||a.host;e.hostname=t,e.host=t,e.port=a.port,e.path=n,a.protocol&&(e.protocol=a.protocol.includes(":")?a.protocol:`${a.protocol}:`)}e.beforeRedirects.proxy=function(e){dt(e,t,e.href)}}const pt="undefined"!=typeof process&&"process"===ne.kindOf(process),ft=(e,t)=>(({address:e,family:t})=>{if(!ne.isString(e))throw TypeError("address must be a string");return{address:e,family:t||(e.indexOf(".")<0?6:4)}})(ne.isObject(e)?e:{address:e,family:t}),mt=pt&&function(e){return t=async function(t,n,a){let{data:r,lookup:i,family:s}=e;const{responseType:o,responseEncoding:c}=e,u=e.method.toUpperCase();let l,d,f=!1;if(i){const e=nt(i,(e=>ne.isArray(e)?e:[e]));i=(t,n,a)=>{e(t,n,((e,t,r)=>{if(e)return a(e);const i=ne.isArray(t)?t.map((e=>ft(e))):[ft(t,r)];n.all?a(e,i):a(e,i[0].address,i[0].family)}))}}const m=new p.EventEmitter,h=()=>{e.cancelToken&&e.cancelToken.unsubscribe(y),e.signal&&e.signal.removeEventListener("abort",y),m.removeAllListeners()};function y(t){m.emit("abort",!t||t.type?new Le(null,e,d):t)}a(((e,t)=>{l=!0,t&&(f=!0,h())})),m.once("abort",n),(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(y),e.signal&&(e.signal.aborted?y():e.signal.addEventListener("abort",y)));const x=ke(e.baseURL,e.url),T=new URL(x,"http://localhost"),O=T.protocol||ut[0];if("data:"===O){let a;if("GET"!==u)return je(t,n,{status:405,statusText:"method not allowed",headers:{},config:e});try{a=function(e,t,n){const a=n&&n.Blob||Te.classes.Blob,r=Ue(e);if(void 0===t&&a&&(t=!0),"data"===r){e=r.length?e.slice(r.length+1):e;const n=qe.exec(e);if(!n)throw new ae("Invalid URL",ae.ERR_INVALID_URL);const i=n[1],s=n[2],o=n[3],c=Buffer.from(decodeURIComponent(o),s?"base64":"utf8");if(t){if(!a)throw new ae("Blob is not supported",ae.ERR_NOT_SUPPORT);return new a([c],{type:i})}return c}throw new ae("Unsupported protocol "+r,ae.ERR_NOT_SUPPORT)}(e.url,"blob"===o,{Blob:e.env&&e.env.Blob})}catch(t){throw ae.from(t,ae.ERR_BAD_REQUEST,e)}return"text"===o?(a=a.toString(c),c&&"utf8"!==c||(a=ne.stripBOM(a))):"stream"===o&&(a=E.default.Readable.from(a)),je(t,n,{data:a,status:200,statusText:"OK",headers:new Ie,config:e})}if(-1===ut.indexOf(O))return n(new ae("Unsupported protocol "+O,ae.ERR_BAD_REQUEST,e));const $=Ie.from(e.headers).normalize();$.set("User-Agent","axios/"+Fe,!1);const A=e.onDownloadProgress,S=e.onUploadProgress,D=e.maxRate;let w,C;if(ne.isSpecCompliantForm(r)){const e=$.getContentType(/boundary=([-_\w\d]{10,70})/i);r=Xe(r,(e=>{$.set(e)}),{tag:`axios-${Fe}-boundary`,boundary:e&&e[1]||void 0})}else if(ne.isFormData(r)&&ne.isFunction(r.getHeaders)){if($.set(r.getHeaders()),!$.hasContentLength())try{const e=await v.default.promisify(r.getLength).call(r);Number.isFinite(e)&&e>=0&&$.setContentLength(e)}catch(e){}}else if(ne.isBlob(r))r.size&&$.setContentType(r.type||"application/octet-stream"),$.setContentLength(r.size||0),r=E.default.Readable.from(Ye(r));else if(r&&!ne.isStream(r)){if(Buffer.isBuffer(r));else if(ne.isArrayBuffer(r))r=Buffer.from(new Uint8Array(r));else{if(!ne.isString(r))return n(new ae("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",ae.ERR_BAD_REQUEST,e));r=Buffer.from(r,"utf-8")}if($.setContentLength(r.length,!1),e.maxBodyLength>-1&&r.length>e.maxBodyLength)return n(new ae("Request body larger than maxBodyLength limit",ae.ERR_BAD_REQUEST,e))}const R=ne.toFiniteNumber($.getContentLength());let N,I;ne.isArray(D)?(w=D[0],C=D[1]):w=C=D,r&&(S||w)&&(ne.isStream(r)||(r=E.default.Readable.from(r,{objectMode:!1})),r=E.default.pipeline([r,new We({length:R,maxRate:ne.toFiniteNumber(w)})],ne.noop),S&&r.on("progress",(e=>{S(Object.assign(e,{upload:!0}))}))),e.auth&&(N=(e.auth.username||"")+":"+(e.auth.password||"")),!N&&T.username&&(N=T.username+":"+T.password),N&&$.delete("authorization");try{I=he(T.pathname+T.search,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(t){const a=new Error(t.message);return a.config=e,a.url=e.url,a.exists=!0,n(a)}$.set("Accept-Encoding","gzip, compress, deflate"+(it?", br":""),!1);const M={path:I,method:u,headers:$.toJSON(),agents:{http:e.httpAgent,https:e.httpsAgent},auth:N,protocol:O,family:s,beforeRedirect:lt,beforeRedirects:{}};let P;!ne.isUndefined(i)&&(M.lookup=i),e.socketPath?M.socketPath=e.socketPath:(M.hostname=T.hostname,M.port=T.port,dt(M,e.proxy,O+"//"+T.hostname+(T.port?":"+T.port:"")+M.path));const L=ct.test(M.protocol);if(M.agent=L?e.httpsAgent:e.httpAgent,e.transport?P=e.transport:0===e.maxRedirects?P=L?g.default:b.default:(e.maxRedirects&&(M.maxRedirects=e.maxRedirects),e.beforeRedirect&&(M.beforeRedirects.config=e.beforeRedirect),P=L?ot:st),e.maxBodyLength>-1?M.maxBodyLength=e.maxBodyLength:M.maxBodyLength=1/0,e.insecureHTTPParser&&(M.insecureHTTPParser=e.insecureHTTPParser),d=P.request(M,(function(a){if(d.destroyed)return;const r=[a],i=+a.headers["content-length"];if(A){const e=new We({length:ne.toFiniteNumber(i),maxRate:ne.toFiniteNumber(C)});A&&e.on("progress",(e=>{A(Object.assign(e,{download:!0}))})),r.push(e)}let s=a;const l=a.req||d;if(!1!==e.decompress&&a.headers["content-encoding"])switch("HEAD"!==u&&204!==a.statusCode||delete a.headers["content-encoding"],(a.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":r.push(_.default.createUnzip(at)),delete a.headers["content-encoding"];break;case"deflate":r.push(new tt),r.push(_.default.createUnzip(at)),delete a.headers["content-encoding"];break;case"br":it&&(r.push(_.default.createBrotliDecompress(rt)),delete a.headers["content-encoding"])}s=r.length>1?E.default.pipeline(r,ne.noop):r[0];const p=E.default.finished(s,(()=>{p(),h()})),b={status:a.statusCode,statusText:a.statusMessage,headers:new Ie(a.headers),config:e,request:l};if("stream"===o)b.data=s,je(t,n,b);else{const a=[];let r=0;s.on("data",(function(t){a.push(t),r+=t.length,e.maxContentLength>-1&&r>e.maxContentLength&&(f=!0,s.destroy(),n(new ae("maxContentLength size of "+e.maxContentLength+" exceeded",ae.ERR_BAD_RESPONSE,e,l)))})),s.on("aborted",(function(){if(f)return;const t=new ae("maxContentLength size of "+e.maxContentLength+" exceeded",ae.ERR_BAD_RESPONSE,e,l);s.destroy(t),n(t)})),s.on("error",(function(t){d.destroyed||n(ae.from(t,null,e,l))})),s.on("end",(function(){try{let e=1===a.length?a[0]:Buffer.concat(a);"arraybuffer"!==o&&(e=e.toString(c),c&&"utf8"!==c||(e=ne.stripBOM(e))),b.data=e}catch(t){return n(ae.from(t,null,e,b.request,b))}je(t,n,b)}))}m.once("abort",(e=>{s.destroyed||(s.emit("error",e),s.destroy())}))})),m.once("abort",(e=>{n(e),d.destroy(e)})),d.on("error",(function(t){n(ae.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 ae("error trying to parse `config.timeout` to int",ae.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 a=e.transitional||ge;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new ae(t,a.clarifyTimeoutError?ae.ETIMEDOUT:ae.ECONNABORTED,e,d)),y()}))}if(ne.isStream(r)){let t=!1,n=!1;r.on("end",(()=>{t=!0})),r.once("error",(e=>{n=!0,d.destroy(e)})),r.on("close",(()=>{t||n||y(new Le("Request stream has been aborted",e,d))})),r.pipe(d)}else d.end(r)},new Promise(((e,n)=>{let a,r;const i=(e,t)=>{r||(r=!0,a&&a(e,t))},s=e=>{i(e,!0),n(e)};t((t=>{i(t),e(t)}),s,(e=>a=e)).catch(s)}));var t},ht=Te.hasStandardBrowserEnv?{write(e,t,n,a,r,i){const s=[e+"="+encodeURIComponent(t)];ne.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),ne.isString(a)&&s.push("path="+a),ne.isString(r)&&s.push("domain="+r),!0===i&&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(){}},bt=Te.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function a(n){let a=n;return e&&(t.setAttribute("href",a),a=t.href),t.setAttribute("href",a),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=a(window.location.href),function(e){const t=ne.isString(e)?a(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function gt(e,t){let n=0;const a=Be(50,250);return r=>{const i=r.loaded,s=r.lengthComputable?r.total:void 0,o=i-n,c=a(o);n=i;const u={loaded:i,total:s,progress:s?i/s:void 0,bytes:o,rate:c||void 0,estimated:c&&s&&i<=s?(s-i)/c:void 0,event:r};u[t?"download":"upload"]=!0,e(u)}}const vt={http:mt,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let a=e.data;const r=Ie.from(e.headers).normalize();let i,s,{responseType:o,withXSRFToken:c}=e;function u(){e.cancelToken&&e.cancelToken.unsubscribe(i),e.signal&&e.signal.removeEventListener("abort",i)}if(ne.isFormData(a))if(Te.hasStandardBrowserEnv||Te.hasStandardBrowserWebWorkerEnv)r.setContentType(!1);else if(!1!==(s=r.getContentType())){const[e,...t]=s?s.split(";").map((e=>e.trim())).filter(Boolean):[];r.setContentType([e||"multipart/form-data",...t].join("; "))}let l=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";r.set("Authorization","Basic "+btoa(t+":"+n))}const d=ke(e.baseURL,e.url);function p(){if(!l)return;const a=Ie.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders());je((function(e){t(e),u()}),(function(e){n(e),u()}),{data:o&&"text"!==o&&"json"!==o?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:a,config:e,request:l}),l=null}if(l.open(e.method.toUpperCase(),he(d,e.params,e.paramsSerializer),!0),l.timeout=e.timeout,"onloadend"in l?l.onloadend=p:l.onreadystatechange=function(){l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))&&setTimeout(p)},l.onabort=function(){l&&(n(new ae("Request aborted",ae.ECONNABORTED,e,l)),l=null)},l.onerror=function(){n(new ae("Network Error",ae.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const a=e.transitional||ge;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new ae(t,a.clarifyTimeoutError?ae.ETIMEDOUT:ae.ECONNABORTED,e,l)),l=null},Te.hasStandardBrowserEnv&&(c&&ne.isFunction(c)&&(c=c(e)),c||!1!==c&&bt(d))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&ht.read(e.xsrfCookieName);t&&r.set(e.xsrfHeaderName,t)}void 0===a&&r.setContentType(null),"setRequestHeader"in l&&ne.forEach(r.toJSON(),(function(e,t){l.setRequestHeader(t,e)})),ne.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),o&&"json"!==o&&(l.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&l.addEventListener("progress",gt(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",gt(e.onUploadProgress)),(e.cancelToken||e.signal)&&(i=t=>{l&&(n(!t||t.type?new Le(null,e,l):t),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(i),e.signal&&(e.signal.aborted?i():e.signal.addEventListener("abort",i)));const f=Ue(d);f&&-1===Te.protocols.indexOf(f)?n(new ae("Unsupported protocol "+f+":",ae.ERR_BAD_REQUEST,e)):l.send(a||null)}))}};ne.forEach(vt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const yt=e=>`- ${e}`,_t=e=>ne.isFunction(e)||null===e||!1===e,Et=e=>{e=ne.isArray(e)?e:[e];const{length:t}=e;let n,a;const r={};for(let i=0;i<t;i++){let t;if(n=e[i],a=n,!_t(n)&&(a=vt[(t=String(n)).toLowerCase()],void 0===a))throw new ae(`Unknown adapter '${t}'`);if(a)break;r[t||"#"+i]=a}if(!a){const e=Object.entries(r).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new ae("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(yt).join("\n"):" "+yt(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return a};function xt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Le(null,e)}function Tt(e){xt(e),e.headers=Ie.from(e.headers),e.data=Me.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Et(e.adapter||Ae.adapter)(e).then((function(t){return xt(e),t.data=Me.call(e,e.transformResponse,t),t.headers=Ie.from(t.headers),t}),(function(t){return Pe(t)||(xt(e),t&&t.response&&(t.response.data=Me.call(e,e.transformResponse,t.response),t.response.headers=Ie.from(t.response.headers))),Promise.reject(t)}))}const Ot=e=>e instanceof Ie?{...e}:e;function $t(e,t){t=t||{};const n={};function a(e,t,n){return ne.isPlainObject(e)&&ne.isPlainObject(t)?ne.merge.call({caseless:n},e,t):ne.isPlainObject(t)?ne.merge({},t):ne.isArray(t)?t.slice():t}function r(e,t,n){return ne.isUndefined(t)?ne.isUndefined(e)?void 0:a(void 0,e,n):a(e,t,n)}function i(e,t){if(!ne.isUndefined(t))return a(void 0,t)}function s(e,t){return ne.isUndefined(t)?ne.isUndefined(e)?void 0:a(void 0,e):a(void 0,t)}function o(n,r,i){return i in t?a(n,r):i in e?a(void 0,n):void 0}const c={url:i,method:i,data:i,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:o,headers:(e,t)=>r(Ot(e),Ot(t),!0)};return ne.forEach(Object.keys(Object.assign({},e,t)),(function(a){const i=c[a]||r,s=i(e[a],t[a],a);ne.isUndefined(s)&&i!==o||(n[a]=s)})),n}const At={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{At[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const St={};At.transitional=function(e,t,n){function a(e,t){return"[Axios v1.6.8] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,r,i)=>{if(!1===e)throw new ae(a(r," has been removed"+(t?" in "+t:"")),ae.ERR_DEPRECATED);return t&&!St[r]&&(St[r]=!0,console.warn(a(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,i)}};const Dt={assertOptions:function(e,t,n){if("object"!=typeof e)throw new ae("options must be an object",ae.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let r=a.length;for(;r-- >0;){const i=a[r],s=t[i];if(s){const t=e[i],n=void 0===t||s(t,i,e);if(!0!==n)throw new ae("option "+i+" must be "+n,ae.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new ae("Unknown option "+i,ae.ERR_BAD_OPTION)}},validators:At},wt=Dt.validators;class Ct{constructor(e){this.defaults=e,this.interceptors={request:new be,response:new be}}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/,""):"";e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=$t(this.defaults,t);const{transitional:n,paramsSerializer:a,headers:r}=t;void 0!==n&&Dt.assertOptions(n,{silentJSONParsing:wt.transitional(wt.boolean),forcedJSONParsing:wt.transitional(wt.boolean),clarifyTimeoutError:wt.transitional(wt.boolean)},!1),null!=a&&(ne.isFunction(a)?t.paramsSerializer={serialize:a}:Dt.assertOptions(a,{encode:wt.function,serialize:wt.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=r&&ne.merge(r.common,r[t.method]);r&&ne.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete r[e]})),t.headers=Ie.concat(i,r);const s=[];let o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&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(!o){const e=[Tt.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,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=0;d<l;){const e=s[d++],t=s[d++];try{p=e(p)}catch(e){t.call(this,e);break}}try{u=Tt.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 he(ke((e=$t(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}ne.forEach(["delete","get","head","options"],(function(e){Ct.prototype[e]=function(t,n){return this.request($t(n||{},{method:e,url:t,data:(n||{}).data}))}})),ne.forEach(["post","put","patch"],(function(e){function t(t){return function(n,a,r){return this.request($t(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:a}))}}Ct.prototype[e]=t(),Ct.prototype[e+"Form"]=t(!0)}));const Rt=Ct;class Nt{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 a=new Promise((e=>{n.subscribe(e),t=e})).then(e);return a.cancel=function(){n.unsubscribe(t)},a},e((function(e,a,r){n.reason||(n.reason=new Le(e,a,r),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)}static source(){let e;return{token:new Nt((function(t){e=t})),cancel:e}}}const It=Nt;const Mt={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(Mt).forEach((([e,t])=>{Mt[t]=e}));const Pt=Mt;const Lt=function e(t){const n=new Rt(t),a=x(Rt.prototype.request,n);return ne.extend(a,Rt.prototype,n,{allOwnKeys:!0}),ne.extend(a,n,null,{allOwnKeys:!0}),a.create=function(n){return e($t(t,n))},a}(Ae);Lt.Axios=Rt,Lt.CanceledError=Le,Lt.CancelToken=It,Lt.isCancel=Pe,Lt.VERSION=Fe,Lt.toFormData=le,Lt.AxiosError=ae,Lt.Cancel=Lt.CanceledError,Lt.all=function(e){return Promise.all(e)},Lt.spread=function(e){return function(t){return e.apply(null,t)}},Lt.isAxiosError=function(e){return ne.isObject(e)&&!0===e.isAxiosError},Lt.mergeConfig=$t,Lt.AxiosHeaders=Ie,Lt.formToJSON=e=>Oe(ne.isHTMLForm(e)?new FormData(e):e),Lt.getAdapter=Et,Lt.HttpStatusCode=Pt,Lt.default=Lt,e.exports=Lt},88295:e=>{"use strict";class t{static get version(){return"1.3.8"}static toString(){return"JavaScript Expression Parser (JSEP) v"+t.version}static addUnaryOp(e){return t.max_unop_len=Math.max(e.length,t.max_unop_len),t.unary_ops[e]=1,t}static addBinaryOp(e,n,a){return t.max_binop_len=Math.max(e.length,t.max_binop_len),t.binary_ops[e]=n,a?t.right_associative.add(e):t.right_associative.delete(e),t}static addIdentifierChar(e){return t.additional_identifier_chars.add(e),t}static addLiteral(e,n){return t.literals[e]=n,t}static removeUnaryOp(e){return delete t.unary_ops[e],e.length===t.max_unop_len&&(t.max_unop_len=t.getMaxKeyLen(t.unary_ops)),t}static removeAllUnaryOps(){return t.unary_ops={},t.max_unop_len=0,t}static removeIdentifierChar(e){return t.additional_identifier_chars.delete(e),t}static removeBinaryOp(e){return delete t.binary_ops[e],e.length===t.max_binop_len&&(t.max_binop_len=t.getMaxKeyLen(t.binary_ops)),t.right_associative.delete(e),t}static removeAllBinaryOps(){return t.binary_ops={},t.max_binop_len=0,t}static removeLiteral(e){return delete t.literals[e],t}static removeAllLiterals(){return t.literals={},t}get char(){return this.expr.charAt(this.index)}get code(){return this.expr.charCodeAt(this.index)}constructor(e){this.expr=e,this.index=0}static parse(e){return new t(e).parse()}static getMaxKeyLen(e){return Math.max(0,...Object.keys(e).map((e=>e.length)))}static isDecimalDigit(e){return e>=48&&e<=57}static binaryPrecedence(e){return t.binary_ops[e]||0}static isIdentifierStart(e){return e>=65&&e<=90||e>=97&&e<=122||e>=128&&!t.binary_ops[String.fromCharCode(e)]||t.additional_identifier_chars.has(String.fromCharCode(e))}static isIdentifierPart(e){return t.isIdentifierStart(e)||t.isDecimalDigit(e)}throwError(e){const t=new Error(e+" at character "+this.index);throw t.index=this.index,t.description=e,t}runHook(e,n){if(t.hooks[e]){const a={context:this,node:n};return t.hooks.run(e,a),a.node}return n}searchHook(e){if(t.hooks[e]){const n={context:this};return t.hooks[e].find((function(e){return e.call(n.context,n),n.node})),n.node}}gobbleSpaces(){let e=this.code;for(;e===t.SPACE_CODE||e===t.TAB_CODE||e===t.LF_CODE||e===t.CR_CODE;)e=this.expr.charCodeAt(++this.index);this.runHook("gobble-spaces")}parse(){this.runHook("before-all");const e=this.gobbleExpressions(),n=1===e.length?e[0]:{type:t.COMPOUND,body:e};return this.runHook("after-all",n)}gobbleExpressions(e){let n,a,r=[];for(;this.index<this.expr.length;)if(n=this.code,n===t.SEMCOL_CODE||n===t.COMMA_CODE)this.index++;else if(a=this.gobbleExpression())r.push(a);else if(this.index<this.expr.length){if(n===e)break;this.throwError('Unexpected "'+this.char+'"')}return r}gobbleExpression(){const e=this.searchHook("gobble-expression")||this.gobbleBinaryExpression();return this.gobbleSpaces(),this.runHook("after-expression",e)}gobbleBinaryOp(){this.gobbleSpaces();let e=this.expr.substr(this.index,t.max_binop_len),n=e.length;for(;n>0;){if(t.binary_ops.hasOwnProperty(e)&&(!t.isIdentifierStart(this.code)||this.index+e.length<this.expr.length&&!t.isIdentifierPart(this.expr.charCodeAt(this.index+e.length))))return this.index+=n,e;e=e.substr(0,--n)}return!1}gobbleBinaryExpression(){let e,n,a,r,i,s,o,c,u;if(s=this.gobbleToken(),!s)return s;if(n=this.gobbleBinaryOp(),!n)return s;for(i={value:n,prec:t.binaryPrecedence(n),right_a:t.right_associative.has(n)},o=this.gobbleToken(),o||this.throwError("Expected expression after "+n),r=[s,i,o];n=this.gobbleBinaryOp();){if(a=t.binaryPrecedence(n),0===a){this.index-=n.length;break}i={value:n,prec:a,right_a:t.right_associative.has(n)},u=n;const c=e=>i.right_a&&e.right_a?a>e.prec:a<=e.prec;for(;r.length>2&&c(r[r.length-2]);)o=r.pop(),n=r.pop().value,s=r.pop(),e={type:t.BINARY_EXP,operator:n,left:s,right:o},r.push(e);e=this.gobbleToken(),e||this.throwError("Expected expression after "+u),r.push(i,e)}for(c=r.length-1,e=r[c];c>1;)e={type:t.BINARY_EXP,operator:r[c-1].value,left:r[c-2],right:e},c-=2;return e}gobbleToken(){let e,n,a,r;if(this.gobbleSpaces(),r=this.searchHook("gobble-token"),r)return this.runHook("after-token",r);if(e=this.code,t.isDecimalDigit(e)||e===t.PERIOD_CODE)return this.gobbleNumericLiteral();if(e===t.SQUOTE_CODE||e===t.DQUOTE_CODE)r=this.gobbleStringLiteral();else if(e===t.OBRACK_CODE)r=this.gobbleArray();else{for(n=this.expr.substr(this.index,t.max_unop_len),a=n.length;a>0;){if(t.unary_ops.hasOwnProperty(n)&&(!t.isIdentifierStart(this.code)||this.index+n.length<this.expr.length&&!t.isIdentifierPart(this.expr.charCodeAt(this.index+n.length)))){this.index+=a;const e=this.gobbleToken();return e||this.throwError("missing unaryOp argument"),this.runHook("after-token",{type:t.UNARY_EXP,operator:n,argument:e,prefix:!0})}n=n.substr(0,--a)}t.isIdentifierStart(e)?(r=this.gobbleIdentifier(),t.literals.hasOwnProperty(r.name)?r={type:t.LITERAL,value:t.literals[r.name],raw:r.name}:r.name===t.this_str&&(r={type:t.THIS_EXP})):e===t.OPAREN_CODE&&(r=this.gobbleGroup())}return r?(r=this.gobbleTokenProperty(r),this.runHook("after-token",r)):this.runHook("after-token",!1)}gobbleTokenProperty(e){this.gobbleSpaces();let n=this.code;for(;n===t.PERIOD_CODE||n===t.OBRACK_CODE||n===t.OPAREN_CODE||n===t.QUMARK_CODE;){let a;if(n===t.QUMARK_CODE){if(this.expr.charCodeAt(this.index+1)!==t.PERIOD_CODE)break;a=!0,this.index+=2,this.gobbleSpaces(),n=this.code}this.index++,n===t.OBRACK_CODE?(e={type:t.MEMBER_EXP,computed:!0,object:e,property:this.gobbleExpression()},this.gobbleSpaces(),n=this.code,n!==t.CBRACK_CODE&&this.throwError("Unclosed ["),this.index++):n===t.OPAREN_CODE?e={type:t.CALL_EXP,arguments:this.gobbleArguments(t.CPAREN_CODE),callee:e}:(n===t.PERIOD_CODE||a)&&(a&&this.index--,this.gobbleSpaces(),e={type:t.MEMBER_EXP,computed:!1,object:e,property:this.gobbleIdentifier()}),a&&(e.optional=!0),this.gobbleSpaces(),n=this.code}return e}gobbleNumericLiteral(){let e,n,a="";for(;t.isDecimalDigit(this.code);)a+=this.expr.charAt(this.index++);if(this.code===t.PERIOD_CODE)for(a+=this.expr.charAt(this.index++);t.isDecimalDigit(this.code);)a+=this.expr.charAt(this.index++);if(e=this.char,"e"===e||"E"===e){for(a+=this.expr.charAt(this.index++),e=this.char,"+"!==e&&"-"!==e||(a+=this.expr.charAt(this.index++));t.isDecimalDigit(this.code);)a+=this.expr.charAt(this.index++);t.isDecimalDigit(this.expr.charCodeAt(this.index-1))||this.throwError("Expected exponent ("+a+this.char+")")}return n=this.code,t.isIdentifierStart(n)?this.throwError("Variable names cannot start with a number ("+a+this.char+")"):(n===t.PERIOD_CODE||1===a.length&&a.charCodeAt(0)===t.PERIOD_CODE)&&this.throwError("Unexpected period"),{type:t.LITERAL,value:parseFloat(a),raw:a}}gobbleStringLiteral(){let e="";const n=this.index,a=this.expr.charAt(this.index++);let r=!1;for(;this.index<this.expr.length;){let t=this.expr.charAt(this.index++);if(t===a){r=!0;break}if("\\"===t)switch(t=this.expr.charAt(this.index++),t){case"n":e+="\n";break;case"r":e+="\r";break;case"t":e+="\t";break;case"b":e+="\b";break;case"f":e+="\f";break;case"v":e+="\v";break;default:e+=t}else e+=t}return r||this.throwError('Unclosed quote after "'+e+'"'),{type:t.LITERAL,value:e,raw:this.expr.substring(n,this.index)}}gobbleIdentifier(){let e=this.code,n=this.index;for(t.isIdentifierStart(e)?this.index++:this.throwError("Unexpected "+this.char);this.index<this.expr.length&&(e=this.code,t.isIdentifierPart(e));)this.index++;return{type:t.IDENTIFIER,name:this.expr.slice(n,this.index)}}gobbleArguments(e){const n=[];let a=!1,r=0;for(;this.index<this.expr.length;){this.gobbleSpaces();let i=this.code;if(i===e){a=!0,this.index++,e===t.CPAREN_CODE&&r&&r>=n.length&&this.throwError("Unexpected token "+String.fromCharCode(e));break}if(i===t.COMMA_CODE){if(this.index++,r++,r!==n.length)if(e===t.CPAREN_CODE)this.throwError("Unexpected token ,");else if(e===t.CBRACK_CODE)for(let e=n.length;e<r;e++)n.push(null)}else if(n.length!==r&&0!==r)this.throwError("Expected comma");else{const e=this.gobbleExpression();e&&e.type!==t.COMPOUND||this.throwError("Expected comma"),n.push(e)}}return a||this.throwError("Expected "+String.fromCharCode(e)),n}gobbleGroup(){this.index++;let e=this.gobbleExpressions(t.CPAREN_CODE);if(this.code===t.CPAREN_CODE)return this.index++,1===e.length?e[0]:!!e.length&&{type:t.SEQUENCE_EXP,expressions:e};this.throwError("Unclosed (")}gobbleArray(){return this.index++,{type:t.ARRAY_EXP,elements:this.gobbleArguments(t.CBRACK_CODE)}}}const n=new class{add(e,t,n){if("string"!=typeof arguments[0])for(let e in arguments[0])this.add(e,arguments[0][e],arguments[1]);else(Array.isArray(e)?e:[e]).forEach((function(e){this[e]=this[e]||[],t&&this[e][n?"unshift":"push"](t)}),this)}run(e,t){this[e]=this[e]||[],this[e].forEach((function(e){e.call(t&&t.context?t.context:t,t)}))}};Object.assign(t,{hooks:n,plugins:new class{constructor(e){this.jsep=e,this.registered={}}register(...e){e.forEach((e=>{if("object"!=typeof e||!e.name||!e.init)throw new Error("Invalid JSEP plugin format");this.registered[e.name]||(e.init(this.jsep),this.registered[e.name]=e)}))}}(t),COMPOUND:"Compound",SEQUENCE_EXP:"SequenceExpression",IDENTIFIER:"Identifier",MEMBER_EXP:"MemberExpression",LITERAL:"Literal",THIS_EXP:"ThisExpression",CALL_EXP:"CallExpression",UNARY_EXP:"UnaryExpression",BINARY_EXP:"BinaryExpression",ARRAY_EXP:"ArrayExpression",TAB_CODE:9,LF_CODE:10,CR_CODE:13,SPACE_CODE:32,PERIOD_CODE:46,COMMA_CODE:44,SQUOTE_CODE:39,DQUOTE_CODE:34,OPAREN_CODE:40,CPAREN_CODE:41,OBRACK_CODE:91,CBRACK_CODE:93,QUMARK_CODE:63,SEMCOL_CODE:59,COLON_CODE:58,unary_ops:{"-":1,"!":1,"~":1,"+":1},binary_ops:{"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":10,"/":10,"%":10},right_associative:new Set,additional_identifier_chars:new Set(["$","_"]),literals:{true:!0,false:!1,null:null},this_str:"this"}),t.max_unop_len=t.getMaxKeyLen(t.unary_ops),t.max_binop_len=t.getMaxKeyLen(t.binary_ops);const a=e=>new t(e).parse();Object.getOwnPropertyNames(t).forEach((e=>{void 0===a[e]&&"prototype"!==e&&(a[e]=t[e])})),a.Jsep=t;var r={name:"ternary",init(e){e.hooks.add("after-expression",(function(t){if(t.node&&this.code===e.QUMARK_CODE){this.index++;const n=t.node,a=this.gobbleExpression();if(a||this.throwError("Expected expression"),this.gobbleSpaces(),this.code===e.COLON_CODE){this.index++;const r=this.gobbleExpression();if(r||this.throwError("Expected expression"),t.node={type:"ConditionalExpression",test:n,consequent:a,alternate:r},n.operator&&e.binary_ops[n.operator]<=.9){let a=n;for(;a.right.operator&&e.binary_ops[a.right.operator]<=.9;)a=a.right;t.node.test=a.right,a.right=t.node,t.node=n}}else this.throwError("Expected :")}}))}};a.plugins.register(r),e.exports=a},39001:(e,t,n)=>{let a=n(76982),{urlAlphabet:r}=n(25971);let i,s,o=e=>{!i||i.length<e?(i=Buffer.allocUnsafe(128*e),a.randomFillSync(i),s=0):s+e>i.length&&(a.randomFillSync(i),s=0),s+=e},c=e=>(o(e-=0),i.subarray(s-e,s)),u=(e,t,n)=>{let a=(2<<31-Math.clz32(e.length-1|1))-1,r=Math.ceil(1.6*a*t/e.length);return(i=t)=>{let s="";for(;;){let t=n(r),o=r;for(;o--;)if(s+=e[t[o]&a]||"",s.length===i)return s}}};e.exports={nanoid:(e=21)=>{o(e-=0);let t="";for(let n=s-e;n<s;n++)t+=r[63&i[n]];return t},customAlphabet:(e,t=21)=>u(e,t,c),customRandom:u,urlAlphabet:r,random:c}},25971:e=>{e.exports={urlAlphabet:"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"}},9753:()=>{var e;!function(e){!function(t){var n="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){}}(),a=r(e);function r(e,t){return function(n,a){Object.defineProperty(e,n,{configurable:!0,writable:!0,value:a}),t&&t(n,a)}}void 0!==n.Reflect&&(a=r(n.Reflect,a)),function(e,t){var n=Object.prototype.hasOwnProperty,a="function"==typeof Symbol,r=a&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=a&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",s="function"==typeof Object.create,o={__proto__:[]}instanceof Array,c=!s&&!o,u={create:s?function(){return de(Object.create(null))}:o?function(){return de({__proto__:null})}:function(){return de({})},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:ce(),p="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:ue(),f="function"==typeof WeakMap?WeakMap:le(),m=a?Symbol.for("@reflect-metadata:registry"):void 0,h=re(),b=ie(h);function g(e,t,n,a){if(j(n)){if(!V(e))throw new TypeError;if(!z(t))throw new TypeError;return S(e,t)}if(!V(e))throw new TypeError;if(!U(t))throw new TypeError;if(!U(a)&&!j(a)&&!k(a))throw new TypeError;return k(a)&&(a=void 0),D(e,t,n=W(n),a)}function v(e,t){function n(n,a){if(!U(n))throw new TypeError;if(!j(a)&&!K(a))throw new TypeError;I(e,t,n,a)}return n}function y(e,t,n,a){if(!U(n))throw new TypeError;return j(a)||(a=W(a)),I(e,t,n,a)}function _(e,t,n){if(!U(t))throw new TypeError;return j(n)||(n=W(n)),w(e,t,n)}function E(e,t,n){if(!U(t))throw new TypeError;return j(n)||(n=W(n)),C(e,t,n)}function x(e,t,n){if(!U(t))throw new TypeError;return j(n)||(n=W(n)),R(e,t,n)}function T(e,t,n){if(!U(t))throw new TypeError;return j(n)||(n=W(n)),N(e,t,n)}function O(e,t){if(!U(e))throw new TypeError;return j(t)||(t=W(t)),M(e,t)}function $(e,t){if(!U(e))throw new TypeError;return j(t)||(t=W(t)),P(e,t)}function A(e,t,n){if(!U(t))throw new TypeError;if(j(n)||(n=W(n)),!U(t))throw new TypeError;j(n)||(n=W(n));var a=oe(t,n,!1);return!j(a)&&a.OrdinaryDeleteMetadata(e,t,n)}function S(e,t){for(var n=e.length-1;n>=0;--n){var a=(0,e[n])(t);if(!j(a)&&!k(a)){if(!z(a))throw new TypeError;t=a}}return t}function D(e,t,n,a){for(var r=e.length-1;r>=0;--r){var i=(0,e[r])(t,n,a);if(!j(i)&&!k(i)){if(!U(i))throw new TypeError;a=i}}return a}function w(e,t,n){if(C(e,t,n))return!0;var a=ne(t);return!k(a)&&w(e,a,n)}function C(e,t,n){var a=oe(t,n,!1);return!j(a)&&H(a.OrdinaryHasOwnMetadata(e,t,n))}function R(e,t,n){if(C(e,t,n))return N(e,t,n);var a=ne(t);return k(a)?void 0:R(e,a,n)}function N(e,t,n){var a=oe(t,n,!1);if(!j(a))return a.OrdinaryGetOwnMetadata(e,t,n)}function I(e,t,n,a){oe(n,a,!0).OrdinaryDefineOwnMetadata(e,t,n,a)}function M(e,t){var n=P(e,t),a=ne(e);if(null===a)return n;var r=M(a,t);if(r.length<=0)return n;if(n.length<=0)return r;for(var i=new p,s=[],o=0,c=n;o<c.length;o++){var u=c[o];i.has(u)||(i.add(u),s.push(u))}for(var l=0,d=r;l<d.length;l++){u=d[l];i.has(u)||(i.add(u),s.push(u))}return s}function P(e,t){var n=oe(e,t,!1);return n?n.OrdinaryOwnMetadataKeys(e,t):[]}function L(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 j(e){return void 0===e}function k(e){return null===e}function F(e){return"symbol"==typeof e}function U(e){return"object"==typeof e?null!==e:"function"==typeof e}function q(e,t){switch(L(e)){case 0:case 1:case 2:case 3:case 4:case 5:return e}var n=3===t?"string":5===t?"number":"default",a=J(e,r);if(void 0!==a){var i=a.call(e,n);if(U(i))throw new TypeError;return i}return B(e,"default"===n?"number":n)}function B(e,t){if("string"===t){var n=e.toString;if(Y(n))if(!U(r=n.call(e)))return r;if(Y(a=e.valueOf))if(!U(r=a.call(e)))return r}else{var a;if(Y(a=e.valueOf))if(!U(r=a.call(e)))return r;var r,i=e.toString;if(Y(i))if(!U(r=i.call(e)))return r}throw new TypeError}function H(e){return!!e}function G(e){return""+e}function W(e){var t=q(e,3);return F(t)?t:G(t)}function V(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:"[object Array]"===Object.prototype.toString.call(e)}function Y(e){return"function"==typeof e}function z(e){return"function"==typeof e}function K(e){switch(L(e)){case 3:case 4:return!0;default:return!1}}function Z(e,t){return e===t||e!=e&&t!=t}function J(e,t){var n=e[t];if(null!=n){if(!Y(n))throw new TypeError;return n}}function Q(e){var t=J(e,i);if(!Y(t))throw new TypeError;var n=t.call(e);if(!U(n))throw new TypeError;return n}function X(e){return e.value}function ee(e){var t=e.next();return!t.done&&t}function te(e){var t=e.return;t&&t.call(e)}function ne(e){var t=Object.getPrototypeOf(e);if("function"!=typeof e||e===l)return t;if(t!==l)return t;var n=e.prototype,a=n&&Object.getPrototypeOf(n);if(null==a||a===Object.prototype)return t;var r=a.constructor;return"function"!=typeof r||r===e?t:r}function ae(){var e,n,a,r;j(m)||void 0===t.Reflect||m in t.Reflect||"function"!=typeof t.Reflect.defineMetadata||(e=se(t.Reflect));var i=new f,s={registerProvider:o,getProvider:u,setProvider:h};return s;function o(t){if(!Object.isExtensible(s))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case e===t:break;case j(n):n=t;break;case n===t:break;case j(a):a=t;break;case a===t:break;default:void 0===r&&(r=new p),r.add(t)}}function c(t,i){if(!j(n)){if(n.isProviderFor(t,i))return n;if(!j(a)){if(a.isProviderFor(t,i))return n;if(!j(r))for(var s=Q(r);;){var o=ee(s);if(!o)return;var c=X(o);if(c.isProviderFor(t,i))return te(s),c}}}if(!j(e)&&e.isProviderFor(t,i))return e}function u(e,t){var n,a=i.get(e);return j(a)||(n=a.get(t)),j(n)?(j(n=c(e,t))||(j(a)&&(a=new d,i.set(e,a)),a.set(t,n)),n):n}function l(e){if(j(e))throw new TypeError;return n===e||a===e||!j(r)&&r.has(e)}function h(e,t,n){if(!l(n))throw new Error("Metadata provider not registered.");var a=u(e,t);if(a!==n){if(!j(a))return!1;var r=i.get(e);j(r)&&(r=new d,i.set(e,r)),r.set(t,n)}return!0}}function re(){var e;return!j(m)&&U(t.Reflect)&&Object.isExtensible(t.Reflect)&&(e=t.Reflect[m]),j(e)&&(e=ae()),!j(m)&&U(t.Reflect)&&Object.isExtensible(t.Reflect)&&Object.defineProperty(t.Reflect,m,{enumerable:!1,configurable:!1,writable:!1,value:e}),e}function ie(e){var t=new f,n={isProviderFor:function(e,n){var a=t.get(e);return!j(a)&&a.has(n)},OrdinaryDefineOwnMetadata:s,OrdinaryHasOwnMetadata:r,OrdinaryGetOwnMetadata:i,OrdinaryOwnMetadataKeys:o,OrdinaryDeleteMetadata:c};return h.registerProvider(n),n;function a(a,r,i){var s=t.get(a),o=!1;if(j(s)){if(!i)return;s=new d,t.set(a,s),o=!0}var c=s.get(r);if(j(c)){if(!i)return;if(c=new d,s.set(r,c),!e.setProvider(a,r,n))throw s.delete(r),o&&t.delete(a),new Error("Wrong provider for target.")}return c}function r(e,t,n){var r=a(t,n,!1);return!j(r)&&H(r.has(e))}function i(e,t,n){var r=a(t,n,!1);if(!j(r))return r.get(e)}function s(e,t,n,r){a(n,r,!0).set(e,t)}function o(e,t){var n=[],r=a(e,t,!1);if(j(r))return n;for(var i=Q(r.keys()),s=0;;){var o=ee(i);if(!o)return n.length=s,n;var c=X(o);try{n[s]=c}catch(e){try{te(i)}finally{throw e}}s++}}function c(e,n,r){var i=a(n,r,!1);if(j(i))return!1;if(!i.delete(e))return!1;if(0===i.size){var s=t.get(n);j(s)||(s.delete(r),0===s.size&&t.delete(s))}return!0}}function se(e){var t=e.defineMetadata,n=e.hasOwnMetadata,a=e.getOwnMetadata,r=e.getOwnMetadataKeys,i=e.deleteMetadata,s=new f;return{isProviderFor:function(e,t){var n=s.get(e);return j(n)?!!r(e,t).length&&(j(n)&&(n=new p,s.set(e,n)),n.add(t),!0):n.has(t)},OrdinaryDefineOwnMetadata:t,OrdinaryHasOwnMetadata:n,OrdinaryGetOwnMetadata:a,OrdinaryOwnMetadataKeys:r,OrdinaryDeleteMetadata:i}}function oe(e,t,n){var a=h.getProvider(e,t);if(!j(a))return a;if(n){if(h.setProvider(e,t,b))return b;throw new Error("Illegal state.")}}function ce(){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[i]=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 a=this._keys.length,r=n+1;r<a;r++)this._keys[r-1]=this._keys[r],this._values[r-1]=this._values[r];return this._keys.length--,this._values.length--,Z(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,a)},t.prototype.values=function(){return new n(this._keys,this._values,r)},t.prototype.entries=function(){return new n(this._keys,this._values,s)},t.prototype["@@iterator"]=function(){return this.entries()},t.prototype[i]=function(){return this.entries()},t.prototype._find=function(e,t){if(!Z(this._cacheKey,e)){this._cacheIndex=-1;for(var n=0;n<this._keys.length;n++)if(Z(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 a(e,t){return e}function r(e,t){return t}function s(e,t){return[e,t]}}function ue(){return function(){function e(){this._map=new d}return Object.defineProperty(e.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.keys()},e.prototype.entries=function(){return this._map.entries()},e.prototype["@@iterator"]=function(){return this.keys()},e.prototype[i]=function(){return this.keys()},e}()}function le(){var e=16,t=u.create(),a=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 e;do{e="@@WeakMap@@"+c()}while(u.has(t,e));return t[e]=!0,e}function i(e,t){if(!n.call(e,a)){if(!t)return;Object.defineProperty(e,a,{value:u.create()})}return e[a]}function s(e,t){for(var n=0;n<t;++n)e[n]=255*Math.random()|0;return e}function o(e){return"function"==typeof Uint8Array?"undefined"!=typeof crypto?crypto.getRandomValues(new Uint8Array(e)):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(new Uint8Array(e)):s(new Uint8Array(e),e):s(new Array(e),e)}function c(){var t=o(e);t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var n="",a=0;a<e;++a){var r=t[a];4!==a&&6!==a&&8!==a||(n+="-"),r<16&&(n+="0"),n+=r.toString(16).toLowerCase()}return n}}function de(e){return e.__=void 0,delete e.__,e}e("decorate",g),e("metadata",v),e("defineMetadata",y),e("hasMetadata",_),e("hasOwnMetadata",E),e("getMetadata",x),e("getOwnMetadata",T),e("getMetadataKeys",O),e("getOwnMetadataKeys",$),e("deleteMetadata",A)}(a,n),void 0===n.Reflect&&(n.Reflect=e)}()}(e||(e={}))},92443:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__addDisposableResource:()=>M,__assign:()=>i,__asyncDelegator:()=>$,__asyncGenerator:()=>O,__asyncValues:()=>A,__await:()=>T,__awaiter:()=>m,__classPrivateFieldGet:()=>R,__classPrivateFieldIn:()=>I,__classPrivateFieldSet:()=>N,__createBinding:()=>b,__decorate:()=>o,__disposeResources:()=>L,__esDecorate:()=>u,__exportStar:()=>g,__extends:()=>r,__generator:()=>h,__importDefault:()=>C,__importStar:()=>w,__makeTemplateObject:()=>S,__metadata:()=>f,__param:()=>c,__propKey:()=>d,__read:()=>y,__rest:()=>s,__runInitializers:()=>l,__setFunctionName:()=>p,__spread:()=>_,__spreadArray:()=>x,__spreadArrays:()=>E,__values:()=>v,default:()=>j});var a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},a(e,t)};function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};function s(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n}function o(e,t,n,a){var r,i=arguments.length,s=i<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,n):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,a);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}function c(e,t){return function(n,a){t(n,a,e)}}function u(e,t,n,a,r,i){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,c=a.kind,u="getter"===c?"get":"setter"===c?"set":"value",l=!t&&e?a.static?e:e.prototype:null,d=t||(l?Object.getOwnPropertyDescriptor(l,a.name):{}),p=!1,f=n.length-1;f>=0;f--){var m={};for(var h in a)m[h]="access"===h?{}:a[h];for(var h in a.access)m.access[h]=a.access[h];m.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");i.push(s(e||null))};var b=(0,n[f])("accessor"===c?{get:d.get,set:d.set}:d[u],m);if("accessor"===c){if(void 0===b)continue;if(null===b||"object"!=typeof b)throw new TypeError("Object expected");(o=s(b.get))&&(d.get=o),(o=s(b.set))&&(d.set=o),(o=s(b.init))&&r.unshift(o)}else(o=s(b))&&("field"===c?r.unshift(o):d[u]=o)}l&&Object.defineProperty(l,a.name,d),p=!0}function l(e,t,n){for(var a=arguments.length>2,r=0;r<t.length;r++)n=a?t[r].call(e,n):t[r].call(e);return a?n:void 0}function d(e){return"symbol"==typeof e?e:"".concat(e)}function p(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function f(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function m(e,t,n,a){return new(n||(n=Promise))((function(r,i){function s(e){try{c(a.next(e))}catch(e){i(e)}}function o(e){try{c(a.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}c((a=a.apply(e,t||[])).next())}))}function h(e,t){var n,a,r,i,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function o(o){return function(c){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,o[0]&&(s=0)),s;)try{if(n=1,a&&(r=2&o[0]?a.return:o[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,o[1])).done)return r;switch(a=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,a=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=s.trys,(r=r.length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],a=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,c])}}}var b=Object.create?function(e,t,n,a){void 0===a&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]};function g(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||b(t,e,n)}function v(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],a=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function y(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s}function _(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(y(arguments[t]));return e}function E(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var a=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],s=0,o=i.length;s<o;s++,r++)a[r]=i[s];return a}function x(e,t,n){if(n||2===arguments.length)for(var a,r=0,i=t.length;r<i;r++)!a&&r in t||(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function T(e){return this instanceof T?(this.v=e,this):new T(e)}function O(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a,r=n.apply(e,t||[]),i=[];return a={},s("next"),s("throw"),s("return",(function(e){return function(t){return Promise.resolve(t).then(e,u)}})),a[Symbol.asyncIterator]=function(){return this},a;function s(e,t){r[e]&&(a[e]=function(t){return new Promise((function(n,a){i.push([e,t,n,a])>1||o(e,t)}))},t&&(a[e]=t(a[e])))}function o(e,t){try{(n=r[e](t)).value instanceof T?Promise.resolve(n.value.v).then(c,u):l(i[0][2],n)}catch(e){l(i[0][3],e)}var n}function c(e){o("next",e)}function u(e){o("throw",e)}function l(e,t){e(t),i.shift(),i.length&&o(i[0][0],i[0][1])}}function $(e){var t,n;return t={},a("next"),a("throw",(function(e){throw e})),a("return"),t[Symbol.iterator]=function(){return this},t;function a(a,r){t[a]=e[a]?function(t){return(n=!n)?{value:T(e[a](t)),done:!1}:r?r(t):t}:r}}function A(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=v(e),t={},a("next"),a("throw"),a("return"),t[Symbol.asyncIterator]=function(){return this},t);function a(n){t[n]=e[n]&&function(t){return new Promise((function(a,r){(function(e,t,n,a){Promise.resolve(a).then((function(t){e({value:t,done:n})}),t)})(a,r,(t=e[n](t)).done,t.value)}))}}}function S(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var D=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function w(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)&&b(t,e,n);return D(t,e),t}function C(e){return e&&e.__esModule?e:{default:e}}function R(e,t,n,a){if("a"===n&&!a)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!a:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?a:"a"===n?a.call(e):a?a.value:t.get(e)}function N(e,t,n,a,r){if("m"===a)throw new TypeError("Private method is not writable");if("a"===a&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===a?r.call(e,n):r?r.value=n:t.set(e,n),n}function I(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function M(e,t,n){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var a,r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");a=t[Symbol.asyncDispose]}if(void 0===a){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");a=t[Symbol.dispose],n&&(r=a)}if("function"!=typeof a)throw new TypeError("Object not disposable.");r&&(a=function(){try{r.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:a,async:n})}else n&&e.stack.push({async:!0});return t}var P="function"==typeof SuppressedError?SuppressedError:function(e,t,n){var a=new Error(n);return a.name="SuppressedError",a.error=e,a.suppressed=t,a};function L(e){function t(t){e.error=e.hasError?new P(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}return function n(){for(;e.stack.length;){var a=e.stack.pop();try{var r=a.dispose&&a.dispose.call(a.value);if(a.async)return Promise.resolve(r).then(n,(function(e){return t(e),n()}))}catch(e){t(e)}}if(e.hasError)throw e.error}()}const j={__extends:r,__assign:i,__rest:s,__decorate:o,__param:c,__metadata:f,__awaiter:m,__generator:h,__createBinding:b,__exportStar:g,__values:v,__read:y,__spread:_,__spreadArrays:E,__spreadArray:x,__await:T,__asyncGenerator:O,__asyncDelegator:$,__asyncValues:A,__makeTemplateObject:S,__importStar:w,__importDefault:C,__classPrivateFieldGet:R,__classPrivateFieldSet:N,__classPrivateFieldIn:I,__addDisposableResource:M,__disposeResources:L}},88809:e=>{"use strict";e.exports=JSON.parse('{"single":{"topLeft":"┌","topRight":"┐","bottomRight":"┘","bottomLeft":"└","vertical":"│","horizontal":"─"},"double":{"topLeft":"╔","topRight":"╗","bottomRight":"╝","bottomLeft":"╚","vertical":"║","horizontal":"═"},"round":{"topLeft":"╭","topRight":"╮","bottomRight":"╯","bottomLeft":"╰","vertical":"│","horizontal":"─"},"bold":{"topLeft":"┏","topRight":"┓","bottomRight":"┛","bottomLeft":"┗","vertical":"┃","horizontal":"━"},"singleDouble":{"topLeft":"╓","topRight":"╖","bottomRight":"╜","bottomLeft":"╙","vertical":"║","horizontal":"─"},"doubleSingle":{"topLeft":"╒","topRight":"╕","bottomRight":"╛","bottomLeft":"╘","vertical":"│","horizontal":"═"},"classic":{"topLeft":"+","topRight":"+","bottomRight":"+","bottomLeft":"+","vertical":"|","horizontal":"-"}}')},22087: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}}')}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.loaded=!0,n.exports}__webpack_require__.amdD=function(){throw new Error("define cannot be used indirect")},__webpack_require__.amdO={},__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var __webpack_exports__=__webpack_require__(65960);return __webpack_exports__})()));