@tachybase/plugin-adapter-bullmq 1.3.24 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/externalVersion.js +2 -2
- package/dist/node_modules/@bull-board/api/package.json +1 -1
- package/dist/node_modules/@bull-board/koa/dist/index.js +1 -1
- package/dist/node_modules/@bull-board/koa/package.json +1 -1
- package/dist/node_modules/bullmq/dist/cjs/classes/queue.js +4 -2
- package/dist/node_modules/bullmq/dist/cjs/classes/scripts.js +3 -3
- package/dist/node_modules/bullmq/dist/cjs/classes/worker.js +8 -9
- package/dist/node_modules/bullmq/dist/cjs/commands/includes/moveJobToWait.lua +15 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/moveJobFromActiveToWait-9.lua +5 -1
- package/dist/node_modules/bullmq/dist/cjs/commands/moveStalledJobsToWait-8.lua +3 -11
- package/dist/node_modules/bullmq/dist/cjs/commands/{moveToWaitingChildren-8.lua → moveToWaitingChildren-7.lua} +29 -40
- package/dist/node_modules/bullmq/dist/cjs/enums/error-code.js +1 -1
- package/dist/node_modules/bullmq/dist/cjs/index.js +1 -1
- package/dist/node_modules/bullmq/dist/cjs/scripts/index.js +1 -1
- package/dist/node_modules/bullmq/dist/cjs/scripts/moveJobFromActiveToWait-9.js +5 -1
- package/dist/node_modules/bullmq/dist/cjs/scripts/moveStalledJobsToWait-8.js +12 -8
- package/dist/node_modules/bullmq/dist/cjs/scripts/moveToWaitingChildren-7.js +107 -0
- package/dist/node_modules/bullmq/dist/cjs/tsconfig-cjs.tsbuildinfo +1 -1
- package/dist/node_modules/bullmq/dist/cjs/version.js +1 -1
- package/dist/node_modules/bullmq/dist/esm/classes/queue.d.ts +1 -1
- package/dist/node_modules/bullmq/dist/esm/classes/queue.js +4 -2
- package/dist/node_modules/bullmq/dist/esm/classes/scripts.js +3 -3
- package/dist/node_modules/bullmq/dist/esm/classes/worker.js +8 -9
- package/dist/node_modules/bullmq/dist/esm/commands/includes/moveJobToWait.lua +15 -0
- package/dist/node_modules/bullmq/dist/esm/commands/moveJobFromActiveToWait-9.lua +5 -1
- package/dist/node_modules/bullmq/dist/esm/commands/moveStalledJobsToWait-8.lua +3 -11
- package/dist/node_modules/bullmq/dist/esm/commands/{moveToWaitingChildren-8.lua → moveToWaitingChildren-7.lua} +29 -40
- package/dist/node_modules/bullmq/dist/esm/enums/error-code.d.ts +1 -1
- package/dist/node_modules/bullmq/dist/esm/enums/error-code.js +1 -1
- package/dist/node_modules/bullmq/dist/esm/scripts/index.d.ts +1 -1
- package/dist/node_modules/bullmq/dist/esm/scripts/index.js +1 -1
- package/dist/node_modules/bullmq/dist/esm/scripts/moveJobFromActiveToWait-9.js +5 -1
- package/dist/node_modules/bullmq/dist/esm/scripts/moveStalledJobsToWait-8.js +12 -8
- package/dist/node_modules/bullmq/dist/esm/scripts/moveToWaitingChildren-7.js +104 -0
- package/dist/node_modules/bullmq/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/dist/node_modules/bullmq/dist/esm/version.d.ts +1 -1
- package/dist/node_modules/bullmq/dist/esm/version.js +1 -1
- package/dist/node_modules/bullmq/package.json +1 -1
- package/package.json +6 -6
- package/dist/node_modules/bullmq/dist/cjs/scripts/moveToWaitingChildren-8.js +0 -529
- package/dist/node_modules/bullmq/dist/esm/scripts/moveToWaitingChildren-8.js +0 -526
- /package/dist/node_modules/bullmq/dist/esm/scripts/{moveToWaitingChildren-8.d.ts → moveToWaitingChildren-7.d.ts} +0 -0
package/dist/externalVersion.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@bull-board/api","version":"6.11.1","description":"A Dashboard server API built on top of bull or bullmq.","keywords":["bull","bullmq","redis","queue","monitoring","dashboard"],"repository":{"type":"git","url":"git+https://github.com/felixmosh/bull-board.git","directory":"packages/api"},"license":"MIT","author":"felixmosh","main":"dist/src/index.js","files":["dist","*Adapter.*"],"scripts":{"build":"tsc","clean":"rm -rf dist","test":"jest"},"dependencies":{"redis-info":"^3.1.0"},"devDependencies":{"@types/redis-info":"^3.0.3","@types/supertest":"^2.0.16","bull":"^4.16.5","bullmq":"^5.53.2","ioredis":"^5.6.1","supertest":"^7.1.1"},"peerDependencies":{"@bull-board/ui":"6.11.1"},"publishConfig":{"access":"public"},"_lastModified":"2025-
|
|
1
|
+
{"name":"@bull-board/api","version":"6.11.1","description":"A Dashboard server API built on top of bull or bullmq.","keywords":["bull","bullmq","redis","queue","monitoring","dashboard"],"repository":{"type":"git","url":"git+https://github.com/felixmosh/bull-board.git","directory":"packages/api"},"license":"MIT","author":"felixmosh","main":"dist/src/index.js","files":["dist","*Adapter.*"],"scripts":{"build":"tsc","clean":"rm -rf dist","test":"jest"},"dependencies":{"redis-info":"^3.1.0"},"devDependencies":{"@types/redis-info":"^3.0.3","@types/supertest":"^2.0.16","bull":"^4.16.5","bullmq":"^5.53.2","ioredis":"^5.6.1","supertest":"^7.1.1"},"peerDependencies":{"@bull-board/ui":"6.11.1"},"publishConfig":{"access":"public"},"_lastModified":"2025-11-10T07:33:09.301Z"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(){var __webpack_modules__={12703:function(e){function webpackEmptyAsyncContext(e){return Promise.resolve().then((function(){var n=new Error("Cannot find module '"+e+"'");n.code="MODULE_NOT_FOUND";throw n}))}webpackEmptyAsyncContext.keys=function(){return[]};webpackEmptyAsyncContext.resolve=webpackEmptyAsyncContext;webpackEmptyAsyncContext.id=12703;e.exports=webpackEmptyAsyncContext},38091:function(e,n,i){(function(n,s){true?e.exports=s(i(43356),i(65579)):0})(this,(function(e,n){"use strict";const i=SegmentObject("",-1,-1,"",null,false);const s=[];function SegmentObject(e,n,i,s,a,o){return{source:e,line:n,column:i,name:s,content:a,ignore:o}}function Source(e,n,i,s,a){return{map:e,sources:n,source:i,content:s,ignore:a}}function MapSource(e,n){return Source(e,n,"",null,false)}function OriginalSource(e,n,i){return Source(null,s,e,n,i)}function traceMappings(s){const a=new n.GenMapping({file:s.map.file});const{sources:o,map:l}=s;const c=l.names;const p=e.decodedMappings(l);for(let e=0;e<p.length;e++){const s=p[e];for(let l=0;l<s.length;l++){const p=s[l];const f=p[0];let d=i;if(p.length!==1){const e=o[p[1]];d=originalPositionFor(e,p[2],p[3],p.length===5?c[p[4]]:"");if(d==null)continue}const{column:h,line:m,name:y,content:g,source:_,ignore:C}=d;n.maybeAddSegment(a,e,f,_,m,h,y);if(_&&g!=null)n.setSourceContent(a,_,g);if(C)n.setIgnore(a,_,true)}}return a}function originalPositionFor(n,s,a,o){if(!n.map){return SegmentObject(n.source,s,a,o,n.content,n.ignore)}const l=e.traceSegment(n.map,s,a);if(l==null)return null;if(l.length===1)return i;return originalPositionFor(n.sources[l[1]],l[2],l[3],l.length===5?n.map.names[l[4]]:o)}function asArray(e){if(Array.isArray(e))return e;return[e]}function buildSourceMapTree(n,i){const s=asArray(n).map((n=>new e.TraceMap(n,"")));const a=s.pop();for(let e=0;e<s.length;e++){if(s[e].sources.length>1){throw new Error(`Transformation map ${e} must have exactly one source file.\n`+"Did you specify these with the most recent transformation maps first?")}}let o=build(a,i,"",0);for(let e=s.length-1;e>=0;e--){o=MapSource(s[e],[o])}return o}function build(n,i,s,a){const{resolvedSources:o,sourcesContent:l,ignoreList:c}=n;const p=a+1;const f=o.map(((n,a)=>{const o={importer:s,depth:p,source:n||"",content:undefined,ignore:undefined};const f=i(o.source,o);const{source:d,content:h,ignore:m}=o;if(f)return build(new e.TraceMap(f,d),i,d,p);const y=h!==undefined?h:l?l[a]:null;const g=m!==undefined?m:c?c.includes(a):false;return OriginalSource(d,y,g)}));return MapSource(n,f)}class SourceMap{constructor(e,i){const s=i.decodedMappings?n.toDecodedMap(e):n.toEncodedMap(e);this.version=s.version;this.file=s.file;this.mappings=s.mappings;this.names=s.names;this.ignoreList=s.ignoreList;this.sourceRoot=s.sourceRoot;this.sources=s.sources;if(!i.excludeContent){this.sourcesContent=s.sourcesContent}}toString(){return JSON.stringify(this)}}function remapping(e,n,i){const s=typeof i==="object"?i:{excludeContent:!!i,decodedMappings:false};const a=buildSourceMapTree(e,n);return new SourceMap(traceMappings(a),s)}return remapping}))},1745:function(e,n,i){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:true});n.KoaAdapter=void 0;const a=s(i(87404));const o=s(i(96638));const l=s(i(88522));const c=i(32500);const p=s(i(98521));const f=s(i(11451));const d=s(i(16928));class KoaAdapter{constructor(){this.basePath="";this.uiConfig={}}setBasePath(e){this.basePath=e;return this}setStaticPath(e,n){this.statics={route:e,path:n};return this}setViewsPath(e){this.viewPath=e;return this}setErrorHandler(e){this.errorHandler=e;return this}setApiRoutes(e){this.apiRoutes=e;return this}setEntryRoute(e){this.entryRoute=e;return this}setQueues(e){this.bullBoardQueues=e;return this}setUIConfig(e={}){this.uiConfig=e;return this}registerPlugin(e={mount:this.basePath}){if(!this.statics){throw new Error(`Please call 'setStaticPath' before using 'registerPlugin'`)}else if(!this.entryRoute){throw new Error(`Please call 'setEntryRoute' before using 'registerPlugin'`)}else if(!this.viewPath){throw new Error(`Please call 'setViewsPath' before using 'registerPlugin'`)}else if(!this.apiRoutes){throw new Error(`Please call 'setApiRoutes' before using 'registerPlugin'`)}else if(!this.bullBoardQueues){throw new Error(`Please call 'setQueues' before using 'registerPlugin'`)}else if(!this.errorHandler){throw new Error(`Please call 'setErrorHandler' before using 'registerPlugin'`)}if(!e.mount){e.mount=this.basePath}const n=new a.default;const i=new l.default({strict:true});n.use((0,c.bodyParser)());n.use((async(e,n)=>{try{await n()}catch(n){if(this.errorHandler){const{status:i,body:s}=this.errorHandler(n);e.status=i||500;e.body=s;e.app.emit("error",n,e)}}}));n.use((0,f.default)(this.viewPath,{extension:d.default.extname(this.entryRoute.handler({basePath:this.basePath,uiConfig:this.uiConfig}).name).substring(1)}));const{method:s,route:h,handler:m}=this.entryRoute;const y=Array.isArray(h)?h:[h];y.forEach((e=>{i[s](e,(async e=>{const{name:n,params:i}=m({basePath:this.basePath,uiConfig:this.uiConfig});await e.render(n,i)}))}));n.use((0,o.default)(this.statics.route,(0,p.default)(this.statics.path)));this.apiRoutes.forEach((e=>{const n=Array.isArray(e.method)?e.method:[e.method];n.forEach((n=>{i[n](e.route,(async n=>{const i=await e.handler({queues:this.bullBoardQueues,params:n.params,query:n.query,body:n.request.body});n.status=i.status||200;return n.body=i.body}))}))}));n.use(i.routes()).use(i.allowedMethods());return(0,o.default)(e.mount||"/",n)}}n.KoaAdapter=KoaAdapter},59327:function(e,n){"use strict";const i={suspectRx:/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*\:/};n.parse=function(e,...s){const a=typeof s[0]==="object"&&s[0];const o=s.length>1||!a?s[0]:undefined;const l=s.length>1&&s[1]||a||{};const c=JSON.parse(e,o);if(l.protoAction==="ignore"){return c}if(!c||typeof c!=="object"){return c}if(!e.match(i.suspectRx)){return c}n.scan(c,l);return c};n.scan=function(e,n={}){let i=[e];while(i.length){const e=i;i=[];for(const s of e){if(Object.prototype.hasOwnProperty.call(s,"__proto__")){if(n.protoAction!=="remove"){throw new SyntaxError("Object contains forbidden prototype property")}delete s.__proto__}for(const e in s){const n=s[e];if(n&&typeof n==="object"){i.push(s[e])}}}}};n.safeParse=function(e,i){try{return n.parse(e,i)}catch(e){return null}}},65579:function(e,n,i){e=i.nmd(e);(function(s,a,o,l){true?a(n,e,i(56704),i(43356)):0})(this,(function(e,n,i,s){"use strict";if(!Object.getOwnPropertyDescriptors)Object.getOwnPropertyDescriptors=function(e){return Reflect.ownKeys(e).reduce((function(n,i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(e,i));return n}),{})};"use strict";var a=Object.defineProperty;var o=Object.defineProperties;var l=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyDescriptors;var p=Object.getOwnPropertyNames;var f=Object.getOwnPropertySymbols;var d=Object.prototype.hasOwnProperty;var h=Object.prototype.propertyIsEnumerable;var __defNormalProp=(e,n,i)=>n in e?a(e,n,{enumerable:true,configurable:true,writable:true,value:i}):e[n]=i;var __spreadValues=(e,n)=>{for(var i in n||(n={}))if(d.call(n,i))__defNormalProp(e,i,n[i]);if(f)for(var i of f(n)){if(h.call(n,i))__defNormalProp(e,i,n[i])}return e};var __spreadProps=(e,n)=>o(e,c(n));var __export=(e,n)=>{for(var i in n)a(e,i,{get:n[i],enumerable:true})};var __copyProps=(e,n,i,s)=>{if(n&&typeof n==="object"||typeof n==="function"){for(let o of p(n))if(!d.call(e,o)&&o!==i)a(e,o,{get:()=>n[o],enumerable:!(s=l(n,o))||s.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var m={};__export(m,{GenMapping:()=>B,addMapping:()=>addMapping,addSegment:()=>addSegment,allMappings:()=>allMappings,fromMap:()=>fromMap,maybeAddMapping:()=>maybeAddMapping,maybeAddSegment:()=>maybeAddSegment,setIgnore:()=>setIgnore,setSourceContent:()=>setSourceContent,toDecodedMap:()=>toDecodedMap,toEncodedMap:()=>toEncodedMap});n.exports=__toCommonJS(m);var y=class{constructor(){this._indexes={__proto__:null};this.array=[]}};function cast(e){return e}function get(e,n){return cast(e)._indexes[n]}function put(e,n){const i=get(e,n);if(i!==void 0)return i;const{array:s,_indexes:a}=cast(e);const o=s.push(n);return a[n]=o-1}function remove(e,n){const i=get(e,n);if(i===void 0)return;const{array:s,_indexes:a}=cast(e);for(let e=i+1;e<s.length;e++){const n=s[e];s[e-1]=n;a[n]--}a[n]=void 0;s.pop()}var g=i;var _=s;var C=0;var k=1;var A=2;var I=3;var D=4;var O=-1;var B=class{constructor({file:e,sourceRoot:n}={}){this._names=new y;this._sources=new y;this._sourcesContent=[];this._mappings=[];this.file=e;this.sourceRoot=n;this._ignoreList=new y}};function cast2(e){return e}function addSegment(e,n,i,s,a,o,l,c){return addSegmentInternal(false,e,n,i,s,a,o,l,c)}function addMapping(e,n){return addMappingInternal(false,e,n)}var maybeAddSegment=(e,n,i,s,a,o,l,c)=>addSegmentInternal(true,e,n,i,s,a,o,l,c);var maybeAddMapping=(e,n)=>addMappingInternal(true,e,n);function setSourceContent(e,n,i){const{_sources:s,_sourcesContent:a}=cast2(e);const o=put(s,n);a[o]=i}function setIgnore(e,n,i=true){const{_sources:s,_sourcesContent:a,_ignoreList:o}=cast2(e);const l=put(s,n);if(l===a.length)a[l]=null;if(i)put(o,l);else remove(o,l)}function toDecodedMap(e){const{_mappings:n,_sources:i,_sourcesContent:s,_names:a,_ignoreList:o}=cast2(e);removeEmptyFinalLines(n);return{version:3,file:e.file||void 0,names:a.array,sourceRoot:e.sourceRoot||void 0,sources:i.array,sourcesContent:s,mappings:n,ignoreList:o.array}}function toEncodedMap(e){const n=toDecodedMap(e);return __spreadProps(__spreadValues({},n),{mappings:(0,g.encode)(n.mappings)})}function fromMap(e){const n=new _.TraceMap(e);const i=new B({file:n.file,sourceRoot:n.sourceRoot});putAll(cast2(i)._names,n.names);putAll(cast2(i)._sources,n.sources);cast2(i)._sourcesContent=n.sourcesContent||n.sources.map((()=>null));cast2(i)._mappings=(0,_.decodedMappings)(n);if(n.ignoreList)putAll(cast2(i)._ignoreList,n.ignoreList);return i}function allMappings(e){const n=[];const{_mappings:i,_sources:s,_names:a}=cast2(e);for(let e=0;e<i.length;e++){const o=i[e];for(let i=0;i<o.length;i++){const l=o[i];const c={line:e+1,column:l[C]};let p=void 0;let f=void 0;let d=void 0;if(l.length!==1){p=s.array[l[k]];f={line:l[A]+1,column:l[I]};if(l.length===5)d=a.array[l[D]]}n.push({generated:c,source:p,original:f,name:d})}}return n}function addSegmentInternal(e,n,i,s,a,o,l,c,p){const{_mappings:f,_sources:d,_sourcesContent:h,_names:m}=cast2(n);const y=getIndex(f,i);const g=getColumnIndex(y,s);if(!a){if(e&&skipSourceless(y,g))return;return insert(y,g,[s])}assert(o);assert(l);const _=put(d,a);const C=c?put(m,c):O;if(_===h.length)h[_]=p!=null?p:null;if(e&&skipSource(y,g,_,o,l,C)){return}return insert(y,g,c?[s,_,o,l,C]:[s,_,o,l])}function assert(e){}function getIndex(e,n){for(let i=e.length;i<=n;i++){e[i]=[]}return e[n]}function getColumnIndex(e,n){let i=e.length;for(let s=i-1;s>=0;i=s--){const i=e[s];if(n>=i[C])break}return i}function insert(e,n,i){for(let i=e.length;i>n;i--){e[i]=e[i-1]}e[n]=i}function removeEmptyFinalLines(e){const{length:n}=e;let i=n;for(let n=i-1;n>=0;i=n,n--){if(e[n].length>0)break}if(i<n)e.length=i}function putAll(e,n){for(let i=0;i<n.length;i++)put(e,n[i])}function skipSourceless(e,n){if(n===0)return true;const i=e[n-1];return i.length===1}function skipSource(e,n,i,s,a,o){if(n===0)return false;const l=e[n-1];if(l.length===1)return false;return i===l[k]&&s===l[A]&&a===l[I]&&o===(l.length===5?l[D]:O)}function addMappingInternal(e,n,i){const{generated:s,source:a,original:o,name:l,content:c}=i;if(!a){return addSegmentInternal(e,n,s.line-1,s.column,null,null,null,null,null)}assert(o);return addSegmentInternal(e,n,s.line-1,s.column,a,o.line-1,o.column,l,c)}}))},73654:function(e){(function(n,i){true?e.exports=i():0})(this,(function(){"use strict";const e=/^[\w+.-]+:\/\//;const n=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/;const i=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function isAbsoluteUrl(n){return e.test(n)}function isSchemeRelativeUrl(e){return e.startsWith("//")}function isAbsolutePath(e){return e.startsWith("/")}function isFileUrl(e){return e.startsWith("file:")}function isRelative(e){return/^[.?#]/.test(e)}function parseAbsoluteUrl(e){const i=n.exec(e);return makeUrl(i[1],i[2]||"",i[3],i[4]||"",i[5]||"/",i[6]||"",i[7]||"")}function parseFileUrl(e){const n=i.exec(e);const s=n[2];return makeUrl("file:","",n[1]||"","",isAbsolutePath(s)?s:"/"+s,n[3]||"",n[4]||"")}function makeUrl(e,n,i,s,a,o,l){return{scheme:e,user:n,host:i,port:s,path:a,query:o,hash:l,type:7}}function parseUrl(e){if(isSchemeRelativeUrl(e)){const n=parseAbsoluteUrl("http:"+e);n.scheme="";n.type=6;return n}if(isAbsolutePath(e)){const n=parseAbsoluteUrl("http://foo.com"+e);n.scheme="";n.host="";n.type=5;return n}if(isFileUrl(e))return parseFileUrl(e);if(isAbsoluteUrl(e))return parseAbsoluteUrl(e);const n=parseAbsoluteUrl("http://foo.com/"+e);n.scheme="";n.host="";n.type=e?e.startsWith("?")?3:e.startsWith("#")?2:4:1;return n}function stripPathFilename(e){if(e.endsWith("/.."))return e;const n=e.lastIndexOf("/");return e.slice(0,n+1)}function mergePaths(e,n){normalizePath(n,n.type);if(e.path==="/"){e.path=n.path}else{e.path=stripPathFilename(n.path)+e.path}}function normalizePath(e,n){const i=n<=4;const s=e.path.split("/");let a=1;let o=0;let l=false;for(let e=1;e<s.length;e++){const n=s[e];if(!n){l=true;continue}l=false;if(n===".")continue;if(n===".."){if(o){l=true;o--;a--}else if(i){s[a++]=n}continue}s[a++]=n;o++}let c="";for(let e=1;e<a;e++){c+="/"+s[e]}if(!c||l&&!c.endsWith("/..")){c+="/"}e.path=c}function resolve(e,n){if(!e&&!n)return"";const i=parseUrl(e);let s=i.type;if(n&&s!==7){const e=parseUrl(n);const a=e.type;switch(s){case 1:i.hash=e.hash;case 2:i.query=e.query;case 3:case 4:mergePaths(i,e);case 5:i.user=e.user;i.host=e.host;i.port=e.port;case 6:i.scheme=e.scheme}if(a>s)s=a}normalizePath(i,s);const a=i.query+i.hash;switch(s){case 2:case 3:return a;case 4:{const s=i.path.slice(1);if(!s)return a||".";if(isRelative(n||e)&&!isRelative(s)){return"./"+s+a}return s+a}case 5:return i.path+a;default:return i.scheme+"//"+i.user+i.host+i.port+i.path+a}}return resolve}))},56704:function(e,n,i){e=i.nmd(e);(function(i,s,a,o){true?s(n,e):0})(this,(function(e,n){"use strict";if(!Object.getOwnPropertyDescriptors)Object.getOwnPropertyDescriptors=function(e){return Reflect.ownKeys(e).reduce((function(n,i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(e,i));return n}),{})};"use strict";var i=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var o=Object.prototype.hasOwnProperty;var __export=(e,n)=>{for(var s in n)i(e,s,{get:n[s],enumerable:true})};var __copyProps=(e,n,l,c)=>{if(n&&typeof n==="object"||typeof n==="function"){for(let p of a(n))if(!o.call(e,p)&&p!==l)i(e,p,{get:()=>n[p],enumerable:!(c=s(n,p))||c.enumerable})}return e};var __toCommonJS=e=>__copyProps(i({},"__esModule",{value:true}),e);var l={};__export(l,{decode:()=>decode,decodeGeneratedRanges:()=>decodeGeneratedRanges,decodeOriginalScopes:()=>decodeOriginalScopes,encode:()=>encode,encodeGeneratedRanges:()=>encodeGeneratedRanges,encodeOriginalScopes:()=>encodeOriginalScopes});n.exports=__toCommonJS(l);var c=",".charCodeAt(0);var p=";".charCodeAt(0);var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var d=new Uint8Array(64);var h=new Uint8Array(128);for(let e=0;e<f.length;e++){const n=f.charCodeAt(e);d[e]=n;h[n]=e}function decodeInteger(e,n){let i=0;let s=0;let a=0;do{const n=e.next();a=h[n];i|=(a&31)<<s;s+=5}while(a&32);const o=i&1;i>>>=1;if(o){i=-2147483648|-i}return n+i}function encodeInteger(e,n,i){let s=n-i;s=s<0?-s<<1|1:s<<1;do{let n=s&31;s>>>=5;if(s>0)n|=32;e.write(d[n])}while(s>0);return n}function hasMoreVlq(e,n){if(e.pos>=n)return false;return e.peek()!==c}var m=1024*16;var y=typeof TextDecoder!=="undefined"?new TextDecoder:typeof Buffer!=="undefined"?{decode(e){const n=Buffer.from(e.buffer,e.byteOffset,e.byteLength);return n.toString()}}:{decode(e){let n="";for(let i=0;i<e.length;i++){n+=String.fromCharCode(e[i])}return n}};var g=class{constructor(){this.pos=0;this.out="";this.buffer=new Uint8Array(m)}write(e){const{buffer:n}=this;n[this.pos++]=e;if(this.pos===m){this.out+=y.decode(n);this.pos=0}}flush(){const{buffer:e,out:n,pos:i}=this;return i>0?n+y.decode(e.subarray(0,i)):n}};var _=class{constructor(e){this.pos=0;this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){const{buffer:n,pos:i}=this;const s=n.indexOf(e,i);return s===-1?n.length:s}};var C=[];function decodeOriginalScopes(e){const{length:n}=e;const i=new _(e);const s=[];const a=[];let o=0;for(;i.pos<n;i.pos++){o=decodeInteger(i,o);const e=decodeInteger(i,0);if(!hasMoreVlq(i,n)){const n=a.pop();n[2]=o;n[3]=e;continue}const l=decodeInteger(i,0);const c=decodeInteger(i,0);const p=c&1;const f=p?[o,e,0,0,l,decodeInteger(i,0)]:[o,e,0,0,l];let d=C;if(hasMoreVlq(i,n)){d=[];do{const e=decodeInteger(i,0);d.push(e)}while(hasMoreVlq(i,n))}f.vars=d;s.push(f);a.push(f)}return s}function encodeOriginalScopes(e){const n=new g;for(let i=0;i<e.length;){i=_encodeOriginalScopes(e,i,n,[0])}return n.flush()}function _encodeOriginalScopes(e,n,i,s){const a=e[n];const{0:o,1:l,2:p,3:f,4:d,vars:h}=a;if(n>0)i.write(c);s[0]=encodeInteger(i,o,s[0]);encodeInteger(i,l,0);encodeInteger(i,d,0);const m=a.length===6?1:0;encodeInteger(i,m,0);if(a.length===6)encodeInteger(i,a[5],0);for(const e of h){encodeInteger(i,e,0)}for(n++;n<e.length;){const a=e[n];const{0:o,1:l}=a;if(o>p||o===p&&l>=f){break}n=_encodeOriginalScopes(e,n,i,s)}i.write(c);s[0]=encodeInteger(i,p,s[0]);encodeInteger(i,f,0);return n}function decodeGeneratedRanges(e){const{length:n}=e;const i=new _(e);const s=[];const a=[];let o=0;let l=0;let c=0;let p=0;let f=0;let d=0;let h=0;let m=0;do{const e=i.indexOf(";");let n=0;for(;i.pos<e;i.pos++){n=decodeInteger(i,n);if(!hasMoreVlq(i,e)){const e=a.pop();e[2]=o;e[3]=n;continue}const y=decodeInteger(i,0);const g=y&1;const _=y&2;const k=y&4;let A=null;let I=C;let D;if(g){const e=decodeInteger(i,l);c=decodeInteger(i,l===e?c:0);l=e;D=[o,n,0,0,e,c]}else{D=[o,n,0,0]}D.isScope=!!k;if(_){const e=p;const n=f;p=decodeInteger(i,p);const s=e===p;f=decodeInteger(i,s?f:0);d=decodeInteger(i,s&&n===f?d:0);A=[p,f,d]}D.callsite=A;if(hasMoreVlq(i,e)){I=[];do{h=o;m=n;const e=decodeInteger(i,0);let s;if(e<-1){s=[[decodeInteger(i,0)]];for(let n=-1;n>e;n--){const e=h;h=decodeInteger(i,h);m=decodeInteger(i,h===e?m:0);const n=decodeInteger(i,0);s.push([n,h,m])}}else{s=[[e]]}I.push(s)}while(hasMoreVlq(i,e))}D.bindings=I;s.push(D);a.push(D)}o++;i.pos=e+1}while(i.pos<n);return s}function encodeGeneratedRanges(e){if(e.length===0)return"";const n=new g;for(let i=0;i<e.length;){i=_encodeGeneratedRanges(e,i,n,[0,0,0,0,0,0,0])}return n.flush()}function _encodeGeneratedRanges(e,n,i,s){const a=e[n];const{0:o,1:l,2:p,3:f,isScope:d,callsite:h,bindings:m}=a;if(s[0]<o){catchupLine(i,s[0],o);s[0]=o;s[1]=0}else if(n>0){i.write(c)}s[1]=encodeInteger(i,a[1],s[1]);const y=(a.length===6?1:0)|(h?2:0)|(d?4:0);encodeInteger(i,y,0);if(a.length===6){const{4:e,5:n}=a;if(e!==s[2]){s[3]=0}s[2]=encodeInteger(i,e,s[2]);s[3]=encodeInteger(i,n,s[3])}if(h){const{0:e,1:n,2:o}=a.callsite;if(e!==s[4]){s[5]=0;s[6]=0}else if(n!==s[5]){s[6]=0}s[4]=encodeInteger(i,e,s[4]);s[5]=encodeInteger(i,n,s[5]);s[6]=encodeInteger(i,o,s[6])}if(m){for(const e of m){if(e.length>1)encodeInteger(i,-e.length,0);const n=e[0][0];encodeInteger(i,n,0);let s=o;let a=l;for(let n=1;n<e.length;n++){const o=e[n];s=encodeInteger(i,o[1],s);a=encodeInteger(i,o[2],a);encodeInteger(i,o[0],0)}}}for(n++;n<e.length;){const a=e[n];const{0:o,1:l}=a;if(o>p||o===p&&l>=f){break}n=_encodeGeneratedRanges(e,n,i,s)}if(s[0]<p){catchupLine(i,s[0],p);s[0]=p;s[1]=0}else{i.write(c)}s[1]=encodeInteger(i,f,s[1]);return n}function catchupLine(e,n,i){do{e.write(p)}while(++n<i)}function decode(e){const{length:n}=e;const i=new _(e);const s=[];let a=0;let o=0;let l=0;let c=0;let p=0;do{const e=i.indexOf(";");const n=[];let f=true;let d=0;a=0;while(i.pos<e){let s;a=decodeInteger(i,a);if(a<d)f=false;d=a;if(hasMoreVlq(i,e)){o=decodeInteger(i,o);l=decodeInteger(i,l);c=decodeInteger(i,c);if(hasMoreVlq(i,e)){p=decodeInteger(i,p);s=[a,o,l,c,p]}else{s=[a,o,l,c]}}else{s=[a]}n.push(s);i.pos++}if(!f)sort(n);s.push(n);i.pos=e+1}while(i.pos<=n);return s}function sort(e){e.sort(sortComparator)}function sortComparator(e,n){return e[0]-n[0]}function encode(e){const n=new g;let i=0;let s=0;let a=0;let o=0;for(let l=0;l<e.length;l++){const f=e[l];if(l>0)n.write(p);if(f.length===0)continue;let d=0;for(let e=0;e<f.length;e++){const l=f[e];if(e>0)n.write(c);d=encodeInteger(n,l[0],d);if(l.length===1)continue;i=encodeInteger(n,l[1],i);s=encodeInteger(n,l[2],s);a=encodeInteger(n,l[3],a);if(l.length===4)continue;o=encodeInteger(n,l[4],o)}}return n.flush()}}))},43356:function(e,n,i){e=i.nmd(e);(function(s,a,o,l){true?a(n,e,i(73654),i(56704)):0})(this,(function(e,n,i,s){"use strict";if(!Object.getOwnPropertyDescriptors)Object.getOwnPropertyDescriptors=function(e){return Reflect.ownKeys(e).reduce((function(n,i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(e,i));return n}),{})};"use strict";var a=Object.create;var o=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var p=Object.getPrototypeOf;var f=Object.prototype.hasOwnProperty;var __export=(e,n)=>{for(var i in n)o(e,i,{get:n[i],enumerable:true})};var __copyProps=(e,n,i,s)=>{if(n&&typeof n==="object"||typeof n==="function"){for(let a of c(n))if(!f.call(e,a)&&a!==i)o(e,a,{get:()=>n[a],enumerable:!(s=l(n,a))||s.enumerable})}return e};var __toESM=(e,n,i)=>(i=e!=null?a(p(e)):{},__copyProps(n||!e||!e.__esModule?o(i,"default",{value:e,enumerable:true}):i,e));var __toCommonJS=e=>__copyProps(o({},"__esModule",{value:true}),e);var d={};__export(d,{AnyMap:()=>FlattenMap,FlattenMap:()=>FlattenMap,GREATEST_LOWER_BOUND:()=>R,LEAST_UPPER_BOUND:()=>L,TraceMap:()=>j,allGeneratedPositionsFor:()=>allGeneratedPositionsFor,decodedMap:()=>decodedMap,decodedMappings:()=>decodedMappings,eachMapping:()=>eachMapping,encodedMap:()=>encodedMap,encodedMappings:()=>encodedMappings,generatedPositionFor:()=>generatedPositionFor,isIgnored:()=>isIgnored,originalPositionFor:()=>originalPositionFor,presortedDecodedMap:()=>presortedDecodedMap,sourceContentFor:()=>sourceContentFor,traceSegment:()=>traceSegment});n.exports=__toCommonJS(d);var h=s;var m=__toESM(i);function stripFilename(e){if(!e)return"";const n=e.lastIndexOf("/");return e.slice(0,n+1)}function resolver(e,n){const i=stripFilename(e);const s=n?n+"/":"";return e=>(0,m.default)(s+(e||""),i)}var y=0;var g=1;var _=2;var C=3;var k=4;var A=1;var I=2;function maybeSort(e,n){const i=nextUnsortedSegmentLine(e,0);if(i===e.length)return e;if(!n)e=e.slice();for(let s=i;s<e.length;s=nextUnsortedSegmentLine(e,s+1)){e[s]=sortSegments(e[s],n)}return e}function nextUnsortedSegmentLine(e,n){for(let i=n;i<e.length;i++){if(!isSorted(e[i]))return i}return e.length}function isSorted(e){for(let n=1;n<e.length;n++){if(e[n][y]<e[n-1][y]){return false}}return true}function sortSegments(e,n){if(!n)e=e.slice();return e.sort(sortComparator)}function sortComparator(e,n){return e[y]-n[y]}var D=false;function binarySearch(e,n,i,s){while(i<=s){const a=i+(s-i>>1);const o=e[a][y]-n;if(o===0){D=true;return a}if(o<0){i=a+1}else{s=a-1}}D=false;return i-1}function upperBound(e,n,i){for(let s=i+1;s<e.length;i=s++){if(e[s][y]!==n)break}return i}function lowerBound(e,n,i){for(let s=i-1;s>=0;i=s--){if(e[s][y]!==n)break}return i}function memoizedState(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function memoizedBinarySearch(e,n,i,s){const{lastKey:a,lastNeedle:o,lastIndex:l}=i;let c=0;let p=e.length-1;if(s===a){if(n===o){D=l!==-1&&e[l][y]===n;return l}if(n>=o){c=l===-1?0:l}else{p=l}}i.lastKey=s;i.lastNeedle=n;return i.lastIndex=binarySearch(e,n,c,p)}function buildBySources(e,n){const i=n.map(buildNullArray);for(let s=0;s<e.length;s++){const a=e[s];for(let e=0;e<a.length;e++){const o=a[e];if(o.length===1)continue;const l=o[g];const c=o[_];const p=o[C];const f=i[l];const d=f[c]||(f[c]=[]);const h=n[l];let m=upperBound(d,p,memoizedBinarySearch(d,p,h,c));h.lastIndex=++m;insert(d,m,[p,s,o[y]])}}return i}function insert(e,n,i){for(let i=e.length;i>n;i--){e[i]=e[i-1]}e[n]=i}function buildNullArray(){return{__proto__:null}}function parse(e){return typeof e==="string"?JSON.parse(e):e}var FlattenMap=function(e,n){const i=parse(e);if(!("sections"in i)){return new j(i,n)}const s=[];const a=[];const o=[];const l=[];const c=[];recurse(i,n,s,a,o,l,c,0,0,Infinity,Infinity);const p={version:3,file:i.file,names:l,sources:a,sourcesContent:o,mappings:s,ignoreList:c};return presortedDecodedMap(p)};function recurse(e,n,i,s,a,o,l,c,p,f,d){const{sections:h}=e;for(let e=0;e<h.length;e++){const{map:m,offset:y}=h[e];let g=f;let _=d;if(e+1<h.length){const n=h[e+1].offset;g=Math.min(f,c+n.line);if(g===f){_=Math.min(d,p+n.column)}else if(g<f){_=p+n.column}}addSection(m,n,i,s,a,o,l,c+y.line,p+y.column,g,_)}}function addSection(e,n,i,s,a,o,l,c,p,f,d){const h=parse(e);if("sections"in h)return recurse(...arguments);const m=new j(h,n);const A=s.length;const I=o.length;const D=decodedMappings(m);const{resolvedSources:O,sourcesContent:B,ignoreList:L}=m;append(s,O);append(o,m.names);if(B)append(a,B);else for(let e=0;e<O.length;e++)a.push(null);if(L)for(let e=0;e<L.length;e++)l.push(L[e]+A);for(let e=0;e<D.length;e++){const n=c+e;if(n>f)return;const s=getLine(i,n);const a=e===0?p:0;const o=D[e];for(let e=0;e<o.length;e++){const i=o[e];const l=a+i[y];if(n===f&&l>=d)return;if(i.length===1){s.push([l]);continue}const c=A+i[g];const p=i[_];const h=i[C];s.push(i.length===4?[l,c,p,h]:[l,c,p,h,I+i[k]])}}}function append(e,n){for(let i=0;i<n.length;i++)e.push(n[i])}function getLine(e,n){for(let i=e.length;i<=n;i++)e[i]=[];return e[n]}var O="`line` must be greater than 0 (lines start at line 1)";var B="`column` must be greater than or equal to 0 (columns start at column 0)";var L=-1;var R=1;var j=class{constructor(e,n){const i=typeof e==="string";if(!i&&e._decodedMemo)return e;const s=parse(e);const{version:a,file:o,names:l,sourceRoot:c,sources:p,sourcesContent:f}=s;this.version=a;this.file=o;this.names=l||[];this.sourceRoot=c;this.sources=p;this.sourcesContent=f;this.ignoreList=s.ignoreList||s.x_google_ignoreList||void 0;const d=resolver(n,c);this.resolvedSources=p.map(d);const{mappings:h}=s;if(typeof h==="string"){this._encoded=h;this._decoded=void 0}else if(Array.isArray(h)){this._encoded=void 0;this._decoded=maybeSort(h,i)}else if(s.sections){throw new Error(`TraceMap passed sectioned source map, please use FlattenMap export instead`)}else{throw new Error(`invalid source map: ${JSON.stringify(s)}`)}this._decodedMemo=memoizedState();this._bySources=void 0;this._bySourceMemos=void 0}};function cast(e){return e}function encodedMappings(e){var n,i;return(i=(n=cast(e))._encoded)!=null?i:n._encoded=(0,h.encode)(cast(e)._decoded)}function decodedMappings(e){var n;return(n=cast(e))._decoded||(n._decoded=(0,h.decode)(cast(e)._encoded))}function traceSegment(e,n,i){const s=decodedMappings(e);if(n>=s.length)return null;const a=s[n];const o=traceSegmentInternal(a,cast(e)._decodedMemo,n,i,R);return o===-1?null:a[o]}function originalPositionFor(e,n){let{line:i,column:s,bias:a}=n;i--;if(i<0)throw new Error(O);if(s<0)throw new Error(B);const o=decodedMappings(e);if(i>=o.length)return OMapping(null,null,null,null);const l=o[i];const c=traceSegmentInternal(l,cast(e)._decodedMemo,i,s,a||R);if(c===-1)return OMapping(null,null,null,null);const p=l[c];if(p.length===1)return OMapping(null,null,null,null);const{names:f,resolvedSources:d}=e;return OMapping(d[p[g]],p[_]+1,p[C],p.length===5?f[p[k]]:null)}function generatedPositionFor(e,n){const{source:i,line:s,column:a,bias:o}=n;return generatedPosition(e,i,s,a,o||R,false)}function allGeneratedPositionsFor(e,n){const{source:i,line:s,column:a,bias:o}=n;return generatedPosition(e,i,s,a,o||L,true)}function eachMapping(e,n){const i=decodedMappings(e);const{names:s,resolvedSources:a}=e;for(let e=0;e<i.length;e++){const o=i[e];for(let i=0;i<o.length;i++){const l=o[i];const c=e+1;const p=l[0];let f=null;let d=null;let h=null;let m=null;if(l.length!==1){f=a[l[1]];d=l[2]+1;h=l[3]}if(l.length===5)m=s[l[4]];n({generatedLine:c,generatedColumn:p,source:f,originalLine:d,originalColumn:h,name:m})}}}function sourceIndex(e,n){const{sources:i,resolvedSources:s}=e;let a=i.indexOf(n);if(a===-1)a=s.indexOf(n);return a}function sourceContentFor(e,n){const{sourcesContent:i}=e;if(i==null)return null;const s=sourceIndex(e,n);return s===-1?null:i[s]}function isIgnored(e,n){const{ignoreList:i}=e;if(i==null)return false;const s=sourceIndex(e,n);return s===-1?false:i.includes(s)}function presortedDecodedMap(e,n){const i=new j(clone(e,[]),n);cast(i)._decoded=e.mappings;return i}function decodedMap(e){return clone(e,decodedMappings(e))}function encodedMap(e){return clone(e,encodedMappings(e))}function clone(e,n){return{version:e.version,file:e.file,names:e.names,sourceRoot:e.sourceRoot,sources:e.sources,sourcesContent:e.sourcesContent,mappings:n,ignoreList:e.ignoreList||e.x_google_ignoreList}}function OMapping(e,n,i,s){return{source:e,line:n,column:i,name:s}}function GMapping(e,n){return{line:e,column:n}}function traceSegmentInternal(e,n,i,s,a){let o=memoizedBinarySearch(e,s,n,i);if(D){o=(a===L?upperBound:lowerBound)(e,s,o)}else if(a===L)o++;if(o===-1||o===e.length)return-1;return o}function sliceGeneratedPositions(e,n,i,s,a){let o=traceSegmentInternal(e,n,i,s,R);if(!D&&a===L)o++;if(o===-1||o===e.length)return[];const l=D?s:e[o][y];if(!D)o=lowerBound(e,l,o);const c=upperBound(e,l,o);const p=[];for(;o<=c;o++){const n=e[o];p.push(GMapping(n[A]+1,n[I]))}return p}function generatedPosition(e,n,i,s,a,o){var l;i--;if(i<0)throw new Error(O);if(s<0)throw new Error(B);const{sources:c,resolvedSources:p}=e;let f=c.indexOf(n);if(f===-1)f=p.indexOf(n);if(f===-1)return o?[]:GMapping(null,null);const d=(l=cast(e))._bySources||(l._bySources=buildBySources(decodedMappings(e),cast(e)._bySourceMemos=c.map(memoizedState)));const h=d[f][i];if(h==null)return o?[]:GMapping(null,null);const m=cast(e)._bySourceMemos[f];if(o)return sliceGeneratedPositions(h,m,i,s,a);const y=traceSegmentInternal(h,m,i,s,a);if(y===-1)return GMapping(null,null);const g=h[y];return GMapping(g[A]+1,g[I])}}))},32500:function(e,n,i){var s=Object.create;var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var c=Object.getPrototypeOf;var p=Object.prototype.hasOwnProperty;var __export=(e,n)=>{for(var i in n)a(e,i,{get:n[i],enumerable:true})};var __copyProps=(e,n,i,s)=>{if(n&&typeof n==="object"||typeof n==="function"){for(let c of l(n))if(!p.call(e,c)&&c!==i)a(e,c,{get:()=>n[c],enumerable:!(s=o(n,c))||s.enumerable})}return e};var __toESM=(e,n,i)=>(i=e!=null?s(c(e)):{},__copyProps(n||!e||!e.__esModule?a(i,"default",{value:e,enumerable:true}):i,e));var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var f={};__export(f,{bodyParser:()=>bodyParserWrapper,default:()=>bodyParserWrapper});e.exports=__toCommonJS(f);var d=__toESM(i(47640));var h=__toESM(i(81258));var m=__toESM(i(87568));var y=["json","form","text","xml"];var g=class extends Error{constructor(e){super();this.name="UnsupportedBodyTypeError";this.message=`Invalid enabled type '${e}'. make sure to pass an array contains supported types ([${y}]).`}};function getIsEnabledBodyAs(e){for(const n of e){if(!y.includes(n)){throw new g(n)}}const n=y.reduce(((n,i)=>({...n,[i]:e.includes(i)})),{});return n}function getMimeTypes(e){for(const n of Object.keys(e)){const i=e[n];if(!y.includes(n)||!Array.isArray(i)){throw new g(n)}}const n={json:["application/json","application/json-patch+json","application/vnd.api+json","application/csp-report","application/reports+json","application/scim+json"],form:["application/x-www-form-urlencoded"],text:["text/plain"],xml:["text/xml","application/xml"]};const i=(0,h.default)(n,e);return i}function isTypes(e,n){if(typeof e==="string"){e=e.replace(/;$/,"")}return m.default.is(e,n)}function bodyParserWrapper(e={}){const{patchNode:n=false,parsedMethods:i=["POST","PUT","PATCH"],detectJSON:s,onError:a,enableTypes:o=["json","form"],extendTypes:l={},enableRawChecking:c=false,...p}=e;const f=getIsEnabledBodyAs(o);const h=getMimeTypes(l);async function parseBody(e){const shouldParseBodyAs=n=>Boolean(f[n]&&isTypes(e.request.get("content-type"),h[n]));const n=s?.(e)||shouldParseBodyAs("json")?"json":shouldParseBodyAs("form")?"form":shouldParseBodyAs("text")||shouldParseBodyAs("xml")?"text":null;if(!n)return{};const i={returnRawBody:true,strict:n==="json"?p.jsonStrict:void 0,[`${n}Types`]:h[n],limit:p[`${shouldParseBodyAs("xml")?"xml":n}Limit`],encoding:p.encoding||"utf-8"};return d.default[n](e,i)}return async function bodyParser(e,s){if(!i.includes(e.method.toUpperCase())||n&&e.req.body!==void 0||e.request.body!==void 0||e.disableBodyParser)return s();if(c&&e.req.body!==void 0){e.request.body=e.req.body;return s()}if(e.req.closed){e.status=499;e.body="Request already closed";return}try{const i=await parseBody(e);if(n){e.req.body="parsed"in i?i.parsed:{};if(e.req.rawBody===void 0)e.req.rawBody=i.raw}e.request.body="parsed"in i?i.parsed:{};if(e.request.rawBody===void 0)e.request.rawBody=i.raw}catch(n){if(!a)throw n;a(n,e)}return s()}}0&&0},48369:function(e,n,i){e.exports=i(92088)},92088:function(e,n,i){e=i.nmd(e);const s=i(73024);const a=i(76760);const o=i(1708);const l=i(57975);const c=i(30714);const{join:p}=a;const{resolve:f}=a;const{extname:d}=a;const{dirname:h}=a;const{isAbsolute:m}=a;let y={};let g={};const _={};n.clearCache=function(){y={};g={}};function cache(e,n){if(n&&e.filename&&e.cache){delete y[e.filename];g[e.filename]=n;return n}if(e.filename&&e.cache){return g[e.filename]}return n}function read(e,n,i){const a=y[e];const o=n.cache&&a&&typeof a==="string";if(o)return i(null,a);s.readFile(e,"utf8",(function(s,a){if(s)return i(s);a=a.replace(/^\uFEFF/,"");if(n.cache)y[e]=a;i(null,a)}))}function readPartials(e,n,i){if(!n.partials)return i();const s=Object.keys(n.partials);const a={};function next(o){if(o===s.length)return i(null,a);const l=s[o];const c=n.partials[l];if(c===undefined||c===null||c===false){return next(++o)}let f;if(m(c)){f=d(c)===""?p(c+d(e)):c}else{f=p(h(e),c+d(e))}read(f,n,(function(e,n){if(e)return i(e);a[l]=n;next(++o)}))}next(0)}function promisify(e,n){return new Promise((function(i,s){e=e||function(e,n){if(e){return s(e)}i(n)};n(e)}))}function fromStringRenderer(e){return function(i,s,a){s.filename=i;return promisify(a,(function(a){readPartials(i,s,(function(o,l){const c={...s};c.partials=l;if(o)return a(o);if(cache(c)){n[e].render("",c,a)}else{read(i,c,(function(i,s){if(i)return a(i);n[e].render(s,c,a)}))}}))}))}}n.velocityjs=fromStringRenderer("velocityjs");n.velocityjs.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.velocityjs||(_.velocityjs=i(63915));n.locals=n;s(null,a.render(e,n).trimStart())}catch(e){s(e)}}))};n.liquid=fromStringRenderer("liquid");function _renderTinyliquid(e,n,i,l){const c=e.newContext();let p;if(i.locals){for(p in i.locals){c.setLocals(p,i.locals[p])}delete i.locals}if(i.meta){c.setLocals("page",i.meta);delete i.meta}if(i.filters){for(p in i.filters){c.setFilter(p,i.filters[p])}delete i.filters}const f=i.includeDir||o.cwd();c.onInclude((function(n,i){const o=a.extname(n)?"":".liquid";const l=a.resolve(f,n+o);s.readFile(l,{encoding:"utf8"},(function(n,s){if(n)return i(n);i(null,e.parse(s))}))}));delete i.includeDir;const d={customTags:{}};if(i.customTags){const n=i.customTags;for(p in i.customTags){d.customTags[p]=function(i,s,a){const o=n[s](a.trim());i.astStack.push(e.parse(o))}}delete i.customTags}for(p in i){c.setLocals(p,i[p])}const h=cache(c)||cache(c,e.compile(n,d));h(c,l)}n.liquid.render=function(e,n,s){return promisify(s,(function(s){let a=_.liquid;let l;try{a=_.liquid=i(37169);_renderTinyliquid(a,e,n,s);return}catch(e){try{l=_.liquid=i(39564);a=new l.Engine}catch(n){console.error(n);return s(e)}}try{const i=n.locals||{};if(n.meta){i.pages=n.meta;delete n.meta}if(n.filters){a.registerFilters(n.filters);delete n.filters}const c=n.includeDir||o.cwd();a.fileSystem=new l.LocalFileSystem(c,"liquid");delete n.includeDir;if(n.customTags){const e=n.customTags;for(const i in n.customTags){a.registerTag(i,e[i])}delete n.customTags}for(const e in n){i[e]=n[e]}return a.parseAndRender(e,i).nodeify((function(e,n){if(e){throw new Error(e)}else{return s(null,n)}}))}catch(e){s(e)}}))};n.dust=fromStringRenderer("dust");n.dust.render=function(e,n,a){return promisify(a,(function(a){let o=_.dust;if(!o){try{o=_.dust=i(72103)}catch(e){try{o=_.dust=i(94230)}catch(n){console.error(n);try{o=_.dust=i(64933)}catch(n){console.error(n);return a(e)}}}}let l="dust";let c=".";if(n){if(n.ext)l=n.ext;if(n.views)c=n.views;if(n.settings&&n.settings.views)c=n.settings.views}if(!n||n&&!n.cache)o.cache={};o.onLoad=function(e,i){if(d(e)==="")e+="."+l;if(Array.isArray(c)){const a=[];for(let n=0;n<c.length;n++)if(s.existsSync(c[n]+"/"+e))a.push(c[n]+"/"+e);if(a.length===0)throw new Error("Cannot find template: "+e);else if(a.length>1){console.warn("Multiple file with the same name:\n"+a.join("\n")+"\nDefault using => "+a[0]);read(a[0],n,i)}else{read(a[0],n,i)}}else{if(e[0]!=="/")e=c+"/"+e;read(e,n,i)}};try{let i;if(n.filename){i=n.filename.replace(new RegExp("^"+c+"/"),"").replace(new RegExp("\\."+l),"")}const s=cache(n)||cache(n,o.compileFn(e,i));s(n,a)}catch(e){a(e)}}))};n.swig=fromStringRenderer("swig");n.swig.render=function(e,n,s){return promisify(s,(function(s){let a=_.swig;if(!a){try{a=_.swig=i(68917)}catch(e){try{a=_.swig=i(38859)}catch(n){console.error(n);return s(e)}}}try{if(n.cache===true)n.cache="memory";a.setDefaults({cache:n.cache});const i=cache(n)||cache(n,a.compile(e,n));s(null,i(n))}catch(e){s(e)}}))};n.atpl=fromStringRenderer("atpl");n.atpl.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.atpl||(_.atpl=i(700));const o=cache(n)||cache(n,a.compile(e,n));s(null,o(n))}catch(e){s(e)}}))};n.liquor=fromStringRenderer("liquor");n.liquor.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.liquor||(_.liquor=i(20735));const o=cache(n)||cache(n,a.compile(e,n));s(null,o(n))}catch(e){s(e)}}))};n.twig=fromStringRenderer("twig");n.twig.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.twig||(_.twig=i(40032).twig);const o={data:e,allowInlineIncludes:n.allowInlineIncludes,namespaces:n.namespaces,path:n.path};const l=cache(o)||cache(o,a(o));s(null,l.render(n))}catch(e){s(e)}}))};n.ejs=fromStringRenderer("ejs");n.ejs.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.ejs||(_.ejs=i(55875));const o=cache(n)||cache(n,a.compile(e,n));s(null,o(n))}catch(e){s(e)}}))};n.eta=function(e,n,s){return promisify(s,(function(s){try{const a=_.eta||(_.eta=new(i(52893).Eta)({views:"."}));s(null,a.render(e,n))}catch(e){s(e)}}))};n.eta.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.eta||(_.eta=new(i(52893).Eta)({views:"."}));s(null,a.renderString(e,n))}catch(e){s(e)}}))};n.eco=fromStringRenderer("eco");n.eco.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.eco||(_.eco=i(73102));s(null,a.render(e,n))}catch(e){s(e)}}))};n.jazz=fromStringRenderer("jazz");n.jazz.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.jazz||(_.jazz=i(18600));const o=cache(n)||cache(n,a.compile(e,n));o.eval(n,(function(e){s(null,e)}))}catch(e){s(e)}}))};n.jqtpl=fromStringRenderer("jqtpl");n.jqtpl.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.jqtpl||(_.jqtpl=i(96964));a.template(e,e);s(null,a.tmpl(e,n))}catch(e){s(e)}}))};n.haml=fromStringRenderer("haml");n.haml.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.haml||(_.haml=i(11232));n.locals=n;s(null,a.render(e,n).trimStart())}catch(e){s(e)}}))};n.hamlet=fromStringRenderer("hamlet");n.hamlet.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.hamlet||(_.hamlet=i(42862));n.locals=n;s(null,a.render(e,n).trimStart())}catch(e){s(e)}}))};n.whiskers=function(e,n,s){return promisify(s,(function(s){try{const a=_.whiskers||(_.whiskers=i(81751));a.__express(e,n,s)}catch(e){s(e)}}))};n.whiskers.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.whiskers||(_.whiskers=i(81751));s(null,a.render(e,n))}catch(e){s(e)}}))};n["haml-coffee"]=fromStringRenderer("haml-coffee");n["haml-coffee"].render=function(e,n,s){return promisify(s,(function(s){try{const a=_["haml-coffee"]||(_["haml-coffee"]=i(95338));const o=cache(n)||cache(n,a.compile(e,n));s(null,o(n))}catch(e){s(e)}}))};n.hogan=fromStringRenderer("hogan");n.hogan.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.hogan||(_.hogan=i(37997));const o=cache(n)||cache(n,a.compile(e,n));s(null,o.render(n,n.partials))}catch(e){s(e)}}))};n.templayed=fromStringRenderer("templayed");n.templayed.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.templayed||(_.templayed=i(84486));const o=cache(n)||cache(n,a(e));s(null,o(n))}catch(e){s(e)}}))};n.handlebars=fromStringRenderer("handlebars");n.handlebars.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.handlebars||(_.handlebars=i(81387));for(const e in n.partials){a.registerPartial(e,n.partials[e])}for(const e in n.helpers){a.registerHelper(e,n.helpers[e])}const o=cache(n)||cache(n,a.compile(e,n));s(null,o(n))}catch(e){s(e)}}))};n.underscore=fromStringRenderer("underscore");n.underscore.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.underscore||(_.underscore=i(99912));const o={};for(const e in n.partials){o[e]=a.template(n.partials[e])}n.partials=o;const l=cache(n)||cache(n,a.template(e,null,n));s(null,l(n).replace(/\n$/,""))}catch(e){s(e)}}))};n.lodash=fromStringRenderer("lodash");n.lodash.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.lodash||(_.lodash=i(31742));const o=cache(n)||cache(n,a.template(e,n));s(null,o(n).replace(/\n$/,""))}catch(e){s(e)}}))};n.pug=function(e,n,s){return promisify(s,(function(s){let a=_.pug;if(!a){try{a=_.pug=i(137)}catch(e){try{a=_.pug=i(21765)}catch(n){console.error(n);return s(e)}}}try{const i=cache(n)||cache(n,a.compileFile(e,n));s(null,i(n))}catch(e){s(e)}}))};n.pug.render=function(e,n,s){return promisify(s,(function(s){let a=_.pug;if(!a){try{a=_.pug=i(137)}catch(e){try{a=_.pug=i(21765)}catch(n){console.error(n);return s(e)}}}try{const i=cache(n)||cache(n,a.compile(e,n));s(null,i(n))}catch(e){s(e)}}))};n.qejs=fromStringRenderer("qejs");n.qejs.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.qejs||(_.qejs=i(78568));a.render(e,n).then((function(e){s(null,e)}),(function(e){s(e)})).done()}catch(e){s(e)}}))};n.walrus=fromStringRenderer("walrus");n.walrus.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.walrus||(_.walrus=i(60073));const o=cache(n)||cache(n,a.parse(e));s(null,o.compile(n))}catch(e){s(e)}}))};n.mustache=fromStringRenderer("mustache");n.mustache.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.mustache||(_.mustache=i(57208));s(null,a.render(e,n,n.partials))}catch(e){s(e)}}))};n.just=function(e,n,s){return promisify(s,(function(s){try{let a=_.just;if(!a){const e=i(38789);a=_.just=new e}a.configure({useCache:n.cache});a.render(e,n,s)}catch(e){s(e)}}))};n.just.render=function(e,n,s){return promisify(s,(function(s){try{const a=i(38789);const o=new a({root:{page:e}});o.render("page",n,s)}catch(e){s(e)}}))};n.ect=function(e,n,s){return promisify(s,(function(s){try{let a=_.ect;if(!a){const e=i(82125);a=_.ect=new e(n)}a.configure({cache:n.cache});a.render(e,n,s)}catch(e){s(e)}}))};n.ect.render=function(e,n,s){return promisify(s,(function(s){try{const a=i(82125);const o=new a({root:{page:e}});o.render("page",n,s)}catch(e){s(e)}}))};n.mote=fromStringRenderer("mote");n.mote.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.mote||(_.mote=i(79502));const o=cache(n)||cache(n,a.compile(e));s(null,o(n))}catch(e){s(e)}}))};n.toffee=function(e,n,s){return promisify(s,(function(s){try{const a=_.toffee||(_.toffee=i(19266));a.__consolidate_engine_render(e,n,s)}catch(e){s(e)}}))};n.toffee.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.toffee||(_.toffee=i(19266));a.str_render(e,n,s)}catch(e){s(e)}}))};n.dot=fromStringRenderer("dot");n.dot.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.dot||(_.dot=i(22536));const o=_.extend||(_.extend=Object.assign);let l={};l=o(l,a.templateSettings);l=o(l,n?n.dot:{});const c=cache(n)||cache(n,a.template(e,l,n));s(null,c(n))}catch(e){s(e)}}))};n.bracket=fromStringRenderer("bracket");n.bracket.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.bracket||(_.bracket=i(38428));const o=cache(n)||cache(n,a.default.compile(e,n));s(null,o(n))}catch(e){s(e)}}))};n.ractive=fromStringRenderer("ractive");n.ractive.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.ractive||(_.ractive=i(43509));const o=cache(n)||cache(n,a.parse(e));n.template=o;if(n.data===null||n.data===undefined){n.data={...n};let e;let i;const s=["template","filename","cache","partials"];for(e=0,i=s.length;e<i;e++){const i=s[e];delete n.data[i]}}s(null,new a(n).toHTML())}catch(e){s(e)}}))};n.nunjucks=fromStringRenderer("nunjucks");n.nunjucks.render=function(e,n,s){return promisify(s,(function(s){try{const a=n.nunjucksEnv||_.nunjucks||(_.nunjucks=i(64922));let o=a;if(n.settings&&n.settings.views){o=a.configure(n.settings.views)}else if(n.nunjucks&&n.nunjucks.configure){o=a.configure.apply(a,n.nunjucks.configure)}if(n.loader){o=new a.Environment(n.loader)}else if(n.settings&&n.settings.views){o=new a.Environment(new a.FileSystemLoader(n.settings.views))}else if(n.nunjucks&&n.nunjucks.loader){if(typeof n.nunjucks.loader==="string"){o=new a.Environment(new a.FileSystemLoader(n.nunjucks.loader))}else{o=new a.Environment(new a.FileSystemLoader(n.nunjucks.loader[0],n.nunjucks.loader[1]))}}o.renderString(e,n,s)}catch(e){throw s(e)}}))};n.htmling=fromStringRenderer("htmling");n.htmling.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.htmling||(_.htmling=i(1104));const o=cache(n)||cache(n,a.string(e));s(null,o.render(n))}catch(e){s(e)}}))};function requireReact(e,n){let s;try{const e=_.babel||(_.babel=i(91485));s=e.transformFileSync(n,{presets:["@babel/preset-react"]}).code}catch(e){try{const e=_.babel||(_.babel=i(27119));s=e.transformFileSync(n,{presets:["react"]}).code}catch(n){console.error(n);throw e}}return e._compile(s,n)}n.requireReact=requireReact;function requireReactString(n,s){if(!s)s="";const a=new e.constructor;s=s||"";let o;try{const e=_.babel||(_.babel=i(91485));o=e.transform(n,{presets:["@babel/preset-react"]}).code}catch(e){try{const e=_.babel||(_.babel=i(27119));o=e.transform(n,{presets:["react"]}).code}catch(n){console.error(n);throw e}}a.paths=e.paths;a._compile(o,s);return a.exports}function reactBaseTmpl(e,n){let i;let s;for(const a in n){if(n.hasOwnProperty(a)){i="{{"+a+"}}";s=new RegExp(i,"g");if(s.test(e))e=e.replace(s,n[a])}}return e}n.plates=fromStringRenderer("plates");n.plates.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.plates||(_.plates=i(39272));const o=n.map||undefined;const l=a.bind(e,n,o);s(null,l)}catch(e){s(e)}}))};function reactRenderer(e){if(require.extensions){if(!require.extensions[".jsx"]){require.extensions[".jsx"]=requireReact}if(!require.extensions[".react"]){require.extensions[".react"]=requireReact}}return function(n,a,o){return promisify(o,(function(o){let l;let c;try{l=_.ReactDOM||(_.ReactDOM=i(43271));c=_.react||(_.react=i(4090))}catch(e){return o(e)}const{base:p}=a;delete a.base;const d=a.cache;delete a.cache;const{isNonStatic:h}=a;delete a.isNonStatic;try{let i;let m;let g;let _;if(cache(a)){m=cache(a)}else{if(e==="path"){const e=f(n);delete require.cache[e];try{i=require(e)}catch(e){return o(e)}}else{i=requireReactString(n)}m=cache(a,c.createFactory(i))}const C=new m(a);_=h?l.renderToString(C):l.renderToStaticMarkup(C);if(p){g=y[n]||s.readFileSync(f(p),"utf8");if(d){y[n]=g}a.content=_;_=reactBaseTmpl(g,a)}o(null,_)}catch(e){o(e)}}))}}n.react=reactRenderer("path");n.react.render=reactRenderer("string");n["arc-templates"]=fromStringRenderer("arc-templates");n["arc-templates"].render=function(e,n,s){const a=l.promisify(read);const o={};o.readFile=function(e){return a(e,n)};return promisify(s,(function(s){try{let a=_["arc-templates"];if(!a){const e=i(68146);a=_["arc-templates"]=new e({filesystem:o})}const l=cache(n)||cache(n,a.compileString(e,n.filename));l.then((function(e){return e(n)})).then((function(e){s(null,e.content)})).catch(s)}catch(e){s(e)}}))};n.vash=fromStringRenderer("vash");n.vash.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.vash||(_.vash=i(24857));if(n.helpers){for(const e in n.helpers){if(!n.helpers.hasOwnProperty(e)||typeof n.helpers[e]!=="function"){continue}a.helpers[e]=n.helpers[e]}}const o=cache(n)||cache(n,a.compile(e,n));o(n,(function(e,n){if(e)s(e);n.finishLayout();s(null,n.toString().replace(/\n$/,""))}))}catch(e){s(e)}}))};n.slm=fromStringRenderer("slm");n.slm.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.slm||(_.slm=i(27735));const o=cache(n)||cache(n,a.compile(e,n));s(null,o(n))}catch(e){s(e)}}))};n.teacup=function(e,n,s){return promisify(s,(function(s){try{const a=_.teacup||(_.teacup=i(5704));require.extensions[".teacup"]=require.extensions[".coffee"];if(e[0]!=="/"){e=p(o.cwd(),e)}if(!n.cache){const n=s;s=function(...i){delete require.cache[e];Reflect.apply(n,this,i)}}a.renderFile(e,n,s)}catch(e){s(e)}}))};n.teacup.render=function(e,n,s){try{const a=i(52213);const o={module:{exports:{}},require:require};return promisify(s,(function(i){c.runInNewContext(a.compile(e),o);const s=o.module.exports;i(null,s(n))}))}catch(e){s(e)}};n.twing=fromStringRenderer("twing");n.twing.render=function(e,n,a){return promisify(a,(function(a){try{let o=_.twing||(_.twing=i(21964));if(o.hasOwnProperty("TwingEnvironment")){let e=new o.TwingLoaderNull;if(n.settings&&n.settings.views&&s.existsSync(n.settings.views)){e=new o.TwingLoaderFilesystem(n.settings.views)}o=_.twing=new o.TwingEnvironment(e)}o.createTemplate(e).then((e=>{e.render(n).then((e=>{const i=cache(n)||cache(n,e);a(null,i)}))}))}catch(e){a(e)}}))};n.requires=_},11451:function(e,n,i){"use strict";const s=i(86449)("@ladjs/koa-views");const a=i(48369);const o=i(59558);const l=i(84675);const c=i(78176);const p=i(91493);e.exports=viewsMiddleware;const bigIntReplacer=()=>{const e=new WeakSet;return(n,i)=>{if(typeof i==="bigint")return i.toString();if(typeof i==="object"&&i!==null){if(e.has(i)){return}e.add(i)}return i}};function viewsMiddleware(e,{autoRender:n=true,engineSource:i=a,extension:f="html",options:d={},map:h}={}){return function views(a,m){let y=false;function render(m,g={}){if(y){if(this.ctx&&this.ctx.req===this.req)a=this.ctx;else a=this}return l(e,m,f).then((l=>{const f=l.ext;const m=Object.assign({},d,a.state||{},g);m.partials=Object.assign(Object.create(null),d.partials||{});if(s.enabled)s("render `%s` with %s",l.rel,JSON.stringify(m,bigIntReplacer()));a.type="text/html";if(isHtml(f)&&!h){return o(a,l.rel,{root:e})}else{const o=h&&h[f]?h[f]:f;const d=i[o];if(!o||!d)return Promise.reject(new Error(`Engine not found for the ".${f}" file extension`));return d(p(e,l.rel),m).then((e=>{if(g.pretty){s("using `pretty` package to beautify HTML");e=c(e)}if(n){a.body=e;return e}return Promise.resolve(e)}))}}))}if(!a){y=true;return render}if(a.render)return m();a.response.render=a.render=render;return m()}}function isHtml(e){return e==="html"}},54143:function(e){function BrowserslistError(e){this.name="BrowserslistError";this.message=e;this.browserslist=true;if(Error.captureStackTrace){Error.captureStackTrace(this,BrowserslistError)}}BrowserslistError.prototype=Error.prototype;e.exports=BrowserslistError},72629:function(e,n,i){var s=i(20644);var a=i(69350).X;var o=i(33990);var l=i(76516);var c=i(16928);var p=i(54143);var f=i(43805);var d=i(5546);var h=365.259641*24*60*60*1e3;var m="37";var y=14;function isVersionsMatch(e,n){return(e+".").indexOf(n+".")===0}function isEolReleased(e){var n=e.slice(1);return browserslist.nodeVersions.some((function(e){return isVersionsMatch(e,n)}))}function normalize(e){return e.filter((function(e){return typeof e==="string"}))}function normalizeElectron(e){var n=e;if(e.split(".").length===3){n=e.split(".").slice(0,-1).join(".")}return n}function nameMapper(e){return function mapName(n){return e+" "+n}}function getMajor(e){return parseInt(e.split(".")[0])}function getMajorVersions(e,n){if(e.length===0)return[];var i=uniq(e.map(getMajor));var s=i[i.length-n];if(!s){return e}var a=[];for(var o=e.length-1;o>=0;o--){if(s>getMajor(e[o]))break;a.unshift(e[o])}return a}function uniq(e){var n=[];for(var i=0;i<e.length;i++){if(n.indexOf(e[i])===-1)n.push(e[i])}return n}function fillUsage(e,n,i){for(var s in i){e[n+" "+s]=i[s]}}function generateFilter(e,n){n=parseFloat(n);if(e===">"){return function(e){return parseLatestFloat(e)>n}}else if(e===">="){return function(e){return parseLatestFloat(e)>=n}}else if(e==="<"){return function(e){return parseFloat(e)<n}}else{return function(e){return parseFloat(e)<=n}}function parseLatestFloat(e){return parseFloat(e.split("-")[1]||e)}}function generateSemverFilter(e,n){n=n.split(".").map(parseSimpleInt);n[1]=n[1]||0;n[2]=n[2]||0;if(e===">"){return function(e){e=e.split(".").map(parseSimpleInt);return compareSemver(e,n)>0}}else if(e===">="){return function(e){e=e.split(".").map(parseSimpleInt);return compareSemver(e,n)>=0}}else if(e==="<"){return function(e){e=e.split(".").map(parseSimpleInt);return compareSemver(n,e)>0}}else{return function(e){e=e.split(".").map(parseSimpleInt);return compareSemver(n,e)>=0}}}function parseSimpleInt(e){return parseInt(e)}function compare(e,n){if(e<n)return-1;if(e>n)return+1;return 0}function compareSemver(e,n){return compare(parseInt(e[0]),parseInt(n[0]))||compare(parseInt(e[1]||"0"),parseInt(n[1]||"0"))||compare(parseInt(e[2]||"0"),parseInt(n[2]||"0"))}function semverFilterLoose(e,n){n=n.split(".").map(parseSimpleInt);if(typeof n[1]==="undefined"){n[1]="x"}switch(e){case"<=":return function(e){e=e.split(".").map(parseSimpleInt);return compareSemverLoose(e,n)<=0};case">=":default:return function(e){e=e.split(".").map(parseSimpleInt);return compareSemverLoose(e,n)>=0}}}function compareSemverLoose(e,n){if(e[0]!==n[0]){return e[0]<n[0]?-1:+1}if(n[1]==="x"){return 0}if(e[1]!==n[1]){return e[1]<n[1]?-1:+1}return 0}function resolveVersion(e,n){if(e.versions.indexOf(n)!==-1){return n}else if(browserslist.versionAliases[e.name][n]){return browserslist.versionAliases[e.name][n]}else{return false}}function normalizeVersion(e,n){var i=resolveVersion(e,n);if(i){return i}else if(e.versions.length===1){return e.versions[0]}else{return false}}function filterByYear(e,n){e=e/1e3;return Object.keys(a).reduce((function(i,s){var a=byName(s,n);if(!a)return i;var o=Object.keys(a.releaseDate).filter((function(n){var i=a.releaseDate[n];return i!==null&&i>=e}));return i.concat(o.map(nameMapper(a.name)))}),[])}function cloneData(e){return{name:e.name,versions:e.versions,released:e.released,releaseDate:e.releaseDate}}function byName(e,n){e=e.toLowerCase();e=browserslist.aliases[e]||e;if(n.mobileToDesktop&&browserslist.desktopNames[e]){var i=browserslist.data[browserslist.desktopNames[e]];if(e==="android"){return normalizeAndroidData(cloneData(browserslist.data[e]),i)}else{var s=cloneData(i);s.name=e;return s}}return browserslist.data[e]}function normalizeAndroidVersions(e,n){var i=n.indexOf(m);return e.filter((function(e){return/^(?:[2-4]\.|[34]$)/.test(e)})).concat(n.slice(i))}function copyObject(e){var n={};for(var i in e){n[i]=e[i]}return n}function normalizeAndroidData(e,n){e.released=normalizeAndroidVersions(e.released,n.released);e.versions=normalizeAndroidVersions(e.versions,n.versions);e.releaseDate=copyObject(e.releaseDate);e.released.forEach((function(i){if(e.releaseDate[i]===undefined){e.releaseDate[i]=n.releaseDate[i]}}));return e}function checkName(e,n){var i=byName(e,n);if(!i)throw new p("Unknown browser "+e);return i}function unknownQuery(e){return new p("Unknown browser query `"+e+"`. "+"Maybe you are using old Browserslist or made typo in query.")}function filterJumps(e,n,i,s){var a=1;switch(n){case"android":if(s.mobileToDesktop)return e;var o=browserslist.data.chrome.released;a=o.length-o.indexOf(m);break;case"op_mob":var l=browserslist.data.op_mob.released.slice(-1)[0];a=getMajor(l)-y+1;break;default:return e}if(i<=a){return e.slice(-1)}return e.slice(a-1-i)}function isSupported(e,n){return typeof e==="string"&&(e.indexOf("y")>=0||n&&e.indexOf("a")>=0)}function resolve(e,n){return parseQueries(e).reduce((function(e,i,s){if(i.not&&s===0){throw new p("Write any browsers query (for instance, `defaults`) "+"before `"+i.query+"`")}var a=C[i.type];var o=a.select.call(browserslist,n,i).map((function(e){var i=e.split(" ");if(i[1]==="0"){return i[0]+" "+byName(i[0],n).versions[0]}else{return e}}));if(i.compose==="and"){if(i.not){return e.filter((function(e){return o.indexOf(e)===-1}))}else{return e.filter((function(e){return o.indexOf(e)!==-1}))}}else{if(i.not){var l={};o.forEach((function(e){l[e]=true}));return e.filter((function(e){return!l[e]}))}return e.concat(o)}}),[])}function prepareOpts(e){if(typeof e==="undefined")e={};if(typeof e.path==="undefined"){e.path=c.resolve?c.resolve("."):"."}return e}function prepareQueries(e,n){if(typeof e==="undefined"||e===null){var i=browserslist.loadConfig(n);if(i){e=i}else{e=browserslist.defaults}}return e}function checkQueries(e){if(!(typeof e==="string"||Array.isArray(e))){throw new p("Browser queries must be an array or string. Got "+typeof e+".")}}var g={};var _={};function browserslist(e,n){n=prepareOpts(n);e=prepareQueries(e,n);checkQueries(e);var i=parseQueries(e).some((function(e){return C[e.type].needsPath}));var s={ignoreUnknownVersions:n.ignoreUnknownVersions,dangerousExtend:n.dangerousExtend,mobileToDesktop:n.mobileToDesktop,env:n.env};if(i){s.path=n.path}f.oldDataWarning(browserslist.data);var a=f.getStat(n,browserslist.data);if(a){s.customUsage={};for(var o in a){fillUsage(s.customUsage,o,a[o])}}var l=JSON.stringify([e,s]);if(g[l])return g[l];var c=uniq(resolve(e,s)).sort((function(e,n){e=e.split(" ");n=n.split(" ");if(e[0]===n[0]){var i=e[1].split("-")[0];var s=n[1].split("-")[0];return compareSemver(s.split("."),i.split("."))}else{return compare(e[0],n[0])}}));if(!f.env.BROWSERSLIST_DISABLE_CACHE){g[l]=c}return c}function parseQueries(e){var n=JSON.stringify(e);if(n in _)return _[n];var i=d(C,e);if(!f.env.BROWSERSLIST_DISABLE_CACHE){_[n]=i}return i}function loadCustomUsage(e,n){var i=f.loadStat(e,n,browserslist.data);if(i){e.customUsage={};for(var s in i){fillUsage(e.customUsage,s,i[s])}}if(!e.customUsage){throw new p("Custom usage statistics was not provided")}return e.customUsage}browserslist.parse=function(e,n){n=prepareOpts(n);e=prepareQueries(e,n);checkQueries(e);return parseQueries(e)};browserslist.cache={};browserslist.data={};browserslist.usage={global:{},custom:null};browserslist.defaults=["> 0.5%","last 2 versions","Firefox ESR","not dead"];browserslist.aliases={fx:"firefox",ff:"firefox",ios:"ios_saf",explorer:"ie",blackberry:"bb",explorermobile:"ie_mob",operamini:"op_mini",operamobile:"op_mob",chromeandroid:"and_chr",firefoxandroid:"and_ff",ucandroid:"and_uc",qqandroid:"and_qq"};browserslist.desktopNames={and_chr:"chrome",and_ff:"firefox",ie_mob:"ie",android:"chrome"};browserslist.versionAliases={};browserslist.clearCaches=f.clearCaches;browserslist.parseConfig=f.parseConfig;browserslist.readConfig=f.readConfig;browserslist.findConfigFile=f.findConfigFile;browserslist.findConfig=f.findConfig;browserslist.loadConfig=f.loadConfig;browserslist.coverage=function(e,n){var i;if(typeof n==="undefined"){i=browserslist.usage.global}else if(n==="my stats"){var s={};s.path=c.resolve?c.resolve("."):".";var a=f.getStat(s);if(!a){throw new p("Custom usage statistics was not provided")}i={};for(var o in a){fillUsage(i,o,a[o])}}else if(typeof n==="string"){if(n.length>2){n=n.toLowerCase()}else{n=n.toUpperCase()}f.loadCountry(browserslist.usage,n,browserslist.data);i=browserslist.usage[n]}else{if("dataByBrowser"in n){n=n.dataByBrowser}i={};for(var l in n){for(var d in n[l]){i[l+" "+d]=n[l][d]}}}return e.reduce((function(e,n){var s=i[n];if(s===undefined){s=i[n.replace(/ \S+$/," 0")]}return e+(s||0)}),0)};function nodeQuery(e,n){var i=browserslist.nodeVersions.filter((function(e){return isVersionsMatch(e,n.version)}));if(i.length===0){if(e.ignoreUnknownVersions){return[]}else{throw new p("Unknown version "+n.version+" of Node.js")}}return["node "+i[i.length-1]]}function sinceQuery(e,n){var i=parseInt(n.year);var s=parseInt(n.month||"01")-1;var a=parseInt(n.day||"01");return filterByYear(Date.UTC(i,s,a,0,0,0),e)}function coverQuery(e,n){var i=parseFloat(n.coverage);var s=browserslist.usage.global;if(n.place){if(n.place.match(/^my\s+stats$/i)){if(!e.customUsage){throw new p("Custom usage statistics was not provided")}s=e.customUsage}else{var a;if(n.place.length===2){a=n.place.toUpperCase()}else{a=n.place.toLowerCase()}f.loadCountry(browserslist.usage,a,browserslist.data);s=browserslist.usage[a]}}else if(n.config){s=loadCustomUsage(e,n.config)}var o=Object.keys(s).sort((function(e,n){return s[n]-s[e]}));var l=0;var c=[];var d;for(var h=0;h<o.length;h++){d=o[h];if(s[d]===0)break;l+=s[d];c.push(d);if(l>=i)break}return c}var C={last_major_versions:{matches:["versions"],regexp:/^last\s+(\d+)\s+major\s+versions?$/i,select:function(e,n){return Object.keys(a).reduce((function(i,s){var a=byName(s,e);if(!a)return i;var o=getMajorVersions(a.released,n.versions);o=o.map(nameMapper(a.name));o=filterJumps(o,a.name,n.versions,e);return i.concat(o)}),[])}},last_versions:{matches:["versions"],regexp:/^last\s+(\d+)\s+versions?$/i,select:function(e,n){return Object.keys(a).reduce((function(i,s){var a=byName(s,e);if(!a)return i;var o=a.released.slice(-n.versions);o=o.map(nameMapper(a.name));o=filterJumps(o,a.name,n.versions,e);return i.concat(o)}),[])}},last_electron_major_versions:{matches:["versions"],regexp:/^last\s+(\d+)\s+electron\s+major\s+versions?$/i,select:function(e,n){var i=getMajorVersions(Object.keys(o),n.versions);return i.map((function(e){return"chrome "+o[e]}))}},last_node_major_versions:{matches:["versions"],regexp:/^last\s+(\d+)\s+node\s+major\s+versions?$/i,select:function(e,n){return getMajorVersions(browserslist.nodeVersions,n.versions).map((function(e){return"node "+e}))}},last_browser_major_versions:{matches:["versions","browser"],regexp:/^last\s+(\d+)\s+(\w+)\s+major\s+versions?$/i,select:function(e,n){var i=checkName(n.browser,e);var s=getMajorVersions(i.released,n.versions);var a=s.map(nameMapper(i.name));a=filterJumps(a,i.name,n.versions,e);return a}},last_electron_versions:{matches:["versions"],regexp:/^last\s+(\d+)\s+electron\s+versions?$/i,select:function(e,n){return Object.keys(o).slice(-n.versions).map((function(e){return"chrome "+o[e]}))}},last_node_versions:{matches:["versions"],regexp:/^last\s+(\d+)\s+node\s+versions?$/i,select:function(e,n){return browserslist.nodeVersions.slice(-n.versions).map((function(e){return"node "+e}))}},last_browser_versions:{matches:["versions","browser"],regexp:/^last\s+(\d+)\s+(\w+)\s+versions?$/i,select:function(e,n){var i=checkName(n.browser,e);var s=i.released.slice(-n.versions).map(nameMapper(i.name));s=filterJumps(s,i.name,n.versions,e);return s}},unreleased_versions:{matches:[],regexp:/^unreleased\s+versions$/i,select:function(e){return Object.keys(a).reduce((function(n,i){var s=byName(i,e);if(!s)return n;var a=s.versions.filter((function(e){return s.released.indexOf(e)===-1}));a=a.map(nameMapper(s.name));return n.concat(a)}),[])}},unreleased_electron_versions:{matches:[],regexp:/^unreleased\s+electron\s+versions?$/i,select:function(){return[]}},unreleased_browser_versions:{matches:["browser"],regexp:/^unreleased\s+(\w+)\s+versions?$/i,select:function(e,n){var i=checkName(n.browser,e);return i.versions.filter((function(e){return i.released.indexOf(e)===-1})).map(nameMapper(i.name))}},last_years:{matches:["years"],regexp:/^last\s+(\d*.?\d+)\s+years?$/i,select:function(e,n){return filterByYear(Date.now()-h*n.years,e)}},since_y:{matches:["year"],regexp:/^since (\d+)$/i,select:sinceQuery},since_y_m:{matches:["year","month"],regexp:/^since (\d+)-(\d+)$/i,select:sinceQuery},since_y_m_d:{matches:["year","month","day"],regexp:/^since (\d+)-(\d+)-(\d+)$/i,select:sinceQuery},popularity:{matches:["sign","popularity"],regexp:/^(>=?|<=?)\s*(\d+|\d+\.\d+|\.\d+)%$/,select:function(e,n){var i=parseFloat(n.popularity);var s=browserslist.usage.global;return Object.keys(s).reduce((function(e,a){if(n.sign===">"){if(s[a]>i){e.push(a)}}else if(n.sign==="<"){if(s[a]<i){e.push(a)}}else if(n.sign==="<="){if(s[a]<=i){e.push(a)}}else if(s[a]>=i){e.push(a)}return e}),[])}},popularity_in_my_stats:{matches:["sign","popularity"],regexp:/^(>=?|<=?)\s*(\d+|\d+\.\d+|\.\d+)%\s+in\s+my\s+stats$/,select:function(e,n){var i=parseFloat(n.popularity);if(!e.customUsage){throw new p("Custom usage statistics was not provided")}var s=e.customUsage;return Object.keys(s).reduce((function(e,a){var o=s[a];if(o==null){return e}if(n.sign===">"){if(o>i){e.push(a)}}else if(n.sign==="<"){if(o<i){e.push(a)}}else if(n.sign==="<="){if(o<=i){e.push(a)}}else if(o>=i){e.push(a)}return e}),[])}},popularity_in_config_stats:{matches:["sign","popularity","config"],regexp:/^(>=?|<=?)\s*(\d+|\d+\.\d+|\.\d+)%\s+in\s+(\S+)\s+stats$/,select:function(e,n){var i=parseFloat(n.popularity);var s=loadCustomUsage(e,n.config);return Object.keys(s).reduce((function(e,a){var o=s[a];if(o==null){return e}if(n.sign===">"){if(o>i){e.push(a)}}else if(n.sign==="<"){if(o<i){e.push(a)}}else if(n.sign==="<="){if(o<=i){e.push(a)}}else if(o>=i){e.push(a)}return e}),[])}},popularity_in_place:{matches:["sign","popularity","place"],regexp:/^(>=?|<=?)\s*(\d+|\d+\.\d+|\.\d+)%\s+in\s+((alt-)?\w\w)$/,select:function(e,n){var i=parseFloat(n.popularity);var s=n.place;if(s.length===2){s=s.toUpperCase()}else{s=s.toLowerCase()}f.loadCountry(browserslist.usage,s,browserslist.data);var a=browserslist.usage[s];return Object.keys(a).reduce((function(e,s){var o=a[s];if(o==null){return e}if(n.sign===">"){if(o>i){e.push(s)}}else if(n.sign==="<"){if(o<i){e.push(s)}}else if(n.sign==="<="){if(o<=i){e.push(s)}}else if(o>=i){e.push(s)}return e}),[])}},cover:{matches:["coverage"],regexp:/^cover\s+(\d+|\d+\.\d+|\.\d+)%$/i,select:coverQuery},cover_in:{matches:["coverage","place"],regexp:/^cover\s+(\d+|\d+\.\d+|\.\d+)%\s+in\s+(my\s+stats|(alt-)?\w\w)$/i,select:coverQuery},cover_config:{matches:["coverage","config"],regexp:/^cover\s+(\d+|\d+\.\d+|\.\d+)%\s+in\s+(\S+)\s+stats$/i,select:coverQuery},supports:{matches:["supportType","feature"],regexp:/^(?:(fully|partially)\s+)?supports\s+([\w-]+)$/,select:function(e,n){f.loadFeature(browserslist.cache,n.feature);var i=n.supportType!=="fully";var s=browserslist.cache[n.feature];var a=[];for(var o in s){var l=byName(o,e);var c=l.released.length-1;while(c>=0){if(l.released[c]in s[o])break;c--}var p=e.mobileToDesktop&&o in browserslist.desktopNames&&isSupported(s[o][l.released[c]],i);l.versions.forEach((function(e){var n=s[o][e];if(n===undefined&&p){n=s[browserslist.desktopNames[o]][e]}if(isSupported(n,i)){a.push(o+" "+e)}}))}return a}},electron_range:{matches:["from","to"],regexp:/^electron\s+([\d.]+)\s*-\s*([\d.]+)$/i,select:function(e,n){var i=normalizeElectron(n.from);var s=normalizeElectron(n.to);var a=parseFloat(n.from);var l=parseFloat(n.to);if(!o[i]){throw new p("Unknown version "+a+" of electron")}if(!o[s]){throw new p("Unknown version "+l+" of electron")}return Object.keys(o).filter((function(e){var n=parseFloat(e);return n>=a&&n<=l})).map((function(e){return"chrome "+o[e]}))}},node_range:{matches:["from","to"],regexp:/^node\s+([\d.]+)\s*-\s*([\d.]+)$/i,select:function(e,n){return browserslist.nodeVersions.filter(semverFilterLoose(">=",n.from)).filter(semverFilterLoose("<=",n.to)).map((function(e){return"node "+e}))}},browser_range:{matches:["browser","from","to"],regexp:/^(\w+)\s+([\d.]+)\s*-\s*([\d.]+)$/i,select:function(e,n){var i=checkName(n.browser,e);var s=parseFloat(normalizeVersion(i,n.from)||n.from);var a=parseFloat(normalizeVersion(i,n.to)||n.to);function filter(e){var n=parseFloat(e);return n>=s&&n<=a}return i.released.filter(filter).map(nameMapper(i.name))}},electron_ray:{matches:["sign","version"],regexp:/^electron\s*(>=?|<=?)\s*([\d.]+)$/i,select:function(e,n){var i=normalizeElectron(n.version);return Object.keys(o).filter(generateFilter(n.sign,i)).map((function(e){return"chrome "+o[e]}))}},node_ray:{matches:["sign","version"],regexp:/^node\s*(>=?|<=?)\s*([\d.]+)$/i,select:function(e,n){return browserslist.nodeVersions.filter(generateSemverFilter(n.sign,n.version)).map((function(e){return"node "+e}))}},browser_ray:{matches:["browser","sign","version"],regexp:/^(\w+)\s*(>=?|<=?)\s*([\d.]+)$/,select:function(e,n){var i=n.version;var s=checkName(n.browser,e);var a=browserslist.versionAliases[s.name][i];if(a)i=a;return s.released.filter(generateFilter(n.sign,i)).map((function(e){return s.name+" "+e}))}},firefox_esr:{matches:[],regexp:/^(firefox|ff|fx)\s+esr$/i,select:function(){return["firefox 128"]}},opera_mini_all:{matches:[],regexp:/(operamini|op_mini)\s+all/i,select:function(){return["op_mini all"]}},electron_version:{matches:["version"],regexp:/^electron\s+([\d.]+)$/i,select:function(e,n){var i=normalizeElectron(n.version);var s=o[i];if(!s){throw new p("Unknown version "+n.version+" of electron")}return["chrome "+s]}},node_major_version:{matches:["version"],regexp:/^node\s+(\d+)$/i,select:nodeQuery},node_minor_version:{matches:["version"],regexp:/^node\s+(\d+\.\d+)$/i,select:nodeQuery},node_patch_version:{matches:["version"],regexp:/^node\s+(\d+\.\d+\.\d+)$/i,select:nodeQuery},current_node:{matches:[],regexp:/^current\s+node$/i,select:function(e){return[f.currentNode(resolve,e)]}},maintained_node:{matches:[],regexp:/^maintained\s+node\s+versions$/i,select:function(e){var n=Date.now();var i=Object.keys(l).filter((function(e){return n<Date.parse(l[e].end)&&n>Date.parse(l[e].start)&&isEolReleased(e)})).map((function(e){return"node "+e.slice(1)}));return resolve(i,e)}},phantomjs_1_9:{matches:[],regexp:/^phantomjs\s+1.9$/i,select:function(){return["safari 5"]}},phantomjs_2_1:{matches:[],regexp:/^phantomjs\s+2.1$/i,select:function(){return["safari 6"]}},browser_version:{matches:["browser","version"],regexp:/^(\w+)\s+(tp|[\d.]+)$/i,select:function(e,n){var i=n.version;if(/^tp$/i.test(i))i="TP";var s=checkName(n.browser,e);var a=normalizeVersion(s,i);if(a){i=a}else{if(i.indexOf(".")===-1){a=i+".0"}else{a=i.replace(/\.0$/,"")}a=normalizeVersion(s,a);if(a){i=a}else if(e.ignoreUnknownVersions){return[]}else{throw new p("Unknown version "+i+" of "+n.browser)}}return[s.name+" "+i]}},browserslist_config:{matches:[],regexp:/^browserslist config$/i,needsPath:true,select:function(e){return browserslist(undefined,e)}},extends:{matches:["config"],regexp:/^extends (.+)$/i,needsPath:true,select:function(e,n){return resolve(f.loadQueries(e,n.config),e)}},defaults:{matches:[],regexp:/^defaults$/i,select:function(e){return resolve(browserslist.defaults,e)}},dead:{matches:[],regexp:/^dead$/i,select:function(e){var n=["Baidu >= 0","ie <= 11","ie_mob <= 11","bb <= 10","op_mob <= 12.1","samsung 4"];return resolve(n,e)}},unknown:{matches:[],regexp:/^(\w+)$/i,select:function(e,n){if(byName(n.query,e)){throw new p("Specify versions in Browserslist query for browser "+n.query)}else{throw unknownQuery(n.query)}}}};(function(){for(var e in a){var n=a[e];browserslist.data[e]={name:e,versions:normalize(a[e].versions),released:normalize(a[e].versions.slice(0,-3)),releaseDate:a[e].release_date};fillUsage(browserslist.usage.global,e,n.usage_global);browserslist.versionAliases[e]={};for(var i=0;i<n.versions.length;i++){var o=n.versions[i];if(!o)continue;if(o.indexOf("-")!==-1){var l=o.split("-");for(var c=0;c<l.length;c++){browserslist.versionAliases[e][l[c]]=o}}}}browserslist.nodeVersions=s.map((function(e){return e.version}))})();e.exports=browserslist},43805:function(e,n,i){var s=i(63256)["default"];var a=i(40692)["default"];var o=i(79896);var l=i(16928);var c=i(54143);var p=/^\s*\[(.+)]\s*$/;var f=/^browserslist-config-/;var d=/@[^/]+(?:\/[^/]+)?\/browserslist-config(?:-|$|\/)/;var h="Browserslist config should be a string or an array "+"of strings with browser queries";var m=false;var y={};var g={};var _={};function checkExtend(e){var n=" Use `dangerousExtend` option to disable.";if(!f.test(e)&&!d.test(e)){throw new c("Browserslist config needs `browserslist-config-` prefix. "+n)}if(e.replace(/^@[^/]+\//,"").indexOf(".")!==-1){throw new c("`.` not allowed in Browserslist config name. "+n)}if(e.indexOf("node_modules")!==-1){throw new c("`node_modules` not allowed in Browserslist config."+n)}}function isFile(e){return o.existsSync(e)&&o.statSync(e).isFile()}function isDirectory(e){return o.existsSync(e)&&o.statSync(e).isDirectory()}function eachParent(e,n,i){var s=l.resolve(e);var a=[];var o;do{if(!pathInRoot(s)){break}if(i&&s in i){o=i[s];break}a.push(s);if(!isDirectory(s)){continue}var c=n(s);if(typeof c!=="undefined"){o=c;break}}while(s!==(s=l.dirname(s)));if(i&&!process.env.BROWSERSLIST_DISABLE_CACHE){a.forEach((function(e){i[e]=o}))}return o}function pathInRoot(e){if(!process.env.BROWSERSLIST_ROOT_PATH)return true;var n=l.resolve(process.env.BROWSERSLIST_ROOT_PATH);if(l.relative(n,e).substring(0,2)===".."){return false}return true}function check(e){if(Array.isArray(e)){for(var n=0;n<e.length;n++){if(typeof e[n]!=="string"){throw new c(h)}}}else if(typeof e!=="string"){throw new c(h)}}function pickEnv(e,n){if(typeof e!=="object")return e;var i;if(typeof n.env==="string"){i=n.env}else if(process.env.BROWSERSLIST_ENV){i=process.env.BROWSERSLIST_ENV}else if(process.env.NODE_ENV){i=process.env.NODE_ENV}else{i="production"}if(n.throwOnMissing){if(i&&i!=="defaults"&&!e[i]){throw new c("Missing config for Browserslist environment `"+i+"`")}}return e[i]||e.defaults}function parsePackage(e){var n=o.readFileSync(e).toString().replace(/^\uFEFF/m,"");var i;if(n.indexOf('"browserslist"')>=0){i=JSON.parse(n).browserslist}else if(n.indexOf('"browserlist"')>=0){var s=JSON.parse(n);if(s.browserlist&&!s.browserslist){throw new c("`browserlist` key instead of `browserslist` in "+e)}}if(Array.isArray(i)||typeof i==="string"){i={defaults:i}}for(var a in i){check(i[a])}return i}function parsePackageOrReadConfig(n){if(n in _){return _[n]}var i=l.basename(n)==="package.json";var s=i?parsePackage(n):e.exports.readConfig(n);if(!process.env.BROWSERSLIST_DISABLE_CACHE){_[n]=s}return s}function latestReleaseTime(e){var n=0;for(var i in e){var s=e[i].releaseDate||{};for(var a in s){if(n<s[a]){n=s[a]}}}return n*1e3}function getMonthsPassed(e){var n=new Date;var i=new Date(e);var s=n.getFullYear()-i.getFullYear();var a=n.getMonth()-i.getMonth();return s*12+a}function normalizeStats(e,n){if(!e){e={}}if(n&&"dataByBrowser"in n){n=n.dataByBrowser}if(typeof n!=="object")return undefined;var i={};for(var s in n){var a=Object.keys(n[s]);if(a.length===1&&e[s]&&e[s].versions.length===1){var o=e[s].versions[0];i[s]={};i[s][o]=n[s][a[0]]}else{i[s]=n[s]}}return i}function normalizeUsageData(e,n){for(var i in e){var s=e[i];if("0"in s){var a=n[i].versions;s[a[a.length-1]]=s[0];delete s[0]}}}e.exports={loadQueries:function loadQueries(e,n){if(!e.dangerousExtend&&!process.env.BROWSERSLIST_DANGEROUS_EXTEND){checkExtend(n)}var s=require(i(593).resolve(n,{paths:[".",e.path]}));if(typeof s==="object"&&s!==null&&s.__esModule){s=s.default}if(s){if(Array.isArray(s)){return s}else if(typeof s==="object"){if(!s.defaults)s.defaults=[];return pickEnv(s,e,n)}}throw new c("`"+n+"` config exports not an array of queries"+" or an object of envs")},loadStat:function loadStat(e,n,s){if(!e.dangerousExtend&&!process.env.BROWSERSLIST_DANGEROUS_EXTEND){checkExtend(n)}var a=require(i(593).resolve(l.join(n,"browserslist-stats.json"),{paths:["."]}));return normalizeStats(s,a)},getStat:function getStat(e,n){var i;if(e.stats){i=e.stats}else if(process.env.BROWSERSLIST_STATS){i=process.env.BROWSERSLIST_STATS}else if(e.path&&l.resolve&&o.existsSync){i=eachParent(e.path,(function(e){var n=l.join(e,"browserslist-stats.json");return isFile(n)?n:undefined}),y)}if(typeof i==="string"){try{i=JSON.parse(o.readFileSync(i))}catch(e){throw new c("Can't read "+i)}}return normalizeStats(n,i)},loadConfig:function loadConfig(n){if(process.env.BROWSERSLIST){return process.env.BROWSERSLIST}else if(n.config||process.env.BROWSERSLIST_CONFIG){var i=n.config||process.env.BROWSERSLIST_CONFIG;return pickEnv(parsePackageOrReadConfig(i),n)}else if(n.path){return pickEnv(e.exports.findConfig(n.path),n)}else{return undefined}},loadCountry:function loadCountry(e,n,i){var s=n.replace(/[^\w-]/g,"");if(!e[s]){var o;try{o=require("caniuse-lite/data/regions/"+s+".js")}catch(e){throw new c("Unknown region name `"+s+"`.")}var l=a(o);normalizeUsageData(l,i);e[n]={};for(var p in l){for(var f in l[p]){e[n][p+" "+f]=l[p][f]}}}},loadFeature:function loadFeature(e,n){n=n.replace(/[^\w-]/g,"");if(e[n])return;var i;try{i=require("caniuse-lite/data/features/"+n+".js")}catch(e){throw new c("Unknown feature name `"+n+"`.")}var a=s(i).stats;e[n]={};for(var o in a){e[n][o]={};for(var l in a[o]){e[n][o][l]=a[o][l]}}},parseConfig:function parseConfig(e){var n={defaults:[]};var i=["defaults"];e.toString().replace(/#[^\n]*/g,"").split(/\n|,/).map((function(e){return e.trim()})).filter((function(e){return e!==""})).forEach((function(e){if(p.test(e)){i=e.match(p)[1].trim().split(" ");i.forEach((function(e){if(n[e]){throw new c("Duplicate section "+e+" in Browserslist config")}n[e]=[]}))}else{i.forEach((function(i){n[i].push(e)}))}}));return n},readConfig:function readConfig(n){if(!isFile(n)){throw new c("Can't read "+n+" config")}return e.exports.parseConfig(o.readFileSync(n))},findConfigFile:function findConfigFile(e){return eachParent(e,(function(e){var n=l.join(e,"browserslist");var i=l.join(e,"package.json");var s=l.join(e,".browserslistrc");var a;if(isFile(i)){try{a=parsePackage(i)}catch(e){if(e.name==="BrowserslistError")throw e;console.warn("[Browserslist] Could not parse "+i+". Ignoring it.")}}if(isFile(n)&&a){throw new c(e+" contains both browserslist and package.json with browsers")}else if(isFile(s)&&a){throw new c(e+" contains both .browserslistrc and package.json with browsers")}else if(isFile(n)&&isFile(s)){throw new c(e+" contains both .browserslistrc and browserslist")}else if(isFile(n)){return n}else if(isFile(s)){return s}else if(a){return i}}),g)},findConfig:function findConfig(e){var n=this.findConfigFile(e);return n?parsePackageOrReadConfig(n):undefined},clearCaches:function clearCaches(){m=false;y={};g={};_={};this.cache={}},oldDataWarning:function oldDataWarning(e){if(m)return;m=true;if(process.env.BROWSERSLIST_IGNORE_OLD_DATA)return;var n=latestReleaseTime(e);var i=getMonthsPassed(n);if(n!==0&&i>=6){var s=i+" "+(i>1?"months":"month");console.warn("Browserslist: browsers data (caniuse-lite) is "+s+" old. Please run:\n"+" npx update-browserslist-db@latest\n"+" Why you should do it regularly: "+"https://github.com/browserslist/update-db#readme")}},currentNode:function currentNode(){return"node "+process.versions.node},env:process.env}},5546:function(e){var n=/^\s+and\s+(.*)/i;var i=/^(?:,\s*|\s+or\s+)(.*)/i;function flatten(e){if(!Array.isArray(e))return[e];return e.reduce((function(e,n){return e.concat(flatten(n))}),[])}function find(e,n){for(var i=e.length,s=1;s<=i;s++){var a=e.substr(-s,s);if(n(a,s,i)){return e.slice(0,-s)}}return""}function matchQuery(e,n){var i={query:n};if(n.indexOf("not ")===0){i.not=true;n=n.slice(4)}for(var s in e){var a=e[s];var o=n.match(a.regexp);if(o){i.type=s;for(var l=0;l<a.matches.length;l++){i[a.matches[l]]=o[l+1]}return i}}i.type="unknown";return i}function matchBlock(e,s,a){var o;return find(s,(function(s,l,c){if(n.test(s)){o=matchQuery(e,s.match(n)[1]);o.compose="and";a.unshift(o);return true}else if(i.test(s)){o=matchQuery(e,s.match(i)[1]);o.compose="or";a.unshift(o);return true}else if(l===c){o=matchQuery(e,s.trim());o.compose="or";a.unshift(o);return true}return false}))}e.exports=function parse(e,n){if(!Array.isArray(n))n=[n];return flatten(n.map((function(n){var i=[];do{n=matchBlock(e,n,i)}while(n);return i})))}},59576:function(e){"use strict";
|
|
1
|
+
(function(){var __webpack_modules__={12703:function(e){function webpackEmptyAsyncContext(e){return Promise.resolve().then((function(){var n=new Error("Cannot find module '"+e+"'");n.code="MODULE_NOT_FOUND";throw n}))}webpackEmptyAsyncContext.keys=function(){return[]};webpackEmptyAsyncContext.resolve=webpackEmptyAsyncContext;webpackEmptyAsyncContext.id=12703;e.exports=webpackEmptyAsyncContext},38091:function(e,n,i){(function(n,s){true?e.exports=s(i(43356),i(65579)):0})(this,(function(e,n){"use strict";const i=SegmentObject("",-1,-1,"",null,false);const s=[];function SegmentObject(e,n,i,s,a,o){return{source:e,line:n,column:i,name:s,content:a,ignore:o}}function Source(e,n,i,s,a){return{map:e,sources:n,source:i,content:s,ignore:a}}function MapSource(e,n){return Source(e,n,"",null,false)}function OriginalSource(e,n,i){return Source(null,s,e,n,i)}function traceMappings(s){const a=new n.GenMapping({file:s.map.file});const{sources:o,map:l}=s;const c=l.names;const p=e.decodedMappings(l);for(let e=0;e<p.length;e++){const s=p[e];for(let l=0;l<s.length;l++){const p=s[l];const f=p[0];let d=i;if(p.length!==1){const e=o[p[1]];d=originalPositionFor(e,p[2],p[3],p.length===5?c[p[4]]:"");if(d==null)continue}const{column:h,line:m,name:y,content:g,source:_,ignore:C}=d;n.maybeAddSegment(a,e,f,_,m,h,y);if(_&&g!=null)n.setSourceContent(a,_,g);if(C)n.setIgnore(a,_,true)}}return a}function originalPositionFor(n,s,a,o){if(!n.map){return SegmentObject(n.source,s,a,o,n.content,n.ignore)}const l=e.traceSegment(n.map,s,a);if(l==null)return null;if(l.length===1)return i;return originalPositionFor(n.sources[l[1]],l[2],l[3],l.length===5?n.map.names[l[4]]:o)}function asArray(e){if(Array.isArray(e))return e;return[e]}function buildSourceMapTree(n,i){const s=asArray(n).map((n=>new e.TraceMap(n,"")));const a=s.pop();for(let e=0;e<s.length;e++){if(s[e].sources.length>1){throw new Error(`Transformation map ${e} must have exactly one source file.\n`+"Did you specify these with the most recent transformation maps first?")}}let o=build(a,i,"",0);for(let e=s.length-1;e>=0;e--){o=MapSource(s[e],[o])}return o}function build(n,i,s,a){const{resolvedSources:o,sourcesContent:l,ignoreList:c}=n;const p=a+1;const f=o.map(((n,a)=>{const o={importer:s,depth:p,source:n||"",content:undefined,ignore:undefined};const f=i(o.source,o);const{source:d,content:h,ignore:m}=o;if(f)return build(new e.TraceMap(f,d),i,d,p);const y=h!==undefined?h:l?l[a]:null;const g=m!==undefined?m:c?c.includes(a):false;return OriginalSource(d,y,g)}));return MapSource(n,f)}class SourceMap{constructor(e,i){const s=i.decodedMappings?n.toDecodedMap(e):n.toEncodedMap(e);this.version=s.version;this.file=s.file;this.mappings=s.mappings;this.names=s.names;this.ignoreList=s.ignoreList;this.sourceRoot=s.sourceRoot;this.sources=s.sources;if(!i.excludeContent){this.sourcesContent=s.sourcesContent}}toString(){return JSON.stringify(this)}}function remapping(e,n,i){const s=typeof i==="object"?i:{excludeContent:!!i,decodedMappings:false};const a=buildSourceMapTree(e,n);return new SourceMap(traceMappings(a),s)}return remapping}))},1745:function(e,n,i){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:true});n.KoaAdapter=void 0;const a=s(i(87404));const o=s(i(96638));const l=s(i(88522));const c=i(32500);const p=s(i(98521));const f=s(i(11451));const d=s(i(16928));class KoaAdapter{constructor(){this.basePath="";this.uiConfig={}}setBasePath(e){this.basePath=e;return this}setStaticPath(e,n){this.statics={route:e,path:n};return this}setViewsPath(e){this.viewPath=e;return this}setErrorHandler(e){this.errorHandler=e;return this}setApiRoutes(e){this.apiRoutes=e;return this}setEntryRoute(e){this.entryRoute=e;return this}setQueues(e){this.bullBoardQueues=e;return this}setUIConfig(e={}){this.uiConfig=e;return this}registerPlugin(e={mount:this.basePath}){if(!this.statics){throw new Error(`Please call 'setStaticPath' before using 'registerPlugin'`)}else if(!this.entryRoute){throw new Error(`Please call 'setEntryRoute' before using 'registerPlugin'`)}else if(!this.viewPath){throw new Error(`Please call 'setViewsPath' before using 'registerPlugin'`)}else if(!this.apiRoutes){throw new Error(`Please call 'setApiRoutes' before using 'registerPlugin'`)}else if(!this.bullBoardQueues){throw new Error(`Please call 'setQueues' before using 'registerPlugin'`)}else if(!this.errorHandler){throw new Error(`Please call 'setErrorHandler' before using 'registerPlugin'`)}if(!e.mount){e.mount=this.basePath}const n=new a.default;const i=new l.default({strict:true});n.use((0,c.bodyParser)());n.use((async(e,n)=>{try{await n()}catch(n){if(this.errorHandler){const{status:i,body:s}=this.errorHandler(n);e.status=i||500;e.body=s;e.app.emit("error",n,e)}}}));n.use((0,f.default)(this.viewPath,{extension:d.default.extname(this.entryRoute.handler({basePath:this.basePath,uiConfig:this.uiConfig}).name).substring(1)}));const{method:s,route:h,handler:m}=this.entryRoute;const y=Array.isArray(h)?h:[h];y.forEach((e=>{i[s](e,(async e=>{const{name:n,params:i}=m({basePath:this.basePath,uiConfig:this.uiConfig});await e.render(n,i)}))}));n.use((0,o.default)(this.statics.route,(0,p.default)(this.statics.path)));this.apiRoutes.forEach((e=>{const n=Array.isArray(e.method)?e.method:[e.method];n.forEach((n=>{i[n](e.route,(async n=>{const i=await e.handler({queues:this.bullBoardQueues,params:n.params,query:n.query,body:n.request.body});n.status=i.status||200;return n.body=i.body}))}))}));n.use(i.routes()).use(i.allowedMethods());return(0,o.default)(e.mount||"/",n)}}n.KoaAdapter=KoaAdapter},59327:function(e,n){"use strict";const i={suspectRx:/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*\:/};n.parse=function(e,...s){const a=typeof s[0]==="object"&&s[0];const o=s.length>1||!a?s[0]:undefined;const l=s.length>1&&s[1]||a||{};const c=JSON.parse(e,o);if(l.protoAction==="ignore"){return c}if(!c||typeof c!=="object"){return c}if(!e.match(i.suspectRx)){return c}n.scan(c,l);return c};n.scan=function(e,n={}){let i=[e];while(i.length){const e=i;i=[];for(const s of e){if(Object.prototype.hasOwnProperty.call(s,"__proto__")){if(n.protoAction!=="remove"){throw new SyntaxError("Object contains forbidden prototype property")}delete s.__proto__}for(const e in s){const n=s[e];if(n&&typeof n==="object"){i.push(s[e])}}}}};n.safeParse=function(e,i){try{return n.parse(e,i)}catch(e){return null}}},65579:function(e,n,i){e=i.nmd(e);(function(s,a,o,l){true?a(n,e,i(75470),i(72149)):0})(this,(function(e,n,i,s){"use strict";if(!Object.getOwnPropertyDescriptors)Object.getOwnPropertyDescriptors=function(e){return Reflect.ownKeys(e).reduce((function(n,i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(e,i));return n}),{})};"use strict";var a=Object.defineProperty;var o=Object.defineProperties;var l=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyDescriptors;var p=Object.getOwnPropertyNames;var f=Object.getOwnPropertySymbols;var d=Object.prototype.hasOwnProperty;var h=Object.prototype.propertyIsEnumerable;var __defNormalProp=(e,n,i)=>n in e?a(e,n,{enumerable:true,configurable:true,writable:true,value:i}):e[n]=i;var __spreadValues=(e,n)=>{for(var i in n||(n={}))if(d.call(n,i))__defNormalProp(e,i,n[i]);if(f)for(var i of f(n)){if(h.call(n,i))__defNormalProp(e,i,n[i])}return e};var __spreadProps=(e,n)=>o(e,c(n));var __export=(e,n)=>{for(var i in n)a(e,i,{get:n[i],enumerable:true})};var __copyProps=(e,n,i,s)=>{if(n&&typeof n==="object"||typeof n==="function"){for(let o of p(n))if(!d.call(e,o)&&o!==i)a(e,o,{get:()=>n[o],enumerable:!(s=l(n,o))||s.enumerable})}return e};var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var m={};__export(m,{GenMapping:()=>B,addMapping:()=>addMapping,addSegment:()=>addSegment,allMappings:()=>allMappings,fromMap:()=>fromMap,maybeAddMapping:()=>maybeAddMapping,maybeAddSegment:()=>maybeAddSegment,setIgnore:()=>setIgnore,setSourceContent:()=>setSourceContent,toDecodedMap:()=>toDecodedMap,toEncodedMap:()=>toEncodedMap});n.exports=__toCommonJS(m);var y=class{constructor(){this._indexes={__proto__:null};this.array=[]}};function cast(e){return e}function get(e,n){return cast(e)._indexes[n]}function put(e,n){const i=get(e,n);if(i!==void 0)return i;const{array:s,_indexes:a}=cast(e);const o=s.push(n);return a[n]=o-1}function remove(e,n){const i=get(e,n);if(i===void 0)return;const{array:s,_indexes:a}=cast(e);for(let e=i+1;e<s.length;e++){const n=s[e];s[e-1]=n;a[n]--}a[n]=void 0;s.pop()}var g=i;var _=s;var C=0;var k=1;var A=2;var I=3;var D=4;var O=-1;var B=class{constructor({file:e,sourceRoot:n}={}){this._names=new y;this._sources=new y;this._sourcesContent=[];this._mappings=[];this.file=e;this.sourceRoot=n;this._ignoreList=new y}};function cast2(e){return e}function addSegment(e,n,i,s,a,o,l,c){return addSegmentInternal(false,e,n,i,s,a,o,l,c)}function addMapping(e,n){return addMappingInternal(false,e,n)}var maybeAddSegment=(e,n,i,s,a,o,l,c)=>addSegmentInternal(true,e,n,i,s,a,o,l,c);var maybeAddMapping=(e,n)=>addMappingInternal(true,e,n);function setSourceContent(e,n,i){const{_sources:s,_sourcesContent:a}=cast2(e);const o=put(s,n);a[o]=i}function setIgnore(e,n,i=true){const{_sources:s,_sourcesContent:a,_ignoreList:o}=cast2(e);const l=put(s,n);if(l===a.length)a[l]=null;if(i)put(o,l);else remove(o,l)}function toDecodedMap(e){const{_mappings:n,_sources:i,_sourcesContent:s,_names:a,_ignoreList:o}=cast2(e);removeEmptyFinalLines(n);return{version:3,file:e.file||void 0,names:a.array,sourceRoot:e.sourceRoot||void 0,sources:i.array,sourcesContent:s,mappings:n,ignoreList:o.array}}function toEncodedMap(e){const n=toDecodedMap(e);return __spreadProps(__spreadValues({},n),{mappings:(0,g.encode)(n.mappings)})}function fromMap(e){const n=new _.TraceMap(e);const i=new B({file:n.file,sourceRoot:n.sourceRoot});putAll(cast2(i)._names,n.names);putAll(cast2(i)._sources,n.sources);cast2(i)._sourcesContent=n.sourcesContent||n.sources.map((()=>null));cast2(i)._mappings=(0,_.decodedMappings)(n);if(n.ignoreList)putAll(cast2(i)._ignoreList,n.ignoreList);return i}function allMappings(e){const n=[];const{_mappings:i,_sources:s,_names:a}=cast2(e);for(let e=0;e<i.length;e++){const o=i[e];for(let i=0;i<o.length;i++){const l=o[i];const c={line:e+1,column:l[C]};let p=void 0;let f=void 0;let d=void 0;if(l.length!==1){p=s.array[l[k]];f={line:l[A]+1,column:l[I]};if(l.length===5)d=a.array[l[D]]}n.push({generated:c,source:p,original:f,name:d})}}return n}function addSegmentInternal(e,n,i,s,a,o,l,c,p){const{_mappings:f,_sources:d,_sourcesContent:h,_names:m}=cast2(n);const y=getIndex(f,i);const g=getColumnIndex(y,s);if(!a){if(e&&skipSourceless(y,g))return;return insert(y,g,[s])}assert(o);assert(l);const _=put(d,a);const C=c?put(m,c):O;if(_===h.length)h[_]=p!=null?p:null;if(e&&skipSource(y,g,_,o,l,C)){return}return insert(y,g,c?[s,_,o,l,C]:[s,_,o,l])}function assert(e){}function getIndex(e,n){for(let i=e.length;i<=n;i++){e[i]=[]}return e[n]}function getColumnIndex(e,n){let i=e.length;for(let s=i-1;s>=0;i=s--){const i=e[s];if(n>=i[C])break}return i}function insert(e,n,i){for(let i=e.length;i>n;i--){e[i]=e[i-1]}e[n]=i}function removeEmptyFinalLines(e){const{length:n}=e;let i=n;for(let n=i-1;n>=0;i=n,n--){if(e[n].length>0)break}if(i<n)e.length=i}function putAll(e,n){for(let i=0;i<n.length;i++)put(e,n[i])}function skipSourceless(e,n){if(n===0)return true;const i=e[n-1];return i.length===1}function skipSource(e,n,i,s,a,o){if(n===0)return false;const l=e[n-1];if(l.length===1)return false;return i===l[k]&&s===l[A]&&a===l[I]&&o===(l.length===5?l[D]:O)}function addMappingInternal(e,n,i){const{generated:s,source:a,original:o,name:l,content:c}=i;if(!a){return addSegmentInternal(e,n,s.line-1,s.column,null,null,null,null,null)}assert(o);return addSegmentInternal(e,n,s.line-1,s.column,a,o.line-1,o.column,l,c)}}))},73654:function(e){(function(n,i){true?e.exports=i():0})(this,(function(){"use strict";const e=/^[\w+.-]+:\/\//;const n=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/;const i=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function isAbsoluteUrl(n){return e.test(n)}function isSchemeRelativeUrl(e){return e.startsWith("//")}function isAbsolutePath(e){return e.startsWith("/")}function isFileUrl(e){return e.startsWith("file:")}function isRelative(e){return/^[.?#]/.test(e)}function parseAbsoluteUrl(e){const i=n.exec(e);return makeUrl(i[1],i[2]||"",i[3],i[4]||"",i[5]||"/",i[6]||"",i[7]||"")}function parseFileUrl(e){const n=i.exec(e);const s=n[2];return makeUrl("file:","",n[1]||"","",isAbsolutePath(s)?s:"/"+s,n[3]||"",n[4]||"")}function makeUrl(e,n,i,s,a,o,l){return{scheme:e,user:n,host:i,port:s,path:a,query:o,hash:l,type:7}}function parseUrl(e){if(isSchemeRelativeUrl(e)){const n=parseAbsoluteUrl("http:"+e);n.scheme="";n.type=6;return n}if(isAbsolutePath(e)){const n=parseAbsoluteUrl("http://foo.com"+e);n.scheme="";n.host="";n.type=5;return n}if(isFileUrl(e))return parseFileUrl(e);if(isAbsoluteUrl(e))return parseAbsoluteUrl(e);const n=parseAbsoluteUrl("http://foo.com/"+e);n.scheme="";n.host="";n.type=e?e.startsWith("?")?3:e.startsWith("#")?2:4:1;return n}function stripPathFilename(e){if(e.endsWith("/.."))return e;const n=e.lastIndexOf("/");return e.slice(0,n+1)}function mergePaths(e,n){normalizePath(n,n.type);if(e.path==="/"){e.path=n.path}else{e.path=stripPathFilename(n.path)+e.path}}function normalizePath(e,n){const i=n<=4;const s=e.path.split("/");let a=1;let o=0;let l=false;for(let e=1;e<s.length;e++){const n=s[e];if(!n){l=true;continue}l=false;if(n===".")continue;if(n===".."){if(o){l=true;o--;a--}else if(i){s[a++]=n}continue}s[a++]=n;o++}let c="";for(let e=1;e<a;e++){c+="/"+s[e]}if(!c||l&&!c.endsWith("/..")){c+="/"}e.path=c}function resolve(e,n){if(!e&&!n)return"";const i=parseUrl(e);let s=i.type;if(n&&s!==7){const e=parseUrl(n);const a=e.type;switch(s){case 1:i.hash=e.hash;case 2:i.query=e.query;case 3:case 4:mergePaths(i,e);case 5:i.user=e.user;i.host=e.host;i.port=e.port;case 6:i.scheme=e.scheme}if(a>s)s=a}normalizePath(i,s);const a=i.query+i.hash;switch(s){case 2:case 3:return a;case 4:{const s=i.path.slice(1);if(!s)return a||".";if(isRelative(n||e)&&!isRelative(s)){return"./"+s+a}return s+a}case 5:return i.path+a;default:return i.scheme+"//"+i.user+i.host+i.port+i.path+a}}return resolve}))},75470:function(e,n,i){e=i.nmd(e);(function(n,i){if(true){i(e);e.exports=def(e)}else{}function def(e){return"default"in e.exports?e.exports.default:e.exports}})(this,(function(e){"use strict";var n=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var __export=(e,i)=>{for(var s in i)n(e,s,{get:i[s],enumerable:true})};var __copyProps=(e,o,l,c)=>{if(o&&typeof o==="object"||typeof o==="function"){for(let p of s(o))if(!a.call(e,p)&&p!==l)n(e,p,{get:()=>o[p],enumerable:!(c=i(o,p))||c.enumerable})}return e};var __toCommonJS=e=>__copyProps(n({},"__esModule",{value:true}),e);var o={};__export(o,{decode:()=>decode,decodeGeneratedRanges:()=>decodeGeneratedRanges,decodeOriginalScopes:()=>decodeOriginalScopes,encode:()=>encode,encodeGeneratedRanges:()=>encodeGeneratedRanges,encodeOriginalScopes:()=>encodeOriginalScopes});e.exports=__toCommonJS(o);var l=",".charCodeAt(0);var c=";".charCodeAt(0);var p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var f=new Uint8Array(64);var d=new Uint8Array(128);for(let e=0;e<p.length;e++){const n=p.charCodeAt(e);f[e]=n;d[n]=e}function decodeInteger(e,n){let i=0;let s=0;let a=0;do{const n=e.next();a=d[n];i|=(a&31)<<s;s+=5}while(a&32);const o=i&1;i>>>=1;if(o){i=-2147483648|-i}return n+i}function encodeInteger(e,n,i){let s=n-i;s=s<0?-s<<1|1:s<<1;do{let n=s&31;s>>>=5;if(s>0)n|=32;e.write(f[n])}while(s>0);return n}function hasMoreVlq(e,n){if(e.pos>=n)return false;return e.peek()!==l}var h=1024*16;var m=typeof TextDecoder!=="undefined"?new TextDecoder:typeof Buffer!=="undefined"?{decode(e){const n=Buffer.from(e.buffer,e.byteOffset,e.byteLength);return n.toString()}}:{decode(e){let n="";for(let i=0;i<e.length;i++){n+=String.fromCharCode(e[i])}return n}};var y=class{constructor(){this.pos=0;this.out="";this.buffer=new Uint8Array(h)}write(e){const{buffer:n}=this;n[this.pos++]=e;if(this.pos===h){this.out+=m.decode(n);this.pos=0}}flush(){const{buffer:e,out:n,pos:i}=this;return i>0?n+m.decode(e.subarray(0,i)):n}};var g=class{constructor(e){this.pos=0;this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){const{buffer:n,pos:i}=this;const s=n.indexOf(e,i);return s===-1?n.length:s}};var _=[];function decodeOriginalScopes(e){const{length:n}=e;const i=new g(e);const s=[];const a=[];let o=0;for(;i.pos<n;i.pos++){o=decodeInteger(i,o);const e=decodeInteger(i,0);if(!hasMoreVlq(i,n)){const n=a.pop();n[2]=o;n[3]=e;continue}const l=decodeInteger(i,0);const c=decodeInteger(i,0);const p=c&1;const f=p?[o,e,0,0,l,decodeInteger(i,0)]:[o,e,0,0,l];let d=_;if(hasMoreVlq(i,n)){d=[];do{const e=decodeInteger(i,0);d.push(e)}while(hasMoreVlq(i,n))}f.vars=d;s.push(f);a.push(f)}return s}function encodeOriginalScopes(e){const n=new y;for(let i=0;i<e.length;){i=_encodeOriginalScopes(e,i,n,[0])}return n.flush()}function _encodeOriginalScopes(e,n,i,s){const a=e[n];const{0:o,1:c,2:p,3:f,4:d,vars:h}=a;if(n>0)i.write(l);s[0]=encodeInteger(i,o,s[0]);encodeInteger(i,c,0);encodeInteger(i,d,0);const m=a.length===6?1:0;encodeInteger(i,m,0);if(a.length===6)encodeInteger(i,a[5],0);for(const e of h){encodeInteger(i,e,0)}for(n++;n<e.length;){const a=e[n];const{0:o,1:l}=a;if(o>p||o===p&&l>=f){break}n=_encodeOriginalScopes(e,n,i,s)}i.write(l);s[0]=encodeInteger(i,p,s[0]);encodeInteger(i,f,0);return n}function decodeGeneratedRanges(e){const{length:n}=e;const i=new g(e);const s=[];const a=[];let o=0;let l=0;let c=0;let p=0;let f=0;let d=0;let h=0;let m=0;do{const e=i.indexOf(";");let n=0;for(;i.pos<e;i.pos++){n=decodeInteger(i,n);if(!hasMoreVlq(i,e)){const e=a.pop();e[2]=o;e[3]=n;continue}const y=decodeInteger(i,0);const g=y&1;const C=y&2;const k=y&4;let A=null;let I=_;let D;if(g){const e=decodeInteger(i,l);c=decodeInteger(i,l===e?c:0);l=e;D=[o,n,0,0,e,c]}else{D=[o,n,0,0]}D.isScope=!!k;if(C){const e=p;const n=f;p=decodeInteger(i,p);const s=e===p;f=decodeInteger(i,s?f:0);d=decodeInteger(i,s&&n===f?d:0);A=[p,f,d]}D.callsite=A;if(hasMoreVlq(i,e)){I=[];do{h=o;m=n;const e=decodeInteger(i,0);let s;if(e<-1){s=[[decodeInteger(i,0)]];for(let n=-1;n>e;n--){const e=h;h=decodeInteger(i,h);m=decodeInteger(i,h===e?m:0);const n=decodeInteger(i,0);s.push([n,h,m])}}else{s=[[e]]}I.push(s)}while(hasMoreVlq(i,e))}D.bindings=I;s.push(D);a.push(D)}o++;i.pos=e+1}while(i.pos<n);return s}function encodeGeneratedRanges(e){if(e.length===0)return"";const n=new y;for(let i=0;i<e.length;){i=_encodeGeneratedRanges(e,i,n,[0,0,0,0,0,0,0])}return n.flush()}function _encodeGeneratedRanges(e,n,i,s){const a=e[n];const{0:o,1:c,2:p,3:f,isScope:d,callsite:h,bindings:m}=a;if(s[0]<o){catchupLine(i,s[0],o);s[0]=o;s[1]=0}else if(n>0){i.write(l)}s[1]=encodeInteger(i,a[1],s[1]);const y=(a.length===6?1:0)|(h?2:0)|(d?4:0);encodeInteger(i,y,0);if(a.length===6){const{4:e,5:n}=a;if(e!==s[2]){s[3]=0}s[2]=encodeInteger(i,e,s[2]);s[3]=encodeInteger(i,n,s[3])}if(h){const{0:e,1:n,2:o}=a.callsite;if(e!==s[4]){s[5]=0;s[6]=0}else if(n!==s[5]){s[6]=0}s[4]=encodeInteger(i,e,s[4]);s[5]=encodeInteger(i,n,s[5]);s[6]=encodeInteger(i,o,s[6])}if(m){for(const e of m){if(e.length>1)encodeInteger(i,-e.length,0);const n=e[0][0];encodeInteger(i,n,0);let s=o;let a=c;for(let n=1;n<e.length;n++){const o=e[n];s=encodeInteger(i,o[1],s);a=encodeInteger(i,o[2],a);encodeInteger(i,o[0],0)}}}for(n++;n<e.length;){const a=e[n];const{0:o,1:l}=a;if(o>p||o===p&&l>=f){break}n=_encodeGeneratedRanges(e,n,i,s)}if(s[0]<p){catchupLine(i,s[0],p);s[0]=p;s[1]=0}else{i.write(l)}s[1]=encodeInteger(i,f,s[1]);return n}function catchupLine(e,n,i){do{e.write(c)}while(++n<i)}function decode(e){const{length:n}=e;const i=new g(e);const s=[];let a=0;let o=0;let l=0;let c=0;let p=0;do{const e=i.indexOf(";");const n=[];let f=true;let d=0;a=0;while(i.pos<e){let s;a=decodeInteger(i,a);if(a<d)f=false;d=a;if(hasMoreVlq(i,e)){o=decodeInteger(i,o);l=decodeInteger(i,l);c=decodeInteger(i,c);if(hasMoreVlq(i,e)){p=decodeInteger(i,p);s=[a,o,l,c,p]}else{s=[a,o,l,c]}}else{s=[a]}n.push(s);i.pos++}if(!f)sort(n);s.push(n);i.pos=e+1}while(i.pos<=n);return s}function sort(e){e.sort(sortComparator)}function sortComparator(e,n){return e[0]-n[0]}function encode(e){const n=new y;let i=0;let s=0;let a=0;let o=0;for(let p=0;p<e.length;p++){const f=e[p];if(p>0)n.write(c);if(f.length===0)continue;let d=0;for(let e=0;e<f.length;e++){const c=f[e];if(e>0)n.write(l);d=encodeInteger(n,c[0],d);if(c.length===1)continue;i=encodeInteger(n,c[1],i);s=encodeInteger(n,c[2],s);a=encodeInteger(n,c[3],a);if(c.length===4)continue;o=encodeInteger(n,c[4],o)}}return n.flush()}}))},43356:function(e,n,i){e=i.nmd(e);(function(s,a,o,l){true?a(n,e,i(73654),i(75470)):0})(this,(function(e,n,i,s){"use strict";if(!Object.getOwnPropertyDescriptors)Object.getOwnPropertyDescriptors=function(e){return Reflect.ownKeys(e).reduce((function(n,i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(e,i));return n}),{})};"use strict";var a=Object.create;var o=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var p=Object.getPrototypeOf;var f=Object.prototype.hasOwnProperty;var __export=(e,n)=>{for(var i in n)o(e,i,{get:n[i],enumerable:true})};var __copyProps=(e,n,i,s)=>{if(n&&typeof n==="object"||typeof n==="function"){for(let a of c(n))if(!f.call(e,a)&&a!==i)o(e,a,{get:()=>n[a],enumerable:!(s=l(n,a))||s.enumerable})}return e};var __toESM=(e,n,i)=>(i=e!=null?a(p(e)):{},__copyProps(n||!e||!e.__esModule?o(i,"default",{value:e,enumerable:true}):i,e));var __toCommonJS=e=>__copyProps(o({},"__esModule",{value:true}),e);var d={};__export(d,{AnyMap:()=>FlattenMap,FlattenMap:()=>FlattenMap,GREATEST_LOWER_BOUND:()=>R,LEAST_UPPER_BOUND:()=>L,TraceMap:()=>j,allGeneratedPositionsFor:()=>allGeneratedPositionsFor,decodedMap:()=>decodedMap,decodedMappings:()=>decodedMappings,eachMapping:()=>eachMapping,encodedMap:()=>encodedMap,encodedMappings:()=>encodedMappings,generatedPositionFor:()=>generatedPositionFor,isIgnored:()=>isIgnored,originalPositionFor:()=>originalPositionFor,presortedDecodedMap:()=>presortedDecodedMap,sourceContentFor:()=>sourceContentFor,traceSegment:()=>traceSegment});n.exports=__toCommonJS(d);var h=s;var m=__toESM(i);function stripFilename(e){if(!e)return"";const n=e.lastIndexOf("/");return e.slice(0,n+1)}function resolver(e,n){const i=stripFilename(e);const s=n?n+"/":"";return e=>(0,m.default)(s+(e||""),i)}var y=0;var g=1;var _=2;var C=3;var k=4;var A=1;var I=2;function maybeSort(e,n){const i=nextUnsortedSegmentLine(e,0);if(i===e.length)return e;if(!n)e=e.slice();for(let s=i;s<e.length;s=nextUnsortedSegmentLine(e,s+1)){e[s]=sortSegments(e[s],n)}return e}function nextUnsortedSegmentLine(e,n){for(let i=n;i<e.length;i++){if(!isSorted(e[i]))return i}return e.length}function isSorted(e){for(let n=1;n<e.length;n++){if(e[n][y]<e[n-1][y]){return false}}return true}function sortSegments(e,n){if(!n)e=e.slice();return e.sort(sortComparator)}function sortComparator(e,n){return e[y]-n[y]}var D=false;function binarySearch(e,n,i,s){while(i<=s){const a=i+(s-i>>1);const o=e[a][y]-n;if(o===0){D=true;return a}if(o<0){i=a+1}else{s=a-1}}D=false;return i-1}function upperBound(e,n,i){for(let s=i+1;s<e.length;i=s++){if(e[s][y]!==n)break}return i}function lowerBound(e,n,i){for(let s=i-1;s>=0;i=s--){if(e[s][y]!==n)break}return i}function memoizedState(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function memoizedBinarySearch(e,n,i,s){const{lastKey:a,lastNeedle:o,lastIndex:l}=i;let c=0;let p=e.length-1;if(s===a){if(n===o){D=l!==-1&&e[l][y]===n;return l}if(n>=o){c=l===-1?0:l}else{p=l}}i.lastKey=s;i.lastNeedle=n;return i.lastIndex=binarySearch(e,n,c,p)}function buildBySources(e,n){const i=n.map(buildNullArray);for(let s=0;s<e.length;s++){const a=e[s];for(let e=0;e<a.length;e++){const o=a[e];if(o.length===1)continue;const l=o[g];const c=o[_];const p=o[C];const f=i[l];const d=f[c]||(f[c]=[]);const h=n[l];let m=upperBound(d,p,memoizedBinarySearch(d,p,h,c));h.lastIndex=++m;insert(d,m,[p,s,o[y]])}}return i}function insert(e,n,i){for(let i=e.length;i>n;i--){e[i]=e[i-1]}e[n]=i}function buildNullArray(){return{__proto__:null}}function parse(e){return typeof e==="string"?JSON.parse(e):e}var FlattenMap=function(e,n){const i=parse(e);if(!("sections"in i)){return new j(i,n)}const s=[];const a=[];const o=[];const l=[];const c=[];recurse(i,n,s,a,o,l,c,0,0,Infinity,Infinity);const p={version:3,file:i.file,names:l,sources:a,sourcesContent:o,mappings:s,ignoreList:c};return presortedDecodedMap(p)};function recurse(e,n,i,s,a,o,l,c,p,f,d){const{sections:h}=e;for(let e=0;e<h.length;e++){const{map:m,offset:y}=h[e];let g=f;let _=d;if(e+1<h.length){const n=h[e+1].offset;g=Math.min(f,c+n.line);if(g===f){_=Math.min(d,p+n.column)}else if(g<f){_=p+n.column}}addSection(m,n,i,s,a,o,l,c+y.line,p+y.column,g,_)}}function addSection(e,n,i,s,a,o,l,c,p,f,d){const h=parse(e);if("sections"in h)return recurse(...arguments);const m=new j(h,n);const A=s.length;const I=o.length;const D=decodedMappings(m);const{resolvedSources:O,sourcesContent:B,ignoreList:L}=m;append(s,O);append(o,m.names);if(B)append(a,B);else for(let e=0;e<O.length;e++)a.push(null);if(L)for(let e=0;e<L.length;e++)l.push(L[e]+A);for(let e=0;e<D.length;e++){const n=c+e;if(n>f)return;const s=getLine(i,n);const a=e===0?p:0;const o=D[e];for(let e=0;e<o.length;e++){const i=o[e];const l=a+i[y];if(n===f&&l>=d)return;if(i.length===1){s.push([l]);continue}const c=A+i[g];const p=i[_];const h=i[C];s.push(i.length===4?[l,c,p,h]:[l,c,p,h,I+i[k]])}}}function append(e,n){for(let i=0;i<n.length;i++)e.push(n[i])}function getLine(e,n){for(let i=e.length;i<=n;i++)e[i]=[];return e[n]}var O="`line` must be greater than 0 (lines start at line 1)";var B="`column` must be greater than or equal to 0 (columns start at column 0)";var L=-1;var R=1;var j=class{constructor(e,n){const i=typeof e==="string";if(!i&&e._decodedMemo)return e;const s=parse(e);const{version:a,file:o,names:l,sourceRoot:c,sources:p,sourcesContent:f}=s;this.version=a;this.file=o;this.names=l||[];this.sourceRoot=c;this.sources=p;this.sourcesContent=f;this.ignoreList=s.ignoreList||s.x_google_ignoreList||void 0;const d=resolver(n,c);this.resolvedSources=p.map(d);const{mappings:h}=s;if(typeof h==="string"){this._encoded=h;this._decoded=void 0}else if(Array.isArray(h)){this._encoded=void 0;this._decoded=maybeSort(h,i)}else if(s.sections){throw new Error(`TraceMap passed sectioned source map, please use FlattenMap export instead`)}else{throw new Error(`invalid source map: ${JSON.stringify(s)}`)}this._decodedMemo=memoizedState();this._bySources=void 0;this._bySourceMemos=void 0}};function cast(e){return e}function encodedMappings(e){var n,i;return(i=(n=cast(e))._encoded)!=null?i:n._encoded=(0,h.encode)(cast(e)._decoded)}function decodedMappings(e){var n;return(n=cast(e))._decoded||(n._decoded=(0,h.decode)(cast(e)._encoded))}function traceSegment(e,n,i){const s=decodedMappings(e);if(n>=s.length)return null;const a=s[n];const o=traceSegmentInternal(a,cast(e)._decodedMemo,n,i,R);return o===-1?null:a[o]}function originalPositionFor(e,n){let{line:i,column:s,bias:a}=n;i--;if(i<0)throw new Error(O);if(s<0)throw new Error(B);const o=decodedMappings(e);if(i>=o.length)return OMapping(null,null,null,null);const l=o[i];const c=traceSegmentInternal(l,cast(e)._decodedMemo,i,s,a||R);if(c===-1)return OMapping(null,null,null,null);const p=l[c];if(p.length===1)return OMapping(null,null,null,null);const{names:f,resolvedSources:d}=e;return OMapping(d[p[g]],p[_]+1,p[C],p.length===5?f[p[k]]:null)}function generatedPositionFor(e,n){const{source:i,line:s,column:a,bias:o}=n;return generatedPosition(e,i,s,a,o||R,false)}function allGeneratedPositionsFor(e,n){const{source:i,line:s,column:a,bias:o}=n;return generatedPosition(e,i,s,a,o||L,true)}function eachMapping(e,n){const i=decodedMappings(e);const{names:s,resolvedSources:a}=e;for(let e=0;e<i.length;e++){const o=i[e];for(let i=0;i<o.length;i++){const l=o[i];const c=e+1;const p=l[0];let f=null;let d=null;let h=null;let m=null;if(l.length!==1){f=a[l[1]];d=l[2]+1;h=l[3]}if(l.length===5)m=s[l[4]];n({generatedLine:c,generatedColumn:p,source:f,originalLine:d,originalColumn:h,name:m})}}}function sourceIndex(e,n){const{sources:i,resolvedSources:s}=e;let a=i.indexOf(n);if(a===-1)a=s.indexOf(n);return a}function sourceContentFor(e,n){const{sourcesContent:i}=e;if(i==null)return null;const s=sourceIndex(e,n);return s===-1?null:i[s]}function isIgnored(e,n){const{ignoreList:i}=e;if(i==null)return false;const s=sourceIndex(e,n);return s===-1?false:i.includes(s)}function presortedDecodedMap(e,n){const i=new j(clone(e,[]),n);cast(i)._decoded=e.mappings;return i}function decodedMap(e){return clone(e,decodedMappings(e))}function encodedMap(e){return clone(e,encodedMappings(e))}function clone(e,n){return{version:e.version,file:e.file,names:e.names,sourceRoot:e.sourceRoot,sources:e.sources,sourcesContent:e.sourcesContent,mappings:n,ignoreList:e.ignoreList||e.x_google_ignoreList}}function OMapping(e,n,i,s){return{source:e,line:n,column:i,name:s}}function GMapping(e,n){return{line:e,column:n}}function traceSegmentInternal(e,n,i,s,a){let o=memoizedBinarySearch(e,s,n,i);if(D){o=(a===L?upperBound:lowerBound)(e,s,o)}else if(a===L)o++;if(o===-1||o===e.length)return-1;return o}function sliceGeneratedPositions(e,n,i,s,a){let o=traceSegmentInternal(e,n,i,s,R);if(!D&&a===L)o++;if(o===-1||o===e.length)return[];const l=D?s:e[o][y];if(!D)o=lowerBound(e,l,o);const c=upperBound(e,l,o);const p=[];for(;o<=c;o++){const n=e[o];p.push(GMapping(n[A]+1,n[I]))}return p}function generatedPosition(e,n,i,s,a,o){var l;i--;if(i<0)throw new Error(O);if(s<0)throw new Error(B);const{sources:c,resolvedSources:p}=e;let f=c.indexOf(n);if(f===-1)f=p.indexOf(n);if(f===-1)return o?[]:GMapping(null,null);const d=(l=cast(e))._bySources||(l._bySources=buildBySources(decodedMappings(e),cast(e)._bySourceMemos=c.map(memoizedState)));const h=d[f][i];if(h==null)return o?[]:GMapping(null,null);const m=cast(e)._bySourceMemos[f];if(o)return sliceGeneratedPositions(h,m,i,s,a);const y=traceSegmentInternal(h,m,i,s,a);if(y===-1)return GMapping(null,null);const g=h[y];return GMapping(g[A]+1,g[I])}}))},72149:function(e,n,i){e=i.nmd(e);(function(n,s){if(true){s(e,i(73654),i(75470));e.exports=def(e)}else{}function def(e){return"default"in e.exports?e.exports.default:e.exports}})(this,(function(e,n,i){"use strict";var s=Object.create;var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var c=Object.getPrototypeOf;var p=Object.prototype.hasOwnProperty;var __commonJS=(e,n)=>function __require(){return n||(0,e[l(e)[0]])((n={exports:{}}).exports,n),n.exports};var __export=(e,n)=>{for(var i in n)a(e,i,{get:n[i],enumerable:true})};var __copyProps=(e,n,i,s)=>{if(n&&typeof n==="object"||typeof n==="function"){for(let c of l(n))if(!p.call(e,c)&&c!==i)a(e,c,{get:()=>n[c],enumerable:!(s=o(n,c))||s.enumerable})}return e};var __toESM=(e,n,i)=>(i=e!=null?s(c(e)):{},__copyProps(n||!e||!e.__esModule?a(i,"default",{value:e,enumerable:true}):i,e));var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var f=__commonJS({"umd:@jridgewell/sourcemap-codec"(e,n){n.exports=i}});var d=__commonJS({"umd:@jridgewell/resolve-uri"(e,i){i.exports=n}});var h={};__export(h,{AnyMap:()=>FlattenMap,FlattenMap:()=>FlattenMap,GREATEST_LOWER_BOUND:()=>j,LEAST_UPPER_BOUND:()=>R,TraceMap:()=>$,allGeneratedPositionsFor:()=>allGeneratedPositionsFor,decodedMap:()=>decodedMap,decodedMappings:()=>decodedMappings,eachMapping:()=>eachMapping,encodedMap:()=>encodedMap,encodedMappings:()=>encodedMappings,generatedPositionFor:()=>generatedPositionFor,isIgnored:()=>isIgnored,originalPositionFor:()=>originalPositionFor,presortedDecodedMap:()=>presortedDecodedMap,sourceContentFor:()=>sourceContentFor,traceSegment:()=>traceSegment});e.exports=__toCommonJS(h);var m=__toESM(f());var y=__toESM(d());function stripFilename(e){if(!e)return"";const n=e.lastIndexOf("/");return e.slice(0,n+1)}function resolver(e,n){const i=stripFilename(e);const s=n?n+"/":"";return e=>(0,y.default)(s+(e||""),i)}var g=0;var _=1;var C=2;var k=3;var A=4;var I=1;var D=2;function maybeSort(e,n){const i=nextUnsortedSegmentLine(e,0);if(i===e.length)return e;if(!n)e=e.slice();for(let s=i;s<e.length;s=nextUnsortedSegmentLine(e,s+1)){e[s]=sortSegments(e[s],n)}return e}function nextUnsortedSegmentLine(e,n){for(let i=n;i<e.length;i++){if(!isSorted(e[i]))return i}return e.length}function isSorted(e){for(let n=1;n<e.length;n++){if(e[n][g]<e[n-1][g]){return false}}return true}function sortSegments(e,n){if(!n)e=e.slice();return e.sort(sortComparator)}function sortComparator(e,n){return e[g]-n[g]}var O=false;function binarySearch(e,n,i,s){while(i<=s){const a=i+(s-i>>1);const o=e[a][g]-n;if(o===0){O=true;return a}if(o<0){i=a+1}else{s=a-1}}O=false;return i-1}function upperBound(e,n,i){for(let s=i+1;s<e.length;i=s++){if(e[s][g]!==n)break}return i}function lowerBound(e,n,i){for(let s=i-1;s>=0;i=s--){if(e[s][g]!==n)break}return i}function memoizedState(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function memoizedBinarySearch(e,n,i,s){const{lastKey:a,lastNeedle:o,lastIndex:l}=i;let c=0;let p=e.length-1;if(s===a){if(n===o){O=l!==-1&&e[l][g]===n;return l}if(n>=o){c=l===-1?0:l}else{p=l}}i.lastKey=s;i.lastNeedle=n;return i.lastIndex=binarySearch(e,n,c,p)}function buildBySources(e,n){const i=n.map(buildNullArray);for(let s=0;s<e.length;s++){const a=e[s];for(let e=0;e<a.length;e++){const o=a[e];if(o.length===1)continue;const l=o[_];const c=o[C];const p=o[k];const f=i[l];const d=f[c]||(f[c]=[]);const h=n[l];let m=upperBound(d,p,memoizedBinarySearch(d,p,h,c));h.lastIndex=++m;insert(d,m,[p,s,o[g]])}}return i}function insert(e,n,i){for(let i=e.length;i>n;i--){e[i]=e[i-1]}e[n]=i}function buildNullArray(){return{__proto__:null}}function parse(e){return typeof e==="string"?JSON.parse(e):e}var FlattenMap=function(e,n){const i=parse(e);if(!("sections"in i)){return new $(i,n)}const s=[];const a=[];const o=[];const l=[];const c=[];recurse(i,n,s,a,o,l,c,0,0,Infinity,Infinity);const p={version:3,file:i.file,names:l,sources:a,sourcesContent:o,mappings:s,ignoreList:c};return presortedDecodedMap(p)};function recurse(e,n,i,s,a,o,l,c,p,f,d){const{sections:h}=e;for(let e=0;e<h.length;e++){const{map:m,offset:y}=h[e];let g=f;let _=d;if(e+1<h.length){const n=h[e+1].offset;g=Math.min(f,c+n.line);if(g===f){_=Math.min(d,p+n.column)}else if(g<f){_=p+n.column}}addSection(m,n,i,s,a,o,l,c+y.line,p+y.column,g,_)}}function addSection(e,n,i,s,a,o,l,c,p,f,d){const h=parse(e);if("sections"in h)return recurse(...arguments);const m=new $(h,n);const y=s.length;const I=o.length;const D=decodedMappings(m);const{resolvedSources:O,sourcesContent:B,ignoreList:L}=m;append(s,O);append(o,m.names);if(B)append(a,B);else for(let e=0;e<O.length;e++)a.push(null);if(L)for(let e=0;e<L.length;e++)l.push(L[e]+y);for(let e=0;e<D.length;e++){const n=c+e;if(n>f)return;const s=getLine(i,n);const a=e===0?p:0;const o=D[e];for(let e=0;e<o.length;e++){const i=o[e];const l=a+i[g];if(n===f&&l>=d)return;if(i.length===1){s.push([l]);continue}const c=y+i[_];const p=i[C];const h=i[k];s.push(i.length===4?[l,c,p,h]:[l,c,p,h,I+i[A]])}}}function append(e,n){for(let i=0;i<n.length;i++)e.push(n[i])}function getLine(e,n){for(let i=e.length;i<=n;i++)e[i]=[];return e[n]}var B="`line` must be greater than 0 (lines start at line 1)";var L="`column` must be greater than or equal to 0 (columns start at column 0)";var R=-1;var j=1;var $=class{constructor(e,n){const i=typeof e==="string";if(!i&&e._decodedMemo)return e;const s=parse(e);const{version:a,file:o,names:l,sourceRoot:c,sources:p,sourcesContent:f}=s;this.version=a;this.file=o;this.names=l||[];this.sourceRoot=c;this.sources=p;this.sourcesContent=f;this.ignoreList=s.ignoreList||s.x_google_ignoreList||void 0;const d=resolver(n,c);this.resolvedSources=p.map(d);const{mappings:h}=s;if(typeof h==="string"){this._encoded=h;this._decoded=void 0}else if(Array.isArray(h)){this._encoded=void 0;this._decoded=maybeSort(h,i)}else if(s.sections){throw new Error(`TraceMap passed sectioned source map, please use FlattenMap export instead`)}else{throw new Error(`invalid source map: ${JSON.stringify(s)}`)}this._decodedMemo=memoizedState();this._bySources=void 0;this._bySourceMemos=void 0}};function cast(e){return e}function encodedMappings(e){var n,i;return(i=(n=cast(e))._encoded)!=null?i:n._encoded=(0,m.encode)(cast(e)._decoded)}function decodedMappings(e){var n;return(n=cast(e))._decoded||(n._decoded=(0,m.decode)(cast(e)._encoded))}function traceSegment(e,n,i){const s=decodedMappings(e);if(n>=s.length)return null;const a=s[n];const o=traceSegmentInternal(a,cast(e)._decodedMemo,n,i,j);return o===-1?null:a[o]}function originalPositionFor(e,n){let{line:i,column:s,bias:a}=n;i--;if(i<0)throw new Error(B);if(s<0)throw new Error(L);const o=decodedMappings(e);if(i>=o.length)return OMapping(null,null,null,null);const l=o[i];const c=traceSegmentInternal(l,cast(e)._decodedMemo,i,s,a||j);if(c===-1)return OMapping(null,null,null,null);const p=l[c];if(p.length===1)return OMapping(null,null,null,null);const{names:f,resolvedSources:d}=e;return OMapping(d[p[_]],p[C]+1,p[k],p.length===5?f[p[A]]:null)}function generatedPositionFor(e,n){const{source:i,line:s,column:a,bias:o}=n;return generatedPosition(e,i,s,a,o||j,false)}function allGeneratedPositionsFor(e,n){const{source:i,line:s,column:a,bias:o}=n;return generatedPosition(e,i,s,a,o||R,true)}function eachMapping(e,n){const i=decodedMappings(e);const{names:s,resolvedSources:a}=e;for(let e=0;e<i.length;e++){const o=i[e];for(let i=0;i<o.length;i++){const l=o[i];const c=e+1;const p=l[0];let f=null;let d=null;let h=null;let m=null;if(l.length!==1){f=a[l[1]];d=l[2]+1;h=l[3]}if(l.length===5)m=s[l[4]];n({generatedLine:c,generatedColumn:p,source:f,originalLine:d,originalColumn:h,name:m})}}}function sourceIndex(e,n){const{sources:i,resolvedSources:s}=e;let a=i.indexOf(n);if(a===-1)a=s.indexOf(n);return a}function sourceContentFor(e,n){const{sourcesContent:i}=e;if(i==null)return null;const s=sourceIndex(e,n);return s===-1?null:i[s]}function isIgnored(e,n){const{ignoreList:i}=e;if(i==null)return false;const s=sourceIndex(e,n);return s===-1?false:i.includes(s)}function presortedDecodedMap(e,n){const i=new $(clone(e,[]),n);cast(i)._decoded=e.mappings;return i}function decodedMap(e){return clone(e,decodedMappings(e))}function encodedMap(e){return clone(e,encodedMappings(e))}function clone(e,n){return{version:e.version,file:e.file,names:e.names,sourceRoot:e.sourceRoot,sources:e.sources,sourcesContent:e.sourcesContent,mappings:n,ignoreList:e.ignoreList||e.x_google_ignoreList}}function OMapping(e,n,i,s){return{source:e,line:n,column:i,name:s}}function GMapping(e,n){return{line:e,column:n}}function traceSegmentInternal(e,n,i,s,a){let o=memoizedBinarySearch(e,s,n,i);if(O){o=(a===R?upperBound:lowerBound)(e,s,o)}else if(a===R)o++;if(o===-1||o===e.length)return-1;return o}function sliceGeneratedPositions(e,n,i,s,a){let o=traceSegmentInternal(e,n,i,s,j);if(!O&&a===R)o++;if(o===-1||o===e.length)return[];const l=O?s:e[o][g];if(!O)o=lowerBound(e,l,o);const c=upperBound(e,l,o);const p=[];for(;o<=c;o++){const n=e[o];p.push(GMapping(n[I]+1,n[D]))}return p}function generatedPosition(e,n,i,s,a,o){var l;i--;if(i<0)throw new Error(B);if(s<0)throw new Error(L);const{sources:c,resolvedSources:p}=e;let f=c.indexOf(n);if(f===-1)f=p.indexOf(n);if(f===-1)return o?[]:GMapping(null,null);const d=(l=cast(e))._bySources||(l._bySources=buildBySources(decodedMappings(e),cast(e)._bySourceMemos=c.map(memoizedState)));const h=d[f][i];if(h==null)return o?[]:GMapping(null,null);const m=cast(e)._bySourceMemos[f];if(o)return sliceGeneratedPositions(h,m,i,s,a);const y=traceSegmentInternal(h,m,i,s,a);if(y===-1)return GMapping(null,null);const g=h[y];return GMapping(g[I]+1,g[D])}}))},32500:function(e,n,i){var s=Object.create;var a=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var c=Object.getPrototypeOf;var p=Object.prototype.hasOwnProperty;var __export=(e,n)=>{for(var i in n)a(e,i,{get:n[i],enumerable:true})};var __copyProps=(e,n,i,s)=>{if(n&&typeof n==="object"||typeof n==="function"){for(let c of l(n))if(!p.call(e,c)&&c!==i)a(e,c,{get:()=>n[c],enumerable:!(s=o(n,c))||s.enumerable})}return e};var __toESM=(e,n,i)=>(i=e!=null?s(c(e)):{},__copyProps(n||!e||!e.__esModule?a(i,"default",{value:e,enumerable:true}):i,e));var __toCommonJS=e=>__copyProps(a({},"__esModule",{value:true}),e);var f={};__export(f,{bodyParser:()=>bodyParserWrapper,default:()=>bodyParserWrapper});e.exports=__toCommonJS(f);var d=__toESM(i(47640));var h=__toESM(i(81258));var m=__toESM(i(87568));var y=["json","form","text","xml"];var g=class extends Error{constructor(e){super();this.name="UnsupportedBodyTypeError";this.message=`Invalid enabled type '${e}'. make sure to pass an array contains supported types ([${y}]).`}};function getIsEnabledBodyAs(e){for(const n of e){if(!y.includes(n)){throw new g(n)}}const n=y.reduce(((n,i)=>({...n,[i]:e.includes(i)})),{});return n}function getMimeTypes(e){for(const n of Object.keys(e)){const i=e[n];if(!y.includes(n)||!Array.isArray(i)){throw new g(n)}}const n={json:["application/json","application/json-patch+json","application/vnd.api+json","application/csp-report","application/reports+json","application/scim+json"],form:["application/x-www-form-urlencoded"],text:["text/plain"],xml:["text/xml","application/xml"]};const i=(0,h.default)(n,e);return i}function isTypes(e,n){if(typeof e==="string"){e=e.replace(/;$/,"")}return m.default.is(e,n)}function bodyParserWrapper(e={}){const{patchNode:n=false,parsedMethods:i=["POST","PUT","PATCH"],detectJSON:s,onError:a,enableTypes:o=["json","form"],extendTypes:l={},enableRawChecking:c=false,...p}=e;const f=getIsEnabledBodyAs(o);const h=getMimeTypes(l);async function parseBody(e){const shouldParseBodyAs=n=>Boolean(f[n]&&isTypes(e.request.get("content-type"),h[n]));const n=s?.(e)||shouldParseBodyAs("json")?"json":shouldParseBodyAs("form")?"form":shouldParseBodyAs("text")||shouldParseBodyAs("xml")?"text":null;if(!n)return{};const i={returnRawBody:true,strict:n==="json"?p.jsonStrict:void 0,[`${n}Types`]:h[n],limit:p[`${shouldParseBodyAs("xml")?"xml":n}Limit`],encoding:p.encoding||"utf-8"};return d.default[n](e,i)}return async function bodyParser(e,s){if(!i.includes(e.method.toUpperCase())||n&&e.req.body!==void 0||e.request.body!==void 0||e.disableBodyParser)return s();if(c&&e.req.body!==void 0){e.request.body=e.req.body;return s()}if(e.req.closed){e.status=499;e.body="Request already closed";return}try{const i=await parseBody(e);if(n){e.req.body="parsed"in i?i.parsed:{};if(e.req.rawBody===void 0)e.req.rawBody=i.raw}e.request.body="parsed"in i?i.parsed:{};if(e.request.rawBody===void 0)e.request.rawBody=i.raw}catch(n){if(!a)throw n;a(n,e)}return s()}}0&&0},48369:function(e,n,i){e.exports=i(92088)},92088:function(e,n,i){e=i.nmd(e);const s=i(73024);const a=i(76760);const o=i(1708);const l=i(57975);const c=i(30714);const{join:p}=a;const{resolve:f}=a;const{extname:d}=a;const{dirname:h}=a;const{isAbsolute:m}=a;let y={};let g={};const _={};n.clearCache=function(){y={};g={}};function cache(e,n){if(n&&e.filename&&e.cache){delete y[e.filename];g[e.filename]=n;return n}if(e.filename&&e.cache){return g[e.filename]}return n}function read(e,n,i){const a=y[e];const o=n.cache&&a&&typeof a==="string";if(o)return i(null,a);s.readFile(e,"utf8",(function(s,a){if(s)return i(s);a=a.replace(/^\uFEFF/,"");if(n.cache)y[e]=a;i(null,a)}))}function readPartials(e,n,i){if(!n.partials)return i();const s=Object.keys(n.partials);const a={};function next(o){if(o===s.length)return i(null,a);const l=s[o];const c=n.partials[l];if(c===undefined||c===null||c===false){return next(++o)}let f;if(m(c)){f=d(c)===""?p(c+d(e)):c}else{f=p(h(e),c+d(e))}read(f,n,(function(e,n){if(e)return i(e);a[l]=n;next(++o)}))}next(0)}function promisify(e,n){return new Promise((function(i,s){e=e||function(e,n){if(e){return s(e)}i(n)};n(e)}))}function fromStringRenderer(e){return function(i,s,a){s.filename=i;return promisify(a,(function(a){readPartials(i,s,(function(o,l){const c={...s};c.partials=l;if(o)return a(o);if(cache(c)){n[e].render("",c,a)}else{read(i,c,(function(i,s){if(i)return a(i);n[e].render(s,c,a)}))}}))}))}}n.velocityjs=fromStringRenderer("velocityjs");n.velocityjs.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.velocityjs||(_.velocityjs=i(63915));n.locals=n;s(null,a.render(e,n).trimStart())}catch(e){s(e)}}))};n.liquid=fromStringRenderer("liquid");function _renderTinyliquid(e,n,i,l){const c=e.newContext();let p;if(i.locals){for(p in i.locals){c.setLocals(p,i.locals[p])}delete i.locals}if(i.meta){c.setLocals("page",i.meta);delete i.meta}if(i.filters){for(p in i.filters){c.setFilter(p,i.filters[p])}delete i.filters}const f=i.includeDir||o.cwd();c.onInclude((function(n,i){const o=a.extname(n)?"":".liquid";const l=a.resolve(f,n+o);s.readFile(l,{encoding:"utf8"},(function(n,s){if(n)return i(n);i(null,e.parse(s))}))}));delete i.includeDir;const d={customTags:{}};if(i.customTags){const n=i.customTags;for(p in i.customTags){d.customTags[p]=function(i,s,a){const o=n[s](a.trim());i.astStack.push(e.parse(o))}}delete i.customTags}for(p in i){c.setLocals(p,i[p])}const h=cache(c)||cache(c,e.compile(n,d));h(c,l)}n.liquid.render=function(e,n,s){return promisify(s,(function(s){let a=_.liquid;let l;try{a=_.liquid=i(37169);_renderTinyliquid(a,e,n,s);return}catch(e){try{l=_.liquid=i(39564);a=new l.Engine}catch(n){console.error(n);return s(e)}}try{const i=n.locals||{};if(n.meta){i.pages=n.meta;delete n.meta}if(n.filters){a.registerFilters(n.filters);delete n.filters}const c=n.includeDir||o.cwd();a.fileSystem=new l.LocalFileSystem(c,"liquid");delete n.includeDir;if(n.customTags){const e=n.customTags;for(const i in n.customTags){a.registerTag(i,e[i])}delete n.customTags}for(const e in n){i[e]=n[e]}return a.parseAndRender(e,i).nodeify((function(e,n){if(e){throw new Error(e)}else{return s(null,n)}}))}catch(e){s(e)}}))};n.dust=fromStringRenderer("dust");n.dust.render=function(e,n,a){return promisify(a,(function(a){let o=_.dust;if(!o){try{o=_.dust=i(72103)}catch(e){try{o=_.dust=i(94230)}catch(n){console.error(n);try{o=_.dust=i(64933)}catch(n){console.error(n);return a(e)}}}}let l="dust";let c=".";if(n){if(n.ext)l=n.ext;if(n.views)c=n.views;if(n.settings&&n.settings.views)c=n.settings.views}if(!n||n&&!n.cache)o.cache={};o.onLoad=function(e,i){if(d(e)==="")e+="."+l;if(Array.isArray(c)){const a=[];for(let n=0;n<c.length;n++)if(s.existsSync(c[n]+"/"+e))a.push(c[n]+"/"+e);if(a.length===0)throw new Error("Cannot find template: "+e);else if(a.length>1){console.warn("Multiple file with the same name:\n"+a.join("\n")+"\nDefault using => "+a[0]);read(a[0],n,i)}else{read(a[0],n,i)}}else{if(e[0]!=="/")e=c+"/"+e;read(e,n,i)}};try{let i;if(n.filename){i=n.filename.replace(new RegExp("^"+c+"/"),"").replace(new RegExp("\\."+l),"")}const s=cache(n)||cache(n,o.compileFn(e,i));s(n,a)}catch(e){a(e)}}))};n.swig=fromStringRenderer("swig");n.swig.render=function(e,n,s){return promisify(s,(function(s){let a=_.swig;if(!a){try{a=_.swig=i(68917)}catch(e){try{a=_.swig=i(38859)}catch(n){console.error(n);return s(e)}}}try{if(n.cache===true)n.cache="memory";a.setDefaults({cache:n.cache});const i=cache(n)||cache(n,a.compile(e,n));s(null,i(n))}catch(e){s(e)}}))};n.atpl=fromStringRenderer("atpl");n.atpl.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.atpl||(_.atpl=i(700));const o=cache(n)||cache(n,a.compile(e,n));s(null,o(n))}catch(e){s(e)}}))};n.liquor=fromStringRenderer("liquor");n.liquor.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.liquor||(_.liquor=i(20735));const o=cache(n)||cache(n,a.compile(e,n));s(null,o(n))}catch(e){s(e)}}))};n.twig=fromStringRenderer("twig");n.twig.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.twig||(_.twig=i(40032).twig);const o={data:e,allowInlineIncludes:n.allowInlineIncludes,namespaces:n.namespaces,path:n.path};const l=cache(o)||cache(o,a(o));s(null,l.render(n))}catch(e){s(e)}}))};n.ejs=fromStringRenderer("ejs");n.ejs.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.ejs||(_.ejs=i(55875));const o=cache(n)||cache(n,a.compile(e,n));s(null,o(n))}catch(e){s(e)}}))};n.eta=function(e,n,s){return promisify(s,(function(s){try{const a=_.eta||(_.eta=new(i(52893).Eta)({views:"."}));s(null,a.render(e,n))}catch(e){s(e)}}))};n.eta.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.eta||(_.eta=new(i(52893).Eta)({views:"."}));s(null,a.renderString(e,n))}catch(e){s(e)}}))};n.eco=fromStringRenderer("eco");n.eco.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.eco||(_.eco=i(73102));s(null,a.render(e,n))}catch(e){s(e)}}))};n.jazz=fromStringRenderer("jazz");n.jazz.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.jazz||(_.jazz=i(18600));const o=cache(n)||cache(n,a.compile(e,n));o.eval(n,(function(e){s(null,e)}))}catch(e){s(e)}}))};n.jqtpl=fromStringRenderer("jqtpl");n.jqtpl.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.jqtpl||(_.jqtpl=i(96964));a.template(e,e);s(null,a.tmpl(e,n))}catch(e){s(e)}}))};n.haml=fromStringRenderer("haml");n.haml.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.haml||(_.haml=i(11232));n.locals=n;s(null,a.render(e,n).trimStart())}catch(e){s(e)}}))};n.hamlet=fromStringRenderer("hamlet");n.hamlet.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.hamlet||(_.hamlet=i(42862));n.locals=n;s(null,a.render(e,n).trimStart())}catch(e){s(e)}}))};n.whiskers=function(e,n,s){return promisify(s,(function(s){try{const a=_.whiskers||(_.whiskers=i(81751));a.__express(e,n,s)}catch(e){s(e)}}))};n.whiskers.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.whiskers||(_.whiskers=i(81751));s(null,a.render(e,n))}catch(e){s(e)}}))};n["haml-coffee"]=fromStringRenderer("haml-coffee");n["haml-coffee"].render=function(e,n,s){return promisify(s,(function(s){try{const a=_["haml-coffee"]||(_["haml-coffee"]=i(95338));const o=cache(n)||cache(n,a.compile(e,n));s(null,o(n))}catch(e){s(e)}}))};n.hogan=fromStringRenderer("hogan");n.hogan.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.hogan||(_.hogan=i(37997));const o=cache(n)||cache(n,a.compile(e,n));s(null,o.render(n,n.partials))}catch(e){s(e)}}))};n.templayed=fromStringRenderer("templayed");n.templayed.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.templayed||(_.templayed=i(84486));const o=cache(n)||cache(n,a(e));s(null,o(n))}catch(e){s(e)}}))};n.handlebars=fromStringRenderer("handlebars");n.handlebars.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.handlebars||(_.handlebars=i(81387));for(const e in n.partials){a.registerPartial(e,n.partials[e])}for(const e in n.helpers){a.registerHelper(e,n.helpers[e])}const o=cache(n)||cache(n,a.compile(e,n));s(null,o(n))}catch(e){s(e)}}))};n.underscore=fromStringRenderer("underscore");n.underscore.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.underscore||(_.underscore=i(99912));const o={};for(const e in n.partials){o[e]=a.template(n.partials[e])}n.partials=o;const l=cache(n)||cache(n,a.template(e,null,n));s(null,l(n).replace(/\n$/,""))}catch(e){s(e)}}))};n.lodash=fromStringRenderer("lodash");n.lodash.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.lodash||(_.lodash=i(31742));const o=cache(n)||cache(n,a.template(e,n));s(null,o(n).replace(/\n$/,""))}catch(e){s(e)}}))};n.pug=function(e,n,s){return promisify(s,(function(s){let a=_.pug;if(!a){try{a=_.pug=i(137)}catch(e){try{a=_.pug=i(21765)}catch(n){console.error(n);return s(e)}}}try{const i=cache(n)||cache(n,a.compileFile(e,n));s(null,i(n))}catch(e){s(e)}}))};n.pug.render=function(e,n,s){return promisify(s,(function(s){let a=_.pug;if(!a){try{a=_.pug=i(137)}catch(e){try{a=_.pug=i(21765)}catch(n){console.error(n);return s(e)}}}try{const i=cache(n)||cache(n,a.compile(e,n));s(null,i(n))}catch(e){s(e)}}))};n.qejs=fromStringRenderer("qejs");n.qejs.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.qejs||(_.qejs=i(78568));a.render(e,n).then((function(e){s(null,e)}),(function(e){s(e)})).done()}catch(e){s(e)}}))};n.walrus=fromStringRenderer("walrus");n.walrus.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.walrus||(_.walrus=i(60073));const o=cache(n)||cache(n,a.parse(e));s(null,o.compile(n))}catch(e){s(e)}}))};n.mustache=fromStringRenderer("mustache");n.mustache.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.mustache||(_.mustache=i(57208));s(null,a.render(e,n,n.partials))}catch(e){s(e)}}))};n.just=function(e,n,s){return promisify(s,(function(s){try{let a=_.just;if(!a){const e=i(38789);a=_.just=new e}a.configure({useCache:n.cache});a.render(e,n,s)}catch(e){s(e)}}))};n.just.render=function(e,n,s){return promisify(s,(function(s){try{const a=i(38789);const o=new a({root:{page:e}});o.render("page",n,s)}catch(e){s(e)}}))};n.ect=function(e,n,s){return promisify(s,(function(s){try{let a=_.ect;if(!a){const e=i(82125);a=_.ect=new e(n)}a.configure({cache:n.cache});a.render(e,n,s)}catch(e){s(e)}}))};n.ect.render=function(e,n,s){return promisify(s,(function(s){try{const a=i(82125);const o=new a({root:{page:e}});o.render("page",n,s)}catch(e){s(e)}}))};n.mote=fromStringRenderer("mote");n.mote.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.mote||(_.mote=i(79502));const o=cache(n)||cache(n,a.compile(e));s(null,o(n))}catch(e){s(e)}}))};n.toffee=function(e,n,s){return promisify(s,(function(s){try{const a=_.toffee||(_.toffee=i(19266));a.__consolidate_engine_render(e,n,s)}catch(e){s(e)}}))};n.toffee.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.toffee||(_.toffee=i(19266));a.str_render(e,n,s)}catch(e){s(e)}}))};n.dot=fromStringRenderer("dot");n.dot.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.dot||(_.dot=i(22536));const o=_.extend||(_.extend=Object.assign);let l={};l=o(l,a.templateSettings);l=o(l,n?n.dot:{});const c=cache(n)||cache(n,a.template(e,l,n));s(null,c(n))}catch(e){s(e)}}))};n.bracket=fromStringRenderer("bracket");n.bracket.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.bracket||(_.bracket=i(38428));const o=cache(n)||cache(n,a.default.compile(e,n));s(null,o(n))}catch(e){s(e)}}))};n.ractive=fromStringRenderer("ractive");n.ractive.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.ractive||(_.ractive=i(43509));const o=cache(n)||cache(n,a.parse(e));n.template=o;if(n.data===null||n.data===undefined){n.data={...n};let e;let i;const s=["template","filename","cache","partials"];for(e=0,i=s.length;e<i;e++){const i=s[e];delete n.data[i]}}s(null,new a(n).toHTML())}catch(e){s(e)}}))};n.nunjucks=fromStringRenderer("nunjucks");n.nunjucks.render=function(e,n,s){return promisify(s,(function(s){try{const a=n.nunjucksEnv||_.nunjucks||(_.nunjucks=i(64922));let o=a;if(n.settings&&n.settings.views){o=a.configure(n.settings.views)}else if(n.nunjucks&&n.nunjucks.configure){o=a.configure.apply(a,n.nunjucks.configure)}if(n.loader){o=new a.Environment(n.loader)}else if(n.settings&&n.settings.views){o=new a.Environment(new a.FileSystemLoader(n.settings.views))}else if(n.nunjucks&&n.nunjucks.loader){if(typeof n.nunjucks.loader==="string"){o=new a.Environment(new a.FileSystemLoader(n.nunjucks.loader))}else{o=new a.Environment(new a.FileSystemLoader(n.nunjucks.loader[0],n.nunjucks.loader[1]))}}o.renderString(e,n,s)}catch(e){throw s(e)}}))};n.htmling=fromStringRenderer("htmling");n.htmling.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.htmling||(_.htmling=i(1104));const o=cache(n)||cache(n,a.string(e));s(null,o.render(n))}catch(e){s(e)}}))};function requireReact(e,n){let s;try{const e=_.babel||(_.babel=i(91485));s=e.transformFileSync(n,{presets:["@babel/preset-react"]}).code}catch(e){try{const e=_.babel||(_.babel=i(27119));s=e.transformFileSync(n,{presets:["react"]}).code}catch(n){console.error(n);throw e}}return e._compile(s,n)}n.requireReact=requireReact;function requireReactString(n,s){if(!s)s="";const a=new e.constructor;s=s||"";let o;try{const e=_.babel||(_.babel=i(91485));o=e.transform(n,{presets:["@babel/preset-react"]}).code}catch(e){try{const e=_.babel||(_.babel=i(27119));o=e.transform(n,{presets:["react"]}).code}catch(n){console.error(n);throw e}}a.paths=e.paths;a._compile(o,s);return a.exports}function reactBaseTmpl(e,n){let i;let s;for(const a in n){if(n.hasOwnProperty(a)){i="{{"+a+"}}";s=new RegExp(i,"g");if(s.test(e))e=e.replace(s,n[a])}}return e}n.plates=fromStringRenderer("plates");n.plates.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.plates||(_.plates=i(39272));const o=n.map||undefined;const l=a.bind(e,n,o);s(null,l)}catch(e){s(e)}}))};function reactRenderer(e){if(require.extensions){if(!require.extensions[".jsx"]){require.extensions[".jsx"]=requireReact}if(!require.extensions[".react"]){require.extensions[".react"]=requireReact}}return function(n,a,o){return promisify(o,(function(o){let l;let c;try{l=_.ReactDOM||(_.ReactDOM=i(43271));c=_.react||(_.react=i(4090))}catch(e){return o(e)}const{base:p}=a;delete a.base;const d=a.cache;delete a.cache;const{isNonStatic:h}=a;delete a.isNonStatic;try{let i;let m;let g;let _;if(cache(a)){m=cache(a)}else{if(e==="path"){const e=f(n);delete require.cache[e];try{i=require(e)}catch(e){return o(e)}}else{i=requireReactString(n)}m=cache(a,c.createFactory(i))}const C=new m(a);_=h?l.renderToString(C):l.renderToStaticMarkup(C);if(p){g=y[n]||s.readFileSync(f(p),"utf8");if(d){y[n]=g}a.content=_;_=reactBaseTmpl(g,a)}o(null,_)}catch(e){o(e)}}))}}n.react=reactRenderer("path");n.react.render=reactRenderer("string");n["arc-templates"]=fromStringRenderer("arc-templates");n["arc-templates"].render=function(e,n,s){const a=l.promisify(read);const o={};o.readFile=function(e){return a(e,n)};return promisify(s,(function(s){try{let a=_["arc-templates"];if(!a){const e=i(68146);a=_["arc-templates"]=new e({filesystem:o})}const l=cache(n)||cache(n,a.compileString(e,n.filename));l.then((function(e){return e(n)})).then((function(e){s(null,e.content)})).catch(s)}catch(e){s(e)}}))};n.vash=fromStringRenderer("vash");n.vash.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.vash||(_.vash=i(24857));if(n.helpers){for(const e in n.helpers){if(!n.helpers.hasOwnProperty(e)||typeof n.helpers[e]!=="function"){continue}a.helpers[e]=n.helpers[e]}}const o=cache(n)||cache(n,a.compile(e,n));o(n,(function(e,n){if(e)s(e);n.finishLayout();s(null,n.toString().replace(/\n$/,""))}))}catch(e){s(e)}}))};n.slm=fromStringRenderer("slm");n.slm.render=function(e,n,s){return promisify(s,(function(s){try{const a=_.slm||(_.slm=i(27735));const o=cache(n)||cache(n,a.compile(e,n));s(null,o(n))}catch(e){s(e)}}))};n.teacup=function(e,n,s){return promisify(s,(function(s){try{const a=_.teacup||(_.teacup=i(5704));require.extensions[".teacup"]=require.extensions[".coffee"];if(e[0]!=="/"){e=p(o.cwd(),e)}if(!n.cache){const n=s;s=function(...i){delete require.cache[e];Reflect.apply(n,this,i)}}a.renderFile(e,n,s)}catch(e){s(e)}}))};n.teacup.render=function(e,n,s){try{const a=i(52213);const o={module:{exports:{}},require:require};return promisify(s,(function(i){c.runInNewContext(a.compile(e),o);const s=o.module.exports;i(null,s(n))}))}catch(e){s(e)}};n.twing=fromStringRenderer("twing");n.twing.render=function(e,n,a){return promisify(a,(function(a){try{let o=_.twing||(_.twing=i(21964));if(o.hasOwnProperty("TwingEnvironment")){let e=new o.TwingLoaderNull;if(n.settings&&n.settings.views&&s.existsSync(n.settings.views)){e=new o.TwingLoaderFilesystem(n.settings.views)}o=_.twing=new o.TwingEnvironment(e)}o.createTemplate(e).then((e=>{e.render(n).then((e=>{const i=cache(n)||cache(n,e);a(null,i)}))}))}catch(e){a(e)}}))};n.requires=_},11451:function(e,n,i){"use strict";const s=i(86449)("@ladjs/koa-views");const a=i(48369);const o=i(59558);const l=i(84675);const c=i(78176);const p=i(91493);e.exports=viewsMiddleware;const bigIntReplacer=()=>{const e=new WeakSet;return(n,i)=>{if(typeof i==="bigint")return i.toString();if(typeof i==="object"&&i!==null){if(e.has(i)){return}e.add(i)}return i}};function viewsMiddleware(e,{autoRender:n=true,engineSource:i=a,extension:f="html",options:d={},map:h}={}){return function views(a,m){let y=false;function render(m,g={}){if(y){if(this.ctx&&this.ctx.req===this.req)a=this.ctx;else a=this}return l(e,m,f).then((l=>{const f=l.ext;const m=Object.assign({},d,a.state||{},g);m.partials=Object.assign(Object.create(null),d.partials||{});if(s.enabled)s("render `%s` with %s",l.rel,JSON.stringify(m,bigIntReplacer()));a.type="text/html";if(isHtml(f)&&!h){return o(a,l.rel,{root:e})}else{const o=h&&h[f]?h[f]:f;const d=i[o];if(!o||!d)return Promise.reject(new Error(`Engine not found for the ".${f}" file extension`));return d(p(e,l.rel),m).then((e=>{if(g.pretty){s("using `pretty` package to beautify HTML");e=c(e)}if(n){a.body=e;return e}return Promise.resolve(e)}))}}))}if(!a){y=true;return render}if(a.render)return m();a.response.render=a.render=render;return m()}}function isHtml(e){return e==="html"}},54143:function(e){function BrowserslistError(e){this.name="BrowserslistError";this.message=e;this.browserslist=true;if(Error.captureStackTrace){Error.captureStackTrace(this,BrowserslistError)}}BrowserslistError.prototype=Error.prototype;e.exports=BrowserslistError},72629:function(e,n,i){var s=i(20644);var a=i(69350).X;var o=i(33990);var l=i(76516);var c=i(16928);var p=i(54143);var f=i(43805);var d=i(5546);var h=365.259641*24*60*60*1e3;var m="37";var y=14;function isVersionsMatch(e,n){return(e+".").indexOf(n+".")===0}function isEolReleased(e){var n=e.slice(1);return browserslist.nodeVersions.some((function(e){return isVersionsMatch(e,n)}))}function normalize(e){return e.filter((function(e){return typeof e==="string"}))}function normalizeElectron(e){var n=e;if(e.split(".").length===3){n=e.split(".").slice(0,-1).join(".")}return n}function nameMapper(e){return function mapName(n){return e+" "+n}}function getMajor(e){return parseInt(e.split(".")[0])}function getMajorVersions(e,n){if(e.length===0)return[];var i=uniq(e.map(getMajor));var s=i[i.length-n];if(!s){return e}var a=[];for(var o=e.length-1;o>=0;o--){if(s>getMajor(e[o]))break;a.unshift(e[o])}return a}function uniq(e){var n=[];for(var i=0;i<e.length;i++){if(n.indexOf(e[i])===-1)n.push(e[i])}return n}function fillUsage(e,n,i){for(var s in i){e[n+" "+s]=i[s]}}function generateFilter(e,n){n=parseFloat(n);if(e===">"){return function(e){return parseLatestFloat(e)>n}}else if(e===">="){return function(e){return parseLatestFloat(e)>=n}}else if(e==="<"){return function(e){return parseFloat(e)<n}}else{return function(e){return parseFloat(e)<=n}}function parseLatestFloat(e){return parseFloat(e.split("-")[1]||e)}}function generateSemverFilter(e,n){n=n.split(".").map(parseSimpleInt);n[1]=n[1]||0;n[2]=n[2]||0;if(e===">"){return function(e){e=e.split(".").map(parseSimpleInt);return compareSemver(e,n)>0}}else if(e===">="){return function(e){e=e.split(".").map(parseSimpleInt);return compareSemver(e,n)>=0}}else if(e==="<"){return function(e){e=e.split(".").map(parseSimpleInt);return compareSemver(n,e)>0}}else{return function(e){e=e.split(".").map(parseSimpleInt);return compareSemver(n,e)>=0}}}function parseSimpleInt(e){return parseInt(e)}function compare(e,n){if(e<n)return-1;if(e>n)return+1;return 0}function compareSemver(e,n){return compare(parseInt(e[0]),parseInt(n[0]))||compare(parseInt(e[1]||"0"),parseInt(n[1]||"0"))||compare(parseInt(e[2]||"0"),parseInt(n[2]||"0"))}function semverFilterLoose(e,n){n=n.split(".").map(parseSimpleInt);if(typeof n[1]==="undefined"){n[1]="x"}switch(e){case"<=":return function(e){e=e.split(".").map(parseSimpleInt);return compareSemverLoose(e,n)<=0};case">=":default:return function(e){e=e.split(".").map(parseSimpleInt);return compareSemverLoose(e,n)>=0}}}function compareSemverLoose(e,n){if(e[0]!==n[0]){return e[0]<n[0]?-1:+1}if(n[1]==="x"){return 0}if(e[1]!==n[1]){return e[1]<n[1]?-1:+1}return 0}function resolveVersion(e,n){if(e.versions.indexOf(n)!==-1){return n}else if(browserslist.versionAliases[e.name][n]){return browserslist.versionAliases[e.name][n]}else{return false}}function normalizeVersion(e,n){var i=resolveVersion(e,n);if(i){return i}else if(e.versions.length===1){return e.versions[0]}else{return false}}function filterByYear(e,n){e=e/1e3;return Object.keys(a).reduce((function(i,s){var a=byName(s,n);if(!a)return i;var o=Object.keys(a.releaseDate).filter((function(n){var i=a.releaseDate[n];return i!==null&&i>=e}));return i.concat(o.map(nameMapper(a.name)))}),[])}function cloneData(e){return{name:e.name,versions:e.versions,released:e.released,releaseDate:e.releaseDate}}function byName(e,n){e=e.toLowerCase();e=browserslist.aliases[e]||e;if(n.mobileToDesktop&&browserslist.desktopNames[e]){var i=browserslist.data[browserslist.desktopNames[e]];if(e==="android"){return normalizeAndroidData(cloneData(browserslist.data[e]),i)}else{var s=cloneData(i);s.name=e;return s}}return browserslist.data[e]}function normalizeAndroidVersions(e,n){var i=n.indexOf(m);return e.filter((function(e){return/^(?:[2-4]\.|[34]$)/.test(e)})).concat(n.slice(i))}function copyObject(e){var n={};for(var i in e){n[i]=e[i]}return n}function normalizeAndroidData(e,n){e.released=normalizeAndroidVersions(e.released,n.released);e.versions=normalizeAndroidVersions(e.versions,n.versions);e.releaseDate=copyObject(e.releaseDate);e.released.forEach((function(i){if(e.releaseDate[i]===undefined){e.releaseDate[i]=n.releaseDate[i]}}));return e}function checkName(e,n){var i=byName(e,n);if(!i)throw new p("Unknown browser "+e);return i}function unknownQuery(e){return new p("Unknown browser query `"+e+"`. "+"Maybe you are using old Browserslist or made typo in query.")}function filterJumps(e,n,i,s){var a=1;switch(n){case"android":if(s.mobileToDesktop)return e;var o=browserslist.data.chrome.released;a=o.length-o.indexOf(m);break;case"op_mob":var l=browserslist.data.op_mob.released.slice(-1)[0];a=getMajor(l)-y+1;break;default:return e}if(i<=a){return e.slice(-1)}return e.slice(a-1-i)}function isSupported(e,n){return typeof e==="string"&&(e.indexOf("y")>=0||n&&e.indexOf("a")>=0)}function resolve(e,n){return parseQueries(e).reduce((function(e,i,s){if(i.not&&s===0){throw new p("Write any browsers query (for instance, `defaults`) "+"before `"+i.query+"`")}var a=C[i.type];var o=a.select.call(browserslist,n,i).map((function(e){var i=e.split(" ");if(i[1]==="0"){return i[0]+" "+byName(i[0],n).versions[0]}else{return e}}));if(i.compose==="and"){if(i.not){return e.filter((function(e){return o.indexOf(e)===-1}))}else{return e.filter((function(e){return o.indexOf(e)!==-1}))}}else{if(i.not){var l={};o.forEach((function(e){l[e]=true}));return e.filter((function(e){return!l[e]}))}return e.concat(o)}}),[])}function prepareOpts(e){if(typeof e==="undefined")e={};if(typeof e.path==="undefined"){e.path=c.resolve?c.resolve("."):"."}return e}function prepareQueries(e,n){if(typeof e==="undefined"||e===null){var i=browserslist.loadConfig(n);if(i){e=i}else{e=browserslist.defaults}}return e}function checkQueries(e){if(!(typeof e==="string"||Array.isArray(e))){throw new p("Browser queries must be an array or string. Got "+typeof e+".")}}var g={};var _={};function browserslist(e,n){n=prepareOpts(n);e=prepareQueries(e,n);checkQueries(e);var i=parseQueries(e).some((function(e){return C[e.type].needsPath}));var s={ignoreUnknownVersions:n.ignoreUnknownVersions,dangerousExtend:n.dangerousExtend,mobileToDesktop:n.mobileToDesktop,env:n.env};if(i){s.path=n.path}f.oldDataWarning(browserslist.data);var a=f.getStat(n,browserslist.data);if(a){s.customUsage={};for(var o in a){fillUsage(s.customUsage,o,a[o])}}var l=JSON.stringify([e,s]);if(g[l])return g[l];var c=uniq(resolve(e,s)).sort((function(e,n){e=e.split(" ");n=n.split(" ");if(e[0]===n[0]){var i=e[1].split("-")[0];var s=n[1].split("-")[0];return compareSemver(s.split("."),i.split("."))}else{return compare(e[0],n[0])}}));if(!f.env.BROWSERSLIST_DISABLE_CACHE){g[l]=c}return c}function parseQueries(e){var n=JSON.stringify(e);if(n in _)return _[n];var i=d(C,e);if(!f.env.BROWSERSLIST_DISABLE_CACHE){_[n]=i}return i}function loadCustomUsage(e,n){var i=f.loadStat(e,n,browserslist.data);if(i){e.customUsage={};for(var s in i){fillUsage(e.customUsage,s,i[s])}}if(!e.customUsage){throw new p("Custom usage statistics was not provided")}return e.customUsage}browserslist.parse=function(e,n){n=prepareOpts(n);e=prepareQueries(e,n);checkQueries(e);return parseQueries(e)};browserslist.cache={};browserslist.data={};browserslist.usage={global:{},custom:null};browserslist.defaults=["> 0.5%","last 2 versions","Firefox ESR","not dead"];browserslist.aliases={fx:"firefox",ff:"firefox",ios:"ios_saf",explorer:"ie",blackberry:"bb",explorermobile:"ie_mob",operamini:"op_mini",operamobile:"op_mob",chromeandroid:"and_chr",firefoxandroid:"and_ff",ucandroid:"and_uc",qqandroid:"and_qq"};browserslist.desktopNames={and_chr:"chrome",and_ff:"firefox",ie_mob:"ie",android:"chrome"};browserslist.versionAliases={};browserslist.clearCaches=f.clearCaches;browserslist.parseConfig=f.parseConfig;browserslist.readConfig=f.readConfig;browserslist.findConfigFile=f.findConfigFile;browserslist.findConfig=f.findConfig;browserslist.loadConfig=f.loadConfig;browserslist.coverage=function(e,n){var i;if(typeof n==="undefined"){i=browserslist.usage.global}else if(n==="my stats"){var s={};s.path=c.resolve?c.resolve("."):".";var a=f.getStat(s);if(!a){throw new p("Custom usage statistics was not provided")}i={};for(var o in a){fillUsage(i,o,a[o])}}else if(typeof n==="string"){if(n.length>2){n=n.toLowerCase()}else{n=n.toUpperCase()}f.loadCountry(browserslist.usage,n,browserslist.data);i=browserslist.usage[n]}else{if("dataByBrowser"in n){n=n.dataByBrowser}i={};for(var l in n){for(var d in n[l]){i[l+" "+d]=n[l][d]}}}return e.reduce((function(e,n){var s=i[n];if(s===undefined){s=i[n.replace(/ \S+$/," 0")]}return e+(s||0)}),0)};function nodeQuery(e,n){var i=browserslist.nodeVersions.filter((function(e){return isVersionsMatch(e,n.version)}));if(i.length===0){if(e.ignoreUnknownVersions){return[]}else{throw new p("Unknown version "+n.version+" of Node.js")}}return["node "+i[i.length-1]]}function sinceQuery(e,n){var i=parseInt(n.year);var s=parseInt(n.month||"01")-1;var a=parseInt(n.day||"01");return filterByYear(Date.UTC(i,s,a,0,0,0),e)}function coverQuery(e,n){var i=parseFloat(n.coverage);var s=browserslist.usage.global;if(n.place){if(n.place.match(/^my\s+stats$/i)){if(!e.customUsage){throw new p("Custom usage statistics was not provided")}s=e.customUsage}else{var a;if(n.place.length===2){a=n.place.toUpperCase()}else{a=n.place.toLowerCase()}f.loadCountry(browserslist.usage,a,browserslist.data);s=browserslist.usage[a]}}else if(n.config){s=loadCustomUsage(e,n.config)}var o=Object.keys(s).sort((function(e,n){return s[n]-s[e]}));var l=0;var c=[];var d;for(var h=0;h<o.length;h++){d=o[h];if(s[d]===0)break;l+=s[d];c.push(d);if(l>=i)break}return c}var C={last_major_versions:{matches:["versions"],regexp:/^last\s+(\d+)\s+major\s+versions?$/i,select:function(e,n){return Object.keys(a).reduce((function(i,s){var a=byName(s,e);if(!a)return i;var o=getMajorVersions(a.released,n.versions);o=o.map(nameMapper(a.name));o=filterJumps(o,a.name,n.versions,e);return i.concat(o)}),[])}},last_versions:{matches:["versions"],regexp:/^last\s+(\d+)\s+versions?$/i,select:function(e,n){return Object.keys(a).reduce((function(i,s){var a=byName(s,e);if(!a)return i;var o=a.released.slice(-n.versions);o=o.map(nameMapper(a.name));o=filterJumps(o,a.name,n.versions,e);return i.concat(o)}),[])}},last_electron_major_versions:{matches:["versions"],regexp:/^last\s+(\d+)\s+electron\s+major\s+versions?$/i,select:function(e,n){var i=getMajorVersions(Object.keys(o),n.versions);return i.map((function(e){return"chrome "+o[e]}))}},last_node_major_versions:{matches:["versions"],regexp:/^last\s+(\d+)\s+node\s+major\s+versions?$/i,select:function(e,n){return getMajorVersions(browserslist.nodeVersions,n.versions).map((function(e){return"node "+e}))}},last_browser_major_versions:{matches:["versions","browser"],regexp:/^last\s+(\d+)\s+(\w+)\s+major\s+versions?$/i,select:function(e,n){var i=checkName(n.browser,e);var s=getMajorVersions(i.released,n.versions);var a=s.map(nameMapper(i.name));a=filterJumps(a,i.name,n.versions,e);return a}},last_electron_versions:{matches:["versions"],regexp:/^last\s+(\d+)\s+electron\s+versions?$/i,select:function(e,n){return Object.keys(o).slice(-n.versions).map((function(e){return"chrome "+o[e]}))}},last_node_versions:{matches:["versions"],regexp:/^last\s+(\d+)\s+node\s+versions?$/i,select:function(e,n){return browserslist.nodeVersions.slice(-n.versions).map((function(e){return"node "+e}))}},last_browser_versions:{matches:["versions","browser"],regexp:/^last\s+(\d+)\s+(\w+)\s+versions?$/i,select:function(e,n){var i=checkName(n.browser,e);var s=i.released.slice(-n.versions).map(nameMapper(i.name));s=filterJumps(s,i.name,n.versions,e);return s}},unreleased_versions:{matches:[],regexp:/^unreleased\s+versions$/i,select:function(e){return Object.keys(a).reduce((function(n,i){var s=byName(i,e);if(!s)return n;var a=s.versions.filter((function(e){return s.released.indexOf(e)===-1}));a=a.map(nameMapper(s.name));return n.concat(a)}),[])}},unreleased_electron_versions:{matches:[],regexp:/^unreleased\s+electron\s+versions?$/i,select:function(){return[]}},unreleased_browser_versions:{matches:["browser"],regexp:/^unreleased\s+(\w+)\s+versions?$/i,select:function(e,n){var i=checkName(n.browser,e);return i.versions.filter((function(e){return i.released.indexOf(e)===-1})).map(nameMapper(i.name))}},last_years:{matches:["years"],regexp:/^last\s+(\d*.?\d+)\s+years?$/i,select:function(e,n){return filterByYear(Date.now()-h*n.years,e)}},since_y:{matches:["year"],regexp:/^since (\d+)$/i,select:sinceQuery},since_y_m:{matches:["year","month"],regexp:/^since (\d+)-(\d+)$/i,select:sinceQuery},since_y_m_d:{matches:["year","month","day"],regexp:/^since (\d+)-(\d+)-(\d+)$/i,select:sinceQuery},popularity:{matches:["sign","popularity"],regexp:/^(>=?|<=?)\s*(\d+|\d+\.\d+|\.\d+)%$/,select:function(e,n){var i=parseFloat(n.popularity);var s=browserslist.usage.global;return Object.keys(s).reduce((function(e,a){if(n.sign===">"){if(s[a]>i){e.push(a)}}else if(n.sign==="<"){if(s[a]<i){e.push(a)}}else if(n.sign==="<="){if(s[a]<=i){e.push(a)}}else if(s[a]>=i){e.push(a)}return e}),[])}},popularity_in_my_stats:{matches:["sign","popularity"],regexp:/^(>=?|<=?)\s*(\d+|\d+\.\d+|\.\d+)%\s+in\s+my\s+stats$/,select:function(e,n){var i=parseFloat(n.popularity);if(!e.customUsage){throw new p("Custom usage statistics was not provided")}var s=e.customUsage;return Object.keys(s).reduce((function(e,a){var o=s[a];if(o==null){return e}if(n.sign===">"){if(o>i){e.push(a)}}else if(n.sign==="<"){if(o<i){e.push(a)}}else if(n.sign==="<="){if(o<=i){e.push(a)}}else if(o>=i){e.push(a)}return e}),[])}},popularity_in_config_stats:{matches:["sign","popularity","config"],regexp:/^(>=?|<=?)\s*(\d+|\d+\.\d+|\.\d+)%\s+in\s+(\S+)\s+stats$/,select:function(e,n){var i=parseFloat(n.popularity);var s=loadCustomUsage(e,n.config);return Object.keys(s).reduce((function(e,a){var o=s[a];if(o==null){return e}if(n.sign===">"){if(o>i){e.push(a)}}else if(n.sign==="<"){if(o<i){e.push(a)}}else if(n.sign==="<="){if(o<=i){e.push(a)}}else if(o>=i){e.push(a)}return e}),[])}},popularity_in_place:{matches:["sign","popularity","place"],regexp:/^(>=?|<=?)\s*(\d+|\d+\.\d+|\.\d+)%\s+in\s+((alt-)?\w\w)$/,select:function(e,n){var i=parseFloat(n.popularity);var s=n.place;if(s.length===2){s=s.toUpperCase()}else{s=s.toLowerCase()}f.loadCountry(browserslist.usage,s,browserslist.data);var a=browserslist.usage[s];return Object.keys(a).reduce((function(e,s){var o=a[s];if(o==null){return e}if(n.sign===">"){if(o>i){e.push(s)}}else if(n.sign==="<"){if(o<i){e.push(s)}}else if(n.sign==="<="){if(o<=i){e.push(s)}}else if(o>=i){e.push(s)}return e}),[])}},cover:{matches:["coverage"],regexp:/^cover\s+(\d+|\d+\.\d+|\.\d+)%$/i,select:coverQuery},cover_in:{matches:["coverage","place"],regexp:/^cover\s+(\d+|\d+\.\d+|\.\d+)%\s+in\s+(my\s+stats|(alt-)?\w\w)$/i,select:coverQuery},cover_config:{matches:["coverage","config"],regexp:/^cover\s+(\d+|\d+\.\d+|\.\d+)%\s+in\s+(\S+)\s+stats$/i,select:coverQuery},supports:{matches:["supportType","feature"],regexp:/^(?:(fully|partially)\s+)?supports\s+([\w-]+)$/,select:function(e,n){f.loadFeature(browserslist.cache,n.feature);var i=n.supportType!=="fully";var s=browserslist.cache[n.feature];var a=[];for(var o in s){var l=byName(o,e);var c=l.released.length-1;while(c>=0){if(l.released[c]in s[o])break;c--}var p=e.mobileToDesktop&&o in browserslist.desktopNames&&isSupported(s[o][l.released[c]],i);l.versions.forEach((function(e){var n=s[o][e];if(n===undefined&&p){n=s[browserslist.desktopNames[o]][e]}if(isSupported(n,i)){a.push(o+" "+e)}}))}return a}},electron_range:{matches:["from","to"],regexp:/^electron\s+([\d.]+)\s*-\s*([\d.]+)$/i,select:function(e,n){var i=normalizeElectron(n.from);var s=normalizeElectron(n.to);var a=parseFloat(n.from);var l=parseFloat(n.to);if(!o[i]){throw new p("Unknown version "+a+" of electron")}if(!o[s]){throw new p("Unknown version "+l+" of electron")}return Object.keys(o).filter((function(e){var n=parseFloat(e);return n>=a&&n<=l})).map((function(e){return"chrome "+o[e]}))}},node_range:{matches:["from","to"],regexp:/^node\s+([\d.]+)\s*-\s*([\d.]+)$/i,select:function(e,n){return browserslist.nodeVersions.filter(semverFilterLoose(">=",n.from)).filter(semverFilterLoose("<=",n.to)).map((function(e){return"node "+e}))}},browser_range:{matches:["browser","from","to"],regexp:/^(\w+)\s+([\d.]+)\s*-\s*([\d.]+)$/i,select:function(e,n){var i=checkName(n.browser,e);var s=parseFloat(normalizeVersion(i,n.from)||n.from);var a=parseFloat(normalizeVersion(i,n.to)||n.to);function filter(e){var n=parseFloat(e);return n>=s&&n<=a}return i.released.filter(filter).map(nameMapper(i.name))}},electron_ray:{matches:["sign","version"],regexp:/^electron\s*(>=?|<=?)\s*([\d.]+)$/i,select:function(e,n){var i=normalizeElectron(n.version);return Object.keys(o).filter(generateFilter(n.sign,i)).map((function(e){return"chrome "+o[e]}))}},node_ray:{matches:["sign","version"],regexp:/^node\s*(>=?|<=?)\s*([\d.]+)$/i,select:function(e,n){return browserslist.nodeVersions.filter(generateSemverFilter(n.sign,n.version)).map((function(e){return"node "+e}))}},browser_ray:{matches:["browser","sign","version"],regexp:/^(\w+)\s*(>=?|<=?)\s*([\d.]+)$/,select:function(e,n){var i=n.version;var s=checkName(n.browser,e);var a=browserslist.versionAliases[s.name][i];if(a)i=a;return s.released.filter(generateFilter(n.sign,i)).map((function(e){return s.name+" "+e}))}},firefox_esr:{matches:[],regexp:/^(firefox|ff|fx)\s+esr$/i,select:function(){return["firefox 128"]}},opera_mini_all:{matches:[],regexp:/(operamini|op_mini)\s+all/i,select:function(){return["op_mini all"]}},electron_version:{matches:["version"],regexp:/^electron\s+([\d.]+)$/i,select:function(e,n){var i=normalizeElectron(n.version);var s=o[i];if(!s){throw new p("Unknown version "+n.version+" of electron")}return["chrome "+s]}},node_major_version:{matches:["version"],regexp:/^node\s+(\d+)$/i,select:nodeQuery},node_minor_version:{matches:["version"],regexp:/^node\s+(\d+\.\d+)$/i,select:nodeQuery},node_patch_version:{matches:["version"],regexp:/^node\s+(\d+\.\d+\.\d+)$/i,select:nodeQuery},current_node:{matches:[],regexp:/^current\s+node$/i,select:function(e){return[f.currentNode(resolve,e)]}},maintained_node:{matches:[],regexp:/^maintained\s+node\s+versions$/i,select:function(e){var n=Date.now();var i=Object.keys(l).filter((function(e){return n<Date.parse(l[e].end)&&n>Date.parse(l[e].start)&&isEolReleased(e)})).map((function(e){return"node "+e.slice(1)}));return resolve(i,e)}},phantomjs_1_9:{matches:[],regexp:/^phantomjs\s+1.9$/i,select:function(){return["safari 5"]}},phantomjs_2_1:{matches:[],regexp:/^phantomjs\s+2.1$/i,select:function(){return["safari 6"]}},browser_version:{matches:["browser","version"],regexp:/^(\w+)\s+(tp|[\d.]+)$/i,select:function(e,n){var i=n.version;if(/^tp$/i.test(i))i="TP";var s=checkName(n.browser,e);var a=normalizeVersion(s,i);if(a){i=a}else{if(i.indexOf(".")===-1){a=i+".0"}else{a=i.replace(/\.0$/,"")}a=normalizeVersion(s,a);if(a){i=a}else if(e.ignoreUnknownVersions){return[]}else{throw new p("Unknown version "+i+" of "+n.browser)}}return[s.name+" "+i]}},browserslist_config:{matches:[],regexp:/^browserslist config$/i,needsPath:true,select:function(e){return browserslist(undefined,e)}},extends:{matches:["config"],regexp:/^extends (.+)$/i,needsPath:true,select:function(e,n){return resolve(f.loadQueries(e,n.config),e)}},defaults:{matches:[],regexp:/^defaults$/i,select:function(e){return resolve(browserslist.defaults,e)}},dead:{matches:[],regexp:/^dead$/i,select:function(e){var n=["Baidu >= 0","ie <= 11","ie_mob <= 11","bb <= 10","op_mob <= 12.1","samsung 4"];return resolve(n,e)}},unknown:{matches:[],regexp:/^(\w+)$/i,select:function(e,n){if(byName(n.query,e)){throw new p("Specify versions in Browserslist query for browser "+n.query)}else{throw unknownQuery(n.query)}}}};(function(){for(var e in a){var n=a[e];browserslist.data[e]={name:e,versions:normalize(a[e].versions),released:normalize(a[e].versions.slice(0,-3)),releaseDate:a[e].release_date};fillUsage(browserslist.usage.global,e,n.usage_global);browserslist.versionAliases[e]={};for(var i=0;i<n.versions.length;i++){var o=n.versions[i];if(!o)continue;if(o.indexOf("-")!==-1){var l=o.split("-");for(var c=0;c<l.length;c++){browserslist.versionAliases[e][l[c]]=o}}}}browserslist.nodeVersions=s.map((function(e){return e.version}))})();e.exports=browserslist},43805:function(e,n,i){var s=i(63256)["default"];var a=i(40692)["default"];var o=i(79896);var l=i(16928);var c=i(54143);var p=/^\s*\[(.+)]\s*$/;var f=/^browserslist-config-/;var d=/@[^/]+(?:\/[^/]+)?\/browserslist-config(?:-|$|\/)/;var h="Browserslist config should be a string or an array "+"of strings with browser queries";var m=false;var y={};var g={};var _={};function checkExtend(e){var n=" Use `dangerousExtend` option to disable.";if(!f.test(e)&&!d.test(e)){throw new c("Browserslist config needs `browserslist-config-` prefix. "+n)}if(e.replace(/^@[^/]+\//,"").indexOf(".")!==-1){throw new c("`.` not allowed in Browserslist config name. "+n)}if(e.indexOf("node_modules")!==-1){throw new c("`node_modules` not allowed in Browserslist config."+n)}}function isFile(e){return o.existsSync(e)&&o.statSync(e).isFile()}function isDirectory(e){return o.existsSync(e)&&o.statSync(e).isDirectory()}function eachParent(e,n,i){var s=l.resolve(e);var a=[];var o;do{if(!pathInRoot(s)){break}if(i&&s in i){o=i[s];break}a.push(s);if(!isDirectory(s)){continue}var c=n(s);if(typeof c!=="undefined"){o=c;break}}while(s!==(s=l.dirname(s)));if(i&&!process.env.BROWSERSLIST_DISABLE_CACHE){a.forEach((function(e){i[e]=o}))}return o}function pathInRoot(e){if(!process.env.BROWSERSLIST_ROOT_PATH)return true;var n=l.resolve(process.env.BROWSERSLIST_ROOT_PATH);if(l.relative(n,e).substring(0,2)===".."){return false}return true}function check(e){if(Array.isArray(e)){for(var n=0;n<e.length;n++){if(typeof e[n]!=="string"){throw new c(h)}}}else if(typeof e!=="string"){throw new c(h)}}function pickEnv(e,n){if(typeof e!=="object")return e;var i;if(typeof n.env==="string"){i=n.env}else if(process.env.BROWSERSLIST_ENV){i=process.env.BROWSERSLIST_ENV}else if(process.env.NODE_ENV){i=process.env.NODE_ENV}else{i="production"}if(n.throwOnMissing){if(i&&i!=="defaults"&&!e[i]){throw new c("Missing config for Browserslist environment `"+i+"`")}}return e[i]||e.defaults}function parsePackage(e){var n=o.readFileSync(e).toString().replace(/^\uFEFF/m,"");var i;if(n.indexOf('"browserslist"')>=0){i=JSON.parse(n).browserslist}else if(n.indexOf('"browserlist"')>=0){var s=JSON.parse(n);if(s.browserlist&&!s.browserslist){throw new c("`browserlist` key instead of `browserslist` in "+e)}}if(Array.isArray(i)||typeof i==="string"){i={defaults:i}}for(var a in i){check(i[a])}return i}function parsePackageOrReadConfig(n){if(n in _){return _[n]}var i=l.basename(n)==="package.json";var s=i?parsePackage(n):e.exports.readConfig(n);if(!process.env.BROWSERSLIST_DISABLE_CACHE){_[n]=s}return s}function latestReleaseTime(e){var n=0;for(var i in e){var s=e[i].releaseDate||{};for(var a in s){if(n<s[a]){n=s[a]}}}return n*1e3}function getMonthsPassed(e){var n=new Date;var i=new Date(e);var s=n.getFullYear()-i.getFullYear();var a=n.getMonth()-i.getMonth();return s*12+a}function normalizeStats(e,n){if(!e){e={}}if(n&&"dataByBrowser"in n){n=n.dataByBrowser}if(typeof n!=="object")return undefined;var i={};for(var s in n){var a=Object.keys(n[s]);if(a.length===1&&e[s]&&e[s].versions.length===1){var o=e[s].versions[0];i[s]={};i[s][o]=n[s][a[0]]}else{i[s]=n[s]}}return i}function normalizeUsageData(e,n){for(var i in e){var s=e[i];if("0"in s){var a=n[i].versions;s[a[a.length-1]]=s[0];delete s[0]}}}e.exports={loadQueries:function loadQueries(e,n){if(!e.dangerousExtend&&!process.env.BROWSERSLIST_DANGEROUS_EXTEND){checkExtend(n)}var s=require(i(593).resolve(n,{paths:[".",e.path]}));if(typeof s==="object"&&s!==null&&s.__esModule){s=s.default}if(s){if(Array.isArray(s)){return s}else if(typeof s==="object"){if(!s.defaults)s.defaults=[];return pickEnv(s,e,n)}}throw new c("`"+n+"` config exports not an array of queries"+" or an object of envs")},loadStat:function loadStat(e,n,s){if(!e.dangerousExtend&&!process.env.BROWSERSLIST_DANGEROUS_EXTEND){checkExtend(n)}var a=require(i(593).resolve(l.join(n,"browserslist-stats.json"),{paths:["."]}));return normalizeStats(s,a)},getStat:function getStat(e,n){var i;if(e.stats){i=e.stats}else if(process.env.BROWSERSLIST_STATS){i=process.env.BROWSERSLIST_STATS}else if(e.path&&l.resolve&&o.existsSync){i=eachParent(e.path,(function(e){var n=l.join(e,"browserslist-stats.json");return isFile(n)?n:undefined}),y)}if(typeof i==="string"){try{i=JSON.parse(o.readFileSync(i))}catch(e){throw new c("Can't read "+i)}}return normalizeStats(n,i)},loadConfig:function loadConfig(n){if(process.env.BROWSERSLIST){return process.env.BROWSERSLIST}else if(n.config||process.env.BROWSERSLIST_CONFIG){var i=n.config||process.env.BROWSERSLIST_CONFIG;return pickEnv(parsePackageOrReadConfig(i),n)}else if(n.path){return pickEnv(e.exports.findConfig(n.path),n)}else{return undefined}},loadCountry:function loadCountry(e,n,i){var s=n.replace(/[^\w-]/g,"");if(!e[s]){var o;try{o=require("caniuse-lite/data/regions/"+s+".js")}catch(e){throw new c("Unknown region name `"+s+"`.")}var l=a(o);normalizeUsageData(l,i);e[n]={};for(var p in l){for(var f in l[p]){e[n][p+" "+f]=l[p][f]}}}},loadFeature:function loadFeature(e,n){n=n.replace(/[^\w-]/g,"");if(e[n])return;var i;try{i=require("caniuse-lite/data/features/"+n+".js")}catch(e){throw new c("Unknown feature name `"+n+"`.")}var a=s(i).stats;e[n]={};for(var o in a){e[n][o]={};for(var l in a[o]){e[n][o][l]=a[o][l]}}},parseConfig:function parseConfig(e){var n={defaults:[]};var i=["defaults"];e.toString().replace(/#[^\n]*/g,"").split(/\n|,/).map((function(e){return e.trim()})).filter((function(e){return e!==""})).forEach((function(e){if(p.test(e)){i=e.match(p)[1].trim().split(" ");i.forEach((function(e){if(n[e]){throw new c("Duplicate section "+e+" in Browserslist config")}n[e]=[]}))}else{i.forEach((function(i){n[i].push(e)}))}}));return n},readConfig:function readConfig(n){if(!isFile(n)){throw new c("Can't read "+n+" config")}return e.exports.parseConfig(o.readFileSync(n))},findConfigFile:function findConfigFile(e){return eachParent(e,(function(e){var n=l.join(e,"browserslist");var i=l.join(e,"package.json");var s=l.join(e,".browserslistrc");var a;if(isFile(i)){try{a=parsePackage(i)}catch(e){if(e.name==="BrowserslistError")throw e;console.warn("[Browserslist] Could not parse "+i+". Ignoring it.")}}if(isFile(n)&&a){throw new c(e+" contains both browserslist and package.json with browsers")}else if(isFile(s)&&a){throw new c(e+" contains both .browserslistrc and package.json with browsers")}else if(isFile(n)&&isFile(s)){throw new c(e+" contains both .browserslistrc and browserslist")}else if(isFile(n)){return n}else if(isFile(s)){return s}else if(a){return i}}),g)},findConfig:function findConfig(e){var n=this.findConfigFile(e);return n?parsePackageOrReadConfig(n):undefined},clearCaches:function clearCaches(){m=false;y={};g={};_={};this.cache={}},oldDataWarning:function oldDataWarning(e){if(m)return;m=true;if(process.env.BROWSERSLIST_IGNORE_OLD_DATA)return;var n=latestReleaseTime(e);var i=getMonthsPassed(n);if(n!==0&&i>=6){var s=i+" "+(i>1?"months":"month");console.warn("Browserslist: browsers data (caniuse-lite) is "+s+" old. Please run:\n"+" npx update-browserslist-db@latest\n"+" Why you should do it regularly: "+"https://github.com/browserslist/update-db#readme")}},currentNode:function currentNode(){return"node "+process.versions.node},env:process.env}},5546:function(e){var n=/^\s+and\s+(.*)/i;var i=/^(?:,\s*|\s+or\s+)(.*)/i;function flatten(e){if(!Array.isArray(e))return[e];return e.reduce((function(e,n){return e.concat(flatten(n))}),[])}function find(e,n){for(var i=e.length,s=1;s<=i;s++){var a=e.substr(-s,s);if(n(a,s,i)){return e.slice(0,-s)}}return""}function matchQuery(e,n){var i={query:n};if(n.indexOf("not ")===0){i.not=true;n=n.slice(4)}for(var s in e){var a=e[s];var o=n.match(a.regexp);if(o){i.type=s;for(var l=0;l<a.matches.length;l++){i[a.matches[l]]=o[l+1]}return i}}i.type="unknown";return i}function matchBlock(e,s,a){var o;return find(s,(function(s,l,c){if(n.test(s)){o=matchQuery(e,s.match(n)[1]);o.compose="and";a.unshift(o);return true}else if(i.test(s)){o=matchQuery(e,s.match(i)[1]);o.compose="or";a.unshift(o);return true}else if(l===c){o=matchQuery(e,s.trim());o.compose="or";a.unshift(o);return true}return false}))}e.exports=function parse(e,n){if(!Array.isArray(n))n=[n];return flatten(n.map((function(n){var i=[];do{n=matchBlock(e,n,i)}while(n);return i})))}},59576:function(e){"use strict";
|
|
2
2
|
/*!
|
|
3
3
|
* bytes
|
|
4
4
|
* Copyright(c) 2012-2014 TJ Holowaychuk
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@bull-board/koa","version":"6.11.1","description":"A Koa.js server adapter for Bull-Board dashboard.","keywords":["bull","bullmq","redis","koa","adapter","queue","monitoring","dashboard"],"repository":{"type":"git","url":"git+https://github.com/felixmosh/bull-board.git","directory":"packages/koa"},"license":"MIT","author":"felixmosh","main":"dist/index.js","files":["dist"],"scripts":{"build":"tsc","clean":"rm -rf dist"},"dependencies":{"@bull-board/api":"6.11.1","@bull-board/ui":"6.11.1","@koa/bodyparser":"^5.1.2","@ladjs/koa-views":"^9.0.0","ejs":"^3.1.10","koa":"^3.0.0","koa-mount":"^4.2.0","koa-router":"^13.0.1","koa-static":"^5.0.0"},"devDependencies":{"@types/co-body":"^6.1.3","@types/koa":"^2.15.0","@types/koa-mount":"^4.0.5","@types/koa-router":"^7.4.8","@types/koa-static":"^4.0.4","@types/koa-views":"^7.0.0"},"publishConfig":{"access":"public"},"_lastModified":"2025-
|
|
1
|
+
{"name":"@bull-board/koa","version":"6.11.1","description":"A Koa.js server adapter for Bull-Board dashboard.","keywords":["bull","bullmq","redis","koa","adapter","queue","monitoring","dashboard"],"repository":{"type":"git","url":"git+https://github.com/felixmosh/bull-board.git","directory":"packages/koa"},"license":"MIT","author":"felixmosh","main":"dist/index.js","files":["dist"],"scripts":{"build":"tsc","clean":"rm -rf dist"},"dependencies":{"@bull-board/api":"6.11.1","@bull-board/ui":"6.11.1","@koa/bodyparser":"^5.1.2","@ladjs/koa-views":"^9.0.0","ejs":"^3.1.10","koa":"^3.0.0","koa-mount":"^4.2.0","koa-router":"^13.0.1","koa-static":"^5.0.0"},"devDependencies":{"@types/co-body":"^6.1.3","@types/koa":"^2.15.0","@types/koa-mount":"^4.0.5","@types/koa-router":"^7.4.8","@types/koa-static":"^4.0.4","@types/koa-views":"^7.0.0"},"publishConfig":{"access":"public"},"_lastModified":"2025-11-10T07:33:17.238Z"}
|
|
@@ -537,9 +537,11 @@ class Queue extends queue_getters_1.QueueGetters {
|
|
|
537
537
|
const timestamp = Date.now() - grace;
|
|
538
538
|
let deletedCount = 0;
|
|
539
539
|
const deletedJobsIds = [];
|
|
540
|
+
// Normalize 'waiting' to 'wait' for consistency with internal Redis keys
|
|
541
|
+
const normalizedType = type === 'waiting' ? 'wait' : type;
|
|
540
542
|
while (deletedCount < maxCount) {
|
|
541
|
-
const jobsIds = await this.scripts.cleanJobsInSet(
|
|
542
|
-
this.emit('cleaned', jobsIds,
|
|
543
|
+
const jobsIds = await this.scripts.cleanJobsInSet(normalizedType, timestamp, maxCountPerCall);
|
|
544
|
+
this.emit('cleaned', jobsIds, normalizedType);
|
|
543
545
|
deletedCount += jobsIds.length;
|
|
544
546
|
deletedJobsIds.push(...jobsIds);
|
|
545
547
|
if (jobsIds.length < maxCountPerCall) {
|
|
@@ -14,6 +14,7 @@ const pack = packer.pack;
|
|
|
14
14
|
const enums_1 = require("../enums");
|
|
15
15
|
const utils_1 = require("../utils");
|
|
16
16
|
const version_1 = require("../version");
|
|
17
|
+
const errors_1 = require("./errors");
|
|
17
18
|
class Scripts {
|
|
18
19
|
constructor(queue) {
|
|
19
20
|
this.queue = queue;
|
|
@@ -694,7 +695,6 @@ class Scripts {
|
|
|
694
695
|
`${jobId}:dependencies`,
|
|
695
696
|
`${jobId}:unsuccessful`,
|
|
696
697
|
'stalled',
|
|
697
|
-
'failed',
|
|
698
698
|
'events',
|
|
699
699
|
].map(name => {
|
|
700
700
|
return this.queue.toKey(name);
|
|
@@ -1115,8 +1115,8 @@ class Scripts {
|
|
|
1115
1115
|
return new Error(`The parent job ${parentKey} cannot be replaced. ${command}`);
|
|
1116
1116
|
case enums_1.ErrorCode.JobBelongsToJobScheduler:
|
|
1117
1117
|
return new Error(`Job ${jobId} belongs to a job scheduler and cannot be removed directly. ${command}`);
|
|
1118
|
-
case enums_1.ErrorCode.
|
|
1119
|
-
return new
|
|
1118
|
+
case enums_1.ErrorCode.JobHasFailedChildren:
|
|
1119
|
+
return new errors_1.UnrecoverableError(`Cannot complete job ${jobId} because it has at least one failed child. ${command}`);
|
|
1120
1120
|
default:
|
|
1121
1121
|
return new Error(`Unknown code ${code} error for ${jobId}. ${command}`);
|
|
1122
1122
|
}
|
|
@@ -225,8 +225,7 @@ class Worker extends queue_base_1.QueueBase {
|
|
|
225
225
|
const jobsInProgress = new Set();
|
|
226
226
|
this.startLockExtenderTimer(jobsInProgress);
|
|
227
227
|
let tokenPostfix = 0;
|
|
228
|
-
while (!this.closing && !this.paused) {
|
|
229
|
-
let numTotal = asyncFifoQueue.numTotal();
|
|
228
|
+
while ((!this.closing && !this.paused) || asyncFifoQueue.numTotal() > 0) {
|
|
230
229
|
/**
|
|
231
230
|
* This inner loop tries to fetch jobs concurrently, but if we are waiting for a job
|
|
232
231
|
* to arrive at the queue we should not try to fetch more jobs (as it would be pointless)
|
|
@@ -234,13 +233,12 @@ class Worker extends queue_base_1.QueueBase {
|
|
|
234
233
|
while (!this.closing &&
|
|
235
234
|
!this.paused &&
|
|
236
235
|
!this.waiting &&
|
|
237
|
-
numTotal < this._concurrency &&
|
|
236
|
+
asyncFifoQueue.numTotal() < this._concurrency &&
|
|
238
237
|
!this.isRateLimited()) {
|
|
239
238
|
const token = `${this.id}:${tokenPostfix++}`;
|
|
240
239
|
const fetchedJob = this.retryIfFailed(() => this._getNextJob(client, bclient, token, { block: true }), this.opts.runRetryDelay);
|
|
241
240
|
asyncFifoQueue.add(fetchedJob);
|
|
242
|
-
|
|
243
|
-
if (this.waiting && numTotal > 1) {
|
|
241
|
+
if (this.waiting && asyncFifoQueue.numTotal() > 1) {
|
|
244
242
|
// We are waiting for jobs but we have others that we could start processing already
|
|
245
243
|
break;
|
|
246
244
|
}
|
|
@@ -248,7 +246,7 @@ class Worker extends queue_base_1.QueueBase {
|
|
|
248
246
|
// to Redis in high concurrency scenarios.
|
|
249
247
|
const job = await fetchedJob;
|
|
250
248
|
// No more jobs waiting but we have others that could start processing already
|
|
251
|
-
if (!job && numTotal > 1) {
|
|
249
|
+
if (!job && asyncFifoQueue.numTotal() > 1) {
|
|
252
250
|
break;
|
|
253
251
|
}
|
|
254
252
|
// If there are potential jobs to be processed and blockUntil is set, we should exit to avoid waiting
|
|
@@ -271,7 +269,6 @@ class Worker extends queue_base_1.QueueBase {
|
|
|
271
269
|
await this.waitForRateLimit();
|
|
272
270
|
}
|
|
273
271
|
}
|
|
274
|
-
return asyncFifoQueue.waitAll();
|
|
275
272
|
}
|
|
276
273
|
/**
|
|
277
274
|
* Returns a promise that resolves to the next job in queue.
|
|
@@ -464,7 +461,7 @@ class Worker extends queue_base_1.QueueBase {
|
|
|
464
461
|
// Add next scheduled job if necessary.
|
|
465
462
|
if (job.opts.repeat && !job.nextRepeatableJobId) {
|
|
466
463
|
// Use new job scheduler if possible
|
|
467
|
-
if (job.repeatJobKey) {
|
|
464
|
+
if (job.repeatJobKey && job.repeatJobKey.split(':').length < 5) {
|
|
468
465
|
const jobScheduler = await this.jobScheduler;
|
|
469
466
|
await jobScheduler.upsertJobScheduler(job.repeatJobKey, job.opts.repeat, job.name, job.data, job.opts, { override: false, producerId: job.id });
|
|
470
467
|
}
|
|
@@ -576,7 +573,9 @@ class Worker extends queue_base_1.QueueBase {
|
|
|
576
573
|
});
|
|
577
574
|
if (!this.paused) {
|
|
578
575
|
this.paused = true;
|
|
579
|
-
|
|
576
|
+
if (!doNotWaitActive) {
|
|
577
|
+
await this.whenCurrentJobsFinished();
|
|
578
|
+
}
|
|
580
579
|
(_a = this.stalledCheckStopper) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
581
580
|
this.emit('paused');
|
|
582
581
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
--[[
|
|
2
|
+
Function to move job to wait to be picked up by a waiting worker.
|
|
3
|
+
]]
|
|
4
|
+
|
|
5
|
+
-- Includes
|
|
6
|
+
--- @include "addJobInTargetList"
|
|
7
|
+
--- @include "getTargetQueueList"
|
|
8
|
+
|
|
9
|
+
local function moveJobToWait(metaKey, activeKey, waitKey, pausedKey, markerKey, eventStreamKey,
|
|
10
|
+
jobId, pushCmd)
|
|
11
|
+
local target, isPausedOrMaxed = getTargetQueueList(metaKey, activeKey, waitKey, pausedKey)
|
|
12
|
+
addJobInTargetList(target, markerKey, pushCmd, isPausedOrMaxed, jobId)
|
|
13
|
+
|
|
14
|
+
rcall("XADD", eventStreamKey, "*", "event", "waiting", "jobId", jobId, 'prev', 'active')
|
|
15
|
+
end
|
|
@@ -29,6 +29,10 @@ local jobId = ARGV[1]
|
|
|
29
29
|
local token = ARGV[2]
|
|
30
30
|
local jobKey = ARGV[3]
|
|
31
31
|
|
|
32
|
+
if rcall("EXISTS", jobKey) == 0 then
|
|
33
|
+
return -1
|
|
34
|
+
end
|
|
35
|
+
|
|
32
36
|
local errorCode = removeLock(jobKey, KEYS[3], token, jobId)
|
|
33
37
|
if errorCode < 0 then
|
|
34
38
|
return errorCode
|
|
@@ -60,4 +64,4 @@ if pttl > 0 then
|
|
|
60
64
|
return pttl
|
|
61
65
|
else
|
|
62
66
|
return 0
|
|
63
|
-
end
|
|
67
|
+
end
|