@nocobase/plugin-backup-restore 1.9.0-beta.8 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/dist/externalVersion.js +5 -5
  2. package/dist/node_modules/@hapi/topo/lib/index.js +1 -1
  3. package/dist/node_modules/@hapi/topo/node_modules/@hapi/hoek/lib/applyToDefaults.d.ts +3 -0
  4. package/dist/node_modules/@hapi/topo/node_modules/@hapi/hoek/lib/applyToDefaults.js +102 -0
  5. package/dist/node_modules/@hapi/topo/node_modules/@hapi/hoek/lib/assert.d.ts +3 -0
  6. package/dist/node_modules/@hapi/topo/node_modules/@hapi/hoek/lib/assert.js +30 -0
  7. package/dist/node_modules/@hapi/topo/node_modules/@hapi/hoek/lib/assertError.d.ts +3 -0
  8. package/dist/node_modules/@hapi/topo/node_modules/@hapi/hoek/lib/assertError.js +18 -0
  9. package/dist/node_modules/@hapi/topo/node_modules/@hapi/hoek/lib/bench.d.ts +3 -0
  10. package/dist/node_modules/@hapi/topo/node_modules/@hapi/hoek/lib/bench.js +29 -0
  11. package/dist/node_modules/@hapi/topo/node_modules/@hapi/hoek/lib/block.d.ts +3 -0
  12. package/dist/node_modules/@hapi/topo/node_modules/@hapi/hoek/lib/block.js +12 -0
  13. package/dist/node_modules/@hapi/topo/node_modules/@hapi/hoek/lib/clone.d.ts +3 -0
  14. package/dist/node_modules/@hapi/topo/node_modules/@hapi/hoek/lib/clone.js +174 -0
  15. package/dist/node_modules/@hapi/topo/node_modules/@hapi/hoek/lib/contain.d.ts +3 -0
  16. package/dist/node_modules/@hapi/topo/node_modules/@hapi/hoek/lib/contain.js +307 -0
  17. package/dist/node_modules/@hapi/topo/node_modules/@hapi/hoek/lib/deepEqual.d.ts +3 -0
  18. package/dist/node_modules/@hapi/topo/node_modules/@hapi/hoek/lib/deepEqual.js +317 -0
  19. package/dist/node_modules/@hapi/topo/node_modules/@hapi/hoek/lib/escapeHeaderAttribute.d.ts +3 -0
  20. package/dist/node_modules/@hapi/topo/node_modules/@hapi/hoek/lib/escapeHeaderAttribute.js +16 -0
  21. package/dist/node_modules/@hapi/topo/node_modules/@hapi/hoek/lib/escapeHtml.d.ts +3 -0
  22. package/dist/node_modules/@hapi/topo/node_modules/@hapi/hoek/lib/escapeHtml.js +87 -0
  23. package/dist/node_modules/@hapi/topo/node_modules/@hapi/hoek/lib/escapeJson.d.ts +3 -0
  24. package/dist/node_modules/@hapi/topo/node_modules/@hapi/hoek/lib/escapeJson.js +28 -0
  25. package/dist/node_modules/@hapi/topo/node_modules/@hapi/hoek/lib/escapeRegex.d.ts +3 -0
  26. package/dist/node_modules/@hapi/topo/node_modules/@hapi/hoek/lib/escapeRegex.js +11 -0
  27. package/dist/node_modules/@hapi/topo/node_modules/@hapi/hoek/lib/flatten.d.ts +3 -0
  28. package/dist/node_modules/@hapi/topo/node_modules/@hapi/hoek/lib/flatten.js +20 -0
  29. package/dist/node_modules/@hapi/topo/node_modules/@hapi/hoek/lib/ignore.d.ts +3 -0
  30. package/dist/node_modules/@hapi/topo/node_modules/@hapi/hoek/lib/ignore.js +6 -0
  31. package/dist/node_modules/@hapi/topo/node_modules/@hapi/hoek/lib/index.d.ts +480 -0
  32. package/dist/node_modules/@hapi/topo/node_modules/@hapi/hoek/lib/index.js +45 -0
  33. package/dist/node_modules/@hapi/topo/node_modules/@hapi/hoek/lib/intersect.d.ts +3 -0
  34. package/dist/node_modules/@hapi/topo/node_modules/@hapi/hoek/lib/intersect.js +41 -0
  35. package/dist/node_modules/@hapi/topo/node_modules/@hapi/hoek/lib/isPromise.d.ts +3 -0
  36. package/dist/node_modules/@hapi/topo/node_modules/@hapi/hoek/lib/isPromise.js +9 -0
  37. package/dist/node_modules/@hapi/topo/node_modules/@hapi/hoek/lib/merge.d.ts +3 -0
  38. package/dist/node_modules/@hapi/topo/node_modules/@hapi/hoek/lib/merge.js +78 -0
  39. package/dist/node_modules/@hapi/topo/node_modules/@hapi/hoek/lib/once.d.ts +3 -0
  40. package/dist/node_modules/@hapi/topo/node_modules/@hapi/hoek/lib/once.js +25 -0
  41. package/dist/node_modules/@hapi/topo/node_modules/@hapi/hoek/lib/reach.d.ts +3 -0
  42. package/dist/node_modules/@hapi/topo/node_modules/@hapi/hoek/lib/reach.js +76 -0
  43. package/dist/node_modules/@hapi/topo/node_modules/@hapi/hoek/lib/reachTemplate.d.ts +3 -0
  44. package/dist/node_modules/@hapi/topo/node_modules/@hapi/hoek/lib/reachTemplate.js +16 -0
  45. package/dist/node_modules/@hapi/topo/node_modules/@hapi/hoek/lib/stringify.d.ts +3 -0
  46. package/dist/node_modules/@hapi/topo/node_modules/@hapi/hoek/lib/stringify.js +14 -0
  47. package/dist/node_modules/@hapi/topo/node_modules/@hapi/hoek/lib/types.js +57 -0
  48. package/dist/node_modules/@hapi/topo/node_modules/@hapi/hoek/lib/utils.js +9 -0
  49. package/dist/node_modules/@hapi/topo/node_modules/@hapi/hoek/lib/wait.d.ts +3 -0
  50. package/dist/node_modules/@hapi/topo/node_modules/@hapi/hoek/lib/wait.js +37 -0
  51. package/dist/node_modules/@hapi/topo/node_modules/@hapi/hoek/package.json +60 -0
  52. package/dist/node_modules/@hapi/topo/package.json +1 -1
  53. package/dist/node_modules/archiver/package.json +1 -1
  54. package/dist/node_modules/decompress/package.json +1 -1
  55. package/dist/node_modules/fs-extra/package.json +1 -1
  56. package/dist/node_modules/moment/package.json +1 -1
  57. package/dist/node_modules/semver/package.json +1 -1
  58. package/package.json +2 -2
@@ -10,15 +10,15 @@
10
10
  module.exports = {
11
11
  "@ant-design/icons": "5.6.1",
12
12
  "@formily/antd-v5": "1.2.3",
13
- "@nocobase/client": "1.9.0-beta.8",
13
+ "@nocobase/client": "1.9.0",
14
14
  "antd": "5.24.2",
15
15
  "file-saver": "2.0.5",
16
16
  "react": "18.2.0",
17
- "@nocobase/server": "1.9.0-beta.8",
18
- "@nocobase/utils": "1.9.0-beta.8",
19
- "@nocobase/database": "1.9.0-beta.8",
17
+ "@nocobase/server": "1.9.0",
18
+ "@nocobase/utils": "1.9.0",
19
+ "@nocobase/database": "1.9.0",
20
20
  "dayjs": "1.11.13",
21
21
  "lodash": "4.17.21",
22
22
  "react-i18next": "11.18.6",
23
- "@nocobase/actions": "1.9.0-beta.8"
23
+ "@nocobase/actions": "1.9.0"
24
24
  };
@@ -1 +1 @@
1
- (function(){"use strict";var e={545:function(e,t,r){const n=r(718);const o=r(578);const s=r(445);const i=r(891);const f={};e.exports=function(e,t,r={}){n(e&&typeof e==="object","Invalid defaults value: must be an object");n(!t||t===true||typeof t==="object","Invalid source value: must be true, falsy or an object");n(typeof r==="object","Invalid options: must be an object");if(!t){return null}if(r.shallow){return f.applyToDefaultsWithShallow(e,t,r)}const i=o(e);if(t===true){return i}const c=r.nullOverride!==undefined?r.nullOverride:false;return s(i,t,{nullOverride:c,mergeArrays:false})};f.applyToDefaultsWithShallow=function(e,t,r){const c=r.shallow;n(Array.isArray(c),"Invalid keys");const a=new Map;const u=t===true?null:new Set;for(let r of c){r=Array.isArray(r)?r:r.split(".");const n=i(e,r);if(n&&typeof n==="object"){a.set(n,u&&i(t,r)||n)}else if(u){u.add(r)}}const l=o(e,{},a);if(!u){return l}for(const e of u){f.reachCopy(l,t,e)}const p=r.nullOverride!==undefined?r.nullOverride:false;return s(l,t,{nullOverride:p,mergeArrays:false})};f.reachCopy=function(e,t,r){for(const e of r){if(!(e in t)){return}const r=t[e];if(typeof r!=="object"||r===null){return}t=r}const n=t;let o=e;for(let e=0;e<r.length-1;++e){const t=r[e];if(typeof o[t]!=="object"){o[t]={}}o=o[t]}o[r[r.length-1]]=n}},718:function(e,t,r){const n=r(542);const o=r(577);const s={};const i=e.exports=function(e,...t){if(e){return}if(t.length===1&&t[0]instanceof Error){throw t[0]}const r=t.filter((e=>e!=="")).map((e=>typeof e==="string"?e:e instanceof Error?e.message:o(e)));throw new n(r.join(" "),i)}},542:function(e){const t={};e.exports=class AssertError extends Error{name="AssertError";constructor(e,t){super(e||"Unknown error");if(typeof Error.captureStackTrace==="function"){Error.captureStackTrace(this,t)}}}},999:function(e){const t={};e.exports=t.Bench=class{constructor(){this.ts=0;this.reset()}reset(){this.ts=t.Bench.now()}elapsed(){return t.Bench.now()-this.ts}static now(){const e=process.hrtime();return e[0]*1e3+e[1]/1e6}}},820:function(e,t,r){const n=r(887);const o={};e.exports=function(){return new Promise(n)}},578:function(e,t,r){const n=r(891);const o=r(657);const s=r(417);const i={needsProtoHack:new Set([o.set,o.map,o.weakSet,o.weakMap])};e.exports=i.clone=function(e,t={},r=null){if(typeof e!=="object"||e===null){return e}let n=i.clone;let f=r;if(t.shallow){if(t.shallow!==true){return i.cloneWithShallow(e,t)}n=e=>e}else if(f){const t=f.get(e);if(t){return t}}else{f=new Map}const c=o.getInternalProto(e);switch(c){case o.buffer:return Buffer?.from(e);case o.date:return new Date(e.getTime());case o.regex:case o.url:return new c.constructor(e)}const a=i.base(e,c,t);if(a===e){return e}if(f){f.set(e,a)}if(c===o.set){for(const r of e){a.add(n(r,t,f))}}else if(c===o.map){for(const[r,o]of e){a.set(r,n(o,t,f))}}const u=s.keys(e,t);for(const r of u){if(r==="__proto__"){continue}if(c===o.array&&r==="length"){a.length=e.length;continue}const s=Object.getOwnPropertyDescriptor(e,r);if(s){if(s.get||s.set){Object.defineProperty(a,r,s)}else if(s.enumerable){a[r]=n(e[r],t,f)}else{Object.defineProperty(a,r,{enumerable:false,writable:true,configurable:true,value:n(e[r],t,f)})}}else{Object.defineProperty(a,r,{enumerable:true,writable:true,configurable:true,value:n(e[r],t,f)})}}return a};i.cloneWithShallow=function(e,t){const r=t.shallow;t=Object.assign({},t);t.shallow=false;const o=new Map;for(const t of r){const r=n(e,t);if(typeof r==="object"||typeof r==="function"){o.set(r,r)}}return i.clone(e,t,o)};i.base=function(e,t,r){if(r.prototype===false){if(i.needsProtoHack.has(t)){return new t.constructor}return t===o.array?[]:{}}const n=Object.getPrototypeOf(e);if(n&&n.isImmutable){return e}if(t===o.array){const e=[];if(n!==t){Object.setPrototypeOf(e,n)}return e}if(i.needsProtoHack.has(t)){const e=new n.constructor;if(n!==t){Object.setPrototypeOf(e,n)}return e}return Object.create(n)}},157:function(e,t,r){const n=r(718);const o=r(801);const s=r(965);const i=r(417);const f={};e.exports=function(e,t,r={}){if(typeof t!=="object"){t=[t]}n(!Array.isArray(t)||t.length,"Values array cannot be empty");if(typeof e==="string"){return f.string(e,t,r)}if(Array.isArray(e)){return f.array(e,t,r)}n(typeof e==="object","Reference must be string or an object");return f.object(e,t,r)};f.array=function(e,t,r){if(!Array.isArray(t)){t=[t]}if(!e.length){return false}if(r.only&&r.once&&e.length!==t.length){return false}let n;const o=new Map;for(const e of t){if(!r.deep||!e||typeof e!=="object"){const t=o.get(e);if(t){++t.allowed}else{o.set(e,{allowed:1,hits:0})}}else{n=n??f.compare(r);let t=false;for(const[r,s]of o.entries()){if(n(r,e)){++s.allowed;t=true;break}}if(!t){o.set(e,{allowed:1,hits:0})}}}let s=0;for(const t of e){let e;if(!r.deep||!t||typeof t!=="object"){e=o.get(t)}else{n=n??f.compare(r);for(const[r,s]of o.entries()){if(n(r,t)){e=s;break}}}if(e){++e.hits;++s;if(r.once&&e.hits>e.allowed){return false}}}if(r.only&&s!==e.length){return false}for(const e of o.values()){if(e.hits===e.allowed){continue}if(e.hits<e.allowed&&!r.part){return false}}return!!s};f.object=function(e,t,r){n(r.once===undefined,"Cannot use option once with object");const o=i.keys(e,r);if(!o.length){return false}if(Array.isArray(t)){return f.array(o,t,r)}const s=Object.getOwnPropertySymbols(t).filter((e=>t.propertyIsEnumerable(e)));const c=[...Object.keys(t),...s];const a=f.compare(r);const u=new Set(c);for(const n of o){if(!u.has(n)){if(r.only){return false}continue}if(!a(t[n],e[n])){return false}u.delete(n)}if(u.size){return r.part?u.size<c.length:false}return true};f.string=function(e,t,r){if(e===""){return t.length===1&&t[0]===""||!r.once&&!t.some((e=>e!==""))}const o=new Map;const i=[];for(const e of t){n(typeof e==="string","Cannot compare string reference to non-string value");if(e){const t=o.get(e);if(t){++t.allowed}else{o.set(e,{allowed:1,hits:0});i.push(s(e))}}else if(r.once||r.only){return false}}if(!i.length){return true}const f=new RegExp(`(${i.join("|")})`,"g");const c=e.replace(f,((e,t)=>{++o.get(t).hits;return""}));if(r.only&&c){return false}let a=false;for(const e of o.values()){if(e.hits){a=true}if(e.hits===e.allowed){continue}if(e.hits<e.allowed&&!r.part){return false}if(r.once){return false}}return!!a};f.compare=function(e){if(!e.deep){return f.shallow}const t=e.only!==undefined;const r=e.part!==undefined;const n={prototype:t?e.only:r?!e.part:false,part:t?!e.only:r?e.part:false};return(e,t)=>o(e,t,n)};f.shallow=function(e,t){return e===t}},801:function(e,t,r){const n=r(657);const o={mismatched:null};e.exports=function(e,t,r){r=Object.assign({prototype:true},r);return!!o.isDeepEqual(e,t,r,[])};o.isDeepEqual=function(e,t,r,s){if(e===t){return e!==0||1/e===1/t}const i=typeof e;if(i!==typeof t){return false}if(e===null||t===null){return false}if(i==="function"){if(!r.deepFunction||e.toString()!==t.toString()){return false}}else if(i!=="object"){return e!==e&&t!==t}const f=o.getSharedType(e,t,!!r.prototype);switch(f){case n.buffer:return Buffer&&Buffer.prototype.equals.call(e,t);case n.promise:return e===t;case n.regex:case n.url:return e.toString()===t.toString();case o.mismatched:return false}for(let r=s.length-1;r>=0;--r){if(s[r].isSame(e,t)){return true}}s.push(new o.SeenEntry(e,t));try{return!!o.isDeepEqualObj(f,e,t,r,s)}finally{s.pop()}};o.getSharedType=function(e,t,r){if(r){if(Object.getPrototypeOf(e)!==Object.getPrototypeOf(t)){return o.mismatched}return n.getInternalProto(e)}const s=n.getInternalProto(e);if(s!==n.getInternalProto(t)){return o.mismatched}return s};o.valueOf=function(e){const t=e.valueOf;if(t===undefined){return e}try{return t.call(e)}catch(e){return e}};o.hasOwnEnumerableProperty=function(e,t){return Object.prototype.propertyIsEnumerable.call(e,t)};o.isSetSimpleEqual=function(e,t){for(const r of Set.prototype.values.call(e)){if(!Set.prototype.has.call(t,r)){return false}}return true};o.isDeepEqualObj=function(e,t,r,s,i){const{isDeepEqual:f,valueOf:c,hasOwnEnumerableProperty:a}=o;const{keys:u,getOwnPropertySymbols:l}=Object;if(e===n.array){if(s.part){for(const e of t){for(const t of r){if(f(e,t,s,i)){return true}}}}else{if(t.length!==r.length){return false}for(let e=0;e<t.length;++e){if(!f(t[e],r[e],s,i)){return false}}return true}}else if(e===n.set){if(t.size!==r.size){return false}if(!o.isSetSimpleEqual(t,r)){const e=new Set(Set.prototype.values.call(r));for(const r of Set.prototype.values.call(t)){if(e.delete(r)){continue}let t=false;for(const n of e){if(f(r,n,s,i)){e.delete(n);t=true;break}}if(!t){return false}}}}else if(e===n.map){if(t.size!==r.size){return false}for(const[e,n]of Map.prototype.entries.call(t)){if(n===undefined&&!Map.prototype.has.call(r,e)){return false}if(!f(n,Map.prototype.get.call(r,e),s,i)){return false}}}else if(e===n.error){if(t.name!==r.name||t.message!==r.message){return false}}const p=c(t);const y=c(r);if((t!==p||r!==y)&&!f(p,y,s,i)){return false}const h=u(t);if(!s.part&&h.length!==u(r).length&&!s.skip){return false}let d=0;for(const e of h){if(s.skip&&s.skip.includes(e)){if(r[e]===undefined){++d}continue}if(!a(r,e)){return false}if(!f(t[e],r[e],s,i)){return false}}if(!s.part&&h.length-d!==u(r).length){return false}if(s.symbols!==false){const e=l(t);const n=new Set(l(r));for(const o of e){if(!s.skip?.includes(o)){if(a(t,o)){if(!a(r,o)){return false}if(!f(t[o],r[o],s,i)){return false}}else if(a(r,o)){return false}}n.delete(o)}for(const e of n){if(a(r,e)){return false}}}return true};o.SeenEntry=class{constructor(e,t){this.obj=e;this.ref=t}isSame(e,t){return this.obj===e&&this.ref===t}}},199:function(e,t,r){const n=r(718);const o={};e.exports=function(e){n(/^[ \w\!#\$%&'\(\)\*\+,\-\.\/\:;<\=>\?@\[\]\^`\{\|\}~\"\\]*$/.test(e),"Bad attribute value ("+e+")");return e.replace(/\\/g,"\\\\").replace(/\"/g,'\\"')}},752:function(e){const t={};e.exports=function(e){if(!e){return""}let r="";for(let n=0;n<e.length;++n){const o=e.charCodeAt(n);if(t.isSafe(o)){r+=e[n]}else{r+=t.escapeHtmlChar(o)}}return r};t.escapeHtmlChar=function(e){const r=t.namedHtml.get(e);if(r){return r}if(e>=256){return"&#"+e+";"}const n=e.toString(16).padStart(2,"0");return`&#x${n};`};t.isSafe=function(e){return t.safeCharCodes.has(e)};t.namedHtml=new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[34,"&quot;"],[160,"&nbsp;"],[162,"&cent;"],[163,"&pound;"],[164,"&curren;"],[169,"&copy;"],[174,"&reg;"]]);t.safeCharCodes=function(){const e=new Set;for(let t=32;t<123;++t){if(t>=97||t>=65&&t<=90||t>=48&&t<=57||t===32||t===46||t===44||t===45||t===58||t===95){e.add(t)}}return e}()},112:function(e){const t={};e.exports=function(e){if(!e){return""}return e.replace(/[<>&\u2028\u2029]/g,t.escape)};t.escape=function(e){return t.replacements.get(e)};t.replacements=new Map([["<","\\u003c"],[">","\\u003e"],["&","\\u0026"],["\u2028","\\u2028"],["\u2029","\\u2029"]])},965:function(e){const t={};e.exports=function(e){return e.replace(/[\^\$\.\*\+\-\?\=\!\:\|\\\/\(\)\[\]\{\}\,]/g,"\\$&")}},666:function(e){const t={};e.exports=t.flatten=function(e,r){const n=r||[];for(const r of e){if(Array.isArray(r)){t.flatten(r,n)}else{n.push(r)}}return n}},887:function(e){const t={};e.exports=function(){}},904:function(e,t,r){t.applyToDefaults=r(545);t.assert=r(718);t.AssertError=r(542);t.Bench=r(999);t.block=r(820);t.clone=r(578);t.contain=r(157);t.deepEqual=r(801);t.escapeHeaderAttribute=r(199);t.escapeHtml=r(752);t.escapeJson=r(112);t.escapeRegex=r(965);t.flatten=r(666);t.ignore=r(887);t.intersect=r(221);t.isPromise=r(193);t.merge=r(445);t.once=r(926);t.reach=r(891);t.reachTemplate=r(517);t.stringify=r(577);t.wait=r(497)},221:function(e){const t={};e.exports=function(e,r,n={}){if(!e||!r){return n.first?null:[]}const o=[];const s=Array.isArray(e)?new Set(e):e;const i=new Set;for(const e of r){if(t.has(s,e)&&!i.has(e)){if(n.first){return e}o.push(e);i.add(e)}}return n.first?null:o};t.has=function(e,t){if(typeof e.has==="function"){return e.has(t)}return e[t]!==undefined}},193:function(e){const t={};e.exports=function(e){return typeof e?.then==="function"}},445:function(e,t,r){const n=r(718);const o=r(578);const s=r(417);const i={};e.exports=i.merge=function(e,t,r){n(e&&typeof e==="object","Invalid target value: must be an object");n(t===null||t===undefined||typeof t==="object","Invalid source value: must be null, undefined, or an object");if(!t){return e}r=Object.assign({nullOverride:true,mergeArrays:true},r);if(Array.isArray(t)){n(Array.isArray(e),"Cannot merge array onto an object");if(!r.mergeArrays){e.length=0}for(let n=0;n<t.length;++n){e.push(o(t[n],{symbols:r.symbols}))}return e}const f=s.keys(t,r);for(let n=0;n<f.length;++n){const s=f[n];if(s==="__proto__"||!Object.prototype.propertyIsEnumerable.call(t,s)){continue}const c=t[s];if(c&&typeof c==="object"){if(e[s]===c){continue}if(!e[s]||typeof e[s]!=="object"||Array.isArray(e[s])!==Array.isArray(c)||c instanceof Date||Buffer&&Buffer.isBuffer(c)||c instanceof RegExp){e[s]=o(c,{symbols:r.symbols})}else{i.merge(e[s],c,r)}}else{if(c!==null&&c!==undefined){e[s]=c}else if(r.nullOverride){e[s]=c}}}return e}},926:function(e){const t={wrapped:Symbol("wrapped")};e.exports=function(e){if(e[t.wrapped]){return e}let r=false;const wrappedFn=function(...t){if(!r){r=true;e(...t)}};wrappedFn[t.wrapped]=true;return wrappedFn}},891:function(e,t,r){const n=r(718);const o={};e.exports=function(e,t,r){if(t===false||t===null||t===undefined){return e}r=r||{};if(typeof r==="string"){r={separator:r}}const s=Array.isArray(t);n(!s||!r.separator,"Separator option is not valid for array-based chain");const i=s?t:t.split(r.separator||".");let f=e;for(let e=0;e<i.length;++e){let s=i[e];const c=r.iterables&&o.iterables(f);if(Array.isArray(f)||c==="set"){const e=Number(s);if(Number.isInteger(e)){s=e<0?f.length+e:e}}if(!f||typeof f==="function"&&r.functions===false||!c&&f[s]===undefined){n(!r.strict||e+1===i.length,"Missing segment",s,"in reach path ",t);n(typeof f==="object"||r.functions===true||typeof f!=="function","Invalid segment",s,"in reach path ",t);f=r.default;break}if(!c){f=f[s]}else if(c==="set"){f=[...f][s]}else{f=f.get(s)}}return f};o.iterables=function(e){if(e instanceof Set){return"set"}if(e instanceof Map){return"map"}}},517:function(e,t,r){const n=r(891);const o={};e.exports=function(e,t,r){return t.replace(/{([^{}]+)}/g,((t,o)=>{const s=n(e,o,r);return s??""}))}},577:function(e){const t={};e.exports=function(...e){try{return JSON.stringify(...e)}catch(e){return"[Cannot display object: "+e.message+"]"}}},657:function(e,t){const r={};t=e.exports={array:Array.prototype,buffer:Buffer&&Buffer.prototype,date:Date.prototype,error:Error.prototype,generic:Object.prototype,map:Map.prototype,promise:Promise.prototype,regex:RegExp.prototype,set:Set.prototype,url:URL.prototype,weakMap:WeakMap.prototype,weakSet:WeakSet.prototype};r.typeMap=new Map([["[object Error]",t.error],["[object Map]",t.map],["[object Promise]",t.promise],["[object Set]",t.set],["[object URL]",t.url],["[object WeakMap]",t.weakMap],["[object WeakSet]",t.weakSet]]);t.getInternalProto=function(e){if(Array.isArray(e)){return t.array}if(Buffer&&e instanceof Buffer){return t.buffer}if(e instanceof Date){return t.date}if(e instanceof RegExp){return t.regex}if(e instanceof Error){return t.error}const n=Object.prototype.toString.call(e);return r.typeMap.get(n)||t.generic}},417:function(e,t){const r={};t.keys=function(e,t={}){return t.symbols!==false?Reflect.ownKeys(e):Object.getOwnPropertyNames(e)}},497:function(e){const t={maxTimer:2**31-1};e.exports=function(e,r,n){if(typeof e==="bigint"){e=Number(e)}if(e>=Number.MAX_SAFE_INTEGER){e=Infinity}if(typeof e!=="number"&&e!==undefined){throw new TypeError("Timeout must be a number or bigint")}return new Promise((o=>{const s=n?n.setTimeout:setTimeout;const activate=()=>{const n=Math.min(e,t.maxTimer);e-=n;s((()=>e>0?activate():o(r)),n)};if(e!==Infinity){activate()}}))}}};var t={};function __nccwpck_require__(r){var n=t[r];if(n!==undefined){return n.exports}var o=t[r]={exports:{}};var s=true;try{e[r](o,o.exports,__nccwpck_require__);s=false}finally{if(s)delete t[r]}return o.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r={};!function(){var e=r;const{assert:t}=__nccwpck_require__(904);const n={};e.Sorter=class{constructor(){this._items=[];this.nodes=[]}add(e,r){r=r??{};const n=[].concat(r.before??[]);const o=[].concat(r.after??[]);const s=r.group??"?";const i=r.sort??0;t(!n.includes(s),`Item cannot come before itself: ${s}`);t(!n.includes("?"),"Item cannot come before unassociated items");t(!o.includes(s),`Item cannot come after itself: ${s}`);t(!o.includes("?"),"Item cannot come after unassociated items");if(!Array.isArray(e)){e=[e]}for(const t of e){const e={seq:this._items.length,sort:i,before:n,after:o,group:s,node:t};this._items.push(e)}if(!r.manual){const e=this._sort();t(e,"item",s!=="?"?`added into group ${s}`:"","created a dependencies error")}return this.nodes}merge(e){if(!Array.isArray(e)){e=[e]}for(const t of e){if(t){for(const e of t._items){this._items.push(Object.assign({},e))}}}this._items.sort(n.mergeSort);for(let e=0;e<this._items.length;++e){this._items[e].seq=e}const r=this._sort();t(r,"merge created a dependencies error");return this.nodes}sort(){const e=this._sort();t(e,"sort created a dependencies error");return this.nodes}_sort(){const e={};const t=Object.create(null);const r=Object.create(null);for(const n of this._items){const o=n.seq;const s=n.group;r[s]=r[s]??[];r[s].push(o);e[o]=n.before;for(const e of n.after){t[e]=t[e]??[];t[e].push(o)}}for(const t in e){const n=[];for(const o in e[t]){const s=e[t][o];r[s]=r[s]??[];n.push(...r[s])}e[t]=n}for(const n in t){if(r[n]){for(const o of r[n]){e[o].push(...t[n])}}}const n={};for(const t in e){const r=e[t];for(const e of r){n[e]=n[e]??[];n[e].push(t)}}const o={};const s=[];for(let e=0;e<this._items.length;++e){let t=e;if(n[e]){t=null;for(let e=0;e<this._items.length;++e){if(o[e]===true){continue}if(!n[e]){n[e]=[]}const r=n[e].length;let s=0;for(let t=0;t<r;++t){if(o[n[e][t]]){++s}}if(s===r){t=e;break}}}if(t!==null){o[t]=true;s.push(t)}}if(s.length!==this._items.length){return false}const i={};for(const e of this._items){i[e.seq]=e}this._items=[];this.nodes=[];for(const e of s){const t=i[e];this.nodes.push(t.node);this._items.push(t)}return true}};n.mergeSort=(e,t)=>e.sort===t.sort?0:e.sort<t.sort?-1:1}();module.exports=r})();
1
+ (function(){"use strict";var e={794:function(e,t,r){const n=r(648);const o=r(631);const s=r(221);const i=r(770);const f={};e.exports=function(e,t,r={}){n(e&&typeof e==="object","Invalid defaults value: must be an object");n(!t||t===true||typeof t==="object","Invalid source value: must be true, falsy or an object");n(typeof r==="object","Invalid options: must be an object");if(!t){return null}if(r.shallow){return f.applyToDefaultsWithShallow(e,t,r)}const i=o(e);if(t===true){return i}const c=r.nullOverride!==undefined?r.nullOverride:false;return s(i,t,{nullOverride:c,mergeArrays:false})};f.applyToDefaultsWithShallow=function(e,t,r){const c=r.shallow;n(Array.isArray(c),"Invalid keys");const a=new Map;const u=t===true?null:new Set;for(let r of c){r=Array.isArray(r)?r:r.split(".");const n=i(e,r);if(n&&typeof n==="object"){a.set(n,u&&i(t,r)||n)}else if(u){u.add(r)}}const l=o(e,{},a);if(!u){return l}for(const e of u){f.reachCopy(l,t,e)}const p=r.nullOverride!==undefined?r.nullOverride:false;return s(l,t,{nullOverride:p,mergeArrays:false})};f.reachCopy=function(e,t,r){for(const e of r){if(!(e in t)){return}const r=t[e];if(typeof r!=="object"||r===null){return}t=r}const n=t;let o=e;for(let e=0;e<r.length-1;++e){const t=r[e];if(typeof o[t]!=="object"){o[t]={}}o=o[t]}o[r[r.length-1]]=n}},648:function(e,t,r){const n=r(482);const o=r(503);const s={};const i=e.exports=function(e,...t){if(e){return}if(t.length===1&&t[0]instanceof Error){throw t[0]}const r=t.filter((e=>e!=="")).map((e=>typeof e==="string"?e:e instanceof Error?e.message:o(e)));throw new n(r.join(" "),i)}},482:function(e){const t={};e.exports=class AssertError extends Error{name="AssertError";constructor(e,t){super(e||"Unknown error");if(typeof Error.captureStackTrace==="function"){Error.captureStackTrace(this,t)}}}},895:function(e){const t={};e.exports=t.Bench=class{constructor(){this.ts=0;this.reset()}reset(){this.ts=t.Bench.now()}elapsed(){return t.Bench.now()-this.ts}static now(){const e=process.hrtime();return e[0]*1e3+e[1]/1e6}}},823:function(e,t,r){const n=r(209);const o={};e.exports=function(){return new Promise(n)}},631:function(e,t,r){const n=r(770);const o=r(996);const s=r(839);const i={needsProtoHack:new Set([o.set,o.map,o.weakSet,o.weakMap])};e.exports=i.clone=function(e,t={},r=null){if(typeof e!=="object"||e===null){return e}let n=i.clone;let f=r;if(t.shallow){if(t.shallow!==true){return i.cloneWithShallow(e,t)}n=e=>e}else if(f){const t=f.get(e);if(t){return t}}else{f=new Map}const c=o.getInternalProto(e);switch(c){case o.buffer:return Buffer?.from(e);case o.date:return new Date(e.getTime());case o.regex:case o.url:return new c.constructor(e)}const a=i.base(e,c,t);if(a===e){return e}if(f){f.set(e,a)}if(c===o.set){for(const r of e){a.add(n(r,t,f))}}else if(c===o.map){for(const[r,o]of e){a.set(r,n(o,t,f))}}const u=s.keys(e,t);for(const r of u){if(r==="__proto__"){continue}if(c===o.array&&r==="length"){a.length=e.length;continue}const s=Object.getOwnPropertyDescriptor(e,r);if(s){if(s.get||s.set){Object.defineProperty(a,r,s)}else if(s.enumerable){a[r]=n(e[r],t,f)}else{Object.defineProperty(a,r,{enumerable:false,writable:true,configurable:true,value:n(e[r],t,f)})}}else{Object.defineProperty(a,r,{enumerable:true,writable:true,configurable:true,value:n(e[r],t,f)})}}return a};i.cloneWithShallow=function(e,t){const r=t.shallow;t=Object.assign({},t);t.shallow=false;const o=new Map;for(const t of r){const r=n(e,t);if(typeof r==="object"||typeof r==="function"){o.set(r,r)}}return i.clone(e,t,o)};i.base=function(e,t,r){if(r.prototype===false){if(i.needsProtoHack.has(t)){return new t.constructor}return t===o.array?[]:{}}const n=Object.getPrototypeOf(e);if(n&&n.isImmutable){return e}if(t===o.array){const e=[];if(n!==t){Object.setPrototypeOf(e,n)}return e}if(i.needsProtoHack.has(t)){const e=new n.constructor;if(n!==t){Object.setPrototypeOf(e,n)}return e}return Object.create(n)}},562:function(e,t,r){const n=r(648);const o=r(616);const s=r(755);const i=r(839);const f={};e.exports=function(e,t,r={}){if(typeof t!=="object"){t=[t]}n(!Array.isArray(t)||t.length,"Values array cannot be empty");if(typeof e==="string"){return f.string(e,t,r)}if(Array.isArray(e)){return f.array(e,t,r)}n(typeof e==="object","Reference must be string or an object");return f.object(e,t,r)};f.array=function(e,t,r){if(!Array.isArray(t)){t=[t]}if(!e.length){return false}if(r.only&&r.once&&e.length!==t.length){return false}let n;const o=new Map;for(const e of t){if(!r.deep||!e||typeof e!=="object"){const t=o.get(e);if(t){++t.allowed}else{o.set(e,{allowed:1,hits:0})}}else{n=n??f.compare(r);let t=false;for(const[r,s]of o.entries()){if(n(r,e)){++s.allowed;t=true;break}}if(!t){o.set(e,{allowed:1,hits:0})}}}let s=0;for(const t of e){let e;if(!r.deep||!t||typeof t!=="object"){e=o.get(t)}else{n=n??f.compare(r);for(const[r,s]of o.entries()){if(n(r,t)){e=s;break}}}if(e){++e.hits;++s;if(r.once&&e.hits>e.allowed){return false}}}if(r.only&&s!==e.length){return false}for(const e of o.values()){if(e.hits===e.allowed){continue}if(e.hits<e.allowed&&!r.part){return false}}return!!s};f.object=function(e,t,r){n(r.once===undefined,"Cannot use option once with object");const o=i.keys(e,r);if(!o.length){return false}if(Array.isArray(t)){return f.array(o,t,r)}const s=Object.getOwnPropertySymbols(t).filter((e=>t.propertyIsEnumerable(e)));const c=[...Object.keys(t),...s];const a=f.compare(r);const u=new Set(c);for(const n of o){if(!u.has(n)){if(r.only){return false}continue}if(!a(t[n],e[n])){return false}u.delete(n)}if(u.size){return r.part?u.size<c.length:false}return true};f.string=function(e,t,r){if(e===""){return t.length===1&&t[0]===""||!r.once&&!t.some((e=>e!==""))}const o=new Map;const i=[];for(const e of t){n(typeof e==="string","Cannot compare string reference to non-string value");if(e){const t=o.get(e);if(t){++t.allowed}else{o.set(e,{allowed:1,hits:0});i.push(s(e))}}else if(r.once||r.only){return false}}if(!i.length){return true}const f=new RegExp(`(${i.join("|")})`,"g");const c=e.replace(f,((e,t)=>{++o.get(t).hits;return""}));if(r.only&&c){return false}let a=false;for(const e of o.values()){if(e.hits){a=true}if(e.hits===e.allowed){continue}if(e.hits<e.allowed&&!r.part){return false}if(r.once){return false}}return!!a};f.compare=function(e){if(!e.deep){return f.shallow}const t=e.only!==undefined;const r=e.part!==undefined;const n={prototype:t?e.only:r?!e.part:false,part:t?!e.only:r?e.part:false};return(e,t)=>o(e,t,n)};f.shallow=function(e,t){return e===t}},616:function(e,t,r){const n=r(996);const o={mismatched:null};e.exports=function(e,t,r){r=Object.assign({prototype:true},r);return!!o.isDeepEqual(e,t,r,[])};o.isDeepEqual=function(e,t,r,s){if(e===t){return e!==0||1/e===1/t}const i=typeof e;if(i!==typeof t){return false}if(e===null||t===null){return false}if(i==="function"){if(!r.deepFunction||e.toString()!==t.toString()){return false}}else if(i!=="object"){return e!==e&&t!==t}const f=o.getSharedType(e,t,!!r.prototype);switch(f){case n.buffer:return Buffer&&Buffer.prototype.equals.call(e,t);case n.promise:return e===t;case n.regex:case n.url:return e.toString()===t.toString();case o.mismatched:return false}for(let r=s.length-1;r>=0;--r){if(s[r].isSame(e,t)){return true}}s.push(new o.SeenEntry(e,t));try{return!!o.isDeepEqualObj(f,e,t,r,s)}finally{s.pop()}};o.getSharedType=function(e,t,r){if(r){if(Object.getPrototypeOf(e)!==Object.getPrototypeOf(t)){return o.mismatched}return n.getInternalProto(e)}const s=n.getInternalProto(e);if(s!==n.getInternalProto(t)){return o.mismatched}return s};o.valueOf=function(e){const t=e.valueOf;if(t===undefined){return e}try{return t.call(e)}catch(e){return e}};o.hasOwnEnumerableProperty=function(e,t){return Object.prototype.propertyIsEnumerable.call(e,t)};o.isSetSimpleEqual=function(e,t){for(const r of Set.prototype.values.call(e)){if(!Set.prototype.has.call(t,r)){return false}}return true};o.isDeepEqualObj=function(e,t,r,s,i){const{isDeepEqual:f,valueOf:c,hasOwnEnumerableProperty:a}=o;const{keys:u,getOwnPropertySymbols:l}=Object;if(e===n.array){if(s.part){for(const e of t){for(const t of r){if(f(e,t,s,i)){return true}}}}else{if(t.length!==r.length){return false}for(let e=0;e<t.length;++e){if(!f(t[e],r[e],s,i)){return false}}return true}}else if(e===n.set){if(t.size!==r.size){return false}if(!o.isSetSimpleEqual(t,r)){const e=new Set(Set.prototype.values.call(r));for(const r of Set.prototype.values.call(t)){if(e.delete(r)){continue}let t=false;for(const n of e){if(f(r,n,s,i)){e.delete(n);t=true;break}}if(!t){return false}}}}else if(e===n.map){if(t.size!==r.size){return false}for(const[e,n]of Map.prototype.entries.call(t)){if(n===undefined&&!Map.prototype.has.call(r,e)){return false}if(!f(n,Map.prototype.get.call(r,e),s,i)){return false}}}else if(e===n.error){if(t.name!==r.name||t.message!==r.message){return false}}const p=c(t);const y=c(r);if((t!==p||r!==y)&&!f(p,y,s,i)){return false}const h=u(t);if(!s.part&&h.length!==u(r).length&&!s.skip){return false}let d=0;for(const e of h){if(s.skip&&s.skip.includes(e)){if(r[e]===undefined){++d}continue}if(!a(r,e)){return false}if(!f(t[e],r[e],s,i)){return false}}if(!s.part&&h.length-d!==u(r).length){return false}if(s.symbols!==false){const e=l(t);const n=new Set(l(r));for(const o of e){if(!s.skip?.includes(o)){if(a(t,o)){if(!a(r,o)){return false}if(!f(t[o],r[o],s,i)){return false}}else if(a(r,o)){return false}}n.delete(o)}for(const e of n){if(a(r,e)){return false}}}return true};o.SeenEntry=class{constructor(e,t){this.obj=e;this.ref=t}isSame(e,t){return this.obj===e&&this.ref===t}}},233:function(e,t,r){const n=r(648);const o={};e.exports=function(e){n(/^[ \w\!#\$%&'\(\)\*\+,\-\.\/\:;<\=>\?@\[\]\^`\{\|\}~\"\\]*$/.test(e),"Bad attribute value ("+e+")");return e.replace(/\\/g,"\\\\").replace(/\"/g,'\\"')}},951:function(e){const t={};e.exports=function(e){if(!e){return""}let r="";for(let n=0;n<e.length;++n){const o=e.charCodeAt(n);if(t.isSafe(o)){r+=e[n]}else{r+=t.escapeHtmlChar(o)}}return r};t.escapeHtmlChar=function(e){const r=t.namedHtml.get(e);if(r){return r}if(e>=256){return"&#"+e+";"}const n=e.toString(16).padStart(2,"0");return`&#x${n};`};t.isSafe=function(e){return t.safeCharCodes.has(e)};t.namedHtml=new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[34,"&quot;"],[160,"&nbsp;"],[162,"&cent;"],[163,"&pound;"],[164,"&curren;"],[169,"&copy;"],[174,"&reg;"]]);t.safeCharCodes=function(){const e=new Set;for(let t=32;t<123;++t){if(t>=97||t>=65&&t<=90||t>=48&&t<=57||t===32||t===46||t===44||t===45||t===58||t===95){e.add(t)}}return e}()},860:function(e){const t={};e.exports=function(e){if(!e){return""}return e.replace(/[<>&\u2028\u2029]/g,t.escape)};t.escape=function(e){return t.replacements.get(e)};t.replacements=new Map([["<","\\u003c"],[">","\\u003e"],["&","\\u0026"],["\u2028","\\u2028"],["\u2029","\\u2029"]])},755:function(e){const t={};e.exports=function(e){return e.replace(/[\^\$\.\*\+\-\?\=\!\:\|\\\/\(\)\[\]\{\}\,]/g,"\\$&")}},491:function(e){const t={};e.exports=t.flatten=function(e,r){const n=r||[];for(const r of e){if(Array.isArray(r)){t.flatten(r,n)}else{n.push(r)}}return n}},209:function(e){const t={};e.exports=function(){}},858:function(e,t,r){t.applyToDefaults=r(794);t.assert=r(648);t.AssertError=r(482);t.Bench=r(895);t.block=r(823);t.clone=r(631);t.contain=r(562);t.deepEqual=r(616);t.escapeHeaderAttribute=r(233);t.escapeHtml=r(951);t.escapeJson=r(860);t.escapeRegex=r(755);t.flatten=r(491);t.ignore=r(209);t.intersect=r(974);t.isPromise=r(673);t.merge=r(221);t.once=r(281);t.reach=r(770);t.reachTemplate=r(773);t.stringify=r(503);t.wait=r(187)},974:function(e){const t={};e.exports=function(e,r,n={}){if(!e||!r){return n.first?null:[]}const o=[];const s=Array.isArray(e)?new Set(e):e;const i=new Set;for(const e of r){if(t.has(s,e)&&!i.has(e)){if(n.first){return e}o.push(e);i.add(e)}}return n.first?null:o};t.has=function(e,t){if(typeof e.has==="function"){return e.has(t)}return e[t]!==undefined}},673:function(e){const t={};e.exports=function(e){return typeof e?.then==="function"}},221:function(e,t,r){const n=r(648);const o=r(631);const s=r(839);const i={};e.exports=i.merge=function(e,t,r){n(e&&typeof e==="object","Invalid target value: must be an object");n(t===null||t===undefined||typeof t==="object","Invalid source value: must be null, undefined, or an object");if(!t){return e}r=Object.assign({nullOverride:true,mergeArrays:true},r);if(Array.isArray(t)){n(Array.isArray(e),"Cannot merge array onto an object");if(!r.mergeArrays){e.length=0}for(let n=0;n<t.length;++n){e.push(o(t[n],{symbols:r.symbols}))}return e}const f=s.keys(t,r);for(let n=0;n<f.length;++n){const s=f[n];if(s==="__proto__"||!Object.prototype.propertyIsEnumerable.call(t,s)){continue}const c=t[s];if(c&&typeof c==="object"){if(e[s]===c){continue}if(!e[s]||typeof e[s]!=="object"||Array.isArray(e[s])!==Array.isArray(c)||c instanceof Date||Buffer&&Buffer.isBuffer(c)||c instanceof RegExp){e[s]=o(c,{symbols:r.symbols})}else{i.merge(e[s],c,r)}}else{if(c!==null&&c!==undefined){e[s]=c}else if(r.nullOverride){e[s]=c}}}return e}},281:function(e){const t={wrapped:Symbol("wrapped")};e.exports=function(e){if(e[t.wrapped]){return e}let r=false;const wrappedFn=function(...t){if(!r){r=true;e(...t)}};wrappedFn[t.wrapped]=true;return wrappedFn}},770:function(e,t,r){const n=r(648);const o={};e.exports=function(e,t,r){if(t===false||t===null||t===undefined){return e}r=r||{};if(typeof r==="string"){r={separator:r}}const s=Array.isArray(t);n(!s||!r.separator,"Separator option is not valid for array-based chain");const i=s?t:t.split(r.separator||".");let f=e;for(let e=0;e<i.length;++e){let s=i[e];const c=r.iterables&&o.iterables(f);if(Array.isArray(f)||c==="set"){const e=Number(s);if(Number.isInteger(e)){s=e<0?f.length+e:e}}if(!f||typeof f==="function"&&r.functions===false||!c&&f[s]===undefined){n(!r.strict||e+1===i.length,"Missing segment",s,"in reach path ",t);n(typeof f==="object"||r.functions===true||typeof f!=="function","Invalid segment",s,"in reach path ",t);f=r.default;break}if(!c){f=f[s]}else if(c==="set"){f=[...f][s]}else{f=f.get(s)}}return f};o.iterables=function(e){if(e instanceof Set){return"set"}if(e instanceof Map){return"map"}}},773:function(e,t,r){const n=r(770);const o={};e.exports=function(e,t,r){return t.replace(/{([^{}]+)}/g,((t,o)=>{const s=n(e,o,r);return s??""}))}},503:function(e){const t={};e.exports=function(...e){try{return JSON.stringify(...e)}catch(e){return"[Cannot display object: "+e.message+"]"}}},996:function(e,t){const r={};t=e.exports={array:Array.prototype,buffer:Buffer&&Buffer.prototype,date:Date.prototype,error:Error.prototype,generic:Object.prototype,map:Map.prototype,promise:Promise.prototype,regex:RegExp.prototype,set:Set.prototype,url:URL.prototype,weakMap:WeakMap.prototype,weakSet:WeakSet.prototype};r.typeMap=new Map([["[object Error]",t.error],["[object Map]",t.map],["[object Promise]",t.promise],["[object Set]",t.set],["[object URL]",t.url],["[object WeakMap]",t.weakMap],["[object WeakSet]",t.weakSet]]);t.getInternalProto=function(e){if(Array.isArray(e)){return t.array}if(Buffer&&e instanceof Buffer){return t.buffer}if(e instanceof Date){return t.date}if(e instanceof RegExp){return t.regex}if(e instanceof Error){return t.error}const n=Object.prototype.toString.call(e);return r.typeMap.get(n)||t.generic}},839:function(e,t){const r={};t.keys=function(e,t={}){return t.symbols!==false?Reflect.ownKeys(e):Object.getOwnPropertyNames(e)}},187:function(e){const t={maxTimer:2**31-1};e.exports=function(e,r,n){if(typeof e==="bigint"){e=Number(e)}if(e>=Number.MAX_SAFE_INTEGER){e=Infinity}if(typeof e!=="number"&&e!==undefined){throw new TypeError("Timeout must be a number or bigint")}return new Promise((o=>{const s=n?n.setTimeout:setTimeout;const activate=()=>{const n=Math.min(e,t.maxTimer);e-=n;s((()=>e>0?activate():o(r)),n)};if(e!==Infinity){activate()}}))}}};var t={};function __nccwpck_require__(r){var n=t[r];if(n!==undefined){return n.exports}var o=t[r]={exports:{}};var s=true;try{e[r](o,o.exports,__nccwpck_require__);s=false}finally{if(s)delete t[r]}return o.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r={};!function(){var e=r;const{assert:t}=__nccwpck_require__(858);const n={};e.Sorter=class{constructor(){this._items=[];this.nodes=[]}add(e,r){r=r??{};const n=[].concat(r.before??[]);const o=[].concat(r.after??[]);const s=r.group??"?";const i=r.sort??0;t(!n.includes(s),`Item cannot come before itself: ${s}`);t(!n.includes("?"),"Item cannot come before unassociated items");t(!o.includes(s),`Item cannot come after itself: ${s}`);t(!o.includes("?"),"Item cannot come after unassociated items");if(!Array.isArray(e)){e=[e]}for(const t of e){const e={seq:this._items.length,sort:i,before:n,after:o,group:s,node:t};this._items.push(e)}if(!r.manual){const e=this._sort();t(e,"item",s!=="?"?`added into group ${s}`:"","created a dependencies error")}return this.nodes}merge(e){if(!Array.isArray(e)){e=[e]}for(const t of e){if(t){for(const e of t._items){this._items.push(Object.assign({},e))}}}this._items.sort(n.mergeSort);for(let e=0;e<this._items.length;++e){this._items[e].seq=e}const r=this._sort();t(r,"merge created a dependencies error");return this.nodes}sort(){const e=this._sort();t(e,"sort created a dependencies error");return this.nodes}_sort(){const e={};const t=Object.create(null);const r=Object.create(null);for(const n of this._items){const o=n.seq;const s=n.group;r[s]=r[s]??[];r[s].push(o);e[o]=n.before;for(const e of n.after){t[e]=t[e]??[];t[e].push(o)}}for(const t in e){const n=[];for(const o in e[t]){const s=e[t][o];r[s]=r[s]??[];n.push(...r[s])}e[t]=n}for(const n in t){if(r[n]){for(const o of r[n]){e[o].push(...t[n])}}}const n={};for(const t in e){const r=e[t];for(const e of r){n[e]=n[e]??[];n[e].push(t)}}const o={};const s=[];for(let e=0;e<this._items.length;++e){let t=e;if(n[e]){t=null;for(let e=0;e<this._items.length;++e){if(o[e]===true){continue}if(!n[e]){n[e]=[]}const r=n[e].length;let s=0;for(let t=0;t<r;++t){if(o[n[e][t]]){++s}}if(s===r){t=e;break}}}if(t!==null){o[t]=true;s.push(t)}}if(s.length!==this._items.length){return false}const i={};for(const e of this._items){i[e.seq]=e}this._items=[];this.nodes=[];for(const e of s){const t=i[e];this.nodes.push(t.node);this._items.push(t)}return true}};n.mergeSort=(e,t)=>e.sort===t.sort?0:e.sort<t.sort?-1:1}();module.exports=r})();
@@ -0,0 +1,3 @@
1
+ import { applyToDefaults } from "./index";
2
+
3
+ export = applyToDefaults;
@@ -0,0 +1,102 @@
1
+ 'use strict';
2
+
3
+ const Assert = require('./assert');
4
+ const Clone = require('./clone');
5
+ const Merge = require('./merge');
6
+ const Reach = require('./reach');
7
+
8
+
9
+ const internals = {};
10
+
11
+
12
+ module.exports = function (defaults, source, options = {}) {
13
+
14
+ Assert(defaults && typeof defaults === 'object', 'Invalid defaults value: must be an object');
15
+ Assert(!source || source === true || typeof source === 'object', 'Invalid source value: must be true, falsy or an object');
16
+ Assert(typeof options === 'object', 'Invalid options: must be an object');
17
+
18
+ if (!source) { // If no source, return null
19
+ return null;
20
+ }
21
+
22
+ if (options.shallow) {
23
+ return internals.applyToDefaultsWithShallow(defaults, source, options);
24
+ }
25
+
26
+ const copy = Clone(defaults);
27
+
28
+ if (source === true) { // If source is set to true, use defaults
29
+ return copy;
30
+ }
31
+
32
+ const nullOverride = options.nullOverride !== undefined ? options.nullOverride : false;
33
+ return Merge(copy, source, { nullOverride, mergeArrays: false });
34
+ };
35
+
36
+
37
+ internals.applyToDefaultsWithShallow = function (defaults, source, options) {
38
+
39
+ const keys = options.shallow;
40
+ Assert(Array.isArray(keys), 'Invalid keys');
41
+
42
+ const seen = new Map();
43
+ const merge = source === true ? null : new Set();
44
+
45
+ for (let key of keys) {
46
+ key = Array.isArray(key) ? key : key.split('.'); // Pre-split optimization
47
+
48
+ const ref = Reach(defaults, key);
49
+ if (ref &&
50
+ typeof ref === 'object') {
51
+
52
+ seen.set(ref, merge && Reach(source, key) || ref);
53
+ }
54
+ else if (merge) {
55
+ merge.add(key);
56
+ }
57
+ }
58
+
59
+ const copy = Clone(defaults, {}, seen);
60
+
61
+ if (!merge) {
62
+ return copy;
63
+ }
64
+
65
+ for (const key of merge) {
66
+ internals.reachCopy(copy, source, key);
67
+ }
68
+
69
+ const nullOverride = options.nullOverride !== undefined ? options.nullOverride : false;
70
+ return Merge(copy, source, { nullOverride, mergeArrays: false });
71
+ };
72
+
73
+
74
+ internals.reachCopy = function (dst, src, path) {
75
+
76
+ for (const segment of path) {
77
+ if (!(segment in src)) {
78
+ return;
79
+ }
80
+
81
+ const val = src[segment];
82
+
83
+ if (typeof val !== 'object' || val === null) {
84
+ return;
85
+ }
86
+
87
+ src = val;
88
+ }
89
+
90
+ const value = src;
91
+ let ref = dst;
92
+ for (let i = 0; i < path.length - 1; ++i) {
93
+ const segment = path[i];
94
+ if (typeof ref[segment] !== 'object') {
95
+ ref[segment] = {};
96
+ }
97
+
98
+ ref = ref[segment];
99
+ }
100
+
101
+ ref[path[path.length - 1]] = value;
102
+ };
@@ -0,0 +1,3 @@
1
+ import { assert } from "./index";
2
+
3
+ export = assert;
@@ -0,0 +1,30 @@
1
+ 'use strict';
2
+
3
+ const AssertError = require('./assertError');
4
+ const Stringify = require('./stringify');
5
+
6
+
7
+ const internals = {};
8
+
9
+
10
+ const assert = module.exports = function (condition, ...args) {
11
+
12
+ if (condition) {
13
+ return;
14
+ }
15
+
16
+ if (args.length === 1 &&
17
+ args[0] instanceof Error) {
18
+
19
+ throw args[0];
20
+ }
21
+
22
+ const msgs = args
23
+ .filter((arg) => arg !== '')
24
+ .map((arg) => {
25
+
26
+ return typeof arg === 'string' ? arg : arg instanceof Error ? arg.message : Stringify(arg);
27
+ });
28
+
29
+ throw new AssertError(msgs.join(' '), assert);
30
+ };
@@ -0,0 +1,3 @@
1
+ import { AssertError } from "./index";
2
+
3
+ export = AssertError;
@@ -0,0 +1,18 @@
1
+ 'use strict';
2
+
3
+ const internals = {};
4
+
5
+
6
+ module.exports = class AssertError extends Error {
7
+
8
+ name = 'AssertError';
9
+
10
+ constructor(message, ctor) {
11
+
12
+ super(message || 'Unknown error');
13
+
14
+ if (typeof Error.captureStackTrace === 'function') { // $lab:coverage:ignore$
15
+ Error.captureStackTrace(this, ctor);
16
+ }
17
+ }
18
+ };
@@ -0,0 +1,3 @@
1
+ import { Bench } from "./index";
2
+
3
+ export = Bench;
@@ -0,0 +1,29 @@
1
+ 'use strict';
2
+
3
+ const internals = {};
4
+
5
+
6
+ module.exports = internals.Bench = class {
7
+
8
+ constructor() {
9
+
10
+ this.ts = 0;
11
+ this.reset();
12
+ }
13
+
14
+ reset() {
15
+
16
+ this.ts = internals.Bench.now();
17
+ }
18
+
19
+ elapsed() {
20
+
21
+ return internals.Bench.now() - this.ts;
22
+ }
23
+
24
+ static now() {
25
+
26
+ const ts = process.hrtime();
27
+ return (ts[0] * 1e3) + (ts[1] / 1e6);
28
+ }
29
+ };
@@ -0,0 +1,3 @@
1
+ import { block } from "./index";
2
+
3
+ export = block;
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ const Ignore = require('./ignore');
4
+
5
+
6
+ const internals = {};
7
+
8
+
9
+ module.exports = function () {
10
+
11
+ return new Promise(Ignore);
12
+ };
@@ -0,0 +1,3 @@
1
+ import { clone } from "./index";
2
+
3
+ export = clone;
@@ -0,0 +1,174 @@
1
+ 'use strict';
2
+
3
+ const Reach = require('./reach');
4
+ const Types = require('./types');
5
+ const Utils = require('./utils');
6
+
7
+
8
+ const internals = {
9
+ needsProtoHack: new Set([Types.set, Types.map, Types.weakSet, Types.weakMap])
10
+ };
11
+
12
+
13
+ module.exports = internals.clone = function (obj, options = {}, _seen = null) {
14
+
15
+ if (typeof obj !== 'object' ||
16
+ obj === null) {
17
+
18
+ return obj;
19
+ }
20
+
21
+ let clone = internals.clone;
22
+ let seen = _seen;
23
+
24
+ if (options.shallow) {
25
+ if (options.shallow !== true) {
26
+ return internals.cloneWithShallow(obj, options);
27
+ }
28
+
29
+ clone = (value) => value;
30
+ }
31
+ else if (seen) {
32
+ const lookup = seen.get(obj);
33
+ if (lookup) {
34
+ return lookup;
35
+ }
36
+ }
37
+ else {
38
+ seen = new Map();
39
+ }
40
+
41
+ // Built-in object types
42
+
43
+ const baseProto = Types.getInternalProto(obj);
44
+ switch (baseProto) {
45
+ case Types.buffer:
46
+ return Buffer?.from(obj);
47
+ case Types.date:
48
+ return new Date(obj.getTime());
49
+ case Types.regex:
50
+ case Types.url:
51
+ return new baseProto.constructor(obj);
52
+ }
53
+
54
+ // Generic objects
55
+
56
+ const newObj = internals.base(obj, baseProto, options);
57
+ if (newObj === obj) {
58
+ return obj;
59
+ }
60
+
61
+ if (seen) {
62
+ seen.set(obj, newObj); // Set seen, since obj could recurse
63
+ }
64
+
65
+ if (baseProto === Types.set) {
66
+ for (const value of obj) {
67
+ newObj.add(clone(value, options, seen));
68
+ }
69
+ }
70
+ else if (baseProto === Types.map) {
71
+ for (const [key, value] of obj) {
72
+ newObj.set(key, clone(value, options, seen));
73
+ }
74
+ }
75
+
76
+ const keys = Utils.keys(obj, options);
77
+ for (const key of keys) {
78
+ if (key === '__proto__') {
79
+ continue;
80
+ }
81
+
82
+ if (baseProto === Types.array &&
83
+ key === 'length') {
84
+
85
+ newObj.length = obj.length;
86
+ continue;
87
+ }
88
+
89
+ const descriptor = Object.getOwnPropertyDescriptor(obj, key);
90
+ if (descriptor) {
91
+ if (descriptor.get ||
92
+ descriptor.set) {
93
+
94
+ Object.defineProperty(newObj, key, descriptor);
95
+ }
96
+ else if (descriptor.enumerable) {
97
+ newObj[key] = clone(obj[key], options, seen);
98
+ }
99
+ else {
100
+ Object.defineProperty(newObj, key, { enumerable: false, writable: true, configurable: true, value: clone(obj[key], options, seen) });
101
+ }
102
+ }
103
+ else {
104
+ Object.defineProperty(newObj, key, {
105
+ enumerable: true,
106
+ writable: true,
107
+ configurable: true,
108
+ value: clone(obj[key], options, seen)
109
+ });
110
+ }
111
+ }
112
+
113
+ return newObj;
114
+ };
115
+
116
+
117
+ internals.cloneWithShallow = function (source, options) {
118
+
119
+ const keys = options.shallow;
120
+ options = Object.assign({}, options);
121
+ options.shallow = false;
122
+
123
+ const seen = new Map();
124
+
125
+ for (const key of keys) {
126
+ const ref = Reach(source, key);
127
+ if (typeof ref === 'object' ||
128
+ typeof ref === 'function') {
129
+
130
+ seen.set(ref, ref);
131
+ }
132
+ }
133
+
134
+ return internals.clone(source, options, seen);
135
+ };
136
+
137
+
138
+ internals.base = function (obj, baseProto, options) {
139
+
140
+ if (options.prototype === false) { // Defaults to true
141
+ if (internals.needsProtoHack.has(baseProto)) {
142
+ return new baseProto.constructor();
143
+ }
144
+
145
+ return baseProto === Types.array ? [] : {};
146
+ }
147
+
148
+ const proto = Object.getPrototypeOf(obj);
149
+ if (proto &&
150
+ proto.isImmutable) {
151
+
152
+ return obj;
153
+ }
154
+
155
+ if (baseProto === Types.array) {
156
+ const newObj = [];
157
+ if (proto !== baseProto) {
158
+ Object.setPrototypeOf(newObj, proto);
159
+ }
160
+
161
+ return newObj;
162
+ }
163
+
164
+ if (internals.needsProtoHack.has(baseProto)) {
165
+ const newObj = new proto.constructor();
166
+ if (proto !== baseProto) {
167
+ Object.setPrototypeOf(newObj, proto);
168
+ }
169
+
170
+ return newObj;
171
+ }
172
+
173
+ return Object.create(proto);
174
+ };
@@ -0,0 +1,3 @@
1
+ import { contain } from "./index";
2
+
3
+ export = contain;