@withgraphite/graphite-cli 1.0.8 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.CHANGELOG.md +17 -0
- package/1463a26331df3b0b4d694b076097b2dd.node +0 -0
- package/741.js +3 -0
- package/741.js.LICENSE.txt +41 -0
- package/999.js +3 -0
- package/999.js.map +1 -0
- package/build/asset-manifest.json +7 -7
- package/build/index.html +1 -1
- package/build/static/css/{74.67093f40.chunk.css → 521.ea7bdcfc.chunk.css} +1 -1
- package/build/static/css/521.ea7bdcfc.chunk.css.map +1 -0
- package/build/static/css/main.a9f28c16.css +2 -0
- package/build/static/css/main.a9f28c16.css.map +1 -0
- package/build/static/js/521.9e4e25a2.chunk.js +1 -0
- package/build/static/js/521.9e4e25a2.chunk.js.map +1 -0
- package/build/static/js/main.js +1 -1
- package/build/static/js/main.js.map +1 -1
- package/child.js +1 -1
- package/child.js.map +1 -1
- package/graphite.js +1 -1
- package/graphite.js.LICENSE.txt +42 -0
- package/package.json +1 -1
- package/325.js +0 -3
- package/325.js.map +0 -1
- package/903.js +0 -3
- package/903.js.map +0 -1
- package/build/static/css/74.67093f40.chunk.css.map +0 -1
- package/build/static/css/main.c959f863.css +0 -2
- package/build/static/css/main.c959f863.css.map +0 -1
- package/build/static/js/74.ef2afffb.chunk.js +0 -1
- package/build/static/js/74.ef2afffb.chunk.js.map +0 -1
package/903.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
exports.id=903,exports.ids=[903],exports.modules={56200:(t,e,r)=>{var n=r(82361).EventEmitter,i=r(73837),o=r(22037),s=(r(39491),r(97355)),a="BE"==o.endianness();function u(t){return Math.pow(2,Math.ceil(Math.log(t)/Math.LN2))}function c(t){this.buf=Buffer.alloc(u(t||8192)),this.readOffset=0,this.writeOffset=0}e.Accumulator=c,c.prototype.writeAvail=function(){return this.buf.length-this.writeOffset},c.prototype.readAvail=function(){return this.writeOffset-this.readOffset},c.prototype.reserve=function(t){if(!(t<this.writeAvail()||(this.readOffset>0&&(this.buf.copy(this.buf,0,this.readOffset,this.writeOffset),this.writeOffset-=this.readOffset,this.readOffset=0),t<this.writeAvail()))){var e=Buffer.alloc(u(this.buf.length+t-this.writeAvail()));this.buf.copy(e),this.buf=e}},c.prototype.append=function(t){if(Buffer.isBuffer(t))this.reserve(t.length),t.copy(this.buf,this.writeOffset,0,t.length),this.writeOffset+=t.length;else{var e=Buffer.byteLength(t);this.reserve(e),this.buf.write(t,this.writeOffset),this.writeOffset+=e}},c.prototype.assertReadableSize=function(t){if(this.readAvail()<t)throw new Error("wanted to read "+t+" bytes but only have "+this.readAvail())},c.prototype.peekString=function(t){return this.assertReadableSize(t),this.buf.toString("utf-8",this.readOffset,this.readOffset+t)},c.prototype.readString=function(t){var e=this.peekString(t);return this.readOffset+=t,e},c.prototype.peekInt=function(t){switch(this.assertReadableSize(t),t){case 1:return this.buf.readInt8(this.readOffset,t);case 2:return a?this.buf.readInt16BE(this.readOffset,t):this.buf.readInt16LE(this.readOffset,t);case 4:return a?this.buf.readInt32BE(this.readOffset,t):this.buf.readInt32LE(this.readOffset,t);case 8:var e=this.buf.slice(this.readOffset,this.readOffset+8);return new s(a?e:y(e));default:throw new Error("invalid integer size "+t)}},c.prototype.readInt=function(t){var e=this.peekInt(t);return e instanceof s&&isFinite(e.valueOf())&&(e=e.valueOf()),this.readOffset+=t,e},c.prototype.peekDouble=function(){return this.assertReadableSize(8),a?this.buf.readDoubleBE(this.readOffset):this.buf.readDoubleLE(this.readOffset)},c.prototype.readDouble=function(){var t=this.peekDouble();return this.readOffset+=8,t},c.prototype.readAdvance=function(t){if(t>0)this.assertReadableSize(t);else if(t<0&&this.readOffset+t<0)throw new Error("advance with negative offset "+t+" would seek off the start of the buffer");this.readOffset+=t},c.prototype.writeByte=function(t){this.reserve(1),this.buf.writeInt8(t,this.writeOffset),++this.writeOffset},c.prototype.writeInt=function(t,e){switch(this.reserve(e),e){case 1:this.buf.writeInt8(t,this.writeOffset);break;case 2:a?this.buf.writeInt16BE(t,this.writeOffset):this.buf.writeInt16LE(t,this.writeOffset);break;case 4:a?this.buf.writeInt32BE(t,this.writeOffset):this.buf.writeInt32LE(t,this.writeOffset);break;default:throw new Error("unsupported integer size "+e)}this.writeOffset+=e},c.prototype.writeDouble=function(t){this.reserve(8),a?this.buf.writeDoubleBE(t,this.writeOffset):this.buf.writeDoubleLE(t,this.writeOffset),this.writeOffset+=8};var h=3,f=4,p=5,l=6,d=127,v=32767,m=2147483647;function _(){n.call(this),this.buf=new c,this.state=0}function y(t){for(var e=Buffer.alloc(t.length),r=0;r<t.length;r++)e[r]=t[t.length-1-r];return e}function g(t,e){var r=e.toBuffer();if(a)return t.writeByte(l),void t.append(r);var n=y(r);t.writeByte(l),t.append(n)}function w(t,e){var r=Math.abs(e);r<=d?(t.writeByte(h),t.writeInt(e,1)):r<=v?(t.writeByte(f),t.writeInt(e,2)):r<=m?(t.writeByte(p),t.writeInt(e,4)):g(t,new s(e))}function E(t,e){switch(typeof e){case"number":return void(isFinite(e)&&Math.floor(e)===e?w(t,e):(t.writeByte(7),t.writeDouble(e)));case"string":return t.writeByte(2),w(t,Buffer.byteLength(e)),void t.append(e);case"boolean":return void t.writeByte(e?8:9);case"object":if(null===e)return void t.writeByte(10);if(e instanceof s)return void g(t,e);if(Array.isArray(e)){t.writeByte(0),w(t,e.length);for(var r=0;r<e.length;++r)E(t,e[r]);return}t.writeByte(1);var n=Object.keys(e),i=n.length;for(r=0;r<n.length;++r)void 0===(a=e[o=n[r]])&&i--;for(w(t,i),r=0;r<n.length;++r){var o,a;if(void 0!==(a=e[o=n[r]])){E(t,o);try{E(t,a)}catch(t){throw new Error(t.message+" (while serializing object property with name `"+o+"')")}}}return;default:throw new Error("cannot serialize type "+typeof e+" to BSER")}}i.inherits(_,n),e.BunserBuf=_,_.prototype.append=function(t,e){if(e)return this.buf.append(t),this.process(e);try{this.buf.append(t)}catch(t){return void this.emit("error",t)}this.processLater()},_.prototype.processLater=function(){var t=this;process.nextTick((function(){try{t.process(!1)}catch(e){t.emit("error",e)}}))},_.prototype.process=function(t){if(0==this.state){if(this.buf.readAvail()<2)return;if(this.expectCode(0),this.expectCode(1),this.pduLen=this.decodeInt(!0),!1===this.pduLen)return void this.buf.readAdvance(-2);this.buf.reserve(this.pduLen),this.state=1}if(1==this.state){if(this.buf.readAvail()<this.pduLen)return;var e=this.decodeAny();if(t)return e;this.emit("value",e),this.state=0}!t&&this.buf.readAvail()>0&&this.processLater()},_.prototype.raise=function(t){throw new Error(t+", in Buffer of length "+this.buf.buf.length+" ("+this.buf.readAvail()+" readable) at offset "+this.buf.readOffset+" buffer: "+JSON.stringify(this.buf.buf.slice(this.buf.readOffset,this.buf.readOffset+32).toJSON()))},_.prototype.expectCode=function(t){var e=this.buf.readInt(1);e!=t&&this.raise("expected bser opcode "+t+" but got "+e)},_.prototype.decodeAny=function(){var t=this.buf.peekInt(1);switch(t){case h:case f:case p:case l:return this.decodeInt();case 7:return this.buf.readAdvance(1),this.buf.readDouble();case 8:return this.buf.readAdvance(1),!0;case 9:return this.buf.readAdvance(1),!1;case 10:return this.buf.readAdvance(1),null;case 2:return this.decodeString();case 0:return this.decodeArray();case 1:return this.decodeObject();case 11:return this.decodeTemplate();default:this.raise("unhandled bser opcode "+t)}},_.prototype.decodeArray=function(){this.expectCode(0);for(var t=this.decodeInt(),e=[],r=0;r<t;++r)e.push(this.decodeAny());return e},_.prototype.decodeObject=function(){this.expectCode(1);for(var t=this.decodeInt(),e={},r=0;r<t;++r){var n=this.decodeString(),i=this.decodeAny();e[n]=i}return e},_.prototype.decodeTemplate=function(){this.expectCode(11);for(var t=this.decodeArray(),e=this.decodeInt(),r=[],n=0;n<e;++n){for(var i={},o=0;o<t.length;++o)if(12!=this.buf.peekInt(1)){var s=this.decodeAny();i[t[o]]=s}else this.buf.readAdvance(1);r.push(i)}return r},_.prototype.decodeString=function(){this.expectCode(2);var t=this.decodeInt();return this.buf.readString(t)},_.prototype.decodeInt=function(t){if(t&&this.buf.readAvail()<1)return!1;this.buf.assertReadableSize(1);var e=this.buf.peekInt(1),r=0;switch(e){case h:r=1;break;case f:r=2;break;case p:r=4;break;case l:r=8;break;default:this.raise("invalid bser int encoding "+e)}return!(t&&this.buf.readAvail()<1+r)&&(this.buf.readAdvance(1),this.buf.readInt(r))},e.loadFromBuffer=function(t){var e=new _,r=e.append(t,!0);if(e.buf.readAvail())throw Error("excess data found after input buffer, use BunserBuf instead");if(void 0===r)throw Error("no bser found in string and no error raised!?");return r},e.dumpToBuffer=function(t){var e=new c;e.writeByte(0),e.writeByte(1),e.writeByte(p),e.writeInt(0,4),E(e,t);var r=e.writeOffset,n=r-7;return e.writeOffset=3,e.writeInt(n,4),e.writeOffset=r,e.buf.slice(0,r)}},53651:(t,e,r)=>{"use strict";const n=r(32081),i=r(39935),o=r(84365);function s(t,e,r){const s=i(t,e,r),a=n.spawn(s.command,s.args,s.options);return o.hookChildProcess(a,s),a}t.exports=s,t.exports.spawn=s,t.exports.sync=function(t,e,r){const s=i(t,e,r),a=n.spawnSync(s.command,s.args,s.options);return a.error=a.error||o.verifyENOENTSync(a.status,s),a},t.exports._parse=i,t.exports._enoent=o},84365:t=>{"use strict";const e="win32"===process.platform;function r(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function n(t,n){return e&&1===t&&!n.file?r(n.original,"spawn"):null}t.exports={hookChildProcess:function(t,r){if(!e)return;const i=t.emit;t.emit=function(e,o){if("exit"===e){const e=n(o,r);if(e)return i.call(t,"error",e)}return i.apply(t,arguments)}},verifyENOENT:n,verifyENOENTSync:function(t,n){return e&&1===t&&!n.file?r(n.original,"spawnSync"):null},notFoundError:r}},39935:(t,e,r)=>{"use strict";const n=r(71017),i=r(79168),o=r(56658),s=r(71087),a="win32"===process.platform,u=/\.(?:com|exe)$/i,c=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;t.exports=function(t,e,r){e&&!Array.isArray(e)&&(r=e,e=null);const h={command:t,args:e=e?e.slice(0):[],options:r=Object.assign({},r),file:void 0,original:{command:t,args:e}};return r.shell?h:function(t){if(!a)return t;const e=function(t){t.file=i(t);const e=t.file&&s(t.file);return e?(t.args.unshift(t.file),t.command=e,i(t)):t.file}(t),r=!u.test(e);if(t.options.forceShell||r){const r=c.test(e);t.command=n.normalize(t.command),t.command=o.command(t.command),t.args=t.args.map((t=>o.argument(t,r)));const i=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${i}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}(h)}},56658:t=>{"use strict";const e=/([()\][%!^"`<>&|;, *?])/g;t.exports.command=function(t){return t.replace(e,"^$1")},t.exports.argument=function(t,r){return t=(t=`"${t=(t=(t=`${t}`).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(e,"^$1"),r&&(t=t.replace(e,"^$1")),t}},71087:(t,e,r)=>{"use strict";const n=r(57147),i=r(31996);t.exports=function(t){const e=Buffer.alloc(150);let r;try{r=n.openSync(t,"r"),n.readSync(r,e,0,150,0),n.closeSync(r)}catch(t){}return i(e.toString())}},79168:(t,e,r)=>{"use strict";const n=r(71017),i=r(83711),o=r(96501);function s(t,e){const r=t.options.env||process.env,s=process.cwd(),a=null!=t.options.cwd,u=a&&void 0!==process.chdir&&!process.chdir.disabled;if(u)try{process.chdir(t.options.cwd)}catch(t){}let c;try{c=i.sync(t.command,{path:r[o({env:r})],pathExt:e?n.delimiter:void 0})}catch(t){}finally{u&&process.chdir(s)}return c&&(c=n.resolve(a?t.options.cwd:"",c)),c}t.exports=function(t){return s(t)||s(t,!0)}},60492:(t,e,r)=>{"use strict";const n=r(71017),i=r(32081),o=r(53651),s=r(3043),a=r(83833),u=r(61042),c=r(52343),h=r(26788),{spawnedKill:f,spawnedCancel:p,setupTimeout:l,validateTimeout:d,setExitHandler:v}=r(84828),{handleInput:m,getSpawnedResult:_,makeAllStream:y,validateInputSync:g}=r(54431),{mergePromise:w,getSpawnedPromise:E}=r(90619),{joinCommand:b,parseCommand:I,getEscapedCommand:S}=r(93214),O=(t,e,r={})=>{const i=o._parse(t,e,r);return t=i.command,e=i.args,(r={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(r=i.options).cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...r}).env=(({env:t,extendEnv:e,preferLocal:r,localDir:n,execPath:i})=>{const o=e?{...process.env,...t}:t;return r?a.env({env:o,cwd:n,execPath:i}):o})(r),r.stdio=h(r),"win32"===process.platform&&"cmd"===n.basename(t,".exe")&&e.unshift("/q"),{file:t,args:e,options:r,parsed:i}},x=(t,e,r)=>"string"==typeof e||Buffer.isBuffer(e)?t.stripFinalNewline?s(e):e:void 0===r?void 0:"",A=(t,e,r)=>{const n=O(t,e,r),o=b(t,e),s=S(t,e);let a;d(n.options);try{a=i.spawn(n.file,n.args,n.options)}catch(t){const e=new i.ChildProcess,r=Promise.reject(c({error:t,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return w(e,r)}const h=E(a),g=l(a,n.options,h),I=v(a,n.options,g),A={isCanceled:!1};a.kill=f.bind(null,a.kill.bind(a)),a.cancel=p.bind(null,a,A);const R=u((async()=>{const[{error:t,exitCode:e,signal:r,timedOut:i},u,h,f]=await _(a,n.options,I),p=x(n.options,u),l=x(n.options,h),d=x(n.options,f);if(t||0!==e||null!==r){const u=c({error:t,exitCode:e,signal:r,stdout:p,stderr:l,all:d,command:o,escapedCommand:s,parsed:n,timedOut:i,isCanceled:A.isCanceled,killed:a.killed});if(!n.options.reject)return u;throw u}return{command:o,escapedCommand:s,exitCode:0,stdout:p,stderr:l,all:d,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}));return m(a,n.options.input),a.all=y(a,n.options),w(a,R)};t.exports=A,t.exports.sync=(t,e,r)=>{const n=O(t,e,r),o=b(t,e),s=S(t,e);let a;g(n.options);try{a=i.spawnSync(n.file,n.args,n.options)}catch(t){throw c({error:t,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}const u=x(n.options,a.stdout,a.error),h=x(n.options,a.stderr,a.error);if(a.error||0!==a.status||null!==a.signal){const t=c({stdout:u,stderr:h,error:a.error,signal:a.signal,exitCode:a.status,command:o,escapedCommand:s,parsed:n,timedOut:a.error&&"ETIMEDOUT"===a.error.code,isCanceled:!1,killed:null!==a.signal});if(!n.options.reject)return t;throw t}return{command:o,escapedCommand:s,exitCode:0,stdout:u,stderr:h,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},t.exports.command=(t,e)=>{const[r,...n]=I(t);return A(r,n,e)},t.exports.commandSync=(t,e)=>{const[r,...n]=I(t);return A.sync(r,n,e)},t.exports.node=(t,e,r={})=>{e&&!Array.isArray(e)&&"object"==typeof e&&(r=e,e=[]);const n=h.node(r),i=process.execArgv.filter((t=>!t.startsWith("--inspect"))),{nodePath:o=process.execPath,nodeOptions:s=i}=r;return A(o,[...s,t,...Array.isArray(e)?e:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1})}},93214:t=>{"use strict";const e=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],r=/^[\w.-]+$/,n=/"/g,i=/ +/g;t.exports={joinCommand:(t,r)=>e(t,r).join(" "),getEscapedCommand:(t,i)=>e(t,i).map((t=>(t=>"string"!=typeof t||r.test(t)?t:`"${t.replace(n,'\\"')}"`)(t))).join(" "),parseCommand:t=>{const e=[];for(const r of t.trim().split(i)){const t=e[e.length-1];t&&t.endsWith("\\")?e[e.length-1]=`${t.slice(0,-1)} ${r}`:e.push(r)}return e}}},52343:(t,e,r)=>{"use strict";const{signalsByName:n}=r(15946);t.exports=({stdout:t,stderr:e,all:r,error:i,signal:o,exitCode:s,command:a,escapedCommand:u,timedOut:c,isCanceled:h,killed:f,parsed:{options:{timeout:p}}})=>{s=null===s?void 0:s;const l=void 0===(o=null===o?void 0:o)?void 0:n[o].description,d=(({timedOut:t,timeout:e,errorCode:r,signal:n,signalDescription:i,exitCode:o,isCanceled:s})=>t?`timed out after ${e} milliseconds`:s?"was canceled":void 0!==r?`failed with ${r}`:void 0!==n?`was killed with ${n} (${i})`:void 0!==o?`failed with exit code ${o}`:"failed")({timedOut:c,timeout:p,errorCode:i&&i.code,signal:o,signalDescription:l,exitCode:s,isCanceled:h}),v=`Command ${d}: ${a}`,m="[object Error]"===Object.prototype.toString.call(i),_=m?`${v}\n${i.message}`:v,y=[_,e,t].filter(Boolean).join("\n");return m?(i.originalMessage=i.message,i.message=y):i=new Error(y),i.shortMessage=_,i.command=a,i.escapedCommand=u,i.exitCode=s,i.signal=o,i.signalDescription=l,i.stdout=t,i.stderr=e,void 0!==r&&(i.all=r),"bufferedData"in i&&delete i.bufferedData,i.failed=!0,i.timedOut=Boolean(c),i.isCanceled=h,i.killed=f&&!c,i}},84828:(t,e,r)=>{"use strict";const n=r(22037),i=r(79372),o=(t,{forceKillAfterTimeout:e},r)=>s(t)&&!1!==e&&r,s=t=>t===n.constants.signals.SIGTERM||"string"==typeof t&&"SIGTERM"===t.toUpperCase(),a=({forceKillAfterTimeout:t=!0})=>{if(!0===t)return 5e3;if(!Number.isFinite(t)||t<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`);return t};t.exports={spawnedKill:(t,e="SIGTERM",r={})=>{const n=t(e);return((t,e,r,n)=>{if(!o(e,r,n))return;const i=a(r),s=setTimeout((()=>{t("SIGKILL")}),i);s.unref&&s.unref()})(t,e,r,n),n},spawnedCancel:(t,e)=>{t.kill()&&(e.isCanceled=!0)},setupTimeout:(t,{timeout:e,killSignal:r="SIGTERM"},n)=>{if(0===e||void 0===e)return n;let i;const o=new Promise(((n,o)=>{i=setTimeout((()=>{((t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))})(t,r,o)}),e)})),s=n.finally((()=>{clearTimeout(i)}));return Promise.race([o,s])},validateTimeout:({timeout:t})=>{if(void 0!==t&&(!Number.isFinite(t)||t<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`)},setExitHandler:async(t,{cleanup:e,detached:r},n)=>{if(!e||r)return n;const o=i((()=>{t.kill()}));return n.finally((()=>{o()}))}}},90619:t=>{"use strict";const e=(async()=>{})().constructor.prototype,r=["then","catch","finally"].map((t=>[t,Reflect.getOwnPropertyDescriptor(e,t)]));t.exports={mergePromise:(t,e)=>{for(const[n,i]of r){const r="function"==typeof e?(...t)=>Reflect.apply(i.value,e(),t):i.value.bind(e);Reflect.defineProperty(t,n,{...i,value:r})}return t},getSpawnedPromise:t=>new Promise(((e,r)=>{t.on("exit",((t,r)=>{e({exitCode:t,signal:r})})),t.on("error",(t=>{r(t)})),t.stdin&&t.stdin.on("error",(t=>{r(t)}))}))}},26788:t=>{"use strict";const e=["stdin","stdout","stderr"],r=t=>{if(!t)return;const{stdio:r}=t;if(void 0===r)return e.map((e=>t[e]));if((t=>e.some((e=>void 0!==t[e])))(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${e.map((t=>`\`${t}\``)).join(", ")}`);if("string"==typeof r)return r;if(!Array.isArray(r))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof r}\``);const n=Math.max(r.length,e.length);return Array.from({length:n},((t,e)=>r[e]))};t.exports=r,t.exports.node=t=>{const e=r(t);return"ipc"===e?"ipc":void 0===e||"string"==typeof e?[e,e,e,"ipc"]:e.includes("ipc")?e:[...e,"ipc"]}},54431:(t,e,r)=>{"use strict";const n=r(16927),i=r(4010),o=r(41220),s=async(t,e)=>{if(t){t.destroy();try{return await e}catch(t){return t.bufferedData}}},a=(t,{encoding:e,buffer:r,maxBuffer:n})=>{if(t&&r)return e?i(t,{encoding:e,maxBuffer:n}):i.buffer(t,{maxBuffer:n})};t.exports={handleInput:(t,e)=>{void 0!==e&&void 0!==t.stdin&&(n(e)?e.pipe(t.stdin):t.stdin.end(e))},makeAllStream:(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;const r=o();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},getSpawnedResult:async({stdout:t,stderr:e,all:r},{encoding:n,buffer:i,maxBuffer:o},u)=>{const c=a(t,{encoding:n,buffer:i,maxBuffer:o}),h=a(e,{encoding:n,buffer:i,maxBuffer:o}),f=a(r,{encoding:n,buffer:i,maxBuffer:2*o});try{return await Promise.all([u,c,h,f])}catch(n){return Promise.all([{error:n,signal:n.signal,timedOut:n.timedOut},s(t,c),s(e,h),s(r,f)])}},validateInputSync:({input:t})=>{if(n(t))throw new TypeError("The `input` option cannot be a stream in sync mode")}}},24678:(t,e,r)=>{"use strict";var n=r(41808),i=r(82361).EventEmitter,o=r(73837),s=r(32081),a=r(56200),u=["subscription","log"];function c(t){i.call(this),this.watchmanBinaryPath="watchman",t&&t.watchmanBinaryPath&&(this.watchmanBinaryPath=t.watchmanBinaryPath.trim()),this.commands=[]}o.inherits(c,i),t.exports.Client=c,c.prototype.sendNextCommand=function(){this.currentCommand||(this.currentCommand=this.commands.shift(),this.currentCommand&&this.socket.write(a.dumpToBuffer(this.currentCommand.cmd)))},c.prototype.cancelCommands=function(t){var e=new Error(t),r=this.commands;this.commands=[],this.currentCommand&&(r.unshift(this.currentCommand),this.currentCommand=null),r.forEach((function(t){t.cb(e)}))},c.prototype.connect=function(){var t=this;function e(e){t.bunser=new a.BunserBuf,t.bunser.on("value",(function(e){for(var r=!1,n=0;n<u.length;n++){var i=u[n];i in e&&(r=i)}if(r)t.emit(r,e);else if(t.currentCommand){var o=t.currentCommand;if(t.currentCommand=null,"error"in e){var s=new Error(e.error);s.watchmanResponse=e,o.cb(s)}else o.cb(null,e)}t.sendNextCommand()})),t.bunser.on("error",(function(e){t.emit("error",e)})),t.socket=n.createConnection(e),t.socket.on("connect",(function(){t.connecting=!1,t.emit("connect"),t.sendNextCommand()})),t.socket.on("error",(function(e){t.connecting=!1,t.emit("error",e)})),t.socket.on("data",(function(e){t.bunser&&t.bunser.append(e)})),t.socket.on("end",(function(){t.socket=null,t.bunser=null,t.cancelCommands("The watchman connection was closed"),t.emit("end")}))}if(process.env.WATCHMAN_SOCK)e(process.env.WATCHMAN_SOCK);else{var r=["--no-pretty","get-sockname"],i=null,o=!1;try{i=s.spawn(this.watchmanBinaryPath,r,{stdio:["ignore","pipe","pipe"],windowsHide:!0})}catch(t){return void f(t)}var c=[],h=[];i.stdout.on("data",(function(t){c.push(t)})),i.stderr.on("data",(function(t){t=t.toString("utf8"),h.push(t),console.error(t)})),i.on("error",(function(t){f(t)})),i.on("close",(function(n,i){if(0===n)try{var o=JSON.parse(c.join(""));if("error"in o){var s=new Error(o.error);return s.watchmanResponse=o,void t.emit("error",s)}e(o.sockname)}catch(e){t.emit("error",e)}else f(new Error(t.watchmanBinaryPath+" "+r.join(" ")+" returned with exit code="+n+", signal="+i+", stderr= "+h.join("")))}))}function f(e){o||(o=!0,"EACCES"===e.code||"EACCES"===e.errno?e.message="The Watchman CLI is installed but cannot be spawned because of a permission problem":"ENOENT"!==e.code&&"ENOENT"!==e.errno||(e.message="Watchman was not found in PATH. See https://facebook.github.io/watchman/docs/install.html for installation instructions"),console.error("Watchman: ",e.message),t.emit("error",e))}},c.prototype.command=function(t,e){if(e=e||function(){},this.commands.push({cmd:t,cb:e}),!this.socket)return this.connecting?void 0:(this.connecting=!0,void this.connect());this.sendNextCommand()};var h={"cmd-watch-del-all":"3.1.1","cmd-watch-project":"3.1",relative_root:"3.3","term-dirname":"3.1","term-idirname":"3.1",wildmatch:"3.7"};function f(t,e){return e in h&&function(t,e){t=t.split("."),e=e.split(".");for(var r=0;r<3;r++){var n=parseInt(t[r]||"0")-parseInt(e[r]||"0");if(0!=n)return n}return 0}(t,h[e])>=0}c.prototype._synthesizeCapabilityCheck=function(t,e,r){t.capabilities={};var n=t.version;return e.forEach((function(e){t.capabilities[e]=f(n,e)})),r.forEach((function(e){var r=f(n,e);t.capabilities[e]=r,r||(t.error="client required capability `"+e+"` is not supported by this server")})),t},c.prototype.capabilityCheck=function(t,e){var r=t.optional||[],n=t.required||[],i=this;this.command(["version",{optional:r,required:n}],(function(t,o){if(!t)return!("capabilities"in o)&&(o=i._synthesizeCapabilityCheck(o,r,n)).error?((t=new Error(o.error)).watchmanResponse=o,void e(t)):void e(null,o);e(t)}))},c.prototype.end=function(){this.cancelCommands("The client was ended"),this.socket&&(this.socket.end(),this.socket=null),this.bunser=null}},44792:(t,e,r)=>{"use strict";const{PassThrough:n}=r(12781);t.exports=t=>{t={...t};const{array:e}=t;let{encoding:r}=t;const i="buffer"===r;let o=!1;e?o=!(r||i):r=r||"utf8",i&&(r=null);const s=new n({objectMode:o});r&&s.setEncoding(r);let a=0;const u=[];return s.on("data",(t=>{u.push(t),o?a=u.length:a+=t.length})),s.getBufferedValue=()=>e?u:i?Buffer.concat(u,a):u.join(""),s.getBufferedLength=()=>a,s}},4010:(t,e,r)=>{"use strict";const{constants:n}=r(14300),i=r(12781),{promisify:o}=r(73837),s=r(44792),a=o(i.pipeline);class u extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}async function c(t,e){if(!t)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};const{maxBuffer:r}=e,i=s(e);return await new Promise(((e,o)=>{const s=t=>{t&&i.getBufferedLength()<=n.MAX_LENGTH&&(t.bufferedData=i.getBufferedValue()),o(t)};(async()=>{try{await a(t,i),e()}catch(t){s(t)}})(),i.on("data",(()=>{i.getBufferedLength()>r&&s(new u)}))})),i.getBufferedValue()}t.exports=c,t.exports.buffer=(t,e)=>c(t,{...e,encoding:"buffer"}),t.exports.array=(t,e)=>c(t,{...e,array:!0}),t.exports.MaxBufferError=u},92133:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SIGNALS=void 0,e.SIGNALS=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}]},15946:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.signalsByNumber=e.signalsByName=void 0;var n=r(22037),i=r(6293),o=r(51193);const s=(0,i.getSignals)().reduce((function(t,{name:e,number:r,description:n,supported:i,action:o,forced:s,standard:a}){return{...t,[e]:{name:e,number:r,description:n,supported:i,action:o,forced:s,standard:a}}}),{});e.signalsByName=s;const a=function(t,e){const r=e.find((({name:e})=>n.constants.signals[e]===t));return void 0!==r?r:e.find((e=>e.number===t))},u=function(){const t=(0,i.getSignals)(),e=o.SIGRTMAX+1,r=Array.from({length:e},((e,r)=>function(t,e){const r=a(t,e);if(void 0===r)return{};const{name:n,description:i,supported:o,action:s,forced:u,standard:c}=r;return{[t]:{name:n,number:t,description:i,supported:o,action:s,forced:u,standard:c}}}(r,t)));return Object.assign({},...r)}();e.signalsByNumber=u},51193:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SIGRTMAX=e.getRealtimeSignals=void 0,e.getRealtimeSignals=function(){const t=i-n+1;return Array.from({length:t},r)};const r=function(t,e){return{name:`SIGRT${e+1}`,number:n+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},n=34,i=64;e.SIGRTMAX=i},6293:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getSignals=void 0;var n=r(22037),i=r(92133),o=r(51193);e.getSignals=function(){const t=(0,o.getRealtimeSignals)();return[...i.SIGNALS,...t].map(s)};const s=function({name:t,number:e,description:r,action:i,forced:o=!1,standard:s}){const{signals:{[t]:a}}=n.constants,u=void 0!==a;return{name:t,number:u?a:e,description:r,supported:u,action:i,forced:o,standard:s}}},16927:t=>{"use strict";const e=t=>null!==t&&"object"==typeof t&&"function"==typeof t.pipe;e.writable=t=>e(t)&&!1!==t.writable&&"function"==typeof t._write&&"object"==typeof t._writableState,e.readable=t=>e(t)&&!1!==t.readable&&"function"==typeof t._read&&"object"==typeof t._readableState,e.duplex=t=>e.writable(t)&&e.readable(t),e.transform=t=>e.duplex(t)&&"function"==typeof t._transform,t.exports=e},16277:(t,e,r)=>{var n;function i(t,e,r){if("function"==typeof e&&(r=e,e={}),!r){if("function"!=typeof Promise)throw new TypeError("callback not provided");return new Promise((function(r,n){i(t,e||{},(function(t,e){t?n(t):r(e)}))}))}n(t,e||{},(function(t,n){t&&("EACCES"===t.code||e&&e.ignoreErrors)&&(t=null,n=!1),r(t,n)}))}r(57147),n="win32"===process.platform||global.TESTING_WINDOWS?r(28945):r(35205),t.exports=i,i.sync=function(t,e){try{return n.sync(t,e||{})}catch(t){if(e&&e.ignoreErrors||"EACCES"===t.code)return!1;throw t}}},35205:(t,e,r)=>{t.exports=i,i.sync=function(t,e){return o(n.statSync(t),e)};var n=r(57147);function i(t,e,r){n.stat(t,(function(t,n){r(t,!t&&o(n,e))}))}function o(t,e){return t.isFile()&&function(t,e){var r=t.mode,n=t.uid,i=t.gid,o=void 0!==e.uid?e.uid:process.getuid&&process.getuid(),s=void 0!==e.gid?e.gid:process.getgid&&process.getgid(),a=parseInt("100",8),u=parseInt("010",8);return r&parseInt("001",8)||r&u&&i===s||r&a&&n===o||r&(a|u)&&0===o}(t,e)}},28945:(t,e,r)=>{t.exports=o,o.sync=function(t,e){return i(n.statSync(t),t,e)};var n=r(57147);function i(t,e,r){return!(!t.isSymbolicLink()&&!t.isFile())&&function(t,e){var r=void 0!==e.pathExt?e.pathExt:process.env.PATHEXT;if(!r)return!0;if(-1!==(r=r.split(";")).indexOf(""))return!0;for(var n=0;n<r.length;n++){var i=r[n].toLowerCase();if(i&&t.substr(-i.length).toLowerCase()===i)return!0}return!1}(e,r)}function o(t,e,r){n.stat(t,(function(n,o){r(n,!n&&i(o,t,e))}))}},81761:(t,e,r)=>{"use strict";const n=r(78331),i=Symbol("max"),o=Symbol("length"),s=Symbol("lengthCalculator"),a=Symbol("allowStale"),u=Symbol("maxAge"),c=Symbol("dispose"),h=Symbol("noDisposeOnSet"),f=Symbol("lruList"),p=Symbol("cache"),l=Symbol("updateAgeOnGet"),d=()=>1,v=(t,e,r)=>{const n=t[p].get(e);if(n){const e=n.value;if(m(t,e)){if(y(t,n),!t[a])return}else r&&(t[l]&&(n.value.now=Date.now()),t[f].unshiftNode(n));return e.value}},m=(t,e)=>{if(!e||!e.maxAge&&!t[u])return!1;const r=Date.now()-e.now;return e.maxAge?r>e.maxAge:t[u]&&r>t[u]},_=t=>{if(t[o]>t[i])for(let e=t[f].tail;t[o]>t[i]&&null!==e;){const r=e.prev;y(t,e),e=r}},y=(t,e)=>{if(e){const r=e.value;t[c]&&t[c](r.key,r.value),t[o]-=r.length,t[p].delete(r.key),t[f].removeNode(e)}};class g{constructor(t,e,r,n,i){this.key=t,this.value=e,this.length=r,this.now=n,this.maxAge=i||0}}const w=(t,e,r,n)=>{let i=r.value;m(t,i)&&(y(t,r),t[a]||(i=void 0)),i&&e.call(n,i.value,i.key,t)};t.exports=class{constructor(t){if("number"==typeof t&&(t={max:t}),t||(t={}),t.max&&("number"!=typeof t.max||t.max<0))throw new TypeError("max must be a non-negative number");this[i]=t.max||1/0;const e=t.length||d;if(this[s]="function"!=typeof e?d:e,this[a]=t.stale||!1,t.maxAge&&"number"!=typeof t.maxAge)throw new TypeError("maxAge must be a number");this[u]=t.maxAge||0,this[c]=t.dispose,this[h]=t.noDisposeOnSet||!1,this[l]=t.updateAgeOnGet||!1,this.reset()}set max(t){if("number"!=typeof t||t<0)throw new TypeError("max must be a non-negative number");this[i]=t||1/0,_(this)}get max(){return this[i]}set allowStale(t){this[a]=!!t}get allowStale(){return this[a]}set maxAge(t){if("number"!=typeof t)throw new TypeError("maxAge must be a non-negative number");this[u]=t,_(this)}get maxAge(){return this[u]}set lengthCalculator(t){"function"!=typeof t&&(t=d),t!==this[s]&&(this[s]=t,this[o]=0,this[f].forEach((t=>{t.length=this[s](t.value,t.key),this[o]+=t.length}))),_(this)}get lengthCalculator(){return this[s]}get length(){return this[o]}get itemCount(){return this[f].length}rforEach(t,e){e=e||this;for(let r=this[f].tail;null!==r;){const n=r.prev;w(this,t,r,e),r=n}}forEach(t,e){e=e||this;for(let r=this[f].head;null!==r;){const n=r.next;w(this,t,r,e),r=n}}keys(){return this[f].toArray().map((t=>t.key))}values(){return this[f].toArray().map((t=>t.value))}reset(){this[c]&&this[f]&&this[f].length&&this[f].forEach((t=>this[c](t.key,t.value))),this[p]=new Map,this[f]=new n,this[o]=0}dump(){return this[f].map((t=>!m(this,t)&&{k:t.key,v:t.value,e:t.now+(t.maxAge||0)})).toArray().filter((t=>t))}dumpLru(){return this[f]}set(t,e,r){if((r=r||this[u])&&"number"!=typeof r)throw new TypeError("maxAge must be a number");const n=r?Date.now():0,a=this[s](e,t);if(this[p].has(t)){if(a>this[i])return y(this,this[p].get(t)),!1;const s=this[p].get(t).value;return this[c]&&(this[h]||this[c](t,s.value)),s.now=n,s.maxAge=r,s.value=e,this[o]+=a-s.length,s.length=a,this.get(t),_(this),!0}const l=new g(t,e,a,n,r);return l.length>this[i]?(this[c]&&this[c](t,e),!1):(this[o]+=l.length,this[f].unshift(l),this[p].set(t,this[f].head),_(this),!0)}has(t){if(!this[p].has(t))return!1;const e=this[p].get(t).value;return!m(this,e)}get(t){return v(this,t,!0)}peek(t){return v(this,t,!1)}pop(){const t=this[f].tail;return t?(y(this,t),t.value):null}del(t){y(this,this[p].get(t))}load(t){this.reset();const e=Date.now();for(let r=t.length-1;r>=0;r--){const n=t[r],i=n.e||0;if(0===i)this.set(n.k,n.v);else{const t=i-e;t>0&&this.set(n.k,n.v,t)}}}prune(){this[p].forEach(((t,e)=>v(this,e,!1)))}}},41220:(t,e,r)=>{"use strict";const{PassThrough:n}=r(12781);t.exports=function(){var t=[],e=new n({objectMode:!0});return e.setMaxListeners(0),e.add=r,e.isEmpty=function(){return 0==t.length},e.on("unpipe",i),Array.prototype.slice.call(arguments).forEach(r),e;function r(n){return Array.isArray(n)?(n.forEach(r),this):(t.push(n),n.once("end",i.bind(null,n)),n.once("error",e.emit.bind(e,"error")),n.pipe(e,{end:!1}),this)}function i(r){!(t=t.filter((function(t){return t!==r}))).length&&e.readable&&e.end()}}},45685:t=>{"use strict";const e=(t,e)=>{for(const r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};t.exports=e,t.exports.default=e},97355:t=>{for(var e=4294967296,r=[],n=0;n<256;n++)r[n]=(n>15?"":"0")+n.toString(16);var i=t.exports=function(t,e){t instanceof Buffer?(this.buffer=t,this.offset=e||0):"[object Uint8Array]"==Object.prototype.toString.call(t)?(this.buffer=new Buffer(t),this.offset=e||0):(this.buffer=this.buffer||new Buffer(8),this.offset=0,this.setValue.apply(this,arguments))};i.MAX_INT=Math.pow(2,53),i.MIN_INT=-Math.pow(2,53),i.prototype={constructor:i,_2scomp:function(){for(var t=this.buffer,e=this.offset,r=1,n=e+7;n>=e;n--){var i=(255^t[n])+r;t[n]=255&i,r=i>>8}},setValue:function(t,r){var n=!1;if(1==arguments.length)if("number"==typeof t){if(n=t<0,r=(t=Math.abs(t))%e,(t/=e)>e)throw new RangeError(t+" is outside Int64 range");t|=0}else{if("string"!=typeof t)throw new Error(t+" must be a Number or String");r=(t=(t+"").replace(/^0x/,"")).substr(-8),t=t.length>8?t.substr(0,t.length-8):"",t=parseInt(t,16),r=parseInt(r,16)}for(var i=this.buffer,o=this.offset,s=7;s>=0;s--)i[o+s]=255&r,r=4==s?t:r>>>8;n&&this._2scomp()},toNumber:function(t){for(var e=this.buffer,r=this.offset,n=128&e[r],o=0,s=1,a=7,u=1;a>=0;a--,u*=256){var c=e[r+a];n&&(s=(c=(255^c)+s)>>8,c&=255),o+=c*u}return!t&&o>=i.MAX_INT?n?-1/0:1/0:n?-o:o},valueOf:function(){return this.toNumber(!1)},toString:function(t){return this.valueOf().toString(t||10)},toOctetString:function(t){for(var e=new Array(8),n=this.buffer,i=this.offset,o=0;o<8;o++)e[o]=r[n[i+o]];return e.join(t||"")},toBuffer:function(t){if(t&&0===this.offset)return this.buffer;var e=new Buffer(8);return this.buffer.copy(e,0,this.offset,this.offset+8),e},copy:function(t,e){this.buffer.copy(t,e||0,this.offset,this.offset+8)},compare:function(t){if((128&this.buffer[this.offset])!=(128&t.buffer[t.offset]))return t.buffer[t.offset]-this.buffer[this.offset];for(var e=0;e<8;e++)if(this.buffer[this.offset+e]!==t.buffer[t.offset+e])return this.buffer[this.offset+e]-t.buffer[t.offset+e];return 0},equals:function(t){return 0===this.compare(t)},inspect:function(){return"[Int64 value:"+this+" octets:"+this.toOctetString(" ")+"]"}}},83833:(t,e,r)=>{"use strict";const n=r(71017),i=r(96501),o=t=>{let e;t={cwd:process.cwd(),path:process.env[i()],execPath:process.execPath,...t};let r=n.resolve(t.cwd);const o=[];for(;e!==r;)o.push(n.join(r,"node_modules/.bin")),e=r,r=n.resolve(r,"..");const s=n.resolve(t.cwd,t.execPath,"..");return o.push(s),o.concat(t.path).join(n.delimiter)};t.exports=o,t.exports.default=o,t.exports.env=e=>{const r={...(e={env:process.env,...e}).env},n=i({env:r});return e.path=r[n],r[n]=t.exports(e),r}},61042:(t,e,r)=>{"use strict";const n=r(45685),i=new WeakMap,o=(t,e={})=>{if("function"!=typeof t)throw new TypeError("Expected a function");let r,o=0;const s=t.displayName||t.name||"<anonymous>",a=function(...n){if(i.set(a,++o),1===o)r=t.apply(this,n),t=null;else if(!0===e.throw)throw new Error(`Function \`${s}\` can only be called once`);return r};return n(a,t),i.set(a,o),a};t.exports=o,t.exports.default=o,t.exports.callCount=t=>{if(!i.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return i.get(t)}},96501:t=>{"use strict";const e=(t={})=>{const e=t.env||process.env;return"win32"!==(t.platform||process.platform)?"PATH":Object.keys(e).reverse().find((t=>"PATH"===t.toUpperCase()))||"Path"};t.exports=e,t.exports.default=e},61777:(t,e,r)=>{const n=Symbol("SemVer ANY");class i{static get ANY(){return n}constructor(t,e){if(e=o(e),t instanceof i){if(t.loose===!!e.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),c("comparator",t,e),this.options=e,this.loose=!!e.loose,this.parse(t),this.semver===n?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(t){const e=this.options.loose?s[a.COMPARATORLOOSE]:s[a.COMPARATOR],r=t.match(e);if(!r)throw new TypeError(`Invalid comparator: ${t}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new h(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(t){if(c("Comparator.test",t,this.options.loose),this.semver===n||t===n)return!0;if("string"==typeof t)try{t=new h(t,this.options)}catch(t){return!1}return u(t,this.operator,this.semver,this.options)}intersects(t,e){if(!(t instanceof i))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new f(t.value,e).test(this.value):""===t.operator?""===t.value||new f(this.value,e).test(t.semver):!((e=o(e)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===t.value)||!e.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!t.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!t.operator.startsWith("<"))&&(this.semver.version!==t.semver.version||!this.operator.includes("=")||!t.operator.includes("="))&&!(u(this.semver,"<",t.semver,e)&&this.operator.startsWith(">")&&t.operator.startsWith("<"))&&!(u(this.semver,">",t.semver,e)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}}t.exports=i;const o=r(86371),{safeRe:s,t:a}=r(99982),u=r(89371),c=r(69617),h=r(89487),f=r(43334)},43334:(t,e,r)=>{class n{constructor(t,e){if(e=o(e),t instanceof n)return t.loose===!!e.loose&&t.includePrerelease===!!e.includePrerelease?t:new n(t.raw,e);if(t instanceof s)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease,this.raw=t.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((t=>this.parseRange(t.trim()))).filter((t=>t.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const t=this.set[0];if(this.set=this.set.filter((t=>!m(t[0]))),0===this.set.length)this.set=[t];else if(this.set.length>1)for(const t of this.set)if(1===t.length&&_(t[0])){this.set=[t];break}}this.format()}format(){return this.range=this.set.map((t=>t.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(t){const e=((this.options.includePrerelease&&d)|(this.options.loose&&v))+":"+t,r=i.get(e);if(r)return r;const n=this.options.loose,o=n?c[h.HYPHENRANGELOOSE]:c[h.HYPHENRANGE];t=t.replace(o,T(this.options.includePrerelease)),a("hyphen replace",t),t=t.replace(c[h.COMPARATORTRIM],f),a("comparator trim",t),t=t.replace(c[h.TILDETRIM],p),a("tilde trim",t),t=t.replace(c[h.CARETTRIM],l),a("caret trim",t);let u=t.split(" ").map((t=>g(t,this.options))).join(" ").split(/\s+/).map((t=>R(t,this.options)));n&&(u=u.filter((t=>(a("loose invalid filter",t,this.options),!!t.match(c[h.COMPARATORLOOSE]))))),a("range list",u);const _=new Map,y=u.map((t=>new s(t,this.options)));for(const t of y){if(m(t))return[t];_.set(t.value,t)}_.size>1&&_.has("")&&_.delete("");const w=[..._.values()];return i.set(e,w),w}intersects(t,e){if(!(t instanceof n))throw new TypeError("a Range is required");return this.set.some((r=>y(r,e)&&t.set.some((t=>y(t,e)&&r.every((r=>t.every((t=>r.intersects(t,e)))))))))}test(t){if(!t)return!1;if("string"==typeof t)try{t=new u(t,this.options)}catch(t){return!1}for(let e=0;e<this.set.length;e++)if($(this.set[e],t,this.options))return!0;return!1}}t.exports=n;const i=new(r(81761))({max:1e3}),o=r(86371),s=r(61777),a=r(69617),u=r(89487),{safeRe:c,t:h,comparatorTrimReplace:f,tildeTrimReplace:p,caretTrimReplace:l}=r(99982),{FLAG_INCLUDE_PRERELEASE:d,FLAG_LOOSE:v}=r(73451),m=t=>"<0.0.0-0"===t.value,_=t=>""===t.value,y=(t,e)=>{let r=!0;const n=t.slice();let i=n.pop();for(;r&&n.length;)r=n.every((t=>i.intersects(t,e))),i=n.pop();return r},g=(t,e)=>(a("comp",t,e),t=I(t,e),a("caret",t),t=E(t,e),a("tildes",t),t=O(t,e),a("xrange",t),t=A(t,e),a("stars",t),t),w=t=>!t||"x"===t.toLowerCase()||"*"===t,E=(t,e)=>t.trim().split(/\s+/).map((t=>b(t,e))).join(" "),b=(t,e)=>{const r=e.loose?c[h.TILDELOOSE]:c[h.TILDE];return t.replace(r,((e,r,n,i,o)=>{let s;return a("tilde",t,e,r,n,i,o),w(r)?s="":w(n)?s=`>=${r}.0.0 <${+r+1}.0.0-0`:w(i)?s=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:o?(a("replaceTilde pr",o),s=`>=${r}.${n}.${i}-${o} <${r}.${+n+1}.0-0`):s=`>=${r}.${n}.${i} <${r}.${+n+1}.0-0`,a("tilde return",s),s}))},I=(t,e)=>t.trim().split(/\s+/).map((t=>S(t,e))).join(" "),S=(t,e)=>{a("caret",t,e);const r=e.loose?c[h.CARETLOOSE]:c[h.CARET],n=e.includePrerelease?"-0":"";return t.replace(r,((e,r,i,o,s)=>{let u;return a("caret",t,e,r,i,o,s),w(r)?u="":w(i)?u=`>=${r}.0.0${n} <${+r+1}.0.0-0`:w(o)?u="0"===r?`>=${r}.${i}.0${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${n} <${+r+1}.0.0-0`:s?(a("replaceCaret pr",s),u="0"===r?"0"===i?`>=${r}.${i}.${o}-${s} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}-${s} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o}-${s} <${+r+1}.0.0-0`):(a("no pr"),u="0"===r?"0"===i?`>=${r}.${i}.${o}${n} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o} <${+r+1}.0.0-0`),a("caret return",u),u}))},O=(t,e)=>(a("replaceXRanges",t,e),t.split(/\s+/).map((t=>x(t,e))).join(" ")),x=(t,e)=>{t=t.trim();const r=e.loose?c[h.XRANGELOOSE]:c[h.XRANGE];return t.replace(r,((r,n,i,o,s,u)=>{a("xRange",t,r,n,i,o,s,u);const c=w(i),h=c||w(o),f=h||w(s),p=f;return"="===n&&p&&(n=""),u=e.includePrerelease?"-0":"",c?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&p?(h&&(o=0),s=0,">"===n?(n=">=",h?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===n&&(n="<",h?i=+i+1:o=+o+1),"<"===n&&(u="-0"),r=`${n+i}.${o}.${s}${u}`):h?r=`>=${i}.0.0${u} <${+i+1}.0.0-0`:f&&(r=`>=${i}.${o}.0${u} <${i}.${+o+1}.0-0`),a("xRange return",r),r}))},A=(t,e)=>(a("replaceStars",t,e),t.trim().replace(c[h.STAR],"")),R=(t,e)=>(a("replaceGTE0",t,e),t.trim().replace(c[e.includePrerelease?h.GTE0PRE:h.GTE0],"")),T=t=>(e,r,n,i,o,s,a,u,c,h,f,p,l)=>`${r=w(n)?"":w(i)?`>=${n}.0.0${t?"-0":""}`:w(o)?`>=${n}.${i}.0${t?"-0":""}`:s?`>=${r}`:`>=${r}${t?"-0":""}`} ${u=w(c)?"":w(h)?`<${+c+1}.0.0-0`:w(f)?`<${c}.${+h+1}.0-0`:p?`<=${c}.${h}.${f}-${p}`:t?`<${c}.${h}.${+f+1}-0`:`<=${u}`}`.trim(),$=(t,e,r)=>{for(let r=0;r<t.length;r++)if(!t[r].test(e))return!1;if(e.prerelease.length&&!r.includePrerelease){for(let r=0;r<t.length;r++)if(a(t[r].semver),t[r].semver!==s.ANY&&t[r].semver.prerelease.length>0){const n=t[r].semver;if(n.major===e.major&&n.minor===e.minor&&n.patch===e.patch)return!0}return!1}return!0}},89487:(t,e,r)=>{const n=r(69617),{MAX_LENGTH:i,MAX_SAFE_INTEGER:o}=r(73451),{safeRe:s,t:a}=r(99982),u=r(86371),{compareIdentifiers:c}=r(20681);class h{constructor(t,e){if(e=u(e),t instanceof h){if(t.loose===!!e.loose&&t.includePrerelease===!!e.includePrerelease)return t;t=t.version}else if("string"!=typeof t)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>i)throw new TypeError(`version is longer than ${i} characters`);n("SemVer",t,e),this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease;const r=t.trim().match(e.loose?s[a.LOOSE]:s[a.FULL]);if(!r)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((t=>{if(/^[0-9]+$/.test(t)){const e=+t;if(e>=0&&e<o)return e}return t})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(n("SemVer.compare",this.version,this.options,t),!(t instanceof h)){if("string"==typeof t&&t===this.version)return 0;t=new h(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof h||(t=new h(t,this.options)),c(this.major,t.major)||c(this.minor,t.minor)||c(this.patch,t.patch)}comparePre(t){if(t instanceof h||(t=new h(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let e=0;do{const r=this.prerelease[e],i=t.prerelease[e];if(n("prerelease compare",e,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return c(r,i)}while(++e)}compareBuild(t){t instanceof h||(t=new h(t,this.options));let e=0;do{const r=this.build[e],i=t.build[e];if(n("prerelease compare",e,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return c(r,i)}while(++e)}inc(t,e,r){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",e,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",e,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",e,r),this.inc("pre",e,r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",e,r),this.inc("pre",e,r);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const t=Number(r)?1:0;if(!e&&!1===r)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[t];else{let n=this.prerelease.length;for(;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(e===this.prerelease.join(".")&&!1===r)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(t)}}if(e){let n=[e,t];!1===r&&(n=[e]),0===c(this.prerelease[0],e)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}t.exports=h},69003:(t,e,r)=>{const n=r(88776);t.exports=(t,e)=>{const r=n(t.trim().replace(/^[=v]+/,""),e);return r?r.version:null}},89371:(t,e,r)=>{const n=r(70376),i=r(3340),o=r(21230),s=r(46739),a=r(21693),u=r(1542);t.exports=(t,e,r,c)=>{switch(e){case"===":return"object"==typeof t&&(t=t.version),"object"==typeof r&&(r=r.version),t===r;case"!==":return"object"==typeof t&&(t=t.version),"object"==typeof r&&(r=r.version),t!==r;case"":case"=":case"==":return n(t,r,c);case"!=":return i(t,r,c);case">":return o(t,r,c);case">=":return s(t,r,c);case"<":return a(t,r,c);case"<=":return u(t,r,c);default:throw new TypeError(`Invalid operator: ${e}`)}}},6428:(t,e,r)=>{const n=r(89487),i=r(88776),{safeRe:o,t:s}=r(99982);t.exports=(t,e)=>{if(t instanceof n)return t;if("number"==typeof t&&(t=String(t)),"string"!=typeof t)return null;let r=null;if((e=e||{}).rtl){let e;for(;(e=o[s.COERCERTL].exec(t))&&(!r||r.index+r[0].length!==t.length);)r&&e.index+e[0].length===r.index+r[0].length||(r=e),o[s.COERCERTL].lastIndex=e.index+e[1].length+e[2].length;o[s.COERCERTL].lastIndex=-1}else r=t.match(o[s.COERCE]);return null===r?null:i(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,e)}},9694:(t,e,r)=>{const n=r(89487);t.exports=(t,e,r)=>{const i=new n(t,r),o=new n(e,r);return i.compare(o)||i.compareBuild(o)}},96931:(t,e,r)=>{const n=r(95558);t.exports=(t,e)=>n(t,e,!0)},95558:(t,e,r)=>{const n=r(89487);t.exports=(t,e,r)=>new n(t,r).compare(new n(e,r))},94693:(t,e,r)=>{const n=r(88776);t.exports=(t,e)=>{const r=n(t,null,!0),i=n(e,null,!0),o=r.compare(i);if(0===o)return null;const s=o>0,a=s?r:i,u=s?i:r,c=!!a.prerelease.length;if(u.prerelease.length&&!c)return u.patch||u.minor?a.patch?"patch":a.minor?"minor":"major":"major";const h=c?"pre":"";return r.major!==i.major?h+"major":r.minor!==i.minor?h+"minor":r.patch!==i.patch?h+"patch":"prerelease"}},70376:(t,e,r)=>{const n=r(95558);t.exports=(t,e,r)=>0===n(t,e,r)},21230:(t,e,r)=>{const n=r(95558);t.exports=(t,e,r)=>n(t,e,r)>0},46739:(t,e,r)=>{const n=r(95558);t.exports=(t,e,r)=>n(t,e,r)>=0},65699:(t,e,r)=>{const n=r(89487);t.exports=(t,e,r,i,o)=>{"string"==typeof r&&(o=i,i=r,r=void 0);try{return new n(t instanceof n?t.version:t,r).inc(e,i,o).version}catch(t){return null}}},21693:(t,e,r)=>{const n=r(95558);t.exports=(t,e,r)=>n(t,e,r)<0},1542:(t,e,r)=>{const n=r(95558);t.exports=(t,e,r)=>n(t,e,r)<=0},49583:(t,e,r)=>{const n=r(89487);t.exports=(t,e)=>new n(t,e).major},33580:(t,e,r)=>{const n=r(89487);t.exports=(t,e)=>new n(t,e).minor},3340:(t,e,r)=>{const n=r(95558);t.exports=(t,e,r)=>0!==n(t,e,r)},88776:(t,e,r)=>{const n=r(89487);t.exports=(t,e,r=!1)=>{if(t instanceof n)return t;try{return new n(t,e)}catch(t){if(!r)return null;throw t}}},93482:(t,e,r)=>{const n=r(89487);t.exports=(t,e)=>new n(t,e).patch},11252:(t,e,r)=>{const n=r(88776);t.exports=(t,e)=>{const r=n(t,e);return r&&r.prerelease.length?r.prerelease:null}},7549:(t,e,r)=>{const n=r(95558);t.exports=(t,e,r)=>n(e,t,r)},97177:(t,e,r)=>{const n=r(9694);t.exports=(t,e)=>t.sort(((t,r)=>n(r,t,e)))},54060:(t,e,r)=>{const n=r(43334);t.exports=(t,e,r)=>{try{e=new n(e,r)}catch(t){return!1}return e.test(t)}},11776:(t,e,r)=>{const n=r(9694);t.exports=(t,e)=>t.sort(((t,r)=>n(t,r,e)))},6671:(t,e,r)=>{const n=r(88776);t.exports=(t,e)=>{const r=n(t,e);return r?r.version:null}},80909:(t,e,r)=>{const n=r(99982),i=r(73451),o=r(89487),s=r(20681),a=r(88776),u=r(6671),c=r(69003),h=r(65699),f=r(94693),p=r(49583),l=r(33580),d=r(93482),v=r(11252),m=r(95558),_=r(7549),y=r(96931),g=r(9694),w=r(11776),E=r(97177),b=r(21230),I=r(21693),S=r(70376),O=r(3340),x=r(46739),A=r(1542),R=r(89371),T=r(6428),$=r(61777),L=r(43334),N=r(54060),C=r(55076),z=r(8016),j=r(20511),M=r(84115),D=r(29554),P=r(96594),k=r(85675),B=r(67510),G=r(972),q=r(54832),U=r(78821);t.exports={parse:a,valid:u,clean:c,inc:h,diff:f,major:p,minor:l,patch:d,prerelease:v,compare:m,rcompare:_,compareLoose:y,compareBuild:g,sort:w,rsort:E,gt:b,lt:I,eq:S,neq:O,gte:x,lte:A,cmp:R,coerce:T,Comparator:$,Range:L,satisfies:N,toComparators:C,maxSatisfying:z,minSatisfying:j,minVersion:M,validRange:D,outside:P,gtr:k,ltr:B,intersects:G,simplifyRange:q,subset:U,SemVer:o,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,RELEASE_TYPES:i.RELEASE_TYPES,compareIdentifiers:s.compareIdentifiers,rcompareIdentifiers:s.rcompareIdentifiers}},73451:t=>{const e=Number.MAX_SAFE_INTEGER||9007199254740991;t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:e,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},69617:t=>{const e="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};t.exports=e},20681:t=>{const e=/^[0-9]+$/,r=(t,r)=>{const n=e.test(t),i=e.test(r);return n&&i&&(t=+t,r=+r),t===r?0:n&&!i?-1:i&&!n?1:t<r?-1:1};t.exports={compareIdentifiers:r,rcompareIdentifiers:(t,e)=>r(e,t)}},86371:t=>{const e=Object.freeze({loose:!0}),r=Object.freeze({});t.exports=t=>t?"object"!=typeof t?e:t:r},99982:(t,e,r)=>{const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:o}=r(73451),s=r(69617),a=(e=t.exports={}).re=[],u=e.safeRe=[],c=e.src=[],h=e.t={};let f=0;const p="[a-zA-Z0-9-]",l=[["\\s",1],["\\d",o],[p,i]],d=(t,e,r)=>{const n=(t=>{for(const[e,r]of l)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t})(e),i=f++;s(t,i,e),h[t]=i,c[i]=e,a[i]=new RegExp(e,r?"g":void 0),u[i]=new RegExp(n,r?"g":void 0)};d("NUMERICIDENTIFIER","0|[1-9]\\d*"),d("NUMERICIDENTIFIERLOOSE","\\d+"),d("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),d("MAINVERSION",`(${c[h.NUMERICIDENTIFIER]})\\.(${c[h.NUMERICIDENTIFIER]})\\.(${c[h.NUMERICIDENTIFIER]})`),d("MAINVERSIONLOOSE",`(${c[h.NUMERICIDENTIFIERLOOSE]})\\.(${c[h.NUMERICIDENTIFIERLOOSE]})\\.(${c[h.NUMERICIDENTIFIERLOOSE]})`),d("PRERELEASEIDENTIFIER",`(?:${c[h.NUMERICIDENTIFIER]}|${c[h.NONNUMERICIDENTIFIER]})`),d("PRERELEASEIDENTIFIERLOOSE",`(?:${c[h.NUMERICIDENTIFIERLOOSE]}|${c[h.NONNUMERICIDENTIFIER]})`),d("PRERELEASE",`(?:-(${c[h.PRERELEASEIDENTIFIER]}(?:\\.${c[h.PRERELEASEIDENTIFIER]})*))`),d("PRERELEASELOOSE",`(?:-?(${c[h.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[h.PRERELEASEIDENTIFIERLOOSE]})*))`),d("BUILDIDENTIFIER",`${p}+`),d("BUILD",`(?:\\+(${c[h.BUILDIDENTIFIER]}(?:\\.${c[h.BUILDIDENTIFIER]})*))`),d("FULLPLAIN",`v?${c[h.MAINVERSION]}${c[h.PRERELEASE]}?${c[h.BUILD]}?`),d("FULL",`^${c[h.FULLPLAIN]}$`),d("LOOSEPLAIN",`[v=\\s]*${c[h.MAINVERSIONLOOSE]}${c[h.PRERELEASELOOSE]}?${c[h.BUILD]}?`),d("LOOSE",`^${c[h.LOOSEPLAIN]}$`),d("GTLT","((?:<|>)?=?)"),d("XRANGEIDENTIFIERLOOSE",`${c[h.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),d("XRANGEIDENTIFIER",`${c[h.NUMERICIDENTIFIER]}|x|X|\\*`),d("XRANGEPLAIN",`[v=\\s]*(${c[h.XRANGEIDENTIFIER]})(?:\\.(${c[h.XRANGEIDENTIFIER]})(?:\\.(${c[h.XRANGEIDENTIFIER]})(?:${c[h.PRERELEASE]})?${c[h.BUILD]}?)?)?`),d("XRANGEPLAINLOOSE",`[v=\\s]*(${c[h.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[h.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[h.XRANGEIDENTIFIERLOOSE]})(?:${c[h.PRERELEASELOOSE]})?${c[h.BUILD]}?)?)?`),d("XRANGE",`^${c[h.GTLT]}\\s*${c[h.XRANGEPLAIN]}$`),d("XRANGELOOSE",`^${c[h.GTLT]}\\s*${c[h.XRANGEPLAINLOOSE]}$`),d("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),d("COERCERTL",c[h.COERCE],!0),d("LONETILDE","(?:~>?)"),d("TILDETRIM",`(\\s*)${c[h.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",d("TILDE",`^${c[h.LONETILDE]}${c[h.XRANGEPLAIN]}$`),d("TILDELOOSE",`^${c[h.LONETILDE]}${c[h.XRANGEPLAINLOOSE]}$`),d("LONECARET","(?:\\^)"),d("CARETTRIM",`(\\s*)${c[h.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",d("CARET",`^${c[h.LONECARET]}${c[h.XRANGEPLAIN]}$`),d("CARETLOOSE",`^${c[h.LONECARET]}${c[h.XRANGEPLAINLOOSE]}$`),d("COMPARATORLOOSE",`^${c[h.GTLT]}\\s*(${c[h.LOOSEPLAIN]})$|^$`),d("COMPARATOR",`^${c[h.GTLT]}\\s*(${c[h.FULLPLAIN]})$|^$`),d("COMPARATORTRIM",`(\\s*)${c[h.GTLT]}\\s*(${c[h.LOOSEPLAIN]}|${c[h.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",d("HYPHENRANGE",`^\\s*(${c[h.XRANGEPLAIN]})\\s+-\\s+(${c[h.XRANGEPLAIN]})\\s*$`),d("HYPHENRANGELOOSE",`^\\s*(${c[h.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[h.XRANGEPLAINLOOSE]})\\s*$`),d("STAR","(<|>)?=?\\s*\\*"),d("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),d("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},85675:(t,e,r)=>{const n=r(96594);t.exports=(t,e,r)=>n(t,e,">",r)},972:(t,e,r)=>{const n=r(43334);t.exports=(t,e,r)=>(t=new n(t,r),e=new n(e,r),t.intersects(e,r))},67510:(t,e,r)=>{const n=r(96594);t.exports=(t,e,r)=>n(t,e,"<",r)},8016:(t,e,r)=>{const n=r(89487),i=r(43334);t.exports=(t,e,r)=>{let o=null,s=null,a=null;try{a=new i(e,r)}catch(t){return null}return t.forEach((t=>{a.test(t)&&(o&&-1!==s.compare(t)||(o=t,s=new n(o,r)))})),o}},20511:(t,e,r)=>{const n=r(89487),i=r(43334);t.exports=(t,e,r)=>{let o=null,s=null,a=null;try{a=new i(e,r)}catch(t){return null}return t.forEach((t=>{a.test(t)&&(o&&1!==s.compare(t)||(o=t,s=new n(o,r)))})),o}},84115:(t,e,r)=>{const n=r(89487),i=r(43334),o=r(21230);t.exports=(t,e)=>{t=new i(t,e);let r=new n("0.0.0");if(t.test(r))return r;if(r=new n("0.0.0-0"),t.test(r))return r;r=null;for(let e=0;e<t.set.length;++e){const i=t.set[e];let s=null;i.forEach((t=>{const e=new n(t.semver.version);switch(t.operator){case">":0===e.prerelease.length?e.patch++:e.prerelease.push(0),e.raw=e.format();case"":case">=":s&&!o(e,s)||(s=e);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${t.operator}`)}})),!s||r&&!o(r,s)||(r=s)}return r&&t.test(r)?r:null}},96594:(t,e,r)=>{const n=r(89487),i=r(61777),{ANY:o}=i,s=r(43334),a=r(54060),u=r(21230),c=r(21693),h=r(1542),f=r(46739);t.exports=(t,e,r,p)=>{let l,d,v,m,_;switch(t=new n(t,p),e=new s(e,p),r){case">":l=u,d=h,v=c,m=">",_=">=";break;case"<":l=c,d=f,v=u,m="<",_="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(t,e,p))return!1;for(let r=0;r<e.set.length;++r){const n=e.set[r];let s=null,a=null;if(n.forEach((t=>{t.semver===o&&(t=new i(">=0.0.0")),s=s||t,a=a||t,l(t.semver,s.semver,p)?s=t:v(t.semver,a.semver,p)&&(a=t)})),s.operator===m||s.operator===_)return!1;if((!a.operator||a.operator===m)&&d(t,a.semver))return!1;if(a.operator===_&&v(t,a.semver))return!1}return!0}},54832:(t,e,r)=>{const n=r(54060),i=r(95558);t.exports=(t,e,r)=>{const o=[];let s=null,a=null;const u=t.sort(((t,e)=>i(t,e,r)));for(const t of u)n(t,e,r)?(a=t,s||(s=t)):(a&&o.push([s,a]),a=null,s=null);s&&o.push([s,null]);const c=[];for(const[t,e]of o)t===e?c.push(t):e||t!==u[0]?e?t===u[0]?c.push(`<=${e}`):c.push(`${t} - ${e}`):c.push(`>=${t}`):c.push("*");const h=c.join(" || "),f="string"==typeof e.raw?e.raw:String(e);return h.length<f.length?h:e}},78821:(t,e,r)=>{const n=r(43334),i=r(61777),{ANY:o}=i,s=r(54060),a=r(95558),u=[new i(">=0.0.0-0")],c=[new i(">=0.0.0")],h=(t,e,r)=>{if(t===e)return!0;if(1===t.length&&t[0].semver===o){if(1===e.length&&e[0].semver===o)return!0;t=r.includePrerelease?u:c}if(1===e.length&&e[0].semver===o){if(r.includePrerelease)return!0;e=c}const n=new Set;let i,h,l,d,v,m,_;for(const e of t)">"===e.operator||">="===e.operator?i=f(i,e,r):"<"===e.operator||"<="===e.operator?h=p(h,e,r):n.add(e.semver);if(n.size>1)return null;if(i&&h){if(l=a(i.semver,h.semver,r),l>0)return null;if(0===l&&(">="!==i.operator||"<="!==h.operator))return null}for(const t of n){if(i&&!s(t,String(i),r))return null;if(h&&!s(t,String(h),r))return null;for(const n of e)if(!s(t,String(n),r))return!1;return!0}let y=!(!h||r.includePrerelease||!h.semver.prerelease.length)&&h.semver,g=!(!i||r.includePrerelease||!i.semver.prerelease.length)&&i.semver;y&&1===y.prerelease.length&&"<"===h.operator&&0===y.prerelease[0]&&(y=!1);for(const t of e){if(_=_||">"===t.operator||">="===t.operator,m=m||"<"===t.operator||"<="===t.operator,i)if(g&&t.semver.prerelease&&t.semver.prerelease.length&&t.semver.major===g.major&&t.semver.minor===g.minor&&t.semver.patch===g.patch&&(g=!1),">"===t.operator||">="===t.operator){if(d=f(i,t,r),d===t&&d!==i)return!1}else if(">="===i.operator&&!s(i.semver,String(t),r))return!1;if(h)if(y&&t.semver.prerelease&&t.semver.prerelease.length&&t.semver.major===y.major&&t.semver.minor===y.minor&&t.semver.patch===y.patch&&(y=!1),"<"===t.operator||"<="===t.operator){if(v=p(h,t,r),v===t&&v!==h)return!1}else if("<="===h.operator&&!s(h.semver,String(t),r))return!1;if(!t.operator&&(h||i)&&0!==l)return!1}return!(i&&m&&!h&&0!==l||h&&_&&!i&&0!==l||g||y)},f=(t,e,r)=>{if(!t)return e;const n=a(t.semver,e.semver,r);return n>0?t:n<0||">"===e.operator&&">="===t.operator?e:t},p=(t,e,r)=>{if(!t)return e;const n=a(t.semver,e.semver,r);return n<0?t:n>0||"<"===e.operator&&"<="===t.operator?e:t};t.exports=(t,e,r={})=>{if(t===e)return!0;t=new n(t,r),e=new n(e,r);let i=!1;t:for(const n of t.set){for(const t of e.set){const e=h(n,t,r);if(i=i||null!==e,e)continue t}if(i)return!1}return!0}},55076:(t,e,r)=>{const n=r(43334);t.exports=(t,e)=>new n(t,e).set.map((t=>t.map((t=>t.value)).join(" ").trim().split(" ")))},29554:(t,e,r)=>{const n=r(43334);t.exports=(t,e)=>{try{return new n(t,e).range||"*"}catch(t){return null}}},31996:(t,e,r)=>{"use strict";const n=r(82080);t.exports=(t="")=>{const e=t.match(n);if(!e)return null;const[r,i]=e[0].replace(/#! ?/,"").split(" "),o=r.split("/").pop();return"env"===o?i:i?`${o} ${i}`:o}},82080:t=>{"use strict";t.exports=/^#!(.*)/},79372:(t,e,r)=>{var n=global.process;const i=function(t){return t&&"object"==typeof t&&"function"==typeof t.removeListener&&"function"==typeof t.emit&&"function"==typeof t.reallyExit&&"function"==typeof t.listeners&&"function"==typeof t.kill&&"number"==typeof t.pid&&"function"==typeof t.on};if(i(n)){var o,s=r(39491),a=r(53576),u=/^win/i.test(n.platform),c=r(82361);"function"!=typeof c&&(c=c.EventEmitter),n.__signal_exit_emitter__?o=n.__signal_exit_emitter__:((o=n.__signal_exit_emitter__=new c).count=0,o.emitted={}),o.infinite||(o.setMaxListeners(1/0),o.infinite=!0),t.exports=function(t,e){if(!i(global.process))return function(){};s.equal(typeof t,"function","a callback must be provided for exit handler"),!1===l&&d();var r="exit";return e&&e.alwaysLast&&(r="afterexit"),o.on(r,t),function(){o.removeListener(r,t),0===o.listeners("exit").length&&0===o.listeners("afterexit").length&&h()}};var h=function(){l&&i(global.process)&&(l=!1,a.forEach((function(t){try{n.removeListener(t,p[t])}catch(t){}})),n.emit=_,n.reallyExit=v,o.count-=1)};t.exports.unload=h;var f=function(t,e,r){o.emitted[t]||(o.emitted[t]=!0,o.emit(t,e,r))},p={};a.forEach((function(t){p[t]=function(){i(global.process)&&n.listeners(t).length===o.count&&(h(),f("exit",null,t),f("afterexit",null,t),u&&"SIGHUP"===t&&(t="SIGINT"),n.kill(n.pid,t))}})),t.exports.signals=function(){return a};var l=!1,d=function(){!l&&i(global.process)&&(l=!0,o.count+=1,a=a.filter((function(t){try{return n.on(t,p[t]),!0}catch(t){return!1}})),n.emit=y,n.reallyExit=m)};t.exports.load=d;var v=n.reallyExit,m=function(t){i(global.process)&&(n.exitCode=t||0,f("exit",n.exitCode,null),f("afterexit",n.exitCode,null),v.call(n,n.exitCode))},_=n.emit,y=function(t,e){if("exit"===t&&i(global.process)){void 0!==e&&(n.exitCode=e);var r=_.apply(this,arguments);return f("exit",n.exitCode,null),f("afterexit",n.exitCode,null),r}return _.apply(this,arguments)}}else t.exports=function(){return function(){}}},53576:t=>{t.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&t.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&t.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")},3043:t=>{"use strict";t.exports=t=>{const e="string"==typeof t?"\n":"\n".charCodeAt(),r="string"==typeof t?"\r":"\r".charCodeAt();return t[t.length-1]===e&&(t=t.slice(0,t.length-1)),t[t.length-1]===r&&(t=t.slice(0,t.length-1)),t}},83711:(t,e,r)=>{const n="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,i=r(71017),o=n?";":":",s=r(16277),a=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),u=(t,e)=>{const r=e.colon||o,i=t.match(/\//)||n&&t.match(/\\/)?[""]:[...n?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],s=n?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",a=n?s.split(r):[""];return n&&-1!==t.indexOf(".")&&""!==a[0]&&a.unshift(""),{pathEnv:i,pathExt:a,pathExtExe:s}},c=(t,e,r)=>{"function"==typeof e&&(r=e,e={}),e||(e={});const{pathEnv:n,pathExt:o,pathExtExe:c}=u(t,e),h=[],f=r=>new Promise(((o,s)=>{if(r===n.length)return e.all&&h.length?o(h):s(a(t));const u=n[r],c=/^".*"$/.test(u)?u.slice(1,-1):u,f=i.join(c,t),l=!c&&/^\.[\\\/]/.test(t)?t.slice(0,2)+f:f;o(p(l,r,0))})),p=(t,r,n)=>new Promise(((i,a)=>{if(n===o.length)return i(f(r+1));const u=o[n];s(t+u,{pathExt:c},((o,s)=>{if(!o&&s){if(!e.all)return i(t+u);h.push(t+u)}return i(p(t,r,n+1))}))}));return r?f(0).then((t=>r(null,t)),r):f(0)};t.exports=c,c.sync=(t,e)=>{e=e||{};const{pathEnv:r,pathExt:n,pathExtExe:o}=u(t,e),c=[];for(let a=0;a<r.length;a++){const u=r[a],h=/^".*"$/.test(u)?u.slice(1,-1):u,f=i.join(h,t),p=!h&&/^\.[\\\/]/.test(t)?t.slice(0,2)+f:f;for(let t=0;t<n.length;t++){const r=p+n[t];try{if(s.sync(r,{pathExt:o})){if(!e.all)return r;c.push(r)}}catch(t){}}}if(e.all&&c.length)return c;if(e.nothrow)return null;throw a(t)}},52183:t=>{"use strict";t.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}},78331:(t,e,r)=>{"use strict";function n(t){var e=this;if(e instanceof n||(e=new n),e.tail=null,e.head=null,e.length=0,t&&"function"==typeof t.forEach)t.forEach((function(t){e.push(t)}));else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)e.push(arguments[r]);return e}function i(t,e,r,n){if(!(this instanceof i))return new i(t,e,r,n);this.list=n,this.value=t,e?(e.next=this,this.prev=e):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}t.exports=n,n.Node=i,n.create=n,n.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var e=t.next,r=t.prev;return e&&(e.prev=r),r&&(r.next=e),t===this.head&&(this.head=e),t===this.tail&&(this.tail=r),t.list.length--,t.next=null,t.prev=null,t.list=null,e},n.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var e=this.head;t.list=this,t.next=e,e&&(e.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}},n.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var e=this.tail;t.list=this,t.prev=e,e&&(e.next=t),this.tail=t,this.head||(this.head=t),this.length++}},n.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)n=arguments[t],(r=this).tail=new i(n,r.tail,null,r),r.head||(r.head=r.tail),r.length++;var r,n;return this.length},n.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)n=arguments[t],(r=this).head=new i(n,null,r.head,r),r.tail||(r.tail=r.head),r.length++;var r,n;return this.length},n.prototype.pop=function(){if(this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}},n.prototype.shift=function(){if(this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}},n.prototype.forEach=function(t,e){e=e||this;for(var r=this.head,n=0;null!==r;n++)t.call(e,r.value,n,this),r=r.next},n.prototype.forEachReverse=function(t,e){e=e||this;for(var r=this.tail,n=this.length-1;null!==r;n--)t.call(e,r.value,n,this),r=r.prev},n.prototype.get=function(t){for(var e=0,r=this.head;null!==r&&e<t;e++)r=r.next;if(e===t&&null!==r)return r.value},n.prototype.getReverse=function(t){for(var e=0,r=this.tail;null!==r&&e<t;e++)r=r.prev;if(e===t&&null!==r)return r.value},n.prototype.map=function(t,e){e=e||this;for(var r=new n,i=this.head;null!==i;)r.push(t.call(e,i.value,this)),i=i.next;return r},n.prototype.mapReverse=function(t,e){e=e||this;for(var r=new n,i=this.tail;null!==i;)r.push(t.call(e,i.value,this)),i=i.prev;return r},n.prototype.reduce=function(t,e){var r,n=this.head;if(arguments.length>1)r=e;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");n=this.head.next,r=this.head.value}for(var i=0;null!==n;i++)r=t(r,n.value,i),n=n.next;return r},n.prototype.reduceReverse=function(t,e){var r,n=this.tail;if(arguments.length>1)r=e;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");n=this.tail.prev,r=this.tail.value}for(var i=this.length-1;null!==n;i--)r=t(r,n.value,i),n=n.prev;return r},n.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;null!==r;e++)t[e]=r.value,r=r.next;return t},n.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;null!==r;e++)t[e]=r.value,r=r.prev;return t},n.prototype.slice=function(t,e){(e=e||this.length)<0&&(e+=this.length),(t=t||0)<0&&(t+=this.length);var r=new n;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=0,o=this.head;null!==o&&i<t;i++)o=o.next;for(;null!==o&&i<e;i++,o=o.next)r.push(o.value);return r},n.prototype.sliceReverse=function(t,e){(e=e||this.length)<0&&(e+=this.length),(t=t||0)<0&&(t+=this.length);var r=new n;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=this.length,o=this.tail;null!==o&&i>e;i--)o=o.prev;for(;null!==o&&i>t;i--,o=o.prev)r.push(o.value);return r},n.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var n=0,o=this.head;null!==o&&n<t;n++)o=o.next;var s,a,u,c,h=[];for(n=0;o&&n<e;n++)h.push(o.value),o=this.removeNode(o);for(null===o&&(o=this.tail),o!==this.head&&o!==this.tail&&(o=o.prev),n=0;n<r.length;n++)s=this,a=o,u=r[n],c=void 0,null===(c=a===s.head?new i(u,null,a,s):new i(u,a,a.next,s)).next&&(s.tail=c),null===c.prev&&(s.head=c),s.length++,o=c;return h},n.prototype.reverse=function(){for(var t=this.head,e=this.tail,r=t;null!==r;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=e,this.tail=t,this};try{r(52183)(n)}catch(t){}},30826:function(t,e){!function(t){"use strict";var e="delete",r=5,n=1<<r,i=n-1,o={};function s(t){t&&(t.value=!0)}function a(){}function u(t){return void 0===t.size&&(t.size=t.__iterate(h)),t.size}function c(t,e){if("number"!=typeof e){var r=e>>>0;if(""+r!==e||4294967295===r)return NaN;e=r}return e<0?u(t)+e:e}function h(){return!0}function f(t,e,r){return(0===t&&!v(t)||void 0!==r&&t<=-r)&&(void 0===e||void 0!==r&&e>=r)}function p(t,e){return d(t,e,0)}function l(t,e){return d(t,e,e)}function d(t,e,r){return void 0===t?r:v(t)?e===1/0?e:0|Math.max(0,e+t):void 0===e||e===t?t:0|Math.min(e,t)}function v(t){return t<0||0===t&&1/t==-1/0}var m="@@__IMMUTABLE_ITERABLE__@@";function _(t){return Boolean(t&&t[m])}var y="@@__IMMUTABLE_KEYED__@@";function g(t){return Boolean(t&&t[y])}var w="@@__IMMUTABLE_INDEXED__@@";function E(t){return Boolean(t&&t[w])}function b(t){return g(t)||E(t)}var I=function(t){return _(t)?t:V(t)},S=function(t){function e(t){return g(t)?t:Y(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(I),O=function(t){function e(t){return E(t)?t:J(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(I),x=function(t){function e(t){return _(t)&&!b(t)?t:Z(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(I);I.Keyed=S,I.Indexed=O,I.Set=x;var A="@@__IMMUTABLE_SEQ__@@";function R(t){return Boolean(t&&t[A])}var T="@@__IMMUTABLE_RECORD__@@";function $(t){return Boolean(t&&t[T])}function L(t){return _(t)||$(t)}var N="@@__IMMUTABLE_ORDERED__@@";function C(t){return Boolean(t&&t[N])}var z=0,j=1,M=2,D="function"==typeof Symbol&&Symbol.iterator,P="@@iterator",k=D||P,B=function(t){this.next=t};function G(t,e,r,n){var i=0===t?e:1===t?r:[e,r];return n?n.value=i:n={value:i,done:!1},n}function q(){return{value:void 0,done:!0}}function U(t){return!!Array.isArray(t)||!!K(t)}function F(t){return t&&"function"==typeof t.next}function X(t){var e=K(t);return e&&e.call(t)}function K(t){var e=t&&(D&&t[D]||t[P]);if("function"==typeof e)return e}B.prototype.toString=function(){return"[Iterator]"},B.KEYS=z,B.VALUES=j,B.ENTRIES=M,B.prototype.inspect=B.prototype.toSource=function(){return this.toString()},B.prototype[k]=function(){return this};var W=Object.prototype.hasOwnProperty;function H(t){return!(!Array.isArray(t)&&"string"!=typeof t)||t&&"object"==typeof t&&Number.isInteger(t.length)&&t.length>=0&&(0===t.length?1===Object.keys(t).length:t.hasOwnProperty(t.length-1))}var V=function(t){function e(t){return null==t?nt():L(t)?t.toSeq():function(t){var e=st(t);if(e)return r=t,n=K(r),n&&n===r.entries?e.fromEntrySeq():function(t){var e=K(t);return e&&e===t.keys}(t)?e.toSetSeq():e;var r,n;if("object"==typeof t)return new tt(t);throw new TypeError("Expected Array or collection object of values, or keyed object: "+t)}(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toSeq=function(){return this},e.prototype.toString=function(){return this.__toString("Seq {","}")},e.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},e.prototype.__iterate=function(t,e){var r=this._cache;if(r){for(var n=r.length,i=0;i!==n;){var o=r[e?n-++i:i++];if(!1===t(o[1],o[0],this))break}return i}return this.__iterateUncached(t,e)},e.prototype.__iterator=function(t,e){var r=this._cache;if(r){var n=r.length,i=0;return new B((function(){if(i===n)return{value:void 0,done:!0};var o=r[e?n-++i:i++];return G(t,o[0],o[1])}))}return this.__iteratorUncached(t,e)},e}(I),Y=function(t){function e(t){return null==t?nt().toKeyedSeq():_(t)?g(t)?t.toSeq():t.fromEntrySeq():$(t)?t.toSeq():it(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toKeyedSeq=function(){return this},e}(V),J=function(t){function e(t){return null==t?nt():_(t)?g(t)?t.entrySeq():t.toIndexedSeq():$(t)?t.toSeq().entrySeq():ot(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return e(arguments)},e.prototype.toIndexedSeq=function(){return this},e.prototype.toString=function(){return this.__toString("Seq [","]")},e}(V),Z=function(t){function e(t){return(_(t)&&!b(t)?t:J(t)).toSetSeq()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return e(arguments)},e.prototype.toSetSeq=function(){return this},e}(V);V.isSeq=R,V.Keyed=Y,V.Set=Z,V.Indexed=J,V.prototype[A]=!0;var Q=function(t){function e(t){this._array=t,this.size=t.length}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t,e){return this.has(t)?this._array[c(this,t)]:e},e.prototype.__iterate=function(t,e){for(var r=this._array,n=r.length,i=0;i!==n;){var o=e?n-++i:i++;if(!1===t(r[o],o,this))break}return i},e.prototype.__iterator=function(t,e){var r=this._array,n=r.length,i=0;return new B((function(){if(i===n)return{value:void 0,done:!0};var o=e?n-++i:i++;return G(t,o,r[o])}))},e}(J),tt=function(t){function e(t){var e=Object.keys(t).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t):[]);this._object=t,this._keys=e,this.size=e.length}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},e.prototype.has=function(t){return W.call(this._object,t)},e.prototype.__iterate=function(t,e){for(var r=this._object,n=this._keys,i=n.length,o=0;o!==i;){var s=n[e?i-++o:o++];if(!1===t(r[s],s,this))break}return o},e.prototype.__iterator=function(t,e){var r=this._object,n=this._keys,i=n.length,o=0;return new B((function(){if(o===i)return{value:void 0,done:!0};var s=n[e?i-++o:o++];return G(t,s,r[s])}))},e}(Y);tt.prototype[N]=!0;var et,rt=function(t){function e(t){this._collection=t,this.size=t.length||t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var r=X(this._collection),n=0;if(F(r))for(var i;!(i=r.next()).done&&!1!==t(i.value,n++,this););return n},e.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=X(this._collection);if(!F(r))return new B(q);var n=0;return new B((function(){var e=r.next();return e.done?e:G(t,n++,e.value)}))},e}(J);function nt(){return et||(et=new Q([]))}function it(t){var e=st(t);if(e)return e.fromEntrySeq();if("object"==typeof t)return new tt(t);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+t)}function ot(t){var e=st(t);if(e)return e;throw new TypeError("Expected Array or collection object of values: "+t)}function st(t){return H(t)?new Q(t):U(t)?new rt(t):void 0}var at="@@__IMMUTABLE_MAP__@@";function ut(t){return Boolean(t&&t[at])}function ct(t){return ut(t)&&C(t)}function ht(t){return Boolean(t&&"function"==typeof t.equals&&"function"==typeof t.hashCode)}function ft(t,e){if(t===e||t!=t&&e!=e)return!0;if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if((t=t.valueOf())===(e=e.valueOf())||t!=t&&e!=e)return!0;if(!t||!e)return!1}return!!(ht(t)&&ht(e)&&t.equals(e))}var pt="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){var r=65535&(t|=0),n=65535&(e|=0);return r*n+((t>>>16)*n+r*(e>>>16)<<16>>>0)|0};function lt(t){return t>>>1&1073741824|3221225471&t}var dt=Object.prototype.valueOf;function vt(t){if(null==t)return mt(t);if("function"==typeof t.hashCode)return lt(t.hashCode(t));var e,r,n,i=(e=t).valueOf!==dt&&"function"==typeof e.valueOf?e.valueOf(e):e;if(null==i)return mt(i);switch(typeof i){case"boolean":return i?1108378657:1108378656;case"number":return function(t){if(t!=t||t===1/0)return 0;var e=0|t;for(e!==t&&(e^=4294967295*t);t>4294967295;)e^=t/=4294967295;return lt(e)}(i);case"string":return i.length>xt?(void 0===(n=Tt[r=i])&&(n=_t(r),Rt===At&&(Rt=0,Tt={}),Rt++,Tt[r]=n),n):_t(i);case"object":case"function":return function(t){var e;if(bt&&void 0!==(e=Et.get(t)))return e;if(void 0!==(e=t[Ot]))return e;if(!gt){if(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[Ot]))return e;if(void 0!==(e=function(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}(t)))return e}if(e=wt(),bt)Et.set(t,e);else{if(void 0!==yt&&!1===yt(t))throw new Error("Non-extensible objects are not allowed as keys.");if(gt)Object.defineProperty(t,Ot,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[Ot]=e;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[Ot]=e}}return e}(i);case"symbol":return function(t){var e=It[t];return void 0!==e||(e=wt(),It[t]=e),e}(i);default:if("function"==typeof i.toString)return _t(i.toString());throw new Error("Value type "+typeof i+" cannot be hashed.")}}function mt(t){return null===t?1108378658:1108378659}function _t(t){for(var e=0,r=0;r<t.length;r++)e=31*e+t.charCodeAt(r)|0;return lt(e)}var yt=Object.isExtensible,gt=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}();function wt(){var t=++St;return 1073741824&St&&(St=0),t}var Et,bt="function"==typeof WeakMap;bt&&(Et=new WeakMap);var It=Object.create(null),St=0,Ot="__immutablehash__";"function"==typeof Symbol&&(Ot=Symbol(Ot));var xt=16,At=255,Rt=0,Tt={},$t=function(t){function e(t,e){this._iter=t,this._useKeys=e,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t,e){return this._iter.get(t,e)},e.prototype.has=function(t){return this._iter.has(t)},e.prototype.valueSeq=function(){return this._iter.valueSeq()},e.prototype.reverse=function(){var t=this,e=Mt(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},e.prototype.map=function(t,e){var r=this,n=jt(this,t,e);return this._useKeys||(n.valueSeq=function(){return r._iter.toSeq().map(t,e)}),n},e.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate((function(e,n){return t(e,n,r)}),e)},e.prototype.__iterator=function(t,e){return this._iter.__iterator(t,e)},e}(Y);$t.prototype[N]=!0;var Lt=function(t){function e(t){this._iter=t,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.includes=function(t){return this._iter.includes(t)},e.prototype.__iterate=function(t,e){var r=this,n=0;return e&&u(this),this._iter.__iterate((function(i){return t(i,e?r.size-++n:n++,r)}),e)},e.prototype.__iterator=function(t,e){var r=this,n=this._iter.__iterator(j,e),i=0;return e&&u(this),new B((function(){var o=n.next();return o.done?o:G(t,e?r.size-++i:i++,o.value,o)}))},e}(J),Nt=function(t){function e(t){this._iter=t,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.has=function(t){return this._iter.includes(t)},e.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate((function(e){return t(e,e,r)}),e)},e.prototype.__iterator=function(t,e){var r=this._iter.__iterator(j,e);return new B((function(){var e=r.next();return e.done?e:G(t,e.value,e.value,e)}))},e}(Z),Ct=function(t){function e(t){this._iter=t,this.size=t.size}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.entrySeq=function(){return this._iter.toSeq()},e.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate((function(e){if(e){Kt(e);var n=_(e);return t(n?e.get(1):e[1],n?e.get(0):e[0],r)}}),e)},e.prototype.__iterator=function(t,e){var r=this._iter.__iterator(j,e);return new B((function(){for(;;){var e=r.next();if(e.done)return e;var n=e.value;if(n){Kt(n);var i=_(n);return G(t,i?n.get(0):n[0],i?n.get(1):n[1],e)}}}))},e}(Y);function zt(t){var e=Ht(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.includes(e)},e.includes=function(e){return t.has(e)},e.cacheResult=Vt,e.__iterateUncached=function(e,r){var n=this;return t.__iterate((function(t,r){return!1!==e(r,t,n)}),r)},e.__iteratorUncached=function(e,r){if(e===M){var n=t.__iterator(e,r);return new B((function(){var t=n.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t}))}return t.__iterator(e===j?z:j,r)},e}function jt(t,e,r){var n=Ht(t);return n.size=t.size,n.has=function(e){return t.has(e)},n.get=function(n,i){var s=t.get(n,o);return s===o?i:e.call(r,s,n,t)},n.__iterateUncached=function(n,i){var o=this;return t.__iterate((function(t,i,s){return!1!==n(e.call(r,t,i,s),i,o)}),i)},n.__iteratorUncached=function(n,i){var o=t.__iterator(M,i);return new B((function(){var i=o.next();if(i.done)return i;var s=i.value,a=s[0];return G(n,a,e.call(r,s[1],a,t),i)}))},n}function Mt(t,e){var r=this,n=Ht(t);return n._iter=t,n.size=t.size,n.reverse=function(){return t},t.flip&&(n.flip=function(){var e=zt(t);return e.reverse=function(){return t.flip()},e}),n.get=function(r,n){return t.get(e?r:-1-r,n)},n.has=function(r){return t.has(e?r:-1-r)},n.includes=function(e){return t.includes(e)},n.cacheResult=Vt,n.__iterate=function(r,n){var i=this,o=0;return n&&u(t),t.__iterate((function(t,s){return r(t,e?s:n?i.size-++o:o++,i)}),!n)},n.__iterator=function(n,i){var o=0;i&&u(t);var s=t.__iterator(M,!i);return new B((function(){var t=s.next();if(t.done)return t;var a=t.value;return G(n,e?a[0]:i?r.size-++o:o++,a[1],t)}))},n}function Dt(t,e,r,n){var i=Ht(t);return n&&(i.has=function(n){var i=t.get(n,o);return i!==o&&!!e.call(r,i,n,t)},i.get=function(n,i){var s=t.get(n,o);return s!==o&&e.call(r,s,n,t)?s:i}),i.__iterateUncached=function(i,o){var s=this,a=0;return t.__iterate((function(t,o,u){if(e.call(r,t,o,u))return a++,i(t,n?o:a-1,s)}),o),a},i.__iteratorUncached=function(i,o){var s=t.__iterator(M,o),a=0;return new B((function(){for(;;){var o=s.next();if(o.done)return o;var u=o.value,c=u[0],h=u[1];if(e.call(r,h,c,t))return G(i,n?c:a++,h,o)}}))},i}function Pt(t,e,r,n){var i=t.size;if(f(e,r,i))return t;var o=p(e,i),s=l(r,i);if(o!=o||s!=s)return Pt(t.toSeq().cacheResult(),e,r,n);var a,u=s-o;u==u&&(a=u<0?0:u);var h=Ht(t);return h.size=0===a?a:t.size&&a||void 0,!n&&R(t)&&a>=0&&(h.get=function(e,r){return(e=c(this,e))>=0&&e<a?t.get(e+o,r):r}),h.__iterateUncached=function(e,r){var i=this;if(0===a)return 0;if(r)return this.cacheResult().__iterate(e,r);var s=0,u=!0,c=0;return t.__iterate((function(t,r){if(!u||!(u=s++<o))return c++,!1!==e(t,n?r:c-1,i)&&c!==a})),c},h.__iteratorUncached=function(e,r){if(0!==a&&r)return this.cacheResult().__iterator(e,r);if(0===a)return new B(q);var i=t.__iterator(e,r),s=0,u=0;return new B((function(){for(;s++<o;)i.next();if(++u>a)return{value:void 0,done:!0};var t=i.next();return n||e===j||t.done?t:G(e,u-1,e===z?void 0:t.value[1],t)}))},h}function kt(t,e,r,n){var i=Ht(t);return i.__iterateUncached=function(i,o){var s=this;if(o)return this.cacheResult().__iterate(i,o);var a=!0,u=0;return t.__iterate((function(t,o,c){if(!a||!(a=e.call(r,t,o,c)))return u++,i(t,n?o:u-1,s)})),u},i.__iteratorUncached=function(i,o){var s=this;if(o)return this.cacheResult().__iterator(i,o);var a=t.__iterator(M,o),u=!0,c=0;return new B((function(){var t,o,h;do{if((t=a.next()).done)return n||i===j?t:G(i,c++,i===z?void 0:t.value[1],t);var f=t.value;o=f[0],h=f[1],u&&(u=e.call(r,h,o,s))}while(u);return i===M?t:G(i,o,h,t)}))},i}function Bt(t,e,r){var n=Ht(t);return n.__iterateUncached=function(i,o){if(o)return this.cacheResult().__iterate(i,o);var s=0,a=!1;return function t(u,c){u.__iterate((function(o,u){return(!e||c<e)&&_(o)?t(o,c+1):(s++,!1===i(o,r?u:s-1,n)&&(a=!0)),!a}),o)}(t,0),s},n.__iteratorUncached=function(n,i){if(i)return this.cacheResult().__iterator(n,i);var o=t.__iterator(n,i),s=[],a=0;return new B((function(){for(;o;){var t=o.next();if(!1===t.done){var u=t.value;if(n===M&&(u=u[1]),e&&!(s.length<e)||!_(u))return r?t:G(n,a++,u,t);s.push(o),o=u.__iterator(n,i)}else o=s.pop()}return{value:void 0,done:!0}}))},n}function Gt(t,e,r){e||(e=Yt);var n=g(t),i=0,o=t.toSeq().map((function(e,n){return[n,e,i++,r?r(e,n,t):e]})).valueSeq().toArray();return o.sort((function(t,r){return e(t[3],r[3])||t[2]-r[2]})).forEach(n?function(t,e){o[e].length=2}:function(t,e){o[e]=t[1]}),n?Y(o):E(t)?J(o):Z(o)}function qt(t,e,r){if(e||(e=Yt),r){var n=t.toSeq().map((function(e,n){return[e,r(e,n,t)]})).reduce((function(t,r){return Ut(e,t[1],r[1])?r:t}));return n&&n[0]}return t.reduce((function(t,r){return Ut(e,t,r)?r:t}))}function Ut(t,e,r){var n=t(r,e);return 0===n&&r!==e&&(null==r||r!=r)||n>0}function Ft(t,e,r,n){var i=Ht(t),o=new Q(r).map((function(t){return t.size}));return i.size=n?o.max():o.min(),i.__iterate=function(t,e){for(var r,n=this.__iterator(j,e),i=0;!(r=n.next()).done&&!1!==t(r.value,i++,this););return i},i.__iteratorUncached=function(t,i){var o=r.map((function(t){return t=I(t),X(i?t.reverse():t)})),s=0,a=!1;return new B((function(){var r;return a||(r=o.map((function(t){return t.next()})),a=n?r.every((function(t){return t.done})):r.some((function(t){return t.done}))),a?{value:void 0,done:!0}:G(t,s++,e.apply(null,r.map((function(t){return t.value}))))}))},i}function Xt(t,e){return t===e?t:R(t)?e:t.constructor(e)}function Kt(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function Wt(t){return g(t)?S:E(t)?O:x}function Ht(t){return Object.create((g(t)?Y:E(t)?J:Z).prototype)}function Vt(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):V.prototype.cacheResult.call(this)}function Yt(t,e){return void 0===t&&void 0===e?0:void 0===t?1:void 0===e?-1:t>e?1:t<e?-1:0}function Jt(t,e){e=e||0;for(var r=Math.max(0,t.length-e),n=new Array(r),i=0;i<r;i++)n[i]=t[i+e];return n}function Zt(t,e){if(!t)throw new Error(e)}function Qt(t){Zt(t!==1/0,"Cannot perform this action with an infinite size.")}function te(t){if(H(t)&&"string"!=typeof t)return t;if(C(t))return t.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+t)}Lt.prototype.cacheResult=$t.prototype.cacheResult=Nt.prototype.cacheResult=Ct.prototype.cacheResult=Vt;var ee=Object.prototype.toString;function re(t){if(!t||"object"!=typeof t||"[object Object]"!==ee.call(t))return!1;var e=Object.getPrototypeOf(t);if(null===e)return!0;for(var r=e,n=Object.getPrototypeOf(e);null!==n;)r=n,n=Object.getPrototypeOf(r);return r===e}function ne(t){return"object"==typeof t&&(L(t)||Array.isArray(t)||re(t))}function ie(t){try{return"string"==typeof t?JSON.stringify(t):String(t)}catch(e){return JSON.stringify(t)}}function oe(t,e){return L(t)?t.has(e):ne(t)&&W.call(t,e)}function se(t,e,r){return L(t)?t.get(e,r):oe(t,e)?"function"==typeof t.get?t.get(e):t[e]:r}function ae(t){if(Array.isArray(t))return Jt(t);var e={};for(var r in t)W.call(t,r)&&(e[r]=t[r]);return e}function ue(t,e){if(!ne(t))throw new TypeError("Cannot update non-data-structure value: "+t);if(L(t)){if(!t.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+t);return t.remove(e)}if(!W.call(t,e))return t;var r=ae(t);return Array.isArray(r)?r.splice(e,1):delete r[e],r}function ce(t,e,r){if(!ne(t))throw new TypeError("Cannot update non-data-structure value: "+t);if(L(t)){if(!t.set)throw new TypeError("Cannot update immutable value without .set() method: "+t);return t.set(e,r)}if(W.call(t,e)&&r===t[e])return t;var n=ae(t);return n[e]=r,n}function he(t,e,r,n){n||(n=r,r=void 0);var i=fe(L(t),t,te(e),0,r,n);return i===o?r:i}function fe(t,e,r,n,i,s){var a=e===o;if(n===r.length){var u=a?i:e,c=s(u);return c===u?e:c}if(!a&&!ne(e))throw new TypeError("Cannot update within non-data-structure value in path ["+r.slice(0,n).map(ie)+"]: "+e);var h=r[n],f=a?o:se(e,h,o),p=fe(f===o?t:L(f),f,r,n+1,i,s);return p===f?e:p===o?ue(e,h):ce(a?t?He():{}:e,h,p)}function pe(t,e,r){return he(t,e,o,(function(){return r}))}function le(t,e){return pe(this,t,e)}function de(t,e){return he(t,e,(function(){return o}))}function ve(t){return de(this,t)}function me(t,e,r,n){return he(t,[e],r,n)}function _e(t,e,r){return 1===arguments.length?t(this):me(this,t,e,r)}function ye(t,e,r){return he(this,t,e,r)}function ge(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return Ee(this,t)}function we(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];if("function"!=typeof t)throw new TypeError("Invalid merger function: "+t);return Ee(this,e,t)}function Ee(t,e,r){for(var n=[],i=0;i<e.length;i++){var s=S(e[i]);0!==s.size&&n.push(s)}return 0===n.length?t:0!==t.toSeq().size||t.__ownerID||1!==n.length?t.withMutations((function(t){for(var e=r?function(e,n){me(t,n,o,(function(t){return t===o?e:r(t,e,n)}))}:function(e,r){t.set(r,e)},i=0;i<n.length;i++)n[i].forEach(e)})):t.constructor(n[0])}function be(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return Ae(t,e)}function Ie(t,e){for(var r=[],n=arguments.length-2;n-- >0;)r[n]=arguments[n+2];return Ae(e,r,t)}function Se(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return xe(t,e)}function Oe(t,e){for(var r=[],n=arguments.length-2;n-- >0;)r[n]=arguments[n+2];return xe(e,r,t)}function xe(t,e,r){return Ae(t,e,function(t){function e(r,n,i){return ne(r)&&ne(n)&&(o=n,s=V(r),a=V(o),E(s)===E(a)&&g(s)===g(a))?Ae(r,[n],e):t?t(r,n,i):n;var o,s,a}return e}(r))}function Ae(t,e,r){if(!ne(t))throw new TypeError("Cannot merge into non-data-structure value: "+t);if(L(t))return"function"==typeof r&&t.mergeWith?t.mergeWith.apply(t,[r].concat(e)):t.merge?t.merge.apply(t,e):t.concat.apply(t,e);for(var n=Array.isArray(t),i=t,o=n?O:S,s=n?function(e){i===t&&(i=ae(i)),i.push(e)}:function(e,n){var o=W.call(i,n),s=o&&r?r(i[n],e,n):e;o&&s===i[n]||(i===t&&(i=ae(i)),i[n]=s)},a=0;a<e.length;a++)o(e[a]).forEach(s);return i}function Re(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return xe(this,t)}function Te(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return xe(this,e,t)}function $e(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return he(this,t,He(),(function(t){return Ae(t,e)}))}function Le(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return he(this,t,He(),(function(t){return xe(t,e)}))}function Ne(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this}function Ce(){return this.__ownerID?this:this.__ensureOwner(new a)}function ze(){return this.__ensureOwner()}function je(){return this.__altered}var Me=function(t){function e(e){return null==e?He():ut(e)&&!C(e)?e:He().withMutations((function(r){var n=t(e);Qt(n.size),n.forEach((function(t,e){return r.set(e,t)}))}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return He().withMutations((function(e){for(var r=0;r<t.length;r+=2){if(r+1>=t.length)throw new Error("Missing value for key: "+t[r]);e.set(t[r],t[r+1])}}))},e.prototype.toString=function(){return this.__toString("Map {","}")},e.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},e.prototype.set=function(t,e){return Ve(this,t,e)},e.prototype.remove=function(t){return Ve(this,t,o)},e.prototype.deleteAll=function(t){var e=I(t);return 0===e.size?this:this.withMutations((function(t){e.forEach((function(e){return t.remove(e)}))}))},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):He()},e.prototype.sort=function(t){return wr(Gt(this,t))},e.prototype.sortBy=function(t,e){return wr(Gt(this,e,t))},e.prototype.map=function(t,e){var r=this;return this.withMutations((function(n){n.forEach((function(i,o){n.set(o,t.call(e,i,o,r))}))}))},e.prototype.__iterator=function(t,e){return new Fe(this,t,e)},e.prototype.__iterate=function(t,e){var r=this,n=0;return this._root&&this._root.iterate((function(e){return n++,t(e[1],e[0],r)}),e),n},e.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?We(this.size,this._root,t,this.__hash):0===this.size?He():(this.__ownerID=t,this.__altered=!1,this)},e}(S);Me.isMap=ut;var De=Me.prototype;De[at]=!0,De[e]=De.remove,De.removeAll=De.deleteAll,De.setIn=le,De.removeIn=De.deleteIn=ve,De.update=_e,De.updateIn=ye,De.merge=De.concat=ge,De.mergeWith=we,De.mergeDeep=Re,De.mergeDeepWith=Te,De.mergeIn=$e,De.mergeDeepIn=Le,De.withMutations=Ne,De.wasAltered=je,De.asImmutable=ze,De["@@transducer/init"]=De.asMutable=Ce,De["@@transducer/step"]=function(t,e){return t.set(e[0],e[1])},De["@@transducer/result"]=function(t){return t.asImmutable()};var Pe=function(t,e){this.ownerID=t,this.entries=e};Pe.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,s=i.length;o<s;o++)if(ft(r,i[o][0]))return i[o][1];return n},Pe.prototype.update=function(t,e,r,n,i,u,c){for(var h=i===o,f=this.entries,p=0,l=f.length;p<l&&!ft(n,f[p][0]);p++);var d=p<l;if(d?f[p][1]===i:h)return this;if(s(c),(h||!d)&&s(u),!h||1!==f.length){if(!d&&!h&&f.length>=er)return function(t,e,r,n){t||(t=new a);for(var i=new qe(t,vt(r),[r,n]),o=0;o<e.length;o++){var s=e[o];i=i.update(t,0,void 0,s[0],s[1])}return i}(t,f,n,i);var v=t&&t===this.ownerID,m=v?f:Jt(f);return d?h?p===l-1?m.pop():m[p]=m.pop():m[p]=[n,i]:m.push([n,i]),v?(this.entries=m,this):new Pe(t,m)}};var ke=function(t,e,r){this.ownerID=t,this.bitmap=e,this.nodes=r};ke.prototype.get=function(t,e,n,o){void 0===e&&(e=vt(n));var s=1<<((0===t?e:e>>>t)&i),a=this.bitmap;return 0==(a&s)?o:this.nodes[Qe(a&s-1)].get(t+r,e,n,o)},ke.prototype.update=function(t,e,s,a,u,c,h){void 0===s&&(s=vt(a));var f=(0===e?s:s>>>e)&i,p=1<<f,l=this.bitmap,d=0!=(l&p);if(!d&&u===o)return this;var v=Qe(l&p-1),m=this.nodes,_=d?m[v]:void 0,y=Ye(_,t,e+r,s,a,u,c,h);if(y===_)return this;if(!d&&y&&m.length>=rr)return function(t,e,r,i,o){for(var s=0,a=new Array(n),u=0;0!==r;u++,r>>>=1)a[u]=1&r?e[s++]:void 0;return a[i]=o,new Be(t,s+1,a)}(t,m,l,f,y);if(d&&!y&&2===m.length&&Je(m[1^v]))return m[1^v];if(d&&y&&1===m.length&&Je(y))return y;var g=t&&t===this.ownerID,w=d?y?l:l^p:l|p,E=d?y?tr(m,v,y,g):function(t,e,r){var n=t.length-1;if(r&&e===n)return t.pop(),t;for(var i=new Array(n),o=0,s=0;s<n;s++)s===e&&(o=1),i[s]=t[s+o];return i}(m,v,g):function(t,e,r,n){var i=t.length+1;if(n&&e+1===i)return t[e]=r,t;for(var o=new Array(i),s=0,a=0;a<i;a++)a===e?(o[a]=r,s=-1):o[a]=t[a+s];return o}(m,v,y,g);return g?(this.bitmap=w,this.nodes=E,this):new ke(t,w,E)};var Be=function(t,e,r){this.ownerID=t,this.count=e,this.nodes=r};Be.prototype.get=function(t,e,n,o){void 0===e&&(e=vt(n));var s=(0===t?e:e>>>t)&i,a=this.nodes[s];return a?a.get(t+r,e,n,o):o},Be.prototype.update=function(t,e,n,s,a,u,c){void 0===n&&(n=vt(s));var h=(0===e?n:n>>>e)&i,f=a===o,p=this.nodes,l=p[h];if(f&&!l)return this;var d=Ye(l,t,e+r,n,s,a,u,c);if(d===l)return this;var v=this.count;if(l){if(!d&&--v<nr)return function(t,e,r,n){for(var i=0,o=0,s=new Array(r),a=0,u=1,c=e.length;a<c;a++,u<<=1){var h=e[a];void 0!==h&&a!==n&&(i|=u,s[o++]=h)}return new ke(t,i,s)}(t,p,v,h)}else v++;var m=t&&t===this.ownerID,_=tr(p,h,d,m);return m?(this.count=v,this.nodes=_,this):new Be(t,v,_)};var Ge=function(t,e,r){this.ownerID=t,this.keyHash=e,this.entries=r};Ge.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,s=i.length;o<s;o++)if(ft(r,i[o][0]))return i[o][1];return n},Ge.prototype.update=function(t,e,r,n,i,a,u){void 0===r&&(r=vt(n));var c=i===o;if(r!==this.keyHash)return c?this:(s(u),s(a),Ze(this,t,e,r,[n,i]));for(var h=this.entries,f=0,p=h.length;f<p&&!ft(n,h[f][0]);f++);var l=f<p;if(l?h[f][1]===i:c)return this;if(s(u),(c||!l)&&s(a),c&&2===p)return new qe(t,this.keyHash,h[1^f]);var d=t&&t===this.ownerID,v=d?h:Jt(h);return l?c?f===p-1?v.pop():v[f]=v.pop():v[f]=[n,i]:v.push([n,i]),d?(this.entries=v,this):new Ge(t,this.keyHash,v)};var qe=function(t,e,r){this.ownerID=t,this.keyHash=e,this.entry=r};qe.prototype.get=function(t,e,r,n){return ft(r,this.entry[0])?this.entry[1]:n},qe.prototype.update=function(t,e,r,n,i,a,u){var c=i===o,h=ft(n,this.entry[0]);return(h?i===this.entry[1]:c)?this:(s(u),c?void s(a):h?t&&t===this.ownerID?(this.entry[1]=i,this):new qe(t,this.keyHash,[n,i]):(s(a),Ze(this,t,e,vt(n),[n,i])))},Pe.prototype.iterate=Ge.prototype.iterate=function(t,e){for(var r=this.entries,n=0,i=r.length-1;n<=i;n++)if(!1===t(r[e?i-n:n]))return!1},ke.prototype.iterate=Be.prototype.iterate=function(t,e){for(var r=this.nodes,n=0,i=r.length-1;n<=i;n++){var o=r[e?i-n:n];if(o&&!1===o.iterate(t,e))return!1}},qe.prototype.iterate=function(t,e){return t(this.entry)};var Ue,Fe=function(t){function e(t,e,r){this._type=e,this._reverse=r,this._stack=t._root&&Ke(t._root)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.next=function(){for(var t=this._type,e=this._stack;e;){var r=e.node,n=e.index++,i=void 0;if(r.entry){if(0===n)return Xe(t,r.entry)}else if(r.entries){if(n<=(i=r.entries.length-1))return Xe(t,r.entries[this._reverse?i-n:n])}else if(n<=(i=r.nodes.length-1)){var o=r.nodes[this._reverse?i-n:n];if(o){if(o.entry)return Xe(t,o.entry);e=this._stack=Ke(o,e)}continue}e=this._stack=this._stack.__prev}return{value:void 0,done:!0}},e}(B);function Xe(t,e){return G(t,e[0],e[1])}function Ke(t,e){return{node:t,index:0,__prev:e}}function We(t,e,r,n){var i=Object.create(De);return i.size=t,i._root=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function He(){return Ue||(Ue=We(0))}function Ve(t,e,r){var n,i;if(t._root){var s={value:!1},a={value:!1};if(n=Ye(t._root,t.__ownerID,0,void 0,e,r,s,a),!a.value)return t;i=t.size+(s.value?r===o?-1:1:0)}else{if(r===o)return t;i=1,n=new Pe(t.__ownerID,[[e,r]])}return t.__ownerID?(t.size=i,t._root=n,t.__hash=void 0,t.__altered=!0,t):n?We(i,n):He()}function Ye(t,e,r,n,i,a,u,c){return t?t.update(e,r,n,i,a,u,c):a===o?t:(s(c),s(u),new qe(e,n,[i,a]))}function Je(t){return t.constructor===qe||t.constructor===Ge}function Ze(t,e,n,o,s){if(t.keyHash===o)return new Ge(e,o,[t.entry,s]);var a,u=(0===n?t.keyHash:t.keyHash>>>n)&i,c=(0===n?o:o>>>n)&i,h=u===c?[Ze(t,e,n+r,o,s)]:(a=new qe(e,o,s),u<c?[t,a]:[a,t]);return new ke(e,1<<u|1<<c,h)}function Qe(t){return t=(t=(858993459&(t-=t>>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135,127&(t+=t>>8)+(t>>16)}function tr(t,e,r,n){var i=n?t:Jt(t);return i[e]=r,i}var er=n/4,rr=n/2,nr=n/4,ir="@@__IMMUTABLE_LIST__@@";function or(t){return Boolean(t&&t[ir])}var sr=function(t){function e(e){var i=lr();if(null==e)return i;if(or(e))return e;var o=t(e),s=o.size;return 0===s?i:(Qt(s),s>0&&s<n?pr(0,s,r,null,new ur(o.toArray())):i.withMutations((function(t){t.setSize(s),o.forEach((function(e,r){return t.set(r,e)}))})))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("List [","]")},e.prototype.get=function(t,e){if((t=c(this,t))>=0&&t<this.size){var r=mr(this,t+=this._origin);return r&&r.array[t&i]}return e},e.prototype.set=function(t,e){return function(t,e,r){if((e=c(t,e))!=e)return t;if(e>=t.size||e<0)return t.withMutations((function(t){e<0?_r(t,e).set(0,r):_r(t,0,e+1).set(e,r)}));e+=t._origin;var n=t._tail,i=t._root,o={value:!1};return e>=yr(t._capacity)?n=dr(n,t.__ownerID,0,e,r,o):i=dr(i,t.__ownerID,t._level,e,r,o),o.value?t.__ownerID?(t._root=i,t._tail=n,t.__hash=void 0,t.__altered=!0,t):pr(t._origin,t._capacity,t._level,i,n):t}(this,t,e)},e.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},e.prototype.insert=function(t,e){return this.splice(t,0,e)},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=r,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):lr()},e.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations((function(r){_r(r,0,e+t.length);for(var n=0;n<t.length;n++)r.set(e+n,t[n])}))},e.prototype.pop=function(){return _r(this,0,-1)},e.prototype.unshift=function(){var t=arguments;return this.withMutations((function(e){_r(e,-t.length);for(var r=0;r<t.length;r++)e.set(r,t[r])}))},e.prototype.shift=function(){return _r(this,1)},e.prototype.concat=function(){for(var e=arguments,r=[],n=0;n<arguments.length;n++){var i=e[n],o=t("string"!=typeof i&&U(i)?i:[i]);0!==o.size&&r.push(o)}return 0===r.length?this:0!==this.size||this.__ownerID||1!==r.length?this.withMutations((function(t){r.forEach((function(e){return e.forEach((function(e){return t.push(e)}))}))})):this.constructor(r[0])},e.prototype.setSize=function(t){return _r(this,0,t)},e.prototype.map=function(t,e){var r=this;return this.withMutations((function(n){for(var i=0;i<r.size;i++)n.set(i,t.call(e,n.get(i),i,r))}))},e.prototype.slice=function(t,e){var r=this.size;return f(t,e,r)?this:_r(this,p(t,r),l(e,r))},e.prototype.__iterator=function(t,e){var r=e?this.size:0,n=fr(this,e);return new B((function(){var i=n();return i===hr?{value:void 0,done:!0}:G(t,e?--r:r++,i)}))},e.prototype.__iterate=function(t,e){for(var r,n=e?this.size:0,i=fr(this,e);(r=i())!==hr&&!1!==t(r,e?--n:n++,this););return n},e.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?pr(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):0===this.size?lr():(this.__ownerID=t,this.__altered=!1,this)},e}(O);sr.isList=or;var ar=sr.prototype;ar[ir]=!0,ar[e]=ar.remove,ar.merge=ar.concat,ar.setIn=le,ar.deleteIn=ar.removeIn=ve,ar.update=_e,ar.updateIn=ye,ar.mergeIn=$e,ar.mergeDeepIn=Le,ar.withMutations=Ne,ar.wasAltered=je,ar.asImmutable=ze,ar["@@transducer/init"]=ar.asMutable=Ce,ar["@@transducer/step"]=function(t,e){return t.push(e)},ar["@@transducer/result"]=function(t){return t.asImmutable()};var ur=function(t,e){this.array=t,this.ownerID=e};ur.prototype.removeBefore=function(t,e,n){if(n===e?1<<e:0===this.array.length)return this;var o=n>>>e&i;if(o>=this.array.length)return new ur([],t);var s,a=0===o;if(e>0){var u=this.array[o];if((s=u&&u.removeBefore(t,e-r,n))===u&&a)return this}if(a&&!s)return this;var c=vr(this,t);if(!a)for(var h=0;h<o;h++)c.array[h]=void 0;return s&&(c.array[o]=s),c},ur.prototype.removeAfter=function(t,e,n){if(n===(e?1<<e:0)||0===this.array.length)return this;var o,s=n-1>>>e&i;if(s>=this.array.length)return this;if(e>0){var a=this.array[s];if((o=a&&a.removeAfter(t,e-r,n))===a&&s===this.array.length-1)return this}var u=vr(this,t);return u.array.splice(s+1),o&&(u.array[s]=o),u};var cr,hr={};function fr(t,e){var i=t._origin,o=t._capacity,s=yr(o),a=t._tail;return u(t._root,t._level,0);function u(t,c,h){return 0===c?function(t,r){var u=r===s?a&&a.array:t&&t.array,c=r>i?0:i-r,h=o-r;return h>n&&(h=n),function(){if(c===h)return hr;var t=e?--h:c++;return u&&u[t]}}(t,h):function(t,s,a){var c,h=t&&t.array,f=a>i?0:i-a>>s,p=1+(o-a>>s);return p>n&&(p=n),function(){for(;;){if(c){var t=c();if(t!==hr)return t;c=null}if(f===p)return hr;var n=e?--p:f++;c=u(h&&h[n],s-r,a+(n<<s))}}}(t,c,h)}}function pr(t,e,r,n,i,o,s){var a=Object.create(ar);return a.size=e-t,a._origin=t,a._capacity=e,a._level=r,a._root=n,a._tail=i,a.__ownerID=o,a.__hash=s,a.__altered=!1,a}function lr(){return cr||(cr=pr(0,0,r))}function dr(t,e,n,o,a,u){var c,h=o>>>n&i,f=t&&h<t.array.length;if(!f&&void 0===a)return t;if(n>0){var p=t&&t.array[h],l=dr(p,e,n-r,o,a,u);return l===p?t:((c=vr(t,e)).array[h]=l,c)}return f&&t.array[h]===a?t:(u&&s(u),c=vr(t,e),void 0===a&&h===c.array.length-1?c.array.pop():c.array[h]=a,c)}function vr(t,e){return e&&t&&e===t.ownerID?t:new ur(t?t.array.slice():[],e)}function mr(t,e){if(e>=yr(t._capacity))return t._tail;if(e<1<<t._level+r){for(var n=t._root,o=t._level;n&&o>0;)n=n.array[e>>>o&i],o-=r;return n}}function _r(t,e,n){void 0!==e&&(e|=0),void 0!==n&&(n|=0);var o=t.__ownerID||new a,s=t._origin,u=t._capacity,c=s+e,h=void 0===n?u:n<0?u+n:s+n;if(c===s&&h===u)return t;if(c>=h)return t.clear();for(var f=t._level,p=t._root,l=0;c+l<0;)p=new ur(p&&p.array.length?[void 0,p]:[],o),l+=1<<(f+=r);l&&(c+=l,s+=l,h+=l,u+=l);for(var d=yr(u),v=yr(h);v>=1<<f+r;)p=new ur(p&&p.array.length?[p]:[],o),f+=r;var m=t._tail,_=v<d?mr(t,h-1):v>d?new ur([],o):m;if(m&&v>d&&c<u&&m.array.length){for(var y=p=vr(p,o),g=f;g>r;g-=r){var w=d>>>g&i;y=y.array[w]=vr(y.array[w],o)}y.array[d>>>r&i]=m}if(h<u&&(_=_&&_.removeAfter(o,0,h)),c>=v)c-=v,h-=v,f=r,p=null,_=_&&_.removeBefore(o,0,c);else if(c>s||v<d){for(l=0;p;){var E=c>>>f&i;if(E!==v>>>f&i)break;E&&(l+=(1<<f)*E),f-=r,p=p.array[E]}p&&c>s&&(p=p.removeBefore(o,f,c-l)),p&&v<d&&(p=p.removeAfter(o,f,v-l)),l&&(c-=l,h-=l)}return t.__ownerID?(t.size=h-c,t._origin=c,t._capacity=h,t._level=f,t._root=p,t._tail=_,t.__hash=void 0,t.__altered=!0,t):pr(c,h,f,p,_)}function yr(t){return t<n?0:t-1>>>r<<r}var gr,wr=function(t){function e(t){return null==t?br():ct(t)?t:br().withMutations((function(e){var r=S(t);Qt(r.size),r.forEach((function(t,r){return e.set(r,t)}))}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("OrderedMap {","}")},e.prototype.get=function(t,e){var r=this._map.get(t);return void 0!==r?this._list.get(r)[1]:e},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this.__altered=!0,this):br()},e.prototype.set=function(t,e){return Ir(this,t,e)},e.prototype.remove=function(t){return Ir(this,t,o)},e.prototype.__iterate=function(t,e){var r=this;return this._list.__iterate((function(e){return e&&t(e[1],e[0],r)}),e)},e.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},e.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),r=this._list.__ensureOwner(t);return t?Er(e,r,t,this.__hash):0===this.size?br():(this.__ownerID=t,this.__altered=!1,this._map=e,this._list=r,this)},e}(Me);function Er(t,e,r,n){var i=Object.create(wr.prototype);return i.size=t?t.size:0,i._map=t,i._list=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function br(){return gr||(gr=Er(He(),lr()))}function Ir(t,e,r){var i,s,a=t._map,u=t._list,c=a.get(e),h=void 0!==c;if(r===o){if(!h)return t;u.size>=n&&u.size>=2*a.size?(i=(s=u.filter((function(t,e){return void 0!==t&&c!==e}))).toKeyedSeq().map((function(t){return t[0]})).flip().toMap(),t.__ownerID&&(i.__ownerID=s.__ownerID=t.__ownerID)):(i=a.remove(e),s=c===u.size-1?u.pop():u.set(c,void 0))}else if(h){if(r===u.get(c)[1])return t;i=a,s=u.set(c,[e,r])}else i=a.set(e,u.size),s=u.set(u.size,[e,r]);return t.__ownerID?(t.size=i.size,t._map=i,t._list=s,t.__hash=void 0,t.__altered=!0,t):Er(i,s)}wr.isOrderedMap=ct,wr.prototype[N]=!0,wr.prototype[e]=wr.prototype.remove;var Sr="@@__IMMUTABLE_STACK__@@";function Or(t){return Boolean(t&&t[Sr])}var xr=function(t){function e(t){return null==t?$r():Or(t)?t:$r().pushAll(t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.prototype.toString=function(){return this.__toString("Stack [","]")},e.prototype.get=function(t,e){var r=this._head;for(t=c(this,t);r&&t--;)r=r.next;return r?r.value:e},e.prototype.peek=function(){return this._head&&this._head.value},e.prototype.push=function(){var t=arguments;if(0===arguments.length)return this;for(var e=this.size+arguments.length,r=this._head,n=arguments.length-1;n>=0;n--)r={value:t[n],next:r};return this.__ownerID?(this.size=e,this._head=r,this.__hash=void 0,this.__altered=!0,this):Tr(e,r)},e.prototype.pushAll=function(e){if(0===(e=t(e)).size)return this;if(0===this.size&&Or(e))return e;Qt(e.size);var r=this.size,n=this._head;return e.__iterate((function(t){r++,n={value:t,next:n}}),!0),this.__ownerID?(this.size=r,this._head=n,this.__hash=void 0,this.__altered=!0,this):Tr(r,n)},e.prototype.pop=function(){return this.slice(1)},e.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):$r()},e.prototype.slice=function(e,r){if(f(e,r,this.size))return this;var n=p(e,this.size);if(l(r,this.size)!==this.size)return t.prototype.slice.call(this,e,r);for(var i=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):Tr(i,o)},e.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Tr(this.size,this._head,t,this.__hash):0===this.size?$r():(this.__ownerID=t,this.__altered=!1,this)},e.prototype.__iterate=function(t,e){var r=this;if(e)return new Q(this.toArray()).__iterate((function(e,n){return t(e,n,r)}),e);for(var n=0,i=this._head;i&&!1!==t(i.value,n++,this);)i=i.next;return n},e.prototype.__iterator=function(t,e){if(e)return new Q(this.toArray()).__iterator(t,e);var r=0,n=this._head;return new B((function(){if(n){var e=n.value;return n=n.next,G(t,r++,e)}return{value:void 0,done:!0}}))},e}(O);xr.isStack=Or;var Ar,Rr=xr.prototype;function Tr(t,e,r,n){var i=Object.create(Rr);return i.size=t,i._head=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function $r(){return Ar||(Ar=Tr(0))}Rr[Sr]=!0,Rr.shift=Rr.pop,Rr.unshift=Rr.push,Rr.unshiftAll=Rr.pushAll,Rr.withMutations=Ne,Rr.wasAltered=je,Rr.asImmutable=ze,Rr["@@transducer/init"]=Rr.asMutable=Ce,Rr["@@transducer/step"]=function(t,e){return t.unshift(e)},Rr["@@transducer/result"]=function(t){return t.asImmutable()};var Lr="@@__IMMUTABLE_SET__@@";function Nr(t){return Boolean(t&&t[Lr])}function Cr(t){return Nr(t)&&C(t)}function zr(t,e){if(t===e)return!0;if(!_(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||g(t)!==g(e)||E(t)!==E(e)||C(t)!==C(e))return!1;if(0===t.size&&0===e.size)return!0;var r=!b(t);if(C(t)){var n=t.entries();return e.every((function(t,e){var i=n.next().value;return i&&ft(i[1],t)&&(r||ft(i[0],e))}))&&n.next().done}var i=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{i=!0;var s=t;t=e,e=s}var a=!0,u=e.__iterate((function(e,n){if(r?!t.has(e):i?!ft(e,t.get(n,o)):!ft(t.get(n,o),e))return a=!1,!1}));return a&&t.size===u}function jr(t,e){var r=function(r){t.prototype[r]=e[r]};return Object.keys(e).forEach(r),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(r),t}function Mr(t){if(!t||"object"!=typeof t)return t;if(!_(t)){if(!ne(t))return t;t=V(t)}if(g(t)){var e={};return t.__iterate((function(t,r){e[r]=Mr(t)})),e}var r=[];return t.__iterate((function(t){r.push(Mr(t))})),r}var Dr=function(t){function e(e){return null==e?qr():Nr(e)&&!C(e)?e:qr().withMutations((function(r){var n=t(e);Qt(n.size),n.forEach((function(t){return r.add(t)}))}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.fromKeys=function(t){return this(S(t).keySeq())},e.intersect=function(t){return(t=I(t).toArray()).length?kr.intersect.apply(e(t.pop()),t):qr()},e.union=function(t){return(t=I(t).toArray()).length?kr.union.apply(e(t.pop()),t):qr()},e.prototype.toString=function(){return this.__toString("Set {","}")},e.prototype.has=function(t){return this._map.has(t)},e.prototype.add=function(t){return Br(this,this._map.set(t,t))},e.prototype.remove=function(t){return Br(this,this._map.remove(t))},e.prototype.clear=function(){return Br(this,this._map.clear())},e.prototype.map=function(t,e){var r=this,n=!1,i=Br(this,this._map.mapEntries((function(i){var o=i[1],s=t.call(e,o,o,r);return s!==o&&(n=!0),[s,s]}),e));return n?i:this},e.prototype.union=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];return 0===(e=e.filter((function(t){return 0!==t.size}))).length?this:0!==this.size||this.__ownerID||1!==e.length?this.withMutations((function(r){for(var n=0;n<e.length;n++)"string"==typeof e[n]?r.add(e[n]):t(e[n]).forEach((function(t){return r.add(t)}))})):this.constructor(e[0])},e.prototype.intersect=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];if(0===e.length)return this;e=e.map((function(e){return t(e)}));var n=[];return this.forEach((function(t){e.every((function(e){return e.includes(t)}))||n.push(t)})),this.withMutations((function(t){n.forEach((function(e){t.remove(e)}))}))},e.prototype.subtract=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];if(0===e.length)return this;e=e.map((function(e){return t(e)}));var n=[];return this.forEach((function(t){e.some((function(e){return e.includes(t)}))&&n.push(t)})),this.withMutations((function(t){n.forEach((function(e){t.remove(e)}))}))},e.prototype.sort=function(t){return un(Gt(this,t))},e.prototype.sortBy=function(t,e){return un(Gt(this,e,t))},e.prototype.wasAltered=function(){return this._map.wasAltered()},e.prototype.__iterate=function(t,e){var r=this;return this._map.__iterate((function(e){return t(e,e,r)}),e)},e.prototype.__iterator=function(t,e){return this._map.__iterator(t,e)},e.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t);return t?this.__make(e,t):0===this.size?this.__empty():(this.__ownerID=t,this._map=e,this)},e}(x);Dr.isSet=Nr;var Pr,kr=Dr.prototype;function Br(t,e){return t.__ownerID?(t.size=e.size,t._map=e,t):e===t._map?t:0===e.size?t.__empty():t.__make(e)}function Gr(t,e){var r=Object.create(kr);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function qr(){return Pr||(Pr=Gr(He()))}kr[Lr]=!0,kr[e]=kr.remove,kr.merge=kr.concat=kr.union,kr.withMutations=Ne,kr.asImmutable=ze,kr["@@transducer/init"]=kr.asMutable=Ce,kr["@@transducer/step"]=function(t,e){return t.add(e)},kr["@@transducer/result"]=function(t){return t.asImmutable()},kr.__empty=qr,kr.__make=Gr;var Ur,Fr=function(t){function e(t,r,n){if(!(this instanceof e))return new e(t,r,n);if(Zt(0!==n,"Cannot step a Range by 0"),t=t||0,void 0===r&&(r=1/0),n=void 0===n?1:Math.abs(n),r<t&&(n=-n),this._start=t,this._end=r,this._step=n,this.size=Math.max(0,Math.ceil((r-t)/n-1)+1),0===this.size){if(Ur)return Ur;Ur=this}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},e.prototype.get=function(t,e){return this.has(t)?this._start+c(this,t)*this._step:e},e.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)},e.prototype.slice=function(t,r){return f(t,r,this.size)?this:(t=p(t,this.size),(r=l(r,this.size))<=t?new e(0,0):new e(this.get(t,this._end),this.get(r,this._end),this._step))},e.prototype.indexOf=function(t){var e=t-this._start;if(e%this._step==0){var r=e/this._step;if(r>=0&&r<this.size)return r}return-1},e.prototype.lastIndexOf=function(t){return this.indexOf(t)},e.prototype.__iterate=function(t,e){for(var r=this.size,n=this._step,i=e?this._start+(r-1)*n:this._start,o=0;o!==r&&!1!==t(i,e?r-++o:o++,this);)i+=e?-n:n;return o},e.prototype.__iterator=function(t,e){var r=this.size,n=this._step,i=e?this._start+(r-1)*n:this._start,o=0;return new B((function(){if(o===r)return{value:void 0,done:!0};var s=i;return i+=e?-n:n,G(t,e?r-++o:o++,s)}))},e.prototype.equals=function(t){return t instanceof e?this._start===t._start&&this._end===t._end&&this._step===t._step:zr(this,t)},e}(J);function Xr(t,e,r){for(var n=te(e),i=0;i!==n.length;)if((t=se(t,n[i++],o))===o)return r;return t}function Kr(t,e){return Xr(this,t,e)}function Wr(t,e){return Xr(t,e,o)!==o}function Hr(){Qt(this.size);var t={};return this.__iterate((function(e,r){t[r]=e})),t}I.isIterable=_,I.isKeyed=g,I.isIndexed=E,I.isAssociative=b,I.isOrdered=C,I.Iterator=B,jr(I,{toArray:function(){Qt(this.size);var t=new Array(this.size||0),e=g(this),r=0;return this.__iterate((function(n,i){t[r++]=e?[i,n]:n})),t},toIndexedSeq:function(){return new Lt(this)},toJS:function(){return Mr(this)},toKeyedSeq:function(){return new $t(this,!0)},toMap:function(){return Me(this.toKeyedSeq())},toObject:Hr,toOrderedMap:function(){return wr(this.toKeyedSeq())},toOrderedSet:function(){return un(g(this)?this.valueSeq():this)},toSet:function(){return Dr(g(this)?this.valueSeq():this)},toSetSeq:function(){return new Nt(this)},toSeq:function(){return E(this)?this.toIndexedSeq():g(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return xr(g(this)?this.valueSeq():this)},toList:function(){return sr(g(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return Xt(this,function(t,e){var r=g(t),n=[t].concat(e).map((function(t){return _(t)?r&&(t=S(t)):t=r?it(t):ot(Array.isArray(t)?t:[t]),t})).filter((function(t){return 0!==t.size}));if(0===n.length)return t;if(1===n.length){var i=n[0];if(i===t||r&&g(i)||E(t)&&E(i))return i}var o=new Q(n);return r?o=o.toKeyedSeq():E(t)||(o=o.toSetSeq()),(o=o.flatten(!0)).size=n.reduce((function(t,e){if(void 0!==t){var r=e.size;if(void 0!==r)return t+r}}),0),o}(this,t))},includes:function(t){return this.some((function(e){return ft(e,t)}))},entries:function(){return this.__iterator(M)},every:function(t,e){Qt(this.size);var r=!0;return this.__iterate((function(n,i,o){if(!t.call(e,n,i,o))return r=!1,!1})),r},filter:function(t,e){return Xt(this,Dt(this,t,e,!0))},partition:function(t,e){return function(t,e,r){var n=g(t),i=[[],[]];t.__iterate((function(o,s){i[e.call(r,o,s,t)?1:0].push(n?[s,o]:o)}));var o=Wt(t);return i.map((function(e){return Xt(t,o(e))}))}(this,t,e)},find:function(t,e,r){var n=this.findEntry(t,e);return n?n[1]:r},forEach:function(t,e){return Qt(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){Qt(this.size),t=void 0!==t?""+t:",";var e="",r=!0;return this.__iterate((function(n){r?r=!1:e+=t,e+=null!=n?n.toString():""})),e},keys:function(){return this.__iterator(z)},map:function(t,e){return Xt(this,jt(this,t,e))},reduce:function(t,e,r){return Qr(this,t,e,r,arguments.length<2,!1)},reduceRight:function(t,e,r){return Qr(this,t,e,r,arguments.length<2,!0)},reverse:function(){return Xt(this,Mt(this,!0))},slice:function(t,e){return Xt(this,Pt(this,t,e,!0))},some:function(t,e){Qt(this.size);var r=!1;return this.__iterate((function(n,i,o){if(t.call(e,n,i,o))return r=!0,!1})),r},sort:function(t){return Xt(this,Gt(this,t))},values:function(){return this.__iterator(j)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(t,e){return u(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return function(t,e,r){var n=Me().asMutable();return t.__iterate((function(i,o){n.update(e.call(r,i,o,t),0,(function(t){return t+1}))})),n.asImmutable()}(this,t,e)},equals:function(t){return zr(this,t)},entrySeq:function(){var t=this;if(t._cache)return new Q(t._cache);var e=t.toSeq().map(en).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(rn(t),e)},findEntry:function(t,e,r){var n=r;return this.__iterate((function(r,i,o){if(t.call(e,r,i,o))return n=[i,r],!1})),n},findKey:function(t,e){var r=this.findEntry(t,e);return r&&r[0]},findLast:function(t,e,r){return this.toKeyedSeq().reverse().find(t,e,r)},findLastEntry:function(t,e,r){return this.toKeyedSeq().reverse().findEntry(t,e,r)},findLastKey:function(t,e){return this.toKeyedSeq().reverse().findKey(t,e)},first:function(t){return this.find(h,null,t)},flatMap:function(t,e){return Xt(this,function(t,e,r){var n=Wt(t);return t.toSeq().map((function(i,o){return n(e.call(r,i,o,t))})).flatten(!0)}(this,t,e))},flatten:function(t){return Xt(this,Bt(this,t,!0))},fromEntrySeq:function(){return new Ct(this)},get:function(t,e){return this.find((function(e,r){return ft(r,t)}),void 0,e)},getIn:Kr,groupBy:function(t,e){return function(t,e,r){var n=g(t),i=(C(t)?wr():Me()).asMutable();t.__iterate((function(o,s){i.update(e.call(r,o,s,t),(function(t){return(t=t||[]).push(n?[s,o]:o),t}))}));var o=Wt(t);return i.map((function(e){return Xt(t,o(e))})).asImmutable()}(this,t,e)},has:function(t){return this.get(t,o)!==o},hasIn:function(t){return Wr(this,t)},isSubset:function(t){return t="function"==typeof t.includes?t:I(t),this.every((function(e){return t.includes(e)}))},isSuperset:function(t){return(t="function"==typeof t.isSubset?t:I(t)).isSubset(this)},keyOf:function(t){return this.findKey((function(e){return ft(e,t)}))},keySeq:function(){return this.toSeq().map(tn).toIndexedSeq()},last:function(t){return this.toSeq().reverse().first(t)},lastKeyOf:function(t){return this.toKeyedSeq().reverse().keyOf(t)},max:function(t){return qt(this,t)},maxBy:function(t,e){return qt(this,e,t)},min:function(t){return qt(this,t?nn(t):sn)},minBy:function(t,e){return qt(this,e?nn(e):sn,t)},rest:function(){return this.slice(1)},skip:function(t){return 0===t?this:this.slice(Math.max(0,t))},skipLast:function(t){return 0===t?this:this.slice(0,-Math.max(0,t))},skipWhile:function(t,e){return Xt(this,kt(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(rn(t),e)},sortBy:function(t,e){return Xt(this,Gt(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return this.slice(-Math.max(0,t))},takeWhile:function(t,e){return Xt(this,function(t,e,r){var n=Ht(t);return n.__iterateUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterate(n,i);var s=0;return t.__iterate((function(t,i,a){return e.call(r,t,i,a)&&++s&&n(t,i,o)})),s},n.__iteratorUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterator(n,i);var s=t.__iterator(M,i),a=!0;return new B((function(){if(!a)return{value:void 0,done:!0};var t=s.next();if(t.done)return t;var i=t.value,u=i[0],c=i[1];return e.call(r,c,u,o)?n===M?t:G(n,u,c,t):(a=!1,{value:void 0,done:!0})}))},n}(this,t,e))},takeUntil:function(t,e){return this.takeWhile(rn(t),e)},update:function(t){return t(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(t){if(t.size===1/0)return 0;var e=C(t),r=g(t),n=e?1:0;return function(t,e){return e=pt(e,3432918353),e=pt(e<<15|e>>>-15,461845907),e=pt(e<<13|e>>>-13,5),e=pt((e=(e+3864292196|0)^t)^e>>>16,2246822507),lt((e=pt(e^e>>>13,3266489909))^e>>>16)}(t.__iterate(r?e?function(t,e){n=31*n+an(vt(t),vt(e))|0}:function(t,e){n=n+an(vt(t),vt(e))|0}:e?function(t){n=31*n+vt(t)|0}:function(t){n=n+vt(t)|0}),n)}(this))}});var Vr=I.prototype;Vr[m]=!0,Vr[k]=Vr.values,Vr.toJSON=Vr.toArray,Vr.__toStringMapper=ie,Vr.inspect=Vr.toSource=function(){return this.toString()},Vr.chain=Vr.flatMap,Vr.contains=Vr.includes,jr(S,{flip:function(){return Xt(this,zt(this))},mapEntries:function(t,e){var r=this,n=0;return Xt(this,this.toSeq().map((function(i,o){return t.call(e,[o,i],n++,r)})).fromEntrySeq())},mapKeys:function(t,e){var r=this;return Xt(this,this.toSeq().flip().map((function(n,i){return t.call(e,n,i,r)})).flip())}});var Yr=S.prototype;Yr[y]=!0,Yr[k]=Vr.entries,Yr.toJSON=Hr,Yr.__toStringMapper=function(t,e){return ie(e)+": "+ie(t)},jr(O,{toKeyedSeq:function(){return new $t(this,!1)},filter:function(t,e){return Xt(this,Dt(this,t,e,!1))},findIndex:function(t,e){var r=this.findEntry(t,e);return r?r[0]:-1},indexOf:function(t){var e=this.keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.lastKeyOf(t);return void 0===e?-1:e},reverse:function(){return Xt(this,Mt(this,!1))},slice:function(t,e){return Xt(this,Pt(this,t,e,!1))},splice:function(t,e){var r=arguments.length;if(e=Math.max(e||0,0),0===r||2===r&&!e)return this;t=p(t,t<0?this.count():this.size);var n=this.slice(0,t);return Xt(this,1===r?n:n.concat(Jt(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var r=this.findLastEntry(t,e);return r?r[0]:-1},first:function(t){return this.get(0,t)},flatten:function(t){return Xt(this,Bt(this,t,!1))},get:function(t,e){return(t=c(this,t))<0||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find((function(e,r){return r===t}),void 0,e)},has:function(t){return(t=c(this,t))>=0&&(void 0!==this.size?this.size===1/0||t<this.size:-1!==this.indexOf(t))},interpose:function(t){return Xt(this,function(t,e){var r=Ht(t);return r.size=t.size&&2*t.size-1,r.__iterateUncached=function(r,n){var i=this,o=0;return t.__iterate((function(t){return(!o||!1!==r(e,o++,i))&&!1!==r(t,o++,i)}),n),o},r.__iteratorUncached=function(r,n){var i,o=t.__iterator(j,n),s=0;return new B((function(){return(!i||s%2)&&(i=o.next()).done?i:s%2?G(r,s++,e):G(r,s++,i.value,i)}))},r}(this,t))},interleave:function(){var t=[this].concat(Jt(arguments)),e=Ft(this.toSeq(),J.of,t),r=e.flatten(!0);return e.size&&(r.size=e.size*t.length),Xt(this,r)},keySeq:function(){return Fr(0,this.size)},last:function(t){return this.get(-1,t)},skipWhile:function(t,e){return Xt(this,kt(this,t,e,!1))},zip:function(){return Xt(this,Ft(this,on,[this].concat(Jt(arguments))))},zipAll:function(){return Xt(this,Ft(this,on,[this].concat(Jt(arguments)),!0))},zipWith:function(t){var e=Jt(arguments);return e[0]=this,Xt(this,Ft(this,t,e))}});var Jr=O.prototype;Jr[w]=!0,Jr[N]=!0,jr(x,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}});var Zr=x.prototype;function Qr(t,e,r,n,i,o){return Qt(t.size),t.__iterate((function(t,o,s){i?(i=!1,r=t):r=e.call(n,r,t,o,s)}),o),r}function tn(t,e){return e}function en(t,e){return[e,t]}function rn(t){return function(){return!t.apply(this,arguments)}}function nn(t){return function(){return-t.apply(this,arguments)}}function on(){return Jt(arguments)}function sn(t,e){return t<e?1:t>e?-1:0}function an(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}Zr.has=Vr.includes,Zr.contains=Zr.includes,Zr.keys=Zr.values,jr(Y,Yr),jr(J,Jr),jr(Z,Zr);var un=function(t){function e(t){return null==t?pn():Cr(t)?t:pn().withMutations((function(e){var r=x(t);Qt(r.size),r.forEach((function(t){return e.add(t)}))}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.of=function(){return this(arguments)},e.fromKeys=function(t){return this(S(t).keySeq())},e.prototype.toString=function(){return this.__toString("OrderedSet {","}")},e}(Dr);un.isOrderedSet=Cr;var cn,hn=un.prototype;function fn(t,e){var r=Object.create(hn);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function pn(){return cn||(cn=fn(br()))}hn[N]=!0,hn.zip=Jr.zip,hn.zipWith=Jr.zipWith,hn.zipAll=Jr.zipAll,hn.__empty=pn,hn.__make=fn;var ln={LeftThenRight:-1,RightThenLeft:1};var dn=function(t,e){var r;!function(t){if($(t))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(L(t))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(null===t||"object"!=typeof t)throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}(t);var n=function(o){var s=this;if(o instanceof n)return o;if(!(this instanceof n))return new n(o);if(!r){r=!0;var a=Object.keys(t),u=i._indices={};i._name=e,i._keys=a,i._defaultValues=t;for(var c=0;c<a.length;c++){var h=a[c];u[h]=c,i[h]?"object"==typeof console&&console.warn&&console.warn("Cannot define "+_n(this)+' with property "'+h+'" since that property name is part of the Record API.'):gn(i,h)}}return this.__ownerID=void 0,this._values=sr().withMutations((function(t){t.setSize(s._keys.length),S(o).forEach((function(e,r){t.set(s._indices[r],e===s._defaultValues[r]?void 0:e)}))})),this},i=n.prototype=Object.create(vn);return i.constructor=n,e&&(n.displayName=e),n};dn.prototype.toString=function(){for(var t,e=_n(this)+" { ",r=this._keys,n=0,i=r.length;n!==i;n++)e+=(n?", ":"")+(t=r[n])+": "+ie(this.get(t));return e+" }"},dn.prototype.equals=function(t){return this===t||$(t)&&yn(this).equals(yn(t))},dn.prototype.hashCode=function(){return yn(this).hashCode()},dn.prototype.has=function(t){return this._indices.hasOwnProperty(t)},dn.prototype.get=function(t,e){if(!this.has(t))return e;var r=this._indices[t],n=this._values.get(r);return void 0===n?this._defaultValues[t]:n},dn.prototype.set=function(t,e){if(this.has(t)){var r=this._values.set(this._indices[t],e===this._defaultValues[t]?void 0:e);if(r!==this._values&&!this.__ownerID)return mn(this,r)}return this},dn.prototype.remove=function(t){return this.set(t)},dn.prototype.clear=function(){var t=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:mn(this,t)},dn.prototype.wasAltered=function(){return this._values.wasAltered()},dn.prototype.toSeq=function(){return yn(this)},dn.prototype.toJS=function(){return Mr(this)},dn.prototype.entries=function(){return this.__iterator(M)},dn.prototype.__iterator=function(t,e){return yn(this).__iterator(t,e)},dn.prototype.__iterate=function(t,e){return yn(this).__iterate(t,e)},dn.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._values.__ensureOwner(t);return t?mn(this,e,t):(this.__ownerID=t,this._values=e,this)},dn.isRecord=$,dn.getDescriptiveName=_n;var vn=dn.prototype;function mn(t,e,r){var n=Object.create(Object.getPrototypeOf(t));return n._values=e,n.__ownerID=r,n}function _n(t){return t.constructor.displayName||t.constructor.name||"Record"}function yn(t){return it(t._keys.map((function(e){return[e,t.get(e)]})))}function gn(t,e){try{Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){Zt(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}catch(t){}}vn[T]=!0,vn[e]=vn.remove,vn.deleteIn=vn.removeIn=ve,vn.getIn=Kr,vn.hasIn=Vr.hasIn,vn.merge=ge,vn.mergeWith=we,vn.mergeIn=$e,vn.mergeDeep=Re,vn.mergeDeepWith=Te,vn.mergeDeepIn=Le,vn.setIn=le,vn.update=_e,vn.updateIn=ye,vn.withMutations=Ne,vn.asMutable=Ce,vn.asImmutable=ze,vn[k]=vn.entries,vn.toJSON=vn.toObject=Vr.toObject,vn.inspect=vn.toSource=function(){return this.toString()};var wn,En=function(t){function e(t,r){if(!(this instanceof e))return new e(t,r);if(this._value=t,this.size=void 0===r?1/0:Math.max(0,r),0===this.size){if(wn)return wn;wn=this}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},e.prototype.get=function(t,e){return this.has(t)?this._value:e},e.prototype.includes=function(t){return ft(this._value,t)},e.prototype.slice=function(t,r){var n=this.size;return f(t,r,n)?this:new e(this._value,l(r,n)-p(t,n))},e.prototype.reverse=function(){return this},e.prototype.indexOf=function(t){return ft(this._value,t)?0:-1},e.prototype.lastIndexOf=function(t){return ft(this._value,t)?this.size:-1},e.prototype.__iterate=function(t,e){for(var r=this.size,n=0;n!==r&&!1!==t(this._value,e?r-++n:n++,this););return n},e.prototype.__iterator=function(t,e){var r=this,n=this.size,i=0;return new B((function(){return i===n?{value:void 0,done:!0}:G(t,e?n-++i:i++,r._value)}))},e.prototype.equals=function(t){return t instanceof e?ft(this._value,t._value):zr(t)},e}(J);function bn(t,e){return In([],e||Sn,t,"",e&&e.length>2?[]:void 0,{"":t})}function In(t,e,r,n,i,o){if("string"!=typeof r&&!L(r)&&(H(r)||U(r)||re(r))){if(~t.indexOf(r))throw new TypeError("Cannot convert circular structure to Immutable");t.push(r),i&&""!==n&&i.push(n);var s=e.call(o,n,V(r).map((function(n,o){return In(t,e,n,o,i,r)})),i&&i.slice());return t.pop(),i&&i.pop(),s}return r}function Sn(t,e){return E(e)?e.toList():g(e)?e.toMap():e.toSet()}var On="4.3.1",xn={version:On,Collection:I,Iterable:I,Seq:V,Map:Me,OrderedMap:wr,List:sr,Stack:xr,Set:Dr,OrderedSet:un,PairSorting:ln,Record:dn,Range:Fr,Repeat:En,is:ft,fromJS:bn,hash:vt,isImmutable:L,isCollection:_,isKeyed:g,isIndexed:E,isAssociative:b,isOrdered:C,isValueObject:ht,isPlainObject:re,isSeq:R,isList:or,isMap:ut,isOrderedMap:ct,isStack:Or,isSet:Nr,isOrderedSet:Cr,isRecord:$,get:se,getIn:Xr,has:oe,hasIn:Wr,merge:be,mergeDeep:Se,mergeWith:Ie,mergeDeepWith:Oe,remove:ue,removeIn:de,set:ce,setIn:pe,update:me,updateIn:he},An=I;t.Collection=I,t.Iterable=An,t.List=sr,t.Map=Me,t.OrderedMap=wr,t.OrderedSet=un,t.PairSorting=ln,t.Range=Fr,t.Record=dn,t.Repeat=En,t.Seq=V,t.Set=Dr,t.Stack=xr,t.default=xn,t.fromJS=bn,t.get=se,t.getIn=Xr,t.has=oe,t.hasIn=Wr,t.hash=vt,t.is=ft,t.isAssociative=b,t.isCollection=_,t.isImmutable=L,t.isIndexed=E,t.isKeyed=g,t.isList=or,t.isMap=ut,t.isOrdered=C,t.isOrderedMap=ct,t.isOrderedSet=Cr,t.isPlainObject=re,t.isRecord=$,t.isSeq=R,t.isSet=Nr,t.isStack=Or,t.isValueObject=ht,t.merge=be,t.mergeDeep=Se,t.mergeDeepWith=Oe,t.mergeWith=Ie,t.remove=ue,t.removeIn=de,t.set=ce,t.setIn=pe,t.update=me,t.updateIn=he,t.version=On,Object.defineProperty(t,"__esModule",{value:!0})}(e)},53811:(t,e,r)=>{const{EventEmitter:n}=r(82361);class i{constructor(){this.eventEmitter=new n,this.onabort=null,this.aborted=!1,this.reason=void 0}toString(){return"[object AbortSignal]"}get[Symbol.toStringTag](){return"AbortSignal"}removeEventListener(t,e){this.eventEmitter.removeListener(t,e)}addEventListener(t,e){this.eventEmitter.on(t,e)}dispatchEvent(t){const e={type:t,target:this},r=`on${t}`;"function"==typeof this[r]&&this[r](e),this.eventEmitter.emit(t,e)}throwIfAborted(){if(this.aborted)throw this.reason}static abort(t){const e=new o;return e.abort(),e.signal}static timeout(t){const e=new o;return setTimeout((()=>e.abort(new Error("TimeoutError"))),t),e.signal}}class o{constructor(){this.signal=new i}abort(t){this.signal.aborted||(this.signal.aborted=!0,this.signal.reason=t||new Error("AbortError"),this.signal.dispatchEvent("abort"))}toString(){return"[object AbortController]"}get[Symbol.toStringTag](){return"AbortController"}}t.exports={AbortController:o,AbortSignal:i}}};
|
|
3
|
-
//# sourceMappingURL=903.js.map
|