diff --git a/0825.json b/0825.json
index 79a61ee4..6227a602 100644
--- a/0825.json
+++ b/0825.json
@@ -1,5 +1,5 @@
{
-"spider":"./jar/pg.jar;md5;b9058c9176428d6254095ef83a1666ed",
+"spider":"./jar/pg.jar;md5;39762f095f1442f6519b52b08b9e325d",
"lives":[{"name":"初秋语•综合","type":0,"url":"./list.txt","playerType":1,"epg":"http://epg.112114.xyz/?ch={name}&date={date}","logo":"https://epg.112114.xyz/logo/{name}.png"},
{"name":"Ray•综合","type":0,"url":"https://github.moeyy.xyz/https://raw.githubusercontent.com/dxawi/0/main/tvlive.txt","playerType":1,"epg":"http://epg.112114.xyz/?ch={name}&date={date}","logo":"https://epg.112114.xyz/logo/{name}.png"},
{"name":"俊于•综合","type":0,"url":"http://home.jundie.top:81/Cat/tv/live.txt","playerType":1,"epg":"http://epg.112114.xyz/?ch={name}&date={date}","logo": "https://epg.112114.xyz/logo/{name}.png"},
@@ -17,7 +17,7 @@
{"key": "JustLive","name": "JustLive","type": 3,"api": "csp_JustLive","searchable": 1,"changeable": 0},
{"key":"lf_js_lf_live","name":"直播","type":3,"api":"./lib/lf_live_min.js","style":{ "type":"oval"},"searchable":1,"changeable":0,"quickSearch":1,"filterable":1,"ext":"./js/lf_live.txt"},
{ "key": "Ikanbot", "name": "爱看", "type": 3, "api": "csp_Ikanbot", "searchable": 1, "quickSearch": 1, "filterable": 1, "changeable": 1 , "ext":"https://v.ikanbot.com$$$proxy"},
-{"key":"榜一短剧","name":"短剧","type":3,"api":"csp_XBPQ","jar":"./jar/XBPQ.jar;md5;aed5227e8c1ab71f30c948fed7bbad6c","ext":{"分类":"逆袭短剧$1#甜宠短剧$3#虐恋短剧$5#穿越短剧$7#重生短剧$9#都市短剧$11#现代言情短剧$13#古装短剧$15#古代言情短剧$17#战神短剧$19#神医短剧$21#神豪短剧$23#超能短剧$25#萌宝短剧$27#复仇短剧$29#脑洞短剧$31#赘婿短剧$33#玄幻短剧$35#热血短剧$37#其他短剧$39","分类url":"https://duanjuu.com/vodshow/{cateId}--------{catePg}---.html;;m"}},
+{"key":"榜一短剧","name":"短剧","type":3,"api":"csp_XBPQ","jar":"./jar/XBPQ.jar;md5;518d66b6cd98f169579f71ec43032048","ext":{"分类":"逆袭短剧$1#甜宠短剧$3#虐恋短剧$5#穿越短剧$7#重生短剧$9#都市短剧$11#现代言情短剧$13#古装短剧$15#古代言情短剧$17#战神短剧$19#神医短剧$21#神豪短剧$23#超能短剧$25#萌宝短剧$27#复仇短剧$29#脑洞短剧$31#赘婿短剧$33#玄幻短剧$35#热血短剧$37#其他短剧$39","分类url":"https://duanjuu.com/vodshow/{cateId}--------{catePg}---.html;;m"}},
{"key":"Local","name":"本地","type":3,"api":"csp_Local","quickSearch":1, "changeable":1, "filterable":1, "timeout":60, "ext":"null$$$null$$$1"},
{"key":"看球","name":"看球","type":3,"api":"csp_Kanqiu","searchable":1,"changeable":0,"style":{"type":"list"}},
@@ -109,7 +109,7 @@
"播放数组": "下载地址&&",
"播放列表": "
<&&"
},
-"jar": "./jar/XBPQ.jar;md5;aed5227e8c1ab71f30c948fed7bbad6c"
+"jar": "./jar/XBPQ.jar;md5;518d66b6cd98f169579f71ec43032048"
},
{
"key": "rarbt",
@@ -134,9 +134,9 @@
"分类": "电影$movie#电视剧$Series#动漫$cartoon#综艺$variety",
"分类url": "https://www.rarbt.fun/vod/show/area/{area}/class/{class}/id/{cateId}/page/{catePg}/lang/{lang}/letter/{letter}/year/{year}.html"
},
- "jar":"./jar/XBPQ.jar;md5;aed5227e8c1ab71f30c948fed7bbad6c"
+ "jar":"./jar/XBPQ.jar;md5;518d66b6cd98f169579f71ec43032048"
},
-{"key":"XBPQ_文才","name":"文才","type":3,"api":"csp_XBPQ", "jar":"./jar/XBPQ.jar;md5;aed5227e8c1ab71f30c948fed7bbad6c",
+{"key":"XBPQ_文才","name":"文才","type":3,"api":"csp_XBPQ", "jar":"./jar/XBPQ.jar;md5;518d66b6cd98f169579f71ec43032048",
"ext":{"分类": "国产剧&短剧&国产动漫&日韩动漫&欧美动漫&喜剧片&爱情片&恐怖片&战争片&科幻片&动作片&综艺&欧美剧&港台剧&日韩剧",
"分类值": "14&42&75&76&77&22&26&36&25&30&23&69&15&16&62",
"分类url": "https://api.zeqaht.com/api.php/provide/vod/?ac=list&ac=detail&t={cateId}&pg={catePg}",
@@ -171,14 +171,14 @@
"免嗅": "0"
}
},
-{"key":"XBPQ_BaiPiao","name":"白嫖","type":3,"api":"csp_XBPQ", "jar":"./jar/XBPQ.jar;md5;aed5227e8c1ab71f30c948fed7bbad6c",
+{"key":"XBPQ_BaiPiao","name":"白嫖","type":3,"api":"csp_XBPQ", "jar":"./jar/XBPQ.jar;md5;518d66b6cd98f169579f71ec43032048",
"ext": {
"地区":"[替换:大陆>>中国大陆#香港>>中国香港#台湾>>中国台湾]",
"分类": "电影$1#电视剧$2#动漫$3#短剧$4#综艺$5",
"分类url": "https://www.baipiaoys.com:9092/show/area/{area}/by/{by}/class/{class}/id/{cateId}/page/{catePg}/year/{year}.html"
}
},
-{"key":"XBPQ_黑狐影院","name":"黑狐","type":3,"api":"csp_XBPQ", "jar":"./jar/XBPQ.jar;md5;aed5227e8c1ab71f30c948fed7bbad6c",
+{"key":"XBPQ_黑狐影院","name":"黑狐","type":3,"api":"csp_XBPQ", "jar":"./jar/XBPQ.jar;md5;518d66b6cd98f169579f71ec43032048",
"ext": {
"站名": "黑狐影院",
"主页url": "http://fagmn.com",
@@ -215,7 +215,7 @@
{
"key":"XBPQ_电影先生",
"name": "电影先生",
-"jar":"./jar/XBPQ.jar;md5;aed5227e8c1ab71f30c948fed7bbad6c",
+"jar":"./jar/XBPQ.jar;md5;518d66b6cd98f169579f71ec43032048",
"type": 3,
"api": "csp_XBPQ",
"ext": {
@@ -233,7 +233,7 @@
"分类": "电影$dianying#电视剧$dianshiju#动漫$dongman#综艺$zongyi"
}
},
-{"key": "XBPQ_麻衣影院","name":"麻衣","type":3,"api":"csp_XBPQ","searchable":1,"quickSearch":1,"filterable":1,"jar":"./jar/XBPQ.jar;md5;aed5227e8c1ab71f30c948fed7bbad6c",
+{"key": "XBPQ_麻衣影院","name":"麻衣","type":3,"api":"csp_XBPQ","searchable":1,"quickSearch":1,"filterable":1,"jar":"./jar/XBPQ.jar;md5;518d66b6cd98f169579f71ec43032048",
"ext": {"分类url":"https://www.huanyuxing.com/s/{cateId}/area/{area}/class/{class}/page/{catePg}/year/{year}.html","分类":"电影$id-a#电视剧$id-b#动漫$id-c#综艺$id-d"}
},
{
@@ -247,7 +247,7 @@
},
"quickSearch": 0,
"api": "csp_XBPQ",
- "jar":"./jar/XBPQ.jar;md5;aed5227e8c1ab71f30c948fed7bbad6c",
+ "jar":"./jar/XBPQ.jar;md5;518d66b6cd98f169579f71ec43032048",
"ext": {
"主页url": "https://www.xsmp3.com",
"数组二次截取": "&&]*>/g, '');
- VOD.vod_content = VOD.vod_content.replace(/ /g, '').replace(/<[^>]*>/g, '');
- }
- `,
- 搜索: 'json:list;vod_name;vod_pic;vod_remarks;vod_id',
-}
\ No newline at end of file
diff --git a/FTY/模板.js b/FTY/模板.js
deleted file mode 100644
index 82b037b3..00000000
--- a/FTY/模板.js
+++ /dev/null
@@ -1,304 +0,0 @@
-if (typeof Object.assign != 'function') {
- Object.assign = function () {
- var target = arguments[0];
- for (var i = 1; i < arguments.length; i++) {
- var source = arguments[i];
- for (var key in source) {
- if (Object.prototype.hasOwnProperty.call(source, key)) {
- target[key] = source[key];
- }
- }
- }
- return target;
-};
-}
-function getMubans() {
- var mubanDict = { // 模板字典
- mxpro: {
- title: '',
- host: '',
- // homeUrl:'/',
- url: '/vodshow/fyclass--------fypage---.html',
- searchUrl: '/vodsearch/**----------fypage---.html',
- searchable: 2,//是否启用全局搜索,
- quickSearch: 0,//是否启用快速搜索,
- filterable: 0,//是否启用分类筛选,
- headers: {//网站的请求头,完整支持所有的,常带ua和cookies
- 'User-Agent': 'MOBILE_UA',
- // "Cookie": "searchneed=ok"
- },
- class_parse: '.navbar-items li:gt(2):lt(8);a&&Text;a&&href;/(\\d+).html',
- play_parse: true,
- lazy: '',
- limit: 6,
- 推荐: '.tab-list.active;a.module-poster-item.module-item;.module-poster-item-title&&Text;.lazyload&&data-original;.module-item-note&&Text;a&&href',
- double: true, // 推荐内容是否双层定位
- 一级: 'body a.module-poster-item.module-item;a&&title;.lazyload&&data-original;.module-item-note&&Text;a&&href',
- 二级: {
- "title": "h1&&Text;.module-info-tag&&Text",
- "img": ".lazyload&&data-original",
- "desc": ".module-info-item:eq(1)&&Text;.module-info-item:eq(2)&&Text;.module-info-item:eq(3)&&Text",
- "content": ".module-info-introduction&&Text",
- "tabs": ".module-tab-item",
- "lists": ".module-play-list:eq(#id) a"
- },
- 搜索: 'body .module-item;.module-card-item-title&&Text;.lazyload&&data-original;.module-item-note&&Text;a&&href;.module-info-item-content&&Text',
- },
- mxone5: {
- title: '',
- host: '',
- url: '/show/fyclass--------fypage---.html',
- searchUrl: '/search/**----------fypage---.html',
- searchable: 2,//是否启用全局搜索,
- quickSearch: 0,//是否启用快速搜索,
- filterable: 0,//是否启用分类筛选,
- class_parse: '.nav-menu-items&&li;a&&Text;a&&href;.*/(.*?).html',
- play_parse: true,
- lazy: '',
- limit: 6,
- 推荐: '.module-list;.module-items&&.module-item;a&&title;img&&data-src;.module-item-text&&Text;a&&href',
- double: true, // 推荐内容是否双层定位
- 一级: '.module-items .module-item;a&&title;img&&data-src;.module-item-text&&Text;a&&href',
- 二级: {
- "title": "h1&&Text;.tag-link&&Text",
- "img": ".module-item-pic&&img&&data-src",
- "desc": ".video-info-items:eq(0)&&Text;.video-info-items:eq(1)&&Text;.video-info-items:eq(2)&&Text;.video-info-items:eq(3)&&Text",
- "content": ".vod_content&&Text",
- "tabs": ".module-tab-item",
- "lists": ".module-player-list:eq(#id)&&.scroll-content&&a"
- },
- 搜索: '.module-items .module-search-item;a&&title;img&&data-src;.video-serial&&Text;a&&href',
- },
- 首图: {
- title: '',
- host: '',
- url: '/vodshow/fyclass--------fypage---/',
- searchUrl: '/vodsearch/**----------fypage---.html',
- searchable: 2,//是否启用全局搜索,
- quickSearch: 0,//是否启用快速搜索,
- filterable: 0,//是否启用分类筛选,
- headers: {//网站的请求头,完整支持所有的,常带ua和cookies
- 'User-Agent': 'MOBILE_UA',
- // "Cookie": "searchneed=ok"
- },
- class_parse: '.myui-header__menu li.hidden-sm:gt(0):lt(5);a&&Text;a&&href;/(\\d+).html',
- play_parse: true,
- lazy: '',
- limit: 6,
- 推荐: 'ul.myui-vodlist.clearfix;li;a&&title;a&&data-original;.pic-text&&Text;a&&href',
- double: true, // 推荐内容是否双层定位
- 一级: '.myui-vodlist li;a&&title;a&&data-original;.pic-text&&Text;a&&href',
- 二级: {
- "title": ".myui-content__detail .title&&Text;.myui-content__detail p:eq(-2)&&Text",
- "img": ".myui-content__thumb .lazyload&&data-original",
- "desc": ".myui-content__detail p:eq(0)&&Text;.myui-content__detail p:eq(1)&&Text;.myui-content__detail p:eq(2)&&Text",
- "content": ".content&&Text",
- "tabs": ".nav-tabs:eq(0) li",
- "lists": ".myui-content__list:eq(#id) li"
- },
- 搜索: '#searchList li;a&&title;.lazyload&&data-original;.text-muted&&Text;a&&href;.text-muted:eq(-1)&&Text',
- },
- 首图2: {
- title: '',
- host: '',
- url: '/list/fyclass-fypage.html',
- searchUrl: '/vodsearch/**----------fypage---.html',
- searchable: 2,//是否启用全局搜索,
- quickSearch: 0,//是否启用快速搜索,
- filterable: 0,//是否启用分类筛选,
- headers: {
- 'User-Agent': 'UC_UA',
- // "Cookie": ""
- },
- // class_parse:'.stui-header__menu li:gt(0):lt(7);a&&Text;a&&href;/(\\d+).html',
- class_parse: '.stui-header__menu li:gt(0):lt(7);a&&Text;a&&href;.*/(.*?).html',
- play_parse: true,
- lazy: '',
- limit: 6,
- 推荐: 'ul.stui-vodlist.clearfix;li;a&&title;.lazyload&&data-original;.pic-text&&Text;a&&href',
- double: true, // 推荐内容是否双层定位
- 一级: '.stui-vodlist li;a&&title;a&&data-original;.pic-text&&Text;a&&href',
- 二级: {
- "title": ".stui-content__detail .title&&Text;.stui-content__detail p:eq(-2)&&Text",
- "img": ".stui-content__thumb .lazyload&&data-original",
- "desc": ".stui-content__detail p:eq(0)&&Text;.stui-content__detail p:eq(1)&&Text;.stui-content__detail p:eq(2)&&Text",
- "content": ".detail&&Text",
- "tabs": ".stui-vodlist__head h3",
- "lists": ".stui-content__playlist:eq(#id) li"
- },
- 搜索: 'ul.stui-vodlist__media:eq(0) li,ul.stui-vodlist:eq(0) li,#searchList li;a&&title;.lazyload&&data-original;.text-muted&&Text;a&&href;.text-muted:eq(-1)&&Text',
- 搜索1: 'ul.stui-vodlist&&li;a&&title;.lazyload&&data-original;.text-muted&&Text;a&&href;.text-muted:eq(-1)&&Text',
- 搜索2: 'ul.stui-vodlist__media&&li;a&&title;.lazyload&&data-original;.text-muted&&Text;a&&href;.text-muted:eq(-1)&&Text',
- },
- 默认: {
- title: '',
- host: '',
- url: '/vodshow/fyclass--------fypage---.html',
- searchUrl: '/vodsearch/-------------.html?wd=**',
- searchable: 2,//是否启用全局搜索,
- quickSearch: 0,//是否启用快速搜索,
- filterable: 0,//是否启用分类筛选,
- headers: {
- 'User-Agent': 'MOBILE_UA',
- },
- play_parse: true,
- lazy: '',
- limit: 6,
- double: true, // 推荐内容是否双层定位
- },
- vfed: {
- title: '',
- host: '',
- url: '/index.php/vod/show/id/fyclass/page/fypage.html',
- searchUrl: '/index.php/vod/search/page/fypage/wd/**.html',
- searchable: 2,//是否启用全局搜索,
- quickSearch: 0,//是否启用快速搜索,
- filterable: 0,//是否启用分类筛选,
- headers: {
- 'User-Agent': 'UC_UA',
- },
- // class_parse:'.fed-pops-navbar&&ul.fed-part-rows&&a.fed-part-eone:gt(0):lt(5);a&&Text;a&&href;.*/(.*?).html',
- class_parse: '.fed-pops-navbar&&ul.fed-part-rows&&a;a&&Text;a&&href;.*/(.*?).html',
- play_parse: true,
- lazy: '',
- limit: 6,
- 推荐: 'ul.fed-list-info.fed-part-rows;li;a.fed-list-title&&Text;a&&data-original;.fed-list-remarks&&Text;a&&href',
- double: true, // 推荐内容是否双层定位
- 一级: '.fed-list-info&&li;a.fed-list-title&&Text;a&&data-original;.fed-list-remarks&&Text;a&&href',
- 二级: {
- "title": "h1.fed-part-eone&&Text;.fed-deta-content&&.fed-part-rows&&li&&Text",
- "img": ".fed-list-info&&a&&data-original",
- "desc": ".fed-deta-content&&.fed-part-rows&&li:eq(1)&&Text;.fed-deta-content&&.fed-part-rows&&li:eq(2)&&Text;.fed-deta-content&&.fed-part-rows&&li:eq(3)&&Text",
- "content": ".fed-part-esan&&Text",
- "tabs": ".fed-drop-boxs&&.fed-part-rows&&li",
- "lists": ".fed-play-item:eq(#id)&&ul:eq(1)&&li"
- },
- 搜索: '.fed-deta-info;h1&&Text;.lazyload&&data-original;.fed-list-remarks&&Text;a&&href;.fed-deta-content&&Text',
- },
- 海螺3: {
- title: '',
- host: '',
- searchUrl: '/v_search/**----------fypage---.html',
- url: '/vod_____show/fyclass--------fypage---.html',
- headers: {
- 'User-Agent': 'MOBILE_UA'
- },
- timeout: 5000,
- class_parse: 'body&&.hl-nav li:gt(0);a&&Text;a&&href;.*/(.*?).html',
- cate_exclude: '明星|专题|最新|排行',
- limit: 40,
- play_parse: true,
- lazy: '',
- 推荐: '.hl-vod-list;li;a&&title;a&&data-original;.remarks&&Text;a&&href',
- double: true,
- 一级: '.hl-vod-list&&.hl-list-item;a&&title;a&&data-original;.remarks&&Text;a&&href',
- 二级: {
- "title": ".hl-infos-title&&Text;.hl-text-conch&&Text",
- "img": ".hl-lazy&&data-original",
- "desc": ".hl-infos-content&&.hl-text-conch&&Text",
- "content": ".hl-content-text&&Text",
- "tabs": ".hl-tabs&&a",
- "lists": ".hl-plays-list:eq(#id)&&li"
- },
- 搜索: '.hl-list-item;a&&title;a&&data-original;.remarks&&Text;a&&href',
- searchable: 2,//是否启用全局搜索,
- quickSearch: 0,//是否启用快速搜索,
- filterable: 0,//是否启用分类筛选,
- },
- 海螺2: {
- title: '',
- host: '',
- searchUrl: '/index.php/vod/search/page/fypage/wd/**/',
- url: '/index.php/vod/show/id/fyclass/page/fypage/',
- headers: {
- 'User-Agent': 'MOBILE_UA'
- },
- timeout: 5000,
- class_parse: '#nav-bar li;a&&Text;a&&href;id/(.*?)/',
- limit: 40,
- play_parse: true,
- lazy: '',
- 推荐: '.list-a.size;li;a&&title;.lazy&&data-original;.bt&&Text;a&&href',
- double: true,
- 一级: '.list-a&&li;a&&title;.lazy&&data-original;.list-remarks&&Text;a&&href',
- 二级: {
- "title": "h2&&Text;.deployment&&Text",
- "img": ".lazy&&data-original",
- "desc": ".deployment&&Text",
- "content": ".ec-show&&Text",
- "tabs": "#tag&&a",
- "lists": ".play_list_box:eq(#id)&&li"
- },
- 搜索: '.search-list;a&&title;.lazy&&data-original;.deployment&&Text;a&&href',
- searchable: 2,//是否启用全局搜索,
- quickSearch: 0,//是否启用快速搜索,
- filterable: 0,//是否启用分类筛选,
- },
- 短视: {
- title: '',
- host: '',
- // homeUrl:'/',
- url: '/channel/fyclass-fypage.html',
- searchUrl: '/search.html?wd=**',
- searchable: 2,//是否启用全局搜索,
- quickSearch: 0,//是否启用快速搜索,
- filterable: 0,//是否启用分类筛选,
- headers: {//网站的请求头,完整支持所有的,常带ua和cookies
- 'User-Agent': 'MOBILE_UA',
- // "Cookie": "searchneed=ok"
- },
- class_parse: '.menu_bottom ul li;a&&Text;a&&href;.*/(.*?).html',
- cate_exclude: '解析|动态',
- play_parse: true,
- lazy: '',
- limit: 6,
- 推荐: '.indexShowBox;ul&&li;a&&title;img&&data-src;.s1&&Text;a&&href',
- double: true, // 推荐内容是否双层定位
- 一级: '.pic-list&&li;a&&title;img&&data-src;.s1&&Text;a&&href',
- 二级: {
- "title": "h1&&Text;.content-rt&&p:eq(0)&&Text",
- "img": ".img&&img&&data-src",
- "desc": ".content-rt&&p:eq(1)&&Text;.content-rt&&p:eq(2)&&Text;.content-rt&&p:eq(3)&&Text;.content-rt&&p:eq(4)&&Text;.content-rt&&p:eq(5)&&Text",
- "content": ".zkjj_a&&Text",
- "tabs": ".py-tabs&&option",
- "lists": ".player:eq(#id) li"
- },
- 搜索: '.sr_lists&&ul&&li;h3&&Text;img&&data-src;.int&&p:eq(0)&&Text;a&&href',
- },
- 短视2:{
- title: '',
- host: '',
- class_name:'电影&电视剧&综艺&动漫',
- class_url:'1&2&3&4',
- searchUrl: '/index.php/ajax/suggest?mid=1&wd=**&limit=50',
- searchable: 2,
- quickSearch: 0,
- headers:{'User-Agent':'MOBILE_UA'},
- url: '/index.php/api/vod#type=fyclass&page=fypage',
- filterable:0,//是否启用分类筛选,
- filter_url:'',
- filter: {},
- filter_def:{},
- detailUrl:'/index.php/vod/detail/id/fyid.html',
- play_parse: true,
- lazy: '',
- limit: 6,
- 推荐:'.list-vod.flex .public-list-box;a&&title;.lazy&&data-original;.public-list-prb&&Text;a&&href',
- 一级:'js:let body=input.split("#")[1];let t=Math.round(new Date/1e3).toString();let key=md5("DS"+t+"DCC147D11943AF75");let url=input.split("#")[0];body=body+"&time="+t+"&key="+key;print(body);fetch_params.body=body;let html=post(url,fetch_params);let data=JSON.parse(html);VODS=data.list.map(function(it){it.vod_pic=urljoin2(input.split("/i")[0],it.vod_pic);return it});',
- 二级:{
- "title":".slide-info-title&&Text;.slide-info:eq(3)--strong&&Text",
- "img":".detail-pic&&data-original",
- "desc":".fraction&&Text;.slide-info-remarks:eq(1)&&Text;.slide-info-remarks:eq(2)&&Text;.slide-info:eq(2)--strong&&Text;.slide-info:eq(1)--strong&&Text",
- "content":"#height_limit&&Text",
- "tabs":".anthology.wow.fadeInUp.animated&&.swiper-wrapper&&a",
- "tab_text":".swiper-slide&&Text",
- "lists":".anthology-list-box:eq(#id) li"
- },
- 搜索:'json:list;name;pic;;id',
- }
- };
- return JSON.parse(JSON.stringify(mubanDict));
-}
-var mubanDict = getMubans();
-var muban = getMubans();
-export default {muban,getMubans};
\ No newline at end of file
diff --git a/cat/18_dist/index.js b/cat/18_dist/index.js
index 5c38e088..f48ebfd3 100644
--- a/cat/18_dist/index.js
+++ b/cat/18_dist/index.js
@@ -1,30 +1,30 @@
-var FW=Object.create;var gc=Object.defineProperty;var MW=Object.getOwnPropertyDescriptor;var $W=Object.getOwnPropertyNames;var jW=Object.getPrototypeOf,UW=Object.prototype.hasOwnProperty;var C=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),MS=(t,e)=>{for(var n in e)gc(t,n,{get:e[n],enumerable:!0})},$S=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of $W(e))!UW.call(t,l)&&l!==n&&gc(t,l,{get:()=>e[l],enumerable:!(r=MW(e,l))||r.enumerable});return t};var _r=(t,e,n)=>(n=t!=null?FW(jW(t)):{},$S(e||!t||!t.__esModule?gc(n,"default",{value:t,enumerable:!0}):n,t)),BW=t=>$S(gc({},"__esModule",{value:!0}),t);var US=C((m_e,jS)=>{"use strict";function HW(t){var e=new t,n=e;function r(){var i=e;return i.next?e=i.next:(e=new t,n=e),i.next=null,i}function l(i){n.next=i,n=i}return{get:r,release:l}}jS.exports=HW});var Jf=C((g_e,Yf)=>{"use strict";var qW=US();function BS(t,e,n){if(typeof t=="function"&&(n=e,e=t,t=null),!(n>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var r=qW(VW),l=null,i=null,s=0,a=null,o={push:_,drain:p2,saturated:p2,pause:c,paused:!1,get concurrency(){return n},set concurrency(w){if(!(w>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(n=w,!o.paused)for(;l&&s=n||o.paused?i?(i.next=O,i=O):(l=O,i=O,o.saturated()):(s++,e.call(t,O.value,O.worked))}function S(w,N){var O=r.get();O.context=t,O.release=T,O.value=w,O.callback=N||p2,O.errorHandler=a,s>=n||o.paused?l?(O.next=l,l=O):(l=O,i=O,o.saturated()):(s++,e.call(t,O.value,O.worked))}function T(w){w&&r.release(w);var N=l;N&&s<=n?o.paused?s--:(i===l&&(i=null),l=N.next,N.next=null,e.call(t,N.value,N.worked),i===null&&o.empty()):--s===0&&o.drain()}function x(){l=null,i=null,o.drain=p2}function v(){l=null,i=null,o.drain(),o.drain=p2}function b(w){a=w}}function p2(){}function VW(){this.value=null,this.callback=p2,this.next=null,this.release=p2,this.context=null,this.errorHandler=null;var t=this;this.worked=function(n,r){var l=t.callback,i=t.errorHandler,s=t.value;t.value=null,t.callback=p2,t.errorHandler&&i(n,s),l.call(t.context,n,r),t.release(t)}}function zW(t,e,n){typeof t=="function"&&(n=e,e=t,t=null);function r(c,p){e.call(this,c).then(function(m){p(null,m)},p)}var l=BS(t,r,n),i=l.push,s=l.unshift;return l.push=a,l.unshift=o,l.drained=f,l;function a(c){var p=new Promise(function(m,h){i(c,function(g,_){if(g){h(g);return}m(_)})});return p.catch(p2),p}function o(c){var p=new Promise(function(m,h){s(c,function(g,_){if(g){h(g);return}m(_)})});return p.catch(p2),p}function f(){if(l.idle())return new Promise(function(m){m()});var c=l.drain,p=new Promise(function(m){l.drain=function(){c(),m()}});return p}}Yf.exports=BS;Yf.exports.promise=zW});var Zf=C((y_e,HS)=>{"use strict";var{inherits:GW,format:Qf}=require("util");function ra(t,e,n=Error){if(!t)throw new Error("Avvio error code must not be empty");if(!e)throw new Error("Avvio base error message must not be empty");function r(l,i,s){if(!new.target)return new r(l,i,s);Error.captureStackTrace(this,r),this.code=t,this.message=e,this.name="AvvioError",l&&i&&s?this.message=Qf(e,l,i,s):l&&i?this.message=Qf(e,l,i):l?this.message=Qf(e,l):this.message=e}return r.prototype[Symbol.toStringTag]="Error",r.prototype.toString=function(){return`${this.name} [${this.code}]: ${this.message}`},GW(r,n),r}HS.exports={createError:ra,AVV_ERR_EXPOSE_ALREADY_DEFINED:ra("AVV_ERR_EXPOSE_ALREADY_DEFINED","'%s' () is already defined, specify an expose option"),AVV_ERR_CALLBACK_NOT_FN:ra("AVV_ERR_CALLBACK_NOT_FN","Callback for '%s' hook is not a function. Received: '%s'"),AVV_ERR_PLUGIN_NOT_VALID:ra("AVV_ERR_PLUGIN_NOT_VALID","Plugin must be a function or a promise. Received: '%s'"),AVV_ERR_ROOT_PLG_BOOTED:ra("AVV_ERR_PLUGIN_NOT_VALID","Root plugin has already booted"),AVV_ERR_PARENT_PLG_LOADED:ra("AVV_ERR_PARENT_PLG_LOADED","Impossible to load '%s' plugin because the parent '%s' was already loaded"),AVV_ERR_READY_TIMEOUT:ra("AVV_ERR_READY_TIMEOUT","Plugin did not start in time: '%s'. You may have forgotten to call 'done' function or to resolve a Promise")}});var VS=C((v_e,qS)=>{qS.exports=function t(e,n,r){n===void 0&&(n=""),r||(r={});var l=function(o){var f={"\u2502":"|","\u2514":"`","\u251C":"+","\u2500":"-","\u252C":"-"};return r.unicode===!1?f[o]:o};typeof e=="string"&&(e={label:e});var i=e.nodes||[],s=(e.label||"").split(`
+var CK=Object.create;var kc=Object.defineProperty;var kK=Object.getOwnPropertyDescriptor;var PK=Object.getOwnPropertyNames;var DK=Object.getPrototypeOf,LK=Object.prototype.hasOwnProperty;var C=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),dx=(t,e)=>{for(var n in e)kc(t,n,{get:e[n],enumerable:!0})},hx=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of PK(e))!LK.call(t,l)&&l!==n&&kc(t,l,{get:()=>e[l],enumerable:!(r=kK(e,l))||r.enumerable});return t};var br=(t,e,n)=>(n=t!=null?CK(DK(t)):{},hx(e||!t||!t.__esModule?kc(n,"default",{value:t,enumerable:!0}):n,t)),FK=t=>hx(kc({},"__esModule",{value:!0}),t);var gx=C(($Ee,mx)=>{"use strict";function MK(t){var e=new t,n=e;function r(){var i=e;return i.next?e=i.next:(e=new t,n=e),i.next=null,i}function l(i){n.next=i,n=i}return{get:r,release:l}}mx.exports=MK});var _p=C((jEe,vp)=>{"use strict";var $K=gx();function yx(t,e,n){if(typeof t=="function"&&(n=e,e=t,t=null),!(n>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var r=$K(jK),l=null,i=null,s=0,a=null,o={push:_,drain:m2,saturated:m2,pause:f,paused:!1,get concurrency(){return n},set concurrency(w){if(!(w>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(n=w,!o.paused)for(;l&&s=n||o.paused?i?(i.next=O,i=O):(l=O,i=O,o.saturated()):(s++,e.call(t,O.value,O.worked))}function S(w,N){var O=r.get();O.context=t,O.release=T,O.value=w,O.callback=N||m2,O.errorHandler=a,s>=n||o.paused?l?(O.next=l,l=O):(l=O,i=O,o.saturated()):(s++,e.call(t,O.value,O.worked))}function T(w){w&&r.release(w);var N=l;N&&s<=n?o.paused?s--:(i===l&&(i=null),l=N.next,N.next=null,e.call(t,N.value,N.worked),i===null&&o.empty()):--s===0&&o.drain()}function x(){l=null,i=null,o.drain=m2}function v(){l=null,i=null,o.drain(),o.drain=m2}function b(w){a=w}}function m2(){}function jK(){this.value=null,this.callback=m2,this.next=null,this.release=m2,this.context=null,this.errorHandler=null;var t=this;this.worked=function(n,r){var l=t.callback,i=t.errorHandler,s=t.value;t.value=null,t.callback=m2,t.errorHandler&&i(n,s),l.call(t.context,n,r),t.release(t)}}function UK(t,e,n){typeof t=="function"&&(n=e,e=t,t=null);function r(f,p){e.call(this,f).then(function(m){p(null,m)},p)}var l=yx(t,r,n),i=l.push,s=l.unshift;return l.push=a,l.unshift=o,l.drained=c,l;function a(f){var p=new Promise(function(m,h){i(f,function(g,_){if(g){h(g);return}m(_)})});return p.catch(m2),p}function o(f){var p=new Promise(function(m,h){s(f,function(g,_){if(g){h(g);return}m(_)})});return p.catch(m2),p}function c(){if(l.idle())return new Promise(function(m){m()});var f=l.drain,p=new Promise(function(m){l.drain=function(){f(),m()}});return p}}vp.exports=yx;vp.exports.promise=UK});var bp=C((UEe,vx)=>{"use strict";var{inherits:BK,format:Ep}=require("util");function oa(t,e,n=Error){if(!t)throw new Error("Avvio error code must not be empty");if(!e)throw new Error("Avvio base error message must not be empty");function r(l,i,s){if(!new.target)return new r(l,i,s);Error.captureStackTrace(this,r),this.code=t,this.message=e,this.name="AvvioError",l&&i&&s?this.message=Ep(e,l,i,s):l&&i?this.message=Ep(e,l,i):l?this.message=Ep(e,l):this.message=e}return r.prototype[Symbol.toStringTag]="Error",r.prototype.toString=function(){return`${this.name} [${this.code}]: ${this.message}`},BK(r,n),r}vx.exports={createError:oa,AVV_ERR_EXPOSE_ALREADY_DEFINED:oa("AVV_ERR_EXPOSE_ALREADY_DEFINED","'%s' () is already defined, specify an expose option"),AVV_ERR_CALLBACK_NOT_FN:oa("AVV_ERR_CALLBACK_NOT_FN","Callback for '%s' hook is not a function. Received: '%s'"),AVV_ERR_PLUGIN_NOT_VALID:oa("AVV_ERR_PLUGIN_NOT_VALID","Plugin must be a function or a promise. Received: '%s'"),AVV_ERR_ROOT_PLG_BOOTED:oa("AVV_ERR_PLUGIN_NOT_VALID","Root plugin has already booted"),AVV_ERR_PARENT_PLG_LOADED:oa("AVV_ERR_PARENT_PLG_LOADED","Impossible to load '%s' plugin because the parent '%s' was already loaded"),AVV_ERR_READY_TIMEOUT:oa("AVV_ERR_READY_TIMEOUT","Plugin did not start in time: '%s'. You may have forgotten to call 'done' function or to resolve a Promise")}});var Ex=C((BEe,_x)=>{_x.exports=function t(e,n,r){n===void 0&&(n=""),r||(r={});var l=function(o){var c={"\u2502":"|","\u2514":"`","\u251C":"+","\u2500":"-","\u252C":"-"};return r.unicode===!1?c[o]:o};typeof e=="string"&&(e={label:e});var i=e.nodes||[],s=(e.label||"").split(`
`),a=`
`+n+(i.length?l("\u2502"):" ")+" ";return n+s.join(a)+`
-`+i.map(function(o,f){var c=f===i.length-1,p=o.nodes&&o.nodes.length,m=n+(c?" ":l("\u2502"))+" ";return n+l(c?"\u2514":"\u251C")+l("\u2500")+l(p?"\u252C":"\u2500")+" "+t(o,m,r).slice(n.length+2)}).join("")}});var YS=C((__e,KS)=>{"use strict";var XW=VS(),zS=Symbol("avvio.TimeTree.untrackNode"),ep=Symbol("avvio.TimeTree.trackNode"),GS=Symbol("avvio.TimeTree.getParent"),XS=Symbol("avvio.TimeTree.getNode"),WS=Symbol("avvio.TimeTree.addNode"),tp=class{constructor(){this.root=null,this.tableId=new Map,this.tableLabel=new Map}[ep](e){this.tableId.set(e.id,e),this.tableLabel.has(e.label)?this.tableLabel.get(e.label).push(e):this.tableLabel.set(e.label,[e])}[zS](e){this.tableId.delete(e.id);let n=this.tableLabel.get(e.label);if(n.id){this.tableLabel.delete(e.label);return}n.pop(),n.length===0&&this.tableLabel.delete(e.label)}[GS](e){if(e===null)return this.root;let n=this.tableLabel.get(e);return n.id?n:n[n.length-1]}[XS](e){return this.tableId.get(e)}[WS](e,n,r){if(e===null)return this.root={id:"root",label:n,start:r,nodes:[]},this[ep](this.root),this.root.id;let i=this[GS](e),s=`${n}-${Math.random()}`,a={id:s,parent:e,start:r,label:n,nodes:[]};return i.nodes.push(a),this[ep](a),s}start(e,n,r=Date.now()){return this[WS](e,n,r)}stop(e,n=Date.now()){let r=this[XS](e);r&&(r.stop=n,r.diff=r.stop-r.start||0,this[zS](r))}toJSON(){return Object.assign({},this.root)}prittyPrint(){let e=r=>(r.label=`${r.label} ${r.diff} ms`,r.nodes.length>0&&(r.nodes=r.nodes.map(l=>e(l))),r),n=e(this.toJSON());return XW(n)}};KS.exports=tp});var QS=C((E_e,JS)=>{var xo=1e3,Ao=xo*60,wo=Ao*60,la=wo*24,WW=la*7,KW=la*365.25;JS.exports=function(t,e){e=e||{};var n=typeof t;if(n==="string"&&t.length>0)return YW(t);if(n==="number"&&isFinite(t))return e.long?QW(t):JW(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function YW(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]),r=(e[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*KW;case"weeks":case"week":case"w":return n*WW;case"days":case"day":case"d":return n*la;case"hours":case"hour":case"hrs":case"hr":case"h":return n*wo;case"minutes":case"minute":case"mins":case"min":case"m":return n*Ao;case"seconds":case"second":case"secs":case"sec":case"s":return n*xo;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function JW(t){var e=Math.abs(t);return e>=la?Math.round(t/la)+"d":e>=wo?Math.round(t/wo)+"h":e>=Ao?Math.round(t/Ao)+"m":e>=xo?Math.round(t/xo)+"s":t+"ms"}function QW(t){var e=Math.abs(t);return e>=la?yc(t,e,la,"day"):e>=wo?yc(t,e,wo,"hour"):e>=Ao?yc(t,e,Ao,"minute"):e>=xo?yc(t,e,xo,"second"):t+" ms"}function yc(t,e,n,r){var l=e>=n*1.5;return Math.round(t/n)+" "+r+(l?"s":"")}});var np=C((b_e,ZS)=>{function ZW(t){n.debug=n,n.default=n,n.coerce=o,n.disable=i,n.enable=l,n.enabled=s,n.humanize=QS(),n.destroy=f,Object.keys(t).forEach(c=>{n[c]=t[c]}),n.names=[],n.skips=[],n.formatters={};function e(c){let p=0;for(let m=0;m{if(N==="%%")return"%";b++;let k=n.formatters[O];if(typeof k=="function"){let $=S[b];N=k.call(T,$),S.splice(b,1),b--}return N}),n.formatArgs.call(T,S),(T.log||n.log).apply(T,S)}return _.namespace=c,_.useColors=n.useColors(),_.color=n.selectColor(c),_.extend=r,_.destroy=n.destroy,Object.defineProperty(_,"enabled",{enumerable:!0,configurable:!1,get:()=>m!==null?m:(h!==n.namespaces&&(h=n.namespaces,g=n.enabled(c)),g),set:S=>{m=S}}),typeof n.init=="function"&&n.init(_),_}function r(c,p){let m=n(this.namespace+(typeof p>"u"?":":p)+c);return m.log=this.log,m}function l(c){n.save(c),n.namespaces=c,n.names=[],n.skips=[];let p,m=(typeof c=="string"?c:"").split(/[\s,]+/),h=m.length;for(p=0;p"-"+p)].join(",");return n.enable(""),c}function s(c){if(c[c.length-1]==="*")return!0;let p,m;for(p=0,m=n.skips.length;p{Yl.formatArgs=tK;Yl.save=nK;Yl.load=rK;Yl.useColors=eK;Yl.storage=lK();Yl.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();Yl.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function eK(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function tK(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+vc.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let n=0,r=0;t[0].replace(/%[a-zA-Z%]/g,l=>{l!=="%%"&&(n++,l==="%c"&&(r=n))}),t.splice(r,0,e)}Yl.log=console.debug||console.log||(()=>{});function nK(t){try{t?Yl.storage.setItem("debug",t):Yl.storage.removeItem("debug")}catch{}}function rK(){let t;try{t=Yl.storage.getItem("debug")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function lK(){try{return localStorage}catch{}}vc.exports=np()(Yl);var{formatters:iK}=vc.exports;iK.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var nx=C((T_e,tx)=>{"use strict";tx.exports=(t,e)=>{e=e||process.argv;let n=t.startsWith("-")?"":t.length===1?"-":"--",r=e.indexOf(n+t),l=e.indexOf("--");return r!==-1&&(l===-1?!0:r{"use strict";var sK=require("os"),L2=nx(),rl=process.env,Ro;L2("no-color")||L2("no-colors")||L2("color=false")?Ro=!1:(L2("color")||L2("colors")||L2("color=true")||L2("color=always"))&&(Ro=!0);"FORCE_COLOR"in rl&&(Ro=rl.FORCE_COLOR.length===0||parseInt(rl.FORCE_COLOR,10)!==0);function aK(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function oK(t){if(Ro===!1)return 0;if(L2("color=16m")||L2("color=full")||L2("color=truecolor"))return 3;if(L2("color=256"))return 2;if(t&&!t.isTTY&&Ro!==!0)return 0;let e=Ro?1:0;if(process.platform==="win32"){let n=sK.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in rl)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(n=>n in rl)||rl.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in rl)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(rl.TEAMCITY_VERSION)?1:0;if(rl.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in rl){let n=parseInt((rl.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(rl.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(rl.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(rl.TERM)||"COLORTERM"in rl?1:(rl.TERM==="dumb",e)}function rp(t){let e=oK(t);return aK(e)}rx.exports={supportsColor:rp,stdout:rp(process.stdout),stderr:rp(process.stderr)}});var sx=C((qr,Ec)=>{var uK=require("tty"),_c=require("util");qr.init=gK;qr.log=dK;qr.formatArgs=fK;qr.save=hK;qr.load=mK;qr.useColors=cK;qr.destroy=_c.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");qr.colors=[6,2,3,4,5,1];try{let t=lx();t&&(t.stderr||t).level>=2&&(qr.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}qr.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let n=e.substring(6).toLowerCase().replace(/_([a-z])/g,(l,i)=>i.toUpperCase()),r=process.env[e];return/^(yes|on|true|enabled)$/i.test(r)?r=!0:/^(no|off|false|disabled)$/i.test(r)?r=!1:r==="null"?r=null:r=Number(r),t[n]=r,t},{});function cK(){return"colors"in qr.inspectOpts?!!qr.inspectOpts.colors:uK.isatty(process.stderr.fd)}function fK(t){let{namespace:e,useColors:n}=this;if(n){let r=this.color,l="\x1B[3"+(r<8?r:"8;5;"+r),i=` ${l};1m${e} \x1B[0m`;t[0]=i+t[0].split(`
+`+i.map(function(o,c){var f=c===i.length-1,p=o.nodes&&o.nodes.length,m=n+(f?" ":l("\u2502"))+" ";return n+l(f?"\u2514":"\u251C")+l("\u2500")+l(p?"\u252C":"\u2500")+" "+t(o,m,r).slice(n.length+2)}).join("")}});var wx=C((HEe,Ax)=>{"use strict";var HK=Ex(),bx=Symbol("avvio.TimeTree.untrackNode"),Tp=Symbol("avvio.TimeTree.trackNode"),Tx=Symbol("avvio.TimeTree.getParent"),Sx=Symbol("avvio.TimeTree.getNode"),xx=Symbol("avvio.TimeTree.addNode"),Sp=class{constructor(){this.root=null,this.tableId=new Map,this.tableLabel=new Map}[Tp](e){this.tableId.set(e.id,e),this.tableLabel.has(e.label)?this.tableLabel.get(e.label).push(e):this.tableLabel.set(e.label,[e])}[bx](e){this.tableId.delete(e.id);let n=this.tableLabel.get(e.label);if(n.id){this.tableLabel.delete(e.label);return}n.pop(),n.length===0&&this.tableLabel.delete(e.label)}[Tx](e){if(e===null)return this.root;let n=this.tableLabel.get(e);return n.id?n:n[n.length-1]}[Sx](e){return this.tableId.get(e)}[xx](e,n,r){if(e===null)return this.root={id:"root",label:n,start:r,nodes:[]},this[Tp](this.root),this.root.id;let i=this[Tx](e),s=`${n}-${Math.random()}`,a={id:s,parent:e,start:r,label:n,nodes:[]};return i.nodes.push(a),this[Tp](a),s}start(e,n,r=Date.now()){return this[xx](e,n,r)}stop(e,n=Date.now()){let r=this[Sx](e);r&&(r.stop=n,r.diff=r.stop-r.start||0,this[bx](r))}toJSON(){return Object.assign({},this.root)}prittyPrint(){let e=r=>(r.label=`${r.label} ${r.diff} ms`,r.nodes.length>0&&(r.nodes=r.nodes.map(l=>e(l))),r),n=e(this.toJSON());return HK(n)}};Ax.exports=Sp});var Ox=C((qEe,Rx)=>{var Co=1e3,ko=Co*60,Po=ko*60,ua=Po*24,qK=ua*7,VK=ua*365.25;Rx.exports=function(t,e){e=e||{};var n=typeof t;if(n==="string"&&t.length>0)return zK(t);if(n==="number"&&isFinite(t))return e.long?XK(t):GK(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function zK(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]),r=(e[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*VK;case"weeks":case"week":case"w":return n*qK;case"days":case"day":case"d":return n*ua;case"hours":case"hour":case"hrs":case"hr":case"h":return n*Po;case"minutes":case"minute":case"mins":case"min":case"m":return n*ko;case"seconds":case"second":case"secs":case"sec":case"s":return n*Co;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function GK(t){var e=Math.abs(t);return e>=ua?Math.round(t/ua)+"d":e>=Po?Math.round(t/Po)+"h":e>=ko?Math.round(t/ko)+"m":e>=Co?Math.round(t/Co)+"s":t+"ms"}function XK(t){var e=Math.abs(t);return e>=ua?Pc(t,e,ua,"day"):e>=Po?Pc(t,e,Po,"hour"):e>=ko?Pc(t,e,ko,"minute"):e>=Co?Pc(t,e,Co,"second"):t+" ms"}function Pc(t,e,n,r){var l=e>=n*1.5;return Math.round(t/n)+" "+r+(l?"s":"")}});var xp=C((VEe,Nx)=>{function WK(t){n.debug=n,n.default=n,n.coerce=o,n.disable=i,n.enable=l,n.enabled=s,n.humanize=Ox(),n.destroy=c,Object.keys(t).forEach(f=>{n[f]=t[f]}),n.names=[],n.skips=[],n.formatters={};function e(f){let p=0;for(let m=0;m{if(N==="%%")return"%";b++;let k=n.formatters[O];if(typeof k=="function"){let j=S[b];N=k.call(T,j),S.splice(b,1),b--}return N}),n.formatArgs.call(T,S),(T.log||n.log).apply(T,S)}return _.namespace=f,_.useColors=n.useColors(),_.color=n.selectColor(f),_.extend=r,_.destroy=n.destroy,Object.defineProperty(_,"enabled",{enumerable:!0,configurable:!1,get:()=>m!==null?m:(h!==n.namespaces&&(h=n.namespaces,g=n.enabled(f)),g),set:S=>{m=S}}),typeof n.init=="function"&&n.init(_),_}function r(f,p){let m=n(this.namespace+(typeof p>"u"?":":p)+f);return m.log=this.log,m}function l(f){n.save(f),n.namespaces=f,n.names=[],n.skips=[];let p,m=(typeof f=="string"?f:"").split(/[\s,]+/),h=m.length;for(p=0;p"-"+p)].join(",");return n.enable(""),f}function s(f){if(f[f.length-1]==="*")return!0;let p,m;for(p=0,m=n.skips.length;p{Ql.formatArgs=YK;Ql.save=JK;Ql.load=QK;Ql.useColors=KK;Ql.storage=ZK();Ql.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();Ql.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function KK(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function YK(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Dc.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let n=0,r=0;t[0].replace(/%[a-zA-Z%]/g,l=>{l!=="%%"&&(n++,l==="%c"&&(r=n))}),t.splice(r,0,e)}Ql.log=console.debug||console.log||(()=>{});function JK(t){try{t?Ql.storage.setItem("debug",t):Ql.storage.removeItem("debug")}catch{}}function QK(){let t;try{t=Ql.storage.getItem("debug")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function ZK(){try{return localStorage}catch{}}Dc.exports=xp()(Ql);var{formatters:eY}=Dc.exports;eY.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var kx=C((zEe,Cx)=>{"use strict";Cx.exports=(t,e)=>{e=e||process.argv;let n=t.startsWith("-")?"":t.length===1?"-":"--",r=e.indexOf(n+t),l=e.indexOf("--");return r!==-1&&(l===-1?!0:r{"use strict";var tY=require("os"),$2=kx(),il=process.env,Do;$2("no-color")||$2("no-colors")||$2("color=false")?Do=!1:($2("color")||$2("colors")||$2("color=true")||$2("color=always"))&&(Do=!0);"FORCE_COLOR"in il&&(Do=il.FORCE_COLOR.length===0||parseInt(il.FORCE_COLOR,10)!==0);function nY(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function rY(t){if(Do===!1)return 0;if($2("color=16m")||$2("color=full")||$2("color=truecolor"))return 3;if($2("color=256"))return 2;if(t&&!t.isTTY&&Do!==!0)return 0;let e=Do?1:0;if(process.platform==="win32"){let n=tY.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in il)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(n=>n in il)||il.CI_NAME==="codeship"?1:e;if("TEAMCITY_VERSION"in il)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(il.TEAMCITY_VERSION)?1:0;if(il.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in il){let n=parseInt((il.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(il.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(il.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(il.TERM)||"COLORTERM"in il?1:(il.TERM==="dumb",e)}function Ap(t){let e=rY(t);return nY(e)}Px.exports={supportsColor:Ap,stdout:Ap(process.stdout),stderr:Ap(process.stderr)}});var Fx=C((zr,Fc)=>{var lY=require("tty"),Lc=require("util");zr.init=fY;zr.log=oY;zr.formatArgs=sY;zr.save=uY;zr.load=cY;zr.useColors=iY;zr.destroy=Lc.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");zr.colors=[6,2,3,4,5,1];try{let t=Dx();t&&(t.stderr||t).level>=2&&(zr.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}zr.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let n=e.substring(6).toLowerCase().replace(/_([a-z])/g,(l,i)=>i.toUpperCase()),r=process.env[e];return/^(yes|on|true|enabled)$/i.test(r)?r=!0:/^(no|off|false|disabled)$/i.test(r)?r=!1:r==="null"?r=null:r=Number(r),t[n]=r,t},{});function iY(){return"colors"in zr.inspectOpts?!!zr.inspectOpts.colors:lY.isatty(process.stderr.fd)}function sY(t){let{namespace:e,useColors:n}=this;if(n){let r=this.color,l="\x1B[3"+(r<8?r:"8;5;"+r),i=` ${l};1m${e} \x1B[0m`;t[0]=i+t[0].split(`
`).join(`
-`+i),t.push(l+"m+"+Ec.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=pK()+e+" "+t[0]}function pK(){return qr.inspectOpts.hideDate?"":new Date().toISOString()+" "}function dK(...t){return process.stderr.write(_c.format(...t)+`
-`)}function hK(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function mK(){return process.env.DEBUG}function gK(t){t.inspectOpts={};let e=Object.keys(qr.inspectOpts);for(let n=0;ne.trim()).join(" ")};ix.O=function(t){return this.inspectOpts.colors=this.useColors,_c.inspect(t,this.inspectOpts)}});var bc=C((x_e,lp)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?lp.exports=ex():lp.exports=sx()});var ax=C((A_e,ap)=>{"use strict";var yK=Jf(),vK=require("events").EventEmitter,_K=require("util").inherits,kr=bc()("avvio"),{AVV_ERR_READY_TIMEOUT:EK}=Zf(),ip=Symbol.for("plugin-meta");function bK(t,e){return t[ip]&&t[ip].name?t[ip].name:typeof e<"u"&&typeof e!="function"&&e.name?e.name:t.name?t.name:t.toString().split(`
-`).slice(0,2).map(n=>n.trim()).join(" -- ")}function TK(){let t={};return t.promise=new Promise((e,n)=>{t.resolve=e,t.reject=n}),t}function Oo(t,e,n,r,l){this.started=!1,this.func=e,this.opts=n,this.onFinish=null,this.parent=t,this.timeout=l===void 0?t._timeout:l,this.name=bK(e,n),this.isAfter=r,this.q=yK(t,SK,1),this.q.pause(),this._error=null,this.loaded=!1,this._promise=null}_K(Oo,vK);Oo.prototype.exec=function(t,e){let n=this.func,r=!1,l=this.name;if(this.parent._error&&!this.isAfter){kr("skipping loading of plugin as parent errored and it is not an after",l),process.nextTick(e);return}if(this.isAfter)this.server=t;else try{this.server=this.parent.override(t,n,this.opts)}catch(o){return kr("override errored",l),e(o)}this.opts=typeof this.opts=="function"?this.opts(this.server):this.opts,kr("exec",l);let i,s=o=>{if(r){kr("loading complete",l);return}this._error=o,kr(o?"exec errored":"exec completed",l),r=!0,i&&clearTimeout(i),e(o)};this.timeout>0&&(kr("setting up timeout",l,this.timeout),i=setTimeout(function(){kr("timed out",l),i=null;let o=new EK(l);o.fn=n,s(o)},this.timeout)),this.started=!0,this.emit("start",this.server?this.server.name:null,this.name,Date.now());let a=n(this.server,this.opts,s);a&&typeof a.then=="function"&&(kr("exec: resolving promise",l),a.then(()=>process.nextTick(s),o=>process.nextTick(s,o)))};Oo.prototype.loadedSoFar=function(){if(this.loaded)return Promise.resolve();let t=()=>{this.server.after((n,r)=>{this._error=n,this.q.pause(),n?(kr("rejecting promise",this.name,n),this._promise.reject(n)):(kr("resolving promise",this.name),this._promise.resolve()),this._promise=null,process.nextTick(r,n)}),this.q.resume()},e;return this._promise?e=Promise.resolve():(this._promise=TK(),e=this._promise.promise,this.server?t():this.on("start",t)),e};Oo.prototype.enqueue=function(t,e){kr("enqueue",this.name,t.name),this.emit("enqueue",this.server?this.server.name:null,this.name,Date.now()),this.q.push(t,e)};Oo.prototype.finish=function(t,e){kr("finish",this.name,t);let n=()=>{this.loaded||(kr("loaded",this.name),this.emit("loaded",this.server?this.server.name:null,this.name,Date.now()),this.loaded=!0,e(t))};if(t){this._promise&&(this._promise.reject(t),this._promise=null),n();return}let r=()=>{if(kr("check",this.name,this.q.length(),this.q.running(),this._promise),this.q.length()===0&&this.q.running()===0)if(this._promise){let l=()=>{kr("wrap"),queueMicrotask(r)};this._promise.resolve(),this._promise.promise.then(l,l),this._promise=null}else n();else kr("delayed",this.name),this.q.drain=()=>{kr("drain",this.name),this.q.drain=xK,queueMicrotask(r)}};queueMicrotask(r),this.q.resume()};function SK(t,e){let n=this;process.nextTick(sp.bind(n),t,e)}function sp(t,e){if(typeof t.func.then=="function"){t.func.then(r=>{typeof r.default=="function"&&(r=r.default),t.func=r,sp.call(this,t,e)},e);return}let n=this._current[0];this._current.unshift(t),t.exec(n&&n.server||this._server,r=>{t.finish(r,l=>{this._current.shift(),e(l)})})}function xK(){}ap.exports=Oo;ap.exports.loadPlugin=sp});var px=C((w_e,pp)=>{"use strict";var ox=Jf(),AK=require("events").EventEmitter,wK=require("util").inherits,{AVV_ERR_EXPOSE_ALREADY_DEFINED:op,AVV_ERR_CALLBACK_NOT_FN:U4,AVV_ERR_PLUGIN_NOT_VALID:RK,AVV_ERR_ROOT_PLG_BOOTED:OK,AVV_ERR_READY_TIMEOUT:NK}=Zf(),IK=YS(),fp=ax(),No=bc()("avvio"),Tc=Symbol("kAvvio"),up=Symbol("kThenifyDoNotWrap");function CK(t,e,n){let r=e.expose||{},l=r.use||"use",i=r.after||"after",s=r.ready||"ready",a=r.onClose||"onClose",o=r.close||"close";if(t[l])throw new op(l);if(t[i])throw new op(i);if(t[s])throw new op(s);t[l]=function(f,c){return n.use(f,c),this},Object.defineProperty(t,"then",{get:cx.bind(n)}),t[Tc]=!0,t[i]=function(f){return typeof f!="function"?n._loadRegistered():(n.after(cp(f,this)),this)},t[s]=function(f){if(f&&typeof f!="function")throw new U4(s,typeof f);return n.ready(f?cp(f,this):void 0)},t[a]=function(f){if(typeof f!="function")throw new U4(a,typeof f);return n.onClose(FK(f,this)),this},t[o]=function(f){if(f&&typeof f!="function")throw new U4(o,typeof f);return f?(n.close(cp(f,this)),this):n.close()}}function Pr(t,e,n){if(typeof t=="function"&&arguments.length===1&&(n=t,e={},t=null),typeof e=="function"&&(n=e,e={}),e=e||{},!(this instanceof Pr)){let r=new Pr(t,e,n);return t&&CK(t,e,r),r}e.autostart!==!1&&(e.autostart=!0),t=t||this,this._timeout=Number(e.timeout)||0,this._server=t,this._current=[],this._error=null,this._isOnCloseHandlerKey=Symbol("isOnCloseHandler"),this._lastUsed=null,this.setMaxListeners(0),n&&this.once("start",n),this.started=!1,this.booted=!1,this.pluginTree=new IK,this._readyQ=ox(this,fx,1),this._readyQ.pause(),this._readyQ.drain=()=>{this.emit("start"),this._readyQ.drain=ux},this._closeQ=ox(this,LK,1),this._closeQ.pause(),this._closeQ.drain=()=>{this.emit("close"),this._closeQ.drain=ux},this._doStart=null,this._root=new fp(this,kK.bind(this),e,!1,0),this._root.once("start",(r,l,i)=>{let s=this.pluginTree.start(null,l,i);this._root.once("loaded",(a,o,f)=>{this.pluginTree.stop(s,f)})}),fp.loadPlugin.call(this,this._root,r=>{No("root plugin ready");try{this.emit("preReady"),this._root=null}catch(l){r=r||this._error||l}if(r){if(this._error=r,this._readyQ.length()===0)throw r}else this.booted=!0;this._readyQ.resume()})}function kK(t,e,n){this._doStart=n,e.autostart&&this.start()}wK(Pr,AK);Pr.prototype.start=function(){return this.started=!0,process.nextTick(this._doStart),this};Pr.prototype.override=function(t,e,n){return t};function PK(t){if(t&&typeof t=="object"&&typeof t.default=="function"&&(t=t.default),!(t&&(typeof t=="function"||typeof t.then=="function")))throw new RK(typeof t);return t}Pr.prototype[Tc]=!0;Pr.prototype.use=function(t,e){return this._lastUsed=this._addPlugin(t,e,!1),this};Pr.prototype._loadRegistered=function(){let t=this._current[0];return!this.started&&!this.booted&&process.nextTick(()=>this._root.q.resume()),t?t.loadedSoFar():Promise.resolve()};Object.defineProperty(Pr.prototype,"then",{get:cx});Pr.prototype._addPlugin=function(t,e,n){if(t=PK(t),e=e||{},this.booted)throw new OK;let r=this._current[0],l=new fp(this,t,e,n);if(l.once("start",(i,s,a)=>{let o=this.pluginTree.start(r.name,s,a);l.once("loaded",(f,c,p)=>{this.pluginTree.stop(o,p)})}),r.loaded)throw new Error(l.name,r.name);return r.enqueue(l,i=>{i&&(this._error=i)}),l};Pr.prototype.after=function(t){if(!t)return this._loadRegistered();this._addPlugin(e.bind(this),{},!0);function e(n,r,l){fx.call(this,t,l)}return this};Pr.prototype.onClose=function(t){if(typeof t!="function")throw new Error("not a function");t[this._isOnCloseHandlerKey]=!0,this._closeQ.unshift(t,e.bind(this));function e(n){n&&(this._error=n)}return this};Pr.prototype.close=function(t){let e;if(t){if(typeof t!="function")throw new U4("close",typeof t)}else e=new Promise(function(n,r){t=function(l){if(l)return r(l);n()}});return this.ready(()=>{this._error=null,this._closeQ.push(t),process.nextTick(this._closeQ.resume.bind(this._closeQ))}),e};Pr.prototype.ready=function(t){if(t){if(typeof t!="function")throw new U4("ready",typeof t);this._readyQ.push(t),queueMicrotask(this.start.bind(this));return}return new Promise((e,n)=>{this._readyQ.push(l),this.start();let r=this._current[0].server;function l(i,s,a){i?n(i):e(r),process.nextTick(a)}})};Pr.prototype.prettyPrint=function(){return this.pluginTree.prittyPrint()};Pr.prototype.toJSON=function(){return this.pluginTree.toJSON()};function ux(){}function cx(){if(this.booted){No("thenify returning null because we are already booted");return}if(this[up]){this[up]=!1;return}return No("thenify"),(t,e)=>this._loadRegistered().then(()=>(this[up]=!0,t(this._server)),e)}function fx(t,e){let n=this._server,r=this._error,l;if(this._error=null,t.length===0)this._error=r,l=t(),l&&!l[Tc]&&typeof l.then=="function"?l.then(()=>process.nextTick(e),i=>process.nextTick(e,i)):process.nextTick(e);else if(t.length===1)l=t(r),l&&!l[Tc]&&typeof l.then=="function"?l.then(()=>process.nextTick(e),i=>process.nextTick(e,i)):process.nextTick(e);else if(this._timeout===0){let i=s=>{this._error=s,e(this._error)};t.length===2?t(r,i):t(r,n,i)}else DK.call(this,t,r,n,e)}function DK(t,e,n,r){let l=t.name;No("setting up ready timeout",l,this._timeout);let i=setTimeout(()=>{No("timed out",l),i=null;let a=new NK(l);a.fn=t,this._error=a,r(a)},this._timeout);t.length===2?t(e,s.bind(this)):t(e,n,s.bind(this));function s(a){i&&(clearTimeout(i),this._error=a,r(this._error))}}function LK(t,e){let n=this._server,r=t[this._isOnCloseHandlerKey];if(t.length===0||t.length===1){let l;r?l=t(n):l=t(this._error),l&&typeof l.then=="function"?(No("resolving close/onClose promise"),l.then(()=>process.nextTick(e),i=>process.nextTick(e,i))):process.nextTick(e)}else t.length===2?t(r?n:this._error,e):r?t(n,e):t(this._error,n,e)}function FK(t,e){return n.bind(e);function n(r,l){let i;t.length===0?(i=t(),i&&i.then?i.then(function(){process.nextTick(l)},l):process.nextTick(l)):t.length===1?(i=t(this),i&&i.then?i.then(function(){process.nextTick(l)},l):process.nextTick(l)):t(this,l)}}function cp(t,e){return n.bind(e);function n(r,l){let i;t?t.length===0?(i=t(),i&&i.then?i.then(function(){process.nextTick(l,r)},l):process.nextTick(l,r)):t.length===1?(i=t(r),i&&i.then?i.then(function(){process.nextTick(l)},l):process.nextTick(l)):t.length===2?t(r,l):t(r,this,l):process.nextTick(l)}}pp.exports=Pr;pp.exports.express=function(t){return Pr(t,{expose:{use:"load"}})}});var Dr=C((R_e,dx)=>{"use strict";var MK={kAvvioBoot:Symbol("fastify.avvioBoot"),kChildren:Symbol("fastify.children"),kServerBindings:Symbol("fastify.serverBindings"),kBodyLimit:Symbol("fastify.bodyLimit"),kRoutePrefix:Symbol("fastify.routePrefix"),kLogLevel:Symbol("fastify.logLevel"),kLogSerializers:Symbol("fastify.logSerializers"),kHooks:Symbol("fastify.hooks"),kContentTypeParser:Symbol("fastify.contentTypeParser"),kState:Symbol("fastify.state"),kOptions:Symbol("fastify.options"),kDisableRequestLogging:Symbol("fastify.disableRequestLogging"),kPluginNameChain:Symbol("fastify.pluginNameChain"),kRouteContext:Symbol("fastify.context"),kPublicRouteContext:Symbol("fastify.routeOptions"),kGenReqId:Symbol("fastify.genReqId"),kSchemaController:Symbol("fastify.schemaController"),kSchemaHeaders:Symbol("headers-schema"),kSchemaParams:Symbol("params-schema"),kSchemaQuerystring:Symbol("querystring-schema"),kSchemaBody:Symbol("body-schema"),kSchemaResponse:Symbol("response-schema"),kSchemaErrorFormatter:Symbol("fastify.schemaErrorFormatter"),kSchemaVisited:Symbol("fastify.schemas.visited"),kRequest:Symbol("fastify.Request"),kRequestPayloadStream:Symbol("fastify.RequestPayloadStream"),kRequestAcceptVersion:Symbol("fastify.RequestAcceptVersion"),kRequestCacheValidateFns:Symbol("fastify.request.cache.validateFns"),kRequestOriginalUrl:Symbol("fastify.request.originalUrl"),kFourOhFour:Symbol("fastify.404"),kCanSetNotFoundHandler:Symbol("fastify.canSetNotFoundHandler"),kFourOhFourLevelInstance:Symbol("fastify.404LogLevelInstance"),kFourOhFourContext:Symbol("fastify.404ContextKey"),kDefaultJsonParse:Symbol("fastify.defaultJSONParse"),kReply:Symbol("fastify.Reply"),kReplySerializer:Symbol("fastify.reply.serializer"),kReplyIsError:Symbol("fastify.reply.isError"),kReplyHeaders:Symbol("fastify.reply.headers"),kReplyTrailers:Symbol("fastify.reply.trailers"),kReplyHasStatusCode:Symbol("fastify.reply.hasStatusCode"),kReplyHijacked:Symbol("fastify.reply.hijacked"),kReplyStartTime:Symbol("fastify.reply.startTime"),kReplyNextErrorHandler:Symbol("fastify.reply.nextErrorHandler"),kReplyEndTime:Symbol("fastify.reply.endTime"),kReplyErrorHandlerCalled:Symbol("fastify.reply.errorHandlerCalled"),kReplyIsRunningOnErrorHook:Symbol("fastify.reply.isRunningOnErrorHook"),kReplySerializerDefault:Symbol("fastify.replySerializerDefault"),kReplyCacheSerializeFns:Symbol("fastify.reply.cache.serializeFns"),kTestInternals:Symbol("fastify.testInternals"),kErrorHandler:Symbol("fastify.errorHandler"),kChildLoggerFactory:Symbol("fastify.childLoggerFactory"),kHasBeenDecorated:Symbol("fastify.hasBeenDecorated"),kKeepAliveConnections:Symbol("fastify.keepAliveConnections"),kRouteByFastify:Symbol("fastify.routeByFastify")};dx.exports=MK});var mx=C((O_e,Sc)=>{"use strict";var{format:dp}=require("node:util");function $K(t){return hx({...t,name:"DeprecationWarning"})}function hx({name:t,code:e,message:n,unlimited:r=!1}={}){if(!t)throw new Error("Warning name must not be empty");if(!e)throw new Error("Warning code must not be empty");if(!n)throw new Error("Warning message must not be empty");if(typeof r!="boolean")throw new Error("Warning opts.unlimited must be a boolean");e=e.toUpperCase();let l={[t]:function(s,a,o){i.emitted===!0&&i.unlimited!==!0||(i.emitted=!0,process.emitWarning(i.format(s,a,o),i.name,i.code))}};r&&(l={[t]:function(s,a,o){i.emitted=!0,process.emitWarning(i.format(s,a,o),i.name,i.code)}});let i=l[t];return i.emitted=!1,i.message=n,i.unlimited=r,i.code=e,i.format=function(s,a,o){let f;return s&&a&&o?f=dp(n,s,a,o):s&&a?f=dp(n,s,a):s?f=dp(n,s):f=n,f},i}var hp={createWarning:hx,createDeprecation:$K};Sc.exports=hp;Sc.exports.default=hp;Sc.exports.processWarning=hp});var e3=C((N_e,yx)=>{"use strict";var{createDeprecation:ll,createWarning:gx}=mx(),jK=ll({code:"FSTDEP005",message:'You are accessing the deprecated "request.connection" property. Use "request.socket" instead.'}),UK=ll({code:"FSTDEP006",message:"You are decorating Request/Reply with a reference type. This reference is shared amongst all requests. Use onRequest hook instead. Property: %s"}),BK=ll({code:"FSTDEP007",message:'You are trying to set a HEAD route using "exposeHeadRoute" route flag when a sibling route is already set. See documentation for more info.'}),HK=ll({code:"FSTDEP008",message:'You are using route constraints via the route { version: "..." } option, use { constraints: { version: "..." } } option instead.'}),qK=ll({code:"FSTDEP009",message:'You are using a custom route versioning strategy via the server { versioning: "..." } option, use { constraints: { version: "..." } } option instead.'}),VK=ll({code:"FSTDEP010",message:'Modifying the "reply.sent" property is deprecated. Use the "reply.hijack()" method instead.'}),zK=ll({code:"FSTDEP011",message:'Variadic listen method is deprecated. Please use ".listen(optionsObject)" instead. The variadic signature will be removed in `fastify@5`.'}),GK=ll({code:"FSTDEP012",message:'request.context property access is deprecated. Please use "request.routeOptions.config" or "request.routeOptions.schema" instead for accessing Route settings. The "request.context" will be removed in `fastify@5`.'}),XK=ll({code:"FSTDEP013",message:'Direct return of "trailers" function is deprecated. Please use "callback" or "async-await" for return value. The support of direct return will removed in `fastify@5`.'}),WK=ll({code:"FSTDEP014",message:"You are trying to set/access the default route. This property is deprecated. Please, use setNotFoundHandler if you want to custom a 404 handler or the wildcard (*) to match all routes."}),KK=ll({code:"FSTDEP015",message:'You are accessing the deprecated "request.routeSchema" property. Use "request.routeOptions.schema" instead. Property "req.routeSchema" will be removed in `fastify@5`.'}),YK=ll({code:"FSTDEP016",message:'You are accessing the deprecated "request.routeConfig" property. Use "request.routeOptions.config" instead. Property "req.routeConfig" will be removed in `fastify@5`.'}),JK=ll({code:"FSTDEP017",message:'You are accessing the deprecated "request.routerPath" property. Use "request.routeOptions.url" instead. Property "req.routerPath" will be removed in `fastify@5`.'}),QK=ll({code:"FSTDEP018",message:'You are accessing the deprecated "request.routerMethod" property. Use "request.routeOptions.method" instead. Property "req.routerMethod" will be removed in `fastify@5`.'}),ZK=ll({code:"FSTDEP019",message:'reply.context property access is deprecated. Please use "request.routeOptions.config" or "request.routeOptions.schema" instead for accessing Route settings. The "reply.context" will be removed in `fastify@5`.'}),eY=ll({code:"FSTDEP020",message:'You are using the deprecated "reply.getResponseTime()"" method. Use the "request.elapsedTime" property instead. Method "reply.getResponseTime()" will be removed in `fastify@5`.'}),tY=gx({name:"FastifyWarning",code:"FSTWRN001",message:"The %s schema for %s: %s is missing. This may indicate the schema is not well specified.",unlimited:!0}),nY=gx({name:"FastifyWarning",code:"FSTWRN002",message:"The %s plugin being registered mixes async and callback styles, which will result in an error in `fastify@5`",unlimited:!0});yx.exports={FSTDEP005:jK,FSTDEP006:UK,FSTDEP007:BK,FSTDEP008:HK,FSTDEP009:qK,FSTDEP010:VK,FSTDEP011:zK,FSTDEP012:GK,FSTDEP013:XK,FSTDEP014:WK,FSTDEP015:KK,FSTDEP016:YK,FSTDEP017:JK,FSTDEP018:QK,FSTDEP019:ZK,FSTDEP020:eY,FSTWRN001:tY,FSTWRN002:nY}});var vx=C((I_e,xc)=>{"use strict";var{format:rY}=require("node:util");function lY(){return`${this.name} [${this.code}]: ${this.message}`}function mp(t,e,n=500,r=Error){if(!t)throw new Error("Fastify error code must not be empty");if(!e)throw new Error("Fastify error message must not be empty");t=t.toUpperCase(),!n&&(n=void 0);function l(...i){if(!new.target)return new l(...i);this.code=t,this.name="FastifyError",this.statusCode=n;let s=i.length-1;s!==-1&&i[s]&&typeof i[s]=="object"&&"cause"in i[s]&&(this.cause=i.pop().cause),this.message=rY(e,...i),Error.stackTraceLimit!==0&&Error.captureStackTrace(this,l)}return l.prototype=Object.create(r.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),l.prototype[Symbol.toStringTag]="Error",l.prototype.toString=lY,l}xc.exports=mp;xc.exports.default=mp;xc.exports.createError=mp});var il=C((C_e,Ac)=>{"use strict";var xe=vx(),Io={FST_ERR_NOT_FOUND:xe("FST_ERR_NOT_FOUND","Not Found",404),FST_ERR_OPTIONS_NOT_OBJ:xe("FST_ERR_OPTIONS_NOT_OBJ","Options must be an object",500,TypeError),FST_ERR_QSP_NOT_FN:xe("FST_ERR_QSP_NOT_FN","querystringParser option should be a function, instead got '%s'",500,TypeError),FST_ERR_SCHEMA_CONTROLLER_BUCKET_OPT_NOT_FN:xe("FST_ERR_SCHEMA_CONTROLLER_BUCKET_OPT_NOT_FN","schemaController.bucket option should be a function, instead got '%s'",500,TypeError),FST_ERR_SCHEMA_ERROR_FORMATTER_NOT_FN:xe("FST_ERR_SCHEMA_ERROR_FORMATTER_NOT_FN","schemaErrorFormatter option should be a non async function. Instead got '%s'.",500,TypeError),FST_ERR_AJV_CUSTOM_OPTIONS_OPT_NOT_OBJ:xe("FST_ERR_AJV_CUSTOM_OPTIONS_OPT_NOT_OBJ","ajv.customOptions option should be an object, instead got '%s'",500,TypeError),FST_ERR_AJV_CUSTOM_OPTIONS_OPT_NOT_ARR:xe("FST_ERR_AJV_CUSTOM_OPTIONS_OPT_NOT_ARR","ajv.plugins option should be an array, instead got '%s'",500,TypeError),FST_ERR_VERSION_CONSTRAINT_NOT_STR:xe("FST_ERR_VERSION_CONSTRAINT_NOT_STR","Version constraint should be a string.",500,TypeError),FST_ERR_VALIDATION:xe("FST_ERR_VALIDATION","%s",400),FST_ERR_LISTEN_OPTIONS_INVALID:xe("FST_ERR_LISTEN_OPTIONS_INVALID","Invalid listen options: '%s'",500,TypeError),FST_ERR_CTP_ALREADY_PRESENT:xe("FST_ERR_CTP_ALREADY_PRESENT","Content type parser '%s' already present."),FST_ERR_CTP_INVALID_TYPE:xe("FST_ERR_CTP_INVALID_TYPE","The content type should be a string or a RegExp",500,TypeError),FST_ERR_CTP_EMPTY_TYPE:xe("FST_ERR_CTP_EMPTY_TYPE","The content type cannot be an empty string",500,TypeError),FST_ERR_CTP_INVALID_HANDLER:xe("FST_ERR_CTP_INVALID_HANDLER","The content type handler should be a function",500,TypeError),FST_ERR_CTP_INVALID_PARSE_TYPE:xe("FST_ERR_CTP_INVALID_PARSE_TYPE","The body parser can only parse your data as 'string' or 'buffer', you asked '%s' which is not supported.",500,TypeError),FST_ERR_CTP_BODY_TOO_LARGE:xe("FST_ERR_CTP_BODY_TOO_LARGE","Request body is too large",413,RangeError),FST_ERR_CTP_INVALID_MEDIA_TYPE:xe("FST_ERR_CTP_INVALID_MEDIA_TYPE","Unsupported Media Type: %s",415),FST_ERR_CTP_INVALID_CONTENT_LENGTH:xe("FST_ERR_CTP_INVALID_CONTENT_LENGTH","Request body size did not match Content-Length",400,RangeError),FST_ERR_CTP_EMPTY_JSON_BODY:xe("FST_ERR_CTP_EMPTY_JSON_BODY","Body cannot be empty when content-type is set to 'application/json'",400),FST_ERR_CTP_INSTANCE_ALREADY_STARTED:xe("FST_ERR_CTP_INSTANCE_ALREADY_STARTED",'Cannot call "%s" when fastify instance is already started!',400),FST_ERR_DEC_ALREADY_PRESENT:xe("FST_ERR_DEC_ALREADY_PRESENT","The decorator '%s' has already been added!"),FST_ERR_DEC_DEPENDENCY_INVALID_TYPE:xe("FST_ERR_DEC_DEPENDENCY_INVALID_TYPE","The dependencies of decorator '%s' must be of type Array.",500,TypeError),FST_ERR_DEC_MISSING_DEPENDENCY:xe("FST_ERR_DEC_MISSING_DEPENDENCY","The decorator is missing dependency '%s'."),FST_ERR_DEC_AFTER_START:xe("FST_ERR_DEC_AFTER_START","The decorator '%s' has been added after start!"),FST_ERR_HOOK_INVALID_TYPE:xe("FST_ERR_HOOK_INVALID_TYPE","The hook name must be a string",500,TypeError),FST_ERR_HOOK_INVALID_HANDLER:xe("FST_ERR_HOOK_INVALID_HANDLER","%s hook should be a function, instead got %s",500,TypeError),FST_ERR_HOOK_INVALID_ASYNC_HANDLER:xe("FST_ERR_HOOK_INVALID_ASYNC_HANDLER","Async function has too many arguments. Async hooks should not use the 'done' argument.",500,TypeError),FST_ERR_HOOK_NOT_SUPPORTED:xe("FST_ERR_HOOK_NOT_SUPPORTED","%s hook not supported!",500,TypeError),FST_ERR_MISSING_MIDDLEWARE:xe("FST_ERR_MISSING_MIDDLEWARE","You must register a plugin for handling middlewares, visit fastify.dev/docs/latest/Reference/Middleware/ for more info.",500),FST_ERR_HOOK_TIMEOUT:xe("FST_ERR_HOOK_TIMEOUT","A callback for '%s' hook timed out. You may have forgotten to call 'done' function or to resolve a Promise"),FST_ERR_LOG_INVALID_DESTINATION:xe("FST_ERR_LOG_INVALID_DESTINATION","Cannot specify both logger.stream and logger.file options"),FST_ERR_LOG_INVALID_LOGGER:xe("FST_ERR_LOG_INVALID_LOGGER","Invalid logger object provided. The logger instance should have these functions(s): '%s'.",500,TypeError),FST_ERR_REP_INVALID_PAYLOAD_TYPE:xe("FST_ERR_REP_INVALID_PAYLOAD_TYPE","Attempted to send payload of invalid type '%s'. Expected a string or Buffer.",500,TypeError),FST_ERR_REP_RESPONSE_BODY_CONSUMED:xe("FST_ERR_REP_RESPONSE_BODY_CONSUMED","Response.body is already consumed."),FST_ERR_REP_ALREADY_SENT:xe("FST_ERR_REP_ALREADY_SENT",'Reply was already sent, did you forget to "return reply" in "%s" (%s)?'),FST_ERR_REP_SENT_VALUE:xe("FST_ERR_REP_SENT_VALUE","The only possible value for reply.sent is true.",500,TypeError),FST_ERR_SEND_INSIDE_ONERR:xe("FST_ERR_SEND_INSIDE_ONERR","You cannot use `send` inside the `onError` hook"),FST_ERR_SEND_UNDEFINED_ERR:xe("FST_ERR_SEND_UNDEFINED_ERR","Undefined error has occurred"),FST_ERR_BAD_STATUS_CODE:xe("FST_ERR_BAD_STATUS_CODE","Called reply with an invalid status code: %s"),FST_ERR_BAD_TRAILER_NAME:xe("FST_ERR_BAD_TRAILER_NAME","Called reply.trailer with an invalid header name: %s"),FST_ERR_BAD_TRAILER_VALUE:xe("FST_ERR_BAD_TRAILER_VALUE","Called reply.trailer('%s', fn) with an invalid type: %s. Expected a function."),FST_ERR_FAILED_ERROR_SERIALIZATION:xe("FST_ERR_FAILED_ERROR_SERIALIZATION","Failed to serialize an error. Error: %s. Original error: %s"),FST_ERR_MISSING_SERIALIZATION_FN:xe("FST_ERR_MISSING_SERIALIZATION_FN",'Missing serialization function. Key "%s"'),FST_ERR_MISSING_CONTENTTYPE_SERIALIZATION_FN:xe("FST_ERR_MISSING_CONTENTTYPE_SERIALIZATION_FN",'Missing serialization function. Key "%s:%s"'),FST_ERR_REQ_INVALID_VALIDATION_INVOCATION:xe("FST_ERR_REQ_INVALID_VALIDATION_INVOCATION",'Invalid validation invocation. Missing validation function for HTTP part "%s" nor schema provided.'),FST_ERR_SCH_MISSING_ID:xe("FST_ERR_SCH_MISSING_ID","Missing schema $id property"),FST_ERR_SCH_ALREADY_PRESENT:xe("FST_ERR_SCH_ALREADY_PRESENT","Schema with id '%s' already declared!"),FST_ERR_SCH_CONTENT_MISSING_SCHEMA:xe("FST_ERR_SCH_CONTENT_MISSING_SCHEMA","Schema is missing for the content type '%s'"),FST_ERR_SCH_DUPLICATE:xe("FST_ERR_SCH_DUPLICATE","Schema with '%s' already present!"),FST_ERR_SCH_VALIDATION_BUILD:xe("FST_ERR_SCH_VALIDATION_BUILD","Failed building the validation schema for %s: %s, due to error %s"),FST_ERR_SCH_SERIALIZATION_BUILD:xe("FST_ERR_SCH_SERIALIZATION_BUILD","Failed building the serialization schema for %s: %s, due to error %s"),FST_ERR_SCH_RESPONSE_SCHEMA_NOT_NESTED_2XX:xe("FST_ERR_SCH_RESPONSE_SCHEMA_NOT_NESTED_2XX",'response schemas should be nested under a valid status code, e.g { 2xx: { type: "object" } }'),FST_ERR_HTTP2_INVALID_VERSION:xe("FST_ERR_HTTP2_INVALID_VERSION","HTTP2 is available only from node >= 8.8.1"),FST_ERR_INIT_OPTS_INVALID:xe("FST_ERR_INIT_OPTS_INVALID","Invalid initialization options: '%s'"),FST_ERR_FORCE_CLOSE_CONNECTIONS_IDLE_NOT_AVAILABLE:xe("FST_ERR_FORCE_CLOSE_CONNECTIONS_IDLE_NOT_AVAILABLE","Cannot set forceCloseConnections to 'idle' as your HTTP server does not support closeIdleConnections method"),FST_ERR_DUPLICATED_ROUTE:xe("FST_ERR_DUPLICATED_ROUTE","Method '%s' already declared for route '%s'"),FST_ERR_BAD_URL:xe("FST_ERR_BAD_URL","'%s' is not a valid url component",400,URIError),FST_ERR_ASYNC_CONSTRAINT:xe("FST_ERR_ASYNC_CONSTRAINT","Unexpected error from async constraint",500),FST_ERR_DEFAULT_ROUTE_INVALID_TYPE:xe("FST_ERR_DEFAULT_ROUTE_INVALID_TYPE","The defaultRoute type should be a function",500,TypeError),FST_ERR_INVALID_URL:xe("FST_ERR_INVALID_URL","URL must be a string. Received '%s'",400,TypeError),FST_ERR_ROUTE_OPTIONS_NOT_OBJ:xe("FST_ERR_ROUTE_OPTIONS_NOT_OBJ",'Options for "%s:%s" route must be an object',500,TypeError),FST_ERR_ROUTE_DUPLICATED_HANDLER:xe("FST_ERR_ROUTE_DUPLICATED_HANDLER",'Duplicate handler for "%s:%s" route is not allowed!',500),FST_ERR_ROUTE_HANDLER_NOT_FN:xe("FST_ERR_ROUTE_HANDLER_NOT_FN","Error Handler for %s:%s route, if defined, must be a function",500,TypeError),FST_ERR_ROUTE_MISSING_HANDLER:xe("FST_ERR_ROUTE_MISSING_HANDLER",'Missing handler function for "%s:%s" route.',500),FST_ERR_ROUTE_METHOD_INVALID:xe("FST_ERR_ROUTE_METHOD_INVALID","Provided method is invalid!",500,TypeError),FST_ERR_ROUTE_METHOD_NOT_SUPPORTED:xe("FST_ERR_ROUTE_METHOD_NOT_SUPPORTED","%s method is not supported.",500),FST_ERR_ROUTE_BODY_VALIDATION_SCHEMA_NOT_SUPPORTED:xe("FST_ERR_ROUTE_BODY_VALIDATION_SCHEMA_NOT_SUPPORTED","Body validation schema for %s:%s route is not supported!",500),FST_ERR_ROUTE_BODY_LIMIT_OPTION_NOT_INT:xe("FST_ERR_ROUTE_BODY_LIMIT_OPTION_NOT_INT","'bodyLimit' option must be an integer > 0. Got '%s'",500,TypeError),FST_ERR_ROUTE_REWRITE_NOT_STR:xe("FST_ERR_ROUTE_REWRITE_NOT_STR",'Rewrite url for "%s" needs to be of type "string" but received "%s"',500,TypeError),FST_ERR_REOPENED_CLOSE_SERVER:xe("FST_ERR_REOPENED_CLOSE_SERVER","Fastify has already been closed and cannot be reopened"),FST_ERR_REOPENED_SERVER:xe("FST_ERR_REOPENED_SERVER","Fastify is already listening"),FST_ERR_INSTANCE_ALREADY_LISTENING:xe("FST_ERR_INSTANCE_ALREADY_LISTENING","Fastify instance is already listening. %s"),FST_ERR_PLUGIN_VERSION_MISMATCH:xe("FST_ERR_PLUGIN_VERSION_MISMATCH","fastify-plugin: %s - expected '%s' fastify version, '%s' is installed"),FST_ERR_PLUGIN_NOT_PRESENT_IN_INSTANCE:xe("FST_ERR_PLUGIN_NOT_PRESENT_IN_INSTANCE","The decorator '%s'%s is not present in %s"),FST_ERR_PLUGIN_CALLBACK_NOT_FN:xe("FST_ERR_PLUGIN_CALLBACK_NOT_FN","fastify-plugin: %s",500,TypeError),FST_ERR_PLUGIN_NOT_VALID:xe("FST_ERR_PLUGIN_NOT_VALID","fastify-plugin: %s"),FST_ERR_ROOT_PLG_BOOTED:xe("FST_ERR_ROOT_PLG_BOOTED","fastify-plugin: %s"),FST_ERR_PARENT_PLUGIN_BOOTED:xe("FST_ERR_PARENT_PLUGIN_BOOTED","fastify-plugin: %s"),FST_ERR_PLUGIN_TIMEOUT:xe("FST_ERR_PLUGIN_TIMEOUT","fastify-plugin: %s")};function iY(t,e){return e.cause=t,e}Ac.exports=Io;Ac.exports.appendStackTrace=iY;Ac.exports.AVVIO_ERRORS_MAP={AVV_ERR_CALLBACK_NOT_FN:Io.FST_ERR_PLUGIN_CALLBACK_NOT_FN,AVV_ERR_PLUGIN_NOT_VALID:Io.FST_ERR_PLUGIN_NOT_VALID,AVV_ERR_ROOT_PLG_BOOTED:Io.FST_ERR_ROOT_PLG_BOOTED,AVV_ERR_PARENT_PLG_LOADED:Io.FST_ERR_PARENT_PLUGIN_BOOTED,AVV_ERR_READY_TIMEOUT:Io.FST_ERR_PLUGIN_TIMEOUT}});var D3=C((k_e,Rx)=>{"use strict";var sY=["onRoute","onRegister","onReady","onListen","preClose","onClose"],Tx=["onTimeout","onRequest","preParsing","preValidation","preSerialization","preHandler","onSend","onResponse","onError","onRequestAbort"],aY=Tx.concat(sY),{FST_ERR_HOOK_INVALID_TYPE:oY,FST_ERR_HOOK_INVALID_HANDLER:uY,FST_ERR_SEND_UNDEFINED_ERR:wc,FST_ERR_HOOK_TIMEOUT:cY,FST_ERR_HOOK_NOT_SUPPORTED:fY,AVVIO_ERRORS_MAP:_x,appendStackTrace:Ex}=il(),{kChildren:B4,kHooks:Sx,kRequestPayloadStream:bx}=Dr();function H4(){this.onRequest=[],this.preParsing=[],this.preValidation=[],this.preSerialization=[],this.preHandler=[],this.onResponse=[],this.onSend=[],this.onError=[],this.onRoute=[],this.onRegister=[],this.onReady=[],this.onListen=[],this.onTimeout=[],this.onRequestAbort=[],this.preClose=[]}H4.prototype=Object.create(null);H4.prototype.validate=function(t,e){if(typeof t!="string")throw new oY;if(Array.isArray(this[t])===!1)throw new fY(t);if(typeof e!="function")throw new uY(t,Object.prototype.toString.call(e))};H4.prototype.add=function(t,e){this.validate(t,e),this[t].push(e)};function pY(t){let e=new H4;return e.onRequest=t.onRequest.slice(),e.preParsing=t.preParsing.slice(),e.preValidation=t.preValidation.slice(),e.preSerialization=t.preSerialization.slice(),e.preHandler=t.preHandler.slice(),e.onSend=t.onSend.slice(),e.onResponse=t.onResponse.slice(),e.onError=t.onError.slice(),e.onRoute=t.onRoute.slice(),e.onRegister=t.onRegister.slice(),e.onTimeout=t.onTimeout.slice(),e.onRequestAbort=t.onRequestAbort.slice(),e.onReady=[],e.onListen=[],e.preClose=[],e}function xx(t,e,n,r){let l=n[Sx][t],i=0,s=0;o();function a(c){if(c){c.code==="AVV_ERR_READY_TIMEOUT"?c=Ex(c,new cY(t)):c=_x[c.code]!=null?Ex(c,new _x[c.code](c.message)):c,r(c);return}r()}function o(c){if(c){a(c);return}if(i===l.length&&s===n[B4].length){i===0&&s===0?a():e(function(m,h){a(m),h(m)});return}if(i===l.length&&s{"use strict";var TY=require("node:http"),SY=require("node:https"),xY=require("node:dns"),{FSTDEP011:Ox}=e3(),{kState:sl,kOptions:AY,kServerBindings:wY}=Dr(),{onListenHookRunner:Rc}=D3(),{FST_ERR_HTTP2_INVALID_VERSION:RY,FST_ERR_REOPENED_CLOSE_SERVER:Cx,FST_ERR_REOPENED_SERVER:kx,FST_ERR_LISTEN_OPTIONS_INVALID:OY}=il();yp.exports.createServer=NY;yp.exports.compileValidateHTTPVersion=CY;function Px(t){return`Server listening at ${t}`}function NY(t,e){let n=Lx(t,e);function r(l,...i){let s=i.slice(-1).pop(),a=Object.prototype.toString.call(arguments[0]);if(arguments.length===0)l=gp([]);else if(arguments.length>0&&a!=="[object Object]"&&a!=="[object Function]")Ox(),l=gp(Array.from(arguments)),s=l.cb;else if(i.length>1){Ox();let f=l.path?[l.path]:[l.port??0,l.host??"localhost"];Object.assign(l,gp([...f,...i]))}else l.cb=s;if(l.signal){if(typeof l.signal.on!="function"&&typeof l.signal.addEventListener!="function")throw new OY("Invalid options.signal");if(l.signal.aborted)this.close();else{let f=()=>{this.close()};l.signal.addEventListener("abort",f,{once:!0})}}let o;if(l.path==null?o=l.host??"localhost":o=l.host,Object.prototype.hasOwnProperty.call(l,"host")===!1&&(l.host=o),o==="localhost"?l.cb=(f,c)=>{if(f){s(f,c);return}Nx.call(this,n,e,t,l,()=>{this[sl].listening=!0,s(null,c),Rc(this)})}:l.cb=(f,c)=>{if(f){s(f,c);return}this[sl].listening=!0,s(null,c),Rc(this)},s===void 0)return IY.call(this,n,l).then(c=>new Promise((p,m)=>{o==="localhost"?Nx.call(this,n,e,t,l,()=>{this[sl].listening=!0,p(c),Rc(this)}):(p(c),Rc(this))}));this.ready(Dx.call(this,n,l))}return{server:n,listen:r}}function Nx(t,e,n,r,l){this[sl].listening=!1,xY.lookup(r.host,{all:!0},(i,s)=>{if(i){l();return}let a=t.listening&&n.serverFactory,o=0,f=0;if(!a){let p=t.address();for(let m of s)if(m.address!==p.address){o++;let h=Object.assign({},r,{host:m.address,port:p.port,cb:S=>{f++,S||this[wY].push(g),f===o&&l()}}),g=Lx(n,e),_=()=>{g.close(()=>{}),n.forceCloseConnections==="idle"?g.closeIdleConnections():typeof g.closeAllConnections=="function"&&n.forceCloseConnections&&g.closeAllConnections()};g.on("upgrade",t.emit.bind(t,"upgrade")),t.on("unref",_),t.on("close",_),t.on("error",_),this[sl].listening=!1,Dx.call(this,g,h)()}}if(o===0){l();return}let c=t.unref;t.unref=function(){c.call(t),t.emit("unref")}})}function Dx(t,e){let n=r=>{if(t.removeListener("error",n),r)this[sl].listening=!1,e.cb(r,null);else{let l=Fx.call(this,t,e.listenTextResolver||Px);e.cb(null,l)}};return r=>{if(r!=null)return e.cb(r);if(this[sl].listening&&this[sl].closing)return e.cb(new Cx,null);if(this[sl].listening)return e.cb(new kx,null);t.once("error",n),this[sl].closing||(t.listen(e,n),this[sl].listening=!0)}}function IY(t,e){return this[sl].listening&&this[sl].closing?Promise.reject(new Cx):this[sl].listening?Promise.reject(new kx):this.ready().then(()=>{let n,r=new Promise((i,s)=>{n=a=>{this[sl].listening=!1,s(a)},t.once("error",n)}),l=new Promise((i,s)=>{t.listen(e,()=>{t.removeListener("error",n),i(Fx.call(this,t,e.listenTextResolver||Px))}),this[sl].listening=!0});return Promise.race([r,l])})}function CY(t){let e=!1,n=new Map;return t.serverFactory&&(e=!0),t.http2?(n.set("2.0",!0),t.https&&t.https.allowHTTP1===!0&&(n.set("1.1",!0),n.set("1.0",!0))):(n.set("1.1",!0),n.set("1.0",!0)),function(l){return e||n.has(l)}}function Lx(t,e){let n=null,r=t.https===!0?{}:t.https;return t.serverFactory?n=t.serverFactory(e,t):t.http2?(typeof r=="object"?n=Ix().createSecureServer(r,e):n=Ix().createServer(e),n.on("session",PY(t.http2SessionTimeout))):(r?n=SY.createServer(r,e):n=TY.createServer(t.http,e),n.keepAliveTimeout=t.keepAliveTimeout,n.requestTimeout=t.requestTimeout,t.maxRequestsPerSocket>0&&(n.maxRequestsPerSocket=t.maxRequestsPerSocket)),t.serverFactory||n.setTimeout(t.connectionTimeout),n}function gp(t){if(t.length===0)return{port:0,host:"localhost"};let n={cb:typeof t[t.length-1]=="function"?t.pop():void 0},r=t[0],l=t.length,i=t[l-1];return typeof r=="string"&&isNaN(r)?(n.path=r,n.backlog=l>1?i:void 0):(n.port=l>=1&&Number.isInteger(r)?r:kY(r),n.host=l>=2&&t[1]?t[1]:"localhost",n.backlog=l>=3?t[2]:void 0),n}function kY(t){let e=Number(t);return e>=0&&!Number.isNaN(e)&&Number.isInteger(e)?e:0}function Fx(t,e){let n=t.address(),r=typeof n=="string";r||(n.address.indexOf(":")===-1?n=n.address+":"+n.port:n="["+n.address+"]:"+n.port),n=(r?"":"http"+(this[AY].https?"s":"")+"://")+n;let l=e(n);return this.log.info(l),n}function Ix(){try{return require("node:http2")}catch{throw new RY}}function PY(t){return function(e){e.setTimeout(t,DY)}}function DY(){this.close()}});var bp=C((D_e,jx)=>{"use strict";var{kSchemaHeaders:Ic,kSchemaParams:vp,kSchemaQuerystring:_p,kSchemaBody:Ep,kSchemaResponse:$x}=Dr(),LY=/^[1-5]{1}[0-9]{2}$|^[1-5]xx$|^default$/,{FST_ERR_SCH_RESPONSE_SCHEMA_NOT_NESTED_2XX:FY}=il(),{FSTWRN001:Oc}=e3();function MY(t,e){if(!t.schema||!t.schema.response)return;let{method:n,url:r}=t.config||{};t[$x]=Object.keys(t.schema.response).reduce(function(l,i){let s=t.schema.response[i];if(i=i.toLowerCase(),!LY.exec(i))throw new FY;if(s.content){let a={};for(let o of Object.keys(s.content)){let f=s.content[o].schema;a[o]=e({schema:f,url:r,method:n,httpStatus:i,contentType:o})}l[i]=a}else l[i]=e({schema:s,url:r,method:n,httpStatus:i});return l},{})}function $Y(t,e,n){let{schema:r}=t;if(!r)return;let{method:l,url:i}=t.config||{},s=r.headers;if(s&&(n||Object.getPrototypeOf(s)!==Object.prototype))t[Ic]=e({schema:s,method:l,url:i,httpPart:"headers"});else if(s){let a={};Object.keys(s).forEach(o=>{a[o]=s[o]}),a.required instanceof Array&&(a.required=a.required.map(o=>o.toLowerCase())),s.properties&&(a.properties={},Object.keys(s.properties).forEach(o=>{a.properties[o.toLowerCase()]=s.properties[o]})),t[Ic]=e({schema:a,method:l,url:i,httpPart:"headers"})}else Object.prototype.hasOwnProperty.call(r,"headers")&&Oc("headers",l,i);r.body?t[Ep]=e({schema:r.body,method:l,url:i,httpPart:"body"}):Object.prototype.hasOwnProperty.call(r,"body")&&Oc("body",l,i),r.querystring?t[_p]=e({schema:r.querystring,method:l,url:i,httpPart:"querystring"}):Object.prototype.hasOwnProperty.call(r,"querystring")&&Oc("querystring",l,i),r.params?t[vp]=e({schema:r.params,method:l,url:i,httpPart:"params"}):Object.prototype.hasOwnProperty.call(r,"params")&&Oc("params",l,i)}function Nc(t,e,n){let r=e[n]===void 0,l=t&&t(r?null:e[n]);if(l?.then)return l.then(s=>i(s)).catch(s=>s);return i(l);function i(s){return s===!1?t.errors:s&&s.error?s.error:(s&&s.value&&(e[n]=s.value),!1)}}function Cc(t,e,n){let r=n===void 0;if(r||!n.skipParams){let i=Nc(t[vp],e,"params");if(i)return typeof i.then!="function"?L3(i,"params",t.schemaErrorFormatter):jY(i,t,e)}if(r||!n.skipBody){let i=Nc(t[Ep],e,"body");if(i)return typeof i.then!="function"?L3(i,"body",t.schemaErrorFormatter):UY(i,t,e)}if(r||!n.skipQuery){let i=Nc(t[_p],e,"query");if(i)return typeof i.then!="function"?L3(i,"querystring",t.schemaErrorFormatter):BY(i,t,e)}let l=Nc(t[Ic],e,"headers");return l?typeof l.then!="function"?L3(l,"headers",t.schemaErrorFormatter):HY(l,t,e):!1}function jY(t,e,n){return t.then(r=>r?L3(r,"params",e.schemaErrorFormatter):Cc(e,n,{skipParams:!0}))}function UY(t,e,n){return t.then(r=>r?L3(r,"body",e.schemaErrorFormatter):Cc(e,n,{skipParams:!0,skipBody:!0}))}function BY(t,e,n){return t.then(r=>r?L3(r,"querystring",e.schemaErrorFormatter):Cc(e,n,{skipParams:!0,skipBody:!0,skipQuery:!0}))}function HY(t,e,n){return t.then(r=>r?L3(r,"headers",e.schemaErrorFormatter):!1)}function L3(t,e,n){if(t instanceof Error)return t.statusCode=t.statusCode||400,t.code=t.code||"FST_ERR_VALIDATION",t.validationContext=t.validationContext||e,t;let r=n(t,e);return r.statusCode=r.statusCode||400,r.code=r.code||"FST_ERR_VALIDATION",r.validation=t,r.validationContext=e,r}jx.exports={symbols:{bodySchema:Ep,querystringSchema:_p,responseSchema:$x,paramsSchema:vp,headersSchema:Ic},compileSchemasForValidation:$Y,compileSchemasForSerialization:MY,validate:Cc}});var Tp=C((L_e,Bx)=>{"use strict";var{kReplyIsError:Ux,kReplyHijacked:qY}=Dr();function VY(t,e){t.then(function(n){if(e[qY]!==!0&&(n!==void 0||e.sent===!1&&e.raw.headersSent===!1&&e.request.raw.aborted===!1))try{e.send(n)}catch(r){e[Ux]=!0,e.send(r)}},function(n){if(e.sent===!0){e.log.error({err:n},"Promise errored, but reply.sent = true was set");return}e[Ux]=!0;try{e.send(n)}catch(r){e.send(r)}})}Bx.exports=VY});var wp=C((F_e,Ap)=>{"use strict";var{validate:zY}=bp(),{preValidationHookRunner:GY,preHandlerHookRunner:XY}=D3(),WY=Tp(),{kReplyIsError:kc,kRouteContext:M3}=Dr();function KY(t,e,n){if(n.sent===!0)return;if(t!=null){n[kc]=!0,n.send(t);return}let r=e.raw.method,l=e.headers,i=e[M3];if(r==="GET"||r==="HEAD"){F3(e,n);return}let s=l["content-type"];if(r==="POST"||r==="PUT"||r==="PATCH"||r==="TRACE"||r==="SEARCH"){s===void 0?l["transfer-encoding"]===void 0&&(l["content-length"]==="0"||l["content-length"]===void 0)?F3(e,n):i.contentTypeParser.run("",F3,e,n):i.contentTypeParser.run(s,F3,e,n);return}if(r==="OPTIONS"||r==="DELETE"){s!==void 0&&(l["transfer-encoding"]!==void 0||l["content-length"]!==void 0)?i.contentTypeParser.run(s,F3,e,n):F3(e,n);return}F3(e,n)}function F3(t,e){try{t[M3].preValidation!==null?GY(t[M3].preValidation,t,e,Sp):Sp(null,t,e)}catch(n){Sp(n,t,e)}}function Sp(t,e,n){if(n.sent===!0)return;if(t!=null){n[kc]=!0,n.send(t);return}let r=zY(n[M3],e);if(r&&typeof r.then=="function"||!1){let i=Hx.bind(null,e,n);r.then(i,i)}else Hx(e,n,r)}function Hx(t,e,n){if(n){if(e[M3].attachValidation===!1){e.send(n);return}e.request.validationError=n}t[M3].preHandler!==null?XY(t[M3].preHandler,t,e,xp):xp(null,t,e)}function xp(t,e,n){if(n.sent)return;if(t!=null){n[kc]=!0,n.send(t);return}let r;try{r=e[M3].handler(e,n)}catch(l){n[kc]=!0,n.send(l);return}r!==void 0&&(r!==null&&typeof r.then=="function"?WY(r,n):n.send(r))}Ap.exports=KY;Ap.exports[Symbol.for("internals")]={handler:F3,preHandlerCallback:xp}});var Vx=C((M_e,qx)=>{"use strict";function ko(){}var YY={fatal:ko,error:ko,warn:ko,info:ko,debug:ko,trace:ko};Object.defineProperty(qx,"exports",{get(){return Object.create(YY)}})});var Op=C(($_e,Xx)=>{"use strict";var V4=t=>t&&typeof t.message=="string",Rp=t=>{if(!t)return;let e=t.cause;if(typeof e=="function"){let n=t.cause();return V4(n)?n:void 0}else return V4(e)?e:void 0},zx=(t,e)=>{if(!V4(t))return"";let n=t.stack||"";if(e.has(t))return n+`
-causes have become circular...`;let r=Rp(t);return r?(e.add(t),n+`
-caused by: `+zx(r,e)):n},JY=t=>zx(t,new Set),Gx=(t,e,n)=>{if(!V4(t))return"";let r=n?"":t.message||"";if(e.has(t))return r+": ...";let l=Rp(t);if(l){e.add(t);let i=typeof t.cause=="function";return r+(i?"":": ")+Gx(l,e,i)}else return r},QY=t=>Gx(t,new Set);Xx.exports={isErrorLike:V4,getErrorCause:Rp,stackWithCauses:JY,messageWithCauses:QY}});var Np=C((j_e,Kx)=>{"use strict";var ZY=Symbol("circular-ref-tag"),Pc=Symbol("pino-raw-err-ref"),Wx=Object.create({},{type:{enumerable:!0,writable:!0,value:void 0},message:{enumerable:!0,writable:!0,value:void 0},stack:{enumerable:!0,writable:!0,value:void 0},aggregateErrors:{enumerable:!0,writable:!0,value:void 0},raw:{enumerable:!1,get:function(){return this[Pc]},set:function(t){this[Pc]=t}}});Object.defineProperty(Wx,Pc,{writable:!0,value:{}});Kx.exports={pinoErrProto:Wx,pinoErrorSymbols:{seen:ZY,rawSymbol:Pc}}});var Qx=C((U_e,Jx)=>{"use strict";Jx.exports=Cp;var{messageWithCauses:eJ,stackWithCauses:tJ,isErrorLike:Yx}=Op(),{pinoErrProto:nJ,pinoErrorSymbols:rJ}=Np(),{seen:Ip}=rJ,{toString:lJ}=Object.prototype;function Cp(t){if(!Yx(t))return t;t[Ip]=void 0;let e=Object.create(nJ);e.type=lJ.call(t.constructor)==="[object Function]"?t.constructor.name:t.name,e.message=eJ(t),e.stack=tJ(t),Array.isArray(t.errors)&&(e.aggregateErrors=t.errors.map(n=>Cp(n)));for(let n in t)if(e[n]===void 0){let r=t[n];Yx(r)?n!=="cause"&&!Object.prototype.hasOwnProperty.call(r,Ip)&&(e[n]=Cp(r)):e[n]=r}return delete t[Ip],e.raw=t,e}});var eA=C((B_e,Zx)=>{"use strict";Zx.exports=Lc;var{isErrorLike:kp}=Op(),{pinoErrProto:iJ,pinoErrorSymbols:sJ}=Np(),{seen:Dc}=sJ,{toString:aJ}=Object.prototype;function Lc(t){if(!kp(t))return t;t[Dc]=void 0;let e=Object.create(iJ);e.type=aJ.call(t.constructor)==="[object Function]"?t.constructor.name:t.name,e.message=t.message,e.stack=t.stack,Array.isArray(t.errors)&&(e.aggregateErrors=t.errors.map(n=>Lc(n))),kp(t.cause)&&!Object.prototype.hasOwnProperty.call(t.cause,Dc)&&(e.cause=Lc(t.cause));for(let n in t)if(e[n]===void 0){let r=t[n];kp(r)?Object.prototype.hasOwnProperty.call(r,Dc)||(e[n]=Lc(r)):e[n]=r}return delete t[Dc],e.raw=t,e}});var lA=C((H_e,rA)=>{"use strict";rA.exports={mapHttpRequest:oJ,reqSerializer:nA};var Pp=Symbol("pino-raw-req-ref"),tA=Object.create({},{id:{enumerable:!0,writable:!0,value:""},method:{enumerable:!0,writable:!0,value:""},url:{enumerable:!0,writable:!0,value:""},query:{enumerable:!0,writable:!0,value:""},params:{enumerable:!0,writable:!0,value:""},headers:{enumerable:!0,writable:!0,value:{}},remoteAddress:{enumerable:!0,writable:!0,value:""},remotePort:{enumerable:!0,writable:!0,value:""},raw:{enumerable:!1,get:function(){return this[Pp]},set:function(t){this[Pp]=t}}});Object.defineProperty(tA,Pp,{writable:!0,value:{}});function nA(t){let e=t.info||t.socket,n=Object.create(tA);if(n.id=typeof t.id=="function"?t.id():t.id||(t.info?t.info.id:void 0),n.method=t.method,t.originalUrl)n.url=t.originalUrl;else{let r=t.path;n.url=typeof r=="string"?r:t.url?t.url.path||t.url:void 0}return t.query&&(n.query=t.query),t.params&&(n.params=t.params),n.headers=t.headers,n.remoteAddress=e&&e.remoteAddress,n.remotePort=e&&e.remotePort,n.raw=t.raw||t,n}function oJ(t){return{req:nA(t)}}});var oA=C((q_e,aA)=>{"use strict";aA.exports={mapHttpResponse:uJ,resSerializer:sA};var Dp=Symbol("pino-raw-res-ref"),iA=Object.create({},{statusCode:{enumerable:!0,writable:!0,value:0},headers:{enumerable:!0,writable:!0,value:""},raw:{enumerable:!1,get:function(){return this[Dp]},set:function(t){this[Dp]=t}}});Object.defineProperty(iA,Dp,{writable:!0,value:{}});function sA(t){let e=Object.create(iA);return e.statusCode=t.headersSent?t.statusCode:null,e.headers=t.getHeaders?t.getHeaders():t._headers,e.raw=t,e}function uJ(t){return{res:sA(t)}}});var Fp=C((V_e,uA)=>{"use strict";var Lp=Qx(),cJ=eA(),Fc=lA(),Mc=oA();uA.exports={err:Lp,errWithCause:cJ,mapHttpRequest:Fc.mapHttpRequest,mapHttpResponse:Mc.mapHttpResponse,req:Fc.reqSerializer,res:Mc.resSerializer,wrapErrorSerializer:function(e){return e===Lp?e:function(r){return e(Lp(r))}},wrapRequestSerializer:function(e){return e===Fc.reqSerializer?e:function(r){return e(Fc.reqSerializer(r))}},wrapResponseSerializer:function(e){return e===Mc.resSerializer?e:function(r){return e(Mc.resSerializer(r))}}}});var Mp=C((z_e,cA)=>{"use strict";function fJ(t,e){return e}cA.exports=function(){let e=Error.prepareStackTrace;Error.prepareStackTrace=fJ;let n=new Error().stack;if(Error.prepareStackTrace=e,!Array.isArray(n))return;let r=n.slice(2),l=[];for(let i of r)i&&l.push(i.getFileName());return l}});var pA=C((G_e,fA)=>{"use strict";fA.exports=pJ;function pJ(t={}){let{ERR_PATHS_MUST_BE_STRINGS:e=()=>"fast-redact - Paths must be (non-empty) strings",ERR_INVALID_PATH:n=r=>`fast-redact \u2013 Invalid path (${r})`}=t;return function({paths:l}){l.forEach(i=>{if(typeof i!="string")throw Error(e());try{if(/〇/.test(i))throw Error();let s=(i[0]==="["?"":".")+i.replace(/^\*/,"\u3007").replace(/\.\*/g,".\u3007").replace(/\[\*\]/g,"[\u3007]");if(/\n|\r|;/.test(s)||/\/\*/.test(s))throw Error();Function(`
+`+i),t.push(l+"m+"+Fc.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=aY()+e+" "+t[0]}function aY(){return zr.inspectOpts.hideDate?"":new Date().toISOString()+" "}function oY(...t){return process.stderr.write(Lc.format(...t)+`
+`)}function uY(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function cY(){return process.env.DEBUG}function fY(t){t.inspectOpts={};let e=Object.keys(zr.inspectOpts);for(let n=0;ne.trim()).join(" ")};Lx.O=function(t){return this.inspectOpts.colors=this.useColors,Lc.inspect(t,this.inspectOpts)}});var Mc=C((XEe,wp)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?wp.exports=Ix():wp.exports=Fx()});var Mx=C((WEe,Np)=>{"use strict";var pY=_p(),dY=require("events").EventEmitter,hY=require("util").inherits,Lr=Mc()("avvio"),{AVV_ERR_READY_TIMEOUT:mY}=bp(),Rp=Symbol.for("plugin-meta");function gY(t,e){return t[Rp]&&t[Rp].name?t[Rp].name:typeof e<"u"&&typeof e!="function"&&e.name?e.name:t.name?t.name:t.toString().split(`
+`).slice(0,2).map(n=>n.trim()).join(" -- ")}function yY(){let t={};return t.promise=new Promise((e,n)=>{t.resolve=e,t.reject=n}),t}function Lo(t,e,n,r,l){this.started=!1,this.func=e,this.opts=n,this.onFinish=null,this.parent=t,this.timeout=l===void 0?t._timeout:l,this.name=gY(e,n),this.isAfter=r,this.q=pY(t,vY,1),this.q.pause(),this._error=null,this.loaded=!1,this._promise=null}hY(Lo,dY);Lo.prototype.exec=function(t,e){let n=this.func,r=!1,l=this.name;if(this.parent._error&&!this.isAfter){Lr("skipping loading of plugin as parent errored and it is not an after",l),process.nextTick(e);return}if(this.isAfter)this.server=t;else try{this.server=this.parent.override(t,n,this.opts)}catch(o){return Lr("override errored",l),e(o)}this.opts=typeof this.opts=="function"?this.opts(this.server):this.opts,Lr("exec",l);let i,s=o=>{if(r){Lr("loading complete",l);return}this._error=o,Lr(o?"exec errored":"exec completed",l),r=!0,i&&clearTimeout(i),e(o)};this.timeout>0&&(Lr("setting up timeout",l,this.timeout),i=setTimeout(function(){Lr("timed out",l),i=null;let o=new mY(l);o.fn=n,s(o)},this.timeout)),this.started=!0,this.emit("start",this.server?this.server.name:null,this.name,Date.now());let a=n(this.server,this.opts,s);a&&typeof a.then=="function"&&(Lr("exec: resolving promise",l),a.then(()=>process.nextTick(s),o=>process.nextTick(s,o)))};Lo.prototype.loadedSoFar=function(){if(this.loaded)return Promise.resolve();let t=()=>{this.server.after((n,r)=>{this._error=n,this.q.pause(),n?(Lr("rejecting promise",this.name,n),this._promise.reject(n)):(Lr("resolving promise",this.name),this._promise.resolve()),this._promise=null,process.nextTick(r,n)}),this.q.resume()},e;return this._promise?e=Promise.resolve():(this._promise=yY(),e=this._promise.promise,this.server?t():this.on("start",t)),e};Lo.prototype.enqueue=function(t,e){Lr("enqueue",this.name,t.name),this.emit("enqueue",this.server?this.server.name:null,this.name,Date.now()),this.q.push(t,e)};Lo.prototype.finish=function(t,e){Lr("finish",this.name,t);let n=()=>{this.loaded||(Lr("loaded",this.name),this.emit("loaded",this.server?this.server.name:null,this.name,Date.now()),this.loaded=!0,e(t))};if(t){this._promise&&(this._promise.reject(t),this._promise=null),n();return}let r=()=>{if(Lr("check",this.name,this.q.length(),this.q.running(),this._promise),this.q.length()===0&&this.q.running()===0)if(this._promise){let l=()=>{Lr("wrap"),queueMicrotask(r)};this._promise.resolve(),this._promise.promise.then(l,l),this._promise=null}else n();else Lr("delayed",this.name),this.q.drain=()=>{Lr("drain",this.name),this.q.drain=_Y,queueMicrotask(r)}};queueMicrotask(r),this.q.resume()};function vY(t,e){let n=this;process.nextTick(Op.bind(n),t,e)}function Op(t,e){if(typeof t.func.then=="function"){t.func.then(r=>{typeof r.default=="function"&&(r=r.default),t.func=r,Op.call(this,t,e)},e);return}let n=this._current[0];this._current.unshift(t),t.exec(n&&n.server||this._server,r=>{t.finish(r,l=>{this._current.shift(),e(l)})})}function _Y(){}Np.exports=Lo;Np.exports.loadPlugin=Op});var Hx=C((KEe,Dp)=>{"use strict";var $x=_p(),EY=require("events").EventEmitter,bY=require("util").inherits,{AVV_ERR_EXPOSE_ALREADY_DEFINED:Ip,AVV_ERR_CALLBACK_NOT_FN:Y4,AVV_ERR_PLUGIN_NOT_VALID:TY,AVV_ERR_ROOT_PLG_BOOTED:SY,AVV_ERR_READY_TIMEOUT:xY}=bp(),AY=wx(),Pp=Mx(),Fo=Mc()("avvio"),$c=Symbol("kAvvio"),Cp=Symbol("kThenifyDoNotWrap");function wY(t,e,n){let r=e.expose||{},l=r.use||"use",i=r.after||"after",s=r.ready||"ready",a=r.onClose||"onClose",o=r.close||"close";if(t[l])throw new Ip(l);if(t[i])throw new Ip(i);if(t[s])throw new Ip(s);t[l]=function(c,f){return n.use(c,f),this},Object.defineProperty(t,"then",{get:Ux.bind(n)}),t[$c]=!0,t[i]=function(c){return typeof c!="function"?n._loadRegistered():(n.after(kp(c,this)),this)},t[s]=function(c){if(c&&typeof c!="function")throw new Y4(s,typeof c);return n.ready(c?kp(c,this):void 0)},t[a]=function(c){if(typeof c!="function")throw new Y4(a,typeof c);return n.onClose(CY(c,this)),this},t[o]=function(c){if(c&&typeof c!="function")throw new Y4(o,typeof c);return c?(n.close(kp(c,this)),this):n.close()}}function Fr(t,e,n){if(typeof t=="function"&&arguments.length===1&&(n=t,e={},t=null),typeof e=="function"&&(n=e,e={}),e=e||{},!(this instanceof Fr)){let r=new Fr(t,e,n);return t&&wY(t,e,r),r}e.autostart!==!1&&(e.autostart=!0),t=t||this,this._timeout=Number(e.timeout)||0,this._server=t,this._current=[],this._error=null,this._isOnCloseHandlerKey=Symbol("isOnCloseHandler"),this._lastUsed=null,this.setMaxListeners(0),n&&this.once("start",n),this.started=!1,this.booted=!1,this.pluginTree=new AY,this._readyQ=$x(this,Bx,1),this._readyQ.pause(),this._readyQ.drain=()=>{this.emit("start"),this._readyQ.drain=jx},this._closeQ=$x(this,IY,1),this._closeQ.pause(),this._closeQ.drain=()=>{this.emit("close"),this._closeQ.drain=jx},this._doStart=null,this._root=new Pp(this,RY.bind(this),e,!1,0),this._root.once("start",(r,l,i)=>{let s=this.pluginTree.start(null,l,i);this._root.once("loaded",(a,o,c)=>{this.pluginTree.stop(s,c)})}),Pp.loadPlugin.call(this,this._root,r=>{Fo("root plugin ready");try{this.emit("preReady"),this._root=null}catch(l){r=r||this._error||l}if(r){if(this._error=r,this._readyQ.length()===0)throw r}else this.booted=!0;this._readyQ.resume()})}function RY(t,e,n){this._doStart=n,e.autostart&&this.start()}bY(Fr,EY);Fr.prototype.start=function(){return this.started=!0,process.nextTick(this._doStart),this};Fr.prototype.override=function(t,e,n){return t};function OY(t){if(t&&typeof t=="object"&&typeof t.default=="function"&&(t=t.default),!(t&&(typeof t=="function"||typeof t.then=="function")))throw new TY(typeof t);return t}Fr.prototype[$c]=!0;Fr.prototype.use=function(t,e){return this._lastUsed=this._addPlugin(t,e,!1),this};Fr.prototype._loadRegistered=function(){let t=this._current[0];return!this.started&&!this.booted&&process.nextTick(()=>this._root.q.resume()),t?t.loadedSoFar():Promise.resolve()};Object.defineProperty(Fr.prototype,"then",{get:Ux});Fr.prototype._addPlugin=function(t,e,n){if(t=OY(t),e=e||{},this.booted)throw new SY;let r=this._current[0],l=new Pp(this,t,e,n);if(l.once("start",(i,s,a)=>{let o=this.pluginTree.start(r.name,s,a);l.once("loaded",(c,f,p)=>{this.pluginTree.stop(o,p)})}),r.loaded)throw new Error(l.name,r.name);return r.enqueue(l,i=>{i&&(this._error=i)}),l};Fr.prototype.after=function(t){if(!t)return this._loadRegistered();this._addPlugin(e.bind(this),{},!0);function e(n,r,l){Bx.call(this,t,l)}return this};Fr.prototype.onClose=function(t){if(typeof t!="function")throw new Error("not a function");t[this._isOnCloseHandlerKey]=!0,this._closeQ.unshift(t,e.bind(this));function e(n){n&&(this._error=n)}return this};Fr.prototype.close=function(t){let e;if(t){if(typeof t!="function")throw new Y4("close",typeof t)}else e=new Promise(function(n,r){t=function(l){if(l)return r(l);n()}});return this.ready(()=>{this._error=null,this._closeQ.push(t),process.nextTick(this._closeQ.resume.bind(this._closeQ))}),e};Fr.prototype.ready=function(t){if(t){if(typeof t!="function")throw new Y4("ready",typeof t);this._readyQ.push(t),queueMicrotask(this.start.bind(this));return}return new Promise((e,n)=>{this._readyQ.push(l),this.start();let r=this._current[0].server;function l(i,s,a){i?n(i):e(r),process.nextTick(a)}})};Fr.prototype.prettyPrint=function(){return this.pluginTree.prittyPrint()};Fr.prototype.toJSON=function(){return this.pluginTree.toJSON()};function jx(){}function Ux(){if(this.booted){Fo("thenify returning null because we are already booted");return}if(this[Cp]){this[Cp]=!1;return}return Fo("thenify"),(t,e)=>this._loadRegistered().then(()=>(this[Cp]=!0,t(this._server)),e)}function Bx(t,e){let n=this._server,r=this._error,l;if(this._error=null,t.length===0)this._error=r,l=t(),l&&!l[$c]&&typeof l.then=="function"?l.then(()=>process.nextTick(e),i=>process.nextTick(e,i)):process.nextTick(e);else if(t.length===1)l=t(r),l&&!l[$c]&&typeof l.then=="function"?l.then(()=>process.nextTick(e),i=>process.nextTick(e,i)):process.nextTick(e);else if(this._timeout===0){let i=s=>{this._error=s,e(this._error)};t.length===2?t(r,i):t(r,n,i)}else NY.call(this,t,r,n,e)}function NY(t,e,n,r){let l=t.name;Fo("setting up ready timeout",l,this._timeout);let i=setTimeout(()=>{Fo("timed out",l),i=null;let a=new xY(l);a.fn=t,this._error=a,r(a)},this._timeout);t.length===2?t(e,s.bind(this)):t(e,n,s.bind(this));function s(a){i&&(clearTimeout(i),this._error=a,r(this._error))}}function IY(t,e){let n=this._server,r=t[this._isOnCloseHandlerKey];if(t.length===0||t.length===1){let l;r?l=t(n):l=t(this._error),l&&typeof l.then=="function"?(Fo("resolving close/onClose promise"),l.then(()=>process.nextTick(e),i=>process.nextTick(e,i))):process.nextTick(e)}else t.length===2?t(r?n:this._error,e):r?t(n,e):t(this._error,n,e)}function CY(t,e){return n.bind(e);function n(r,l){let i;t.length===0?(i=t(),i&&i.then?i.then(function(){process.nextTick(l)},l):process.nextTick(l)):t.length===1?(i=t(this),i&&i.then?i.then(function(){process.nextTick(l)},l):process.nextTick(l)):t(this,l)}}function kp(t,e){return n.bind(e);function n(r,l){let i;t?t.length===0?(i=t(),i&&i.then?i.then(function(){process.nextTick(l,r)},l):process.nextTick(l,r)):t.length===1?(i=t(r),i&&i.then?i.then(function(){process.nextTick(l)},l):process.nextTick(l)):t.length===2?t(r,l):t(r,this,l):process.nextTick(l)}}Dp.exports=Fr;Dp.exports.express=function(t){return Fr(t,{expose:{use:"load"}})}});var Mr=C((YEe,qx)=>{"use strict";var kY={kAvvioBoot:Symbol("fastify.avvioBoot"),kChildren:Symbol("fastify.children"),kServerBindings:Symbol("fastify.serverBindings"),kBodyLimit:Symbol("fastify.bodyLimit"),kRoutePrefix:Symbol("fastify.routePrefix"),kLogLevel:Symbol("fastify.logLevel"),kLogSerializers:Symbol("fastify.logSerializers"),kHooks:Symbol("fastify.hooks"),kContentTypeParser:Symbol("fastify.contentTypeParser"),kState:Symbol("fastify.state"),kOptions:Symbol("fastify.options"),kDisableRequestLogging:Symbol("fastify.disableRequestLogging"),kPluginNameChain:Symbol("fastify.pluginNameChain"),kRouteContext:Symbol("fastify.context"),kPublicRouteContext:Symbol("fastify.routeOptions"),kGenReqId:Symbol("fastify.genReqId"),kSchemaController:Symbol("fastify.schemaController"),kSchemaHeaders:Symbol("headers-schema"),kSchemaParams:Symbol("params-schema"),kSchemaQuerystring:Symbol("querystring-schema"),kSchemaBody:Symbol("body-schema"),kSchemaResponse:Symbol("response-schema"),kSchemaErrorFormatter:Symbol("fastify.schemaErrorFormatter"),kSchemaVisited:Symbol("fastify.schemas.visited"),kRequest:Symbol("fastify.Request"),kRequestPayloadStream:Symbol("fastify.RequestPayloadStream"),kRequestAcceptVersion:Symbol("fastify.RequestAcceptVersion"),kRequestCacheValidateFns:Symbol("fastify.request.cache.validateFns"),kRequestOriginalUrl:Symbol("fastify.request.originalUrl"),kFourOhFour:Symbol("fastify.404"),kCanSetNotFoundHandler:Symbol("fastify.canSetNotFoundHandler"),kFourOhFourLevelInstance:Symbol("fastify.404LogLevelInstance"),kFourOhFourContext:Symbol("fastify.404ContextKey"),kDefaultJsonParse:Symbol("fastify.defaultJSONParse"),kReply:Symbol("fastify.Reply"),kReplySerializer:Symbol("fastify.reply.serializer"),kReplyIsError:Symbol("fastify.reply.isError"),kReplyHeaders:Symbol("fastify.reply.headers"),kReplyTrailers:Symbol("fastify.reply.trailers"),kReplyHasStatusCode:Symbol("fastify.reply.hasStatusCode"),kReplyHijacked:Symbol("fastify.reply.hijacked"),kReplyStartTime:Symbol("fastify.reply.startTime"),kReplyNextErrorHandler:Symbol("fastify.reply.nextErrorHandler"),kReplyEndTime:Symbol("fastify.reply.endTime"),kReplyErrorHandlerCalled:Symbol("fastify.reply.errorHandlerCalled"),kReplyIsRunningOnErrorHook:Symbol("fastify.reply.isRunningOnErrorHook"),kReplySerializerDefault:Symbol("fastify.replySerializerDefault"),kReplyCacheSerializeFns:Symbol("fastify.reply.cache.serializeFns"),kTestInternals:Symbol("fastify.testInternals"),kErrorHandler:Symbol("fastify.errorHandler"),kChildLoggerFactory:Symbol("fastify.childLoggerFactory"),kHasBeenDecorated:Symbol("fastify.hasBeenDecorated"),kKeepAliveConnections:Symbol("fastify.keepAliveConnections"),kRouteByFastify:Symbol("fastify.routeByFastify")};qx.exports=kY});var zx=C((JEe,jc)=>{"use strict";var{format:Lp}=require("node:util");function PY(t){return Vx({...t,name:"DeprecationWarning"})}function Vx({name:t,code:e,message:n,unlimited:r=!1}={}){if(!t)throw new Error("Warning name must not be empty");if(!e)throw new Error("Warning code must not be empty");if(!n)throw new Error("Warning message must not be empty");if(typeof r!="boolean")throw new Error("Warning opts.unlimited must be a boolean");e=e.toUpperCase();let l={[t]:function(s,a,o){i.emitted===!0&&i.unlimited!==!0||(i.emitted=!0,process.emitWarning(i.format(s,a,o),i.name,i.code))}};r&&(l={[t]:function(s,a,o){i.emitted=!0,process.emitWarning(i.format(s,a,o),i.name,i.code)}});let i=l[t];return i.emitted=!1,i.message=n,i.unlimited=r,i.code=e,i.format=function(s,a,o){let c;return s&&a&&o?c=Lp(n,s,a,o):s&&a?c=Lp(n,s,a):s?c=Lp(n,s):c=n,c},i}var Fp={createWarning:Vx,createDeprecation:PY};jc.exports=Fp;jc.exports.default=Fp;jc.exports.processWarning=Fp});var l3=C((QEe,Xx)=>{"use strict";var{createDeprecation:sl,createWarning:Gx}=zx(),DY=sl({code:"FSTDEP005",message:'You are accessing the deprecated "request.connection" property. Use "request.socket" instead.'}),LY=sl({code:"FSTDEP006",message:"You are decorating Request/Reply with a reference type. This reference is shared amongst all requests. Use onRequest hook instead. Property: %s"}),FY=sl({code:"FSTDEP007",message:'You are trying to set a HEAD route using "exposeHeadRoute" route flag when a sibling route is already set. See documentation for more info.'}),MY=sl({code:"FSTDEP008",message:'You are using route constraints via the route { version: "..." } option, use { constraints: { version: "..." } } option instead.'}),$Y=sl({code:"FSTDEP009",message:'You are using a custom route versioning strategy via the server { versioning: "..." } option, use { constraints: { version: "..." } } option instead.'}),jY=sl({code:"FSTDEP010",message:'Modifying the "reply.sent" property is deprecated. Use the "reply.hijack()" method instead.'}),UY=sl({code:"FSTDEP011",message:'Variadic listen method is deprecated. Please use ".listen(optionsObject)" instead. The variadic signature will be removed in `fastify@5`.'}),BY=sl({code:"FSTDEP012",message:'request.context property access is deprecated. Please use "request.routeOptions.config" or "request.routeOptions.schema" instead for accessing Route settings. The "request.context" will be removed in `fastify@5`.'}),HY=sl({code:"FSTDEP013",message:'Direct return of "trailers" function is deprecated. Please use "callback" or "async-await" for return value. The support of direct return will removed in `fastify@5`.'}),qY=sl({code:"FSTDEP014",message:"You are trying to set/access the default route. This property is deprecated. Please, use setNotFoundHandler if you want to custom a 404 handler or the wildcard (*) to match all routes."}),VY=sl({code:"FSTDEP015",message:'You are accessing the deprecated "request.routeSchema" property. Use "request.routeOptions.schema" instead. Property "req.routeSchema" will be removed in `fastify@5`.'}),zY=sl({code:"FSTDEP016",message:'You are accessing the deprecated "request.routeConfig" property. Use "request.routeOptions.config" instead. Property "req.routeConfig" will be removed in `fastify@5`.'}),GY=sl({code:"FSTDEP017",message:'You are accessing the deprecated "request.routerPath" property. Use "request.routeOptions.url" instead. Property "req.routerPath" will be removed in `fastify@5`.'}),XY=sl({code:"FSTDEP018",message:'You are accessing the deprecated "request.routerMethod" property. Use "request.routeOptions.method" instead. Property "req.routerMethod" will be removed in `fastify@5`.'}),WY=sl({code:"FSTDEP019",message:'reply.context property access is deprecated. Please use "request.routeOptions.config" or "request.routeOptions.schema" instead for accessing Route settings. The "reply.context" will be removed in `fastify@5`.'}),KY=sl({code:"FSTDEP020",message:'You are using the deprecated "reply.getResponseTime()"" method. Use the "request.elapsedTime" property instead. Method "reply.getResponseTime()" will be removed in `fastify@5`.'}),YY=Gx({name:"FastifyWarning",code:"FSTWRN001",message:"The %s schema for %s: %s is missing. This may indicate the schema is not well specified.",unlimited:!0}),JY=Gx({name:"FastifyWarning",code:"FSTWRN002",message:"The %s plugin being registered mixes async and callback styles, which will result in an error in `fastify@5`",unlimited:!0});Xx.exports={FSTDEP005:DY,FSTDEP006:LY,FSTDEP007:FY,FSTDEP008:MY,FSTDEP009:$Y,FSTDEP010:jY,FSTDEP011:UY,FSTDEP012:BY,FSTDEP013:HY,FSTDEP014:qY,FSTDEP015:VY,FSTDEP016:zY,FSTDEP017:GY,FSTDEP018:XY,FSTDEP019:WY,FSTDEP020:KY,FSTWRN001:YY,FSTWRN002:JY}});var Wx=C((ZEe,Uc)=>{"use strict";var{format:QY}=require("node:util");function ZY(){return`${this.name} [${this.code}]: ${this.message}`}function Mp(t,e,n=500,r=Error){if(!t)throw new Error("Fastify error code must not be empty");if(!e)throw new Error("Fastify error message must not be empty");t=t.toUpperCase(),!n&&(n=void 0);function l(...i){if(!new.target)return new l(...i);this.code=t,this.name="FastifyError",this.statusCode=n;let s=i.length-1;s!==-1&&i[s]&&typeof i[s]=="object"&&"cause"in i[s]&&(this.cause=i.pop().cause),this.message=QY(e,...i),Error.stackTraceLimit!==0&&Error.captureStackTrace(this,l)}return l.prototype=Object.create(r.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),l.prototype[Symbol.toStringTag]="Error",l.prototype.toString=ZY,l}Uc.exports=Mp;Uc.exports.default=Mp;Uc.exports.createError=Mp});var al=C((ebe,Bc)=>{"use strict";var we=Wx(),Mo={FST_ERR_NOT_FOUND:we("FST_ERR_NOT_FOUND","Not Found",404),FST_ERR_OPTIONS_NOT_OBJ:we("FST_ERR_OPTIONS_NOT_OBJ","Options must be an object",500,TypeError),FST_ERR_QSP_NOT_FN:we("FST_ERR_QSP_NOT_FN","querystringParser option should be a function, instead got '%s'",500,TypeError),FST_ERR_SCHEMA_CONTROLLER_BUCKET_OPT_NOT_FN:we("FST_ERR_SCHEMA_CONTROLLER_BUCKET_OPT_NOT_FN","schemaController.bucket option should be a function, instead got '%s'",500,TypeError),FST_ERR_SCHEMA_ERROR_FORMATTER_NOT_FN:we("FST_ERR_SCHEMA_ERROR_FORMATTER_NOT_FN","schemaErrorFormatter option should be a non async function. Instead got '%s'.",500,TypeError),FST_ERR_AJV_CUSTOM_OPTIONS_OPT_NOT_OBJ:we("FST_ERR_AJV_CUSTOM_OPTIONS_OPT_NOT_OBJ","ajv.customOptions option should be an object, instead got '%s'",500,TypeError),FST_ERR_AJV_CUSTOM_OPTIONS_OPT_NOT_ARR:we("FST_ERR_AJV_CUSTOM_OPTIONS_OPT_NOT_ARR","ajv.plugins option should be an array, instead got '%s'",500,TypeError),FST_ERR_VERSION_CONSTRAINT_NOT_STR:we("FST_ERR_VERSION_CONSTRAINT_NOT_STR","Version constraint should be a string.",500,TypeError),FST_ERR_VALIDATION:we("FST_ERR_VALIDATION","%s",400),FST_ERR_LISTEN_OPTIONS_INVALID:we("FST_ERR_LISTEN_OPTIONS_INVALID","Invalid listen options: '%s'",500,TypeError),FST_ERR_CTP_ALREADY_PRESENT:we("FST_ERR_CTP_ALREADY_PRESENT","Content type parser '%s' already present."),FST_ERR_CTP_INVALID_TYPE:we("FST_ERR_CTP_INVALID_TYPE","The content type should be a string or a RegExp",500,TypeError),FST_ERR_CTP_EMPTY_TYPE:we("FST_ERR_CTP_EMPTY_TYPE","The content type cannot be an empty string",500,TypeError),FST_ERR_CTP_INVALID_HANDLER:we("FST_ERR_CTP_INVALID_HANDLER","The content type handler should be a function",500,TypeError),FST_ERR_CTP_INVALID_PARSE_TYPE:we("FST_ERR_CTP_INVALID_PARSE_TYPE","The body parser can only parse your data as 'string' or 'buffer', you asked '%s' which is not supported.",500,TypeError),FST_ERR_CTP_BODY_TOO_LARGE:we("FST_ERR_CTP_BODY_TOO_LARGE","Request body is too large",413,RangeError),FST_ERR_CTP_INVALID_MEDIA_TYPE:we("FST_ERR_CTP_INVALID_MEDIA_TYPE","Unsupported Media Type: %s",415),FST_ERR_CTP_INVALID_CONTENT_LENGTH:we("FST_ERR_CTP_INVALID_CONTENT_LENGTH","Request body size did not match Content-Length",400,RangeError),FST_ERR_CTP_EMPTY_JSON_BODY:we("FST_ERR_CTP_EMPTY_JSON_BODY","Body cannot be empty when content-type is set to 'application/json'",400),FST_ERR_CTP_INSTANCE_ALREADY_STARTED:we("FST_ERR_CTP_INSTANCE_ALREADY_STARTED",'Cannot call "%s" when fastify instance is already started!',400),FST_ERR_DEC_ALREADY_PRESENT:we("FST_ERR_DEC_ALREADY_PRESENT","The decorator '%s' has already been added!"),FST_ERR_DEC_DEPENDENCY_INVALID_TYPE:we("FST_ERR_DEC_DEPENDENCY_INVALID_TYPE","The dependencies of decorator '%s' must be of type Array.",500,TypeError),FST_ERR_DEC_MISSING_DEPENDENCY:we("FST_ERR_DEC_MISSING_DEPENDENCY","The decorator is missing dependency '%s'."),FST_ERR_DEC_AFTER_START:we("FST_ERR_DEC_AFTER_START","The decorator '%s' has been added after start!"),FST_ERR_HOOK_INVALID_TYPE:we("FST_ERR_HOOK_INVALID_TYPE","The hook name must be a string",500,TypeError),FST_ERR_HOOK_INVALID_HANDLER:we("FST_ERR_HOOK_INVALID_HANDLER","%s hook should be a function, instead got %s",500,TypeError),FST_ERR_HOOK_INVALID_ASYNC_HANDLER:we("FST_ERR_HOOK_INVALID_ASYNC_HANDLER","Async function has too many arguments. Async hooks should not use the 'done' argument.",500,TypeError),FST_ERR_HOOK_NOT_SUPPORTED:we("FST_ERR_HOOK_NOT_SUPPORTED","%s hook not supported!",500,TypeError),FST_ERR_MISSING_MIDDLEWARE:we("FST_ERR_MISSING_MIDDLEWARE","You must register a plugin for handling middlewares, visit fastify.dev/docs/latest/Reference/Middleware/ for more info.",500),FST_ERR_HOOK_TIMEOUT:we("FST_ERR_HOOK_TIMEOUT","A callback for '%s' hook timed out. You may have forgotten to call 'done' function or to resolve a Promise"),FST_ERR_LOG_INVALID_DESTINATION:we("FST_ERR_LOG_INVALID_DESTINATION","Cannot specify both logger.stream and logger.file options"),FST_ERR_LOG_INVALID_LOGGER:we("FST_ERR_LOG_INVALID_LOGGER","Invalid logger object provided. The logger instance should have these functions(s): '%s'.",500,TypeError),FST_ERR_REP_INVALID_PAYLOAD_TYPE:we("FST_ERR_REP_INVALID_PAYLOAD_TYPE","Attempted to send payload of invalid type '%s'. Expected a string or Buffer.",500,TypeError),FST_ERR_REP_RESPONSE_BODY_CONSUMED:we("FST_ERR_REP_RESPONSE_BODY_CONSUMED","Response.body is already consumed."),FST_ERR_REP_ALREADY_SENT:we("FST_ERR_REP_ALREADY_SENT",'Reply was already sent, did you forget to "return reply" in "%s" (%s)?'),FST_ERR_REP_SENT_VALUE:we("FST_ERR_REP_SENT_VALUE","The only possible value for reply.sent is true.",500,TypeError),FST_ERR_SEND_INSIDE_ONERR:we("FST_ERR_SEND_INSIDE_ONERR","You cannot use `send` inside the `onError` hook"),FST_ERR_SEND_UNDEFINED_ERR:we("FST_ERR_SEND_UNDEFINED_ERR","Undefined error has occurred"),FST_ERR_BAD_STATUS_CODE:we("FST_ERR_BAD_STATUS_CODE","Called reply with an invalid status code: %s"),FST_ERR_BAD_TRAILER_NAME:we("FST_ERR_BAD_TRAILER_NAME","Called reply.trailer with an invalid header name: %s"),FST_ERR_BAD_TRAILER_VALUE:we("FST_ERR_BAD_TRAILER_VALUE","Called reply.trailer('%s', fn) with an invalid type: %s. Expected a function."),FST_ERR_FAILED_ERROR_SERIALIZATION:we("FST_ERR_FAILED_ERROR_SERIALIZATION","Failed to serialize an error. Error: %s. Original error: %s"),FST_ERR_MISSING_SERIALIZATION_FN:we("FST_ERR_MISSING_SERIALIZATION_FN",'Missing serialization function. Key "%s"'),FST_ERR_MISSING_CONTENTTYPE_SERIALIZATION_FN:we("FST_ERR_MISSING_CONTENTTYPE_SERIALIZATION_FN",'Missing serialization function. Key "%s:%s"'),FST_ERR_REQ_INVALID_VALIDATION_INVOCATION:we("FST_ERR_REQ_INVALID_VALIDATION_INVOCATION",'Invalid validation invocation. Missing validation function for HTTP part "%s" nor schema provided.'),FST_ERR_SCH_MISSING_ID:we("FST_ERR_SCH_MISSING_ID","Missing schema $id property"),FST_ERR_SCH_ALREADY_PRESENT:we("FST_ERR_SCH_ALREADY_PRESENT","Schema with id '%s' already declared!"),FST_ERR_SCH_CONTENT_MISSING_SCHEMA:we("FST_ERR_SCH_CONTENT_MISSING_SCHEMA","Schema is missing for the content type '%s'"),FST_ERR_SCH_DUPLICATE:we("FST_ERR_SCH_DUPLICATE","Schema with '%s' already present!"),FST_ERR_SCH_VALIDATION_BUILD:we("FST_ERR_SCH_VALIDATION_BUILD","Failed building the validation schema for %s: %s, due to error %s"),FST_ERR_SCH_SERIALIZATION_BUILD:we("FST_ERR_SCH_SERIALIZATION_BUILD","Failed building the serialization schema for %s: %s, due to error %s"),FST_ERR_SCH_RESPONSE_SCHEMA_NOT_NESTED_2XX:we("FST_ERR_SCH_RESPONSE_SCHEMA_NOT_NESTED_2XX",'response schemas should be nested under a valid status code, e.g { 2xx: { type: "object" } }'),FST_ERR_HTTP2_INVALID_VERSION:we("FST_ERR_HTTP2_INVALID_VERSION","HTTP2 is available only from node >= 8.8.1"),FST_ERR_INIT_OPTS_INVALID:we("FST_ERR_INIT_OPTS_INVALID","Invalid initialization options: '%s'"),FST_ERR_FORCE_CLOSE_CONNECTIONS_IDLE_NOT_AVAILABLE:we("FST_ERR_FORCE_CLOSE_CONNECTIONS_IDLE_NOT_AVAILABLE","Cannot set forceCloseConnections to 'idle' as your HTTP server does not support closeIdleConnections method"),FST_ERR_DUPLICATED_ROUTE:we("FST_ERR_DUPLICATED_ROUTE","Method '%s' already declared for route '%s'"),FST_ERR_BAD_URL:we("FST_ERR_BAD_URL","'%s' is not a valid url component",400,URIError),FST_ERR_ASYNC_CONSTRAINT:we("FST_ERR_ASYNC_CONSTRAINT","Unexpected error from async constraint",500),FST_ERR_DEFAULT_ROUTE_INVALID_TYPE:we("FST_ERR_DEFAULT_ROUTE_INVALID_TYPE","The defaultRoute type should be a function",500,TypeError),FST_ERR_INVALID_URL:we("FST_ERR_INVALID_URL","URL must be a string. Received '%s'",400,TypeError),FST_ERR_ROUTE_OPTIONS_NOT_OBJ:we("FST_ERR_ROUTE_OPTIONS_NOT_OBJ",'Options for "%s:%s" route must be an object',500,TypeError),FST_ERR_ROUTE_DUPLICATED_HANDLER:we("FST_ERR_ROUTE_DUPLICATED_HANDLER",'Duplicate handler for "%s:%s" route is not allowed!',500),FST_ERR_ROUTE_HANDLER_NOT_FN:we("FST_ERR_ROUTE_HANDLER_NOT_FN","Error Handler for %s:%s route, if defined, must be a function",500,TypeError),FST_ERR_ROUTE_MISSING_HANDLER:we("FST_ERR_ROUTE_MISSING_HANDLER",'Missing handler function for "%s:%s" route.',500),FST_ERR_ROUTE_METHOD_INVALID:we("FST_ERR_ROUTE_METHOD_INVALID","Provided method is invalid!",500,TypeError),FST_ERR_ROUTE_METHOD_NOT_SUPPORTED:we("FST_ERR_ROUTE_METHOD_NOT_SUPPORTED","%s method is not supported.",500),FST_ERR_ROUTE_BODY_VALIDATION_SCHEMA_NOT_SUPPORTED:we("FST_ERR_ROUTE_BODY_VALIDATION_SCHEMA_NOT_SUPPORTED","Body validation schema for %s:%s route is not supported!",500),FST_ERR_ROUTE_BODY_LIMIT_OPTION_NOT_INT:we("FST_ERR_ROUTE_BODY_LIMIT_OPTION_NOT_INT","'bodyLimit' option must be an integer > 0. Got '%s'",500,TypeError),FST_ERR_ROUTE_REWRITE_NOT_STR:we("FST_ERR_ROUTE_REWRITE_NOT_STR",'Rewrite url for "%s" needs to be of type "string" but received "%s"',500,TypeError),FST_ERR_REOPENED_CLOSE_SERVER:we("FST_ERR_REOPENED_CLOSE_SERVER","Fastify has already been closed and cannot be reopened"),FST_ERR_REOPENED_SERVER:we("FST_ERR_REOPENED_SERVER","Fastify is already listening"),FST_ERR_INSTANCE_ALREADY_LISTENING:we("FST_ERR_INSTANCE_ALREADY_LISTENING","Fastify instance is already listening. %s"),FST_ERR_PLUGIN_VERSION_MISMATCH:we("FST_ERR_PLUGIN_VERSION_MISMATCH","fastify-plugin: %s - expected '%s' fastify version, '%s' is installed"),FST_ERR_PLUGIN_NOT_PRESENT_IN_INSTANCE:we("FST_ERR_PLUGIN_NOT_PRESENT_IN_INSTANCE","The decorator '%s'%s is not present in %s"),FST_ERR_PLUGIN_CALLBACK_NOT_FN:we("FST_ERR_PLUGIN_CALLBACK_NOT_FN","fastify-plugin: %s",500,TypeError),FST_ERR_PLUGIN_NOT_VALID:we("FST_ERR_PLUGIN_NOT_VALID","fastify-plugin: %s"),FST_ERR_ROOT_PLG_BOOTED:we("FST_ERR_ROOT_PLG_BOOTED","fastify-plugin: %s"),FST_ERR_PARENT_PLUGIN_BOOTED:we("FST_ERR_PARENT_PLUGIN_BOOTED","fastify-plugin: %s"),FST_ERR_PLUGIN_TIMEOUT:we("FST_ERR_PLUGIN_TIMEOUT","fastify-plugin: %s")};function eJ(t,e){return e.cause=t,e}Bc.exports=Mo;Bc.exports.appendStackTrace=eJ;Bc.exports.AVVIO_ERRORS_MAP={AVV_ERR_CALLBACK_NOT_FN:Mo.FST_ERR_PLUGIN_CALLBACK_NOT_FN,AVV_ERR_PLUGIN_NOT_VALID:Mo.FST_ERR_PLUGIN_NOT_VALID,AVV_ERR_ROOT_PLG_BOOTED:Mo.FST_ERR_ROOT_PLG_BOOTED,AVV_ERR_PARENT_PLG_LOADED:Mo.FST_ERR_PARENT_PLUGIN_BOOTED,AVV_ERR_READY_TIMEOUT:Mo.FST_ERR_PLUGIN_TIMEOUT}});var $3=C((tbe,rA)=>{"use strict";var tJ=["onRoute","onRegister","onReady","onListen","preClose","onClose"],Qx=["onTimeout","onRequest","preParsing","preValidation","preSerialization","preHandler","onSend","onResponse","onError","onRequestAbort"],nJ=Qx.concat(tJ),{FST_ERR_HOOK_INVALID_TYPE:rJ,FST_ERR_HOOK_INVALID_HANDLER:lJ,FST_ERR_SEND_UNDEFINED_ERR:Hc,FST_ERR_HOOK_TIMEOUT:iJ,FST_ERR_HOOK_NOT_SUPPORTED:sJ,AVVIO_ERRORS_MAP:Kx,appendStackTrace:Yx}=al(),{kChildren:J4,kHooks:Zx,kRequestPayloadStream:Jx}=Mr();function Q4(){this.onRequest=[],this.preParsing=[],this.preValidation=[],this.preSerialization=[],this.preHandler=[],this.onResponse=[],this.onSend=[],this.onError=[],this.onRoute=[],this.onRegister=[],this.onReady=[],this.onListen=[],this.onTimeout=[],this.onRequestAbort=[],this.preClose=[]}Q4.prototype=Object.create(null);Q4.prototype.validate=function(t,e){if(typeof t!="string")throw new rJ;if(Array.isArray(this[t])===!1)throw new sJ(t);if(typeof e!="function")throw new lJ(t,Object.prototype.toString.call(e))};Q4.prototype.add=function(t,e){this.validate(t,e),this[t].push(e)};function aJ(t){let e=new Q4;return e.onRequest=t.onRequest.slice(),e.preParsing=t.preParsing.slice(),e.preValidation=t.preValidation.slice(),e.preSerialization=t.preSerialization.slice(),e.preHandler=t.preHandler.slice(),e.onSend=t.onSend.slice(),e.onResponse=t.onResponse.slice(),e.onError=t.onError.slice(),e.onRoute=t.onRoute.slice(),e.onRegister=t.onRegister.slice(),e.onTimeout=t.onTimeout.slice(),e.onRequestAbort=t.onRequestAbort.slice(),e.onReady=[],e.onListen=[],e.preClose=[],e}function eA(t,e,n,r){let l=n[Zx][t],i=0,s=0;o();function a(f){if(f){f.code==="AVV_ERR_READY_TIMEOUT"?f=Yx(f,new iJ(t)):f=Kx[f.code]!=null?Yx(f,new Kx[f.code](f.message)):f,r(f);return}r()}function o(f){if(f){a(f);return}if(i===l.length&&s===n[J4].length){i===0&&s===0?a():e(function(m,h){a(m),h(m)});return}if(i===l.length&&s{"use strict";var yJ=require("node:http"),vJ=require("node:https"),_J=require("node:dns"),{FSTDEP011:lA}=l3(),{kState:ol,kOptions:EJ,kServerBindings:bJ}=Mr(),{onListenHookRunner:qc}=$3(),{FST_ERR_HTTP2_INVALID_VERSION:TJ,FST_ERR_REOPENED_CLOSE_SERVER:aA,FST_ERR_REOPENED_SERVER:oA,FST_ERR_LISTEN_OPTIONS_INVALID:SJ}=al();jp.exports.createServer=xJ;jp.exports.compileValidateHTTPVersion=wJ;function uA(t){return`Server listening at ${t}`}function xJ(t,e){let n=fA(t,e);function r(l,...i){let s=i.slice(-1).pop(),a=Object.prototype.toString.call(arguments[0]);if(arguments.length===0)l=$p([]);else if(arguments.length>0&&a!=="[object Object]"&&a!=="[object Function]")lA(),l=$p(Array.from(arguments)),s=l.cb;else if(i.length>1){lA();let c=l.path?[l.path]:[l.port??0,l.host??"localhost"];Object.assign(l,$p([...c,...i]))}else l.cb=s;if(l.signal){if(typeof l.signal.on!="function"&&typeof l.signal.addEventListener!="function")throw new SJ("Invalid options.signal");if(l.signal.aborted)this.close();else{let c=()=>{this.close()};l.signal.addEventListener("abort",c,{once:!0})}}let o;if(l.path==null?o=l.host??"localhost":o=l.host,Object.prototype.hasOwnProperty.call(l,"host")===!1&&(l.host=o),o==="localhost"?l.cb=(c,f)=>{if(c){s(c,f);return}iA.call(this,n,e,t,l,()=>{this[ol].listening=!0,s(null,f),qc(this)})}:l.cb=(c,f)=>{if(c){s(c,f);return}this[ol].listening=!0,s(null,f),qc(this)},s===void 0)return AJ.call(this,n,l).then(f=>new Promise((p,m)=>{o==="localhost"?iA.call(this,n,e,t,l,()=>{this[ol].listening=!0,p(f),qc(this)}):(p(f),qc(this))}));this.ready(cA.call(this,n,l))}return{server:n,listen:r}}function iA(t,e,n,r,l){this[ol].listening=!1,_J.lookup(r.host,{all:!0},(i,s)=>{if(i){l();return}let a=t.listening&&n.serverFactory,o=0,c=0;if(!a){let p=t.address();for(let m of s)if(m.address!==p.address){o++;let h=Object.assign({},r,{host:m.address,port:p.port,cb:S=>{c++,S||this[bJ].push(g),c===o&&l()}}),g=fA(n,e),_=()=>{g.close(()=>{}),n.forceCloseConnections==="idle"?g.closeIdleConnections():typeof g.closeAllConnections=="function"&&n.forceCloseConnections&&g.closeAllConnections()};g.on("upgrade",t.emit.bind(t,"upgrade")),t.on("unref",_),t.on("close",_),t.on("error",_),this[ol].listening=!1,cA.call(this,g,h)()}}if(o===0){l();return}let f=t.unref;t.unref=function(){f.call(t),t.emit("unref")}})}function cA(t,e){let n=r=>{if(t.removeListener("error",n),r)this[ol].listening=!1,e.cb(r,null);else{let l=pA.call(this,t,e.listenTextResolver||uA);e.cb(null,l)}};return r=>{if(r!=null)return e.cb(r);if(this[ol].listening&&this[ol].closing)return e.cb(new aA,null);if(this[ol].listening)return e.cb(new oA,null);t.once("error",n),this[ol].closing||(t.listen(e,n),this[ol].listening=!0)}}function AJ(t,e){return this[ol].listening&&this[ol].closing?Promise.reject(new aA):this[ol].listening?Promise.reject(new oA):this.ready().then(()=>{let n,r=new Promise((i,s)=>{n=a=>{this[ol].listening=!1,s(a)},t.once("error",n)}),l=new Promise((i,s)=>{t.listen(e,()=>{t.removeListener("error",n),i(pA.call(this,t,e.listenTextResolver||uA))}),this[ol].listening=!0});return Promise.race([r,l])})}function wJ(t){let e=!1,n=new Map;return t.serverFactory&&(e=!0),t.http2?(n.set("2.0",!0),t.https&&t.https.allowHTTP1===!0&&(n.set("1.1",!0),n.set("1.0",!0))):(n.set("1.1",!0),n.set("1.0",!0)),function(l){return e||n.has(l)}}function fA(t,e){let n=null,r=t.https===!0?{}:t.https;return t.serverFactory?n=t.serverFactory(e,t):t.http2?(typeof r=="object"?n=sA().createSecureServer(r,e):n=sA().createServer(e),n.on("session",OJ(t.http2SessionTimeout))):(r?n=vJ.createServer(r,e):n=yJ.createServer(t.http,e),n.keepAliveTimeout=t.keepAliveTimeout,n.requestTimeout=t.requestTimeout,t.maxRequestsPerSocket>0&&(n.maxRequestsPerSocket=t.maxRequestsPerSocket)),t.serverFactory||n.setTimeout(t.connectionTimeout),n}function $p(t){if(t.length===0)return{port:0,host:"localhost"};let n={cb:typeof t[t.length-1]=="function"?t.pop():void 0},r=t[0],l=t.length,i=t[l-1];return typeof r=="string"&&isNaN(r)?(n.path=r,n.backlog=l>1?i:void 0):(n.port=l>=1&&Number.isInteger(r)?r:RJ(r),n.host=l>=2&&t[1]?t[1]:"localhost",n.backlog=l>=3?t[2]:void 0),n}function RJ(t){let e=Number(t);return e>=0&&!Number.isNaN(e)&&Number.isInteger(e)?e:0}function pA(t,e){let n=t.address(),r=typeof n=="string";r||(n.address.indexOf(":")===-1?n=n.address+":"+n.port:n="["+n.address+"]:"+n.port),n=(r?"":"http"+(this[EJ].https?"s":"")+"://")+n;let l=e(n);return this.log.info(l),n}function sA(){try{return require("node:http2")}catch{throw new TJ}}function OJ(t){return function(e){e.setTimeout(t,NJ)}}function NJ(){this.close()}});var qp=C((rbe,mA)=>{"use strict";var{kSchemaHeaders:Gc,kSchemaParams:Up,kSchemaQuerystring:Bp,kSchemaBody:Hp,kSchemaResponse:hA}=Mr(),IJ=/^[1-5]{1}[0-9]{2}$|^[1-5]xx$|^default$/,{FST_ERR_SCH_RESPONSE_SCHEMA_NOT_NESTED_2XX:CJ}=al(),{FSTWRN001:Vc}=l3();function kJ(t,e){if(!t.schema||!t.schema.response)return;let{method:n,url:r}=t.config||{};t[hA]=Object.keys(t.schema.response).reduce(function(l,i){let s=t.schema.response[i];if(i=i.toLowerCase(),!IJ.exec(i))throw new CJ;if(s.content){let a={};for(let o of Object.keys(s.content)){let c=s.content[o].schema;a[o]=e({schema:c,url:r,method:n,httpStatus:i,contentType:o})}l[i]=a}else l[i]=e({schema:s,url:r,method:n,httpStatus:i});return l},{})}function PJ(t,e,n){let{schema:r}=t;if(!r)return;let{method:l,url:i}=t.config||{},s=r.headers;if(s&&(n||Object.getPrototypeOf(s)!==Object.prototype))t[Gc]=e({schema:s,method:l,url:i,httpPart:"headers"});else if(s){let a={};Object.keys(s).forEach(o=>{a[o]=s[o]}),a.required instanceof Array&&(a.required=a.required.map(o=>o.toLowerCase())),s.properties&&(a.properties={},Object.keys(s.properties).forEach(o=>{a.properties[o.toLowerCase()]=s.properties[o]})),t[Gc]=e({schema:a,method:l,url:i,httpPart:"headers"})}else Object.prototype.hasOwnProperty.call(r,"headers")&&Vc("headers",l,i);r.body?t[Hp]=e({schema:r.body,method:l,url:i,httpPart:"body"}):Object.prototype.hasOwnProperty.call(r,"body")&&Vc("body",l,i),r.querystring?t[Bp]=e({schema:r.querystring,method:l,url:i,httpPart:"querystring"}):Object.prototype.hasOwnProperty.call(r,"querystring")&&Vc("querystring",l,i),r.params?t[Up]=e({schema:r.params,method:l,url:i,httpPart:"params"}):Object.prototype.hasOwnProperty.call(r,"params")&&Vc("params",l,i)}function zc(t,e,n){let r=e[n]===void 0,l=t&&t(r?null:e[n]);if(l?.then)return l.then(s=>i(s)).catch(s=>s);return i(l);function i(s){return s===!1?t.errors:s&&s.error?s.error:(s&&s.value&&(e[n]=s.value),!1)}}function Xc(t,e,n){let r=n===void 0;if(r||!n.skipParams){let i=zc(t[Up],e,"params");if(i)return typeof i.then!="function"?j3(i,"params",t.schemaErrorFormatter):DJ(i,t,e)}if(r||!n.skipBody){let i=zc(t[Hp],e,"body");if(i)return typeof i.then!="function"?j3(i,"body",t.schemaErrorFormatter):LJ(i,t,e)}if(r||!n.skipQuery){let i=zc(t[Bp],e,"query");if(i)return typeof i.then!="function"?j3(i,"querystring",t.schemaErrorFormatter):FJ(i,t,e)}let l=zc(t[Gc],e,"headers");return l?typeof l.then!="function"?j3(l,"headers",t.schemaErrorFormatter):MJ(l,t,e):!1}function DJ(t,e,n){return t.then(r=>r?j3(r,"params",e.schemaErrorFormatter):Xc(e,n,{skipParams:!0}))}function LJ(t,e,n){return t.then(r=>r?j3(r,"body",e.schemaErrorFormatter):Xc(e,n,{skipParams:!0,skipBody:!0}))}function FJ(t,e,n){return t.then(r=>r?j3(r,"querystring",e.schemaErrorFormatter):Xc(e,n,{skipParams:!0,skipBody:!0,skipQuery:!0}))}function MJ(t,e,n){return t.then(r=>r?j3(r,"headers",e.schemaErrorFormatter):!1)}function j3(t,e,n){if(t instanceof Error)return t.statusCode=t.statusCode||400,t.code=t.code||"FST_ERR_VALIDATION",t.validationContext=t.validationContext||e,t;let r=n(t,e);return r.statusCode=r.statusCode||400,r.code=r.code||"FST_ERR_VALIDATION",r.validation=t,r.validationContext=e,r}mA.exports={symbols:{bodySchema:Hp,querystringSchema:Bp,responseSchema:hA,paramsSchema:Up,headersSchema:Gc},compileSchemasForValidation:PJ,compileSchemasForSerialization:kJ,validate:Xc}});var Vp=C((lbe,yA)=>{"use strict";var{kReplyIsError:gA,kReplyHijacked:$J}=Mr();function jJ(t,e){t.then(function(n){if(e[$J]!==!0&&(n!==void 0||e.sent===!1&&e.raw.headersSent===!1&&e.request.raw.aborted===!1))try{e.send(n)}catch(r){e[gA]=!0,e.send(r)}},function(n){if(e.sent===!0){e.log.error({err:n},"Promise errored, but reply.sent = true was set");return}e[gA]=!0;try{e.send(n)}catch(r){e.send(r)}})}yA.exports=jJ});var Wp=C((ibe,Xp)=>{"use strict";var{validate:UJ}=qp(),{preValidationHookRunner:BJ,preHandlerHookRunner:HJ}=$3(),qJ=Vp(),{kReplyIsError:Wc,kRouteContext:B3}=Mr();function VJ(t,e,n){if(n.sent===!0)return;if(t!=null){n[Wc]=!0,n.send(t);return}let r=e.raw.method,l=e.headers,i=e[B3];if(r==="GET"||r==="HEAD"){U3(e,n);return}let s=l["content-type"];if(r==="POST"||r==="PUT"||r==="PATCH"||r==="TRACE"||r==="SEARCH"){s===void 0?l["transfer-encoding"]===void 0&&(l["content-length"]==="0"||l["content-length"]===void 0)?U3(e,n):i.contentTypeParser.run("",U3,e,n):i.contentTypeParser.run(s,U3,e,n);return}if(r==="OPTIONS"||r==="DELETE"){s!==void 0&&(l["transfer-encoding"]!==void 0||l["content-length"]!==void 0)?i.contentTypeParser.run(s,U3,e,n):U3(e,n);return}U3(e,n)}function U3(t,e){try{t[B3].preValidation!==null?BJ(t[B3].preValidation,t,e,zp):zp(null,t,e)}catch(n){zp(n,t,e)}}function zp(t,e,n){if(n.sent===!0)return;if(t!=null){n[Wc]=!0,n.send(t);return}let r=UJ(n[B3],e);if(r&&typeof r.then=="function"||!1){let i=vA.bind(null,e,n);r.then(i,i)}else vA(e,n,r)}function vA(t,e,n){if(n){if(e[B3].attachValidation===!1){e.send(n);return}e.request.validationError=n}t[B3].preHandler!==null?HJ(t[B3].preHandler,t,e,Gp):Gp(null,t,e)}function Gp(t,e,n){if(n.sent)return;if(t!=null){n[Wc]=!0,n.send(t);return}let r;try{r=e[B3].handler(e,n)}catch(l){n[Wc]=!0,n.send(l);return}r!==void 0&&(r!==null&&typeof r.then=="function"?qJ(r,n):n.send(r))}Xp.exports=VJ;Xp.exports[Symbol.for("internals")]={handler:U3,preHandlerCallback:Gp}});var EA=C((sbe,_A)=>{"use strict";function jo(){}var zJ={fatal:jo,error:jo,warn:jo,info:jo,debug:jo,trace:jo};Object.defineProperty(_A,"exports",{get(){return Object.create(zJ)}})});var Yp=C((abe,SA)=>{"use strict";var e1=t=>t&&typeof t.message=="string",Kp=t=>{if(!t)return;let e=t.cause;if(typeof e=="function"){let n=t.cause();return e1(n)?n:void 0}else return e1(e)?e:void 0},bA=(t,e)=>{if(!e1(t))return"";let n=t.stack||"";if(e.has(t))return n+`
+causes have become circular...`;let r=Kp(t);return r?(e.add(t),n+`
+caused by: `+bA(r,e)):n},GJ=t=>bA(t,new Set),TA=(t,e,n)=>{if(!e1(t))return"";let r=n?"":t.message||"";if(e.has(t))return r+": ...";let l=Kp(t);if(l){e.add(t);let i=typeof t.cause=="function";return r+(i?"":": ")+TA(l,e,i)}else return r},XJ=t=>TA(t,new Set);SA.exports={isErrorLike:e1,getErrorCause:Kp,stackWithCauses:GJ,messageWithCauses:XJ}});var Jp=C((obe,AA)=>{"use strict";var WJ=Symbol("circular-ref-tag"),Kc=Symbol("pino-raw-err-ref"),xA=Object.create({},{type:{enumerable:!0,writable:!0,value:void 0},message:{enumerable:!0,writable:!0,value:void 0},stack:{enumerable:!0,writable:!0,value:void 0},aggregateErrors:{enumerable:!0,writable:!0,value:void 0},raw:{enumerable:!1,get:function(){return this[Kc]},set:function(t){this[Kc]=t}}});Object.defineProperty(xA,Kc,{writable:!0,value:{}});AA.exports={pinoErrProto:xA,pinoErrorSymbols:{seen:WJ,rawSymbol:Kc}}});var OA=C((ube,RA)=>{"use strict";RA.exports=Zp;var{messageWithCauses:KJ,stackWithCauses:YJ,isErrorLike:wA}=Yp(),{pinoErrProto:JJ,pinoErrorSymbols:QJ}=Jp(),{seen:Qp}=QJ,{toString:ZJ}=Object.prototype;function Zp(t){if(!wA(t))return t;t[Qp]=void 0;let e=Object.create(JJ);e.type=ZJ.call(t.constructor)==="[object Function]"?t.constructor.name:t.name,e.message=KJ(t),e.stack=YJ(t),Array.isArray(t.errors)&&(e.aggregateErrors=t.errors.map(n=>Zp(n)));for(let n in t)if(e[n]===void 0){let r=t[n];wA(r)?n!=="cause"&&!Object.prototype.hasOwnProperty.call(r,Qp)&&(e[n]=Zp(r)):e[n]=r}return delete t[Qp],e.raw=t,e}});var IA=C((cbe,NA)=>{"use strict";NA.exports=Jc;var{isErrorLike:ed}=Yp(),{pinoErrProto:eQ,pinoErrorSymbols:tQ}=Jp(),{seen:Yc}=tQ,{toString:nQ}=Object.prototype;function Jc(t){if(!ed(t))return t;t[Yc]=void 0;let e=Object.create(eQ);e.type=nQ.call(t.constructor)==="[object Function]"?t.constructor.name:t.name,e.message=t.message,e.stack=t.stack,Array.isArray(t.errors)&&(e.aggregateErrors=t.errors.map(n=>Jc(n))),ed(t.cause)&&!Object.prototype.hasOwnProperty.call(t.cause,Yc)&&(e.cause=Jc(t.cause));for(let n in t)if(e[n]===void 0){let r=t[n];ed(r)?Object.prototype.hasOwnProperty.call(r,Yc)||(e[n]=Jc(r)):e[n]=r}return delete t[Yc],e.raw=t,e}});var DA=C((fbe,PA)=>{"use strict";PA.exports={mapHttpRequest:rQ,reqSerializer:kA};var td=Symbol("pino-raw-req-ref"),CA=Object.create({},{id:{enumerable:!0,writable:!0,value:""},method:{enumerable:!0,writable:!0,value:""},url:{enumerable:!0,writable:!0,value:""},query:{enumerable:!0,writable:!0,value:""},params:{enumerable:!0,writable:!0,value:""},headers:{enumerable:!0,writable:!0,value:{}},remoteAddress:{enumerable:!0,writable:!0,value:""},remotePort:{enumerable:!0,writable:!0,value:""},raw:{enumerable:!1,get:function(){return this[td]},set:function(t){this[td]=t}}});Object.defineProperty(CA,td,{writable:!0,value:{}});function kA(t){let e=t.info||t.socket,n=Object.create(CA);if(n.id=typeof t.id=="function"?t.id():t.id||(t.info?t.info.id:void 0),n.method=t.method,t.originalUrl)n.url=t.originalUrl;else{let r=t.path;n.url=typeof r=="string"?r:t.url?t.url.path||t.url:void 0}return t.query&&(n.query=t.query),t.params&&(n.params=t.params),n.headers=t.headers,n.remoteAddress=e&&e.remoteAddress,n.remotePort=e&&e.remotePort,n.raw=t.raw||t,n}function rQ(t){return{req:kA(t)}}});var $A=C((pbe,MA)=>{"use strict";MA.exports={mapHttpResponse:lQ,resSerializer:FA};var nd=Symbol("pino-raw-res-ref"),LA=Object.create({},{statusCode:{enumerable:!0,writable:!0,value:0},headers:{enumerable:!0,writable:!0,value:""},raw:{enumerable:!1,get:function(){return this[nd]},set:function(t){this[nd]=t}}});Object.defineProperty(LA,nd,{writable:!0,value:{}});function FA(t){let e=Object.create(LA);return e.statusCode=t.headersSent?t.statusCode:null,e.headers=t.getHeaders?t.getHeaders():t._headers,e.raw=t,e}function lQ(t){return{res:FA(t)}}});var ld=C((dbe,jA)=>{"use strict";var rd=OA(),iQ=IA(),Qc=DA(),Zc=$A();jA.exports={err:rd,errWithCause:iQ,mapHttpRequest:Qc.mapHttpRequest,mapHttpResponse:Zc.mapHttpResponse,req:Qc.reqSerializer,res:Zc.resSerializer,wrapErrorSerializer:function(e){return e===rd?e:function(r){return e(rd(r))}},wrapRequestSerializer:function(e){return e===Qc.reqSerializer?e:function(r){return e(Qc.reqSerializer(r))}},wrapResponseSerializer:function(e){return e===Zc.resSerializer?e:function(r){return e(Zc.resSerializer(r))}}}});var id=C((hbe,UA)=>{"use strict";function sQ(t,e){return e}UA.exports=function(){let e=Error.prepareStackTrace;Error.prepareStackTrace=sQ;let n=new Error().stack;if(Error.prepareStackTrace=e,!Array.isArray(n))return;let r=n.slice(2),l=[];for(let i of r)i&&l.push(i.getFileName());return l}});var HA=C((mbe,BA)=>{"use strict";BA.exports=aQ;function aQ(t={}){let{ERR_PATHS_MUST_BE_STRINGS:e=()=>"fast-redact - Paths must be (non-empty) strings",ERR_INVALID_PATH:n=r=>`fast-redact \u2013 Invalid path (${r})`}=t;return function({paths:l}){l.forEach(i=>{if(typeof i!="string")throw Error(e());try{if(/〇/.test(i))throw Error();let s=(i[0]==="["?"":".")+i.replace(/^\*/,"\u3007").replace(/\.\*/g,".\u3007").replace(/\[\*\]/g,"[\u3007]");if(/\n|\r|;/.test(s)||/\/\*/.test(s))throw Error();Function(`
'use strict'
const o = new Proxy({}, { get: () => o, set: () => { throw Error() } });
const \u3007 = null;
o${s}
- if ([o${s}].length !== 1) throw Error()`)()}catch{throw Error(n(i))}})}}});var $c=C((X_e,dA)=>{"use strict";dA.exports=/[^.[\]]+|\[((?:.)*?)\]/g});var mA=C((W_e,hA)=>{"use strict";var dJ=$c();hA.exports=hJ;function hJ({paths:t}){let e=[];var n=0;let r=t.reduce(function(l,i,s){var a=i.match(dJ).map(c=>c.replace(/'|"|`/g,""));let o=i[0]==="[";a=a.map(c=>c[0]==="["?c.substr(1,c.length-2):c);let f=a.indexOf("*");if(f>-1){let c=a.slice(0,f),p=c.join("."),m=a.slice(f+1,a.length),h=m.length>0;n++,e.push({before:c,beforeStr:p,after:m,nested:h})}else l[i]={path:a,val:void 0,precensored:!1,circle:"",escPath:JSON.stringify(i),leadingBracket:o};return l},{});return{wildcards:e,wcLen:n,secret:r}}});var yA=C((K_e,gA)=>{"use strict";var mJ=$c();gA.exports=gJ;function gJ({secret:t,serialize:e,wcLen:n,strict:r,isCensorFct:l,censorFctTakesPath:i},s){let a=Function("o",`
+ if ([o${s}].length !== 1) throw Error()`)()}catch{throw Error(n(i))}})}}});var e6=C((gbe,qA)=>{"use strict";qA.exports=/[^.[\]]+|\[((?:.)*?)\]/g});var zA=C((ybe,VA)=>{"use strict";var oQ=e6();VA.exports=uQ;function uQ({paths:t}){let e=[];var n=0;let r=t.reduce(function(l,i,s){var a=i.match(oQ).map(f=>f.replace(/'|"|`/g,""));let o=i[0]==="[";a=a.map(f=>f[0]==="["?f.substr(1,f.length-2):f);let c=a.indexOf("*");if(c>-1){let f=a.slice(0,c),p=f.join("."),m=a.slice(c+1,a.length),h=m.length>0;n++,e.push({before:f,beforeStr:p,after:m,nested:h})}else l[i]={path:a,val:void 0,precensored:!1,circle:"",escPath:JSON.stringify(i),leadingBracket:o};return l},{});return{wildcards:e,wcLen:n,secret:r}}});var XA=C((vbe,GA)=>{"use strict";var cQ=e6();GA.exports=fQ;function fQ({secret:t,serialize:e,wcLen:n,strict:r,isCensorFct:l,censorFctTakesPath:i},s){let a=Function("o",`
if (typeof o !== 'object' || o == null) {
- ${EJ(r,e)}
+ ${mQ(r,e)}
}
const { censor, secret } = this
- ${yJ(t,l,i)}
+ ${pQ(t,l,i)}
this.compileRestore()
- ${vJ(n>0,l,i)}
- ${_J(e)}
- `).bind(s);return e===!1&&(a.restore=o=>s.restore(o)),a}function yJ(t,e,n){return Object.keys(t).map(r=>{let{escPath:l,leadingBracket:i,path:s}=t[r],a=i?1:0,o=i?"":".",f=[];for(var c;(c=mJ.exec(r))!==null;){let[,g]=c,{index:_,input:S}=c;_>a&&f.push(S.substring(0,_-(g?0:1)))}var p=f.map(g=>`o${o}${g}`).join(" && ");p.length===0?p+=`o${o}${r} != null`:p+=` && o${o}${r} != null`;let m=`
+ ${dQ(n>0,l,i)}
+ ${hQ(e)}
+ `).bind(s);return e===!1&&(a.restore=o=>s.restore(o)),a}function pQ(t,e,n){return Object.keys(t).map(r=>{let{escPath:l,leadingBracket:i,path:s}=t[r],a=i?1:0,o=i?"":".",c=[];for(var f;(f=cQ.exec(r))!==null;){let[,g]=f,{index:_,input:S}=f;_>a&&c.push(S.substring(0,_-(g?0:1)))}var p=c.map(g=>`o${o}${g}`).join(" && ");p.length===0?p+=`o${o}${r} != null`:p+=` && o${o}${r} != null`;let m=`
switch (true) {
- ${f.reverse().map(g=>`
+ ${c.reverse().map(g=>`
case o${o}${g} === censor:
secret[${l}].circle = ${JSON.stringify(g)}
break
@@ -43,7 +43,7 @@ caused by: `+zx(r,e)):n},JY=t=>zx(t,new Set),Gx=(t,e,n)=>{if(!V4(t))return"";let
}
}
`}).join(`
-`)}function vJ(t,e,n){return t===!0?`
+`)}function dQ(t,e,n){return t===!0?`
{
const { wildcards, wcLen, groupRedact, nestedRedact } = this
for (var i = 0; i < wcLen; i++) {
@@ -54,16 +54,16 @@ caused by: `+zx(r,e)):n},JY=t=>zx(t,new Set),Gx=(t,e,n)=>{if(!V4(t))return"";let
} else secret[beforeStr] = groupRedact(o, before, censor, ${e}, ${n})
}
}
- `:""}function _J(t){return t===!1?"return o":`
+ `:""}function hQ(t){return t===!1?"return o":`
var s = this.serialize(o)
this.restore(o)
return s
- `}function EJ(t,e){return t===!0?"throw Error('fast-redact: primitives cannot be redacted')":e===!1?"return o":"return this.serialize(o)"}});var jp=C((Y_e,EA)=>{"use strict";EA.exports={groupRedact:TJ,groupRestore:bJ,nestedRedact:xJ,nestedRestore:SJ};function bJ({keys:t,values:e,target:n}){if(n==null)return;let r=t.length;for(var l=0;l0;s--)i=i[r[s]];i[r[0]]=l}}function xJ(t,e,n,r,l,i,s){let a=vA(e,n);if(a==null)return;let o=Object.keys(a),f=o.length;for(var c=0;c{"use strict";var{groupRestore:RJ,nestedRestore:OJ}=jp();bA.exports=NJ;function NJ({secret:t,wcLen:e}){return function(){if(this.restore)return;let r=Object.keys(t),l=IJ(t,r),i=e>0,s=i?{secret:t,groupRestore:RJ,nestedRestore:OJ}:{secret:t};this.restore=Function("o",CJ(l,r,i)).bind(s)}}function IJ(t,e){return e.map(n=>{let{circle:r,escPath:l,leadingBracket:i}=t[n],a=r?`o.${r} = secret[${l}].val`:`o${i?"":"."}${n} = secret[${l}].val`,o=`secret[${l}].val = undefined`;return`
+ `}function mQ(t,e){return t===!0?"throw Error('fast-redact: primitives cannot be redacted')":e===!1?"return o":"return this.serialize(o)"}});var ad=C((_be,YA)=>{"use strict";YA.exports={groupRedact:yQ,groupRestore:gQ,nestedRedact:_Q,nestedRestore:vQ};function gQ({keys:t,values:e,target:n}){if(n==null)return;let r=t.length;for(var l=0;l0;s--)i=i[r[s]];i[r[0]]=l}}function _Q(t,e,n,r,l,i,s){let a=WA(e,n);if(a==null)return;let o=Object.keys(a),c=o.length;for(var f=0;f{"use strict";var{groupRestore:TQ,nestedRestore:SQ}=ad();JA.exports=xQ;function xQ({secret:t,wcLen:e}){return function(){if(this.restore)return;let r=Object.keys(t),l=AQ(t,r),i=e>0,s=i?{secret:t,groupRestore:TQ,nestedRestore:SQ}:{secret:t};this.restore=Function("o",wQ(l,r,i)).bind(s)}}function AQ(t,e){return e.map(n=>{let{circle:r,escPath:l,leadingBracket:i}=t[n],a=r?`o.${r} = secret[${l}].val`:`o${i?"":"."}${n} = secret[${l}].val`,o=`secret[${l}].val = undefined`;return`
if (secret[${l}].val !== undefined) {
try { ${a} } catch (e) {}
${o}
}
- `}).join("")}function CJ(t,e,n){return`
+ `}).join("")}function wQ(t,e,n){return`
const secret = this.secret
${n===!0?`
const keys = Object.keys(secret)
@@ -78,34 +78,34 @@ caused by: `+zx(r,e)):n},JY=t=>zx(t,new Set),Gx=(t,e,n)=>{if(!V4(t))return"";let
`:""}
${t}
return o
- `}});var xA=C((Q_e,SA)=>{"use strict";SA.exports=kJ;function kJ(t){let{secret:e,censor:n,compileRestore:r,serialize:l,groupRedact:i,nestedRedact:s,wildcards:a,wcLen:o}=t,f=[{secret:e,censor:n,compileRestore:r}];return l!==!1&&f.push({serialize:l}),o>0&&f.push({groupRedact:i,nestedRedact:s,wildcards:a,wcLen:o}),Object.assign(...f)}});var RA=C((Z_e,wA)=>{"use strict";var AA=pA(),PJ=mA(),DJ=yA(),LJ=TA(),{groupRedact:FJ,nestedRedact:MJ}=jp(),$J=xA(),jJ=$c(),UJ=AA(),Up=t=>t;Up.restore=Up;var BJ="[REDACTED]";Bp.rx=jJ;Bp.validator=AA;wA.exports=Bp;function Bp(t={}){let e=Array.from(new Set(t.paths||[])),n="serialize"in t&&(t.serialize===!1||typeof t.serialize=="function")?t.serialize:JSON.stringify,r=t.remove;if(r===!0&&n!==JSON.stringify)throw Error("fast-redact \u2013 remove option may only be set when serializer is JSON.stringify");let l=r===!0?void 0:"censor"in t?t.censor:BJ,i=typeof l=="function",s=i&&l.length>1;if(e.length===0)return n||Up;UJ({paths:e,serialize:n,censor:l});let{wildcards:a,wcLen:o,secret:f}=PJ({paths:e,censor:l}),c=LJ({secret:f,wcLen:o}),p="strict"in t?t.strict:!0;return DJ({secret:f,wcLen:o,serialize:n,strict:p,isCensorFct:i,censorFctTakesPath:s},$J({secret:f,censor:l,compileRestore:c,serialize:n,groupRedact:FJ,nestedRedact:MJ,wildcards:a,wcLen:o}))}});var Po=C((eEe,OA)=>{"use strict";var HJ=Symbol("pino.setLevel"),qJ=Symbol("pino.getLevel"),VJ=Symbol("pino.levelVal"),zJ=Symbol("pino.levelComp"),GJ=Symbol("pino.useLevelLabels"),XJ=Symbol("pino.useOnlyCustomLevels"),WJ=Symbol("pino.mixin"),KJ=Symbol("pino.lsCache"),YJ=Symbol("pino.chindings"),JJ=Symbol("pino.asJson"),QJ=Symbol("pino.write"),ZJ=Symbol("pino.redactFmt"),eQ=Symbol("pino.time"),tQ=Symbol("pino.timeSliceIndex"),nQ=Symbol("pino.stream"),rQ=Symbol("pino.stringify"),lQ=Symbol("pino.stringifySafe"),iQ=Symbol("pino.stringifiers"),sQ=Symbol("pino.end"),aQ=Symbol("pino.formatOpts"),oQ=Symbol("pino.messageKey"),uQ=Symbol("pino.errorKey"),cQ=Symbol("pino.nestedKey"),fQ=Symbol("pino.nestedKeyStr"),pQ=Symbol("pino.mixinMergeStrategy"),dQ=Symbol("pino.msgPrefix"),hQ=Symbol("pino.wildcardFirst"),mQ=Symbol.for("pino.serializers"),gQ=Symbol.for("pino.formatters"),yQ=Symbol.for("pino.hooks"),vQ=Symbol.for("pino.metadata");OA.exports={setLevelSym:HJ,getLevelSym:qJ,levelValSym:VJ,levelCompSym:zJ,useLevelLabelsSym:GJ,mixinSym:WJ,lsCacheSym:KJ,chindingsSym:YJ,asJsonSym:JJ,writeSym:QJ,serializersSym:mQ,redactFmtSym:ZJ,timeSym:eQ,timeSliceIndexSym:tQ,streamSym:nQ,stringifySym:rQ,stringifySafeSym:lQ,stringifiersSym:iQ,endSym:sQ,formatOptsSym:aQ,messageKeySym:oQ,errorKeySym:uQ,nestedKeySym:cQ,wildcardFirstSym:hQ,needsMetadataGsym:vQ,useOnlyCustomLevelsSym:XJ,formattersSym:gQ,hooksSym:yQ,nestedKeyStrSym:fQ,mixinMergeStrategySym:pQ,msgPrefixSym:dQ}});var Vp=C((tEe,kA)=>{"use strict";var qp=RA(),{redactFmtSym:_Q,wildcardFirstSym:jc}=Po(),{rx:Hp,validator:EQ}=qp,NA=EQ({ERR_PATHS_MUST_BE_STRINGS:()=>"pino \u2013 redacted paths must be strings",ERR_INVALID_PATH:t=>`pino \u2013 redact paths array contains an invalid path (${t})`}),IA="[Redacted]",CA=!1;function bQ(t,e){let{paths:n,censor:r}=TQ(t),l=n.reduce((a,o)=>{Hp.lastIndex=0;let f=Hp.exec(o),c=Hp.exec(o),p=f[1]!==void 0?f[1].replace(/^(?:"|'|`)(.*)(?:"|'|`)$/,"$1"):f[0];if(p==="*"&&(p=jc),c===null)return a[p]=null,a;if(a[p]===null)return a;let{index:m}=c,h=`${o.substr(m,o.length-1)}`;return a[p]=a[p]||[],p!==jc&&a[p].length===0&&a[p].push(...a[jc]||[]),p===jc&&Object.keys(a).forEach(function(g){a[g]&&a[g].push(h)}),a[p].push(h),a},{}),i={[_Q]:qp({paths:n,censor:r,serialize:e,strict:CA})},s=(...a)=>e(typeof r=="function"?r(...a):r);return[...Object.keys(l),...Object.getOwnPropertySymbols(l)].reduce((a,o)=>{if(l[o]===null)a[o]=f=>s(f,[o]);else{let f=typeof r=="function"?(c,p)=>r(c,[o,...p]):r;a[o]=qp({paths:l[o],censor:f,serialize:e,strict:CA})}return a},i)}function TQ(t){if(Array.isArray(t))return t={paths:t,censor:IA},NA(t),t;let{paths:e,censor:n=IA,remove:r}=t;if(Array.isArray(e)===!1)throw Error("pino \u2013 redact must contain an array of strings");return r===!0&&(n=void 0),NA({paths:e,censor:n}),{paths:e,censor:n}}kA.exports=bQ});var DA=C((nEe,PA)=>{"use strict";var SQ=()=>"",xQ=()=>`,"time":${Date.now()}`,AQ=()=>`,"time":${Math.round(Date.now()/1e3)}`,wQ=()=>`,"time":"${new Date(Date.now()).toISOString()}"`;PA.exports={nullTime:SQ,epochTime:xQ,unixTime:AQ,isoTime:wQ}});var FA=C((rEe,LA)=>{"use strict";function RQ(t){try{return JSON.stringify(t)}catch{return'"[Circular]"'}}LA.exports=OQ;function OQ(t,e,n){var r=n&&n.stringify||RQ,l=1;if(typeof t=="object"&&t!==null){var i=e.length+l;if(i===1)return t;var s=new Array(i);s[0]=r(t);for(var a=1;a-1?p:0,t.charCodeAt(h+1)){case 100:case 102:if(c>=o||e[c]==null)break;p=o||e[c]==null)break;p=o||e[c]===void 0)break;p",p=h+2,h++;break}f+=r(e[c]),p=h+2,h++;break;case 115:if(c>=o)break;p{"use strict";if(typeof SharedArrayBuffer<"u"&&typeof Atomics<"u"){let e=function(n){if((n>0&&n<1/0)===!1)throw typeof n!="number"&&typeof n!="bigint"?TypeError("sleep: ms must be a number"):RangeError("sleep: ms must be a number that is greater than 0 but less than Infinity");Atomics.wait(t,0,0,Number(n))},t=new Int32Array(new SharedArrayBuffer(4));zp.exports=e}else{let t=function(e){if((e>0&&e<1/0)===!1)throw typeof e!="number"&&typeof e!="bigint"?TypeError("sleep: ms must be a number"):RangeError("sleep: ms must be a number that is greater than 0 but less than Infinity");let r=Date.now()+Number(e);for(;r>Date.now(););};zp.exports=t}});var VA=C((iEe,qA)=>{"use strict";var lr=require("fs"),NQ=require("events"),IQ=require("util").inherits,MA=require("path"),Wp=Gp(),Uc=100,Bc=Buffer.allocUnsafe(0),CQ=16*1024,$A="buffer",jA="utf8";function UA(t,e){e._opening=!0,e._writing=!0,e._asyncDrainScheduled=!1;function n(i,s){if(i){e._reopening=!1,e._writing=!1,e._opening=!1,e.sync?process.nextTick(()=>{e.listenerCount("error")>0&&e.emit("error",i)}):e.emit("error",i);return}e.fd=s,e.file=t,e._reopening=!1,e._opening=!1,e._writing=!1,e.sync?process.nextTick(()=>e.emit("ready")):e.emit("ready"),!(e._reopening||e.destroyed)&&(!e._writing&&e._len>e.minLength||e._flushPending)&&e._actualWrite()}let r=e.append?"a":"w",l=e.mode;if(e.sync)try{e.mkdir&&lr.mkdirSync(MA.dirname(t),{recursive:!0});let i=lr.openSync(t,r,l);n(null,i)}catch(i){throw n(i),i}else e.mkdir?lr.mkdir(MA.dirname(t),{recursive:!0},i=>{if(i)return n(i);lr.open(t,r,l,n)}):lr.open(t,r,l,n)}function F2(t){if(!(this instanceof F2))return new F2(t);let{fd:e,dest:n,minLength:r,maxLength:l,maxWrite:i,sync:s,append:a=!0,mkdir:o,retryEAGAIN:f,fsync:c,contentMode:p,mode:m}=t||{};e=e||n,this._len=0,this.fd=-1,this._bufs=[],this._lens=[],this._writing=!1,this._ending=!1,this._reopening=!1,this._asyncDrainScheduled=!1,this._flushPending=!1,this._hwm=Math.max(r||0,16387),this.file=null,this.destroyed=!1,this.minLength=r||0,this.maxLength=l||0,this.maxWrite=i||CQ,this.sync=s||!1,this.writable=!0,this._fsync=c||!1,this.append=a||!1,this.mode=m,this.retryEAGAIN=f||(()=>!0),this.mkdir=o||!1;let h,g;if(p===$A)this._writingBuf=Bc,this.write=DQ,this.flush=FQ,this.flushSync=$Q,this._actualWrite=UQ,h=()=>lr.writeSync(this.fd,this._writingBuf),g=()=>lr.write(this.fd,this._writingBuf,this.release);else if(p===void 0||p===jA)this._writingBuf="",this.write=PQ,this.flush=LQ,this.flushSync=MQ,this._actualWrite=jQ,h=()=>lr.writeSync(this.fd,this._writingBuf,"utf8"),g=()=>lr.write(this.fd,this._writingBuf,"utf8",this.release);else throw new Error(`SonicBoom supports "${jA}" and "${$A}", but passed ${p}`);if(typeof e=="number")this.fd=e,process.nextTick(()=>this.emit("ready"));else if(typeof e=="string")UA(e,this);else throw new Error("SonicBoom supports only file descriptors and files");if(this.minLength>=this.maxWrite)throw new Error(`minLength should be smaller than maxWrite (${this.maxWrite})`);this.release=(_,S)=>{if(_){if((_.code==="EAGAIN"||_.code==="EBUSY")&&this.retryEAGAIN(_,this._writingBuf.length,this._len-this._writingBuf.length))if(this.sync)try{Wp(Uc),this.release(void 0,0)}catch(v){this.release(v)}else setTimeout(g,Uc);else this._writing=!1,this.emit("error",_);return}this.emit("write",S);let T=Xp(this._writingBuf,this._len,S);if(this._len=T.len,this._writingBuf=T.writingBuf,this._writingBuf.length){if(!this.sync){g();return}try{do{let v=h(),b=Xp(this._writingBuf,this._len,v);this._len=b.len,this._writingBuf=b.writingBuf}while(this._writingBuf.length)}catch(v){this.release(v);return}}this._fsync&&lr.fsyncSync(this.fd);let x=this._len;this._reopening?(this._writing=!1,this._reopening=!1,this.reopen()):x>this.minLength?this._actualWrite():this._ending?x>0?this._actualWrite():(this._writing=!1,Hc(this)):(this._writing=!1,this.sync?this._asyncDrainScheduled||(this._asyncDrainScheduled=!0,process.nextTick(kQ,this)):this.emit("drain"))},this.on("newListener",function(_){_==="drain"&&(this._asyncDrainScheduled=!1)})}function Xp(t,e,n){return typeof t=="string"&&Buffer.byteLength(t)!==n&&(n=Buffer.from(t).subarray(0,n).toString().length),e=Math.max(e-n,0),t=t.slice(n),{writingBuf:t,len:e}}function kQ(t){t.listenerCount("drain")>0&&(t._asyncDrainScheduled=!1,t.emit("drain"))}IQ(F2,NQ);function BA(t,e){return t.length===0?Bc:t.length===1?t[0]:Buffer.concat(t,e)}function PQ(t){if(this.destroyed)throw new Error("SonicBoom destroyed");let e=this._len+t.length,n=this._bufs;return this.maxLength&&e>this.maxLength?(this.emit("drop",t),this._lenthis.maxWrite?n.push(""+t):n[n.length-1]+=t,this._len=e,!this._writing&&this._len>=this.minLength&&this._actualWrite(),this._lenthis.maxLength?(this.emit("drop",t),this._lenthis.maxWrite?(n.push([t]),r.push(t.length)):(n[n.length-1].push(t),r[r.length-1]+=t.length),this._len=e,!this._writing&&this._len>=this.minLength&&this._actualWrite(),this._len{this._fsync?(this._flushPending=!1,t()):lr.fsync(this.fd,r=>{this._flushPending=!1,t(r)}),this.off("error",n)},n=r=>{this._flushPending=!1,t(r),this.off("drain",e)};this.once("drain",e),this.once("error",n)}function LQ(t){if(t!=null&&typeof t!="function")throw new Error("flush cb must be a function");if(this.destroyed){let e=new Error("SonicBoom destroyed");if(t){t(e);return}throw e}if(this.minLength<=0){t?.();return}t&&HA.call(this,t),!this._writing&&(this._bufs.length===0&&this._bufs.push(""),this._actualWrite())}function FQ(t){if(t!=null&&typeof t!="function")throw new Error("flush cb must be a function");if(this.destroyed){let e=new Error("SonicBoom destroyed");if(t){t(e);return}throw e}if(this.minLength<=0){t?.();return}t&&HA.call(this,t),!this._writing&&(this._bufs.length===0&&(this._bufs.push([]),this._lens.push(0)),this._actualWrite())}F2.prototype.reopen=function(t){if(this.destroyed)throw new Error("SonicBoom destroyed");if(this._opening){this.once("ready",()=>{this.reopen(t)});return}if(this._ending)return;if(!this.file)throw new Error("Unable to reopen a file descriptor, you must pass a file to SonicBoom");if(this._reopening=!0,this._writing)return;let e=this.fd;this.once("ready",()=>{e!==this.fd&&lr.close(e,n=>{if(n)return this.emit("error",n)})}),UA(t||this.file,this)};F2.prototype.end=function(){if(this.destroyed)throw new Error("SonicBoom destroyed");if(this._opening){this.once("ready",()=>{this.end()});return}this._ending||(this._ending=!0,!this._writing&&(this._len>0&&this.fd>=0?this._actualWrite():Hc(this)))};function MQ(){if(this.destroyed)throw new Error("SonicBoom destroyed");if(this.fd<0)throw new Error("sonic boom is not ready yet");!this._writing&&this._writingBuf.length>0&&(this._bufs.unshift(this._writingBuf),this._writingBuf="");let t="";for(;this._bufs.length||t;){t.length<=0&&(t=this._bufs[0]);try{let e=lr.writeSync(this.fd,t,"utf8"),n=Xp(t,this._len,e);t=n.writingBuf,this._len=n.len,t.length<=0&&this._bufs.shift()}catch(e){if((e.code==="EAGAIN"||e.code==="EBUSY")&&!this.retryEAGAIN(e,t.length,this._len-t.length))throw e;Wp(Uc)}}try{lr.fsyncSync(this.fd)}catch{}}function $Q(){if(this.destroyed)throw new Error("SonicBoom destroyed");if(this.fd<0)throw new Error("sonic boom is not ready yet");!this._writing&&this._writingBuf.length>0&&(this._bufs.unshift([this._writingBuf]),this._writingBuf=Bc);let t=Bc;for(;this._bufs.length||t.length;){t.length<=0&&(t=BA(this._bufs[0],this._lens[0]));try{let e=lr.writeSync(this.fd,t);t=t.subarray(e),this._len=Math.max(this._len-e,0),t.length<=0&&(this._bufs.shift(),this._lens.shift())}catch(e){if((e.code==="EAGAIN"||e.code==="EBUSY")&&!this.retryEAGAIN(e,t.length,this._len-t.length))throw e;Wp(Uc)}}}F2.prototype.destroy=function(){this.destroyed||Hc(this)};function jQ(){let t=this.release;if(this._writing=!0,this._writingBuf=this._writingBuf||this._bufs.shift()||"",this.sync)try{let e=lr.writeSync(this.fd,this._writingBuf,"utf8");t(null,e)}catch(e){t(e)}else lr.write(this.fd,this._writingBuf,"utf8",t)}function UQ(){let t=this.release;if(this._writing=!0,this._writingBuf=this._writingBuf.length?this._writingBuf:BA(this._bufs.shift(),this._lens.shift()),this.sync)try{let e=lr.writeSync(this.fd,this._writingBuf);t(null,e)}catch(e){t(e)}else lr.write(this.fd,this._writingBuf,t)}function Hc(t){if(t.fd===-1){t.once("ready",Hc.bind(null,t));return}t.destroyed=!0,t._bufs=[],t._lens=[],lr.fsync(t.fd,e);function e(){t.fd!==1&&t.fd!==2?lr.close(t.fd,n):n()}function n(r){if(r){t.emit("error",r);return}t._ending&&!t._writing&&t.emit("finish"),t.emit("close")}}F2.SonicBoom=F2;F2.default=F2;qA.exports=F2});var Kp=C((sEe,KA)=>{"use strict";var M2={exit:[],beforeExit:[]},zA={exit:qQ,beforeExit:VQ},Do;function BQ(){Do===void 0&&(Do=new FinalizationRegistry(zQ))}function HQ(t){M2[t].length>0||process.on(t,zA[t])}function GA(t){M2[t].length>0||(process.removeListener(t,zA[t]),M2.exit.length===0&&M2.beforeExit.length===0&&(Do=void 0))}function qQ(){XA("exit")}function VQ(){XA("beforeExit")}function XA(t){for(let e of M2[t]){let n=e.deref(),r=e.fn;n!==void 0&&r(n,t)}M2[t]=[]}function zQ(t){for(let e of["exit","beforeExit"]){let n=M2[e].indexOf(t);M2[e].splice(n,n+1),GA(e)}}function WA(t,e,n){if(e===void 0)throw new Error("the object can't be undefined");HQ(t);let r=new WeakRef(e);r.fn=n,BQ(),Do.register(e,r),M2[t].push(r)}function GQ(t,e){WA("exit",t,e)}function XQ(t,e){WA("beforeExit",t,e)}function WQ(t){if(Do!==void 0){Do.unregister(t);for(let e of["exit","beforeExit"])M2[e]=M2[e].filter(n=>{let r=n.deref();return r&&r!==t}),GA(e)}}KA.exports={register:GQ,registerBeforeExit:XQ,unregister:WQ}});var YA=C((aEe,KQ)=>{KQ.exports={name:"thread-stream",version:"2.4.1",description:"A streaming way to send data to a Node.js Worker Thread",main:"index.js",types:"index.d.ts",dependencies:{"real-require":"^0.2.0"},devDependencies:{"@types/node":"^20.1.0","@types/tap":"^15.0.0",desm:"^1.3.0",fastbench:"^1.0.1",husky:"^8.0.1","pino-elasticsearch":"^6.0.0","sonic-boom":"^3.0.0",standard:"^17.0.0",tap:"^16.2.0","ts-node":"^10.8.0",typescript:"^4.7.2","why-is-node-running":"^2.2.2"},scripts:{test:"standard && npm run transpile && tap test/*.test.*js && tap --ts test/*.test.*ts","test:ci":"standard && npm run transpile && npm run test:ci:js && npm run test:ci:ts","test:ci:js":'tap --no-check-coverage --coverage-report=lcovonly "test/**/*.test.*js"',"test:ci:ts":'tap --ts --no-check-coverage --coverage-report=lcovonly "test/**/*.test.*ts"',"test:yarn":'npm run transpile && tap "test/**/*.test.js" --no-check-coverage',transpile:"sh ./test/ts/transpile.sh",prepare:"husky install"},standard:{ignore:["test/ts/**/*"]},repository:{type:"git",url:"git+https://github.com/mcollina/thread-stream.git"},keywords:["worker","thread","threads","stream"],author:"Matteo Collina ",license:"MIT",bugs:{url:"https://github.com/mcollina/thread-stream/issues"},homepage:"https://github.com/mcollina/thread-stream#readme"}});var QA=C((oEe,JA)=>{"use strict";function YQ(t,e,n,r,l){let i=Date.now()+r,s=Atomics.load(t,e);if(s===n){l(null,"ok");return}let a=s,o=f=>{Date.now()>i?l(null,"timed-out"):setTimeout(()=>{a=s,s=Atomics.load(t,e),s===a?o(f>=1e3?1e3:f*2):s===n?l(null,"ok"):l(null,"not-equal")},f)};o(1)}function JQ(t,e,n,r,l){let i=Date.now()+r,s=Atomics.load(t,e);if(s!==n){l(null,"ok");return}let a=o=>{Date.now()>i?l(null,"timed-out"):setTimeout(()=>{s=Atomics.load(t,e),s!==n?l(null,"ok"):a(o>=1e3?1e3:o*2)},o)};a(1)}JA.exports={wait:YQ,waitDiff:JQ}});var ew=C((uEe,ZA)=>{"use strict";ZA.exports={WRITE_INDEX:4,READ_INDEX:8}});var iw=C((cEe,lw)=>{"use strict";var{version:QQ}=YA(),{EventEmitter:ZQ}=require("events"),{Worker:eZ}=require("worker_threads"),{join:tZ}=require("path"),{pathToFileURL:nZ}=require("url"),{wait:rZ}=QA(),{WRITE_INDEX:Pl,READ_INDEX:ci}=ew(),lZ=require("buffer"),iZ=require("assert"),pe=Symbol("kImpl"),sZ=lZ.constants.MAX_STRING_LENGTH,G4=class{constructor(e){this._value=e}deref(){return this._value}},Vc=class{register(){}unregister(){}},aZ=process.env.NODE_V8_COVERAGE?Vc:global.FinalizationRegistry||Vc,oZ=process.env.NODE_V8_COVERAGE?G4:global.WeakRef||G4,tw=new aZ(t=>{t.exited||t.terminate()});function uZ(t,e){let{filename:n,workerData:r}=e,i=("__bundlerPathsOverrides"in globalThis?globalThis.__bundlerPathsOverrides:{})["thread-stream-worker"]||tZ(__dirname,"lib","worker.js"),s=new eZ(i,{...e.workerOpts,trackUnmanagedFds:!1,workerData:{filename:n.indexOf("file://")===0?n:nZ(n).href,dataBuf:t[pe].dataBuf,stateBuf:t[pe].stateBuf,workerData:{$context:{threadStreamVersion:QQ},...r}}});return s.stream=new G4(t),s.on("message",cZ),s.on("exit",rw),tw.register(t,s),s}function nw(t){iZ(!t[pe].sync),t[pe].needDrain&&(t[pe].needDrain=!1,t.emit("drain"))}function qc(t){let e=Atomics.load(t[pe].state,Pl),n=t[pe].data.length-e;if(n>0){if(t[pe].buf.length===0){t[pe].flushing=!1,t[pe].ending?ed(t):t[pe].needDrain&&process.nextTick(nw,t);return}let r=t[pe].buf.slice(0,n),l=Buffer.byteLength(r);l<=n?(t[pe].buf=t[pe].buf.slice(n),zc(t,r,qc.bind(null,t))):t.flush(()=>{if(!t.destroyed){for(Atomics.store(t[pe].state,ci,0),Atomics.store(t[pe].state,Pl,0);l>t[pe].data.length;)n=n/2,r=t[pe].buf.slice(0,n),l=Buffer.byteLength(r);t[pe].buf=t[pe].buf.slice(n),zc(t,r,qc.bind(null,t))}})}else if(n===0){if(e===0&&t[pe].buf.length===0)return;t.flush(()=>{Atomics.store(t[pe].state,ci,0),Atomics.store(t[pe].state,Pl,0),qc(t)})}else fi(t,new Error("overwritten"))}function cZ(t){let e=this.stream.deref();if(e===void 0){this.exited=!0,this.terminate();return}switch(t.code){case"READY":this.stream=new oZ(e),e.flush(()=>{e[pe].ready=!0,e.emit("ready")});break;case"ERROR":fi(e,t.err);break;case"EVENT":Array.isArray(t.args)?e.emit(t.name,...t.args):e.emit(t.name,t.args);break;case"WARNING":process.emitWarning(t.err);break;default:fi(e,new Error("this should not happen: "+t.code))}}function rw(t){let e=this.stream.deref();e!==void 0&&(tw.unregister(e),e.worker.exited=!0,e.worker.off("exit",rw),fi(e,t!==0?new Error("the worker thread exited"):null))}var Jp=class extends ZQ{constructor(e={}){if(super(),e.bufferSize<4)throw new Error("bufferSize must at least fit a 4-byte utf-8 char");this[pe]={},this[pe].stateBuf=new SharedArrayBuffer(128),this[pe].state=new Int32Array(this[pe].stateBuf),this[pe].dataBuf=new SharedArrayBuffer(e.bufferSize||4*1024*1024),this[pe].data=Buffer.from(this[pe].dataBuf),this[pe].sync=e.sync||!1,this[pe].ending=!1,this[pe].ended=!1,this[pe].needDrain=!1,this[pe].destroyed=!1,this[pe].flushing=!1,this[pe].ready=!1,this[pe].finished=!1,this[pe].errored=null,this[pe].closed=!1,this[pe].buf="",this.worker=uZ(this,e)}write(e){if(this[pe].destroyed)return Qp(this,new Error("the worker has exited")),!1;if(this[pe].ending)return Qp(this,new Error("the worker is ending")),!1;if(this[pe].flushing&&this[pe].buf.length+e.length>=sZ)try{Yp(this),this[pe].flushing=!0}catch(n){return fi(this,n),!1}if(this[pe].buf+=e,this[pe].sync)try{return Yp(this),!0}catch(n){return fi(this,n),!1}return this[pe].flushing||(this[pe].flushing=!0,setImmediate(qc,this)),this[pe].needDrain=this[pe].data.length-this[pe].buf.length-Atomics.load(this[pe].state,Pl)<=0,!this[pe].needDrain}end(){this[pe].destroyed||(this[pe].ending=!0,ed(this))}flush(e){if(this[pe].destroyed){typeof e=="function"&&process.nextTick(e,new Error("the worker has exited"));return}let n=Atomics.load(this[pe].state,Pl);rZ(this[pe].state,ci,n,1/0,(r,l)=>{if(r){fi(this,r),process.nextTick(e,r);return}if(l==="not-equal"){this.flush(e);return}process.nextTick(e)})}flushSync(){this[pe].destroyed||(Yp(this),Zp(this))}unref(){this.worker.unref()}ref(){this.worker.ref()}get ready(){return this[pe].ready}get destroyed(){return this[pe].destroyed}get closed(){return this[pe].closed}get writable(){return!this[pe].destroyed&&!this[pe].ending}get writableEnded(){return this[pe].ending}get writableFinished(){return this[pe].finished}get writableNeedDrain(){return this[pe].needDrain}get writableObjectMode(){return!1}get writableErrored(){return this[pe].errored}};function Qp(t,e){setImmediate(()=>{t.emit("error",e)})}function fi(t,e){t[pe].destroyed||(t[pe].destroyed=!0,e&&(t[pe].errored=e,Qp(t,e)),t.worker.exited?setImmediate(()=>{t[pe].closed=!0,t.emit("close")}):t.worker.terminate().catch(()=>{}).then(()=>{t[pe].closed=!0,t.emit("close")}))}function zc(t,e,n){let r=Atomics.load(t[pe].state,Pl),l=Buffer.byteLength(e);return t[pe].data.write(e,r),Atomics.store(t[pe].state,Pl,r+l),Atomics.notify(t[pe].state,Pl),n(),!0}function ed(t){if(!(t[pe].ended||!t[pe].ending||t[pe].flushing)){t[pe].ended=!0;try{t.flushSync();let e=Atomics.load(t[pe].state,ci);Atomics.store(t[pe].state,Pl,-1),Atomics.notify(t[pe].state,Pl);let n=0;for(;e!==-1;){if(Atomics.wait(t[pe].state,ci,e,1e3),e=Atomics.load(t[pe].state,ci),e===-2){fi(t,new Error("end() failed"));return}if(++n===10){fi(t,new Error("end() took too long (10s)"));return}}process.nextTick(()=>{t[pe].finished=!0,t.emit("finish")})}catch(e){fi(t,e)}}}function Yp(t){let e=()=>{t[pe].ending?ed(t):t[pe].needDrain&&process.nextTick(nw,t)};for(t[pe].flushing=!1;t[pe].buf.length!==0;){let n=Atomics.load(t[pe].state,Pl),r=t[pe].data.length-n;if(r===0){Zp(t),Atomics.store(t[pe].state,ci,0),Atomics.store(t[pe].state,Pl,0);continue}else if(r<0)throw new Error("overwritten");let l=t[pe].buf.slice(0,r),i=Buffer.byteLength(l);if(i<=r)t[pe].buf=t[pe].buf.slice(r),zc(t,l,e);else{for(Zp(t),Atomics.store(t[pe].state,ci,0),Atomics.store(t[pe].state,Pl,0);i>t[pe].buf.length;)r=r/2,l=t[pe].buf.slice(0,r),i=Buffer.byteLength(l);t[pe].buf=t[pe].buf.slice(r),zc(t,l,e)}}}function Zp(t){if(t[pe].flushing)throw new Error("unable to flush while flushing");let e=Atomics.load(t[pe].state,Pl),n=0;for(;;){let r=Atomics.load(t[pe].state,ci);if(r===-2)throw Error("_flushSync failed");if(r!==e)Atomics.wait(t[pe].state,ci,r,1e3);else break;if(++n===10)throw new Error("_flushSync took too long (10s)")}}lw.exports=Jp});var rd=C((fEe,sw)=>{"use strict";var{createRequire:fZ}=require("module"),pZ=Mp(),{join:td,isAbsolute:dZ,sep:hZ}=require("path"),mZ=Gp(),nd=Kp(),gZ=iw();function yZ(t){nd.register(t,_Z),nd.registerBeforeExit(t,EZ),t.on("close",function(){nd.unregister(t)})}function vZ(t,e,n){let r=new gZ({filename:t,workerData:e,workerOpts:n});r.on("ready",l),r.on("close",function(){process.removeListener("exit",i)}),process.on("exit",i);function l(){process.removeListener("exit",i),r.unref(),n.autoEnd!==!1&&yZ(r)}function i(){r.closed||(r.flushSync(),mZ(100),r.end())}return r}function _Z(t){t.ref(),t.flushSync(),t.end(),t.once("close",function(){t.unref()})}function EZ(t){t.flushSync()}function bZ(t){let{pipeline:e,targets:n,levels:r,dedupe:l,options:i={},worker:s={},caller:a=pZ()}=t,o=typeof a=="string"?[a]:a,f="__bundlerPathsOverrides"in globalThis?globalThis.__bundlerPathsOverrides:{},c=t.target;if(c&&n)throw new Error("only one of target or targets can be specified");return n?(c=f["pino-worker"]||td(__dirname,"worker.js"),i.targets=n.map(m=>({...m,target:p(m.target)}))):e&&(c=f["pino-pipeline-worker"]||td(__dirname,"worker-pipeline.js"),i.targets=e.map(m=>({...m,target:p(m.target)}))),r&&(i.levels=r),l&&(i.dedupe=l),vZ(p(c),i,s);function p(m){if(m=f[m]||m,dZ(m)||m.indexOf("file://")===0)return m;if(m==="pino/file")return td(__dirname,"..","file.js");let h;for(let g of o)try{let _=g==="node:repl"?process.cwd()+hZ:g;h=fZ(_).resolve(m);break}catch{continue}if(!h)throw new Error(`unable to determine transport target for "${m}"`);return h}}sw.exports=bZ});var Wc=C((pEe,yw)=>{"use strict";var aw=FA(),{mapHttpRequest:TZ,mapHttpResponse:SZ}=Fp(),id=VA(),ow=Kp(),{lsCacheSym:xZ,chindingsSym:fw,writeSym:uw,serializersSym:pw,formatOptsSym:cw,endSym:AZ,stringifiersSym:dw,stringifySym:hw,stringifySafeSym:sd,wildcardFirstSym:mw,nestedKeySym:wZ,formattersSym:gw,messageKeySym:RZ,errorKeySym:OZ,nestedKeyStrSym:NZ,msgPrefixSym:Gc}=Po(),{isMainThread:IZ}=require("worker_threads"),CZ=rd();function Lo(){}function kZ(t,e){if(!e)return n;return function(...l){e.call(this,l,n,t)};function n(r,...l){if(typeof r=="object"){let i=r;r!==null&&(r.method&&r.headers&&r.socket?r=TZ(r):typeof r.setHeader=="function"&&(r=SZ(r)));let s;i===null&&l.length===0?s=[null]:(i=l.shift(),s=l),typeof this[Gc]=="string"&&i!==void 0&&i!==null&&(i=this[Gc]+i),this[uw](r,aw(i,s,this[cw]),t)}else{let i=r===void 0?l.shift():r;typeof this[Gc]=="string"&&i!==void 0&&i!==null&&(i=this[Gc]+i),this[uw](null,aw(i,l,this[cw]),t)}}}function ld(t){let e="",n=0,r=!1,l=255,i=t.length;if(i>100)return JSON.stringify(t);for(var s=0;s=32;s++)l=t.charCodeAt(s),(l===34||l===92)&&(e+=t.slice(n,s)+"\\",n=s,r=!0);return r?e+=t.slice(n):e=t,l<32?JSON.stringify(t):'"'+e+'"'}function PZ(t,e,n,r){let l=this[hw],i=this[sd],s=this[dw],a=this[AZ],o=this[fw],f=this[pw],c=this[gw],p=this[RZ],m=this[OZ],h=this[xZ][n]+r;h=h+o;let g;c.log&&(t=c.log(t));let _=s[mw],S="";for(let x in t)if(g=t[x],Object.prototype.hasOwnProperty.call(t,x)&&g!==void 0){f[x]?g=f[x](g):x===m&&f.err&&(g=f.err(g));let v=s[x]||_;switch(typeof g){case"undefined":case"function":continue;case"number":Number.isFinite(g)===!1&&(g=null);case"boolean":v&&(g=v(g));break;case"string":g=(v||ld)(g);break;default:g=(v||l)(g,i)}if(g===void 0)continue;let b=ld(x);S+=","+b+":"+g}let T="";if(e!==void 0){g=f[p]?f[p](e):e;let x=s[p]||_;switch(typeof g){case"function":break;case"number":Number.isFinite(g)===!1&&(g=null);case"boolean":x&&(g=x(g)),T=',"'+p+'":'+g;break;case"string":g=(x||ld)(g),T=',"'+p+'":'+g;break;default:g=(x||l)(g,i),T=',"'+p+'":'+g}}return this[wZ]&&S?h+this[NZ]+S.slice(1)+"}"+T+a:h+S+T+a}function DZ(t,e){let n,r=t[fw],l=t[hw],i=t[sd],s=t[dw],a=s[mw],o=t[pw],f=t[gw].bindings;e=f(e);for(let c in e)if(n=e[c],(c!=="level"&&c!=="serializers"&&c!=="formatters"&&c!=="customLevels"&&e.hasOwnProperty(c)&&n!==void 0)===!0){if(n=o[c]?o[c](n):n,n=(s[c]||a||l)(n,i),n===void 0)continue;r+=',"'+c+'":'+n}return r}function LZ(t){return t.write!==t.constructor.prototype.write}var FZ=process.env.NODE_V8_COVERAGE||process.env.V8_COVERAGE;function Xc(t){let e=new id(t);return e.on("error",n),!FZ&&!t.sync&&IZ&&(ow.register(e,MZ),e.on("close",function(){ow.unregister(e)})),e;function n(r){if(r.code==="EPIPE"){e.write=Lo,e.end=Lo,e.flushSync=Lo,e.destroy=Lo;return}e.removeListener("error",n),e.emit("error",r)}}function MZ(t,e){t.destroyed||(e==="beforeExit"?(t.flush(),t.on("drain",function(){t.end()})):t.flushSync())}function $Z(t){return function(n,r,l={},i){if(typeof l=="string")i=Xc({dest:l}),l={};else if(typeof i=="string"){if(l&&l.transport)throw Error("only one of option.transport or stream can be specified");i=Xc({dest:i})}else if(l instanceof id||l.writable||l._writableState)i=l,l={};else if(l.transport){if(l.transport instanceof id||l.transport.writable||l.transport._writableState)throw Error("option.transport do not allow stream, please pass to option directly. e.g. pino(transport)");if(l.transport.targets&&l.transport.targets.length&&l.formatters&&typeof l.formatters.level=="function")throw Error("option.transport.targets do not allow custom level formatters");let o;l.customLevels&&(o=l.useOnlyCustomLevels?l.customLevels:Object.assign({},l.levels,l.customLevels)),i=CZ({caller:r,...l.transport,levels:o})}if(l=Object.assign({},t,l),l.serializers=Object.assign({},t.serializers,l.serializers),l.formatters=Object.assign({},t.formatters,l.formatters),l.prettyPrint)throw new Error("prettyPrint option is no longer supported, see the pino-pretty package (https://github.com/pinojs/pino-pretty)");let{enabled:s,onChild:a}=l;return s===!1&&(l.level="silent"),a||(l.onChild=Lo),i||(LZ(process.stdout)?i=process.stdout:i=Xc({fd:process.stdout.fd||1})),{opts:l,stream:i}}}function jZ(t,e){try{return JSON.stringify(t)}catch{try{return(e||this[sd])(t)}catch{return'"[unable to serialize, circular reference is too complex to analyze]"'}}}function UZ(t,e,n){return{level:t,bindings:e,log:n}}function BZ(t){let e=Number(t);return typeof t=="string"&&Number.isFinite(e)?e:t===void 0?1:t}yw.exports={noop:Lo,buildSafeSonicBoom:Xc,asChindings:DZ,asJson:PZ,genLog:kZ,createArgsNormalizer:$Z,stringify:jZ,buildFormatters:UZ,normalizeDestFileDescriptor:BZ}});var Kc=C((dEe,vw)=>{var HZ={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},qZ={ASC:"ASC",DESC:"DESC"};vw.exports={DEFAULT_LEVELS:HZ,SORTING_ORDER:qZ}});var ud=C((hEe,bw)=>{"use strict";var{lsCacheSym:VZ,levelValSym:ad,useOnlyCustomLevelsSym:zZ,streamSym:GZ,formattersSym:XZ,hooksSym:WZ,levelCompSym:KZ}=Po(),{noop:YZ,genLog:ia}=Wc(),{DEFAULT_LEVELS:pi,SORTING_ORDER:_w}=Kc(),Ew={fatal:t=>{let e=ia(pi.fatal,t);return function(...n){let r=this[GZ];if(e.call(this,...n),typeof r.flushSync=="function")try{r.flushSync()}catch{}}},error:t=>ia(pi.error,t),warn:t=>ia(pi.warn,t),info:t=>ia(pi.info,t),debug:t=>ia(pi.debug,t),trace:t=>ia(pi.trace,t)},od=Object.keys(pi).reduce((t,e)=>(t[pi[e]]=e,t),{}),JZ=Object.keys(od).reduce((t,e)=>(t[e]='{"level":'+Number(e),t),{});function QZ(t){let e=t[XZ].level,{labels:n}=t.levels,r={};for(let l in n){let i=e(n[l],Number(l));r[l]=JSON.stringify(i).slice(0,-1)}return t[VZ]=r,t}function ZZ(t,e){if(e)return!1;switch(t){case"fatal":case"error":case"warn":case"info":case"debug":case"trace":return!0;default:return!1}}function eee(t){let{labels:e,values:n}=this.levels;if(typeof t=="number"){if(e[t]===void 0)throw Error("unknown level value"+t);t=e[t]}if(n[t]===void 0)throw Error("unknown level "+t);let r=this[ad],l=this[ad]=n[t],i=this[zZ],s=this[WZ].logMethod;for(let a in n){if(l>n[a]){this[a]=YZ;continue}this[a]=ZZ(a,i)?Ew[a](s):ia(n[a],s)}this.emit("level-change",t,l,e[r],r,this)}function tee(t){let{levels:e,levelVal:n}=this;return e&&e.labels?e.labels[n]:""}function nee(t){let{values:e}=this.levels,n=e[t];return n!==void 0&&this[KZ](n,this[ad])}function ree(t,e,n){return t===_w.DESC?e<=n:e>=n}function lee(t){return typeof t=="string"?ree.bind(null,t):t}function iee(t=null,e=!1){let n=t?Object.keys(t).reduce((i,s)=>(i[t[s]]=s,i),{}):null,r=Object.assign(Object.create(Object.prototype,{Infinity:{value:"silent"}}),e?null:od,n),l=Object.assign(Object.create(Object.prototype,{silent:{value:1/0}}),e?null:pi,t);return{labels:r,values:l}}function see(t,e,n){if(typeof t=="number"){if(![].concat(Object.keys(e||{}).map(i=>e[i]),n?[]:Object.keys(od).map(i=>+i),1/0).includes(t))throw Error(`default level:${t} must be included in custom levels`);return}let r=Object.assign(Object.create(Object.prototype,{silent:{value:1/0}}),n?null:pi,e);if(!(t in r))throw Error(`default level:${t} must be included in custom levels`)}function aee(t,e){let{labels:n,values:r}=t;for(let l in e){if(l in r)throw Error("levels cannot be overridden");if(e[l]in n)throw Error("pre-existing level values cannot be used for new levels")}}function oee(t){if(typeof t!="function"&&!(typeof t=="string"&&Object.values(_w).includes(t)))throw new Error('Levels comparison should be one of "ASC", "DESC" or "function" type')}bw.exports={initialLsCache:JZ,genLsCache:QZ,levelMethods:Ew,getLevel:tee,setLevel:eee,isLevelEnabled:nee,mappings:iee,assertNoLevelCollisions:aee,assertDefaultLevelFound:see,genLevelComparison:lee,assertLevelComparison:oee}});var cd=C((mEe,Tw)=>{"use strict";Tw.exports={version:"8.18.0"}});var Pw=C((yEe,kw)=>{"use strict";var{EventEmitter:uee}=require("events"),{lsCacheSym:cee,levelValSym:fee,setLevelSym:pd,getLevelSym:Sw,chindingsSym:dd,parsedChindingsSym:pee,mixinSym:dee,asJsonSym:Ow,writeSym:hee,mixinMergeStrategySym:mee,timeSym:gee,timeSliceIndexSym:yee,streamSym:Nw,serializersSym:sa,formattersSym:fd,errorKeySym:vee,messageKeySym:_ee,useOnlyCustomLevelsSym:Eee,needsMetadataGsym:bee,redactFmtSym:Tee,stringifySym:See,formatOptsSym:xee,stringifiersSym:Aee,msgPrefixSym:xw}=Po(),{getLevel:wee,setLevel:Ree,isLevelEnabled:Oee,mappings:Nee,initialLsCache:Iee,genLsCache:Cee,assertNoLevelCollisions:kee}=ud(),{asChindings:Iw,asJson:Pee,buildFormatters:Aw,stringify:ww}=Wc(),{version:Dee}=cd(),Lee=Vp(),Fee=class{},Cw={constructor:Fee,child:Mee,bindings:$ee,setBindings:jee,flush:qee,isLevelEnabled:Oee,version:Dee,get level(){return this[Sw]()},set level(t){this[pd](t)},get levelVal(){return this[fee]},set levelVal(t){throw Error("levelVal is read-only")},[cee]:Iee,[hee]:Bee,[Ow]:Pee,[Sw]:wee,[pd]:Ree};Object.setPrototypeOf(Cw,uee.prototype);kw.exports=function(){return Object.create(Cw)};var Rw=t=>t;function Mee(t,e){if(!t)throw Error("missing bindings for child Pino");e=e||{};let n=this[sa],r=this[fd],l=Object.create(this);if(e.hasOwnProperty("serializers")===!0){l[sa]=Object.create(null);for(let c in n)l[sa][c]=n[c];let o=Object.getOwnPropertySymbols(n);for(var i=0;i{"use strict";var{hasOwnProperty:Yc}=Object.prototype,oa=gd();oa.configure=gd;oa.stringify=oa;oa.default=oa;yd.stringify=oa;yd.configure=gd;Mw.exports=oa;var Vee=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/;function $3(t){return t.length<5e3&&!Vee.test(t)?`"${t}"`:JSON.stringify(t)}function hd(t){if(t.length>200)return t.sort();for(let e=1;en;)t[r]=t[r-1],r--;t[r]=n}return t}var zee=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function md(t){return zee.call(t)!==void 0&&t.length!==0}function Dw(t,e,n){t.length= 1`)}return n===void 0?1/0:n}function aa(t){return t===1?"1 item":`${t} items`}function Xee(t){let e=new Set;for(let n of t)(typeof n=="string"||typeof n=="number")&&e.add(String(n));return e}function Wee(t){if(Yc.call(t,"strict")){let e=t.strict;if(typeof e!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(e)return n=>{let r=`Object can not safely be stringified. Received type ${typeof n}`;throw typeof n!="function"&&(r+=` (${n.toString()})`),new Error(r)}}}function gd(t){t={...t};let e=Wee(t);e&&(t.bigint===void 0&&(t.bigint=!1),"circularValue"in t||(t.circularValue=Error));let n=Gee(t),r=Lw(t,"bigint"),l=Lw(t,"deterministic"),i=Fw(t,"maximumDepth"),s=Fw(t,"maximumBreadth");function a(m,h,g,_,S,T){let x=h[m];switch(typeof x=="object"&&x!==null&&typeof x.toJSON=="function"&&(x=x.toJSON(m)),x=_.call(h,m,x),typeof x){case"string":return $3(x);case"object":{if(x===null)return"null";if(g.indexOf(x)!==-1)return n;let v="",b=",",w=T;if(Array.isArray(x)){if(x.length===0)return"[]";if(i{"use strict";ZA.exports=RQ;function RQ(t){let{secret:e,censor:n,compileRestore:r,serialize:l,groupRedact:i,nestedRedact:s,wildcards:a,wcLen:o}=t,c=[{secret:e,censor:n,compileRestore:r}];return l!==!1&&c.push({serialize:l}),o>0&&c.push({groupRedact:i,nestedRedact:s,wildcards:a,wcLen:o}),Object.assign(...c)}});var rw=C((Tbe,nw)=>{"use strict";var tw=HA(),OQ=zA(),NQ=XA(),IQ=QA(),{groupRedact:CQ,nestedRedact:kQ}=ad(),PQ=ew(),DQ=e6(),LQ=tw(),od=t=>t;od.restore=od;var FQ="[REDACTED]";ud.rx=DQ;ud.validator=tw;nw.exports=ud;function ud(t={}){let e=Array.from(new Set(t.paths||[])),n="serialize"in t&&(t.serialize===!1||typeof t.serialize=="function")?t.serialize:JSON.stringify,r=t.remove;if(r===!0&&n!==JSON.stringify)throw Error("fast-redact \u2013 remove option may only be set when serializer is JSON.stringify");let l=r===!0?void 0:"censor"in t?t.censor:FQ,i=typeof l=="function",s=i&&l.length>1;if(e.length===0)return n||od;LQ({paths:e,serialize:n,censor:l});let{wildcards:a,wcLen:o,secret:c}=OQ({paths:e,censor:l}),f=IQ({secret:c,wcLen:o}),p="strict"in t?t.strict:!0;return NQ({secret:c,wcLen:o,serialize:n,strict:p,isCensorFct:i,censorFctTakesPath:s},PQ({secret:c,censor:l,compileRestore:f,serialize:n,groupRedact:CQ,nestedRedact:kQ,wildcards:a,wcLen:o}))}});var Uo=C((Sbe,lw)=>{"use strict";var MQ=Symbol("pino.setLevel"),$Q=Symbol("pino.getLevel"),jQ=Symbol("pino.levelVal"),UQ=Symbol("pino.levelComp"),BQ=Symbol("pino.useLevelLabels"),HQ=Symbol("pino.useOnlyCustomLevels"),qQ=Symbol("pino.mixin"),VQ=Symbol("pino.lsCache"),zQ=Symbol("pino.chindings"),GQ=Symbol("pino.asJson"),XQ=Symbol("pino.write"),WQ=Symbol("pino.redactFmt"),KQ=Symbol("pino.time"),YQ=Symbol("pino.timeSliceIndex"),JQ=Symbol("pino.stream"),QQ=Symbol("pino.stringify"),ZQ=Symbol("pino.stringifySafe"),eZ=Symbol("pino.stringifiers"),tZ=Symbol("pino.end"),nZ=Symbol("pino.formatOpts"),rZ=Symbol("pino.messageKey"),lZ=Symbol("pino.errorKey"),iZ=Symbol("pino.nestedKey"),sZ=Symbol("pino.nestedKeyStr"),aZ=Symbol("pino.mixinMergeStrategy"),oZ=Symbol("pino.msgPrefix"),uZ=Symbol("pino.wildcardFirst"),cZ=Symbol.for("pino.serializers"),fZ=Symbol.for("pino.formatters"),pZ=Symbol.for("pino.hooks"),dZ=Symbol.for("pino.metadata");lw.exports={setLevelSym:MQ,getLevelSym:$Q,levelValSym:jQ,levelCompSym:UQ,useLevelLabelsSym:BQ,mixinSym:qQ,lsCacheSym:VQ,chindingsSym:zQ,asJsonSym:GQ,writeSym:XQ,serializersSym:cZ,redactFmtSym:WQ,timeSym:KQ,timeSliceIndexSym:YQ,streamSym:JQ,stringifySym:QQ,stringifySafeSym:ZQ,stringifiersSym:eZ,endSym:tZ,formatOptsSym:nZ,messageKeySym:rZ,errorKeySym:lZ,nestedKeySym:iZ,wildcardFirstSym:uZ,needsMetadataGsym:dZ,useOnlyCustomLevelsSym:HQ,formattersSym:fZ,hooksSym:pZ,nestedKeyStrSym:sZ,mixinMergeStrategySym:aZ,msgPrefixSym:oZ}});var pd=C((xbe,ow)=>{"use strict";var fd=rw(),{redactFmtSym:hZ,wildcardFirstSym:t6}=Uo(),{rx:cd,validator:mZ}=fd,iw=mZ({ERR_PATHS_MUST_BE_STRINGS:()=>"pino \u2013 redacted paths must be strings",ERR_INVALID_PATH:t=>`pino \u2013 redact paths array contains an invalid path (${t})`}),sw="[Redacted]",aw=!1;function gZ(t,e){let{paths:n,censor:r}=yZ(t),l=n.reduce((a,o)=>{cd.lastIndex=0;let c=cd.exec(o),f=cd.exec(o),p=c[1]!==void 0?c[1].replace(/^(?:"|'|`)(.*)(?:"|'|`)$/,"$1"):c[0];if(p==="*"&&(p=t6),f===null)return a[p]=null,a;if(a[p]===null)return a;let{index:m}=f,h=`${o.substr(m,o.length-1)}`;return a[p]=a[p]||[],p!==t6&&a[p].length===0&&a[p].push(...a[t6]||[]),p===t6&&Object.keys(a).forEach(function(g){a[g]&&a[g].push(h)}),a[p].push(h),a},{}),i={[hZ]:fd({paths:n,censor:r,serialize:e,strict:aw})},s=(...a)=>e(typeof r=="function"?r(...a):r);return[...Object.keys(l),...Object.getOwnPropertySymbols(l)].reduce((a,o)=>{if(l[o]===null)a[o]=c=>s(c,[o]);else{let c=typeof r=="function"?(f,p)=>r(f,[o,...p]):r;a[o]=fd({paths:l[o],censor:c,serialize:e,strict:aw})}return a},i)}function yZ(t){if(Array.isArray(t))return t={paths:t,censor:sw},iw(t),t;let{paths:e,censor:n=sw,remove:r}=t;if(Array.isArray(e)===!1)throw Error("pino \u2013 redact must contain an array of strings");return r===!0&&(n=void 0),iw({paths:e,censor:n}),{paths:e,censor:n}}ow.exports=gZ});var cw=C((Abe,uw)=>{"use strict";var vZ=()=>"",_Z=()=>`,"time":${Date.now()}`,EZ=()=>`,"time":${Math.round(Date.now()/1e3)}`,bZ=()=>`,"time":"${new Date(Date.now()).toISOString()}"`;uw.exports={nullTime:vZ,epochTime:_Z,unixTime:EZ,isoTime:bZ}});var pw=C((wbe,fw)=>{"use strict";function TZ(t){try{return JSON.stringify(t)}catch{return'"[Circular]"'}}fw.exports=SZ;function SZ(t,e,n){var r=n&&n.stringify||TZ,l=1;if(typeof t=="object"&&t!==null){var i=e.length+l;if(i===1)return t;var s=new Array(i);s[0]=r(t);for(var a=1;a-1?p:0,t.charCodeAt(h+1)){case 100:case 102:if(f>=o||e[f]==null)break;p=o||e[f]==null)break;p=o||e[f]===void 0)break;p",p=h+2,h++;break}c+=r(e[f]),p=h+2,h++;break;case 115:if(f>=o)break;p{"use strict";if(typeof SharedArrayBuffer<"u"&&typeof Atomics<"u"){let e=function(n){if((n>0&&n<1/0)===!1)throw typeof n!="number"&&typeof n!="bigint"?TypeError("sleep: ms must be a number"):RangeError("sleep: ms must be a number that is greater than 0 but less than Infinity");Atomics.wait(t,0,0,Number(n))},t=new Int32Array(new SharedArrayBuffer(4));dd.exports=e}else{let t=function(e){if((e>0&&e<1/0)===!1)throw typeof e!="number"&&typeof e!="bigint"?TypeError("sleep: ms must be a number"):RangeError("sleep: ms must be a number that is greater than 0 but less than Infinity");let r=Date.now()+Number(e);for(;r>Date.now(););};dd.exports=t}});var Ew=C((Obe,_w)=>{"use strict";var sr=require("fs"),xZ=require("events"),AZ=require("util").inherits,dw=require("path"),gd=hd(),n6=100,r6=Buffer.allocUnsafe(0),wZ=16*1024,hw="buffer",mw="utf8";function gw(t,e){e._opening=!0,e._writing=!0,e._asyncDrainScheduled=!1;function n(i,s){if(i){e._reopening=!1,e._writing=!1,e._opening=!1,e.sync?process.nextTick(()=>{e.listenerCount("error")>0&&e.emit("error",i)}):e.emit("error",i);return}e.fd=s,e.file=t,e._reopening=!1,e._opening=!1,e._writing=!1,e.sync?process.nextTick(()=>e.emit("ready")):e.emit("ready"),!(e._reopening||e.destroyed)&&(!e._writing&&e._len>e.minLength||e._flushPending)&&e._actualWrite()}let r=e.append?"a":"w",l=e.mode;if(e.sync)try{e.mkdir&&sr.mkdirSync(dw.dirname(t),{recursive:!0});let i=sr.openSync(t,r,l);n(null,i)}catch(i){throw n(i),i}else e.mkdir?sr.mkdir(dw.dirname(t),{recursive:!0},i=>{if(i)return n(i);sr.open(t,r,l,n)}):sr.open(t,r,l,n)}function j2(t){if(!(this instanceof j2))return new j2(t);let{fd:e,dest:n,minLength:r,maxLength:l,maxWrite:i,sync:s,append:a=!0,mkdir:o,retryEAGAIN:c,fsync:f,contentMode:p,mode:m}=t||{};e=e||n,this._len=0,this.fd=-1,this._bufs=[],this._lens=[],this._writing=!1,this._ending=!1,this._reopening=!1,this._asyncDrainScheduled=!1,this._flushPending=!1,this._hwm=Math.max(r||0,16387),this.file=null,this.destroyed=!1,this.minLength=r||0,this.maxLength=l||0,this.maxWrite=i||wZ,this.sync=s||!1,this.writable=!0,this._fsync=f||!1,this.append=a||!1,this.mode=m,this.retryEAGAIN=c||(()=>!0),this.mkdir=o||!1;let h,g;if(p===hw)this._writingBuf=r6,this.write=NZ,this.flush=CZ,this.flushSync=PZ,this._actualWrite=LZ,h=()=>sr.writeSync(this.fd,this._writingBuf),g=()=>sr.write(this.fd,this._writingBuf,this.release);else if(p===void 0||p===mw)this._writingBuf="",this.write=OZ,this.flush=IZ,this.flushSync=kZ,this._actualWrite=DZ,h=()=>sr.writeSync(this.fd,this._writingBuf,"utf8"),g=()=>sr.write(this.fd,this._writingBuf,"utf8",this.release);else throw new Error(`SonicBoom supports "${mw}" and "${hw}", but passed ${p}`);if(typeof e=="number")this.fd=e,process.nextTick(()=>this.emit("ready"));else if(typeof e=="string")gw(e,this);else throw new Error("SonicBoom supports only file descriptors and files");if(this.minLength>=this.maxWrite)throw new Error(`minLength should be smaller than maxWrite (${this.maxWrite})`);this.release=(_,S)=>{if(_){if((_.code==="EAGAIN"||_.code==="EBUSY")&&this.retryEAGAIN(_,this._writingBuf.length,this._len-this._writingBuf.length))if(this.sync)try{gd(n6),this.release(void 0,0)}catch(v){this.release(v)}else setTimeout(g,n6);else this._writing=!1,this.emit("error",_);return}this.emit("write",S);let T=md(this._writingBuf,this._len,S);if(this._len=T.len,this._writingBuf=T.writingBuf,this._writingBuf.length){if(!this.sync){g();return}try{do{let v=h(),b=md(this._writingBuf,this._len,v);this._len=b.len,this._writingBuf=b.writingBuf}while(this._writingBuf.length)}catch(v){this.release(v);return}}this._fsync&&sr.fsyncSync(this.fd);let x=this._len;this._reopening?(this._writing=!1,this._reopening=!1,this.reopen()):x>this.minLength?this._actualWrite():this._ending?x>0?this._actualWrite():(this._writing=!1,l6(this)):(this._writing=!1,this.sync?this._asyncDrainScheduled||(this._asyncDrainScheduled=!0,process.nextTick(RZ,this)):this.emit("drain"))},this.on("newListener",function(_){_==="drain"&&(this._asyncDrainScheduled=!1)})}function md(t,e,n){return typeof t=="string"&&Buffer.byteLength(t)!==n&&(n=Buffer.from(t).subarray(0,n).toString().length),e=Math.max(e-n,0),t=t.slice(n),{writingBuf:t,len:e}}function RZ(t){t.listenerCount("drain")>0&&(t._asyncDrainScheduled=!1,t.emit("drain"))}AZ(j2,xZ);function yw(t,e){return t.length===0?r6:t.length===1?t[0]:Buffer.concat(t,e)}function OZ(t){if(this.destroyed)throw new Error("SonicBoom destroyed");let e=this._len+t.length,n=this._bufs;return this.maxLength&&e>this.maxLength?(this.emit("drop",t),this._lenthis.maxWrite?n.push(""+t):n[n.length-1]+=t,this._len=e,!this._writing&&this._len>=this.minLength&&this._actualWrite(),this._lenthis.maxLength?(this.emit("drop",t),this._lenthis.maxWrite?(n.push([t]),r.push(t.length)):(n[n.length-1].push(t),r[r.length-1]+=t.length),this._len=e,!this._writing&&this._len>=this.minLength&&this._actualWrite(),this._len{this._fsync?(this._flushPending=!1,t()):sr.fsync(this.fd,r=>{this._flushPending=!1,t(r)}),this.off("error",n)},n=r=>{this._flushPending=!1,t(r),this.off("drain",e)};this.once("drain",e),this.once("error",n)}function IZ(t){if(t!=null&&typeof t!="function")throw new Error("flush cb must be a function");if(this.destroyed){let e=new Error("SonicBoom destroyed");if(t){t(e);return}throw e}if(this.minLength<=0){t?.();return}t&&vw.call(this,t),!this._writing&&(this._bufs.length===0&&this._bufs.push(""),this._actualWrite())}function CZ(t){if(t!=null&&typeof t!="function")throw new Error("flush cb must be a function");if(this.destroyed){let e=new Error("SonicBoom destroyed");if(t){t(e);return}throw e}if(this.minLength<=0){t?.();return}t&&vw.call(this,t),!this._writing&&(this._bufs.length===0&&(this._bufs.push([]),this._lens.push(0)),this._actualWrite())}j2.prototype.reopen=function(t){if(this.destroyed)throw new Error("SonicBoom destroyed");if(this._opening){this.once("ready",()=>{this.reopen(t)});return}if(this._ending)return;if(!this.file)throw new Error("Unable to reopen a file descriptor, you must pass a file to SonicBoom");if(this._reopening=!0,this._writing)return;let e=this.fd;this.once("ready",()=>{e!==this.fd&&sr.close(e,n=>{if(n)return this.emit("error",n)})}),gw(t||this.file,this)};j2.prototype.end=function(){if(this.destroyed)throw new Error("SonicBoom destroyed");if(this._opening){this.once("ready",()=>{this.end()});return}this._ending||(this._ending=!0,!this._writing&&(this._len>0&&this.fd>=0?this._actualWrite():l6(this)))};function kZ(){if(this.destroyed)throw new Error("SonicBoom destroyed");if(this.fd<0)throw new Error("sonic boom is not ready yet");!this._writing&&this._writingBuf.length>0&&(this._bufs.unshift(this._writingBuf),this._writingBuf="");let t="";for(;this._bufs.length||t;){t.length<=0&&(t=this._bufs[0]);try{let e=sr.writeSync(this.fd,t,"utf8"),n=md(t,this._len,e);t=n.writingBuf,this._len=n.len,t.length<=0&&this._bufs.shift()}catch(e){if((e.code==="EAGAIN"||e.code==="EBUSY")&&!this.retryEAGAIN(e,t.length,this._len-t.length))throw e;gd(n6)}}try{sr.fsyncSync(this.fd)}catch{}}function PZ(){if(this.destroyed)throw new Error("SonicBoom destroyed");if(this.fd<0)throw new Error("sonic boom is not ready yet");!this._writing&&this._writingBuf.length>0&&(this._bufs.unshift([this._writingBuf]),this._writingBuf=r6);let t=r6;for(;this._bufs.length||t.length;){t.length<=0&&(t=yw(this._bufs[0],this._lens[0]));try{let e=sr.writeSync(this.fd,t);t=t.subarray(e),this._len=Math.max(this._len-e,0),t.length<=0&&(this._bufs.shift(),this._lens.shift())}catch(e){if((e.code==="EAGAIN"||e.code==="EBUSY")&&!this.retryEAGAIN(e,t.length,this._len-t.length))throw e;gd(n6)}}}j2.prototype.destroy=function(){this.destroyed||l6(this)};function DZ(){let t=this.release;if(this._writing=!0,this._writingBuf=this._writingBuf||this._bufs.shift()||"",this.sync)try{let e=sr.writeSync(this.fd,this._writingBuf,"utf8");t(null,e)}catch(e){t(e)}else sr.write(this.fd,this._writingBuf,"utf8",t)}function LZ(){let t=this.release;if(this._writing=!0,this._writingBuf=this._writingBuf.length?this._writingBuf:yw(this._bufs.shift(),this._lens.shift()),this.sync)try{let e=sr.writeSync(this.fd,this._writingBuf);t(null,e)}catch(e){t(e)}else sr.write(this.fd,this._writingBuf,t)}function l6(t){if(t.fd===-1){t.once("ready",l6.bind(null,t));return}t.destroyed=!0,t._bufs=[],t._lens=[],sr.fsync(t.fd,e);function e(){t.fd!==1&&t.fd!==2?sr.close(t.fd,n):n()}function n(r){if(r){t.emit("error",r);return}t._ending&&!t._writing&&t.emit("finish"),t.emit("close")}}j2.SonicBoom=j2;j2.default=j2;_w.exports=j2});var yd=C((Nbe,Aw)=>{"use strict";var U2={exit:[],beforeExit:[]},bw={exit:$Z,beforeExit:jZ},Bo;function FZ(){Bo===void 0&&(Bo=new FinalizationRegistry(UZ))}function MZ(t){U2[t].length>0||process.on(t,bw[t])}function Tw(t){U2[t].length>0||(process.removeListener(t,bw[t]),U2.exit.length===0&&U2.beforeExit.length===0&&(Bo=void 0))}function $Z(){Sw("exit")}function jZ(){Sw("beforeExit")}function Sw(t){for(let e of U2[t]){let n=e.deref(),r=e.fn;n!==void 0&&r(n,t)}U2[t]=[]}function UZ(t){for(let e of["exit","beforeExit"]){let n=U2[e].indexOf(t);U2[e].splice(n,n+1),Tw(e)}}function xw(t,e,n){if(e===void 0)throw new Error("the object can't be undefined");MZ(t);let r=new WeakRef(e);r.fn=n,FZ(),Bo.register(e,r),U2[t].push(r)}function BZ(t,e){xw("exit",t,e)}function HZ(t,e){xw("beforeExit",t,e)}function qZ(t){if(Bo!==void 0){Bo.unregister(t);for(let e of["exit","beforeExit"])U2[e]=U2[e].filter(n=>{let r=n.deref();return r&&r!==t}),Tw(e)}}Aw.exports={register:BZ,registerBeforeExit:HZ,unregister:qZ}});var ww=C((Ibe,VZ)=>{VZ.exports={name:"thread-stream",version:"2.4.1",description:"A streaming way to send data to a Node.js Worker Thread",main:"index.js",types:"index.d.ts",dependencies:{"real-require":"^0.2.0"},devDependencies:{"@types/node":"^20.1.0","@types/tap":"^15.0.0",desm:"^1.3.0",fastbench:"^1.0.1",husky:"^8.0.1","pino-elasticsearch":"^6.0.0","sonic-boom":"^3.0.0",standard:"^17.0.0",tap:"^16.2.0","ts-node":"^10.8.0",typescript:"^4.7.2","why-is-node-running":"^2.2.2"},scripts:{test:"standard && npm run transpile && tap test/*.test.*js && tap --ts test/*.test.*ts","test:ci":"standard && npm run transpile && npm run test:ci:js && npm run test:ci:ts","test:ci:js":'tap --no-check-coverage --coverage-report=lcovonly "test/**/*.test.*js"',"test:ci:ts":'tap --ts --no-check-coverage --coverage-report=lcovonly "test/**/*.test.*ts"',"test:yarn":'npm run transpile && tap "test/**/*.test.js" --no-check-coverage',transpile:"sh ./test/ts/transpile.sh",prepare:"husky install"},standard:{ignore:["test/ts/**/*"]},repository:{type:"git",url:"git+https://github.com/mcollina/thread-stream.git"},keywords:["worker","thread","threads","stream"],author:"Matteo Collina ",license:"MIT",bugs:{url:"https://github.com/mcollina/thread-stream/issues"},homepage:"https://github.com/mcollina/thread-stream#readme"}});var Ow=C((Cbe,Rw)=>{"use strict";function zZ(t,e,n,r,l){let i=Date.now()+r,s=Atomics.load(t,e);if(s===n){l(null,"ok");return}let a=s,o=c=>{Date.now()>i?l(null,"timed-out"):setTimeout(()=>{a=s,s=Atomics.load(t,e),s===a?o(c>=1e3?1e3:c*2):s===n?l(null,"ok"):l(null,"not-equal")},c)};o(1)}function GZ(t,e,n,r,l){let i=Date.now()+r,s=Atomics.load(t,e);if(s!==n){l(null,"ok");return}let a=o=>{Date.now()>i?l(null,"timed-out"):setTimeout(()=>{s=Atomics.load(t,e),s!==n?l(null,"ok"):a(o>=1e3?1e3:o*2)},o)};a(1)}Rw.exports={wait:zZ,waitDiff:GZ}});var Iw=C((kbe,Nw)=>{"use strict";Nw.exports={WRITE_INDEX:4,READ_INDEX:8}});var Lw=C((Pbe,Dw)=>{"use strict";var{version:XZ}=ww(),{EventEmitter:WZ}=require("events"),{Worker:KZ}=require("worker_threads"),{join:YZ}=require("path"),{pathToFileURL:JZ}=require("url"),{wait:QZ}=Ow(),{WRITE_INDEX:Ll,READ_INDEX:di}=Iw(),ZZ=require("buffer"),eee=require("assert"),de=Symbol("kImpl"),tee=ZZ.constants.MAX_STRING_LENGTH,n1=class{constructor(e){this._value=e}deref(){return this._value}},s6=class{register(){}unregister(){}},nee=process.env.NODE_V8_COVERAGE?s6:global.FinalizationRegistry||s6,ree=process.env.NODE_V8_COVERAGE?n1:global.WeakRef||n1,Cw=new nee(t=>{t.exited||t.terminate()});function lee(t,e){let{filename:n,workerData:r}=e,i=("__bundlerPathsOverrides"in globalThis?globalThis.__bundlerPathsOverrides:{})["thread-stream-worker"]||YZ(__dirname,"lib","worker.js"),s=new KZ(i,{...e.workerOpts,trackUnmanagedFds:!1,workerData:{filename:n.indexOf("file://")===0?n:JZ(n).href,dataBuf:t[de].dataBuf,stateBuf:t[de].stateBuf,workerData:{$context:{threadStreamVersion:XZ},...r}}});return s.stream=new n1(t),s.on("message",iee),s.on("exit",Pw),Cw.register(t,s),s}function kw(t){eee(!t[de].sync),t[de].needDrain&&(t[de].needDrain=!1,t.emit("drain"))}function i6(t){let e=Atomics.load(t[de].state,Ll),n=t[de].data.length-e;if(n>0){if(t[de].buf.length===0){t[de].flushing=!1,t[de].ending?Td(t):t[de].needDrain&&process.nextTick(kw,t);return}let r=t[de].buf.slice(0,n),l=Buffer.byteLength(r);l<=n?(t[de].buf=t[de].buf.slice(n),a6(t,r,i6.bind(null,t))):t.flush(()=>{if(!t.destroyed){for(Atomics.store(t[de].state,di,0),Atomics.store(t[de].state,Ll,0);l>t[de].data.length;)n=n/2,r=t[de].buf.slice(0,n),l=Buffer.byteLength(r);t[de].buf=t[de].buf.slice(n),a6(t,r,i6.bind(null,t))}})}else if(n===0){if(e===0&&t[de].buf.length===0)return;t.flush(()=>{Atomics.store(t[de].state,di,0),Atomics.store(t[de].state,Ll,0),i6(t)})}else hi(t,new Error("overwritten"))}function iee(t){let e=this.stream.deref();if(e===void 0){this.exited=!0,this.terminate();return}switch(t.code){case"READY":this.stream=new ree(e),e.flush(()=>{e[de].ready=!0,e.emit("ready")});break;case"ERROR":hi(e,t.err);break;case"EVENT":Array.isArray(t.args)?e.emit(t.name,...t.args):e.emit(t.name,t.args);break;case"WARNING":process.emitWarning(t.err);break;default:hi(e,new Error("this should not happen: "+t.code))}}function Pw(t){let e=this.stream.deref();e!==void 0&&(Cw.unregister(e),e.worker.exited=!0,e.worker.off("exit",Pw),hi(e,t!==0?new Error("the worker thread exited"):null))}var _d=class extends WZ{constructor(e={}){if(super(),e.bufferSize<4)throw new Error("bufferSize must at least fit a 4-byte utf-8 char");this[de]={},this[de].stateBuf=new SharedArrayBuffer(128),this[de].state=new Int32Array(this[de].stateBuf),this[de].dataBuf=new SharedArrayBuffer(e.bufferSize||4*1024*1024),this[de].data=Buffer.from(this[de].dataBuf),this[de].sync=e.sync||!1,this[de].ending=!1,this[de].ended=!1,this[de].needDrain=!1,this[de].destroyed=!1,this[de].flushing=!1,this[de].ready=!1,this[de].finished=!1,this[de].errored=null,this[de].closed=!1,this[de].buf="",this.worker=lee(this,e)}write(e){if(this[de].destroyed)return Ed(this,new Error("the worker has exited")),!1;if(this[de].ending)return Ed(this,new Error("the worker is ending")),!1;if(this[de].flushing&&this[de].buf.length+e.length>=tee)try{vd(this),this[de].flushing=!0}catch(n){return hi(this,n),!1}if(this[de].buf+=e,this[de].sync)try{return vd(this),!0}catch(n){return hi(this,n),!1}return this[de].flushing||(this[de].flushing=!0,setImmediate(i6,this)),this[de].needDrain=this[de].data.length-this[de].buf.length-Atomics.load(this[de].state,Ll)<=0,!this[de].needDrain}end(){this[de].destroyed||(this[de].ending=!0,Td(this))}flush(e){if(this[de].destroyed){typeof e=="function"&&process.nextTick(e,new Error("the worker has exited"));return}let n=Atomics.load(this[de].state,Ll);QZ(this[de].state,di,n,1/0,(r,l)=>{if(r){hi(this,r),process.nextTick(e,r);return}if(l==="not-equal"){this.flush(e);return}process.nextTick(e)})}flushSync(){this[de].destroyed||(vd(this),bd(this))}unref(){this.worker.unref()}ref(){this.worker.ref()}get ready(){return this[de].ready}get destroyed(){return this[de].destroyed}get closed(){return this[de].closed}get writable(){return!this[de].destroyed&&!this[de].ending}get writableEnded(){return this[de].ending}get writableFinished(){return this[de].finished}get writableNeedDrain(){return this[de].needDrain}get writableObjectMode(){return!1}get writableErrored(){return this[de].errored}};function Ed(t,e){setImmediate(()=>{t.emit("error",e)})}function hi(t,e){t[de].destroyed||(t[de].destroyed=!0,e&&(t[de].errored=e,Ed(t,e)),t.worker.exited?setImmediate(()=>{t[de].closed=!0,t.emit("close")}):t.worker.terminate().catch(()=>{}).then(()=>{t[de].closed=!0,t.emit("close")}))}function a6(t,e,n){let r=Atomics.load(t[de].state,Ll),l=Buffer.byteLength(e);return t[de].data.write(e,r),Atomics.store(t[de].state,Ll,r+l),Atomics.notify(t[de].state,Ll),n(),!0}function Td(t){if(!(t[de].ended||!t[de].ending||t[de].flushing)){t[de].ended=!0;try{t.flushSync();let e=Atomics.load(t[de].state,di);Atomics.store(t[de].state,Ll,-1),Atomics.notify(t[de].state,Ll);let n=0;for(;e!==-1;){if(Atomics.wait(t[de].state,di,e,1e3),e=Atomics.load(t[de].state,di),e===-2){hi(t,new Error("end() failed"));return}if(++n===10){hi(t,new Error("end() took too long (10s)"));return}}process.nextTick(()=>{t[de].finished=!0,t.emit("finish")})}catch(e){hi(t,e)}}}function vd(t){let e=()=>{t[de].ending?Td(t):t[de].needDrain&&process.nextTick(kw,t)};for(t[de].flushing=!1;t[de].buf.length!==0;){let n=Atomics.load(t[de].state,Ll),r=t[de].data.length-n;if(r===0){bd(t),Atomics.store(t[de].state,di,0),Atomics.store(t[de].state,Ll,0);continue}else if(r<0)throw new Error("overwritten");let l=t[de].buf.slice(0,r),i=Buffer.byteLength(l);if(i<=r)t[de].buf=t[de].buf.slice(r),a6(t,l,e);else{for(bd(t),Atomics.store(t[de].state,di,0),Atomics.store(t[de].state,Ll,0);i>t[de].buf.length;)r=r/2,l=t[de].buf.slice(0,r),i=Buffer.byteLength(l);t[de].buf=t[de].buf.slice(r),a6(t,l,e)}}}function bd(t){if(t[de].flushing)throw new Error("unable to flush while flushing");let e=Atomics.load(t[de].state,Ll),n=0;for(;;){let r=Atomics.load(t[de].state,di);if(r===-2)throw Error("_flushSync failed");if(r!==e)Atomics.wait(t[de].state,di,r,1e3);else break;if(++n===10)throw new Error("_flushSync took too long (10s)")}}Dw.exports=_d});var Ad=C((Dbe,Fw)=>{"use strict";var{createRequire:see}=require("module"),aee=id(),{join:Sd,isAbsolute:oee,sep:uee}=require("path"),cee=hd(),xd=yd(),fee=Lw();function pee(t){xd.register(t,hee),xd.registerBeforeExit(t,mee),t.on("close",function(){xd.unregister(t)})}function dee(t,e,n){let r=new fee({filename:t,workerData:e,workerOpts:n});r.on("ready",l),r.on("close",function(){process.removeListener("exit",i)}),process.on("exit",i);function l(){process.removeListener("exit",i),r.unref(),n.autoEnd!==!1&&pee(r)}function i(){r.closed||(r.flushSync(),cee(100),r.end())}return r}function hee(t){t.ref(),t.flushSync(),t.end(),t.once("close",function(){t.unref()})}function mee(t){t.flushSync()}function gee(t){let{pipeline:e,targets:n,levels:r,dedupe:l,options:i={},worker:s={},caller:a=aee()}=t,o=typeof a=="string"?[a]:a,c="__bundlerPathsOverrides"in globalThis?globalThis.__bundlerPathsOverrides:{},f=t.target;if(f&&n)throw new Error("only one of target or targets can be specified");return n?(f=c["pino-worker"]||Sd(__dirname,"worker.js"),i.targets=n.map(m=>({...m,target:p(m.target)}))):e&&(f=c["pino-pipeline-worker"]||Sd(__dirname,"worker-pipeline.js"),i.targets=e.map(m=>({...m,target:p(m.target)}))),r&&(i.levels=r),l&&(i.dedupe=l),dee(p(f),i,s);function p(m){if(m=c[m]||m,oee(m)||m.indexOf("file://")===0)return m;if(m==="pino/file")return Sd(__dirname,"..","file.js");let h;for(let g of o)try{let _=g==="node:repl"?process.cwd()+uee:g;h=see(_).resolve(m);break}catch{continue}if(!h)throw new Error(`unable to determine transport target for "${m}"`);return h}}Fw.exports=gee});var c6=C((Lbe,Xw)=>{"use strict";var Mw=pw(),{mapHttpRequest:yee,mapHttpResponse:vee}=ld(),Rd=Ew(),$w=yd(),{lsCacheSym:_ee,chindingsSym:Bw,writeSym:jw,serializersSym:Hw,formatOptsSym:Uw,endSym:Eee,stringifiersSym:qw,stringifySym:Vw,stringifySafeSym:Od,wildcardFirstSym:zw,nestedKeySym:bee,formattersSym:Gw,messageKeySym:Tee,errorKeySym:See,nestedKeyStrSym:xee,msgPrefixSym:o6}=Uo(),{isMainThread:Aee}=require("worker_threads"),wee=Ad();function Ho(){}function Ree(t,e){if(!e)return n;return function(...l){e.call(this,l,n,t)};function n(r,...l){if(typeof r=="object"){let i=r;r!==null&&(r.method&&r.headers&&r.socket?r=yee(r):typeof r.setHeader=="function"&&(r=vee(r)));let s;i===null&&l.length===0?s=[null]:(i=l.shift(),s=l),typeof this[o6]=="string"&&i!==void 0&&i!==null&&(i=this[o6]+i),this[jw](r,Mw(i,s,this[Uw]),t)}else{let i=r===void 0?l.shift():r;typeof this[o6]=="string"&&i!==void 0&&i!==null&&(i=this[o6]+i),this[jw](null,Mw(i,l,this[Uw]),t)}}}function wd(t){let e="",n=0,r=!1,l=255,i=t.length;if(i>100)return JSON.stringify(t);for(var s=0;s=32;s++)l=t.charCodeAt(s),(l===34||l===92)&&(e+=t.slice(n,s)+"\\",n=s,r=!0);return r?e+=t.slice(n):e=t,l<32?JSON.stringify(t):'"'+e+'"'}function Oee(t,e,n,r){let l=this[Vw],i=this[Od],s=this[qw],a=this[Eee],o=this[Bw],c=this[Hw],f=this[Gw],p=this[Tee],m=this[See],h=this[_ee][n]+r;h=h+o;let g;f.log&&(t=f.log(t));let _=s[zw],S="";for(let x in t)if(g=t[x],Object.prototype.hasOwnProperty.call(t,x)&&g!==void 0){c[x]?g=c[x](g):x===m&&c.err&&(g=c.err(g));let v=s[x]||_;switch(typeof g){case"undefined":case"function":continue;case"number":Number.isFinite(g)===!1&&(g=null);case"boolean":v&&(g=v(g));break;case"string":g=(v||wd)(g);break;default:g=(v||l)(g,i)}if(g===void 0)continue;let b=wd(x);S+=","+b+":"+g}let T="";if(e!==void 0){g=c[p]?c[p](e):e;let x=s[p]||_;switch(typeof g){case"function":break;case"number":Number.isFinite(g)===!1&&(g=null);case"boolean":x&&(g=x(g)),T=',"'+p+'":'+g;break;case"string":g=(x||wd)(g),T=',"'+p+'":'+g;break;default:g=(x||l)(g,i),T=',"'+p+'":'+g}}return this[bee]&&S?h+this[xee]+S.slice(1)+"}"+T+a:h+S+T+a}function Nee(t,e){let n,r=t[Bw],l=t[Vw],i=t[Od],s=t[qw],a=s[zw],o=t[Hw],c=t[Gw].bindings;e=c(e);for(let f in e)if(n=e[f],(f!=="level"&&f!=="serializers"&&f!=="formatters"&&f!=="customLevels"&&e.hasOwnProperty(f)&&n!==void 0)===!0){if(n=o[f]?o[f](n):n,n=(s[f]||a||l)(n,i),n===void 0)continue;r+=',"'+f+'":'+n}return r}function Iee(t){return t.write!==t.constructor.prototype.write}var Cee=process.env.NODE_V8_COVERAGE||process.env.V8_COVERAGE;function u6(t){let e=new Rd(t);return e.on("error",n),!Cee&&!t.sync&&Aee&&($w.register(e,kee),e.on("close",function(){$w.unregister(e)})),e;function n(r){if(r.code==="EPIPE"){e.write=Ho,e.end=Ho,e.flushSync=Ho,e.destroy=Ho;return}e.removeListener("error",n),e.emit("error",r)}}function kee(t,e){t.destroyed||(e==="beforeExit"?(t.flush(),t.on("drain",function(){t.end()})):t.flushSync())}function Pee(t){return function(n,r,l={},i){if(typeof l=="string")i=u6({dest:l}),l={};else if(typeof i=="string"){if(l&&l.transport)throw Error("only one of option.transport or stream can be specified");i=u6({dest:i})}else if(l instanceof Rd||l.writable||l._writableState)i=l,l={};else if(l.transport){if(l.transport instanceof Rd||l.transport.writable||l.transport._writableState)throw Error("option.transport do not allow stream, please pass to option directly. e.g. pino(transport)");if(l.transport.targets&&l.transport.targets.length&&l.formatters&&typeof l.formatters.level=="function")throw Error("option.transport.targets do not allow custom level formatters");let o;l.customLevels&&(o=l.useOnlyCustomLevels?l.customLevels:Object.assign({},l.levels,l.customLevels)),i=wee({caller:r,...l.transport,levels:o})}if(l=Object.assign({},t,l),l.serializers=Object.assign({},t.serializers,l.serializers),l.formatters=Object.assign({},t.formatters,l.formatters),l.prettyPrint)throw new Error("prettyPrint option is no longer supported, see the pino-pretty package (https://github.com/pinojs/pino-pretty)");let{enabled:s,onChild:a}=l;return s===!1&&(l.level="silent"),a||(l.onChild=Ho),i||(Iee(process.stdout)?i=process.stdout:i=u6({fd:process.stdout.fd||1})),{opts:l,stream:i}}}function Dee(t,e){try{return JSON.stringify(t)}catch{try{return(e||this[Od])(t)}catch{return'"[unable to serialize, circular reference is too complex to analyze]"'}}}function Lee(t,e,n){return{level:t,bindings:e,log:n}}function Fee(t){let e=Number(t);return typeof t=="string"&&Number.isFinite(e)?e:t===void 0?1:t}Xw.exports={noop:Ho,buildSafeSonicBoom:u6,asChindings:Nee,asJson:Oee,genLog:Ree,createArgsNormalizer:Pee,stringify:Dee,buildFormatters:Lee,normalizeDestFileDescriptor:Fee}});var f6=C((Fbe,Ww)=>{var Mee={trace:10,debug:20,info:30,warn:40,error:50,fatal:60},$ee={ASC:"ASC",DESC:"DESC"};Ww.exports={DEFAULT_LEVELS:Mee,SORTING_ORDER:$ee}});var Cd=C((Mbe,Jw)=>{"use strict";var{lsCacheSym:jee,levelValSym:Nd,useOnlyCustomLevelsSym:Uee,streamSym:Bee,formattersSym:Hee,hooksSym:qee,levelCompSym:Vee}=Uo(),{noop:zee,genLog:ca}=c6(),{DEFAULT_LEVELS:mi,SORTING_ORDER:Kw}=f6(),Yw={fatal:t=>{let e=ca(mi.fatal,t);return function(...n){let r=this[Bee];if(e.call(this,...n),typeof r.flushSync=="function")try{r.flushSync()}catch{}}},error:t=>ca(mi.error,t),warn:t=>ca(mi.warn,t),info:t=>ca(mi.info,t),debug:t=>ca(mi.debug,t),trace:t=>ca(mi.trace,t)},Id=Object.keys(mi).reduce((t,e)=>(t[mi[e]]=e,t),{}),Gee=Object.keys(Id).reduce((t,e)=>(t[e]='{"level":'+Number(e),t),{});function Xee(t){let e=t[Hee].level,{labels:n}=t.levels,r={};for(let l in n){let i=e(n[l],Number(l));r[l]=JSON.stringify(i).slice(0,-1)}return t[jee]=r,t}function Wee(t,e){if(e)return!1;switch(t){case"fatal":case"error":case"warn":case"info":case"debug":case"trace":return!0;default:return!1}}function Kee(t){let{labels:e,values:n}=this.levels;if(typeof t=="number"){if(e[t]===void 0)throw Error("unknown level value"+t);t=e[t]}if(n[t]===void 0)throw Error("unknown level "+t);let r=this[Nd],l=this[Nd]=n[t],i=this[Uee],s=this[qee].logMethod;for(let a in n){if(l>n[a]){this[a]=zee;continue}this[a]=Wee(a,i)?Yw[a](s):ca(n[a],s)}this.emit("level-change",t,l,e[r],r,this)}function Yee(t){let{levels:e,levelVal:n}=this;return e&&e.labels?e.labels[n]:""}function Jee(t){let{values:e}=this.levels,n=e[t];return n!==void 0&&this[Vee](n,this[Nd])}function Qee(t,e,n){return t===Kw.DESC?e<=n:e>=n}function Zee(t){return typeof t=="string"?Qee.bind(null,t):t}function ete(t=null,e=!1){let n=t?Object.keys(t).reduce((i,s)=>(i[t[s]]=s,i),{}):null,r=Object.assign(Object.create(Object.prototype,{Infinity:{value:"silent"}}),e?null:Id,n),l=Object.assign(Object.create(Object.prototype,{silent:{value:1/0}}),e?null:mi,t);return{labels:r,values:l}}function tte(t,e,n){if(typeof t=="number"){if(![].concat(Object.keys(e||{}).map(i=>e[i]),n?[]:Object.keys(Id).map(i=>+i),1/0).includes(t))throw Error(`default level:${t} must be included in custom levels`);return}let r=Object.assign(Object.create(Object.prototype,{silent:{value:1/0}}),n?null:mi,e);if(!(t in r))throw Error(`default level:${t} must be included in custom levels`)}function nte(t,e){let{labels:n,values:r}=t;for(let l in e){if(l in r)throw Error("levels cannot be overridden");if(e[l]in n)throw Error("pre-existing level values cannot be used for new levels")}}function rte(t){if(typeof t!="function"&&!(typeof t=="string"&&Object.values(Kw).includes(t)))throw new Error('Levels comparison should be one of "ASC", "DESC" or "function" type')}Jw.exports={initialLsCache:Gee,genLsCache:Xee,levelMethods:Yw,getLevel:Yee,setLevel:Kee,isLevelEnabled:Jee,mappings:ete,assertNoLevelCollisions:nte,assertDefaultLevelFound:tte,genLevelComparison:Zee,assertLevelComparison:rte}});var kd=C(($be,Qw)=>{"use strict";Qw.exports={version:"8.18.0"}});var uR=C((Ube,oR)=>{"use strict";var{EventEmitter:lte}=require("events"),{lsCacheSym:ite,levelValSym:ste,setLevelSym:Dd,getLevelSym:Zw,chindingsSym:Ld,parsedChindingsSym:ate,mixinSym:ote,asJsonSym:lR,writeSym:ute,mixinMergeStrategySym:cte,timeSym:fte,timeSliceIndexSym:pte,streamSym:iR,serializersSym:fa,formattersSym:Pd,errorKeySym:dte,messageKeySym:hte,useOnlyCustomLevelsSym:mte,needsMetadataGsym:gte,redactFmtSym:yte,stringifySym:vte,formatOptsSym:_te,stringifiersSym:Ete,msgPrefixSym:eR}=Uo(),{getLevel:bte,setLevel:Tte,isLevelEnabled:Ste,mappings:xte,initialLsCache:Ate,genLsCache:wte,assertNoLevelCollisions:Rte}=Cd(),{asChindings:sR,asJson:Ote,buildFormatters:tR,stringify:nR}=c6(),{version:Nte}=kd(),Ite=pd(),Cte=class{},aR={constructor:Cte,child:kte,bindings:Pte,setBindings:Dte,flush:$te,isLevelEnabled:Ste,version:Nte,get level(){return this[Zw]()},set level(t){this[Dd](t)},get levelVal(){return this[ste]},set levelVal(t){throw Error("levelVal is read-only")},[ite]:Ate,[ute]:Fte,[lR]:Ote,[Zw]:bte,[Dd]:Tte};Object.setPrototypeOf(aR,lte.prototype);oR.exports=function(){return Object.create(aR)};var rR=t=>t;function kte(t,e){if(!t)throw Error("missing bindings for child Pino");e=e||{};let n=this[fa],r=this[Pd],l=Object.create(this);if(e.hasOwnProperty("serializers")===!0){l[fa]=Object.create(null);for(let f in n)l[fa][f]=n[f];let o=Object.getOwnPropertySymbols(n);for(var i=0;i{"use strict";var{hasOwnProperty:p6}=Object.prototype,da=$d();da.configure=$d;da.stringify=da;da.default=da;jd.stringify=da;jd.configure=$d;dR.exports=da;var jte=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/;function H3(t){return t.length<5e3&&!jte.test(t)?`"${t}"`:JSON.stringify(t)}function Fd(t){if(t.length>200)return t.sort();for(let e=1;en;)t[r]=t[r-1],r--;t[r]=n}return t}var Ute=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function Md(t){return Ute.call(t)!==void 0&&t.length!==0}function cR(t,e,n){t.length= 1`)}return n===void 0?1/0:n}function pa(t){return t===1?"1 item":`${t} items`}function Hte(t){let e=new Set;for(let n of t)(typeof n=="string"||typeof n=="number")&&e.add(String(n));return e}function qte(t){if(p6.call(t,"strict")){let e=t.strict;if(typeof e!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(e)return n=>{let r=`Object can not safely be stringified. Received type ${typeof n}`;throw typeof n!="function"&&(r+=` (${n.toString()})`),new Error(r)}}}function $d(t){t={...t};let e=qte(t);e&&(t.bigint===void 0&&(t.bigint=!1),"circularValue"in t||(t.circularValue=Error));let n=Bte(t),r=fR(t,"bigint"),l=fR(t,"deterministic"),i=pR(t,"maximumDepth"),s=pR(t,"maximumBreadth");function a(m,h,g,_,S,T){let x=h[m];switch(typeof x=="object"&&x!==null&&typeof x.toJSON=="function"&&(x=x.toJSON(m)),x=_.call(h,m,x),typeof x){case"string":return H3(x);case"object":{if(x===null)return"null";if(g.indexOf(x)!==-1)return n;let v="",b=",",w=T;if(Array.isArray(x)){if(x.length===0)return"[]";if(is){let ye=x.length-s-1;v+=`${b}"... ${aa(ye)} not stringified"`}return S!==""&&(v+=`
-${w}`),g.pop(),`[${v}]`}let N=Object.keys(x),O=N.length;if(O===0)return"{}";if(is){let J=O-s;v+=`${$}"...":${k}"${aa(J)} not stringified"`,$=b}return S!==""&&$.length>1&&(v=`
+${T}`);let Q=Math.min(x.length,s),Y=0;for(;Ys){let ve=x.length-s-1;v+=`${b}"... ${pa(ve)} not stringified"`}return S!==""&&(v+=`
+${w}`),g.pop(),`[${v}]`}let N=Object.keys(x),O=N.length;if(O===0)return"{}";if(is){let Q=O-s;v+=`${j}"...":${k}"${pa(Q)} not stringified"`,j=b}return S!==""&&j.length>1&&(v=`
${T}${v}
-${w}`),g.pop(),`{${v}}`}case"number":return isFinite(x)?String(x):e?e(x):"null";case"boolean":return x===!0?"true":"false";case"undefined":return;case"bigint":if(r)return String(x);default:return e?e(x):void 0}}function o(m,h,g,_,S,T){switch(typeof h=="object"&&h!==null&&typeof h.toJSON=="function"&&(h=h.toJSON(m)),typeof h){case"string":return $3(h);case"object":{if(h===null)return"null";if(g.indexOf(h)!==-1)return n;let x=T,v="",b=",";if(Array.isArray(h)){if(h.length===0)return"[]";if(is){let L=h.length-s-1;v+=`${b}"... ${aa(L)} not stringified"`}return S!==""&&(v+=`
+${T}`);let O=Math.min(h.length,s),k=0;for(;ks){let L=h.length-s-1;v+=`${b}"... ${pa(L)} not stringified"`}return S!==""&&(v+=`
${x}`),g.pop(),`[${v}]`}g.push(h);let w="";S!==""&&(T+=S,b=`,
-${T}`,w=" ");let N="";for(let O of _){let k=o(O,h[O],g,_,S,T);k!==void 0&&(v+=`${N}${$3(O)}:${w}${k}`,N=b)}return S!==""&&N.length>1&&(v=`
+${T}`,w=" ");let N="";for(let O of _){let k=o(O,h[O],g,_,S,T);k!==void 0&&(v+=`${N}${H3(O)}:${w}${k}`,N=b)}return S!==""&&N.length>1&&(v=`
${T}${v}
-${x}`),g.pop(),`{${v}}`}case"number":return isFinite(h)?String(h):e?e(h):"null";case"boolean":return h===!0?"true":"false";case"undefined":return;case"bigint":if(r)return String(h);default:return e?e(h):void 0}}function f(m,h,g,_,S){switch(typeof h){case"string":return $3(h);case"object":{if(h===null)return"null";if(typeof h.toJSON=="function"){if(h=h.toJSON(m),typeof h!="object")return f(m,h,g,_,S);if(h===null)return"null"}if(g.indexOf(h)!==-1)return n;let T=S;if(Array.isArray(h)){if(h.length===0)return"[]";if(is){let Q=h.length-s-1;k+=`${$}"... ${aa(Q)} not stringified"`}return k+=`
+${x}`),g.pop(),`{${v}}`}case"number":return isFinite(h)?String(h):e?e(h):"null";case"boolean":return h===!0?"true":"false";case"undefined":return;case"bigint":if(r)return String(h);default:return e?e(h):void 0}}function c(m,h,g,_,S){switch(typeof h){case"string":return H3(h);case"object":{if(h===null)return"null";if(typeof h.toJSON=="function"){if(h=h.toJSON(m),typeof h!="object")return c(m,h,g,_,S);if(h===null)return"null"}if(g.indexOf(h)!==-1)return n;let T=S;if(Array.isArray(h)){if(h.length===0)return"[]";if(is){let Z=h.length-s-1;k+=`${j}"... ${pa(Z)} not stringified"`}return k+=`
${T}`,g.pop(),`[${k}]`}let x=Object.keys(h),v=x.length;if(v===0)return"{}";if(is){let k=v-s;w+=`${N}"...": "${aa(k)} not stringified"`,N=b}return N!==""&&(w=`
+${S}`,w="",N="",O=Math.min(v,s);Md(h)&&(w+=cR(h,b,s),x=x.slice(h.length),O-=h.length,N=b),l&&(x=Fd(x)),g.push(h);for(let k=0;ks){let k=v-s;w+=`${N}"...": "${pa(k)} not stringified"`,N=b}return N!==""&&(w=`
${S}${w}
-${T}`),g.pop(),`{${w}}`}case"number":return isFinite(h)?String(h):e?e(h):"null";case"boolean":return h===!0?"true":"false";case"undefined":return;case"bigint":if(r)return String(h);default:return e?e(h):void 0}}function c(m,h,g){switch(typeof h){case"string":return $3(h);case"object":{if(h===null)return"null";if(typeof h.toJSON=="function"){if(h=h.toJSON(m),typeof h!="object")return c(m,h,g);if(h===null)return"null"}if(g.indexOf(h)!==-1)return n;let _="";if(Array.isArray(h)){if(h.length===0)return"[]";if(is){let O=h.length-s-1;_+=`,"... ${aa(O)} not stringified"`}return g.pop(),`[${_}]`}let S=Object.keys(h),T=S.length;if(T===0)return"{}";if(is){let b=T-s;_+=`${x}"...":"${aa(b)} not stringified"`}return g.pop(),`{${_}}`}case"number":return isFinite(h)?String(h):e?e(h):"null";case"boolean":return h===!0?"true":"false";case"undefined":return;case"bigint":if(r)return String(h);default:return e?e(h):void 0}}function p(m,h,g){if(arguments.length>1){let _="";if(typeof g=="number"?_=" ".repeat(Math.min(g,10)):typeof g=="string"&&(_=g.slice(0,10)),h!=null){if(typeof h=="function")return a("",{"":m},[],h,_,"");if(Array.isArray(h))return o("",m,[],Xee(h),_,"")}if(_.length!==0)return f("",m,[],_,"")}return c("",m,[])}return p}});var Bw=C((vEe,Uw)=>{"use strict";var vd=Symbol.for("pino.metadata"),{DEFAULT_LEVELS:jw}=Kc(),Kee=jw.info;function Yee(t,e){let n=0;t=t||[],e=e||{dedupe:!1};let r=Object.create(jw);r.silent=1/0,e.levels&&typeof e.levels=="object"&&Object.keys(e.levels).forEach(c=>{r[c]=e.levels[c]});let l={write:i,add:a,flushSync:s,end:o,minLevel:0,streams:[],clone:f,[vd]:!0,streamLevels:r};return Array.isArray(t)?t.forEach(a,l):a.call(l,t),t=null,l;function i(c){let p,m=this.lastLevel,{streams:h}=this,g=0,_;for(let S=Qee(h.length,e.dedupe);ete(S,h.length,e.dedupe);S=Zee(S,e.dedupe))if(p=h[S],p.level<=m){if(g!==0&&g!==p.level)break;if(_=p.stream,_[vd]){let{lastTime:T,lastMsg:x,lastObj:v,lastLogger:b}=this;_.lastLevel=m,_.lastTime=T,_.lastMsg=x,_.lastObj=v,_.lastLogger=b}_.write(c),e.dedupe&&(g=p.level)}else if(!e.dedupe)break}function s(){for(let{stream:c}of this.streams)typeof c.flushSync=="function"&&c.flushSync()}function a(c){if(!c)return l;let p=typeof c.write=="function"||c.stream,m=c.write?c:c.stream;if(!p)throw Error("stream object needs to implement either StreamEntry or DestinationStream interface");let{streams:h,streamLevels:g}=this,_;typeof c.levelVal=="number"?_=c.levelVal:typeof c.level=="string"?_=g[c.level]:typeof c.level=="number"?_=c.level:_=Kee;let S={stream:m,level:_,levelVal:void 0,id:n++};return h.unshift(S),h.sort(Jee),this.minLevel=h[0].level,l}function o(){for(let{stream:c}of this.streams)typeof c.flushSync=="function"&&c.flushSync(),c.end()}function f(c){let p=new Array(this.streams.length);for(let m=0;m=0:t{"use strict";var tte=require("os"),Kw=Fp(),nte=Mp(),rte=Vp(),Yw=DA(),lte=Pw(),Jw=Po(),{configure:ite}=$w(),{assertDefaultLevelFound:ste,mappings:Qw,genLsCache:ate,genLevelComparison:ote,assertLevelComparison:ute}=ud(),{DEFAULT_LEVELS:cte,SORTING_ORDER:fte}=Kc(),{createArgsNormalizer:pte,asChindings:dte,buildSafeSonicBoom:Hw,buildFormatters:hte,stringify:_d,normalizeDestFileDescriptor:qw,noop:mte}=Wc(),{version:gte}=cd(),{chindingsSym:Vw,redactFmtSym:yte,serializersSym:zw,timeSym:vte,timeSliceIndexSym:_te,streamSym:Ete,stringifySym:Gw,stringifySafeSym:Ed,stringifiersSym:Xw,setLevelSym:bte,endSym:Tte,formatOptsSym:Ste,messageKeySym:xte,errorKeySym:Ate,nestedKeySym:wte,mixinSym:Rte,levelCompSym:Ote,useOnlyCustomLevelsSym:Nte,formattersSym:Ww,hooksSym:Ite,nestedKeyStrSym:Cte,mixinMergeStrategySym:kte,msgPrefixSym:Pte}=Jw,{epochTime:Zw,nullTime:Dte}=Yw,{pid:Lte}=process,Fte=tte.hostname(),Mte=Kw.err,$te={level:"info",levelComparison:fte.ASC,levels:cte,messageKey:"msg",errorKey:"err",nestedKey:null,enabled:!0,base:{pid:Lte,hostname:Fte},serializers:Object.assign(Object.create(null),{err:Mte}),formatters:Object.assign(Object.create(null),{bindings(t){return t},level(t,e){return{level:e}}}),hooks:{logMethod:void 0},timestamp:Zw,name:void 0,redact:null,customLevels:null,useOnlyCustomLevels:!1,depthLimit:5,edgeLimit:100},jte=pte($te),Ute=Object.assign(Object.create(null),Kw);function bd(...t){let e={},{opts:n,stream:r}=jte(e,nte(),...t),{redact:l,crlf:i,serializers:s,timestamp:a,messageKey:o,errorKey:f,nestedKey:c,base:p,name:m,level:h,customLevels:g,levelComparison:_,mixin:S,mixinMergeStrategy:T,useOnlyCustomLevels:x,formatters:v,hooks:b,depthLimit:w,edgeLimit:N,onChild:O,msgPrefix:k}=n,$=ite({maximumDepth:w,maximumBreadth:N}),L=hte(v.level,v.bindings,v.log),J=_d.bind({[Ed]:$}),K=l?rte(l,J):{},Q=l?{stringify:K[yte]}:{stringify:J},ye="}"+(i?`\r
+${T}`),g.pop(),`{${w}}`}case"number":return isFinite(h)?String(h):e?e(h):"null";case"boolean":return h===!0?"true":"false";case"undefined":return;case"bigint":if(r)return String(h);default:return e?e(h):void 0}}function f(m,h,g){switch(typeof h){case"string":return H3(h);case"object":{if(h===null)return"null";if(typeof h.toJSON=="function"){if(h=h.toJSON(m),typeof h!="object")return f(m,h,g);if(h===null)return"null"}if(g.indexOf(h)!==-1)return n;let _="";if(Array.isArray(h)){if(h.length===0)return"[]";if(is){let O=h.length-s-1;_+=`,"... ${pa(O)} not stringified"`}return g.pop(),`[${_}]`}let S=Object.keys(h),T=S.length;if(T===0)return"{}";if(is){let b=T-s;_+=`${x}"...":"${pa(b)} not stringified"`}return g.pop(),`{${_}}`}case"number":return isFinite(h)?String(h):e?e(h):"null";case"boolean":return h===!0?"true":"false";case"undefined":return;case"bigint":if(r)return String(h);default:return e?e(h):void 0}}function p(m,h,g){if(arguments.length>1){let _="";if(typeof g=="number"?_=" ".repeat(Math.min(g,10)):typeof g=="string"&&(_=g.slice(0,10)),h!=null){if(typeof h=="function")return a("",{"":m},[],h,_,"");if(Array.isArray(h))return o("",m,[],Hte(h),_,"")}if(_.length!==0)return c("",m,[],_,"")}return f("",m,[])}return p}});var yR=C((Bbe,gR)=>{"use strict";var Ud=Symbol.for("pino.metadata"),{DEFAULT_LEVELS:mR}=f6(),Vte=mR.info;function zte(t,e){let n=0;t=t||[],e=e||{dedupe:!1};let r=Object.create(mR);r.silent=1/0,e.levels&&typeof e.levels=="object"&&Object.keys(e.levels).forEach(f=>{r[f]=e.levels[f]});let l={write:i,add:a,flushSync:s,end:o,minLevel:0,streams:[],clone:c,[Ud]:!0,streamLevels:r};return Array.isArray(t)?t.forEach(a,l):a.call(l,t),t=null,l;function i(f){let p,m=this.lastLevel,{streams:h}=this,g=0,_;for(let S=Xte(h.length,e.dedupe);Kte(S,h.length,e.dedupe);S=Wte(S,e.dedupe))if(p=h[S],p.level<=m){if(g!==0&&g!==p.level)break;if(_=p.stream,_[Ud]){let{lastTime:T,lastMsg:x,lastObj:v,lastLogger:b}=this;_.lastLevel=m,_.lastTime=T,_.lastMsg=x,_.lastObj=v,_.lastLogger=b}_.write(f),e.dedupe&&(g=p.level)}else if(!e.dedupe)break}function s(){for(let{stream:f}of this.streams)typeof f.flushSync=="function"&&f.flushSync()}function a(f){if(!f)return l;let p=typeof f.write=="function"||f.stream,m=f.write?f:f.stream;if(!p)throw Error("stream object needs to implement either StreamEntry or DestinationStream interface");let{streams:h,streamLevels:g}=this,_;typeof f.levelVal=="number"?_=f.levelVal:typeof f.level=="string"?_=g[f.level]:typeof f.level=="number"?_=f.level:_=Vte;let S={stream:m,level:_,levelVal:void 0,id:n++};return h.unshift(S),h.sort(Gte),this.minLevel=h[0].level,l}function o(){for(let{stream:f}of this.streams)typeof f.flushSync=="function"&&f.flushSync(),f.end()}function c(f){let p=new Array(this.streams.length);for(let m=0;m=0:t{"use strict";var Yte=require("os"),AR=ld(),Jte=id(),Qte=pd(),wR=cw(),Zte=uR(),RR=Uo(),{configure:ene}=hR(),{assertDefaultLevelFound:tne,mappings:OR,genLsCache:nne,genLevelComparison:rne,assertLevelComparison:lne}=Cd(),{DEFAULT_LEVELS:ine,SORTING_ORDER:sne}=f6(),{createArgsNormalizer:ane,asChindings:one,buildSafeSonicBoom:vR,buildFormatters:une,stringify:Bd,normalizeDestFileDescriptor:_R,noop:cne}=c6(),{version:fne}=kd(),{chindingsSym:ER,redactFmtSym:pne,serializersSym:bR,timeSym:dne,timeSliceIndexSym:hne,streamSym:mne,stringifySym:TR,stringifySafeSym:Hd,stringifiersSym:SR,setLevelSym:gne,endSym:yne,formatOptsSym:vne,messageKeySym:_ne,errorKeySym:Ene,nestedKeySym:bne,mixinSym:Tne,levelCompSym:Sne,useOnlyCustomLevelsSym:xne,formattersSym:xR,hooksSym:Ane,nestedKeyStrSym:wne,mixinMergeStrategySym:Rne,msgPrefixSym:One}=RR,{epochTime:NR,nullTime:Nne}=wR,{pid:Ine}=process,Cne=Yte.hostname(),kne=AR.err,Pne={level:"info",levelComparison:sne.ASC,levels:ine,messageKey:"msg",errorKey:"err",nestedKey:null,enabled:!0,base:{pid:Ine,hostname:Cne},serializers:Object.assign(Object.create(null),{err:kne}),formatters:Object.assign(Object.create(null),{bindings(t){return t},level(t,e){return{level:e}}}),hooks:{logMethod:void 0},timestamp:NR,name:void 0,redact:null,customLevels:null,useOnlyCustomLevels:!1,depthLimit:5,edgeLimit:100},Dne=ane(Pne),Lne=Object.assign(Object.create(null),AR);function qd(...t){let e={},{opts:n,stream:r}=Dne(e,Jte(),...t),{redact:l,crlf:i,serializers:s,timestamp:a,messageKey:o,errorKey:c,nestedKey:f,base:p,name:m,level:h,customLevels:g,levelComparison:_,mixin:S,mixinMergeStrategy:T,useOnlyCustomLevels:x,formatters:v,hooks:b,depthLimit:w,edgeLimit:N,onChild:O,msgPrefix:k}=n,j=ene({maximumDepth:w,maximumBreadth:N}),L=une(v.level,v.bindings,v.log),Q=Bd.bind({[Hd]:j}),Y=l?Qte(l,Q):{},Z=l?{stringify:Y[pne]}:{stringify:Q},ve="}"+(i?`\r
`:`
-`),Oe=dte.bind(null,{[Vw]:"",[zw]:s,[Xw]:K,[Gw]:_d,[Ed]:$,[Ww]:L}),fe="";p!==null&&(m===void 0?fe=Oe(p):fe=Oe(Object.assign({},p,{name:m})));let se=a instanceof Function?a:a?Zw:Dte,ge=se().indexOf(":")+1;if(x&&!g)throw Error("customLevels is required if useOnlyCustomLevels is set true");if(S&&typeof S!="function")throw Error(`Unknown mixin type "${typeof S}" - expected "function"`);if(k&&typeof k!="string")throw Error(`Unknown msgPrefix type "${typeof k}" - expected "string"`);ste(h,g,x);let H=Qw(g,x);ute(_);let re=ote(_);return Object.assign(e,{levels:H,[Ote]:re,[Nte]:x,[Ete]:r,[vte]:se,[_te]:ge,[Gw]:_d,[Ed]:$,[Xw]:K,[Tte]:ye,[Ste]:Q,[xte]:o,[Ate]:f,[wte]:c,[Cte]:c?`,${JSON.stringify(c)}:{`:"",[zw]:s,[Rte]:S,[kte]:T,[Vw]:fe,[Ww]:L,[Ite]:b,silent:mte,onChild:O,[Pte]:k}),Object.setPrototypeOf(e,lte()),ate(e),e[bte](h),e}d2.exports=bd;d2.exports.destination=(t=process.stdout.fd)=>typeof t=="object"?(t.dest=qw(t.dest||process.stdout.fd),Hw(t)):Hw({dest:qw(t),minLength:0});d2.exports.transport=rd();d2.exports.multistream=Bw();d2.exports.levels=Qw();d2.exports.stdSerializers=Ute;d2.exports.stdTimeFunctions=Object.assign({},Yw);d2.exports.symbols=Jw;d2.exports.version=gte;d2.exports.default=bd;d2.exports.pino=bd});var X4=C((EEe,iR)=>{"use strict";var Bte=Vx(),Jc=eR(),{serializersSym:tR}=Jc.symbols,{FST_ERR_LOG_INVALID_DESTINATION:Hte,FST_ERR_LOG_INVALID_LOGGER:qte}=il();function nR(t){if(t.stream&&t.file)throw new Hte;t.file&&(t.stream=Jc.destination(t.file),delete t.file);let e=t.logger,n=t.genReqId,r=null;return e?(t.logger=void 0,t.genReqId=void 0,e[tR]&&(t.serializers=Object.assign({},t.serializers,e[tR])),r=e.child({},t),t.logger=e,t.genReqId=n):r=Jc(t,t.stream),r}var Td={req:function(e){return{method:e.method,url:e.url,version:e.headers&&e.headers["accept-version"],hostname:e.hostname,remoteAddress:e.ip,remotePort:e.socket?e.socket.remotePort:void 0}},err:Jc.stdSerializers.err,res:function(e){return{statusCode:e.statusCode}}};function Vte(){let t=process.hrtime();return t[0]*1e3+t[1]/1e6}function zte(t){if(!t.logger){let r=Bte;return r.child=()=>r,{logger:r,hasLogger:!1}}if(rR(t.logger))return{logger:nR({logger:t.logger,serializers:Object.assign({},Td,t.logger.serializers)}),hasLogger:!0};let e={};return Object.prototype.toString.call(t.logger)==="[object Object]"&&Reflect.ownKeys(t.logger).forEach(r=>{Object.defineProperty(e,r,{value:t.logger[r],writable:!0,enumerable:!0,configurable:!0})}),e.level=e.level||"info",e.serializers=Object.assign({},Td,e.serializers),t.logger=e,{logger:nR(t.logger),hasLogger:!0}}function rR(t,e){let n=["info","error","debug","fatal","warn","trace","child"],r=t?n.filter(l=>!t[l]||typeof t[l]!="function"):n;if(r.length){if(r.length===n.length&&!e)return!1;throw qte(r.join(","))}else return!0}function Gte(t,e,n,r,l){let i={[t.requestIdLogLabel]:r},s=t.childLoggerFactory.call(t.server,e,i,l||{},n);return t.childLoggerFactory!==lR&&rR(s,!0),s}function lR(t,e,n){return t.child(e,n)}iR.exports={createLogger:zte,createChildLogger:Gte,defaultChildLoggerFactory:lR,serializers:Td,now:Vte}});var W4=C((bEe,sR)=>{"use strict";sR.exports=Xte;function Fo(t){return t instanceof Buffer?Buffer.from(t):new t.constructor(t.buffer.slice(),t.byteOffset,t.length)}function Xte(t){if(t=t||{},t.circles)return Wte(t);return t.proto?r:n;function e(l,i){for(var s=Object.keys(l),a=new Array(s.length),o=0;o{"use strict";var Kte=W4()({circles:!1,proto:!0}),{kSchemaVisited:aR,kSchemaResponse:Yte}=Dr(),xd=Symbol.for("fluent-schema-object"),{FST_ERR_SCH_MISSING_ID:Jte,FST_ERR_SCH_ALREADY_PRESENT:Qte,FST_ERR_SCH_DUPLICATE:Zte,FST_ERR_SCH_CONTENT_MISSING_SCHEMA:ene}=il(),uR=["params","body","querystring","query","headers"];function Qc(t){this.store=t||{}}Qc.prototype.add=function(t){let e=Kte(t.isFluentSchema||t.isFluentJSONSchema||t[xd]?t.valueOf():t),n=e.$id;if(!n)throw new Jte;if(this.store[n])throw new Qte(n);this.store[n]=e};Qc.prototype.getSchemas=function(){return Object.assign({},this.store)};Qc.prototype.getSchema=function(t){return this.store[t]};function oR(t){return typeof t=="object"&&Object.getPrototypeOf(t)!==Object.prototype}function tne(t,e){if(t[aR])return t;if(t.query){if(t.querystring)throw new Zte("querystring");t.querystring=t.query}nne(t);for(let n of uR){let r=t[n];r&&!oR(r)&&(t[n]=Sd(r,e.jsonShorthand))}if(t.response){let n=Object.keys(t.response);for(let r of n){if(oR(t.response[r]))continue;let l=t.response[r].content,i=!1;if(l){let s=Object.keys(l);for(let a=0;a{"use strict";var lne=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/;pR.exports=class fR{constructor(e){switch(e&&e.rounding){case"floor":this.parseInteger=Math.floor;break;case"ceil":this.parseInteger=Math.ceil;break;case"round":this.parseInteger=Math.round;break;case"trunc":default:this.parseInteger=Math.trunc;break}this._options=e}asInteger(e){if(typeof e=="number"){if(e===1/0||e===-1/0)throw new Error(`The value "${e}" cannot be converted to an integer.`);if(Number.isInteger(e))return""+e;if(Number.isNaN(e))throw new Error(`The value "${e}" cannot be converted to an integer.`);return this.parseInteger(e)}else{if(e===null)return"0";if(typeof e=="bigint")return e.toString();{let n=this.parseInteger(e);if(Number.isFinite(n))return""+n;throw new Error(`The value "${e}" cannot be converted to an integer.`)}}}asNumber(e){let n=Number(e);if(Number.isNaN(n))throw new Error(`The value "${e}" cannot be converted to a number.`);return Number.isFinite(n)?""+n:"null"}asBoolean(e){return e&&"true"||"false"}asDateTime(e){if(e===null)return'""';if(e instanceof Date)return'"'+e.toISOString()+'"';if(typeof e=="string")return'"'+e+'"';throw new Error(`The value "${e}" cannot be converted to a date-time.`)}asDate(e){if(e===null)return'""';if(e instanceof Date)return'"'+new Date(e.getTime()-e.getTimezoneOffset()*6e4).toISOString().slice(0,10)+'"';if(typeof e=="string")return'"'+e+'"';throw new Error(`The value "${e}" cannot be converted to a date.`)}asTime(e){if(e===null)return'""';if(e instanceof Date)return'"'+new Date(e.getTime()-e.getTimezoneOffset()*6e4).toISOString().slice(11,19)+'"';if(typeof e=="string")return'"'+e+'"';throw new Error(`The value "${e}" cannot be converted to a time.`)}asString(e){if(typeof e!="string"){if(e===null)return'""';if(e instanceof Date)return'"'+e.toISOString()+'"';e instanceof RegExp?e=e.source:e=e.toString()}return e.length<42?this.asStringSmall(e):lne.test(e)===!1?'"'+e+'"':JSON.stringify(e)}asStringSmall(e){let n=e.length,r="",l=-1,i=255;for(var s=0;s=55296&&i<=57343)return JSON.stringify(e);(i===34||i===92)&&(l===-1&&(l=0),r+=e.slice(l,s)+"\\",l=s)}return l===-1&&'"'+e+'"'||'"'+r+e.slice(l)+'"'}getState(){return this._options}static restoreFromState(e){return new fR(e)}}});var Mo=C(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.regexpCode=Ht.getEsmExportName=Ht.getProperty=Ht.safeStringify=Ht.stringify=Ht.strConcat=Ht.addCodeArg=Ht.str=Ht._=Ht.nil=Ht._Code=Ht.Name=Ht.IDENTIFIER=Ht._CodeOrName=void 0;var Y4=class{};Ht._CodeOrName=Y4;Ht.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var ua=class extends Y4{constructor(e){if(super(),!Ht.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};Ht.Name=ua;var h2=class extends Y4{constructor(e){super(),this._items=typeof e=="string"?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return e===""||e==='""'}get str(){var e;return(e=this._str)!==null&&e!==void 0?e:this._str=this._items.reduce((n,r)=>`${n}${r}`,"")}get names(){var e;return(e=this._names)!==null&&e!==void 0?e:this._names=this._items.reduce((n,r)=>(r instanceof ua&&(n[r.str]=(n[r.str]||0)+1),n),{})}};Ht._Code=h2;Ht.nil=new h2("");function dR(t,...e){let n=[t[0]],r=0;for(;r{"use strict";Object.defineProperty(_l,"__esModule",{value:!0});_l.ValueScope=_l.ValueScopeName=_l.Scope=_l.varKinds=_l.UsedValueState=void 0;var Dl=Mo(),Od=class extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}},Nd;(function(t){t[t.Started=0]="Started",t[t.Completed=1]="Completed"})(Nd=_l.UsedValueState||(_l.UsedValueState={}));_l.varKinds={const:new Dl.Name("const"),let:new Dl.Name("let"),var:new Dl.Name("var")};var Zc=class{constructor({prefixes:e,parent:n}={}){this._names={},this._prefixes=e,this._parent=n}toName(e){return e instanceof Dl.Name?e:this.name(e)}name(e){return new Dl.Name(this._newName(e))}_newName(e){let n=this._names[e]||this._nameGroup(e);return`${e}${n.index++}`}_nameGroup(e){var n,r;if(!((r=(n=this._parent)===null||n===void 0?void 0:n._prefixes)===null||r===void 0)&&r.has(e)||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}};_l.Scope=Zc;var e6=class extends Dl.Name{constructor(e,n){super(n),this.prefix=e}setValue(e,{property:n,itemIndex:r}){this.value=e,this.scopePath=(0,Dl._)`.${new Dl.Name(n)}[${r}]`}};_l.ValueScopeName=e6;var dne=(0,Dl._)`\n`,Id=class extends Zc{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?dne:Dl.nil}}get(){return this._scope}name(e){return new e6(e,this._newName(e))}value(e,n){var r;if(n.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let l=this.toName(e),{prefix:i}=l,s=(r=n.key)!==null&&r!==void 0?r:n.ref,a=this._values[i];if(a){let c=a.get(s);if(c)return c}else a=this._values[i]=new Map;a.set(s,l);let o=this._scope[i]||(this._scope[i]=[]),f=o.length;return o[f]=n.ref,l.setValue(n,{property:i,itemIndex:f}),l}getValue(e,n){let r=this._values[e];if(r)return r.get(n)}scopeRefs(e,n=this._values){return this._reduceValues(n,r=>{if(r.scopePath===void 0)throw new Error(`CodeGen: name "${r}" has no value`);return(0,Dl._)`${e}${r.scopePath}`})}scopeCode(e=this._values,n,r){return this._reduceValues(e,l=>{if(l.value===void 0)throw new Error(`CodeGen: name "${l}" has no value`);return l.value.code},n,r)}_reduceValues(e,n,r={},l){let i=Dl.nil;for(let s in e){let a=e[s];if(!a)continue;let o=r[s]=r[s]||new Map;a.forEach(f=>{if(o.has(f))return;o.set(f,Nd.Started);let c=n(f);if(c){let p=this.opts.es5?_l.varKinds.var:_l.varKinds.const;i=(0,Dl._)`${i}${p} ${f} = ${c};${this.opts._n}`}else if(c=l?.(f))i=(0,Dl._)`${i}${c}${this.opts._n}`;else throw new Od(f);o.set(f,Nd.Completed)})}return i}};_l.ValueScope=Id});var Je=C(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.or=Et.and=Et.not=Et.CodeGen=Et.operators=Et.varKinds=Et.ValueScopeName=Et.ValueScope=Et.Scope=Et.Name=Et.regexpCode=Et.stringify=Et.getProperty=Et.nil=Et.strConcat=Et.str=Et._=void 0;var Dt=Mo(),$2=t6(),j3=Mo();Object.defineProperty(Et,"_",{enumerable:!0,get:function(){return j3._}});Object.defineProperty(Et,"str",{enumerable:!0,get:function(){return j3.str}});Object.defineProperty(Et,"strConcat",{enumerable:!0,get:function(){return j3.strConcat}});Object.defineProperty(Et,"nil",{enumerable:!0,get:function(){return j3.nil}});Object.defineProperty(Et,"getProperty",{enumerable:!0,get:function(){return j3.getProperty}});Object.defineProperty(Et,"stringify",{enumerable:!0,get:function(){return j3.stringify}});Object.defineProperty(Et,"regexpCode",{enumerable:!0,get:function(){return j3.regexpCode}});Object.defineProperty(Et,"Name",{enumerable:!0,get:function(){return j3.Name}});var i6=t6();Object.defineProperty(Et,"Scope",{enumerable:!0,get:function(){return i6.Scope}});Object.defineProperty(Et,"ValueScope",{enumerable:!0,get:function(){return i6.ValueScope}});Object.defineProperty(Et,"ValueScopeName",{enumerable:!0,get:function(){return i6.ValueScopeName}});Object.defineProperty(Et,"varKinds",{enumerable:!0,get:function(){return i6.varKinds}});Et.operators={GT:new Dt._Code(">"),GTE:new Dt._Code(">="),LT:new Dt._Code("<"),LTE:new Dt._Code("<="),EQ:new Dt._Code("==="),NEQ:new Dt._Code("!=="),NOT:new Dt._Code("!"),OR:new Dt._Code("||"),AND:new Dt._Code("&&"),ADD:new Dt._Code("+")};var n3=class{optimizeNodes(){return this}optimizeNames(e,n){return this}},Cd=class extends n3{constructor(e,n,r){super(),this.varKind=e,this.name=n,this.rhs=r}render({es5:e,_n:n}){let r=e?$2.varKinds.var:this.varKind,l=this.rhs===void 0?"":` = ${this.rhs}`;return`${r} ${this.name}${l};`+n}optimizeNames(e,n){if(e[this.name.str])return this.rhs&&(this.rhs=jo(this.rhs,e,n)),this}get names(){return this.rhs instanceof Dt._CodeOrName?this.rhs.names:{}}},n6=class extends n3{constructor(e,n,r){super(),this.lhs=e,this.rhs=n,this.sideEffects=r}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,n){if(!(this.lhs instanceof Dt.Name&&!e[this.lhs.str]&&!this.sideEffects))return this.rhs=jo(this.rhs,e,n),this}get names(){let e=this.lhs instanceof Dt.Name?{}:{...this.lhs.names};return l6(e,this.rhs)}},kd=class extends n6{constructor(e,n,r,l){super(e,r,l),this.op=n}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},Pd=class extends n3{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},Dd=class extends n3{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}},Ld=class extends n3{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},Fd=class extends n3{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,n){return this.code=jo(this.code,e,n),this}get names(){return this.code instanceof Dt._CodeOrName?this.code.names:{}}},Q4=class extends n3{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((n,r)=>n+r.render(e),"")}optimizeNodes(){let{nodes:e}=this,n=e.length;for(;n--;){let r=e[n].optimizeNodes();Array.isArray(r)?e.splice(n,1,...r):r?e[n]=r:e.splice(n,1)}return e.length>0?this:void 0}optimizeNames(e,n){let{nodes:r}=this,l=r.length;for(;l--;){let i=r[l];i.optimizeNames(e,n)||(hne(e,i.names),r.splice(l,1))}return r.length>0?this:void 0}get names(){return this.nodes.reduce((e,n)=>pa(e,n.names),{})}},r3=class extends Q4{render(e){return"{"+e._n+super.render(e)+"}"+e._n}},Md=class extends Q4{},$o=class extends r3{};$o.kind="else";var ca=class t extends r3{constructor(e,n){super(n),this.condition=e}render(e){let n=`if(${this.condition})`+super.render(e);return this.else&&(n+="else "+this.else.render(e)),n}optimizeNodes(){super.optimizeNodes();let e=this.condition;if(e===!0)return this.nodes;let n=this.else;if(n){let r=n.optimizeNodes();n=this.else=Array.isArray(r)?new $o(r):r}if(n)return e===!1?n instanceof t?n:n.nodes:this.nodes.length?this:new t(mR(e),n instanceof t?[n]:n.nodes);if(!(e===!1||!this.nodes.length))return this}optimizeNames(e,n){var r;if(this.else=(r=this.else)===null||r===void 0?void 0:r.optimizeNames(e,n),!!(super.optimizeNames(e,n)||this.else))return this.condition=jo(this.condition,e,n),this}get names(){let e=super.names;return l6(e,this.condition),this.else&&pa(e,this.else.names),e}};ca.kind="if";var fa=class extends r3{};fa.kind="for";var $d=class extends fa{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,n){if(super.optimizeNames(e,n))return this.iteration=jo(this.iteration,e,n),this}get names(){return pa(super.names,this.iteration.names)}},jd=class extends fa{constructor(e,n,r,l){super(),this.varKind=e,this.name=n,this.from=r,this.to=l}render(e){let n=e.es5?$2.varKinds.var:this.varKind,{name:r,from:l,to:i}=this;return`for(${n} ${r}=${l}; ${r}<${i}; ${r}++)`+super.render(e)}get names(){let e=l6(super.names,this.from);return l6(e,this.to)}},r6=class extends fa{constructor(e,n,r,l){super(),this.loop=e,this.varKind=n,this.name=r,this.iterable=l}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,n){if(super.optimizeNames(e,n))return this.iterable=jo(this.iterable,e,n),this}get names(){return pa(super.names,this.iterable.names)}},Z4=class extends r3{constructor(e,n,r){super(),this.name=e,this.args=n,this.async=r}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}};Z4.kind="func";var e1=class extends Q4{render(e){return"return "+super.render(e)}};e1.kind="return";var Ud=class extends r3{render(e){let n="try"+super.render(e);return this.catch&&(n+=this.catch.render(e)),this.finally&&(n+=this.finally.render(e)),n}optimizeNodes(){var e,n;return super.optimizeNodes(),(e=this.catch)===null||e===void 0||e.optimizeNodes(),(n=this.finally)===null||n===void 0||n.optimizeNodes(),this}optimizeNames(e,n){var r,l;return super.optimizeNames(e,n),(r=this.catch)===null||r===void 0||r.optimizeNames(e,n),(l=this.finally)===null||l===void 0||l.optimizeNames(e,n),this}get names(){let e=super.names;return this.catch&&pa(e,this.catch.names),this.finally&&pa(e,this.finally.names),e}},t1=class extends r3{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};t1.kind="catch";var n1=class extends r3{render(e){return"finally"+super.render(e)}};n1.kind="finally";var Bd=class{constructor(e,n={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...n,_n:n.lines?`
-`:""},this._extScope=e,this._scope=new $2.Scope({parent:e}),this._nodes=[new Md]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,n){let r=this._extScope.value(e,n);return(this._values[r.prefix]||(this._values[r.prefix]=new Set)).add(r),r}getScopeValue(e,n){return this._extScope.getValue(e,n)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,n,r,l){let i=this._scope.toName(n);return r!==void 0&&l&&(this._constants[i.str]=r),this._leafNode(new Cd(e,i,r)),i}const(e,n,r){return this._def($2.varKinds.const,e,n,r)}let(e,n,r){return this._def($2.varKinds.let,e,n,r)}var(e,n,r){return this._def($2.varKinds.var,e,n,r)}assign(e,n,r){return this._leafNode(new n6(e,n,r))}add(e,n){return this._leafNode(new kd(e,Et.operators.ADD,n))}code(e){return typeof e=="function"?e():e!==Dt.nil&&this._leafNode(new Fd(e)),this}object(...e){let n=["{"];for(let[r,l]of e)n.length>1&&n.push(","),n.push(r),(r!==l||this.opts.es5)&&(n.push(":"),(0,Dt.addCodeArg)(n,l));return n.push("}"),new Dt._Code(n)}if(e,n,r){if(this._blockNode(new ca(e)),n&&r)this.code(n).else().code(r).endIf();else if(n)this.code(n).endIf();else if(r)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new ca(e))}else(){return this._elseNode(new $o)}endIf(){return this._endBlockNode(ca,$o)}_for(e,n){return this._blockNode(e),n&&this.code(n).endFor(),this}for(e,n){return this._for(new $d(e),n)}forRange(e,n,r,l,i=this.opts.es5?$2.varKinds.var:$2.varKinds.let){let s=this._scope.toName(e);return this._for(new jd(i,s,n,r),()=>l(s))}forOf(e,n,r,l=$2.varKinds.const){let i=this._scope.toName(e);if(this.opts.es5){let s=n instanceof Dt.Name?n:this.var("_arr",n);return this.forRange("_i",0,(0,Dt._)`${s}.length`,a=>{this.var(i,(0,Dt._)`${s}[${a}]`),r(i)})}return this._for(new r6("of",l,i,n),()=>r(i))}forIn(e,n,r,l=this.opts.es5?$2.varKinds.var:$2.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,Dt._)`Object.keys(${n})`,r);let i=this._scope.toName(e);return this._for(new r6("in",l,i,n),()=>r(i))}endFor(){return this._endBlockNode(fa)}label(e){return this._leafNode(new Pd(e))}break(e){return this._leafNode(new Dd(e))}return(e){let n=new e1;if(this._blockNode(n),this.code(e),n.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(e1)}try(e,n,r){if(!n&&!r)throw new Error('CodeGen: "try" without "catch" and "finally"');let l=new Ud;if(this._blockNode(l),this.code(e),n){let i=this.name("e");this._currNode=l.catch=new t1(i),n(i)}return r&&(this._currNode=l.finally=new n1,this.code(r)),this._endBlockNode(t1,n1)}throw(e){return this._leafNode(new Ld(e))}block(e,n){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(n),this}endBlock(e){let n=this._blockStarts.pop();if(n===void 0)throw new Error("CodeGen: not in self-balancing block");let r=this._nodes.length-n;if(r<0||e!==void 0&&r!==e)throw new Error(`CodeGen: wrong number of nodes: ${r} vs ${e} expected`);return this._nodes.length=n,this}func(e,n=Dt.nil,r,l){return this._blockNode(new Z4(e,n,r)),l&&this.code(l).endFunc(),this}endFunc(){return this._endBlockNode(Z4)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,n){let r=this._currNode;if(r instanceof e||n&&r instanceof n)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${n?`${e.kind}/${n.kind}`:e.kind}"`)}_elseNode(e){let n=this._currNode;if(!(n instanceof ca))throw new Error('CodeGen: "else" without "if"');return this._currNode=n.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let n=this._nodes;n[n.length-1]=e}};Et.CodeGen=Bd;function pa(t,e){for(let n in e)t[n]=(t[n]||0)+(e[n]||0);return t}function l6(t,e){return e instanceof Dt._CodeOrName?pa(t,e.names):t}function jo(t,e,n){if(t instanceof Dt.Name)return r(t);if(!l(t))return t;return new Dt._Code(t._items.reduce((i,s)=>(s instanceof Dt.Name&&(s=r(s)),s instanceof Dt._Code?i.push(...s._items):i.push(s),i),[]));function r(i){let s=n[i.str];return s===void 0||e[i.str]!==1?i:(delete e[i.str],s)}function l(i){return i instanceof Dt._Code&&i._items.some(s=>s instanceof Dt.Name&&e[s.str]===1&&n[s.str]!==void 0)}}function hne(t,e){for(let n in e)t[n]=(t[n]||0)-(e[n]||0)}function mR(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:(0,Dt._)`!${Hd(t)}`}Et.not=mR;var mne=gR(Et.operators.AND);function gne(...t){return t.reduce(mne)}Et.and=gne;var yne=gR(Et.operators.OR);function vne(...t){return t.reduce(yne)}Et.or=vne;function gR(t){return(e,n)=>e===Dt.nil?n:n===Dt.nil?e:(0,Dt._)`${Hd(e)} ${t} ${Hd(n)}`}function Hd(t){return t instanceof Dt.Name?t:(0,Dt._)`(${t})`}});var yt=C(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.checkStrictMode=bt.getErrorPath=bt.Type=bt.useFunc=bt.setEvaluated=bt.evaluatedPropsToName=bt.mergeEvaluated=bt.eachItem=bt.unescapeJsonPointer=bt.escapeJsonPointer=bt.escapeFragment=bt.unescapeFragment=bt.schemaRefOrVal=bt.schemaHasRulesButRef=bt.schemaHasRules=bt.checkUnknownRules=bt.alwaysValidSchema=bt.toHash=void 0;var En=Je(),_ne=Mo();function Ene(t){let e={};for(let n of t)e[n]=!0;return e}bt.toHash=Ene;function bne(t,e){return typeof e=="boolean"?e:Object.keys(e).length===0?!0:(_R(t,e),!ER(e,t.self.RULES.all))}bt.alwaysValidSchema=bne;function _R(t,e=t.schema){let{opts:n,self:r}=t;if(!n.strictSchema||typeof e=="boolean")return;let l=r.RULES.keywords;for(let i in e)l[i]||xR(t,`unknown keyword: "${i}"`)}bt.checkUnknownRules=_R;function ER(t,e){if(typeof t=="boolean")return!t;for(let n in t)if(e[n])return!0;return!1}bt.schemaHasRules=ER;function Tne(t,e){if(typeof t=="boolean")return!t;for(let n in t)if(n!=="$ref"&&e.all[n])return!0;return!1}bt.schemaHasRulesButRef=Tne;function Sne({topSchemaRef:t,schemaPath:e},n,r,l){if(!l){if(typeof n=="number"||typeof n=="boolean")return n;if(typeof n=="string")return(0,En._)`${n}`}return(0,En._)`${t}${e}${(0,En.getProperty)(r)}`}bt.schemaRefOrVal=Sne;function xne(t){return bR(decodeURIComponent(t))}bt.unescapeFragment=xne;function Ane(t){return encodeURIComponent(qd(t))}bt.escapeFragment=Ane;function qd(t){return typeof t=="number"?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}bt.escapeJsonPointer=qd;function bR(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}bt.unescapeJsonPointer=bR;function wne(t,e){if(Array.isArray(t))for(let n of t)e(n);else e(t)}bt.eachItem=wne;function yR({mergeNames:t,mergeToName:e,mergeValues:n,resultToName:r}){return(l,i,s,a)=>{let o=s===void 0?i:s instanceof En.Name?(i instanceof En.Name?t(l,i,s):e(l,i,s),s):i instanceof En.Name?(e(l,s,i),i):n(i,s);return a===En.Name&&!(o instanceof En.Name)?r(l,o):o}}bt.mergeEvaluated={props:yR({mergeNames:(t,e,n)=>t.if((0,En._)`${n} !== true && ${e} !== undefined`,()=>{t.if((0,En._)`${e} === true`,()=>t.assign(n,!0),()=>t.assign(n,(0,En._)`${n} || {}`).code((0,En._)`Object.assign(${n}, ${e})`))}),mergeToName:(t,e,n)=>t.if((0,En._)`${n} !== true`,()=>{e===!0?t.assign(n,!0):(t.assign(n,(0,En._)`${n} || {}`),Vd(t,n,e))}),mergeValues:(t,e)=>t===!0?!0:{...t,...e},resultToName:TR}),items:yR({mergeNames:(t,e,n)=>t.if((0,En._)`${n} !== true && ${e} !== undefined`,()=>t.assign(n,(0,En._)`${e} === true ? true : ${n} > ${e} ? ${n} : ${e}`)),mergeToName:(t,e,n)=>t.if((0,En._)`${n} !== true`,()=>t.assign(n,e===!0?!0:(0,En._)`${n} > ${e} ? ${n} : ${e}`)),mergeValues:(t,e)=>t===!0?!0:Math.max(t,e),resultToName:(t,e)=>t.var("items",e)})};function TR(t,e){if(e===!0)return t.var("props",!0);let n=t.var("props",(0,En._)`{}`);return e!==void 0&&Vd(t,n,e),n}bt.evaluatedPropsToName=TR;function Vd(t,e,n){Object.keys(n).forEach(r=>t.assign((0,En._)`${e}${(0,En.getProperty)(r)}`,!0))}bt.setEvaluated=Vd;var vR={};function Rne(t,e){return t.scopeValue("func",{ref:e,code:vR[e.code]||(vR[e.code]=new _ne._Code(e.code))})}bt.useFunc=Rne;var SR;(function(t){t[t.Num=0]="Num",t[t.Str=1]="Str"})(SR=bt.Type||(bt.Type={}));function One(t,e,n){if(t instanceof En.Name){let r=e===SR.Num;return n?r?(0,En._)`"[" + ${t} + "]"`:(0,En._)`"['" + ${t} + "']"`:r?(0,En._)`"/" + ${t}`:(0,En._)`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,En.getProperty)(t).toString():"/"+qd(t)}bt.getErrorPath=One;function xR(t,e,n=t.opts.strictSchema){if(n){if(e=`strict mode: ${e}`,n===!0)throw new Error(e);t.self.logger.warn(e)}}bt.checkStrictMode=xR});var m2=C(zd=>{"use strict";Object.defineProperty(zd,"__esModule",{value:!0});var al=Je(),Nne={data:new al.Name("data"),valCxt:new al.Name("valCxt"),instancePath:new al.Name("instancePath"),parentData:new al.Name("parentData"),parentDataProperty:new al.Name("parentDataProperty"),rootData:new al.Name("rootData"),dynamicAnchors:new al.Name("dynamicAnchors"),vErrors:new al.Name("vErrors"),errors:new al.Name("errors"),this:new al.Name("this"),self:new al.Name("self"),scope:new al.Name("scope"),json:new al.Name("json"),jsonPos:new al.Name("jsonPos"),jsonLen:new al.Name("jsonLen"),jsonPart:new al.Name("jsonPart")};zd.default=Nne});var r1=C(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});ol.extendErrors=ol.resetErrorsCount=ol.reportExtraError=ol.reportError=ol.keyword$DataError=ol.keywordError=void 0;var $t=Je(),s6=yt(),El=m2();ol.keywordError={message:({keyword:t})=>(0,$t.str)`must pass "${t}" keyword validation`};ol.keyword$DataError={message:({keyword:t,schemaType:e})=>e?(0,$t.str)`"${t}" keyword must be ${e} ($data)`:(0,$t.str)`"${t}" keyword is invalid ($data)`};function Ine(t,e=ol.keywordError,n,r){let{it:l}=t,{gen:i,compositeRule:s,allErrors:a}=l,o=RR(t,e,n);r??(s||a)?AR(i,o):wR(l,(0,$t._)`[${o}]`)}ol.reportError=Ine;function Cne(t,e=ol.keywordError,n){let{it:r}=t,{gen:l,compositeRule:i,allErrors:s}=r,a=RR(t,e,n);AR(l,a),i||s||wR(r,El.default.vErrors)}ol.reportExtraError=Cne;function kne(t,e){t.assign(El.default.errors,e),t.if((0,$t._)`${El.default.vErrors} !== null`,()=>t.if(e,()=>t.assign((0,$t._)`${El.default.vErrors}.length`,e),()=>t.assign(El.default.vErrors,null)))}ol.resetErrorsCount=kne;function Pne({gen:t,keyword:e,schemaValue:n,data:r,errsCount:l,it:i}){if(l===void 0)throw new Error("ajv implementation error");let s=t.name("err");t.forRange("i",l,El.default.errors,a=>{t.const(s,(0,$t._)`${El.default.vErrors}[${a}]`),t.if((0,$t._)`${s}.instancePath === undefined`,()=>t.assign((0,$t._)`${s}.instancePath`,(0,$t.strConcat)(El.default.instancePath,i.errorPath))),t.assign((0,$t._)`${s}.schemaPath`,(0,$t.str)`${i.errSchemaPath}/${e}`),i.opts.verbose&&(t.assign((0,$t._)`${s}.schema`,n),t.assign((0,$t._)`${s}.data`,r))})}ol.extendErrors=Pne;function AR(t,e){let n=t.const("err",e);t.if((0,$t._)`${El.default.vErrors} === null`,()=>t.assign(El.default.vErrors,(0,$t._)`[${n}]`),(0,$t._)`${El.default.vErrors}.push(${n})`),t.code((0,$t._)`${El.default.errors}++`)}function wR(t,e){let{gen:n,validateName:r,schemaEnv:l}=t;l.$async?n.throw((0,$t._)`new ${t.ValidationError}(${e})`):(n.assign((0,$t._)`${r}.errors`,e),n.return(!1))}var da={keyword:new $t.Name("keyword"),schemaPath:new $t.Name("schemaPath"),params:new $t.Name("params"),propertyName:new $t.Name("propertyName"),message:new $t.Name("message"),schema:new $t.Name("schema"),parentSchema:new $t.Name("parentSchema")};function RR(t,e,n){let{createErrors:r}=t.it;return r===!1?(0,$t._)`{}`:Dne(t,e,n)}function Dne(t,e,n={}){let{gen:r,it:l}=t,i=[Lne(l,n),Fne(t,n)];return Mne(t,e,i),r.object(...i)}function Lne({errorPath:t},{instancePath:e}){let n=e?(0,$t.str)`${t}${(0,s6.getErrorPath)(e,s6.Type.Str)}`:t;return[El.default.instancePath,(0,$t.strConcat)(El.default.instancePath,n)]}function Fne({keyword:t,it:{errSchemaPath:e}},{schemaPath:n,parentSchema:r}){let l=r?e:(0,$t.str)`${e}/${t}`;return n&&(l=(0,$t.str)`${l}${(0,s6.getErrorPath)(n,s6.Type.Str)}`),[da.schemaPath,l]}function Mne(t,{params:e,message:n},r){let{keyword:l,data:i,schemaValue:s,it:a}=t,{opts:o,propertyName:f,topSchemaRef:c,schemaPath:p}=a;r.push([da.keyword,l],[da.params,typeof e=="function"?e(t):e||(0,$t._)`{}`]),o.messages&&r.push([da.message,typeof n=="function"?n(t):n]),o.verbose&&r.push([da.schema,s],[da.parentSchema,(0,$t._)`${c}${p}`],[El.default.data,i]),f&&r.push([da.propertyName,f])}});var NR=C(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.boolOrEmptySchema=Uo.topBoolOrEmptySchema=void 0;var $ne=r1(),jne=Je(),Une=m2(),Bne={message:"boolean schema is false"};function Hne(t){let{gen:e,schema:n,validateName:r}=t;n===!1?OR(t,!1):typeof n=="object"&&n.$async===!0?e.return(Une.default.data):(e.assign((0,jne._)`${r}.errors`,null),e.return(!0))}Uo.topBoolOrEmptySchema=Hne;function qne(t,e){let{gen:n,schema:r}=t;r===!1?(n.var(e,!1),OR(t)):n.var(e,!0)}Uo.boolOrEmptySchema=qne;function OR(t,e){let{gen:n,data:r}=t,l={gen:n,keyword:"false schema",data:r,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,$ne.reportError)(l,Bne,void 0,e)}});var Gd=C(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.getRules=Bo.isJSONType=void 0;var Vne=["string","number","integer","boolean","null","object","array"],zne=new Set(Vne);function Gne(t){return typeof t=="string"&&zne.has(t)}Bo.isJSONType=Gne;function Xne(){let t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...t,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}}Bo.getRules=Xne});var Xd=C(U3=>{"use strict";Object.defineProperty(U3,"__esModule",{value:!0});U3.shouldUseRule=U3.shouldUseGroup=U3.schemaHasRulesForType=void 0;function Wne({schema:t,self:e},n){let r=e.RULES.types[n];return r&&r!==!0&&IR(t,r)}U3.schemaHasRulesForType=Wne;function IR(t,e){return e.rules.some(n=>CR(t,n))}U3.shouldUseGroup=IR;function CR(t,e){var n;return t[e.keyword]!==void 0||((n=e.definition.implements)===null||n===void 0?void 0:n.some(r=>t[r]!==void 0))}U3.shouldUseRule=CR});var i1=C(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.reportTypeError=Vr.checkDataTypes=Vr.checkDataType=Vr.coerceAndCheckDataType=Vr.getJSONTypes=Vr.getSchemaTypes=Vr.DataType=void 0;var Kne=Gd(),Yne=Xd(),Jne=r1(),gt=Je(),kR=yt(),l1;(function(t){t[t.Correct=0]="Correct",t[t.Wrong=1]="Wrong"})(l1=Vr.DataType||(Vr.DataType={}));function Qne(t){let e=PR(t.type);if(e.includes("null")){if(t.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!e.length&&t.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');t.nullable===!0&&e.push("null")}return e}Vr.getSchemaTypes=Qne;function PR(t){let e=Array.isArray(t)?t:t?[t]:[];if(e.every(Kne.isJSONType))return e;throw new Error("type must be JSONType or JSONType[]: "+e.join(","))}Vr.getJSONTypes=PR;function Zne(t,e){let{gen:n,data:r,opts:l}=t,i=ere(e,l.coerceTypes),s=e.length>0&&!(i.length===0&&e.length===1&&(0,Yne.schemaHasRulesForType)(t,e[0]));if(s){let a=Kd(e,r,l.strictNumbers,l1.Wrong);n.if(a,()=>{i.length?tre(t,e,i):Yd(t)})}return s}Vr.coerceAndCheckDataType=Zne;var DR=new Set(["string","number","integer","boolean","null"]);function ere(t,e){return e?t.filter(n=>DR.has(n)||e==="array"&&n==="array"):[]}function tre(t,e,n){let{gen:r,data:l,opts:i}=t,s=r.let("dataType",(0,gt._)`typeof ${l}`),a=r.let("coerced",(0,gt._)`undefined`);i.coerceTypes==="array"&&r.if((0,gt._)`${s} == 'object' && Array.isArray(${l}) && ${l}.length == 1`,()=>r.assign(l,(0,gt._)`${l}[0]`).assign(s,(0,gt._)`typeof ${l}`).if(Kd(e,l,i.strictNumbers),()=>r.assign(a,l))),r.if((0,gt._)`${a} !== undefined`);for(let f of n)(DR.has(f)||f==="array"&&i.coerceTypes==="array")&&o(f);r.else(),Yd(t),r.endIf(),r.if((0,gt._)`${a} !== undefined`,()=>{r.assign(l,a),nre(t,a)});function o(f){switch(f){case"string":r.elseIf((0,gt._)`${s} == "number" || ${s} == "boolean"`).assign(a,(0,gt._)`"" + ${l}`).elseIf((0,gt._)`${l} === null`).assign(a,(0,gt._)`""`);return;case"number":r.elseIf((0,gt._)`${s} == "boolean" || ${l} === null
- || (${s} == "string" && ${l} && ${l} == +${l})`).assign(a,(0,gt._)`+${l}`);return;case"integer":r.elseIf((0,gt._)`${s} === "boolean" || ${l} === null
- || (${s} === "string" && ${l} && ${l} == +${l} && !(${l} % 1))`).assign(a,(0,gt._)`+${l}`);return;case"boolean":r.elseIf((0,gt._)`${l} === "false" || ${l} === 0 || ${l} === null`).assign(a,!1).elseIf((0,gt._)`${l} === "true" || ${l} === 1`).assign(a,!0);return;case"null":r.elseIf((0,gt._)`${l} === "" || ${l} === 0 || ${l} === false`),r.assign(a,null);return;case"array":r.elseIf((0,gt._)`${s} === "string" || ${s} === "number"
- || ${s} === "boolean" || ${l} === null`).assign(a,(0,gt._)`[${l}]`)}}}function nre({gen:t,parentData:e,parentDataProperty:n},r){t.if((0,gt._)`${e} !== undefined`,()=>t.assign((0,gt._)`${e}[${n}]`,r))}function Wd(t,e,n,r=l1.Correct){let l=r===l1.Correct?gt.operators.EQ:gt.operators.NEQ,i;switch(t){case"null":return(0,gt._)`${e} ${l} null`;case"array":i=(0,gt._)`Array.isArray(${e})`;break;case"object":i=(0,gt._)`${e} && typeof ${e} == "object" && !Array.isArray(${e})`;break;case"integer":i=s((0,gt._)`!(${e} % 1) && !isNaN(${e})`);break;case"number":i=s();break;default:return(0,gt._)`typeof ${e} ${l} ${t}`}return r===l1.Correct?i:(0,gt.not)(i);function s(a=gt.nil){return(0,gt.and)((0,gt._)`typeof ${e} == "number"`,a,n?(0,gt._)`isFinite(${e})`:gt.nil)}}Vr.checkDataType=Wd;function Kd(t,e,n,r){if(t.length===1)return Wd(t[0],e,n,r);let l,i=(0,kR.toHash)(t);if(i.array&&i.object){let s=(0,gt._)`typeof ${e} != "object"`;l=i.null?s:(0,gt._)`!${e} || ${s}`,delete i.null,delete i.array,delete i.object}else l=gt.nil;i.number&&delete i.integer;for(let s in i)l=(0,gt.and)(l,Wd(s,e,n,r));return l}Vr.checkDataTypes=Kd;var rre={message:({schema:t})=>`must be ${t}`,params:({schema:t,schemaValue:e})=>typeof t=="string"?(0,gt._)`{type: ${t}}`:(0,gt._)`{type: ${e}}`};function Yd(t){let e=lre(t);(0,Jne.reportError)(e,rre)}Vr.reportTypeError=Yd;function lre(t){let{gen:e,data:n,schema:r}=t,l=(0,kR.schemaRefOrVal)(t,r,"type");return{gen:e,keyword:"type",data:n,schema:r.type,schemaCode:l,schemaValue:l,parentSchema:r,params:{},it:t}}});var FR=C(a6=>{"use strict";Object.defineProperty(a6,"__esModule",{value:!0});a6.assignDefaults=void 0;var Ho=Je(),ire=yt();function sre(t,e){let{properties:n,items:r}=t.schema;if(e==="object"&&n)for(let l in n)LR(t,l,n[l].default);else e==="array"&&Array.isArray(r)&&r.forEach((l,i)=>LR(t,i,l.default))}a6.assignDefaults=sre;function LR(t,e,n){let{gen:r,compositeRule:l,data:i,opts:s}=t;if(n===void 0)return;let a=(0,Ho._)`${i}${(0,Ho.getProperty)(e)}`;if(l){(0,ire.checkStrictMode)(t,`default is ignored for: ${a}`);return}let o=(0,Ho._)`${a} === undefined`;s.useDefaults==="empty"&&(o=(0,Ho._)`${o} || ${a} === null || ${a} === ""`),r.if(o,(0,Ho._)`${a} = ${(0,Ho.stringify)(n)}`)}});var zr=C(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.validateUnion=mn.validateArray=mn.usePattern=mn.callValidateCode=mn.schemaProperties=mn.allSchemaProperties=mn.noPropertyInData=mn.propertyInData=mn.isOwnProperty=mn.hasPropFunc=mn.reportMissingProp=mn.checkMissingProp=mn.checkReportMissingProp=void 0;var Cn=Je(),Jd=yt(),B3=m2(),are=yt();function ore(t,e){let{gen:n,data:r,it:l}=t;n.if(Zd(n,r,e,l.opts.ownProperties),()=>{t.setParams({missingProperty:(0,Cn._)`${e}`},!0),t.error()})}mn.checkReportMissingProp=ore;function ure({gen:t,data:e,it:{opts:n}},r,l){return(0,Cn.or)(...r.map(i=>(0,Cn.and)(Zd(t,e,i,n.ownProperties),(0,Cn._)`${l} = ${i}`)))}mn.checkMissingProp=ure;function cre(t,e){t.setParams({missingProperty:e},!0),t.error()}mn.reportMissingProp=cre;function MR(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Cn._)`Object.prototype.hasOwnProperty`})}mn.hasPropFunc=MR;function Qd(t,e,n){return(0,Cn._)`${MR(t)}.call(${e}, ${n})`}mn.isOwnProperty=Qd;function fre(t,e,n,r){let l=(0,Cn._)`${e}${(0,Cn.getProperty)(n)} !== undefined`;return r?(0,Cn._)`${l} && ${Qd(t,e,n)}`:l}mn.propertyInData=fre;function Zd(t,e,n,r){let l=(0,Cn._)`${e}${(0,Cn.getProperty)(n)} === undefined`;return r?(0,Cn.or)(l,(0,Cn.not)(Qd(t,e,n))):l}mn.noPropertyInData=Zd;function $R(t){return t?Object.keys(t).filter(e=>e!=="__proto__"):[]}mn.allSchemaProperties=$R;function pre(t,e){return $R(e).filter(n=>!(0,Jd.alwaysValidSchema)(t,e[n]))}mn.schemaProperties=pre;function dre({schemaCode:t,data:e,it:{gen:n,topSchemaRef:r,schemaPath:l,errorPath:i},it:s},a,o,f){let c=f?(0,Cn._)`${t}, ${e}, ${r}${l}`:e,p=[[B3.default.instancePath,(0,Cn.strConcat)(B3.default.instancePath,i)],[B3.default.parentData,s.parentData],[B3.default.parentDataProperty,s.parentDataProperty],[B3.default.rootData,B3.default.rootData]];s.opts.dynamicRef&&p.push([B3.default.dynamicAnchors,B3.default.dynamicAnchors]);let m=(0,Cn._)`${c}, ${n.object(...p)}`;return o!==Cn.nil?(0,Cn._)`${a}.call(${o}, ${m})`:(0,Cn._)`${a}(${m})`}mn.callValidateCode=dre;var hre=(0,Cn._)`new RegExp`;function mre({gen:t,it:{opts:e}},n){let r=e.unicodeRegExp?"u":"",{regExp:l}=e.code,i=l(n,r);return t.scopeValue("pattern",{key:i.toString(),ref:i,code:(0,Cn._)`${l.code==="new RegExp"?hre:(0,are.useFunc)(t,l)}(${n}, ${r})`})}mn.usePattern=mre;function gre(t){let{gen:e,data:n,keyword:r,it:l}=t,i=e.name("valid");if(l.allErrors){let a=e.let("valid",!0);return s(()=>e.assign(a,!1)),a}return e.var(i,!0),s(()=>e.break()),i;function s(a){let o=e.const("len",(0,Cn._)`${n}.length`);e.forRange("i",0,o,f=>{t.subschema({keyword:r,dataProp:f,dataPropType:Jd.Type.Num},i),e.if((0,Cn.not)(i),a)})}}mn.validateArray=gre;function yre(t){let{gen:e,schema:n,keyword:r,it:l}=t;if(!Array.isArray(n))throw new Error("ajv implementation error");if(n.some(o=>(0,Jd.alwaysValidSchema)(l,o))&&!l.opts.unevaluated)return;let s=e.let("valid",!1),a=e.name("_valid");e.block(()=>n.forEach((o,f)=>{let c=t.subschema({keyword:r,schemaProp:f,compositeRule:!0},a);e.assign(s,(0,Cn._)`${s} || ${a}`),t.mergeValidEvaluated(c,a)||e.if((0,Cn.not)(s))})),t.result(s,()=>t.reset(),()=>t.error(!0))}mn.validateUnion=yre});var BR=C(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.validateKeywordUsage=di.validSchemaType=di.funcKeywordCode=di.macroKeywordCode=void 0;var bl=Je(),ha=m2(),vre=zr(),_re=r1();function Ere(t,e){let{gen:n,keyword:r,schema:l,parentSchema:i,it:s}=t,a=e.macro.call(s.self,l,i,s),o=UR(n,r,a);s.opts.validateSchema!==!1&&s.self.validateSchema(a,!0);let f=n.name("valid");t.subschema({schema:a,schemaPath:bl.nil,errSchemaPath:`${s.errSchemaPath}/${r}`,topSchemaRef:o,compositeRule:!0},f),t.pass(f,()=>t.error(!0))}di.macroKeywordCode=Ere;function bre(t,e){var n;let{gen:r,keyword:l,schema:i,parentSchema:s,$data:a,it:o}=t;Sre(o,e);let f=!a&&e.compile?e.compile.call(o.self,i,s,o):e.validate,c=UR(r,l,f),p=r.let("valid");t.block$data(p,m),t.ok((n=e.valid)!==null&&n!==void 0?n:p);function m(){if(e.errors===!1)_(),e.modifying&&jR(t),S(()=>t.error());else{let T=e.async?h():g();e.modifying&&jR(t),S(()=>Tre(t,T))}}function h(){let T=r.let("ruleErrs",null);return r.try(()=>_((0,bl._)`await `),x=>r.assign(p,!1).if((0,bl._)`${x} instanceof ${o.ValidationError}`,()=>r.assign(T,(0,bl._)`${x}.errors`),()=>r.throw(x))),T}function g(){let T=(0,bl._)`${c}.errors`;return r.assign(T,null),_(bl.nil),T}function _(T=e.async?(0,bl._)`await `:bl.nil){let x=o.opts.passContext?ha.default.this:ha.default.self,v=!("compile"in e&&!a||e.schema===!1);r.assign(p,(0,bl._)`${T}${(0,vre.callValidateCode)(t,c,x,v)}`,e.modifying)}function S(T){var x;r.if((0,bl.not)((x=e.valid)!==null&&x!==void 0?x:p),T)}}di.funcKeywordCode=bre;function jR(t){let{gen:e,data:n,it:r}=t;e.if(r.parentData,()=>e.assign(n,(0,bl._)`${r.parentData}[${r.parentDataProperty}]`))}function Tre(t,e){let{gen:n}=t;n.if((0,bl._)`Array.isArray(${e})`,()=>{n.assign(ha.default.vErrors,(0,bl._)`${ha.default.vErrors} === null ? ${e} : ${ha.default.vErrors}.concat(${e})`).assign(ha.default.errors,(0,bl._)`${ha.default.vErrors}.length`),(0,_re.extendErrors)(t)},()=>t.error())}function Sre({schemaEnv:t},e){if(e.async&&!t.$async)throw new Error("async keyword in sync schema")}function UR(t,e,n){if(n===void 0)throw new Error(`keyword "${e}" failed to compile`);return t.scopeValue("keyword",typeof n=="function"?{ref:n}:{ref:n,code:(0,bl.stringify)(n)})}function xre(t,e,n=!1){return!e.length||e.some(r=>r==="array"?Array.isArray(t):r==="object"?t&&typeof t=="object"&&!Array.isArray(t):typeof t==r||n&&typeof t>"u")}di.validSchemaType=xre;function Are({schema:t,opts:e,self:n,errSchemaPath:r},l,i){if(Array.isArray(l.keyword)?!l.keyword.includes(i):l.keyword!==i)throw new Error("ajv implementation error");let s=l.dependencies;if(s?.some(a=>!Object.prototype.hasOwnProperty.call(t,a)))throw new Error(`parent schema must have dependencies of ${i}: ${s.join(",")}`);if(l.validateSchema&&!l.validateSchema(t[i])){let o=`keyword "${i}" value is invalid at path "${r}": `+n.errorsText(l.validateSchema.errors);if(e.validateSchema==="log")n.logger.error(o);else throw new Error(o)}}di.validateKeywordUsage=Are});var qR=C(H3=>{"use strict";Object.defineProperty(H3,"__esModule",{value:!0});H3.extendSubschemaMode=H3.extendSubschemaData=H3.getSubschema=void 0;var hi=Je(),HR=yt();function wre(t,{keyword:e,schemaProp:n,schema:r,schemaPath:l,errSchemaPath:i,topSchemaRef:s}){if(e!==void 0&&r!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(e!==void 0){let a=t.schema[e];return n===void 0?{schema:a,schemaPath:(0,hi._)`${t.schemaPath}${(0,hi.getProperty)(e)}`,errSchemaPath:`${t.errSchemaPath}/${e}`}:{schema:a[n],schemaPath:(0,hi._)`${t.schemaPath}${(0,hi.getProperty)(e)}${(0,hi.getProperty)(n)}`,errSchemaPath:`${t.errSchemaPath}/${e}/${(0,HR.escapeFragment)(n)}`}}if(r!==void 0){if(l===void 0||i===void 0||s===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:r,schemaPath:l,topSchemaRef:s,errSchemaPath:i}}throw new Error('either "keyword" or "schema" must be passed')}H3.getSubschema=wre;function Rre(t,e,{dataProp:n,dataPropType:r,data:l,dataTypes:i,propertyName:s}){if(l!==void 0&&n!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:a}=e;if(n!==void 0){let{errorPath:f,dataPathArr:c,opts:p}=e,m=a.let("data",(0,hi._)`${e.data}${(0,hi.getProperty)(n)}`,!0);o(m),t.errorPath=(0,hi.str)`${f}${(0,HR.getErrorPath)(n,r,p.jsPropertySyntax)}`,t.parentDataProperty=(0,hi._)`${n}`,t.dataPathArr=[...c,t.parentDataProperty]}if(l!==void 0){let f=l instanceof hi.Name?l:a.let("data",l,!0);o(f),s!==void 0&&(t.propertyName=s)}i&&(t.dataTypes=i);function o(f){t.data=f,t.dataLevel=e.dataLevel+1,t.dataTypes=[],e.definedProperties=new Set,t.parentData=e.data,t.dataNames=[...e.dataNames,f]}}H3.extendSubschemaData=Rre;function Ore(t,{jtdDiscriminator:e,jtdMetadata:n,compositeRule:r,createErrors:l,allErrors:i}){r!==void 0&&(t.compositeRule=r),l!==void 0&&(t.createErrors=l),i!==void 0&&(t.allErrors=i),t.jtdDiscriminator=e,t.jtdMetadata=n}H3.extendSubschemaMode=Ore});var qo=C(($Ee,VR)=>{"use strict";VR.exports=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var r,l,i;if(Array.isArray(e)){if(r=e.length,r!=n.length)return!1;for(l=r;l--!==0;)if(!t(e[l],n[l]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(i=Object.keys(e),r=i.length,r!==Object.keys(n).length)return!1;for(l=r;l--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[l]))return!1;for(l=r;l--!==0;){var s=i[l];if(!t(e[s],n[s]))return!1}return!0}return e!==e&&n!==n}});var GR=C((jEe,zR)=>{"use strict";var q3=zR.exports=function(t,e,n){typeof e=="function"&&(n=e,e={}),n=e.cb||n;var r=typeof n=="function"?n:n.pre||function(){},l=n.post||function(){};o6(e,r,l,t,"",t)};q3.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};q3.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};q3.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};q3.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function o6(t,e,n,r,l,i,s,a,o,f){if(r&&typeof r=="object"&&!Array.isArray(r)){e(r,l,i,s,a,o,f);for(var c in r){var p=r[c];if(Array.isArray(p)){if(c in q3.arrayKeywords)for(var m=0;m{"use strict";Object.defineProperty(Ll,"__esModule",{value:!0});Ll.getSchemaRefs=Ll.resolveUrl=Ll.normalizeId=Ll._getFullPath=Ll.getFullPath=Ll.inlineRef=void 0;var Ire=yt(),Cre=qo(),kre=GR(),Pre=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function Dre(t,e=!0){return typeof t=="boolean"?!0:e===!0?!eh(t):e?XR(t)<=e:!1}Ll.inlineRef=Dre;var Lre=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function eh(t){for(let e in t){if(Lre.has(e))return!0;let n=t[e];if(Array.isArray(n)&&n.some(eh)||typeof n=="object"&&eh(n))return!0}return!1}function XR(t){let e=0;for(let n in t){if(n==="$ref")return 1/0;if(e++,!Pre.has(n)&&(typeof t[n]=="object"&&(0,Ire.eachItem)(t[n],r=>e+=XR(r)),e===1/0))return 1/0}return e}function WR(t,e="",n){n!==!1&&(e=Vo(e));let r=t.parse(e);return KR(t,r)}Ll.getFullPath=WR;function KR(t,e){return t.serialize(e).split("#")[0]+"#"}Ll._getFullPath=KR;var Fre=/#\/?$/;function Vo(t){return t?t.replace(Fre,""):""}Ll.normalizeId=Vo;function Mre(t,e,n){return n=Vo(n),t.resolve(e,n)}Ll.resolveUrl=Mre;var $re=/^[a-z_][-a-z0-9._]*$/i;function jre(t,e){if(typeof t=="boolean")return{};let{schemaId:n,uriResolver:r}=this.opts,l=Vo(t[n]||e),i={"":l},s=WR(r,l,!1),a={},o=new Set;return kre(t,{allKeys:!0},(p,m,h,g)=>{if(g===void 0)return;let _=s+m,S=i[g];typeof p[n]=="string"&&(S=T.call(this,p[n])),x.call(this,p.$anchor),x.call(this,p.$dynamicAnchor),i[m]=S;function T(v){let b=this.opts.uriResolver.resolve;if(v=Vo(S?b(S,v):v),o.has(v))throw c(v);o.add(v);let w=this.refs[v];return typeof w=="string"&&(w=this.refs[w]),typeof w=="object"?f(p,w.schema,v):v!==Vo(_)&&(v[0]==="#"?(f(p,a[v],v),a[v]=p):this.refs[v]=_),v}function x(v){if(typeof v=="string"){if(!$re.test(v))throw new Error(`invalid anchor "${v}"`);T.call(this,`#${v}`)}}}),a;function f(p,m,h){if(m!==void 0&&!Cre(p,m))throw c(h)}function c(p){return new Error(`reference "${p}" resolves to more than one schema`)}}Ll.getSchemaRefs=jre});var zo=C(V3=>{"use strict";Object.defineProperty(V3,"__esModule",{value:!0});V3.getData=V3.KeywordCxt=V3.validateFunctionCode=void 0;var eO=NR(),YR=i1(),nh=Xd(),u6=i1(),Ure=FR(),o1=BR(),th=qR(),He=Je(),rt=m2(),Bre=s1(),l3=yt(),a1=r1();function Hre(t){if(rO(t)&&(lO(t),nO(t))){zre(t);return}tO(t,()=>(0,eO.topBoolOrEmptySchema)(t))}V3.validateFunctionCode=Hre;function tO({gen:t,validateName:e,schema:n,schemaEnv:r,opts:l},i){l.code.es5?t.func(e,(0,He._)`${rt.default.data}, ${rt.default.valCxt}`,r.$async,()=>{t.code((0,He._)`"use strict"; ${JR(n,l)}`),Vre(t,l),t.code(i)}):t.func(e,(0,He._)`${rt.default.data}, ${qre(l)}`,r.$async,()=>t.code(JR(n,l)).code(i))}function qre(t){return(0,He._)`{${rt.default.instancePath}="", ${rt.default.parentData}, ${rt.default.parentDataProperty}, ${rt.default.rootData}=${rt.default.data}${t.dynamicRef?(0,He._)`, ${rt.default.dynamicAnchors}={}`:He.nil}}={}`}function Vre(t,e){t.if(rt.default.valCxt,()=>{t.var(rt.default.instancePath,(0,He._)`${rt.default.valCxt}.${rt.default.instancePath}`),t.var(rt.default.parentData,(0,He._)`${rt.default.valCxt}.${rt.default.parentData}`),t.var(rt.default.parentDataProperty,(0,He._)`${rt.default.valCxt}.${rt.default.parentDataProperty}`),t.var(rt.default.rootData,(0,He._)`${rt.default.valCxt}.${rt.default.rootData}`),e.dynamicRef&&t.var(rt.default.dynamicAnchors,(0,He._)`${rt.default.valCxt}.${rt.default.dynamicAnchors}`)},()=>{t.var(rt.default.instancePath,(0,He._)`""`),t.var(rt.default.parentData,(0,He._)`undefined`),t.var(rt.default.parentDataProperty,(0,He._)`undefined`),t.var(rt.default.rootData,rt.default.data),e.dynamicRef&&t.var(rt.default.dynamicAnchors,(0,He._)`{}`)})}function zre(t){let{schema:e,opts:n,gen:r}=t;tO(t,()=>{n.$comment&&e.$comment&&sO(t),Yre(t),r.let(rt.default.vErrors,null),r.let(rt.default.errors,0),n.unevaluated&&Gre(t),iO(t),Zre(t)})}function Gre(t){let{gen:e,validateName:n}=t;t.evaluated=e.const("evaluated",(0,He._)`${n}.evaluated`),e.if((0,He._)`${t.evaluated}.dynamicProps`,()=>e.assign((0,He._)`${t.evaluated}.props`,(0,He._)`undefined`)),e.if((0,He._)`${t.evaluated}.dynamicItems`,()=>e.assign((0,He._)`${t.evaluated}.items`,(0,He._)`undefined`))}function JR(t,e){let n=typeof t=="object"&&t[e.schemaId];return n&&(e.code.source||e.code.process)?(0,He._)`/*# sourceURL=${n} */`:He.nil}function Xre(t,e){if(rO(t)&&(lO(t),nO(t))){Wre(t,e);return}(0,eO.boolOrEmptySchema)(t,e)}function nO({schema:t,self:e}){if(typeof t=="boolean")return!t;for(let n in t)if(e.RULES.all[n])return!0;return!1}function rO(t){return typeof t.schema!="boolean"}function Wre(t,e){let{schema:n,gen:r,opts:l}=t;l.$comment&&n.$comment&&sO(t),Jre(t),Qre(t);let i=r.const("_errs",rt.default.errors);iO(t,i),r.var(e,(0,He._)`${i} === ${rt.default.errors}`)}function lO(t){(0,l3.checkUnknownRules)(t),Kre(t)}function iO(t,e){if(t.opts.jtd)return QR(t,[],!1,e);let n=(0,YR.getSchemaTypes)(t.schema),r=(0,YR.coerceAndCheckDataType)(t,n);QR(t,n,!r,e)}function Kre(t){let{schema:e,errSchemaPath:n,opts:r,self:l}=t;e.$ref&&r.ignoreKeywordsWithRef&&(0,l3.schemaHasRulesButRef)(e,l.RULES)&&l.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}function Yre(t){let{schema:e,opts:n}=t;e.default!==void 0&&n.useDefaults&&n.strictSchema&&(0,l3.checkStrictMode)(t,"default is ignored in the schema root")}function Jre(t){let e=t.schema[t.opts.schemaId];e&&(t.baseId=(0,Bre.resolveUrl)(t.opts.uriResolver,t.baseId,e))}function Qre(t){if(t.schema.$async&&!t.schemaEnv.$async)throw new Error("async schema in sync schema")}function sO({gen:t,schemaEnv:e,schema:n,errSchemaPath:r,opts:l}){let i=n.$comment;if(l.$comment===!0)t.code((0,He._)`${rt.default.self}.logger.log(${i})`);else if(typeof l.$comment=="function"){let s=(0,He.str)`${r}/$comment`,a=t.scopeValue("root",{ref:e.root});t.code((0,He._)`${rt.default.self}.opts.$comment(${i}, ${s}, ${a}.schema)`)}}function Zre(t){let{gen:e,schemaEnv:n,validateName:r,ValidationError:l,opts:i}=t;n.$async?e.if((0,He._)`${rt.default.errors} === 0`,()=>e.return(rt.default.data),()=>e.throw((0,He._)`new ${l}(${rt.default.vErrors})`)):(e.assign((0,He._)`${r}.errors`,rt.default.vErrors),i.unevaluated&&ele(t),e.return((0,He._)`${rt.default.errors} === 0`))}function ele({gen:t,evaluated:e,props:n,items:r}){n instanceof He.Name&&t.assign((0,He._)`${e}.props`,n),r instanceof He.Name&&t.assign((0,He._)`${e}.items`,r)}function QR(t,e,n,r){let{gen:l,schema:i,data:s,allErrors:a,opts:o,self:f}=t,{RULES:c}=f;if(i.$ref&&(o.ignoreKeywordsWithRef||!(0,l3.schemaHasRulesButRef)(i,c))){l.block(()=>oO(t,"$ref",c.all.$ref.definition));return}o.jtd||tle(t,e),l.block(()=>{for(let m of c.rules)p(m);p(c.post)});function p(m){(0,nh.shouldUseGroup)(i,m)&&(m.type?(l.if((0,u6.checkDataType)(m.type,s,o.strictNumbers)),ZR(t,m),e.length===1&&e[0]===m.type&&n&&(l.else(),(0,u6.reportTypeError)(t)),l.endIf()):ZR(t,m),a||l.if((0,He._)`${rt.default.errors} === ${r||0}`))}}function ZR(t,e){let{gen:n,schema:r,opts:{useDefaults:l}}=t;l&&(0,Ure.assignDefaults)(t,e.type),n.block(()=>{for(let i of e.rules)(0,nh.shouldUseRule)(r,i)&&oO(t,i.keyword,i.definition,e.type)})}function tle(t,e){t.schemaEnv.meta||!t.opts.strictTypes||(nle(t,e),t.opts.allowUnionTypes||rle(t,e),lle(t,t.dataTypes))}function nle(t,e){if(e.length){if(!t.dataTypes.length){t.dataTypes=e;return}e.forEach(n=>{aO(t.dataTypes,n)||rh(t,`type "${n}" not allowed by context "${t.dataTypes.join(",")}"`)}),sle(t,e)}}function rle(t,e){e.length>1&&!(e.length===2&&e.includes("null"))&&rh(t,"use allowUnionTypes to allow union type keyword")}function lle(t,e){let n=t.self.RULES.all;for(let r in n){let l=n[r];if(typeof l=="object"&&(0,nh.shouldUseRule)(t.schema,l)){let{type:i}=l.definition;i.length&&!i.some(s=>ile(e,s))&&rh(t,`missing type "${i.join(",")}" for keyword "${r}"`)}}}function ile(t,e){return t.includes(e)||e==="number"&&t.includes("integer")}function aO(t,e){return t.includes(e)||e==="integer"&&t.includes("number")}function sle(t,e){let n=[];for(let r of t.dataTypes)aO(e,r)?n.push(r):e.includes("integer")&&r==="number"&&n.push("integer");t.dataTypes=n}function rh(t,e){let n=t.schemaEnv.baseId+t.errSchemaPath;e+=` at "${n}" (strictTypes)`,(0,l3.checkStrictMode)(t,e,t.opts.strictTypes)}var c6=class{constructor(e,n,r){if((0,o1.validateKeywordUsage)(e,n,r),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=r,this.data=e.data,this.schema=e.schema[r],this.$data=n.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,l3.schemaRefOrVal)(e,this.schema,r,this.$data),this.schemaType=n.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=n,this.$data)this.schemaCode=e.gen.const("vSchema",uO(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,o1.validSchemaType)(this.schema,n.schemaType,n.allowUndefined))throw new Error(`${r} value must be ${JSON.stringify(n.schemaType)}`);("code"in n?n.trackErrors:n.errors!==!1)&&(this.errsCount=e.gen.const("_errs",rt.default.errors))}result(e,n,r){this.failResult((0,He.not)(e),n,r)}failResult(e,n,r){this.gen.if(e),r?r():this.error(),n?(this.gen.else(),n(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,n){this.failResult((0,He.not)(e),void 0,n)}fail(e){if(e===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);let{schemaCode:n}=this;this.fail((0,He._)`${n} !== undefined && (${(0,He.or)(this.invalid$data(),e)})`)}error(e,n,r){if(n){this.setParams(n),this._error(e,r),this.setParams({});return}this._error(e,r)}_error(e,n){(e?a1.reportExtraError:a1.reportError)(this,this.def.error,n)}$dataError(){(0,a1.reportError)(this,this.def.$dataError||a1.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,a1.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,n){n?Object.assign(this.params,e):this.params=e}block$data(e,n,r=He.nil){this.gen.block(()=>{this.check$data(e,r),n()})}check$data(e=He.nil,n=He.nil){if(!this.$data)return;let{gen:r,schemaCode:l,schemaType:i,def:s}=this;r.if((0,He.or)((0,He._)`${l} === undefined`,n)),e!==He.nil&&r.assign(e,!0),(i.length||s.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),e!==He.nil&&r.assign(e,!1)),r.else()}invalid$data(){let{gen:e,schemaCode:n,schemaType:r,def:l,it:i}=this;return(0,He.or)(s(),a());function s(){if(r.length){if(!(n instanceof He.Name))throw new Error("ajv implementation error");let o=Array.isArray(r)?r:[r];return(0,He._)`${(0,u6.checkDataTypes)(o,n,i.opts.strictNumbers,u6.DataType.Wrong)}`}return He.nil}function a(){if(l.validateSchema){let o=e.scopeValue("validate$data",{ref:l.validateSchema});return(0,He._)`!${o}(${n})`}return He.nil}}subschema(e,n){let r=(0,th.getSubschema)(this.it,e);(0,th.extendSubschemaData)(r,this.it,e),(0,th.extendSubschemaMode)(r,e);let l={...this.it,...r,items:void 0,props:void 0};return Xre(l,n),l}mergeEvaluated(e,n){let{it:r,gen:l}=this;r.opts.unevaluated&&(r.props!==!0&&e.props!==void 0&&(r.props=l3.mergeEvaluated.props(l,e.props,r.props,n)),r.items!==!0&&e.items!==void 0&&(r.items=l3.mergeEvaluated.items(l,e.items,r.items,n)))}mergeValidEvaluated(e,n){let{it:r,gen:l}=this;if(r.opts.unevaluated&&(r.props!==!0||r.items!==!0))return l.if(n,()=>this.mergeEvaluated(e,He.Name)),!0}};V3.KeywordCxt=c6;function oO(t,e,n,r){let l=new c6(t,n,e);"code"in n?n.code(l,r):l.$data&&n.validate?(0,o1.funcKeywordCode)(l,n):"macro"in n?(0,o1.macroKeywordCode)(l,n):(n.compile||n.validate)&&(0,o1.funcKeywordCode)(l,n)}var ale=/^\/(?:[^~]|~0|~1)*$/,ole=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function uO(t,{dataLevel:e,dataNames:n,dataPathArr:r}){let l,i;if(t==="")return rt.default.rootData;if(t[0]==="/"){if(!ale.test(t))throw new Error(`Invalid JSON-pointer: ${t}`);l=t,i=rt.default.rootData}else{let f=ole.exec(t);if(!f)throw new Error(`Invalid JSON-pointer: ${t}`);let c=+f[1];if(l=f[2],l==="#"){if(c>=e)throw new Error(o("property/index",c));return r[e-c]}if(c>e)throw new Error(o("data",c));if(i=n[e-c],!l)return i}let s=i,a=l.split("/");for(let f of a)f&&(i=(0,He._)`${i}${(0,He.getProperty)((0,l3.unescapeJsonPointer)(f))}`,s=(0,He._)`${s} && ${i}`);return s;function o(f,c){return`Cannot access ${f} ${c} levels up, current level is ${e}`}}V3.getData=uO});var u1=C(ih=>{"use strict";Object.defineProperty(ih,"__esModule",{value:!0});var lh=class extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}};ih.default=lh});var z3=C(oh=>{"use strict";Object.defineProperty(oh,"__esModule",{value:!0});var sh=s1(),ah=class extends Error{constructor(e,n,r,l){super(l||`can't resolve reference ${r} from id ${n}`),this.missingRef=(0,sh.resolveUrl)(e,n,r),this.missingSchema=(0,sh.normalizeId)((0,sh.getFullPath)(e,this.missingRef))}};oh.default=ah});var ga=C(g2=>{"use strict";Object.defineProperty(g2,"__esModule",{value:!0});g2.resolveSchema=g2.getCompilingSchema=g2.resolveRef=g2.compileSchema=g2.SchemaEnv=void 0;var j2=Je(),ule=u1(),ma=m2(),U2=s1(),cO=yt(),cle=zo(),Go=class{constructor(e){var n;this.refs={},this.dynamicAnchors={};let r;typeof e.schema=="object"&&(r=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=(n=e.baseId)!==null&&n!==void 0?n:(0,U2.normalizeId)(r?.[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=r?.$async,this.refs={}}};g2.SchemaEnv=Go;function ch(t){let e=fO.call(this,t);if(e)return e;let n=(0,U2.getFullPath)(this.opts.uriResolver,t.root.baseId),{es5:r,lines:l}=this.opts.code,{ownProperties:i}=this.opts,s=new j2.CodeGen(this.scope,{es5:r,lines:l,ownProperties:i}),a;t.$async&&(a=s.scopeValue("Error",{ref:ule.default,code:(0,j2._)`require("ajv/dist/runtime/validation_error").default`}));let o=s.scopeName("validate");t.validateName=o;let f={gen:s,allErrors:this.opts.allErrors,data:ma.default.data,parentData:ma.default.parentData,parentDataProperty:ma.default.parentDataProperty,dataNames:[ma.default.data],dataPathArr:[j2.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:t.schema,code:(0,j2.stringify)(t.schema)}:{ref:t.schema}),validateName:o,ValidationError:a,schema:t.schema,schemaEnv:t,rootId:n,baseId:t.baseId||n,schemaPath:j2.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,j2._)`""`,opts:this.opts,self:this},c;try{this._compilations.add(t),(0,cle.validateFunctionCode)(f),s.optimize(this.opts.code.optimize);let p=s.toString();c=`${s.scopeRefs(ma.default.scope)}return ${p}`,this.opts.code.process&&(c=this.opts.code.process(c,t));let h=new Function(`${ma.default.self}`,`${ma.default.scope}`,c)(this,this.scope.get());if(this.scope.value(o,{ref:h}),h.errors=null,h.schema=t.schema,h.schemaEnv=t,t.$async&&(h.$async=!0),this.opts.code.source===!0&&(h.source={validateName:o,validateCode:p,scopeValues:s._values}),this.opts.unevaluated){let{props:g,items:_}=f;h.evaluated={props:g instanceof j2.Name?void 0:g,items:_ instanceof j2.Name?void 0:_,dynamicProps:g instanceof j2.Name,dynamicItems:_ instanceof j2.Name},h.source&&(h.source.evaluated=(0,j2.stringify)(h.evaluated))}return t.validate=h,t}catch(p){throw delete t.validate,delete t.validateName,c&&this.logger.error("Error compiling schema, function code:",c),p}finally{this._compilations.delete(t)}}g2.compileSchema=ch;function fle(t,e,n){var r;n=(0,U2.resolveUrl)(this.opts.uriResolver,e,n);let l=t.refs[n];if(l)return l;let i=hle.call(this,t,n);if(i===void 0){let s=(r=t.localRefs)===null||r===void 0?void 0:r[n],{schemaId:a}=this.opts;s&&(i=new Go({schema:s,schemaId:a,root:t,baseId:e}))}if(i!==void 0)return t.refs[n]=ple.call(this,i)}g2.resolveRef=fle;function ple(t){return(0,U2.inlineRef)(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:ch.call(this,t)}function fO(t){for(let e of this._compilations)if(dle(e,t))return e}g2.getCompilingSchema=fO;function dle(t,e){return t.schema===e.schema&&t.root===e.root&&t.baseId===e.baseId}function hle(t,e){let n;for(;typeof(n=this.refs[e])=="string";)e=n;return n||this.schemas[e]||f6.call(this,t,e)}function f6(t,e){let n=this.opts.uriResolver.parse(e),r=(0,U2._getFullPath)(this.opts.uriResolver,n),l=(0,U2.getFullPath)(this.opts.uriResolver,t.baseId,void 0);if(Object.keys(t.schema).length>0&&r===l)return uh.call(this,n,t);let i=(0,U2.normalizeId)(r),s=this.refs[i]||this.schemas[i];if(typeof s=="string"){let a=f6.call(this,t,s);return typeof a?.schema!="object"?void 0:uh.call(this,n,a)}if(typeof s?.schema=="object"){if(s.validate||ch.call(this,s),i===(0,U2.normalizeId)(e)){let{schema:a}=s,{schemaId:o}=this.opts,f=a[o];return f&&(l=(0,U2.resolveUrl)(this.opts.uriResolver,l,f)),new Go({schema:a,schemaId:o,root:t,baseId:l})}return uh.call(this,n,s)}}g2.resolveSchema=f6;var mle=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function uh(t,{baseId:e,schema:n,root:r}){var l;if(((l=t.fragment)===null||l===void 0?void 0:l[0])!=="/")return;for(let a of t.fragment.slice(1).split("/")){if(typeof n=="boolean")return;let o=n[(0,cO.unescapeFragment)(a)];if(o===void 0)return;n=o;let f=typeof n=="object"&&n[this.opts.schemaId];!mle.has(a)&&f&&(e=(0,U2.resolveUrl)(this.opts.uriResolver,e,f))}let i;if(typeof n!="boolean"&&n.$ref&&!(0,cO.schemaHasRulesButRef)(n,this.RULES)){let a=(0,U2.resolveUrl)(this.opts.uriResolver,e,n.$ref);i=f6.call(this,r,a)}let{schemaId:s}=this.opts;if(i=i||new Go({schema:n,schemaId:s,root:r,baseId:e}),i.schema!==i.root.schema)return i}});var pO=C((zEe,gle)=>{gle.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var hO=C((p6,dO)=>{(function(t,e){typeof p6=="object"&&typeof dO<"u"?e(p6):typeof define=="function"&&define.amd?define(["exports"],e):e(t.URI=t.URI||{})})(p6,function(t){"use strict";function e(){for(var B=arguments.length,M=Array(B),z=0;z1){M[0]=M[0].slice(0,-1);for(var Z=M.length-1,te=1;te= 0x80 (not a basic code point)","invalid-input":"Invalid input"},$=h-g,L=Math.floor,J=String.fromCharCode;function K(B){throw new RangeError(k[B])}function Q(B,M){for(var z=[],Z=B.length;Z--;)z[Z]=M(B[Z]);return z}function ye(B,M){var z=B.split("@"),Z="";z.length>1&&(Z=z[0]+"@",B=z[1]),B=B.replace(O,".");var te=B.split("."),Ce=Q(te,M).join(".");return Z+Ce}function Oe(B){for(var M=[],z=0,Z=B.length;z=55296&&te<=56319&&z>1,M+=L(M/z);M>$*_>>1;te+=h)M=L(M/$);return L(te+($+1)*M/(M+S))},re=function(M){var z=[],Z=M.length,te=0,Ce=v,ft=x,kt=M.lastIndexOf(b);kt<0&&(kt=0);for(var Xt=0;Xt=128&&K("not-basic"),z.push(M.charCodeAt(Xt));for(var zn=kt>0?kt+1:0;zn=Z&&K("invalid-input");var wn=se(M.charCodeAt(zn++));(wn>=h||wn>L((m-te)/et))&&K("overflow"),te+=wn*et;var Ft=Gn<=ft?g:Gn>=ft+_?_:Gn-ft;if(wnL(m/Zt)&&K("overflow"),et*=Zt}var Bt=z.length+1;ft=H(te-Be,Bt,Be==0),L(te/Bt)>m-Ce&&K("overflow"),Ce+=L(te/Bt),te%=Bt,z.splice(te++,0,Ce)}return String.fromCodePoint.apply(String,z)},ne=function(M){var z=[];M=Oe(M);var Z=M.length,te=v,Ce=0,ft=x,kt=!0,Xt=!1,zn=void 0;try{for(var Be=M[Symbol.iterator](),et;!(kt=(et=Be.next()).done);kt=!0){var Gn=et.value;Gn<128&&z.push(J(Gn))}}catch(Wt){Xt=!0,zn=Wt}finally{try{!kt&&Be.return&&Be.return()}finally{if(Xt)throw zn}}var wn=z.length,Ft=wn;for(wn&&z.push(b);Ft=te&&ZrL((m-Ce)/gl)&&K("overflow"),Ce+=(Zt-te)*gl,te=Zt;var Xl=!0,ti=!1,l2=void 0;try{for(var R3=M[Symbol.iterator](),Nr;!(Xl=(Nr=R3.next()).done);Xl=!0){var oo=Nr.value;if(oom&&K("overflow"),oo==te){for(var gr=Ce,Ui=h;;Ui+=h){var Ir=Ui<=ft?g:Ui>=ft+_?_:Ui-ft;if(gr>6|192).toString(16).toUpperCase()+"%"+(M&63|128).toString(16).toUpperCase():z="%"+(M>>12|224).toString(16).toUpperCase()+"%"+(M>>6&63|128).toString(16).toUpperCase()+"%"+(M&63|128).toString(16).toUpperCase(),z}function Xe(B){for(var M="",z=0,Z=B.length;z=194&&te<224){if(Z-z>=6){var Ce=parseInt(B.substr(z+4,2),16);M+=String.fromCharCode((te&31)<<6|Ce&63)}else M+=B.substr(z,6);z+=6}else if(te>=224){if(Z-z>=9){var ft=parseInt(B.substr(z+4,2),16),kt=parseInt(B.substr(z+7,2),16);M+=String.fromCharCode((te&15)<<12|(ft&63)<<6|kt&63)}else M+=B.substr(z,9);z+=9}else M+=B.substr(z,3),z+=3}return M}function ze(B,M){function z(Z){var te=Xe(Z);return te.match(M.UNRESERVED)?te:Z}return B.scheme&&(B.scheme=String(B.scheme).replace(M.PCT_ENCODED,z).toLowerCase().replace(M.NOT_SCHEME,"")),B.userinfo!==void 0&&(B.userinfo=String(B.userinfo).replace(M.PCT_ENCODED,z).replace(M.NOT_USERINFO,Lt).replace(M.PCT_ENCODED,l)),B.host!==void 0&&(B.host=String(B.host).replace(M.PCT_ENCODED,z).toLowerCase().replace(M.NOT_HOST,Lt).replace(M.PCT_ENCODED,l)),B.path!==void 0&&(B.path=String(B.path).replace(M.PCT_ENCODED,z).replace(B.scheme?M.NOT_PATH:M.NOT_PATH_NOSCHEME,Lt).replace(M.PCT_ENCODED,l)),B.query!==void 0&&(B.query=String(B.query).replace(M.PCT_ENCODED,z).replace(M.NOT_QUERY,Lt).replace(M.PCT_ENCODED,l)),B.fragment!==void 0&&(B.fragment=String(B.fragment).replace(M.PCT_ENCODED,z).replace(M.NOT_FRAGMENT,Lt).replace(M.PCT_ENCODED,l)),B}function vn(B){return B.replace(/^0*(.*)/,"$1")||"0"}function at(B,M){var z=B.match(M.IPV4ADDRESS)||[],Z=c(z,2),te=Z[1];return te?te.split(".").map(vn).join("."):B}function ct(B,M){var z=B.match(M.IPV6ADDRESS)||[],Z=c(z,3),te=Z[1],Ce=Z[2];if(te){for(var ft=te.toLowerCase().split("::").reverse(),kt=c(ft,2),Xt=kt[0],zn=kt[1],Be=zn?zn.split(":").map(vn):[],et=Xt.split(":").map(vn),Gn=M.IPV4ADDRESS.test(et[et.length-1]),wn=Gn?7:8,Ft=et.length-wn,Zt=Array(wn),Bt=0;Bt1){var Yt=Zt.slice(0,tr.index),Zr=Zt.slice(tr.index+tr.length);ml=Yt.join(":")+"::"+Zr.join(":")}else ml=Zt.join(":");return Ce&&(ml+="%"+Ce),ml}else return B}var Y=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,he="".match(/(){0}/)[1]===void 0;function Ee(B){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},z={},Z=M.iri!==!1?f:o;M.reference==="suffix"&&(B=(M.scheme?M.scheme+":":"")+"//"+B);var te=B.match(Y);if(te){he?(z.scheme=te[1],z.userinfo=te[3],z.host=te[4],z.port=parseInt(te[5],10),z.path=te[6]||"",z.query=te[7],z.fragment=te[8],isNaN(z.port)&&(z.port=te[5])):(z.scheme=te[1]||void 0,z.userinfo=B.indexOf("@")!==-1?te[3]:void 0,z.host=B.indexOf("//")!==-1?te[4]:void 0,z.port=parseInt(te[5],10),z.path=te[6]||"",z.query=B.indexOf("?")!==-1?te[7]:void 0,z.fragment=B.indexOf("#")!==-1?te[8]:void 0,isNaN(z.port)&&(z.port=B.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?te[4]:void 0)),z.host&&(z.host=ct(at(z.host,Z),Z)),z.scheme===void 0&&z.userinfo===void 0&&z.host===void 0&&z.port===void 0&&!z.path&&z.query===void 0?z.reference="same-document":z.scheme===void 0?z.reference="relative":z.fragment===void 0?z.reference="absolute":z.reference="uri",M.reference&&M.reference!=="suffix"&&M.reference!==z.reference&&(z.error=z.error||"URI is not a "+M.reference+" reference.");var Ce=Ve[(M.scheme||z.scheme||"").toLowerCase()];if(!M.unicodeSupport&&(!Ce||!Ce.unicodeSupport)){if(z.host&&(M.domainHost||Ce&&Ce.domainHost))try{z.host=xt.toASCII(z.host.replace(Z.PCT_ENCODED,Xe).toLowerCase())}catch(ft){z.error=z.error||"Host's domain name can not be converted to ASCII via punycode: "+ft}ze(z,o)}else ze(z,Z);Ce&&Ce.parse&&Ce.parse(z,M)}else z.error=z.error||"URI can not be parsed.";return z}function je(B,M){var z=M.iri!==!1?f:o,Z=[];return B.userinfo!==void 0&&(Z.push(B.userinfo),Z.push("@")),B.host!==void 0&&Z.push(ct(at(String(B.host),z),z).replace(z.IPV6ADDRESS,function(te,Ce,ft){return"["+Ce+(ft?"%25"+ft:"")+"]"})),(typeof B.port=="number"||typeof B.port=="string")&&(Z.push(":"),Z.push(String(B.port))),Z.length?Z.join(""):void 0}var nt=/^\.\.?\//,Ie=/^\/\.(\/|$)/,At=/^\/\.\.(\/|$)/,qn=/^\/?(?:.|\n)*?(?=\/|$)/;function wt(B){for(var M=[];B.length;)if(B.match(nt))B=B.replace(nt,"");else if(B.match(Ie))B=B.replace(Ie,"/");else if(B.match(At))B=B.replace(At,"/"),M.pop();else if(B==="."||B==="..")B="";else{var z=B.match(qn);if(z){var Z=z[0];B=B.slice(Z.length),M.push(Z)}else throw new Error("Unexpected dot segment condition")}return M.join("")}function Ut(B){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},z=M.iri?f:o,Z=[],te=Ve[(M.scheme||B.scheme||"").toLowerCase()];if(te&&te.serialize&&te.serialize(B,M),B.host&&!z.IPV6ADDRESS.test(B.host)){if(M.domainHost||te&&te.domainHost)try{B.host=M.iri?xt.toUnicode(B.host):xt.toASCII(B.host.replace(z.PCT_ENCODED,Xe).toLowerCase())}catch(kt){B.error=B.error||"Host's domain name can not be converted to "+(M.iri?"Unicode":"ASCII")+" via punycode: "+kt}}ze(B,z),M.reference!=="suffix"&&B.scheme&&(Z.push(B.scheme),Z.push(":"));var Ce=je(B,M);if(Ce!==void 0&&(M.reference!=="suffix"&&Z.push("//"),Z.push(Ce),B.path&&B.path.charAt(0)!=="/"&&Z.push("/")),B.path!==void 0){var ft=B.path;!M.absolutePath&&(!te||!te.absolutePath)&&(ft=wt(ft)),Ce===void 0&&(ft=ft.replace(/^\/\//,"/%2F")),Z.push(ft)}return B.query!==void 0&&(Z.push("?"),Z.push(B.query)),B.fragment!==void 0&&(Z.push("#"),Z.push(B.fragment)),Z.join("")}function Ol(B,M){var z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Z=arguments[3],te={};return Z||(B=Ee(Ut(B,z),z),M=Ee(Ut(M,z),z)),z=z||{},!z.tolerant&&M.scheme?(te.scheme=M.scheme,te.userinfo=M.userinfo,te.host=M.host,te.port=M.port,te.path=wt(M.path||""),te.query=M.query):(M.userinfo!==void 0||M.host!==void 0||M.port!==void 0?(te.userinfo=M.userinfo,te.host=M.host,te.port=M.port,te.path=wt(M.path||""),te.query=M.query):(M.path?(M.path.charAt(0)==="/"?te.path=wt(M.path):((B.userinfo!==void 0||B.host!==void 0||B.port!==void 0)&&!B.path?te.path="/"+M.path:B.path?te.path=B.path.slice(0,B.path.lastIndexOf("/")+1)+M.path:te.path=M.path,te.path=wt(te.path)),te.query=M.query):(te.path=B.path,M.query!==void 0?te.query=M.query:te.query=B.query),te.userinfo=B.userinfo,te.host=B.host,te.port=B.port),te.scheme=B.scheme),te.fragment=M.fragment,te}function Pn(B,M,z){var Z=s({scheme:"null"},z);return Ut(Ol(Ee(B,Z),Ee(M,Z),Z,!0),Z)}function Rr(B,M){return typeof B=="string"?B=Ut(Ee(B,M),M):r(B)==="object"&&(B=Ee(Ut(B,M),M)),B}function Vn(B,M,z){return typeof B=="string"?B=Ut(Ee(B,z),z):r(B)==="object"&&(B=Ut(B,z)),typeof M=="string"?M=Ut(Ee(M,z),z):r(M)==="object"&&(M=Ut(M,z)),B===M}function Ur(B,M){return B&&B.toString().replace(!M||!M.iri?o.ESCAPE:f.ESCAPE,Lt)}function Jr(B,M){return B&&B.toString().replace(!M||!M.iri?o.PCT_ENCODED:f.PCT_ENCODED,Xe)}var n2={scheme:"http",domainHost:!0,parse:function(M,z){return M.host||(M.error=M.error||"HTTP URIs must have a host."),M},serialize:function(M,z){var Z=String(M.scheme).toLowerCase()==="https";return(M.port===(Z?443:80)||M.port==="")&&(M.port=void 0),M.path||(M.path="/"),M}},Zn={scheme:"https",domainHost:n2.domainHost,parse:n2.parse,serialize:n2.serialize};function so(B){return typeof B.secure=="boolean"?B.secure:String(B.scheme).toLowerCase()==="wss"}var Q2={scheme:"ws",domainHost:!0,parse:function(M,z){var Z=M;return Z.secure=so(Z),Z.resourceName=(Z.path||"/")+(Z.query?"?"+Z.query:""),Z.path=void 0,Z.query=void 0,Z},serialize:function(M,z){if((M.port===(so(M)?443:80)||M.port==="")&&(M.port=void 0),typeof M.secure=="boolean"&&(M.scheme=M.secure?"wss":"ws",M.secure=void 0),M.resourceName){var Z=M.resourceName.split("?"),te=c(Z,2),Ce=te[0],ft=te[1];M.path=Ce&&Ce!=="/"?Ce:void 0,M.query=ft,M.resourceName=void 0}return M.fragment=void 0,M}},_n={scheme:"wss",domainHost:Q2.domainHost,parse:Q2.parse,serialize:Q2.serialize},hl={},Y7=!0,Or="[A-Za-z0-9\\-\\.\\_\\~"+(Y7?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]",fr="[0-9A-Fa-f]",ao=n(n("%[EFef]"+fr+"%"+fr+fr+"%"+fr+fr)+"|"+n("%[89A-Fa-f]"+fr+"%"+fr+fr)+"|"+n("%"+fr+fr)),mr="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",$i="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",Z2=e($i,'[\\"\\\\]'),Mn="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",er=new RegExp(Or,"g"),ji=new RegExp(ao,"g"),Qr=new RegExp(e("[^]",mr,"[\\.]",'[\\"]',Z2),"g"),Br=new RegExp(e("[^]",Or,Mn),"g"),R2=Br;function Gl(B){var M=Xe(B);return M.match(er)?M:B}var O2={scheme:"mailto",parse:function(M,z){var Z=M,te=Z.to=Z.path?Z.path.split(","):[];if(Z.path=void 0,Z.query){for(var Ce=!1,ft={},kt=Z.query.split("&"),Xt=0,zn=kt.length;Xt{"use strict";Object.defineProperty(fh,"__esModule",{value:!0});var mO=hO();mO.code='require("ajv/dist/runtime/uri").default';fh.default=mO});var hh=C(Gr=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});Gr.CodeGen=Gr.Name=Gr.nil=Gr.stringify=Gr.str=Gr._=Gr.KeywordCxt=void 0;var yle=zo();Object.defineProperty(Gr,"KeywordCxt",{enumerable:!0,get:function(){return yle.KeywordCxt}});var Xo=Je();Object.defineProperty(Gr,"_",{enumerable:!0,get:function(){return Xo._}});Object.defineProperty(Gr,"str",{enumerable:!0,get:function(){return Xo.str}});Object.defineProperty(Gr,"stringify",{enumerable:!0,get:function(){return Xo.stringify}});Object.defineProperty(Gr,"nil",{enumerable:!0,get:function(){return Xo.nil}});Object.defineProperty(Gr,"Name",{enumerable:!0,get:function(){return Xo.Name}});Object.defineProperty(Gr,"CodeGen",{enumerable:!0,get:function(){return Xo.CodeGen}});var vle=u1(),bO=z3(),_le=Gd(),c1=ga(),Ele=Je(),f1=s1(),d6=i1(),dh=yt(),yO=pO(),ble=gO(),TO=(t,e)=>new RegExp(t,e);TO.code="new RegExp";var Tle=["removeAdditional","useDefaults","coerceTypes"],Sle=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),xle={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},Ale={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},vO=200;function wle(t){var e,n,r,l,i,s,a,o,f,c,p,m,h,g,_,S,T,x,v,b,w,N,O,k,$;let L=t.strict,J=(e=t.code)===null||e===void 0?void 0:e.optimize,K=J===!0||J===void 0?1:J||0,Q=(r=(n=t.code)===null||n===void 0?void 0:n.regExp)!==null&&r!==void 0?r:TO,ye=(l=t.uriResolver)!==null&&l!==void 0?l:ble.default;return{strictSchema:(s=(i=t.strictSchema)!==null&&i!==void 0?i:L)!==null&&s!==void 0?s:!0,strictNumbers:(o=(a=t.strictNumbers)!==null&&a!==void 0?a:L)!==null&&o!==void 0?o:!0,strictTypes:(c=(f=t.strictTypes)!==null&&f!==void 0?f:L)!==null&&c!==void 0?c:"log",strictTuples:(m=(p=t.strictTuples)!==null&&p!==void 0?p:L)!==null&&m!==void 0?m:"log",strictRequired:(g=(h=t.strictRequired)!==null&&h!==void 0?h:L)!==null&&g!==void 0?g:!1,code:t.code?{...t.code,optimize:K,regExp:Q}:{optimize:K,regExp:Q},loopRequired:(_=t.loopRequired)!==null&&_!==void 0?_:vO,loopEnum:(S=t.loopEnum)!==null&&S!==void 0?S:vO,meta:(T=t.meta)!==null&&T!==void 0?T:!0,messages:(x=t.messages)!==null&&x!==void 0?x:!0,inlineRefs:(v=t.inlineRefs)!==null&&v!==void 0?v:!0,schemaId:(b=t.schemaId)!==null&&b!==void 0?b:"$id",addUsedSchema:(w=t.addUsedSchema)!==null&&w!==void 0?w:!0,validateSchema:(N=t.validateSchema)!==null&&N!==void 0?N:!0,validateFormats:(O=t.validateFormats)!==null&&O!==void 0?O:!0,unicodeRegExp:(k=t.unicodeRegExp)!==null&&k!==void 0?k:!0,int32range:($=t.int32range)!==null&&$!==void 0?$:!0,uriResolver:ye}}var p1=class{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...wle(e)};let{es5:n,lines:r}=this.opts.code;this.scope=new Ele.ValueScope({scope:{},prefixes:Sle,es5:n,lines:r}),this.logger=kle(e.logger);let l=e.validateFormats;e.validateFormats=!1,this.RULES=(0,_le.getRules)(),_O.call(this,xle,e,"NOT SUPPORTED"),_O.call(this,Ale,e,"DEPRECATED","warn"),this._metaOpts=Ile.call(this),e.formats&&Ole.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&Nle.call(this,e.keywords),typeof e.meta=="object"&&this.addMetaSchema(e.meta),Rle.call(this),e.validateFormats=l}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:e,meta:n,schemaId:r}=this.opts,l=yO;r==="id"&&(l={...yO},l.id=l.$id,delete l.$id),n&&e&&this.addMetaSchema(l,l[r],!1)}defaultMeta(){let{meta:e,schemaId:n}=this.opts;return this.opts.defaultMeta=typeof e=="object"?e[n]||e:void 0}validate(e,n){let r;if(typeof e=="string"){if(r=this.getSchema(e),!r)throw new Error(`no schema with key or ref "${e}"`)}else r=this.compile(e);let l=r(n);return"$async"in r||(this.errors=r.errors),l}compile(e,n){let r=this._addSchema(e,n);return r.validate||this._compileSchemaEnv(r)}compileAsync(e,n){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:r}=this.opts;return l.call(this,e,n);async function l(c,p){await i.call(this,c.$schema);let m=this._addSchema(c,p);return m.validate||s.call(this,m)}async function i(c){c&&!this.getSchema(c)&&await l.call(this,{$ref:c},!0)}async function s(c){try{return this._compileSchemaEnv(c)}catch(p){if(!(p instanceof bO.default))throw p;return a.call(this,p),await o.call(this,p.missingSchema),s.call(this,c)}}function a({missingSchema:c,missingRef:p}){if(this.refs[c])throw new Error(`AnySchema ${c} is loaded but ${p} cannot be resolved`)}async function o(c){let p=await f.call(this,c);this.refs[c]||await i.call(this,p.$schema),this.refs[c]||this.addSchema(p,c,n)}async function f(c){let p=this._loading[c];if(p)return p;try{return await(this._loading[c]=r(c))}finally{delete this._loading[c]}}}addSchema(e,n,r,l=this.opts.validateSchema){if(Array.isArray(e)){for(let s of e)this.addSchema(s,void 0,r,l);return this}let i;if(typeof e=="object"){let{schemaId:s}=this.opts;if(i=e[s],i!==void 0&&typeof i!="string")throw new Error(`schema ${s} must be string`)}return n=(0,f1.normalizeId)(n||i),this._checkUnique(n),this.schemas[n]=this._addSchema(e,r,n,l,!0),this}addMetaSchema(e,n,r=this.opts.validateSchema){return this.addSchema(e,n,!0,r),this}validateSchema(e,n){if(typeof e=="boolean")return!0;let r;if(r=e.$schema,r!==void 0&&typeof r!="string")throw new Error("$schema must be a string");if(r=r||this.opts.defaultMeta||this.defaultMeta(),!r)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let l=this.validate(r,e);if(!l&&n){let i="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(i);else throw new Error(i)}return l}getSchema(e){let n;for(;typeof(n=EO.call(this,e))=="string";)e=n;if(n===void 0){let{schemaId:r}=this.opts,l=new c1.SchemaEnv({schema:{},schemaId:r});if(n=c1.resolveSchema.call(this,l,e),!n)return;this.refs[e]=n}return n.validate||this._compileSchemaEnv(n)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let n=EO.call(this,e);return typeof n=="object"&&this._cache.delete(n.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{let n=e;this._cache.delete(n);let r=e[this.opts.schemaId];return r&&(r=(0,f1.normalizeId)(r),delete this.schemas[r],delete this.refs[r]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(let n of e)this.addKeyword(n);return this}addKeyword(e,n){let r;if(typeof e=="string")r=e,typeof n=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),n.keyword=r);else if(typeof e=="object"&&n===void 0){if(n=e,r=n.keyword,Array.isArray(r)&&!r.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(Dle.call(this,r,n),!n)return(0,dh.eachItem)(r,i=>ph.call(this,i)),this;Fle.call(this,n);let l={...n,type:(0,d6.getJSONTypes)(n.type),schemaType:(0,d6.getJSONTypes)(n.schemaType)};return(0,dh.eachItem)(r,l.type.length===0?i=>ph.call(this,i,l):i=>l.type.forEach(s=>ph.call(this,i,l,s))),this}getKeyword(e){let n=this.RULES.all[e];return typeof n=="object"?n.definition:!!n}removeKeyword(e){let{RULES:n}=this;delete n.keywords[e],delete n.all[e];for(let r of n.rules){let l=r.rules.findIndex(i=>i.keyword===e);l>=0&&r.rules.splice(l,1)}return this}addFormat(e,n){return typeof n=="string"&&(n=new RegExp(n)),this.formats[e]=n,this}errorsText(e=this.errors,{separator:n=", ",dataVar:r="data"}={}){return!e||e.length===0?"No errors":e.map(l=>`${r}${l.instancePath} ${l.message}`).reduce((l,i)=>l+n+i)}$dataMetaSchema(e,n){let r=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(let l of n){let i=l.split("/").slice(1),s=e;for(let a of i)s=s[a];for(let a in r){let o=r[a];if(typeof o!="object")continue;let{$data:f}=o.definition,c=s[a];f&&c&&(s[a]=SO(c))}}return e}_removeAllSchemas(e,n){for(let r in e){let l=e[r];(!n||n.test(r))&&(typeof l=="string"?delete e[r]:l&&!l.meta&&(this._cache.delete(l.schema),delete e[r]))}}_addSchema(e,n,r,l=this.opts.validateSchema,i=this.opts.addUsedSchema){let s,{schemaId:a}=this.opts;if(typeof e=="object")s=e[a];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof e!="boolean")throw new Error("schema must be object or boolean")}let o=this._cache.get(e);if(o!==void 0)return o;r=(0,f1.normalizeId)(s||r);let f=f1.getSchemaRefs.call(this,e,r);return o=new c1.SchemaEnv({schema:e,schemaId:a,meta:n,baseId:r,localRefs:f}),this._cache.set(o.schema,o),i&&!r.startsWith("#")&&(r&&this._checkUnique(r),this.refs[r]=o),l&&this.validateSchema(e,!0),o}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):c1.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){let n=this.opts;this.opts=this._metaOpts;try{c1.compileSchema.call(this,e)}finally{this.opts=n}}};Gr.default=p1;p1.ValidationError=vle.default;p1.MissingRefError=bO.default;function _O(t,e,n,r="error"){for(let l in t){let i=l;i in e&&this.logger[r](`${n}: option ${l}. ${t[i]}`)}}function EO(t){return t=(0,f1.normalizeId)(t),this.schemas[t]||this.refs[t]}function Rle(){let t=this.opts.schemas;if(t)if(Array.isArray(t))this.addSchema(t);else for(let e in t)this.addSchema(t[e],e)}function Ole(){for(let t in this.opts.formats){let e=this.opts.formats[t];e&&this.addFormat(t,e)}}function Nle(t){if(Array.isArray(t)){this.addVocabulary(t);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let e in t){let n=t[e];n.keyword||(n.keyword=e),this.addKeyword(n)}}function Ile(){let t={...this.opts};for(let e of Tle)delete t[e];return t}var Cle={log(){},warn(){},error(){}};function kle(t){if(t===!1)return Cle;if(t===void 0)return console;if(t.log&&t.warn&&t.error)return t;throw new Error("logger must implement log, warn and error methods")}var Ple=/^[a-z_$][a-z0-9_$:-]*$/i;function Dle(t,e){let{RULES:n}=this;if((0,dh.eachItem)(t,r=>{if(n.keywords[r])throw new Error(`Keyword ${r} is already defined`);if(!Ple.test(r))throw new Error(`Keyword ${r} has invalid name`)}),!!e&&e.$data&&!("code"in e||"validate"in e))throw new Error('$data keyword must have "code" or "validate" function')}function ph(t,e,n){var r;let l=e?.post;if(n&&l)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:i}=this,s=l?i.post:i.rules.find(({type:o})=>o===n);if(s||(s={type:n,rules:[]},i.rules.push(s)),i.keywords[t]=!0,!e)return;let a={keyword:t,definition:{...e,type:(0,d6.getJSONTypes)(e.type),schemaType:(0,d6.getJSONTypes)(e.schemaType)}};e.before?Lle.call(this,s,a,e.before):s.rules.push(a),i.all[t]=a,(r=e.implements)===null||r===void 0||r.forEach(o=>this.addKeyword(o))}function Lle(t,e,n){let r=t.rules.findIndex(l=>l.keyword===n);r>=0?t.rules.splice(r,0,e):(t.rules.push(e),this.logger.warn(`rule ${n} is not defined`))}function Fle(t){let{metaSchema:e}=t;e!==void 0&&(t.$data&&this.opts.$data&&(e=SO(e)),t.validateSchema=this.compile(e,!0))}var Mle={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function SO(t){return{anyOf:[t,Mle]}}});var xO=C(mh=>{"use strict";Object.defineProperty(mh,"__esModule",{value:!0});var $le={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};mh.default=$le});var gh=C(ya=>{"use strict";Object.defineProperty(ya,"__esModule",{value:!0});ya.callRef=ya.getValidate=void 0;var jle=z3(),AO=zr(),Fl=Je(),Wo=m2(),wO=ga(),h6=yt(),Ule={keyword:"$ref",schemaType:"string",code(t){let{gen:e,schema:n,it:r}=t,{baseId:l,schemaEnv:i,validateName:s,opts:a,self:o}=r,{root:f}=i;if((n==="#"||n==="#/")&&l===f.baseId)return p();let c=wO.resolveRef.call(o,f,l,n);if(c===void 0)throw new jle.default(r.opts.uriResolver,l,n);if(c instanceof wO.SchemaEnv)return m(c);return h(c);function p(){if(i===f)return m6(t,s,i,i.$async);let g=e.scopeValue("root",{ref:f});return m6(t,(0,Fl._)`${g}.validate`,f,f.$async)}function m(g){let _=RO(t,g);m6(t,_,g,g.$async)}function h(g){let _=e.scopeValue("schema",a.code.source===!0?{ref:g,code:(0,Fl.stringify)(g)}:{ref:g}),S=e.name("valid"),T=t.subschema({schema:g,dataTypes:[],schemaPath:Fl.nil,topSchemaRef:_,errSchemaPath:n},S);t.mergeEvaluated(T),t.ok(S)}}};function RO(t,e){let{gen:n}=t;return e.validate?n.scopeValue("validate",{ref:e.validate}):(0,Fl._)`${n.scopeValue("wrapper",{ref:e})}.validate`}ya.getValidate=RO;function m6(t,e,n,r){let{gen:l,it:i}=t,{allErrors:s,schemaEnv:a,opts:o}=i,f=o.passContext?Wo.default.this:Fl.nil;r?c():p();function c(){if(!a.$async)throw new Error("async schema referenced by sync schema");let g=l.let("valid");l.try(()=>{l.code((0,Fl._)`await ${(0,AO.callValidateCode)(t,e,f)}`),h(e),s||l.assign(g,!0)},_=>{l.if((0,Fl._)`!(${_} instanceof ${i.ValidationError})`,()=>l.throw(_)),m(_),s||l.assign(g,!1)}),t.ok(g)}function p(){t.result((0,AO.callValidateCode)(t,e,f),()=>h(e),()=>m(e))}function m(g){let _=(0,Fl._)`${g}.errors`;l.assign(Wo.default.vErrors,(0,Fl._)`${Wo.default.vErrors} === null ? ${_} : ${Wo.default.vErrors}.concat(${_})`),l.assign(Wo.default.errors,(0,Fl._)`${Wo.default.vErrors}.length`)}function h(g){var _;if(!i.opts.unevaluated)return;let S=(_=n?.validate)===null||_===void 0?void 0:_.evaluated;if(i.props!==!0)if(S&&!S.dynamicProps)S.props!==void 0&&(i.props=h6.mergeEvaluated.props(l,S.props,i.props));else{let T=l.var("props",(0,Fl._)`${g}.evaluated.props`);i.props=h6.mergeEvaluated.props(l,T,i.props,Fl.Name)}if(i.items!==!0)if(S&&!S.dynamicItems)S.items!==void 0&&(i.items=h6.mergeEvaluated.items(l,S.items,i.items));else{let T=l.var("items",(0,Fl._)`${g}.evaluated.items`);i.items=h6.mergeEvaluated.items(l,T,i.items,Fl.Name)}}}ya.callRef=m6;ya.default=Ule});var OO=C(yh=>{"use strict";Object.defineProperty(yh,"__esModule",{value:!0});var Ble=xO(),Hle=gh(),qle=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Ble.default,Hle.default];yh.default=qle});var NO=C(vh=>{"use strict";Object.defineProperty(vh,"__esModule",{value:!0});var g6=Je(),G3=g6.operators,y6={maximum:{okStr:"<=",ok:G3.LTE,fail:G3.GT},minimum:{okStr:">=",ok:G3.GTE,fail:G3.LT},exclusiveMaximum:{okStr:"<",ok:G3.LT,fail:G3.GTE},exclusiveMinimum:{okStr:">",ok:G3.GT,fail:G3.LTE}},Vle={message:({keyword:t,schemaCode:e})=>(0,g6.str)`must be ${y6[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>(0,g6._)`{comparison: ${y6[t].okStr}, limit: ${e}}`},zle={keyword:Object.keys(y6),type:"number",schemaType:"number",$data:!0,error:Vle,code(t){let{keyword:e,data:n,schemaCode:r}=t;t.fail$data((0,g6._)`${n} ${y6[e].fail} ${r} || isNaN(${n})`)}};vh.default=zle});var IO=C(_h=>{"use strict";Object.defineProperty(_h,"__esModule",{value:!0});var d1=Je(),Gle={message:({schemaCode:t})=>(0,d1.str)`must be multiple of ${t}`,params:({schemaCode:t})=>(0,d1._)`{multipleOf: ${t}}`},Xle={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:Gle,code(t){let{gen:e,data:n,schemaCode:r,it:l}=t,i=l.opts.multipleOfPrecision,s=e.let("res"),a=i?(0,d1._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${i}`:(0,d1._)`${s} !== parseInt(${s})`;t.fail$data((0,d1._)`(${r} === 0 || (${s} = ${n}/${r}, ${a}))`)}};_h.default=Xle});var kO=C(Eh=>{"use strict";Object.defineProperty(Eh,"__esModule",{value:!0});function CO(t){let e=t.length,n=0,r=0,l;for(;r=55296&&l<=56319&&r{"use strict";Object.defineProperty(bh,"__esModule",{value:!0});var va=Je(),Wle=yt(),Kle=kO(),Yle={message({keyword:t,schemaCode:e}){let n=t==="maxLength"?"more":"fewer";return(0,va.str)`must NOT have ${n} than ${e} characters`},params:({schemaCode:t})=>(0,va._)`{limit: ${t}}`},Jle={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:Yle,code(t){let{keyword:e,data:n,schemaCode:r,it:l}=t,i=e==="maxLength"?va.operators.GT:va.operators.LT,s=l.opts.unicode===!1?(0,va._)`${n}.length`:(0,va._)`${(0,Wle.useFunc)(t.gen,Kle.default)}(${n})`;t.fail$data((0,va._)`${s} ${i} ${r}`)}};bh.default=Jle});var DO=C(Th=>{"use strict";Object.defineProperty(Th,"__esModule",{value:!0});var Qle=zr(),v6=Je(),Zle={message:({schemaCode:t})=>(0,v6.str)`must match pattern "${t}"`,params:({schemaCode:t})=>(0,v6._)`{pattern: ${t}}`},e2e={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:Zle,code(t){let{data:e,$data:n,schema:r,schemaCode:l,it:i}=t,s=i.opts.unicodeRegExp?"u":"",a=n?(0,v6._)`(new RegExp(${l}, ${s}))`:(0,Qle.usePattern)(t,r);t.fail$data((0,v6._)`!${a}.test(${e})`)}};Th.default=e2e});var LO=C(Sh=>{"use strict";Object.defineProperty(Sh,"__esModule",{value:!0});var h1=Je(),t2e={message({keyword:t,schemaCode:e}){let n=t==="maxProperties"?"more":"fewer";return(0,h1.str)`must NOT have ${n} than ${e} properties`},params:({schemaCode:t})=>(0,h1._)`{limit: ${t}}`},n2e={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:t2e,code(t){let{keyword:e,data:n,schemaCode:r}=t,l=e==="maxProperties"?h1.operators.GT:h1.operators.LT;t.fail$data((0,h1._)`Object.keys(${n}).length ${l} ${r}`)}};Sh.default=n2e});var FO=C(xh=>{"use strict";Object.defineProperty(xh,"__esModule",{value:!0});var m1=zr(),g1=Je(),r2e=yt(),l2e={message:({params:{missingProperty:t}})=>(0,g1.str)`must have required property '${t}'`,params:({params:{missingProperty:t}})=>(0,g1._)`{missingProperty: ${t}}`},i2e={keyword:"required",type:"object",schemaType:"array",$data:!0,error:l2e,code(t){let{gen:e,schema:n,schemaCode:r,data:l,$data:i,it:s}=t,{opts:a}=s;if(!i&&n.length===0)return;let o=n.length>=a.loopRequired;if(s.allErrors?f():c(),a.strictRequired){let h=t.parentSchema.properties,{definedProperties:g}=t.it;for(let _ of n)if(h?.[_]===void 0&&!g.has(_)){let S=s.schemaEnv.baseId+s.errSchemaPath,T=`required property "${_}" is not defined at "${S}" (strictRequired)`;(0,r2e.checkStrictMode)(s,T,s.opts.strictRequired)}}function f(){if(o||i)t.block$data(g1.nil,p);else for(let h of n)(0,m1.checkReportMissingProp)(t,h)}function c(){let h=e.let("missing");if(o||i){let g=e.let("valid",!0);t.block$data(g,()=>m(h,g)),t.ok(g)}else e.if((0,m1.checkMissingProp)(t,n,h)),(0,m1.reportMissingProp)(t,h),e.else()}function p(){e.forOf("prop",r,h=>{t.setParams({missingProperty:h}),e.if((0,m1.noPropertyInData)(e,l,h,a.ownProperties),()=>t.error())})}function m(h,g){t.setParams({missingProperty:h}),e.forOf(h,r,()=>{e.assign(g,(0,m1.propertyInData)(e,l,h,a.ownProperties)),e.if((0,g1.not)(g),()=>{t.error(),e.break()})},g1.nil)}}};xh.default=i2e});var MO=C(Ah=>{"use strict";Object.defineProperty(Ah,"__esModule",{value:!0});var y1=Je(),s2e={message({keyword:t,schemaCode:e}){let n=t==="maxItems"?"more":"fewer";return(0,y1.str)`must NOT have ${n} than ${e} items`},params:({schemaCode:t})=>(0,y1._)`{limit: ${t}}`},a2e={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:s2e,code(t){let{keyword:e,data:n,schemaCode:r}=t,l=e==="maxItems"?y1.operators.GT:y1.operators.LT;t.fail$data((0,y1._)`${n}.length ${l} ${r}`)}};Ah.default=a2e});var v1=C(wh=>{"use strict";Object.defineProperty(wh,"__esModule",{value:!0});var $O=qo();$O.code='require("ajv/dist/runtime/equal").default';wh.default=$O});var jO=C(Oh=>{"use strict";Object.defineProperty(Oh,"__esModule",{value:!0});var Rh=i1(),Xr=Je(),o2e=yt(),u2e=v1(),c2e={message:({params:{i:t,j:e}})=>(0,Xr.str)`must NOT have duplicate items (items ## ${e} and ${t} are identical)`,params:({params:{i:t,j:e}})=>(0,Xr._)`{i: ${t}, j: ${e}}`},f2e={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:c2e,code(t){let{gen:e,data:n,$data:r,schema:l,parentSchema:i,schemaCode:s,it:a}=t;if(!r&&!l)return;let o=e.let("valid"),f=i.items?(0,Rh.getSchemaTypes)(i.items):[];t.block$data(o,c,(0,Xr._)`${s} === false`),t.ok(o);function c(){let g=e.let("i",(0,Xr._)`${n}.length`),_=e.let("j");t.setParams({i:g,j:_}),e.assign(o,!0),e.if((0,Xr._)`${g} > 1`,()=>(p()?m:h)(g,_))}function p(){return f.length>0&&!f.some(g=>g==="object"||g==="array")}function m(g,_){let S=e.name("item"),T=(0,Rh.checkDataTypes)(f,S,a.opts.strictNumbers,Rh.DataType.Wrong),x=e.const("indices",(0,Xr._)`{}`);e.for((0,Xr._)`;${g}--;`,()=>{e.let(S,(0,Xr._)`${n}[${g}]`),e.if(T,(0,Xr._)`continue`),f.length>1&&e.if((0,Xr._)`typeof ${S} == "string"`,(0,Xr._)`${S} += "_"`),e.if((0,Xr._)`typeof ${x}[${S}] == "number"`,()=>{e.assign(_,(0,Xr._)`${x}[${S}]`),t.error(),e.assign(o,!1).break()}).code((0,Xr._)`${x}[${S}] = ${g}`)})}function h(g,_){let S=(0,o2e.useFunc)(e,u2e.default),T=e.name("outer");e.label(T).for((0,Xr._)`;${g}--;`,()=>e.for((0,Xr._)`${_} = ${g}; ${_}--;`,()=>e.if((0,Xr._)`${S}(${n}[${g}], ${n}[${_}])`,()=>{t.error(),e.assign(o,!1).break(T)})))}}};Oh.default=f2e});var UO=C(Ih=>{"use strict";Object.defineProperty(Ih,"__esModule",{value:!0});var Nh=Je(),p2e=yt(),d2e=v1(),h2e={message:"must be equal to constant",params:({schemaCode:t})=>(0,Nh._)`{allowedValue: ${t}}`},m2e={keyword:"const",$data:!0,error:h2e,code(t){let{gen:e,data:n,$data:r,schemaCode:l,schema:i}=t;r||i&&typeof i=="object"?t.fail$data((0,Nh._)`!${(0,p2e.useFunc)(e,d2e.default)}(${n}, ${l})`):t.fail((0,Nh._)`${i} !== ${n}`)}};Ih.default=m2e});var BO=C(Ch=>{"use strict";Object.defineProperty(Ch,"__esModule",{value:!0});var _1=Je(),g2e=yt(),y2e=v1(),v2e={message:"must be equal to one of the allowed values",params:({schemaCode:t})=>(0,_1._)`{allowedValues: ${t}}`},_2e={keyword:"enum",schemaType:"array",$data:!0,error:v2e,code(t){let{gen:e,data:n,$data:r,schema:l,schemaCode:i,it:s}=t;if(!r&&l.length===0)throw new Error("enum must have non-empty array");let a=l.length>=s.opts.loopEnum,o,f=()=>o??(o=(0,g2e.useFunc)(e,y2e.default)),c;if(a||r)c=e.let("valid"),t.block$data(c,p);else{if(!Array.isArray(l))throw new Error("ajv implementation error");let h=e.const("vSchema",i);c=(0,_1.or)(...l.map((g,_)=>m(h,_)))}t.pass(c);function p(){e.assign(c,!1),e.forOf("v",i,h=>e.if((0,_1._)`${f()}(${n}, ${h})`,()=>e.assign(c,!0).break()))}function m(h,g){let _=l[g];return typeof _=="object"&&_!==null?(0,_1._)`${f()}(${n}, ${h}[${g}])`:(0,_1._)`${n} === ${_}`}}};Ch.default=_2e});var HO=C(kh=>{"use strict";Object.defineProperty(kh,"__esModule",{value:!0});var E2e=NO(),b2e=IO(),T2e=PO(),S2e=DO(),x2e=LO(),A2e=FO(),w2e=MO(),R2e=jO(),O2e=UO(),N2e=BO(),I2e=[E2e.default,b2e.default,T2e.default,S2e.default,x2e.default,A2e.default,w2e.default,R2e.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},O2e.default,N2e.default];kh.default=I2e});var Dh=C(E1=>{"use strict";Object.defineProperty(E1,"__esModule",{value:!0});E1.validateAdditionalItems=void 0;var _a=Je(),Ph=yt(),C2e={message:({params:{len:t}})=>(0,_a.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,_a._)`{limit: ${t}}`},k2e={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:C2e,code(t){let{parentSchema:e,it:n}=t,{items:r}=e;if(!Array.isArray(r)){(0,Ph.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas');return}qO(t,r)}};function qO(t,e){let{gen:n,schema:r,data:l,keyword:i,it:s}=t;s.items=!0;let a=n.const("len",(0,_a._)`${l}.length`);if(r===!1)t.setParams({len:e.length}),t.pass((0,_a._)`${a} <= ${e.length}`);else if(typeof r=="object"&&!(0,Ph.alwaysValidSchema)(s,r)){let f=n.var("valid",(0,_a._)`${a} <= ${e.length}`);n.if((0,_a.not)(f),()=>o(f)),t.ok(f)}function o(f){n.forRange("i",e.length,a,c=>{t.subschema({keyword:i,dataProp:c,dataPropType:Ph.Type.Num},f),s.allErrors||n.if((0,_a.not)(f),()=>n.break())})}}E1.validateAdditionalItems=qO;E1.default=k2e});var Lh=C(b1=>{"use strict";Object.defineProperty(b1,"__esModule",{value:!0});b1.validateTuple=void 0;var VO=Je(),_6=yt(),P2e=zr(),D2e={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(t){let{schema:e,it:n}=t;if(Array.isArray(e))return zO(t,"additionalItems",e);n.items=!0,!(0,_6.alwaysValidSchema)(n,e)&&t.ok((0,P2e.validateArray)(t))}};function zO(t,e,n=t.schema){let{gen:r,parentSchema:l,data:i,keyword:s,it:a}=t;c(l),a.opts.unevaluated&&n.length&&a.items!==!0&&(a.items=_6.mergeEvaluated.items(r,n.length,a.items));let o=r.name("valid"),f=r.const("len",(0,VO._)`${i}.length`);n.forEach((p,m)=>{(0,_6.alwaysValidSchema)(a,p)||(r.if((0,VO._)`${f} > ${m}`,()=>t.subschema({keyword:s,schemaProp:m,dataProp:m},o)),t.ok(o))});function c(p){let{opts:m,errSchemaPath:h}=a,g=n.length,_=g===p.minItems&&(g===p.maxItems||p[e]===!1);if(m.strictTuples&&!_){let S=`"${s}" is ${g}-tuple, but minItems or maxItems/${e} are not specified or different at path "${h}"`;(0,_6.checkStrictMode)(a,S,m.strictTuples)}}}b1.validateTuple=zO;b1.default=D2e});var GO=C(Fh=>{"use strict";Object.defineProperty(Fh,"__esModule",{value:!0});var L2e=Lh(),F2e={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t=>(0,L2e.validateTuple)(t,"items")};Fh.default=F2e});var WO=C(Mh=>{"use strict";Object.defineProperty(Mh,"__esModule",{value:!0});var XO=Je(),M2e=yt(),$2e=zr(),j2e=Dh(),U2e={message:({params:{len:t}})=>(0,XO.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,XO._)`{limit: ${t}}`},B2e={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:U2e,code(t){let{schema:e,parentSchema:n,it:r}=t,{prefixItems:l}=n;r.items=!0,!(0,M2e.alwaysValidSchema)(r,e)&&(l?(0,j2e.validateAdditionalItems)(t,l):t.ok((0,$2e.validateArray)(t)))}};Mh.default=B2e});var KO=C($h=>{"use strict";Object.defineProperty($h,"__esModule",{value:!0});var y2=Je(),E6=yt(),H2e={message:({params:{min:t,max:e}})=>e===void 0?(0,y2.str)`must contain at least ${t} valid item(s)`:(0,y2.str)`must contain at least ${t} and no more than ${e} valid item(s)`,params:({params:{min:t,max:e}})=>e===void 0?(0,y2._)`{minContains: ${t}}`:(0,y2._)`{minContains: ${t}, maxContains: ${e}}`},q2e={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:H2e,code(t){let{gen:e,schema:n,parentSchema:r,data:l,it:i}=t,s,a,{minContains:o,maxContains:f}=r;i.opts.next?(s=o===void 0?1:o,a=f):s=1;let c=e.const("len",(0,y2._)`${l}.length`);if(t.setParams({min:s,max:a}),a===void 0&&s===0){(0,E6.checkStrictMode)(i,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&s>a){(0,E6.checkStrictMode)(i,'"minContains" > "maxContains" is always invalid'),t.fail();return}if((0,E6.alwaysValidSchema)(i,n)){let _=(0,y2._)`${c} >= ${s}`;a!==void 0&&(_=(0,y2._)`${_} && ${c} <= ${a}`),t.pass(_);return}i.items=!0;let p=e.name("valid");a===void 0&&s===1?h(p,()=>e.if(p,()=>e.break())):s===0?(e.let(p,!0),a!==void 0&&e.if((0,y2._)`${l}.length > 0`,m)):(e.let(p,!1),m()),t.result(p,()=>t.reset());function m(){let _=e.name("_valid"),S=e.let("count",0);h(_,()=>e.if(_,()=>g(S)))}function h(_,S){e.forRange("i",0,c,T=>{t.subschema({keyword:"contains",dataProp:T,dataPropType:E6.Type.Num,compositeRule:!0},_),S()})}function g(_){e.code((0,y2._)`${_}++`),a===void 0?e.if((0,y2._)`${_} >= ${s}`,()=>e.assign(p,!0).break()):(e.if((0,y2._)`${_} > ${a}`,()=>e.assign(p,!1).break()),s===1?e.assign(p,!0):e.if((0,y2._)`${_} >= ${s}`,()=>e.assign(p,!0)))}}};$h.default=q2e});var QO=C(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.validateSchemaDeps=mi.validatePropertyDeps=mi.error=void 0;var jh=Je(),V2e=yt(),T1=zr();mi.error={message:({params:{property:t,depsCount:e,deps:n}})=>{let r=e===1?"property":"properties";return(0,jh.str)`must have ${r} ${n} when property ${t} is present`},params:({params:{property:t,depsCount:e,deps:n,missingProperty:r}})=>(0,jh._)`{property: ${t},
+`),Ne=one.bind(null,{[ER]:"",[bR]:s,[SR]:Y,[TR]:Bd,[Hd]:j,[xR]:L}),pe="";p!==null&&(m===void 0?pe=Ne(p):pe=Ne(Object.assign({},p,{name:m})));let ae=a instanceof Function?a:a?NR:Nne,ye=ae().indexOf(":")+1;if(x&&!g)throw Error("customLevels is required if useOnlyCustomLevels is set true");if(S&&typeof S!="function")throw Error(`Unknown mixin type "${typeof S}" - expected "function"`);if(k&&typeof k!="string")throw Error(`Unknown msgPrefix type "${typeof k}" - expected "string"`);tne(h,g,x);let q=OR(g,x);lne(_);let le=rne(_);return Object.assign(e,{levels:q,[Sne]:le,[xne]:x,[mne]:r,[dne]:ae,[hne]:ye,[TR]:Bd,[Hd]:j,[SR]:Y,[yne]:ve,[vne]:Z,[_ne]:o,[Ene]:c,[bne]:f,[wne]:f?`,${JSON.stringify(f)}:{`:"",[bR]:s,[Tne]:S,[Rne]:T,[ER]:pe,[xR]:L,[Ane]:b,silent:cne,onChild:O,[One]:k}),Object.setPrototypeOf(e,Zte()),nne(e),e[gne](h),e}g2.exports=qd;g2.exports.destination=(t=process.stdout.fd)=>typeof t=="object"?(t.dest=_R(t.dest||process.stdout.fd),vR(t)):vR({dest:_R(t),minLength:0});g2.exports.transport=Ad();g2.exports.multistream=yR();g2.exports.levels=OR();g2.exports.stdSerializers=Lne;g2.exports.stdTimeFunctions=Object.assign({},wR);g2.exports.symbols=RR;g2.exports.version=fne;g2.exports.default=qd;g2.exports.pino=qd});var r1=C((qbe,LR)=>{"use strict";var Fne=EA(),d6=IR(),{serializersSym:CR}=d6.symbols,{FST_ERR_LOG_INVALID_DESTINATION:Mne,FST_ERR_LOG_INVALID_LOGGER:$ne}=al();function kR(t){if(t.stream&&t.file)throw new Mne;t.file&&(t.stream=d6.destination(t.file),delete t.file);let e=t.logger,n=t.genReqId,r=null;return e?(t.logger=void 0,t.genReqId=void 0,e[CR]&&(t.serializers=Object.assign({},t.serializers,e[CR])),r=e.child({},t),t.logger=e,t.genReqId=n):r=d6(t,t.stream),r}var Vd={req:function(e){return{method:e.method,url:e.url,version:e.headers&&e.headers["accept-version"],hostname:e.hostname,remoteAddress:e.ip,remotePort:e.socket?e.socket.remotePort:void 0}},err:d6.stdSerializers.err,res:function(e){return{statusCode:e.statusCode}}};function jne(){let t=process.hrtime();return t[0]*1e3+t[1]/1e6}function Une(t){if(!t.logger){let r=Fne;return r.child=()=>r,{logger:r,hasLogger:!1}}if(PR(t.logger))return{logger:kR({logger:t.logger,serializers:Object.assign({},Vd,t.logger.serializers)}),hasLogger:!0};let e={};return Object.prototype.toString.call(t.logger)==="[object Object]"&&Reflect.ownKeys(t.logger).forEach(r=>{Object.defineProperty(e,r,{value:t.logger[r],writable:!0,enumerable:!0,configurable:!0})}),e.level=e.level||"info",e.serializers=Object.assign({},Vd,e.serializers),t.logger=e,{logger:kR(t.logger),hasLogger:!0}}function PR(t,e){let n=["info","error","debug","fatal","warn","trace","child"],r=t?n.filter(l=>!t[l]||typeof t[l]!="function"):n;if(r.length){if(r.length===n.length&&!e)return!1;throw $ne(r.join(","))}else return!0}function Bne(t,e,n,r,l){let i={[t.requestIdLogLabel]:r},s=t.childLoggerFactory.call(t.server,e,i,l||{},n);return t.childLoggerFactory!==DR&&PR(s,!0),s}function DR(t,e,n){return t.child(e,n)}LR.exports={createLogger:Une,createChildLogger:Bne,defaultChildLoggerFactory:DR,serializers:Vd,now:jne}});var l1=C((Vbe,FR)=>{"use strict";FR.exports=Hne;function qo(t){return t instanceof Buffer?Buffer.from(t):new t.constructor(t.buffer.slice(),t.byteOffset,t.length)}function Hne(t){if(t=t||{},t.circles)return qne(t);return t.proto?r:n;function e(l,i){for(var s=Object.keys(l),a=new Array(s.length),o=0;o{"use strict";var Vne=l1()({circles:!1,proto:!0}),{kSchemaVisited:MR,kSchemaResponse:zne}=Mr(),Gd=Symbol.for("fluent-schema-object"),{FST_ERR_SCH_MISSING_ID:Gne,FST_ERR_SCH_ALREADY_PRESENT:Xne,FST_ERR_SCH_DUPLICATE:Wne,FST_ERR_SCH_CONTENT_MISSING_SCHEMA:Kne}=al(),jR=["params","body","querystring","query","headers"];function h6(t){this.store=t||{}}h6.prototype.add=function(t){let e=Vne(t.isFluentSchema||t.isFluentJSONSchema||t[Gd]?t.valueOf():t),n=e.$id;if(!n)throw new Gne;if(this.store[n])throw new Xne(n);this.store[n]=e};h6.prototype.getSchemas=function(){return Object.assign({},this.store)};h6.prototype.getSchema=function(t){return this.store[t]};function $R(t){return typeof t=="object"&&Object.getPrototypeOf(t)!==Object.prototype}function Yne(t,e){if(t[MR])return t;if(t.query){if(t.querystring)throw new Wne("querystring");t.querystring=t.query}Jne(t);for(let n of jR){let r=t[n];r&&!$R(r)&&(t[n]=zd(r,e.jsonShorthand))}if(t.response){let n=Object.keys(t.response);for(let r of n){if($R(t.response[r]))continue;let l=t.response[r].content,i=!1;if(l){let s=Object.keys(l);for(let a=0;a{"use strict";var Zne=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/;HR.exports=class BR{constructor(e){switch(e&&e.rounding){case"floor":this.parseInteger=Math.floor;break;case"ceil":this.parseInteger=Math.ceil;break;case"round":this.parseInteger=Math.round;break;case"trunc":default:this.parseInteger=Math.trunc;break}this._options=e}asInteger(e){if(typeof e=="number"){if(e===1/0||e===-1/0)throw new Error(`The value "${e}" cannot be converted to an integer.`);if(Number.isInteger(e))return""+e;if(Number.isNaN(e))throw new Error(`The value "${e}" cannot be converted to an integer.`);return this.parseInteger(e)}else{if(e===null)return"0";if(typeof e=="bigint")return e.toString();{let n=this.parseInteger(e);if(Number.isFinite(n))return""+n;throw new Error(`The value "${e}" cannot be converted to an integer.`)}}}asNumber(e){let n=Number(e);if(Number.isNaN(n))throw new Error(`The value "${e}" cannot be converted to a number.`);return Number.isFinite(n)?""+n:"null"}asBoolean(e){return e&&"true"||"false"}asDateTime(e){if(e===null)return'""';if(e instanceof Date)return'"'+e.toISOString()+'"';if(typeof e=="string")return'"'+e+'"';throw new Error(`The value "${e}" cannot be converted to a date-time.`)}asDate(e){if(e===null)return'""';if(e instanceof Date)return'"'+new Date(e.getTime()-e.getTimezoneOffset()*6e4).toISOString().slice(0,10)+'"';if(typeof e=="string")return'"'+e+'"';throw new Error(`The value "${e}" cannot be converted to a date.`)}asTime(e){if(e===null)return'""';if(e instanceof Date)return'"'+new Date(e.getTime()-e.getTimezoneOffset()*6e4).toISOString().slice(11,19)+'"';if(typeof e=="string")return'"'+e+'"';throw new Error(`The value "${e}" cannot be converted to a time.`)}asString(e){if(typeof e!="string"){if(e===null)return'""';if(e instanceof Date)return'"'+e.toISOString()+'"';e instanceof RegExp?e=e.source:e=e.toString()}return e.length<42?this.asStringSmall(e):Zne.test(e)===!1?'"'+e+'"':JSON.stringify(e)}asStringSmall(e){let n=e.length,r="",l=-1,i=255;for(var s=0;s=55296&&i<=57343)return JSON.stringify(e);(i===34||i===92)&&(l===-1&&(l=0),r+=e.slice(l,s)+"\\",l=s)}return l===-1&&'"'+e+'"'||'"'+r+e.slice(l)+'"'}getState(){return this._options}static restoreFromState(e){return new BR(e)}}});var Vo=C(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.regexpCode=zt.getEsmExportName=zt.getProperty=zt.safeStringify=zt.stringify=zt.strConcat=zt.addCodeArg=zt.str=zt._=zt.nil=zt._Code=zt.Name=zt.IDENTIFIER=zt._CodeOrName=void 0;var s1=class{};zt._CodeOrName=s1;zt.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var ha=class extends s1{constructor(e){if(super(),!zt.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};zt.Name=ha;var y2=class extends s1{constructor(e){super(),this._items=typeof e=="string"?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return e===""||e==='""'}get str(){var e;return(e=this._str)!==null&&e!==void 0?e:this._str=this._items.reduce((n,r)=>`${n}${r}`,"")}get names(){var e;return(e=this._names)!==null&&e!==void 0?e:this._names=this._items.reduce((n,r)=>(r instanceof ha&&(n[r.str]=(n[r.str]||0)+1),n),{})}};zt._Code=y2;zt.nil=new y2("");function qR(t,...e){let n=[t[0]],r=0;for(;r{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});bl.ValueScope=bl.ValueScopeName=bl.Scope=bl.varKinds=bl.UsedValueState=void 0;var Fl=Vo(),Yd=class extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}},Jd;(function(t){t[t.Started=0]="Started",t[t.Completed=1]="Completed"})(Jd=bl.UsedValueState||(bl.UsedValueState={}));bl.varKinds={const:new Fl.Name("const"),let:new Fl.Name("let"),var:new Fl.Name("var")};var m6=class{constructor({prefixes:e,parent:n}={}){this._names={},this._prefixes=e,this._parent=n}toName(e){return e instanceof Fl.Name?e:this.name(e)}name(e){return new Fl.Name(this._newName(e))}_newName(e){let n=this._names[e]||this._nameGroup(e);return`${e}${n.index++}`}_nameGroup(e){var n,r;if(!((r=(n=this._parent)===null||n===void 0?void 0:n._prefixes)===null||r===void 0)&&r.has(e)||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}};bl.Scope=m6;var g6=class extends Fl.Name{constructor(e,n){super(n),this.prefix=e}setValue(e,{property:n,itemIndex:r}){this.value=e,this.scopePath=(0,Fl._)`.${new Fl.Name(n)}[${r}]`}};bl.ValueScopeName=g6;var ore=(0,Fl._)`\n`,Qd=class extends m6{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?ore:Fl.nil}}get(){return this._scope}name(e){return new g6(e,this._newName(e))}value(e,n){var r;if(n.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let l=this.toName(e),{prefix:i}=l,s=(r=n.key)!==null&&r!==void 0?r:n.ref,a=this._values[i];if(a){let f=a.get(s);if(f)return f}else a=this._values[i]=new Map;a.set(s,l);let o=this._scope[i]||(this._scope[i]=[]),c=o.length;return o[c]=n.ref,l.setValue(n,{property:i,itemIndex:c}),l}getValue(e,n){let r=this._values[e];if(r)return r.get(n)}scopeRefs(e,n=this._values){return this._reduceValues(n,r=>{if(r.scopePath===void 0)throw new Error(`CodeGen: name "${r}" has no value`);return(0,Fl._)`${e}${r.scopePath}`})}scopeCode(e=this._values,n,r){return this._reduceValues(e,l=>{if(l.value===void 0)throw new Error(`CodeGen: name "${l}" has no value`);return l.value.code},n,r)}_reduceValues(e,n,r={},l){let i=Fl.nil;for(let s in e){let a=e[s];if(!a)continue;let o=r[s]=r[s]||new Map;a.forEach(c=>{if(o.has(c))return;o.set(c,Jd.Started);let f=n(c);if(f){let p=this.opts.es5?bl.varKinds.var:bl.varKinds.const;i=(0,Fl._)`${i}${p} ${c} = ${f};${this.opts._n}`}else if(f=l?.(c))i=(0,Fl._)`${i}${f}${this.opts._n}`;else throw new Yd(c);o.set(c,Jd.Completed)})}return i}};bl.ValueScope=Qd});var Ze=C(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt.or=Tt.and=Tt.not=Tt.CodeGen=Tt.operators=Tt.varKinds=Tt.ValueScopeName=Tt.ValueScope=Tt.Scope=Tt.Name=Tt.regexpCode=Tt.stringify=Tt.getProperty=Tt.nil=Tt.strConcat=Tt.str=Tt._=void 0;var Mt=Vo(),B2=y6(),q3=Vo();Object.defineProperty(Tt,"_",{enumerable:!0,get:function(){return q3._}});Object.defineProperty(Tt,"str",{enumerable:!0,get:function(){return q3.str}});Object.defineProperty(Tt,"strConcat",{enumerable:!0,get:function(){return q3.strConcat}});Object.defineProperty(Tt,"nil",{enumerable:!0,get:function(){return q3.nil}});Object.defineProperty(Tt,"getProperty",{enumerable:!0,get:function(){return q3.getProperty}});Object.defineProperty(Tt,"stringify",{enumerable:!0,get:function(){return q3.stringify}});Object.defineProperty(Tt,"regexpCode",{enumerable:!0,get:function(){return q3.regexpCode}});Object.defineProperty(Tt,"Name",{enumerable:!0,get:function(){return q3.Name}});var b6=y6();Object.defineProperty(Tt,"Scope",{enumerable:!0,get:function(){return b6.Scope}});Object.defineProperty(Tt,"ValueScope",{enumerable:!0,get:function(){return b6.ValueScope}});Object.defineProperty(Tt,"ValueScopeName",{enumerable:!0,get:function(){return b6.ValueScopeName}});Object.defineProperty(Tt,"varKinds",{enumerable:!0,get:function(){return b6.varKinds}});Tt.operators={GT:new Mt._Code(">"),GTE:new Mt._Code(">="),LT:new Mt._Code("<"),LTE:new Mt._Code("<="),EQ:new Mt._Code("==="),NEQ:new Mt._Code("!=="),NOT:new Mt._Code("!"),OR:new Mt._Code("||"),AND:new Mt._Code("&&"),ADD:new Mt._Code("+")};var s3=class{optimizeNodes(){return this}optimizeNames(e,n){return this}},Zd=class extends s3{constructor(e,n,r){super(),this.varKind=e,this.name=n,this.rhs=r}render({es5:e,_n:n}){let r=e?B2.varKinds.var:this.varKind,l=this.rhs===void 0?"":` = ${this.rhs}`;return`${r} ${this.name}${l};`+n}optimizeNames(e,n){if(e[this.name.str])return this.rhs&&(this.rhs=Go(this.rhs,e,n)),this}get names(){return this.rhs instanceof Mt._CodeOrName?this.rhs.names:{}}},v6=class extends s3{constructor(e,n,r){super(),this.lhs=e,this.rhs=n,this.sideEffects=r}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,n){if(!(this.lhs instanceof Mt.Name&&!e[this.lhs.str]&&!this.sideEffects))return this.rhs=Go(this.rhs,e,n),this}get names(){let e=this.lhs instanceof Mt.Name?{}:{...this.lhs.names};return E6(e,this.rhs)}},eh=class extends v6{constructor(e,n,r,l){super(e,r,l),this.op=n}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},th=class extends s3{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},nh=class extends s3{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}},rh=class extends s3{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},lh=class extends s3{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,n){return this.code=Go(this.code,e,n),this}get names(){return this.code instanceof Mt._CodeOrName?this.code.names:{}}},o1=class extends s3{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((n,r)=>n+r.render(e),"")}optimizeNodes(){let{nodes:e}=this,n=e.length;for(;n--;){let r=e[n].optimizeNodes();Array.isArray(r)?e.splice(n,1,...r):r?e[n]=r:e.splice(n,1)}return e.length>0?this:void 0}optimizeNames(e,n){let{nodes:r}=this,l=r.length;for(;l--;){let i=r[l];i.optimizeNames(e,n)||(ure(e,i.names),r.splice(l,1))}return r.length>0?this:void 0}get names(){return this.nodes.reduce((e,n)=>ya(e,n.names),{})}},a3=class extends o1{render(e){return"{"+e._n+super.render(e)+"}"+e._n}},ih=class extends o1{},zo=class extends a3{};zo.kind="else";var ma=class t extends a3{constructor(e,n){super(n),this.condition=e}render(e){let n=`if(${this.condition})`+super.render(e);return this.else&&(n+="else "+this.else.render(e)),n}optimizeNodes(){super.optimizeNodes();let e=this.condition;if(e===!0)return this.nodes;let n=this.else;if(n){let r=n.optimizeNodes();n=this.else=Array.isArray(r)?new zo(r):r}if(n)return e===!1?n instanceof t?n:n.nodes:this.nodes.length?this:new t(zR(e),n instanceof t?[n]:n.nodes);if(!(e===!1||!this.nodes.length))return this}optimizeNames(e,n){var r;if(this.else=(r=this.else)===null||r===void 0?void 0:r.optimizeNames(e,n),!!(super.optimizeNames(e,n)||this.else))return this.condition=Go(this.condition,e,n),this}get names(){let e=super.names;return E6(e,this.condition),this.else&&ya(e,this.else.names),e}};ma.kind="if";var ga=class extends a3{};ga.kind="for";var sh=class extends ga{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,n){if(super.optimizeNames(e,n))return this.iteration=Go(this.iteration,e,n),this}get names(){return ya(super.names,this.iteration.names)}},ah=class extends ga{constructor(e,n,r,l){super(),this.varKind=e,this.name=n,this.from=r,this.to=l}render(e){let n=e.es5?B2.varKinds.var:this.varKind,{name:r,from:l,to:i}=this;return`for(${n} ${r}=${l}; ${r}<${i}; ${r}++)`+super.render(e)}get names(){let e=E6(super.names,this.from);return E6(e,this.to)}},_6=class extends ga{constructor(e,n,r,l){super(),this.loop=e,this.varKind=n,this.name=r,this.iterable=l}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,n){if(super.optimizeNames(e,n))return this.iterable=Go(this.iterable,e,n),this}get names(){return ya(super.names,this.iterable.names)}},u1=class extends a3{constructor(e,n,r){super(),this.name=e,this.args=n,this.async=r}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}};u1.kind="func";var c1=class extends o1{render(e){return"return "+super.render(e)}};c1.kind="return";var oh=class extends a3{render(e){let n="try"+super.render(e);return this.catch&&(n+=this.catch.render(e)),this.finally&&(n+=this.finally.render(e)),n}optimizeNodes(){var e,n;return super.optimizeNodes(),(e=this.catch)===null||e===void 0||e.optimizeNodes(),(n=this.finally)===null||n===void 0||n.optimizeNodes(),this}optimizeNames(e,n){var r,l;return super.optimizeNames(e,n),(r=this.catch)===null||r===void 0||r.optimizeNames(e,n),(l=this.finally)===null||l===void 0||l.optimizeNames(e,n),this}get names(){let e=super.names;return this.catch&&ya(e,this.catch.names),this.finally&&ya(e,this.finally.names),e}},f1=class extends a3{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};f1.kind="catch";var p1=class extends a3{render(e){return"finally"+super.render(e)}};p1.kind="finally";var uh=class{constructor(e,n={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...n,_n:n.lines?`
+`:""},this._extScope=e,this._scope=new B2.Scope({parent:e}),this._nodes=[new ih]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,n){let r=this._extScope.value(e,n);return(this._values[r.prefix]||(this._values[r.prefix]=new Set)).add(r),r}getScopeValue(e,n){return this._extScope.getValue(e,n)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,n,r,l){let i=this._scope.toName(n);return r!==void 0&&l&&(this._constants[i.str]=r),this._leafNode(new Zd(e,i,r)),i}const(e,n,r){return this._def(B2.varKinds.const,e,n,r)}let(e,n,r){return this._def(B2.varKinds.let,e,n,r)}var(e,n,r){return this._def(B2.varKinds.var,e,n,r)}assign(e,n,r){return this._leafNode(new v6(e,n,r))}add(e,n){return this._leafNode(new eh(e,Tt.operators.ADD,n))}code(e){return typeof e=="function"?e():e!==Mt.nil&&this._leafNode(new lh(e)),this}object(...e){let n=["{"];for(let[r,l]of e)n.length>1&&n.push(","),n.push(r),(r!==l||this.opts.es5)&&(n.push(":"),(0,Mt.addCodeArg)(n,l));return n.push("}"),new Mt._Code(n)}if(e,n,r){if(this._blockNode(new ma(e)),n&&r)this.code(n).else().code(r).endIf();else if(n)this.code(n).endIf();else if(r)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new ma(e))}else(){return this._elseNode(new zo)}endIf(){return this._endBlockNode(ma,zo)}_for(e,n){return this._blockNode(e),n&&this.code(n).endFor(),this}for(e,n){return this._for(new sh(e),n)}forRange(e,n,r,l,i=this.opts.es5?B2.varKinds.var:B2.varKinds.let){let s=this._scope.toName(e);return this._for(new ah(i,s,n,r),()=>l(s))}forOf(e,n,r,l=B2.varKinds.const){let i=this._scope.toName(e);if(this.opts.es5){let s=n instanceof Mt.Name?n:this.var("_arr",n);return this.forRange("_i",0,(0,Mt._)`${s}.length`,a=>{this.var(i,(0,Mt._)`${s}[${a}]`),r(i)})}return this._for(new _6("of",l,i,n),()=>r(i))}forIn(e,n,r,l=this.opts.es5?B2.varKinds.var:B2.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,Mt._)`Object.keys(${n})`,r);let i=this._scope.toName(e);return this._for(new _6("in",l,i,n),()=>r(i))}endFor(){return this._endBlockNode(ga)}label(e){return this._leafNode(new th(e))}break(e){return this._leafNode(new nh(e))}return(e){let n=new c1;if(this._blockNode(n),this.code(e),n.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(c1)}try(e,n,r){if(!n&&!r)throw new Error('CodeGen: "try" without "catch" and "finally"');let l=new oh;if(this._blockNode(l),this.code(e),n){let i=this.name("e");this._currNode=l.catch=new f1(i),n(i)}return r&&(this._currNode=l.finally=new p1,this.code(r)),this._endBlockNode(f1,p1)}throw(e){return this._leafNode(new rh(e))}block(e,n){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(n),this}endBlock(e){let n=this._blockStarts.pop();if(n===void 0)throw new Error("CodeGen: not in self-balancing block");let r=this._nodes.length-n;if(r<0||e!==void 0&&r!==e)throw new Error(`CodeGen: wrong number of nodes: ${r} vs ${e} expected`);return this._nodes.length=n,this}func(e,n=Mt.nil,r,l){return this._blockNode(new u1(e,n,r)),l&&this.code(l).endFunc(),this}endFunc(){return this._endBlockNode(u1)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,n){let r=this._currNode;if(r instanceof e||n&&r instanceof n)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${n?`${e.kind}/${n.kind}`:e.kind}"`)}_elseNode(e){let n=this._currNode;if(!(n instanceof ma))throw new Error('CodeGen: "else" without "if"');return this._currNode=n.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let n=this._nodes;n[n.length-1]=e}};Tt.CodeGen=uh;function ya(t,e){for(let n in e)t[n]=(t[n]||0)+(e[n]||0);return t}function E6(t,e){return e instanceof Mt._CodeOrName?ya(t,e.names):t}function Go(t,e,n){if(t instanceof Mt.Name)return r(t);if(!l(t))return t;return new Mt._Code(t._items.reduce((i,s)=>(s instanceof Mt.Name&&(s=r(s)),s instanceof Mt._Code?i.push(...s._items):i.push(s),i),[]));function r(i){let s=n[i.str];return s===void 0||e[i.str]!==1?i:(delete e[i.str],s)}function l(i){return i instanceof Mt._Code&&i._items.some(s=>s instanceof Mt.Name&&e[s.str]===1&&n[s.str]!==void 0)}}function ure(t,e){for(let n in e)t[n]=(t[n]||0)-(e[n]||0)}function zR(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:(0,Mt._)`!${ch(t)}`}Tt.not=zR;var cre=GR(Tt.operators.AND);function fre(...t){return t.reduce(cre)}Tt.and=fre;var pre=GR(Tt.operators.OR);function dre(...t){return t.reduce(pre)}Tt.or=dre;function GR(t){return(e,n)=>e===Mt.nil?n:n===Mt.nil?e:(0,Mt._)`${ch(e)} ${t} ${ch(n)}`}function ch(t){return t instanceof Mt.Name?t:(0,Mt._)`(${t})`}});var _t=C(St=>{"use strict";Object.defineProperty(St,"__esModule",{value:!0});St.checkStrictMode=St.getErrorPath=St.Type=St.useFunc=St.setEvaluated=St.evaluatedPropsToName=St.mergeEvaluated=St.eachItem=St.unescapeJsonPointer=St.escapeJsonPointer=St.escapeFragment=St.unescapeFragment=St.schemaRefOrVal=St.schemaHasRulesButRef=St.schemaHasRules=St.checkUnknownRules=St.alwaysValidSchema=St.toHash=void 0;var Sn=Ze(),hre=Vo();function mre(t){let e={};for(let n of t)e[n]=!0;return e}St.toHash=mre;function gre(t,e){return typeof e=="boolean"?e:Object.keys(e).length===0?!0:(KR(t,e),!YR(e,t.self.RULES.all))}St.alwaysValidSchema=gre;function KR(t,e=t.schema){let{opts:n,self:r}=t;if(!n.strictSchema||typeof e=="boolean")return;let l=r.RULES.keywords;for(let i in e)l[i]||eO(t,`unknown keyword: "${i}"`)}St.checkUnknownRules=KR;function YR(t,e){if(typeof t=="boolean")return!t;for(let n in t)if(e[n])return!0;return!1}St.schemaHasRules=YR;function yre(t,e){if(typeof t=="boolean")return!t;for(let n in t)if(n!=="$ref"&&e.all[n])return!0;return!1}St.schemaHasRulesButRef=yre;function vre({topSchemaRef:t,schemaPath:e},n,r,l){if(!l){if(typeof n=="number"||typeof n=="boolean")return n;if(typeof n=="string")return(0,Sn._)`${n}`}return(0,Sn._)`${t}${e}${(0,Sn.getProperty)(r)}`}St.schemaRefOrVal=vre;function _re(t){return JR(decodeURIComponent(t))}St.unescapeFragment=_re;function Ere(t){return encodeURIComponent(fh(t))}St.escapeFragment=Ere;function fh(t){return typeof t=="number"?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}St.escapeJsonPointer=fh;function JR(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}St.unescapeJsonPointer=JR;function bre(t,e){if(Array.isArray(t))for(let n of t)e(n);else e(t)}St.eachItem=bre;function XR({mergeNames:t,mergeToName:e,mergeValues:n,resultToName:r}){return(l,i,s,a)=>{let o=s===void 0?i:s instanceof Sn.Name?(i instanceof Sn.Name?t(l,i,s):e(l,i,s),s):i instanceof Sn.Name?(e(l,s,i),i):n(i,s);return a===Sn.Name&&!(o instanceof Sn.Name)?r(l,o):o}}St.mergeEvaluated={props:XR({mergeNames:(t,e,n)=>t.if((0,Sn._)`${n} !== true && ${e} !== undefined`,()=>{t.if((0,Sn._)`${e} === true`,()=>t.assign(n,!0),()=>t.assign(n,(0,Sn._)`${n} || {}`).code((0,Sn._)`Object.assign(${n}, ${e})`))}),mergeToName:(t,e,n)=>t.if((0,Sn._)`${n} !== true`,()=>{e===!0?t.assign(n,!0):(t.assign(n,(0,Sn._)`${n} || {}`),ph(t,n,e))}),mergeValues:(t,e)=>t===!0?!0:{...t,...e},resultToName:QR}),items:XR({mergeNames:(t,e,n)=>t.if((0,Sn._)`${n} !== true && ${e} !== undefined`,()=>t.assign(n,(0,Sn._)`${e} === true ? true : ${n} > ${e} ? ${n} : ${e}`)),mergeToName:(t,e,n)=>t.if((0,Sn._)`${n} !== true`,()=>t.assign(n,e===!0?!0:(0,Sn._)`${n} > ${e} ? ${n} : ${e}`)),mergeValues:(t,e)=>t===!0?!0:Math.max(t,e),resultToName:(t,e)=>t.var("items",e)})};function QR(t,e){if(e===!0)return t.var("props",!0);let n=t.var("props",(0,Sn._)`{}`);return e!==void 0&&ph(t,n,e),n}St.evaluatedPropsToName=QR;function ph(t,e,n){Object.keys(n).forEach(r=>t.assign((0,Sn._)`${e}${(0,Sn.getProperty)(r)}`,!0))}St.setEvaluated=ph;var WR={};function Tre(t,e){return t.scopeValue("func",{ref:e,code:WR[e.code]||(WR[e.code]=new hre._Code(e.code))})}St.useFunc=Tre;var ZR;(function(t){t[t.Num=0]="Num",t[t.Str=1]="Str"})(ZR=St.Type||(St.Type={}));function Sre(t,e,n){if(t instanceof Sn.Name){let r=e===ZR.Num;return n?r?(0,Sn._)`"[" + ${t} + "]"`:(0,Sn._)`"['" + ${t} + "']"`:r?(0,Sn._)`"/" + ${t}`:(0,Sn._)`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,Sn.getProperty)(t).toString():"/"+fh(t)}St.getErrorPath=Sre;function eO(t,e,n=t.opts.strictSchema){if(n){if(e=`strict mode: ${e}`,n===!0)throw new Error(e);t.self.logger.warn(e)}}St.checkStrictMode=eO});var v2=C(dh=>{"use strict";Object.defineProperty(dh,"__esModule",{value:!0});var ul=Ze(),xre={data:new ul.Name("data"),valCxt:new ul.Name("valCxt"),instancePath:new ul.Name("instancePath"),parentData:new ul.Name("parentData"),parentDataProperty:new ul.Name("parentDataProperty"),rootData:new ul.Name("rootData"),dynamicAnchors:new ul.Name("dynamicAnchors"),vErrors:new ul.Name("vErrors"),errors:new ul.Name("errors"),this:new ul.Name("this"),self:new ul.Name("self"),scope:new ul.Name("scope"),json:new ul.Name("json"),jsonPos:new ul.Name("jsonPos"),jsonLen:new ul.Name("jsonLen"),jsonPart:new ul.Name("jsonPart")};dh.default=xre});var d1=C(cl=>{"use strict";Object.defineProperty(cl,"__esModule",{value:!0});cl.extendErrors=cl.resetErrorsCount=cl.reportExtraError=cl.reportError=cl.keyword$DataError=cl.keywordError=void 0;var Bt=Ze(),T6=_t(),Tl=v2();cl.keywordError={message:({keyword:t})=>(0,Bt.str)`must pass "${t}" keyword validation`};cl.keyword$DataError={message:({keyword:t,schemaType:e})=>e?(0,Bt.str)`"${t}" keyword must be ${e} ($data)`:(0,Bt.str)`"${t}" keyword is invalid ($data)`};function Are(t,e=cl.keywordError,n,r){let{it:l}=t,{gen:i,compositeRule:s,allErrors:a}=l,o=rO(t,e,n);r??(s||a)?tO(i,o):nO(l,(0,Bt._)`[${o}]`)}cl.reportError=Are;function wre(t,e=cl.keywordError,n){let{it:r}=t,{gen:l,compositeRule:i,allErrors:s}=r,a=rO(t,e,n);tO(l,a),i||s||nO(r,Tl.default.vErrors)}cl.reportExtraError=wre;function Rre(t,e){t.assign(Tl.default.errors,e),t.if((0,Bt._)`${Tl.default.vErrors} !== null`,()=>t.if(e,()=>t.assign((0,Bt._)`${Tl.default.vErrors}.length`,e),()=>t.assign(Tl.default.vErrors,null)))}cl.resetErrorsCount=Rre;function Ore({gen:t,keyword:e,schemaValue:n,data:r,errsCount:l,it:i}){if(l===void 0)throw new Error("ajv implementation error");let s=t.name("err");t.forRange("i",l,Tl.default.errors,a=>{t.const(s,(0,Bt._)`${Tl.default.vErrors}[${a}]`),t.if((0,Bt._)`${s}.instancePath === undefined`,()=>t.assign((0,Bt._)`${s}.instancePath`,(0,Bt.strConcat)(Tl.default.instancePath,i.errorPath))),t.assign((0,Bt._)`${s}.schemaPath`,(0,Bt.str)`${i.errSchemaPath}/${e}`),i.opts.verbose&&(t.assign((0,Bt._)`${s}.schema`,n),t.assign((0,Bt._)`${s}.data`,r))})}cl.extendErrors=Ore;function tO(t,e){let n=t.const("err",e);t.if((0,Bt._)`${Tl.default.vErrors} === null`,()=>t.assign(Tl.default.vErrors,(0,Bt._)`[${n}]`),(0,Bt._)`${Tl.default.vErrors}.push(${n})`),t.code((0,Bt._)`${Tl.default.errors}++`)}function nO(t,e){let{gen:n,validateName:r,schemaEnv:l}=t;l.$async?n.throw((0,Bt._)`new ${t.ValidationError}(${e})`):(n.assign((0,Bt._)`${r}.errors`,e),n.return(!1))}var va={keyword:new Bt.Name("keyword"),schemaPath:new Bt.Name("schemaPath"),params:new Bt.Name("params"),propertyName:new Bt.Name("propertyName"),message:new Bt.Name("message"),schema:new Bt.Name("schema"),parentSchema:new Bt.Name("parentSchema")};function rO(t,e,n){let{createErrors:r}=t.it;return r===!1?(0,Bt._)`{}`:Nre(t,e,n)}function Nre(t,e,n={}){let{gen:r,it:l}=t,i=[Ire(l,n),Cre(t,n)];return kre(t,e,i),r.object(...i)}function Ire({errorPath:t},{instancePath:e}){let n=e?(0,Bt.str)`${t}${(0,T6.getErrorPath)(e,T6.Type.Str)}`:t;return[Tl.default.instancePath,(0,Bt.strConcat)(Tl.default.instancePath,n)]}function Cre({keyword:t,it:{errSchemaPath:e}},{schemaPath:n,parentSchema:r}){let l=r?e:(0,Bt.str)`${e}/${t}`;return n&&(l=(0,Bt.str)`${l}${(0,T6.getErrorPath)(n,T6.Type.Str)}`),[va.schemaPath,l]}function kre(t,{params:e,message:n},r){let{keyword:l,data:i,schemaValue:s,it:a}=t,{opts:o,propertyName:c,topSchemaRef:f,schemaPath:p}=a;r.push([va.keyword,l],[va.params,typeof e=="function"?e(t):e||(0,Bt._)`{}`]),o.messages&&r.push([va.message,typeof n=="function"?n(t):n]),o.verbose&&r.push([va.schema,s],[va.parentSchema,(0,Bt._)`${f}${p}`],[Tl.default.data,i]),c&&r.push([va.propertyName,c])}});var iO=C(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.boolOrEmptySchema=Xo.topBoolOrEmptySchema=void 0;var Pre=d1(),Dre=Ze(),Lre=v2(),Fre={message:"boolean schema is false"};function Mre(t){let{gen:e,schema:n,validateName:r}=t;n===!1?lO(t,!1):typeof n=="object"&&n.$async===!0?e.return(Lre.default.data):(e.assign((0,Dre._)`${r}.errors`,null),e.return(!0))}Xo.topBoolOrEmptySchema=Mre;function $re(t,e){let{gen:n,schema:r}=t;r===!1?(n.var(e,!1),lO(t)):n.var(e,!0)}Xo.boolOrEmptySchema=$re;function lO(t,e){let{gen:n,data:r}=t,l={gen:n,keyword:"false schema",data:r,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,Pre.reportError)(l,Fre,void 0,e)}});var hh=C(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.getRules=Wo.isJSONType=void 0;var jre=["string","number","integer","boolean","null","object","array"],Ure=new Set(jre);function Bre(t){return typeof t=="string"&&Ure.has(t)}Wo.isJSONType=Bre;function Hre(){let t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...t,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}}Wo.getRules=Hre});var mh=C(V3=>{"use strict";Object.defineProperty(V3,"__esModule",{value:!0});V3.shouldUseRule=V3.shouldUseGroup=V3.schemaHasRulesForType=void 0;function qre({schema:t,self:e},n){let r=e.RULES.types[n];return r&&r!==!0&&sO(t,r)}V3.schemaHasRulesForType=qre;function sO(t,e){return e.rules.some(n=>aO(t,n))}V3.shouldUseGroup=sO;function aO(t,e){var n;return t[e.keyword]!==void 0||((n=e.definition.implements)===null||n===void 0?void 0:n.some(r=>t[r]!==void 0))}V3.shouldUseRule=aO});var m1=C(Gr=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});Gr.reportTypeError=Gr.checkDataTypes=Gr.checkDataType=Gr.coerceAndCheckDataType=Gr.getJSONTypes=Gr.getSchemaTypes=Gr.DataType=void 0;var Vre=hh(),zre=mh(),Gre=d1(),vt=Ze(),oO=_t(),h1;(function(t){t[t.Correct=0]="Correct",t[t.Wrong=1]="Wrong"})(h1=Gr.DataType||(Gr.DataType={}));function Xre(t){let e=uO(t.type);if(e.includes("null")){if(t.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!e.length&&t.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');t.nullable===!0&&e.push("null")}return e}Gr.getSchemaTypes=Xre;function uO(t){let e=Array.isArray(t)?t:t?[t]:[];if(e.every(Vre.isJSONType))return e;throw new Error("type must be JSONType or JSONType[]: "+e.join(","))}Gr.getJSONTypes=uO;function Wre(t,e){let{gen:n,data:r,opts:l}=t,i=Kre(e,l.coerceTypes),s=e.length>0&&!(i.length===0&&e.length===1&&(0,zre.schemaHasRulesForType)(t,e[0]));if(s){let a=yh(e,r,l.strictNumbers,h1.Wrong);n.if(a,()=>{i.length?Yre(t,e,i):vh(t)})}return s}Gr.coerceAndCheckDataType=Wre;var cO=new Set(["string","number","integer","boolean","null"]);function Kre(t,e){return e?t.filter(n=>cO.has(n)||e==="array"&&n==="array"):[]}function Yre(t,e,n){let{gen:r,data:l,opts:i}=t,s=r.let("dataType",(0,vt._)`typeof ${l}`),a=r.let("coerced",(0,vt._)`undefined`);i.coerceTypes==="array"&&r.if((0,vt._)`${s} == 'object' && Array.isArray(${l}) && ${l}.length == 1`,()=>r.assign(l,(0,vt._)`${l}[0]`).assign(s,(0,vt._)`typeof ${l}`).if(yh(e,l,i.strictNumbers),()=>r.assign(a,l))),r.if((0,vt._)`${a} !== undefined`);for(let c of n)(cO.has(c)||c==="array"&&i.coerceTypes==="array")&&o(c);r.else(),vh(t),r.endIf(),r.if((0,vt._)`${a} !== undefined`,()=>{r.assign(l,a),Jre(t,a)});function o(c){switch(c){case"string":r.elseIf((0,vt._)`${s} == "number" || ${s} == "boolean"`).assign(a,(0,vt._)`"" + ${l}`).elseIf((0,vt._)`${l} === null`).assign(a,(0,vt._)`""`);return;case"number":r.elseIf((0,vt._)`${s} == "boolean" || ${l} === null
+ || (${s} == "string" && ${l} && ${l} == +${l})`).assign(a,(0,vt._)`+${l}`);return;case"integer":r.elseIf((0,vt._)`${s} === "boolean" || ${l} === null
+ || (${s} === "string" && ${l} && ${l} == +${l} && !(${l} % 1))`).assign(a,(0,vt._)`+${l}`);return;case"boolean":r.elseIf((0,vt._)`${l} === "false" || ${l} === 0 || ${l} === null`).assign(a,!1).elseIf((0,vt._)`${l} === "true" || ${l} === 1`).assign(a,!0);return;case"null":r.elseIf((0,vt._)`${l} === "" || ${l} === 0 || ${l} === false`),r.assign(a,null);return;case"array":r.elseIf((0,vt._)`${s} === "string" || ${s} === "number"
+ || ${s} === "boolean" || ${l} === null`).assign(a,(0,vt._)`[${l}]`)}}}function Jre({gen:t,parentData:e,parentDataProperty:n},r){t.if((0,vt._)`${e} !== undefined`,()=>t.assign((0,vt._)`${e}[${n}]`,r))}function gh(t,e,n,r=h1.Correct){let l=r===h1.Correct?vt.operators.EQ:vt.operators.NEQ,i;switch(t){case"null":return(0,vt._)`${e} ${l} null`;case"array":i=(0,vt._)`Array.isArray(${e})`;break;case"object":i=(0,vt._)`${e} && typeof ${e} == "object" && !Array.isArray(${e})`;break;case"integer":i=s((0,vt._)`!(${e} % 1) && !isNaN(${e})`);break;case"number":i=s();break;default:return(0,vt._)`typeof ${e} ${l} ${t}`}return r===h1.Correct?i:(0,vt.not)(i);function s(a=vt.nil){return(0,vt.and)((0,vt._)`typeof ${e} == "number"`,a,n?(0,vt._)`isFinite(${e})`:vt.nil)}}Gr.checkDataType=gh;function yh(t,e,n,r){if(t.length===1)return gh(t[0],e,n,r);let l,i=(0,oO.toHash)(t);if(i.array&&i.object){let s=(0,vt._)`typeof ${e} != "object"`;l=i.null?s:(0,vt._)`!${e} || ${s}`,delete i.null,delete i.array,delete i.object}else l=vt.nil;i.number&&delete i.integer;for(let s in i)l=(0,vt.and)(l,gh(s,e,n,r));return l}Gr.checkDataTypes=yh;var Qre={message:({schema:t})=>`must be ${t}`,params:({schema:t,schemaValue:e})=>typeof t=="string"?(0,vt._)`{type: ${t}}`:(0,vt._)`{type: ${e}}`};function vh(t){let e=Zre(t);(0,Gre.reportError)(e,Qre)}Gr.reportTypeError=vh;function Zre(t){let{gen:e,data:n,schema:r}=t,l=(0,oO.schemaRefOrVal)(t,r,"type");return{gen:e,keyword:"type",data:n,schema:r.type,schemaCode:l,schemaValue:l,parentSchema:r,params:{},it:t}}});var pO=C(S6=>{"use strict";Object.defineProperty(S6,"__esModule",{value:!0});S6.assignDefaults=void 0;var Ko=Ze(),ele=_t();function tle(t,e){let{properties:n,items:r}=t.schema;if(e==="object"&&n)for(let l in n)fO(t,l,n[l].default);else e==="array"&&Array.isArray(r)&&r.forEach((l,i)=>fO(t,i,l.default))}S6.assignDefaults=tle;function fO(t,e,n){let{gen:r,compositeRule:l,data:i,opts:s}=t;if(n===void 0)return;let a=(0,Ko._)`${i}${(0,Ko.getProperty)(e)}`;if(l){(0,ele.checkStrictMode)(t,`default is ignored for: ${a}`);return}let o=(0,Ko._)`${a} === undefined`;s.useDefaults==="empty"&&(o=(0,Ko._)`${o} || ${a} === null || ${a} === ""`),r.if(o,(0,Ko._)`${a} = ${(0,Ko.stringify)(n)}`)}});var Xr=C(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.validateUnion=vn.validateArray=vn.usePattern=vn.callValidateCode=vn.schemaProperties=vn.allSchemaProperties=vn.noPropertyInData=vn.propertyInData=vn.isOwnProperty=vn.hasPropFunc=vn.reportMissingProp=vn.checkMissingProp=vn.checkReportMissingProp=void 0;var Dn=Ze(),_h=_t(),z3=v2(),nle=_t();function rle(t,e){let{gen:n,data:r,it:l}=t;n.if(bh(n,r,e,l.opts.ownProperties),()=>{t.setParams({missingProperty:(0,Dn._)`${e}`},!0),t.error()})}vn.checkReportMissingProp=rle;function lle({gen:t,data:e,it:{opts:n}},r,l){return(0,Dn.or)(...r.map(i=>(0,Dn.and)(bh(t,e,i,n.ownProperties),(0,Dn._)`${l} = ${i}`)))}vn.checkMissingProp=lle;function ile(t,e){t.setParams({missingProperty:e},!0),t.error()}vn.reportMissingProp=ile;function dO(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Dn._)`Object.prototype.hasOwnProperty`})}vn.hasPropFunc=dO;function Eh(t,e,n){return(0,Dn._)`${dO(t)}.call(${e}, ${n})`}vn.isOwnProperty=Eh;function sle(t,e,n,r){let l=(0,Dn._)`${e}${(0,Dn.getProperty)(n)} !== undefined`;return r?(0,Dn._)`${l} && ${Eh(t,e,n)}`:l}vn.propertyInData=sle;function bh(t,e,n,r){let l=(0,Dn._)`${e}${(0,Dn.getProperty)(n)} === undefined`;return r?(0,Dn.or)(l,(0,Dn.not)(Eh(t,e,n))):l}vn.noPropertyInData=bh;function hO(t){return t?Object.keys(t).filter(e=>e!=="__proto__"):[]}vn.allSchemaProperties=hO;function ale(t,e){return hO(e).filter(n=>!(0,_h.alwaysValidSchema)(t,e[n]))}vn.schemaProperties=ale;function ole({schemaCode:t,data:e,it:{gen:n,topSchemaRef:r,schemaPath:l,errorPath:i},it:s},a,o,c){let f=c?(0,Dn._)`${t}, ${e}, ${r}${l}`:e,p=[[z3.default.instancePath,(0,Dn.strConcat)(z3.default.instancePath,i)],[z3.default.parentData,s.parentData],[z3.default.parentDataProperty,s.parentDataProperty],[z3.default.rootData,z3.default.rootData]];s.opts.dynamicRef&&p.push([z3.default.dynamicAnchors,z3.default.dynamicAnchors]);let m=(0,Dn._)`${f}, ${n.object(...p)}`;return o!==Dn.nil?(0,Dn._)`${a}.call(${o}, ${m})`:(0,Dn._)`${a}(${m})`}vn.callValidateCode=ole;var ule=(0,Dn._)`new RegExp`;function cle({gen:t,it:{opts:e}},n){let r=e.unicodeRegExp?"u":"",{regExp:l}=e.code,i=l(n,r);return t.scopeValue("pattern",{key:i.toString(),ref:i,code:(0,Dn._)`${l.code==="new RegExp"?ule:(0,nle.useFunc)(t,l)}(${n}, ${r})`})}vn.usePattern=cle;function fle(t){let{gen:e,data:n,keyword:r,it:l}=t,i=e.name("valid");if(l.allErrors){let a=e.let("valid",!0);return s(()=>e.assign(a,!1)),a}return e.var(i,!0),s(()=>e.break()),i;function s(a){let o=e.const("len",(0,Dn._)`${n}.length`);e.forRange("i",0,o,c=>{t.subschema({keyword:r,dataProp:c,dataPropType:_h.Type.Num},i),e.if((0,Dn.not)(i),a)})}}vn.validateArray=fle;function ple(t){let{gen:e,schema:n,keyword:r,it:l}=t;if(!Array.isArray(n))throw new Error("ajv implementation error");if(n.some(o=>(0,_h.alwaysValidSchema)(l,o))&&!l.opts.unevaluated)return;let s=e.let("valid",!1),a=e.name("_valid");e.block(()=>n.forEach((o,c)=>{let f=t.subschema({keyword:r,schemaProp:c,compositeRule:!0},a);e.assign(s,(0,Dn._)`${s} || ${a}`),t.mergeValidEvaluated(f,a)||e.if((0,Dn.not)(s))})),t.result(s,()=>t.reset(),()=>t.error(!0))}vn.validateUnion=ple});var yO=C(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});gi.validateKeywordUsage=gi.validSchemaType=gi.funcKeywordCode=gi.macroKeywordCode=void 0;var Sl=Ze(),_a=v2(),dle=Xr(),hle=d1();function mle(t,e){let{gen:n,keyword:r,schema:l,parentSchema:i,it:s}=t,a=e.macro.call(s.self,l,i,s),o=gO(n,r,a);s.opts.validateSchema!==!1&&s.self.validateSchema(a,!0);let c=n.name("valid");t.subschema({schema:a,schemaPath:Sl.nil,errSchemaPath:`${s.errSchemaPath}/${r}`,topSchemaRef:o,compositeRule:!0},c),t.pass(c,()=>t.error(!0))}gi.macroKeywordCode=mle;function gle(t,e){var n;let{gen:r,keyword:l,schema:i,parentSchema:s,$data:a,it:o}=t;vle(o,e);let c=!a&&e.compile?e.compile.call(o.self,i,s,o):e.validate,f=gO(r,l,c),p=r.let("valid");t.block$data(p,m),t.ok((n=e.valid)!==null&&n!==void 0?n:p);function m(){if(e.errors===!1)_(),e.modifying&&mO(t),S(()=>t.error());else{let T=e.async?h():g();e.modifying&&mO(t),S(()=>yle(t,T))}}function h(){let T=r.let("ruleErrs",null);return r.try(()=>_((0,Sl._)`await `),x=>r.assign(p,!1).if((0,Sl._)`${x} instanceof ${o.ValidationError}`,()=>r.assign(T,(0,Sl._)`${x}.errors`),()=>r.throw(x))),T}function g(){let T=(0,Sl._)`${f}.errors`;return r.assign(T,null),_(Sl.nil),T}function _(T=e.async?(0,Sl._)`await `:Sl.nil){let x=o.opts.passContext?_a.default.this:_a.default.self,v=!("compile"in e&&!a||e.schema===!1);r.assign(p,(0,Sl._)`${T}${(0,dle.callValidateCode)(t,f,x,v)}`,e.modifying)}function S(T){var x;r.if((0,Sl.not)((x=e.valid)!==null&&x!==void 0?x:p),T)}}gi.funcKeywordCode=gle;function mO(t){let{gen:e,data:n,it:r}=t;e.if(r.parentData,()=>e.assign(n,(0,Sl._)`${r.parentData}[${r.parentDataProperty}]`))}function yle(t,e){let{gen:n}=t;n.if((0,Sl._)`Array.isArray(${e})`,()=>{n.assign(_a.default.vErrors,(0,Sl._)`${_a.default.vErrors} === null ? ${e} : ${_a.default.vErrors}.concat(${e})`).assign(_a.default.errors,(0,Sl._)`${_a.default.vErrors}.length`),(0,hle.extendErrors)(t)},()=>t.error())}function vle({schemaEnv:t},e){if(e.async&&!t.$async)throw new Error("async keyword in sync schema")}function gO(t,e,n){if(n===void 0)throw new Error(`keyword "${e}" failed to compile`);return t.scopeValue("keyword",typeof n=="function"?{ref:n}:{ref:n,code:(0,Sl.stringify)(n)})}function _le(t,e,n=!1){return!e.length||e.some(r=>r==="array"?Array.isArray(t):r==="object"?t&&typeof t=="object"&&!Array.isArray(t):typeof t==r||n&&typeof t>"u")}gi.validSchemaType=_le;function Ele({schema:t,opts:e,self:n,errSchemaPath:r},l,i){if(Array.isArray(l.keyword)?!l.keyword.includes(i):l.keyword!==i)throw new Error("ajv implementation error");let s=l.dependencies;if(s?.some(a=>!Object.prototype.hasOwnProperty.call(t,a)))throw new Error(`parent schema must have dependencies of ${i}: ${s.join(",")}`);if(l.validateSchema&&!l.validateSchema(t[i])){let o=`keyword "${i}" value is invalid at path "${r}": `+n.errorsText(l.validateSchema.errors);if(e.validateSchema==="log")n.logger.error(o);else throw new Error(o)}}gi.validateKeywordUsage=Ele});var _O=C(G3=>{"use strict";Object.defineProperty(G3,"__esModule",{value:!0});G3.extendSubschemaMode=G3.extendSubschemaData=G3.getSubschema=void 0;var yi=Ze(),vO=_t();function ble(t,{keyword:e,schemaProp:n,schema:r,schemaPath:l,errSchemaPath:i,topSchemaRef:s}){if(e!==void 0&&r!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(e!==void 0){let a=t.schema[e];return n===void 0?{schema:a,schemaPath:(0,yi._)`${t.schemaPath}${(0,yi.getProperty)(e)}`,errSchemaPath:`${t.errSchemaPath}/${e}`}:{schema:a[n],schemaPath:(0,yi._)`${t.schemaPath}${(0,yi.getProperty)(e)}${(0,yi.getProperty)(n)}`,errSchemaPath:`${t.errSchemaPath}/${e}/${(0,vO.escapeFragment)(n)}`}}if(r!==void 0){if(l===void 0||i===void 0||s===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:r,schemaPath:l,topSchemaRef:s,errSchemaPath:i}}throw new Error('either "keyword" or "schema" must be passed')}G3.getSubschema=ble;function Tle(t,e,{dataProp:n,dataPropType:r,data:l,dataTypes:i,propertyName:s}){if(l!==void 0&&n!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:a}=e;if(n!==void 0){let{errorPath:c,dataPathArr:f,opts:p}=e,m=a.let("data",(0,yi._)`${e.data}${(0,yi.getProperty)(n)}`,!0);o(m),t.errorPath=(0,yi.str)`${c}${(0,vO.getErrorPath)(n,r,p.jsPropertySyntax)}`,t.parentDataProperty=(0,yi._)`${n}`,t.dataPathArr=[...f,t.parentDataProperty]}if(l!==void 0){let c=l instanceof yi.Name?l:a.let("data",l,!0);o(c),s!==void 0&&(t.propertyName=s)}i&&(t.dataTypes=i);function o(c){t.data=c,t.dataLevel=e.dataLevel+1,t.dataTypes=[],e.definedProperties=new Set,t.parentData=e.data,t.dataNames=[...e.dataNames,c]}}G3.extendSubschemaData=Tle;function Sle(t,{jtdDiscriminator:e,jtdMetadata:n,compositeRule:r,createErrors:l,allErrors:i}){r!==void 0&&(t.compositeRule=r),l!==void 0&&(t.createErrors=l),i!==void 0&&(t.allErrors=i),t.jtdDiscriminator=e,t.jtdMetadata=n}G3.extendSubschemaMode=Sle});var Yo=C((aTe,EO)=>{"use strict";EO.exports=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var r,l,i;if(Array.isArray(e)){if(r=e.length,r!=n.length)return!1;for(l=r;l--!==0;)if(!t(e[l],n[l]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(i=Object.keys(e),r=i.length,r!==Object.keys(n).length)return!1;for(l=r;l--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[l]))return!1;for(l=r;l--!==0;){var s=i[l];if(!t(e[s],n[s]))return!1}return!0}return e!==e&&n!==n}});var TO=C((oTe,bO)=>{"use strict";var X3=bO.exports=function(t,e,n){typeof e=="function"&&(n=e,e={}),n=e.cb||n;var r=typeof n=="function"?n:n.pre||function(){},l=n.post||function(){};x6(e,r,l,t,"",t)};X3.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};X3.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};X3.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};X3.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function x6(t,e,n,r,l,i,s,a,o,c){if(r&&typeof r=="object"&&!Array.isArray(r)){e(r,l,i,s,a,o,c);for(var f in r){var p=r[f];if(Array.isArray(p)){if(f in X3.arrayKeywords)for(var m=0;m{"use strict";Object.defineProperty(Ml,"__esModule",{value:!0});Ml.getSchemaRefs=Ml.resolveUrl=Ml.normalizeId=Ml._getFullPath=Ml.getFullPath=Ml.inlineRef=void 0;var Ale=_t(),wle=Yo(),Rle=TO(),Ole=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function Nle(t,e=!0){return typeof t=="boolean"?!0:e===!0?!Th(t):e?SO(t)<=e:!1}Ml.inlineRef=Nle;var Ile=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Th(t){for(let e in t){if(Ile.has(e))return!0;let n=t[e];if(Array.isArray(n)&&n.some(Th)||typeof n=="object"&&Th(n))return!0}return!1}function SO(t){let e=0;for(let n in t){if(n==="$ref")return 1/0;if(e++,!Ole.has(n)&&(typeof t[n]=="object"&&(0,Ale.eachItem)(t[n],r=>e+=SO(r)),e===1/0))return 1/0}return e}function xO(t,e="",n){n!==!1&&(e=Jo(e));let r=t.parse(e);return AO(t,r)}Ml.getFullPath=xO;function AO(t,e){return t.serialize(e).split("#")[0]+"#"}Ml._getFullPath=AO;var Cle=/#\/?$/;function Jo(t){return t?t.replace(Cle,""):""}Ml.normalizeId=Jo;function kle(t,e,n){return n=Jo(n),t.resolve(e,n)}Ml.resolveUrl=kle;var Ple=/^[a-z_][-a-z0-9._]*$/i;function Dle(t,e){if(typeof t=="boolean")return{};let{schemaId:n,uriResolver:r}=this.opts,l=Jo(t[n]||e),i={"":l},s=xO(r,l,!1),a={},o=new Set;return Rle(t,{allKeys:!0},(p,m,h,g)=>{if(g===void 0)return;let _=s+m,S=i[g];typeof p[n]=="string"&&(S=T.call(this,p[n])),x.call(this,p.$anchor),x.call(this,p.$dynamicAnchor),i[m]=S;function T(v){let b=this.opts.uriResolver.resolve;if(v=Jo(S?b(S,v):v),o.has(v))throw f(v);o.add(v);let w=this.refs[v];return typeof w=="string"&&(w=this.refs[w]),typeof w=="object"?c(p,w.schema,v):v!==Jo(_)&&(v[0]==="#"?(c(p,a[v],v),a[v]=p):this.refs[v]=_),v}function x(v){if(typeof v=="string"){if(!Ple.test(v))throw new Error(`invalid anchor "${v}"`);T.call(this,`#${v}`)}}}),a;function c(p,m,h){if(m!==void 0&&!wle(p,m))throw f(h)}function f(p){return new Error(`reference "${p}" resolves to more than one schema`)}}Ml.getSchemaRefs=Dle});var Qo=C(W3=>{"use strict";Object.defineProperty(W3,"__esModule",{value:!0});W3.getData=W3.KeywordCxt=W3.validateFunctionCode=void 0;var IO=iO(),wO=m1(),xh=mh(),A6=m1(),Lle=pO(),v1=yO(),Sh=_O(),Ve=Ze(),it=v2(),Fle=g1(),o3=_t(),y1=d1();function Mle(t){if(PO(t)&&(DO(t),kO(t))){Ule(t);return}CO(t,()=>(0,IO.topBoolOrEmptySchema)(t))}W3.validateFunctionCode=Mle;function CO({gen:t,validateName:e,schema:n,schemaEnv:r,opts:l},i){l.code.es5?t.func(e,(0,Ve._)`${it.default.data}, ${it.default.valCxt}`,r.$async,()=>{t.code((0,Ve._)`"use strict"; ${RO(n,l)}`),jle(t,l),t.code(i)}):t.func(e,(0,Ve._)`${it.default.data}, ${$le(l)}`,r.$async,()=>t.code(RO(n,l)).code(i))}function $le(t){return(0,Ve._)`{${it.default.instancePath}="", ${it.default.parentData}, ${it.default.parentDataProperty}, ${it.default.rootData}=${it.default.data}${t.dynamicRef?(0,Ve._)`, ${it.default.dynamicAnchors}={}`:Ve.nil}}={}`}function jle(t,e){t.if(it.default.valCxt,()=>{t.var(it.default.instancePath,(0,Ve._)`${it.default.valCxt}.${it.default.instancePath}`),t.var(it.default.parentData,(0,Ve._)`${it.default.valCxt}.${it.default.parentData}`),t.var(it.default.parentDataProperty,(0,Ve._)`${it.default.valCxt}.${it.default.parentDataProperty}`),t.var(it.default.rootData,(0,Ve._)`${it.default.valCxt}.${it.default.rootData}`),e.dynamicRef&&t.var(it.default.dynamicAnchors,(0,Ve._)`${it.default.valCxt}.${it.default.dynamicAnchors}`)},()=>{t.var(it.default.instancePath,(0,Ve._)`""`),t.var(it.default.parentData,(0,Ve._)`undefined`),t.var(it.default.parentDataProperty,(0,Ve._)`undefined`),t.var(it.default.rootData,it.default.data),e.dynamicRef&&t.var(it.default.dynamicAnchors,(0,Ve._)`{}`)})}function Ule(t){let{schema:e,opts:n,gen:r}=t;CO(t,()=>{n.$comment&&e.$comment&&FO(t),zle(t),r.let(it.default.vErrors,null),r.let(it.default.errors,0),n.unevaluated&&Ble(t),LO(t),Wle(t)})}function Ble(t){let{gen:e,validateName:n}=t;t.evaluated=e.const("evaluated",(0,Ve._)`${n}.evaluated`),e.if((0,Ve._)`${t.evaluated}.dynamicProps`,()=>e.assign((0,Ve._)`${t.evaluated}.props`,(0,Ve._)`undefined`)),e.if((0,Ve._)`${t.evaluated}.dynamicItems`,()=>e.assign((0,Ve._)`${t.evaluated}.items`,(0,Ve._)`undefined`))}function RO(t,e){let n=typeof t=="object"&&t[e.schemaId];return n&&(e.code.source||e.code.process)?(0,Ve._)`/*# sourceURL=${n} */`:Ve.nil}function Hle(t,e){if(PO(t)&&(DO(t),kO(t))){qle(t,e);return}(0,IO.boolOrEmptySchema)(t,e)}function kO({schema:t,self:e}){if(typeof t=="boolean")return!t;for(let n in t)if(e.RULES.all[n])return!0;return!1}function PO(t){return typeof t.schema!="boolean"}function qle(t,e){let{schema:n,gen:r,opts:l}=t;l.$comment&&n.$comment&&FO(t),Gle(t),Xle(t);let i=r.const("_errs",it.default.errors);LO(t,i),r.var(e,(0,Ve._)`${i} === ${it.default.errors}`)}function DO(t){(0,o3.checkUnknownRules)(t),Vle(t)}function LO(t,e){if(t.opts.jtd)return OO(t,[],!1,e);let n=(0,wO.getSchemaTypes)(t.schema),r=(0,wO.coerceAndCheckDataType)(t,n);OO(t,n,!r,e)}function Vle(t){let{schema:e,errSchemaPath:n,opts:r,self:l}=t;e.$ref&&r.ignoreKeywordsWithRef&&(0,o3.schemaHasRulesButRef)(e,l.RULES)&&l.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}function zle(t){let{schema:e,opts:n}=t;e.default!==void 0&&n.useDefaults&&n.strictSchema&&(0,o3.checkStrictMode)(t,"default is ignored in the schema root")}function Gle(t){let e=t.schema[t.opts.schemaId];e&&(t.baseId=(0,Fle.resolveUrl)(t.opts.uriResolver,t.baseId,e))}function Xle(t){if(t.schema.$async&&!t.schemaEnv.$async)throw new Error("async schema in sync schema")}function FO({gen:t,schemaEnv:e,schema:n,errSchemaPath:r,opts:l}){let i=n.$comment;if(l.$comment===!0)t.code((0,Ve._)`${it.default.self}.logger.log(${i})`);else if(typeof l.$comment=="function"){let s=(0,Ve.str)`${r}/$comment`,a=t.scopeValue("root",{ref:e.root});t.code((0,Ve._)`${it.default.self}.opts.$comment(${i}, ${s}, ${a}.schema)`)}}function Wle(t){let{gen:e,schemaEnv:n,validateName:r,ValidationError:l,opts:i}=t;n.$async?e.if((0,Ve._)`${it.default.errors} === 0`,()=>e.return(it.default.data),()=>e.throw((0,Ve._)`new ${l}(${it.default.vErrors})`)):(e.assign((0,Ve._)`${r}.errors`,it.default.vErrors),i.unevaluated&&Kle(t),e.return((0,Ve._)`${it.default.errors} === 0`))}function Kle({gen:t,evaluated:e,props:n,items:r}){n instanceof Ve.Name&&t.assign((0,Ve._)`${e}.props`,n),r instanceof Ve.Name&&t.assign((0,Ve._)`${e}.items`,r)}function OO(t,e,n,r){let{gen:l,schema:i,data:s,allErrors:a,opts:o,self:c}=t,{RULES:f}=c;if(i.$ref&&(o.ignoreKeywordsWithRef||!(0,o3.schemaHasRulesButRef)(i,f))){l.block(()=>$O(t,"$ref",f.all.$ref.definition));return}o.jtd||Yle(t,e),l.block(()=>{for(let m of f.rules)p(m);p(f.post)});function p(m){(0,xh.shouldUseGroup)(i,m)&&(m.type?(l.if((0,A6.checkDataType)(m.type,s,o.strictNumbers)),NO(t,m),e.length===1&&e[0]===m.type&&n&&(l.else(),(0,A6.reportTypeError)(t)),l.endIf()):NO(t,m),a||l.if((0,Ve._)`${it.default.errors} === ${r||0}`))}}function NO(t,e){let{gen:n,schema:r,opts:{useDefaults:l}}=t;l&&(0,Lle.assignDefaults)(t,e.type),n.block(()=>{for(let i of e.rules)(0,xh.shouldUseRule)(r,i)&&$O(t,i.keyword,i.definition,e.type)})}function Yle(t,e){t.schemaEnv.meta||!t.opts.strictTypes||(Jle(t,e),t.opts.allowUnionTypes||Qle(t,e),Zle(t,t.dataTypes))}function Jle(t,e){if(e.length){if(!t.dataTypes.length){t.dataTypes=e;return}e.forEach(n=>{MO(t.dataTypes,n)||Ah(t,`type "${n}" not allowed by context "${t.dataTypes.join(",")}"`)}),t2e(t,e)}}function Qle(t,e){e.length>1&&!(e.length===2&&e.includes("null"))&&Ah(t,"use allowUnionTypes to allow union type keyword")}function Zle(t,e){let n=t.self.RULES.all;for(let r in n){let l=n[r];if(typeof l=="object"&&(0,xh.shouldUseRule)(t.schema,l)){let{type:i}=l.definition;i.length&&!i.some(s=>e2e(e,s))&&Ah(t,`missing type "${i.join(",")}" for keyword "${r}"`)}}}function e2e(t,e){return t.includes(e)||e==="number"&&t.includes("integer")}function MO(t,e){return t.includes(e)||e==="integer"&&t.includes("number")}function t2e(t,e){let n=[];for(let r of t.dataTypes)MO(e,r)?n.push(r):e.includes("integer")&&r==="number"&&n.push("integer");t.dataTypes=n}function Ah(t,e){let n=t.schemaEnv.baseId+t.errSchemaPath;e+=` at "${n}" (strictTypes)`,(0,o3.checkStrictMode)(t,e,t.opts.strictTypes)}var w6=class{constructor(e,n,r){if((0,v1.validateKeywordUsage)(e,n,r),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=r,this.data=e.data,this.schema=e.schema[r],this.$data=n.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,o3.schemaRefOrVal)(e,this.schema,r,this.$data),this.schemaType=n.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=n,this.$data)this.schemaCode=e.gen.const("vSchema",jO(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,v1.validSchemaType)(this.schema,n.schemaType,n.allowUndefined))throw new Error(`${r} value must be ${JSON.stringify(n.schemaType)}`);("code"in n?n.trackErrors:n.errors!==!1)&&(this.errsCount=e.gen.const("_errs",it.default.errors))}result(e,n,r){this.failResult((0,Ve.not)(e),n,r)}failResult(e,n,r){this.gen.if(e),r?r():this.error(),n?(this.gen.else(),n(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,n){this.failResult((0,Ve.not)(e),void 0,n)}fail(e){if(e===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);let{schemaCode:n}=this;this.fail((0,Ve._)`${n} !== undefined && (${(0,Ve.or)(this.invalid$data(),e)})`)}error(e,n,r){if(n){this.setParams(n),this._error(e,r),this.setParams({});return}this._error(e,r)}_error(e,n){(e?y1.reportExtraError:y1.reportError)(this,this.def.error,n)}$dataError(){(0,y1.reportError)(this,this.def.$dataError||y1.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,y1.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,n){n?Object.assign(this.params,e):this.params=e}block$data(e,n,r=Ve.nil){this.gen.block(()=>{this.check$data(e,r),n()})}check$data(e=Ve.nil,n=Ve.nil){if(!this.$data)return;let{gen:r,schemaCode:l,schemaType:i,def:s}=this;r.if((0,Ve.or)((0,Ve._)`${l} === undefined`,n)),e!==Ve.nil&&r.assign(e,!0),(i.length||s.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),e!==Ve.nil&&r.assign(e,!1)),r.else()}invalid$data(){let{gen:e,schemaCode:n,schemaType:r,def:l,it:i}=this;return(0,Ve.or)(s(),a());function s(){if(r.length){if(!(n instanceof Ve.Name))throw new Error("ajv implementation error");let o=Array.isArray(r)?r:[r];return(0,Ve._)`${(0,A6.checkDataTypes)(o,n,i.opts.strictNumbers,A6.DataType.Wrong)}`}return Ve.nil}function a(){if(l.validateSchema){let o=e.scopeValue("validate$data",{ref:l.validateSchema});return(0,Ve._)`!${o}(${n})`}return Ve.nil}}subschema(e,n){let r=(0,Sh.getSubschema)(this.it,e);(0,Sh.extendSubschemaData)(r,this.it,e),(0,Sh.extendSubschemaMode)(r,e);let l={...this.it,...r,items:void 0,props:void 0};return Hle(l,n),l}mergeEvaluated(e,n){let{it:r,gen:l}=this;r.opts.unevaluated&&(r.props!==!0&&e.props!==void 0&&(r.props=o3.mergeEvaluated.props(l,e.props,r.props,n)),r.items!==!0&&e.items!==void 0&&(r.items=o3.mergeEvaluated.items(l,e.items,r.items,n)))}mergeValidEvaluated(e,n){let{it:r,gen:l}=this;if(r.opts.unevaluated&&(r.props!==!0||r.items!==!0))return l.if(n,()=>this.mergeEvaluated(e,Ve.Name)),!0}};W3.KeywordCxt=w6;function $O(t,e,n,r){let l=new w6(t,n,e);"code"in n?n.code(l,r):l.$data&&n.validate?(0,v1.funcKeywordCode)(l,n):"macro"in n?(0,v1.macroKeywordCode)(l,n):(n.compile||n.validate)&&(0,v1.funcKeywordCode)(l,n)}var n2e=/^\/(?:[^~]|~0|~1)*$/,r2e=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function jO(t,{dataLevel:e,dataNames:n,dataPathArr:r}){let l,i;if(t==="")return it.default.rootData;if(t[0]==="/"){if(!n2e.test(t))throw new Error(`Invalid JSON-pointer: ${t}`);l=t,i=it.default.rootData}else{let c=r2e.exec(t);if(!c)throw new Error(`Invalid JSON-pointer: ${t}`);let f=+c[1];if(l=c[2],l==="#"){if(f>=e)throw new Error(o("property/index",f));return r[e-f]}if(f>e)throw new Error(o("data",f));if(i=n[e-f],!l)return i}let s=i,a=l.split("/");for(let c of a)c&&(i=(0,Ve._)`${i}${(0,Ve.getProperty)((0,o3.unescapeJsonPointer)(c))}`,s=(0,Ve._)`${s} && ${i}`);return s;function o(c,f){return`Cannot access ${c} ${f} levels up, current level is ${e}`}}W3.getData=jO});var _1=C(Rh=>{"use strict";Object.defineProperty(Rh,"__esModule",{value:!0});var wh=class extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}};Rh.default=wh});var K3=C(Ih=>{"use strict";Object.defineProperty(Ih,"__esModule",{value:!0});var Oh=g1(),Nh=class extends Error{constructor(e,n,r,l){super(l||`can't resolve reference ${r} from id ${n}`),this.missingRef=(0,Oh.resolveUrl)(e,n,r),this.missingSchema=(0,Oh.normalizeId)((0,Oh.getFullPath)(e,this.missingRef))}};Ih.default=Nh});var ba=C(_2=>{"use strict";Object.defineProperty(_2,"__esModule",{value:!0});_2.resolveSchema=_2.getCompilingSchema=_2.resolveRef=_2.compileSchema=_2.SchemaEnv=void 0;var H2=Ze(),l2e=_1(),Ea=v2(),q2=g1(),UO=_t(),i2e=Qo(),Zo=class{constructor(e){var n;this.refs={},this.dynamicAnchors={};let r;typeof e.schema=="object"&&(r=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=(n=e.baseId)!==null&&n!==void 0?n:(0,q2.normalizeId)(r?.[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=r?.$async,this.refs={}}};_2.SchemaEnv=Zo;function kh(t){let e=BO.call(this,t);if(e)return e;let n=(0,q2.getFullPath)(this.opts.uriResolver,t.root.baseId),{es5:r,lines:l}=this.opts.code,{ownProperties:i}=this.opts,s=new H2.CodeGen(this.scope,{es5:r,lines:l,ownProperties:i}),a;t.$async&&(a=s.scopeValue("Error",{ref:l2e.default,code:(0,H2._)`require("ajv/dist/runtime/validation_error").default`}));let o=s.scopeName("validate");t.validateName=o;let c={gen:s,allErrors:this.opts.allErrors,data:Ea.default.data,parentData:Ea.default.parentData,parentDataProperty:Ea.default.parentDataProperty,dataNames:[Ea.default.data],dataPathArr:[H2.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:t.schema,code:(0,H2.stringify)(t.schema)}:{ref:t.schema}),validateName:o,ValidationError:a,schema:t.schema,schemaEnv:t,rootId:n,baseId:t.baseId||n,schemaPath:H2.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,H2._)`""`,opts:this.opts,self:this},f;try{this._compilations.add(t),(0,i2e.validateFunctionCode)(c),s.optimize(this.opts.code.optimize);let p=s.toString();f=`${s.scopeRefs(Ea.default.scope)}return ${p}`,this.opts.code.process&&(f=this.opts.code.process(f,t));let h=new Function(`${Ea.default.self}`,`${Ea.default.scope}`,f)(this,this.scope.get());if(this.scope.value(o,{ref:h}),h.errors=null,h.schema=t.schema,h.schemaEnv=t,t.$async&&(h.$async=!0),this.opts.code.source===!0&&(h.source={validateName:o,validateCode:p,scopeValues:s._values}),this.opts.unevaluated){let{props:g,items:_}=c;h.evaluated={props:g instanceof H2.Name?void 0:g,items:_ instanceof H2.Name?void 0:_,dynamicProps:g instanceof H2.Name,dynamicItems:_ instanceof H2.Name},h.source&&(h.source.evaluated=(0,H2.stringify)(h.evaluated))}return t.validate=h,t}catch(p){throw delete t.validate,delete t.validateName,f&&this.logger.error("Error compiling schema, function code:",f),p}finally{this._compilations.delete(t)}}_2.compileSchema=kh;function s2e(t,e,n){var r;n=(0,q2.resolveUrl)(this.opts.uriResolver,e,n);let l=t.refs[n];if(l)return l;let i=u2e.call(this,t,n);if(i===void 0){let s=(r=t.localRefs)===null||r===void 0?void 0:r[n],{schemaId:a}=this.opts;s&&(i=new Zo({schema:s,schemaId:a,root:t,baseId:e}))}if(i!==void 0)return t.refs[n]=a2e.call(this,i)}_2.resolveRef=s2e;function a2e(t){return(0,q2.inlineRef)(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:kh.call(this,t)}function BO(t){for(let e of this._compilations)if(o2e(e,t))return e}_2.getCompilingSchema=BO;function o2e(t,e){return t.schema===e.schema&&t.root===e.root&&t.baseId===e.baseId}function u2e(t,e){let n;for(;typeof(n=this.refs[e])=="string";)e=n;return n||this.schemas[e]||R6.call(this,t,e)}function R6(t,e){let n=this.opts.uriResolver.parse(e),r=(0,q2._getFullPath)(this.opts.uriResolver,n),l=(0,q2.getFullPath)(this.opts.uriResolver,t.baseId,void 0);if(Object.keys(t.schema).length>0&&r===l)return Ch.call(this,n,t);let i=(0,q2.normalizeId)(r),s=this.refs[i]||this.schemas[i];if(typeof s=="string"){let a=R6.call(this,t,s);return typeof a?.schema!="object"?void 0:Ch.call(this,n,a)}if(typeof s?.schema=="object"){if(s.validate||kh.call(this,s),i===(0,q2.normalizeId)(e)){let{schema:a}=s,{schemaId:o}=this.opts,c=a[o];return c&&(l=(0,q2.resolveUrl)(this.opts.uriResolver,l,c)),new Zo({schema:a,schemaId:o,root:t,baseId:l})}return Ch.call(this,n,s)}}_2.resolveSchema=R6;var c2e=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Ch(t,{baseId:e,schema:n,root:r}){var l;if(((l=t.fragment)===null||l===void 0?void 0:l[0])!=="/")return;for(let a of t.fragment.slice(1).split("/")){if(typeof n=="boolean")return;let o=n[(0,UO.unescapeFragment)(a)];if(o===void 0)return;n=o;let c=typeof n=="object"&&n[this.opts.schemaId];!c2e.has(a)&&c&&(e=(0,q2.resolveUrl)(this.opts.uriResolver,e,c))}let i;if(typeof n!="boolean"&&n.$ref&&!(0,UO.schemaHasRulesButRef)(n,this.RULES)){let a=(0,q2.resolveUrl)(this.opts.uriResolver,e,n.$ref);i=R6.call(this,r,a)}let{schemaId:s}=this.opts;if(i=i||new Zo({schema:n,schemaId:s,root:r,baseId:e}),i.schema!==i.root.schema)return i}});var HO=C((hTe,f2e)=>{f2e.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var VO=C((O6,qO)=>{(function(t,e){typeof O6=="object"&&typeof qO<"u"?e(O6):typeof define=="function"&&define.amd?define(["exports"],e):e(t.URI=t.URI||{})})(O6,function(t){"use strict";function e(){for(var H=arguments.length,M=Array(H),G=0;G1){M[0]=M[0].slice(0,-1);for(var ee=M.length-1,ne=1;ne= 0x80 (not a basic code point)","invalid-input":"Invalid input"},j=h-g,L=Math.floor,Q=String.fromCharCode;function Y(H){throw new RangeError(k[H])}function Z(H,M){for(var G=[],ee=H.length;ee--;)G[ee]=M(H[ee]);return G}function ve(H,M){var G=H.split("@"),ee="";G.length>1&&(ee=G[0]+"@",H=G[1]),H=H.replace(O,".");var ne=H.split("."),Pe=Z(ne,M).join(".");return ee+Pe}function Ne(H){for(var M=[],G=0,ee=H.length;G=55296&&ne<=56319&&G>1,M+=L(M/G);M>j*_>>1;ne+=h)M=L(M/j);return L(ne+(j+1)*M/(M+S))},le=function(M){var G=[],ee=M.length,ne=0,Pe=v,dt=x,Lt=M.lastIndexOf(b);Lt<0&&(Lt=0);for(var Kt=0;Kt=128&&Y("not-basic"),G.push(M.charCodeAt(Kt));for(var Kn=Lt>0?Lt+1:0;Kn=ee&&Y("invalid-input");var On=ae(M.charCodeAt(Kn++));(On>=h||On>L((m-ne)/nt))&&Y("overflow"),ne+=On*nt;var jt=Yn<=dt?g:Yn>=dt+_?_:Yn-dt;if(OnL(m/tn)&&Y("overflow"),nt*=tn}var Vt=G.length+1;dt=q(ne-qe,Vt,qe==0),L(ne/Vt)>m-Pe&&Y("overflow"),Pe+=L(ne/Vt),ne%=Vt,G.splice(ne++,0,Pe)}return String.fromCodePoint.apply(String,G)},re=function(M){var G=[];M=Ne(M);var ee=M.length,ne=v,Pe=0,dt=x,Lt=!0,Kt=!1,Kn=void 0;try{for(var qe=M[Symbol.iterator](),nt;!(Lt=(nt=qe.next()).done);Lt=!0){var Yn=nt.value;Yn<128&&G.push(Q(Yn))}}catch(Yt){Kt=!0,Kn=Yt}finally{try{!Lt&&qe.return&&qe.return()}finally{if(Kt)throw Kn}}var On=G.length,jt=On;for(On&&G.push(b);jt=ne&&tlL((m-Pe)/vl)&&Y("overflow"),Pe+=(tn-ne)*vl,ne=tn;var Kl=!0,li=!1,a2=void 0;try{for(var C3=M[Symbol.iterator](),kr;!(Kl=(kr=C3.next()).done);Kl=!0){var go=kr.value;if(gom&&Y("overflow"),go==ne){for(var vr=Pe,Vi=h;;Vi+=h){var Pr=Vi<=dt?g:Vi>=dt+_?_:Vi-dt;if(vr>6|192).toString(16).toUpperCase()+"%"+(M&63|128).toString(16).toUpperCase():G="%"+(M>>12|224).toString(16).toUpperCase()+"%"+(M>>6&63|128).toString(16).toUpperCase()+"%"+(M&63|128).toString(16).toUpperCase(),G}function Ke(H){for(var M="",G=0,ee=H.length;G=194&&ne<224){if(ee-G>=6){var Pe=parseInt(H.substr(G+4,2),16);M+=String.fromCharCode((ne&31)<<6|Pe&63)}else M+=H.substr(G,6);G+=6}else if(ne>=224){if(ee-G>=9){var dt=parseInt(H.substr(G+4,2),16),Lt=parseInt(H.substr(G+7,2),16);M+=String.fromCharCode((ne&15)<<12|(dt&63)<<6|Lt&63)}else M+=H.substr(G,9);G+=9}else M+=H.substr(G,3),G+=3}return M}function Xe(H,M){function G(ee){var ne=Ke(ee);return ne.match(M.UNRESERVED)?ne:ee}return H.scheme&&(H.scheme=String(H.scheme).replace(M.PCT_ENCODED,G).toLowerCase().replace(M.NOT_SCHEME,"")),H.userinfo!==void 0&&(H.userinfo=String(H.userinfo).replace(M.PCT_ENCODED,G).replace(M.NOT_USERINFO,$t).replace(M.PCT_ENCODED,l)),H.host!==void 0&&(H.host=String(H.host).replace(M.PCT_ENCODED,G).toLowerCase().replace(M.NOT_HOST,$t).replace(M.PCT_ENCODED,l)),H.path!==void 0&&(H.path=String(H.path).replace(M.PCT_ENCODED,G).replace(H.scheme?M.NOT_PATH:M.NOT_PATH_NOSCHEME,$t).replace(M.PCT_ENCODED,l)),H.query!==void 0&&(H.query=String(H.query).replace(M.PCT_ENCODED,G).replace(M.NOT_QUERY,$t).replace(M.PCT_ENCODED,l)),H.fragment!==void 0&&(H.fragment=String(H.fragment).replace(M.PCT_ENCODED,G).replace(M.NOT_FRAGMENT,$t).replace(M.PCT_ENCODED,l)),H}function bn(H){return H.replace(/^0*(.*)/,"$1")||"0"}function ut(H,M){var G=H.match(M.IPV4ADDRESS)||[],ee=f(G,2),ne=ee[1];return ne?ne.split(".").map(bn).join("."):H}function pt(H,M){var G=H.match(M.IPV6ADDRESS)||[],ee=f(G,3),ne=ee[1],Pe=ee[2];if(ne){for(var dt=ne.toLowerCase().split("::").reverse(),Lt=f(dt,2),Kt=Lt[0],Kn=Lt[1],qe=Kn?Kn.split(":").map(bn):[],nt=Kt.split(":").map(bn),Yn=M.IPV4ADDRESS.test(nt[nt.length-1]),On=Yn?7:8,jt=nt.length-On,tn=Array(On),Vt=0;Vt1){var Qt=tn.slice(0,rr.index),tl=tn.slice(rr.index+rr.length);yl=Qt.join(":")+"::"+tl.join(":")}else yl=tn.join(":");return Pe&&(yl+="%"+Pe),yl}else return H}var J=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,me="".match(/(){0}/)[1]===void 0;function Te(H){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},G={},ee=M.iri!==!1?c:o;M.reference==="suffix"&&(H=(M.scheme?M.scheme+":":"")+"//"+H);var ne=H.match(J);if(ne){me?(G.scheme=ne[1],G.userinfo=ne[3],G.host=ne[4],G.port=parseInt(ne[5],10),G.path=ne[6]||"",G.query=ne[7],G.fragment=ne[8],isNaN(G.port)&&(G.port=ne[5])):(G.scheme=ne[1]||void 0,G.userinfo=H.indexOf("@")!==-1?ne[3]:void 0,G.host=H.indexOf("//")!==-1?ne[4]:void 0,G.port=parseInt(ne[5],10),G.path=ne[6]||"",G.query=H.indexOf("?")!==-1?ne[7]:void 0,G.fragment=H.indexOf("#")!==-1?ne[8]:void 0,isNaN(G.port)&&(G.port=H.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?ne[4]:void 0)),G.host&&(G.host=pt(ut(G.host,ee),ee)),G.scheme===void 0&&G.userinfo===void 0&&G.host===void 0&&G.port===void 0&&!G.path&&G.query===void 0?G.reference="same-document":G.scheme===void 0?G.reference="relative":G.fragment===void 0?G.reference="absolute":G.reference="uri",M.reference&&M.reference!=="suffix"&&M.reference!==G.reference&&(G.error=G.error||"URI is not a "+M.reference+" reference.");var Pe=Ge[(M.scheme||G.scheme||"").toLowerCase()];if(!M.unicodeSupport&&(!Pe||!Pe.unicodeSupport)){if(G.host&&(M.domainHost||Pe&&Pe.domainHost))try{G.host=wt.toASCII(G.host.replace(ee.PCT_ENCODED,Ke).toLowerCase())}catch(dt){G.error=G.error||"Host's domain name can not be converted to ASCII via punycode: "+dt}Xe(G,o)}else Xe(G,ee);Pe&&Pe.parse&&Pe.parse(G,M)}else G.error=G.error||"URI can not be parsed.";return G}function Ue(H,M){var G=M.iri!==!1?c:o,ee=[];return H.userinfo!==void 0&&(ee.push(H.userinfo),ee.push("@")),H.host!==void 0&&ee.push(pt(ut(String(H.host),G),G).replace(G.IPV6ADDRESS,function(ne,Pe,dt){return"["+Pe+(dt?"%25"+dt:"")+"]"})),(typeof H.port=="number"||typeof H.port=="string")&&(ee.push(":"),ee.push(String(H.port))),ee.length?ee.join(""):void 0}var lt=/^\.\.?\//,Ce=/^\/\.(\/|$)/,Rt=/^\/\.\.(\/|$)/,Xn=/^\/?(?:.|\n)*?(?=\/|$)/;function Ot(H){for(var M=[];H.length;)if(H.match(lt))H=H.replace(lt,"");else if(H.match(Ce))H=H.replace(Ce,"/");else if(H.match(Rt))H=H.replace(Rt,"/"),M.pop();else if(H==="."||H==="..")H="";else{var G=H.match(Xn);if(G){var ee=G[0];H=H.slice(ee.length),M.push(ee)}else throw new Error("Unexpected dot segment condition")}return M.join("")}function qt(H){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},G=M.iri?c:o,ee=[],ne=Ge[(M.scheme||H.scheme||"").toLowerCase()];if(ne&&ne.serialize&&ne.serialize(H,M),H.host&&!G.IPV6ADDRESS.test(H.host)){if(M.domainHost||ne&&ne.domainHost)try{H.host=M.iri?wt.toUnicode(H.host):wt.toASCII(H.host.replace(G.PCT_ENCODED,Ke).toLowerCase())}catch(Lt){H.error=H.error||"Host's domain name can not be converted to "+(M.iri?"Unicode":"ASCII")+" via punycode: "+Lt}}Xe(H,G),M.reference!=="suffix"&&H.scheme&&(ee.push(H.scheme),ee.push(":"));var Pe=Ue(H,M);if(Pe!==void 0&&(M.reference!=="suffix"&&ee.push("//"),ee.push(Pe),H.path&&H.path.charAt(0)!=="/"&&ee.push("/")),H.path!==void 0){var dt=H.path;!M.absolutePath&&(!ne||!ne.absolutePath)&&(dt=Ot(dt)),Pe===void 0&&(dt=dt.replace(/^\/\//,"/%2F")),ee.push(dt)}return H.query!==void 0&&(ee.push("?"),ee.push(H.query)),H.fragment!==void 0&&(ee.push("#"),ee.push(H.fragment)),ee.join("")}function Il(H,M){var G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ee=arguments[3],ne={};return ee||(H=Te(qt(H,G),G),M=Te(qt(M,G),G)),G=G||{},!G.tolerant&&M.scheme?(ne.scheme=M.scheme,ne.userinfo=M.userinfo,ne.host=M.host,ne.port=M.port,ne.path=Ot(M.path||""),ne.query=M.query):(M.userinfo!==void 0||M.host!==void 0||M.port!==void 0?(ne.userinfo=M.userinfo,ne.host=M.host,ne.port=M.port,ne.path=Ot(M.path||""),ne.query=M.query):(M.path?(M.path.charAt(0)==="/"?ne.path=Ot(M.path):((H.userinfo!==void 0||H.host!==void 0||H.port!==void 0)&&!H.path?ne.path="/"+M.path:H.path?ne.path=H.path.slice(0,H.path.lastIndexOf("/")+1)+M.path:ne.path=M.path,ne.path=Ot(ne.path)),ne.query=M.query):(ne.path=H.path,M.query!==void 0?ne.query=M.query:ne.query=H.query),ne.userinfo=H.userinfo,ne.host=H.host,ne.port=H.port),ne.scheme=H.scheme),ne.fragment=M.fragment,ne}function Fn(H,M,G){var ee=s({scheme:"null"},G);return qt(Il(Te(H,ee),Te(M,ee),ee,!0),ee)}function Ir(H,M){return typeof H=="string"?H=qt(Te(H,M),M):r(H)==="object"&&(H=Te(qt(H,M),M)),H}function Wn(H,M,G){return typeof H=="string"?H=qt(Te(H,G),G):r(H)==="object"&&(H=qt(H,G)),typeof M=="string"?M=qt(Te(M,G),G):r(M)==="object"&&(M=qt(M,G)),H===M}function Hr(H,M){return H&&H.toString().replace(!M||!M.iri?o.ESCAPE:c.ESCAPE,$t)}function Zr(H,M){return H&&H.toString().replace(!M||!M.iri?o.PCT_ENCODED:c.PCT_ENCODED,Ke)}var i2={scheme:"http",domainHost:!0,parse:function(M,G){return M.host||(M.error=M.error||"HTTP URIs must have a host."),M},serialize:function(M,G){var ee=String(M.scheme).toLowerCase()==="https";return(M.port===(ee?443:80)||M.port==="")&&(M.port=void 0),M.path||(M.path="/"),M}},tr={scheme:"https",domainHost:i2.domainHost,parse:i2.parse,serialize:i2.serialize};function ho(H){return typeof H.secure=="boolean"?H.secure:String(H.scheme).toLowerCase()==="wss"}var ti={scheme:"ws",domainHost:!0,parse:function(M,G){var ee=M;return ee.secure=ho(ee),ee.resourceName=(ee.path||"/")+(ee.query?"?"+ee.query:""),ee.path=void 0,ee.query=void 0,ee},serialize:function(M,G){if((M.port===(ho(M)?443:80)||M.port==="")&&(M.port=void 0),typeof M.secure=="boolean"&&(M.scheme=M.secure?"wss":"ws",M.secure=void 0),M.resourceName){var ee=M.resourceName.split("?"),ne=f(ee,2),Pe=ne[0],dt=ne[1];M.path=Pe&&Pe!=="/"?Pe:void 0,M.query=dt,M.resourceName=void 0}return M.fragment=void 0,M}},Tn={scheme:"wss",domainHost:ti.domainHost,parse:ti.parse,serialize:ti.serialize},gl={},_f=!0,Cr="[A-Za-z0-9\\-\\.\\_\\~"+(_f?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]",dr="[0-9A-Fa-f]",mo=n(n("%[EFef]"+dr+"%"+dr+dr+"%"+dr+dr)+"|"+n("%[89A-Fa-f]"+dr+"%"+dr+dr)+"|"+n("%"+dr+dr)),yr="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",Hi="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",ni=e(Hi,'[\\"\\\\]'),Bn="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",nr=new RegExp(Cr,"g"),qi=new RegExp(mo,"g"),el=new RegExp(e("[^]",yr,"[\\.]",'[\\"]',ni),"g"),qr=new RegExp(e("[^]",Cr,Bn),"g"),I2=qr;function Wl(H){var M=Ke(H);return M.match(nr)?M:H}var C2={scheme:"mailto",parse:function(M,G){var ee=M,ne=ee.to=ee.path?ee.path.split(","):[];if(ee.path=void 0,ee.query){for(var Pe=!1,dt={},Lt=ee.query.split("&"),Kt=0,Kn=Lt.length;Kt{"use strict";Object.defineProperty(Ph,"__esModule",{value:!0});var zO=VO();zO.code='require("ajv/dist/runtime/uri").default';Ph.default=zO});var Fh=C(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});Wr.CodeGen=Wr.Name=Wr.nil=Wr.stringify=Wr.str=Wr._=Wr.KeywordCxt=void 0;var p2e=Qo();Object.defineProperty(Wr,"KeywordCxt",{enumerable:!0,get:function(){return p2e.KeywordCxt}});var eu=Ze();Object.defineProperty(Wr,"_",{enumerable:!0,get:function(){return eu._}});Object.defineProperty(Wr,"str",{enumerable:!0,get:function(){return eu.str}});Object.defineProperty(Wr,"stringify",{enumerable:!0,get:function(){return eu.stringify}});Object.defineProperty(Wr,"nil",{enumerable:!0,get:function(){return eu.nil}});Object.defineProperty(Wr,"Name",{enumerable:!0,get:function(){return eu.Name}});Object.defineProperty(Wr,"CodeGen",{enumerable:!0,get:function(){return eu.CodeGen}});var d2e=_1(),JO=K3(),h2e=hh(),E1=ba(),m2e=Ze(),b1=g1(),N6=m1(),Lh=_t(),XO=HO(),g2e=GO(),QO=(t,e)=>new RegExp(t,e);QO.code="new RegExp";var y2e=["removeAdditional","useDefaults","coerceTypes"],v2e=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),_2e={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},E2e={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},WO=200;function b2e(t){var e,n,r,l,i,s,a,o,c,f,p,m,h,g,_,S,T,x,v,b,w,N,O,k,j;let L=t.strict,Q=(e=t.code)===null||e===void 0?void 0:e.optimize,Y=Q===!0||Q===void 0?1:Q||0,Z=(r=(n=t.code)===null||n===void 0?void 0:n.regExp)!==null&&r!==void 0?r:QO,ve=(l=t.uriResolver)!==null&&l!==void 0?l:g2e.default;return{strictSchema:(s=(i=t.strictSchema)!==null&&i!==void 0?i:L)!==null&&s!==void 0?s:!0,strictNumbers:(o=(a=t.strictNumbers)!==null&&a!==void 0?a:L)!==null&&o!==void 0?o:!0,strictTypes:(f=(c=t.strictTypes)!==null&&c!==void 0?c:L)!==null&&f!==void 0?f:"log",strictTuples:(m=(p=t.strictTuples)!==null&&p!==void 0?p:L)!==null&&m!==void 0?m:"log",strictRequired:(g=(h=t.strictRequired)!==null&&h!==void 0?h:L)!==null&&g!==void 0?g:!1,code:t.code?{...t.code,optimize:Y,regExp:Z}:{optimize:Y,regExp:Z},loopRequired:(_=t.loopRequired)!==null&&_!==void 0?_:WO,loopEnum:(S=t.loopEnum)!==null&&S!==void 0?S:WO,meta:(T=t.meta)!==null&&T!==void 0?T:!0,messages:(x=t.messages)!==null&&x!==void 0?x:!0,inlineRefs:(v=t.inlineRefs)!==null&&v!==void 0?v:!0,schemaId:(b=t.schemaId)!==null&&b!==void 0?b:"$id",addUsedSchema:(w=t.addUsedSchema)!==null&&w!==void 0?w:!0,validateSchema:(N=t.validateSchema)!==null&&N!==void 0?N:!0,validateFormats:(O=t.validateFormats)!==null&&O!==void 0?O:!0,unicodeRegExp:(k=t.unicodeRegExp)!==null&&k!==void 0?k:!0,int32range:(j=t.int32range)!==null&&j!==void 0?j:!0,uriResolver:ve}}var T1=class{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...b2e(e)};let{es5:n,lines:r}=this.opts.code;this.scope=new m2e.ValueScope({scope:{},prefixes:v2e,es5:n,lines:r}),this.logger=R2e(e.logger);let l=e.validateFormats;e.validateFormats=!1,this.RULES=(0,h2e.getRules)(),KO.call(this,_2e,e,"NOT SUPPORTED"),KO.call(this,E2e,e,"DEPRECATED","warn"),this._metaOpts=A2e.call(this),e.formats&&S2e.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&x2e.call(this,e.keywords),typeof e.meta=="object"&&this.addMetaSchema(e.meta),T2e.call(this),e.validateFormats=l}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:e,meta:n,schemaId:r}=this.opts,l=XO;r==="id"&&(l={...XO},l.id=l.$id,delete l.$id),n&&e&&this.addMetaSchema(l,l[r],!1)}defaultMeta(){let{meta:e,schemaId:n}=this.opts;return this.opts.defaultMeta=typeof e=="object"?e[n]||e:void 0}validate(e,n){let r;if(typeof e=="string"){if(r=this.getSchema(e),!r)throw new Error(`no schema with key or ref "${e}"`)}else r=this.compile(e);let l=r(n);return"$async"in r||(this.errors=r.errors),l}compile(e,n){let r=this._addSchema(e,n);return r.validate||this._compileSchemaEnv(r)}compileAsync(e,n){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:r}=this.opts;return l.call(this,e,n);async function l(f,p){await i.call(this,f.$schema);let m=this._addSchema(f,p);return m.validate||s.call(this,m)}async function i(f){f&&!this.getSchema(f)&&await l.call(this,{$ref:f},!0)}async function s(f){try{return this._compileSchemaEnv(f)}catch(p){if(!(p instanceof JO.default))throw p;return a.call(this,p),await o.call(this,p.missingSchema),s.call(this,f)}}function a({missingSchema:f,missingRef:p}){if(this.refs[f])throw new Error(`AnySchema ${f} is loaded but ${p} cannot be resolved`)}async function o(f){let p=await c.call(this,f);this.refs[f]||await i.call(this,p.$schema),this.refs[f]||this.addSchema(p,f,n)}async function c(f){let p=this._loading[f];if(p)return p;try{return await(this._loading[f]=r(f))}finally{delete this._loading[f]}}}addSchema(e,n,r,l=this.opts.validateSchema){if(Array.isArray(e)){for(let s of e)this.addSchema(s,void 0,r,l);return this}let i;if(typeof e=="object"){let{schemaId:s}=this.opts;if(i=e[s],i!==void 0&&typeof i!="string")throw new Error(`schema ${s} must be string`)}return n=(0,b1.normalizeId)(n||i),this._checkUnique(n),this.schemas[n]=this._addSchema(e,r,n,l,!0),this}addMetaSchema(e,n,r=this.opts.validateSchema){return this.addSchema(e,n,!0,r),this}validateSchema(e,n){if(typeof e=="boolean")return!0;let r;if(r=e.$schema,r!==void 0&&typeof r!="string")throw new Error("$schema must be a string");if(r=r||this.opts.defaultMeta||this.defaultMeta(),!r)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let l=this.validate(r,e);if(!l&&n){let i="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(i);else throw new Error(i)}return l}getSchema(e){let n;for(;typeof(n=YO.call(this,e))=="string";)e=n;if(n===void 0){let{schemaId:r}=this.opts,l=new E1.SchemaEnv({schema:{},schemaId:r});if(n=E1.resolveSchema.call(this,l,e),!n)return;this.refs[e]=n}return n.validate||this._compileSchemaEnv(n)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let n=YO.call(this,e);return typeof n=="object"&&this._cache.delete(n.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{let n=e;this._cache.delete(n);let r=e[this.opts.schemaId];return r&&(r=(0,b1.normalizeId)(r),delete this.schemas[r],delete this.refs[r]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(let n of e)this.addKeyword(n);return this}addKeyword(e,n){let r;if(typeof e=="string")r=e,typeof n=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),n.keyword=r);else if(typeof e=="object"&&n===void 0){if(n=e,r=n.keyword,Array.isArray(r)&&!r.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(N2e.call(this,r,n),!n)return(0,Lh.eachItem)(r,i=>Dh.call(this,i)),this;C2e.call(this,n);let l={...n,type:(0,N6.getJSONTypes)(n.type),schemaType:(0,N6.getJSONTypes)(n.schemaType)};return(0,Lh.eachItem)(r,l.type.length===0?i=>Dh.call(this,i,l):i=>l.type.forEach(s=>Dh.call(this,i,l,s))),this}getKeyword(e){let n=this.RULES.all[e];return typeof n=="object"?n.definition:!!n}removeKeyword(e){let{RULES:n}=this;delete n.keywords[e],delete n.all[e];for(let r of n.rules){let l=r.rules.findIndex(i=>i.keyword===e);l>=0&&r.rules.splice(l,1)}return this}addFormat(e,n){return typeof n=="string"&&(n=new RegExp(n)),this.formats[e]=n,this}errorsText(e=this.errors,{separator:n=", ",dataVar:r="data"}={}){return!e||e.length===0?"No errors":e.map(l=>`${r}${l.instancePath} ${l.message}`).reduce((l,i)=>l+n+i)}$dataMetaSchema(e,n){let r=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(let l of n){let i=l.split("/").slice(1),s=e;for(let a of i)s=s[a];for(let a in r){let o=r[a];if(typeof o!="object")continue;let{$data:c}=o.definition,f=s[a];c&&f&&(s[a]=ZO(f))}}return e}_removeAllSchemas(e,n){for(let r in e){let l=e[r];(!n||n.test(r))&&(typeof l=="string"?delete e[r]:l&&!l.meta&&(this._cache.delete(l.schema),delete e[r]))}}_addSchema(e,n,r,l=this.opts.validateSchema,i=this.opts.addUsedSchema){let s,{schemaId:a}=this.opts;if(typeof e=="object")s=e[a];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof e!="boolean")throw new Error("schema must be object or boolean")}let o=this._cache.get(e);if(o!==void 0)return o;r=(0,b1.normalizeId)(s||r);let c=b1.getSchemaRefs.call(this,e,r);return o=new E1.SchemaEnv({schema:e,schemaId:a,meta:n,baseId:r,localRefs:c}),this._cache.set(o.schema,o),i&&!r.startsWith("#")&&(r&&this._checkUnique(r),this.refs[r]=o),l&&this.validateSchema(e,!0),o}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):E1.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){let n=this.opts;this.opts=this._metaOpts;try{E1.compileSchema.call(this,e)}finally{this.opts=n}}};Wr.default=T1;T1.ValidationError=d2e.default;T1.MissingRefError=JO.default;function KO(t,e,n,r="error"){for(let l in t){let i=l;i in e&&this.logger[r](`${n}: option ${l}. ${t[i]}`)}}function YO(t){return t=(0,b1.normalizeId)(t),this.schemas[t]||this.refs[t]}function T2e(){let t=this.opts.schemas;if(t)if(Array.isArray(t))this.addSchema(t);else for(let e in t)this.addSchema(t[e],e)}function S2e(){for(let t in this.opts.formats){let e=this.opts.formats[t];e&&this.addFormat(t,e)}}function x2e(t){if(Array.isArray(t)){this.addVocabulary(t);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let e in t){let n=t[e];n.keyword||(n.keyword=e),this.addKeyword(n)}}function A2e(){let t={...this.opts};for(let e of y2e)delete t[e];return t}var w2e={log(){},warn(){},error(){}};function R2e(t){if(t===!1)return w2e;if(t===void 0)return console;if(t.log&&t.warn&&t.error)return t;throw new Error("logger must implement log, warn and error methods")}var O2e=/^[a-z_$][a-z0-9_$:-]*$/i;function N2e(t,e){let{RULES:n}=this;if((0,Lh.eachItem)(t,r=>{if(n.keywords[r])throw new Error(`Keyword ${r} is already defined`);if(!O2e.test(r))throw new Error(`Keyword ${r} has invalid name`)}),!!e&&e.$data&&!("code"in e||"validate"in e))throw new Error('$data keyword must have "code" or "validate" function')}function Dh(t,e,n){var r;let l=e?.post;if(n&&l)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:i}=this,s=l?i.post:i.rules.find(({type:o})=>o===n);if(s||(s={type:n,rules:[]},i.rules.push(s)),i.keywords[t]=!0,!e)return;let a={keyword:t,definition:{...e,type:(0,N6.getJSONTypes)(e.type),schemaType:(0,N6.getJSONTypes)(e.schemaType)}};e.before?I2e.call(this,s,a,e.before):s.rules.push(a),i.all[t]=a,(r=e.implements)===null||r===void 0||r.forEach(o=>this.addKeyword(o))}function I2e(t,e,n){let r=t.rules.findIndex(l=>l.keyword===n);r>=0?t.rules.splice(r,0,e):(t.rules.push(e),this.logger.warn(`rule ${n} is not defined`))}function C2e(t){let{metaSchema:e}=t;e!==void 0&&(t.$data&&this.opts.$data&&(e=ZO(e)),t.validateSchema=this.compile(e,!0))}var k2e={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function ZO(t){return{anyOf:[t,k2e]}}});var eN=C(Mh=>{"use strict";Object.defineProperty(Mh,"__esModule",{value:!0});var P2e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Mh.default=P2e});var $h=C(Ta=>{"use strict";Object.defineProperty(Ta,"__esModule",{value:!0});Ta.callRef=Ta.getValidate=void 0;var D2e=K3(),tN=Xr(),$l=Ze(),tu=v2(),nN=ba(),I6=_t(),L2e={keyword:"$ref",schemaType:"string",code(t){let{gen:e,schema:n,it:r}=t,{baseId:l,schemaEnv:i,validateName:s,opts:a,self:o}=r,{root:c}=i;if((n==="#"||n==="#/")&&l===c.baseId)return p();let f=nN.resolveRef.call(o,c,l,n);if(f===void 0)throw new D2e.default(r.opts.uriResolver,l,n);if(f instanceof nN.SchemaEnv)return m(f);return h(f);function p(){if(i===c)return C6(t,s,i,i.$async);let g=e.scopeValue("root",{ref:c});return C6(t,(0,$l._)`${g}.validate`,c,c.$async)}function m(g){let _=rN(t,g);C6(t,_,g,g.$async)}function h(g){let _=e.scopeValue("schema",a.code.source===!0?{ref:g,code:(0,$l.stringify)(g)}:{ref:g}),S=e.name("valid"),T=t.subschema({schema:g,dataTypes:[],schemaPath:$l.nil,topSchemaRef:_,errSchemaPath:n},S);t.mergeEvaluated(T),t.ok(S)}}};function rN(t,e){let{gen:n}=t;return e.validate?n.scopeValue("validate",{ref:e.validate}):(0,$l._)`${n.scopeValue("wrapper",{ref:e})}.validate`}Ta.getValidate=rN;function C6(t,e,n,r){let{gen:l,it:i}=t,{allErrors:s,schemaEnv:a,opts:o}=i,c=o.passContext?tu.default.this:$l.nil;r?f():p();function f(){if(!a.$async)throw new Error("async schema referenced by sync schema");let g=l.let("valid");l.try(()=>{l.code((0,$l._)`await ${(0,tN.callValidateCode)(t,e,c)}`),h(e),s||l.assign(g,!0)},_=>{l.if((0,$l._)`!(${_} instanceof ${i.ValidationError})`,()=>l.throw(_)),m(_),s||l.assign(g,!1)}),t.ok(g)}function p(){t.result((0,tN.callValidateCode)(t,e,c),()=>h(e),()=>m(e))}function m(g){let _=(0,$l._)`${g}.errors`;l.assign(tu.default.vErrors,(0,$l._)`${tu.default.vErrors} === null ? ${_} : ${tu.default.vErrors}.concat(${_})`),l.assign(tu.default.errors,(0,$l._)`${tu.default.vErrors}.length`)}function h(g){var _;if(!i.opts.unevaluated)return;let S=(_=n?.validate)===null||_===void 0?void 0:_.evaluated;if(i.props!==!0)if(S&&!S.dynamicProps)S.props!==void 0&&(i.props=I6.mergeEvaluated.props(l,S.props,i.props));else{let T=l.var("props",(0,$l._)`${g}.evaluated.props`);i.props=I6.mergeEvaluated.props(l,T,i.props,$l.Name)}if(i.items!==!0)if(S&&!S.dynamicItems)S.items!==void 0&&(i.items=I6.mergeEvaluated.items(l,S.items,i.items));else{let T=l.var("items",(0,$l._)`${g}.evaluated.items`);i.items=I6.mergeEvaluated.items(l,T,i.items,$l.Name)}}}Ta.callRef=C6;Ta.default=L2e});var lN=C(jh=>{"use strict";Object.defineProperty(jh,"__esModule",{value:!0});var F2e=eN(),M2e=$h(),$2e=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",F2e.default,M2e.default];jh.default=$2e});var iN=C(Uh=>{"use strict";Object.defineProperty(Uh,"__esModule",{value:!0});var k6=Ze(),Y3=k6.operators,P6={maximum:{okStr:"<=",ok:Y3.LTE,fail:Y3.GT},minimum:{okStr:">=",ok:Y3.GTE,fail:Y3.LT},exclusiveMaximum:{okStr:"<",ok:Y3.LT,fail:Y3.GTE},exclusiveMinimum:{okStr:">",ok:Y3.GT,fail:Y3.LTE}},j2e={message:({keyword:t,schemaCode:e})=>(0,k6.str)`must be ${P6[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>(0,k6._)`{comparison: ${P6[t].okStr}, limit: ${e}}`},U2e={keyword:Object.keys(P6),type:"number",schemaType:"number",$data:!0,error:j2e,code(t){let{keyword:e,data:n,schemaCode:r}=t;t.fail$data((0,k6._)`${n} ${P6[e].fail} ${r} || isNaN(${n})`)}};Uh.default=U2e});var sN=C(Bh=>{"use strict";Object.defineProperty(Bh,"__esModule",{value:!0});var S1=Ze(),B2e={message:({schemaCode:t})=>(0,S1.str)`must be multiple of ${t}`,params:({schemaCode:t})=>(0,S1._)`{multipleOf: ${t}}`},H2e={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:B2e,code(t){let{gen:e,data:n,schemaCode:r,it:l}=t,i=l.opts.multipleOfPrecision,s=e.let("res"),a=i?(0,S1._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${i}`:(0,S1._)`${s} !== parseInt(${s})`;t.fail$data((0,S1._)`(${r} === 0 || (${s} = ${n}/${r}, ${a}))`)}};Bh.default=H2e});var oN=C(Hh=>{"use strict";Object.defineProperty(Hh,"__esModule",{value:!0});function aN(t){let e=t.length,n=0,r=0,l;for(;r=55296&&l<=56319&&r{"use strict";Object.defineProperty(qh,"__esModule",{value:!0});var Sa=Ze(),q2e=_t(),V2e=oN(),z2e={message({keyword:t,schemaCode:e}){let n=t==="maxLength"?"more":"fewer";return(0,Sa.str)`must NOT have ${n} than ${e} characters`},params:({schemaCode:t})=>(0,Sa._)`{limit: ${t}}`},G2e={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:z2e,code(t){let{keyword:e,data:n,schemaCode:r,it:l}=t,i=e==="maxLength"?Sa.operators.GT:Sa.operators.LT,s=l.opts.unicode===!1?(0,Sa._)`${n}.length`:(0,Sa._)`${(0,q2e.useFunc)(t.gen,V2e.default)}(${n})`;t.fail$data((0,Sa._)`${s} ${i} ${r}`)}};qh.default=G2e});var cN=C(Vh=>{"use strict";Object.defineProperty(Vh,"__esModule",{value:!0});var X2e=Xr(),D6=Ze(),W2e={message:({schemaCode:t})=>(0,D6.str)`must match pattern "${t}"`,params:({schemaCode:t})=>(0,D6._)`{pattern: ${t}}`},K2e={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:W2e,code(t){let{data:e,$data:n,schema:r,schemaCode:l,it:i}=t,s=i.opts.unicodeRegExp?"u":"",a=n?(0,D6._)`(new RegExp(${l}, ${s}))`:(0,X2e.usePattern)(t,r);t.fail$data((0,D6._)`!${a}.test(${e})`)}};Vh.default=K2e});var fN=C(zh=>{"use strict";Object.defineProperty(zh,"__esModule",{value:!0});var x1=Ze(),Y2e={message({keyword:t,schemaCode:e}){let n=t==="maxProperties"?"more":"fewer";return(0,x1.str)`must NOT have ${n} than ${e} properties`},params:({schemaCode:t})=>(0,x1._)`{limit: ${t}}`},J2e={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:Y2e,code(t){let{keyword:e,data:n,schemaCode:r}=t,l=e==="maxProperties"?x1.operators.GT:x1.operators.LT;t.fail$data((0,x1._)`Object.keys(${n}).length ${l} ${r}`)}};zh.default=J2e});var pN=C(Gh=>{"use strict";Object.defineProperty(Gh,"__esModule",{value:!0});var A1=Xr(),w1=Ze(),Q2e=_t(),Z2e={message:({params:{missingProperty:t}})=>(0,w1.str)`must have required property '${t}'`,params:({params:{missingProperty:t}})=>(0,w1._)`{missingProperty: ${t}}`},eie={keyword:"required",type:"object",schemaType:"array",$data:!0,error:Z2e,code(t){let{gen:e,schema:n,schemaCode:r,data:l,$data:i,it:s}=t,{opts:a}=s;if(!i&&n.length===0)return;let o=n.length>=a.loopRequired;if(s.allErrors?c():f(),a.strictRequired){let h=t.parentSchema.properties,{definedProperties:g}=t.it;for(let _ of n)if(h?.[_]===void 0&&!g.has(_)){let S=s.schemaEnv.baseId+s.errSchemaPath,T=`required property "${_}" is not defined at "${S}" (strictRequired)`;(0,Q2e.checkStrictMode)(s,T,s.opts.strictRequired)}}function c(){if(o||i)t.block$data(w1.nil,p);else for(let h of n)(0,A1.checkReportMissingProp)(t,h)}function f(){let h=e.let("missing");if(o||i){let g=e.let("valid",!0);t.block$data(g,()=>m(h,g)),t.ok(g)}else e.if((0,A1.checkMissingProp)(t,n,h)),(0,A1.reportMissingProp)(t,h),e.else()}function p(){e.forOf("prop",r,h=>{t.setParams({missingProperty:h}),e.if((0,A1.noPropertyInData)(e,l,h,a.ownProperties),()=>t.error())})}function m(h,g){t.setParams({missingProperty:h}),e.forOf(h,r,()=>{e.assign(g,(0,A1.propertyInData)(e,l,h,a.ownProperties)),e.if((0,w1.not)(g),()=>{t.error(),e.break()})},w1.nil)}}};Gh.default=eie});var dN=C(Xh=>{"use strict";Object.defineProperty(Xh,"__esModule",{value:!0});var R1=Ze(),tie={message({keyword:t,schemaCode:e}){let n=t==="maxItems"?"more":"fewer";return(0,R1.str)`must NOT have ${n} than ${e} items`},params:({schemaCode:t})=>(0,R1._)`{limit: ${t}}`},nie={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:tie,code(t){let{keyword:e,data:n,schemaCode:r}=t,l=e==="maxItems"?R1.operators.GT:R1.operators.LT;t.fail$data((0,R1._)`${n}.length ${l} ${r}`)}};Xh.default=nie});var O1=C(Wh=>{"use strict";Object.defineProperty(Wh,"__esModule",{value:!0});var hN=Yo();hN.code='require("ajv/dist/runtime/equal").default';Wh.default=hN});var mN=C(Yh=>{"use strict";Object.defineProperty(Yh,"__esModule",{value:!0});var Kh=m1(),Kr=Ze(),rie=_t(),lie=O1(),iie={message:({params:{i:t,j:e}})=>(0,Kr.str)`must NOT have duplicate items (items ## ${e} and ${t} are identical)`,params:({params:{i:t,j:e}})=>(0,Kr._)`{i: ${t}, j: ${e}}`},sie={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:iie,code(t){let{gen:e,data:n,$data:r,schema:l,parentSchema:i,schemaCode:s,it:a}=t;if(!r&&!l)return;let o=e.let("valid"),c=i.items?(0,Kh.getSchemaTypes)(i.items):[];t.block$data(o,f,(0,Kr._)`${s} === false`),t.ok(o);function f(){let g=e.let("i",(0,Kr._)`${n}.length`),_=e.let("j");t.setParams({i:g,j:_}),e.assign(o,!0),e.if((0,Kr._)`${g} > 1`,()=>(p()?m:h)(g,_))}function p(){return c.length>0&&!c.some(g=>g==="object"||g==="array")}function m(g,_){let S=e.name("item"),T=(0,Kh.checkDataTypes)(c,S,a.opts.strictNumbers,Kh.DataType.Wrong),x=e.const("indices",(0,Kr._)`{}`);e.for((0,Kr._)`;${g}--;`,()=>{e.let(S,(0,Kr._)`${n}[${g}]`),e.if(T,(0,Kr._)`continue`),c.length>1&&e.if((0,Kr._)`typeof ${S} == "string"`,(0,Kr._)`${S} += "_"`),e.if((0,Kr._)`typeof ${x}[${S}] == "number"`,()=>{e.assign(_,(0,Kr._)`${x}[${S}]`),t.error(),e.assign(o,!1).break()}).code((0,Kr._)`${x}[${S}] = ${g}`)})}function h(g,_){let S=(0,rie.useFunc)(e,lie.default),T=e.name("outer");e.label(T).for((0,Kr._)`;${g}--;`,()=>e.for((0,Kr._)`${_} = ${g}; ${_}--;`,()=>e.if((0,Kr._)`${S}(${n}[${g}], ${n}[${_}])`,()=>{t.error(),e.assign(o,!1).break(T)})))}}};Yh.default=sie});var gN=C(Qh=>{"use strict";Object.defineProperty(Qh,"__esModule",{value:!0});var Jh=Ze(),aie=_t(),oie=O1(),uie={message:"must be equal to constant",params:({schemaCode:t})=>(0,Jh._)`{allowedValue: ${t}}`},cie={keyword:"const",$data:!0,error:uie,code(t){let{gen:e,data:n,$data:r,schemaCode:l,schema:i}=t;r||i&&typeof i=="object"?t.fail$data((0,Jh._)`!${(0,aie.useFunc)(e,oie.default)}(${n}, ${l})`):t.fail((0,Jh._)`${i} !== ${n}`)}};Qh.default=cie});var yN=C(Zh=>{"use strict";Object.defineProperty(Zh,"__esModule",{value:!0});var N1=Ze(),fie=_t(),pie=O1(),die={message:"must be equal to one of the allowed values",params:({schemaCode:t})=>(0,N1._)`{allowedValues: ${t}}`},hie={keyword:"enum",schemaType:"array",$data:!0,error:die,code(t){let{gen:e,data:n,$data:r,schema:l,schemaCode:i,it:s}=t;if(!r&&l.length===0)throw new Error("enum must have non-empty array");let a=l.length>=s.opts.loopEnum,o,c=()=>o??(o=(0,fie.useFunc)(e,pie.default)),f;if(a||r)f=e.let("valid"),t.block$data(f,p);else{if(!Array.isArray(l))throw new Error("ajv implementation error");let h=e.const("vSchema",i);f=(0,N1.or)(...l.map((g,_)=>m(h,_)))}t.pass(f);function p(){e.assign(f,!1),e.forOf("v",i,h=>e.if((0,N1._)`${c()}(${n}, ${h})`,()=>e.assign(f,!0).break()))}function m(h,g){let _=l[g];return typeof _=="object"&&_!==null?(0,N1._)`${c()}(${n}, ${h}[${g}])`:(0,N1._)`${n} === ${_}`}}};Zh.default=hie});var vN=C(em=>{"use strict";Object.defineProperty(em,"__esModule",{value:!0});var mie=iN(),gie=sN(),yie=uN(),vie=cN(),_ie=fN(),Eie=pN(),bie=dN(),Tie=mN(),Sie=gN(),xie=yN(),Aie=[mie.default,gie.default,yie.default,vie.default,_ie.default,Eie.default,bie.default,Tie.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},Sie.default,xie.default];em.default=Aie});var nm=C(I1=>{"use strict";Object.defineProperty(I1,"__esModule",{value:!0});I1.validateAdditionalItems=void 0;var xa=Ze(),tm=_t(),wie={message:({params:{len:t}})=>(0,xa.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,xa._)`{limit: ${t}}`},Rie={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:wie,code(t){let{parentSchema:e,it:n}=t,{items:r}=e;if(!Array.isArray(r)){(0,tm.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas');return}_N(t,r)}};function _N(t,e){let{gen:n,schema:r,data:l,keyword:i,it:s}=t;s.items=!0;let a=n.const("len",(0,xa._)`${l}.length`);if(r===!1)t.setParams({len:e.length}),t.pass((0,xa._)`${a} <= ${e.length}`);else if(typeof r=="object"&&!(0,tm.alwaysValidSchema)(s,r)){let c=n.var("valid",(0,xa._)`${a} <= ${e.length}`);n.if((0,xa.not)(c),()=>o(c)),t.ok(c)}function o(c){n.forRange("i",e.length,a,f=>{t.subschema({keyword:i,dataProp:f,dataPropType:tm.Type.Num},c),s.allErrors||n.if((0,xa.not)(c),()=>n.break())})}}I1.validateAdditionalItems=_N;I1.default=Rie});var rm=C(C1=>{"use strict";Object.defineProperty(C1,"__esModule",{value:!0});C1.validateTuple=void 0;var EN=Ze(),L6=_t(),Oie=Xr(),Nie={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(t){let{schema:e,it:n}=t;if(Array.isArray(e))return bN(t,"additionalItems",e);n.items=!0,!(0,L6.alwaysValidSchema)(n,e)&&t.ok((0,Oie.validateArray)(t))}};function bN(t,e,n=t.schema){let{gen:r,parentSchema:l,data:i,keyword:s,it:a}=t;f(l),a.opts.unevaluated&&n.length&&a.items!==!0&&(a.items=L6.mergeEvaluated.items(r,n.length,a.items));let o=r.name("valid"),c=r.const("len",(0,EN._)`${i}.length`);n.forEach((p,m)=>{(0,L6.alwaysValidSchema)(a,p)||(r.if((0,EN._)`${c} > ${m}`,()=>t.subschema({keyword:s,schemaProp:m,dataProp:m},o)),t.ok(o))});function f(p){let{opts:m,errSchemaPath:h}=a,g=n.length,_=g===p.minItems&&(g===p.maxItems||p[e]===!1);if(m.strictTuples&&!_){let S=`"${s}" is ${g}-tuple, but minItems or maxItems/${e} are not specified or different at path "${h}"`;(0,L6.checkStrictMode)(a,S,m.strictTuples)}}}C1.validateTuple=bN;C1.default=Nie});var TN=C(lm=>{"use strict";Object.defineProperty(lm,"__esModule",{value:!0});var Iie=rm(),Cie={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t=>(0,Iie.validateTuple)(t,"items")};lm.default=Cie});var xN=C(im=>{"use strict";Object.defineProperty(im,"__esModule",{value:!0});var SN=Ze(),kie=_t(),Pie=Xr(),Die=nm(),Lie={message:({params:{len:t}})=>(0,SN.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,SN._)`{limit: ${t}}`},Fie={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:Lie,code(t){let{schema:e,parentSchema:n,it:r}=t,{prefixItems:l}=n;r.items=!0,!(0,kie.alwaysValidSchema)(r,e)&&(l?(0,Die.validateAdditionalItems)(t,l):t.ok((0,Pie.validateArray)(t)))}};im.default=Fie});var AN=C(sm=>{"use strict";Object.defineProperty(sm,"__esModule",{value:!0});var E2=Ze(),F6=_t(),Mie={message:({params:{min:t,max:e}})=>e===void 0?(0,E2.str)`must contain at least ${t} valid item(s)`:(0,E2.str)`must contain at least ${t} and no more than ${e} valid item(s)`,params:({params:{min:t,max:e}})=>e===void 0?(0,E2._)`{minContains: ${t}}`:(0,E2._)`{minContains: ${t}, maxContains: ${e}}`},$ie={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:Mie,code(t){let{gen:e,schema:n,parentSchema:r,data:l,it:i}=t,s,a,{minContains:o,maxContains:c}=r;i.opts.next?(s=o===void 0?1:o,a=c):s=1;let f=e.const("len",(0,E2._)`${l}.length`);if(t.setParams({min:s,max:a}),a===void 0&&s===0){(0,F6.checkStrictMode)(i,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&s>a){(0,F6.checkStrictMode)(i,'"minContains" > "maxContains" is always invalid'),t.fail();return}if((0,F6.alwaysValidSchema)(i,n)){let _=(0,E2._)`${f} >= ${s}`;a!==void 0&&(_=(0,E2._)`${_} && ${f} <= ${a}`),t.pass(_);return}i.items=!0;let p=e.name("valid");a===void 0&&s===1?h(p,()=>e.if(p,()=>e.break())):s===0?(e.let(p,!0),a!==void 0&&e.if((0,E2._)`${l}.length > 0`,m)):(e.let(p,!1),m()),t.result(p,()=>t.reset());function m(){let _=e.name("_valid"),S=e.let("count",0);h(_,()=>e.if(_,()=>g(S)))}function h(_,S){e.forRange("i",0,f,T=>{t.subschema({keyword:"contains",dataProp:T,dataPropType:F6.Type.Num,compositeRule:!0},_),S()})}function g(_){e.code((0,E2._)`${_}++`),a===void 0?e.if((0,E2._)`${_} >= ${s}`,()=>e.assign(p,!0).break()):(e.if((0,E2._)`${_} > ${a}`,()=>e.assign(p,!1).break()),s===1?e.assign(p,!0):e.if((0,E2._)`${_} >= ${s}`,()=>e.assign(p,!0)))}}};sm.default=$ie});var ON=C(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});vi.validateSchemaDeps=vi.validatePropertyDeps=vi.error=void 0;var am=Ze(),jie=_t(),k1=Xr();vi.error={message:({params:{property:t,depsCount:e,deps:n}})=>{let r=e===1?"property":"properties";return(0,am.str)`must have ${r} ${n} when property ${t} is present`},params:({params:{property:t,depsCount:e,deps:n,missingProperty:r}})=>(0,am._)`{property: ${t},
missingProperty: ${r},
depsCount: ${e},
- deps: ${n}}`};var z2e={keyword:"dependencies",type:"object",schemaType:"object",error:mi.error,code(t){let[e,n]=G2e(t);YO(t,e),JO(t,n)}};function G2e({schema:t}){let e={},n={};for(let r in t){if(r==="__proto__")continue;let l=Array.isArray(t[r])?e:n;l[r]=t[r]}return[e,n]}function YO(t,e=t.schema){let{gen:n,data:r,it:l}=t;if(Object.keys(e).length===0)return;let i=n.let("missing");for(let s in e){let a=e[s];if(a.length===0)continue;let o=(0,T1.propertyInData)(n,r,s,l.opts.ownProperties);t.setParams({property:s,depsCount:a.length,deps:a.join(", ")}),l.allErrors?n.if(o,()=>{for(let f of a)(0,T1.checkReportMissingProp)(t,f)}):(n.if((0,jh._)`${o} && (${(0,T1.checkMissingProp)(t,a,i)})`),(0,T1.reportMissingProp)(t,i),n.else())}}mi.validatePropertyDeps=YO;function JO(t,e=t.schema){let{gen:n,data:r,keyword:l,it:i}=t,s=n.name("valid");for(let a in e)(0,V2e.alwaysValidSchema)(i,e[a])||(n.if((0,T1.propertyInData)(n,r,a,i.opts.ownProperties),()=>{let o=t.subschema({keyword:l,schemaProp:a},s);t.mergeValidEvaluated(o,s)},()=>n.var(s,!0)),t.ok(s))}mi.validateSchemaDeps=JO;mi.default=z2e});var eN=C(Uh=>{"use strict";Object.defineProperty(Uh,"__esModule",{value:!0});var ZO=Je(),X2e=yt(),W2e={message:"property name must be valid",params:({params:t})=>(0,ZO._)`{propertyName: ${t.propertyName}}`},K2e={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:W2e,code(t){let{gen:e,schema:n,data:r,it:l}=t;if((0,X2e.alwaysValidSchema)(l,n))return;let i=e.name("valid");e.forIn("key",r,s=>{t.setParams({propertyName:s}),t.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},i),e.if((0,ZO.not)(i),()=>{t.error(!0),l.allErrors||e.break()})}),t.ok(i)}};Uh.default=K2e});var Hh=C(Bh=>{"use strict";Object.defineProperty(Bh,"__esModule",{value:!0});var b6=zr(),B2=Je(),Y2e=m2(),T6=yt(),J2e={message:"must NOT have additional properties",params:({params:t})=>(0,B2._)`{additionalProperty: ${t.additionalProperty}}`},Q2e={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:J2e,code(t){let{gen:e,schema:n,parentSchema:r,data:l,errsCount:i,it:s}=t;if(!i)throw new Error("ajv implementation error");let{allErrors:a,opts:o}=s;if(s.props=!0,o.removeAdditional!=="all"&&(0,T6.alwaysValidSchema)(s,n))return;let f=(0,b6.allSchemaProperties)(r.properties),c=(0,b6.allSchemaProperties)(r.patternProperties);p(),t.ok((0,B2._)`${i} === ${Y2e.default.errors}`);function p(){e.forIn("key",l,S=>{!f.length&&!c.length?g(S):e.if(m(S),()=>g(S))})}function m(S){let T;if(f.length>8){let x=(0,T6.schemaRefOrVal)(s,r.properties,"properties");T=(0,b6.isOwnProperty)(e,x,S)}else f.length?T=(0,B2.or)(...f.map(x=>(0,B2._)`${S} === ${x}`)):T=B2.nil;return c.length&&(T=(0,B2.or)(T,...c.map(x=>(0,B2._)`${(0,b6.usePattern)(t,x)}.test(${S})`))),(0,B2.not)(T)}function h(S){e.code((0,B2._)`delete ${l}[${S}]`)}function g(S){if(o.removeAdditional==="all"||o.removeAdditional&&n===!1){h(S);return}if(n===!1){t.setParams({additionalProperty:S}),t.error(),a||e.break();return}if(typeof n=="object"&&!(0,T6.alwaysValidSchema)(s,n)){let T=e.name("valid");o.removeAdditional==="failing"?(_(S,T,!1),e.if((0,B2.not)(T),()=>{t.reset(),h(S)})):(_(S,T),a||e.if((0,B2.not)(T),()=>e.break()))}}function _(S,T,x){let v={keyword:"additionalProperties",dataProp:S,dataPropType:T6.Type.Str};x===!1&&Object.assign(v,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(v,T)}}};Bh.default=Q2e});var rN=C(Vh=>{"use strict";Object.defineProperty(Vh,"__esModule",{value:!0});var Z2e=zo(),tN=zr(),qh=yt(),nN=Hh(),eie={keyword:"properties",type:"object",schemaType:"object",code(t){let{gen:e,schema:n,parentSchema:r,data:l,it:i}=t;i.opts.removeAdditional==="all"&&r.additionalProperties===void 0&&nN.default.code(new Z2e.KeywordCxt(i,nN.default,"additionalProperties"));let s=(0,tN.allSchemaProperties)(n);for(let p of s)i.definedProperties.add(p);i.opts.unevaluated&&s.length&&i.props!==!0&&(i.props=qh.mergeEvaluated.props(e,(0,qh.toHash)(s),i.props));let a=s.filter(p=>!(0,qh.alwaysValidSchema)(i,n[p]));if(a.length===0)return;let o=e.name("valid");for(let p of a)f(p)?c(p):(e.if((0,tN.propertyInData)(e,l,p,i.opts.ownProperties)),c(p),i.allErrors||e.else().var(o,!0),e.endIf()),t.it.definedProperties.add(p),t.ok(o);function f(p){return i.opts.useDefaults&&!i.compositeRule&&n[p].default!==void 0}function c(p){t.subschema({keyword:"properties",schemaProp:p,dataProp:p},o)}}};Vh.default=eie});var aN=C(zh=>{"use strict";Object.defineProperty(zh,"__esModule",{value:!0});var lN=zr(),S6=Je(),iN=yt(),sN=yt(),tie={keyword:"patternProperties",type:"object",schemaType:"object",code(t){let{gen:e,schema:n,data:r,parentSchema:l,it:i}=t,{opts:s}=i,a=(0,lN.allSchemaProperties)(n),o=a.filter(_=>(0,iN.alwaysValidSchema)(i,n[_]));if(a.length===0||o.length===a.length&&(!i.opts.unevaluated||i.props===!0))return;let f=s.strictSchema&&!s.allowMatchingProperties&&l.properties,c=e.name("valid");i.props!==!0&&!(i.props instanceof S6.Name)&&(i.props=(0,sN.evaluatedPropsToName)(e,i.props));let{props:p}=i;m();function m(){for(let _ of a)f&&h(_),i.allErrors?g(_):(e.var(c,!0),g(_),e.if(c))}function h(_){for(let S in f)new RegExp(_).test(S)&&(0,iN.checkStrictMode)(i,`property ${S} matches pattern ${_} (use allowMatchingProperties)`)}function g(_){e.forIn("key",r,S=>{e.if((0,S6._)`${(0,lN.usePattern)(t,_)}.test(${S})`,()=>{let T=o.includes(_);T||t.subschema({keyword:"patternProperties",schemaProp:_,dataProp:S,dataPropType:sN.Type.Str},c),i.opts.unevaluated&&p!==!0?e.assign((0,S6._)`${p}[${S}]`,!0):!T&&!i.allErrors&&e.if((0,S6.not)(c),()=>e.break())})})}}};zh.default=tie});var oN=C(Gh=>{"use strict";Object.defineProperty(Gh,"__esModule",{value:!0});var nie=yt(),rie={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){let{gen:e,schema:n,it:r}=t;if((0,nie.alwaysValidSchema)(r,n)){t.fail();return}let l=e.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},l),t.failResult(l,()=>t.reset(),()=>t.error())},error:{message:"must NOT be valid"}};Gh.default=rie});var uN=C(Xh=>{"use strict";Object.defineProperty(Xh,"__esModule",{value:!0});var lie=zr(),iie={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:lie.validateUnion,error:{message:"must match a schema in anyOf"}};Xh.default=iie});var cN=C(Wh=>{"use strict";Object.defineProperty(Wh,"__esModule",{value:!0});var x6=Je(),sie=yt(),aie={message:"must match exactly one schema in oneOf",params:({params:t})=>(0,x6._)`{passingSchemas: ${t.passing}}`},oie={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:aie,code(t){let{gen:e,schema:n,parentSchema:r,it:l}=t;if(!Array.isArray(n))throw new Error("ajv implementation error");if(l.opts.discriminator&&r.discriminator)return;let i=n,s=e.let("valid",!1),a=e.let("passing",null),o=e.name("_valid");t.setParams({passing:a}),e.block(f),t.result(s,()=>t.reset(),()=>t.error(!0));function f(){i.forEach((c,p)=>{let m;(0,sie.alwaysValidSchema)(l,c)?e.var(o,!0):m=t.subschema({keyword:"oneOf",schemaProp:p,compositeRule:!0},o),p>0&&e.if((0,x6._)`${o} && ${s}`).assign(s,!1).assign(a,(0,x6._)`[${a}, ${p}]`).else(),e.if(o,()=>{e.assign(s,!0),e.assign(a,p),m&&t.mergeEvaluated(m,x6.Name)})})}}};Wh.default=oie});var fN=C(Kh=>{"use strict";Object.defineProperty(Kh,"__esModule",{value:!0});var uie=yt(),cie={keyword:"allOf",schemaType:"array",code(t){let{gen:e,schema:n,it:r}=t;if(!Array.isArray(n))throw new Error("ajv implementation error");let l=e.name("valid");n.forEach((i,s)=>{if((0,uie.alwaysValidSchema)(r,i))return;let a=t.subschema({keyword:"allOf",schemaProp:s},l);t.ok(l),t.mergeEvaluated(a)})}};Kh.default=cie});var hN=C(Yh=>{"use strict";Object.defineProperty(Yh,"__esModule",{value:!0});var A6=Je(),dN=yt(),fie={message:({params:t})=>(0,A6.str)`must match "${t.ifClause}" schema`,params:({params:t})=>(0,A6._)`{failingKeyword: ${t.ifClause}}`},pie={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:fie,code(t){let{gen:e,parentSchema:n,it:r}=t;n.then===void 0&&n.else===void 0&&(0,dN.checkStrictMode)(r,'"if" without "then" and "else" is ignored');let l=pN(r,"then"),i=pN(r,"else");if(!l&&!i)return;let s=e.let("valid",!0),a=e.name("_valid");if(o(),t.reset(),l&&i){let c=e.let("ifClause");t.setParams({ifClause:c}),e.if(a,f("then",c),f("else",c))}else l?e.if(a,f("then")):e.if((0,A6.not)(a),f("else"));t.pass(s,()=>t.error(!0));function o(){let c=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);t.mergeEvaluated(c)}function f(c,p){return()=>{let m=t.subschema({keyword:c},a);e.assign(s,a),t.mergeValidEvaluated(m,s),p?e.assign(p,(0,A6._)`${c}`):t.setParams({ifClause:c})}}}};function pN(t,e){let n=t.schema[e];return n!==void 0&&!(0,dN.alwaysValidSchema)(t,n)}Yh.default=pie});var mN=C(Jh=>{"use strict";Object.defineProperty(Jh,"__esModule",{value:!0});var die=yt(),hie={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:e,it:n}){e.if===void 0&&(0,die.checkStrictMode)(n,`"${t}" without "if" is ignored`)}};Jh.default=hie});var gN=C(Qh=>{"use strict";Object.defineProperty(Qh,"__esModule",{value:!0});var mie=Dh(),gie=GO(),yie=Lh(),vie=WO(),_ie=KO(),Eie=QO(),bie=eN(),Tie=Hh(),Sie=rN(),xie=aN(),Aie=oN(),wie=uN(),Rie=cN(),Oie=fN(),Nie=hN(),Iie=mN();function Cie(t=!1){let e=[Aie.default,wie.default,Rie.default,Oie.default,Nie.default,Iie.default,bie.default,Tie.default,Eie.default,Sie.default,xie.default];return t?e.push(gie.default,vie.default):e.push(mie.default,yie.default),e.push(_ie.default),e}Qh.default=Cie});var yN=C(Zh=>{"use strict";Object.defineProperty(Zh,"__esModule",{value:!0});var ir=Je(),kie={message:({schemaCode:t})=>(0,ir.str)`must match format "${t}"`,params:({schemaCode:t})=>(0,ir._)`{format: ${t}}`},Pie={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:kie,code(t,e){let{gen:n,data:r,$data:l,schema:i,schemaCode:s,it:a}=t,{opts:o,errSchemaPath:f,schemaEnv:c,self:p}=a;if(!o.validateFormats)return;l?m():h();function m(){let g=n.scopeValue("formats",{ref:p.formats,code:o.code.formats}),_=n.const("fDef",(0,ir._)`${g}[${s}]`),S=n.let("fType"),T=n.let("format");n.if((0,ir._)`typeof ${_} == "object" && !(${_} instanceof RegExp)`,()=>n.assign(S,(0,ir._)`${_}.type || "string"`).assign(T,(0,ir._)`${_}.validate`),()=>n.assign(S,(0,ir._)`"string"`).assign(T,_)),t.fail$data((0,ir.or)(x(),v()));function x(){return o.strictSchema===!1?ir.nil:(0,ir._)`${s} && !${T}`}function v(){let b=c.$async?(0,ir._)`(${_}.async ? await ${T}(${r}) : ${T}(${r}))`:(0,ir._)`${T}(${r})`,w=(0,ir._)`(typeof ${T} == "function" ? ${b} : ${T}.test(${r}))`;return(0,ir._)`${T} && ${T} !== true && ${S} === ${e} && !${w}`}}function h(){let g=p.formats[i];if(!g){x();return}if(g===!0)return;let[_,S,T]=v(g);_===e&&t.pass(b());function x(){if(o.strictSchema===!1){p.logger.warn(w());return}throw new Error(w());function w(){return`unknown format "${i}" ignored in schema at path "${f}"`}}function v(w){let N=w instanceof RegExp?(0,ir.regexpCode)(w):o.code.formats?(0,ir._)`${o.code.formats}${(0,ir.getProperty)(i)}`:void 0,O=n.scopeValue("formats",{key:i,ref:w,code:N});return typeof w=="object"&&!(w instanceof RegExp)?[w.type||"string",w.validate,(0,ir._)`${O}.validate`]:["string",w,O]}function b(){if(typeof g=="object"&&!(g instanceof RegExp)&&g.async){if(!c.$async)throw new Error("async format in sync schema");return(0,ir._)`await ${T}(${r})`}return typeof S=="function"?(0,ir._)`${T}(${r})`:(0,ir._)`${T}.test(${r})`}}}};Zh.default=Pie});var vN=C(em=>{"use strict";Object.defineProperty(em,"__esModule",{value:!0});var Die=yN(),Lie=[Die.default];em.default=Lie});var _N=C(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.contentVocabulary=Ko.metadataVocabulary=void 0;Ko.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Ko.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var bN=C(tm=>{"use strict";Object.defineProperty(tm,"__esModule",{value:!0});var Fie=OO(),Mie=HO(),$ie=gN(),jie=vN(),EN=_N(),Uie=[Fie.default,Mie.default,(0,$ie.default)(),jie.default,EN.metadataVocabulary,EN.contentVocabulary];tm.default=Uie});var nm=C(S1=>{"use strict";Object.defineProperty(S1,"__esModule",{value:!0});S1.DiscrError=void 0;var Bie;(function(t){t.Tag="tag",t.Mapping="mapping"})(Bie=S1.DiscrError||(S1.DiscrError={}))});var SN=C(lm=>{"use strict";Object.defineProperty(lm,"__esModule",{value:!0});var Yo=Je(),rm=nm(),TN=ga(),Hie=yt(),qie={message:({params:{discrError:t,tagName:e}})=>t===rm.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in oneOf`,params:({params:{discrError:t,tag:e,tagName:n}})=>(0,Yo._)`{error: ${t}, tag: ${n}, tagValue: ${e}}`},Vie={keyword:"discriminator",type:"object",schemaType:"object",error:qie,code(t){let{gen:e,data:n,schema:r,parentSchema:l,it:i}=t,{oneOf:s}=l;if(!i.opts.discriminator)throw new Error("discriminator: requires discriminator option");let a=r.propertyName;if(typeof a!="string")throw new Error("discriminator: requires propertyName");if(r.mapping)throw new Error("discriminator: mapping is not supported");if(!s)throw new Error("discriminator: requires oneOf keyword");let o=e.let("valid",!1),f=e.const("tag",(0,Yo._)`${n}${(0,Yo.getProperty)(a)}`);e.if((0,Yo._)`typeof ${f} == "string"`,()=>c(),()=>t.error(!1,{discrError:rm.DiscrError.Tag,tag:f,tagName:a})),t.ok(o);function c(){let h=m();e.if(!1);for(let g in h)e.elseIf((0,Yo._)`${f} === ${g}`),e.assign(o,p(h[g]));e.else(),t.error(!1,{discrError:rm.DiscrError.Mapping,tag:f,tagName:a}),e.endIf()}function p(h){let g=e.name("valid"),_=t.subschema({keyword:"oneOf",schemaProp:h},g);return t.mergeEvaluated(_,Yo.Name),g}function m(){var h;let g={},_=T(l),S=!0;for(let b=0;b{zie.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var O6=C((jn,wN)=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});jn.MissingRefError=jn.ValidationError=jn.CodeGen=jn.Name=jn.nil=jn.stringify=jn.str=jn._=jn.KeywordCxt=void 0;var Gie=hh(),Xie=bN(),Wie=SN(),AN=xN(),Kie=["/properties"],w6="http://json-schema.org/draft-07/schema",R6=class extends Gie.default{_addVocabularies(){super._addVocabularies(),Xie.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(Wie.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let e=this.opts.$data?this.$dataMetaSchema(AN,Kie):AN;this.addMetaSchema(e,w6,!1),this.refs["http://json-schema.org/schema"]=w6}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(w6)?w6:void 0)}};wN.exports=jn=R6;Object.defineProperty(jn,"__esModule",{value:!0});jn.default=R6;var Yie=zo();Object.defineProperty(jn,"KeywordCxt",{enumerable:!0,get:function(){return Yie.KeywordCxt}});var Jo=Je();Object.defineProperty(jn,"_",{enumerable:!0,get:function(){return Jo._}});Object.defineProperty(jn,"str",{enumerable:!0,get:function(){return Jo.str}});Object.defineProperty(jn,"stringify",{enumerable:!0,get:function(){return Jo.stringify}});Object.defineProperty(jn,"nil",{enumerable:!0,get:function(){return Jo.nil}});Object.defineProperty(jn,"Name",{enumerable:!0,get:function(){return Jo.Name}});Object.defineProperty(jn,"CodeGen",{enumerable:!0,get:function(){return Jo.CodeGen}});var Jie=u1();Object.defineProperty(jn,"ValidationError",{enumerable:!0,get:function(){return Jie.default}});var Qie=z3();Object.defineProperty(jn,"MissingRefError",{enumerable:!0,get:function(){return Qie.default}})});var ON=C((Dbe,RN)=>{"use strict";var Zie={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};RN.exports={HEX:Zie}});var FN=C((Lbe,LN)=>{"use strict";var{HEX:e3e}=ON();function kN(t){if(DN(t,".")<3)return{host:t,isIPV4:!1};let e=t.match(/^(\b[01]?\d{1,2}|\b2[0-4]\d|\b25[0-5])(\.([01]?\d{1,2}|2[0-4]\d|25[0-5])){3}$/u)||[],[n]=e;return n?{host:n3e(n,"."),isIPV4:!0}:{host:t,isIPV4:!1}}function im(t){let e="",n=!0;for(let r of t){if(r!=="0"&&n===!0&&(n=!1),e3e[r]===void 0)return;n||(e+=r)}return e}function t3e(t){let e=0,n={error:!1,address:"",zone:""},r=[],l=[],i=!1,s=!1,a=!1;function o(){if(l.length){if(i===!1){let f=im(l.join(""));if(f!==void 0)r.push(f);else return n.error=!0,!1}l.length=0}return!0}for(let f=0;f7){n.error=!0;break}f-1>=0&&t[f-1]===":"&&(s=!0);continue}else if(c==="%"){if(!o())break;i=!0}else{l.push(c);continue}}return l.length&&(i?n.zone=l.join(""):a?r.push(l.join("")):r.push(im(l.join("")))),n.address=r.join(""),n}function PN(t,e={}){if(DN(t,":")<2)return{host:t,isIPV6:!1};let n=t3e(t);if(n.error)return{host:t,isIPV6:!1};{let r=n.address,l=n.address;return n.zone&&(r+="%"+n.zone,l+="%25"+n.zone),{host:r,escapedHost:l,isIPV6:!0}}}function n3e(t,e){let n="",r=!0,l=t.length;for(let i=0;i{"use strict";var a3e=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,o3e=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function MN(t){return typeof t.secure=="boolean"?t.secure:String(t.scheme).toLowerCase()==="wss"}function $N(t){return t.host||(t.error=t.error||"HTTP URIs must have a host."),t}function jN(t){let e=String(t.scheme).toLowerCase()==="https";return(t.port===(e?443:80)||t.port==="")&&(t.port=void 0),t.path||(t.path="/"),t}function u3e(t){return t.secure=MN(t),t.resourceName=(t.path||"/")+(t.query?"?"+t.query:""),t.path=void 0,t.query=void 0,t}function c3e(t){if((t.port===(MN(t)?443:80)||t.port==="")&&(t.port=void 0),typeof t.secure=="boolean"&&(t.scheme=t.secure?"wss":"ws",t.secure=void 0),t.resourceName){let[e,n]=t.resourceName.split("?");t.path=e&&e!=="/"?e:void 0,t.query=n,t.resourceName=void 0}return t.fragment=void 0,t}function f3e(t,e){if(!t.path)return t.error="URN can not be parsed",t;let n=t.path.match(o3e);if(n){let r=e.scheme||t.scheme||"urn";t.nid=n[1].toLowerCase(),t.nss=n[2];let l=`${r}:${e.nid||t.nid}`,i=sm[l];t.path=void 0,i&&(t=i.parse(t,e))}else t.error=t.error||"URN can not be parsed.";return t}function p3e(t,e){let n=e.scheme||t.scheme||"urn",r=t.nid.toLowerCase(),l=`${n}:${e.nid||r}`,i=sm[l];i&&(t=i.serialize(t,e));let s=t,a=t.nss;return s.path=`${r||e.nid}:${a}`,e.skipEscape=!0,s}function d3e(t,e){let n=t;return n.uuid=n.nss,n.nss=void 0,!e.tolerant&&(!n.uuid||!a3e.test(n.uuid))&&(n.error=n.error||"UUID is not valid."),n}function h3e(t){let e=t;return e.nss=(t.uuid||"").toLowerCase(),e}var UN={scheme:"http",domainHost:!0,parse:$N,serialize:jN},m3e={scheme:"https",domainHost:UN.domainHost,parse:$N,serialize:jN},N6={scheme:"ws",domainHost:!0,parse:u3e,serialize:c3e},g3e={scheme:"wss",domainHost:N6.domainHost,parse:N6.parse,serialize:N6.serialize},y3e={scheme:"urn",parse:f3e,serialize:p3e,skipNormalize:!0},v3e={scheme:"urn:uuid",parse:d3e,serialize:h3e,skipNormalize:!0},sm={http:UN,https:m3e,ws:N6,wss:g3e,urn:y3e,"urn:uuid":v3e};BN.exports=sm});var om=C((Mbe,C6)=>{"use strict";var _3e=require("node:url"),{normalizeIPv6:E3e,normalizeIPv4:b3e,removeDotSegments:x1,recomposeAuthority:T3e,normalizeComponentEncoding:I6}=FN(),qN=HN();function S3e(t,e){return typeof t=="string"?t=gi(i3(t,e),e):typeof t=="object"&&(t=i3(gi(t,e),e)),t}function x3e(t,e,n){let r=Object.assign({scheme:"null"},n),l=VN(i3(t,r),i3(e,r),r,!0);return gi(l,{...r,skipEscape:!0})}function VN(t,e,n,r){let l={};return r||(t=i3(gi(t,n),n),e=i3(gi(e,n),n)),n=n||{},!n.tolerant&&e.scheme?(l.scheme=e.scheme,l.userinfo=e.userinfo,l.host=e.host,l.port=e.port,l.path=x1(e.path||""),l.query=e.query):(e.userinfo!==void 0||e.host!==void 0||e.port!==void 0?(l.userinfo=e.userinfo,l.host=e.host,l.port=e.port,l.path=x1(e.path||""),l.query=e.query):(e.path?(e.path.charAt(0)==="/"?l.path=x1(e.path):((t.userinfo!==void 0||t.host!==void 0||t.port!==void 0)&&!t.path?l.path="/"+e.path:t.path?l.path=t.path.slice(0,t.path.lastIndexOf("/")+1)+e.path:l.path=e.path,l.path=x1(l.path)),l.query=e.query):(l.path=t.path,e.query!==void 0?l.query=e.query:l.query=t.query),l.userinfo=t.userinfo,l.host=t.host,l.port=t.port),l.scheme=t.scheme),l.fragment=e.fragment,l}function A3e(t,e,n){return typeof t=="string"?(t=unescape(t),t=gi(I6(i3(t,n),!0),{...n,skipEscape:!0})):typeof t=="object"&&(t=gi(I6(t,!0),{...n,skipEscape:!0})),typeof e=="string"?(e=unescape(e),e=gi(I6(i3(e,n),!0),{...n,skipEscape:!0})):typeof e=="object"&&(e=gi(I6(e,!0),{...n,skipEscape:!0})),t.toLowerCase()===e.toLowerCase()}function gi(t,e){let n={host:t.host,scheme:t.scheme,userinfo:t.userinfo,port:t.port,path:t.path,query:t.query,nid:t.nid,nss:t.nss,uuid:t.uuid,fragment:t.fragment,reference:t.reference,resourceName:t.resourceName,secure:t.secure,error:""},r=Object.assign({},e),l=[],i=qN[(r.scheme||n.scheme||"").toLowerCase()];i&&i.serialize&&i.serialize(n,r),n.path!==void 0&&(r.skipEscape?n.path=unescape(n.path):(n.path=escape(n.path),n.scheme!==void 0&&(n.path=n.path.split("%3A").join(":")))),r.reference!=="suffix"&&n.scheme&&(l.push(n.scheme),l.push(":"));let s=T3e(n,r);if(s!==void 0&&(r.reference!=="suffix"&&l.push("//"),l.push(s),n.path&&n.path.charAt(0)!=="/"&&l.push("/")),n.path!==void 0){let a=n.path;!r.absolutePath&&(!i||!i.absolutePath)&&(a=x1(a)),s===void 0&&(a=a.replace(/^\/\//u,"/%2F")),l.push(a)}return n.query!==void 0&&(l.push("?"),l.push(n.query)),n.fragment!==void 0&&(l.push("#"),l.push(n.fragment)),l.join("")}var w3e=Array.from({length:127},(t,e)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(e)));function R3e(t){let e=0;for(let n=0,r=t.length;n126||w3e[e])return!0;return!1}var O3e=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function i3(t,e){let n=Object.assign({},e),r={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},l=t.indexOf("%")!==-1;n.reference==="suffix"&&(t=(n.scheme?n.scheme+":":"")+"//"+t);let i=t.match(O3e);if(i){if(r.scheme=i[1],r.userinfo=i[3],r.host=i[4],r.port=parseInt(i[5],10),r.path=i[6]||"",r.query=i[7],r.fragment=i[8],isNaN(r.port)&&(r.port=i[5]),r.host){let a=b3e(r.host);a.isIPV4===!1?r.host=E3e(a.host,{isIPV4:!1}).host.toLowerCase():r.host=a.host}r.scheme===void 0&&r.userinfo===void 0&&r.host===void 0&&r.port===void 0&&!r.path&&r.query===void 0?r.reference="same-document":r.scheme===void 0?r.reference="relative":r.fragment===void 0?r.reference="absolute":r.reference="uri",n.reference&&n.reference!=="suffix"&&n.reference!==r.reference&&(r.error=r.error||"URI is not a "+n.reference+" reference.");let s=qN[(n.scheme||r.scheme||"").toLowerCase()];if(!n.unicodeSupport&&(!s||!s.unicodeSupport)&&r.host&&(n.domainHost||s&&s.domainHost)&&R3e(r.host))try{r.host=_3e.domainToASCII(r.host.toLowerCase())}catch(a){r.error=r.error||"Host's domain name can not be converted to ASCII: "+a}(!s||s&&!s.skipNormalize)&&(l&&r.scheme!==void 0&&(r.scheme=unescape(r.scheme)),l&&r.userinfo!==void 0&&(r.userinfo=unescape(r.userinfo)),l&&r.host!==void 0&&(r.host=unescape(r.host)),r.path!==void 0&&r.path.length&&(r.path=encodeURI(r.path)),r.fragment!==void 0&&r.fragment.length&&(r.fragment=encodeURI(decodeURI(r.fragment)))),s&&s.parse&&s.parse(r,n)}else r.error=r.error||"URI can not be parsed.";return r}var am={normalize:S3e,resolve:x3e,resolveComponents:VN,equal:A3e,serialize:gi,parse:i3};C6.exports=am;C6.exports.default=am;C6.exports.fastUri=am});var k6=C(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.formatNames=yi.fastFormats=yi.fullFormats=void 0;function Qo(t,e){return{validate:t,compare:e}}yi.fullFormats={date:Qo(XN,fm),time:Qo(WN,pm),"date-time":Qo(k3e,KN),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:L3e,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:H3e,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:F3e,int32:{type:"number",validate:j3e},int64:{type:"number",validate:U3e},float:{type:"number",validate:GN},double:{type:"number",validate:GN},password:!0,binary:!0};yi.fastFormats={...yi.fullFormats,date:Qo(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,fm),time:Qo(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,pm),"date-time":Qo(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,KN),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};yi.formatNames=Object.keys(yi.fullFormats);function N3e(t){return t%4===0&&(t%100!==0||t%400===0)}var I3e=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,C3e=[0,31,28,31,30,31,30,31,31,30,31,30,31];function XN(t){let e=I3e.exec(t);if(!e)return!1;let n=+e[1],r=+e[2],l=+e[3];return r>=1&&r<=12&&l>=1&&l<=(r===2&&N3e(n)?29:C3e[r])}function fm(t,e){if(t&&e)return t>e?1:te?1:t=M3e}function U3e(t){return Number.isInteger(t)}function GN(){return!0}var B3e=/[^\\]\\Z/;function H3e(t){if(B3e.test(t))return!1;try{return new RegExp(t),!0}catch{return!1}}});var YN=C(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.formatLimitDefinition=void 0;var q3e=O6(),H2=Je(),X3=H2.operators,P6={formatMaximum:{okStr:"<=",ok:X3.LTE,fail:X3.GT},formatMinimum:{okStr:">=",ok:X3.GTE,fail:X3.LT},formatExclusiveMaximum:{okStr:"<",ok:X3.LT,fail:X3.GTE},formatExclusiveMinimum:{okStr:">",ok:X3.GT,fail:X3.LTE}},V3e={message:({keyword:t,schemaCode:e})=>H2.str`should be ${P6[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>H2._`{comparison: ${P6[t].okStr}, limit: ${e}}`};Zo.formatLimitDefinition={keyword:Object.keys(P6),type:"string",schemaType:"string",$data:!0,error:V3e,code(t){let{gen:e,data:n,schemaCode:r,keyword:l,it:i}=t,{opts:s,self:a}=i;if(!s.validateFormats)return;let o=new q3e.KeywordCxt(i,a.RULES.all.format.definition,"format");o.$data?f():c();function f(){let m=e.scopeValue("formats",{ref:a.formats,code:s.code.formats}),h=e.const("fmt",H2._`${m}[${o.schemaCode}]`);t.fail$data(H2.or(H2._`typeof ${h} != "object"`,H2._`${h} instanceof RegExp`,H2._`typeof ${h}.compare != "function"`,p(h)))}function c(){let m=o.schema,h=a.formats[m];if(!h||h===!0)return;if(typeof h!="object"||h instanceof RegExp||typeof h.compare!="function")throw new Error(`"${l}": format "${m}" does not define "compare" function`);let g=e.scopeValue("formats",{key:m,ref:h,code:s.code.formats?H2._`${s.code.formats}${H2.getProperty(m)}`:void 0});t.fail$data(p(g))}function p(m){return H2._`${m}.compare(${n}, ${r}) ${P6[l].fail} 0`}},dependencies:["format"]};var z3e=t=>(t.addKeyword(Zo.formatLimitDefinition),t);Zo.default=z3e});var mm=C((A1,ZN)=>{"use strict";Object.defineProperty(A1,"__esModule",{value:!0});var eu=k6(),G3e=YN(),dm=Je(),JN=new dm.Name("fullFormats"),X3e=new dm.Name("fastFormats"),hm=(t,e={keywords:!0})=>{if(Array.isArray(e))return QN(t,e,eu.fullFormats,JN),t;let[n,r]=e.mode==="fast"?[eu.fastFormats,X3e]:[eu.fullFormats,JN],l=e.formats||eu.formatNames;return QN(t,l,n,r),e.keywords&&G3e.default(t),t};hm.get=(t,e="full")=>{let r=(e==="fast"?eu.fastFormats:eu.fullFormats)[t];if(!r)throw new Error(`Unknown format "${t}"`);return r};function QN(t,e,n,r){var l,i;(l=(i=t.opts.code).formats)!==null&&l!==void 0||(i.formats=dm._`require("ajv-formats/dist/formats").${r}`);for(let s of e)t.addFormat(s,n[s])}ZN.exports=A1=hm;Object.defineProperty(A1,"__esModule",{value:!0});A1.default=hm});var ym=C((Ube,eI)=>{"use strict";var W3e=O6(),K3e=om(),Y3e=mm(),J3e=W4()({proto:!0}),gm=class t{constructor(e){this.ajv=new W3e({...e,strictSchema:!1,validateSchema:!1,allowUnionTypes:!0,uriResolver:K3e}),Y3e(this.ajv),this.ajv.addKeyword({keyword:"fjs_type",type:"object",errors:!1,validate:(n,r)=>r instanceof Date}),this._ajvSchemas={},this._ajvOptions=e||{}}addSchema(e,n){let r=e.$id||n;if(e.$id!==void 0&&e.$id[0]==="#"&&(r=n+e.$id),this.ajv.refs[r]===void 0&&this.ajv.schemas[r]===void 0){let l=J3e(e);this.convertSchemaToAjvFormat(l),this.ajv.addSchema(l,r),this._ajvSchemas[r]=e}}validate(e,n){return this.ajv.validate(e,n)}convertSchemaToAjvFormat(e){if(e!==null){e.type==="string"?(e.fjs_type="string",e.type=["string","object"]):Array.isArray(e.type)&&e.type.includes("string")&&!e.type.includes("object")&&(e.fjs_type="string",e.type.push("object"));for(let n in e)typeof e[n]=="object"&&this.convertSchemaToAjvFormat(e[n])}}getState(){return{ajvOptions:this._ajvOptions,ajvSchemas:this._ajvSchemas}}static restoreFromState(e){let n=new t(e.ajvOptions);for(let[r,l]of Object.entries(e.ajvSchemas))n.ajv.addSchema(l,r);return n}};eI.exports=gm});var _m=C((Bbe,vm)=>{"use strict";function Q3e(t,e,n,r){let l="";return e.validatorSchemasIds.size>0?(l+=`const validatorState = ${JSON.stringify(r.getState())}
+ deps: ${n}}`};var Uie={keyword:"dependencies",type:"object",schemaType:"object",error:vi.error,code(t){let[e,n]=Bie(t);wN(t,e),RN(t,n)}};function Bie({schema:t}){let e={},n={};for(let r in t){if(r==="__proto__")continue;let l=Array.isArray(t[r])?e:n;l[r]=t[r]}return[e,n]}function wN(t,e=t.schema){let{gen:n,data:r,it:l}=t;if(Object.keys(e).length===0)return;let i=n.let("missing");for(let s in e){let a=e[s];if(a.length===0)continue;let o=(0,k1.propertyInData)(n,r,s,l.opts.ownProperties);t.setParams({property:s,depsCount:a.length,deps:a.join(", ")}),l.allErrors?n.if(o,()=>{for(let c of a)(0,k1.checkReportMissingProp)(t,c)}):(n.if((0,am._)`${o} && (${(0,k1.checkMissingProp)(t,a,i)})`),(0,k1.reportMissingProp)(t,i),n.else())}}vi.validatePropertyDeps=wN;function RN(t,e=t.schema){let{gen:n,data:r,keyword:l,it:i}=t,s=n.name("valid");for(let a in e)(0,jie.alwaysValidSchema)(i,e[a])||(n.if((0,k1.propertyInData)(n,r,a,i.opts.ownProperties),()=>{let o=t.subschema({keyword:l,schemaProp:a},s);t.mergeValidEvaluated(o,s)},()=>n.var(s,!0)),t.ok(s))}vi.validateSchemaDeps=RN;vi.default=Uie});var IN=C(om=>{"use strict";Object.defineProperty(om,"__esModule",{value:!0});var NN=Ze(),Hie=_t(),qie={message:"property name must be valid",params:({params:t})=>(0,NN._)`{propertyName: ${t.propertyName}}`},Vie={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:qie,code(t){let{gen:e,schema:n,data:r,it:l}=t;if((0,Hie.alwaysValidSchema)(l,n))return;let i=e.name("valid");e.forIn("key",r,s=>{t.setParams({propertyName:s}),t.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},i),e.if((0,NN.not)(i),()=>{t.error(!0),l.allErrors||e.break()})}),t.ok(i)}};om.default=Vie});var cm=C(um=>{"use strict";Object.defineProperty(um,"__esModule",{value:!0});var M6=Xr(),V2=Ze(),zie=v2(),$6=_t(),Gie={message:"must NOT have additional properties",params:({params:t})=>(0,V2._)`{additionalProperty: ${t.additionalProperty}}`},Xie={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:Gie,code(t){let{gen:e,schema:n,parentSchema:r,data:l,errsCount:i,it:s}=t;if(!i)throw new Error("ajv implementation error");let{allErrors:a,opts:o}=s;if(s.props=!0,o.removeAdditional!=="all"&&(0,$6.alwaysValidSchema)(s,n))return;let c=(0,M6.allSchemaProperties)(r.properties),f=(0,M6.allSchemaProperties)(r.patternProperties);p(),t.ok((0,V2._)`${i} === ${zie.default.errors}`);function p(){e.forIn("key",l,S=>{!c.length&&!f.length?g(S):e.if(m(S),()=>g(S))})}function m(S){let T;if(c.length>8){let x=(0,$6.schemaRefOrVal)(s,r.properties,"properties");T=(0,M6.isOwnProperty)(e,x,S)}else c.length?T=(0,V2.or)(...c.map(x=>(0,V2._)`${S} === ${x}`)):T=V2.nil;return f.length&&(T=(0,V2.or)(T,...f.map(x=>(0,V2._)`${(0,M6.usePattern)(t,x)}.test(${S})`))),(0,V2.not)(T)}function h(S){e.code((0,V2._)`delete ${l}[${S}]`)}function g(S){if(o.removeAdditional==="all"||o.removeAdditional&&n===!1){h(S);return}if(n===!1){t.setParams({additionalProperty:S}),t.error(),a||e.break();return}if(typeof n=="object"&&!(0,$6.alwaysValidSchema)(s,n)){let T=e.name("valid");o.removeAdditional==="failing"?(_(S,T,!1),e.if((0,V2.not)(T),()=>{t.reset(),h(S)})):(_(S,T),a||e.if((0,V2.not)(T),()=>e.break()))}}function _(S,T,x){let v={keyword:"additionalProperties",dataProp:S,dataPropType:$6.Type.Str};x===!1&&Object.assign(v,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(v,T)}}};um.default=Xie});var PN=C(pm=>{"use strict";Object.defineProperty(pm,"__esModule",{value:!0});var Wie=Qo(),CN=Xr(),fm=_t(),kN=cm(),Kie={keyword:"properties",type:"object",schemaType:"object",code(t){let{gen:e,schema:n,parentSchema:r,data:l,it:i}=t;i.opts.removeAdditional==="all"&&r.additionalProperties===void 0&&kN.default.code(new Wie.KeywordCxt(i,kN.default,"additionalProperties"));let s=(0,CN.allSchemaProperties)(n);for(let p of s)i.definedProperties.add(p);i.opts.unevaluated&&s.length&&i.props!==!0&&(i.props=fm.mergeEvaluated.props(e,(0,fm.toHash)(s),i.props));let a=s.filter(p=>!(0,fm.alwaysValidSchema)(i,n[p]));if(a.length===0)return;let o=e.name("valid");for(let p of a)c(p)?f(p):(e.if((0,CN.propertyInData)(e,l,p,i.opts.ownProperties)),f(p),i.allErrors||e.else().var(o,!0),e.endIf()),t.it.definedProperties.add(p),t.ok(o);function c(p){return i.opts.useDefaults&&!i.compositeRule&&n[p].default!==void 0}function f(p){t.subschema({keyword:"properties",schemaProp:p,dataProp:p},o)}}};pm.default=Kie});var MN=C(dm=>{"use strict";Object.defineProperty(dm,"__esModule",{value:!0});var DN=Xr(),j6=Ze(),LN=_t(),FN=_t(),Yie={keyword:"patternProperties",type:"object",schemaType:"object",code(t){let{gen:e,schema:n,data:r,parentSchema:l,it:i}=t,{opts:s}=i,a=(0,DN.allSchemaProperties)(n),o=a.filter(_=>(0,LN.alwaysValidSchema)(i,n[_]));if(a.length===0||o.length===a.length&&(!i.opts.unevaluated||i.props===!0))return;let c=s.strictSchema&&!s.allowMatchingProperties&&l.properties,f=e.name("valid");i.props!==!0&&!(i.props instanceof j6.Name)&&(i.props=(0,FN.evaluatedPropsToName)(e,i.props));let{props:p}=i;m();function m(){for(let _ of a)c&&h(_),i.allErrors?g(_):(e.var(f,!0),g(_),e.if(f))}function h(_){for(let S in c)new RegExp(_).test(S)&&(0,LN.checkStrictMode)(i,`property ${S} matches pattern ${_} (use allowMatchingProperties)`)}function g(_){e.forIn("key",r,S=>{e.if((0,j6._)`${(0,DN.usePattern)(t,_)}.test(${S})`,()=>{let T=o.includes(_);T||t.subschema({keyword:"patternProperties",schemaProp:_,dataProp:S,dataPropType:FN.Type.Str},f),i.opts.unevaluated&&p!==!0?e.assign((0,j6._)`${p}[${S}]`,!0):!T&&!i.allErrors&&e.if((0,j6.not)(f),()=>e.break())})})}}};dm.default=Yie});var $N=C(hm=>{"use strict";Object.defineProperty(hm,"__esModule",{value:!0});var Jie=_t(),Qie={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){let{gen:e,schema:n,it:r}=t;if((0,Jie.alwaysValidSchema)(r,n)){t.fail();return}let l=e.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},l),t.failResult(l,()=>t.reset(),()=>t.error())},error:{message:"must NOT be valid"}};hm.default=Qie});var jN=C(mm=>{"use strict";Object.defineProperty(mm,"__esModule",{value:!0});var Zie=Xr(),e3e={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Zie.validateUnion,error:{message:"must match a schema in anyOf"}};mm.default=e3e});var UN=C(gm=>{"use strict";Object.defineProperty(gm,"__esModule",{value:!0});var U6=Ze(),t3e=_t(),n3e={message:"must match exactly one schema in oneOf",params:({params:t})=>(0,U6._)`{passingSchemas: ${t.passing}}`},r3e={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:n3e,code(t){let{gen:e,schema:n,parentSchema:r,it:l}=t;if(!Array.isArray(n))throw new Error("ajv implementation error");if(l.opts.discriminator&&r.discriminator)return;let i=n,s=e.let("valid",!1),a=e.let("passing",null),o=e.name("_valid");t.setParams({passing:a}),e.block(c),t.result(s,()=>t.reset(),()=>t.error(!0));function c(){i.forEach((f,p)=>{let m;(0,t3e.alwaysValidSchema)(l,f)?e.var(o,!0):m=t.subschema({keyword:"oneOf",schemaProp:p,compositeRule:!0},o),p>0&&e.if((0,U6._)`${o} && ${s}`).assign(s,!1).assign(a,(0,U6._)`[${a}, ${p}]`).else(),e.if(o,()=>{e.assign(s,!0),e.assign(a,p),m&&t.mergeEvaluated(m,U6.Name)})})}}};gm.default=r3e});var BN=C(ym=>{"use strict";Object.defineProperty(ym,"__esModule",{value:!0});var l3e=_t(),i3e={keyword:"allOf",schemaType:"array",code(t){let{gen:e,schema:n,it:r}=t;if(!Array.isArray(n))throw new Error("ajv implementation error");let l=e.name("valid");n.forEach((i,s)=>{if((0,l3e.alwaysValidSchema)(r,i))return;let a=t.subschema({keyword:"allOf",schemaProp:s},l);t.ok(l),t.mergeEvaluated(a)})}};ym.default=i3e});var VN=C(vm=>{"use strict";Object.defineProperty(vm,"__esModule",{value:!0});var B6=Ze(),qN=_t(),s3e={message:({params:t})=>(0,B6.str)`must match "${t.ifClause}" schema`,params:({params:t})=>(0,B6._)`{failingKeyword: ${t.ifClause}}`},a3e={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:s3e,code(t){let{gen:e,parentSchema:n,it:r}=t;n.then===void 0&&n.else===void 0&&(0,qN.checkStrictMode)(r,'"if" without "then" and "else" is ignored');let l=HN(r,"then"),i=HN(r,"else");if(!l&&!i)return;let s=e.let("valid",!0),a=e.name("_valid");if(o(),t.reset(),l&&i){let f=e.let("ifClause");t.setParams({ifClause:f}),e.if(a,c("then",f),c("else",f))}else l?e.if(a,c("then")):e.if((0,B6.not)(a),c("else"));t.pass(s,()=>t.error(!0));function o(){let f=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);t.mergeEvaluated(f)}function c(f,p){return()=>{let m=t.subschema({keyword:f},a);e.assign(s,a),t.mergeValidEvaluated(m,s),p?e.assign(p,(0,B6._)`${f}`):t.setParams({ifClause:f})}}}};function HN(t,e){let n=t.schema[e];return n!==void 0&&!(0,qN.alwaysValidSchema)(t,n)}vm.default=a3e});var zN=C(_m=>{"use strict";Object.defineProperty(_m,"__esModule",{value:!0});var o3e=_t(),u3e={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:e,it:n}){e.if===void 0&&(0,o3e.checkStrictMode)(n,`"${t}" without "if" is ignored`)}};_m.default=u3e});var GN=C(Em=>{"use strict";Object.defineProperty(Em,"__esModule",{value:!0});var c3e=nm(),f3e=TN(),p3e=rm(),d3e=xN(),h3e=AN(),m3e=ON(),g3e=IN(),y3e=cm(),v3e=PN(),_3e=MN(),E3e=$N(),b3e=jN(),T3e=UN(),S3e=BN(),x3e=VN(),A3e=zN();function w3e(t=!1){let e=[E3e.default,b3e.default,T3e.default,S3e.default,x3e.default,A3e.default,g3e.default,y3e.default,m3e.default,v3e.default,_3e.default];return t?e.push(f3e.default,d3e.default):e.push(c3e.default,p3e.default),e.push(h3e.default),e}Em.default=w3e});var XN=C(bm=>{"use strict";Object.defineProperty(bm,"__esModule",{value:!0});var ar=Ze(),R3e={message:({schemaCode:t})=>(0,ar.str)`must match format "${t}"`,params:({schemaCode:t})=>(0,ar._)`{format: ${t}}`},O3e={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:R3e,code(t,e){let{gen:n,data:r,$data:l,schema:i,schemaCode:s,it:a}=t,{opts:o,errSchemaPath:c,schemaEnv:f,self:p}=a;if(!o.validateFormats)return;l?m():h();function m(){let g=n.scopeValue("formats",{ref:p.formats,code:o.code.formats}),_=n.const("fDef",(0,ar._)`${g}[${s}]`),S=n.let("fType"),T=n.let("format");n.if((0,ar._)`typeof ${_} == "object" && !(${_} instanceof RegExp)`,()=>n.assign(S,(0,ar._)`${_}.type || "string"`).assign(T,(0,ar._)`${_}.validate`),()=>n.assign(S,(0,ar._)`"string"`).assign(T,_)),t.fail$data((0,ar.or)(x(),v()));function x(){return o.strictSchema===!1?ar.nil:(0,ar._)`${s} && !${T}`}function v(){let b=f.$async?(0,ar._)`(${_}.async ? await ${T}(${r}) : ${T}(${r}))`:(0,ar._)`${T}(${r})`,w=(0,ar._)`(typeof ${T} == "function" ? ${b} : ${T}.test(${r}))`;return(0,ar._)`${T} && ${T} !== true && ${S} === ${e} && !${w}`}}function h(){let g=p.formats[i];if(!g){x();return}if(g===!0)return;let[_,S,T]=v(g);_===e&&t.pass(b());function x(){if(o.strictSchema===!1){p.logger.warn(w());return}throw new Error(w());function w(){return`unknown format "${i}" ignored in schema at path "${c}"`}}function v(w){let N=w instanceof RegExp?(0,ar.regexpCode)(w):o.code.formats?(0,ar._)`${o.code.formats}${(0,ar.getProperty)(i)}`:void 0,O=n.scopeValue("formats",{key:i,ref:w,code:N});return typeof w=="object"&&!(w instanceof RegExp)?[w.type||"string",w.validate,(0,ar._)`${O}.validate`]:["string",w,O]}function b(){if(typeof g=="object"&&!(g instanceof RegExp)&&g.async){if(!f.$async)throw new Error("async format in sync schema");return(0,ar._)`await ${T}(${r})`}return typeof S=="function"?(0,ar._)`${T}(${r})`:(0,ar._)`${T}.test(${r})`}}}};bm.default=O3e});var WN=C(Tm=>{"use strict";Object.defineProperty(Tm,"__esModule",{value:!0});var N3e=XN(),I3e=[N3e.default];Tm.default=I3e});var KN=C(nu=>{"use strict";Object.defineProperty(nu,"__esModule",{value:!0});nu.contentVocabulary=nu.metadataVocabulary=void 0;nu.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];nu.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var JN=C(Sm=>{"use strict";Object.defineProperty(Sm,"__esModule",{value:!0});var C3e=lN(),k3e=vN(),P3e=GN(),D3e=WN(),YN=KN(),L3e=[C3e.default,k3e.default,(0,P3e.default)(),D3e.default,YN.metadataVocabulary,YN.contentVocabulary];Sm.default=L3e});var xm=C(P1=>{"use strict";Object.defineProperty(P1,"__esModule",{value:!0});P1.DiscrError=void 0;var F3e;(function(t){t.Tag="tag",t.Mapping="mapping"})(F3e=P1.DiscrError||(P1.DiscrError={}))});var ZN=C(wm=>{"use strict";Object.defineProperty(wm,"__esModule",{value:!0});var ru=Ze(),Am=xm(),QN=ba(),M3e=_t(),$3e={message:({params:{discrError:t,tagName:e}})=>t===Am.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in oneOf`,params:({params:{discrError:t,tag:e,tagName:n}})=>(0,ru._)`{error: ${t}, tag: ${n}, tagValue: ${e}}`},j3e={keyword:"discriminator",type:"object",schemaType:"object",error:$3e,code(t){let{gen:e,data:n,schema:r,parentSchema:l,it:i}=t,{oneOf:s}=l;if(!i.opts.discriminator)throw new Error("discriminator: requires discriminator option");let a=r.propertyName;if(typeof a!="string")throw new Error("discriminator: requires propertyName");if(r.mapping)throw new Error("discriminator: mapping is not supported");if(!s)throw new Error("discriminator: requires oneOf keyword");let o=e.let("valid",!1),c=e.const("tag",(0,ru._)`${n}${(0,ru.getProperty)(a)}`);e.if((0,ru._)`typeof ${c} == "string"`,()=>f(),()=>t.error(!1,{discrError:Am.DiscrError.Tag,tag:c,tagName:a})),t.ok(o);function f(){let h=m();e.if(!1);for(let g in h)e.elseIf((0,ru._)`${c} === ${g}`),e.assign(o,p(h[g]));e.else(),t.error(!1,{discrError:Am.DiscrError.Mapping,tag:c,tagName:a}),e.endIf()}function p(h){let g=e.name("valid"),_=t.subschema({keyword:"oneOf",schemaProp:h},g);return t.mergeEvaluated(_,ru.Name),g}function m(){var h;let g={},_=T(l),S=!0;for(let b=0;b{U3e.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var V6=C((qn,nI)=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.MissingRefError=qn.ValidationError=qn.CodeGen=qn.Name=qn.nil=qn.stringify=qn.str=qn._=qn.KeywordCxt=void 0;var B3e=Fh(),H3e=JN(),q3e=ZN(),tI=eI(),V3e=["/properties"],H6="http://json-schema.org/draft-07/schema",q6=class extends B3e.default{_addVocabularies(){super._addVocabularies(),H3e.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(q3e.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let e=this.opts.$data?this.$dataMetaSchema(tI,V3e):tI;this.addMetaSchema(e,H6,!1),this.refs["http://json-schema.org/schema"]=H6}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(H6)?H6:void 0)}};nI.exports=qn=q6;Object.defineProperty(qn,"__esModule",{value:!0});qn.default=q6;var z3e=Qo();Object.defineProperty(qn,"KeywordCxt",{enumerable:!0,get:function(){return z3e.KeywordCxt}});var lu=Ze();Object.defineProperty(qn,"_",{enumerable:!0,get:function(){return lu._}});Object.defineProperty(qn,"str",{enumerable:!0,get:function(){return lu.str}});Object.defineProperty(qn,"stringify",{enumerable:!0,get:function(){return lu.stringify}});Object.defineProperty(qn,"nil",{enumerable:!0,get:function(){return lu.nil}});Object.defineProperty(qn,"Name",{enumerable:!0,get:function(){return lu.Name}});Object.defineProperty(qn,"CodeGen",{enumerable:!0,get:function(){return lu.CodeGen}});var G3e=_1();Object.defineProperty(qn,"ValidationError",{enumerable:!0,get:function(){return G3e.default}});var X3e=K3();Object.defineProperty(qn,"MissingRefError",{enumerable:!0,get:function(){return X3e.default}})});var lI=C((rSe,rI)=>{"use strict";var W3e={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};rI.exports={HEX:W3e}});var pI=C((lSe,fI)=>{"use strict";var{HEX:K3e}=lI();function oI(t){if(cI(t,".")<3)return{host:t,isIPV4:!1};let e=t.match(/^(\b[01]?\d{1,2}|\b2[0-4]\d|\b25[0-5])(\.([01]?\d{1,2}|2[0-4]\d|25[0-5])){3}$/u)||[],[n]=e;return n?{host:J3e(n,"."),isIPV4:!0}:{host:t,isIPV4:!1}}function Rm(t){let e="",n=!0;for(let r of t){if(r!=="0"&&n===!0&&(n=!1),K3e[r]===void 0)return;n||(e+=r)}return e}function Y3e(t){let e=0,n={error:!1,address:"",zone:""},r=[],l=[],i=!1,s=!1,a=!1;function o(){if(l.length){if(i===!1){let c=Rm(l.join(""));if(c!==void 0)r.push(c);else return n.error=!0,!1}l.length=0}return!0}for(let c=0;c7){n.error=!0;break}c-1>=0&&t[c-1]===":"&&(s=!0);continue}else if(f==="%"){if(!o())break;i=!0}else{l.push(f);continue}}return l.length&&(i?n.zone=l.join(""):a?r.push(l.join("")):r.push(Rm(l.join("")))),n.address=r.join(""),n}function uI(t,e={}){if(cI(t,":")<2)return{host:t,isIPV6:!1};let n=Y3e(t);if(n.error)return{host:t,isIPV6:!1};{let r=n.address,l=n.address;return n.zone&&(r+="%"+n.zone,l+="%25"+n.zone),{host:r,escapedHost:l,isIPV6:!0}}}function J3e(t,e){let n="",r=!0,l=t.length;for(let i=0;i{"use strict";var nse=/^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu,rse=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function dI(t){return typeof t.secure=="boolean"?t.secure:String(t.scheme).toLowerCase()==="wss"}function hI(t){return t.host||(t.error=t.error||"HTTP URIs must have a host."),t}function mI(t){let e=String(t.scheme).toLowerCase()==="https";return(t.port===(e?443:80)||t.port==="")&&(t.port=void 0),t.path||(t.path="/"),t}function lse(t){return t.secure=dI(t),t.resourceName=(t.path||"/")+(t.query?"?"+t.query:""),t.path=void 0,t.query=void 0,t}function ise(t){if((t.port===(dI(t)?443:80)||t.port==="")&&(t.port=void 0),typeof t.secure=="boolean"&&(t.scheme=t.secure?"wss":"ws",t.secure=void 0),t.resourceName){let[e,n]=t.resourceName.split("?");t.path=e&&e!=="/"?e:void 0,t.query=n,t.resourceName=void 0}return t.fragment=void 0,t}function sse(t,e){if(!t.path)return t.error="URN can not be parsed",t;let n=t.path.match(rse);if(n){let r=e.scheme||t.scheme||"urn";t.nid=n[1].toLowerCase(),t.nss=n[2];let l=`${r}:${e.nid||t.nid}`,i=Om[l];t.path=void 0,i&&(t=i.parse(t,e))}else t.error=t.error||"URN can not be parsed.";return t}function ase(t,e){let n=e.scheme||t.scheme||"urn",r=t.nid.toLowerCase(),l=`${n}:${e.nid||r}`,i=Om[l];i&&(t=i.serialize(t,e));let s=t,a=t.nss;return s.path=`${r||e.nid}:${a}`,e.skipEscape=!0,s}function ose(t,e){let n=t;return n.uuid=n.nss,n.nss=void 0,!e.tolerant&&(!n.uuid||!nse.test(n.uuid))&&(n.error=n.error||"UUID is not valid."),n}function use(t){let e=t;return e.nss=(t.uuid||"").toLowerCase(),e}var gI={scheme:"http",domainHost:!0,parse:hI,serialize:mI},cse={scheme:"https",domainHost:gI.domainHost,parse:hI,serialize:mI},z6={scheme:"ws",domainHost:!0,parse:lse,serialize:ise},fse={scheme:"wss",domainHost:z6.domainHost,parse:z6.parse,serialize:z6.serialize},pse={scheme:"urn",parse:sse,serialize:ase,skipNormalize:!0},dse={scheme:"urn:uuid",parse:ose,serialize:use,skipNormalize:!0},Om={http:gI,https:cse,ws:z6,wss:fse,urn:pse,"urn:uuid":dse};yI.exports=Om});var Im=C((sSe,X6)=>{"use strict";var hse=require("node:url"),{normalizeIPv6:mse,normalizeIPv4:gse,removeDotSegments:D1,recomposeAuthority:yse,normalizeComponentEncoding:G6}=pI(),_I=vI();function vse(t,e){return typeof t=="string"?t=_i(u3(t,e),e):typeof t=="object"&&(t=u3(_i(t,e),e)),t}function _se(t,e,n){let r=Object.assign({scheme:"null"},n),l=EI(u3(t,r),u3(e,r),r,!0);return _i(l,{...r,skipEscape:!0})}function EI(t,e,n,r){let l={};return r||(t=u3(_i(t,n),n),e=u3(_i(e,n),n)),n=n||{},!n.tolerant&&e.scheme?(l.scheme=e.scheme,l.userinfo=e.userinfo,l.host=e.host,l.port=e.port,l.path=D1(e.path||""),l.query=e.query):(e.userinfo!==void 0||e.host!==void 0||e.port!==void 0?(l.userinfo=e.userinfo,l.host=e.host,l.port=e.port,l.path=D1(e.path||""),l.query=e.query):(e.path?(e.path.charAt(0)==="/"?l.path=D1(e.path):((t.userinfo!==void 0||t.host!==void 0||t.port!==void 0)&&!t.path?l.path="/"+e.path:t.path?l.path=t.path.slice(0,t.path.lastIndexOf("/")+1)+e.path:l.path=e.path,l.path=D1(l.path)),l.query=e.query):(l.path=t.path,e.query!==void 0?l.query=e.query:l.query=t.query),l.userinfo=t.userinfo,l.host=t.host,l.port=t.port),l.scheme=t.scheme),l.fragment=e.fragment,l}function Ese(t,e,n){return typeof t=="string"?(t=unescape(t),t=_i(G6(u3(t,n),!0),{...n,skipEscape:!0})):typeof t=="object"&&(t=_i(G6(t,!0),{...n,skipEscape:!0})),typeof e=="string"?(e=unescape(e),e=_i(G6(u3(e,n),!0),{...n,skipEscape:!0})):typeof e=="object"&&(e=_i(G6(e,!0),{...n,skipEscape:!0})),t.toLowerCase()===e.toLowerCase()}function _i(t,e){let n={host:t.host,scheme:t.scheme,userinfo:t.userinfo,port:t.port,path:t.path,query:t.query,nid:t.nid,nss:t.nss,uuid:t.uuid,fragment:t.fragment,reference:t.reference,resourceName:t.resourceName,secure:t.secure,error:""},r=Object.assign({},e),l=[],i=_I[(r.scheme||n.scheme||"").toLowerCase()];i&&i.serialize&&i.serialize(n,r),n.path!==void 0&&(r.skipEscape?n.path=unescape(n.path):(n.path=escape(n.path),n.scheme!==void 0&&(n.path=n.path.split("%3A").join(":")))),r.reference!=="suffix"&&n.scheme&&(l.push(n.scheme),l.push(":"));let s=yse(n,r);if(s!==void 0&&(r.reference!=="suffix"&&l.push("//"),l.push(s),n.path&&n.path.charAt(0)!=="/"&&l.push("/")),n.path!==void 0){let a=n.path;!r.absolutePath&&(!i||!i.absolutePath)&&(a=D1(a)),s===void 0&&(a=a.replace(/^\/\//u,"/%2F")),l.push(a)}return n.query!==void 0&&(l.push("?"),l.push(n.query)),n.fragment!==void 0&&(l.push("#"),l.push(n.fragment)),l.join("")}var bse=Array.from({length:127},(t,e)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(e)));function Tse(t){let e=0;for(let n=0,r=t.length;n126||bse[e])return!0;return!1}var Sse=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function u3(t,e){let n=Object.assign({},e),r={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},l=t.indexOf("%")!==-1;n.reference==="suffix"&&(t=(n.scheme?n.scheme+":":"")+"//"+t);let i=t.match(Sse);if(i){if(r.scheme=i[1],r.userinfo=i[3],r.host=i[4],r.port=parseInt(i[5],10),r.path=i[6]||"",r.query=i[7],r.fragment=i[8],isNaN(r.port)&&(r.port=i[5]),r.host){let a=gse(r.host);a.isIPV4===!1?r.host=mse(a.host,{isIPV4:!1}).host.toLowerCase():r.host=a.host}r.scheme===void 0&&r.userinfo===void 0&&r.host===void 0&&r.port===void 0&&!r.path&&r.query===void 0?r.reference="same-document":r.scheme===void 0?r.reference="relative":r.fragment===void 0?r.reference="absolute":r.reference="uri",n.reference&&n.reference!=="suffix"&&n.reference!==r.reference&&(r.error=r.error||"URI is not a "+n.reference+" reference.");let s=_I[(n.scheme||r.scheme||"").toLowerCase()];if(!n.unicodeSupport&&(!s||!s.unicodeSupport)&&r.host&&(n.domainHost||s&&s.domainHost)&&Tse(r.host))try{r.host=hse.domainToASCII(r.host.toLowerCase())}catch(a){r.error=r.error||"Host's domain name can not be converted to ASCII: "+a}(!s||s&&!s.skipNormalize)&&(l&&r.scheme!==void 0&&(r.scheme=unescape(r.scheme)),l&&r.userinfo!==void 0&&(r.userinfo=unescape(r.userinfo)),l&&r.host!==void 0&&(r.host=unescape(r.host)),r.path!==void 0&&r.path.length&&(r.path=encodeURI(r.path)),r.fragment!==void 0&&r.fragment.length&&(r.fragment=encodeURI(decodeURI(r.fragment)))),s&&s.parse&&s.parse(r,n)}else r.error=r.error||"URI can not be parsed.";return r}var Nm={normalize:vse,resolve:_se,resolveComponents:EI,equal:Ese,serialize:_i,parse:u3};X6.exports=Nm;X6.exports.default=Nm;X6.exports.fastUri=Nm});var W6=C(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});Ei.formatNames=Ei.fastFormats=Ei.fullFormats=void 0;function iu(t,e){return{validate:t,compare:e}}Ei.fullFormats={date:iu(SI,Pm),time:iu(xI,Dm),"date-time":iu(Rse,AI),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:Ise,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:Mse,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:Cse,int32:{type:"number",validate:Dse},int64:{type:"number",validate:Lse},float:{type:"number",validate:TI},double:{type:"number",validate:TI},password:!0,binary:!0};Ei.fastFormats={...Ei.fullFormats,date:iu(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,Pm),time:iu(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,Dm),"date-time":iu(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,AI),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};Ei.formatNames=Object.keys(Ei.fullFormats);function xse(t){return t%4===0&&(t%100!==0||t%400===0)}var Ase=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,wse=[0,31,28,31,30,31,30,31,31,30,31,30,31];function SI(t){let e=Ase.exec(t);if(!e)return!1;let n=+e[1],r=+e[2],l=+e[3];return r>=1&&r<=12&&l>=1&&l<=(r===2&&xse(n)?29:wse[r])}function Pm(t,e){if(t&&e)return t>e?1:te?1:t=kse}function Lse(t){return Number.isInteger(t)}function TI(){return!0}var Fse=/[^\\]\\Z/;function Mse(t){if(Fse.test(t))return!1;try{return new RegExp(t),!0}catch{return!1}}});var wI=C(su=>{"use strict";Object.defineProperty(su,"__esModule",{value:!0});su.formatLimitDefinition=void 0;var $se=V6(),z2=Ze(),J3=z2.operators,K6={formatMaximum:{okStr:"<=",ok:J3.LTE,fail:J3.GT},formatMinimum:{okStr:">=",ok:J3.GTE,fail:J3.LT},formatExclusiveMaximum:{okStr:"<",ok:J3.LT,fail:J3.GTE},formatExclusiveMinimum:{okStr:">",ok:J3.GT,fail:J3.LTE}},jse={message:({keyword:t,schemaCode:e})=>z2.str`should be ${K6[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>z2._`{comparison: ${K6[t].okStr}, limit: ${e}}`};su.formatLimitDefinition={keyword:Object.keys(K6),type:"string",schemaType:"string",$data:!0,error:jse,code(t){let{gen:e,data:n,schemaCode:r,keyword:l,it:i}=t,{opts:s,self:a}=i;if(!s.validateFormats)return;let o=new $se.KeywordCxt(i,a.RULES.all.format.definition,"format");o.$data?c():f();function c(){let m=e.scopeValue("formats",{ref:a.formats,code:s.code.formats}),h=e.const("fmt",z2._`${m}[${o.schemaCode}]`);t.fail$data(z2.or(z2._`typeof ${h} != "object"`,z2._`${h} instanceof RegExp`,z2._`typeof ${h}.compare != "function"`,p(h)))}function f(){let m=o.schema,h=a.formats[m];if(!h||h===!0)return;if(typeof h!="object"||h instanceof RegExp||typeof h.compare!="function")throw new Error(`"${l}": format "${m}" does not define "compare" function`);let g=e.scopeValue("formats",{key:m,ref:h,code:s.code.formats?z2._`${s.code.formats}${z2.getProperty(m)}`:void 0});t.fail$data(p(g))}function p(m){return z2._`${m}.compare(${n}, ${r}) ${K6[l].fail} 0`}},dependencies:["format"]};var Use=t=>(t.addKeyword(su.formatLimitDefinition),t);su.default=Use});var Mm=C((L1,NI)=>{"use strict";Object.defineProperty(L1,"__esModule",{value:!0});var au=W6(),Bse=wI(),Lm=Ze(),RI=new Lm.Name("fullFormats"),Hse=new Lm.Name("fastFormats"),Fm=(t,e={keywords:!0})=>{if(Array.isArray(e))return OI(t,e,au.fullFormats,RI),t;let[n,r]=e.mode==="fast"?[au.fastFormats,Hse]:[au.fullFormats,RI],l=e.formats||au.formatNames;return OI(t,l,n,r),e.keywords&&Bse.default(t),t};Fm.get=(t,e="full")=>{let r=(e==="fast"?au.fastFormats:au.fullFormats)[t];if(!r)throw new Error(`Unknown format "${t}"`);return r};function OI(t,e,n,r){var l,i;(l=(i=t.opts.code).formats)!==null&&l!==void 0||(i.formats=Lm._`require("ajv-formats/dist/formats").${r}`);for(let s of e)t.addFormat(s,n[s])}NI.exports=L1=Fm;Object.defineProperty(L1,"__esModule",{value:!0});L1.default=Fm});var jm=C((uSe,II)=>{"use strict";var qse=V6(),Vse=Im(),zse=Mm(),Gse=l1()({proto:!0}),$m=class t{constructor(e){this.ajv=new qse({...e,strictSchema:!1,validateSchema:!1,allowUnionTypes:!0,uriResolver:Vse}),zse(this.ajv),this.ajv.addKeyword({keyword:"fjs_type",type:"object",errors:!1,validate:(n,r)=>r instanceof Date}),this._ajvSchemas={},this._ajvOptions=e||{}}addSchema(e,n){let r=e.$id||n;if(e.$id!==void 0&&e.$id[0]==="#"&&(r=n+e.$id),this.ajv.refs[r]===void 0&&this.ajv.schemas[r]===void 0){let l=Gse(e);this.convertSchemaToAjvFormat(l),this.ajv.addSchema(l,r),this._ajvSchemas[r]=e}}validate(e,n){return this.ajv.validate(e,n)}convertSchemaToAjvFormat(e){if(e!==null){e.type==="string"?(e.fjs_type="string",e.type=["string","object"]):Array.isArray(e.type)&&e.type.includes("string")&&!e.type.includes("object")&&(e.fjs_type="string",e.type.push("object"));for(let n in e)typeof e[n]=="object"&&this.convertSchemaToAjvFormat(e[n])}}getState(){return{ajvOptions:this._ajvOptions,ajvSchemas:this._ajvSchemas}}static restoreFromState(e){let n=new t(e.ajvOptions);for(let[r,l]of Object.entries(e.ajvSchemas))n.ajv.addSchema(l,r);return n}};II.exports=$m});var Bm=C((cSe,Um)=>{"use strict";function Xse(t,e,n,r){let l="";return e.validatorSchemasIds.size>0?(l+=`const validatorState = ${JSON.stringify(r.getState())}
`,l+=`const validator = Validator.restoreFromState(validatorState)
`):l+=`const validator = null
`,`
@@ -119,7 +119,7 @@ ${T}`),g.pop(),`{${w}}`}case"number":return isFinite(h)?String(h):e?e(h):"null";
${l}
- module.exports = ${t.toString()}(validator, serializer)`}vm.exports=Q3e;vm.exports.dependencies={Serializer:Ad(),Validator:ym()}});var nI=C((qbe,tI)=>{"use strict";var{dependencies:Z3e}=_m(),{Serializer:ese,Validator:Hbe}=Z3e,tse={mode:"standalone"},nse=ese.restoreFromState(tse),rse=null;tI.exports=function(e,n){function r(i){let s=i&&typeof i.toJSON=="function"?i.toJSON():i;if(s===null)return"{}";let a=!1,o="{";return s.statusCode!==void 0&&(!a&&(a=!0)||(o+=","),o+='"statusCode":',o+=n.asNumber(s.statusCode)),s.code!==void 0&&(!a&&(a=!0)||(o+=","),o+='"code":',o+=n.asString(s.code)),s.error!==void 0&&(!a&&(a=!0)||(o+=","),o+='"error":',o+=n.asString(s.error)),s.message!==void 0&&(!a&&(a=!0)||(o+=","),o+='"message":',o+=n.asString(s.message)),o+"}"}return r}(rse,nse)});var w1=C((Vbe,sI)=>{"use strict";var rI=require("node:http").STATUS_CODES,lse=Tp(),{kReplyHeaders:Ea,kReplyNextErrorHandler:D6,kReplyIsRunningOnErrorHook:ise,kReplyHasStatusCode:sse,kRouteContext:iI}=Dr(),{FST_ERR_REP_INVALID_PAYLOAD_TYPE:ase,FST_ERR_FAILED_ERROR_SERIALIZATION:ose}=il(),{getSchemaSerializer:use}=K4(),Em=nI(),cse={func:pse,toJSON(){return this.func.name.toString()+"()"}};function fse(t,e,n){t[ise]=!1;let r=t[iI];if(t[D6]===!1){lI(e,t,function(a,o){try{a.raw.writeHead(a.raw.statusCode,a[Ea])}catch(f){a.log.warn({req:a.request,res:a,err:f},f&&f.message),a.raw.writeHead(a.raw.statusCode)}a.raw.end(o)});return}let l=t[D6]||r.errorHandler;t[D6]=Object.getPrototypeOf(l),delete t[Ea]["content-type"],delete t[Ea]["content-length"];let i=l.func;if(!i){t[D6]=!1,lI(e,t,n);return}let s=i(e,t.request,t);s!==void 0&&(s!==null&&typeof s.then=="function"?lse(s,t):t.send(s))}function pse(t,e,n){if(hse(t,n),!n[sse]||n.statusCode===200){let r=t.statusCode||t.status;n.code(r>=400?r:500)}n.statusCode<500?n.log.info({res:n,err:t},t&&t.message):n.log.error({req:e,res:n,err:t},t&&t.message),n.send(t)}function lI(t,e,n){let r=e.raw,l=e.statusCode;e[Ea]["content-type"]=e[Ea]["content-type"]??"application/json; charset=utf-8";let i;try{let s=use(e[iI],l,e[Ea]["content-type"]);i=s===!1?Em({error:rI[l+""],code:t.code,message:t.message,statusCode:l}):s(Object.create(t,{error:{value:rI[l+""]},message:{value:t.message},statusCode:{value:l}}))}catch(s){e.log.error({err:s,statusCode:r.statusCode},"The serializer for the given status code failed"),e.code(500),i=Em(new ose(s.message,t.message))}typeof i!="string"&&!Buffer.isBuffer(i)&&(i=Em(new ase(typeof i))),e[Ea]["content-length"]=""+Buffer.byteLength(i),n(e,i)}function dse(t=cse,e){if(!e)return t;let n=Object.create(t);return n.func=e,n}function hse(t,e){let n=e.raw,r=n.statusCode;r=r>=400?r:500,t!=null&&(t.headers!==void 0&&e.headers(t.headers),t.status>=400?r=t.status:t.statusCode>=400&&(r=t.statusCode)),n.statusCode=r}sI.exports={buildErrorHandler:dse,handleError:fse}});var U6=C((zbe,j6)=>{"use strict";var xm=require("node:stream").finished,mse=require("node:stream").Readable,{kFourOhFourContext:aI,kPublicRouteContext:oI,kReplyErrorHandlerCalled:gI,kReplyHijacked:R1,kReplyStartTime:O1,kReplyEndTime:wm,kReplySerializer:s3,kReplySerializerDefault:F6,kReplyIsError:M6,kReplyHeaders:Rn,kReplyTrailers:Lr,kReplyHasStatusCode:Rm,kReplyIsRunningOnErrorHook:Om,kReplyNextErrorHandler:gse,kDisableRequestLogging:yI,kSchemaResponse:$6,kReplyCacheSerializeFns:W3,kSchemaController:bm,kOptions:yse,kRouteContext:Rt}=Dr(),{onSendHookRunner:vI,onResponseHookRunner:vse,preHandlerHookRunner:_se,preSerializationHookRunner:Ese}=D3(),uI=wp()[Symbol.for("internals")],bse=X4(),Am=bse.now,{handleError:cI}=w1(),{getSchemaSerializer:Tse}=K4(),Tm={JSON:"application/json; charset=utf-8",PLAIN:"text/plain; charset=utf-8",OCTET:"application/octet-stream"},{FST_ERR_REP_INVALID_PAYLOAD_TYPE:Sse,FST_ERR_REP_RESPONSE_BODY_CONSUMED:xse,FST_ERR_REP_ALREADY_SENT:_I,FST_ERR_REP_SENT_VALUE:Ase,FST_ERR_SEND_INSIDE_ONERR:wse,FST_ERR_BAD_STATUS_CODE:Rse,FST_ERR_BAD_TRAILER_NAME:Ose,FST_ERR_BAD_TRAILER_VALUE:Nse,FST_ERR_MISSING_SERIALIZATION_FN:Ise,FST_ERR_MISSING_CONTENTTYPE_SERIALIZATION_FN:Cse}=il(),{FSTDEP010:kse,FSTDEP013:Pse,FSTDEP019:Dse,FSTDEP020:Lse}=e3(),EI=Object.prototype.toString;function bn(t,e,n){this.raw=t,this[s3]=null,this[gI]=!1,this[M6]=!1,this[Om]=!1,this.request=e,this[Rn]={},this[Lr]=null,this[Rm]=!1,this[O1]=void 0,this.log=n}bn.props=[];Object.defineProperties(bn.prototype,{[Rt]:{get(){return this.request[Rt]}},context:{get(){return Dse(),this.request[Rt]}},elapsedTime:{get(){return this[O1]===void 0?0:(this[wm]||Am())-this[O1]}},server:{get(){return this.request[Rt].server}},sent:{enumerable:!0,get(){return(this[R1]||this.raw.writableEnded)===!0},set(t){if(kse(),t!==!0)throw new Ase;if(this.sent&&this[R1])throw new _I(this.request.url,this.request.method);this[R1]=!0}},statusCode:{get(){return this.raw.statusCode},set(t){this.code(t)}},[oI]:{get(){return this.request[oI]}}});bn.prototype.hijack=function(){return this[R1]=!0,this};bn.prototype.send=function(t){if(this[Om]===!0)throw new wse;if(this.sent)return this.log.warn({err:new _I(this.request.url,this.request.method)}),this;if(t instanceof Error||this[M6]===!0)return this[M6]=!1,N1(this,t,ba),this;if(t===void 0)return ba(this,t),this;let e=this.getHeader("content-type"),n=e!==void 0;if(t!==null){if(typeof t.pipe=="function"||typeof t.getReader=="function"||EI.call(t)==="[object Response]")return ba(this,t),this;if(t?.buffer instanceof ArrayBuffer){n===!1&&(this[Rn]["content-type"]=Tm.OCTET);let r=Buffer.isBuffer(t)?t:Buffer.from(t.buffer,t.byteOffset,t.byteLength);return ba(this,r),this}if(n===!1&&typeof t=="string")return this[Rn]["content-type"]=Tm.PLAIN,ba(this,t),this}if(this[s3]!==null){if(typeof t!="string")return fI(this,t),this;t=this[s3](t)}else if(n===!1||e.indexOf("json")>-1){if(n===!1)this[Rn]["content-type"]=Tm.JSON;else if(e.indexOf("charset")===-1){let r=e.trim();r.endsWith(";")?this[Rn]["content-type"]=`${r} charset=utf-8`:this[Rn]["content-type"]=`${r}; charset=utf-8`}if(typeof t!="string")return fI(this,t),this}return ba(this,t),this};bn.prototype.getHeader=function(t){t=t.toLowerCase();let e=this.raw,n=this[Rn][t];return n===void 0&&e.hasHeader(t)&&(n=e.getHeader(t)),n};bn.prototype.getHeaders=function(){return{...this.raw.getHeaders(),...this[Rn]}};bn.prototype.hasHeader=function(t){return t=t.toLowerCase(),this[Rn][t]!==void 0||this.raw.hasHeader(t)};bn.prototype.removeHeader=function(t){return delete this[Rn][t.toLowerCase()],this};bn.prototype.header=function(t,e=""){return t=t.toLowerCase(),this[Rn][t]&&t==="set-cookie"?(typeof this[Rn][t]=="string"&&(this[Rn][t]=[this[Rn][t]]),Array.isArray(e)?Array.prototype.push.apply(this[Rn][t],e):this[Rn][t].push(e)):this[Rn][t]=e,this};bn.prototype.headers=function(t){let e=Object.keys(t);for(var n=0;n!==e.length;++n){let r=e[n];this.header(r,t[r])}return this};var Fse=new Set(["transfer-encoding","content-length","host","cache-control","max-forwards","te","authorization","set-cookie","content-encoding","content-type","content-range","trailer"]);bn.prototype.trailer=function(t,e){if(t=t.toLowerCase(),Fse.has(t))throw new Ose(t);if(typeof e!="function")throw new Nse(t,typeof e);return this[Lr]===null&&(this[Lr]={}),this[Lr][t]=e,this};bn.prototype.hasTrailer=function(t){return this[Lr]?.[t.toLowerCase()]!==void 0};bn.prototype.removeTrailer=function(t){return this[Lr]===null?this:(this[Lr][t.toLowerCase()]=void 0,this)};bn.prototype.code=function(t){let e=Number(t);if(isNaN(e)||e<100||e>599)throw new Rse(t||String(t));return this.raw.statusCode=e,this[Rm]=!0,this};bn.prototype.status=bn.prototype.code;bn.prototype.getSerializationFunction=function(t,e){let n;return typeof t=="string"||typeof t=="number"?typeof e=="string"?n=this[Rt][$6]?.[t]?.[e]:n=this[Rt][$6]?.[t]:typeof t=="object"&&(n=this[Rt][W3]?.get(t)),n};bn.prototype.compileSerializationSchema=function(t,e=null,n=null){let{request:r}=this,{method:l,url:i}=r;if(this[Rt][W3]?.has(t))return this[Rt][W3].get(t);let a=(this[Rt].serializerCompiler||this.server[bm].serializerCompiler||this.server[bm].setupSerializer(this.server[yse])||this.server[bm].serializerCompiler)({schema:t,method:l,url:i,httpStatus:e,contentType:n});return this[Rt][W3]==null&&(this[Rt][W3]=new WeakMap),this[Rt][W3].set(t,a),a};bn.prototype.serializeInput=function(t,e,n,r){let l=n,i;if(n=typeof e=="string"||typeof e=="number"?e:n,r=n&&l!==n?l:r,n!=null){if(r!=null?i=this[Rt][$6]?.[n]?.[r]:i=this[Rt][$6]?.[n],i==null)throw r?new Cse(n,r):new Ise(n)}else this[Rt][W3]?.has(e)?i=this[Rt][W3].get(e):i=this.compileSerializationSchema(e,n,r);return i(t)};bn.prototype.serialize=function(t){return this[s3]!==null?this[s3](t):this[Rt]&&this[Rt][F6]?this[Rt][F6](t,this.raw.statusCode):SI(this[Rt],t,this.raw.statusCode)};bn.prototype.serializer=function(t){return this[s3]=t,this};bn.prototype.type=function(t){return this[Rn]["content-type"]=t,this};bn.prototype.redirect=function(t,e){return typeof t=="string"&&(e=t,t=this[Rm]?this.raw.statusCode:302),this.header("location",e).code(t).send()};bn.prototype.callNotFound=function(){return Hse(this),this};bn.prototype.getResponseTime=function(){return Lse(),this.elapsedTime};bn.prototype.then=function(t,e){if(this.sent){t();return}xm(this.raw,n=>{n&&n.code!=="ERR_STREAM_PREMATURE_CLOSE"?e?e(n):this.log&&this.log.warn("unhandled rejection on reply.then"):t()})};function fI(t,e){t[Rt].preSerialization!==null?Ese(t[Rt].preSerialization,t.request,t,e,pI):pI(null,t.request,t,e)}function pI(t,e,n,r){if(t!=null){N1(n,t);return}try{n[s3]!==null?r=n[s3](r):n[Rt]&&n[Rt][F6]?r=n[Rt][F6](r,n.raw.statusCode):r=SI(n[Rt],r,n.raw.statusCode,n[Rn]["content-type"])}catch(l){Mse(l,n),N1(n,l);return}ba(n,r)}function Mse(t,e){t.serialization=e[Rt].config}function ba(t,e){t[Rt].onSend!==null?vI(t[Rt].onSend,t.request,t,e,$se):bI(t,e)}function $se(t,e,n,r){t!=null?N1(n,t):bI(n,r)}function Sm(t,e){let n=t.raw;try{n.writeHead(e,t[Rn])}catch(r){throw r.code==="ERR_HTTP_HEADERS_SENT"&&t.log.warn(`Reply was already sent, did you forget to "return reply" in the "${t.request.raw.url}" (${t.request.raw.method}) route?`),r}}function bI(t,e){let n=t.raw,r=t.request;if(t[Lr]!==null){let s=Object.keys(t[Lr]),a="";for(let o of s)typeof t[Lr][o]=="function"&&(a+=" ",a+=o);t.header("Transfer-Encoding","chunked"),t.header("Trailer",a.trim())}let l=EI.call(e)==="[object Response]";l&&typeof e.status=="number"&&t.code(e.status);let i=n.statusCode;if(e==null){i>=200&&i!==204&&i!==304&&r.method!=="HEAD"&&t[Lr]===null&&(t[Rn]["content-length"]="0"),Sm(t,i),L6(e,n,t);return}if(i>=100&&i<200||i===204){t.removeHeader("content-type"),t.removeHeader("content-length"),Sm(t,i),L6(void 0,n,t),typeof e.resume=="function"&&(e.on("error",xI),e.resume());return}if(typeof e.pipe=="function"){TI(e,n,t);return}if(typeof e.getReader=="function"){hI(e,n,t);return}if(l){if(typeof e.headers=="object"&&typeof e.headers.forEach=="function")for(let[s,a]of e.headers)t.header(s,a);if(e.body!=null){if(e.bodyUsed)throw new xse;hI(e.body,n,t)}return}if(typeof e!="string"&&!Buffer.isBuffer(e))throw new Sse(typeof e);if(t[Lr]===null){let s=t[Rn]["content-length"];(!s||r.raw.method!=="HEAD"&&Number(s)!==Buffer.byteLength(e))&&(t[Rn]["content-length"]=""+Buffer.byteLength(e))}Sm(t,i),n.write(e),L6(e,n,t)}function dI(t,e,n){e.code==="ERR_STREAM_PREMATURE_CLOSE"?t[yI]||t.info({res:n},"stream closed prematurely"):t.warn({err:e},"response terminated with an error with headers already sent")}function hI(t,e,n){let r=mse.fromWeb(t);TI(r,e,n)}function TI(t,e,n){let r=!0,l=!1;if(jse(t,e,n),xm(t,{readable:!0,writable:!1},function(i){r=!1,i!=null&&(e.headersSent||n.request.raw.aborted===!0?(l||(l=!0,dI(n.log,i,e)),e.destroy()):N1(n,i))}),xm(e,function(i){r&&(i!=null&&e.headersSent&&!l&&(l=!0,dI(n.log,i,e)),typeof t.destroy=="function"?t.destroy():typeof t.close=="function"?t.close(xI):typeof t.abort=="function"?t.abort():n.log.warn("stream payload does not end properly"))}),e.headersSent)n.log.warn("response will send, but you shouldn't use res.writeHead in stream mode");else for(let i in n[Rn])e.setHeader(i,n[Rn][i]);t.pipe(e)}function L6(t,e,n){if(n[Lr]===null){e.end(null,null,null);return}let r=Object.keys(n[Lr]),l={},i=0,s=!0;function a(){i===0&&(e.addTrailers(l),e.end(null,null,null))}for(let o of r){let f=function(p,m){i++,p?n.log.debug(p):l[o]=m,process.nextTick(a)};if(typeof n[Lr][o]!="function")continue;s=!1,i--;let c=n[Lr][o](n,t,f);typeof c=="object"&&typeof c.then=="function"?c.then(p=>f(null,p),f):c!=null&&(Pse(),f(null,c))}s&&e.end(null,null,null)}function jse(t,e,n){n[Lr]!==null&&t.on("end",()=>L6(null,e,n))}function N1(t,e,n){t[Rt].onError!==null&&!t[gse]?(t[Om]=!0,vI(t[Rt].onError,t.request,t,e,()=>cI(t,e,n))):cI(t,e,n)}function Use(t){t[O1]=Am();let e=n=>{t[wm]=Am(),t.raw.removeListener("finish",e),t.raw.removeListener("error",e);let r=t[Rt];r&&r.onResponse!==null?vse(r.onResponse,t.request,t,mI):mI(n,t.request,t)};t.raw.on("finish",e),t.raw.on("error",e)}function mI(t,e,n){if(n.log[yI])return;let r=n.elapsedTime;if(t!=null){n.log.error({res:n,err:t,responseTime:r},"request errored");return}n.log.info({res:n,responseTime:r},"request completed")}function Bse(t){let e=t.props.slice();function n(r,l,i){this.raw=r,this[M6]=!1,this[gI]=!1,this[R1]=!1,this[s3]=null,this.request=l,this[Rn]={},this[Lr]=null,this[O1]=void 0,this[wm]=void 0,this.log=i;for(var s,a=0;a{"use strict";AI.exports=qse;function qse(t){if(!t)throw new TypeError("argument req is required");var e=zse(t.headers["x-forwarded-for"]||""),n=Vse(t),r=[n].concat(e);return r}function Vse(t){return t.socket?t.socket.remoteAddress:t.connection.remoteAddress}function zse(t){for(var e=t.length,n=[],r=t.length,l=t.length-1;l>=0;l--)switch(t.charCodeAt(l)){case 32:r===e&&(r=e=l);break;case 44:r!==e&&n.push(t.substring(r,e)),r=e=l;break;default:r=l;break}return r!==e&&n.push(t.substring(r,e)),n}});var OI=C((RI,I1)=>{(function(){var t,e,n,r,l,i,s,a,o;e={},a=this,typeof I1<"u"&&I1!==null&&I1.exports?I1.exports=e:a.ipaddr=e,s=function(f,c,p,m){var h,g;if(f.length!==c.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");for(h=0;m>0;){if(g=p-m,g<0&&(g=0),f[h]>>g!==c[h]>>g)return!1;m-=p,h+=1}return!0},e.subnetMatch=function(f,c,p){var m,h,g,_,S;p==null&&(p="unicast");for(g in c)for(_=c[g],_[0]&&!(_[0]instanceof Array)&&(_=[_]),m=0,h=_.length;m=0;p=m+=-1)if(h=this.octets[p],h in S){if(_=S[h],g&&_!==0)return null;_!==8&&(g=!0),c+=_}else return null;return 32-c},f}(),n="(0?\\d+|0x[a-f0-9]+)",r={fourOctet:new RegExp("^"+n+"\\."+n+"\\."+n+"\\."+n+"$","i"),longValue:new RegExp("^"+n+"$","i")},e.IPv4.parser=function(f){var c,p,m,h,g;if(p=function(_){return _[0]==="0"&&_[1]!=="x"?parseInt(_,8):parseInt(_)},c=f.match(r.fourOctet))return function(){var _,S,T,x;for(T=c.slice(1,6),x=[],_=0,S=T.length;_4294967295||g<0)throw new Error("ipaddr: address outside defined range");return function(){var _,S;for(S=[],h=_=0;_<=24;h=_+=8)S.push(g>>h&255);return S}().reverse()}else return null},e.IPv6=function(){function f(c,p){var m,h,g,_,S,T;if(c.length===16)for(this.parts=[],m=h=0;h<=14;m=h+=2)this.parts.push(c[m]<<8|c[m+1]);else if(c.length===8)this.parts=c;else throw new Error("ipaddr: ipv6 part count should be 8 or 16");for(T=this.parts,g=0,_=T.length;g<_;g++)if(S=T[g],!(0<=S&&S<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");p&&(this.zoneId=p)}return f.prototype.kind=function(){return"ipv6"},f.prototype.toString=function(){return this.toNormalizedString().replace(/((^|:)(0(:|$))+)/,"::")},f.prototype.toRFC5952String=function(){var c,p,m,h,g;for(h=/((^|:)(0(:|$)){2,})/g,g=this.toNormalizedString(),c=0,p=-1;m=h.exec(g);)m[0].length>p&&(c=m.index,p=m[0].length);return p<0?g:g.substring(0,c)+"::"+g.substring(c+p)},f.prototype.toByteArray=function(){var c,p,m,h,g;for(c=[],g=this.parts,p=0,m=g.length;p>8),c.push(h&255);return c},f.prototype.toNormalizedString=function(){var c,p,m;return c=function(){var h,g,_,S;for(_=this.parts,S=[],h=0,g=_.length;h>8,c&255,p>>8,p&255])},f.prototype.prefixLengthFromSubnetMask=function(){var c,p,m,h,g,_,S;for(S={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0},c=0,g=!1,p=m=7;m>=0;p=m+=-1)if(h=this.parts[p],h in S){if(_=S[h],g&&_!==0)return null;_!==16&&(g=!0),c+=_}else return null;return 128-c},f}(),l="(?:[0-9a-f]+::?)+",o="%[0-9a-z]{1,}",i={zoneIndex:new RegExp(o,"i"),native:new RegExp("^(::)?("+l+")?([0-9a-f]+)?(::)?("+o+")?$","i"),transitional:new RegExp("^((?:"+l+")|(?:::)(?:"+l+")?)"+(n+"\\."+n+"\\."+n+"\\."+n)+("("+o+")?$"),"i")},t=function(f,c){var p,m,h,g,_,S;if(f.indexOf("::")!==f.lastIndexOf("::"))return null;for(S=(f.match(i.zoneIndex)||[])[0],S&&(S=S.substring(1),f=f.replace(/%.+$/,"")),p=0,m=-1;(m=f.indexOf(":",m+1))>=0;)p++;if(f.substr(0,2)==="::"&&p--,f.substr(-2,2)==="::"&&p--,p>c)return null;for(_=c-p,g=":";_--;)g+="0:";return f=f.replace("::",g),f[0]===":"&&(f=f.slice(1)),f[f.length-1]===":"&&(f=f.slice(0,-1)),c=function(){var T,x,v,b;for(v=f.split(":"),b=[],T=0,x=v.length;T=0&&c<=32))return m=[this.parse(p[1]),c],Object.defineProperty(m,"toString",{value:function(){return this.join("/")}}),m;throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},e.IPv4.subnetMaskFromPrefixLength=function(f){var c,p,m;if(f=parseInt(f),f<0||f>32)throw new Error("ipaddr: invalid IPv4 prefix length");for(m=[0,0,0,0],p=0,c=Math.floor(f/8);p=0&&c<=128))return m=[this.parse(p[1]),c],Object.defineProperty(m,"toString",{value:function(){return this.join("/")}}),m;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},e.isValid=function(f){return e.IPv6.isValid(f)||e.IPv4.isValid(f)},e.parse=function(f){if(e.IPv6.isValid(f))return e.IPv6.parse(f);if(e.IPv4.isValid(f))return e.IPv4.parse(f);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},e.parseCIDR=function(f){var c;try{return e.IPv6.parseCIDR(f)}catch(p){c=p;try{return e.IPv4.parseCIDR(f)}catch(m){throw c=m,new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},e.fromByteArray=function(f){var c;if(c=f.length,c===4)return new e.IPv4(f);if(c===16)return new e.IPv6(f);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},e.process=function(f){var c;return c=this.parse(f),c.kind()==="ipv6"&&c.isIPv4MappedAddress()?c.toIPv4Address():c}}).call(RI)});var PI=C((Xbe,q6)=>{"use strict";q6.exports=Qse;q6.exports.all=CI;q6.exports.compile=kI;var Gse=wI(),II=OI(),Xse=/^[0-9]+$/,B6=II.isValid,H6=II.parse,NI={linklocal:["169.254.0.0/16","fe80::/10"],loopback:["127.0.0.1/8","::1/128"],uniquelocal:["10.0.0.0/8","172.16.0.0/12","192.168.0.0/16","fc00::/7"]};function CI(t,e){var n=Gse(t);if(!e)return n;typeof e!="function"&&(e=kI(e));for(var r=0;rl)throw new TypeError("invalid range on address: "+t);return[r,i]}function Jse(t){var e=H6(t),n=e.kind();return n==="ipv4"?e.prefixLengthFromSubnetMask():null}function Qse(t,e){if(!t)throw new TypeError("req argument is required");if(!e)throw new TypeError("trust argument is required");var n=CI(t,e),r=n[n.length-1];return r}function Zse(){return!1}function eae(t){return function(n){if(!B6(n))return!1;for(var r=H6(n),l,i=r.kind(),s=0;s{var nae="2.0.0",rae=Number.MAX_SAFE_INTEGER||9007199254740991,lae=16,iae=250,sae=["major","premajor","minor","preminor","patch","prepatch","prerelease"];DI.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:lae,MAX_SAFE_BUILD_LENGTH:iae,MAX_SAFE_INTEGER:rae,RELEASE_TYPES:sae,SEMVER_SPEC_VERSION:nae,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var k1=C((Kbe,LI)=>{var aae=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};LI.exports=aae});var tu=C((a3,FI)=>{var{MAX_SAFE_COMPONENT_LENGTH:Nm,MAX_SAFE_BUILD_LENGTH:oae,MAX_LENGTH:uae}=C1(),cae=k1();a3=FI.exports={};var fae=a3.re=[],pae=a3.safeRe=[],Me=a3.src=[],$e=a3.t={},dae=0,Im="[a-zA-Z0-9-]",hae=[["\\s",1],["\\d",uae],[Im,oae]],mae=t=>{for(let[e,n]of hae)t=t.split(`${e}*`).join(`${e}{0,${n}}`).split(`${e}+`).join(`${e}{1,${n}}`);return t},vt=(t,e,n)=>{let r=mae(e),l=dae++;cae(t,l,e),$e[t]=l,Me[l]=e,fae[l]=new RegExp(e,n?"g":void 0),pae[l]=new RegExp(r,n?"g":void 0)};vt("NUMERICIDENTIFIER","0|[1-9]\\d*");vt("NUMERICIDENTIFIERLOOSE","\\d+");vt("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Im}*`);vt("MAINVERSION",`(${Me[$e.NUMERICIDENTIFIER]})\\.(${Me[$e.NUMERICIDENTIFIER]})\\.(${Me[$e.NUMERICIDENTIFIER]})`);vt("MAINVERSIONLOOSE",`(${Me[$e.NUMERICIDENTIFIERLOOSE]})\\.(${Me[$e.NUMERICIDENTIFIERLOOSE]})\\.(${Me[$e.NUMERICIDENTIFIERLOOSE]})`);vt("PRERELEASEIDENTIFIER",`(?:${Me[$e.NUMERICIDENTIFIER]}|${Me[$e.NONNUMERICIDENTIFIER]})`);vt("PRERELEASEIDENTIFIERLOOSE",`(?:${Me[$e.NUMERICIDENTIFIERLOOSE]}|${Me[$e.NONNUMERICIDENTIFIER]})`);vt("PRERELEASE",`(?:-(${Me[$e.PRERELEASEIDENTIFIER]}(?:\\.${Me[$e.PRERELEASEIDENTIFIER]})*))`);vt("PRERELEASELOOSE",`(?:-?(${Me[$e.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${Me[$e.PRERELEASEIDENTIFIERLOOSE]})*))`);vt("BUILDIDENTIFIER",`${Im}+`);vt("BUILD",`(?:\\+(${Me[$e.BUILDIDENTIFIER]}(?:\\.${Me[$e.BUILDIDENTIFIER]})*))`);vt("FULLPLAIN",`v?${Me[$e.MAINVERSION]}${Me[$e.PRERELEASE]}?${Me[$e.BUILD]}?`);vt("FULL",`^${Me[$e.FULLPLAIN]}$`);vt("LOOSEPLAIN",`[v=\\s]*${Me[$e.MAINVERSIONLOOSE]}${Me[$e.PRERELEASELOOSE]}?${Me[$e.BUILD]}?`);vt("LOOSE",`^${Me[$e.LOOSEPLAIN]}$`);vt("GTLT","((?:<|>)?=?)");vt("XRANGEIDENTIFIERLOOSE",`${Me[$e.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);vt("XRANGEIDENTIFIER",`${Me[$e.NUMERICIDENTIFIER]}|x|X|\\*`);vt("XRANGEPLAIN",`[v=\\s]*(${Me[$e.XRANGEIDENTIFIER]})(?:\\.(${Me[$e.XRANGEIDENTIFIER]})(?:\\.(${Me[$e.XRANGEIDENTIFIER]})(?:${Me[$e.PRERELEASE]})?${Me[$e.BUILD]}?)?)?`);vt("XRANGEPLAINLOOSE",`[v=\\s]*(${Me[$e.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Me[$e.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Me[$e.XRANGEIDENTIFIERLOOSE]})(?:${Me[$e.PRERELEASELOOSE]})?${Me[$e.BUILD]}?)?)?`);vt("XRANGE",`^${Me[$e.GTLT]}\\s*${Me[$e.XRANGEPLAIN]}$`);vt("XRANGELOOSE",`^${Me[$e.GTLT]}\\s*${Me[$e.XRANGEPLAINLOOSE]}$`);vt("COERCE",`(^|[^\\d])(\\d{1,${Nm}})(?:\\.(\\d{1,${Nm}}))?(?:\\.(\\d{1,${Nm}}))?(?:$|[^\\d])`);vt("COERCERTL",Me[$e.COERCE],!0);vt("LONETILDE","(?:~>?)");vt("TILDETRIM",`(\\s*)${Me[$e.LONETILDE]}\\s+`,!0);a3.tildeTrimReplace="$1~";vt("TILDE",`^${Me[$e.LONETILDE]}${Me[$e.XRANGEPLAIN]}$`);vt("TILDELOOSE",`^${Me[$e.LONETILDE]}${Me[$e.XRANGEPLAINLOOSE]}$`);vt("LONECARET","(?:\\^)");vt("CARETTRIM",`(\\s*)${Me[$e.LONECARET]}\\s+`,!0);a3.caretTrimReplace="$1^";vt("CARET",`^${Me[$e.LONECARET]}${Me[$e.XRANGEPLAIN]}$`);vt("CARETLOOSE",`^${Me[$e.LONECARET]}${Me[$e.XRANGEPLAINLOOSE]}$`);vt("COMPARATORLOOSE",`^${Me[$e.GTLT]}\\s*(${Me[$e.LOOSEPLAIN]})$|^$`);vt("COMPARATOR",`^${Me[$e.GTLT]}\\s*(${Me[$e.FULLPLAIN]})$|^$`);vt("COMPARATORTRIM",`(\\s*)${Me[$e.GTLT]}\\s*(${Me[$e.LOOSEPLAIN]}|${Me[$e.XRANGEPLAIN]})`,!0);a3.comparatorTrimReplace="$1$2$3";vt("HYPHENRANGE",`^\\s*(${Me[$e.XRANGEPLAIN]})\\s+-\\s+(${Me[$e.XRANGEPLAIN]})\\s*$`);vt("HYPHENRANGELOOSE",`^\\s*(${Me[$e.XRANGEPLAINLOOSE]})\\s+-\\s+(${Me[$e.XRANGEPLAINLOOSE]})\\s*$`);vt("STAR","(<|>)?=?\\s*\\*");vt("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");vt("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var V6=C((Ybe,MI)=>{var gae=Object.freeze({loose:!0}),yae=Object.freeze({}),vae=t=>t?typeof t!="object"?gae:t:yae;MI.exports=vae});var Cm=C((Jbe,UI)=>{var $I=/^[0-9]+$/,jI=(t,e)=>{let n=$I.test(t),r=$I.test(e);return n&&r&&(t=+t,e=+e),t===e?0:n&&!r?-1:r&&!n?1:tjI(e,t);UI.exports={compareIdentifiers:jI,rcompareIdentifiers:_ae}});var ul=C((Qbe,VI)=>{var z6=k1(),{MAX_LENGTH:BI,MAX_SAFE_INTEGER:G6}=C1(),{safeRe:HI,t:qI}=tu(),Eae=V6(),{compareIdentifiers:nu}=Cm(),km=class t{constructor(e,n){if(n=Eae(n),e instanceof t){if(e.loose===!!n.loose&&e.includePrerelease===!!n.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>BI)throw new TypeError(`version is longer than ${BI} characters`);z6("SemVer",e,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let r=e.trim().match(n.loose?HI[qI.LOOSE]:HI[qI.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>G6||this.major<0)throw new TypeError("Invalid major version");if(this.minor>G6||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>G6||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(l=>{if(/^[0-9]+$/.test(l)){let i=+l;if(i>=0&&i=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(n===this.prerelease.join(".")&&r===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(l)}}if(n){let i=[n,l];r===!1&&(i=[n]),nu(this.prerelease[0],n)===0?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};VI.exports=km});var Ta=C((Zbe,GI)=>{var zI=ul(),bae=(t,e,n=!1)=>{if(t instanceof zI)return t;try{return new zI(t,e)}catch(r){if(!n)return null;throw r}};GI.exports=bae});var WI=C((eTe,XI)=>{var Tae=Ta(),Sae=(t,e)=>{let n=Tae(t,e);return n?n.version:null};XI.exports=Sae});var YI=C((tTe,KI)=>{var xae=Ta(),Aae=(t,e)=>{let n=xae(t.trim().replace(/^[=v]+/,""),e);return n?n.version:null};KI.exports=Aae});var ZI=C((nTe,QI)=>{var JI=ul(),wae=(t,e,n,r,l)=>{typeof n=="string"&&(l=r,r=n,n=void 0);try{return new JI(t instanceof JI?t.version:t,n).inc(e,r,l).version}catch{return null}};QI.exports=wae});var nC=C((rTe,tC)=>{var eC=Ta(),Rae=(t,e)=>{let n=eC(t,null,!0),r=eC(e,null,!0),l=n.compare(r);if(l===0)return null;let i=l>0,s=i?n:r,a=i?r:n,o=!!s.prerelease.length;if(!!a.prerelease.length&&!o)return!a.patch&&!a.minor?"major":s.patch?"patch":s.minor?"minor":"major";let c=o?"pre":"";return n.major!==r.major?c+"major":n.minor!==r.minor?c+"minor":n.patch!==r.patch?c+"patch":"prerelease"};tC.exports=Rae});var lC=C((lTe,rC)=>{var Oae=ul(),Nae=(t,e)=>new Oae(t,e).major;rC.exports=Nae});var sC=C((iTe,iC)=>{var Iae=ul(),Cae=(t,e)=>new Iae(t,e).minor;iC.exports=Cae});var oC=C((sTe,aC)=>{var kae=ul(),Pae=(t,e)=>new kae(t,e).patch;aC.exports=Pae});var cC=C((aTe,uC)=>{var Dae=Ta(),Lae=(t,e)=>{let n=Dae(t,e);return n&&n.prerelease.length?n.prerelease:null};uC.exports=Lae});var v2=C((oTe,pC)=>{var fC=ul(),Fae=(t,e,n)=>new fC(t,n).compare(new fC(e,n));pC.exports=Fae});var hC=C((uTe,dC)=>{var Mae=v2(),$ae=(t,e,n)=>Mae(e,t,n);dC.exports=$ae});var gC=C((cTe,mC)=>{var jae=v2(),Uae=(t,e)=>jae(t,e,!0);mC.exports=Uae});var X6=C((fTe,vC)=>{var yC=ul(),Bae=(t,e,n)=>{let r=new yC(t,n),l=new yC(e,n);return r.compare(l)||r.compareBuild(l)};vC.exports=Bae});var EC=C((pTe,_C)=>{var Hae=X6(),qae=(t,e)=>t.sort((n,r)=>Hae(n,r,e));_C.exports=qae});var TC=C((dTe,bC)=>{var Vae=X6(),zae=(t,e)=>t.sort((n,r)=>Vae(r,n,e));bC.exports=zae});var P1=C((hTe,SC)=>{var Gae=v2(),Xae=(t,e,n)=>Gae(t,e,n)>0;SC.exports=Xae});var W6=C((mTe,xC)=>{var Wae=v2(),Kae=(t,e,n)=>Wae(t,e,n)<0;xC.exports=Kae});var Pm=C((gTe,AC)=>{var Yae=v2(),Jae=(t,e,n)=>Yae(t,e,n)===0;AC.exports=Jae});var Dm=C((yTe,wC)=>{var Qae=v2(),Zae=(t,e,n)=>Qae(t,e,n)!==0;wC.exports=Zae});var K6=C((vTe,RC)=>{var eoe=v2(),toe=(t,e,n)=>eoe(t,e,n)>=0;RC.exports=toe});var Y6=C((_Te,OC)=>{var noe=v2(),roe=(t,e,n)=>noe(t,e,n)<=0;OC.exports=roe});var Lm=C((ETe,NC)=>{var loe=Pm(),ioe=Dm(),soe=P1(),aoe=K6(),ooe=W6(),uoe=Y6(),coe=(t,e,n,r)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof n=="object"&&(n=n.version),t===n;case"!==":return typeof t=="object"&&(t=t.version),typeof n=="object"&&(n=n.version),t!==n;case"":case"=":case"==":return loe(t,n,r);case"!=":return ioe(t,n,r);case">":return soe(t,n,r);case">=":return aoe(t,n,r);case"<":return ooe(t,n,r);case"<=":return uoe(t,n,r);default:throw new TypeError(`Invalid operator: ${e}`)}};NC.exports=coe});var CC=C((bTe,IC)=>{var foe=ul(),poe=Ta(),{safeRe:J6,t:Q6}=tu(),doe=(t,e)=>{if(t instanceof foe)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let n=null;if(!e.rtl)n=t.match(J6[Q6.COERCE]);else{let r;for(;(r=J6[Q6.COERCERTL].exec(t))&&(!n||n.index+n[0].length!==t.length);)(!n||r.index+r[0].length!==n.index+n[0].length)&&(n=r),J6[Q6.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;J6[Q6.COERCERTL].lastIndex=-1}return n===null?null:poe(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,e)};IC.exports=doe});var PC=C((TTe,kC)=>{"use strict";kC.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var LC=C((STe,DC)=>{"use strict";DC.exports=Kt;Kt.Node=Sa;Kt.create=Kt;function Kt(t){var e=this;if(e instanceof Kt||(e=new Kt),e.tail=null,e.head=null,e.length=0,t&&typeof t.forEach=="function")t.forEach(function(l){e.push(l)});else if(arguments.length>0)for(var n=0,r=arguments.length;n1)n=e;else if(this.head)r=this.head.next,n=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var l=0;r!==null;l++)n=t(n,r.value,l),r=r.next;return n};Kt.prototype.reduceReverse=function(t,e){var n,r=this.tail;if(arguments.length>1)n=e;else if(this.tail)r=this.tail.prev,n=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var l=this.length-1;r!==null;l--)n=t(n,r.value,l),r=r.prev;return n};Kt.prototype.toArray=function(){for(var t=new Array(this.length),e=0,n=this.head;n!==null;e++)t[e]=n.value,n=n.next;return t};Kt.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,n=this.tail;n!==null;e++)t[e]=n.value,n=n.prev;return t};Kt.prototype.slice=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var n=new Kt;if(ethis.length&&(e=this.length);for(var r=0,l=this.head;l!==null&&rthis.length&&(e=this.length);for(var r=this.length,l=this.tail;l!==null&&r>e;r--)l=l.prev;for(;l!==null&&r>t;r--,l=l.prev)n.push(l.value);return n};Kt.prototype.splice=function(t,e,...n){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var r=0,l=this.head;l!==null&&r{"use strict";var yoe=LC(),xa=Symbol("max"),u3=Symbol("length"),ru=Symbol("lengthCalculator"),L1=Symbol("allowStale"),Aa=Symbol("maxAge"),o3=Symbol("dispose"),FC=Symbol("noDisposeOnSet"),Fr=Symbol("lruList"),q2=Symbol("cache"),$C=Symbol("updateAgeOnGet"),Fm=()=>1,$m=class{constructor(e){if(typeof e=="number"&&(e={max:e}),e||(e={}),e.max&&(typeof e.max!="number"||e.max<0))throw new TypeError("max must be a non-negative number");let n=this[xa]=e.max||1/0,r=e.length||Fm;if(this[ru]=typeof r!="function"?Fm:r,this[L1]=e.stale||!1,e.maxAge&&typeof e.maxAge!="number")throw new TypeError("maxAge must be a number");this[Aa]=e.maxAge||0,this[o3]=e.dispose,this[FC]=e.noDisposeOnSet||!1,this[$C]=e.updateAgeOnGet||!1,this.reset()}set max(e){if(typeof e!="number"||e<0)throw new TypeError("max must be a non-negative number");this[xa]=e||1/0,D1(this)}get max(){return this[xa]}set allowStale(e){this[L1]=!!e}get allowStale(){return this[L1]}set maxAge(e){if(typeof e!="number")throw new TypeError("maxAge must be a non-negative number");this[Aa]=e,D1(this)}get maxAge(){return this[Aa]}set lengthCalculator(e){typeof e!="function"&&(e=Fm),e!==this[ru]&&(this[ru]=e,this[u3]=0,this[Fr].forEach(n=>{n.length=this[ru](n.value,n.key),this[u3]+=n.length})),D1(this)}get lengthCalculator(){return this[ru]}get length(){return this[u3]}get itemCount(){return this[Fr].length}rforEach(e,n){n=n||this;for(let r=this[Fr].tail;r!==null;){let l=r.prev;MC(this,e,r,n),r=l}}forEach(e,n){n=n||this;for(let r=this[Fr].head;r!==null;){let l=r.next;MC(this,e,r,n),r=l}}keys(){return this[Fr].toArray().map(e=>e.key)}values(){return this[Fr].toArray().map(e=>e.value)}reset(){this[o3]&&this[Fr]&&this[Fr].length&&this[Fr].forEach(e=>this[o3](e.key,e.value)),this[q2]=new Map,this[Fr]=new yoe,this[u3]=0}dump(){return this[Fr].map(e=>Z6(this,e)?!1:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[Fr]}set(e,n,r){if(r=r||this[Aa],r&&typeof r!="number")throw new TypeError("maxAge must be a number");let l=r?Date.now():0,i=this[ru](n,e);if(this[q2].has(e)){if(i>this[xa])return lu(this,this[q2].get(e)),!1;let o=this[q2].get(e).value;return this[o3]&&(this[FC]||this[o3](e,o.value)),o.now=l,o.maxAge=r,o.value=n,this[u3]+=i-o.length,o.length=i,this.get(e),D1(this),!0}let s=new jm(e,n,i,l,r);return s.length>this[xa]?(this[o3]&&this[o3](e,n),!1):(this[u3]+=s.length,this[Fr].unshift(s),this[q2].set(e,this[Fr].head),D1(this),!0)}has(e){if(!this[q2].has(e))return!1;let n=this[q2].get(e).value;return!Z6(this,n)}get(e){return Mm(this,e,!0)}peek(e){return Mm(this,e,!1)}pop(){let e=this[Fr].tail;return e?(lu(this,e),e.value):null}del(e){lu(this,this[q2].get(e))}load(e){this.reset();let n=Date.now();for(let r=e.length-1;r>=0;r--){let l=e[r],i=l.e||0;if(i===0)this.set(l.k,l.v);else{let s=i-n;s>0&&this.set(l.k,l.v,s)}}}prune(){this[q2].forEach((e,n)=>Mm(this,n,!1))}},Mm=(t,e,n)=>{let r=t[q2].get(e);if(r){let l=r.value;if(Z6(t,l)){if(lu(t,r),!t[L1])return}else n&&(t[$C]&&(r.value.now=Date.now()),t[Fr].unshiftNode(r));return l.value}},Z6=(t,e)=>{if(!e||!e.maxAge&&!t[Aa])return!1;let n=Date.now()-e.now;return e.maxAge?n>e.maxAge:t[Aa]&&n>t[Aa]},D1=t=>{if(t[u3]>t[xa])for(let e=t[Fr].tail;t[u3]>t[xa]&&e!==null;){let n=e.prev;lu(t,e),e=n}},lu=(t,e)=>{if(e){let n=e.value;t[o3]&&t[o3](n.key,n.value),t[u3]-=n.length,t[q2].delete(n.key),t[Fr].removeNode(e)}},jm=class{constructor(e,n,r,l,i){this.key=e,this.value=n,this.length=r,this.now=l,this.maxAge=i||0}},MC=(t,e,n,r)=>{let l=n.value;Z6(t,l)&&(lu(t,n),t[L1]||(l=void 0)),l&&e.call(r,l.value,l.key,t)};jC.exports=$m});var _2=C((ATe,VC)=>{var Um=class t{constructor(e,n){if(n=_oe(n),e instanceof t)return e.loose===!!n.loose&&e.includePrerelease===!!n.includePrerelease?e:new t(e.raw,n);if(e instanceof Bm)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(r=>this.parseRange(r.trim())).filter(r=>r.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let r=this.set[0];if(this.set=this.set.filter(l=>!HC(l[0])),this.set.length===0)this.set=[r];else if(this.set.length>1){for(let l of this.set)if(l.length===1&&woe(l[0])){this.set=[l];break}}}this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){let r=((this.options.includePrerelease&&xoe)|(this.options.loose&&Aoe))+":"+e,l=BC.get(r);if(l)return l;let i=this.options.loose,s=i?Ml[Tl.HYPHENRANGELOOSE]:Ml[Tl.HYPHENRANGE];e=e.replace(s,Foe(this.options.includePrerelease)),kn("hyphen replace",e),e=e.replace(Ml[Tl.COMPARATORTRIM],boe),kn("comparator trim",e),e=e.replace(Ml[Tl.TILDETRIM],Toe),kn("tilde trim",e),e=e.replace(Ml[Tl.CARETTRIM],Soe),kn("caret trim",e);let a=e.split(" ").map(p=>Roe(p,this.options)).join(" ").split(/\s+/).map(p=>Loe(p,this.options));i&&(a=a.filter(p=>(kn("loose invalid filter",p,this.options),!!p.match(Ml[Tl.COMPARATORLOOSE])))),kn("range list",a);let o=new Map,f=a.map(p=>new Bm(p,this.options));for(let p of f){if(HC(p))return[p];o.set(p.value,p)}o.size>1&&o.has("")&&o.delete("");let c=[...o.values()];return BC.set(r,c),c}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(r=>qC(r,n)&&e.set.some(l=>qC(l,n)&&r.every(i=>l.every(s=>i.intersects(s,n)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new Eoe(e,this.options)}catch{return!1}for(let n=0;nt.value==="<0.0.0-0",woe=t=>t.value==="",qC=(t,e)=>{let n=!0,r=t.slice(),l=r.pop();for(;n&&r.length;)n=r.every(i=>l.intersects(i,e)),l=r.pop();return n},Roe=(t,e)=>(kn("comp",t,e),t=Ioe(t,e),kn("caret",t),t=Ooe(t,e),kn("tildes",t),t=koe(t,e),kn("xrange",t),t=Doe(t,e),kn("stars",t),t),Sl=t=>!t||t.toLowerCase()==="x"||t==="*",Ooe=(t,e)=>t.trim().split(/\s+/).map(n=>Noe(n,e)).join(" "),Noe=(t,e)=>{let n=e.loose?Ml[Tl.TILDELOOSE]:Ml[Tl.TILDE];return t.replace(n,(r,l,i,s,a)=>{kn("tilde",t,r,l,i,s,a);let o;return Sl(l)?o="":Sl(i)?o=`>=${l}.0.0 <${+l+1}.0.0-0`:Sl(s)?o=`>=${l}.${i}.0 <${l}.${+i+1}.0-0`:a?(kn("replaceTilde pr",a),o=`>=${l}.${i}.${s}-${a} <${l}.${+i+1}.0-0`):o=`>=${l}.${i}.${s} <${l}.${+i+1}.0-0`,kn("tilde return",o),o})},Ioe=(t,e)=>t.trim().split(/\s+/).map(n=>Coe(n,e)).join(" "),Coe=(t,e)=>{kn("caret",t,e);let n=e.loose?Ml[Tl.CARETLOOSE]:Ml[Tl.CARET],r=e.includePrerelease?"-0":"";return t.replace(n,(l,i,s,a,o)=>{kn("caret",t,l,i,s,a,o);let f;return Sl(i)?f="":Sl(s)?f=`>=${i}.0.0${r} <${+i+1}.0.0-0`:Sl(a)?i==="0"?f=`>=${i}.${s}.0${r} <${i}.${+s+1}.0-0`:f=`>=${i}.${s}.0${r} <${+i+1}.0.0-0`:o?(kn("replaceCaret pr",o),i==="0"?s==="0"?f=`>=${i}.${s}.${a}-${o} <${i}.${s}.${+a+1}-0`:f=`>=${i}.${s}.${a}-${o} <${i}.${+s+1}.0-0`:f=`>=${i}.${s}.${a}-${o} <${+i+1}.0.0-0`):(kn("no pr"),i==="0"?s==="0"?f=`>=${i}.${s}.${a}${r} <${i}.${s}.${+a+1}-0`:f=`>=${i}.${s}.${a}${r} <${i}.${+s+1}.0-0`:f=`>=${i}.${s}.${a} <${+i+1}.0.0-0`),kn("caret return",f),f})},koe=(t,e)=>(kn("replaceXRanges",t,e),t.split(/\s+/).map(n=>Poe(n,e)).join(" ")),Poe=(t,e)=>{t=t.trim();let n=e.loose?Ml[Tl.XRANGELOOSE]:Ml[Tl.XRANGE];return t.replace(n,(r,l,i,s,a,o)=>{kn("xRange",t,r,l,i,s,a,o);let f=Sl(i),c=f||Sl(s),p=c||Sl(a),m=p;return l==="="&&m&&(l=""),o=e.includePrerelease?"-0":"",f?l===">"||l==="<"?r="<0.0.0-0":r="*":l&&m?(c&&(s=0),a=0,l===">"?(l=">=",c?(i=+i+1,s=0,a=0):(s=+s+1,a=0)):l==="<="&&(l="<",c?i=+i+1:s=+s+1),l==="<"&&(o="-0"),r=`${l+i}.${s}.${a}${o}`):c?r=`>=${i}.0.0${o} <${+i+1}.0.0-0`:p&&(r=`>=${i}.${s}.0${o} <${i}.${+s+1}.0-0`),kn("xRange return",r),r})},Doe=(t,e)=>(kn("replaceStars",t,e),t.trim().replace(Ml[Tl.STAR],"")),Loe=(t,e)=>(kn("replaceGTE0",t,e),t.trim().replace(Ml[e.includePrerelease?Tl.GTE0PRE:Tl.GTE0],"")),Foe=t=>(e,n,r,l,i,s,a,o,f,c,p,m,h)=>(Sl(r)?n="":Sl(l)?n=`>=${r}.0.0${t?"-0":""}`:Sl(i)?n=`>=${r}.${l}.0${t?"-0":""}`:s?n=`>=${n}`:n=`>=${n}${t?"-0":""}`,Sl(f)?o="":Sl(c)?o=`<${+f+1}.0.0-0`:Sl(p)?o=`<${f}.${+c+1}.0-0`:m?o=`<=${f}.${c}.${p}-${m}`:t?o=`<${f}.${c}.${+p+1}-0`:o=`<=${o}`,`${n} ${o}`.trim()),Moe=(t,e,n)=>{for(let r=0;r0){let l=t[r].semver;if(l.major===e.major&&l.minor===e.minor&&l.patch===e.patch)return!0}return!1}return!0}});var F1=C((wTe,YC)=>{var M1=Symbol("SemVer ANY"),Vm=class t{static get ANY(){return M1}constructor(e,n){if(n=zC(n),e instanceof t){if(e.loose===!!n.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),qm("comparator",e,n),this.options=n,this.loose=!!n.loose,this.parse(e),this.semver===M1?this.value="":this.value=this.operator+this.semver.version,qm("comp",this)}parse(e){let n=this.options.loose?GC[XC.COMPARATORLOOSE]:GC[XC.COMPARATOR],r=e.match(n);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=r[1]!==void 0?r[1]:"",this.operator==="="&&(this.operator=""),r[2]?this.semver=new WC(r[2],this.options.loose):this.semver=M1}toString(){return this.value}test(e){if(qm("Comparator.test",e,this.options.loose),this.semver===M1||e===M1)return!0;if(typeof e=="string")try{e=new WC(e,this.options)}catch{return!1}return Hm(e,this.operator,this.semver,this.options)}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new KC(e.value,n).test(this.value):e.operator===""?e.value===""?!0:new KC(this.value,n).test(e.semver):(n=zC(n),n.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!n.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||Hm(this.semver,"<",e.semver,n)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||Hm(this.semver,">",e.semver,n)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};YC.exports=Vm;var zC=V6(),{safeRe:GC,t:XC}=tu(),Hm=Lm(),qm=k1(),WC=ul(),KC=_2()});var $1=C((RTe,JC)=>{var $oe=_2(),joe=(t,e,n)=>{try{e=new $oe(e,n)}catch{return!1}return e.test(t)};JC.exports=joe});var ZC=C((OTe,QC)=>{var Uoe=_2(),Boe=(t,e)=>new Uoe(t,e).set.map(n=>n.map(r=>r.value).join(" ").trim().split(" "));QC.exports=Boe});var tk=C((NTe,ek)=>{var Hoe=ul(),qoe=_2(),Voe=(t,e,n)=>{let r=null,l=null,i=null;try{i=new qoe(e,n)}catch{return null}return t.forEach(s=>{i.test(s)&&(!r||l.compare(s)===-1)&&(r=s,l=new Hoe(r,n))}),r};ek.exports=Voe});var rk=C((ITe,nk)=>{var zoe=ul(),Goe=_2(),Xoe=(t,e,n)=>{let r=null,l=null,i=null;try{i=new Goe(e,n)}catch{return null}return t.forEach(s=>{i.test(s)&&(!r||l.compare(s)===1)&&(r=s,l=new zoe(r,n))}),r};nk.exports=Xoe});var sk=C((CTe,ik)=>{var zm=ul(),Woe=_2(),lk=P1(),Koe=(t,e)=>{t=new Woe(t,e);let n=new zm("0.0.0");if(t.test(n)||(n=new zm("0.0.0-0"),t.test(n)))return n;n=null;for(let r=0;r{let a=new zm(s.semver.version);switch(s.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!i||lk(a,i))&&(i=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${s.operator}`)}}),i&&(!n||lk(n,i))&&(n=i)}return n&&t.test(n)?n:null};ik.exports=Koe});var ok=C((kTe,ak)=>{var Yoe=_2(),Joe=(t,e)=>{try{return new Yoe(t,e).range||"*"}catch{return null}};ak.exports=Joe});var e8=C((PTe,pk)=>{var Qoe=ul(),fk=F1(),{ANY:Zoe}=fk,eue=_2(),tue=$1(),uk=P1(),ck=W6(),nue=Y6(),rue=K6(),lue=(t,e,n,r)=>{t=new Qoe(t,r),e=new eue(e,r);let l,i,s,a,o;switch(n){case">":l=uk,i=nue,s=ck,a=">",o=">=";break;case"<":l=ck,i=rue,s=uk,a="<",o="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(tue(t,e,r))return!1;for(let f=0;f{h.semver===Zoe&&(h=new fk(">=0.0.0")),p=p||h,m=m||h,l(h.semver,p.semver,r)?p=h:s(h.semver,m.semver,r)&&(m=h)}),p.operator===a||p.operator===o||(!m.operator||m.operator===a)&&i(t,m.semver))return!1;if(m.operator===o&&s(t,m.semver))return!1}return!0};pk.exports=lue});var hk=C((DTe,dk)=>{var iue=e8(),sue=(t,e,n)=>iue(t,e,">",n);dk.exports=sue});var gk=C((LTe,mk)=>{var aue=e8(),oue=(t,e,n)=>aue(t,e,"<",n);mk.exports=oue});var _k=C((FTe,vk)=>{var yk=_2(),uue=(t,e,n)=>(t=new yk(t,n),e=new yk(e,n),t.intersects(e,n));vk.exports=uue});var bk=C((MTe,Ek)=>{var cue=$1(),fue=v2();Ek.exports=(t,e,n)=>{let r=[],l=null,i=null,s=t.sort((c,p)=>fue(c,p,n));for(let c of s)cue(c,e,n)?(i=c,l||(l=c)):(i&&r.push([l,i]),i=null,l=null);l&&r.push([l,null]);let a=[];for(let[c,p]of r)c===p?a.push(c):!p&&c===s[0]?a.push("*"):p?c===s[0]?a.push(`<=${p}`):a.push(`${c} - ${p}`):a.push(`>=${c}`);let o=a.join(" || "),f=typeof e.raw=="string"?e.raw:String(e);return o.length{var Tk=_2(),Xm=F1(),{ANY:Gm}=Xm,j1=$1(),Wm=v2(),pue=(t,e,n={})=>{if(t===e)return!0;t=new Tk(t,n),e=new Tk(e,n);let r=!1;e:for(let l of t.set){for(let i of e.set){let s=hue(l,i,n);if(r=r||s!==null,s)continue e}if(r)return!1}return!0},due=[new Xm(">=0.0.0-0")],Sk=[new Xm(">=0.0.0")],hue=(t,e,n)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===Gm){if(e.length===1&&e[0].semver===Gm)return!0;n.includePrerelease?t=due:t=Sk}if(e.length===1&&e[0].semver===Gm){if(n.includePrerelease)return!0;e=Sk}let r=new Set,l,i;for(let h of t)h.operator===">"||h.operator===">="?l=xk(l,h,n):h.operator==="<"||h.operator==="<="?i=Ak(i,h,n):r.add(h.semver);if(r.size>1)return null;let s;if(l&&i){if(s=Wm(l.semver,i.semver,n),s>0)return null;if(s===0&&(l.operator!==">="||i.operator!=="<="))return null}for(let h of r){if(l&&!j1(h,String(l),n)||i&&!j1(h,String(i),n))return null;for(let g of e)if(!j1(h,String(g),n))return!1;return!0}let a,o,f,c,p=i&&!n.includePrerelease&&i.semver.prerelease.length?i.semver:!1,m=l&&!n.includePrerelease&&l.semver.prerelease.length?l.semver:!1;p&&p.prerelease.length===1&&i.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(let h of e){if(c=c||h.operator===">"||h.operator===">=",f=f||h.operator==="<"||h.operator==="<=",l){if(m&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===m.major&&h.semver.minor===m.minor&&h.semver.patch===m.patch&&(m=!1),h.operator===">"||h.operator===">="){if(a=xk(l,h,n),a===h&&a!==l)return!1}else if(l.operator===">="&&!j1(l.semver,String(h),n))return!1}if(i){if(p&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===p.major&&h.semver.minor===p.minor&&h.semver.patch===p.patch&&(p=!1),h.operator==="<"||h.operator==="<="){if(o=Ak(i,h,n),o===h&&o!==i)return!1}else if(i.operator==="<="&&!j1(i.semver,String(h),n))return!1}if(!h.operator&&(i||l)&&s!==0)return!1}return!(l&&f&&!i&&s!==0||i&&c&&!l&&s!==0||m||p)},xk=(t,e,n)=>{if(!t)return e;let r=Wm(t.semver,e.semver,n);return r>0?t:r<0||e.operator===">"&&t.operator===">="?e:t},Ak=(t,e,n)=>{if(!t)return e;let r=Wm(t.semver,e.semver,n);return r<0?t:r>0||e.operator==="<"&&t.operator==="<="?e:t};wk.exports=pue});var Ym=C((jTe,Ik)=>{var Km=tu(),Ok=C1(),mue=ul(),Nk=Cm(),gue=Ta(),yue=WI(),vue=YI(),_ue=ZI(),Eue=nC(),bue=lC(),Tue=sC(),Sue=oC(),xue=cC(),Aue=v2(),wue=hC(),Rue=gC(),Oue=X6(),Nue=EC(),Iue=TC(),Cue=P1(),kue=W6(),Pue=Pm(),Due=Dm(),Lue=K6(),Fue=Y6(),Mue=Lm(),$ue=CC(),jue=F1(),Uue=_2(),Bue=$1(),Hue=ZC(),que=tk(),Vue=rk(),zue=sk(),Gue=ok(),Xue=e8(),Wue=hk(),Kue=gk(),Yue=_k(),Jue=bk(),Que=Rk();Ik.exports={parse:gue,valid:yue,clean:vue,inc:_ue,diff:Eue,major:bue,minor:Tue,patch:Sue,prerelease:xue,compare:Aue,rcompare:wue,compareLoose:Rue,compareBuild:Oue,sort:Nue,rsort:Iue,gt:Cue,lt:kue,eq:Pue,neq:Due,gte:Lue,lte:Fue,cmp:Mue,coerce:$ue,Comparator:jue,Range:Uue,satisfies:Bue,toComparators:Hue,maxSatisfying:que,minSatisfying:Vue,minVersion:zue,validRange:Gue,outside:Xue,gtr:Wue,ltr:Kue,intersects:Yue,simplifyRange:Jue,subset:Que,SemVer:mue,re:Km.re,src:Km.src,tokens:Km.t,SEMVER_SPEC_VERSION:Ok.SEMVER_SPEC_VERSION,RELEASE_TYPES:Ok.RELEASE_TYPES,compareIdentifiers:Nk.compareIdentifiers,rcompareIdentifiers:Nk.rcompareIdentifiers}});var n8=C((UTe,eg)=>{"use strict";var t8=PI(),Zue=Ym(),{FSTDEP005:e4e,FSTDEP012:t4e,FSTDEP015:n4e,FSTDEP016:r4e,FSTDEP017:l4e,FSTDEP018:i4e}=e3(),{kHasBeenDecorated:s4e,kSchemaBody:a4e,kSchemaHeaders:o4e,kSchemaParams:u4e,kSchemaQuerystring:Ck,kSchemaController:Jm,kOptions:c4e,kRequestCacheValidateFns:K3,kRouteContext:sr,kPublicRouteContext:kk,kRequestOriginalUrl:Qm}=Dr(),{FST_ERR_REQ_INVALID_VALIDATION_INVOCATION:f4e}=il(),Pk={body:a4e,headers:o4e,params:u4e,querystring:Ck,query:Ck};function Zm(t,e,n,r,l,i){this.id=t,this[sr]=i,this.params=e,this.raw=n,this.query=r,this.log=l,this.body=void 0}Zm.props=[];function p4e(t){if(typeof t=="function")return t;if(t===!0)return function(){return!0};if(typeof t=="number")return function(e,n){return nn.trim());return t8.compile(e)}return t8.compile(t)}function d4e(t,e){return e?h4e(t,e):Lk(t)}function Lk(t){let e=t.props.slice();function n(r,l,i,s,a,o){this.id=r,this[sr]=o,this.params=l,this.raw=i,this.query=s,this.log=a,this.body=void 0;for(var f,c=0;ct.config},schema:{get:()=>t.schema}}),Object.freeze(l)}},routerMethod:{get(){return i4e(),this[sr].config?.method}},routeConfig:{get(){return r4e(),this[sr][kk]?.config}},routeSchema:{get(){return n4e(),this[sr][kk].schema}},is404:{get(){return this[sr].config?.url===void 0}},connection:{get(){return Zue.gte(process.versions.node,"13.0.0")&&e4e(),this.raw.connection}},socket:{get(){return this.raw.socket}},ip:{get(){if(this.socket)return this.socket.remoteAddress}},hostname:{get(){return this.raw.headers.host||this.raw.headers[":authority"]}},protocol:{get(){if(this.socket)return this.socket.encrypted?"https":"http"}},headers:{get(){return this.additionalHeaders?Object.assign({},this.raw.headers,this.additionalHeaders):this.raw.headers},set(t){this.additionalHeaders=t}},getValidationFunction:{value:function(t){if(typeof t=="string"){let e=Pk[t];return this[sr][e]}else if(typeof t=="object")return this[sr][K3]?.get(t)}},compileValidationSchema:{value:function(t,e=null){let{method:n,url:r}=this;if(this[sr][K3]?.has(t))return this[sr][K3].get(t);let i=(this[sr].validatorCompiler||this.server[Jm].validatorCompiler||this.server[Jm].setupValidator(this.server[c4e])||this.server[Jm].validatorCompiler)({schema:t,method:n,url:r,httpPart:e});return this[sr][K3]==null&&(this[sr][K3]=new WeakMap),this[sr][K3].set(t,i),i}},validateInput:{value:function(t,e,n){n=typeof e=="string"?e:n;let r=n!=null&&typeof n=="string"&&Pk[n],l;if(r&&(l=this[sr][r]),l==null&&(e==null||typeof e!="object"||Array.isArray(e)))throw new f4e(n);return l==null&&(this[sr][K3]?.has(e)?l=this[sr][K3].get(e):l=this.compileValidationSchema(e,n)),l(t)}}});eg.exports=Zm;eg.exports.buildRequest=d4e});var r8=C((BTe,Fk)=>{"use strict";var{kFourOhFourContext:m4e,kReplySerializerDefault:g4e,kSchemaErrorFormatter:y4e,kErrorHandler:v4e,kChildLoggerFactory:_4e,kOptions:E4e,kReply:b4e,kRequest:T4e,kBodyLimit:S4e,kLogLevel:x4e,kContentTypeParser:A4e,kRouteByFastify:w4e,kRequestCacheValidateFns:R4e,kReplyCacheSerializeFns:O4e,kPublicRouteContext:N4e}=Dr();function I4e({schema:t,handler:e,config:n,requestIdLogLabel:r,childLoggerFactory:l,errorHandler:i,bodyLimit:s,logLevel:a,logSerializers:o,attachValidation:f,validatorCompiler:c,serializerCompiler:p,replySerializer:m,schemaErrorFormatter:h,exposeHeadRoute:g,prefixTrailingSlash:_,server:S,isFastify:T}){this.schema=t,this.handler=e,this.Reply=S[b4e],this.Request=S[T4e],this.contentTypeParser=S[A4e],this.onRequest=null,this.onSend=null,this.onError=null,this.onTimeout=null,this.preHandler=null,this.onResponse=null,this.preSerialization=null,this.onRequestAbort=null,this.config=n,this.errorHandler=i||S[v4e],this.requestIdLogLabel=r||S[E4e].requestIdLogLabel,this.childLoggerFactory=l||S[_4e],this._middie=null,this._parserOptions={limit:s||S[S4e]},this.exposeHeadRoute=g,this.prefixTrailingSlash=_,this.logLevel=a||S[x4e],this.logSerializers=o,this[m4e]=null,this.attachValidation=f,this[g4e]=m,this.schemaErrorFormatter=h||S[y4e]||k4e,this[w4e]=T,this[R4e]=null,this[O4e]=null,this.validatorCompiler=c||null,this.serializerCompiler=p||null,this[N4e]=C4e(this),this.server=S}function C4e(t){return Object.create(null,{schema:{enumerable:!0,get(){return t.schema}},config:{enumerable:!0,get(){return t.config}}})}function k4e(t,e){let n="",r=", ";for(var l=0;l!==t.length;++l){let i=t[l];n+=e+(i.instancePath||"")+" "+i.message+r}return new Error(n.slice(0,-r.length))}Fk.exports=I4e});var tg=C((HTe,Mk)=>{"use strict";Mk.exports={supportedMethods:["DELETE","GET","HEAD","PATCH","POST","PUT","OPTIONS","PROPFIND","PROPPATCH","MKCOL","COPY","MOVE","LOCK","UNLOCK","TRACE","SEARCH"]}});var sg=C((qTe,Bk)=>{"use strict";var{kReply:ng,kRequest:rg,kState:P4e,kHasBeenDecorated:D4e}=Dr(),{FST_ERR_DEC_ALREADY_PRESENT:$k,FST_ERR_DEC_MISSING_DEPENDENCY:L4e,FST_ERR_DEC_AFTER_START:F4e,FST_ERR_DEC_DEPENDENCY_INVALID_TYPE:M4e}=il(),{FSTDEP006:$4e}=e3();function j4e(t,e,n,r){if(Object.prototype.hasOwnProperty.call(t,e))throw new $k(e);lg(t,e,r),n&&(typeof n.getter=="function"||typeof n.setter=="function")?Object.defineProperty(t,e,{get:n.getter,set:n.setter}):t[e]=n}function jk(t,e,n,r){let l=t.prototype;if(Object.prototype.hasOwnProperty.call(l,e)||i8(t,e))throw new $k(e);t[D4e]=!0,lg(t,e,r),n&&(typeof n.getter=="function"||typeof n.setter=="function")?Object.defineProperty(l,e,{get:n.getter,set:n.setter}):typeof n=="function"?l[e]=n:t.props.push({key:e,value:n})}function Uk(t,e){typeof e=="object"&&e&&!(typeof e.getter=="function"||typeof e.setter=="function")&&$4e(t)}function U4e(t,e,n){return ig(this,t),j4e(this,t,e,n),this}function l8(t,e){return e?e in t||t.prototype&&e in t.prototype||i8(t,e):t in this}function i8(t,e){return t.props?t.props.find(({key:n})=>n===e):!1}function B4e(t){return t&&i8(this[rg],t)?!0:l8(this[rg].prototype,t)}function H4e(t){return t&&i8(this[ng],t)?!0:l8(this[ng].prototype,t)}function lg(t,e,n){if(n!=null){if(!Array.isArray(n))throw new M4e(e);for(var r=0;r!==n.length;++r)if(!l8(t,n[r]))throw new L4e(n[r])}}function q4e(t,e,n){return ig(this,t),Uk(t,e),jk(this[ng],t,e,n),this}function V4e(t,e,n){return ig(this,t),Uk(t,e),jk(this[rg],t,e,n),this}function ig(t,e){if(t[P4e].started)throw new F4e(e)}Bk.exports={add:U4e,exist:l8,existRequest:B4e,existReply:H4e,dependencies:lg,decorateReply:q4e,decorateRequest:V4e}});var qk=C(vi=>{"use strict";var ag=class{constructor(e=1e3,n=0){if(isNaN(e)||e<0)throw new Error("Invalid max value");if(isNaN(n)||n<0)throw new Error("Invalid ttl value");this.first=null,this.items=new Map,this.last=null,this.max=e,this.ttl=n}get size(){return this.items.size}clear(){this.items=new Map,this.first=null,this.last=null}delete(e){if(this.items.has(e)){let n=this.items.get(e);this.items.delete(e),n.prev!==null&&(n.prev.next=n.next),n.next!==null&&(n.next.prev=n.prev),this.first===n&&(this.first=n.next),this.last===n&&(this.last=n.prev)}}deleteMany(e){for(var n=0;n0){let e=this.first;this.items.delete(e.key),this.size===0?(this.first=null,this.last=null):(this.first=e.next,this.first.prev=null)}}expiresAt(e){if(this.items.has(e))return this.items.get(e).expiry}get(e){if(this.items.has(e)){let n=this.items.get(e);if(this.ttl>0&&n.expiry<=Date.now()){this.delete(e);return}return n.value}}getMany(e){let n=[];for(var r=0;r0?Date.now()+this.ttl:this.ttl;return}this.max>0&&this.size===this.max&&this.evict();let r={expiry:this.ttl>0?Date.now()+this.ttl:this.ttl,key:e,prev:this.last,next:null,value:n};this.items.set(e,r),this.size===1?this.first=r:this.last.next=r,this.last=r}},og=class{constructor(e=1e3,n=0){if(isNaN(e)||e<0)throw new Error("Invalid max value");if(isNaN(n)||n<0)throw new Error("Invalid ttl value");this.first=null,this.items=new Map,this.last=null,this.max=e,this.ttl=n}get size(){return this.items.size}bumpLru(e){if(this.last===e)return;let n=this.last,r=e.next,l=e.prev;this.first===e&&(this.first=r),e.next=null,e.prev=n,n.next=e,l!==null&&(l.next=r),r!==null&&(r.prev=l),this.last=e}clear(){this.items=new Map,this.first=null,this.last=null}delete(e){if(this.items.has(e)){let n=this.items.get(e);this.items.delete(e),n.prev!==null&&(n.prev.next=n.next),n.next!==null&&(n.next.prev=n.prev),this.first===n&&(this.first=n.next),this.last===n&&(this.last=n.prev)}}deleteMany(e){for(var n=0;n0){let e=this.first;this.items.delete(e.key),this.size===0?(this.first=null,this.last=null):(this.first=e.next,this.first.prev=null)}}expiresAt(e){if(this.items.has(e))return this.items.get(e).expiry}get(e){if(this.items.has(e)){let n=this.items.get(e);if(this.ttl>0&&n.expiry<=Date.now()){this.delete(e);return}return this.bumpLru(n),n.value}}getMany(e){let n=[];for(var r=0;r0?Date.now()+this.ttl:this.ttl,this.last!==l&&this.bumpLru(l);return}this.max>0&&this.size===this.max&&this.evict();let r={expiry:this.ttl>0?Date.now()+this.ttl:this.ttl,key:e,prev:this.last,next:null,value:n};this.items.set(e,r),this.size===1?this.first=r:this.last.next=r,this.last=r}},U1=class{constructor(e=1e3,n=0){if(isNaN(e)||e<0)throw new Error("Invalid max value");if(isNaN(n)||n<0)throw new Error("Invalid ttl value");this.first=null,this.items=Object.create(null),this.last=null,this.size=0,this.max=e,this.ttl=n}bumpLru(e){if(this.last===e)return;let n=this.last,r=e.next,l=e.prev;this.first===e&&(this.first=r),e.next=null,e.prev=n,n.next=e,l!==null&&(l.next=r),r!==null&&(r.prev=l),this.last=e}clear(){this.items=Object.create(null),this.first=null,this.last=null,this.size=0}delete(e){if(Object.prototype.hasOwnProperty.call(this.items,e)){let n=this.items[e];delete this.items[e],this.size--,n.prev!==null&&(n.prev.next=n.next),n.next!==null&&(n.next.prev=n.prev),this.first===n&&(this.first=n.next),this.last===n&&(this.last=n.prev)}}deleteMany(e){for(var n=0;n0){let e=this.first;delete this.items[e.key],--this.size===0?(this.first=null,this.last=null):(this.first=e.next,this.first.prev=null)}}expiresAt(e){if(Object.prototype.hasOwnProperty.call(this.items,e))return this.items[e].expiry}get(e){if(Object.prototype.hasOwnProperty.call(this.items,e)){let n=this.items[e];if(this.ttl>0&&n.expiry<=Date.now()){this.delete(e);return}return this.bumpLru(n),n.value}}getMany(e){let n=[];for(var r=0;r0?Date.now()+this.ttl:this.ttl,this.last!==l&&this.bumpLru(l);return}this.max>0&&this.size===this.max&&this.evict();let r={expiry:this.ttl>0?Date.now()+this.ttl:this.ttl,key:e,prev:this.last,next:null,value:n};this.items[e]=r,++this.size===1?this.first=r:this.last.next=r,this.last=r}},s8=class{constructor(){this.records={}}initForCache(e,n){this.records[e]={[n]:{cacheSize:0,hits:0,falsyHits:0,emptyHits:0,misses:0,expirations:0,evictions:0,invalidateOne:0,invalidateAll:0,sets:0}}}resetForCache(e){for(let n of Object.keys(this.records[e]))this.records[e][n]={cacheSize:0,hits:0,falsyHits:0,emptyHits:0,misses:0,expirations:0,evictions:0,invalidateOne:0,invalidateAll:0,sets:0}}getStatistics(){return this.records}};function Hk(t){return`${t.getFullYear()}-${(t.getMonth()+1).toString().padStart(2,"0")}-${t.getDate().toString().padStart(2,"0")}`}var ug=class{constructor(e,n,r){this.cacheId=e,this.statisticTtlInHours=n,this.collectionStart=new Date,this.currentTimeStamp=Hk(this.collectionStart),this.records=r||new s8,this.records.initForCache(this.cacheId,this.currentTimeStamp)}get currentRecord(){return this.records.records[this.cacheId][this.currentTimeStamp]||(this.records.records[this.cacheId][this.currentTimeStamp]={cacheSize:0,hits:0,falsyHits:0,emptyHits:0,misses:0,expirations:0,evictions:0,sets:0,invalidateOne:0,invalidateAll:0}),this.records.records[this.cacheId][this.currentTimeStamp]}hoursPassed(){return(Date.now()-this.collectionStart)/1e3/60/60}addHit(){this.archiveIfNeeded(),this.currentRecord.hits++}addFalsyHit(){this.archiveIfNeeded(),this.currentRecord.falsyHits++}addEmptyHit(){this.archiveIfNeeded(),this.currentRecord.emptyHits++}addMiss(){this.archiveIfNeeded(),this.currentRecord.misses++}addEviction(){this.archiveIfNeeded(),this.currentRecord.evictions++}setCacheSize(e){this.archiveIfNeeded(),this.currentRecord.cacheSize=e}addExpiration(){this.archiveIfNeeded(),this.currentRecord.expirations++}addSet(){this.archiveIfNeeded(),this.currentRecord.sets++}addInvalidateOne(){this.archiveIfNeeded(),this.currentRecord.invalidateOne++}addInvalidateAll(){this.archiveIfNeeded(),this.currentRecord.invalidateAll++}getStatistics(){return this.records.getStatistics()}archiveIfNeeded(){this.hoursPassed()>=this.statisticTtlInHours&&(this.collectionStart=new Date,this.currentTimeStamp=Hk(this.collectionStart),this.records.initForCache(this.cacheId,this.currentTimeStamp))}},a8=class extends U1{constructor(e,n,r,l,i){if(super(e||1e3,n||0),!r)throw new Error("Cache id is mandatory");this.hitStatistics=new ug(r,i!==void 0?i:24,l)}getStatistics(){return this.hitStatistics.getStatistics()}set(e,n){super.set(e,n),this.hitStatistics.addSet(),this.hitStatistics.setCacheSize(this.size)}evict(){super.evict(),this.hitStatistics.addEviction(),this.hitStatistics.setCacheSize(this.size)}delete(e,n=!1){super.delete(e),n||this.hitStatistics.addInvalidateOne(),this.hitStatistics.setCacheSize(this.size)}clear(){super.clear(),this.hitStatistics.addInvalidateAll(),this.hitStatistics.setCacheSize(this.size)}get(e){if(Object.prototype.hasOwnProperty.call(this.items,e)){let n=this.items[e];if(this.ttl>0&&n.expiry<=Date.now()){this.delete(e,!0),this.hitStatistics.addExpiration();return}return this.bumpLru(n),n.value||this.hitStatistics.addFalsyHit(),(n.value===void 0||n.value===null||n.value==="")&&this.hitStatistics.addEmptyHit(),this.hitStatistics.addHit(),n.value}this.hitStatistics.addMiss()}},o8=class{constructor(e=1e3,n=0){if(isNaN(e)||e<0)throw new Error("Invalid max value");if(isNaN(n)||n<0)throw new Error("Invalid ttl value");this.first=null,this.items=Object.create(null),this.last=null,this.size=0,this.max=e,this.ttl=n}clear(){this.items=Object.create(null),this.first=null,this.last=null,this.size=0}delete(e){if(Object.prototype.hasOwnProperty.call(this.items,e)){let n=this.items[e];delete this.items[e],this.size--,n.prev!==null&&(n.prev.next=n.next),n.next!==null&&(n.next.prev=n.prev),this.first===n&&(this.first=n.next),this.last===n&&(this.last=n.prev)}}deleteMany(e){for(var n=0;n0){let e=this.first;delete this.items[e.key],--this.size===0?(this.first=null,this.last=null):(this.first=e.next,this.first.prev=null)}}expiresAt(e){if(Object.prototype.hasOwnProperty.call(this.items,e))return this.items[e].expiry}get(e){if(Object.prototype.hasOwnProperty.call(this.items,e)){let n=this.items[e];if(this.ttl>0&&n.expiry<=Date.now()){this.delete(e);return}return n.value}}getMany(e){let n=[];for(var r=0;r0?Date.now()+this.ttl:this.ttl;return}this.max>0&&this.size===this.max&&this.evict();let r={expiry:this.ttl>0?Date.now()+this.ttl:this.ttl,key:e,prev:this.last,next:null,value:n};this.items[e]=r,++this.size===1?this.first=r:this.last.next=r,this.last=r}};vi.Fifo=o8;vi.FifoMap=ag;vi.FifoObject=o8;vi.HitStatisticsRecord=s8;vi.Lru=U1;vi.LruHitStatistics=a8;vi.LruMap=og;vi.LruObject=U1;vi.LruObjectHitStatistics=a8});var Xk=C((zTe,B1)=>{"use strict";var f8=function(){};f8.prototype=Object.create(null);var u8=/; *([!#$%&'*+.^\w`|~-]+)=("(?:[\v\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\v\u0020-\u00ff])*"|[!#$%&'*+.^\w`|~-]+) */gu,c8=/\\([\v\u0020-\u00ff])/gu,Vk=/^[!#$%&'*+.^\w|~-]+\/[!#$%&'*+.^\w|~-]+$/u,wa={type:"",parameters:new f8};Object.freeze(wa.parameters);Object.freeze(wa);function zk(t){if(typeof t!="string")throw new TypeError("argument header is required and must be a string");let e=t.indexOf(";"),n=e!==-1?t.slice(0,e).trim():t.trim();if(Vk.test(n)===!1)throw new TypeError("invalid media type");let r={type:n.toLowerCase(),parameters:new f8};if(e===-1)return r;let l,i,s;for(u8.lastIndex=e;i=u8.exec(t);){if(i.index!==e)throw new TypeError("invalid parameter format");e+=i[0].length,l=i[1].toLowerCase(),s=i[2],s[0]==='"'&&(s=s.slice(1,s.length-1),c8.test(s)&&(s=s.replace(c8,"$1"))),r.parameters[l]=s}if(e!==t.length)throw new TypeError("invalid parameter format");return r}function Gk(t){if(typeof t!="string")return wa;let e=t.indexOf(";"),n=e!==-1?t.slice(0,e).trim():t.trim();if(Vk.test(n)===!1)return wa;let r={type:n.toLowerCase(),parameters:new f8};if(e===-1)return r;let l,i,s;for(u8.lastIndex=e;i=u8.exec(t);){if(i.index!==e)return wa;e+=i[0].length,l=i[1].toLowerCase(),s=i[2],s[0]==='"'&&(s=s.slice(1,s.length-1),c8.test(s)&&(s=s.replace(c8,"$1"))),r.parameters[l]=s}return e!==t.length?wa:r}B1.exports.default={parse:zk,safeParse:Gk};B1.exports.parse=zk;B1.exports.safeParse=Gk;B1.exports.defaultContentType=wa});var Qk=C((GTe,iu)=>{"use strict";var z4e=typeof Buffer<"u",Wk=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,Kk=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function Yk(t,e,n){n==null&&e!==null&&typeof e=="object"&&(n=e,e=void 0),z4e&&Buffer.isBuffer(t)&&(t=t.toString()),t&&t.charCodeAt(0)===65279&&(t=t.slice(1));let r=JSON.parse(t,e);if(r===null||typeof r!="object")return r;let l=n&&n.protoAction||"error",i=n&&n.constructorAction||"error";if(l==="ignore"&&i==="ignore")return r;if(l!=="ignore"&&i!=="ignore"){if(Wk.test(t)===!1&&Kk.test(t)===!1)return r}else if(l!=="ignore"&&i==="ignore"){if(Wk.test(t)===!1)return r}else if(Kk.test(t)===!1)return r;return Jk(r,{protoAction:l,constructorAction:i,safe:n&&n.safe})}function Jk(t,{protoAction:e="error",constructorAction:n="error",safe:r}={}){let l=[t];for(;l.length;){let i=l;l=[];for(let s of i){if(e!=="ignore"&&Object.prototype.hasOwnProperty.call(s,"__proto__")){if(r===!0)return null;if(e==="error")throw new SyntaxError("Object contains forbidden prototype property");delete s.__proto__}if(n!=="ignore"&&Object.prototype.hasOwnProperty.call(s,"constructor")&&Object.prototype.hasOwnProperty.call(s.constructor,"prototype")){if(r===!0)return null;if(n==="error")throw new SyntaxError("Object contains forbidden prototype property");delete s.constructor}for(let a in s){let o=s[a];o&&typeof o=="object"&&l.push(o)}}}return t}function cg(t,e,n){let r=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return Yk(t,e,n)}finally{Error.stackTraceLimit=r}}function G4e(t,e){let n=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return Yk(t,e,{safe:!0})}catch{return null}finally{Error.stackTraceLimit=n}}iu.exports=cg;iu.exports.default=cg;iu.exports.parse=cg;iu.exports.safeParse=G4e;iu.exports.scan=Jk});var mg=C((XTe,q1)=>{"use strict";var{AsyncResource:X4e}=require("node:async_hooks"),{Fifo:eP}=qk(),{safeParse:tP,defaultContentType:W4e}=Xk(),K4e=Qk(),{kDefaultJsonParse:H1,kContentTypeParser:su,kBodyLimit:Y4e,kRequestPayloadStream:nP,kState:pg,kTestInternals:J4e,kReplyIsError:rP,kRouteContext:Q4e}=Dr(),{FST_ERR_CTP_INVALID_TYPE:lP,FST_ERR_CTP_EMPTY_TYPE:Z4e,FST_ERR_CTP_ALREADY_PRESENT:e1e,FST_ERR_CTP_INVALID_HANDLER:t1e,FST_ERR_CTP_INVALID_PARSE_TYPE:n1e,FST_ERR_CTP_BODY_TOO_LARGE:Zk,FST_ERR_CTP_INVALID_MEDIA_TYPE:r1e,FST_ERR_CTP_INVALID_CONTENT_LENGTH:l1e,FST_ERR_CTP_EMPTY_JSON_BODY:i1e,FST_ERR_CTP_INSTANCE_ALREADY_STARTED:dg}=il();function c3(t,e,n){this[H1]=sP(e,n),this.customParsers=new Map,this.customParsers.set("application/json",new fg(!0,!1,t,this[H1])),this.customParsers.set("text/plain",new fg(!0,!1,t,hg)),this.parserList=[new p8("application/json"),new p8("text/plain")],this.parserRegExpList=[],this.cache=new eP(100)}c3.prototype.add=function(t,e,n){let r=typeof t=="string";if(!r&&!(t instanceof RegExp))throw new lP;if(r&&t.length===0)throw new Z4e;if(typeof n!="function")throw new t1e;if(this.existingParser(t))throw new e1e(t);if(e.parseAs!==void 0&&e.parseAs!=="string"&&e.parseAs!=="buffer")throw new n1e(e.parseAs);let l=new fg(e.parseAs==="string",e.parseAs==="buffer",e.bodyLimit,n);r&&t==="*"?this.customParsers.set("",l):(r?this.parserList.unshift(new p8(t)):(t.isEssence=t.source.indexOf(";")===-1,this.parserRegExpList.unshift(t)),this.customParsers.set(t.toString(),l))};c3.prototype.hasParser=function(t){return this.customParsers.has(typeof t=="string"?t:t.toString())};c3.prototype.existingParser=function(t){return t==="application/json"&&this.customParsers.has(t)?this.customParsers.get(t).fn!==this[H1]:t==="text/plain"&&this.customParsers.has(t)?this.customParsers.get(t).fn!==hg:this.hasParser(t)};c3.prototype.getParser=function(t){if(this.hasParser(t))return this.customParsers.get(t);let e=this.cache.get(t);if(e!==void 0)return e;let n=tP(t);if(n===W4e)return this.customParsers.get("");for(var r=0;r!==this.parserList.length;++r){let i=this.parserList[r];if(f1e(n,i)){let s=this.customParsers.get(i.name);return this.cache.set(t,s),s}}for(var l=0;l!==this.parserRegExpList.length;++l){let i=this.parserRegExpList[l];if(p1e(t,n.type,i)){let s=this.customParsers.get(i.toString());return this.cache.set(t,s),s}}return this.customParsers.get("")};c3.prototype.removeAll=function(){this.customParsers=new Map,this.parserRegExpList=[],this.parserList=[],this.cache=new eP(100)};c3.prototype.remove=function(t){if(!(typeof t=="string"||t instanceof RegExp))throw new lP;let e=this.customParsers.delete(t.toString()),n=typeof t=="string"?this.parserList:this.parserRegExpList,r=n.findIndex(l=>l.toString()===t.toString());return r>-1&&n.splice(r,1),e||r>-1};c3.prototype.run=function(t,e,n,r){let l=this.getParser(t);if(l===void 0){n.is404?e(n,r):r.send(new r1e(t||void 0));return}let i=new X4e("content-type-parser:run",n);if(l.asString===!0||l.asBuffer===!0)iP(n,r,r[Q4e]._parserOptions,l,s);else{let a=l.fn(n,n[nP],s);a&&typeof a.then=="function"&&a.then(o=>s(null,o),s)}function s(a,o){i.runInAsyncScope(()=>{i.emitDestroy(),a?(r[rP]=!0,r.send(a)):(n.body=o,e(n,r))})}};function iP(t,e,n,r,l){let i=r.asString,s=n.limit===null?r.bodyLimit:n.limit,a=t.headers["content-length"]===void 0?NaN:Number(t.headers["content-length"]);if(a>s){e.header("connection","close"),e.send(new Zk);return}let o=0,f=i===!0?"":[],c=t[nP]||t.raw;i===!0&&c.setEncoding("utf8"),c.on("data",p),c.on("end",m),c.on("error",m),c.resume();function p(h){o+=h.length;let{receivedEncodedLength:g=0}=c;if(o>s||g>s){c.removeListener("data",p),c.removeListener("end",m),c.removeListener("error",m),e.send(new Zk);return}i===!0?f+=h:f.push(h)}function m(h){if(c.removeListener("data",p),c.removeListener("end",m),c.removeListener("error",m),h!==void 0){typeof h.statusCode=="number"&&h.statusCode>=400||(h.statusCode=400),e[rP]=!0,e.code(h.statusCode).send(h);return}if(i===!0&&(o=Buffer.byteLength(f)),!Number.isNaN(a)&&(c.receivedEncodedLength||o)!==a){e.header("connection","close"),e.send(new l1e);return}i===!1&&(f=Buffer.concat(f));let g=r.fn(t,f,l);g&&typeof g.then=="function"&&g.then(_=>l(null,_),l)}}function sP(t,e){return n;function n(r,l,i){if(l===""||l==null||Buffer.isBuffer(l)&&l.length===0)return i(new i1e,void 0);let s;try{s=K4e.parse(l,{protoAction:t,constructorAction:e})}catch(a){return a.statusCode=400,i(a,void 0)}i(null,s)}}function hg(t,e,n){n(null,e)}function fg(t,e,n,r){this.asString=t,this.asBuffer=e,this.bodyLimit=n,this.fn=r}function s1e(t){let e=new c3;return e[H1]=t[H1],e.customParsers=new Map(t.customParsers.entries()),e.parserList=t.parserList.slice(),e.parserRegExpList=t.parserRegExpList.slice(),e}function a1e(t,e,n){if(this[pg].started)throw new dg("addContentTypeParser");return typeof e=="function"&&(n=e,e={}),e||(e={}),e.bodyLimit||(e.bodyLimit=this[Y4e]),Array.isArray(t)?t.forEach(r=>this[su].add(r,e,n)):this[su].add(t,e,n),this}function o1e(t){return this[su].hasParser(t)}function u1e(t){if(this[pg].started)throw new dg("removeContentTypeParser");if(Array.isArray(t))for(let e of t)this[su].remove(e);else this[su].remove(t)}function c1e(){if(this[pg].started)throw new dg("removeAllContentTypeParsers");this[su].removeAll()}function f1e(t,e){if(e.isEssence)return t.type.indexOf(e)!==-1;if(t.type.indexOf(e.type)===-1)return!1;for(let n of e.parameterKeys)if(!(n in t.parameters)||t.parameters[n]!==e.parameters[n])return!1;return!0}function p1e(t,e,n){return n.isEssence?n.test(e):n.test(t)}function p8(t){this.name=t;let e=tP(t);if(this.isEssence=t.indexOf(";")===-1,this.isEssence===!1&&e.type===""){let n=t.split(";",1)[0];this.type=n===""?t:n}else this.type=e.type;this.parameters=e.parameters,this.parameterKeys=Object.keys(e.parameters)}p8.prototype.toString=function(){return this.name};q1.exports=c3;q1.exports.helpers={buildContentTypeParser:s1e,addContentTypeParser:a1e,hasContentTypeParser:o1e,removeContentTypeParser:u1e,removeAllContentTypeParsers:c1e};q1.exports.defaultParsers={getDefaultJsonParser:sP,defaultTextParser:hg};q1.exports[J4e]={rawBody:iP}});var aP=C((WTe,d8)=>{"use strict";var d1e=Object.getPrototypeOf({});function gg(t){function e(T){return T!=="constructor"&&T!=="prototype"&&T!=="__proto__"}function n(T){let x=0,v=T.length,b=new Array(v);for(x=0;xtypeof T!="object"||T===null||T instanceof RegExp||T instanceof Date||T instanceof Buffer:T=>typeof T!="object"||T===null||T instanceof RegExp||T instanceof Date,m=t&&typeof t.mergeArray=="function"?t.mergeArray({clone:h,deepmerge:_,getKeys:a,isMergeableObject:f}):l;function h(T){return f(T)?Array.isArray(T)?n(T):r(T):T}function g(T,x){let v={},b=a(T),w=a(x),N,O,k;for(N=0,O=b.length;N{"use strict";var oP=qo(),h1e=Symbol.for("json-schema-ref"),yg=class{#e;#t;#r;#l;#i;constructor(e={}){this.#e={},this.#t={},this.#r=e.insertRefSymbol??!1,this.#l=e.allowEqualDuplicates??!0,this.#i=e.cloneSchemaWithoutRefs??!1}addSchema(e,n){e.$id!==void 0&&e.$id.charAt(0)!=="#"?n=e.$id:this.#u(e,n),this.#a(e,n)}getSchema(e,n="#"){let r=this.#e[e];if(r===void 0)throw new Error(`Cannot resolve ref "${e}${n}". Schema with id "${e}" is not found.`);return r.anchors[n]!==void 0?r.anchors[n]:uP(r.schema,n)}hasSchema(e){return this.#e[e]!==void 0}getSchemaRefs(e){let n=this.#e[e];if(n===void 0)throw new Error(`Schema with id "${e}" is not found.`);return n.refs}getSchemaDependencies(e,n={}){let r=this.#e[e];for(let l of r.refs){let i=l.schemaId;n[i]===void 0&&(n[i]=this.getSchema(i),this.getSchemaDependencies(i,n))}return n}derefSchema(e){if(this.#t[e]!==void 0)return;let n=this.#e[e];if(n===void 0)throw new Error(`Schema with id "${e}" is not found.`);!this.#i&&n.refs.length===0&&(this.#t[e]={schema:n.schema,anchors:n.anchors});let r=[];this.#n(n.schema,e,r);let l=this.getSchemaDependencies(e);for(let i in l){let s=l[i];this.#n(s,i,r)}for(let i of r){let{refSchemaId:s,refJsonPointer:a}=this.#s(i.ref,i.sourceSchemaId),o=this.getDerefSchema(s,a);if(o===null)throw new Error(`Cannot resolve ref "${i.ref}". Ref "${a}" is not found in schema "${s}".`);i.targetSchema=o,i.targetSchemaId=s}for(let i of r)this.#o(i,r)}getDerefSchema(e,n="#"){let r=this.#t[e];return r===void 0&&(this.derefSchema(e),r=this.#t[e]),r.anchors[n]!==void 0?r.anchors[n]:uP(r.schema,n)}#s(e,n){let r=e.indexOf("#");return r===-1?{refSchemaId:e,refJsonPointer:"#"}:r===0?{refSchemaId:n,refJsonPointer:e}:{refSchemaId:e.slice(0,r),refJsonPointer:e.slice(r)}}#a(e,n){let r=e.$id;r!==void 0&&typeof r=="string"&&(r.charAt(0)==="#"?this.#c(e,n,r):(this.#u(e,r),n=r));let l=e.$ref;if(l!==void 0&&typeof l=="string"){let{refSchemaId:i,refJsonPointer:s}=this.#s(l,n);this.#e[n].refs.push({schemaId:i,jsonPointer:s})}for(let i in e)typeof e[i]=="object"&&e[i]!==null&&this.#a(e[i],n)}#n(e,n,r=[]){let l=Array.isArray(e)?[...e]:{...e},i=l.$id;i!==void 0&&typeof i=="string"&&(i.charAt(0)==="#"?this.#p(l,n,i):(this.#f(l,i),n=i)),l.$ref!==void 0&&r.push({ref:l.$ref,sourceSchemaId:n,sourceSchema:l});for(let s in l){let a=l[s];typeof a=="object"&&a!==null&&(l[s]=this.#n(a,n,r))}return l}#o(e,n){let{sourceSchema:r,targetSchema:l}=e;if(r.$ref){if(this.#r&&(r[h1e]=r.$ref),delete r.$ref,l.$ref){let i=n.find(s=>s.sourceSchema===l);this.#o(i,n)}for(let i in l)if(i!=="$id"){if(r[i]!==void 0){if(oP(r[i],l[i]))continue;throw new Error(`Cannot resolve ref "${e.ref}". Property "${i}" is already exist in schema "${e.sourceSchemaId}".`)}r[i]=l[i]}e.isResolved=!0}}#u(e,n){let r=this.#e[n];if(r!==void 0){if(this.#l&&oP(e,r.schema))return;throw new Error(`There is already another schema with id "${n}".`)}this.#e[n]={schema:e,anchors:{},refs:[]}}#c(e,n,r){let{anchors:l}=this.#e[n];if(l[r]!==void 0)throw new Error(`There is already another anchor "${r}" in a schema "${n}".`);l[r]=e}#f(e,n){this.#t[n]===void 0&&(this.#t[n]={schema:e,anchors:{}})}#p(e,n,r){let{anchors:l}=this.#t[n];l[r]=e}};function uP(t,e){let n=e.split("/"),r=t;for(let l of n)if(!(l===""||l==="#")){if(typeof r!="object"||r===null)return null;r=r[l]}return r??null}cP.exports={RefResolver:yg}});var gP=C((YTe,_g)=>{"use strict";_g.exports=Se;_g.exports.default=Se;var m1e={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0},pP={enum:["array","boolean","integer","null","number","object","string"]},dP=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,g1e=k6().fullFormats.uri,hP=k6().fullFormats.regex;function E2(t,{instancePath:e="",parentData:n,parentDataProperty:r,rootData:l=t}={}){let i=null,s=0,a=s;return typeof t=="number"&&!(t%1)&&!isNaN(t)&&isFinite(t)?s===a&&typeof t=="number"&&isFinite(t)&&(t<0||isNaN(t))?(E2.errors=[{instancePath:e,schemaPath:"#/definitions/nonNegativeInteger/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"}],!1):(E2.errors=i,s===0):(E2.errors=[{instancePath:e,schemaPath:"#/definitions/nonNegativeInteger/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1)}var vg={validate:Se};function xl(t,{instancePath:e="",parentData:n,parentDataProperty:r,rootData:l=t}={}){let i=null,s=0;if(s===0)if(Array.isArray(t)){if(t.length<1)return xl.errors=[{instancePath:e,schemaPath:"#/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"}],!1;{var a=!0;let o=t.length;for(let f=0;f",limit:0},message:"must be > 0"}],!1}else return Se.errors=[{instancePath:e+"/multipleOf",schemaPath:"#/properties/multipleOf/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var a=b===s}else var a=!0;if(a){if(t.maximum!==void 0){let v=t.maximum,b=s;if(!(typeof v=="number"&&isFinite(v)))return Se.errors=[{instancePath:e+"/maximum",schemaPath:"#/properties/maximum/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var a=b===s}else var a=!0;if(a){if(t.exclusiveMaximum!==void 0){let v=t.exclusiveMaximum,b=s;if(!(typeof v=="number"&&isFinite(v)))return Se.errors=[{instancePath:e+"/exclusiveMaximum",schemaPath:"#/properties/exclusiveMaximum/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var a=b===s}else var a=!0;if(a){if(t.minimum!==void 0){let v=t.minimum,b=s;if(!(typeof v=="number"&&isFinite(v)))return Se.errors=[{instancePath:e+"/minimum",schemaPath:"#/properties/minimum/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var a=b===s}else var a=!0;if(a){if(t.exclusiveMinimum!==void 0){let v=t.exclusiveMinimum,b=s;if(!(typeof v=="number"&&isFinite(v)))return Se.errors=[{instancePath:e+"/exclusiveMinimum",schemaPath:"#/properties/exclusiveMinimum/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var a=b===s}else var a=!0;if(a){if(t.maxLength!==void 0){let v=t.maxLength,b=s,w=s;if(!(typeof v=="number"&&!(v%1)&&!isNaN(v)&&isFinite(v)))return Se.errors=[{instancePath:e+"/maxLength",schemaPath:"#/definitions/nonNegativeInteger/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;if(s===w&&typeof v=="number"&&isFinite(v)&&(v<0||isNaN(v)))return Se.errors=[{instancePath:e+"/maxLength",schemaPath:"#/definitions/nonNegativeInteger/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"}],!1;var a=b===s}else var a=!0;if(a){if(t.minLength!==void 0){let v=s;E2(t.minLength,{instancePath:e+"/minLength",parentData:t,parentDataProperty:"minLength",rootData:l})||(i=i===null?E2.errors:i.concat(E2.errors),s=i.length);var a=v===s}else var a=!0;if(a){if(t.pattern!==void 0){let v=t.pattern,b=s;if(s===b&&s===b)if(typeof v=="string"){if(!hP(v))return Se.errors=[{instancePath:e+"/pattern",schemaPath:"#/properties/pattern/format",keyword:"format",params:{format:"regex"},message:'must match format "regex"'}],!1}else return Se.errors=[{instancePath:e+"/pattern",schemaPath:"#/properties/pattern/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var a=b===s}else var a=!0;if(a){if(t.additionalItems!==void 0){let v=s;Se(t.additionalItems,{instancePath:e+"/additionalItems",parentData:t,parentDataProperty:"additionalItems",rootData:l})||(i=i===null?Se.errors:i.concat(Se.errors),s=i.length);var a=v===s}else var a=!0;if(a){if(t.items!==void 0){let v=t.items,b=s,w=s,N=!1,O=s;Se(v,{instancePath:e+"/items",parentData:t,parentDataProperty:"items",rootData:l})||(i=i===null?Se.errors:i.concat(Se.errors),s=i.length);var o=O===s;if(N=N||o,!N){let $=s;xl(v,{instancePath:e+"/items",parentData:t,parentDataProperty:"items",rootData:l})||(i=i===null?xl.errors:i.concat(xl.errors),s=i.length);var o=$===s;N=N||o}if(N)s=w,i!==null&&(w?i.length=w:i=null);else{let $={instancePath:e+"/items",schemaPath:"#/properties/items/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[$]:i.push($),s++,Se.errors=i,!1}var a=b===s}else var a=!0;if(a){if(t.maxItems!==void 0){let v=t.maxItems,b=s,w=s;if(!(typeof v=="number"&&!(v%1)&&!isNaN(v)&&isFinite(v)))return Se.errors=[{instancePath:e+"/maxItems",schemaPath:"#/definitions/nonNegativeInteger/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;if(s===w&&typeof v=="number"&&isFinite(v)&&(v<0||isNaN(v)))return Se.errors=[{instancePath:e+"/maxItems",schemaPath:"#/definitions/nonNegativeInteger/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"}],!1;var a=b===s}else var a=!0;if(a){if(t.minItems!==void 0){let v=s;E2(t.minItems,{instancePath:e+"/minItems",parentData:t,parentDataProperty:"minItems",rootData:l})||(i=i===null?E2.errors:i.concat(E2.errors),s=i.length);var a=v===s}else var a=!0;if(a){if(t.uniqueItems!==void 0){let v=s;if(typeof t.uniqueItems!="boolean")return Se.errors=[{instancePath:e+"/uniqueItems",schemaPath:"#/properties/uniqueItems/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var a=v===s}else var a=!0;if(a){if(t.contains!==void 0){let v=s;Se(t.contains,{instancePath:e+"/contains",parentData:t,parentDataProperty:"contains",rootData:l})||(i=i===null?Se.errors:i.concat(Se.errors),s=i.length);var a=v===s}else var a=!0;if(a){if(t.maxProperties!==void 0){let v=t.maxProperties,b=s,w=s;if(!(typeof v=="number"&&!(v%1)&&!isNaN(v)&&isFinite(v)))return Se.errors=[{instancePath:e+"/maxProperties",schemaPath:"#/definitions/nonNegativeInteger/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;if(s===w&&typeof v=="number"&&isFinite(v)&&(v<0||isNaN(v)))return Se.errors=[{instancePath:e+"/maxProperties",schemaPath:"#/definitions/nonNegativeInteger/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"}],!1;var a=b===s}else var a=!0;if(a){if(t.minProperties!==void 0){let v=s;E2(t.minProperties,{instancePath:e+"/minProperties",parentData:t,parentDataProperty:"minProperties",rootData:l})||(i=i===null?E2.errors:i.concat(E2.errors),s=i.length);var a=v===s}else var a=!0;if(a){if(t.required!==void 0){let v=t.required,b=s;if(s===s)if(Array.isArray(v)){var f=!0;let O=v.length;for(let k=0;k1){let L={};for(;k--;){let J=v[k];if(typeof J=="string"){if(typeof L[J]=="number"){return $=L[J],Se.errors=[{instancePath:e+"/required",schemaPath:"#/definitions/stringArray/uniqueItems",keyword:"uniqueItems",params:{i:k,j:$},message:"must NOT have duplicate items (items ## "+$+" and "+k+" are identical)"}],!1;break}L[J]=k}}}}}else return Se.errors=[{instancePath:e+"/required",schemaPath:"#/definitions/stringArray/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var a=b===s}else var a=!0;if(a){if(t.additionalProperties!==void 0){let v=s;Se(t.additionalProperties,{instancePath:e+"/additionalProperties",parentData:t,parentDataProperty:"additionalProperties",rootData:l})||(i=i===null?Se.errors:i.concat(Se.errors),s=i.length);var a=v===s}else var a=!0;if(a){if(t.definitions!==void 0){let v=t.definitions,b=s;if(s===b)if(v&&typeof v=="object"&&!Array.isArray(v))for(let N in v){let O=s;Se(v[N],{instancePath:e+"/definitions/"+N.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:v,parentDataProperty:N,rootData:l})||(i=i===null?Se.errors:i.concat(Se.errors),s=i.length);var c=O===s;if(!c)break}else return Se.errors=[{instancePath:e+"/definitions",schemaPath:"#/properties/definitions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var a=b===s}else var a=!0;if(a){if(t.properties!==void 0){let v=t.properties,b=s;if(s===b)if(v&&typeof v=="object"&&!Array.isArray(v))for(let N in v){let O=s;Se(v[N],{instancePath:e+"/properties/"+N.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:v,parentDataProperty:N,rootData:l})||(i=i===null?Se.errors:i.concat(Se.errors),s=i.length);var p=O===s;if(!p)break}else return Se.errors=[{instancePath:e+"/properties",schemaPath:"#/properties/properties/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var a=b===s}else var a=!0;if(a){if(t.patternProperties!==void 0){let v=t.patternProperties,b=s;if(s===b)if(v&&typeof v=="object"&&!Array.isArray(v)){for(let N in v){let O=s;if(s===O&&typeof N=="string"&&!hP(N)){let k={instancePath:e+"/patternProperties",schemaPath:"#/properties/patternProperties/propertyNames/format",keyword:"format",params:{format:"regex"},message:'must match format "regex"',propertyName:N};i===null?i=[k]:i.push(k),s++}var m=O===s;if(!m){let k={instancePath:e+"/patternProperties",schemaPath:"#/properties/patternProperties/propertyNames",keyword:"propertyNames",params:{propertyName:N},message:"property name must be valid"};return i===null?i=[k]:i.push(k),s++,Se.errors=i,!1;break}}if(m)for(let N in v){let O=s;Se(v[N],{instancePath:e+"/patternProperties/"+N.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:v,parentDataProperty:N,rootData:l})||(i=i===null?Se.errors:i.concat(Se.errors),s=i.length);var h=O===s;if(!h)break}}else return Se.errors=[{instancePath:e+"/patternProperties",schemaPath:"#/properties/patternProperties/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var a=b===s}else var a=!0;if(a){if(t.dependencies!==void 0){let v=t.dependencies,b=s;if(s===b)if(v&&typeof v=="object"&&!Array.isArray(v))for(let N in v){let O=v[N],k=s,$=s,L=!1,J=s;Se(O,{instancePath:e+"/dependencies/"+N.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:v,parentDataProperty:N,rootData:l})||(i=i===null?Se.errors:i.concat(Se.errors),s=i.length);var g=J===s;if(L=L||g,!L){let K=s;if(s===s)if(Array.isArray(O)){var _=!0;let Oe=O.length;for(let fe=0;fe1){let ge={};for(;fe--;){let H=O[fe];if(typeof H=="string"){if(typeof ge[H]=="number"){se=ge[H];let re={instancePath:e+"/dependencies/"+N.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/stringArray/uniqueItems",keyword:"uniqueItems",params:{i:fe,j:se},message:"must NOT have duplicate items (items ## "+se+" and "+fe+" are identical)"};i===null?i=[re]:i.push(re),s++;break}ge[H]=fe}}}}}else{let Oe={instancePath:e+"/dependencies/"+N.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/stringArray/type",keyword:"type",params:{type:"array"},message:"must be array"};i===null?i=[Oe]:i.push(Oe),s++}var g=K===s;L=L||g}if(L)s=$,i!==null&&($?i.length=$:i=null);else{let K={instancePath:e+"/dependencies/"+N.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/dependencies/additionalProperties/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[K]:i.push(K),s++,Se.errors=i,!1}var S=k===s;if(!S)break}else return Se.errors=[{instancePath:e+"/dependencies",schemaPath:"#/properties/dependencies/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var a=b===s}else var a=!0;if(a){if(t.propertyNames!==void 0){let v=s;Se(t.propertyNames,{instancePath:e+"/propertyNames",parentData:t,parentDataProperty:"propertyNames",rootData:l})||(i=i===null?Se.errors:i.concat(Se.errors),s=i.length);var a=v===s}else var a=!0;if(a){if(t.enum!==void 0){let v=t.enum,b=s;if(s===b)if(Array.isArray(v)){if(v.length<1)return Se.errors=[{instancePath:e+"/enum",schemaPath:"#/properties/enum/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"}],!1;{let N=v.length,O;if(N>1){e:for(;N--;)for(O=N;O--;)if(mP(v[N],v[O])){return Se.errors=[{instancePath:e+"/enum",schemaPath:"#/properties/enum/uniqueItems",keyword:"uniqueItems",params:{i:N,j:O},message:"must NOT have duplicate items (items ## "+O+" and "+N+" are identical)"}],!1;break e}}}}else return Se.errors=[{instancePath:e+"/enum",schemaPath:"#/properties/enum/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var a=b===s}else var a=!0;if(a){if(t.type!==void 0){let v=t.type,b=s,w=s,N=!1,O=s;if(!(v==="array"||v==="boolean"||v==="integer"||v==="null"||v==="number"||v==="object"||v==="string")){let $={instancePath:e+"/type",schemaPath:"#/definitions/simpleTypes/enum",keyword:"enum",params:{allowedValues:pP.enum},message:"must be equal to one of the allowed values"};i===null?i=[$]:i.push($),s++}var T=O===s;if(N=N||T,!N){let $=s;if(s===$)if(Array.isArray(v))if(v.length<1){let J={instancePath:e+"/type",schemaPath:"#/properties/type/anyOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};i===null?i=[J]:i.push(J),s++}else{var x=!0;let J=v.length;for(let K=0;K1){e:for(;K--;)for(Q=K;Q--;)if(mP(v[K],v[Q])){let ye={instancePath:e+"/type",schemaPath:"#/properties/type/anyOf/1/uniqueItems",keyword:"uniqueItems",params:{i:K,j:Q},message:"must NOT have duplicate items (items ## "+Q+" and "+K+" are identical)"};i===null?i=[ye]:i.push(ye),s++;break e}}}}else{let J={instancePath:e+"/type",schemaPath:"#/properties/type/anyOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};i===null?i=[J]:i.push(J),s++}var T=$===s;N=N||T}if(N)s=w,i!==null&&(w?i.length=w:i=null);else{let $={instancePath:e+"/type",schemaPath:"#/properties/type/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[$]:i.push($),s++,Se.errors=i,!1}var a=b===s}else var a=!0;if(a){if(t.format!==void 0){let v=s;if(typeof t.format!="string")return Se.errors=[{instancePath:e+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var a=v===s}else var a=!0;if(a){if(t.contentMediaType!==void 0){let v=s;if(typeof t.contentMediaType!="string")return Se.errors=[{instancePath:e+"/contentMediaType",schemaPath:"#/properties/contentMediaType/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var a=v===s}else var a=!0;if(a){if(t.contentEncoding!==void 0){let v=s;if(typeof t.contentEncoding!="string")return Se.errors=[{instancePath:e+"/contentEncoding",schemaPath:"#/properties/contentEncoding/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var a=v===s}else var a=!0;if(a){if(t.if!==void 0){let v=s;Se(t.if,{instancePath:e+"/if",parentData:t,parentDataProperty:"if",rootData:l})||(i=i===null?Se.errors:i.concat(Se.errors),s=i.length);var a=v===s}else var a=!0;if(a){if(t.then!==void 0){let v=s;Se(t.then,{instancePath:e+"/then",parentData:t,parentDataProperty:"then",rootData:l})||(i=i===null?Se.errors:i.concat(Se.errors),s=i.length);var a=v===s}else var a=!0;if(a){if(t.else!==void 0){let v=s;Se(t.else,{instancePath:e+"/else",parentData:t,parentDataProperty:"else",rootData:l})||(i=i===null?Se.errors:i.concat(Se.errors),s=i.length);var a=v===s}else var a=!0;if(a){if(t.allOf!==void 0){let v=s;xl(t.allOf,{instancePath:e+"/allOf",parentData:t,parentDataProperty:"allOf",rootData:l})||(i=i===null?xl.errors:i.concat(xl.errors),s=i.length);var a=v===s}else var a=!0;if(a){if(t.anyOf!==void 0){let v=s;xl(t.anyOf,{instancePath:e+"/anyOf",parentData:t,parentDataProperty:"anyOf",rootData:l})||(i=i===null?xl.errors:i.concat(xl.errors),s=i.length);var a=v===s}else var a=!0;if(a){if(t.oneOf!==void 0){let v=s;xl(t.oneOf,{instancePath:e+"/oneOf",parentData:t,parentDataProperty:"oneOf",rootData:l})||(i=i===null?xl.errors:i.concat(xl.errors),s=i.length);var a=v===s}else var a=!0;if(a)if(t.not!==void 0){let v=s;Se(t.not,{instancePath:e+"/not",parentData:t,parentDataProperty:"not",rootData:l})||(i=i===null?Se.errors:i.concat(Se.errors),s=i.length);var a=v===s}else var a=!0}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}return Se.errors=i,s===0}});var vP=C((JTe,yP)=>{"use strict";var Eg=class t{constructor(e,n,r="#"){this.schema=e,this.schemaId=n,this.jsonPointer=r,this.mergedSchemaId=null}getPropertyLocation(e){let n=new t(this.schema[e],this.schemaId,this.jsonPointer+"/"+e);return this.mergedSchemaId!==null&&n.addMergedSchema(this.schema[e],this.mergedSchemaId,this.jsonPointer+"/"+e),n}getSchemaId(){return this.mergedSchemaId||this.schemaId}getOriginSchemaId(){return this.schemaId}getSchemaRef(){return this.getSchemaId()+this.jsonPointer}addMergedSchema(e,n,r="#"){this.schema=e,this.mergedSchemaId=n,this.jsonPointer=r}};yP.exports=Eg});var CP=C((QTe,uu)=>{"use strict";var bg=aP()(),y1e=W4()({proto:!0}),{RefResolver:v1e}=fP(),_P=gP(),_1e=Ad(),E1e=ym(),bP=vP(),b1e=/'/g,h8=2e4,TP="default",T1e=["floor","ceil","round","trunc"],SP=["default","json-stringify"],au="!addComma && (addComma = true) || (json += ',')",xP=0;function Tg(t,e){if(!_P(t)){e?e=`"${e}" `:e="";let n=_P.errors[0],r=new Error(`${e}schema is invalid: data${n.instancePath} ${n.message}`);throw r.errors=Tg.errors,r}}function ou(t,e,n){let r=n.indexOf("#");r===-1&&(r=n.length);let l=n.slice(0,r)||e.getOriginSchemaId(),i=n.slice(r)||"#",s=t.refResolver.getSchema(l,i);if(s===null)throw new Error(`Cannot find reference "${n}"`);let a=new bP(s,l,i);return s.$ref!==void 0?ou(t,a,s.$ref):a}function EP(t,e){return t.$id&&t.$id.charAt(0)!=="#"?t.$id:e}function Sg(t,e){Tg(t),e=e||{};let n={functions:[],functionsCounter:0,functionsNamesBySchema:new Map,options:e,wrapObjects:!0,refResolver:new v1e,rootSchemaId:t.$id||`__fjs_root_${xP++}`,validatorSchemasIds:new Set},r=EP(t,n.rootSchemaId);if(n.refResolver.hasSchema(r)||n.refResolver.addSchema(t,n.rootSchemaId),e.schema)for(let c in e.schema){let p=e.schema[c],m=EP(p,c);n.refResolver.hasSchema(m)||(Tg(p,c),n.refResolver.addSchema(p,c))}if(e.rounding&&!T1e.includes(e.rounding))throw new Error(`Unsupported integer rounding method ${e.rounding}`);if(e.largeArrayMechanism)if(SP.includes(e.largeArrayMechanism))TP=e.largeArrayMechanism;else throw new Error(`Unsupported large array mechanism ${e.largeArrayMechanism}`);if(e.largeArraySize)if(typeof e.largeArraySize=="string"&&Number.isFinite(Number.parseInt(e.largeArraySize,10)))h8=Number.parseInt(e.largeArraySize,10);else if(typeof e.largeArraySize=="number"&&Number.isInteger(e.largeArraySize))h8=e.largeArraySize;else if(typeof e.largeArraySize=="bigint")h8=Number(e.largeArraySize);else throw new Error(`Unsupported large array size. Expected integer-like, got ${typeof e.largeArraySize} with value ${e.largeArraySize}`);let l=new bP(t,n.rootSchemaId),i=_i(n,l,"input"),s;i==="json += anonymous0(input)"?s=`
+ module.exports = ${t.toString()}(validator, serializer)`}Um.exports=Xse;Um.exports.dependencies={Serializer:Xd(),Validator:jm()}});var kI=C((pSe,CI)=>{"use strict";var{dependencies:Wse}=Bm(),{Serializer:Kse,Validator:fSe}=Wse,Yse={mode:"standalone"},Jse=Kse.restoreFromState(Yse),Qse=null;CI.exports=function(e,n){function r(i){let s=i&&typeof i.toJSON=="function"?i.toJSON():i;if(s===null)return"{}";let a=!1,o="{";return s.statusCode!==void 0&&(!a&&(a=!0)||(o+=","),o+='"statusCode":',o+=n.asNumber(s.statusCode)),s.code!==void 0&&(!a&&(a=!0)||(o+=","),o+='"code":',o+=n.asString(s.code)),s.error!==void 0&&(!a&&(a=!0)||(o+=","),o+='"error":',o+=n.asString(s.error)),s.message!==void 0&&(!a&&(a=!0)||(o+=","),o+='"message":',o+=n.asString(s.message)),o+"}"}return r}(Qse,Jse)});var F1=C((dSe,FI)=>{"use strict";var PI=require("node:http").STATUS_CODES,Zse=Vp(),{kReplyHeaders:Aa,kReplyNextErrorHandler:Y6,kReplyIsRunningOnErrorHook:eae,kReplyHasStatusCode:tae,kRouteContext:LI}=Mr(),{FST_ERR_REP_INVALID_PAYLOAD_TYPE:nae,FST_ERR_FAILED_ERROR_SERIALIZATION:rae}=al(),{getSchemaSerializer:lae}=i1(),Hm=kI(),iae={func:aae,toJSON(){return this.func.name.toString()+"()"}};function sae(t,e,n){t[eae]=!1;let r=t[LI];if(t[Y6]===!1){DI(e,t,function(a,o){try{a.raw.writeHead(a.raw.statusCode,a[Aa])}catch(c){a.log.warn({req:a.request,res:a,err:c},c&&c.message),a.raw.writeHead(a.raw.statusCode)}a.raw.end(o)});return}let l=t[Y6]||r.errorHandler;t[Y6]=Object.getPrototypeOf(l),delete t[Aa]["content-type"],delete t[Aa]["content-length"];let i=l.func;if(!i){t[Y6]=!1,DI(e,t,n);return}let s=i(e,t.request,t);s!==void 0&&(s!==null&&typeof s.then=="function"?Zse(s,t):t.send(s))}function aae(t,e,n){if(uae(t,n),!n[tae]||n.statusCode===200){let r=t.statusCode||t.status;n.code(r>=400?r:500)}n.statusCode<500?n.log.info({res:n,err:t},t&&t.message):n.log.error({req:e,res:n,err:t},t&&t.message),n.send(t)}function DI(t,e,n){let r=e.raw,l=e.statusCode;e[Aa]["content-type"]=e[Aa]["content-type"]??"application/json; charset=utf-8";let i;try{let s=lae(e[LI],l,e[Aa]["content-type"]);i=s===!1?Hm({error:PI[l+""],code:t.code,message:t.message,statusCode:l}):s(Object.create(t,{error:{value:PI[l+""]},message:{value:t.message},statusCode:{value:l}}))}catch(s){e.log.error({err:s,statusCode:r.statusCode},"The serializer for the given status code failed"),e.code(500),i=Hm(new rae(s.message,t.message))}typeof i!="string"&&!Buffer.isBuffer(i)&&(i=Hm(new nae(typeof i))),e[Aa]["content-length"]=""+Buffer.byteLength(i),n(e,i)}function oae(t=iae,e){if(!e)return t;let n=Object.create(t);return n.func=e,n}function uae(t,e){let n=e.raw,r=n.statusCode;r=r>=400?r:500,t!=null&&(t.headers!==void 0&&e.headers(t.headers),t.status>=400?r=t.status:t.statusCode>=400&&(r=t.statusCode)),n.statusCode=r}FI.exports={buildErrorHandler:oae,handleError:sae}});var n8=C((hSe,t8)=>{"use strict";var Gm=require("node:stream").finished,cae=require("node:stream").Readable,{kFourOhFourContext:MI,kPublicRouteContext:$I,kReplyErrorHandlerCalled:GI,kReplyHijacked:M1,kReplyStartTime:$1,kReplyEndTime:Wm,kReplySerializer:c3,kReplySerializerDefault:Q6,kReplyIsError:Z6,kReplyHeaders:Nn,kReplyTrailers:$r,kReplyHasStatusCode:Km,kReplyIsRunningOnErrorHook:Ym,kReplyNextErrorHandler:fae,kDisableRequestLogging:XI,kSchemaResponse:e8,kReplyCacheSerializeFns:Q3,kSchemaController:qm,kOptions:pae,kRouteContext:Nt}=Mr(),{onSendHookRunner:WI,onResponseHookRunner:dae,preHandlerHookRunner:hae,preSerializationHookRunner:mae}=$3(),jI=Wp()[Symbol.for("internals")],gae=r1(),Xm=gae.now,{handleError:UI}=F1(),{getSchemaSerializer:yae}=i1(),Vm={JSON:"application/json; charset=utf-8",PLAIN:"text/plain; charset=utf-8",OCTET:"application/octet-stream"},{FST_ERR_REP_INVALID_PAYLOAD_TYPE:vae,FST_ERR_REP_RESPONSE_BODY_CONSUMED:_ae,FST_ERR_REP_ALREADY_SENT:KI,FST_ERR_REP_SENT_VALUE:Eae,FST_ERR_SEND_INSIDE_ONERR:bae,FST_ERR_BAD_STATUS_CODE:Tae,FST_ERR_BAD_TRAILER_NAME:Sae,FST_ERR_BAD_TRAILER_VALUE:xae,FST_ERR_MISSING_SERIALIZATION_FN:Aae,FST_ERR_MISSING_CONTENTTYPE_SERIALIZATION_FN:wae}=al(),{FSTDEP010:Rae,FSTDEP013:Oae,FSTDEP019:Nae,FSTDEP020:Iae}=l3(),YI=Object.prototype.toString;function xn(t,e,n){this.raw=t,this[c3]=null,this[GI]=!1,this[Z6]=!1,this[Ym]=!1,this.request=e,this[Nn]={},this[$r]=null,this[Km]=!1,this[$1]=void 0,this.log=n}xn.props=[];Object.defineProperties(xn.prototype,{[Nt]:{get(){return this.request[Nt]}},context:{get(){return Nae(),this.request[Nt]}},elapsedTime:{get(){return this[$1]===void 0?0:(this[Wm]||Xm())-this[$1]}},server:{get(){return this.request[Nt].server}},sent:{enumerable:!0,get(){return(this[M1]||this.raw.writableEnded)===!0},set(t){if(Rae(),t!==!0)throw new Eae;if(this.sent&&this[M1])throw new KI(this.request.url,this.request.method);this[M1]=!0}},statusCode:{get(){return this.raw.statusCode},set(t){this.code(t)}},[$I]:{get(){return this.request[$I]}}});xn.prototype.hijack=function(){return this[M1]=!0,this};xn.prototype.send=function(t){if(this[Ym]===!0)throw new bae;if(this.sent)return this.log.warn({err:new KI(this.request.url,this.request.method)}),this;if(t instanceof Error||this[Z6]===!0)return this[Z6]=!1,j1(this,t,wa),this;if(t===void 0)return wa(this,t),this;let e=this.getHeader("content-type"),n=e!==void 0;if(t!==null){if(typeof t.pipe=="function"||typeof t.getReader=="function"||YI.call(t)==="[object Response]")return wa(this,t),this;if(t?.buffer instanceof ArrayBuffer){n===!1&&(this[Nn]["content-type"]=Vm.OCTET);let r=Buffer.isBuffer(t)?t:Buffer.from(t.buffer,t.byteOffset,t.byteLength);return wa(this,r),this}if(n===!1&&typeof t=="string")return this[Nn]["content-type"]=Vm.PLAIN,wa(this,t),this}if(this[c3]!==null){if(typeof t!="string")return BI(this,t),this;t=this[c3](t)}else if(n===!1||e.indexOf("json")>-1){if(n===!1)this[Nn]["content-type"]=Vm.JSON;else if(e.indexOf("charset")===-1){let r=e.trim();r.endsWith(";")?this[Nn]["content-type"]=`${r} charset=utf-8`:this[Nn]["content-type"]=`${r}; charset=utf-8`}if(typeof t!="string")return BI(this,t),this}return wa(this,t),this};xn.prototype.getHeader=function(t){t=t.toLowerCase();let e=this.raw,n=this[Nn][t];return n===void 0&&e.hasHeader(t)&&(n=e.getHeader(t)),n};xn.prototype.getHeaders=function(){return{...this.raw.getHeaders(),...this[Nn]}};xn.prototype.hasHeader=function(t){return t=t.toLowerCase(),this[Nn][t]!==void 0||this.raw.hasHeader(t)};xn.prototype.removeHeader=function(t){return delete this[Nn][t.toLowerCase()],this};xn.prototype.header=function(t,e=""){return t=t.toLowerCase(),this[Nn][t]&&t==="set-cookie"?(typeof this[Nn][t]=="string"&&(this[Nn][t]=[this[Nn][t]]),Array.isArray(e)?Array.prototype.push.apply(this[Nn][t],e):this[Nn][t].push(e)):this[Nn][t]=e,this};xn.prototype.headers=function(t){let e=Object.keys(t);for(var n=0;n!==e.length;++n){let r=e[n];this.header(r,t[r])}return this};var Cae=new Set(["transfer-encoding","content-length","host","cache-control","max-forwards","te","authorization","set-cookie","content-encoding","content-type","content-range","trailer"]);xn.prototype.trailer=function(t,e){if(t=t.toLowerCase(),Cae.has(t))throw new Sae(t);if(typeof e!="function")throw new xae(t,typeof e);return this[$r]===null&&(this[$r]={}),this[$r][t]=e,this};xn.prototype.hasTrailer=function(t){return this[$r]?.[t.toLowerCase()]!==void 0};xn.prototype.removeTrailer=function(t){return this[$r]===null?this:(this[$r][t.toLowerCase()]=void 0,this)};xn.prototype.code=function(t){let e=Number(t);if(isNaN(e)||e<100||e>599)throw new Tae(t||String(t));return this.raw.statusCode=e,this[Km]=!0,this};xn.prototype.status=xn.prototype.code;xn.prototype.getSerializationFunction=function(t,e){let n;return typeof t=="string"||typeof t=="number"?typeof e=="string"?n=this[Nt][e8]?.[t]?.[e]:n=this[Nt][e8]?.[t]:typeof t=="object"&&(n=this[Nt][Q3]?.get(t)),n};xn.prototype.compileSerializationSchema=function(t,e=null,n=null){let{request:r}=this,{method:l,url:i}=r;if(this[Nt][Q3]?.has(t))return this[Nt][Q3].get(t);let a=(this[Nt].serializerCompiler||this.server[qm].serializerCompiler||this.server[qm].setupSerializer(this.server[pae])||this.server[qm].serializerCompiler)({schema:t,method:l,url:i,httpStatus:e,contentType:n});return this[Nt][Q3]==null&&(this[Nt][Q3]=new WeakMap),this[Nt][Q3].set(t,a),a};xn.prototype.serializeInput=function(t,e,n,r){let l=n,i;if(n=typeof e=="string"||typeof e=="number"?e:n,r=n&&l!==n?l:r,n!=null){if(r!=null?i=this[Nt][e8]?.[n]?.[r]:i=this[Nt][e8]?.[n],i==null)throw r?new wae(n,r):new Aae(n)}else this[Nt][Q3]?.has(e)?i=this[Nt][Q3].get(e):i=this.compileSerializationSchema(e,n,r);return i(t)};xn.prototype.serialize=function(t){return this[c3]!==null?this[c3](t):this[Nt]&&this[Nt][Q6]?this[Nt][Q6](t,this.raw.statusCode):ZI(this[Nt],t,this.raw.statusCode)};xn.prototype.serializer=function(t){return this[c3]=t,this};xn.prototype.type=function(t){return this[Nn]["content-type"]=t,this};xn.prototype.redirect=function(t,e){return typeof t=="string"&&(e=t,t=this[Km]?this.raw.statusCode:302),this.header("location",e).code(t).send()};xn.prototype.callNotFound=function(){return Mae(this),this};xn.prototype.getResponseTime=function(){return Iae(),this.elapsedTime};xn.prototype.then=function(t,e){if(this.sent){t();return}Gm(this.raw,n=>{n&&n.code!=="ERR_STREAM_PREMATURE_CLOSE"?e?e(n):this.log&&this.log.warn("unhandled rejection on reply.then"):t()})};function BI(t,e){t[Nt].preSerialization!==null?mae(t[Nt].preSerialization,t.request,t,e,HI):HI(null,t.request,t,e)}function HI(t,e,n,r){if(t!=null){j1(n,t);return}try{n[c3]!==null?r=n[c3](r):n[Nt]&&n[Nt][Q6]?r=n[Nt][Q6](r,n.raw.statusCode):r=ZI(n[Nt],r,n.raw.statusCode,n[Nn]["content-type"])}catch(l){kae(l,n),j1(n,l);return}wa(n,r)}function kae(t,e){t.serialization=e[Nt].config}function wa(t,e){t[Nt].onSend!==null?WI(t[Nt].onSend,t.request,t,e,Pae):JI(t,e)}function Pae(t,e,n,r){t!=null?j1(n,t):JI(n,r)}function zm(t,e){let n=t.raw;try{n.writeHead(e,t[Nn])}catch(r){throw r.code==="ERR_HTTP_HEADERS_SENT"&&t.log.warn(`Reply was already sent, did you forget to "return reply" in the "${t.request.raw.url}" (${t.request.raw.method}) route?`),r}}function JI(t,e){let n=t.raw,r=t.request;if(t[$r]!==null){let s=Object.keys(t[$r]),a="";for(let o of s)typeof t[$r][o]=="function"&&(a+=" ",a+=o);t.header("Transfer-Encoding","chunked"),t.header("Trailer",a.trim())}let l=YI.call(e)==="[object Response]";l&&typeof e.status=="number"&&t.code(e.status);let i=n.statusCode;if(e==null){i>=200&&i!==204&&i!==304&&r.method!=="HEAD"&&t[$r]===null&&(t[Nn]["content-length"]="0"),zm(t,i),J6(e,n,t);return}if(i>=100&&i<200||i===204){t.removeHeader("content-type"),t.removeHeader("content-length"),zm(t,i),J6(void 0,n,t),typeof e.resume=="function"&&(e.on("error",eC),e.resume());return}if(typeof e.pipe=="function"){QI(e,n,t);return}if(typeof e.getReader=="function"){VI(e,n,t);return}if(l){if(typeof e.headers=="object"&&typeof e.headers.forEach=="function")for(let[s,a]of e.headers)t.header(s,a);if(e.body!=null){if(e.bodyUsed)throw new _ae;VI(e.body,n,t)}return}if(typeof e!="string"&&!Buffer.isBuffer(e))throw new vae(typeof e);if(t[$r]===null){let s=t[Nn]["content-length"];(!s||r.raw.method!=="HEAD"&&Number(s)!==Buffer.byteLength(e))&&(t[Nn]["content-length"]=""+Buffer.byteLength(e))}zm(t,i),n.write(e),J6(e,n,t)}function qI(t,e,n){e.code==="ERR_STREAM_PREMATURE_CLOSE"?t[XI]||t.info({res:n},"stream closed prematurely"):t.warn({err:e},"response terminated with an error with headers already sent")}function VI(t,e,n){let r=cae.fromWeb(t);QI(r,e,n)}function QI(t,e,n){let r=!0,l=!1;if(Dae(t,e,n),Gm(t,{readable:!0,writable:!1},function(i){r=!1,i!=null&&(e.headersSent||n.request.raw.aborted===!0?(l||(l=!0,qI(n.log,i,e)),e.destroy()):j1(n,i))}),Gm(e,function(i){r&&(i!=null&&e.headersSent&&!l&&(l=!0,qI(n.log,i,e)),typeof t.destroy=="function"?t.destroy():typeof t.close=="function"?t.close(eC):typeof t.abort=="function"?t.abort():n.log.warn("stream payload does not end properly"))}),e.headersSent)n.log.warn("response will send, but you shouldn't use res.writeHead in stream mode");else for(let i in n[Nn])e.setHeader(i,n[Nn][i]);t.pipe(e)}function J6(t,e,n){if(n[$r]===null){e.end(null,null,null);return}let r=Object.keys(n[$r]),l={},i=0,s=!0;function a(){i===0&&(e.addTrailers(l),e.end(null,null,null))}for(let o of r){let c=function(p,m){i++,p?n.log.debug(p):l[o]=m,process.nextTick(a)};if(typeof n[$r][o]!="function")continue;s=!1,i--;let f=n[$r][o](n,t,c);typeof f=="object"&&typeof f.then=="function"?f.then(p=>c(null,p),c):f!=null&&(Oae(),c(null,f))}s&&e.end(null,null,null)}function Dae(t,e,n){n[$r]!==null&&t.on("end",()=>J6(null,e,n))}function j1(t,e,n){t[Nt].onError!==null&&!t[fae]?(t[Ym]=!0,WI(t[Nt].onError,t.request,t,e,()=>UI(t,e,n))):UI(t,e,n)}function Lae(t){t[$1]=Xm();let e=n=>{t[Wm]=Xm(),t.raw.removeListener("finish",e),t.raw.removeListener("error",e);let r=t[Nt];r&&r.onResponse!==null?dae(r.onResponse,t.request,t,zI):zI(n,t.request,t)};t.raw.on("finish",e),t.raw.on("error",e)}function zI(t,e,n){if(n.log[XI])return;let r=n.elapsedTime;if(t!=null){n.log.error({res:n,err:t,responseTime:r},"request errored");return}n.log.info({res:n,responseTime:r},"request completed")}function Fae(t){let e=t.props.slice();function n(r,l,i){this.raw=r,this[Z6]=!1,this[GI]=!1,this[M1]=!1,this[c3]=null,this.request=l,this[Nn]={},this[$r]=null,this[$1]=void 0,this[Wm]=void 0,this.log=i;for(var s,a=0;a{"use strict";tC.exports=$ae;function $ae(t){if(!t)throw new TypeError("argument req is required");var e=Uae(t.headers["x-forwarded-for"]||""),n=jae(t),r=[n].concat(e);return r}function jae(t){return t.socket?t.socket.remoteAddress:t.connection.remoteAddress}function Uae(t){for(var e=t.length,n=[],r=t.length,l=t.length-1;l>=0;l--)switch(t.charCodeAt(l)){case 32:r===e&&(r=e=l);break;case 44:r!==e&&n.push(t.substring(r,e)),r=e=l;break;default:r=l;break}return r!==e&&n.push(t.substring(r,e)),n}});var lC=C((rC,U1)=>{(function(){var t,e,n,r,l,i,s,a,o;e={},a=this,typeof U1<"u"&&U1!==null&&U1.exports?U1.exports=e:a.ipaddr=e,s=function(c,f,p,m){var h,g;if(c.length!==f.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");for(h=0;m>0;){if(g=p-m,g<0&&(g=0),c[h]>>g!==f[h]>>g)return!1;m-=p,h+=1}return!0},e.subnetMatch=function(c,f,p){var m,h,g,_,S;p==null&&(p="unicast");for(g in f)for(_=f[g],_[0]&&!(_[0]instanceof Array)&&(_=[_]),m=0,h=_.length;m=0;p=m+=-1)if(h=this.octets[p],h in S){if(_=S[h],g&&_!==0)return null;_!==8&&(g=!0),f+=_}else return null;return 32-f},c}(),n="(0?\\d+|0x[a-f0-9]+)",r={fourOctet:new RegExp("^"+n+"\\."+n+"\\."+n+"\\."+n+"$","i"),longValue:new RegExp("^"+n+"$","i")},e.IPv4.parser=function(c){var f,p,m,h,g;if(p=function(_){return _[0]==="0"&&_[1]!=="x"?parseInt(_,8):parseInt(_)},f=c.match(r.fourOctet))return function(){var _,S,T,x;for(T=f.slice(1,6),x=[],_=0,S=T.length;_4294967295||g<0)throw new Error("ipaddr: address outside defined range");return function(){var _,S;for(S=[],h=_=0;_<=24;h=_+=8)S.push(g>>h&255);return S}().reverse()}else return null},e.IPv6=function(){function c(f,p){var m,h,g,_,S,T;if(f.length===16)for(this.parts=[],m=h=0;h<=14;m=h+=2)this.parts.push(f[m]<<8|f[m+1]);else if(f.length===8)this.parts=f;else throw new Error("ipaddr: ipv6 part count should be 8 or 16");for(T=this.parts,g=0,_=T.length;g<_;g++)if(S=T[g],!(0<=S&&S<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");p&&(this.zoneId=p)}return c.prototype.kind=function(){return"ipv6"},c.prototype.toString=function(){return this.toNormalizedString().replace(/((^|:)(0(:|$))+)/,"::")},c.prototype.toRFC5952String=function(){var f,p,m,h,g;for(h=/((^|:)(0(:|$)){2,})/g,g=this.toNormalizedString(),f=0,p=-1;m=h.exec(g);)m[0].length>p&&(f=m.index,p=m[0].length);return p<0?g:g.substring(0,f)+"::"+g.substring(f+p)},c.prototype.toByteArray=function(){var f,p,m,h,g;for(f=[],g=this.parts,p=0,m=g.length;p>8),f.push(h&255);return f},c.prototype.toNormalizedString=function(){var f,p,m;return f=function(){var h,g,_,S;for(_=this.parts,S=[],h=0,g=_.length;h>8,f&255,p>>8,p&255])},c.prototype.prefixLengthFromSubnetMask=function(){var f,p,m,h,g,_,S;for(S={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0},f=0,g=!1,p=m=7;m>=0;p=m+=-1)if(h=this.parts[p],h in S){if(_=S[h],g&&_!==0)return null;_!==16&&(g=!0),f+=_}else return null;return 128-f},c}(),l="(?:[0-9a-f]+::?)+",o="%[0-9a-z]{1,}",i={zoneIndex:new RegExp(o,"i"),native:new RegExp("^(::)?("+l+")?([0-9a-f]+)?(::)?("+o+")?$","i"),transitional:new RegExp("^((?:"+l+")|(?:::)(?:"+l+")?)"+(n+"\\."+n+"\\."+n+"\\."+n)+("("+o+")?$"),"i")},t=function(c,f){var p,m,h,g,_,S;if(c.indexOf("::")!==c.lastIndexOf("::"))return null;for(S=(c.match(i.zoneIndex)||[])[0],S&&(S=S.substring(1),c=c.replace(/%.+$/,"")),p=0,m=-1;(m=c.indexOf(":",m+1))>=0;)p++;if(c.substr(0,2)==="::"&&p--,c.substr(-2,2)==="::"&&p--,p>f)return null;for(_=f-p,g=":";_--;)g+="0:";return c=c.replace("::",g),c[0]===":"&&(c=c.slice(1)),c[c.length-1]===":"&&(c=c.slice(0,-1)),f=function(){var T,x,v,b;for(v=c.split(":"),b=[],T=0,x=v.length;T=0&&f<=32))return m=[this.parse(p[1]),f],Object.defineProperty(m,"toString",{value:function(){return this.join("/")}}),m;throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},e.IPv4.subnetMaskFromPrefixLength=function(c){var f,p,m;if(c=parseInt(c),c<0||c>32)throw new Error("ipaddr: invalid IPv4 prefix length");for(m=[0,0,0,0],p=0,f=Math.floor(c/8);p=0&&f<=128))return m=[this.parse(p[1]),f],Object.defineProperty(m,"toString",{value:function(){return this.join("/")}}),m;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},e.isValid=function(c){return e.IPv6.isValid(c)||e.IPv4.isValid(c)},e.parse=function(c){if(e.IPv6.isValid(c))return e.IPv6.parse(c);if(e.IPv4.isValid(c))return e.IPv4.parse(c);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},e.parseCIDR=function(c){var f;try{return e.IPv6.parseCIDR(c)}catch(p){f=p;try{return e.IPv4.parseCIDR(c)}catch(m){throw f=m,new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},e.fromByteArray=function(c){var f;if(f=c.length,f===4)return new e.IPv4(c);if(f===16)return new e.IPv6(c);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},e.process=function(c){var f;return f=this.parse(c),f.kind()==="ipv6"&&f.isIPv4MappedAddress()?f.toIPv4Address():f}}).call(rC)});var uC=C((gSe,i8)=>{"use strict";i8.exports=Xae;i8.exports.all=aC;i8.exports.compile=oC;var Bae=nC(),sC=lC(),Hae=/^[0-9]+$/,r8=sC.isValid,l8=sC.parse,iC={linklocal:["169.254.0.0/16","fe80::/10"],loopback:["127.0.0.1/8","::1/128"],uniquelocal:["10.0.0.0/8","172.16.0.0/12","192.168.0.0/16","fc00::/7"]};function aC(t,e){var n=Bae(t);if(!e)return n;typeof e!="function"&&(e=oC(e));for(var r=0;rl)throw new TypeError("invalid range on address: "+t);return[r,i]}function Gae(t){var e=l8(t),n=e.kind();return n==="ipv4"?e.prefixLengthFromSubnetMask():null}function Xae(t,e){if(!t)throw new TypeError("req argument is required");if(!e)throw new TypeError("trust argument is required");var n=aC(t,e),r=n[n.length-1];return r}function Wae(){return!1}function Kae(t){return function(n){if(!r8(n))return!1;for(var r=l8(n),l,i=r.kind(),s=0;s{var Jae="2.0.0",Qae=Number.MAX_SAFE_INTEGER||9007199254740991,Zae=16,eoe=250,toe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];cC.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Zae,MAX_SAFE_BUILD_LENGTH:eoe,MAX_SAFE_INTEGER:Qae,RELEASE_TYPES:toe,SEMVER_SPEC_VERSION:Jae,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var H1=C((vSe,fC)=>{var noe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};fC.exports=noe});var ou=C((f3,pC)=>{var{MAX_SAFE_COMPONENT_LENGTH:Jm,MAX_SAFE_BUILD_LENGTH:roe,MAX_LENGTH:loe}=B1(),ioe=H1();f3=pC.exports={};var soe=f3.re=[],aoe=f3.safeRe=[],$e=f3.src=[],je=f3.t={},ooe=0,Qm="[a-zA-Z0-9-]",uoe=[["\\s",1],["\\d",loe],[Qm,roe]],coe=t=>{for(let[e,n]of uoe)t=t.split(`${e}*`).join(`${e}{0,${n}}`).split(`${e}+`).join(`${e}{1,${n}}`);return t},Et=(t,e,n)=>{let r=coe(e),l=ooe++;ioe(t,l,e),je[t]=l,$e[l]=e,soe[l]=new RegExp(e,n?"g":void 0),aoe[l]=new RegExp(r,n?"g":void 0)};Et("NUMERICIDENTIFIER","0|[1-9]\\d*");Et("NUMERICIDENTIFIERLOOSE","\\d+");Et("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Qm}*`);Et("MAINVERSION",`(${$e[je.NUMERICIDENTIFIER]})\\.(${$e[je.NUMERICIDENTIFIER]})\\.(${$e[je.NUMERICIDENTIFIER]})`);Et("MAINVERSIONLOOSE",`(${$e[je.NUMERICIDENTIFIERLOOSE]})\\.(${$e[je.NUMERICIDENTIFIERLOOSE]})\\.(${$e[je.NUMERICIDENTIFIERLOOSE]})`);Et("PRERELEASEIDENTIFIER",`(?:${$e[je.NUMERICIDENTIFIER]}|${$e[je.NONNUMERICIDENTIFIER]})`);Et("PRERELEASEIDENTIFIERLOOSE",`(?:${$e[je.NUMERICIDENTIFIERLOOSE]}|${$e[je.NONNUMERICIDENTIFIER]})`);Et("PRERELEASE",`(?:-(${$e[je.PRERELEASEIDENTIFIER]}(?:\\.${$e[je.PRERELEASEIDENTIFIER]})*))`);Et("PRERELEASELOOSE",`(?:-?(${$e[je.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${$e[je.PRERELEASEIDENTIFIERLOOSE]})*))`);Et("BUILDIDENTIFIER",`${Qm}+`);Et("BUILD",`(?:\\+(${$e[je.BUILDIDENTIFIER]}(?:\\.${$e[je.BUILDIDENTIFIER]})*))`);Et("FULLPLAIN",`v?${$e[je.MAINVERSION]}${$e[je.PRERELEASE]}?${$e[je.BUILD]}?`);Et("FULL",`^${$e[je.FULLPLAIN]}$`);Et("LOOSEPLAIN",`[v=\\s]*${$e[je.MAINVERSIONLOOSE]}${$e[je.PRERELEASELOOSE]}?${$e[je.BUILD]}?`);Et("LOOSE",`^${$e[je.LOOSEPLAIN]}$`);Et("GTLT","((?:<|>)?=?)");Et("XRANGEIDENTIFIERLOOSE",`${$e[je.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Et("XRANGEIDENTIFIER",`${$e[je.NUMERICIDENTIFIER]}|x|X|\\*`);Et("XRANGEPLAIN",`[v=\\s]*(${$e[je.XRANGEIDENTIFIER]})(?:\\.(${$e[je.XRANGEIDENTIFIER]})(?:\\.(${$e[je.XRANGEIDENTIFIER]})(?:${$e[je.PRERELEASE]})?${$e[je.BUILD]}?)?)?`);Et("XRANGEPLAINLOOSE",`[v=\\s]*(${$e[je.XRANGEIDENTIFIERLOOSE]})(?:\\.(${$e[je.XRANGEIDENTIFIERLOOSE]})(?:\\.(${$e[je.XRANGEIDENTIFIERLOOSE]})(?:${$e[je.PRERELEASELOOSE]})?${$e[je.BUILD]}?)?)?`);Et("XRANGE",`^${$e[je.GTLT]}\\s*${$e[je.XRANGEPLAIN]}$`);Et("XRANGELOOSE",`^${$e[je.GTLT]}\\s*${$e[je.XRANGEPLAINLOOSE]}$`);Et("COERCE",`(^|[^\\d])(\\d{1,${Jm}})(?:\\.(\\d{1,${Jm}}))?(?:\\.(\\d{1,${Jm}}))?(?:$|[^\\d])`);Et("COERCERTL",$e[je.COERCE],!0);Et("LONETILDE","(?:~>?)");Et("TILDETRIM",`(\\s*)${$e[je.LONETILDE]}\\s+`,!0);f3.tildeTrimReplace="$1~";Et("TILDE",`^${$e[je.LONETILDE]}${$e[je.XRANGEPLAIN]}$`);Et("TILDELOOSE",`^${$e[je.LONETILDE]}${$e[je.XRANGEPLAINLOOSE]}$`);Et("LONECARET","(?:\\^)");Et("CARETTRIM",`(\\s*)${$e[je.LONECARET]}\\s+`,!0);f3.caretTrimReplace="$1^";Et("CARET",`^${$e[je.LONECARET]}${$e[je.XRANGEPLAIN]}$`);Et("CARETLOOSE",`^${$e[je.LONECARET]}${$e[je.XRANGEPLAINLOOSE]}$`);Et("COMPARATORLOOSE",`^${$e[je.GTLT]}\\s*(${$e[je.LOOSEPLAIN]})$|^$`);Et("COMPARATOR",`^${$e[je.GTLT]}\\s*(${$e[je.FULLPLAIN]})$|^$`);Et("COMPARATORTRIM",`(\\s*)${$e[je.GTLT]}\\s*(${$e[je.LOOSEPLAIN]}|${$e[je.XRANGEPLAIN]})`,!0);f3.comparatorTrimReplace="$1$2$3";Et("HYPHENRANGE",`^\\s*(${$e[je.XRANGEPLAIN]})\\s+-\\s+(${$e[je.XRANGEPLAIN]})\\s*$`);Et("HYPHENRANGELOOSE",`^\\s*(${$e[je.XRANGEPLAINLOOSE]})\\s+-\\s+(${$e[je.XRANGEPLAINLOOSE]})\\s*$`);Et("STAR","(<|>)?=?\\s*\\*");Et("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Et("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var s8=C((_Se,dC)=>{var foe=Object.freeze({loose:!0}),poe=Object.freeze({}),doe=t=>t?typeof t!="object"?foe:t:poe;dC.exports=doe});var Zm=C((ESe,gC)=>{var hC=/^[0-9]+$/,mC=(t,e)=>{let n=hC.test(t),r=hC.test(e);return n&&r&&(t=+t,e=+e),t===e?0:n&&!r?-1:r&&!n?1:tmC(e,t);gC.exports={compareIdentifiers:mC,rcompareIdentifiers:hoe}});var fl=C((bSe,EC)=>{var a8=H1(),{MAX_LENGTH:yC,MAX_SAFE_INTEGER:o8}=B1(),{safeRe:vC,t:_C}=ou(),moe=s8(),{compareIdentifiers:uu}=Zm(),eg=class t{constructor(e,n){if(n=moe(n),e instanceof t){if(e.loose===!!n.loose&&e.includePrerelease===!!n.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>yC)throw new TypeError(`version is longer than ${yC} characters`);a8("SemVer",e,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let r=e.trim().match(n.loose?vC[_C.LOOSE]:vC[_C.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>o8||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o8||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o8||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(l=>{if(/^[0-9]+$/.test(l)){let i=+l;if(i>=0&&i=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(n===this.prerelease.join(".")&&r===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(l)}}if(n){let i=[n,l];r===!1&&(i=[n]),uu(this.prerelease[0],n)===0?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};EC.exports=eg});var Ra=C((TSe,TC)=>{var bC=fl(),goe=(t,e,n=!1)=>{if(t instanceof bC)return t;try{return new bC(t,e)}catch(r){if(!n)return null;throw r}};TC.exports=goe});var xC=C((SSe,SC)=>{var yoe=Ra(),voe=(t,e)=>{let n=yoe(t,e);return n?n.version:null};SC.exports=voe});var wC=C((xSe,AC)=>{var _oe=Ra(),Eoe=(t,e)=>{let n=_oe(t.trim().replace(/^[=v]+/,""),e);return n?n.version:null};AC.exports=Eoe});var NC=C((ASe,OC)=>{var RC=fl(),boe=(t,e,n,r,l)=>{typeof n=="string"&&(l=r,r=n,n=void 0);try{return new RC(t instanceof RC?t.version:t,n).inc(e,r,l).version}catch{return null}};OC.exports=boe});var kC=C((wSe,CC)=>{var IC=Ra(),Toe=(t,e)=>{let n=IC(t,null,!0),r=IC(e,null,!0),l=n.compare(r);if(l===0)return null;let i=l>0,s=i?n:r,a=i?r:n,o=!!s.prerelease.length;if(!!a.prerelease.length&&!o)return!a.patch&&!a.minor?"major":s.patch?"patch":s.minor?"minor":"major";let f=o?"pre":"";return n.major!==r.major?f+"major":n.minor!==r.minor?f+"minor":n.patch!==r.patch?f+"patch":"prerelease"};CC.exports=Toe});var DC=C((RSe,PC)=>{var Soe=fl(),xoe=(t,e)=>new Soe(t,e).major;PC.exports=xoe});var FC=C((OSe,LC)=>{var Aoe=fl(),woe=(t,e)=>new Aoe(t,e).minor;LC.exports=woe});var $C=C((NSe,MC)=>{var Roe=fl(),Ooe=(t,e)=>new Roe(t,e).patch;MC.exports=Ooe});var UC=C((ISe,jC)=>{var Noe=Ra(),Ioe=(t,e)=>{let n=Noe(t,e);return n&&n.prerelease.length?n.prerelease:null};jC.exports=Ioe});var b2=C((CSe,HC)=>{var BC=fl(),Coe=(t,e,n)=>new BC(t,n).compare(new BC(e,n));HC.exports=Coe});var VC=C((kSe,qC)=>{var koe=b2(),Poe=(t,e,n)=>koe(e,t,n);qC.exports=Poe});var GC=C((PSe,zC)=>{var Doe=b2(),Loe=(t,e)=>Doe(t,e,!0);zC.exports=Loe});var u8=C((DSe,WC)=>{var XC=fl(),Foe=(t,e,n)=>{let r=new XC(t,n),l=new XC(e,n);return r.compare(l)||r.compareBuild(l)};WC.exports=Foe});var YC=C((LSe,KC)=>{var Moe=u8(),$oe=(t,e)=>t.sort((n,r)=>Moe(n,r,e));KC.exports=$oe});var QC=C((FSe,JC)=>{var joe=u8(),Uoe=(t,e)=>t.sort((n,r)=>joe(r,n,e));JC.exports=Uoe});var q1=C((MSe,ZC)=>{var Boe=b2(),Hoe=(t,e,n)=>Boe(t,e,n)>0;ZC.exports=Hoe});var c8=C(($Se,ek)=>{var qoe=b2(),Voe=(t,e,n)=>qoe(t,e,n)<0;ek.exports=Voe});var tg=C((jSe,tk)=>{var zoe=b2(),Goe=(t,e,n)=>zoe(t,e,n)===0;tk.exports=Goe});var ng=C((USe,nk)=>{var Xoe=b2(),Woe=(t,e,n)=>Xoe(t,e,n)!==0;nk.exports=Woe});var f8=C((BSe,rk)=>{var Koe=b2(),Yoe=(t,e,n)=>Koe(t,e,n)>=0;rk.exports=Yoe});var p8=C((HSe,lk)=>{var Joe=b2(),Qoe=(t,e,n)=>Joe(t,e,n)<=0;lk.exports=Qoe});var rg=C((qSe,ik)=>{var Zoe=tg(),eue=ng(),tue=q1(),nue=f8(),rue=c8(),lue=p8(),iue=(t,e,n,r)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof n=="object"&&(n=n.version),t===n;case"!==":return typeof t=="object"&&(t=t.version),typeof n=="object"&&(n=n.version),t!==n;case"":case"=":case"==":return Zoe(t,n,r);case"!=":return eue(t,n,r);case">":return tue(t,n,r);case">=":return nue(t,n,r);case"<":return rue(t,n,r);case"<=":return lue(t,n,r);default:throw new TypeError(`Invalid operator: ${e}`)}};ik.exports=iue});var ak=C((VSe,sk)=>{var sue=fl(),aue=Ra(),{safeRe:d8,t:h8}=ou(),oue=(t,e)=>{if(t instanceof sue)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let n=null;if(!e.rtl)n=t.match(d8[h8.COERCE]);else{let r;for(;(r=d8[h8.COERCERTL].exec(t))&&(!n||n.index+n[0].length!==t.length);)(!n||r.index+r[0].length!==n.index+n[0].length)&&(n=r),d8[h8.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;d8[h8.COERCERTL].lastIndex=-1}return n===null?null:aue(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,e)};sk.exports=oue});var uk=C((zSe,ok)=>{"use strict";ok.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var fk=C((GSe,ck)=>{"use strict";ck.exports=Jt;Jt.Node=Oa;Jt.create=Jt;function Jt(t){var e=this;if(e instanceof Jt||(e=new Jt),e.tail=null,e.head=null,e.length=0,t&&typeof t.forEach=="function")t.forEach(function(l){e.push(l)});else if(arguments.length>0)for(var n=0,r=arguments.length;n1)n=e;else if(this.head)r=this.head.next,n=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var l=0;r!==null;l++)n=t(n,r.value,l),r=r.next;return n};Jt.prototype.reduceReverse=function(t,e){var n,r=this.tail;if(arguments.length>1)n=e;else if(this.tail)r=this.tail.prev,n=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var l=this.length-1;r!==null;l--)n=t(n,r.value,l),r=r.prev;return n};Jt.prototype.toArray=function(){for(var t=new Array(this.length),e=0,n=this.head;n!==null;e++)t[e]=n.value,n=n.next;return t};Jt.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,n=this.tail;n!==null;e++)t[e]=n.value,n=n.prev;return t};Jt.prototype.slice=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var n=new Jt;if(ethis.length&&(e=this.length);for(var r=0,l=this.head;l!==null&&rthis.length&&(e=this.length);for(var r=this.length,l=this.tail;l!==null&&r>e;r--)l=l.prev;for(;l!==null&&r>t;r--,l=l.prev)n.push(l.value);return n};Jt.prototype.splice=function(t,e,...n){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var r=0,l=this.head;l!==null&&r{"use strict";var pue=fk(),Na=Symbol("max"),d3=Symbol("length"),cu=Symbol("lengthCalculator"),z1=Symbol("allowStale"),Ia=Symbol("maxAge"),p3=Symbol("dispose"),pk=Symbol("noDisposeOnSet"),jr=Symbol("lruList"),G2=Symbol("cache"),hk=Symbol("updateAgeOnGet"),lg=()=>1,sg=class{constructor(e){if(typeof e=="number"&&(e={max:e}),e||(e={}),e.max&&(typeof e.max!="number"||e.max<0))throw new TypeError("max must be a non-negative number");let n=this[Na]=e.max||1/0,r=e.length||lg;if(this[cu]=typeof r!="function"?lg:r,this[z1]=e.stale||!1,e.maxAge&&typeof e.maxAge!="number")throw new TypeError("maxAge must be a number");this[Ia]=e.maxAge||0,this[p3]=e.dispose,this[pk]=e.noDisposeOnSet||!1,this[hk]=e.updateAgeOnGet||!1,this.reset()}set max(e){if(typeof e!="number"||e<0)throw new TypeError("max must be a non-negative number");this[Na]=e||1/0,V1(this)}get max(){return this[Na]}set allowStale(e){this[z1]=!!e}get allowStale(){return this[z1]}set maxAge(e){if(typeof e!="number")throw new TypeError("maxAge must be a non-negative number");this[Ia]=e,V1(this)}get maxAge(){return this[Ia]}set lengthCalculator(e){typeof e!="function"&&(e=lg),e!==this[cu]&&(this[cu]=e,this[d3]=0,this[jr].forEach(n=>{n.length=this[cu](n.value,n.key),this[d3]+=n.length})),V1(this)}get lengthCalculator(){return this[cu]}get length(){return this[d3]}get itemCount(){return this[jr].length}rforEach(e,n){n=n||this;for(let r=this[jr].tail;r!==null;){let l=r.prev;dk(this,e,r,n),r=l}}forEach(e,n){n=n||this;for(let r=this[jr].head;r!==null;){let l=r.next;dk(this,e,r,n),r=l}}keys(){return this[jr].toArray().map(e=>e.key)}values(){return this[jr].toArray().map(e=>e.value)}reset(){this[p3]&&this[jr]&&this[jr].length&&this[jr].forEach(e=>this[p3](e.key,e.value)),this[G2]=new Map,this[jr]=new pue,this[d3]=0}dump(){return this[jr].map(e=>m8(this,e)?!1:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[jr]}set(e,n,r){if(r=r||this[Ia],r&&typeof r!="number")throw new TypeError("maxAge must be a number");let l=r?Date.now():0,i=this[cu](n,e);if(this[G2].has(e)){if(i>this[Na])return fu(this,this[G2].get(e)),!1;let o=this[G2].get(e).value;return this[p3]&&(this[pk]||this[p3](e,o.value)),o.now=l,o.maxAge=r,o.value=n,this[d3]+=i-o.length,o.length=i,this.get(e),V1(this),!0}let s=new ag(e,n,i,l,r);return s.length>this[Na]?(this[p3]&&this[p3](e,n),!1):(this[d3]+=s.length,this[jr].unshift(s),this[G2].set(e,this[jr].head),V1(this),!0)}has(e){if(!this[G2].has(e))return!1;let n=this[G2].get(e).value;return!m8(this,n)}get(e){return ig(this,e,!0)}peek(e){return ig(this,e,!1)}pop(){let e=this[jr].tail;return e?(fu(this,e),e.value):null}del(e){fu(this,this[G2].get(e))}load(e){this.reset();let n=Date.now();for(let r=e.length-1;r>=0;r--){let l=e[r],i=l.e||0;if(i===0)this.set(l.k,l.v);else{let s=i-n;s>0&&this.set(l.k,l.v,s)}}}prune(){this[G2].forEach((e,n)=>ig(this,n,!1))}},ig=(t,e,n)=>{let r=t[G2].get(e);if(r){let l=r.value;if(m8(t,l)){if(fu(t,r),!t[z1])return}else n&&(t[hk]&&(r.value.now=Date.now()),t[jr].unshiftNode(r));return l.value}},m8=(t,e)=>{if(!e||!e.maxAge&&!t[Ia])return!1;let n=Date.now()-e.now;return e.maxAge?n>e.maxAge:t[Ia]&&n>t[Ia]},V1=t=>{if(t[d3]>t[Na])for(let e=t[jr].tail;t[d3]>t[Na]&&e!==null;){let n=e.prev;fu(t,e),e=n}},fu=(t,e)=>{if(e){let n=e.value;t[p3]&&t[p3](n.key,n.value),t[d3]-=n.length,t[G2].delete(n.key),t[jr].removeNode(e)}},ag=class{constructor(e,n,r,l,i){this.key=e,this.value=n,this.length=r,this.now=l,this.maxAge=i||0}},dk=(t,e,n,r)=>{let l=n.value;m8(t,l)&&(fu(t,n),t[z1]||(l=void 0)),l&&e.call(r,l.value,l.key,t)};mk.exports=sg});var T2=C((WSe,Ek)=>{var og=class t{constructor(e,n){if(n=hue(n),e instanceof t)return e.loose===!!n.loose&&e.includePrerelease===!!n.includePrerelease?e:new t(e.raw,n);if(e instanceof ug)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(r=>this.parseRange(r.trim())).filter(r=>r.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let r=this.set[0];if(this.set=this.set.filter(l=>!vk(l[0])),this.set.length===0)this.set=[r];else if(this.set.length>1){for(let l of this.set)if(l.length===1&&bue(l[0])){this.set=[l];break}}}this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){let r=((this.options.includePrerelease&&_ue)|(this.options.loose&&Eue))+":"+e,l=yk.get(r);if(l)return l;let i=this.options.loose,s=i?jl[xl.HYPHENRANGELOOSE]:jl[xl.HYPHENRANGE];e=e.replace(s,Cue(this.options.includePrerelease)),Ln("hyphen replace",e),e=e.replace(jl[xl.COMPARATORTRIM],gue),Ln("comparator trim",e),e=e.replace(jl[xl.TILDETRIM],yue),Ln("tilde trim",e),e=e.replace(jl[xl.CARETTRIM],vue),Ln("caret trim",e);let a=e.split(" ").map(p=>Tue(p,this.options)).join(" ").split(/\s+/).map(p=>Iue(p,this.options));i&&(a=a.filter(p=>(Ln("loose invalid filter",p,this.options),!!p.match(jl[xl.COMPARATORLOOSE])))),Ln("range list",a);let o=new Map,c=a.map(p=>new ug(p,this.options));for(let p of c){if(vk(p))return[p];o.set(p.value,p)}o.size>1&&o.has("")&&o.delete("");let f=[...o.values()];return yk.set(r,f),f}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(r=>_k(r,n)&&e.set.some(l=>_k(l,n)&&r.every(i=>l.every(s=>i.intersects(s,n)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new mue(e,this.options)}catch{return!1}for(let n=0;nt.value==="<0.0.0-0",bue=t=>t.value==="",_k=(t,e)=>{let n=!0,r=t.slice(),l=r.pop();for(;n&&r.length;)n=r.every(i=>l.intersects(i,e)),l=r.pop();return n},Tue=(t,e)=>(Ln("comp",t,e),t=Aue(t,e),Ln("caret",t),t=Sue(t,e),Ln("tildes",t),t=Rue(t,e),Ln("xrange",t),t=Nue(t,e),Ln("stars",t),t),Al=t=>!t||t.toLowerCase()==="x"||t==="*",Sue=(t,e)=>t.trim().split(/\s+/).map(n=>xue(n,e)).join(" "),xue=(t,e)=>{let n=e.loose?jl[xl.TILDELOOSE]:jl[xl.TILDE];return t.replace(n,(r,l,i,s,a)=>{Ln("tilde",t,r,l,i,s,a);let o;return Al(l)?o="":Al(i)?o=`>=${l}.0.0 <${+l+1}.0.0-0`:Al(s)?o=`>=${l}.${i}.0 <${l}.${+i+1}.0-0`:a?(Ln("replaceTilde pr",a),o=`>=${l}.${i}.${s}-${a} <${l}.${+i+1}.0-0`):o=`>=${l}.${i}.${s} <${l}.${+i+1}.0-0`,Ln("tilde return",o),o})},Aue=(t,e)=>t.trim().split(/\s+/).map(n=>wue(n,e)).join(" "),wue=(t,e)=>{Ln("caret",t,e);let n=e.loose?jl[xl.CARETLOOSE]:jl[xl.CARET],r=e.includePrerelease?"-0":"";return t.replace(n,(l,i,s,a,o)=>{Ln("caret",t,l,i,s,a,o);let c;return Al(i)?c="":Al(s)?c=`>=${i}.0.0${r} <${+i+1}.0.0-0`:Al(a)?i==="0"?c=`>=${i}.${s}.0${r} <${i}.${+s+1}.0-0`:c=`>=${i}.${s}.0${r} <${+i+1}.0.0-0`:o?(Ln("replaceCaret pr",o),i==="0"?s==="0"?c=`>=${i}.${s}.${a}-${o} <${i}.${s}.${+a+1}-0`:c=`>=${i}.${s}.${a}-${o} <${i}.${+s+1}.0-0`:c=`>=${i}.${s}.${a}-${o} <${+i+1}.0.0-0`):(Ln("no pr"),i==="0"?s==="0"?c=`>=${i}.${s}.${a}${r} <${i}.${s}.${+a+1}-0`:c=`>=${i}.${s}.${a}${r} <${i}.${+s+1}.0-0`:c=`>=${i}.${s}.${a} <${+i+1}.0.0-0`),Ln("caret return",c),c})},Rue=(t,e)=>(Ln("replaceXRanges",t,e),t.split(/\s+/).map(n=>Oue(n,e)).join(" ")),Oue=(t,e)=>{t=t.trim();let n=e.loose?jl[xl.XRANGELOOSE]:jl[xl.XRANGE];return t.replace(n,(r,l,i,s,a,o)=>{Ln("xRange",t,r,l,i,s,a,o);let c=Al(i),f=c||Al(s),p=f||Al(a),m=p;return l==="="&&m&&(l=""),o=e.includePrerelease?"-0":"",c?l===">"||l==="<"?r="<0.0.0-0":r="*":l&&m?(f&&(s=0),a=0,l===">"?(l=">=",f?(i=+i+1,s=0,a=0):(s=+s+1,a=0)):l==="<="&&(l="<",f?i=+i+1:s=+s+1),l==="<"&&(o="-0"),r=`${l+i}.${s}.${a}${o}`):f?r=`>=${i}.0.0${o} <${+i+1}.0.0-0`:p&&(r=`>=${i}.${s}.0${o} <${i}.${+s+1}.0-0`),Ln("xRange return",r),r})},Nue=(t,e)=>(Ln("replaceStars",t,e),t.trim().replace(jl[xl.STAR],"")),Iue=(t,e)=>(Ln("replaceGTE0",t,e),t.trim().replace(jl[e.includePrerelease?xl.GTE0PRE:xl.GTE0],"")),Cue=t=>(e,n,r,l,i,s,a,o,c,f,p,m,h)=>(Al(r)?n="":Al(l)?n=`>=${r}.0.0${t?"-0":""}`:Al(i)?n=`>=${r}.${l}.0${t?"-0":""}`:s?n=`>=${n}`:n=`>=${n}${t?"-0":""}`,Al(c)?o="":Al(f)?o=`<${+c+1}.0.0-0`:Al(p)?o=`<${c}.${+f+1}.0-0`:m?o=`<=${c}.${f}.${p}-${m}`:t?o=`<${c}.${f}.${+p+1}-0`:o=`<=${o}`,`${n} ${o}`.trim()),kue=(t,e,n)=>{for(let r=0;r0){let l=t[r].semver;if(l.major===e.major&&l.minor===e.minor&&l.patch===e.patch)return!0}return!1}return!0}});var G1=C((KSe,wk)=>{var X1=Symbol("SemVer ANY"),pg=class t{static get ANY(){return X1}constructor(e,n){if(n=bk(n),e instanceof t){if(e.loose===!!n.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),fg("comparator",e,n),this.options=n,this.loose=!!n.loose,this.parse(e),this.semver===X1?this.value="":this.value=this.operator+this.semver.version,fg("comp",this)}parse(e){let n=this.options.loose?Tk[Sk.COMPARATORLOOSE]:Tk[Sk.COMPARATOR],r=e.match(n);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=r[1]!==void 0?r[1]:"",this.operator==="="&&(this.operator=""),r[2]?this.semver=new xk(r[2],this.options.loose):this.semver=X1}toString(){return this.value}test(e){if(fg("Comparator.test",e,this.options.loose),this.semver===X1||e===X1)return!0;if(typeof e=="string")try{e=new xk(e,this.options)}catch{return!1}return cg(e,this.operator,this.semver,this.options)}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new Ak(e.value,n).test(this.value):e.operator===""?e.value===""?!0:new Ak(this.value,n).test(e.semver):(n=bk(n),n.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!n.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||cg(this.semver,"<",e.semver,n)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||cg(this.semver,">",e.semver,n)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};wk.exports=pg;var bk=s8(),{safeRe:Tk,t:Sk}=ou(),cg=rg(),fg=H1(),xk=fl(),Ak=T2()});var W1=C((YSe,Rk)=>{var Pue=T2(),Due=(t,e,n)=>{try{e=new Pue(e,n)}catch{return!1}return e.test(t)};Rk.exports=Due});var Nk=C((JSe,Ok)=>{var Lue=T2(),Fue=(t,e)=>new Lue(t,e).set.map(n=>n.map(r=>r.value).join(" ").trim().split(" "));Ok.exports=Fue});var Ck=C((QSe,Ik)=>{var Mue=fl(),$ue=T2(),jue=(t,e,n)=>{let r=null,l=null,i=null;try{i=new $ue(e,n)}catch{return null}return t.forEach(s=>{i.test(s)&&(!r||l.compare(s)===-1)&&(r=s,l=new Mue(r,n))}),r};Ik.exports=jue});var Pk=C((ZSe,kk)=>{var Uue=fl(),Bue=T2(),Hue=(t,e,n)=>{let r=null,l=null,i=null;try{i=new Bue(e,n)}catch{return null}return t.forEach(s=>{i.test(s)&&(!r||l.compare(s)===1)&&(r=s,l=new Uue(r,n))}),r};kk.exports=Hue});var Fk=C((exe,Lk)=>{var dg=fl(),que=T2(),Dk=q1(),Vue=(t,e)=>{t=new que(t,e);let n=new dg("0.0.0");if(t.test(n)||(n=new dg("0.0.0-0"),t.test(n)))return n;n=null;for(let r=0;r{let a=new dg(s.semver.version);switch(s.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!i||Dk(a,i))&&(i=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${s.operator}`)}}),i&&(!n||Dk(n,i))&&(n=i)}return n&&t.test(n)?n:null};Lk.exports=Vue});var $k=C((txe,Mk)=>{var zue=T2(),Gue=(t,e)=>{try{return new zue(t,e).range||"*"}catch{return null}};Mk.exports=Gue});var g8=C((nxe,Hk)=>{var Xue=fl(),Bk=G1(),{ANY:Wue}=Bk,Kue=T2(),Yue=W1(),jk=q1(),Uk=c8(),Jue=p8(),Que=f8(),Zue=(t,e,n,r)=>{t=new Xue(t,r),e=new Kue(e,r);let l,i,s,a,o;switch(n){case">":l=jk,i=Jue,s=Uk,a=">",o=">=";break;case"<":l=Uk,i=Que,s=jk,a="<",o="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Yue(t,e,r))return!1;for(let c=0;c{h.semver===Wue&&(h=new Bk(">=0.0.0")),p=p||h,m=m||h,l(h.semver,p.semver,r)?p=h:s(h.semver,m.semver,r)&&(m=h)}),p.operator===a||p.operator===o||(!m.operator||m.operator===a)&&i(t,m.semver))return!1;if(m.operator===o&&s(t,m.semver))return!1}return!0};Hk.exports=Zue});var Vk=C((rxe,qk)=>{var e4e=g8(),t4e=(t,e,n)=>e4e(t,e,">",n);qk.exports=t4e});var Gk=C((lxe,zk)=>{var n4e=g8(),r4e=(t,e,n)=>n4e(t,e,"<",n);zk.exports=r4e});var Kk=C((ixe,Wk)=>{var Xk=T2(),l4e=(t,e,n)=>(t=new Xk(t,n),e=new Xk(e,n),t.intersects(e,n));Wk.exports=l4e});var Jk=C((sxe,Yk)=>{var i4e=W1(),s4e=b2();Yk.exports=(t,e,n)=>{let r=[],l=null,i=null,s=t.sort((f,p)=>s4e(f,p,n));for(let f of s)i4e(f,e,n)?(i=f,l||(l=f)):(i&&r.push([l,i]),i=null,l=null);l&&r.push([l,null]);let a=[];for(let[f,p]of r)f===p?a.push(f):!p&&f===s[0]?a.push("*"):p?f===s[0]?a.push(`<=${p}`):a.push(`${f} - ${p}`):a.push(`>=${f}`);let o=a.join(" || "),c=typeof e.raw=="string"?e.raw:String(e);return o.length{var Qk=T2(),mg=G1(),{ANY:hg}=mg,K1=W1(),gg=b2(),a4e=(t,e,n={})=>{if(t===e)return!0;t=new Qk(t,n),e=new Qk(e,n);let r=!1;e:for(let l of t.set){for(let i of e.set){let s=u4e(l,i,n);if(r=r||s!==null,s)continue e}if(r)return!1}return!0},o4e=[new mg(">=0.0.0-0")],Zk=[new mg(">=0.0.0")],u4e=(t,e,n)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===hg){if(e.length===1&&e[0].semver===hg)return!0;n.includePrerelease?t=o4e:t=Zk}if(e.length===1&&e[0].semver===hg){if(n.includePrerelease)return!0;e=Zk}let r=new Set,l,i;for(let h of t)h.operator===">"||h.operator===">="?l=eP(l,h,n):h.operator==="<"||h.operator==="<="?i=tP(i,h,n):r.add(h.semver);if(r.size>1)return null;let s;if(l&&i){if(s=gg(l.semver,i.semver,n),s>0)return null;if(s===0&&(l.operator!==">="||i.operator!=="<="))return null}for(let h of r){if(l&&!K1(h,String(l),n)||i&&!K1(h,String(i),n))return null;for(let g of e)if(!K1(h,String(g),n))return!1;return!0}let a,o,c,f,p=i&&!n.includePrerelease&&i.semver.prerelease.length?i.semver:!1,m=l&&!n.includePrerelease&&l.semver.prerelease.length?l.semver:!1;p&&p.prerelease.length===1&&i.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(let h of e){if(f=f||h.operator===">"||h.operator===">=",c=c||h.operator==="<"||h.operator==="<=",l){if(m&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===m.major&&h.semver.minor===m.minor&&h.semver.patch===m.patch&&(m=!1),h.operator===">"||h.operator===">="){if(a=eP(l,h,n),a===h&&a!==l)return!1}else if(l.operator===">="&&!K1(l.semver,String(h),n))return!1}if(i){if(p&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===p.major&&h.semver.minor===p.minor&&h.semver.patch===p.patch&&(p=!1),h.operator==="<"||h.operator==="<="){if(o=tP(i,h,n),o===h&&o!==i)return!1}else if(i.operator==="<="&&!K1(i.semver,String(h),n))return!1}if(!h.operator&&(i||l)&&s!==0)return!1}return!(l&&c&&!i&&s!==0||i&&f&&!l&&s!==0||m||p)},eP=(t,e,n)=>{if(!t)return e;let r=gg(t.semver,e.semver,n);return r>0?t:r<0||e.operator===">"&&t.operator===">="?e:t},tP=(t,e,n)=>{if(!t)return e;let r=gg(t.semver,e.semver,n);return r<0?t:r>0||e.operator==="<"&&t.operator==="<="?e:t};nP.exports=a4e});var vg=C((oxe,sP)=>{var yg=ou(),lP=B1(),c4e=fl(),iP=Zm(),f4e=Ra(),p4e=xC(),d4e=wC(),h4e=NC(),m4e=kC(),g4e=DC(),y4e=FC(),v4e=$C(),_4e=UC(),E4e=b2(),b4e=VC(),T4e=GC(),S4e=u8(),x4e=YC(),A4e=QC(),w4e=q1(),R4e=c8(),O4e=tg(),N4e=ng(),I4e=f8(),C4e=p8(),k4e=rg(),P4e=ak(),D4e=G1(),L4e=T2(),F4e=W1(),M4e=Nk(),$4e=Ck(),j4e=Pk(),U4e=Fk(),B4e=$k(),H4e=g8(),q4e=Vk(),V4e=Gk(),z4e=Kk(),G4e=Jk(),X4e=rP();sP.exports={parse:f4e,valid:p4e,clean:d4e,inc:h4e,diff:m4e,major:g4e,minor:y4e,patch:v4e,prerelease:_4e,compare:E4e,rcompare:b4e,compareLoose:T4e,compareBuild:S4e,sort:x4e,rsort:A4e,gt:w4e,lt:R4e,eq:O4e,neq:N4e,gte:I4e,lte:C4e,cmp:k4e,coerce:P4e,Comparator:D4e,Range:L4e,satisfies:F4e,toComparators:M4e,maxSatisfying:$4e,minSatisfying:j4e,minVersion:U4e,validRange:B4e,outside:H4e,gtr:q4e,ltr:V4e,intersects:z4e,simplifyRange:G4e,subset:X4e,SemVer:c4e,re:yg.re,src:yg.src,tokens:yg.t,SEMVER_SPEC_VERSION:lP.SEMVER_SPEC_VERSION,RELEASE_TYPES:lP.RELEASE_TYPES,compareIdentifiers:iP.compareIdentifiers,rcompareIdentifiers:iP.rcompareIdentifiers}});var v8=C((uxe,Tg)=>{"use strict";var y8=uC(),W4e=vg(),{FSTDEP005:K4e,FSTDEP012:Y4e,FSTDEP015:J4e,FSTDEP016:Q4e,FSTDEP017:Z4e,FSTDEP018:e1e}=l3(),{kHasBeenDecorated:t1e,kSchemaBody:n1e,kSchemaHeaders:r1e,kSchemaParams:l1e,kSchemaQuerystring:aP,kSchemaController:_g,kOptions:i1e,kRequestCacheValidateFns:Z3,kRouteContext:or,kPublicRouteContext:oP,kRequestOriginalUrl:Eg}=Mr(),{FST_ERR_REQ_INVALID_VALIDATION_INVOCATION:s1e}=al(),uP={body:n1e,headers:r1e,params:l1e,querystring:aP,query:aP};function bg(t,e,n,r,l,i){this.id=t,this[or]=i,this.params=e,this.raw=n,this.query=r,this.log=l,this.body=void 0}bg.props=[];function a1e(t){if(typeof t=="function")return t;if(t===!0)return function(){return!0};if(typeof t=="number")return function(e,n){return nn.trim());return y8.compile(e)}return y8.compile(t)}function o1e(t,e){return e?u1e(t,e):fP(t)}function fP(t){let e=t.props.slice();function n(r,l,i,s,a,o){this.id=r,this[or]=o,this.params=l,this.raw=i,this.query=s,this.log=a,this.body=void 0;for(var c,f=0;ft.config},schema:{get:()=>t.schema}}),Object.freeze(l)}},routerMethod:{get(){return e1e(),this[or].config?.method}},routeConfig:{get(){return Q4e(),this[or][oP]?.config}},routeSchema:{get(){return J4e(),this[or][oP].schema}},is404:{get(){return this[or].config?.url===void 0}},connection:{get(){return W4e.gte(process.versions.node,"13.0.0")&&K4e(),this.raw.connection}},socket:{get(){return this.raw.socket}},ip:{get(){if(this.socket)return this.socket.remoteAddress}},hostname:{get(){return this.raw.headers.host||this.raw.headers[":authority"]}},protocol:{get(){if(this.socket)return this.socket.encrypted?"https":"http"}},headers:{get(){return this.additionalHeaders?Object.assign({},this.raw.headers,this.additionalHeaders):this.raw.headers},set(t){this.additionalHeaders=t}},getValidationFunction:{value:function(t){if(typeof t=="string"){let e=uP[t];return this[or][e]}else if(typeof t=="object")return this[or][Z3]?.get(t)}},compileValidationSchema:{value:function(t,e=null){let{method:n,url:r}=this;if(this[or][Z3]?.has(t))return this[or][Z3].get(t);let i=(this[or].validatorCompiler||this.server[_g].validatorCompiler||this.server[_g].setupValidator(this.server[i1e])||this.server[_g].validatorCompiler)({schema:t,method:n,url:r,httpPart:e});return this[or][Z3]==null&&(this[or][Z3]=new WeakMap),this[or][Z3].set(t,i),i}},validateInput:{value:function(t,e,n){n=typeof e=="string"?e:n;let r=n!=null&&typeof n=="string"&&uP[n],l;if(r&&(l=this[or][r]),l==null&&(e==null||typeof e!="object"||Array.isArray(e)))throw new s1e(n);return l==null&&(this[or][Z3]?.has(e)?l=this[or][Z3].get(e):l=this.compileValidationSchema(e,n)),l(t)}}});Tg.exports=bg;Tg.exports.buildRequest=o1e});var _8=C((cxe,pP)=>{"use strict";var{kFourOhFourContext:c1e,kReplySerializerDefault:f1e,kSchemaErrorFormatter:p1e,kErrorHandler:d1e,kChildLoggerFactory:h1e,kOptions:m1e,kReply:g1e,kRequest:y1e,kBodyLimit:v1e,kLogLevel:_1e,kContentTypeParser:E1e,kRouteByFastify:b1e,kRequestCacheValidateFns:T1e,kReplyCacheSerializeFns:S1e,kPublicRouteContext:x1e}=Mr();function A1e({schema:t,handler:e,config:n,requestIdLogLabel:r,childLoggerFactory:l,errorHandler:i,bodyLimit:s,logLevel:a,logSerializers:o,attachValidation:c,validatorCompiler:f,serializerCompiler:p,replySerializer:m,schemaErrorFormatter:h,exposeHeadRoute:g,prefixTrailingSlash:_,server:S,isFastify:T}){this.schema=t,this.handler=e,this.Reply=S[g1e],this.Request=S[y1e],this.contentTypeParser=S[E1e],this.onRequest=null,this.onSend=null,this.onError=null,this.onTimeout=null,this.preHandler=null,this.onResponse=null,this.preSerialization=null,this.onRequestAbort=null,this.config=n,this.errorHandler=i||S[d1e],this.requestIdLogLabel=r||S[m1e].requestIdLogLabel,this.childLoggerFactory=l||S[h1e],this._middie=null,this._parserOptions={limit:s||S[v1e]},this.exposeHeadRoute=g,this.prefixTrailingSlash=_,this.logLevel=a||S[_1e],this.logSerializers=o,this[c1e]=null,this.attachValidation=c,this[f1e]=m,this.schemaErrorFormatter=h||S[p1e]||R1e,this[b1e]=T,this[T1e]=null,this[S1e]=null,this.validatorCompiler=f||null,this.serializerCompiler=p||null,this[x1e]=w1e(this),this.server=S}function w1e(t){return Object.create(null,{schema:{enumerable:!0,get(){return t.schema}},config:{enumerable:!0,get(){return t.config}}})}function R1e(t,e){let n="",r=", ";for(var l=0;l!==t.length;++l){let i=t[l];n+=e+(i.instancePath||"")+" "+i.message+r}return new Error(n.slice(0,-r.length))}pP.exports=A1e});var Sg=C((fxe,dP)=>{"use strict";dP.exports={supportedMethods:["DELETE","GET","HEAD","PATCH","POST","PUT","OPTIONS","PROPFIND","PROPPATCH","MKCOL","COPY","MOVE","LOCK","UNLOCK","TRACE","SEARCH"]}});var Og=C((pxe,yP)=>{"use strict";var{kReply:xg,kRequest:Ag,kState:O1e,kHasBeenDecorated:N1e}=Mr(),{FST_ERR_DEC_ALREADY_PRESENT:hP,FST_ERR_DEC_MISSING_DEPENDENCY:I1e,FST_ERR_DEC_AFTER_START:C1e,FST_ERR_DEC_DEPENDENCY_INVALID_TYPE:k1e}=al(),{FSTDEP006:P1e}=l3();function D1e(t,e,n,r){if(Object.prototype.hasOwnProperty.call(t,e))throw new hP(e);wg(t,e,r),n&&(typeof n.getter=="function"||typeof n.setter=="function")?Object.defineProperty(t,e,{get:n.getter,set:n.setter}):t[e]=n}function mP(t,e,n,r){let l=t.prototype;if(Object.prototype.hasOwnProperty.call(l,e)||b8(t,e))throw new hP(e);t[N1e]=!0,wg(t,e,r),n&&(typeof n.getter=="function"||typeof n.setter=="function")?Object.defineProperty(l,e,{get:n.getter,set:n.setter}):typeof n=="function"?l[e]=n:t.props.push({key:e,value:n})}function gP(t,e){typeof e=="object"&&e&&!(typeof e.getter=="function"||typeof e.setter=="function")&&P1e(t)}function L1e(t,e,n){return Rg(this,t),D1e(this,t,e,n),this}function E8(t,e){return e?e in t||t.prototype&&e in t.prototype||b8(t,e):t in this}function b8(t,e){return t.props?t.props.find(({key:n})=>n===e):!1}function F1e(t){return t&&b8(this[Ag],t)?!0:E8(this[Ag].prototype,t)}function M1e(t){return t&&b8(this[xg],t)?!0:E8(this[xg].prototype,t)}function wg(t,e,n){if(n!=null){if(!Array.isArray(n))throw new k1e(e);for(var r=0;r!==n.length;++r)if(!E8(t,n[r]))throw new I1e(n[r])}}function $1e(t,e,n){return Rg(this,t),gP(t,e),mP(this[xg],t,e,n),this}function j1e(t,e,n){return Rg(this,t),gP(t,e),mP(this[Ag],t,e,n),this}function Rg(t,e){if(t[O1e].started)throw new C1e(e)}yP.exports={add:L1e,exist:E8,existRequest:F1e,existReply:M1e,dependencies:wg,decorateReply:$1e,decorateRequest:j1e}});var _P=C(bi=>{"use strict";var Ng=class{constructor(e=1e3,n=0){if(isNaN(e)||e<0)throw new Error("Invalid max value");if(isNaN(n)||n<0)throw new Error("Invalid ttl value");this.first=null,this.items=new Map,this.last=null,this.max=e,this.ttl=n}get size(){return this.items.size}clear(){this.items=new Map,this.first=null,this.last=null}delete(e){if(this.items.has(e)){let n=this.items.get(e);this.items.delete(e),n.prev!==null&&(n.prev.next=n.next),n.next!==null&&(n.next.prev=n.prev),this.first===n&&(this.first=n.next),this.last===n&&(this.last=n.prev)}}deleteMany(e){for(var n=0;n0){let e=this.first;this.items.delete(e.key),this.size===0?(this.first=null,this.last=null):(this.first=e.next,this.first.prev=null)}}expiresAt(e){if(this.items.has(e))return this.items.get(e).expiry}get(e){if(this.items.has(e)){let n=this.items.get(e);if(this.ttl>0&&n.expiry<=Date.now()){this.delete(e);return}return n.value}}getMany(e){let n=[];for(var r=0;r0?Date.now()+this.ttl:this.ttl;return}this.max>0&&this.size===this.max&&this.evict();let r={expiry:this.ttl>0?Date.now()+this.ttl:this.ttl,key:e,prev:this.last,next:null,value:n};this.items.set(e,r),this.size===1?this.first=r:this.last.next=r,this.last=r}},Ig=class{constructor(e=1e3,n=0){if(isNaN(e)||e<0)throw new Error("Invalid max value");if(isNaN(n)||n<0)throw new Error("Invalid ttl value");this.first=null,this.items=new Map,this.last=null,this.max=e,this.ttl=n}get size(){return this.items.size}bumpLru(e){if(this.last===e)return;let n=this.last,r=e.next,l=e.prev;this.first===e&&(this.first=r),e.next=null,e.prev=n,n.next=e,l!==null&&(l.next=r),r!==null&&(r.prev=l),this.last=e}clear(){this.items=new Map,this.first=null,this.last=null}delete(e){if(this.items.has(e)){let n=this.items.get(e);this.items.delete(e),n.prev!==null&&(n.prev.next=n.next),n.next!==null&&(n.next.prev=n.prev),this.first===n&&(this.first=n.next),this.last===n&&(this.last=n.prev)}}deleteMany(e){for(var n=0;n0){let e=this.first;this.items.delete(e.key),this.size===0?(this.first=null,this.last=null):(this.first=e.next,this.first.prev=null)}}expiresAt(e){if(this.items.has(e))return this.items.get(e).expiry}get(e){if(this.items.has(e)){let n=this.items.get(e);if(this.ttl>0&&n.expiry<=Date.now()){this.delete(e);return}return this.bumpLru(n),n.value}}getMany(e){let n=[];for(var r=0;r0?Date.now()+this.ttl:this.ttl,this.last!==l&&this.bumpLru(l);return}this.max>0&&this.size===this.max&&this.evict();let r={expiry:this.ttl>0?Date.now()+this.ttl:this.ttl,key:e,prev:this.last,next:null,value:n};this.items.set(e,r),this.size===1?this.first=r:this.last.next=r,this.last=r}},Y1=class{constructor(e=1e3,n=0){if(isNaN(e)||e<0)throw new Error("Invalid max value");if(isNaN(n)||n<0)throw new Error("Invalid ttl value");this.first=null,this.items=Object.create(null),this.last=null,this.size=0,this.max=e,this.ttl=n}bumpLru(e){if(this.last===e)return;let n=this.last,r=e.next,l=e.prev;this.first===e&&(this.first=r),e.next=null,e.prev=n,n.next=e,l!==null&&(l.next=r),r!==null&&(r.prev=l),this.last=e}clear(){this.items=Object.create(null),this.first=null,this.last=null,this.size=0}delete(e){if(Object.prototype.hasOwnProperty.call(this.items,e)){let n=this.items[e];delete this.items[e],this.size--,n.prev!==null&&(n.prev.next=n.next),n.next!==null&&(n.next.prev=n.prev),this.first===n&&(this.first=n.next),this.last===n&&(this.last=n.prev)}}deleteMany(e){for(var n=0;n0){let e=this.first;delete this.items[e.key],--this.size===0?(this.first=null,this.last=null):(this.first=e.next,this.first.prev=null)}}expiresAt(e){if(Object.prototype.hasOwnProperty.call(this.items,e))return this.items[e].expiry}get(e){if(Object.prototype.hasOwnProperty.call(this.items,e)){let n=this.items[e];if(this.ttl>0&&n.expiry<=Date.now()){this.delete(e);return}return this.bumpLru(n),n.value}}getMany(e){let n=[];for(var r=0;r0?Date.now()+this.ttl:this.ttl,this.last!==l&&this.bumpLru(l);return}this.max>0&&this.size===this.max&&this.evict();let r={expiry:this.ttl>0?Date.now()+this.ttl:this.ttl,key:e,prev:this.last,next:null,value:n};this.items[e]=r,++this.size===1?this.first=r:this.last.next=r,this.last=r}},T8=class{constructor(){this.records={}}initForCache(e,n){this.records[e]={[n]:{cacheSize:0,hits:0,falsyHits:0,emptyHits:0,misses:0,expirations:0,evictions:0,invalidateOne:0,invalidateAll:0,sets:0}}}resetForCache(e){for(let n of Object.keys(this.records[e]))this.records[e][n]={cacheSize:0,hits:0,falsyHits:0,emptyHits:0,misses:0,expirations:0,evictions:0,invalidateOne:0,invalidateAll:0,sets:0}}getStatistics(){return this.records}};function vP(t){return`${t.getFullYear()}-${(t.getMonth()+1).toString().padStart(2,"0")}-${t.getDate().toString().padStart(2,"0")}`}var Cg=class{constructor(e,n,r){this.cacheId=e,this.statisticTtlInHours=n,this.collectionStart=new Date,this.currentTimeStamp=vP(this.collectionStart),this.records=r||new T8,this.records.initForCache(this.cacheId,this.currentTimeStamp)}get currentRecord(){return this.records.records[this.cacheId][this.currentTimeStamp]||(this.records.records[this.cacheId][this.currentTimeStamp]={cacheSize:0,hits:0,falsyHits:0,emptyHits:0,misses:0,expirations:0,evictions:0,sets:0,invalidateOne:0,invalidateAll:0}),this.records.records[this.cacheId][this.currentTimeStamp]}hoursPassed(){return(Date.now()-this.collectionStart)/1e3/60/60}addHit(){this.archiveIfNeeded(),this.currentRecord.hits++}addFalsyHit(){this.archiveIfNeeded(),this.currentRecord.falsyHits++}addEmptyHit(){this.archiveIfNeeded(),this.currentRecord.emptyHits++}addMiss(){this.archiveIfNeeded(),this.currentRecord.misses++}addEviction(){this.archiveIfNeeded(),this.currentRecord.evictions++}setCacheSize(e){this.archiveIfNeeded(),this.currentRecord.cacheSize=e}addExpiration(){this.archiveIfNeeded(),this.currentRecord.expirations++}addSet(){this.archiveIfNeeded(),this.currentRecord.sets++}addInvalidateOne(){this.archiveIfNeeded(),this.currentRecord.invalidateOne++}addInvalidateAll(){this.archiveIfNeeded(),this.currentRecord.invalidateAll++}getStatistics(){return this.records.getStatistics()}archiveIfNeeded(){this.hoursPassed()>=this.statisticTtlInHours&&(this.collectionStart=new Date,this.currentTimeStamp=vP(this.collectionStart),this.records.initForCache(this.cacheId,this.currentTimeStamp))}},S8=class extends Y1{constructor(e,n,r,l,i){if(super(e||1e3,n||0),!r)throw new Error("Cache id is mandatory");this.hitStatistics=new Cg(r,i!==void 0?i:24,l)}getStatistics(){return this.hitStatistics.getStatistics()}set(e,n){super.set(e,n),this.hitStatistics.addSet(),this.hitStatistics.setCacheSize(this.size)}evict(){super.evict(),this.hitStatistics.addEviction(),this.hitStatistics.setCacheSize(this.size)}delete(e,n=!1){super.delete(e),n||this.hitStatistics.addInvalidateOne(),this.hitStatistics.setCacheSize(this.size)}clear(){super.clear(),this.hitStatistics.addInvalidateAll(),this.hitStatistics.setCacheSize(this.size)}get(e){if(Object.prototype.hasOwnProperty.call(this.items,e)){let n=this.items[e];if(this.ttl>0&&n.expiry<=Date.now()){this.delete(e,!0),this.hitStatistics.addExpiration();return}return this.bumpLru(n),n.value||this.hitStatistics.addFalsyHit(),(n.value===void 0||n.value===null||n.value==="")&&this.hitStatistics.addEmptyHit(),this.hitStatistics.addHit(),n.value}this.hitStatistics.addMiss()}},x8=class{constructor(e=1e3,n=0){if(isNaN(e)||e<0)throw new Error("Invalid max value");if(isNaN(n)||n<0)throw new Error("Invalid ttl value");this.first=null,this.items=Object.create(null),this.last=null,this.size=0,this.max=e,this.ttl=n}clear(){this.items=Object.create(null),this.first=null,this.last=null,this.size=0}delete(e){if(Object.prototype.hasOwnProperty.call(this.items,e)){let n=this.items[e];delete this.items[e],this.size--,n.prev!==null&&(n.prev.next=n.next),n.next!==null&&(n.next.prev=n.prev),this.first===n&&(this.first=n.next),this.last===n&&(this.last=n.prev)}}deleteMany(e){for(var n=0;n0){let e=this.first;delete this.items[e.key],--this.size===0?(this.first=null,this.last=null):(this.first=e.next,this.first.prev=null)}}expiresAt(e){if(Object.prototype.hasOwnProperty.call(this.items,e))return this.items[e].expiry}get(e){if(Object.prototype.hasOwnProperty.call(this.items,e)){let n=this.items[e];if(this.ttl>0&&n.expiry<=Date.now()){this.delete(e);return}return n.value}}getMany(e){let n=[];for(var r=0;r0?Date.now()+this.ttl:this.ttl;return}this.max>0&&this.size===this.max&&this.evict();let r={expiry:this.ttl>0?Date.now()+this.ttl:this.ttl,key:e,prev:this.last,next:null,value:n};this.items[e]=r,++this.size===1?this.first=r:this.last.next=r,this.last=r}};bi.Fifo=x8;bi.FifoMap=Ng;bi.FifoObject=x8;bi.HitStatisticsRecord=T8;bi.Lru=Y1;bi.LruHitStatistics=S8;bi.LruMap=Ig;bi.LruObject=Y1;bi.LruObjectHitStatistics=S8});var SP=C((hxe,J1)=>{"use strict";var R8=function(){};R8.prototype=Object.create(null);var A8=/; *([!#$%&'*+.^\w`|~-]+)=("(?:[\v\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\v\u0020-\u00ff])*"|[!#$%&'*+.^\w`|~-]+) */gu,w8=/\\([\v\u0020-\u00ff])/gu,EP=/^[!#$%&'*+.^\w|~-]+\/[!#$%&'*+.^\w|~-]+$/u,Ca={type:"",parameters:new R8};Object.freeze(Ca.parameters);Object.freeze(Ca);function bP(t){if(typeof t!="string")throw new TypeError("argument header is required and must be a string");let e=t.indexOf(";"),n=e!==-1?t.slice(0,e).trim():t.trim();if(EP.test(n)===!1)throw new TypeError("invalid media type");let r={type:n.toLowerCase(),parameters:new R8};if(e===-1)return r;let l,i,s;for(A8.lastIndex=e;i=A8.exec(t);){if(i.index!==e)throw new TypeError("invalid parameter format");e+=i[0].length,l=i[1].toLowerCase(),s=i[2],s[0]==='"'&&(s=s.slice(1,s.length-1),w8.test(s)&&(s=s.replace(w8,"$1"))),r.parameters[l]=s}if(e!==t.length)throw new TypeError("invalid parameter format");return r}function TP(t){if(typeof t!="string")return Ca;let e=t.indexOf(";"),n=e!==-1?t.slice(0,e).trim():t.trim();if(EP.test(n)===!1)return Ca;let r={type:n.toLowerCase(),parameters:new R8};if(e===-1)return r;let l,i,s;for(A8.lastIndex=e;i=A8.exec(t);){if(i.index!==e)return Ca;e+=i[0].length,l=i[1].toLowerCase(),s=i[2],s[0]==='"'&&(s=s.slice(1,s.length-1),w8.test(s)&&(s=s.replace(w8,"$1"))),r.parameters[l]=s}return e!==t.length?Ca:r}J1.exports.default={parse:bP,safeParse:TP};J1.exports.parse=bP;J1.exports.safeParse=TP;J1.exports.defaultContentType=Ca});var OP=C((mxe,pu)=>{"use strict";var U1e=typeof Buffer<"u",xP=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,AP=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function wP(t,e,n){n==null&&e!==null&&typeof e=="object"&&(n=e,e=void 0),U1e&&Buffer.isBuffer(t)&&(t=t.toString()),t&&t.charCodeAt(0)===65279&&(t=t.slice(1));let r=JSON.parse(t,e);if(r===null||typeof r!="object")return r;let l=n&&n.protoAction||"error",i=n&&n.constructorAction||"error";if(l==="ignore"&&i==="ignore")return r;if(l!=="ignore"&&i!=="ignore"){if(xP.test(t)===!1&&AP.test(t)===!1)return r}else if(l!=="ignore"&&i==="ignore"){if(xP.test(t)===!1)return r}else if(AP.test(t)===!1)return r;return RP(r,{protoAction:l,constructorAction:i,safe:n&&n.safe})}function RP(t,{protoAction:e="error",constructorAction:n="error",safe:r}={}){let l=[t];for(;l.length;){let i=l;l=[];for(let s of i){if(e!=="ignore"&&Object.prototype.hasOwnProperty.call(s,"__proto__")){if(r===!0)return null;if(e==="error")throw new SyntaxError("Object contains forbidden prototype property");delete s.__proto__}if(n!=="ignore"&&Object.prototype.hasOwnProperty.call(s,"constructor")&&Object.prototype.hasOwnProperty.call(s.constructor,"prototype")){if(r===!0)return null;if(n==="error")throw new SyntaxError("Object contains forbidden prototype property");delete s.constructor}for(let a in s){let o=s[a];o&&typeof o=="object"&&l.push(o)}}}return t}function kg(t,e,n){let r=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return wP(t,e,n)}finally{Error.stackTraceLimit=r}}function B1e(t,e){let n=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return wP(t,e,{safe:!0})}catch{return null}finally{Error.stackTraceLimit=n}}pu.exports=kg;pu.exports.default=kg;pu.exports.parse=kg;pu.exports.safeParse=B1e;pu.exports.scan=RP});var Mg=C((gxe,Z1)=>{"use strict";var{AsyncResource:H1e}=require("node:async_hooks"),{Fifo:IP}=_P(),{safeParse:CP,defaultContentType:q1e}=SP(),V1e=OP(),{kDefaultJsonParse:Q1,kContentTypeParser:du,kBodyLimit:z1e,kRequestPayloadStream:kP,kState:Dg,kTestInternals:G1e,kReplyIsError:PP,kRouteContext:X1e}=Mr(),{FST_ERR_CTP_INVALID_TYPE:DP,FST_ERR_CTP_EMPTY_TYPE:W1e,FST_ERR_CTP_ALREADY_PRESENT:K1e,FST_ERR_CTP_INVALID_HANDLER:Y1e,FST_ERR_CTP_INVALID_PARSE_TYPE:J1e,FST_ERR_CTP_BODY_TOO_LARGE:NP,FST_ERR_CTP_INVALID_MEDIA_TYPE:Q1e,FST_ERR_CTP_INVALID_CONTENT_LENGTH:Z1e,FST_ERR_CTP_EMPTY_JSON_BODY:e0e,FST_ERR_CTP_INSTANCE_ALREADY_STARTED:Lg}=al();function h3(t,e,n){this[Q1]=FP(e,n),this.customParsers=new Map,this.customParsers.set("application/json",new Pg(!0,!1,t,this[Q1])),this.customParsers.set("text/plain",new Pg(!0,!1,t,Fg)),this.parserList=[new O8("application/json"),new O8("text/plain")],this.parserRegExpList=[],this.cache=new IP(100)}h3.prototype.add=function(t,e,n){let r=typeof t=="string";if(!r&&!(t instanceof RegExp))throw new DP;if(r&&t.length===0)throw new W1e;if(typeof n!="function")throw new Y1e;if(this.existingParser(t))throw new K1e(t);if(e.parseAs!==void 0&&e.parseAs!=="string"&&e.parseAs!=="buffer")throw new J1e(e.parseAs);let l=new Pg(e.parseAs==="string",e.parseAs==="buffer",e.bodyLimit,n);r&&t==="*"?this.customParsers.set("",l):(r?this.parserList.unshift(new O8(t)):(t.isEssence=t.source.indexOf(";")===-1,this.parserRegExpList.unshift(t)),this.customParsers.set(t.toString(),l))};h3.prototype.hasParser=function(t){return this.customParsers.has(typeof t=="string"?t:t.toString())};h3.prototype.existingParser=function(t){return t==="application/json"&&this.customParsers.has(t)?this.customParsers.get(t).fn!==this[Q1]:t==="text/plain"&&this.customParsers.has(t)?this.customParsers.get(t).fn!==Fg:this.hasParser(t)};h3.prototype.getParser=function(t){if(this.hasParser(t))return this.customParsers.get(t);let e=this.cache.get(t);if(e!==void 0)return e;let n=CP(t);if(n===q1e)return this.customParsers.get("");for(var r=0;r!==this.parserList.length;++r){let i=this.parserList[r];if(s0e(n,i)){let s=this.customParsers.get(i.name);return this.cache.set(t,s),s}}for(var l=0;l!==this.parserRegExpList.length;++l){let i=this.parserRegExpList[l];if(a0e(t,n.type,i)){let s=this.customParsers.get(i.toString());return this.cache.set(t,s),s}}return this.customParsers.get("")};h3.prototype.removeAll=function(){this.customParsers=new Map,this.parserRegExpList=[],this.parserList=[],this.cache=new IP(100)};h3.prototype.remove=function(t){if(!(typeof t=="string"||t instanceof RegExp))throw new DP;let e=this.customParsers.delete(t.toString()),n=typeof t=="string"?this.parserList:this.parserRegExpList,r=n.findIndex(l=>l.toString()===t.toString());return r>-1&&n.splice(r,1),e||r>-1};h3.prototype.run=function(t,e,n,r){let l=this.getParser(t);if(l===void 0){n.is404?e(n,r):r.send(new Q1e(t||void 0));return}let i=new H1e("content-type-parser:run",n);if(l.asString===!0||l.asBuffer===!0)LP(n,r,r[X1e]._parserOptions,l,s);else{let a=l.fn(n,n[kP],s);a&&typeof a.then=="function"&&a.then(o=>s(null,o),s)}function s(a,o){i.runInAsyncScope(()=>{i.emitDestroy(),a?(r[PP]=!0,r.send(a)):(n.body=o,e(n,r))})}};function LP(t,e,n,r,l){let i=r.asString,s=n.limit===null?r.bodyLimit:n.limit,a=t.headers["content-length"]===void 0?NaN:Number(t.headers["content-length"]);if(a>s){e.header("connection","close"),e.send(new NP);return}let o=0,c=i===!0?"":[],f=t[kP]||t.raw;i===!0&&f.setEncoding("utf8"),f.on("data",p),f.on("end",m),f.on("error",m),f.resume();function p(h){o+=h.length;let{receivedEncodedLength:g=0}=f;if(o>s||g>s){f.removeListener("data",p),f.removeListener("end",m),f.removeListener("error",m),e.send(new NP);return}i===!0?c+=h:c.push(h)}function m(h){if(f.removeListener("data",p),f.removeListener("end",m),f.removeListener("error",m),h!==void 0){typeof h.statusCode=="number"&&h.statusCode>=400||(h.statusCode=400),e[PP]=!0,e.code(h.statusCode).send(h);return}if(i===!0&&(o=Buffer.byteLength(c)),!Number.isNaN(a)&&(f.receivedEncodedLength||o)!==a){e.header("connection","close"),e.send(new Z1e);return}i===!1&&(c=Buffer.concat(c));let g=r.fn(t,c,l);g&&typeof g.then=="function"&&g.then(_=>l(null,_),l)}}function FP(t,e){return n;function n(r,l,i){if(l===""||l==null||Buffer.isBuffer(l)&&l.length===0)return i(new e0e,void 0);let s;try{s=V1e.parse(l,{protoAction:t,constructorAction:e})}catch(a){return a.statusCode=400,i(a,void 0)}i(null,s)}}function Fg(t,e,n){n(null,e)}function Pg(t,e,n,r){this.asString=t,this.asBuffer=e,this.bodyLimit=n,this.fn=r}function t0e(t){let e=new h3;return e[Q1]=t[Q1],e.customParsers=new Map(t.customParsers.entries()),e.parserList=t.parserList.slice(),e.parserRegExpList=t.parserRegExpList.slice(),e}function n0e(t,e,n){if(this[Dg].started)throw new Lg("addContentTypeParser");return typeof e=="function"&&(n=e,e={}),e||(e={}),e.bodyLimit||(e.bodyLimit=this[z1e]),Array.isArray(t)?t.forEach(r=>this[du].add(r,e,n)):this[du].add(t,e,n),this}function r0e(t){return this[du].hasParser(t)}function l0e(t){if(this[Dg].started)throw new Lg("removeContentTypeParser");if(Array.isArray(t))for(let e of t)this[du].remove(e);else this[du].remove(t)}function i0e(){if(this[Dg].started)throw new Lg("removeAllContentTypeParsers");this[du].removeAll()}function s0e(t,e){if(e.isEssence)return t.type.indexOf(e)!==-1;if(t.type.indexOf(e.type)===-1)return!1;for(let n of e.parameterKeys)if(!(n in t.parameters)||t.parameters[n]!==e.parameters[n])return!1;return!0}function a0e(t,e,n){return n.isEssence?n.test(e):n.test(t)}function O8(t){this.name=t;let e=CP(t);if(this.isEssence=t.indexOf(";")===-1,this.isEssence===!1&&e.type===""){let n=t.split(";",1)[0];this.type=n===""?t:n}else this.type=e.type;this.parameters=e.parameters,this.parameterKeys=Object.keys(e.parameters)}O8.prototype.toString=function(){return this.name};Z1.exports=h3;Z1.exports.helpers={buildContentTypeParser:t0e,addContentTypeParser:n0e,hasContentTypeParser:r0e,removeContentTypeParser:l0e,removeAllContentTypeParsers:i0e};Z1.exports.defaultParsers={getDefaultJsonParser:FP,defaultTextParser:Fg};Z1.exports[G1e]={rawBody:LP}});var MP=C((yxe,N8)=>{"use strict";var o0e=Object.getPrototypeOf({});function $g(t){function e(T){return T!=="constructor"&&T!=="prototype"&&T!=="__proto__"}function n(T){let x=0,v=T.length,b=new Array(v);for(x=0;xtypeof T!="object"||T===null||T instanceof RegExp||T instanceof Date||T instanceof Buffer:T=>typeof T!="object"||T===null||T instanceof RegExp||T instanceof Date,m=t&&typeof t.mergeArray=="function"?t.mergeArray({clone:h,deepmerge:_,getKeys:a,isMergeableObject:c}):l;function h(T){return c(T)?Array.isArray(T)?n(T):r(T):T}function g(T,x){let v={},b=a(T),w=a(x),N,O,k;for(N=0,O=b.length;N{"use strict";var $P=Yo(),u0e=Symbol.for("json-schema-ref"),jg=class{#e;#t;#r;#l;#i;constructor(e={}){this.#e={},this.#t={},this.#r=e.insertRefSymbol??!1,this.#l=e.allowEqualDuplicates??!0,this.#i=e.cloneSchemaWithoutRefs??!1}addSchema(e,n){e.$id!==void 0&&e.$id.charAt(0)!=="#"?n=e.$id:this.#u(e,n),this.#a(e,n)}getSchema(e,n="#"){let r=this.#e[e];if(r===void 0)throw new Error(`Cannot resolve ref "${e}${n}". Schema with id "${e}" is not found.`);return r.anchors[n]!==void 0?r.anchors[n]:jP(r.schema,n)}hasSchema(e){return this.#e[e]!==void 0}getSchemaRefs(e){let n=this.#e[e];if(n===void 0)throw new Error(`Schema with id "${e}" is not found.`);return n.refs}getSchemaDependencies(e,n={}){let r=this.#e[e];for(let l of r.refs){let i=l.schemaId;n[i]===void 0&&(n[i]=this.getSchema(i),this.getSchemaDependencies(i,n))}return n}derefSchema(e){if(this.#t[e]!==void 0)return;let n=this.#e[e];if(n===void 0)throw new Error(`Schema with id "${e}" is not found.`);!this.#i&&n.refs.length===0&&(this.#t[e]={schema:n.schema,anchors:n.anchors});let r=[];this.#n(n.schema,e,r);let l=this.getSchemaDependencies(e);for(let i in l){let s=l[i];this.#n(s,i,r)}for(let i of r){let{refSchemaId:s,refJsonPointer:a}=this.#s(i.ref,i.sourceSchemaId),o=this.getDerefSchema(s,a);if(o===null)throw new Error(`Cannot resolve ref "${i.ref}". Ref "${a}" is not found in schema "${s}".`);i.targetSchema=o,i.targetSchemaId=s}for(let i of r)this.#o(i,r)}getDerefSchema(e,n="#"){let r=this.#t[e];return r===void 0&&(this.derefSchema(e),r=this.#t[e]),r.anchors[n]!==void 0?r.anchors[n]:jP(r.schema,n)}#s(e,n){let r=e.indexOf("#");return r===-1?{refSchemaId:e,refJsonPointer:"#"}:r===0?{refSchemaId:n,refJsonPointer:e}:{refSchemaId:e.slice(0,r),refJsonPointer:e.slice(r)}}#a(e,n){let r=e.$id;r!==void 0&&typeof r=="string"&&(r.charAt(0)==="#"?this.#c(e,n,r):(this.#u(e,r),n=r));let l=e.$ref;if(l!==void 0&&typeof l=="string"){let{refSchemaId:i,refJsonPointer:s}=this.#s(l,n);this.#e[n].refs.push({schemaId:i,jsonPointer:s})}for(let i in e)typeof e[i]=="object"&&e[i]!==null&&this.#a(e[i],n)}#n(e,n,r=[]){let l=Array.isArray(e)?[...e]:{...e},i=l.$id;i!==void 0&&typeof i=="string"&&(i.charAt(0)==="#"?this.#p(l,n,i):(this.#f(l,i),n=i)),l.$ref!==void 0&&r.push({ref:l.$ref,sourceSchemaId:n,sourceSchema:l});for(let s in l){let a=l[s];typeof a=="object"&&a!==null&&(l[s]=this.#n(a,n,r))}return l}#o(e,n){let{sourceSchema:r,targetSchema:l}=e;if(r.$ref){if(this.#r&&(r[u0e]=r.$ref),delete r.$ref,l.$ref){let i=n.find(s=>s.sourceSchema===l);this.#o(i,n)}for(let i in l)if(i!=="$id"){if(r[i]!==void 0){if($P(r[i],l[i]))continue;throw new Error(`Cannot resolve ref "${e.ref}". Property "${i}" is already exist in schema "${e.sourceSchemaId}".`)}r[i]=l[i]}e.isResolved=!0}}#u(e,n){let r=this.#e[n];if(r!==void 0){if(this.#l&&$P(e,r.schema))return;throw new Error(`There is already another schema with id "${n}".`)}this.#e[n]={schema:e,anchors:{},refs:[]}}#c(e,n,r){let{anchors:l}=this.#e[n];if(l[r]!==void 0)throw new Error(`There is already another anchor "${r}" in a schema "${n}".`);l[r]=e}#f(e,n){this.#t[n]===void 0&&(this.#t[n]={schema:e,anchors:{}})}#p(e,n,r){let{anchors:l}=this.#t[n];l[r]=e}};function jP(t,e){let n=e.split("/"),r=t;for(let l of n)if(!(l===""||l==="#")){if(typeof r!="object"||r===null)return null;r=r[l]}return r??null}UP.exports={RefResolver:jg}});var GP=C((_xe,Bg)=>{"use strict";Bg.exports=Ae;Bg.exports.default=Ae;var c0e={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0},HP={enum:["array","boolean","integer","null","number","object","string"]},qP=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,f0e=W6().fullFormats.uri,VP=W6().fullFormats.regex;function S2(t,{instancePath:e="",parentData:n,parentDataProperty:r,rootData:l=t}={}){let i=null,s=0,a=s;return typeof t=="number"&&!(t%1)&&!isNaN(t)&&isFinite(t)?s===a&&typeof t=="number"&&isFinite(t)&&(t<0||isNaN(t))?(S2.errors=[{instancePath:e,schemaPath:"#/definitions/nonNegativeInteger/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"}],!1):(S2.errors=i,s===0):(S2.errors=[{instancePath:e,schemaPath:"#/definitions/nonNegativeInteger/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1)}var Ug={validate:Ae};function wl(t,{instancePath:e="",parentData:n,parentDataProperty:r,rootData:l=t}={}){let i=null,s=0;if(s===0)if(Array.isArray(t)){if(t.length<1)return wl.errors=[{instancePath:e,schemaPath:"#/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"}],!1;{var a=!0;let o=t.length;for(let c=0;c",limit:0},message:"must be > 0"}],!1}else return Ae.errors=[{instancePath:e+"/multipleOf",schemaPath:"#/properties/multipleOf/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var a=b===s}else var a=!0;if(a){if(t.maximum!==void 0){let v=t.maximum,b=s;if(!(typeof v=="number"&&isFinite(v)))return Ae.errors=[{instancePath:e+"/maximum",schemaPath:"#/properties/maximum/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var a=b===s}else var a=!0;if(a){if(t.exclusiveMaximum!==void 0){let v=t.exclusiveMaximum,b=s;if(!(typeof v=="number"&&isFinite(v)))return Ae.errors=[{instancePath:e+"/exclusiveMaximum",schemaPath:"#/properties/exclusiveMaximum/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var a=b===s}else var a=!0;if(a){if(t.minimum!==void 0){let v=t.minimum,b=s;if(!(typeof v=="number"&&isFinite(v)))return Ae.errors=[{instancePath:e+"/minimum",schemaPath:"#/properties/minimum/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var a=b===s}else var a=!0;if(a){if(t.exclusiveMinimum!==void 0){let v=t.exclusiveMinimum,b=s;if(!(typeof v=="number"&&isFinite(v)))return Ae.errors=[{instancePath:e+"/exclusiveMinimum",schemaPath:"#/properties/exclusiveMinimum/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var a=b===s}else var a=!0;if(a){if(t.maxLength!==void 0){let v=t.maxLength,b=s,w=s;if(!(typeof v=="number"&&!(v%1)&&!isNaN(v)&&isFinite(v)))return Ae.errors=[{instancePath:e+"/maxLength",schemaPath:"#/definitions/nonNegativeInteger/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;if(s===w&&typeof v=="number"&&isFinite(v)&&(v<0||isNaN(v)))return Ae.errors=[{instancePath:e+"/maxLength",schemaPath:"#/definitions/nonNegativeInteger/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"}],!1;var a=b===s}else var a=!0;if(a){if(t.minLength!==void 0){let v=s;S2(t.minLength,{instancePath:e+"/minLength",parentData:t,parentDataProperty:"minLength",rootData:l})||(i=i===null?S2.errors:i.concat(S2.errors),s=i.length);var a=v===s}else var a=!0;if(a){if(t.pattern!==void 0){let v=t.pattern,b=s;if(s===b&&s===b)if(typeof v=="string"){if(!VP(v))return Ae.errors=[{instancePath:e+"/pattern",schemaPath:"#/properties/pattern/format",keyword:"format",params:{format:"regex"},message:'must match format "regex"'}],!1}else return Ae.errors=[{instancePath:e+"/pattern",schemaPath:"#/properties/pattern/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var a=b===s}else var a=!0;if(a){if(t.additionalItems!==void 0){let v=s;Ae(t.additionalItems,{instancePath:e+"/additionalItems",parentData:t,parentDataProperty:"additionalItems",rootData:l})||(i=i===null?Ae.errors:i.concat(Ae.errors),s=i.length);var a=v===s}else var a=!0;if(a){if(t.items!==void 0){let v=t.items,b=s,w=s,N=!1,O=s;Ae(v,{instancePath:e+"/items",parentData:t,parentDataProperty:"items",rootData:l})||(i=i===null?Ae.errors:i.concat(Ae.errors),s=i.length);var o=O===s;if(N=N||o,!N){let j=s;wl(v,{instancePath:e+"/items",parentData:t,parentDataProperty:"items",rootData:l})||(i=i===null?wl.errors:i.concat(wl.errors),s=i.length);var o=j===s;N=N||o}if(N)s=w,i!==null&&(w?i.length=w:i=null);else{let j={instancePath:e+"/items",schemaPath:"#/properties/items/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[j]:i.push(j),s++,Ae.errors=i,!1}var a=b===s}else var a=!0;if(a){if(t.maxItems!==void 0){let v=t.maxItems,b=s,w=s;if(!(typeof v=="number"&&!(v%1)&&!isNaN(v)&&isFinite(v)))return Ae.errors=[{instancePath:e+"/maxItems",schemaPath:"#/definitions/nonNegativeInteger/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;if(s===w&&typeof v=="number"&&isFinite(v)&&(v<0||isNaN(v)))return Ae.errors=[{instancePath:e+"/maxItems",schemaPath:"#/definitions/nonNegativeInteger/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"}],!1;var a=b===s}else var a=!0;if(a){if(t.minItems!==void 0){let v=s;S2(t.minItems,{instancePath:e+"/minItems",parentData:t,parentDataProperty:"minItems",rootData:l})||(i=i===null?S2.errors:i.concat(S2.errors),s=i.length);var a=v===s}else var a=!0;if(a){if(t.uniqueItems!==void 0){let v=s;if(typeof t.uniqueItems!="boolean")return Ae.errors=[{instancePath:e+"/uniqueItems",schemaPath:"#/properties/uniqueItems/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var a=v===s}else var a=!0;if(a){if(t.contains!==void 0){let v=s;Ae(t.contains,{instancePath:e+"/contains",parentData:t,parentDataProperty:"contains",rootData:l})||(i=i===null?Ae.errors:i.concat(Ae.errors),s=i.length);var a=v===s}else var a=!0;if(a){if(t.maxProperties!==void 0){let v=t.maxProperties,b=s,w=s;if(!(typeof v=="number"&&!(v%1)&&!isNaN(v)&&isFinite(v)))return Ae.errors=[{instancePath:e+"/maxProperties",schemaPath:"#/definitions/nonNegativeInteger/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;if(s===w&&typeof v=="number"&&isFinite(v)&&(v<0||isNaN(v)))return Ae.errors=[{instancePath:e+"/maxProperties",schemaPath:"#/definitions/nonNegativeInteger/minimum",keyword:"minimum",params:{comparison:">=",limit:0},message:"must be >= 0"}],!1;var a=b===s}else var a=!0;if(a){if(t.minProperties!==void 0){let v=s;S2(t.minProperties,{instancePath:e+"/minProperties",parentData:t,parentDataProperty:"minProperties",rootData:l})||(i=i===null?S2.errors:i.concat(S2.errors),s=i.length);var a=v===s}else var a=!0;if(a){if(t.required!==void 0){let v=t.required,b=s;if(s===s)if(Array.isArray(v)){var c=!0;let O=v.length;for(let k=0;k1){let L={};for(;k--;){let Q=v[k];if(typeof Q=="string"){if(typeof L[Q]=="number"){return j=L[Q],Ae.errors=[{instancePath:e+"/required",schemaPath:"#/definitions/stringArray/uniqueItems",keyword:"uniqueItems",params:{i:k,j},message:"must NOT have duplicate items (items ## "+j+" and "+k+" are identical)"}],!1;break}L[Q]=k}}}}}else return Ae.errors=[{instancePath:e+"/required",schemaPath:"#/definitions/stringArray/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var a=b===s}else var a=!0;if(a){if(t.additionalProperties!==void 0){let v=s;Ae(t.additionalProperties,{instancePath:e+"/additionalProperties",parentData:t,parentDataProperty:"additionalProperties",rootData:l})||(i=i===null?Ae.errors:i.concat(Ae.errors),s=i.length);var a=v===s}else var a=!0;if(a){if(t.definitions!==void 0){let v=t.definitions,b=s;if(s===b)if(v&&typeof v=="object"&&!Array.isArray(v))for(let N in v){let O=s;Ae(v[N],{instancePath:e+"/definitions/"+N.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:v,parentDataProperty:N,rootData:l})||(i=i===null?Ae.errors:i.concat(Ae.errors),s=i.length);var f=O===s;if(!f)break}else return Ae.errors=[{instancePath:e+"/definitions",schemaPath:"#/properties/definitions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var a=b===s}else var a=!0;if(a){if(t.properties!==void 0){let v=t.properties,b=s;if(s===b)if(v&&typeof v=="object"&&!Array.isArray(v))for(let N in v){let O=s;Ae(v[N],{instancePath:e+"/properties/"+N.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:v,parentDataProperty:N,rootData:l})||(i=i===null?Ae.errors:i.concat(Ae.errors),s=i.length);var p=O===s;if(!p)break}else return Ae.errors=[{instancePath:e+"/properties",schemaPath:"#/properties/properties/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var a=b===s}else var a=!0;if(a){if(t.patternProperties!==void 0){let v=t.patternProperties,b=s;if(s===b)if(v&&typeof v=="object"&&!Array.isArray(v)){for(let N in v){let O=s;if(s===O&&typeof N=="string"&&!VP(N)){let k={instancePath:e+"/patternProperties",schemaPath:"#/properties/patternProperties/propertyNames/format",keyword:"format",params:{format:"regex"},message:'must match format "regex"',propertyName:N};i===null?i=[k]:i.push(k),s++}var m=O===s;if(!m){let k={instancePath:e+"/patternProperties",schemaPath:"#/properties/patternProperties/propertyNames",keyword:"propertyNames",params:{propertyName:N},message:"property name must be valid"};return i===null?i=[k]:i.push(k),s++,Ae.errors=i,!1;break}}if(m)for(let N in v){let O=s;Ae(v[N],{instancePath:e+"/patternProperties/"+N.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:v,parentDataProperty:N,rootData:l})||(i=i===null?Ae.errors:i.concat(Ae.errors),s=i.length);var h=O===s;if(!h)break}}else return Ae.errors=[{instancePath:e+"/patternProperties",schemaPath:"#/properties/patternProperties/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var a=b===s}else var a=!0;if(a){if(t.dependencies!==void 0){let v=t.dependencies,b=s;if(s===b)if(v&&typeof v=="object"&&!Array.isArray(v))for(let N in v){let O=v[N],k=s,j=s,L=!1,Q=s;Ae(O,{instancePath:e+"/dependencies/"+N.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:v,parentDataProperty:N,rootData:l})||(i=i===null?Ae.errors:i.concat(Ae.errors),s=i.length);var g=Q===s;if(L=L||g,!L){let Y=s;if(s===s)if(Array.isArray(O)){var _=!0;let Ne=O.length;for(let pe=0;pe1){let ye={};for(;pe--;){let q=O[pe];if(typeof q=="string"){if(typeof ye[q]=="number"){ae=ye[q];let le={instancePath:e+"/dependencies/"+N.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/stringArray/uniqueItems",keyword:"uniqueItems",params:{i:pe,j:ae},message:"must NOT have duplicate items (items ## "+ae+" and "+pe+" are identical)"};i===null?i=[le]:i.push(le),s++;break}ye[q]=pe}}}}}else{let Ne={instancePath:e+"/dependencies/"+N.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/stringArray/type",keyword:"type",params:{type:"array"},message:"must be array"};i===null?i=[Ne]:i.push(Ne),s++}var g=Y===s;L=L||g}if(L)s=j,i!==null&&(j?i.length=j:i=null);else{let Y={instancePath:e+"/dependencies/"+N.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/dependencies/additionalProperties/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[Y]:i.push(Y),s++,Ae.errors=i,!1}var S=k===s;if(!S)break}else return Ae.errors=[{instancePath:e+"/dependencies",schemaPath:"#/properties/dependencies/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var a=b===s}else var a=!0;if(a){if(t.propertyNames!==void 0){let v=s;Ae(t.propertyNames,{instancePath:e+"/propertyNames",parentData:t,parentDataProperty:"propertyNames",rootData:l})||(i=i===null?Ae.errors:i.concat(Ae.errors),s=i.length);var a=v===s}else var a=!0;if(a){if(t.enum!==void 0){let v=t.enum,b=s;if(s===b)if(Array.isArray(v)){if(v.length<1)return Ae.errors=[{instancePath:e+"/enum",schemaPath:"#/properties/enum/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"}],!1;{let N=v.length,O;if(N>1){e:for(;N--;)for(O=N;O--;)if(zP(v[N],v[O])){return Ae.errors=[{instancePath:e+"/enum",schemaPath:"#/properties/enum/uniqueItems",keyword:"uniqueItems",params:{i:N,j:O},message:"must NOT have duplicate items (items ## "+O+" and "+N+" are identical)"}],!1;break e}}}}else return Ae.errors=[{instancePath:e+"/enum",schemaPath:"#/properties/enum/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var a=b===s}else var a=!0;if(a){if(t.type!==void 0){let v=t.type,b=s,w=s,N=!1,O=s;if(!(v==="array"||v==="boolean"||v==="integer"||v==="null"||v==="number"||v==="object"||v==="string")){let j={instancePath:e+"/type",schemaPath:"#/definitions/simpleTypes/enum",keyword:"enum",params:{allowedValues:HP.enum},message:"must be equal to one of the allowed values"};i===null?i=[j]:i.push(j),s++}var T=O===s;if(N=N||T,!N){let j=s;if(s===j)if(Array.isArray(v))if(v.length<1){let Q={instancePath:e+"/type",schemaPath:"#/properties/type/anyOf/1/minItems",keyword:"minItems",params:{limit:1},message:"must NOT have fewer than 1 items"};i===null?i=[Q]:i.push(Q),s++}else{var x=!0;let Q=v.length;for(let Y=0;Y1){e:for(;Y--;)for(Z=Y;Z--;)if(zP(v[Y],v[Z])){let ve={instancePath:e+"/type",schemaPath:"#/properties/type/anyOf/1/uniqueItems",keyword:"uniqueItems",params:{i:Y,j:Z},message:"must NOT have duplicate items (items ## "+Z+" and "+Y+" are identical)"};i===null?i=[ve]:i.push(ve),s++;break e}}}}else{let Q={instancePath:e+"/type",schemaPath:"#/properties/type/anyOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};i===null?i=[Q]:i.push(Q),s++}var T=j===s;N=N||T}if(N)s=w,i!==null&&(w?i.length=w:i=null);else{let j={instancePath:e+"/type",schemaPath:"#/properties/type/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[j]:i.push(j),s++,Ae.errors=i,!1}var a=b===s}else var a=!0;if(a){if(t.format!==void 0){let v=s;if(typeof t.format!="string")return Ae.errors=[{instancePath:e+"/format",schemaPath:"#/properties/format/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var a=v===s}else var a=!0;if(a){if(t.contentMediaType!==void 0){let v=s;if(typeof t.contentMediaType!="string")return Ae.errors=[{instancePath:e+"/contentMediaType",schemaPath:"#/properties/contentMediaType/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var a=v===s}else var a=!0;if(a){if(t.contentEncoding!==void 0){let v=s;if(typeof t.contentEncoding!="string")return Ae.errors=[{instancePath:e+"/contentEncoding",schemaPath:"#/properties/contentEncoding/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var a=v===s}else var a=!0;if(a){if(t.if!==void 0){let v=s;Ae(t.if,{instancePath:e+"/if",parentData:t,parentDataProperty:"if",rootData:l})||(i=i===null?Ae.errors:i.concat(Ae.errors),s=i.length);var a=v===s}else var a=!0;if(a){if(t.then!==void 0){let v=s;Ae(t.then,{instancePath:e+"/then",parentData:t,parentDataProperty:"then",rootData:l})||(i=i===null?Ae.errors:i.concat(Ae.errors),s=i.length);var a=v===s}else var a=!0;if(a){if(t.else!==void 0){let v=s;Ae(t.else,{instancePath:e+"/else",parentData:t,parentDataProperty:"else",rootData:l})||(i=i===null?Ae.errors:i.concat(Ae.errors),s=i.length);var a=v===s}else var a=!0;if(a){if(t.allOf!==void 0){let v=s;wl(t.allOf,{instancePath:e+"/allOf",parentData:t,parentDataProperty:"allOf",rootData:l})||(i=i===null?wl.errors:i.concat(wl.errors),s=i.length);var a=v===s}else var a=!0;if(a){if(t.anyOf!==void 0){let v=s;wl(t.anyOf,{instancePath:e+"/anyOf",parentData:t,parentDataProperty:"anyOf",rootData:l})||(i=i===null?wl.errors:i.concat(wl.errors),s=i.length);var a=v===s}else var a=!0;if(a){if(t.oneOf!==void 0){let v=s;wl(t.oneOf,{instancePath:e+"/oneOf",parentData:t,parentDataProperty:"oneOf",rootData:l})||(i=i===null?wl.errors:i.concat(wl.errors),s=i.length);var a=v===s}else var a=!0;if(a)if(t.not!==void 0){let v=s;Ae(t.not,{instancePath:e+"/not",parentData:t,parentDataProperty:"not",rootData:l})||(i=i===null?Ae.errors:i.concat(Ae.errors),s=i.length);var a=v===s}else var a=!0}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}return Ae.errors=i,s===0}});var WP=C((Exe,XP)=>{"use strict";var Hg=class t{constructor(e,n,r="#"){this.schema=e,this.schemaId=n,this.jsonPointer=r,this.mergedSchemaId=null}getPropertyLocation(e){let n=new t(this.schema[e],this.schemaId,this.jsonPointer+"/"+e);return this.mergedSchemaId!==null&&n.addMergedSchema(this.schema[e],this.mergedSchemaId,this.jsonPointer+"/"+e),n}getSchemaId(){return this.mergedSchemaId||this.schemaId}getOriginSchemaId(){return this.schemaId}getSchemaRef(){return this.getSchemaId()+this.jsonPointer}addMergedSchema(e,n,r="#"){this.schema=e,this.mergedSchemaId=n,this.jsonPointer=r}};XP.exports=Hg});var aD=C((bxe,gu)=>{"use strict";var qg=MP()(),p0e=l1()({proto:!0}),{RefResolver:d0e}=BP(),KP=GP(),h0e=Xd(),m0e=jm(),JP=WP(),g0e=/'/g,I8=2e4,QP="default",y0e=["floor","ceil","round","trunc"],ZP=["default","json-stringify"],hu="!addComma && (addComma = true) || (json += ',')",eD=0;function Vg(t,e){if(!KP(t)){e?e=`"${e}" `:e="";let n=KP.errors[0],r=new Error(`${e}schema is invalid: data${n.instancePath} ${n.message}`);throw r.errors=Vg.errors,r}}function mu(t,e,n){let r=n.indexOf("#");r===-1&&(r=n.length);let l=n.slice(0,r)||e.getOriginSchemaId(),i=n.slice(r)||"#",s=t.refResolver.getSchema(l,i);if(s===null)throw new Error(`Cannot find reference "${n}"`);let a=new JP(s,l,i);return s.$ref!==void 0?mu(t,a,s.$ref):a}function YP(t,e){return t.$id&&t.$id.charAt(0)!=="#"?t.$id:e}function zg(t,e){Vg(t),e=e||{};let n={functions:[],functionsCounter:0,functionsNamesBySchema:new Map,options:e,wrapObjects:!0,refResolver:new d0e,rootSchemaId:t.$id||`__fjs_root_${eD++}`,validatorSchemasIds:new Set},r=YP(t,n.rootSchemaId);if(n.refResolver.hasSchema(r)||n.refResolver.addSchema(t,n.rootSchemaId),e.schema)for(let f in e.schema){let p=e.schema[f],m=YP(p,f);n.refResolver.hasSchema(m)||(Vg(p,f),n.refResolver.addSchema(p,f))}if(e.rounding&&!y0e.includes(e.rounding))throw new Error(`Unsupported integer rounding method ${e.rounding}`);if(e.largeArrayMechanism)if(ZP.includes(e.largeArrayMechanism))QP=e.largeArrayMechanism;else throw new Error(`Unsupported large array mechanism ${e.largeArrayMechanism}`);if(e.largeArraySize)if(typeof e.largeArraySize=="string"&&Number.isFinite(Number.parseInt(e.largeArraySize,10)))I8=Number.parseInt(e.largeArraySize,10);else if(typeof e.largeArraySize=="number"&&Number.isInteger(e.largeArraySize))I8=e.largeArraySize;else if(typeof e.largeArraySize=="bigint")I8=Number(e.largeArraySize);else throw new Error(`Unsupported large array size. Expected integer-like, got ${typeof e.largeArraySize} with value ${e.largeArraySize}`);let l=new JP(t,n.rootSchemaId),i=Ti(n,l,"input"),s;i==="json += anonymous0(input)"?s=`
${n.functions.join(`
`)}
const main = anonymous0
@@ -133,9 +133,9 @@ ${T}`),g.pop(),`{${w}}`}case"number":return isFinite(h)?String(h):e?e(h):"null";
${n.functions.join(`
`)}
return main
- `;let a=new _1e(e),o=new E1e(e.ajv);for(let c of n.validatorSchemasIds){let p=n.refResolver.getSchema(c);o.addSchema(p,c);let m=n.refResolver.getSchemaDependencies(c);for(let[h,g]of Object.entries(m))o.addSchema(g,h)}if(e.debugMode&&(e.mode="debug"),e.mode==="debug")return{validator:o,serializer:a,code:`validator
+ `;let a=new h0e(e),o=new m0e(e.ajv);for(let f of n.validatorSchemasIds){let p=n.refResolver.getSchema(f);o.addSchema(p,f);let m=n.refResolver.getSchemaDependencies(f);for(let[h,g]of Object.entries(m))o.addSchema(g,h)}if(e.debugMode&&(e.mode="debug"),e.mode==="debug")return{validator:o,serializer:a,code:`validator
serializer
-${s}`,ajv:o.ajv};let f=new Function("validator","serializer",s);return e.mode==="standalone"?_m()(f,n,a,o):f(o,a)}var S1e=["properties","required","additionalProperties","patternProperties","maxProperties","minProperties","dependencies"],x1e=["items","additionalItems","maxItems","minItems","uniqueItems","contains"],A1e=["maxLength","minLength","pattern"],w1e=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum"];function AP(t){for(var e of S1e)if(e in t)return"object";for(var e of x1e)if(e in t)return"array";for(var e of A1e)if(e in t)return"string";for(var e of w1e)if(e in t)return"number";return t.type}function R1e(t,e){let n=e.schema,r=Object.keys(n.properties||{}),l=`
+${s}`,ajv:o.ajv};let c=new Function("validator","serializer",s);return e.mode==="standalone"?Bm()(c,n,a,o):c(o,a)}var v0e=["properties","required","additionalProperties","patternProperties","maxProperties","minProperties","dependencies"],_0e=["items","additionalItems","maxItems","minItems","uniqueItems","contains"],E0e=["maxLength","minLength","pattern"],b0e=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum"];function tD(t){for(var e of v0e)if(e in t)return"object";for(var e of _0e)if(e in t)return"array";for(var e of E0e)if(e in t)return"string";for(var e of b0e)if(e in t)return"number";return t.type}function T0e(t,e){let n=e.schema,r=Object.keys(n.properties||{}),l=`
const propertiesKeys = ${JSON.stringify(r)}
for (const [key, value] of Object.entries(obj)) {
if (
@@ -144,63 +144,63 @@ ${s}`,ajv:o.ajv};let f=new Function("validator","serializer",s);return e.mode===
typeof value === 'function' ||
typeof value === 'symbol'
) continue
- `,i=e.getPropertyLocation("patternProperties"),s=i.schema;if(s!==void 0)for(let f in s){let c=i.getPropertyLocation(f);l+=`
- if (/${f.replace(/\\*\//g,"\\/")}/.test(key)) {
- ${au}
+ `,i=e.getPropertyLocation("patternProperties"),s=i.schema;if(s!==void 0)for(let c in s){let f=i.getPropertyLocation(c);l+=`
+ if (/${c.replace(/\\*\//g,"\\/")}/.test(key)) {
+ ${hu}
json += serializer.asString(key) + ':'
- ${_i(t,c,"value")}
+ ${Ti(t,f,"value")}
continue
}
`}let o=e.getPropertyLocation("additionalProperties").schema;if(o!==void 0)if(o===!0)l+=`
- ${au}
+ ${hu}
json += serializer.asString(key) + ':' + JSON.stringify(value)
- `;else{let f=e.getPropertyLocation("additionalProperties");l+=`
- ${au}
+ `;else{let c=e.getPropertyLocation("additionalProperties");l+=`
+ ${hu}
json += serializer.asString(key) + ':'
- ${_i(t,f,"value")}
+ ${Ti(t,c,"value")}
`}return l+=`
}
- `,l}function O1e(t,e){let n="",r=e.schema,l=r.required||[],i=e.getPropertyLocation("properties"),s=[],a=[];if(r.properties)for(let f of Object.keys(r.properties)){if(l.indexOf(f)===-1)continue;let c=i.getPropertyLocation(f);c.schema.$ref&&(c=ou(t,e,c.schema.$ref));let p=JSON.stringify(f);c.schema.default===void 0&&(n+=`if (obj[${p}] === undefined) throw new Error('${p} is required!')
-`,a.push(f)),s.push(f)}for(let f of l)s.indexOf(f)===-1&&(n+=`if (obj['${f}'] === undefined) throw new Error('"${f}" is required!')
+ `,l}function S0e(t,e){let n="",r=e.schema,l=r.required||[],i=e.getPropertyLocation("properties"),s=[],a=[];if(r.properties)for(let c of Object.keys(r.properties)){if(l.indexOf(c)===-1)continue;let f=i.getPropertyLocation(c);f.schema.$ref&&(f=mu(t,e,f.schema.$ref));let p=JSON.stringify(c);f.schema.default===void 0&&(n+=`if (obj[${p}] === undefined) throw new Error('${p} is required!')
+`,a.push(c)),s.push(c)}for(let c of l)s.indexOf(c)===-1&&(n+=`if (obj['${c}'] === undefined) throw new Error('"${c}" is required!')
`);n+=`
let addComma = false
let json = '${t.wrapObjects?"{":""}'
- `;let o=t.wrapObjects;if(t.wrapObjects=!0,r.properties)for(let f of Object.keys(r.properties)){let c=i.getPropertyLocation(f);c.schema.$ref&&(c=ou(t,e,c.schema.$ref));let p=JSON.stringify(f);if(a.indexOf(f)!==-1)n+=`
- ${au}
+ `;let o=t.wrapObjects;if(t.wrapObjects=!0,r.properties)for(let c of Object.keys(r.properties)){let f=i.getPropertyLocation(c);f.schema.$ref&&(f=mu(t,e,f.schema.$ref));let p=JSON.stringify(c);if(a.indexOf(c)!==-1)n+=`
+ ${hu}
json += ${JSON.stringify(p+":")}
- ${_i(t,c,`obj[${p}]`)}
+ ${Ti(t,f,`obj[${p}]`)}
`;else{n+=`
if (obj[${p}] !== undefined) {
- ${au}
+ ${hu}
json += ${JSON.stringify(p+":")}
- ${_i(t,c,`obj[${p}]`)}
+ ${Ti(t,f,`obj[${p}]`)}
}
- `;let m=c.schema.default;m!==void 0&&(n+=`
+ `;let m=f.schema.default;m!==void 0&&(n+=`
else {
- ${au}
+ ${hu}
json += ${JSON.stringify(p+":"+JSON.stringify(m))}
}
- `)}}return(r.patternProperties||r.additionalProperties)&&(n+=R1e(t,e)),t.wrapObjects=o,n+=`
+ `)}}return(r.patternProperties||r.additionalProperties)&&(n+=T0e(t,e)),t.wrapObjects=o,n+=`
return json${t.wrapObjects?" + '}'":""}
- `,n}function wP(t,e,n,r){let l=e.getPropertyLocation("allOf");for(let i=0;i ${l.length}) {
throw new Error(\`Item at ${l.length} does not match schema definition.\`)
}
- `),TP==="json-stringify"&&(a+=`if (arrayLength && arrayLength >= ${h8}) return JSON.stringify(obj)
+ `),QP==="json-stringify"&&(a+=`if (arrayLength && arrayLength >= ${I8}) return JSON.stringify(obj)
`),a+=`
let jsonOutput = ''
- `,Array.isArray(l)){for(let f=0;fOP(l,e)).join(" || ")})`)}return n}function NP(t){return"anonymous"+t.functionsCounter++}function k1e(t,e,n){let l=e.schema.type.sort(a=>a==="null"?-1:1),i="";l.forEach((a,o)=>{e.schema={...e.schema,type:a};let f=IP(t,e,n),c=o===0?"if":"else if";switch(a){case"null":i+=`
- ${c} (${n} === null)
- ${f}
+ )`;break;case"integer":n=`Number.isInteger(obj${e})`;break;case"number":n=`Number.isFinite(obj${e})`;break;case"boolean":n=`typeof obj${e} === 'boolean'`;break;case"object":n=`obj${e} && typeof obj${e} === 'object' && obj${e}.constructor === Object`;break;case"array":n=`Array.isArray(obj${e})`;break;default:Array.isArray(t)&&(n=`(${t.map(l=>lD(l,e)).join(" || ")})`)}return n}function iD(t){return"anonymous"+t.functionsCounter++}function R0e(t,e,n){let l=e.schema.type.sort(a=>a==="null"?-1:1),i="";l.forEach((a,o)=>{e.schema={...e.schema,type:a};let c=sD(t,e,n),f=o===0?"if":"else if";switch(a){case"null":i+=`
+ ${f} (${n} === null)
+ ${c}
`;break;case"string":{i+=`
- ${c}(
+ ${f}(
typeof ${n} === "string" ||
${n} === null ||
${n} instanceof Date ||
@@ -266,49 +266,49 @@ ${s}`,ajv:o.ajv};let f=new Function("validator","serializer",s);return e.mode===
${n}.toString !== Object.prototype.toString
)
)
- ${f}
+ ${c}
`;break}case"array":{i+=`
- ${c}(Array.isArray(${n}))
- ${f}
+ ${f}(Array.isArray(${n}))
+ ${c}
`;break}case"integer":{i+=`
- ${c}(Number.isInteger(${n}) || ${n} === null)
- ${f}
+ ${f}(Number.isInteger(${n}) || ${n} === null)
+ ${c}
`;break}default:{i+=`
- ${c}(typeof ${n} === "${a}" || ${n} === null)
- ${f}
+ ${f}(typeof ${n} === "${a}" || ${n} === null)
+ ${c}
`;break}}});let s=e.getSchemaRef();return s.startsWith(t.rootSchemaId)&&(s=s.replace(t.rootSchemaId,"")),i+=`
else throw new TypeError(\`The value of '${s}' does not match schema definition.\`)
- `,i}function IP(t,e,n){let r=e.schema;switch(r.type){case"null":return"json += 'null'";case"string":return r.format==="date-time"?`json += serializer.asDateTime(${n})`:r.format==="date"?`json += serializer.asDate(${n})`:r.format==="time"?`json += serializer.asTime(${n})`:`json += serializer.asString(${n})`;case"integer":return`json += serializer.asInteger(${n})`;case"number":return`json += serializer.asNumber(${n})`;case"boolean":return`json += serializer.asBoolean(${n})`;case"object":return`json += ${RP(t,e)}(${n})`;case"array":return`json += ${C1e(t,e)}(${n})`;case void 0:return`json += JSON.stringify(${n})`;default:throw new Error(`${r.type} unsupported`)}}function P1e(t,e){let n=t.schema,r=n.type,l=Array.isArray(r)&&r.includes("null"),i="";return l&&(i+=`
+ `,i}function sD(t,e,n){let r=e.schema;switch(r.type){case"null":return"json += 'null'";case"string":return r.format==="date-time"?`json += serializer.asDateTime(${n})`:r.format==="date"?`json += serializer.asDate(${n})`:r.format==="time"?`json += serializer.asTime(${n})`:`json += serializer.asString(${n})`;case"integer":return`json += serializer.asInteger(${n})`;case"number":return`json += serializer.asNumber(${n})`;case"boolean":return`json += serializer.asBoolean(${n})`;case"object":return`json += ${rD(t,e)}(${n})`;case"array":return`json += ${w0e(t,e)}(${n})`;case void 0:return`json += JSON.stringify(${n})`;default:throw new Error(`${r.type} unsupported`)}}function O0e(t,e){let n=t.schema,r=n.type,l=Array.isArray(r)&&r.includes("null"),i="";return l&&(i+=`
if (${e} === null) {
json += 'null'
} else {
- `),i+=`json += '${JSON.stringify(n.const).replace(b1e,"\\'")}'`,l&&(i+=`
+ `),i+=`json += '${JSON.stringify(n.const).replace(g0e,"\\'")}'`,l&&(i+=`
}
- `),i}function _i(t,e,n){let r=e.schema;if(typeof r=="boolean")return`json += JSON.stringify(${n})`;if(r.$ref&&(e=ou(t,e,r.$ref),r=e.schema),r.type===void 0){let a=AP(r);a&&(r.type=a)}if(r.if&&r.then)return N1e(t,e,n);r.allOf&&(wP(t,e,r,y1e(r)),r=e.schema);let l=r.type,i="";if((l===void 0||l==="object")&&(r.anyOf||r.oneOf)){if(t.validatorSchemasIds.add(e.getSchemaId()),r.type==="object"){t.wrapObjects=!1;let c=RP(t,e);i+=`
+ `),i}function Ti(t,e,n){let r=e.schema;if(typeof r=="boolean")return`json += JSON.stringify(${n})`;if(r.$ref&&(e=mu(t,e,r.$ref),r=e.schema),r.type===void 0){let a=tD(r);a&&(r.type=a)}if(r.if&&r.then)return x0e(t,e,n);r.allOf&&(nD(t,e,r,p0e(r)),r=e.schema);let l=r.type,i="";if((l===void 0||l==="object")&&(r.anyOf||r.oneOf)){if(t.validatorSchemasIds.add(e.getSchemaId()),r.type==="object"){t.wrapObjects=!1;let f=rD(t,e);i+=`
json += '{'
- json += ${c}(${n})
+ json += ${f}(${n})
json += ','
- `}let a=r.anyOf?"anyOf":"oneOf",o=e.getPropertyLocation(a);for(let c=0;c{"use strict";var D1e=Ag();function kP(t={readMode:!0}){if(t.readMode===!0&&typeof t.restoreFunction!="function")throw new Error("You must provide a function for the restoreFunction-option when readMode ON");if(t.readMode!==!0&&typeof t.storeFunction!="function")throw new Error("You must provide a function for the storeFunction-option when readMode OFF");if(t.readMode===!0)return function(){return function(r){return t.restoreFunction(r)}};let e=D1e();return function(r,l={}){l.mode="standalone";let i=e(r,l);return function(s){let a=i(s);return t.storeFunction(s,a),new Function(a)}}}xg.exports=kP;xg.exports.default=kP});var Ag=C((eSe,V1)=>{"use strict";var L1e=CP();function wg(){return function(e,n){let r=Object.assign({},n,{schema:e});return F1e.bind(null,r)}}function F1e(t,{schema:e}){return t.schema&&e.$id&&t.schema[e.$id]&&(t.schema={...t.schema},delete t.schema[e.$id]),L1e(e,t)}V1.exports=wg;V1.exports.default=wg;V1.exports.SerializerSelector=wg;V1.exports.StandaloneSerializer=PP()});var f3=C(z1=>{"use strict";Object.defineProperty(z1,"__esModule",{value:!0});z1.checkMetadata=void 0;var M1e=yt(),$1e={keyword:"metadata",schemaType:"object",code(t){DP(t);let{gen:e,schema:n,it:r}=t;if((0,M1e.alwaysValidSchema)(r,n))return;let l=e.name("valid");t.subschema({keyword:"metadata",jtdMetadata:!0},l),t.ok(l)}};function DP({it:t,keyword:e},n){if(t.jtdMetadata!==n)throw new Error(`JTD: "${e}" cannot be used in this schema location`)}z1.checkMetadata=DP;z1.default=$1e});var m8=C(X1=>{"use strict";Object.defineProperty(X1,"__esModule",{value:!0});X1.hasRef=void 0;var LP=ga(),G1=Je(),j1e=z3(),FP=m2(),MP=gh(),U1e=f3(),B1e={keyword:"ref",schemaType:"string",code(t){(0,U1e.checkMetadata)(t);let{gen:e,data:n,schema:r,parentSchema:l,it:i}=t,{schemaEnv:{root:s}}=i,a=e.name("valid");l.nullable?(e.var(a,(0,G1._)`${n} === null`),e.if((0,G1.not)(a),o)):(e.var(a,!1),o()),t.ok(a);function o(){var p;let m=(p=s.schema.definitions)===null||p===void 0?void 0:p[r];if(!m)throw new j1e.default(i.opts.uriResolver,"",r,`No definition ${r}`);Rg(m)||!i.opts.inlineRefs?f(m):c(m)}function f(p){let m=LP.compileSchema.call(i.self,new LP.SchemaEnv({schema:p,root:s,schemaPath:`/definitions/${r}`})),h=(0,MP.getValidate)(t,m),g=e.const("_errs",FP.default.errors);(0,MP.callRef)(t,h,m,m.$async),e.assign(a,(0,G1._)`${g} === ${FP.default.errors}`)}function c(p){let m=e.scopeValue("schema",i.opts.code.source===!0?{ref:p,code:(0,G1.stringify)(p)}:{ref:p});t.subschema({schema:p,dataTypes:[],schemaPath:G1.nil,topSchemaRef:m,errSchemaPath:`/definitions/${r}`},a)}}};function Rg(t){for(let e in t){let n;if(e==="ref"||typeof(n=t[e])=="object"&&Rg(n))return!0}return!1}X1.hasRef=Rg;X1.default=B1e});var Ng=C(Og=>{"use strict";Object.defineProperty(Og,"__esModule",{value:!0});var H1e=/t|\s/i,q1e=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,V1e=/^(\d\d):(\d\d):(\d\d)(?:\.\d+)?(?:z|([+-]\d\d)(?::?(\d\d))?)$/i,z1e=[0,31,28,31,30,31,30,31,31,30,31,30,31];function jP(t,e){let n=t.split(H1e);return n.length===2&&$P(n[0])&&G1e(n[1])||e&&n.length===1&&$P(n[0])}Og.default=jP;function $P(t){let e=q1e.exec(t);if(!e)return!1;let n=+e[1],r=+e[2],l=+e[3];return r>=1&&r<=12&&l>=1&&(l<=z1e[r]||r===2&&l===29&&(n%100===0?n%400===0:n%4===0))}function G1e(t){let e=V1e.exec(t);if(!e)return!1;let n=+e[1],r=+e[2],l=+e[3],i=+(e[4]||0),s=+(e[5]||0);return n<=23&&r<=59&&l<=59||n-i===23&&r-s===59&&l===60}jP.code='require("ajv/dist/runtime/timestamp").default'});var cu=C(Y3=>{"use strict";Object.defineProperty(Y3,"__esModule",{value:!0});Y3.typeErrorParams=Y3.typeErrorMessage=Y3.typeError=void 0;var X1e=Je();function W1e(t){return{message:e=>UP(e,t),params:e=>BP(e,t)}}Y3.typeError=W1e;function UP({parentSchema:t},e){return t?.nullable?`must be ${e} or null`:`must be ${e}`}Y3.typeErrorMessage=UP;function BP({parentSchema:t},e){return(0,X1e._)`{type: ${e}, nullable: ${!!t?.nullable}}`}Y3.typeErrorParams=BP});var Ig=C(fu=>{"use strict";Object.defineProperty(fu,"__esModule",{value:!0});fu.intRange=void 0;var Jl=Je(),K1e=Ng(),Y1e=yt(),J1e=f3(),HP=cu();fu.intRange={int8:[-128,127,3],uint8:[0,255,3],int16:[-32768,32767,5],uint16:[0,65535,5],int32:[-2147483648,2147483647,10],uint32:[0,4294967295,10]};var Q1e={message:t=>(0,HP.typeErrorMessage)(t,t.schema),params:t=>(0,HP.typeErrorParams)(t,t.schema)};function Z1e(t){let{gen:e,data:n,it:r}=t,{timestamp:l,allowDate:i}=r.opts;if(l==="date")return(0,Jl._)`${n} instanceof Date `;let s=(0,Y1e.useFunc)(e,K1e.default),a=i?(0,Jl._)`, true`:Jl.nil,o=(0,Jl._)`typeof ${n} == "string" && ${s}(${n}${a})`;return l==="string"?o:(0,Jl.or)((0,Jl._)`${n} instanceof Date`,o)}var e0e={keyword:"type",schemaType:"string",error:Q1e,code(t){(0,J1e.checkMetadata)(t);let{data:e,schema:n,parentSchema:r,it:l}=t,i;switch(n){case"boolean":case"string":i=(0,Jl._)`typeof ${e} == ${n}`;break;case"timestamp":{i=Z1e(t);break}case"float32":case"float64":i=(0,Jl._)`typeof ${e} == "number"`;break;default:{let s=n;if(i=(0,Jl._)`typeof ${e} == "number" && isFinite(${e}) && !(${e} % 1)`,!l.opts.int32range&&(s==="int32"||s==="uint32"))s==="uint32"&&(i=(0,Jl._)`${i} && ${e} >= 0`);else{let[a,o]=fu.intRange[s];i=(0,Jl._)`${i} && ${e} >= ${a} && ${e} <= ${o}`}}}t.pass(r.nullable?(0,Jl.or)((0,Jl._)`${e} === null`,i):i)}};fu.default=e0e});var du=C(pu=>{"use strict";Object.defineProperty(pu,"__esModule",{value:!0});pu.checkNullableObject=pu.checkNullable=void 0;var g8=Je();function qP({gen:t,data:e,parentSchema:n},r=g8.nil){let l=t.name("valid");return n.nullable?(t.let(l,(0,g8._)`${e} === null`),r=(0,g8.not)(l)):t.let(l,!1),[l,r]}pu.checkNullable=qP;function t0e(t,e){let[n,r]=qP(t,e);return[n,(0,g8._)`${r} && typeof ${t.data} == "object" && !Array.isArray(${t.data})`]}pu.checkNullableObject=t0e});var VP=C(Cg=>{"use strict";Object.defineProperty(Cg,"__esModule",{value:!0});var J3=Je(),n0e=f3(),r0e=du(),l0e={message:"must be equal to one of the allowed values",params:({schemaCode:t})=>(0,J3._)`{allowedValues: ${t}}`},i0e={keyword:"enum",schemaType:"array",error:l0e,code(t){(0,n0e.checkMetadata)(t);let{gen:e,data:n,schema:r,schemaValue:l,parentSchema:i,it:s}=t;if(r.length===0)throw new Error("enum must have non-empty array");if(r.length!==new Set(r).size)throw new Error("enum items must be unique");let a,o=(0,J3._)`typeof ${n} == "string"`;if(r.length>=s.opts.loopEnum){let c;[a,c]=(0,r0e.checkNullable)(t,o),e.if(c,f)}else{if(!Array.isArray(r))throw new Error("ajv implementation error");a=(0,J3.and)(o,(0,J3.or)(...r.map(c=>(0,J3._)`${n} === ${c}`))),i.nullable&&(a=(0,J3.or)((0,J3._)`${n} === null`,a))}t.pass(a);function f(){e.forOf("v",l,c=>e.if((0,J3._)`${a} = ${n} === ${c}`,()=>e.break()))}}};Cg.default=i0e});var GP=C(kg=>{"use strict";Object.defineProperty(kg,"__esModule",{value:!0});var s0e=yt(),a0e=zr(),zP=Je(),o0e=f3(),u0e=du(),c0e=cu(),f0e={keyword:"elements",schemaType:"object",error:(0,c0e.typeError)("array"),code(t){(0,o0e.checkMetadata)(t);let{gen:e,data:n,schema:r,it:l}=t;if((0,s0e.alwaysValidSchema)(l,r))return;let[i]=(0,u0e.checkNullable)(t);e.if((0,zP.not)(i),()=>e.if((0,zP._)`Array.isArray(${n})`,()=>e.assign(i,(0,a0e.validateArray)(t)),()=>t.error())),t.ok(i)}};kg.default=f0e});var Dg=C(Q3=>{"use strict";Object.defineProperty(Q3,"__esModule",{value:!0});Q3.validateProperties=Q3.error=void 0;var Pg=zr(),XP=yt(),p3=Je(),p0e=f3(),d0e=du(),WP=cu(),hu;(function(t){t.Additional="additional",t.Missing="missing"})(hu||(hu={}));Q3.error={message:t=>{let{params:e}=t;return e.propError?e.propError===hu.Additional?"must NOT have additional properties":`must have property '${e.missingProperty}'`:(0,WP.typeErrorMessage)(t,"object")},params:t=>{let{params:e}=t;return e.propError?e.propError===hu.Additional?(0,p3._)`{error: ${e.propError}, additionalProperty: ${e.additionalProperty}}`:(0,p3._)`{error: ${e.propError}, missingProperty: ${e.missingProperty}}`:(0,WP.typeErrorParams)(t,"object")}};var h0e={keyword:"properties",schemaType:"object",error:Q3.error,code:KP};function KP(t){(0,p0e.checkMetadata)(t);let{gen:e,data:n,parentSchema:r,it:l}=t,{additionalProperties:i,nullable:s}=r;if(l.jtdDiscriminator&&s)throw new Error("JTD: nullable inside discriminator mapping");if(h())throw new Error("JTD: properties and optionalProperties have common members");let[a,o]=g("properties"),[f,c]=g("optionalProperties");if(o.length===0&&c.length===0&&i)return;let[p,m]=l.jtdDiscriminator===void 0?(0,d0e.checkNullableObject)(t,n):[e.let("valid",!1),!0];e.if(m,()=>e.assign(p,!0).block(()=>{_(o,"properties",!0),_(c,"optionalProperties"),i||T()})),t.pass(p);function h(){let v=r.properties,b=r.optionalProperties;if(!(v&&b))return!1;for(let w in v)if(Object.prototype.hasOwnProperty.call(b,w))return!0;return!1}function g(v){let b=r[v],w=b?(0,Pg.allSchemaProperties)(b):[];if(l.jtdDiscriminator&&w.some(O=>O===l.jtdDiscriminator))throw new Error(`JTD: discriminator tag used in ${v}`);let N=w.filter(O=>!(0,XP.alwaysValidSchema)(l,b[O]));return[w,N]}function _(v,b,w){let N=e.var("valid");for(let k of v)e.if((0,Pg.propertyInData)(e,n,k,l.opts.ownProperties),()=>S(k,b,N),()=>O(k)),t.ok(N);function O(k){w?(e.assign(N,!1),t.error(!1,{propError:hu.Missing,missingProperty:k},{schemaPath:k})):e.assign(N,!0)}}function S(v,b,w){t.subschema({keyword:b,schemaProp:v,dataProp:v},w)}function T(){e.forIn("key",n,v=>{let b=x(v,a,"properties",l.jtdDiscriminator),w=x(v,f,"optionalProperties"),N=b===!0?w:w===!0?b:(0,p3.and)(b,w);e.if(N,()=>{l.opts.removeAdditional?e.code((0,p3._)`delete ${n}[${v}]`):(t.error(!1,{propError:hu.Additional,additionalProperty:v},{instancePath:v,parentSchema:!0}),l.opts.allErrors||e.break())})})}function x(v,b,w,N){let O;if(b.length>8){let k=(0,XP.schemaRefOrVal)(l,r[w],w);O=(0,p3.not)((0,Pg.isOwnProperty)(e,k,v)),N!==void 0&&(O=(0,p3.and)(O,(0,p3._)`${v} !== ${N}`))}else if(b.length||N!==void 0){let k=N===void 0?b:[N].concat(b);O=(0,p3.and)(...k.map($=>(0,p3._)`${v} !== ${$}`))}else O=!0;return O}}Q3.validateProperties=KP;Q3.default=h0e});var JP=C(Lg=>{"use strict";Object.defineProperty(Lg,"__esModule",{value:!0});var YP=Dg(),m0e={keyword:"optionalProperties",schemaType:"object",error:YP.error,code(t){t.parentSchema.properties||(0,YP.validateProperties)(t)}};Lg.default=m0e});var ZP=C(Fg=>{"use strict";Object.defineProperty(Fg,"__esModule",{value:!0});var Ra=Je(),g0e=f3(),y0e=du(),QP=cu(),y8=nm(),v0e={message:t=>{let{schema:e,params:n}=t;return n.discrError?n.discrError===y8.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in mapping`:(0,QP.typeErrorMessage)(t,"object")},params:t=>{let{schema:e,params:n}=t;return n.discrError?(0,Ra._)`{error: ${n.discrError}, tag: ${e}, tagValue: ${n.tag}}`:(0,QP.typeErrorParams)(t,"object")}},_0e={keyword:"discriminator",schemaType:"string",implements:["mapping"],error:v0e,code(t){(0,g0e.checkMetadata)(t);let{gen:e,data:n,schema:r,parentSchema:l}=t,[i,s]=(0,y0e.checkNullableObject)(t,n);e.if(s),a(),e.elseIf((0,Ra.not)(i)),t.error(),e.endIf(),t.ok(i);function a(){let c=e.const("tag",(0,Ra._)`${n}${(0,Ra.getProperty)(r)}`);e.if((0,Ra._)`${c} === undefined`),t.error(!1,{discrError:y8.DiscrError.Tag,tag:c}),e.elseIf((0,Ra._)`typeof ${c} == "string"`),o(c),e.else(),t.error(!1,{discrError:y8.DiscrError.Tag,tag:c},{instancePath:r}),e.endIf()}function o(c){e.if(!1);for(let p in l.mapping)e.elseIf((0,Ra._)`${c} === ${p}`),e.assign(i,f(p));e.else(),t.error(!1,{discrError:y8.DiscrError.Mapping,tag:c},{instancePath:r,schemaPath:"mapping",parentSchema:!0}),e.endIf()}function f(c){let p=e.name("valid");return t.subschema({keyword:"mapping",schemaProp:c,jtdDiscriminator:r},p),p}}};Fg.default=_0e});var tD=C(Mg=>{"use strict";Object.defineProperty(Mg,"__esModule",{value:!0});var eD=yt(),v8=Je(),E0e=f3(),b0e=du(),T0e=cu(),S0e={keyword:"values",schemaType:"object",error:(0,T0e.typeError)("object"),code(t){(0,E0e.checkMetadata)(t);let{gen:e,data:n,schema:r,it:l}=t,[i,s]=(0,b0e.checkNullableObject)(t,n);(0,eD.alwaysValidSchema)(l,r)?e.if((0,v8.not)((0,v8.or)(s,i)),()=>t.error()):(e.if(s),e.assign(i,a()),e.elseIf((0,v8.not)(i)),t.error(),e.endIf()),t.ok(i);function a(){let o=e.name("valid");if(l.allErrors){let c=e.let("valid",!0);return f(()=>e.assign(c,!1)),c}return e.var(o,!0),f(()=>e.break()),o;function f(c){e.forIn("key",n,p=>{t.subschema({keyword:"values",dataProp:p,dataPropType:eD.Type.Str},o),e.if((0,v8.not)(o),c)})}}}};Mg.default=S0e});var nD=C($g=>{"use strict";Object.defineProperty($g,"__esModule",{value:!0});var x0e=zr(),A0e={keyword:"union",schemaType:"array",trackErrors:!0,code:x0e.validateUnion,error:{message:"must match a schema in union"}};$g.default=A0e});var rD=C(jg=>{"use strict";Object.defineProperty(jg,"__esModule",{value:!0});var w0e=m8(),R0e=Ig(),O0e=VP(),N0e=GP(),I0e=Dg(),C0e=JP(),k0e=ZP(),P0e=tD(),D0e=nD(),L0e=f3(),F0e=["definitions",w0e.default,R0e.default,O0e.default,N0e.default,I0e.default,C0e.default,k0e.default,P0e.default,D0e.default,L0e.default,{keyword:"additionalProperties",schemaType:"boolean"},{keyword:"nullable",schemaType:"boolean"}];jg.default=F0e});var aD=C(Ug=>{"use strict";Object.defineProperty(Ug,"__esModule",{value:!0});var d3=t=>{let e={nullable:{type:"boolean"},metadata:{optionalProperties:{union:{elements:{ref:"schema"}}},additionalProperties:!0}};return t&&(e.definitions={values:{ref:"schema"}}),e},M0e=t=>({optionalProperties:d3(t)}),$0e=t=>({properties:{ref:{type:"string"}},optionalProperties:d3(t)}),j0e=t=>({properties:{type:{enum:["boolean","timestamp","string","float32","float64","int8","uint8","int16","uint16","int32","uint32"]}},optionalProperties:d3(t)}),U0e=t=>({properties:{enum:{elements:{type:"string"}}},optionalProperties:d3(t)}),B0e=t=>({properties:{elements:{ref:"schema"}},optionalProperties:d3(t)}),iD=t=>({properties:{properties:{values:{ref:"schema"}}},optionalProperties:{optionalProperties:{values:{ref:"schema"}},additionalProperties:{type:"boolean"},...d3(t)}}),sD=t=>({properties:{optionalProperties:{values:{ref:"schema"}}},optionalProperties:{additionalProperties:{type:"boolean"},...d3(t)}}),H0e=t=>({properties:{discriminator:{type:"string"},mapping:{values:{metadata:{union:[iD(!1),sD(!1)]}}}},optionalProperties:d3(t)}),q0e=t=>({properties:{values:{ref:"schema"}},optionalProperties:d3(t)}),lD=t=>({metadata:{union:[M0e,$0e,j0e,U0e,B0e,iD,sD,H0e,q0e].map(e=>e(t))}}),V0e={definitions:{schema:lD(!1)},...lD(!0)};Ug.default=V0e});var Bg=C(_8=>{"use strict";Object.defineProperty(_8,"__esModule",{value:!0});_8.jtdForms=void 0;_8.jtdForms=["elements","values","discriminator","properties","optionalProperties","enum","type","ref"]});var uD=C(qg=>{"use strict";Object.defineProperty(qg,"__esModule",{value:!0});var Hg=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,z0e={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function oD(t){return Hg.lastIndex=0,'"'+(Hg.test(t)?t.replace(Hg,e=>{let n=z0e[e];return typeof n=="string"?n:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}):t)+'"'}qg.default=oD;oD.code='require("ajv/dist/runtime/quote").default'});var mD=C(zg=>{"use strict";Object.defineProperty(zg,"__esModule",{value:!0});var G0e=Bg(),fD=ga(),It=Je(),X0e=z3(),On=m2(),W0e=zr(),K0e=m8(),Y0e=yt(),J0e=uD(),Q0e={elements:e5e,values:t5e,discriminator:n5e,properties:cD,optionalProperties:cD,enum:W1,type:r5e,ref:i5e};function pD(t,e){let n=fD.getCompilingSchema.call(this,t);if(n)return n;let{es5:r,lines:l}=this.opts.code,{ownProperties:i}=this.opts,s=new It.CodeGen(this.scope,{es5:r,lines:l,ownProperties:i}),a=s.scopeName("serialize"),o={self:this,gen:s,schema:t.schema,schemaEnv:t,definitions:e,data:On.default.data},f;try{this._compilations.add(t),t.serializeName=a,s.func(a,On.default.data,!1,()=>{s.let(On.default.json,(0,It.str)``),K1(o),s.return(On.default.json)}),s.optimize(this.opts.code.optimize);let c=s.toString();f=`${s.scopeRefs(On.default.scope)}return ${c}`;let m=new Function(`${On.default.scope}`,f)(this.scope.get());this.scope.value(a,{ref:m}),t.serialize=m}catch(c){throw f&&this.logger.error("Error compiling serializer, function code:",f),delete t.serialize,delete t.serializeName,c}finally{this._compilations.delete(t)}return t}zg.default=pD;function K1(t){let e;for(let n of G0e.jtdForms)if(n in t.schema){e=n;break}Z0e(t,e?Q0e[e]:a5e)}function Z0e(t,e){let{gen:n,schema:r,data:l}=t;if(!r.nullable)return e(t);n.if((0,It._)`${l} === undefined || ${l} === null`,()=>n.add(On.default.json,(0,It._)`"null"`),()=>e(t))}function e5e(t){let{gen:e,schema:n,data:r}=t;e.add(On.default.json,(0,It.str)`[`);let l=e.let("first",!0);e.forOf("el",r,i=>{Vg(t,l),K1({...t,schema:n.elements,data:i})}),e.add(On.default.json,(0,It.str)`]`)}function t5e(t){let{gen:e,schema:n,data:r}=t;e.add(On.default.json,(0,It.str)`{`);let l=e.let("first",!0);e.forIn("key",r,i=>dD(t,i,n.values,l)),e.add(On.default.json,(0,It.str)`}`)}function dD(t,e,n,r){let{gen:l,data:i}=t;Vg(t,r),W1({...t,data:e}),l.add(On.default.json,(0,It.str)`:`);let s=l.const("value",(0,It._)`${i}${(0,It.getProperty)(e)}`);K1({...t,schema:n,data:s})}function n5e(t){let{gen:e,schema:n,data:r}=t,{discriminator:l}=n;e.add(On.default.json,(0,It.str)`{${JSON.stringify(l)}:`);let i=e.const("tag",(0,It._)`${r}${(0,It.getProperty)(l)}`);W1({...t,data:i}),e.if(!1);for(let s in n.mapping){e.elseIf((0,It._)`${i} === ${s}`);let a=n.mapping[s];hD({...t,schema:a},l)}e.endIf(),e.add(On.default.json,(0,It.str)`}`)}function cD(t){let{gen:e}=t;e.add(On.default.json,(0,It.str)`{`),hD(t),e.add(On.default.json,(0,It.str)`}`)}function hD(t,e){let{gen:n,schema:r,data:l}=t,{properties:i,optionalProperties:s}=r,a=m(i),o=m(s),f=h(a.concat(o)),c=!e,p;for(let T of a)c?c=!1:n.add(On.default.json,(0,It.str)`,`),_(T,i[T],g(T));c&&(p=n.let("first",!0));for(let T of o){let x=g(T);n.if((0,It.and)((0,It._)`${x} !== undefined`,(0,W0e.isOwnProperty)(n,l,T)),()=>{Vg(t,p),_(T,s[T],x)})}r.additionalProperties&&n.forIn("key",l,T=>n.if(S(T,f),()=>dD(t,T,{},p)));function m(T){return T?Object.keys(T):[]}function h(T){if(e&&T.push(e),new Set(T).size!==T.length)throw new Error("JTD: properties/optionalProperties/disciminator overlap");return T}function g(T){return n.const("value",(0,It._)`${l}${(0,It.getProperty)(T)}`)}function _(T,x,v){n.add(On.default.json,(0,It.str)`${JSON.stringify(T)}:`),K1({...t,schema:x,data:v})}function S(T,x){return x.length?(0,It.and)(...x.map(v=>(0,It._)`${T} !== ${v}`)):!0}}function r5e(t){let{gen:e,schema:n,data:r}=t;switch(n.type){case"boolean":e.add(On.default.json,(0,It._)`${r} ? "true" : "false"`);break;case"string":W1(t);break;case"timestamp":e.if((0,It._)`${r} instanceof Date`,()=>e.add(On.default.json,(0,It._)`'"' + ${r}.toISOString() + '"'`),()=>W1(t));break;default:l5e(t)}}function W1({gen:t,data:e}){t.add(On.default.json,(0,It._)`${(0,Y0e.useFunc)(t,J0e.default)}(${e})`)}function l5e({gen:t,data:e}){t.add(On.default.json,(0,It._)`"" + ${e}`)}function i5e(t){let{gen:e,self:n,data:r,definitions:l,schema:i,schemaEnv:s}=t,{ref:a}=i,o=l[a];if(!o)throw new X0e.default(n.opts.uriResolver,"",a,`No definition ${a}`);if(!(0,K0e.hasRef)(o))return K1({...t,schema:o});let{root:f}=s,c=pD.call(n,new fD.SchemaEnv({schema:o,root:f}),l);e.add(On.default.json,(0,It._)`${s5e(e,c)}(${r})`)}function s5e(t,e){return e.serialize?t.scopeValue("serialize",{ref:e.serialize}):(0,It._)`${t.scopeValue("wrapper",{ref:e})}.serialize`}function a5e({gen:t,data:e}){t.add(On.default.json,(0,It._)`JSON.stringify(${e})`)}function Vg({gen:t},e){e?t.if(e,()=>t.assign(e,!1),()=>t.add(On.default.json,(0,It.str)`,`)):t.add(On.default.json,(0,It.str)`,`)}});var yD=C(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.parseJsonString=es.parseJsonNumber=es.parseJson=void 0;var o5e=/position\s(\d+)$/;function h3(t,e){let n;h3.message=void 0;let r;e&&(t=t.slice(e));try{return h3.position=e+t.length,JSON.parse(t)}catch(l){if(r=o5e.exec(l.message),!r){h3.message="unexpected end";return}n=+r[1];let i=t[n];t=t.slice(0,n),h3.position=e+n;try{return JSON.parse(t)}catch{h3.message=`unexpected token ${i}`;return}}}es.parseJson=h3;h3.message=void 0;h3.position=0;h3.code='require("ajv/dist/runtime/parseJson").parseJson';function m3(t,e,n){let r="",l;if(m3.message=void 0,t[e]==="-"&&(r+="-",e++),t[e]==="0")r+="0",e++;else if(!i(n)){s();return}if(n)return m3.position=e,+r;if(t[e]==="."&&(r+=".",e++,!i())){s();return}if(l=t[e],(l==="e"||l==="E")&&(r+="e",e++,l=t[e],(l==="+"||l==="-")&&(r+=l,e++),!i())){s();return}return m3.position=e,+r;function i(a){let o=!1;for(;l=t[e],l>="0"&&l<="9"&&(a===void 0||a-- >0);)o=!0,r+=l,e++;return o}function s(){m3.position=e,m3.message=e="a"&&r<="f")s+=r.charCodeAt(0)-u5e+10;else if(r>="0"&&r<="9")s+=r.charCodeAt(0)-c5e;else{l(`unexpected token ${r}`);return}e++}n+=String.fromCharCode(s)}else{l(`unexpected token ${r}`);return}else if(r===void 0){l("unexpected end");return}else if(r.charCodeAt(0)>=32)n+=r;else{l(`unexpected token ${r}`);return}return Z3.position=e,n;function l(i){Z3.position=e,Z3.message=i}}es.parseJsonString=Z3;Z3.message=void 0;Z3.position=0;Z3.code='require("ajv/dist/runtime/parseJson").parseJsonString'});var OD=C(Zg=>{"use strict";Object.defineProperty(Zg,"__esModule",{value:!0});var f5e=Bg(),bD=ga(),qe=Je(),p5e=z3(),Nt=m2(),d5e=zr(),h5e=m8(),m5e=Ig(),Wg=yD(),TD=yt(),g5e=Ng(),y5e={elements:b5e,values:T5e,discriminator:x5e,properties:vD,optionalProperties:vD,enum:w5e,type:A5e,ref:R5e};function SD(t,e){let n=bD.getCompilingSchema.call(this,t);if(n)return n;let{es5:r,lines:l}=this.opts.code,{ownProperties:i}=this.opts,s=new qe.CodeGen(this.scope,{es5:r,lines:l,ownProperties:i}),a=s.scopeName("parse"),o={self:this,gen:s,schema:t.schema,schemaEnv:t,definitions:e,data:Nt.default.data,parseName:a,char:s.name("c")},f;try{this._compilations.add(t),t.parseName=a,v5e(o),s.optimize(this.opts.code.optimize);let c=s.toString();f=`${s.scopeRefs(Nt.default.scope)}return ${c}`;let m=new Function(`${Nt.default.scope}`,f)(this.scope.get());this.scope.value(a,{ref:m}),t.parse=m}catch(c){throw f&&this.logger.error("Error compiling parser, function code:",f),delete t.parse,delete t.parseName,c}finally{this._compilations.delete(t)}return t}Zg.default=SD;var Xg=(0,qe._)`undefined`;function v5e(t){let{gen:e,parseName:n,char:r}=t;e.func(n,(0,qe._)`${Nt.default.json}, ${Nt.default.jsonPos}, ${Nt.default.jsonPart}`,!1,()=>{e.let(Nt.default.data),e.let(r),e.assign((0,qe._)`${n}.message`,Xg),e.assign((0,qe._)`${n}.position`,Xg),e.assign(Nt.default.jsonPos,(0,qe._)`${Nt.default.jsonPos} || 0`),e.const(Nt.default.jsonLen,(0,qe._)`${Nt.default.json}.length`),E8(t),Qg(t),e.if(Nt.default.jsonPart,()=>{e.assign((0,qe._)`${n}.position`,Nt.default.jsonPos),e.return(Nt.default.data)}),e.if((0,qe._)`${Nt.default.jsonPos} === ${Nt.default.jsonLen}`,()=>e.return(Nt.default.data)),mu(t)})}function E8(t){let e;for(let n of f5e.jtdForms)if(n in t.schema){e=n;break}e?E5e(t,y5e[e]):Yg(t)}var _5e=ED(!0,ED(!1,mu));function E5e(t,e){let{gen:n,schema:r,data:l}=t;if(!r.nullable)return e(t);Y1(t,"null",e,()=>n.assign(l,null))}function b5e(t){let{gen:e,schema:n,data:r}=t;Ei(t,"[");let l=e.let("i",0);e.assign(r,(0,qe._)`[]`),Kg(t,"]",()=>{let i=e.let("el");E8({...t,schema:n.elements,data:i}),e.assign((0,qe._)`${r}[${l}++]`,i)})}function T5e(t){let{gen:e,schema:n,data:r}=t;Ei(t,"{"),e.assign(r,(0,qe._)`{}`),Kg(t,"}",()=>S5e(t,n.values))}function Kg(t,e,n){xD(t,e,n),Ei(t,e)}function xD(t,e,n){let{gen:r}=t;r.for((0,qe._)`;${Nt.default.jsonPos}<${Nt.default.jsonLen} && ${b8(1)}!==${e};`,()=>{n(),Y1(t,",",()=>r.break(),l)});function l(){Y1(t,e,()=>{},mu)}}function S5e(t,e){let{gen:n}=t,r=n.let("key");Oa({...t,data:r}),Ei(t,":"),wD(t,r,e)}function x5e(t){let{gen:e,data:n,schema:r}=t,{discriminator:l,mapping:i}=r;Ei(t,"{"),e.assign(n,(0,qe._)`{}`);let s=e.const("pos",Nt.default.jsonPos),a=e.let("value"),o=e.let("tag");xD(t,"}",()=>{let f=e.let("key");Oa({...t,data:f}),Ei(t,":"),e.if((0,qe._)`${f} === ${l}`,()=>{Oa({...t,data:o}),e.assign((0,qe._)`${n}[${f}]`,o),e.break()},()=>Yg({...t,data:a}))}),e.assign(Nt.default.jsonPos,s),e.if((0,qe._)`${o} === undefined`),g3(t,(0,qe.str)`discriminator tag not found`);for(let f in i)e.elseIf((0,qe._)`${o} === ${f}`),AD({...t,schema:i[f]},l);e.else(),g3(t,(0,qe.str)`discriminator value not in schema`),e.endIf()}function vD(t){let{gen:e,data:n}=t;Ei(t,"{"),e.assign(n,(0,qe._)`{}`),AD(t)}function AD(t,e){let{gen:n,schema:r,data:l}=t,{properties:i,optionalProperties:s,additionalProperties:a}=r;if(Kg(t,"}",()=>{let o=n.let("key");if(Oa({...t,data:o}),Ei(t,":"),n.if(!1),_D(t,o,i),_D(t,o,s),e){n.elseIf((0,qe._)`${o} === ${e}`);let f=n.let("tag");Oa({...t,data:f})}n.else(),a?Yg({...t,data:(0,qe._)`${l}[${o}]`}):g3(t,(0,qe.str)`property ${o} not allowed`),n.endIf()}),i){let o=(0,d5e.hasPropFunc)(n),f=(0,qe.and)(...Object.keys(i).map(c=>(0,qe._)`${o}.call(${l}, ${c})`));n.if((0,qe.not)(f),()=>g3(t,(0,qe.str)`missing required properties`))}}function _D(t,e,n={}){let{gen:r}=t;for(let l in n)r.elseIf((0,qe._)`${e} === ${l}`),wD(t,e,n[l])}function wD(t,e,n){E8({...t,schema:n,data:(0,qe._)`${t.data}[${e}]`})}function A5e(t){let{gen:e,schema:n,data:r,self:l}=t;switch(n.type){case"boolean":_5e(t);break;case"string":Oa(t);break;case"timestamp":{Oa(t);let i=(0,TD.useFunc)(e,g5e.default),{allowDate:s,parseDate:a}=l.opts,o=s?(0,qe._)`!${i}(${r}, true)`:(0,qe._)`!${i}(${r})`,f=a?(0,qe.or)(o,(0,qe._)`(${r} = new Date(${r}), false)`,(0,qe._)`isNaN(${r}.valueOf())`):o;e.if(f,()=>g3(t,(0,qe.str)`invalid timestamp`));break}case"float32":case"float64":Gg(t);break;default:{let i=n.type;if(!l.opts.int32range&&(i==="int32"||i==="uint32"))Gg(t,16),i==="uint32"&&e.if((0,qe._)`${r} < 0`,()=>g3(t,(0,qe.str)`integer out of range`));else{let[s,a,o]=m5e.intRange[i];Gg(t,o),e.if((0,qe._)`${r} < ${s} || ${r} > ${a}`,()=>g3(t,(0,qe.str)`integer out of range`))}}}}function Oa(t){Ei(t,'"'),Jg(t,Wg.parseJsonString)}function w5e(t){let{gen:e,data:n,schema:r}=t,l=r.enum;Ei(t,'"'),e.if(!1);for(let i of l){let s=JSON.stringify(i).slice(1);e.elseIf((0,qe._)`${b8(s.length)} === ${s}`),e.assign(n,(0,qe.str)`${i}`),e.add(Nt.default.jsonPos,s.length)}e.else(),mu(t),e.endIf()}function Gg(t,e){let{gen:n}=t;Qg(t),n.if((0,qe._)`"-0123456789".indexOf(${b8(1)}) < 0`,()=>mu(t),()=>Jg(t,Wg.parseJsonNumber,e))}function ED(t,e){return n=>{let{gen:r,data:l}=n;Y1(n,`${t}`,()=>e(n),()=>r.assign(l,t))}}function R5e(t){let{gen:e,self:n,definitions:r,schema:l,schemaEnv:i}=t,{ref:s}=l,a=r[s];if(!a)throw new p5e.default(n.opts.uriResolver,"",s,`No definition ${s}`);if(!(0,h5e.hasRef)(a))return E8({...t,schema:a});let{root:o}=i,f=SD.call(n,new bD.SchemaEnv({schema:a,root:o}),r);RD(t,O5e(e,f),!0)}function O5e(t,e){return e.parse?t.scopeValue("parse",{ref:e.parse}):(0,qe._)`${t.scopeValue("wrapper",{ref:e})}.parse`}function Yg(t){Jg(t,Wg.parseJson)}function Jg(t,e,n){RD(t,(0,TD.useFunc)(t.gen,e),n)}function RD(t,e,n){let{gen:r,data:l}=t;r.assign(l,(0,qe._)`${e}(${Nt.default.json}, ${Nt.default.jsonPos}${n?(0,qe._)`, ${n}`:qe.nil})`),r.assign(Nt.default.jsonPos,(0,qe._)`${e}.position`),r.if((0,qe._)`${l} === undefined`,()=>g3(t,(0,qe._)`${e}.message`))}function Ei(t,e){Y1(t,e,mu)}function Y1(t,e,n,r){let{gen:l}=t,i=e.length;Qg(t),l.if((0,qe._)`${b8(i)} === ${e}`,()=>{l.add(Nt.default.jsonPos,i),r?.(t)},()=>n(t))}function Qg({gen:t,char:e}){t.code((0,qe._)`while((${e}=${Nt.default.json}[${Nt.default.jsonPos}],${e}===" "||${e}==="\\n"||${e}==="\\r"||${e}==="\\t"))${Nt.default.jsonPos}++;`)}function b8(t){return t===1?(0,qe._)`${Nt.default.json}[${Nt.default.jsonPos}]`:(0,qe._)`${Nt.default.json}.slice(${Nt.default.jsonPos}, ${Nt.default.jsonPos}+${t})`}function mu(t){g3(t,(0,qe._)`"unexpected token " + ${Nt.default.json}[${Nt.default.jsonPos}]`)}function g3({gen:t,parseName:e},n){t.assign((0,qe._)`${e}.message`,n),t.assign((0,qe._)`${e}.position`,Nt.default.jsonPos),t.return(Xg)}});var ty=C((Un,ND)=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.MissingRefError=Un.ValidationError=Un.CodeGen=Un.Name=Un.nil=Un.stringify=Un.str=Un._=Un.KeywordCxt=void 0;var N5e=hh(),I5e=rD(),C5e=aD(),k5e=mD(),P5e=OD(),ey="JTD-meta-schema",T8=class extends N5e.default{constructor(e={}){super({...e,jtd:!0})}_addVocabularies(){super._addVocabularies(),this.addVocabulary(I5e.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema(),this.opts.meta&&this.addMetaSchema(C5e.default,ey,!1)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(ey)?ey:void 0)}compileSerializer(e){let n=this._addSchema(e);return n.serialize||this._compileSerializer(n)}compileParser(e){let n=this._addSchema(e);return n.parse||this._compileParser(n)}_compileSerializer(e){if(k5e.default.call(this,e,e.schema.definitions||{}),!e.serialize)throw new Error("ajv implementation error");return e.serialize}_compileParser(e){if(P5e.default.call(this,e,e.schema.definitions||{}),!e.parse)throw new Error("ajv implementation error");return e.parse}};ND.exports=Un=T8;Object.defineProperty(Un,"__esModule",{value:!0});Un.default=T8;var D5e=zo();Object.defineProperty(Un,"KeywordCxt",{enumerable:!0,get:function(){return D5e.KeywordCxt}});var gu=Je();Object.defineProperty(Un,"_",{enumerable:!0,get:function(){return gu._}});Object.defineProperty(Un,"str",{enumerable:!0,get:function(){return gu.str}});Object.defineProperty(Un,"stringify",{enumerable:!0,get:function(){return gu.stringify}});Object.defineProperty(Un,"nil",{enumerable:!0,get:function(){return gu.nil}});Object.defineProperty(Un,"Name",{enumerable:!0,get:function(){return gu.Name}});Object.defineProperty(Un,"CodeGen",{enumerable:!0,get:function(){return gu.CodeGen}});var L5e=u1();Object.defineProperty(Un,"ValidationError",{enumerable:!0,get:function(){return L5e.default}});var F5e=z3();Object.defineProperty(Un,"MissingRefError",{enumerable:!0,get:function(){return F5e.default}})});var ny=C((bSe,ID)=>{"use strict";var M5e=om();ID.exports=Object.freeze({coerceTypes:"array",useDefaults:!0,removeAdditional:!0,uriResolver:M5e,addUsedSchema:!1,allErrors:!1})});var PD=C((TSe,kD)=>{"use strict";var $5e=O6().default,j5e=ty(),CD=ny(),ry=class{constructor(e,n){n.mode==="JTD"?this.ajv=new j5e(Object.assign({},CD,n.customOptions)):this.ajv=new $5e(Object.assign({},CD,n.customOptions));let r=!0;if(n.plugins&&n.plugins.length>0)for(let i of n.plugins)Array.isArray(i)?(r=r&&i[0].name!=="formatsPlugin",i[0](this.ajv,i[1])):(r=r&&i.name!=="formatsPlugin",i(this.ajv));r&&mm()(this.ajv);let l=Object.values(e);for(let i of l)this.ajv.addSchema(i)}buildValidatorFunction({schema:e}){if(e.$id){let n=this.ajv.getSchema(e.$id);if(n)return n}return this.ajv.compile(e)}};kD.exports=ry});var LD=C((SSe,DD)=>{"use strict";var U5e=ty(),B5e=ny(),ly=class{constructor(e,n){this.ajv=new U5e(Object.assign({},B5e,n))}buildSerializerFunction({schema:e}){return this.ajv.compileSerializer(e)}};DD.exports=ly});var $D=C((Q1,MD)=>{"use strict";Object.defineProperty(Q1,"__esModule",{value:!0});var J1=t6(),V2=Mo();function FD(t,e){if(!t.opts.code.source)throw new Error("moduleCode: ajv instance must have code.source option");let{_n:n}=t.scope.opts;return typeof e=="function"?l(e.source):e!==void 0?i(e,r):i(t.schemas,a=>a.meta?void 0:t.compile(a.schema));function r(a){let o=t.getSchema(a);if(!o)throw new Error(`moduleCode: no schema with id ${a}`);return o}function l(a){let o={},f=a?.validateName,c=s(o,a);return t.opts.code.esm?`"use strict";${n}export const validate = ${f};${n}export default ${f};${n}${c}`:`"use strict";${n}module.exports = ${f};${n}module.exports.default = ${f};${n}${c}`}function i(a,o){var f;let c={},p=(0,V2._)`"use strict";`;for(let m in a){let h=o(a[m]);if(h){let g=s(c,h.source),_=t.opts.code.esm?(0,V2._)`export const ${(0,V2.getEsmExportName)(m)}`:(0,V2._)`exports${(0,V2.getProperty)(m)}`;p=(0,V2._)`${p}${n}${_} = ${(f=h.source)===null||f===void 0?void 0:f.validateName};${n}${g}`}}return`${p}`}function s(a,o){if(!o)throw new Error('moduleCode: function does not have "source" property');if(m(o.validateName)===J1.UsedValueState.Completed)return V2.nil;h(o.validateName,J1.UsedValueState.Started);let f=t.scope.scopeCode(o.scopeValues,a,p),c=new V2._Code(`${f}${n}${o.validateCode}`);return o.evaluated?(0,V2._)`${c}${o.validateName}.evaluated = ${o.evaluated};${n}`:c;function p(g){var _;let S=(_=g.value)===null||_===void 0?void 0:_.ref;if(g.prefix==="validate"&&typeof S=="function")return s(a,S.source);if((g.prefix==="root"||g.prefix==="wrapper")&&typeof S=="object"){let{validate:T,validateName:x}=S;if(!x)throw new Error("ajv internal error");let v=t.opts.code.es5?J1.varKinds.var:J1.varKinds.const,b=(0,V2._)`${v} ${g} = {validate: ${x}};`;if(m(x)===J1.UsedValueState.Started)return b;let w=s(a,T?.source);return(0,V2._)`${b}${n}${w}`}}function m(g){var _;return(_=a[g.prefix])===null||_===void 0?void 0:_.get(g)}function h(g,_){let{prefix:S}=g;(a[S]=a[S]||new Map).set(g,_)}}}MD.exports=Q1=FD;Object.defineProperty(Q1,"__esModule",{value:!0});Q1.default=FD});var BD=C((xSe,UD)=>{"use strict";var jD=iy(),H5e=$D().default;function q5e(t={readMode:!0}){if(t.readMode===!0&&!t.restoreFunction)throw new Error("You must provide a restoreFunction options when readMode ON");if(t.readMode!==!0&&!t.storeFunction)throw new Error("You must provide a storeFunction options when readMode OFF");if(t.readMode===!0)return function(){return function(r){return t.restoreFunction(r)}};let e=jD();return function(r,l={}){(!l.customOptions||!l.customOptions.code)&&(l.customOptions=Object.assign({},l.customOptions,{code:{source:!0}}));let i=e(r,l);return function(s){let a=i(s),o=H5e(i[jD.AjvReference].ajv,a);return t.storeFunction(s,o),a}}}UD.exports=q5e});var iy=C((ASe,yu)=>{"use strict";var qD=Symbol.for("fastify.ajv-compiler.reference"),V5e=PD(),z5e=LD();function sy(t){let e=new Map,n=new Map;return t&&t.jtdSerializer===!0?function(l,i){let s=HD({},i);if(n.has(s))return n.get(s);let a=new z5e(l,i),o=a.buildSerializerFunction.bind(a);return n.set(s,o),o}:function(l,i){let s=HD(l,i.customOptions);if(e.has(s))return e.get(s);let a=new V5e(l,i),o=a.buildValidatorFunction.bind(a);return e.set(s,o),i.customOptions.code!==void 0&&(o[qD]=a),o}}function HD(t,e){let n=JSON.stringify(t),r=JSON.stringify(e);return`${n}${r}`}yu.exports=sy;yu.exports.default=sy;yu.exports.AjvCompiler=sy;yu.exports.AjvReference=qD;yu.exports.StandaloneValidator=BD()});var ay=C((wSe,VD)=>{"use strict";var{buildSchemas:G5e}=K4(),X5e=Ag(),W5e=iy();function K5e(t,e){if(t)return new vu(t,e);let n=Object.assign({buildValidator:null,buildSerializer:null},e?.compilersFactory);n.buildValidator||(n.buildValidator=W5e()),n.buildSerializer||(n.buildSerializer=X5e());let r={bucket:e&&e.bucket||G5e,compilersFactory:n,isCustomValidatorCompiler:typeof e?.compilersFactory?.buildValidator=="function",isCustomSerializerCompiler:typeof e?.compilersFactory?.buildValidator=="function"};return new vu(void 0,r)}var vu=class{constructor(e,n){this.opts=n||e?.opts,this.addedSchemas=!1,this.compilersFactory=this.opts.compilersFactory,e?(this.schemaBucket=this.opts.bucket(e.getSchemas()),this.validatorCompiler=e.getValidatorCompiler(),this.serializerCompiler=e.getSerializerCompiler(),this.isCustomValidatorCompiler=e.isCustomValidatorCompiler,this.isCustomSerializerCompiler=e.isCustomSerializerCompiler,this.parent=e):(this.schemaBucket=this.opts.bucket(),this.isCustomValidatorCompiler=this.opts.isCustomValidatorCompiler||!1,this.isCustomSerializerCompiler=this.opts.isCustomSerializerCompiler||!1)}add(e){return this.addedSchemas=!0,this.schemaBucket.add(e)}getSchema(e){return this.schemaBucket.getSchema(e)}getSchemas(){return this.schemaBucket.getSchemas()}setValidatorCompiler(e){this.compilersFactory=Object.assign({},this.compilersFactory,{buildValidator:()=>e}),this.validatorCompiler=e,this.isCustomValidatorCompiler=!0}setSerializerCompiler(e){this.compilersFactory=Object.assign({},this.compilersFactory,{buildSerializer:()=>e}),this.serializerCompiler=e,this.isCustomSerializerCompiler=!0}getValidatorCompiler(){return this.validatorCompiler||this.parent&&this.parent.getValidatorCompiler()}getSerializerCompiler(){return this.serializerCompiler||this.parent&&this.parent.getSerializerCompiler()}getSerializerBuilder(){return this.compilersFactory.buildSerializer||this.parent&&this.parent.getSerializerBuilder()}getValidatorBuilder(){return this.compilersFactory.buildValidator||this.parent&&this.parent.getValidatorBuilder()}setupValidator(e){this.validatorCompiler!==void 0&&!this.addedSchemas||(this.validatorCompiler=this.getValidatorBuilder()(this.schemaBucket.getSchemas(),e.ajv))}setupSerializer(e){this.serializerCompiler!==void 0&&!this.addedSchemas||(this.serializerCompiler=this.getSerializerBuilder()(this.schemaBucket.getSchemas(),e.serializerOpts))}};vu.buildSchemaController=K5e;VD.exports=vu});var dy=C((RSe,py)=>{"use strict";var oy=Ym(),cy=require("node:assert"),fy=Symbol.for("registered-plugin"),{kTestInternals:Y5e}=Dr(),{exist:J5e,existReply:Q5e,existRequest:Z5e}=sg(),{FST_ERR_PLUGIN_VERSION_MISMATCH:ece,FST_ERR_PLUGIN_NOT_PRESENT_IN_INSTANCE:tce}=il(),{FSTWRN002:nce}=e3();function Z1(t){return t[Symbol.for("plugin-meta")]}function zD(t){let e=GD(t);if(e)return e;let n=require.cache;if(n){let r=Object.keys(n);for(let l=0;le.trim()).join(" -- ")}function GD(t){return t[Symbol.for("fastify.display-name")]}function XD(t){return!!t[Symbol.for("skip-override")]}function WD(t){let e=Z1(t);if(!e)return;let n=e.dependencies;n&&(cy(Array.isArray(n),"The dependencies should be an array of strings"),n.forEach(r=>{cy(this[fy].indexOf(r)>-1,`The dependency '${r}' of plugin '${e.name}' is not registered`)}))}function KD(t){let e=Z1(t);if(!e)return;let{decorators:n,name:r}=e;n&&(n.fastify&&uy(this,"Fastify",n.fastify,r),n.reply&&uy(this,"Reply",n.reply,r),n.request&&uy(this,"Request",n.request,r))}var lce={Fastify:J5e,Request:Z5e,Reply:Q5e};function uy(t,e,n,r){cy(Array.isArray(n),"The decorators should be an array of strings"),n.forEach(l=>{let i=typeof r=="string"?` required by '${r}'`:"";if(!lce[e].call(t,l))throw new tce(l,i,e)})}function ice(t){let e=Z1(t);if(!e)return;let n=e.fastify,r=/-rc.+$/.test(this.version);if(!(r===!0&&oy.gt(this.version,oy.coerce(n))===!0)&&n&&oy.satisfies(this.version,n,{includePrerelease:r})===!1)throw new ece(e.name,n,this.version)}function sce(t){let e=Z1(t);if(!e)return;let n=e.name;if(n)return this[fy].push(n),n}function ace(t,e){t.constructor.name==="AsyncFunction"&&t.length===3&&nce(e||"anonymous")}function oce(t){let e=sce.call(this,t)||zD(t);return ace.call(this,t,e),ice.call(this,t),KD.call(this,t),WD.call(this,t),XD(t)}py.exports={getPluginName:zD,getFuncPreview:rce,kRegisteredPlugins:fy,getDisplayName:GD,registerPlugin:oce};py.exports[Y5e]={shouldSkipOverride:XD,getMeta:Z1,checkDecorators:KD,checkDependencies:WD}});var S8=C((OSe,YD)=>{"use strict";function uce(t,e){let n=e||fce();return t?pce(t,n):n}function cce(t,e){return t.genReqId(e)}function fce(){let e=0;return function(){return e=e+1&2147483647,`req-${e.toString(36)}`}}function pce(t,e){return function(n){return n.headers[t]||e(n)}}YD.exports={getGenReqId:cce,reqIdGenFactory:uce}});var eL=C((NSe,ZD)=>{"use strict";var JD=12,dce=0,hy=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,10,9,9,9,11,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,24,36,48,60,72,84,96,0,12,12,12,0,0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0,0,24,24,24,0,0,0,0,0,0,0,0,0,24,24,0,0,0,0,0,0,0,0,0,0,48,48,48,0,0,0,0,0,0,0,0,0,0,48,48,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,0,0,0,127,63,63,63,0,31,15,15,15,7,7,7];function hce(t){var e=t.indexOf("%");if(e===-1)return t;for(var n=t.length,r="",l=0,i=0,s=e,a=JD;e>-1&&e>10),56320+(i&1023)),i=0,l=e+3,e=s=t.indexOf("%",l);else{if(a===dce)return null;if(e+=3,e{"use strict";var tL=eL(),nL=/\+/g,rL=function(){};rL.prototype=Object.create(null);function gce(t){let e=new rL;if(typeof t!="string")return e;let n=t.length,r="",l="",i=-1,s=-1,a=!1,o=!1,f=!1,c=!1,p=!1,m=0;for(let h=0;hi,p||(s=h),r=t.slice(i+1,s),p||r.length>0){f&&(r=r.replace(nL," ")),a&&(r=tL(r)||r),p&&(l=t.slice(s+1,h),c&&(l=l.replace(nL," ")),o&&(l=tL(l)||l));let g=e[r];g===void 0?e[r]=l:g.pop?g.push(l):e[r]=[g,l]}l="",i=h,s=h,a=!1,o=!1,f=!1,c=!1}else m===61?s<=i?s=h:o=!0:m===43?s>i?c=!0:f=!0:m===37&&(s>i?o=!0:a=!0);return e}lL.exports=gce});var aL=C((CSe,sL)=>{var bi=Array.from({length:256},(t,e)=>"%"+((e<16?"0":"")+e.toString(16)).toUpperCase()),yce=new Int8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0]);function vce(t){let e=t.length;if(e===0)return"";let n="",r=0,l=0;e:for(;l>6]+bi[128|i&63];continue}if(i<55296||i>=57344){r=l+1,n+=bi[224|i>>12]+bi[128|i>>6&63]+bi[128|i&63];continue}if(++l,l>=e)throw new Error("URI malformed");let s=t.charCodeAt(l)&1023;r=l+1,i=65536+((i&1023)<<10|s),n+=bi[240|i>>18]+bi[128|i>>12&63]+bi[128|i>>6&63]+bi[128|i&63]}return r===0?t:r{"use strict";var{encodeString:my}=aL();function oL(t){let e=typeof t;return e==="string"?my(t):e==="bigint"?t.toString():e==="boolean"?t?"true":"false":e==="number"&&Number.isFinite(t)?t<1e21?""+t:my(""+t):""}function _ce(t){let e="";if(t===null||typeof t!="object")return e;let n="&",r=Object.keys(t),l=r.length,i=0;for(let s=0;s{"use strict";var fL=iL(),pL=cL(),dL={parse:fL,stringify:pL};e0.exports=dL;e0.exports.default=dL;e0.exports.parse=fL;e0.exports.stringify=pL});var t0=C((DSe,mL)=>{mL.exports={ROOT:0,GROUP:1,POSITION:2,SET:3,RANGE:4,REPETITION:5,REFERENCE:6,CHAR:7}});var yy=C(ts=>{var tn=t0(),gy=()=>[{type:tn.RANGE,from:48,to:57}],gL=()=>[{type:tn.CHAR,value:95},{type:tn.RANGE,from:97,to:122},{type:tn.RANGE,from:65,to:90}].concat(gy()),yL=()=>[{type:tn.CHAR,value:9},{type:tn.CHAR,value:10},{type:tn.CHAR,value:11},{type:tn.CHAR,value:12},{type:tn.CHAR,value:13},{type:tn.CHAR,value:32},{type:tn.CHAR,value:160},{type:tn.CHAR,value:5760},{type:tn.RANGE,from:8192,to:8202},{type:tn.CHAR,value:8232},{type:tn.CHAR,value:8233},{type:tn.CHAR,value:8239},{type:tn.CHAR,value:8287},{type:tn.CHAR,value:12288},{type:tn.CHAR,value:65279}],Ece=()=>[{type:tn.CHAR,value:10},{type:tn.CHAR,value:13},{type:tn.CHAR,value:8232},{type:tn.CHAR,value:8233}];ts.words=()=>({type:tn.SET,set:gL(),not:!1});ts.notWords=()=>({type:tn.SET,set:gL(),not:!0});ts.ints=()=>({type:tn.SET,set:gy(),not:!1});ts.notInts=()=>({type:tn.SET,set:gy(),not:!0});ts.whitespace=()=>({type:tn.SET,set:yL(),not:!1});ts.notWhitespace=()=>({type:tn.SET,set:yL(),not:!0});ts.anyChar=()=>({type:tn.SET,set:Ece(),not:!0})});var _L=C(n0=>{var vL=t0(),_u=yy(),bce="@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^ ?",Tce={0:0,t:9,n:10,v:11,f:12,r:13};n0.strToChars=function(t){var e=/(\[\\b\])|(\\)?\\(?:u([A-F0-9]{4})|x([A-F0-9]{2})|(0?[0-7]{2})|c([@A-Z[\\\]^?])|([0tnvfr]))/g;return t=t.replace(e,function(n,r,l,i,s,a,o,f){if(l)return n;var c=r?8:i?parseInt(i,16):s?parseInt(s,16):a?parseInt(a,8):o?bce.indexOf(o):Tce[f],p=String.fromCharCode(c);return/[[\]{}^$.|?*+()]/.test(p)&&(p="\\"+p),p}),t};n0.tokenizeClass=(t,e)=>{for(var n=[],r=/\\(?:(w)|(d)|(s)|(W)|(D)|(S))|((?:(?:\\)(.)|([^\]\\]))-(?:\\)?([^\]]))|(\])|(?:\\)?([^])/g,l,i;(l=r.exec(t))!=null;)if(l[1])n.push(_u.words());else if(l[2])n.push(_u.ints());else if(l[3])n.push(_u.whitespace());else if(l[4])n.push(_u.notWords());else if(l[5])n.push(_u.notInts());else if(l[6])n.push(_u.notWhitespace());else if(l[7])n.push({type:vL.RANGE,from:(l[8]||l[9]).charCodeAt(0),to:l[10].charCodeAt(0)});else if(i=l[12])n.push({type:vL.CHAR,value:i.charCodeAt(0)});else return[n,r.lastIndex];n0.error(e,"Unterminated character class")};n0.error=(t,e)=>{throw new SyntaxError("Invalid regular expression: /"+t+"/: "+e)}});var EL=C(r0=>{var x8=t0();r0.wordBoundary=()=>({type:x8.POSITION,value:"b"});r0.nonWordBoundary=()=>({type:x8.POSITION,value:"B"});r0.begin=()=>({type:x8.POSITION,value:"^"});r0.end=()=>({type:x8.POSITION,value:"$"})});var bL=C(($Se,vy)=>{var Eu=_L(),b2=t0(),Na=yy(),A8=EL();vy.exports=t=>{var e=0,n,r,l={type:b2.ROOT,stack:[]},i=l,s=l.stack,a=[],o=T=>{Eu.error(t,`Nothing to repeat at column ${T-1}`)},f=Eu.strToChars(t);for(n=f.length;e{"use strict";var TL=bL(),Sce=TL.types;SL.exports=function(t,e){e||(e={});var n=e.limit===void 0?25:e.limit;xce(t)?t=t.source:typeof t!="string"&&(t=String(t));try{t=TL(t)}catch{return!1}var r=0;return function l(i,s){var a,o,f;if(i.type===Sce.REPETITION&&(s++,r++,s>1||r>n))return!1;if(i.options){for(a=0,f=i.options.length;a{"use strict";AL.exports={name:"__fmw_internal_strategy_merged_tree_http_method__",storage:function(){let t={};return{get:e=>t[e]||null,set:(e,n)=>{t[e]=n}}},deriveConstraint:t=>t.method,mustMatchWhenDerived:!0}});var kL=C((BSe,CL)=>{"use strict";var wL=qo(),RL=w8(),OL=Symbol("treeData");function NL(t,e=""){let n="",r=Object.keys(t);for(let l=0;l{"use strict";var N0e=Xg();function oD(t={readMode:!0}){if(t.readMode===!0&&typeof t.restoreFunction!="function")throw new Error("You must provide a function for the restoreFunction-option when readMode ON");if(t.readMode!==!0&&typeof t.storeFunction!="function")throw new Error("You must provide a function for the storeFunction-option when readMode OFF");if(t.readMode===!0)return function(){return function(r){return t.restoreFunction(r)}};let e=N0e();return function(r,l={}){l.mode="standalone";let i=e(r,l);return function(s){let a=i(s);return t.storeFunction(s,a),new Function(a)}}}Gg.exports=oD;Gg.exports.default=oD});var Xg=C((Sxe,e0)=>{"use strict";var I0e=aD();function Wg(){return function(e,n){let r=Object.assign({},n,{schema:e});return C0e.bind(null,r)}}function C0e(t,{schema:e}){return t.schema&&e.$id&&t.schema[e.$id]&&(t.schema={...t.schema},delete t.schema[e.$id]),I0e(e,t)}e0.exports=Wg;e0.exports.default=Wg;e0.exports.SerializerSelector=Wg;e0.exports.StandaloneSerializer=uD()});var m3=C(t0=>{"use strict";Object.defineProperty(t0,"__esModule",{value:!0});t0.checkMetadata=void 0;var k0e=_t(),P0e={keyword:"metadata",schemaType:"object",code(t){cD(t);let{gen:e,schema:n,it:r}=t;if((0,k0e.alwaysValidSchema)(r,n))return;let l=e.name("valid");t.subschema({keyword:"metadata",jtdMetadata:!0},l),t.ok(l)}};function cD({it:t,keyword:e},n){if(t.jtdMetadata!==n)throw new Error(`JTD: "${e}" cannot be used in this schema location`)}t0.checkMetadata=cD;t0.default=P0e});var C8=C(r0=>{"use strict";Object.defineProperty(r0,"__esModule",{value:!0});r0.hasRef=void 0;var fD=ba(),n0=Ze(),D0e=K3(),pD=v2(),dD=$h(),L0e=m3(),F0e={keyword:"ref",schemaType:"string",code(t){(0,L0e.checkMetadata)(t);let{gen:e,data:n,schema:r,parentSchema:l,it:i}=t,{schemaEnv:{root:s}}=i,a=e.name("valid");l.nullable?(e.var(a,(0,n0._)`${n} === null`),e.if((0,n0.not)(a),o)):(e.var(a,!1),o()),t.ok(a);function o(){var p;let m=(p=s.schema.definitions)===null||p===void 0?void 0:p[r];if(!m)throw new D0e.default(i.opts.uriResolver,"",r,`No definition ${r}`);Kg(m)||!i.opts.inlineRefs?c(m):f(m)}function c(p){let m=fD.compileSchema.call(i.self,new fD.SchemaEnv({schema:p,root:s,schemaPath:`/definitions/${r}`})),h=(0,dD.getValidate)(t,m),g=e.const("_errs",pD.default.errors);(0,dD.callRef)(t,h,m,m.$async),e.assign(a,(0,n0._)`${g} === ${pD.default.errors}`)}function f(p){let m=e.scopeValue("schema",i.opts.code.source===!0?{ref:p,code:(0,n0.stringify)(p)}:{ref:p});t.subschema({schema:p,dataTypes:[],schemaPath:n0.nil,topSchemaRef:m,errSchemaPath:`/definitions/${r}`},a)}}};function Kg(t){for(let e in t){let n;if(e==="ref"||typeof(n=t[e])=="object"&&Kg(n))return!0}return!1}r0.hasRef=Kg;r0.default=F0e});var Jg=C(Yg=>{"use strict";Object.defineProperty(Yg,"__esModule",{value:!0});var M0e=/t|\s/i,$0e=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,j0e=/^(\d\d):(\d\d):(\d\d)(?:\.\d+)?(?:z|([+-]\d\d)(?::?(\d\d))?)$/i,U0e=[0,31,28,31,30,31,30,31,31,30,31,30,31];function mD(t,e){let n=t.split(M0e);return n.length===2&&hD(n[0])&&B0e(n[1])||e&&n.length===1&&hD(n[0])}Yg.default=mD;function hD(t){let e=$0e.exec(t);if(!e)return!1;let n=+e[1],r=+e[2],l=+e[3];return r>=1&&r<=12&&l>=1&&(l<=U0e[r]||r===2&&l===29&&(n%100===0?n%400===0:n%4===0))}function B0e(t){let e=j0e.exec(t);if(!e)return!1;let n=+e[1],r=+e[2],l=+e[3],i=+(e[4]||0),s=+(e[5]||0);return n<=23&&r<=59&&l<=59||n-i===23&&r-s===59&&l===60}mD.code='require("ajv/dist/runtime/timestamp").default'});var yu=C(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.typeErrorParams=es.typeErrorMessage=es.typeError=void 0;var H0e=Ze();function q0e(t){return{message:e=>gD(e,t),params:e=>yD(e,t)}}es.typeError=q0e;function gD({parentSchema:t},e){return t?.nullable?`must be ${e} or null`:`must be ${e}`}es.typeErrorMessage=gD;function yD({parentSchema:t},e){return(0,H0e._)`{type: ${e}, nullable: ${!!t?.nullable}}`}es.typeErrorParams=yD});var Qg=C(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});vu.intRange=void 0;var Zl=Ze(),V0e=Jg(),z0e=_t(),G0e=m3(),vD=yu();vu.intRange={int8:[-128,127,3],uint8:[0,255,3],int16:[-32768,32767,5],uint16:[0,65535,5],int32:[-2147483648,2147483647,10],uint32:[0,4294967295,10]};var X0e={message:t=>(0,vD.typeErrorMessage)(t,t.schema),params:t=>(0,vD.typeErrorParams)(t,t.schema)};function W0e(t){let{gen:e,data:n,it:r}=t,{timestamp:l,allowDate:i}=r.opts;if(l==="date")return(0,Zl._)`${n} instanceof Date `;let s=(0,z0e.useFunc)(e,V0e.default),a=i?(0,Zl._)`, true`:Zl.nil,o=(0,Zl._)`typeof ${n} == "string" && ${s}(${n}${a})`;return l==="string"?o:(0,Zl.or)((0,Zl._)`${n} instanceof Date`,o)}var K0e={keyword:"type",schemaType:"string",error:X0e,code(t){(0,G0e.checkMetadata)(t);let{data:e,schema:n,parentSchema:r,it:l}=t,i;switch(n){case"boolean":case"string":i=(0,Zl._)`typeof ${e} == ${n}`;break;case"timestamp":{i=W0e(t);break}case"float32":case"float64":i=(0,Zl._)`typeof ${e} == "number"`;break;default:{let s=n;if(i=(0,Zl._)`typeof ${e} == "number" && isFinite(${e}) && !(${e} % 1)`,!l.opts.int32range&&(s==="int32"||s==="uint32"))s==="uint32"&&(i=(0,Zl._)`${i} && ${e} >= 0`);else{let[a,o]=vu.intRange[s];i=(0,Zl._)`${i} && ${e} >= ${a} && ${e} <= ${o}`}}}t.pass(r.nullable?(0,Zl.or)((0,Zl._)`${e} === null`,i):i)}};vu.default=K0e});var Eu=C(_u=>{"use strict";Object.defineProperty(_u,"__esModule",{value:!0});_u.checkNullableObject=_u.checkNullable=void 0;var k8=Ze();function _D({gen:t,data:e,parentSchema:n},r=k8.nil){let l=t.name("valid");return n.nullable?(t.let(l,(0,k8._)`${e} === null`),r=(0,k8.not)(l)):t.let(l,!1),[l,r]}_u.checkNullable=_D;function Y0e(t,e){let[n,r]=_D(t,e);return[n,(0,k8._)`${r} && typeof ${t.data} == "object" && !Array.isArray(${t.data})`]}_u.checkNullableObject=Y0e});var ED=C(Zg=>{"use strict";Object.defineProperty(Zg,"__esModule",{value:!0});var ts=Ze(),J0e=m3(),Q0e=Eu(),Z0e={message:"must be equal to one of the allowed values",params:({schemaCode:t})=>(0,ts._)`{allowedValues: ${t}}`},e5e={keyword:"enum",schemaType:"array",error:Z0e,code(t){(0,J0e.checkMetadata)(t);let{gen:e,data:n,schema:r,schemaValue:l,parentSchema:i,it:s}=t;if(r.length===0)throw new Error("enum must have non-empty array");if(r.length!==new Set(r).size)throw new Error("enum items must be unique");let a,o=(0,ts._)`typeof ${n} == "string"`;if(r.length>=s.opts.loopEnum){let f;[a,f]=(0,Q0e.checkNullable)(t,o),e.if(f,c)}else{if(!Array.isArray(r))throw new Error("ajv implementation error");a=(0,ts.and)(o,(0,ts.or)(...r.map(f=>(0,ts._)`${n} === ${f}`))),i.nullable&&(a=(0,ts.or)((0,ts._)`${n} === null`,a))}t.pass(a);function c(){e.forOf("v",l,f=>e.if((0,ts._)`${a} = ${n} === ${f}`,()=>e.break()))}}};Zg.default=e5e});var TD=C(ey=>{"use strict";Object.defineProperty(ey,"__esModule",{value:!0});var t5e=_t(),n5e=Xr(),bD=Ze(),r5e=m3(),l5e=Eu(),i5e=yu(),s5e={keyword:"elements",schemaType:"object",error:(0,i5e.typeError)("array"),code(t){(0,r5e.checkMetadata)(t);let{gen:e,data:n,schema:r,it:l}=t;if((0,t5e.alwaysValidSchema)(l,r))return;let[i]=(0,l5e.checkNullable)(t);e.if((0,bD.not)(i),()=>e.if((0,bD._)`Array.isArray(${n})`,()=>e.assign(i,(0,n5e.validateArray)(t)),()=>t.error())),t.ok(i)}};ey.default=s5e});var ny=C(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.validateProperties=ns.error=void 0;var ty=Xr(),SD=_t(),g3=Ze(),a5e=m3(),o5e=Eu(),xD=yu(),bu;(function(t){t.Additional="additional",t.Missing="missing"})(bu||(bu={}));ns.error={message:t=>{let{params:e}=t;return e.propError?e.propError===bu.Additional?"must NOT have additional properties":`must have property '${e.missingProperty}'`:(0,xD.typeErrorMessage)(t,"object")},params:t=>{let{params:e}=t;return e.propError?e.propError===bu.Additional?(0,g3._)`{error: ${e.propError}, additionalProperty: ${e.additionalProperty}}`:(0,g3._)`{error: ${e.propError}, missingProperty: ${e.missingProperty}}`:(0,xD.typeErrorParams)(t,"object")}};var u5e={keyword:"properties",schemaType:"object",error:ns.error,code:AD};function AD(t){(0,a5e.checkMetadata)(t);let{gen:e,data:n,parentSchema:r,it:l}=t,{additionalProperties:i,nullable:s}=r;if(l.jtdDiscriminator&&s)throw new Error("JTD: nullable inside discriminator mapping");if(h())throw new Error("JTD: properties and optionalProperties have common members");let[a,o]=g("properties"),[c,f]=g("optionalProperties");if(o.length===0&&f.length===0&&i)return;let[p,m]=l.jtdDiscriminator===void 0?(0,o5e.checkNullableObject)(t,n):[e.let("valid",!1),!0];e.if(m,()=>e.assign(p,!0).block(()=>{_(o,"properties",!0),_(f,"optionalProperties"),i||T()})),t.pass(p);function h(){let v=r.properties,b=r.optionalProperties;if(!(v&&b))return!1;for(let w in v)if(Object.prototype.hasOwnProperty.call(b,w))return!0;return!1}function g(v){let b=r[v],w=b?(0,ty.allSchemaProperties)(b):[];if(l.jtdDiscriminator&&w.some(O=>O===l.jtdDiscriminator))throw new Error(`JTD: discriminator tag used in ${v}`);let N=w.filter(O=>!(0,SD.alwaysValidSchema)(l,b[O]));return[w,N]}function _(v,b,w){let N=e.var("valid");for(let k of v)e.if((0,ty.propertyInData)(e,n,k,l.opts.ownProperties),()=>S(k,b,N),()=>O(k)),t.ok(N);function O(k){w?(e.assign(N,!1),t.error(!1,{propError:bu.Missing,missingProperty:k},{schemaPath:k})):e.assign(N,!0)}}function S(v,b,w){t.subschema({keyword:b,schemaProp:v,dataProp:v},w)}function T(){e.forIn("key",n,v=>{let b=x(v,a,"properties",l.jtdDiscriminator),w=x(v,c,"optionalProperties"),N=b===!0?w:w===!0?b:(0,g3.and)(b,w);e.if(N,()=>{l.opts.removeAdditional?e.code((0,g3._)`delete ${n}[${v}]`):(t.error(!1,{propError:bu.Additional,additionalProperty:v},{instancePath:v,parentSchema:!0}),l.opts.allErrors||e.break())})})}function x(v,b,w,N){let O;if(b.length>8){let k=(0,SD.schemaRefOrVal)(l,r[w],w);O=(0,g3.not)((0,ty.isOwnProperty)(e,k,v)),N!==void 0&&(O=(0,g3.and)(O,(0,g3._)`${v} !== ${N}`))}else if(b.length||N!==void 0){let k=N===void 0?b:[N].concat(b);O=(0,g3.and)(...k.map(j=>(0,g3._)`${v} !== ${j}`))}else O=!0;return O}}ns.validateProperties=AD;ns.default=u5e});var RD=C(ry=>{"use strict";Object.defineProperty(ry,"__esModule",{value:!0});var wD=ny(),c5e={keyword:"optionalProperties",schemaType:"object",error:wD.error,code(t){t.parentSchema.properties||(0,wD.validateProperties)(t)}};ry.default=c5e});var ND=C(ly=>{"use strict";Object.defineProperty(ly,"__esModule",{value:!0});var ka=Ze(),f5e=m3(),p5e=Eu(),OD=yu(),P8=xm(),d5e={message:t=>{let{schema:e,params:n}=t;return n.discrError?n.discrError===P8.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in mapping`:(0,OD.typeErrorMessage)(t,"object")},params:t=>{let{schema:e,params:n}=t;return n.discrError?(0,ka._)`{error: ${n.discrError}, tag: ${e}, tagValue: ${n.tag}}`:(0,OD.typeErrorParams)(t,"object")}},h5e={keyword:"discriminator",schemaType:"string",implements:["mapping"],error:d5e,code(t){(0,f5e.checkMetadata)(t);let{gen:e,data:n,schema:r,parentSchema:l}=t,[i,s]=(0,p5e.checkNullableObject)(t,n);e.if(s),a(),e.elseIf((0,ka.not)(i)),t.error(),e.endIf(),t.ok(i);function a(){let f=e.const("tag",(0,ka._)`${n}${(0,ka.getProperty)(r)}`);e.if((0,ka._)`${f} === undefined`),t.error(!1,{discrError:P8.DiscrError.Tag,tag:f}),e.elseIf((0,ka._)`typeof ${f} == "string"`),o(f),e.else(),t.error(!1,{discrError:P8.DiscrError.Tag,tag:f},{instancePath:r}),e.endIf()}function o(f){e.if(!1);for(let p in l.mapping)e.elseIf((0,ka._)`${f} === ${p}`),e.assign(i,c(p));e.else(),t.error(!1,{discrError:P8.DiscrError.Mapping,tag:f},{instancePath:r,schemaPath:"mapping",parentSchema:!0}),e.endIf()}function c(f){let p=e.name("valid");return t.subschema({keyword:"mapping",schemaProp:f,jtdDiscriminator:r},p),p}}};ly.default=h5e});var CD=C(iy=>{"use strict";Object.defineProperty(iy,"__esModule",{value:!0});var ID=_t(),D8=Ze(),m5e=m3(),g5e=Eu(),y5e=yu(),v5e={keyword:"values",schemaType:"object",error:(0,y5e.typeError)("object"),code(t){(0,m5e.checkMetadata)(t);let{gen:e,data:n,schema:r,it:l}=t,[i,s]=(0,g5e.checkNullableObject)(t,n);(0,ID.alwaysValidSchema)(l,r)?e.if((0,D8.not)((0,D8.or)(s,i)),()=>t.error()):(e.if(s),e.assign(i,a()),e.elseIf((0,D8.not)(i)),t.error(),e.endIf()),t.ok(i);function a(){let o=e.name("valid");if(l.allErrors){let f=e.let("valid",!0);return c(()=>e.assign(f,!1)),f}return e.var(o,!0),c(()=>e.break()),o;function c(f){e.forIn("key",n,p=>{t.subschema({keyword:"values",dataProp:p,dataPropType:ID.Type.Str},o),e.if((0,D8.not)(o),f)})}}}};iy.default=v5e});var kD=C(sy=>{"use strict";Object.defineProperty(sy,"__esModule",{value:!0});var _5e=Xr(),E5e={keyword:"union",schemaType:"array",trackErrors:!0,code:_5e.validateUnion,error:{message:"must match a schema in union"}};sy.default=E5e});var PD=C(ay=>{"use strict";Object.defineProperty(ay,"__esModule",{value:!0});var b5e=C8(),T5e=Qg(),S5e=ED(),x5e=TD(),A5e=ny(),w5e=RD(),R5e=ND(),O5e=CD(),N5e=kD(),I5e=m3(),C5e=["definitions",b5e.default,T5e.default,S5e.default,x5e.default,A5e.default,w5e.default,R5e.default,O5e.default,N5e.default,I5e.default,{keyword:"additionalProperties",schemaType:"boolean"},{keyword:"nullable",schemaType:"boolean"}];ay.default=C5e});var MD=C(oy=>{"use strict";Object.defineProperty(oy,"__esModule",{value:!0});var y3=t=>{let e={nullable:{type:"boolean"},metadata:{optionalProperties:{union:{elements:{ref:"schema"}}},additionalProperties:!0}};return t&&(e.definitions={values:{ref:"schema"}}),e},k5e=t=>({optionalProperties:y3(t)}),P5e=t=>({properties:{ref:{type:"string"}},optionalProperties:y3(t)}),D5e=t=>({properties:{type:{enum:["boolean","timestamp","string","float32","float64","int8","uint8","int16","uint16","int32","uint32"]}},optionalProperties:y3(t)}),L5e=t=>({properties:{enum:{elements:{type:"string"}}},optionalProperties:y3(t)}),F5e=t=>({properties:{elements:{ref:"schema"}},optionalProperties:y3(t)}),LD=t=>({properties:{properties:{values:{ref:"schema"}}},optionalProperties:{optionalProperties:{values:{ref:"schema"}},additionalProperties:{type:"boolean"},...y3(t)}}),FD=t=>({properties:{optionalProperties:{values:{ref:"schema"}}},optionalProperties:{additionalProperties:{type:"boolean"},...y3(t)}}),M5e=t=>({properties:{discriminator:{type:"string"},mapping:{values:{metadata:{union:[LD(!1),FD(!1)]}}}},optionalProperties:y3(t)}),$5e=t=>({properties:{values:{ref:"schema"}},optionalProperties:y3(t)}),DD=t=>({metadata:{union:[k5e,P5e,D5e,L5e,F5e,LD,FD,M5e,$5e].map(e=>e(t))}}),j5e={definitions:{schema:DD(!1)},...DD(!0)};oy.default=j5e});var uy=C(L8=>{"use strict";Object.defineProperty(L8,"__esModule",{value:!0});L8.jtdForms=void 0;L8.jtdForms=["elements","values","discriminator","properties","optionalProperties","enum","type","ref"]});var jD=C(fy=>{"use strict";Object.defineProperty(fy,"__esModule",{value:!0});var cy=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,U5e={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function $D(t){return cy.lastIndex=0,'"'+(cy.test(t)?t.replace(cy,e=>{let n=U5e[e];return typeof n=="string"?n:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}):t)+'"'}fy.default=$D;$D.code='require("ajv/dist/runtime/quote").default'});var zD=C(dy=>{"use strict";Object.defineProperty(dy,"__esModule",{value:!0});var B5e=uy(),BD=ba(),Pt=Ze(),H5e=K3(),In=v2(),q5e=Xr(),V5e=C8(),z5e=_t(),G5e=jD(),X5e={elements:K5e,values:Y5e,discriminator:J5e,properties:UD,optionalProperties:UD,enum:l0,type:Q5e,ref:ece};function HD(t,e){let n=BD.getCompilingSchema.call(this,t);if(n)return n;let{es5:r,lines:l}=this.opts.code,{ownProperties:i}=this.opts,s=new Pt.CodeGen(this.scope,{es5:r,lines:l,ownProperties:i}),a=s.scopeName("serialize"),o={self:this,gen:s,schema:t.schema,schemaEnv:t,definitions:e,data:In.default.data},c;try{this._compilations.add(t),t.serializeName=a,s.func(a,In.default.data,!1,()=>{s.let(In.default.json,(0,Pt.str)``),i0(o),s.return(In.default.json)}),s.optimize(this.opts.code.optimize);let f=s.toString();c=`${s.scopeRefs(In.default.scope)}return ${f}`;let m=new Function(`${In.default.scope}`,c)(this.scope.get());this.scope.value(a,{ref:m}),t.serialize=m}catch(f){throw c&&this.logger.error("Error compiling serializer, function code:",c),delete t.serialize,delete t.serializeName,f}finally{this._compilations.delete(t)}return t}dy.default=HD;function i0(t){let e;for(let n of B5e.jtdForms)if(n in t.schema){e=n;break}W5e(t,e?X5e[e]:nce)}function W5e(t,e){let{gen:n,schema:r,data:l}=t;if(!r.nullable)return e(t);n.if((0,Pt._)`${l} === undefined || ${l} === null`,()=>n.add(In.default.json,(0,Pt._)`"null"`),()=>e(t))}function K5e(t){let{gen:e,schema:n,data:r}=t;e.add(In.default.json,(0,Pt.str)`[`);let l=e.let("first",!0);e.forOf("el",r,i=>{py(t,l),i0({...t,schema:n.elements,data:i})}),e.add(In.default.json,(0,Pt.str)`]`)}function Y5e(t){let{gen:e,schema:n,data:r}=t;e.add(In.default.json,(0,Pt.str)`{`);let l=e.let("first",!0);e.forIn("key",r,i=>qD(t,i,n.values,l)),e.add(In.default.json,(0,Pt.str)`}`)}function qD(t,e,n,r){let{gen:l,data:i}=t;py(t,r),l0({...t,data:e}),l.add(In.default.json,(0,Pt.str)`:`);let s=l.const("value",(0,Pt._)`${i}${(0,Pt.getProperty)(e)}`);i0({...t,schema:n,data:s})}function J5e(t){let{gen:e,schema:n,data:r}=t,{discriminator:l}=n;e.add(In.default.json,(0,Pt.str)`{${JSON.stringify(l)}:`);let i=e.const("tag",(0,Pt._)`${r}${(0,Pt.getProperty)(l)}`);l0({...t,data:i}),e.if(!1);for(let s in n.mapping){e.elseIf((0,Pt._)`${i} === ${s}`);let a=n.mapping[s];VD({...t,schema:a},l)}e.endIf(),e.add(In.default.json,(0,Pt.str)`}`)}function UD(t){let{gen:e}=t;e.add(In.default.json,(0,Pt.str)`{`),VD(t),e.add(In.default.json,(0,Pt.str)`}`)}function VD(t,e){let{gen:n,schema:r,data:l}=t,{properties:i,optionalProperties:s}=r,a=m(i),o=m(s),c=h(a.concat(o)),f=!e,p;for(let T of a)f?f=!1:n.add(In.default.json,(0,Pt.str)`,`),_(T,i[T],g(T));f&&(p=n.let("first",!0));for(let T of o){let x=g(T);n.if((0,Pt.and)((0,Pt._)`${x} !== undefined`,(0,q5e.isOwnProperty)(n,l,T)),()=>{py(t,p),_(T,s[T],x)})}r.additionalProperties&&n.forIn("key",l,T=>n.if(S(T,c),()=>qD(t,T,{},p)));function m(T){return T?Object.keys(T):[]}function h(T){if(e&&T.push(e),new Set(T).size!==T.length)throw new Error("JTD: properties/optionalProperties/disciminator overlap");return T}function g(T){return n.const("value",(0,Pt._)`${l}${(0,Pt.getProperty)(T)}`)}function _(T,x,v){n.add(In.default.json,(0,Pt.str)`${JSON.stringify(T)}:`),i0({...t,schema:x,data:v})}function S(T,x){return x.length?(0,Pt.and)(...x.map(v=>(0,Pt._)`${T} !== ${v}`)):!0}}function Q5e(t){let{gen:e,schema:n,data:r}=t;switch(n.type){case"boolean":e.add(In.default.json,(0,Pt._)`${r} ? "true" : "false"`);break;case"string":l0(t);break;case"timestamp":e.if((0,Pt._)`${r} instanceof Date`,()=>e.add(In.default.json,(0,Pt._)`'"' + ${r}.toISOString() + '"'`),()=>l0(t));break;default:Z5e(t)}}function l0({gen:t,data:e}){t.add(In.default.json,(0,Pt._)`${(0,z5e.useFunc)(t,G5e.default)}(${e})`)}function Z5e({gen:t,data:e}){t.add(In.default.json,(0,Pt._)`"" + ${e}`)}function ece(t){let{gen:e,self:n,data:r,definitions:l,schema:i,schemaEnv:s}=t,{ref:a}=i,o=l[a];if(!o)throw new H5e.default(n.opts.uriResolver,"",a,`No definition ${a}`);if(!(0,V5e.hasRef)(o))return i0({...t,schema:o});let{root:c}=s,f=HD.call(n,new BD.SchemaEnv({schema:o,root:c}),l);e.add(In.default.json,(0,Pt._)`${tce(e,f)}(${r})`)}function tce(t,e){return e.serialize?t.scopeValue("serialize",{ref:e.serialize}):(0,Pt._)`${t.scopeValue("wrapper",{ref:e})}.serialize`}function nce({gen:t,data:e}){t.add(In.default.json,(0,Pt._)`JSON.stringify(${e})`)}function py({gen:t},e){e?t.if(e,()=>t.assign(e,!1),()=>t.add(In.default.json,(0,Pt.str)`,`)):t.add(In.default.json,(0,Pt.str)`,`)}});var XD=C(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});ls.parseJsonString=ls.parseJsonNumber=ls.parseJson=void 0;var rce=/position\s(\d+)$/;function v3(t,e){let n;v3.message=void 0;let r;e&&(t=t.slice(e));try{return v3.position=e+t.length,JSON.parse(t)}catch(l){if(r=rce.exec(l.message),!r){v3.message="unexpected end";return}n=+r[1];let i=t[n];t=t.slice(0,n),v3.position=e+n;try{return JSON.parse(t)}catch{v3.message=`unexpected token ${i}`;return}}}ls.parseJson=v3;v3.message=void 0;v3.position=0;v3.code='require("ajv/dist/runtime/parseJson").parseJson';function _3(t,e,n){let r="",l;if(_3.message=void 0,t[e]==="-"&&(r+="-",e++),t[e]==="0")r+="0",e++;else if(!i(n)){s();return}if(n)return _3.position=e,+r;if(t[e]==="."&&(r+=".",e++,!i())){s();return}if(l=t[e],(l==="e"||l==="E")&&(r+="e",e++,l=t[e],(l==="+"||l==="-")&&(r+=l,e++),!i())){s();return}return _3.position=e,+r;function i(a){let o=!1;for(;l=t[e],l>="0"&&l<="9"&&(a===void 0||a-- >0);)o=!0,r+=l,e++;return o}function s(){_3.position=e,_3.message=e="a"&&r<="f")s+=r.charCodeAt(0)-lce+10;else if(r>="0"&&r<="9")s+=r.charCodeAt(0)-ice;else{l(`unexpected token ${r}`);return}e++}n+=String.fromCharCode(s)}else{l(`unexpected token ${r}`);return}else if(r===void 0){l("unexpected end");return}else if(r.charCodeAt(0)>=32)n+=r;else{l(`unexpected token ${r}`);return}return rs.position=e,n;function l(i){rs.position=e,rs.message=i}}ls.parseJsonString=rs;rs.message=void 0;rs.position=0;rs.code='require("ajv/dist/runtime/parseJson").parseJsonString'});var lL=C(by=>{"use strict";Object.defineProperty(by,"__esModule",{value:!0});var sce=uy(),JD=ba(),ze=Ze(),ace=K3(),Ct=v2(),oce=Xr(),uce=C8(),cce=Qg(),gy=XD(),QD=_t(),fce=Jg(),pce={elements:gce,values:yce,discriminator:_ce,properties:WD,optionalProperties:WD,enum:bce,type:Ece,ref:Tce};function ZD(t,e){let n=JD.getCompilingSchema.call(this,t);if(n)return n;let{es5:r,lines:l}=this.opts.code,{ownProperties:i}=this.opts,s=new ze.CodeGen(this.scope,{es5:r,lines:l,ownProperties:i}),a=s.scopeName("parse"),o={self:this,gen:s,schema:t.schema,schemaEnv:t,definitions:e,data:Ct.default.data,parseName:a,char:s.name("c")},c;try{this._compilations.add(t),t.parseName=a,dce(o),s.optimize(this.opts.code.optimize);let f=s.toString();c=`${s.scopeRefs(Ct.default.scope)}return ${f}`;let m=new Function(`${Ct.default.scope}`,c)(this.scope.get());this.scope.value(a,{ref:m}),t.parse=m}catch(f){throw c&&this.logger.error("Error compiling parser, function code:",c),delete t.parse,delete t.parseName,f}finally{this._compilations.delete(t)}return t}by.default=ZD;var my=(0,ze._)`undefined`;function dce(t){let{gen:e,parseName:n,char:r}=t;e.func(n,(0,ze._)`${Ct.default.json}, ${Ct.default.jsonPos}, ${Ct.default.jsonPart}`,!1,()=>{e.let(Ct.default.data),e.let(r),e.assign((0,ze._)`${n}.message`,my),e.assign((0,ze._)`${n}.position`,my),e.assign(Ct.default.jsonPos,(0,ze._)`${Ct.default.jsonPos} || 0`),e.const(Ct.default.jsonLen,(0,ze._)`${Ct.default.json}.length`),F8(t),Ey(t),e.if(Ct.default.jsonPart,()=>{e.assign((0,ze._)`${n}.position`,Ct.default.jsonPos),e.return(Ct.default.data)}),e.if((0,ze._)`${Ct.default.jsonPos} === ${Ct.default.jsonLen}`,()=>e.return(Ct.default.data)),Tu(t)})}function F8(t){let e;for(let n of sce.jtdForms)if(n in t.schema){e=n;break}e?mce(t,pce[e]):vy(t)}var hce=YD(!0,YD(!1,Tu));function mce(t,e){let{gen:n,schema:r,data:l}=t;if(!r.nullable)return e(t);s0(t,"null",e,()=>n.assign(l,null))}function gce(t){let{gen:e,schema:n,data:r}=t;Si(t,"[");let l=e.let("i",0);e.assign(r,(0,ze._)`[]`),yy(t,"]",()=>{let i=e.let("el");F8({...t,schema:n.elements,data:i}),e.assign((0,ze._)`${r}[${l}++]`,i)})}function yce(t){let{gen:e,schema:n,data:r}=t;Si(t,"{"),e.assign(r,(0,ze._)`{}`),yy(t,"}",()=>vce(t,n.values))}function yy(t,e,n){eL(t,e,n),Si(t,e)}function eL(t,e,n){let{gen:r}=t;r.for((0,ze._)`;${Ct.default.jsonPos}<${Ct.default.jsonLen} && ${M8(1)}!==${e};`,()=>{n(),s0(t,",",()=>r.break(),l)});function l(){s0(t,e,()=>{},Tu)}}function vce(t,e){let{gen:n}=t,r=n.let("key");Pa({...t,data:r}),Si(t,":"),nL(t,r,e)}function _ce(t){let{gen:e,data:n,schema:r}=t,{discriminator:l,mapping:i}=r;Si(t,"{"),e.assign(n,(0,ze._)`{}`);let s=e.const("pos",Ct.default.jsonPos),a=e.let("value"),o=e.let("tag");eL(t,"}",()=>{let c=e.let("key");Pa({...t,data:c}),Si(t,":"),e.if((0,ze._)`${c} === ${l}`,()=>{Pa({...t,data:o}),e.assign((0,ze._)`${n}[${c}]`,o),e.break()},()=>vy({...t,data:a}))}),e.assign(Ct.default.jsonPos,s),e.if((0,ze._)`${o} === undefined`),E3(t,(0,ze.str)`discriminator tag not found`);for(let c in i)e.elseIf((0,ze._)`${o} === ${c}`),tL({...t,schema:i[c]},l);e.else(),E3(t,(0,ze.str)`discriminator value not in schema`),e.endIf()}function WD(t){let{gen:e,data:n}=t;Si(t,"{"),e.assign(n,(0,ze._)`{}`),tL(t)}function tL(t,e){let{gen:n,schema:r,data:l}=t,{properties:i,optionalProperties:s,additionalProperties:a}=r;if(yy(t,"}",()=>{let o=n.let("key");if(Pa({...t,data:o}),Si(t,":"),n.if(!1),KD(t,o,i),KD(t,o,s),e){n.elseIf((0,ze._)`${o} === ${e}`);let c=n.let("tag");Pa({...t,data:c})}n.else(),a?vy({...t,data:(0,ze._)`${l}[${o}]`}):E3(t,(0,ze.str)`property ${o} not allowed`),n.endIf()}),i){let o=(0,oce.hasPropFunc)(n),c=(0,ze.and)(...Object.keys(i).map(f=>(0,ze._)`${o}.call(${l}, ${f})`));n.if((0,ze.not)(c),()=>E3(t,(0,ze.str)`missing required properties`))}}function KD(t,e,n={}){let{gen:r}=t;for(let l in n)r.elseIf((0,ze._)`${e} === ${l}`),nL(t,e,n[l])}function nL(t,e,n){F8({...t,schema:n,data:(0,ze._)`${t.data}[${e}]`})}function Ece(t){let{gen:e,schema:n,data:r,self:l}=t;switch(n.type){case"boolean":hce(t);break;case"string":Pa(t);break;case"timestamp":{Pa(t);let i=(0,QD.useFunc)(e,fce.default),{allowDate:s,parseDate:a}=l.opts,o=s?(0,ze._)`!${i}(${r}, true)`:(0,ze._)`!${i}(${r})`,c=a?(0,ze.or)(o,(0,ze._)`(${r} = new Date(${r}), false)`,(0,ze._)`isNaN(${r}.valueOf())`):o;e.if(c,()=>E3(t,(0,ze.str)`invalid timestamp`));break}case"float32":case"float64":hy(t);break;default:{let i=n.type;if(!l.opts.int32range&&(i==="int32"||i==="uint32"))hy(t,16),i==="uint32"&&e.if((0,ze._)`${r} < 0`,()=>E3(t,(0,ze.str)`integer out of range`));else{let[s,a,o]=cce.intRange[i];hy(t,o),e.if((0,ze._)`${r} < ${s} || ${r} > ${a}`,()=>E3(t,(0,ze.str)`integer out of range`))}}}}function Pa(t){Si(t,'"'),_y(t,gy.parseJsonString)}function bce(t){let{gen:e,data:n,schema:r}=t,l=r.enum;Si(t,'"'),e.if(!1);for(let i of l){let s=JSON.stringify(i).slice(1);e.elseIf((0,ze._)`${M8(s.length)} === ${s}`),e.assign(n,(0,ze.str)`${i}`),e.add(Ct.default.jsonPos,s.length)}e.else(),Tu(t),e.endIf()}function hy(t,e){let{gen:n}=t;Ey(t),n.if((0,ze._)`"-0123456789".indexOf(${M8(1)}) < 0`,()=>Tu(t),()=>_y(t,gy.parseJsonNumber,e))}function YD(t,e){return n=>{let{gen:r,data:l}=n;s0(n,`${t}`,()=>e(n),()=>r.assign(l,t))}}function Tce(t){let{gen:e,self:n,definitions:r,schema:l,schemaEnv:i}=t,{ref:s}=l,a=r[s];if(!a)throw new ace.default(n.opts.uriResolver,"",s,`No definition ${s}`);if(!(0,uce.hasRef)(a))return F8({...t,schema:a});let{root:o}=i,c=ZD.call(n,new JD.SchemaEnv({schema:a,root:o}),r);rL(t,Sce(e,c),!0)}function Sce(t,e){return e.parse?t.scopeValue("parse",{ref:e.parse}):(0,ze._)`${t.scopeValue("wrapper",{ref:e})}.parse`}function vy(t){_y(t,gy.parseJson)}function _y(t,e,n){rL(t,(0,QD.useFunc)(t.gen,e),n)}function rL(t,e,n){let{gen:r,data:l}=t;r.assign(l,(0,ze._)`${e}(${Ct.default.json}, ${Ct.default.jsonPos}${n?(0,ze._)`, ${n}`:ze.nil})`),r.assign(Ct.default.jsonPos,(0,ze._)`${e}.position`),r.if((0,ze._)`${l} === undefined`,()=>E3(t,(0,ze._)`${e}.message`))}function Si(t,e){s0(t,e,Tu)}function s0(t,e,n,r){let{gen:l}=t,i=e.length;Ey(t),l.if((0,ze._)`${M8(i)} === ${e}`,()=>{l.add(Ct.default.jsonPos,i),r?.(t)},()=>n(t))}function Ey({gen:t,char:e}){t.code((0,ze._)`while((${e}=${Ct.default.json}[${Ct.default.jsonPos}],${e}===" "||${e}==="\\n"||${e}==="\\r"||${e}==="\\t"))${Ct.default.jsonPos}++;`)}function M8(t){return t===1?(0,ze._)`${Ct.default.json}[${Ct.default.jsonPos}]`:(0,ze._)`${Ct.default.json}.slice(${Ct.default.jsonPos}, ${Ct.default.jsonPos}+${t})`}function Tu(t){E3(t,(0,ze._)`"unexpected token " + ${Ct.default.json}[${Ct.default.jsonPos}]`)}function E3({gen:t,parseName:e},n){t.assign((0,ze._)`${e}.message`,n),t.assign((0,ze._)`${e}.position`,Ct.default.jsonPos),t.return(my)}});var Sy=C((Vn,iL)=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});Vn.MissingRefError=Vn.ValidationError=Vn.CodeGen=Vn.Name=Vn.nil=Vn.stringify=Vn.str=Vn._=Vn.KeywordCxt=void 0;var xce=Fh(),Ace=PD(),wce=MD(),Rce=zD(),Oce=lL(),Ty="JTD-meta-schema",$8=class extends xce.default{constructor(e={}){super({...e,jtd:!0})}_addVocabularies(){super._addVocabularies(),this.addVocabulary(Ace.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema(),this.opts.meta&&this.addMetaSchema(wce.default,Ty,!1)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Ty)?Ty:void 0)}compileSerializer(e){let n=this._addSchema(e);return n.serialize||this._compileSerializer(n)}compileParser(e){let n=this._addSchema(e);return n.parse||this._compileParser(n)}_compileSerializer(e){if(Rce.default.call(this,e,e.schema.definitions||{}),!e.serialize)throw new Error("ajv implementation error");return e.serialize}_compileParser(e){if(Oce.default.call(this,e,e.schema.definitions||{}),!e.parse)throw new Error("ajv implementation error");return e.parse}};iL.exports=Vn=$8;Object.defineProperty(Vn,"__esModule",{value:!0});Vn.default=$8;var Nce=Qo();Object.defineProperty(Vn,"KeywordCxt",{enumerable:!0,get:function(){return Nce.KeywordCxt}});var Su=Ze();Object.defineProperty(Vn,"_",{enumerable:!0,get:function(){return Su._}});Object.defineProperty(Vn,"str",{enumerable:!0,get:function(){return Su.str}});Object.defineProperty(Vn,"stringify",{enumerable:!0,get:function(){return Su.stringify}});Object.defineProperty(Vn,"nil",{enumerable:!0,get:function(){return Su.nil}});Object.defineProperty(Vn,"Name",{enumerable:!0,get:function(){return Su.Name}});Object.defineProperty(Vn,"CodeGen",{enumerable:!0,get:function(){return Su.CodeGen}});var Ice=_1();Object.defineProperty(Vn,"ValidationError",{enumerable:!0,get:function(){return Ice.default}});var Cce=K3();Object.defineProperty(Vn,"MissingRefError",{enumerable:!0,get:function(){return Cce.default}})});var xy=C((Vxe,sL)=>{"use strict";var kce=Im();sL.exports=Object.freeze({coerceTypes:"array",useDefaults:!0,removeAdditional:!0,uriResolver:kce,addUsedSchema:!1,allErrors:!1})});var uL=C((zxe,oL)=>{"use strict";var Pce=V6().default,Dce=Sy(),aL=xy(),Ay=class{constructor(e,n){n.mode==="JTD"?this.ajv=new Dce(Object.assign({},aL,n.customOptions)):this.ajv=new Pce(Object.assign({},aL,n.customOptions));let r=!0;if(n.plugins&&n.plugins.length>0)for(let i of n.plugins)Array.isArray(i)?(r=r&&i[0].name!=="formatsPlugin",i[0](this.ajv,i[1])):(r=r&&i.name!=="formatsPlugin",i(this.ajv));r&&Mm()(this.ajv);let l=Object.values(e);for(let i of l)this.ajv.addSchema(i)}buildValidatorFunction({schema:e}){if(e.$id){let n=this.ajv.getSchema(e.$id);if(n)return n}return this.ajv.compile(e)}};oL.exports=Ay});var fL=C((Gxe,cL)=>{"use strict";var Lce=Sy(),Fce=xy(),wy=class{constructor(e,n){this.ajv=new Lce(Object.assign({},Fce,n))}buildSerializerFunction({schema:e}){return this.ajv.compileSerializer(e)}};cL.exports=wy});var hL=C((o0,dL)=>{"use strict";Object.defineProperty(o0,"__esModule",{value:!0});var a0=y6(),X2=Vo();function pL(t,e){if(!t.opts.code.source)throw new Error("moduleCode: ajv instance must have code.source option");let{_n:n}=t.scope.opts;return typeof e=="function"?l(e.source):e!==void 0?i(e,r):i(t.schemas,a=>a.meta?void 0:t.compile(a.schema));function r(a){let o=t.getSchema(a);if(!o)throw new Error(`moduleCode: no schema with id ${a}`);return o}function l(a){let o={},c=a?.validateName,f=s(o,a);return t.opts.code.esm?`"use strict";${n}export const validate = ${c};${n}export default ${c};${n}${f}`:`"use strict";${n}module.exports = ${c};${n}module.exports.default = ${c};${n}${f}`}function i(a,o){var c;let f={},p=(0,X2._)`"use strict";`;for(let m in a){let h=o(a[m]);if(h){let g=s(f,h.source),_=t.opts.code.esm?(0,X2._)`export const ${(0,X2.getEsmExportName)(m)}`:(0,X2._)`exports${(0,X2.getProperty)(m)}`;p=(0,X2._)`${p}${n}${_} = ${(c=h.source)===null||c===void 0?void 0:c.validateName};${n}${g}`}}return`${p}`}function s(a,o){if(!o)throw new Error('moduleCode: function does not have "source" property');if(m(o.validateName)===a0.UsedValueState.Completed)return X2.nil;h(o.validateName,a0.UsedValueState.Started);let c=t.scope.scopeCode(o.scopeValues,a,p),f=new X2._Code(`${c}${n}${o.validateCode}`);return o.evaluated?(0,X2._)`${f}${o.validateName}.evaluated = ${o.evaluated};${n}`:f;function p(g){var _;let S=(_=g.value)===null||_===void 0?void 0:_.ref;if(g.prefix==="validate"&&typeof S=="function")return s(a,S.source);if((g.prefix==="root"||g.prefix==="wrapper")&&typeof S=="object"){let{validate:T,validateName:x}=S;if(!x)throw new Error("ajv internal error");let v=t.opts.code.es5?a0.varKinds.var:a0.varKinds.const,b=(0,X2._)`${v} ${g} = {validate: ${x}};`;if(m(x)===a0.UsedValueState.Started)return b;let w=s(a,T?.source);return(0,X2._)`${b}${n}${w}`}}function m(g){var _;return(_=a[g.prefix])===null||_===void 0?void 0:_.get(g)}function h(g,_){let{prefix:S}=g;(a[S]=a[S]||new Map).set(g,_)}}}dL.exports=o0=pL;Object.defineProperty(o0,"__esModule",{value:!0});o0.default=pL});var yL=C((Xxe,gL)=>{"use strict";var mL=Ry(),Mce=hL().default;function $ce(t={readMode:!0}){if(t.readMode===!0&&!t.restoreFunction)throw new Error("You must provide a restoreFunction options when readMode ON");if(t.readMode!==!0&&!t.storeFunction)throw new Error("You must provide a storeFunction options when readMode OFF");if(t.readMode===!0)return function(){return function(r){return t.restoreFunction(r)}};let e=mL();return function(r,l={}){(!l.customOptions||!l.customOptions.code)&&(l.customOptions=Object.assign({},l.customOptions,{code:{source:!0}}));let i=e(r,l);return function(s){let a=i(s),o=Mce(i[mL.AjvReference].ajv,a);return t.storeFunction(s,o),a}}}gL.exports=$ce});var Ry=C((Wxe,xu)=>{"use strict";var _L=Symbol.for("fastify.ajv-compiler.reference"),jce=uL(),Uce=fL();function Oy(t){let e=new Map,n=new Map;return t&&t.jtdSerializer===!0?function(l,i){let s=vL({},i);if(n.has(s))return n.get(s);let a=new Uce(l,i),o=a.buildSerializerFunction.bind(a);return n.set(s,o),o}:function(l,i){let s=vL(l,i.customOptions);if(e.has(s))return e.get(s);let a=new jce(l,i),o=a.buildValidatorFunction.bind(a);return e.set(s,o),i.customOptions.code!==void 0&&(o[_L]=a),o}}function vL(t,e){let n=JSON.stringify(t),r=JSON.stringify(e);return`${n}${r}`}xu.exports=Oy;xu.exports.default=Oy;xu.exports.AjvCompiler=Oy;xu.exports.AjvReference=_L;xu.exports.StandaloneValidator=yL()});var Ny=C((Kxe,EL)=>{"use strict";var{buildSchemas:Bce}=i1(),Hce=Xg(),qce=Ry();function Vce(t,e){if(t)return new Au(t,e);let n=Object.assign({buildValidator:null,buildSerializer:null},e?.compilersFactory);n.buildValidator||(n.buildValidator=qce()),n.buildSerializer||(n.buildSerializer=Hce());let r={bucket:e&&e.bucket||Bce,compilersFactory:n,isCustomValidatorCompiler:typeof e?.compilersFactory?.buildValidator=="function",isCustomSerializerCompiler:typeof e?.compilersFactory?.buildValidator=="function"};return new Au(void 0,r)}var Au=class{constructor(e,n){this.opts=n||e?.opts,this.addedSchemas=!1,this.compilersFactory=this.opts.compilersFactory,e?(this.schemaBucket=this.opts.bucket(e.getSchemas()),this.validatorCompiler=e.getValidatorCompiler(),this.serializerCompiler=e.getSerializerCompiler(),this.isCustomValidatorCompiler=e.isCustomValidatorCompiler,this.isCustomSerializerCompiler=e.isCustomSerializerCompiler,this.parent=e):(this.schemaBucket=this.opts.bucket(),this.isCustomValidatorCompiler=this.opts.isCustomValidatorCompiler||!1,this.isCustomSerializerCompiler=this.opts.isCustomSerializerCompiler||!1)}add(e){return this.addedSchemas=!0,this.schemaBucket.add(e)}getSchema(e){return this.schemaBucket.getSchema(e)}getSchemas(){return this.schemaBucket.getSchemas()}setValidatorCompiler(e){this.compilersFactory=Object.assign({},this.compilersFactory,{buildValidator:()=>e}),this.validatorCompiler=e,this.isCustomValidatorCompiler=!0}setSerializerCompiler(e){this.compilersFactory=Object.assign({},this.compilersFactory,{buildSerializer:()=>e}),this.serializerCompiler=e,this.isCustomSerializerCompiler=!0}getValidatorCompiler(){return this.validatorCompiler||this.parent&&this.parent.getValidatorCompiler()}getSerializerCompiler(){return this.serializerCompiler||this.parent&&this.parent.getSerializerCompiler()}getSerializerBuilder(){return this.compilersFactory.buildSerializer||this.parent&&this.parent.getSerializerBuilder()}getValidatorBuilder(){return this.compilersFactory.buildValidator||this.parent&&this.parent.getValidatorBuilder()}setupValidator(e){this.validatorCompiler!==void 0&&!this.addedSchemas||(this.validatorCompiler=this.getValidatorBuilder()(this.schemaBucket.getSchemas(),e.ajv))}setupSerializer(e){this.serializerCompiler!==void 0&&!this.addedSchemas||(this.serializerCompiler=this.getSerializerBuilder()(this.schemaBucket.getSchemas(),e.serializerOpts))}};Au.buildSchemaController=Vce;EL.exports=Au});var Ly=C((Yxe,Dy)=>{"use strict";var Iy=vg(),ky=require("node:assert"),Py=Symbol.for("registered-plugin"),{kTestInternals:zce}=Mr(),{exist:Gce,existReply:Xce,existRequest:Wce}=Og(),{FST_ERR_PLUGIN_VERSION_MISMATCH:Kce,FST_ERR_PLUGIN_NOT_PRESENT_IN_INSTANCE:Yce}=al(),{FSTWRN002:Jce}=l3();function u0(t){return t[Symbol.for("plugin-meta")]}function bL(t){let e=TL(t);if(e)return e;let n=require.cache;if(n){let r=Object.keys(n);for(let l=0;le.trim()).join(" -- ")}function TL(t){return t[Symbol.for("fastify.display-name")]}function SL(t){return!!t[Symbol.for("skip-override")]}function xL(t){let e=u0(t);if(!e)return;let n=e.dependencies;n&&(ky(Array.isArray(n),"The dependencies should be an array of strings"),n.forEach(r=>{ky(this[Py].indexOf(r)>-1,`The dependency '${r}' of plugin '${e.name}' is not registered`)}))}function AL(t){let e=u0(t);if(!e)return;let{decorators:n,name:r}=e;n&&(n.fastify&&Cy(this,"Fastify",n.fastify,r),n.reply&&Cy(this,"Reply",n.reply,r),n.request&&Cy(this,"Request",n.request,r))}var Zce={Fastify:Gce,Request:Wce,Reply:Xce};function Cy(t,e,n,r){ky(Array.isArray(n),"The decorators should be an array of strings"),n.forEach(l=>{let i=typeof r=="string"?` required by '${r}'`:"";if(!Zce[e].call(t,l))throw new Yce(l,i,e)})}function e6e(t){let e=u0(t);if(!e)return;let n=e.fastify,r=/-rc.+$/.test(this.version);if(!(r===!0&&Iy.gt(this.version,Iy.coerce(n))===!0)&&n&&Iy.satisfies(this.version,n,{includePrerelease:r})===!1)throw new Kce(e.name,n,this.version)}function t6e(t){let e=u0(t);if(!e)return;let n=e.name;if(n)return this[Py].push(n),n}function n6e(t,e){t.constructor.name==="AsyncFunction"&&t.length===3&&Jce(e||"anonymous")}function r6e(t){let e=t6e.call(this,t)||bL(t);return n6e.call(this,t,e),e6e.call(this,t),AL.call(this,t),xL.call(this,t),SL(t)}Dy.exports={getPluginName:bL,getFuncPreview:Qce,kRegisteredPlugins:Py,getDisplayName:TL,registerPlugin:r6e};Dy.exports[zce]={shouldSkipOverride:SL,getMeta:u0,checkDecorators:AL,checkDependencies:xL}});var j8=C((Jxe,wL)=>{"use strict";function l6e(t,e){let n=e||s6e();return t?a6e(t,n):n}function i6e(t,e){return t.genReqId(e)}function s6e(){let e=0;return function(){return e=e+1&2147483647,`req-${e.toString(36)}`}}function a6e(t,e){return function(n){return n.headers[t]||e(n)}}wL.exports={getGenReqId:i6e,reqIdGenFactory:l6e}});var IL=C((Qxe,NL)=>{"use strict";var RL=12,o6e=0,Fy=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,10,9,9,9,11,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,24,36,48,60,72,84,96,0,12,12,12,0,0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0,0,24,24,24,0,0,0,0,0,0,0,0,0,24,24,0,0,0,0,0,0,0,0,0,0,48,48,48,0,0,0,0,0,0,0,0,0,0,48,48,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,0,0,0,127,63,63,63,0,31,15,15,15,7,7,7];function u6e(t){var e=t.indexOf("%");if(e===-1)return t;for(var n=t.length,r="",l=0,i=0,s=e,a=RL;e>-1&&e>10),56320+(i&1023)),i=0,l=e+3,e=s=t.indexOf("%",l);else{if(a===o6e)return null;if(e+=3,e{"use strict";var CL=IL(),kL=/\+/g,PL=function(){};PL.prototype=Object.create(null);function f6e(t){let e=new PL;if(typeof t!="string")return e;let n=t.length,r="",l="",i=-1,s=-1,a=!1,o=!1,c=!1,f=!1,p=!1,m=0;for(let h=0;hi,p||(s=h),r=t.slice(i+1,s),p||r.length>0){c&&(r=r.replace(kL," ")),a&&(r=CL(r)||r),p&&(l=t.slice(s+1,h),f&&(l=l.replace(kL," ")),o&&(l=CL(l)||l));let g=e[r];g===void 0?e[r]=l:g.pop?g.push(l):e[r]=[g,l]}l="",i=h,s=h,a=!1,o=!1,c=!1,f=!1}else m===61?s<=i?s=h:o=!0:m===43?s>i?f=!0:c=!0:m===37&&(s>i?o=!0:a=!0);return e}DL.exports=f6e});var ML=C((eAe,FL)=>{var xi=Array.from({length:256},(t,e)=>"%"+((e<16?"0":"")+e.toString(16)).toUpperCase()),p6e=new Int8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0]);function d6e(t){let e=t.length;if(e===0)return"";let n="",r=0,l=0;e:for(;l>6]+xi[128|i&63];continue}if(i<55296||i>=57344){r=l+1,n+=xi[224|i>>12]+xi[128|i>>6&63]+xi[128|i&63];continue}if(++l,l>=e)throw new Error("URI malformed");let s=t.charCodeAt(l)&1023;r=l+1,i=65536+((i&1023)<<10|s),n+=xi[240|i>>18]+xi[128|i>>12&63]+xi[128|i>>6&63]+xi[128|i&63]}return r===0?t:r{"use strict";var{encodeString:My}=ML();function $L(t){let e=typeof t;return e==="string"?My(t):e==="bigint"?t.toString():e==="boolean"?t?"true":"false":e==="number"&&Number.isFinite(t)?t<1e21?""+t:My(""+t):""}function h6e(t){let e="";if(t===null||typeof t!="object")return e;let n="&",r=Object.keys(t),l=r.length,i=0;for(let s=0;s{"use strict";var BL=LL(),HL=UL(),qL={parse:BL,stringify:HL};c0.exports=qL;c0.exports.default=qL;c0.exports.parse=BL;c0.exports.stringify=HL});var f0=C((rAe,zL)=>{zL.exports={ROOT:0,GROUP:1,POSITION:2,SET:3,RANGE:4,REPETITION:5,REFERENCE:6,CHAR:7}});var jy=C(is=>{var rn=f0(),$y=()=>[{type:rn.RANGE,from:48,to:57}],GL=()=>[{type:rn.CHAR,value:95},{type:rn.RANGE,from:97,to:122},{type:rn.RANGE,from:65,to:90}].concat($y()),XL=()=>[{type:rn.CHAR,value:9},{type:rn.CHAR,value:10},{type:rn.CHAR,value:11},{type:rn.CHAR,value:12},{type:rn.CHAR,value:13},{type:rn.CHAR,value:32},{type:rn.CHAR,value:160},{type:rn.CHAR,value:5760},{type:rn.RANGE,from:8192,to:8202},{type:rn.CHAR,value:8232},{type:rn.CHAR,value:8233},{type:rn.CHAR,value:8239},{type:rn.CHAR,value:8287},{type:rn.CHAR,value:12288},{type:rn.CHAR,value:65279}],m6e=()=>[{type:rn.CHAR,value:10},{type:rn.CHAR,value:13},{type:rn.CHAR,value:8232},{type:rn.CHAR,value:8233}];is.words=()=>({type:rn.SET,set:GL(),not:!1});is.notWords=()=>({type:rn.SET,set:GL(),not:!0});is.ints=()=>({type:rn.SET,set:$y(),not:!1});is.notInts=()=>({type:rn.SET,set:$y(),not:!0});is.whitespace=()=>({type:rn.SET,set:XL(),not:!1});is.notWhitespace=()=>({type:rn.SET,set:XL(),not:!0});is.anyChar=()=>({type:rn.SET,set:m6e(),not:!0})});var KL=C(p0=>{var WL=f0(),wu=jy(),g6e="@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^ ?",y6e={0:0,t:9,n:10,v:11,f:12,r:13};p0.strToChars=function(t){var e=/(\[\\b\])|(\\)?\\(?:u([A-F0-9]{4})|x([A-F0-9]{2})|(0?[0-7]{2})|c([@A-Z[\\\]^?])|([0tnvfr]))/g;return t=t.replace(e,function(n,r,l,i,s,a,o,c){if(l)return n;var f=r?8:i?parseInt(i,16):s?parseInt(s,16):a?parseInt(a,8):o?g6e.indexOf(o):y6e[c],p=String.fromCharCode(f);return/[[\]{}^$.|?*+()]/.test(p)&&(p="\\"+p),p}),t};p0.tokenizeClass=(t,e)=>{for(var n=[],r=/\\(?:(w)|(d)|(s)|(W)|(D)|(S))|((?:(?:\\)(.)|([^\]\\]))-(?:\\)?([^\]]))|(\])|(?:\\)?([^])/g,l,i;(l=r.exec(t))!=null;)if(l[1])n.push(wu.words());else if(l[2])n.push(wu.ints());else if(l[3])n.push(wu.whitespace());else if(l[4])n.push(wu.notWords());else if(l[5])n.push(wu.notInts());else if(l[6])n.push(wu.notWhitespace());else if(l[7])n.push({type:WL.RANGE,from:(l[8]||l[9]).charCodeAt(0),to:l[10].charCodeAt(0)});else if(i=l[12])n.push({type:WL.CHAR,value:i.charCodeAt(0)});else return[n,r.lastIndex];p0.error(e,"Unterminated character class")};p0.error=(t,e)=>{throw new SyntaxError("Invalid regular expression: /"+t+"/: "+e)}});var YL=C(d0=>{var U8=f0();d0.wordBoundary=()=>({type:U8.POSITION,value:"b"});d0.nonWordBoundary=()=>({type:U8.POSITION,value:"B"});d0.begin=()=>({type:U8.POSITION,value:"^"});d0.end=()=>({type:U8.POSITION,value:"$"})});var JL=C((aAe,Uy)=>{var Ru=KL(),x2=f0(),Da=jy(),B8=YL();Uy.exports=t=>{var e=0,n,r,l={type:x2.ROOT,stack:[]},i=l,s=l.stack,a=[],o=T=>{Ru.error(t,`Nothing to repeat at column ${T-1}`)},c=Ru.strToChars(t);for(n=c.length;e{"use strict";var QL=JL(),v6e=QL.types;ZL.exports=function(t,e){e||(e={});var n=e.limit===void 0?25:e.limit;_6e(t)?t=t.source:typeof t!="string"&&(t=String(t));try{t=QL(t)}catch{return!1}var r=0;return function l(i,s){var a,o,c;if(i.type===v6e.REPETITION&&(s++,r++,s>1||r>n))return!1;if(i.options){for(a=0,c=i.options.length;a{"use strict";tF.exports={name:"__fmw_internal_strategy_merged_tree_http_method__",storage:function(){let t={};return{get:e=>t[e]||null,set:(e,n)=>{t[e]=n}}},deriveConstraint:t=>t.method,mustMatchWhenDerived:!0}});var oF=C((cAe,aF)=>{"use strict";var nF=Yo(),rF=H8(),lF=Symbol("treeData");function iF(t,e=""){let n="",r=Object.keys(t);for(let l=0;lIL(e)):typeof t=="symbol"?t.toString():typeof t=="function"?Ace(t):t}function wce(t,e){if(!e.includeMeta)return{};let n=e.buildPrettyMeta(t),r={},l=e.includeMeta;Array.isArray(l)||(l=Reflect.ownKeys(n));for(let i of l){if(!Object.prototype.hasOwnProperty.call(n,i))continue;let s=i.toString(),a=n[i];if(a!=null){let o=JSON.stringify(IL(a));r[s]=o}}return r}function Rce(t){let e="";for(let[n,r]of Object.entries(t))e+=`
-\u2022 (${n}) ${r}`;return e}function Oce(t){let e={...t.opts.constraints},n=e[RL.name];return delete e[RL.name],{...t,method:n,opts:{constraints:e}}}function Nce(t){let e=` (${t.method})`,n=t.opts.constraints||{};return Object.keys(n).length!==0&&(e+=" "+JSON.stringify(n)),e+=Rce(t.metaData),e}function Ice(t){return t.reduce((e,n)=>{for(let r of e)if(wL(n.opts.constraints,r.opts.constraints)&&wL(n.metaData,r.metaData))return r.method+=", "+n.method,e;return e.push(n),e},[])}function Cce(t,e,n){let r=t.routes;return n.method===void 0&&(r=r.map(Oce)),r=r.map(l=>(l.metaData=wce(l,n),l)),n.method===void 0&&(r=Ice(r)),r.map(Nce).join(`
-${e}`)}function R8(t,e,n,r){if((t.isLeafNode||r.commonPrefix!==!1)&&(n=n||"(empty root node)",e=e[n]={},t.isLeafNode&&(e[OL]=Cce(t,n,r)),n=""),t.staticChildren)for(let l of Object.values(t.staticChildren))R8(l,e,n+l.prefix,r);if(t.parametricChildren)for(let l of Object.values(t.parametricChildren)){let i=Array.from(l.nodePaths).join("|");R8(l,e,n+i,r)}t.wildcardChild&&R8(t.wildcardChild,e,"*",r)}function kce(t,e){let n={};return R8(t,n,t.prefix,e),NL(n)}CL.exports={prettyPrintTree:kce}});var DL=C((HSe,PL)=>{"use strict";var Pce=w8(),_y=class{constructor(){this.unconstrainedHandler=null,this.constraints=[],this.handlers=[],this.constrainedHandlerStores=null}getMatchingHandler(e){return e===void 0?this.unconstrainedHandler:this._getHandlerMatchingConstraints(e)}addHandler(e,n){let r=n.params,l=n.opts.constraints||{},i={params:r,constraints:l,handler:n.handler,store:n.store||null,_createParamsObject:this._compileCreateParamsObject(r)},s=Object.keys(l);s.length===0&&(this.unconstrainedHandler=i);for(let o of s)this.constraints.includes(o)||(o==="version"?this.constraints.unshift(o):this.constraints.push(o));let a=s.includes(Pce.name);if(!a&&this.handlers.length>=32)throw new Error("find-my-way supports a maximum of 32 route handlers per node when there are constraints, limit reached");this.handlers.push(i),this.handlers.sort((o,f)=>Object.keys(o.constraints).length-Object.keys(f.constraints).length),a||this._compileGetHandlerMatchingConstraints(e,l)}_compileCreateParamsObject(e){let n=[];for(let r=0;rsF(e)):typeof t=="symbol"?t.toString():typeof t=="function"?E6e(t):t}function b6e(t,e){if(!e.includeMeta)return{};let n=e.buildPrettyMeta(t),r={},l=e.includeMeta;Array.isArray(l)||(l=Reflect.ownKeys(n));for(let i of l){if(!Object.prototype.hasOwnProperty.call(n,i))continue;let s=i.toString(),a=n[i];if(a!=null){let o=JSON.stringify(sF(a));r[s]=o}}return r}function T6e(t){let e="";for(let[n,r]of Object.entries(t))e+=`
+\u2022 (${n}) ${r}`;return e}function S6e(t){let e={...t.opts.constraints},n=e[rF.name];return delete e[rF.name],{...t,method:n,opts:{constraints:e}}}function x6e(t){let e=` (${t.method})`,n=t.opts.constraints||{};return Object.keys(n).length!==0&&(e+=" "+JSON.stringify(n)),e+=T6e(t.metaData),e}function A6e(t){return t.reduce((e,n)=>{for(let r of e)if(nF(n.opts.constraints,r.opts.constraints)&&nF(n.metaData,r.metaData))return r.method+=", "+n.method,e;return e.push(n),e},[])}function w6e(t,e,n){let r=t.routes;return n.method===void 0&&(r=r.map(S6e)),r=r.map(l=>(l.metaData=b6e(l,n),l)),n.method===void 0&&(r=A6e(r)),r.map(x6e).join(`
+${e}`)}function q8(t,e,n,r){if((t.isLeafNode||r.commonPrefix!==!1)&&(n=n||"(empty root node)",e=e[n]={},t.isLeafNode&&(e[lF]=w6e(t,n,r)),n=""),t.staticChildren)for(let l of Object.values(t.staticChildren))q8(l,e,n+l.prefix,r);if(t.parametricChildren)for(let l of Object.values(t.parametricChildren)){let i=Array.from(l.nodePaths).join("|");q8(l,e,n+i,r)}t.wildcardChild&&q8(t.wildcardChild,e,"*",r)}function R6e(t,e){let n={};return q8(t,n,t.prefix,e),iF(n)}aF.exports={prettyPrintTree:R6e}});var cF=C((fAe,uF)=>{"use strict";var O6e=H8(),By=class{constructor(){this.unconstrainedHandler=null,this.constraints=[],this.handlers=[],this.constrainedHandlerStores=null}getMatchingHandler(e){return e===void 0?this.unconstrainedHandler:this._getHandlerMatchingConstraints(e)}addHandler(e,n){let r=n.params,l=n.opts.constraints||{},i={params:r,constraints:l,handler:n.handler,store:n.store||null,_createParamsObject:this._compileCreateParamsObject(r)},s=Object.keys(l);s.length===0&&(this.unconstrainedHandler=i);for(let o of s)this.constraints.includes(o)||(o==="version"?this.constraints.unshift(o):this.constraints.push(o));let a=s.includes(O6e.name);if(!a&&this.handlers.length>=32)throw new Error("find-my-way supports a maximum of 32 route handlers per node when there are constraints, limit reached");this.handlers.push(i),this.handlers.sort((o,c)=>Object.keys(o.constraints).length-Object.keys(c.constraints).length),a||this._compileGetHandlerMatchingConstraints(e,l)}_compileCreateParamsObject(e){let n=[];for(let r=0;r{"use strict";var Dce=DL(),P8={STATIC:0,PARAMETRIC:1,WILDCARD:2},O8=class{constructor(){this.isLeafNode=!1,this.routes=null,this.handlerStorage=null}addRoute(e,n){this.routes===null&&(this.routes=[]),this.handlerStorage===null&&(this.handlerStorage=new Dce),this.isLeafNode=!0,this.routes.push(e),this.handlerStorage.addHandler(n,e)}},N8=class extends O8{constructor(){super(),this.staticChildren={}}findStaticMatchingChild(e,n){let r=this.staticChildren[e.charAt(n)];return r===void 0||!r.matchPrefix(e,n)?null:r}getStaticChild(e,n=0){if(e.length===n)return this;let r=this.findStaticMatchingChild(e,n);return r?r.getStaticChild(e,n+r.prefix.length):null}createStaticChild(e){if(e.length===0)return this;let n=this.staticChildren[e.charAt(0)];if(n){let l=1;for(;l(l.regex&&l.regex.source)===n);return r||null}createParametricChild(e,n,r){let l=this.getParametricChild(e);return l?(l.nodePaths.add(r),l):(l=new C8(e,n,r),this.parametricChildren.push(l),this.parametricChildren.sort((i,s)=>i.isRegex?s.isRegex?i.staticSuffix===null?1:s.staticSuffix===null?-1:s.staticSuffix.endsWith(i.staticSuffix)?1:i.staticSuffix.endsWith(s.staticSuffix)?-1:0:-1:1),l)}getWildcardChild(){return this.wildcardChild?this.wildcardChild:null}createWildcardChild(){return this.wildcardChild=this.getWildcardChild()||new k8,this.wildcardChild}split(e,n){let r=this.prefix.slice(0,n),l=this.prefix.slice(n);this.prefix=l,this._compilePrefixMatch();let i=new t(r);return i.staticChildren[l.charAt(0)]=this,e.staticChildren[r.charAt(0)]=i,i}getNextNode(e,n,r,l){let i=this.findStaticMatchingChild(e,n),s=0;if(i===null){if(this.parametricChildren.length===0)return this.wildcardChild;i=this.parametricChildren[0],s=1}this.wildcardChild!==null&&r.push({paramsCount:l,brotherPathIndex:n,brotherNode:this.wildcardChild});for(let a=this.parametricChildren.length-1;a>=s;a--)r.push({paramsCount:l,brotherPathIndex:n,brotherNode:this.parametricChildren[a]});return i}_compilePrefixMatch(){if(this.prefix.length===1){this.matchPrefix=()=>!0;return}let e=[];for(let n=1;n{"use strict";var Lce=require("assert");function l0(){if(!(this instanceof l0))return new l0;this.store={},this.maxMajor=0,this.maxMinors={},this.maxPatches={}}l0.prototype.set=function(t,e){if(typeof t!="string")throw new TypeError("Version should be a string");let[n,r,l]=t.split(".");return n=Number(n)||0,r=Number(r)||0,l=Number(l)||0,n>=this.maxMajor&&(this.maxMajor=n,this.store.x=e,this.store["*"]=e,this.store["x.x"]=e,this.store["x.x.x"]=e),r>=(this.maxMinors[n]||0)&&(this.maxMinors[n]=r,this.store[`${n}.x`]=e,this.store[`${n}.x.x`]=e),l>=(this.store[`${n}.${r}`]||0)&&(this.maxPatches[`${n}.${r}`]=l,this.store[`${n}.${r}.x`]=e),this.store[`${n}.${r}.${l}`]=e,this};l0.prototype.get=function(t){return this.store[t]};ML.exports={name:"version",mustMatchWhenDerived:!0,storage:l0,validate(t){Lce(typeof t=="string","Version should be a string")}}});var UL=C((zSe,jL)=>{"use strict";var Fce=require("assert");function Mce(){let t={},e=[];return{get:n=>{let r=t[n];if(r)return r;for(let l of e)if(l.host.test(n))return l.value},set:(n,r)=>{n instanceof RegExp?e.push({host:n,value:r}):t[n]=r}}}jL.exports={name:"host",mustMatchWhenDerived:!1,storage:Mce,validate(t){Fce(typeof t=="string"||Object.prototype.toString.call(t)==="[object RegExp]","Host should be a string or a RegExp")}}});var HL=C((GSe,BL)=>{"use strict";var $ce=$L(),jce=UL(),Ey=require("assert"),by=class{constructor(e){if(this.strategies={version:$ce,host:jce},this.strategiesInUse=new Set,this.asyncStrategiesInUse=new Set,e)for(let n of Object.values(e))this.addConstraintStrategy(n)}isStrategyUsed(e){return this.strategiesInUse.has(e)||this.asyncStrategiesInUse.has(e)}hasConstraintStrategy(e){let n=this.strategies[e];return n!==void 0?n.isCustom||this.isStrategyUsed(e):!1}addConstraintStrategy(e){if(Ey(typeof e.name=="string"&&e.name!=="","strategy.name is required."),Ey(e.storage&&typeof e.storage=="function","strategy.storage function is required."),Ey(e.deriveConstraint&&typeof e.deriveConstraint=="function","strategy.deriveConstraint function is required."),this.strategies[e.name]&&this.strategies[e.name].isCustom)throw new Error(`There already exists a custom constraint with the name ${e.name}.`);if(this.isStrategyUsed(e.name))throw new Error(`There already exists a route with ${e.name} constraint.`);e.isCustom=!0,e.isAsync=e.deriveConstraint.length===3,this.strategies[e.name]=e,e.mustMatchWhenDerived&&this.noteUsage({[e.name]:e})}deriveConstraints(e,n,r){let l=this.deriveSyncConstraints(e,n);if(r===void 0)return l;this.deriveAsyncConstraints(l,e,n,r)}deriveSyncConstraints(e,n){}noteUsage(e){if(e){let n=this.strategiesInUse.size;for(let r in e)this.strategies[r].isAsync?this.asyncStrategiesInUse.add(r):this.strategiesInUse.add(r);n!==this.strategiesInUse.size&&this._buildDeriveConstraints()}}newStoreForConstraint(e){if(!this.strategies[e])throw new Error(`No strategy registered for constraint key ${e}`);return this.strategies[e].storage()}validateConstraints(e){for(let n in e){let r=e[n];if(typeof r>"u")throw new Error("Can't pass an undefined constraint value, must pass null or no key at all");let l=this.strategies[n];if(!l)throw new Error(`No strategy registered for constraint key ${n}`);l.validate&&l.validate(r)}}deriveAsyncConstraints(e,n,r,l){let i=this.asyncStrategiesInUse.size;if(i===0){l(null,e);return}e=e||{};for(let s of this.asyncStrategiesInUse)this.strategies[s].deriveConstraint(n,r,(o,f)=>{if(o!==null){l(o);return}e[s]=f,--i===0&&l(null,e)})}_buildDeriveConstraints(){if(this.strategiesInUse.size===0)return;let e=["return {"];for(let n of this.strategiesInUse){let r=this.strategies[n];if(r.isCustom)e.push(` ${r.name}: this.strategies.${n}.deriveConstraint(req, ctx),`);else if(n==="version")e.push(" version: req.headers['accept-version'],");else if(n==="host")e.push(" host: req.headers.host || req.headers[':authority'],");else throw new Error("unknown non-custom strategy for compiling constraint derivation function")}e.push("}"),this.deriveSyncConstraints=new Function("req","ctx",e.join(`
-`)).bind(this)}};BL.exports=by});var VL=C((XSe,qL)=>{"use strict";var Uce=["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"];qL.exports=Uce});var XL=C((WSe,GL)=>{"use strict";function zL(t,e){return t===50?e===53?"%":e===51?"#":e===52?"$":e===54?"&":e===66||e===98?"+":e===67||e===99?",":e===70||e===102?"/":null:t===51?e===65||e===97?":":e===66||e===98?";":e===68||e===100?"=":e===70||e===102?"?":null:t===52&&e===48?"@":null}function Bce(t,e){let n=!1,r=!1,l="";for(let s=1;s{"use strict";var ar=require("assert"),qce=hL(),D8=xL(),xy=qo(),{prettyPrintTree:Vce}=kL(),{StaticNode:WL,NODE_TYPES:Ty}=FL(),zce=HL(),bu=VL(),Sy=w8(),{safeDecodeURI:Gce,safeDecodeURIComponent:KL}=XL(),YL=/^https?:\/\/.*?\//,Ia=/(\/:[^/()]*?)\?(\/?)/;if(!D8(YL))throw new Error("the FULL_PATH_REGEXP is not safe, update this module");if(!D8(Ia))throw new Error("the OPTIONAL_PARAM_REGEXP is not safe, update this module");function Bn(t){if(!(this instanceof Bn))return new Bn(t);t=t||{},this._opts=t,t.defaultRoute?(ar(typeof t.defaultRoute=="function","The default route must be a function"),this.defaultRoute=t.defaultRoute):this.defaultRoute=null,t.onBadUrl?(ar(typeof t.onBadUrl=="function","The bad url handler must be a function"),this.onBadUrl=t.onBadUrl):this.onBadUrl=null,t.buildPrettyMeta?(ar(typeof t.buildPrettyMeta=="function","buildPrettyMeta must be a function"),this.buildPrettyMeta=t.buildPrettyMeta):this.buildPrettyMeta=Xce,t.querystringParser?(ar(typeof t.querystringParser=="function","querystringParser must be a function"),this.querystringParser=t.querystringParser):this.querystringParser=e=>e===""?{}:qce.parse(e),this.caseSensitive=t.caseSensitive===void 0?!0:t.caseSensitive,this.ignoreTrailingSlash=t.ignoreTrailingSlash||!1,this.ignoreDuplicateSlashes=t.ignoreDuplicateSlashes||!1,this.maxParamLength=t.maxParamLength||100,this.allowUnsafeRegex=t.allowUnsafeRegex||!1,this.constrainer=new zce(t.constraints),this.useSemicolonDelimiter=t.useSemicolonDelimiter||!1,this.routes=[],this.trees={}}Bn.prototype.on=function(e,n,r,l,i){typeof r=="function"&&(l!==void 0&&(i=l),l=r,r={}),ar(typeof n=="string","Path should be a string"),ar(n.length>0,"The path could not be empty"),ar(n[0]==="/"||n[0]==="*","The first character of a path should be `/` or `*`"),ar(typeof l=="function","Handler should be a function");let s=n.match(Ia);if(s){ar(n.length===s.index+s[0].length,"Optional Parameter needs to be the last parameter of the path");let f=n.replace(Ia,"$1$2"),c=n.replace(Ia,"$2");this.on(e,f,r,l,i),this.on(e,c,r,l,i);return}let a=n;this.ignoreDuplicateSlashes&&(n=Ay(n)),this.ignoreTrailingSlash&&(n=wy(n));let o=Array.isArray(e)?e:[e];for(let f of o)ar(typeof f=="string","Method should be a string"),ar(bu.includes(f),`Method '${f}' is not an http method.`),this._on(f,n,r,l,i,a)};Bn.prototype._on=function(e,n,r,l,i){let s={};r.constraints!==void 0&&(ar(typeof r.constraints=="object"&&r.constraints!==null,"Constraints should be an object"),Object.keys(r.constraints).length!==0&&(s=r.constraints)),this.constrainer.validateConstraints(s),this.constrainer.noteUsage(s),this.trees[e]===void 0&&(this.trees[e]=new WL("/"));let a=n;if(a==="*"&&this.trees[e].prefix.length!==0){let m=this.trees[e];this.trees[e]=new WL(""),this.trees[e].staticChildren["/"]=m}let o=this.trees[e],f=o.prefix.length,c=[];for(let m=0;m<=a.length;m++){if(a.charCodeAt(m)===58&&a.charCodeAt(m+1)===58){m++;continue}let h=a.charCodeAt(m)===58&&a.charCodeAt(m+1)!==58,g=a.charCodeAt(m)===42;if(h||g||m===a.length&&m!==f){let _=a.slice(f,m);this.caseSensitive||(_=_.toLowerCase()),_=_.split("::").join(":"),_=_.split("%").join("%25"),o=o.createStaticChild(_)}if(h){let _=!1,S=[],T=m+1;for(let x=T;;x++){let v=a.charCodeAt(x),b=v===40,w=v===45||v===46,N=v===47||x===a.length;if(b||w||N){let O=a.slice(T,x);if(c.push(O),_=_||b||w,b){let L=ZL(a,x),J=a.slice(x,L+1);this.allowUnsafeRegex||ar(D8(new RegExp(J)),`The regex '${J}' is not safe!`),S.push(QL(J)),x=L+1}else S.push("(.*?)");let k=x;for(;x0,"The path could not be empty"),ar(n[0]==="/"||n[0]==="*","The first character of a path should be `/` or `*`"),ar(typeof r>"u"||typeof r=="object"&&!Array.isArray(r)&&r!==null,"Constraints should be an object or undefined.");let l=n.match(Ia);if(l){ar(n.length===l.index+l[0].length,"Optional Parameter needs to be the last parameter of the path");let s=n.replace(Ia,"$1$2"),a=n.replace(Ia,"$2");this.off(e,s,r),this.off(e,a,r);return}this.ignoreDuplicateSlashes&&(n=Ay(n)),this.ignoreTrailingSlash&&(n=wy(n));let i=Array.isArray(e)?e:[e];for(let s of i)this._off(s,n,r)};Bn.prototype._off=function(e,n,r){ar(typeof e=="string","Method should be a string"),ar(bu.includes(e),`Method '${e}' is not an http method.`);function l(o){return e!==o.method||n!==o.path}function i(o){return l(o)||!xy(r,o.opts.constraints||{})}let s=r?i:l,a=this.routes.filter(s);this._rebuild(a)};Bn.prototype.lookup=function(e,n,r,l){if(typeof r=="function"&&(l=r,r=void 0),l===void 0){let i=this.constrainer.deriveConstraints(e,r),s=this.find(e.method,e.url,i);return this.callHandler(s,e,n,r)}this.constrainer.deriveConstraints(e,r,(i,s)=>{if(i!==null){l(i);return}try{let a=this.find(e.method,e.url,s),o=this.callHandler(a,e,n,r);l(null,o)}catch(a){l(a)}})};Bn.prototype.callHandler=function(e,n,r,l){return e===null?this._defaultRoute(n,r,l):l===void 0?e.handler(n,r,e.params,e.store,e.searchParams):e.handler.call(l,n,r,e.params,e.store,e.searchParams)};Bn.prototype.find=function(e,n,r){let l=this.trees[e];if(l===void 0)return null;n.charCodeAt(0)!==47&&(n=n.replace(YL,"/")),this.ignoreDuplicateSlashes&&(n=Ay(n));let i,s,a;try{i=Gce(n,this.useSemicolonDelimiter),n=i.path,s=i.querystring,a=i.shouldDecodeParam}catch{return this._onBadUrl(n)}this.ignoreTrailingSlash&&(n=wy(n));let o=n;this.caseSensitive===!1&&(n=n.toLowerCase());let f=this.maxParamLength,c=l.prefix.length,p=[],m=n.length,h=[];for(;;){if(c===m&&l.isLeafNode){let _=l.handlerStorage.getMatchingHandler(r);if(_!==null)return{handler:_.handler,store:_.store,params:_._createParamsObject(p),searchParams:this.querystringParser(s)}}let g=l.getNextNode(n,c,h,p.length);if(g===null){if(h.length===0)return null;let _=h.pop();c=_.brotherPathIndex,p.splice(_.paramsCount),g=_.brotherNode}if(l=g,l.kind===Ty.STATIC){c+=l.prefix.length;continue}if(l.kind===Ty.WILDCARD){let _=o.slice(c);a&&(_=KL(_)),p.push(_),c=m;continue}if(l.kind===Ty.PARAMETRIC){let _=o.indexOf("/",c);_===-1&&(_=m);let S=o.slice(c,_);if(a&&(S=KL(S)),l.isRegex){let T=l.regex.exec(S);if(T===null)continue;for(let x=1;xf)return null;p.push(v)}}else{if(S.length>f)return null;p.push(S)}c=_}}};Bn.prototype._rebuild=function(t){this.reset();for(let e of t){let{method:n,path:r,opts:l,handler:i,store:s}=e;this._on(n,r,l,i,s)}};Bn.prototype._defaultRoute=function(t,e,n){if(this.defaultRoute!==null)return n===void 0?this.defaultRoute(t,e):this.defaultRoute.call(n,t,e);e.statusCode=404,e.end()};Bn.prototype._onBadUrl=function(t){if(this.onBadUrl===null)return null;let e=this.onBadUrl;return{handler:(n,r,l)=>e(t,n,r),params:{},store:null}};Bn.prototype.prettyPrint=function(t={}){let e=t.method;t.buildPrettyMeta=this.buildPrettyMeta.bind(this);let n=null;if(e===void 0){let{version:r,host:l,...i}=this.constrainer.strategies;i[Sy.name]=Sy;let s=new Bn({...this._opts,constraints:i}),a=this.routes.map(o=>{let f={...o.opts.constraints,[Sy.name]:o.method};return{...o,method:"MERGED",opts:{constraints:f}}});s._rebuild(a),n=s.trees.MERGED}else n=this.trees[e];return n==null?"(empty tree)":Vce(n,t)};for(let t in bu){if(!bu.hasOwnProperty(t))continue;let e=bu[t],n=e.toLowerCase();if(Bn.prototype[n])throw new Error("Method already exists: "+n);Bn.prototype[n]=function(r,l,i){return this.on(e,r,l,i)}}Bn.prototype.all=function(t,e,n){this.on(bu,t,e,n)};eF.exports=Bn;function JL(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ay(t){return t.replace(/\/\/+/g,"/")}function wy(t){return t.length>1&&t.charCodeAt(t.length-1)===47?t.slice(0,-1):t}function QL(t){return t.charCodeAt(1)===94&&(t=t.slice(0,1)+t.slice(2)),t.charCodeAt(t.length-2)===36&&(t=t.slice(0,t.length-2)+t.slice(t.length-1)),t}function ZL(t,e){let n=1;for(;e{"use strict";function Oy(t,e,n,r){if(n===void 0)return e.header("content-length","0"),r(null,null);if(typeof n.resume=="function")return n.on("error",i=>{e.log.error({err:i},"Error on Stream found for HEAD route")}),n.resume(),r(null,null);let l=""+Buffer.byteLength(n);e.header("content-length",l),r(null,null)}function Wce(t){return t==null?Oy:Array.isArray(t)?[...t,Oy]:[t,Oy]}tF.exports={parseHeadOnSendHandlers:Wce}});var _F=C((JSe,vF)=>{"use strict";var Kce=Ry(),Yce=r8(),rF=wp(),{onRequestAbortHookRunner:Jce,lifecycleHooks:lF,preParsingHookRunner:Qce,onTimeoutHookRunner:Zce,onRequestHookRunner:e6e}=D3(),{supportedMethods:t6e}=tg(),{normalizeSchema:n6e}=K4(),{parseHeadOnSendHandlers:r6e}=nF(),{FSTDEP007:l6e,FSTDEP008:i6e,FSTDEP014:iF}=e3(),{compileSchemasForValidation:s6e,compileSchemasForSerialization:a6e}=bp(),{FST_ERR_SCH_VALIDATION_BUILD:o6e,FST_ERR_SCH_SERIALIZATION_BUILD:u6e,FST_ERR_DEFAULT_ROUTE_INVALID_TYPE:c6e,FST_ERR_DUPLICATED_ROUTE:f6e,FST_ERR_INVALID_URL:p6e,FST_ERR_HOOK_INVALID_HANDLER:sF,FST_ERR_ROUTE_OPTIONS_NOT_OBJ:d6e,FST_ERR_ROUTE_DUPLICATED_HANDLER:h6e,FST_ERR_ROUTE_HANDLER_NOT_FN:aF,FST_ERR_ROUTE_MISSING_HANDLER:m6e,FST_ERR_ROUTE_METHOD_NOT_SUPPORTED:g6e,FST_ERR_ROUTE_METHOD_INVALID:y6e,FST_ERR_ROUTE_BODY_VALIDATION_SCHEMA_NOT_SUPPORTED:v6e,FST_ERR_ROUTE_BODY_LIMIT_OPTION_NOT_INT:_6e,FST_ERR_HOOK_INVALID_ASYNC_HANDLER:Ny}=il(),{kRoutePrefix:E6e,kLogLevel:b6e,kLogSerializers:oF,kHooks:uF,kSchemaController:T6e,kOptions:cF,kReplySerializerDefault:Iy,kReplyIsError:S6e,kRequestPayloadStream:x6e,kDisableRequestLogging:A6e,kSchemaErrorFormatter:w6e,kErrorHandler:fF,kHasBeenDecorated:pF,kRequestAcceptVersion:Cy,kRouteByFastify:ky,kRouteContext:dF}=Dr(),{buildErrorHandler:R6e}=w1(),{createChildLogger:O6e}=X4(),{getGenReqId:N6e}=S8();function I6e(t){let e=Kce(t.config),n,r,l,i,s,a,o,f,c,p,m,h,g,_=!1;return{setup(k,$){n=$.avvio,r=$.fourOhFour,l=$.logger,i=$.hasLogger,s=$.setupResponseListeners,a=$.throwIfAlreadyStarted,h=$.validateHTTPVersion,m=k.exposeHeadRoutes,o=k.disableRequestLogging,f=k.ignoreTrailingSlash,c=k.ignoreDuplicateSlashes,p=Object.prototype.hasOwnProperty.call(k,"return503OnClosing")?k.return503OnClosing:!0,g=$.keepAliveConnections},routing:e.lookup.bind(e),route:N,hasRoute:b,prepareRoute:v,getDefaultRoute:function(){return iF(),e.defaultRoute},setDefaultRoute:function(k){if(iF(),typeof k!="function")throw new c6e;e.defaultRoute=k},routeHandler:O,closeRoutes:()=>{_=!0},printRoutes:e.prettyPrint.bind(e),addConstraintStrategy:S,hasConstraintStrategy:T,isAsyncConstraint:x,findRoute:w};function S(k){return a("Cannot add constraint strategy!"),e.addConstraintStrategy(k)}function T(k){return e.hasConstraintStrategy(k)}function x(){return e.constrainer.asyncStrategiesInUse.size>0}function v({method:k,url:$,options:L,handler:J,isFastify:K}){if(typeof $!="string")throw new p6e(typeof $);if(!J&&typeof L=="function")J=L,L={};else if(J&&typeof J=="function"){if(Object.prototype.toString.call(L)!=="[object Object]")throw new d6e(k,$);if(L.handler)throw typeof L.handler=="function"?new h6e(k,$):new aF(k,$)}return L=Object.assign({},L,{method:k,url:$,path:$,handler:J||L&&L.handler}),N.call(this,{options:L,isFastify:K})}function b({options:k}){return w(k)!==null}function w(k){let $=e.find(k.method,k.url||"",k.constraints);return $?{handler:$.handler,params:$.params,searchParams:$.searchParams}:null}function N({options:k,isFastify:$}){let L={...k},{exposeHeadRoute:J}=L,Q=J!=null?J:m,ye=L.method==="GET"||Array.isArray(L.method)&&L.method.includes("GET"),Oe=L.method==="HEAD"||Array.isArray(L.method)&&L.method.includes("HEAD"),fe=Q&&ye?{...k}:null;a("Cannot add route!");let se=L.url||L.path||"";if(Array.isArray(L.method))for(var ge=0;ge0&&L.method!=="HEAD")switch(L.prefixTrailingSlash){case"slash":re.call(this,{path:se,isFastify:$});break;case"no-slash":re.call(this,{path:"",isFastify:$});break;case"both":default:re.call(this,{path:"",isFastify:$}),f!==!0&&(c!==!0||!H.endsWith("/"))&&re.call(this,{path:se,prefixing:!0,isFastify:$})}else se[0]==="/"&&H.endsWith("/")?re.call(this,{path:se.slice(1),isFastify:$}):re.call(this,{path:se,isFastify:$});return this;function re({path:ne,prefixing:ee=!1,isFastify:Fn=!1}){let xt=H+ne;if(L.url=xt,L.path=xt,L.routePath=ne,L.prefix=H,L.logLevel=L.logLevel||this[b6e],(this[oF]||L.logSerializers)&&(L.logSerializers=Object.assign(Object.create(this[oF]),L.logSerializers)),L.attachValidation==null&&(L.attachValidation=!1),ee===!1)for(let at of this[uF].onRoute)at.call(this,L);for(let at of lF)if(L&&at in L){if(Array.isArray(L[at]))for(let ct of L[at]){if(typeof ct!="function")throw new sF(at,Object.prototype.toString.call(ct));if(at==="onSend"||at==="preSerialization"||at==="onError"||at==="preParsing"){if(ct.constructor.name==="AsyncFunction"&&ct.length===4)throw new Ny}else if(at==="onRequestAbort"){if(ct.constructor.name==="AsyncFunction"&&ct.length!==1)throw new Ny}else if(ct.constructor.name==="AsyncFunction"&&ct.length===3)throw new Ny}else if(L[at]!==void 0&&typeof L[at]!="function")throw new sF(at,Object.prototype.toString.call(L[at]))}let Ve=L.constraints||{},Lt={...L.config,url:xt,method:L.method},Xe=new Yce({schema:L.schema,handler:L.handler.bind(this),config:Lt,errorHandler:L.errorHandler,childLoggerFactory:L.childLoggerFactory,bodyLimit:L.bodyLimit,logLevel:L.logLevel,logSerializers:L.logSerializers,attachValidation:L.attachValidation,schemaErrorFormatter:L.schemaErrorFormatter,replySerializer:this[Iy],validatorCompiler:L.validatorCompiler,serializerCompiler:L.serializerCompiler,exposeHeadRoute:Q,prefixTrailingSlash:L.prefixTrailingSlash||"both",server:this,isFastify:Fn});L.version&&(i6e(),Ve.version=L.version);let ze=e.findRoute("HEAD",L.url,Ve),vn=ze!==null;Oe&&vn&&!Xe[ky]&&ze.store[ky]&&e.off("HEAD",L.url,Ve);try{e.on(L.method,L.url,{constraints:Ve},O,Xe)}catch(at){if(!Xe[ky])throw at.message.includes(`Method '${L.method}' already declared for route '${L.url}'`)?new f6e(L.method,L.url):at}if(this.after((at,ct)=>{Xe.errorHandler=L.errorHandler?R6e(this[fF],L.errorHandler):this[fF],Xe._parserOptions.limit=L.bodyLimit||null,Xe.logLevel=L.logLevel,Xe.logSerializers=L.logSerializers,Xe.attachValidation=L.attachValidation,Xe[Iy]=this[Iy],Xe.schemaErrorFormatter=L.schemaErrorFormatter||this[w6e]||Xe.schemaErrorFormatter,n.once("preReady",()=>{for(let Y of lF){let he=this[uF][Y].concat(L[Y]||[]).map(Ee=>Ee.bind(this));Xe[Y]=he.length?he:null}for(;!Xe.Request[pF]&&Xe.Request.parent;)Xe.Request=Xe.Request.parent;for(;!Xe.Reply[pF]&&Xe.Reply.parent;)Xe.Reply=Xe.Reply.parent;if(r.setContext(this,Xe),L.schema){Xe.schema=n6e(Xe.schema,this.initialConfig);let Y=this[T6e];!L.validatorCompiler&&(L.schema.body||L.schema.headers||L.schema.querystring||L.schema.params)&&Y.setupValidator(this[cF]);try{let he=typeof L?.validatorCompiler=="function"||Y.isCustomValidatorCompiler;s6e(Xe,L.validatorCompiler||Y.validatorCompiler,he)}catch(he){throw new o6e(L.method,xt,he.message)}L.schema.response&&!L.serializerCompiler&&Y.setupSerializer(this[cF]);try{a6e(Xe,L.serializerCompiler||Y.serializerCompiler)}catch(he){throw new u6e(L.method,xt,he.message)}}}),ct(at)}),Q&&ye&&!Oe&&!vn){let at=r6e(fe.onSend);v.call(this,{method:"HEAD",url:ne,options:{...fe,onSend:at},isFastify:!0})}else vn&&J&&l6e()}}function O(k,$,L,J,K){let Q=N6e(J.server,k),ye={level:J.logLevel};J.logSerializers&&(ye.serializers=J.logSerializers);let Oe=O6e(J,l,k,Q,ye);if(Oe[A6e]=o,!h(k.httpVersion)){Oe.info({res:{statusCode:505}},"request aborted - invalid HTTP version");let H='{"error":"HTTP Version Not Supported","message":"HTTP Version Not Supported","statusCode":505}',re={"Content-Type":"application/json","Content-Length":H.length};$.writeHead(505,re),$.end(H);return}if(_===!0&&(k.httpVersionMajor!==2&&$.setHeader("Connection","close"),p)){let H={"Content-Type":"application/json","Content-Length":"80"};$.writeHead(503,H),$.end('{"error":"Service Unavailable","message":"Service Unavailable","statusCode":503}'),Oe.info({res:{statusCode:503}},"request aborted - refusing to accept new requests as server is closing");return}String.prototype.toLowerCase.call(k.headers.connection||"")==="keep-alive"&&g.has(k.socket)===!1&&(g.add(k.socket),k.socket.on("close",P6e.bind({keepAliveConnections:g,socket:k.socket}))),k.headers[Cy]!==void 0&&(k.headers["accept-version"]=k.headers[Cy],k.headers[Cy]=void 0);let se=new J.Request(Q,L,k,K,Oe,J),ge=new J.Reply($,se,Oe);o===!1&&Oe.info({req:se},"incoming request"),(i===!0||J.onResponse!==null)&&s(ge),J.onRequest!==null?e6e(J.onRequest,se,ge,gF):gF(null,se,ge),J.onRequestAbort!==null&&k.on("close",()=>{k.aborted&&Jce(J.onRequestAbort,se,C6e.bind(null,ge))}),J.onTimeout!==null&&(se.raw.socket._meta||se.raw.socket.on("timeout",k6e),se.raw.socket._meta={context:J,request:se,reply:ge})}}function C6e(t,e){e&&t.log.error({err:e},"onRequestAborted hook failed")}function k6e(){let{context:t,request:e,reply:n}=this._meta;Zce(t.onTimeout,e,n,D6e)}function hF(t){if(typeof t!="string")throw new y6e;if(t=t.toUpperCase(),t6e.indexOf(t)===-1)throw new g6e(t);return t}function mF(t,e,n){if((t==="GET"||t==="HEAD")&&n&&n.body)throw new v6e(t,e)}function yF(t){if(t!==void 0&&(!Number.isInteger(t)||t<=0))throw new _6e(t)}function gF(t,e,n){if(n.sent!==!0){if(t!=null){n[S6e]=!0,n.send(t);return}e[x6e]=e.raw,e[dF].preParsing!==null?Qce(e[dF].preParsing,e,n,rF):rF(null,e,n)}}function P6e(){this.keepAliveConnections.delete(this.socket)}function D6e(){}vF.exports={buildRouting:I6e,validateBodyLimitOption:yF}});var wF=C((QSe,AF)=>{"use strict";var L6e=Ry(),EF=U6(),bF=n8(),F6e=r8(),{kRoutePrefix:M6e,kCanSetNotFoundHandler:i0,kFourOhFourLevelInstance:s0,kFourOhFourContext:Ti,kHooks:$6e,kErrorHandler:TF}=Dr(),{lifecycleHooks:j6e}=D3(),{buildErrorHandler:U6e}=w1(),{FST_ERR_NOT_FOUND:B6e}=il(),{createChildLogger:SF}=X4(),{getGenReqId:xF}=S8();function H6e(t){let{logger:e}=t,n=L6e({onBadUrl:s(),defaultRoute:c}),r=null;return{router:n,setNotFoundHandler:o,setContext:a,arrange404:l};function l(p){p[s0]=p,p[i0]=!0,n.onBadUrl=n.onBadUrl.bind(p),n.defaultRoute=n.defaultRoute.bind(p)}function i(p,m){let{url:h,method:g}=p.raw,_=`Route ${g}:${h} not found`;p.log.info(_),m.code(404).send({message:_,error:"Not Found",statusCode:404})}function s(){return function(m,h,g){let _=this[s0][Ti],S=xF(_.server,h),T=SF(_,e,h,S),x=new bF(S,null,h,null,T,_),v=new EF(g,x,T);r(x,v)}}function a(p,m){let h=Object.assign({},p[Ti]);h.onSend=m.onSend,m[Ti]=h}function o(p,m,h,g){this[i0]===void 0&&(this[i0]=!0),this[Ti]===void 0&&(this[Ti]=null);let _=this,S=this[M6e]||"/";if(this[i0]===!1)throw new Error(`Not found handler already set for Fastify instance with prefix: '${S}'`);typeof p=="object"&&(p.preHandler&&(Array.isArray(p.preHandler)?p.preHandler=p.preHandler.map(T=>T.bind(_)):p.preHandler=p.preHandler.bind(_)),p.preValidation&&(Array.isArray(p.preValidation)?p.preValidation=p.preValidation.map(T=>T.bind(_)):p.preValidation=p.preValidation.bind(_))),typeof p=="function"&&(m=p,p=void 0),p=p||{},m?(this[s0][i0]=!1,m=m.bind(this),r=m):(m=i,r=i),this.after((T,x)=>{f.call(this,S,p,m,h,g),x(T)})}function f(p,m,h,g,_){let S=new F6e({schema:m.schema,handler:h,config:m.config||{},server:this});if(g.once("preReady",()=>{let T=this[Ti];for(let x of j6e){let v=this[$6e][x].concat(m[x]||[]).map(b=>b.bind(this));T[x]=v.length?v:null}T.errorHandler=m.errorHandler?U6e(this[TF],m.errorHandler):this[TF]}),this[Ti]!==null&&p==="/"){Object.assign(this[Ti],S);return}this[s0][Ti]=S,n.all(p+(p.endsWith("/")?"*":"/*"),_,S),n.all(p,_,S)}function c(p,m){let h=this[s0][Ti],g=xF(h.server,p),_=SF(h,e,p,g);_.info({req:p},"incoming request");let S=new bF(g,null,p,null,_,h),T=new EF(m,S,_);S.log.warn("the default handler for 404 did not catch this, this is likely a fastify bug, please report it"),S.log.warn(n.prettyPrint()),T.code(404).send(new B6e)}}AF.exports=H6e});var OF=C((ZSe,L8)=>{"use strict";L8.exports=qt;L8.exports.default=qt;var RF={type:"object",additionalProperties:!1,properties:{connectionTimeout:{type:"integer",default:0},keepAliveTimeout:{type:"integer",default:72e3},forceCloseConnections:{oneOf:[{type:"string",pattern:"idle"},{type:"boolean"}]},maxRequestsPerSocket:{type:"integer",default:0,nullable:!0},requestTimeout:{type:"integer",default:0},bodyLimit:{type:"integer",default:1048576},caseSensitive:{type:"boolean",default:!0},allowUnsafeRegex:{type:"boolean",default:!1},http2:{type:"boolean"},https:{if:{not:{oneOf:[{type:"boolean"},{type:"null"},{type:"object",additionalProperties:!1,required:["allowHTTP1"],properties:{allowHTTP1:{type:"boolean"}}}]}},then:{setDefaultValue:!0}},ignoreTrailingSlash:{type:"boolean",default:!1},ignoreDuplicateSlashes:{type:"boolean",default:!1},disableRequestLogging:{type:"boolean",default:!1},jsonShorthand:{type:"boolean",default:!0},maxParamLength:{type:"integer",default:100},onProtoPoisoning:{type:"string",default:"error"},onConstructorPoisoning:{type:"string",default:"error"},pluginTimeout:{type:"integer",default:1e4},requestIdHeader:{anyOf:[{enum:[!1]},{type:"string"}],default:"request-id"},requestIdLogLabel:{type:"string",default:"reqId"},http2SessionTimeout:{type:"integer",default:72e3},exposeHeadRoutes:{type:"boolean",default:!0},useSemicolonDelimiter:{type:"boolean",default:!0},versioning:{type:"object",additionalProperties:!0,required:["storage","deriveVersion"],properties:{storage:{},deriveVersion:{}}},constraints:{type:"object",additionalProperties:{type:"object",required:["name","storage","validate","deriveConstraint"],additionalProperties:!0,properties:{name:{type:"string"},storage:{},validate:{},deriveConstraint:{}}}}}},q6e=Object.prototype.hasOwnProperty,V6e=new RegExp("idle","u");function qt(t,{instancePath:e="",parentData:n,parentDataProperty:r,rootData:l=t}={}){let i=null,s=0;if(s===0)if(t&&typeof t=="object"&&!Array.isArray(t)){t.connectionTimeout===void 0&&(t.connectionTimeout=0),t.keepAliveTimeout===void 0&&(t.keepAliveTimeout=72e3),t.maxRequestsPerSocket===void 0&&(t.maxRequestsPerSocket=0),t.requestTimeout===void 0&&(t.requestTimeout=0),t.bodyLimit===void 0&&(t.bodyLimit=1048576),t.caseSensitive===void 0&&(t.caseSensitive=!0),t.allowUnsafeRegex===void 0&&(t.allowUnsafeRegex=!1),t.ignoreTrailingSlash===void 0&&(t.ignoreTrailingSlash=!1),t.ignoreDuplicateSlashes===void 0&&(t.ignoreDuplicateSlashes=!1),t.disableRequestLogging===void 0&&(t.disableRequestLogging=!1),t.jsonShorthand===void 0&&(t.jsonShorthand=!0),t.maxParamLength===void 0&&(t.maxParamLength=100),t.onProtoPoisoning===void 0&&(t.onProtoPoisoning="error"),t.onConstructorPoisoning===void 0&&(t.onConstructorPoisoning="error"),t.pluginTimeout===void 0&&(t.pluginTimeout=1e4),t.requestIdHeader===void 0&&(t.requestIdHeader="request-id"),t.requestIdLogLabel===void 0&&(t.requestIdLogLabel="reqId"),t.http2SessionTimeout===void 0&&(t.http2SessionTimeout=72e3),t.exposeHeadRoutes===void 0&&(t.exposeHeadRoutes=!0),t.useSemicolonDelimiter===void 0&&(t.useSemicolonDelimiter=!0);let g=s;for(let _ in t)q6e.call(RF.properties,_)||delete t[_];if(g===s){let _=t.connectionTimeout,S=s;if(!(typeof _=="number"&&!(_%1)&&!isNaN(_)&&isFinite(_))){let T=typeof _,x;if(x===void 0)if(T==="boolean"||_===null||T==="string"&&_&&_==+_&&!(_%1))x=+_;else return qt.errors=[{instancePath:e+"/connectionTimeout",schemaPath:"#/properties/connectionTimeout/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;x!==void 0&&(_=x,t!==void 0&&(t.connectionTimeout=x))}var a=S===s;if(a){let T=t.keepAliveTimeout,x=s;if(!(typeof T=="number"&&!(T%1)&&!isNaN(T)&&isFinite(T))){let b=typeof T,w;if(w===void 0)if(b==="boolean"||T===null||b==="string"&&T&&T==+T&&!(T%1))w=+T;else return qt.errors=[{instancePath:e+"/keepAliveTimeout",schemaPath:"#/properties/keepAliveTimeout/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;w!==void 0&&(T=w,t!==void 0&&(t.keepAliveTimeout=w))}var a=x===s;if(a){if(t.forceCloseConnections!==void 0){let b=t.forceCloseConnections,w=s,N=s,O=!1,k=null,$=s;if(typeof b!="string"){let K=typeof b,Q;if(Q===void 0)if(K=="number"||K=="boolean")Q=""+b;else if(b===null)Q="";else{let ye={instancePath:e+"/forceCloseConnections",schemaPath:"#/properties/forceCloseConnections/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[ye]:i.push(ye),s++}Q!==void 0&&(b=Q,t!==void 0&&(t.forceCloseConnections=Q))}if(s===$&&typeof b=="string"&&!V6e.test(b)){let K={instancePath:e+"/forceCloseConnections",schemaPath:"#/properties/forceCloseConnections/oneOf/0/pattern",keyword:"pattern",params:{pattern:"idle"},message:'must match pattern "idle"'};i===null?i=[K]:i.push(K),s++}var o=$===s;o&&(O=!0,k=0);let L=s;if(typeof b!="boolean"){let K;if(K===void 0)if(b==="false"||b===0||b===null)K=!1;else if(b==="true"||b===1)K=!0;else{let Q={instancePath:e+"/forceCloseConnections",schemaPath:"#/properties/forceCloseConnections/oneOf/1/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};i===null?i=[Q]:i.push(Q),s++}K!==void 0&&(b=K,t!==void 0&&(t.forceCloseConnections=K))}var o=L===s;if(o&&O?(O=!1,k=[k,1]):o&&(O=!0,k=1),O)s=N,i!==null&&(N?i.length=N:i=null);else{let K={instancePath:e+"/forceCloseConnections",schemaPath:"#/properties/forceCloseConnections/oneOf",keyword:"oneOf",params:{passingSchemas:k},message:"must match exactly one schema in oneOf"};return i===null?i=[K]:i.push(K),s++,qt.errors=i,!1}var a=w===s}else var a=!0;if(a){let b=t.maxRequestsPerSocket,w=s;if(!(typeof b=="number"&&!(b%1)&&!isNaN(b)&&isFinite(b))&&b!==null){let O=typeof b,k;if(k===void 0)if(O==="boolean"||b===null||O==="string"&&b&&b==+b&&!(b%1))k=+b;else if(b===""||b===0||b===!1)k=null;else return qt.errors=[{instancePath:e+"/maxRequestsPerSocket",schemaPath:"#/properties/maxRequestsPerSocket/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;k!==void 0&&(b=k,t!==void 0&&(t.maxRequestsPerSocket=k))}var a=w===s;if(a){let O=t.requestTimeout,k=s;if(!(typeof O=="number"&&!(O%1)&&!isNaN(O)&&isFinite(O))){let L=typeof O,J;if(J===void 0)if(L==="boolean"||O===null||L==="string"&&O&&O==+O&&!(O%1))J=+O;else return qt.errors=[{instancePath:e+"/requestTimeout",schemaPath:"#/properties/requestTimeout/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;J!==void 0&&(O=J,t!==void 0&&(t.requestTimeout=J))}var a=k===s;if(a){let L=t.bodyLimit,J=s;if(!(typeof L=="number"&&!(L%1)&&!isNaN(L)&&isFinite(L))){let Q=typeof L,ye;if(ye===void 0)if(Q==="boolean"||L===null||Q==="string"&&L&&L==+L&&!(L%1))ye=+L;else return qt.errors=[{instancePath:e+"/bodyLimit",schemaPath:"#/properties/bodyLimit/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;ye!==void 0&&(L=ye,t!==void 0&&(t.bodyLimit=ye))}var a=J===s;if(a){let Q=t.caseSensitive,ye=s;if(typeof Q!="boolean"){let fe;if(fe===void 0)if(Q==="false"||Q===0||Q===null)fe=!1;else if(Q==="true"||Q===1)fe=!0;else return qt.errors=[{instancePath:e+"/caseSensitive",schemaPath:"#/properties/caseSensitive/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;fe!==void 0&&(Q=fe,t!==void 0&&(t.caseSensitive=fe))}var a=ye===s;if(a){let fe=t.allowUnsafeRegex,se=s;if(typeof fe!="boolean"){let H;if(H===void 0)if(fe==="false"||fe===0||fe===null)H=!1;else if(fe==="true"||fe===1)H=!0;else return qt.errors=[{instancePath:e+"/allowUnsafeRegex",schemaPath:"#/properties/allowUnsafeRegex/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;H!==void 0&&(fe=H,t!==void 0&&(t.allowUnsafeRegex=H))}var a=se===s;if(a){if(t.http2!==void 0){let H=t.http2,re=s;if(typeof H!="boolean"){let ee;if(ee===void 0)if(H==="false"||H===0||H===null)ee=!1;else if(H==="true"||H===1)ee=!0;else return qt.errors=[{instancePath:e+"/http2",schemaPath:"#/properties/http2/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;ee!==void 0&&(H=ee,t!==void 0&&(t.http2=ee))}var a=re===s}else var a=!0;if(a){if(t.https!==void 0){let H=t.https,re=s,ne=s,ee=!0,Fn=s,xt=s,Ve=s,Lt=s,Xe=!1,ze=null,vn=s;if(typeof H!="boolean"){let Y;if(Y===void 0)if(H==="false"||H===0||H===null)Y=!1;else if(H==="true"||H===1)Y=!0;else{let he={};i===null?i=[he]:i.push(he),s++}Y!==void 0&&(H=Y,t!==void 0&&(t.https=Y))}var f=vn===s;f&&(Xe=!0,ze=0);let at=s;if(H!==null){let Y;if(Y===void 0)if(H===""||H===0||H===!1)Y=null;else{let he={};i===null?i=[he]:i.push(he),s++}Y!==void 0&&(H=Y,t!==void 0&&(t.https=Y))}var f=at===s;if(f&&Xe)Xe=!1,ze=[ze,1];else{f&&(Xe=!0,ze=1);let Y=s;if(s===Y)if(H&&typeof H=="object"&&!Array.isArray(H)){let Ee;if(H.allowHTTP1===void 0&&(Ee="allowHTTP1")){let je={};i===null?i=[je]:i.push(je),s++}else{let je=s;for(let nt in H)nt!=="allowHTTP1"&&delete H[nt];if(je===s&&H.allowHTTP1!==void 0){let nt=H.allowHTTP1;if(typeof nt!="boolean"){let Ie;if(Ie===void 0)if(nt==="false"||nt===0||nt===null)Ie=!1;else if(nt==="true"||nt===1)Ie=!0;else{let At={};i===null?i=[At]:i.push(At),s++}Ie!==void 0&&(nt=Ie,H!==void 0&&(H.allowHTTP1=Ie))}}}}else{let Ee={};i===null?i=[Ee]:i.push(Ee),s++}var f=Y===s;f&&Xe?(Xe=!1,ze=[ze,2]):f&&(Xe=!0,ze=2)}if(Xe)s=Lt,i!==null&&(Lt?i.length=Lt:i=null);else{let Y={};i===null?i=[Y]:i.push(Y),s++}var c=Ve===s;if(c){let Y={};i===null?i=[Y]:i.push(Y),s++}else s=xt,i!==null&&(xt?i.length=xt:i=null);var p=Fn===s;if(s=ne,i!==null&&(ne?i.length=ne:i=null),p){let Y=s;t.https=!0;var p=Y===s;ee=p}if(!ee){let Y={instancePath:e+"/https",schemaPath:"#/properties/https/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema'};return i===null?i=[Y]:i.push(Y),s++,qt.errors=i,!1}var a=re===s}else var a=!0;if(a){let H=t.ignoreTrailingSlash,re=s;if(typeof H!="boolean"){let ee;if(ee===void 0)if(H==="false"||H===0||H===null)ee=!1;else if(H==="true"||H===1)ee=!0;else return qt.errors=[{instancePath:e+"/ignoreTrailingSlash",schemaPath:"#/properties/ignoreTrailingSlash/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;ee!==void 0&&(H=ee,t!==void 0&&(t.ignoreTrailingSlash=ee))}var a=re===s;if(a){let ee=t.ignoreDuplicateSlashes,Fn=s;if(typeof ee!="boolean"){let Ve;if(Ve===void 0)if(ee==="false"||ee===0||ee===null)Ve=!1;else if(ee==="true"||ee===1)Ve=!0;else return qt.errors=[{instancePath:e+"/ignoreDuplicateSlashes",schemaPath:"#/properties/ignoreDuplicateSlashes/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;Ve!==void 0&&(ee=Ve,t!==void 0&&(t.ignoreDuplicateSlashes=Ve))}var a=Fn===s;if(a){let Ve=t.disableRequestLogging,Lt=s;if(typeof Ve!="boolean"){let ze;if(ze===void 0)if(Ve==="false"||Ve===0||Ve===null)ze=!1;else if(Ve==="true"||Ve===1)ze=!0;else return qt.errors=[{instancePath:e+"/disableRequestLogging",schemaPath:"#/properties/disableRequestLogging/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;ze!==void 0&&(Ve=ze,t!==void 0&&(t.disableRequestLogging=ze))}var a=Lt===s;if(a){let ze=t.jsonShorthand,vn=s;if(typeof ze!="boolean"){let ct;if(ct===void 0)if(ze==="false"||ze===0||ze===null)ct=!1;else if(ze==="true"||ze===1)ct=!0;else return qt.errors=[{instancePath:e+"/jsonShorthand",schemaPath:"#/properties/jsonShorthand/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;ct!==void 0&&(ze=ct,t!==void 0&&(t.jsonShorthand=ct))}var a=vn===s;if(a){let ct=t.maxParamLength,Y=s;if(!(typeof ct=="number"&&!(ct%1)&&!isNaN(ct)&&isFinite(ct))){let Ee=typeof ct,je;if(je===void 0)if(Ee==="boolean"||ct===null||Ee==="string"&&ct&&ct==+ct&&!(ct%1))je=+ct;else return qt.errors=[{instancePath:e+"/maxParamLength",schemaPath:"#/properties/maxParamLength/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;je!==void 0&&(ct=je,t!==void 0&&(t.maxParamLength=je))}var a=Y===s;if(a){let Ee=t.onProtoPoisoning,je=s;if(typeof Ee!="string"){let Ie=typeof Ee,At;if(At===void 0)if(Ie=="number"||Ie=="boolean")At=""+Ee;else if(Ee===null)At="";else return qt.errors=[{instancePath:e+"/onProtoPoisoning",schemaPath:"#/properties/onProtoPoisoning/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;At!==void 0&&(Ee=At,t!==void 0&&(t.onProtoPoisoning=At))}var a=je===s;if(a){let Ie=t.onConstructorPoisoning,At=s;if(typeof Ie!="string"){let wt=typeof Ie,Ut;if(Ut===void 0)if(wt=="number"||wt=="boolean")Ut=""+Ie;else if(Ie===null)Ut="";else return qt.errors=[{instancePath:e+"/onConstructorPoisoning",schemaPath:"#/properties/onConstructorPoisoning/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;Ut!==void 0&&(Ie=Ut,t!==void 0&&(t.onConstructorPoisoning=Ut))}var a=At===s;if(a){let wt=t.pluginTimeout,Ut=s;if(!(typeof wt=="number"&&!(wt%1)&&!isNaN(wt)&&isFinite(wt))){let Pn=typeof wt,Rr;if(Rr===void 0)if(Pn==="boolean"||wt===null||Pn==="string"&&wt&&wt==+wt&&!(wt%1))Rr=+wt;else return qt.errors=[{instancePath:e+"/pluginTimeout",schemaPath:"#/properties/pluginTimeout/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;Rr!==void 0&&(wt=Rr,t!==void 0&&(t.pluginTimeout=Rr))}var a=Ut===s;if(a){let Pn=t.requestIdHeader,Rr=s,Vn=s,Ur=!1,Jr=s;if(Pn!==!1){let Zn={instancePath:e+"/requestIdHeader",schemaPath:"#/properties/requestIdHeader/anyOf/0/enum",keyword:"enum",params:{allowedValues:RF.properties.requestIdHeader.anyOf[0].enum},message:"must be equal to one of the allowed values"};i===null?i=[Zn]:i.push(Zn),s++}var m=Jr===s;if(Ur=Ur||m,!Ur){let Zn=s;if(typeof Pn!="string"){let Q2=typeof Pn,_n;if(_n===void 0)if(Q2=="number"||Q2=="boolean")_n=""+Pn;else if(Pn===null)_n="";else{let hl={instancePath:e+"/requestIdHeader",schemaPath:"#/properties/requestIdHeader/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[hl]:i.push(hl),s++}_n!==void 0&&(Pn=_n,t!==void 0&&(t.requestIdHeader=_n))}var m=Zn===s;Ur=Ur||m}if(Ur)s=Vn,i!==null&&(Vn?i.length=Vn:i=null);else{let Zn={instancePath:e+"/requestIdHeader",schemaPath:"#/properties/requestIdHeader/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[Zn]:i.push(Zn),s++,qt.errors=i,!1}var a=Rr===s;if(a){let Zn=t.requestIdLogLabel,so=s;if(typeof Zn!="string"){let _n=typeof Zn,hl;if(hl===void 0)if(_n=="number"||_n=="boolean")hl=""+Zn;else if(Zn===null)hl="";else return qt.errors=[{instancePath:e+"/requestIdLogLabel",schemaPath:"#/properties/requestIdLogLabel/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;hl!==void 0&&(Zn=hl,t!==void 0&&(t.requestIdLogLabel=hl))}var a=so===s;if(a){let _n=t.http2SessionTimeout,hl=s;if(!(typeof _n=="number"&&!(_n%1)&&!isNaN(_n)&&isFinite(_n))){let Or=typeof _n,fr;if(fr===void 0)if(Or==="boolean"||_n===null||Or==="string"&&_n&&_n==+_n&&!(_n%1))fr=+_n;else return qt.errors=[{instancePath:e+"/http2SessionTimeout",schemaPath:"#/properties/http2SessionTimeout/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;fr!==void 0&&(_n=fr,t!==void 0&&(t.http2SessionTimeout=fr))}var a=hl===s;if(a){let Or=t.exposeHeadRoutes,fr=s;if(typeof Or!="boolean"){let mr;if(mr===void 0)if(Or==="false"||Or===0||Or===null)mr=!1;else if(Or==="true"||Or===1)mr=!0;else return qt.errors=[{instancePath:e+"/exposeHeadRoutes",schemaPath:"#/properties/exposeHeadRoutes/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;mr!==void 0&&(Or=mr,t!==void 0&&(t.exposeHeadRoutes=mr))}var a=fr===s;if(a){let mr=t.useSemicolonDelimiter,$i=s;if(typeof mr!="boolean"){let Mn;if(Mn===void 0)if(mr==="false"||mr===0||mr===null)Mn=!1;else if(mr==="true"||mr===1)Mn=!0;else return qt.errors=[{instancePath:e+"/useSemicolonDelimiter",schemaPath:"#/properties/useSemicolonDelimiter/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;Mn!==void 0&&(mr=Mn,t!==void 0&&(t.useSemicolonDelimiter=Mn))}var a=$i===s;if(a){if(t.versioning!==void 0){let Mn=t.versioning,er=s;if(s===er)if(Mn&&typeof Mn=="object"&&!Array.isArray(Mn)){let Qr;if(Mn.storage===void 0&&(Qr="storage")||Mn.deriveVersion===void 0&&(Qr="deriveVersion"))return qt.errors=[{instancePath:e+"/versioning",schemaPath:"#/properties/versioning/required",keyword:"required",params:{missingProperty:Qr},message:"must have required property '"+Qr+"'"}],!1}else return qt.errors=[{instancePath:e+"/versioning",schemaPath:"#/properties/versioning/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var a=er===s}else var a=!0;if(a)if(t.constraints!==void 0){let Mn=t.constraints,er=s;if(s===er)if(Mn&&typeof Mn=="object"&&!Array.isArray(Mn))for(let Qr in Mn){let Br=Mn[Qr],R2=s;if(s===R2)if(Br&&typeof Br=="object"&&!Array.isArray(Br)){let Gl;if(Br.name===void 0&&(Gl="name")||Br.storage===void 0&&(Gl="storage")||Br.validate===void 0&&(Gl="validate")||Br.deriveConstraint===void 0&&(Gl="deriveConstraint"))return qt.errors=[{instancePath:e+"/constraints/"+Qr.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/constraints/additionalProperties/required",keyword:"required",params:{missingProperty:Gl},message:"must have required property '"+Gl+"'"}],!1;if(Br.name!==void 0){let O2=Br.name;if(typeof O2!="string"){let ei=typeof O2,r2;if(r2===void 0)if(ei=="number"||ei=="boolean")r2=""+O2;else if(O2===null)r2="";else return qt.errors=[{instancePath:e+"/constraints/"+Qr.replace(/~/g,"~0").replace(/\//g,"~1")+"/name",schemaPath:"#/properties/constraints/additionalProperties/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;r2!==void 0&&(O2=r2,Br!==void 0&&(Br.name=r2))}}}else return qt.errors=[{instancePath:e+"/constraints/"+Qr.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/constraints/additionalProperties/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var h=R2===s;if(!h)break}else return qt.errors=[{instancePath:e+"/constraints",schemaPath:"#/properties/constraints/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var a=er===s}else var a=!0}}}}}}}}}}}}}}}}}}}}}}}}}else return qt.errors=[{instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return qt.errors=i,s===0}L8.exports.defaultInitOptions={connectionTimeout:0,keepAliveTimeout:72e3,maxRequestsPerSocket:0,requestTimeout:0,bodyLimit:1048576,caseSensitive:!0,allowUnsafeRegex:!1,disableRequestLogging:!1,jsonShorthand:!0,ignoreTrailingSlash:!1,ignoreDuplicateSlashes:!1,maxParamLength:100,onProtoPoisoning:"error",onConstructorPoisoning:"error",pluginTimeout:1e4,requestIdHeader:"request-id",requestIdLogLabel:"reqId",http2SessionTimeout:72e3,exposeHeadRoutes:!0,useSemicolonDelimiter:!0}});var NF=C((exe,M8)=>{"use strict";var F8=OF(),z6e=W4()({circles:!0,proto:!1}),{FST_ERR_INIT_OPTS_INVALID:G6e}=il();function X6e(t){let e=z6e(t);if(!F8(e)){let n=new G6e(JSON.stringify(F8.errors.map(r=>r.message)));throw n.errors=F8.errors,n}return Py(e)}function Py(t){let e=Object.getOwnPropertyNames(t);for(let n of e){let r=t[n];ArrayBuffer.isView(r)&&!(r instanceof DataView)||(t[n]=r&&typeof r=="object"?Py(r):r)}return Object.freeze(t)}M8.exports=X6e;M8.exports.defaultInitOptions=F8.defaultInitOptions;M8.exports.utils={deepFreezeObject:Py}});var $F=C((txe,MF)=>{"use strict";var{kAvvioBoot:W6e,kChildren:IF,kRoutePrefix:CF,kLogLevel:kF,kLogSerializers:Dy,kHooks:Ly,kSchemaController:Tu,kContentTypeParser:PF,kReply:DF,kRequest:LF,kFourOhFour:K6e,kPluginNameChain:FF}=Dr(),Y6e=U6(),J6e=n8(),Q6e=ay(),Z6e=mg(),{buildHooks:e8e}=D3(),a0=dy();MF.exports=function(e,n,r){let l=a0.registerPlugin.call(e,n),i=a0.getPluginName(n)||a0.getFuncPreview(n);if(l)return e[FF].push(i),e;let s=Object.create(e);e[IF].push(s),s.ready=e[W6e].bind(s),s[IF]=[],s[DF]=Y6e.buildReply(s[DF]),s[LF]=J6e.buildRequest(s[LF]),s[PF]=Z6e.helpers.buildContentTypeParser(s[PF]),s[Ly]=e8e(s[Ly]),s[CF]=t8e(s[CF],r.prefix),s[kF]=r.logLevel||s[kF],s[Tu]=Q6e.buildSchemaController(e[Tu]),s.getSchema=s[Tu].getSchema.bind(s[Tu]),s.getSchemas=s[Tu].getSchemas.bind(s[Tu]),s[a0.kRegisteredPlugins]=Object.create(s[a0.kRegisteredPlugins]),s[FF]=[i],(s[Dy]||r.logSerializers)&&(s[Dy]=Object.assign(Object.create(s[Dy]),r.logSerializers)),r.prefix&&s[K6e].arrange404(s);for(let a of s[Ly].onRegister)a.call(this,s,r);return s};function t8e(t,e){return e?(t.endsWith("/")&&e[0]==="/"?e=e.slice(1):e[0]!=="/"&&(e="/"+e),t+e):t}});var UF=C((nxe,jF)=>{"use strict";jF.exports=function(){return{[Symbol.iterator]:function*(){},add(){},delete(){},has(){return!0}}}});var BF=C(Fy=>{"use strict";Fy.parse=r8e;Fy.serialize=l8e;var n8e=Object.prototype.toString,$8=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function r8e(t,e){if(typeof t!="string")throw new TypeError("argument str must be a string");for(var n={},r=e||{},l=r.decode||i8e,i=0;i{"use strict";var{format:My}=require("node:util");function $y(){let t={},e=new Map,n=Object.create(null);function r(s,a,o,{unlimited:f=!1}={}){if(!s)throw new Error("Warning name must not be empty");if(!a)throw new Error("Warning code must not be empty");if(!o)throw new Error("Warning message must not be empty");if(typeof f!="boolean")throw new Error("Warning opts.unlimited must be a boolean");if(a=a.toUpperCase(),t[a]!==void 0)throw new Error(`The code '${a}' already exist`);function c(p,m,h){let g;return p&&m&&h?g=My(o,p,m,h):p&&m?g=My(o,p,m):p?g=My(o,p):g=o,{code:a,name:s,message:g}}return Object.assign(n,{unlimited:f}),e.set(a,f),t[a]=c,t[a]}function l(s,a,o={}){return r("DeprecationWarning",s,a,o)}function i(s,a,o,f){if(e.get(s)===!0&&n.unlimited===!1)return;if(t[s]===void 0)throw new Error(`The code '${s}' does not exist`);e.set(s,!0);let c=t[s](a,o,f);process.emitWarning(c.message,c.name,c.code)}return{create:r,createDeprecation:l,emit:i,emitted:e}}j8.exports=$y;j8.exports.default=$y;j8.exports.processWarning=$y});var zF=C((ixe,VF)=>{"use strict";var{URL:qF}=require("node:url"),jy="http://localhost";VF.exports=function(e,n){(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]")&&e.startsWith("//")&&(e=jy+e);let r=typeof e=="object"?Object.assign(new qF(jy),e):new qF(e,jy);if(typeof n=="string"){n=new URLSearchParams(n);for(let l of n.keys()){r.searchParams.delete(l);for(let i of n.getAll(l))r.searchParams.append(l,i)}}else{let l=Object.assign({},e.query,n);for(let i in l){let s=l[i];if(Array.isArray(s)){r.searchParams.delete(i);for(let a of s)r.searchParams.append(i,a)}else r.searchParams.set(i,s)}}return r}});var KF=C((sxe,U8)=>{"use strict";var{Readable:GF,addAbortSignal:u8e}=require("node:stream"),By=require("node:util"),c8e=BF(),f8e=require("node:assert"),XF=HF()(),p8e=zF(),{EventEmitter:d8e}=require("node:events");XF.create("FastifyDeprecationLightMyRequest","FST_LIGHTMYREQUEST_DEP01",'You are accessing "request.connection", use "request.socket" instead.');function h8e(t){return t.port?t.host:t.hostname+(t.protocol==="https:"?":443":":80")}var Uy=class extends d8e{constructor(e){super(),this.remoteAddress=e}};function WF(t){return new e(this);function e(n){Si.call(n,{...t,Request:void 0}),Object.assign(this,n);for(let r of Object.keys(Si.prototype))this.constructor.prototype[r]=Si.prototype[r];return By.inherits(this.constructor,t.Request),this}}function Si(t){GF.call(this,{autoDestroy:!1});let e=p8e(t.url||t.path,t.query);this.url=e.pathname+e.search,this.aborted=!1,this.httpVersionMajor=1,this.httpVersionMinor=1,this.httpVersion="1.1",this.method=t.method?t.method.toUpperCase():"GET",this.headers={},this.rawHeaders=[];let n=t.headers||{};for(let s in n){let a=s.toLowerCase();if((a==="user-agent"||a==="content-type")&&n[s]===void 0){this.headers[a]=void 0;continue}let o=n[s];f8e(o!==void 0,'invalid value "undefined" for header '+s),this.headers[a]=""+o}if("user-agent"in this.headers||(this.headers["user-agent"]="lightMyRequest"),this.headers.host=this.headers.host||t.authority||h8e(e),t.cookies){let{cookies:s}=t,a=Object.keys(s).map(o=>c8e.serialize(o,s[o]));this.headers.cookie&&a.unshift(this.headers.cookie),this.headers.cookie=a.join("; ")}this.socket=new Uy(t.remoteAddress||"127.0.0.1"),Object.defineProperty(this,"connection",{get(){return XF.emit("FST_LIGHTMYREQUEST_DEP01"),this.socket},configurable:!0});let r=t.payload||t.body||null,l=r&&typeof r.resume=="function";r&&typeof r!="string"&&!l&&!Buffer.isBuffer(r)&&(r=JSON.stringify(r),"content-type"in this.headers||(this.headers["content-type"]="application/json")),r&&!l&&!Object.prototype.hasOwnProperty.call(this.headers,"content-length")&&(this.headers["content-length"]=(Buffer.isBuffer(r)?r.length:Buffer.byteLength(r)).toString());for(let s of Object.keys(this.headers))this.rawHeaders.push(s,this.headers[s]);this._lightMyRequest={payload:r,isDone:!1,simulate:t.simulate||{}};let i=t.signal;return i&&u8e(i,this),this}By.inherits(Si,GF);By.inherits(WF,Si);Si.prototype.prepare=function(t){let e=this._lightMyRequest.payload;if(!e||typeof e.resume!="function")return t();let n=[];e.on("data",r=>n.push(Buffer.from(r))),e.on("end",()=>{let r=Buffer.concat(n);return this.headers["content-length"]=this.headers["content-length"]||""+r.length,this._lightMyRequest.payload=r,t()}),e.resume()};Si.prototype._read=function(t){setImmediate(()=>{if(this._lightMyRequest.isDone){this._lightMyRequest.simulate.end!==!1&&this.push(null);return}this._lightMyRequest.isDone=!0,this._lightMyRequest.payload&&(this._lightMyRequest.simulate.split?(this.push(this._lightMyRequest.payload.slice(0,1)),this.push(this._lightMyRequest.payload.slice(1))):this.push(this._lightMyRequest.payload)),this._lightMyRequest.simulate.error&&this.emit("error",new Error("Simulated")),this._lightMyRequest.simulate.close&&this.emit("close"),this._lightMyRequest.simulate.end!==!1&&this.push(null)})};Si.prototype.destroy=function(t){this.destroyed||this._lightMyRequest.isDone||(this.destroyed=!0,t&&(this._error=!0,process.nextTick(()=>this.emit("error",t))),process.nextTick(()=>this.emit("close")))};U8.exports=Si;U8.exports.Request=Si;U8.exports.CustomRequest=WF});var JF=C((axe,o0)=>{"use strict";var Su={decodeValues:!0,map:!1,silent:!1};function Hy(t){return typeof t=="string"&&!!t.trim()}function qy(t,e){var n=t.split(";").filter(Hy),r=n.shift(),l=m8e(r),i=l.name,s=l.value;e=e?Object.assign({},Su,e):Su;try{s=e.decodeValues?decodeURIComponent(s):s}catch(o){console.error("set-cookie-parser encountered an error while decoding a cookie with value '"+s+"'. Set options.decodeValues to false to disable this feature.",o)}var a={name:i,value:s};return n.forEach(function(o){var f=o.split("="),c=f.shift().trimLeft().toLowerCase(),p=f.join("=");c==="expires"?a.expires=new Date(p):c==="max-age"?a.maxAge=parseInt(p,10):c==="secure"?a.secure=!0:c==="httponly"?a.httpOnly=!0:c==="samesite"?a.sameSite=p:a[c]=p}),a}function m8e(t){var e="",n="",r=t.split("=");return r.length>1?(e=r.shift(),n=r.join("=")):n=t,{name:e,value:n}}function YF(t,e){if(e=e?Object.assign({},Su,e):Su,!t)return e.map?{}:[];if(t.headers)if(typeof t.headers.getSetCookie=="function")t=t.headers.getSetCookie();else if(t.headers["set-cookie"])t=t.headers["set-cookie"];else{var n=t.headers[Object.keys(t.headers).find(function(l){return l.toLowerCase()==="set-cookie"})];!n&&t.headers.cookie&&!e.silent&&console.warn("Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning."),t=n}if(Array.isArray(t)||(t=[t]),e=e?Object.assign({},Su,e):Su,e.map){var r={};return t.filter(Hy).reduce(function(l,i){var s=qy(i,e);return l[s.name]=s,l},r)}else return t.filter(Hy).map(function(l){return qy(l,e)})}function g8e(t){if(Array.isArray(t))return t;if(typeof t!="string")return[];var e=[],n=0,r,l,i,s,a;function o(){for(;n=t.length)&&e.push(t.substring(r,t.length))}return e}o0.exports=YF;o0.exports.parse=YF;o0.exports.parseString=qy;o0.exports.splitCookiesString=g8e});var eM=C((oxe,ZF)=>{"use strict";var u0=require("node:http"),{Writable:y8e}=require("node:stream"),v8e=require("node:util"),_8e=JF();function ns(t,e,n){u0.ServerResponse.call(this,t),this._lightMyRequest={headers:null,trailers:{},payloadChunks:[]},this.setHeader("foo","bar"),this.removeHeader("foo"),this.assignSocket(b8e()),this._promiseCallback=typeof n=="function";let r=!1,l=s=>{if(r=!0,this._promiseCallback)return process.nextTick(()=>e(s));process.nextTick(()=>e(null,s))},i=s=>{if(!r){if(r=!0,this._promiseCallback)return process.nextTick(()=>n(s));process.nextTick(()=>e(s,null))}};this.once("finish",()=>{let s=E8e(this);s.raw.req=t,l(s)}),this.connection.once("error",i),this.once("error",i),this.once("close",i)}v8e.inherits(ns,u0.ServerResponse);ns.prototype.setTimeout=function(t,e){return this.timeoutHandle=setTimeout(()=>{this.emit("timeout")},t),this.on("timeout",e),this};ns.prototype.writeHead=function(){let t=u0.ServerResponse.prototype.writeHead.apply(this,arguments);return QF(this),t};ns.prototype.write=function(t,e,n){return this.timeoutHandle&&clearTimeout(this.timeoutHandle),u0.ServerResponse.prototype.write.call(this,t,e,n),this._lightMyRequest.payloadChunks.push(Buffer.from(t,e)),!0};ns.prototype.end=function(t,e,n){t&&this.write(t,e),u0.ServerResponse.prototype.end.call(this,n),this.emit("finish"),this.destroy()};ns.prototype.destroy=function(t){this.destroyed||(this.destroyed=!0,t&&process.nextTick(()=>this.emit("error",t)),process.nextTick(()=>this.emit("close")))};ns.prototype.addTrailers=function(t){for(let e in t)this._lightMyRequest.trailers[e.toLowerCase().trim()]=t[e].toString().trim()};function E8e(t){t._lightMyRequest.headers===null&&QF(t),T8e(t);let e={raw:{res:t},headers:t._lightMyRequest.headers,statusCode:t.statusCode,statusMessage:t.statusMessage,trailers:{},get cookies(){return _8e.parse(this)}},n=Buffer.concat(t._lightMyRequest.payloadChunks);return e.rawPayload=n,e.payload=n.toString(),e.body=e.payload,e.trailers=t._lightMyRequest.trailers,e.json=function(){return JSON.parse(e.payload)},e}function b8e(){return new y8e({write(t,e,n){setImmediate(n)}})}function T8e(t){let e=t._lightMyRequest.headers;for(let n of Object.keys(e)){let r=e[n];Array.isArray(r)?e[n]=r.map(l=>""+l):e[n]=""+r}}function QF(t){t._lightMyRequest.headers=Object.assign({},t.getHeaders()),["Date","Connection","Transfer-Encoding"].forEach(e=>{let n=new RegExp("\\r\\n"+e+": ([^\\r]*)\\r\\n"),r=t._header.match(n);r&&(t._lightMyRequest.headers[e.toLowerCase()]=r[1])})}ZF.exports=ns});var tM=C((uxe,Vy)=>{"use strict";Vy.exports=dr;Vy.exports.default=dr;var S8e={type:"object",properties:{url:{oneOf:[{type:"string"},{type:"object",properties:{protocol:{type:"string"},hostname:{type:"string"},pathname:{type:"string"}},additionalProperties:!0,required:["pathname"]}]},path:{oneOf:[{type:"string"},{type:"object",properties:{protocol:{type:"string"},hostname:{type:"string"},pathname:{type:"string"}},additionalProperties:!0,required:["pathname"]}]},cookies:{type:"object",additionalProperties:!0},headers:{type:"object",additionalProperties:!0},query:{anyOf:[{type:"object",additionalProperties:!0},{type:"string"}]},simulate:{type:"object",properties:{end:{type:"boolean"},split:{type:"boolean"},error:{type:"boolean"},close:{type:"boolean"}}},authority:{type:"string"},remoteAddress:{type:"string"},method:{type:"string",enum:["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE","acl","bind","checkout","connect","copy","delete","get","head","link","lock","m-search","merge","mkactivity","mkcalendar","mkcol","move","notify","options","patch","post","propfind","proppatch","purge","put","rebind","report","search","source","subscribe","trace","unbind","unlink","unlock","unsubscribe"]},validate:{type:"boolean"}},additionalProperties:!0,oneOf:[{required:["url"]},{required:["path"]}]};function dr(t,{instancePath:e="",parentData:n,parentDataProperty:r,rootData:l=t}={}){let i=null,s=0,a=s,o=!1,f=null,c=s;if(t&&typeof t=="object"&&!Array.isArray(t)){let b;if(t.url===void 0&&(b="url")){let w={instancePath:e,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty:b},message:"must have required property '"+b+"'"};i===null?i=[w]:i.push(w),s++}}var m=c===s;m&&(o=!0,f=0);let p=s;if(t&&typeof t=="object"&&!Array.isArray(t)){let b;if(t.path===void 0&&(b="path")){let w={instancePath:e,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:b},message:"must have required property '"+b+"'"};i===null?i=[w]:i.push(w),s++}}var m=p===s;if(m&&o?(o=!1,f=[f,1]):m&&(o=!0,f=1),o)s=a,i!==null&&(a?i.length=a:i=null);else{let b={instancePath:e,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:f},message:"must match exactly one schema in oneOf"};return i===null?i=[b]:i.push(b),s++,dr.errors=i,!1}if(s===0)if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.url!==void 0){let b=t.url,w=s,N=s,O=!1,k=null,$=s;if(typeof b!="string"){let J=typeof b,K;if(K===void 0)if(J=="number"||J=="boolean")K=""+b;else if(b===null)K="";else{let Q={instancePath:e+"/url",schemaPath:"#/properties/url/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[Q]:i.push(Q),s++}K!==void 0&&(b=K,t!==void 0&&(t.url=K))}var g=$===s;g&&(O=!0,k=0);let L=s;if(s===L)if(b&&typeof b=="object"&&!Array.isArray(b)){let J;if(b.pathname===void 0&&(J="pathname")){let K={instancePath:e+"/url",schemaPath:"#/properties/url/oneOf/1/required",keyword:"required",params:{missingProperty:J},message:"must have required property '"+J+"'"};i===null?i=[K]:i.push(K),s++}else{if(b.protocol!==void 0){let K=b.protocol,Q=s;if(typeof K!="string"){let ye=typeof K,Oe;if(Oe===void 0)if(ye=="number"||ye=="boolean")Oe=""+K;else if(K===null)Oe="";else{let fe={instancePath:e+"/url/protocol",schemaPath:"#/properties/url/oneOf/1/properties/protocol/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[fe]:i.push(fe),s++}Oe!==void 0&&(K=Oe,b!==void 0&&(b.protocol=Oe))}var h=Q===s}else var h=!0;if(h){if(b.hostname!==void 0){let K=b.hostname,Q=s;if(typeof K!="string"){let Oe=typeof K,fe;if(fe===void 0)if(Oe=="number"||Oe=="boolean")fe=""+K;else if(K===null)fe="";else{let se={instancePath:e+"/url/hostname",schemaPath:"#/properties/url/oneOf/1/properties/hostname/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[se]:i.push(se),s++}fe!==void 0&&(K=fe,b!==void 0&&(b.hostname=fe))}var h=Q===s}else var h=!0;if(h)if(b.pathname!==void 0){let K=b.pathname,Q=s;if(typeof K!="string"){let Oe=typeof K,fe;if(fe===void 0)if(Oe=="number"||Oe=="boolean")fe=""+K;else if(K===null)fe="";else{let se={instancePath:e+"/url/pathname",schemaPath:"#/properties/url/oneOf/1/properties/pathname/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[se]:i.push(se),s++}fe!==void 0&&(K=fe,b!==void 0&&(b.pathname=fe))}var h=Q===s}else var h=!0}}}else{let J={instancePath:e+"/url",schemaPath:"#/properties/url/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[J]:i.push(J),s++}var g=L===s;if(g&&O?(O=!1,k=[k,1]):g&&(O=!0,k=1),O)s=N,i!==null&&(N?i.length=N:i=null);else{let J={instancePath:e+"/url",schemaPath:"#/properties/url/oneOf",keyword:"oneOf",params:{passingSchemas:k},message:"must match exactly one schema in oneOf"};return i===null?i=[J]:i.push(J),s++,dr.errors=i,!1}var _=w===s}else var _=!0;if(_){if(t.path!==void 0){let b=t.path,w=s,N=s,O=!1,k=null,$=s;if(typeof b!="string"){let K=typeof b,Q;if(Q===void 0)if(K=="number"||K=="boolean")Q=""+b;else if(b===null)Q="";else{let ye={instancePath:e+"/path",schemaPath:"#/properties/path/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[ye]:i.push(ye),s++}Q!==void 0&&(b=Q,t!==void 0&&(t.path=Q))}var T=$===s;T&&(O=!0,k=0);let L=s;if(s===L)if(b&&typeof b=="object"&&!Array.isArray(b)){let K;if(b.pathname===void 0&&(K="pathname")){let Q={instancePath:e+"/path",schemaPath:"#/properties/path/oneOf/1/required",keyword:"required",params:{missingProperty:K},message:"must have required property '"+K+"'"};i===null?i=[Q]:i.push(Q),s++}else{if(b.protocol!==void 0){let Q=b.protocol,ye=s;if(typeof Q!="string"){let Oe=typeof Q,fe;if(fe===void 0)if(Oe=="number"||Oe=="boolean")fe=""+Q;else if(Q===null)fe="";else{let se={instancePath:e+"/path/protocol",schemaPath:"#/properties/path/oneOf/1/properties/protocol/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[se]:i.push(se),s++}fe!==void 0&&(Q=fe,b!==void 0&&(b.protocol=fe))}var S=ye===s}else var S=!0;if(S){if(b.hostname!==void 0){let Q=b.hostname,ye=s;if(typeof Q!="string"){let fe=typeof Q,se;if(se===void 0)if(fe=="number"||fe=="boolean")se=""+Q;else if(Q===null)se="";else{let ge={instancePath:e+"/path/hostname",schemaPath:"#/properties/path/oneOf/1/properties/hostname/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[ge]:i.push(ge),s++}se!==void 0&&(Q=se,b!==void 0&&(b.hostname=se))}var S=ye===s}else var S=!0;if(S)if(b.pathname!==void 0){let Q=b.pathname,ye=s;if(typeof Q!="string"){let fe=typeof Q,se;if(se===void 0)if(fe=="number"||fe=="boolean")se=""+Q;else if(Q===null)se="";else{let ge={instancePath:e+"/path/pathname",schemaPath:"#/properties/path/oneOf/1/properties/pathname/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[ge]:i.push(ge),s++}se!==void 0&&(Q=se,b!==void 0&&(b.pathname=se))}var S=ye===s}else var S=!0}}}else{let K={instancePath:e+"/path",schemaPath:"#/properties/path/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[K]:i.push(K),s++}var T=L===s;if(T&&O?(O=!1,k=[k,1]):T&&(O=!0,k=1),O)s=N,i!==null&&(N?i.length=N:i=null);else{let K={instancePath:e+"/path",schemaPath:"#/properties/path/oneOf",keyword:"oneOf",params:{passingSchemas:k},message:"must match exactly one schema in oneOf"};return i===null?i=[K]:i.push(K),s++,dr.errors=i,!1}var _=w===s}else var _=!0;if(_){if(t.cookies!==void 0){let b=t.cookies,w=s;if(s===w&&!(b&&typeof b=="object"&&!Array.isArray(b)))return dr.errors=[{instancePath:e+"/cookies",schemaPath:"#/properties/cookies/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var _=w===s}else var _=!0;if(_){if(t.headers!==void 0){let b=t.headers,w=s;if(s===w&&!(b&&typeof b=="object"&&!Array.isArray(b)))return dr.errors=[{instancePath:e+"/headers",schemaPath:"#/properties/headers/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var _=w===s}else var _=!0;if(_){if(t.query!==void 0){let b=t.query,w=s,N=s,O=!1,k=s;if(s===k&&!(b&&typeof b=="object"&&!Array.isArray(b))){let L={instancePath:e+"/query",schemaPath:"#/properties/query/anyOf/0/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[L]:i.push(L),s++}var x=k===s;if(O=O||x,!O){let L=s;if(typeof b!="string"){let K=typeof b,Q;if(Q===void 0)if(K=="number"||K=="boolean")Q=""+b;else if(b===null)Q="";else{let ye={instancePath:e+"/query",schemaPath:"#/properties/query/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[ye]:i.push(ye),s++}Q!==void 0&&(b=Q,t!==void 0&&(t.query=Q))}var x=L===s;O=O||x}if(O)s=N,i!==null&&(N?i.length=N:i=null);else{let L={instancePath:e+"/query",schemaPath:"#/properties/query/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[L]:i.push(L),s++,dr.errors=i,!1}var _=w===s}else var _=!0;if(_){if(t.simulate!==void 0){let b=t.simulate,w=s;if(s===w)if(b&&typeof b=="object"&&!Array.isArray(b)){if(b.end!==void 0){let O=b.end,k=s;if(typeof O!="boolean"){let $;if($===void 0)if(O==="false"||O===0||O===null)$=!1;else if(O==="true"||O===1)$=!0;else return dr.errors=[{instancePath:e+"/simulate/end",schemaPath:"#/properties/simulate/properties/end/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;$!==void 0&&(O=$,b!==void 0&&(b.end=$))}var v=k===s}else var v=!0;if(v){if(b.split!==void 0){let O=b.split,k=s;if(typeof O!="boolean"){let L;if(L===void 0)if(O==="false"||O===0||O===null)L=!1;else if(O==="true"||O===1)L=!0;else return dr.errors=[{instancePath:e+"/simulate/split",schemaPath:"#/properties/simulate/properties/split/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;L!==void 0&&(O=L,b!==void 0&&(b.split=L))}var v=k===s}else var v=!0;if(v){if(b.error!==void 0){let O=b.error,k=s;if(typeof O!="boolean"){let L;if(L===void 0)if(O==="false"||O===0||O===null)L=!1;else if(O==="true"||O===1)L=!0;else return dr.errors=[{instancePath:e+"/simulate/error",schemaPath:"#/properties/simulate/properties/error/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;L!==void 0&&(O=L,b!==void 0&&(b.error=L))}var v=k===s}else var v=!0;if(v)if(b.close!==void 0){let O=b.close,k=s;if(typeof O!="boolean"){let L;if(L===void 0)if(O==="false"||O===0||O===null)L=!1;else if(O==="true"||O===1)L=!0;else return dr.errors=[{instancePath:e+"/simulate/close",schemaPath:"#/properties/simulate/properties/close/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;L!==void 0&&(O=L,b!==void 0&&(b.close=L))}var v=k===s}else var v=!0}}}else return dr.errors=[{instancePath:e+"/simulate",schemaPath:"#/properties/simulate/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var _=w===s}else var _=!0;if(_){if(t.authority!==void 0){let b=t.authority,w=s;if(typeof b!="string"){let O=typeof b,k;if(k===void 0)if(O=="number"||O=="boolean")k=""+b;else if(b===null)k="";else return dr.errors=[{instancePath:e+"/authority",schemaPath:"#/properties/authority/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;k!==void 0&&(b=k,t!==void 0&&(t.authority=k))}var _=w===s}else var _=!0;if(_){if(t.remoteAddress!==void 0){let b=t.remoteAddress,w=s;if(typeof b!="string"){let O=typeof b,k;if(k===void 0)if(O=="number"||O=="boolean")k=""+b;else if(b===null)k="";else return dr.errors=[{instancePath:e+"/remoteAddress",schemaPath:"#/properties/remoteAddress/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;k!==void 0&&(b=k,t!==void 0&&(t.remoteAddress=k))}var _=w===s}else var _=!0;if(_){if(t.method!==void 0){let b=t.method,w=s;if(typeof b!="string"){let O=typeof b,k;if(k===void 0)if(O=="number"||O=="boolean")k=""+b;else if(b===null)k="";else return dr.errors=[{instancePath:e+"/method",schemaPath:"#/properties/method/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;k!==void 0&&(b=k,t!==void 0&&(t.method=k))}if(!(b==="ACL"||b==="BIND"||b==="CHECKOUT"||b==="CONNECT"||b==="COPY"||b==="DELETE"||b==="GET"||b==="HEAD"||b==="LINK"||b==="LOCK"||b==="M-SEARCH"||b==="MERGE"||b==="MKACTIVITY"||b==="MKCALENDAR"||b==="MKCOL"||b==="MOVE"||b==="NOTIFY"||b==="OPTIONS"||b==="PATCH"||b==="POST"||b==="PROPFIND"||b==="PROPPATCH"||b==="PURGE"||b==="PUT"||b==="REBIND"||b==="REPORT"||b==="SEARCH"||b==="SOURCE"||b==="SUBSCRIBE"||b==="TRACE"||b==="UNBIND"||b==="UNLINK"||b==="UNLOCK"||b==="UNSUBSCRIBE"||b==="acl"||b==="bind"||b==="checkout"||b==="connect"||b==="copy"||b==="delete"||b==="get"||b==="head"||b==="link"||b==="lock"||b==="m-search"||b==="merge"||b==="mkactivity"||b==="mkcalendar"||b==="mkcol"||b==="move"||b==="notify"||b==="options"||b==="patch"||b==="post"||b==="propfind"||b==="proppatch"||b==="purge"||b==="put"||b==="rebind"||b==="report"||b==="search"||b==="source"||b==="subscribe"||b==="trace"||b==="unbind"||b==="unlink"||b==="unlock"||b==="unsubscribe"))return dr.errors=[{instancePath:e+"/method",schemaPath:"#/properties/method/enum",keyword:"enum",params:{allowedValues:S8e.properties.method.enum},message:"must be equal to one of the allowed values"}],!1;var _=w===s}else var _=!0;if(_)if(t.validate!==void 0){let b=t.validate,w=s;if(typeof b!="boolean"){let O;if(O===void 0)if(b==="false"||b===0||b===null)O=!1;else if(b==="true"||b===1)O=!0;else return dr.errors=[{instancePath:e+"/validate",schemaPath:"#/properties/validate/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;O!==void 0&&(b=O,t!==void 0&&(t.validate=O))}var _=w===s}else var _=!0}}}}}}}}}else return dr.errors=[{instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return dr.errors=i,s===0}});var lM=C((cxe,f0)=>{"use strict";var x8e=require("node:assert"),zy=KF(),B8=eM(),q8="The dispatch function has already been invoked",nM=tM();function Gy(t,e,n){return typeof n>"u"?new c0(t,e):H8(t,e,n)}function rM(t,e,n,r){return n.once("error",function(l){this.destroyed&&r.destroy(l)}),n.once("close",function(){this.destroyed&&!this._error&&r.destroy()}),n.prepare(()=>t.call(e,n,r))}function H8(t,e,n){if(e=typeof e=="string"?{url:e}:e,e.validate!==!1&&(x8e(typeof t=="function","dispatchFunc should be a function"),!nM(e)))throw new Error(nM.errors.map(s=>s.message));let r=e.server||{},l=e.Request?zy.CustomRequest:zy;if(t.request&&t.request.app===t&&(Object.setPrototypeOf(Object.getPrototypeOf(t.request),l.prototype),Object.setPrototypeOf(Object.getPrototypeOf(t.response),B8.prototype)),typeof n=="function"){let i=new l(e),s=new B8(i,n);return rM(t,r,i,s)}else return new Promise((i,s)=>{let a=new l(e),o=new B8(a,i,s);rM(t,r,a,o)})}function c0(t,e){typeof e=="string"?this.option={url:e}:this.option=Object.assign({},e),this.dispatch=t,this._hasInvoked=!1,this._promise=null,this.option.autoStart!==!1&&process.nextTick(()=>{this._hasInvoked||this.end()})}var A8e=["delete","get","head","options","patch","post","put","trace"];A8e.forEach(t=>{c0.prototype[t]=function(e){if(this._hasInvoked===!0||this._promise)throw new Error(q8);return this.option.url=e,this.option.method=t.toUpperCase(),this}});var w8e=["body","cookies","headers","payload","query"];w8e.forEach(t=>{c0.prototype[t]=function(e){if(this._hasInvoked===!0||this._promise)throw new Error(q8);return this.option[t]=e,this}});c0.prototype.end=function(t){if(this._hasInvoked===!0||this._promise)throw new Error(q8);if(this._hasInvoked=!0,typeof t=="function")H8(this.dispatch,this.option,t);else return this._promise=H8(this.dispatch,this.option),this._promise};Object.getOwnPropertyNames(Promise.prototype).forEach(t=>{t!=="constructor"&&(c0.prototype[t]=function(...e){if(!this._promise){if(this._hasInvoked===!0)throw new Error(q8);this._hasInvoked=!0,this._promise=H8(this.dispatch,this.option)}return this._promise[t](...e)})});function R8e(t){return t instanceof zy||t instanceof B8||t&&t.constructor&&t.constructor.name==="_CustomLMRRequest"}f0.exports=Gy;f0.exports.default=Gy;f0.exports.inject=Gy;f0.exports.isInjection=R8e});var _M=C((fxe,X8)=>{"use strict";var O8e="4.26.0",N8e=px(),Xy=require("node:http"),p0,{kAvvioBoot:d0,kChildren:Wy,kServerBindings:iM,kBodyLimit:I8e,kRoutePrefix:sM,kLogLevel:C8e,kLogSerializers:k8e,kHooks:Ky,kSchemaController:rs,kRequestAcceptVersion:P8e,kReplySerializerDefault:aM,kContentTypeParser:D8e,kReply:L8e,kRequest:F8e,kFourOhFour:M8e,kState:or,kOptions:Yy,kPluginNameChain:h0,kSchemaErrorFormatter:Jy,kErrorHandler:V8,kKeepAliveConnections:Qy,kChildLoggerFactory:Zy,kGenReqId:ev}=Dr(),{createServer:$8e,compileValidateHTTPVersion:j8e}=Mx(),m0=U6(),z8=n8(),U8e=r8(),{supportedMethods:B8e}=tg(),xu=sg(),Ca=mg(),oM=ay(),{Hooks:H8e,hookRunnerApplication:uM,supportedHooks:tv}=D3(),{createLogger:q8e,createChildLogger:cM,defaultChildLoggerFactory:V8e}=X4(),fM=dy(),{getGenReqId:pM,reqIdGenFactory:dM}=S8(),{buildRouting:z8e,validateBodyLimitOption:G8e}=_F(),X8e=wF(),vM=NF(),W8e=$F(),{FSTDEP009:K8e}=e3(),Y8e=UF(),{appendStackTrace:J8e,AVVIO_ERRORS_MAP:hM,...ka}=il(),{defaultInitOptions:$l}=vM,{FST_ERR_ASYNC_CONSTRAINT:Q8e,FST_ERR_BAD_URL:Z8e,FST_ERR_FORCE_CLOSE_CONNECTIONS_IDLE_NOT_AVAILABLE:e9e,FST_ERR_OPTIONS_NOT_OBJ:t9e,FST_ERR_QSP_NOT_FN:n9e,FST_ERR_SCHEMA_CONTROLLER_BUCKET_OPT_NOT_FN:r9e,FST_ERR_AJV_CUSTOM_OPTIONS_OPT_NOT_OBJ:l9e,FST_ERR_AJV_CUSTOM_OPTIONS_OPT_NOT_ARR:i9e,FST_ERR_VERSION_CONSTRAINT_NOT_STR:s9e,FST_ERR_INSTANCE_ALREADY_LISTENING:a9e,FST_ERR_REOPENED_CLOSE_SERVER:o9e,FST_ERR_ROUTE_REWRITE_NOT_STR:u9e,FST_ERR_SCHEMA_ERROR_FORMATTER_NOT_FN:mM}=ka,{buildErrorHandler:gM}=w1();function c9e(t){let e={};return["errorHandler","logLevel","logSerializers"].concat(tv).forEach(r=>{e[r]=t.store[r]}),Object.assign({},e)}function G8(t){if(t=t||{},typeof t!="object")throw new t9e;if(t.querystringParser&&typeof t.querystringParser!="function")throw new n9e(typeof t.querystringParser);if(t.schemaController&&t.schemaController.bucket&&typeof t.schemaController.bucket!="function")throw new r9e(typeof t.schemaController.bucket);G8e(t.bodyLimit);let e=t.requestIdHeader===!1?!1:(t.requestIdHeader||$l.requestIdHeader).toLowerCase(),n=dM(e,t.genReqId),r=t.requestIdLogLabel||"reqId",l=t.bodyLimit||$l.bodyLimit,i=t.disableRequestLogging||!1,s=Object.assign({customOptions:{},plugins:[]},t.ajv),a=t.frameworkErrors;if(!s.customOptions||Object.prototype.toString.call(s.customOptions)!=="[object Object]")throw new l9e(typeof s.customOptions);if(!s.plugins||!Array.isArray(s.plugins))throw new i9e(typeof s.plugins);let{logger:o,hasLogger:f}=q8e(t);t.connectionTimeout=t.connectionTimeout||$l.connectionTimeout,t.keepAliveTimeout=t.keepAliveTimeout||$l.keepAliveTimeout,t.maxRequestsPerSocket=t.maxRequestsPerSocket||$l.maxRequestsPerSocket,t.requestTimeout=t.requestTimeout||$l.requestTimeout,t.logger=o,t.requestIdHeader=e,t.requestIdLogLabel=r,t.disableRequestLogging=i,t.ajv=s,t.clientErrorHandler=t.clientErrorHandler||se;let c=vM(t);t.exposeHeadRoutes=c.exposeHeadRoutes;let p=t.constraints;t.versioning&&(K8e(),p={...p,version:{name:"version",mustMatchWhenDerived:!0,storage:t.versioning.storage,deriveConstraint:t.versioning.deriveVersion,validate(Y){if(typeof Y!="string")throw new s9e}}});let m=z8e({config:{defaultRoute:ge,onBadUrl:H,constraints:p,ignoreTrailingSlash:t.ignoreTrailingSlash||$l.ignoreTrailingSlash,ignoreDuplicateSlashes:t.ignoreDuplicateSlashes||$l.ignoreDuplicateSlashes,maxParamLength:t.maxParamLength||$l.maxParamLength,caseSensitive:t.caseSensitive,allowUnsafeRegex:t.allowUnsafeRegex||$l.allowUnsafeRegex,buildPrettyMeta:c9e,querystringParser:t.querystringParser,useSemicolonDelimiter:t.useSemicolonDelimiter??$l.useSemicolonDelimiter}}),h=X8e(t),g=at(m,t);t.http2SessionTimeout=c.http2SessionTimeout;let{server:_,listen:S}=$8e(t,g),T=typeof _.closeAllConnections=="function",x=typeof _.closeIdleConnections=="function",v=t.forceCloseConnections;if(v==="idle"&&!x)throw new e9e;typeof v!="boolean"&&(v=x?"idle":!1);let b=!T&&v===!0?new Set:Y8e(),w=m0.setupResponseListeners,N=oM.buildSchemaController(null,t.schemaController),O={[or]:{listening:!1,closing:!1,started:!1,ready:!1,booting:!1,readyPromise:null},[Qy]:b,[Yy]:t,[Wy]:[],[iM]:[],[I8e]:l,[sM]:"",[C8e]:"",[k8e]:null,[Ky]:new H8e,[rs]:N,[Jy]:null,[V8]:gM(),[Zy]:V8e,[aM]:null,[D8e]:new Ca(l,t.onProtoPoisoning||$l.onProtoPoisoning,t.onConstructorPoisoning||$l.onConstructorPoisoning),[L8e]:m0.buildReply(m0),[F8e]:z8.buildRequest(z8,t.trustProxy),[M8e]:h,[fM.kRegisteredPlugins]:[],[h0]:["fastify"],[d0]:null,[ev]:n,routing:g,getDefaultRoute:m.getDefaultRoute.bind(m),setDefaultRoute:m.setDefaultRoute.bind(m),delete:function(he,Ee,je){return m.prepareRoute.call(this,{method:"DELETE",url:he,options:Ee,handler:je})},get:function(he,Ee,je){return m.prepareRoute.call(this,{method:"GET",url:he,options:Ee,handler:je})},head:function(he,Ee,je){return m.prepareRoute.call(this,{method:"HEAD",url:he,options:Ee,handler:je})},patch:function(he,Ee,je){return m.prepareRoute.call(this,{method:"PATCH",url:he,options:Ee,handler:je})},post:function(he,Ee,je){return m.prepareRoute.call(this,{method:"POST",url:he,options:Ee,handler:je})},put:function(he,Ee,je){return m.prepareRoute.call(this,{method:"PUT",url:he,options:Ee,handler:je})},options:function(he,Ee,je){return m.prepareRoute.call(this,{method:"OPTIONS",url:he,options:Ee,handler:je})},all:function(he,Ee,je){return m.prepareRoute.call(this,{method:B8e,url:he,options:Ee,handler:je})},route:function(he){return m.route.call(this,{options:he})},hasRoute:function(he){return m.hasRoute.call(this,{options:he})},findRoute:function(he){return m.findRoute(he)},log:o,withTypeProvider:ye,addHook:Oe,addSchema:fe,getSchema:N.getSchema.bind(N),getSchemas:N.getSchemas.bind(N),setValidatorCompiler:ee,setSerializerCompiler:xt,setSchemaController:Ve,setReplySerializer:Lt,setSchemaErrorFormatter:Fn,setGenReqId:ct,addContentTypeParser:Ca.helpers.addContentTypeParser,hasContentTypeParser:Ca.helpers.hasContentTypeParser,getDefaultJsonParser:Ca.defaultParsers.getDefaultJsonParser,defaultTextParser:Ca.defaultParsers.defaultTextParser,removeContentTypeParser:Ca.helpers.removeContentTypeParser,removeAllContentTypeParsers:Ca.helpers.removeAllContentTypeParsers,register:null,after:null,ready:null,onClose:null,close:null,printPlugins:null,hasPlugin:function(Y){return this[fM.kRegisteredPlugins].includes(Y)||this[h0].includes(Y)},listen:S,server:_,addresses:function(){let Y=this[iM].map(he=>he.address());return Y.push(this.server.address()),Y.filter(he=>he)},decorate:xu.add,hasDecorator:xu.exist,decorateReply:xu.decorateReply,decorateRequest:xu.decorateRequest,hasRequestDecorator:xu.existRequest,hasReplyDecorator:xu.existReply,inject:K,printRoutes:vn,setNotFoundHandler:ne,setErrorHandler:Xe,setChildLoggerFactory:ze,initialConfig:c,addConstraintStrategy:m.addConstraintStrategy.bind(m),hasConstraintStrategy:m.hasConstraintStrategy.bind(m)};Object.defineProperties(O,{listeningOrigin:{get(){let Y=this.addresses().slice(-1).pop();if(typeof Y=="string")return Y;let he=Y.family==="IPv6"?`[${Y.address}]`:Y.address;return`${this[Yy].https?"https":"http"}://${he}:${Y.port}`}},pluginName:{configurable:!0,get(){return this[h0].length>1?this[h0].join(" -> "):this[h0][0]}},prefix:{configurable:!0,get(){return this[sM]}},validatorCompiler:{configurable:!0,get(){return this[rs].getValidatorCompiler()}},serializerCompiler:{configurable:!0,get(){return this[rs].getSerializerCompiler()}},childLoggerFactory:{configurable:!0,get(){return this[Zy]}},version:{configurable:!0,get(){return O8e}},errorHandler:{configurable:!0,get(){return this[V8].func}},genReqId:{configurable:!0,get(){return this[ev]}}}),t.schemaErrorFormatter&&(yM(t.schemaErrorFormatter),O[Jy]=t.schemaErrorFormatter.bind(O));let k=Number(t.pluginTimeout),$=N8e(O,{autostart:!1,timeout:isNaN(k)===!1?k:$l.pluginTimeout,expose:{use:"register"}});$.override=W8e,$.on("start",()=>O[or].started=!0),O[d0]=O.ready,O.ready=Q,O.printPlugins=$.prettyPrint.bind($),$.once("preReady",()=>{O.onClose((Y,he)=>{O[or].closing=!0,m.closeRoutes(),uM("preClose",O[d0],O,function(){if(O[or].listening){if(v==="idle")Y.server.closeIdleConnections();else if(T&&v)Y.server.closeAllConnections();else if(v===!0)for(let Ee of O[Qy])Ee.destroy(),O[Qy].delete(Ee)}!t.serverFactory||O[or].listening?Y.server.close(function(Ee){Ee&&Ee.code!=="ERR_SERVER_NOT_RUNNING"?he(null):he()}):process.nextTick(he,null)})})});let L=new U8e({server:O,config:{}});O.setNotFoundHandler(),h.arrange404(O),m.setup(t,{avvio:$,fourOhFour:h,logger:o,hasLogger:f,setupResponseListeners:w,throwIfAlreadyStarted:J,validateHTTPVersion:j8e(t),keepAliveConnections:b}),_.on("clientError",t.clientErrorHandler.bind(O));try{let he=require("node:diagnostics_channel").channel("fastify.initialization");he.hasSubscribers&&he.publish({fastify:O})}catch{}return"asyncDispose"in Symbol&&(O[Symbol.asyncDispose]=function(){return O.close()}),O;function J(Y){if(O[or].started)throw new a9e(Y)}function K(Y,he){if(p0===void 0&&(p0=lM()),O[or].started){if(O[or].closing){let Ee=new o9e;if(he){he(Ee);return}else return Promise.reject(Ee)}return p0(g,Y,he)}if(he)this.ready(Ee=>{Ee?he(Ee,null):p0(g,Y,he)});else return p0((Ee,je)=>{this.ready(function(nt){if(nt){je.emit("error",nt);return}g(Ee,je)})},Y)}function Q(Y){if(this[or].readyPromise!==null){if(Y!=null){this[or].readyPromise.then(()=>Y(null,O),Y);return}return this[or].readyPromise}let he,Ee;if(process.nextTick(je),this[or].readyPromise=new Promise(function(Ie,At){he=Ie,Ee=At}),Y)this[or].readyPromise.then(()=>Y(null,O),Y);else return this[or].readyPromise;function je(){O[d0]((Ie,At)=>{Ie||O[or].started||O[or].ready||O[or].booting?nt(Ie):(O[or].booting=!0,uM("onReady",O[d0],O,nt)),At()})}function nt(Ie){if(Ie=Ie!=null&&hM[Ie.code]!=null?J8e(Ie,new hM[Ie.code](Ie.message)):Ie,Ie)return Ee(Ie);he(O),O[or].booting=!1,O[or].ready=!0,O[or].promise=null}}function ye(){return this}function Oe(Y,he){if(J('Cannot call "addHook"!'),he==null)throw new ka.FST_ERR_HOOK_INVALID_HANDLER(Y,he);if(Y==="onSend"||Y==="preSerialization"||Y==="onError"||Y==="preParsing"){if(he.constructor.name==="AsyncFunction"&&he.length===4)throw new ka.FST_ERR_HOOK_INVALID_ASYNC_HANDLER}else if(Y==="onReady"||Y==="onListen"){if(he.constructor.name==="AsyncFunction"&&he.length!==0)throw new ka.FST_ERR_HOOK_INVALID_ASYNC_HANDLER}else if(Y==="onRequestAbort"){if(he.constructor.name==="AsyncFunction"&&he.length!==1)throw new ka.FST_ERR_HOOK_INVALID_ASYNC_HANDLER}else if(he.constructor.name==="AsyncFunction"&&he.length===3)throw new ka.FST_ERR_HOOK_INVALID_ASYNC_HANDLER;return Y==="onClose"?this.onClose(he):Y==="onReady"||Y==="onListen"||Y==="onRoute"?this[Ky].add(Y,he):this.after((je,nt)=>{Ee.call(this,Y,he),nt(je)}),this;function Ee(je,nt){this[Ky].add(je,nt),this[Wy].forEach(Ie=>Ee.call(Ie,je,nt))}}function fe(Y){return J('Cannot call "addSchema"!'),this[rs].add(Y),this[Wy].forEach(he=>he.addSchema(Y)),this}function se(Y,he){if(Y.code==="ECONNRESET"||he.destroyed)return;let Ee,je,nt,Ie;Y.code==="ERR_HTTP_REQUEST_TIMEOUT"?(je="408",nt=Xy.STATUS_CODES[je],Ee=`{"error":"${nt}","message":"Client Timeout","statusCode":408}`,Ie="timeout"):Y.code==="HPE_HEADER_OVERFLOW"?(je="431",nt=Xy.STATUS_CODES[je],Ee=`{"error":"${nt}","message":"Exceeded maximum allowed HTTP header size","statusCode":431}`,Ie="header_overflow"):(je="400",nt=Xy.STATUS_CODES[je],Ee=`{"error":"${nt}","message":"Client Error","statusCode":400}`,Ie="error"),this.log.trace({err:Y},`client ${Ie}`),he.writable&&he.write(`HTTP/1.1 ${je} ${nt}\r
-Content-Length: ${Ee.length}\r
+`))}};uF.exports=By});var pF=C((pAe,fF)=>{"use strict";var N6e=cF(),K8={STATIC:0,PARAMETRIC:1,WILDCARD:2},V8=class{constructor(){this.isLeafNode=!1,this.routes=null,this.handlerStorage=null}addRoute(e,n){this.routes===null&&(this.routes=[]),this.handlerStorage===null&&(this.handlerStorage=new N6e),this.isLeafNode=!0,this.routes.push(e),this.handlerStorage.addHandler(n,e)}},z8=class extends V8{constructor(){super(),this.staticChildren={}}findStaticMatchingChild(e,n){let r=this.staticChildren[e.charAt(n)];return r===void 0||!r.matchPrefix(e,n)?null:r}getStaticChild(e,n=0){if(e.length===n)return this;let r=this.findStaticMatchingChild(e,n);return r?r.getStaticChild(e,n+r.prefix.length):null}createStaticChild(e){if(e.length===0)return this;let n=this.staticChildren[e.charAt(0)];if(n){let l=1;for(;l(l.regex&&l.regex.source)===n);return r||null}createParametricChild(e,n,r){let l=this.getParametricChild(e);return l?(l.nodePaths.add(r),l):(l=new X8(e,n,r),this.parametricChildren.push(l),this.parametricChildren.sort((i,s)=>i.isRegex?s.isRegex?i.staticSuffix===null?1:s.staticSuffix===null?-1:s.staticSuffix.endsWith(i.staticSuffix)?1:i.staticSuffix.endsWith(s.staticSuffix)?-1:0:-1:1),l)}getWildcardChild(){return this.wildcardChild?this.wildcardChild:null}createWildcardChild(){return this.wildcardChild=this.getWildcardChild()||new W8,this.wildcardChild}split(e,n){let r=this.prefix.slice(0,n),l=this.prefix.slice(n);this.prefix=l,this._compilePrefixMatch();let i=new t(r);return i.staticChildren[l.charAt(0)]=this,e.staticChildren[r.charAt(0)]=i,i}getNextNode(e,n,r,l){let i=this.findStaticMatchingChild(e,n),s=0;if(i===null){if(this.parametricChildren.length===0)return this.wildcardChild;i=this.parametricChildren[0],s=1}this.wildcardChild!==null&&r.push({paramsCount:l,brotherPathIndex:n,brotherNode:this.wildcardChild});for(let a=this.parametricChildren.length-1;a>=s;a--)r.push({paramsCount:l,brotherPathIndex:n,brotherNode:this.parametricChildren[a]});return i}_compilePrefixMatch(){if(this.prefix.length===1){this.matchPrefix=()=>!0;return}let e=[];for(let n=1;n{"use strict";var I6e=require("assert");function h0(){if(!(this instanceof h0))return new h0;this.store={},this.maxMajor=0,this.maxMinors={},this.maxPatches={}}h0.prototype.set=function(t,e){if(typeof t!="string")throw new TypeError("Version should be a string");let[n,r,l]=t.split(".");return n=Number(n)||0,r=Number(r)||0,l=Number(l)||0,n>=this.maxMajor&&(this.maxMajor=n,this.store.x=e,this.store["*"]=e,this.store["x.x"]=e,this.store["x.x.x"]=e),r>=(this.maxMinors[n]||0)&&(this.maxMinors[n]=r,this.store[`${n}.x`]=e,this.store[`${n}.x.x`]=e),l>=(this.store[`${n}.${r}`]||0)&&(this.maxPatches[`${n}.${r}`]=l,this.store[`${n}.${r}.x`]=e),this.store[`${n}.${r}.${l}`]=e,this};h0.prototype.get=function(t){return this.store[t]};dF.exports={name:"version",mustMatchWhenDerived:!0,storage:h0,validate(t){I6e(typeof t=="string","Version should be a string")}}});var gF=C((hAe,mF)=>{"use strict";var C6e=require("assert");function k6e(){let t={},e=[];return{get:n=>{let r=t[n];if(r)return r;for(let l of e)if(l.host.test(n))return l.value},set:(n,r)=>{n instanceof RegExp?e.push({host:n,value:r}):t[n]=r}}}mF.exports={name:"host",mustMatchWhenDerived:!1,storage:k6e,validate(t){C6e(typeof t=="string"||Object.prototype.toString.call(t)==="[object RegExp]","Host should be a string or a RegExp")}}});var vF=C((mAe,yF)=>{"use strict";var P6e=hF(),D6e=gF(),Hy=require("assert"),qy=class{constructor(e){if(this.strategies={version:P6e,host:D6e},this.strategiesInUse=new Set,this.asyncStrategiesInUse=new Set,e)for(let n of Object.values(e))this.addConstraintStrategy(n)}isStrategyUsed(e){return this.strategiesInUse.has(e)||this.asyncStrategiesInUse.has(e)}hasConstraintStrategy(e){let n=this.strategies[e];return n!==void 0?n.isCustom||this.isStrategyUsed(e):!1}addConstraintStrategy(e){if(Hy(typeof e.name=="string"&&e.name!=="","strategy.name is required."),Hy(e.storage&&typeof e.storage=="function","strategy.storage function is required."),Hy(e.deriveConstraint&&typeof e.deriveConstraint=="function","strategy.deriveConstraint function is required."),this.strategies[e.name]&&this.strategies[e.name].isCustom)throw new Error(`There already exists a custom constraint with the name ${e.name}.`);if(this.isStrategyUsed(e.name))throw new Error(`There already exists a route with ${e.name} constraint.`);e.isCustom=!0,e.isAsync=e.deriveConstraint.length===3,this.strategies[e.name]=e,e.mustMatchWhenDerived&&this.noteUsage({[e.name]:e})}deriveConstraints(e,n,r){let l=this.deriveSyncConstraints(e,n);if(r===void 0)return l;this.deriveAsyncConstraints(l,e,n,r)}deriveSyncConstraints(e,n){}noteUsage(e){if(e){let n=this.strategiesInUse.size;for(let r in e)this.strategies[r].isAsync?this.asyncStrategiesInUse.add(r):this.strategiesInUse.add(r);n!==this.strategiesInUse.size&&this._buildDeriveConstraints()}}newStoreForConstraint(e){if(!this.strategies[e])throw new Error(`No strategy registered for constraint key ${e}`);return this.strategies[e].storage()}validateConstraints(e){for(let n in e){let r=e[n];if(typeof r>"u")throw new Error("Can't pass an undefined constraint value, must pass null or no key at all");let l=this.strategies[n];if(!l)throw new Error(`No strategy registered for constraint key ${n}`);l.validate&&l.validate(r)}}deriveAsyncConstraints(e,n,r,l){let i=this.asyncStrategiesInUse.size;if(i===0){l(null,e);return}e=e||{};for(let s of this.asyncStrategiesInUse)this.strategies[s].deriveConstraint(n,r,(o,c)=>{if(o!==null){l(o);return}e[s]=c,--i===0&&l(null,e)})}_buildDeriveConstraints(){if(this.strategiesInUse.size===0)return;let e=["return {"];for(let n of this.strategiesInUse){let r=this.strategies[n];if(r.isCustom)e.push(` ${r.name}: this.strategies.${n}.deriveConstraint(req, ctx),`);else if(n==="version")e.push(" version: req.headers['accept-version'],");else if(n==="host")e.push(" host: req.headers.host || req.headers[':authority'],");else throw new Error("unknown non-custom strategy for compiling constraint derivation function")}e.push("}"),this.deriveSyncConstraints=new Function("req","ctx",e.join(`
+`)).bind(this)}};yF.exports=qy});var EF=C((gAe,_F)=>{"use strict";var L6e=["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE"];_F.exports=L6e});var SF=C((yAe,TF)=>{"use strict";function bF(t,e){return t===50?e===53?"%":e===51?"#":e===52?"$":e===54?"&":e===66||e===98?"+":e===67||e===99?",":e===70||e===102?"/":null:t===51?e===65||e===97?":":e===66||e===98?";":e===68||e===100?"=":e===70||e===102?"?":null:t===52&&e===48?"@":null}function F6e(t,e){let n=!1,r=!1,l="";for(let s=1;s{"use strict";var ur=require("assert"),$6e=VL(),Y8=eF(),Gy=Yo(),{prettyPrintTree:j6e}=oF(),{StaticNode:xF,NODE_TYPES:Vy}=pF(),U6e=vF(),Ou=EF(),zy=H8(),{safeDecodeURI:B6e,safeDecodeURIComponent:AF}=SF(),wF=/^https?:\/\/.*?\//,La=/(\/:[^/()]*?)\?(\/?)/;if(!Y8(wF))throw new Error("the FULL_PATH_REGEXP is not safe, update this module");if(!Y8(La))throw new Error("the OPTIONAL_PARAM_REGEXP is not safe, update this module");function zn(t){if(!(this instanceof zn))return new zn(t);t=t||{},this._opts=t,t.defaultRoute?(ur(typeof t.defaultRoute=="function","The default route must be a function"),this.defaultRoute=t.defaultRoute):this.defaultRoute=null,t.onBadUrl?(ur(typeof t.onBadUrl=="function","The bad url handler must be a function"),this.onBadUrl=t.onBadUrl):this.onBadUrl=null,t.buildPrettyMeta?(ur(typeof t.buildPrettyMeta=="function","buildPrettyMeta must be a function"),this.buildPrettyMeta=t.buildPrettyMeta):this.buildPrettyMeta=H6e,t.querystringParser?(ur(typeof t.querystringParser=="function","querystringParser must be a function"),this.querystringParser=t.querystringParser):this.querystringParser=e=>e===""?{}:$6e.parse(e),this.caseSensitive=t.caseSensitive===void 0?!0:t.caseSensitive,this.ignoreTrailingSlash=t.ignoreTrailingSlash||!1,this.ignoreDuplicateSlashes=t.ignoreDuplicateSlashes||!1,this.maxParamLength=t.maxParamLength||100,this.allowUnsafeRegex=t.allowUnsafeRegex||!1,this.constrainer=new U6e(t.constraints),this.useSemicolonDelimiter=t.useSemicolonDelimiter||!1,this.routes=[],this.trees={}}zn.prototype.on=function(e,n,r,l,i){typeof r=="function"&&(l!==void 0&&(i=l),l=r,r={}),ur(typeof n=="string","Path should be a string"),ur(n.length>0,"The path could not be empty"),ur(n[0]==="/"||n[0]==="*","The first character of a path should be `/` or `*`"),ur(typeof l=="function","Handler should be a function");let s=n.match(La);if(s){ur(n.length===s.index+s[0].length,"Optional Parameter needs to be the last parameter of the path");let c=n.replace(La,"$1$2"),f=n.replace(La,"$2");this.on(e,c,r,l,i),this.on(e,f,r,l,i);return}let a=n;this.ignoreDuplicateSlashes&&(n=Xy(n)),this.ignoreTrailingSlash&&(n=Wy(n));let o=Array.isArray(e)?e:[e];for(let c of o)ur(typeof c=="string","Method should be a string"),ur(Ou.includes(c),`Method '${c}' is not an http method.`),this._on(c,n,r,l,i,a)};zn.prototype._on=function(e,n,r,l,i){let s={};r.constraints!==void 0&&(ur(typeof r.constraints=="object"&&r.constraints!==null,"Constraints should be an object"),Object.keys(r.constraints).length!==0&&(s=r.constraints)),this.constrainer.validateConstraints(s),this.constrainer.noteUsage(s),this.trees[e]===void 0&&(this.trees[e]=new xF("/"));let a=n;if(a==="*"&&this.trees[e].prefix.length!==0){let m=this.trees[e];this.trees[e]=new xF(""),this.trees[e].staticChildren["/"]=m}let o=this.trees[e],c=o.prefix.length,f=[];for(let m=0;m<=a.length;m++){if(a.charCodeAt(m)===58&&a.charCodeAt(m+1)===58){m++;continue}let h=a.charCodeAt(m)===58&&a.charCodeAt(m+1)!==58,g=a.charCodeAt(m)===42;if(h||g||m===a.length&&m!==c){let _=a.slice(c,m);this.caseSensitive||(_=_.toLowerCase()),_=_.split("::").join(":"),_=_.split("%").join("%25"),o=o.createStaticChild(_)}if(h){let _=!1,S=[],T=m+1;for(let x=T;;x++){let v=a.charCodeAt(x),b=v===40,w=v===45||v===46,N=v===47||x===a.length;if(b||w||N){let O=a.slice(T,x);if(f.push(O),_=_||b||w,b){let L=NF(a,x),Q=a.slice(x,L+1);this.allowUnsafeRegex||ur(Y8(new RegExp(Q)),`The regex '${Q}' is not safe!`),S.push(OF(Q)),x=L+1}else S.push("(.*?)");let k=x;for(;x0,"The path could not be empty"),ur(n[0]==="/"||n[0]==="*","The first character of a path should be `/` or `*`"),ur(typeof r>"u"||typeof r=="object"&&!Array.isArray(r)&&r!==null,"Constraints should be an object or undefined.");let l=n.match(La);if(l){ur(n.length===l.index+l[0].length,"Optional Parameter needs to be the last parameter of the path");let s=n.replace(La,"$1$2"),a=n.replace(La,"$2");this.off(e,s,r),this.off(e,a,r);return}this.ignoreDuplicateSlashes&&(n=Xy(n)),this.ignoreTrailingSlash&&(n=Wy(n));let i=Array.isArray(e)?e:[e];for(let s of i)this._off(s,n,r)};zn.prototype._off=function(e,n,r){ur(typeof e=="string","Method should be a string"),ur(Ou.includes(e),`Method '${e}' is not an http method.`);function l(o){return e!==o.method||n!==o.path}function i(o){return l(o)||!Gy(r,o.opts.constraints||{})}let s=r?i:l,a=this.routes.filter(s);this._rebuild(a)};zn.prototype.lookup=function(e,n,r,l){if(typeof r=="function"&&(l=r,r=void 0),l===void 0){let i=this.constrainer.deriveConstraints(e,r),s=this.find(e.method,e.url,i);return this.callHandler(s,e,n,r)}this.constrainer.deriveConstraints(e,r,(i,s)=>{if(i!==null){l(i);return}try{let a=this.find(e.method,e.url,s),o=this.callHandler(a,e,n,r);l(null,o)}catch(a){l(a)}})};zn.prototype.callHandler=function(e,n,r,l){return e===null?this._defaultRoute(n,r,l):l===void 0?e.handler(n,r,e.params,e.store,e.searchParams):e.handler.call(l,n,r,e.params,e.store,e.searchParams)};zn.prototype.find=function(e,n,r){let l=this.trees[e];if(l===void 0)return null;n.charCodeAt(0)!==47&&(n=n.replace(wF,"/")),this.ignoreDuplicateSlashes&&(n=Xy(n));let i,s,a;try{i=B6e(n,this.useSemicolonDelimiter),n=i.path,s=i.querystring,a=i.shouldDecodeParam}catch{return this._onBadUrl(n)}this.ignoreTrailingSlash&&(n=Wy(n));let o=n;this.caseSensitive===!1&&(n=n.toLowerCase());let c=this.maxParamLength,f=l.prefix.length,p=[],m=n.length,h=[];for(;;){if(f===m&&l.isLeafNode){let _=l.handlerStorage.getMatchingHandler(r);if(_!==null)return{handler:_.handler,store:_.store,params:_._createParamsObject(p),searchParams:this.querystringParser(s)}}let g=l.getNextNode(n,f,h,p.length);if(g===null){if(h.length===0)return null;let _=h.pop();f=_.brotherPathIndex,p.splice(_.paramsCount),g=_.brotherNode}if(l=g,l.kind===Vy.STATIC){f+=l.prefix.length;continue}if(l.kind===Vy.WILDCARD){let _=o.slice(f);a&&(_=AF(_)),p.push(_),f=m;continue}if(l.kind===Vy.PARAMETRIC){let _=o.indexOf("/",f);_===-1&&(_=m);let S=o.slice(f,_);if(a&&(S=AF(S)),l.isRegex){let T=l.regex.exec(S);if(T===null)continue;for(let x=1;xc)return null;p.push(v)}}else{if(S.length>c)return null;p.push(S)}f=_}}};zn.prototype._rebuild=function(t){this.reset();for(let e of t){let{method:n,path:r,opts:l,handler:i,store:s}=e;this._on(n,r,l,i,s)}};zn.prototype._defaultRoute=function(t,e,n){if(this.defaultRoute!==null)return n===void 0?this.defaultRoute(t,e):this.defaultRoute.call(n,t,e);e.statusCode=404,e.end()};zn.prototype._onBadUrl=function(t){if(this.onBadUrl===null)return null;let e=this.onBadUrl;return{handler:(n,r,l)=>e(t,n,r),params:{},store:null}};zn.prototype.prettyPrint=function(t={}){let e=t.method;t.buildPrettyMeta=this.buildPrettyMeta.bind(this);let n=null;if(e===void 0){let{version:r,host:l,...i}=this.constrainer.strategies;i[zy.name]=zy;let s=new zn({...this._opts,constraints:i}),a=this.routes.map(o=>{let c={...o.opts.constraints,[zy.name]:o.method};return{...o,method:"MERGED",opts:{constraints:c}}});s._rebuild(a),n=s.trees.MERGED}else n=this.trees[e];return n==null?"(empty tree)":j6e(n,t)};for(let t in Ou){if(!Ou.hasOwnProperty(t))continue;let e=Ou[t],n=e.toLowerCase();if(zn.prototype[n])throw new Error("Method already exists: "+n);zn.prototype[n]=function(r,l,i){return this.on(e,r,l,i)}}zn.prototype.all=function(t,e,n){this.on(Ou,t,e,n)};IF.exports=zn;function RF(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Xy(t){return t.replace(/\/\/+/g,"/")}function Wy(t){return t.length>1&&t.charCodeAt(t.length-1)===47?t.slice(0,-1):t}function OF(t){return t.charCodeAt(1)===94&&(t=t.slice(0,1)+t.slice(2)),t.charCodeAt(t.length-2)===36&&(t=t.slice(0,t.length-2)+t.slice(t.length-1)),t}function NF(t,e){let n=1;for(;e{"use strict";function Yy(t,e,n,r){if(n===void 0)return e.header("content-length","0"),r(null,null);if(typeof n.resume=="function")return n.on("error",i=>{e.log.error({err:i},"Error on Stream found for HEAD route")}),n.resume(),r(null,null);let l=""+Buffer.byteLength(n);e.header("content-length",l),r(null,null)}function q6e(t){return t==null?Yy:Array.isArray(t)?[...t,Yy]:[t,Yy]}CF.exports={parseHeadOnSendHandlers:q6e}});var KF=C((EAe,WF)=>{"use strict";var V6e=Ky(),z6e=_8(),PF=Wp(),{onRequestAbortHookRunner:G6e,lifecycleHooks:DF,preParsingHookRunner:X6e,onTimeoutHookRunner:W6e,onRequestHookRunner:K6e}=$3(),{supportedMethods:Y6e}=Sg(),{normalizeSchema:J6e}=i1(),{parseHeadOnSendHandlers:Q6e}=kF(),{FSTDEP007:Z6e,FSTDEP008:e8e,FSTDEP014:LF}=l3(),{compileSchemasForValidation:t8e,compileSchemasForSerialization:n8e}=qp(),{FST_ERR_SCH_VALIDATION_BUILD:r8e,FST_ERR_SCH_SERIALIZATION_BUILD:l8e,FST_ERR_DEFAULT_ROUTE_INVALID_TYPE:i8e,FST_ERR_DUPLICATED_ROUTE:s8e,FST_ERR_INVALID_URL:a8e,FST_ERR_HOOK_INVALID_HANDLER:FF,FST_ERR_ROUTE_OPTIONS_NOT_OBJ:o8e,FST_ERR_ROUTE_DUPLICATED_HANDLER:u8e,FST_ERR_ROUTE_HANDLER_NOT_FN:MF,FST_ERR_ROUTE_MISSING_HANDLER:c8e,FST_ERR_ROUTE_METHOD_NOT_SUPPORTED:f8e,FST_ERR_ROUTE_METHOD_INVALID:p8e,FST_ERR_ROUTE_BODY_VALIDATION_SCHEMA_NOT_SUPPORTED:d8e,FST_ERR_ROUTE_BODY_LIMIT_OPTION_NOT_INT:h8e,FST_ERR_HOOK_INVALID_ASYNC_HANDLER:Jy}=al(),{kRoutePrefix:m8e,kLogLevel:g8e,kLogSerializers:$F,kHooks:jF,kSchemaController:y8e,kOptions:UF,kReplySerializerDefault:Qy,kReplyIsError:v8e,kRequestPayloadStream:_8e,kDisableRequestLogging:E8e,kSchemaErrorFormatter:b8e,kErrorHandler:BF,kHasBeenDecorated:HF,kRequestAcceptVersion:Zy,kRouteByFastify:ev,kRouteContext:qF}=Mr(),{buildErrorHandler:T8e}=F1(),{createChildLogger:S8e}=r1(),{getGenReqId:x8e}=j8();function A8e(t){let e=V6e(t.config),n,r,l,i,s,a,o,c,f,p,m,h,g,_=!1;return{setup(k,j){n=j.avvio,r=j.fourOhFour,l=j.logger,i=j.hasLogger,s=j.setupResponseListeners,a=j.throwIfAlreadyStarted,h=j.validateHTTPVersion,m=k.exposeHeadRoutes,o=k.disableRequestLogging,c=k.ignoreTrailingSlash,f=k.ignoreDuplicateSlashes,p=Object.prototype.hasOwnProperty.call(k,"return503OnClosing")?k.return503OnClosing:!0,g=j.keepAliveConnections},routing:e.lookup.bind(e),route:N,hasRoute:b,prepareRoute:v,getDefaultRoute:function(){return LF(),e.defaultRoute},setDefaultRoute:function(k){if(LF(),typeof k!="function")throw new i8e;e.defaultRoute=k},routeHandler:O,closeRoutes:()=>{_=!0},printRoutes:e.prettyPrint.bind(e),addConstraintStrategy:S,hasConstraintStrategy:T,isAsyncConstraint:x,findRoute:w};function S(k){return a("Cannot add constraint strategy!"),e.addConstraintStrategy(k)}function T(k){return e.hasConstraintStrategy(k)}function x(){return e.constrainer.asyncStrategiesInUse.size>0}function v({method:k,url:j,options:L,handler:Q,isFastify:Y}){if(typeof j!="string")throw new a8e(typeof j);if(!Q&&typeof L=="function")Q=L,L={};else if(Q&&typeof Q=="function"){if(Object.prototype.toString.call(L)!=="[object Object]")throw new o8e(k,j);if(L.handler)throw typeof L.handler=="function"?new u8e(k,j):new MF(k,j)}return L=Object.assign({},L,{method:k,url:j,path:j,handler:Q||L&&L.handler}),N.call(this,{options:L,isFastify:Y})}function b({options:k}){return w(k)!==null}function w(k){let j=e.find(k.method,k.url||"",k.constraints);return j?{handler:j.handler,params:j.params,searchParams:j.searchParams}:null}function N({options:k,isFastify:j}){let L={...k},{exposeHeadRoute:Q}=L,Z=Q!=null?Q:m,ve=L.method==="GET"||Array.isArray(L.method)&&L.method.includes("GET"),Ne=L.method==="HEAD"||Array.isArray(L.method)&&L.method.includes("HEAD"),pe=Z&&ve?{...k}:null;a("Cannot add route!");let ae=L.url||L.path||"";if(Array.isArray(L.method))for(var ye=0;ye0&&L.method!=="HEAD")switch(L.prefixTrailingSlash){case"slash":le.call(this,{path:ae,isFastify:j});break;case"no-slash":le.call(this,{path:"",isFastify:j});break;case"both":default:le.call(this,{path:"",isFastify:j}),c!==!0&&(f!==!0||!q.endsWith("/"))&&le.call(this,{path:ae,prefixing:!0,isFastify:j})}else ae[0]==="/"&&q.endsWith("/")?le.call(this,{path:ae.slice(1),isFastify:j}):le.call(this,{path:ae,isFastify:j});return this;function le({path:re,prefixing:te=!1,isFastify:Un=!1}){let wt=q+re;if(L.url=wt,L.path=wt,L.routePath=re,L.prefix=q,L.logLevel=L.logLevel||this[g8e],(this[$F]||L.logSerializers)&&(L.logSerializers=Object.assign(Object.create(this[$F]),L.logSerializers)),L.attachValidation==null&&(L.attachValidation=!1),te===!1)for(let ut of this[jF].onRoute)ut.call(this,L);for(let ut of DF)if(L&&ut in L){if(Array.isArray(L[ut]))for(let pt of L[ut]){if(typeof pt!="function")throw new FF(ut,Object.prototype.toString.call(pt));if(ut==="onSend"||ut==="preSerialization"||ut==="onError"||ut==="preParsing"){if(pt.constructor.name==="AsyncFunction"&&pt.length===4)throw new Jy}else if(ut==="onRequestAbort"){if(pt.constructor.name==="AsyncFunction"&&pt.length!==1)throw new Jy}else if(pt.constructor.name==="AsyncFunction"&&pt.length===3)throw new Jy}else if(L[ut]!==void 0&&typeof L[ut]!="function")throw new FF(ut,Object.prototype.toString.call(L[ut]))}let Ge=L.constraints||{},$t={...L.config,url:wt,method:L.method},Ke=new z6e({schema:L.schema,handler:L.handler.bind(this),config:$t,errorHandler:L.errorHandler,childLoggerFactory:L.childLoggerFactory,bodyLimit:L.bodyLimit,logLevel:L.logLevel,logSerializers:L.logSerializers,attachValidation:L.attachValidation,schemaErrorFormatter:L.schemaErrorFormatter,replySerializer:this[Qy],validatorCompiler:L.validatorCompiler,serializerCompiler:L.serializerCompiler,exposeHeadRoute:Z,prefixTrailingSlash:L.prefixTrailingSlash||"both",server:this,isFastify:Un});L.version&&(e8e(),Ge.version=L.version);let Xe=e.findRoute("HEAD",L.url,Ge),bn=Xe!==null;Ne&&bn&&!Ke[ev]&&Xe.store[ev]&&e.off("HEAD",L.url,Ge);try{e.on(L.method,L.url,{constraints:Ge},O,Ke)}catch(ut){if(!Ke[ev])throw ut.message.includes(`Method '${L.method}' already declared for route '${L.url}'`)?new s8e(L.method,L.url):ut}if(this.after((ut,pt)=>{Ke.errorHandler=L.errorHandler?T8e(this[BF],L.errorHandler):this[BF],Ke._parserOptions.limit=L.bodyLimit||null,Ke.logLevel=L.logLevel,Ke.logSerializers=L.logSerializers,Ke.attachValidation=L.attachValidation,Ke[Qy]=this[Qy],Ke.schemaErrorFormatter=L.schemaErrorFormatter||this[b8e]||Ke.schemaErrorFormatter,n.once("preReady",()=>{for(let J of DF){let me=this[jF][J].concat(L[J]||[]).map(Te=>Te.bind(this));Ke[J]=me.length?me:null}for(;!Ke.Request[HF]&&Ke.Request.parent;)Ke.Request=Ke.Request.parent;for(;!Ke.Reply[HF]&&Ke.Reply.parent;)Ke.Reply=Ke.Reply.parent;if(r.setContext(this,Ke),L.schema){Ke.schema=J6e(Ke.schema,this.initialConfig);let J=this[y8e];!L.validatorCompiler&&(L.schema.body||L.schema.headers||L.schema.querystring||L.schema.params)&&J.setupValidator(this[UF]);try{let me=typeof L?.validatorCompiler=="function"||J.isCustomValidatorCompiler;t8e(Ke,L.validatorCompiler||J.validatorCompiler,me)}catch(me){throw new r8e(L.method,wt,me.message)}L.schema.response&&!L.serializerCompiler&&J.setupSerializer(this[UF]);try{n8e(Ke,L.serializerCompiler||J.serializerCompiler)}catch(me){throw new l8e(L.method,wt,me.message)}}}),pt(ut)}),Z&&ve&&!Ne&&!bn){let ut=Q6e(pe.onSend);v.call(this,{method:"HEAD",url:re,options:{...pe,onSend:ut},isFastify:!0})}else bn&&Q&&Z6e()}}function O(k,j,L,Q,Y){let Z=x8e(Q.server,k),ve={level:Q.logLevel};Q.logSerializers&&(ve.serializers=Q.logSerializers);let Ne=S8e(Q,l,k,Z,ve);if(Ne[E8e]=o,!h(k.httpVersion)){Ne.info({res:{statusCode:505}},"request aborted - invalid HTTP version");let q='{"error":"HTTP Version Not Supported","message":"HTTP Version Not Supported","statusCode":505}',le={"Content-Type":"application/json","Content-Length":q.length};j.writeHead(505,le),j.end(q);return}if(_===!0&&(k.httpVersionMajor!==2&&j.setHeader("Connection","close"),p)){let q={"Content-Type":"application/json","Content-Length":"80"};j.writeHead(503,q),j.end('{"error":"Service Unavailable","message":"Service Unavailable","statusCode":503}'),Ne.info({res:{statusCode:503}},"request aborted - refusing to accept new requests as server is closing");return}String.prototype.toLowerCase.call(k.headers.connection||"")==="keep-alive"&&g.has(k.socket)===!1&&(g.add(k.socket),k.socket.on("close",O8e.bind({keepAliveConnections:g,socket:k.socket}))),k.headers[Zy]!==void 0&&(k.headers["accept-version"]=k.headers[Zy],k.headers[Zy]=void 0);let ae=new Q.Request(Z,L,k,Y,Ne,Q),ye=new Q.Reply(j,ae,Ne);o===!1&&Ne.info({req:ae},"incoming request"),(i===!0||Q.onResponse!==null)&&s(ye),Q.onRequest!==null?K6e(Q.onRequest,ae,ye,GF):GF(null,ae,ye),Q.onRequestAbort!==null&&k.on("close",()=>{k.aborted&&G6e(Q.onRequestAbort,ae,w8e.bind(null,ye))}),Q.onTimeout!==null&&(ae.raw.socket._meta||ae.raw.socket.on("timeout",R8e),ae.raw.socket._meta={context:Q,request:ae,reply:ye})}}function w8e(t,e){e&&t.log.error({err:e},"onRequestAborted hook failed")}function R8e(){let{context:t,request:e,reply:n}=this._meta;W6e(t.onTimeout,e,n,N8e)}function VF(t){if(typeof t!="string")throw new p8e;if(t=t.toUpperCase(),Y6e.indexOf(t)===-1)throw new f8e(t);return t}function zF(t,e,n){if((t==="GET"||t==="HEAD")&&n&&n.body)throw new d8e(t,e)}function XF(t){if(t!==void 0&&(!Number.isInteger(t)||t<=0))throw new h8e(t)}function GF(t,e,n){if(n.sent!==!0){if(t!=null){n[v8e]=!0,n.send(t);return}e[_8e]=e.raw,e[qF].preParsing!==null?X6e(e[qF].preParsing,e,n,PF):PF(null,e,n)}}function O8e(){this.keepAliveConnections.delete(this.socket)}function N8e(){}WF.exports={buildRouting:A8e,validateBodyLimitOption:XF}});var nM=C((bAe,tM)=>{"use strict";var I8e=Ky(),YF=n8(),JF=v8(),C8e=_8(),{kRoutePrefix:k8e,kCanSetNotFoundHandler:m0,kFourOhFourLevelInstance:g0,kFourOhFourContext:Ai,kHooks:P8e,kErrorHandler:QF}=Mr(),{lifecycleHooks:D8e}=$3(),{buildErrorHandler:L8e}=F1(),{FST_ERR_NOT_FOUND:F8e}=al(),{createChildLogger:ZF}=r1(),{getGenReqId:eM}=j8();function M8e(t){let{logger:e}=t,n=I8e({onBadUrl:s(),defaultRoute:f}),r=null;return{router:n,setNotFoundHandler:o,setContext:a,arrange404:l};function l(p){p[g0]=p,p[m0]=!0,n.onBadUrl=n.onBadUrl.bind(p),n.defaultRoute=n.defaultRoute.bind(p)}function i(p,m){let{url:h,method:g}=p.raw,_=`Route ${g}:${h} not found`;p.log.info(_),m.code(404).send({message:_,error:"Not Found",statusCode:404})}function s(){return function(m,h,g){let _=this[g0][Ai],S=eM(_.server,h),T=ZF(_,e,h,S),x=new JF(S,null,h,null,T,_),v=new YF(g,x,T);r(x,v)}}function a(p,m){let h=Object.assign({},p[Ai]);h.onSend=m.onSend,m[Ai]=h}function o(p,m,h,g){this[m0]===void 0&&(this[m0]=!0),this[Ai]===void 0&&(this[Ai]=null);let _=this,S=this[k8e]||"/";if(this[m0]===!1)throw new Error(`Not found handler already set for Fastify instance with prefix: '${S}'`);typeof p=="object"&&(p.preHandler&&(Array.isArray(p.preHandler)?p.preHandler=p.preHandler.map(T=>T.bind(_)):p.preHandler=p.preHandler.bind(_)),p.preValidation&&(Array.isArray(p.preValidation)?p.preValidation=p.preValidation.map(T=>T.bind(_)):p.preValidation=p.preValidation.bind(_))),typeof p=="function"&&(m=p,p=void 0),p=p||{},m?(this[g0][m0]=!1,m=m.bind(this),r=m):(m=i,r=i),this.after((T,x)=>{c.call(this,S,p,m,h,g),x(T)})}function c(p,m,h,g,_){let S=new C8e({schema:m.schema,handler:h,config:m.config||{},server:this});if(g.once("preReady",()=>{let T=this[Ai];for(let x of D8e){let v=this[P8e][x].concat(m[x]||[]).map(b=>b.bind(this));T[x]=v.length?v:null}T.errorHandler=m.errorHandler?L8e(this[QF],m.errorHandler):this[QF]}),this[Ai]!==null&&p==="/"){Object.assign(this[Ai],S);return}this[g0][Ai]=S,n.all(p+(p.endsWith("/")?"*":"/*"),_,S),n.all(p,_,S)}function f(p,m){let h=this[g0][Ai],g=eM(h.server,p),_=ZF(h,e,p,g);_.info({req:p},"incoming request");let S=new JF(g,null,p,null,_,h),T=new YF(m,S,_);S.log.warn("the default handler for 404 did not catch this, this is likely a fastify bug, please report it"),S.log.warn(n.prettyPrint()),T.code(404).send(new F8e)}}tM.exports=M8e});var lM=C((TAe,J8)=>{"use strict";J8.exports=Gt;J8.exports.default=Gt;var rM={type:"object",additionalProperties:!1,properties:{connectionTimeout:{type:"integer",default:0},keepAliveTimeout:{type:"integer",default:72e3},forceCloseConnections:{oneOf:[{type:"string",pattern:"idle"},{type:"boolean"}]},maxRequestsPerSocket:{type:"integer",default:0,nullable:!0},requestTimeout:{type:"integer",default:0},bodyLimit:{type:"integer",default:1048576},caseSensitive:{type:"boolean",default:!0},allowUnsafeRegex:{type:"boolean",default:!1},http2:{type:"boolean"},https:{if:{not:{oneOf:[{type:"boolean"},{type:"null"},{type:"object",additionalProperties:!1,required:["allowHTTP1"],properties:{allowHTTP1:{type:"boolean"}}}]}},then:{setDefaultValue:!0}},ignoreTrailingSlash:{type:"boolean",default:!1},ignoreDuplicateSlashes:{type:"boolean",default:!1},disableRequestLogging:{type:"boolean",default:!1},jsonShorthand:{type:"boolean",default:!0},maxParamLength:{type:"integer",default:100},onProtoPoisoning:{type:"string",default:"error"},onConstructorPoisoning:{type:"string",default:"error"},pluginTimeout:{type:"integer",default:1e4},requestIdHeader:{anyOf:[{enum:[!1]},{type:"string"}],default:"request-id"},requestIdLogLabel:{type:"string",default:"reqId"},http2SessionTimeout:{type:"integer",default:72e3},exposeHeadRoutes:{type:"boolean",default:!0},useSemicolonDelimiter:{type:"boolean",default:!0},versioning:{type:"object",additionalProperties:!0,required:["storage","deriveVersion"],properties:{storage:{},deriveVersion:{}}},constraints:{type:"object",additionalProperties:{type:"object",required:["name","storage","validate","deriveConstraint"],additionalProperties:!0,properties:{name:{type:"string"},storage:{},validate:{},deriveConstraint:{}}}}}},$8e=Object.prototype.hasOwnProperty,j8e=new RegExp("idle","u");function Gt(t,{instancePath:e="",parentData:n,parentDataProperty:r,rootData:l=t}={}){let i=null,s=0;if(s===0)if(t&&typeof t=="object"&&!Array.isArray(t)){t.connectionTimeout===void 0&&(t.connectionTimeout=0),t.keepAliveTimeout===void 0&&(t.keepAliveTimeout=72e3),t.maxRequestsPerSocket===void 0&&(t.maxRequestsPerSocket=0),t.requestTimeout===void 0&&(t.requestTimeout=0),t.bodyLimit===void 0&&(t.bodyLimit=1048576),t.caseSensitive===void 0&&(t.caseSensitive=!0),t.allowUnsafeRegex===void 0&&(t.allowUnsafeRegex=!1),t.ignoreTrailingSlash===void 0&&(t.ignoreTrailingSlash=!1),t.ignoreDuplicateSlashes===void 0&&(t.ignoreDuplicateSlashes=!1),t.disableRequestLogging===void 0&&(t.disableRequestLogging=!1),t.jsonShorthand===void 0&&(t.jsonShorthand=!0),t.maxParamLength===void 0&&(t.maxParamLength=100),t.onProtoPoisoning===void 0&&(t.onProtoPoisoning="error"),t.onConstructorPoisoning===void 0&&(t.onConstructorPoisoning="error"),t.pluginTimeout===void 0&&(t.pluginTimeout=1e4),t.requestIdHeader===void 0&&(t.requestIdHeader="request-id"),t.requestIdLogLabel===void 0&&(t.requestIdLogLabel="reqId"),t.http2SessionTimeout===void 0&&(t.http2SessionTimeout=72e3),t.exposeHeadRoutes===void 0&&(t.exposeHeadRoutes=!0),t.useSemicolonDelimiter===void 0&&(t.useSemicolonDelimiter=!0);let g=s;for(let _ in t)$8e.call(rM.properties,_)||delete t[_];if(g===s){let _=t.connectionTimeout,S=s;if(!(typeof _=="number"&&!(_%1)&&!isNaN(_)&&isFinite(_))){let T=typeof _,x;if(x===void 0)if(T==="boolean"||_===null||T==="string"&&_&&_==+_&&!(_%1))x=+_;else return Gt.errors=[{instancePath:e+"/connectionTimeout",schemaPath:"#/properties/connectionTimeout/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;x!==void 0&&(_=x,t!==void 0&&(t.connectionTimeout=x))}var a=S===s;if(a){let T=t.keepAliveTimeout,x=s;if(!(typeof T=="number"&&!(T%1)&&!isNaN(T)&&isFinite(T))){let b=typeof T,w;if(w===void 0)if(b==="boolean"||T===null||b==="string"&&T&&T==+T&&!(T%1))w=+T;else return Gt.errors=[{instancePath:e+"/keepAliveTimeout",schemaPath:"#/properties/keepAliveTimeout/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;w!==void 0&&(T=w,t!==void 0&&(t.keepAliveTimeout=w))}var a=x===s;if(a){if(t.forceCloseConnections!==void 0){let b=t.forceCloseConnections,w=s,N=s,O=!1,k=null,j=s;if(typeof b!="string"){let Y=typeof b,Z;if(Z===void 0)if(Y=="number"||Y=="boolean")Z=""+b;else if(b===null)Z="";else{let ve={instancePath:e+"/forceCloseConnections",schemaPath:"#/properties/forceCloseConnections/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[ve]:i.push(ve),s++}Z!==void 0&&(b=Z,t!==void 0&&(t.forceCloseConnections=Z))}if(s===j&&typeof b=="string"&&!j8e.test(b)){let Y={instancePath:e+"/forceCloseConnections",schemaPath:"#/properties/forceCloseConnections/oneOf/0/pattern",keyword:"pattern",params:{pattern:"idle"},message:'must match pattern "idle"'};i===null?i=[Y]:i.push(Y),s++}var o=j===s;o&&(O=!0,k=0);let L=s;if(typeof b!="boolean"){let Y;if(Y===void 0)if(b==="false"||b===0||b===null)Y=!1;else if(b==="true"||b===1)Y=!0;else{let Z={instancePath:e+"/forceCloseConnections",schemaPath:"#/properties/forceCloseConnections/oneOf/1/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};i===null?i=[Z]:i.push(Z),s++}Y!==void 0&&(b=Y,t!==void 0&&(t.forceCloseConnections=Y))}var o=L===s;if(o&&O?(O=!1,k=[k,1]):o&&(O=!0,k=1),O)s=N,i!==null&&(N?i.length=N:i=null);else{let Y={instancePath:e+"/forceCloseConnections",schemaPath:"#/properties/forceCloseConnections/oneOf",keyword:"oneOf",params:{passingSchemas:k},message:"must match exactly one schema in oneOf"};return i===null?i=[Y]:i.push(Y),s++,Gt.errors=i,!1}var a=w===s}else var a=!0;if(a){let b=t.maxRequestsPerSocket,w=s;if(!(typeof b=="number"&&!(b%1)&&!isNaN(b)&&isFinite(b))&&b!==null){let O=typeof b,k;if(k===void 0)if(O==="boolean"||b===null||O==="string"&&b&&b==+b&&!(b%1))k=+b;else if(b===""||b===0||b===!1)k=null;else return Gt.errors=[{instancePath:e+"/maxRequestsPerSocket",schemaPath:"#/properties/maxRequestsPerSocket/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;k!==void 0&&(b=k,t!==void 0&&(t.maxRequestsPerSocket=k))}var a=w===s;if(a){let O=t.requestTimeout,k=s;if(!(typeof O=="number"&&!(O%1)&&!isNaN(O)&&isFinite(O))){let L=typeof O,Q;if(Q===void 0)if(L==="boolean"||O===null||L==="string"&&O&&O==+O&&!(O%1))Q=+O;else return Gt.errors=[{instancePath:e+"/requestTimeout",schemaPath:"#/properties/requestTimeout/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;Q!==void 0&&(O=Q,t!==void 0&&(t.requestTimeout=Q))}var a=k===s;if(a){let L=t.bodyLimit,Q=s;if(!(typeof L=="number"&&!(L%1)&&!isNaN(L)&&isFinite(L))){let Z=typeof L,ve;if(ve===void 0)if(Z==="boolean"||L===null||Z==="string"&&L&&L==+L&&!(L%1))ve=+L;else return Gt.errors=[{instancePath:e+"/bodyLimit",schemaPath:"#/properties/bodyLimit/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;ve!==void 0&&(L=ve,t!==void 0&&(t.bodyLimit=ve))}var a=Q===s;if(a){let Z=t.caseSensitive,ve=s;if(typeof Z!="boolean"){let pe;if(pe===void 0)if(Z==="false"||Z===0||Z===null)pe=!1;else if(Z==="true"||Z===1)pe=!0;else return Gt.errors=[{instancePath:e+"/caseSensitive",schemaPath:"#/properties/caseSensitive/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;pe!==void 0&&(Z=pe,t!==void 0&&(t.caseSensitive=pe))}var a=ve===s;if(a){let pe=t.allowUnsafeRegex,ae=s;if(typeof pe!="boolean"){let q;if(q===void 0)if(pe==="false"||pe===0||pe===null)q=!1;else if(pe==="true"||pe===1)q=!0;else return Gt.errors=[{instancePath:e+"/allowUnsafeRegex",schemaPath:"#/properties/allowUnsafeRegex/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;q!==void 0&&(pe=q,t!==void 0&&(t.allowUnsafeRegex=q))}var a=ae===s;if(a){if(t.http2!==void 0){let q=t.http2,le=s;if(typeof q!="boolean"){let te;if(te===void 0)if(q==="false"||q===0||q===null)te=!1;else if(q==="true"||q===1)te=!0;else return Gt.errors=[{instancePath:e+"/http2",schemaPath:"#/properties/http2/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;te!==void 0&&(q=te,t!==void 0&&(t.http2=te))}var a=le===s}else var a=!0;if(a){if(t.https!==void 0){let q=t.https,le=s,re=s,te=!0,Un=s,wt=s,Ge=s,$t=s,Ke=!1,Xe=null,bn=s;if(typeof q!="boolean"){let J;if(J===void 0)if(q==="false"||q===0||q===null)J=!1;else if(q==="true"||q===1)J=!0;else{let me={};i===null?i=[me]:i.push(me),s++}J!==void 0&&(q=J,t!==void 0&&(t.https=J))}var c=bn===s;c&&(Ke=!0,Xe=0);let ut=s;if(q!==null){let J;if(J===void 0)if(q===""||q===0||q===!1)J=null;else{let me={};i===null?i=[me]:i.push(me),s++}J!==void 0&&(q=J,t!==void 0&&(t.https=J))}var c=ut===s;if(c&&Ke)Ke=!1,Xe=[Xe,1];else{c&&(Ke=!0,Xe=1);let J=s;if(s===J)if(q&&typeof q=="object"&&!Array.isArray(q)){let Te;if(q.allowHTTP1===void 0&&(Te="allowHTTP1")){let Ue={};i===null?i=[Ue]:i.push(Ue),s++}else{let Ue=s;for(let lt in q)lt!=="allowHTTP1"&&delete q[lt];if(Ue===s&&q.allowHTTP1!==void 0){let lt=q.allowHTTP1;if(typeof lt!="boolean"){let Ce;if(Ce===void 0)if(lt==="false"||lt===0||lt===null)Ce=!1;else if(lt==="true"||lt===1)Ce=!0;else{let Rt={};i===null?i=[Rt]:i.push(Rt),s++}Ce!==void 0&&(lt=Ce,q!==void 0&&(q.allowHTTP1=Ce))}}}}else{let Te={};i===null?i=[Te]:i.push(Te),s++}var c=J===s;c&&Ke?(Ke=!1,Xe=[Xe,2]):c&&(Ke=!0,Xe=2)}if(Ke)s=$t,i!==null&&($t?i.length=$t:i=null);else{let J={};i===null?i=[J]:i.push(J),s++}var f=Ge===s;if(f){let J={};i===null?i=[J]:i.push(J),s++}else s=wt,i!==null&&(wt?i.length=wt:i=null);var p=Un===s;if(s=re,i!==null&&(re?i.length=re:i=null),p){let J=s;t.https=!0;var p=J===s;te=p}if(!te){let J={instancePath:e+"/https",schemaPath:"#/properties/https/if",keyword:"if",params:{failingKeyword:"then"},message:'must match "then" schema'};return i===null?i=[J]:i.push(J),s++,Gt.errors=i,!1}var a=le===s}else var a=!0;if(a){let q=t.ignoreTrailingSlash,le=s;if(typeof q!="boolean"){let te;if(te===void 0)if(q==="false"||q===0||q===null)te=!1;else if(q==="true"||q===1)te=!0;else return Gt.errors=[{instancePath:e+"/ignoreTrailingSlash",schemaPath:"#/properties/ignoreTrailingSlash/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;te!==void 0&&(q=te,t!==void 0&&(t.ignoreTrailingSlash=te))}var a=le===s;if(a){let te=t.ignoreDuplicateSlashes,Un=s;if(typeof te!="boolean"){let Ge;if(Ge===void 0)if(te==="false"||te===0||te===null)Ge=!1;else if(te==="true"||te===1)Ge=!0;else return Gt.errors=[{instancePath:e+"/ignoreDuplicateSlashes",schemaPath:"#/properties/ignoreDuplicateSlashes/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;Ge!==void 0&&(te=Ge,t!==void 0&&(t.ignoreDuplicateSlashes=Ge))}var a=Un===s;if(a){let Ge=t.disableRequestLogging,$t=s;if(typeof Ge!="boolean"){let Xe;if(Xe===void 0)if(Ge==="false"||Ge===0||Ge===null)Xe=!1;else if(Ge==="true"||Ge===1)Xe=!0;else return Gt.errors=[{instancePath:e+"/disableRequestLogging",schemaPath:"#/properties/disableRequestLogging/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;Xe!==void 0&&(Ge=Xe,t!==void 0&&(t.disableRequestLogging=Xe))}var a=$t===s;if(a){let Xe=t.jsonShorthand,bn=s;if(typeof Xe!="boolean"){let pt;if(pt===void 0)if(Xe==="false"||Xe===0||Xe===null)pt=!1;else if(Xe==="true"||Xe===1)pt=!0;else return Gt.errors=[{instancePath:e+"/jsonShorthand",schemaPath:"#/properties/jsonShorthand/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;pt!==void 0&&(Xe=pt,t!==void 0&&(t.jsonShorthand=pt))}var a=bn===s;if(a){let pt=t.maxParamLength,J=s;if(!(typeof pt=="number"&&!(pt%1)&&!isNaN(pt)&&isFinite(pt))){let Te=typeof pt,Ue;if(Ue===void 0)if(Te==="boolean"||pt===null||Te==="string"&&pt&&pt==+pt&&!(pt%1))Ue=+pt;else return Gt.errors=[{instancePath:e+"/maxParamLength",schemaPath:"#/properties/maxParamLength/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;Ue!==void 0&&(pt=Ue,t!==void 0&&(t.maxParamLength=Ue))}var a=J===s;if(a){let Te=t.onProtoPoisoning,Ue=s;if(typeof Te!="string"){let Ce=typeof Te,Rt;if(Rt===void 0)if(Ce=="number"||Ce=="boolean")Rt=""+Te;else if(Te===null)Rt="";else return Gt.errors=[{instancePath:e+"/onProtoPoisoning",schemaPath:"#/properties/onProtoPoisoning/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;Rt!==void 0&&(Te=Rt,t!==void 0&&(t.onProtoPoisoning=Rt))}var a=Ue===s;if(a){let Ce=t.onConstructorPoisoning,Rt=s;if(typeof Ce!="string"){let Ot=typeof Ce,qt;if(qt===void 0)if(Ot=="number"||Ot=="boolean")qt=""+Ce;else if(Ce===null)qt="";else return Gt.errors=[{instancePath:e+"/onConstructorPoisoning",schemaPath:"#/properties/onConstructorPoisoning/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;qt!==void 0&&(Ce=qt,t!==void 0&&(t.onConstructorPoisoning=qt))}var a=Rt===s;if(a){let Ot=t.pluginTimeout,qt=s;if(!(typeof Ot=="number"&&!(Ot%1)&&!isNaN(Ot)&&isFinite(Ot))){let Fn=typeof Ot,Ir;if(Ir===void 0)if(Fn==="boolean"||Ot===null||Fn==="string"&&Ot&&Ot==+Ot&&!(Ot%1))Ir=+Ot;else return Gt.errors=[{instancePath:e+"/pluginTimeout",schemaPath:"#/properties/pluginTimeout/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;Ir!==void 0&&(Ot=Ir,t!==void 0&&(t.pluginTimeout=Ir))}var a=qt===s;if(a){let Fn=t.requestIdHeader,Ir=s,Wn=s,Hr=!1,Zr=s;if(Fn!==!1){let tr={instancePath:e+"/requestIdHeader",schemaPath:"#/properties/requestIdHeader/anyOf/0/enum",keyword:"enum",params:{allowedValues:rM.properties.requestIdHeader.anyOf[0].enum},message:"must be equal to one of the allowed values"};i===null?i=[tr]:i.push(tr),s++}var m=Zr===s;if(Hr=Hr||m,!Hr){let tr=s;if(typeof Fn!="string"){let ti=typeof Fn,Tn;if(Tn===void 0)if(ti=="number"||ti=="boolean")Tn=""+Fn;else if(Fn===null)Tn="";else{let gl={instancePath:e+"/requestIdHeader",schemaPath:"#/properties/requestIdHeader/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[gl]:i.push(gl),s++}Tn!==void 0&&(Fn=Tn,t!==void 0&&(t.requestIdHeader=Tn))}var m=tr===s;Hr=Hr||m}if(Hr)s=Wn,i!==null&&(Wn?i.length=Wn:i=null);else{let tr={instancePath:e+"/requestIdHeader",schemaPath:"#/properties/requestIdHeader/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[tr]:i.push(tr),s++,Gt.errors=i,!1}var a=Ir===s;if(a){let tr=t.requestIdLogLabel,ho=s;if(typeof tr!="string"){let Tn=typeof tr,gl;if(gl===void 0)if(Tn=="number"||Tn=="boolean")gl=""+tr;else if(tr===null)gl="";else return Gt.errors=[{instancePath:e+"/requestIdLogLabel",schemaPath:"#/properties/requestIdLogLabel/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;gl!==void 0&&(tr=gl,t!==void 0&&(t.requestIdLogLabel=gl))}var a=ho===s;if(a){let Tn=t.http2SessionTimeout,gl=s;if(!(typeof Tn=="number"&&!(Tn%1)&&!isNaN(Tn)&&isFinite(Tn))){let Cr=typeof Tn,dr;if(dr===void 0)if(Cr==="boolean"||Tn===null||Cr==="string"&&Tn&&Tn==+Tn&&!(Tn%1))dr=+Tn;else return Gt.errors=[{instancePath:e+"/http2SessionTimeout",schemaPath:"#/properties/http2SessionTimeout/type",keyword:"type",params:{type:"integer"},message:"must be integer"}],!1;dr!==void 0&&(Tn=dr,t!==void 0&&(t.http2SessionTimeout=dr))}var a=gl===s;if(a){let Cr=t.exposeHeadRoutes,dr=s;if(typeof Cr!="boolean"){let yr;if(yr===void 0)if(Cr==="false"||Cr===0||Cr===null)yr=!1;else if(Cr==="true"||Cr===1)yr=!0;else return Gt.errors=[{instancePath:e+"/exposeHeadRoutes",schemaPath:"#/properties/exposeHeadRoutes/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;yr!==void 0&&(Cr=yr,t!==void 0&&(t.exposeHeadRoutes=yr))}var a=dr===s;if(a){let yr=t.useSemicolonDelimiter,Hi=s;if(typeof yr!="boolean"){let Bn;if(Bn===void 0)if(yr==="false"||yr===0||yr===null)Bn=!1;else if(yr==="true"||yr===1)Bn=!0;else return Gt.errors=[{instancePath:e+"/useSemicolonDelimiter",schemaPath:"#/properties/useSemicolonDelimiter/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;Bn!==void 0&&(yr=Bn,t!==void 0&&(t.useSemicolonDelimiter=Bn))}var a=Hi===s;if(a){if(t.versioning!==void 0){let Bn=t.versioning,nr=s;if(s===nr)if(Bn&&typeof Bn=="object"&&!Array.isArray(Bn)){let el;if(Bn.storage===void 0&&(el="storage")||Bn.deriveVersion===void 0&&(el="deriveVersion"))return Gt.errors=[{instancePath:e+"/versioning",schemaPath:"#/properties/versioning/required",keyword:"required",params:{missingProperty:el},message:"must have required property '"+el+"'"}],!1}else return Gt.errors=[{instancePath:e+"/versioning",schemaPath:"#/properties/versioning/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var a=nr===s}else var a=!0;if(a)if(t.constraints!==void 0){let Bn=t.constraints,nr=s;if(s===nr)if(Bn&&typeof Bn=="object"&&!Array.isArray(Bn))for(let el in Bn){let qr=Bn[el],I2=s;if(s===I2)if(qr&&typeof qr=="object"&&!Array.isArray(qr)){let Wl;if(qr.name===void 0&&(Wl="name")||qr.storage===void 0&&(Wl="storage")||qr.validate===void 0&&(Wl="validate")||qr.deriveConstraint===void 0&&(Wl="deriveConstraint"))return Gt.errors=[{instancePath:e+"/constraints/"+el.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/constraints/additionalProperties/required",keyword:"required",params:{missingProperty:Wl},message:"must have required property '"+Wl+"'"}],!1;if(qr.name!==void 0){let C2=qr.name;if(typeof C2!="string"){let ri=typeof C2,s2;if(s2===void 0)if(ri=="number"||ri=="boolean")s2=""+C2;else if(C2===null)s2="";else return Gt.errors=[{instancePath:e+"/constraints/"+el.replace(/~/g,"~0").replace(/\//g,"~1")+"/name",schemaPath:"#/properties/constraints/additionalProperties/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;s2!==void 0&&(C2=s2,qr!==void 0&&(qr.name=s2))}}}else return Gt.errors=[{instancePath:e+"/constraints/"+el.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/constraints/additionalProperties/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var h=I2===s;if(!h)break}else return Gt.errors=[{instancePath:e+"/constraints",schemaPath:"#/properties/constraints/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var a=nr===s}else var a=!0}}}}}}}}}}}}}}}}}}}}}}}}}else return Gt.errors=[{instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return Gt.errors=i,s===0}J8.exports.defaultInitOptions={connectionTimeout:0,keepAliveTimeout:72e3,maxRequestsPerSocket:0,requestTimeout:0,bodyLimit:1048576,caseSensitive:!0,allowUnsafeRegex:!1,disableRequestLogging:!1,jsonShorthand:!0,ignoreTrailingSlash:!1,ignoreDuplicateSlashes:!1,maxParamLength:100,onProtoPoisoning:"error",onConstructorPoisoning:"error",pluginTimeout:1e4,requestIdHeader:"request-id",requestIdLogLabel:"reqId",http2SessionTimeout:72e3,exposeHeadRoutes:!0,useSemicolonDelimiter:!0}});var iM=C((SAe,Z8)=>{"use strict";var Q8=lM(),U8e=l1()({circles:!0,proto:!1}),{FST_ERR_INIT_OPTS_INVALID:B8e}=al();function H8e(t){let e=U8e(t);if(!Q8(e)){let n=new B8e(JSON.stringify(Q8.errors.map(r=>r.message)));throw n.errors=Q8.errors,n}return tv(e)}function tv(t){let e=Object.getOwnPropertyNames(t);for(let n of e){let r=t[n];ArrayBuffer.isView(r)&&!(r instanceof DataView)||(t[n]=r&&typeof r=="object"?tv(r):r)}return Object.freeze(t)}Z8.exports=H8e;Z8.exports.defaultInitOptions=Q8.defaultInitOptions;Z8.exports.utils={deepFreezeObject:tv}});var hM=C((xAe,dM)=>{"use strict";var{kAvvioBoot:q8e,kChildren:sM,kRoutePrefix:aM,kLogLevel:oM,kLogSerializers:nv,kHooks:rv,kSchemaController:Nu,kContentTypeParser:uM,kReply:cM,kRequest:fM,kFourOhFour:V8e,kPluginNameChain:pM}=Mr(),z8e=n8(),G8e=v8(),X8e=Ny(),W8e=Mg(),{buildHooks:K8e}=$3(),y0=Ly();dM.exports=function(e,n,r){let l=y0.registerPlugin.call(e,n),i=y0.getPluginName(n)||y0.getFuncPreview(n);if(l)return e[pM].push(i),e;let s=Object.create(e);e[sM].push(s),s.ready=e[q8e].bind(s),s[sM]=[],s[cM]=z8e.buildReply(s[cM]),s[fM]=G8e.buildRequest(s[fM]),s[uM]=W8e.helpers.buildContentTypeParser(s[uM]),s[rv]=K8e(s[rv]),s[aM]=Y8e(s[aM],r.prefix),s[oM]=r.logLevel||s[oM],s[Nu]=X8e.buildSchemaController(e[Nu]),s.getSchema=s[Nu].getSchema.bind(s[Nu]),s.getSchemas=s[Nu].getSchemas.bind(s[Nu]),s[y0.kRegisteredPlugins]=Object.create(s[y0.kRegisteredPlugins]),s[pM]=[i],(s[nv]||r.logSerializers)&&(s[nv]=Object.assign(Object.create(s[nv]),r.logSerializers)),r.prefix&&s[V8e].arrange404(s);for(let a of s[rv].onRegister)a.call(this,s,r);return s};function Y8e(t,e){return e?(t.endsWith("/")&&e[0]==="/"?e=e.slice(1):e[0]!=="/"&&(e="/"+e),t+e):t}});var gM=C((AAe,mM)=>{"use strict";mM.exports=function(){return{[Symbol.iterator]:function*(){},add(){},delete(){},has(){return!0}}}});var yM=C(lv=>{"use strict";lv.parse=Q8e;lv.serialize=Z8e;var J8e=Object.prototype.toString,e9=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function Q8e(t,e){if(typeof t!="string")throw new TypeError("argument str must be a string");for(var n={},r=e||{},l=r.decode||e9e,i=0;i{"use strict";var{format:iv}=require("node:util");function sv(){let t={},e=new Map,n=Object.create(null);function r(s,a,o,{unlimited:c=!1}={}){if(!s)throw new Error("Warning name must not be empty");if(!a)throw new Error("Warning code must not be empty");if(!o)throw new Error("Warning message must not be empty");if(typeof c!="boolean")throw new Error("Warning opts.unlimited must be a boolean");if(a=a.toUpperCase(),t[a]!==void 0)throw new Error(`The code '${a}' already exist`);function f(p,m,h){let g;return p&&m&&h?g=iv(o,p,m,h):p&&m?g=iv(o,p,m):p?g=iv(o,p):g=o,{code:a,name:s,message:g}}return Object.assign(n,{unlimited:c}),e.set(a,c),t[a]=f,t[a]}function l(s,a,o={}){return r("DeprecationWarning",s,a,o)}function i(s,a,o,c){if(e.get(s)===!0&&n.unlimited===!1)return;if(t[s]===void 0)throw new Error(`The code '${s}' does not exist`);e.set(s,!0);let f=t[s](a,o,c);process.emitWarning(f.message,f.name,f.code)}return{create:r,createDeprecation:l,emit:i,emitted:e}}t9.exports=sv;t9.exports.default=sv;t9.exports.processWarning=sv});var bM=C((OAe,EM)=>{"use strict";var{URL:_M}=require("node:url"),av="http://localhost";EM.exports=function(e,n){(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]")&&e.startsWith("//")&&(e=av+e);let r=typeof e=="object"?Object.assign(new _M(av),e):new _M(e,av);if(typeof n=="string"){n=new URLSearchParams(n);for(let l of n.keys()){r.searchParams.delete(l);for(let i of n.getAll(l))r.searchParams.append(l,i)}}else{let l=Object.assign({},e.query,n);for(let i in l){let s=l[i];if(Array.isArray(s)){r.searchParams.delete(i);for(let a of s)r.searchParams.append(i,a)}else r.searchParams.set(i,s)}}return r}});var AM=C((NAe,n9)=>{"use strict";var{Readable:TM,addAbortSignal:l9e}=require("node:stream"),uv=require("node:util"),i9e=yM(),s9e=require("node:assert"),SM=vM()(),a9e=bM(),{EventEmitter:o9e}=require("node:events");SM.create("FastifyDeprecationLightMyRequest","FST_LIGHTMYREQUEST_DEP01",'You are accessing "request.connection", use "request.socket" instead.');function u9e(t){return t.port?t.host:t.hostname+(t.protocol==="https:"?":443":":80")}var ov=class extends o9e{constructor(e){super(),this.remoteAddress=e}};function xM(t){return new e(this);function e(n){wi.call(n,{...t,Request:void 0}),Object.assign(this,n);for(let r of Object.keys(wi.prototype))this.constructor.prototype[r]=wi.prototype[r];return uv.inherits(this.constructor,t.Request),this}}function wi(t){TM.call(this,{autoDestroy:!1});let e=a9e(t.url||t.path,t.query);this.url=e.pathname+e.search,this.aborted=!1,this.httpVersionMajor=1,this.httpVersionMinor=1,this.httpVersion="1.1",this.method=t.method?t.method.toUpperCase():"GET",this.headers={},this.rawHeaders=[];let n=t.headers||{};for(let s in n){let a=s.toLowerCase();if((a==="user-agent"||a==="content-type")&&n[s]===void 0){this.headers[a]=void 0;continue}let o=n[s];s9e(o!==void 0,'invalid value "undefined" for header '+s),this.headers[a]=""+o}if("user-agent"in this.headers||(this.headers["user-agent"]="lightMyRequest"),this.headers.host=this.headers.host||t.authority||u9e(e),t.cookies){let{cookies:s}=t,a=Object.keys(s).map(o=>i9e.serialize(o,s[o]));this.headers.cookie&&a.unshift(this.headers.cookie),this.headers.cookie=a.join("; ")}this.socket=new ov(t.remoteAddress||"127.0.0.1"),Object.defineProperty(this,"connection",{get(){return SM.emit("FST_LIGHTMYREQUEST_DEP01"),this.socket},configurable:!0});let r=t.payload||t.body||null,l=r&&typeof r.resume=="function";r&&typeof r!="string"&&!l&&!Buffer.isBuffer(r)&&(r=JSON.stringify(r),"content-type"in this.headers||(this.headers["content-type"]="application/json")),r&&!l&&!Object.prototype.hasOwnProperty.call(this.headers,"content-length")&&(this.headers["content-length"]=(Buffer.isBuffer(r)?r.length:Buffer.byteLength(r)).toString());for(let s of Object.keys(this.headers))this.rawHeaders.push(s,this.headers[s]);this._lightMyRequest={payload:r,isDone:!1,simulate:t.simulate||{}};let i=t.signal;return i&&l9e(i,this),this}uv.inherits(wi,TM);uv.inherits(xM,wi);wi.prototype.prepare=function(t){let e=this._lightMyRequest.payload;if(!e||typeof e.resume!="function")return t();let n=[];e.on("data",r=>n.push(Buffer.from(r))),e.on("end",()=>{let r=Buffer.concat(n);return this.headers["content-length"]=this.headers["content-length"]||""+r.length,this._lightMyRequest.payload=r,t()}),e.resume()};wi.prototype._read=function(t){setImmediate(()=>{if(this._lightMyRequest.isDone){this._lightMyRequest.simulate.end!==!1&&this.push(null);return}this._lightMyRequest.isDone=!0,this._lightMyRequest.payload&&(this._lightMyRequest.simulate.split?(this.push(this._lightMyRequest.payload.slice(0,1)),this.push(this._lightMyRequest.payload.slice(1))):this.push(this._lightMyRequest.payload)),this._lightMyRequest.simulate.error&&this.emit("error",new Error("Simulated")),this._lightMyRequest.simulate.close&&this.emit("close"),this._lightMyRequest.simulate.end!==!1&&this.push(null)})};wi.prototype.destroy=function(t){this.destroyed||this._lightMyRequest.isDone||(this.destroyed=!0,t&&(this._error=!0,process.nextTick(()=>this.emit("error",t))),process.nextTick(()=>this.emit("close")))};n9.exports=wi;n9.exports.Request=wi;n9.exports.CustomRequest=xM});var RM=C((IAe,v0)=>{"use strict";var Iu={decodeValues:!0,map:!1,silent:!1};function cv(t){return typeof t=="string"&&!!t.trim()}function fv(t,e){var n=t.split(";").filter(cv),r=n.shift(),l=c9e(r),i=l.name,s=l.value;e=e?Object.assign({},Iu,e):Iu;try{s=e.decodeValues?decodeURIComponent(s):s}catch(o){console.error("set-cookie-parser encountered an error while decoding a cookie with value '"+s+"'. Set options.decodeValues to false to disable this feature.",o)}var a={name:i,value:s};return n.forEach(function(o){var c=o.split("="),f=c.shift().trimLeft().toLowerCase(),p=c.join("=");f==="expires"?a.expires=new Date(p):f==="max-age"?a.maxAge=parseInt(p,10):f==="secure"?a.secure=!0:f==="httponly"?a.httpOnly=!0:f==="samesite"?a.sameSite=p:a[f]=p}),a}function c9e(t){var e="",n="",r=t.split("=");return r.length>1?(e=r.shift(),n=r.join("=")):n=t,{name:e,value:n}}function wM(t,e){if(e=e?Object.assign({},Iu,e):Iu,!t)return e.map?{}:[];if(t.headers)if(typeof t.headers.getSetCookie=="function")t=t.headers.getSetCookie();else if(t.headers["set-cookie"])t=t.headers["set-cookie"];else{var n=t.headers[Object.keys(t.headers).find(function(l){return l.toLowerCase()==="set-cookie"})];!n&&t.headers.cookie&&!e.silent&&console.warn("Warning: set-cookie-parser appears to have been called on a request object. It is designed to parse Set-Cookie headers from responses, not Cookie headers from requests. Set the option {silent: true} to suppress this warning."),t=n}if(Array.isArray(t)||(t=[t]),e=e?Object.assign({},Iu,e):Iu,e.map){var r={};return t.filter(cv).reduce(function(l,i){var s=fv(i,e);return l[s.name]=s,l},r)}else return t.filter(cv).map(function(l){return fv(l,e)})}function f9e(t){if(Array.isArray(t))return t;if(typeof t!="string")return[];var e=[],n=0,r,l,i,s,a;function o(){for(;n=t.length)&&e.push(t.substring(r,t.length))}return e}v0.exports=wM;v0.exports.parse=wM;v0.exports.parseString=fv;v0.exports.splitCookiesString=f9e});var IM=C((CAe,NM)=>{"use strict";var _0=require("node:http"),{Writable:p9e}=require("node:stream"),d9e=require("node:util"),h9e=RM();function ss(t,e,n){_0.ServerResponse.call(this,t),this._lightMyRequest={headers:null,trailers:{},payloadChunks:[]},this.setHeader("foo","bar"),this.removeHeader("foo"),this.assignSocket(g9e()),this._promiseCallback=typeof n=="function";let r=!1,l=s=>{if(r=!0,this._promiseCallback)return process.nextTick(()=>e(s));process.nextTick(()=>e(null,s))},i=s=>{if(!r){if(r=!0,this._promiseCallback)return process.nextTick(()=>n(s));process.nextTick(()=>e(s,null))}};this.once("finish",()=>{let s=m9e(this);s.raw.req=t,l(s)}),this.connection.once("error",i),this.once("error",i),this.once("close",i)}d9e.inherits(ss,_0.ServerResponse);ss.prototype.setTimeout=function(t,e){return this.timeoutHandle=setTimeout(()=>{this.emit("timeout")},t),this.on("timeout",e),this};ss.prototype.writeHead=function(){let t=_0.ServerResponse.prototype.writeHead.apply(this,arguments);return OM(this),t};ss.prototype.write=function(t,e,n){return this.timeoutHandle&&clearTimeout(this.timeoutHandle),_0.ServerResponse.prototype.write.call(this,t,e,n),this._lightMyRequest.payloadChunks.push(Buffer.from(t,e)),!0};ss.prototype.end=function(t,e,n){t&&this.write(t,e),_0.ServerResponse.prototype.end.call(this,n),this.emit("finish"),this.destroy()};ss.prototype.destroy=function(t){this.destroyed||(this.destroyed=!0,t&&process.nextTick(()=>this.emit("error",t)),process.nextTick(()=>this.emit("close")))};ss.prototype.addTrailers=function(t){for(let e in t)this._lightMyRequest.trailers[e.toLowerCase().trim()]=t[e].toString().trim()};function m9e(t){t._lightMyRequest.headers===null&&OM(t),y9e(t);let e={raw:{res:t},headers:t._lightMyRequest.headers,statusCode:t.statusCode,statusMessage:t.statusMessage,trailers:{},get cookies(){return h9e.parse(this)}},n=Buffer.concat(t._lightMyRequest.payloadChunks);return e.rawPayload=n,e.payload=n.toString(),e.body=e.payload,e.trailers=t._lightMyRequest.trailers,e.json=function(){return JSON.parse(e.payload)},e}function g9e(){return new p9e({write(t,e,n){setImmediate(n)}})}function y9e(t){let e=t._lightMyRequest.headers;for(let n of Object.keys(e)){let r=e[n];Array.isArray(r)?e[n]=r.map(l=>""+l):e[n]=""+r}}function OM(t){t._lightMyRequest.headers=Object.assign({},t.getHeaders()),["Date","Connection","Transfer-Encoding"].forEach(e=>{let n=new RegExp("\\r\\n"+e+": ([^\\r]*)\\r\\n"),r=t._header.match(n);r&&(t._lightMyRequest.headers[e.toLowerCase()]=r[1])})}NM.exports=ss});var CM=C((kAe,pv)=>{"use strict";pv.exports=mr;pv.exports.default=mr;var v9e={type:"object",properties:{url:{oneOf:[{type:"string"},{type:"object",properties:{protocol:{type:"string"},hostname:{type:"string"},pathname:{type:"string"}},additionalProperties:!0,required:["pathname"]}]},path:{oneOf:[{type:"string"},{type:"object",properties:{protocol:{type:"string"},hostname:{type:"string"},pathname:{type:"string"}},additionalProperties:!0,required:["pathname"]}]},cookies:{type:"object",additionalProperties:!0},headers:{type:"object",additionalProperties:!0},query:{anyOf:[{type:"object",additionalProperties:!0},{type:"string"}]},simulate:{type:"object",properties:{end:{type:"boolean"},split:{type:"boolean"},error:{type:"boolean"},close:{type:"boolean"}}},authority:{type:"string"},remoteAddress:{type:"string"},method:{type:"string",enum:["ACL","BIND","CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LINK","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCALENDAR","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REBIND","REPORT","SEARCH","SOURCE","SUBSCRIBE","TRACE","UNBIND","UNLINK","UNLOCK","UNSUBSCRIBE","acl","bind","checkout","connect","copy","delete","get","head","link","lock","m-search","merge","mkactivity","mkcalendar","mkcol","move","notify","options","patch","post","propfind","proppatch","purge","put","rebind","report","search","source","subscribe","trace","unbind","unlink","unlock","unsubscribe"]},validate:{type:"boolean"}},additionalProperties:!0,oneOf:[{required:["url"]},{required:["path"]}]};function mr(t,{instancePath:e="",parentData:n,parentDataProperty:r,rootData:l=t}={}){let i=null,s=0,a=s,o=!1,c=null,f=s;if(t&&typeof t=="object"&&!Array.isArray(t)){let b;if(t.url===void 0&&(b="url")){let w={instancePath:e,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty:b},message:"must have required property '"+b+"'"};i===null?i=[w]:i.push(w),s++}}var m=f===s;m&&(o=!0,c=0);let p=s;if(t&&typeof t=="object"&&!Array.isArray(t)){let b;if(t.path===void 0&&(b="path")){let w={instancePath:e,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:b},message:"must have required property '"+b+"'"};i===null?i=[w]:i.push(w),s++}}var m=p===s;if(m&&o?(o=!1,c=[c,1]):m&&(o=!0,c=1),o)s=a,i!==null&&(a?i.length=a:i=null);else{let b={instancePath:e,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas:c},message:"must match exactly one schema in oneOf"};return i===null?i=[b]:i.push(b),s++,mr.errors=i,!1}if(s===0)if(t&&typeof t=="object"&&!Array.isArray(t)){if(t.url!==void 0){let b=t.url,w=s,N=s,O=!1,k=null,j=s;if(typeof b!="string"){let Q=typeof b,Y;if(Y===void 0)if(Q=="number"||Q=="boolean")Y=""+b;else if(b===null)Y="";else{let Z={instancePath:e+"/url",schemaPath:"#/properties/url/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[Z]:i.push(Z),s++}Y!==void 0&&(b=Y,t!==void 0&&(t.url=Y))}var g=j===s;g&&(O=!0,k=0);let L=s;if(s===L)if(b&&typeof b=="object"&&!Array.isArray(b)){let Q;if(b.pathname===void 0&&(Q="pathname")){let Y={instancePath:e+"/url",schemaPath:"#/properties/url/oneOf/1/required",keyword:"required",params:{missingProperty:Q},message:"must have required property '"+Q+"'"};i===null?i=[Y]:i.push(Y),s++}else{if(b.protocol!==void 0){let Y=b.protocol,Z=s;if(typeof Y!="string"){let ve=typeof Y,Ne;if(Ne===void 0)if(ve=="number"||ve=="boolean")Ne=""+Y;else if(Y===null)Ne="";else{let pe={instancePath:e+"/url/protocol",schemaPath:"#/properties/url/oneOf/1/properties/protocol/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[pe]:i.push(pe),s++}Ne!==void 0&&(Y=Ne,b!==void 0&&(b.protocol=Ne))}var h=Z===s}else var h=!0;if(h){if(b.hostname!==void 0){let Y=b.hostname,Z=s;if(typeof Y!="string"){let Ne=typeof Y,pe;if(pe===void 0)if(Ne=="number"||Ne=="boolean")pe=""+Y;else if(Y===null)pe="";else{let ae={instancePath:e+"/url/hostname",schemaPath:"#/properties/url/oneOf/1/properties/hostname/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[ae]:i.push(ae),s++}pe!==void 0&&(Y=pe,b!==void 0&&(b.hostname=pe))}var h=Z===s}else var h=!0;if(h)if(b.pathname!==void 0){let Y=b.pathname,Z=s;if(typeof Y!="string"){let Ne=typeof Y,pe;if(pe===void 0)if(Ne=="number"||Ne=="boolean")pe=""+Y;else if(Y===null)pe="";else{let ae={instancePath:e+"/url/pathname",schemaPath:"#/properties/url/oneOf/1/properties/pathname/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[ae]:i.push(ae),s++}pe!==void 0&&(Y=pe,b!==void 0&&(b.pathname=pe))}var h=Z===s}else var h=!0}}}else{let Q={instancePath:e+"/url",schemaPath:"#/properties/url/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[Q]:i.push(Q),s++}var g=L===s;if(g&&O?(O=!1,k=[k,1]):g&&(O=!0,k=1),O)s=N,i!==null&&(N?i.length=N:i=null);else{let Q={instancePath:e+"/url",schemaPath:"#/properties/url/oneOf",keyword:"oneOf",params:{passingSchemas:k},message:"must match exactly one schema in oneOf"};return i===null?i=[Q]:i.push(Q),s++,mr.errors=i,!1}var _=w===s}else var _=!0;if(_){if(t.path!==void 0){let b=t.path,w=s,N=s,O=!1,k=null,j=s;if(typeof b!="string"){let Y=typeof b,Z;if(Z===void 0)if(Y=="number"||Y=="boolean")Z=""+b;else if(b===null)Z="";else{let ve={instancePath:e+"/path",schemaPath:"#/properties/path/oneOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[ve]:i.push(ve),s++}Z!==void 0&&(b=Z,t!==void 0&&(t.path=Z))}var T=j===s;T&&(O=!0,k=0);let L=s;if(s===L)if(b&&typeof b=="object"&&!Array.isArray(b)){let Y;if(b.pathname===void 0&&(Y="pathname")){let Z={instancePath:e+"/path",schemaPath:"#/properties/path/oneOf/1/required",keyword:"required",params:{missingProperty:Y},message:"must have required property '"+Y+"'"};i===null?i=[Z]:i.push(Z),s++}else{if(b.protocol!==void 0){let Z=b.protocol,ve=s;if(typeof Z!="string"){let Ne=typeof Z,pe;if(pe===void 0)if(Ne=="number"||Ne=="boolean")pe=""+Z;else if(Z===null)pe="";else{let ae={instancePath:e+"/path/protocol",schemaPath:"#/properties/path/oneOf/1/properties/protocol/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[ae]:i.push(ae),s++}pe!==void 0&&(Z=pe,b!==void 0&&(b.protocol=pe))}var S=ve===s}else var S=!0;if(S){if(b.hostname!==void 0){let Z=b.hostname,ve=s;if(typeof Z!="string"){let pe=typeof Z,ae;if(ae===void 0)if(pe=="number"||pe=="boolean")ae=""+Z;else if(Z===null)ae="";else{let ye={instancePath:e+"/path/hostname",schemaPath:"#/properties/path/oneOf/1/properties/hostname/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[ye]:i.push(ye),s++}ae!==void 0&&(Z=ae,b!==void 0&&(b.hostname=ae))}var S=ve===s}else var S=!0;if(S)if(b.pathname!==void 0){let Z=b.pathname,ve=s;if(typeof Z!="string"){let pe=typeof Z,ae;if(ae===void 0)if(pe=="number"||pe=="boolean")ae=""+Z;else if(Z===null)ae="";else{let ye={instancePath:e+"/path/pathname",schemaPath:"#/properties/path/oneOf/1/properties/pathname/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[ye]:i.push(ye),s++}ae!==void 0&&(Z=ae,b!==void 0&&(b.pathname=ae))}var S=ve===s}else var S=!0}}}else{let Y={instancePath:e+"/path",schemaPath:"#/properties/path/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[Y]:i.push(Y),s++}var T=L===s;if(T&&O?(O=!1,k=[k,1]):T&&(O=!0,k=1),O)s=N,i!==null&&(N?i.length=N:i=null);else{let Y={instancePath:e+"/path",schemaPath:"#/properties/path/oneOf",keyword:"oneOf",params:{passingSchemas:k},message:"must match exactly one schema in oneOf"};return i===null?i=[Y]:i.push(Y),s++,mr.errors=i,!1}var _=w===s}else var _=!0;if(_){if(t.cookies!==void 0){let b=t.cookies,w=s;if(s===w&&!(b&&typeof b=="object"&&!Array.isArray(b)))return mr.errors=[{instancePath:e+"/cookies",schemaPath:"#/properties/cookies/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var _=w===s}else var _=!0;if(_){if(t.headers!==void 0){let b=t.headers,w=s;if(s===w&&!(b&&typeof b=="object"&&!Array.isArray(b)))return mr.errors=[{instancePath:e+"/headers",schemaPath:"#/properties/headers/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var _=w===s}else var _=!0;if(_){if(t.query!==void 0){let b=t.query,w=s,N=s,O=!1,k=s;if(s===k&&!(b&&typeof b=="object"&&!Array.isArray(b))){let L={instancePath:e+"/query",schemaPath:"#/properties/query/anyOf/0/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[L]:i.push(L),s++}var x=k===s;if(O=O||x,!O){let L=s;if(typeof b!="string"){let Y=typeof b,Z;if(Z===void 0)if(Y=="number"||Y=="boolean")Z=""+b;else if(b===null)Z="";else{let ve={instancePath:e+"/query",schemaPath:"#/properties/query/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[ve]:i.push(ve),s++}Z!==void 0&&(b=Z,t!==void 0&&(t.query=Z))}var x=L===s;O=O||x}if(O)s=N,i!==null&&(N?i.length=N:i=null);else{let L={instancePath:e+"/query",schemaPath:"#/properties/query/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[L]:i.push(L),s++,mr.errors=i,!1}var _=w===s}else var _=!0;if(_){if(t.simulate!==void 0){let b=t.simulate,w=s;if(s===w)if(b&&typeof b=="object"&&!Array.isArray(b)){if(b.end!==void 0){let O=b.end,k=s;if(typeof O!="boolean"){let j;if(j===void 0)if(O==="false"||O===0||O===null)j=!1;else if(O==="true"||O===1)j=!0;else return mr.errors=[{instancePath:e+"/simulate/end",schemaPath:"#/properties/simulate/properties/end/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;j!==void 0&&(O=j,b!==void 0&&(b.end=j))}var v=k===s}else var v=!0;if(v){if(b.split!==void 0){let O=b.split,k=s;if(typeof O!="boolean"){let L;if(L===void 0)if(O==="false"||O===0||O===null)L=!1;else if(O==="true"||O===1)L=!0;else return mr.errors=[{instancePath:e+"/simulate/split",schemaPath:"#/properties/simulate/properties/split/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;L!==void 0&&(O=L,b!==void 0&&(b.split=L))}var v=k===s}else var v=!0;if(v){if(b.error!==void 0){let O=b.error,k=s;if(typeof O!="boolean"){let L;if(L===void 0)if(O==="false"||O===0||O===null)L=!1;else if(O==="true"||O===1)L=!0;else return mr.errors=[{instancePath:e+"/simulate/error",schemaPath:"#/properties/simulate/properties/error/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;L!==void 0&&(O=L,b!==void 0&&(b.error=L))}var v=k===s}else var v=!0;if(v)if(b.close!==void 0){let O=b.close,k=s;if(typeof O!="boolean"){let L;if(L===void 0)if(O==="false"||O===0||O===null)L=!1;else if(O==="true"||O===1)L=!0;else return mr.errors=[{instancePath:e+"/simulate/close",schemaPath:"#/properties/simulate/properties/close/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;L!==void 0&&(O=L,b!==void 0&&(b.close=L))}var v=k===s}else var v=!0}}}else return mr.errors=[{instancePath:e+"/simulate",schemaPath:"#/properties/simulate/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var _=w===s}else var _=!0;if(_){if(t.authority!==void 0){let b=t.authority,w=s;if(typeof b!="string"){let O=typeof b,k;if(k===void 0)if(O=="number"||O=="boolean")k=""+b;else if(b===null)k="";else return mr.errors=[{instancePath:e+"/authority",schemaPath:"#/properties/authority/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;k!==void 0&&(b=k,t!==void 0&&(t.authority=k))}var _=w===s}else var _=!0;if(_){if(t.remoteAddress!==void 0){let b=t.remoteAddress,w=s;if(typeof b!="string"){let O=typeof b,k;if(k===void 0)if(O=="number"||O=="boolean")k=""+b;else if(b===null)k="";else return mr.errors=[{instancePath:e+"/remoteAddress",schemaPath:"#/properties/remoteAddress/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;k!==void 0&&(b=k,t!==void 0&&(t.remoteAddress=k))}var _=w===s}else var _=!0;if(_){if(t.method!==void 0){let b=t.method,w=s;if(typeof b!="string"){let O=typeof b,k;if(k===void 0)if(O=="number"||O=="boolean")k=""+b;else if(b===null)k="";else return mr.errors=[{instancePath:e+"/method",schemaPath:"#/properties/method/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;k!==void 0&&(b=k,t!==void 0&&(t.method=k))}if(!(b==="ACL"||b==="BIND"||b==="CHECKOUT"||b==="CONNECT"||b==="COPY"||b==="DELETE"||b==="GET"||b==="HEAD"||b==="LINK"||b==="LOCK"||b==="M-SEARCH"||b==="MERGE"||b==="MKACTIVITY"||b==="MKCALENDAR"||b==="MKCOL"||b==="MOVE"||b==="NOTIFY"||b==="OPTIONS"||b==="PATCH"||b==="POST"||b==="PROPFIND"||b==="PROPPATCH"||b==="PURGE"||b==="PUT"||b==="REBIND"||b==="REPORT"||b==="SEARCH"||b==="SOURCE"||b==="SUBSCRIBE"||b==="TRACE"||b==="UNBIND"||b==="UNLINK"||b==="UNLOCK"||b==="UNSUBSCRIBE"||b==="acl"||b==="bind"||b==="checkout"||b==="connect"||b==="copy"||b==="delete"||b==="get"||b==="head"||b==="link"||b==="lock"||b==="m-search"||b==="merge"||b==="mkactivity"||b==="mkcalendar"||b==="mkcol"||b==="move"||b==="notify"||b==="options"||b==="patch"||b==="post"||b==="propfind"||b==="proppatch"||b==="purge"||b==="put"||b==="rebind"||b==="report"||b==="search"||b==="source"||b==="subscribe"||b==="trace"||b==="unbind"||b==="unlink"||b==="unlock"||b==="unsubscribe"))return mr.errors=[{instancePath:e+"/method",schemaPath:"#/properties/method/enum",keyword:"enum",params:{allowedValues:v9e.properties.method.enum},message:"must be equal to one of the allowed values"}],!1;var _=w===s}else var _=!0;if(_)if(t.validate!==void 0){let b=t.validate,w=s;if(typeof b!="boolean"){let O;if(O===void 0)if(b==="false"||b===0||b===null)O=!1;else if(b==="true"||b===1)O=!0;else return mr.errors=[{instancePath:e+"/validate",schemaPath:"#/properties/validate/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;O!==void 0&&(b=O,t!==void 0&&(t.validate=O))}var _=w===s}else var _=!0}}}}}}}}}else return mr.errors=[{instancePath:e,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return mr.errors=i,s===0}});var DM=C((PAe,b0)=>{"use strict";var _9e=require("node:assert"),dv=AM(),r9=IM(),i9="The dispatch function has already been invoked",kM=CM();function hv(t,e,n){return typeof n>"u"?new E0(t,e):l9(t,e,n)}function PM(t,e,n,r){return n.once("error",function(l){this.destroyed&&r.destroy(l)}),n.once("close",function(){this.destroyed&&!this._error&&r.destroy()}),n.prepare(()=>t.call(e,n,r))}function l9(t,e,n){if(e=typeof e=="string"?{url:e}:e,e.validate!==!1&&(_9e(typeof t=="function","dispatchFunc should be a function"),!kM(e)))throw new Error(kM.errors.map(s=>s.message));let r=e.server||{},l=e.Request?dv.CustomRequest:dv;if(t.request&&t.request.app===t&&(Object.setPrototypeOf(Object.getPrototypeOf(t.request),l.prototype),Object.setPrototypeOf(Object.getPrototypeOf(t.response),r9.prototype)),typeof n=="function"){let i=new l(e),s=new r9(i,n);return PM(t,r,i,s)}else return new Promise((i,s)=>{let a=new l(e),o=new r9(a,i,s);PM(t,r,a,o)})}function E0(t,e){typeof e=="string"?this.option={url:e}:this.option=Object.assign({},e),this.dispatch=t,this._hasInvoked=!1,this._promise=null,this.option.autoStart!==!1&&process.nextTick(()=>{this._hasInvoked||this.end()})}var E9e=["delete","get","head","options","patch","post","put","trace"];E9e.forEach(t=>{E0.prototype[t]=function(e){if(this._hasInvoked===!0||this._promise)throw new Error(i9);return this.option.url=e,this.option.method=t.toUpperCase(),this}});var b9e=["body","cookies","headers","payload","query"];b9e.forEach(t=>{E0.prototype[t]=function(e){if(this._hasInvoked===!0||this._promise)throw new Error(i9);return this.option[t]=e,this}});E0.prototype.end=function(t){if(this._hasInvoked===!0||this._promise)throw new Error(i9);if(this._hasInvoked=!0,typeof t=="function")l9(this.dispatch,this.option,t);else return this._promise=l9(this.dispatch,this.option),this._promise};Object.getOwnPropertyNames(Promise.prototype).forEach(t=>{t!=="constructor"&&(E0.prototype[t]=function(...e){if(!this._promise){if(this._hasInvoked===!0)throw new Error(i9);this._hasInvoked=!0,this._promise=l9(this.dispatch,this.option)}return this._promise[t](...e)})});function T9e(t){return t instanceof dv||t instanceof r9||t&&t.constructor&&t.constructor.name==="_CustomLMRRequest"}b0.exports=hv;b0.exports.default=hv;b0.exports.inject=hv;b0.exports.isInjection=T9e});var KM=C((DAe,u9)=>{"use strict";var S9e="4.26.0",x9e=Hx(),mv=require("node:http"),T0,{kAvvioBoot:S0,kChildren:gv,kServerBindings:LM,kBodyLimit:A9e,kRoutePrefix:FM,kLogLevel:w9e,kLogSerializers:R9e,kHooks:yv,kSchemaController:as,kRequestAcceptVersion:O9e,kReplySerializerDefault:MM,kContentTypeParser:N9e,kReply:I9e,kRequest:C9e,kFourOhFour:k9e,kState:cr,kOptions:vv,kPluginNameChain:x0,kSchemaErrorFormatter:_v,kErrorHandler:s9,kKeepAliveConnections:Ev,kChildLoggerFactory:bv,kGenReqId:Tv}=Mr(),{createServer:P9e,compileValidateHTTPVersion:D9e}=dA(),A0=n8(),a9=v8(),L9e=_8(),{supportedMethods:F9e}=Sg(),Cu=Og(),Fa=Mg(),$M=Ny(),{Hooks:M9e,hookRunnerApplication:jM,supportedHooks:Sv}=$3(),{createLogger:$9e,createChildLogger:UM,defaultChildLoggerFactory:j9e}=r1(),BM=Ly(),{getGenReqId:HM,reqIdGenFactory:qM}=j8(),{buildRouting:U9e,validateBodyLimitOption:B9e}=KF(),H9e=nM(),WM=iM(),q9e=hM(),{FSTDEP009:V9e}=l3(),z9e=gM(),{appendStackTrace:G9e,AVVIO_ERRORS_MAP:VM,...Ma}=al(),{defaultInitOptions:Ul}=WM,{FST_ERR_ASYNC_CONSTRAINT:X9e,FST_ERR_BAD_URL:W9e,FST_ERR_FORCE_CLOSE_CONNECTIONS_IDLE_NOT_AVAILABLE:K9e,FST_ERR_OPTIONS_NOT_OBJ:Y9e,FST_ERR_QSP_NOT_FN:J9e,FST_ERR_SCHEMA_CONTROLLER_BUCKET_OPT_NOT_FN:Q9e,FST_ERR_AJV_CUSTOM_OPTIONS_OPT_NOT_OBJ:Z9e,FST_ERR_AJV_CUSTOM_OPTIONS_OPT_NOT_ARR:e7e,FST_ERR_VERSION_CONSTRAINT_NOT_STR:t7e,FST_ERR_INSTANCE_ALREADY_LISTENING:n7e,FST_ERR_REOPENED_CLOSE_SERVER:r7e,FST_ERR_ROUTE_REWRITE_NOT_STR:l7e,FST_ERR_SCHEMA_ERROR_FORMATTER_NOT_FN:zM}=Ma,{buildErrorHandler:GM}=F1();function i7e(t){let e={};return["errorHandler","logLevel","logSerializers"].concat(Sv).forEach(r=>{e[r]=t.store[r]}),Object.assign({},e)}function o9(t){if(t=t||{},typeof t!="object")throw new Y9e;if(t.querystringParser&&typeof t.querystringParser!="function")throw new J9e(typeof t.querystringParser);if(t.schemaController&&t.schemaController.bucket&&typeof t.schemaController.bucket!="function")throw new Q9e(typeof t.schemaController.bucket);B9e(t.bodyLimit);let e=t.requestIdHeader===!1?!1:(t.requestIdHeader||Ul.requestIdHeader).toLowerCase(),n=qM(e,t.genReqId),r=t.requestIdLogLabel||"reqId",l=t.bodyLimit||Ul.bodyLimit,i=t.disableRequestLogging||!1,s=Object.assign({customOptions:{},plugins:[]},t.ajv),a=t.frameworkErrors;if(!s.customOptions||Object.prototype.toString.call(s.customOptions)!=="[object Object]")throw new Z9e(typeof s.customOptions);if(!s.plugins||!Array.isArray(s.plugins))throw new e7e(typeof s.plugins);let{logger:o,hasLogger:c}=$9e(t);t.connectionTimeout=t.connectionTimeout||Ul.connectionTimeout,t.keepAliveTimeout=t.keepAliveTimeout||Ul.keepAliveTimeout,t.maxRequestsPerSocket=t.maxRequestsPerSocket||Ul.maxRequestsPerSocket,t.requestTimeout=t.requestTimeout||Ul.requestTimeout,t.logger=o,t.requestIdHeader=e,t.requestIdLogLabel=r,t.disableRequestLogging=i,t.ajv=s,t.clientErrorHandler=t.clientErrorHandler||ae;let f=WM(t);t.exposeHeadRoutes=f.exposeHeadRoutes;let p=t.constraints;t.versioning&&(V9e(),p={...p,version:{name:"version",mustMatchWhenDerived:!0,storage:t.versioning.storage,deriveConstraint:t.versioning.deriveVersion,validate(J){if(typeof J!="string")throw new t7e}}});let m=U9e({config:{defaultRoute:ye,onBadUrl:q,constraints:p,ignoreTrailingSlash:t.ignoreTrailingSlash||Ul.ignoreTrailingSlash,ignoreDuplicateSlashes:t.ignoreDuplicateSlashes||Ul.ignoreDuplicateSlashes,maxParamLength:t.maxParamLength||Ul.maxParamLength,caseSensitive:t.caseSensitive,allowUnsafeRegex:t.allowUnsafeRegex||Ul.allowUnsafeRegex,buildPrettyMeta:i7e,querystringParser:t.querystringParser,useSemicolonDelimiter:t.useSemicolonDelimiter??Ul.useSemicolonDelimiter}}),h=H9e(t),g=ut(m,t);t.http2SessionTimeout=f.http2SessionTimeout;let{server:_,listen:S}=P9e(t,g),T=typeof _.closeAllConnections=="function",x=typeof _.closeIdleConnections=="function",v=t.forceCloseConnections;if(v==="idle"&&!x)throw new K9e;typeof v!="boolean"&&(v=x?"idle":!1);let b=!T&&v===!0?new Set:z9e(),w=A0.setupResponseListeners,N=$M.buildSchemaController(null,t.schemaController),O={[cr]:{listening:!1,closing:!1,started:!1,ready:!1,booting:!1,readyPromise:null},[Ev]:b,[vv]:t,[gv]:[],[LM]:[],[A9e]:l,[FM]:"",[w9e]:"",[R9e]:null,[yv]:new M9e,[as]:N,[_v]:null,[s9]:GM(),[bv]:j9e,[MM]:null,[N9e]:new Fa(l,t.onProtoPoisoning||Ul.onProtoPoisoning,t.onConstructorPoisoning||Ul.onConstructorPoisoning),[I9e]:A0.buildReply(A0),[C9e]:a9.buildRequest(a9,t.trustProxy),[k9e]:h,[BM.kRegisteredPlugins]:[],[x0]:["fastify"],[S0]:null,[Tv]:n,routing:g,getDefaultRoute:m.getDefaultRoute.bind(m),setDefaultRoute:m.setDefaultRoute.bind(m),delete:function(me,Te,Ue){return m.prepareRoute.call(this,{method:"DELETE",url:me,options:Te,handler:Ue})},get:function(me,Te,Ue){return m.prepareRoute.call(this,{method:"GET",url:me,options:Te,handler:Ue})},head:function(me,Te,Ue){return m.prepareRoute.call(this,{method:"HEAD",url:me,options:Te,handler:Ue})},patch:function(me,Te,Ue){return m.prepareRoute.call(this,{method:"PATCH",url:me,options:Te,handler:Ue})},post:function(me,Te,Ue){return m.prepareRoute.call(this,{method:"POST",url:me,options:Te,handler:Ue})},put:function(me,Te,Ue){return m.prepareRoute.call(this,{method:"PUT",url:me,options:Te,handler:Ue})},options:function(me,Te,Ue){return m.prepareRoute.call(this,{method:"OPTIONS",url:me,options:Te,handler:Ue})},all:function(me,Te,Ue){return m.prepareRoute.call(this,{method:F9e,url:me,options:Te,handler:Ue})},route:function(me){return m.route.call(this,{options:me})},hasRoute:function(me){return m.hasRoute.call(this,{options:me})},findRoute:function(me){return m.findRoute(me)},log:o,withTypeProvider:ve,addHook:Ne,addSchema:pe,getSchema:N.getSchema.bind(N),getSchemas:N.getSchemas.bind(N),setValidatorCompiler:te,setSerializerCompiler:wt,setSchemaController:Ge,setReplySerializer:$t,setSchemaErrorFormatter:Un,setGenReqId:pt,addContentTypeParser:Fa.helpers.addContentTypeParser,hasContentTypeParser:Fa.helpers.hasContentTypeParser,getDefaultJsonParser:Fa.defaultParsers.getDefaultJsonParser,defaultTextParser:Fa.defaultParsers.defaultTextParser,removeContentTypeParser:Fa.helpers.removeContentTypeParser,removeAllContentTypeParsers:Fa.helpers.removeAllContentTypeParsers,register:null,after:null,ready:null,onClose:null,close:null,printPlugins:null,hasPlugin:function(J){return this[BM.kRegisteredPlugins].includes(J)||this[x0].includes(J)},listen:S,server:_,addresses:function(){let J=this[LM].map(me=>me.address());return J.push(this.server.address()),J.filter(me=>me)},decorate:Cu.add,hasDecorator:Cu.exist,decorateReply:Cu.decorateReply,decorateRequest:Cu.decorateRequest,hasRequestDecorator:Cu.existRequest,hasReplyDecorator:Cu.existReply,inject:Y,printRoutes:bn,setNotFoundHandler:re,setErrorHandler:Ke,setChildLoggerFactory:Xe,initialConfig:f,addConstraintStrategy:m.addConstraintStrategy.bind(m),hasConstraintStrategy:m.hasConstraintStrategy.bind(m)};Object.defineProperties(O,{listeningOrigin:{get(){let J=this.addresses().slice(-1).pop();if(typeof J=="string")return J;let me=J.family==="IPv6"?`[${J.address}]`:J.address;return`${this[vv].https?"https":"http"}://${me}:${J.port}`}},pluginName:{configurable:!0,get(){return this[x0].length>1?this[x0].join(" -> "):this[x0][0]}},prefix:{configurable:!0,get(){return this[FM]}},validatorCompiler:{configurable:!0,get(){return this[as].getValidatorCompiler()}},serializerCompiler:{configurable:!0,get(){return this[as].getSerializerCompiler()}},childLoggerFactory:{configurable:!0,get(){return this[bv]}},version:{configurable:!0,get(){return S9e}},errorHandler:{configurable:!0,get(){return this[s9].func}},genReqId:{configurable:!0,get(){return this[Tv]}}}),t.schemaErrorFormatter&&(XM(t.schemaErrorFormatter),O[_v]=t.schemaErrorFormatter.bind(O));let k=Number(t.pluginTimeout),j=x9e(O,{autostart:!1,timeout:isNaN(k)===!1?k:Ul.pluginTimeout,expose:{use:"register"}});j.override=q9e,j.on("start",()=>O[cr].started=!0),O[S0]=O.ready,O.ready=Z,O.printPlugins=j.prettyPrint.bind(j),j.once("preReady",()=>{O.onClose((J,me)=>{O[cr].closing=!0,m.closeRoutes(),jM("preClose",O[S0],O,function(){if(O[cr].listening){if(v==="idle")J.server.closeIdleConnections();else if(T&&v)J.server.closeAllConnections();else if(v===!0)for(let Te of O[Ev])Te.destroy(),O[Ev].delete(Te)}!t.serverFactory||O[cr].listening?J.server.close(function(Te){Te&&Te.code!=="ERR_SERVER_NOT_RUNNING"?me(null):me()}):process.nextTick(me,null)})})});let L=new L9e({server:O,config:{}});O.setNotFoundHandler(),h.arrange404(O),m.setup(t,{avvio:j,fourOhFour:h,logger:o,hasLogger:c,setupResponseListeners:w,throwIfAlreadyStarted:Q,validateHTTPVersion:D9e(t),keepAliveConnections:b}),_.on("clientError",t.clientErrorHandler.bind(O));try{let me=require("node:diagnostics_channel").channel("fastify.initialization");me.hasSubscribers&&me.publish({fastify:O})}catch{}return"asyncDispose"in Symbol&&(O[Symbol.asyncDispose]=function(){return O.close()}),O;function Q(J){if(O[cr].started)throw new n7e(J)}function Y(J,me){if(T0===void 0&&(T0=DM()),O[cr].started){if(O[cr].closing){let Te=new r7e;if(me){me(Te);return}else return Promise.reject(Te)}return T0(g,J,me)}if(me)this.ready(Te=>{Te?me(Te,null):T0(g,J,me)});else return T0((Te,Ue)=>{this.ready(function(lt){if(lt){Ue.emit("error",lt);return}g(Te,Ue)})},J)}function Z(J){if(this[cr].readyPromise!==null){if(J!=null){this[cr].readyPromise.then(()=>J(null,O),J);return}return this[cr].readyPromise}let me,Te;if(process.nextTick(Ue),this[cr].readyPromise=new Promise(function(Ce,Rt){me=Ce,Te=Rt}),J)this[cr].readyPromise.then(()=>J(null,O),J);else return this[cr].readyPromise;function Ue(){O[S0]((Ce,Rt)=>{Ce||O[cr].started||O[cr].ready||O[cr].booting?lt(Ce):(O[cr].booting=!0,jM("onReady",O[S0],O,lt)),Rt()})}function lt(Ce){if(Ce=Ce!=null&&VM[Ce.code]!=null?G9e(Ce,new VM[Ce.code](Ce.message)):Ce,Ce)return Te(Ce);me(O),O[cr].booting=!1,O[cr].ready=!0,O[cr].promise=null}}function ve(){return this}function Ne(J,me){if(Q('Cannot call "addHook"!'),me==null)throw new Ma.FST_ERR_HOOK_INVALID_HANDLER(J,me);if(J==="onSend"||J==="preSerialization"||J==="onError"||J==="preParsing"){if(me.constructor.name==="AsyncFunction"&&me.length===4)throw new Ma.FST_ERR_HOOK_INVALID_ASYNC_HANDLER}else if(J==="onReady"||J==="onListen"){if(me.constructor.name==="AsyncFunction"&&me.length!==0)throw new Ma.FST_ERR_HOOK_INVALID_ASYNC_HANDLER}else if(J==="onRequestAbort"){if(me.constructor.name==="AsyncFunction"&&me.length!==1)throw new Ma.FST_ERR_HOOK_INVALID_ASYNC_HANDLER}else if(me.constructor.name==="AsyncFunction"&&me.length===3)throw new Ma.FST_ERR_HOOK_INVALID_ASYNC_HANDLER;return J==="onClose"?this.onClose(me):J==="onReady"||J==="onListen"||J==="onRoute"?this[yv].add(J,me):this.after((Ue,lt)=>{Te.call(this,J,me),lt(Ue)}),this;function Te(Ue,lt){this[yv].add(Ue,lt),this[gv].forEach(Ce=>Te.call(Ce,Ue,lt))}}function pe(J){return Q('Cannot call "addSchema"!'),this[as].add(J),this[gv].forEach(me=>me.addSchema(J)),this}function ae(J,me){if(J.code==="ECONNRESET"||me.destroyed)return;let Te,Ue,lt,Ce;J.code==="ERR_HTTP_REQUEST_TIMEOUT"?(Ue="408",lt=mv.STATUS_CODES[Ue],Te=`{"error":"${lt}","message":"Client Timeout","statusCode":408}`,Ce="timeout"):J.code==="HPE_HEADER_OVERFLOW"?(Ue="431",lt=mv.STATUS_CODES[Ue],Te=`{"error":"${lt}","message":"Exceeded maximum allowed HTTP header size","statusCode":431}`,Ce="header_overflow"):(Ue="400",lt=mv.STATUS_CODES[Ue],Te=`{"error":"${lt}","message":"Client Error","statusCode":400}`,Ce="error"),this.log.trace({err:J},`client ${Ce}`),me.writable&&me.write(`HTTP/1.1 ${Ue} ${lt}\r
+Content-Length: ${Te.length}\r
Content-Type: application/json\r
\r
-${Ee}`),he.destroy(Y)}function ge(Y,he){Y.headers["accept-version"]!==void 0&&(Y.headers[P8e]=Y.headers["accept-version"],Y.headers["accept-version"]=void 0),h.router.lookup(Y,he)}function H(Y,he,Ee){if(a){let nt=pM(L.server,he),Ie=cM(L,o,he,nt),At=new z8(nt,null,he,null,Ie,L),qn=new m0(Ee,At,Ie);return i===!1&&Ie.info({req:At},"incoming request"),a(new Z8e(Y),At,qn)}let je=`{"error":"Bad Request","code":"FST_ERR_BAD_URL","message":"'${Y}' is not a valid url component","statusCode":400}`;Ee.writeHead(400,{"Content-Type":"application/json","Content-Length":je.length}),Ee.end(je)}function re(Y,he,Ee){if(Y!==!1)return function(nt){if(nt){if(a){let At=pM(L.server,he),qn=cM(L,o,he,At),wt=new z8(At,null,he,null,qn,L),Ut=new m0(Ee,wt,qn);return i===!1&&qn.info({req:wt},"incoming request"),a(new Q8e,wt,Ut)}let Ie='{"error":"Internal Server Error","message":"Unexpected error from async constraint","statusCode":500}';Ee.writeHead(500,{"Content-Type":"application/json","Content-Length":Ie.length}),Ee.end(Ie)}}}function ne(Y,he){return J('Cannot call "setNotFoundHandler"!'),h.setNotFoundHandler.call(this,Y,he,$,m.routeHandler),this}function ee(Y){return J('Cannot call "setValidatorCompiler"!'),this[rs].setValidatorCompiler(Y),this}function Fn(Y){return J('Cannot call "setSchemaErrorFormatter"!'),yM(Y),this[Jy]=Y.bind(this),this}function xt(Y){return J('Cannot call "setSerializerCompiler"!'),this[rs].setSerializerCompiler(Y),this}function Ve(Y){J('Cannot call "setSchemaController"!');let he=this[rs],Ee=oM.buildSchemaController(he,Object.assign({},he.opts,Y));return this[rs]=Ee,this.getSchema=Ee.getSchema.bind(Ee),this.getSchemas=Ee.getSchemas.bind(Ee),this}function Lt(Y){return J('Cannot call "setReplySerializer"!'),this[aM]=Y,this}function Xe(Y){return J('Cannot call "setErrorHandler"!'),this[V8]=gM(this[V8],Y.bind(this)),this}function ze(Y){return J('Cannot call "setChildLoggerFactory"!'),this[Zy]=Y,this}function vn(Y={}){return Y.includeMeta=Y.includeHooks?Y.includeMeta?tv.concat(Y.includeMeta):tv:Y.includeMeta,m.printRoutes(Y)}function at(Y,{rewriteUrl:he,logger:Ee}){let je;return function(Ie,At){if(je===void 0&&(je=Y.isAsyncConstraint()),he){Ie.originalUrl=Ie.url;let qn=he.call(O,Ie);if(typeof qn=="string")Ie.url=qn;else{let wt=new u9e(Ie.url,typeof qn);Ie.destroy(wt)}}Y.routing(Ie,At,re(je,Ie,At))}}function ct(Y){return J('Cannot call "setGenReqId"!'),this[ev]=dM(this[Yy].requestIdHeader,Y),this}}G8.errorCodes=ka;function yM(t){if(typeof t!="function")throw new mM(typeof t);if(t.constructor.name==="AsyncFunction")throw new mM("AsyncFunction")}X8.exports=G8;X8.exports.fastify=G8;X8.exports.default=G8});var LB=C((owe,DB)=>{"use strict";DB.exports=Error});var MB=C((uwe,FB)=>{"use strict";FB.exports=EvalError});var jB=C((cwe,$B)=>{"use strict";$B.exports=RangeError});var BB=C((fwe,UB)=>{"use strict";UB.exports=ReferenceError});var j_=C((pwe,HB)=>{"use strict";HB.exports=SyntaxError});var t4=C((dwe,qB)=>{"use strict";qB.exports=TypeError});var zB=C((hwe,VB)=>{"use strict";VB.exports=URIError});var XB=C((mwe,GB)=>{"use strict";GB.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var l=42;e[n]=l;for(n in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(e,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(e,n);if(s.value!==l||s.enumerable!==!0)return!1}return!0}});var YB=C((gwe,KB)=>{"use strict";var WB=typeof Symbol<"u"&&Symbol,ehe=XB();KB.exports=function(){return typeof WB!="function"||typeof Symbol!="function"||typeof WB("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:ehe()}});var QB=C((ywe,JB)=>{"use strict";var U_={__proto__:null,foo:{}},the=Object;JB.exports=function(){return{__proto__:U_}.foo===U_.foo&&!(U_ instanceof the)}});var tH=C((vwe,eH)=>{"use strict";var nhe="Function.prototype.bind called on incompatible ",rhe=Object.prototype.toString,lhe=Math.max,ihe="[object Function]",ZB=function(e,n){for(var r=[],l=0;l{"use strict";var ohe=tH();nH.exports=Function.prototype.bind||ohe});var lH=C((Ewe,rH)=>{"use strict";var uhe=Function.prototype.call,che=Object.prototype.hasOwnProperty,fhe=p7();rH.exports=fhe.call(uhe,che)});var Ja=C((bwe,uH)=>{"use strict";var Ct,phe=LB(),dhe=MB(),hhe=jB(),mhe=BB(),i4=j_(),l4=t4(),ghe=zB(),oH=Function,B_=function(t){try{return oH('"use strict"; return ('+t+").constructor;")()}catch{}},Ka=Object.getOwnPropertyDescriptor;if(Ka)try{Ka({},"")}catch{Ka=null}var H_=function(){throw new l4},yhe=Ka?function(){try{return arguments.callee,H_}catch{try{return Ka(arguments,"callee").get}catch{return H_}}}():H_,n4=YB()(),vhe=QB()(),jr=Object.getPrototypeOf||(vhe?function(t){return t.__proto__}:null),r4={},_he=typeof Uint8Array>"u"||!jr?Ct:jr(Uint8Array),Ya={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Ct:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Ct:ArrayBuffer,"%ArrayIteratorPrototype%":n4&&jr?jr([][Symbol.iterator]()):Ct,"%AsyncFromSyncIteratorPrototype%":Ct,"%AsyncFunction%":r4,"%AsyncGenerator%":r4,"%AsyncGeneratorFunction%":r4,"%AsyncIteratorPrototype%":r4,"%Atomics%":typeof Atomics>"u"?Ct:Atomics,"%BigInt%":typeof BigInt>"u"?Ct:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Ct:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Ct:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Ct:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":phe,"%eval%":eval,"%EvalError%":dhe,"%Float32Array%":typeof Float32Array>"u"?Ct:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Ct:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Ct:FinalizationRegistry,"%Function%":oH,"%GeneratorFunction%":r4,"%Int8Array%":typeof Int8Array>"u"?Ct:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Ct:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Ct:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":n4&&jr?jr(jr([][Symbol.iterator]())):Ct,"%JSON%":typeof JSON=="object"?JSON:Ct,"%Map%":typeof Map>"u"?Ct:Map,"%MapIteratorPrototype%":typeof Map>"u"||!n4||!jr?Ct:jr(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Ct:Promise,"%Proxy%":typeof Proxy>"u"?Ct:Proxy,"%RangeError%":hhe,"%ReferenceError%":mhe,"%Reflect%":typeof Reflect>"u"?Ct:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Ct:Set,"%SetIteratorPrototype%":typeof Set>"u"||!n4||!jr?Ct:jr(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Ct:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":n4&&jr?jr(""[Symbol.iterator]()):Ct,"%Symbol%":n4?Symbol:Ct,"%SyntaxError%":i4,"%ThrowTypeError%":yhe,"%TypedArray%":_he,"%TypeError%":l4,"%Uint8Array%":typeof Uint8Array>"u"?Ct:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Ct:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Ct:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Ct:Uint32Array,"%URIError%":ghe,"%WeakMap%":typeof WeakMap>"u"?Ct:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Ct:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Ct:WeakSet};if(jr)try{null.error}catch(t){iH=jr(jr(t)),Ya["%Error.prototype%"]=iH}var iH,Ehe=function t(e){var n;if(e==="%AsyncFunction%")n=B_("async function () {}");else if(e==="%GeneratorFunction%")n=B_("function* () {}");else if(e==="%AsyncGeneratorFunction%")n=B_("async function* () {}");else if(e==="%AsyncGenerator%"){var r=t("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(e==="%AsyncIteratorPrototype%"){var l=t("%AsyncGenerator%");l&&jr&&(n=jr(l.prototype))}return Ya[e]=n,n},sH={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},i5=p7(),d7=lH(),bhe=i5.call(Function.call,Array.prototype.concat),The=i5.call(Function.apply,Array.prototype.splice),aH=i5.call(Function.call,String.prototype.replace),h7=i5.call(Function.call,String.prototype.slice),She=i5.call(Function.call,RegExp.prototype.exec),xhe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ahe=/\\(\\)?/g,whe=function(e){var n=h7(e,0,1),r=h7(e,-1);if(n==="%"&&r!=="%")throw new i4("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new i4("invalid intrinsic syntax, expected opening `%`");var l=[];return aH(e,xhe,function(i,s,a,o){l[l.length]=a?aH(o,Ahe,"$1"):s||i}),l},Rhe=function(e,n){var r=e,l;if(d7(sH,r)&&(l=sH[r],r="%"+l[0]+"%"),d7(Ya,r)){var i=Ya[r];if(i===r4&&(i=Ehe(r)),typeof i>"u"&&!n)throw new l4("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:l,name:r,value:i}}throw new i4("intrinsic "+e+" does not exist!")};uH.exports=function(e,n){if(typeof e!="string"||e.length===0)throw new l4("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new l4('"allowMissing" argument must be a boolean');if(She(/^%?[^%]*%?$/,e)===null)throw new i4("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=whe(e),l=r.length>0?r[0]:"",i=Rhe("%"+l+"%",n),s=i.name,a=i.value,o=!1,f=i.alias;f&&(l=f[0],The(r,bhe([0,1],f)));for(var c=1,p=!0;c=r.length){var _=Ka(a,m);p=!!_,p&&"get"in _&&!("originalValue"in _.get)?a=_.get:a=a[m]}else p=d7(a,m),a=a[m];p&&!o&&(Ya[s]=a)}}return a}});var g7=C((Twe,cH)=>{"use strict";var Ohe=Ja(),m7=Ohe("%Object.defineProperty%",!0)||!1;if(m7)try{m7({},"a",{value:1})}catch{m7=!1}cH.exports=m7});var q_=C((Swe,fH)=>{"use strict";var Nhe=Ja(),y7=Nhe("%Object.getOwnPropertyDescriptor%",!0);if(y7)try{y7([],"length")}catch{y7=null}fH.exports=y7});var mH=C((xwe,hH)=>{"use strict";var pH=g7(),Ihe=j_(),s4=t4(),dH=q_();hH.exports=function(e,n,r){if(!e||typeof e!="object"&&typeof e!="function")throw new s4("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new s4("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new s4("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new s4("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new s4("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new s4("`loose`, if provided, must be a boolean");var l=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,a=arguments.length>6?arguments[6]:!1,o=!!dH&&dH(e,n);if(pH)pH(e,n,{configurable:s===null&&o?o.configurable:!s,enumerable:l===null&&o?o.enumerable:!l,value:r,writable:i===null&&o?o.writable:!i});else if(a||!l&&!i&&!s)e[n]=r;else throw new Ihe("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var vH=C((Awe,yH)=>{"use strict";var V_=g7(),gH=function(){return!!V_};gH.hasArrayLengthDefineBug=function(){if(!V_)return null;try{return V_([],"length",{value:1}).length!==1}catch{return!0}};yH.exports=gH});var SH=C((wwe,TH)=>{"use strict";var Che=Ja(),_H=mH(),khe=vH()(),EH=q_(),bH=t4(),Phe=Che("%Math.floor%");TH.exports=function(e,n){if(typeof e!="function")throw new bH("`fn` is not a function");if(typeof n!="number"||n<0||n>4294967295||Phe(n)!==n)throw new bH("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],l=!0,i=!0;if("length"in e&&EH){var s=EH(e,"length");s&&!s.configurable&&(l=!1),s&&!s.writable&&(i=!1)}return(l||i||!r)&&(khe?_H(e,"length",n,!0,!0):_H(e,"length",n)),e}});var NH=C((Rwe,v7)=>{"use strict";var z_=p7(),_7=Ja(),Dhe=SH(),Lhe=t4(),wH=_7("%Function.prototype.apply%"),RH=_7("%Function.prototype.call%"),OH=_7("%Reflect.apply%",!0)||z_.call(RH,wH),xH=g7(),Fhe=_7("%Math.max%");v7.exports=function(e){if(typeof e!="function")throw new Lhe("a function is required");var n=OH(z_,RH,arguments);return Dhe(n,1+Fhe(0,e.length-(arguments.length-1)),!0)};var AH=function(){return OH(z_,wH,arguments)};xH?xH(v7.exports,"apply",{value:AH}):v7.exports.apply=AH});var PH=C((Owe,kH)=>{"use strict";var IH=Ja(),CH=NH(),Mhe=CH(IH("String.prototype.indexOf"));kH.exports=function(e,n){var r=IH(e,!!n);return typeof r=="function"&&Mhe(e,".prototype.")>-1?CH(r):r}});var LH=C((Nwe,DH)=>{DH.exports=require("util").inspect});var tq=C((Iwe,eq)=>{var tE=typeof Map=="function"&&Map.prototype,G_=Object.getOwnPropertyDescriptor&&tE?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,b7=tE&&G_&&typeof G_.get=="function"?G_.get:null,FH=tE&&Map.prototype.forEach,nE=typeof Set=="function"&&Set.prototype,X_=Object.getOwnPropertyDescriptor&&nE?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,T7=nE&&X_&&typeof X_.get=="function"?X_.get:null,MH=nE&&Set.prototype.forEach,$he=typeof WeakMap=="function"&&WeakMap.prototype,a5=$he?WeakMap.prototype.has:null,jhe=typeof WeakSet=="function"&&WeakSet.prototype,o5=jhe?WeakSet.prototype.has:null,Uhe=typeof WeakRef=="function"&&WeakRef.prototype,$H=Uhe?WeakRef.prototype.deref:null,Bhe=Boolean.prototype.valueOf,Hhe=Object.prototype.toString,qhe=Function.prototype.toString,Vhe=String.prototype.match,rE=String.prototype.slice,_s=String.prototype.replace,zhe=String.prototype.toUpperCase,jH=String.prototype.toLowerCase,WH=RegExp.prototype.test,UH=Array.prototype.concat,Di=Array.prototype.join,Ghe=Array.prototype.slice,BH=Math.floor,Y_=typeof BigInt=="function"?BigInt.prototype.valueOf:null,W_=Object.getOwnPropertySymbols,J_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,a4=typeof Symbol=="function"&&typeof Symbol.iterator=="object",fl=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===a4||!0)?Symbol.toStringTag:null,KH=Object.prototype.propertyIsEnumerable,HH=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function qH(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||WH.call(/e/,e))return e;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var r=t<0?-BH(-t):BH(t);if(r!==t){var l=String(r),i=rE.call(e,l.length+1);return _s.call(l,n,"$&_")+"."+_s.call(_s.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return _s.call(e,n,"$&_")}var Q_=LH(),VH=Q_.custom,zH=JH(VH)?VH:null;eq.exports=function t(e,n,r,l){var i=n||{};if(vs(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(vs(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=vs(i,"customInspect")?i.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(vs(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(vs(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=i.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return ZH(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var o=String(e);return a?qH(e,o):o}if(typeof e=="bigint"){var f=String(e)+"n";return a?qH(e,f):f}var c=typeof i.depth>"u"?5:i.depth;if(typeof r>"u"&&(r=0),r>=c&&c>0&&typeof e=="object")return Z_(e)?"[Array]":"[Object]";var p=cme(i,r);if(typeof l>"u")l=[];else if(QH(l,e)>=0)return"[Circular]";function m(Q,ye,Oe){if(ye&&(l=Ghe.call(l),l.push(ye)),Oe){var fe={depth:i.depth};return vs(i,"quoteStyle")&&(fe.quoteStyle=i.quoteStyle),t(Q,fe,r+1,l)}return t(Q,i,r+1,l)}if(typeof e=="function"&&!GH(e)){var h=tme(e),g=E7(e,m);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(g.length>0?" { "+Di.call(g,", ")+" }":"")}if(JH(e)){var _=a4?_s.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):J_.call(e);return typeof e=="object"&&!a4?s5(_):_}if(ame(e)){for(var S="<"+jH.call(String(e.nodeName)),T=e.attributes||[],x=0;x",e.childNodes&&e.childNodes.length&&(S+="..."),S+=""+jH.call(String(e.nodeName))+">",S}if(Z_(e)){if(e.length===0)return"[]";var v=E7(e,m);return p&&!ume(v)?"["+eE(v,p)+"]":"[ "+Di.call(v,", ")+" ]"}if(Khe(e)){var b=E7(e,m);return!("cause"in Error.prototype)&&"cause"in e&&!KH.call(e,"cause")?"{ ["+String(e)+"] "+Di.call(UH.call("[cause]: "+m(e.cause),b),", ")+" }":b.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+Di.call(b,", ")+" }"}if(typeof e=="object"&&s){if(zH&&typeof e[zH]=="function"&&Q_)return Q_(e,{depth:c-r});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(nme(e)){var w=[];return FH&&FH.call(e,function(Q,ye){w.push(m(ye,e,!0)+" => "+m(Q,e))}),XH("Map",b7.call(e),w,p)}if(ime(e)){var N=[];return MH&&MH.call(e,function(Q){N.push(m(Q,e))}),XH("Set",T7.call(e),N,p)}if(rme(e))return K_("WeakMap");if(sme(e))return K_("WeakSet");if(lme(e))return K_("WeakRef");if(Jhe(e))return s5(m(Number(e)));if(Zhe(e))return s5(m(Y_.call(e)));if(Qhe(e))return s5(Bhe.call(e));if(Yhe(e))return s5(m(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(e===global)return"{ [object globalThis] }";if(!Whe(e)&&!GH(e)){var O=E7(e,m),k=HH?HH(e)===Object.prototype:e instanceof Object||e.constructor===Object,$=e instanceof Object?"":"null prototype",L=!k&&fl&&Object(e)===e&&fl in e?rE.call(Es(e),8,-1):$?"Object":"",J=k||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",K=J+(L||$?"["+Di.call(UH.call([],L||[],$||[]),": ")+"] ":"");return O.length===0?K+"{}":p?K+"{"+eE(O,p)+"}":K+"{ "+Di.call(O,", ")+" }"}return String(e)};function YH(t,e,n){var r=(n.quoteStyle||e)==="double"?'"':"'";return r+t+r}function Xhe(t){return _s.call(String(t),/"/g,""")}function Z_(t){return Es(t)==="[object Array]"&&(!fl||!(typeof t=="object"&&fl in t))}function Whe(t){return Es(t)==="[object Date]"&&(!fl||!(typeof t=="object"&&fl in t))}function GH(t){return Es(t)==="[object RegExp]"&&(!fl||!(typeof t=="object"&&fl in t))}function Khe(t){return Es(t)==="[object Error]"&&(!fl||!(typeof t=="object"&&fl in t))}function Yhe(t){return Es(t)==="[object String]"&&(!fl||!(typeof t=="object"&&fl in t))}function Jhe(t){return Es(t)==="[object Number]"&&(!fl||!(typeof t=="object"&&fl in t))}function Qhe(t){return Es(t)==="[object Boolean]"&&(!fl||!(typeof t=="object"&&fl in t))}function JH(t){if(a4)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!J_)return!1;try{return J_.call(t),!0}catch{}return!1}function Zhe(t){if(!t||typeof t!="object"||!Y_)return!1;try{return Y_.call(t),!0}catch{}return!1}var eme=Object.prototype.hasOwnProperty||function(t){return t in this};function vs(t,e){return eme.call(t,e)}function Es(t){return Hhe.call(t)}function tme(t){if(t.name)return t.name;var e=Vhe.call(qhe.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function QH(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;ne.maxStringLength){var n=t.length-e.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return ZH(rE.call(t,0,e.maxStringLength),e)+r}var l=_s.call(_s.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,ome);return YH(l,"single",e)}function ome(t){var e=t.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return n?"\\"+n:"\\x"+(e<16?"0":"")+zhe.call(e.toString(16))}function s5(t){return"Object("+t+")"}function K_(t){return t+" { ? }"}function XH(t,e,n,r){var l=r?eE(n,r):Di.call(n,", ");return t+" ("+e+") {"+l+"}"}function ume(t){for(var e=0;e=0)return!1;return!0}function cme(t,e){var n;if(t.indent===" ")n=" ";else if(typeof t.indent=="number"&&t.indent>0)n=Di.call(Array(t.indent+1)," ");else return null;return{base:n,prev:Di.call(Array(e+1),n)}}function eE(t,e){if(t.length===0)return"";var n=`
-`+e.prev+e.base;return n+Di.call(t,","+n)+`
-`+e.prev}function E7(t,e){var n=Z_(t),r=[];if(n){r.length=t.length;for(var l=0;l{"use strict";var nq=Ja(),o4=PH(),fme=tq(),pme=t4(),S7=nq("%WeakMap%",!0),x7=nq("%Map%",!0),dme=o4("WeakMap.prototype.get",!0),hme=o4("WeakMap.prototype.set",!0),mme=o4("WeakMap.prototype.has",!0),gme=o4("Map.prototype.get",!0),yme=o4("Map.prototype.set",!0),vme=o4("Map.prototype.has",!0),lE=function(t,e){for(var n=t,r;(r=n.next)!==null;n=r)if(r.key===e)return n.next=r.next,r.next=t.next,t.next=r,r},_me=function(t,e){var n=lE(t,e);return n&&n.value},Eme=function(t,e,n){var r=lE(t,e);r?r.value=n:t.next={key:e,next:t.next,value:n}},bme=function(t,e){return!!lE(t,e)};rq.exports=function(){var e,n,r,l={assert:function(i){if(!l.has(i))throw new pme("Side channel does not contain "+fme(i))},get:function(i){if(S7&&i&&(typeof i=="object"||typeof i=="function")){if(e)return dme(e,i)}else if(x7){if(n)return gme(n,i)}else if(r)return _me(r,i)},has:function(i){if(S7&&i&&(typeof i=="object"||typeof i=="function")){if(e)return mme(e,i)}else if(x7){if(n)return vme(n,i)}else if(r)return bme(r,i);return!1},set:function(i,s){S7&&i&&(typeof i=="object"||typeof i=="function")?(e||(e=new S7),hme(e,i,s)):x7?(n||(n=new x7),yme(n,i,s)):(r||(r={key:{},next:null}),Eme(r,i,s))}};return l}});var A7=C((kwe,iq)=>{"use strict";var Tme=String.prototype.replace,Sme=/%20/g,iE={RFC1738:"RFC1738",RFC3986:"RFC3986"};iq.exports={default:iE.RFC3986,formatters:{RFC1738:function(t){return Tme.call(t,Sme,"+")},RFC3986:function(t){return String(t)}},RFC1738:iE.RFC1738,RFC3986:iE.RFC3986}});var oE=C((Pwe,aq)=>{"use strict";var xme=A7(),sE=Object.prototype.hasOwnProperty,Qa=Array.isArray,Li=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),Ame=function(e){for(;e.length>1;){var n=e.pop(),r=n.obj[n.prop];if(Qa(r)){for(var l=[],i=0;i=aE?s.slice(o,o+aE):s,c=[],p=0;p=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122||i===xme.RFC1738&&(m===40||m===41)){c[c.length]=f.charAt(p);continue}if(m<128){c[c.length]=Li[m];continue}if(m<2048){c[c.length]=Li[192|m>>6]+Li[128|m&63];continue}if(m<55296||m>=57344){c[c.length]=Li[224|m>>12]+Li[128|m>>6&63]+Li[128|m&63];continue}p+=1,m=65536+((m&1023)<<10|f.charCodeAt(p)&1023),c[c.length]=Li[240|m>>18]+Li[128|m>>12&63]+Li[128|m>>6&63]+Li[128|m&63]}a+=c.join("")}return a},Ime=function(e){for(var n=[{obj:{o:e},prop:"o"}],r=[],l=0;l{"use strict";var uq=lq(),w7=oE(),u5=A7(),Lme=Object.prototype.hasOwnProperty,cq={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,n){return e+"["+n+"]"},repeat:function(e){return e}},Fi=Array.isArray,Fme=Array.prototype.push,fq=function(t,e){Fme.apply(t,Fi(e)?e:[e])},Mme=Date.prototype.toISOString,oq=u5.default,xr={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:w7.encode,encodeValuesOnly:!1,format:oq,formatter:u5.formatters[oq],indices:!1,serializeDate:function(e){return Mme.call(e)},skipNulls:!1,strictNullHandling:!1},$me=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},uE={},jme=function t(e,n,r,l,i,s,a,o,f,c,p,m,h,g,_,S,T,x){for(var v=e,b=x,w=0,N=!1;(b=b.get(uE))!==void 0&&!N;){var O=b.get(e);if(w+=1,typeof O<"u"){if(O===w)throw new RangeError("Cyclic object value");N=!0}typeof b.get(uE)>"u"&&(w=0)}if(typeof c=="function"?v=c(n,v):v instanceof Date?v=h(v):r==="comma"&&Fi(v)&&(v=w7.maybeMap(v,function(re){return re instanceof Date?h(re):re})),v===null){if(s)return f&&!S?f(n,xr.encoder,T,"key",g):n;v=""}if($me(v)||w7.isBuffer(v)){if(f){var k=S?n:f(n,xr.encoder,T,"key",g);return[_(k)+"="+_(f(v,xr.encoder,T,"value",g))]}return[_(n)+"="+_(String(v))]}var $=[];if(typeof v>"u")return $;var L;if(r==="comma"&&Fi(v))S&&f&&(v=w7.maybeMap(v,f)),L=[{value:v.length>0?v.join(",")||null:void 0}];else if(Fi(c))L=c;else{var J=Object.keys(v);L=p?J.sort(p):J}var K=o?n.replace(/\./g,"%2E"):n,Q=l&&Fi(v)&&v.length===1?K+"[]":K;if(i&&Fi(v)&&v.length===0)return Q+"[]";for(var ye=0;ye"u"?e.encodeDotInKeys===!0?!0:xr.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:xr.addQueryPrefix,allowDots:a,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:xr.allowEmptyArrays,arrayFormat:s,charset:n,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:xr.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?xr.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:xr.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:xr.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:xr.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:xr.encodeValuesOnly,filter:i,format:r,formatter:l,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:xr.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:xr.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:xr.strictNullHandling}};pq.exports=function(t,e){var n=t,r=Ume(e),l,i;typeof r.filter=="function"?(i=r.filter,n=i("",n)):Fi(r.filter)&&(i=r.filter,l=i);var s=[];if(typeof n!="object"||n===null)return"";var a=cq[r.arrayFormat],o=a==="comma"&&r.commaRoundTrip;l||(l=Object.keys(n)),r.sort&&l.sort(r.sort);for(var f=uq(),c=0;c0?h+m:""}});var gq=C((Lwe,mq)=>{"use strict";var u4=oE(),cE=Object.prototype.hasOwnProperty,Bme=Array.isArray,cr={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:u4.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Hme=function(t){return t.replace(/(\d+);/g,function(e,n){return String.fromCharCode(parseInt(n,10))})},hq=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},qme="utf8=%26%2310003%3B",Vme="utf8=%E2%9C%93",zme=function(e,n){var r={__proto__:null},l=n.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=n.parameterLimit===1/0?void 0:n.parameterLimit,s=l.split(n.delimiter,i),a=-1,o,f=n.charset;if(n.charsetSentinel)for(o=0;o-1&&(g=Bme(g)?[g]:g);var _=cE.call(r,h);_&&n.duplicates==="combine"?r[h]=u4.combine(r[h],g):(!_||n.duplicates==="last")&&(r[h]=g)}return r},Gme=function(t,e,n,r){for(var l=r?e:hq(e,n),i=t.length-1;i>=0;--i){var s,a=t[i];if(a==="[]"&&n.parseArrays)s=n.allowEmptyArrays&&l===""?[]:[].concat(l);else{s=n.plainObjects?Object.create(null):{};var o=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,f=n.decodeDotInKeys?o.replace(/%2E/g,"."):o,c=parseInt(f,10);!n.parseArrays&&f===""?s={0:l}:!isNaN(c)&&a!==f&&String(c)===f&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(s=[],s[c]=l):f!=="__proto__"&&(s[f]=l)}l=s}return l},Xme=function(e,n,r,l){if(e){var i=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,o=r.depth>0&&s.exec(i),f=o?i.slice(0,o.index):i,c=[];if(f){if(!r.plainObjects&&cE.call(Object.prototype,f)&&!r.allowPrototypes)return;c.push(f)}for(var p=0;r.depth>0&&(o=a.exec(i))!==null&&p"u"?cr.charset:e.charset,r=typeof e.duplicates>"u"?cr.duplicates:e.duplicates;if(r!=="combine"&&r!=="first"&&r!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var l=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:cr.allowDots:!!e.allowDots;return{allowDots:l,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:cr.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:cr.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:cr.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:cr.arrayLimit,charset:n,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:cr.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:cr.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:cr.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:cr.decoder,delimiter:typeof e.delimiter=="string"||u4.isRegExp(e.delimiter)?e.delimiter:cr.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:cr.depth,duplicates:r,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:cr.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:cr.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:cr.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:cr.strictNullHandling}};mq.exports=function(t,e){var n=Wme(e);if(t===""||t===null||typeof t>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof t=="string"?zme(t,n):t,l=n.plainObjects?Object.create(null):{},i=Object.keys(r),s=0;s{"use strict";var Kme=dq(),Yme=gq(),Jme=A7();yq.exports={formats:Jme,parse:Yme,stringify:Kme}});var kq=C((Hwe,Cq)=>{var Iq=require("stream").Stream,kge=require("util");Cq.exports=Y2;function Y2(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}kge.inherits(Y2,Iq);Y2.create=function(t,e){var n=new this;e=e||{};for(var r in e)n[r]=e[r];n.source=t;var l=t.emit;return t.emit=function(){return n._handleEmit(arguments),l.apply(t,arguments)},t.on("error",function(){}),n.pauseStream&&t.pause(),n};Object.defineProperty(Y2.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}});Y2.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};Y2.prototype.resume=function(){this._released||this.release(),this.source.resume()};Y2.prototype.pause=function(){this.source.pause()};Y2.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(t){this.emit.apply(this,t)}.bind(this)),this._bufferedEvents=[]};Y2.prototype.pipe=function(){var t=Iq.prototype.pipe.apply(this,arguments);return this.resume(),t};Y2.prototype._handleEmit=function(t){if(this._released){this.emit.apply(this,t);return}t[0]==="data"&&(this.dataSize+=t[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(t)};Y2.prototype._checkIfMaxDataSizeExceeded=function(){if(!this._maxDataSizeExceeded&&!(this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var t="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(t))}}});var Fq=C((qwe,Lq)=>{var Pge=require("util"),Dq=require("stream").Stream,Pq=kq();Lq.exports=Jn;function Jn(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2*1024*1024,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}Pge.inherits(Jn,Dq);Jn.create=function(t){var e=new this;t=t||{};for(var n in t)e[n]=t[n];return e};Jn.isStreamLike=function(t){return typeof t!="function"&&typeof t!="string"&&typeof t!="boolean"&&typeof t!="number"&&!Buffer.isBuffer(t)};Jn.prototype.append=function(t){var e=Jn.isStreamLike(t);if(e){if(!(t instanceof Pq)){var n=Pq.create(t,{maxDataSize:1/0,pauseStream:this.pauseStreams});t.on("data",this._checkDataSize.bind(this)),t=n}this._handleErrors(t),this.pauseStreams&&t.pause()}return this._streams.push(t),this};Jn.prototype.pipe=function(t,e){return Dq.prototype.pipe.call(this,t,e),this.resume(),t};Jn.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop){this._pendingNext=!0;return}this._insideLoop=!0;try{do this._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}};Jn.prototype._realGetNext=function(){var t=this._streams.shift();if(typeof t>"u"){this.end();return}if(typeof t!="function"){this._pipeNext(t);return}var e=t;e(function(n){var r=Jn.isStreamLike(n);r&&(n.on("data",this._checkDataSize.bind(this)),this._handleErrors(n)),this._pipeNext(n)}.bind(this))};Jn.prototype._pipeNext=function(t){this._currentStream=t;var e=Jn.isStreamLike(t);if(e){t.on("end",this._getNext.bind(this)),t.pipe(this,{end:!1});return}var n=t;this.write(n),this._getNext()};Jn.prototype._handleErrors=function(t){var e=this;t.on("error",function(n){e._emitError(n)})};Jn.prototype.write=function(t){this.emit("data",t)};Jn.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};Jn.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function"&&this._currentStream.resume(),this.emit("resume")};Jn.prototype.end=function(){this._reset(),this.emit("end")};Jn.prototype.destroy=function(){this._reset(),this.emit("close")};Jn.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};Jn.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var t="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(t))}};Jn.prototype._updateDataSize=function(){this.dataSize=0;var t=this;this._streams.forEach(function(e){e.dataSize&&(t.dataSize+=e.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)};Jn.prototype._emitError=function(t){this._reset(),this.emit("error",t)}});var Mq=C((Vwe,Dge)=>{Dge.exports={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:!0,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:!0,extensions:["es","ecma"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:!0,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:!0,extensions:["its"]},"application/java-archive":{source:"apache",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:!0},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/missing-blocks+cbor-seq":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/oauth-authz-req+jwt":{source:"iana"},"application/oblivious-dns-message":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana",extensions:["asc"]},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,extensions:["provx"]},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.cyn":{source:"iana",charset:"7-BIT"},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:!0},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,extensions:["rusd"]},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"iana"},"application/smil+xml":{source:"iana",compressible:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:!0},"application/swid+xml":{source:"iana",compressible:!0,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:!0},"application/tnauthlist":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gnas":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gtpc":{source:"iana"},"application/vnd.3gpp.interworking-data":{source:"iana"},"application/vnd.3gpp.lpp":{source:"iana"},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ngap":{source:"iana"},"application/vnd.3gpp.pfcp":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.s1ap":{source:"iana"},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:!1,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:!0,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"iana",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.cmoca-cmresource":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-cmtable":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.age":{source:"iana",extensions:["age"]},"application/vnd.ah-barcode":{source:"iana"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:!0},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.arrow.file":{source:"iana"},"application/vnd.apache.arrow.stream":{source:"iana"},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:!0},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:!0,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.cryptomator.encrypted":{source:"iana"},"application/vnd.cryptomator.vault":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:!0,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:!0},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.eclipse.ditto+json":{source:"iana",compressible:!0},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:!1},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.familysearch.gedcom+zip":{source:"iana",compressible:!1},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"iana",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:!1},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{source:"iana",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"iana",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujifilm.fb.docuworks":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.container":{source:"iana"},"application/vnd.fujifilm.fb.jfi+xml":{source:"iana",compressible:!0},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.geo+json":{source:"iana",compressible:!0},"application/vnd.geocube+xml":{source:"iana",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.slides":{source:"iana"},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hl7cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"iana"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"iana",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:!1},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana",extensions:["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.nacamar.ybrid+json":{source:"iana",compressible:!0},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nebumind.line":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"iana",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:!0},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"iana",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:!0,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:!0},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:!0,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.seis+json":{source:"iana",compressible:!0},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:!0,extensions:["uoml"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.dpp":{source:"iana"},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:!0},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:!0,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.youtube.yt":{source:"iana"},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-iwork-keynote-sffkey":{extensions:["key"]},"application/x-iwork-numbers-sffnumbers":{extensions:["numbers"]},"application/x-iwork-pages-sffpages":{extensions:["pages"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana",extensions:["amr"]},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"iana"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/hsj2":{source:"iana",extensions:["hsj2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:!1,extensions:["jpx","jpf"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",compressible:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"apache",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime"]},"message/s-http":{source:"iana"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"iana"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/step":{source:"iana"},"model/step+xml":{source:"iana",compressible:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:!0},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.pytha.pyox":{source:"iana"},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.sap.vds":{source:"iana",extensions:["vds"]},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/cql":{source:"iana"},"text/cql-expression":{source:"iana"},"text/cql-identifier":{source:"iana"},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"iana"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fhirpath":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:!0},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{source:"iana",extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.familysearch.gedcom":{source:"iana",extensions:["ged"]},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"iana"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vtt":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/av1":{source:"iana"},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/ffv1":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/iso.segment":{source:"iana",extensions:["m4s"]},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/jxsv":{source:"iana"},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/scip":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"iana"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/vp9":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}}});var jq=C((zwe,$q)=>{$q.exports=Mq()});var Hq=C(Vl=>{"use strict";var C7=jq(),Lge=require("path").extname,Uq=/^\s*([^;\s]*)(?:;|\s|$)/,Fge=/^text\//i;Vl.charset=Bq;Vl.charsets={lookup:Bq};Vl.contentType=Mge;Vl.extension=$ge;Vl.extensions=Object.create(null);Vl.lookup=jge;Vl.types=Object.create(null);Uge(Vl.extensions,Vl.types);function Bq(t){if(!t||typeof t!="string")return!1;var e=Uq.exec(t),n=e&&C7[e[1].toLowerCase()];return n&&n.charset?n.charset:e&&Fge.test(e[1])?"UTF-8":!1}function Mge(t){if(!t||typeof t!="string")return!1;var e=t.indexOf("/")===-1?Vl.lookup(t):t;if(!e)return!1;if(e.indexOf("charset")===-1){var n=Vl.charset(e);n&&(e+="; charset="+n.toLowerCase())}return e}function $ge(t){if(!t||typeof t!="string")return!1;var e=Uq.exec(t),n=e&&Vl.extensions[e[1].toLowerCase()];return!n||!n.length?!1:n[0]}function jge(t){if(!t||typeof t!="string")return!1;var e=Lge("x."+t).toLowerCase().substr(1);return e&&Vl.types[e]||!1}function Uge(t,e){var n=["nginx","apache",void 0,"iana"];Object.keys(C7).forEach(function(l){var i=C7[l],s=i.extensions;if(!(!s||!s.length)){t[l]=s;for(var a=0;ac||f===c&&e[o].substr(0,12)==="application/"))continue}e[o]=l}}})}});var Vq=C((Xwe,qq)=>{qq.exports=Bge;function Bge(t){var e=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;e?e(t):setTimeout(t,0)}});var hE=C((Wwe,Gq)=>{var zq=Vq();Gq.exports=Hge;function Hge(t){var e=!1;return zq(function(){e=!0}),function(r,l){e?t(r,l):zq(function(){t(r,l)})}}});var mE=C((Kwe,Xq)=>{Xq.exports=qge;function qge(t){Object.keys(t.jobs).forEach(Vge.bind(t)),t.jobs={}}function Vge(t){typeof this.jobs[t]=="function"&&this.jobs[t]()}});var gE=C((Ywe,Kq)=>{var Wq=hE(),zge=mE();Kq.exports=Gge;function Gge(t,e,n,r){var l=n.keyedList?n.keyedList[n.index]:n.index;n.jobs[l]=Xge(e,l,t[l],function(i,s){l in n.jobs&&(delete n.jobs[l],i?zge(n):n.results[l]=s,r(i,n.results))})}function Xge(t,e,n,r){var l;return t.length==2?l=t(n,Wq(r)):l=t(n,e,Wq(r)),l}});var yE=C((Jwe,Yq)=>{Yq.exports=Wge;function Wge(t,e){var n=!Array.isArray(t),r={index:0,keyedList:n||e?Object.keys(t):null,jobs:{},results:n?{}:[],size:n?Object.keys(t).length:t.length};return e&&r.keyedList.sort(n?e:function(l,i){return e(t[l],t[i])}),r}});var vE=C((Qwe,Jq)=>{var Kge=mE(),Yge=hE();Jq.exports=Jge;function Jge(t){Object.keys(this.jobs).length&&(this.index=this.size,Kge(this),Yge(t)(null,this.results))}});var Zq=C((Zwe,Qq)=>{var Qge=gE(),Zge=yE(),eye=vE();Qq.exports=tye;function tye(t,e,n){for(var r=Zge(t);r.index<(r.keyedList||t).length;)Qge(t,e,r,function(l,i){if(l){n(l,i);return}if(Object.keys(r.jobs).length===0){n(null,r.results);return}}),r.index++;return eye.bind(r,n)}});var _E=C((eRe,k7)=>{var eV=gE(),nye=yE(),rye=vE();k7.exports=lye;k7.exports.ascending=tV;k7.exports.descending=iye;function lye(t,e,n,r){var l=nye(t,n);return eV(t,e,l,function i(s,a){if(s){r(s,a);return}if(l.index++,l.index<(l.keyedList||t).length){eV(t,e,l,i);return}r(null,l.results)}),rye.bind(l,r)}function tV(t,e){return te?1:0}function iye(t,e){return-1*tV(t,e)}});var rV=C((tRe,nV)=>{var sye=_E();nV.exports=aye;function aye(t,e,n){return sye(t,e,null,n)}});var iV=C((nRe,lV)=>{lV.exports={parallel:Zq(),serial:rV(),serialOrdered:_E()}});var aV=C((rRe,sV)=>{sV.exports=function(t,e){return Object.keys(e).forEach(function(n){t[n]=t[n]||e[n]}),t}});var cV=C((lRe,uV)=>{var SE=Fq(),oV=require("util"),EE=require("path"),oye=require("http"),uye=require("https"),cye=require("url").parse,fye=require("fs"),pye=require("stream").Stream,bE=Hq(),dye=iV(),TE=aV();uV.exports=Gt;oV.inherits(Gt,SE);function Gt(t){if(!(this instanceof Gt))return new Gt(t);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],SE.call(this),t=t||{};for(var e in t)this[e]=t[e]}Gt.LINE_BREAK=`\r
-`;Gt.DEFAULT_CONTENT_TYPE="application/octet-stream";Gt.prototype.append=function(t,e,n){n=n||{},typeof n=="string"&&(n={filename:n});var r=SE.prototype.append.bind(this);if(typeof e=="number"&&(e=""+e),oV.isArray(e)){this._error(new Error("Arrays are not supported."));return}var l=this._multiPartHeader(t,e,n),i=this._multiPartFooter();r(l),r(e),r(i),this._trackLength(l,e,n)};Gt.prototype._trackLength=function(t,e,n){var r=0;n.knownLength!=null?r+=+n.knownLength:Buffer.isBuffer(e)?r=e.length:typeof e=="string"&&(r=Buffer.byteLength(e)),this._valueLength+=r,this._overheadLength+=Buffer.byteLength(t)+Gt.LINE_BREAK.length,!(!e||!e.path&&!(e.readable&&e.hasOwnProperty("httpVersion"))&&!(e instanceof pye))&&(n.knownLength||this._valuesToMeasure.push(e))};Gt.prototype._lengthRetriever=function(t,e){t.hasOwnProperty("fd")?t.end!=null&&t.end!=1/0&&t.start!=null?e(null,t.end+1-(t.start?t.start:0)):fye.stat(t.path,function(n,r){var l;if(n){e(n);return}l=r.size-(t.start?t.start:0),e(null,l)}):t.hasOwnProperty("httpVersion")?e(null,+t.headers["content-length"]):t.hasOwnProperty("httpModule")?(t.on("response",function(n){t.pause(),e(null,+n.headers["content-length"])}),t.resume()):e("Unknown stream")};Gt.prototype._multiPartHeader=function(t,e,n){if(typeof n.header=="string")return n.header;var r=this._getContentDisposition(e,n),l=this._getContentType(e,n),i="",s={"Content-Disposition":["form-data",'name="'+t+'"'].concat(r||[]),"Content-Type":[].concat(l||[])};typeof n.header=="object"&&TE(s,n.header);var a;for(var o in s)s.hasOwnProperty(o)&&(a=s[o],a!=null&&(Array.isArray(a)||(a=[a]),a.length&&(i+=o+": "+a.join("; ")+Gt.LINE_BREAK)));return"--"+this.getBoundary()+Gt.LINE_BREAK+i+Gt.LINE_BREAK};Gt.prototype._getContentDisposition=function(t,e){var n,r;return typeof e.filepath=="string"?n=EE.normalize(e.filepath).replace(/\\/g,"/"):e.filename||t.name||t.path?n=EE.basename(e.filename||t.name||t.path):t.readable&&t.hasOwnProperty("httpVersion")&&(n=EE.basename(t.client._httpMessage.path||"")),n&&(r='filename="'+n+'"'),r};Gt.prototype._getContentType=function(t,e){var n=e.contentType;return!n&&t.name&&(n=bE.lookup(t.name)),!n&&t.path&&(n=bE.lookup(t.path)),!n&&t.readable&&t.hasOwnProperty("httpVersion")&&(n=t.headers["content-type"]),!n&&(e.filepath||e.filename)&&(n=bE.lookup(e.filepath||e.filename)),!n&&typeof t=="object"&&(n=Gt.DEFAULT_CONTENT_TYPE),n};Gt.prototype._multiPartFooter=function(){return function(t){var e=Gt.LINE_BREAK,n=this._streams.length===0;n&&(e+=this._lastBoundary()),t(e)}.bind(this)};Gt.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+Gt.LINE_BREAK};Gt.prototype.getHeaders=function(t){var e,n={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(e in t)t.hasOwnProperty(e)&&(n[e.toLowerCase()]=t[e]);return n};Gt.prototype.setBoundary=function(t){this._boundary=t};Gt.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};Gt.prototype.getBuffer=function(){for(var t=new Buffer.alloc(0),e=this.getBoundary(),n=0,r=this._streams.length;n